:root {
  --bg: #FFF8F3;
  --card: #FFFFFF;
  --ink: #463F57;
  --muted: #9C95AB;
  --line: #F1E7E2;
  --track: #F6EEF1;

  --pink: #FFD3E1;   --pink-2: #F9B4CB;
  --mint: #C9F0E1;   --mint-2: #9DDDC4;
  --lav: #E3DCFF;    --lav-2: #C4B8FA;
  --peach: #FFE1CE;  --peach-2: #FCC3A0;
  --sky: #D4EBFF;    --sky-2: #A8D2FB;
  --lemon: #FFF2C2;  --lemon-2: #F5DC85;

  --radius: 24px;
  --shadow: 0 8px 24px rgba(110, 80, 110, 0.07);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 211, 225, 0.55), transparent 32%),
    radial-gradient(circle at 92% 30%, rgba(201, 240, 225, 0.55), transparent 30%),
    radial-gradient(circle at 20% 95%, rgba(227, 220, 255, 0.6), transparent 34%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.screen {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: rise .28s ease both;
}

.center { align-items: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tc { text-align: center; }
.grow { flex: 1; }

/* ---------- Home ---------- */

.hero { text-align: center; padding: 28px 0 10px; }

.deck { position: relative; height: 122px; margin-bottom: 14px; }
/* Logo: aynı boyda üç kart; yanlar eşit açıyla yatık, ortadaki dik ve önde. Hepsi birlikte süzülür. */
.deck i {
  position: absolute; left: 50%; top: 12px;
  width: 78px; height: 100px; border-radius: 22px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.deck i:nth-child(1) { background: var(--mint); transform: translateX(-132%) rotate(-14deg); }
.deck i:nth-child(2) { background: var(--pink); transform: translateX(-50%); top: 4px; width: 84px; height: 108px; border-radius: 24px; z-index: 1; }
.deck i:nth-child(3) { background: var(--lav); transform: translateX(32%) rotate(14deg); }
/* Kartlardaki simgeler; yan kartlarda ortadaki kartın altında kalmasın diye dışa doğru kayık. */
.deck svg { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.deck i:nth-child(1) svg { left: 4px; }
.deck i:nth-child(2) svg { left: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; }
.deck i:nth-child(3) svg { right: 6px; }

.logo { font-size: 58px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.logo span { color: var(--pink-2); }
.tagline { margin: 8px 0 0; color: var(--muted); font-weight: 700; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 800; color: var(--muted); padding-left: 6px; }

input {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 15px 16px;
  font-size: 18px;
  font-weight: 700;
  outline: none;
  transition: border-color .15s;
}
input:focus { border-color: var(--lav-2); }
input::placeholder { color: #C8C1D3; }

.join-row { display: flex; gap: 10px; }
.join-row input { text-align: center; letter-spacing: 6px; font-size: 22px; font-weight: 900; }
.join-row .btn { flex: 0 0 auto; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 800; }
.divider::before, .divider::after { content: ''; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }

/* ---------- Buttons ---------- */

.btn {
  border: 0;
  border-radius: 18px;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 800;
  background: var(--lav);
  box-shadow: 0 4px 0 var(--lav-2);
  transition: transform .08s ease, box-shadow .08s ease, opacity .2s;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--lav-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.big { width: 100%; padding: 17px; font-size: 18px; }
.btn.sm { padding: 9px 14px; font-size: 15px; border-radius: 14px; }

.btn.pink  { background: var(--pink);  box-shadow: 0 4px 0 var(--pink-2); }
.btn.mint  { background: var(--mint);  box-shadow: 0 4px 0 var(--mint-2); }
.btn.peach { background: var(--peach); box-shadow: 0 4px 0 var(--peach-2); }
.btn.sky   { background: var(--sky);   box-shadow: 0 4px 0 var(--sky-2); }
.btn.lemon { background: var(--lemon); box-shadow: 0 4px 0 var(--lemon-2); }
.btn.pink:active:not(:disabled)  { box-shadow: 0 1px 0 var(--pink-2); }
.btn.mint:active:not(:disabled)  { box-shadow: 0 1px 0 var(--mint-2); }
.btn.peach:active:not(:disabled) { box-shadow: 0 1px 0 var(--peach-2); }
.btn.sky:active:not(:disabled)   { box-shadow: 0 1px 0 var(--sky-2); }
.btn.lemon:active:not(:disabled) { box-shadow: 0 1px 0 var(--lemon-2); }
.btn.lav { background: var(--lav); box-shadow: 0 4px 0 var(--lav-2); }
.btn.ghost { background: var(--card); box-shadow: 0 3px 0 var(--line); }
.btn.ghost:active:not(:disabled) { box-shadow: 0 1px 0 var(--line); }

.row { display: flex; gap: 10px; }
.row > .btn { flex: 1; }

.link {
  background: none; border: 0; padding: 6px 4px;
  color: var(--muted); font-weight: 800; font-size: 14px;
}
.link.install { display: block; margin: 0 auto; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Layout bits ---------- */

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; }
.topbar .right { display: flex; align-items: center; gap: 6px; }
.topbar .title { flex: 1; text-align: center; font-size: 18px; font-weight: 900; }
.topbar .spacer { width: 42px; flex: 0 0 auto; }

.nav-btn {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--card);
  box-shadow: 0 3px 0 var(--line), var(--shadow);
  display: inline-grid; place-items: center;
  font-size: 20px; font-weight: 900; line-height: 1;
  transition: transform .08s ease, box-shadow .08s ease;
}
.nav-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
/* Üst çubuk simgeleri: ince, yuvarlak uçlu çizgiler; renk düğmenin yazı renginden. */
.nav-btn { color: var(--ink); }
.nav-ic { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-ic .fill { fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.nav-btn.muted { color: var(--muted); }
.btn.sm .nav-ic { width: 19px; height: 19px; vertical-align: middle; }

.intro { text-align: center; padding: 22px 20px; }
.intro .big-emoji { font-size: 40px; line-height: 1; }
.intro p { margin: 10px 0 0; font-weight: 700; line-height: 1.45; }

.code-input { text-align: center; letter-spacing: 12px; font-size: 32px; font-weight: 900; padding: 14px 16px 14px 28px; }

.card.return { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--lemon); }
.return b { font-size: 20px; font-weight: 900; letter-spacing: 1px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow);
  font-weight: 800; font-size: 14px;
  white-space: nowrap; min-width: 0; overflow: hidden;
}
.topbar .right:first-child { min-width: 0; }
.pill > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pill.pink { background: var(--pink); }
.pill.mint { background: var(--mint); }
.code-mini { font-weight: 800; font-size: 14px; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card.pink { background: var(--pink); }
.card.mint { background: var(--mint); }
.card.lav { background: var(--lav); }
.card.lemon { background: var(--lemon); }
.card.sky { background: var(--sky); }
.card.peach { background: var(--peach); }

.section { margin: 6px 0 -4px 4px; font-size: 15px; font-weight: 900; display: flex; gap: 6px; align-items: baseline; }
.section .muted { font-weight: 700; font-size: 14px; }

.bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }

.hint { margin: 0; text-align: center; color: var(--muted); font-weight: 700; font-size: 15px; }

.dots::after { content: ''; animation: dots 1.4s steps(4) infinite; }

/* ---------- Lobby ---------- */

.code-card { text-align: center; padding: 20px 18px 18px; background: var(--lemon); }
/* Lobide masa kodu tek satır; ekranın asıl yeri oyuncular ve oyun seçimi. */
.code-card.compact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; text-align: left; }
.code-card.compact .cc-text { flex: 1; display: flex; align-items: baseline; gap: 10px; }
.code-card.compact .cc-text b { font-size: 26px; font-weight: 900; letter-spacing: 5px; }
.code-card.compact .btn.sm { padding: 8px 11px; font-size: 16px; }
.code-card.compact .qr-box { flex-basis: 100%; text-align: center; }

.game-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.game-pick .gi { font-size: 34px; line-height: 1; }
.game-pick .gp-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.game-pick b { font-size: 18px; font-weight: 900; line-height: 1.15; }
.game-pick small { font-size: 13px; font-weight: 700; color: rgba(70, 63, 87, .75); }
.game-pick.pink { background: var(--pink); } .game-pick.mint { background: var(--mint); }
.game-pick.sky { background: var(--sky); }   .game-pick.lav { background: var(--lav); }

/* "Hazırım" her zaman görünsün: liste uzasa da ekranın altına yapışır. */
.bottom.pinned {
  position: sticky; bottom: 0; z-index: 5;
  margin: auto -16px calc(-24px - env(safe-area-inset-bottom));
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(255, 248, 243, 0), var(--bg) 22%);
}
.bottom.pinned .adult-note { margin: 0; text-align: center; }
.invite { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.btn.ghost.on { background: var(--lemon-2); box-shadow: 0 1px 0 var(--line); }
.qr { width: 220px; max-width: 100%; aspect-ratio: 1; margin: 14px auto 0; padding: 10px; background: #fff; border-radius: 18px; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; display: block; }
.code { font-size: 54px; font-weight: 900; letter-spacing: 10px; line-height: 1.1; margin: 2px 0 12px 10px; }

.players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.players li {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 18px; padding: 10px 14px;
  box-shadow: var(--shadow);
  animation: rise .25s ease both;
}
.players li.off { opacity: .45; }
.players .pname { flex: 1; font-weight: 800; }
.players em { font-style: normal; color: var(--muted); font-weight: 700; }
.players .tag { font-size: 12px; font-weight: 800; color: var(--muted); }
.players .kick {
  width: 30px; height: 30px; flex: 0 0 auto; border: 0; border-radius: 50%;
  background: var(--track); color: var(--muted); font-size: 13px; font-weight: 900;
}
.players .kick:active { background: var(--pink); color: var(--ink); }
.section .clear-off { margin-left: auto; padding: 0 4px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.av {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-weight: 900; font-size: 16px;
}
.av.lg { width: 52px; height: 52px; font-size: 21px; }
.av.sm { width: 28px; height: 28px; font-size: 13px; }

.c0 { background: var(--pink); }  .c1 { background: var(--mint); }
.c2 { background: var(--lav); }   .c3 { background: var(--peach); }
.c4 { background: var(--sky); }   .c5 { background: var(--lemon); }
.c6 { background: #E9F5C9; }      .c7 { background: #F7D9F3; }
.c8 { background: #CFF1F2; }      .c9 { background: #FFD9D4; }
.c10 { background: #E0E4FF; }     .c11 { background: #F1E4D3; }

/* Oyun seçimi: yatay kaydırılan büyük kartlar; yandaki kartın ucu görünür ki kaydırılabildiği anlaşılsın. */
.games {
  position: relative; /* kartların offsetLeft'i şeride göre ölçülsün */
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  margin: 0 -16px; padding: 4px 16px 10px;
  scrollbar-width: none;
}
.games::-webkit-scrollbar { display: none; }
.game-slide {
  flex: 0 0 84%; scroll-snap-align: center;
  position: relative; min-height: 190px;
  border: 3px solid transparent; border-radius: 28px;
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s;
}
.game-slide[data-act] { cursor: pointer; }
/* Oyun kartlarının arkasında oyunun kendi dünyası, soluk: saha, pist, konfeti, dosya, gece.
   Desen ::before/::after katmanında; kartın içeriği üstte kalır. */
.game-slide, .game-pick, .game-hero { position: relative; overflow: hidden; isolation: isolate; }
.game-slide > :not(.gs-pick), .game-pick > *, .game-hero > * { position: relative; z-index: 1; }
.game-slide > .gs-pick { z-index: 1; }
.game-slide::before, .game-slide::after, .game-pick::before, .game-pick::after,
.game-hero::before, .game-hero::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }
/* Seçilen oyun kartı daha alçak: hilal ve ceza sahaları "?" düğmesine binmesin. */
.game-pick.gs-vmp::before {
  background:
    radial-gradient(circle at calc(100% - 66px) 42%, var(--lav) 0 13px, transparent 14px),
    radial-gradient(circle at calc(100% - 72px) 48%, rgba(255, 255, 255, .95) 0 14px, transparent 15px),
    radial-gradient(1.5px 1.5px at 58% 22%, #fff, transparent),
    radial-gradient(2px 2px at 66% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 74% 30%, #fff, transparent),
    radial-gradient(ellipse at 80% 40%, rgba(106, 85, 201, .16), transparent 60%);
}
.game-pick.gs-fut::after { top: 22%; height: 56%; }
/* Futbol Düellosu: yukarıdan saha; çim şeritleri, saha çizgisi, orta çizgi ve orta yuvarlak. */
.gs-fut::before {
  inset: 10px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .85); opacity: .75;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(255, 255, 255, .9) 35px 37px, transparent 38px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .9) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .9) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(47, 158, 98, .13) 0 30px, transparent 30px 60px);
}
/* İki ceza sahası (solda ve sağda), çizgilerle. */
.gs-fut::after {
  left: 10px; right: 10px; top: 32%; height: 36%; opacity: .75;
  background:
    linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) left top / 44px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) left bottom / 44px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) 44px 0 / 2px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) right top / 44px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) right bottom / 44px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, .85)) calc(100% - 44px) 0 / 2px 100% no-repeat;
}
/* Yazı Yarışı: pist şeritleri, hız çizgileri ve sağda damalı bitiş çizgisi. */
.gs-yrs::before {
  inset: 0; opacity: .6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .95) 0 22px, transparent 22px 40px) 0 46% / 40px 3px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, .95) 0 22px, transparent 22px 40px) 20px 74% / 40px 3px repeat-x,
    repeating-linear-gradient(115deg, rgba(46, 48, 54, .07) 0 2px, transparent 2px 18px);
}
.gs-yrs::after { top: 0; bottom: 0; right: 0; width: 20px; opacity: .35; background: repeating-conic-gradient(#2E3036 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
/* Kim Daha Çok: konfeti. */
/* Çapraz Pas kartı: ahşap çerçeveli yeşil taktik tahtası; sağda tebeşirle çizilmiş, kutularına tam oturan bir XOX. */
.game-slide.gs-cpz.gs-cpz, .game-pick.gs-cpz.gs-cpz {
  color: #fff; border: 6px solid #8A5A35;
  background: radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, .07), transparent 45%), linear-gradient(160deg, #2F5E4A, #264E3D);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .3), var(--shadow);
}
/* Seçiliyken ahşap çerçeve kalır; seçim, diğer kartlardaki gibi dışta koyu bir halkayla görünür. */
.game-slide.gs-cpz.gs-cpz.sel { border-color: #8A5A35; box-shadow: 0 0 0 3px var(--ink), inset 0 0 30px rgba(0, 0, 0, .3), var(--shadow); }
.game-slide.gs-cpz small, .game-pick.gs-cpz small, .game-pick.gs-cpz .muted { color: rgba(255, 255, 255, .75); }
.game-slide.gs-cpz .gs-meta { color: rgba(255, 255, 255, .7); }
.game-slide.gs-cpz .gs-badge { background: #F5DC85; color: #3a2a00; }
.game-slide.gs-cpz .gs-pick { background: rgba(255, 255, 255, .14); color: #fff; }
.gs-cpz::before { right: 20px; top: 50%; width: 100px; height: 100px; margin-top: -38px; opacity: .9; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20120%20120'%3E%3Cpath%20d%3D'M40%206%20V114%20M80%206%20V114%20M6%2040%20H114%20M6%2080%20H114'%20stroke%3D'rgba(255%2C255%2C255%2C0.6)'%20stroke-width%3D'3.5'%20stroke-linecap%3D'round'%20fill%3D'none'%2F%3E%3Cg%20transform%3D'translate(6%206)%20scale(0.7)'%3E%3Cpath%20d%3D'M14%205.5%20L7.5%208%20L2%2014.5%20L7%2019.5%20L10%2017%20L10%2035.5%20L30%2035.5%20L30%2017%20L33%2019.5%20L38%2014.5%20L32.5%208%20L26%205.5%20Q20%2010.5%2014%205.5%20Z'%20fill%3D'%23F0616F'%20stroke%3D'%23B23A48'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3Cpath%20d%3D'M14%205.5%20Q20%2010.5%2026%205.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(86%206)%20scale(0.7)'%3E%3Cpath%20d%3D'M14%205.5%20L7.5%208%20L2%2014.5%20L7%2019.5%20L10%2017%20L10%2035.5%20L30%2035.5%20L30%2017%20L33%2019.5%20L38%2014.5%20L32.5%208%20L26%205.5%20Q20%2010.5%2014%205.5%20Z'%20fill%3D'%234F94EA'%20stroke%3D'%232C5FA8'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3Cpath%20d%3D'M14%205.5%20Q20%2010.5%2026%205.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(46%2046)%20scale(0.7)'%3E%3Cpath%20d%3D'M14%205.5%20L7.5%208%20L2%2014.5%20L7%2019.5%20L10%2017%20L10%2035.5%20L30%2035.5%20L30%2017%20L33%2019.5%20L38%2014.5%20L32.5%208%20L26%205.5%20Q20%2010.5%2014%205.5%20Z'%20fill%3D'%23F0616F'%20stroke%3D'%23B23A48'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3Cpath%20d%3D'M14%205.5%20Q20%2010.5%2026%205.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(6%2086)%20scale(0.7)'%3E%3Cpath%20d%3D'M14%205.5%20L7.5%208%20L2%2014.5%20L7%2019.5%20L10%2017%20L10%2035.5%20L30%2035.5%20L30%2017%20L33%2019.5%20L38%2014.5%20L32.5%208%20L26%205.5%20Q20%2010.5%2014%205.5%20Z'%20fill%3D'%234F94EA'%20stroke%3D'%232C5FA8'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3Cpath%20d%3D'M14%205.5%20Q20%2010.5%2026%205.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(86%2086)%20scale(0.7)'%3E%3Cpath%20d%3D'M14%205.5%20L7.5%208%20L2%2014.5%20L7%2019.5%20L10%2017%20L10%2035.5%20L30%2035.5%20L30%2017%20L33%2019.5%20L38%2014.5%20L32.5%208%20L26%205.5%20Q20%2010.5%2014%205.5%20Z'%20fill%3D'%23F0616F'%20stroke%3D'%23B23A48'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3Cpath%20d%3D'M14%205.5%20Q20%2010.5%2026%205.5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%2F%3E%3C%2Fg%3E%3Cpath%20d%3D'M12%2012%20L108%20108'%20stroke%3D'rgba(245%2C220%2C133%2C0.75)'%20stroke-width%3D'4'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.gs-cpz::after { display: none; }
.game-pick.gs-cpz::before { width: 68px; height: 68px; margin-top: -34px; right: 52px; }
.game-pick.gs-cpz .gi { font-size: 40px; }

/* Kim Daha Çok: farklı boyut ve renklerde soluk soru işaretleri. */
.gs-kdc::before, .gs-kdc::after { content: '?'; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .75); }
.gs-kdc::before { right: 18%; top: 34%; font-size: 92px; transform: rotate(14deg); text-shadow: 64px -26px 0 rgba(249, 180, 203, .9), -96px 44px 0 rgba(196, 184, 250, .55); }
.gs-kdc::after { right: 7%; bottom: 10%; font-size: 46px; transform: rotate(-16deg); color: rgba(245, 220, 133, .9); text-shadow: -150px -96px 0 rgba(255, 255, 255, .6), -64px 12px 0 rgba(168, 210, 251, .7); }
.game-pick.gs-kdc::before { font-size: 60px; top: 10%; }
.game-pick.gs-kdc::after { font-size: 34px; }
/* Köstebek Kelime: dosya kâğıdı; çizgiler ve kesik çizgili kenar. */
/* Köstebek Kelime: dedektif büyüteci; camın içinde bir parmak izi. */
.gs-kst::before {
  right: 52px; top: 50%; width: 58px; height: 74px; margin-top: -48px; border-radius: 50%; transform: rotate(-12deg);
  background: repeating-radial-gradient(ellipse at 50% 60%, rgba(62, 92, 85, .22) 0 2px, transparent 2px 6px);
}
.gs-kst::after {
  right: 22px; top: 50%; width: 96px; height: 150px; margin-top: -70px; transform: rotate(-38deg); transform-origin: 50% 40%;
  background:
    radial-gradient(circle at 50% 48px, rgba(255, 255, 255, .35) 0 38px, rgba(62, 92, 85, .22) 39px 47px, transparent 48px) top / 100% 96px no-repeat,
    linear-gradient(rgba(62, 92, 85, .22), rgba(62, 92, 85, .22)) 50% 100% / 14px 56px no-repeat;
  border-radius: 8px;
}
.game-pick.gs-kst::before { right: 52px; width: 30px; height: 38px; margin-top: -22px; }
.game-pick.gs-kst::after { right: 34px; width: 56px; height: 86px; margin-top: -40px; background:
    radial-gradient(circle at 50% 28px, rgba(255, 255, 255, .35) 0 21px, rgba(62, 92, 85, .22) 22px 27px, transparent 28px) top / 100% 56px no-repeat,
    linear-gradient(rgba(62, 92, 85, .22), rgba(62, 92, 85, .22)) 50% 100% / 9px 32px no-repeat; }
/* Vampir Köylü: gece; hilal ve yıldızlar. */
.gs-vmp::before {
  inset: 0; opacity: .85;
  background:
    radial-gradient(circle at 84% 52%, var(--lav) 0 20px, transparent 21px) 8px -6px no-repeat,
    radial-gradient(circle at 84% 52%, rgba(255, 255, 255, .95) 0 22px, transparent 23px),
    radial-gradient(1.5px 1.5px at 58% 18%, #fff, transparent),
    radial-gradient(2px 2px at 68% 54%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 66%, #fff, transparent),
    radial-gradient(2px 2px at 46% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 76% 88%, #fff, transparent),
    radial-gradient(ellipse at 80% 20%, rgba(106, 85, 201, .18), transparent 60%);
}
.game-slide[data-act]:active { transform: scale(.98); }
.game-slide.pink { background: var(--pink); }
.game-slide.mint { background: var(--mint); }
.game-slide.sky { background: var(--sky); }
.game-slide.lav { background: var(--lav); }
.game-slide.peach { background: var(--peach); }
.game-slide.lemon { background: var(--lemon); }
.game-slide.sel { border-color: var(--ink); }
.gs-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.game-slide .gi { font-size: 48px; line-height: 1; }
.game-slide b { font-size: 22px; font-weight: 900; }
.game-slide small { font-size: 15px; font-weight: 700; color: rgba(70, 63, 87, .75); }
.gs-badge { background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.gs-meta { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 800; color: rgba(70, 63, 87, .7); }
.gs-pick { position: absolute; right: 18px; bottom: 16px; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .7); padding: 6px 12px; border-radius: 999px; }
/* Kilitliyken soluk zemin üzerinde pembe dolgu ilerler; dolunca normal pembe düğmeye döner. */
.btn.hold { position: relative; overflow: hidden; }
.btn.hold:disabled { opacity: 1; background: var(--track); box-shadow: 0 4px 0 var(--line); color: var(--muted); }
.hold-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--pink); transition: width .2s linear; }
.btn.hold:not(:disabled) .hold-fill { width: 100% !important; }
.hold-label { position: relative; }

/* Final sıralaması: ilk üç kürsüde (2-1-3), kalanlar altta liste. */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.pod { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: rise .4s ease both; }
.pod.p1 { animation-delay: .25s; }
.pod.p2 { animation-delay: .1s; }
.pod.p3 { animation-delay: .4s; }
.pod-crown { font-size: 26px; line-height: 1; margin-bottom: -2px; }
.pod .av { border: 3px solid #fff; box-shadow: var(--shadow); }
.pod-name { font-weight: 900; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-val { font-size: 13px; font-weight: 800; color: var(--muted); }
.pod-block {
  width: 100%; border-radius: 16px 16px 8px 8px;
  display: grid; place-items: center;
  font-size: 26px; margin-top: 4px;
}
.pod.p1 .pod-block { height: 92px; background: var(--lemon); box-shadow: inset 0 -5px 0 var(--lemon-2); }
.pod.p2 .pod-block { height: 68px; background: var(--lav); box-shadow: inset 0 -5px 0 var(--lav-2); }
.pod.p3 .pod-block { height: 50px; background: var(--peach); box-shadow: inset 0 -5px 0 var(--peach-2); }
.rest { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.rest.flat { margin: 0; padding: 0; border: 0; }
.rest li { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.rest .pos { width: 22px; text-align: center; color: var(--muted); font-weight: 900; }
.rest .pname { flex: 1; }
.rest .pts { font-size: 13px; font-weight: 800; color: var(--muted); background: var(--track); padding: 4px 10px; border-radius: 999px; }

.dots-nav { display: flex; justify-content: center; gap: 7px; margin-top: -4px; }
.dots-nav i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .2s, background .2s; }
.dots-nav i.on { width: 22px; background: var(--muted); }
.dots-nav i.sel { background: var(--pink-2); }
.dots-nav i.sel.on { background: var(--ink); }
.game-card {
  border: 3px solid transparent;
  border-radius: 22px;
  padding: 16px 12px 14px;
  text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .15s;
}
.game-card.pink { background: var(--pink); }
.game-card.mint { background: var(--mint); }
.game-card:disabled { cursor: default; }
.game-card:not(.sel) { opacity: .6; }
.game-card.sel { border-color: var(--ink); opacity: 1; }
.game-card:active:not(:disabled) { transform: scale(.97); }
.game-card .gi { font-size: 28px; }
.game-card b { font-size: 16px; font-weight: 900; }
.game-card small { font-size: 13px; font-weight: 700; color: rgba(70, 63, 87, .7); }

.setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.setting > span { font-weight: 800; font-size: 15px; }

.seg { display: inline-flex; background: var(--track); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button {
  border: 0; background: transparent; border-radius: 11px;
  padding: 8px 12px; font-weight: 800; font-size: 14px; color: var(--muted);
}
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(110, 80, 110, .1); }
.seg button:disabled { cursor: default; }

/* ---------- Game ---------- */

.round-label { text-align: center; font-weight: 900; font-size: 14px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.question { padding: 26px 20px; text-align: center; }
.question p { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.25; }

.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vote-grid.many { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.vote {
  position: relative;
  min-height: 132px;
  border: 3px solid transparent;
  background: var(--card);
  border-radius: 22px;
  padding: 18px 8px 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-weight: 900; font-size: 17px;
  box-shadow: 0 4px 0 var(--line), var(--shadow);
  transition: transform .12s ease, border-color .15s, background .15s, opacity .2s, box-shadow .12s;
}
.vote-grid.many .vote { min-height: 108px; padding: 14px 6px 10px; font-size: 15px; gap: 8px; border-radius: 20px; }
.vote:active { transform: translateY(3px) scale(.97); box-shadow: 0 1px 0 var(--line), var(--shadow); }
.vote-grid.voted .vote:not(.sel) { opacity: .55; }
.vote.sel {
  border-color: var(--ink); background: var(--lemon);
  transform: scale(1.03);
  box-shadow: 0 4px 0 var(--lemon-2), 0 10px 26px rgba(110, 80, 110, .16);
}
.vote.sel::after {
  content: '✓';
  position: absolute; top: -9px; right: -9px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 900;
}
.vote .vname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av.xl { width: 66px; height: 66px; font-size: 27px; }

.timer { display: flex; align-items: center; gap: 10px; }
.timer-icon { font-size: 18px; line-height: 1; }
.timer-track { flex: 1; height: 14px; background: var(--track); border-radius: 999px; overflow: hidden; }
.timer-fill { height: 100%; width: 100%; background: var(--mint-2); border-radius: 999px; transition: width .2s linear, background-color .4s; }
.timer-num { min-width: 30px; text-align: right; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.timer.mid .timer-fill { background: var(--lemon-2); }
.timer.low .timer-fill { background: #F27C9C; }
.timer.low .timer-track { animation: shake .4s ease-in-out infinite; }
.timer.low .timer-num { color: #D9466F; animation: pulse 1s ease-in-out infinite; }
.timer.low .timer-icon { animation: shake .4s ease-in-out infinite; }

.countdown-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
.countdown { position: relative; width: 160px; height: 160px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; }
.countdown span {
  position: absolute; font-size: 96px; font-weight: 900; line-height: 1;
  opacity: 0; animation: count .5s cubic-bezier(.2, .8, .3, 1) both;
}
.countdown-box .hint { animation: pulse 1.2s ease-in-out infinite; }

.headline { text-align: center; padding: 22px 18px; }
.headline .big-emoji { font-size: 42px; line-height: 1; }
.headline h2 { margin: 8px 0 2px; font-size: 26px; font-weight: 900; line-height: 1.2; }
.headline p { margin: 4px 0 0; font-weight: 700; color: rgba(70, 63, 87, .75); }

/* Soru kartı: kategori rengi, oylamada alt şeritte süre */
.card.blood { background: #FFC9CF; }
.card.night { background: #463F57; color: #fff; }
.question.timed { padding-bottom: 0; overflow: hidden; }
.q-timer { margin: 18px -20px 0; padding: 10px 16px; background: rgba(255, 255, 255, .45); }
.q-timer .timer-track { height: 10px; background: rgba(255, 255, 255, .8); }
.q-timer .timer-num { font-size: 15px; }
.card.night .q-timer { background: rgba(255, 255, 255, .1); }
.card.night .q-timer .timer-track { background: rgba(255, 255, 255, .2); }
.card.night .timer.low .timer-num { color: #FFB3C6; }
.q-small { margin: 0; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--muted); }

/* Oy verenler: kim verdi görünür, kime verdiği değil */
.voters { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 13px; font-weight: 800; color: var(--muted); }
.voters .vlist { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.av.xs { width: 24px; height: 24px; font-size: 11px; }
.vchip .av { opacity: .35; filter: grayscale(1); outline: 2px dashed #C9C2D3; outline-offset: -2px; }
.vchip.on .av { opacity: 1; filter: none; outline: none; }
.voters .vcount { font-variant-numeric: tabular-nums; }

/* Sonuç: büyük kazanan + oy noktaları */
.hero-res { display: flex; flex-direction: column; align-items: center; }
.crown { position: relative; z-index: 1; margin-bottom: -8px; font-size: 30px; line-height: 1; animation: crown .6s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
.hero-avs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.av.hero { width: 96px; height: 96px; font-size: 40px; border: 4px solid #fff; box-shadow: var(--shadow); }
.hero-avs .av.xl { border: 3px solid #fff; box-shadow: var(--shadow); }
.headline .hero-res h2 { margin: 10px 0 0; }
.res-pill { display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 999px; background: var(--card); font-weight: 800; font-size: 14px; }
.tie-label, .res-title { margin-bottom: 12px; font-size: 18px; font-weight: 900; }
.res-word { margin-top: 14px; padding-top: 12px; border-top: 2px dashed rgba(70, 63, 87, .15); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.res-word small { font-size: 13px; font-weight: 700; color: rgba(70, 63, 87, .7); }
.res-word > b { font-size: 26px; font-weight: 900; line-height: 1.15; }
.res-title + .hero-res .av.xl { border: 3px solid #fff; box-shadow: var(--shadow); }

.vrows { display: flex; flex-direction: column; gap: 8px; }
.vrow { display: flex; align-items: center; gap: 10px; font-weight: 800; animation: rise .3s ease both; }
.vrow.zero { opacity: .45; }
.vrow.hl { margin: 0 -8px; padding: 4px 8px; border-radius: 14px; background: var(--lemon); }
.vrname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.dots-row { display: flex; gap: 3px; }
.dots-row i { display: block; width: 10px; height: 10px; border-radius: 50%; filter: saturate(1.8) brightness(.9); }
.vrow b { min-width: 16px; text-align: right; font-variant-numeric: tabular-nums; }

details.who { margin-top: 14px; border-top: 2px solid var(--line); padding-top: 12px; }
details.who summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; align-items: center; gap: 6px; }
details.who summary::-webkit-details-marker { display: none; }
details.who summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
details.who[open] summary::after { transform: rotate(180deg); }
.secret-tag { margin: 14px 0 0; padding-top: 12px; border-top: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 14px; text-align: center; }

/* "Nasıl oynanır?" düğmesi oyun kartında; kurallar ortada bir pencerede açılır. */
.gs-right { display: flex; align-items: center; gap: 6px; }
.how-btn {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .75); color: var(--ink); font-size: 16px; font-weight: 900; line-height: 1;
  box-shadow: 0 2px 0 rgba(70, 63, 87, .15);
}
.how-btn:active { transform: scale(.92); }
.game-pick .how-btn { margin-left: auto; }
.how-modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(46, 42, 64, .45); animation: fade .18s ease both;
}
.how-panel {
  position: relative; width: min(100%, 400px); max-height: 85dvh; overflow-y: auto;
  border-radius: 24px; padding: 20px 18px 18px; background: var(--card); box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  animation: pop .3s cubic-bezier(.3, 1.4, .5, 1) both;
}
.how-panel.pink { background: var(--pink); } .how-panel.mint { background: var(--mint); }
.how-panel.sky { background: var(--sky); }   .how-panel.lav { background: var(--lav); }
.how-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 900; color: var(--ink);
}
.how-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.how-head .gi { font-size: 40px; line-height: 1; }
.how-head div { display: flex; flex-direction: column; }
.how-head b { font-size: 22px; font-weight: 900; line-height: 1.15; }
.how-panel ol { margin: 16px 0 0; padding: 14px 14px 14px 34px; border-radius: 16px; background: rgba(255, 255, 255, .7); display: flex; flex-direction: column; gap: 10px; }
.how-panel li { font-size: 15px; font-weight: 700; line-height: 1.45; }
.how-panel li::marker { color: var(--muted); font-weight: 900; }
.how-meta { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 800; color: rgba(70, 63, 87, .7); }
@keyframes fade { from { opacity: 0; } }
.how-modal.still, .how-modal.still .how-panel { animation: none; }
.summary .sum-rows { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.summary .sum-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 14px; background: var(--track); }
.summary .sum-row span { font-size: 12px; font-weight: 700; color: var(--muted); }
.summary .sum-row b { font-size: 15px; font-weight: 900; display: inline-flex; align-items: center; gap: 6px; }
/* Ayar kutucukları ayarın kendi rengini alır (kategori, lig, metin türü...). */
.summary .sum-row.lav { background: var(--lav); }     .summary .sum-row.lemon { background: var(--lemon); }
.summary .sum-row.mint { background: var(--mint); }   .summary .sum-row.sky { background: var(--sky); }
.summary .sum-row.peach { background: var(--peach); } .summary .sum-row.pink { background: var(--pink); }
.summary .sum-row.blood { background: #FFC9CF; }
.summary .sum-row.night { background: #463F57; } .summary .sum-row.night span, .summary .sum-row.night b { color: #fff; }
.summary .sum-row span { color: rgba(70, 63, 87, .65); }
.summary .sum-row .fl-flag { width: 20px; height: 13px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(70, 63, 87, .15); }
.summary .sum-row .fl-emoji { font-size: 15px; }
.setting-label {font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat {
  position: relative;
  border: 3px solid transparent; border-radius: 18px;
  padding: 11px 10px 10px;
  text-align: left;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 6px; align-items: center;
  transition: transform .12s ease, border-color .15s, opacity .15s;
}
.cat .ci { font-size: 20px; line-height: 1; }
.cat b { font-size: 14px; font-weight: 900; line-height: 1.15; }
.cat small { grid-column: 1 / -1; font-size: 12px; font-weight: 700; line-height: 1.25; color: rgba(70, 63, 87, .7); }
.cat:not(.on) { opacity: .62; }
.cat.on { border-color: var(--ink); opacity: 1; }
.cat:active:not(:disabled) { transform: scale(.97); }
.cat:disabled { cursor: default; }
.cat.lav { background: var(--lav); }   .cat.lemon { background: var(--lemon); }
.cat.mint { background: var(--mint); } .cat.sky { background: var(--sky); }
.cat.peach { background: var(--peach); } .cat.pink { background: var(--pink); }
.cat.blood { background: #FFC9CF; }
.cat.night { background: #463F57; }
.cat.night b { color: #fff; }
.cat.night small { color: rgba(255, 255, 255, .7); }
.cat.night.on { border-color: var(--pink-2); }
.adult-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--peach); font-weight: 800; font-size: 14px; }

.vote-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vote-list li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.vote-list .arrow { color: var(--muted); }

.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank li { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.rank .pos { width: 22px; text-align: center; color: var(--muted); font-weight: 900; }
.rank .pname { flex: 1; }
.rank .pts { font-weight: 900; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px;
  background: var(--card); font-weight: 900; font-size: 15px; box-shadow: var(--shadow);
}
.badge.sm { margin: 0 0 0 4px; padding: 2px 8px; font-size: 12px; background: var(--lemon); box-shadow: none; vertical-align: middle; }
.unpicked { margin: 12px 0 0; padding-top: 12px; border-top: 2px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
.unpicked b { color: var(--ink); }

/* ---------- Köstebek card ---------- */

/* 3D çevirme Android tarayıcılarında kartın dışına taşıyordu; iki yüz üst üste durur,
   görünen yüz kısa bir açılış animasyonuyla değişir. */
.flip { position: relative; width: 100%; height: 280px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.face {
  position: absolute; inset: 0;
  border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px; text-align: center;
  box-shadow: var(--shadow);
}
.flip .back, .flip.open .front { display: none; }
.flip.open .back { display: flex; }
/* Animasyon yalnızca dokununca oynar, ekran yeniden çizilince değil. */
.flip.turned .face { animation: turn .32s cubic-bezier(.3, 1.3, .5, 1) both; }
.face.front {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .35) 0 12px, transparent 12px 24px),
    var(--mint);
}
.face.back { background: var(--card); border: 3px solid var(--mint-2); }
.face.back.mole { background: var(--lav); border-color: var(--lav-2); }
.face .fe { font-size: 44px; line-height: 1; }
.face b { font-size: 18px; font-weight: 900; }
.face small { color: var(--muted); font-weight: 700; font-size: 14px; }
.face .word { font-size: 38px; font-weight: 900; letter-spacing: -.5px; line-height: 1.1; }

.order { margin: 10px 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: o; }
.order li { display: flex; align-items: center; gap: 10px; font-weight: 800; counter-increment: o; }
.order li::before { content: counter(o); width: 18px; text-align: center; color: var(--muted); font-weight: 900; }

.taboo { width: 100%; margin: 6px 0 2px; padding: 12px; border-radius: 18px; background: var(--pink); display: flex; flex-direction: column; gap: 8px; }
.taboo small { color: var(--ink); font-weight: 800; }
.taboo-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.taboo-list span { background: var(--card); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 15px; text-decoration: line-through; text-decoration-color: var(--pink-2); text-decoration-thickness: 2px; }

.seen { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--track); padding: 3px 9px; border-radius: 999px; }
.seen.ok { color: var(--ink); background: var(--mint); }

.reveal-row { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; flex-wrap: wrap; }

/* ---------- Banner & toast ---------- */

.banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: var(--lemon); text-align: center;
  font-weight: 800; font-size: 14px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 10;
  transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100% - 32px);
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 16px;
  font-weight: 800; font-size: 15px; text-align: center;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes float { 50% { translate: 0 -6px; } }
@keyframes turn { from { transform: scaleX(.15); opacity: .4; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } }
@keyframes count { 0% { opacity: 0; transform: scale(1.9); } 25% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(.95); } 100% { opacity: 0; transform: scale(.6); } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes crown { from { opacity: 0; transform: translateY(-14px) rotate(-20deg) scale(.6); } }
@keyframes shake { 0%, 100% { translate: 0; } 25% { translate: -2px 0; } 75% { translate: 2px 0; } }
.pop { animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.still, .still .pop, .still .vrow, .still .crown, .still .players li { animation: none; }
.bounce { font-size: 48px; animation: float 1.6s ease-in-out infinite; }
.splash-logo { width: 120px; height: 120px; animation: float 1.6s ease-in-out infinite; }
/* Ana ekrana ekle: uygulama ikonu, kısa açıklama, Ekle düğmesi (Android) ve kapatma. */
.install-card { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.install-card img { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); }
.install-card .ic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-card .ic-text b { font-size: 15px; font-weight: 900; }
.install-card .ic-text small { font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.install-card .ic-text small b { font-size: 12.5px; color: var(--ink); }
.install-card .share-ic { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: #2F7DF6; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.install-card .btn.sm { flex: 0 0 auto; }
.ic-close { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--track); color: var(--muted); font-size: 18px; font-weight: 900; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Animasyonsuz modda geri sayım yerine sabit bir işaret kalsın. */
  .countdown span { opacity: 0; }
  .countdown span:last-child { opacity: 1; }
}

/* ---------- Yazı Yarışı ---------- */

.game-card.sky { background: var(--sky); }
/* Tek kalan oyun kartı tüm satırı kaplasın. */
.games > .game-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Pist: asfalt dokusu, üstte ve altta kırmızı-beyaz bordür, şeritler arasında kesik çizgi. */
.yr-track {
  --asphalt: #34363D;
  position: relative;
  padding: 10px 0;
  border-radius: 20px;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #3A3C44, #2E3036);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), var(--shadow);
}
.yr-track::before, .yr-track::after {
  content: ''; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, #E8484F 0 14px, #F7F3F0 14px 28px);
}
.yr-track::before { top: 0; }
.yr-track::after { bottom: 0; }

.yr-lane { position: relative; display: flex; align-items: center; height: 46px; }
.yr-lane + .yr-lane::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 16px, transparent 16px 30px);
}
.yr-lane.me { background: linear-gradient(90deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); }
.yr-who {
  width: 50px; flex: none; padding-left: 10px;
  font-size: 11px; font-weight: 900; color: rgba(255, 255, 255, .7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yr-lane.me .yr-who { color: #fff; }

/* Başlangıçta beyaz çizgi, sağda damalı bitiş çizgisi. */
.yr-road { position: relative; flex: 1; height: 100%; }
.yr-road::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255, 255, 255, .6); }
.yr-road::after {
  content: ''; position: absolute; right: 14px; top: 0; bottom: 0; width: 12px;
  background: conic-gradient(#fff 25%, #1B1C20 0 50%, #fff 0 75%, #1B1C20 0) 0 0 / 12px 12px;
  opacity: .9;
}
/* Şeridin sağında anlık doğru kelime sayısı. */
.yr-flag {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 2;
  min-width: 26px; padding: 2px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 13px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums;
}

/* Koşucu yolun (araba boyu hariç) tamamı kadar; --p 0..1 arası ilerleme, araba burnu bitiş çizgisine değer. */
.yr-runner {
  position: absolute; top: 0; left: 4px; height: 100%;
  width: calc(100% - 74px);
  transform: translateX(calc(var(--p, 0) * 100%));
  transition: transform .4s cubic-bezier(.25, .8, .3, 1);
}
.yr-car { position: absolute; top: 50%; left: 0; width: 56px; height: 28px; transform: translateY(-50%); }
.yr-svg { position: relative; display: block; width: 100%; height: 100%; z-index: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.yr-brake { opacity: .45; }

/* Motor rölantide hafifçe titrer. */
.yr-track.live .yr-svg { animation: idle .12s linear infinite alternate; }

/* Seri yakalayınca: arkada hız çizgileri ve egzoz dumanı. */
.yr-smoke, .yr-skid { position: absolute; top: 50%; right: 100%; pointer-events: none; opacity: 0; }
.yr-smoke {
  width: 46px; height: 18px; margin-top: -9px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .55)) 0 2px / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .4)) 10px 8px / 80% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .55)) 0 14px / 100% 2px no-repeat;
}
.yr-lane.fast .yr-smoke { opacity: 1; animation: streak .35s linear infinite; }
.yr-lane.fast .yr-head { fill: #FFFFFF; }

/* Yanlış harf: fren lambaları yanar, arkada lastik izi, araba sarsılır. */
.yr-skid {
  width: 34px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(90deg, transparent, rgba(10, 10, 12, .75)) 0 1px / 100% 5px no-repeat,
    linear-gradient(90deg, transparent, rgba(10, 10, 12, .75)) 0 16px / 100% 5px no-repeat;
}
.yr-lane.stop .yr-skid { opacity: 1; }
.yr-lane.stop .yr-brake { opacity: 1; filter: drop-shadow(0 0 3px #FF3B3B); }
.yr-lane.stop .yr-svg { animation: shake .25s ease-in-out infinite; }

.yr-stats { display: flex; align-items: center; gap: 8px; }
.yr-chip { padding: 6px 10px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 900; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.yr-chip.fire { background: var(--peach); }
.yr-chip[hidden] { display: none; }

.yr-text { position: relative; font-size: 20px; line-height: 1.6; font-weight: 700; color: var(--muted); transition: box-shadow .2s; }
.yr-text.wrong { box-shadow: 0 0 0 3px #F27C9C, var(--shadow); }
.yr-text .w.done { color: var(--ink); opacity: .45; }
.yr-text .w.now { color: var(--ink); background: var(--lemon); border-radius: 6px; padding: 0 2px; }
.yr-text .w.now.wrong { background: #FFE0E7; }
.yr-text .ok { color: #2E9C74; }
.yr-text .bad { color: #fff; background: #F27C9C; border-radius: 3px; }
.yr-text .cur { box-shadow: inset 0 -3px 0 var(--ink); }
/* Uzun metin kutuda kayar; offsetTop bu kutuya göre ölçülsün diye position: relative. */
.yr-words { position: relative; max-height: calc(1.6em * 4); overflow: hidden; scroll-behavior: smooth; }

/* Kalabalık masada (4+ kişi) şeritler incelir ki pist klavyenin üstüne sığsın. */
.yr-track.many .yr-lane { height: 32px; }
.yr-track.many .yr-car { width: 44px; height: 22px; }
.yr-track.many .yr-runner { width: calc(100% - 62px); }

/* Dar ve kısa ekranlarda (telefon) metin biraz küçülür. */
@media (max-width: 400px), (max-height: 700px) {
  .yr-text { font-size: 18px; padding: 14px 16px; }
  .yr-words { max-height: calc(1.6em * 3); }
  .yr-input { padding: 12px 16px; font-size: 18px; }
  .yr-mirror { padding: 0 19px; font-size: 18px; }
  .yr-lane { height: 40px; }
}

.yr-count {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: inherit; background: rgba(255, 255, 255, .9);
  font-size: 64px; font-weight: 900; color: var(--ink);
}
.yr-count[hidden] { display: none; }

.yr-input {
  width: 100%; padding: 16px 18px; border-radius: 20px;
  border: 3px solid var(--line); background: var(--card);
  font-size: 20px; font-weight: 800; outline: none;
}
.yr-input:focus { border-color: var(--sky-2); }
/* Android'de kutu parola türünde (klavye önerisi kapansın diye). Telefon yazıyı nokta gösterdiği için
   noktalar saydam yapılır; yazılan metin üstteki .yr-mirror katmanında, sahte bir imleçle görünür. */
.yr-field { position: relative; }
.yr-input.masked { color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; -webkit-text-security: none; }
.yr-mirror {
  position: absolute; inset: 0; padding: 0 21px;
  display: flex; align-items: center; overflow: hidden;
  pointer-events: none; white-space: pre;
  font-size: 20px; font-weight: 800; color: var(--ink);
}
.yr-mirror[hidden] { display: none; }
.yr-input.masked::placeholder { color: #C8C1D3; -webkit-text-fill-color: #C8C1D3; }
.yr-input.masked:focus ~ .yr-mirror::after {
  content: ''; width: 2px; height: 1.1em; margin-left: 1px;
  background: var(--ink); animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.yr-text .w.done.miss { color: #E5486F; opacity: .8; text-decoration: line-through; text-decoration-thickness: 2px; }
.yr-chip.ok { background: var(--mint); }
.yr-ok { color: #2E9C74; font-weight: 800; }
.yr-bad { color: #E5486F; font-weight: 800; }

/* Yazarken: pist ekranın üstüne yapışır ve küçülür, metin iki satıra iner; klavye açıkken arabalar görünür kalır. */
/* Yazarken ekran klavyenin üstündeki görünür alana sabitlenir (--vv-* değerlerini yaris.js yazar).
   Pist ve kutu sabit boyda; metin kalan yeri doldurur, sığmazsa satırları kendi içinde kayar. */
body.yr-typing .topbar, body.yr-typing .round-label, body.yr-typing #yr-hint { display: none; }
body.yr-typing .screen {
  position: fixed; left: 0; right: 0; z-index: 20;
  top: var(--vv-top, 0px); height: var(--vv-height, 100dvh); min-height: 0;
  padding-top: 8px; padding-bottom: 8px; gap: 8px; overflow: hidden;
  background: var(--bg); animation: none;
}
body.yr-typing .yr-track, body.yr-typing .yr-stats, body.yr-typing .yr-field { flex: 0 0 auto; }
body.yr-typing .yr-lane { height: 28px; }
body.yr-typing .yr-track.many .yr-lane { height: 20px; }
body.yr-typing .yr-track.many .yr-car { width: 32px; height: 16px; }
body.yr-typing .yr-car { width: 40px; height: 20px; }
body.yr-typing .yr-runner { width: calc(100% - 58px); }
body.yr-typing .yr-text { flex: 1 1 auto; min-height: calc(18px * 1.6 + 20px); display: flex; flex-direction: column; padding: 10px 14px; font-size: 18px; }
body.yr-typing .yr-words { flex: 1 1 auto; min-height: 1.6em; max-height: calc(1.6em * 3); }
body.yr-typing .yr-input { padding: 12px 16px; font-size: 18px; }
body.yr-typing .yr-mirror { padding: 0 19px; font-size: 18px; }
.yr-input:disabled { opacity: .5; }
/* Kalabalık masada yazarken yalnızca sen ve ilk 3 görünür; klavye açıkken kutu ekrandan taşmaz. */
body.yr-typing .yr-track.crowd .yr-lane:not(.me):not(.lead) { display: none; }
body.yr-typing .yr-track.crowd .yr-lane { height: 24px; }
.yr-stats .grow { min-width: 0; }
@media (max-width: 380px) {
  body.yr-typing #yr-speed { display: none; }
  .yr-stats { gap: 6px; }
  .yr-chip { padding: 5px 8px; }
}

.yr-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.yr-rows li { display: flex; align-items: center; gap: 10px; font-weight: 800; animation: rise .3s ease both; }
.yr-rows li.dnf { opacity: .55; }
.yr-rows .pos { width: 26px; text-align: center; font-size: 18px; }
.yr-rows .pname { flex: 1; display: flex; flex-direction: column; }
.yr-rows .pname small { font-size: 12px; color: var(--muted); font-weight: 700; }
.yr-rows .pts { font-weight: 900; color: #2E9C74; }

.yr-story p { margin: 8px 0 0; line-height: 1.55; }
.yr-titles { display: flex; flex-direction: column; gap: 8px; }
.yr-title { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.yr-title b { display: block; font-weight: 900; }
.yr-title small { color: var(--muted); font-weight: 700; }

@keyframes idle { to { translate: 0 .6px; } }
@keyframes streak { from { transform: translateX(6px); } to { transform: translateX(-6px); opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  .yr-runner { transition: none; }
  .yr-track.live .yr-svg, .yr-lane.stop .yr-svg, .yr-lane.fast .yr-smoke { animation: none; }
}

/* ---------- Oyun temaları ---------- */

/* Oyun ekranlarında arka plan oyuna göre değişir; kartlar açık kalır ki metin okunaklı olsun. */
.g-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Kim Daha Çok: parti, konfeti. */
.g-kdc {
  background:
    radial-gradient(circle at 8% 14%, #F9B4CB 0 4px, transparent 5px),
    radial-gradient(circle at 88% 10%, #F5DC85 0 5px, transparent 6px),
    radial-gradient(circle at 72% 32%, #A8D2FB 0 3px, transparent 4px),
    radial-gradient(circle at 18% 48%, #9DDDC4 0 4px, transparent 5px),
    radial-gradient(circle at 92% 62%, #C4B8FA 0 4px, transparent 5px),
    radial-gradient(circle at 10% 82%, #F5DC85 0 3px, transparent 4px),
    radial-gradient(circle at 80% 90%, #F9B4CB 0 5px, transparent 6px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 211, 225, .9), transparent 60%),
    linear-gradient(180deg, #FFF0F5 0%, #FFF4EA 100%);
}

/* Köstebek: dedektif dosyası; kraft kâğıdı, kesik kenarlı kartlar, koyu yeşil mürekkep. */
.g-kst {
  background:
    repeating-linear-gradient(0deg, rgba(70, 63, 87, .045) 0 1px, transparent 1px 26px),
    radial-gradient(ellipse at 50% 0%, rgba(201, 240, 225, .7), transparent 55%),
    linear-gradient(180deg, #F3EBD9 0%, #EADFC6 100%);
}
.screen:has(.g-kst) .card { border: 1.5px dashed rgba(62, 92, 85, .28); }
.screen:has(.g-kst) .btn.pink:not(:disabled) { background: #3E5C55; color: #fff; box-shadow: 0 4px 0 #2A403B; }
.screen:has(.g-kst) .btn.pink:active:not(:disabled) { box-shadow: 0 1px 0 #2A403B; }
.screen:has(.g-kst) .round-label { color: #5C6E66; }

/* Yazı Yarışı: yarış pisti; üstte damalı bayrak şeridi, çapraz hız çizgileri, kırmızı vurgu. */
.g-yrs {
  background:
    repeating-linear-gradient(115deg, rgba(70, 63, 87, .035) 0 2px, transparent 2px 22px),
    radial-gradient(ellipse at 50% 0%, rgba(212, 235, 255, .9), transparent 60%),
    linear-gradient(180deg, #EEF3F9 0%, #E6EBF2 100%);
}
.g-yrs::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-conic-gradient(#2E3036 0 25%, #fff 0 50%) 0 0 / 12px 12px;
  opacity: .85;
}
.screen:has(.g-yrs) .btn.pink:not(:disabled) { background: #E8484F; color: #fff; box-shadow: 0 4px 0 #B8323A; }
.screen:has(.g-yrs) .btn.pink:active:not(:disabled) { box-shadow: 0 1px 0 #B8323A; }
.screen:has(.g-yrs) .hold-fill { background: #F27C82; }
body.yr-typing .g-yrs::before { display: none; }

/* ---------- Vampir Köylü ---------- */

/* Oyunun kendi teması: ekranın rengi günün saatini anlatır (gece, şafak, gündüz).
   Renkler değişkenlerde; .vm-bg ekrana konunca tüm kartlar bu temaya geçer. */
.screen:has(.vm-bg) {
  --vm-blood: #B3263F;
  --vm-blood-soft: rgba(179, 38, 63, .28);
  color: var(--vm-ink);
}
.screen:has(.vm-night) {
  --vm-card: #221D40; --vm-card-2: #2D2754; --vm-line: #3D3570;
  --vm-ink: #EDE8FF; --vm-muted: #9C92CC; --vm-accent: #9B87F0; --vm-on-accent: #17122E;
}
.screen:has(.vm-dawn) {
  --vm-card: #3A2440; --vm-card-2: #4A2E4C; --vm-line: #5E3C5C;
  --vm-ink: #FFF0E8; --vm-muted: #E6AE92; --vm-accent: #F0B48E; --vm-on-accent: #3A1A18;
}
.screen:has(.vm-day) {
  --vm-card: #4A3424; --vm-card-2: #5A402C; --vm-line: #6E5238;
  --vm-ink: #FFF4E4; --vm-muted: #E5C291; --vm-accent: #EBC487; --vm-on-accent: #3A2716;
}

.vm-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.vm-night {
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 34% 9%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1.5px 1.5px at 58% 22%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 72% 36%, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 22% 44%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(circle at 20% 80%, rgba(155, 135, 240, .16), transparent 45%),
    linear-gradient(180deg, #0F0C22 0%, #17122E 55%, #221A3E 100%);
}
.vm-dawn { background: radial-gradient(ellipse at 50% 110%, rgba(240, 140, 100, .45), transparent 60%), linear-gradient(180deg, #1E1430 0%, #3A1F3A 50%, #6A3440 100%); }
.vm-day { background: radial-gradient(circle at 85% 6%, rgba(255, 214, 140, .35), transparent 30%), linear-gradient(180deg, #3A2818 0%, #4A3322 60%, #5A3E28 100%); }
/* Hilal: yalnızca gece görünür. */
.vm-moon { display: none; }
.vm-night .vm-moon {
  display: block; position: absolute; top: max(64px, env(safe-area-inset-top)); right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset -10px 4px 0 0 #F4EBC8; transform: rotate(-20deg);
  filter: drop-shadow(0 0 14px rgba(244, 235, 200, .35));
}

/* Temalı ekranda genel parçalar */
.screen:has(.vm-bg) .card { background: var(--vm-card); color: var(--vm-ink); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); border: 1px solid var(--vm-line); }
.screen:has(.vm-bg) .muted, .screen:has(.vm-bg) .hint, .screen:has(.vm-bg) .headline p { color: var(--vm-muted); }
.screen:has(.vm-bg) .round-label, .vm-label { color: var(--vm-muted) !important; letter-spacing: 2px; }
.screen:has(.vm-bg) .nav-btn { background: var(--vm-card); color: var(--vm-ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.screen:has(.vm-bg) .pill { background: var(--vm-card-2); color: var(--vm-ink); }
.screen:has(.vm-bg) .code-mini { color: var(--vm-muted); }
.screen:has(.vm-bg) .btn:not(.ghost) { background: var(--vm-accent); color: var(--vm-on-accent); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.screen:has(.vm-bg) .btn.ghost { background: transparent; color: var(--vm-ink); box-shadow: none; border: 1.5px solid var(--vm-line); }
.screen:has(.vm-bg) .btn.hold:disabled { background: var(--vm-card-2); color: var(--vm-muted); }
.screen:has(.vm-bg) .hold-fill { background: var(--vm-accent); opacity: .35; }
.screen:has(.vm-bg) .timer-track { background: var(--vm-card-2); }
.screen:has(.vm-bg) .timer-fill { background: var(--vm-accent); }
.screen:has(.vm-bg) .timer.low .timer-fill { background: var(--vm-blood); }
.screen:has(.vm-bg) .timer-num { color: var(--vm-ink); }
.screen:has(.vm-bg) .voters { background: var(--vm-card); border-radius: 16px; padding: 8px 10px; color: var(--vm-muted); }
.screen:has(.vm-bg) .vchip .av { outline-color: var(--vm-line); }
.screen:has(.vm-bg) .vote-list .arrow { color: var(--vm-muted); }
.screen:has(.vm-bg) .res-pill { background: var(--vm-card-2); color: var(--vm-ink); }
.screen:has(.vm-bg) .seen { background: var(--vm-card-2); color: var(--vm-muted); }
.screen:has(.vm-bg) .seen.ok { background: var(--vm-accent); color: var(--vm-on-accent); }
.screen:has(.vm-bg) .order li::before { color: var(--vm-muted); }
.screen:has(.vm-bg) .rest .pts { background: var(--vm-card-2); color: var(--vm-ink); }

/* Aday kartları */
.screen:has(.vm-bg) .vote { background: var(--vm-card); color: var(--vm-ink); border: 1.5px solid var(--vm-line); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.screen:has(.vm-bg) .vote.sel { background: var(--vm-ink); color: var(--vm-on-accent); border: 2.5px solid var(--vm-blood); box-shadow: 0 0 0 4px var(--vm-blood-soft); }
.screen:has(.vm-bg) .vote.sel::after { background: var(--vm-blood); }
.vote:disabled { opacity: .45; cursor: default; }
.vm-tag { font-size: 11px; font-weight: 800; background: var(--vm-card-2, var(--pink)); color: var(--vm-ink, var(--ink)); padding: 2px 8px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen:has(.vm-bg) .vm-skip { border-style: dashed; color: var(--vm-muted); }
.screen:has(.vm-bg) .vm-skip.sel { background: var(--vm-ink); color: var(--vm-on-accent); border: 2.5px solid var(--vm-blood); }

/* Bilinen rol rozeti: gözcünün baktığı ve vampirin takım arkadaşı */
.vm-avw { position: relative; display: inline-flex; }
.vm-badge {
  position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  white-space: nowrap; font-size: 10.5px; font-weight: 900; line-height: 1;
  padding: 3px 7px; border-radius: 999px; color: #fff; background: #6B6290;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.vm-badge.vampir { background: var(--vm-blood, #B3263F); }
.vm-badge.doktor { background: #2F7A5E; }
.vm-badge.gozcu { background: #6A4FC9; }
.vm-badge.koylu { background: #8A6A3A; }
/* Küçük avatarda rozet üstte durur ki altındaki ismi kapatmasın. */
.vm-av .vm-badge { font-size: 9px; padding: 2px 5px; bottom: auto; top: -9px; }
.vm-av:has(.vm-badge) { margin-top: 6px; }
/* Avatar harfleri pastel zeminde koyu kalsın; temanın açık yazı rengini almasın. */
.screen:has(.vm-bg) .av { color: #463F57; }

/* Soru ve sonuç kartları */
.vm-prompt { text-align: center; padding: 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vm-prompt .vm-q { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.25; }
.vm-prompt small { font-weight: 700; color: var(--vm-muted, var(--muted)); }
.vm-prompt h2 { margin: 4px 0 0; }
.vm-prompt p { margin: 0; }
.vm-prompt .timer { width: 100%; margin-top: 8px; }
.screen:has(.vm-bg) .vm-reveal.is-vamp { border: 2px solid var(--vm-blood); box-shadow: 0 0 0 5px var(--vm-blood-soft), 0 10px 28px rgba(0, 0, 0, .35); }
.screen:has(.vm-bg) .vm-reveal.is-safe { border: 2px solid #2F7A5E; }
.screen:has(.vm-bg) .vm-head.is-death { border: 2px solid var(--vm-blood); box-shadow: 0 0 0 5px var(--vm-blood-soft), 0 10px 28px rgba(0, 0, 0, .35); }
.screen:has(.vm-bg) .vm-head.is-death .av { filter: grayscale(.55); }
.screen:has(.vm-bg) .vm-head.is-town { border: 2px solid #2F7A5E; }
.screen:has(.vm-bg) .res-title + .hero-res .av.xl { border-color: var(--vm-card-2); }

/* Rol kartı: tarot kartı gibi koyu, rolün rengi kenarda */
.flip .face.vm-front {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px), #1B1636;
  color: #EDE8FF; border: 2px solid #3D3570;
}
.flip .face.vm-front small { color: #9C92CC; }
.flip .face.back.vm-role { background: #1B1636; color: #EDE8FF; border: 2px solid #3D3570; }
.face.back.vm-role.blood { border-color: #B3263F; box-shadow: inset 0 0 40px rgba(179, 38, 63, .35); }
.face.back.vm-role.mint { border-color: #2F7A5E; box-shadow: inset 0 0 40px rgba(47, 122, 94, .35); }
.face.back.vm-role.lav { border-color: #6A4FC9; box-shadow: inset 0 0 40px rgba(106, 79, 201, .35); }
.face.back.vm-role.lemon { border-color: #8A6A3A; box-shadow: inset 0 0 40px rgba(138, 106, 58, .35); }
.face.back.vm-role small { color: #B8AEE0; }
.face.back.vm-role .fe { font-size: 58px; }
.vm-mates { margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(179, 38, 63, .25); color: #FFD7DE; }

/* Köyde kalanlar ve mezarlık */
.vm-avs { display: flex; flex-wrap: wrap; gap: 12px 10px; margin-top: 8px; }
.vm-av { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 54px; }
.vm-av small { font-size: 11px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-avs.dead .vm-av { opacity: .4; filter: grayscale(1); }
.vm-dead { opacity: .55; }

.vm-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vm-log li { display: flex; gap: 10px; font-weight: 700; font-size: 14px; }
.vm-when { flex: 0 0 auto; width: 84px; color: var(--vm-muted, var(--muted)); font-weight: 800; }
.vm-setup { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--track); font-weight: 800; font-size: 14px; text-align: center; }
.screen:has(.vm-bg) .vm-setup.vm-hint { margin: 0; background: var(--vm-card); border: 1px solid var(--vm-line); color: var(--vm-ink) !important; }

/* Lobide kendi adına dokununca ad değiştirilir. */
.players .me-name {
  flex: 1; text-align: left; font: inherit; font-weight: 800; color: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.players .me-name .edit { font-size: 13px; opacity: .6; }

/* Kurucuya gelen katılma istekleri, her ekranın üstünde. */
.join-reqs {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: 11; width: min(420px, calc(100% - 24px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.join-req {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(70, 63, 87, .18); animation: rise .25s ease both;
  font-size: 14px; font-weight: 700;
}
.join-req > span:not(.av) { flex: 1; line-height: 1.3; }
.join-req .btn.sm { padding: 8px 12px; font-size: 14px; }

/* Kim Daha Çok oyun sonu özeti: her soru açılınca oyları görünür. */
.recap-list { display: flex; flex-direction: column; gap: 8px; }
details.rq { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; }
details.rq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
details.rq summary::-webkit-details-marker { display: none; }
.rq-n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lemon); font-weight: 900; font-size: 13px;
}
.rq-q { flex: 1; font-weight: 800; font-size: 15px; line-height: 1.3; }
.rq-top { flex: none; display: flex; align-items: center; gap: 2px; }
.rq-top .av + .av { margin-left: -8px; }
.rq-top b { margin-left: 6px; font-weight: 900; }
.rq-top small { color: var(--muted); font-weight: 700; }
.rq-body { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--line); }
.rq-meta { margin: 10px 0 0; }

/* ---------- Futbol Düellosu ---------- */

/* Tema: çim saha; açık yeşil şeritler ve orta saha çizgisi. */
.g-fut {
  background:
    radial-gradient(circle at 50% 38%, transparent 0 58px, rgba(255, 255, 255, .5) 59px 61px, transparent 62px),
    linear-gradient(180deg, transparent calc(38% - 1px), rgba(255, 255, 255, .5) calc(38% - 1px) calc(38% + 1px), transparent calc(38% + 1px)),
    repeating-linear-gradient(180deg, #DDF3E4 0 64px, #D2EEDB 64px 128px);
}
/* ---------- Çapraz Pas: taktik tahtası ---------- */
/* Arka plan koyu; oyun ahşap çerçeveli yeşil bir taktik tahtasının üstünde, tebeşirle çizilmiş gibi. */
.g-cpz { background: radial-gradient(ellipse at 50% 0%, #2A3B33, transparent 60%), linear-gradient(180deg, #1C2924 0%, #15201B 100%); }
.screen:has(.g-cpz) { color: #fff; }
/* Tahtanın altındaki yazma kutusu ve öneriler beyaz kalır; içlerindeki yazı koyu olmalı. */
.screen:has(.g-cpz) .fut-input, .screen:has(.g-cpz) .fut-sug button { color: var(--ink); }
.screen:has(.g-cpz) .fut-msg.bad { color: #FFB0B8; }
.screen:has(.g-cpz) .fut-msg.ok { color: #9EE6C2; }
.screen:has(.g-cpz) .nav-btn { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.screen:has(.g-cpz) .pill { background: rgba(255, 255, 255, .12); color: #fff; }
.screen:has(.g-cpz) .code-mini, .screen:has(.g-cpz) .hint { color: rgba(255, 255, 255, .6); }
.screen:has(.g-cpz) .btn.pink:not(:disabled) { background: #F5DC85; color: #3a2a00; box-shadow: 0 4px 0 #C9A94A; }
.screen:has(.g-cpz) .btn.pink:active:not(:disabled) { box-shadow: 0 1px 0 #C9A94A; }
.screen:has(.g-cpz) .btn.ghost { background: transparent; color: #fff; box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .35); }
.cp-board {
  position: relative; padding: 12px 12px 14px; border-radius: 16px;
  border: 8px solid #8A5A35; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 0 0 40px rgba(0, 0, 0, .35), 0 10px 26px rgba(0, 0, 0, .45);
  background:
    radial-gradient(ellipse at 18% 22%, rgba(255, 255, 255, .06), transparent 40%),
    radial-gradient(ellipse at 82% 78%, rgba(255, 255, 255, .05), transparent 45%),
    radial-gradient(circle at 50% 108%, transparent 0 46px, rgba(255, 255, 255, .08) 47px 49px, transparent 50px),
    linear-gradient(0deg, transparent calc(100% - 1px), rgba(255, 255, 255, .06) calc(100% - 1px)),
    linear-gradient(160deg, #2F5E4A, #264E3D);
}
/* Üst şerit: iki oyuncu tebeşir çerçeveli; sırası olanın çerçevesi parlar. */
.cp-strip { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.cp-side { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 12px; min-width: 0; border: 2px dashed rgba(255, 255, 255, .25); color: #fff; }
.cp-side:last-child { flex-direction: row-reverse; }
.cp-side b { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-side:last-child b { text-align: right; }
.cp-side.turn { border-style: solid; border-color: rgba(255, 255, 255, .82); box-shadow: 0 0 12px rgba(255, 255, 255, .25); }
.cp-side .cp-mk.sm { width: 30px; height: 30px; }
.cp-count { font-family: 'Caveat', cursive; font-size: 26px; line-height: 1; }
.cp-vs { font-family: 'Caveat', cursive; font-size: 20px; color: rgba(255, 255, 255, .6); }
/* İşaretler: mini formalar; bir oyuncu kırmızı, diğeri mavi, göğüste adının baş harfi. */
.cp-mk { width: 44px; height: 44px; flex: 0 0 auto; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.cp-mk.sm { width: 24px; height: 24px; }
.cp-kit { stroke-width: 1.6; stroke-linejoin: round; }
.cp-trim { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.cp-mk text { fill: #fff; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 15px; text-anchor: middle; }
.cp-mk.x .cp-kit { fill: #F0616F; stroke: #B23A48; }
.cp-mk.o .cp-kit { fill: #4F94EA; stroke: #2C5FA8; }
.cp-status { margin: 10px 0 4px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Caveat', cursive; font-size: 28px; line-height: 1.1; color: rgba(255, 255, 255, .75); text-align: center; }
.cp-status.mine { color: #fff; }
.cp-status.mine.x { text-shadow: 0 0 10px rgba(240, 97, 111, .55); }
.cp-status.mine.o { text-shadow: 0 0 10px rgba(79, 148, 234, .55); }
.cp-status .cp-mk.sm { width: 26px; height: 26px; }
.screen:has(.g-cpz) .timer-track { background: rgba(255, 255, 255, .15); }
.screen:has(.g-cpz) .timer-fill { background: rgba(255, 255, 255, .82); }
.screen:has(.g-cpz) .timer.mid .timer-fill { background: #F5DC85; }
.screen:has(.g-cpz) .timer.low .timer-fill { background: #FF9DB8; }
.screen:has(.g-cpz) .timer-num { color: #fff; }
/* Izgara: kutular arası beyaz tebeşir çizgileri (XOX tablosu); başlıklar el yazısı. */
.cp-grid { display: grid; grid-template-columns: 78px repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.cp-corner { display: flex; align-items: center; justify-content: center; gap: 2px; opacity: .7; }
.cp-head { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 2px 3px; font-family: 'Caveat', cursive; font-size: 17px; line-height: .95; color: #fff; overflow-wrap: normal; min-width: 0; }
.cp-head.s { font-size: 15px; }
.cp-head.xs { font-size: 13px; }
.cp-grid > .cp-head:nth-child(-n + 4) { align-items: flex-end; padding-bottom: 6px; }
.cp-cell { position: relative; min-height: 76px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; color: #fff; }
/* Tebeşir çizgileri: her kutunun sağında ve altında (son sütun ve son satır hariç). */
.cp-grid > .cp-cell:not(:nth-child(4n)) { border-right: 3px solid rgba(255, 255, 255, .82); }
.cp-grid > .cp-cell:nth-child(n + 5):nth-child(-n + 12) { border-bottom: 3px solid rgba(255, 255, 255, .82); }
.cp-grid > .cp-cell { border-radius: 0; }
button.cp-cell.empty { cursor: pointer; }
button.cp-cell.empty:active { background: rgba(255, 255, 255, .06); }
.cp-cell.sel { background: rgba(245, 220, 133, .12); box-shadow: inset 0 0 0 2px #F5DC85; }
.cp-cell small { font-size: 10.5px; font-weight: 800; line-height: 1.15; text-align: center; overflow-wrap: anywhere; color: rgba(255, 255, 255, .88); }
.cp-cell.line { background: rgba(245, 220, 133, .16); }
/* Kazanma çizgisi: kutu alanının (2.-4. sütun, 2.-4. satır) üstünde; tebeşirle çiziliyormuş gibi uzar. */
.cp-grid { position: relative; }
.cp-winline { position: absolute; inset: 0; grid-column: 2 / 5; grid-row: 2 / 5; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.cp-winline line {
  stroke: #F5DC85; stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: cp-draw .7s .35s cubic-bezier(.6, 0, .3, 1) forwards;
  filter: drop-shadow(0 0 6px rgba(245, 220, 133, .85));
}
@keyframes cp-draw { to { stroke-dashoffset: 0; } }
.still .cp-winline line { animation: none; stroke-dashoffset: 0; }
.cp-cell.line .cp-mk { filter: drop-shadow(0 0 6px rgba(245, 220, 133, .95)); }
/* Kazanan üç forma, çizgi bitince sevinçle zıplar. */
.cp-cell.line .cp-mk { animation: cp-jump .5s 1s ease-out 3 both; }
@keyframes cp-jump { 0%, 100% { translate: 0 0; } 40% { translate: 0 -9px; } 70% { translate: 0 1px; } }
.still .cp-cell.line .cp-mk { animation: none; }
/* Rakibin seçtiği kutu: yanıp sönen tebeşir çerçeve (cevap görünmez). */
.cp-cell.peek { animation: cp-peek 1.1s ease-in-out infinite; }
@keyframes cp-peek { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(245, 220, 133, .25); } 50% { box-shadow: inset 0 0 0 2px #F5DC85; background: rgba(245, 220, 133, .1); } }
/* Oyun sonu: boş kutudaki örnek cevap soluk, tebeşirle soru işareti. */
.cp-cell.ex small { color: rgba(255, 255, 255, .55); font-style: italic; }
.cp-ex-q { font-family: 'Caveat', cursive; font-size: 26px; line-height: 1; color: rgba(255, 255, 255, .4); }
.cp-report li.ex .cp-ex-q { width: 24px; text-align: center; flex: 0 0 auto; }
.cp-ex-t { display: block; font-size: 11px; font-weight: 800; color: #F5DC85; }
.cp-pass { width: 100%; margin-top: 8px; }
.cp-input { margin-top: 14px; }
.cp-wait, .cp-last { margin-top: 12px; }
.screen:has(.g-cpz) .cp-last b { color: #fff; }
.cp-verdict { margin-bottom: 10px; text-align: center; font-family: 'Caveat', cursive; font-size: 34px; line-height: 1.05; color: #fff; }
.cp-verdict.won { color: #F5DC85; text-shadow: 0 0 12px rgba(245, 220, 133, .5); }
.cp-verdict small { display: block; margin-top: 4px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); text-shadow: none; }
.screen:has(.g-cpz) .cp-report { margin-top: 14px; background: rgba(255, 255, 255, .06); color: #fff; box-shadow: none; border: 1.5px dashed rgba(255, 255, 255, .2); }
.screen:has(.g-cpz) .cp-report .muted { color: rgba(255, 255, 255, .6); }
.cp-report ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.cp-report li { display: flex; align-items: center; gap: 10px; }
.cp-report li b { display: block; font-size: 14px; }
.cp-report li small { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .65); }
/* Klavye açıkken: şerit gizlenir, tablo küçülür, en fazla 3 öneri. */
.screen:has(#cp-input:focus) .cp-strip, .screen:has(#cp-input:focus) .cp-last { display: none; }
.screen:has(#cp-input:focus) .cp-status { margin-top: 0; font-size: 22px; }
.screen:has(#cp-input:focus) .cp-cell { min-height: 46px; }
.screen:has(#cp-input:focus) .cp-mk { width: 30px; height: 30px; }
.screen:has(#cp-input:focus) .cp-head { min-height: 28px; font-size: 16px; }
.screen:has(#cp-input:focus) .cp-board { padding: 8px 10px 10px; }
.screen:has(#cp-input:focus) #cp-sug li:nth-child(n + 4) { display: none; }

.screen:has(.g-fut) .btn.pink:not(:disabled) { background: #2F9E62; color: #fff; box-shadow: 0 4px 0 #227A4A; }
.screen:has(.g-fut) .btn.pink:active:not(:disabled) { box-shadow: 0 1px 0 #227A4A; }
.screen:has(.g-fut) .hold-fill { background: #7FCB9E; }


.fut-pickcard { display: flex; flex-direction: column; gap: 6px; }
/* Takım seçim düellosu: iki taraf yan yana, ortada VS. Durum etiketi: bekliyor (gri), seçti (sarı), hazır (yeşil). */
.fpd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; }
.fpd-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px; background: var(--track); text-align: center; min-width: 0; }
.fpd-who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); max-width: 100%; }
.fpd-who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpd-team { font-size: 18px; font-weight: 900; line-height: 1.15; min-height: 42px; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
/* Uzun kelimeli takım adları (ör. Mönchengladbach) kelimenin ortasından bölünmesin diye küçülür. */
.fpd-team.long { font-size: 14px; }
.fpd-team.empty { font-size: 30px; color: rgba(70, 63, 87, .3); }
.fpd-st { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #fff; color: var(--muted); }
.fpd-note { font-size: 11px; font-weight: 700; color: var(--muted); }
.fpd-side.picked .fpd-st { background: var(--lemon); color: #7A5B00; }
.fpd-side.ok { background: #DDF3E4; }
.fpd-side.ok .fpd-st { background: #2F9E62; color: #fff; }
.fpd-vs { align-self: center; font-size: 13px; font-weight: 900; letter-spacing: 1px; color: var(--muted); }
.fut-mypick { font-size: 24px; font-weight: 900; line-height: 1.15; }
.fut-rival { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fut-rival b { color: var(--ink); }
.fut-ok { color: #2F9E62; font-weight: 900; }
.fut-bottom { gap: 6px; }
.fut-notice { margin: 4px 0 0; padding: 8px 10px; border-radius: 12px; background: #FFE0E7; font-size: 14px; font-weight: 800; }
.fut-notice[hidden] { display: none; }


.fut-search { position: relative; }
.fut-input { width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); font-size: 18px; font-weight: 800; outline: none; }
.fut-input:focus { border-color: #2F9E62; }
.fut-sug { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fut-sug button { width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 11px 14px; background: var(--card); box-shadow: var(--shadow); font-weight: 800; font-size: 16px; color: var(--ink); }
.fut-sug button.first { background: #DDF3E4; }
.fut-sug button:active { transform: scale(.98); }
.fut-msg { margin: 6px 0 0; min-height: 20px; font-size: 14px; font-weight: 800; text-align: center; }
.fut-msg.ok { color: #2F9E62; }
.fut-msg.bad { color: #D9466F; }


.fut-countdown { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #1f6b43; color: #fff; }
.fut-countdown[hidden] { display: none; }
.fut-countdown span { font-size: 120px; font-weight: 900; line-height: 1; animation: pop .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.fut-countdown small { font-size: 18px; font-weight: 800; opacity: .85; }
.fut-club.hidden-club b { opacity: .5; }
.fut-pass { margin-top: 10px; text-align: center; }
.fut-strip.multi { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fs-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; }
.fs-chip b { margin-left: 2px; color: #ffd84d; font-weight: 900; }
.fs-chip.gone, .fb-list li.gone { opacity: .45; }
.fb-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.fb-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.fb-list li.win { background: rgba(255, 216, 77, .22); }
.fb-list .fl-rank { width: 18px; font-weight: 900; opacity: .7; }
.fb-list .fl-name { flex: 1; font-weight: 800; }
.fb-list b { font-size: 22px; font-weight: 900; color: #ffd84d; }
.fut-hint { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(0, 0, 0, .15); }
.fut-hint .fh-player { font-size: 20px; font-weight: 900; margin: 2px 0 8px; }
.fut-pass-btn { width: 100%; }
.fut-pass-btn.hot { background: #f5b800; color: #3a2a00; border: 0; }
.fut-pass-banner { margin-bottom: 8px; padding: 10px 12px; border-radius: 14px; font-size: 18px; font-weight: 900; text-align: center; }
.fut-pass-banner small { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; opacity: .8; }
.fut-pass-banner.rival { background: #ffd84d; color: #3a2a00; }
.fut-pass-banner.mine { background: #fff6d9; color: #6b5200; border: 1.5px dashed #e0a100; }
.fs-pass { flex: none; margin: 0 2px; padding: 1px 4px; border-radius: 8px; background: #ffd84d; color: #3a2a00; font-size: 10px; font-style: normal; font-weight: 900; white-space: nowrap; }
.fut-pass-note { margin: 6px 0 0; }

.fut-credit { margin: 10px 0 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.fut-credit a { color: inherit; }

/* Maç sonu: stadyum skorbordu ve maç özeti */
.fut-board {
  border-radius: 24px; padding: 16px 14px 14px; color: #fff; text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(180deg, #1F6B43, #154D30);
  box-shadow: 0 10px 28px rgba(21, 77, 48, .35), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.fb-title { font-size: 12px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; opacity: .75; }
.fb-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 12px; }
.fb-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.fb-side b { font-size: 15px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-side .av { border: 3px solid rgba(255, 255, 255, .25); color: #463F57; }
.fb-side.win .av { border-color: #F5DC85; box-shadow: 0 0 0 4px rgba(245, 220, 133, .25); }
.fb-score {
  font-size: 52px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
  padding: 8px 14px; border-radius: 16px; background: #0E3321; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .4);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #F5DC85;
}
.fb-score i { font-style: normal; margin: 0 8px; opacity: .6; }
.fb-verdict { margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); font-weight: 900; font-size: 15px; }

.fut-report { display: flex; flex-direction: column; gap: 10px; }
.fut-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.fut-events::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
/* Kartlar: beyaz, gölgeli; orta çizgiye bakan kenarda yeşil şerit, çizgi üzerinde yeşil nokta. */
.fe {
  position: relative; display: flex; flex-direction: column; gap: 4px; width: calc(50% - 14px); padding: 10px 12px;
  border-radius: 16px; background: var(--card); box-shadow: 0 3px 10px rgba(70, 63, 87, .08); animation: rise .3s ease both;
}
.fe.left { align-self: flex-start; align-items: flex-end; text-align: right; border-right: 4px solid #2F9E62; }
.fe.right { align-self: flex-end; align-items: flex-start; border-left: 4px solid #2F9E62; }
.fe.left::after, .fe.right::after {
  content: ''; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: #2F9E62; box-shadow: 0 0 0 3px var(--card);
}
.fe.left::after { right: -21px; }
.fe.right::after { left: -21px; }
.fe.none { align-self: center; align-items: center; width: auto; max-width: 86%; text-align: center; border: 1.5px dashed var(--line); box-shadow: none; z-index: 1; }
.fe-round { padding: 2px 8px; border-radius: 999px; background: var(--track); font-size: 10px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.fe-body { display: flex; flex-direction: column; gap: 3px; align-items: inherit; }
.fe-body > b { font-size: 15px; font-weight: 900; line-height: 1.25; }
.fe-body small { font-size: 12px; font-weight: 700; color: var(--muted); }
.fe-by { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 2px 9px 2px 3px; border-radius: 999px; background: #DDF3E4; font-size: 12px; font-weight: 900; max-width: 100%; }
.fe-by > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-hint { font-size: 12px; font-weight: 700; color: var(--muted); }
.fe-hint b { color: var(--ink); font-weight: 900; }
/* Maç sonu tabelası: kazanan taçlı ve altın çerçeveli, kaybeden soluk, sonuç bandı altın. */
.fb-crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 26px; animation: pop .5s .2s cubic-bezier(.3, 1.6, .5, 1) both; z-index: 1; }
.fut-board.final .fb-side.win .av { transform: scale(1.12); border-color: #F5DC85; box-shadow: 0 0 0 5px rgba(245, 220, 133, .35), 0 0 22px rgba(245, 220, 133, .45); }
.fut-board.final .fb-side.win b { color: #F5DC85; }
.fb-won { padding: 2px 10px; border-radius: 999px; background: #F5DC85; color: #3a2a00; font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.fut-board.final .fb-side.lose { opacity: .5; }
.fut-board.has-winner .fb-verdict { background: linear-gradient(90deg, #F5DC85, #FFE9A8); color: #3a2a00; font-size: 17px; }
.fut-board.final .fb-row { margin-top: 20px; }
.still .fb-crown { animation: none; }
.still .fe { animation: none; }

/* "GOL!" anı: tam ekran, kendiliğinden kaybolur; dokunuşları engellemez. */
.fut-goal {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  /* Opak zemin: arkadaki sonuç kartı yazıyla karışmasın. */
  background: radial-gradient(circle at 50% 45%, #237A4C, #0E3321);
  color: #fff; animation: goal-out 2.4s ease forwards;
}
.fut-goal b {
  font-size: 96px; font-weight: 900; letter-spacing: 2px; line-height: 1; color: #F5DC85;
  text-shadow: 0 6px 0 rgba(0, 0, 0, .25); animation: goal-in .5s cubic-bezier(.3, 1.6, .5, 1) both;
}
/* Golü atan: beyaz etiket, avatar ve koyu yazı; GOL'den hemen sonra belirir. */
.fut-goal-by {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 20px; font-weight: 900; box-shadow: 0 6px 0 rgba(0, 0, 0, .2);
  animation: goal-by .4s .25s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes goal-by { from { transform: translateY(14px) scale(.8); opacity: 0; } }
@keyframes goal-in { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
@keyframes goal-out { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .fut-goal { display: none; } }

/* Tur sırasında maç başlığı: tur, iki takım ve tabela şeridi tek bir yeşil kartta. */
.fut-match {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 10px; border-radius: 22px; color: #fff; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .12), transparent 60%), linear-gradient(180deg, #1F6B43, #154D30);
  box-shadow: 0 8px 22px rgba(21, 77, 48, .3);
}
.fm-title { font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }
.fm-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fut-club b { display: block; font-size: 20px; font-weight: 900; line-height: 1.15; }
.fut-club small { font-size: 11.5px; font-weight: 700; opacity: .7; }
.fut-x { font-size: 22px; font-weight: 900; opacity: .6; }

/* Tabela şeridi: koyu zeminde altın renkli skor. */
.fut-strip { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: #0E3321; color: #fff; }
.fs-side { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 800; }
.fs-side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-side.right { justify-content: flex-end; }
.fs-side .av { color: #463F57; }
.fs-score { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 22px; font-weight: 900; color: #F5DC85; font-variant-numeric: tabular-nums; }
.fs-score i { font-style: normal; margin: 0 6px; opacity: .6; }
.fut-pickcard + .fut-strip, .round-label + .fut-strip { margin-top: -4px; }

/* Klavye açıkken (yazı kutusu odaktayken) ekran sıkışır: yer kaplayanlar küçülür ki öneriler klavyenin üstünde kalsın.
   Takım seçerken "Takımı onayla" düğmesi gizlenir; takım seçilince klavye kapanır ve düğme geri gelir. */
.screen:has(#fut-team-input:focus) #fut-pick-bottom,
.screen:has(#fut-team-input:focus) .round-label,
.screen:has(#fut-team-input:focus) .fut-pickcard,
.screen:has(#fut-team-input:focus) .fut-search + .hint { display: none; }
/* Oyuncu yazarken maç kartı tek satıra iner: takımlar görünür, lig notları ve skor şeridi gizlenir. */
.screen:has(#fut-input:focus) .fut-match { gap: 0; padding: 8px 10px; border-radius: 16px; }
.screen:has(#fut-input:focus) .fm-title,
.screen:has(#fut-input:focus) .fut-match .fut-strip,
.screen:has(#fut-input:focus) .fut-club small,
.screen:has(#fut-input:focus) .fut-pass,
.screen:has(#fut-input:focus) .fut-search ~ .hint { display: none; }
.screen:has(#fut-input:focus) .fut-club b { font-size: 16px; }
.screen:has(#fut-input:focus) .fut-x { font-size: 16px; }
.screen:has(#fut-input:focus) .fut-timer { margin: 2px 0; }
/* Klavye açıkken en fazla 4 öneri ve daha sık aralık. */
.screen:has(.fut-input:focus) .fut-sug li:nth-child(n + 5) { display: none; }
.screen:has(.fut-input:focus) .fut-sug button { padding: 9px 14px; }

/* Skorbordun alt başlığı ve golü atanın yanındaki top. */
.fb-sub { margin-top: 4px; font-size: 16px; font-weight: 900; }
.fb-side { position: relative; }
.fb-ball { position: absolute; top: -4px; right: calc(50% - 34px); font-size: 20px; animation: pop .5s .3s cubic-bezier(.3, 1.6, .5, 1) both; }

/* Gol kartı: bulunan futbolcu ve iki takımdaki yılları. */
.fut-goalcard { border-radius: 22px; padding: 14px; background: var(--card); box-shadow: var(--shadow); border: 2px solid #2F9E62; text-align: center; }
.fut-goalcard.nogoal { border: 2px dashed var(--line); }
.fg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fg-tag { padding: 4px 10px; border-radius: 999px; background: #2F9E62; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.nogoal .fg-tag { background: var(--track); color: var(--muted); }
.fg-by { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.fg-player { margin: 10px 0 8px; font-size: 26px; font-weight: 900; line-height: 1.1; }
.fg-clubs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fg-club { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; background: #DDF3E4; }
.fg-club b { font-size: 14px; font-weight: 900; }
.fg-club small { font-size: 12px; font-weight: 700; color: var(--muted); }
.fg-note { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.still .fb-ball { animation: none; }
.fut-sug button { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fut-sug .fut-lg { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: var(--muted); }
/* Lig kartları (Kim Daha Çok kategori kartlarıyla aynı yapı): bayrak, lig adı, ülke. */
.fut-league-cards .fl-flag { display: block; width: 26px; height: 17px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(70, 63, 87, .15); }
.fut-league-cards .fl-emoji { font-size: 19px; line-height: 1; }
.fut-league-cards .ci { display: flex; align-items: center; }
.fut-leagues { display: flex; flex-wrap: wrap; gap: 6px; }
.fut-leagues button { border: 2px solid transparent; border-radius: 999px; padding: 7px 12px; background: var(--track); color: var(--muted); font-weight: 800; font-size: 13px; }
.fut-leagues button.on { background: #DDF3E4; border-color: #2F9E62; color: var(--ink); }
.fut-leagues button:disabled { cursor: default; }

/* Ana sayfanın altındaki bilgi sayfası bağlantıları. */
.home-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 4px; }
.home-links a { font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; }
.about { max-width: 440px; margin: 0 auto; padding: 8px 20px 28px; color: var(--ink, #463F57); }
.about h1 { font-size: 22px; margin: 6px 0 8px; }
.about h2 { font-size: 17px; margin: 18px 0 8px; }
.about p { margin: 0 0 10px; line-height: 1.5; font-weight: 600; }
.about a { color: inherit; font-weight: 800; }
.about-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Oyun listesi: her oyun uygulamadaki kart rengiyle. */
.about-games li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--card); }
/* Satırın tamamı oyunun tanıtım sayfasına gider. */
.about-games li > a { display: contents; color: inherit; text-decoration: none; }
.about-games li { cursor: pointer; }
.about-games li.pink { background: var(--pink); } .about-games li.mint { background: var(--mint); }
.about-games li.sky { background: var(--sky); }   .about-games li.lav { background: var(--lav); }
.about-games li.lemon { background: var(--lemon); } .about-games li.peach { background: var(--peach); }
.about-games li > span { font-size: 26px; line-height: 1; }
.about-games li > div { flex: 1; min-width: 0; }
.about-games b { display: block; font-size: 15px; }
.about-games small { color: rgba(70, 63, 87, .7); font-weight: 700; }
.about-games em { flex: 0 0 auto; font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .65); }
/* Nasıl başlanır: numaralı küçük kartlar. */
.about-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.about-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); line-height: 1.45; font-weight: 600; }
.about-steps i { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; background: var(--pink); }
.about-steps li:nth-child(2) i { background: var(--mint); }
.about-steps li:nth-child(3) i { background: var(--lav); }
.ad-box { max-width: 440px; margin: 0 auto; padding: 0 16px 24px; }
.ad-box[hidden] { display: none; }
.ad-box .ad-label { display: block; margin-bottom: 4px; text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }

/* Emoji yerine çizilmiş oyun simgeleri (ör. Çapraz Pas forması): yazı boyutunda durur. */
.gicon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); }
/* Masa oluştur kartı: zar yerine masa logosu. */
.intro-logo { display: block; width: 104px; height: 104px; margin: -14px auto -8px; filter: drop-shadow(0 3px 4px rgba(70, 63, 87, .15)); }
/* Masaya katıl kartındaki mini logo kartı. */
.intro-ic { display: flex; justify-content: center; margin-bottom: 6px; color: var(--ink); }
/* Mini logo kartları (ana sayfa düğmeleri ve Masaya katıl kartı). */
.btn-ic .mini-card { width: 30px; height: 30px; margin: -4px 8px -4px 0; vertical-align: middle; filter: drop-shadow(0 1.5px 1.5px rgba(70, 63, 87, .18)); }
.intro-ic .mini-card { width: 60px; height: 60px; filter: drop-shadow(0 3px 4px rgba(70, 63, 87, .15)); }
