@font-face {
  font-family: Inter;
  src: url("assets/inter-turkish-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+011E-011F, U+0130-0131, U+015E-015F;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ground: #080f1b;
  --panel: #111e2d;
  --input: #0b1522;
  --ink: #f4f8fc;
  --muted: #afc3d2;
  --line: #324557;
  --field-line: #617b8f;
  --mint: #65edc1;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 400 1rem/1.65 Inter, system-ui, sans-serif; }
::selection { background: var(--mint); color: var(--ground); }
a { color: var(--mint); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.55rem); line-height: 1.16; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
strong { color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }
[hidden] { display: none !important; }

.frame { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; top: .75rem; left: .75rem; z-index: 3; padding: .5rem 1rem; background: var(--mint); color: var(--ground); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; column-gap: 1.5rem; border-bottom: 1px solid var(--line); }
.identity, .menu { display: flex; align-items: center; gap: 1rem; }
.identity > span { color: var(--muted); line-height: 1.25; padding-left: .9rem; border-left: 1px solid var(--line); white-space: nowrap; font-size: .85rem; font-weight: 630; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: clamp(105px, 13vw, 150px); }
.menu > a:not(.button) { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; }
.menu > a:not(.button):hover { color: var(--ink); text-decoration: underline; }

.hero { display: grid; row-gap: 1.7rem; padding-block: 2.35rem 2.8rem; }
.hero-intro h1 { font-size: clamp(2.85rem, 7.5vw, 6rem); font-weight: 820; letter-spacing: -.065em; line-height: .99; }
.hero-intro p { margin-top: 1.05rem; max-width: 43ch; color: var(--muted); font-size: clamp(1rem, 1.85vw, 1.22rem); }
.hero-image { margin: 0; border-radius: 14px; overflow: clip; align-self: end; background: var(--panel); }
.hero-image img { width: 100%; min-height: 155px; object-fit: cover; }

.entry { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.1rem, 2.6vw, 2rem); min-width: 0; }
.entry > h2 { font-size: 1.6rem; letter-spacing: -.025em; }
.preview-note { margin-top: .45rem; color: var(--muted); font-size: .85rem; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 4px; margin-block: 1.25rem; background: var(--input); border: 1px solid var(--line); border-radius: 9px; }
.tabs button { color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; min-height: 44px; padding: .25rem; font-size: .85rem; font-weight: 700; line-height: 1.2; }
.tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"] { color: var(--mint); background: #1c3739; border-color: #365656; }
.entry form { display: grid; gap: .5rem; }
.entry form > label { font-weight: 670; font-size: .9rem; }
.entry form > label:not(:first-child) { margin-top: .45rem; }
.entry input { min-width: 0; width: 100%; min-height: 47px; padding: .5rem .7rem; background: var(--input); color: var(--ink); border: 1px solid var(--field-line); border-radius: 7px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 46px; padding: .52rem .9rem; border-radius: 8px; font-size: .89rem; line-height: 1.2; font-weight: 740; text-decoration: none; white-space: nowrap; }
.button.primary { width: 100%; justify-content: center; color: #062219; background: var(--mint); border: 1px solid transparent; margin-top: .5rem; }
.button.primary:hover { background: #9ef6da; }
.button.secondary { border: 1px solid var(--line); color: var(--ink); }
.button.secondary:hover { border-color: var(--mint); }
.small-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .85rem; }
.preview-note { color: var(--muted); }
.guest-panel > p { margin-bottom: .8rem; color: var(--muted); }
.feedback { color: var(--mint); font-size: .87rem; }

.guide, .faq { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4rem); }
.section-heading, .game-features, .faq { display: grid; gap: 1.15rem; }
.section-heading > p, .game-features p, .questions p { color: var(--muted); }
.game-features { margin-top: 1.7rem; }
.game-features article { border-top: 1px solid var(--line); padding-top: 1rem; }
.game-features p { margin-top: .45rem; }
.faq .small-link { margin-top: .55rem; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { cursor: pointer; padding: .85rem .5rem; min-height: 44px; font-weight: 690; }
.questions summary:hover { color: var(--mint); }
.questions summary::marker { color: var(--mint); }
.questions p { max-width: 52ch; padding: 0 .5rem 1rem; }
.site-footer { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; align-items: center; min-height: 70px; border-top: 1px solid var(--line); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .85rem; }

@media (max-width: 645px) {
  .menu > a:not(.button) { display: none; }
  .site-header, .identity { gap: .6rem; }
  .identity > span { padding-left: .55rem; }
  .menu .button { padding-inline: .55rem; }
}
@media (min-width: 700px) {
  .frame { width: min(1200px, calc(100% - 64px)); }
  .game-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 790px) {
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 3.8rem 3.4rem; }
  .entry { grid-column: 2; grid-row: 1 / 3; align-self: start; }
  .hero-image { grid-column: 1; grid-row: 2; }
  .section-heading, .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 6vw, 5rem); }
  .section-heading { align-items: end; }
}

html.playing { overflow: hidden; }
.game-view {
  position: fixed;
  inset: 0 0 auto;
  height: 100vh;
  height: 100dvh;
  background: var(--ground);
}
.game-feedback {
  position: absolute;
  inset: 1rem 1rem auto;
  width: fit-content;
  margin-inline: auto;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: var(--panel);
}
#game-host { height: 100%; }
#game-host iframe { display: block; width: 100%; height: 100%; border: 0; }
button:disabled { opacity: .7; cursor: wait; }
.preview-lobby { display: grid; place-items: center; min-height: 100vh; }
.preview-lobby-content { width: min(480px, calc(100% - 32px)); padding-block: 1rem; }
.preview-lobby-content p { margin-block: .4rem 1rem; color: var(--muted); }
.preview-lobby-content img { border-radius: 10px; }

.guest-entry { margin-top: .85rem; }
.guest-entry .button { width: 100%; justify-content: center; background: transparent; }
.play-links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; margin-top: 1.2rem; }
.play-links a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
