/* Wispbound Studio website: a classic MMO portal layout dressed in the game's own UI, the Raven Slate skin
   (alpha_ui_kit.gd): plum panels with copper and silver rims, cut from raven_gui_1x.png at 3x into img/game/ui-*.png.
   Colours are the kit's palette. Plain CSS, mobile first. */
:root {
  --night: #140f16;      /* under the kit's see-through panels (BACKING 1d161f, darker) */
  --navy: #1d161f;
  --navy-2: #2e222f;
  --panel: #2e222f;      /* slate_panel body */
  --panel-2: #413345;    /* header_dark body */
  --frame: #a46138;      /* the kit's copper rim */
  --frame-dark: #2e222f;
  --silver: #d1e8ee;     /* the kit's light rim */
  --slate: #737d9b;
  --lavender: #5e5a82;
  --gold: #f2cf88;       /* the live HUD's gold text */
  --gold-2: #ffe7b4;
  --gold-deep: #c98d4e;
  --text: #ece6ee;
  --muted: #b3aec4;
  --wisp: #3fe0c0;
  --wisp-deep: #1a8f7b;
  --parch: #f3e3bc;
  --parch-2: #e7cf98;
  --ink: #3b2612;
  --danger: #ff8a7a;
  --max: 1180px;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--sans);
  background: var(--night) linear-gradient(180deg, #0e1528 0, #0b0f1c 600px) no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 3px solid var(--wisp); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--gold); color: var(--night); padding: 8px 12px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font: 800 15px/1.2 var(--sans); letter-spacing: 1.2px; text-transform: uppercase;
  padding: 14px 26px; border: 2px solid transparent; border-radius: 3px;
}
.btn-gold {
  color: #2a1a05; background: linear-gradient(180deg, #ffe08a 0%, #f6c75c 45%, #d99a2b 100%);
  border-color: #fff0b8 #b9811f #8a5d12 #f0c060;
  box-shadow: 0 2px 0 #5a3b08, 0 0 18px rgba(246, 199, 92, .25);
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.btn-gold:hover { color: #2a1a05; filter: brightness(1.08); }
.btn-gold:active { transform: translateY(1px); box-shadow: 0 1px 0 #5a3b08; }
.btn-outline { color: var(--gold); background: rgba(11, 15, 28, .55); border-color: var(--gold); }
.btn-outline:hover { color: var(--night); background: var(--gold); }
.btn-wisp { color: #052620; background: linear-gradient(180deg, #8ff5df, #3fe0c0 50%, #23a88f); border-color: #c8fff2 #1a8f7b #11695a #7cecd4; box-shadow: 0 2px 0 #0a3d34; }
.btn-wisp:hover { color: #052620; filter: brightness(1.08); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .65; cursor: default; filter: grayscale(.3); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(9, 12, 23, .96); border-bottom: 2px solid var(--frame-dark); box-shadow: 0 1px 0 #5c4316, 0 6px 18px rgba(0,0,0,.45); }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font: 700 26px/1 var(--serif); letter-spacing: .5px; text-shadow: 0 2px 0 #000, 0 0 14px rgba(246,199,92,.35); }
.logo:hover { color: var(--gold-2); }
.logo img { width: 34px; height: 34px; border: 2px solid var(--frame); border-radius: 4px; }
.mainnav { display: none; align-items: center; gap: 2px; margin-left: 8px; }
.mainnav a { display: block; color: var(--text); text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; padding: 24px 12px; border-bottom: 3px solid transparent; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 210px; background: var(--panel); border: 2px solid var(--frame); box-shadow: 0 10px 24px rgba(0,0,0,.6); padding: 6px 0; }
.dd-menu a { padding: 11px 16px; border: 0; font-size: 13px; }
.dd-menu a:hover { background: var(--panel-2); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.topbar-cta { display: none; margin-left: auto; white-space: nowrap; }
.mobile-nav { margin-left: auto; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; border: 2px solid var(--frame); border-radius: 3px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; height: 3px; background: var(--gold); }
.mobile-nav nav { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: var(--panel); border: 2px solid var(--frame); padding: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.7); }
.mobile-nav nav a:not(.btn) { display: block; color: var(--text); text-decoration: none; padding: 10px 6px; border-bottom: 1px solid #263152; font-weight: 600; }
.mobile-nav nav .btn { margin-bottom: 8px; }
@media (min-width: 1100px) {
  .mainnav { display: flex; }
  .topbar-cta { display: inline-block; }
  .mobile-nav { display: none; }
}

/* ---------- Hero (full-bleed key art) ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 2px solid var(--frame-dark); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(11,15,28,.62) 0%, rgba(11,15,28,.38) 60%, rgba(11,15,28,.2) 100%), linear-gradient(180deg, rgba(11,15,28,.1) 0%, rgba(11,15,28,.25) 50%, rgba(11,15,28,.95) 90%, var(--night) 100%); }
.hero h1 > span { display: block; }
.hero .kicker { display: inline-block; padding: 5px 12px; background: rgba(7,10,19,.8); border: 1px solid #2f8f7d; border-radius: 2px; }
.hero-inner { position: relative; z-index: 1; text-align: center; padding-top: 120px; padding-bottom: 46px; }
.kicker { font: 800 13px/1.3 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--wisp); margin: 0 0 10px; text-shadow: 0 1px 0 #000; }
.hero h1 { margin: 0 auto 14px; max-width: 900px; font-size: clamp(36px, 7.5vw, 68px); color: #fff; text-shadow: 0 3px 0 #000, 0 0 30px rgba(0,0,0,.8); }
.hero h1 .gold { color: var(--gold); }
.hero h1 .wisp { color: var(--wisp); }
.hero .lede { max-width: 680px; margin: 0 auto 26px; font-size: 18px; text-shadow: 0 1px 2px #000; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.platforms { margin: 18px 0 0; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.page-banner { position: relative; padding: 70px 0 34px; background: var(--banner) center / cover no-repeat; image-rendering: pixelated; border-bottom: 2px solid var(--frame-dark); }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,28,.35), rgba(11,15,28,.92)); }
.page-banner .wrap { position: relative; }
.page-banner h1 { margin: 0 0 8px; font-size: clamp(32px, 6vw, 52px); color: var(--gold); text-shadow: 0 3px 0 #000; }
.page-banner p { margin: 0; max-width: 720px; text-shadow: 0 1px 2px #000; }
.page-banner p + p { margin-top: 10px; }
.page-banner.small { padding: 56px 0 26px; }
.page-banner.small h1 { font-size: clamp(28px, 5vw, 42px); }
.crumbs { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px !important; }
.crumbs a { color: var(--muted); text-decoration: none; }

/* ---------- Sections and headings ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section-dark { background: #080b15; border-top: 2px solid var(--frame-dark); border-bottom: 2px solid var(--frame-dark); }
.section-title { text-align: center; margin: 0 0 8px; font-size: clamp(28px, 5vw, 40px); color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 0 2px 0 #000; }
.section-title::before, .section-title::after { content: "✦"; font-size: .45em; vertical-align: middle; color: var(--frame); margin: 0 14px; }
.section-sub { text-align: center; max-width: 680px; margin: 0 auto 30px; color: var(--muted); }

/* ---------- Framed panels with title plates (portal boxes) ---------- */
.frame { background: var(--panel); border: 2px solid var(--frame); box-shadow: inset 0 0 0 2px var(--frame-dark), 0 0 0 2px #000, 0 10px 24px rgba(0,0,0,.35); border-radius: 3px; }
.plate {
  margin: 0; padding: 10px 14px; text-align: center;
  font: 800 14px/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  background: linear-gradient(180deg, #5a3d14, #3a2508 60%, #2a1a05); border-bottom: 2px solid var(--frame);
  text-shadow: 0 1px 0 #000;
}
.box { margin-bottom: 18px; }
.box-body { padding: 14px; }
.box-body > :last-child { margin-bottom: 0; }

/* Portal band: menu | news | sidebar */
.portal { display: grid; gap: 18px; margin-top: -40px; position: relative; z-index: 2; }
.portal .menu-col { display: none; }
@media (min-width: 760px) { .portal { grid-template-columns: 1fr 300px; } }
@media (min-width: 1080px) { .portal { grid-template-columns: 220px 1fr 300px; } .portal .menu-col { display: block; } }
.game-menu { list-style: none; margin: 0; padding: 8px; }
.game-menu a { display: block; padding: 9px 12px; margin: 0 0 4px; text-decoration: none; color: var(--gold-2); font: 700 13px/1.2 var(--sans); letter-spacing: 1.3px; text-transform: uppercase; background: linear-gradient(180deg, #232e50, #18203a); border: 1px solid #36426a; border-radius: 2px; }
.game-menu a:hover { background: linear-gradient(180deg, #3a2a10, #2a1a05); border-color: var(--frame); color: var(--gold); }
.game-menu a::before { content: "▸ "; color: var(--frame); }

.featured-news { display: grid; gap: 0; }
.featured-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-bottom: 2px solid var(--frame-dark); }
.featured-body { padding: 16px 18px 18px; }
.featured-body h3 { margin: 4px 0 8px; font-size: 24px; }
.featured-body h3 a, .news-card h3 a { color: var(--text); text-decoration: none; }
.featured-body h3 a:hover, .news-card h3 a:hover { color: var(--gold); }
.featured-body p { margin: 0 0 14px; color: var(--muted); }
.news-meta { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .5px; }
.tag { display: inline-block; padding: 2px 8px; margin-right: 6px; font: 800 11px/1.5 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: #052620; background: var(--wisp); border-radius: 2px; }
.latest-news { list-style: none; margin: 0; padding: 0; }
.latest-news li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 9px 4px; border-bottom: 1px dashed #2c3758; font-size: 15px; }
.latest-news li:nth-child(odd) { background: rgba(255,255,255,.02); }
.latest-news time { color: var(--gold-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.latest-news a { color: var(--text); text-decoration: none; }
.latest-news a:hover { color: var(--gold); }

.shot-week img { width: 100%; border: 2px solid var(--frame-dark); }
.shot-week p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* News grid (WoW-style "latest updates") */
.news-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--frame-dark); transition: filter .2s; }
.news-card a:hover img { filter: brightness(1.15); }
.news-card-body { padding: 14px 16px 18px; }
.news-card h3 { margin: 6px 0 8px; font-size: 21px; }
.news-card p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Class showcase (parchment scroll with tabs) ---------- */
.scroll {
  background: var(--parch) linear-gradient(180deg, var(--parch) 0%, #f7ebcc 50%, var(--parch-2) 100%);
  color: var(--ink); border: 3px solid #8a5d22; border-radius: 6px;
  box-shadow: inset 0 0 0 3px #f9efd2, inset 0 0 40px rgba(138,93,34,.35), 0 0 0 3px #2a1a05, 0 14px 30px rgba(0,0,0,.5);
  padding: 22px 18px;
}
.scroll a { color: #7a3f0a; }
.class-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.class-tab {
  display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px 8px 8px;
  font: 800 14px/1 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink);
  background: #f9efd2; border: 2px solid #b48a4a; border-radius: 30px;
}
.class-tab img { width: 34px; height: 34px; }
.class-tab[aria-selected="true"] { background: linear-gradient(180deg, #ffe08a, #e8a93a); border-color: #8a5d22; box-shadow: 0 2px 0 #5a3b08; }
.class-panel { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .class-panel { grid-template-columns: 240px 1fr; } }
.class-emblem { display: grid; place-items: center; background: radial-gradient(circle, #fff6dc 0, #efd9a5 60%, #d9b878 100%); border: 3px solid #8a5d22; border-radius: 50%; width: 200px; height: 200px; margin: 0 auto; box-shadow: inset 0 0 0 4px #f9efd2; }
.class-emblem img { width: 120px; height: 120px; }
.class-panel h3 { margin: 0 0 4px; font-size: 32px; color: #5a2f06; }
.class-role { margin: 0 0 10px; font: 800 13px/1.3 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: #8a5d22; }
.class-panel p { margin: 0 0 12px; }
.traits { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.traits li { padding: 4px 10px; font-size: 14px; font-weight: 700; background: #fff6dc; border: 1px solid #c79f5e; border-radius: 3px; }
.js-tabs .class-panel[hidden] { display: none !important; }

/* ---------- Wisp band ---------- */
.wisp-band { display: grid; gap: 26px; align-items: center; }
@media (min-width: 820px) { .wisp-band { grid-template-columns: 320px 1fr; } }
.wisp-portrait { border: 3px solid var(--wisp-deep); border-radius: 50%; overflow: hidden; width: 280px; height: 280px; margin: 0 auto; box-shadow: 0 0 0 4px #000, 0 0 40px rgba(63,224,192,.35); }
.wisp-portrait img { width: 100%; height: 100%; object-fit: cover; }
.stages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.stages li { padding: 6px 12px; background: var(--panel-2); border: 1px solid #2f8f7d; border-radius: 3px; font-weight: 700; font-size: 14px; }
.stages li.arrow { background: none; border: 0; padding: 0; color: var(--wisp); }

/* ---------- Feature tiles ("play your way") ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (min-width: 900px) { .tiles.tiles-3 { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 18px; }
.tile .ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 10px; font-size: 26px; background: radial-gradient(circle, #3a2a10, #1b1307); border: 2px solid var(--frame); border-radius: 50%; }
.tile h3 { margin: 0 0 6px; font-size: 20px; color: var(--gold); }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--frame-dark); }
.gallery figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); }

/* ---------- Signup band and forms ---------- */
.signup-band { background: linear-gradient(180deg, rgba(11,15,28,.82), rgba(11,15,28,.95)), var(--banner, none) center / cover; image-rendering: pixelated; border-top: 2px solid var(--frame-dark); border-bottom: 2px solid var(--frame-dark); }
.signup-band .inner { max-width: 560px; margin: 0 auto; text-align: center; }
.signup-band .signup { text-align: left; }
form .row { margin: 0 0 12px; }
label { display: block; font-weight: 700; margin: 0 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; padding: 12px 14px; font: 16px var(--sans); color: var(--text);
  background: #070a13; border: 2px solid #34406a; border-radius: 3px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: 0 0 auto; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.form-msg { margin: 10px 0 0; font-weight: 700; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--wisp); }
.form-msg.err { color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.options { display: grid; gap: 8px; }
@media (min-width: 560px) { .options.two { grid-template-columns: 1fr 1fr; } }
.options label { font-weight: 500; display: flex; gap: 10px; align-items: center; background: #070a13; border: 2px solid #34406a; border-radius: 3px; padding: 10px 12px; cursor: pointer; margin: 0; }
.options input { accent-color: var(--gold); width: 18px; height: 18px; }
.options label:has(input:checked) { border-color: var(--gold); }

/* ---------- Content pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; color: var(--gold); margin: 32px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 6px; }
.prose li { margin-bottom: 6px; }
.content-frame { padding: 22px 20px; }
@media (min-width: 760px) { .content-frame { padding: 30px 34px; } }
.draft-note { background: #3a2a10; border-left: 6px solid var(--gold); padding: 12px 16px; margin: 0 0 24px; font-size: 15px; }
details.qa { background: var(--panel-2); border: 1px solid #34406a; border-radius: 3px; margin: 0 0 10px; padding: 0 16px; }
details.qa summary { cursor: pointer; font-weight: 800; padding: 14px 0; }
details.qa[open] summary { color: var(--gold); }
details.qa p { margin-top: 0; padding-bottom: 14px; margin-bottom: 0; }
.post-layout { display: grid; gap: 22px; }
@media (min-width: 960px) { .post-layout { grid-template-columns: 1fr 300px; } }
.post { overflow: hidden; }
.post-img { width: 100%; border-bottom: 2px solid var(--frame-dark); }
.post-body { padding: 20px; max-width: none; }
@media (min-width: 760px) { .post-body { padding: 26px 32px; } }
.post-body > :first-child { margin-top: 0; }
.two-col { display: grid; gap: 22px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; align-items: center; } }
.region { overflow: hidden; }
.region img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--frame-dark); }
.region .box-body h3 { margin: 0 0 6px; color: var(--gold); font-size: 22px; }
.region .box-body p { margin: 0; color: var(--muted); }
.class-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .class-cards { grid-template-columns: 1fr 1fr; } }
.class-card { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 16px; align-items: start; }
.class-card img { width: 88px; height: 88px; background: radial-gradient(circle, #3a2a10, #1b1307); border: 2px solid var(--frame); border-radius: 50%; padding: 12px; }
.class-card h3 { margin: 0 0 2px; color: var(--gold); font-size: 22px; }
.class-card .class-role { color: var(--wisp); margin-bottom: 6px; }
.class-card p { margin: 0; color: var(--muted); font-size: 15px; }
.credit { padding: 14px 16px; margin: 0 0 10px; }
.credit h3 { margin: 0 0 4px; font-size: 20px; }
.credit p { margin: 0; color: var(--muted); font-size: 15px; }
.embed-box { padding: 12px; min-height: 240px; }
.embed-box iframe { width: 100%; border: 0; min-height: 900px; background: #fff; border-radius: 6px; }

/* Link-in-bio */
.links-page { max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; text-align: center; }
.links-page .avatar { width: 116px; height: 116px; margin: 0 auto 12px; border: 3px solid var(--frame); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #000, 0 0 30px rgba(246,199,92,.25); }
.links-page h1 { margin: 0; font-size: 34px; color: var(--gold); text-shadow: 0 2px 0 #000; }
.links-page .tag-line { margin: 6px 0 22px; color: var(--muted); }
.link-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }

/* Floating "Apply for the Alpha" badge */
.play-badge {
  position: fixed; right: 18px; bottom: 18px; z-index: 25; display: none;
  width: 112px; height: 112px; border-radius: 50%; text-decoration: none; text-align: center;
  flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  color: #3a1f02; background: radial-gradient(circle at 35% 30%, #fff1b8 0, #ffd56b 35%, #e19a26 75%, #a8670f 100%);
  border: 3px solid #fff0b8; box-shadow: 0 0 0 3px #5a3b08, 0 8px 22px rgba(0,0,0,.6), 0 0 30px rgba(246,199,92,.45);
  transition: transform .15s;
}
.play-badge span { font: 800 12px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; }
.play-badge strong { font: 900 25px/1.05 var(--serif); text-transform: uppercase; }
.play-badge:hover { color: #3a1f02; transform: scale(1.06) rotate(-3deg); }
@media (min-width: 760px) { .play-badge { display: flex; } }

/* ---------- Footer ---------- */
.site-footer { background: #070a13; border-top: 2px solid var(--frame-dark); padding: 34px 0 40px; font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid #1f2a46; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-block; padding: 7px 12px; font: 700 13px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: var(--text); text-decoration: none; border: 1px solid #34406a; border-radius: 3px; }
.social:hover { color: var(--gold); border-color: var(--gold); }
.footer-cols { display: grid; gap: 20px; padding-top: 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { margin: 0 0 8px; color: var(--gold); font: 800 13px/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.copy { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.copy a { color: var(--muted); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .play-badge { transition: none; } }

/* ==========================================================================
   Game skin: every frame, plate, button, field and slot is the game's own Raven Slate piece.
   ========================================================================== */
body { background: var(--night) linear-gradient(180deg, #1d161f 0, #140f16 700px) no-repeat; }
.frame, .plate, .btn, .game-menu a, input[type="email"], input[type="text"], select, textarea,
.options label, details.qa, .tile .ico, .class-card img, .stages li, .slot, .class-tab, .mobile-nav nav, .dd-menu,
.social, .topbar, .site-footer { image-rendering: pixelated; }
.frame {
  border: 9px solid transparent; border-radius: 0; box-shadow: 0 10px 24px rgba(0,0,0,.45);
  border-image: url("/img/game/ui-slate_panel.png") 9 fill stretch; background: #1d161f; background-clip: padding-box;
}
.plate {
  margin: -9px -9px 0; padding: 12px 16px; border: 9px solid transparent; border-bottom-width: 9px;
  border-image: url("/img/game/ui-header_dark.png") 9 fill stretch; background: none;
  color: var(--gold); text-shadow: 0 2px 0 #1b1620, 2px 0 0 #1b1620, -2px 0 0 #1b1620, 0 -2px 0 #1b1620;
}
.box-body { padding: 14px 8px 8px; }
.btn {
  border: 9px solid transparent; border-radius: 0; padding: 7px 18px; text-shadow: 0 2px 0 #1b1620, 2px 0 0 #1b1620, -2px 0 0 #1b1620, 0 -2px 0 #1b1620;
  border-image: url("/img/game/ui-header_dark.png") 9 fill stretch; background: none; box-shadow: none; color: var(--gold);
}
.btn:hover { filter: brightness(1.35); color: var(--gold-2); }
.btn:active { transform: translateY(1px); border-image-source: url("/img/game/ui-header_light.png"); filter: brightness(.7); }
.btn-gold { color: var(--gold); font-size: 16px; box-shadow: 0 0 22px rgba(242,207,136,.18); }
.btn-gold:hover { color: var(--gold-2); }
.btn-outline { color: var(--silver); background: none; }
.btn-outline:hover { color: #fff; background: none; }
.btn-wisp { color: #7ff3da; background: none; border-color: transparent; box-shadow: 0 0 22px rgba(63,224,192,.18); }
.btn-wisp:hover { color: #c8fff2; }
.btn-sm { padding: 3px 12px; }
.topbar { background: rgba(20,15,22,.97); border-bottom: 3px solid var(--frame); box-shadow: 0 3px 0 #1b1620, 0 6px 18px rgba(0,0,0,.5); }
.logo { color: var(--gold); text-shadow: 0 2px 0 #1b1620, 2px 0 0 #1b1620, -2px 0 0 #1b1620, 0 0 14px rgba(63,224,192,.35); }
.logo img { width: 36px; height: 36px; border: 0; border-radius: 0; filter: drop-shadow(0 0 8px rgba(63,224,192,.55)); }
.logo img.wordmark { width: 208px; height: 36px; filter: none; image-rendering: pixelated; }
@media (max-width: 380px) { .logo img.wordmark { width: 156px; height: 27px; } }
.wordmark-title { margin: 8px 0 4px; line-height: 0; display: flex; justify-content: center; }
.wordmark-title img { max-width: 100%; height: auto; image-rendering: pixelated; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--frame); }
.dd-menu, .mobile-nav nav { border: 9px solid transparent; border-image: url("/img/game/ui-slate_panel.png") 9 fill stretch; background: #1d161f; background-clip: padding-box; }
.mobile-nav summary { border: 2px solid var(--frame); background: var(--panel-2); }
.mobile-nav nav a:not(.btn) { border-bottom-color: #413345; }
.game-menu a { border: 9px solid transparent; border-radius: 0; padding: 3px 8px; border-image: url("/img/game/ui-header_dark.png") 9 fill stretch; background: none; display: flex; align-items: center; gap: 8px; }
.game-menu a:hover { filter: brightness(1.35); background: none; }
.game-menu a::before { content: none; }
.game-menu img { width: 32px; height: 32px; flex: 0 0 auto; }
input[type="email"], input[type="text"], select, textarea { border: 9px solid transparent; border-radius: 0; padding: 4px 8px; border-image: url("/img/game/ui-header_dark.png") 9 fill stretch; background: none; }
input:focus, select:focus, textarea:focus { filter: brightness(1.25); outline: 2px solid var(--wisp); outline-offset: 1px; }
.options label { border: 9px solid transparent; border-radius: 0; padding: 2px 6px; border-image: url("/img/game/ui-header_dark.png") 9 fill stretch; background: none; }
.options label:has(input:checked) { border-image-source: url("/img/game/ui-header_light.png"); color: #1b1620; font-weight: 700; }
details.qa { border: 9px solid transparent; border-radius: 0; padding: 0 8px; border-image: url("/img/game/ui-slate_panel.png") 9 fill stretch; background: #1d161f; background-clip: padding-box; }
.draft-note { background: #413345; border-left-color: var(--frame); }
.tag { color: #1b1620; background: var(--wisp); }
.latest-news li { border-bottom: 1px dashed #413345; }
.latest-news time { color: var(--gold-deep); }
.section-dark { background: #120d14; border-color: var(--frame); }
.section-title { color: var(--gold); text-shadow: 0 3px 0 #1b1620, 3px 0 0 #1b1620, -3px 0 0 #1b1620, 0 -2px 0 #1b1620; }
.section-title::before, .section-title::after { content: ""; display: inline-block; width: 30px; height: 30px; margin: 0 12px; vertical-align: -3px; background: url("/img/game/wisp-seed.png") center / contain no-repeat; image-rendering: pixelated; }
.page-banner h1, .hero h1 { text-shadow: 0 3px 0 #1b1620, 3px 0 0 #1b1620, -3px 0 0 #1b1620, 0 -3px 0 #1b1620, 0 0 30px rgba(0,0,0,.7); }
.page-banner, .hero, .signup-band, .site-footer { border-color: var(--frame); }
.featured-img img, .news-card img, .gallery img, .region img, .post-img, .shot-week img { image-rendering: pixelated; border-color: var(--frame); }
.hero-art { image-rendering: pixelated; }
.hero::after { background: radial-gradient(ellipse at 50% 55%, rgba(20,15,22,.55) 0%, rgba(20,15,22,.3) 60%, rgba(20,15,22,.15) 100%), linear-gradient(180deg, rgba(20,15,22,.1) 0%, rgba(20,15,22,.2) 50%, rgba(20,15,22,.95) 90%, var(--night) 100%); }
.hero .kicker { background: rgba(29,22,31,.85); border: 2px solid var(--frame); }

/* Slots: a game icon in the kit's dark slot (the action bar's cell). */
.slot { display: inline-grid; place-items: center; width: 82px; height: 82px; border: 9px solid transparent; border-image: url("/img/game/ui-slot_dark.png") 9 fill stretch; flex: 0 0 auto; }
.slot img { width: 64px; height: 64px; max-width: none; image-rendering: pixelated; }
.slot.big { width: 114px; height: 114px; }
.slot.big img { width: 96px; height: 96px; }
/* The square is the 64px icon plus the 9px frame on each side, so the icon sits dead centre. */
.tile .ico { width: 82px; height: 82px; border-radius: 0; background: none; border: 9px solid transparent; border-image: url("/img/game/ui-slot_dark.png") 9 fill stretch; }
.tile .ico img { width: 64px; height: 64px; max-width: none; image-rendering: pixelated; }
.tile h3 { color: var(--gold); }

/* Classes: the parchment becomes a game window; tabs are kit buttons with the class icon. */
.scroll { background: #1d161f; color: var(--text); border: 9px solid transparent; border-radius: 0; box-shadow: 0 14px 30px rgba(0,0,0,.5);
  border-image: url("/img/game/ui-slate_panel.png") 9 fill stretch; background-clip: padding-box; padding: 18px 14px; }
.scroll a { color: var(--gold); }
.class-tab { border: 9px solid transparent; border-radius: 0; padding: 0 12px 0 0; color: var(--gold); background: none; border-image: url("/img/game/ui-header_dark.png") 9 fill stretch; text-shadow: 0 2px 0 #1b1620; }
.class-tab img { width: 48px; height: 48px; image-rendering: pixelated; }
.class-tab[aria-selected="true"] { border-image-source: url("/img/game/ui-header_light.png"); color: #1b1620; text-shadow: none; box-shadow: none; background: none; }
/* Five classes on a phone: one row, icon above the name, instead of four uneven rows. */
@media (max-width: 700px) {
  .class-tabs { flex-wrap: nowrap; gap: 4px; }
  .class-tab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; padding: 2px 0 4px; font-size: 10px; letter-spacing: .3px; border-width: 6px; border-image-slice: 9 fill; border-image-width: 6px; }
  .class-tab img { width: 32px; height: 32px; }
}
.class-emblem { background: none; border: 9px solid transparent; border-radius: 0; border-image: url("/img/game/ui-slot_dark.png") 9 fill stretch; width: 200px; height: 200px; box-shadow: 0 0 40px rgba(242,207,136,.12); }
.class-emblem img { width: 160px; height: 160px; image-rendering: pixelated; }
.class-panel h3 { color: var(--gold); }
.class-role { color: var(--wisp); }
.traits li { background: #413345; border: 2px solid var(--slate); color: var(--text); }
.class-card img { width: 88px; height: 88px; border-radius: 0; background: none; padding: 0; border: 9px solid transparent; border-image: url("/img/game/ui-slot_dark.png") 9 fill stretch; }

/* Wisp: the real forms, each in a slot. */
.wisp-portrait { border-radius: 0; border: 9px solid transparent; border-image: url("/img/game/ui-slot_dark.png") 9 fill stretch; box-shadow: 0 0 60px rgba(63,224,192,.25); display: grid; place-items: center; background: radial-gradient(circle, #20373a 0, #1d161f 70%); background-clip: padding-box; }
.wisp-portrait img { width: 70%; height: auto; object-fit: contain; image-rendering: pixelated; }
.wisp-forms { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.wisp-forms li { display: grid; justify-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.wisp-forms .slot { width: 66px; height: 66px; }
.wisp-forms .slot img { width: 48px; height: 48px; }
.stages li { background: #413345; border: 2px solid var(--slate); border-radius: 0; }

.play-badge { border-radius: 0; width: auto; height: auto; padding: 8px 14px 8px 10px; flex-direction: row; gap: 8px; color: var(--gold); background: none;
  border: 9px solid transparent; border-image: url("/img/game/ui-slate_panel.png") 9 fill stretch; box-shadow: 0 8px 22px rgba(0,0,0,.6), 0 0 30px rgba(63,224,192,.25); }
.play-badge img { width: 48px; height: 48px; image-rendering: pixelated; }
.play-badge span { display: block; color: var(--muted); }
.play-badge strong { display: block; color: var(--gold); font-size: 22px; }
.play-badge:hover { color: var(--gold); transform: translateY(-2px); }
.social { border: 2px solid #413345; }
/* Home page: full-width loop, one-line sign-up, clips. */
.hero-video { min-height: min(calc(100vh - 67px), 820px); min-height: min(calc(100svh - 67px), 820px); }
video.hero-art { background: #140f16; object-position: 50% 50%; }
.hero-video .hero-inner { padding-top: 90px; padding-bottom: 34px; }
.hero-video h1 { font-size: clamp(32px, 6vw, 60px); }
.hero-form { max-width: 620px; margin: 0 auto; text-align: left; }
.hero-form .fine { color: var(--text); text-shadow: 0 1px 2px #000; text-align: center; }
.hero-video .platforms { color: var(--gold); margin-top: 12px; text-shadow: 0 1px 2px #000; }
.sound-btn { position: absolute; right: 16px; top: 16px; z-index: 2; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-row input[type="email"] { flex: 1 1 220px; width: auto; min-width: 0; }
.signup-row .btn { flex: 1 1 auto; white-space: nowrap; }
.signup-band .fine { text-align: center; }
.alpha-band .section-sub { margin-bottom: 0; color: var(--text); }
.alpha-band .section-title::before, .alpha-band .section-title::after { display: none; }
.clip-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .clip-grid { grid-template-columns: repeat(3, 1fr); } }
.clip-row { margin-top: 24px; }
/* Trailer: our own poster until the visitor presses play, then YouTube's privacy-enhanced player. */
.trailer { width: 100%; max-width: 960px; box-sizing: border-box; margin: 24px auto 0; padding: 6px; }
.trailer-box { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.trailer-box img, .trailer-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.trailer-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(10,8,14,.72); border: 3px solid var(--gold); box-shadow: 0 0 0 3px #000, 0 0 28px rgba(242,207,136,.35); }
.trailer-play::after { content: ""; position: absolute; left: 32px; top: 24px; border-style: solid; border-width: 15px 0 15px 26px; border-color: transparent transparent transparent var(--gold); }
.trailer-box:hover .trailer-play, .trailer-box:focus-visible .trailer-play { background: rgba(10,8,14,.9); transform: scale(1.06); }
.trailer-note { margin: 8px 4px 2px; font-size: 13px; text-align: center; color: var(--muted, #b9b0c4); }
@media (max-width: 700px) { .trailer-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .trailer-play::after { left: 24px; top: 17px; border-width: 12px 0 12px 20px; } }
@media (min-width: 700px) { .clip-row { display: flex; flex-wrap: wrap; justify-content: center; } .clip-row .clip { flex: 0 0 calc((100% - 32px) / 3); } }
.clip { margin: 0; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #140f16; }
/* Filmed site pack (Nov 9): class panels show their class's loop; stills are smooth-scaled halves, not pixel art. */
@media (min-width: 760px) { .class-panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.class-clip { margin: 0; }
img.photo { image-rendering: auto; }
.clip figcaption { padding: 12px 10px 8px; font-size: 16px; color: var(--text); text-align: center; }
.clip figcaption strong { color: var(--gold); }
.wisp-clip { max-width: 560px; width: 100%; margin: 0 auto; }
.class-tease { margin: 20px auto 0; max-width: 680px; text-align: center; color: var(--text); }
.class-tease strong { color: var(--wisp); }
.home .portal { margin-top: 0; }
.apply-rest { margin: 0; min-width: 0; }
.apply-under-18 { padding: 12px 14px; border-left: 4px solid var(--wisp); background: rgba(63,224,192,.08); }

.links-page .avatar { border-radius: 0; object-fit: contain; padding: 14px; background: #1d161f; border: 9px solid transparent; border-image: url("/img/game/ui-slot_dark.png") 9 fill stretch; box-shadow: 0 0 30px rgba(63,224,192,.3); image-rendering: pixelated; }
