/* Thanks For Playing | $GG — approved matte brand shell.
   Presentation only. The compiled app remains the authority for chain, wallet,
   milestone, proof, and claim behavior. */

/* ---------- Shared matte system ---------- */
.arena {
  --brand-bg: #09070d;
  --brand-panel: #0e0a12;
  --brand-ink: #ece9ef;
  --brand-soft: #b7afbf;
  --brand-muted: #8e8793;
  --brand-edge: #332738;
  --brand-pink: #f02bcb;
  --brand-cyan: #20d4f4;
  background: var(--brand-bg);
  color: var(--brand-ink);
}

.arena:not(.light) {
  --ink: var(--brand-ink);
  --soft: var(--brand-soft);
  --muted: var(--brand-muted);
  --edge: var(--brand-edge);
  --panel: var(--brand-panel);
  --pink: var(--brand-pink);
  --cyan: var(--brand-cyan);
  background: var(--brand-bg);
}

.arena:not(.light) .pot-stage,
.arena:not(.light) .player-panel,
.arena:not(.light) .numbers-panel {
  background: var(--brand-panel);
  border-color: var(--brand-edge);
}

.arena:not(.light) .qualification,
.arena:not(.light) .selected-milestone {
  background: transparent;
}

.arena a,
.arena button,
.arena .pot-value > span,
.arena #gg-position-dashboard .gg-pos-share,
.arena #gg-position-dashboard .gg-pos-live::before {
  text-shadow: none;
  box-shadow: none;
}

/* ---------- Top rail ---------- */
.minimal-header {
  max-width: 1304px;
  margin: 0 auto;
  padding: 20px 32px 0;
  min-height: 58px;
  position: relative;
}

.minimal-brand {
  gap: 16px;
  min-height: 38px;
}

.minimal-brand img {
  display: none;
}

.minimal-brand span {
  color: var(--pink);
  font-size: 20px;
  letter-spacing: -.045em;
}

.minimal-brand::after {
  content: "|";
  color: var(--soft);
  font: 500 11px/1 "IBM Plex Mono", monospace;
}

.minimal-brand .brand-topline {
  color: var(--soft);
  font: 500 10px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .13em;
  white-space: nowrap;
}

.mode-icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.mode-icon:hover {
  color: var(--cyan);
  background: transparent;
}

/* Lift existing live/buy/copy controls into the quiet top rail without
   reparenting the React nodes. */
.board-heading {
  position: relative;
  padding: 24px 0 22px;
}

.board-heading .launch-tools {
  position: absolute;
  top: -57px;
  right: 50px;
  z-index: 4;
  gap: 8px;
}

.arena .launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: .04em;
}

.arena .launch-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45d7a4;
}

.arena .launch-actions {
  gap: 8px;
}

.arena .buy-gg,
.arena .copy-ca {
  min-height: 34px;
  border-radius: 4px;
  box-shadow: none;
  font-size: 11px;
}

.arena .buy-gg {
  background: var(--pink);
  color: #fff;
  padding: 7px 12px;
}

.arena .buy-gg:hover {
  filter: none;
  background: #f23bd1;
}

.arena .copy-ca {
  background: transparent;
  border-color: var(--edge);
  color: var(--soft);
  padding: 7px 11px;
}

/* ---------- Approved scoreboard composition ---------- */
.arena-main {
  max-width: 1304px;
}

.board-heading h1 {
  margin-top: 6px;
}

.game-layout {
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 24px;
}

.pot-stage,
.player-panel {
  border-radius: 10px;
  box-shadow: none;
}

.pot-stage {
  min-height: clamp(530px, 61vh, 600px);
  background: var(--panel) !important;
  overflow: hidden;
}

.pot-content {
  min-height: 250px;
  padding-top: 28px;
}

.pot-content .micro,
.pot-caption {
  color: var(--soft) !important;
}

.pot-value > span {
  color: var(--pink);
  font-size: clamp(48px, 5vw, 68px);
}

.pot-value b {
  color: var(--soft);
}

.pot-caption {
  max-width: 260px;
  margin-top: 8px;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* Logo becomes an institutional watermark. */
.arena .pot-art {
  width: 310px;
  height: 235px;
  top: 30px;
  right: 32px;
  opacity: .055;
  mix-blend-mode: normal;
  filter: grayscale(.5) saturate(.45);
}

.pot-allocation {
  border-top-color: var(--edge);
}

.qualification {
  border-top-color: var(--edge);
  padding-top: 23px;
  padding-bottom: 25px;
}

.market-progress {
  background: #211a27;
}

.reading-segments span {
  background: #17111c;
  border-color: #35293a;
}

/* ---------- Position / claims ---------- */
.arena .simple-claims {
  align-self: stretch;
  padding: 28px 26px;
  background: var(--panel);
}

#gg-position-dashboard .gg-pos-live::before {
  box-shadow: none !important;
}

#gg-position-dashboard .gg-pos-share {
  text-shadow: none !important;
}

#gg-position-signoff {
  display: none !important;
}

.arena .simple-claims.brand-disconnected .claim-total {
  display: none;
}

.arena .simple-claims.brand-disconnected .connect-button {
  margin-top: 18px;
}

.brand-wallet-note,
.brand-claim-empty {
  color: var(--soft);
  font-size: 12px !important;
  line-height: 1.75 !important;
}

.brand-wallet-note {
  margin: 12px 0 0;
}

.brand-claim-empty {
  margin: 12px 0 0;
}

.arena .connect-button {
  background: transparent;
  color: var(--ink);
  border-color: #57435d;
  box-shadow: none;
}

/* ---------- First-viewport verification rail ---------- */
.brand-verification-rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 54px;
  margin: 12px 0 0;
  padding: 16px 0 14px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font: 500 10px/1.5 "IBM Plex Mono", monospace;
}

.brand-verification-rail .brand-rail-mark {
  color: var(--pink);
  font: 900 18px/1 Orbitron, sans-serif;
  letter-spacing: -.04em;
}

.brand-verification-rail nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.brand-verification-rail a {
  color: inherit;
  text-decoration: none;
}

.brand-verification-rail a:hover {
  color: var(--cyan);
}

.brand-verification-rail .brand-rail-signature {
  color: var(--soft);
  white-space: nowrap;
}

/* The legacy footer remains in React for technical fallback, but the approved
   verification rail is the visible project navigation surface. */
.arena .arena-footer {
  display: none !important;
}

/* Lower game sections stay available, but begin decisively below the approved
   scoreboard viewport rather than competing with it. */
.staircase-section {
  margin-top: 64px;
}

.ladder-heading h2 {
  max-width: 740px;
}

/* Flatten the lower sections too, without redesigning them. */
.arena:not(.light) .stair-fill,
.arena:not(.light) .stair.full .stair-fill,
.arena:not(.light) .stair.chosen .stair-fill {
  background: #141019;
  border-color: #35293a;
  box-shadow: none;
}

.arena:not(.light) .stair.chosen .stair-fill {
  border-color: var(--cyan);
}

/* ---------- Warm-paper light mode ---------- */
.arena.light {
  --brand-bg: #f3f0eb;
  --brand-panel: #f8f6f2;
  --brand-ink: #17141c;
  --brand-soft: #625b69;
  --brand-muted: #8e8793;
  --brand-edge: #d6d0d8;
  --brand-pink: #d81eb8;
  --brand-cyan: #008ea5;
  --ink: var(--brand-ink);
  --soft: var(--brand-soft);
  --muted: var(--brand-muted);
  --edge: var(--brand-edge);
  --panel: var(--brand-panel);
  --pink: var(--brand-pink);
  --cyan: var(--brand-cyan);
  background: var(--brand-bg);
  color: var(--brand-ink);
}

.arena.light .pot-stage,
.arena.light .player-panel,
.arena.light .numbers-panel {
  background: var(--brand-panel);
  border-color: var(--brand-edge);
}

.arena.light .qualification,
.arena.light .selected-milestone {
  background: transparent;
}

.arena.light .pot-content .micro,
.arena.light .pot-caption {
  color: var(--brand-soft) !important;
}

.arena.light .pot-value > span {
  color: #24202a;
}

.arena.light .pot-art {
  opacity: .045;
  mix-blend-mode: multiply;
  filter: grayscale(.78) saturate(.2);
}

.arena.light .market-progress {
  background: #ded9dc;
}

.arena.light .reading-segments span {
  background: #ebe7e4;
  border-color: #d6d0d8;
}

.arena.light .launch-badge {
  background: transparent;
  border: 0;
  color: var(--soft);
}

.arena.light .buy-gg {
  background: #24212a;
  color: #f8f6f2;
}

.arena.light .copy-ca,
.arena.light .connect-button {
  background: transparent;
  color: var(--ink);
  border-color: #bdb5c0;
}

.arena.light .stair-fill,
.arena.light .stair.full .stair-fill,
.arena.light .stair.chosen .stair-fill {
  background: #eeeae6;
  border-color: #d6d0d8;
  box-shadow: none;
}

.arena.light .stair.chosen .stair-fill {
  border-color: var(--cyan);
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .minimal-header {
    padding: 16px 20px 0;
    min-height: 54px;
  }

  .minimal-brand::after,
  .minimal-brand .brand-topline {
    display: none;
  }

  .minimal-brand span {
    font-size: 22px;
  }

  .board-heading {
    padding: 22px 0 18px;
  }

  .board-heading .launch-tools {
    top: -55px;
    right: 58px;
    gap: 6px;
  }

  .board-heading .copy-ca {
    display: none;
  }

  .board-heading h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .game-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pot-stage {
    min-height: 0;
  }

  .arena .pot-art {
    width: 190px;
    height: 165px;
    top: 28px;
    right: -8px;
    opacity: .045;
  }

  .pot-content {
    min-height: 220px;
  }

  .pot-value > span {
    font-size: 46px;
  }

  .brand-verification-rail {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 18px 0 16px;
  }

  .brand-verification-rail nav {
    justify-content: flex-start;
    gap: 16px;
  }

  .brand-verification-rail .brand-rail-signature {
    white-space: normal;
  }

  .staircase-section {
    margin-top: 46px;
  }
}

@media (max-width: 520px) {
  .arena-main {
    padding: 0 20px;
  }

  .board-heading .launch-tools {
    right: 56px;
  }

  .arena .launch-badge {
    font-size: 10px;
  }

  .arena .buy-gg {
    padding: 6px 9px;
    font-size: 10px;
  }

  .pot-content {
    padding: 24px 20px 18px;
  }

  .pot-caption {
    max-width: 190px;
    font-size: 14px !important;
  }

  .pot-allocation {
    margin: 0 20px;
  }

  .qualification {
    padding: 18px 20px 20px;
  }

  .arena .simple-claims {
    padding: 24px 20px;
  }

  .brand-verification-rail {
    font-size: 9px;
  }
}


/* ---------- Canonical desktop reference geometry (1808×870 target) ---------- */
@media (min-width: 801px) {
  .minimal-header {
    max-width: 1556px;
    padding: 20px 32px 0;
    min-height: 64px;
    position: relative;
  }

  .arena-main {
    max-width: 1406px;
    padding: 0 32px;
  }

  .board-heading {
    padding: 20px 0 18px;
  }

  .board-heading .launch-tools {
    top: -45px;
    right: 0;
  }

  .mode-icon {
    position: absolute;
    top: 19px;
    right: 0;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 6px;
    opacity: .42;
  }

  .mode-icon svg {
    width: 16px;
    height: 16px;
  }

  .game-layout {
    grid-template-columns: minmax(0, 1fr) 376px;
    gap: 24px;
    height: 604px;
  }

  .pot-stage,
  .simple-claims {
    height: 604px;
  }

  .pot-content {
    min-height: 273px;
    height: 273px;
  }

  .pot-allocation {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .qualification {
    height: 231px;
    min-height: 231px;
    box-sizing: border-box;
  }

  .arena .pot-art {
    width: 250px;
    max-width: 250px;
    height: 205px;
    top: 29px;
    right: 42px;
    opacity: .055;
  }

  .brand-verification-rail {
    box-sizing: border-box;
    width: 100vw;
    min-height: 71px;
    margin: 20px 0 0 calc(50% - 50vw);
    padding: 17px max(24px, calc((100vw - 1492px) / 2));
    grid-template-columns: auto 1fr auto;
  }

  .staircase-section {
    margin-top: 72px;
  }
}

/* Exact quiet connected-claims state from the approved reference. */
.simple-claims.gg-position-active > .claim-total,
.simple-claims.gg-position-active > .connect-button {
  display: none !important;
}

.simple-claims .brand-claim-empty-note {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.75;
  margin: 12px 0 0;
}

/* Footer/reference rail groups: identity at left, verification center-left,
   social/signature at right. */
.brand-verification-rail .brand-rail-left,
.brand-verification-rail .brand-rail-right {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.brand-verification-rail .brand-rail-left {
  justify-self: start;
}

.brand-verification-rail .brand-rail-right {
  justify-self: end;
  color: var(--soft);
}

.brand-verification-rail .brand-rail-sep {
  color: var(--muted);
  opacity: .7;
}

.brand-verification-rail .brand-rail-label {
  color: var(--muted);
  white-space: nowrap;
}

.brand-verification-rail .brand-rail-signature {
  color: var(--soft);
}

@media (max-width: 800px) {
  .brand-verification-rail .brand-rail-left,
  .brand-verification-rail .brand-rail-right {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

/* Mobile reference refinements: preserve the approved quiet two-line thesis and
   keep qualification metadata on one calm line. */
@media (max-width: 520px) {
  .pot-caption {
    max-width: 245px;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .qualification-note {
    gap: 8px;
    font-size: 10px;
    line-height: 1.35;
  }

  .qualification-note span {
    white-space: nowrap;
  }

  .mode-icon {
    opacity: .32;
  }
}
@media (max-width: 520px) {
  .arena .pot-caption {
    max-width: 235px;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
}


/* Connected pre-first-milestone cleanup: React emits a native milestone line
   after the wallet/disconnect row. The branded empty state already carries it. */
.simple-claims.gg-position-active > .brand-native-first-milestone {
  display: none !important;
}
