/* ============================================================
   Templaris Benissa — sistema visual
   Cristal líquido (iOS) · magenta + blanco · gótico de marca
   ============================================================ */

:root {
  --magenta:        #a01a5e;
  --magenta-deep:   #6d1240;
  --magenta-bright: #c4407f;
  --magenta-ink:    #51112f;

  --ink:    #2b1a23;
  --muted:  #8b7682;
  --faint:  #b6a4ad;

  --bg:     #f5ecf1;
  --hair:   rgba(120,20,74,0.10);
  --hair-2: rgba(120,20,74,0.16);

  --ok:   #2f8f6b;
  --warn: #c98a1b;
  --bad:  #b23a52;

  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;

  --sans: "Onest", -apple-system, system-ui, sans-serif;
  --goth: "Grenze Gotisch", "Onest", serif;
}

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

body {
  margin: 0;
  background: #e9dce4;
  font-family: var(--sans);
  color: var(--ink);
}

/* ---- App root layout ---- */
#root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Móvil (por defecto): la app ocupa TODA la pantalla, sin marco.
   Ordenador (≥480px): se muestra enmarcada como un móvil para previsualizar. */
.phone {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #efe2ea;
}
@media (min-width: 480px) {
  #root {
    padding: 28px 16px;
    background:
      radial-gradient(circle at 18% 12%, #f3e3ec, transparent 55%),
      radial-gradient(circle at 86% 90%, #e7d2de, transparent 55%),
      #e9dce4;
  }
  .phone {
    width: 402px;
    height: 860px;
    max-height: calc(100vh - 32px);
    border-radius: 46px;
    box-shadow: 0 30px 70px rgba(43,16,28,.34), 0 0 0 1px rgba(43,16,28,.1);
  }
}

/* ============================================================
   Lienzo / fondo decorativo dentro del móvil
   ============================================================ */
.canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(168deg, #fcf6f9 0%, #f3e5ee 58%, #efddea 100%);
}
.canvas::before {           /* resplandor magenta superior */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 82% -8%, rgba(196,64,127,0.30), transparent 52%),
    radial-gradient(120% 55% at -12% 104%, rgba(109,18,64,0.20), transparent 52%);
}
.canvas-seal {              /* sello de marca de agua */
  position: absolute;
  right: -28%;
  bottom: 6%;
  width: 115%;
  opacity: 0.05;
  filter: saturate(0.6);
  pointer-events: none;
}
.canvas-word {              /* "Templaris" gótico difuminado */
  position: absolute;
  left: -6%;
  top: 16%;
  font-family: var(--goth);
  font-size: 116px;
  font-weight: 500;
  line-height: 0.9;
  color: var(--magenta);
  opacity: 0.05;
  transform: rotate(-4deg);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   Cristal
   ============================================================ */
.glass {
  background: rgba(255,255,255,0.52);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow:
    0 1px 1px rgba(81,17,47,0.04),
    0 10px 30px rgba(81,17,47,0.07);
  border-radius: var(--r-md);
}
.glass-soft {
  background: rgba(255,255,255,0.38);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--r-sm);
}
.glass-strong {
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 30px rgba(81,17,47,0.10);
  border-radius: var(--r-md);
}

/* magenta filled */
.fill-magenta {
  background: linear-gradient(160deg, var(--magenta) 0%, var(--magenta-deep) 100%);
  color: #fff;
}

/* ============================================================
   Pantallas / scroll
   ============================================================ */
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px calc(116px + env(safe-area-inset-bottom, 0px));
}
.screen::-webkit-scrollbar { width: 0; height: 0; }

.screen-pad-tab { padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)); }

/* header de pantalla */
.scr-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 2px 18px;
}
.scr-kicker {
  font-family: var(--goth);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  opacity: 0.85;
  white-space: nowrap;
}
.scr-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 2px 0 0;
}

/* ============================================================
   Tipografía utilitaria
   ============================================================ */
.goth { font-family: var(--goth); font-weight: 500; }
.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
}
.muted  { color: var(--muted); }
.faint  { color: var(--faint); }

/* ============================================================
   Píldoras / chips / badges
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--hair);
  color: var(--ink);
  white-space: nowrap;
}
.chip.on {
  background: var(--magenta);
  color: #fff;
  border-color: transparent;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok   { color: var(--ok);   background: rgba(47,143,107,0.12); }
.badge.warn { color: var(--warn); background: rgba(201,138,27,0.14); }
.badge.bad  { color: var(--bad);  background: rgba(178,58,82,0.12); }
.badge.mag  { color: var(--magenta); background: rgba(160,26,94,0.10); }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, filter .15s ease;
}
.btn:active { transform: scale(0.975); }
.btn-mag { background: var(--magenta); color: #fff; box-shadow: 0 8px 20px rgba(160,26,94,0.28); }
.btn-mag:active { filter: brightness(1.05); }
.btn-glass { background: rgba(255,255,255,0.6); color: var(--ink); border: 1px solid var(--hair); }
.btn-ghost { background: transparent; color: var(--magenta); }
.btn-block { width: 100%; }

/* presable */
.press { cursor: pointer; transition: transform .12s ease; }
.press:active { transform: scale(0.985); }

/* avatar */
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--sans);
  letter-spacing: -0.01em;
}

/* divisor */
.rowdiv { height: 1px; background: var(--hair); margin: 0; border: none; }

/* listas tipo row */
.lrow {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 4px;
}

/* iconos contenedor */
.ic-tile {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   Tab bar (cristal)
   ============================================================ */
.tabbar {
  position: absolute;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  height: 66px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  z-index: 40;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.tabbar::-webkit-scrollbar { height: 0; width: 0; }
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--muted);
  flex: 0 0 auto;
  min-width: 60px;
  scroll-snap-align: center;
  transition: color .15s ease;
}
.tab .tlabel { font-size: 10.5px; font-weight: 700; letter-spacing: 0.01em; }
.tab.on { color: var(--magenta); }

/* aparición */
@keyframes rise {
  from { transform: translateY(12px); }
  to   { transform: translateY(0); }
}
.rise { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.d1{animation-delay:.04s}.d2{animation-delay:.09s}.d3{animation-delay:.14s}
.d4{animation-delay:.19s}.d5{animation-delay:.24s}.d6{animation-delay:.29s}

@keyframes fadein { from{opacity:0} to{opacity:1} }
.fadein { animation: fadein .3s ease both; }

/* juegos visuales */
.game-screen {
  padding-bottom: 92px;
}
.game-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.42), transparent 30%),
    radial-gradient(circle at 52% 46%, rgba(160,26,94,.18), transparent 46%);
  opacity: .85;
}
.game-progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: -4px 0 16px;
}
.game-progress-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.52);
  color: var(--faint);
  border: 1px solid var(--hair);
  font-size: 11px;
  font-weight: 900;
}
.game-progress-dot.on {
  background: var(--magenta);
  color: #fff;
  border-color: transparent;
}
.game-step {
  display: flex;
  flex-direction: column;
}
.game-step-copy {
  min-height: 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-step-copy.compact { min-height: 66px; }
.game-step-copy h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0;
}
.game-carousel {
  position: relative;
  height: 380px;
  margin: 0 -18px 18px;
  perspective: 1040px;
  transform-style: preserve-3d;
  overflow: hidden;
}
.game-carousel::before {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 36px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(81,17,47,.22), transparent 70%);
  filter: blur(7px);
}
.game-3d-card {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 230px;
  height: 290px;
  margin-left: -115px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.95), rgba(245,226,238,.74)),
    radial-gradient(circle at 42% 14%, rgba(196,64,127,.28), transparent 48%);
  color: var(--magenta-ink);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 34px 58px rgba(81,17,47,.3);
  transition: transform .42s cubic-bezier(.2,.75,.2,1), opacity .3s ease;
  animation: gameCarouselFloat 3.6s ease-in-out infinite;
}
.game-3d-card span {
  font-size: 23px;
  line-height: 1.05;
  font-weight: 900;
}
.game-3d-card.on {
  background:
    radial-gradient(circle at 46% 15%, rgba(255,255,255,.2), transparent 34%),
    linear-gradient(160deg, var(--magenta), var(--magenta-deep));
  color: #fff;
  z-index: 4;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 40px 68px rgba(81,17,47,.46);
}
.game-art {
  width: 148px;
  height: 148px;
  position: relative;
  display: block;
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 18px rgba(43,16,28,.24));
}
/* póster del cómic (carrusel de selección) — a sangre, póster completo */
.game-art-poster {
  width: 182px;
  height: 240px;
  border-radius: 20px;
  filter: drop-shadow(0 20px 24px rgba(43,16,28,.36));
}
.game-art-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  border-radius: 20px;
  border: 3px solid rgba(255,231,158,.92);
  box-shadow: inset 0 0 0 1px rgba(120,80,16,.5);
}
.game-art-roulette {
  width: 178px;
  height: 152px;
  filter: none;
}
/* ground shadow */
.ro-shadow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 150px;
  height: 30px;
  margin-left: -75px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(43,16,28,.46), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
/* the whole coin, squished to an ellipse for perspective */
.ro-3d {
  position: absolute;
  left: 5px;
  top: 22px;
  width: 168px;
  height: 168px;
  transform: scaleY(.62);
  transform-origin: 50% 50%;
}
/* thick metallic gold edge via stacked extrusion + the colored top face */
.ro-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 2px 0 #f0cf78, 0 4px 0 #e0ba5e, 0 6px 0 #cda646, 0 8px 0 #ba9134,
    0 11px 0 #a67d26, 0 14px 0 #8f681b, 0 17px 0 #785512, 0 20px 0 #62440c,
    0 23px 0 #4d3408, 0 30px 30px rgba(43,16,28,.52);
}
.ro-pockets {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, rgba(74,48,10,.0) 0deg 28.6deg, rgba(74,48,10,.62) 28.6deg 30deg),
    conic-gradient(
      #f7efe6 0deg 30deg, #cf1530 30deg 60deg, #f7efe6 60deg 90deg, #9c0b1a 90deg 120deg,
      #f7efe6 120deg 150deg, #cf1530 150deg 180deg, #f7efe6 180deg 210deg, #9c0b1a 210deg 240deg,
      #f7efe6 240deg 270deg, #cf1530 270deg 300deg, #f7efe6 300deg 330deg, #9c0b1a 330deg 360deg);
  box-shadow: inset 0 0 0 16px rgba(255,255,255,.5);
  animation: roSpin 9s linear infinite;
}
/* static highlight so the light doesn't spin with the wheel */
.ro-gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.62), transparent 46%),
    radial-gradient(circle at 70% 82%, rgba(54,7,15,.34), transparent 52%);
  pointer-events: none;
}
/* beveled gold rim */
.ro-rim {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 7px solid #e9c879;
  box-shadow:
    inset 0 0 0 2px rgba(120,80,16,.85),
    inset 0 3px 6px rgba(255,255,255,.7),
    inset 0 -4px 8px rgba(80,52,8,.7),
    0 0 0 1px rgba(120,80,16,.5);
  z-index: 4;
  pointer-events: none;
}
/* ring of light bulbs */
.ro-bulbs span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fff, #fff3c4 50%, #d9a836);
  box-shadow: 0 0 9px rgba(255,236,170,.95), inset 0 0 0 1px rgba(140,90,18,.5);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-76px);
  z-index: 5;
}
/* hub with templar logo */
.ro-hub {
  position: absolute;
  inset: 50%;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, #f4eee9 58%, #cbb98f);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.92),
    0 0 0 5px #e9c879,
    0 0 0 7px rgba(120,80,16,.7),
    0 8px 14px rgba(43,16,28,.4);
  z-index: 6;
}
/* gold 3D marker pointing into the wheel */
.ro-pointer {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 30px;
  height: 40px;
  margin-left: -15px;
  z-index: 9;
  background: linear-gradient(180deg, #fff4cf, #e9c879 46%, #b88f2c 78%, #8a5d12);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.8);
  filter: drop-shadow(0 6px 6px rgba(43,16,28,.4));
}
.game-roulette-logo {
  width: 88%;
  height: 88%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.8),
    0 4px 10px rgba(43,16,28,.22);
}
.game-art-bombo {
  width: 164px;
  height: 164px;
  border-radius: 30px;
  overflow: hidden;
  transform: rotateX(13deg) rotateY(-13deg);
  background: rgba(255,255,255,.18);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.5),
    0 22px 34px rgba(43,16,28,.28);
}
.game-art-bombo-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(81,17,47,.02), rgba(81,17,47,.18)),
    url("assets/bombo-templaris-sword.png") center / cover;
  transform: scale(1.04);
}
.game-art-cards {
  width: 162px;
  height: 162px;
  transform: rotateX(18deg);
}
.game-art-card {
  position: absolute;
  width: 86px;
  height: 128px;
  left: 50%;
  top: 18px;
  margin-left: -43px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(81,17,47,.02), rgba(81,17,47,.22)),
    url("assets/game-card-back.png") center / cover;
  border: 2px solid rgba(255,255,255,.86);
  box-shadow: 0 18px 26px rgba(43,16,28,.28);
  overflow: hidden;
}
.game-art-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.62);
}
.game-art-card.one { transform: translateX(-40px) rotateZ(-16deg) translateZ(0); }
.game-art-card.two { transform: translateX(0) rotateZ(2deg) translateZ(18px); z-index: 2; }
.game-art-card.three { transform: translateX(42px) rotateZ(17deg) translateZ(4px); }
.game-carousel-btn {
  position: absolute;
  top: 145px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.7);
  color: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}
.game-carousel-btn.left { left: 17px; }
.game-carousel-btn.right { right: 17px; }
.game-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.game-choice-card {
  min-height: 138px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.58);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 14px 30px rgba(81,17,47,.1);
}
.game-choice-card.on {
  background: linear-gradient(160deg, var(--magenta), var(--magenta-deep));
  color: #fff;
}
.game-event-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 14px;
}
.game-event-list::-webkit-scrollbar { width: 0; height: 0; }
.game-event-option {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  background: rgba(255,255,255,.58);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  padding: 13px 14px;
  display: grid;
  gap: 7px;
}
.game-event-option strong {
  font-size: 16px;
  line-height: 1.15;
}
.game-event-option small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}
.game-event-option.on {
  border-color: rgba(160,26,94,.3);
  box-shadow: inset 0 0 0 2px rgba(160,26,94,.14);
}
.game-segment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}
.game-segment .chip {
  justify-content: center;
  height: 38px;
  padding: 0 9px;
  font-size: 12.2px;
}
.game-manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 402px;
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 14px;
}
.game-manual-grid::-webkit-scrollbar { width: 0; height: 0; }
.game-person-card {
  min-height: 82px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.56);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
}
.game-person-card.on {
  background: rgba(160,26,94,.1);
  color: var(--magenta);
  border-color: rgba(160,26,94,.2);
}
.game-big-counter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 18px;
}
.game-big-counter button {
  height: 118px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.62);
  color: var(--magenta-ink);
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(81,17,47,.1);
}
.game-big-counter button.on {
  background: linear-gradient(160deg, var(--magenta), var(--magenta-deep));
  color: #fff;
}
.game-big-counter button:disabled {
  opacity: .32;
}
.game-summary {
  padding: 15px 16px;
  display: grid;
  gap: 5px;
  text-align: center;
  margin-bottom: 18px;
}
.game-summary strong { font-size: 17px; }
.game-summary span { color: var(--muted); font-size: 13px; font-weight: 700; }
.game-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.game-actions .btn:only-child {
  grid-column: 1 / -1;
}
.game-play-stage {
  min-height: 318px;
  margin-bottom: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  perspective: 900px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.72), rgba(255,255,255,.28) 36%, rgba(160,26,94,.07) 100%);
}
.game-play-stage-roulette {
  min-height: 470px;
  padding: 20px 12px 18px;
  justify-content: flex-start;
}
.game-roulette-glow {
  position: absolute;
  top: 38px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,243,205,.6), rgba(211,24,44,.14) 50%, transparent 72%);
  filter: blur(6px);
  z-index: 0;
}
.game-roulette-pointer {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 40px;
  height: 52px;
  margin-left: -20px;
  z-index: 12;
  filter: drop-shadow(0 7px 8px rgba(81,17,47,.42));
}
.game-roulette-pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, #e9c879 60%, #a9791f);
  box-shadow: inset 0 0 0 1px rgba(120,80,16,.55), 0 2px 5px rgba(0,0,0,.3);
}
.game-roulette-pointer span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 34px;
  height: 42px;
  margin-left: -17px;
  background: linear-gradient(180deg, #fff4cf, #e9c879 46%, #b88f2c 78%, #8a5d12);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.8);
}
.game-wheel-table {
  width: 300px;
  height: 256px;
  position: relative;
  perspective: 820px;
  margin-top: 4px;
}
.game-wheel-table::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 0;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(81,17,47,.44), transparent 70%);
  filter: blur(9px);
}
/* tilted 3D housing — this is the only element that holds the perspective */
.game-wheel-tilt {
  position: absolute;
  left: 50%;
  top: 0;
  width: 264px;
  height: 264px;
  margin-left: -132px;
  transform: rotateX(56deg);
  transform-style: preserve-3d;
}
/* static gold bowl with a real extruded side wall (does NOT spin) */
.game-wheel-wall {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff6da, #ecc674 40%, #c99a36 70%, #8a5d12);
  box-shadow:
    0 2px 0 #e6c069, 0 5px 0 #d8af52, 0 8px 0 #c89e40, 0 11px 0 #b58a30,
    0 14px 0 #9e7522, 0 17px 0 #876016, 0 20px 0 #6f4d0e, 0 24px 0 #573a09,
    0 28px 0 #432c06, 0 40px 36px rgba(81,17,47,.55);
  z-index: 1;
}
/* the colored wheel-head that spins inside the bowl */
.game-wheel-spin {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  z-index: 2;
  box-shadow:
    inset 0 0 0 3px rgba(140,22,32,.5),
    inset 0 8px 16px rgba(255,255,255,.22),
    inset 0 -12px 24px rgba(54,7,15,.34);
}
.game-wheel-spin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.5), transparent 42%),
    radial-gradient(circle at 70% 78%, rgba(82,6,15,.26), transparent 48%);
  pointer-events: none;
}
.game-wheel-spin.spin { animation: gameWheel3DSpin 3.7s cubic-bezier(.12,.62,.06,1) both; }
/* static gold inner ring around the head */
.game-wheel-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 3px solid #e9c879;
  box-shadow:
    inset 0 0 0 1px rgba(120,80,16,.7),
    inset 0 2px 4px rgba(255,247,210,.6),
    inset 0 -4px 9px rgba(80,52,8,.5);
  z-index: 4;
  pointer-events: none;
}
/* static ring of bulbs on the gold rim */
.game-wheel-lights {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
}
.game-wheel-lights span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fff, #fff3c4 52%, #d9a836);
  box-shadow: 0 0 8px rgba(255,236,170,.95), inset 0 0 0 1px rgba(140,90,18,.5);
  transform: rotate(calc(var(--i) * 20deg)) translateY(-124px);
}
.game-wheel-spin.spin ~ .game-wheel-lights span {
  animation: rouletteLightPulse .34s ease-in-out 9 alternate;
  animation-delay: calc(var(--i) * 16ms);
}
/* static hub */
.game-wheel-core {
  position: absolute;
  inset: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff, #f4eee9 58%, #cbb98f);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.92),
    0 0 0 5px #e9c879,
    0 0 0 8px rgba(120,80,16,.7),
    0 10px 18px rgba(43,16,28,.36);
  transform-style: preserve-3d;
  z-index: 6;
}
/* el muñeco del cómic: se pone de pie en el centro y gira cómicamente */
.ro-muneco {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 108px;
  transform: translate(-50%, -82%) rotateX(-56deg) translateZ(16px);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  z-index: 10;
  pointer-events: none;
}
.ro-muneco-fig {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("assets/ruleta-comic.png");
  background-size: 300%;
  background-position: 50% 38%;
  background-repeat: no-repeat;
  background-color: #d9cbb6;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.5),
    0 0 0 3px #e9c879,
    0 0 0 5px rgba(120,80,16,.72),
    0 10px 16px rgba(0,0,0,.42);
  animation: munecoRock 1.05s ease-in-out infinite;
}
.game-wheel-spin.spin ~ .game-wheel-core .ro-muneco-fig {
  animation: munecoTwirl .5s linear infinite;
}
.game-wheel-name {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 66px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #8f0714;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
  box-shadow: 0 3px 7px rgba(43,16,28,.22);
}
.game-wheel-name.win {
  background: linear-gradient(120deg, #fff7df, #f0cf78 55%, #d9a836);
  color: #6b0a12;
  box-shadow: 0 0 0 2.5px #8a5d12, 0 0 14px rgba(255,224,140,.9), 0 6px 12px rgba(120,80,16,.55);
  z-index: 7;
}
/* big winner reveal with templar swords + axe */
.ro-winner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 18px;
  max-width: 330px;
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, rgba(120,20,74,.96), rgba(143,7,20,.96));
  border: 1.5px solid rgba(255,231,158,.82);
  box-shadow: 0 16px 32px rgba(81,17,47,.42), inset 0 0 0 1px rgba(255,255,255,.12);
  animation: roWinnerIn .6s cubic-bezier(.2,1.5,.34,1) 3.35s both;
}
.ro-winner-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.ro-winner-eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffe49a;
}
.ro-winner-name {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.06;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.32);
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ro-crest-svg {
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.38));
}

/* ===== Ruleta 2D plana + hombre girando (los pies = aguja) ===== */
.ro2 {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 10px auto 6px;
}
.ro2-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px rgba(140,20,30,.28),
    inset 0 0 40px rgba(54,7,15,.16),
    0 16px 34px rgba(81,17,47,.3);
}
.ro2-name {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 74px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #8f0714;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 5px rgba(43,16,28,.22);
  z-index: 2;
}
.ro2-name.win {
  background: linear-gradient(120deg, #fff7df, #f0cf78 55%, #d9a836);
  color: #6b0a12;
  box-shadow: 0 0 0 2.5px #8a5d12, 0 0 14px rgba(255,224,140,.95), 0 4px 10px rgba(120,80,16,.5);
  z-index: 6;
}
.ro2-rim {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 7px solid #e9c879;
  box-shadow:
    inset 0 0 0 2px rgba(120,80,16,.65),
    inset 0 2px 4px rgba(255,247,210,.6),
    inset 0 -5px 10px rgba(80,52,8,.5),
    0 0 0 2px rgba(120,80,16,.35),
    0 18px 32px rgba(81,17,47,.3);
  z-index: 3;
  pointer-events: none;
}
.ro2-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e9c879 60%, #a9791f);
  box-shadow: 0 0 0 3px rgba(120,80,16,.6), 0 3px 6px rgba(0,0,0,.3);
  z-index: 4;
}
.ro2-man {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 276px;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 9px rgba(0,0,0,.42));
}
.ro2-man img {
  width: 100%;
  height: auto;
  display: block;
}
.ro2-man.spin { animation: ro2Spin 4.2s cubic-bezier(.12,.6,.06,1) both; }
@keyframes ro2Spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(var(--spin-to)); }
}

.game-play-stage-bombo {
  min-height: 372px;
  padding: 10px;
}
.game-bombo-scene {
  width: 100%;
  max-width: 334px;
  min-height: 350px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.55),
    0 26px 46px rgba(81,17,47,.22);
}
.game-bombo-hero {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1) 42%, rgba(81,17,47,.2) 100%),
    url("assets/bombo-templaris-sword.png") center / cover;
  opacity: .32;
  filter: blur(1px) saturate(.92);
  transform: scale(1.08);
}
.game-bombo-canvas {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 292px;
  height: 288px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.game-bombo-winners {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 8px;
  z-index: 3;
}
.game-bombo-winner-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.7);
  color: var(--magenta-ink);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(43,16,28,.18);
  backdrop-filter: blur(7px);
}
.game-play-stage-cards {
  min-height: 418px;
  padding: 14px 12px 6px;
  justify-content: flex-start;
  overflow: hidden;
}
.game-card-prompt {
  position: relative;
  z-index: 6;
  width: 100%;
  min-height: 36px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8f0714;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.game-card-prompt small {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--magenta);
  letter-spacing: 0;
}

/* glow of the felt table under the deck */
.game-card-felt {
  position: absolute;
  left: 50%;
  bottom: -56px;
  width: 480px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(160,26,94,.2), rgba(160,26,94,0) 64%);
  pointer-events: none;
  z-index: 0;
}

/* the fanned hand of cards */
.game-card-fan {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  align-self: stretch;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.game-card-fan.ready { animation: fanBreath 6.5s ease-in-out infinite; }

.game-card-3d {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: 106px;
  height: 150px;
  margin-left: -53px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: var(--z, 1);
  transform-style: preserve-3d;
  transform: translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform .58s cubic-bezier(.2,.85,.25,1), filter .3s ease, opacity .3s ease;
}
.game-card-fan.shuffle .game-card-3d:not(.revealed) {
  animation: cardDeal .62s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i) * 54ms);
}
.game-card-3d:not(.disabled):hover {
  transform: translate(var(--x), calc(var(--y) - 18px)) rotate(var(--rot)) scale(1.05);
  z-index: 40;
}
.game-card-3d:not(.disabled):active {
  transform: translate(var(--x), calc(var(--y) - 9px)) rotate(var(--rot)) scale(1.03);
}
.game-card-3d.disabled:not(.revealed) {
  cursor: default;
  opacity: .66;
  filter: brightness(.84) saturate(.78);
}

/* picked card: lifts out of the fan, flips, and grows into the winners row */
.game-card-3d.revealed {
  animation: none !important;
  transform: translate(var(--rev-x), var(--rev-y)) rotate(0deg) scale(var(--rev-scale, 1.36));
  z-index: 60;
  cursor: default;
  filter: drop-shadow(0 24px 30px rgba(120,20,74,.42));
}

.game-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.4,.16,.2,1);
}
.game-card-3d.revealed .game-card-inner { transform: rotateY(180deg); }

.game-card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    inset 0 0 0 2px rgba(255,231,158,.92),
    inset 0 0 0 3px rgba(140,20,74,.55),
    0 16px 26px rgba(81,17,47,.32);
}
.game-card-back {
  background:
    linear-gradient(180deg, rgba(81,17,47,.04), rgba(81,17,47,.36)),
    url("assets/game-card-back.png") center / cover;
}
.game-card-back::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  border: 1px solid rgba(255,224,150,.72);
  box-shadow: inset 0 0 18px rgba(0,0,0,.26);
  pointer-events: none;
}
/* sweeping holographic foil */
.game-card-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 32%, rgba(255,255,255,.55) 47%, rgba(255,206,238,.4) 52%, transparent 67%);
  background-size: 280% 280%;
  mix-blend-mode: screen;
  animation: cardSheen 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -300ms);
  pointer-events: none;
}
.game-card-front {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 14%, #fff, #fbf4f0 46%, #efd9d2),
    linear-gradient(150deg, rgba(198,18,34,.18), rgba(255,255,255,.2));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 12px 8px;
  text-align: center;
}
.game-card-front::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid rgba(198,18,34,.24);
  pointer-events: none;
}
.game-card-front-tag {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--magenta), #d8202f);
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(160,26,94,.34);
}
.game-card-front strong {
  max-width: 100%;
  color: #8f0714;
  font-size: 12px;
  line-height: 1.08;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.game-header-publish {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,.68);
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(81,17,47,.12);
}
.game-header-publish.published {
  color: var(--ok);
  cursor: default;
  opacity: .9;
}
.game-header-publish:disabled:not(.published) {
  cursor: default;
  opacity: .45;
}

@keyframes gameCarouselFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -6px; }
}
@keyframes gameWheel3DSpin {
  from { transform: rotateZ(0deg); }
  to { transform: rotateZ(var(--spin-to)); }
}
@keyframes rouletteLightPulse {
  from { opacity: .55; transform: rotate(calc(var(--i) * 20deg)) translateY(-124px) scale(.9); }
  to { opacity: 1; transform: rotate(calc(var(--i) * 20deg)) translateY(-124px) scale(1.4); }
}
@keyframes roWinnerIn {
  0% { opacity: 0; transform: translateY(16px) scale(.7); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes munecoRock {
  0%, 100% { transform: rotate(-11deg) translateY(0) scale(1); }
  50% { transform: rotate(11deg) translateY(-3px) scale(1.04); }
}
@keyframes munecoTwirl {
  to { transform: rotate(360deg); }
}
@keyframes roSpin {
  to { transform: rotate(360deg); }
}
@keyframes fanBreath {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-7px) rotate(.6deg); }
}
@keyframes cardDeal {
  0% { transform: translate(0, 54px) rotate(0deg) scale(.66); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1); opacity: 1; }
}
@keyframes cardSheen {
  0% { background-position: 150% 0%; opacity: 0; }
  42% { opacity: .85; }
  100% { background-position: -50% 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .fadein, .game-3d-card, .game-wheel-spin.spin,
  .game-card-fan, .game-card-fan.shuffle .game-card-3d, .game-card-3d, .game-card-sheen, .ro-pockets, .ro-winner, .ro-muneco-fig, .ro2-man.spin { animation: none !important; }
  .game-card-3d { transition: none !important; }
}

/* hoja modal */
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(43,26,35,0.34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  animation: fadein .22s ease both;
}
.sheet {
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  border-radius: 30px 30px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  animation: sheetup .32s cubic-bezier(.2,.8,.2,1) both;
}
.sheet::-webkit-scrollbar { width: 0; }
@keyframes sheetup { from{transform:translateY(100%)} to{transform:translateY(0)} }
.sheet-grab {
  width: 38px; height: 5px; border-radius: 999px;
  background: var(--hair-2);
  margin: 6px auto 8px;
}

/* visor de foto */
.photo-viewer {
  position: absolute;
  inset: 0;
  z-index: 120;
  background: #120812;
  color: #fff;
  animation: fadein .18s ease both;
}
.photo-viewer-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity;
}
.photo-viewer-scroll::-webkit-scrollbar { width: 0; height: 0; }
.photo-viewer-media {
  min-height: 100%;
  padding: 58px 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}
.photo-viewer-img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
}
.photo-viewer-close {
  position: absolute;
  top: 52px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(18,8,18,.46);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.photo-viewer-content {
  min-height: 58%;
  margin-top: -10px;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(180deg, rgba(252,246,249,.98), rgba(245,236,241,.98));
  color: var(--ink);
  scroll-snap-align: start;
}
.photo-admin-tools {
  padding: 0;
  background: transparent;
}

/* grid placeholder de imagen */
.imgslot {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(160,26,94,0.05) 0 9px, rgba(160,26,94,0.02) 9px 18px),
    #efe2ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.imgslot span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--magenta);
  opacity: 0.55;
  text-align: center;
  padding: 0 8px;
}
