:root {
  color-scheme: dark;
  --bg: #121015;
  --panel: #1b171e;
  --line: #352831;
  --text: #eee8e5;
  --muted: #a99ba6;
  --red: #2fa882;
  --gold: #d3b182;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 12% 46%, #211f1f40, transparent 55%), var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button {
  border: 0;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
button:hover,
a:hover {
  color: #fff;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px;
}
header {
  background: #151414;
  border-bottom: 1px solid var(--line);
}
.header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: 2px;
  font-weight: bold;
}
.brand small {
  display: block;
  font: 9px Arial;
  letter-spacing: 2.6px;
  color: var(--muted);
  margin-top: 1px;
}
.crest,
.mini-crest {
  font: bold 30px Georgia;
  color: var(--gold);
  width: 43px;
  height: 51px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #464343, #1d1b1b);
  border: 1px solid #696464;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
nav a.active {
  color: var(--text);
}
nav a.active:after {
  content: "";
  height: 2px;
  background: var(--red);
  display: block;
  position: relative;
  top: 37px;
}
.navcta {
  border: 1px solid #565151;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 12px;
  white-space: nowrap;
}
.navcta span {
  margin-left: 15px;
}
.menu {
  display: none;
  background: none;
  font-size: 24px;
}
.status {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.status i {
  display: inline-block;
  background: #68b28d;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 12px #68b28d;
}
.statusright {
  letter-spacing: 0.5px;
}
.status b {
  color: var(--red);
  margin: 0 12px;
}
.hero {
  min-height: 574px;
  position: relative;
  overflow: hidden;
  border: 1px solid #3f3b3b;
  border-radius: 10px;
  background: #1f1e1e url("assets/hero.webp") center/cover;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #141414ee 0%, #151414bb 38%, #15141410 75%),
    linear-gradient(0deg, #151414c9, transparent 45%);
}
.hero-content {
  position: relative;
  padding: 61px 56px;
  max-width: 650px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.6px;
  color: var(--gold);
  font-weight: 600;
}
.hero h1 {
  font:
    normal 61px/1.06 Georgia,
    serif;
  letter-spacing: -1.8px;
  margin: 22px 0;
}
.hero em {
  font-style: normal;
  color: #a5dbca;
}
.intro {
  color: #bcb8b8;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.8;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  gap: 25px;
}
.primary {
  background: linear-gradient(120deg, #35b78e, #288a6b);
  color: white;
  border: 1px solid #59cfaa;
}
.primary:hover {
  background: #3abd94;
}
.secondary {
  border: 1px solid #534e4e;
  background: #1f1d1d90;
}
.hero-note {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #b1acac;
  margin-top: 32px;
}
.hero-note span {
  color: var(--gold);
  margin-right: 7px;
}
.hero-label {
  position: absolute;
  right: 30px;
  bottom: 29px;
  text-align: right;
}
.hero-label span {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold);
}
.hero-label small {
  display: block;
  font-size: 10px;
  color: #c1bdbd;
}
.explore {
  padding: 49px 0 40px;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title h2 {
  font: normal 30px Georgia;
  margin-top: 8px;
}
.muted {
  font-size: 11px;
  color: var(--muted);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  text-align: left;
  background: linear-gradient(130deg, #201f1f, #19161c);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: #706b6b;
}
.tile-icon {
  display: block;
  color: var(--gold);
  font-size: 30px;
  height: 48px;
}
.tile-title {
  display: flex;
  justify-content: space-between;
  font: 22px Georgia;
  margin: 10px 0;
}
.tile-title span {
  font: 17px Arial;
  color: #8c8686;
}
.tile p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.tile small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #91b8ac;
  margin-top: 23px;
}
.lower {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(120deg, #1e1c1c, #17151a);
  overflow: hidden;
}
.panel-heading {
  padding: 19px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font: 20px Georgia;
}
.badge {
  font-size: 8px;
  letter-spacing: 1.5px;
  background: #333030;
  color: #9ad2c0;
  padding: 4px 8px;
  border-radius: 3px;
}
article {
  padding: 28px;
}
.date {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #a6a1a1;
}
.date span {
  margin: 0 7px;
}
article h3 {
  font: 29px Georgia;
  margin: 17px 0;
}
article > p:not(.date) {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 15px;
  max-width: 540px;
}
.text-button {
  padding: 0;
  background: none;
  color: #afdcce;
  font-size: 12px;
  margin-top: 12px;
}
.text-button span {
  margin-left: 15px;
}
.journey {
  padding: 29px;
  position: relative;
  background: radial-gradient(ellipse at top right, #3e3b3b60, transparent 70%), #1b1a1a;
}
.mini-crest {
  position: absolute;
  right: 30px;
  top: 30px;
  width: 36px;
  height: 43px;
  font-size: 24px;
}
.journey .eyebrow {
  font-size: 8px;
  max-width: 200px;
}
.journey h2 {
  font: 34px/1.15 Georgia;
  margin: 20px 0 15px;
}
.journey > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  max-width: 280px;
}
.roadmap {
  margin-top: 24px;
  font-size: 10px;
}
.roadmap > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.roadmap i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #4e4a4a;
  border-radius: 50%;
  font-style: normal;
  color: var(--muted);
}
.roadmap i.done {
  color: #7ac7a0;
  border-color: #406452;
}
.roadmap b {
  margin-left: auto;
  font-size: 7px;
  letter-spacing: 1px;
  font-weight: normal;
  color: var(--muted);
}
.wide-banner {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 35px 0 58px;
  padding: 28px 32px;
  border: 1px solid #454242;
  border-radius: 8px;
  background: linear-gradient(100deg, #2b2929, #1c1a1a);
}
.rune {
  font-size: 40px;
  color: var(--gold);
}
.wide-banner h2 {
  font: 25px Georgia;
}
.wide-banner p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.wide-banner a {
  margin-left: auto;
  font-size: 12px;
  color: #afd9cc;
}
.wide-banner a span {
  margin-left: 20px;
}
.footer-top {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-top .brand {
  font-size: 20px;
}
.footer-top > div {
  display: flex;
  gap: 25px;
  font-size: 11px;
  color: var(--muted);
}
footer button {
  background: none;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 30px;
  border-top: 1px solid #262424;
  font-size: 9px;
  color: #888282;
}
.footer-bottom a {
  font-size: 18px;
}
.cookies {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  background: #222020f7;
  border: 1px solid #646060;
  border-radius: 9px;
  box-shadow: 0 10px 60px #0009;
  padding: 20px 25px;
  display: flex;
  gap: 30px;
  align-items: center;
  backdrop-filter: blur(15px);
}
[hidden] {
  display: none !important;
}
.cookies strong {
  font: 19px Georgia;
}
.cookies p {
  font-size: 11px;
  color: #b9b6b6;
  max-width: 600px;
  margin-top: 5px;
}
.cookies p button {
  color: #b9e0d4;
  text-decoration: underline;
  font-size: 11px;
  background: none;
  padding: 0;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions > button {
  padding: 10px 16px;
  border-radius: 5px;
  font-size: 11px;
  border: 1px solid #625e5e;
  background: none;
}
.cookie-actions .primary {
  background: var(--red);
}
dialog {
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 38px;
  background: #222121;
  color: var(--text);
  border: 1px solid #6c6767;
  border-radius: 12px;
  box-shadow: 0 20px 100px #0008;
}
dialog::backdrop {
  background: #09070bba;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font: 30px Georgia;
  margin: 16px 0;
}
dialog > p:last-of-type {
  font-size: 14px;
  color: #c3bfbf;
  white-space: pre-line;
  margin-bottom: 25px;
}
.close {
  position: absolute;
  right: 15px;
  top: 8px;
  background: none;
  font-size: 28px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 50;
  background: var(--red);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
@media (min-width: 1500px) {
  .wrap {
    max-width: 1360px;
  }
  .hero {
    min-height: 620px;
  }
  .hero-content {
    padding-top: 75px;
  }
  .hero h1 {
    font-size: 68px;
  }
}
@media (max-width: 1000px) {
  nav {
    gap: 16px;
  }
  .navcta {
    display: none;
  }
  .hero-content {
    padding: 50px 38px;
  }
  .tiles {
    gap: 12px;
  }
  .tile {
    padding: 20px;
  }
  .hero h1 {
    font-size: 55px;
  }
  .cookies {
    gap: 15px;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .footer-top > div {
    gap: 15px;
  }
}
@media (max-width: 700px) {
  .wrap {
    padding: 0 20px;
  }
  .header {
    height: 80px;
  }
  .brand {
    font-size: 21px;
  }
  .brand small {
    font-size: 7px;
  }
  .crest {
    width: 35px;
    height: 43px;
    font-size: 25px;
  }
  .menu {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    padding: 20px;
    background: #222121;
    z-index: 5;
    border-bottom: 1px solid #575252;
    flex-direction: column;
  }
  nav.open {
    display: flex;
  }
  nav a.active:after {
    display: none;
  }
  .status {
    height: 53px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .statusright {
    display: none;
  }
  .hero {
    min-height: 580px;
    background-position: 62% center;
  }
  .hero:before {
    background:
      linear-gradient(90deg, #151414d9, #15141460),
      linear-gradient(0deg, #151414ec, transparent 80%);
  }
  .hero-content {
    padding: 39px 26px;
  }
  .hero h1 {
    font-size: 46px;
    margin: 22px 0;
    letter-spacing: -1px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .intro {
    font-size: 13px;
  }
  .actions {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
    gap: 10px;
  }
  .hero-note {
    margin-top: 25px;
    font-size: 9px;
  }
  .hero-label {
    bottom: 20px;
    right: 24px;
  }
  .section-title {
    align-items: start;
    gap: 20px;
  }
  .section-title .muted {
    max-width: 105px;
    text-align: right;
    font-size: 10px;
  }
  .section-title h2 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  .explore {
    padding-top: 34px;
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile {
    padding: 19px 16px;
  }
  .tile-title {
    font-size: 20px;
  }
  .tile p {
    font-size: 11px;
  }
  .tile small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .lower {
    grid-template-columns: 1fr;
  }
  .wide-banner {
    padding: 23px 20px;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .wide-banner h2 {
    font-size: 22px;
  }
  .wide-banner p {
    font-size: 11px;
  }
  .rune {
    display: none;
  }
  .wide-banner a {
    margin: 8px 0 0;
  }
  .footer-top {
    align-items: start;
    flex-direction: column;
    gap: 25px;
  }
  .footer-top > div {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-bottom > span:nth-child(2) {
    order: 3;
    width: 100%;
    max-width: 300px;
  }
  .cookies {
    bottom: 10px;
    padding: 18px;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .cookies strong {
    font-size: 18px;
  }
  .cookie-actions {
    flex-direction: row;
  }
  .cookie-actions button {
    flex: 1;
  }
  .panel-heading {
    padding: 20px;
  }
  article {
    padding: 23px;
  }
  .date {
    font-size: 7px;
  }
  article h3 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tile {
    transition: none;
  }
}

/* Shared navigation and independent section pages */
.header {
  position: relative;
}
.menu {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid #575252;
  border-radius: 7px;
  font-size: 24px;
  flex-shrink: 0;
}
nav {
  display: none;
  position: absolute;
  right: 32px;
  left: auto;
  top: 86px;
  width: 280px;
  padding: 16px;
  background: #222121;
  z-index: 20;
  border: 1px solid #575252;
  border-radius: 9px;
  box-shadow: 0 15px 50px #0007;
  gap: 0;
}
nav.open {
  display: flex;
  flex-direction: column;
}
nav a {
  padding: 10px 14px;
  border-radius: 5px;
}
nav a:hover,
nav a.active {
  background: #333131;
}
nav a.active:after {
  display: none;
}
.tile {
  display: block;
}
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2a2828dd;
  border: 1px solid #807a7a;
  color: #e2e1e1;
  box-shadow: 0 5px 24px #0007;
  backdrop-filter: blur(10px);
}
.back-top:hover {
  background: #326758;
}
.subpage {
  min-height: 72vh;
  padding-bottom: 65px;
}
.breadcrumbs {
  padding-top: 30px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumbs a {
  color: #a4d7c7;
}
.page-heading {
  margin: 30px 0 35px;
  padding: 45px 40px;
  border: 1px solid #3f3b3b;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #151414ef, #1e1c1ca0),
    url("/assets/hero.webp") center/cover;
}
.page-heading h1 {
  font: 46px/1.15 Georgia;
  margin: 16px 0;
}
.page-heading > p:last-child {
  color: #b8b4b4;
  max-width: 650px;
  font-size: 14px;
}
.empty-state {
  padding: 50px 30px;
  text-align: center;
}
.empty-icon {
  display: block;
  color: var(--gold);
  font-size: 44px;
  margin-bottom: 14px;
}
.empty-state h2 {
  font: 28px Georgia;
  margin: 18px 0;
}
.empty-state > p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.subpage > .journey {
  max-width: 700px;
}
.subpage .news {
  max-width: 850px;
}
@media (max-width: 700px) {
  nav {
    top: 70px;
    right: 20px;
    left: auto;
    width: min(300px, calc(100vw - 40px));
    padding: 12px;
  }
  .page-heading {
    padding: 30px 22px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .back-top {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
  .brand {
    font-size: 20px;
  }
}
.calculator-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.calculator-card {
  position: relative;
}
.calculator-card .badge {
  position: absolute;
  right: 22px;
  top: 30px;
  color: #a6d6bd;
  background: #254031;
}
.calculator-card .primary {
  margin-top: 22px;
}
.calc-heading {
  text-align: center;
  padding: 40px 0 45px;
}
.calc-heading h1 {
  font: 54px Georgia;
  margin: 12px 0;
}
.calc-heading em {
  font-style: normal;
  color: #a5dbca;
}
.calc-heading > p:last-child {
  color: var(--muted);
  font-size: 15px;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.calc-panel {
  padding: 28px;
}
.calc-panel h2 {
  font: 21px Georgia;
  margin-bottom: 28px;
}
.calc-panel label {
  display: block;
  color: #b9b6b6;
  font-size: 11px;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.calc-panel input[type="number"],
.calc-panel select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #4d4a4a;
  border-radius: 7px;
  padding: 14px 12px;
  color: #eeeeee;
  background: #141313;
  font: 20px Arial;
  margin-top: 10px;
}
.calc-panel select {
  font-size: 12px;
  height: 50px;
  padding: 0 8px;
}
.calc-panel input:focus,
.calc-panel select:focus {
  outline: 2px solid #55b798;
  outline-offset: 2px;
}
.calc-panel > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: -8px;
}
.level-progress {
  font-size: 11px;
  color: #d4b080;
  margin-top: 26px;
}
.multiplier {
  padding: 23px 10px;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.multiplier span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  letter-spacing: 1px;
}
.multiplier strong {
  font: 44px Georgia;
  display: block;
  color: #b4e9d8;
  margin: 8px 0;
}
.multiplier small {
  color: #c6ab92;
  font-size: 12px;
}
.calc-panel .toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #3e3b3b;
  border-radius: 7px;
  padding: 15px 12px;
  letter-spacing: 0;
  font-size: 12px;
  cursor: pointer;
}
.toggle input {
  position: absolute;
  right: 12px;
  width: 42px;
  height: 24px;
  opacity: 0;
  cursor: pointer;
}
.switch {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #514d4d;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
.switch:before {
  content: "";
  display: block;
  background: #ededed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin: 3px;
  transition: transform 0.15s;
}
.toggle input:checked + .switch {
  background: #35a783;
}
.toggle input:checked + .switch:before {
  transform: translateX(16px);
}
.toggle input:focus-visible + .switch {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.calculate {
  width: 100%;
  padding: 16px;
}
.reset {
  display: block;
  margin: 14px auto 0;
  background: none;
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
}
.results {
  margin-top: 25px;
  padding: 30px;
}
.results h2 {
  font: 28px Georgia;
  margin: 12px 0 25px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.result-grid > div {
  border-left: 2px solid #6e6868;
  padding-left: 17px;
}
.result-grid span,
.result-grid small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.result-grid strong {
  display: block;
  font: 28px Georgia;
  margin: 10px 0;
  color: #ead3b1;
  overflow-wrap: anywhere;
}
.results > p:last-child {
  color: #c3c0c0;
  font-size: 11px;
  margin-top: 20px;
}
.calc-help {
  margin-top: 25px;
  padding: 28px;
}
.calc-help h2 {
  font: 23px Georgia;
  margin-bottom: 15px;
}
.calc-help p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
  max-width: 950px;
}
.calc-help summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 12px;
  margin-top: 20px;
}
#calc-error {
  border: 1px solid #52a58b;
  border-radius: 7px;
  padding: 14px 20px;
  background: #58213260;
  color: #cce0da;
  font-size: 13px;
  margin-top: 20px;
}
@media (max-width: 1000px) {
  .calc-panel {
    padding: 20px;
  }
  .calc-grid {
    gap: 12px;
  }
  .field-row {
    gap: 10px;
  }
  .calc-panel h2 {
    font-size: 18px;
  }
  .calculator-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .calc-grid,
  .calculator-list {
    grid-template-columns: 1fr;
  }
  .calc-heading {
    padding: 30px 0;
  }
  .calc-heading h1 {
    font-size: 39px;
  }
  .calc-heading > p:last-child {
    font-size: 13px;
  }
  .calc-panel {
    padding: 25px;
  }
  .calc-panel h2 {
    font-size: 23px;
    margin-bottom: 22px;
  }
  .result-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .results {
    padding: 24px;
  }
  .calc-help {
    padding: 22px;
  }
}
.nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary:hover,
.nav-group[open] > summary {
  background: #333131;
}
.nav-group summary svg {
  transition: transform 0.2s;
}
.nav-group[open] summary svg {
  transform: rotate(180deg);
}
.nav-submenu {
  margin: 7px 0 3px 16px;
  padding-left: 10px;
  border-left: 1px solid #686262;
  display: flex;
  flex-direction: column;
}
.nav-submenu a {
  font-size: 12px;
  padding: 9px 12px;
}
.shared-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 24px;
}
.range-result {
  margin-top: 27px;
  padding: 26px 12px;
  text-align: center;
  background: #1e1d1d;
  border: 1px solid #5a5555;
  border-radius: 8px;
}
.range-result span,
.range-result small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.range-result strong {
  font: 38px Georgia;
  color: #b5e2d4;
  display: block;
  margin: 13px 0;
}
.shared-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.party-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.member-row {
  display: grid;
  grid-template-columns: 70px 100px minmax(140px, 1fr) 30px;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.member-number {
  font-size: 11px;
  color: var(--gold);
}
.member-row label {
  margin: 0;
}
.member-row input[type="number"] {
  font-size: 16px;
  padding: 13px 10px;
}
.remove-member {
  background: none;
  font-size: 26px;
  color: #93c8b7;
  align-self: end;
  margin-bottom: 7px;
}
.remove-member:disabled {
  opacity: 0.25;
  cursor: default;
}
#add-member {
  margin: 15px 0;
}
.party-result {
  border: 1px solid #48725f;
  background: #20352c60;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
}
.party-result > strong {
  font-size: 14px;
  color: #a4d9b9;
}
.party-result > p {
  font-size: 11px;
  color: #bebaba;
  margin-top: 10px;
}
.party-result.ineligible {
  border-color: #5b8f7e;
  background: #59273140;
}
.party-result.ineligible > strong {
  color: #c8ded7;
}
.party-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}
.party-stats span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.party-stats b {
  display: block;
  font-size: 16px;
  margin-top: 5px;
  font-weight: normal;
}
.field-error {
  color: #cce0da;
  font-size: 12px;
  padding: 15px 0;
}
@media (max-width: 1000px) {
  .shared-layout {
    grid-template-columns: 1fr 1.6fr;
  }
  .member-row {
    grid-template-columns: 60px 70px minmax(100px, 1fr) 25px;
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .shared-layout {
    grid-template-columns: 1fr;
  }
  .member-row {
    grid-template-columns: 1fr 1.7fr 26px;
    gap: 10px;
  }
  .member-number {
    grid-column: 1/-1;
  }
  .party-stats {
    gap: 8px;
  }
  .party-stats b {
    font-size: 14px;
  }
}
.live-section {
  margin-bottom: 24px;
}
.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #3f3b3b;
  border-radius: 8px;
  background: linear-gradient(100deg, #1f1e1e, #191818);
  overflow: hidden;
}
.live-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  min-height: 110px;
}
.live-card + .live-card {
  border-left: 1px solid #3f3b3b;
}
.live-card > div {
  min-width: 0;
}
.live-label {
  display: block;
  font-size: 8px;
  color: #ada9a9;
  letter-spacing: 1.4px;
  margin-bottom: 6px;
}
.live-card strong {
  display: block;
  font: 20px/1.3 Georgia;
  color: #e8d8d0;
  overflow-wrap: anywhere;
}
.live-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  margin-top: 5px;
}
.live-symbol {
  width: 35px;
  flex-shrink: 0;
  text-align: center;
  color: var(--gold);
}
.players-symbol {
  font-size: 20px;
  color: #74c59b;
  text-shadow: 0 0 16px #69ae8250;
}
.live-sprite {
  width: 54px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--gold);
}
.live-sprite img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}
.live-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px 2px 0;
  font-size: 9px;
  color: #958f8f;
}
.live-footer button {
  background: none;
  border: 1px solid #555050;
  border-radius: 5px;
  font-size: 10px;
  padding: 5px 11px;
  color: #a6d3c5;
}
.live-footer button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 1000px) {
  .live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #3f3b3b;
  }
  .live-card:nth-child(4) {
    border-top: 1px solid #3f3b3b;
  }
  .live-card {
    padding: 18px 20px;
  }
}
@media (max-width: 700px) {
  .live-card {
    padding: 16px 12px;
    gap: 8px;
    min-height: 108px;
  }
  .live-card strong {
    font-size: 17px;
  }
  .live-label {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .live-symbol {
    width: 22px;
  }
  .live-symbol svg {
    width: 23px;
  }
  .live-sprite {
    width: 42px;
  }
  .live-sprite img {
    width: 48px;
    height: 48px;
  }
  .live-card small {
    font-size: 8px;
  }
  .live-footer {
    font-size: 8px;
    align-items: start;
  }
  .live-footer > span {
    max-width: 240px;
  }
  .live-section {
    margin-bottom: 20px;
  }
}

/* Space above the home live panel after removing the status strip. */
.live-section {
  margin-top: 26px;
}
@media (max-width: 700px) {
  .live-section {
    margin-top: 20px;
  }
}

/* Portal home and right-side navigation drawer */
.portal-lead {
  font-size: 13px;
  color: var(--muted);
  margin: -7px 0 25px;
  max-width: 600px;
}
.hero-content {
  padding-bottom: 70px;
}
.menu-is-open {
  overflow: hidden;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: #08060bb3;
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.menu-is-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}
.menu-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(390px, calc(100vw - 40px));
  z-index: 50;
  background: linear-gradient(150deg, #242323, #181717 70%);
  border-left: 1px solid #676262;
  box-shadow: -15px 0 70px #0006;
  padding: 35px 25px;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0.3s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: max(35px, env(safe-area-inset-top));
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}
.menu-drawer.open {
  transform: translateX(0);
  visibility: visible;
}
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
}
.drawer-top h2 {
  font: 26px Georgia;
  margin-top: 8px;
}
.drawer-top button {
  background: #2e2b2b;
  border: 1px solid #646060;
  border-radius: 7px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  flex-shrink: 0;
}
.menu-drawer nav {
  display: flex;
  flex-direction: column;
  position: static;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  gap: 7px;
  border-radius: 0;
}
.menu-drawer nav > a {
  font-size: 15px;
  padding: 16px;
}
.menu-drawer .nav-group summary {
  font-size: 15px;
  padding: 16px;
}
.menu-drawer .nav-submenu a {
  padding: 12px;
  font-size: 13px;
}
.drawer-footer {
  margin-top: auto;
  padding-top: 35px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .hero {
    min-height: 575px;
  }
  .hero-content {
    padding-bottom: 85px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-label {
    right: 24px;
    bottom: 24px;
  }
  .portal-lead {
    font-size: 12px;
  }
  .menu-drawer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .drawer-top h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-drawer,
  .menu-overlay {
    transition: none;
  }
}
.search-panel {
  padding: 30px;
}
.search-panel label {
  display: block;
  color: #bab7b7;
  font-size: 12px;
  margin-bottom: 10px;
}
.character-search {
  display: flex;
  gap: 12px;
}
.character-search input {
  flex: 1;
  min-width: 0;
  background: #151414;
  border: 1px solid #565151;
  border-radius: 6px;
  padding: 15px 18px;
  font: 18px Arial;
  color: var(--text);
}
.character-search input:focus {
  outline: 2px solid #61bea1;
  outline-offset: 2px;
}
.character-search button {
  padding: 15px 25px;
  white-space: nowrap;
}
.character-search button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.search-help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.character-state {
  font-size: 12px;
  color: var(--gold);
  margin-top: 20px;
}
.character-state.error {
  color: #adecd8;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 30px;
  margin-top: 25px;
}
.profile-emblem {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 68px;
  height: 80px;
  background: linear-gradient(150deg, #575252, #242222);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  color: var(--gold);
  font: bold 45px Georgia;
}
.profile-identity h2 {
  font: 36px Georgia;
  margin: 8px 0;
}
.profile-identity > p:last-of-type {
  font-size: 14px;
  color: var(--muted);
}
.profile-status {
  display: inline-block;
  color: #aeaaaa;
  font-size: 10px;
  background: #2f2d2d;
  padding: 5px 9px;
  border-radius: 4px;
  margin-top: 12px;
}
.profile-status.online {
  color: #96d3ad;
  background: #244532;
}
.profile-links {
  margin-left: auto;
  display: flex;
  align-items: end;
  flex-direction: column;
  gap: 12px;
}
.profile-links .text-button {
  margin: 0;
  font-size: 11px;
}
.profile-links > span {
  font-size: 10px;
  color: var(--gold);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.profile-stats > div {
  padding: 25px;
}
.profile-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.profile-stats strong {
  display: block;
  font: 27px Georgia;
  color: #ead2b0;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.profile-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.profile-details {
  padding: 28px;
}
.profile-details h2 {
  font: 23px Georgia;
  margin-bottom: 20px;
}
.profile-details dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
  font-size: 13px;
}
.profile-details dt {
  color: var(--muted);
}
.profile-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.guild-name {
  font: 26px Georgia;
  color: #cfe1db;
}
.profile-details > p:not(.guild-name) {
  font-size: 12px;
  color: var(--muted);
}
.profile-details h3 {
  font: 18px Georgia;
  margin-top: 26px;
  margin-bottom: 9px;
}
.profile-small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
.profile-deaths {
  margin-top: 20px;
}
.profile-deaths .death-row {
  margin: 0;
  padding: 20px 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 180px 95px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}
.death-row time {
  font-size: 12px;
  color: var(--muted);
}
.death-level {
  font-size: 12px;
  color: var(--gold);
}
.profile-deaths .death-row > p {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.empty-deaths {
  padding: 25px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .search-panel {
    padding: 23px;
  }
  .character-search {
    flex-direction: column;
  }
  .character-search button {
    padding: 15px;
  }
  .profile-header {
    padding: 23px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .profile-emblem {
    width: 45px;
    height: 55px;
    font-size: 32px;
  }
  .profile-identity {
    min-width: 0;
    flex: 1;
  }
  .profile-identity h2 {
    font-size: 27px;
    overflow-wrap: anywhere;
  }
  .profile-links {
    margin: 10px 0 0;
    align-items: start;
    width: 100%;
  }
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .profile-stats > div {
    padding: 20px;
  }
  .profile-stats strong {
    font-size: 23px;
  }
  .profile-columns {
    grid-template-columns: 1fr;
  }
  .profile-details {
    padding: 23px;
  }
  .profile-details dl {
    font-size: 12px;
  }
  .profile-deaths .death-row {
    padding: 20px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .profile-deaths .death-row > p {
    grid-column: 1/-1;
  }
}
.tracker-add-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 16px;
  align-items: end;
}
.tracker-add-grid label {
  margin: 0;
}
.tracker-add-grid input,
#tracker-edit-input,
.tracker-filters input,
.tracker-filters select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  background: #151414;
  border: 1px solid #575252;
  border-radius: 6px;
  font: 16px Arial;
  color: var(--text);
  margin-top: 9px;
}
.tracker-add-grid button {
  height: 47px;
  padding: 12px 20px;
}
.tracker-toolbar {
  margin: 30px 0 20px;
}
.tracker-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.tracker-topbar h2 {
  font: 27px Georgia;
}
.tracker-topbar h2 span {
  color: var(--muted);
  font: 18px Georgia;
}
.tracker-topbar .profile-small {
  margin-top: 6px;
}
.tracker-filters {
  display: grid;
  grid-template-columns: 180px minmax(160px, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.tracker-filters label {
  font-size: 11px;
  color: var(--muted);
}
.tag-filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.tag-filter {
  padding: 7px 12px;
  border: 1px solid #624456;
  border-radius: 20px;
  background: #241924;
  color: #c7aebe;
  font-size: 11px;
}
.tag-filter.active {
  background: #319d7b;
  color: #fff;
  border-color: #73cfb2;
}
.tracker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.tracked-card {
  padding: 23px;
  border: 1px solid #403d3d;
  border-radius: 9px;
  background: linear-gradient(130deg, #211f1f, #19151d);
  text-align: left;
  transition:
    border-color 0.2s,
    transform 0.2s;
  min-width: 0;
}
.tracked-card:hover {
  border-color: #7f7979;
  transform: translateY(-2px);
}
.tracked-identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.tracked-identity > strong {
  font: 24px Georgia;
  overflow-wrap: anywhere;
  min-width: 0;
}
.tracked-status {
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 9px;
  background: #343131;
  color: #bcb8b8;
  flex-shrink: 0;
}
.tracked-status.online {
  color: #9bdab6;
  background: #264731;
}
.tracked-status.offline {
  color: #bebbbb;
  background: #333030;
}
.tracked-basics {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0;
  line-height: 1.7;
}
.tracked-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tracked-tags .tag {
  font-size: 9px;
  background: #513245;
  color: #b5e4d5;
  border: 1px solid #795266;
  padding: 3px 8px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.untagged {
  font-size: 9px;
  color: #8f7f8e;
}
.tracked-note {
  display: block;
  margin-top: 13px;
  color: #8d8888;
  font-size: 9px;
}
.tracker-storage-note {
  line-height: 1.8;
}
#tracker-modal {
  width: min(900px, calc(100% - 28px));
  max-width: 900px;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px;
}
#tracker-modal h2 {
  overflow-wrap: anywhere;
  padding-right: 24px;
}
#tracker-edit-tags {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 23px 0 0;
}
#tracker-edit-tags label {
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}
#tracker-edit-tags button {
  padding: 13px 16px;
  white-space: nowrap;
}
.tracker-modal-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
}
.tracker-modal-links .text-button {
  margin: 0;
}
.remove-tracked {
  background: none;
  color: #a1e3ce;
  font-size: 11px;
  text-decoration: underline;
}
.api-section {
  border-top: 1px solid #595454;
  padding: 23px 0 5px;
}
.api-section h3 {
  font: 23px Georgia;
  color: #dcdbdb;
  margin-bottom: 17px;
}
.api-fields {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 11px 18px;
  margin: 0;
  font-size: 12px;
}
.api-fields dt {
  color: var(--muted);
}
.api-fields dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #dedddd;
}
.api-nested {
  grid-column: 1/-1;
  padding: 14px;
  border: 1px solid #464343;
  border-radius: 6px;
  margin: 5px 0;
}
.api-nested h4,
.api-array-item h4 {
  color: var(--gold);
  font-size: 12px;
  margin: 0 0 13px;
}
.api-array-item {
  border-bottom: 1px solid #3f3c3c;
  padding: 17px 0;
}
.api-array-item:first-child {
  padding-top: 0;
}
.api-array-item:last-child {
  border-bottom: 0;
}
.api-value {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.api-section .profile-small {
  margin: 0;
}
@media (max-width: 1000px) {
  .tracker-add-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tracker-add-grid button {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@media (max-width: 700px) {
  .tracker-add-grid {
    grid-template-columns: 1fr;
  }
  .tracker-add-grid button {
    justify-self: stretch;
  }
  .tracker-topbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .tracker-topbar .secondary {
    padding: 10px 16px;
  }
  .tracker-filters {
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
  }
  .tracker-list {
    grid-template-columns: 1fr;
  }
  .tracked-card {
    padding: 20px;
  }
  .tracked-identity > strong {
    font-size: 23px;
  }
  .tracked-basics {
    font-size: 11px;
  }
  #tracker-modal {
    padding: 27px 21px;
  }
  #tracker-edit-tags {
    flex-direction: column;
    align-items: stretch;
  }
  .api-fields {
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    font-size: 11px;
  }
  .api-section h3 {
    font-size: 21px;
  }
  .api-nested {
    padding: 10px;
  }
  .tracker-modal-links {
    align-items: start;
  }
  .tag-filter {
    font-size: 10px;
  }
}
/* Readable full character profile */
#tracker-modal {
  width: min(1000px, calc(100% - 28px));
  max-width: 1000px;
  padding: 32px;
}
#tracker-full-data {
  margin-top: 25px;
}
.modal-key-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.modal-key-stats > div {
  padding: 17px 16px;
  background: #191717;
  border: 1px solid #575252;
  border-radius: 8px;
}
.modal-key-stats span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.modal-key-stats strong {
  display: block;
  font: 21px/1.3 Georgia;
  margin-top: 9px;
  color: #ead0ad;
  overflow-wrap: anywhere;
}
.tidy-profile-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 15px;
}
.tidy-section {
  padding: 22px;
  border: 1px solid #4d4949;
  background: #1c1a1a;
  border-radius: 9px;
  margin-bottom: 18px;
  min-width: 0;
}
.tidy-profile-grid .tidy-section {
  margin-bottom: 0;
}
.tidy-profile-grid {
  margin-bottom: 18px;
}
.tidy-section h3 {
  font: 22px Georgia;
  color: #cee1db;
  margin: 0 0 18px;
}
.tidy-fields {
  margin: 0;
  font-size: 12px;
}
.tidy-field {
  display: grid;
  grid-template-columns: minmax(100px, 0.9fr) minmax(0, 1.2fr);
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #383535;
}
.tidy-field:first-child {
  padding-top: 0;
}
.tidy-field:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.tidy-field dt {
  color: #ada9a9;
  line-height: 1.6;
}
.tidy-field dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #e7e7e7;
  line-height: 1.6;
}
.tidy-field dd .tidy-fields {
  margin-top: 8px;
}
.tidy-collapse {
  padding: 16px 20px;
  border: 1px solid #4d4a4a;
  border-radius: 8px;
  background: #1e1c1c;
  margin: 14px 0 18px;
}
.tidy-collapse summary {
  font-size: 13px;
  color: #b5dfd2;
  cursor: pointer;
  line-height: 1.7;
}
.tidy-collapse[open] > summary {
  margin-bottom: 16px;
}
.profile-comment {
  font: 12px/1.8 Arial;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  color: #bdbaba;
  max-height: 250px;
  overflow: auto;
}
.tidy-death {
  padding: 17px;
  border: 1px solid #3e3b3b;
  border-radius: 7px;
  margin-bottom: 11px;
  background: #1f1e1e;
}
.tidy-death:last-child {
  margin-bottom: 0;
}
.tidy-death-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tidy-death time {
  font-size: 11px;
  color: #a9a4a4;
}
.tidy-death > p {
  font-size: 12px;
  line-height: 1.7;
  color: #d3d1d1;
  margin: 11px 0 0;
}
.tidy-death .tidy-collapse {
  padding: 10px 13px;
  margin: 14px 0 0;
  background: #191717;
}
.tidy-death .tidy-collapse summary {
  font-size: 11px;
}
.profile-data-array > dl,
.profile-data-array > span {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid #3f3b3b;
}
.profile-data-array > dl:last-child {
  border-bottom: 0;
}
.other-character {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px auto;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #434040;
}
.other-character:first-child {
  padding-top: 0;
}
.other-character:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.other-identity > a {
  display: block;
  font-size: 15px;
  color: #c8ded7;
  overflow-wrap: anywhere;
}
.other-identity > a:hover {
  text-decoration: underline;
}
.other-identity > span {
  font-size: 11px;
  color: var(--muted);
}
.other-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.other-badges .tag {
  font-size: 8px;
  background: #503042;
  color: #abd8ca;
  padding: 2px 7px;
  border-radius: 8px;
}
.other-level > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.other-level > strong {
  display: block;
  font-size: 16px;
  color: var(--gold);
  font-weight: normal;
  margin-top: 5px;
}
.other-extra {
  grid-column: 1/-1;
  margin: 0;
}
.tidy-achievements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tidy-achievement {
  padding: 15px;
  border: 1px solid #4d4a4a;
  border-radius: 6px;
  background: #181616;
}
.tidy-achievement > strong {
  display: block;
  color: #c1e0d6;
  font-size: 13px;
  margin-bottom: 7px;
}
.tidy-achievement > span {
  font-size: 10px;
  color: var(--gold);
}
.tidy-achievement .tidy-fields {
  margin-top: 12px;
  font-size: 10px;
}
@media (max-width: 700px) {
  #tracker-modal {
    padding: 25px 18px;
  }
  .modal-key-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .modal-key-stats > div {
    padding: 15px;
  }
  .modal-key-stats strong {
    font-size: 19px;
  }
  .tidy-profile-grid {
    grid-template-columns: 1fr;
  }
  .tidy-section {
    padding: 18px;
  }
  .tidy-section h3 {
    font-size: 21px;
  }
  .tidy-fields {
    font-size: 11px;
  }
  .tidy-field {
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    padding: 11px 0;
  }
  .tidy-collapse {
    padding: 14px 16px;
  }
  .other-character {
    grid-template-columns: minmax(0, 1fr) 55px auto;
    gap: 10px;
  }
  .other-identity > a {
    font-size: 13px;
  }
  .other-character .tracked-status {
    font-size: 9px;
    padding: 4px 6px;
  }
  .other-level > strong {
    font-size: 14px;
  }
  .tidy-achievements {
    grid-template-columns: 1fr;
  }
  .tidy-death {
    padding: 13px;
  }
}
/* Site preferences */
.site-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.header {
  gap: 18px;
}
.header > .brand {
  margin-right: auto;
}
.header > .menu {
  margin-left: 0;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #575353;
  background: #222121;
  border-radius: 7px;
  color: #cee1db;
}
.language-control {
  display: flex;
  border: 1px solid #575353;
  border-radius: 7px;
  padding: 3px;
  background: #1e1d1d;
  gap: 2px;
}
.language-control button {
  background: none;
  padding: 7px 9px;
  font-size: 10px;
  border-radius: 4px;
  color: #ada9a9;
}
.language-control button.active {
  background: #31896d;
  color: #fff;
}
.theme-moon {
  display: none;
}
html[data-theme="light"] .theme-sun {
  display: none;
}
html[data-theme="light"] .theme-moon {
  display: block;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f5;
  --panel: #fff;
  --line: #d7d5d5;
  --text: #2c2929;
  --muted: #6f6a6a;
  --red: #2fa882;
  --gold: #865e33;
}
html[data-theme="light"] body {
  background: radial-gradient(ellipse at 12% 46%, #e2e0e040, transparent 55%), var(--bg);
}
html[data-theme="light"] header {
  background: #fdfdfd;
}
html[data-theme="light"] .crest,
html[data-theme="light"] .mini-crest {
  color: #f4d3a0;
}
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .language-control {
  background: #fff;
  border-color: #c4c2c2;
  color: #35705d;
}
html[data-theme="light"] .language-control button {
  color: #666262;
}
html[data-theme="light"] .language-control button.active {
  color: #fff;
}
html[data-theme="light"] .panel,
html[data-theme="light"] .tile,
html[data-theme="light"] .tracked-card,
html[data-theme="light"] .live-grid {
  background: linear-gradient(130deg, #fff, #f4f4f4);
  border-color: var(--line);
}
html[data-theme="light"] .tile:hover,
html[data-theme="light"] .tracked-card:hover {
  border-color: #6bb79f;
}
html[data-theme="light"] .live-card strong,
html[data-theme="light"] .profile-stats strong,
html[data-theme="light"] .profile-identity h2,
html[data-theme="light"] .guild-name,
html[data-theme="light"] .result-grid strong,
html[data-theme="light"] .multiplier strong {
  color: #327b64;
}
html[data-theme="light"] .live-label,
html[data-theme="light"] .tile small,
html[data-theme="light"] .tile-title span,
html[data-theme="light"] .date,
html[data-theme="light"] .text-button {
  color: #50947e;
}
html[data-theme="light"] .calc-panel input[type="number"],
html[data-theme="light"] .calc-panel select,
html[data-theme="light"] .character-search input,
html[data-theme="light"] .tracker-add-grid input,
html[data-theme="light"] #tracker-edit-input,
html[data-theme="light"] .tracker-filters input,
html[data-theme="light"] .tracker-filters select {
  background: #fff;
  border-color: #c3c0c0;
  color: #2c2a2a;
}
html[data-theme="light"] .calc-panel label,
html[data-theme="light"] .search-panel label,
html[data-theme="light"] #tracker-edit-tags label {
  color: #765366;
}
html[data-theme="light"] .multiplier,
html[data-theme="light"] .range-result {
  background: #f2f2f2;
  border-color: #bed6ce;
}
html[data-theme="light"] .multiplier small,
html[data-theme="light"] .range-result strong {
  color: #45937a;
}
html[data-theme="light"] .calc-panel .toggle {
  border-color: #cecccc;
}
html[data-theme="light"] .switch {
  background: #cac7c7;
}
html[data-theme="light"] .toggle input:checked + .switch {
  background: #35a783;
}
html[data-theme="light"] .secondary {
  background: #fcfcfc;
  border-color: #b3cfc6;
  color: #44816e;
}
html[data-theme="light"] .profile-status,
html[data-theme="light"] .tracked-status.offline,
html[data-theme="light"] .tracked-status.unknown {
  background: #e8e8e8;
  color: #736e6e;
}
html[data-theme="light"] .profile-status.online,
html[data-theme="light"] .tracked-status.online {
  background: #d7eddf;
  color: #245e3c;
}
html[data-theme="light"] .badge {
  background: #e3e2e2;
  color: #41816d;
}
html[data-theme="light"] .calculator-card .badge {
  background: #daecdf;
  color: #35654a;
}
html[data-theme="light"] .tracked-tags .tag,
html[data-theme="light"] .other-badges .tag {
  background: #eddae5;
  color: #448772;
  border-color: #aed5c9;
}
html[data-theme="light"] .tag-filter {
  background: #fff;
  border-color: #b6d1c8;
  color: #458571;
}
html[data-theme="light"] .tag-filter.active {
  background: #319d7b;
  color: #fff;
}
html[data-theme="light"] .tracked-note,
html[data-theme="light"] .untagged {
  color: #897182;
}
html[data-theme="light"] .party-result {
  background: #e8f2eb;
  border-color: #9cc5ad;
}
html[data-theme="light"] .party-result > strong {
  color: #28623e;
}
html[data-theme="light"] .party-result.ineligible {
  background: #fbebef;
  border-color: #98cebd;
}
html[data-theme="light"] .party-result.ineligible > strong {
  color: #399779;
}
html[data-theme="light"] .party-result > p {
  color: #6a6464;
}
html[data-theme="light"] #calc-error {
  color: #3b9276;
  background: #f9e8ec;
  border-color: #8ccab6;
}
html[data-theme="light"] .results > p:last-child,
html[data-theme="light"] .character-state.error,
html[data-theme="light"] .field-error {
  color: #43a083;
}
html[data-theme="light"] .page-heading {
  background:
    linear-gradient(90deg, #f3f3f3ee, #f3f3f3ce),
    url("/assets/hero.webp") center/cover;
  border-color: #aed2c7;
}
html[data-theme="light"] .page-heading > p:last-child {
  color: #686363;
}
html[data-theme="light"] .menu-drawer {
  background: linear-gradient(150deg, #fcfcfc, #f0f0f0);
  border-color: #a0cabd;
}
html[data-theme="light"] .drawer-top button,
html[data-theme="light"] .menu {
  background: #fafafa;
  border-color: #adcac1;
  color: #437767;
}
html[data-theme="light"] .menu-drawer nav a:hover,
html[data-theme="light"] .menu-drawer nav a.active,
html[data-theme="light"] .nav-group summary:hover,
html[data-theme="light"] .nav-group[open] > summary {
  background: #e3e1e1;
  color: #3d7563;
}
html[data-theme="light"] .nav-submenu {
  border-color: #b5b1b1;
}
html[data-theme="light"] dialog {
  background: #fcfcfc;
  border-color: #a0c9bc;
  color: #2d2a2a;
}
html[data-theme="light"] dialog > p:last-of-type {
  color: #6b6666;
}
html[data-theme="light"] .modal-key-stats > div,
html[data-theme="light"] .tidy-section,
html[data-theme="light"] .tidy-collapse,
html[data-theme="light"] .tidy-death,
html[data-theme="light"] .tidy-achievement {
  background: #fff;
  border-color: #cadad5;
}
html[data-theme="light"] .modal-key-stats strong,
html[data-theme="light"] .tidy-section h3,
html[data-theme="light"] .tidy-collapse summary,
html[data-theme="light"] .other-identity > a,
html[data-theme="light"] .tidy-achievement > strong {
  color: #448470;
}
html[data-theme="light"] .tidy-field {
  border-color: #e5e3e3;
}
html[data-theme="light"] .tidy-field dt {
  color: #777171;
}
html[data-theme="light"] .tidy-field dd,
html[data-theme="light"] .profile-comment,
html[data-theme="light"] .tidy-death > p {
  color: #4e4b4b;
}
html[data-theme="light"] .tidy-death .tidy-collapse {
  background: #f3f3f3;
}
html[data-theme="light"] .other-character,
html[data-theme="light"] .profile-data-array > dl {
  border-color: #c7dbd5;
}
html[data-theme="light"] .cookies {
  background: #fcfcfcf7;
  border-color: #9ec8bb;
}
html[data-theme="light"] .cookies p {
  color: #6e6969;
}
html[data-theme="light"] .cookies p button {
  color: #3f9177;
}
html[data-theme="light"] .cookie-actions > button {
  border-color: #a2cdbf;
  color: #448570;
}
html[data-theme="light"] .cookie-actions .primary {
  color: #fff;
}
html[data-theme="light"] .back-top {
  background: #fcfcfcde;
  border-color: #96bcb0;
  color: #4a927b;
}
html[data-theme="light"] .footer-bottom {
  color: #817b7b;
  border-color: #c7dbd5;
}
html[data-theme="light"] a:hover,
html[data-theme="light"] button:hover {
  color: #3c9b7d;
}
html[data-theme="light"] .primary,
html[data-theme="light"] .primary:hover {
  color: #fff;
}
html[data-theme="light"] .hero {
  color: #eee8e5;
}
html[data-theme="light"] .hero h1 {
  color: #eee8e5;
}
html[data-theme="light"] .hero .eyebrow,
html[data-theme="light"] .hero-label span {
  color: #d3b182;
}
html[data-theme="light"] .hero .intro {
  color: #c9c6c6;
}
html[data-theme="light"] .hero .secondary {
  background: #1f1e1eb0;
  border-color: #7e7777;
  color: #e8e8e8;
}
html[data-theme="light"] .hero .secondary:hover {
  color: #fff;
}
@media (max-width: 700px) {
  .header {
    gap: 9px;
  }
  .site-controls {
    gap: 6px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .language-control {
    padding: 2px;
  }
  .language-control button {
    padding: 6px 7px;
    font-size: 9px;
  }
  .header > .menu {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .header .brand {
    font-size: 17px;
    gap: 9px;
  }
  .header .brand small {
    font-size: 6px;
    letter-spacing: 1.4px;
  }
  .header .crest {
    width: 30px;
    height: 37px;
    font-size: 23px;
  }
}
@media (max-width: 380px) {
  .header {
    gap: 6px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .header .brand {
    font-size: 15px;
    gap: 7px;
  }
  .header .brand small {
    font-size: 5px;
    letter-spacing: 1px;
  }
  .header .crest {
    width: 27px;
    height: 34px;
  }
  .language-control button {
    padding: 6px;
  }
  .site-controls {
    gap: 5px;
  }
}
html[data-theme="light"] .language-control button.active:hover {
  color: #fff;
}
html[data-theme="light"] .remove-tracked,
html[data-theme="light"] .remove-member {
  color: #44a184;
}
html[data-theme="light"] .profile-rank,
html[data-theme="light"] .breadcrumbs a {
  color: #4d9a82;
}
/* Match the live panel dividers to its outer frame. */
.live-card + .live-card {
  border-left-color: var(--line);
}
@media (max-width: 1000px) {
  .live-card:nth-child(3),
  .live-card:nth-child(4) {
    border-top-color: var(--line);
  }
}
/* Pixel-art portal branding. */
.brand {
  font-family: "Courier New", monospace;
  font-size: 24px;
  letter-spacing: 0.5px;
  font-weight: 900;
}
.brand-name {
  white-space: nowrap;
}
.brand-accent {
  color: #79c6ae;
}
.pixel-logo {
  width: 43px;
  height: 51px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.brand small {
  white-space: normal;
}
html[data-theme="light"] .brand-accent {
  color: #3e997c;
}
.footer-top .pixel-logo {
  width: 38px;
  height: 46px;
}
@media (max-width: 700px) {
  .header .brand {
    font-family: "Courier New", monospace;
    font-size: 17px;
    letter-spacing: 0;
  }
  .header .pixel-logo {
    width: 30px;
    height: 37px;
  }
  .header .brand small {
    font-size: 6px;
    letter-spacing: 1.1px;
  }
}
@media (max-width: 380px) {
  .header .brand {
    font-size: 15px;
  }
  .header .pixel-logo {
    width: 27px;
    height: 34px;
  }
}
.preset-fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
}
.preset-fieldset legend {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 11px;
}
.preset-picker {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.preset-choice {
  padding: 9px 13px;
  background: #211823;
  border: 1px solid #624255;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #cdb4c4;
}
.preset-choice:before,
.colored-filter:before,
.tracked-tags .tag:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tag-color);
  flex-shrink: 0;
}
.preset-choice.selected {
  border-color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 18%, #211823);
  color: #eee3eb;
  box-shadow: inset 0 0 0 1px var(--tag-color);
}
.preset-choice.selected:after {
  content: "✓";
  color: color-mix(in srgb, var(--tag-color) 55%, white);
  font-size: 12px;
}
.tracker-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}
.tracker-actions .secondary {
  padding: 10px 13px;
  font-size: 10px;
}
.tracker-filters {
  grid-template-columns: 140px minmax(140px, 1fr) 180px;
}
.colored-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.colored-filter.active {
  border-color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 35%, #2a1e2a);
  color: #fff;
}
.tracked-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--tag-color) 15%, #291d2a);
  border-color: color-mix(in srgb, var(--tag-color) 50%, #654356);
  color: color-mix(in srgb, var(--tag-color) 55%, white);
}
.edit-presets {
  margin: 24px 0 0;
}
.edit-presets + .tracker-edit-tags {
  margin-top: 18px;
}
html[data-theme="light"] .preset-choice {
  background: #fff;
  border-color: #d4b9c8;
  color: #715465;
}
html[data-theme="light"] .preset-choice.selected {
  border-color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 12%, white);
  color: #41323d;
}
html[data-theme="light"] .preset-choice.selected:after {
  color: var(--tag-color);
}
html[data-theme="light"] .tracked-tags .tag {
  background: color-mix(in srgb, var(--tag-color) 10%, white);
  border-color: color-mix(in srgb, var(--tag-color) 45%, #d4b9c8);
  color: color-mix(in srgb, var(--tag-color) 70%, #33212b);
}
html[data-theme="light"] .colored-filter.active {
  background: color-mix(in srgb, var(--tag-color) 15%, white);
  border-color: var(--tag-color);
  color: #33242e;
}
@media (max-width: 700px) {
  .tracker-topbar {
    gap: 15px;
  }
  .tracker-actions {
    justify-content: start;
    width: 100%;
  }
  .tracker-actions .secondary {
    padding: 10px 12px;
  }
  .tracker-filters {
    grid-template-columns: 1fr 1.5fr;
  }
  .tracker-filters label:last-child {
    grid-column: 1/-1;
  }
  .preset-picker {
    gap: 7px;
  }
  .preset-choice {
    padding: 8px 10px;
    font-size: 10px;
  }
  .tracker-add-grid {
    gap: 13px;
  }
}
.home-news {
  padding-top: 36px;
}
.home-news .section-title {
  align-items: center;
}
.home-news + .explore {
  padding-top: 35px;
}
.tibia-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tibia-news-card {
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(130deg, #201f1f, #19161c);
  min-height: 170px;
  transition: border-color 0.2s;
}
.tibia-news-card:hover {
  border-color: #8b8585;
}
.tibia-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  color: var(--muted);
  flex-wrap: wrap;
}
.news-category {
  color: #afaaaa;
  background: #302d2d;
  border-radius: 4px;
  padding: 3px 6px;
}
.tibia-news-card h3 {
  font: 21px/1.4 Georgia;
  margin: 17px 0 20px;
  overflow-wrap: anywhere;
}
.news-read {
  font-size: 10px;
  color: #9acebe;
  margin-top: auto;
}
.news-placeholder {
  color: var(--muted);
  font-size: 12px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: 1/-1;
}
.news-error {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.news-error button {
  margin-top: 12px;
}
html[data-theme="light"] .tibia-news-card {
  background: linear-gradient(130deg, #fff, #f4f4f4);
}
html[data-theme="light"] .news-category {
  color: #448570;
  background: #e6e6e6;
}
html[data-theme="light"] .news-read {
  color: #4ca387;
}
@media (max-width: 1000px) {
  .tibia-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .hero {
    min-height: 0;
  }
  .hero-content {
    padding: 28px 25px 32px;
    max-width: none;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.07;
    letter-spacing: -0.6px;
    margin: 16px 0;
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 1.6px;
  }
  .hero .intro {
    font-size: 12px;
    line-height: 1.75;
    max-width: 360px;
  }
  .hero .actions {
    margin-top: 20px;
    gap: 9px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero .actions a {
    padding: 11px 13px;
    font-size: 10px;
    gap: 0;
  }
  .hero-label {
    display: none;
  }
  .home-news {
    padding-top: 28px;
  }
  .home-news .section-title {
    gap: 15px;
    align-items: end;
  }
  .home-news .section-title h2 {
    font-size: 25px;
  }
  .home-news .text-button {
    font-size: 10px;
    text-align: right;
    max-width: 95px;
    margin: 0;
  }
  .tibia-news-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .tibia-news-card {
    min-height: 0;
    padding: 19px;
  }
  .tibia-news-card h3 {
    font-size: 20px;
    margin: 12px 0 16px;
  }
  .tibia-news-meta {
    font-size: 9px;
  }
  .news-read {
    font-size: 10px;
  }
  .home-news + .explore {
    padding-top: 30px;
  }
}
/* Equal heights for the three header controls. */
.header {
  --header-control-size: 40px;
  align-items: center;
}
.header .site-controls {
  align-items: center;
}
.header .theme-toggle,
.header > .menu {
  width: var(--header-control-size);
  height: var(--header-control-size);
  min-height: var(--header-control-size);
  padding: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}
.header .language-control {
  height: var(--header-control-size);
  min-height: var(--header-control-size);
  padding: 3px;
  gap: 2px;
  align-items: center;
  box-sizing: border-box;
}
.header .language-control button {
  width: calc(var(--header-control-size) - 8px);
  height: calc(var(--header-control-size) - 8px);
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.language-flag {
  width: 22px;
  height: 14px;
  display: block;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #96919140;
}
.header .language-control button.active {
  background: #31896d;
}
.header > .menu {
  font-size: 22px;
  line-height: 1;
}
.header .theme-toggle svg {
  display: block;
}
.header .theme-toggle .theme-moon {
  display: none;
}
html[data-theme="light"] .header .theme-toggle .theme-sun {
  display: none;
}
html[data-theme="light"] .header .theme-toggle .theme-moon {
  display: block;
}
@media (max-width: 700px) {
  .header {
    --header-control-size: 36px;
  }
  .language-flag {
    width: 21px;
    height: 13px;
  }
  .header .site-controls {
    gap: 6px;
  }
  .header > .menu {
    font-size: 22px;
  }
}
@media (max-width: 380px) {
  .header .site-controls {
    gap: 5px;
  }
}
/* Compact tool rows with the action on the right. */
.calculator-list {
  grid-template-columns: 1fr;
  gap: 13px;
}
.compact-tool-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 23px;
  min-height: 0;
}
.compact-tool-card .tile-icon {
  height: auto;
  font-size: 30px;
  text-align: center;
  line-height: 1.3;
}
.tool-card-copy {
  min-width: 0;
}
.tool-card-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.compact-tool-card .tile-title {
  font-size: 23px;
  margin: 0;
  line-height: 1.25;
  display: block;
}
.compact-tool-card .badge {
  position: static;
  display: inline-block;
  right: auto;
  top: auto;
  font-size: 7px;
  letter-spacing: 1px;
  padding: 3px 7px;
  flex-shrink: 0;
}
.compact-tool-card p {
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
  max-width: 750px;
}
.compact-tool-card .primary {
  margin: 0;
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 11px;
  gap: 0;
  align-self: center;
}
.compact-tool-card:hover {
  transform: translateX(2px);
}
@media (max-width: 700px) {
  .compact-tool-card {
    grid-template-columns: 27px minmax(0, 1fr) 94px;
    gap: 11px;
    padding: 17px 15px;
  }
  .compact-tool-card .tile-icon {
    font-size: 25px;
  }
  .compact-tool-card .tile-title {
    font-size: 18px;
    line-height: 1.3;
  }
  .tool-card-heading {
    gap: 5px;
    margin-bottom: 6px;
  }
  .compact-tool-card .badge {
    font-size: 6px;
    letter-spacing: 0.6px;
    padding: 2px 5px;
  }
  .compact-tool-card p {
    font-size: 10px;
    line-height: 1.65;
  }
  .compact-tool-card .primary {
    padding: 10px 7px;
    width: 94px;
    white-space: normal;
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
  }
  .hero .actions a.secondary {
    white-space: normal;
    text-align: center;
  }
  .calculator-list {
    gap: 11px;
  }
}
@media (max-width: 380px) {
  .compact-tool-card {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
  }
  .compact-tool-card .tile-icon {
    display: none;
  }
  .compact-tool-card .primary {
    width: 88px;
  }
  .compact-tool-card .tile-title {
    font-size: 17px;
  }
}
/* Thin, clickable news rows. */
.tibia-news-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}
.tibia-news-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 5px;
}
.tibia-news-meta {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  flex-wrap: nowrap;
}
.tibia-news-meta time {
  white-space: nowrap;
}
.news-category {
  font-size: 8px;
  padding: 2px 5px;
  white-space: nowrap;
}
.tibia-news-card h3 {
  font:
    14px/1.4 Arial,
    Helvetica,
    sans-serif;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.home-news .section-title {
  margin-bottom: 18px;
}
.home-news .news-placeholder {
  padding: 12px 15px;
}
@media (max-width: 1000px) {
  .tibia-news-grid {
    grid-template-columns: 1fr;
  }
  .tibia-news-card {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 12px;
  }
  .tibia-news-meta {
    gap: 9px;
  }
}
@media (max-width: 700px) {
  .tibia-news-grid {
    gap: 5px;
  }
  .tibia-news-card {
    grid-template-columns: 77px minmax(0, 1fr);
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
  }
  .tibia-news-meta {
    font-size: 8px;
  }
  .tibia-news-meta .news-category {
    display: none;
  }
  .tibia-news-card h3 {
    font:
      12px/1.4 Arial,
      Helvetica,
      sans-serif;
    margin: 0;
  }
  .home-news .section-title {
    margin-bottom: 16px;
  }
}
/* Compact live information; keep existing monster sprite sizes. */
.live-card {
  min-height: 78px;
  padding: 11px 17px;
  gap: 12px;
}
.live-label {
  margin-bottom: 4px;
}
.live-card strong {
  font-size: 19px;
  line-height: 1.25;
}
.live-section {
  margin-top: 20px;
  margin-bottom: 20px;
}
@media (max-width: 1000px) {
  .live-card {
    min-height: 74px;
    padding: 9px 16px;
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .live-card {
    min-height: 72px;
    padding: 8px 12px;
    gap: 8px;
  }
  .live-label {
    font-size: 7px;
    margin-bottom: 4px;
  }
  .live-card strong {
    font-size: 16px;
    line-height: 1.2;
  }
  .live-section {
    margin-top: 18px;
    margin-bottom: 18px;
  }
}
.stamina-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stamina-current {
  display: block;
  font: 52px Georgia;
  color: var(--gold);
  text-align: center;
  margin: 10px 0 25px;
}
.slider-label {
  font-size: 11px;
  color: var(--muted);
}
.stamina-slider {
  width: 100%;
  height: 9px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #a84d4d 0 33.33%, #b8944e 33.33% 92.86%, #23866f 92.86% 100%);
  margin: 14px 0;
  cursor: pointer;
}
.stamina-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: #dfc38b;
  border: 3px solid #253c30;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #bba374;
}
.stamina-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #dfc38b;
  border: 3px solid #253c30;
  border-radius: 50%;
}
.stamina-marks {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 25px;
}
.calc-panel .stamina-delay {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0;
  cursor: pointer;
}
.stamina-delay input {
  accent-color: #23866f;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.stamina-wait {
  display: block;
  font: 44px/1.2 Georgia;
  color: #a1d5bc;
  margin: 26px 0 12px;
}
.stamina-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 12px;
  margin-top: 20px;
}
.stamina-summary > span {
  color: var(--muted);
}
.stamina-summary > b {
  font-weight: normal;
  font-size: 16px;
  color: var(--text);
}
.stamina-state {
  font-size: 12px;
  color: var(--gold);
}
#loot-input {
  display: block;
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111916;
  color: var(--text);
  font: 13px/1.6 monospace;
  resize: vertical;
  min-height: 190px;
}
.loot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.loot-actions .text-button {
  margin: 0;
}
.loot-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.loot-summary > div {
  padding: 22px;
}
.loot-summary span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.loot-summary strong {
  display: block;
  font: 25px Georgia;
  color: var(--gold);
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.loot-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}
.loot-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  min-width: 660px;
}
.loot-table th {
  padding: 11px;
  text-align: left;
  color: var(--muted);
  font-weight: normal;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.loot-table td {
  padding: 13px 11px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.loot-table input {
  font: 13px Arial;
  width: 115px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111916;
  color: var(--text);
  padding: 10px;
}
.loot-transfers {
  margin-top: 20px;
}
.loot-payment {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.loot-payment strong {
  font-weight: normal;
  color: var(--text);
}
.loot-payment > span {
  color: var(--muted);
}
.loot-payment b {
  color: var(--gold);
  font-weight: normal;
}
html[data-theme="light"] .stamina-wait {
  color: #207b66;
}
html[data-theme="light"] #loot-input,
html[data-theme="light"] .loot-table input {
  background: #fff;
  color: #24392f;
}
@media (max-width: 700px) {
  .stamina-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stamina-current {
    font-size: 44px;
  }
  .stamina-wait {
    font-size: 37px;
  }
  .loot-summary {
    gap: 10px;
  }
  .loot-summary > div {
    padding: 16px 12px;
  }
  .loot-summary span {
    font-size: 9px;
  }
  .loot-summary strong {
    font-size: 18px;
  }
  .loot-transfers .tracker-topbar {
    gap: 12px;
  }
  .loot-actions .primary,
  .loot-actions .secondary {
    font-size: 11px;
    padding: 11px 15px;
  }
  .loot-table input {
    font-size: 16px;
  }
}
/* Hunt session comparison */
.hunt-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.hunt-fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.hunt-fields input,
.hunt-fields select {
  width: 100%;
  min-height: 46px;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  font-size: 16px;
}
.hunt-fields option {
  background: #18211e;
  color: #eee;
}
#hunt-input {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 14px/1.6 monospace;
  resize: vertical;
}
.hunt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.hunt-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hunt-stats span {
  font-size: 12px;
  color: var(--muted);
}
.hunt-stats strong {
  font-size: 22px;
  color: #8ccbbb;
}
.hunt-chart-scroll {
  overflow-x: auto;
}
.hunt-chart-scroll svg {
  width: 100%;
  display: block;
}
.hunt-grid {
  stroke: currentColor;
  opacity: 0.12;
}
.hunt-zero {
  stroke: currentColor;
  opacity: 0.45;
}
.hunt-axis {
  fill: currentColor;
  font: 12px system-ui;
}
.hunt-positive {
  fill: #299781;
}
.hunt-negative {
  fill: #c97557;
}
.hunt-line {
  fill: none;
  stroke: #75baa6;
  stroke-width: 3;
}
.hunt-empty {
  padding: 45px 10px;
  text-align: center;
  color: var(--muted);
}
.hunt-row {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.hunt-row-select input {
  width: 19px;
  height: 19px;
  accent-color: #299781;
}
.hunt-row-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-wrap: anywhere;
}
.hunt-row-copy strong {
  font-size: 19px;
}
.hunt-row-copy small {
  color: var(--muted);
  font-size: 12px;
}
.hunt-row-copy span {
  font-size: 13px;
}
.hunt-row-actions {
  display: flex;
  gap: 10px;
}
.hunt-row-actions button {
  padding: 9px 12px;
}
.hunt-import {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  font-size: 13px;
}
#hunt-chart details {
  margin: 20px 0;
}
#hunt-chart summary {
  cursor: pointer;
  font-size: 14px;
}
[data-theme="light"] .hunt-stats strong {
  color: #237b69;
}
[data-theme="light"] .hunt-fields option {
  background: #fff;
  color: #222;
}
@media (max-width: 600px) {
  .hunt-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hunt-stats {
    gap: 6px;
  }
  .hunt-stats div {
    padding: 10px;
  }
  .hunt-stats strong {
    font-size: 17px;
  }
  .hunt-row {
    flex-wrap: wrap;
  }
  .hunt-row-actions {
    margin-left: 34px;
  }
  .hunt-row-copy {
    flex-basis: 75%;
  }
}

/* Green replaces the original pink accent; original theme surfaces are retained. */
:root {
  --red: #23866f;
}
html[data-theme="light"] {
  --red: #23866f;
}
.primary {
  background: linear-gradient(120deg, #207b66, #176552);
  border-color: #399b81;
  color: #fff;
}
.primary:hover {
  background: #176552;
  color: #fff;
}
.hero em {
  color: #a6d8c4;
}
.brand-accent {
  color: #83cbb0;
}
html[data-theme="light"] .brand-accent {
  color: #207b66;
}
.header .language-control button.active {
  background: #207b66;
  color: #fff;
}
.toggle input:checked + .switch {
  background: #23866f;
}
.cookie-actions .primary {
  background: #207b66;
}
.nav-group[open] > summary,
.nav-group summary:hover {
  background: #203a3030;
}
html[data-theme="light"] .primary,
html[data-theme="light"] .primary:hover {
  color: #fff;
}
html[data-theme="light"] .hero em {
  color: #a6d8c4;
}
html[data-theme="light"] .header .language-control button.active {
  color: #fff;
  background: #207b66;
}
#loot-input,
.loot-table input {
  background: #151414;
}
.hunt-fields option {
  background: #1e1d1d;
}
html[data-theme="light"] #loot-input,
html[data-theme="light"] .loot-table input {
  background: #fff;
  color: var(--text);
}
.hunt-metrics {
  border: 0;
  padding: 0;
  margin: 22px 0 12px;
}
.hunt-metrics legend {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.hunt-metrics > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hunt-metrics label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.hunt-metrics label:has(input:checked) {
  border-color: var(--metric-color);
  background: color-mix(in srgb, var(--metric-color) 10%, transparent);
}
.hunt-metrics input {
  accent-color: var(--metric-color);
  width: 17px;
  height: 17px;
  margin: 0;
}
.metric-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--metric-color);
}
.hunt-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px 0 8px;
  font-size: 12px;
}
.hunt-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hunt-legend i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.hunt-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.hunt-stats small {
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .hunt-metrics label {
    flex: 1 1 42%;
    padding: 10px;
    font-size: 12px;
  }
  .hunt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Complete emerald controls with neutral drawer surfaces. */
:root {
  --line: #363536;
  --muted: #a7a3a6;
}
.menu-drawer {
  background: linear-gradient(150deg, #242324, #171617 70%);
  border-left-color: #48665b;
}
.drawer-top button {
  background: #252526;
  border-color: #48665b;
}
.nav-submenu {
  border-color: #48665b;
}
.theme-toggle,
.language-control,
.header > .menu {
  background: #1e1d1f;
  border-color: #48665b;
  color: #c8d8d1;
}
.language-control button {
  color: var(--muted);
}
.back-top {
  background: #242324ed;
  border-color: #4f806e;
  color: #d9e9e2;
}
.back-top:hover {
  background: #254739;
}
.nav-group[open] > summary,
.nav-group summary:hover {
  background: #203a3030;
}
html[data-theme="light"] {
  --line: #d6d0d3;
  --muted: #706b6e;
}
html[data-theme="light"] .menu-drawer {
  background: linear-gradient(150deg, #fff, #f3f2f2);
  border-color: #a0bdb2;
}
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .language-control,
html[data-theme="light"] .header > .menu,
html[data-theme="light"] .drawer-top button {
  background: #fff;
  border-color: #a0bdb2;
  color: #32715e;
}
html[data-theme="light"] .menu-drawer nav a:hover,
html[data-theme="light"] .menu-drawer nav a.active,
html[data-theme="light"] .nav-group summary:hover,
html[data-theme="light"] .nav-group[open] > summary {
  background: #e8f1ec;
  color: #286d58;
}
html[data-theme="light"] .nav-submenu {
  border-color: #a0bdb2;
}
html[data-theme="light"] .back-top {
  background: #ffffffed;
  border-color: #a0bdb2;
  color: #32715e;
}

html[data-theme="light"] {
  --bg: #f7f3f5;
}

.profile-outfit {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  background: none;
  border: 0;
  filter: drop-shadow(0 4px 5px #0003);
}
@media (max-width: 600px) {
  .profile-outfit {
    width: 72px;
    height: 72px;
  }
}
/* NPC price minigame */
.price-page {
  max-width: 1020px;
}
.price-arena {
  padding: 30px;
}
.price-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}
.price-scoreboard span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.price-scoreboard strong {
  display: block;
  font: 25px Georgia;
  margin-top: 5px;
  color: var(--gold);
}
#price-progress {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 5px;
  margin: 22px 0 28px;
  appearance: none;
  accent-color: #23866f;
}
#price-progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: 5px;
}
#price-progress::-webkit-progress-value {
  background: #23866f;
  border-radius: 5px;
}
#price-progress::-moz-progress-bar {
  background: #23866f;
  border-radius: 5px;
}
.price-question {
  text-align: center;
  font: 24px Georgia;
  margin-bottom: 24px;
}
.price-choices {
  display: grid;
  grid-template-columns: 1fr 35px 1fr;
  gap: 20px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 300px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.price-card:not(:disabled):hover {
  border-color: #399b81;
  transform: translateY(-3px);
  color: var(--text);
}
.price-card:disabled {
  cursor: default;
  opacity: 1;
  color: var(--text);
}
.price-item-art {
  height: 108px;
  width: 130px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #d3b18216, transparent 70%);
}
.price-item-art img {
  image-rendering: pixelated;
  object-fit: contain;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 5px 6px #0004);
}
.price-card > strong {
  font: 23px Georgia;
  text-align: center;
  min-height: 54px;
  display: grid;
  place-items: center;
}
.price-npc {
  font-size: 12px;
  color: var(--muted);
}
.price-value {
  font: 28px Georgia;
  color: var(--gold);
}
.price-card-action {
  font-size: 12px;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 5px;
  background: #23866f20;
  color: #80c7b0;
}
.price-versus {
  align-self: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
}
.price-card.price-correct {
  border: 2px solid #399b81;
  background: color-mix(in srgb, #23866f 8%, var(--bg));
}
.price-card.price-wrong {
  border: 2px solid #b77b57;
}
.price-feedback {
  min-height: 110px;
  text-align: center;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.price-feedback p {
  font-size: 13px;
  max-width: 520px;
}
.price-feedback-correct {
  color: #7bc9a5;
}
.price-rules {
  margin-top: 24px;
  padding: 25px;
}
.price-rules h2 {
  font: 23px Georgia;
  margin-bottom: 12px;
}
.price-rules p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.price-rules a {
  color: #7cb7a4;
  text-decoration: underline;
}
.price-result {
  text-align: center;
  padding: 35px 10px;
}
.price-result h2 {
  font: 36px Georgia;
  margin: 20px 0;
}
.price-final-score {
  display: block;
  font: 43px Georgia;
  color: var(--gold);
  margin-bottom: 12px;
}
.price-result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}
.price-result > p {
  margin-top: 10px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
html[data-theme="light"] .price-card-action {
  color: #207b66;
}
html[data-theme="light"] .price-feedback-correct {
  color: #207b66;
}
@media (max-width: 600px) {
  .price-arena {
    padding: 20px 14px;
  }
  .price-scoreboard {
    gap: 6px;
  }
  .price-scoreboard span {
    font-size: 9px;
  }
  .price-scoreboard strong {
    font-size: 21px;
  }
  .price-choices {
    grid-template-columns: 1fr 20px 1fr;
    gap: 6px;
  }
  .price-card {
    padding: 20px 8px 15px;
    gap: 10px;
    min-height: 270px;
  }
  .price-card > strong {
    font-size: 18px;
    min-height: 48px;
    overflow-wrap: anywhere;
  }
  .price-item-art {
    width: 100%;
    height: 92px;
  }
  .price-item-art img {
    width: 80px;
    height: 80px;
  }
  .price-npc {
    font-size: 10px;
  }
  .price-value {
    font-size: 23px;
  }
  .price-card-action {
    font-size: 10px;
    padding: 7px;
  }
  .price-question {
    font-size: 21px;
  }
  .price-result h2 {
    font-size: 29px;
  }
  .price-final-score {
    font-size: 34px;
  }
}

.price-pool {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: -10px 0 20px;
}
/* Tibia Memory: emerald card frames and portal crest backs. */
.memory-page {
  max-width: 1080px;
}
.memory-arena {
  padding: 28px;
}
.memory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.memory-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.memory-toolbar select {
  background: var(--bg);
  color: var(--text);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  max-width: 270px;
}
.memory-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.memory-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.memory-stats strong {
  display: block;
  font: 25px Georgia;
  color: var(--gold);
  margin: 4px 0;
}
.memory-status {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  min-height: 48px;
  padding: 17px 0 12px;
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(var(--memory-columns), minmax(0, 1fr));
  gap: 13px;
  max-width: 760px;
  margin: 8px auto 0;
}
.memory-card {
  background: none;
  padding: 0;
  border: 0;
  perspective: 900px;
  aspect-ratio: 4/5;
  min-width: 0;
  max-height: 170px;
}
.memory-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s;
}
.memory-card.is-open .memory-card-inner {
  transform: rotateY(180deg);
}
.memory-back,
.memory-front {
  position: absolute;
  inset: 0;
  border: 2px solid #23866f;
  border-radius: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 3px 10px #0002;
}
.memory-back {
  background: linear-gradient(135deg, #232627, #151a19);
}
.memory-back img {
  width: 48px;
  height: 58px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px #0005);
}
.memory-front {
  background: var(--panel);
  color: var(--text);
  transform: rotateY(180deg);
  padding: 10px;
}
.memory-front > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}
.memory-item-name {
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}
.memory-card:not(:disabled):hover .memory-back {
  border-color: #72c8a7;
  box-shadow: 0 0 18px #23866f40;
}
.memory-card:disabled {
  cursor: default;
  color: var(--text);
}
.memory-card.is-matched .memory-front {
  border-color: #78c69d;
  background: color-mix(in srgb, #23866f 12%, var(--panel));
}
.memory-completion {
  text-align: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.memory-completion h2 {
  font: 28px Georgia;
  margin-bottom: 10px;
}
.memory-completion p {
  font-size: 13px;
  color: var(--muted);
}
.memory-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
html[data-theme="light"] .memory-back {
  background: linear-gradient(135deg, #fff, #edf3ef);
}
html[data-theme="light"] .memory-front {
  background: #fff;
}
@media (max-width: 600px) {
  .memory-arena {
    padding: 20px 12px;
  }
  .memory-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .memory-toolbar label {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
  }
  .memory-toolbar select {
    width: 100%;
    font-size: 16px;
    max-width: 100%;
  }
  .memory-toolbar button {
    padding: 11px;
    font-size: 10px;
    align-self: flex-end;
  }
  .memory-board {
    grid-template-columns: repeat(var(--memory-mobile-columns), minmax(0, 1fr));
    gap: 8px;
  }
  .memory-card {
    max-height: 150px;
  }
  .memory-front {
    padding: 5px;
    gap: 5px;
  }
  .memory-front > img {
    width: 48px;
    height: 48px;
    max-width: 85%;
    max-height: 60%;
    object-fit: contain;
  }
  .memory-back img {
    width: 36px;
    height: 43px;
    max-width: 65%;
    max-height: 65%;
  }
  .memory-item-name {
    font-size: 8px;
  }
  .memory-back,
  .memory-front {
    border-radius: 7px;
  }
  .memory-stats strong {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .memory-card-inner {
    transition: none;
  }
}
.memory-board {
  max-width: min(760px, calc(var(--memory-columns) * 140px + (var(--memory-columns) - 1) * 13px));
}
.memory-card {
  max-height: none;
}
@media (max-width: 600px) {
  .memory-board {
    max-width: min(
      100%,
      calc(var(--memory-mobile-columns) * 140px + (var(--memory-mobile-columns) - 1) * 8px)
    );
  }
}

/* TT monogram has a square footprint. */
.pixel-logo {
  width: 48px;
  height: 48px;
}
.footer-top .pixel-logo {
  width: 42px;
  height: 42px;
}
.memory-back img {
  width: 48px;
  height: 48px;
}
@media (max-width: 600px) {
  .header .pixel-logo {
    width: 32px;
    height: 32px;
  }
  .memory-back img {
    width: 36px;
    height: 36px;
  }
}

/* Approved TT shield: preserve its tall silhouette. */
.pixel-logo {
  width: 44px;
  height: 54px;
}
.footer-top .pixel-logo {
  width: 40px;
  height: 49px;
}
.memory-back img {
  width: 52px;
  height: 64px;
}
@media (max-width: 600px) {
  .header .pixel-logo {
    width: 32px;
    height: 39px;
  }
  .memory-back img {
    width: 44px;
    height: 54px;
  }
}

/* A uniform visible chevron for every expandable menu category. */
.menu-drawer .nav-group > summary svg {
  display: none;
}
.menu-drawer .nav-group > summary::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 4px;
  margin-left: 14px;
  transition: transform 0.2s;
}
.menu-drawer .nav-group[open] > summary::after {
  transform: rotate(225deg);
}
/* Homepage directory: grouped cards instead of one long tool list. */
.home-directory {
  padding: 50px 0 25px;
}
.home-directory-intro h2 {
  font: 34px Georgia;
  margin: 10px 0 12px;
}
.home-directory-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
.home-category-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 35px;
  position: static;
  box-shadow: none;
  background: none;
  padding: 0;
}
.home-category-links a {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  font-size: 12px;
  color: var(--text);
}
.home-category-links a:hover {
  border-color: #399b81;
  color: #83cbb0;
}
.home-tool-group {
  margin-top: 34px;
  scroll-margin-top: 25px;
}
.home-group-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 18px;
}
.home-group-title h3 {
  font: 29px Georgia;
  margin-top: 5px;
}
.home-group-title > a {
  font-size: 12px;
  color: #83cbb0;
}
.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-tool-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #222021, #181718);
  padding: 22px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.home-tool-card:hover,
.home-game-card:hover {
  border-color: #399b81;
  color: var(--text);
  background: color-mix(in srgb, #23866f 6%, var(--panel));
}
.home-tool-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--gold);
  border: 1px solid #d3b18230;
  border-radius: 9px;
  background: #d3b18208;
}
.home-tool-card h4,
.home-game-copy h4 {
  font: 24px/1.2 Georgia;
  overflow-wrap: anywhere;
}
.home-tool-card p,
.home-game-copy p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.home-card-action {
  display: block;
  justify-self: start;
  color: #8fcbb8;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #399b8160;
  padding-bottom: 3px;
  margin-top: 4px;
}
.home-game-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #222021, #181718);
  transition: border-color 0.2s;
}
.home-game-art {
  flex: 0 0 140px;
  width: 140px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-game-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.home-game-copy small {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.memory-preview {
  position: relative;
}
.memory-preview > span {
  width: 56px;
  height: 75px;
  border: 1.5px solid #399b81;
  border-radius: 7px;
  background: linear-gradient(145deg, #252a29, #151a19);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 18px #0004;
}
.memory-preview > span:first-child {
  transform: rotate(-12deg);
  margin-right: -10px;
}
.memory-preview > span:last-child {
  transform: rotate(10deg);
}
.memory-preview img {
  width: 32px;
  height: 39px;
  object-fit: contain;
  image-rendering: pixelated;
}
.price-preview {
  gap: 7px;
}
.price-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 5px #0005);
}
.price-preview > span {
  font-size: 10px;
  color: var(--gold);
}
.home-contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
  padding: 25px 28px;
  background: linear-gradient(110deg, #23866f13, transparent);
  border: 1px solid #399b813a;
  border-radius: 10px;
}
.home-contact-strip h3 {
  font: 23px Georgia;
}
.home-contact-strip p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.home-contact-strip .secondary {
  white-space: nowrap;
}
html[data-theme="light"] .home-tool-card,
html[data-theme="light"] .home-game-card {
  background: #fff;
}
html[data-theme="light"] .home-card-action,
html[data-theme="light"] .home-group-title > a {
  color: #237b65;
}
html[data-theme="light"] .memory-preview > span {
  background: linear-gradient(145deg, #fff, #eef4f0);
}
html[data-theme="light"] .home-category-links a:hover {
  color: #237b65;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 25px;
  margin-bottom: 30px;
}
.contact-direct,
.contact-compose {
  padding: 30px;
}
.contact-direct h2,
.contact-compose h2 {
  font: 26px Georgia;
  margin: 15px 0;
}
.contact-mail-icon {
  font-size: 33px;
  color: var(--gold);
}
.contact-address {
  display: block;
  font-size: 21px;
  color: #8fcbb8;
  margin: 17px 0 20px;
  overflow-wrap: anywhere;
}
.contact-direct > p {
  font-size: 13px;
  color: var(--muted);
}
.contact-topics {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-topics h3 {
  font: 20px Georgia;
}
.contact-topics ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}
.contact-compose form > label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 8px;
}
.contact-compose select,
.contact-compose textarea {
  width: 100%;
  padding: 13px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  font: 14px/1.6 Arial;
}
.contact-compose textarea {
  resize: vertical;
}
.contact-compose .profile-small {
  margin-top: 12px;
  font-size: 11px;
}
html[data-theme="light"] .contact-address {
  color: #237b65;
}
html[data-theme="light"] .contact-compose select,
html[data-theme="light"] .contact-compose textarea {
  background: #fff;
}
@media (max-width: 850px) {
  .home-game-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .home-game-art {
    flex-basis: auto;
    align-self: center;
    min-height: 95px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .home-game-copy {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .home-directory {
    padding-top: 35px;
  }
  .home-directory-intro h2 {
    font-size: 29px;
  }
  .home-category-links {
    gap: 7px;
    margin-bottom: 25px;
  }
  .home-category-links a {
    font-size: 11px;
    padding: 7px 12px;
  }
  .home-group-title h3 {
    font-size: 25px;
  }
  .home-group-title > a {
    font-size: 10px;
  }
  .home-card-grid,
  .home-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-grid-three > .home-tool-card:last-child {
    grid-column: 1/-1;
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto auto;
    min-height: 0;
    align-items: center;
    gap: 4px 12px;
  }
  .home-grid-three > .home-tool-card:last-child .home-tool-icon {
    grid-column: 1;
    grid-row: 1/3;
  }
  .home-grid-three > .home-tool-card:last-child h4 {
    grid-column: 2;
    grid-row: 1;
  }
  .home-grid-three > .home-tool-card:last-child p {
    grid-column: 2;
    grid-row: 2;
  }
  .home-grid-three > .home-tool-card:last-child .home-card-action {
    grid-column: 3;
    grid-row: 1/3;
    font-size: 10px;
    max-width: 65px;
  }
  .home-tool-card {
    padding: 16px;
    min-height: 165px;
    gap: 8px;
  }
  .home-tool-card h4,
  .home-game-copy h4 {
    font-size: 19px;
  }
  .home-tool-card p,
  .home-game-copy p {
    font-size: 11px;
  }
  .home-card-action {
    font-size: 11px;
  }
  .home-game-card {
    padding: 16px;
    gap: 14px;
  }
  .home-game-art {
    width: 100%;
    flex-basis: auto;
    min-height: 90px;
  }
  .home-game-copy small {
    font-size: 8px;
  }
  .home-contact-strip {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .home-contact-strip h3 {
    font-size: 22px;
  }
  .contact-direct,
  .contact-compose {
    padding: 23px;
  }
  .contact-address {
    font-size: 21px;
  }
  .contact-compose select,
  .contact-compose textarea {
    font-size: 16px;
  }
  .contact-compose .loot-actions {
    gap: 9px;
  }
  .contact-compose .loot-actions button {
    font-size: 11px;
    padding: 11px 13px;
  }
  .footer-top > div {
    flex-wrap: wrap;
  }
}
@media (max-width: 360px) {
  .home-tool-card,
  .home-game-card {
    padding: 13px;
  }
  .home-tool-card h4,
  .home-game-copy h4 {
    font-size: 17px;
  }
  .home-grid-three > .home-tool-card:last-child {
    grid-template-columns: 32px 1fr;
  }
  .home-grid-three > .home-tool-card:last-child .home-card-action {
    grid-column: 2;
    grid-row: 3;
    max-width: none;
  }
}

/* Shared locally hosted pixel-art icons. */
.tool-pixel-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.home-tool-icon {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.compact-tool-card .tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  grid-column: 1;
  grid-row: 1;
  line-height: 1;
}
.compact-tool-card {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
}
@media (max-width: 700px) {
  .compact-tool-card {
    grid-template-columns: 40px minmax(0, 1fr) 94px;
    gap: 11px;
  }
  .compact-tool-card .tile-icon {
    width: 40px;
    height: 48px;
  }
  .compact-tool-card .tool-card-copy {
    grid-column: 2;
  }
  .compact-tool-card > .primary {
    grid-column: 3;
  }
}

@media (max-width: 380px) {
  .compact-tool-card {
    grid-template-columns: 32px minmax(0, 1fr) 76px;
    gap: 8px;
  }
  .compact-tool-card .tile-icon,
  .compact-tool-card .tool-pixel-icon {
    width: 32px;
  }
  .compact-tool-card .primary {
    padding: 10px 6px;
    font-size: 12px;
  }
}

/* Original Tibia sprites at native resolution, without stretching. */
.tool-pixel-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: none;
  transform: none;
}
.tool-pixel-icon[src$="stamina.gif"] {
  height: 48px;
}

/* Editorial guides: readable prose, native item sprites and compact recipes. */
.guide-page {
  padding-bottom: 70px;
}
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 35px;
  align-items: center;
  padding: 35px 0 45px;
  border-bottom: 1px solid var(--line, #ffffff20);
  margin-bottom: 35px;
}
.guide-hero h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  margin: 15px 0 22px;
  max-width: 760px;
}
.guide-hero > div > p:not(.eyebrow) {
  max-width: 730px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.guide-meta {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.guide-hero-art {
  display: grid;
  justify-items: center;
  gap: 18px;
  background: radial-gradient(ellipse, #247e6926, transparent 72%);
  padding: 22px 0;
}
.guide-hero-art > img {
  width: 96px;
  height: 96px;
}
.guide-hero-art > div {
  display: flex;
  gap: 12px;
}
.guide-hero-art img,
.guide-material img,
.guide-choice > img,
.guide-feature > img {
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.guide-toc {
  position: sticky;
  top: 25px;
  padding: 20px 0;
  max-height: 80vh;
  overflow: auto;
}
.guide-toc strong {
  font-size: 13px;
  color: var(--gold);
}
.guide-toc nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 15px;
}
.guide-toc a {
  padding: 9px 12px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.guide-toc a:hover,
.guide-toc a:focus-visible {
  color: var(--accent-light, #a4d9bf);
  background: #247e6914;
  border-color: #247e69;
}
.guide-body {
  min-width: 0;
  max-width: 850px;
}
.guide-section {
  scroll-margin-top: 25px;
  padding: 0 0 38px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line, #ffffff20);
}
.guide-section h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  margin: 0 0 24px;
}
.guide-body p,
.guide-body li {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}
.guide-body p {
  margin: 14px 0;
}
.guide-note {
  border-left: 3px solid #247e69;
  background: #247e6912;
  padding: 6px 22px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.guide-note p {
  color: inherit;
}
.guide-choices {
  display: grid;
  gap: 12px;
}
.guide-choice {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line, #ffffff20);
  border-radius: 10px;
  background: var(--panel, #ffffff03);
}
.guide-choice > img {
  margin-top: 5px;
}
.guide-choice h3 {
  margin: 0 0 5px;
  font-size: 24px;
}
.guide-choice strong {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}
.guide-choice p {
  margin: 8px 0 0;
}
.guide-table-wrap {
  overflow-x: auto;
}
.guide-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.guide-body th,
.guide-body td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line, #ffffff20);
}
.guide-body thead {
  background: #247e6912;
  color: var(--gold);
}
.guide-body tbody th {
  font-weight: 500;
}
.guide-body td {
  color: var(--muted);
}
.guide-recipe {
  border: 1px solid var(--line, #ffffff20);
  border-radius: 10px;
  margin: 18px 0;
  overflow: hidden;
}
.guide-recipe h3 {
  margin: 0;
  background: #247e6910;
  padding: 15px 20px;
  font-size: 25px;
}
.guide-material {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line, #ffffff20);
}
.guide-material img {
  width: 32px;
  height: 32px;
}
.guide-material strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.guide-material small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.guide-steps {
  padding-left: 25px;
}
.guide-steps li {
  padding-left: 10px;
  margin: 22px 0;
}
.guide-steps li::marker {
  color: var(--gold);
}
.guide-steps h3 {
  font-size: 21px;
  margin: 0;
  color: var(--text);
}
.guide-steps p {
  margin: 5px 0;
}
.guide-checks {
  padding-left: 22px;
}
.guide-checks li {
  margin: 15px 0;
  padding-left: 8px;
}
.guide-checks li::marker {
  color: #247e69;
}
.guide-faq details {
  border-bottom: 1px solid var(--line, #ffffff20);
  padding: 18px 0;
}
.guide-faq summary {
  cursor: pointer;
  font-size: 17px;
  line-height: 1.6;
}
.guide-faq details p {
  font-size: 15px;
}
.guide-sources h2 {
  font-size: 24px;
}
.guide-sources p,
.guide-sources li {
  font-size: 12px;
  line-height: 1.8;
}
.guide-sources a {
  overflow-wrap: anywhere;
}
.guide-feature {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--line, #ffffff20);
  border-radius: 12px;
  padding: 25px 30px;
  background: linear-gradient(110deg, #247e6910, transparent);
}
.guide-feature h2 {
  font-size: clamp(23px, 3vw, 32px);
  margin: 7px 0;
}
.guide-feature p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0;
  line-height: 1.6;
}
.guide-feature .eyebrow {
  font-size: 10px;
  margin: 0;
}
.guide-feature > .primary,
.guide-feature > .secondary {
  white-space: nowrap;
}
.home-guide-entry {
  margin: 35px 0 60px;
}
@media (max-width: 850px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .guide-toc {
    position: static;
    max-height: none;
    padding: 0 0 25px;
    border-bottom: 1px solid var(--line, #ffffff20);
  }
  .guide-toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .guide-toc a {
    padding: 7px 10px;
  }
  .guide-hero {
    grid-template-columns: minmax(0, 1fr) 115px;
    gap: 15px;
  }
  .guide-hero-art > img {
    width: 80px;
    height: 80px;
  }
  .guide-hero-art > div {
    gap: 5px;
  }
  .guide-feature {
    gap: 18px;
    padding: 22px;
  }
  .guide-feature > .primary,
  .guide-feature > .secondary {
    grid-column: 2;
    justify-self: start;
  }
}
@media (max-width: 500px) {
  .guide-hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
    padding-bottom: 30px;
  }
  .guide-hero-art {
    display: none;
  }
  .guide-hero h1 {
    font-size: 40px;
  }
  .guide-hero > div > p:not(.eyebrow) {
    font-size: 16px;
  }
  .guide-meta {
    font-size: 11px;
  }
  .guide-body p,
  .guide-body li {
    font-size: 15px;
  }
  .guide-choice {
    padding: 16px;
    gap: 15px;
  }
  .guide-body th,
  .guide-body td {
    padding: 12px 9px;
    font-size: 12px;
  }
  .guide-material {
    padding: 14px;
  }
  .guide-material strong {
    font-size: 14px;
  }
  .guide-toc a {
    font-size: 12px;
  }
  .guide-feature {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 16px;
  }
  .guide-feature > img {
    width: 40px;
    height: 48px;
  }
  .guide-feature > .primary,
  .guide-feature > .secondary {
    grid-column: 2;
  }
  .guide-section {
    padding-bottom: 27px;
    margin-bottom: 27px;
  }
}
.guide-hero h1,
.guide-body h2,
.guide-body h3,
.guide-feature h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}
.guide-body a {
  color: var(--red);
}
.guide-body a:hover {
  text-decoration: underline;
}
.guide-toc a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Full imbuing reference. Filters retain readable rows on small screens. */
.imbue-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
}
.imbue-facts > div {
  padding: 18px 12px;
  text-align: center;
  background: #247e690a;
}
.imbue-facts > div + div {
  border-left: 1px solid var(--line);
}
.imbue-facts strong {
  display: block;
  font:
    30px Georgia,
    serif;
  color: var(--gold);
}
.imbue-facts span {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 5px;
}
.imbue-access-art {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 20px 0;
}
.imbue-access-art img,
.imbue-scroll-cards img,
.imbue-entry img {
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
}
.imbue-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  margin-top: 25px;
}
.imbue-filters label {
  font-size: 12px;
  color: var(--muted);
}
.imbue-filters select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  padding: 10px 28px 10px 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 14px Arial;
  min-height: 42px;
}
.imbue-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 15px 0;
  font-size: 12px;
  color: var(--muted);
}
.imbue-results > div {
  display: flex;
  gap: 7px;
}
.imbue-results .secondary {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 36px;
}
.imbue-entry {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 10px 0;
  overflow: hidden;
  background: var(--panel);
}
.imbue-entry > summary {
  display: grid;
  grid-template-columns: 32px minmax(120px, 0.8fr) minmax(120px, 1fr) 10px;
  gap: 16px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 17px 18px;
  min-height: 78px;
}
.imbue-entry > summary::-webkit-details-marker {
  display: none;
}
.imbue-entry > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  justify-self: end;
  transition: transform 0.15s;
}
.imbue-entry[open] > summary::after {
  transform: rotate(225deg);
}
.imbue-entry[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #247e690a;
}
.imbue-identity strong {
  display: block;
  font:
    23px Georgia,
    serif;
  line-height: 1.3;
}
.imbue-identity small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.imbue-summary-effect {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gold);
  text-align: right;
}
.imbue-entry-body {
  padding: 8px 20px 20px;
}
.guide-body .imbue-entry-body p {
  font-size: 13px;
  line-height: 1.7;
}
.imbue-entry-body table {
  font-size: 12px;
  margin: 15px 0;
}
.imbue-entry-body th,
.imbue-entry-body td {
  padding: 11px 9px;
}
.imbue-tier-materials h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 20px 0 8px;
}
.imbue-tier-materials .guide-materials {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.imbue-tier-materials .guide-material:first-child {
  border-top: 0;
}
.imbue-tier-materials .guide-material {
  padding: 12px 14px;
  gap: 15px;
}
.imbue-unlock {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.imbue-unlock strong {
  color: var(--gold);
  font-weight: 500;
}
.imbue-scroll-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.imbue-scroll-cards > div {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 20px 17px;
}
.imbue-scroll-cards h3 {
  font:
    24px Georgia,
    serif;
  margin: 10px 0;
}
.guide-body .imbue-scroll-cards p {
  font-size: 13px;
  line-height: 1.8;
}
.guide-body table td > img {
  vertical-align: middle;
  margin-right: 10px;
}
.imbue-entry[hidden],
.imbue-tier-materials[hidden] {
  display: none !important;
}
#imbue-empty {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.imbue-entry summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}
@media (max-width: 650px) {
  .imbue-filters {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .imbue-entry > summary {
    grid-template-columns: 32px minmax(0, 1fr) 10px;
    gap: 8px 13px;
    padding: 15px;
  }
  .imbue-entry > summary > img {
    grid-row: 1/3;
  }
  .imbue-identity {
    grid-column: 2;
    grid-row: 1;
  }
  .imbue-entry > summary::after {
    grid-column: 3;
    grid-row: 1/3;
  }
  .imbue-summary-effect {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    font-size: 12px;
  }
  .imbue-identity strong {
    font-size: 22px;
  }
  .imbue-entry-body {
    padding: 5px 13px 17px;
  }
  .imbue-scroll-cards {
    grid-template-columns: 1fr;
  }
  .imbue-scroll-cards > div {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 15px;
    padding: 16px;
  }
  .imbue-scroll-cards > div > img {
    grid-row: 1/3;
  }
  .imbue-scroll-cards h3 {
    margin: 0;
    font-size: 23px;
  }
  .guide-body .imbue-scroll-cards p {
    grid-column: 2;
    margin: 8px 0 0;
  }
  .imbue-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .imbue-facts > div:nth-child(3) {
    border-left: 0;
  }
  .imbue-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .imbue-results .secondary {
    padding: 8px;
    font-size: 10px;
  }
  .guide-body table td > img {
    display: block;
    margin: 0 0 6px;
  }
  .imbue-entry-body td {
    font-size: 11px;
  }
}

/* Imbuing guide: isolate the article contents menu from the global drawer nav. */
.guide-toc nav {
  position: static;
  inset: auto;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: auto;
}
@media (max-width: 850px) {
  .guide-toc {
    width: 100%;
    overflow: visible;
  }
  .guide-toc nav {
    position: static;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .guide-toc strong {
    display: block;
  }
}
@media (max-width: 520px) {
  .guide-toc nav {
    grid-template-columns: 1fr;
  }
  .guide-toc a {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 3px;
  }
  .guide-toc a:last-child {
    border-bottom: 0;
  }
}

/* Per-imbuement level tabs. */
.imbue-tier-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 16px 0 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 82%, var(--bg));
}
.imbue-tier-tab {
  min-height: 42px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.imbue-tier-tab:hover {
  color: var(--text);
  background: #247e6912;
}
.imbue-tier-tab.active {
  color: #fff;
  background: #247e69;
  border-color: #52b99f;
  box-shadow: 0 0 0 1px #247e6930;
}
.imbue-effect-table tbody tr {
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.imbue-effect-table tbody tr:hover {
  background: #247e690d;
}
.imbue-effect-table tbody tr.active {
  background: #247e6918;
}
.imbue-effect-table tbody tr.active td:first-child {
  color: var(--gold);
  font-weight: 700;
}
.imbue-tier-materials {
  animation: imbue-panel-in 0.16s ease-out;
}
@keyframes imbue-panel-in {
  from {
    opacity: 0.25;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
html[data-theme="light"] .imbue-tier-tab.active {
  color: #fff;
  background: #247e69;
  border-color: #247e69;
}
@media (max-width: 520px) {
  .imbue-tier-tabs {
    gap: 4px;
  }
  .imbue-tier-tab {
    min-height: 40px;
    padding: 8px 3px;
    font-size: 11px;
  }
}

/* Homepage hero artwork supplied by the site owner. */
.hero {
  background-image: url("/assets/hero-map.webp");
}
.imbue-entry > summary {
  grid-template-columns: 48px minmax(120px, 0.8fr) minmax(120px, 1fr) 10px;
}
.imbue-entry > summary > img {
  width: 48px;
  height: 48px;
}
@media (max-width: 650px) {
  .imbue-entry > summary {
    grid-template-columns: 48px minmax(0, 1fr) 10px;
  }
}
.wheel-toolbar,
.wheel-save {
  padding: 24px;
  margin-bottom: 20px;
}
.wheel-budget {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 18px;
}
.wheel-budget label {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  min-width: 130px;
}
.wheel-budget input,
.wheel-save-form input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 18px Arial;
}
.wheel-budget > div {
  min-width: 100px;
}
.wheel-budget > div > span {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.wheel-budget strong {
  font: 32px Georgia;
  color: var(--gold);
}
.wheel-hint {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}
.wheel-shell {
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
}
.wheel-shell iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 1400px;
  min-height: 700px;
  background: var(--bg);
}
#wheel-loading {
  position: absolute;
  top: 25px;
  left: 25px;
  padding: 12px;
  background: var(--panel);
  border-radius: 7px;
  color: var(--gold);
}
.wheel-save h2 {
  font: 28px Georgia;
  margin-bottom: 8px;
}
.wheel-save p {
  font-size: 12px;
  color: var(--muted);
}
.wheel-save-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.wheel-save-form input {
  margin: 0;
  flex: 1;
  min-width: 160px;
  font-size: 14px;
}
.wheel-saved-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.wheel-saved-row strong {
  margin-right: auto;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.wheel-delete {
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  padding: 4px 10px;
}
.wheel-credit {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  padding: 12px 0 30px;
}
.wheel-credit a {
  color: var(--red);
}
#wheel-status {
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 600px) {
  .wheel-toolbar,
  .wheel-save {
    padding: 18px;
  }
  .wheel-budget {
    gap: 13px;
  }
  .wheel-budget label {
    min-width: 110px;
  }
  .wheel-budget .primary {
    flex: 1;
  }
  .wheel-save-form .primary,
  .wheel-save-form .secondary {
    flex: 1;
  }
  .wheel-page {
    padding-left: 12px;
    padding-right: 12px;
  }
}
.wheel-budget select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 18px Arial;
  min-height: 47px;
}
.wheel-budget input:focus,
.wheel-budget select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wheel-allocation {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.wheel-allocation strong {
  color: var(--gold);
  margin-left: 7px;
}
.wheel-allocation .wheel-over-budget,
#wheel-over-budget {
  color: #e9a183;
}
#wheel-over-budget {
  margin-top: 12px;
  font-size: 12px;
}
