/* ============================================================
   Duno.Games: crayon-sketch meerkat theme
   Palette is lifted from the mascot: lime polka dots, purple
   turtleneck, tan fur, charcoal scribble outlines.
   ============================================================ */

:root {
  --green: #b6d76c;
  --green-dot: #a0c957;
  --green-deep: #4f7a22;
  --purple: #8e4482;
  --purple-dark: #6a3262;
  --purple-dot: #7d3a73;
  --purple-soft: #d9a9cf;
  --tan: #c9b98f;
  --tan-dark: #8f7f58;
  --cream: #f6f0dc;
  --cream-2: #ebe3c5;
  --ink: #38342e;
  --olive: #6d6b2f;

  --wobble: 16px 22px 14px 24px / 22px 14px 24px 16px;
  --wobble-2: 24px 14px 22px 16px / 14px 24px 16px 22px;
  --shadow: 5px 5px 0 var(--ink);

  --font-head: "Gaegu", "Segoe Print", "Comic Sans MS", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--green);
  background-image:
    radial-gradient(circle at 55px 55px, var(--green-dot) 0 36px, transparent 37px),
    radial-gradient(circle at 165px 165px, var(--green-dot) 0 36px, transparent 37px);
  background-size: 220px 220px;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px dashed var(--purple-dark); outline-offset: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(3.2rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1em; }

/* hand-drawn squiggle (echoes the mascot's wobbly mouth) */
h2::after {
  content: ""; display: block; width: 110px; height: 14px; margin-top: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14' viewBox='0 0 30 14'%3E%3Cpath d='M0 7 Q7.5 -1 15 7 T30 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14' viewBox='0 0 30 14'%3E%3Cpath d='M0 7 Q7.5 -1 15 7 T30 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
}

/* ---------- "Paper" surface: wobbly crayon edges, hard shadow ---------- */
.paper { position: relative; isolation: isolate; }
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: var(--shadow);
  filter: url(#rough);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.4em; min-height: 48px;
  font: 700 1.5rem/1 var(--font-head); text-decoration: none; color: var(--cream);
  border: 0; background: none; cursor: pointer;
  transition: transform .15s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--purple); border: 3px solid var(--ink);
  border-radius: var(--wobble-2); box-shadow: 4px 4px 0 var(--ink);
  filter: url(#rough); transition: box-shadow .15s, background .15s;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:hover::before { box-shadow: 6px 6px 0 var(--ink); background: var(--purple-dark); }
.btn:active { transform: translate(3px, 3px); }
.btn:active::before { box-shadow: 1px 1px 0 var(--ink); }
.btn-alt { color: var(--ink); }
.btn-alt::before { background: var(--cream); }
.btn-alt:hover::before { background: var(--cream-2); }
.btn[aria-disabled="true"] { cursor: not-allowed; color: var(--tan-dark); }
.btn[aria-disabled="true"]::before { background: var(--cream-2); box-shadow: 3px 3px 0 var(--tan-dark); border-color: var(--tan-dark); }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn-sm { font-size: 1.3rem; padding: .55em 1.1em; min-height: 42px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 2rem/1 var(--font-head); }
.brand img { border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; }
.brand b { color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  white-space: nowrap; text-decoration: none; font: 700 1.5rem/1 var(--font-head);
  padding: 8px 14px; border-radius: 14px 18px 12px 16px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--green); }
.nav-links .nav-cta { background: var(--purple); color: var(--cream); }
.nav-links .nav-cta:hover { background: var(--purple-dark); }
.nav-count {
  display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: 2px;
  background: var(--ink); color: var(--cream); border-radius: 999px;
  font: 800 .8rem/1.5 var(--font-body); text-align: center; vertical-align: .15em;
}
.nav-toggle {
  display: none; font: 700 1.4rem/1 var(--font-head); color: var(--ink);
  background: var(--green); border: 3px solid var(--ink); border-radius: 12px 16px 12px 18px;
  padding: 8px 14px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px;
  padding-block: clamp(32px, 6vw, 72px) 24px;
}
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 16px;
  background: var(--ink); color: var(--cream);
  font: 700 1.3rem/1.2 var(--font-head);
  border-radius: 14px 20px 12px 18px; transform: rotate(-1.5deg);
}
.hero h1 { text-shadow: 3px 3px 0 var(--cream); }
.lede { font-size: 1.25rem; max-width: 34ch; margin: 22px 0 28px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }

.stats { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 14px 18px; }
.stats li {
  position: relative; isolation: isolate; padding: 8px 18px 6px; text-align: center; min-width: 92px;
}
.stats li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream);
  border: 3px solid var(--ink); border-radius: var(--wobble); filter: url(#rough);
}
.stats li:nth-child(odd) { transform: rotate(-2deg); }
.stats li:nth-child(even) { transform: rotate(1.5deg); }
.stats strong { display: block; font: 700 2.2rem/1 var(--font-head); color: var(--purple); }
.stats span { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.hero-mascot { position: relative; display: flex; flex-direction: column; align-items: center; justify-self: center; }
.mascot-btn {
  position: relative; z-index: 1; border: 0; background: none; padding: 0; cursor: pointer;
  transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent;
  animation: sway 5s ease-in-out infinite;
}
.mascot-btn img { display: block; height: min(62vh, 520px); width: auto; filter: drop-shadow(4px 6px 0 rgba(56, 52, 46, .25)); }
.mascot-btn.pop { animation: stand .5s ease-out; }
.ground {
  position: absolute; bottom: -6px; width: 70%; height: 26px; border-radius: 50%;
  background: rgba(56, 52, 46, .22); filter: url(#rough);
}
.bubble {
  position: relative; z-index: 2; margin: 0 0 -6px; align-self: flex-start;
  max-width: 17ch; padding: 10px 16px; background: var(--cream);
  font: 700 1.35rem/1.15 var(--font-head); text-align: center;
  border: 3px solid var(--ink); border-radius: var(--wobble); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}
.bubble::after {
  content: ""; position: absolute; left: 70%; bottom: -14px; width: 20px; height: 20px;
  background: var(--cream); border: 3px solid var(--ink); border-top: 0; border-left: 0;
  transform: rotate(45deg) skew(10deg, 10deg);
}

@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes stand { 0% { transform: scale(1, 1); } 35% { transform: scale(.96, 1.06); } 70% { transform: scale(1.02, .98); } 100% { transform: scale(1, 1); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 7vw, 84px) 12px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 30px; }
.section-head h2 { text-shadow: 2px 2px 0 var(--cream); }
.section-sub { margin: 0; font-weight: 800; }

.grid { display: grid; gap: 30px; }
.games-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.team-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 700 1.25rem/1 var(--font-head); color: var(--ink); cursor: pointer;
  padding: 8px 16px; background: var(--cream); border: 3px solid var(--ink);
  border-radius: 14px 18px 12px 18px; transition: background .15s, transform .15s;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--purple); color: var(--cream); }

/* ---------- Game cards ---------- */
.game { display: flex; flex-direction: column; padding: 14px; transition: transform .2s; }
.game:nth-child(odd) { transform: rotate(-.6deg); }
.game:nth-child(even) { transform: rotate(.5deg); }
.game:hover { transform: rotate(0) translateY(-4px); }
.game.featured { grid-column: span 2; }
@media (min-width: 861px) {
  .game.featured { flex-direction: row; gap: 18px; }
  .game.featured .thumb { flex: 1.3 1 0; aspect-ratio: auto; min-height: 260px; }
  .game.featured .game-body { flex: 1 1 0; justify-content: center; padding-top: 6px; }
  .game.featured .game-body p:not(.tagline) { flex: 0 1 auto; }
}

.thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 3px solid var(--ink); border-radius: var(--wobble-2); background: var(--tan);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font: 700 clamp(3rem, 9vw, 5rem)/1 var(--font-head); color: rgba(246, 240, 220, .92);
  background-color: var(--ph-a);
  background-image:
    radial-gradient(circle at 25px 25px, var(--ph-b) 0 18px, transparent 19px),
    radial-gradient(circle at 75px 75px, var(--ph-b) 0 18px, transparent 19px);
  background-size: 100px 100px;
  text-shadow: 3px 3px 0 var(--ink);
}
.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 12px;
  font: 700 1.15rem/1.2 var(--font-head);
  background: var(--cream); border: 3px solid var(--ink); border-radius: 12px 16px 10px 14px;
}
.badge.live { background: var(--green); }
.badge.soon { background: var(--purple-soft); }
.badge.alpha { background: #f6c744; }
.badge.paused { background: var(--cream-2); }
.badge.retired { background: var(--cream-2); color: var(--tan-dark); }
.thumb video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.sound-btn {
  position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 4px 14px; cursor: pointer;
  font: 700 1.15rem/1.2 var(--font-head); color: var(--ink); background: var(--cream);
  border: 3px solid var(--ink); border-radius: 12px 16px 10px 14px; box-shadow: 2px 2px 0 var(--ink);
}
.sound-btn:hover { background: var(--green); }
.sound-btn[aria-pressed="true"] { background: var(--purple); color: var(--cream); }
.game .play-btn { width: 60px; height: 60px; font-size: 1.5rem; padding-left: 4px; }
.ribbon {
  position: absolute; top: 10px; right: 10px; padding: 4px 12px;
  font: 700 1.15rem/1.2 var(--font-head); color: var(--cream);
  background: var(--purple); border: 3px solid var(--ink); border-radius: 14px 10px 16px 12px;
}

.game-body { display: flex; flex-direction: column; flex: 1; padding: 16px 6px 6px; }
.game-body h3 { margin-bottom: 4px; }
.tagline { font-weight: 800; color: var(--purple-dark); margin-bottom: .5em; }
.game-body p:not(.tagline) { flex: 1; font-size: .98rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; }
.tags li {
  padding: 1px 10px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: var(--cream-2); border: 2px solid var(--ink); border-radius: 999px;
}
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; font-size: .88rem; font-weight: 800; color: var(--tan-dark); }
.game-body .btn { align-self: flex-start; }

/* ---------- Spotlight (game in development) ---------- */
#spotlight { padding-top: 28px; }
.spotlight { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px 36px; padding: 22px; align-items: center; }
.spot-media { position: relative; }
.spot-media .thumb { box-shadow: 4px 4px 0 var(--ink); }
.spot-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.sticker {
  position: absolute; z-index: 2; top: -16px; left: -10px; padding: 6px 16px;
  font: 700 1.4rem/1.1 var(--font-head); color: var(--cream); background: var(--purple);
  border: 3px solid var(--ink); border-radius: 12px 18px 10px 16px; transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--purple);
  font-size: 2rem; padding-left: 6px; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s;
}
.play-btn:hover { transform: scale(1.08) rotate(-4deg); }
.spot-body h2 { margin-bottom: 14px; }
.spot-body .tagline { font-size: 1.15rem; }
.spot-body .tags { margin-top: 4px; }

.progress { margin: 22px 0 6px; }
.progress-label { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.progress-label strong { font: 700 1.5rem/1 var(--font-head); color: var(--purple-dark); }
.track { height: 26px; background: var(--cream-2); border: 3px solid var(--ink); border-radius: 14px 18px 12px 16px; overflow: hidden; }
.fill {
  height: 100%; width: var(--p); border-right: 3px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--purple) 0 12px, var(--purple-soft) 12px 24px);
}
.js .spotlight .fill { width: 0; transition: width 1.1s cubic-bezier(.2, .8, .2, 1) .3s; }
.js .spotlight.in .fill { width: var(--p); }

.milestones { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 14px; }
.milestones li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; }
.milestones li::before {
  content: ""; flex: none; width: 22px; height: 22px; border: 3px solid var(--ink);
  border-radius: 6px 8px 5px 8px; background: var(--cream-2);
}
.milestones li.done::before {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5' fill='none' stroke='%2338342e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 90% no-repeat;
}
.milestones li.done { color: var(--tan-dark); }
.dev-note {
  margin: 0 0 18px; padding: 10px 14px; font-size: .95rem; font-weight: 700;
  background: var(--cream-2); border-left: 5px solid var(--purple); border-radius: 4px 14px 14px 4px;
}
.dev-note b { font: 700 1.2rem/1 var(--font-head); color: var(--purple-dark); }
.spot-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.release { font-weight: 800; }
.release span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tan-dark); }

@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; padding: 18px; } .spot-media { margin-top: 12px; } }

/* winter theme: snow cap, Christmas lights, falling snow */
.spotlight.theme-winter { padding-top: 66px; }
.theme-winter .sticker { top: -12px; }
.snow-cap {
  position: absolute; z-index: 4; top: -15px; left: -9px; right: -9px; height: 36px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='36' viewBox='0 0 140 36'%3E%3Cpath d='M0 8Q35 0 70 6T140 8V14Q130 14 126 22Q122 32 112 24Q104 16 96 18Q90 30 80 26Q70 16 62 20Q56 32 46 24Q38 14 30 18Q22 30 14 22Q8 16 0 14Z' fill='%23f8fbff'/%3E%3Cpath d='M0 8Q35 0 70 6T140 8' fill='none' stroke='%2338342e' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M140 14Q130 14 126 22Q122 32 112 24Q104 16 96 18Q90 30 80 26Q70 16 62 20Q56 32 46 24Q38 14 30 18Q22 30 14 22Q8 16 0 14' fill='none' stroke='%2338342e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left top / 140px 36px;
}
.lights {
  position: absolute; z-index: 3; top: 18px; left: 14px; right: 14px; height: 40px;
  display: flex; list-style: none; margin: 0; padding: 0; pointer-events: none;
}
.lights li { position: relative; flex: 1; }
.lights li::before { /* the drooping wire */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  border-bottom: 3px solid var(--ink); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.lights i { /* the bulb */
  --c: #e8453c;
  position: absolute; left: 50%; top: 12px; width: 13px; height: 19px; transform: translateX(-50%);
  background: var(--c); border: 2px solid var(--ink); border-radius: 50% 50% 55% 55% / 40% 40% 60% 60%;
  box-shadow: 0 0 10px 3px var(--c); animation: twinkle 2.4s ease-in-out infinite;
}
.lights i::before { /* the socket */
  content: ""; position: absolute; left: 50%; top: -7px; width: 7px; height: 7px; transform: translateX(-50%);
  background: var(--ink); border-radius: 2px;
}
.lights li:nth-child(5n+2) i { --c: #f6c744; animation-delay: -.5s; }
.lights li:nth-child(5n+3) i { --c: #5fb34a; animation-delay: -1s; }
.lights li:nth-child(5n+4) i { --c: #4aa3df; animation-delay: -1.5s; }
.lights li:nth-child(5n+5) i { --c: #e77bb0; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .5; box-shadow: 0 0 4px 1px var(--c); } }

.flakes { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; border-radius: var(--wobble); }
.flake {
  position: absolute; top: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1.5px rgba(56, 52, 46, .5); animation: fall var(--d) linear var(--delay) infinite;
}
@keyframes fall { from { top: -10px; transform: translateX(0); } to { top: 100%; transform: translateX(26px); } }

@media (max-width: 560px) {
  .lights li:nth-child(even) { display: none; }
  .spotlight.theme-winter { padding-top: 62px; }
}
@media (prefers-reduced-motion: reduce) { .flake { display: none; } }

/* ---------- News ---------- */
.post { padding: 22px 24px 8px; }
.post-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; font-size: .85rem; font-weight: 800; color: var(--tan-dark); }
.post .tag { padding: 1px 10px; color: var(--cream); background: var(--purple); border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.post h3 { margin-bottom: 8px; }
.post a { font-weight: 800; color: var(--purple-dark); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 44px; padding: clamp(24px, 4vw, 44px); }
.about h2 { margin-bottom: 20px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.values li {
  display: grid; grid-template-columns: 54px 1fr; gap: 4px 14px; align-items: center; padding: 12px 16px;
  background: var(--cream-2); border: 3px solid var(--ink); border-radius: var(--wobble-2);
}
.values .icon {
  grid-row: span 2; width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 1.7rem; background: var(--green); border: 3px solid var(--ink); border-radius: 50%;
}
.values strong { font: 700 1.5rem/1 var(--font-head); }
.values span:last-child { font-size: .95rem; line-height: 1.35; }

/* ---------- Community ---------- */
.community-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.community-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px 22px 20px;
  text-decoration: none; transition: transform .2s;
}
.community-card:nth-child(odd) { transform: rotate(-.7deg); }
.community-card:nth-child(even) { transform: rotate(.6deg); }
.community-card:hover { transform: rotate(0) translateY(-4px); }
.community-card .icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 8px;
  font-size: 1.7rem; background: var(--green); border: 3px solid var(--ink); border-radius: 50%;
}
.community-card h3 { font-size: 1.8rem; line-height: 1.05; }
.community-card p { flex: 1; margin: 4px 0 12px; font-size: .95rem; }
.community-card .cta { font: 700 1.4rem/1 var(--font-head); color: var(--purple-dark); }
.community-card:hover .cta { text-decoration: underline wavy; text-underline-offset: 5px; }
.community-card.primary { color: var(--cream); }
.community-card.primary::before { background: var(--purple); }
.community-card.primary .icon { background: var(--cream); }
.community-card.primary .cta { color: var(--cream); }

/* ---------- Team ---------- */
.member { padding: 26px 20px 20px; text-align: center; transition: transform .2s; }
.member:nth-child(odd) { transform: rotate(-.8deg); }
.member:nth-child(even) { transform: rotate(.7deg); }
.member:hover { transform: rotate(0) translateY(-4px); }
.avatar {
  width: 128px; height: 128px; margin: 0 auto 14px; display: grid; place-items: center; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--purple); color: var(--cream);
  font: 700 3.6rem/1 var(--font-head);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 2rem; }
.role { font-weight: 800; color: var(--purple-dark); margin-bottom: .6em; }
.member p:not(.role) { font-size: .95rem; }
.member-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.member-links a { font-weight: 800; font-size: .9rem; padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; background: var(--green); }
.member-links a:hover { background: var(--purple); color: var(--cream); }

/* ---------- Jobs (purple polka band) ---------- */
.band {
  margin-top: clamp(44px, 7vw, 84px); padding-bottom: 60px; color: var(--cream);
  background-color: var(--purple);
  background-image:
    radial-gradient(circle at 55px 55px, var(--purple-dot) 0 36px, transparent 37px),
    radial-gradient(circle at 165px 165px, var(--purple-dot) 0 36px, transparent 37px);
  background-size: 220px 220px;
  border-block: 4px solid var(--ink);
}
.band .section { padding-bottom: 0; }
.band .section-head h2 { text-shadow: 2px 2px 0 var(--ink); }
.jobs { display: grid; gap: 22px; color: var(--ink); }

.job { padding: 0; }
.job summary {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center;
  padding: 20px 24px; cursor: pointer; list-style: none;
}
.job summary::-webkit-details-marker { display: none; }
.job summary::after {
  content: "+"; grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; display: grid; place-items: center;
  font: 700 2rem/1 var(--font-head); color: var(--cream); background: var(--purple);
  border: 3px solid var(--ink); border-radius: 50%; transition: transform .2s;
}
.job[open] summary::after { content: "\2212"; }
.job summary:hover::after { transform: rotate(90deg); }
.job h3 { font-size: 2.1rem; }
.job-sum { margin: 0; }
.job-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0 0; grid-column: 1; }
.job-tags li { padding: 1px 10px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--green); border: 2px solid var(--ink); border-radius: 999px; }
.job-more { padding: 0 24px 24px; border-top: 3px dashed var(--tan); margin: 0 24px; padding-inline: 0; padding-top: 18px; }
.job-more h4 { margin: 14px 0 6px; font: 700 1.5rem/1 var(--font-head); }
.job-more ul { margin: 0 0 20px; padding-left: 1.2em; }

.job.open-app summary::after { display: none; }
.job.open-app { padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.job.open-app p { margin: 4px 0 0; }
.jobs-empty { padding: 28px 24px; text-align: center; }
.jobs-empty h3 { margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: clamp(24px, 4vw, 40px); }
.contact-img { width: 160px; height: 160px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; transform: rotate(-4deg); }
.contact h2 { margin-bottom: 12px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(44px, 7vw, 84px); padding: 28px 0 36px; background: var(--ink); color: var(--cream); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--cream); font-weight: 800; text-decoration: none; border-bottom: 2px dashed var(--purple-soft); }
.footer-links a:hover { color: var(--green); border-color: var(--green); }
.footer-inner .fine { flex: 1 1 340px; opacity: .7; font-size: .8rem; }
.footer-inner a { font-weight: 800; }
.noscript { padding: 20px; margin-block: 20px; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .5s ease, translate .5s ease; }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-inline: auto; }
  .hero-actions, .stats { justify-content: center; }
  .hero-mascot { order: -1; }
  .mascot-btn img { height: min(38vh, 320px); }
  .about { grid-template-columns: 1fr; }
  .game.featured { grid-column: auto; }
}

@media (max-width: 960px) {
  .nav { flex-wrap: wrap; padding-inline: 14px; }
  .brand { font-size: 1.65rem; gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; width: 100%; padding: 6px 0 10px; }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .contact { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .contact-links { justify-content: center; }
  .contact h2::after { margin-inline: auto; }
  .job summary { padding: 16px; }
  .job-more { margin-inline: 16px; }
  .games-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
