:root {
  --ink: #1e1e2f;
  --paper: #fff;
  --bg: #f4f7fe;
  --pink: #ff4a85;
  --blue: #00d2ff;
  --yellow: #ffd166;
  --green: #06d6a0;
  --purple: #b5179e;
  --orange: #ff9f1c;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 12px 12px 0 var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
  background-size: 24px 24px;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  line-height: .95;
  letter-spacing: 0;
}

p,
li {
  color: #475569;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.65;
}

ul {
  padding-left: 22px;
}

.app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--paper);
  border-right: 4px solid var(--ink);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 102px;
  padding: 20px;
  overflow: hidden;
  background: var(--blue);
  border-bottom: 4px solid var(--ink);
}

.brand::before,
.stripe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.22), rgba(255,255,255,.22) 10px, transparent 10px, transparent 20px);
  pointer-events: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 214px;
  max-width: 100%;
  filter: drop-shadow(3px 3px 0 rgba(30,30,47,.45));
}

.menu-close {
  display: none;
  margin-left: auto;
}

.nav-scroll {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 30px;
  padding: 22px 16px;
  overflow: auto;
}

.kicker {
  display: block;
  padding: 0 8px 10px;
  color: #94a3b8;
  font: 900 12px/1 "Fredoka", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav a,
.nav button,
.button {
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav a,
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  color: var(--ink);
  text-align: left;
  background: #fff;
}

.nav a:hover,
.nav button:hover,
.nav .active {
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translateY(-2px);
}

.nav .active {
  color: #fff;
  background: var(--pink);
}

.badge {
  margin-left: auto;
  padding: 2px 7px;
  color: #fff;
  font-size: 11px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 102px;
  padding: 14px 26px;
  background: #fff;
  border-bottom: 4px solid var(--ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  font-size: 25px;
  font-weight: 900;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.icon-button {
  width: 52px;
  height: 52px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  font: 900 24px/1 "Fredoka", sans-serif;
}

.search {
  flex: 0 1 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(320px, 32vw);
  min-width: 220px;
  padding: 12px 18px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 999px;
  transition: box-shadow .18s ease, transform .18s ease;
}

.search:focus-within {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-2px);
}

.search input {
  width: 100%;
  min-width: 0;
  font-size: 17px;
  font-weight: 900;
  border: 0;
  outline: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 8px 12px;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ink);
}

.coin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #09051b;
  border: 4px solid var(--ink);
  border-radius: 16px;
}

.coin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.balance-pill small {
  display: block;
  font: 900 10px/1 "Fredoka", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}

.balance-pill strong {
  display: block;
  font: 900 22px/1 "Fredoka", sans-serif;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.profile[hidden] {
  display: none !important;
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 31px;
  background: var(--blue);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 22px;
  color: var(--ink);
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  text-align: center;
  background: #fff;
}

.button.pink {
  color: #fff;
  background: var(--pink);
}

.button:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translateY(2px);
}

.main {
  padding: 28px;
  overflow: hidden;
}

.content-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 300px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  color: #fff;
  background: var(--pink);
  border: 4px solid var(--ink);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.content-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(760px, 110vw);
  height: max(760px, 110vw);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.2) 0deg 12deg, transparent 12deg 24deg);
  transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(circle, #000 0 62%, transparent 75%);
  mask-image: radial-gradient(circle, #000 0 62%, transparent 75%);
  animation: heroRays 44s linear infinite;
  pointer-events: none;
}

.content-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(0,210,255,.42), transparent 20rem), linear-gradient(90deg, rgba(30,30,47,.28), transparent 58%);
  pointer-events: none;
}

.content-hero > * {
  position: relative;
  z-index: 1;
}

.content-hero h1 {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(48px, 7vw, 86px);
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--ink);
}

.content-hero h1 span {
  color: var(--yellow);
}

.content-hero p {
  max-width: 720px;
  margin-top: 16px;
  color: #fff;
  font-size: 20px;
  text-shadow: 2px 2px 0 var(--ink);
}

.hero-badge {
  display: grid;
  place-items: center;
  width: clamp(96px, 13vw, 150px);
  height: clamp(96px, 13vw, 150px);
  color: var(--ink);
  font-size: clamp(42px, 6vw, 74px);
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(5deg);
}

.label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 9px 15px;
  color: var(--ink);
  font: 900 13px/1 "Fredoka", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
}

.content-card,
.faq-list article,
.notice {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.content-card {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 42px);
}

.content-card h2,
.faq-list h2 {
  margin: 32px 0 8px;
  font-size: 30px;
}

.content-card h2:first-child,
.faq-list h2:first-child {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.faq-list article {
  padding: 24px;
}

.faq-list article h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.notice {
  margin-top: 26px;
  padding: 18px;
  color: var(--ink);
  font-weight: 900;
  background: var(--yellow);
}

.footer {
  display: grid;
  gap: 18px;
  margin-top: 48px;
  padding: 26px;
  color: #fff;
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 30px 30px 0 0;
}

.footer strong {
  font: 900 28px/1 "Fredoka", sans-serif;
  text-shadow: 2px 2px 0 #000;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--yellow);
  font-weight: 900;
}

.fine {
  max-width: 980px;
  margin: 0;
  color: #cbd5e1;
  font-weight: 800;
}

@keyframes heroRays {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 1420px) {
  .profile .name {
    display: none;
  }
}

@media (max-width: 900px) {
  .app {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    display: none;
    width: 280px;
    box-shadow: 14px 0 0 rgba(30,30,47,.28);
  }

  .sidebar.open {
    display: flex;
  }

  .menu-toggle,
  .menu-close {
    display: grid;
    place-items: center;
  }

  .topbar {
    min-height: 86px;
    padding: 12px 16px;
  }

  .search {
    display: none;
  }

  .main {
    padding: 18px 14px;
  }

  .content-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .balance-pill {
    min-width: 0;
    padding: 7px;
  }

  .balance-pill small,
  .profile {
    display: none;
  }

  .coin {
    width: 36px;
    height: 36px;
  }

  .content-hero h1 {
    font-size: 45px;
  }
}
