/* Olympus Awakened theme tokens + shared UI styling. */
:root {
  --oa-ember: #f2a44c;
  --oa-ember-soft: #ffbf73;
  --oa-quest-gold: #f3c06a;
  --oa-quest-gold-soft: #f8d697;
  --oa-quest-blue: #7cc8ff;
  --oa-quest-blue-deep: #3b5f9a;
  --oa-ink: rgba(10, 10, 14, 0.9);
  --oa-panel: linear-gradient(160deg, rgba(20, 20, 26, 0.95), rgba(12, 12, 16, 0.98));
  --oa-border: rgba(255, 186, 104, 0.25);
  --oa-border-soft: rgba(255, 186, 104, 0.12);
  --oa-text-muted: #b9b1a4;
  --oa-game-nav-width: 220px;
  --oa-game-nav-width-collapsed: 64px;
  --oa-game-nav-drawer-width: min(86vw, 320px);
}

.oa-panel {
  background: var(--oa-panel);
  border: 1px solid var(--oa-border);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.oa-panel--header {
  position: relative;
  overflow: hidden;
}

.oa-panel--header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 75% 10%, rgba(255, 173, 92, 0.08), transparent 60%);
  pointer-events: none;
}

.oa-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--oa-border);
  background: rgba(12, 12, 16, 0.7);
  color: #f3f0e9;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oa-chip--active {
  background: linear-gradient(120deg, #e29a42, #ffc175);
  color: #1b140b;
  border: none;
  box-shadow: 0 10px 24px rgba(255, 173, 92, 0.3);
}

.oa-chip--sale {
  animation: oa-sale-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(255, 191, 115, 0.6);
}

.oa-event-badge {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 186, 104, 0.35);
  background: linear-gradient(120deg, #f7c66f, #f0a74a);
  color: #1b140b;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(255, 173, 92, 0.25);
}

.oa-event-badge--gold {
  background: linear-gradient(120deg, #f5d081, #f1b046);
}

.oa-chat-badge {
  color: #FCD34D;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.oa-chat-badge__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
}

.oa-silver-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 16, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.oa-currency-pill--gold {
  color: #f2c06a;
}

.oa-currency-pill--silver {
  color: #c6d2df;
}

.oa-currency-pill--drachma {
  color: #d4a15a;
}

.oa-currency-pill--ambrosia {
  color: #ff9f5a;
}

.oa-currency-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  display: inline-block;
}

.oa-level-gold {
  color: #f2c06a;
}

.oa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oa-tabs--legacy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oa-tab {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--oa-border-soft);
  background: rgba(12, 12, 16, 0.75);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2f0e8;
}

.oa-tab--active {
  background: linear-gradient(120deg, rgba(226, 154, 66, 0.92), rgba(255, 193, 117, 0.92));
  color: #1b140b;
  border: none;
  box-shadow: 0 12px 24px rgba(255, 173, 92, 0.3);
}

.oa-game-shell {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: var(--oa-game-nav-width) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.oa-game-shell__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oa-game-shell__header {
  min-width: 0;
}

.oa-game-shell__content {
  min-width: 0;
}

.oa-game-nav {
  grid-column: 1;
  position: sticky;
  top: 12px;
  align-self: start;
  z-index: 20;
  min-width: 0;
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  transition: width 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.oa-game-nav__shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.oa-game-nav__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 8px;
}

.oa-game-nav__collapse-btn,
.oa-game-shell__mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  width: auto;
  min-width: 42px;
  border: 1px solid rgba(176, 126, 69, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.985), rgba(9, 9, 13, 1));
  color: rgba(243, 240, 233, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0 11px;
  box-shadow: inset 0 1px 0 rgba(255, 239, 214, 0.018), inset 0 -1px 0 rgba(0, 0, 0, 0.26);
}

.oa-game-nav__collapse-btn:hover,
.oa-game-shell__mobile-toggle:hover {
  border-color: rgba(201, 148, 86, 0.24);
  background: linear-gradient(180deg, rgba(14, 14, 19, 0.99), rgba(10, 10, 14, 1));
  color: #f7e7ca;
}

.oa-game-nav__collapse-btn:focus-visible,
.oa-game-shell__mobile-toggle:focus-visible,
.oa-game-nav__link:focus-visible {
  outline: 2px solid rgba(255, 193, 117, 0.9);
  outline-offset: 2px;
}

.oa-game-nav__collapse-icon,
.oa-game-shell__mobile-toggle-icon {
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
}

.oa-game-nav__collapse-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(223, 195, 149, 0.84);
}

.oa-game-nav__sections {
  display: grid;
  gap: 8px;
}

.oa-game-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(172, 123, 67, 0.13);
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.992), rgba(8, 8, 12, 1));
  color: rgba(243, 240, 233, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 241, 220, 0.012), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.oa-game-nav__link:hover {
  border-color: rgba(198, 146, 86, 0.22);
  background: linear-gradient(180deg, rgba(13, 13, 18, 0.996), rgba(10, 10, 14, 1));
  color: #f6ead5;
  box-shadow: inset 0 1px 0 rgba(255, 241, 220, 0.015), inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.oa-game-nav__link--active {
  position: relative;
  border-color: rgba(208, 155, 91, 0.42);
  background: linear-gradient(180deg, rgba(205, 154, 90, 0.94) 0%, rgba(194, 141, 79, 0.965) 58%, rgba(182, 128, 68, 0.99) 100%);
  color: #1b140a;
  box-shadow: inset 0 1px 0 rgba(245, 226, 195, 0.22), inset 0 -1px 0 rgba(104, 66, 24, 0.24);
}

.oa-game-nav__link--active:hover,
.oa-game-nav__link--active:focus-visible {
  border-color: rgba(219, 166, 99, 0.48);
  background: linear-gradient(180deg, rgba(210, 160, 95, 0.96) 0%, rgba(198, 146, 84, 0.98) 58%, rgba(186, 132, 72, 1) 100%);
  color: #1b140a;
  box-shadow: inset 0 1px 0 rgba(245, 226, 195, 0.24), inset 0 -1px 0 rgba(104, 66, 24, 0.26);
}

.oa-game-nav__link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(242, 207, 149, 0.78), rgba(176, 120, 58, 0.72));
  opacity: 0.85;
}

.oa-game-nav__link--secondary {
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.95), rgba(7, 7, 10, 0.995));
}

.oa-game-nav__link--locked {
  opacity: 0.45;
  pointer-events: none;
}

.oa-game-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--oa-quest-gold-soft);
  flex-shrink: 0;
}

.oa-game-nav__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.oa-game-nav__link--active .oa-game-nav__icon {
  color: #1b140b;
}

.oa-game-nav__icon i {
  font-size: 15px;
  line-height: 1;
}

.oa-game-nav__label {
  display: inline-block;
  min-width: 0;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 1;
  transform: translateX(0);
  transition: max-width 0.22s ease, opacity 0.18s ease, transform 0.22s ease;
}

.oa-game-nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(3, 3, 6, 0.72);
}

.oa-game-shell__mobile-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.oa-game-shell__mobile-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 232, 0.68);
}

.oa-game-nav--locked {
  overflow: hidden;
}

.oa-map-btn {
  border: 1px solid var(--oa-border);
  background: rgba(10, 10, 12, 0.8);
  color: #f2f0e8;
}

.oa-input {
  border: 1px solid var(--oa-border-soft);
  background: rgba(10, 10, 12, 0.85);
  color: #f2f0e8;
}

.oa-input:focus {
  border-color: rgba(255, 178, 97, 0.7);
  box-shadow: 0 0 0 3px rgba(242, 164, 76, 0.18);
  outline: none;
}

.oa-select {
  border: 1px solid var(--oa-border-soft);
  background: rgba(10, 10, 12, 0.92);
  color: #f2f0e8;
  color-scheme: dark;
  box-sizing: border-box;
  min-height: 28px;
  padding: 2px 8px;
  line-height: 1.25;
}

.oa-select:focus {
  border-color: rgba(255, 178, 97, 0.7);
  box-shadow: 0 0 0 3px rgba(242, 164, 76, 0.18);
  outline: none;
}

.oa-select option {
  background: #0d0d12;
  color: #f2f0e8;
}

.oa-market-shell select,
.oa-market-shell select option,
.oa-market-shell select optgroup {
  background-color: #0d0d12;
  color: #f2f0e8;
  color-scheme: dark;
}

.oa-market-shell select option:checked {
  background: #1f6fd1;
  color: #ffffff;
}

.oa-input--danger {
  border-color: rgba(239, 68, 68, 0.7);
}

.oa-input--danger:focus {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.oa-button {
  border-radius: 10px;
  border: 1px solid var(--oa-border-soft);
  background: rgba(12, 12, 16, 0.75);
  color: #f2f0e8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.oa-button--primary {
  background: linear-gradient(120deg, #e29a42, #ffc175);
  color: #1b140b;
  border: none;
  box-shadow: 0 10px 24px rgba(255, 173, 92, 0.3);
}

.oa-button--sale {
  background: linear-gradient(120deg, #f0b24d, #ffd58a);
  box-shadow: 0 0 0 rgba(255, 191, 115, 0.6);
  animation: oa-sale-pulse 2.4s ease-in-out infinite;
}

.oa-button--danger {
  background: linear-gradient(120deg, #e04646, #ff8b8b);
  color: #1b0b0b;
  border: none;
}

.oa-button--muted {
  border: 1px solid var(--oa-border);
  background: rgba(10, 10, 12, 0.8);
}

.oa-skill-tree-panel {
  position: relative;
  overflow: hidden;
}

.oa-skill-tree-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.oa-skill-tree-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 186, 104, 0.25);
  border-radius: 999px;
  color: var(--oa-ember-soft);
  background: rgba(12, 12, 16, 0.72);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.oa-skill-tree-copy {
  margin: 8px 0 0;
  color: var(--oa-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.oa-skill-tree-points {
  min-width: 120px;
  display: grid;
  justify-items: center;
  padding: 10px 12px;
  border: 1px solid var(--oa-border-soft);
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.78);
}

.oa-skill-tree-points span {
  color: var(--oa-text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.oa-skill-tree-points strong {
  color: var(--oa-quest-gold-soft);
  font-size: 28px;
  line-height: 1.05;
}

.oa-skill-tree-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.oa-skill-tree-branches--locked {
  opacity: 0.62;
}

.oa-skill-tree-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 186, 104, 0.14);
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.72);
}

.oa-skill-tree-lock p {
  margin: 0;
  color: var(--oa-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.oa-skill-branch {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 186, 104, 0.16);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(14, 14, 18, 0.94), rgba(9, 9, 13, 0.98));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.34);
}

.oa-skill-branch--placeholder {
  opacity: 0.78;
}

.oa-skill-branch__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.oa-skill-branch__header h3 {
  margin: 0;
  color: #f2f0e8;
  font-family: "Cinzel", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

.oa-skill-branch__header p {
  margin: 2px 0 0;
  color: var(--oa-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.oa-skill-branch__header span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(255, 186, 104, 0.2);
  border-radius: 999px;
  color: var(--oa-ember-soft);
  background: rgba(10, 10, 12, 0.78);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oa-skill-node-list {
  position: relative;
  display: grid;
  gap: 8px;
}

.oa-skill-node-list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 31px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 186, 104, 0.22), transparent);
  pointer-events: none;
}

.oa-skill-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  min-height: 76px;
  padding: 8px;
  border: 1px solid rgba(255, 186, 104, 0.15);
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(16, 16, 22, 0.95), rgba(10, 10, 14, 0.98));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.oa-skill-node--learned {
  border-color: rgba(124, 200, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(124, 200, 255, 0.16), 0 6px 14px rgba(0, 0, 0, 0.3);
}

.oa-skill-node--muted {
  border-color: rgba(255, 186, 104, 0.1);
}

.oa-skill-node__icon {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 117, 0.34);
  border-radius: 9px;
  background: rgba(10, 10, 14, 0.9);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.42), 0 6px 12px rgba(0, 0, 0, 0.28);
}

.oa-skill-node__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oa-skill-node__body {
  min-width: 0;
}

.oa-skill-node__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.oa-skill-node__top h4 {
  margin: 0;
  color: #f2f0e8;
  font-family: "Cinzel", Georgia, serif;
  font-size: 13px;
  line-height: 1.15;
}

.oa-skill-node__top > span {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 186, 104, 0.24);
  border-radius: 999px;
  color: var(--oa-quest-gold-soft);
  background: rgba(10, 10, 12, 0.76);
  font-size: 10px;
  line-height: 1;
}

.oa-skill-node p {
  margin: 4px 0 0;
  color: var(--oa-text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.oa-skill-node__effect {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 5px;
  color: var(--oa-text-muted);
  font-size: 10px;
  line-height: 1.2;
}

.oa-skill-node__effect span {
  color: rgba(242, 240, 232, 0.68);
}

.oa-skill-node__effect strong,
.oa-skill-node__effect em {
  display: inline-flex;
  padding: 1px 6px;
  border: 1px solid rgba(255, 186, 104, 0.16);
  border-radius: 999px;
  background: rgba(9, 10, 14, 0.68);
  font-style: normal;
  font-weight: 600;
}

.oa-skill-node__effect strong {
  color: var(--oa-quest-blue);
}

.oa-skill-node__effect em {
  color: var(--oa-ember-soft);
}

.oa-skill-node__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.oa-skill-node__tag {
  display: inline-flex;
  padding: 2px 6px;
  border: 1px solid rgba(255, 186, 104, 0.18);
  border-radius: 7px;
  color: var(--oa-text-muted);
  background: rgba(9, 10, 14, 0.76);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.oa-skill-node__tag--learned {
  color: var(--oa-quest-blue);
  border-color: rgba(124, 200, 255, 0.28);
}

.oa-skill-node__learn {
  padding: 3px 7px;
  border: 0;
  border-radius: 7px;
  color: #1b140b;
  background: linear-gradient(120deg, #e29a42, #ffc175);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.oa-skill-tree-respec {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.oa-ascension-page .oa-game-shell__content {
  width: 100%;
}

.oa-skill-tree-panel {
  --branch-accent: var(--oa-ember);
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding: 20px !important;
  border-radius: 12px !important;
  background:
    radial-gradient(760px 240px at 38% 0%, rgba(255, 186, 104, 0.06), transparent 62%),
    linear-gradient(180deg, rgba(14, 14, 20, 0.97), rgba(9, 9, 14, 0.99));
}

.oa-skill-tree-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 186, 104, 0.12);
}

.oa-skill-tree-kicker {
  margin-bottom: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 191, 115, 0.78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.oa-skill-tree-copy {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.oa-skill-tree-points {
  min-width: 86px;
  padding: 9px 12px;
  border-radius: 9px;
  border-color: rgba(255, 186, 104, 0.16);
  background: rgba(7, 8, 12, 0.78);
}

.oa-skill-tree-points strong {
  color: var(--oa-ember-soft);
  font-size: 26px;
}

.oa-skill-tree-branches {
  gap: 10px;
}

.oa-skill-branch {
  --branch-accent: var(--oa-ember);
  --branch-accent-soft: rgba(242, 164, 76, 0.22);
  --branch-accent-faint: rgba(242, 164, 76, 0.09);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 11px;
  border-radius: 9px;
  border-color: rgba(255, 186, 104, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 17, 25, 0.98), rgba(8, 8, 13, 0.99));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015), 0 12px 24px rgba(0, 0, 0, 0.34);
}

.oa-skill-branch--offense {
  --branch-accent: #f97316;
  --branch-accent-soft: rgba(249, 115, 22, 0.26);
  --branch-accent-faint: rgba(249, 115, 22, 0.10);
}

.oa-skill-branch--defense {
  --branch-accent: #60a5fa;
  --branch-accent-soft: rgba(96, 165, 250, 0.25);
  --branch-accent-faint: rgba(96, 165, 250, 0.09);
}

.oa-skill-branch--utility {
  --branch-accent: #a78bfa;
  --branch-accent-soft: rgba(167, 139, 250, 0.24);
  --branch-accent-faint: rgba(167, 139, 250, 0.09);
}

.oa-skill-branch--placeholder {
  opacity: 1;
}

.oa-skill-branch__header {
  margin-bottom: 8px;
  padding: 3px 2px 7px;
}

.oa-skill-branch__header h3 {
  position: relative;
  padding-left: 14px;
  color: var(--branch-accent);
  font-size: 17px;
  line-height: 1.1;
  text-shadow: 0 0 10px var(--branch-accent-soft);
}

.oa-skill-branch__header h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--branch-accent);
  box-shadow: 0 0 10px var(--branch-accent-soft);
  transform: translateY(-50%);
}

.oa-skill-branch__header p {
  margin-top: 5px;
  color: rgba(242, 240, 232, 0.72);
  font-size: 12px;
  line-height: 1.3;
}

.oa-skill-branch__header span {
  border-color: var(--branch-accent-soft);
  color: var(--branch-accent);
  background: var(--branch-accent-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.oa-skill-node-list {
  gap: 6px;
  flex: 1 1 auto;
}

.oa-skill-node-list::before {
  display: none;
}

.oa-skill-node {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  gap: 0;
  padding: 9px 10px 9px 11px;
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--branch-accent);
  background: linear-gradient(180deg, rgba(14, 15, 22, 0.96), rgba(8, 9, 14, 0.98));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

.oa-skill-node--learned {
  border-color: rgba(255, 255, 255, 0.10);
  border-left-color: var(--branch-accent);
  box-shadow: inset 0 0 0 1px var(--branch-accent-faint), 0 5px 12px rgba(0, 0, 0, 0.25);
}

.oa-skill-node--muted {
  opacity: 0.72;
  filter: saturate(0.8);
}

.oa-skill-node--muted.oa-skill-node--learned {
  opacity: 0.72;
}

.oa-skill-node__icon {
  display: none;
}

.oa-skill-node__top h4 {
  color: #f8f3e9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.oa-skill-node__top > span {
  display: none;
}

.oa-skill-node__ranks {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}

.oa-skill-node__ranks span {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.oa-skill-node__ranks span.is-filled {
  background: var(--branch-accent);
  box-shadow: 0 0 8px var(--branch-accent-soft);
}

.oa-skill-node p {
  margin-top: 5px;
  color: rgba(242, 240, 232, 0.82);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.34;
}

.oa-skill-node__effect {
  gap: 4px;
  margin-top: 6px;
}

.oa-skill-node__effect strong,
.oa-skill-node__effect em {
  min-height: 22px;
  padding: 4px 9px;
  border-color: var(--branch-accent-soft);
  background: var(--branch-accent-faint);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.oa-skill-node__effect strong {
  color: #57f0a6;
  border-color: rgba(74, 222, 128, 0.32);
  background: rgba(22, 101, 52, 0.28);
}

.oa-skill-node__effect em {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(30, 64, 175, 0.22);
}

.oa-skill-node__footer {
  justify-content: flex-start;
  margin-top: 6px;
}

.oa-skill-node__tag {
  padding: 4px 9px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(242, 240, 232, 0.76);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.oa-skill-node__tag--learned {
  color: #d8b4fe;
  border-color: rgba(167, 139, 250, 0.34);
  background: rgba(88, 28, 135, 0.36);
}

.oa-skill-node__learn {
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #e29a42, #ffc175);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
}

.oa-skill-branch__progress {
  margin-top: 10px;
}

.oa-skill-branch__progress div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(242, 240, 232, 0.44);
  font-size: 10px;
}

.oa-skill-branch__progress i {
  display: block;
  height: 3px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--branch-accent);
  box-shadow: 0 0 10px var(--branch-accent-soft);
}

@media (min-width: 1800px) {
  .oa-skill-tree-panel {
    padding: 22px !important;
  }

  .oa-skill-tree-branches {
    gap: 12px;
  }

  .oa-skill-node {
    padding: 10px 12px;
  }

  .oa-skill-node__top h4 {
    font-size: 15px;
  }

  .oa-skill-node p {
    font-size: 12px;
    line-height: 1.32;
  }
}

@media (max-width: 1500px) {
  .oa-skill-tree-panel {
    padding: 16px !important;
  }

  .oa-skill-tree-branches {
    gap: 8px;
  }

  .oa-skill-branch {
    padding: 9px;
  }

  .oa-skill-node__top h4 {
    font-size: 13px;
  }

  .oa-skill-node p {
    font-size: 11px;
  }

  .oa-skill-node__effect strong,
  .oa-skill-node__effect em {
    font-size: 9px;
  }
}

@media (max-width: 1180px) {
  .oa-skill-tree-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oa-skill-node {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .oa-skill-tree-branches {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .oa-ascension-page {
    padding-left: 6px;
    padding-right: 6px;
  }

  .oa-skill-tree-panel {
    padding: 12px !important;
  }

  .oa-skill-tree-head {
    grid-template-columns: 1fr;
  }

  .oa-skill-tree-points {
    justify-items: start;
    width: 100%;
  }

  .oa-skill-branch__header {
    flex-direction: column;
  }

  .oa-skill-node {
    min-height: 0;
  }

  .oa-skill-node__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.oa-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.oa-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.oa-toggle__track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--oa-border-soft);
  background: rgba(12, 12, 16, 0.7);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.oa-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f2f0e8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.oa-toggle input:checked + .oa-toggle__track {
  background: linear-gradient(120deg, rgba(226, 154, 66, 0.9), rgba(255, 193, 117, 0.9));
  border-color: rgba(255, 178, 97, 0.9);
  box-shadow: 0 0 0 2px rgba(242, 164, 76, 0.15);
}

.oa-toggle input:checked + .oa-toggle__track .oa-toggle__thumb {
  transform: translateX(20px);
  background: #1b140b;
}

.oa-toggle input:focus-visible + .oa-toggle__track {
  outline: 2px solid rgba(255, 178, 97, 0.75);
  outline-offset: 2px;
}

.oa-toggle input:disabled + .oa-toggle__track {
  opacity: 0.45;
  box-shadow: none;
}

.oa-toggle input:disabled ~ .oa-toggle__text {
  opacity: 0.5;
}

.oa-sale-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f7c66f, #f0a74a);
  color: #1b140b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(255, 173, 92, 0.55);
  animation: oa-sale-pulse 2.6s ease-in-out infinite;
}


@keyframes oa-sale-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(255, 173, 92, 0.55);
  }
  50% {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 0 12px rgba(255, 173, 92, 0.65);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(255, 173, 92, 0.55);
  }
}

.clan-warning-text {
  color: var(--oa-quest-gold);
}

.clan-name-text {
  color: var(--oa-ember-soft);
}

.oa-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 193, 117, 0.6) rgba(12, 12, 16, 0.7);
}

.oa-scroll::-webkit-scrollbar {
  width: 8px;
}

.oa-scroll::-webkit-scrollbar-track {
  background: rgba(12, 12, 16, 0.7);
  border-radius: 8px;
}

.oa-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(226, 154, 66, 0.8), rgba(255, 193, 117, 0.8));
  border-radius: 8px;
  border: 1px solid rgba(255, 193, 117, 0.25);
}

.oa-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 193, 117, 0.9), rgba(255, 214, 153, 0.9));
}

.oa-combat-shell {
  border: 1px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12) inset;
}

.oa-combat-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
}

.oa-combat-layout {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: start;
  gap: 16px;
}

.oa-combat-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.oa-combat-side {
  display: flex;
  justify-content: center;
  width: 64px;
}

.oa-combat-center {
  min-width: 0;
  min-height: 72px;
}

.oa-avatar-card {
  width: 64px;
  text-align: center;
  justify-self: center;
}

.oa-avatar-card--off {
  visibility: hidden;
}

.oa-avatar-card--empty {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.oa-avatar-frame {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: radial-gradient(circle at 30% 20%, rgba(255, 196, 121, 0.18), rgba(10, 10, 12, 0.9));
  overflow: hidden;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.oa-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oa-avatar-fallback {
  font-size: 10px;
  color: rgba(226, 232, 240, 0.6);
  text-align: center;
  padding: 6px;
}

.oa-avatar-name {
  margin-top: 6px;
  font-size: 10px;
  color: rgba(226, 232, 240, 0.8);
}

.oa-shop-avatar-thumb {
  width: 56px;
  height: 56px;
}

@media (min-width: 640px) {
  .oa-combat-row {
    grid-template-columns: 112px minmax(0, 1fr) 112px;
    gap: 14px;
  }
  .oa-combat-layout {
    grid-template-columns: 112px minmax(0, 1fr) 112px;
  }
  .oa-combat-side {
    width: 112px;
  }
  .oa-avatar-card {
    width: 112px;
  }
  .oa-avatar-frame {
    width: 100px;
    height: 100px;
  }
  .oa-shop-avatar-thumb {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .oa-combat-layout {
    grid-template-columns: 1fr;
  }
  .oa-combat-side {
    width: 100%;
    margin-bottom: 8px;
  }
  .oa-combat-side:last-child {
    margin-bottom: 0;
  }
  #combat-active img {
    max-width: 100%;
    max-height: 180px;
    height: auto;
  }

  .oa-panel--header {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .oa-panel--header > .mb-2 {
    gap: 0.5rem;
  }

  .oa-panel--header > .mb-2 > .flex:first-child,
  .oa-panel--header > .mb-2 > .flex:first-child > :first-child,
  .oa-panel--header > .mb-2 > .flex:first-child > :last-child {
    gap: 0.45rem;
  }

  .oa-panel--header .oa-chip,
  .oa-panel--header .oa-currency-pill {
    padding: 0.35rem 0.55rem;
  }

  .oa-panel--header .oa-chip {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .oa-panel--header .oa-currency-pill {
    font-size: 0.72rem;
  }

  .oa-panel--header .oa-level-gold {
    font-size: 1.8rem;
    line-height: 1;
  }

  .oa-panel--header #server-time,
  .oa-panel--header a.oa-chip,
  .oa-panel--header form .oa-chip {
    white-space: nowrap;
  }

  .oa-panel--header #hud-location-card {
    width: 100%;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.35rem;
  }

  .oa-panel--header #hud-location-card [data-mini-map-label="true"] {
    width: 100%;
    max-width: 12rem;
    margin-right: 0;
  }

  .oa-panel--header #hud-location-card [data-mini-map-viewport="true"] {
    width: min(100%, 12rem);
    height: 10.75rem;
    margin-inline: auto;
  }

  .oa-panel--header #hud-location-card [data-mini-map-controls="true"] {
    width: 100%;
    margin-top: 0.65rem;
  }

  .oa-panel--header #hud-location-card [data-mini-map-controls="true"] > div {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .oa-panel--header #hud-location-card [data-mini-map-controls="true"] > div > div {
    justify-content: center;
  }

  .oa-panel--header #hud-location-card .oa-map-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 1280px) {
  .oa-game-bg,
  .oa-game-bg--game {
    background-attachment: scroll;
  }

  .oa-panel--header > .mb-2 > .flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .oa-panel--header > .mb-2 > .flex > :first-child,
  .oa-panel--header > .mb-2 > .flex > :last-child {
    width: 100%;
  }

  .oa-panel--header > .mb-2 > .flex > :last-child {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

  .max-w-screen-2xl > .oa-tabs:first-of-type {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .max-w-screen-2xl > .oa-tabs:first-of-type::-webkit-scrollbar {
    height: 6px;
  }

  .max-w-screen-2xl > .oa-tabs:first-of-type .oa-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

.oa-combat-log {
  text-align: center;
  line-height: 1.35;
  margin-top: -10px;
  margin-left: auto;
  margin-right: auto;
}

.oa-combat-log .log-line {
  margin: 1px 0;
}

.oa-combat-log .log-line.oa-log-champion-offense {
  color: #22d3ee;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.28);
}

.oa-combat-log .log-line.oa-log-champion-defense {
  color: #a7f3d0;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(167, 243, 208, 0.24);
}

.oa-game-bg {
  color: #f2f0e8;
  background:
    radial-gradient(900px 360px at 20% -10%, rgba(255, 173, 92, 0.14), transparent 60%),
    radial-gradient(700px 420px at 82% -8%, rgba(255, 140, 0, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(6, 6, 10, 0.96), rgba(8, 8, 12, 0.98)),
    url("../img/background-image.jpg") center/cover no-repeat fixed;
}

.oa-game-bg--game {
  background:
    radial-gradient(420px 820px at -4% 52%, rgba(112, 140, 180, 0.16), transparent 68%),
    radial-gradient(420px 820px at 104% 52%, rgba(112, 140, 180, 0.16), transparent 68%),
    radial-gradient(900px 360px at 20% -10%, rgba(255, 173, 92, 0.15), transparent 60%),
    radial-gradient(700px 420px at 82% -8%, rgba(255, 140, 0, 0.13), transparent 55%),
    linear-gradient(180deg, rgba(7, 8, 14, 0.88), rgba(6, 7, 12, 0.94)),
    url("../img/background-image.jpg") center/cover no-repeat fixed;
}

.oa-class-card {
  border-color: rgba(255, 255, 255, 0.2);
}

#class-choice-modal {
  overflow-y: auto;
}

#class-choice-modal .oa-panel {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  #class-choice-modal {
    align-items: flex-start;
  }

  #class-choice-modal .oa-panel {
    margin: 16px 0;
    padding: 20px;
  }

  #class-choice-modal .oa-class-card {
    padding: 12px;
  }

  #class-choice-modal .oa-class-title {
    font-size: 18px;
  }

  #class-choice-modal .oa-class-button {
    font-size: 12px;
    letter-spacing: 0.16em;
  }
}

.oa-class-title,
.oa-class-path,
.oa-class-chip {
  color: #f2f0e8;
}

.oa-class-chip {
  border-color: rgba(255, 255, 255, 0.3);
}

.oa-class-button {
  background: #f2a44c;
  color: #0f0b08;
  box-shadow: 0 10px 24px rgba(255, 173, 92, 0.3);
}

.oa-class-button:hover {
  background: #ffb869;
}

.oa-class-card--fighter {
  border-color: rgba(255, 193, 117, 0.55);
}

.oa-class-card--fighter .oa-class-title,
.oa-class-card--fighter .oa-class-path,
.oa-class-card--fighter .oa-class-chip {
  color: #ffcf8a;
}

.oa-class-card--fighter .oa-class-chip {
  border-color: rgba(255, 193, 117, 0.55);
}

.oa-class-card--fighter .oa-class-button {
  background: linear-gradient(120deg, #e29a42, #ffc175);
}

.oa-class-card--fighter .oa-class-button:hover {
  background: linear-gradient(120deg, #f2a44c, #ffd299);
}

.oa-class-card--archer {
  border-color: rgba(126, 211, 255, 0.55);
}

.oa-class-card--archer .oa-class-title,
.oa-class-card--archer .oa-class-path,
.oa-class-card--archer .oa-class-chip {
  color: #cdeeff;
}

.oa-class-card--archer .oa-class-chip {
  border-color: rgba(126, 211, 255, 0.55);
}

.oa-class-card--archer .oa-class-button {
  background: linear-gradient(120deg, #5bb7f3, #8ad6ff);
}

.oa-class-card--archer .oa-class-button:hover {
  background: linear-gradient(120deg, #6ac0f6, #9be0ff);
}

.oa-class-card--mage {
  border-color: rgba(178, 156, 255, 0.55);
}

.oa-class-card--mage .oa-class-title,
.oa-class-card--mage .oa-class-path,
.oa-class-card--mage .oa-class-chip {
  color: #e3d8ff;
}

.oa-class-card--mage .oa-class-chip {
  border-color: rgba(178, 156, 255, 0.55);
}

.oa-class-card--mage .oa-class-button {
  background: linear-gradient(120deg, #8567f2, #b39dff);
  color: #111018;
}

.oa-class-card--mage .oa-class-button:hover {
  background: linear-gradient(120deg, #9578f5, #c1afff);
}

.oa-class-card--rogue {
  border-color: rgba(134, 239, 172, 0.55);
}

.oa-class-card--rogue .oa-class-title,
.oa-class-card--rogue .oa-class-path,
.oa-class-card--rogue .oa-class-chip {
  color: #c8f7d6;
}

.oa-class-card--rogue .oa-class-chip {
  border-color: rgba(134, 239, 172, 0.55);
}

.oa-class-card--rogue .oa-class-button {
  background: linear-gradient(120deg, #4dd37b, #85e6a3);
  color: #0e140f;
}

.oa-class-card--rogue .oa-class-button:hover {
  background: linear-gradient(120deg, #5cdb86, #95edb1);
}

.oa-inventory h2 {
  color: var(--oa-ember-soft);
}

.oa-inventory .oa-muted {
  color: var(--oa-text-muted);
}

.oa-paperdoll {
  position: relative;
  padding: 10px 0 6px;
  border-radius: 16px;
  background:
    radial-gradient(200px 120px at 50% 20%, rgba(255, 186, 104, 0.08), transparent 65%),
    radial-gradient(220px 140px at 50% 80%, rgba(255, 140, 0, 0.08), transparent 70%);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.45);
}

.oa-slot-bg {
  background:
    linear-gradient(145deg, rgba(14, 14, 18, 0.9), rgba(8, 8, 12, 0.95));
}

.oa-item-card {
  background:
    linear-gradient(160deg, rgba(16, 16, 22, 0.95), rgba(10, 10, 14, 0.98));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.oa-auction-scroll {
  max-height: clamp(26rem, 72vh, 50rem);
}

.oa-auction-panel {
  display: flex;
  flex-direction: column;
  min-height: clamp(30rem, 78vh, 54rem);
}

.oa-auction-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  padding-right: 0;
}

.oa-market-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oa-market-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oa-market-panel {
  border: 1px solid var(--oa-border);
  background: var(--oa-panel);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 173, 92, 0.12);
}

.oa-market-pane {
  display: none;
}

.oa-market-pane.is-active {
  display: block;
}

.oa-market-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.oa-market-head h3 {
  margin: 0;
  font-size: 14px;
  color: var(--oa-quest-gold-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oa-market-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.oa-market-filters--browse {
  display: grid;
  grid-template-columns: minmax(18rem, 2fr) minmax(12rem, 1fr) minmax(12rem, 1fr);
  gap: 12px;
  align-items: end;
}

.oa-market-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 1;
}

.oa-market-filters--browse .oa-market-field {
  min-width: 0;
}

.oa-market-field--search {
  min-width: 240px;
  flex: 2;
}

.oa-market-filters--browse .oa-market-field--search {
  min-width: 0;
}

.oa-market-shell .oa-input,
.oa-market-shell .oa-select {
  width: 100%;
  height: 28px;
  border-radius: 0;
}

.oa-market-shell textarea.oa-input {
  height: auto;
  min-height: 42px;
  padding: 8px 10px;
}

.oa-market-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: start;
}

.oa-market-field label {
  font-size: 11px;
  color: var(--oa-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oa-market-list {
  display: grid;
  gap: 10px;
}

.oa-market-card {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 193, 117, 0.35);
  background: linear-gradient(160deg, rgba(16, 16, 22, 0.95), rgba(8, 8, 12, 0.98));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 173, 92, 0.08);
}

.oa-market-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.oa-market-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 193, 117, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(255, 193, 117, 0.4), transparent 65%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.oa-market-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oa-market-meta {
  min-width: 0;
}

.oa-market-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.oa-market-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-market-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--oa-text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.oa-market-note {
  color: #e7dcc8;
  font-size: 12px;
  margin-top: 6px;
}

.oa-market-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.oa-market-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 110px;
}

.oa-market-price strong {
  color: #f2c06a;
  font-size: 14px;
}

.oa-market-price span {
  font-size: 12px;
  color: var(--oa-text-muted);
}

.oa-market-muted {
  color: var(--oa-text-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .oa-market-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .oa-market-price {
    align-items: flex-start;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .oa-market-filters {
    gap: 10px;
  }

  .oa-market-filters--browse {
    grid-template-columns: 1fr;
  }

  .oa-market-field,
  .oa-market-field--search {
    min-width: 0;
    flex: 1 1 100%;
  }

  .oa-market-price-row {
    grid-template-columns: minmax(0, 1fr) 7rem;
  }

  .oa-market-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .oa-market-right {
    width: 100%;
    justify-content: space-between;
  }

  .oa-auction-scroll {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .oa-tabs {
    gap: 6px;
  }

  .oa-tab {
    padding: 6px 10px;
    font-size: 10px;
  }

  .oa-market-icon {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 1023px) {
  .oa-game-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .oa-game-shell__main {
    gap: 6px;
  }

  .oa-tabs--legacy {
    display: none;
  }

  .oa-panel--header {
    padding: 12px 12px 18px;
    margin-bottom: 8px;
  }

  .oa-game-shell[data-nav-enhanced="0"] .oa-game-nav {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    transform: none;
  }

  .oa-game-shell[data-nav-enhanced="1"] .oa-game-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(84vw, 320px);
    max-width: calc(100vw - 20px);
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0 18px 18px 0;
    transform: translateX(calc(-100% - 12px));
  }

  .oa-game-shell[data-nav-enhanced="1"][data-nav-open="1"] .oa-game-nav {
    transform: translateX(0);
  }

  .oa-game-shell[data-nav-enhanced="1"][data-nav-open="0"] .oa-game-nav {
    pointer-events: none;
  }

  .oa-game-nav__scrim[hidden] {
    display: none;
  }

  .oa-game-nav__scrim:not([hidden]) {
    display: block;
  }

  .oa-game-shell__content {
    width: 100%;
  }

  .oa-game-shell__mobile-bar {
    position: sticky;
    top: 8px;
    z-index: 15;
    margin-bottom: 8px;
    padding-block: 4px;
    background: transparent;
  }

  .oa-game-shell__mobile-toggle {
    width: auto;
    padding: 0 12px;
    gap: 8px;
  }

  .oa-skill-tree-branches,
  .oa-skill-tree-head {
    grid-template-columns: 1fr;
  }

  .oa-skill-tree-points {
    justify-items: start;
  }

  .oa-game-shell[data-nav-enhanced="0"] .oa-game-nav__collapse-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .oa-chip,
  .oa-currency-pill,
  .oa-event-badge {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .oa-game-shell {
    gap: 6px;
  }

  .oa-game-shell__main {
    gap: 5px;
  }

  .oa-panel--header {
    padding: 10px 10px 16px;
  }

  .oa-game-shell__content {
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  .oa-game-shell[data-nav-collapsed="1"] {
    grid-template-columns: var(--oa-game-nav-width-collapsed) minmax(0, 1fr);
  }

  .oa-game-shell[data-nav-collapsed="1"] .oa-game-nav {
    width: var(--oa-game-nav-width-collapsed);
  }

  .oa-game-shell[data-nav-collapsed="1"] .oa-game-nav__collapse-label,
  .oa-game-shell[data-nav-collapsed="1"] .oa-game-nav__label {
    max-width: 0;
    opacity: 0;
    transform: translateX(-6px);
  }

.oa-game-shell[data-nav-collapsed="1"] .oa-game-nav__collapse-btn {
  justify-content: center;
  padding-inline: 0;
  width: 42px;
}

  .oa-game-shell[data-nav-collapsed="1"] .oa-game-nav__sections {
    gap: 8px;
  }

  .oa-game-shell[data-nav-collapsed="1"] .oa-game-nav__link {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
  }

  .oa-game-shell[data-nav-collapsed="1"] .oa-game-nav__icon {
    width: 19px;
    height: 19px;
  }

  .oa-game-shell[data-nav-collapsed="1"] .oa-game-nav__icon svg {
    width: 18px;
    height: 18px;
  }

  .oa-game-shell__mobile-bar {
    display: none;
  }

  .oa-game-nav__scrim {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oa-game-nav,
  .oa-game-nav__link,
  .oa-game-nav__collapse-btn,
  .oa-game-shell__mobile-toggle {
    transition: none;
  }
}

#notification-toast {
  position: fixed;
  left: 50%;
  top: clamp(72px, 14vh, 160px);
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(92vw, 520px);
  min-height: 52px;
  background: linear-gradient(160deg, rgba(16, 16, 22, 0.96), rgba(8, 8, 12, 0.98));
  color: #f2f0e8;
  border: 1px solid rgba(255, 193, 117, 0.4);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 173, 92, 0.2);
  backdrop-filter: blur(6px);
  white-space: pre-line;
  line-height: 1.25;
}

#notification-toast:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
}

#notification-toast-text {
  display: block;
  width: 100%;
}

.oa-quest-panel {
  border-color: rgba(124, 200, 255, 0.25);
  background: var(--oa-panel);
}

.oa-quest-header {
  border-color: rgba(124, 200, 255, 0.2);
  color: var(--oa-quest-gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.oa-quest-card {
  border-color: rgba(124, 200, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(16, 16, 22, 0.95), rgba(10, 10, 14, 0.98));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38);
}

.oa-quest-card--active {
  border-color: rgba(124, 200, 255, 0.34);
}

.oa-quest-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oa-quest-icon {
  border: 1px solid rgba(124, 200, 255, 0.35);
  background: rgba(8, 12, 20, 0.8);
  padding: 2px;
}

.oa-quest-title {
  color: var(--oa-quest-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.oa-quest-body {
  line-height: 1.45;
  max-width: 70ch;
}

.oa-quest-progress {
  border: 1px solid rgba(124, 200, 255, 0.2);
  background: rgba(8, 12, 20, 0.55);
  border-radius: 10px;
  padding: 8px 10px;
}

.oa-quest-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.oa-quest-progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(12, 20, 36, 0.8);
  overflow: hidden;
}

.oa-quest-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5fa0df, #8cd0ff);
  box-shadow: 0 0 10px rgba(124, 200, 255, 0.45);
}

.oa-quest-turnin-note {
  color: #a8bdd8;
}

.oa-quest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oa-quest-actions__form {
  margin: 0;
}

.oa-quest-checklist {
  border: 1px solid rgba(124, 200, 255, 0.2);
  background: rgba(8, 12, 20, 0.45);
  border-radius: 10px;
  padding: 8px 10px;
}

.oa-quest-checklist__title {
  color: #b9d8f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.oa-quest-checklist__rows {
  display: grid;
  gap: 6px;
}

.oa-quest-checklist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  border-radius: 8px;
  padding: 6px 8px;
}

.oa-quest-checklist__row.is-met {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.oa-quest-checklist__row.is-missing {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.oa-quest-checklist__item {
  color: #e7effa;
  min-width: 0;
}

.oa-quest-checklist__source {
  margin-left: 6px;
  font-size: 10px;
  color: #9cb5d1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.oa-quest-checklist__counts {
  font-weight: 700;
  color: #d9ecff;
}

.oa-legal-page {
  min-height: 100vh;
  padding: 36px 18px 64px;
  display: flex;
  justify-content: center;
}

.oa-legal-shell {
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.oa-legal-shell--wide {
  width: min(1180px, 100%);
}

.oa-legal-header {
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(14, 14, 18, 0.92), rgba(10, 10, 14, 0.98));
  border: 1px solid var(--oa-border);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.oa-legal-kicker {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 191, 115, 0.8);
}

.oa-legal-title {
  margin-top: 12px;
  font-family: "Cinzel", "New Rocker", serif;
  font-size: clamp(28px, 4vw, 40px);
  color: #f5e6cc;
  letter-spacing: 0.04em;
}

.oa-legal-meta {
  margin-top: 8px;
  color: rgba(242, 240, 232, 0.65);
  font-size: 13px;
}

.oa-legal-back {
  display: inline-flex;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
}

.oa-legal-card {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--oa-border-soft);
  background: linear-gradient(160deg, rgba(12, 12, 16, 0.92), rgba(9, 9, 12, 0.98));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.oa-legal-card h2,
.oa-legal-card h3 {
  color: var(--oa-ember-soft);
  font-family: "Cinzel", "New Rocker", serif;
  letter-spacing: 0.06em;
}

.oa-legal-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.oa-legal-card h3 {
  font-size: 15px;
  margin-top: 14px;
}

.oa-legal-card p,
.oa-legal-card li {
  color: rgba(242, 240, 232, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.oa-legal-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.oa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.oa-badge--update {
  border-color: rgba(245, 199, 106, 0.45);
  color: #ffe1a6;
  background: linear-gradient(120deg, rgba(255, 194, 111, 0.22), rgba(120, 70, 10, 0.18));
}

.oa-badge--live {
  border-color: rgba(120, 220, 170, 0.45);
  color: #c8ffe4;
  background: linear-gradient(120deg, rgba(50, 160, 110, 0.25), rgba(10, 60, 40, 0.2));
}

.oa-badge--known-issue {
  border-color: rgba(255, 120, 120, 0.5);
  color: #ffd0d0;
  background: linear-gradient(120deg, rgba(220, 80, 80, 0.28), rgba(80, 10, 10, 0.22));
}

.oa-badge--in-progress {
  border-color: rgba(255, 199, 120, 0.45);
  color: #ffe4b6;
  background: linear-gradient(120deg, rgba(255, 179, 80, 0.25), rgba(80, 40, 5, 0.2));
}

.oa-badge--planned {
  border-color: rgba(125, 190, 255, 0.45);
  color: #d7ebff;
  background: linear-gradient(120deg, rgba(90, 145, 220, 0.25), rgba(20, 40, 70, 0.22));
}

.oa-footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 191, 115, 0.75);
  padding: 24px 0;
  display: grid;
  gap: 6px;
}

.oa-footer a {
  color: rgba(255, 191, 115, 0.9);
  text-decoration: underline;
}

.oa-footer a:hover {
  color: #ffe3b9;
}

.oa-footer__divider {
  color: rgba(255, 191, 115, 0.4);
}

.oa-quest-text {
  color: #d7e0ee;
}

.oa-quest-muted {
  color: #97a8c0;
}

.oa-quest-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oa-quest-status--active {
  background: linear-gradient(120deg, #e9aa4e, var(--oa-quest-gold-soft));
  color: #2a1907;
}

.oa-quest-status--complete {
  background: linear-gradient(120deg, #4f82c7, var(--oa-quest-blue));
  color: #0c1626;
}

.oa-quest-status--ready {
  background: linear-gradient(120deg, #35c57a, #89f2b5);
  color: #042014;
}

@media (max-width: 640px) {
  .oa-quest-card__head {
    align-items: flex-start;
  }

  .oa-quest-status {
    margin-top: 2px;
  }

  .oa-quest-body {
    max-width: 100%;
  }
}

.oa-shop-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--oa-border-soft);
  background: rgba(12, 12, 16, 0.75);
  color: #f2f0e8;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.oa-shop-tab[data-active="true"] {
  background: linear-gradient(120deg, rgba(226, 154, 66, 0.92), rgba(255, 193, 117, 0.92));
  color: #1b140b;
  border: none;
  box-shadow: 0 12px 24px rgba(255, 173, 92, 0.3);
}

.oa-shop-group {
  border: 1px solid var(--oa-border-soft);
  background: rgba(10, 10, 14, 0.85);
}

.oa-shop-group-toggle {
  background: rgba(8, 8, 12, 0.85);
}

.oa-price-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.75);
  border: 1px solid var(--oa-border);
  color: var(--oa-ember-soft);
  font-weight: 600;
  font-size: 12px;
}

.oa-panel--soft {
  border: 1px solid var(--oa-border-soft);
  background: rgba(10, 10, 14, 0.85);
}

.oa-map-panel {
  border: 1px solid rgba(255, 186, 104, 0.25);
  background: rgba(12, 12, 16, 0.9);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.oa-map-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oa-map-meta {
  text-align: left;
}

.oa-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.oa-map-layout__visual,
.oa-map-layout__sidebar {
  min-width: 0;
}

.oa-map-layout__visual {
  width: 100%;
}

.oa-map-layout__sidebar {
  width: 100%;
}

.oa-map-card {
  border: 1px solid rgba(255, 186, 104, 0.2);
  background: rgba(10, 10, 14, 0.85);
}

.oa-map-stage {
  max-width: 100%;
}

@media (min-width: 768px) {
  .oa-map-heading {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .oa-map-meta {
    text-align: right;
  }
}

@media (min-width: 1280px) {
  .oa-map-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .oa-map-layout__visual {
    flex: 0 1 clamp(700px, 56vw, 980px);
    width: clamp(700px, 56vw, 980px);
  }

  .oa-map-stage {
    margin-left: 0;
    margin-right: auto;
  }

  .oa-map-layout__sidebar {
    flex: 0 0 clamp(320px, 24vw, 390px);
    width: clamp(320px, 24vw, 390px);
  }
}

@media (min-width: 1600px) {
  .oa-map-layout__visual {
    flex-basis: clamp(760px, 54vw, 1040px);
    width: clamp(760px, 54vw, 1040px);
  }

  .oa-map-layout__sidebar {
    flex-basis: clamp(340px, 22vw, 400px);
    width: clamp(340px, 22vw, 400px);
  }
}

@media (max-width: 640px) {
  .oa-map-stage {
    max-width: 100%;
  }
}

.oa-map-badge {
  border: 1px solid rgba(255, 186, 104, 0.35);
  background: rgba(12, 12, 16, 0.7);
  color: var(--oa-ember-soft);
}

/* Crafting: trade skills UI */
.craft-pill {
  border: 1px solid var(--oa-border-soft);
  background: rgba(12, 12, 16, 0.7);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ingredient {
  border: 1px solid var(--oa-border-soft);
  background: rgba(10, 10, 12, 0.75);
  border-radius: 12px;
  padding: 10px 12px;
}

.trade-skill-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 68px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(6, 9, 13, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.trade-skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(20, 28, 40, 0.9);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.06);
}

.trade-skill-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(122, 217, 255, 0.45));
}

.trade-skill-card[data-skill="alchemy"] .trade-skill-icon {
  box-shadow: inset 0 0 10px rgba(64, 224, 208, 0.25), 0 0 10px rgba(64, 224, 208, 0.2);
}

.trade-skill-card[data-skill="armorsmithing"] .trade-skill-icon {
  box-shadow: inset 0 0 10px rgba(255, 198, 92, 0.25), 0 0 10px rgba(255, 198, 92, 0.2);
}

.trade-skill-card[data-skill="weaponsmithing"] .trade-skill-icon {
  box-shadow: inset 0 0 10px rgba(230, 64, 64, 0.25), 0 0 10px rgba(230, 64, 64, 0.2);
}

.trade-skill-card[data-skill="salvage"] .trade-skill-icon {
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.3), 0 0 12px rgba(168, 85, 247, 0.24);
}

.trade-skill-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.trade-skill-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}

.trade-skill-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-skill-xp-text {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.9);
  white-space: nowrap;
}

.trade-skill-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.trade-skill-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(20, 180, 170, 0.25), rgba(64, 224, 208, 0.75));
  box-shadow: 0 0 10px rgba(64, 224, 208, 0.35);
  transition: width 0.35s ease;
}

.trade-skill-card[data-skill="armorsmithing"] .trade-skill-fill {
  background: linear-gradient(90deg, rgba(183, 136, 62, 0.25), rgba(255, 198, 92, 0.78));
  box-shadow: 0 0 10px rgba(255, 198, 92, 0.35);
}

.trade-skill-card[data-skill="weaponsmithing"] .trade-skill-fill {
  background: linear-gradient(90deg, rgba(120, 12, 12, 0.25), rgba(230, 64, 64, 0.75));
  box-shadow: 0 0 10px rgba(230, 64, 64, 0.35);
}

.trade-skill-card[data-skill="salvage"] .trade-skill-fill {
  background: linear-gradient(90deg, rgba(76, 29, 149, 0.35), rgba(168, 85, 247, 0.82));
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.trade-skill-badge {
  text-align: center;
  min-width: 68px;
  padding: 5px 6px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(24, 16, 6, 0.45);
  color: #fcd34d;
  font-size: 11px;
  line-height: 1.2;
}

.trade-skill-badge .level {
  font-weight: 700;
  font-size: 11px;
}

.craft-recipe-card {
  border: 1px solid var(--oa-border-soft);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  padding-top: 6px;
  padding-bottom: 6px;
}

.craft-recipe-card:hover {
  border-color: rgba(255, 186, 104, 0.42);
  background: rgba(18, 18, 24, 0.96);
  transform: translateY(-1px);
}

.craft-recipe-card--selected {
  border-color: rgba(255, 193, 117, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 117, 0.45), 0 8px 22px rgba(0, 0, 0, 0.38);
}

.craft-recipe-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  padding: 1px 7px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(12, 16, 24, 0.84);
}

.craft-recipe-status--craftable {
  border-color: rgba(74, 222, 128, 0.5);
  color: #86efac;
}

.craft-recipe-status--missing {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fcd34d;
}

.craft-recipe-status--locked {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.craft-recipe-status--gated {
  border-color: rgba(96, 165, 250, 0.52);
  color: #93c5fd;
}

.craft-queue-item {
  border: 1px solid var(--oa-border-soft);
}

.craft-queue-item--ready {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.2);
}

.craft-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.craft-layout__skills,
.craft-layout__left,
.craft-layout__recipes,
.craft-layout__right {
  min-width: 0;
}

.craft-layout__left,
.craft-layout__right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.craft-layout__left {
  gap: 12px;
}

.craft-recipe-list {
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 193, 117, 0.62) rgba(12, 12, 16, 0.78);
}

.craft-recipe-list::-webkit-scrollbar {
  width: 10px;
}

.craft-recipe-list::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.92), rgba(8, 10, 14, 0.9));
  border: 1px solid rgba(255, 186, 104, 0.18);
  border-radius: 999px;
}

.craft-recipe-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 196, 120, 0.9), rgba(232, 157, 72, 0.9));
  border: 2px solid rgba(12, 12, 16, 0.9);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 178, 0.28), 0 0 8px rgba(255, 173, 92, 0.25);
}

.craft-recipe-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 211, 145, 0.94), rgba(243, 172, 88, 0.94));
}

.craft-materials-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.craft-material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 193, 117, 0.62) rgba(12, 12, 16, 0.78);
}

.craft-material-grid::-webkit-scrollbar {
  width: 10px;
}

.craft-material-grid::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.92), rgba(8, 10, 14, 0.9));
  border: 1px solid rgba(255, 186, 104, 0.18);
  border-radius: 999px;
}

.craft-material-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 196, 120, 0.9), rgba(232, 157, 72, 0.9));
  border: 2px solid rgba(12, 12, 16, 0.9);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 178, 0.28), 0 0 8px rgba(255, 173, 92, 0.25);
}

.craft-material-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 211, 145, 0.94), rgba(243, 172, 88, 0.94));
}

.craft-material-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--oa-border-soft);
  border-radius: 10px;
  background: rgba(8, 10, 14, 0.92);
  display: grid;
  place-items: center;
  overflow: visible;
  z-index: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.craft-material-tile:hover {
  border-color: rgba(255, 186, 104, 0.55);
  transform: translateY(-1px);
  z-index: 60;
}

.craft-material-tile:focus-visible {
  z-index: 60;
}

.craft-material-tile.is-empty {
  border-style: dashed;
  border-color: rgba(255, 186, 104, 0.22);
  background: rgba(8, 10, 14, 0.72);
  cursor: default;
}

.craft-material-tile.is-empty:hover {
  transform: none;
  border-color: rgba(255, 186, 104, 0.3);
}

.craft-material-empty-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 186, 104, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 186, 104, 0.2);
}

.craft-material-tile.is-dragging {
  opacity: 0.55;
}

.craft-material-tile.is-drop-target {
  border-color: rgba(97, 225, 166, 0.9);
  box-shadow: 0 0 0 1px rgba(97, 225, 166, 0.35), inset 0 0 0 1px rgba(97, 225, 166, 0.2);
}

.craft-material-menu {
  position: fixed;
  z-index: 1200;
  min-width: 170px;
  padding: 6px;
  border: 1px solid rgba(255, 186, 104, 0.35);
  border-radius: 10px;
  background: rgba(9, 11, 16, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 4px;
}

.craft-material-menu.hidden {
  display: none !important;
}

.craft-material-menu button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 8px;
  text-align: left;
  color: #f3f0e9;
  font-size: 12px;
  background: transparent;
}

.craft-material-menu button:hover {
  border-color: rgba(255, 186, 104, 0.35);
  background: rgba(255, 186, 104, 0.08);
}

.craft-split-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.craft-split-modal.hidden {
  display: none !important;
}

.craft-split-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.65);
}

.craft-split-modal__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 24px));
  border: 1px solid rgba(255, 186, 104, 0.35);
  border-radius: 12px;
  background: rgba(10, 12, 18, 0.98);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  padding: 12px;
}

.craft-split-modal__input {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(255, 186, 104, 0.3);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.95);
  color: #f3f0e9;
  font-size: 13px;
  padding: 8px;
}

.craft-split-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
}

.craft-material-tile img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
}

.craft-material-fallback {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  pointer-events: none;
}

.craft-material-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 186, 104, 0.32);
  background: rgba(8, 10, 14, 0.94);
  color: #f2c06a;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
  pointer-events: none;
}

.craft-material-tooltip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(6, 7, 11, 0.96);
  border: 1px solid rgba(255, 186, 104, 0.42);
  border-radius: 8px;
  padding: 5px 8px;
  color: #f3f0e9;
  font-size: 10px;
  max-width: min(260px, 60vw);
  min-width: max-content;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.12s ease;
}

/* Keep edge-column tooltips inside the panel bounds. */
.craft-material-tile.is-tooltip-right .craft-material-tooltip {
  left: auto;
  right: 4px;
  transform: translateY(-50%);
  text-align: right;
}

.craft-material-tile.is-tooltip-left .craft-material-tooltip {
  left: 4px;
  right: auto;
  transform: translateY(-50%);
  text-align: left;
}

.craft-material-tile:hover .craft-material-tooltip,
.craft-material-tile:focus-visible .craft-material-tooltip {
  opacity: 1;
}

.craft-queue-panel--empty {
  padding-top: 12px;
  padding-bottom: 12px;
}

.craft-salvage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  justify-content: start;
  gap: 10px;
  max-height: 28vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.craft-salvage-tile {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--oa-border-soft);
  background: linear-gradient(180deg, rgba(15, 18, 26, 0.96), rgba(9, 11, 17, 0.94));
  overflow: hidden;
  cursor: pointer;
  padding: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.craft-salvage-tile:hover {
  transform: translateY(-1px);
}

.craft-salvage-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.07), rgba(6, 8, 14, 0.92) 65%);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
}

.craft-salvage-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.craft-salvage-tile.is-selected {
  box-shadow: inset 0 0 0 1px rgba(236, 244, 255, 0.42), 0 0 0 1px rgba(236, 244, 255, 0.26), 0 0 14px rgba(236, 244, 255, 0.14);
}

.craft-salvage-tile.is-selected .craft-salvage-icon {
  border-color: rgba(255, 193, 117, 0.82);
}

.craft-salvage-tile--common {
  border-color: rgba(148, 163, 184, 0.28);
}

.craft-salvage-tile--uncommon {
  border-color: rgba(74, 222, 128, 0.5);
}

.craft-salvage-tile--rare {
  border-color: rgba(96, 165, 250, 0.52);
}

.craft-salvage-tile--epic {
  border-color: rgba(192, 132, 252, 0.55);
}

.craft-salvage-tile--legendary {
  border-color: rgba(251, 146, 60, 0.58);
}

.craft-salvage-tile--mythic {
  border-color: rgba(34, 211, 238, 0.6);
}

.craft-salvage-tile--uncommon:hover,
.craft-salvage-tile--uncommon.is-selected {
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.34), 0 0 14px rgba(74, 222, 128, 0.2);
}

.craft-salvage-tile--rare:hover,
.craft-salvage-tile--rare.is-selected {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34), 0 0 14px rgba(96, 165, 250, 0.22);
}

.craft-salvage-tile--epic:hover,
.craft-salvage-tile--epic.is-selected {
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.36), 0 0 15px rgba(192, 132, 252, 0.22);
}

.craft-salvage-tile--legendary:hover,
.craft-salvage-tile--legendary.is-selected {
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.4), 0 0 16px rgba(251, 146, 60, 0.24);
}

.craft-salvage-tile--mythic:hover,
.craft-salvage-tile--mythic.is-selected {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.4), 0 0 16px rgba(34, 211, 238, 0.24);
}

.craft-salvage-preview__name {
  font-size: 14px;
  font-weight: 700;
  color: #f3f0e9;
}

.craft-salvage-preview {
  border-color: rgba(255, 186, 104, 0.2);
  background: linear-gradient(180deg, rgba(15, 18, 26, 0.9), rgba(9, 11, 17, 0.86));
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.craft-salvage-preview__meta {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.craft-salvage-preview__stats {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
}

.craft-salvage-preview__pill {
  border: 1px solid var(--oa-border-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2f0e8;
  background: rgba(14, 16, 24, 0.9);
}

.craft-salvage-preview__pill--common { border-color: rgba(148, 163, 184, 0.35); }
.craft-salvage-preview__pill--uncommon { border-color: rgba(74, 222, 128, 0.5); color: #86efac; }
.craft-salvage-preview__pill--rare { border-color: rgba(96, 165, 250, 0.55); color: #93c5fd; }
.craft-salvage-preview__pill--epic { border-color: rgba(192, 132, 252, 0.58); color: #d8b4fe; }
.craft-salvage-preview__pill--legendary { border-color: rgba(251, 146, 60, 0.62); color: #fdba74; }
.craft-salvage-preview__pill--mythic { border-color: rgba(34, 211, 238, 0.66); color: #67e8f9; }

.craft-salvage-preview__type {
  font-size: 11px;
  color: rgba(203, 213, 225, 0.9);
}

.craft-salvage-stat-chip {
  border: 1px solid rgba(255, 186, 104, 0.3);
  border-radius: 999px;
  background: rgba(14, 16, 24, 0.88);
  color: #f2c06a;
  font-size: 10px;
  padding: 2px 7px;
}

.craft-salvage-stat-chip--muted {
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(203, 213, 225, 0.9);
}

.craft-salvage-action {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(23, 6, 8, 0.62);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  opacity: 0.86;
}

.craft-salvage-action:hover,
.craft-salvage-action:focus-visible {
  border-color: rgba(254, 202, 202, 0.95);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.22), 0 0 10px rgba(239, 68, 68, 0.3);
  transform: scale(1.04);
  opacity: 1;
  outline: none;
}

.craft-salvage-action__danger {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: rgba(254, 202, 202, 0.95);
}

.craft-salvage-action-form {
  position: absolute;
  right: 4px;
  top: 4px;
}

#crafting-root > .oa-panel:last-child {
  margin-top: 14px;
}

#crafting-root > .oa-panel:last-child .craft-salvage-grid {
  padding-top: 2px;
  max-height: none;
}

@media (max-width: 768px) {
  .craft-salvage-grid {
    grid-template-columns: repeat(auto-fill, 64px);
  }

  .craft-salvage-tile {
    width: 64px;
    height: 64px;
  }

  .craft-salvage-action {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 1024px) {
  .craft-layout {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: stretch;
  }

  .craft-layout__right {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1400px) {
  .craft-layout {
    grid-template-columns: 340px minmax(0, 1fr) 390px;
    align-items: stretch;
  }

  .craft-layout__right {
    grid-column: auto;
  }
}
/* trade-skill styles: no-op touch */
