:root {
  --streamer-primary: 43 68% 47%;
  --streamer-secondary: 268 43% 44%;
  --bg: #07060b;
  --bg-alt: #110d18;
  --panel: rgba(13, 11, 20, 0.88);
  --panel-strong: rgba(18, 14, 27, 0.96);
  --text: #efe6d0;
  --muted: rgba(239, 230, 208, 0.72);
  --line: hsl(var(--streamer-primary) / 0.32);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      hsl(var(--streamer-secondary) / 0.22),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 110% 10%,
      hsl(var(--streamer-primary) / 0.12),
      transparent 50%
    ),
    var(--bg);
}
a {
  color: #e8cf74;
  text-decoration: none;
  transition:
    color 0.15s ease,
    opacity 0.15s ease;
}
a:hover {
  color: #f4df93;
}
button,
input,
select,
textarea {
  font: inherit;
}
:focus-visible {
  outline: 2px solid #f4df93;
  outline-offset: 2px;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}
.page-shell {
  padding-top: 1.6rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 11, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.site-header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
  color: #f3e3a8;
  text-decoration: none;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
}
.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.nav a,
.nav form {
  display: inline-flex;
  align-items: center;
}
.nav a {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover {
  border-color: hsl(var(--streamer-primary) / 0.25);
  background: rgba(201, 162, 39, 0.07);
}
.gold {
  background: linear-gradient(180deg, #f6e7b0, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid hsl(var(--streamer-primary) / 0.35);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: hsl(var(--streamer-primary));
}
.panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.panel::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d4b24a;
  margin: 0 0 0.35rem;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  color: #f3e3a8;
  margin: 0 0 0.5rem;
}
.muted {
  color: rgba(239, 230, 208, 0.7);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, #e8cf74, #a07e1a);
  color: #07060b;
  font-weight: 700;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.96);
}
.btn.ghost {
  background: transparent;
  color: #efe6d0;
  border: 1px solid hsl(var(--streamer-primary) / 0.35);
}
.btn.danger {
  background: #b83a3a;
  color: #fff;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  margin: 0.25rem 0 0.75rem;
  background: #0c0a12;
  border: 1px solid hsl(var(--streamer-primary) / 0.28);
  color: #efe6d0;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0.65rem 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #c9a227;
  cursor: pointer;
}
input[type="color"] {
  width: 2.75rem;
  height: 2.25rem;
  padding: 0.15rem;
  margin: 0;
  cursor: pointer;
}
label {
  font-size: 0.9rem;
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0.45rem 0;
  cursor: pointer;
}
.grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 2fr 1fr;
  }
}
.flash {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid hsl(var(--streamer-primary) / 0.3);
}
.flash.error {
  border-color: #b83a3a;
  color: #e05a5a;
}
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid hsl(var(--streamer-primary) / 0.25);
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 227, 168, 0.75);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.tabs a:hover {
  border-color: #c9a227;
  color: #f3e3a8;
}
.nav-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.tabs a.on {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.15);
  color: #f3e3a8;
}
.tabs a.live-start {
  margin-left: 0.85rem;
}
.bar {
  position: relative;
  height: 8px;
  background: #1a1626;
  overflow: hidden;
}
.bar > span {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    hsl(var(--streamer-primary)),
    hsl(var(--streamer-secondary))
  );
}
.bar > span::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  left: -40%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: sheen 2.8s ease-in-out infinite;
}
.bar.low > span {
  background: linear-gradient(90deg, #7a2424, #e06a6a);
  animation: lowpulse 1.4s ease-in-out infinite;
}
.card {
  border: 1px solid hsl(var(--streamer-primary) / 0.22);
  padding: 1rem;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--streamer-primary) / 0.5);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4b24a;
}
.table td,
.table th {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.overlay {
  background: transparent !important;
}
.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0 2.5rem;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.tiny {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 178, 74, 0.75);
}
.embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0c0a12;
  border: 1px solid hsl(var(--streamer-primary) / 0.28);
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.field {
  display: block;
  margin: 0 0 1rem;
}
.field-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4b24a;
  margin-bottom: 0.2rem;
}
.hint {
  display: block;
  color: rgba(239, 230, 208, 0.58);
  font-size: 0.8rem;
  margin: 0.15rem 0 0.35rem;
  line-height: 1.4;
}
.field .hint {
  margin-top: 0;
}
.flag-list {
  border: 1px solid hsl(var(--streamer-primary) / 0.22);
  padding: 0.85rem 1rem 0.4rem;
  margin: 0.25rem 0 1rem;
}
.flag-list legend {
  padding: 0 0.4rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  max-width: none;
  margin: 0 0 0.85rem;
  cursor: pointer;
}
.check > span {
  min-width: 0;
  flex: 1;
}
.check strong {
  display: block;
  color: #f3e3a8;
  font-weight: 600;
}
.check .hint {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}
.form-actions {
  margin-top: 0.5rem;
}

.tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.tip-mark {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--streamer-primary) / 0.55);
  color: #e8cf74;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  line-height: 1;
}
.tip-box {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  z-index: 40;
  width: min(19rem, 72vw);
  padding: 0.65rem 0.75rem;
  background: #161221;
  border: 1px solid hsl(var(--streamer-primary) / 0.45);
  color: #efe6d0;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  font-weight: 400;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.tip:hover .tip-box,
.tip:focus .tip-box,
.tip:focus-within .tip-box {
  display: block;
}

.panel.flush {
  padding: 0;
  overflow: hidden;
}
.panel.flush .panel-body {
  padding: 1.25rem 1.4rem;
}
.scene {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.scene img,
.hero-art img,
.map-tease img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 168px;
  object-fit: cover;
  object-position: center 55%;
  transform-origin: center center;
  animation: ken 28s ease-in-out infinite alternate;
}

.role-pick {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
@media (min-width: 720px) {
  .role-pick:not(.stack) {
    grid-template-columns: 1fr 1fr;
  }
}
label.role-card:has(> input[type="checkbox"]),
.role-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin: 0;
  max-width: none;
  width: 100%;
  border: 1px solid hsl(var(--streamer-primary) / 0.28);
  background: #0c0a12;
  cursor: pointer;
}
.role-card {
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
label.role-card:hover {
  transform: translateY(-2px);
  border-color: #c9a227;
}
article.role-card {
  cursor: default;
}
.role-card:has(input:checked) {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.08);
}
.role-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex: 0 0 auto;
}
.role-card > span {
  min-width: 0;
  flex: 1;
}
.role-card strong {
  display: block;
  color: #f3e3a8;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.role-card .muted {
  margin: 0;
}

.encounter {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.encounter img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex: 0 0 auto;
}
.icon-sm {
  width: 40px;
  height: 40px;
  object-fit: cover;
  vertical-align: middle;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.brand-row .field {
  margin: 0;
  flex: 1 1 16rem;
  min-width: 0;
}
.swatch {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
}
.swatch .field-name {
  margin: 0;
}

.hero-art {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid hsl(var(--streamer-primary) / 0.28);
}
.hero-art img {
  max-height: 168px;
}
.row > .tip .tip-box {
  left: auto;
  right: 0;
}

@media (max-width: 640px) {
  .encounter {
    flex-direction: column;
  }
  .role-card img {
    width: 56px;
    height: 56px;
  }
  .scene img {
    max-height: 120px;
  }
  .brand-row .field {
    flex: 1 1 100%;
  }
}

.panel.flush.map-wrap {
  overflow: visible;
}
.map-desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16.5rem, 22rem) minmax(0, 1fr);
  align-items: start;
}
.map-side-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.map-side {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
  padding: 0.85rem 1rem 1.1rem;
  border-right: 1px solid hsl(var(--streamer-primary) / 0.28);
  background: rgba(7, 6, 11, 0.72);
}
.map-side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.map-side-head .eyebrow {
  margin: 0;
}
.map-side-hide,
.map-side-show {
  cursor: pointer;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: #f3e3a8;
}
.map-side-hide {
  border: 0;
  background: transparent;
  padding: 0;
}
.map-main {
  position: relative;
  min-width: 0;
}
.map-side-show {
  display: none;
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0.65rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.7rem 0.4rem;
  background: rgba(7, 6, 11, 0.9);
  border: 1px solid #c9a227;
}
.map-desk:has(.map-side-check:not(:checked)) {
  grid-template-columns: minmax(0, 1fr);
}
.map-desk:has(.map-side-check:not(:checked)) .map-side {
  display: none;
}
.map-desk:has(.map-side-check:not(:checked)) .map-side-show {
  display: inline-flex;
}
.world-atlas {
  position: relative;
}
.map-stage {
  position: relative;
}
.map-art {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  max-width: none;
  width: auto;
}
.map-pin .pin-gem {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow:
    0 0 0 3px rgba(7, 6, 11, 0.72),
    0 0 10px rgba(201, 162, 39, 0.7);
}
.map-pin.mission .pin-gem {
  background: #e8cf74;
}
.map-pin.town .pin-gem {
  background: #efe6d0;
  box-shadow: 0 0 0 3px rgba(7, 6, 11, 0.72);
}
.map-pin.locked .pin-gem {
  background: #5a5568;
  box-shadow: 0 0 0 3px rgba(7, 6, 11, 0.6);
}
.map-pin.daily .pin-gem {
  animation: pinpulse 1.5s ease-in-out infinite;
}
.map-pin.cooling:not(.locked) .pin-gem {
  animation: none;
  background: #a84848;
  box-shadow:
    0 0 0 3px rgba(7, 6, 11, 0.72),
    0 0 10px rgba(224, 106, 106, 0.75);
}
.pin-cool {
  position: absolute;
  left: 50%;
  top: 0.15rem;
  transform: translate(-50%, -120%);
  z-index: 3;
  pointer-events: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a0a0a;
  background: #e7b3b3;
  padding: 0.05rem 0.32rem;
  white-space: nowrap;
}
.seal {
  margin: 0.7rem 0;
  color: #e7b3b3;
  font-size: 0.9rem;
}
.seal strong {
  color: #f3e3a8;
  font-variant-numeric: tabular-nums;
}
@keyframes pinpulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(7, 6, 11, 0.72),
      0 0 10px rgba(232, 207, 116, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(7, 6, 11, 0.4),
      0 0 18px rgba(232, 207, 116, 1);
  }
}
.pin-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3e3a8;
  background: rgba(7, 6, 11, 0.78);
  padding: 0.12rem 0.4rem;
  white-space: nowrap;
  pointer-events: none;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  padding: 0.65rem 0 0.85rem;
  margin: 0;
}
.map-legend .leg {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: -1px;
}
.map-legend .leg.mission {
  background: #e8cf74;
}
.map-legend .leg.dungeon {
  background: #c9a227;
}
.map-legend .leg.daily {
  background: #e8cf74;
  box-shadow: 0 0 8px #e8cf74;
}
.atlas-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.map-sheet {
  display: none;
  padding: 0 0 0.25rem;
  border-top: 0;
}
.map-sheet h2 {
  font-size: 1.45rem;
}
.atlas-radio:checked + .map-sheet {
  display: block;
}
.you-name {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}
.you-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0 0 0.35rem;
}
.you-meta .gold {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.places-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.map-pop {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: min(24rem, calc(100% - 1.5rem));
  max-height: min(32rem, calc(100% - 1.5rem));
  overflow: auto;
  padding: 1rem 2.4rem 1.15rem 1.1rem;
  background: rgba(12, 10, 18, 0.94);
  border: 1px solid #c9a227;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.places-pop {
  display: none;
}
.places-check:checked ~ .places-pop {
  display: block;
}
.map-main:has(.atlas-radio:checked) .places-pop {
  display: none;
}
.quest-pop {
  display: none;
}
.map-main:not(.hold-quest) .quest-pop:has(.atlas-radio:checked) {
  display: block;
}
.map-pop-x {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: #f3e3a8;
}
.place-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.9rem;
}
.place-list a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid hsl(var(--streamer-primary) / 0.35);
  color: #f3e3a8;
  background: rgba(7, 6, 11, 0.45);
}
.place-list a span {
  color: var(--muted);
  font-size: 0.85rem;
}
.place-list a:hover {
  border-color: #c9a227;
}
.map-legend-float {
  position: absolute;
  left: 0.55rem;
  bottom: 0.5rem;
  z-index: 4;
  margin: 0;
  padding: 0.3rem 0.45rem;
  background: rgba(7, 6, 11, 0.72);
  pointer-events: none;
}
.fight {
  margin: 0.9rem 0 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--streamer-primary) / 0.28);
}
.panel > .fight:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.fight-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.35rem 0 0.55rem;
}
.fight-name {
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fight-line {
  min-height: 2.7em;
  margin: 0.15rem 0 0.55rem;
}
.fight-line.is-hit {
  animation: rise 0.35s ease;
}
.fight-live .fight-result {
  display: none;
}
.fight-live.fight-done .fight-result {
  display: block;
}
.fight-result p {
  margin: 0.25rem 0 0;
}
.bar.foe > span {
  background: linear-gradient(90deg, #6b2a4a, #e07a8a);
}
.bar.foe.low > span {
  background: linear-gradient(90deg, #7a2424, #e06a6a);
}
.live-card {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--streamer-primary) / 0.28);
}
.live-card h2 {
  font-size: 1.25rem;
}
.live-card .btn,
.fight .btn {
  margin-top: 0.65rem;
}
.live-votes {
  margin-top: 0.65rem;
}
.live-votes .btn {
  margin-top: 0;
}
.map-tease {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.map-tease img {
  height: 140px;
  max-height: 140px;
  object-position: center 40%;
}
.map-tease .panel-body {
  padding: 1rem 1.25rem;
}

@media (max-width: 800px) {
  .map-desk {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-side {
    position: absolute;
    z-index: 7;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(20rem, 88vw);
    max-height: none;
    border-right: 1px solid #c9a227;
    border-bottom: 0;
  }
  .map-main {
    min-height: 16rem;
  }
  .map-desk:has(.map-side-check:checked) .map-side-show {
    display: none;
  }
  .map-desk:has(.map-side-check:not(:checked)) .map-side {
    display: none;
  }
  .map-pop {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.75rem;
    width: auto;
    max-height: 70vh;
    transform: none;
    z-index: 30;
  }
}
@media (max-width: 720px) {
  .pin-label {
    display: none;
  }
  .map-pin {
    transform: translate(-50%, -50%);
  }
}

main.wrap {
  position: relative;
  z-index: 2;
}
body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto;
  height: 140%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image:
    radial-gradient(circle, rgba(246, 231, 176, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(186, 150, 255, 0.65) 0 1px, transparent 1.8px);
  background-size:
    240px 190px,
    300px 230px;
  animation: drift 40s linear infinite;
}
body.overlay::before {
  content: none;
}

.scene::after,
.hero-art::after,
.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle, rgba(246, 231, 176, 0.95) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(196, 160, 255, 0.7) 0 1px, transparent 1.8px);
  background-size:
    150px 110px,
    200px 150px;
  animation: motes 18s linear infinite;
}
.scene-sleep::before,
.scene-flicker::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.scene-sleep::before {
  background: radial-gradient(
    ellipse at 50% 68%,
    rgba(255, 186, 80, 0.32),
    transparent 28%
  );
  animation: lantern 3.6s ease-in-out infinite;
}
.scene-flicker::before {
  background: rgba(246, 231, 176, 0.85);
  mix-blend-mode: screen;
  opacity: 0;
  animation: flicker 9s linear infinite;
}

.who-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.2rem 0 0.8rem;
}
.who-line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex: 0 0 auto;
}
.gold-figure {
  margin: 0;
  font-size: 2rem;
  font-family: Georgia, serif;
  animation: goldglow 3.8s ease-in-out infinite;
}
.portrait-bob {
  animation: bob 2.8s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.portrait-boss {
  animation: boss 3.6s ease-in-out infinite;
  transform-origin: center;
}
.portrait-idle {
  animation: idle 4.8s ease-in-out infinite;
}
.pack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
ul:has(> .pack-row) {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0;
}
.who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.item-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}
.card-head h3 {
  margin: 0;
}
ul .pack-row {
  margin: 0.35rem 0;
}

main.wrap > * {
  animation: rise 0.5s ease both;
}
main.wrap > *:nth-child(2) {
  animation-delay: 0.06s;
}
main.wrap > *:nth-child(3) {
  animation-delay: 0.12s;
}
main.wrap > *:nth-child(4) {
  animation-delay: 0.18s;
}
main.wrap > *:nth-child(5) {
  animation-delay: 0.24s;
}

@keyframes ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}
@keyframes motes {
  from {
    background-position:
      0 30px,
      20px 70px;
  }
  to {
    background-position:
      18px -110px,
      -16px -150px;
  }
}
@keyframes drift {
  to {
    transform: translateY(-180px);
  }
}
@keyframes sheen {
  0% {
    left: -40%;
  }
  55%,
  100% {
    left: 130%;
  }
}
@keyframes lowpulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35);
  }
}
@keyframes lantern {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes flicker {
  0%,
  72%,
  100% {
    opacity: 0;
  }
  80% {
    opacity: 0.16;
  }
  86% {
    opacity: 0.04;
  }
  93% {
    opacity: 0.22;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  50% {
    transform: translateY(-6px) scale(1.04, 0.96);
  }
}
@keyframes boss {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 10px rgba(170, 90, 255, 0.65));
  }
}
@keyframes idle {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}
@keyframes goldglow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene img,
  .hero-art img,
  .map-tease img,
  .bar > span::after,
  .bar.low > span,
  .portrait-bob,
  .portrait-boss,
  .portrait-idle,
  .gold-figure,
  .scene::after,
  .hero-art::after,
  .map-stage::after,
  .scene-flicker::before,
  .scene-sleep::before,
  body::before,
  main.wrap > *,
  .map-pin.daily .pin-gem,
  .fight-line.is-hit {
    animation: none !important;
  }
  .btn:hover,
  .card:hover,
  label.role-card:hover,
  .action-tile:hover {
    transform: none;
  }
}

#worlds {
  scroll-margin-top: 5rem;
}
.home-banner {
  margin: 0 0 1rem;
}
.home-banner img {
  max-height: 150px;
  object-position: center 45%;
}
.home-top {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 1.25rem;
}
@media (min-width: 860px) {
  .home-top {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.home-top h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.home-top .steps {
  margin-top: 0;
}
.steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.steps .mark {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--streamer-primary) / 0.45);
  color: #e8cf74;
  font-family: Georgia, serif;
  font-size: 0.8rem;
}
.steps li.done .mark {
  background: rgba(201, 162, 39, 0.18);
  color: #f3e3a8;
}
.steps strong {
  display: block;
  color: #f3e3a8;
  font-family: Georgia, serif;
}

.now-board.hot {
  border-color: #c9a227;
}
.now-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #c9a227;
  background: rgba(201, 162, 39, 0.1);
}
.now-alert strong {
  display: block;
  color: #f3e3a8;
  font-family: Georgia, serif;
}
.now-alert .btn {
  flex: 0 0 auto;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}
@media (min-width: 720px) {
  .action-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.action-tile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid hsl(var(--streamer-primary) / 0.28);
  background: #0c0a12;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.action-tile img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}
.action-tile span {
  min-width: 0;
}
.action-tile strong {
  display: block;
  color: #f3e3a8;
  font-family: Georgia, serif;
}
.action-tile .tiny {
  display: block;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-tile.hot {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.1);
}
.action-tile:hover {
  transform: translateY(-2px);
  border-color: #c9a227;
}

.pack-scroll {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0;
  max-height: 16rem;
  overflow: auto;
}
details.fold {
  margin-top: 0.85rem;
}
details.fold summary {
  cursor: pointer;
}

.watch-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
.watch-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
}
.watch-desk {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}
@media (min-width: 860px) {
  .watch-desk {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desk-tabs .tab-bar {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.desk-tabs .tab-bar label {
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid hsl(var(--streamer-primary) / 0.25);
  padding: 0.35rem 0.7rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 227, 168, 0.75);
}
.desk-tabs > .tab-panel {
  display: none;
}
.desk-tabs > #tab-feed:checked ~ .tab-bar label[for="tab-feed"],
.desk-tabs > #tab-story:checked ~ .tab-bar label[for="tab-story"],
.desk-tabs > #tab-souls:checked ~ .tab-bar label[for="tab-souls"],
.desk-tabs > #tab-parties:checked ~ .tab-bar label[for="tab-parties"] {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.15);
  color: #f3e3a8;
}
.desk-tabs > #tab-feed:checked ~ #panel-feed,
.desk-tabs > #tab-story:checked ~ #panel-story,
.desk-tabs > #tab-souls:checked ~ #panel-souls,
.desk-tabs > #tab-parties:checked ~ #panel-parties {
  display: block;
}
.scroll-cap {
  max-height: 18rem;
  overflow: auto;
  margin: 0;
  padding-right: 0.3rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}
.stat-num {
  font-size: 1.7rem;
  font-family: Georgia, serif;
}

@media (max-width: 640px) {
  .now-alert {
    flex-direction: column;
    align-items: stretch;
  }
  .action-grid {
    grid-template-columns: 1fr;
  }
  .watch-head {
    align-items: flex-start;
  }
}
