/* The v2 design (owner 2026-09-27: "overhaul all our pages to match the landing page, and make them modern").
 * Loaded only when header.php's $V2 is on (the ?v2=1 preview), so everything here is a layer over site.css and
 * landing.css rather than a rewrite of them: switching v2 off returns the old site untouched.
 *
 * What changes, and why (marketing review 2026-09-27):
 *  - Interior pages open on a short page header with the section's own character, not the home page's trailer
 *    band again. A visitor who clicked FAQ sees FAQ, and every page still carries the sign-up button.
 *  - The section's pages are a sticky tab bar, so moving between them never needs a scroll back up.
 *  - Content reads like a modern site: bigger type, more air, softer cards, clear tables.
 *  - Every page ends on the offer (the closing band in footer.php) and a proper footer.
 * Colours come from site.css's tokens, so the light (parchment) and dark palettes both keep working. */

body.v2 { --v2-bar: 62px; --v2-w: 1180px; }
@media (max-width: 720px) { body.v2 { --v2-bar: 58px; } }

/* ---- the column: interior content is centred per block, so the page header and tab bar can run full width ---- */
body.v2 .page { max-width: none; padding: 0 0 8px; }
body.v2 #page-body > * { width: min(var(--v2-w), calc(100% - 40px)); margin-left: auto; margin-right: auto; }
body.v2 #page-body > .ph, body.v2 #page-body > .g-lnb { width: 100%; }
body.v2 #page-body[aria-busy="true"] { opacity: .55; transition: opacity .15s; }

/* ---- page header ---------------------------------------------------------------------------------- */
.ph { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  min-height: clamp(440px, 62vh, 660px); background: #0E1330; color: #FFF8E8; }
.ph__bg { position: absolute; inset: -4%; z-index: -2; background: var(--ph-bg) center / cover no-repeat;
  animation: ph-drift 28s ease-in-out infinite alternate; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 14, 36, .95) 0%, rgba(10, 14, 36, .82) 38%, rgba(10, 14, 36, .35) 68%, rgba(10, 14, 36, .45) 100%); }
/* the header melts into the page below instead of ending on a hard edge */
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--paper-2)); }
.ph__face { position: absolute; z-index: 0; right: max(2vw, calc(50% - 600px)); bottom: 0; height: 94%; max-height: 640px; width: auto;
  max-width: none; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .55)); animation: ph-face .9s cubic-bezier(.2, .7, .2, 1) both; }
.ph__inner { position: relative; z-index: 2; width: min(var(--v2-w), calc(100% - 40px)); margin: 0 auto;
  padding: calc(var(--v2-bar) + 56px) 0 96px; display: grid; gap: 16px; }
.ph__inner > * { max-width: min(640px, 58%); margin: 0; animation: ph-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.ph__inner > :nth-child(2) { animation-delay: .06s; } .ph__inner > :nth-child(3) { animation-delay: .12s; }
.ph__inner > :nth-child(4) { animation-delay: .18s; } .ph__inner > :nth-child(5) { animation-delay: .24s; }
.ph__crumb { font: 800 .74rem/1 "Nunito Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #F2CE72; }
.ph__crumb a { color: inherit; text-decoration: none; } .ph__crumb a:hover { color: #fff; }
.ph__crumb span { opacity: .8; margin: 0 6px; }
.ph__title { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1.04;
  color: #FFF8E8; text-shadow: 0 4px 28px rgba(0, 0, 0, .55); letter-spacing: .01em; text-wrap: balance; }
.ph__sub { font-size: 1.14rem; line-height: 1.6; color: #D5DCF5; max-width: 52ch; }
.ph__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; font-weight: 700; color: #C8D2F5; }
.ph__meta > span { padding: 5px 12px; border-radius: 999px; background: rgba(200, 210, 245, .1); border: 1px solid rgba(200, 210, 245, .18); }
.ph__meta .dot { width: 8px; height: 8px; margin-right: 6px; }
.ph__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px !important; }
.ph__ghost { background: rgba(14, 19, 48, .45); color: #FFF8E8; border-color: rgba(255, 248, 232, .45); }
.ph__ghost:hover { color: #fff; border-color: #F2CE72; }
@keyframes ph-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes ph-face { from { opacity: 0; transform: translate3d(40px, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes ph-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  /* phones: the character on top, the words underneath, never on top of each other */
  .ph { min-height: 0; }
  .ph::before { background: linear-gradient(180deg, rgba(10, 14, 36, .2) 0%, rgba(10, 14, 36, .55) 34%, rgba(10, 14, 36, .96) 52%); }
  .ph__face { right: 50%; translate: 50% 0; top: calc(var(--v2-bar) + 8px); bottom: auto; height: 250px; }
  .ph__inner { padding: calc(var(--v2-bar) + 250px) 0 64px; gap: 12px; }
  .ph__title { font-size: 2.3rem; }
  .ph__inner > * { max-width: 100%; }
  .ph__sub { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ph__bg, .ph__face, .ph__inner > * { animation: none; } }

/* ---- section tabs: sticky under the top bar, full width, scrolls sideways on a phone ---------------------- */
body.v2 #page-body > .g-lnb { position: sticky; top: var(--v2-bar); z-index: 15; display: flex; flex-wrap: nowrap; gap: 8px; max-width: none;
  margin: 0 0 40px; padding: 12px 20px; justify-content: safe center; overflow-x: auto; scrollbar-width: none;
  background: rgba(14, 19, 48, .9); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
body.v2 #page-body > .g-lnb::-webkit-scrollbar { display: none; }
body.v2 .g-lnb a { flex: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; white-space: nowrap;
  color: #DDE3F7; background: rgba(200, 210, 245, .08); border: 1px solid rgba(200, 210, 245, .16); text-decoration: none; }
body.v2 .g-lnb a:hover { border-color: #E0AE43; color: #fff; }
body.v2 .g-lnb a[aria-current] { background: linear-gradient(180deg, #F2CE72, #E0AE43); color: #1A1406; border-color: #E0AE43; }
@media (max-width: 720px) { body.v2 #page-body > .g-lnb { display: flex; margin-bottom: 28px; } }
body.v2 #page-body > .ph + :not(.g-lnb) { margin-top: 40px; }

/* ---- content -------------------------------------------------------------------------------------------- */
body.v2.is-page { font-size: 17px; }
body.v2 .panel { border: 1px solid color-mix(in srgb, var(--rule) 75%, transparent); border-top: 1px solid color-mix(in srgb, var(--rule) 75%, transparent);
  border-radius: 20px; margin: 0 auto 30px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 22px 44px -22px rgba(14, 19, 48, .45); }
body.v2 .panel-eyebrow { padding: 26px 32px 0; font-size: .76rem; letter-spacing: .2em; }
body.v2 .panel-title { padding: 26px 32px 0; border-bottom: none; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); line-height: 1.2; }
body.v2 .panel-eyebrow + .panel-title { padding-top: 8px; }
body.v2 .panel-title::after { content: ""; display: block; width: 52px; height: 3px; margin-top: 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }
body.v2 .panel-body { padding: 20px 32px 30px; line-height: 1.72; }
body.v2 .panel-body p { max-width: 74ch; }
body.v2 .panel-body h3 { font-size: 1.18rem; margin-top: 1.4em; }
body.v2 .panel-body > h3:first-child { margin-top: 0; }
@media (max-width: 560px) {
  /* wide tables scroll sideways inside their frame instead of squeezing every column to a word per line */
  body.v2 .panel-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.v2 .panel-body th, body.v2 .panel-body td { min-width: 118px; }
  body.v2 .panel-body td:last-child { min-width: 220px; }
  body.v2 .panel-eyebrow, body.v2 .panel-title { padding-left: 20px; padding-right: 20px; }
  body.v2 .panel-body { padding: 16px 20px 24px; }
}
/* panels rise into place as they scroll in, where the browser can tie an animation to scrolling */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.v2 .panel { animation: v2-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
  }
}
@keyframes v2-rise { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }

/* buttons */
body.v2 .btn { border-radius: 12px; padding: 13px 22px; letter-spacing: .04em; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
body.v2 .btn-play { padding: 15px 28px; box-shadow: 0 10px 24px -10px rgba(224, 174, 67, .85); }
body.v2 .btn-play:hover { box-shadow: 0 14px 30px -10px rgba(224, 174, 67, 1); }
body.v2 .btn:hover { transform: translateY(-2px); }

/* tiles and facts */
body.v2 .facts { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
body.v2 .fact, body.v2 .stat { border-radius: 16px; padding: 18px 20px; border-top: 3px solid var(--gold); }
body.v2 .fact b, body.v2 .stat b { font-size: 1.3rem; }
body.v2 .dl { gap: 16px; }
body.v2 .dl-item { border-radius: 16px; padding: 20px 22px; transition: transform .15s ease, box-shadow .15s ease; }
body.v2 .dl-item:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(14, 19, 48, .5); }

/* tables: a rounded frame, a tinted head, rows that are easy to follow */
body.v2 .panel-body table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .96rem;
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
body.v2 .panel-body th { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--ink); text-align: left;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
body.v2 .panel-body th, body.v2 .panel-body td { padding: 12px 14px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); vertical-align: top; }
body.v2 .panel-body tr:last-child td { border-bottom: none; }
body.v2 .panel-body tbody tr:hover td { background: color-mix(in srgb, var(--gold) 7%, transparent); }
body.v2 table.req th { width: 34%; text-transform: none; letter-spacing: 0; font-size: .96rem; }

/* forms and notices */
body.v2 .field input, body.v2 .field select, body.v2 .field textarea { border-radius: 12px; padding: 13px 14px; }
body.v2 .alert { border-radius: 14px; padding: 14px 18px; }

/* the article reader carries a page body: no page header or tabs inside it */
.l-modal .ph { display: none; }

/* ---- the closing band: every interior page ends on the offer ---------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; margin-top: 30px; background: #0E1330; color: #FFF8E8; }
.cta-band__glow { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 28% 60%, rgba(242, 206, 114, .32), transparent 45%),
              radial-gradient(circle at 80% 20%, rgba(74, 99, 168, .35), transparent 50%); }
.cta-band__inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 56px 0; }
.cta-band__art { height: min(46vh, 380px); width: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.cta-band__eyebrow { display: block; font: 800 .76rem/1.2 "Nunito Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #F2CE72; margin-bottom: 10px; }
.cta-band h2 { color: #FFF8E8; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); line-height: 1.1; margin: 0 0 12px; }
.cta-band p { color: #C8D2F5; font-size: 1.05rem; margin: 0 0 20px; }
.cta-band p b { color: #F2CE72; }
.cta-band__ghost { background: rgba(14, 19, 48, .45); color: #FFF8E8; border-color: rgba(255, 248, 232, .45); }
@media (max-width: 720px) {
  .cta-band__inner { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; text-align: center; justify-items: center; }
  .cta-band__art { height: 200px; }
  .cta-band .cta-row { justify-content: center; }
}

/* ---- footer ------------------------------------------------------------------------------------------ */
.foot--v2 { padding: 54px 20px 30px; background: #0A0E24; color: #A9B6E4; }
.foot-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; }
.foot-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.foot-brand p { font-size: .92rem; line-height: 1.6; color: #A9B6E4; max-width: 34ch; }
.foot-social { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-social a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(242, 206, 114, .5); color: #F2CE72; text-decoration: none; font-weight: 700; font-size: .86rem; }
.foot-social a:hover { background: rgba(242, 206, 114, .12); }
.foot-col { display: grid; align-content: start; gap: 8px; }
.foot-col b { color: #FFF8E8; font-family: Cinzel, Georgia, serif; letter-spacing: .04em; margin-bottom: 4px; }
.foot-col a { color: #A9B6E4; text-decoration: none; font-size: .92rem; }
.foot-col a:hover { color: #F2CE72; }
.foot-legal { width: min(1180px, 100%); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(169, 182, 228, .15); }
.foot-legal small { color: #6F7AA3; line-height: 1.6; display: block; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---- Pre-Register (v2): the page the ads land on. One screen: the ad's group art, the pitch, and the form ------------
   The form is above the fold at every size; on a phone it comes straight after the headline, before the longer pitch. */
body.v2 #page-body > .pr-hero { width: 100%; position: relative; isolation: isolate; overflow: hidden; margin: 0 0 40px;
  min-height: 100vh; min-height: 100svh; display: grid; align-items: center; border: 0; border-radius: 0; background: #0E1330;
  padding: calc(var(--v2-bar) + 28px) max(20px, calc((100% - var(--v2-w)) / 2)) 56px; color: #FFF8E8; }
.pr-scene { position: absolute; inset: 0; z-index: -2; background: var(--pr-art) 38% 30% / cover no-repeat;
  animation: ph-drift 30s ease-in-out infinite alternate; }
body.v2 .pr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 14, 36, .94) 0%, rgba(10, 14, 36, .86) 34%, rgba(10, 14, 36, .45) 58%, rgba(10, 14, 36, .82) 100%),
              linear-gradient(0deg, rgba(10, 14, 36, .85) 0%, rgba(10, 14, 36, 0) 40%); }
body.v2 .pr-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--paper-2)); }
body.v2 .pr-grid { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 440px); gap: clamp(24px, 5vw, 72px); align-items: center; }
body.v2 .pr-pitch { display: grid; gap: 16px; }
body.v2 .pr-pitch > * { margin: 0; animation: ph-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
body.v2 .pr-pitch > :nth-child(2) { animation-delay: .06s; } body.v2 .pr-pitch > :nth-child(3) { animation-delay: .12s; }
body.v2 .pr-pitch > :nth-child(4) { animation-delay: .18s; } body.v2 .pr-pitch > :nth-child(5) { animation-delay: .24s; }
body.v2 .pr-pill { justify-self: start; padding: 7px 14px; border-radius: 999px; background: rgba(10, 14, 36, .78);
  border: 1px solid rgba(242, 206, 114, .5); color: #F2CE72; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
body.v2 .pr-h1 { font-size: clamp(2.8rem, 1.8rem + 4vw, 5.2rem); line-height: 1; color: #FFF8E8; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
body.v2 .pr-h1 em { font-style: normal; color: #F2CE72; }
body.v2 .pr-sub { color: #D5DCF5; font-size: 1.1rem; max-width: 50ch; }
body.v2 .pr-sub strong { color: #fff; }
body.v2 .pr-offer { background: rgba(10, 14, 36, .6); border: 1px solid rgba(242, 206, 114, .45); border-radius: 18px; padding: 14px 18px;
  backdrop-filter: blur(6px); color: #E7E3D6; }
body.v2 .pr-offer b { color: #F2CE72; }
body.v2 .pr-offer span { color: #C8D2F5; }
body.v2 .pr-ticks li { color: #DDE3F7; }
/* the form card: the brightest thing on screen */
body.v2 .pr-card { border: 0; border-radius: 24px; padding: 28px 28px 22px; background: var(--panel); color: var(--text);
  box-shadow: 0 0 0 1px rgba(242, 206, 114, .55), 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 80px -10px rgba(242, 206, 114, .35);
  animation: pr-card .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
body.v2 .pr-card h3 { font-family: Cinzel, Georgia, serif; font-size: 1.6rem; }
body.v2 .pr-card .pr-cta { width: 100%; font-size: 1.1rem; padding: 17px 20px; }
body.v2 .pr-card .field input { font-size: 1.05rem; padding: 15px 16px; }
@keyframes pr-card { from { opacity: 0; transform: translate3d(30px, 0, 0) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  body.v2 #page-body > .pr-hero { min-height: 0; padding-top: calc(var(--v2-bar) + 18px); }
  .pr-scene { background-position: 40% 0; background-size: auto 62%; background-color: #0E1330; }
  body.v2 .pr-hero::before { background: linear-gradient(180deg, rgba(10, 14, 36, .25) 0%, rgba(10, 14, 36, .7) 30%, rgba(10, 14, 36, .97) 52%); }
  body.v2 .pr-grid { grid-template-columns: 1fr; gap: 14px; }
  /* phone order: pill, headline, the form, then the rest of the pitch */
  body.v2 .pr-pitch { display: contents; }
  body.v2 .pr-pill { order: 1; margin-top: 150px; }
  body.v2 .pr-h1 { order: 2; font-size: 2.9rem; }
  body.v2 .pr-card { order: 3; padding: 22px 18px 18px; }
  body.v2 .pr-pitch > :nth-child(n+3) { order: 4; }
}
@media (prefers-reduced-motion: reduce) { .pr-scene, body.v2 .pr-pitch > *, body.v2 .pr-card { animation: none; } }

/* below the scene: the reasons as picture cards, the starter box as a glowing item grid, the unlock bar up front */
body.v2 .pr-why { gap: 16px; }
body.v2 .pr-why div { position: relative; overflow: hidden; isolation: isolate; min-height: 220px; display: flex; flex-direction: column;
  justify-content: flex-end; border: 0; border-radius: 18px; padding: 20px; color: #E7E3D6; background: #0E1330 center / cover; }
body.v2 .pr-why div::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 14, 36, .95) 20%, rgba(10, 14, 36, .2)); }
body.v2 .pr-why div:nth-child(1) { background-image: url(../img/landing/feature-episode.webp); }
body.v2 .pr-why div:nth-child(2) { background-image: url(../img/landing/feature-arena.webp); }
body.v2 .pr-why div:nth-child(3) { background-image: url(../img/landing/feature-favor.webp); }
body.v2 .pr-why b { color: #F2CE72; font-family: Cinzel, Georgia, serif; font-size: 1.2rem; }
body.v2 .pr-box > div { border-radius: 16px; transition: transform .15s ease, box-shadow .15s ease; }
body.v2 .pr-box > div:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(224, 174, 67, .8); }
body.v2 .pr-bar { height: 16px; border-radius: 999px; }
body.v2 .pr-bar i { border-radius: 999px; box-shadow: 0 0 16px rgba(242, 206, 114, .8); }
body.v2 .pr-final { text-align: center; }
body.v2 .pr-final .pr-lead { margin-left: auto; margin-right: auto; }

/* ---- Download (v2) ------------------------------------------------------------------------------------------ */
.dlx { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 24px; margin: 0 auto 30px; align-items: stretch; }
.dlx-main { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; padding: 34px 36px; color: #FFF8E8;
  background: #0E1330; box-shadow: 0 0 0 1px rgba(242, 206, 114, .45), 0 30px 60px -28px rgba(14, 19, 48, .8); }
.dlx-main::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 85% 20%, rgba(242, 206, 114, .28), transparent 45%), radial-gradient(circle at 10% 110%, rgba(74, 99, 168, .5), transparent 55%); }
.dlx-os { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: #C8D2F5; background: rgba(200, 210, 245, .1); }
.dlx-os svg { width: 15px; height: 15px; color: #6FB6FF; }
.dlx-main h2 { color: #FFF8E8; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.1; margin: 16px 0 8px; }
.dlx-note { color: #C8D2F5; margin: 0 0 22px; }
.dlx-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
body.v2 .dlx-btn { font-size: 1.15rem; padding: 18px 34px; }
.dlx-size { display: grid; color: #A9B6E4; font-size: .86rem; line-height: 1.35; }
.dlx-size b { color: #FFF8E8; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.dlx-alt { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(200, 210, 245, .14); color: #A9B6E4; font-size: .92rem; }
.dlx-alt a { color: #F2CE72; }
.dlx-acct { border-radius: 24px; padding: 28px; display: grid; align-content: center; gap: 12px; background: var(--panel);
  border: 2px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
.dlx-acct b { font-family: Cinzel, Georgia, serif; font-size: 1.3rem; color: var(--ink); }
.dlx-acct p { margin: 0; color: var(--muted); }
.dlx-acct .btn { justify-self: start; }
@media (max-width: 860px) { .dlx { grid-template-columns: 1fr; } .dlx-main { padding: 26px 22px; } }

/* numbered steps: the order is the point, so the numbers are real */
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: st; position: relative; padding: 58px 20px 20px; border-radius: 18px; background: var(--paper-2);
  border: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(st); position: absolute; left: 20px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1rem/1 Cinzel, Georgia, serif; color: #1A1406; background: linear-gradient(180deg, #F2CE72, #E0AE43); }
.steps b { font-family: Cinzel, Georgia, serif; font-size: 1.12rem; color: var(--ink); }
.steps span { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.steps-note { margin: 18px 0 0 !important; color: var(--muted); font-size: .94rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.req-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.req-tiles div { border-radius: 16px; padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--rule); display: grid; gap: 3px; }
.req-tiles span { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.req-tiles b { font-size: 1.15rem; color: var(--ink); }
.req-tiles small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
@media (max-width: 760px) { .req-tiles { grid-template-columns: 1fr 1fr; } }

/* troubleshooting: one question per row, opens on a tap */
.fix { border: 1px solid var(--rule); border-radius: 14px; margin: 0 0 10px; background: var(--paper-2); overflow: hidden; }
.fix summary { cursor: pointer; list-style: none; padding: 15px 48px 15px 18px; position: relative; font-weight: 700; color: var(--ink); line-height: 1.4; }
.fix summary::-webkit-details-marker { display: none; }
.fix summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--gold-text); transition: rotate .2s; }
.fix[open] summary::after { rotate: 45deg; }
.fix[open] summary { border-bottom: 1px solid var(--rule); }
.fix > div { padding: 14px 18px 4px; }
.fix summary:hover { color: var(--gold-text); }

/* task pages: a shorter header so the task starts on the first screen */
.ph--short { min-height: clamp(340px, 44vh, 460px); }
.ph--short .ph__inner { padding-bottom: 72px; }
.ph--short .ph__face { height: 104%; max-height: 520px; }
html { scroll-padding-top: calc(var(--v2-bar, 62px) + 70px); }   /* #anchors land below the bar and the sticky tabs */

/* ---- Shop (v2) ---------------------------------------------------------------------------------------------- */
.shopx { border-radius: 24px; overflow: hidden; margin: 0 auto 30px; background: #0E1330; color: #E7E3D6; position: relative; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(242, 206, 114, .4), 0 30px 60px -28px rgba(14, 19, 48, .8); }
.shopx::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 80% 0%, rgba(242, 206, 114, .25), transparent 45%), radial-gradient(circle at 0% 100%, rgba(74, 99, 168, .45), transparent 50%); }
.shopx-open { padding: 38px 40px 8px; max-width: 760px; }
.shopx-eyebrow, .mcpx-eyebrow { display: block; font: 800 .76rem/1.2 "Nunito Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #F2CE72; margin-bottom: 10px; }
.shopx h2 { color: #FFF8E8; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.08; margin: 0 0 14px; }
.shopx-open p { color: #C8D2F5; font-size: 1.06rem; }
.shopx-open strong { color: #F2CE72; }
.shopx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 40px 10px; }
.shopx-cols h3 { color: #FFF8E8; font-size: 1.15rem; margin: 0 0 12px; }
.shopx-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shopx-cols li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: rgba(200, 210, 245, .06); border: 1px solid rgba(200, 210, 245, .12); }
.shopx-cols li::before { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.shopx-never li::before { content: "\2715"; color: #FF8C8C; background: rgba(255, 110, 110, .14); }
.shopx-yes li::before { content: "\2713"; color: #8FE39D; background: rgba(111, 203, 127, .16); }
.shopx-cols b { color: #FFF8E8; }
.shopx-cols span { color: #A9B6E4; font-size: .9rem; }
.shopx-honest { margin: 18px 40px 34px !important; padding: 16px 18px; border-radius: 14px; border-left: 3px solid #E0AE43;
  background: rgba(242, 206, 114, .08); color: #C8D2F5; max-width: none !important; }
.shopx-honest strong { color: #F2CE72; } .shopx-honest a { color: #F2CE72; }
@media (max-width: 760px) { .shopx-open { padding: 28px 22px 4px; } .shopx-cols { grid-template-columns: 1fr; padding: 18px 22px 6px; } .shopx-honest { margin: 16px 22px 26px !important; } }
.shopx-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 auto 30px; }
.shopx-link { position: relative; overflow: hidden; isolation: isolate; min-height: 190px; border-radius: 22px; padding: 24px; text-decoration: none;
  display: grid; align-content: end; gap: 4px; color: #FFF8E8; background: #0E1330 url(../img/landing/feature-favor.webp) center / cover;
  transition: transform .18s ease, box-shadow .18s ease; }
.shopx-link--cp { background-image: url(../img/landing/feature-vip.webp); }
.shopx-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 14, 36, .95) 25%, rgba(10, 14, 36, .25)); }
.shopx-link span { font-weight: 800; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: #F2CE72; }
.shopx-link b { font-family: Cinzel, Georgia, serif; font-size: 1.4rem; line-height: 1.2; }
.shopx-link i { font-style: normal; color: #C8D2F5; font-weight: 700; font-size: .92rem; }
.shopx-link:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -20px rgba(14, 19, 48, .9); color: #FFF8E8; }
@media (max-width: 700px) { .shopx-links { grid-template-columns: 1fr; } }

/* the catalog, once it opens: picture-first cards */
body.v2 .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
body.v2 .shop-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); display: grid; grid-template-rows: auto 1fr;
  transition: transform .15s ease, box-shadow .15s ease; }
body.v2 .shop-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -18px rgba(14, 19, 48, .6); }
body.v2 .shop-pic { height: 170px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%), var(--panel); }
body.v2 .shop-pic img { max-height: 140px; width: auto; }
body.v2 .shop-info { padding: 14px 16px 16px; }
body.v2 .shop-price b { font-size: 1.15rem; }
body.v2 .board-tabs a { border-radius: 999px; }

/* ---- Costume Package showcase (v2) ------------------------------------------------------------------------- */
.mcpx { border-radius: 24px; margin: 0 auto 30px; padding: 34px 36px 36px; background: #0E1330; color: #E7E3D6;
  box-shadow: 0 0 0 1px rgba(242, 206, 114, .4), 0 30px 60px -28px rgba(14, 19, 48, .8); }
.mcpx h2 { color: #FFF8E8; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 8px; }
.mcpx-head p { color: #C8D2F5; margin: 0 0 24px; }
.mcpx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mcpx-card { margin: 0; border-radius: 18px; overflow: hidden; background: rgba(200, 210, 245, .06); border: 1px solid rgba(200, 210, 245, .14);
  transition: transform .15s ease, border-color .15s ease; }
.mcpx-card:hover { transform: translateY(-3px); border-color: #E0AE43; }
.mcpx-pic { height: 160px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(242, 206, 114, .28), transparent 65%); }
.mcpx-pic img { max-height: 130px; width: auto; }
.mcpx-card figcaption { padding: 10px 12px 14px; display: grid; gap: 2px; }
.mcpx-card figcaption span { font-weight: 800; font-size: .72rem; letter-spacing: .14em; color: #F2CE72; }
.mcpx-card figcaption b { color: #FFF8E8; font-size: .95rem; line-height: 1.3; }
.mcpx-card[data-tier="UR"] { border-color: rgba(255, 140, 190, .6); box-shadow: 0 0 24px -6px rgba(255, 140, 190, .6); }
@media (max-width: 560px) { .mcpx { padding: 26px 18px; } .mcpx-grid { grid-template-columns: repeat(2, 1fr); } }
/* the tooltip art is drawn on white: multiply drops the white into the card instead of a white box */
body.v2 .shop-pic img { mix-blend-mode: multiply; }
body.v2 .shop-pic { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--gold) 16%, #fff), #fff 70%); }
@media (max-width: 560px) {
  body.v2 .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  body.v2 .shop-pic { height: 118px; } body.v2 .shop-pic img { max-height: 96px; }
  body.v2 .shop-info { padding: 10px 12px 12px; }
  body.v2 .shop-info h3 { font-size: .95rem; }
  body.v2 .shop-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; }
}

/* ---- News (v2): picture cards, the newest one featured ---------------------------------------------------- */
.nwx-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 0 0 22px; }
.nwx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nwx-chips a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem;
  color: var(--ink); background: var(--panel); border: 1px solid var(--rule); }
.nwx-chips a:hover { border-color: var(--gold); }
.nwx-chips a[aria-current] { background: linear-gradient(180deg, #F2CE72, #E0AE43); color: #1A1406; border-color: #E0AE43; }
.nwx-search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; }
.nwx-search input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--panel); color: var(--text); font: inherit; }
.nwx-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: #4A63A8; }
.nwx-tag[data-tag="Update"] { background: #1F6B53; } .nwx-tag[data-tag="Security"] { background: #B0453C; }
.nwx-tag[data-tag="Economy"] { background: #80590F; } .nwx-tag[data-tag="Event"] { background: #8A4FB5; }
.nwx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px !important; font-size: .88rem; color: var(--muted); }
.nwx-pin { font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }

.nwx-lead { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 24px; overflow: hidden; margin: 0 0 22px; text-decoration: none;
  background: #0E1330; color: #E7E3D6; box-shadow: 0 0 0 1px rgba(242, 206, 114, .35), 0 30px 60px -30px rgba(14, 19, 48, .8);
  transition: transform .18s ease, box-shadow .18s ease; }
.nwx-lead:hover { transform: translateY(-3px); color: #E7E3D6; box-shadow: 0 0 0 1px rgba(242, 206, 114, .7), 0 36px 60px -30px rgba(14, 19, 48, .9); }
.nwx-lead__pic { min-height: 320px; background: center / cover no-repeat; }
.nwx-lead__body { padding: 32px 34px; display: grid; align-content: center; }
.nwx-lead h2 { color: #FFF8E8; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.15; margin: 0 0 12px; }
.nwx-lead p { color: #C8D2F5; }
.nwx-lead .nwx-meta { color: #A9B6E4; }
.nwx-read { color: #F2CE72; font-weight: 800; margin-top: 6px; }
@media (max-width: 800px) { .nwx-lead { grid-template-columns: 1fr; } .nwx-lead__pic { min-height: 200px; } .nwx-lead__body { padding: 22px; } }

.nwx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.nwx-card { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; text-decoration: none; background: var(--panel);
  border: 1px solid var(--rule); color: var(--text); transition: transform .16s ease, box-shadow .16s ease; }
.nwx-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -20px rgba(14, 19, 48, .6); color: var(--text); }
.nwx-pic { height: 160px; background: center / cover no-repeat; position: relative; }
.nwx-pic .nwx-tag { position: absolute; left: 14px; top: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.nwx-card__body { padding: 16px 18px 20px; display: grid; gap: 6px; align-content: start; }
.nwx-card__body time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nwx-card__body b { font-family: Cinzel, Georgia, serif; color: var(--ink); font-size: 1.1rem; line-height: 1.3; }
.nwx-card__body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.nwx .pager { margin-top: 22px; }

.nwx-road { display: grid; gap: 4px; margin: 28px 0 0; padding: 26px 28px; border-radius: 22px; text-decoration: none; color: #FFF8E8; position: relative; overflow: hidden; isolation: isolate;
  background: #0E1330 url(../img/worldmap.jpg) center / cover; }
.nwx-road::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 14, 36, .95) 30%, rgba(10, 14, 36, .45)); }
.nwx-road span { font-weight: 800; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: #F2CE72; }
.nwx-road b { font-family: Cinzel, Georgia, serif; font-size: 1.5rem; }
.nwx-road i { font-style: normal; color: #C8D2F5; font-weight: 700; }
.nwx-road:hover { color: #FFF8E8; }

/* one post */
.nwx-article { border-radius: 24px; overflow: hidden; background: var(--panel); border: 1px solid var(--rule); margin: 0 auto 30px;
  box-shadow: 0 22px 44px -22px rgba(14, 19, 48, .45); }
.nwx-cover { height: clamp(200px, 32vw, 380px); background: center / cover no-repeat; }
.nwx-article__body { padding: 30px 36px 36px; max-width: 820px; }
.nwx-article h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.12; margin: 0 0 16px; }
.nwx-text { font-size: 1.1rem; line-height: 1.75; margin: 0 0 26px !important; }
.nwx-h { font-size: 1.4rem; margin: 0 0 16px; }
.nwx-more { margin: 0 auto 30px; }
@media (max-width: 560px) { .nwx-article__body { padding: 22px 20px 26px; } }
@media (max-width: 760px) { .ph--short .ph__face { height: 250px; max-height: none; } }

/* ---- Wiki home (v2): picture cards ------------------------------------------------------------------------ */
.wkx-start { display: grid; gap: 6px; margin: 0 auto 26px; padding: 30px 34px; border-radius: 24px; text-decoration: none; color: #FFF8E8;
  position: relative; overflow: hidden; isolation: isolate; background: #0E1330 url(../img/landing/feature-episode.webp) center 40% / cover;
  box-shadow: 0 0 0 1px rgba(242, 206, 114, .4), 0 30px 60px -30px rgba(14, 19, 48, .8); transition: transform .18s ease; }
.wkx-start::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 14, 36, .95) 35%, rgba(10, 14, 36, .35)); }
.wkx-start span { font-weight: 800; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: #F2CE72; }
.wkx-start b { font-family: Cinzel, Georgia, serif; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.15; }
.wkx-start p { color: #C8D2F5; max-width: 60ch; margin: 4px 0; }
.wkx-start i { font-style: normal; font-weight: 800; color: #F2CE72; }
.wkx-start:hover { transform: translateY(-3px); color: #FFF8E8; }
.wkx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.wkx-card { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--rule); transition: transform .16s ease, box-shadow .16s ease; }
.wkx-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(14, 19, 48, .65); color: var(--text); }
.wkx-pic { position: relative; height: 170px; background: #0E1330 center / cover no-repeat; overflow: hidden; }
.wkx-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 36, .55), rgba(10, 14, 36, .05) 60%); }
.wkx-pic img { position: absolute; z-index: 1; right: 10px; bottom: 0; height: 92%; width: auto; max-width: 70%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); transition: transform .25s ease; }
.wkx-pic img.is-sprite { height: 78%; image-rendering: pixelated; right: 50%; translate: 50% -8%; }
.wkx-card:hover .wkx-pic img { transform: translateY(-4px) scale(1.04); }
.wkx-body { padding: 16px 18px 20px; display: grid; gap: 6px; align-content: start; }
.wkx-body b { font-family: Cinzel, Georgia, serif; font-size: 1.12rem; color: var(--ink); line-height: 1.3; }
.wkx-body span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.wkx-live { margin: 24px auto 30px !important; color: var(--muted); font-size: .9rem; text-align: center; }
@media (max-width: 560px) { .wkx-start { padding: 24px 20px; } .wkx-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .wkx-pic { height: 120px; }
  .wkx-body { padding: 12px; } .wkx-body b { font-size: .95rem; } .wkx-body span { font-size: .82rem; } }
@media (min-width: 1100px) { .wkx-grid { grid-template-columns: repeat(5, 1fr); } }   /* ten articles: two even rows */
.wkx-pic img.is-sprite { filter: drop-shadow(0 0 10px rgba(242, 206, 114, .85)) drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); }

/* ---- FAQ (v2): search first --------------------------------------------------------------------------------- */
.fqx { margin: 0 auto 28px; border-radius: 24px; overflow: hidden; background: #0E1330; color: #E7E3D6; position: relative; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(242, 206, 114, .4), 0 30px 60px -30px rgba(14, 19, 48, .8); }
.fqx::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 85% 0%, rgba(242, 206, 114, .25), transparent 45%), radial-gradient(circle at 0% 100%, rgba(74, 99, 168, .45), transparent 55%); }
.fqx-search { padding: 34px 36px 22px; }
.fqx-search h2 { color: #FFF8E8; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); margin: 0 0 16px; }
.fqx-search form { display: flex; gap: 10px; max-width: 760px; }
.fqx-search input { flex: 1; min-width: 0; padding: 17px 20px; font: inherit; font-size: 1.08rem; border-radius: 14px; border: 2px solid rgba(242, 206, 114, .55);
  background: #FFFDF7; color: #2B2721; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.fqx-search input:focus { outline: none; border-color: #F2CE72; box-shadow: 0 0 0 4px rgba(242, 206, 114, .3); }
.fqx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 6px 36px 32px; }
.fqx-cats a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-decoration: none; background: rgba(200, 210, 245, .07);
  border: 1px solid rgba(200, 210, 245, .14); transition: border-color .15s, background .15s; }
.fqx-cats a b { color: #FFF8E8; } .fqx-cats a span { color: #A9B6E4; font-size: .82rem; }
.fqx-cats a:hover { border-color: #E0AE43; }
.fqx-cats a[aria-current] { background: linear-gradient(180deg, #F2CE72, #E0AE43); border-color: #E0AE43; }
.fqx-cats a[aria-current] b, .fqx-cats a[aria-current] span { color: #1A1406; }
.fqx-list { margin: 0 auto 26px; }
.fqx-cat { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 26px 0 10px; font-family: "Nunito Sans", system-ui, sans-serif; font-weight: 800; }
.fqx-cat:first-child { margin-top: 0; }
.fqx-list .fix { background: var(--panel); }
.fqx-list .faq-a { line-height: 1.7; }
.fqx-help { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 auto 30px; padding: 22px 26px; border-radius: 20px;
  background: var(--panel); border: 2px dashed color-mix(in srgb, var(--gold) 65%, transparent); }
.fqx-help div { flex: 1 1 260px; display: grid; }
.fqx-help b { font-family: Cinzel, Georgia, serif; font-size: 1.3rem; color: var(--ink); }
.fqx-help span { color: var(--muted); }
@media (max-width: 600px) { .fqx-search { padding: 26px 18px 16px; } .fqx-search form { flex-direction: column; } .fqx-cats { padding: 4px 18px 22px; grid-template-columns: 1fr 1fr; } }


/* ---- readability (tools/check_contrast.py, 2026-09-27) ------------------------------------------------------ */
/* The secondary button took var(--ink) as its fill, which is a pale blue in the dark scheme: near-white text on
   light blue (1.3:1). One navy fill for both schemes. */
.btn-alt { background: #26315E; color: #F3F1E6; border-color: #3A4780; }
.btn-alt:hover { color: #FFFFFF; }
/* The article reader is always dark, but it carries a page body styled for the page's own palette: a table header
   came out navy on navy. The reader gets its own dark palette, so everything inside follows it. */
.l-modal { --ink: #FFF8E8; --text: #E8E2D2; --muted: #C9C2B0; --gold-text: #F2CE72; --rule: rgba(255, 248, 232, .18);
  --panel: rgba(255, 255, 255, .04); --paper-2: rgba(255, 255, 255, .06); color: #E8E2D2; }
.l-modal .panel-body th { background: rgba(242, 206, 114, .12); color: #F2CE72; }
.l-modal .panel-body td { color: #E8E2D2; }
.l-modal .panel-body table { border-color: rgba(255, 248, 232, .18); }
.nwx-lead .nwx-pin { color: #F2CE72; }                   /* the featured card is navy in both schemes */
.l-modal .btn-play, .l-modal .btn-play:hover { color: #2A1F06; }   /* the reader's gold link colour must not reach gold buttons */

/* Friend invite box (inc/referral.php): on prereg.php after confirming, and on account.php. */
.ref-box { margin-top: 18px; padding: 16px 16px 12px; border: 1px solid var(--gold); border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--text); }
.ref-box h4 { margin: 0 0 4px; font: 800 1.1rem/1.3 "Nunito Sans", system-ui, sans-serif; color: var(--text); }
.ref-box p { margin: 0 0 10px; }
.ref-link { display: flex; gap: 8px; margin: 0 0 10px; }
.ref-link input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--panel); color: var(--text); font: 600 .92rem/1.2 ui-monospace, Consolas, monospace; }
.ref-link .btn { flex: none; padding: 10px 16px; }
.ref-stat b { color: var(--gold-text, var(--text)); font-size: 1.15rem; }
.ref-fine { font-size: .85rem; color: var(--muted); margin-bottom: 0 !important; }

/* "Bring your friends" card on prereg.php, for every visitor. */
.pr-ref { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .pr-ref { grid-template-columns: 1fr; } }
.pr-ref > div { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--gold); border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--text); }
.pr-ref > div > b { flex: none; min-width: 64px; text-align: center; font: 900 2.6rem/1 Cinzel, Georgia, serif; color: var(--gold-text, var(--text)); }
.pr-ref .pr-art, .pr-ref .pr-ico { flex: none; width: 64px; height: auto; max-height: 80px; object-fit: contain; }
.pr-ref strong { color: var(--text); }
.pr-ref + .pr-fine { text-align: left; margin-top: 12px; }

/* "See it in action" on prereg.php: the gameplay loop in a gold frame. */
.pr-vid { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0A0E24;
  border: 2px solid var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.pr-vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pr-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .pr-vids { grid-template-columns: 1fr; } }
.pr-vids figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.pr-vids figcaption { font-size: .95rem; color: var(--text); }

/* download.php "Meet Assist Mode": the video beside its words, stacked on a phone. */
.dl-assist { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: center; }
@media (max-width: 860px) { .dl-assist { grid-template-columns: 1fr; gap: 18px; } }
.dl-assist__copy { display: grid; gap: 12px; justify-items: start; }
.dl-assist__copy p, .dl-assist__copy ul { margin: 0; }
.dl-assist__copy ul { padding-left: 1.2em; display: grid; gap: 6px; }
.dl-assist--flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.dl-assist--flip > .pr-vid { order: 2; }
@media (max-width: 860px) { .dl-assist--flip { grid-template-columns: 1fr; } .dl-assist--flip > .pr-vid { order: 0; } }

/* events.php: the square showcase clips (bounty, account level bonus) beside their words. */
.ev-vid { aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: center; }
.ev-week th { white-space: nowrap; }
@media (max-width: 560px) { .ev-week th { white-space: normal; } }

/* Reward lists with tooltip art (wiki/rewards.php, owner 2026-10-01). */
.rw-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rw-chip { display: inline-flex; align-items: center; gap: 6px; }
.rw-chip .pr-art { height: 34px; width: auto; max-width: 44px; object-fit: contain; }
.pr-box small { font-size: .74rem; opacity: .85; }
.req .pr-item .pr-art { max-width: 48px; object-fit: contain; }

/* Phones: a long name or coordinate in a fact table wraps inside its cell instead of pushing the table past the panel. */
@media (max-width: 640px) {
  /* A two-column fact table is prose: it wraps to the panel instead of scrolling sideways like a data table. */
  body.v2 .panel-body table.req { display: table; table-layout: fixed; }
  table.req th, table.req td { overflow-wrap: anywhere; }
}

/* Item database (wiki/items.php): the tooltip picture beside an item's details. */
.it-pic { flex: none; width: 84px; display: flex; justify-content: center; }
.it-pic .pr-art { max-width: 84px; max-height: 100px; width: auto; height: auto; }
