:root {
  --rs-bg: #2b2015;
  --rs-bg-2: #1c140c;
  --rs-wood-light: #8a6a3f;
  --rs-wood: #6b4f2e;
  --rs-wood-dark: #3c2b18;
  --rs-border-dark: #140d06;
  --rs-border-light: #c9a35f;

  --rs-parchment: #ddc794;
  --rs-parchment-2: #cbb17e;
  --rs-parchment-dark: #b89a67;
  --rs-parchment-text: #2c1d0f;
  --rs-parchment-text-dim: #5a4527;

  --rs-gold: #ffd700;
  --rs-gold-bright: #ffe873;
  --rs-gold-dim: #a9790a;

  --rs-text: #f1e6c8;
  --rs-text-dim: #b9a877;
  --rs-text-faint: #7d6d48;

  --rs-red: #d6483c;
  --rs-green: #4f9e3e;

  --radius: 3px;
  --max-width: 1100px;
  --font: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: Verdana, Geneva, Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--rs-bg);
  color: var(--rs-text);
  font-family: var(--font-body);
  line-height: 1.5;
}

body {
  background-color: var(--rs-bg);
  background-image:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.10) 0px, rgba(0,0,0,0.10) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 4px),
    radial-gradient(ellipse at top, rgba(255,215,0,0.05), transparent 55%),
    linear-gradient(180deg, var(--rs-bg), var(--rs-bg-2));
}

a { color: var(--rs-gold); text-decoration: none; }
a:hover { color: var(--rs-gold-bright); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Text outline helper, mimics classic RS gold/white outlined interface text */
.outline-text {
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 0 2px 3px rgba(0,0,0,0.6);
}

/* Header */
.site-header {
  border-bottom: 3px solid var(--rs-border-dark);
  background:
    linear-gradient(180deg, var(--rs-wood-light) 0%, var(--rs-wood) 45%, var(--rs-wood-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -3px 6px rgba(0,0,0,0.35), 0 3px 10px rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--rs-gold);
  white-space: nowrap;
}
.brand.outline-text-apply {}
.brand { text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }

.brand .rune {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rs-gold-bright), var(--rs-gold-dim) 65%, #6b4a06 100%);
  border: 2px solid var(--rs-border-dark);
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.6), inset -2px -2px 3px rgba(0,0,0,0.5), 0 0 6px rgba(255,215,0,0.35);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand .rune svg {
  width: 60%;
  height: 60%;
  color: #3c2b06;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.3));
}

.brand:hover { color: var(--rs-gold-bright); }

nav.main-nav {
  display: none;
  position: absolute;
  top: 66px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--rs-wood), var(--rs-wood-dark));
  border-bottom: 3px solid var(--rs-border-dark);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  z-index: 15;
}

nav.main-nav.open { display: flex; }

nav.main-nav a {
  font-family: var(--font);
  color: var(--rs-text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  background: linear-gradient(180deg, var(--rs-wood-light), var(--rs-wood-dark));
  border: 1px solid var(--rs-border-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -2px 3px rgba(0,0,0,0.35);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

nav.main-nav a:hover {
  color: var(--rs-gold-bright);
  border-color: var(--rs-border-light);
}

nav.main-nav a.active {
  color: var(--rs-gold);
  background: linear-gradient(180deg, var(--rs-wood-dark), var(--rs-wood));
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), inset 0 -1px 0 rgba(255,255,255,0.1);
  border-color: var(--rs-gold-dim);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--rs-wood-light), var(--rs-wood-dark));
  border: 1px solid var(--rs-border-dark);
  color: var(--rs-gold);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  color: var(--rs-gold-bright);
  border-color: var(--rs-border-light);
}

/* Announcement strip under the header */
.site-notice {
  background: linear-gradient(180deg, #2f7a48 0%, #1f5433 100%);
  border-bottom: 2px solid #143a23;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  color: #eaf6e6;
  font-size: 0.85rem;
}

.site-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

.site-notice-text strong { color: #ffe873; }

.site-notice-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffe873;
  box-shadow: 0 0 0 0 rgba(255,232,115,0.7);
  animation: site-notice-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes site-notice-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,232,115,0.6); }
  70% { box-shadow: 0 0 0 7px rgba(255,232,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,232,115,0); }
}

.site-notice-close {
  background: none;
  border: none;
  color: #eaf6e6;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 6px;
  opacity: 0.75;
}

.site-notice-close:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .site-notice-dot { animation: none; }
}

/* Hero */
.hero {
  padding: 52px 0 32px;
  text-align: center;
  border-bottom: 3px solid var(--rs-border-dark);
  background: linear-gradient(180deg, rgba(107,79,46,0.18), transparent 70%);
}

.hero h1 {
  font-family: var(--font);
  font-size: 2.3rem;
  margin: 0 0 12px;
  color: var(--rs-text);
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 0 3px 4px rgba(0,0,0,0.6);
}

.hero h1 span { color: var(--rs-gold); }

.hero p {
  color: var(--rs-text-dim);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* Homepage search bar */
.search-bar {
  margin: 20px 0 4px;
}

.search-bar input {
  width: 100%;
  background: var(--rs-parchment-dark);
  border: 2px solid var(--rs-wood-dark);
  outline: 1px solid var(--rs-border-light);
  outline-offset: -4px;
  border-radius: var(--radius);
  color: var(--rs-parchment-text);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.35);
}

.search-bar input::placeholder {
  color: var(--rs-parchment-text-dim);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--rs-gold-dim);
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.35), 0 0 0 2px rgba(169,121,10,0.35);
}

/* Calculator grid */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 36px 0;
}

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

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

.calc-card {
  background: linear-gradient(180deg, var(--rs-wood-light) 0%, var(--rs-wood) 55%, var(--rs-wood-dark) 100%);
  border: 2px solid var(--rs-border-dark);
  border-radius: var(--radius);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2), inset -1px -1px 0 rgba(0,0,0,0.5), 0 3px 6px rgba(0,0,0,0.4);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.calc-card:hover {
  border-color: var(--rs-gold-dim);
  transform: translateY(-2px);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.25), inset -1px -1px 0 rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.5), 0 0 10px rgba(255,215,0,0.25);
}

.calc-card .icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 4px;
  background: radial-gradient(circle at 35% 30%, var(--rs-parchment), var(--rs-parchment-dark));
  border: 2px solid var(--rs-border-dark);
  border-radius: var(--radius);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.35), inset 0 -1px 0 rgba(255,255,255,0.3);
}

.calc-card .icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

.calc-card h3 {
  font-family: var(--font);
  margin: 0;
  font-size: 1.05rem;
  color: var(--rs-gold);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

.calc-card p {
  margin: 0;
  color: var(--rs-text-dim);
  font-size: 0.88rem;
  flex-grow: 1;
}

.calc-card .go {
  font-size: 0.82rem;
  color: var(--rs-gold-bright);
  font-weight: 700;
  font-family: var(--font);
}

/* Page layout for calculator pages */
.page-head {
  padding: 32px 0 8px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--rs-text-faint);
  margin-bottom: 10px;
  font-family: var(--font);
}

.breadcrumb a { color: var(--rs-text-faint); }
.breadcrumb a:hover { color: var(--rs-gold); }

.page-head h1 {
  font-family: var(--font);
  margin: 0 0 8px;
  font-size: 1.75rem;
  color: var(--rs-text);
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

.page-head .subtitle {
  color: var(--rs-text-dim);
  max-width: 700px;
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 20px 0 48px;
  align-items: stretch;
}

/* Parchment-style content panels, framed like a bordered scroll/interface window */
.panel {
  background: linear-gradient(180deg, var(--rs-parchment), var(--rs-parchment-2));
  border: 3px solid var(--rs-wood-dark);
  outline: 1px solid var(--rs-border-light);
  outline-offset: -5px;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.15);
  padding: 22px;
  color: var(--rs-parchment-text);
  display: flex;
  flex-direction: column;
}

.panel > .note-box:last-child {
  margin-top: auto;
}

.panel h2 {
  font-family: var(--font);
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--rs-wood-dark);
  border-bottom: 2px solid var(--rs-parchment-dark);
  padding-bottom: 10px;
}

/* Fields centre themselves by default — this only visibly matters for a field that also
   carries a max-width (a short number box, a search bar), since a field left at its natural
   full width has nowhere left to move. Inputs/selects are inline-level, so centred text-align
   on the field centres them too without needing per-field markup. */
.field {
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--rs-parchment-text-dim);
  margin-bottom: 6px;
  font-weight: 700;
  text-align: center;
}

.field .hint {
  font-size: 0.75rem;
  color: var(--rs-parchment-text-dim);
  margin-top: 4px;
  font-style: italic;
}

/* A standalone compact field (search bars, the hiscores widget) centred in its panel instead
   of sitting flush against the left edge of a now full-width panel. */
.field-center {
  max-width: 320px;
}

.field-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.field-row .field { flex: 1; }

input[type="number"],
input[type="text"],
select {
  width: 100%;
  background: var(--rs-parchment-dark);
  border: 2px solid var(--rs-wood-dark);
  color: var(--rs-parchment-text);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.35);
}

/* Short numeric-value fields (levels, counts, days, gp amounts) don't need to stretch the
   full width of a panel — a compact box reads more like an actual input, not a text area. */
input[type="number"],
input[type="text"][inputmode="numeric"] {
  width: auto;
  max-width: 180px;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--rs-gold-dim);
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.35), 0 0 0 2px rgba(169,121,10,0.35);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--rs-gold-dim);
  height: 18px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: var(--rs-wood-dark);
  border: 1px solid var(--rs-border-dark);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rs-gold-bright), var(--rs-gold-dim));
  border: 2px solid var(--rs-border-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: var(--rs-wood-dark);
  border: 1px solid var(--rs-border-dark);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rs-gold-bright), var(--rs-gold-dim));
  border: 2px solid var(--rs-border-dark);
}

.range-value {
  float: right;
  color: var(--rs-wood-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.checkbox-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkbox-field input { width: auto; accent-color: var(--rs-gold-dim); }
.checkbox-field label { margin: 0; text-align: left; }

.btn {
  display: inline-block;
  font-family: var(--font);
  background: linear-gradient(180deg, var(--rs-gold-bright), var(--rs-gold-dim) 65%, #6b4a06);
  color: #2c1d0f;
  font-weight: 700;
  border: 2px solid var(--rs-border-dark);
  padding: 11px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 3px 5px rgba(0,0,0,0.5);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0,0,0,0.4); }

.btn-secondary {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--rs-parchment), var(--rs-parchment-dark));
  border: 2px solid var(--rs-wood-dark);
  color: var(--rs-parchment-text);
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}
.btn-secondary:hover { border-color: var(--rs-gold-dim); color: var(--rs-gold-dim); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.stat {
  background: linear-gradient(180deg, var(--rs-wood) 0%, var(--rs-wood-dark) 100%);
  border: 2px solid var(--rs-border-dark);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), inset -1px -1px 0 rgba(0,0,0,0.4);
}

.stat .label {
  font-size: 0.7rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rs-text-faint);
  margin-bottom: 4px;
}

.stat .value {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--rs-gold);
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

.stat .sub {
  font-size: 0.68rem;
  color: var(--rs-text-faint);
  margin-top: 3px;
  font-style: italic;
}

.stat .value.highlight { color: var(--rs-gold-bright); }
.stat .value.warn { color: var(--rs-red); }

.stat .stat-sub {
  font-size: 0.68rem;
  color: var(--rs-text-faint);
  margin-top: 3px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 8px;
  border: 2px solid var(--rs-wood-dark);
}

table.data-table th,
table.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rs-parchment-dark);
  text-align: left;
}

table.data-table th {
  font-family: var(--font);
  color: var(--rs-gold);
  background: linear-gradient(180deg, var(--rs-wood), var(--rs-wood-dark));
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

table.data-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.05); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Gemstone Crab XP breakdown — same data-table base, just a little more emphasis on the numbers */
#xpTable td { padding: 10px 12px; }
#xpTable td.num {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rs-wood-dark);
}

.reward-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.wiki-link {
  font-size: 0.72rem;
  color: var(--rs-text-faint);
  text-decoration: underline;
  white-space: nowrap;
}
.wiki-link:hover { color: var(--rs-gold); }

.note-box {
  background: rgba(0,0,0,0.08);
  border-left: 4px solid var(--rs-gold-dim);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--rs-parchment-text-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 14px;
}

.divider { height: 2px; background: var(--rs-parchment-dark); margin: 20px 0; border-radius: 1px; }

/* Footer */
.site-footer {
  border-top: 3px solid var(--rs-border-dark);
  background: linear-gradient(180deg, var(--rs-wood-dark), var(--rs-bg-2));
  padding: 28px 0 40px;
  color: var(--rs-text-faint);
  font-size: 0.8rem;
  margin-top: 20px;
}

.site-footer .foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-family: var(--font);
}

.site-footer .foot-links a { color: var(--rs-text-dim); }

/* Bank/loot-window style item grid */
.loot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.loot-slot {
  background: linear-gradient(180deg, var(--rs-wood) 0%, var(--rs-wood-dark) 100%);
  border: 2px solid var(--rs-border-dark);
  border-radius: var(--radius);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), inset -1px -1px 0 rgba(0,0,0,0.4);
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.loot-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

.loot-qty {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--rs-gold-bright);
  text-shadow: 1px 1px 0 #000;
}

.loot-name {
  font-size: 0.62rem;
  color: var(--rs-text-faint);
  line-height: 1.15;
}

/* Shared "fetch your stats" username widget */
.hiscores-fetch {
  background: var(--rs-parchment-dark);
  border: 2px solid var(--rs-wood-dark);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 auto 18px;
  max-width: 300px;
  text-align: center;
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.25);
}

.hiscores-fetch label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rs-parchment-text);
  margin-bottom: 6px;
}

.hint-inline {
  font-weight: 400;
  font-style: italic;
  color: var(--rs-parchment-text-dim);
  font-size: 0.72rem;
}

.hiscores-row {
  display: flex;
  gap: 8px;
}

.hiscores-input {
  flex: 1;
  min-width: 0;
  background: var(--rs-parchment);
  border: 1px solid var(--rs-wood-dark);
  border-radius: 3px;
  color: var(--rs-parchment-text);
  padding: 8px 10px;
  font-size: 0.85rem;
  box-shadow: inset 1px 2px 3px rgba(0,0,0,0.3);
}

.hiscores-status {
  font-size: 0.72rem;
  color: var(--rs-parchment-text-dim);
  margin-top: 6px;
  min-height: 1em;
}
.hiscores-status.ok { color: var(--rs-green); }
.hiscores-status.error { color: var(--rs-red); }

/* Mode toggle (Target / Banked Fur style tabs) */
.mode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.mode-toggle-btn {
  flex: 1;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--rs-wood-dark);
  background: linear-gradient(180deg, var(--rs-parchment), var(--rs-parchment-dark));
  color: var(--rs-parchment-text-dim);
  cursor: pointer;
}

.mode-toggle-btn.active {
  background: linear-gradient(180deg, var(--rs-gold-bright), var(--rs-gold-dim) 65%, #6b4a06);
  color: #2c1d0f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.3);
}

.mode-toggle-btn:hover:not(.active) { border-color: var(--rs-gold-dim); }

/* Banked fur input grid */
.fur-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.fur-grid-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--rs-parchment-dark);
  border: 2px solid var(--rs-wood-dark);
  border-radius: var(--radius);
  padding: 6px 8px;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.25);
}

.fur-grid-icon {
  width: 24px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

.fur-grid-name {
  font-size: 0.72rem;
  color: var(--rs-parchment-text);
  flex-grow: 1;
  line-height: 1.15;
}

input.fur-grid-input {
  width: 56px;
  flex-shrink: 0;
  background: var(--rs-parchment);
  border: 1px solid var(--rs-wood-dark);
  border-radius: 3px;
  color: var(--rs-parchment-text);
  padding: 3px 4px;
  font-size: 0.78rem;
  text-align: right;
  -moz-appearance: textfield;
}
input.fur-grid-input::-webkit-outer-spin-button,
input.fur-grid-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Gemstone Crab gear equipper — a slot grid of dropdowns instead of number inputs */
.gear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

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

.gear-slot {
  background: var(--rs-parchment-dark);
  border: 2px solid var(--rs-wood-dark);
  border-radius: var(--radius);
  padding: 6px 8px;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.25);
}

.gear-slot label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rs-parchment-text-dim);
  margin-bottom: 4px;
}

.gear-slot select {
  font-size: 0.78rem;
  padding: 6px 8px;
}

.gear-slot select:disabled {
  opacity: 0.5;
}

/* Small skill icon inline in a field label */
.label-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin: 0 auto 4px;
}

/* A live icon shown to the left of a select, updated to match the current selection */
.select-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  margin: 0 auto;
}

.select-icon-row select { flex: 1; }

.select-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

/* Gemstone Crab paperdoll — every equippable item in the game, searched live from the wiki */
.paperdoll {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  grid-auto-rows: 60px;
  gap: 6px;
  justify-content: center;
  margin: 4px auto 14px;
}

.doll-slot {
  position: relative;
  background: var(--rs-parchment-dark);
  border: 2px solid var(--rs-wood-dark);
  border-radius: var(--radius);
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
}

.doll-slot:hover, .doll-slot.searching {
  border-color: var(--rs-gold-dim);
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.3), 0 0 0 2px rgba(169,121,10,0.4);
}

.doll-slot.empty-cell {
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
}

.doll-slot.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.doll-slot img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

.doll-slot .doll-placeholder {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rs-parchment-text-dim);
  text-align: center;
  line-height: 1.15;
}

.gear-search-panel {
  background: var(--rs-parchment-dark);
  border: 2px solid var(--rs-wood-dark);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0 0 16px;
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.3);
}

.gear-search-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.gear-search-header strong {
  color: var(--rs-parchment-text);
  font-family: var(--font);
  font-size: 0.85rem;
}

.gear-search-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--rs-parchment-text-dim);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}
.gear-search-close:hover { color: var(--rs-red); }

.gear-search-results {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--rs-wood-dark);
  border-radius: var(--radius);
  background: var(--rs-parchment);
}

.gear-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.8rem;
  color: var(--rs-parchment-text);
}
.gear-search-row:last-child { border-bottom: none; }
.gear-search-row:hover { background: rgba(169,121,10,0.18); }
.gear-search-row.unequip { font-style: italic; color: var(--rs-parchment-text-dim); }

.gear-search-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.gear-search-empty {
  padding: 10px;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--rs-parchment-text-dim);
  text-align: center;
}

/* Live strip of currently-equipped item icons, shown above the results */
.equip-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.equip-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--rs-wood-dark);
  border: 1px solid var(--rs-border-dark);
  border-radius: 12px;
  padding: 3px 10px 3px 4px;
  font-size: 0.68rem;
  color: var(--rs-text-dim);
}

.equip-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.price-locked {
  color: var(--rs-parchment-text-dim);
  font-style: italic;
}

.price-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rs-text-faint);
  background: var(--rs-wood-dark);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.fur-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fur-icon-sm {
  width: 20px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

/* Kingdom of Miscellania worker-allocation map */
.workers-pool {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--font);
  margin-bottom: 14px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--rs-wood), var(--rs-wood-dark));
  border: 2px solid var(--rs-border-dark);
  border-radius: var(--radius);
  color: var(--rs-text);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), inset -1px -1px 0 rgba(0,0,0,0.4);
}
.workers-pool-info { display: flex; align-items: baseline; gap: 8px; }
.workers-pool-label { font-size: 0.8rem; color: var(--rs-text-dim); }
.workers-pool-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rs-gold-bright);
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}
.workers-pool-total { color: var(--rs-text-faint); font-size: 0.85rem; }
.workers-bar {
  flex: 1 1 140px;
  height: 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--rs-border-dark);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}
.workers-bar > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--rs-gold-bright), var(--rs-gold-dim));
  transition: width 0.2s ease;
}
.workers-pool .btn-secondary { margin-left: auto; }

.kingdom-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 10px 0 8px;
  background: radial-gradient(ellipse at 50% 42%, #5f97b5 0%, #3d7290 55%, #1f3f52 100%);
  border: 3px solid var(--rs-wood-dark);
  outline: 1px solid var(--rs-border-light);
  outline-offset: -5px;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 0 24px rgba(0,0,0,0.35);
  overflow: hidden;
}
.kingdom-map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kmap-path {
  fill: none;
  stroke: var(--rs-gold-bright);
  stroke-width: 0.45;
  stroke-dasharray: 1.8 1.6;
  opacity: 0.55;
}

.kmap-castle {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.kmap-castle-base {
  position: absolute;
  bottom: 18px;
  width: 44px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  filter: blur(2px);
}
.kmap-castle-icon { font-size: 2.3rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }
.kmap-castle .kmap-label {
  padding: 1px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.5);
  color: var(--rs-text);
  font-size: 0.7rem;
}

/* One card per location */
.kmap-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 156px;
  padding: 10px 8px 9px;
  background: linear-gradient(180deg, var(--rs-wood-light), var(--rs-wood-dark));
  border: 2px solid var(--rs-border-dark);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 3px 8px rgba(0,0,0,0.5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kmap-marker.active {
  border-color: var(--rs-gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 8px rgba(0,0,0,0.5), 0 0 12px rgba(255,215,0,0.35);
}

.kmap-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rs-parchment), var(--rs-parchment-dark));
  border: 2px solid var(--rs-wood-dark);
  outline: 2px solid var(--rs-gold-dim);
  outline-offset: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.3), 0 2px 5px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.kmap-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

.kmap-label {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rs-text);
  text-align: center;
  line-height: 1.15;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}
.kmap-tag {
  margin-top: -2px;
  padding: 0 7px;
  border: 1px solid var(--rs-gold-dim);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rs-gold);
}

.kmap-stepper { display: flex; align-items: center; gap: 6px; }
.kmap-step {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--rs-gold-bright), var(--rs-gold-dim) 65%, #6b4a06);
  border: 1px solid var(--rs-border-dark);
  color: #2c1d0f;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.kmap-step:hover:not(:disabled) { filter: brightness(1.12); }
.kmap-step:active:not(:disabled) { transform: translateY(1px); }
.kmap-step:disabled { opacity: 0.35; cursor: default; }
.kmap-step:focus-visible,
.kmap-choice-btn:focus-visible { outline: 2px solid var(--rs-gold-bright); outline-offset: 2px; }

.kmap-count {
  min-width: 52px;
  text-align: center;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rs-gold-bright);
  text-shadow: 1px 1px 0 #000;
  font-variant-numeric: tabular-nums;
}
.kmap-count::after {
  content: " / 10";
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--rs-text-faint);
  text-shadow: none;
}

.kmap-choice-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.kmap-choice-btn {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9px;
  border: 1px solid var(--rs-border-dark);
  background: linear-gradient(180deg, var(--rs-wood-light), var(--rs-wood-dark));
  color: var(--rs-text-dim);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.kmap-choice-btn:hover { color: var(--rs-gold-bright); }
.kmap-choice-btn.active {
  background: linear-gradient(180deg, var(--rs-gold-bright), var(--rs-gold-dim));
  color: #2c1d0f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.35);
}

.kmap-marker.locked { opacity: 0.5; filter: grayscale(0.5); pointer-events: none; }
.kmap-marker.locked .kmap-tag { color: #ff9b8f; border-color: #ff9b8f; }

@media (max-width: 640px) {
  /* On phones the free-floating map doesn't fit: show the locations as a tidy two-column grid */
  .kingdom-map { aspect-ratio: auto; padding: 10px; }
  .kingdom-map-bg,
  .kmap-castle { display: none; }
  #kmapMarkers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kmap-marker { position: static; transform: none; width: auto; }
  .kmap-count { min-width: 46px; }
}

/* ---------- Gemstone Crab setup panel ---------- */
.setup-section {
  padding: 18px 0;
  border-top: 2px solid var(--rs-parchment-dark);
}
.setup-section:first-of-type { border-top: none; padding-top: 4px; }

.setup-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--rs-wood-dark);
}
.setup-title::before {
  content: "";
  align-self: center;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rs-gold), var(--rs-gold-dim));
  box-shadow: 0 0 0 1px rgba(60,43,24,0.35);
}
.setup-title-note {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: var(--rs-parchment-text-dim);
}

/* Hiscores lookup: a slim full-width bar instead of a centred box */
/* Shared username lookup: a compact, centred card used by every calculator */
.hiscores-fetch {
  max-width: 360px;
  margin: 0 auto 16px;
  padding: 10px 12px 12px;
  text-align: center;
}
.hiscores-fetch label { display: block; margin-bottom: 8px; text-align: center; font-size: 0.85rem; }
.hiscores-fetch .hint-inline { display: block; margin-top: 2px; }
.hiscores-row { gap: 6px; }
.hiscores-input { padding: 7px 10px; font-size: 0.85rem; text-align: left; }
.hiscores-go { padding: 7px 16px; font-size: 0.8rem; }
.hiscores-status { min-height: 0; text-align: center; }
.hiscores-status:empty { display: none; }

/* Skill / progress cards */
.stat-grid,
.goal-grid,
.opt-grid {
  display: grid;
  gap: 12px;
}
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-grid  { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(60,43,24,0.35);
  border-radius: var(--radius);
  background: rgba(60,43,24,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:focus-within {
  border-color: var(--rs-gold-dim);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 0 2px rgba(169,121,10,0.25);
}

.stat-card-head {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 !important;
  font-family: var(--font);
  font-size: 0.9rem !important;
  color: var(--rs-wood-dark) !important;
}
.stat-card-head .label-icon { display: inline-block; width: 22px; height: 22px; margin: 0; }

.stat-card input[type="text"] {
  width: 100%;
  max-width: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-card .hint {
  min-height: 1.1em;
  margin: 0;
  text-align: center;
  font-style: normal;
  font-weight: 700;
  color: var(--rs-gold-dim);
}

.stat-card.solo {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 16px;
}

/* Level | XP segmented toggle (real radio inputs, so keyboard + JS keep working) */
.seg {
  display: flex;
  align-self: center;
  padding: 2px;
  border: 1px solid rgba(60,43,24,0.45);
  border-radius: 6px;
  background: rgba(60,43,24,0.16);
}
.seg label {
  position: relative;
  display: block;
  margin: 0;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--rs-parchment-text-dim);
  cursor: pointer;
  user-select: none;
}
.seg input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.seg label:hover { color: var(--rs-parchment-text); }
.seg label:has(input:checked) {
  color: var(--rs-gold-bright);
  background: linear-gradient(180deg, var(--rs-wood-light), var(--rs-wood-dark));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 2px rgba(0,0,0,0.4);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
}
.seg label:has(input:focus-visible) { outline: 2px solid var(--rs-gold-dim); outline-offset: 1px; }

/* Selects: left-aligned label above a full-width select */
.opt-grid .field,
.goal-skill { margin: 0; text-align: left; }
.opt-grid .field label,
.goal-skill label { text-align: left; }
.opt-grid .select-icon-row,
.goal-skill select { max-width: none; margin: 0; }
.goal-skill { margin-bottom: 12px; }

.setup-panel .paperdoll { margin-top: 0; }

@media (max-width: 800px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .opt-grid,
  .goal-grid { grid-template-columns: minmax(0, 1fr); }
  .setup-title-note { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Toggle switches, range header, full-width inputs in option grids ---------- */
.opt-grid .field input[type="text"],
.opt-grid .field input[type="number"] { width: 100%; max-width: none; }
.opt-grid .field .hint { text-align: left; }

.range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.range-head label { margin-bottom: 6px; }
.range-head .range-value { float: none; font-size: 0.95rem; }
.opt-grid .field input[type="range"] { margin-top: 6px; }

.toggle-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(60,43,24,0.35);
  border-radius: var(--radius);
  background: rgba(60,43,24,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.toggle-card:has(input:checked) {
  border-color: var(--rs-gold-dim);
  background: rgba(169,121,10,0.14);
}
.toggle-card:has(input:focus-visible) { outline: 2px solid var(--rs-gold-dim); outline-offset: 2px; }
.toggle-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: rgba(60,43,24,0.35);
  border: 1px solid var(--rs-wood-dark);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
  transition: background 0.15s ease;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--rs-parchment), var(--rs-parchment-dark));
  border: 1px solid var(--rs-wood-dark);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transition: transform 0.15s ease;
}
.toggle-card input:checked + .toggle-switch {
  background: linear-gradient(180deg, var(--rs-gold-bright), var(--rs-gold-dim));
}
.toggle-card input:checked + .toggle-switch::after { transform: translateX(18px); }

.toggle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toggle-text strong { font-size: 0.9rem; color: var(--rs-wood-dark); }
.toggle-text small { font-size: 0.75rem; color: var(--rs-parchment-text-dim); }

.toggle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.toggle-card.compact { padding: 10px 12px; }

@media (max-width: 640px) {
  .toggle-list { grid-template-columns: minmax(0, 1fr); }
}

/* "New" ribbon on a calculator card (text comes from CSS so the homepage search ignores it) */
.calc-card { position: relative; }
.calc-card.is-new::after {
  content: "New";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 11px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3f9a5c 0%, #1f5433 100%);
  border: 1px solid #143a23;
  color: #eaf6e6;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 1px 3px rgba(0,0,0,0.5);
}

/* "Track progress for": a compact, centred picker with the skill icon */
.goal-skill {
  max-width: 300px;
  margin: 0 auto 16px;
  text-align: center;
}
.goal-skill label { text-align: center; }
.goal-skill .select-icon-row { max-width: none; margin: 0 auto; }
.goal-skill select { max-width: none; text-align: left; font-weight: 700; }

/* Custom dropdown: every option shows its own icon */
.select-icon-row { position: relative; }
.dd-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.select-icon-row .dd { position: relative; flex: 1; min-width: 0; width: 100%; }

.dd-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: var(--rs-parchment-dark);
  border: 2px solid var(--rs-wood-dark);
  border-radius: var(--radius);
  color: var(--rs-parchment-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.35);
}
.dd-btn:focus-visible,
.dd.open .dd-btn {
  outline: none;
  border-color: var(--rs-gold-dim);
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.35), 0 0 0 2px rgba(169,121,10,0.35);
}
.dd-icon-slot { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; }
.dd-icon { max-width: 24px; max-height: 24px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4)); }
.dd-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-caret {
  flex-shrink: 0;
  margin-left: auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--rs-parchment-text);
}
.dd.open .dd-caret { transform: rotate(180deg); }

.dd-list {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  background: var(--rs-parchment);
  border: 2px solid var(--rs-wood-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}
.dd.open .dd-list { display: block; }
.dd-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 3px;
  color: var(--rs-parchment-text);
  font-size: 0.9rem;
  cursor: pointer;
}
.dd-list li .dd-label { white-space: normal; overflow: visible; }
.dd-list li:hover,
.dd-list li.active { background: rgba(169,121,10,0.25); }
.dd-list li.selected { font-weight: 700; background: rgba(60,43,24,0.12); }
.dd-list li.disabled { opacity: 0.5; cursor: default; }

/* Placeholder look for a dropdown with nothing chosen yet */
.dd-btn.placeholder .dd-label { color: var(--rs-parchment-text-dim); font-style: italic; }

/* Mage Training Arena room cards */
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.room-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(60,43,24,0.35);
  border-radius: var(--radius);
  background: rgba(60,43,24,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.room-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.room-head strong,
.room-head label {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rs-wood-dark);
  text-align: left;
  white-space: nowrap;
}
.room-cap {
  margin-left: auto;
  padding: 1px 8px;
  border: 1px solid var(--rs-gold-dim);
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--rs-gold-dim);
  white-space: nowrap;
}
.room-card .select-icon-row { max-width: none; margin: 0; }
.room-fixed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 2px solid rgba(60,43,24,0.3);
  border-radius: var(--radius);
  background: rgba(60,43,24,0.08);
  color: var(--rs-parchment-text);
  font-size: 0.95rem;
}
.room-fixed .dd-label { flex: 1; }
.room-fixed-note { margin-left: auto; font-size: 0.7rem; font-style: italic; color: var(--rs-parchment-text-dim); }

@media (max-width: 640px) {
  .room-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep every room's spell bar on the same line, even when a room name wraps its header */
.room-head strong,
.room-head label { font-size: 0.88rem; }
.room-card > .select-icon-row,
.room-card > .room-fixed { margin-top: auto; }

/* Side-rail ads (built by js/nav.js on wide screens only): pinned in the empty margins next to
   the 1100px content column, never over it. */
.ad-rail {
  position: fixed;
  top: 124px;
  z-index: 5;
  width: 160px;
  min-height: 600px;
}
.ad-rail-left { left: calc(50% - 550px - 180px); }
.ad-rail-right { right: calc(50% - 550px - 180px); }
.ad-rail-label {
  display: none;
  margin-bottom: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--rs-text-faint);
}
@media (max-width: 1499px), (max-height: 779px) {
  .ad-rail { display: none; }
}

/* Top banner and sticky bottom banner. Both keep their full width but have no height (and show
   no frame or label) until the ad is actually filled. */
.ad-slot-label {
  display: none;
  margin-bottom: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--rs-text-faint);
}
.ad-slot.is-filled .ad-slot-label { display: block; }

.ad-top {
  width: 100%;
  max-width: 1010px;
  margin: 0 auto;
  padding: 0 20px;
}
.ad-top:not(.is-filled) { max-height: 0; overflow: hidden; padding: 0; }
.ad-top.is-filled { margin: 14px auto 6px; }

.ad-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-height: 0;
  overflow: hidden;
  text-align: center;
}
.ad-sticky.is-filled {
  max-height: none;
  overflow: visible;
  padding: 6px 40px 8px;
  background: linear-gradient(180deg, var(--rs-wood), var(--rs-wood-dark));
  border-top: 3px solid var(--rs-border-dark);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.55);
}
.ad-sticky ins { max-width: 970px; margin: 0 auto; }
.ad-sticky-close {
  display: none;
  position: absolute;
  top: 4px;
  right: 8px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--rs-border-dark);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--rs-wood-light), var(--rs-wood-dark));
  color: var(--rs-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.ad-sticky.is-filled .ad-sticky-close { display: block; }
.ad-sticky-close:hover { color: var(--rs-gold-bright); }

/* The side-rail label only shows once Google has actually filled the ad. */
.ad-rail.is-filled .ad-rail-label { display: block; }

/* Guide section under each calculator */
.guide { margin-bottom: 40px; line-height: 1.6; }
.guide .guide-lead { font-size: 1.02rem; margin: 0 0 4px; }
.guide h3 {
  margin: 22px 0 8px;
  font-family: var(--font);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--rs-wood-dark);
}
.guide h4 { margin: 14px 0 4px; font-size: 0.95rem; color: var(--rs-wood-dark); }
.guide p { margin: 0 0 8px; }
.guide ul { margin: 0 0 6px 20px; padding: 0; }
.guide li { margin-bottom: 6px; }
.guide-table { margin: 6px 0 4px; font-size: 0.85rem; }
.guide-note {
  margin-top: 20px !important;
  padding-top: 12px;
  border-top: 2px solid var(--rs-parchment-dark);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--rs-parchment-text-dim);
}
.guide-related { font-size: 0.9rem; }
.guide a { color: var(--rs-wood-dark); text-decoration: underline; text-underline-offset: 2px; }
.guide a:hover { color: var(--rs-gold-dim); }
.guide-related a { font-weight: 700; }

/* Brand: gnome inventory slot + two-tone wordmark */
.brand { gap: 12px; }
.brand .rune {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 35%, #6d5231 0%, #3b2a14 70%, #24180b 100%);
  border: 2px solid #0c0803;
  box-shadow:
    inset 1px 1px 0 rgba(255,225,160,0.5),
    inset -1px -1px 0 rgba(0,0,0,0.65),
    0 0 0 1px rgba(201,150,42,0.6),
    0 2px 6px rgba(0,0,0,0.6);
}
.brand .rune svg {
  width: 86%;
  height: 86%;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6));
}
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; line-height: 1; }
.brand-name {
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f3e7c6;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 0 2px 0 #000;
}
.brand-name b {
  font-weight: 900;
  color: transparent;
  background: linear-gradient(180deg, #fff6a8 0%, #ffd81f 45%, #e39a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000);
}
.brand-tag {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d4b56a;
  text-shadow: 1px 1px 0 #000;
}
.brand:hover .brand-name { color: #fff; }
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.15rem; }
}

/* A single-column stack of toggle switches (used in narrow panels) */
.toggle-list.stack { grid-template-columns: minmax(0, 1fr); margin: 4px 0 0; }

/* Brand: pixel sprite */
.brand .rune svg { width: 30px; height: auto; filter: none; image-rendering: pixelated; }
.brand .rune { display: inline-flex; align-items: center; justify-content: center; }
.brand .rune { width: 46px; height: 46px; }
.brand .rune svg { width: 36px; }
/* Brand: yellow outline around the brain, same gold as "OSRS" */
.brand .rune svg {
  filter:
    drop-shadow(1.4px 0 0 #ffd81f) drop-shadow(-1.4px 0 0 #ffd81f)
    drop-shadow(0 1.4px 0 #ffd81f) drop-shadow(0 -1.4px 0 #ffd81f)
    drop-shadow(0 0 4px rgba(255, 216, 31, 0.55));
}
.brand .rune { width: 56px; height: 56px; }
.brand .rune svg { width: 40px; }

/* Footer contact line */
.site-footer .foot-contact { margin: 0 0 14px; line-height: 1.6; }
.site-footer .foot-contact strong { font-family: var(--font); font-size: 0.95rem; letter-spacing: 0.04em; color: var(--rs-text-dim); }
.site-footer .foot-contact a { color: #ffd81f; text-decoration: underline; }
/* Readable links inside parchment panels (About, Privacy) */
.panel > p a { color: var(--rs-wood-dark); text-decoration: underline; text-underline-offset: 2px; }
.panel > p a:hover { color: var(--rs-gold-dim); }

/* Phones: tighter top of the page (notice bar, breadcrumb, title) */
@media (max-width: 600px) {
  .site-notice { font-size: 0.75rem; line-height: 1.3; }
  .site-notice-inner { gap: 8px; padding-top: 5px; padding-bottom: 5px; }
  .site-notice-dot { display: none; }
  .page-head { padding: 14px 0 4px; }
  .breadcrumb { margin-bottom: 6px; }
  .page-head h1 { font-size: 1.45rem; line-height: 1.2; }
  .page-head .subtitle { font-size: 0.9rem; line-height: 1.45; }
  .hero { padding: 20px 0 16px; }
  .hero h1 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px; }
  .hero p { font-size: 0.92rem; line-height: 1.45; }
  .search-bar { margin: 14px 0 2px; }
}

/* Phones: wide tables scroll sideways inside their panel instead of being cut off; the fur
   comparison turns each row into a small card (labels come from the cells' data-label). */
@media (max-width: 640px) {
  table.data-table:not(.stack-mobile) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.data-table th, table.data-table td { padding: 7px 8px; }

  table.stack-mobile, table.stack-mobile tbody { display: block; border: none; }
  table.stack-mobile thead { display: none; }
  table.stack-mobile tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 14px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 2px solid var(--rs-wood-dark);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.05);
  }
  table.stack-mobile td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
    border: none;
  }
  table.stack-mobile td:first-child {
    grid-column: 1 / -1;
    font-family: var(--font);
    font-weight: 700;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--rs-parchment-dark);
  }
  table.stack-mobile td[data-label]::before {
    content: attr(data-label);
    font-size: 0.72rem;
    color: var(--rs-parchment-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

/* Phones: reward wishlist cards keep the checkbox in the top-right corner */
@media (max-width: 640px) {
  table.stack-check tr { position: relative; }
  table.stack-check td:first-child {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 0;
    margin: 0;
    border: none;
    width: auto;
    grid-column: auto;
  }
  table.stack-check td:nth-child(2) {
    grid-column: 1 / -1;
    font-family: var(--font);
    font-weight: 700;
    padding: 0 34px 6px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--rs-parchment-dark);
  }
  table.stack-check .reward-check { width: 24px; height: 24px; }
}

/* Gold marker bar in front of every panel title, same as the setup section titles */
.panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel h2::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rs-gold), var(--rs-gold-dim));
  box-shadow: 0 0 0 1px rgba(60,43,24,0.35);
}

/* Homepage: recent updates */
.updates { margin-top: 28px; margin-bottom: 40px; }
.updates-list { list-style: none; margin: 0; padding: 0; }
.updates-list li {
  display: grid;
  grid-template-columns: 96px 64px 1fr;
  gap: 4px 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rs-parchment-dark);
}
.updates-list li:last-child { border-bottom: none; padding-bottom: 0; }
.updates-list time { font-size: 0.8rem; color: var(--rs-parchment-text-dim); white-space: nowrap; }
.updates-list .upd-text { line-height: 1.5; }
.upd-tag {
  justify-self: start;
  padding: 1px 8px;
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 3px;
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.upd-new { background: linear-gradient(180deg, #2f7a48, #1f5433); }
.upd-update { background: linear-gradient(180deg, #b07a1a, #7d5510); }
@media (max-width: 640px) {
  .updates-list li { grid-template-columns: auto 1fr; }
  .updates-list .upd-text { grid-column: 1 / -1; }
}

/* Loot slots as wiki links, with live GE / High Alchemy lines */
a.loot-slot { text-decoration: none; color: inherit; cursor: pointer; }
a.loot-slot:hover { border-color: var(--rs-gold-dim); transform: translateY(-1px); }
.loot-vals { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; font-size: 0.62rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.loot-val-ge { color: #f6d769; }
.loot-val-ha { color: #9fd0ff; }

/* Summary stats for GE and High Alchemy: readable, colour-coded labels (gold = GE, blue = HA, same as the loot slots) */
.stat .label.label-ge, .stat .label.label-ha { font-weight: 700; letter-spacing: 0.06em; text-shadow: 1px 1px 0 rgba(0,0,0,0.7); }
.stat .label.label-ge { color: #f6d769; }
.stat .label.label-ha { color: #9fd0ff; }
.stat .value.val-ge { color: #ffe27a; }
.stat .value.val-ha { color: #a9d8ff; }

/* Every summary stat label: brighter tan and bolder, so it reads on the dark stat boxes in all calculators */
.stat .label { color: #d9c48a; font-weight: 700; letter-spacing: 0.06em; text-shadow: 1px 1px 0 rgba(0,0,0,0.7); }
.stat .label.label-ge { color: #f6d769; }
.stat .label.label-ha { color: #9fd0ff; }
.stat .sub { color: #b9a877; }
/* Loot slot item names: brighter, so they read on the dark slots */
.loot-name { color: #d2bf8f; }

/* Loot search bar with the Reroll button on its far right, same height, in every calculator */
.loot-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(0, 320px) 1fr;
  align-items: end;
  column-gap: 12px;
  margin-bottom: 14px;
}
.loot-toolbar .field { grid-column: 2; margin-bottom: 0; }
.loot-toolbar .field input[type="text"] { height: 44px; box-sizing: border-box; }
.loot-toolbar .loot-reroll { grid-column: 3; justify-self: end; height: 44px; margin: 0; white-space: nowrap; }
@media (max-width: 720px) {
  .loot-toolbar { grid-template-columns: 1fr; row-gap: 10px; }
  .loot-toolbar .field, .loot-toolbar .loot-reroll { grid-column: 1; }
  .loot-toolbar .field { max-width: none; }
  .loot-toolbar .loot-reroll { justify-self: stretch; }
}
/* Profit / gain in green (a loss stays red via .warn), same in every calculator */
.stat .value.gain { color: #7ee08a; }
@media (max-width: 720px) {
  .loot-toolbar .field { width: 100%; max-width: none; justify-self: stretch; }
}
/* Update labels: same width and centred, so New and Update are the same size */
.upd-tag { box-sizing: border-box; width: 70px; text-align: center; padding: 2px 0; line-height: 1.2; }
.updates-list li { grid-template-columns: 96px 70px 1fr; }
@media (max-width: 640px) {
  .updates-list li { grid-template-columns: auto 1fr; }
}
/* A panel heading row that no longer holds a button: keep the title on the left */
.field-row:has(> h2:only-child) { justify-content: flex-start; }
.field-row:has(> h2:only-child) h2 { width: 100%; }

/* Brand: golden aura on hover / keyboard focus (the logo only, not the text) */
.brand .rune, .brand .rune svg { transition: box-shadow 0.25s ease, filter 0.25s ease; }
.brand:hover .rune,
.brand:focus-visible .rune {
  box-shadow:
    inset 1px 1px 0 rgba(255,225,160,0.5),
    inset -1px -1px 0 rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,216,31,0.9),
    0 0 10px 2px rgba(255,216,31,0.7),
    0 0 26px 6px rgba(255,190,40,0.45);
}
.brand:hover .rune svg,
.brand:focus-visible .rune svg {
  filter:
    drop-shadow(1.4px 0 0 #ffd81f) drop-shadow(-1.4px 0 0 #ffd81f)
    drop-shadow(0 1.4px 0 #ffd81f) drop-shadow(0 -1.4px 0 #ffd81f)
    drop-shadow(0 0 8px rgba(255,216,31,0.95));
}
@media (prefers-reduced-motion: reduce) {
  .brand .rune, .brand .rune svg { transition: none; }
}

/* A note next to a panel title (e.g. Breakdown): right-aligned, wraps under the title on narrow screens */
.panel h2 { flex-wrap: wrap; }
.panel h2 .setup-title-note { margin-left: auto; font-size: 0.72rem; }
@media (max-width: 560px) { .panel h2 .setup-title-note { margin-left: 0; flex-basis: 100%; } }
/* Long links (e.g. Google's partner-sites URL in the privacy policy) must wrap instead of widening the page on phones */
.panel a { overflow-wrap: anywhere; }

/* Brand: no box around the brain, just the sprite with its gold outline (glows on hover) */
.brand .rune,
.brand:hover .rune,
.brand:focus-visible .rune {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  width: 52px;
  height: 48px;
}
.brand .rune svg { width: 46px; }
.brand:hover .rune svg,
.brand:focus-visible .rune svg {
  filter:
    drop-shadow(1.4px 0 0 #ffd81f) drop-shadow(-1.4px 0 0 #ffd81f)
    drop-shadow(0 1.4px 0 #ffd81f) drop-shadow(0 -1.4px 0 #ffd81f)
    drop-shadow(0 0 8px rgba(255,216,31,0.95)) drop-shadow(0 0 18px rgba(255,190,40,0.7));
}
