/* ====== Kim's Alpaka-Werkstatt ====== */

:root {
  --bg: #fff5ee;
  --bg-soft: #ffeadf;
  --paper: #fffaf5;
  --ink: #3b2a3a;
  --ink-soft: #7a6271;
  --pink: #f7b6c5;
  --pink-deep: #ec8aa3;
  --blue: #c9e4f6;
  --blue-deep: #7fb8e0;
  --mint: #bfe7d2;
  --mint-deep: #7bc9a0;
  --yellow: #ffe7a0;
  --cream: #fdf2db;
  --shadow: 0 8px 24px rgba(180, 100, 130, 0.12);
  --shadow-soft: 0 4px 12px rgba(180, 100, 130, 0.08);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 20% 10%, #ffe6ec 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, #e6f3ff 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, #fff8ee 0%, var(--bg) 60%);
}

#root { min-height: 100vh; display: flex; flex-direction: column; }

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
  font-weight: 500;
}

/* ====== Layout ====== */

.app {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 16px 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 8px;
}

.app-title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-title .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pink-deep);
}

.step-pill {
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

/* ====== Welcome screen ====== */

.welcome {
  text-align: center;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.welcome h1 {
  font-size: 34px;
  line-height: 1.05;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.welcome h1 .accent {
  color: var(--pink-deep);
  display: inline-block;
  transform: rotate(-3deg);
}

.welcome .sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 320px;
  margin: 0 auto;
  text-wrap: pretty;
  line-height: 1.4;
}

.intro-alpaka {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.intro-alpaka::before {
  content: '';
  position: absolute;
  inset: auto 0 8px 0;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.10), transparent 70%);
  border-radius: 50%;
}

/* ====== Countdown ====== */

.countdown {
  display: flex;
  gap: 8px;
  background: var(--paper);
  padding: 14px 14px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  width: fit-content;
  align-items: center;
}

.countdown-label {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 0 6px 0 4px;
  line-height: 1.1;
  max-width: 78px;
}

.cd-cells { display: flex; gap: 6px; }

.cd-cell {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.cd-num {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.cd-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ====== Buttons ====== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 52px;
}

.btn:active { transform: scale(0.97); }

.btn.primary {
  background: linear-gradient(180deg, #ff9aaf 0%, var(--pink-deep) 100%);
  color: white;
}

.btn.ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn.full { width: 100%; }

.btn.lg { font-size: 18px; padding: 16px 28px; min-height: 60px; }

.btn .arrow { font-size: 18px; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ====== Customize screen ====== */

.stage {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stage-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.alpaka-zone {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  touch-action: none;
  user-select: none;
  z-index: 1;
}

.alpaka-stage {
  width: 280px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
  cursor: grab;
}

.alpaka-stage.dragging { cursor: grabbing; transition: none; }

.alpaka-shadow {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 180px;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(60, 30, 60, 0.18), transparent 70%);
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 50%;
}

.hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  animation: hintFade 4s ease 0.5s 1 forwards;
  z-index: 3;
  white-space: nowrap;
}

@keyframes hintFade {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}

.rotation-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
}

.rotation-pill button {
  background: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}

/* ====== Customizer tabs ====== */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 2px;
  margin: 0;
  justify-content: center;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s;
}

.tab.active {
  background: var(--ink);
  color: white;
  transform: translateY(-1px);
}

.tab .emoji { font-size: 16px; }

.panel {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 380px) {
  .tab { padding: 7px 10px; font-size: 13px; }
  .tab .emoji { font-size: 14px; }
  .panel { padding: 12px; }
  .opt-grid, .swatch-grid { gap: 8px; }
}

.panel-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.swatch:active { transform: scale(0.93); }
.swatch.active {
  border-color: var(--ink);
  transform: scale(1.04);
}

.swatch .lbl {
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--ink-soft);
  text-shadow: 0 0 4px white;
}

.swatch.none {
  background: repeating-linear-gradient(45deg, #fff 0 6px, #f0e6e0 6px 12px);
  color: var(--ink-soft);
  font-size: 11px;
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
}

.opt-tile {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.opt-tile:active { transform: scale(0.93); }
.opt-tile.active {
  border-color: var(--ink);
  background: white;
  transform: scale(1.04);
}

.opt-tile svg { width: 100%; height: 100%; }

/* ====== Profile form ====== */

.profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--pink-deep);
}

.field .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  transition: all 0.15s;
}

.chip.active {
  background: var(--ink);
  color: white;
}

/* ====== Card preview ====== */

.tag-card {
  background: linear-gradient(160deg, #fffaf5 0%, #ffeae0 100%);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 4px dashed #f3d4c2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.tag-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 6px;
  background: var(--pink-deep);
  border-radius: 999px;
}

.tag-card .punch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--bg);
  border-radius: 50%;
  border: 2px solid #d8baa6;
}

.tag-card .tag-top {
  height: 22px;
}

.tag-card .tag-alpaka {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tag-card .tag-alpaka .rotation-pill,
.tag-card .tag-alpaka .hint { display: none !important; }

.tag-card .tag-name {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}

.tag-card .tag-by {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

.tag-card .tag-fields {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.tag-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 10px;
}

.tag-row .k { color: var(--ink-soft); }
.tag-row .v { color: var(--ink); font-weight: 500; }

.tag-card .tag-foot {
  text-align: center;
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ====== Confetti ====== */

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti span {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.6; }
}

/* ====== Saved screen ====== */

.saved-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.saved-card h2 {
  font-size: 26px;
  margin: 0;
  font-weight: 600;
}

.saved-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.4;
  text-wrap: pretty;
}

/* ====== Footer / event info ====== */

.event-info {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.event-info .h {
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ====== Admin ====== */

.admin {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.admin-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-card .mini-stage {
  background: var(--bg-soft);
  border-radius: 14px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== Misc kawaii flourishes ====== */

.float {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}

.spark { font-size: 18px; animation: spark 3s ease-in-out infinite; }
.spark.s2 { animation-delay: 0.6s; }
.spark.s3 { animation-delay: 1.2s; }
@keyframes spark {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.3) rotate(15deg); opacity: 1; }
}

/* ====== Page transitions ====== */

.fade-in {
  opacity: 1;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Sticky bottom bar ====== */

.bottom-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 16px 0 12px;
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  z-index: 10;
}

.bottom-bar .btn { flex: 1; }

/* ====== Mute toggle ====== */

.mute {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.welcome .mute-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
}

/* ====== Idle animation (2D — used only in admin previews) ====== */

.alpaka-breathe { transform-origin: 50% 80%; }
.alpaka-ear-l, .alpaka-ear-r, .alpaka-blink, .alpaka-mouth {
  /* idle animations intentionally disabled — handled in 3D engine */
}

/* ====== Lobby (name picker) ====== */

.lobby {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lobby-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lobby-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

.lobby-progress {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lobby-progress-bar {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}

.lobby-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--mint-deep), var(--pink-deep));
  border-radius: 999px;
  transition: width 0.6s ease;
  min-width: 4px;
}

.lobby-progress-label {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.kid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.kid-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 14px 12px 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
}

.kid-card:active { transform: scale(0.97); }

.kid-card.ready {
  background: linear-gradient(180deg, #fff7ec 0%, #fce4ec 100%);
  border-color: rgba(236, 138, 163, 0.35);
}

.kid-card.ready:hover {
  box-shadow: 0 8px 24px rgba(180, 100, 130, 0.18);
}

.kid-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.kid-check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint-deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  border: 2px solid #fff;
}

.kid-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.kid-status {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.2;
  max-width: 130px;
  word-break: break-word;
}

.kid-card.ready .kid-status {
  color: var(--pink-deep);
  font-weight: 500;
}

/* ====== Kid greeting in profile screen ====== */

.kid-greet {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff7ec 0%, #ffe8ee 100%);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 4px;
}

.kid-greet-emoji {
  font-size: 28px;
  line-height: 1;
}

.kid-greet-l {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.kid-greet-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 2px;
}

/* ====== Print view (Admin → "Anhänger drucken") ====== */

.print-view {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}

.print-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  position: sticky;
  top: 8px;
  z-index: 10;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.print-hint {
  background: #fff7ec;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  line-height: 1.5;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.print-tag {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ec 100%);
  border: 2px dashed #d4a3b3;
  border-radius: 20px;
  padding: 14px 14px 16px;
  position: relative;
  break-inside: avoid;
  page-break-inside: avoid;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

.print-tag-punch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #d4a3b3;
  border-radius: 50%;
  background: #fff;
}

.print-tag-art {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  background: linear-gradient(160deg, #fffaf5, #ffe9f1);
  border-radius: 14px;
  padding: 6px;
  min-height: 180px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.print-tag-art svg,
.print-tag-art img {
  max-width: 100%;
  width: 240px;
  height: 240px;
  display: block;
  object-fit: contain;
}
.print-tag-loading {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
}

/* ====== Rotation arrow buttons (overlay on the 3D stage) ====== */

.rotate-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-deep);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 5;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  border: 0;
}
.rotate-side:hover { background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.rotate-side:active { transform: translateY(-50%) scale(0.92); }
.rotate-side-l { left: 8px; }
.rotate-side-r { right: 8px; }
@media (max-width: 480px) {
  .rotate-side { width: 36px; height: 36px; font-size: 20px; }
}

.print-tag-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.print-tag-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}

.print-tag-by {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.print-tag-by strong { color: var(--pink-deep); }

.print-tag-line {
  font-size: 13px;
  color: var(--ink);
  margin: 0;
}

.print-tag-foot {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ========== ACTUAL PRINTING ========== */

@media print {
  /* Hide everything except the print view */
  body {
    background: white !important;
    margin: 0;
  }
  body * { visibility: hidden; }
  .print-view, .print-view * { visibility: visible; }
  .print-view {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 8mm;
  }
  .no-print, .print-controls, .print-hint { display: none !important; }

  /* Two anhänger per row, sized for A4 paper */
  .print-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8mm;
  }
  .print-tag {
    border: 2px dashed #b87090;
    box-shadow: none;
    padding: 6mm 6mm 8mm;
    background: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-tag-art {
    background: linear-gradient(160deg, #fffaf5, #ffe9f1);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* Make sure cards don't get split across pages */
  .print-tag {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  @page {
    margin: 10mm;
    size: A4;
  }
}
