:root {
  --bg: #0e0b0f;
  --bg-2: #17121a;
  --paper: #efe6d2;
  --paper-dark: #d9cdb3;
  --ink: #221a16;
  --red: #b3202a;
  --red-hot: #d62f3a;
  --muted: #a99f97;
  --line: rgba(239, 230, 210, .12);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--paper);
  font: 16px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.type { font-family: "Special Elite", "Courier New", monospace; letter-spacing: .02em; }

/* nav */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 11, 15, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 700; letter-spacing: .14em; text-decoration: none; font-size: 15px; }
.brand span { color: var(--red-hot); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav nav a:hover { color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hot); }
.btn-ghost { border-color: var(--line); color: var(--paper); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* hero */
.hero {
  position: relative; overflow: hidden; padding: 88px 0 96px;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(214, 47, 58, .22), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(255, 180, 90, .08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-hot); border: 1px solid rgba(214,47,58,.45); padding: 5px 12px; border-radius: 99px;
}
.hero h1 { font-size: clamp(48px, 8vw, 92px); line-height: .95; margin: 20px 0 12px; font-weight: 400; }
.hero h1 em { font-style: normal; color: var(--red-hot); }
.hero .lead { font-size: 19px; color: #d8cfc4; max-width: 520px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin-top: 18px; color: var(--muted); font-size: 13px; }
.polaroid {
  background: var(--paper); padding: 14px 14px 46px; border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,.55); transform: rotate(3deg); position: relative;
}
.polaroid img { border-radius: 2px; aspect-ratio: 680 / 820; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: var(--ink); font-size: 17px; }
.pin { position: absolute; top: -10px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 0 3px 6px rgba(0,0,0,.5); translate: -50% 0; }

/* sections */
section { padding: 88px 0; }
.alt { background: rgba(23, 18, 26, .82); border-block: 1px solid var(--line); }
.head { max-width: 640px; margin-bottom: 44px; }
.head .kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red-hot); }
.head h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin: 10px 0 12px; font-weight: 400; }
.head p { color: var(--muted); margin: 0; font-size: 17px; }

/* suspects */
.cast { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cast figure { margin: 0; background: var(--paper); padding: 8px 8px 30px; border-radius: 3px; position: relative; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.cast figure:nth-child(odd) { transform: rotate(-2.5deg); }
.cast figure:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.cast img { aspect-ratio: 500 / 640; object-fit: cover; border-radius: 2px; }
.cast figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; color: var(--ink); font-size: 14px; }

/* how it plays */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: rgba(255,255,255,.02); }
.step .num { font-size: 13px; color: var(--red-hot); font-weight: 600; letter-spacing: .12em; }
.step h3 { margin: 8px 0 8px; font-size: 22px; font-weight: 400; }
.step p { margin: 0; color: var(--muted); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.feature { padding: 22px 24px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.feature b { display: block; font-size: 28px; color: var(--paper); font-weight: 700; }
.feature span { color: var(--muted); font-size: 15px; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; font-size: 13px; font-weight: 600;
  background: rgba(14,11,15,.8); padding: 6px 12px; border-radius: 8px;
}

/* roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.team { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 26px 24px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.team h3 { margin: 0 0 4px; font-size: 24px; font-weight: 400; }
.team .goal { margin: 0 0 16px; font-size: 14px; color: #6b5d52; }
.team ul { list-style: none; margin: 0; padding: 0; }
.team li { padding: 11px 0; border-top: 1px dashed rgba(34,26,22,.2); font-size: 14.5px; }
.team li b { display: block; font-size: 15px; }
.team.innocent h3 { color: #2f6b3a; }
.team.killer h3 { color: var(--red); }
.team.neutral h3 { color: #8a5a12; }

/* updates */
.update { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; background: rgba(255,255,255,.02); }
.update .when { color: var(--muted); font-size: 14px; }
.update h3 { margin: 4px 0 14px; font-size: 24px; font-weight: 400; }
.update ul { margin: 0; padding-left: 20px; color: #d8cfc4; }
.update li { margin: 6px 0; }

/* download */
.download {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  border-radius: 20px; padding: 48px; border: 1px solid rgba(214,47,58,.35);
  background: linear-gradient(135deg, rgba(179,32,42,.22), rgba(179,32,42,.04));
}
.download h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 10px; font-weight: 400; }
.download p { color: #d8cfc4; margin: 0 0 24px; }
.specs { list-style: none; margin: 0; padding: 22px 24px; background: rgba(14,11,15,.6); border-radius: var(--radius); border: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.specs li:last-child { border-bottom: 0; }
.specs span { color: var(--muted); }

.lang { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.lang button {
  background: none; border: 0; color: var(--muted); font: 600 13px Inter, sans-serif;
  padding: 7px 11px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.nav nav + .lang { margin-left: 0; }
.specs em { font-style: normal; }

footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .hero-grid, .download { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .polaroid { max-width: 360px; margin: 0 auto; }
  .cast { grid-template-columns: repeat(3, 1fr); }
  .steps, .features, .roles { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .nav nav { display: none; }
  .download { padding: 30px 22px; }
}

/* particles sit behind everything */
.particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, footer, .page { position: relative; z-index: 1; }

/* account + music in the header */
#account { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: 500 14px Inter, sans-serif; cursor: pointer; text-decoration: none; }
.linkish:hover { color: var(--paper); }
.acct-name { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fb96b; margin-right: 8px; vertical-align: middle; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 9px; background: none; color: var(--muted); cursor: pointer;
}
.icon-btn:hover, .icon-btn.on { color: var(--paper); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .wave { opacity: 0; transition: opacity .2s; }
.icon-btn.on .wave { opacity: 1; }
.icon-btn.on .cross { opacity: 0; }

/* cookie notice */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 560px; margin-inline: auto;
  display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 12px;
  background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.55);
  animation: rise .35s ease both;
}
.cookie p { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie a { color: var(--red); font-weight: 600; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* forms (account page) */
.page { min-height: calc(100vh - 64px - 120px); display: grid; place-items: center; padding: 56px 16px; }
.card {
  width: min(440px, 100%); background: var(--paper); color: var(--ink); border-radius: 10px;
  padding: 34px 32px 30px; box-shadow: 0 30px 70px rgba(0,0,0,.55); position: relative;
}
.card .pin { top: -9px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid rgba(34,26,22,.15); margin-bottom: 24px; }
.tabs button {
  background: none; border: 0; padding: 10px 0 12px; font: 400 20px "Special Elite", monospace; color: #8b7d71; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--red); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.field input {
  font: 15px Inter, sans-serif; padding: 11px 13px; border-radius: 8px; border: 1px solid #c7b99d; background: #fbf7ee; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 12px; color: #7a6b5f; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 6px 0 18px; }
.check input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.check a { color: var(--red); font-weight: 600; }
.card .btn { width: 100%; }
.msg { display: none; margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.msg.err { display: block; background: #f6d6d3; color: #7d1219; }
.msg.ok { display: block; background: #d8eed9; color: #1f5a2a; }
.note { text-align: center; font-size: 13px; color: #7a6b5f; margin: 16px 0 0; }

/* legal pages */
.legal { width: min(820px, 100% - 32px); margin: 0 auto; padding: 64px 0 88px; }
.legal h1 { font: 400 clamp(32px, 5vw, 46px)/1.1 "Special Elite", monospace; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font: 400 22px "Special Elite", monospace; margin: 36px 0 10px; color: var(--paper); }
.legal p, .legal li { color: #d8cfc4; }
.legal a { color: var(--red-hot); }
.legal [data-only] { display: none; }
html[lang="en"] .legal [data-only="en"], html[lang="tr"] .legal [data-only="tr"] { display: block; }

@media (max-width: 900px) {
  #account .linkish { display: none; }
  .cookie { flex-direction: column; align-items: stretch; }
}

/* account chip + avatar (red wax-seal initial when there is no picture) */
.acct-chip { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--paper); }
.acct-chip .acct-name::before { display: none; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--red) center / cover no-repeat; color: #fff; font: 400 16px "Special Elite", monospace;
  box-shadow: 0 0 0 2px var(--paper);
}
.avatar.big { width: 120px; height: 120px; font-size: 54px; box-shadow: 0 0 0 4px var(--paper), 0 16px 30px rgba(0,0,0,.45); }

/* message bubble */
.bubble { position: fixed; right: 20px; bottom: 20px; z-index: 29; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bubble-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; order: 2;
  background: var(--red); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 0 3px rgba(239,230,210,.12);
  transition: transform .15s ease, background .15s ease;
}
.bubble-btn:hover { transform: scale(1.06); background: var(--red-hot); }
.bubble-btn svg { width: 24px; height: 24px; }
.bubble-card {
  order: 1; width: min(340px, calc(100vw - 40px)); background: var(--paper); color: var(--ink);
  border-radius: 10px; padding: 24px 22px 20px; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.6);
  transform: rotate(-.6deg); animation: rise .25s ease both;
}
.bubble-card .pin { top: -9px; }
.bubble-card h3 { margin: 0 0 4px; font-size: 21px; font-weight: 400; }
.bubble-sub { margin: 0 0 14px; font-size: 13.5px; color: #6b5d52; }
.bubble-card .field { margin-bottom: 12px; }
.field textarea {
  font: 15px/1.45 Inter, sans-serif; padding: 10px 12px; border-radius: 8px; border: 1px solid #c7b99d;
  background: #fbf7ee; color: var(--ink); resize: vertical; min-height: 90px;
}
.field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.bubble-card .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body:has(.cookie) .bubble { bottom: 96px; }

/* profile */
.profile { width: min(760px, 100% - 32px); margin: 0 auto; padding: 56px 0 88px; }
.dossier {
  background: var(--paper); color: var(--ink); border-radius: 10px; padding: 36px; position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.dossier .stamp {
  position: absolute; right: 26px; top: 22px; transform: rotate(8deg); border: 3px solid var(--red); color: var(--red);
  padding: 4px 12px; font: 400 16px "Special Elite", monospace; letter-spacing: .12em; opacity: .8;
}
.dossier-top { display: flex; gap: 28px; align-items: center; margin-bottom: 28px; }
.dossier-top h1 { margin: 0; font: 400 34px/1.1 "Special Elite", monospace; word-break: break-word; }
.dossier-top .sub { color: #6b5d52; font-size: 14px; margin-top: 6px; }
.avatar-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn-paper { background: none; color: var(--ink); border-color: rgba(34,26,22,.25); }
.btn-paper:hover { background: rgba(34,26,22,.06); }
.dossier hr { border: 0; border-top: 2px dashed rgba(34,26,22,.2); margin: 26px 0; }
.dossier .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts div { background: rgba(34,26,22,.05); border-radius: 8px; padding: 12px 14px; }
.facts b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #8b7d71; }
.facts span { font-size: 15px; word-break: break-all; }
@media (max-width: 700px) {
  .dossier { padding: 26px 20px; }
  .dossier-top { flex-direction: column; align-items: flex-start; }
  .facts, .dossier .row { grid-template-columns: 1fr; }
}

/* google sign-in */
#google-btn { display: flex; justify-content: center; min-height: 44px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #8b7d71; font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid rgba(34,26,22,.18); }
