/* Avalanche Kid website: plain CSS, no external fonts or assets. Colors follow the game (sky blue, navy panels, gold). */
:root {
  --bg: #eaf4ff;
  --bg2: #ffffff;
  --text: #13213f;
  --muted: #4b5b7a;
  --accent: #2f73d9;
  --gold: #b8860b;
  --gold-bg: #ffd140;
  --card: rgba(255, 255, 255, 0.86);
  --border: rgba(19, 33, 63, 0.12);
  --flake: rgba(255, 255, 255, 0.95);
  --draft-bg: #fff3c4;
  --draft-text: #5a4500;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1530;
    --bg2: #141c38;
    --text: #e8f0ff;
    --muted: #a9b8d6;
    --accent: #7fb2ff;
    --gold: #ffd140;
    --gold-bg: #ffd140;
    --card: rgba(20, 28, 56, 0.88);
    --border: rgba(232, 240, 255, 0.14);
    --flake: rgba(255, 255, 255, 0.35);
    --draft-bg: #3d3210;
    --draft-text: #ffe9a3;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* falling-snow dots, drawn with gradients only */
  background-image:
    radial-gradient(circle at 20% 30%, var(--flake) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, var(--flake) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 40% 80%, var(--flake) 0 2.5px, transparent 3.5px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-size: 140px 140px, 90px 90px, 210px 210px, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--gold-bg); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg2); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.top { padding: 12px 16px; }
.nav {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.links a { text-decoration: none; color: var(--text); padding: 4px 2px; }
.links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.links a.lang { border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 0.92rem; }

main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 8px 16px 40px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px clamp(18px, 4vw, 36px); box-shadow: 0 10px 30px rgba(10, 30, 70, 0.08);
}
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.08rem; margin: 1.4em 0 0.4em; }
p, li { overflow-wrap: anywhere; }
ul, ol { padding-left: 1.3em; }
li { margin: 0.25em 0; }
code { font-size: 0.92em; background: var(--border); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--muted); }

/* home */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.hero img { width: 148px; height: 148px; border-radius: 32px; box-shadow: 0 10px 26px rgba(10, 30, 70, 0.25); }
.tagline { font-size: 1.15rem; color: var(--muted); margin: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.store {
  display: inline-flex; flex-direction: column; min-width: 190px; padding: 10px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg2); line-height: 1.25;
}
.store small { opacity: 0.75; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.store strong { font-size: 1.1rem; }
.store[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.soon { display: inline-block; align-self: flex-start; white-space: nowrap; background: var(--gold-bg); color: #13213f; font-weight: 800; border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; }
.features { padding-left: 1.1em; }
.more { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }

/* FAQ */
details { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: var(--bg2); }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 6px; }

.draft {
  background: var(--draft-bg); color: var(--draft-text); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px;
  font-weight: 600; border: 2px dashed currentColor;
}
.foot { text-align: center; padding: 18px 16px 28px; color: var(--muted); font-size: 0.92rem; }
.foot p { margin: 4px 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero img { width: 120px; height: 120px; }
  .stores { justify-content: center; }
  .store { min-width: 0; flex: 1 1 150px; padding: 10px 12px; }
}

/* language menu: <details>, no JavaScript */
.langs { position: relative; border: 0; padding: 0; margin: 0; background: none; }
.langs[open] summary { margin-bottom: 0; }
.langs summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 0.92rem; font-weight: 400;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: "▾"; font-size: 0.8em; color: var(--muted); }
.langs summary:focus-visible { outline: 3px solid var(--gold-bg); outline-offset: 2px; }
.globe { width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; display: inline-block; }
.globe::before { content: ""; position: absolute; inset: -1.6px 3px; border: 1.6px solid currentColor; border-radius: 50%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  min-width: 210px; max-height: 70vh; overflow-y: auto;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 30px rgba(10, 30, 70, 0.2);
}
.langs li { margin: 0; }
.langs ul a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.langs ul a:hover { background: var(--border); }
.langs ul a[aria-current] { font-weight: 700; color: var(--accent); }
.langs ul a[aria-current]::after { content: " ✓"; }
.tag { font-size: 0.7em; font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 0 3px; margin-left: 4px; vertical-align: 1px; opacity: 0.7; }
@media (max-width: 560px) { .langs ul { right: auto; left: 0; } }

/* studio home: the list of games */
h2.first { margin-top: 0; }
.games { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.games li { margin: 0; }
.game { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg2); color: var(--text); text-decoration: none; }
.game:hover { border-color: var(--accent); }
.game img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.game strong { display: block; font-size: 1.15rem; }
.game small { color: var(--muted); font-size: 0.95rem; }
.foot .by a { color: inherit; }
