:root {
  color-scheme: dark;
  --bg: #111316;
  --panel: #191b1e;
  --text: #efe9df;
  --muted: #95938f;
  --line: #ffffff16;
  --orange: #edaa70;
  --mint: #86ccbb;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); overflow: hidden; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, select { color: inherit; }
select { background: #181d22; border: 1px solid #ffffff20; border-radius: 4px; padding: 8px 10px; font-size: 11px; max-width: 100%; }
select:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
#sound-dialog { width: min(460px, calc(100% - 30px)); }
.sound-panel { padding: 26px; }
.sound-panel .check-setting { margin-top: 22px; }
.sound-panel .settings-row input[type="range"] { width: 58%; min-width: 110px; accent-color: #eda56e; }
.sound-panel .settings-row { margin: 14px 0; }
.sound-panel #music-status { min-height: 36px; line-height: 1.5; }
.audio-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.guide-header-button { gap: 6px; }
.guide-header-button svg { width: 20px; height: 20px; }
#help-dialog { width: min(960px, calc(100% - 24px)); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin: 18px 0; }
.settings-section { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #10171b33; }
.settings-section h3 { margin: 0 0 14px; color: #e6c8a0; font-size: 14px; font-weight: 500; }
.controls-settings { grid-row: span 2; }
.controls-settings .sound-settings { margin-top: 22px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.settings-section .settings-row { padding-top: 12px; gap: 10px; }
.settings-section .settings-row select { max-width: 60%; }
.settings-section .keybinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-section .help-controls { margin: 12px 0 18px; grid-template-columns: 1fr; gap: 12px; }
.settings-section .check-setting { margin-bottom: 0; }
.settings-section .small { line-height: 1.6; }
#guide-dialog { width: min(1080px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100% - 24px); }
.guide-panel.panel { padding: 28px; }
.guide-panel h2 { font-size: 32px; margin: 0; }
.guide-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; border-bottom: 1px solid var(--line); margin: 18px 0 22px; padding-bottom: 12px; }
.guide-tabs button { min-width: 0; padding: 9px 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.guide-tabs button[aria-selected="true"] { background: #bba16f17; border-color: #c8a4715c; color: #f1cf9f; }
.guide-library { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
.guide-abilities, #guide-rune-host { min-width: 0; max-width: 100%; }
.guide-ability-list { display: grid; min-width: 0; max-width: 100%; gap: 6px; max-height: 660px; overflow-y: auto; padding: 2px; }
.guide-ability { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px; background: #ffffff03; color: #c0bdb5; text-align: left; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.guide-ability svg { width: 27px; height: 27px; color: var(--ability-color); }
.guide-ability[aria-pressed="true"] { background: #ffffff09; border-color: var(--ability-color); color: #fff0db; }
.guide-example { min-width: 0; }
.guide-example h3 { font: normal 29px var(--serif); margin: 7px 0 12px; }
.guide-example .eyebrow { margin-top: 0; }
.guide-recipe { margin: 0 0 14px; color: #f0ca96; line-height: 1.5; font-size: 13px; }
.guide-canvas-wrap { border: 1px solid #c7a37935; border-radius: 7px; overflow: hidden; background: #14202d; }
#guide-canvas { display: block; width: 100%; height: 330px; }
#guide-demo-progress { display: block; width: 100%; height: 4px; margin-top: 6px; accent-color: #e7b57e; }
.guide-caption { min-height: 38px; line-height: 1.5; color: #e6d4b9; font-size: 13px; margin: 12px 0 4px; }
.guide-playback { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 13px 0; }
.guide-description { color: #b6b4ad; font-size: 13px; line-height: 1.7; margin-bottom: 0; }
.guide-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; padding-top: 16px; }
.guide-footer .small { line-height: 1.5; max-width: 570px; }
.guide-footer button { flex-shrink: 0; max-width: 100%; white-space: normal; text-align: left; }
.guide-basics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 22px 0; }
.guide-basics-grid > div { border: 1px solid var(--line); padding: 17px; border-radius: 6px; }
.guide-basics-grid strong { color: #e9c99e; font-size: 14px; }
.guide-basics-grid p, #guide-basics > p, .guide-rules p { font-size: 13px; color: #b2b3ab; line-height: 1.7; }
.guide-rules details { border-top: 1px solid var(--line); padding: 13px 0; }
.guide-rules summary { cursor: pointer; color: #dbc6a8; font-size: 13px; }
@media (max-width: 760px) {
  .guide-header-button span { display: none; }
  .settings-grid, .guide-library, .guide-basics-grid { grid-template-columns: 1fr; }
  .controls-settings { grid-row: auto; }
  .guide-panel.panel { padding: 20px; }
  .guide-ability-list { display: flex; overflow-x: auto; max-height: none; gap: 7px; padding-bottom: 8px; }
  .guide-ability { width: auto; flex-shrink: 0; white-space: nowrap; }
  #guide-canvas { height: 260px; }
  .guide-footer { align-items: flex-start; flex-direction: column; }
}
button { border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
button { transition: background 150ms, border-color 150ms, color 150ms, transform 150ms; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; }
input { min-width: 0; }
[hidden] { display: none !important; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.app { height: 100vh; height: 100dvh; min-height: 520px; display: flex; flex-direction: column; }
.topbar { height: 84px; flex-shrink: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: #131518; position: relative; z-index: 10; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; }
.brand-mark { width: 40px; height: 44px; color: var(--orange); stroke-width: 1.2; }
.brand > span { font-family: var(--serif); font-size: 23px; letter-spacing: 5px; }
.brand small { display: block; font: 9px "Segoe UI", sans-serif; letter-spacing: 4.2px; color: var(--muted); margin-top: 4px; }
.header-caption, .site-footer { font-size: 9px; letter-spacing: 1.7px; color: #858582; }
.header-caption { display: flex; align-items: center; gap: 13px; }
.tiny-diamond { height: 5px; width: 5px; background: #b09b7c; transform: rotate(45deg); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.account-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 200px; padding: 7px 12px; border: 1px solid #ffffff20; border-radius: 6px; background: #ffffff03; text-align: left; }
.account-button:hover { border-color: #bf98667a; background: #ffffff08; }
.account-button > svg { width: 23px; height: 26px; color: var(--orange); }
.account-button-text { min-width: 0; }
.account-button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.account-button small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.connection { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.connection i, .live-dot { width: 5px; height: 5px; background: #d7ab69; border-radius: 50%; display: inline-block; }
.connection[data-status="online"] i { background: #8bc4a6; box-shadow: 0 0 8px #8bc4a644; }
.connection[data-status="offline"] i { background: #e5836e; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 6px 0; background: none; font-size: 12px; color: #bdbbb6; }
.text-button:hover { color: var(--text); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 21px; padding: 0 5px; border: 1px solid #ffffff20; border-radius: 3px; background: #ffffff06; font: 10px "Segoe UI", sans-serif; color: #b5b1a9; }
.icon-button { width: 34px; height: 34px; background: transparent; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; border-radius: 4px; color: #b4aea5; font-size: 25px; font-weight: 200; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover { background: #ffffff0c; border-color: #ffffff35; }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; isolation: isolate; }
#arena { display: block; position: absolute; inset: 0; width: 100%; height: 100%; outline-offset: -3px; cursor: crosshair; }
#arena:focus-visible { outline: 1px solid #d0a06b55; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #111316ee 0%, #111316b3 29%, #11131608 56%, #11131600 82%), linear-gradient(0deg, #111316 0%, #11131600 23%, #11131600 85%, #11131655 100%); }
.home { position: absolute; inset: 0; overflow-y: auto; pointer-events: none; }
.intro { position: relative; margin: clamp(28px, 6vh, 64px) 0 32px 6.5%; width: min(380px, 87%); pointer-events: auto; }
.eyebrow, .label { font-size: 9px; font-weight: 600; letter-spacing: 2.5px; color: var(--orange); }
.intro > .eyebrow { display: flex; align-items: center; gap: 12px; font-size: 8px; letter-spacing: 2px; }
.orange-line { width: 23px; height: 1px; background: var(--orange); }
h1 { font: normal clamp(56px, 5.6vw, 78px)/1.04 var(--serif); margin: 18px 0; letter-spacing: -4px; }
h1 em { color: var(--orange); font-weight: normal; }
.intro-copy { font-size: 14px; line-height: 1.6; color: #a5a29d; margin: 0 0 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; font-size: 12px; padding: 13px 19px; border: 1px solid transparent; border-radius: 4px; font-weight: 500; text-decoration: none; }
.button svg { width: 19px; height: 19px; }
.primary { background: #e9aa73; color: #281c13; box-shadow: 0 2px 0 #633d2080, inset 0 1px 0 #ffffff25; }
.primary:hover:not(:disabled) { background: #f4bc87; box-shadow: 0 2px 0 #633d2080, 0 0 28px #edaa7012; }
.play-button { justify-content: space-between; width: 100%; height: 65px; padding: 12px 23px; font-family: var(--serif); font-size: 24px; text-align: left; }
.play-button small { display: block; margin-top: 5px; font: 11px "Segoe UI", sans-serif; opacity: .75; }
.play-button svg { width: 25px; height: 25px; }
.secondary { background: #ffffff04; border-color: #ffffff20; color: #c8c3bb; }
.secondary:hover:not(:disabled) { border-color: #b7a08966; background: #ffffff09; color: var(--text); }
.map-picker { padding: 0; margin: 18px 0 16px; border: 0; min-width: 0; }
.map-picker legend { font-size: 12px; color: #b3a899; margin-bottom: 10px; }
.map-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid #ffffff18; border-radius: 7px; background: #15191dda; }
.rules-picker { margin-bottom: 12px; }
.home-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.home-setup .map-picker { margin-top: 12px; margin-bottom: 14px; }
.home-setup .map-card strong { font-size: 11px; }
.home-setup .map-card small { white-space: normal; font-size: 9px; line-height: 1.35; }
.online-friends-button { font-size: 11px; margin-bottom: 14px; gap: 7px; }
.online-friends-button svg { width: 16px; height: 16px; }
.offline-entry { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.offline-entry .button { padding: 9px 13px; font-size: 11px; }
.offline-entry > span { font-size: 10px; color: var(--muted); }
.connection[data-status="local"] i { background: #86ccbb; }
.map-options label { position: relative; cursor: pointer; min-width: 0; }
.map-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.map-card { display: grid; text-align: center; padding: 10px 6px; border: 1px solid transparent; border-radius: 4px; }
.map-card strong { font-size: 12px; font-weight: 500; color: #cfc6b8; }
.map-card small { font-size: 10px; color: #9c9e97; margin-top: 4px; white-space: nowrap; }
.map-options input:checked + .map-card { border-color: #c99a65; background: #8a5b2924; box-shadow: inset 0 0 0 1px #c99a6520; }
.map-options input:checked + .map-card strong { color: #f2c38f; }
.map-options input:focus-visible + .map-card { outline: 2px solid var(--orange); outline-offset: 3px; }
.map-options label:hover .map-card { border-color: #bd956b88; }
#home-map-note { margin: 8px 0 0; color: #9b998f; font-size: 10px; }
.match-note { color: #a59b8a; font-size: 10px; line-height: 1.6; margin: 10px 0 16px; }
.home-match-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin: 10px 0 16px; }
.home-match-meta .match-note { margin: 0; }
.online-status { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #a1b6ac; font-size: 10px; line-height: 1.6; }
.online-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #888; flex-shrink: 0; }
.online-status[data-status="online"]::before { background: #8bc4a6; }
.mode-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mode-button.button { justify-content: flex-start; text-align: left; padding: 14px 12px; gap: 9px; font-size: 12px; }
.mode-button svg { color: #c9ab85; width: 21px; height: 21px; }
.mode-button small { display: block; font-size: 10px; color: #989d96; margin-top: 5px; }
.offline-options { margin-top: 13px; }
.offline-options summary { width: fit-content; cursor: pointer; padding: 8px 0; font-size: 11px; color: #aaa397; }
.offline-options summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.offline-options[open] { padding-bottom: 8px; }
.offline-options .home-mode { margin-top: 5px; }
.offline-options .home-mode > label { font-size: 11px; letter-spacing: 0; }
.offline-options .home-mode select { min-height: 40px; font-size: 12px; }
.offline-options p { margin: 7px 0; }
.home-mode { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.home-mode > label { font-size: 8px; letter-spacing: 1px; color: #928f86; }
.home-mode select { flex: 1; min-width: 0; font-size: 10px; padding: 7px; background: #14181bcc; }
.lobby-progression { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #c4bbae; margin-top: 13px; }
.lobby-settings-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.lobby-settings-row .lobby-progression { margin: 0; min-width: 0; flex-direction: column; align-items: stretch; gap: 6px; }
.lobby-settings-row select { width: 100%; min-width: 0; }
.quiet { color: #aaa69f; background: transparent; border-color: #ffffff0c; }
.quiet:hover { color: var(--orange); border-color: #ffffff22; }
.quiet > span { font-size: 18px; font-weight: 200; }
.input-note { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #757673; margin-top: 18px; }
.input-note svg { height: 14px; width: 14px; color: #9e9990; }
.join-form { display: flex; width: 100%; gap: 8px; margin-top: 10px; }
.join-form input { flex: 1; text-transform: uppercase; background: #181a1d; border: 1px solid #ffffff20; border-radius: 4px; font-family: monospace; letter-spacing: 3px; padding: 10px 14px; font-size: 13px; }
.preview-label { position: absolute; right: 6%; top: 45px; text-align: right; }
.preview-label > span { display: block; }
.preview-label > span:last-child { font-family: var(--serif); color: #99938a; font-style: italic; font-size: 16px; margin-top: 8px; }
.preview-tag { position: absolute; right: 13%; bottom: 17%; display: flex; align-items: center; gap: 10px; font-size: 8px; letter-spacing: 1.8px; color: #96877a; }
.preview-tag .live-dot { background: #eeaa66; box-shadow: 0 0 9px #f0884755; }
.tag-line { height: 1px; width: 20px; background: #8a776b55; }
.site-footer { flex-shrink: 0; height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; font-size: 7px; letter-spacing: 1.3px; border-top: 1px solid #ffffff08; background: #111316; position: relative; z-index: 2; }
.site-footer > span:last-child { display: flex; gap: 12px; align-items: center; }
.site-footer i { width: 3px; height: 3px; border-radius: 50%; background: #9b7752; }

.modal-screen { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 28px; background: #0b0e11a6; backdrop-filter: blur(7px); overflow-y: auto; z-index: 5; }
.modal-screen > .panel { margin-top: auto; margin-bottom: auto; flex-shrink: 0; }
.panel { width: 100%; background: linear-gradient(135deg, #202124, #181b1e 70%); border: 1px solid #ffffff1a; border-radius: 9px; box-shadow: 0 30px 100px #0007; padding: 34px 38px; }
.panel h2 { font: normal 37px/1.2 var(--serif); letter-spacing: -.8px; margin: 8px 0 14px; overflow-wrap: anywhere; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.panel-heading .eyebrow { margin: 0; }
.panel-heading .icon-button { margin-top: -7px; margin-right: -10px; border: none; }
.panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 21px; }
.muted { color: var(--muted); line-height: 1.7; font-size: 13px; }
.small { font-size: 11px; }
.account-panel { margin: 18px 0 24px; }
.account-status { font-size: 12px; line-height: 1.7; color: #b9a68d; margin: 12px 0; }
#profile-dialog { width: min(480px, calc(100% - 30px)); max-height: calc(100% - 30px); }
.profile-form { margin-top: 24px; }
.profile-form > label { font-size: 13px; }
.profile-form > p { margin: 6px 0 12px; }
.profile-name-row { display: flex; gap: 8px; }
.profile-name-row input { width: 100%; min-height: 46px; border: 1px solid #ffffff25; border-radius: 4px; background: #11171a; padding: 10px 12px; font-size: 14px; }
.profile-name-row .button { flex-shrink: 0; padding: 10px 14px; }
.profile-feedback { color: #bfc8a9; min-height: 18px; }
.profile-history { display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px 0; margin-top: 14px; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 13px; }
.profile-history:hover { color: var(--orange); }
.profile-history > svg { color: var(--orange); width: 22px; }
.profile-history > span { flex: 1; }
.profile-history small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.profile-panel .panel-footer { margin-top: 10px; }
#profile-done { margin-left: auto; }
.friend-identity { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 20px 0; font-size: 12px; color: #b9a68d; }
.friend-identity > span { overflow-wrap: anywhere; }
.friend-identity .text-button { flex-shrink: 0; }
#history-dialog { width: min(760px, calc(100% - 30px)); max-height: calc(100% - 30px); }
.history-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.history-stat { padding: 14px 6px; text-align: center; background: #10161988; border: 1px solid var(--line); border-radius: 4px; }
.history-stat strong { display: block; font: normal 30px var(--serif); color: var(--orange); }
.history-stat span { font-size: 10px; color: var(--muted); }
.history-card { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; overflow-wrap: anywhere; }
.history-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; justify-content: space-between; }
.history-heading h3 { font-size: 13px; margin: 0; }
.history-outcome { font-size: 12px; color: #e8bb8a; }
.history-standings summary { cursor: pointer; font-size: 11px; color: var(--muted); padding: 6px 0; }
.history-player { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; line-height: 1.7; padding: 8px 0; border-top: 1px solid var(--line); }
.history-player > :last-child { flex-shrink: 0; }
@media (max-width: 500px) {
  .history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-player { flex-direction: column; gap: 3px; }
}
@font-face { font-family: "Google Button Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("./google-roboto.woff2") format("woff2"); }
.google-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 1px solid #8e918f; border-radius: 4px; color: #e3e3e3; background: #131314; font: 500 14px "Google Button Roboto", Arial, sans-serif; }
.google-button:hover:not(:disabled) { background: #252526; }
.google-button img { width: 20px; height: 20px; }
.rejoin-panel { position: absolute; top: 35px; left: calc(100% + 65px); width: 340px; padding: 22px; background: #181e22f5; border: 1px solid #c7975e66; border-radius: 7px; box-shadow: 0 12px 50px #0004; }
.rejoin-panel > .eyebrow { font-size: 7px; letter-spacing: 1.6px; margin: 0; }
.rejoin-panel h2 { font: normal 28px var(--serif); margin: 10px 0; }
#rejoin-list { max-height: 45vh; overflow-y: auto; scrollbar-color: #796b58 #151a1e; }
.rejoin-card { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.rejoin-card > strong { font-size: 14px; color: #edbd8e; }
.rejoin-detail { font-size: 10px; color: #a6b4aa; line-height: 1.7; }
.rejoin-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.rejoin-actions .button { padding: 10px 12px; font-size: 11px; }
.rejoin-actions .text-button { font-size: 10px; }
#confirm-dialog { width: min(510px, calc(100% - 30px)); }
.confirm-panel { padding: 28px; }
.confirm-panel h2 { font-size: 30px; }
.confirm-panel .panel-footer { justify-content: flex-end; }
@media (max-width: 900px) {
  .rejoin-panel { position: static; width: 100%; margin: 18px 0; padding: 18px; }
}
.friends-panel, .queue-panel { max-width: 580px; }
.queue-panel { display: flex; flex-direction: column; max-height: 100%; }
.queue-panel > * { flex-shrink: 0; }
.friends-panel > .primary { width: 100%; }
.friends-panel .panel-footer .text-button { white-space: nowrap; }
.join-divider { border-top: 1px solid var(--line); margin: 25px 0 17px; text-align: center; height: 0; }
.join-divider span { position: relative; top: -8px; background: #1c1e21; padding: 0 13px; font-size: 8px; color: #a59b8d; letter-spacing: 1.5px; }
.queue-mark { width: 48px; height: 55px; color: #c79f72; }
.queue-map { color: #b2a28c; font-size: 12px; margin: 4px 0 25px; }
.queue-timing { display: flex; justify-content: space-between; align-items: baseline; }
.queue-timing > span { font-size: 8px; letter-spacing: 1.6px; color: #b8a58c; }
.queue-timing strong { font: normal 28px var(--serif); color: #f0bd89; font-variant-numeric: tabular-nums; }
#queue-progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 2px; margin: 10px 0 15px; background: #ffffff0d; accent-color: var(--orange); }
#queue-progress::-webkit-progress-bar { background: #ffffff0d; }
#queue-progress::-webkit-progress-value { background: #d5a475; }
#queue-progress::-moz-progress-bar { background: #d5a475; }
#queue-note { min-height: 38px; font-size: 12px; margin: 0 0 22px; }
.queue-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; list-style: none; padding: 0; margin: 12px 0; max-height: 260px; overflow-y: auto; scrollbar-color: #796b58 #151a1e; }
.queue-panel .queue-roster { flex-shrink: 1; min-height: 68px; }
.queue-seat { min-width: 0; display: flex; gap: 10px; align-items: center; border: 1px solid #ffffff12; border-radius: 4px; padding: 11px; background: #13181c77; }
.queue-seat svg { width: 24px; height: 24px; color: #a8c8b9; }
.queue-seat > div { min-width: 0; }
.queue-seat strong { display: block; font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-seat small { display: block; margin-top: 4px; color: #8f9e91; font-size: 7px; letter-spacing: .5px; }
.queue-seat.open { border-style: dashed; background: #ffffff02; }
.queue-seat.open svg, .queue-seat.open strong, .queue-seat.open small { color: #7e827d; }
.queue-panel .panel-footer { margin-top: 18px; flex-wrap: nowrap; }
.queue-panel .panel-footer > span { max-width: 240px; }
.queue-panel .panel-footer > button { white-space: nowrap; }
.lobby-panel { max-width: 840px; padding: 26px 32px; }
#lobby { padding: 18px; }
.lobby-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 42px; margin-top: 15px; }
.room-code-row { display: flex; justify-content: space-between; align-items: center; }
.room-code-row .label { display: block; color: #89847a; font-size: 8px; letter-spacing: 2px; }
.room-code-row strong { display: block; font: normal 29px/1.5 monospace; letter-spacing: 6px; color: var(--orange); }
.room-code-row .button { padding: 9px 12px; font-size: 10px; }
#invite-note { margin: 7px 0 12px; font-size: 10px; }
.list-heading { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 1.7px; color: #b2aaa0; }
.list-heading > span:last-child { color: #757774; }
.lobby-roster { margin-top: 12px; max-height: 150px; overflow-y: auto; scrollbar-color: #796b58 #151a1e; }
.roster-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 12px; border-bottom: 1px solid #ffffff08; }
.roster-avatar { width: 30px; height: 30px; border-radius: 4px; background: color-mix(in srgb, var(--color) 10%, transparent); color: var(--color); display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--color) 20%, transparent); }
.roster-avatar svg { width: 23px; height: 23px; }
.roster-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-badge { font-size: 8px; letter-spacing: 1px; color: #99958b; }
.roster-badge.host { color: var(--orange); }
.bot-setting { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.bot-setting strong { display: block; font-size: 11px; font-weight: 500; }
.bot-setting small { display: block; font-size: 10px; color: #7e7f7a; margin-top: 4px; }
.arena-rules { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin: 18px 0 0; }
.arena-rules legend { color: #aa9580; font-size: 7px; letter-spacing: 1.5px; padding: 0 5px; }
.arena-rules > label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #c4bbae; }
.arena-rules > div { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 11px; }
.arena-rules > div label, .check-setting { display: flex; gap: 7px; align-items: center; font-size: 10px; color: #b5b4a8; }
input[type="checkbox"] { accent-color: var(--orange); width: 14px; height: 14px; margin: 0; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; }
.stepper button { width: 30px; height: 31px; background: #ffffff06; color: #bbb4ab; font-size: 17px; }
.stepper button:hover:not(:disabled) { background: #ffffff15; }
.stepper span { width: 30px; text-align: center; font-size: 12px; }
.lobby-aside { padding: 25px 25px 20px; border-radius: 5px; border: 1px solid #c9925922; background: radial-gradient(at 60% 0%, #ab714316, #15171a33); }
.large-rune { width: 53px; height: 59px; color: #b48b64; stroke-width: 1; }
.lobby-aside h3 { font: normal 25px/1.3 var(--serif); margin: 20px 0 13px; }
.lobby-aside p { font-size: 11px; line-height: 1.8; color: #969188; }
.aside-rule { width: 30px; height: 1px; background: #ad8b6144; margin: 20px 0; }

.app[data-view="game"] .vignette { background: radial-gradient(ellipse at 45% 40%, #11131600 38%, #111316ad 87%), linear-gradient(0deg, #111316e6 0%, transparent 24%); }
.game-hud { position: absolute; inset: 0; pointer-events: none; }
.arena-heading { position: absolute; left: 38px; top: 30px; }
.arena-heading > .eyebrow { font-size: 8px; color: #c6a07c; }
.arena-heading > div { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.arena-heading strong { font-weight: 500; font-size: 13px; letter-spacing: 1.7px; }
.arena-heading div > span { font-size: 11px; color: #7e7e79; }
.arena-heading div > .fps-counter { min-width: 48px; padding-left: 8px; border-left: 1px solid #ffffff20; font-size: 10px; font-variant-numeric: tabular-nums; color: #a8c6b7; white-space: nowrap; }
.fps-counter[data-level="low"] { color: #efa888 !important; }
.fps-counter[data-level="fair"] { color: #d9c58a !important; }
#objective-note { font-size: 9px; color: #b3a088; letter-spacing: .3px; max-width: 230px; line-height: 1.6; }
#arena-rank-label { font-size: 8px; color: #899f9a; margin: 9px 0 0; }
#bot-rank-note, #lobby-map-note { font-size: 10px; margin: 9px 0 0; }
.heading-divider { width: 1px; height: 13px; background: var(--line); margin: 0 5px; }
.arena-warning { position: absolute; top: 39px; left: 48%; transform: translateX(-50%); font-size: 8px; letter-spacing: 2px; color: #e7a478; opacity: 0; padding: 8px 13px; background: #4d26173b; border: 1px solid #cf6f3c29; border-radius: 3px; }
.arena-warning.visible { opacity: 1; }
.scoreboard { position: absolute; top: 31px; right: 32px; width: 192px; padding: 16px; background: #14171bad; border: 1px solid #ffffff0d; border-radius: 5px; }
.scoreboard { display: flex; flex-direction: column; max-height: max(180px, calc(100% - 440px)); }
#scoreboard-players { overflow-y: auto; min-height: 0; scrollbar-color: #796b58 #151a1e; }
.scoreboard > .list-heading, .scoreboard-key { flex-shrink: 0; }
.scoreboard .list-heading { font-size: 7px; letter-spacing: 1.1px; margin-bottom: 12px; }
.score-row { display: flex; align-items: center; gap: 8px; padding: 11px 0; font-size: 11px; border-bottom: 1px solid #ffffff09; }
.score-row.dead { opacity: .38; }
.score-row.unseen .dot { background: transparent; box-shadow: none; border: 1px solid var(--color); }
.score-row .dot { width: 5px; height: 5px; background: var(--color); border-radius: 50%; box-shadow: 0 0 7px color-mix(in srgb, var(--color) 25%, transparent); }
.score-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: #bcb8b0; }
.player-kind { font-size: 7px; letter-spacing: .7px; color: #9bafa3; margin-left: 7px; white-space: nowrap; }
.score-row .player-kind { display: block; margin: 3px 0 0; font-size: 6px; }
.score-row.me .name { color: #e7e4dc; }
.score-row .score { font-size: 10px; letter-spacing: 2px; color: #bda283; }
.scoreboard.is-spectator { pointer-events: auto; }
button.score-row { background: transparent; width: 100%; text-align: left; }
button.score-row:hover, button.score-row.watched { background: #c0a67d14; }
button.score-row.watched .name { color: #f2cc97; }
.scoreboard-key { margin-top: 15px; display: flex; align-items: center; gap: 5px; font-size: 7px; color: #77756e; }
.scoreboard-key svg { width: 13px; height: 13px; color: #a39176; }
.scoreboard-key > span { margin: 0 2px; }
.phase-banner { position: absolute; top: 32%; left: 44%; max-width: min(75%, 700px); transform: translate(-50%, -50%); text-align: center; filter: drop-shadow(0 3px 20px #000); }
.phase-banner .banner-label { font-size: 9px; letter-spacing: 3px; color: #e8bb8a; display: block; text-transform: uppercase; }
.phase-banner .banner-main { display: block; font: normal 55px var(--serif); margin: 10px 0; overflow-wrap: anywhere; }
.phase-banner .count-number { font-size: 100px; }
.phase-banner .banner-note { font-size: 12px; color: #b4aaa0; }
.spectator-note { position: absolute; bottom: 140px; left: 44%; transform: translateX(-50%); letter-spacing: 2px; font-size: 10px; color: #e1ab8a; text-align: center; padding: 13px 19px; border-radius: 4px; background: #121519c9; }
.spectator-note > span { display: block; font-size: 11px; letter-spacing: 0; margin-top: 8px; color: #a4a09a; }
.death-notice { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; background: radial-gradient(ellipse at 45% 42%, #190e0b10 15%, #501f1745 100%); }
.death-card { margin: -65px 10% 0 0; padding: 28px 35px; text-align: center; border-top: 1px solid #e0a07865; border-bottom: 1px solid #e0a07830; background: linear-gradient(90deg, #15141700, #171416ec 18%, #171416ec 82%, #15141700); text-shadow: 0 2px 14px #000; }
.death-card .eyebrow { color: #e2a289; font-size: 11px; letter-spacing: 3px; }
.death-card h2 { font: normal clamp(32px, 4vw, 53px)/1.15 var(--serif); color: #f1d9c5; margin: 14px 0 12px; }
.death-card p { font-size: 13px; color: #d4b19b; margin: 0 0 16px; }
.death-card small { display: block; font-size: 10px; line-height: 1.7; color: #a69c90; }
.kill-feed { position: absolute; right: 234px; bottom: 161px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.feed-entry { font-size: 10px; color: #b6a99c; padding: 7px 10px; border-right: 2px solid #ce916d66; background: #19191bc9; animation: feed-in 180ms ease-out; }
.feed-entry strong { font-weight: 500; color: #e4ba8e; }
@keyframes feed-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.combat-dock { pointer-events: auto; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; grid-template-columns: minmax(220px, 1fr) auto 108px; grid-template-rows: 82px 54px; align-items: center; gap: 10px 18px; width: 980px; max-width: calc(100% - 40px); height: 176px; padding: 14px 18px; border: 1px solid #bc967536; border-radius: 7px; background: linear-gradient(180deg, #201a22f5, #15141bf5); box-shadow: 0 8px 35px #0004; backdrop-filter: blur(15px); }
.player-vitals { min-width: 0; height: 82px; }
.vitals-name { display: flex; align-items: center; gap: 7px; height: 20px; margin-bottom: 7px; }
.vitals-name svg { width: 17px; height: 20px; color: var(--mint); }
.vitals-name strong { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vitals-name > span { font-size: 7px; letter-spacing: 1px; color: #6e9d90; }
.vitals-name .level-badge { color: #f5d392; white-space: nowrap; border: 1px solid #d8b67b66; padding: 3px 5px; border-radius: 3px; }
.attack-vitals { display: flex; align-items: center; gap: 10px; height: 55px; }
.vital-meters { flex: 1; min-width: 0; }
.experience-row { display: flex; justify-content: space-between; gap: 6px; margin: 9px 0 4px; font-size: 8px; letter-spacing: .5px; color: #b3a3d1; }
.experience-row strong { font-weight: 400; font-variant-numeric: tabular-nums; }
.experience-track { height: 4px; background: #0006; border-radius: 2px; overflow: hidden; }
#xp-bar { display: block; width: 0; height: 100%; background: #bd9bf0; }
.score-level { font-size: 8px; color: #ccb1ef; white-space: nowrap; font-variant-numeric: tabular-nums; }
.health-row { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .8px; color: #a8bbb0; margin-bottom: 5px; }
.health-row strong { font-size: 10px; color: #d1e3d8; font-weight: 500; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.health-track { height: 7px; border-radius: 2px; background: #0006; overflow: hidden; }
#health-bar { height: 100%; background: #86b9a6; width: 100%; transition: width 90ms linear; }
#health-bar.danger { background: #d48a70; }
.heat-row { display: flex; justify-content: space-between; font-size: 8px; margin-top: 7px; color: #8d8578; }
.heat-status { margin-top: 8px; padding: 6px 7px; border: 1px solid #f4a36665; border-radius: 4px; background: #a8482424; }
.heat-status .heat-row { margin-top: 0; gap: 5px; }
.heat-track { height: 5px; overflow: hidden; margin-top: 6px; border-radius: 3px; background: #100b0a99; }
#heat-bar { display: block; height: 100%; background: linear-gradient(90deg, #ffbb71, #f05c47); box-shadow: 0 0 9px #ff906b99; }
#heat-reset { display: block; margin-top: 4px; color: #ffc49c; font-size: 8px; }
.heat-status.cooling { border-color: #a0bcb166; background: #718e811a; }
.heat-status.cooling #heat-reset { color: #bcdbcd; }
.active-buff { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 8px; margin-top: 10px; color: var(--buff-color); border: 1px solid color-mix(in srgb, var(--buff-color) 65%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--buff-color) 10%, #151b20); box-shadow: 0 0 15px color-mix(in srgb, var(--buff-color) 10%, transparent); }
.active-buff > svg { width: 29px; height: 29px; }
.buff-info { flex: 1; min-width: 0; }
.buff-title { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; letter-spacing: .6px; }
.buff-title strong { font-weight: 600; }
#buff-clock { font-variant-numeric: tabular-nums; }
#buff-detail { display: block; margin-top: 3px; font-size: 8px; line-height: 1.4; color: #d4d5c9; }
.buff-track { height: 3px; margin-top: 5px; background: #0006; border-radius: 2px; overflow: hidden; }
#buff-duration { display: block; height: 100%; background: var(--buff-color); }
.active-buff.expiring { border-color: #efba80; }
.aegis-status { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #ffe1a0; font-size: 9px; }
.aegis-status svg { width: 22px; height: 22px; }
.aegis-status small { display: block; color: #d5cbb8; font-size: 8px; }
.lava-status { margin-top: 7px; padding: 4px 5px; font-size: 8px; line-height: 1.3; letter-spacing: .4px; color: #ffc28c; border-left: 2px solid #e89357; background: #a8512322; }
#heat-label { color: #d6a475; letter-spacing: .7px; }
.spell-bar { display: flex; align-items: center; gap: 6px; height: 82px; min-height: 0; }
.spell { position: relative; width: 68px; height: 79px; padding: 12px 0 9px; border: 1px solid #be8b5f42; border-radius: 4px; background: radial-gradient(ellipse at 50% 25%, #68442855, #25211e 80%); color: #efbc85; overflow: hidden; --spell-color: #efbc85; }
.spell[data-spell="pulse"] { --spell-color: #bda3ea; color: var(--spell-color); border-color: #b297e740; background: radial-gradient(ellipse at 50% 25%, #584b7555, #221e2b 80%); }
.spell[data-spell="blink"] { --spell-color: #8ad9ce; color: var(--spell-color); border-color: #78c8bd40; background: radial-gradient(ellipse at 50% 25%, #35696255, #1a2728 80%); }
.spell[data-spell="meteor"] { --spell-color: #e59b7a; color: var(--spell-color); border-color: #e39a7340; background: radial-gradient(ellipse at 50% 25%, #854c3455, #2d201c 80%); }
.spell[data-spell="thrust"] { --spell-color: #b2d295; color: var(--spell-color); border-color: #b2d29540; background: radial-gradient(ellipse at 50% 25%, #50633a55, #232b1e 80%); }
.spell[data-spell="shield"] { --spell-color: #9ebfe5; color: var(--spell-color); border-color: #9ebfe540; background: radial-gradient(ellipse at 50% 25%, #3c547355, #1d2530 80%); }
.spell.armed, .spell.casting { border-color: var(--spell-color); box-shadow: 0 0 13px color-mix(in srgb, var(--spell-color) 25%, transparent); }
.spell.armed::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--spell-color); z-index: 5; }
.spell.arcane-recharge { border-color: #bb9cf0; }
.spell.arcane-recharge .cooldown { color: #dfcfff; }
.spell:hover:not(:disabled) { border-color: var(--spell-color); transform: translateY(-2px); }
.spell > svg { width: 36px; height: 36px; filter: drop-shadow(0 0 8px #fdb77120); position: relative; z-index: 1; }
.spell kbd { position: absolute; top: 3px; left: 4px; font-size: 9px; height: 14px; min-width: 14px; border: none; padding: 0; color: #d2c5b6; background: none; z-index: 2; }
.spell-name { display: block; font-size: 8px; margin-top: 5px; color: #bdafa1; position: relative; z-index: 1; }
.spell.basic-attack { width: 55px; min-width: 55px; height: 55px; padding: 12px 0 3px; border-color: #d6945b70; }
.spell.basic-attack > svg { width: 25px; height: 25px; }
.spell.basic-attack .spell-name { font-size: 7px; margin-top: 0; }
.spell.basic-attack kbd { font-size: 8px; }
.spell.previewing { outline: 1px solid var(--spell-color); outline-offset: 3px; }
.rune-slot-wrap { position: relative; padding-left: 10px; margin-left: 3px; border-left: 1px solid #b99a6a4a; }
.spell.rune-slot { color: var(--spell-color); border-color: color-mix(in srgb, var(--spell-color) 75%, transparent); background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--spell-color) 21%, transparent), #18212b 85%); box-shadow: 0 0 13px color-mix(in srgb, var(--spell-color) 13%, transparent); }
.spell.rune-slot.empty { border-style: dashed; background: #12191f; box-shadow: none; }
.spell.rune-slot.stunned { opacity: .6; }
.rune-slot .spell-name { padding: 0 3px; line-height: 1.1; }
.rune-state { position: absolute; top: 6px; right: 5px; font-size: 6px; letter-spacing: .5px; color: var(--spell-color); }
.rune-swap { position: absolute; right: 0; top: -27px; padding: 4px 7px; white-space: nowrap; border: 1px solid #d5bd8780; border-radius: 3px; background: #182329f5; color: #f3dcaa; font-size: 8px; box-shadow: 0 2px 12px #0007; }
.rune-swap:hover { background: #35433f; }
.cooldown { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 7px; font: 24px var(--serif); color: #f5e5cf; z-index: 4; text-shadow: 0 2px 8px #000; pointer-events: none; }
.cooldown:empty { display: none; }
.cooldown-wipe { position: absolute; bottom: 0; left: 0; right: 0; height: var(--cooldown, 0%); background: #0c0e11b8; z-index: 3; pointer-events: none; }
.spell:disabled { opacity: .45; }
.spell.recharging { cursor: default; }
.spell.locked { border-style: dashed; border-color: #8d8b8344; background: #15191c; }
.spell.locked > svg { opacity: .35; }
.spell.locked .cooldown { font: 7px "Segoe UI", sans-serif; letter-spacing: .8px; color: #a9a497; padding-bottom: 5px; }
.spell-tooltip { position: absolute; z-index: 8; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: min(320px, calc(100vw - 48px)); max-height: min(320px, 45dvh); overflow-y: auto; padding: 14px 17px; font-size: 11px; line-height: 1.7; background: #15181bf5; border: 1px solid #ae8b6b44; border-radius: 5px; color: #b3aba0; box-shadow: 0 6px 30px #0006; pointer-events: none; }
.spell-tooltip strong { display: block; color: #ead0ae; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.dock-controls { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 108px; height: 82px; }
.dock-controls > span { display: flex; gap: 5px; align-items: center; font-size: 7px; color: #969085; white-space: nowrap; }
.dock-controls svg { width: 14px; height: 14px; }
.dock-controls b { font-size: 9px; font-weight: 400; margin-left: 2px; color: #b9b0a3; }
.dock-controls kbd { height: 17px; font-size: 8px; min-width: 18px; }
.dock-controls .text-button { font-size: 9px; justify-content: flex-start; }
.combat-statuses { grid-column: 1 / -1; display: flex; align-items: stretch; gap: 8px; height: 54px; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8e755d #17131c; border-top: 1px solid #d6b38a20; padding-top: 5px; }
.combat-statuses > * { flex: 0 0 auto; height: 37px; margin: 0; }
.combat-statuses .heat-status { width: 210px; padding: 3px 7px; }
.combat-statuses .heat-track { height: 3px; margin-top: 3px; }
.combat-statuses #heat-reset { margin-top: 2px; font-size: 7px; }
.combat-statuses .lava-status { display: flex; align-items: center; width: 155px; padding: 4px 7px; }
.combat-statuses .active-buff { width: 240px; min-height: 0; padding: 3px 7px; }
.combat-statuses .active-buff > svg { width: 24px; height: 24px; }
.combat-statuses #buff-detail { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 8px; margin-top: 2px; }
.combat-statuses .buff-track { margin-top: 3px; height: 2px; }
.combat-statuses .aegis-status { padding: 3px 7px; }
.cast-hint { position: absolute; left: 50%; bottom: 156px; transform: translateX(-50%); font-size: 11px; line-height: 1.5; color: #eed1ac; padding: 9px 14px; border: 1px solid #c6a17a44; border-radius: 4px; background: #111a20ee; text-align: center; max-width: min(600px, 85%); }
.minimap-panel { pointer-events: auto; position: absolute; right: 32px; bottom: 160px; width: 180px; padding: 6px; background: #141b21eb; border: 1px solid #bda0792a; border-radius: 5px; }
#minimap { display: block; width: 100%; aspect-ratio: 1; cursor: crosshair; border-radius: 3px; }
.minimap-panel .text-button { display: flex; font-size: 9px; margin: 5px auto 0; padding: 0; gap: 7px; }
.minimap-panel kbd { font-size: 7px; height: 16px; }
#vision-label { display: block; text-align: center; font-size: 6px; letter-spacing: 1.4px; margin-top: 6px; color: #849b9d; }
.shop-panel { max-width: 760px; text-align: center; padding: 32px; }
.shop-panel h2 { font-size: 35px; }
.boon-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 27px 0 24px; }
.boon-card { text-align: left; padding: 22px 20px 0; background: linear-gradient(145deg, #41362a44, #1c202266); border: 1px solid #ba906744; border-radius: 5px; color: var(--text); overflow: hidden; }
.boon-card:hover:not(:disabled) { border-color: #dfad79aa; background: linear-gradient(145deg, #76502d44, #24232066); transform: translateY(-3px); }
.boon-card.selected { border-color: #a9ba88; opacity: 1; }
.boon-card > svg { display: block; width: 42px; height: 42px; color: var(--orange); margin-bottom: 23px; }
.boon-card > .eyebrow { font-size: 7px; color: #bba282; }
.boon-card h3 { font: normal 20px var(--serif); margin: 10px 0; }
.boon-card p { font-size: 11px; color: #aaa398; line-height: 1.7; }
.boon-level { display: block; color: #88887b; font-size: 9px; margin: 16px 0; }
.boon-action { margin: 0 -20px; padding: 12px 20px; font-size: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #d8b38a; }
.spellbook-summary { font-size: 9px; line-height: 1.7; color: #acb5a1; letter-spacing: .5px; margin-top: 17px; }
.learn-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.learn-card { padding: 17px; border: 1px solid color-mix(in srgb, var(--spell-color) 30%, transparent); border-radius: 5px; text-align: left; background: linear-gradient(140deg, color-mix(in srgb, var(--spell-color) 9%, transparent), #13181d55); }
.learn-card:hover:not(:disabled), .learn-card.selected { border-color: var(--spell-color); background-color: #ffffff07; }
.learn-card.selected { opacity: 1; }
.learn-heading { display: flex; align-items: center; gap: 12px; }
.learn-heading svg { width: 32px; height: 32px; color: var(--spell-color); }
.learn-heading h3 { font: normal 22px var(--serif); margin: 0; flex: 1; }
.learn-heading kbd { color: var(--spell-color); border-color: color-mix(in srgb, var(--spell-color) 30%, transparent); }
.learn-card p { font-size: 11px; line-height: 1.7; color: #b2ab9f; min-height: 54px; }
.learn-action { display: block; font-size: 10px; color: var(--spell-color); padding-top: 12px; border-top: 1px solid var(--line); }
.results-panel { max-width: 860px; text-align: center; }
.results-panel > .eyebrow { margin: 0 0 8px; }
#results-title { margin: 0 0 10px; font-size: 34px; overflow-wrap: anywhere; }
#results-subtitle { margin: 0; }
.result-crown { width: 44px; height: 44px; color: #e9b878; margin-bottom: 10px; }
.results-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 18px; text-align: left; }
.results-table .rank-column { width: 38px; }
.results-table .stat-column { width: 86px; text-align: right; }
.results-table thead th { padding: 10px 8px; color: #aaa393; font-size: 10px; font-weight: 500; border-bottom: 1px solid #ffffff24; }
.result-row td, .result-row th { padding: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 400; }
.result-row .rank { color: #7c776d; font-family: var(--serif); }
.result-row .name { overflow-wrap: anywhere; }
.result-row .result-stat { color: #b8aa94; text-align: right; font-variant-numeric: tabular-nums; }
.result-row.winner { color: #edc394; }
#results-scoring-note { line-height: 1.6; margin: 14px 0 0; }
@media (max-width: 500px) {
  .results-panel.panel { padding: 22px 14px; }
  .results-table .rank-column { width: 23px; }
  .results-table .stat-column { width: 51px; }
  .results-table thead th, .result-row td, .result-row th { padding: 10px 3px; font-size: 10px; }
  .result-row .player-kind { display: block; margin: 3px 0 0; white-space: normal; font-size: 6px; letter-spacing: 0; }
  .result-crown { width: 44px; height: 44px; }
}
.results-actions { display: flex; justify-content: center; gap: 9px; margin-top: 28px; flex-wrap: wrap; }
.results-actions .text-button { padding: 10px; }

dialog { border: none; padding: 0; background: transparent; color: var(--text); width: min(660px, calc(100% - 30px)); max-height: calc(100% - 40px); border-radius: 9px; }
dialog::backdrop { background: #07090bce; backdrop-filter: blur(5px); }
.help-panel { padding: 32px; }
.help-panel h2 { font-size: 31px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 0 10px; border-top: 1px solid var(--line); font-size: 12px; }
.settings-row small { display: block; color: #8c928c; font-size: 9px; margin-top: 5px; }
.binding-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 12px; }
.binding-heading > label { font-size: 8px; letter-spacing: 2px; color: var(--orange); }
.binding-heading > select { min-width: 0; }
.keybinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keybinds label { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #b9b4aa; font-size: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; }
.keybinds input { width: 28px; height: 26px; text-align: center; text-transform: uppercase; padding: 3px; border: 1px solid #ac936752; border-radius: 3px; background: #14191e; color: #e5bf8d; }
.keybinds label:last-child { grid-column: 1 / -1; }
.binding-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.binding-footer > span { font-size: 8px; color: #898d87; line-height: 1.7; }
.binding-footer .button { padding: 9px 13px; font-size: 10px; white-space: nowrap; }
.check-setting { margin: 0 0 20px; }
.help-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0; }
.help-controls > div { display: flex; align-items: center; gap: 9px; }
.help-controls span { font-size: 10px; color: #b1aba1; }
.help-controls kbd { font-size: 9px; height: 25px; min-width: 42px; }
.help-tip { background: #b2773422; border: 1px solid #d5954b22; border-radius: 4px; padding: 16px; }
.help-tip strong { font-size: 12px; font-weight: 500; color: #dfb77f; }
.help-tip p { font-size: 11px; line-height: 1.8; margin: 8px 0 0; color: #b9aa93; }
.help-tip + .help-tip { margin-top: 14px; }
.rune-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.rune-entry { display: flex; align-items: flex-start; gap: 9px; padding-top: 11px; border-top: 1px solid var(--line); }
.rune-entry svg { width: 27px; height: 27px; color: var(--rune-color); }
.rune-entry strong { color: var(--rune-color); font-size: 11px; }
.rune-entry small { display: block; font-size: 9px; line-height: 1.6; color: #aaa99f; margin-top: 4px; }
.lava-tip { margin-bottom: 14px; }
.help-panel .panel-footer { gap: 13px; flex-wrap: wrap; }
.help-panel .panel-footer .text-button { margin-right: auto; font-size: 10px; }
.warning-text { color: #e0a175; }
.reconnecting { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #362a1ef2; border: 1px solid #dba35466; padding: 12px 18px; border-radius: 5px; font-size: 12px; z-index: 20; white-space: nowrap; }
.reconnecting .live-dot { margin-right: 8px; }
.toasts { position: fixed; right: 25px; top: 100px; display: flex; flex-direction: column; gap: 10px; z-index: 50; max-width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast { padding: 14px 18px; border: 1px solid #b5875b55; border-radius: 5px; background: #242322f5; box-shadow: 0 5px 20px #0004; font-size: 12px; line-height: 1.6; color: #e0c9ac; animation: feed-in 180ms ease-out; }
.noscript { position: fixed; inset: 0; z-index: 99; background: #15181b; display: grid; place-items: center; color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation: none !important; transition: none !important; }
.low-cost .combat-dock, .low-cost .modal-screen, .low-cost dialog::backdrop { backdrop-filter: none; }
.low-cost .combat-dock { background: #181f25; }
.low-cost .spell > svg, .low-cost .phase-banner { filter: none; }
.low-cost .active-buff, .low-cost .spell, .low-cost .score-row .dot, .low-cost .toast, .low-cost #heat-bar { box-shadow: none; }
.low-cost .death-card { text-shadow: none; }
@media (max-height: 950px) and (min-width: 761px) {
  .topbar { height: 71px; }
  .intro { margin: 22px 0 22px 5%; padding-bottom: 10px; }
  .home h1 { font-size: 54px; margin: 12px 0; }
  .intro-copy { font-size: 12px; margin-bottom: 12px; }
  .home { overflow-y: auto; pointer-events: auto; }
  .map-picker { margin-top: 12px; margin-bottom: 12px; }
  .map-card { padding-top: 9px; padding-bottom: 9px; }
  .match-note { margin: 9px 0 12px; }
  .input-note { margin-top: 11px; }
  .play-button { height: 57px; }
  .preview-tag { bottom: 17%; }
  .modal-screen { padding: 15px; }
  .panel { padding: 25px 30px; }
  .lobby-grid { margin-top: 5px; }
}
@media (max-width: 1280px) {
  .header-caption { display: none; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .intro { margin-top: 16px; margin-bottom: 16px; }
  .home h1 { font-size: 44px; margin: 10px 0; }
  .intro-copy { margin-bottom: 12px; }
  .map-picker { margin: 10px 0; }
  .map-card { padding: 7px 6px; }
  .mode-button.button { padding-top: 10px; padding-bottom: 10px; }
  .offline-options { margin-top: 5px; }
  .input-note { margin-top: 6px; }
}
@media (max-height: 700px) {
  .home-setup .map-picker { margin: 8px 0; }
  .home-match-meta { margin: 8px 0; }
  .online-friends-button { margin-bottom: 8px; }
  .offline-entry { padding-top: 8px; }
  .offline-options { margin-top: 6px; }
}
@media (max-width: 1100px) {
  .topbar { padding: 0 26px; }
  .header-caption { display: none; }
  .intro { margin-left: 5%; }
  h1 { font-size: 64px; }
  .preview-tag { right: 7%; }
  .scoreboard { right: 18px; width: 158px; padding: 12px; }
  .combat-dock { column-gap: 14px; }
  .dock-controls { display: none; }
  .arena-heading { left: 22px; }
  .phase-banner, .spectator-note { left: 43%; }
  .minimap-panel { right: 18px; width: 145px; bottom: 157px; }
  .kill-feed { right: 177px; }
}
@media (max-width: 760px) {
  .app { min-height: 640px; }
  body { overflow-y: auto; }
  .topbar { height: 68px; padding: 0 18px; }
  .brand > span { font-size: 18px; letter-spacing: 3px; }
  .brand small { font-size: 7px; letter-spacing: 3px; }
  .brand-mark { width: 31px; }
  .header-actions { gap: 12px; }
  .header-actions .text-button { font-size: 10px; }
  .header-actions .text-button kbd, .connection { display: none; }
  .header-actions { gap: 9px; }
  .account-button { width: 42px; min-width: 42px; height: 42px; padding: 8px; justify-content: center; }
  .account-button-text { display: none; }
  #help-button { min-width: 30px; min-height: 40px; }
  #help-button > span { display: none; }
  #help-button kbd { display: inline-flex; }
  .home { pointer-events: auto; }
  .intro { margin: 28px 6% 24px; width: 88%; }
  .intro > .eyebrow { font-size: 7px; letter-spacing: 1px; }
  h1 { font-size: 60px; margin: 17px 0; }
  .intro-copy { font-size: 12px; margin-bottom: 16px; }
  .map-card { padding: 10px 8px; }
  .mode-button.button { padding: 12px 9px; gap: 7px; font-size: 11px; }
  .mode-button small { font-size: 9px; }
  .queue-seat { padding: 9px 7px; gap: 6px; }
  .queue-seat svg { width: 18px; height: 18px; }
  .queue-seat strong { font-size: 10px; }
  .queue-roster { max-height: 232px; }
  .vignette { background: linear-gradient(90deg, #111316ed, #111316c9 45%, #11131677), linear-gradient(0deg, #111316, transparent); }
  .preview-label, .preview-tag { display: none; }
  .site-footer { padding: 0 18px; height: 28px; font-size: 6px; letter-spacing: .7px; }
  .site-footer > span:last-child { display: none; }
  .lobby-grid { grid-template-columns: 1fr; gap: 10px; }
  .lobby-aside { display: none; }
  .panel { padding: 25px; }
  .panel h2 { font-size: 29px; }
  .modal-screen { padding: 16px; }
  .panel-footer { flex-wrap: wrap; }
  .panel-footer > .button { margin-left: auto; }
  .scoreboard { top: 19px; right: 12px; width: 128px; padding: 10px; max-height: 235px; }
  .scoreboard-key { display: none; }
  .score-row { font-size: 9px; gap: 6px; padding: 9px 0; }
  .arena-heading { top: 23px; left: 15px; }
  .arena-heading strong { font-size: 10px; }
  .arena-heading div > .fps-counter { min-width: 39px; padding-left: 5px; font-size: 9px; }
  .arena-heading > .eyebrow { font-size: 7px; }
  .arena-warning { top: 80px; left: 30%; font-size: 6px; letter-spacing: 1px; }
  .combat-dock { width: calc(100% - 24px); max-width: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: 82px 65px 54px; gap: 8px; height: 241px; padding: 11px; bottom: 12px; }
  .player-vitals { width: 100%; }
  .vitals-name { margin-bottom: 7px; }
  .vitals-name strong { max-width: none; }
  .spell { height: 65px; width: 100%; min-width: 0; padding: 10px 0 7px; }
  .spell-bar { width: 100%; height: 65px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .rune-slot-wrap { padding: 0; margin: 0; border: 0; min-width: 0; }
  .rune-state { font-size: 5px; letter-spacing: 0; right: 3px; top: 5px; }
  .spell > svg { height: 29px; width: 29px; }
  .spell-name { font-size: 7px; margin-top: 3px; }
  .phase-banner { left: 50%; top: 36%; }
  .phase-banner .banner-main { font-size: 36px; }
  .phase-banner .count-number { font-size: 80px; }
  .spectator-note { bottom: calc(var(--dock-height, 195px) + 24px); left: 50%; width: 80%; }
  .death-card { margin: -80px 0 0; max-width: 94%; padding: 22px 18px; }
  .death-card .eyebrow { font-size: 9px; letter-spacing: 2px; }
  .kill-feed { bottom: calc(var(--dock-height, 195px) + 125px); right: 17px; }
  .minimap-panel { width: 102px; right: 12px; bottom: calc(var(--dock-height, 195px) + 24px); padding: 4px; }
  .minimap-panel .text-button { font-size: 8px; gap: 3px; }
  .minimap-panel kbd { display: none; }
  .cast-hint { bottom: calc(var(--dock-height, 195px) + 30px); left: 36%; max-width: 61%; font-size: 9px; }
  #objective-note { max-width: 174px; font-size: 8px; }
  .settings-row { flex-wrap: wrap; }
  .keybinds { grid-template-columns: repeat(2, 1fr); }
  .learn-choices { gap: 8px; }
  .learn-card { padding: 12px; }
  .learn-heading { gap: 7px; flex-wrap: wrap; }
  .learn-heading h3 { font-size: 18px; }
  .learn-heading svg { width: 27px; height: 27px; }
  .learn-card p { font-size: 10px; min-height: 91px; }
  .boon-choices { gap: 8px; margin: 20px 0; }
  .boon-card { padding: 14px 9px 0; }
  .boon-card h3 { font-size: 17px; min-height: 40px; }
  .boon-card p { font-size: 9px; }
  .boon-card > svg { width: 32px; height: 32px; margin-bottom: 17px; }
  .boon-action { font-size: 9px; margin: 0 -9px; padding: 10px 9px; }
  .boon-card .eyebrow { font-size: 6px; letter-spacing: 1px; }
  .shop-panel { padding: 22px 16px; }
  .shop-panel > .muted { font-size: 11px; }
  .help-controls { grid-template-columns: 1fr; gap: 12px; }
  .rune-catalog { grid-template-columns: 1fr; }
  .help-panel { padding: 23px; }
  .reconnecting { white-space: normal; width: 90%; font-size: 11px; }
}
@media (max-width: 380px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand > span { font-size: 16px; letter-spacing: 2px; }
  .brand small { font-size: 6px; letter-spacing: 2px; }
  .brand-mark { width: 25px; }
  .header-actions { gap: 6px; }
  .account-button { width: 38px; min-width: 38px; }
  .map-card { grid-template-columns: 1fr; text-align: center; }
  .map-card small { grid-column: 1; }
  .mode-button svg { display: none; }
  .header-actions .text-button { font-size: 0; }
  .header-actions .text-button kbd { display: inline-flex; font-size: 11px; }
  .profile-name-row { flex-wrap: wrap; }
  .profile-name-row .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
