/* Hex of War: the game's own look. Dark popup panels over the Toy ground,
   heavy system type, serif black title, pill buttons (HUD in HexGame/UI/Hud.swift). */
:root {
  --panel: #1a1c1f;      /* HUD.panel */
  --raised: #2c3035;     /* HUD.raised */
  --line: #2e3237;       /* HUD.line */
  --dim: #a3aab1;        /* HUD.dim */
  --gold: #f2c336;       /* HUD.gold */
  --red: #d8262a;
  --page: #111214;
  --ink: #fff;
  --sea: #1f6fd1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink);
       font: 600 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
h2 { font-weight: 800; font-size: 28px; letter-spacing: -.01em; margin-bottom: 20px; }
h3 { font-weight: 800; font-size: 20px; margin-bottom: 6px; }
p { margin: 0; }

/* top bar: a dark pill like the in-game top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
       padding: 10px 16px; background: rgba(17, 18, 20, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; }
.home img { border-radius: 9px; display: block; }
.bar nav { display: flex; gap: 6px; }
.bar nav a { text-decoration: none; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--raised); }
.bar nav a:hover { background: #3a3f45; }

/* pills */
.pill { display: inline-block; border-radius: 999px; padding: 14px 26px; font-weight: 800; font-size: 18px; text-decoration: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.store { background: var(--red); color: #fff; }
.soon { background: var(--panel); color: #fff; }
.soon::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
                margin-right: 10px; vertical-align: 1px; }
.mail { background: var(--gold); color: #1a1c1f; font-size: 17px; padding: 12px 22px; }

/* hero: the Toy ground, the icon, the serif black title as on the title screen */
.hero { background: var(--sea) var(--hero) center / cover no-repeat; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0;
                background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 70%); }
.hero-in { position: relative; max-width: 760px; margin: 0 auto; padding: 72px 16px 80px; text-align: center; }
.app-icon { border-radius: 36px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); width: 160px; height: 160px; }
.hero h1 { font: 900 clamp(52px, 11vw, 96px)/1 ui-serif, "New York", Georgia, serif; margin: 22px 0 16px;
           text-shadow: 0 3px 16px rgba(0, 0, 0, .55); }
.line { font-weight: 700; font-size: clamp(19px, 3.4vw, 24px); line-height: 1.35; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.sub { font-weight: 600; font-size: 16px; margin: 10px 0 28px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
@media (max-width: 700px) { .hero { background-image: var(--hero-small); } .app-icon { width: 120px; height: 120px; border-radius: 27px; } }

/* screenshots: a sideways strip, snapping one at a time */
.shots { background: var(--panel); padding: 28px 0; }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: thin; }
.strip figure { flex: 0 0 min(86vw, 760px); margin: 0; scroll-snap-align: center; }
.strip img { display: block; width: 100%; height: auto; border-radius: 18px; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main > section { padding: 56px 0 0; }

/* two modes: popup-frame panels */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode, .three article { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.mode { position: relative; padding-top: 28px; }
.mode .piece { float: right; width: 96px; height: auto; margin: -6px -4px 8px 12px; }
.mode h3 { font-size: 26px; }
.mode p, .three p { color: var(--dim); font-weight: 600; font-size: 16px; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

/* the toy box: Teagan's pieces standing on the ground */
.pieces .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 26px 16px 18px; border-radius: 26px;
               background: #3f8a2c var(--hero-small) 30% 40% / 260% auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pieces figure { margin: 0; text-align: center; width: 120px; }
.pieces img { height: 92px; width: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.pieces figcaption { display: inline-block; margin-top: 6px; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px;
                     background: rgba(26, 28, 31, .88); }

/* the little extras, as chips */
.details ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.details li { background: var(--raised); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 15px; }

.foot { max-width: 1080px; margin: 64px auto 0; padding: 26px 16px 40px; border-top: 1px solid var(--line); color: var(--dim);
        font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* privacy and support */
.text main.doc { max-width: 720px; padding-top: 40px; }
.doc h1 { font: 900 44px/1.1 ui-serif, "New York", Georgia, serif; margin-bottom: 14px; }
.doc h2 { font-size: 22px; margin: 44px 0 14px; }
.doc p { color: #d6d9dc; font-weight: 500; margin-bottom: 14px; }
.doc .date { color: var(--dim); font-weight: 700; font-size: 14px; margin-bottom: 26px; }
.doc a:not(.pill) { color: var(--gold); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--dim); font-weight: 600; }

/* reactive hero map (hero.js): canvas under the shade and the words; only links take the pointer */
.hero { overflow: hidden; touch-action: manipulation; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s; }
.hero.live .hero-map { opacity: 1; }
.hero::before { z-index: 1; pointer-events: none; }
.hero-in { z-index: 2; pointer-events: none; }
.hero-in a { pointer-events: auto; }
.map-hint { position: absolute; z-index: 2; right: 16px; bottom: 16px; pointer-events: none; font-weight: 800; font-size: 13px;
            padding: 7px 14px; border-radius: 999px; background: rgba(26, 28, 31, .82); opacity: 0; transition: opacity .4s; }
.hero.live .map-hint { opacity: 1; }
.hero.live .map-hint.gone { opacity: 0; }
