:root {
  --ink: #f7efe1;
  --muted: #c4b69f;
  --night: #1e1d19;
  --night-2: #23221e;
  --panel: #292821;
  --panel-2: #322f28;
  --line: #6d5439;
  --line-soft: #493a2c;
  --ember: #b45b30;
  --ember-light: #dc8847;
  --gold: #e5bd67;
  --gold-soft: #a27b43;
  --art-charcoal: #1e1d19;
  --art-copper: #9a603d;
  --art-moss: #46472a;
  --art-twilight: #393f57;
  --art-stone: #c8b898;
  --green: #70a96f;
  --red: #c46154;
  --blue: #678aa2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --content-max-width: 1320px;
  --content-gutter: clamp(20px, 4vw, 56px);
  --section-spacing: clamp(68px, 7vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans); min-height: 100vh; }
button, input, select { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.page-texture { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at 72% -5%, rgba(154,96,61,.18), transparent 31%), radial-gradient(circle at 7% 52%, rgba(70,71,42,.13), transparent 36%), radial-gradient(circle at 96% 72%, rgba(57,63,87,.09), transparent 31%), repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 5px), var(--night); }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--gold); color: #17110b; font-weight: 800; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 18px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-target { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; }
.content-grid { width: min(calc(100% - (2 * var(--content-gutter))), var(--content-max-width)); margin-inline: auto; }

.site-header { border-bottom: 1px solid rgba(223,181,95,.32); background: rgba(13,13,11,.96); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 18px; position: relative; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 190px; }
.brand-emblem { display: block; width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand b { font: 600 20px var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.brand small { font-size: 8px; letter-spacing: .2em; color: #a49a8c; text-transform: uppercase; margin-top: 2px; }
.site-header nav { display: flex; justify-content: center; min-width: 0; gap: clamp(12px,1.45vw,24px); flex: 1; }
.site-header nav > a, .nav-group-toggle { display: inline-flex; align-items: center; min-height: 32px; line-height: 1; }
.site-header nav a { color: #c2b9aa; text-decoration: none; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; position: relative; white-space: nowrap; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--gold); transition: .2s; }
.site-header nav a:hover { color: var(--gold); }
.site-header nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.world-offline .world-orb i { background: #8c5a4f; box-shadow: 0 0 11px rgba(196,97,84,.55); }
.world-degraded .world-orb i { background: #c08c42; box-shadow: 0 0 11px rgba(192,140,66,.55); }
.world-maintenance .world-orb i { background: #6489a1; box-shadow: 0 0 11px rgba(100,137,161,.55); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); background: #17130e; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; height: 1px; background: #c7b899; margin: 5px 0; transition: .2s; }
.desktop-only { display: inline-block; }

.button { border: 1px solid var(--line); background: #292823; color: var(--ink); padding: 10px 17px; border-radius: 2px; cursor: pointer; font-weight: 700; font-size: 11px; letter-spacing: .05em; transition: .2s; text-decoration: none; display: inline-block; }
.button:hover { transform: translateY(-1px); border-color: #97764b; background: #34322b; }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.button.ember { border-color: #c27845; background: linear-gradient(180deg,#a9542f,#7f351f); color: #fff8ed; box-shadow: inset 0 1px rgba(255,255,255,.18), 0 10px 30px rgba(127,53,31,.24); }
.button.stone { background: linear-gradient(#3a3730,#282722); border-color: #6b5941; }
.button.ghost { background: transparent; }
.button.large { padding: 14px 22px; font-size: 12px; }
.button.wide { width: 100%; padding: 13px; text-align: center; }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); font-weight: 800; font-size: 9px; margin-bottom: 13px; }
h1[tabindex="-1"]:focus { outline: none; box-shadow: -5px 0 0 rgba(223,181,95,.78); }

.realm-status-bar { border-bottom: 1px solid rgba(223,181,95,.28); background: linear-gradient(90deg,#22282a,#303638 58%,#252a2b); color: #c0b7aa; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.status-strip-inner { min-height: 42px; padding-block: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.online-record > span { display: inline-block; }
.character-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.character-delete-action { border: 1px solid #634237; border-radius: 4px; padding: 6px 9px; color: #d6ac94; background: transparent; cursor: pointer; font: inherit; font-size: 11px; }
.character-delete-action:disabled { opacity: .5; cursor: not-allowed; }
.realm-status-bar b { color: #d9cbb4; }
.status-badge { padding: 5px 9px; border: 1px solid #4c6e50; color: #93c293; background: rgba(72,111,74,.12); }
.status-badge[data-state="degraded"] { border-color: #8b6c36; color: #e0b76a; background: rgba(139,108,54,.12); }
.status-badge[data-state="maintenance"] { border-color: #526f85; color: #8eb3ca; background: rgba(82,111,133,.12); }
.status-badge[data-state="offline"], .status-badge[data-state="unknown"] { border-color: #71473f; color: #ca8072; background: rgba(113,71,63,.12); }

.hero { min-height: 660px; display: grid; grid-template-columns: minmax(360px,.9fr) minmax(520px,1.15fr); padding-block: 68px 76px; gap: 56px; overflow: hidden; }
.hero-copy { align-self: center; z-index: 2; }
.hero h1 { font: 500 clamp(49px,5.3vw,80px)/.98 var(--serif); margin: 0 0 26px; letter-spacing: -.04em; max-width: 680px; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 31px; }
.hero-scene { position: relative; min-height: 515px; border: 1px solid #423321; background: linear-gradient(#242323 0 28%,#44382b 55%,#19140d 100%); overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 5px #14100b; }
.hero-scene::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(215,172,91,.11); z-index: 9; pointer-events: none; }
.hero-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(6,5,4,.32),transparent 48%), radial-gradient(circle at 72% 65%,rgba(235,123,49,.23),transparent 15%), linear-gradient(transparent 65%,rgba(8,6,4,.72)); z-index: 7; pointer-events: none; }
.hero-picture { position: absolute; inset: 0; }
.hero-picture img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.sky-glow { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: #d4c392; right: 12%; top: 10%; box-shadow: 0 0 90px rgba(218,194,137,.36); }
.ridge { position: absolute; left: -10%; right: -10%; bottom: 33%; height: 46%; background: #26231e; clip-path: polygon(0 90%,12% 45%,22% 73%,36% 20%,50% 75%,65% 7%,80% 70%,92% 38%,100% 75%,100% 100%,0 100%); }
.ridge-back { opacity: .45; transform: scale(1.15) translateY(-23px); }
.ridge-front { background: #181612; bottom: 18%; height: 48%; }
.keep { position: absolute; z-index: 3; width: 180px; height: 205px; right: 17%; bottom: 17%; background: repeating-linear-gradient(0deg,#26231d 0 18px,#211e19 18px 20px); border-top: 10px solid #17140f; box-shadow: -22px 25px 35px rgba(0,0,0,.4); }
.keep::before { content: ""; position: absolute; width: 34px; height: 68px; background: #0a0907; bottom: 0; left: 73px; border-radius: 20px 20px 0 0; }
.keep i { position: absolute; width: 12px; height: 28px; background: #df8b3f; left: 38px; top: 53px; box-shadow: 65px 0 #df8b3f, 0 0 22px #e87929, 65px 0 22px #e87929; }
.keep b { position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent 0 42px,rgba(0,0,0,.15) 42px 44px); }
.keep-tower { position: absolute; background: #211e19; width: 65px; height: 245px; bottom: 0; }
.keep-tower::before { content: ""; position: absolute; left: -5px; right: -5px; top: -10px; height: 17px; background: repeating-linear-gradient(90deg,#17140f 0 14px,transparent 14px 21px); }
.keep-tower.left { left: -48px; }
.keep-tower.right { right: -48px; }
.tile-road { position: absolute; left: -5%; right: -5%; bottom: -3%; height: 37%; background: repeating-linear-gradient(20deg,transparent 0 42px,rgba(113,87,50,.13) 43px 45px), repeating-linear-gradient(110deg,#211a11 0 38px,#2c2115 39px 41px); clip-path: polygon(40% 0,65% 0,85% 100%,18% 100%); z-index: 2; }
.torch { position: absolute; z-index: 8; width: 5px; height: 24px; background: #67401f; bottom: 17%; }
.torch::after { content: ""; position: absolute; width: 14px; height: 23px; background: #f18a37; border-radius: 55% 55% 45% 45%; left: -5px; top: -20px; filter: blur(1px); box-shadow: 0 0 24px 8px rgba(239,112,36,.46); }
.torch-one { left: 26%; }
.torch-two { right: 29%; bottom: 26%; }
.outfit { --outfit-head: #b98b68; --outfit-body: #765035; --outfit-legs: #514239; --outfit-feet: #211914; position: absolute; width: 48px; height: 86px; z-index: 8; filter: drop-shadow(0 8px 5px rgba(0,0,0,.55)); }
.outfit span { display: block; position: absolute; }
.outfit-head { width: 25px; height: 24px; left: 11px; top: 0; background: var(--outfit-head); border-top: 8px solid #66503e; }
.outfit-body { width: 35px; height: 35px; left: 6px; top: 22px; background: var(--outfit-body); clip-path: polygon(18% 0,82% 0,100% 87%,76% 100%,50% 83%,24% 100%,0 87%); box-shadow: inset -7px 0 rgba(0,0,0,.17); }
.outfit-legs { width: 28px; height: 29px; left: 9px; top: 55px; background: linear-gradient(90deg,var(--outfit-legs) 0 43%,#17120e 43% 57%,var(--outfit-legs) 57%); border-bottom: 6px solid var(--outfit-feet); }
.outfit-weapon { position: absolute; width: 5px; height: 53px; background: #b5a58d; right: -3px; top: 18px; transform: rotate(16deg); box-shadow: 0 0 0 1px #493e32; }
.outfit-weapon::before { content: ""; position: absolute; top: -8px; left: -4px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 13px solid #d3c6af; }
.knight { left: 33%; bottom: 14%; transform: scale(.9); }
.knight .outfit-body { --outfit-body: #7d4b2e; }
.mage { left: 22%; bottom: 11%; transform: scale(.78); }
.mage .outfit-body { --outfit-body: #466177; }
.mage .outfit-weapon { height: 61px; background: #684326; }
.mage .outfit-weapon::before { border: 0; width: 15px; height: 15px; border-radius: 50%; background: #7bb3c7; left: -5px; box-shadow: 0 0 13px #7bb3c7; }

.portal-section { padding-block: var(--section-spacing); border-top: 1px solid #241e16; }
.section-heading { max-width: 710px; margin: 0 auto 42px; text-align: center; }
.section-heading.left { text-align: left; margin-left: 0; }
.section-heading h2, .join-banner h2 { font: 42px/1.12 var(--serif); margin: 6px 0 12px; }
.section-heading p, .join-banner p, .section-row p { color: var(--muted); font: 16px/1.6 var(--serif); margin: 0; }

.platform-label, .change-label { display: inline-block; color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.world-section { background: linear-gradient(180deg,#252621,#1d1e1b); }
.world-section-primary { border-top-color: #6c5639; }
.character-search { max-width: 780px; margin: -10px 0 32px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.character-search > label { display: block; margin-bottom: 9px; color: #c9b998; font: 18px var(--serif); }
.character-search > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.character-search input { min-width: 0; padding: 12px 14px; border: 1px solid #66533b; background: #191a17; color: var(--ink); }
.world-grid { max-width: 1380px; margin: auto; display: grid; grid-template-columns: 1.35fr 1fr .8fr; gap: 14px; }
.feature-panel, .world-card, .profile-card { background: linear-gradient(145deg,var(--panel-2),var(--panel)); border: 1px solid var(--line-soft); padding: 22px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #30271d; padding-bottom: 14px; margin-bottom: 8px; font: 600 13px var(--serif); }
.panel-title small { color: var(--muted); font: 8px var(--sans); text-transform: uppercase; letter-spacing: .13em; }
.skull-mark { color: var(--red); margin-right: 7px; }
.green-mark { color: var(--green); margin-right: 7px; }
.death-entry { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid #292219; }
.death-entry:last-child { border: 0; }
.death-entry time { color: var(--muted); font-size: 9px; }
.death-entry a { color: #dfd0b9; text-decoration: none; font: 600 14px var(--serif); }
.death-entry a:hover { color: var(--gold); }
.death-entry p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.death-entry p strong { color: #d0c4b2; }
.death-entry > span { color: var(--muted); font-size: 9px; }
.live-label { font: 8px var(--sans); color: var(--green); text-transform: uppercase; letter-spacing: .15em; }
.online-entry { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid #292219; text-decoration: none; }
.online-entry:hover b { color: var(--gold); }
.online-entry span { display: flex; align-items: center; }
.online-entry i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 7px var(--green); margin-right: 9px; }
.online-entry b { font: 13px var(--serif); }
.online-entry small { color: var(--muted); font-size: 9px; }
.world-card { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 20%,rgba(102,165,121,.15),transparent 34%),linear-gradient(var(--panel-2),#22231f); }
.world-card::after { content: ""; position: absolute; inset: auto -70px -70px auto; width: 160px; height: 160px; border: 1px solid rgba(215,172,91,.08); transform: rotate(45deg); }
.world-orb { width: 55px; height: 55px; border: 1px solid #416346; border-radius: 50%; display: grid; place-items: center; margin: 17px 0; }
.world-orb i { width: 18px; height: 18px; background: #71ad72; border-radius: 50%; box-shadow: 0 0 25px 8px rgba(105,175,110,.25); }
.world-card h3 { position: relative; z-index: 1; font: 23px var(--serif); margin: 9px 0; }
.world-card > p { color: #8f8475; font: 13px/1.5 var(--serif); }
.world-card dl { margin: 22px 0; }
.world-card dl div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #2b241b; }
.world-card dt { color: var(--muted); font-size: 9px; }
.world-card dd { margin: 0; color: #c9baa3; font: 13px var(--serif); }
.world-card > a { color: var(--gold); font-size: 9px; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; position: relative; z-index: 1; }
.skeleton, .peaceful { color: var(--muted) !important; font: 13px/1.6 var(--serif); }
.fallback-copy { color: #9c836d !important; font: 13px/1.6 var(--serif); padding: 14px 3px; }

.rankings-shell { min-width: 0; }
.control-group { display: grid; grid-template-columns: 82px 1fr; align-items: start; gap: 15px; }
.control-group + .control-group { margin-top: 14px; }
.control-group > span { padding-top: 8px; color: var(--muted); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; }
.category-tabs, .vocation-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.category-tabs button, .vocation-tabs button { border: 1px solid var(--line-soft); background: #20211e; color: #c0b7aa; padding: 8px 11px; border-radius: 2px; font-size: 9px; cursor: pointer; transition: .15s; }
.category-tabs button:hover, .vocation-tabs button:hover { border-color: #6a4e2e; color: #d7c7ad; }
.category-tabs button[aria-pressed="true"], .vocation-tabs button[aria-pressed="true"] { border-color: #9c6636; background: #3a2414; color: #f0c681; box-shadow: inset 0 0 16px rgba(217,119,48,.12); }
.table-scroll { overflow-x: auto; }
.ranking-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.ranking-table th { padding: 12px 22px; border-block: 1px solid var(--line-soft); background: #20211e; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .13em; text-align: left; }
.ranking-table td { padding: 15px 22px; border-bottom: 1px solid #292118; color: #b8ad9c; font-size: 12px; }
.ranking-table tbody tr { transition: .15s; }
.ranking-table tbody tr:hover { background: var(--panel-2); }
.rank-number { display: inline-grid; place-items: center; width: 29px; height: 29px; color: #7e7467; font: 13px var(--serif); }
.rank-number.podium { border: 1px solid #635033; background: #211b12; color: var(--gold); }
.podium-1 { box-shadow: 0 0 16px rgba(215,172,91,.13); }
.player-link { color: #e4d5bc; text-decoration: none; font: 600 15px var(--serif); }
.player-link:hover { color: var(--gold); }
.vocation-badge { display: inline-block; padding: 5px 8px; border: 1px solid #3e3327; color: #a79a87; font-size: 9px; }
.vocation-4 { border-color: #765038; color: #d49a70; }
.vocation-3 { border-color: #4d6b51; color: #91bc8c; }
.vocation-1 { border-color: #4e6078; color: #91accb; }
.vocation-2 { border-color: #6c526b; color: #c39bc0; }
.vocation-9 { border-color: #8a7138; color: #dfc56f; }
.score-value { color: var(--gold); font: 17px var(--serif); }
.table-empty { text-align: center !important; color: #766c60 !important; padding: 24px !important; }
.table-empty.error { color: var(--red) !important; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 18px 24px; }
.pagination span { color: #81776a; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }

.shop-section { background: #1b1b17; }

.rules-section { background: radial-gradient(circle at 82% 12%,rgba(70,71,42,.18),transparent 32%),var(--night-2); }
.rules-grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.rules-grid article { position: relative; min-height: 190px; padding: 30px 32px 28px 76px; border: 1px solid var(--line-soft); background: radial-gradient(circle at 100% 0,rgba(70,71,42,.09),transparent 38%),linear-gradient(145deg,var(--panel-2),var(--panel)); }
.rules-grid article > span { position: absolute; left: 28px; top: 31px; color: #765b36; font: 25px var(--serif); }
.rules-grid h3 { font: 23px var(--serif); margin: 0 0 10px; }
.rules-grid p { color: var(--muted); font: 13px/1.65 var(--serif); margin: 0; }

.changelog-section { background: radial-gradient(circle at 92% 18%,rgba(57,63,87,.13),transparent 34%),#25251f; }
.timeline { max-width: 980px; margin: 0 auto; max-height: var(--timeline-height, 32rem); overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #997b47 #191915; touch-action: pan-y; }
.timeline:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.timeline::-webkit-scrollbar { width: 8px; }
.timeline::-webkit-scrollbar-track { background: #191915; }
.timeline::-webkit-scrollbar-thumb { background: #997b47; border: 2px solid #191915; border-radius: 6px; }
.timeline-hint { max-width: 980px; margin: 0 auto 12px; color: var(--muted); font-size: 11px; }
.timeline-hint span { color: var(--gold); }
.timeline article { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 26px; padding: 18px 12px 18px 0; border-top: 1px solid #352b20; overflow-wrap: anywhere; }
.timeline time { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.timeline h3 { font: 21px var(--serif); margin: 6px 0; }
.timeline p { color: var(--muted); font: 13px/1.6 var(--serif); margin: 0; }
.server-guide-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 20px 0; font-size: 12px; color: var(--gold); }
.exercise-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.exercise-guide-grid > div { min-width: 0; }
.exercise-guide-grid p { line-height: 1.65; }
.exercise-guide code { overflow-wrap: anywhere; white-space: normal; }
.exercise-commands { list-style: none; padding: 0; line-height: 2; }
.exercise-separation { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .exercise-guide-grid { grid-template-columns: 1fr; gap: 4px; } }
.change-label.muted { color: #8d806f; }
.join-banner { margin-block: 0; padding: 72px clamp(28px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: radial-gradient(circle at 80%,rgba(154,96,61,.22),transparent 36%),var(--night-2); border-inline: 1px solid var(--line-soft); }
.join-banner p { margin-bottom: 0; }
.legal-section { background: #12100d; }
.legal-section + .legal-section { background: #0f0d0a; }
.legal-copy { max-width: 1180px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.legal-copy article { padding: 26px; border: 1px solid #362d22; background: #17130f; }
.legal-copy h3 { margin: 0 0 10px; font: 22px var(--serif); }
.legal-copy p { margin: 0; color: #978c7d; font: 13px/1.68 var(--serif); }
.commerce-legal-details { max-width: 1180px; margin-top: 14px; padding: 22px 26px; border: 1px solid #493825; background: #1b1610; color: #a99e8c; font: 13px/1.65 var(--serif); }
.commerce-legal-details h3 { margin: 0 0 8px; color: var(--ink); font: 20px var(--serif); }
.commerce-legal-details p { margin: 6px 0 0; }
.commerce-legal-details a { color: var(--gold); }

.profile-view { padding-block: 48px 100px; }
.back-link { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 20px; color: #9b8e7d; text-decoration: none; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.back-link:hover { color: var(--gold); }
.profile-hero { display: grid; grid-template-columns: minmax(238px,28%) minmax(0,1fr); min-height: 320px; overflow: hidden; border: 1px solid #493820; background: radial-gradient(circle at 14% 45%,rgba(190,105,48,.18),transparent 28%),linear-gradient(135deg,#221a11,#12100c 72%); box-shadow: var(--shadow); }
.profile-portrait { position: relative; display: grid; min-width: 0; place-items: center; border-right: 1px solid #3a2f22; overflow: hidden; isolation: isolate; }
.profile-portrait::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(198,149,76,.09); background: repeating-linear-gradient(135deg,transparent 0 14px,rgba(228,178,91,.025) 14px 15px); }
.portrait-halo { position: absolute; width: 160px; height: 160px; border: 1px solid #5b432a; transform: rotate(45deg); background: radial-gradient(circle,rgba(194,112,54,.14),rgba(194,112,54,.015) 58%,transparent 60%); box-shadow: 0 0 60px rgba(196,101,43,.13),inset 0 0 34px rgba(196,101,43,.07); }
.profile-outfit-stage { position: relative; z-index: 3; display: grid; width: 174px; height: 174px; place-items: center; outline: none; }
.profile-outfit { display: block; width: var(--outfit-desktop-width); height: var(--outfit-desktop-height); image-rendering: crisp-edges; image-rendering: pixelated; filter: drop-shadow(0 12px 8px rgba(0,0,0,.65)); }
.profile-outfit[hidden] { display: none; }
.profile-outfit-fallback { display: grid; width: 92px; height: 92px; place-items: center; border: 1px solid #5a452d; background: linear-gradient(145deg,#201910,#13100c); color: #80694e; font: 42px/1 var(--serif); clip-path: polygon(22% 0,78% 0,100% 22%,100% 78%,78% 100%,22% 100%,0 78%,0 22%); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.profile-outfit-fallback[hidden] { display: none; }
.profile-status { position: absolute; z-index: 4; bottom: 20px; padding: 7px 11px; border: 1px solid #493a2b; background: rgba(21,17,13,.94); color: #a39889; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.profile-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #756a5e; vertical-align: 1px; }
.profile-status.online { color: #9bd19a; border-color: #476147; }
.profile-status.online::before { background: #79bf78; box-shadow: 0 0 8px rgba(121,191,120,.7); }
.profile-title { align-self: center; min-width: 0; padding: 38px clamp(30px,4.5vw,64px); }
.profile-kicker { display: block; margin-bottom: 14px; color: #9d6b3e; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.profile-title h1 { margin: 0; color: #eee0c8; font: clamp(40px,5vw,60px)/.98 var(--serif); overflow-wrap: anywhere; text-wrap: balance; }
.profile-title > p { max-width: 620px; margin: 15px 0 0; color: #a89d8d; font: 17px/1.55 var(--serif); }
.profile-identity { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 650px; margin: 28px 0 0; border-block: 1px solid #3e3122; }
.profile-identity div { min-width: 0; padding: 12px 16px 13px 0; }
.profile-identity div + div { padding-left: 16px; border-left: 1px solid #3e3122; }
.profile-identity dt,.profile-last-seen span { color: #766c60; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.profile-identity dd { margin: 5px 0 0; color: #d7c19c; font: 17px/1.15 var(--serif); overflow-wrap: anywhere; }
.profile-last-seen { display: flex; align-items: baseline; gap: 9px; margin: 14px 0 0 !important; font: inherit !important; }
.profile-last-seen strong { color: #938778; font-size: 10px; font-weight: 500; }
.profile-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 14px; margin-top: 14px; }
.profile-card { min-width: 0; min-height: 236px; }
.profile-deaths, .profile-achievements { grid-column: 1/-1; min-height: auto; }
.profile-achievement-entry { display: flex; justify-content: space-between; gap: 16px; padding: 12px 3px; border-bottom: 1px solid var(--line-soft); }
.profile-achievement-entry div { min-width: 0; overflow-wrap: anywhere; }
.profile-achievement-entry strong { color: var(--gold); font: 14px var(--serif); }
.profile-achievement-entry span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.profile-achievement-entry time { flex-shrink: 0; color: var(--muted); font-size: 10px; }
#profile-achievements-more { margin-top: 14px; }
#profile-achievements-more[hidden] { display: none; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; }
.stat-grid div { padding: 17px; border: 1px solid #2d251c; margin: -1px 0 0 -1px; }
.stat-grid dt { color: #776e61; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.stat-grid dd { margin: 7px 0 0; color: var(--gold); font: 20px var(--serif); }
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 19px; border: 1px solid #2d251c; }
.skill-grid div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid #2d251c; }
.skill-grid div:nth-child(odd) { border-right: 1px solid #2d251c; }
.skill-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.skill-grid span { color: #9d9180; font-size: 10px; }
.skill-grid strong { color: #dec9a9; font: 16px var(--serif); font-variant-numeric: tabular-nums; }
.profile-death-entry { display: grid; grid-template-columns: minmax(115px,.25fr) minmax(0,1fr); gap: 22px; padding: 14px 3px; border-bottom: 1px solid #2c241b; }
.profile-death-entry time { color: #786e61; font-size: 9px; }
.profile-death-entry p { margin: 0; color: #a69a8a; font: 13px var(--serif); }

.dashboard { min-height: calc(100vh - 80px); background: #100e0b; }
.account-controls { display: flex; align-items: center; gap: 12px; }
.account-navigation { display: flex; align-items: stretch; min-height: 40px; border-bottom: 1px solid #30271e; }
.account-navigation button { min-width: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #93897b; cursor: pointer; font: 700 9px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.account-navigation button:hover, .account-navigation button.active { color: var(--gold); border-bottom-color: var(--ember); }
.account-utility-action { min-height: 38px; padding: 0 13px; border: 1px solid #473a2d; background: transparent; color: #9d9386; cursor: pointer; font: 700 8px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.account-utility-action:hover { border-color: #785635; color: var(--gold); }
.dashboard-main { padding: 38px var(--content-gutter) 80px; max-width: var(--content-max-width); width: 100%; margin-inline: auto; }
.dashboard-header, .section-row { display: flex; align-items: center; justify-content: space-between; }
.dashboard-header h1 { font: 32px var(--serif); margin: 0; }
.account-identity { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(230px,.95fr) minmax(145px,.55fr); margin-top: 18px; border: 1px solid #372d22; background: #16120e; }
.account-detail { min-width: 0; padding: 10px 16px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid #30271e; }
.account-detail:last-child { border-right: 0; }
.account-detail > span, .security-card > span { color: #776e63; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.account-detail strong, .security-card strong { color: #d7c5aa; font: 17px var(--serif); }
.account-email-detail strong, .security-card strong { overflow-wrap: anywhere; }
.account-detail small, .security-card small { color: #81786d; font-size: 9px; line-height: 1.5; }
.account-status { width: fit-content; color: var(--green) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.account-status.unverified { color: var(--gold) !important; }
.account-id-line { display: flex; align-items: center; gap: 9px; }
.account-id-line strong { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.copy-action { min-width: 44px; min-height: 28px; padding: 4px 9px; border: 1px solid #473a2d; background: #1c1712; color: #baa98f; cursor: pointer; font: 700 8px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.copy-action:hover { border-color: #785635; color: var(--gold); }
.copy-status { min-height: 14px; color: var(--green) !important; }
.copy-status:empty { display: none; }
.notice { margin: 28px 0; padding: 16px 18px; border: 1px solid #72532b; background: #2a2015; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.notice > div { display: flex; flex-direction: column; gap: 4px; }
.notice span { color: #b8a58c; }
.dashboard-section { margin-top: 34px; }
.section-row h2 { font: 26px var(--serif); margin: 0; }
.section-row p { margin: 5px 0 0; }
.character-list { margin-top: 18px; border: 1px solid #372d22; background: #15120e; }
.character-card { min-width: 0; padding: 16px 18px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 18px; border-bottom: 1px solid #30271e; }
.character-card:last-child { border-bottom: 0; }
.character-card h3 { margin: 0; font: 19px var(--serif); }
.character-card h3 a { text-decoration: none; }
.character-card h3 a:hover { color: var(--gold); }
.character-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; margin: 5px 0 0; color: #82796d; font-size: 9px; }
.character-card .status { white-space: nowrap; color: #777066; font-size: 9px; }
.character-card .status.online { color: var(--green); }
.character-profile-link { color: #a89780; font-size: 9px; text-decoration: none; white-space: nowrap; }
.character-profile-link:hover { color: var(--gold); }
.empty-state { padding: 25px 20px; border: 1px dashed #3b3329; color: #8c857a; }
.empty-state b { color: #c4b49d; font: 17px var(--serif); }
.empty-state p { margin: 5px 0 0; }
.empty-state.compact { padding: 24px; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.security-card { min-width: 0; padding: 19px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid #372d22; background: #15120e; }
.security-card .button { margin-top: 9px; }
.session-panel { margin-top: 24px; padding: 19px; border: 1px solid #372d22; background: #15120e; }
.subsection-heading h3 { margin: 0; font: 20px var(--serif); }
.subsection-heading p { margin: 4px 0 13px; }
.session-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #302c25; }
.session-row div { display: flex; flex-direction: column; gap: 5px; }
.session-row small { color: #7d776e; }
.current { color: var(--green); }
.order-list { margin-top: 20px; border: 1px solid #372d22; background: #15120e; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border-bottom: 1px solid #30271e; }
.order-row:last-child { border-bottom: 0; }
.order-row h3 { margin: 8px 0 5px; font: 21px var(--serif); }
.order-row p, .order-row time { margin: 0; color: #81776a; font-size: 10px; }
.order-status { display: inline-block; color: #d4bc91; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.order-status.status-fulfilled, .order-status.status-paid { color: var(--green); }
.order-status.status-failed, .order-status.status-canceled, .order-status.status-expired, .order-status.status-chargeback { color: var(--red); }
.order-status.status-payment_pending, .order-status.status-funding_pending, .order-status.status-refund_pending, .order-status.status-manual_review { color: var(--gold); }
.creation-profile { display: grid; grid-template-columns: repeat(3,1fr); margin: 19px 0 7px; border: 1px solid #403328; }
.creation-profile div { min-width: 0; padding: 12px; border-right: 1px solid #403328; }
.creation-profile div:last-child { border-right: 0; }
.creation-profile dt { color: #776e63; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.creation-profile dd { margin: 5px 0 0; color: #d9c5a5; font: 16px var(--serif); overflow-wrap: anywhere; }
.dialog-card .creation-note { margin: 8px 0 17px; color: #7f7569; font: 10px/1.5 var(--sans); }

dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(440px,calc(100vw - 24px)); width: 100%; }
dialog::backdrop { background: rgba(5,4,3,.82); backdrop-filter: blur(5px); }
.dialog-card { background: linear-gradient(145deg,#211b14,#14110d); border: 1px solid #54412d; padding: 34px; box-shadow: 0 28px 90px #000; position: relative; max-height: min(760px,calc(100dvh - 24px)); overflow-y: auto; overscroll-behavior: contain; }
.dialog-card-compact { padding: 27px 32px 29px; }
.dialog-card::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(215,172,91,.08); pointer-events: none; }
.dialog-card h2 { font: 32px var(--serif); margin: 3px 0 8px; }
.dialog-card > p { color: #948b80; font: 14px/1.5 var(--serif); margin-bottom: 23px; }
.dialog-close { position: absolute; right: 7px; top: 5px; z-index: 1; width: 44px; height: 44px; border: 0; background: none; color: #8f877c; font-size: 23px; cursor: pointer; }
.dialog-card label { display: flex; flex-direction: column; gap: 7px; color: #b7ad9f; font-size: 10px; margin: 14px 0; }
.dialog-card input, .dialog-card select { width: 100%; padding: 12px; border: 1px solid #44382a; background: #0f0d0a; color: var(--ink); outline: none; border-radius: 1px; }
.dialog-card input:focus, .dialog-card select:focus { border-color: #a66b37; box-shadow: 0 0 0 2px rgba(166,107,55,.12); }
.dialog-card input[aria-invalid="true"] { border-color: #9a5b4c; }
.dialog-card input:invalid:not(:placeholder-shown) { border-color: #694138; }
.dialog-card label small { color: #706a62; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: grid !important; grid-template-columns: 18px 1fr; align-items: start; min-height: 44px; }
.check input { width: auto; }
.check a { color: #d1b77c; }
.check .field-error { grid-column: 2; }
.dialog-card label .field-error { color: #d9947d; line-height: 1.4; }
.form-message { min-height: 18px; color: var(--red); font-size: 10px; margin: 8px 0; }
.form-message.success { color: var(--green); }
.dialog-card .button, .switch-dialog { min-height: 44px; }
.switch-dialog { width: 100%; border: 0; background: transparent; color: #8f8171; cursor: pointer; font-size: 10px; margin-top: 7px; }
.register-email-state { padding-top: 6px; text-align: center; }
.register-email-state > p, .verification-card > p { margin: 12px 0 8px; color: #a79b8c; font: 14px/1.5 var(--serif); }
.email-destination { display: block; margin: 0 0 20px; color: #f0dfbf; font: 600 16px/1.45 var(--serif); overflow-wrap: anywhere; }
.verification-card { text-align: center; }
.verification-mark { width: 42px; height: 42px; display: grid; place-items: center; margin: 1px auto 15px; border: 1px solid #6e794f; border-radius: 50%; background: rgba(102,126,73,.13); color: #afc88f; font-size: 20px; }
.verification-card.is-warning .verification-mark { border-color: #8b6c36; background: rgba(139,108,54,.12); color: var(--gold); }
.verification-card.is-error .verification-mark { border-color: #7e4b41; background: rgba(126,75,65,.12); color: #d9947d; }
.verification-resend-form { margin-top: 18px; padding-top: 4px; border-top: 1px solid #3d3023; text-align: left; }
.verification-card.is-recovery #verification-primary-action { margin-top: 7px; border: 0; background: transparent; box-shadow: none; color: #8f8171; font-size: 10px; }

footer { border-top: 1px solid rgba(229,189,103,.28); background: linear-gradient(100deg,rgba(13,13,11,.98),rgba(24,25,29,.97)); color: #9d9283; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.footer-inner { min-height: 80px; padding-block: 16px; display: grid; grid-template-columns: 190px minmax(220px,1fr) auto; align-items: center; gap: 18px; }
.footer-inner > a { color: #948675; }
.footer-brand { min-width: 190px; text-transform: none; }
.footer-meta { min-width: 0; text-align: center; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: #948675; text-decoration: none; white-space: nowrap; }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 1100px) {
  .menu-toggle { display: block; order: 2; }
  .header-actions { order: 3; }
  .header-inner { gap: 15px; }
  .site-header .brand { flex: 1; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 14px 22px 20px; background: rgba(16,13,9,.98); border-bottom: 1px solid #463521; box-shadow: 0 20px 40px rgba(0,0,0,.45); flex-wrap: wrap; }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 9px 5px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-scene { min-height: 500px; }
  .world-grid { grid-template-columns: 1fr 1fr; }
  .world-card { grid-column: 1/-1; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-deaths { grid-column: auto; }
  .footer-inner { grid-template-columns: 190px minmax(0,1fr); }
  .footer-meta { text-align: right; }
  .footer-links { grid-column: 1/-1; justify-content: center; padding-top: 14px; border-top: 1px solid var(--line-soft); }
}

@media (max-width: 800px) {
  .account-identity { grid-template-columns: 1fr 1fr; }
  .account-detail { border-bottom: 1px solid #30271e; }
  .account-detail:nth-child(2) { border-right: 0; }
  .account-detail:last-child { grid-column: 1/-1; border-bottom: 0; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .header-inner { min-height: 72px; padding-block: 13px; flex-wrap: nowrap; }
  .site-header .brand { min-width: 0; flex: 1; }
  .brand small, .desktop-only { display: none !important; }
  .menu-toggle { order: 0; }
  .header-actions { order: 0; }
  .site-header nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .status-strip-inner { gap: 8px 14px; flex-wrap: wrap; white-space: normal; }
  .hero { display: block; min-height: 0; padding-block: 55px; }
  .hero h1 { font-size: 48px; }
  .hero-scene { min-height: 390px; margin-top: 44px; }
  .keep { transform: scale(.75); transform-origin: bottom right; }
  .portal-section { padding-block: 67px; }
  .section-heading h2, .join-banner h2 { font-size: 34px; }
  .world-grid, .rules-grid, .legal-copy { grid-template-columns: 1fr; }
  .rules-grid article { min-height: 0; padding: 26px 25px 26px 67px; }
  .control-group { grid-template-columns: 1fr; }
  .control-group > span { padding: 0; }
  .table-heading { align-items: start; gap: 20px; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; }
  .join-banner { display: block; margin-inline: auto; }
  .join-banner .button { margin-top: 22px; }
  .profile-view { padding-block: 35px 70px; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-portrait { min-height: 230px; border-right: 0; border-bottom: 1px solid #3a2f22; }
  .profile-portrait::before { inset: 14px; }
  .portrait-halo { width: 142px; height: 142px; }
  .profile-outfit-stage { width: 148px; height: 148px; }
  .profile-outfit { width: var(--outfit-mobile-width); height: var(--outfit-mobile-height); }
  .profile-status { bottom: 16px; }
  .profile-title { padding: 35px 28px 38px; }
  .profile-title h1 { font-size: 40px; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-grid div,.skill-grid div:nth-child(odd),.skill-grid div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #2d251c; }
  .skill-grid div:last-child { border-bottom: 0; }
  .dashboard { min-height: calc(100vh - 72px); }
  .dashboard-header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .account-controls { width: 100%; justify-content: space-between; }
  .account-navigation { min-height: 42px; }
  .account-navigation button { padding-inline: 12px; }
  .dashboard-main { padding-top: 29px; padding-bottom: 70px; }
  .dashboard-header h1 { font-size: 29px; }
  .account-identity { grid-template-columns: 1fr 1fr; }
  .account-detail { border-bottom: 1px solid #30271e; }
  .account-detail:nth-child(2) { border-right: 0; }
  .account-detail:last-child { grid-column: 1/-1; border-bottom: 0; }
  .section-row { align-items: flex-start; gap: 20px; flex-direction: column; }
  .section-row .button { width: 100%; text-align: center; }
  .security-grid { grid-template-columns: 1fr; }
  .order-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-inner { min-height: 0; padding-block: 24px; grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .footer-meta { text-align: center; }
  .footer-links { grid-column: auto; justify-content: center; }
  .footer-brand { display: flex; justify-content: center; }
  .profile-death-entry { gap: 15px; }
}

@media (max-width: 460px) {
  .site-header .header-actions .button.ember { padding: 9px 10px; font-size: 9px; }
  .brand b { font-size: 16px; }
  .brand-emblem { width: 40px; height: 40px; }
  .site-header nav.open { grid-template-columns: 1fr; }
  .menu-toggle { width: 38px; height: 38px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { text-align: center; }
  .hero-scene { min-height: 340px; }
  .mage { left: 17%; }
  .knight { left: 31%; }
  .profile-title { padding-inline: 20px; }
  .profile-title h1 { font-size: 36px; }
  .profile-identity { grid-template-columns: 1fr; }
  .profile-identity div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; }
  .profile-identity div + div { padding-left: 0; border-top: 1px solid #3e3122; border-left: 0; }
  .profile-identity dd { margin-top: 0; text-align: right; }
  .profile-last-seen { align-items: flex-start; flex-direction: column; gap: 4px; }
  .stat-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 19px; }
  .profile-death-entry { grid-template-columns: 1fr; gap: 5px; }
  .death-entry { grid-template-columns: 1fr auto; }
  .death-entry time { grid-column: 1/-1; }
  .account-controls { gap: 6px; }
  .account-navigation { flex: 1; justify-content: flex-start; }
  .account-navigation button { padding-inline: 9px; font-size: 8px; }
  .account-utility-action { padding-inline: 10px; }
  .account-identity { grid-template-columns: 1fr; }
  .account-detail, .account-detail:nth-child(2), .account-detail:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid #30271e; }
  .account-detail:last-child { border-bottom: 0; }
  .notice { align-items: stretch; flex-direction: column; }
  .character-card { grid-template-columns: minmax(0,1fr) auto; gap: 10px 14px; }
  .character-card .status { justify-self: end; }
  .character-profile-link { grid-column: 1/-1; }
  .character-actions { grid-column: 1/-1; }
  .creation-profile { grid-template-columns: 1fr; }
  .creation-profile div { border-right: 0; border-bottom: 1px solid #403328; }
  .creation-profile div:last-child { border-bottom: 0; }
  .split-fields { grid-template-columns: 1fr; }
  .dialog-card { padding: 25px 21px; }
  .dialog-card h2 { padding-right: 24px; font-size: 29px; }
  .register-email-state h2, .verification-card h2 { padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Portal expansion: navigation, hero and data-driven public pages. */
.site-header nav { align-items: center; gap: clamp(9px,1vw,17px); }
.nav-group { position: relative; }
.nav-group-toggle { border: 0; padding: 0; background: transparent; color: #c2b9aa; cursor: pointer; font: inherit; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.nav-group-toggle::after { content: "⌄"; margin-left: 5px; color: var(--gold-soft); }
.nav-group-toggle:hover, .nav-group-toggle:focus-visible, .nav-group-toggle[aria-expanded="true"], .nav-group-toggle.active { color: var(--gold); }
.nav-menu { position: absolute; left: -18px; top: calc(100% + 18px); z-index: 30; display: none; min-width: 190px; padding: 9px; border: 1px solid #4b3825; background: rgba(17,14,10,.99); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 19px; }
.nav-menu a { display: block; padding: 11px 10px !important; color: #bbb09f !important; }
.nav-menu a::after { bottom: 4px !important; left: 10px !important; }
.nav-group:hover .nav-menu, .nav-group.open .nav-menu { display: block; }
.nav-menu [data-discord-link] span { margin-left: 4px; color: var(--gold-soft); }

.hero.hero-expanded { display: grid; grid-template-columns: minmax(440px,.8fr) minmax(520px,1.2fr); gap: 0; min-height: clamp(460px,37.5vw,540px); padding-block: clamp(28px,4vw,52px) clamp(48px,6vw,72px); overflow: visible; align-items: stretch; }
.hero-harbour { grid-column: 2; grid-row: 1; width: 100%; min-height: clamp(460px,37.5vw,540px); border-color: #8b6844; background: var(--art-charcoal,#1e1d19); box-shadow: 0 30px 72px rgba(0,0,0,.4), inset 0 0 0 5px #1b1915; }
.hero-harbour .hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; filter: brightness(.99) saturate(1.01) contrast(1.02); }
.hero-harbour::after { background: linear-gradient(90deg,rgba(30,29,25,.24),rgba(30,29,25,.06) 13%,transparent 28%),linear-gradient(180deg,rgba(255,255,255,.015) 55%,rgba(13,12,10,.24)); }
.hero-copy-wide { position: relative; z-index: 11; grid-column: 1; grid-row: 1; width: 100%; margin: 0; padding: clamp(38px,3.6vw,52px); border: 1px solid #8b6844; border-right: 0; background: radial-gradient(circle at 104% 42%,rgba(154,96,61,.19),transparent 43%),radial-gradient(circle at 8% 0,rgba(57,63,87,.1),transparent 39%),linear-gradient(125deg,rgba(45,42,35,.99),rgba(30,29,25,.99)); box-shadow: 0 24px 60px rgba(0,0,0,.34); text-align: left; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-copy-wide::after { content: ""; position: absolute; top: 0; right: -42px; bottom: 0; width: 42px; background: linear-gradient(90deg,rgba(30,29,25,.7),transparent); pointer-events: none; }
.hero-copy-wide h1 { position: relative; z-index: 1; max-width: 620px; margin: 0; font-size: clamp(42px,4vw,60px); }
.hero-copy-wide > .eyebrow, .hero-copy-wide .hero-play-actions, .hero-copy-wide .hero-account-actions { position: relative; z-index: 1; }
.hero-copy-wide h1 em { display: block; margin-top: 17px; font-size: .72em; line-height: 1.08; letter-spacing: -.025em; }
.hero-copy-wide .hero-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 38px; }
.hero-play-actions { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 12px; margin-top: 34px; }
.play-action { position: relative; min-height: 78px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 15px 18px; border: 1px solid #6d5537; background: linear-gradient(145deg,#35342e,#252521); color: var(--ink); text-decoration: none; box-shadow: 0 14px 35px rgba(0,0,0,.18); transition: transform .2s,border-color .2s,background .2s; }
.play-action:hover, .play-action:focus-visible { transform: translateY(-2px); border-color: var(--gold); }
.play-action > span { font: 600 19px/1.15 var(--serif); }
.play-action small { color: #a89e8e; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.play-action small b { color: var(--gold); }
.play-action-primary { border-color: #d88a4d; background: linear-gradient(180deg,#efc174,#c8733e); color: #1c1008; box-shadow: inset 0 1px rgba(255,255,255,.28),0 16px 38px rgba(127,53,31,.3); }
.play-action-primary small { color: #1b0b05; }
.play-action-primary small b { color: #100602; }
.play-action-secondary { background: linear-gradient(145deg,#33342f,#242520); }
.hero-account-actions { display: flex; align-items: center; gap: 12px; margin-top: 17px; }

.download-page { background: radial-gradient(circle at 8% 8%,rgba(154,96,61,.17),transparent 28%),radial-gradient(circle at 92% 26%,rgba(70,71,42,.09),transparent 25%),#171713; }
.portal-page.download-page { padding-bottom: 0; }
.download-hero { position: relative; display: grid; grid-template-columns: minmax(300px,.78fr) minmax(0,1.22fr); align-items: center; gap: clamp(32px,5vw,74px); padding-block: clamp(34px,4.5vw,58px); }
.download-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg,transparent,#745534 14%,#745534 86%,transparent); }
.download-hero-copy { max-width: 510px; }
.download-hero h1 { margin: 0; font: 500 clamp(42px,5vw,64px)/1 var(--serif); letter-spacing: -.035em; }
.download-hero-copy > p { max-width: 470px; margin: 18px 0 0; color: var(--muted); font: 17px/1.55 var(--serif); }
.download-primary-shell, .download-grid { min-width: 0; }
.download-primary { position: relative; min-width: 0; padding: clamp(25px,3vw,34px); border: 1px solid #725336; background: radial-gradient(circle at 100% 0,rgba(181,101,49,.19),transparent 38%),linear-gradient(145deg,#29231c,#171511); box-shadow: 0 22px 62px rgba(0,0,0,.32); }
.download-primary::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: linear-gradient(90deg,#8d512e,var(--gold),#8d512e); }
.download-primary h2 { margin: 8px 0 0; font: 500 clamp(27px,3vw,36px)/1.12 var(--serif); }
.download-primary-copy { margin: 10px 0 0; color: #b9aa94; font: 14px/1.55 var(--serif); }
.download-meta { display: grid; grid-template-columns: minmax(90px,1fr) minmax(145px,1.45fr) minmax(70px,.7fr) minmax(100px,1fr); margin: 24px 0 22px; border-block: 1px solid #493a2b; }
.download-meta > div { min-width: 0; padding: 13px 14px; border-right: 1px solid #493a2b; }
.download-meta > div:first-child { padding-left: 0; }
.download-meta > div:last-child { padding-right: 0; border-right: 0; }
.download-meta dt, .download-technical-meta dt { color: #887b69; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.download-meta dd { margin: 6px 0 0; color: #eee1ca; font: 14px/1.3 var(--serif); overflow-wrap: anywhere; }
.download-meta > div:first-child dd { font-size: 13px; white-space: nowrap; }
.download-primary-actions { display: flex; align-items: center; gap: 20px; }
.download-primary-actions .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 250px; text-align: center; }
.download-primary.is-loading { opacity: .78; }
.download-primary.is-loading .button, .download-primary-unavailable .button { width: 100%; margin-top: 23px; }
.download-primary-unavailable { border-color: #5e4630; }
.download-primary-unavailable::before { background: #76563a; }
.download-support { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; padding-block: clamp(38px,5vw,66px) clamp(58px,7vw,92px); }
.download-section-heading { margin-bottom: 16px; }
.download-section-heading .eyebrow { margin-bottom: 8px; }
.download-section-heading h2 { margin: 0; font: 500 clamp(28px,3vw,36px)/1.15 var(--serif); }
.install-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 30px; list-style: none; padding: 0; margin: 0; counter-reset: download-step; }
.install-steps li { min-width: 0; display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 17px 0; border-top: 1px solid #3d3227; }
.install-steps li > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #765431; background: #1d1812; color: var(--gold); font: 13px var(--serif); }
.install-steps b, .download-inline-action { color: #e4d7c2; font: 600 15px/1.3 var(--serif); }
.install-steps p { margin: 5px 0 0; color: #978b7b; font: 12px/1.55 var(--serif); }
.download-inline-action { display: inline; padding: 0; border: 0; background: transparent; text-align: left; text-decoration: underline; text-decoration-color: #755a38; text-underline-offset: 4px; cursor: pointer; }
.download-inline-action:hover { color: var(--gold); text-decoration-color: currentColor; }
.download-help { margin: 18px 0 0; }
.download-help a { color: #b99b69; font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.download-help a:hover { color: var(--gold); }
.download-verification { min-width: 0; margin-top: 27px; border-block: 1px solid #493a2b; background: rgba(20,17,13,.32); }
.download-verification summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 2px; color: #d9c8aa; cursor: pointer; list-style: none; }
.download-verification summary::-webkit-details-marker { display: none; }
.download-verification summary::after { content: "\203A"; flex: 0 0 auto; color: #b99b69; font: 22px/1 var(--serif); transform: rotate(90deg); transition: transform 120ms ease,color 120ms ease; }
.download-verification[open] summary::after { transform: rotate(-90deg); }
.download-verification summary:hover, .download-verification summary:focus-visible { color: var(--gold); }
.download-verification summary:hover::after, .download-verification summary:focus-visible::after { color: var(--gold); }
.download-verification summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.download-verification summary h2 { margin: 0; color: inherit; font: 600 16px/1.3 var(--serif); }
.download-verification-panel { max-width: 860px; min-width: 0; padding: 20px 2px 7px; }
.download-verification-panel > p { max-width: 680px; margin: 0 0 20px; color: #9f9382; font: 13px/1.6 var(--serif); }
.download-verification-content { min-width: 0; }
.download-verification-content > p { margin: 0; color: #8f8373; font-size: 11px; line-height: 1.55; }
.download-checksum span, .download-release-note > span { display: block; margin-bottom: 7px; color: #897b68; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.download-checksum code { display: block; max-width: 100%; padding: 11px 12px; border: 1px solid #342a20; background: #0d0b09; color: #c0ad8e; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; user-select: all; }
.download-technical-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 18px 0 0; }
.download-technical-meta > div { min-width: 0; }
.download-technical-meta dd { margin: 5px 0 0; color: #c9b99f; font: 12px/1.35 var(--serif); overflow-wrap: anywhere; }
.download-security-note { margin: 19px 0 0; padding: 0 0 0 13px; border-left: 2px solid #9b6e38; color: #a99a86; font-size: 11px; line-height: 1.6; }
.download-security-note b { display: block; margin-bottom: 3px; color: #d7bc88; font: 600 13px/1.35 var(--serif); }
.download-release-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid #352b21; }
.download-release-note p { margin: 0; color: #928676; font-size: 10px; line-height: 1.55; }
.download-verification-unavailable { padding-top: 17px; border-top: 1px solid #352b21; }

@media (max-width: 820px) {
  .download-hero { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 36px; }
  .download-hero-copy { max-width: 650px; }
  .download-primary { max-width: none; }
}

@media (max-width: 600px) {
  .download-hero { gap: 20px; }
  .download-hero h1 { font-size: 40px; }
  .download-hero-copy > p { margin-top: 13px; font-size: 15px; }
  .download-primary { padding: 23px 20px; }
  .download-primary h2 { font-size: 28px; }
  .download-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .download-meta > div { padding: 12px; border-bottom: 1px solid #493a2b; }
  .download-meta > div:nth-child(2) { padding-right: 0; border-right: 0; }
  .download-meta > div:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .download-meta > div:nth-child(4) { padding-right: 0; border-right: 0; border-bottom: 0; }
  .download-primary-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .download-primary-actions .button { width: 100%; flex-basis: auto; }
  .install-steps { grid-template-columns: 1fr; }
  .download-verification-panel { padding-top: 18px; }
  .download-technical-meta { grid-template-columns: 1fr; gap: 11px; }
}

.play-handoff { max-width: 820px; margin: 0 auto var(--section-spacing); padding: clamp(28px,5vw,54px); border: 1px solid #57462e; background: radial-gradient(circle at 100% 0,rgba(223,181,95,.12),transparent 35%),linear-gradient(145deg,#2c2c27,#20211d); box-shadow: var(--shadow); }
.play-handoff h2 { margin: 16px 0 12px; font: 36px/1.15 var(--serif); }
.play-handoff p { max-width: 650px; color: var(--muted); font: 15px/1.65 var(--serif); }
.experimental-badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 9px; border: 1px solid #816637; background: rgba(223,181,95,.09); color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.shop-header { padding-block: clamp(30px,4vw,46px) 22px; border-bottom: 1px solid var(--line-soft); }
.shop-header h1 { margin: 0; font: 500 clamp(38px,4vw,52px)/1 var(--serif); letter-spacing: -.025em; }
.shop-header p { margin: 10px 0 0; color: var(--muted); font: 14px/1.5 var(--serif); }
.shop-content { padding-top: clamp(25px,3vw,38px); }
.shop-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shop-block h2, .store-showcases h2, .premium-benefits > h2 { margin: 0; font: 500 clamp(24px,2.3vw,30px)/1.2 var(--serif); }
.shop-account-status { margin: 0; color: #c7b68f; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.shop-grid, .store-showcase-grid, .premium-benefits-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.shop-card { min-width: 0; min-height: 250px; display: flex; align-items: center; flex-direction: column; padding: 24px; border: 1px solid #41372b; background: #22221e; text-align: center; }
.coin-visual { width: 76px; height: 76px; margin-bottom: 14px; color: var(--gold); filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.coin-visual svg { display: block; width: 100%; height: 100%; }
.coin-visual circle:first-child { fill: #312512; stroke: #b58a3f; stroke-width: 2; }
.coin-visual circle:nth-child(2) { fill: none; stroke: #e1b85e; stroke-width: 2; stroke-dasharray: 3 3; }
.coin-visual path { fill: #e2bc68; }
.coin-package-copy { display: grid; gap: 2px; }
.coin-package-copy strong { color: #f1e5cf; font: 500 34px/1 var(--serif); }
.coin-package-copy span { color: #9e927f; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.shop-price { margin: auto 0 15px; padding-top: 17px; color: var(--gold); font: 500 25px/1 var(--serif); }
.shop-card .button { min-height: 44px; }
.shop-card .button:disabled { border-color: #494137; background: #302e29; color: #aaa092; box-shadow: none; opacity: .72; }
.shop-purchase-state { display: none; margin: 0 0 14px; padding: 11px 13px; border: 1px solid #4b4135; color: var(--muted); font-size: 12px; }
.shop-purchase-state.is-visible { display: block; }
.shop-purchase-state.warning { border-color: #83553c; color: #d8b39d; }
.shop-purchase-state.success { border-color: #60724b; color: #c0d2a6; }
.shop-data-unavailable { grid-column: 1/-1; margin: 0; padding: 22px; border: 1px solid #41372b; color: var(--muted); text-align: center; }
.shop-trust-panel { display: grid; grid-template-columns: minmax(145px,.27fr) minmax(0,1fr); gap: clamp(18px,3vw,34px); align-items: center; margin-top: 16px; padding: 18px 21px; border: 1px solid #5a482d; background: linear-gradient(115deg,rgba(223,181,95,.075),rgba(32,32,28,.96) 38%); }
.shop-trust-panel h2 { margin: 0; color: #d8b972; font-size: 9px; font-weight: 800; line-height: 1.45; letter-spacing: .17em; text-transform: uppercase; }
.shop-trust-copy { min-width: 0; }
.shop-trust-copy p { margin: 0; overflow-wrap: anywhere; }
.shop-trust-copy p:first-child { color: #eee2cc; font: 500 15px/1.45 var(--serif); }
.shop-trust-copy p + p { margin-top: 5px; color: #a99d8c; font: 11px/1.55 var(--serif); }
.store-showcases, .premium-benefits { margin-top: clamp(38px,5vw,56px); padding-top: clamp(30px,4vw,42px); border-top: 1px solid var(--line-soft); }
.store-showcases h2, .premium-benefits > h2 { margin-bottom: 16px; }
.store-showcase-card { min-width: 0; padding-bottom: 18px; border: 1px solid #41372b; background: #20201c; }
.store-showcase-frame { display: grid; place-items: center; aspect-ratio: 36/25; overflow: hidden; padding: 4px; border-bottom: 1px solid #41372b; background: #11110f; box-shadow: inset 0 0 0 1px rgba(223,181,95,.08); }
.store-showcase-frame img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.store-showcase-card h3 { margin: 16px 18px 5px; font: 500 20px/1.2 var(--serif); }
.store-showcase-card p { margin: 0 18px; color: var(--muted); font: 12px/1.55 var(--serif); }
.premium-benefit-card { min-width: 0; min-height: 132px; padding: 21px; border: 1px solid #41372b; background: #20201c; }
.premium-benefit-card h3 { margin: 0 0 8px; font: 500 20px/1.2 var(--serif); }
.premium-benefit-card p { margin: 0; color: var(--muted); font: 12px/1.55 var(--serif); }
.premium-secondary-benefits { margin-top: 14px; padding: 17px 19px 19px; border: 1px solid #39332a; background: #1c1c19; }
.premium-secondary-benefits > h3 { margin: 0 0 13px; color: #b7a782; font-size: 9px; font-weight: 800; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.premium-secondary-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.premium-secondary-list li { min-width: 0; padding: 3px 17px 3px 0; }
.premium-secondary-list li + li { padding-left: 17px; border-left: 1px solid #39332a; }
.premium-secondary-list strong, .premium-secondary-list span { display: block; overflow-wrap: anywhere; }
.premium-secondary-list strong { color: #ded1ba; font: 500 14px/1.3 var(--serif); }
.premium-secondary-list span { margin-top: 5px; color: #948a7c; font: 11px/1.5 var(--serif); }
.premium-legal-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 20px; margin: 28px auto 0; color: #a99d8c; font-size: 10px; }
.premium-legal-links a { color: #d2b273; text-decoration: none; }
.premium-legal-links a:hover, .premium-legal-links a:focus-visible { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

.world-pulse-section { padding-block: clamp(34px,4vw,52px); border-block: 1px solid var(--line-soft); background: radial-gradient(circle at 8% 18%,rgba(70,71,42,.15),transparent 30%),radial-gradient(circle at 94% 84%,rgba(57,63,87,.13),transparent 27%),linear-gradient(180deg,#22221e,#27261f); }
.world-pulse-heading { display: flex; align-items: end; gap: 24px; margin-bottom: 22px; }
.world-pulse-heading > div { min-width: 0; }
.world-pulse-heading h2 { margin: 4px 0 0; font: 38px/1.08 var(--serif); letter-spacing: -.02em; }
.world-pulse-heading p { margin: 0 0 3px auto; color: var(--muted); font: 14px/1.5 var(--serif); }
.world-pulse-mode { flex: 0 0 auto; margin-bottom: 2px; padding: 6px 9px; border: 1px solid #7c653c; background: rgba(229,189,103,.08); color: #dcc086; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.world-pulse-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: stretch; }
.world-pulse-panel { --pulse-accent: var(--gold-soft); position: relative; min-width: 0; min-height: 654px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #544431; background: linear-gradient(145deg,rgba(50,47,40,.98),rgba(34,33,29,.99)); box-shadow: 0 18px 42px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.025); }
.world-pulse-panel::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,var(--pulse-accent),transparent 76%); opacity: .92; }
.world-pulse-panel::after { content: ""; position: absolute; top: -105px; right: -94px; width: 230px; height: 230px; border-radius: 50%; background: var(--pulse-accent); opacity: .065; filter: blur(3px); pointer-events: none; }
.world-pulse-panel--newest { --pulse-accent: #9b9b62; }
.world-pulse-panel--deaths { --pulse-accent: #bd7048; }
.world-pulse-panel--experience { --pulse-accent: #9b8660; background: radial-gradient(circle at 100% 0,rgba(57,63,87,.18),transparent 40%),linear-gradient(145deg,rgba(50,47,40,.98),rgba(34,33,29,.99)); }
.world-pulse-panel > * { position: relative; z-index: 1; }
.world-pulse-panel-head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 23px 18px; border-bottom: 1px solid rgba(126,102,67,.34); }
.world-pulse-panel-head h3 { max-width: 260px; margin: 0; color: #dcc188; font: 600 14px/1.3 var(--serif); letter-spacing: .095em; text-transform: uppercase; }
.world-pulse-panel-head i { flex: 0 0 auto; color: var(--pulse-accent); font: 12px var(--serif); }
.world-pulse-column-head { min-height: 32px; display: grid; align-items: center; gap: 12px; padding: 9px 23px 8px; border-bottom: 1px solid rgba(126,102,67,.25); color: #817665; font-size: 8px; font-weight: 800; line-height: 1.35; letter-spacing: .15em; text-transform: uppercase; }
.world-pulse-column-head--newest { grid-template-columns: minmax(0,1fr); }
.world-pulse-column-head--split { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); }
.world-pulse-column-head--xp { grid-template-columns: minmax(0,1fr) auto; }
.world-pulse-column-head--xp span:last-child { text-align: right; }
#world-pulse-experience-note { margin: 0; padding: 8px 23px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.world-pulse-list { flex: 1; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0 23px 12px; list-style: none; }
.world-pulse-row { min-width: 0; min-height: 35px; display: grid; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(126,102,67,.19); }
.world-pulse-row:last-child { border-bottom-color: transparent; }
.world-pulse-row--newest { grid-template-columns: minmax(0,1fr); }
.world-pulse-row--split { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); }
.world-pulse-row--xp { grid-template-columns: minmax(0,1fr) auto; }
.world-pulse-player { min-width: 0; color: #e3d8c4; font: 500 14px/1.35 var(--serif); overflow-wrap: anywhere; text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s,text-decoration-color .18s; }
.world-pulse-player:hover, .world-pulse-player:focus-visible { color: var(--gold); text-decoration-color: currentColor; }
.world-pulse-killer { min-width: 0; color: #a89c89; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.world-pulse-xp { color: #e1c06f; font-size: 11px; line-height: 1.3; letter-spacing: .015em; text-align: right; white-space: nowrap; }
.world-pulse-list-state { margin-block: auto; padding: 30px 0; color: #968b7a; text-align: center; }
.world-pulse-list-state strong, .world-pulse-list-state span { display: block; overflow-wrap: anywhere; }
.world-pulse-list-state strong { color: #c4b59d; font: 18px/1.35 var(--serif); }
.world-pulse-list-state span { max-width: 250px; margin: 9px auto 0; font-size: 10px; line-height: 1.55; }
.world-pulse-panel[data-state="unavailable"] { border-color: #4a3d30; }
.world-pulse-panel[data-state="unavailable"] .world-pulse-column-head { opacity: .72; }

.portal-page-view { min-height: calc(100vh - 180px); }
.portal-page { padding-bottom: var(--section-spacing); }
.legal-page { background: #12100d; }
.legal-page-content .legal-copy { max-width: none; }
.page-masthead { padding-block: clamp(68px,8vw,120px) clamp(48px,6vw,78px); border-bottom: 1px solid var(--line-soft); }
.page-masthead h1 { max-width: 900px; margin: 0; font: 500 clamp(44px,6vw,78px)/1.02 var(--serif); letter-spacing: -.035em; }
.page-masthead > p { max-width: 760px; margin: 24px 0 0; color: var(--muted); font: 18px/1.7 var(--serif); }
.page-masthead > .button { margin-top: 28px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-content { padding-top: clamp(38px,5vw,68px); }
.data-panel { padding: 26px; border: 1px solid #3e3123; background: linear-gradient(145deg,#1b1711,#12100c); }
.page-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 14px; }
.new-player-discovery { padding-block: 8px 0; }
.new-player-discovery > h2 { margin: 0 0 12px; font-size: 11px; }
.onboarding-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.onboarding-cards.single-card { grid-template-columns: 1fr; }
.onboarding-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px; border: 1px solid #4b3d2b; background: linear-gradient(120deg,#282218,#1c1812); }
.onboarding-tag { color: #b19b73; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.onboarding-card h3 { margin: 8px 0; color: var(--gold); font: 600 clamp(20px,2vw,24px)/1.2 var(--serif); }
.onboarding-card p { margin: 0 0 14px; color: var(--ink); font-size: 13px; line-height: 1.65; }
.onboarding-link { margin-top: auto; padding-block: 3px; color: var(--gold); font-size: 12px; font-weight: 600; }
.onboarding-link:hover { color: var(--ink); text-decoration: underline; }
.founder-milestones { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-block: 18px 12px; }
.founder-milestone { min-width: 0; padding: 16px; border: 1px solid #493724; background: #211b13; }
.founder-milestone h3 { margin: 0 0 8px; color: var(--muted); font: 600 12px var(--sans); }
.founder-milestone strong { color: var(--gold); font: 600 26px var(--serif); }
.founder-milestone strong span { font-size: 14px; }
.founder-milestone p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.founder-availability { color: var(--muted); }
.task-guide { margin-top: 16px; scroll-margin-top: 16px; }
.task-guide p, .task-guide li { font-size: 14px; line-height: 1.65; }
.task-guide-steps { display: grid; gap: 10px; padding-left: 24px; }
.task-guide-steps li { padding-left: 6px; }
.task-guide-steps li::marker { color: var(--gold); font-weight: 700; }
.task-guide code { color: var(--gold); padding: 2px 5px; border: 1px solid var(--line-soft); border-radius: 3px; white-space: nowrap; }
.task-stone-tip { padding: 12px 16px; border-left: 2px solid var(--gold-soft); background: #242017; }
.task-guide-notes { color: var(--muted); padding-left: 24px; margin-bottom: 0; }
@media (max-width: 700px) {
  .onboarding-cards { grid-template-columns: 1fr; gap: 10px; }
  .onboarding-card { padding: 17px 18px; }
  .founder-milestones { grid-template-columns: 1fr; }
}

.server-info-page { padding-bottom: clamp(44px,6vw,76px); }
.server-info-header { padding-block: clamp(26px,3vw,38px) 17px; border-bottom: 1px solid #4b3927; }
.server-info-header h1 { margin: 0; font: 500 clamp(32px,3.4vw,44px)/1 var(--serif); letter-spacing: -.025em; }
.server-info-content { padding-top: 18px; }
.server-summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; border: 1px solid #493824; background: #17130e; }
.server-summary-strip > div { min-width: 0; padding: 15px 19px 16px; border-right: 1px solid #352a1e; }
.server-summary-strip > div:last-child { border-right: 0; }
.server-summary-strip dt { color: #8c806f; font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.server-summary-strip dd { margin: 7px 0 0; color: #eadfca; font: 21px/1.2 var(--serif); overflow-wrap: anywhere; }
.server-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.server-info-section { min-width: 0; padding: 19px 21px 20px; border: 1px solid #3e3123; background: #17130e; }
.server-info-section-wide { grid-column: 1/-1; }
.server-info-section h2 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid #493724; color: #ddc48e; font: 600 15px/1.2 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.server-info-list { margin: 0; }
.server-info-list > div { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 18px; padding: 10px 0; border-bottom: 1px solid #30271d; }
.server-info-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.server-info-list dt { color: #9f9381; font-size: 11px; line-height: 1.45; }
.server-info-list dd { min-width: 0; margin: 0; color: #e0d3bd; font: 13px/1.4 var(--serif); text-align: right; overflow-wrap: anywhere; }
.server-system-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; }
.server-vocation-list { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.server-vocation-list li { padding: 10px 0; border-bottom: 1px solid #30271d; color: #ded1ba; font: 14px/1.35 var(--serif); }
.server-vocation-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.server-vocation-list .monk { color: #efb272; }
.server-info-load-error { margin: 0 0 12px; padding: 11px 13px; border: 1px solid #71473f; background: rgba(113,71,63,.12); color: #d6978c; font-size: 11px; line-height: 1.5; }

.community-page { background: var(--night-2); }
.community-page-shell { padding-block: clamp(24px,3vw,38px) var(--section-spacing); }
.community-page-header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #433322; }
.community-page-header h1 { margin: 0; font: 500 clamp(28px,3vw,38px)/1 var(--serif); letter-spacing: -.025em; }
.community-controls { padding: 16px; border: 1px solid #3b2f22; background: #17130e; }
.ranking-controls { padding: 16px; }
.character-search-form { display: grid; grid-template-columns: minmax(240px,1fr) auto; align-items: end; gap: 10px; }
.character-search-form label { display: grid; gap: 7px; color: #827767; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.character-search-form input { width: 100%; min-width: 0; min-height: 41px; padding: 10px 12px; border: 1px solid #4a3a2a; background: #0e0c09; color: var(--ink); font: 13px var(--sans); }
.character-search-form .button { min-height: 41px; }
.community-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; min-height: 24px; margin: 18px 0 10px; }
.community-results-heading-first { margin-top: 0; }
.community-results-heading h2 { margin: 0; color: #948673; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.community-results-heading .directory-state { margin: 0; text-align: right; }
.community-count { color: #d5c4a8; font-size: 13px; }
.community-table { min-width: 520px; table-layout: fixed; }
.community-table th:first-child, .community-table td:first-child { width: 58%; }
.community-table th:nth-child(2), .community-table td:nth-child(2) { width: 18%; }
.community-table td { vertical-align: middle; }
.community-player-link { overflow-wrap: anywhere; }

.directory-filters { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(3,minmax(130px,.8fr)) auto auto; align-items: end; gap: 10px; padding: 16px; border: 1px solid #3b2f22; background: #17130e; }
.directory-filters.compact { grid-template-columns: minmax(240px,1fr) minmax(160px,.4fr) auto auto; }
.directory-filters label { display: grid; gap: 7px; color: #827767; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.directory-filters input, .directory-filters select { min-width: 0; width: 100%; min-height: 41px; padding: 10px 11px; border: 1px solid #4a3a2a; background: #0e0c09; color: var(--ink); }
.directory-state { min-height: 20px; margin: 18px 0 12px; color: #9c917f; font: 13px/1.5 var(--serif); }
.directory-state.error { color: #dc8c7e; }
.directory-table-wrap { overflow-x: auto; border: 1px solid #3e3123; background: #15110c; }
.directory-table { width: 100%; min-width: 840px; border-collapse: collapse; }
.directory-table th { padding: 12px 14px; border-bottom: 1px solid #493825; background: #1d1710; color: #8f816e; font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .13em; }
.directory-table td { padding: 14px; border-bottom: 1px solid #2d251c; color: #ad9f8b; font-size: 12px; vertical-align: middle; }
.directory-table tr:last-child td { border-bottom: 0; }
.directory-table tbody tr:hover td { background: rgba(229,189,103,.025); }
.directory-table td:first-child { color: #e3d6be; font: 16px var(--serif); }
.directory-table td strong, .directory-table td b { color: #e2d2b6; }
.directory-table td small { display: block; margin-top: 4px; color: #756c61; }
.directory-pagination { margin-top: 14px; padding: 0; }
.houses-table { min-width: 860px; }
.house-status { display: inline-block; color: #b9ad9a; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.house-status-available { color: #88b482; }
.house-status-owned { color: #d5b16e; }

.library-shell { padding-block: clamp(24px,3vw,38px) var(--section-spacing); }
.library-header { display: flex; align-items: flex-end; gap: clamp(24px,4vw,58px); margin-bottom: 20px; border-bottom: 1px solid #433322; }
.library-header h1 { flex: 0 0 auto; margin: 0 0 12px; font: 500 clamp(28px,3vw,38px)/1 var(--serif); letter-spacing: -.025em; }
.library-tabs { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #594126 transparent; }
.library-tabs a { flex: 0 0 auto; min-width: 108px; padding: 15px 18px 14px; border-bottom: 2px solid transparent; color: #918574; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.library-tabs a:hover, .library-tabs a:focus-visible { color: #d9c39d; background: rgba(255,255,255,.02); }
.library-tabs a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); background: linear-gradient(180deg,transparent,rgba(229,189,103,.07)); }
.library-filters { grid-template-columns: minmax(230px,1.6fr) repeat(3,minmax(135px,.7fr)) auto; padding: 16px; }
.library-filter-actions { display: flex; align-items: stretch; gap: 9px; }
.library-filter-actions .button { min-height: 41px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 20px; }
.library-heading h2 { margin: 0; font: 500 25px/1.2 var(--serif); }
.library-heading .directory-state { text-align: right; }
.library-heading .directory-state { min-height: 0; margin: 0; }
.library-table { min-width: 860px; }
.library-table[data-library-view="spells"] { min-width: 900px; }
.library-table[data-library-view="items"] { min-width: 900px; }
.library-table td:first-child { min-width: 150px; }
.library-table th { padding: 12px 14px; }
.library-table th.library-sortable-column { padding: 0; }
.library-table td { padding: 13px 14px; }
.library-table td:first-child { font-size: 15px; }
.library-sort-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 12px 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.library-sort-button:hover { color: #d9c39d; background: rgba(229,189,103,.045); }
.library-sort-button:focus-visible, .library-row-toggle:focus-visible { outline: 1px solid var(--gold); outline-offset: -3px; color: #f0d699; }
.library-sort-indicator { flex: 0 0 9px; color: var(--gold); font-size: 8px; text-align: right; }
.library-record-row { cursor: pointer; }
.library-record-row:hover td { background: rgba(229,189,103,.025); color: #c7b9a2; }
.library-record-row.is-expanded td { border-bottom-color: transparent; background: rgba(229,189,103,.025); }
.library-row-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin: -8px -10px; padding: 8px 10px; border: 0; background: transparent; color: #e3d6be; font: inherit; text-align: left; cursor: pointer; }
.library-item-id { display: block; margin-top: 2px; color: #766c5f; font: 8px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.library-row-chevron { flex: 0 0 auto; color: #a97c43; font: 12px/1 var(--sans); }
.library-detail-row td, .library-detail-row td:first-child { padding: 0; border-bottom: 1px solid #493825; background: #100e0b; color: #ad9f8b; font: 12px/1.5 var(--sans); }
.library-detail-panel { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 18px 28px; padding: 20px 22px 22px; border-left: 2px solid #76532f; background: linear-gradient(90deg,rgba(148,99,48,.08),transparent 38%); }
.library-detail-section { min-width: 0; }
.library-detail-section h3 { margin: 0 0 9px; color: #c69c60; font-size: 8px; line-height: 1.4; text-transform: uppercase; letter-spacing: .14em; }
.library-detail-description, .library-detail-empty { margin: 0; color: #b9ab96; font: 13px/1.55 var(--serif); }
.library-detail-facts { display: grid; gap: 7px; margin: 0; }
.library-detail-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.library-detail-facts dt { color: #766c5f; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.library-detail-facts dd { margin: 0; color: #d0c1aa; text-align: right; }
.library-detail-list { display: flex; flex-wrap: wrap; gap: 6px 7px; }
.library-detail-list span { max-width: 100%; padding: 4px 7px; border: 1px solid #352b20; background: #17130f; color: #bbaa91; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.library-detail-more { margin-top: 9px; }
.library-detail-more summary { width: max-content; max-width: 100%; color: #aa8552; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; cursor: pointer; }
.library-detail-more[open] summary { margin-bottom: 9px; }

.quest-library-intro { max-width: 760px; margin: 4px 0 22px; }
.quest-library-intro .eyebrow { margin: 0 0 7px; color: #a97c43; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.quest-library-intro > p:last-child { margin: 0; color: #b9ab96; font: 16px/1.65 var(--serif); }
.quest-filters { display: grid; grid-template-columns: minmax(260px,1.6fr) minmax(190px,.8fr) auto; align-items: end; gap: 14px; padding: 18px; border: 1px solid #3b2f22; background: #17130e; }
.quest-filters label { display: grid; gap: 7px; color: #857969; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.quest-filters input, .quest-filters select { width: 100%; min-height: 42px; border: 1px solid #493824; background: #0f0d0a; color: #d9cdb8; }
.quest-filter-actions { display: flex; gap: 9px; }
.quest-filter-actions .button { min-height: 42px; }
.quest-type-filter { grid-column: 1/-1; min-width: 0; margin: 2px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid #33291e; }
.quest-type-filter legend { padding: 0 10px 0 0; color: #857969; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.quest-type-options { display: flex; flex-wrap: wrap; gap: 7px; }
.quest-type-options button { min-height: 31px; padding: 6px 10px; border: 1px solid #493824; background: #100e0b; color: #9e927f; font: 9px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.quest-type-options button:hover, .quest-type-options button:focus-visible { border-color: #876139; color: #e0c895; }
.quest-type-options button[aria-pressed="true"] { border-color: #b68549; background: rgba(190,135,69,.16); color: #f0d699; }
.quest-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin: 28px 0 14px; }
.quest-results-heading h2 { margin: 0; font: 500 25px/1.2 var(--serif); }
.quest-results-heading .directory-state { min-height: 0; margin: 0; text-align: right; }
.quest-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(275px,1fr)); gap: 14px; }
.quest-card { position: relative; display: flex; min-width: 0; min-height: 210px; flex-direction: column; padding: 19px; border: 1px solid #3b3023; background: linear-gradient(145deg,#18140f,#12100c); }
.quest-card::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: #76532f; content: ""; opacity: .65; }
.quest-card:hover { border-color: #59432b; background: linear-gradient(145deg,#1b1610,#14110d); }
.quest-card-meta { display: grid; gap: 10px; }
.quest-region, .quest-detail-region { color: #9f7545; font-size: 9px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.quest-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.quest-type-badge { padding: 4px 7px; border: 1px solid #3d3328; background: #100e0b; color: #a99c89; font-size: 8px; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; }
.quest-type-badge--custom { border-color: #84602f; background: rgba(183,126,55,.12); color: #e5bd67; }
.quest-card h3 { margin: 17px 0 11px; font: 500 21px/1.18 var(--serif); }
.quest-card h3 a { color: #e0d3bd; text-decoration: none; }
.quest-card h3 a::after { position: absolute; inset: 0; content: ""; }
.quest-card h3 a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.quest-reward { margin: 0 0 18px; color: #9f9381; font-size: 11px; line-height: 1.55; }
.quest-reward span { display: block; margin-bottom: 3px; color: #6f665a; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.quest-card-arrow { position: relative; z-index: 1; align-self: flex-start; margin-top: auto; color: #bd9155; font-size: 9px; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.quest-empty-state { grid-column: 1/-1; padding: clamp(36px,7vw,70px) 24px; border: 1px solid #3b3023; background: #15110d; text-align: center; }
.quest-empty-state h2 { margin: 0 0 8px; font: 500 25px/1.2 var(--serif); }
.quest-empty-state p { margin: 0; color: #958978; }
.quest-empty-state.error { border-color: #65402d; }
.quest-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 22px; color: #756b5e; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.quest-breadcrumbs a { color: #b28a56; text-decoration: none; }
.quest-breadcrumbs a:hover, .quest-breadcrumbs a:focus-visible { color: #e1bf7d; }
.quest-detail-article { max-width: 980px; }
.quest-detail-header { padding: clamp(22px,4vw,36px); border: 1px solid #4a3824; background: linear-gradient(135deg,rgba(130,83,40,.15),rgba(18,15,11,.96) 56%); }
.quest-detail-header h2 { max-width: 780px; margin: 8px 0 17px; font: 500 clamp(34px,5vw,54px)/1.04 var(--serif); letter-spacing: -.025em; }
.quest-detail-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.quest-guide-section { min-width: 0; padding: 22px; border: 1px solid #382e23; background: #15120e; }
.quest-guide-section:first-child, .quest-guide-section:last-child { grid-column: 1/-1; }
.quest-guide-section h3 { margin: 0 0 14px; color: #c39659; font: 500 18px/1.2 var(--serif); }
.quest-guide-section p { margin: 0; color: #b3a691; font: 14px/1.7 var(--serif); }
.quest-guide-section p + p, .quest-guide-section p + ul, .quest-guide-section ul + p, .quest-guide-section .quest-guide-note { margin-top: 12px; }
.quest-guide-section ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #b3a691; font-size: 12px; line-height: 1.55; }
.quest-guide-section li::marker { color: #9b6d38; }
.quest-guide-note { padding: 13px 15px; border-left: 2px solid #8d6638; background: rgba(142,96,43,.08); color: #aa9d89; font-size: 11px; line-height: 1.6; }
.quest-detail-actions { margin-top: 20px; }

@media (max-width: 1220px) {
  .site-header nav { gap: 10px; }
  .site-header nav > a, .nav-group-toggle { font-size: 8px; }
  .header-actions .desktop-only { display: none !important; }
  .directory-filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .directory-filters .button { text-align: center; }
}

@media (max-width: 1179.98px) {
  .hero.hero-expanded { display: flex; flex-direction: column; min-height: 0; padding-top: 32px; }
  .hero-harbour { min-height: 0; aspect-ratio: 11 / 6; }
  .hero-harbour .hero-picture img { object-position: 50% center; }
  .hero-copy-wide { width: calc(100% - 48px); margin: -40px auto 0; border-right: 1px solid #8b6844; }
  .hero-copy-wide::after { top: -38px; right: 0; bottom: auto; left: 0; width: auto; height: 38px; background: linear-gradient(0deg,rgba(30,29,25,.72),transparent); }
}

@media (min-width: 1180px) and (max-width: 1320px) {
  .hero-harbour .hero-picture img { object-position: 44% center; }
}

@media (max-width: 1100px) {
  .site-header nav { align-items: stretch; justify-content: normal; }
  .site-header nav.open { display: grid; grid-template-columns: repeat(3,1fr); max-height: calc(100vh - 80px); overflow-y: auto; }
  .site-header nav > a, .nav-group-toggle { width: 100%; min-height: 44px; padding: 11px 7px; text-align: left; font-size: 10px; }
  .nav-group { display: contents; }
  .nav-group-toggle { border-bottom: 1px solid #2c241b; }
  .nav-group-toggle::after { float: right; }
  .nav-menu { position: static; grid-column: 1/-1; min-width: 0; padding: 5px 12px 12px; box-shadow: none; background: #110e0a; }
  .nav-menu a { display: flex; align-items: center; min-height: 44px; }
  .nav-menu::before { display: none; }
  .nav-group:hover .nav-menu { display: none; }
  .nav-group.open .nav-menu { display: grid; grid-template-columns: repeat(3,1fr); }
  .hero-play-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .world-pulse-grid { grid-template-columns: 1fr; }
  .world-pulse-panel { min-height: 0; }
}

@media (max-width: 900px) {
  .world-pulse-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .world-pulse-heading p { margin: 0; }
  .world-pulse-mode { margin-top: 5px; }
  .library-filters { grid-template-columns: 1fr 1fr; }
  .library-filters .library-search, .library-filter-actions { grid-column: 1/-1; }
  .library-filters[data-library-view="monsters"] [data-library-category] { grid-column: 1/-1; }
  .library-filter-actions .button { flex: 1; text-align: center; }
  .quest-filters { grid-template-columns: 1fr 1fr; }
  .quest-filter-actions { grid-column: 1/-1; }
  .quest-filter-actions .button { flex: 1; text-align: center; }
}

@media (min-width: 760.01px) and (max-width: 800px) {
  .library-table-wrap { overflow: visible; border: 0; background: transparent; }
  .library-table, .library-table[data-library-view], .library-table tbody, .library-table tbody tr, .library-table td { display: block; width: 100%; min-width: 0; }
  .library-table tbody tr { margin-bottom: 12px; border: 1px solid #3b3023; background: #15110d; }
  .library-table td { display: grid; grid-template-columns: minmax(92px,36%) 1fr; gap: 13px; padding: 11px 14px; border-bottom: 1px solid #2d251c; font: 12px/1.45 var(--sans); }
  .library-table td::before { content: attr(data-label); color: #766b5e; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
  .library-table td:first-child { font: 15px var(--serif); }
  .library-table thead { position: static; display: block; width: auto; height: auto; margin-bottom: 10px; overflow: visible; clip: auto; }
  .library-table thead tr { display: flex; flex-wrap: wrap; width: 100%; margin: 0; border: 1px solid #3b3023; background: #1d1710; }
  .library-table thead th { display: none; }
  .library-table thead th.library-sortable-column { display: block; flex: 1 1 108px; min-width: 0; border-right: 1px solid #34291e; border-bottom: 1px solid #34291e; }
  .library-record-row.is-expanded { margin-bottom: 0; border-bottom: 0; }
  .library-detail-row { margin-top: 0; border-top: 0; border-left-color: #76532f; }
  .library-detail-row td, .library-detail-row td:first-child { display: block; padding: 0; border: 0; }
  .library-detail-row td::before { display: none; }
  .library-detail-panel { grid-template-columns: 1fr; gap: 17px; padding: 17px 16px 19px; }
}

@media (max-width: 760px) {
  .site-header nav.open { grid-template-columns: 1fr 1fr; }
  .nav-group:hover .nav-menu { display: none; }
  .nav-group.open .nav-menu { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-copy-wide { width: calc(100% - 24px); margin: -20px auto 0; padding: 28px 20px; }
  .hero-copy-wide h1 { font-size: 42px; }
  .hero-harbour { margin-top: 0; }
  .page-split { grid-template-columns: 1fr; }
  .page-masthead { padding-top: 55px; }
  .page-masthead h1 { font-size: 43px; }
  .directory-filters, .directory-filters.compact, .library-filters { grid-template-columns: 1fr 1fr; }
  .directory-table-wrap { overflow: visible; border: 0; background: transparent; }
  .directory-table, .library-table, .library-table[data-library-view] { min-width: 0; }
  .directory-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .directory-table, .directory-table tbody, .directory-table tr, .directory-table td { display: block; width: 100%; }
  .directory-table tr { margin-bottom: 12px; border: 1px solid #3b3023; background: #15110d; }
  .directory-table td { display: grid; grid-template-columns: minmax(92px,36%) 1fr; gap: 13px; padding: 11px 14px; border-bottom: 1px solid #2d251c; font: 12px/1.45 var(--sans); }
  .directory-table td::before { content: attr(data-label); color: #766b5e; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
  .directory-table td:first-child { font: 15px var(--serif); }
  .directory-table td.table-empty { display: block; }
  .directory-table td.table-empty::before { display: none; }
  .community-table th:first-child, .community-table td:first-child,
  .community-table th:nth-child(2), .community-table td:nth-child(2) { width: auto; }
  .library-table thead { position: static; display: block; width: auto; height: auto; margin-bottom: 10px; overflow: visible; clip: auto; }
  .library-table thead tr { display: flex; flex-wrap: wrap; width: 100%; margin: 0; border: 1px solid #3b3023; background: #1d1710; }
  .library-table thead th { display: none; }
  .library-table thead th.library-sortable-column { display: block; flex: 1 1 108px; min-width: 0; border-right: 1px solid #34291e; border-bottom: 1px solid #34291e; }
  .library-sort-button { min-height: 38px; padding: 9px 11px; }
  .library-record-row.is-expanded { margin-bottom: 0; border-bottom: 0; }
  .library-detail-row { margin-top: 0; border-top: 0; border-left-color: #76532f; }
  .library-detail-row td, .library-detail-row td:first-child { display: block; padding: 0; border: 0; }
  .library-detail-row td::before { display: none; }
  .library-detail-panel { grid-template-columns: 1fr; gap: 17px; padding: 17px 16px 19px; }
  .library-header { display: block; }
  .library-header h1 { margin-bottom: 8px; }
  .library-tabs { margin-inline: calc(-1 * var(--content-gutter)); padding-inline: var(--content-gutter); }
  .library-tabs a { min-width: 100px; padding-inline: 12px; }
  .library-heading { display: block; }
  .library-heading .directory-state { text-align: left; }
  .quest-filters { grid-template-columns: 1fr; padding: 15px; }
  .quest-filter-actions { grid-column: auto; }
  .quest-results-heading { display: block; }
  .quest-results-heading .directory-state { margin-top: 5px; text-align: left; }
  .quest-card-grid { grid-template-columns: 1fr; }
  .quest-card { min-height: 0; }
  .quest-detail-content { grid-template-columns: 1fr; }
  .quest-guide-section:first-child, .quest-guide-section:last-child { grid-column: auto; }
  .quest-detail-header, .quest-guide-section { padding: 18px; }
  .hero-play-actions { grid-template-columns: 1fr; }
  .hero-account-actions { align-items: stretch; flex-direction: column; }
  .hero-account-actions .button { width: 100%; text-align: center; }
}

@media (max-width: 800px) {
  .shop-grid, .store-showcase-grid, .premium-benefits-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .premium-secondary-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 0; }
  .premium-secondary-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
}

@media (max-width: 560px) {
  .shop-heading-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .shop-account-status { white-space: normal; }
  .shop-grid, .store-showcase-grid, .premium-benefits-grid { grid-template-columns: 1fr; }
  .shop-card { min-height: 238px; padding: 21px; }
  .shop-trust-panel { grid-template-columns: 1fr; gap: 8px; padding: 17px 18px; }
  .premium-secondary-list { grid-template-columns: 1fr; gap: 0; }
  .premium-secondary-list li, .premium-secondary-list li + li { padding: 11px 0; border-left: 0; border-top: 1px solid #39332a; }
  .premium-secondary-list li:first-child { padding-top: 2px; border-top: 0; }
}

@media (max-width: 720px) {
  .server-summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .server-summary-strip > div:nth-child(2) { border-right: 0; }
  .server-summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid #352a1e; }
  .server-info-grid, .server-system-list { grid-template-columns: 1fr; }
  .server-info-section-wide { grid-column: auto; }
}

@media (max-width: 460px) {
  .site-header nav.open, .nav-group.open .nav-menu { grid-template-columns: 1fr; }
  .status-strip-inner { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
  .status-strip-inner > span { white-space: nowrap; }
  .status-strip-inner > .online-record { grid-column: 1/-1; white-space: normal; }
  .status-strip-inner > .registered-accounts { grid-column: 1/-1; white-space: normal; }
  .hero.hero-expanded { padding-inline: 0; width: 100%; }
  .hero-harbour { aspect-ratio: 4 / 3; border-inline: 0; }
  .hero-harbour .hero-picture img { object-position: 42% center; }
  .hero-copy-wide::after { top: -24px; height: 24px; }
  .hero-copy-wide h1 { font-size: 37px; }
  .world-pulse-heading h2 { font-size: 33px; }
  .world-pulse-panel-head { min-height: 68px; padding: 20px 18px 16px; }
  .world-pulse-panel-head h3 { font-size: 13px; }
  .world-pulse-column-head { gap: 10px; padding-inline: 18px; }
  .world-pulse-list { padding-inline: 18px; }
  .world-pulse-row { gap: 10px; }
  .world-pulse-column-head--split, .world-pulse-row--split { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
  .world-pulse-killer, .world-pulse-xp { font-size: 10px; }
  .page-masthead h1 { font-size: 37px; }
  .directory-filters, .directory-filters.compact, .library-filters { grid-template-columns: 1fr; }
  .control-group { grid-template-columns: 1fr; gap: 7px; }
  .control-group > span { padding-top: 0; }
  .character-search-form { grid-template-columns: 1fr; }
  .character-search-form .button { width: 100%; text-align: center; }
  .community-results-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .community-results-heading .directory-state { text-align: left; }
  .directory-pagination { align-items: stretch; flex-direction: column; }
  .directory-pagination .button { width: 100%; }
  .hero-play-actions { gap: 9px; margin-top: 28px; }
  .play-action { min-height: 70px; padding: 13px 15px; }
  .play-action > span { font-size: 17px; }
  .premium-benefit-card { padding: 21px; }
  .premium-legal-links { align-items: flex-start; flex-direction: column; }
  .server-info-header { padding-top: 28px; }
  .server-summary-strip > div { padding-inline: 14px; }
  .server-summary-strip dd { font-size: 18px; }
  .server-info-section { padding-inline: 17px; }
  .server-info-list > div { gap: 12px; }
}

/* Decorative 8.60 sprite curtains: one continuous layer outside the Portal content grid. */
.sprite-curtains { display: none; }

@media (min-width: 1180px) and (min-height: 640px) {
  #public-view { position: relative; isolation: isolate; }
  .realm-status-bar, .hero, .join-banner, .portal-section > .content-grid { position: relative; z-index: 2; }
  .sprite-curtains {
    --sprite-portal-edge: max(var(--content-gutter), calc((100vw - var(--content-max-width)) / 2));
    --sprite-rail-width: clamp(128px, 10vw, 180px);
    --sprite-rail-gap: clamp(4px, .6vw, 12px);
    --sprite-rail-origin: max(0px, calc(var(--sprite-portal-edge) - var(--sprite-rail-width) - var(--sprite-rail-gap)));
    --sprite-render-buffer: 96px;
    --sprite-visible-edge: calc(var(--sprite-portal-edge) - var(--sprite-rail-gap));
    --sprite-mask-boundary: calc(var(--sprite-render-buffer) + var(--sprite-visible-edge) - var(--sprite-rail-origin));
    --sprite-fade-width: min(clamp(81.92px, 6.4vw, 115.2px), var(--sprite-visible-edge));
    --sprite-fade-mid: min(clamp(44.8px, 3.5vw, 63px), var(--sprite-visible-edge));
    --sprite-fade-tail: min(clamp(15.36px, 1.2vw, 21.6px), var(--sprite-visible-edge));
    display: block;
    position: absolute;
    inset: 42px 0 0;
    z-index: 1;
    overflow: clip;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 1.5%, #000 98%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 1.5%, #000 98%, transparent);
  }
  .sprite-curtain {
    position: absolute;
    inset-block: 0;
    width: calc(var(--sprite-rail-width) + var(--sprite-render-buffer) + var(--sprite-render-buffer));
    overflow: visible;
    opacity: .8;
  }
  .sprite-curtain--left {
    left: calc(var(--sprite-rail-origin) - var(--sprite-render-buffer));
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(var(--sprite-mask-boundary) - var(--sprite-fade-width)), rgba(0,0,0,.9) calc(var(--sprite-mask-boundary) - var(--sprite-fade-mid)), rgba(0,0,0,.16) calc(var(--sprite-mask-boundary) - var(--sprite-fade-tail)), transparent var(--sprite-mask-boundary), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(var(--sprite-mask-boundary) - var(--sprite-fade-width)), rgba(0,0,0,.9) calc(var(--sprite-mask-boundary) - var(--sprite-fade-mid)), rgba(0,0,0,.16) calc(var(--sprite-mask-boundary) - var(--sprite-fade-tail)), transparent var(--sprite-mask-boundary), transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .sprite-curtain--right {
    right: calc(var(--sprite-rail-origin) - var(--sprite-render-buffer));
    -webkit-mask-image: linear-gradient(to left, #000 0, #000 calc(var(--sprite-mask-boundary) - var(--sprite-fade-width)), rgba(0,0,0,.9) calc(var(--sprite-mask-boundary) - var(--sprite-fade-mid)), rgba(0,0,0,.16) calc(var(--sprite-mask-boundary) - var(--sprite-fade-tail)), transparent var(--sprite-mask-boundary), transparent 100%);
    mask-image: linear-gradient(to left, #000 0, #000 calc(var(--sprite-mask-boundary) - var(--sprite-fade-width)), rgba(0,0,0,.9) calc(var(--sprite-mask-boundary) - var(--sprite-fade-mid)), rgba(0,0,0,.16) calc(var(--sprite-mask-boundary) - var(--sprite-fade-tail)), transparent var(--sprite-mask-boundary), transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .sprite-token {
    display: block;
    flex: none;
    background: url("/assets/tibia-860-sprite-atlas.png") no-repeat;
    background-size: 1050px 70px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
  }
  .sprite-cyclops { width: 61px; height: 64px; background-position: -74px -3px; }
  .sprite-minotaur { width: 32px; height: 31px; background-position: -159px -19px; }
  .sprite-dragon { width: 63px; height: 62px; background-position: -283px -4px; }
  .sprite-demon { width: 61px; height: 64px; background-position: -354px -3px; }
  .sprite-spider { width: 54px; height: 55px; background-position: -428px -7px; }
  .sprite-dragon-lord { width: 63px; height: 62px; background-position: -493px -4px; }
  .sprite-behemoth { width: 58px; height: 53px; background-position: -566px -8px; }
  .sprite-elf { width: 30px; height: 31px; background-position: -650px -19px; }
  .sprite-vampire { width: 31px; height: 31px; background-position: -719px -19px; }
  .sprite-dwarf { width: 29px; height: 29px; background-position: -790px -20px; }
  .sprite-hero { width: 32px; height: 32px; background-position: -859px -19px; }
  .sprite-hydra { width: 60px; height: 60px; background-position: -915px -5px; }
  .sprite-black-knight { width: 35px; height: 32px; background-position: -997px -19px; }
  .rail-sprite {
    position: absolute;
    filter: grayscale(.06) sepia(.08) saturate(.94) brightness(.98) contrast(1.08) drop-shadow(0 8px 9px rgba(0,0,0,.84));
  }
  .sprite-curtain--left .rail-sprite { margin-left: var(--sprite-render-buffer); }
  .sprite-curtain--right .rail-sprite { margin-right: var(--sprite-render-buffer); }
  .sprite-curtain--left .rail-sprite-one { top: 3%; left: max(-14px, calc(0px - var(--sprite-rail-origin))); transform: scale(1.38); transform-origin: left center; opacity: .92; }
  .sprite-curtain--left .rail-sprite-two { top: 15%; left: 57px; transform: scale(1.65); transform-origin: left center; opacity: .67; }
  .sprite-curtain--left .rail-sprite-three { top: 26%; left: 23px; transform: scale(1.17); transform-origin: left center; opacity: .86; }
  .sprite-curtain--left .rail-sprite-four { top: 38%; left: 70px; transform: scale(1.35); transform-origin: left center; opacity: .68; }
  .sprite-curtain--left .rail-sprite-five { top: 49%; left: max(-17px, calc(0px - var(--sprite-rail-origin))); transform: scale(1.45); transform-origin: left center; opacity: .9; }
  .sprite-curtain--left .rail-sprite-six { top: 60%; left: 54px; transform: scale(1.78); transform-origin: left center; opacity: .69; }
  .sprite-curtain--left .rail-sprite-seven { top: 70%; left: 20px; transform: scale(1.06); transform-origin: left center; opacity: .82; }
  .sprite-curtain--left .rail-sprite-eight { top: 80%; left: 68px; transform: scale(1.5); transform-origin: left center; opacity: .64; }
  .sprite-curtain--left .rail-sprite-nine { top: 88%; left: max(-9px, calc(0px - var(--sprite-rail-origin))); transform: scale(1.36); transform-origin: left center; opacity: .85; }
  .sprite-curtain--left .rail-sprite-ten { top: 96%; left: 64px; transform: scale(1.54); transform-origin: left center; opacity: .66; }
  .sprite-curtain--right .rail-sprite-one { top: 7%; right: max(-16px, calc(0px - var(--sprite-rail-origin))); transform: scale(1.29); transform-origin: right center; opacity: .93; }
  .sprite-curtain--right .rail-sprite-two { top: 18%; right: 66px; transform: scale(1.58); transform-origin: right center; opacity: .64; }
  .sprite-curtain--right .rail-sprite-three { top: 29%; right: 19px; transform: scale(1.18); transform-origin: right center; opacity: .85; }
  .sprite-curtain--right .rail-sprite-four { top: 40%; right: 67px; transform: scale(1.44); transform-origin: right center; opacity: .68; }
  .sprite-curtain--right .rail-sprite-five { top: 51%; right: max(-8px, calc(0px - var(--sprite-rail-origin))); transform: scale(1.38); transform-origin: right center; opacity: .88; }
  .sprite-curtain--right .rail-sprite-six { top: 61%; right: 58px; transform: scale(1.82); transform-origin: right center; opacity: .65; }
  .sprite-curtain--right .rail-sprite-seven { top: 70%; right: 14px; transform: scale(1.1); transform-origin: right center; opacity: .88; }
  .sprite-curtain--right .rail-sprite-eight { top: 80%; right: 64px; transform: scale(1.72); transform-origin: right center; opacity: .66; }
  .sprite-curtain--right .rail-sprite-nine { top: 89%; right: 5px; transform: scale(1.82); transform-origin: right center; opacity: .77; }
  .sprite-curtain--right .rail-sprite-ten { top: 97%; right: max(-13px, calc(0px - var(--sprite-rail-origin))); transform: scale(1.39); transform-origin: right center; opacity: .86; }
}

@media (min-width: 1500px) and (min-height: 700px) {
  .sprite-curtain { opacity: .86; }
}

@media (min-width: 1180px) and (max-width: 1499px) {
  .sprite-curtain--left .rail-sprite-two { left: 32px; }
  .sprite-curtain--left .rail-sprite-four { left: 39px; }
  .sprite-curtain--left .rail-sprite-six { left: 29px; }
  .sprite-curtain--left .rail-sprite-eight { left: 37px; }
  .sprite-curtain--left .rail-sprite-ten { left: 34px; }
  .sprite-curtain--right .rail-sprite-two { right: 36px; }
  .sprite-curtain--right .rail-sprite-four { right: 38px; }
  .sprite-curtain--right .rail-sprite-six { right: 31px; }
  .sprite-curtain--right .rail-sprite-eight { right: 35px; }
}

@media (min-width: 1180px) and (max-width: 1360px) {
  .sprite-curtains { --sprite-rail-width: 128px; --sprite-rail-gap: 6px; }
  .sprite-curtain { opacity: .74; }
}

/* Android keeps the two existing hero cards and adds one full-width row. */
.hero-play-actions .play-action-android { grid-column: 1 / -1; border-color: #71866b; background: linear-gradient(115deg, #293d34, #182820); }
.hero-play-actions .play-action-android:hover { border-color: #bfca9a; background: #304738; }
.android-beta-panel { margin: 24px auto; width: min(1100px, calc(100% - 32px)); scroll-margin-top: 100px; box-sizing: border-box; }
.android-beta-panel code { overflow-wrap: anywhere; }
.android-beta-panel li { margin-block: 12px; }

/* Owner-requested header/menu language control. Existing layout rules remain unchanged. */
.portal-language { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; color: #c2b9aa; position: relative; }
.portal-language-globe { flex: 0 0 auto; pointer-events: none; }
.portal-language select { min-height: 44px; width: 65px; padding: 4px; color: inherit; background: #17130e; border: 1px solid var(--line-soft); border-radius: 2px; font: 10px var(--sans); cursor: pointer; }
.portal-language select:hover { color: var(--gold); border-color: var(--line); }
.portal-language select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.header-actions .portal-language-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1220.02px) and (max-width: 1320px) {
  .site-header nav { column-gap: 4px; }
  .header-actions { gap: 4px; }
}
@media (max-width: 1100px) {
  .header-actions .portal-language:not(:focus-within) { display: none; }
  #primary-nav > .portal-language { grid-column: 1/-1; min-width: 0; min-height: 52px; padding: 0 7px 8px; margin-bottom: 4px; border-bottom: 1px solid #2c241b; gap: 8px; }
  #primary-nav .portal-language-label { flex: 1; min-width: 0; font: 10px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
}
