/* ---------- hero ---------- */
.hero { padding-top: clamp(1.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: center; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lede { font-size: 1.1rem; color: var(--fg-dim); max-width: 40em; }
.hero-art { display: grid; justify-items: center; gap: 1.2rem; }
.hero-barrel { width: min(360px, 80vw); filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.hero-barrel .rifling { transform-origin: 200px 200px; animation: spin 14s linear infinite; }
.hero-man { animation: walk 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes walk { 0%, 100% { transform: translateX(-22px); } 50% { transform: translateX(22px); } }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-barrel { width: min(220px, 60vw); }
}
.slate { margin-top: 1.4rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: 1rem; position: relative; }
.slate::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 10px; border-radius: var(--r) var(--r) 0 0;
  background: repeating-linear-gradient(-45deg, var(--fg) 0 14px, var(--bg) 14px 28px); opacity: .85;
}
.slate-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; padding-top: .4rem; }
@media (max-width: 520px) { .slate-row { grid-template-columns: 1fr; } }
.slate-field { display: grid; gap: .3rem; align-content: start; }
.label { font-weight: 600; display: block; }
.best-line:empty { display: none; }
.best-line { margin: 0; }
.linklike { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }

/* ---------- stage ---------- */
.stage-sec { padding-top: 1rem; }
.stage-top { display: flex; align-items: center; gap: .8rem; justify-content: space-between; margin-bottom: .8rem; }
.small-btn { min-height: 38px; padding: .5rem .9rem; font-size: .85rem; }
.takes-track { display: flex; gap: .35rem; flex-wrap: wrap; }
.takes-track span {
  font: 700 .7rem var(--f-mono); padding: .3rem .5rem; border-radius: 6px; border: 1px solid var(--line); color: var(--fg-dim);
}
.takes-track span.now { border-color: var(--accent); color: var(--accent); }
.takes-track span.done { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.stage {
  position: relative; min-height: 520px; border-radius: 18px; overflow: hidden;
  background: #08080a; color: #f3eee3; border: 1px solid var(--line); box-shadow: var(--shadow);
  outline: none;
}
.stage .inner { padding: clamp(1rem, 4vw, 2rem); display: grid; gap: 1rem; min-height: 520px; align-content: center; }
.stage h2, .stage h3 { color: #f3eee3; }
.stage .dimtext { color: #b9b2a3; }
.stage .btn.ghost { color: #f3eee3; border-color: rgba(243,238,227,.25); }
.stage .accent { color: #d4ae5a; }
.stage .btn { --accent: #d4ae5a; background: #d4ae5a; border-color: #d4ae5a; color: #18130a; }
.stage .btn.ghost { background: transparent; }

/* clapper */
.clap { text-align: center; display: grid; gap: .8rem; justify-items: center; }
.clapboard {
  width: min(420px, 92%); background: #111116; border: 2px solid #f3eee3; border-radius: 8px; font-family: var(--f-mono); text-align: left; overflow: hidden;
}
.clapboard .sticks {
  height: 34px; background: repeating-linear-gradient(-45deg, #f3eee3 0 18px, #111116 18px 36px);
  transform-origin: 0 100%; animation: clap .6s .2s ease-in both;
}
@keyframes clap { 0% { transform: rotate(-18deg); } 70% { transform: rotate(0); } 85% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
.clapboard .rows { display: grid; grid-template-columns: 1fr 1fr; }
.clapboard .rows div { border-top: 1px solid #f3eee3; padding: .4rem .7rem; font-size: .8rem; }
.clapboard .rows div:nth-child(odd) { border-right: 1px solid #f3eee3; }
.clapboard .rows b { display: block; font-size: 1.05rem; color: #d4ae5a; }
.clapboard .rows .wide { grid-column: 1 / -1; border-right: 0 !important; }
.howto { max-width: 34em; margin: 0 auto; color: #cfc8b9; }
.howto li { margin: .25rem 0; }
.keys { font: 700 .75rem var(--f-mono); border: 1px solid rgba(243,238,227,.35); border-radius: 5px; padding: .05rem .35rem; }

/* gun barrel */
.gb-wrap { position: relative; display: grid; place-items: center; min-height: 520px; cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.gb-svg { width: min(500px, 96%); height: auto; display: block; }
.gb-svg .barrel-rot { transform-origin: 250px 250px; transition: transform .6s; }
.gb-hud { position: absolute; top: .8rem; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 1rem; font: 700 .85rem var(--f-mono); color: #cfc8b9; pointer-events: none; }
.gb-msg { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font: 700 1.1rem var(--f-mono); letter-spacing: .1em; pointer-events: none; }
.gb-blood { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#a10d14, #6a070c); clip-path: inset(0 0 100% 0); }
.gb-blood.run { animation: blood 1.4s ease-in forwards; }
@keyframes blood { to { clip-path: inset(0 0 0 0); } }
.gb-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.gb-flash.red { background: radial-gradient(circle, rgba(255,40,40,.0) 30%, rgba(255,30,30,.55) 100%); animation: flash .5s forwards; }
.gb-flash.gold { background: radial-gradient(circle, rgba(255,215,120,.0) 30%, rgba(255,215,120,.5) 100%); animation: flash .45s forwards; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.gb-dots { position: absolute; top: 50%; left: 0; display: flex; gap: 18px; transform: translateY(-50%); }
.gb-dots i { width: 18px; height: 18px; border-radius: 50%; background: #f3eee3; display: block; }

/* casino */
.felt {
  background: radial-gradient(ellipse at 50% 30%, #1d5a45, #0d2a21 75%);
  border-radius: 14px; padding: 1rem; display: grid; gap: 1rem; justify-items: center; border: 6px solid #3d2814;
  box-shadow: inset 0 0 40px rgba(0,0,0,.5);
}
.cards { display: flex; gap: .6rem; justify-content: center; min-height: 120px; }
.pcard {
  width: 78px; height: 112px; border-radius: 9px; background: #fbf7ee; color: #141318; position: relative; font-family: var(--f-display);
  box-shadow: 0 6px 14px rgba(0,0,0,.4); animation: deal .25s ease-out both;
}
.pcard.red { color: #b0121b; }
.pcard .r { position: absolute; top: 6px; left: 8px; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.pcard .s { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; }
.pcard .r2 { position: absolute; bottom: 6px; right: 8px; font-size: 1.3rem; font-weight: 700; transform: rotate(180deg); line-height: 1; }
@keyframes deal { from { transform: translateY(-30px) rotate(-8deg); opacity: 0; } }
.numpad { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; width: min(420px, 100%); }
.numpad button {
  font: 700 1.3rem var(--f-mono); min-height: 52px; border-radius: 10px; border: 1px solid rgba(243,238,227,.3);
  background: rgba(0,0,0,.35); color: #f3eee3; cursor: pointer; touch-action: manipulation;
}
.numpad button:hover { border-color: #d4ae5a; }
.numpad button.ok { background: #2f8f62; border-color: #6fd3a3; }
.numpad button.no { background: #8f2f2f; border-color: #ff7b7b; }
.timer-bar { height: 6px; width: 100%; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: 100%; background: #d4ae5a; transform-origin: 0 50%; }
.hud { display: flex; justify-content: space-between; gap: 1rem; font: 700 .85rem var(--f-mono); color: #cfc8b9; flex-wrap: wrap; }
.verdict-line { min-height: 1.6em; text-align: center; font-weight: 600; }
.bond-line { font-family: var(--f-display); font-size: clamp(1.6rem, 6vw, 2.6rem); text-align: center; color: #f3eee3; line-height: 1.2; }
.bond-line em { color: #d4ae5a; }

/* vesper */
.bar-scene { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: end; }
@media (max-width: 560px) { .bar-scene { grid-template-columns: 1fr; justify-items: center; } }
.shaker { position: relative; width: 120px; height: 300px; border: 3px solid #cfd3d8; border-top-width: 6px; border-radius: 10px 10px 40px 40px; background: rgba(255,255,255,.05); overflow: hidden; }
.shaker .liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
.shaker .liquid div { width: 100%; }
.shaker .ticks { position: absolute; inset: 0; }
.shaker .ticks span { position: absolute; left: 0; width: 26px; border-top: 2px solid rgba(255,255,255,.55); font: 700 .65rem var(--f-mono); color: #eee; padding-left: 30px; line-height: 0; }
.shaker .target { position: absolute; left: 0; right: 0; border-top: 2px dashed #d4ae5a; }
.shaker.shaking { animation: shk .12s; }
@keyframes shk { 0%,100% { transform: rotate(0); } 33% { transform: rotate(-8deg); } 66% { transform: rotate(8deg); } }
.bottles { display: grid; gap: .7rem; }
.bottle-row { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: 12px; border: 1px solid rgba(243,238,227,.18); }
.bottle-row.active { border-color: #d4ae5a; background: rgba(212,174,90,.08); }
.bottle-row.done { opacity: .6; }
.bottle-ico { width: 34px; height: 60px; flex: none; }
.bottle-row .meta { flex: 1; }
.bottle-row .meta b { display: block; }
.bottle-row .meta small { color: #b9b2a3; }
.pour-btn { min-width: 120px; }
.thermo { width: 100%; height: 26px; border-radius: 13px; background: linear-gradient(90deg, #3b7bd9 0%, #79c4f2 18%, #e8e2d2 40%, #e0a35a 100%); position: relative; }
.thermo .zone { position: absolute; top: -4px; bottom: -4px; border: 2px solid #fff; border-radius: 8px; }
.thermo .needle { position: absolute; top: -8px; bottom: -8px; width: 4px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px #000; transition: left .1s; }
.peel-track { width: 100%; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.peel-track .zone { position: absolute; top: 0; bottom: 0; background: rgba(230,200,60,.35); border-left: 2px solid #f0d48f; border-right: 2px solid #f0d48f; }
.peel-track .knife { position: absolute; top: 4px; bottom: 4px; width: 6px; background: #f3eee3; border-radius: 3px; }

/* q branch */
.gadgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 560px) { .gadgets { grid-template-columns: repeat(2, 1fr); } }
.gadget {
  border: 1px solid rgba(243,238,227,.2); border-radius: 12px; padding: .7rem; background: rgba(255,255,255,.04); text-align: left; color: #f3eee3; font: inherit;
  display: grid; gap: .2rem; animation: deal .3s both;
}
.gadget .ico { font-size: 1.8rem; line-height: 1; }
.gadget b { font-size: .95rem; }
.gadget small { color: #cfc8b9; font-size: .8rem; line-height: 1.3; }
button.gadget { cursor: pointer; min-height: 80px; touch-action: manipulation; }
button.gadget:hover { border-color: #d4ae5a; }
button.gadget.ok { background: #2f8f62; border-color: #6fd3a3; }
button.gadget.no { background: #8f2f2f; }
.situation { font-family: var(--f-display); font-size: clamp(1.2rem, 4vw, 1.6rem); text-align: center; line-height: 1.3; }
.q-note { font: 700 .75rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #d4ae5a; text-align: center; }

/* quip */
.quip-scene { font-family: var(--f-display); font-size: clamp(1.15rem, 4vw, 1.55rem); text-align: center; line-height: 1.35; max-width: 30em; margin: 0 auto; }
.quips { display: grid; gap: .55rem; max-width: 560px; margin: 0 auto; width: 100%; }
.quips button {
  font: 600 1.02rem var(--f-body); text-align: left; padding: .9rem 1rem; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(243,238,227,.22); background: rgba(255,255,255,.04); color: #f3eee3; min-height: 52px; touch-action: manipulation;
}
.quips button:hover { border-color: #d4ae5a; }
.quips button .k { font: 700 .75rem var(--f-mono); color: #d4ae5a; margin-right: .5rem; }
.quips button.s3 { background: #2f8f62; border-color: #6fd3a3; }
.quips button.s1 { background: #7a6420; border-color: #d4ae5a; }
.quips button.s0 { background: #8f2f2f; border-color: #ff7b7b; }

/* clock */
.bomb { display: grid; justify-items: center; gap: 1rem; }
.bomb-face {
  background: #1a1a1f; border: 4px solid #555; border-radius: 16px; padding: 1rem 1.4rem; box-shadow: inset 0 0 20px #000;
  display: grid; justify-items: center; gap: .4rem; position: relative;
}
.bomb-face::before, .bomb-face::after { content: ""; position: absolute; top: 50%; width: 30px; height: 8px; border-radius: 4px; }
.bomb-face::before { left: -32px; background: #c4161f; }
.bomb-face::after { right: -32px; background: #2b62c9; }
.digits { font: 700 clamp(4rem, 20vw, 8rem)/1 var(--f-mono); color: #ff3b3b; text-shadow: 0 0 18px rgba(255,40,40,.6); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.digits.gold { color: #f0d48f; text-shadow: 0 0 18px rgba(240,212,143,.6); }
.digits.dead { color: #555; text-shadow: none; }
.stop-btn { width: min(320px, 90%); }
.boom { position: absolute; inset: 0; background: radial-gradient(circle, #fff 0%, #ffcc66 25%, #c4161f 55%, transparent 80%); opacity: 0; pointer-events: none; }
.boom.go { animation: flash 1s forwards; }

/* take result */
.take-score { text-align: center; display: grid; gap: .5rem; justify-items: center; }
.big-score { font: 700 clamp(3.5rem, 15vw, 6rem)/1 var(--f-display); color: #d4ae5a; }
.grade { font: 700 .9rem var(--f-mono); letter-spacing: .2em; padding: .3rem .8rem; border: 1px solid #d4ae5a; border-radius: 999px; color: #d4ae5a; }
.note { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; max-width: 30em; color: #e9e2d2; }
.breakdown { font: .85rem var(--f-mono); color: #cfc8b9; list-style: none; padding: 0; margin: 0; }

/* ---------- report ---------- */
.report { display: grid; gap: 1.2rem; }
.report-head { text-align: center; display: grid; gap: .4rem; justify-items: center; }
.stamp {
  display: inline-block; font: 700 clamp(1.6rem, 7vw, 2.6rem) var(--f-mono); letter-spacing: .12em; padding: .3rem 1rem;
  border: 4px solid currentColor; border-radius: 8px; transform: rotate(-4deg); animation: stamp .45s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes stamp { from { transform: rotate(-4deg) scale(2.4); opacity: 0; } }
.stamp.cast { color: #6fd3a3; } .stamp.callback { color: #d4ae5a; } .stamp.henchman { color: #e48a6a; } .stamp.extra { color: #a7a196; } .stamp.next { color: #ff6b6b; }
.bars { display: grid; gap: .45rem; }
.barrow { display: grid; grid-template-columns: 9.5em 1fr 2.6em; gap: .6rem; align-items: center; font-size: .92rem; }
.barrow .b { height: 12px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.barrow .b i { display: block; height: 100%; background: linear-gradient(90deg, #a07c2c, #f0d48f); border-radius: 6px; transform-origin: 0 50%; animation: grow .8s ease-out both; }
@keyframes grow { from { transform: scaleX(0); } }
.barrow .v { font: 700 .9rem var(--f-mono); text-align: right; }
@media (max-width: 420px) { .barrow { grid-template-columns: 7.2em 1fr 2.4em; font-size: .82rem; } }
.match { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: rgba(255,255,255,.05); border-radius: 14px; padding: 1rem; border: 1px solid rgba(243,238,227,.14); }
.match .swatch { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 1.4rem var(--f-display); color: #0c0c0f; }
.film-title { text-align: center; font-family: var(--f-display); }
.film-title small { display: block; font: 700 .7rem var(--f-mono); letter-spacing: .2em; color: #b9b2a3; text-transform: uppercase; }
.film-title b { font-size: clamp(1.5rem, 6vw, 2.2rem); color: #f3eee3; font-style: italic; }
.stage canvas { width: 100%; max-width: 420px; border-radius: 12px; justify-self: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); }

/* shared view (outside stage, themed) */
.shared { padding-bottom: 0; }
.shared .stage-like { background: #08080a; color: #f3eee3; border-radius: 18px; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); }

/* ---------- practice cards ---------- */
.take-card { display: grid; gap: .4rem; text-align: left; cursor: pointer; font: inherit; color: var(--fg); }
.take-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.take-card { transition: transform .15s, border-color .15s; }
.take-card .n { font: 700 .72rem var(--f-mono); color: var(--accent); letter-spacing: .14em; }
.take-card h3 { margin: 0; }
.take-card p { margin: 0; color: var(--fg-dim); font-size: .92rem; }
.take-card .best { font: 700 .8rem var(--f-mono); color: var(--fg-dim); }
.take-card .ico { font-size: 1.6rem; }

.fact-tiles { grid-template-columns: 1fr 1fr; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: .3rem; }
.tile b { font: 700 2rem var(--f-display); color: var(--accent); }
.tile span { color: var(--fg-dim); font-size: .9rem; }
