:root { --sun: #FFD60A; --gum: #FF3D8B; --volt: #2D5BFF; --mint: #00D6A3; --ink: #1A1033; --stage: #0D0720; --card: #1C1238; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--stage); color: #fff; font-family: Figtree, system-ui, sans-serif; font-weight: 600; }
a { color: inherit; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 56px); }
.brand { text-decoration: none; font-family: 'Bagel Fat One', Figtree, sans-serif; font-size: 38px; color: var(--sun); line-height: 1; }
.brand span { display: block; font-family: Figtree, sans-serif; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #fff; }
.pill { text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.25); font-weight: 900; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4vw; align-items: center; padding: 6vh clamp(16px, 4vw, 56px) 10vh; max-width: 1280px; margin: 0 auto; }
h1, h2, h3 { font-family: 'Bagel Fat One', Figtree, sans-serif; font-weight: 400; margin: 0; line-height: 0.95; }
h1 { font-size: clamp(44px, 6.4vw, 96px); }
h1 em { font-style: normal; color: var(--sun); }
.hero p { font-size: 19px; color: rgba(255,255,255,0.75); max-width: 44ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { text-decoration: none; padding: 18px 26px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 900; font-size: 18px; box-shadow: 0 5px 0 #000; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); box-shadow: none; }
.tiny { font-size: 14px !important; color: rgba(255,255,255,0.5) !important; }
.stage { position: relative; height: 420px; }
.tvbox { position: absolute; inset: 20px 30px 120px; border-radius: 28px; background: linear-gradient(#2D5BFF, #0B1E7A); border: 8px solid #000; box-shadow: 0 30px 60px rgba(0,0,0,0.5); overflow: hidden; }
.tvbox span { position: absolute; right: 18px; top: 14px; font-family: 'Bagel Fat One', sans-serif; color: #fff; font-size: 26px; }
.tvbox i { position: absolute; width: 54px; height: 58px; border-radius: 50%; border: 5px solid var(--ink); animation: bob 1.6s ease-in-out infinite; }
.tvbox i:nth-of-type(1) { left: 22%; top: 46%; background: var(--gum); }
.tvbox i:nth-of-type(2) { left: 42%; top: 36%; background: var(--sun); animation-delay: -0.4s; }
.tvbox i:nth-of-type(3) { left: 60%; top: 52%; background: var(--mint); animation-delay: -0.8s; }
.tvbox i:nth-of-type(4) { left: 74%; top: 34%; background: #B98CFF; animation-delay: -1.2s; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.phone { position: absolute; bottom: 0; width: 120px; height: 72px; border-radius: 16px; background: #111; border: 4px solid #333; }
.phone b { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--gum); border: 3px solid var(--ink); }
.phone::before { content: ''; position: absolute; left: 14px; top: 18px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); }
.p1 { left: 6%; transform: rotate(-8deg); }
.p2 { left: 40%; bottom: -10px; }
.p2 b { background: var(--sun); }
.p3 { right: 4%; transform: rotate(8deg); }
.p3 b { background: var(--mint); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 clamp(16px, 4vw, 56px) 10vh; max-width: 1280px; margin: 0 auto; }
.steps article { padding: 26px; border-radius: 26px; background: var(--card); border: 1px solid rgba(255,255,255,0.1); }
.steps b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); font-family: 'Bagel Fat One', sans-serif; font-size: 22px; }
.steps h3 { margin-top: 14px; font-size: 28px; }
.steps p { color: rgba(255,255,255,0.7); }
.list, .app { padding: 0 clamp(16px, 4vw, 56px) 10vh; max-width: 1280px; margin: 0 auto; }
.list h2, .app h2 { font-size: clamp(40px, 5vw, 70px); margin-bottom: 4vh; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cards article { padding: 22px; border-radius: 26px; background: var(--t); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 #fff; }
.cards h3 { font-size: 28px; color: #fff; -webkit-text-stroke: 1px var(--ink); }
.cards p { font-weight: 800; }
.cards span { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.app p { font-size: 19px; color: rgba(255,255,255,0.75); max-width: 50ch; }
footer { padding: 30px clamp(16px, 4vw, 56px); color: rgba(255,255,255,0.5); font-size: 14px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .stage { height: 300px; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.cards.hooks { grid-template-columns: repeat(4, 1fr); }
.cards.hooks h3 { font-size: 30px; }
@media (max-width: 900px) { .cards.hooks { grid-template-columns: 1fr 1fr; } }

/* leaderboards: a button in the hero and a card under the steps */
.btn--board { background: var(--gum); color: #fff; }
.boards { padding: 0 clamp(16px, 4vw, 56px) 10vh; max-width: 1280px; margin: 0 auto; }
.boards__card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 28px; text-decoration: none; background: linear-gradient(120deg, var(--volt), #6A2DFF 60%, var(--gum)); border: 3px solid var(--ink); box-shadow: 6px 6px 0 #fff; transition: transform 0.15s; }
.boards__card:hover { transform: translate(-2px, -2px); }
.boards__cups { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.boards__cups i { width: 30px; border: 3px solid var(--ink); border-radius: 10px 10px 4px 4px; }
.boards__cups i:nth-child(1) { height: 48px; background: var(--mint); }
.boards__cups i:nth-child(2) { height: 72px; background: var(--sun); }
.boards__cups i:nth-child(3) { height: 36px; background: #FF7A1A; }
.boards__txt b { display: block; font-family: 'Bagel Fat One', Figtree, sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.boards__txt span { display: block; margin-top: 6px; color: rgba(255,255,255,0.85); max-width: 52ch; }
.boards__go { padding: 14px 22px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 900; box-shadow: 0 5px 0 #000; white-space: nowrap; }
@media (max-width: 700px) {
  .boards__card { grid-template-columns: auto 1fr; padding: 18px; gap: 14px; }
  .boards__go { grid-column: 1 / -1; text-align: center; }
  .boards__cups { height: 56px; }
  .boards__cups i { width: 22px; }
  .boards__cups i:nth-child(1) { height: 36px; }
  .boards__cups i:nth-child(2) { height: 54px; }
  .boards__cups i:nth-child(3) { height: 26px; }
}

/* Readable game cards: ink titles on the bright cards (white with a thin outline was hard to read on yellow and mint),
   and white text on the ink and blue cards (ink on ink was invisible on Hidden Agent and Jhooth Pakdo; ink on blue was 3.5:1). */
.cards h3 { color: var(--ink); -webkit-text-stroke: 0; }
.cards article[style*="#1A1033"], .cards article[style*="#2D5BFF"] { color: #fff; }
.cards article[style*="#1A1033"] h3, .cards article[style*="#2D5BFF"] h3 { color: #fff; }
.cards article[style*="#1A1033"] { border-color: rgba(255, 255, 255, 0.35); }
/* Ink on pink is 5.4:1; white on pink was 3.3:1. */
.btn--board { color: var(--ink); }
.pill { display: inline-flex; align-items: center; min-height: 44px; }
footer a { display: inline-block; padding: 13px 0; line-height: 18px; }

/* Monster Gang, first on the page: a night card with the trailer and the three steps. */
.feature { padding: 0 clamp(16px, 4vw, 56px) 8vh; max-width: 1280px; margin: 0 auto; }
.feature__card { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-areas: 'tag trailer' 'title trailer' 'text trailer' 'how trailer' 'go trailer'; column-gap: 32px; row-gap: 12px; align-items: start; text-decoration: none; padding: clamp(18px, 3vw, 34px); border-radius: 30px; background: radial-gradient(120% 120% at 80% 0%, #2A1756 0%, #120A2A 55%); border: 1px solid rgba(185, 140, 255, 0.28); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); color: #fff; }
.feature__tag { grid-area: tag; color: #B98CFF; font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.feature__card h2 { grid-area: title; font-size: clamp(44px, 6vw, 80px); color: #FFB13B; }
.feature__card p { grid-area: text; margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 18px; max-width: 46ch; }
.feature__trailer { grid-area: trailer; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(185, 140, 255, 0.22); background: #120A2A; }
.feature__trailer canvas { display: block; width: 100%; height: 100%; }
.feature__how { grid-area: how; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; color: rgba(255, 255, 255, 0.86); }
.feature__how b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: #FFB13B; color: #1A1033; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; }
.feature__go { grid-area: go; justify-self: start; margin-top: 6px; padding: 16px 24px; border-radius: 999px; background: #FFD60A; color: #1A1033; font-weight: 900; box-shadow: 0 5px 0 #000; }
@media (max-width: 860px) { .feature__card { grid-template-columns: 1fr; grid-template-areas: 'tag' 'title' 'text' 'trailer' 'how' 'go'; } }

/* v2: crowd favourites, a filterable library, and a compact two-column grid on phones. */
.favs { padding: 0 clamp(16px, 4vw, 56px) 8vh; max-width: 1280px; margin: 0 auto; }
.favs h2 { font-size: clamp(40px, 5vw, 70px); margin-bottom: 3vh; }
.favs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fav { display: grid; gap: 10px; align-content: start; text-decoration: none; padding: 16px 16px 20px; border-radius: 28px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 #fff; }
.fav--gk { background: linear-gradient(160deg, #3B1C7A, #1C1238 70%); }
.fav--pg { background: linear-gradient(160deg, #FF3D8B, #B5175A 80%); }
.fav__shot { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid rgba(255, 255, 255, 0.25); }
.fav__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fav__tag { color: #FFD60A; font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.fav h3 { font-size: clamp(34px, 4vw, 52px); }
.fav p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.fav__go { justify-self: start; margin-top: 6px; padding: 14px 22px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 900; box-shadow: 0 5px 0 #000; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -2vh 0 3vh; }
.chip { font: inherit; font-weight: 900; color: #fff; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.25); background: transparent; cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.cards article[hidden] { display: none; }
@media (max-width: 860px) { .favs__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cards.lib { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards.lib article { padding: 14px; border-radius: 20px; box-shadow: 4px 4px 0 #fff; }
  .cards.lib h3 { font-size: 21px; }
  .cards.lib p { font-size: 13.5px; margin: 6px 0; line-height: 1.35; }
  .cards.lib span { font-size: 10.5px; }
  .cards.hooks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards.hooks article { padding: 14px; }
  .cards.hooks h3 { font-size: 22px; }
  .chip { min-height: 40px; padding: 0 14px; font-size: 14px; }
}

/* The Funn mark beside the wordmark, at a size you can see (the tight-cropped mark: same artwork, no empty canvas). */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand b { font-weight: 400; display: block; }
.brand__mark { height: 54px; width: auto; filter: drop-shadow(0 0 16px rgba(255, 214, 10, 0.35)); transform: rotate(-4deg); }
@media (max-width: 520px) { .brand__mark { height: 46px; } }
