/* Shared look for the long-form pages (How it works, Privacy, Terms). */
@font-face { font-family: "Pixelify Sans"; src: url(/fonts/f-jerseyfull.woff2) format("woff2"); font-weight: 400 700; size-adjust: 118%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
:root { --ink: #120d26; --cream: #fbf1d6; --sun: #ff5560; --teal: #52d6b5; --orange: #ff8a4f; --mute: #cfc8ee;
  --px: "Pixelify Sans", "Hanken Grotesk", system-ui, sans-serif; --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; color: var(--cream); font: 17px/1.65 var(--body); background: #0b1030 url(/img/hero.jpg?v=9) center top / cover fixed; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; background: linear-gradient(180deg, #0b1030cc, #0b1030f2 40%); z-index: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.wrap { position: relative; z-index: 1; width: min(100% - 36px, 860px); margin: 0 auto; padding: 22px 0 56px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font: 700 26px/1 var(--px); text-shadow: 3px 3px 0 var(--ink); }
.brand .mark { width: 64px; height: 36px; display: block; filter: drop-shadow(0 3px 0 #120d26); }
.nav nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav nav a { color: var(--mute); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav nav a.home { color: var(--ink); background: var(--sun); padding: 8px 14px; border-bottom: 0; font-weight: 600; letter-spacing: .04em; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px var(--ink); transition: transform .1s; }
.nav nav a.home:hover { color: var(--ink); transform: translateY(-2px); }
.nav nav { align-items: center; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--cream); border-bottom-color: var(--sun); }
h1 { font: 700 clamp(34px, 6vw, 56px)/1.05 var(--px); margin: 38px 0 10px; text-shadow: 4px 4px 0 var(--ink); text-wrap: balance; }
.lede { font-size: 19px; color: var(--mute); margin: 0 0 28px; max-width: 62ch; }
.doc { background: repeating-linear-gradient(0deg, #ffffff06 0 2px, transparent 2px 4px), linear-gradient(180deg, #1c1748f2, #0b0a24f7); border-radius: 6px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 0 0 3px #120d26, 0 0 0 6px #ff5560, 0 0 0 9px #120d26, 0 24px 60px #000a; }
.doc h2 { font: 700 26px/1.2 var(--px); color: var(--sun); margin: 38px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 700 18px/1.3 var(--body); margin: 24px 0 6px; color: #fff; }
.doc p, .doc li { color: #e7e2ff; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; } .doc li { margin: 6px 0; }
.doc a { color: var(--sun); }
.doc code { font: 500 .88em ui-monospace, Menlo, Consolas, monospace; background: #ffffff14; padding: 2px 6px; border-radius: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #ffffff1f; }
.doc th { color: var(--sun); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.note { border-left: 4px solid var(--sun); background: #ff556014; padding: 12px 16px; margin: 0 0 18px; border-radius: 0 4px 4px 0; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: #ffffff0a; border-radius: 4px; box-shadow: inset 0 0 0 2px #ffffff1a; min-height: 58px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; font: 700 17px/1 var(--body); color: var(--ink); background: var(--teal); border-radius: 4px; box-shadow: 0 0 14px #52d6b566; }
.steps b { color: #fff; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14.5px; }
.flow li { background: #ffffff10; padding: 6px 12px; border-radius: 3px; box-shadow: inset 0 0 0 2px #ffffff1f; margin: 0; }
.flow li + li::before { content: "\2192"; color: var(--sun); margin-right: 8px; }
.flow li.ok { color: #7ff0d2; box-shadow: inset 0 0 0 2px #52d6b588; } .flow li.bad { color: #ffb08a; box-shadow: inset 0 0 0 2px #ff8a4f88; }
.cta { display: inline-block; margin-top: 8px; background: var(--sun); color: var(--ink); font: 600 15px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 14px 22px; text-decoration: none; box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink); }
.doc a.cta { color: var(--ink); }
.foot { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; font-size: 14px; color: var(--mute); }
.foot a { color: var(--mute); } .foot a:hover { color: var(--cream); }
.updated { color: var(--mute); font-size: 14px; margin: 0 0 22px; }
@media (max-width: 600px) { body { font-size: 16px; } .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc tr { padding: 8px 0; border-bottom: 1px solid #ffffff1f; } .doc td { border: 0; padding: 4px 0; } .doc td:first-child { color: var(--sun); font-weight: 600; } }

/* ---- going rates ---- */
.wrap:has(.rates) { width: min(100% - 36px, 1100px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rtools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.rtools input { flex: 1 1 260px; max-width: 420px; padding: 13px 16px; font: 500 16px/1 var(--body); color: var(--cream); background: #0b1030e6; border: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px #ffffff2e; }
.rtools input:focus { outline: 3px solid var(--sun); outline-offset: 2px; }
.rstamp { color: var(--mute); font-size: 14px; }
.rnote { background: #0b1030e6; border-left: 4px solid var(--sun); padding: 12px 16px; border-radius: 0 4px 4px 0; margin: 0 0 18px; }
.rexample { grid-column: 1 / -1; margin: 0; padding: 10px 14px; background: var(--sun); color: var(--ink); font-weight: 700; letter-spacing: .04em; border-radius: 3px; }
.rnone { color: var(--mute); }
.rside { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rn { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .rn b { font: 700 16px/1 var(--body); letter-spacing: .04em; } .rn small { font: 500 12.5px/1.1 var(--body); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rswap { flex: none; color: var(--sun); font: 700 20px/1 var(--body); }
.mark { flex: none; width: 40px; height: 40px; border-radius: 6px; box-shadow: 0 0 0 2px #120d26, 0 0 0 4px #ffffff33; object-fit: cover; }
.mono { display: grid; place-items: center; font: 700 20px/1 var(--px); color: #fff; text-shadow: 0 2px 0 #0008; background: linear-gradient(160deg, hsl(var(--h) 55% 38%), hsl(var(--h) 60% 18%)); }
.rprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rone { color: var(--mute); font-size: 15px; width: 100%; }
.rbig { font: 700 28px/1 var(--body); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000a; }
.runit { font: 600 18px/1 var(--body); color: var(--sun); }
.rchg { font: 700 14px/1 var(--body); padding: 7px 10px; border-radius: 3px; white-space: nowrap; }
.rchg.up { color: #7ff0d2; background: #52d6b522; box-shadow: inset 0 0 0 2px #52d6b566; }
.rchg.down { color: #ffb08a; background: #ff8a4f22; box-shadow: inset 0 0 0 2px #ff8a4f66; }
.rchg.flat { color: var(--mute); background: #ffffff10; box-shadow: inset 0 0 0 2px #ffffff22; }
.rstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.rstats div { background: #ffffff0a; padding: 8px 10px; border-radius: 3px; }
.rstats dt { font: 600 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px; }
.rstats dd { margin: 0; font: 600 15px/1.2 var(--body); font-variant-numeric: tabular-nums; }
.rfine { margin: 26px 0 0; color: var(--mute); font-size: 14px; max-width: 70ch; }
/* live market board */
.rlive { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #7ff0d2; }
.rlive::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 #52d6b588; animation: rpulse 2s infinite; }
.rlive.off { color: var(--orange); } .rlive.off::before { background: var(--orange); animation: none; }
@keyframes rpulse { 70% { box-shadow: 0 0 0 9px #52d6b500; } 100% { box-shadow: 0 0 0 0 #52d6b500; } }
.rtable { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.rtable thead th { text-align: left; font: 600 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 4px 12px; white-space: nowrap; }
.rsort { all: unset; cursor: pointer; letter-spacing: inherit; text-transform: inherit; } .rsort:hover, .rsort.on { color: var(--sun); } .rsort:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.rrow { cursor: pointer; background: linear-gradient(180deg, #1c1748f2, #0b0a24f5); } .rrow td { padding: 12px; vertical-align: middle; background: inherit; }
.rrow td:first-child { border-radius: 6px 0 0 6px; } .rrow td:last-child { border-radius: 0 6px 6px 0; }
.rrow:hover td, .rrow.open td { background: #261f5cf5; }
.rrow.open td:first-child, .rdrow td { box-shadow: inset 3px 0 0 var(--sun); }
.rrow.tick-up td { animation: rtickup 1.6s ease-out; } .rrow.tick-down td { animation: rtickdn 1.6s ease-out; }
@keyframes rtickup { 0% { background: #52d6b566; } } @keyframes rtickdn { 0% { background: #ff8a4f66; } }
.rpair { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-price { white-space: nowrap; } .c-price .rone { display: block; width: auto; font-size: 13px; line-height: 1.2; }
.c-trend .spark { width: 130px; height: 40px; display: block; }
.c-offers { display: flex; flex-direction: column; gap: 3px; font: 600 14px/1.2 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-vol { white-space: nowrap; } .c-vol small { color: var(--mute); font-size: 13px; }
.rdrow td { padding: 0; background: #14103a; border-radius: 6px; }
.rdetail { padding: 16px 18px 18px; display: grid; gap: 14px; }
.rbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rtitle { font: 700 18px/1 var(--body); color: var(--sun); }
.rtabs { display: inline-flex; gap: 6px; }
.rtab { cursor: pointer; font: 600 14px/1 var(--body); padding: 9px 13px; color: var(--cream); background: #ffffff10; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 2px #ffffff22; }
.rtab.on { color: var(--ink); background: var(--sun); box-shadow: none; }
.rchart { position: relative; } .bigchart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.rtip { position: absolute; top: 6px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; font-size: 13px; line-height: 1.25; background: #0b1030f2; border-radius: 4px; box-shadow: inset 0 0 0 2px #ffffff33; pointer-events: none; white-space: nowrap; }
.rtip b { font-size: 15px; font-variant-numeric: tabular-nums; } .rtip span { color: var(--mute); }
.rdetail .rstats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rdetail .rfine { margin: 0; }
@media (max-width: 980px) {
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; } .rtable thead { display: none; }
  .rrow { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; border-radius: 6px; margin-bottom: 8px; } .rrow td { padding: 0; border-radius: 0 !important; background: none !important; }
  .rrow.tick-up, .rrow.tick-down { animation: none; } .rrow.open { box-shadow: inset 3px 0 0 var(--sun); }
  .c-pair { grid-column: 1 / -1; } .c-price { grid-column: 1; } .c-move { grid-column: 2; text-align: right; } .c-trend { grid-column: 1; } .c-offers { grid-column: 2; align-items: flex-end; } .c-vol { grid-column: 1 / -1; }
  .rdrow { margin: -4px 0 8px; } .rdrow td { border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .rlive::before, .rrow.tick-up td, .rrow.tick-down td { animation: none; } }
.c-price .runit { margin-left: 5px; font-size: 15px; }
.rtip[hidden] { display: none; }

/* ---- shared plate style (matches the home page's trade log, steps and player plates) ---- */
.plate { filter: drop-shadow(3px 0 0 #ff5560) drop-shadow(-3px 0 0 #ff5560) drop-shadow(0 3px 0 #ff5560) drop-shadow(0 -3px 0 #ff5560) drop-shadow(0 14px 26px #000c); }
.doc { border-radius: 0; box-shadow: inset 0 0 0 2px #ff556055, inset 0 0 0 5px #0b0a24; clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); padding: clamp(26px, 4.4vw, 48px); }
.doc h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; }
.doc h2::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--sun); transform: rotate(45deg); box-shadow: 0 0 10px var(--sun); }
.doc h3 { color: var(--sun); font: 700 13px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.doc th { background: #ff556014; padding: 9px 12px; }
.doc td, .doc th { border-bottom: 1px solid #ffffff1a; }
.note { border-left: 0; background: repeating-linear-gradient(0deg, #ffffff07 0 2px, transparent 2px 4px), #ff556012; box-shadow: inset 0 0 0 2px #ff556055; border-radius: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.steps li { border-radius: 0; box-shadow: inset 0 0 0 2px #ff556033; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.steps li::before { border-radius: 0; font-family: var(--body); font-weight: 800; }
.flow li { border-radius: 0; }
.cta { clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); box-shadow: none; }
.rcard { border-radius: 0; box-shadow: inset 0 0 0 2px #ff556055, inset 0 0 0 5px #0b0a24, 0 14px 26px #000b; clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); padding: 22px; }
.rcard.example { box-shadow: inset 0 0 0 2px #ff556099, inset 0 0 0 5px #0b0a24; }
.rbig { font-family: var(--body); font-weight: 800; }
.rstats div, .roffers p { border-radius: 0; }
.rexample { border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.rtools input { border-radius: 0; box-shadow: inset 0 0 0 2px #ff556055, inset 0 0 0 4px #0b0a24; background: #0b0a24; }
.rtools input:focus { outline-offset: 0; }
.mark { border-radius: 0; }

/* ---- charts: a game-HUD plate, scanlines, glowing staircase lines ---- */
.rdetail { position: relative; padding: 20px 22px 18px; background: repeating-linear-gradient(0deg, #ffffff06 0 2px, transparent 2px 4px), linear-gradient(180deg, #19143f, #0a0922); box-shadow: inset 0 0 0 2px #ff556066, inset 0 0 0 5px #0a0922; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.rbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rtitle { font: 700 20px/1 var(--px); color: #fff; letter-spacing: .02em; }
.rtab { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; color: #cfc8ee; background: #ffffff10; border: 0; border-radius: 0; cursor: pointer; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.rtab.on { background: var(--sun); color: var(--ink); }
.bigchart { background: linear-gradient(180deg, #ffffff05, transparent); }
.bigchart text { font-family: var(--body); font-weight: 600; }
.glow { filter: drop-shadow(0 0 5px currentColor); }
polyline.glow { filter: drop-shadow(0 0 4px #ffffff88); }
.spark { filter: none; }
.rtip { background: #0a0922; box-shadow: inset 0 0 0 2px var(--sun); border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); padding: 8px 12px; }
.rtable .rrow td { background: repeating-linear-gradient(0deg, #ffffff06 0 2px, transparent 2px 4px), linear-gradient(180deg, #1c1748f2, #0b0a24f5); }
.rtable .rrow td:first-child { border-radius: 0; } .rtable .rrow td:last-child { border-radius: 0; }
.rsort { font-family: var(--body); letter-spacing: .12em; }
.rstats div { background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff14; }
.rchg { border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }

/* ---- page titles sit on the same banner art as the games ---- */
.pbanner { --bp: 17%; width: min(100%, 540px); aspect-ratio: var(--ba, 4.4); margin: 30px auto 6px; display: grid; place-items: center; padding: 0 var(--bp); background: var(--banner) center / 100% 100% no-repeat; filter: drop-shadow(0 8px 12px #000c); }
.pbanner h1 { margin: 0; font: 700 clamp(26px, 6vw, 38px)/1 var(--px); text-align: center; color: #fff; text-shadow: 0 3px 0 #000c, 0 0 10px #000c; letter-spacing: .02em; white-space: nowrap; }
.pb-how-it-works { --banner: url(/img/f-cog-banner.png); --ba: 4.13; --bp: 19%; }
.pb-rates { --banner: url(/img/f-neon-banner.png); --ba: 5.76; --bp: 17%; }
.pb-privacy { --banner: url(/img/f-lyrania-banner.png); --ba: 6.64; --bp: 19%; }
.pb-terms { --banner: url(/img/f-steel-banner.png); --ba: 5.36; --bp: 12%; }
.lede { text-align: center; margin: 12px auto 26px; padding: 12px 18px; max-width: 64ch; background: #0b0a24d9; box-shadow: inset 0 0 0 2px #ff556044; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.ico { width: 28px; height: 28px; flex: none; image-rendering: auto; filter: drop-shadow(0 2px 2px #000a); }
.doc h2::before { display: none; }
.doc h2 { border-bottom: 2px solid #ff556040; padding-bottom: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h2 .ico + * { }
/* the owner steps, same cards as the home page */
.quest { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.quest li { margin: 0; padding: 0; }
.stepw { position: relative; filter: drop-shadow(3px 0 0 var(--sun)) drop-shadow(-3px 0 0 var(--sun)) drop-shadow(0 3px 0 var(--sun)) drop-shadow(0 -3px 0 var(--sun)) drop-shadow(0 10px 14px #000b); }
.step { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; height: 100%; background: repeating-linear-gradient(0deg, #ffffff07 0 2px, transparent 2px 4px), linear-gradient(180deg, #1c1748, #0b0a24); box-shadow: inset 0 0 0 2px #ff556055, inset 0 0 0 5px #0b0a24; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.step .slot { flex: none; width: 60px; height: 60px; }
.step img.tile { width: 100%; height: 100%; border-radius: 4px; display: block; }
.stx small { display: block; font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 5px; }
.stx b { display: block; font: 700 21px/1.1 var(--px); color: #fff; margin-bottom: 5px; }
.stx p { margin: 0; font-size: 14px; line-height: 1.35; color: #e7e2ff; }
.doc table { background: #ffffff05; }
.doc thead th { background: #ff556018; }
.doc code { background: #ff55601c; color: #ffd6d9; }
.doc a { color: #ff8e96; }
.cta { background: var(--sun); }
.rcard, .rtable .rrow td { box-shadow: none; }
.rdrow td { padding-top: 0; }

/* ---- the sky palette on the inner pages too: plum and navy panels over a pixel-noise texture ---- */
:root { --plum: #4d2145; --plum2: #5b2a53; --navy: #18304c; --navy2: #203f60; --tex: url(/img/tex-noise.png) 0 0 / 64px 64px; }
.doc { background: var(--tex), repeating-linear-gradient(0deg, #ffffff06 0 2px, transparent 2px 4px), linear-gradient(160deg, #3a1a3df2, #2a1a42f5 45%, #14263ff5); }
.rcard, .rrow, .rtable .rrow td { background: var(--tex), linear-gradient(180deg, #2b1a45f2, #14263ff5); }
.lede { background: var(--tex), linear-gradient(90deg, #3a1a3de6, #14263fe6); }
.step { background: var(--tex), linear-gradient(155deg, var(--plum2), #2d1741 55%, var(--navy)); }

/* ---- palette from the hero art on the inner pages: night teal/navy/forest on one side, plum/rose/ember on the other, varied by section ---- */
:root { --pal-navy: #18304c; --pal-teal: #2d5a6c; --pal-forest: #1c443c; --pal-moss: #3b5a3e; --pal-plum: #4d2145; --pal-mauve: #6b2a4f; --pal-rose: #7a3446; --pal-ember: #8a4a2c; --scan: repeating-linear-gradient(0deg, #ffffff08 0 2px, transparent 2px 4px); }
.doc { background: var(--scan), linear-gradient(165deg, #1b2c4cf5, #2a1a40f5 55%, #3a1c3cf5); }
.lede { background: var(--scan), linear-gradient(90deg, #18304ce8, #4d2145e8); }
.rcard, .rrow, .rtable .rrow td { background: var(--scan), linear-gradient(180deg, #1d3350f5, #2b1a40f5); }
.quest > li:nth-child(1) .step, .stepw.s1 .step { background: var(--scan), linear-gradient(170deg, var(--pal-teal), var(--pal-navy) 60%, var(--pal-forest)); }
.quest > li:nth-child(2) .step, .stepw.s2 .step { background: var(--scan), linear-gradient(170deg, var(--pal-mauve), var(--pal-plum) 60%, var(--pal-navy)); }
.quest > li:nth-child(3) .step, .stepw.s3 .step { background: var(--scan), linear-gradient(170deg, var(--pal-ember), var(--pal-rose) 55%, var(--pal-plum)); }
.doc h2 { text-shadow: 0 2px 0 #000a; }

/* buttons use the same pixel button kit as the home page */
.nav nav a.home, .nav nav a.btn, .cta, .doc a.cta { display: inline-block; padding: 4px 14px 5px; border: 11px solid transparent; border-image: url(/img/f-ui-button.png) 22 fill / 11px stretch; background: none; color: #2b0a12; text-shadow: 0 1px 0 #ffffff66; font: 700 14px/1 var(--px); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: none; clip-path: none; transition: filter .1s; }
.nav nav a.home:hover, .nav nav a.btn:hover, .cta:hover { color: #2b0a12; transform: none; filter: brightness(1.12); border-bottom-color: transparent; }
.nav nav a.home:active, .nav nav a.btn:active, .cta:active { transform: translateY(2px); filter: brightness(.94); }
.nav nav a.btn { margin-left: 6px; }
.nav nav a[aria-current] { color: var(--cream); border-bottom-color: #ff5560; }
.nav nav { gap: 16px; }
.nav nav a:not(.home):not(.btn) { font: 600 14px/1 var(--px); letter-spacing: .04em; padding: 6px 0; }
.brand .mark { box-shadow: none; border-radius: 0; object-fit: contain; }

/* header: the brand and the connect button are matching framed buttons, 220 x 52, one in each sky's colour */
.nav .brand, .nav nav a.btn { box-sizing: border-box; width: 220px; height: 52px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 12px; border: 8px solid transparent; border-image-slice: 8 fill; border-image-width: 8px; border-image-repeat: stretch; background: none; box-shadow: none; color: #fff; text-shadow: 0 2px 0 #000a; }
.nav .brand { border-image-source: url(/img/f-btnr-card.png?v=2); gap: 10px; font-size: 22px; }
.nav .brand .mark { width: 44px; height: 26px; }
.nav nav a.btn { border-image-source: url(/img/f-btnl-card.png?v=2); font-size: 13px; letter-spacing: .06em; margin-left: 6px; }
.nav nav a.btn:hover { filter: brightness(1.15); color: #fff; }
.top .btn, .nav nav a.btn { font-size: 16px; letter-spacing: .1em; }

/* ======== the Gemini-drawn frame kit from the home page (9-slice border-images) ======== */
.plate { filter: drop-shadow(0 14px 26px #000c) !important; }
.doc { border: solid transparent !important; border-width: 30px !important; border-image: url(/img/f-wcard-frame.png) 75 / 30px stretch !important; clip-path: none !important; box-shadow: none !important; background-clip: padding-box !important; background: repeating-linear-gradient(0deg, #ffffff05 0 2px, transparent 2px 4px), linear-gradient(180deg, #1c1748f2, #0b0a24f7) !important; image-rendering: pixelated; padding: clamp(10px, 2.6vw, 24px) !important; }
.doc * { image-rendering: auto; }
.stepw { filter: none !important; }
.stepw .step { border: solid transparent !important; border-width: 14px !important; clip-path: none !important; box-shadow: none !important; background-clip: padding-box !important; image-rendering: pixelated; padding: 6px 8px !important; }
.stepw.s1 .step { border-image: url(/img/f-s1-frame.png) 50 / 14px stretch !important; }
.stepw.s2 .step { border-image: url(/img/f-s2-frame.png) 50 / 14px stretch !important; }
.stepw.s3 .step { border-image: url(/img/f-s3-frame.png) 50 / 14px stretch !important; }
.step .slot { width: 76px !important; height: 64px !important; display: grid; place-items: center; background: none !important; box-shadow: none !important; clip-path: none !important; }
.step img.tile { width: auto !important; height: 58px !important; max-width: 74px; object-fit: contain; border-radius: 0 !important; image-rendering: auto; filter: drop-shadow(0 2px 0 #0008); }
.nav .brand, .nav nav a.btn, .nav nav a.home, .cta, .doc a.cta { border: solid transparent !important; border-width: 11px !important; clip-path: none !important; box-shadow: none !important; background-clip: padding-box !important; image-rendering: pixelated; }
.nav .brand { border-image: url(/img/f-bt2-frame.png) 40 / 11px stretch !important; background: #4a1f3c !important; }
.nav nav a.btn, .nav nav a.home, .cta, .doc a.cta { border-image: url(/img/f-bt1-frame.png) 40 / 11px stretch !important; background: #1d4a63 !important; color: #fff !important; }
.lede, .note { border: solid transparent !important; border-width: 11px !important; border-image: url(/img/f-lcard-frame.png) 40 / 11px stretch !important; clip-path: none !important; box-shadow: none !important; background-clip: padding-box !important; background: #1a0f2cd9 !important; image-rendering: pixelated; }
.rcard, .rdetail { border: solid transparent !important; border-width: 14px !important; border-image: url(/img/f-s2-frame.png) 50 / 14px stretch !important; clip-path: none !important; box-shadow: none !important; background-clip: padding-box !important; image-rendering: pixelated; }
.rcard *, .rdetail * { image-rendering: auto; }
/* header: brand left, links and the Connect button right, on one line */
.nav { flex-wrap: wrap; }
.nav nav { flex-wrap: nowrap; gap: 14px; }
.nav .brand { width: 190px !important; height: 50px !important; font-size: 20px !important; }
.nav nav a.btn { width: 150px !important; height: 50px !important; margin: 0 !important; }
.nav nav a.home { padding: 0 8px !important; height: 44px; display: inline-flex !important; align-items: center; }
body::before { background: linear-gradient(180deg, #0b103055 0%, #0b103099 45%, #0b1030e0 100%) !important; }
@media (max-width: 760px) { .nav nav { flex-wrap: wrap; } }

/* ======== inner pages wear the same recurring frame as the home page (frame.js), no game banners ======== */
html .fr.fr.fr.fr { box-sizing: border-box; border: 12px solid transparent !important; border-image: none !important; background-color: transparent !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; background-origin: border-box !important; background-clip: border-box !important; box-shadow: none !important; clip-path: none !important; filter: none !important; image-rendering: pixelated; color: #fff3f0; text-shadow: 0 2px 0 #000a; }
.plate { filter: none !important; }
.pbanner { width: auto; max-width: 100%; display: block; margin: 30px auto 6px; padding: 14px 30px 12px; aspect-ratio: auto; }
.pbanner h1 { font: 700 clamp(26px, 5vw, 38px)/1.1 var(--px); white-space: normal; text-align: center; }
html .doc.fr { padding: 22px 28px 26px; }
html .lede.fr, html .note.fr { padding: 10px 18px; }
html .rcard.fr, html .rdetail.fr { padding: 10px 14px; }
html .stepw .step.fr { padding: 8px 12px; }
html .nav .brand.fr, html .nav nav a.btn.fr { height: 52px !important; width: auto !important; min-width: 150px; padding: 0 14px !important; display: flex; align-items: center; justify-content: center; font: 700 16px/1 var(--body); letter-spacing: .03em; text-transform: none; margin: 0 !important; }
html .nav .brand.fr { font: 700 22px/1 var(--px); min-width: 190px; }
html .cta.fr, html .doc a.cta.fr { display: inline-block; padding: 8px 20px; font: 700 16px/1 var(--body); color: #fff !important; text-decoration: none; }
.nav nav a:not(.btn) { font: 700 16px/1 var(--body); letter-spacing: .03em; color: #fff3f0; text-shadow: 0 2px 0 #000a; }
html .nav nav a:not(.home):not(.btn) { font: 700 16px/1 var(--body); letter-spacing: .03em; }

/* ---- connect your game ---- */
.cnform { display: grid; gap: 12px; max-width: 560px; margin: 8px 0 18px; }
.cnf { display: grid; gap: 4px; }
.cnf span { font: 700 13px/1 var(--body); letter-spacing: .04em; color: #ffd7a3; }
.cnf input, .cnf textarea { font: 500 15px/1.3 var(--body); color: #fff3f0; background: #120d26; border: 3px solid #3c2552; padding: 9px 11px; border-radius: 0; width: 100%; box-sizing: border-box; }
.cnf input:focus, .cnf textarea:focus { outline: none; border-color: #8fd3e8; }
.cnmsg { margin: 0; min-height: 1.3em; color: #ff9aa2; font-weight: 600; }
.cnsteps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 12px 0 18px; }
.cnsteps li { flex: 1; text-align: center; padding: 8px 4px; font: 700 14px/1 var(--body); background: #120d26; color: #8a7fa6; border: 3px solid #3c2552; }
.cnsteps li.on { color: #9ff3d9; border-color: #3f8f78; }
.cnblock { margin: 18px 0; }
.cnblock h3 { margin: 0 0 6px; }
.cnsecret { display: block; padding: 12px; background: #120d26; border: 3px solid #8fd3e8; word-break: break-all; font-size: 15px; user-select: all; }
.cncode { margin: 8px 0; }
.cntabs { display: flex; gap: 6px; margin-bottom: 6px; }
.cntabs button { font: 700 14px/1 var(--body); padding: 8px 14px; color: #c9bde0; background: #120d26; border: 3px solid #3c2552; cursor: pointer; }
.cntabs button.on { color: #fff; border-color: #8fd3e8; }
.cntabs .cncopy { margin-left: auto; }
.cncode pre { margin: 0; max-height: 420px; overflow: auto; padding: 12px; background: #0b0818; border: 3px solid #3c2552; font-size: 13px; line-height: 1.45; white-space: pre; }
.cnres ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.cnres li { padding: 8px 10px; background: #120d26; border-left: 6px solid #3c2552; display: grid; gap: 3px; }
.cnres li.ok { border-left-color: #3f8f78; }
.cnres li.bad { border-left-color: #c24a5a; }
.cnres li span { font-size: 14px; color: #ffc9ce; }
.cnok { color: #9ff3d9; font-weight: 700; }
.cnbad { color: #ff9aa2; font-weight: 700; }

.lkpair { display: flex; align-items: center; gap: 14px; margin: 14px 0; flex-wrap: wrap; }
.lkpair i { font: 700 28px/1 var(--px); font-style: normal; color: #ffd7a3; }
.lkrow { display: grid; gap: 4px; padding: 12px 16px; background: #120d26; border: 3px solid #3c2552; min-width: 180px; }
.lkrow b { color: #ffd7a3; }
.lkbtns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta.alt { filter: saturate(.5) brightness(.9); }
html input.fr.fr.fr.fr, html textarea.fr.fr.fr.fr { text-shadow: none; }
html input.fr.fr.fr.fr:focus-visible, html textarea.fr.fr.fr.fr:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
