:root {
  color-scheme:dark;
  --ink:#111b20;
  --panel:rgba(13,22,27,.92);
  --panel-soft:rgba(13,22,27,.82);
  --border:#596054;
  --gold:#e4c48a;
  --gold-dim:#9c895f;
  --text:#ece8da;
  --muted:#a5b2a7;
  --green:#9cc789;
  --red:#d97e70;
  --purple:#b994df;
  --font:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace
}
* {
  box-sizing:border-box
}
html,body {
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#182923;
  color:var(--text);
  font:13px var(--font)
}
button,input {
  font:inherit
}
button {
  border:1px solid var(--border);
  color:var(--text);
  background:#24302f;
  cursor:pointer;
  transition:background .15s,border-color .15s,transform .1s
}
button:hover {
  background:#34433b;
  border-color:var(--gold-dim)
}
button:active {
  transform:translateY(1px)
}
button:disabled {
  opacity:.5;
  cursor:not-allowed
}
button:focus-visible,input:focus-visible {
  outline:2px solid var(--gold);
  outline-offset:3px
}
button.primary {
  background:var(--gold);
  color:#282d25;
  border:1px solid #f2d9a7;
  font-weight:bold;
  padding:15px 20px;
  box-shadow:inset 0 -3px #b19765;
  width:100%;
  letter-spacing:.02em
}
button.primary:hover {
  background:#f0d39e
}
input {
  border:1px solid #3c4c45;
  background:#0e1a1c;
  color:var(--text);
  padding:13px 12px;
  width:100%;
  border-radius:0
}
input::placeholder {
  color:#667b73
}
h1,h2,h3,p {
  margin-top:0
}
h2,h3 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:normal
}
h2 {
  font-size:26px
}
h3 {
  font-size:20px;
  color:var(--gold)
}
p {
  line-height:1.65
}
small {
  color:var(--muted)
}
img,canvas {
  image-rendering:pixelated
}
kbd {
  font:11px var(--font);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #697061;
  background:#172421;
  color:var(--gold);
  min-width:22px;
  height:22px;
  padding:0 4px
}
.hidden {
  display:none!important
}
.panel {
  background:var(--panel);
  border:1px solid var(--border);
  box-shadow:0 6px 25px #0008,inset 0 0 0 2px #cbb47b12,inset 0 -2px 0 #050b0c80;
  border-radius:3px
}
.eyebrow,.field-label {
  font-size:10px;
  letter-spacing:.15em;
  color:var(--gold);
  font-weight:bold
}
#world {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  outline:none
}
#vignette {
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow:inset 0 0 110px 15px #07151280
}
#topbar {
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 27px;
  background:#111b20f5;
  border-bottom:1px solid #51584a;
  z-index:20
}
.wordmark {
  display:flex;
  gap:11px;
  align-items:center;
  text-decoration:none;
  color:var(--gold);
  font:bold 18px Georgia,serif;
  letter-spacing:.12em
}
.wordmark img {
  width:34px;
  height:38px;
  object-fit:contain
}
.wordmark small {
  display:block;
  text-align:center;
  font:8px var(--font);
  letter-spacing:.4em;
  margin-top:4px
}
.realm-tag {
  display:flex;
  align-items:center;
  gap:9px;
  color:#8eaa98;
  font-size:9px;
  letter-spacing:.13em
}
.realm-tag i {
  width:5px;
  height:5px;
  background:var(--green);
  box-shadow:0 0 8px #abd28b
}
.top-tools {
  display:flex;
  gap:9px;
  align-items:center
}
.top-tools button {
  height:30px;
  min-width:30px
}
.top-tools span {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.05em;
  margin-right:7px
}
.top-tools span.bad {
  color:var(--red)
}
.auth-wrap {
  position:absolute;
  inset:68px 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9vw;
  background:linear-gradient(90deg,#10241ee6,#0c171d94 60%,#0c171dbf);
  z-index:10;
  padding:30px 6vw 70px
}
.auth-story {
  max-width:450px
}
.auth-story h1 {
  font:clamp(38px,4.6vw,68px)/1.07 Georgia,"Times New Roman",serif;
  letter-spacing:-.04em;
  margin:22px 0;
  color:#f0e8cf;
  text-shadow:0 4px 20px #0007
}
.auth-story p {
  font-size:14px;
  line-height:1.85;
  color:#b5c3b6
}
.story-rule {
  height:1px;
  width:75px;
  background:var(--gold-dim);
  margin:30px 0 22px
}
.story-features {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  align-items:center;
  font-size:8px;
  letter-spacing:.06em;
  color:#c8cfbc
}
.story-features b {
  color:var(--gold)
}
.auth-card {
  width:445px;
  flex-shrink:0;
  padding:27px 29px 23px
}
.auth-heading {
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:22px
}
.auth-heading img {
  height:46px;
  width:46px
}
.auth-heading h2 {
  margin:0 0 4px;
  color:var(--gold)
}
.auth-heading p {
  font-size:10px;
  color:var(--muted);
  margin:0
}
.tabs {
  display:flex;
  border-bottom:1px solid var(--border);
  margin-bottom:21px
}
.tabs button {
  flex:1;
  background:none;
  border:0;
  border-bottom:2px solid transparent;
  padding:12px 4px;
  color:var(--muted);
  font-size:10px
}
.tabs button.active {
  color:var(--gold);
  border-color:var(--gold)
}
#authForm label {
  display:block;
  font-size:9px;
  letter-spacing:.1em;
  color:var(--muted);
  margin:0 0 16px
}
#authForm label input {
  margin-top:8px;
  font-size:12px;
  letter-spacing:0
}
.field-label {
  margin-bottom:10px;
  color:var(--muted);
  font-weight:normal
}
#classCards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px
}
#classCards button {
  padding:11px 3px 9px;
  background:#162526;
  border-color:#40504a;
  position:relative
}
#classCards button.selected {
  background:#323d30;
  border-color:var(--gold);
  box-shadow:inset 0 -2px var(--gold-dim)
}
#classCards img {
  display:block;
  margin:auto auto 8px;
  width:46px;
  height:46px
}
#classCards strong {
  font-size:9px;
  font-weight:normal;
  display:block
}
#classCards small {
  font-size:7px;
  display:block;
  margin-top:5px;
  color:#97a897
}
#classDescription {
  color:var(--muted);
  font-size:10px;
  min-height:46px;
  line-height:1.5;
  margin:12px 0 8px
}
#authError {
  font-size:11px;
  color:#eda49a;
  line-height:1.4;
  margin:5px 0 11px
}
#authError:empty {
  display:none
}
.auth-note {
  font-size:9px;
  color:#8d9b90;
  text-align:center;
  line-height:1.6;
  margin:14px 0 0
}
.auth-footer {
  position:absolute;
  bottom:23px;
  left:29px;
  right:29px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:8px;
  letter-spacing:.14em;
  color:#a0afa1
}
#hud {
  position:absolute;
  inset:68px 0 0;
  pointer-events:none
}
#hud button,#hud input,#hud section,#actionDock,#utilityDock {
  pointer-events:auto
}
#playerFrame {
  position:absolute;
  top:22px;
  left:23px;
  width:300px;
  padding:11px;
  display:flex;
  gap:11px;
  border-color:#8b7b58;
  box-shadow:0 7px 25px #0009,inset 0 0 0 2px #d7bd7620
}
.portrait {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  flex-shrink:0;
  background:#22352b;
  border:2px solid #8f805f;
  border-radius:50%;
  overflow:visible;
  box-shadow:0 0 0 2px #10191b,0 3px 10px #0009
}
.portrait img {
  width:49px;
  height:49px;
  border-radius:50%
}
.portrait b {
  position:absolute;
  bottom:-5px;
  left:-5px;
  width:22px;
  height:22px;
  display:grid;
  place-content:center;
  background:#152420;
  border:1px solid var(--gold);
  color:var(--gold);
  font-size:11px
}
.player-bars {
  flex:1;
  min-width:0
}
.frame-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:1px 0 8px;
  gap:4px
}
.frame-title strong {
  font-size:11px;
  max-width:130px;
  overflow:hidden;
  text-overflow:ellipsis
}
#combatState {
  display:block;
  height:10px;
  margin-top:5px;
  color:#6f8e7b;
  font-size:7px;
  letter-spacing:.13em;
  text-align:right
}
#combatState.active {
  color:#f19a7d;
  text-shadow:0 0 8px #e33b25
}
.frame-title small {
  font-size:8px
}
.bar {
  height:15px;
  position:relative;
  background:#0b1619;
  border:1px solid #334840;
  overflow:hidden
}
.bar+.bar {
  margin-top:4px
}
.bar i {
  display:block;
  height:100%;
  width:100%;
  transition:width .25s linear
}
.bar span {
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  color:#f0efe6;
  font-size:9px;
  text-shadow:1px 1px #000
}
.health i {
  background:#64935f;
  box-shadow:inset 0 2px #89b17b
}
.mana {
  height:11px
}
.mana i {
  background:#537e9c;
  box-shadow:inset 0 2px #74a0b9
}
.mana span {
  font-size:7px
}
.enemy i {
  background:#a75a58;
  box-shadow:inset 0 2px #c57e6a
}
#zoneTitle {
  position:absolute;
  left:50%;
  top:21px;
  transform:translateX(-50%);
  text-align:center;
  text-shadow:0 2px 4px #000,0 0 12px #000
}
#regionName {
  font:27px Georgia,serif;
  color:#f0e4bd
}
#zoneSubtitle {
  display:block;
  font-size:8px;
  letter-spacing:.17em;
  margin-top:6px;
  color:#d0d2be
}
#targetFrame {
  position:absolute;
  top:22px;
  left:337px;
  transform:none;
  width:264px;
  padding:11px 14px;
  border-color:#7f554e;
  box-shadow:0 7px 25px #0009,inset 0 0 0 2px #b9564615
}
#targetFrame>div:first-child {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px
}
#targetFrame strong {
  font-size:11px;
  color:#efbe9f
}
#targetFrame small {
  font-size:9px
}
#targetHint {
  display:block;
  text-align:center;
  margin-top:7px;
  font-size:8px!important;
  color:#bcbfad
}
#miniWrap {
  position:absolute;
  right:23px;
  top:22px;
  width:200px;
  padding:10px 11px 9px;
  border-color:#80724f
}
.mini-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:9px;
  color:var(--gold);
  letter-spacing:.04em;
  margin-bottom:7px
}
.mini-title button {
  font-size:10px;
  width:23px;
  height:23px
}
#minimap {
  width:176px;
  height:176px;
  background:#163232;
  border:3px solid #151c1c;
  outline:1px solid #887a55;
  border-radius:50%;
  box-shadow:inset 0 0 18px #000,0 3px 14px #0008
}
.mini-footer {
  display:flex;
  justify-content:space-between;
  font-size:8px;
  margin-top:6px;
  color:var(--muted)
}
#questTracker {
  position:absolute;
  right:24px;
  top:270px;
  width:232px;
  text-shadow:0 1px 2px #000,1px 1px 4px #000,0 0 8px #000;
  background:rgba(10,18,21,.82);
  border:1px solid rgba(151,133,86,.58);
  border-left:3px solid #aa925e;
  box-shadow:0 7px 25px #0008,inset 0 0 0 2px #d4bc7920;
  backdrop-filter:blur(4px);
  padding:11px 12px 12px;
  border-radius:2px
}
.tracker-heading {
  color:var(--gold);
  font-size:10px;
  letter-spacing:.1em;
  border-bottom:1px solid #9f93644d;
  padding-bottom:8px;
  display:flex;
  justify-content:space-between
}
.tracker-heading button {
  font-size:9px;
  padding:0;
  width:20px;
  height:18px
}
.tracked {
  margin-top:13px
}
.tracked strong {
  font-size:11px;
  color:#f1deb0;
  line-height:1.4;
  display:block
}
.tracked p {
  font-size:10px;
  line-height:1.8;
  margin:5px 0;
  color:#edf0df;
  text-shadow:0 1px 2px #000,0 0 5px #000
}
.tracked .done {
  color:#b6e69a
}
.tracked .quest-progress {
  height:2px;
  background:#29432e;
  margin:5px 0
}
.quest-progress i {
  display:block;
  height:100%;
  background:var(--gold)
}
.quest-starter {
  font-size:11px;
  line-height:1.6;
  color:#e8ddbc;
  margin-top:14px
}
.quest-starter span {
  color:var(--gold)
}
#partyFrames {
  position:absolute;
  left:24px;
  top:119px;
  width:205px
}
.party-member {
  background:var(--panel-soft);
  border:1px solid #485a48;
  margin-bottom:6px;
  padding:8px
}
.party-member>div {
  display:flex;
  justify-content:space-between;
  font-size:9px;
  margin-bottom:5px
}
.party-member .bar {
  height:7px
}
.party-member small {
  font-size:8px
}
.party-member.offline {
  opacity:.45
}
#chat {
  position:absolute;
  bottom:24px;
  left:23px;
  width:285px;
  background:rgba(14,27,29,.88)
}
.chat-tabs {
  display:flex;
  align-items:center;
  border-bottom:1px solid #405044
}
.chat-tabs button {
  border:0;
  background:none;
  font-size:9px;
  padding:9px;
  color:#81978a
}
.chat-tabs button.active {
  color:var(--gold)
}
.chat-tabs button b {
  display:inline-flex;
  min-width:14px;
  height:14px;
  margin-left:2px;
  padding:0 3px;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:#9a654d;
  color:#fff3da;
  font-size:7px;
  font-weight:normal
}
.chat-tabs span {
  margin-left:auto;
  padding-right:9px;
  font-size:8px;
  color:#829487
}
#chatLines {
  height:118px;
  padding:9px 10px;
  font-size:10px;
  line-height:1.65;
  overflow-y:auto;
  scrollbar-width:thin;
  overflow-wrap:anywhere;
  color:#cbd7c5
}
#chatLines b {
  color:#d8bf87;
  font-weight:normal
}
.chat-system {
  color:#8fb898
}
.chat-event {
  display:grid;
  grid-template-columns:34px 1fr;
  gap:5px;
  color:#b9cbbd;
  border-bottom:1px solid #31403980;
  padding:2px 0
}
.chat-event time {
  color:#71847a;
  font-size:8px
}
.chat-event.error {
  color:#efad9f
}
.chat-event.loot {
  color:#cdb9ee
}
.chat-event.heal {
  color:#acd993
}
.chat-event.level {
  color:#f0ce79
}
.chat-event.xp {
  color:#b9cfaa
}
#chatForm {
  display:flex;
  align-items:center;
  border-top:1px solid #35473c;
  padding-left:8px
}
#chatChannel {
  font-size:9px;
  color:#829c85
}
#chatInput {
  border:0;
  background:none;
  font-size:10px;
  padding:10px 7px;
  min-width:0
}
#chatForm button {
  border:0;
  background:none;
  width:29px;
  height:31px;
  color:var(--gold)
}
#actionDock {
  position:absolute;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  width:390px
}
#actionLabel {
  font-size:8px;
  text-align:center;
  color:#ebe6c9;
  letter-spacing:.1em;
  text-shadow:1px 1px 3px #000;
  margin-bottom:7px
}
#actionBar {
  padding:8px;
  display:flex;
  gap:5px;
  background:rgba(10,18,22,.96);
  border-color:#8b7b58;
  border-radius:6px;
  box-shadow:0 8px 26px #000a,inset 0 0 0 2px #d8c17e1f
}
.ability {
  width:57px;
  height:57px;
  position:relative;
  border:1px solid #6c715c;
  background:#202d2a;
  padding:4px;
  overflow:hidden;
  border-radius:4px;
  box-shadow:inset 0 0 0 1px #0d1415,0 2px 5px #0008
}
.ability img {
  width:43px;
  height:43px;
  display:block
}
.ability kbd {
  position:absolute;
  top:1px;
  left:1px;
  height:16px;
  min-width:15px;
  font-size:9px;
  border:0;
  background:#0e1c21e8;
  color:#e7ddbd
}
.ability.active {
  border-color:#f2d38c;
  box-shadow:inset 0 0 0 1px #f2d38c,0 0 10px #d8c07150
}
.impact {
  animation:unitImpact .32s ease-out
}
@keyframes unitImpact {
  0% {filter:brightness(1.85);transform:translateX(-2px)}
  35% {filter:brightness(.85);transform:translateX(3px)}
  100% {filter:brightness(1);transform:translateX(0)}
}
#targetFrame.impact {
  animation:targetImpact .3s ease-out
}
@keyframes targetImpact {
  0% {filter:brightness(1.8);transform:translateX(2px)}
  45% {transform:translateX(-3px)}
  100% {filter:brightness(1);transform:translateX(0)}
}
.ability .cooldown-shade {
  position:absolute;
  inset:0;
  background:#0a151cd6;
  display:grid;
  place-content:center;
  color:#f0ebd8;
  font-size:17px;
  pointer-events:none
}
.ability .count {
  position:absolute;
  bottom:2px;
  right:3px;
  font-size:10px;
  color:#fff1ca;
  text-shadow:1px 1px #000
}
.xp-line {
  height:5px;
  border:1px solid #52604a;
  border-top:0;
  background:#101c21
}
.xp-line i {
  display:block;
  background:#a992c9;
  height:100%;
  transition:width .3s
}
.dock-footer {
  display:flex;
  justify-content:space-between;
  font-size:8px;
  color:#dfdcc6;
  text-shadow:1px 1px 2px #000;
  margin-top:6px
}
#goldText {
  color:var(--gold)
}
#utilityDock {
  position:absolute;
  bottom:28px;
  right:24px;
  display:flex;
  gap:7px;
  align-items:center
}
#utilityDock button {
  height:52px;
  width:52px;
  position:relative;
  background:var(--panel)
}
#utilityDock img {
  width:39px;
  height:39px
}
#utilityDock kbd {
  position:absolute;
  bottom:-3px;
  right:-3px;
  height:17px;
  min-width:16px;
  font-size:9px
}
#soundButton {
  font-size:21px;
  width:34px!important;
  height:34px!important
}
#soundButton.muted {
  color:#627a6b
}
#interactHint {
  position:absolute;
  bottom:148px;
  left:50%;
  transform:translateX(-50%);
  padding:8px 12px;
  background:#152522e8;
  border:1px solid #657659;
  display:flex;
  align-items:center;
  gap:10px;
  color:#ede4c9;
  font-size:11px;
  white-space:nowrap
}
#tooltip {
  position:fixed;
  z-index:80;
  pointer-events:none;
  width:220px;
  padding:12px;
  background:#0e1c22fa;
  border:1px solid var(--gold-dim);
  font-size:10px;
  line-height:1.65;
  box-shadow:0 5px 20px #0008
}
#tooltip strong {
  display:block;
  color:var(--gold);
  font-size:12px;
  margin-bottom:4px
}
#tooltip small {
  display:block;
  color:#bdc7b7
}
#deathOverlay {
  position:absolute;
  inset:0;
  background:#151726a8;
  display:grid;
  place-content:center;
  pointer-events:auto;
  z-index:35
}
#deathOverlay>div {
  width:380px;
  text-align:center;
  padding:32px
}
#deathOverlay img {
  height:72px;
  width:72px
}
#deathOverlay h2 {
  color:#cfc1e9;
  margin:20px 0 14px;
  font-size:25px
}
#deathOverlay p {
  font-size:11px;
  color:var(--muted)
}
#modalBackdrop {
  position:absolute;
  inset:68px 0 0;
  background:#0612108c;
  z-index:40;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:25px
}
#modal {
  width:min(700px,95vw);
  max-height:calc(100vh - 120px);
  display:flex;
  flex-direction:column
}
#modal>header {
  padding:22px 25px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--border)
}
#modalEyebrow {
  color:var(--gold-dim);
  font-size:9px;
  letter-spacing:.14em
}
#modalTitle {
  color:var(--gold);
  margin:6px 0 0
}
#closeModal {
  width:31px;
  height:31px;
  font-size:21px
}
#modalBody {
  padding:23px 25px;
  overflow-y:auto;
  scrollbar-width:thin
}
.modal-intro {
  font-size:11px;
  color:var(--muted);
  line-height:1.7
}
.section-label {
  font-size:10px;
  letter-spacing:.13em;
  color:#c0cfb5;
  margin:20px 0 10px
}
.item-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border:1px solid #3b4f44;
  background:#1d2d2980;
  margin-bottom:8px
}
.item-row img {
  width:42px;
  height:42px;
  flex-shrink:0
}
.item-copy {
  flex:1;
  min-width:0
}
.item-copy strong {
  font-size:11px;
  font-weight:normal;
  display:block
}
.item-copy small {
  font-size:9px;
  display:block;
  margin-top:5px;
  line-height:1.5
}
.item-row button {
  font-size:10px;
  min-width:65px;
  padding:8px
}
.item-row .row-actions {
  display:flex;
  gap:5px
}
.rarity-common {
  color:#dbdfd1
}
.rarity-uncommon {
  color:#add38c
}
.rarity-rare {
  color:#86bbe9
}
.rarity-epic {
  color:#c3a0ed
}
.quest-card {
  border:1px solid #465544;
  padding:16px;
  margin-bottom:12px;
  background:#1c2a2670
}
.quest-card h3 {
  margin:0 0 7px;
  font-size:20px
}
.quest-card p {
  font-size:11px;
  color:#bdc9b8;
  margin:8px 0 12px
}
.quest-card .objectives {
  font-size:11px;
  line-height:1.9;
  color:#dde1bd;
  margin:12px 0
}
.quest-card .quest-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px
}
.quest-card .quest-bottom small {
  font-size:9px;
  line-height:1.65;
  color:#c6b790
}
.quest-card button {
  padding:9px 12px;
  font-size:10px
}
.quest-card.locked {
  opacity:.57
}
.quest-card.completed h3 {
  color:#9ac18c
}
.quest-status {
  font-size:9px;
  color:#a4c98c
}
.party-code {
  font-size:32px;
  letter-spacing:.16em;
  color:var(--gold);
  padding:20px;
  text-align:center;
  border:1px dashed #757458;
  margin:20px 0
}
.party-join {
  display:flex;
  gap:8px;
  margin-top:18px
}
.party-join input {
  width:auto;
  flex:1
}
.party-join button {
  padding:10px 17px
}
.help-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:20px
}
.help-grid div {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  color:#c4d2bb
}
.world-map {
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  border:1px solid #55684e;
  background:#11272a
}
.map-legend {
  display:flex;
  flex-wrap:wrap;
  gap:17px;
  margin-top:13px;
  font-size:10px;
  color:#bcccb4
}
.map-legend span::before {
  content:'■';
  color:var(--gold);
  margin-right:7px
}
.note-box {
  font-size:11px;
  line-height:1.7;
  padding:14px;
  border-left:2px solid var(--gold);
  background:#293328;
  color:#d1d7c0;
  margin:15px 0
}
#mobileControls {
  display:none
}
#mobileControls button {
  touch-action:none;
  user-select:none
}
#dpad {
  width:132px;
  display:grid;
  grid-template-columns:repeat(3,44px);
  grid-template-rows:repeat(2,40px)
}
#dpad button[data-key=w] {
  grid-column:2
}
#dpad button[data-key=a] {
  grid-column:1
}
#mobileInteract {
  width:48px;
  height:48px;
  margin-left:15px;
  font-size:19px
}
@media(max-width:1150px) {
  .auth-wrap {
    gap:5vw
  }
  .auth-story {
    max-width:330px
  }
  .realm-tag {
    display:none
  }
  #chat {
    width:240px
  }
  #actionDock {
    width:365px
  }
  .ability {
    width:53px;
    height:53px
  }
  .ability img {
    width:39px;
    height:39px
  }
  #questTracker {
    width:190px
  }
  #playerFrame {
    width:264px
  }
  #targetFrame {
    left:303px;
    width:238px
  }
  #miniWrap {
    width:178px
  }
  #minimap {
    width:154px;
    height:154px
  }
  #questTracker {
    top:245px;
    width:202px
  }
  #utilityDock button {
    width:43px;
    height:43px
  }
  #utilityDock img {
    width:33px;
    height:33px
  }
}
@media(max-width:880px) {
  .auth-story {
    display:none
  }
  .auth-wrap {
    padding:20px;
    overflow-y:auto
  }
  .auth-card {
    width:430px;
    max-width:95vw
  }
  .auth-footer {
    display:none
  }
  #topbar {
    padding:0 14px;
    height:57px
  }
  .wordmark {
    font-size:15px
  }
  #hud {
    top:57px
  }
  #auth {
    top:57px
  }
  #modalBackdrop {
    top:57px
  }
  #chat {
    bottom:146px;
    left:12px;
    width:213px
  }
  #chatHint {
    display:none
  }
  #chatLines {
    height:78px
  }
  #miniWrap {
    right:12px;
    top:15px;
    width:146px
  }
  #minimap {
    width:122px;
    height:122px
  }
  .mini-title {
    font-size:7px
  }
  #questTracker {
    right:10px;
    top:190px;
    width:175px
  }
  #playerFrame {
    left:12px;
    top:15px;
    width:230px;
    padding:8px
  }
  .frame-title small {
    display:none
  }
  .portrait {
    width:44px
  }
  #zoneTitle {
    top:105px
  }
  #regionName {
    font-size:22px
  }
  #targetFrame {
    top:103px;
    left:12px;
    transform:none;
    width:230px
  }
  #partyFrames {
    left:12px;
    top:188px;
    width:170px
  }
  #actionDock {
    bottom:18px;
    width:365px
  }
  #utilityDock {
    bottom:21px;
    right:12px;
    flex-direction:column
  }
  #actionLabel {
    font-size:7px
  }
  #interactHint {
    bottom:124px
  }
  .help-grid {
    grid-template-columns:1fr
  }
  #modalBody {
    padding:18px
  }
}
@media(pointer:coarse) {
  #mobileControls {
    display:flex;
    position:absolute;
    bottom:28px;
    left:15px;
    align-items:center;
    pointer-events:auto
  }
  #chat {
    display:none
  }
  #actionDock {
    bottom:20px;
    left:55%;
    width:340px
  }
  .ability {
    width:49px;
    height:49px
  }
  .ability img {
    width:35px;
    height:35px
  }
}
@media(max-height:760px) {
  .auth-card {
    padding:20px 24px
  }
  .auth-heading {
    margin-bottom:12px
  }
  .auth-heading h2 {
    font-size:23px
  }
  .tabs {
    margin-bottom:15px
  }
  #authForm label {
    margin-bottom:12px
  }
  #classCards img {
    height:35px;
    width:35px
  }
  #classCards button {
    padding:7px 3px
  }
  #classDescription {
    min-height:39px;
    margin:10px 0 6px
  }
  .auth-note {
    font-size:8px
  }
  .auth-wrap {
    padding-bottom:30px
  }
  .auth-footer {
    bottom:12px
  }
  .auth-story h1 {
    font-size:53px
  }
  #questTracker .tracked:nth-child(n+4) {
    display:none
  }
}

/* v1.1: the spirit HUD must not intercept movement or cover the whole world. */
body.spirit #world { filter: saturate(.4) brightness(.85); }
body.spirit #vignette { box-shadow: inset 0 0 180px 30px #24415699; }
#deathOverlay { inset:auto; left:50%; bottom:154px; transform:translateX(-50%); width:min(440px,94vw); background:none; display:block; pointer-events:none; z-index:30; }
#deathOverlay>.spirit-card { width:100%; padding:15px 18px; display:flex; gap:13px; align-items:center; text-align:left; border-color:#76b7ca88; box-shadow:0 8px 40px #030d1599; }
#deathOverlay img { width:46px; height:60px; image-rendering:pixelated; flex:0 0 auto; }
#deathOverlay h2 { font-size:21px; margin:0 0 5px; color:#caeef6; }
#deathOverlay strong { font-size:9px; letter-spacing:.03em; color:#a2deed; }
#deathOverlay p { line-height:1.5; margin:6px 0 10px; font-size:11px; }
#deathOverlay button { pointer-events:auto; padding:9px 14px; font-size:11px; }
#deathOverlay button:disabled { opacity:.55; cursor:default; }
#actionBar .ability:disabled { filter:grayscale(1); opacity:.4; cursor:default; }
@media(max-width:760px) {
  #deathOverlay { bottom:144px; width:min(360px,92vw); }
  #deathOverlay>.spirit-card { padding:10px 12px; gap:9px; }
  #deathOverlay h2 { font-size:17px; }
  #deathOverlay p { font-size:10px; }
  #deathOverlay img { width:32px; height:44px; }
}

/* Frontier journal and routes; keep the HUD bounded on small screens. */
.quest-contact{font-size:12px;color:#b9d9d7!important;line-height:1.6}
.quest-history{margin-top:18px}.quest-history summary{cursor:pointer;color:#d7c391;padding:12px 0}
.route-row{font-size:13px;line-height:1.7;color:#cec5ab;margin:8px 0}
.rarity-legendary{color:#efb75f!important}
#trackedQuests{max-height:min(44vh,440px);overflow-y:auto;scrollbar-width:thin}
@media(max-width:700px){#trackedQuests{max-height:25vh}}
