/* popfun.party — DESIGN.md: açık editoryal uygulama, tek ana renk (elektrik moru), mürekkep düğmeler, yaylı hareket */
:root {
  /* Marka ve yüzeyler */
  --brand: #7C4DFF;
  --brand-soft: #EFE9FF;
  --brand-ink: #5B2FE6;
  --ink: #202020;
  --paper: #ffffff;
  --on-ink: #ffffff;   /* mürekkep dolgulu yüzeylerin üstündeki yazı */
  --mix: #ffffff;      /* renk tonlarının karıştırıldığı zemin */
  --canvas: #f3f3f3;
  --bg-canvas: var(--canvas);
  --bg-surface: var(--paper);
  --bg-surface-soft: #ececec;
  /* Yazı */
  --text-primary: #202020;
  --text-secondary: #575656;
  --text-badge: #343333;
  --font-sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Oyun vurgu renkleri (yalnızca oyun sayfalarının içinde) */
  --accent-tabu: #EE2A3C;
  --accent-oknok: #3CCDBA;
  --accent-oknok-2: #F5604F;
  --accent-bottle: #3FB35A;
  --accent-shot: #FF6E00;
  --accent-likely: #8B5CF6;
  --accent-never: #8B2BFF;
  --accent-spy: #62B6C8;
  --accent-forehead: #FF4FA3;
  --accent-celeb: #FFB020;
  /* Geometri */
  --radius-sm: 9px;
  --radius-card: 24px;
  --radius-button: 16px;
  --radius-pill: 1000px;
  /* Yardımcı */
  --line: rgba(32, 32, 32, .08);
  --line-strong: rgba(32, 32, 32, .18);
  --shadow: rgba(32, 32, 32, .12) 0 1px 8px 0;
  --good: #22C55E;
  --bad: #E5384D;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --accent: var(--brand);
  --accent-ink: color-mix(in srgb, var(--accent) 62%, var(--ink));
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--canvas); scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.num, .tb-count, .timer, .score, .num-pill { font-variant-numeric: tabular-nums; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 24px; border-radius: var(--radius-button);
  background: var(--paper); border: 1.5px solid var(--ink); color: var(--ink);
  font-weight: 700; font-size: 17px; line-height: 1.2;
  transition: transform .3s var(--ease-spring), background .2s, color .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn.primary, .btn.dark { background: var(--ink); color: var(--on-ink); }
.btn.primary svg.i polygon { fill: currentColor; stroke-width: 0; }
.btn.big { min-height: 58px; font-size: 18px; width: 100%; }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; }
.btn.sm { min-height: 44px; padding: 10px 20px; font-size: 16px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); background: var(--brand-soft); }
  .btn.primary:hover, .btn.dark:hover { background: var(--paper); color: var(--ink); }
  .btn:active { transform: scale(.96); }
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
  transition: transform .3s var(--ease-spring), background .2s;
}
.icon-btn:active { transform: scale(.9) rotate(-8deg); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 16%, var(--mix)); color: var(--accent-ink);
}

/* ------------------------------------------------------------ Ana sayfa */
.site { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .site { padding: 0 24px; } }
.home-top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 72px; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.home-top .site { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.home-top.scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); box-shadow: var(--shadow); }
.wordmark { font-weight: 800; font-size: 30px; letter-spacing: -.045em; display: inline-flex; align-items: baseline; color: #fff; transition: color .3s; }
.wordmark .fn { color: var(--ink); transition: color .3s; }
.wordmark .bang { display: inline-block; color: #fff; transform-origin: 50% 90%; transition: color .3s; }
.wordmark:hover .bang { animation: wiggleBang .6s var(--ease-spring); }
@keyframes wiggleBang { 30% { transform: rotate(-14deg) scale(1.2); } 60% { transform: rotate(10deg) scale(1.1); } }
.home-top.scrolled .wordmark .bang, .home-top.plain .wordmark .bang, .foot .wordmark .bang { color: var(--brand); }
.home-top.scrolled .wordmark { color: var(--ink); }
.home-top.plain .wordmark { color: var(--ink); }

.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: 132px 0 80px; border-radius: 0 0 40px 40px; isolation: isolate; }
.hero .site { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(76px, 21vw, 176px); line-height: .92; letter-spacing: -.06em; font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--ink); }
.hero h1 .ch { display: inline-block; }
.hero .lead-big { font-size: 20px; max-width: 540px; line-height: 1.5; font-weight: 500; opacity: .96; }
.hero .lead-big { margin-bottom: 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btns .btn { min-height: 52px; }
.hero-btns .btn.dark:hover { background: #fff; }
@media (max-width: 560px) { .hero-btns .btn { width: 100%; min-height: 52px; } .hero { padding: 108px 0 80px; border-radius: 0 0 28px 28px; } }

section.block { padding: 64px 0 0; }
@media (max-width: 560px) { section.block { padding-top: 48px; } }
.section-title { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 28px; position: relative; padding-bottom: 14px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 6px; border-radius: 3px; background: var(--brand); }
@media (max-width: 560px) { .section-title { font-size: 28px; } }

.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .hub { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tile {
  --accent: var(--brand);
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow);
  transition: transform .35s var(--ease-spring), box-shadow .25s, background .25s;
}
@media (min-width: 760px) { .tile { padding: 24px 24px 26px; gap: 14px; } }
@media (hover: hover) { .tile:hover { transform: translateY(-4px); box-shadow: rgba(32, 32, 32, .18) 0 4px 18px 0; } }
.tile:active { transform: scale(.97); }
.tile h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.tile p { font-size: 15px; color: var(--text-secondary); line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { .tile h2 { font-size: 24px; } .tile p { font-size: 17px; -webkit-line-clamp: unset; display: block; } }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tile .pill { --accent: var(--brand); font-size: 14px; }
.tile .go { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; transition: transform .45s var(--ease-spring), background .25s; }
@media (hover: hover) { .tile:hover .go { transform: translateX(3px) scale(1.08); background: var(--brand); } }

/* Mini kart önizlemesi */
.mini { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: #f5f5f7; --text-secondary: #a1a1aa;
  background: radial-gradient(90% 90% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), #17171a; }
.mini .me, .mini .mc { position: absolute; height: 74%; aspect-ratio: 5 / 7; border-radius: 10px; }
.mini .me { background: #202026; border: 1px solid rgba(255, 255, 255, .06); }
.mini .me.e1 { transform: rotate(-7deg) translateX(-8%); }
.mini .me.e2 { transform: rotate(6deg) translateX(8%); }
.mini .mc {
  display: flex; flex-direction: column; justify-content: space-between; padding: 9% 9% 12%;
  background: linear-gradient(160deg, #26262d, #1a1a1f); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: rgba(0, 0, 0, .4) 0 8px 20px; transition: transform .35s var(--ease-spring);
}
.tile:hover .mini .mc { transform: translateY(-4px) rotate(-1.5deg); }
.mini .mc-l { font-size: 7px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.mini .mc b { font-size: 12px; line-height: 1.1; letter-spacing: -.02em; }
/* Tasarımcı kartıyla kapak */
.mini.art .me, .mini.art .mc { background-size: cover; background-position: center; border: 0; padding: 0; }
.mini.art { background: #121214; isolation: isolate; }
.mini.art .bk { position: absolute; left: -25%; right: -25%; top: -45%; bottom: -45%;
  background-size: cover; background-position: center; transform: rotate(-24deg); filter: brightness(.38) saturate(.9); }
.mini.art .mc { height: 94%; container-type: size; display: block; }
.mini.art .me { height: 94%; opacity: .95; }
.mini.art .sample { position: absolute; left: 7cqw; right: 7cqw; top: 33%; bottom: 33%; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: 'Poppins', var(--font-sans); font-weight: 700; font-size: 12cqw; line-height: 1.18; color: #1b1b20; text-shadow: 0 0 .5em #fff, 0 0 .25em #fff; }
.mini.art .mc { box-shadow: rgba(0, 0, 0, .45) 0 10px 24px; }

/* SSS */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-button); box-shadow: var(--shadow); padding: 4px 22px; transition: background .25s; }
.faq details[open] { background: var(--brand-soft); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 28px; line-height: 1; color: var(--brand-ink); transition: transform .35s var(--ease-spring); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-secondary); padding: 0 0 18px; }

.foot { margin-top: 72px; background: var(--paper); border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 28px; padding: 40px 0 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .wordmark { color: var(--ink); }
.foot p { color: var(--text-secondary); font-size: 15px; margin-top: 8px; max-width: 360px; }
.foot h4 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot li a { color: var(--text-secondary); font-size: 16px; }
.foot li a:hover { color: var(--brand-ink); }
.foot-copy { border-top: 1px solid var(--line); padding: 18px 0 30px; color: var(--text-secondary); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

/* ------------------------------------------------------------ Oyun ekranı */
html:has(body.game) { overflow: hidden; overscroll-behavior: none; }
body.game {
  height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none;
  display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
body.game input { user-select: text; -webkit-user-select: text; }
.topbar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 6px; min-height: 64px;
}
.tb-back { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 16px 0 10px; border-radius: var(--radius-pill); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-weight: 700; font-size: 16px; transition: transform .3s var(--ease-spring); }
.tb-back:active { transform: scale(.94); }
.tb-title { flex: 1; min-width: 0; text-align: center; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { display: flex; align-items: center; gap: 8px; min-width: 96px; justify-content: flex-end; }
.tb-count { font-size: 15px; font-weight: 700; color: var(--text-badge); }
.stage { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }

/* Kurulum ekranı */
.setup { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.setup-inner { max-width: 560px; margin: 0 auto; padding: 4px 20px calc(32px + var(--safe-b)); display: flex; flex-direction: column; gap: 20px; }
.setup-hero .mini { aspect-ratio: 16 / 8; box-shadow: var(--shadow); }
.setup-hero .mini .mc-l { font-size: 9px; }
.setup-hero .mini .mc b { font-size: 16px; }
.setup h1 { font-size: 36px; font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.lead { color: var(--text-secondary); font-size: 17px; }
.options { display: flex; flex-direction: column; gap: 20px; }
.options:empty { display: none; }
.opt { display: flex; flex-direction: column; gap: 8px; }
.opt-label { font-size: 15px; font-weight: 800; color: var(--text-badge); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 0; min-width: 0; min-height: 52px; padding: 8px 12px; border-radius: var(--radius-button);
  background: var(--paper); border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 16px; line-height: 1.2;
  transition: background .2s, border-color .2s, transform .3s var(--ease-spring);
}
.seg button small { display: block; font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-top: 2px; }
.seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, var(--mix)); border-color: var(--ink); }
.seg button:active { transform: scale(.96); }
.seg button:disabled { opacity: .4; }
.seg.col { flex-direction: column; }
.seg.col button { flex: none; text-align: left; padding: 14px 16px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.field { display: block; min-width: 0; }
.field input {
  width: 100%; height: 52px; border-radius: var(--radius-button); background: var(--paper); border: 1.5px solid var(--ink);
  padding: 0 16px; font-weight: 700; outline: none; transition: background .2s;
}
.field input:focus { background: color-mix(in srgb, var(--accent) 12%, var(--mix)); }
.stepper { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-button); padding: 4px; align-self: flex-start; }
.stepper button { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-surface-soft); font-size: 24px; font-weight: 700; display: grid; place-items: center; transition: transform .3s var(--ease-spring); }
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 52px; text-align: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rules { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius-button); padding: 4px 18px; transition: background .25s; }
.rules[open] { background: color-mix(in srgb, var(--accent) 8%, var(--mix)); }
.rules summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--accent-ink); transition: transform .35s var(--ease-spring); }
.rules[open] summary::after { transform: rotate(45deg); }
.rules ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-secondary); font-size: 16px; display: grid; gap: 10px; }
.rules b { color: var(--text-primary); }

/* Oyun alanı */
.play { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: fadeUp .45s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.table { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; padding: 6px 18px 10px; }
.stack { position: relative; width: min(100cqw, 100cqh * .714); height: min(100cqh, 100cqw * 1.4); }
.hint { flex: none; text-align: center; font-size: 15px; color: var(--text-secondary); padding: 0 16px calc(12px + var(--safe-b)); min-height: 30px; }
.bar { flex: none; display: flex; gap: 10px; justify-content: center; padding: 4px 16px calc(14px + var(--safe-b)); }
.bar .btn { flex: 1; max-width: 260px; }

/* ------------------------------------------------------------ Kart (oyun nesnesi: kendi koyu ya da çizimli yüzü) */
.pf-edge { position: absolute; inset: 0; border-radius: var(--radius-card); background: #3a3a42; border: 1px solid rgba(32, 32, 32, .15); box-shadow: rgba(32, 32, 32, .18) 0 2px 10px 0; }
.pf-edge.e1 { transform: rotate(-2.5deg) translateY(6px); }
.pf-edge.e2 { transform: rotate(2deg) translateY(3px); }
.pf-card {
  --text-primary: #f5f5f7; --text-secondary: #a1a1aa; color: var(--text-primary);
  position: absolute; inset: 0; border-radius: var(--radius-card); overflow: hidden; container-type: size;
  background:
    radial-gradient(110% 60% at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    radial-gradient(80% 50% at 100% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    linear-gradient(165deg, #24242a, #18181c);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: rgba(32, 32, 32, .3) 0 8px 28px 0, inset 0 1px 0 rgba(255, 255, 255, .07);
  touch-action: none; will-change: transform;
  transition: transform .5s var(--ease-spring), opacity .3s;
}
.pf-card.swipe { cursor: grab; }
.pf-card.dragging { transition: none; cursor: grabbing; }
.pf-card.enter { transform: translateY(14px) scale(.94); opacity: 0; }
.pf-art { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
.pf-deco { position: absolute; inset: 0; pointer-events: none; }
.pf-card.has-art { background: #18181c; border-color: transparent; }
.pf-card.has-art .pf-deco { display: none; }
/* Oyuna özel yazı tipi (kart tasarımından): build.py --font-game verir */
body.game .pf-safe, body.game .pf-mark, body.game .pf-label { font-family: var(--font-game, var(--font-sans)); }
.pf-card.has-art[data-card-template="oknok-card"] .pf-safe { letter-spacing: -.01em; font-weight: 600; }
/* Tabu çizimi: çizgi kartın %37'sinde; kelime üstte, yasaklılar altta */
.pf-mark.ok { background: var(--accent-oknok); color: #fff; }
.pf-mark.nok { background: var(--accent-oknok-2); color: #fff; }
/* Çizimli OK/NOK kartında yalnızca alt etiketler görünür */
.pf-card.has-art[data-card-template="oknok-card"] .pf-deco { display: block; }
.pf-card.has-art[data-card-template="oknok-card"] .pf-frame,
.pf-card.has-art[data-card-template="oknok-card"] .pf-label,
.pf-card.has-art[data-card-template="oknok-card"] .pf-no { display: none; }
.pf-card.has-art[data-card-template="oknok-card"] .pf-foot { bottom: 6cqw; }
/* Beyaz zeminli çizimler: yazı koyu, güvenli alan tik ile X arasında */
.pf-card.has-art[data-card-template="oknok-card"] { color: #1b1b20; }
.pf-card.has-art[data-card-template="oknok-card"] .pf-safe { top: 36%; bottom: 36%; text-align: center; align-items: center; font-weight: 700; font-size: calc(var(--fs, 1) * 7.2cqw); text-shadow: 0 0 .5em #fff, 0 0 .25em #fff, 0 0 1em #fff; }
.pf-frame { position: absolute; inset: 3.4cqw; border-radius: calc(var(--radius-card) - 9px); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.pf-label, .pf-no { position: absolute; top: 8cqw; font-size: 3.3cqw; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.pf-label { left: 8.5cqw; color: var(--accent); }
.pf-no { right: 8.5cqw; color: var(--text-secondary); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.pf-foot { position: absolute; left: 8.5cqw; right: 8.5cqw; bottom: 8cqw; display: flex; justify-content: space-between; align-items: center; gap: 3cqw; font-size: 3.4cqw; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); line-height: 1; }
.pf-foot > * { white-space: nowrap; }
.pf-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 17cqw; height: 9cqw; padding: 0 3.5cqw; border-radius: var(--radius-pill); font-size: 4cqw; letter-spacing: .06em; }
.pf-mark.fill { background: var(--accent); color: #121214; }
.pf-mark.out { border: 1.5px solid var(--accent); color: var(--accent); }
.pf-safe {
  position: absolute; top: 17cqh; bottom: 16cqh; left: 9cqw; right: 9cqw;
  display: flex; flex-direction: column; justify-content: center; gap: .5em;
  font-size: calc(var(--fs, 1) * 8.4cqw); line-height: 1.16; font-weight: 800; letter-spacing: -.025em;
  overflow: hidden; overflow-wrap: break-word; text-wrap: pretty;
}
.pf-badge { align-self: flex-start; font-size: max(11px, .42em); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .45em .9em; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); line-height: 1; }
.pf-pre { font-size: .6em; font-weight: 700; color: var(--text-secondary); letter-spacing: -.01em; }
.pf-big { font-size: 1.5em; line-height: 1; letter-spacing: -.045em; color: var(--accent); }
.pf-end { align-items: center; text-align: center; gap: 4cqw; }
.pf-end p { font-size: .55em; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }
.pf-end .btn { font-size: 16px; background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Tabu kartı */
.yk-word { font-size: 1.5em; line-height: 1; text-transform: uppercase; letter-spacing: -.03em; text-align: center; }
.yk-div { height: 2px; background: color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 2px; margin: .25em 0; }
.yk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .32em; font-size: .78em; font-weight: 700; letter-spacing: -.01em; text-align: center; color: #d4d4d8; }
.yk-safe { justify-content: center; }

/* ------------------------------------------------------------ Tabu turu */
.turnbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 18px 0; }
.turn-team { font-size: 16px; font-weight: 700; color: var(--text-secondary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turn-team b { color: var(--text-primary); }
.timer { font-size: 32px; font-weight: 800; letter-spacing: -.03em; padding: 2px 16px; border-radius: var(--radius-button); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: color .2s, background .2s; }
.timer.warn { color: var(--bad); background: #ffe9ec; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.actions { flex: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 4px 16px calc(14px + var(--safe-b)); }
.actions, .turnbar, .pills, .bar { width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; }
.act { min-height: 68px; border-radius: 18px; font-weight: 800; font-size: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px solid var(--ink); transition: transform .3s var(--ease-spring), opacity .2s; }
.act small { font-size: 15px; font-weight: 700; opacity: .8; }
.act:active { transform: scale(.94); }
.act.bad { background: #ffe3e6; color: #b4132b; border-color: #b4132b; }
.act.pass { background: var(--paper); }
.act.good { background: var(--good); color: #0a1f12; border-color: #0a1f12; }
.act:disabled { opacity: .35; }
.panel { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px calc(20px + var(--safe-b)); }
.panel-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.panel .sub { color: var(--text-secondary); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius-button); padding: 12px; text-align: center; }
.stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 15px; color: var(--text-secondary); font-weight: 700; }
.board { display: grid; gap: 8px; }
.board .row { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-radius: var(--radius-button); padding: 14px 18px; border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.board .row.on { border-color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, var(--mix)); }
.board .row b { font-size: 18px; }
.board .score { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.words span { font-size: 15px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--bg-surface-soft); }
.words .w-good { background: #dff7e7; color: #137a3a; }
.words .w-bad { background: #ffe3e6; color: #b4132b; text-decoration: line-through; }
.trophy { font-size: 64px; line-height: 1; font-weight: 800; color: var(--accent-ink); letter-spacing: -.05em; }

/* ------------------------------------------------------------ Şişe */
.arena { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; position: relative; }
.ring {
  position: relative; width: min(88cqw, 82cqh); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 64%);
}
.ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--line-strong); }
.ring::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line); }
.ring .tick { position: absolute; left: 50%; top: 50%; width: 2px; height: 10px; margin: -5px -1px; background: var(--line-strong); border-radius: 2px; }
.bottle { position: absolute; left: 50%; top: 50%; height: 92%; width: auto; transform: translate(-50%, -50%) rotate(0deg); filter: drop-shadow(0 12px 16px rgba(32, 32, 32, .28)) drop-shadow(0 0 16px rgba(68, 203, 86, .4)); pointer-events: none; }
.spin-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 15px; color: var(--text-secondary); pointer-events: none; transition: opacity .3s; }
.pills { flex: none; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 6px 16px calc(16px + var(--safe-b)); min-height: 86px; align-items: center; }
.pills button {
  min-height: 54px; padding: 0 20px; border-radius: var(--radius-pill); font-weight: 800; font-size: 17px;
  background: color-mix(in srgb, var(--c) 14%, var(--mix)); color: color-mix(in srgb, var(--c) 62%, var(--ink)); border: 1.5px solid color-mix(in srgb, var(--c) 60%, var(--mix));
  transform: translateY(20px) scale(.9); opacity: 0; transition: transform .45s var(--ease-spring), opacity .25s;
}
.pills.show button { transform: none; opacity: 1; }
.pills.show button:nth-child(2) { transition-delay: .05s; }
.pills.show button:nth-child(3) { transition-delay: .1s; }
.pills .spin-btn { --c: var(--ink); opacity: 1; transform: none; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Alt çekmece */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(32, 32, 32, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .3s; }
.sheet-wrap.open { opacity: 1; }
.sheet {
  width: min(100%, 520px); max-height: 94dvh; background: var(--paper); border-radius: 28px 28px 0 0; padding: 10px 18px calc(16px + var(--safe-b));
  display: flex; flex-direction: column; gap: 14px; transform: translateY(100%); transition: transform .5s var(--ease-spring);
}
.sheet-wrap.open .sheet { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); align-self: center; }
.sheet .sheet-card { height: min(64dvh, 520px); container-type: size; display: grid; place-items: center; }
.sheet h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sheet .list { overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-bottom: 4px; }
.sheet .list span { background: var(--bg-surface-soft); border-radius: 12px; padding: 9px 12px; font-size: 15px; font-weight: 700; }

/* ------------------------------------------------------------ Katil Kim */
.spy { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 6px 20px calc(16px + var(--safe-b)); gap: 14px; }
.spy-head { text-align: center; }
.spy-head .k { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.spy-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.spy .table { width: 100%; padding: 0; }
.hold { cursor: pointer; }
.hold .face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; text-align: center; padding: 10cqw; transition: opacity .12s; }
.hold .front svg.i { width: 22cqw; height: 22cqw; color: var(--accent); stroke-width: 1.5; }
.hold .front b { font-size: 6.5cqw; font-weight: 800; letter-spacing: -.02em; }
.hold .front span { font-size: 4.4cqw; color: var(--text-secondary); }
.hold .back { opacity: 0; }
.hold.revealed .front { opacity: 0; }
.hold.revealed .back { opacity: 1; }
.hold.revealed { transform: scale(.985); }
.hold .back .lbl { font-size: 3.8cqw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.hold .back .val { font-size: 11cqw; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hold .back .val.role { font-size: 7.5cqw; color: var(--accent); }
.hold .back .spyword { font-size: 17cqw; color: var(--bad); letter-spacing: -.05em; line-height: 1; font-weight: 800; }
.hold .back p { font-size: 4.4cqw; color: var(--text-secondary); font-weight: 600; }
.spy .bar { width: 100%; padding: 0; }
.clock { font-size: clamp(64px, 22vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock.warn { color: var(--bad); }
.clock.done { color: var(--bad); animation: pulse 1s infinite; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; width: 100%; max-width: 560px; }
.center .sub { color: var(--text-secondary); }
.spy .center { overflow-y: auto; justify-content: safe center; padding: 4px 0; }
.spy .bar.col { flex-direction: column; align-items: stretch; max-width: 560px; }
.spy .bar.col .btn { max-width: none; width: 100%; }
.h { font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.script { width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 4px solid var(--accent); border-radius: var(--radius-button); padding: 14px 18px; font-size: 18px; line-height: 1.45; color: var(--text-primary); }
.script span { display: block; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.mod-note { font-size: 16px; color: var(--text-secondary); background: var(--bg-surface-soft); border-radius: 12px; padding: 10px 14px; width: 100%; text-align: left; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.role-grid.five .role-btn:last-child { grid-column: 1 / -1; }
.role-btn { flex-direction: column; gap: 0; min-height: 68px; }
.role-btn small { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.reveal-box { background: var(--paper); border-radius: 20px; padding: 18px; width: 100%; display: grid; gap: 4px; border: 1.5px solid var(--ink); }
.reveal-box .lbl { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.reveal-box b { font-size: 28px; letter-spacing: -.03em; }

/* 3-2-1 */
.count-ovl { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(32, 32, 32, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.count-ovl b { font-size: 40vmin; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: #fff; animation: pop .8s var(--ease-spring) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

/* Bildirim */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 80; transform: translate(-50%, 30px); opacity: 0; background: rgba(32, 32, 32, .88); backdrop-filter: blur(10px); color: #fff; font-weight: 700; font-size: 16px; padding: 12px 20px; border-radius: var(--radius-pill); transition: transform .45s var(--ease-spring), opacity .25s; pointer-events: none; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 760px) {
  .table { padding: 10px 24px 16px; }
  .setup h1 { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================ iOS tarzı: cam, yay, geçiş ============================================================ */
:root { --ios: cubic-bezier(.32, .72, 0, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); --glass-bg: rgba(255, 255, 255, .62); --glass-line: rgba(255, 255, 255, .75); }

/* Sıvı cam: yarı saydam, bulanık, üstte ince parlak çizgi */
.glass, .btn.glass, .tb-back, .icon-btn, .timer, .stats div, .board .row, .script, .rules, .stepper, .seg button, .field input, .faq details, .step {
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.tb-back, .icon-btn, .timer, .stats div, .board .row, .script, .rules, .stepper, .faq details {
  background: var(--glass-bg); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), rgba(32, 32, 32, .07) 0 6px 20px;
}
.seg button { background: rgba(255, 255, 255, .55); border-color: rgba(32, 32, 32, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85); }
.seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, .75)); }
.field input { background: rgba(255, 255, 255, .7); }
.btn.glass { background: rgba(255, 255, 255, .24); border: 1px solid rgba(255, 255, 255, .5); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), rgba(32, 32, 32, .12) 0 6px 18px; }
@media (hover: hover) { .btn.glass:hover { background: rgba(255, 255, 255, .4); transform: translateY(-2px); } }
.home-top.scrolled .btn.glass, .home-top.plain .btn.glass { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: none; }

/* Dokununca yaylı basılma */
.btn, .tile, .seg button, .icon-btn, .tb-back, .stepper button, .act, .pills button, .faq summary { -webkit-tap-highlight-color: transparent; }
.btn:active, .seg button:active, .icon-btn:active, .tb-back:active, .act:active, .pills button:active { transform: scale(.94); transition-duration: .12s; filter: brightness(.96); }
.tile:active { transform: scale(.965); transition-duration: .12s; }

/* Oyun sayfası: arkada oyunun renginde yumuşak ışık (camın arkasında görünsün) */
body.game::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 38% at 0% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%),
              radial-gradient(55% 36% at 100% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%); }
body.game { position: relative; }

/* Sayfa geçişi (destekleyen tarayıcılarda): iOS'taki gibi yumuşak it */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .32s var(--ios) both vtOut; }
::view-transition-new(root) { animation: .5s var(--ios) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: scale(.96); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(26px) scale(1.015); } }

/* Kurulum ekranı elemanları sırayla yaylanarak gelir */
.setup-inner > * { animation: riseIn .7s var(--spring) both; }
.setup-inner > *:nth-child(2) { animation-delay: .05s; } .setup-inner > *:nth-child(3) { animation-delay: .1s; }
.setup-inner > *:nth-child(4) { animation-delay: .15s; } .setup-inner > *:nth-child(5) { animation-delay: .2s; }
.setup-inner > *:nth-child(6) { animation-delay: .25s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
.seg button[aria-pressed="true"] { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(.94); } 100% { transform: none; } }

/* Alt çekmece: iOS sayfası gibi */
.sheet { transition: transform .55s var(--ios); }
.sheet-wrap { transition: opacity .35s var(--ios); }

/* Tile: elle bırakılmış gibi hafif eğik, üzerine gelince düzelir; imleç ışığı */
.tile { rotate: var(--tilt, 0deg); transition: transform .45s var(--spring), rotate .45s var(--spring), box-shadow .3s; position: relative; overflow: hidden; }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 77, 255, .16), transparent 62%); }
@media (hover: hover) { .tile:hover { rotate: 0deg; } .tile:hover::after { opacity: 1; } }

/* Kayan şerit */
.strip { position: relative; z-index: 3; margin: -34px -20px 0; padding: 14px 0; background: var(--ink); color: var(--on-ink); overflow: hidden; rotate: -1.6deg; box-shadow: rgba(32, 32, 32, .25) 0 8px 24px; }
.strip-in { display: flex; align-items: center; gap: 26px; width: max-content; padding-left: 26px; animation: marquee 34s linear infinite; }
.strip-in span { font-weight: 800; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.strip-in i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
body.home { overflow-x: clip; }
html:has(body.home) { overflow-x: clip; }

/* Ben Hiç çizimi (düz grafik): ortada büyük beyaz konuşma balonu; soru balonun içinde, etiketler alttaki koyu dalgada */
.pf-card.has-art[data-card-template="neverhave-card"] { color: #1a0b33; }
.pf-card.has-art[data-card-template="neverhave-card"] .pf-deco { display: block; }
.pf-card.has-art[data-card-template="neverhave-card"] .pf-frame,
.pf-card.has-art[data-card-template="neverhave-card"] .pf-label,
.pf-card.has-art[data-card-template="neverhave-card"] .pf-no { display: none; }
.pf-card.has-art[data-card-template="neverhave-card"] .pf-safe { top: 31%; bottom: 40%; left: 10%; right: 18%; text-align: center; align-items: center; justify-content: center; font-size: calc(var(--fs, 1) * 10.2cqw); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; }
.pf-card.has-art[data-card-template="neverhave-card"] .pf-big { color: #7B16FF; font-weight: 800; }
.pf-card.has-art[data-card-template="neverhave-card"] .pf-foot { left: 8%; right: 8%; bottom: 4%; color: #F3EBFF; }
.pf-card.has-art[data-card-template="neverhave-card"] .pf-mark.fill { background: #8B2BFF; color: #fff; }

/* Yalnızca ön görseli olan oyun (Şişe Çevirmece): görsel kapağı doldurur */
.mini.cover { background: #04140a; isolation: isolate; }
.mini.cover .cv { position: absolute; inset: 0; background-size: cover; background-position: 50% 48%; transition: transform .8s var(--spring); }
@media (hover: hover) { .tile:hover .mini.cover .cv { transform: scale(1.06) rotate(-1.5deg); } }

/* Şişe kartları (Doğruluk / Cesaret / Shot): ortada şişe var; etiket üstte, soru altta yarı saydam panelde */
.pf-card.has-art[data-card-template^="bottle-"] { color: #fff; }
.pf-card.has-art[data-card-template^="bottle-"] .pf-deco { display: block; }
.pf-card.has-art[data-card-template^="bottle-"] .pf-frame,
.pf-card.has-art[data-card-template^="bottle-"] .pf-no { display: none; }
.pf-card.has-art[data-card-template^="bottle-"] .pf-label { left: 0; right: 0; top: 6.5cqw; text-align: center; font-size: 4.6cqw; letter-spacing: .22em; color: var(--accent); text-shadow: 0 0 .8em rgba(0, 0, 0, .8); }
.pf-card.has-art[data-card-template^="bottle-"] .pf-safe { top: 68%; bottom: 5%; left: 8%; right: 8%; text-align: center; align-items: center; justify-content: center;
  padding: 2.4cqw 5cqw; border-radius: 6cqw; background: rgba(4, 4, 4, .5); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: calc(var(--fs, 1) * 6.4cqw); font-weight: 800; letter-spacing: -.01em; }

/* Katil Kim: silüet arka yüz + role özel kart çizimi (şapkanın altındaki boş alana yazı) */
.pf-card.hold.has-art .front { justify-content: flex-end; padding: 0 8cqw 10cqw; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 45%); }
.pf-card.hold.has-art .front svg.i { width: 11cqw; height: 11cqw; color: #fff; stroke-width: 1.8; }
.pf-card.hold.has-art .front b { color: #fff; font-size: 7cqw; }
.pf-card.hold.has-art .front span { color: rgba(255, 255, 255, .78); font-size: 4.2cqw; }
.hold .face.back.art { background-size: cover; background-position: center; background-repeat: no-repeat; justify-content: flex-start; gap: 3.5cqw; padding: 54cqw 9cqw 0; }
.hold .face.back.art .lbl { color: rgba(255, 255, 255, .7); }
.hold .face.back.art p { color: rgba(255, 255, 255, .88); font-size: 4.6cqw; line-height: 1.35; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.hold .face.back.art .val { text-shadow: 0 0 .5em rgba(0, 0, 0, .6); }

/* ============================================================ Koyu tema ============================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111113; --paper: #1d1d21; --bg-surface-soft: #2a2a30; --mix: #26262c;
  --text-primary: #f5f5f7; --text-secondary: #a8a8b0; --text-badge: #d6d6dc;
  --ink: #f2f2f4; --on-ink: #151517;
  --brand-soft: #2b2352; --brand-ink: #BBA2FF;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .24);
  --shadow: rgba(0, 0, 0, .45) 0 1px 8px 0;
  --glass-bg: rgba(42, 42, 48, .62); --glass-line: rgba(255, 255, 255, .13);
  --bad: #FF5468;
}
:root[data-theme="dark"] .home-top.scrolled { background: rgba(24, 24, 28, .78); }
:root[data-theme="dark"] .hero h1 em,
:root[data-theme="dark"] .home-top:not(.scrolled):not(.plain) .wordmark .fn { color: #1b1236; }
:root[data-theme="dark"] .tb-back, :root[data-theme="dark"] .icon-btn, :root[data-theme="dark"] .timer, :root[data-theme="dark"] .stats div,
:root[data-theme="dark"] .board .row, :root[data-theme="dark"] .script, :root[data-theme="dark"] .rules, :root[data-theme="dark"] .stepper, :root[data-theme="dark"] .faq details {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), rgba(0, 0, 0, .35) 0 6px 20px;
}
:root[data-theme="dark"] .seg button { background: rgba(255, 255, 255, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 30%, rgba(255, 255, 255, .06)); }
:root[data-theme="dark"] .field input { background: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .timer.warn { background: rgba(255, 84, 104, .2); }
:root[data-theme="dark"] .act.bad { background: rgba(255, 84, 104, .18); color: #ff8a98; border-color: #ff8a98; }
:root[data-theme="dark"] .words .w-good { background: rgba(34, 197, 94, .2); color: #6ee79a; }
:root[data-theme="dark"] .words .w-bad { background: rgba(255, 84, 104, .2); color: #ff8a98; }
:root[data-theme="dark"] .toast { background: rgba(245, 245, 247, .92); color: #151517; }
:root[data-theme="dark"] .mini.cover, :root[data-theme="dark"] .mini { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .tile:hover { box-shadow: rgba(0, 0, 0, .55) 0 4px 18px 0; }
:root[data-theme="dark"] body.game::before { opacity: 1.2; }

/* Tema düğmesi: açıkken ay, koyuyken güneş simgesi */
.top-right { display: flex; align-items: center; gap: 8px; }
.icon-btn .ti { display: grid; place-items: center; }
:root:not([data-theme="dark"]) .icon-btn .ti.sun { display: none; }
:root[data-theme="dark"] .icon-btn .ti.moon { display: none; }
.home-top .icon-btn { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .5); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), rgba(32, 32, 32, .12) 0 6px 18px; }
.home-top.scrolled .icon-btn, .home-top.plain .icon-btn { background: var(--glass-bg); border-color: var(--glass-line); color: var(--ink); }
.tb-right { min-width: 0; }

:root[data-theme="dark"] .strip { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .strip-in i { background: #fff; }

/* Şişe kapağı: önde Doğruluk kartı + örnek soru, arkada Cesaret ve Shot */
.mini.art .sb-l { position: absolute; left: 0; right: 0; top: 6cqw; text-align: center; font-size: 6.4cqw; font-weight: 800; letter-spacing: .2em; color: #44CB56; text-shadow: 0 0 .8em rgba(0, 0, 0, .8); }
.mini.art .sample-bottle { position: absolute; left: 8%; right: 8%; top: 70%; bottom: 6%; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 2cqw 3cqw; border-radius: 6cqw; background: rgba(4, 4, 4, .55); border: 1px solid rgba(68, 203, 86, .5);
  font-weight: 800; font-size: 9.2cqw; line-height: 1.15; color: #fff; }

/* Katil Kim kapağı: önde Katil kartı, arkada Doktor ve Muhafız */
.mini.art .sr-l { position: absolute; left: 0; right: 0; top: 47%; text-align: center; font-size: 5.6cqw; font-weight: 800; letter-spacing: .18em; color: rgba(255, 255, 255, .7); }
.mini.art .sr-n { position: absolute; left: 0; right: 0; top: 53%; text-align: center; font-size: 20cqw; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-shadow: 0 0 .5em rgba(0, 0, 0, .6); }

/* Şişe kartı altındaki düğmeler: Tamam + yanında Shot cezası */
.sheet-btns { display: flex; gap: 10px; }
.sheet-btns .btn { flex: 1; min-width: 0; padding: 14px 12px; }
.btn.shot-btn { background: rgba(250, 31, 23, .16); border-color: #FA1F17; color: #ff7a72; }
@media (hover: hover) { .btn.shot-btn:hover { background: rgba(250, 31, 23, .3); } }

/* Yap ya da Shot çizimi: sol üst siyah, sağ alt turuncu (çapraz). Yazı siyah bölgede, ceza etiketi turuncu bölgede. */
.pf-card.has-art[data-card-template="shot-card"] { color: #fff; }
.pf-card.has-art[data-card-template="shot-card"] .pf-deco { display: block; }
.pf-card.has-art[data-card-template="shot-card"] .pf-frame,
.pf-card.has-art[data-card-template="shot-card"] .pf-no { display: none; }
.pf-card.has-art[data-card-template="shot-card"] .pf-label { top: 6cqw; color: #FF6E00; }
.pf-card.has-art[data-card-template="shot-card"] .pf-safe { top: 21%; bottom: 47%; left: 9%; right: 34%; align-items: flex-start; justify-content: flex-start; text-align: left; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; gap: 1.2em; }
.pf-card.has-art[data-card-template="shot-card"] .pf-badge { background: #FF6E00; color: #141414; font-size: max(11px, .4em); }
.pf-card.has-art[data-card-template="shot-card"] .pf-foot { left: 9%; right: 7%; bottom: 29%; color: rgba(255, 255, 255, .75); }
.pf-card.has-art[data-card-template="shot-card"] .pf-mark.fill { background: #141414; color: #FFF1DC; }
.mini.art .sample-yap { position: absolute; left: 9%; right: 34%; top: 21%; bottom: 47%; display: flex; align-items: flex-start; text-align: left; font-family: 'Archivo', var(--font-sans); font-weight: 800; font-size: 11cqw; line-height: 1.1; color: #fff; }

/* Ben Hiç kapağı: örnek yazı konuşma balonunun içinde, bardaklara değmeden */
.mini.art .sample-bubble { position: absolute; left: 12%; right: 20%; top: 33%; bottom: 40%; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: 'Baloo 2', var(--font-sans); font-weight: 800; font-size: 8.4cqw; line-height: 1.08; color: #1a0b33; }

/* ===== Yeni illüstrasyon setleri: Katil Kim (risograf noir) ve Şişe (kâğıt kesim) ===== */
.hold .face.back.art { padding: 104cqw 8cqw 0; gap: 2.5cqw; justify-content: flex-start; }
.hold .face.back.art .lbl { display: none; }
.hold .face.back.art .val { text-shadow: none; line-height: 1; }
.hold .face.back.art p { font-size: 4.4cqw; line-height: 1.3; text-shadow: none; }
.mini.art .sr-l { top: 77.5%; font-size: 5.2cqw; }
.mini.art .sr-n { top: 82.5%; font-size: 16cqw; text-shadow: none; }

/* Şişe kartları: üstte koyu şerit yok sayılır, etiket alttaki koyu bandın başında, soru bandın içinde */
.pf-card.has-art[data-card-template^="bottle-"] .pf-label { left: 0; right: 0; top: 78.4%; font-size: 4.2cqw; letter-spacing: .24em; text-shadow: none; }
.pf-card.has-art[data-card-template^="bottle-"] .pf-safe { top: 83.6%; bottom: 3%; left: 7%; right: 7%; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; font-size: calc(var(--fs, 1) * 5.9cqw); line-height: 1.14; letter-spacing: -.005em; }
.mini.art .sb-l { top: 78.4%; font-size: 4.6cqw; text-shadow: none; }
.mini.art .sample-bottle { top: 83.6%; bottom: 3%; left: 7%; right: 7%; padding: 0; background: none; border: 0; border-radius: 0; font-size: 7.4cqw; line-height: 1.12; }

/* Tabu çizimi (pop-art): üstte kırmızı blok (kelime), %37'de siyah çizgi, altta krem kâğıt (yasaklı kelimeler) */
.pf-card.has-art[data-card-template="tabu-card"] { color: #141414; }
.pf-card.has-art[data-card-template="tabu-card"] .pf-deco { display: none; }
.pf-card.has-art[data-card-template="tabu-card"] .pf-safe { top: 5%; bottom: 24.5%; left: 8%; right: 8%; display: grid; grid-template-rows: 45% 1fr; gap: 0; font-family: 'Anton', 'Oswald', var(--font-sans); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; text-align: center; overflow: hidden; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-div { display: none; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-word { align-self: center; padding-right: 34%; font-size: 1.9em; line-height: .98; color: #fff; text-shadow: 0 .05em 0 #141414, .04em 0 0 #141414, -.04em 0 0 #141414, 0 -.04em 0 #141414; letter-spacing: .02em; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-list { align-self: center; font-size: 1.08em; font-weight: 400; gap: .26em; color: #141414; letter-spacing: .03em; margin-top: 0; position: relative; left: 6%; line-height: 1.04; }
.mini.art .sample-tabu { position: absolute; left: 8%; right: 8%; top: 5%; bottom: 24.5%; display: grid; grid-template-rows: 45% 1fr; justify-items: center; font-family: 'Anton', 'Oswald', var(--font-sans); text-transform: uppercase; color: #141414; text-align: center; }
.mini.art .sample-tabu b { align-self: center; padding-right: 22%; font-size: 21cqw; font-weight: 400; line-height: 1; color: #fff; text-shadow: 0 .05em 0 #141414, .04em 0 0 #141414, -.04em 0 0 #141414; }
.mini.art .sample-tabu i { display: none; }
.mini.art .sample-tabu div { align-self: center; display: grid; gap: 1.2cqw; position: relative; left: 6%; }
.mini.art .sample-tabu u { text-decoration: none; font-size: 9.6cqw; line-height: 1.05; letter-spacing: .03em; }

.pf-card.has-art[data-card-template="tabu-card"] .yk-word { overflow-wrap: normal; word-break: normal; hyphens: none; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-list li { white-space: nowrap; }
.mini.art .sample-tabu u { white-space: nowrap; }

/* Tabu: kelime ve liste aynı sol çizgiye hizalı */
.pf-card.has-art[data-card-template="tabu-card"] .pf-safe { text-align: left; padding-left: 3%; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-word { text-align: left; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-list { text-align: left; left: 0; justify-items: start; padding-left: 0; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-list li { text-align: left; }
.mini.art .sample-tabu { justify-items: start; text-align: left; padding-left: 3%; }
.mini.art .sample-tabu b { text-align: left; }
.mini.art .sample-tabu div { left: 0; justify-items: start; }
/* Tabu: tüm kartlarda sol kenar sabit (blok en uzun satıra göre ortalanmasın) */
.pf-card.has-art[data-card-template="tabu-card"] .pf-safe { grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: start; }
.mini.art .sample-tabu { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
/* Tabu: kelime ve liste kartın orta eksenine ortalı; kelime elin soluna sığan dar sütunda */
.pf-card.has-art[data-card-template="tabu-card"] .pf-safe { text-align: center; padding-left: 0; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: stretch; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-word { text-align: center; padding-left: 20%; padding-right: 20%; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-list { text-align: center; justify-items: center; left: 0; padding: 0; }
.pf-card.has-art[data-card-template="tabu-card"] .yk-list li { text-align: center; }
.mini.art .sample-tabu { text-align: center; justify-items: stretch; padding-left: 0; }
.mini.art .sample-tabu b { text-align: center; padding-left: 20%; padding-right: 20%; }
.mini.art .sample-tabu div { justify-items: center; left: 0; padding: 0; }
.mini.art .sample-tabu u { text-align: center; }
/* Tabu kelime sütunu: iç boşluk yerine dış boşluk (taşan yazı sığdırmada algılansın) */
.pf-card.has-art[data-card-template="tabu-card"] .yk-word { padding: 0; margin-left: 20%; margin-right: 20%; }
.mini.art .sample-tabu b { padding: 0; margin-left: 20%; margin-right: 20%; }
/* Tabu kapağı: liste ayrılan alana (çizgi ile alt süs arası) sığsın */
.mini.art .sample-tabu u { font-size: 7.2cqw; line-height: 1.05; }
.mini.art .sample-tabu div { gap: .9cqw; }
.mini.art .sample-tabu b { font-size: 20cqw; }
/* ===== Alnındaki Kelime / Ünlü (yatay tam ekran) ===== */
.fh-stage.fh-full { position: fixed; inset: 0; z-index: 90; margin: 0; border-radius: 0; }
.fh-stage.fh-full.rot { inset: auto; top: 0; left: 0; transform-origin: 0 0; }
.fh-exit { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; border: 0; background: rgba(0,0,0,.28); color: #fff; font: inherit; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 6px 14px; }
.fh-stage.cel { color: #1a1204; }
.fh-stage.cel .fh-word { text-shadow: 0 3px 0 rgba(255,255,255,.35); }
.fh-stage.cel .fh-hint, .fh-stage.cel .fh-zone { color: rgba(26,18,4,.7); }
.fh-stage.cel .fh-top .timer, .fh-stage.cel .fh-score, .fh-stage.cel .fh-exit { color: #fff; }
.fh-big { font-size: 40vmin; }
.fh-stage { flex: 1; min-height: 0; position: relative; margin: 6px 14px calc(14px + var(--safe-b)); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; transition: background .12s; }
.fh-stage.ok { background: #22C55E; }
.fh-stage.pas { background: #F59E0B; }
.fh-top { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; z-index: 2; pointer-events: none; }
.fh-top .timer { background: rgba(0, 0, 0, .28); border: 0; color: #fff; box-shadow: none; }
.fh-top .timer.warn { background: rgba(0, 0, 0, .5); color: #FFE3E6; }
.fh-score { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .28); border-radius: var(--radius-button); padding: 2px 16px; }
.fh-word { font-weight: 800; text-align: center; line-height: 1.02; letter-spacing: -.02em; padding: 0 22px; max-width: 100%; overflow-wrap: break-word; text-wrap: balance; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.fh-feedback { position: absolute; top: 36%; left: 0; right: 0; text-align: center; font-size: 22vmin; font-weight: 800; letter-spacing: -.04em; opacity: 0; transform: scale(.6); pointer-events: none; text-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.fh-feedback.show { animation: fhPop .5s var(--ease-spring) both; }
@keyframes fhPop { 0% { opacity: 0; transform: scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15) translateY(-10px); } }
.fh-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 15px; font-weight: 700; opacity: .85; pointer-events: none; padding: 0 16px; }
.fh-zone { position: absolute; top: 56px; bottom: 0; width: 50%; z-index: 1; background: transparent; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 44px; font-size: 14px; font-weight: 800; letter-spacing: .12em; color: rgba(255, 255, 255, .6); text-transform: uppercase; }
.fh-zone.left { left: 0; } .fh-zone.right { right: 0; }
.fh-zone:active { background: rgba(255, 255, 255, .1); }
.fh-ready { text-align: center; }
.fh-test { width: 100%; text-align: center; font-size: 15px; line-height: 1.4; background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: var(--radius-button); padding: 10px 14px; }
.fh-test[hidden] { display: none; }
.fh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; width: 100%; }
.fh-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: var(--radius-button); padding: 12px 14px; font-size: 16px; }
.fh-steps b.n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #1a0b14; display: grid; place-items: center; font-weight: 800; }
