:root {
  --ink: #161414;
  --paper: #ffe14a;
  --card: #fffdf5;
  --muted: #3b3834;
  --red: #ff3b4e;
  --blue: #3aa0ff;
  --pink: #ff4d9a;
  --green: #2fd36a;
  --cyan: #7fe0ff;
  --orange: #ff8a1f;
  --display: "Bangers", "Impact", "Arial Black", system-ui, sans-serif;
  --sans: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
  --stroke: 3.5px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 5px 5px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.dots {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image: radial-gradient(#161414 1.15px, transparent 1.2px);
  background-size: 14px 14px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mascot {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3.15rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: #fffdf5;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}

.nav-links { display: flex; gap: 10px; }

.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--card);
  border: var(--stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.nav-chip:hover { background: var(--cyan); }
.nav-chip[aria-current="page"] { background: var(--green); }

.hero {
  padding: 10px 0 8px;
  max-width: 46rem;
}

.hero h1,
.page-intro h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-shadow: 4px 4px 0 #fffdf5, 7px 7px 0 var(--ink);
}

.speech {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 16px 20px 18px;
  background: var(--card);
  border: var(--stroke);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  max-width: 36rem;
}

.speech::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -16px;
  width: 22px;
  height: 22px;
  background: var(--card);
  border-right: var(--stroke);
  border-bottom: var(--stroke);
  transform: rotate(45deg);
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 26px 2px 22px;
  padding-right: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::after {
  content: "";
  flex: 0 0 12px;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--card);
  border: var(--stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.tab:nth-child(1) { transform: rotate(-2deg); }
.tab:nth-child(2) { transform: rotate(1.5deg); }
.tab:nth-child(3) { transform: rotate(-1.5deg); }
.tab:nth-child(4) { transform: rotate(2deg); }
.tab:nth-child(5) { transform: rotate(-1deg); }

.tab:hover { background: #fff3a3; }
.tab[aria-selected="true"] {
  background: var(--red);
  color: #fffdf5;
  -webkit-text-stroke: 0;
}
.tab[aria-selected="true"]:nth-child(2) { background: var(--pink); }
.tab[aria-selected="true"]:nth-child(3) { background: var(--orange); }
.tab[aria-selected="true"]:nth-child(4) { background: var(--blue); color: var(--ink); }
.tab[aria-selected="true"]:nth-child(5) { background: var(--green); color: var(--ink); }

.tab:focus-visible,
.nav-chip:focus-visible,
.card:focus-visible,
.feature:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.status {
  font-weight: 700;
  padding: 36px 0;
}

.status.error { color: #9b1020; }

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  margin-bottom: 28px;
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  position: relative;
}

.feature-media {
  position: relative;
  min-height: 250px;
  background:
    repeating-linear-gradient(45deg, #7fe0ff, #7fe0ff 12px, #ffe14a 12px, #ffe14a 24px);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 30px 28px;
  gap: 12px;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.sticker {
  display: inline-block;
  padding: 4px 10px 5px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-6deg);
  background: var(--orange);
}

.sticker.gaming { background: var(--pink); transform: rotate(-5deg); }
.sticker.cartoons { background: var(--orange); transform: rotate(5deg); }
.sticker.hardware { background: var(--blue); transform: rotate(-3deg); }

.burst {
  position: absolute;
  top: -12px;
  left: 16px;
  z-index: 2;
  background: var(--red);
  color: #fffdf5;
  font-family: var(--display);
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 18px 22px 16px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-8deg);
}

.feature-body h2,
.card-body h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.feature-body h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.feature:hover h2,
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.read-on {
  margin-top: 6px;
  display: inline-flex;
  align-self: flex-start;
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 56px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease;
}

.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }

.card:nth-child(3n+1) { transform: rotate(-0.4deg); }
.card:nth-child(3n+2) { transform: rotate(0.5deg); }
.card:nth-child(3n) { transform: rotate(-0.3deg); }
.card:nth-child(3n+1):hover,
.card:nth-child(3n+2):hover,
.card:nth-child(3n):hover { transform: translate(-2px, -2px) rotate(0deg); }

.card-media {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(-12deg, #ffd6ea, #ffd6ea 10px, #cdebff 10px, #cdebff 20px);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px;
  flex: 1;
}

.card-body h3 { font-size: 1.15rem; }

.card-meta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
}

.coming {
  text-align: center;
  padding: 48px 22px 56px;
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 32px;
  box-shadow: var(--shadow);
  margin: 8px 0 56px;
  position: relative;
}

.coming::before {
  content: "●  ●  ●";
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  margin-bottom: 10px;
}

.coming h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.coming p {
  margin: 0 auto;
  max-width: 28rem;
  font-weight: 600;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--ink);
  background: #fff3a3;
  padding: 22px 0 36px;
  font-weight: 600;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.prose {
  max-width: 42rem;
  margin-bottom: 64px;
}

.panel {
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px 24px 8px;
}

.prose p { margin: 0 0 16px; font-size: 1.08rem; }
.prose a {
  color: #0b4db0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skeleton .feature-body h2,
.skeleton .card-body h3 {
  color: transparent;
  background: #efe7d1;
  border-radius: 10px;
}
.skeleton .feature-body h2 { min-height: 3.2rem; }
.skeleton .card-body h3 { min-height: 2.8rem; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 210px; aspect-ratio: 16 / 9; }
  .feature-body { padding: 28px 20px 22px; }
  .mascot { width: 62px; height: 62px; }
}

@media (max-width: 620px) {
  .wrap { width: min(var(--max), calc(100% - 20px)); }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .wordmark { font-size: 1.85rem; -webkit-text-stroke: 4px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
  .site-header { padding-top: 12px; }
  .mascot { width: 52px; height: 52px; }
  .hero h1 { text-shadow: 3px 3px 0 #fffdf5, 5px 5px 0 var(--ink); }
  .card:nth-child(n) { transform: none; }
  .tab { padding: 7px 11px; font-size: 0.92rem; min-height: 40px; transform: none; }
  .tabs { gap: 8px; flex-wrap: wrap; overflow: visible; padding-right: 0; }
  .nav-chip { padding: 6px 12px; min-height: 40px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
