:root {
  --ink: #2B1810;
  --navy: #10162E;
  --navy-2: #1E2850;
  --navy-3: #29335C;
  --gold: #FFC94A;
  --orange: #F28A2E;
  --green: #3CCB5A;
  --green-lo: #23913B;
  --sky: #5FB4FF;
  --paper: #FFF6E6;
  --text: #EEF1FF;
  --muted: #AEB6DA;
  --title: 'Fredoka', 'Fredoka One', system-ui, sans-serif;
  --body: 'Rubik', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); font-weight: 600; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-family: var(--title); font-weight: 700; line-height: 1.1; }

/* Cartoon lettering: ink outline and a hard drop shadow, like the game's logo */
.toon {
  color: var(--gold);
  -webkit-text-stroke: 0;
  text-shadow:
    3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 8px 0 var(--ink);
}
.toon.white { color: #fff; }

/* Sticker card: navy plate with an ink rim and a hard shadow */
.card {
  background: var(--navy-2);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: inset 0 4px 0 var(--navy-3), 0 6px 0 var(--ink);
  padding: 22px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--title); font-size: 1.3rem; font-weight: 700;
  color: #fff; text-decoration: none; text-shadow: 0 2px 0 var(--green-lo);
  background: var(--green);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: inset 0 -6px 0 var(--green-lo), 0 5px 0 var(--ink);
  padding: 12px 26px 16px;
  transition: transform .08s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 var(--green-lo), 0 2px 0 var(--ink); }
.btn.alt { background: var(--paper); color: var(--ink); text-shadow: none; box-shadow: inset 0 -6px 0 #E3CFA8, 0 5px 0 var(--ink); }

/* Top bar */
.top { background: var(--navy-2); border-bottom: 4px solid var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--title); font-size: 1.35rem; color: var(--gold); }
.logo img { width: 38px; height: 38px; border: 3px solid var(--ink); border-radius: 10px; }
.top nav a { color: var(--text); font-weight: 600; text-decoration: none; margin-left: 18px; font-size: .95rem; }
.top nav a:hover { color: var(--gold); }

footer { background: #0A0E20; color: var(--muted); text-align: center; padding: 28px 16px; font-size: .9rem; border-top: 4px solid var(--ink); }

@media (max-width: 600px) {
  .top nav a { margin-left: 12px; font-size: .85rem; }
  .logo span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
