:root {
  --bg: #0b1017;
  --panel: rgba(16, 22, 33, 0.92);
  --panel-solid: #131a26;
  --border: rgba(140, 168, 210, 0.18);
  --border-strong: rgba(150, 180, 225, 0.32);
  --text: #dfe7f3;
  --muted: #8b9ab3;
  --gold: #e5b95c;
  --hp: #d0463f;
  --hp-dim: #6d211d;
  --mp: #3f7ed0;
  --mp-dim: #1d3a63;
  --xp: #d6b455;
  --xp-dim: #5c4a1c;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  user-select: none;
}

#game {
  position: fixed;
  inset: 0;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.hidden {
  display: none !important;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 12px;
  color: #cfd9e8;
}

/* ------------------------------------------------------------------- HUD shell */

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.panel {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /*
   * No backdrop-filter here on purpose. The panels sit over a canvas that
   * changes every frame, so a backdrop blur has to be recomputed for every
   * visible panel every frame - which is very expensive in Firefox and was the
   * single biggest cost in its frame budget. The panel background is opaque
   * enough to stay readable without it.
   */
  pointer-events: auto;
}

/* ------------------------------------------------------------------ player frame */

#player-frame {
  top: 16px;
  left: 16px;
  display: flex;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  min-width: 280px;
}

.portrait {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #0c1219;
  background: #8899aa;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 18px -4px currentColor;
}

.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pname {
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plevel {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.bar {
  position: relative;
  height: 15px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  transition: width 0.12s linear;
}

.bar .label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.bar-hp .fill {
  background: linear-gradient(180deg, #e4615a, var(--hp));
}
.bar-hp {
  background: var(--hp-dim);
  opacity: 1;
}
.bar-hp {
  background: rgba(0, 0, 0, 0.55);
}

.bar-mp .fill {
  background: linear-gradient(180deg, #5b96e6, var(--mp));
}
.bar-xp {
  height: 8px;
}
.bar-xp .fill {
  background: linear-gradient(180deg, #efd27c, var(--xp));
}
.bar-xp .label {
  display: none;
}

/* ----------------------------------------------------------------------- minimap */

#minimap-panel {
  top: 16px;
  right: 16px;
  padding: 8px;
  line-height: 0;
}

#minimap {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 6px;
  background: #070b11;
}

.minimap-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* How dangerous the ground you are standing on is. */
.zone-badge {
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  line-height: 1.4;
}

.zone-badge.safe {
  color: #a8e08a;
  background: rgba(110, 200, 90, 0.12);
  border-color: rgba(110, 200, 90, 0.32);
}

.zone-badge.even {
  color: #f0d79a;
  background: rgba(229, 185, 92, 0.12);
  border-color: rgba(229, 185, 92, 0.32);
}

.zone-badge.hard {
  color: #ffb06a;
  background: rgba(230, 140, 60, 0.14);
  border-color: rgba(230, 140, 60, 0.38);
}

.zone-badge.deadly {
  color: #ff8f86;
  background: rgba(208, 70, 63, 0.16);
  border-color: rgba(208, 70, 63, 0.44);
}

.zone-badge.sanctuary {
  color: #8fe6d2;
  background: rgba(120, 210, 190, 0.12);
  border-color: rgba(120, 210, 190, 0.32);
}

/* -------------------------------------------------------------------------- chat */

#chat-panel {
  left: 16px;
  bottom: 16px;
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#chat-log {
  height: 168px;
  overflow-y: auto;
  padding: 4px 6px;
  font-size: 13px;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  overscroll-behavior: contain;
}

#chat-log::-webkit-scrollbar {
  width: 6px;
}
#chat-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

#chat-log p {
  margin: 0 0 2px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

#chat-log .from {
  font-weight: 700;
}

#chat-log .sys {
  color: var(--gold);
  font-style: italic;
}

#chat-log p.party {
  color: #bff0c4;
}

#chat-log .time {
  color: #61708a;
  margin-right: 6px;
  font-size: 11px;
}

#chat-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

#chat-input:focus {
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ coin badge */

.coin-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #f2cf7d;
  font-variant-numeric: tabular-nums;
}

.coin-badge i,
.shop-wallet i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe9a8, #f2c94c 45%, #a9760c);
  box-shadow: 0 0 5px rgba(242, 201, 76, 0.5);
}

/* ------------------------------------------------------------------- bottom bar */

#bottom-bar {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

#bottom-bar > .panel {
  position: static;
  pointer-events: auto;
}

#quickbar {
  display: flex;
  gap: 8px;
  padding: 8px;
}

/* ------------------------------------------------------------------ ability bar */

#abilitybar {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.ability-slot {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.4));
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.12s, transform 0.08s;
}

.ability-slot:hover {
  border-color: var(--border-strong);
}

.ability-slot:active {
  transform: scale(0.95);
}

.ability-slot kbd {
  position: absolute;
  top: 2px;
  left: 4px;
  padding: 0 4px;
  font-size: 9.5px;
  border-width: 1px;
  opacity: 0.85;
  z-index: 2;
}

.ability-slot canvas {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.ability-cd {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0%;
  background: rgba(6, 10, 16, 0.74);
  pointer-events: none;
  z-index: 3;
}

.ability-cd-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #eef4ff;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
  z-index: 4;
}

.ability-slot.no-mana canvas {
  filter: grayscale(0.85) brightness(0.7);
}

.ability-slot.no-mana {
  border-color: rgba(90, 120, 200, 0.35);
}

.ability-cost {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #8fb8ff;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
  z-index: 2;
}

.ability-slot.no-mana .ability-cost {
  color: #ff9c8f;
}

/* ------------------------------------------------------------------- quick bar */

.quick-slot {
  position: relative;
  width: 52px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, transform 0.08s;
  pointer-events: auto;
}

.quick-slot:hover {
  background: rgba(255, 255, 255, 0.06);
}

.quick-slot:active {
  transform: scale(0.95);
}

.quick-slot.empty {
  opacity: 0.42;
}

.quick-slot.empty .quick-icon {
  filter: grayscale(0.8);
}

.quick-slot kbd {
  position: absolute;
  top: 2px;
  left: 4px;
  padding: 0 3px;
  font-size: 9px;
  border-width: 1px;
  opacity: 0.75;
}

.quick-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.quick-icon canvas {
  display: block;
}

.quick-count {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #e6edf8;
  text-shadow: 0 1px 2px #000;
}

/* --------------------------------------------------------------- trade prompt */

#trade-prompt {
  position: absolute;
  left: 50%;
  bottom: 168px;
  transform: translateX(-50%);
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(12, 18, 28, 0.9);
  border: 1px solid rgba(229, 185, 92, 0.45);
  color: #f0d79a;
  font-size: 13px;
  white-space: nowrap;
  animation: toast-in 0.2s ease-out;
}

/* ----------------------------------------------------------------------- shop */

#shop-panel {
  right: 16px;
  top: 266px;
  width: 300px;
  padding: 12px;
}

#shop-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#shop-panel h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.shop-wallet {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: rgba(229, 185, 92, 0.1);
  border: 1px solid rgba(229, 185, 92, 0.26);
  font-size: 12px;
  color: #f0d79a;
}

.shop-wallet b {
  margin-left: auto;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 9px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.shop-row .shop-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.shop-row .shop-name {
  font-size: 13px;
  font-weight: 700;
}

.shop-row .shop-desc {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.shop-row .shop-buy {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-row button {
  padding: 5px 9px;
  min-width: 58px;
  border-radius: 6px;
  border: 1px solid rgba(229, 185, 92, 0.4);
  background: rgba(229, 185, 92, 0.16);
  color: #f3dda6;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.shop-row button:hover:not(:disabled) {
  background: rgba(229, 185, 92, 0.3);
}

.shop-row button:disabled {
  opacity: 0.32;
  cursor: default;
}

.shop-hint {
  margin: 10px 2px 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.shop-gear {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-section {
  margin: 12px 2px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-gear-row {
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
}

.shop-gear-row .shop-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.shop-gear-row .shop-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-gear-row .shop-desc {
  grid-column: auto;
}

.shop-gear-row button {
  grid-row: auto;
  align-self: center;
}

/* ----------------------------------------------------------------------- quests */

#quest-panel {
  right: 16px;
  top: 266px;
  width: 330px;
  padding: 12px;
}

#quest-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#quest-panel h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8f0a0;
}

.quest-section {
  margin-bottom: 12px;
}

.quest-section:last-child {
  margin-bottom: 0;
}

.quest-section h4 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.quest-section h4 span {
  color: var(--gold);
  letter-spacing: 0;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 9px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.quest-row .quest-title {
  font-size: 13px;
  font-weight: 700;
}

.quest-row .quest-blurb {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.quest-row .quest-reward {
  grid-column: 1;
  font-size: 11px;
  font-weight: 700;
  color: #f0d79a;
}

.quest-row button {
  grid-row: span 3;
  align-self: center;
  padding: 6px 10px;
  min-width: 62px;
  border-radius: 6px;
  border: 1px solid rgba(150, 220, 140, 0.4);
  background: rgba(120, 200, 110, 0.16);
  color: #c8f0b8;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.quest-row button:hover:not(:disabled) {
  background: rgba(120, 200, 110, 0.3);
}

.quest-row button:disabled {
  opacity: 0.3;
  cursor: default;
}

.quest-row.done button {
  border-color: rgba(208, 70, 63, 0.4);
  background: rgba(208, 70, 63, 0.14);
  color: #ffb3ae;
}

.quest-progress {
  grid-column: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.quest-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6fbf5a, #b8f0a0);
  transition: width 0.15s linear;
}

.quest-empty {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  padding: 4px 2px;
}

/* ---------------------------------------------------------------- quest tracker */

#quest-tracker {
  left: 16px;
  top: 152px;
  width: 250px;
  padding: 10px 12px;
}

#quest-tracker h4 {
  margin: 0 0 7px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tracker-row {
  margin-bottom: 7px;
}

.tracker-row:last-child {
  margin-bottom: 0;
}

.tracker-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 3px;
}

.tracker-head b {
  color: #c8f0b8;
  font-weight: 700;
}

.tracker-head span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------------- social */

#social-panel {
  right: 16px;
  top: 266px;
  width: 320px;
  padding: 12px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

#social-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#social-panel h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fd0ff;
}

.social-section {
  margin-bottom: 14px;
}

.social-section:last-child {
  margin-bottom: 0;
}

.social-section h4 {
  margin: 0 0 7px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.social-section h4 span {
  color: var(--gold);
  letter-spacing: 0;
}

.social-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 7px;
}

.social-row + .social-row {
  margin-top: 3px;
}

.social-row.me {
  background: rgba(255, 255, 255, 0.05);
}

.social-dot {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #0c1219;
}

.social-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-name small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
}

.social-name .crown {
  color: var(--gold);
  margin-left: 4px;
}

.social-actions {
  display: flex;
  gap: 4px;
}

.social-actions button {
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd6e6;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.social-actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.social-actions button.danger {
  border-color: rgba(208, 70, 63, 0.4);
  color: #ffb3ae;
}

.social-actions button.accept {
  border-color: rgba(120, 210, 130, 0.5);
  background: rgba(110, 200, 90, 0.18);
  color: #c8f0b8;
}

.party-hp {
  grid-column: 2 / 4;
  height: 4px;
  margin-top: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.party-hp i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4f9d55, #8ee08a);
  transition: width 0.15s linear;
}

.invite-banner {
  padding: 9px 11px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(229, 185, 92, 0.12);
  border: 1px solid rgba(229, 185, 92, 0.4);
}

.invite-banner p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #f0d79a;
}

#friend-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

#friend-form input {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}

#friend-form input:focus {
  border-color: var(--gold);
}

#friend-form button {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(150, 220, 140, 0.4);
  background: rgba(120, 200, 110, 0.16);
  color: #c8f0b8;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.social-empty {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  padding: 3px 2px;
}

/* -------------------------------------------------------------------- char panel */
#char-panel {
  right: 16px;
  top: 266px;
  width: 270px;
  padding: 12px;
}

#char-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#char-panel h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

button.close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

button.close:hover {
  color: var(--text);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.stat-grid .k {
  color: var(--muted);
}

.stat-grid .v {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.point-banner {
  padding: 7px 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: rgba(229, 185, 92, 0.12);
  border: 1px solid rgba(229, 185, 92, 0.3);
  color: #f0d79a;
  font-size: 12px;
  text-align: center;
}

.point-banner.none {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--muted);
}

.attr-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attr-row {
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.attr-row .name {
  font-weight: 700;
  color: #cbd6e6;
}

.attr-row .desc {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attr-row .val {
  min-width: 22px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.attr-row button {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.attr-row button:hover:not(:disabled) {
  background: rgba(229, 185, 92, 0.25);
  border-color: var(--gold);
}

.attr-row button:disabled {
  opacity: 0.25;
  cursor: default;
}

/* -------------------------------------------------------------------- gear panel */

#gear-panel {
  right: 16px;
  top: 266px;
  width: 340px;
  padding: 12px;
}

#gear-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#gear-panel h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#gear-panel h4 {
  margin: 12px 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.gear-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.gear-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  min-height: 46px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.gear-slot.filled {
  border-color: var(--rarity, var(--border-strong));
  box-shadow: 0 0 14px -7px var(--rarity, transparent);
}

.gear-slot.filled:hover {
  background: rgba(255, 255, 255, 0.05);
}

.gear-slot .slot-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gear-slot .slot-item {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.gear-slot .slot-item.empty {
  color: #55627a;
  font-style: italic;
  font-weight: 400;
}

.gear-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 280px;
  overflow-y: auto;
}

.gear-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
}

.gear-upgrade {
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(110, 170, 240, 0.4);
  background: rgba(80, 140, 220, 0.14);
  color: #bcdcff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gear-upgrade:hover:not(:disabled) {
  background: rgba(80, 140, 220, 0.28);
}

.gear-upgrade:disabled {
  opacity: 0.4;
  cursor: default;
}

.gear-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.gear-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
}

.gear-item.unusable {
  opacity: 0.55;
  cursor: default;
}

.gear-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.gear-meta {
  font-size: 10.5px;
  color: var(--muted);
}

.gear-sell {
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(229, 185, 92, 0.35);
  background: rgba(229, 185, 92, 0.1);
  color: #f0d79a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gear-sell:hover {
  background: rgba(229, 185, 92, 0.22);
}

.gear-empty {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* ------------------------------------------------------------------ item tooltip */

#item-tooltip {
  position: fixed;
  z-index: 60;
  min-width: 208px;
  max-width: 290px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 17, 26, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

.tip-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.tip-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.tip-sub {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.tip-worn {
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tip-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tip-row {
  display: grid;
  grid-template-columns: 1fr 46px 70px;
  gap: 6px;
  align-items: baseline;
}

.tip-cols {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #61708a;
}

.tip-stat {
  color: var(--muted);
}

.tip-cur {
  text-align: right;
  color: #9aa4b2;
  font-variant-numeric: tabular-nums;
}

.tip-new {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tip-new.up {
  color: #6fd08a;
}

.tip-new.down {
  color: #e0736a;
}

.tip-list {
  white-space: pre-line;
  color: #cbd6e6;
}

.tip-set {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.tip-set-name {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
}

.tip-set-line {
  font-size: 11px;
  line-height: 1.4;
  color: #61708a;
}

.tip-set-line.active {
  color: #cbd6e6;
}

.gear-sets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.gear-set-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 11.5px;
}

.gear-set-row b {
  font-size: 12px;
}

.gear-set-row span {
  color: var(--muted);
}

/* ------------------------------------------------------------------------- hints */

#hints {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  #hints {
    display: none;
  }
}

/* --------------------------------------------------------------------- perf */

#perf {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.78);
  border: 1px solid var(--border);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #9fb0c6;
  white-space: pre;
  pointer-events: none;
}

#perf b {
  color: #dfe7f3;
}

#perf .good {
  color: #8ee08a;
}
#perf .warn {
  color: #f0d79a;
}
#perf .bad {
  color: #ff8f86;
}

/* ------------------------------------------------------------------------ toast */

#toast {
  position: absolute;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.toast-item {
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(12, 18, 28, 0.9);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  animation: toast-in 0.25s ease-out;
}

.toast-item.level {
  border-color: var(--gold);
  color: #ffe9ac;
  box-shadow: 0 0 24px -6px var(--gold);
}

.toast-item.warn {
  border-color: rgba(208, 70, 63, 0.6);
  color: #ffb3ae;
  background: rgba(38, 14, 14, 0.92);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

#levelup-banner {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: level-pop 2.4s ease-out forwards;
  pointer-events: none;
}

#levelup-banner span {
  display: block;
  font-size: 15px;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
}

#levelup-banner b {
  display: block;
  font-size: 62px;
  line-height: 1;
  color: #fff3d2;
  text-shadow: 0 0 30px var(--gold), 0 4px 0 rgba(0, 0, 0, 0.4);
}

@keyframes level-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
  20% {
    transform: translate(-50%, -50%) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -80%) scale(1);
  }
}

.section-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.storage-warning {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(208, 70, 63, 0.13);
  border: 1px solid rgba(208, 70, 63, 0.45);
  color: #ffb3ae;
  font-size: 12.5px;
  line-height: 1.5;
}

.storage-warning b {
  color: #ffd0cb;
}

/* ------------------------------------------------------------ character roster */

#roster-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 320px;
  overflow-y: auto;
}

.roster-card {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}

.roster-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
}

.roster-portrait {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.roster-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.roster-name {
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-meta {
  font-size: 12px;
  color: var(--muted);
}

.roster-meta b {
  color: var(--gold);
}

.roster-when {
  font-size: 11px;
  color: #61708a;
  text-align: right;
  white-space: nowrap;
}

.roster-delete {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #61708a;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.roster-delete:hover {
  color: #ff8b82;
  border-color: rgba(208, 70, 63, 0.5);
  background: rgba(208, 70, 63, 0.14);
}

.link-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: #b9c6da;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
  color: var(--gold);
}

#back-to-roster {
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------------- overlays */

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(30, 44, 68, 0.75), rgba(5, 8, 13, 0.94));
  z-index: 20;
  padding: 20px;
  overflow-y: auto;
}

.login-card {
  width: min(720px, 100%);
  padding: 28px 32px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 33, 48, 0.96), rgba(14, 19, 29, 0.97));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.login-card h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: 0.14em;
  text-align: center;
  color: #e8eefb;
}

.login-card h1 span {
  color: var(--gold);
}

.tagline {
  margin: 6px 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.classes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 620px) {
  .classes {
    grid-template-columns: 1fr;
  }
}

.class-card {
  position: relative;
  text-align: left;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
  font: inherit;
}

.class-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}

.class-card.selected {
  border-color: var(--class-color);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px var(--class-color) inset, 0 0 26px -10px var(--class-color);
}

.class-card .glyph {
  width: 76px;
  height: 96px;
  display: block;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3));
  margin-bottom: 10px;
}

.class-card h3 {
  margin: 0 0 2px;
  font-size: 16px;
}

.class-card .tagline-small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--class-color);
  margin-bottom: 8px;
}

.class-card p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.class-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  font-size: 11.5px;
}

.class-card dt {
  color: var(--muted);
}

.class-card dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

#join-form {
  display: flex;
  gap: 10px;
}

#name-input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

#name-input:focus {
  border-color: var(--gold);
}

#play-btn {
  padding: 13px 26px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(180deg, #edc86e, #cfa041);
  color: #241a05;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px var(--gold);
}

#play-btn:hover {
  filter: brightness(1.07);
}

#play-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.login-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(208, 70, 63, 0.14);
  border: 1px solid rgba(208, 70, 63, 0.4);
  color: #ffb3ae;
  font-size: 13px;
}

.changelog {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.changelog summary {
  cursor: pointer;
  color: #b9c6da;
  outline: none;
}

#changelog-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 300px;
  overflow-y: auto;
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.release-version {
  color: var(--gold);
  letter-spacing: 0.04em;
}

.release-title {
  color: #cbd6e6;
  font-weight: 600;
}

.release-date {
  margin-left: auto;
  font-size: 11px;
  color: #61708a;
  white-space: nowrap;
}

.release ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
}

.release li {
  margin-bottom: 4px;
}

.how-to {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.how-to summary {
  cursor: pointer;
  color: #b9c6da;
  outline: none;
}

.how-to ul {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.7;
}

.how-to b {
  color: #cbd6e6;
}

.feedback {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.feedback summary {
  cursor: pointer;
  color: #b9c6da;
  outline: none;
}

#feedback-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#feedback-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

#feedback-input:focus {
  border-color: var(--gold);
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feedback-count {
  font-size: 11px;
  color: #61708a;
  font-variant-numeric: tabular-nums;
}

#feedback-send {
  padding: 9px 22px;
  border-radius: 9px;
  border: 0;
  background: linear-gradient(180deg, #edc86e, #cfa041);
  color: #241a05;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#feedback-send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.feedback-status {
  margin: 0;
  font-size: 12px;
  color: #8fd8a0;
}

.feedback-status.error {
  color: #ffb3ae;
}

/* ------------------------------------------------------------- confirmation */

.confirm-card {
  width: min(360px, 100%);
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 33, 48, 0.97), rgba(14, 19, 29, 0.98));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.confirm-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #cbd6e6;
}

.confirm-card p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.confirm-actions {
  display: flex;
  gap: 9px;
}

.confirm-actions button {
  flex: 1;
  padding: 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.confirm-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.confirm-actions button.danger {
  border-color: rgba(208, 70, 63, 0.55);
  background: rgba(208, 70, 63, 0.18);
  color: #ffb3ae;
  font-weight: 700;
}

.confirm-actions button.danger:hover {
  background: rgba(208, 70, 63, 0.32);
}

/* ------------------------------------------------------------------------ death */

.death-card {
  text-align: center;
  animation: fade-in 0.4s ease-out;
}

.death-card h2 {
  margin: 0 0 8px;
  font-size: 38px;
  letter-spacing: 0.08em;
  color: #ff6b62;
  text-shadow: 0 0 32px rgba(255, 60, 50, 0.5);
}

.death-card p {
  margin: 4px 0;
  color: var(--muted);
}

.death-card .respawn b {
  color: var(--gold);
  font-size: 20px;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ------------------------------------------------------------------------ pause */

.pause-card {
  width: min(340px, 100%);
  padding: 26px 24px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 33, 48, 0.97), rgba(14, 19, 29, 0.98));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.pause-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbd6e6;
}

.pause-note {
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--muted);
}

.menu-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-strong);
}

.menu-btn.primary {
  background: linear-gradient(180deg, #edc86e, #cfa041);
  border-color: transparent;
  color: #241a05;
  font-weight: 700;
}

.menu-btn.primary:hover {
  filter: brightness(1.07);
}

.menu-btn:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------- connecting */

.connecting-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
