/* snakube.talhaturhan.com — the game's arena theme (apps/mobile/assets/brand/tokens/brand.json). */
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Fredoka_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Fredoka_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Inter_600SemiBold.ttf') format('truetype');
}

:root {
  --void: #1e1650;
  --floor: #6e5fb8;
  --groove: #4e3f92;
  --panel: #251d5e;
  --border: #3b3190;
  --ink: #ffffff;
  --sub: #c9c3f5;
  --primary: #7fe3d2;
  --primary-edge: #3fb8a6;
  --primary-ink: #1e1a4a;
  --coin: #ffd95a;
  --badge: #ff4d6d;
  --wall: #ff7ac8;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 122, 200, 0.18), transparent 55%),
    linear-gradient(var(--void), #2a1f6e 60%, var(--void));
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* The arena floor: a faint tile grid behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(110, 95, 184, 0.14) 2px, transparent 2px),
    linear-gradient(90deg, rgba(110, 95, 184, 0.14) 2px, transparent 2px);
  background-size: 56px 56px;
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}

a {
  color: var(--primary);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coin);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}
h2 {
  font-size: 1.45rem;
  margin-top: 1.6em;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.4em;
}

.wrap {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.3rem 'Fredoka', sans-serif;
}
.brand img {
  width: 40px;
  height: 40px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nav a {
  color: var(--sub);
  text-decoration: none;
  font: 600 0.95rem 'Fredoka', sans-serif;
  padding: 8px 12px;
  border-radius: 12px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

/* Panels */
.panel {
  background: rgba(37, 29, 94, 0.88);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 20px;
}
.muted {
  color: var(--sub);
}
.small {
  font-size: 0.9rem;
}

/* Chunky buttons (13-ui-screens.md: a 4 px darker base) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  font: 700 1.1rem 'Fredoka', sans-serif;
  text-decoration: none;
  color: var(--primary-ink);
  background: var(--primary);
  box-shadow: 0 4px 0 var(--primary-edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-edge);
}
.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid var(--border);
}

/* Landing */
.hero {
  text-align: center;
  padding-top: 8px;
}
.hero img.logo {
  width: min(220px, 55vw);
  height: auto;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--sub);
  max-width: 34ch;
  margin: 0.4em auto 1.2em;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(37, 29, 94, 0.88);
  font: 600 0.95rem 'Fredoka', sans-serif;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  display: block;
  padding: 18px;
  border-radius: 16px;
  background: rgba(30, 22, 80, 0.55);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
}
.card strong {
  display: block;
  font: 700 1.1rem 'Fredoka', sans-serif;
  margin-bottom: 2px;
}
.card span {
  color: var(--sub);
  font-size: 0.92rem;
}
a.card:hover {
  border-color: var(--primary);
}
.cubes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 4px;
}
.cube {
  width: 44px;
  height: 48px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font: 700 0.95rem 'Fredoka', sans-serif;
  color: var(--primary-ink);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

/* Legal pages */
.lang {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.lang a {
  font: 600 0.95rem 'Fredoka', sans-serif;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--sub);
}
.lang a:hover {
  color: var(--ink);
  border-color: var(--primary);
}
.legal p,
.legal li {
  color: #e9e6ff;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin: 0.25em 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 0.8em 0;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.legal th {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--sub);
}
.table-scroll {
  overflow-x: auto;
}
.date {
  color: var(--sub);
  font-size: 0.92rem;
}
.ad-label {
  display: inline-block;
  font: 600 0.72rem 'Inter', sans-serif;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid var(--sub);
  color: var(--sub);
}

/* Footer */
footer {
  padding: 28px 0 40px;
  text-align: center;
  color: var(--sub);
  font-size: 0.9rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-bottom: 8px;
}
footer a {
  color: var(--sub);
}

/* Room link */
.code {
  font: 700 clamp(2.4rem, 10vw, 3.4rem) 'Fredoka', sans-serif;
  letter-spacing: 0.25em;
  margin: 0.2em 0 0.4em;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* Small phones: keep the header on one line. */
@media (max-width: 480px) {
  .brand {
    font-size: 1.1rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .nav a {
    padding: 6px 7px;
    font-size: 0.88rem;
  }
}
