:root {
  color-scheme: dark;
  --page: #171511;
  --panel: #28241e;
  --panel-raised: #342e25;
  --gold: #c5a365;
  --gold-bright: #e6cd97;
  --edge: #79613b;
  --text: #e4dac7;
  --muted: #b7ac97;
  --serif: Georgia, 'Times New Roman', serif;
  --body: 'Trebuchet MS', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.65 var(--body); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 5px; }
p, h1, h2 { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.skip-link { position: fixed; top: -100px; left: 15px; z-index: 20; padding: 10px 20px; background: var(--panel); }
.skip-link:focus { top: 8px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border: 0; background: none; padding: 4px 0; font-size: 11px; color: var(--muted); }
.text-button:hover { color: var(--gold-bright); }
.text-button svg { width: 15px; height: 15px; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid #80653c88; background: linear-gradient(#29241c, #191713); box-shadow: inset 0 -3px 0 #100e0b, 0 3px 16px #0005; }
.header-inner { width: min(1340px, calc(100% - 64px)); min-height: 81px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-bright); flex-shrink: 0; }
.brand svg { width: 35px; height: 43px; color: var(--gold); stroke-width: 2; }
.brand span { font: small-caps 30px/1 var(--serif); letter-spacing: 1.5px; text-shadow: 0 2px 3px #000; }
#main-nav { display: flex; align-items: center; gap: 33px; }
.nav-link { min-height: 44px; border: 0; background: none; padding: 8px 0; font-size: 13px; color: #d0c3a8; }
.nav-link:hover { color: var(--gold-bright); }
.brass-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 20px; border: 1px solid var(--edge); border-radius: 2px; color: var(--gold-bright); background: linear-gradient(var(--panel-raised), #201b14); box-shadow: inset 0 0 0 2px #17130e, inset 0 3px #88704b44, 0 2px 5px #0005; font-size: 12px; line-height: 1.4; text-shadow: 0 1px #000; }
.brass-button:hover { border-color: var(--gold-bright); background: #403323; }
.brass-button svg { width: 17px; height: 17px; }
.gold-button { color: #21180b; background: linear-gradient(#dfc18b, var(--gold), #a98546); border-color: #d9bc82; font-weight: 700; text-shadow: none; }
.gold-button:hover { background: #d6b77e; }
.sign-in { margin-left: 5px; min-width: 116px; }
.menu-toggle { display: none; }
.landing { isolation: isolate; position: relative; min-height: calc(100svh - 184px); overflow: hidden; }
.world-backdrop { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(#171511e8, #171511c9 44%, var(--page)), url('assets/citadel.png') center 25% / cover no-repeat; }
.landing::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 36%, #bd8c3520, transparent 70%); }
.landing-inner { width: min(1250px, calc(100% - 96px)); margin: auto; }
.welcome-copy { text-align: center; padding: 36px 0 39px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 2.8px; font-size: 10px; line-height: 1.5; }
.welcome-copy .eyebrow { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 11px; }
.welcome-copy .eyebrow span { width: 37px; height: 1px; background: linear-gradient(90deg, transparent, var(--edge)); }
.welcome-copy .eyebrow span:last-child { transform: rotate(180deg); }
h1 { font-size: clamp(38px, 3.8vw, 53px); line-height: 1.1; letter-spacing: -1px; color: #ede1c9; margin-bottom: 13px; text-shadow: 0 3px 16px #0007; }
h1 em { font-style: normal; color: var(--gold-bright); }
.welcome-copy > p:last-child { color: #c3b69c; font-size: 13px; margin-bottom: 0; }
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 16px 0 0; list-style: none; align-items: start; }
.path { min-width: 0; }
.path-tile { position: relative; display: block; width: 100%; aspect-ratio: 320 / 430; background: #211c14; border: 0; border-radius: 19px; padding: 0; box-shadow: 0 12px 28px #0008, 0 0 0 1px #0c0b09; transition: transform .22s ease, box-shadow .22s ease; color: var(--gold); }
.tile-art { position: absolute; inset: 9px; overflow: hidden; border-radius: 12px; background: #3b3021; }
.tile-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#1d170b35, transparent 25%, #20170d10 55%, #18120a55); box-shadow: inset 0 0 25px #100b0866; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; display: block; filter: saturate(.82) brightness(.91); transition: filter .22s ease, transform .5s ease; }
.tile-frame { position: absolute; inset: 0; width: 100%; height: 100%; color: #bfa068; pointer-events: none; }
.tile-number { position: absolute; top: 11%; left: 0; right: 0; color: #e7d4aa; font: 13px var(--serif); letter-spacing: 2px; text-shadow: 0 1px 6px #000; }
.tile-emblem { position: absolute; left: calc(50% - 19px); bottom: 88px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #b3965d; outline: 3px solid #251d15b3; color: var(--gold-bright); background: #292217ed; transform: rotate(45deg); box-shadow: 0 3px 8px #0008; }
.tile-emblem svg { width: 23px; height: 23px; transform: rotate(-45deg); }
.title-plate { position: absolute; bottom: 27px; left: 12px; right: 12px; min-height: 55px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 12px; border: 1px solid #b2955e; border-radius: 9px 2px; color: #e6d1a4; background: linear-gradient(#342c20f5, #1b1813fa); box-shadow: inset 0 0 0 3px #17130d, inset 0 0 0 4px #92764a66, 0 4px 10px #0008; font: 21px/1.2 var(--serif); text-shadow: 0 2px 3px #000; }
.title-plate svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; }
.path-tile:hover, .path-tile:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 34px #000a, 0 0 22px #c5a36529; }
.path-tile:hover .tile-frame, .path-tile:focus-visible .tile-frame { color: #f1d49a; }
.path-tile:hover .tile-art img, .path-tile:focus-visible .tile-art img { filter: saturate(.95) brightness(1.05); transform: scale(1.025); }
.path-tile:hover .title-plate, .path-tile:focus-visible .title-plate { border-color: #f1d49a; color: #ffedc7; }
.path-tile:focus-visible { outline-offset: 7px; }
.path-details { padding: 20px 6px 0; text-align: center; }
.path-details h2 { font-size: 18px; line-height: 1.4; color: #e1d2b1; margin-bottom: 8px; }
.path-details p { color: #baac92; font-size: 13px; line-height: 1.8; max-width: 265px; margin: 0 auto 11px; }
.path-note { display: inline-flex; align-items: center; gap: 8px; color: #bdaa84; font-size: 11px; line-height: 1.5; }
.path-note > span { font-size: 5px; color: var(--gold); }
.path-join .path-note { color: var(--gold-bright); }
body[data-arrangement=arched] .path:nth-child(2), body[data-arrangement=arched] .path:nth-child(3) { padding-top: 0; }
body[data-arrangement=arched] .path:first-child, body[data-arrangement=arched] .path:last-child { padding-top: 19px; }
body[data-frame=simple] .tile-frame { display: none; }
body[data-frame=simple] .path-tile { border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px #17130e, 0 12px 25px #0008; }
.invitation { text-align: center; padding: 25px 0 29px; }
.rune-divider { display: flex; align-items: center; justify-content: center; gap: 15px; width: min(440px, 80%); margin: 0 auto 12px; color: var(--gold); }
.rune-divider svg { width: 20px; height: 25px; }
.rune-divider > span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--edge)); }
.rune-divider > span:last-child { transform: rotate(180deg); }
.invitation > p { margin: 0 0 3px; font: 19px/1.5 var(--serif); color: #d1c0a0; }
.invitation > span { font-size: 11px; color: #b8a88c; }
dialog { position: fixed; color: var(--text); background: var(--panel); border: 1px solid var(--gold); padding: 37px; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; box-shadow: inset 0 0 0 3px #15130f, inset 0 0 0 4px #665332, 0 20px 90px #0009; }
dialog::backdrop { background: #080705d9; backdrop-filter: blur(5px); }
dialog h2 { font-size: 33px; line-height: 1.2; margin-bottom: 18px; padding-right: 15px; }
dialog p { color: #c1b399; font-size: 14px; }
dialog .eyebrow { color: var(--gold); font-size: 10px; padding-right: 25px; margin-bottom: 11px; }
.close-button { position: absolute; right: 17px; top: 17px; background: #1b1711; border: 1px solid var(--edge); width: 40px; height: 40px; color: var(--gold-bright); font: 25px var(--serif); }
.close-button:hover { border-color: var(--gold-bright); }
.dialog-rune { width: 45px; height: 53px; color: var(--gold); margin-bottom: 25px; }
.dialog-points { list-style: none; padding: 0; margin: 20px 0; font-size: 13px; color: #dac9aa; }
.dialog-points li { position: relative; padding-left: 17px; margin: 9px 0; }
.dialog-points li::before { content: '◆'; position: absolute; left: 0; top: 6px; font-size: 5px; color: var(--gold); }
dialog .preview-note { font-size: 11px; padding: 14px 15px; background: #19150f; border-left: 2px solid var(--edge); margin: 25px 0; }
fieldset { margin: 24px 0; padding: 0; border: 0; }
legend, #design-dialog label { color: var(--text); font-size: 12px; }
legend { margin-bottom: 10px; }
.palette-options { display: flex; gap: 12px; }
.palette-options button { display: grid; justify-items: center; gap: 9px; flex: 1; padding: 14px 8px; background: #1c1812; border: 1px solid var(--edge); font-size: 11px; }
.palette-options button[aria-pressed=true] { outline: 1px solid var(--gold-bright); outline-offset: 2px; color: var(--gold-bright); }
.swatch { width: 80px; height: 16px; border: 1px solid #77613c; }
.swatch.classic { background: linear-gradient(90deg, #171511 33%, #28241e 33%, #28241e 67%, #c5a365 67%); }
.swatch.bronze { background: linear-gradient(90deg, #211810 33%, #36291e 33%, #36291e 67%, #d1a364 67%); }
#design-dialog label { display: block; margin: 20px 0 8px; }
select { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--text); background: #191611; border: 1px solid var(--edge); font-size: 13px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.noscript-note { text-align: center; padding: 16px; color: var(--muted); font-size: 12px; }
@media (min-width: 1600px) { .welcome-copy { padding-top: 47px; padding-bottom: 46px; } .paths { gap: 33px; } .invitation { padding-top: 32px; padding-bottom: 36px; } }
@media (max-width: 1150px) { .landing-inner { width: calc(100% - 64px); } .paths { gap: 18px; } .title-plate { font-size: 18px; padding-inline: 7px; gap: 6px; } .title-plate svg { display: none; } .path-details h2 { font-size: 17px; } .path-note { font-size: 10px; } #main-nav { gap: 24px; } }
@media (max-width: 900px) {
  .landing-inner { width: min(690px, calc(100% - 54px)); }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 28px; padding-top: 0; }
  body[data-arrangement=arched] .path:first-child, body[data-arrangement=arched] .path:last-child { padding-top: 0; }
  .path-tile { aspect-ratio: 320 / 405; }
  .title-plate { font-size: 23px; }
  .path-details h2 { font-size: 20px; }
  .path-details p { font-size: 13px; max-width: 280px; }
  .path-note { font-size: 10px; }
  .welcome-copy { padding: 38px 0 35px; }
  .welcome-copy > p:last-child { max-width: 440px; margin-inline: auto; }
  .invitation { padding-top: 40px; }
  .header-inner { width: calc(100% - 44px); gap: 20px; }
  #main-nav { gap: 18px; }
  .nav-link { font-size: 12px; }
  .brand span { font-size: 27px; }
  .brand svg { width: 29px; height: 36px; }
  .sign-in { padding-inline: 13px; min-width: 92px; }
}
@media (max-width: 700px) {
  .header-inner { width: calc(100% - 40px); min-height: 73px; flex-wrap: wrap; gap: 0; }
  .menu-toggle { display: inline-flex; gap: 8px; padding-inline: 12px; }
  .menu-icon { width: 14px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
  .menu-icon::after { content: ''; position: absolute; left: 0; top: 4px; width: 14px; border-top: 1px solid currentColor; }
  #main-nav { display: none; width: 100%; grid-template-columns: 1fr 1fr; gap: 4px 20px; padding: 10px 0 18px; border-top: 1px solid #655132; }
  #main-nav.is-open { display: grid; }
  #main-nav .nav-link { text-align: left; padding-inline: 9px; }
  #main-nav .sign-in { margin: 4px 0 0; }
  .welcome-copy .eyebrow { font-size: 9px; letter-spacing: 2px; gap: 10px; }
  .welcome-copy .eyebrow span { width: 23px; }
}
@media (max-width: 540px) {
  .landing-inner { width: min(350px, calc(100% - 48px)); }
  .welcome-copy { padding: 32px 0 28px; margin-inline: -8px; }
  h1 { font-size: clamp(34px, 8vw, 43px); letter-spacing: -.8px; }
  .welcome-copy > p:last-child { font-size: 12px; line-height: 1.8; max-width: 300px; }
  .paths { grid-template-columns: 1fr; gap: 32px; }
  .path-tile { aspect-ratio: 320 / 355; }
  .tile-art img { object-position: center 48%; }
  .path:first-child .tile-art img { object-position: center 39%; }
  .title-plate { font-size: 25px; min-height: 58px; bottom: 23px; left: 13px; right: 13px; }
  .title-plate svg { display: block; }
  .tile-emblem { bottom: 90px; }
  .path-details { padding-top: 18px; }
  .path-details h2 { font-size: 21px; }
  .path-details p { max-width: 310px; font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
  .path-note { font-size: 11px; }
  .invitation > p { font-size: 20px; }
  .invitation > span { display: block; font-size: 12px; max-width: 270px; margin: auto; }
  .world-backdrop { background-size: auto 950px; background-position: center top; background-repeat: no-repeat; }
  dialog { padding: 30px; }
  dialog h2 { font-size: 29px; }
}
@media (max-width: 360px) {
  .landing-inner { width: calc(100% - 38px); }
  .title-plate { font-size: 22px; }
  .welcome-copy .eyebrow { letter-spacing: 1.4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } .path-tile:hover, .path-tile:focus-visible { transform: none; } }
