/* showcase.css — 🎭 the character showcase sheet (js/showcase.js, 2026-10-30): one full-screen sheet for every picker (the
   entrance's «Soy nuevo», the PIN lobby, Mi perfil's «Elige tu personaje»). The character on a lit pedestal over the Dubai
   sky, like a game's character-select screen; its 3D canvas from js/zoco3d/stage.js on top of the same pedestal (the
   picture fades out under the first 3D frame); the name, the rarity chip (css/roster.css), one line and one state button.
   Everything starts at .dsc, so it never reaches the page under it. Reduced motion: nothing moves, the still picture. */
.dsc {
  --dsc-rojo: #5a1010; --dsc-oro: #b88b2c; --dsc-oro-claro: #e8c878; --dsc-paper: #fffdf8; --dsc-ink: #1c1a17; --dsc-soft: #5d5044;
  --dsc-night: #1a1240; --dsc-ease: cubic-bezier(.23, 1, .32, 1);
  position: fixed; inset: 0; z-index: 9600; display: flex; align-items: stretch; justify-content: center;
  background: rgba(16, 10, 34, .72); -webkit-tap-highlight-color: transparent;
  font-family: 'Noto Sans', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--dsc-ink);
}
body.dsc-lock { overflow: hidden; }
.dsc-card {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 480px; height: 100%; overflow: hidden auto;
  background: var(--dsc-paper); overscroll-behavior: contain;
}
@media (min-width: 700px) {
  .dsc { align-items: center; padding: 24px; }
  .dsc-card { height: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: 26px; box-shadow: 0 24px 60px rgba(10, 6, 30, .45); }
}
.dsc.is-in .dsc-card { animation: dscUp .34s var(--dsc-ease) both; }
@keyframes dscUp { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* the stage: the Dubai sky, a cone of light, the pedestal (Rojo Imperial with its gold rim), the character on it */
.dsc-stage {
  position: relative; flex: none; height: min(62vh, 470px); height: min(62dvh, 470px); min-height: 300px; overflow: hidden; background: var(--dsc-night);
  --pw: 210px;
}
.dsc-stage picture { position: absolute; inset: 0; }
.dsc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 70%; filter: saturate(1.05) brightness(.8); }
.dsc.is-shadow .dsc-bg, .dsc.is-earn .dsc-bg { filter: grayscale(.4) brightness(.32) hue-rotate(-20deg); }
.dsc-beam {
  position: absolute; left: 50%; top: 0; bottom: 46px; width: calc(var(--pw) * 1.2); transform: translateX(-50%); pointer-events: none;
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 240, 206, 0) 0%, rgba(255, 240, 206, .12) 40%, rgba(255, 236, 196, .3) 100%);
}
.dsc .zc-pod { position: absolute; left: 50%; bottom: 52px; width: 0; height: 0; }
.dsc-glow {
  position: absolute; left: calc(var(--pw) * -.8); bottom: calc(var(--pw) * -.02); width: calc(var(--pw) * 1.6); height: 300px; pointer-events: none;
  background: radial-gradient(ellipse 50% 72% at 50% 100%, rgba(255, 222, 146, .5), rgba(255, 214, 120, .14) 52%, rgba(255, 214, 120, 0) 74%);
}
.dsc.is-shadow .dsc-glow, .dsc.is-earn .dsc-glow { background: radial-gradient(ellipse 50% 72% at 50% 100%, rgba(255, 196, 64, .42), rgba(255, 196, 64, 0) 70%); }
.dsc-ped { position: absolute; left: calc(var(--pw) / -2); top: calc(var(--pw) * -.1); width: var(--pw); height: calc(var(--pw) * .31); }
.dsc-ped::before {
  content: ''; position: absolute; left: 0; right: 0; top: calc(var(--pw) * .1); height: calc(var(--pw) * .21);
  border-radius: 0 0 50% 50% / 0 0 calc(var(--pw) * .1) calc(var(--pw) * .1);
  background: linear-gradient(90deg, #2c0606, #681313 17%, #8f2626 47%, #681313 80%, #2c0606);
  box-shadow: inset 0 calc(var(--pw) * -.024) 0 var(--dsc-oro), 0 calc(var(--pw) * .035) calc(var(--pw) * .07) rgba(12, 4, 24, .42);
}
.dsc-ped-top {
  position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--pw) * .2); border-radius: 50%; overflow: hidden;
  background: radial-gradient(ellipse 58% 64% at 50% 42%, #fffdf6 0%, #f8edca 34%, #e8c878 72%, #c79c3e 100%);
  box-shadow: inset 0 0 0 calc(var(--pw) * .016) #f3da94, inset 0 calc(var(--pw) * -.02) calc(var(--pw) * .03) rgba(133, 99, 29, .5);
}
/* the character: standing on the pedestal's centre, as tall as the stage allows */
.dsc .zc-fig {
  position: absolute; left: -160px; bottom: calc(var(--pw) * -.03); width: 320px; height: min(44vh, 330px); height: min(44dvh, 330px);
  display: flex; align-items: flex-end; justify-content: center; transform-origin: 50% 100%; pointer-events: none;
}
.dsc-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; object-position: 50% 100%; -webkit-user-select: none; user-select: none; }
.dsc-img.ro-shadow { filter: brightness(0) drop-shadow(0 0 2px rgba(255, 220, 130, .95)) drop-shadow(0 0 16px rgba(255, 196, 64, .75)); }
.dsc-q {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none;
  font: 800 92px/1 'Baloo 2', 'Nunito', system-ui, sans-serif; color: #ffd36a; text-shadow: 0 0 22px rgba(255, 190, 60, .9), 0 3px 0 #6e4f0c;
}
@media (prefers-reduced-motion: no-preference) {
  .dsc .zc-pod.is-idle .zc-fig { animation: dscBreathe 3.8s cubic-bezier(.37, 0, .63, 1) infinite; }
  .dsc.is-shadow .dsc-q, .dsc.is-earn .dsc-q { animation: dscGlow 3.2s ease-in-out infinite; }
}
@keyframes dscBreathe { 0%, 100% { transform: none; } 50% { transform: scale(1.012, 1.03); } }
@keyframes dscGlow { 50% { opacity: .55; } }
/* 🧊 the 3D canvas over the stage (js/zoco3d/stage.js): the picture fades out under the first 3D frame */
.dsc .zc-3d {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; touch-action: pan-y; cursor: grab; z-index: 1;
  transition: opacity .45s var(--dsc-ease); -webkit-user-select: none; user-select: none;
}
.dsc .zc-3d:active { cursor: grabbing; }
.dsc .zc-3d:focus-visible { outline: 3px solid var(--dsc-oro-claro); outline-offset: -8px; }
.dsc .zc-stage.is-3d .zc-3d { opacity: 1; }
.dsc .zc-stage.has-3d .zc-fig { transition: opacity .35s var(--dsc-ease); }
.dsc .zc-stage.is-3d .zc-fig { opacity: 0; animation: none; }
.dsc .zc-3d-hint {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px;
  border-radius: 999px; background: rgba(22, 14, 52, .82); box-shadow: 0 4px 14px rgba(10, 6, 30, .35), inset 0 0 0 2px rgba(243, 218, 148, .55);
  color: #fff7e2; font: 800 16px/1.15 'Noto Sans', 'Nunito', system-ui, sans-serif; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s var(--dsc-ease), transform .3s var(--dsc-ease);
}
.dsc .zc-3d-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.dsc .zc-3d-hand { display: flex; width: 40px; height: 40px; }
@media (prefers-reduced-motion: no-preference) {
  .dsc .zc-3d-hint.is-spin.is-on .zc-3d-hand { animation: dscSwipe 1.5s cubic-bezier(.45, 0, .25, 1) infinite; }
  .dsc .zc-3d-hint.is-tap.is-on .zc-3d-hand { animation: dscTap 1.1s cubic-bezier(.45, 0, .25, 1) infinite; }
}
@keyframes dscSwipe { 0%, 100% { transform: translateX(-7px) rotate(-8deg); } 50% { transform: translateX(9px) rotate(8deg); } }
@keyframes dscTap { 0%, 100% { transform: none; } 40% { transform: translateY(3px) scale(.86); } }
/* the top row: the big ✕ (a stage-top, so the 3D canvas goes under it) */
.dsc .zc-stage-top { position: absolute; z-index: 3; top: 12px; right: 12px; }
.dsc-x {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 253, 248, .94); color: var(--dsc-rojo); box-shadow: 0 4px 0 rgba(28, 26, 23, .25), inset 0 0 0 2px var(--dsc-oro-claro);
  transition: transform .14s var(--dsc-ease);
}
.dsc-x:active { transform: scale(.94); }
.dsc-x:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* the words under the stage */
.dsc-info { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 20px calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.dsc-chip { margin: 0; }
.dsc-chip .ro-chip { height: 22px; padding: 0 10px; font-size: 12.5px; }
.dsc-n { margin: 0; font: 800 28px/1.1 'Baloo 2', 'Nunito', system-ui, sans-serif; color: var(--dsc-ink); }
.dsc-n:focus { outline: none; }
.dsc-line { margin: 0 0 6px; max-width: 34ch; font: 600 15px/1.4 'Noto Sans', 'Nunito', system-ui, sans-serif; color: var(--dsc-soft); }
.dsc-act { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 340px; margin-top: 4px; }
.dsc-pick, .dsc-souk {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 16px; border: 0; cursor: pointer;
  font: 800 19px/1 'Baloo 2', 'Nunito', system-ui, sans-serif; text-decoration: none; transition: transform .12s var(--dsc-ease), box-shadow .12s var(--dsc-ease);
}
.dsc-pick { background: linear-gradient(180deg, #2f8f5b, #1f6b45); color: #fff; box-shadow: 0 5px 0 #144a30; }
.dsc-pick:active, .dsc-souk:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.dsc-souk { background: linear-gradient(180deg, #f3d27a, #c9971c); color: #2a1d05; box-shadow: 0 5px 0 #8a6414; }
.dsc-pick:focus-visible, .dsc-souk:focus-visible { outline: 3px solid var(--dsc-rojo); outline-offset: 3px; }
.dsc-is { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 52px; border-radius: 16px; background: #eef6f0; color: #1f6b45; font: 800 17px/1.2 'Baloo 2', 'Nunito', system-ui, sans-serif; }
.dsc-price { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 16px; background: #f7f1e4; box-shadow: inset 0 0 0 2px #e2d4b4; font: 700 16px/1.3 'Noto Sans', 'Nunito', system-ui, sans-serif; color: var(--dsc-ink); }
.dsc-price b { font-weight: 900; }
.dsc-price.is-gold { background: #fff4d1; box-shadow: inset 0 0 0 2px #d9a93a; color: #5a3f08; }
.dsc-coin { width: 22px; height: 22px; flex: none; }
.dsc-note { margin: 0; font: 600 13.5px/1.4 'Noto Sans', 'Nunito', system-ui, sans-serif; color: var(--dsc-soft); }
/* a shadow's sheet: the night card */
.dsc.is-shadow .dsc-card, .dsc.is-earn .dsc-card { background: linear-gradient(180deg, #2a1d45, #1d1631 60%); }
.dsc.is-shadow .dsc-n, .dsc.is-earn .dsc-n { color: #fff4d6; }
.dsc.is-shadow .dsc-line, .dsc.is-earn .dsc-line, .dsc.is-shadow .dsc-note, .dsc.is-earn .dsc-note { color: #e9dcc0; }
/* a short phone (360 × 640): the stage gives way so the button stays on the first screen */
@media (max-height: 680px) {
  .dsc-stage { height: 52vh; height: 52dvh; min-height: 260px; }
  .dsc .zc-fig { height: 36vh; height: 36dvh; }
  .dsc-n { font-size: 24px; }
}
/* (shots 2026-10-30) the name takes the focus for a screen reader, never a box around it; the sheet covers the page's
   floating «English» pill (z 9500) */
body .dsc .dsc-n:focus, body .dsc .dsc-n:focus-visible { outline: none !important; box-shadow: none !important; }
