/* Switch pages that share the game-page frame (rh2.html, boxing-beta.html, pricing.html, models.html,
   humanization.html): type, sections, reveals, the big line, the feature board, the end with the S logo, the footer.
   Written by the page builder (build_game_pages.py) from PAGE_CSS; index.html does not use it. */
* { box-sizing: border-box; }
html { background: #000; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #000; color: var(--paper); font: 400 16px/1.5 "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--edge); }
.kick { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.h2 { margin: 0; font-size: clamp(32px, 4vw, 64px); line-height: .98; font-weight: 700; letter-spacing: .012em; text-transform: uppercase; }
.fine { margin: 18px 0 0; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.42); }
.sec { padding: clamp(64px, 8vw, 120px) 0 0; }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.sec__note { margin: 0; max-width: 32em; color: rgba(255,255,255,.62); }
.btn--solid { background: var(--paper); color: #000; border-color: var(--paper); }
.btn--solid:hover, .btn--solid:focus-visible { background: rgba(255,255,255,.84); }
.btn svg { width: 13px; height: 10px; }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--soft), transform 1.1s var(--soft); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.rise { animation: rise 1s var(--soft) backwards; animation-delay: calc(var(--i, 0) * 100ms + 160ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
/* The page you are on keeps a quiet highlight in the bar's capsule (assets/site.js puts the glow there). */
.navbtn.is-here { color: var(--paper); }
/* A #fragment jump from another page lands below the fixed bar. */
main [id] { scroll-margin-top: var(--header); }

/* The row of pill buttons (hero, end). */
.hero__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- The big line ---------- */
.line { padding: clamp(80px, 10vw, 150px) var(--edge) 0; text-align: center; }
.line__big { margin: 0 auto; max-width: 18em; font-size: clamp(34px, 5.2vw, 88px); line-height: 1; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.line__big span { display: block; }
.line__big span:first-child { color: rgba(255,255,255,.38); }
.line__sub { margin: 24px auto 0; max-width: 34em; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: rgba(255,255,255,.7); }

/* ---------- Every feature, and its plan (assets/game.js draws the board from #features-data) ---------- */
.plan { display: grid; justify-items: end; gap: 12px; }
.planpick { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.planpick__glow { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--paper); transition: transform .45s var(--ease), width .45s var(--ease); }
.planpick button { position: relative; z-index: 1; height: 38px; padding: 0 22px; border-radius: 999px; font: 600 12px/1 "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); transition: color .35s var(--ease); }
.planpick button:hover { color: var(--paper); }
.planpick button[aria-checked="true"] { color: #000; }
.fcount { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.fcount b { font-weight: 600; color: var(--paper); }
.fcats { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 18px; padding: 2px 0 6px; }
.fcats[hidden] { display: none; }
.fcats button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); font: 600 12px/1 "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: rgba(255,255,255,.7); transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.fcats button small { font-size: 11px; color: rgba(255,255,255,.42); transition: color .25s var(--ease); }
.fcats button:hover { border-color: rgba(255,255,255,.45); color: var(--paper); }
.fcats button[aria-selected="true"] { background: var(--paper); border-color: var(--paper); color: #000; }
.fcats button[aria-selected="true"] small { color: rgba(0,0,0,.5); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; align-items: start; }
.fgroup { grid-column: 1 / -1; margin: 22px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.fgroup:first-child { margin-top: 0; }
.fgroup small { margin-left: 6px; font-size: 12px; color: rgba(255,255,255,.35); }
.feat { padding: 18px 20px 16px; border-radius: 16px; cursor: pointer; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.025); transition: opacity .4s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease); animation: featIn .55s var(--soft) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes featIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
.feat:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.045); }
.feat.is-locked { opacity: .34; }
.feat.is-locked:hover { opacity: .62; }
.feat__top { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 14px; text-align: left; }
.feat__name { font-size: 15px; line-height: 1.25; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.feat__chev { display: none; flex: none; width: 10px; height: 6px; margin-left: 2px; opacity: .6; transition: transform .3s var(--ease); }
/* Coming soon (game.js): dashed like the plans page's Coming soon box, with the words under the name. */
.feat.is-soon { border-style: dashed; border-color: rgba(255,255,255,.26); }
.feat__soon { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.5); }
.tag { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.34); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.tag[data-p="Pro"] { border-color: transparent; background: rgba(255,255,255,.16); color: var(--paper); }
.tag[data-p="Max"] { border-color: var(--paper); background: var(--paper); color: #000; }
.tag svg { display: none; width: 8px; height: 10px; }
.feat.is-locked .tag svg { display: block; }
.feat__d { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.64); }
.feat__tiers { display: flex; gap: 4px; margin-top: 12px; }
.feat__tiers span { flex: 1; padding: 7px 8px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 12px; font-weight: 600; text-align: center; color: rgba(255,255,255,.5); transition: background-color .3s var(--ease), color .3s var(--ease); }
.feat__tiers small { display: block; margin-bottom: 3px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.feat__tiers span.is-on { background: rgba(255,255,255,.16); color: var(--paper); }
.feat__n { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); transition: color .2s; }
.feat:hover .feat__n, .feat.is-open .feat__n { color: var(--paper); }
.feat__n i { position: relative; width: 15px; height: 15px; border-radius: 50%; border: 1px solid currentColor; transition: transform .3s var(--ease); }
.feat__n i::before, .feat__n i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.feat__n i::after { transform: translate(-50%, -50%) rotate(90deg); }
.feat.is-open .feat__n i { transform: rotate(45deg); }
.feat__set { display: none; flex-wrap: wrap; gap: 5px; margin: 12px 0 0; padding: 0; list-style: none; cursor: default; }
.feat.is-open .feat__set { display: flex; }
.feat__set li { padding: 5px 9px; border-radius: 6px; background: rgba(255,255,255,.06); font-size: 12px; color: rgba(255,255,255,.75); }
.fine a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }
.fine a:hover { color: var(--paper); }

/* ---------- The end: the S comes together, one line, the way in ---------- */
.end { position: relative; display: grid; justify-items: center; gap: 30px; padding: clamp(110px, 12vw, 180px) var(--edge) clamp(70px, 8vw, 110px); text-align: center; overflow-x: clip; }
.end::before { content: ""; position: absolute; left: 50%; top: clamp(30px, 5vw, 80px); width: min(980px, 140vw); height: clamp(380px, 40vw, 560px); transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,255,255,.09), rgba(255,255,255,0)); pointer-events: none; }
.end > * { position: relative; z-index: 1; }
.end .h2 { max-width: 16em; text-wrap: balance; }
/* The S mark: assets/game.js flies its shards together on the canvas as the section comes up. */
.mark3d { --mh: clamp(150px, 18vw, 250px); width: calc(var(--mh) * 548 / 786); height: var(--mh); margin-bottom: 10px; perspective: 900px; }
.mark3d__tilt { position: absolute; inset: 0; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); }
.mark3d canvas { position: absolute; left: 50%; top: 50%; width: 340%; height: 190%; transform: translate(-50%, -50%); pointer-events: none; }
.mark3d.is-whole canvas { filter: drop-shadow(0 0 22px rgba(255,255,255,.2)); }
.mark3d.is-snap canvas { animation: snap 1.1s var(--soft); }
@keyframes snap { 0% { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); } 28% { filter: drop-shadow(0 0 48px rgba(255,255,255,.75)); } 100% { filter: drop-shadow(0 0 22px rgba(255,255,255,.2)); } }
.foot { padding: 0 var(--edge) 34px; }
.foot__next { display: flex; flex-direction: column; gap: 10px; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: clamp(26px, 3vw, 44px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.foot__next small { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: rgba(255,255,255,.55); }
.foot__next svg { width: .6em; height: .4em; transition: transform .3s var(--ease); }
.foot__next:hover svg { transform: translateX(6px); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.foot__row img { height: 24px; width: auto; }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
.foot__row a:hover { color: var(--paper); }
/* The legal links under every footer (payments' launch list). Never upper-cased: the first two are statutory labels. */
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: rgba(255,255,255,.55); }
.foot__legal a:hover { color: var(--paper); }

@media (max-width: 899px) {
  .plan { justify-items: start; }
  .planpick button { padding: 0 18px; }
}
@media (max-width: 640px) {
  .fcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--edge)); padding-right: var(--edge); }
  .fcats::-webkit-scrollbar { display: none; }
  .fgrid { gap: 0; }
  .fgroup { margin: 28px 0 6px; }
  .feat { padding: 0 2px; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; background: none; }
  .feat:hover { background: none; }
  .feat.is-soon { border-style: solid; border-color: rgba(255,255,255,.1); }
  .feat__top { align-items: center; padding: 15px 0; }
  .feat__name { flex: 1; font-size: 14px; }
  .feat__chev { display: block; }
  .feat.is-open .feat__chev { transform: rotate(180deg); }
  .feat__d, .feat__tiers, .feat__n { display: none; }
  .feat.is-open { padding-bottom: 16px; }
  .feat.is-open .feat__d { display: block; margin-top: 0; }
  .feat.is-open .feat__tiers { display: flex; }
}
