/* Quiz Night — görsel kimlik
   Salon kadifesi zemin, marki tabelası, bilet kâğıdı. Renkleri ve yazıları buradan değiştir. */
:root {
  --velvet: #1d1424;
  --velvet-2: #271b30;
  --velvet-3: #33243d;
  --velvet-4: #3f2d4a;
  --curtain: #5a1f2e;
  --line: #4a3754;
  --gold: #f3c35b;
  --gold-2: #ffd98a;
  --gold-ink: #3a2608;
  --paper: #efe3cc;
  --paper-2: #e4d4b6;
  --ink: #2a1c22;
  --ink-2: #6a5660;
  --text: #f4ece0;
  --muted: #b9a9bd;
  --lime: #d7ef82;
  --lime-ink: #1f2a07;
  --coral: #ff7d68;
  --coral-ink: #3b0d06;
  --danger: #d93a3a;
  --danger-2: #e85151;
  --danger-ink: #fff4f2;
  --blank: #a7aec2;
  --d-orta: #8fc7a2;
  --d-zor: #f3c35b;
  --d-uzman: #e9787d;

  --f-display: 'Bahnschrift SemiCondensed', 'Bahnschrift', 'Avenir Next Condensed', 'Roboto Condensed', sans-serif-condensed, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --f-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --f-ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Retro salon katmanı: 1950'ler sinema tabelası */
  --f-retro: 'QN Shrikhand', 'Cooper Black', 'Arial Rounded MT Bold', var(--f-display);
  --f-script: 'QN Yellowtail', 'Snell Roundhand', 'Brush Script MT', cursive;
  --f-round: 'QN Fredoka', 'Avenir Next Rounded', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --cherry: #b4263c;
  --cherry-2: #7d1427;
  --cherry-3: #4b0a18;
  --neon: #ff8fbf;
  --neon-glow: #ff3d8e;
  --cream: #fff3dc;
  --plum-lip: #150c1b;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 28% -120px, rgba(243, 195, 91, 0.12), transparent 70%),
    linear-gradient(180deg, #24182c 0, var(--velvet) 420px);
  background-color: var(--velvet);
  color: var(--text);
  font: 16px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
body.has-dialog {
  overflow: hidden;
}
img,
svg {
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
button:disabled {
  cursor: default;
}
a {
  color: var(--gold-2);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.warn {
  color: var(--gold-2);
}
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 10px 14px;
  border-radius: var(--r-s);
  z-index: 100;
  font-weight: 700;
}
.skip:focus {
  top: 8px;
}

/* ---------- Düğmeler: yumuşak, basılabilen 3D hap düğmeler ---------- */
.btn {
  --btn-bg: #3a2b47;
  --btn-fg: var(--cream);
  --lip: var(--plum-lip);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.62em 1.35em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.15 var(--f-round);
  letter-spacing: 0.01em;
  text-decoration: none;
  isolation: isolate;
  box-shadow:
    0 5px 0 var(--lip),
    0 12px 20px -10px rgba(0, 0, 0, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.22s var(--spring), box-shadow 0.22s var(--spring), filter 0.2s;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 2px 8% 45%;
  border-radius: 999px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 75%);
  pointer-events: none;
  z-index: -1;
}
.btn:disabled::after {
  display: none;
}
@media (hover: hover) {
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 var(--lip),
    0 16px 24px -10px rgba(0, 0, 0, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
}
.btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 var(--lip),
    0 4px 8px -4px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transition-duration: 0.06s;
}
.btn:disabled {
  --btn-bg: #3a2f42;
  --btn-fg: var(--muted);
  --lip: #1e1524;
  cursor: default;
  filter: saturate(0.4);
}
.btn-lg {
  min-height: 54px;
  padding: 0.72em 1.7em;
  font-size: 1.08rem;
}
.btn-primary {
  --btn-bg: linear-gradient(180deg, #ffdc84, #f2b945);
  --btn-fg: #3a2608;
  --lip: #a8721f;
}
.btn-ghost {
  --btn-bg: linear-gradient(180deg, #45335a, #33243f);
  --btn-fg: var(--cream);
  --lip: var(--plum-lip);
}
.btn-ticket {
  --btn-bg: linear-gradient(180deg, #fff6e3, #ecdcbc);
  --btn-fg: var(--ink);
  --lip: #b39a6e;
}
.btn-danger {
  --btn-bg: linear-gradient(180deg, #f2625d, #d33a3f);
  --btn-fg: #fff6f2;
  --lip: #861b25;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 36px;
  padding: 0.38em 1em;
  border-radius: 999px;
  background: rgba(255, 243, 220, 0.07);
  color: var(--gold-2);
  font: 600 0.92rem/1.1 var(--f-round);
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(10, 5, 14, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring), background-color 0.2s;
}
@media (hover: hover) {
.link-btn:hover {
  background: rgba(255, 243, 220, 0.13);
  transform: translateY(-1px);
}
}
.link-btn:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 rgba(10, 5, 14, 0.75);
}
.link-btn.small {
  font-size: 0.82rem;
  min-height: 30px;
  padding: 0.3em 0.85em;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #45335a, #33243f);
  color: var(--cream);
  box-shadow: 0 4px 0 var(--plum-lip), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring);
}
@media (hover: hover) {
.icon-btn:hover {
  transform: translateY(-2px) rotate(-6deg);
}
}
.icon-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--plum-lip);
}

/* ---------- Üst çubuk ---------- */
.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-clap {
  width: 46px;
  height: 46px;
  flex: none;
  filter: drop-shadow(0 4px 0 rgba(10, 5, 14, 0.8)) drop-shadow(0 0 14px rgba(243, 195, 91, 0.25));
  transition: transform 0.3s var(--spring);
}
.clapper-arm {
  transform-box: view-box;
  transform-origin: 9px 20px;
  transform: rotate(-12deg);
  transition: transform 0.35s var(--spring);
}
@media (hover: hover) {
.brand:hover .brand-clap {
  transform: rotate(-5deg) scale(1.06);
}
}
@media (hover: hover) {
.brand:hover .clapper-arm {
  transform: rotate(-26deg);
}
}
.brand:active .clapper-arm {
  transform: rotate(0deg);
  transition-duration: 0.08s;
}
.brand-clap .clapper-arm {
  animation: brand-clap 4.5s 1.2s infinite;
}
.brand-clap {
  animation: brand-hop 4.5s 1.2s infinite;
}
.brand .wm-night {
  animation: neon 6s 0.8s infinite;
}
@keyframes brand-hop {
  0%,
  84%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  88% {
    translate: 0 -4px;
    rotate: -5deg;
  }
  92% {
    translate: 0 1px;
    rotate: 1deg;
  }
  96% {
    translate: 0 0;
    rotate: 0deg;
  }
}
@keyframes brand-clap {
  0%,
  86%,
  100% {
    transform: rotate(-12deg);
  }
  89% {
    transform: rotate(-30deg);
  }
  92% {
    transform: rotate(0deg);
  }
  95% {
    transform: rotate(-16deg);
  }
}
.brand-name {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.wm-quiz {
  font: 400 1.45rem/1 var(--f-retro);
  color: var(--cream);
  text-shadow: 0 2px 0 #c9a25e, 0 3px 0 #8a6528, 0 6px 10px rgba(0, 0, 0, 0.55);
}
.wm-night {
  font: 400 1.75rem/1 var(--f-script);
  color: var(--neon);
  margin-left: 0.12em;
  transform: rotate(-6deg) translateY(2px);
  display: inline-block;
  text-shadow: 0 0 4px rgba(255, 143, 191, 0.9), 0 0 14px rgba(255, 61, 142, 0.75), 0 0 28px rgba(255, 61, 142, 0.45);
}
.topbar-room {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.room-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--velvet-2);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-chip b {
  font-family: var(--f-display);
  letter-spacing: 0.12em;
  color: var(--gold-2);
}
.conn {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blank);
  flex: none;
}
.conn-online,
.conn-local {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(215, 239, 130, 0.7);
}
.conn-reconnecting,
.conn-connecting {
  background: var(--gold);
}
.conn-failed,
.conn-closed,
.conn-off {
  background: var(--coral);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
main:focus {
  outline: none;
}
.section-title {
  font: 700 clamp(1.6rem, 3.2vw, 2.3rem) / 1.1 var(--f-display);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

/* ---------- Kahraman: perdeli salon, 3D klaket ---------- */
.theater {
  --tx: 0;
  --ty: 0;
  --open: 0.13;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 6px calc(-1 * var(--gutter)) 28px;
  padding: 104px clamp(28px, 8.5vw, 110px) 150px;
  border-radius: 44px 44px 24px 24px;
  background:
    radial-gradient(ellipse 62% 56% at 50% 40%, rgba(255, 226, 170, 0.12), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 30%, #3a2850 0%, #251833 55%, #140b1b 100%);
  box-shadow:
    inset 0 0 0 7px #2a1b33,
    inset 0 0 0 10px #c99a42,
    inset 0 0 0 12px #6b4a1c,
    inset 0 0 60px 20px rgba(0, 0, 0, 0.55),
    0 40px 80px -40px #000;
}
.th-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.th-beam {
  position: absolute;
  left: 50%;
  top: -6%;
  width: 140%;
  height: 120%;
  transform: translateX(-50%);
  background: conic-gradient(
    from 180deg at 50% 0%,
    transparent 158deg,
    rgba(255, 236, 196, 0.07) 168deg,
    rgba(255, 240, 205, 0.15) 180deg,
    rgba(255, 236, 196, 0.07) 192deg,
    transparent 202deg
  );
  filter: blur(8px);
  animation: beam 4.5s infinite;
}
@keyframes beam {
  0%,
  100% {
    opacity: 0.95;
  }
  40% {
    opacity: 0.8;
  }
  42% {
    opacity: 1;
  }
  70% {
    opacity: 0.88;
  }
}
.th-dust i {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: -10px;
  width: calc(var(--s) * 2px);
  height: calc(var(--s) * 2px);
  border-radius: 50%;
  background: rgba(255, 240, 210, 0.75);
  box-shadow: 0 0 6px rgba(255, 240, 210, 0.6);
  animation: dust var(--d) linear var(--delay) infinite;
}
@keyframes dust {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translate3d(40px, -620px, 0);
    opacity: 0;
  }
}

/* Saçak (valans) ve ampul dizisi */
.th-valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 40%),
    repeating-linear-gradient(90deg, var(--cherry-2) 0 6px, var(--cherry) 18px, #c93a50 24px, var(--cherry) 30px, var(--cherry-2) 44px);
  box-shadow: 0 4px 0 #c99a42, 0 7px 0 #6b4a1c, 0 16px 24px rgba(0, 0, 0, 0.5);
}
.th-valance::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 26px;
  margin-top: 7px;
  background: radial-gradient(ellipse 30px 24px at 50% 0, var(--cherry-2) 0 96%, transparent 100%) 0 0 / 60px 26px repeat-x;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45));
}
.th-bulbs {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.th-bulbs i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe9, var(--gold-2) 55%, #e0a43a);
  box-shadow: 0 0 10px 2px rgba(255, 217, 138, 0.8);
  animation: bulb 1.8s calc(var(--i) * -0.07s) infinite steps(1);
}
@keyframes bulb {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
    box-shadow: 0 0 3px rgba(255, 217, 138, 0.3);
  }
}

/* Perdeler: açılış anı, sonra yanlarda toplanmış kadife */
.th-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 22%, transparent 80%, rgba(0, 0, 0, 0.45)),
    repeating-linear-gradient(90deg, #5c0e1c 0, #9c2034 12px, #cf3d53 19px, #a1233a 26px, #6a1121 38px);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}
.th-curtain-l {
  left: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--open));
  border-bottom-right-radius: 100% 26%;
}
.th-curtain-r {
  right: 0;
  transform-origin: 100% 50%;
  transform: scaleX(var(--open));
  border-bottom-left-radius: 100% 26%;
}
.theater.is-intro .th-curtain {
  animation: curtain-open 1.7s cubic-bezier(0.7, 0, 0.18, 1) 0.2s both;
}
@keyframes curtain-open {
  0% {
    transform: scaleX(1);
    border-radius: 0;
  }
  18% {
    transform: scaleX(0.98);
  }
  100% {
    transform: scaleX(var(--open));
  }
}

/* Sahne: klaket + perdedeki yazı */
.th-stage {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.theater.is-intro .th-stage {
  animation: stage-in 1.1s var(--ease-out) 1.1s both;
}
@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.slate-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 46px;
  perspective: 1000px;
}
.slate {
  position: relative;
  display: block;
  width: min(100%, 470px);
  text-align: left;
  color: var(--cream);
  cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateX(calc(7deg - var(--ty) * 9deg)) rotateY(calc(-9deg + var(--tx) * 15deg));
  transition: transform 0.7s var(--spring);
  animation:
    slate-float 6.5s ease-in-out infinite,
    slate-sway 11s ease-in-out infinite;
}
@keyframes slate-sway {
  0%,
  100% {
    rotate: y -5deg;
  }
  50% {
    rotate: y 6deg;
  }
}
@keyframes slate-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
.slate:focus-visible {
  outline-offset: 10px;
  border-radius: 28px;
}
.slate-board {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 0 24px 22px;
  border-radius: 26px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #3c2b48, #241830);
  border: 4px solid #e9b955;
  box-shadow:
    0 2px 0 #1b1122,
    0 4px 0 #1b1122,
    0 6px 0 #170e1d,
    0 8px 0 #170e1d,
    0 10px 0 #120a17,
    0 12px 0 #120a17,
    0 40px 60px -22px rgba(0, 0, 0, 0.85),
    inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.slate-bar {
  height: 34px;
  margin: 0 -24px;
  border-radius: 21px 21px 0 0;
  border-bottom: 4px solid #e9b955;
  background: repeating-linear-gradient(-58deg, #fff3dc 0 18px, #2a1d33 18px 36px);
}
.slate-arm {
  position: absolute;
  left: -4px;
  right: -4px;
  top: -44px;
  height: 42px;
  border-radius: 16px;
  border: 4px solid #e9b955;
  background: repeating-linear-gradient(58deg, #fff3dc 0 18px, #2a1d33 18px 36px);
  box-shadow: 0 5px 0 #6b4a1c, 0 14px 20px -12px rgba(0, 0, 0, 0.7);
  transform-origin: 20px 100%;
  transform: rotate(-11deg);
  transition: transform 0.4s var(--spring);
  animation: arm-idle 6s 3s infinite;
}
.slate-hinge {
  position: absolute;
  left: 6px;
  bottom: -14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9b0, #e9b955 55%, #8a6528);
  box-shadow: 0 2px 0 #4d3410;
}
@media (hover: hover) {
.slate:hover .slate-arm {
  transform: rotate(-19deg);
}
}
.theater.is-intro .slate-arm {
  animation:
    clap 0.6s var(--ease-out) 2s,
    arm-idle 6s 5s infinite;
}
.slate.is-clapping .slate-arm {
  animation: clap 0.6s var(--ease-out);
}
@keyframes arm-idle {
  0%,
  82%,
  100% {
    transform: rotate(-11deg);
  }
  87% {
    transform: rotate(-30deg);
  }
  91% {
    transform: rotate(0deg);
  }
  94% {
    transform: rotate(-5deg);
  }
  97% {
    transform: rotate(-11deg);
  }
}
@keyframes clap {
  0% {
    transform: rotate(-11deg);
  }
  35% {
    transform: rotate(-32deg);
  }
  55% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(-11deg);
  }
}
.slate.is-clapping .slate-board {
  animation: thud 0.6s var(--ease-out);
}
@keyframes thud {
  50% {
    transform: translateY(0);
  }
  58% {
    transform: translateY(3px) scale(0.995);
  }
  75% {
    transform: none;
  }
}
.slate-emblem {
  position: absolute;
  top: 48px;
  right: 20px;
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 3px 0 #120a17);
}
.slate-reel {
  width: 100%;
  height: 100%;
  animation: reel-spin 9s linear infinite;
}
@keyframes reel-spin {
  to {
    transform: rotate(360deg);
  }
}
.slate.is-clapping .slate-reel {
  animation-duration: 1.6s;
}
@media (hover: hover) {
  .slate:hover .slate-reel {
    animation-duration: 2.4s;
  }
}
.slate-title {
  display: grid;
  padding: 6px 4px 0;
}
.slate-title .wm-quiz {
  font-size: clamp(3.4rem, 7.5vw, 5.8rem);
  line-height: 0.9;
  text-shadow:
    0 1px 0 #f0d9a8,
    0 2px 0 #e3c486,
    0 3px 0 #d4ae68,
    0 4px 0 #c39853,
    0 5px 0 #ad8140,
    0 6px 0 #966b2f,
    0 14px 18px rgba(0, 0, 0, 0.6);
}
.slate-title .wm-night {
  justify-self: end;
  margin: -0.18em 0.1em 0 0;
  font-size: clamp(3.3rem, 7.4vw, 5.6rem);
  line-height: 1;
  transform: rotate(-7deg);
  animation: neon 6s 2.4s infinite;
}
.theater.is-intro .slate-title .wm-night {
  animation:
    neon-on 1.4s 1.6s both,
    neon 6s 4s infinite;
}
@keyframes neon {
  0%,
  88%,
  91%,
  94%,
  100% {
    opacity: 1;
  }
  89%,
  93% {
    opacity: 0.55;
  }
}
@keyframes neon-on {
  0%,
  20%,
  34%,
  50% {
    opacity: 0.15;
    text-shadow: none;
  }
  24%,
  40%,
  100% {
    opacity: 1;
  }
}
.slate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.slate-grid > span {
  display: grid;
  gap: 1px;
  padding: 7px 11px 8px;
  border: 2px dashed rgba(255, 243, 220, 0.28);
  border-radius: 12px;
  font: 600 0.92rem/1.25 var(--f-round);
  color: var(--cream);
  min-width: 0;
  overflow-wrap: anywhere;
}
.slate-grid small {
  font: 500 0.74rem/1.2 var(--f-round);
  color: rgba(255, 243, 220, 0.6);
  letter-spacing: 0.04em;
}
.slate-shadow {
  width: 66%;
  height: 26px;
  margin-top: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  animation: shadow-float 6.5s ease-in-out infinite;
}
@keyframes shadow-float {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(0.86);
    opacity: 0.65;
  }
}

/* Perdenin önündeki yazı */
.hero-copy {
  min-width: 0;
}
.hero-ribbon {
  margin: 0 0 6px;
  font: 400 clamp(1.7rem, 3vw, 2.1rem) / 1.1 var(--f-script);
  color: var(--gold-2);
  text-shadow: 0 0 14px rgba(243, 195, 91, 0.45);
}
.hero-ribbon span::before,
.hero-ribbon span::after {
  content: '✦';
  font: 400 0.6em/1 var(--f-ui);
  vertical-align: middle;
  margin: 0 0.45em;
  color: var(--gold);
}
.lede {
  font: 400 clamp(1.15rem, 2vw, 1.38rem) / 1.5 var(--f-serif);
  margin: 0 0 24px;
  max-width: 34ch;
  color: var(--cream);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.join-form {
  margin-top: 28px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(20, 11, 27, 0.55);
  border: 2px dashed rgba(243, 195, 91, 0.35);
  max-width: 460px;
}
.join-form label {
  display: block;
  font: 600 1rem/1.2 var(--f-round);
  margin-bottom: 10px;
}
.join-row {
  display: flex;
  gap: 10px;
}
.join-row input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #1c1224;
  padding: 0 20px;
  font: 700 1.35rem/1 var(--f-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35);
}
.join-row input:focus {
  border-color: var(--gold);
  outline: none;
}
.join-row input::placeholder {
  letter-spacing: 0.02em;
  font: 500 1rem var(--f-round);
  color: var(--muted);
  text-transform: none;
}
.join-row .btn {
  height: 54px;
}
.join-form small {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}
.offline-note {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(20, 11, 27, 0.55);
  border: 2px dashed rgba(243, 195, 91, 0.35);
  color: var(--cream);
  max-width: 52ch;
}
.resume {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #3d2c4c, #2d2038);
  border: 2px solid var(--gold);
  box-shadow: 0 5px 0 var(--plum-lip);
  max-width: 460px;
}
.resume p {
  margin: 0 0 12px;
}
.resume-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Ön sıralar: koltuk sırtları derinlik verir */
.th-seats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 132px;
  z-index: 2;
  pointer-events: none;
  display: grid;
  align-content: end;
  background: linear-gradient(180deg, transparent, rgba(12, 6, 16, 0.75) 55%, #0d0711);
}
.seat-row {
  display: flex;
  justify-content: center;
  gap: var(--g);
  margin-top: -16px;
}
.seat-row i {
  flex: none;
  width: var(--w);
  height: var(--h);
  border-radius: 48% 48% 14% 14% / 62% 62% 12% 12%;
  background: linear-gradient(180deg, #6e1b30, #3a0c1a 70%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.1), inset 0 -10px 14px rgba(0, 0, 0, 0.45);
}
.seat-row.r3 {
  --w: 46px;
  --h: 36px;
  --g: 10px;
  opacity: 0.55;
}
.seat-row.r2 {
  --w: 62px;
  --h: 48px;
  --g: 14px;
  opacity: 0.8;
}
.seat-row.r1 {
  --w: 86px;
  --h: 62px;
  --g: 20px;
  margin-bottom: -18px;
  filter: brightness(0.8);
}
.seat-row.r1 i {
  background: linear-gradient(180deg, #5a1528, #26070f 70%);
}

/* ---------- Modlar ---------- */
.modes {
  padding: 8px 0 40px;
}
.mode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mode-card {
  text-align: left;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px;
  border-radius: var(--r-m);
  background: var(--velvet-2);
  border: 1.5px solid var(--line);
  min-height: 150px;
  transition: border-color 0.15s, background-color 0.15s;
}
@media (hover: hover) {
.mode-card:hover {
  border-color: #6b5578;
}
}
.mode-card.is-on {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(243, 195, 91, 0.1), transparent 70%), var(--velvet-2);
}
.mode-card[aria-disabled='true'] {
  opacity: 0.55;
}
.mode-ico {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.mode-title {
  font: 700 1.15rem/1.2 var(--f-display);
}
.mode-text {
  color: var(--muted);
  font-size: 0.93rem;
}
.mode-flag {
  font-size: 0.8rem;
  color: var(--gold-2);
}

/* ---------- Paketler ---------- */
.packs {
  padding: 16px 0 24px;
}
.packs-head {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}
.packs-meta {
  margin: 0;
  color: var(--muted);
  max-width: 78ch;
}
.pack-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 0;
  background: linear-gradient(180deg, var(--velvet) 80%, rgba(29, 20, 36, 0));
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-s);
  background: var(--velvet-2);
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.search:focus-within {
  border-color: var(--gold);
}
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.chip {
  flex: none;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (hover: hover) {
.chip:hover {
  border-color: #6b5578;
}
}
.chip.is-on {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.pack-bulk {
  display: flex;
  gap: 18px;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}
.empty {
  color: var(--muted);
  padding: 24px 0;
}

/* Bilet kartı */
.ticket {
  --notch: 9px;
}
.ticket-main {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 92px;
  text-align: left;
  color: var(--ink);
  background:
    radial-gradient(circle at calc(100% - 92px) 0, transparent var(--notch), transparent var(--notch)),
    var(--paper);
  border-radius: var(--r-m);
  overflow: hidden;
  position: relative;
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - 92px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - 92px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - 92px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - 92px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform 0.15s, filter 0.15s;
}
.ticket-main:hover:not(:disabled) {
  transform: translateY(-2px);
}
.ticket-main:focus-visible {
  outline-offset: 4px;
}
.ticket-art {
  background: var(--c);
  display: grid;
  place-items: center;
  position: relative;
}
.ticket-art::after {
  content: '';
  position: absolute;
  inset: 8px 6px;
  border: 1.5px dashed rgba(42, 28, 34, 0.28);
  border-radius: 4px;
}
.ticket-icon {
  font: 800 1.45rem/1 var(--f-display);
  color: var(--ink);
  max-width: 56px;
  text-align: center;
  overflow-wrap: anywhere;
}
.ticket-body {
  padding: 14px 14px 12px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.ticket-cat {
  font-size: 0.75rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.ticket-title {
  font: 800 1.2rem/1.1 var(--f-display);
}
.ticket-alt {
  font-weight: 500;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.ticket-scope {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #4a3a42;
}
.diff {
  display: flex;
  gap: 2px;
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-2);
}
.diff i {
  display: block;
}
.d-orta {
  background: #4f9a6b;
}
.d-zor {
  background: #c48a17;
}
.d-uzman {
  background: #b9434b;
}
.d-none {
  background: var(--paper-2);
}
.diff-legend {
  font-size: 0.74rem;
  color: var(--ink-2);
}
.ticket-shared {
  font-size: 0.74rem;
  color: var(--ink-2);
  line-height: 1.3;
  margin-top: 2px;
}
.ticket-stub {
  border-left: 2px dashed rgba(42, 28, 34, 0.3);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 10px 6px;
  gap: 1px;
  position: relative;
}
.ticket-stub b {
  font: 800 1.7rem/1 var(--f-display);
}
.ticket-stub small {
  font-size: 0.78rem;
  color: var(--ink-2);
}
.ticket-stub em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper-2);
}
.ticket-stub em.ok {
  background: #d7e7b0;
  color: #2c3a0b;
}
.ticket-stub em.warn {
  background: #f6d9a6;
  color: #5a3a04;
}
.ticket-check {
  margin-bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(42, 28, 34, 0.35);
  color: transparent;
}
.ticket.is-on .ticket-main {
  box-shadow: inset 0 0 0 3px var(--gold);
  background: #fff4dc;
}
.ticket.is-on .ticket-check {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold);
}
.ticket.is-empty .ticket-main {
  filter: saturate(0.2);
  opacity: 0.62;
}

/* Seçim çubuğu */
.setup-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(39, 27, 48, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.setup-bar.is-on {
  border-top-color: var(--gold);
}
.setup-summary {
  margin: 0;
}
.setup-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Kurallar */
.how-inline {
  padding: 40px 0 0;
}
.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: r;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 14px 28px;
}
.rules li {
  counter-increment: r;
  position: relative;
  padding-left: 46px;
  color: var(--muted);
  max-width: 60ch;
}
.rules li::before {
  content: counter(r);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 1rem/1 var(--f-display);
  background: var(--velvet-3);
  color: var(--gold);
  border: 1px solid var(--line);
}
.rules strong {
  color: var(--text);
}
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.foot p {
  margin: 4px 0;
}

/* ---------- İletişim kutusu ---------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 6, 12, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fade 0.15s ease-out;
}
.dialog {
  width: min(100%, 560px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--velvet-2);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.dialog-wide {
  width: min(100%, 780px);
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px 24px;
  background: var(--velvet-2);
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin: 0;
  font: 700 1.5rem/1.1 var(--f-display);
}
.dialog-body {
  padding: 18px 24px 24px;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* Form */
.setup-form {
  display: grid;
  gap: 18px;
}
.field {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.field legend,
.field-label {
  font-weight: 700;
  padding: 0;
  margin-bottom: 2px;
}
.field-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 8px;
}
.setup-form input[type='text'],
.setup-form input:not([type]),
.setup-form textarea,
.setup-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line);
  background: var(--velvet);
}
.setup-form textarea {
  resize: vertical;
  line-height: 1.5;
}
.setup-form input:focus,
.setup-form textarea:focus,
.setup-form select:focus {
  border-color: var(--gold);
  outline: none;
}
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.hint.bad {
  color: var(--coral);
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.seg-item span {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line);
  cursor: pointer;
  font-weight: 600;
}
.seg-item input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}
.seg-item input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}
.pack-pills {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pack-pills span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.more summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 32px;
}
.more[open] summary {
  margin-bottom: 8px;
}
.alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-s);
  border-left: 4px solid;
}
.alert p {
  margin: 0 0 6px;
}
.alert-ok {
  border-color: var(--lime);
  background: rgba(215, 239, 130, 0.08);
}
.alert-warn {
  border-color: var(--gold);
  background: rgba(243, 195, 91, 0.1);
}
.alert-bad {
  border-color: var(--coral);
  background: rgba(255, 125, 104, 0.1);
}
.spoiler {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.join-code-big {
  margin: 0;
  text-align: center;
  font: 800 2.6rem/1 var(--f-display);
  letter-spacing: 0.3em;
  padding: 14px 0 14px 0.3em;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-m);
}
.how-dialog h3 {
  font: 700 1.15rem/1.2 var(--f-display);
  margin: 18px 0 8px;
}
.how-dialog h3:first-child {
  margin-top: 0;
}
.how-modes {
  padding-left: 1.1em;
  color: var(--muted);
}
.how-modes strong {
  color: var(--text);
}
.how-dialog .rules {
  grid-template-columns: 1fr;
}

/* ---------- Sahne (oyun ekranları) ---------- */
.stage {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) 0 24px;
}
.stage-title {
  font: 800 clamp(2rem, 5vw, 3.2rem) / 1.05 var(--f-display);
  margin: 0 0 8px;
}
.stage-sub {
  color: var(--muted);
  margin: 0 0 18px;
}
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.stage-error {
  padding-top: 60px;
}
.waiting {
  color: var(--muted);
  font-style: italic;
  margin: 12px 0;
}

/* Lobi */
.lobby-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.lobby-ticket {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-l);
  padding: 22px;
  display: grid;
  gap: 10px;
  position: relative;
  box-shadow: 0 0 0 3px var(--gold), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.lobby-ticket .hint {
  color: var(--ink-2);
}
.lobby-label {
  margin: 0;
  font-weight: 700;
  color: var(--ink-2);
}
.lobby-code {
  margin: 0;
  font: 800 clamp(3rem, 10vw, 5rem) / 1 var(--f-display);
  letter-spacing: 0.18em;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(42, 28, 34, 0.3);
}
.lobby-link {
  margin: 0;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--ink-2);
}
.lobby-share {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lobby-share .btn-ticket {
  background: var(--ink);
  color: var(--paper);
}
.lobby-share .btn-ghost {
  border-color: rgba(42, 28, 34, 0.35);
  color: var(--ink);
}
.lobby-h {
  font: 700 1.35rem/1.2 var(--f-display);
  margin: 0 0 12px;
}
.player-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
}
.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-s);
  background: var(--velvet-2);
  min-height: 44px;
}
.player.is-off {
  opacity: 0.6;
}
.player-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tag {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--velvet-4);
  color: var(--muted);
  vertical-align: middle;
}
.team-order {
  font: 700 1.4rem/1.6 var(--f-display);
  padding-left: 1.4em;
}

/* Soru ekranı */
.q-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.q-pack {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  border-left: 6px solid var(--c);
}
.q-diff {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid;
}
.q-diff-orta {
  color: var(--d-orta);
}
.q-diff-zor {
  color: var(--d-zor);
}
.q-diff-uzman {
  color: var(--d-uzman);
}
.q-num {
  margin-left: auto;
  font: 700 1rem/1 var(--f-display);
  color: var(--muted);
}
.turn {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
  padding: 12px 16px;
  border-radius: var(--r-m);
  background: var(--curtain);
  box-shadow: inset 0 0 0 2px #7a3243;
}
.turn span {
  color: var(--paper);
  opacity: 0.85;
}
.turn strong {
  font: 800 clamp(1.5rem, 4vw, 2.2rem) / 1.05 var(--f-display);
  color: var(--gold-2);
}
.timer {
  --frac: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 14px;
}
.timer-track {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: var(--velvet-3);
  overflow: hidden;
  background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 0, 0, 0.25) 18px 20px);
}
.timer-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--frac));
  background: var(--gold);
  border-radius: 6px;
}
.timer-num {
  min-width: 2.4em;
  text-align: right;
  font: 800 1.9rem/1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.timer.is-low .timer-fill {
  background: var(--coral);
}
.timer.is-low .timer-num {
  color: var(--coral);
}
.q-prod {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.q-text {
  font: 500 clamp(1.45rem, 3.6vw, 2.25rem) / 1.3 var(--f-serif);
  margin: 0 0 22px;
  max-width: 40ch;
  overflow-wrap: anywhere;
}
.q-text:focus {
  outline: none;
}
.opts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.opt {
  width: 100%;
  min-height: 76px;
  height: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: 'k t' 'k b';
  align-items: center;
  gap: 2px 14px;
  text-align: left;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-m);
  background: var(--velvet-3);
  border: 2px solid var(--velvet-4);
  font-size: 1.08rem;
  line-height: 1.3;
  transition: border-color 0.12s, background-color 0.12s, transform 0.12s;
}

.opt:active:not(:disabled) {
  transform: scale(0.99);
}
.opt-key {
  grid-area: k;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--velvet);
  color: var(--gold);
  font: 800 1.2rem/1 var(--f-display);
}
.opt-text {
  grid-area: t;
  overflow-wrap: anywhere;
}
.opt-text:last-child {
  grid-row: 1 / span 2;
}
.opt-badge {
  grid-area: b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}
.opt:disabled {
  cursor: default;
  color: var(--text);
}
.opts.is-stage .opt:disabled {
  opacity: 1;
}
.opt.is-picked {
  border-color: var(--gold);
  background: rgba(243, 195, 91, 0.14);
}
.opt.is-picked .opt-badge {
  color: var(--gold-2);
}
.opt.is-dim {
  opacity: 0.55;
}
.opt.is-correct {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
  opacity: 1;
}
.opt.is-correct .opt-key {
  background: var(--lime-ink);
  color: var(--lime);
}
.opt.is-wrong {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--coral-ink);
  opacity: 1;
}
.opt.is-wrong .opt-key {
  background: var(--coral-ink);
  color: var(--coral);
}
.q-status {
  min-height: 1.5em;
  color: var(--muted);
  margin: 14px 0 0;
}
.result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  font-size: 1.1rem;
  border: 2px solid;
}
.result .ico {
  width: 28px;
  height: 28px;
}
.result-dogru {
  border-color: var(--lime);
  color: var(--lime);
}
.result-yanlis {
  border-color: var(--coral);
  color: var(--coral);
}
.result-bos {
  border-color: var(--blank);
  color: var(--blank);
}
.result-neutral {
  border-color: var(--line);
}
.result strong {
  color: var(--text);
}
.board {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--r-m);
  background: var(--velvet-2);
  border: 1px solid var(--line);
}
.board-h {
  font: 700 1.1rem/1 var(--f-display);
  margin: 0 0 10px;
}
.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.board-list li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto 5.5em;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
}
.board-list li.is-me {
  background: rgba(243, 195, 91, 0.12);
}
.b-rank {
  font: 800 1rem/1 var(--f-display);
  color: var(--gold);
}
.b-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b-delta {
  font-size: 0.85rem;
  color: var(--muted);
}
.b-delta.dogru {
  color: var(--lime);
}
.b-delta.yanlis {
  color: var(--coral);
}
.b-score {
  text-align: right;
  font: 700 1.05rem/1 var(--f-display);
  font-variant-numeric: tabular-nums;
}

/* Sonuçlar */
.results .stage-title {
  text-align: center;
}
.results > .stage-sub {
  text-align: center;
}
.podium {
  list-style: none;
  margin: 20px auto 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  max-width: 620px;
}
.podium li {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 10px;
  border-radius: var(--r-m) var(--r-m) 0 0;
  background: var(--velvet-3);
  text-align: center;
}
.podium-1 {
  order: 2;
  min-height: 190px;
  background: var(--paper) !important;
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--gold), 0 0 40px rgba(243, 195, 91, 0.35);
}
.podium-2 {
  order: 1;
  min-height: 150px;
}
.podium-3 {
  order: 3;
  min-height: 120px;
}
.podium li:nth-child(1) {
  order: 2;
}
.podium li:nth-child(2) {
  order: 1;
}
.podium li:nth-child(3) {
  order: 3;
}
.podium-rank {
  font: 800 2rem/1 var(--f-display);
  color: var(--gold);
}
.podium-1 .podium-rank {
  color: var(--ink);
}
.podium-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.podium-score {
  font: 700 1.25rem/1 var(--f-display);
}
.times {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.times > div {
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--velvet-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.times span {
  color: var(--muted);
  font-size: 0.9rem;
}
.times strong {
  font: 800 1.6rem/1.1 var(--f-display);
}
.times small {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 720px;
}
.score-table th,
.score-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.score-table thead th {
  background: var(--velvet-2);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}
.score-table tbody tr:last-child > * {
  border-bottom: 0;
}
.score-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.score-table tr.is-sel {
  background: rgba(243, 195, 91, 0.1);
}
.score-table th[scope='row'] {
  font-weight: 600;
}
.score-table .link-btn {
  color: var(--text);
}
.results > .hint {
  margin: 10px 0 0;
}
.breakdown {
  margin-top: 32px;
}
.bd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.bd-head .lobby-h {
  margin: 0;
}
.bd-who select {
  min-height: 42px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line);
  background: var(--velvet-2);
  padding: 0 10px;
}
.breakdown .chips {
  margin: 12px 0 14px;
  flex-wrap: wrap;
}
.bd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rec {
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--velvet-2);
  border-left: 5px solid var(--blank);
}
.rec-dogru {
  border-left-color: var(--lime);
}
.rec-yanlis {
  border-left-color: var(--coral);
}
.rec-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.rec-n {
  font-weight: 700;
  color: var(--text);
}
.rec-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.rec-dogru .rec-status {
  color: var(--lime);
}
.rec-yanlis .rec-status {
  color: var(--coral);
}
.rec-bos .rec-status {
  color: var(--blank);
}
.rec-q {
  font: 500 1.08rem/1.4 var(--f-serif);
  margin: 8px 0 10px;
}
.rec-ans {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 6px 24px;
  justify-content: start;
}
.rec-ans div {
  display: grid;
}
.rec-ans dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.rec-ans dd {
  margin: 0;
  font-weight: 600;
}

/* Bildirim */
.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 80;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  border-radius: var(--r-m);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-bad {
  border-left: 6px solid #c43c2c;
}
.toast-warn {
  border-left: 6px solid #c48a17;
}
.toast-ok {
  border-left: 6px solid #5b8a19;
}
.noscript {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 20px;
}

/* ---------- Duyarlı yerleşim ---------- */
@media (max-width: 900px) {
  .mode-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .mode-card {
    min-height: 0;
  }
  .lobby-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .topbar {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .opts {
    grid-template-columns: minmax(0, 1fr);
  }
  .opt {
    min-height: 64px;
  }
  .ticket-main {
    grid-template-columns: 52px minmax(0, 1fr) 80px;
    -webkit-mask:
      radial-gradient(circle var(--notch) at calc(100% - 80px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at calc(100% - 80px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at calc(100% - 80px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at calc(100% - 80px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  }
  .ticket-stub b {
    font-size: 1.4rem;
  }
  .setup-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .setup-bar {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .setup-summary {
    font-size: 0.85rem;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
  }
  .setup-summary .muted {
    display: none;
  }
  .setup-actions .link-btn {
    display: none;
  }
  .setup-actions .btn {
    padding-left: 14px;
    padding-right: 14px;
  }
  .dialog-backdrop {
    padding: 0;
    align-items: end;
  }
  .dialog {
    border-radius: var(--r-l) var(--r-l) 0 0;
    max-height: 94vh;
  }
  .dialog-body {
    padding: 16px 16px 24px;
  }
  .dialog-head {
    padding-left: 16px;
  }
  .rec-ans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .podium li {
    padding: 12px 6px;
  }
  .stage-actions .btn-lg {
    width: 100%;
  }
  .q-num {
    margin-left: 0;
  }
}

/* "Hareketi azalt" açıkken büyük hareketler (perde süpürmesi, kayan/dönen girişler, süzülme,
   eğilme, toz, gren) durur; ampul, neon, makara ve klaket çakması gibi küçük süsler kalır. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .th-curtain,
  .th-stage,
  .slate,
  .slate-shadow,
  .th-dust i,
  .th-beam,
  #main.is-entering > *,
  #main.is-entering .q-text,
  #main.is-entering .opts li,
  .podium li,
  .dialog,
  .result,
  .is-reveal .opt.is-correct,
  .is-reveal .opt.is-wrong,
  .faq-item[open] .faq-a,
  body::after,
  .brand-clap {
    animation: none !important;
  }
  .slate {
    transform: none !important;
    transition: none;
  }
  .th-dust {
    display: none;
  }
}

/* =====================================================================
   Retro salon katmanı — 1950'ler sinema hissi, yumuşak 3D yüzeyler,
   film greni ve ekran geçişleri. Bilet kartları (.ticket) bilerek
   değiştirilmez.
   ===================================================================== */

/* Film greni ve vinyet: tüm sayfanın üstünde, tıklamayı engellemez */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 60;
}
body::before {
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 58%, rgba(6, 2, 9, 0.5) 100%);
}
body::after {
  inset: -60px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(5) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-18px, 12px);
  }
  40% {
    transform: translate(14px, -20px);
  }
  60% {
    transform: translate(-10px, 22px);
  }
  80% {
    transform: translate(20px, 6px);
  }
}

/* Başlıklar: tabela yazısı */
.section-title,
.stage-title {
  font-family: var(--f-retro);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--cream);
  text-shadow: 0 2px 0 #8a6528, 0 4px 0 #3d2810, 0 10px 18px rgba(0, 0, 0, 0.5);
}
.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  margin-bottom: 18px;
}
.stage-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
}
.topbar {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Oyun biçimi kartları */
.mode-list {
  perspective: 1200px;
}
.mode-card {
  border-radius: 24px;
  border: 2px solid rgba(255, 243, 220, 0.06);
  background: radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, 0.06), transparent 60%), linear-gradient(170deg, #3a2949, #281b32);
  box-shadow: 0 7px 0 var(--plum-lip), 0 22px 30px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--spring), border-color 0.2s;
}
@media (hover: hover) {
.mode-card:hover {
  border-color: rgba(243, 195, 91, 0.45);
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: 0 12px 0 var(--plum-lip), 0 30px 36px -20px rgba(0, 0, 0, 0.9);
}
}
.mode-card:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--plum-lip);
}
.mode-card.is-on {
  border-color: var(--gold);
  background: radial-gradient(130% 90% at 15% 0%, rgba(243, 195, 91, 0.22), transparent 60%), linear-gradient(170deg, #45305a, #2e1f3a);
  box-shadow: 0 7px 0 #8a6528, 0 0 0 4px rgba(243, 195, 91, 0.15), 0 22px 30px -18px rgba(0, 0, 0, 0.9);
}
.mode-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.45rem;
  color: #3a2608;
  background: radial-gradient(circle at 35% 30%, #ffeab0, #f2b945 60%, #c98b26);
  box-shadow: 0 4px 0 #8a6528, inset 0 2px 0 rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}
.mode-title {
  font: 600 1.18rem/1.2 var(--f-round);
}

/* Arama ve filtre çipleri */
.search {
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #1c1224;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35);
  padding: 0 18px;
}
.pack-tools {
  background: linear-gradient(180deg, var(--velvet) 82%, rgba(29, 20, 36, 0));
}
.chips {
  padding: 2px 2px 8px;
}
.chip {
  font: 600 0.92rem/1 var(--f-round);
  border: 0;
  background: linear-gradient(180deg, #3d2c4c, #30223b);
  box-shadow: 0 3px 0 var(--plum-lip), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring);
}
@media (hover: hover) {
.chip:hover {
  transform: translateY(-1px);
}
}
.chip:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--plum-lip);
}
.chip.is-on {
  background: linear-gradient(180deg, #fff6e3, #ecdcbc);
  color: var(--ink);
  box-shadow: 0 3px 0 #b39a6e, inset 0 1px 0 #fff;
}
.pack-bulk {
  gap: 10px;
  flex-wrap: wrap;
}

/* Kurallar: yuvarlak, kabartmalı numaralar */
.rules li::before {
  font: 700 1rem/1 var(--f-round);
  border: 0;
  color: #3a2608;
  background: radial-gradient(circle at 35% 30%, #ffeab0, #f2b945 60%, #c98b26);
  box-shadow: 0 3px 0 #8a6528;
}

/* Ayar çubuğu ve formlar */
.setup-bar {
  border-radius: 26px 26px 0 0;
  border-top: 2px solid var(--line);
  box-shadow: 0 -14px 30px -18px rgba(0, 0, 0, 0.8);
}
.setup-bar.is-on {
  border-top-color: var(--gold);
}
.setup-form select,
.setup-form textarea,
.setup-form input[type='text'],
.setup-form input:not([type]),
.feedback-form textarea,
.feedback-form input {
  border-radius: 16px;
}
.seg-item span {
  border-radius: 999px;
  font-family: var(--f-round);
  font-weight: 600;
  transition: transform 0.2s var(--spring), background-color 0.2s;
}
.seg-item input:checked + span {
  box-shadow: 0 3px 0 #8a6528;
}
.seg-wrap {
  flex-wrap: wrap;
}

/* İletişim kutusu: yaylanarak açılır */
.dialog {
  border-radius: 28px;
  border: 2px solid rgba(243, 195, 91, 0.3);
  background: radial-gradient(120% 60% at 50% 0%, rgba(243, 195, 91, 0.08), transparent 60%), var(--velvet-2);
  box-shadow: 0 9px 0 var(--plum-lip), 0 40px 80px -20px rgba(0, 0, 0, 0.9);
  animation: dlg-in 0.5s var(--spring) both;
  transform-origin: 50% 80%;
}
.dialog-head h2 {
  font-family: var(--f-retro);
  font-weight: 400;
  letter-spacing: 0.01em;
}
@keyframes dlg-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Oyun ekranı */
.turn {
  border-radius: 22px;
}
.turn strong {
  font-family: var(--f-retro);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.timer-track {
  border-radius: 999px;
}
.timer-fill {
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(243, 195, 91, 0.45);
}
.q-pack,
.q-diff {
  border-radius: 999px;
}
.opts {
  gap: 16px;
}
.opt {
  border-radius: 22px;
  border: 2px solid transparent;
  background: radial-gradient(120% 90% at 10% 0%, rgba(255, 255, 255, 0.05), transparent 60%), linear-gradient(180deg, #3d2c4c, #2e2139);
  box-shadow: 0 6px 0 var(--plum-lip), 0 16px 24px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--spring), border-color 0.2s, background-color 0.2s, opacity 0.3s;
}
/* Yalnızca imleçle üzerine gelinen şık parlar (dokunmatik ekranda takılı kalan "hover" yok) */
@media (hover: hover) and (pointer: fine) {
  .opt:hover:not(:disabled) {
    border-color: var(--gold);
    background: radial-gradient(120% 90% at 10% 0%, rgba(255, 226, 150, 0.16), transparent 60%), linear-gradient(180deg, #47335a, #352643);
    transform: translateY(-3px);
    box-shadow:
      0 9px 0 var(--plum-lip),
      0 0 0 4px rgba(243, 195, 91, 0.16),
      0 0 34px rgba(243, 195, 91, 0.38),
      0 22px 28px -16px rgba(0, 0, 0, 0.9);
  }
  .opt:hover:not(:disabled) .opt-key {
    box-shadow: 0 3px 0 #8a6528, 0 0 22px rgba(255, 217, 138, 0.85);
  }
}
.opt:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--plum-lip);
  transition-duration: 0.06s;
}
.opt-key {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font: 700 1.2rem/1 var(--f-round);
  color: #3a2608;
  background: radial-gradient(circle at 35% 30%, #fff1c6, #f2b945 60%, #c98b26);
  box-shadow: 0 3px 0 #8a6528, 0 0 14px rgba(243, 195, 91, 0.35);
}
.opt.is-picked {
  border-color: var(--gold);
  background: linear-gradient(180deg, #4a3550, #36263d);
}
.opt.is-correct {
  border-color: var(--lime);
  background: linear-gradient(180deg, #e4f7a0, #cbe46c);
  box-shadow: 0 6px 0 #7f9a2e, 0 0 0 5px rgba(215, 239, 130, 0.18), 0 18px 30px -12px rgba(150, 190, 40, 0.5);
}
.opt.is-correct .opt-key {
  background: var(--lime-ink);
  color: var(--lime);
  box-shadow: none;
}
.opt.is-wrong {
  border-color: var(--coral);
  background: linear-gradient(180deg, #ff9a86, #f26f59);
  box-shadow: 0 6px 0 #a3402f, 0 16px 24px -16px rgba(0, 0, 0, 0.9);
}
.opt.is-wrong .opt-key {
  background: var(--coral-ink);
  color: var(--coral);
  box-shadow: none;
}
.is-reveal .opt.is-correct {
  animation: pop 0.6s var(--spring);
}
.is-reveal .opt.is-wrong {
  animation: shake 0.5s ease-in-out;
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.045) translateY(-4px);
  }
  100% {
    transform: none;
  }
}
@keyframes shake {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: translateX(-7px) rotate(-0.6deg);
  }
  40% {
    transform: translateX(6px) rotate(0.5deg);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(2px);
  }
}
.result,
.board {
  border-radius: 22px;
}
.result {
  animation: rise 0.5s var(--spring) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sonuçlar: kürsü sahneye yükselir */
.podium li {
  border-radius: 22px 22px 10px 10px;
  animation: podium-up 0.8s var(--spring) both;
}
.podium li:nth-child(1) {
  animation-delay: 0.35s;
}
.podium li:nth-child(2) {
  animation-delay: 0.15s;
}
.podium li:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes podium-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.podium-1 {
  box-shadow: 0 0 0 3px rgba(243, 195, 91, 0.5), 0 -30px 60px -20px rgba(255, 217, 138, 0.45);
}
.toast {
  border-radius: 999px;
  font-family: var(--f-round);
  font-weight: 600;
}

/* Ekran geçişi: makara dönüyormuş gibi kısa bir parlama ve kayma */
#main.is-entering > * {
  animation: reel-in 0.75s var(--ease-out) backwards;
}
#main.is-entering > .theater {
  animation: none;
}
@keyframes reel-in {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  35% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
#main.is-entering .q-text {
  animation: flicker-in 0.9s steps(1, end) 0.1s backwards;
}
@keyframes flicker-in {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  22% {
    opacity: 0.1;
  }
  32% {
    opacity: 0.9;
  }
  40% {
    opacity: 0.4;
  }
  50%,
  100% {
    opacity: 1;
  }
}
/* Şıklar yalnız 2B hareketle girer. 3B döndürme (rotateX) iPad/iPhone Safari'de kaydırma sırasında
   şıkların hiç çizilmemesine yol açıyordu; şıkların görünürlüğü hiçbir animasyona bağlı değildir. */
#main.is-entering .opts li {
  animation: opt-in 0.45s var(--ease-out) backwards;
  animation-delay: calc(0.2s + var(--n, 0) * 0.07s);
}
@keyframes opt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sık sorulan sorular */
.faq {
  padding: 56px 0 8px;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 14px 18px;
  align-items: start;
}
.faq-item {
  border-radius: 22px;
  background: radial-gradient(120% 90% at 10% 0%, rgba(255, 255, 255, 0.05), transparent 60%), linear-gradient(180deg, #33243f, #281b31);
  box-shadow: 0 5px 0 var(--plum-lip), 0 18px 26px -20px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 243, 220, 0.05);
  transition: border-color 0.2s, transform 0.3s var(--spring);
}
@media (hover: hover) {
.faq-item:hover {
  transform: translateY(-2px);
}
}
.faq-item[open] {
  border-color: rgba(243, 195, 91, 0.45);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 16px 20px;
  font: 600 1.04rem/1.35 var(--f-round);
  border-radius: 20px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary i {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffeab0, #f2b945 60%, #c98b26);
  box-shadow: 0 3px 0 #8a6528;
  transition: transform 0.35s var(--spring);
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2.6px;
  margin: -1.3px 0 0 -6px;
  border-radius: 2px;
  background: #3a2608;
}
.faq-item summary i::after {
  transform: rotate(90deg);
}
.faq-item[open] summary i {
  transform: rotate(135deg);
}
.faq-a {
  padding: 0 20px 18px;
  color: var(--muted);
}
.faq-a p {
  margin: 0;
  max-width: 62ch;
}
.faq-item[open] .faq-a {
  animation: rise 0.4s var(--ease-out) both;
}
.faq-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: 26px;
  border: 2px dashed rgba(243, 195, 91, 0.45);
  background: radial-gradient(80% 140% at 0% 50%, rgba(243, 195, 91, 0.12), transparent 70%), rgba(20, 11, 27, 0.5);
}
.faq-cta p {
  margin: 0;
  max-width: 52ch;
}
.foot .foot-cta {
  margin: 8px 0 12px;
}

/* Öneri formu */
.feedback-form {
  display: grid;
  gap: 16px;
}
.feedback-form .field {
  border: 0;
  margin: 0;
  padding: 0;
}
.feedback-form textarea,
.feedback-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  background: #1c1224;
  color: var(--text);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.3);
}
.feedback-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.feedback-form textarea:focus,
.feedback-form input:focus {
  border-color: var(--gold);
  outline: none;
}
.fb-done {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 0;
}
.fb-done h3 {
  margin: 4px 0 0;
  font: 400 1.7rem/1.2 var(--f-retro);
}
.fb-done p {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
}
.fb-done .form-actions {
  justify-content: center;
}
.fb-copy {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #1c1224;
  color: var(--text);
  font: inherit;
}
.fb-clap {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 6px 0 rgba(10, 5, 14, 0.8));
}
.fb-clap .clapper-arm {
  animation: clap-svg 0.9s 0.2s var(--ease-out) both;
}
@keyframes clap-svg {
  0% {
    transform: rotate(-12deg);
  }
  40% {
    transform: rotate(-34deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-12deg);
  }
}

/* Duyarlı yerleşim: salon */
@media (max-width: 900px) {
  .theater {
    --open: 0.08;
    padding: 92px clamp(28px, 7vw, 56px) 128px;
  }
  .th-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .slate {
    width: min(100%, 440px);
  }
  .hero-copy {
    justify-self: center;
    width: 100%;
    max-width: 560px;
  }
}
@media (max-width: 600px) {
  .theater {
    --open: 0.07;
    margin-top: 2px;
    border-radius: 30px 30px 18px 18px;
    padding: 82px 30px 112px;
  }
  .th-valance {
    height: 52px;
  }
  .th-bulbs i {
    width: 8px;
    height: 8px;
  }
  .slate-wrap {
    padding-top: 40px;
  }
  .slate-board {
    padding: 0 16px 16px;
    border-radius: 22px;
  }
  .slate-bar {
    margin: 0 -16px;
    height: 28px;
    border-radius: 17px 17px 0 0;
  }
  .slate-arm {
    top: -38px;
    height: 36px;
  }
  .slate-emblem {
    top: 38px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
  .slate-grid > span {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
  .seat-row.r1 {
    --w: 64px;
    --h: 48px;
    --g: 14px;
  }
  .seat-row.r2 {
    --w: 48px;
    --h: 36px;
    --g: 10px;
  }
  .seat-row.r3 {
    --w: 36px;
    --h: 28px;
    --g: 8px;
  }
  .wm-quiz {
    font-size: 1.2rem;
  }
  .wm-night {
    font-size: 1.45rem;
  }
  .brand-clap {
    width: 40px;
    height: 40px;
  }
  .faq-cta .btn {
    width: 100%;
  }
}
@media (max-width: 340px) {
  .topbar .brand-name {
    display: none;
  }
}

/* Oyun ekranı bir sinema perdesi gibi: hafif projektör ışığı ve altın çerçeve */
.stage.play {
  position: relative;
  margin-top: 6px;
  padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 34px) clamp(22px, 3vw, 32px);
  border-radius: 34px;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(255, 232, 186, 0.1), transparent 70%),
    linear-gradient(180deg, #2c1f37, #22172b);
  box-shadow:
    inset 0 0 0 2px rgba(243, 195, 91, 0.22),
    0 9px 0 var(--plum-lip),
    0 40px 70px -40px #000;
}
.stage.play::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px dashed rgba(243, 195, 91, 0.16);
  pointer-events: none;
}
@media (max-width: 600px) {
  .stage.play {
    border-radius: 26px;
    margin-left: -6px;
    margin-right: -6px;
  }
  .stage.play::before {
    inset: 7px;
    border-radius: 20px;
  }
  .slate {
    width: 94%;
  }
}

/* Perde ilk açılışta kapalı bekler */
.theater.is-waiting .th-curtain {
  transform: scaleX(1);
  border-radius: 0;
}
.theater.is-waiting .th-stage,
.theater.is-waiting .th-seats {
  opacity: 0;
  pointer-events: none;
}
.th-open {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.th-open-kicker {
  margin: 0;
  font: 400 clamp(1.9rem, 4vw, 2.6rem) / 1.1 var(--f-script);
  color: var(--cream);
  text-shadow: 0 0 6px rgba(255, 143, 191, 0.9), 0 0 20px rgba(255, 61, 142, 0.7), 0 3px 0 rgba(0, 0, 0, 0.4);
}
.th-open .btn {
  animation: open-pulse 1.8s ease-in-out infinite;
}
@keyframes open-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 217, 138, 0));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 217, 138, 0.75));
  }
}

/* ---------- Dil düğmesi ---------- */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #45335a, #33243f);
  color: var(--cream);
  font: 700 0.95rem/1 var(--f-round);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 0 var(--plum-lip), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring);
}
.lang-btn .ico {
  width: 20px;
  height: 20px;
  color: var(--gold);
}
@media (hover: hover) {
  .lang-btn:hover {
    transform: translateY(-2px);
  }
}
.lang-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--plum-lip);
}

/* ---------- Premium kilidi (bilet kartının yapısı değişmez; yalnız küçük bir mühür) ---------- */
.ticket-lock {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  z-index: 1;
}
.ticket-lock .ico {
  width: 14px;
  height: 14px;
}
.ticket-prem {
  color: #8a5a00;
  font-weight: 800;
}

/* ---------- Reklam alanı ---------- */
.ad-slot {
  max-width: var(--max);
  margin: 28px auto;
  padding: 10px var(--gutter) 6px;
  display: grid;
  gap: 6px;
  justify-items: center;
}
.stage-actions .ad-slot {
  flex-basis: 100%;
  margin: 8px 0 16px;
  padding: 0;
}
.ad-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.ad-slot ins {
  width: 100%;
  min-height: 90px;
}

/* ---------- Çerez onayı ---------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  z-index: 60;
  padding: 16px 18px;
  border-radius: 20px;
  background: #2a1d33;
  border: 2px solid rgba(243, 195, 91, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 12px;
}
.consent p {
  margin: 0;
  font-size: 0.92rem;
}
.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ---------- Premium penceresi ---------- */
.premium-lede {
  font: 700 1.15rem/1.3 var(--f-round);
  margin: 0 0 10px;
}
.premium-list {
  margin: 0 0 16px;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}
.premium-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Üst çubuk: telefonda sıkışmayı önle ---------- */
.how-short {
  display: none;
}
.topbar .brand,
.topnav > * {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .topnav {
    gap: 6px;
  }
  /* "Nasıl oynanır?" telefonda yuvarlak bir "?" düğmesine dönüşür */
  .how-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #45335a, #33243f);
    color: var(--gold);
    box-shadow: 0 4px 0 var(--plum-lip), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  }
  .how-btn .how-long {
    display: none;
  }
  .how-btn .how-short {
    display: block;
    font: 700 1.25rem/1 var(--f-round);
  }
  .topbar .icon-btn {
    width: 42px;
    height: 42px;
  }
  .topbar .lang-btn {
    height: 42px;
    padding: 0 12px 0 10px;
    gap: 5px;
  }
  .topbar .lang-btn .ico {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 380px) {
  .topbar {
    gap: 6px;
  }
  .topbar .brand {
    gap: 6px;
  }
  .topbar .brand-clap {
    width: 34px;
    height: 34px;
  }
  .wm-quiz {
    font-size: 1.05rem;
  }
  .wm-night {
    font-size: 1.28rem;
  }
  .topbar .lang-btn .ico {
    display: none;
  }
  .topbar .lang-btn {
    padding: 0 12px;
  }
}
/* Paket araçları dar ekranda taşmasın (ızgara sütunu içeriğe göre genişlemesin) */
.pack-tools {
  grid-template-columns: minmax(0, 1fr);
}
/* Oyun sırasında üst çubukta oda etiketi varsa telefonda yazı logosu gizlenir, etiket sığmazsa "…" ile kısalır */
.topbar-room .room-chip {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .topbar:has(.topbar-room) .brand-name {
    display: none;
  }
}
