:root {
  color-scheme: dark;
  --bg: #10151f;
  --panel: #172032;
  --panel-2: #1d2940;
  --text: #f4f7fb;
  --muted: #aab5c5;
  --accent: #e1b869;
  --line: rgba(255,255,255,.12);
  --danger: #ff8d8d;
  font-size: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #273b60 0, transparent 32rem), var(--bg);
  color: var(--text);
}

.shell {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}
.site-nav-link.active {
  border-color: rgba(225,184,105,.72);
  background: rgba(225,184,105,.16);
  color: #ffe2a9;
}
.beta-tag {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  border-radius: 999px;
  padding: 0 6px;
  background: rgba(125,190,255,.16);
  color: #bfe2ff;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

/* The Great Expedition Tracker */
.expedition-shell { width: min(1500px, calc(100% - 28px)); }
.expedition-hero { margin: 28px 0 18px; }
.expedition-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding: 14px;
}
.expedition-controls > label { flex: 0 0 190px; }
.expedition-controls > p { margin: 0 0 4px; color: var(--muted); }
.expedition-stepper { display: grid; grid-template-columns: 36px 64px 36px; gap: 5px; }
.expedition-stepper button { padding: 0; }
.expedition-stepper input { text-align: center; }
.expedition-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.expedition-stat { padding: 15px; }
.expedition-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.expedition-stat strong {
  display: block;
  margin-top: 6px;
  color: #ffe2a9;
  font-size: 24px;
}
.expedition-tracker { margin-top: 28px; }
.expedition-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.expedition-section-head h2 { margin: 0 0 3px; }
.expedition-section-head p { margin: 0; color: var(--muted); }
.expedition-section-head button { width: auto; }
.expedition-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,21,32,.78);
}
.expedition-table {
  width: 100%;
  min-width: 1350px;
  border-collapse: separate;
  border-spacing: 0;
}
.expedition-table th,
.expedition-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px;
  text-align: left;
  vertical-align: middle;
}
.expedition-table tr > :last-child { border-right: 0; }
.expedition-table tbody tr:last-child > * { border-bottom-color: rgba(225,184,105,.35); }
.expedition-table thead th {
  min-width: 154px;
  background: #1c2940;
}
.expedition-table thead th:first-child { min-width: 180px; }
.expedition-table thead span,
.expedition-table thead strong,
.expedition-table thead small { display: block; }
.expedition-table thead span { color: #ffe2a9; font-weight: 950; }
.expedition-table thead strong { margin: 2px 0; font-size: 12px; }
.expedition-table thead small { color: var(--muted); font-weight: 700; }
.expedition-character-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #172032;
}
.expedition-field-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.expedition-day-cell { background: rgba(23,32,50,.5); }
.expedition-day-cell.complete { background: rgba(96,165,104,.1); }
.expedition-day-cell select,
.expedition-character-cell input { min-height: 36px; padding: 7px 9px; }
.expedition-task-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.expedition-task-check input { width: 17px; min-height: 17px; margin: 0; }
.expedition-day-cell.complete .expedition-task-check { color: #bdebc2; }
.expedition-character-total,
.expedition-table tfoot td {
  white-space: nowrap;
}
.expedition-character-total strong,
.expedition-character-total span,
.expedition-character-total small,
.expedition-table tfoot strong,
.expedition-table tfoot span,
.expedition-table tfoot small { display: block; }
.expedition-character-total strong,
.expedition-table tfoot strong { color: #ffe2a9; }
.expedition-character-total span,
.expedition-table tfoot span { margin-top: 3px; font-size: 11px; font-weight: 800; }
.expedition-character-total small,
.expedition-table tfoot small { margin-top: 2px; color: var(--muted); }
.expedition-total-column { background: rgba(225,184,105,.08); }
.expedition-table tfoot th,
.expedition-table tfoot td {
  border-bottom: 0;
  background: #1c2940;
}
.expedition-table tfoot th {
  position: sticky;
  left: 0;
  z-index: 2;
  color: #ffe2a9;
}
.expedition-grand-total { background: rgba(225,184,105,.18) !important; }
.expedition-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
}
.expedition-guide h2 { margin: 0 0 5px; font-size: 16px; }
.expedition-guide p { margin: 0; color: var(--muted); line-height: 1.45; }
.expedition-guide a { color: var(--accent); font-weight: 900; white-space: nowrap; }

@media (max-width: 680px) {
  .expedition-stats { grid-template-columns: 1fr; }
  .expedition-controls { align-items: stretch; flex-direction: column; }
  .expedition-controls > label { flex-basis: auto; }
  .expedition-section-head,
  .expedition-guide { align-items: stretch; flex-direction: column; }
  .expedition-section-head button { width: 100%; }
}

/* Hot Cuisine Planner */
.cuisine-shell { width: min(1180px, calc(100% - 28px)); }
.cuisine-hero { margin: 28px 0 18px; }
.cuisine-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}
.cuisine-player-control { flex: 0 0 190px; }
.cuisine-stepper { display: grid; grid-template-columns: 36px 64px 36px; gap: 5px; }
.cuisine-stepper button { padding: 0; }
.cuisine-stepper input { text-align: center; }
.cuisine-quick-actions { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.cuisine-quick-actions > div,
.cuisine-list-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cuisine-quick-actions button,
.cuisine-section-head button,
.cuisine-town-head button { width: auto; }
.cuisine-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 12px;
}
.cuisine-section-head h2 { margin: 0 0 3px; }
.cuisine-section-head p { margin: 0; color: var(--muted); }
.cuisine-recipes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.cuisine-recipes[hidden] { display: none; }
.cuisine-player-setup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 9px;
}
.cuisine-player-card {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(160px, 1.2fr);
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(23,32,50,.8);
  padding: 10px;
}
.cuisine-player-card.new { border-color: rgba(225,184,105,.42); }
.cuisine-recipe {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 9px;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(23,32,50,.74);
  padding: 10px;
  color: var(--text);
  cursor: pointer;
}
.cuisine-recipe.selected {
  border-color: rgba(225,184,105,.42);
  background: linear-gradient(145deg, rgba(225,184,105,.10), rgba(23,32,50,.78));
}
.cuisine-dish-number,
.cuisine-stop-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(225,184,105,.15);
  color: #ffe2a9;
  font-size: 11px;
  font-weight: 950;
}
.cuisine-recipe-copy { min-width: 0; }
.cuisine-recipe h3 { margin: 0 0 4px; line-height: 1.15; }
.cuisine-recipe p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.3; }
.cuisine-recipe-check {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}
.cuisine-recipe:has(.cuisine-recipe-check:focus-visible) { outline: 2px solid #bfe2ff; outline-offset: 2px; }
.cuisine-recipe-choice {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.cuisine-recipe.selected .cuisine-recipe-choice { color: #ffe2a9; }
.cuisine-shopping { margin-top: 30px; }
.cuisine-progress {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.23);
  margin-bottom: 12px;
}
.cuisine-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b7432, #e1b869);
  transition: width .2s ease;
}
.cuisine-route { display: grid; gap: 12px; }
.cuisine-town {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(23,32,50,.82);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.cuisine-town.complete { border-color: rgba(112,210,151,.4); }
.cuisine-town-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.cuisine-town-head > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
}
.cuisine-town-head h3 { margin: 0; }
.cuisine-town-head p { grid-column: 2; margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.cuisine-items { display: grid; overflow-x: auto; }
.cuisine-item {
  display: grid;
  grid-template-columns: 64px minmax(210px, 1fr) var(--check-width, 100px);
  align-items: center;
  gap: 12px;
  min-width: calc(310px + var(--check-width, 100px));
  min-height: 76px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cuisine-item:last-child { border-bottom: 0; }
.cuisine-item.complete { opacity: .56; background: rgba(112,210,151,.045); }
.cuisine-item.complete .cuisine-item-copy strong { text-decoration: line-through; }
.cuisine-item-quantity {
  color: #ffe2a9;
  font-size: 18px;
  font-weight: 950;
  text-align: right;
}
.cuisine-item-copy { display: grid; gap: 2px; min-width: 0; }
.cuisine-item-copy strong { font-size: 14px; }
.cuisine-item-copy span,
.cuisine-item-copy small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.cuisine-item-copy small { color: #c7d8ef; }
.cuisine-player-checks {
  display: grid;
  grid-template-columns: repeat(var(--player-count, 1), minmax(0, 1fr));
  gap: 5px;
  width: var(--check-width, 100px);
}
.cuisine-player-check {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
}
.cuisine-player-check:has(input:checked) {
  border-color: rgba(112,210,151,.5);
  background: rgba(112,210,151,.12);
  color: #bcf4d2;
}
.cuisine-player-check input { width: 15px; min-height: 15px; margin: 0; padding: 0; accent-color: #70d297; }
.cuisine-check-copy { display: grid; gap: 3px; min-width: 0; line-height: 1.1; }
.cuisine-check-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}
.cuisine-check-copy small { color: #ffe2a9; font-size: 15px; font-weight: 950; }
.cuisine-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 44px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.cuisine-empty strong { color: var(--text); }
.cuisine-notes { margin: 24px 0 0; }
.cuisine-notes ul { margin: 8px 0 12px; padding-left: 20px; color: var(--muted); line-height: 1.55; }
.cuisine-notes a { color: #ffe2a9; font-weight: 800; }

@media (max-width: 900px) {
  .cuisine-recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .cuisine-controls,
  .cuisine-section-head,
  .cuisine-town-head { align-items: stretch; flex-direction: column; }
  .cuisine-player-control { flex-basis: auto; }
  .cuisine-player-setup { grid-template-columns: 1fr; }
  .cuisine-player-card { grid-template-columns: 1fr; }
  .cuisine-recipes { grid-template-columns: 1fr; }
  .cuisine-recipe { grid-template-columns: 28px minmax(0, 1fr) 82px; }
  .cuisine-item { grid-template-columns: 52px 210px var(--check-width, 100px); min-width: calc(286px + var(--check-width, 100px)); gap: 8px; padding: 10px; }
  .cuisine-item-quantity { font-size: 16px; }
  .cuisine-town-head button { align-self: start; }
}

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "hero equipment"
    "controls equipment";
  gap: 10px 14px;
  align-items: stretch;
  margin-bottom: 8px;
}

.hero {
  grid-area: hero;
  align-self: end;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: .98; margin-bottom: 8px; }
h2 { font-size: 18px; margin-bottom: 6px; }
h3 { font-size: 16px; margin-bottom: 4px; }
.intro { color: var(--muted); max-width: 640px; font-size: 15px; line-height: 1.42; }

.equipment-card {
  grid-area: equipment;
  position: relative;
  width: 430px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.equipment-hover-panel {
  position: absolute;
  top: 0;
  right: calc(100% + 12px);
  z-index: 30;
  width: min(340px, calc(100vw - 28px));
  display: none;
  text-align: left;
  pointer-events: none;
}
.equipment-hover-panel.active {
  display: block;
}
.equipment-preview {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-auto-rows: 50px;
  gap: 4px;
  justify-content: center;
}
.equipment-slot {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  background: #202731;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.34);
  overflow: hidden;
  min-height: 0;
  padding: 0;
  width: 50px;
}
button.equipment-slot {
  cursor: pointer;
}
button.equipment-slot:hover,
button.equipment-slot:focus-visible {
  border-color: rgba(218,169,79,.75);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.34), 0 0 0 2px rgba(218,169,79,.2);
  outline: none;
}
.equipment-slot.selected-equipment {
  border-color: rgba(125,190,255,.85);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.34), 0 0 0 2px rgba(125,190,255,.22);
}
.equipment-slot.priority-fallback-equipment {
  border-color: rgba(125,190,255,.85);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.34), 0 0 0 2px rgba(125,190,255,.22);
}
.equipment-hover-card {
  display: block;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,28,42,.97);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0,0,0,.34);
  padding: 10px;
}
.equipment-hover-card .item-card-head {
  display: grid;
}
.equipment-hover-card .item-card-head > span {
  display: block;
  min-width: 0;
}
.equipment-hover-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.2;
}
.equipment-hover-card .meta,
.equipment-hover-card .reason {
  display: block;
}
.equipment-hover-empty {
  display: none;
  color: rgba(244,247,251,.42);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.equipment-slot img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}
.equipment-slot span {
  color: rgba(244,247,251,.32);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.equipment-empty-left,
.equipment-empty-right {
  visibility: hidden;
}
.equipment-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
  gap: 5px;
  flex: 1 1 120px;
  min-width: 0;
}
.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  padding: 5px 7px;
  white-space: nowrap;
}
.summary-icon {
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
  object-fit: contain;
}
.summary-empty {
  color: rgba(244,247,251,.38);
  font-size: 11px;
  font-weight: 800;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(23,32,50,.88);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
}

.controls {
  grid-area: controls;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: end;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 10px 12px;
}

.level-label {
  width: auto;
  flex-basis: 86px;
}

.vocation-label {
  max-width: none;
  flex-basis: 160px;
}

.slot-label {
  max-width: none;
  flex-basis: 106px;
}
.result-limit-label { flex-basis: 146px; }
.mode-label { flex-basis: 170px; }
.priority-label { flex-basis: 150px; }
.prefer-vocation-label { flex-basis: 138px; }
.weapon-type-label { flex-basis: 136px; }
.checkbox-label { flex-basis: 138px; }
.controls::after {
  content: "";
  flex-basis: 100%;
  order: 1;
}
.mode-label,
.slot-label,
.priority-label,
.weapon-type-label,
.checkbox-label {
  order: 2;
}

label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

select, input, button {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  min-height: 32px;
  padding: 0 9px;
  width: 100%;
}

button, .file-button {
  cursor: pointer;
  background: linear-gradient(145deg, #d9b15f, #9b7432);
  color: #15110a;
  border: 0;
  font-weight: 900;
}
button:hover, .file-button:hover { filter: brightness(1.08); }

.utilities {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.utilities p { color: var(--muted); margin-bottom: 0; }
code {
  background: rgba(255,255,255,.1);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 7px;
}
.file-button {
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  min-height: 44px;
  border-radius: 14px;
  white-space: nowrap;
}
.file-button input { display: none; }

.results-head {
  display: none;
}
.results-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.results-title-row h2 {
  margin: 0;
}
.result-limit-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.result-limit-label span {
  white-space: nowrap;
}
.result-limit-label input[type="range"] {
  width: 96px;
  min-height: auto;
  padding: 0;
  accent-color: var(--accent);
}
#summary { color: var(--muted); margin: 0; }

.results {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.slot-group {
  flex: 0 0 100%;
  border: 1px solid var(--line);
  background: rgba(23,32,50,.72);
  border-radius: 16px;
  padding: 14px;
}
.slot-group.collapsed {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
}
.slot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.slot-group.collapsed .slot-title {
  margin-bottom: 0;
  gap: 10px;
}
.slot-title h3 { margin: 0; text-transform: capitalize; }
.slot-group.collapsed .slot-title h3 {
  font-size: 14px;
}
.slot-collapse-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.slot-group.collapsed .slot-collapse-button {
  width: 24px;
  height: 24px;
  min-height: 24px;
  border-radius: 999px;
  font-size: 15px;
}
.slot-collapse-button:hover,
.slot-collapse-button:focus-visible {
  border-color: rgba(225,184,105,.55);
  outline: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
}

.item-card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.item-card[data-item-id] {
  cursor: pointer;
}
.item-card.best { outline: 2px solid rgba(225,184,105,.45); }
.item-card.selected {
  border-color: rgba(125,190,255,.78);
  box-shadow: 0 0 0 2px rgba(125,190,255,.18);
}
.item-card.priority-fallback-card {
  border-color: rgba(125,190,255,.78);
  box-shadow: 0 0 0 2px rgba(125,190,255,.18);
}
.meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.icon-only-pill {
  justify-content: center;
  min-width: 28px;
  padding-inline: 7px;
}
.stat-icon {
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
  object-fit: contain;
}
.icon-only-pill .stat-icon {
  width: 14px;
  height: 14px;
}
.reason { color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
a { color: var(--accent); text-decoration: none; font-weight: 800; }
.empty { color: var(--danger); }

@media (max-width: 1080px) {
  .top-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "equipment"
      "controls";
  }
  .equipment-card {
    width: min(100%, 430px);
    justify-self: start;
  }
  .equipment-hover-panel {
    right: auto;
    left: 0;
    top: calc(100% + 8px);
  }
  .equipment-summary { justify-content: center; }
  .hero, .utilities { grid-template-columns: 1fr; display: grid; }
  .controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "vocation level"
      "limit limit"
      "mode slot"
      "priority vocationGear"
      "weapon hand"
      "drops drops";
    width: 100%;
  }
  .level-label,
  .vocation-label,
  .slot-label {
    width: auto;
    max-width: none;
    flex-basis: auto;
  }
  .vocation-label { grid-area: vocation; }
  .level-label { grid-area: level; }
  .result-limit-label { grid-area: limit; }
  .mode-label { grid-area: mode; }
  .slot-label { grid-area: slot; }
  .priority-label { grid-area: priority; }
  .prefer-vocation-label { grid-area: vocationGear; }
  .weapon-type-label { grid-area: weapon; }
  #handLabel { grid-area: hand; }
  .show-drops-label { grid-area: drops; }
  .controls::after { display: none; }
}
@media (max-width: 560px) {
  .controls {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "vocation"
      "level"
      "limit"
      "mode"
      "slot"
      "priority"
      "vocationGear"
      "weapon"
      "hand"
      "drops";
    width: 100%;
  }
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.card-actions a { margin-right: auto; }

.secondary-button,
.danger-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 850;
}
.secondary-button:hover,
.danger-button:hover { filter: brightness(1.15); }
.secondary-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: none;
}
.danger-button {
  background: rgba(255,141,141,.13);
  color: #ffd3d3;
}

.hidden-panel { margin-top: 26px; }
.hidden-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.hidden-head p,
.muted-text {
  color: var(--muted);
  margin: 0;
}
.hidden-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.hidden-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 14px;
  padding: 10px 12px;
}
.hidden-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

@media (max-width: 560px) {
  .hidden-head,
  .hidden-row { display: grid; }
  .card-actions a { width: 100%; }
}

.unavailable-priority {
  border-style: dashed;
  background: rgba(255,255,255,.035);
}
.unavailable-priority h3 { color: #ffdca3; }

/* Desktop gets denser controls and wider result cards; mobile stays stacked. */
@media (min-width: 1200px) {
  .shell { width: min(1440px, calc(100% - 40px)); }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .slot-group:not(.collapsed) { padding: 14px; }
}

@media (min-width: 1500px) {
  .shell { width: min(1580px, calc(100% - 56px)); }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
}

.item-card-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}
.item-card-head h3 { margin-bottom: 2px; }
.item-image {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  padding: 5px;
}
.priority-fallback-image {
  border-color: rgba(125,190,255,.78);
  box-shadow: 0 0 0 2px rgba(125,190,255,.18);
}
.item-image.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.checkbox-label .toggle-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  white-space: nowrap;
}
.checkbox-label input[type="checkbox"] {
  min-height: auto;
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--accent);
}
.icon-button {
  width: 38px;
  min-width: 38px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}
.card-actions .icon-button { margin-left: 0; }

@media (min-width: 1200px) {
  .checkbox-label .toggle-row { width: max-content; min-width: 138px; }
}

.speed-shell {
  width: min(1280px, calc(100% - 28px));
}
.speed-hero {
  margin-bottom: 14px;
}
.speed-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.speed-controls label {
  flex: 1 1 160px;
}
.speed-finder-toggle {
  flex-basis: 240px;
}
.speed-manual-equipment {
  margin-top: -4px;
}
.speed-manual-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.speed-manual-head p {
  color: var(--muted);
  margin: 0;
}
.speed-manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.speed-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  margin: 16px 0;
}
.speed-total-panel,
.speed-equipment-summary {
  border: 1px solid var(--line);
  background: rgba(23,32,50,.88);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
}
.speed-total-panel span,
.speed-source {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.speed-total-panel strong {
  display: block;
  font-size: 44px;
  line-height: .95;
  margin: 8px 0 10px;
  color: #ffe2a9;
}
.speed-total-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}
.speed-gear-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.speed-gear-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 5px 9px 5px 6px;
  font-size: 12px;
  font-weight: 850;
}
.speed-gear-pill img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  object-fit: contain;
}
.speed-gear-pill strong {
  color: #aee3ff;
}
.speed-table-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.speed-table-head p {
  color: var(--muted);
  margin: 0;
}
.speed-table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 10px;
}
.speed-table-actions .checkbox-label {
  min-width: 210px;
}
.speed-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(0,0,0,.12);
}
.speed-equivalent {
  position: sticky;
  left: 0;
  width: max-content;
  max-width: 100%;
  padding: 10px 12px;
  color: #ffe2a9;
  font-size: 12px;
  font-weight: 900;
}
.speed-breakpoint-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 12px;
}
.speed-breakpoint-table th,
.speed-breakpoint-table td {
  border-top: 1px solid rgba(255,255,255,.09);
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 8px 7px;
  text-align: center;
  white-space: nowrap;
}
.speed-breakpoint-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 210px;
  text-align: left;
  background: #172032;
}
.speed-breakpoint-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #1d2940;
  color: var(--text);
}
.speed-breakpoint-table thead th:first-child {
  z-index: 4;
}
.speed-breakpoint-table th span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  margin-top: 2px;
}
.speed-breakpoint-table td {
  color: rgba(244,247,251,.68);
}
.speed-breakpoint-table .reached-breakpoint {
  background: rgba(125,190,255,.09);
  color: var(--text);
}
.speed-breakpoint-table .current-breakpoint {
  background: rgba(225,184,105,.3);
  color: #fff1cf;
  box-shadow: inset 0 0 0 2px rgba(225,184,105,.7);
  font-weight: 950;
}
.speed-breakpoint-table .next-breakpoint {
  box-shadow: inset 0 0 0 2px rgba(125,190,255,.72);
  color: #d8efff;
  font-weight: 900;
}
.speed-breakpoint-table .checkmark {
  color: #aee3ff;
  font-weight: 950;
}

@media (max-width: 760px) {
  .speed-dashboard {
    grid-template-columns: 1fr;
  }
  .speed-table-head,
  .speed-manual-head {
    display: grid;
  }
  .speed-table-actions {
    justify-content: start;
  }
  .speed-total-panel strong {
    font-size: 38px;
  }
}

.quest-shell {
  width: min(1280px, calc(100% - 28px));
}
.quest-hero {
  margin-bottom: 14px;
}
.quest-controls {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr) minmax(150px, 210px) minmax(210px, 1.3fr) auto auto;
  gap: 10px;
  align-items: end;
}
.quest-hide-done,
.quest-hide-unavailable {
  min-width: 150px;
}
.quest-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.quest-stat {
  border: 1px solid var(--line);
  background: rgba(23,32,50,.88);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.quest-stat:hover,
.quest-stat:focus-visible {
  border-color: rgba(225,184,105,.58);
  filter: brightness(1.08);
  outline: none;
}
.quest-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.quest-stat strong {
  display: block;
  margin-top: 8px;
  color: #ffe2a9;
  font-size: 30px;
  line-height: 1;
}
.quest-results-head {
  display: flex;
  align-items: end;
  gap: 14px;
}
.quest-group {
  margin-top: 16px;
}
.quest-group h2 {
  margin-bottom: 10px;
}
.quest-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.quest-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(23,32,50,.88);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
}
.quest-card-done {
  opacity: .56;
}
.quest-card-later {
  border-color: rgba(125,190,255,.35);
}
.quest-card-confirm {
  border-color: rgba(225,184,105,.7);
  background: rgba(43,40,31,.9);
}
.quest-card-unavailable {
  border-color: rgba(255,141,141,.3);
}
.quest-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(64px, auto);
  gap: 10px;
  align-items: start;
}
.quest-card-head h3 {
  margin: 2px 0 0;
  line-height: 1.2;
}
.quest-card-head a {
  color: var(--text);
}
.quest-category {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quest-levels {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 148px;
}
.quest-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 54px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(225,184,105,.45);
  border-radius: 999px;
  background: rgba(225,184,105,.13);
  color: #ffe2a9;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}
.quest-level strong {
  font-size: 12px;
}
.quest-level-recommended {
  border-color: rgba(125,190,255,.4);
  background: rgba(125,190,255,.12);
  color: #d9ebff;
}
.quest-level-review {
  min-width: 58px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(244,247,251,.84);
}
.quest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.quest-tags span {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  color: rgba(244,247,251,.86);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  padding: 6px 8px;
}
.quest-tags .quest-tag-warning {
  border-color: rgba(255,141,141,.35);
  background: rgba(255,141,141,.12);
  color: #ffd0d0;
}
.quest-tags .quest-tag-confirm {
  border-color: rgba(225,184,105,.48);
  background: rgba(225,184,105,.16);
  color: #ffe2a9;
}
.quest-reward {
  color: var(--muted);
  line-height: 1.42;
  margin-bottom: 12px;
}
.quest-meta {
  margin-top: auto;
  color: rgba(174,227,255,.82);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.quest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.quest-actions .secondary-button {
  min-height: 34px;
}
.quest-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quest-card-actions:has(.secondary-button:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quest-card-actions .secondary-button {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  white-space: nowrap;
}
.quest-empty {
  color: var(--muted);
}

@media (max-width: 900px) {
  .quest-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quest-hide-done,
  .quest-hide-unavailable {
    min-width: 0;
  }
  .quest-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .quest-controls,
  .quest-summary-grid {
    grid-template-columns: 1fr;
  }
  .quest-results-head {
    display: grid;
  }
  .quest-card {
    min-height: 0;
  }
}

.achievement-shell {
  width: min(1280px, calc(100% - 28px));
}
.achievement-hero {
  margin-bottom: 14px;
}
.achievement-import {
  display: grid;
  gap: 10px;
}
.achievement-import-collapsed {
  padding: 10px 12px;
}
.achievement-import-collapsed label {
  display: none;
}
.achievement-import textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
}
.achievement-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.achievement-import-actions p {
  color: var(--muted);
  margin: 0;
}
.achievement-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto auto;
  gap: 10px;
  align-items: end;
}
.achievement-hide-quest-linked,
.achievement-hide-unavailable {
  min-width: 180px;
}
.achievement-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.achievement-results-head {
  display: flex;
}
.achievement-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.achievement-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(23,32,50,.88);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
}
.achievement-card-done {
  border-color: rgba(125,190,255,.35);
  background: rgba(34,56,76,.82);
}
.achievement-card-unavailable {
  border-color: rgba(255,141,141,.3);
}
.achievement-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.achievement-card-head h3 {
  margin: 2px 0 0;
  line-height: 1.2;
}
.achievement-card-head a {
  color: var(--text);
}

@media (max-width: 800px) {
  .achievement-controls,
  .achievement-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .achievement-controls,
  .achievement-summary-grid {
    grid-template-columns: 1fr;
  }
  .achievement-card {
    min-height: 0;
  }
}

.wheel-shell {
  width: min(1320px, calc(100% - 28px));
}
.wheel-hero {
  margin-bottom: 14px;
}
.wheel-controls {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1.2fr;
  gap: 10px;
  align-items: end;
}
.wheel-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(310px, .85fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}
.wheel-picture-panel,
.wheel-recommendation,
.wheel-breakpoints {
  border-color: rgba(125,190,255,.18);
}
.wheel-picture-head,
.wheel-breakpoint-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.wheel-picture-head h2,
.wheel-breakpoint-head h2 {
  margin: 0 0 4px;
}
.wheel-picture-head p,
.wheel-breakpoint-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}
.wheel-picture-head .secondary-button {
  min-width: 158px;
}
.wheel-graphic {
  display: grid;
  place-items: center;
  min-height: 420px;
}
.real-wheel-frame {
  position: relative;
  width: min(100%, 522px);
  aspect-ratio: 1;
  background: url("assets/wheel/backdrop_skillwheel.7d55d1b9.webp") top center / contain no-repeat;
  isolation: isolate;
}
.real-wheel-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}
.real-wheel-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("assets/wheel/backdrop_skillwheel_front.8da73f7b.webp") top center / contain no-repeat;
  transform: rotate(var(--wheel-rotation));
  transition: transform .2s ease;
}
.real-wheel-slice path {
  mix-blend-mode: screen;
  stroke: transparent;
  stroke-width: 0;
}
.real-wheel-section-0 {
  --real-inner: #b129a9;
  --real-outer: #7a2374;
  --real-progress: #b129a9;
  --real-progress-back: #7a2374;
}
.real-wheel-section-1 {
  --real-inner: #29a178;
  --real-outer: #236f55;
  --real-progress: #29a178;
  --real-progress-back: #236f55;
}
.real-wheel-section-2 {
  --real-inner: #587d24;
  --real-outer: #576b21;
  --real-progress: #587d24;
  --real-progress-back: #576b21;
}
.real-wheel-section-3 {
  --real-inner: #b12a3d;
  --real-outer: #7a2430;
  --real-progress: #b12a3d;
  --real-progress-back: #7a2430;
}
.real-wheel-outer {
  opacity: .35;
  fill: var(--real-outer);
}
.real-wheel-inner {
  opacity: .85;
  fill: var(--real-inner);
}
.real-wheel-hover {
  fill: transparent;
}
.real-wheel-locked {
  --real-inner: transparent;
  --real-outer: transparent;
}
.real-wheel-corner-light.real-wheel-section-0 {
  filter: invert(18%) sepia(87%) saturate(1496%) hue-rotate(278deg) brightness(120%) contrast(95%);
}
.real-wheel-corner-light.real-wheel-section-1 {
  filter: invert(30%) sepia(82%) saturate(366%) hue-rotate(108deg) brightness(97%) contrast(85%);
}
.real-wheel-corner-light.real-wheel-section-2 {
  filter: invert(32%) sepia(87%) saturate(311%) hue-rotate(35deg) brightness(130%) contrast(110%);
}
.real-wheel-corner-light.real-wheel-section-3 {
  filter: invert(21%) sepia(9%) saturate(7185%) hue-rotate(313deg) brightness(110%) contrast(105%);
}
.real-wheel-progress circle {
  fill: var(--real-progress-back, rgba(255,255,255,.18));
}
.real-wheel-progress path {
  fill: var(--real-progress, rgba(255,255,255,.7));
}
.real-wheel-progress-0 {
  --real-progress: #b129a9;
  --real-progress-back: #7a2374;
}
.real-wheel-progress-1 {
  --real-progress: #29a178;
  --real-progress-back: #236f55;
}
.real-wheel-progress-2 {
  --real-progress: #587d24;
  --real-progress-back: #576b21;
}
.real-wheel-progress-3 {
  --real-progress: #b12a3d;
  --real-progress-back: #7a2430;
}
.real-wheel-core-title {
  fill: rgba(244,247,251,.96);
  font-size: 15px;
  font-weight: 950;
  paint-order: stroke;
  stroke: rgba(4,7,12,.9);
  stroke-width: 3px;
}
.real-wheel-core-points {
  fill: rgba(225,184,105,.95);
  font-size: 12px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(4,7,12,.9);
  stroke-width: 3px;
}
.wheel-graphic svg {
  width: min(100%, 620px);
  aspect-ratio: 1;
  display: block;
  filter: drop-shadow(0 28px 52px rgba(0,0,0,.3));
}
.wheel-outer-halo {
  fill: rgba(225,184,105,.06);
  stroke: rgba(225,184,105,.18);
  stroke-width: 2;
}
.wheel-back {
  fill: url(#wheelMetal);
  stroke: rgba(225,184,105,.28);
  stroke-width: 2;
}
.wheel-ring-line {
  fill: none;
  stroke: rgba(225,184,105,.16);
  stroke-width: 1;
}
.wheel-tier {
  fill: rgba(255,255,255,.045);
  stroke: rgba(3,5,10,.84);
  stroke-width: 1.2;
  transition: fill .18s ease, opacity .18s ease;
}
.wheel-tier-1 {
  opacity: .95;
}
.wheel-tier-2 {
  opacity: .9;
}
.wheel-tier-3 {
  opacity: .84;
}
.wheel-tier-4 {
  opacity: .78;
}
.wheel-domain-a { fill: rgba(92,167,255,.1); }
.wheel-domain-b { fill: rgba(225,184,105,.1); }
.wheel-domain-c { fill: rgba(96,220,157,.1); }
.wheel-domain-d { fill: rgba(197,132,255,.1); }
.wheel-tier-active.wheel-domain-a { fill: rgba(92,167,255,.7); }
.wheel-tier-active.wheel-domain-b { fill: rgba(225,184,105,.75); }
.wheel-tier-active.wheel-domain-c { fill: rgba(96,220,157,.7); }
.wheel-tier-active.wheel-domain-d { fill: rgba(197,132,255,.68); }
.wheel-tier-next {
  fill: rgba(255,255,255,.2);
  stroke: rgba(255,255,255,.66);
  stroke-width: 2;
}
.wheel-divider {
  stroke: rgba(225,184,105,.42);
  stroke-width: 3;
  stroke-linecap: round;
}
.wheel-socket circle {
  fill: rgba(12,18,29,.92);
  stroke: rgba(225,184,105,.35);
  stroke-width: 2;
}
.wheel-socket-active circle {
  fill: #ffe2a9;
  stroke: rgba(255,255,255,.92);
  filter: url(#wheelGlow);
}
.wheel-revelation path {
  fill: rgba(12,18,29,.95);
  stroke: rgba(225,184,105,.42);
  stroke-width: 2;
}
.wheel-revelation text {
  fill: rgba(244,247,251,.7);
  font-size: 12px;
  font-weight: 950;
}
.wheel-revelation-active path {
  filter: url(#wheelGlow);
}
.wheel-revelation-active.wheel-domain-a path { fill: rgba(92,167,255,.86); }
.wheel-revelation-active.wheel-domain-b path { fill: rgba(225,184,105,.9); }
.wheel-revelation-active.wheel-domain-c path { fill: rgba(96,220,157,.86); }
.wheel-revelation-active.wheel-domain-d path { fill: rgba(197,132,255,.86); }
.wheel-revelation-active text {
  fill: #06101b;
}
.wheel-core-aura {
  fill: rgba(225,184,105,.08);
  stroke: rgba(225,184,105,.24);
  stroke-width: 2;
}
.wheel-core {
  fill: rgba(20,28,42,.96);
  stroke: rgba(225,184,105,.42);
  stroke-width: 3;
}
.wheel-core-title {
  fill: var(--text);
  font-size: 20px;
  font-weight: 950;
}
.wheel-core-points,
.wheel-domain-label text {
  fill: rgba(244,247,251,.86);
  font-size: 13px;
  font-weight: 850;
}
.wheel-domain-label text:first-child {
  fill: rgba(255,255,255,.96);
  font-size: 12px;
  text-transform: uppercase;
}
.wheel-verdict-card {
  border: 1px solid rgba(225,184,105,.28);
  background: rgba(43,40,31,.64);
  border-radius: 12px;
  padding: 14px;
}
.wheel-verdict-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wheel-verdict-card h2 {
  margin: 5px 0 8px;
  line-height: 1.12;
}
.wheel-verdict-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}
.wheel-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.wheel-stat {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  border-radius: 10px;
  padding: 10px;
}
.wheel-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.wheel-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.wheel-perk-summary {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,12,21,.24);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}
.wheel-perk-summary h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
.wheel-summary-group + .wheel-summary-group {
  margin-top: 12px;
}
.wheel-summary-group h4 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wheel-summary-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wheel-summary-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  color: rgba(244,247,251,.9);
}
.wheel-summary-group li span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}
.wheel-summary-group li strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}
.wheel-summary-empty,
.wheel-summary-empty-row span {
  color: var(--muted);
}
.wheel-summary-note {
  margin: 12px 0 0;
  color: rgba(174,227,255,.82);
  font-size: 12px;
  line-height: 1.35;
}
.wheel-summary-icon {
  flex: 0 0 auto;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: calc(var(--icon) * var(--size) * -1);
}
.wheel-summary-icon-small {
  --size: 16px;
  width: 16px;
  height: 16px;
  background-image: url("assets/wheel/icons-skillwheel-smallperks.eda84a2f.webp");
}
.wheel-summary-icon-medium {
  --size: 30px;
  width: 30px;
  height: 30px;
  background-image: url("assets/wheel/icons-skillwheel-mediumperks.0a7441c4.webp");
}
.wheel-summary-icon-large {
  --size: 34px;
  width: 34px;
  height: 34px;
  background-image: url("assets/wheel/icons-skillwheel-largeperks.e18f4254.webp");
}
.wheel-why {
  color: var(--muted);
  line-height: 1.44;
}
.wheel-why h3 {
  color: var(--text);
  margin: 10px 0 6px;
}
.wheel-why p {
  margin: 0;
}
.wheel-why a,
.wheel-breakpoint-head a,
.wheel-breakpoint a {
  color: var(--accent);
  font-weight: 900;
}
.wheel-breakpoints {
  margin-top: 14px;
}
.wheel-breakpoint-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}
.wheel-breakpoint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 86px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(23,32,50,.76);
  border-radius: 12px;
  padding: 10px;
}
.wheel-breakpoint-active {
  border-color: rgba(225,184,105,.62);
  background: rgba(43,40,31,.82);
}
.wheel-breakpoint-locked {
  opacity: .58;
}
.wheel-breakpoint span {
  display: inline-flex;
  margin-bottom: 4px;
  color: rgba(174,227,255,.9);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.wheel-breakpoint h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.24;
}
.wheel-breakpoint a {
  border: 1px solid rgba(225,184,105,.35);
  border-radius: 999px;
  padding: 7px 10px;
  text-decoration: none;
}
.wheel-empty {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 940px) {
  .wheel-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wheel-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wheel-controls,
  .wheel-stat-grid,
  .wheel-breakpoint-list {
    grid-template-columns: 1fr;
  }
  .wheel-picture-head,
  .wheel-breakpoint-head {
    display: grid;
  }
  .wheel-picture-head .secondary-button {
    width: 100%;
  }
  .wheel-graphic {
    min-height: 300px;
  }
  .wheel-core-title {
    font-size: 17px;
  }
  .wheel-domain-label text {
    font-size: 11px;
  }
}
