/* ===== Fonts (self-hosted, latin + latin-ext for Turkish) ===== */
@font-face {
  font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/baloo2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Tokens ===== */
:root {
  --bg: #0b0d14;
  --bg-raised: #131726;
  --ink: #eef3ff;
  --ink-soft: #c9d3ee;
  --muted: #9aa6c4;
  --line: #232a3d;
  --blue-1: #22b8ec; --blue-2: #1380e6;
  --orange-1: #f6b026; --orange-2: #f0501a;
  --ice: #c8f8fc;
  --sns-1: #2a5a43; --sns-2: #14231c; --sns-orange: #ff7a2e; --sns-yellow: #f7e23a;
  --vin-1: #4a3c36; --vin-2: #2a201d; --vin-teal: #42c4a8; --vin-green: #86d272; --vin-amber: #efbb5a;
  --font-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 28px;
  --wrap: 1120px;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-1); outline-offset: 3px; border-radius: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 20, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: none; margin-left: auto; gap: 24px; }
.nav__links a {
  text-decoration: none; font-weight: 800; font-size: .95rem; color: var(--ink-soft);
  transition: color .2s;
}
.nav__links a:hover { color: var(--ice); }
.lang {
  margin-left: auto; display: inline-flex; padding: 3px;
  border: 1.5px solid #39415a; border-radius: 999px;
}
.nav__links + .lang { margin-left: 0; }
.lang button {
  font: 800 .78rem/1 var(--font-body); letter-spacing: .04em;
  color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  padding: 7px 11px; border-radius: 999px; min-width: 40px;
}
.lang button[aria-pressed="true"] {
  color: #fff; background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
}
@media (min-width: 640px) {
  .nav__inner { padding: 12px 24px; }
  .nav__links { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 16px 44px;
  background:
    radial-gradient(520px 260px at 22% 0%, rgba(34, 184, 236, .22), transparent 70%),
    radial-gradient(520px 260px at 80% 10%, rgba(240, 80, 26, .18), transparent 70%);
}
.hero__title {
  position: relative; z-index: 1;
  font-size: clamp(2.1rem, 7vw, 3.8rem); max-width: 14em; margin: 0 auto;
  letter-spacing: .005em;
}
.hero__title span { display: inline; }
.hero__after { display: block !important; }
.grad {
  background: linear-gradient(90deg, var(--blue-1), var(--orange-1) 55%, var(--orange-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  position: relative; z-index: 1;
  margin: 16px auto 0; max-width: 34em; color: var(--ink-soft); font-weight: 700; font-size: 1.05rem;
}

/* floating shapes, nodding at the two games */
.shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; --r: 0deg; animation: float 7s ease-in-out infinite; }
.ball { border-radius: 50%; }
.ball--orange { width: 64px; height: 64px; left: 5%; top: 16%;
  background: radial-gradient(circle at 35% 30%, #ffb27a, var(--sns-orange) 55%, #c4440f); }
.ball--yellow { width: 26px; height: 26px; left: 16%; bottom: 12%; animation-duration: 8.5s;
  background: radial-gradient(circle at 35% 30%, #fff7a0, var(--sns-yellow) 60%, #c7a90c); }
.ball--orange-sm { width: 18px; height: 18px; right: 30%; top: 22px; animation-duration: 9s; opacity: .8;
  background: radial-gradient(circle at 35% 30%, #ffb27a, var(--sns-orange) 60%); }
.block { border-radius: 8px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.block--teal { width: 22px; height: 60px; right: 7%; top: 18%; --r: 14deg; background: var(--vin-teal); animation-duration: 7.5s; }
.block--amber { width: 22px; height: 22px; right: 18%; bottom: 10%; --r: -12deg; background: var(--vin-amber); animation-duration: 6.5s; }
.block--green { width: 22px; height: 44px; right: 3%; bottom: 26%; --r: -20deg; background: var(--vin-green); animation-duration: 8s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r) + 6deg)); }
}
@media (max-width: 1099px) {
  .ball--orange { width: 46px; height: 46px; left: -12px; top: 14px; }
  .block--teal { right: -6px; top: 16px; height: 48px; }
  .block--green { right: -8px; bottom: 34%; }
  .ball--orange-sm { top: 6px; }
}
@media (max-width: 639px) {
  .shape { opacity: .55; }
  .ball--orange { width: 40px; height: 40px; left: -8px; top: 12px; }
  .block--teal { right: -6px; top: 8px; height: 36px; }
  .ball--orange-sm, .block--green { display: none; }
}

/* ===== Games ===== */
.games { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px 24px; }
.games__grid { display: grid; gap: 20px; }
/* On phones (one column) the game marked "featured" in content.js comes first;
   side by side, content order stays. */
@media (max-width: 759px) {
  .card--featured { order: -1; }
}
@media (min-width: 760px) {
  .games { padding: 8px 24px 32px; }
  .games__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 24px; border-radius: var(--radius-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card::before { content: ""; position: absolute; z-index: -1; opacity: .35; }
.card--sns {
  background: linear-gradient(150deg, var(--sns-1), var(--sns-2));
  box-shadow: inset 0 0 0 2px rgba(255, 122, 46, .35), 0 24px 50px -28px rgba(255, 122, 46, .45);
}
.card--sns::before {
  width: 140px; height: 140px; right: -30px; top: -30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb27a, var(--sns-orange) 60%);
}
.card--sns .card__title { color: var(--sns-orange); }
.card--vin {
  background: linear-gradient(150deg, var(--vin-1), var(--vin-2));
  box-shadow: inset 0 0 0 2px rgba(66, 196, 168, .35), 0 24px 50px -28px rgba(66, 196, 168, .4);
}
.card--vin::before {
  width: 48px; height: 120px; right: 10px; top: -24px; border-radius: 14px;
  background: var(--vin-teal); transform: rotate(18deg);
}
.card--vin .card__title { color: var(--vin-teal); }

.icon {
  width: 112px; height: 112px; border-radius: 24%;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); margin-bottom: 18px;
}
.badge {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
}
.badge--live { background: var(--sns-orange); color: #1a0d05; }
.badge--soon { background: var(--vin-amber); color: #2a1d0a; }
.card__title { font-size: 1.75rem; margin: 10px 0 8px; }
.card__desc { color: rgba(255, 255, 255, .86); margin-bottom: 20px; flex: 1; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-block; border-radius: 10px; transition: transform .2s; }
.store:hover { transform: scale(1.04); }
.store img { height: 48px; width: auto; }

.countdown { display: flex; gap: 8px; margin-bottom: 16px; }
.countdown__cell {
  background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 8px 12px; min-width: 62px; text-align: center;
}
.countdown__num { display: block; font: 700 1.5rem/1.1 var(--font-head); color: var(--vin-amber); }
.countdown__label { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #d9ccc5; }

.btn-pre {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; text-decoration: none;
  font-weight: 900; color: #1d1614;
  background: linear-gradient(90deg, var(--vin-teal), var(--vin-green));
  transition: transform .2s, filter .2s;
}
a.btn-pre:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-pre::before { content: "🔔"; }
.btn-pre.is-disabled {
  color: var(--vin-amber); background: rgba(239, 187, 90, .12);
  border: 1.5px dashed rgba(239, 187, 90, .55); cursor: default;
}
.btn-pre.is-disabled::before { content: "⏳"; }

.noscript-list { margin: 0; padding: 20px 24px; background: var(--bg-raised); border-radius: var(--radius-card); }

/* ===== About & contact ===== */
.info { max-width: 720px; margin: 0 auto; padding: 48px 16px 8px; text-align: center; }
.info h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin-bottom: 12px; }
.info p { color: var(--ink-soft); font-size: 1.05rem; }
.info--contact { padding-bottom: 56px; }
.email {
  display: inline-block; margin-top: 20px; padding: 12px 22px; border-radius: 999px;
  font-weight: 900; text-decoration: none; color: var(--ink); word-break: break-all;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(90deg, var(--blue-1), var(--orange-1), var(--orange-2)) border-box;
  border: 2px solid transparent;
  transition: transform .2s;
}
.email:hover { transform: translateY(-2px); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 16px 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; text-align: center;
}
.footer__logo { height: 34px; width: auto; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ice); text-decoration: underline; }
.footer__copy { flex-basis: 100%; }

/* ===== Privacy pages ===== */
.legal { --accent: var(--sns-orange); max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; }
.legal--vin { --accent: var(--vin-teal); }
.legal__back {
  display: inline-block; margin-bottom: 24px; font-weight: 800; text-decoration: none; color: var(--ink-soft);
}
.legal__back::before { content: "← "; }
.legal__back:hover { color: var(--accent); }
.legal article {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px 20px; color: var(--ink-soft); line-height: 1.7; overflow-wrap: anywhere;
}
.legal article + article { margin-top: 24px; }
.legal h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--ink); margin-bottom: 10px; }
.legal h2 { font-size: 1.3rem; color: var(--accent); margin: 32px 0 10px; scroll-margin-top: 80px; }
.legal h3 { font-size: 1.08rem; color: var(--ink); margin: 22px 0 8px; }
.legal p, .legal ul, .legal ol { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--ink); }
.legal .meta { color: var(--muted); font-size: .92rem; margin-bottom: 4px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
@media (min-width: 640px) { .legal article { padding: 36px 40px; } }

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
