:root { color-scheme: dark; font: 16px/1.6 system-ui, sans-serif; background: #111b22; color: #eee8d8; --gold: #efc577; --muted: #b7c5cb; --line: #3b505b; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 74rem; padding: 0 clamp(1rem, 5vw, 4rem); }
a { color: #f2c577; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #f2c577; outline-offset: 5px; }
header { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; padding: 2rem 0; border-bottom: 1px solid #465158; }
.brand { font-weight: 800; letter-spacing: .12em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
nav form { margin: 0; }
button { font: inherit; color: #f2c577; background: transparent; border: 1px solid currentColor; border-radius: .3rem; padding: .15rem .7rem; cursor: pointer; }
button:focus-visible { outline: 3px solid #f2c577; outline-offset: 5px; }
.sign-in { display: inline-block; padding: .6rem 1.2rem; border: 1px solid currentColor; border-radius: .3rem; }
main { padding: clamp(2.5rem, 6vw, 5rem) 0; min-height: 65vh; }
h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.08; letter-spacing: -.035em; margin: 1rem 0 1.5rem; overflow-wrap: anywhere; }
.eyebrow { color: #bdc6be; letter-spacing: .17em; font-size: .8rem; }
.intro { font-size: 1.25rem; max-width: 39rem; }
.notice { margin-top: 3rem; padding: 1rem 1.4rem; border-left: 3px solid #f2c577; background: #202e35; }
footer { padding: 2rem 0; border-top: 1px solid #465158; color: #bdc6be; font-size: .9rem; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 1rem; top: .25rem; }
body { background: radial-gradient(ellipse at 90% 5%, #22363d 0%, transparent 48%); }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; }
p { max-width: 65ch; }
button, input, select { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.8rem; border: 1px solid var(--gold); border-radius: .3rem; background: var(--gold); color: #152029; padding: .7rem 1.15rem; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.3; }
button:hover, .button:hover { filter: brightness(1.1); }
.secondary, button.secondary { background: transparent; border-color: #70838a; color: #eee8d8; }
.small { padding: .5rem .8rem; font-size: .85rem; }
.quiet { border: none; background: transparent; color: #d6b6a7; text-decoration: underline; padding-left: 0; }
button:disabled { cursor: not-allowed; background: #384951; border-color: #546873; color: #c4cdd0; filter: none; }
:is(a, button, input, select, summary):focus-visible { outline: 3px solid #e9ba68; outline-offset: 4px; }
nav { align-items: center; gap: 1.15rem; }
nav form { margin: 0; }
nav button { padding: .45rem .8rem; min-height: 2.5rem; }
.muted { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; margin: 2.5rem 0; }
.card, .panel { background: #1c2b33; border: 1px solid var(--line); border-radius: .6rem; padding: clamp(1.25rem, 3vw, 2rem); }
.card { border-top: 3px solid #b48f52; }
.character-card h2 { margin-top: 1.2rem; overflow-wrap: anywhere; }
.character-card h2 a { color: inherit; text-decoration: none; }
.crest { display: inline-grid; place-items: center; width: 4rem; height: 4.8rem; background: #354448; border: 1px solid #c8a66a; border-radius: .3rem .3rem 1.5rem 1.5rem; color: var(--gold); font: 700 2.1rem/1 Georgia, serif; }
.small-crest { width: 2.8rem; height: 3.3rem; margin-bottom: 1.5rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.3rem 0; }
.stats dt { color: var(--muted); font-size: .82rem; }
.stats dd { margin: .2rem 0 0; color: var(--gold); font-weight: 700; font-size: 1.5rem; }
.hero-stats { gap: 4rem; }
.hero-stats dd { font-size: 2rem; }
.empty-state { padding: 2.5rem; border: 1px dashed #65777e; border-radius: .6rem; }
.narrow { max-width: 36rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1.25rem; }
label, legend { font-weight: 600; font-size: .9rem; }
input:not([type=hidden]), select { border: 1px solid #7c9099; border-radius: .25rem; padding: .65rem .75rem; background: #111e26; color: #f1eee5; width: 100%; min-height: 2.8rem; max-width: 100%; }
input[readonly] { color: var(--gold); }
input[aria-invalid=true], select[aria-invalid=true] { border-color: #f0a493; }
.errorlist { color: #ffc3b7; padding-left: 1.3rem; font-size: .9rem; margin: .4rem 0; }
.form-errors { padding: 1rem; border-left: 3px solid #f0a493; margin-bottom: 1rem; background: #3b2e2c; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; align-items: start; }
.two-columns > *, .card-grid > * { min-width: 0; }
.party-layout { grid-template-columns: 1.2fr 1fr; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 0 1rem; }
.section-heading h2 { margin: 0; }
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.equipment-slot { background: #1c2b33; border: 1px solid var(--line); border-radius: .4rem; padding: 1rem; }
fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; color: var(--muted); }
.equipped-name { margin: .8rem 0; font-weight: 650; }
.equipment-slot button { margin-top: .75rem; }
fieldset:disabled { opacity: .72; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .4rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
th { background: #20313a; color: #d6dddf; }
tbody tr:last-child td { border-bottom: none; }
.roster { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.roster li { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.roster li > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.roster .muted { display: block; font-size: .85rem; }
.avatar { display: grid; place-items: center; flex: 0 0 2.8rem; height: 2.8rem; background: #344c53; border-radius: .3rem; color: #f0d39f; font-weight: 800; }
.badge { display: inline-block; border: 1px solid #607580; background: #243640; color: #d7e2e7; padding: .2rem .6rem; font-size: .76rem; font-weight: 600; border-radius: 2rem; white-space: nowrap; }
.badge.ready { border-color: #6c9987; color: #aee2ca; background: #243e36; }
.launch-panel { display: flex; gap: 2rem; align-items: center; justify-content: space-between; margin-top: 2.5rem; padding: 1.5rem; border: 1px solid #7c734e; border-radius: .5rem; background: #2c332e; }
.launch-panel h2, .launch-panel p { margin: 0; }
.launch-panel p { color: var(--muted); margin-top: .5rem; }
.launch-panel button { white-space: nowrap; }
.leave-form { margin-top: 1rem; }
.reward-panel { border-color: #7c9869; background: linear-gradient(140deg, #263b35, #1c2b33); }
.reward-items { list-style: none; margin: 1rem 0; padding: 0; }
.reward-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.reward-items strong { overflow-wrap: anywhere; }
.reward-items span { flex-shrink: 0; color: var(--gold); }
.raid-reference { overflow-wrap: anywhere; }
.history-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0; }
.notice.subtle { margin: 1.5rem 0; font-size: .95rem; }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
details { margin-top: 1.5rem; }
summary { cursor: pointer; margin-bottom: 1rem; color: var(--gold); }
.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; }
@media (max-width: 700px) { .two-columns, .party-layout { grid-template-columns: 1fr; gap: 1.5rem; } .launch-panel { flex-direction: column; align-items: stretch; gap: 1.3rem; } .launch-panel button { width: 100%; } header { padding: 1.5rem 0; gap: 1rem; } nav { gap: .8rem; font-size: .9rem; } .roster li { gap: .65rem; } .roster .badge { font-size: .7rem; } .notice { padding: 1rem; } }

/* Castle Raidr identity: original project artwork and SIL-licensed local fonts.
   See brand/provenance.json and the accompanying font notices. */
@font-face { font-family: Cinzel; src: url("brand/cinzel.1508f55ab758.ttf") format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Barlow; src: url("brand/barlow-regular.90af7baeeb14.ttf") format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url("brand/barlow-semibold.e1f2fbfbe3cc.ttf") format('truetype'); font-weight: 600 800; font-display: swap; }
:root { --gold: #d6b87c; --muted: #b0afa3; --line: #414034; --surface: #1b1c17; --serif: Cinzel, Georgia, serif; --sans: Barlow, Arial, sans-serif; color: #e3dfd2; background: #11120f; font-family: var(--sans); }
body { max-width: none; padding: 0; background: #11120f; font-family: var(--sans); }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2rem, 4.4vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
h2 em { font-style: normal; color: var(--gold); }
p { color: var(--muted); }
.page-wrap, .site-main, .header-inner, .footer-inner { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.site-header { padding: 0; border-bottom: 1px solid #67553777; background: #11120f; }
.header-inner { min-height: 100px; display: flex; align-items: center; gap: 25px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #d2ba8c; font-family: var(--serif); text-decoration: none; flex-shrink: 0; }
.brand-crest { width: 40px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.brand > span { font-size: 17px; font-weight: 600; letter-spacing: 3.8px; line-height: 1.15; }
.brand-bottom { display: block; font-size: 23px; letter-spacing: 5.7px; }
.brand-r { font-size: 13px; letter-spacing: 0; opacity: .75; }
.site-nav { margin-left: auto; gap: clamp(16px, 2.5vw, 35px); }
.site-nav > a { color: #c6c2b2; text-decoration: none; text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; }
.site-nav > a:hover, .site-nav > a[aria-current=page] { color: var(--gold); }
.environment-label { border-left: 1px solid #675537; padding-left: 20px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; color: var(--gold); }
.site-main { padding-block: 55px 85px; }
.site-main.home-main { width: 100%; padding: 0; }
.eyebrow { color: #c2a674; font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase; font-weight: 600; }
button, .button, .sign-in { border-radius: 0; background: linear-gradient(145deg, #876332, #654825); border: 1px solid #b0915b; color: #fff1d7; box-shadow: inset 0 0 0 3px #1b170c55; padding: 15px 23px; min-height: 48px; font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 600; }
button:hover, .button:hover { background: linear-gradient(145deg, #9d773e, #7a572e); filter: none; }
.secondary, button.secondary { background: transparent; color: #e3dfd2; border-color: #84714d; box-shadow: none; }
.secondary:hover { background: #29271f; }
.small { padding: 10px 16px; min-height: 40px; font-size: 10px; }
.quiet { background: transparent; border: 0; box-shadow: none; color: #d6b6a7; }
button:disabled { background: #34352e; border-color: #595b4c; color: #b0b0a3; box-shadow: none; }
:is(a, button, input, select, summary):focus-visible { outline: 3px solid #efd299; outline-offset: 5px; }
.card, .panel, .equipment-slot { background: var(--surface); border-color: var(--line); border-radius: 2px; }
.card { border-top-color: #a18552; }
.crest, .avatar { background: #303126; color: var(--gold); }
input:not([type=hidden]), select { border-color: #77765f; background: #11120f; color: #e3dfd2; border-radius: 2px; }
th { background: #28291f; color: #e3dfd2; }
.table-scroll, .empty-state { border-radius: 2px; }
.notice { background: #25261c; border-color: #b69a66; }
.notice p { margin: .35rem 0 0; }
.badge { background: #2d3024; border-color: #687052; color: #d6dbc9; }
.launch-panel { background: #272a20; border-color: #76724c; border-radius: 2px; }
.reward-panel { background: linear-gradient(140deg, #293525, #1b1c17); }
.text-button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; color: #dfd8c8; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; text-decoration: none; font-weight: 600; }
.text-button span { color: var(--gold); font-size: 18px; }
.portal-hero { min-height: 660px; position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid #49402c; }
.hero-art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10110ff2 0%, #10110fbd 32%, #10110f20 72%), linear-gradient(0deg, #11120fee, transparent 42%), url("brand/hero.bf916e03c7aa.webp") center 54% / cover; }
.hero-content { padding-block: 82px 110px; }
.hero-content .eyebrow { margin: 0 0 26px; font-size: 10px; }
.hero-content .eyebrow span { margin-right: 8px; }
.portal-hero h1 { max-width: 900px; font-size: clamp(37px, 4.6vw, 67px); line-height: 1.18; letter-spacing: -.035em; margin: 0; text-transform: uppercase; text-shadow: 0 3px 35px #0008; }
.portal-hero h1 em { font-style: normal; color: #d1af73; }
.ornament { display: flex; gap: 12px; align-items: center; color: #a58447; font-size: 9px; margin: 26px 0 20px; }
.ornament span { width: 74px; height: 1px; background: linear-gradient(90deg, #826c43, transparent); }
.ornament span:first-child { background: linear-gradient(90deg, transparent, #826c43); }
.hero-description { color: #d8d3c6; font-size: 20px; line-height: 1.6; margin: 0; }
.hero-actions { display: flex; gap: 27px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; letter-spacing: .5px; margin-top: 24px; color: #b6b2a2; }
.hero-meta span + span { padding-left: 16px; border-left: 1px solid #6a644b; }
.art-credit { position: absolute; right: 48px; bottom: 14px; font-size: 9px; text-transform: uppercase; letter-spacing: 1.4px; color: #c2bca9; }
.portal-content { padding-block: 46px 88px; }
.welcome-notice { margin-top: 0; }
.qa-callout { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.qa-callout .eyebrow { margin: 0 0 10px; }
.qa-callout h2 { font-size: 21px; margin: 0; }
.qa-callout p:last-child { max-width: 72ch; font-size: 15px; margin-bottom: 0; }
.qa-callout > .button { flex-shrink: 0; }
.preparation { padding-top: 27px; }
.preparation .section-heading { margin-bottom: 28px; }
.preparation .eyebrow { margin-bottom: 12px; }
.preparation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preparation-card { padding: 30px; text-decoration: none; border-top: 1px solid #8e7446; display: flex; flex-direction: column; }
.preparation-card:hover { background: #24251d; border-color: #a88a55; }
.feature-number { font-family: var(--serif); font-size: 17px; color: #ba9b64; }
.preparation-card h3 { font-size: 22px; color: #e3dfd2; margin: 17px 0 0; }
.preparation-card p { font-size: 16px; flex: 1; }
.card-link { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #d5b77c; margin-top: 18px; }
.adventure-preview { display: grid; grid-template-columns: 1.12fr 1fr; gap: 64px; align-items: center; margin-top: 76px; }
.adventure-preview figure { margin: 0; }
.adventure-preview img { width: 100%; height: auto; display: block; border: 1px solid #5b4d32; }
.adventure-preview figcaption { font-size: 10px; color: #a6a497; margin-top: 10px; }
.adventure-preview h2 { line-height: 1.45; font-size: clamp(25px, 2.8vw, 37px); }
.adventure-preview p { max-width: 43ch; }
.prelaunch-message { max-width: 48ch; font-size: 16px; color: #b7b2a5; margin-top: 18px; }
.prelaunch-hero { min-height: 720px; }
.prelaunch-preview { padding-bottom: 85px; }
.site-footer { border-top: 1px solid #49402c; padding: 42px 0 30px; background: #0d0e0c; }
.footer-inner { display: flex; gap: 30px; align-items: start; flex-wrap: wrap; }
.footer-brand { color: #d2ba8c; font: 500 17px var(--serif); letter-spacing: 3px; text-decoration: none; }
.footer-inner > div p { margin: 8px 0 0; font-size: 13px; }
.footer-inner > nav { margin-left: auto; font-size: 12px; gap: 22px; }
.footer-inner nav a { color: #bcb8aa; text-decoration: none; }
.footer-inner .footer-legal { flex-basis: 100%; max-width: none; border-top: 1px solid #303025; padding-top: 21px; font-size: 11px; line-height: 1.8; margin-bottom: 0; }
.skip:focus { z-index: 100; padding: 8px 15px; background: #d6b87c; color: #11120f; }
@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; gap: 18px; }
  .site-nav { gap: 20px; }
  .qa-callout { align-items: start; flex-direction: column; gap: 20px; }
  .adventure-preview { gap: 34px; }
  .preparation-card { padding: 23px; }
}
@media (max-width: 700px) {
  .page-wrap, .site-main, .header-inner, .footer-inner { width: calc(100% - 40px); }
  .header-inner { padding-block: 17px; gap: 18px 22px; }
  .brand-crest { width: 32px; height: 40px; }
  .brand > span { font-size: 14px; }
  .brand-bottom { font-size: 20px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: flex-start; gap: 12px 22px; }
  .site-nav > a { font-size: 10px; letter-spacing: 1px; }
  .environment-label { margin-left: auto; font-size: 9px; padding-left: 15px; }
  .portal-hero { min-height: 610px; }
  .hero-content { padding-block: 62px 75px; }
  .hero-art { background-position: 63% center; background-image: linear-gradient(90deg, #10110fe8, #10110f70), linear-gradient(0deg, #11120fe8, transparent 70%), url("brand/hero.bf916e03c7aa.webp"); }
  .portal-hero h1 { font-size: clamp(30px, 7.9vw, 52px); }
  .hero-description { font-size: 18px; }
  .hero-actions { gap: 10px 22px; }
  .hero-meta { gap: 10px; font-size: 10px; }
  .hero-meta span + span { padding-left: 10px; }
  .art-credit { right: 20px; font-size: 8px; }
  .preparation-grid { grid-template-columns: 1fr; }
  .adventure-preview { grid-template-columns: 1fr; gap: 30px; margin-top: 47px; }
  .footer-inner > nav { margin-left: 0; gap: 14px 20px; }
  .prelaunch-hero { min-height: 660px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
