/* src/client/style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: #0a0a0f;
  font-family: Share Tech Mono, monospace;
}

#canvas {
  position: fixed;
  z-index: 0;
  display: block;
  touch-action: none;
  outline: none;
  user-select: none;
  background: #0a0a0f;
  width: 100vw;
  height: 100vh;
  inset: 0;
}

#canvas:focus, body:focus {
  outline: none;
}

#canvas:focus-visible {
  outline: none;
}

body:focus-visible {
  outline: none;
}

#yas-hud, #yas-party, #yas-cast-bar, #yas-status, #yas-session-id, #yas-raid-select, #settings-panel, #home-btn, #settings-btn, #info-btn, #info-panel, #yas-menu, #yas-raid-modal {
  zoom: var(--ui-scale, 1);
}

#home-btn {
  display: none;
  position: fixed;
  z-index: 10;
  color: #c3cde1b3;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: #060712e0;
  border: 1px solid #6473af40;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  transition: border-color .12s, color .12s, box-shadow .12s;
  font-size: 16px;
  line-height: 1;
  top: 12px;
  right: 92px;
}

#home-btn:hover {
  color: #d4a843e6;
  border-color: #a08c4b80;
  box-shadow: inset 0 0 12px #a08c4b14;
}

#settings-btn {
  position: fixed;
  z-index: 210;
  color: #c3cde1b3;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: #060712e0;
  border: 1px solid #6473af40;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  transition: border-color .12s, color .12s, box-shadow .12s;
  font-size: 16px;
  line-height: 1;
  top: 12px;
  right: 12px;
}

#settings-btn:before, #settings-btn:after {
  content: "";
  position: absolute;
  border-style: solid;
  border-color: #917d464d;
  width: 5px;
  height: 5px;
}

#settings-btn:before {
  border-width: 1px 0 0 1px;
  top: 2px;
  left: 2px;
}

#settings-btn:after {
  border-width: 0 1px 1px 0;
  bottom: 2px;
  right: 2px;
}

#settings-btn:hover {
  color: #d4a843e6;
  border-color: #a08c4b80;
  box-shadow: inset 0 0 12px #a08c4b14;
}

#info-btn {
  position: fixed;
  z-index: 210;
  display: flex;
  color: #c3cde1b3;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: #060712e0;
  border: 1px solid #6473af40;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 34px;
  height: 34px;
  transition: border-color .12s, color .12s, box-shadow .12s;
  font-family: Share Tech Mono, monospace;
  font-size: 16px;
  line-height: 1;
  top: 12px;
  right: 52px;
}

#info-btn:hover {
  color: #d4a843e6;
  border-color: #a08c4b80;
  box-shadow: inset 0 0 12px #a08c4b14;
}

#settings-panel {
  display: none;
  position: fixed;
  z-index: 220;
  color: #d7dcf0e0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: #060712f5;
  border: 1px solid #6473af40;
  border-radius: 5px;
  min-width: 320px;
  padding: 24px 28px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#info-panel {
  display: none;
  position: fixed;
  z-index: 220;
  color: #d7dcf0e0;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: #060712f5;
  border: 1px solid #6473af40;
  border-radius: 5px;
  min-width: 320px;
  padding: 24px 28px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.info-title {
  letter-spacing: 4px;
  color: #d4a843e6;
  margin-bottom: 10px;
  font-size: 13px;
}

.info-tagline {
  letter-spacing: 1px;
  color: #afb9d799;
  margin-bottom: 18px;
  font-size: 10px;
}

.info-version {
  letter-spacing: 2px;
  color: #afb9d773;
  margin-bottom: 14px;
  font-size: 9px;
}

.info-version span {
  color: #d4a843d9;
}

.info-link {
  display: inline-block;
  letter-spacing: 1px;
  color: #c3cde1b3;
  text-decoration: none;
  border-bottom: 1px solid #6473af4d;
  margin-bottom: 22px;
  padding-bottom: 2px;
  transition: color .12s, border-color .12s;
  font-size: 10px;
}

.info-link:hover {
  color: #d4a843e6;
  border-bottom-color: #a08c4b80;
}

#settings-panel h2 {
  letter-spacing: 3px;
  color: #c3cde180;
  border-bottom: 1px solid #6473af26;
  margin-bottom: 22px;
  padding-bottom: 10px;
  font-size: 11px;
}

.settings-field {
  margin-bottom: 18px;
}

.settings-group-header {
  letter-spacing: 2px;
  color: #d4a843cc;
  border-bottom: 1px solid #6473af26;
  margin: 4px 0 12px;
  padding-bottom: 6px;
  font-size: 9px;
}

.settings-label {
  letter-spacing: 1px;
  color: #afb9d78c;
  margin-bottom: 8px;
  font-size: 10px;
}

.settings-value {
  color: #d4a843e6;
}

#sensitivity-slider, #ctrl-sens-slider, #cam-accel-strength {
  accent-color: #d4a843d9;
  cursor: pointer;
  width: 100%;
}

.settings-radio-group {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.settings-radio-option {
  display: flex;
  cursor: pointer;
  letter-spacing: .5px;
  color: #c3cde1a6;
  user-select: none;
  background: #0a0c1ccc;
  border: 1px solid #555f9138;
  border-radius: 3px;
  align-items:  center;
  gap: 6px;
  padding: 6px 12px;
  transition: border-color .1s, color .1s;
  font-size: 10px;
}

.settings-radio-option:has(input:checked) {
  color: #d4a843e6;
  border-color: #d4a8438c;
}

.settings-radio-option input[type="radio"] {
  accent-color: #d4a843d9;
}

.settings-check {
  display: flex;
  letter-spacing: 1px;
  color: #afb9d78c;
  cursor: pointer;
  user-select: none;
  align-items:  center;
  gap: 6px;
  font-size: 10px;
}

.settings-check input[type="checkbox"] {
  accent-color: #d4a843d9;
  cursor: pointer;
}

.settings-footer {
  display: flex;
  border-top: 1px solid #6473af1f;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 14px;
}

#settings-close, #info-close {
  color: #afb9d7a6;
  cursor: pointer;
  letter-spacing: 1px;
  background: #0a0c1ce6;
  border: 1px solid #555f9140;
  border-radius: 3px;
  padding: 6px 18px;
  transition: border-color .1s, color .1s;
  font-family: Share Tech Mono, monospace;
  font-size: 10px;
}

#settings-close:hover, #info-close:hover {
  color: #d4a843d9;
  border-color: #a08c4b73;
}

.settings-tabs {
  display: flex;
  border-bottom: 1px solid #6473af26;
  gap: 2px;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.settings-tab {
  color: #afb9d773;
  letter-spacing: 2px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 6px 14px 8px;
  transition: color .1s, border-color .1s;
  font-family: Share Tech Mono, monospace;
  font-size: 10px;
}

.settings-tab:hover {
  color: #c3cde1bf;
}

.settings-tab.active {
  color: #d4a843e6;
  border-bottom-color: #d4a843a6;
}

.keybind-header, .keybind-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) 76px 96px;
  align-items:  center;
  column-gap: 12px;
}

.keybind-header {
  border-bottom: 1px solid #6473af1f;
  padding: 0 0 6px;
}

.keybind-header span {
  letter-spacing: 1px;
  color: #afb9d76b;
  text-align: center;
  font-size: 9px;
}

.keybind-header span:first-child {
  text-align: left;
}

.keybind-row {
  border-bottom: 1px solid #6473af14;
  padding: 6px 0;
}

.keybind-row:nth-last-child(2) {
  border-bottom: none;
}

.keybind-label {
  letter-spacing: 1px;
  color: #afb9d78c;
  font-size: 10px;
}

.keybind-btn {
  color: #d4dcf5d9;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  background: #0a0c1ce6;
  border: 1px solid #555f914d;
  border-radius: 3px;
  justify-self: stretch;
  min-width: 60px;
  padding: 4px 14px;
  transition: border-color .1s, color .1s, box-shadow .1s;
  font-family: Share Tech Mono, monospace;
  font-size: 10px;
}

.keybind-controller {
  display: inline-flex;
  color: #afb9d79e;
  letter-spacing: 1px;
  text-align: center;
  box-sizing: border-box;
  background: #ffffff09;
  border: 1px solid #555f912e;
  border-radius: 3px;
  justify-content: center;
  align-items:  center;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 10px;
}

.keybind-btn:hover {
  color: #d4a843d9;
  border-color: #a08c4b73;
}

@keyframes keybind-pulse {
  0%, 100% {
    border-color: #d4a84380;
    box-shadow: 0 0 6px #d4a84333;
  }

  50% {
    border-color: #d4a843e6;
    box-shadow: 0 0 12px #d4a84373;
  }
}

.keybind-listening {
  animation: keybind-pulse .7s ease infinite;
  color: #d4a843e6 !important;
}

#reset-keybinds {
  color: #afb9d7a6;
  cursor: pointer;
  letter-spacing: 1px;
  background: #0a0c1ce6;
  border: 1px solid #555f9140;
  border-radius: 3px;
  width: 100%;
  margin-top: 14px;
  padding: 6px 12px;
  transition: border-color .1s, color .1s;
  font-family: Share Tech Mono, monospace;
  font-size: 10px;
}

#reset-keybinds:hover {
  color: #d4a843d9;
  border-color: #a08c4b73;
}

.controller-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.controller-badge {
  display: inline-block;
  letter-spacing: 2px;
  border-radius: 3px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: bold;
}

.controller-badge--xbox {
  color: #d4a843e6;
  background: #d4a8432e;
  border: 1px solid #d4a84359;
}

.controller-badge--ps5 {
  color: #64b4ffe6;
  background: #0070d12e;
  border: 1px solid #0070d159;
}

.controller-badge--nintendo {
  color: #ff7878e6;
  background: #c828282e;
  border: 1px solid #c8282859;
}

.controller-badge--unknown {
  color: #b4b4c8e6;
  background: #78788c2e;
  border: 1px solid #78788c59;
}

.controller-badge--none {
  color: #8c8ca0b3;
  background: #3c3c5026;
  border: 1px solid #5050644d;
}

.controller-name {
  color: #b4b4c880;
  letter-spacing: .5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
  font-size: 9px;
}

.controller-select {
  color: #d4a843e6;
  letter-spacing: .5px;
  background: #0a0c1ce6;
  border: 1px solid #555f914d;
  border-radius: 3px;
  width: 280px;
  padding: 6px 8px;
  font-family: Share Tech Mono, monospace;
  font-size: 10px;
}

#yas-party, #yas-hud, #yas-status, #yas-session-id, #yas-menu, #yas-raid-select, #yas-raid-modal, #settings-panel, #info-panel, #yas-cast-bar {
  user-select: none;
}

#yas-party {
  position: fixed;
  display: flex;
  z-index: 100;
  flex-direction: column;
  gap: 4px;
  top: 12px;
  left: 38px;
}

.party-member {
  position: relative;
  background: #000010b8;
  border: 1px solid #b4a05a59;
  width: 160px;
  padding: 4px 6px;
  font-family: monospace;
}

.party-member.yas-dead {
  opacity: .45;
}

.party-cam-btn {
  position: absolute;
  text-align: center;
  color: #c8b87a;
  cursor: pointer;
  background: #ffffff0f;
  border: 1px solid #b4a05a66;
  border-radius: 2px;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 12px;
  line-height: 22px;
  top: 50%;
  left: -28px;
  transform: translateY(-50%);
}

.party-cam-btn:hover {
  background: #ffffff2e;
}

.party-cam-btn:disabled {
  opacity: .3;
  cursor: default;
  background: #ffffff0f;
}

.party-cam-btn.party-cam-active {
  background: #c8b87a59;
  border-color: #c8b87a;
  box-shadow: 0 0 4px #c8b87a99;
}

.party-name {
  display: block;
  color: #c8b87a;
  letter-spacing: .05em;
  margin-bottom: 3px;
  font-size: 10px;
}

.party-hp-track, .party-mp-track {
  position: relative;
  background: #ffffff14;
  height: 6px;
  margin-bottom: 2px;
}

.party-hp-fill {
  position: absolute;
  background: #35d05c;
  transition: width .1s linear;
  top: 0;
  bottom: 0;
  left: 0;
}

.party-mp-fill {
  position: absolute;
  background: #3a9ff5;
  transition: width .1s linear;
  top: 0;
  bottom: 0;
  left: 0;
}

.party-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 0;
  padding: 2px 0 0;
}

.party-effect {
  letter-spacing: .03em;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
}

.party-effect-icon {
  display: inline-block;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1;
}

img.party-effect-icon {
  object-fit: contain;
  width: 14px;
  height: 14px;
}

.party-effect-timer {
  opacity: .72;
  margin-left: 4px;
  font-size: 9px;
}

.party-effect-buff {
  color: #4de87a;
  background: #1eb43c40;
  border: 1px solid #3cdc5066;
}

.party-effect-debuff {
  color: #f06060;
  background: #c81e1e40;
  border: 1px solid #dc3c3c66;
}

#yas-cast-bar {
  position: fixed;
  display: flex;
  z-index: 100;
  pointer-events: none;
  flex-direction: column;
  align-items:  center;
  gap: 4px;
  width: 320px;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.yas-cast-name {
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px #000c;
  font-size: 13px;
  font-weight: 700;
}

.yas-cast-track {
  position: relative;
  overflow: hidden;
  background: #0009;
  border: 1px solid #ffffff26;
  border-radius: 4px;
  width: 100%;
  height: 14px;
}

.yas-cast-fill {
  position: absolute;
  background: linear-gradient(90deg, #e07800, #df3333);
  border-radius: 4px;
  width: 0%;
  transition: width 50ms linear;
  top: 0;
  bottom: 0;
  left: 0;
}

.yas-cast-timer {
  color: #fffc;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

#yas-hud {
  position: fixed;
  display: flex;
  z-index: 50;
  pointer-events: none;
  flex-direction: column;
  align-items:  center;
  gap: 4px;
  padding-bottom: 14px;
  font-family: Share Tech Mono, monospace;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.yas-resource-cluster {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.yas-resource-panel {
  display: flex;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: #060712e0;
  border: 1px solid #6473af33;
  border-radius: 5px;
  flex-direction: column;
  gap: 5px;
  padding: 8px 14px;
}

.yas-bar-row {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.yas-invuln-btn {
  pointer-events: all;
  text-align: center;
  cursor: pointer;
  color: #d7ffe1;
  background: #1f7a3b5c;
  border: 1px solid #46d26eb8;
  border-radius: 3px;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  padding: 0;
  font-size: 15px;
  line-height: 24px;
  box-shadow: 0 0 6px #46d26e47;
}

.yas-invuln-btn:hover, .yas-invuln-btn:focus, .yas-invuln-btn:active {
  color: #d7ffe1;
  outline: none;
  background: #1f7a3b5c;
  border-color: #46d26eb8;
  box-shadow: 0 0 6px #46d26e47;
}

.yas-invuln-btn:focus-visible {
  color: #d7ffe1;
  outline: none;
  background: #1f7a3b5c;
  border-color: #46d26eb8;
  box-shadow: 0 0 6px #46d26e47;
}

.yas-invuln-btn.is-active, .yas-invuln-btn.is-active:hover, .yas-invuln-btn.is-active:focus, .yas-invuln-btn.is-active:active {
  color: #ffe2e2;
  outline: none;
  background: #be202685;
  border-color: #eb4141e6;
  box-shadow: 0 0 6px #eb41416b;
}

.yas-invuln-btn.is-active:focus-visible {
  color: #ffe2e2;
  outline: none;
  background: #be202685;
  border-color: #eb4141e6;
  box-shadow: 0 0 6px #eb41416b;
}

.yas-bar-label {
  letter-spacing: 1.5px;
  color: #c3cde180;
  text-align: right;
  flex-shrink: 0;
  width: 22px;
  font-size: 10px;
}

.yas-bar-track {
  position: relative;
  overflow: hidden;
  background: #0c0c19f2;
  border: 1px solid #4650784d;
  border-radius: 3px;
  width: 300px;
  height: 18px;
  box-shadow: inset 0 1px 4px #0009;
}

.yas-bar-fill {
  position: absolute;
  border-radius: 2px;
  transition: width .1s linear;
  top: 0;
  bottom: 0;
  left: 0;
}

.yas-bar-fill:after {
  content: "";
  position: absolute;
  background: #ffffff24;
  height: 1px;
  top: 0;
  left: 0;
  right: 0;
}

.yas-hp-fill {
  background: linear-gradient(90deg, #7b1113 0%, #c0202b 50%, #e53935 100%);
}

.yas-mp-fill {
  background: linear-gradient(90deg, #0d1855 0%, #1565c0 50%, #3a9ff5 100%);
}

.yas-bar-val {
  position: absolute;
  display: flex;
  color: #ebeeffe0;
  text-shadow: 0 0 6px #000000e6, 0 1px 2px #000;
  user-select: none;
  pointer-events: none;
  justify-content: center;
  align-items:  center;
  font-size: 10px;
  inset: 0;
}

.yas-hotbar-row {
  pointer-events: all;
  display: flex;
  align-items:  center;
  gap: 8px;
}

.yas-hotbar-panel {
  display: flex;
  background: #06071247;
  border: 1px solid #6473af33;
  border-radius: 5px;
  align-items:  center;
  gap: 6px;
  padding: 5px 7px;
}

.yas-debuff-tracker {
  display: flex;
  overflow: hidden;
  background: #06071247;
  border: 1px solid #af464633;
  border-radius: 5px;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items:  center;
  gap: 5px;
  width: 184px;
  height: 64px;
  padding: 5px 7px;
}

.yas-debuff {
  display: flex;
  color: #f36a6a;
  user-select: none;
  background: #2d080eeb;
  border: 1px solid #dc3c3c85;
  border-radius: 4px;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  gap: 3px;
  width: 42px;
  height: 52px;
  box-shadow: inset 0 0 14px #dc3c3c1f, 0 0 8px #00000047;
}

.yas-debuff-icon {
  display: inline-block;
  transform-origin: center;
  font-size: 23px;
  line-height: 1;
}

img.yas-debuff-icon {
  object-fit: contain;
  width: 24px;
  height: 24px;
}

.yas-debuff-timer {
  font-variant-numeric: tabular-nums;
  color: #ffdadadb;
  font-size: 11px;
  line-height: 1;
}

.yas-hotbar-debug, .yas-hotbar-toggle {
  color: #ebeeff8c;
  cursor: pointer;
  background: #ffffff12;
  border: 1px solid #6473af4d;
  border-radius: 4px;
  flex-shrink: 0;
  width: 36px;
  height: 52px;
  padding: 0;
  transition: background .15s, color .15s;
  font-size: 18px;
}

.yas-hotbar-debug {
  font-size: 20px;
}

.yas-hotbar-debug:hover, .yas-hotbar-toggle:hover {
  color: #ebeeffe6;
  background: #ffffff24;
}

.yas-controller-hotbar {
  align-items:  center;
  gap: 10px;
}

.yas-controller-diamond {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(3, 52px);
  gap: 4px;
}

.yas-ctrl-top {
  grid-row: 1;
  grid-column: 2;
}

.yas-ctrl-left {
  grid-row: 2;
  grid-column: 1;
}

.yas-ctrl-right {
  grid-row: 2;
  grid-column: 3;
}

.yas-ctrl-bottom {
  grid-row: 3;
  grid-column: 2;
}

.yas-ctrl-separator {
  letter-spacing: .5px;
  color: #afb4d261;
  pointer-events: none;
  align-self:  center;
  padding: 0 2px;
  font-size: 10px;
}

.yas-hotbar {
  display: flex;
  gap: 4px;
}

.yas-slot {
  position: relative;
  cursor: pointer;
  display: flex;
  overflow: hidden;
  user-select: none;
  background: #0a0c1aeb;
  border: 1px solid #555f9140;
  border-radius: 4px;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  gap: 2px;
  width: 52px;
  height: 52px;
  transition: border-color .1s, box-shadow .1s;
}

.yas-slot:before, .yas-slot:after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
  border-style: solid;
  border-color: #917d4652;
  width: 7px;
  height: 7px;
  transition: border-color .1s;
}

.yas-slot:before {
  border-width: 1px 0 0 1px;
  top: 2px;
  left: 2px;
}

.yas-slot:after {
  border-width: 0 1px 1px 0;
  bottom: 2px;
  right: 2px;
}

.yas-slot:hover {
  border-color: #a08c4b66;
  box-shadow: inset 0 0 12px #a08c4b12;
}

.yas-slot:hover:before, .yas-slot:hover:after {
  border-color: #d4a84399;
}

.yas-slot-flash {
  border-color: #d4a843eb !important;
  box-shadow: inset 0 0 18px #d4a84338, 0 0 10px #d4a84359 !important;
}

.yas-slot-sprint-running {
  border-color: #d4a84380;
  box-shadow: inset 0 0 12px #d4a8431f;
}

.yas-keybind {
  position: absolute;
  color: #afb4d273;
  z-index: 4;
  pointer-events: none;
  font-size: 9px;
  line-height: 1;
  top: 4px;
  left: 5px;
}

.yas-slot-icon {
  z-index: 1;
  font-size: 20px;
  line-height: 1;
}

.yas-slot-name {
  letter-spacing: .3px;
  color: #c8bc9bb3;
  z-index: 1;
  font-size: 7.5px;
  line-height: 1;
}

.yas-cd-overlay {
  position: absolute;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  display: none;
  inset: 0;
}

.yas-cd-text {
  position: absolute;
  color: #e6e1d2f2;
  text-shadow: 0 0 10px #000;
  display: none;
  z-index: 4;
  pointer-events: none;
  justify-content: center;
  align-items:  center;
  font-family: Share Tech Mono, monospace;
  font-size: 15px;
  inset: 0;
}

@keyframes yas-ready-pulse {
  0%, 100% {
    box-shadow: inset 0 0 10px #d4a8431f, 0 0 5px #d4a84333;
    border-color: #d4a84380;
  }

  50% {
    box-shadow: inset 0 0 20px #d4a84347, 0 0 12px #d4a84373;
    border-color: #d4a843d9;
  }
}

.yas-slot-ready {
  animation: yas-ready-pulse .55s ease 2 forwards;
}

#yas-menu {
  position: fixed;
  z-index: 200;
  display: flex;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: #04050ef7;
  justify-content: center;
  align-items:  center;
  padding: 24px;
  inset: 0;
}

.yas-menu-panel {
  display: flex;
  overflow-y: auto;
  scrollbar-color: #555f91b8 #0a0c1cf5;
  scrollbar-width: thin;
  background: #060712fa;
  border: 1px solid #6473af38;
  border-radius: 6px;
  flex-direction: column;
  align-items:  center;
  gap: 0;
  min-width: 380px;
  max-height: calc(100vh - 48px);
  padding: 42px 52px 38px;
  box-shadow: 0 0 60px #5064c814;
}

.yas-menu-panel::-webkit-scrollbar {
  width: 8px;
}

.yas-menu-panel::-webkit-scrollbar-track {
  background: #0a0c1cf5;
  border-radius: 3px;
}

.yas-menu-panel::-webkit-scrollbar-thumb {
  background: #555f91b8;
  border: 1px solid #0a0c1cf5;
  border-radius: 3px;
}

.yas-menu-panel::-webkit-scrollbar-thumb:hover {
  background: #d4a8438c;
}

.yas-menu-title {
  letter-spacing: 6px;
  color: #d4a843eb;
  text-shadow: 0 0 20px #d4a84340;
  margin-bottom: 6px;
  font-size: 22px;
}

.yas-menu-subtitle {
  letter-spacing: 3px;
  color: #afb9d761;
  margin-bottom: 32px;
  font-size: 9px;
}

.yas-menu-raids {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 28px;
}

.yas-menu-raid-option {
  display: flex;
  cursor: pointer;
  letter-spacing: 1px;
  color: #c3cde199;
  user-select: none;
  background: #0a0c1ccc;
  border: 1px solid #555f9133;
  border-radius: 3px;
  align-items:  center;
  gap: 10px;
  padding: 10px 16px;
  transition: border-color .12s, color .12s;
  font-size: 11px;
}

.yas-menu-raid-option:has(input:checked) {
  color: #d4a843eb;
  background: #d4a8430a;
  border-color: #d4a84380;
}

.yas-menu-raid-option input[type="radio"] {
  accent-color: #d4a843d9;
  flex-shrink: 0;
}

.yas-menu-session {
  display: flex;
  border-top: 1px solid #6473af1a;
  border-bottom: 1px solid #6473af1a;
  flex-direction: column;
  align-items:  center;
  gap: 4px;
  width: 100%;
  margin-bottom: 28px;
  padding: 10px 0;
}

.yas-landing-note {
  color: #afb9d77a;
  letter-spacing: .5px;
  text-align: center;
  max-width: 320px;
  margin-bottom: 24px;
  font-size: 10px;
  line-height: 1.5;
}

.yas-menu-session-label {
  letter-spacing: 2.5px;
  color: #afb9d74d;
  font-size: 8px;
}

.yas-menu-session-id {
  letter-spacing: .5px;
  color: #afb9d773;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 10px;
}

.yas-menu-note {
  color: #afb9d74d;
  letter-spacing: 1px;
  margin-top: 2px;
  font-size: 8px;
}

.yas-menu-error {
  color: #ff7878db;
  letter-spacing: .6px;
  text-align: center;
  max-width: 320px;
  margin-top: 14px;
  font-size: 10px;
}

.yas-menu-start {
  color: #d4a843d9;
  letter-spacing: 3px;
  cursor: pointer;
  background: #0a0c1ce6;
  border: 1px solid #d4a84359;
  border-radius: 3px;
  padding: 10px 40px;
  transition: border-color .12s, color .12s, box-shadow .12s;
  font-family: Share Tech Mono, monospace;
  font-size: 11px;
}

.yas-menu-start:disabled {
  cursor: default;
  opacity: .42;
  box-shadow: none;
}

.yas-menu-start:not(:disabled):hover {
  color: #d4a843;
  border-color: #d4a843bf;
  box-shadow: 0 0 16px #d4a8431f;
}

.yas-lobby-slots {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-bottom: 18px;
}

.yas-lobby-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 82px;
  background: #0a0c1cd1;
  border: 1px solid #555f9133;
  border-radius: 3px;
  align-items:  center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
}

.yas-lobby-slot-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.yas-lobby-slot-id {
  color: #d4a843db;
  letter-spacing: 1px;
  font-size: 11px;
}

.yas-lobby-slot-role, .yas-lobby-slot-status {
  color: #afb9d780;
  letter-spacing: 1px;
  font-size: 9px;
}

.yas-lobby-slot-action {
  color: #c3cde1b8;
  cursor: pointer;
  letter-spacing: 1px;
  background: #060712e6;
  border: 1px solid #555f9142;
  border-radius: 3px;
  padding: 6px 8px;
  transition: border-color .12s, color .12s;
  font-family: Share Tech Mono, monospace;
  font-size: 9px;
}

.yas-lobby-slot-action:disabled {
  cursor: default;
  opacity: .35;
}

.yas-lobby-slot-action:not(:disabled):hover {
  color: #d4a843e6;
  border-color: #d4a8438c;
}

#yas-raid-select {
  position: fixed;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 3px;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.yas-raid-dropdown {
  position: relative;
}

.yas-raid-dropdown-toggle {
  color: #d4a843e6;
  cursor: pointer;
  letter-spacing: .5px;
  text-align: left;
  background: #0a0c1ce6;
  border: 1px solid #555f914d;
  border-radius: 3px;
  width: 190px;
  padding: 6px 8px;
  font-family: Share Tech Mono, monospace;
  font-size: 10px;
}

.yas-raid-dropdown-toggle:disabled {
  cursor: default;
  color: #afb9d759;
  opacity: .62;
}

.yas-raid-dropdown-options {
  position: absolute;
  z-index: 55;
  display: flex;
  overflow-y: auto;
  scrollbar-color: #555f91b8 #0a0c1cf5;
  scrollbar-width: thin;
  background: #0a0c1cf5;
  border: 1px solid #555f914d;
  border-radius: 3px;
  flex-direction: column;
  gap: 3px;
  width: 190px;
  max-height: 260px;
  padding: 4px;
  top: calc(100% + 4px);
  left: 0;
}

.yas-raid-dropdown-options::-webkit-scrollbar {
  width: 8px;
}

.yas-raid-dropdown-options::-webkit-scrollbar-track {
  background: #0a0c1cf5;
  border-radius: 3px;
}

.yas-raid-dropdown-options::-webkit-scrollbar-thumb {
  background: #555f91b8;
  border: 1px solid #0a0c1cf5;
  border-radius: 3px;
}

.yas-raid-dropdown-options::-webkit-scrollbar-thumb:hover {
  background: #d4a8438c;
}

.yas-raid-dropdown-option {
  color: #c3cde1d9;
  cursor: pointer;
  letter-spacing: .5px;
  text-align: left;
  background: #0a0c1ce6;
  border: 1px solid #555f9133;
  border-radius: 3px;
  width: 100%;
  padding: 6px 8px;
  font-family: Share Tech Mono, monospace;
  font-size: 10px;
}

.yas-raid-dropdown-option:hover {
  border-color: #d4a84380;
}

.yas-raid-select-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

#yas-raid-category-btn {
  color: #c3cde1b8;
  cursor: pointer;
  background: #0a0c1ce6;
  border: 1px solid #555f914d;
  border-radius: 3px;
  padding: 0 9px;
  font-family: Share Tech Mono, monospace;
  font-size: 12px;
  line-height: 1;
}

#yas-raid-category-btn:disabled {
  cursor: default;
  opacity: .38;
}

#yas-raid-category-btn:not(:disabled):hover {
  color: #d4a843e6;
  border-color: #d4a8438c;
}

#yas-raid-modal {
  position: fixed;
  z-index: 200;
  display: flex;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: #04050ed9;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.yas-raid-modal-panel {
  display: flex;
  background: #060712fa;
  border: 1px solid #6473af38;
  border-radius: 6px;
  flex-direction: column;
  gap: 6px;
  min-width: 340px;
  padding: 32px 40px 28px;
  box-shadow: 0 0 60px #5064c814;
}

.yas-raid-cat-option {
  display: flex;
  text-align: left;
  cursor: pointer;
  background: #0a0c1ccc;
  border: 1px solid #555f9133;
  border-radius: 3px;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  transition: border-color .12s, color .12s;
}

.yas-raid-cat-option:hover {
  border-color: #d4a84380;
}

.yas-raid-cat-name {
  letter-spacing: 1px;
  color: #d4a843eb;
  font-size: 12px;
}

.yas-raid-cat-desc {
  letter-spacing: .5px;
  color: #afb9d780;
  font-size: 9px;
}

.yas-playback-controls {
  display: flex;
  gap: 4px;
  transform: translateX(18px);
}

.yas-playback-controls button {
  color: #c3cde1b8;
  cursor: pointer;
  letter-spacing: .8px;
  background: #0a0c1ce6;
  border: 1px solid #555f914d;
  border-radius: 3px;
  padding: 5px 7px;
  font-family: Share Tech Mono, monospace;
  font-size: 8px;
}

.yas-playback-controls button:disabled {
  cursor: default;
  opacity: .38;
}

.yas-playback-controls button:not(:disabled):hover {
  color: #d4a843e6;
  border-color: #d4a8438c;
}

#yas-session-id {
  position: fixed;
  z-index: 10;
  display: flex;
  pointer-events: none;
  flex-direction: column;
  align-items:  flex-end;
  gap: 2px;
  top: 54px;
  right: 12px;
}

.yas-session-label {
  letter-spacing: 2px;
  color: #afb9d740;
  font-family: Share Tech Mono, monospace;
  font-size: 7px;
}

.yas-session-val {
  letter-spacing: .3px;
  color: #afb9d74d;
  font-family: Share Tech Mono, monospace;
  font-size: 8px;
}

#yas-status {
  position: fixed;
  display: flex;
  pointer-events: none;
  z-index: 100;
  letter-spacing: 8px;
  opacity: 0;
  justify-content: center;
  align-items:  center;
  transition: opacity .35s;
  font-family: Share Tech Mono, monospace;
  font-size: 48px;
  inset: 0;
}

#yas-status.yas-visible {
  opacity: 1;
}

#yas-status.yas-cleared {
  color: #7fff7f;
  text-shadow: 0 0 30px #64ff6480;
}

#yas-status.yas-wiped {
  color: #ff6060;
  text-shadow: 0 0 30px #ff505080;
}
