/* Hex website. Plain HTML + this file (like dadgainz.com). Colors from the game. */
:root { --bg: #0a0f24; --card: #121a44; --text: #f3f5ff; --muted: #9aa3c0; --line: #25306a; --hot1: #ffb347; --hot2: #ff4fa3; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55;
  background-image: radial-gradient(80% 50% at 50% -5%, rgba(192, 132, 252, 0.18), transparent 60%); }
a { color: #7dd3fc; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
header.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; }
header.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
header.nav .brand img { width: 40px; height: 40px; border-radius: 10px; }
.word { font-weight: 900; letter-spacing: -0.05em; background: linear-gradient(90deg, #7dd3fc, #c084fc, #fb7185, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em; }
header.nav .word { font-size: 30px; }
header.nav nav { display: flex; gap: 16px; flex-wrap: wrap; }
header.nav nav a { color: var(--muted); text-decoration: none; font-weight: 650; }
header.nav nav a:hover, header.nav nav a[aria-current] { color: var(--text); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 40px 0 20px; }
.hero h1 { font-size: 88px; line-height: 1; }
.hero .tag { font-size: 24px; font-weight: 800; margin-top: 10px; }
.hero .sub { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 460px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: #000; border: 1px solid #333; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; opacity: .8; }
.badge small { display: block; font-size: 10px; font-weight: 600; color: #aaa; }
.play-btn { display: inline-block; margin-top: 14px; padding: 12px 22px; border-radius: 999px; font-weight: 800; color: #1a0b1f; text-decoration: none; background: linear-gradient(90deg, var(--hot1), var(--hot2)); }
.phone { justify-self: center; width: min(280px, 100%); border-radius: 36px; overflow: hidden; box-shadow: 0 0 0 8px #1a1d2b, 0 24px 60px rgba(0,0,0,.6); }
.phone img { display: block; width: 100%; height: auto; }
h2.section { margin: 50px 0 16px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.shots img { width: 220px; height: auto; flex: none; border-radius: 22px; scroll-snap-align: start; border: 1px solid var(--line); }
.page { padding: 26px 0 10px; }
.page h1 { font-size: 34px; letter-spacing: -.02em; margin-bottom: 10px; }
.page h2 { font-size: 21px; margin: 26px 0 8px; }
.page h3 { font-size: 17px; margin: 18px 0 6px; }
.page p, .page li { color: #d6dbf2; margin-bottom: 10px; }
.page ul, .page ol { padding-left: 22px; }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.page blockquote { border: 1px dashed #f5b82e; color: #ffd98a; background: rgba(245,184,46,.08); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.page blockquote p { color: inherit; margin: 0; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
details.faq summary { font-weight: 750; cursor: pointer; }
details.faq p { margin: 8px 0 0; }
footer { margin: 60px 0 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer .by { display: flex; align-items: center; gap: 8px; }
footer .by img { height: 34px; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero .sub { margin-inline: auto; } .badges { justify-content: center; } .hero h1 { font-size: 72px; } header.nav { flex-direction: column; } }

/* ---------------------------------------------------------------- the games hub (front page, like dialed.gg) */
header.nav { flex-wrap: wrap; }
.games-nav { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; margin-left: 22px; }
.games-nav a { color: var(--muted); text-decoration: none; font-weight: 650; }
.games-nav a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .adfree { color: var(--muted); text-decoration: none; font-weight: 650; }
.nav-right .signin { padding: 9px 18px; border-radius: 999px; background: #fff; color: #0a0f24; font-weight: 800; text-decoration: none; }
dialog.note { margin: auto; max-width: 360px; border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: var(--card); color: var(--text); }
dialog.note::backdrop { background: rgba(4,6,18,.7); }
dialog.note p { margin-bottom: 10px; color: #d6dbf2; }

/* ---------------------------------------------------------------- hover life (small, springy) */
:root { --spring: cubic-bezier(0.26, 1.6, 0.44, 1); }
.games-nav a { position: relative; transition: color .2s; }
.games-nav a .nico { position: absolute; left: 50%; bottom: calc(100% + 2px); width: 22px; height: 24px; margin-left: -11px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--gc); color: #0a0f24;
  opacity: 0; transform: translateY(8px) scale(0.3); transition: opacity .15s, transform .22s cubic-bezier(.55, 0, .7, .3); pointer-events: none; }
.games-nav a .nico svg { width: 13px; height: 13px; }
.games-nav a:hover { color: var(--text); }
.games-nav a:hover .nico { opacity: 1; transform: none; transition: opacity .14s 40ms, transform .42s var(--spring) 40ms; }
header.nav { padding-top: 26px; } /* room for the icons */
.play, .nav-right .signin, .band { transition: transform .2s var(--ease, ease), box-shadow .2s, background .2s; }
.play:hover, .nav-right .signin:hover { transform: translateY(-2px); }
.play::after { content: " →"; display: inline-block; transition: transform .25s var(--spring); }
.play:hover::after { transform: translateX(3px); }
.band:hover { transform: translateY(-2px); }


/* Card demos (the motion) live in scripts/site-art.css, shared with the app; the build copies it to art.css. */
.demo-daily .swap { opacity: 0; }
.demo-endless .spark { offset-distance: 0%; opacity: 0; }
.demo-endless .float { opacity: 0; }
.demo-memory .front { opacity: 0; }
.demo-bloom .flood { opacity: 0; }
.demo-spot .finger, .demo-spot .burst { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .games-nav a .nico, .play, .play::after, .band, .tile, .tile .art { transition: none !important; }
  .tile:hover, .tile:hover .art, .play:hover, .play:hover::after, .band:hover { transform: none !important; }
}

/* ---------------------------------------------------------------- game pages (/swap, /memory, /bloom, /spot) */
.modes { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 16px; }
.modes span { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #d6dbf2; }
.game-page .gp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding: 26px 0 10px; }
.game-page h1 { font-size: 64px; letter-spacing: -.03em; }
.gp-blurb { color: #c9cfee; font-size: 18px; margin: 12px 0 20px; max-width: 460px; }
.big-play { font-size: 17px; padding: 14px 28px; }
.gp-stats { margin-top: 14px; color: var(--muted); font-weight: 650; min-height: 1.4em; }
.soon-note { margin: 26px 0 0; padding: 16px 20px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--gc) 60%, transparent); color: #d6dbf2; }
ol.how { padding-left: 22px; display: grid; gap: 8px; color: #d6dbf2; max-width: 640px; }
.games-nav a[aria-current] { color: var(--text); }
@media (max-width: 700px) { .game-page .gp-hero { grid-template-columns: 1fr; } .game-page h1 { font-size: 48px; } }

/* ---------------------------------------------------------------- the hive: games as hex tiles on a honeycomb
   Each tile sits at (--c, --r): --c in half-tile steps across, --r in rows; phones use (--pc, --pr), a zig-zag.
   The article is the hover/glow box; .hx inside is the hex (clipped, so only the hex takes clicks and hovers). */
:root { --gc: #fbbf24; --w: min(286px, calc((100vw - 64px) / 3)); --g: 12px; }
body { background-image: radial-gradient(80% 50% at 50% -5%, rgba(192, 132, 252, 0.16), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='.035'/%3E%3C/svg%3E"); }
.hive { --h: calc(var(--w) * 1.1547); --hw: calc((var(--w) + var(--g)) / 2); --rh: calc(var(--h) * .75 + var(--g) * .87);
  position: relative; margin: 26px auto 10px; width: calc(var(--cols) * var(--hw) - var(--g)); height: calc((var(--rows) - 1) * var(--rh) + var(--h)); }
.tile { position: absolute; width: var(--w); height: var(--h); left: calc(var(--c) * var(--hw)); top: calc(var(--r) * var(--rh)); pointer-events: none;
  transition: transform .4s var(--spring), filter .3s; }
.tile .hx { pointer-events: auto; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--gc) 24%, #17153a), #110f2a 72%); }
.tile.game .hx { cursor: pointer; }
.tile.game:hover { transform: translateY(-8px); filter: drop-shadow(0 0 20px color-mix(in srgb, var(--gc) 70%, transparent)); z-index: 2; }
.tile .game-art { position: absolute; inset: 13% 17% 44%; display: grid; place-items: center; }
.tile .game-art .art { width: 100%; max-height: 100%; transition: transform .45s var(--spring); }
.tile:hover .game-art .art { transform: scale(1.06) rotate(-3deg); }
.tile-text { position: absolute; left: 12%; right: 12%; top: 56%; text-align: center; display: grid; justify-items: center; gap: 4px; }
.tile h2 { font-size: calc(var(--w) * .105); line-height: 1; font-weight: 900; letter-spacing: -.03em; color: var(--gc); }
.tile p { font-size: 13px; line-height: 1.3; color: #c8cbe6; }
.tile .modes { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.tile .modes span { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.1); color: #d6dbf2; }
.tile .chip { font-size: 10px; padding: 1px 7px; }
.tile .play { font-size: 13px; padding: 4px 16px; margin-top: 2px; }
.logo-tile .hx { background: #16143a; display: grid; place-content: center; text-align: center; gap: 4px; }
.logo-tile .word { font-size: calc(var(--w) * .24); line-height: 1; }
.logo-tile small { color: var(--muted); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 10px; max-width: 160px; margin: 0 auto; }
.chip { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--muted); }
/* Buttons: hex-ended chips in the game's color. */
.play { display: inline-block; padding: 10px 26px; background: var(--gc); color: #0a0f24; font-weight: 900; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 900;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.play:hover { filter: brightness(1.12); }
.nav-right .signin { border-radius: 0; background: #fbbf24; color: #0a0f24; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); }
/* The game page's big art: one large hex, always playing. */
.gp-art { position: relative; width: min(360px, 100%); aspect-ratio: 1 / 1.1547; justify-self: center; }
.gp-art .hx { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, color-mix(in srgb, var(--gc) 26%, #17153a), #110f2a 72%); display: grid; place-items: center; }
.gp-art .game-art { width: 72%; } .gp-art .art { width: 100%; transform: rotate(-5deg); }
.game-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.game-icon { width: 52px; height: 58px; flex: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; background: var(--gc); color: #0a0f24; }
.game-icon svg { width: 26px; height: 26px; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding: 20px 26px; border-radius: 12px; text-decoration: none; color: var(--text); background: linear-gradient(90deg, rgba(255,179,71,.14), rgba(255,79,163,.14)); border: 1px solid rgba(255,79,163,.35); }
.band-go { font-weight: 800; color: #ffb3d6; }
@media (max-width: 700px) {
  :root { --w: min(250px, calc((100vw - 40px) / 1.5)); }
  .hive { width: calc(var(--pcols) * var(--hw) - var(--g)); height: calc((var(--prows) - 1) * var(--rh) + var(--h)); }
  .tile { left: calc(var(--pc) * var(--hw)); top: calc(var(--pr) * var(--rh)); }
  .tile p { font-size: 12px; } .tile .modes span { font-size: 9px; padding: 1px 4px; }
  .tile-text { top: 47%; left: 8%; right: 8%; gap: 2px; } .tile .game-art { inset: 9% 25% 55%; } .tile .play { font-size: 12px; padding: 3px 14px; }
  header.nav .games-nav { display: none; } /* phones: the tiles are the menu */
  header.nav { flex-direction: row; }
  .tile .chip { font-size: 9px; white-space: nowrap; padding: 1px 5px; }
}
.nav-right .coins { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--text); text-decoration: none; font-weight: 800; }
.nav-right .coins[hidden] { display: none; }
.nav-right .coins i { width: 14px; height: 16px; background: #fbbf24; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@media (max-width: 480px) { .nav-right .adfree { display: none; } .nav-right { gap: 8px; } }
