:root {
  --sky-top: #9fe3ff;
  --sky: #e9f8ff;
  --ink: #4a2511;          /* chocolate: main text, high contrast */
  --muted: #7a5a48;
  --card: #ffffff;
  --blue: #1e7be0;
  --orange: #f2661d;
  --purple: #8a3fe8;
  --mint: #0a7f5e;
  --tile-top: #ffc65a;
  --tile-bot: #ff9b2a;
  --tile-edge: #b86424;
  --shadow: 0 6px 22px rgba(74, 37, 17, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--sky);
  line-height: 1.55;
}

a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 37, 17, 0.08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.topbar nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 500; }
.topbar nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(159, 227, 255, 0.55) 0%, rgba(233, 248, 255, 0.4) 70%, var(--sky) 100%),
    url("images/pattern.jpg") center / 420px repeat;
  text-align: center;
  padding: 52px 0 44px;
  overflow: hidden;
}
.hero .logo { width: min(620px, 92%); height: auto; display: block; margin: 0 auto; }
.hero .mascot { width: min(290px, 60%); height: auto; display: block; margin: 16px auto 0; animation: bob 3s ease-in-out infinite; }
.hero h1 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 600; margin: 18px 0 8px; }
.hero p.lead { color: var(--muted); font-size: clamp(17px, 2.4vw, 21px); max-width: 640px; margin: 0 auto 26px; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero .mascot { animation: none; } }

.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  min-width: 210px; padding: 10px 22px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
}
.store small { font-size: 12px; color: #c9c9c9; }
.store strong { font-size: 20px; font-weight: 600; }
.store.soon { opacity: 0.88; cursor: default; }
.badge-date {
  display: inline-block; margin-top: 18px; padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot)); color: var(--ink); font-weight: 600;
  border: 2px solid var(--tile-edge);
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; text-align: center; margin: 0 0 8px; }
section .sub { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 620px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border-radius: 22px; padding: 24px; text-align: center; box-shadow: var(--shadow); }
.step h3 { margin: 14px 0 6px; font-weight: 600; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }
.num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; font-weight: 600; color: #fff; background: var(--blue);
}

/* letter tiles, like in the game: light orange, warm-brown edge, chocolate letters */
.tiles { display: flex; gap: 8px; justify-content: center; margin: 10px 0 12px; }
.tile {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 600; font-size: 26px; color: var(--ink);
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bot));
  border: 3px solid var(--tile-edge);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.35);
}
.trophies { display: flex; gap: 6px; justify-content: center; margin: 6px 0 8px; }
.trophies img { width: 64px; height: 64px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--card); border-radius: 22px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
.feature .icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 25px; font-weight: 600; color: #fff; }
.feature h3 { margin: 2px 0 4px; font-weight: 600; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }
.i-blue { background: var(--blue); } .i-orange { background: var(--orange); } .i-purple { background: var(--purple); }
.i-mint { background: var(--mint); } .i-pink { background: #b5179e; } .i-tile { background: linear-gradient(180deg, var(--tile-top), var(--tile-bot)); color: var(--ink) !important; border: 3px solid var(--tile-edge); }

.themes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.swatch { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink); border: 1px solid rgba(74, 37, 17, 0.12); }
.sw-peach { background: linear-gradient(90deg, #ffe3c7, #fff6ec); }
.sw-sky { background: linear-gradient(90deg, #9fe3ff, #e9f8ff); }
.sw-candy { background: linear-gradient(90deg, #e6d9ff, #ffe1f0); }
.sw-grape { background: linear-gradient(90deg, #7b5cff, #b07cff); color: #fff; }

.contact { text-align: center; background: var(--card); border-radius: 26px; padding: 36px 24px; box-shadow: var(--shadow); }
.contact img { width: 110px; height: auto; }
.contact a.mail { font-size: 21px; font-weight: 600; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: var(--muted); }
footer .links a { margin: 0 8px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 20px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 600; margin: 0 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 24px; font-weight: 600; margin: 36px 0 8px; text-align: left; }
.legal h3 { font-size: 19px; font-weight: 600; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.summary { background: var(--card); border-left: 5px solid var(--orange); border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow); }
.summary ul { margin: 6px 0 0; }
table.data { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; background: var(--card); border-radius: 12px; overflow: hidden; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(74, 37, 17, 0.1); }
table.data th { color: var(--orange); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .steps, .features { grid-template-columns: 1fr; }
  .topbar nav a.hide-sm { display: none; }
  section { padding: 44px 0; }
}
