/* Hex-first design system for the umbrella game site scaffold.
   The accent is a placeholder here; brand.js replaces it from
   brand.config.json on load. No external fonts or images are used. */

:root {
  --page-bg: #0b0d11;
  --panel: #141922;
  --panel-2: #1a202d;
  --panel-3: #10141d;
  --text: #edf2f7;
  --muted: rgba(237, 242, 247, .68);
  --faint: rgba(237, 242, 247, .48);
  --line: rgba(237, 242, 247, .13);
  --accent: #9be15d;
  --accent-ink: #0b0d11;
  --danger: #ff8a80;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --shell: min(1180px, calc(100vw - 40px));
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -8%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(88, 118, 214, .16), transparent 30rem),
    linear-gradient(180deg, #0d1017 0%, var(--page-bg) 46%, #080a0e 100%);
  font-family: Inter, ui-sans-system, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: default; opacity: .55; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 76px; /* room for the fixed profile hexagon */
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-hex {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-size: .95rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

main { overflow: hidden; }

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 148px) 0 92px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 24px auto auto 58%;
  width: 390px;
  height: 430px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(255,255,255,.025));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: .5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 24px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

h1, h2, h3 { line-height: 1.04; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(3.3rem, 9vw, 7.8rem); font-weight: 900; }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 850; }
h3 { margin: 0 0 9px; font-size: 1.25rem; }

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.hero-actions, .action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.button:hover { background: rgba(255, 255, 255, .1); }
.button.is-primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.button.is-primary:hover { filter: brightness(1.07); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hero-panel {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
}

.hero-panel-screen {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, transparent 20%, rgba(3, 5, 8, .82)),
    radial-gradient(circle at 72% 24%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 9rem),
    linear-gradient(145deg, #26334a, #131a29 58%, #0b0f16);
}

.hero-panel-screen strong { font-size: 1.5rem; }
.hero-panel-screen p { margin: 7px 0 0; color: var(--muted); }

.hex-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hex-stat {
  min-height: 104px;
  padding: 22px 12px 16px;
  text-align: center;
  background: var(--panel-2);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-stat strong { display: block; color: var(--accent); font-size: 1.28rem; }
.hex-stat span { color: var(--muted); font-size: .8rem; }

/* Home hero cover card: mirrors the portfolio homepage top, where the
   game cover fills the card, the title sits on the cover over a bottom
   shade, and the download actions live on the card. The foundation has
   no cover asset, so the art is a labeled placeholder block in the same
   gradient recipe as .hero-panel-screen. */
.hero-cover {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero-cover-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 12rem),
    radial-gradient(circle at 16% 84%, rgba(88, 118, 214, .32), transparent 17rem),
    linear-gradient(145deg, #26334a, #131a29 58%, #0b0f16);
}
.hero-cover-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 10px;
  border: 1px dashed rgba(237, 242, 247, .42);
  border-radius: 999px;
  background: rgba(3, 5, 8, .45);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 8, .05) 30%, rgba(3, 5, 8, .88));
  pointer-events: none;
}
.hero-cover-meta {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 5vw, 54px);
}
.hero-cover-meta h1 { font-size: clamp(3rem, 8vw, 6.6rem); }
.hero-cover-meta .lede { max-width: 720px; }
.hero-cover-line { max-width: 640px; margin: 18px 0 0; color: var(--muted); }
.hero-cover-line strong { color: var(--text); }
.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-download-note { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }

/* Placeholder buttons: real, visible, and inert. Dashed and dimmed is
   the not-yet-available treatment; brand.js keeps the state honest
   from the config, and its click guard swallows activation. */
.button.is-placeholder {
  opacity: .62;
  border-style: dashed;
  cursor: not-allowed;
}
.button.is-placeholder:hover { background: rgba(255, 255, 255, .06); }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }

.hex-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hex-card, .info-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

.hex-card {
  min-height: 245px;
  padding: 46px 34px 34px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  text-align: center;
}
.hex-card p, .info-card p { color: var(--muted); }
.hex-card .card-kicker { color: var(--accent); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; }

.info-card { padding: 26px; border-radius: 22px; }
.info-card .status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}
.split p { color: var(--muted); }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.check-list strong { color: var(--text); }

.page-hero { position: relative; padding: 92px 0 70px; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
.page-hero .lede { max-width: 760px; }

.notice {
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
}
.notice p { margin: 0; color: var(--muted); }
.notice strong { color: var(--accent); }

.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.platform-card p { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--faint);
  font-size: .92rem;
}
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.footer-socials { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-socials .social-label {
  color: var(--faint);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer a.is-placeholder { opacity: .55; border-bottom: 1px dashed currentColor; }

/* Full account page. The profile panel component owns the modal version. */
.account-main { padding: 72px 0 100px; }
.account-card {
  width: min(430px, 100%);
  margin-inline: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}
.account-card h1 { font-size: 2rem; letter-spacing: -.02em; }
.account-card p { color: var(--muted); }
.account-logo {
  width: 64px; height: 70px; margin: 0 auto 16px; display: grid; place-items: center;
  color: var(--accent-ink); background: var(--accent); font-weight: 900;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.account-providers, .account-form { display: grid; gap: 9px; margin-top: 22px; }
.account-btn {
  min-height: 47px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px;
  background: #252a37; color: var(--text); font-weight: 700;
}
.account-btn:hover { background: #2e3443; }
.account-btn.is-primary { background: var(--accent); color: var(--accent-ink); }
.account-btn.is-danger { color: var(--danger); }
.account-btn.is-quiet { background: transparent; border-color: #323848; }
.account-input {
  width: 100%; min-height: 47px; padding: 0 14px; border: 1px solid #323848; border-radius: 12px;
  background: #0f121a; color: var(--text);
}
.account-input:focus { outline: none; border-color: var(--accent); }
.account-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-error { color: var(--danger) !important; }
.account-status { color: var(--accent) !important; }
.account-card [hidden] { display: none !important; }

/* Game profile views on the account page (W8a, contract 2.0). */
.game-box { margin-top: 26px; }
.game-profiles {
  padding: 26px 30px; border: 1px solid var(--line); border-radius: 26px;
  background: var(--panel); box-shadow: var(--shadow); text-align: left;
}
.game-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.game-head h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; }
.game-source { margin: 0; color: var(--accent); font-weight: 700; }
.game-mock-note { color: var(--faint); font-size: .88rem; }
.game-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.game-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2);
}
.game-tag { color: var(--muted); }
.game-status { margin-left: auto; color: var(--faint); font-size: .85rem; text-transform: capitalize; }
.game-badge {
  padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 800;
}
.game-note { color: var(--muted); }
.game-switcher { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 4px; }
.game-switch-btn {
  min-height: 40px; padding: 0 15px; border: 1px solid #323848; border-radius: 12px;
  background: #252a37; color: var(--text); font-weight: 700;
}
.game-switch-btn.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.game-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.game-view {
  padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-3);
}
.game-view h3 { margin: 0 0 6px; font-size: 1.05rem; }
.game-wallet { font-weight: 800; }
.game-unavailable {
  padding: 14px; border: 1px dashed #4a5468; border-radius: 12px; background: var(--panel-2);
}
.game-unavailable p { margin: 4px 0; color: var(--muted); }
.game-unavailable p:first-child { color: var(--text); font-weight: 700; }
.game-error { color: var(--danger); }
.game-controls { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.game-controls summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.game-ctl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.game-ctl-btn {
  min-height: 36px; padding: 0 12px; border: 1px solid #323848; border-radius: 10px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: .88rem;
}
.game-ctl-btn:hover { color: var(--text); }

@media (max-width: 900px) {
  .game-views { grid-template-columns: 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hex-grid, .card-grid { grid-template-columns: 1fr; }
  .hex-card { min-height: 205px; }
  .hero-panel { max-width: 620px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100vw - 24px, 1180px); --header-h: 64px; }
  .site-header-inner { gap: 14px; padding-right: 64px; }
  .site-nav a { padding: 8px 7px; font-size: .86rem; }
  .site-nav a:nth-child(3) { display: none; }
  .wordmark-name { font-size: .94rem; }
  .hero { padding-top: 56px; }
  .hero-cover-meta { min-height: 460px; padding: 24px 20px; }
  .hex-stat-row, .platform-grid { grid-template-columns: 1fr; }
  .hex-stat { min-height: 92px; }
  .account-form-row { grid-template-columns: 1fr; }
}
