﻿:root {
  color-scheme: light;
  --ink: #243044;
  --paper: #fffaf0;
  --sky: #89d8ff;
  --grass: #8bd96f;
  --leaf: #46ad62;
  --path: #ffd889;
  --water: #62c7f0;
  --pink: #ff7a90;
  --blue: #45b7ff;
  --green: #64cf6a;
  --gold: #f7b938;
  --plum: #6654c8;
  --panel: rgba(255, 250, 240, 0.98);
  --shadow: rgba(41, 58, 83, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050812;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: max(540px, 100dvh);
  background:
    linear-gradient(180deg, #98e4ff 0%, #b7edff 36%, #aee77a 36%, #92d869 100%);
}

#gpuGame,
#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#gpuGame {
  z-index: 0;
  pointer-events: none;
}

#game {
  z-index: 1;
  touch-action: none;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(137, 216, 255, 0.45), rgba(255, 250, 240, 0.18)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 38px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.screen--active {
  opacity: 1;
  pointer-events: auto;
}

.login-card {
  position: relative;
  width: min(660px, calc(100vw - 36px));
  padding: clamp(20px, 4vw, 36px);
  border: 3px solid rgba(36, 48, 68, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 244, 218, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(255, 122, 144, 0.22), transparent 17rem),
    radial-gradient(circle at 84% 22%, rgba(69, 183, 255, 0.24), transparent 16rem);
  box-shadow: 0 22px 70px var(--shadow);
  text-align: center;
}

.login-card::before,
.login-card::after {
  content: "";
  position: absolute;
  top: -22px;
  width: 92px;
  height: 44px;
  border-radius: 50% 50% 12px 12px;
  background: var(--paper);
  box-shadow:
    26px 0 0 var(--paper),
    52px 8px 0 rgba(255, 250, 240, 0.82);
}

.login-card::before {
  left: 34px;
}

.login-card::after {
  right: 82px;
  transform: scale(0.75);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #26324a;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(255, 216, 137, 0.9);
}

.subtitle {
  margin: 12px auto 0;
  max-width: 36rem;
  color: rgba(36, 48, 68, 0.78);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.45;
}

.profile-form {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 20px;
}

.save-panel {
  width: min(100%, 590px);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(122, 215, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(5, 8, 15, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.save-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--hud-text, #fffaf0);
}

.save-panel-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.save-panel-head span {
  color: rgba(232, 244, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
}

.save-slot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.save-slot-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 92px;
  gap: 2px 9px;
  padding: 10px;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  color: var(--hud-text, #fffaf0);
  text-align: left;
  background:
    radial-gradient(circle at 18% 12%, rgba(247, 215, 103, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(20, 33, 55, 0.92), rgba(6, 10, 19, 0.92));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.save-slot-card.is-selected {
  border-color: rgba(247, 215, 103, 0.72);
  box-shadow:
    0 0 22px rgba(247, 215, 103, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.save-slot-card.has-save {
  background:
    radial-gradient(circle at 16% 15%, rgba(122, 215, 255, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(23, 45, 70, 0.95), rgba(8, 13, 24, 0.94));
}

.save-slot-index,
.save-slot-card em,
.save-slot-card small {
  color: rgba(232, 244, 255, 0.72);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
}

.save-slot-index {
  grid-column: 1 / -1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.save-slot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 36% 28%, #fff, transparent 18%),
    linear-gradient(145deg, #ff2f9f, #7b3cff);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.26), 0 0 16px rgba(122, 215, 255, 0.24);
}

.save-slot-avatar--sprout { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #21e85c, #138a42); }
.save-slot-avatar--bubble { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #00c8ff, #00d6b0); }
.save-slot-avatar--moon { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #ffd000, #7b3cff); }
.save-slot-avatar--comet { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #ff6a00, #ff2f9f); }
.save-slot-avatar--tinker { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #b6ff00, #45b7ff); }
.save-slot-avatar--skate { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #00d6b0, #7b3cff); }
.save-slot-avatar--glitch { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #e040ff, #101827); }
.save-slot-avatar--plush { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #ff3d7f, #ffd000); }
.save-slot-avatar--nova { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #fffaf0, #7b3cff); }
.save-slot-avatar--dragon { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #64cf6a, #ff8f3d); }
.save-slot-avatar--spiderling { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #e040ff, #7b3cff); }
.save-slot-avatar--otter { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #00c8ff, #8d552e); }
.save-slot-avatar--owl { background: radial-gradient(circle at 36% 28%, #fff, transparent 18%), linear-gradient(145deg, #ffd000, #6654c8); }

.save-slot-card strong,
.save-slot-card em,
.save-slot-card small {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.menu-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  display: grid;
  gap: 7px;
  width: min(360px, 100%);
  text-align: left;
}

.field span {
  padding-left: 2px;
  color: rgba(36, 48, 68, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(36, 48, 68, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  outline: none;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(69, 183, 255, 0.2);
}

.chooser,
.swatches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-choice {
  min-height: 40px;
  min-width: 72px;
  padding: 0 10px;
  border: 2px solid rgba(36, 48, 68, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.avatar-choice.is-selected {
  border-color: var(--plum);
  background: #efeaff;
}

.swatch {
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 2px rgba(36, 48, 68, 0.14);
}

.swatch.is-selected {
  box-shadow: 0 0 0 4px rgba(102, 84, 200, 0.4);
}

.primary-button {
  min-width: 190px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: #2a2107;
  background: linear-gradient(180deg, #ffe571, var(--gold));
  box-shadow: 0 5px 0 #b67618, 0 18px 34px rgba(79, 65, 30, 0.24);
  font-weight: 950;
  text-transform: uppercase;
}

.secondary-button {
  min-width: 150px;
  min-height: 50px;
  border: 2px solid rgba(36, 48, 68, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 0 rgba(36, 48, 68, 0.14);
  font-weight: 950;
  text-transform: uppercase;
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.avatar-choice:focus-visible,
.swatch:focus-visible,
.ability-button:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(102, 84, 200, 0.35);
  outline-offset: 2px;
}

.server-hint {
  min-height: 20px;
  margin: 0;
  color: #a44b4b;
  font-size: 0.84rem;
  font-weight: 800;
}

.server-hint.is-ok {
  color: #33744c;
}

.hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.hud--active {
  opacity: 1;
}

.topbar,
.profile-panel,
.quest-panel,
.roster-panel,
.battle-panel,
.ability-bar,
.chat-panel,
.zoom-panel,
.toast,
.sale-reminder {
  pointer-events: auto;
}

.topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 9px 12px;
  border: 2px solid rgba(36, 48, 68, 0.16);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px var(--shadow);
  backdrop-filter: blur(8px) saturate(1.15);
}

.brand,
.profile-card,
.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand strong {
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-gem {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(255, 250, 240, 0.75);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e7fff0;
  color: #2f7049;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.build-pill {
  background: #f4f0ff;
  color: var(--plum);
}

.profile-panel,
.quest-panel,
.roster-panel,
.battle-panel {
  position: absolute;
  border: 2px solid rgba(36, 48, 68, 0.16);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px var(--shadow);
  backdrop-filter: blur(8px) saturate(1.15);
}

.profile-panel {
  left: 14px;
  bottom: 92px;
  width: min(310px, calc(100vw - 28px));
  padding: 12px;
}

.profile-card canvas {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(36, 48, 68, 0.1);
  border-radius: 8px;
  background: #eafaff;
}

.profile-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-card strong {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.profile-card span {
  color: rgba(36, 48, 68, 0.66);
  font-size: 0.84rem;
  font-weight: 850;
}

.xp-track {
  position: relative;
  height: 25px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(36, 48, 68, 0.1);
}

.xp-track span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 9px;
  transform: translateY(-50%);
  color: #253048;
  font-size: 0.72rem;
  font-weight: 950;
}

.xp-track b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--blue), var(--plum));
  transition: width 120ms ease;
}

.hp-track {
  height: 20px;
  margin-top: 7px;
}

.hp-track b {
  background: linear-gradient(90deg, #ff7a90, #f7b938);
}

.mp-track {
  height: 20px;
  margin-top: 7px;
}

.mp-track b {
  background: linear-gradient(90deg, #45b7ff, #6654c8);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.stat-grid span {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-radius: 7px;
  background: rgba(36, 48, 68, 0.08);
  color: rgba(36, 48, 68, 0.78);
  font-size: 0.68rem;
  font-weight: 950;
}

.stat-row {
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(36, 48, 68, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
}

.equipped-gear-tray {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.equipped-gear-badge {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  min-height: 42px;
  border: 1px solid rgba(122, 215, 255, 0.28);
  border-radius: 8px;
  color: #d9edff;
  font-size: 0.74rem;
  font-weight: 950;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 45%),
    rgba(8, 13, 24, 0.86);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.equipped-gear-badge:not(.is-empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.2);
}

.equipped-gear-badge.is-empty {
  opacity: 0.68;
}

.quest-panel {
  left: 50%;
  bottom: 108px;
  width: min(460px, calc(100vw - 680px));
  min-width: 260px;
  transform: translateX(-50%);
  padding: 12px 14px;
  text-align: center;
}

.battle-panel {
  left: 14px;
  top: 74px;
  width: min(310px, calc(100vw - 28px));
  padding: 12px;
}

.battle-panel strong,
.battle-panel span {
  display: block;
}

.battle-panel span {
  margin-top: 4px;
  color: rgba(36, 48, 68, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.32;
}

.target-track {
  position: relative;
  height: 12px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 48, 68, 0.12);
}

.target-track b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a90, #f7b938);
  transition: width 120ms ease;
}

.quest-panel strong {
  display: block;
  margin-bottom: 4px;
}

.quest-panel span {
  display: block;
  color: rgba(36, 48, 68, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: normal;
  white-space: nowrap;
}

.quest-panel .hint-button {
  min-width: 96px;
  margin-top: 9px;
  border-color: rgba(102, 84, 200, 0.2);
  background: #f7f3ff;
  color: var(--plum);
}

.quest-panel .hint-button.is-solution-ready {
  border-color: rgba(47, 112, 73, 0.24);
  background: #e7fff0;
  color: #2f7049;
}

.panel-label {
  margin: 0 0 5px;
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roster-panel {
  right: 14px;
  top: 74px;
  width: 220px;
  max-height: calc(100vh - 170px);
  padding: 12px;
  overflow: hidden;
}

#roster {
  display: grid;
  gap: 7px;
}

.roster-friend {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  font-weight: 900;
}

.roster-dot {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(36, 48, 68, 0.12);
}

.chat-panel {
  position: absolute;
  right: 14px;
  bottom: 92px;
  display: grid;
  gap: 8px;
  width: min(330px, calc(100vw - 28px));
  padding: 12px;
  border: 2px solid rgba(36, 48, 68, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 12px 34px var(--shadow);
  backdrop-filter: blur(8px) saturate(1.15);
}

.chat-panel.is-collapsed .chat-messages,
.chat-panel.is-collapsed .chat-form {
  display: none;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-button {
  min-height: 30px;
  border: 2px solid rgba(36, 48, 68, 0.12);
  border-radius: 7px;
  padding: 0 9px;
  color: var(--ink);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 950;
}

.chat-messages {
  display: grid;
  gap: 6px;
  max-height: 150px;
  overflow: auto;
  padding-right: 4px;
}

.chat-line {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-line strong {
  color: var(--plum);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.chat-line.is-mine {
  background: #e9fbff;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.chat-form input {
  min-width: 0;
  min-height: 36px;
  border: 2px solid rgba(36, 48, 68, 0.14);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.chat-form button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: var(--plum);
  font-weight: 950;
}

.zoom-panel {
  position: absolute;
  left: 50%;
  top: 74px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(360px, calc(100vw - 470px));
  min-width: 230px;
  padding: 9px;
  border: 2px solid rgba(36, 48, 68, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 12px 34px var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(8px) saturate(1.15);
}

.zoom-panel input {
  min-width: 0;
  flex: 1;
}

.ability-bar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1240px, calc(100vw - 28px));
  transform: translateX(-50%);
}

.ability-button {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 86px;
  min-height: 72px;
  border: 2px solid rgba(36, 48, 68, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 10px 22px rgba(41, 58, 83, 0.24);
  font-weight: 950;
  touch-action: manipulation;
}

.ability-button span {
  font-size: 1.7rem;
  line-height: 1;
}

.ability-button b {
  font-size: 0.76rem;
}

.ability-button:active {
  transform: translateY(2px) scale(0.98);
}

.ability-button--super {
  color: #fffaf0;
  background: linear-gradient(180deg, #6654c8, #243044);
}

.toast {
  position: absolute;
  top: 132px;
  left: 50%;
  width: min(480px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 2px solid rgba(36, 48, 68, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 12px 34px var(--shadow);
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast--active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.world-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(36, 48, 68, 0.38);
  pointer-events: auto;
}

.world-map-card {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 2px solid rgba(36, 48, 68, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 24px 90px rgba(36, 48, 68, 0.38);
}

#worldMapCanvas {
  width: 100%;
  max-height: min(68vh, 720px);
  border: 2px solid rgba(36, 48, 68, 0.14);
  border-radius: 8px;
  background: #dff7ff;
}

.world-map-details {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 850;
}

.world-map-details strong,
.world-map-details span {
  display: block;
}

.world-map-details span {
  color: rgba(36, 48, 68, 0.72);
}

.gear-dialog,
.shop-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 90px rgba(36, 48, 68, 0.38);
}

.gear-dialog::backdrop,
.shop-dialog::backdrop {
  background: rgba(36, 48, 68, 0.34);
}

.gear-dialog form,
.shop-dialog form {
  padding: 16px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(36, 48, 68, 0.08);
}

.dialog-head strong {
  font-size: 1.2rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(36, 48, 68, 0.08);
  font-size: 1.5rem;
  line-height: 1;
}

.gear-list {
  display: grid;
  gap: 9px;
  padding-top: 13px;
}

.gear-loadout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.slot-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 68px;
  padding: 9px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid rgba(36, 48, 68, 0.08);
}

.slot-card span,
.slot-card em {
  color: rgba(36, 48, 68, 0.64);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.slot-card strong {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.gear-unequip {
  justify-self: start;
  min-height: 28px;
  border: 1px solid rgba(122, 215, 255, 0.24);
  border-radius: 7px;
  padding: 0 9px;
  color: var(--hud-text, #f4f7ff);
  background: rgba(7, 12, 22, 0.58);
  font-size: 0.68rem;
  font-weight: 950;
}

.combo-panel {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 2px solid rgba(102, 84, 200, 0.18);
  border-radius: 8px;
  background: #f4f0ff;
}

.combo-panel span {
  color: rgba(36, 48, 68, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.gear-section-title {
  margin-top: 4px;
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gear-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 0 4px;
}

.gear-tab {
  min-height: 32px;
  border: 1px solid rgba(122, 215, 255, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--hud-text, #f4f7ff);
  background: rgba(8, 13, 24, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
}

.gear-tab.is-active {
  border-color: rgba(247, 215, 103, 0.62);
  color: #07121f;
  background: linear-gradient(180deg, #fff7b6, #f7d767);
}

.gear-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px;
  border: 2px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.gear-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  font-weight: 950;
}

.gear-icon.gear-icon--asset {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.28), 0 8px 18px rgba(6, 12, 25, 0.28);
  color: transparent;
  overflow: hidden;
  text-indent: -9999px;
}

.gear-item strong,
.gear-item span {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

.gear-item span {
  color: rgba(36, 48, 68, 0.64);
  font-size: 0.78rem;
  font-weight: 800;
}

.gear-item button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  color: #fff;
  background: var(--plum);
  font-size: 0.78rem;
  font-weight: 950;
}

.gear-item.is-locked {
  opacity: 0.58;
}

.gear-item.is-equipped {
  border-color: rgba(100, 207, 106, 0.45);
  background: #edfff1;
}

.trial-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-top: 9px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff2bd;
  color: #74551a;
  font-size: 0.76rem;
  font-weight: 950;
}

.ability-button--shop {
  background: #fff2bd;
}

.shop-dialog {
  width: min(720px, calc(100vw - 32px));
}

.settings-dialog,
.admin-dialog {
  width: min(640px, calc(100vw - 32px));
}

.hint-dialog {
  width: min(560px, calc(100vw - 32px));
}

.shop-note {
  margin: 12px 0;
  color: rgba(36, 48, 68, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.parent-gate {
  width: min(320px, 100%);
  margin-bottom: 12px;
}

.shop-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.settings-list {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-top: 8px;
  padding-right: 4px;
}

.setting-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.setting-action-row .secondary-button {
  flex: 1 1 190px;
  min-width: 0;
}

.danger-button {
  border-color: rgba(255, 122, 144, 0.34);
  color: #fffaf0;
  background:
    linear-gradient(180deg, rgba(114, 39, 60, 0.88), rgba(55, 16, 31, 0.94));
}

.hint-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 590px);
  overflow: auto;
  padding-right: 4px;
}

.hint-summary,
.hint-card,
.solution-purchase {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 2px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background: #fff;
}

.hint-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #eafaff;
}

.hint-summary strong,
.hint-summary span {
  min-width: 0;
}

.hint-summary span,
.hint-card p,
.solution-purchase p,
.hint-notice {
  margin: 0;
  color: rgba(36, 48, 68, 0.7);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.38;
}

.hint-notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff2bd;
  color: #5a4a16;
}

.solution-card {
  border-color: rgba(47, 112, 73, 0.22);
  background: #edfff1;
}

.solution-purchase {
  border-color: rgba(102, 84, 200, 0.18);
  background: #f7f3ff;
}

.solution-provider-row button {
  min-width: 82px;
}

.primary-wide {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--plum);
  font-size: 0.88rem;
  font-weight: 950;
}

.setting-row,
.admin-status,
.admin-command {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 2px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background: #fff;
}

.setting-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.setting-row span,
.admin-status,
.admin-command {
  min-width: 0;
}

.setting-row strong,
.setting-row em,
.admin-status strong,
.admin-status span,
.admin-command strong,
.admin-command span {
  display: block;
}

.setting-row em,
.admin-status span,
.admin-command span,
.admin-result {
  color: rgba(36, 48, 68, 0.68);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.setting-row input {
  width: 24px;
  height: 24px;
  accent-color: var(--plum);
}

.setting-row--wide {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
}

.setting-select,
.setting-slider-wrap {
  width: 100%;
}

.setting-select {
  min-height: 42px;
  border: 1px solid rgba(122, 215, 255, 0.26);
  border-radius: 8px;
  color: var(--hud-text, #f4f7ff);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(7, 12, 22, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 850;
  padding: 0 12px;
}

.setting-select option,
.setting-select optgroup {
  color: #111827;
  background: #f8fbff;
}

.setting-slider-wrap {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 54px;
  align-items: center;
  gap: 10px;
}

.setting-row input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--hud-gold, #f7d767);
}

.setting-value {
  color: var(--hud-gold, #f7d767);
  font-size: 0.82rem;
  text-align: right;
}

.admin-open-button {
  justify-self: start;
}

.admin-command {
  width: 100%;
  border-color: rgba(102, 84, 200, 0.18);
  color: var(--ink);
  text-align: left;
}

.admin-settings-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.26);
}

.admin-setting-row {
  min-width: 0;
}

.admin-setting-row strong,
.admin-setting-row em,
.quest-panel strong,
.quest-panel span,
.battle-panel strong,
.battle-panel span,
.world-map-details strong,
.world-map-details span {
  overflow-wrap: normal;
  white-space: nowrap;
}

.admin-command:hover {
  border-color: rgba(102, 84, 200, 0.42);
  background: #f7f3ff;
}

.admin-result {
  padding: 10px 12px;
  border-radius: 8px;
  background: #e7fff0;
  color: #2f7049;
}

.admin-dialog {
  width: min(1240px, calc(100vw - 28px));
}

.admin-dialog form {
  color: var(--hud-text, #f8fbff);
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 215, 255, 0.12), transparent 34%),
    radial-gradient(circle at 86% 6%, rgba(247, 215, 103, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(12, 19, 34, 0.98), rgba(4, 7, 14, 0.98));
}

.admin-dialog .settings-list {
  max-height: min(72vh, 780px);
  padding: 10px 6px 2px 0;
}

.admin-dialog .shop-note {
  color: var(--hud-muted, rgba(231, 238, 255, 0.72));
}

.admin-status--studio {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-color: rgba(247, 215, 103, 0.22);
  background:
    linear-gradient(135deg, rgba(247, 215, 103, 0.1), transparent 38%),
    rgba(7, 12, 22, 0.86);
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  overflow-x: auto;
  padding: 2px 0 6px;
}

.admin-tabs button,
.admin-section-list button,
.admin-record-list button,
.admin-hierarchy-col button {
  min-width: 0;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  color: var(--hud-text, #f8fbff);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(8, 13, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.admin-tabs button {
  min-height: 34px;
  padding: 0 13px;
  white-space: nowrap;
}

.admin-tabs button.is-active,
.admin-section-list button.is-active,
.admin-record-list button.is-active,
.admin-hierarchy-col button.is-active {
  border-color: rgba(247, 215, 103, 0.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 215, 103, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(45, 38, 80, 0.92), rgba(8, 13, 24, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 22px rgba(247, 215, 103, 0.08);
}

.admin-overview-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(122, 215, 255, 0.1), transparent 36%),
    rgba(5, 9, 17, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.admin-overview-panel strong {
  display: block;
  color: var(--hud-text, #f8fbff);
  font-size: 0.98rem;
}

.admin-overview-panel span {
  color: var(--hud-muted, rgba(231, 238, 255, 0.76));
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-overview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-overview-chips button {
  min-height: 34px;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--hud-text, #f8fbff);
  background: rgba(8, 13, 24, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.admin-overview-chips button span {
  margin-left: 5px;
  color: var(--hud-gold, #f7d767);
}

.admin-overview-chips button.is-active {
  border-color: rgba(247, 215, 103, 0.5);
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 215, 103, 0.18), transparent 62%),
    rgba(24, 20, 48, 0.9);
}

.admin-studio-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.68fr) minmax(290px, 0.9fr) minmax(560px, 1.9fr);
  gap: 12px;
  min-height: min(50vh, 560px);
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-section-list,
.admin-record-list,
.admin-editor,
.admin-hierarchy,
.admin-quick-panel {
  border: 1px solid rgba(122, 215, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 32%),
    rgba(5, 9, 17, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 34px rgba(0, 0, 0, 0.2);
}

.admin-section-list,
.admin-record-list {
  display: grid;
  align-content: start;
  gap: 7px;
  max-height: 560px;
  overflow: auto;
  padding: 8px;
}

.admin-section-list button,
.admin-record-list button,
.admin-hierarchy-col button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 10px 12px;
  text-align: left;
}

.admin-section-list strong,
.admin-record-list strong,
.admin-hierarchy-col strong,
.admin-editor strong,
.admin-hierarchy-selected strong {
  min-width: 0;
  overflow: visible;
  overflow-wrap: normal;
  white-space: nowrap;
}

.admin-section-list span,
.admin-record-list span,
.admin-editor span,
.admin-editor-note,
.admin-hierarchy p,
.admin-hierarchy-col span,
.admin-hierarchy-selected span {
  color: var(--hud-muted, rgba(231, 238, 255, 0.72));
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-record-head,
.admin-editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-record-head {
  position: sticky;
  top: -8px;
  z-index: 1;
  margin: -8px -8px 0;
  padding: 10px 8px;
  background: rgba(5, 9, 17, 0.94);
  border-bottom: 1px solid rgba(122, 215, 255, 0.12);
}

.admin-record-search {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--hud-text, #f8fbff);
  background: rgba(5, 8, 15, 0.72);
  font-weight: 850;
}

.admin-record-search::placeholder {
  color: rgba(231, 238, 255, 0.48);
}

.admin-asset-tools {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(122, 215, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(122, 215, 255, 0.08), transparent 38%),
    rgba(5, 8, 15, 0.66);
}

.admin-asset-preview {
  display: grid;
  place-items: center;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid rgba(247, 215, 103, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
}

.admin-asset-preview img {
  max-width: 100%;
  max-height: 118px;
  object-fit: contain;
}

.admin-asset-preview audio {
  width: 100%;
}

.admin-asset-meta,
.admin-upload-panel {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-asset-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-asset-actions button {
  flex: 1 1 110px;
}

.admin-upload-panel {
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.2fr) auto;
  align-items: center;
}

.admin-upload-panel input[type="text"],
.admin-upload-panel input[type="file"] {
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--hud-text, #f8fbff);
  background: rgba(5, 8, 15, 0.72);
  font-weight: 850;
}

.admin-editor {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto auto;
  gap: 10px;
  padding: 10px;
  min-width: 0;
}

.admin-editor--asset {
  grid-template-rows: auto auto minmax(360px, 1fr) auto auto;
}

.admin-json-editor {
  width: 100%;
  min-height: 360px;
  resize: vertical;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  color: #f8fbff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(2, 5, 11, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  line-height: 1.42;
}

.admin-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-editor-actions button {
  flex: 1 1 150px;
}

.admin-editor-note {
  margin: 0;
}

.admin-hierarchy {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.admin-hierarchy p {
  margin: 0;
}

.admin-hierarchy-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-hierarchy-col {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 150px;
  padding: 8px;
  border: 1px solid rgba(122, 215, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 9, 17, 0.46);
}

.admin-hierarchy-col > strong {
  color: var(--hud-gold, #f7d767);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-hierarchy-selected {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(247, 215, 103, 0.18);
  border-radius: 8px;
  background: rgba(247, 215, 103, 0.07);
}

.admin-completeness {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(100, 207, 106, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(100, 207, 106, 0.08), transparent 40%),
    rgba(5, 9, 17, 0.52);
}

.admin-completeness > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-completeness div span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(122, 215, 255, 0.16);
  border-radius: 999px;
  padding: 0 8px;
  color: #d8e5ff;
  background: rgba(5, 8, 15, 0.58);
  font-size: 0.7rem;
  font-weight: 950;
}

.admin-completeness div span.is-ready {
  border-color: rgba(100, 207, 106, 0.28);
  color: #d8ffe2;
}

.admin-completeness div span.is-missing {
  border-color: rgba(255, 122, 144, 0.32);
  color: #ffd8de;
}

.admin-empty {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(122, 215, 255, 0.14);
  border-radius: 8px;
  color: var(--hud-text, #f8fbff);
  background: rgba(5, 9, 17, 0.62);
}

.admin-empty--compact {
  padding: 10px;
}

.admin-quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.admin-quick-panel .gear-section-title {
  grid-column: 1 / -1;
}

.objective-meter {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(122, 215, 255, 0.18);
}

.objective-meter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.objective-meter-summary strong {
  color: #fff8c8;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.objective-meter-summary span {
  color: rgba(244, 247, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: right;
}

.objective-meter-summary.is-complete strong {
  color: #7dffb1;
  text-shadow: 0 0 14px rgba(95, 224, 164, 0.56);
}

.objective-meter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.objective-meter-chips span {
  min-height: 22px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 214, 105, 0.24);
  border-radius: 7px;
  color: #fff3b0;
  background: rgba(255, 214, 105, 0.11);
  font-size: 0.68rem;
  font-weight: 950;
  white-space: nowrap;
}

.objective-meter-chips span.is-done {
  border-color: rgba(95, 224, 164, 0.34);
  color: #baffe0;
  background: rgba(95, 224, 164, 0.12);
}

.admin-map-visualizer,
.admin-map-flow {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(122, 215, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(9, 14, 26, 0.94), rgba(18, 28, 47, 0.9)),
    radial-gradient(circle at top left, rgba(122, 215, 255, 0.16), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.22);
}

.admin-map-editor-head,
.admin-map-flow-head,
.admin-map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-map-editor-head div,
.admin-map-flow-head div {
  display: grid;
  gap: 3px;
}

.admin-map-editor-head strong,
.admin-map-flow-head strong,
.admin-map-inspector > strong {
  color: var(--hud-text, #f4f7ff);
  font-size: 1rem;
}

.admin-map-editor-head span,
.admin-map-flow-head span,
.admin-map-actions span,
.admin-map-inspector > span {
  color: var(--hud-muted, rgba(218, 229, 244, 0.7));
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-map-editor-head select,
.admin-map-inspector select {
  min-height: 38px;
  border: 1px solid rgba(122, 215, 255, 0.28);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--hud-text, #f4f7ff);
  background: rgba(5, 9, 17, 0.86);
  font-weight: 900;
}

.admin-map-toolbar,
.admin-terrain-palette,
.admin-object-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-map-toolbar button,
.admin-terrain-palette button,
.admin-object-palette button,
.admin-map-flow-col button {
  min-height: 34px;
  border: 1px solid rgba(122, 215, 255, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--hud-text, #f4f7ff);
  background: rgba(6, 11, 22, 0.72);
  font-weight: 950;
}

.admin-map-toolbar button.is-active,
.admin-terrain-palette button.is-active,
.admin-map-flow-col button.is-active {
  border-color: rgba(255, 214, 105, 0.64);
  box-shadow: 0 0 0 1px rgba(255, 214, 105, 0.28), 0 0 18px rgba(255, 214, 105, 0.18);
}

.admin-terrain-palette button,
.admin-object-palette button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-terrain-palette b,
.admin-object-palette b {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #081020;
  background: var(--terrain, var(--object, #f7d767));
  font-size: 0.72rem;
}

.admin-object-palette b {
  border-radius: 50%;
}

.admin-map-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: stretch;
}

.admin-map-canvas-wrap {
  min-width: 0;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #07101f;
}

.admin-map-canvas {
  display: block;
  width: 100%;
  height: min(52vh, 620px);
  cursor: crosshair;
}

.admin-map-inspector {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(122, 215, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 9, 17, 0.72);
}

.admin-map-stat-grid {
  display: grid;
  gap: 7px;
}

.admin-map-stat-grid span,
.admin-map-selected,
.admin-map-field {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--hud-muted, rgba(218, 229, 244, 0.7));
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 850;
}

.admin-map-stat-grid b,
.admin-map-selected strong,
.admin-map-field span {
  color: var(--hud-text, #f4f7ff);
}

.admin-map-flow-cols {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr) minmax(220px, 0.8fr);
  gap: 10px;
}

.admin-map-flow-col {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 180px;
  padding: 10px;
  border: 1px solid rgba(122, 215, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 17, 0.58);
}

.admin-map-flow-col > strong {
  color: var(--hud-gold, #f7d767);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.admin-map-flow-col button {
  display: grid;
  justify-items: start;
  text-align: left;
}

.admin-map-flow-col button span {
  color: var(--hud-text, #f4f7ff);
}

.admin-map-flow-col button em {
  color: var(--hud-muted, rgba(218, 229, 244, 0.7));
  font-size: 0.68rem;
  font-style: normal;
}

.admin-world-drop {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 12px;
  border: 1px dashed rgba(255, 214, 105, 0.42);
  border-radius: 8px;
  color: var(--hud-text, #f4f7ff);
  background: radial-gradient(circle at center, rgba(255, 214, 105, 0.12), rgba(5, 9, 17, 0.58));
}

.admin-world-drop span {
  color: var(--hud-muted, rgba(218, 229, 244, 0.7));
  font-size: 0.74rem;
}

.shop-item {
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 12px;
  border: 2px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background: #fff;
}

.shop-item strong {
  display: block;
  font-size: 1rem;
}

.shop-item p {
  margin: 0;
  color: rgba(36, 48, 68, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.shop-price {
  color: var(--plum);
  font-weight: 950;
}

.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-row button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 8px;
  color: #fff;
  background: var(--plum);
  font-size: 0.72rem;
  font-weight: 950;
}

.provider-row button:nth-child(2) {
  background: #1b74e4;
}

.provider-row button:nth-child(3) {
  background: #2f7049;
}

.provider-row button:nth-child(4) {
  background: #f7931a;
}

.provider-row button:nth-child(5) {
  background: #1f9a8a;
}

.shop-item.is-owned {
  background: #edfff1;
}

.shop-item.is-owned .provider-row button {
  background: #7a8798;
}

/* Premium MMORPG HUD layer */
:root {
  --hud-void: rgba(5, 8, 15, 0.82);
  --hud-glass: rgba(12, 18, 31, 0.78);
  --hud-glass-strong: rgba(16, 23, 38, 0.9);
  --hud-metal: rgba(169, 188, 214, 0.22);
  --hud-line: rgba(163, 221, 255, 0.38);
  --hud-line-hot: rgba(255, 214, 105, 0.58);
  --hud-text: #f4f7ff;
  --hud-muted: rgba(218, 229, 244, 0.7);
  --hud-gold: #f7d767;
  --hud-cyan: #7ad7ff;
  --hud-ruby: #ff5f73;
  --hud-emerald: #5fe0a4;
  --hud-violet: #b88cff;
}

.hud-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, transparent 0 34%, rgba(4, 6, 12, 0.16) 68%, rgba(2, 3, 8, 0.34) 100%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.28), transparent 26%, transparent 72%, rgba(6, 10, 18, 0.32));
  mix-blend-mode: multiply;
}

.topbar,
.profile-panel,
.quest-panel,
.roster-panel,
.battle-panel,
.chat-panel,
.zoom-panel,
.minimap-panel,
.world-map-card,
.gear-dialog form,
.shop-dialog form {
  border: 1px solid var(--hud-line);
  color: var(--hud-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, var(--hud-glass), rgba(8, 13, 24, 0.88));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px) saturate(1.35);
}

.topbar::after,
.profile-panel::after,
.quest-panel::after,
.battle-panel::after,
.minimap-panel::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hud-line-hot), transparent);
  pointer-events: none;
}

.brand strong,
.dialog-head strong,
.quest-panel strong,
.battle-panel strong {
  color: var(--hud-text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(122, 215, 255, 0.24);
}

.brand-gem {
  background: conic-gradient(from 45deg, var(--hud-cyan), var(--hud-violet), var(--hud-gold), var(--hud-cyan));
  box-shadow:
    0 0 0 2px rgba(247, 215, 103, 0.18),
    0 0 20px rgba(122, 215, 255, 0.44);
}

.pill {
  border: 1px solid rgba(122, 215, 255, 0.22);
  color: var(--hud-text);
  background: linear-gradient(180deg, rgba(54, 75, 106, 0.68), rgba(12, 18, 31, 0.78));
}

.build-pill {
  color: var(--hud-gold);
  background: linear-gradient(180deg, rgba(102, 84, 200, 0.34), rgba(12, 18, 31, 0.8));
}

.profile-panel {
  width: min(336px, calc(100vw - 28px));
  padding: 14px;
}

.profile-card canvas {
  border: 1px solid rgba(122, 215, 255, 0.34);
  background: radial-gradient(circle at 50% 38%, rgba(122, 215, 255, 0.28), rgba(5, 8, 15, 0.92));
  box-shadow: 0 0 24px rgba(122, 215, 255, 0.18);
}

.profile-card span,
.quest-panel span,
.battle-panel span,
.roster-friend,
.chat-line,
.stat-row,
.world-map-details span,
.shop-note {
  color: var(--hud-muted);
}

.xp-track {
  height: 28px;
  border: 1px solid rgba(169, 188, 214, 0.16);
  background: rgba(2, 5, 12, 0.64);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(122, 215, 255, 0.07);
}

.xp-track span {
  color: rgba(244, 247, 255, 0.86);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.xp-track b {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(90deg, var(--hud-cyan), var(--hud-violet));
  box-shadow: 0 0 18px rgba(122, 215, 255, 0.38);
}

.xp-track b::after,
.target-track b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 32%, rgba(255, 255, 255, 0.34) 48%, transparent 64% 100%);
  animation: hudSheen 2.6s ease-in-out infinite;
}

.hp-track b {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(90deg, #8a1024, var(--hud-ruby), #ffb06b);
  box-shadow: 0 0 20px rgba(255, 95, 115, 0.4);
}

.mp-track b {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(90deg, #1552ad, var(--hud-cyan), #8d7cff);
  box-shadow: 0 0 20px rgba(122, 215, 255, 0.4);
}

.stat-grid span {
  border: 1px solid rgba(122, 215, 255, 0.18);
  color: var(--hud-text);
  background: rgba(2, 5, 12, 0.48);
}

.panel-label {
  color: var(--hud-gold);
  text-shadow: 0 0 14px rgba(247, 215, 103, 0.24);
}

.quest-panel {
  width: min(520px, calc(100vw - 710px));
}

.quest-panel .hint-button,
.mini-button {
  border: 1px solid rgba(122, 215, 255, 0.28);
  color: var(--hud-text);
  background: linear-gradient(180deg, rgba(39, 53, 80, 0.92), rgba(10, 16, 29, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quest-panel .hint-button.is-solution-ready {
  border-color: rgba(95, 224, 164, 0.46);
  color: #dfffee;
  background: linear-gradient(180deg, rgba(35, 108, 80, 0.74), rgba(8, 19, 18, 0.94));
}

.roster-panel {
  top: 318px;
}

.roster-friend,
.chat-line {
  border: 1px solid rgba(122, 215, 255, 0.12);
  background: rgba(4, 8, 17, 0.52);
}

.chat-line.is-mine {
  background: rgba(33, 72, 103, 0.48);
}

.chat-line strong {
  color: var(--hud-cyan);
}

.chat-form input,
.field input {
  border: 1px solid rgba(122, 215, 255, 0.28);
  color: var(--hud-text);
  background: rgba(2, 5, 12, 0.62);
}

.chat-form button,
.primary-wide,
.primary-button {
  background: linear-gradient(180deg, rgba(145, 113, 255, 0.95), rgba(58, 44, 133, 0.98));
  box-shadow: 0 0 20px rgba(184, 140, 255, 0.26);
}

.zoom-panel {
  width: min(410px, calc(100vw - 690px));
}

.minimap-panel {
  position: absolute;
  top: 74px;
  right: 14px;
  width: 248px;
  padding: 12px;
  border-radius: 8px;
  pointer-events: auto;
}

.minimap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.minimap-head span {
  color: var(--hud-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: right;
}

#minimapCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(122, 215, 255, 0.3);
  border-radius: 50%;
  background: #08101d;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(122, 215, 255, 0.18);
}

.buff-tray {
  position: absolute;
  left: 14px;
  bottom: 338px;
  display: none !important;
  flex-wrap: wrap;
  gap: 7px;
  width: min(336px, calc(100vw - 28px));
  pointer-events: auto;
}

.buff-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(247, 215, 103, 0.26);
  border-radius: 8px;
  color: var(--hud-text);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(24, 35, 57, 0.96), rgba(5, 8, 15, 0.96));
  box-shadow: 0 0 18px rgba(122, 215, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 950;
}

.buff-super,
.buff-combo {
  border-color: rgba(184, 140, 255, 0.48);
  box-shadow: 0 0 18px rgba(184, 140, 255, 0.28);
}

.buff-unicorn {
  border-color: rgba(255, 250, 240, 0.56);
  color: #fffaf0;
}

.buff-danger {
  border-color: rgba(255, 95, 115, 0.6);
  color: #ffd5dc;
  animation: dangerPulse 1.15s ease-in-out infinite;
}

.battle-panel {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.battle-panel.is-acquired {
  transform: translateY(-2px);
  border-color: var(--hud-cyan);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.46),
    0 0 32px rgba(122, 215, 255, 0.26);
}

.battle-panel.is-danger,
body.hud-danger .profile-panel {
  border-color: rgba(255, 95, 115, 0.58);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(255, 95, 115, 0.2);
}

.battle-panel.is-boss {
  border-color: rgba(184, 140, 255, 0.58);
}

.target-track {
  border: 1px solid rgba(255, 95, 115, 0.18);
  background: rgba(2, 5, 12, 0.72);
}

.target-track b {
  background: linear-gradient(90deg, #741323, var(--hud-ruby), var(--hud-gold));
  box-shadow: 0 0 20px rgba(255, 95, 115, 0.35);
}

.combat-feed {
  position: absolute;
  left: 50%;
  top: 152px;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 420px));
  transform: translateX(-50%);
  pointer-events: none;
}

.combat-event {
  justify-self: center;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(247, 215, 103, 0.25);
  border-radius: 8px;
  color: var(--hud-text);
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.88), rgba(5, 8, 15, 0.68));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  font-size: 0.86rem;
  font-weight: 950;
  text-align: center;
  animation: combatRise 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.combat-event.is-fading {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.combat-damage,
.combat-danger,
.combat-knockout {
  border-color: rgba(255, 95, 115, 0.45);
  color: #ffd5dc;
}

.combat-collect,
.combat-treasure,
.combat-puzzle {
  border-color: rgba(247, 215, 103, 0.5);
  color: #fff2bd;
}

.ability-bar {
  padding: 9px;
  border: 1px solid rgba(122, 215, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(122, 215, 255, 0.08), transparent),
    rgba(3, 6, 13, 0.24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.ability-button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(169, 188, 214, 0.28);
  color: var(--hud-text);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(32, 45, 70, 0.96), rgba(7, 11, 20, 0.98));
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 120ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ability-button::before {
  content: attr(data-key);
  position: absolute;
  top: 5px;
  left: 6px;
  min-width: 18px;
  padding: 1px 4px;
  border: 1px solid rgba(247, 215, 103, 0.26);
  border-radius: 4px;
  color: var(--hud-gold);
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.55rem;
  font-weight: 950;
}

.ability-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(2, 5, 12, 0.72), rgba(2, 5, 12, 0.72), transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.ability-button:hover,
.ability-button.has-target {
  border-color: rgba(122, 215, 255, 0.62);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(122, 215, 255, 0.16);
}

.ability-button.is-ready,
.ability-button.is-fired {
  border-color: rgba(247, 215, 103, 0.62);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(247, 215, 103, 0.2);
}

.ability-button.is-cooling::after {
  opacity: 1;
  animation: cooldownSweep 820ms linear forwards;
}

.ability-button span {
  color: var(--hud-cyan);
  text-shadow: 0 0 16px rgba(122, 215, 255, 0.34);
}

.ability-button .ability-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  margin-top: 4px;
  border-radius: 8px;
  font-size: 0;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(122, 215, 255, 0.35));
}

.ability-icon::before,
.ability-icon::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ability-icon--collect::before {
  inset: 4px;
  clip-path: polygon(50% 0, 66% 34%, 100% 50%, 66% 66%, 50% 100%, 34% 66%, 0 50%, 34% 34%);
  background: linear-gradient(135deg, var(--hud-gold), #fff8bd 48%, var(--hud-cyan));
}

.ability-icon--attack::before,
.ability-icon--attack::after {
  left: 15px;
  top: 2px;
  width: 5px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f4f7ff, #7ad7ff 54%, #1e3152);
  transform: rotate(42deg);
}

.ability-icon--attack::after {
  transform: rotate(-42deg);
}

.ability-icon--magic::before {
  inset: 3px;
  border: 2px solid var(--hud-cyan);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 32%, rgba(122, 215, 255, 0.42) 34% 40%, transparent 42%),
    conic-gradient(from 0deg, transparent, rgba(184, 140, 255, 0.72), transparent, rgba(122, 215, 255, 0.72), transparent);
}

.ability-icon--magic::after {
  inset: 11px;
  clip-path: polygon(50% 0, 100% 86%, 0 86%);
  background: var(--hud-cyan);
}

.ability-icon--super::before {
  inset: 2px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fffaf0 0 10%, var(--hud-gold) 11% 24%, transparent 25%),
    conic-gradient(var(--hud-gold), var(--hud-violet), var(--hud-ruby), var(--hud-gold));
}

.ability-icon--super::after {
  inset: 8px;
  border: 2px solid rgba(5, 8, 15, 0.88);
  border-radius: 50%;
}

.ability-icon--solve::before {
  inset: 5px;
  border: 2px solid var(--hud-gold);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--hud-gold) 0 12%, transparent 14%);
}

.ability-icon--solve::after {
  left: 15px;
  top: 19px;
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: var(--hud-gold);
}

.ability-icon--gear::before {
  inset: 4px;
  clip-path: polygon(50% 0, 62% 18%, 84% 16%, 83% 40%, 100% 50%, 83% 60%, 84% 84%, 62% 82%, 50% 100%, 38% 82%, 16% 84%, 17% 60%, 0 50%, 17% 40%, 16% 16%, 38% 18%);
  background: linear-gradient(135deg, #dce8ff, #7ad7ff 52%, #3d5b8f);
}

.ability-icon--gear::after {
  inset: 12px;
  border-radius: 50%;
  background: #07101d;
}

.ability-icon--market::before,
.ability-icon--shop::before {
  inset: 7px 6px 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hud-gold), #fff2a8 52%, #b6782c);
  box-shadow: 0 8px 0 rgba(247, 215, 103, 0.42);
}

.ability-icon--market::after {
  inset: 6px 12px 17px;
  border-top: 3px solid rgba(5, 8, 15, 0.54);
  border-bottom: 3px solid rgba(5, 8, 15, 0.54);
}

.ability-icon--world::before {
  inset: 3px;
  border: 3px solid var(--hud-cyan);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, rgba(122, 215, 255, 0.55) 46% 54%, transparent 56%),
    linear-gradient(0deg, transparent 44%, rgba(122, 215, 255, 0.55) 46% 54%, transparent 56%);
}

.ability-icon--world::after {
  inset: 13px;
  border-radius: 50%;
  background: var(--hud-gold);
}

.ability-icon--stable::before {
  inset: 5px;
  clip-path: polygon(50% 0, 76% 22%, 84% 56%, 64% 100%, 50% 74%, 36% 100%, 16% 56%, 24% 22%);
  background: linear-gradient(180deg, #fffaf0, #b88cff 58%, #5c4aa8);
}

.ability-icon--stable::after {
  left: 13px;
  top: 0;
  width: 8px;
  height: 18px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--hud-gold);
}

.ability-icon--maps::before {
  inset: 7px 4px 6px;
  clip-path: polygon(0 8%, 32% 0, 68% 8%, 100% 0, 100% 92%, 68% 100%, 32% 92%, 0 100%);
  background:
    linear-gradient(90deg, transparent 31%, rgba(5, 8, 15, 0.48) 32% 35%, transparent 36% 65%, rgba(5, 8, 15, 0.48) 66% 69%, transparent 70%),
    linear-gradient(135deg, #7ad7ff, #f7d767);
}

.ability-icon--chat::before {
  inset: 7px 4px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #dff8ff, #7ad7ff);
}

.ability-icon--chat::after {
  left: 9px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: #7ad7ff;
}

.ability-icon--settings::before {
  inset: 5px;
  border: 3px solid var(--hud-cyan);
  border-radius: 50%;
  background: radial-gradient(circle, var(--hud-cyan) 0 18%, transparent 20%);
}

.ability-icon--settings::after {
  left: 15px;
  top: 1px;
  width: 4px;
  height: 32px;
  border-radius: 4px;
  background: var(--hud-cyan);
  box-shadow: 0 0 0 0 var(--hud-cyan);
  transform: rotate(45deg);
}

.ability-icon--shop::after {
  inset: 7px;
  clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%);
  background: linear-gradient(135deg, #fffaf0, var(--hud-emerald) 54%, #167a64);
}

.ability-button--super span {
  color: var(--hud-gold);
}

.ability-button--super {
  background:
    radial-gradient(circle at 50% 24%, rgba(247, 215, 103, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(80, 54, 151, 0.98), rgba(9, 8, 24, 0.98));
}

.ability-button--shop {
  color: var(--hud-text);
  background:
    radial-gradient(circle at 50% 24%, rgba(95, 224, 164, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(42, 92, 75, 0.94), rgba(7, 14, 17, 0.98));
}

.toast {
  border: 1px solid rgba(247, 215, 103, 0.24);
  color: var(--hud-text);
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.94), rgba(5, 8, 15, 0.9));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(247, 215, 103, 0.12);
}

.shop-item,
.gear-item,
.gear-loadout-card,
.setting-row,
.admin-status,
.admin-command,
.hint-summary,
.hint-card,
.solution-purchase,
.stable-hero,
.race-card {
  border: 1px solid rgba(122, 215, 255, 0.18);
  color: var(--hud-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 28%),
    rgba(8, 13, 24, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shop-item p,
.gear-item p,
.hint-card p,
.solution-purchase p,
.setting-row em,
.admin-status span,
.admin-command span,
.hint-summary span {
  color: var(--hud-muted);
}

.gear-dialog {
  color: #f8fbff;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(5, 8, 15, 0.98));
  border: 1px solid rgba(122, 215, 255, 0.22);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 42px rgba(122, 215, 255, 0.1);
}

.gear-dialog form {
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(15, 25, 42, 0.96), rgba(5, 8, 15, 0.96));
}

.gear-dialog .dialog-head {
  border-bottom-color: rgba(122, 215, 255, 0.18);
}

.gear-dialog .dialog-head strong,
.gear-dialog .gear-section-title {
  color: #fff2a8;
  text-shadow: 0 0 18px rgba(247, 215, 103, 0.26);
}

.gear-dialog .slot-card,
.gear-dialog .combo-panel,
.gear-dialog .gear-item,
.gear-dialog .gear-loadout-card {
  border-color: rgba(122, 215, 255, 0.22);
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 28%),
    rgba(8, 13, 24, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.gear-dialog .slot-card strong,
.gear-dialog .combo-panel strong,
.gear-dialog .gear-item strong {
  color: #fffaf0;
  text-shadow: 0 0 12px rgba(255, 250, 240, 0.14);
}

.gear-dialog .slot-card span,
.gear-dialog .slot-card em,
.gear-dialog .combo-panel span,
.gear-dialog .gear-item span,
.gear-dialog .gear-item p {
  color: #c9d8f7;
}

.gear-dialog .gear-tab:not(.is-active) {
  color: #eaf4ff;
  background: rgba(15, 25, 42, 0.94);
}

.gear-dialog .gear-tab.is-active,
.gear-dialog .gear-item button:not(:disabled) {
  color: #07121f;
  background: linear-gradient(180deg, #fff7b6, #f7d767);
  box-shadow: 0 0 18px rgba(247, 215, 103, 0.16);
}

.gear-dialog .gear-item button:disabled {
  color: #d8e5ff;
  background: rgba(36, 48, 68, 0.74);
}

.gear-dialog .gear-item.is-equipped {
  border-color: rgba(95, 224, 164, 0.58);
  background:
    linear-gradient(135deg, rgba(95, 224, 164, 0.2), transparent 38%),
    rgba(9, 31, 27, 0.9);
}

.gear-dialog .gear-item.is-locked {
  opacity: 0.78;
}

.gear-dialog .gear-unequip {
  color: #fffaf0;
  background: rgba(5, 8, 15, 0.78);
}

body.hud-cinematic .roster-panel,
body.hud-cinematic .chat-panel,
body.hud-cinematic .zoom-panel,
body.hud-cinematic .minimap-panel {
  opacity: 0.3;
  transition: opacity 160ms ease;
}

body.hud-cinematic .roster-panel:hover,
body.hud-cinematic .chat-panel:hover,
body.hud-cinematic .zoom-panel:hover,
body.hud-cinematic .minimap-panel:hover {
  opacity: 1;
}

@keyframes hudSheen {
  0% { transform: translateX(-110%); }
  46%, 100% { transform: translateX(110%); }
}

@keyframes cooldownSweep {
  from { transform: rotate(0deg); opacity: 0.92; }
  to { transform: rotate(360deg); opacity: 0; }
}

@keyframes combatRise {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dangerPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 95, 115, 0.16); }
  50% { box-shadow: 0 0 28px rgba(255, 95, 115, 0.42); }
}

.stable-list {
  display: grid;
  gap: 12px;
  max-height: min(60vh, 580px);
  overflow: auto;
  padding-right: 4px;
}

.stable-hero,
.race-result,
.race-card {
  border: 2px solid rgba(36, 48, 68, 0.1);
  border-radius: 8px;
  background: #fff;
}

.stable-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #fffaf0, #e8f8ff 52%, #f5ebff);
}

.stable-unicorn-preview {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #6654c8;
  background: #fff;
  box-shadow: inset 0 -10px 0 rgba(214, 108, 255, 0.18);
  font-size: 2.4rem;
  font-weight: 950;
}

.stable-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.stable-copy strong {
  font-size: 1.25rem;
}

.stable-copy span,
.stable-copy small,
.race-result span,
.race-card span {
  color: rgba(36, 48, 68, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.stable-xp {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 48, 68, 0.14);
}

.stable-xp i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d66cff, #f7b938);
}

.stable-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.stable-actions button,
.race-card button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  color: #fff;
  background: #6654c8;
  font-weight: 950;
}

.stable-actions button {
  display: grid;
  gap: 2px;
}

.stable-actions span {
  font-size: 0.7rem;
  opacity: 0.86;
}

.race-result,
.race-card {
  padding: 12px;
}

.race-result {
  display: grid;
  gap: 5px;
  background: #fff7cf;
}

.race-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
}

.race-card p {
  margin: 5px 0;
  color: rgba(36, 48, 68, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.race-card.is-locked {
  opacity: 0.68;
}

.race-card.is-locked button {
  background: #7a8798;
}

.codex-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(60vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.codex-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  min-height: 180px;
  padding: 12px;
  border: 2px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background: #fff;
}

.codex-card canvas {
  width: 92px;
  height: 112px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eafaff, #fffaf0);
}

.codex-card strong {
  display: block;
  font-size: 1.08rem;
}

.codex-card span {
  display: block;
  margin-top: 2px;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.codex-card p {
  margin: 6px 0 0;
  color: rgba(36, 48, 68, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.codex-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.codex-meta i {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid rgba(102, 84, 200, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.86);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  padding: 0 8px;
}

.codex-card .codex-statline {
  font-size: 0.76rem;
  line-height: 1.32;
}

.codex-section-title {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--hud-gold, #f7d767);
  font-family: Georgia, serif;
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0;
}

.codex-card--creature canvas {
  background:
    radial-gradient(circle at 50% 38%, rgba(247, 215, 103, 0.13), transparent 42%),
    radial-gradient(circle at 50% 62%, rgba(122, 215, 255, 0.22), rgba(5, 8, 15, 0.92));
}

.checkout-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: auto;
  padding: 24px;
  background:
    linear-gradient(180deg, #98e4ff, #92d869),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 38px);
}

.checkout-card {
  width: min(620px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border: 3px solid rgba(36, 48, 68, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 22px 70px var(--shadow);
  text-align: center;
}

.checkout-card h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
}

.checkout-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--plum);
  font-weight: 950;
  text-decoration: none;
}

/* Senior UI director polish: remove prototype tells and unify the whole shell. */
.screen {
  background:
    radial-gradient(circle at 50% 42%, rgba(122, 215, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 14% 16%, rgba(184, 140, 255, 0.18), transparent 18rem),
    linear-gradient(180deg, #08111f 0%, #121a2c 54%, #0a101b 100%);
}

.login-card {
  border: 1px solid rgba(122, 215, 255, 0.34);
  color: var(--hud-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(16, 23, 38, 0.94), rgba(5, 8, 15, 0.94));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 50px rgba(122, 215, 255, 0.12);
}

.login-card::before,
.login-card::after {
  display: none;
}

h1 {
  color: var(--hud-text);
  text-shadow:
    0 0 24px rgba(122, 215, 255, 0.3),
    0 3px 0 rgba(5, 8, 15, 0.84);
}

.subtitle,
.server-hint,
.field span {
  color: var(--hud-muted);
}

.avatar-choice,
.secondary-button,
.swatch {
  border: 1px solid rgba(122, 215, 255, 0.22);
  color: var(--hud-text);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.82), transparent 22%),
    linear-gradient(180deg, color-mix(in srgb, var(--swatch) 96%, white 10%), color-mix(in srgb, var(--swatch) 88%, black 10%));
  box-shadow:
    0 0 18px color-mix(in srgb, var(--swatch) 46%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.avatar-choice.is-selected,
.swatch.is-selected {
  border-color: rgba(247, 215, 103, 0.7);
  box-shadow:
    0 0 20px rgba(247, 215, 103, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.topbar {
  min-height: 42px;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.86), rgba(16, 23, 38, 0.64), rgba(5, 8, 15, 0.86));
}

.build-pill {
  min-height: 24px;
  padding: 0 8px;
  border-color: rgba(247, 215, 103, 0.18);
  color: rgba(247, 215, 103, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zoom-panel {
  opacity: 0.84;
}

.zoom-panel:hover {
  opacity: 1;
}

.world-map-card {
  background:
    radial-gradient(circle at 50% 8%, rgba(122, 215, 255, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(16, 23, 38, 0.96), rgba(5, 8, 15, 0.96));
}

#worldMapCanvas {
  border-color: rgba(122, 215, 255, 0.28);
  background: #07101d;
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.58),
    0 0 30px rgba(122, 215, 255, 0.12);
}

.world-map-card .shop-note {
  color: #c9d8f7;
}

.world-map-details {
  border: 1px solid rgba(122, 215, 255, 0.2);
  color: #f8fbff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 32%),
    rgba(8, 13, 24, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.world-map-details strong {
  color: #fff2a8;
  text-shadow: 0 0 16px rgba(247, 215, 103, 0.22);
}

.world-map-details span {
  color: #d8e5ff;
}

/* v38 main menu: premium character-select stage with live sprite previews. */
.screen {
  overflow: auto;
  place-items: center;
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen::before {
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.86), rgba(5, 8, 15, 0.28), rgba(5, 8, 15, 0.82)),
    radial-gradient(circle at 52% 42%, rgba(255, 224, 117, 0.18), transparent 18rem),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat;
  filter: saturate(1.28) contrast(1.04);
  opacity: 0.72;
}

.screen::after {
  background:
    radial-gradient(circle at 50% 44%, transparent 0 24rem, rgba(5, 8, 15, 0.48) 39rem),
    linear-gradient(180deg, rgba(8, 17, 31, 0.28), rgba(8, 17, 31, 0.78));
}

.screen > * {
  position: relative;
  z-index: 1;
}

.login-card {
  width: min(1360px, calc(100vw - 34px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(18px, 2.4vw, 28px);
  border-color: rgba(122, 215, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 26%),
    radial-gradient(circle at 15% 18%, rgba(247, 215, 103, 0.16), transparent 18rem),
    radial-gradient(circle at 84% 22%, rgba(122, 215, 255, 0.18), transparent 20rem),
    linear-gradient(180deg, rgba(12, 18, 33, 0.92), rgba(5, 8, 15, 0.94));
  text-align: left;
}

.menu-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.login-card h1 {
  font-size: clamp(2.35rem, 4.5vw, 4.25rem);
}

.profile-form {
  width: 100%;
  justify-items: stretch;
  gap: 14px;
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  margin-top: 4px;
}

.menu-showcase,
.menu-panel {
  border: 1px solid rgba(122, 215, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(6, 10, 19, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 48px rgba(0, 0, 0, 0.26);
}

.menu-showcase {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  min-height: 560px;
  overflow: hidden;
}

.menu-hero-stage {
  position: relative;
  min-height: 318px;
  display: grid;
  place-items: end center;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 242, 168, 0.24), transparent 8rem),
    radial-gradient(circle at 50% 68%, rgba(122, 215, 255, 0.18), transparent 11rem),
    linear-gradient(180deg, rgba(34, 63, 74, 0.4), rgba(7, 12, 23, 0.7));
}

.menu-hero-stage::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 26px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(122, 215, 255, 0.32), rgba(5, 8, 15, 0.02) 68%);
}

#menuHeroCanvas {
  position: relative;
  z-index: 1;
  width: min(300px, 96%);
  height: auto;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.38));
}

.menu-hero-copy {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: #f8fbff;
}

.menu-hero-copy strong {
  color: #fff2a8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(247, 215, 103, 0.22);
}

.menu-hero-copy span,
.menu-hero-copy p {
  margin: 0;
  color: #d8e5ff;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.menu-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 0;
}

.menu-hero-stats div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 16, 29, 0.72);
}

.menu-hero-stats dt,
.chooser-head span {
  color: rgba(216, 229, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.menu-hero-stats dd {
  margin: 2px 0 0;
  color: #fffaf0;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.menu-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.menu-panel .save-panel {
  width: 100%;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%),
    rgba(5, 8, 15, 0.42);
}

.menu-panel .field {
  width: 100%;
}

.chooser-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #fffaf0;
}

.chooser-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

.chooser {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 9px;
  max-height: none;
  overflow: visible;
  padding: 2px 2px 4px;
}

.avatar-choice {
  --swatch: #ff2f9f;
  display: grid;
  grid-template-rows: 64px auto auto;
  justify-items: center;
  align-content: start;
  min-width: 0;
  min-height: 112px;
  padding: 7px 5px;
  border-radius: 8px;
  text-align: center;
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 26%, color-mix(in srgb, var(--swatch) 30%, white 10%), transparent 48%),
    linear-gradient(180deg, rgba(20, 33, 55, 0.92), rgba(5, 8, 15, 0.92));
}

.avatar-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 215, 255, 0.48);
}

.avatar-choice.is-selected {
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--swatch) 52%, white 10%), transparent 50%),
    linear-gradient(180deg, rgba(32, 46, 76, 0.95), rgba(7, 12, 23, 0.95));
}

.avatar-choice-preview {
  width: 72px;
  height: 66px;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.34));
}

.avatar-choice-name {
  max-width: 100%;
  overflow: visible;
  color: #fff2a8;
  font-size: clamp(0.58rem, 0.74vw, 0.68rem);
  font-weight: 950;
  text-overflow: clip;
  white-space: nowrap;
}

.avatar-choice-role {
  max-width: 100%;
  overflow: visible;
  color: #c9d8f7;
  font-size: clamp(0.5rem, 0.64vw, 0.58rem);
  font-weight: 850;
  text-overflow: clip;
  white-space: nowrap;
}

.swatches {
  justify-content: flex-start;
}

.menu-actions {
  justify-content: flex-start;
}

@media (max-width: 1020px) {
  .login-card {
    max-height: calc(100vh - 20px);
  }

  .menu-layout {
    grid-template-columns: 1fr;
  }

  .menu-showcase {
    grid-template-columns: minmax(220px, 300px) 1fr;
    grid-template-rows: 1fr;
    min-height: 0;
  }

  .menu-hero-stage {
    min-height: 280px;
  }

  .chooser {
    grid-template-columns: repeat(3, minmax(116px, 1fr));
    max-height: none;
  }
}

@media (max-width: 720px) {
  .screen {
    padding: 10px;
    align-items: start;
  }

  .login-card {
    width: 100%;
    max-height: none;
    padding: 14px;
  }

  .login-card h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .menu-showcase {
    grid-template-columns: 1fr;
  }

  .menu-hero-stage {
    min-height: 250px;
  }

  #menuHeroCanvas {
    width: min(240px, 92%);
  }

  .menu-hero-stats {
    grid-template-columns: 1fr;
  }

  .chooser {
    grid-template-columns: repeat(2, minmax(118px, 1fr));
  }

  .avatar-choice {
    min-height: 124px;
    grid-template-rows: 72px auto auto;
  }

  .avatar-choice-preview {
    width: 78px;
    height: 74px;
  }

  .menu-actions,
  .swatches {
    justify-content: center;
  }
}

.shop-item.is-owned,
.gear-item.is-equipped,
.race-result,
.hint-notice {
  border-color: rgba(95, 224, 164, 0.32);
  color: var(--hud-text);
  background:
    linear-gradient(135deg, rgba(95, 224, 164, 0.1), transparent 34%),
    rgba(8, 20, 22, 0.82);
}

.stable-hero {
  background:
    radial-gradient(circle at 13% 30%, rgba(255, 250, 240, 0.14), transparent 6rem),
    linear-gradient(135deg, rgba(184, 140, 255, 0.16), rgba(8, 13, 24, 0.86));
}

.race-card.is-locked,
.gear-item.is-locked {
  opacity: 0.54;
  filter: saturate(0.7);
}

.dialog-head .icon-button,
.icon-button {
  border: 1px solid rgba(122, 215, 255, 0.2);
  color: var(--hud-text);
  background: rgba(5, 8, 15, 0.72);
}

.dialog-head .icon-button:hover,
.icon-button:hover {
  border-color: rgba(247, 215, 103, 0.48);
  box-shadow: 0 0 18px rgba(247, 215, 103, 0.14);
}

.stable-hero,
.race-result,
.race-card,
.codex-card {
  border: 1px solid rgba(122, 215, 255, 0.18);
  color: var(--hud-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 30%),
    rgba(8, 13, 24, 0.78);
}

.stable-copy span,
.stable-copy small,
.race-result span,
.race-card span,
.race-card p,
.codex-card p {
  color: var(--hud-muted);
}

.codex-meta i {
  border-color: rgba(122, 215, 255, 0.18);
  color: var(--hud-text);
  background: rgba(122, 215, 255, 0.09);
}

.codex-card canvas,
.stable-unicorn-preview {
  border: 1px solid rgba(122, 215, 255, 0.2);
  background: radial-gradient(circle at 50% 34%, rgba(122, 215, 255, 0.22), rgba(5, 8, 15, 0.92));
}

@media (max-width: 980px) {
  .roster-panel {
    display: none;
  }

  .minimap-panel {
    top: 74px;
    right: 14px;
    width: 210px;
  }

  .chat-panel {
    right: 14px;
    width: min(300px, calc(100vw - 28px));
  }

  .quest-panel {
    right: 14px;
    left: auto;
    width: min(420px, calc(100vw - 270px));
    transform: none;
  }

  .zoom-panel {
    left: 14px;
    width: min(300px, calc(100vw - 360px));
    transform: none;
  }
}

/* v70 polish: remove older dark splash cast and strengthen parchment text contrast. */
.splash-screen {
  color: var(--gk-soft-white);
  background:
    linear-gradient(180deg, rgba(255, 244, 216, 0.08), rgba(85, 223, 255, 0.14)),
    #473293;
}

.splash-screen::before {
  background:
    linear-gradient(90deg, rgba(30, 23, 68, 0.5), rgba(30, 23, 68, 0.08) 48%, rgba(30, 23, 68, 0.22)),
    linear-gradient(180deg, rgba(255, 244, 216, 0.2), rgba(106, 76, 255, 0.08)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat;
  filter: saturate(1.26) contrast(1.02) brightness(1.28);
}

.splash-screen::after {
  background:
    linear-gradient(90deg, rgba(30, 23, 68, 0.42), rgba(30, 23, 68, 0.02) 52%, rgba(30, 23, 68, 0.22)),
    linear-gradient(180deg, rgba(255, 244, 216, 0.18), transparent 42%, rgba(106, 76, 255, 0.14));
}

.gear-combo-card em,
.gear-combo-card small,
.gear-combo-card p {
  color: rgba(48, 34, 71, 0.76);
}

.gear-combo-card span:not(.rarity-pill) {
  color: var(--gk-moonlit-violet);
}

.admin-dialog {
  background:
    linear-gradient(135deg, rgba(255, 244, 216, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.9), rgba(82, 55, 168, 0.9) 42%, rgba(56, 32, 110, 0.92));
}

.admin-dialog :is(.admin-status, .admin-command, .admin-overview-panel, .admin-section-list, .admin-record-list, .admin-editor, .admin-hierarchy, .admin-quick-panel, .admin-backlog-panel, .admin-pricing-panel, .admin-map-visualizer, .admin-map-flow) {
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.18), transparent 34%),
    rgba(56, 32, 110, 0.42);
}


/* v70: Glowkin Luminous Fantasy Interface System. */
:root {
  color-scheme: light;
  --gk-moonlit-violet: #6a4cff;
  --gk-deep-violet: #38206e;
  --gk-nightberry: #1e1744;
  --gk-crystal-cyan: #55dfff;
  --gk-glowkin-gold: #ffd86b;
  --gk-pepper-pink: #ff6fae;
  --gk-sprite-green: #76f0a1;
  --gk-lantern-orange: #ffb45e;
  --gk-cloud-cream: #fff4d8;
  --gk-soft-white: #fff9ef;
  --gk-ink-plum: #302247;
  --gk-glass: rgba(255, 249, 239, 0.88);
  --gk-glass-violet: rgba(106, 76, 255, 0.24);
  --gk-panel-line: rgba(106, 76, 255, 0.28);
  --gk-panel-line-hot: rgba(255, 216, 107, 0.64);
  --gk-text: #fff9ef;
  --gk-text-dark: #302247;
  --gk-muted: #735f8e;
  --gk-shadow: rgba(42, 24, 88, 0.24);
  --gk-title-font: "Trebuchet MS", "Baloo 2", "Fredoka", "Nunito", system-ui, sans-serif;
  --gk-header-font: "Trebuchet MS", "Nunito", "Quicksand", system-ui, sans-serif;
  --gk-body-font: "Nunito", "Quicksand", "Atkinson Hyperlegible", "Trebuchet MS", system-ui, sans-serif;
  --ink: var(--gk-ink-plum);
  --paper: var(--gk-soft-white);
  --sky: var(--gk-crystal-cyan);
  --pink: var(--gk-pepper-pink);
  --blue: var(--gk-crystal-cyan);
  --green: var(--gk-sprite-green);
  --gold: var(--gk-glowkin-gold);
  --plum: var(--gk-moonlit-violet);
  --hud-text: var(--gk-soft-white);
  --hud-muted: rgba(255, 244, 216, 0.84);
  --hud-line: rgba(255, 244, 216, 0.3);
  --hud-line-hot: rgba(255, 216, 107, 0.72);
  --hud-glass: rgba(56, 32, 110, 0.74);
  --hud-cyan: var(--gk-crystal-cyan);
  --hud-violet: var(--gk-moonlit-violet);
  --hud-gold: var(--gk-glowkin-gold);
}

body {
  color: var(--gk-text-dark);
  background:
    linear-gradient(180deg, #221850 0%, #49328f 40%, #8ee8ff 100%);
  font-family: var(--gk-body-font);
}

button,
input,
select,
textarea {
  font-family: var(--gk-body-font);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 216, 107, 0.82);
  outline-offset: 3px;
}

.game-shell {
  background:
    linear-gradient(180deg, #8fe9ff 0%, #d7fbff 34%, #a4f4a5 78%, #fff4d8 100%);
}

.screen {
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.4), rgba(181, 243, 255, 0.2)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat;
}

.screen::before {
  opacity: 0.38;
  background:
    linear-gradient(135deg, rgba(255, 244, 216, 0.78), transparent 34%),
    linear-gradient(315deg, rgba(85, 223, 255, 0.34), transparent 42%);
}

.eyebrow,
.brand strong,
.login-card h1,
.splash-copy h1,
.dialog-head strong,
.gear-section-title,
.codex-section-title,
.quest-panel strong,
.battle-panel strong,
.world-map-details strong {
  font-family: var(--gk-title-font);
  letter-spacing: 0;
}

.login-card,
.save-panel,
.menu-hero-card,
.menu-character-panel,
.topbar,
.profile-panel,
.quest-panel,
.roster-panel,
.battle-panel,
.chat-panel,
.zoom-panel,
.minimap-panel,
.world-map-card,
.travel-transition__copy,
.death-overlay__copy {
  border: 1px solid rgba(255, 244, 216, 0.56);
  border-radius: 8px;
  color: var(--gk-text);
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.26), transparent 23%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.78), rgba(56, 32, 110, 0.78) 58%, rgba(30, 23, 68, 0.82));
  box-shadow:
    0 18px 44px rgba(48, 34, 71, 0.24),
    0 0 0 1px rgba(85, 223, 255, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(30, 23, 68, 0.34);
  backdrop-filter: blur(13px) saturate(1.24);
}

.login-card,
.save-panel,
.menu-hero-card,
.menu-character-panel {
  color: var(--gk-text-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 216, 0.9) 52%, rgba(255, 216, 107, 0.32)),
    linear-gradient(180deg, rgba(255, 249, 239, 0.94), rgba(252, 235, 255, 0.9));
  border-color: rgba(106, 76, 255, 0.24);
  box-shadow:
    0 24px 70px rgba(48, 34, 71, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.login-card h1,
.splash-copy h1 {
  color: var(--gk-soft-white);
  text-shadow:
    0 3px 0 rgba(48, 34, 71, 0.22),
    0 0 22px rgba(85, 223, 255, 0.44),
    0 0 34px rgba(255, 111, 174, 0.18);
}

.login-card h1 {
  color: var(--gk-moonlit-violet);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9), 0 0 24px rgba(255, 216, 107, 0.32);
}

.splash-screen {
  background:
    linear-gradient(180deg, rgba(30, 23, 68, 0.08), rgba(255, 244, 216, 0.2)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat;
}

.splash-copy {
  text-shadow: 0 3px 20px rgba(48, 34, 71, 0.32);
}

.splash-tagline,
.screen .shop-note {
  color: rgba(48, 34, 71, 0.86);
}

.primary-button,
.secondary-button,
.mini-button,
.ability-button,
.gear-tab,
.provider-row button,
.stable-actions button,
.admin-open-button,
.shop-item button,
.gear-item button,
.avatar-choice,
.save-slot-card,
.swatch {
  border: 1px solid rgba(255, 244, 216, 0.58);
  border-radius: 8px;
  color: var(--gk-text-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 244, 216, 0.1)),
    linear-gradient(135deg, var(--gk-lantern-orange), var(--gk-glowkin-gold));
  box-shadow:
    0 10px 20px rgba(48, 34, 71, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -2px 0 rgba(139, 87, 25, 0.18);
  font-weight: 950;
  letter-spacing: 0;
}

.secondary-button,
.mini-button,
.gear-tab,
.avatar-choice,
.save-slot-card {
  color: var(--gk-soft-white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(135deg, rgba(106, 76, 255, 0.92), rgba(56, 32, 110, 0.9));
  border-color: rgba(85, 223, 255, 0.36);
}

.primary-button:hover,
.secondary-button:hover,
.mini-button:hover,
.ability-button:hover,
.gear-tab:hover,
.provider-row button:hover,
.stable-actions button:hover,
.shop-item button:hover,
.gear-item button:hover,
.avatar-choice:hover,
.save-slot-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(48, 34, 71, 0.22),
    0 0 24px rgba(85, 223, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.primary-button:active,
.secondary-button:active,
.mini-button:active,
.ability-button:active {
  transform: translateY(1px) scale(0.99);
}

.avatar-choice.is-selected,
.save-slot-card.is-selected,
.gear-tab.is-active,
.mini-button.is-active {
  border-color: rgba(255, 216, 107, 0.82);
  color: var(--gk-soft-white);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 216, 107, 0.28), transparent 60%),
    linear-gradient(135deg, rgba(255, 111, 174, 0.9), rgba(106, 76, 255, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 216, 107, 0.34),
    0 0 28px rgba(255, 216, 107, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.topbar {
  background:
    linear-gradient(90deg, rgba(255, 249, 239, 0.88), rgba(255, 244, 216, 0.78)),
    linear-gradient(135deg, rgba(85, 223, 255, 0.34), rgba(255, 111, 174, 0.2));
  color: var(--gk-text-dark);
  border-color: rgba(106, 76, 255, 0.2);
}

.brand strong,
.pill,
.online-pill {
  color: var(--gk-text-dark);
  text-shadow: none;
}

.brand-gem {
  background: conic-gradient(from 45deg, var(--gk-crystal-cyan), var(--gk-moonlit-violet), var(--gk-glowkin-gold), var(--gk-pepper-pink), var(--gk-crystal-cyan));
  box-shadow:
    0 0 0 2px rgba(255, 249, 239, 0.72),
    0 0 20px rgba(85, 223, 255, 0.42);
}

.pill,
.online-pill,
.build-pill {
  border-color: rgba(106, 76, 255, 0.2);
  background: rgba(255, 249, 239, 0.82);
}

.profile-card strong,
.quest-panel strong,
.battle-panel strong,
.chat-panel strong,
.minimap-panel strong,
.dialog-head strong {
  color: var(--gk-soft-white);
}

.profile-card span,
.quest-panel span,
.battle-panel span,
.chat-panel span,
.shop-note,
.world-map-details span {
  color: rgba(255, 249, 239, 0.86);
}

.profile-panel {
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.82), rgba(56, 32, 110, 0.78));
}

.profile-card canvas,
.avatar-choice-preview,
.save-slot-avatar,
.codex-card canvas {
  border: 2px solid rgba(255, 216, 107, 0.5);
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 249, 239, 0.86), transparent 24%),
    linear-gradient(135deg, rgba(85, 223, 255, 0.28), rgba(255, 111, 174, 0.18));
  box-shadow: 0 0 18px rgba(85, 223, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.xp-track,
.hp-track,
.mp-track,
.stable-xp {
  height: 16px;
  border: 1px solid rgba(255, 249, 239, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(30, 23, 68, 0.32), rgba(30, 23, 68, 0.18)),
    rgba(255, 249, 239, 0.3);
  box-shadow: inset 0 1px 3px rgba(30, 23, 68, 0.26);
}

.xp-track b {
  background: linear-gradient(90deg, var(--gk-crystal-cyan), var(--gk-moonlit-violet), var(--gk-glowkin-gold));
  box-shadow: 0 0 18px rgba(85, 223, 255, 0.38);
}

.hp-track b {
  background: linear-gradient(90deg, #ff8098, var(--gk-pepper-pink), var(--gk-lantern-orange));
  box-shadow: 0 0 18px rgba(255, 111, 174, 0.34);
}

.mp-track b {
  background: linear-gradient(90deg, var(--gk-crystal-cyan), var(--gk-moonlit-violet));
  box-shadow: 0 0 18px rgba(85, 223, 255, 0.34);
}

.stat-grid span,
.equipped-gear-badge,
.objective-meter-chips span,
.buff-icon,
.shop-price {
  border: 1px solid rgba(255, 244, 216, 0.38);
  border-radius: 8px;
  color: var(--gk-soft-white);
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.12), transparent),
    rgba(30, 23, 68, 0.36);
}

.equipped-gear-badge.is-empty {
  color: rgba(255, 249, 239, 0.72);
}

.quest-panel {
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.93), rgba(255, 244, 216, 0.88)),
    linear-gradient(135deg, rgba(255, 216, 107, 0.18), rgba(255, 111, 174, 0.12));
  color: var(--gk-text-dark);
  border-color: rgba(255, 216, 107, 0.54);
}

.quest-panel strong,
.quest-panel span,
.quest-panel .shop-note,
.quest-panel .objective-meter-summary span {
  color: var(--gk-text-dark);
  text-shadow: none;
}

.quest-panel .eyebrow,
.objective-meter-summary strong {
  color: var(--gk-moonlit-violet);
}

.objective-meter {
  border-top-color: rgba(106, 76, 255, 0.18);
}

.objective-meter-chips span {
  color: var(--gk-text-dark);
  background: rgba(255, 249, 239, 0.72);
  border-color: rgba(106, 76, 255, 0.18);
}

.objective-meter-chips span.is-done {
  color: #245332;
  background: rgba(118, 240, 161, 0.34);
  border-color: rgba(118, 240, 161, 0.5);
}

.battle-panel {
  border-color: rgba(255, 111, 174, 0.32);
}

.battle-panel.is-danger,
.battle-panel.is-boss,
body.hud-danger .profile-panel {
  border-color: rgba(255, 111, 174, 0.66);
  background:
    linear-gradient(135deg, rgba(255, 111, 174, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.86), rgba(56, 32, 110, 0.86));
  box-shadow:
    0 0 0 1px rgba(255, 244, 216, 0.22),
    0 0 34px rgba(255, 111, 174, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.chat-panel {
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(30, 23, 68, 0.76), rgba(56, 32, 110, 0.72));
}

.chat-message,
.chat-form input,
.chat-form button,
.setting-row,
.hint-card,
.hint-summary,
.solution-purchase,
.shop-item,
.gear-item,
.gear-loadout-card,
.gear-combo-card,
.codex-card,
.stable-hero,
.save-slot-row {
  border: 1px solid rgba(106, 76, 255, 0.18);
  border-radius: 8px;
  color: var(--gk-text-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 36%),
    rgba(255, 249, 239, 0.9);
  box-shadow:
    0 10px 24px rgba(48, 34, 71, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.chat-message strong,
.shop-item strong,
.gear-item strong,
.codex-card strong,
.stable-copy strong,
.save-slot-card strong,
.setting-row strong,
.hint-summary strong,
.hint-card strong,
.solution-purchase strong {
  color: var(--gk-ink-plum);
}

.chat-message span,
.shop-item p,
.gear-item span,
.gear-item p,
.codex-card span,
.codex-card p,
.stable-copy span,
.stable-copy small,
.setting-row em,
.hint-card p,
.solution-purchase p,
.save-slot-card span,
.save-slot-card small {
  color: rgba(48, 34, 71, 0.72);
}

.chat-form input,
.field input,
.settings-list input,
.setting-select,
.grownup-gate input,
.admin-dialog input,
.admin-dialog select,
.admin-dialog textarea {
  border: 1px solid rgba(106, 76, 255, 0.22);
  border-radius: 8px;
  color: var(--gk-text-dark);
  background: rgba(255, 249, 239, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.ability-bar {
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 244, 216, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.18), transparent 32%),
    rgba(56, 32, 110, 0.56);
  box-shadow:
    0 18px 42px rgba(48, 34, 71, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ability-button {
  min-width: 86px;
  color: var(--gk-ink-plum);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 216, 0.18)),
    linear-gradient(135deg, var(--gk-lantern-orange), var(--gk-glowkin-gold));
}

.ability-button::before {
  border-color: rgba(255, 249, 239, 0.62);
}

.ability-button.is-ready,
.ability-button.has-target {
  border-color: rgba(85, 223, 255, 0.74);
  box-shadow:
    0 0 0 1px rgba(255, 249, 239, 0.38),
    0 0 24px rgba(85, 223, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.ability-button--super {
  color: var(--gk-soft-white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, var(--gk-pepper-pink), var(--gk-moonlit-violet), var(--gk-crystal-cyan));
}

.ability-button--shop {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 244, 216, 0.16)),
    linear-gradient(135deg, var(--gk-sprite-green), var(--gk-glowkin-gold));
}

.minimap-panel {
  border-color: rgba(85, 223, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(85, 223, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.74), rgba(30, 23, 68, 0.78));
}

#minimap {
  border: 3px solid rgba(255, 244, 216, 0.76);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(85, 223, 255, 0.16),
    0 0 32px rgba(85, 223, 255, 0.32),
    inset 0 0 28px rgba(255, 249, 239, 0.16);
}

.world-map-overlay {
  background:
    linear-gradient(180deg, rgba(30, 23, 68, 0.22), rgba(30, 23, 68, 0.38));
  backdrop-filter: blur(4px);
}

.world-map-card,
.gear-dialog form,
.shop-dialog form,
.settings-dialog form,
.hint-dialog form,
.stable-dialog form {
  color: var(--gk-text-dark);
  border-color: rgba(106, 76, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), transparent 32%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 244, 216, 0.93));
  box-shadow:
    0 28px 90px rgba(48, 34, 71, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dialog-head {
  border-bottom-color: rgba(106, 76, 255, 0.16);
}

.dialog-head strong,
.gear-dialog .dialog-head strong,
.gear-dialog .gear-section-title {
  color: var(--gk-moonlit-violet);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 216, 107, 0.24);
}

.dialog-head .icon-button,
.icon-button {
  color: var(--gk-soft-white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(135deg, var(--gk-moonlit-violet), var(--gk-deep-violet));
  border: 1px solid rgba(255, 244, 216, 0.42);
}

.shop-note,
.gear-dialog .slot-card span,
.gear-dialog .slot-card em,
.gear-dialog .combo-panel span,
.gear-dialog .gear-item span,
.gear-dialog .gear-item p {
  color: rgba(48, 34, 71, 0.72);
}

.gear-dialog .slot-card,
.gear-dialog .combo-panel,
.gear-dialog .gear-item,
.gear-dialog .gear-loadout-card,
.gear-power-dashboard > *,
.gear-stat-matrix span,
.gear-combo-card,
.shop-preview-card,
.grownup-gate,
.admin-pricing-card,
.admin-backlog-card {
  color: var(--gk-text-dark);
  border-color: rgba(106, 76, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 34%),
    rgba(255, 249, 239, 0.9);
}

.gear-dialog .slot-card strong,
.gear-dialog .combo-panel strong,
.gear-dialog .gear-item strong,
.gear-power-orb strong,
.gear-stat-matrix b,
.gear-combo-card span,
.shop-preview-card strong,
.grownup-gate p {
  color: var(--gk-ink-plum);
}

.gear-item.is-equipped,
.gear-dialog .gear-item.is-equipped,
.gear-combo-card.is-active,
.grownup-gate.is-verified {
  border-color: rgba(118, 240, 161, 0.52);
  background:
    linear-gradient(135deg, rgba(118, 240, 161, 0.22), rgba(255, 249, 239, 0.9));
}

.gear-item.is-locked,
.gear-dialog .gear-item.is-locked,
.shop-item.is-owned {
  opacity: 0.72;
  filter: saturate(0.86);
}

.shop-price {
  color: var(--gk-ink-plum);
  background:
    linear-gradient(135deg, var(--gk-glowkin-gold), var(--gk-cloud-cream));
}

.provider-row button:nth-child(n) {
  color: var(--gk-ink-plum);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent),
    linear-gradient(135deg, var(--gk-crystal-cyan), var(--gk-cloud-cream));
}

.toast {
  border: 1px solid rgba(255, 244, 216, 0.58);
  border-radius: 8px;
  color: var(--gk-soft-white);
  background:
    linear-gradient(135deg, rgba(255, 216, 107, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.9), rgba(56, 32, 110, 0.9));
  box-shadow:
    0 18px 48px rgba(48, 34, 71, 0.34),
    0 0 26px rgba(255, 216, 107, 0.18);
}

.admin-dialog {
  border-color: rgba(255, 244, 216, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 244, 216, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.88), rgba(56, 32, 110, 0.92) 46%, rgba(30, 23, 68, 0.94));
}

.admin-dialog form {
  color: var(--gk-soft-white);
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 244, 216, 0.04), transparent);
}

.admin-dialog .dialog-head strong,
.admin-status--studio strong,
.admin-overview-panel strong,
.admin-backlog-panel strong,
.admin-pricing-head strong,
.admin-pricing-title strong,
.admin-map-editor-head strong,
.admin-map-flow-head strong,
.admin-map-inspector > strong,
.admin-section-list strong,
.admin-record-list strong,
.admin-hierarchy-col strong,
.admin-editor strong {
  color: var(--gk-soft-white);
}

.admin-dialog .shop-note,
.admin-dialog :is(.admin-status, .admin-command, .admin-overview-panel, .admin-section-list, .admin-record-list, .admin-editor, .admin-hierarchy, .admin-quick-panel, .admin-backlog-panel, .admin-pricing-panel, .admin-map-visualizer, .admin-map-flow) {
  border-color: rgba(255, 244, 216, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.13), transparent 32%),
    rgba(56, 32, 110, 0.5);
}

.admin-tabs {
  border-color: rgba(255, 244, 216, 0.24);
  background: rgba(30, 23, 68, 0.74);
}

.admin-tabs button,
.admin-section-list button,
.admin-record-list button,
.admin-hierarchy-col button,
.admin-map-toolbar button,
.admin-terrain-palette button,
.admin-object-palette button,
.admin-map-flow-col button {
  color: var(--gk-soft-white);
  border-color: rgba(255, 244, 216, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.14), transparent),
    rgba(30, 23, 68, 0.42);
}

.admin-tabs button.is-active,
.admin-section-list button.is-active,
.admin-record-list button.is-active,
.admin-hierarchy-col button.is-active,
.admin-map-toolbar button.is-active,
.admin-terrain-palette button.is-active,
.admin-object-palette button.is-active,
.admin-map-flow-col button.is-active {
  color: var(--gk-ink-plum);
  border-color: rgba(255, 216, 107, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 244, 216, 0.18)),
    linear-gradient(135deg, var(--gk-lantern-orange), var(--gk-glowkin-gold));
}

.admin-overview-chips button span,
.admin-terrain-palette b,
.admin-object-palette b {
  color: var(--gk-ink-plum);
  background: var(--gk-glowkin-gold);
}

.admin-dialog :is(.admin-status--studio span, .admin-result, .admin-command span, .admin-overview-panel span, .admin-editor-note, .admin-section-list span, .admin-record-list span, .admin-hierarchy-col span, .admin-map-editor-head span, .admin-map-flow-head span, .admin-map-actions span, .admin-map-inspector > span, .admin-pricing-note, .admin-backlog-panel span) {
  color: rgba(255, 249, 239, 0.82);
}

.admin-dialog :is(input, select, textarea, .admin-record-search, .admin-json-editor, .admin-map-point-grid input) {
  color: var(--gk-ink-plum);
  background: rgba(255, 249, 239, 0.94);
  border-color: rgba(255, 216, 107, 0.34);
}

.admin-json-editor {
  font-size: 0.9rem;
  line-height: 1.54;
}

.admin-map-canvas-wrap {
  border-color: rgba(255, 244, 216, 0.34);
  background: #fff4d8;
}

.admin-map-material-summary,
.admin-map-field,
.admin-map-selected,
.admin-map-stat-grid span {
  background: rgba(255, 249, 239, 0.14);
  border-color: rgba(255, 244, 216, 0.22);
}

.admin-map-stat-grid b,
.admin-map-selected strong,
.admin-map-field span,
.admin-map-material-summary b {
  color: var(--gk-soft-white);
}

.death-overlay,
.travel-transition {
  background:
    linear-gradient(180deg, rgba(106, 76, 255, 0.22), rgba(255, 244, 216, 0.18)),
    rgba(30, 23, 68, 0.28);
  backdrop-filter: blur(5px);
}

.travel-transition__copy,
.death-overlay__copy {
  color: var(--gk-text-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 244, 216, 0.93));
  border-color: rgba(255, 216, 107, 0.42);
}

.travel-transition__copy strong,
.death-overlay__copy strong {
  color: var(--gk-moonlit-violet);
}

.travel-transition__copy span,
.death-overlay__copy span {
  color: rgba(48, 34, 71, 0.78);
}

@keyframes glowkinReadyPulse {
  0%, 100% { box-shadow: 0 10px 20px rgba(48, 34, 71, 0.18), 0 0 0 rgba(85, 223, 255, 0); }
  50% { box-shadow: 0 12px 24px rgba(48, 34, 71, 0.2), 0 0 22px rgba(85, 223, 255, 0.26); }
}

.ability-button.is-ready,
.quest-panel .hint-button,
.admin-overview-chips button.is-active {
  animation: glowkinReadyPulse 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ability-button.is-ready,
  .quest-panel .hint-button,
  .admin-overview-chips button.is-active,
  .splash-character,
  .splash-landmark {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .ability-button {
    min-width: 76px;
  }

  .profile-panel,
  .quest-panel,
  .chat-panel,
  .battle-panel,
  .minimap-panel {
    font-size: 0.92rem;
  }

  .admin-map-toolbar {
    grid-template-columns: none;
  }
}


/* v69: premium Admin Studio redesign. */
.admin-dialog {
  width: min(1760px, calc(100vw - 24px));
  height: min(980px, calc(100vh - 24px));
  border: 1px solid rgba(142, 221, 255, 0.24);
  border-radius: 8px;
  color: #eef7ff;
  background:
    radial-gradient(circle at 18% -8%, rgba(122, 215, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 3%, rgba(255, 214, 105, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(7, 12, 24, 0.98), rgba(10, 17, 32, 0.99) 48%, rgba(3, 7, 15, 0.99));
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.64),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.admin-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 12%, rgba(66, 120, 180, 0.24), transparent 36%),
    rgba(2, 4, 9, 0.78);
  backdrop-filter: blur(8px) saturate(1.2);
}

.admin-dialog form {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  padding: 20px;
  color: #eef7ff;
  background:
    linear-gradient(90deg, rgba(122, 215, 255, 0.08), transparent 18%, transparent 82%, rgba(214, 108, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 28%);
  overflow: hidden;
}

.admin-dialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 64px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(142, 221, 255, 0.18);
}

.admin-dialog .dialog-head strong {
  color: #fffaf0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.35rem, 1.4vw, 1.9rem);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(122, 215, 255, 0.22);
}

.admin-dialog .dialog-head .icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef7ff;
  background: rgba(10, 18, 34, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.admin-dialog .shop-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(142, 221, 255, 0.18);
  border-radius: 8px;
  color: #c9dcf3;
  background:
    linear-gradient(135deg, rgba(122, 215, 255, 0.1), transparent 42%),
    rgba(5, 11, 22, 0.68);
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.5;
}

.admin-dialog .admin-list {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  height: 100%;
  padding: 2px 8px 10px 0;
  overflow: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.admin-dialog .admin-list::-webkit-scrollbar,
.admin-dialog .admin-section-list::-webkit-scrollbar,
.admin-dialog .admin-record-list::-webkit-scrollbar,
.admin-dialog .admin-json-editor::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-dialog .admin-list::-webkit-scrollbar-thumb,
.admin-dialog .admin-section-list::-webkit-scrollbar-thumb,
.admin-dialog .admin-record-list::-webkit-scrollbar-thumb,
.admin-dialog .admin-json-editor::-webkit-scrollbar-thumb {
  border: 2px solid rgba(3, 7, 15, 0.92);
  border-radius: 999px;
  background: rgba(122, 215, 255, 0.34);
}

.admin-dialog :is(strong, span, em, p, b, button, label) {
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-dialog :is(button, input, select, textarea) {
  font-family: Inter, system-ui, sans-serif;
}

.admin-dialog :is(.admin-status, .admin-command, .admin-overview-panel, .admin-section-list, .admin-record-list, .admin-editor, .admin-hierarchy, .admin-quick-panel, .admin-backlog-panel, .admin-pricing-panel, .admin-map-visualizer, .admin-map-flow) {
  border: 1px solid rgba(142, 221, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(14, 25, 45, 0.88), rgba(5, 10, 21, 0.86));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-status--studio {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 18px 20px;
  border-color: rgba(255, 214, 105, 0.32);
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 214, 105, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(22, 40, 68, 0.94), rgba(6, 12, 24, 0.94));
}

.admin-status--studio strong {
  color: #fff8c8;
  font-size: 1.14rem;
  font-weight: 950;
}

.admin-status--studio span,
.admin-result,
.admin-command span,
.admin-overview-panel span,
.admin-editor-note {
  color: #b9cce3;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-result {
  padding: 12px 14px;
  border: 1px solid rgba(95, 224, 164, 0.28);
  border-radius: 8px;
  color: #d9ffe9;
  background:
    linear-gradient(135deg, rgba(95, 224, 164, 0.14), transparent 44%),
    rgba(4, 25, 20, 0.72);
}

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  gap: 10px;
  min-height: 56px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(142, 221, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 9, 19, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.admin-tabs button {
  min-height: 40px;
  min-width: 112px;
  border: 1px solid rgba(142, 221, 255, 0.18);
  border-radius: 8px;
  padding: 0 16px;
  color: #d8e9ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(12, 22, 39, 0.8);
  font-size: 0.84rem;
  font-weight: 950;
}

.admin-tabs button.is-active {
  border-color: rgba(255, 214, 105, 0.72);
  color: #fff8c8;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 105, 0.24), transparent 62%),
    linear-gradient(180deg, rgba(48, 39, 77, 0.96), rgba(12, 19, 34, 0.94));
  box-shadow:
    0 0 0 1px rgba(255, 214, 105, 0.18),
    0 0 28px rgba(255, 214, 105, 0.14);
}

.admin-overview-panel {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 18px;
}

.admin-overview-panel strong,
.admin-backlog-panel strong,
.admin-pricing-head strong,
.admin-pricing-title strong,
.admin-map-editor-head strong,
.admin-map-flow-head strong,
.admin-map-inspector > strong {
  color: #fffaf0;
  font-size: 1rem;
  font-weight: 950;
}

.admin-overview-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 10px;
}

.admin-overview-chips button {
  justify-content: space-between;
  min-height: 46px;
  border: 1px solid rgba(142, 221, 255, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  color: #e8f5ff;
  background: rgba(8, 16, 30, 0.74);
  font-weight: 900;
  text-align: left;
}

.admin-overview-chips button span {
  display: inline-flex;
  min-width: 30px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border-radius: 999px;
  color: #06101f;
  background: #ffd669;
  font-size: 0.72rem;
}

.admin-overview-chips button.is-active {
  border-color: rgba(255, 214, 105, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 214, 105, 0.15), rgba(122, 215, 255, 0.07)),
    rgba(15, 24, 42, 0.9);
}

.admin-studio-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.58fr) minmax(320px, 0.82fr) minmax(620px, 1.7fr);
  gap: 16px;
  min-height: 620px;
  overflow: visible;
  padding-bottom: 0;
}

.admin-section-list,
.admin-record-list,
.admin-editor {
  min-width: 0;
  max-height: min(68vh, 720px);
}

.admin-section-list,
.admin-record-list {
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.admin-section-list button,
.admin-record-list button,
.admin-hierarchy-col button,
.admin-map-flow-col button,
.admin-backlog-card {
  min-width: 0;
}

.admin-section-list button,
.admin-record-list button,
.admin-hierarchy-col button {
  min-height: 62px;
  border: 1px solid rgba(142, 221, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  color: #eaf6ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(8, 16, 30, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-section-list button:hover,
.admin-record-list button:hover,
.admin-hierarchy-col button:hover,
.admin-overview-chips button:hover,
.admin-map-toolbar button:hover,
.admin-terrain-palette button:hover,
.admin-object-palette button:hover {
  border-color: rgba(142, 221, 255, 0.38);
  background-color: rgba(18, 36, 62, 0.9);
}

.admin-section-list button.is-active,
.admin-record-list button.is-active,
.admin-hierarchy-col button.is-active,
.admin-map-flow-col button.is-active {
  border-color: rgba(255, 214, 105, 0.62);
  color: #fff8c8;
  background:
    radial-gradient(circle at 16px 0%, rgba(255, 214, 105, 0.2), transparent 54%),
    rgba(21, 27, 49, 0.96);
}

.admin-section-list strong,
.admin-record-list strong,
.admin-hierarchy-col strong,
.admin-editor strong {
  color: #f8fbff;
  font-size: 0.92rem;
  font-weight: 950;
}

.admin-section-list span,
.admin-record-list span,
.admin-hierarchy-col span,
.admin-editor span,
.admin-map-flow-col button em {
  color: #a9bfd8;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.38;
}

.admin-record-head,
.admin-editor-head {
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(142, 221, 255, 0.12);
}

.admin-record-head {
  position: sticky;
  top: -12px;
  margin: -12px -12px 2px;
  padding: 14px 12px;
  background:
    linear-gradient(180deg, rgba(8, 16, 30, 0.98), rgba(8, 16, 30, 0.92));
}

.admin-record-search,
.admin-json-editor,
.admin-upload-panel input[type="text"],
.admin-upload-panel input[type="file"],
.admin-pricing-control input,
.admin-pricing-control select,
.admin-map-editor-head select,
.admin-map-inspector select,
.admin-map-point-grid input,
.admin-terrain-palette-head select {
  border: 1px solid rgba(142, 221, 255, 0.22);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(3, 8, 18, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.admin-record-search {
  min-height: 44px;
  padding: 0 12px;
}

.admin-editor {
  grid-template-rows: auto minmax(470px, 1fr) auto auto;
  gap: 14px;
  padding: 16px;
}

.admin-editor--asset {
  grid-template-rows: auto auto minmax(420px, 1fr) auto auto;
}

.admin-json-editor {
  min-height: 470px;
  padding: 16px;
  color: #f2f8ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(1, 5, 12, 0.94);
  font-size: 0.88rem;
  line-height: 1.52;
}

.admin-editor-actions,
.admin-asset-actions,
.admin-pricing-buttons,
.admin-map-actions {
  gap: 10px;
}

.admin-editor-actions button,
.admin-asset-actions button,
.admin-pricing-buttons button,
.admin-map-actions button {
  min-height: 42px;
}

.admin-asset-tools,
.admin-upload-panel,
.admin-pricing-card,
.admin-map-inspector,
.admin-map-field,
.admin-map-selected,
.admin-map-material-summary,
.admin-completeness {
  border-color: rgba(142, 221, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%),
    rgba(5, 12, 24, 0.72);
}

.admin-backlog-panel,
.admin-pricing-panel,
.admin-map-visualizer,
.admin-map-flow,
.admin-hierarchy,
.admin-quick-panel {
  gap: 16px;
  padding: 18px;
}

.admin-backlog-grid,
.admin-pricing-grid {
  gap: 14px;
}

.admin-backlog-card {
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(142, 221, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 36%),
    rgba(8, 16, 30, 0.72);
}

.admin-backlog-card--high {
  border-color: rgba(255, 122, 144, 0.46);
}

.admin-backlog-card em {
  color: #8edbff;
  font-size: 0.75rem;
}

.admin-pricing-grid {
  grid-template-columns: minmax(300px, 0.72fr) minmax(620px, 1.5fr);
  overflow: visible;
}

.admin-pricing-card {
  padding: 16px;
}

.admin-pricing-card--wide {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.admin-pricing-control {
  color: #8edbff;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-pricing-control input,
.admin-pricing-control select {
  min-height: 44px;
  padding: 0 12px;
}

.admin-map-visualizer {
  gap: 16px;
  padding: 18px;
}

.admin-map-editor-head,
.admin-map-flow-head {
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(142, 221, 255, 0.12);
}

.admin-map-editor-head span,
.admin-map-flow-head span,
.admin-map-actions span,
.admin-map-inspector > span {
  color: #a9bfd8;
  font-size: 0.8rem;
  line-height: 1.42;
}

.admin-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.admin-map-toolbar > button {
  flex: 0 0 auto;
  min-width: 112px;
}

.admin-map-toolbar button,
.admin-terrain-palette button,
.admin-object-palette button,
.admin-map-flow-col button {
  min-height: 42px;
  border-radius: 8px;
  padding: 9px 12px;
  color: #eaf6ff;
  background: rgba(8, 16, 30, 0.74);
}

.admin-map-toolbar button.is-active,
.admin-terrain-palette button.is-active,
.admin-object-palette button.is-active,
.admin-map-flow-col button.is-active {
  border-color: rgba(255, 214, 105, 0.68);
  color: #fff8c8;
  box-shadow:
    0 0 0 1px rgba(255, 214, 105, 0.18),
    0 0 22px rgba(255, 214, 105, 0.12);
}

.admin-map-zoom,
.admin-map-brush-tools,
.admin-map-overlay-tools,
.admin-map-history-tools {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 46px;
  gap: 8px;
  padding: 6px;
  border-color: rgba(142, 221, 255, 0.14);
  background: rgba(3, 8, 18, 0.62);
}

.admin-map-brush-tools label,
.admin-map-zoom strong {
  white-space: nowrap;
}

.admin-terrain-palette,
.admin-object-palette {
  gap: 12px;
  padding: 14px;
}

.admin-terrain-palette-head {
  gap: 18px;
}

.admin-terrain-palette-head strong {
  color: #fff8c8;
  font-size: 0.9rem;
}

.admin-terrain-palette-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.admin-terrain-palette-grid button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: 10px;
  min-height: 58px;
}

.admin-terrain-palette-grid button b {
  grid-row: 1 / 3;
}

.admin-terrain-palette-grid button span,
.admin-terrain-palette-grid button em {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.admin-map-stage {
  grid-template-columns: minmax(680px, 1fr) minmax(340px, 390px);
  gap: 16px;
}

.admin-map-canvas-wrap {
  border-color: rgba(142, 221, 255, 0.2);
  border-radius: 8px;
  background: #050b16;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.admin-map-canvas {
  height: min(64vh, 760px);
}

.admin-map-inspector {
  gap: 12px;
  padding: 14px;
}

.admin-map-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-map-stat-grid span,
.admin-map-selected,
.admin-map-field {
  gap: 6px;
  padding: 10px;
  color: #a9bfd8;
  font-size: 0.78rem;
}

.admin-map-stat-grid b,
.admin-map-selected strong,
.admin-map-field span {
  color: #f8fbff;
}

.admin-map-flow-cols {
  grid-template-columns: minmax(220px, 0.74fr) minmax(300px, 1.12fr) minmax(260px, 0.86fr);
  gap: 14px;
}

.admin-map-flow-col {
  gap: 10px;
  padding: 14px;
}

.admin-map-flow-col > strong,
.admin-map-material-summary > strong,
.admin-hierarchy-col > strong {
  color: #fff8c8;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-world-drop {
  min-height: 136px;
  border-color: rgba(255, 214, 105, 0.44);
  border-radius: 8px;
}

.admin-quick-panel {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-command {
  min-height: 92px;
  padding: 16px;
  color: #eaf6ff;
}

@media (max-width: 1320px) {
  .admin-studio-grid,
  .admin-map-stage,
  .admin-map-flow-cols,
  .admin-pricing-grid,
  .admin-pricing-card--wide {
    grid-template-columns: 1fr;
  }

  .admin-section-list,
  .admin-record-list,
  .admin-editor {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .admin-dialog {
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
  }

  .admin-dialog form {
    padding: 12px;
    gap: 12px;
  }

  .admin-overview-panel,
  .admin-map-editor-head,
  .admin-map-flow-head,
  .admin-map-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-map-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-map-canvas {
    height: 420px;
  }
}

@media (max-width: 1080px) {
  .ability-bar {
    gap: 7px;
  }

  .ability-button {
    width: 74px;
  }
}

@media (max-width: 820px) {
  .gear-dialog,
  .shop-dialog {
    position: fixed;
    top: 16px;
    left: 12px;
    width: min(358px, calc(100vw - 24px));
    max-width: min(358px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    margin: 0;
  }

  .gear-dialog form,
  .shop-dialog form {
    padding: 14px;
  }

  .admin-dialog .settings-list {
    max-height: calc(100vh - 176px);
  }

  .admin-status--studio,
  .admin-studio-grid,
  .admin-hierarchy-cols,
  .admin-quick-panel {
    grid-template-columns: 1fr;
  }

  .admin-section-list,
  .admin-record-list {
    max-height: 210px;
  }

  .admin-editor {
    grid-template-rows: auto minmax(300px, 1fr) auto auto;
  }

  .admin-json-editor {
    min-height: 300px;
  }

  .dialog-head strong {
    font-size: 1.08rem;
  }

  .shop-note {
    font-size: 0.82rem;
  }

  .codex-list {
    grid-template-columns: 1fr;
    max-height: min(68vh, 620px);
  }

  .codex-card {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 124px;
    gap: 8px;
    padding: 10px;
  }

  .codex-card canvas {
    width: 68px;
    height: 84px;
  }

  .codex-card strong {
    font-size: 0.94rem;
  }

  .codex-card p {
    margin-top: 4px;
    font-size: 0.74rem;
  }
}

@media (max-width: 720px) {
  .game-shell {
    min-height: 600px;
  }

  .save-slot-list {
    grid-template-columns: 1fr;
  }

  .save-panel-head {
    display: grid;
  }

  .topbar {
    min-height: 44px;
    left: 10px;
    right: 10px;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand strong {
    display: none;
  }

  .pill {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .build-pill {
    display: none;
  }

  .profile-panel,
  .battle-panel {
    display: none;
  }

  .minimap-panel {
    top: 58px;
    right: 10px;
    width: 142px;
    padding: 8px;
  }

  .minimap-head span {
    display: none;
  }

  .buff-tray {
    left: 14px;
    bottom: 278px;
    width: min(260px, calc(100vw - 180px));
  }

  .buff-icon {
    width: 32px;
    height: 32px;
  }

  .combat-feed {
    top: 104px;
    width: min(310px, calc(100vw - 184px));
  }

  .chat-panel,
  .zoom-panel {
    display: none;
  }

  .chat-panel.is-mobile-open {
    display: grid;
    left: 14px;
    right: 14px;
    bottom: 158px;
    width: auto;
    z-index: 7;
  }

  .quest-panel {
    left: 14px;
    right: 14px;
    bottom: 154px;
    width: auto;
    max-width: calc(100vw - 28px);
    min-width: 0;
  }

  .quest-panel span {
    font-size: 0.78rem;
  }

  .ability-bar {
    right: 14px;
    left: 14px;
    width: auto;
    bottom: 14px;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    transform: none;
  }

  .ability-button {
    flex: 1 1 62px;
    width: auto !important;
    min-width: 0;
    max-width: 86px;
    min-height: 64px;
  }

  .ability-button span {
    font-size: 1.35rem;
  }

  .ability-button b {
    font-size: 0.62rem;
  }

  .shop-list {
    grid-template-columns: 1fr;
  }

  .stable-hero,
  .race-card {
    grid-template-columns: 1fr;
  }

  .stable-unicorn-preview {
    width: 72px;
    height: 72px;
  }

  .stable-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }
}

@media (min-width: 981px) {
  .ability-bar {
    bottom: 14px;
    width: min(1320px, calc(100vw - 32px));
    gap: 8px;
    padding: 8px;
    z-index: 6;
  }

  .ability-button {
    width: 78px;
    min-height: 68px;
  }

  .ability-button b {
    font-size: 0.7rem;
  }

  .quest-panel {
    bottom: 116px;
    width: min(520px, calc(100vw - 780px));
    z-index: 5;
  }

  .minimap-panel {
    z-index: 7;
  }

  .roster-panel {
    top: 426px;
    z-index: 5;
    max-height: 176px;
    overflow: auto;
  }

  .chat-panel {
    z-index: 6;
  }
}

/* v53 premium launch screen */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: block;
  overflow: hidden;
  min-height: 100dvh;
  color: #fffaf0;
  isolation: isolate;
  background: #07111f;
  transition: opacity 520ms cubic-bezier(.2, .85, .22, 1), transform 520ms cubic-bezier(.2, .85, .22, 1);
}

.splash-screen::before {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.98), rgba(4, 8, 18, 0.7) 34%, rgba(4, 8, 18, 0.2) 68%, rgba(4, 8, 18, 0.56)),
    linear-gradient(180deg, rgba(8, 18, 38, 0.16), rgba(5, 8, 18, 0.9)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat;
  filter: saturate(1.24) contrast(1.08);
  transform: scale(1.03);
  animation: splashMapPan 16s ease-in-out infinite alternate;
  z-index: -3;
}

.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 16, 0.9), rgba(3, 7, 16, 0.38) 48%, rgba(3, 7, 16, 0.72)),
    linear-gradient(180deg, rgba(255, 244, 190, 0.08), transparent 38%, rgba(0, 0, 0, 0.36));
  pointer-events: none;
  z-index: -1;
}

.splash-screen.is-hidden {
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
}

.splash-copy {
  position: absolute;
  z-index: 4;
  top: 51%;
  left: min(7vw, 96px);
  width: min(670px, calc(100vw - 48px));
  text-align: left;
  text-shadow: 0 7px 28px rgba(0, 0, 0, 0.62);
  transform: translateY(-50%);
}

.splash-copy h1 {
  display: grid;
  gap: 2px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: 0;
  color: #fff6cb;
}

.splash-copy h1 span {
  font-size: clamp(2.45rem, 4.5vw, 4.35rem);
}

.splash-copy h1 strong {
  font-size: clamp(3.25rem, 7vw, 6.35rem);
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 10%, #fff1a8 42%, #7be8ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.56));
}

.splash-copy p {
  width: min(560px, 100%);
  margin: 18px 0 30px;
  color: #fff8d8;
  font-size: 1.16rem;
  font-weight: 850;
  line-height: 1.46;
}

.splash-copy .eyebrow {
  display: inline-flex;
  width: auto;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(153, 225, 255, 0.38);
  border-radius: 8px;
  background: rgba(5, 13, 28, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 34px rgba(0, 0, 0, 0.22);
  color: #bff3ff;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.splash-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.splash-actions .primary-button,
.splash-copy .primary-button.splash-play-button {
  position: relative;
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-width: 292px;
  min-height: 82px;
  padding: 15px 34px 14px;
  border: 1px solid rgba(255, 249, 202, 0.96);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #fff08a, #ff69b4 50%, #6d65ff);
  color: #140820;
  box-shadow:
    0 24px 58px rgba(255, 92, 168, 0.34),
    0 0 0 6px rgba(255, 232, 116, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.58),
    inset 0 -10px 24px rgba(46, 13, 88, 0.28);
  text-shadow: none;
  transform: translateY(0);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.splash-copy .primary-button.splash-play-button span {
  font-size: 1.22rem;
  font-weight: 1000;
  line-height: 1;
}

.splash-copy .primary-button.splash-play-button small {
  color: rgba(20, 8, 32, 0.76);
  font-size: 0.78rem;
  font-weight: 950;
}

.splash-copy .primary-button.splash-play-button:hover {
  filter: brightness(1.08) saturate(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 30px 70px rgba(255, 92, 168, 0.42),
    0 0 0 7px rgba(255, 232, 116, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.64),
    inset 0 -10px 24px rgba(46, 13, 88, 0.22);
}

.splash-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}

.splash-scene::before {
  content: "";
  position: absolute;
  left: 28%;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(3, 8, 17, 0.74));
}

.splash-character,
.splash-landmark {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.52));
  user-select: none;
}

.splash-landmark--city {
  right: min(23vw, 330px);
  bottom: 18%;
  width: clamp(190px, 22vw, 360px);
  opacity: 0.74;
  transform: rotate(-2deg);
}

.splash-landmark--portal {
  right: min(4vw, 74px);
  bottom: 26%;
  width: clamp(118px, 13vw, 210px);
  opacity: 0.86;
  animation: splashFloat 5.8s ease-in-out infinite alternate;
}

.splash-character--dragon {
  right: min(7vw, 118px);
  bottom: 12%;
  width: clamp(270px, 31vw, 510px);
  animation: splashFloat 6.4s ease-in-out infinite alternate;
}

.splash-character--star {
  right: min(34vw, 545px);
  bottom: 9%;
  width: clamp(205px, 22vw, 340px);
  animation: splashFloat 5.4s ease-in-out infinite alternate-reverse;
}

.splash-character--spider {
  right: min(22vw, 350px);
  bottom: 4%;
  width: clamp(190px, 20vw, 320px);
  animation: splashFloat 6.8s ease-in-out infinite alternate;
}

.splash-character--unicorn {
  right: min(1vw, 22px);
  bottom: 2%;
  width: clamp(170px, 19vw, 310px);
  animation: splashFloat 5.2s ease-in-out infinite alternate-reverse;
}

@keyframes splashMapPan {
  from { transform: scale(1.03) translate3d(-1.2%, 0, 0); }
  to { transform: scale(1.08) translate3d(1.2%, -1%, 0); }
}

@keyframes splashFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -10px, 0); }
}

@media (max-width: 980px) {
  .splash-copy {
    top: 8%;
    left: 24px;
    right: 24px;
    width: auto;
    text-align: center;
    transform: none;
  }

  .splash-copy .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .splash-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .splash-copy h1 span {
    font-size: 3rem;
  }

  .splash-copy h1 strong {
    font-size: 4.1rem;
  }

  .splash-character--dragon {
    right: 10%;
    bottom: 11%;
    width: 320px;
  }

  .splash-character--star {
    left: 6%;
    right: auto;
    bottom: 7%;
    width: 220px;
  }

  .splash-character--spider {
    right: 34%;
    bottom: 1%;
    width: 210px;
  }

  .splash-character--unicorn,
  .splash-landmark--city {
    display: none;
  }
}

@media (max-width: 560px) {
  .splash-copy {
    top: 7%;
  }

  .splash-copy h1 span {
    font-size: 2.2rem;
  }

  .splash-copy h1 strong {
    font-size: 3rem;
  }

  .splash-copy p {
    font-size: 1rem;
  }

  .splash-copy .primary-button.splash-play-button {
    min-width: min(100%, 288px);
  }

  .splash-character--dragon {
    right: 2%;
    bottom: 11%;
    width: 260px;
  }

  .splash-character--star {
    left: -4%;
    bottom: 8%;
    width: 190px;
  }

  .splash-character--spider {
    right: 22%;
    width: 180px;
  }
}

.travel-transition {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 38%, rgba(69,183,255,.28), transparent 28%),
    linear-gradient(180deg, rgba(5,8,18,.92), rgba(19,29,56,.96));
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.travel-transition.is-active {
  opacity: 1;
}

.transition-card,
.travel-transition__copy {
  width: min(760px, calc(100vw - 36px));
  text-align: center;
  padding: 42px 34px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15,28,52,.78), rgba(8,12,26,.92));
  box-shadow: 0 26px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.18);
}

.transition-card strong,
.travel-transition__copy strong {
  display: block;
  margin-bottom: 12px;
  font: 900 clamp(2rem, 4vw, 3.4rem)/1 Georgia, "Times New Roman", serif;
}

.transition-card span,
.travel-transition__copy span {
  display: block;
  color: #dff7ff;
  font-size: 1.08rem;
  line-height: 1.55;
}

.transition-rune,
.travel-transition__art {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 22px;
  background: conic-gradient(#ff2f9f, #ffd000, #21e85c, #00c8ff, #7b3cff, #ff2f9f);
  box-shadow: 0 0 34px rgba(69,183,255,.65);
  animation: runeSpin 3.2s linear infinite;
}

.death-overlay {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 216, 79, 0.22), transparent 20%),
    radial-gradient(circle at 42% 42%, rgba(214, 108, 255, 0.22), transparent 27%),
    linear-gradient(180deg, rgba(6, 10, 21, 0.84), rgba(8, 15, 31, 0.92));
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.death-overlay.is-active {
  opacity: 1;
}

.death-overlay__copy {
  width: min(620px, calc(100vw - 36px));
  text-align: center;
  padding: 34px 30px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.1), transparent 35%),
    linear-gradient(180deg, rgba(16, 28, 54, 0.86), rgba(7, 12, 25, 0.94));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.death-overlay__copy strong {
  display: block;
  margin-bottom: 10px;
  color: #fff7b6;
  font: 900 clamp(2rem, 4vw, 3.2rem)/1 Georgia, "Times New Roman", serif;
  text-shadow: 0 0 24px rgba(255, 216, 79, 0.28);
}

.death-overlay__copy span {
  display: block;
  color: #dff7ff;
  font-size: 1rem;
  line-height: 1.5;
}

.death-overlay__burst {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, #ff2f9f, #ffd000, #21e85c, #00c8ff, #7b3cff, #ff2f9f);
  filter: blur(18px);
  opacity: 0.38;
  animation: sparkleReset 1.4s ease-in-out infinite alternate;
}

@keyframes sparkleReset {
  from { transform: scale(0.82) rotate(0deg); opacity: 0.24; }
  to { transform: scale(1.18) rotate(28deg); opacity: 0.42; }
}

.damage-flash {
  position: fixed;
  inset: 0;
  z-index: 28;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(255,40,74,.34) 76%, rgba(255,40,74,.62)),
    linear-gradient(180deg, rgba(255,40,74,.14), transparent 48%, rgba(255,40,74,.2));
  transition: opacity 220ms ease;
}

.damage-flash.is-active {
  opacity: 1;
  animation: damagePulse 760ms ease-out both;
}

.hud.is-taking-damage .battle-panel,
.hud.is-taking-damage .target-panel,
.hud.is-taking-damage .ability-bar {
  box-shadow: 0 0 0 1px rgba(255,90,112,.65), 0 0 38px rgba(255,55,82,.28);
}

.save-slot-list {
  display: block;
  overflow-x: auto;
  padding-bottom: 4px;
}

.save-slot-table {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
  min-width: 840px;
}

.save-slot-row {
  display: grid;
  grid-template-columns: 66px minmax(170px, .95fr) 96px 106px minmax(210px, 1.2fr) 76px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 9px 12px;
  border-radius: 8px;
}

.save-slot-row--head {
  min-height: 34px;
  color: #9fdcff;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.save-slot-card.save-slot-row {
  border: 1px solid rgba(159,220,255,.24);
  color: #effaff;
  text-align: left;
  background: linear-gradient(145deg, rgba(13,25,45,.72), rgba(8,13,28,.86));
}

.save-slot-card.save-slot-row.is-selected {
  border-color: rgba(255,216,79,.78);
  box-shadow: 0 0 26px rgba(255,216,79,.16);
}

.save-slot-card.save-slot-row .save-slot-index {
  grid-column: auto;
  align-self: center;
}

.save-slot-hero {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
}

.save-slot-hero .save-slot-avatar {
  grid-row: 1 / 3;
}

.save-slot-hero strong,
.save-slot-row strong {
  color: #fffaf0;
  line-height: 1.05;
}

.save-slot-row > span,
.save-slot-hero strong,
.save-slot-hero em,
.save-slot-row strong,
.save-slot-row em {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.save-slot-hero em,
.save-slot-row em {
  display: block;
  color: #b8d6e8;
  font-style: normal;
  font-size: .78rem;
  line-height: 1.1;
}

.gear-dialog,
.admin-dialog {
  width: min(1560px, calc(100vw - 18px));
  height: min(930px, calc(100vh - 18px));
  max-width: none;
  max-height: none;
}

.gear-dialog form,
.admin-dialog form {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-dialog form {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.gear-list,
.admin-list {
  min-height: 0;
  overflow: auto;
}

.admin-dialog .settings-list.admin-list {
  display: grid;
  align-content: start;
  gap: 12px;
  height: 100%;
  max-height: none;
  min-height: 0;
  padding: 12px 10px 4px 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.gear-power-dashboard {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(360px, 1.45fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.gear-power-dashboard > * {
  border: 1px solid rgba(159,220,255,.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16,31,58,.84), rgba(7,12,27,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.gear-power-orb {
  display: grid;
  place-items: center;
  padding: 20px;
}

.gear-power-orb strong {
  font-size: 3.6rem;
  line-height: 1;
  color: #ffd84f;
}

.gear-power-orb span,
.gear-power-orb em {
  color: #9fdcff;
  font-style: normal;
  font-weight: 900;
}

.gear-stat-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
}

.gear-stat-matrix span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  color: #fffaf0;
  background: rgba(255,255,255,.06);
}

.gear-stat-matrix b {
  color: #9fdcff;
  font-size: .72rem;
}

.gear-power-dashboard p {
  margin: 0;
  padding: 18px;
  color: #d9edff;
  line-height: 1.45;
}

.gear-loadout {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.gear-combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gear-combo-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(159,220,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.gear-combo-card.is-active {
  border-color: rgba(255,216,79,.72);
  background: linear-gradient(145deg, rgba(255,216,79,.16), rgba(102,84,200,.18));
}

.gear-combo-card span {
  color: #9fdcff;
  font-weight: 900;
}

.gear-combo-card em,
.gear-combo-card small {
  color: #d9edff;
  font-style: normal;
}

.grownup-gate {
  display: grid;
  grid-template-columns: 1.15fr minmax(220px, .8fr) auto minmax(150px, .55fr) auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0 14px;
  padding: 14px;
  border: 1px solid rgba(159,220,255,.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16,31,58,.86), rgba(8,13,28,.92));
}

.grownup-gate p {
  grid-column: 1 / -1;
  margin: 0;
  color: #d9edff;
  line-height: 1.35;
}

.grownup-gate.is-verified {
  border-color: rgba(33,232,92,.55);
  box-shadow: 0 0 28px rgba(33,232,92,.12);
}

.grownup-gate input {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(159,220,255,.32);
  color: #fffaf0;
  background: rgba(5,10,22,.72);
}

.shop-preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.shop-preview-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(159,220,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.shop-preview-art {
  display: block;
  height: 88px;
  border-radius: 8px;
  background-color: rgba(69,183,255,.1);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.shop-preview-card strong {
  color: #fffaf0;
}

.shop-preview-card em {
  color: #ffd84f;
  font-style: normal;
  font-weight: 900;
}

.hint-gate-note {
  margin: 6px 0;
  color: #d9edff;
}

.admin-backlog-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(159,220,255,.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16,31,58,.86), rgba(8,13,28,.92));
}

.admin-backlog-panel strong {
  color: #fffaf0;
}

.admin-backlog-panel span {
  color: #b8d6e8;
}

.admin-backlog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.admin-backlog-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(159,220,255,.18);
  background: rgba(255,255,255,.055);
  cursor: pointer;
}

.admin-backlog-card--high {
  border-color: rgba(255,122,144,.54);
}

.admin-backlog-card em {
  color: #9fdcff;
  font-style: normal;
  word-break: normal;
  white-space: nowrap;
}

.admin-pricing-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(159,220,255,.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16,31,58,.88), rgba(8,13,28,.94));
}

.admin-pricing-head strong,
.admin-pricing-title strong {
  display: block;
  color: #fffaf0;
}

.admin-pricing-head span,
.admin-pricing-title span,
.admin-pricing-note {
  color: #b8d6e8;
}

.admin-pricing-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(560px, 1.6fr);
  gap: 12px;
  overflow-x: auto;
}

.admin-pricing-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(159,220,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.admin-pricing-card--wide {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.admin-pricing-card--wide .admin-pricing-title,
.admin-pricing-card--wide .admin-pricing-control:first-of-type,
.admin-pricing-card--wide .admin-pricing-buttons {
  grid-column: 1 / -1;
}

.admin-pricing-control {
  display: grid;
  gap: 5px;
  color: #9fdcff;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-pricing-control input,
.admin-pricing-control select {
  min-height: 40px;
  border: 1px solid rgba(159,220,255,.32);
  border-radius: 8px;
  color: #fffaf0;
  background: rgba(5,10,22,.74);
}

.admin-pricing-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pricing-buttons button,
.admin-editor-actions button,
.admin-asset-actions button,
.grownup-gate button,
.provider-row button,
.setting-action-row button {
  white-space: nowrap;
}

.admin-pricing-note {
  margin: 0;
  font-size: .84rem;
}

/* v45 text-fit pass: tables/lists scroll horizontally instead of clipping or wrapping labels. */
.quest-panel,
.gear-list,
.admin-list,
.admin-record-list,
.admin-backlog-panel,
.admin-pricing-panel,
.admin-pricing-grid {
  overflow-x: auto;
}

.quest-panel strong,
.quest-panel span,
.battle-panel strong,
.battle-panel span,
.world-map-details strong,
.world-map-details span,
.gear-item strong,
.gear-item span,
.admin-backlog-panel strong,
.admin-backlog-panel span,
.admin-backlog-card em,
.admin-pricing-head strong,
.admin-pricing-head span,
.admin-pricing-title strong,
.admin-pricing-title span,
.admin-pricing-note {
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.gear-item,
.admin-record-list button,
.admin-hierarchy-col button,
.admin-backlog-card {
  min-width: min(430px, 100%);
}

/* v57: quest card, pause state, and map editor controls. */
.quest-panel {
  overflow: visible;
  width: min(560px, calc(100vw - 700px));
  max-height: none;
  padding: 12px 14px 13px;
}

.quest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.quest-head .panel-label {
  margin: 0;
}

.quest-toggle-button {
  min-width: 58px;
  min-height: 28px;
  padding-inline: 10px;
}

.quest-body {
  display: grid;
  gap: 8px;
}

.quest-panel strong,
.quest-panel span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.quest-panel strong {
  margin-bottom: 0;
  line-height: 1.08;
}

.quest-panel span {
  line-height: 1.3;
}

/* v91: locked region gate details need room for readable level/BR guidance. */
.world-map-details span {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.32;
}

.quest-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quest-panel.is-collapsed {
  width: 184px;
  min-width: 0;
  padding-block: 10px;
}

.quest-panel.is-collapsed .quest-head {
  margin-bottom: 0;
}

.mini-button.is-active,
.pause-button.is-active {
  border-color: rgba(255, 214, 105, 0.7);
  color: #fff3a4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 0 18px rgba(255, 214, 105, 0.18);
}

body.is-game-paused .game-shell::after {
  content: "Paused";
  position: absolute;
  left: 50%;
  top: 88px;
  z-index: 8;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: 1px solid rgba(122, 215, 255, 0.42);
  border-radius: 8px;
  color: #e9faff;
  background: rgba(5, 8, 15, 0.72);
  box-shadow: 0 16px 40px rgba(0,0,0,0.34), 0 0 28px rgba(122, 215, 255, 0.16);
  font: 950 0.72rem Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.admin-map-zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(122, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 17, 0.46);
}

.admin-map-zoom strong {
  min-width: 48px;
  color: var(--hud-text, #f4f7ff);
  font-size: 0.76rem;
  text-align: center;
}

.admin-map-canvas.is-panning,
.admin-map-canvas-wrap:has(.admin-map-canvas.is-panning) {
  cursor: grabbing;
}

.admin-map-canvas--pan {
  cursor: grab;
}

.admin-map-point-field em {
  color: rgba(218, 229, 244, 0.58);
  font-size: 0.68rem;
  font-style: normal;
}

.admin-map-point-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.admin-map-point-grid input {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(122, 215, 255, 0.28);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--hud-text, #f4f7ff);
  background: rgba(5, 9, 17, 0.88);
  font-weight: 900;
}

.admin-map-toolbar {
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(122, 215, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 28, 48, 0.92), rgba(5, 9, 17, 0.72)),
    radial-gradient(circle at 12% 20%, rgba(122, 215, 255, 0.16), transparent 42%);
}

.admin-map-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.admin-map-brush-tools,
.admin-map-overlay-tools,
.admin-map-history-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(122, 215, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 17, 0.42);
}

.admin-map-brush-tools label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 8px;
  color: rgba(244, 247, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-map-brush-tools input {
  width: 100px;
  accent-color: #ffd669;
}

.admin-map-brush-tools strong {
  min-width: 18px;
  color: #fff2a8;
  text-align: center;
}

.admin-terrain-palette {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(122, 215, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(5, 9, 17, 0.64), rgba(17, 28, 48, 0.7)),
    radial-gradient(circle at top right, rgba(255, 214, 105, 0.1), transparent 45%);
}

.admin-terrain-palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-terrain-palette-head strong {
  color: #fff2a8;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.admin-terrain-palette-head span {
  color: rgba(218, 229, 244, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-terrain-palette-head div {
  display: grid;
  gap: 2px;
}

.admin-terrain-palette-head select {
  min-height: 36px;
  border: 1px solid rgba(122, 215, 255, 0.24);
  border-radius: 8px;
  padding: 0 10px;
  color: #f4f7ff;
  background: rgba(5, 9, 17, 0.9);
  font-weight: 900;
}

.admin-terrain-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.admin-terrain-palette-grid button {
  justify-content: start;
  min-height: 52px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(11, 18, 32, 0.92), rgba(18, 29, 49, 0.76)),
    radial-gradient(circle at 16px 16px, color-mix(in srgb, var(--terrain) 48%, transparent), transparent 42%);
}

.admin-terrain-palette-grid button span,
.admin-object-palette button span {
  color: #f4f7ff;
  white-space: nowrap;
}

.admin-terrain-palette-grid button em {
  display: block;
  color: rgba(218, 229, 244, 0.62);
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-map-stage {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
}

.admin-map-canvas {
  height: min(62vh, 720px);
}

.admin-map-material-summary {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-map-material-summary > strong {
  color: #fff2a8;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-map-material-summary span {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: rgba(218, 229, 244, 0.78);
  font-size: 0.7rem;
  font-weight: 850;
}

.admin-map-material-summary i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--terrain, #58c56b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), 0 0 10px color-mix(in srgb, var(--terrain) 42%, transparent);
}

.admin-map-material-summary b {
  color: #f4f7ff;
}

@keyframes splashDrift {
  from { transform: translate3d(-1%, -1%, 0) scale(1.02); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@keyframes runeSpin {
  to { transform: rotate(360deg); }
}

@keyframes damagePulse {
  0% { opacity: 0; }
  16% { opacity: 1; }
  100% { opacity: 0; }
}

/* v58: compact top chrome and draggable HUD overlays. */
.topbar {
  right: auto;
  width: max-content;
  max-width: min(620px, calc(100vw - 430px));
  min-height: 38px;
  padding: 7px 10px;
  justify-content: flex-start;
}

.topbar-pills {
  min-width: 0;
}

.pill {
  min-height: 24px;
  padding-inline: 8px;
  font-size: 0.72rem;
}

.online-pill,
#onlinePill {
  max-width: min(320px, 31vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand strong {
  display: inline;
  font-size: 0.82rem;
}

.brand-gem {
  width: 16px;
  height: 16px;
}

.zoom-panel {
  top: 14px;
  right: 14px;
  left: auto;
  display: flex;
  width: min(370px, calc(100vw - 660px));
  min-width: 290px;
  transform: none;
  z-index: 8;
}

.zoom-panel .mini-button {
  min-width: 44px;
}

.hud-drag-handle {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.is-hud-dragging {
  z-index: 12;
  cursor: grabbing;
  opacity: 0.96;
  outline: 1px solid rgba(122, 215, 255, 0.52);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.52),
    0 0 34px rgba(122, 215, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.is-custom-position {
  will-change: left, top;
}

@media (max-width: 1180px) {
  .topbar {
    max-width: min(560px, calc(100vw - 390px));
  }

  .zoom-panel {
    width: 340px;
    min-width: 260px;
  }
}

@media (max-width: 860px) {
  .topbar {
    max-width: calc(100vw - 28px);
  }

  .zoom-panel {
    top: 60px;
    right: 14px;
    width: min(340px, calc(100vw - 28px));
  }
}

@media (max-width: 980px) {
  .quest-panel {
    left: 14px;
    right: 14px;
    width: auto;
    max-width: calc(100vw - 28px);
    min-width: 0;
    transform: none;
  }

  .quest-panel.is-collapsed {
    width: 184px;
    right: auto;
  }

  .save-slot-row {
    grid-template-columns: 54px 1fr;
  }

  .save-slot-row--head {
    display: none;
  }

  .save-slot-row > span:nth-child(n+3) {
    grid-column: 2;
  }

  .gear-power-dashboard,
  .grownup-gate {
    grid-template-columns: 1fr;
  }

  .gear-loadout {
    grid-template-columns: 1fr;
  }

  .admin-pricing-grid,
  .admin-pricing-card--wide {
    grid-template-columns: 1fr;
  }
}

/* v70.1 final luminous storybook overrides. Keep this at EOF so it wins older theme layers. */
.splash-screen {
  background:
    radial-gradient(circle at 76% 18%, rgba(85, 223, 255, 0.34), transparent 34%),
    radial-gradient(circle at 48% 80%, rgba(255, 111, 174, 0.22), transparent 30%),
    linear-gradient(135deg, #1e1744 0%, #4d36ad 48%, #83e9ff 100%) !important;
}

.splash-screen::before {
  background:
    linear-gradient(90deg, rgba(30, 23, 68, 0.76), rgba(56, 32, 110, 0.42) 38%, rgba(85, 223, 255, 0.1) 72%, rgba(30, 23, 68, 0.26)),
    linear-gradient(180deg, rgba(255, 244, 216, 0.18), rgba(106, 76, 255, 0.16) 46%, rgba(30, 23, 68, 0.28)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat !important;
  filter: saturate(1.42) brightness(1.16) contrast(1.02) !important;
}

.splash-screen::after {
  background:
    radial-gradient(circle at 21% 52%, rgba(255, 216, 107, 0.18), transparent 20%),
    radial-gradient(circle at 68% 46%, rgba(85, 223, 255, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(30, 23, 68, 0.42), rgba(30, 23, 68, 0.03) 54%, rgba(30, 23, 68, 0.22)) !important;
}

.splash-copy {
  text-shadow: 0 8px 22px rgba(30, 23, 68, 0.36), 0 1px 0 rgba(255, 244, 216, 0.35) !important;
}

.gear-combo-card {
  border-color: rgba(106, 76, 255, 0.2) !important;
  background:
    radial-gradient(circle at top right, rgba(85, 223, 255, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.98), rgba(255, 244, 216, 0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 20px rgba(48, 34, 71, 0.08) !important;
}

.gear-combo-card span,
.gear-combo-card p,
.gear-combo-card em,
.gear-combo-card small {
  color: #302247 !important;
}

.gear-combo-card span {
  font-weight: 950 !important;
}

.gear-combo-card em {
  color: #5d4776 !important;
}

.gear-combo-card small {
  color: #6f5c87 !important;
}

.gear-combo-card.is-active {
  border-color: rgba(255, 216, 107, 0.92) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 107, 0.36), transparent 48%),
    linear-gradient(145deg, rgba(255, 252, 239, 1), rgba(255, 232, 185, 0.96)) !important;
}

.admin-dialog {
  background:
    radial-gradient(circle at top left, rgba(85, 223, 255, 0.22), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(255, 111, 174, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(43, 33, 91, 0.98), rgba(30, 23, 68, 0.98) 44%, rgba(69, 51, 145, 0.96)) !important;
  border-color: rgba(255, 216, 107, 0.34) !important;
  box-shadow: 0 26px 72px rgba(22, 14, 50, 0.48), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.admin-dialog :is(.admin-status, .admin-command, .admin-overview-panel, .admin-section-list, .admin-record-list, .admin-editor, .admin-hierarchy, .admin-quick-panel, .admin-backlog-panel, .admin-pricing-panel, .admin-map-visualizer, .admin-map-flow, .admin-terrain-palette) {
  background:
    radial-gradient(circle at top right, rgba(85, 223, 255, 0.1), transparent 46%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.09), rgba(16, 14, 45, 0.58)) !important;
  border-color: rgba(85, 223, 255, 0.24) !important;
}

.admin-terrain-palette-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)) !important;
}

.admin-terrain-palette-grid button {
  min-width: 0 !important;
  overflow: hidden !important;
  align-content: center !important;
}

.admin-terrain-palette-grid button span,
.admin-object-palette button span {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.08 !important;
}

.admin-terrain-palette-grid button em {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.05 !important;
}

/* v71: guided gameplay flow coach and clearer level completion pacing. */
.objective-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(106, 76, 255, 0.14);
  border: 1px solid rgba(106, 76, 255, 0.16);
  box-shadow: inset 0 1px 4px rgba(30, 23, 68, 0.14);
}

.objective-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--gk-sprite-green), var(--gk-crystal-cyan), var(--gk-glowkin-gold));
  box-shadow: 0 0 14px rgba(85, 223, 255, 0.42);
  transition: width 420ms cubic-bezier(.2,.85,.18,1);
}

.objective-progress.is-complete i {
  background: linear-gradient(90deg, var(--gk-glowkin-gold), var(--gk-soft-white));
  box-shadow: 0 0 18px rgba(255, 216, 107, 0.6);
}

.objective-meter-chips span.is-active {
  color: var(--gk-soft-white);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.92), rgba(255, 111, 174, 0.74));
  border-color: rgba(255, 216, 107, 0.7);
  box-shadow: 0 0 16px rgba(106, 76, 255, 0.26);
}

.flow-coach {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(106, 76, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 14%, rgba(85, 223, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.82), rgba(255, 244, 216, 0.66));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 12px 24px rgba(56, 32, 110, 0.12);
}

.flow-coach[hidden] {
  display: none;
}

.flow-coach-orb {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 7px;
  border-radius: 8px;
  color: var(--gk-soft-white);
  font: 950 0.8rem var(--gk-body-font);
  text-transform: uppercase;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.62), transparent 36%),
    linear-gradient(145deg, var(--gk-lantern-orange), var(--gk-glowkin-gold));
  border: 1px solid rgba(255, 244, 216, 0.64);
  box-shadow: 0 8px 18px rgba(255, 180, 94, 0.24), inset 0 -2px 8px rgba(106, 76, 255, 0.16);
}

.flow-coach-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.flow-coach-copy b,
.flow-coach-copy span,
.flow-coach-copy em {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: none;
}

.flow-coach-copy b {
  color: var(--gk-nightberry);
  font: 950 0.9rem var(--gk-title-font);
  line-height: 1.05;
}

.flow-coach-copy span {
  color: rgba(48, 34, 71, 0.82);
  font: 850 0.76rem/1.2 var(--gk-body-font);
}

.flow-coach-copy em {
  color: var(--gk-moonlit-violet);
  font-style: normal;
}

.flow-coach--battle,
.flow-coach--boss {
  border-color: rgba(255, 111, 174, 0.3);
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 111, 174, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.84), rgba(255, 229, 232, 0.7));
}

.flow-coach--portal {
  border-color: rgba(85, 223, 255, 0.38);
  animation: glowkinReadyPulse 2.5s ease-in-out infinite;
}

.flow-coach--complete {
  border-color: rgba(255, 216, 107, 0.42);
  background:
    radial-gradient(circle at 9% 14%, rgba(255, 216, 107, 0.32), transparent 38%),
    radial-gradient(circle at 90% 10%, rgba(85, 223, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.9), rgba(247, 231, 255, 0.76));
  box-shadow:
    0 18px 34px rgba(48, 34, 71, 0.18),
    0 0 34px rgba(255, 216, 107, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.toast {
  line-height: 1.22;
}

.objective-fireworks {
  position: absolute;
  inset: 0;
  z-index: 36;
  pointer-events: none;
  overflow: hidden;
}

.objective-fireworks-badge {
  position: absolute;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 44px));
  padding: 14px 24px;
  border: 1px solid rgba(255, 244, 216, 0.72);
  border-radius: 8px;
  color: var(--gk-soft-white, #fff9ef);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(135deg, rgba(255, 216, 107, 0.96), rgba(255, 111, 174, 0.92) 48%, rgba(106, 76, 255, 0.96));
  box-shadow:
    0 18px 46px rgba(56, 32, 110, 0.38),
    0 0 34px rgba(255, 216, 107, 0.42);
  font-family: var(--gk-title-font, "Trebuchet MS", sans-serif);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 2px 8px rgba(30, 23, 68, 0.42);
  animation: objectiveBadgeBloom 1.55s cubic-bezier(0.2, 1.2, 0.22, 1) both;
}

.objective-fireworks i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--spark-color, #ffd86b);
  box-shadow:
    0 0 10px var(--spark-color, #ffd86b),
    0 0 22px rgba(255, 249, 239, 0.72);
  animation: objectiveSparkFly 1.18s ease-out both;
}

.objective-fireworks i::after {
  content: "";
  position: absolute;
  inset: -5px;
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  background: var(--spark-color, #ffd86b);
}

.quest-panel.is-objective-celebrating,
.objective-meter.is-objective-celebrating {
  animation: objectivePanelFanfare 1.35s ease both;
}

.quest-panel.is-package-complete {
  border-color: rgba(255, 216, 107, 0.5);
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 216, 107, 0.26), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(85, 223, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 244, 216, 0.9));
  box-shadow:
    0 18px 38px rgba(48, 34, 71, 0.2),
    0 0 28px rgba(255, 216, 107, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.objective-meter.is-objective-celebrating .objective-progress i {
  box-shadow:
    0 0 18px rgba(255, 216, 107, 0.76),
    0 0 34px rgba(85, 223, 255, 0.42);
}

@keyframes objectiveBadgeBloom {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px) scale(0.82);
    filter: saturate(1.5) brightness(1.25);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1.08);
  }
  72% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
  }
}

@keyframes objectiveSparkFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 160px))) scale(0.95) rotate(220deg);
  }
}

@keyframes objectivePanelFanfare {
  0% {
    filter: brightness(1);
    box-shadow: 0 18px 48px rgba(56, 32, 110, 0.24);
  }
  32% {
    filter: brightness(1.12) saturate(1.18);
    box-shadow:
      0 20px 54px rgba(56, 32, 110, 0.34),
      0 0 0 4px rgba(255, 216, 107, 0.28),
      0 0 38px rgba(85, 223, 255, 0.34);
  }
  100% {
    filter: brightness(1);
  }
}

@media (max-width: 980px) {
  .flow-coach {
    gap: 8px;
    padding: 8px;
  }

  .flow-coach-orb {
    min-width: 38px;
    height: 38px;
  }
}

/* Prism Shop overhaul */
.prism-shop-dialog {
  width: min(1380px, calc(100vw - 18px));
  height: min(900px, calc(100vh - 18px));
  max-width: none;
  max-height: none;
}

.prism-shop-dialog form {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  padding: 18px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 216, 107, 0.22), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(85, 223, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96) 0, rgba(255, 244, 216, 0.9) 132px, rgba(56, 32, 110, 0.94) 133px, rgba(30, 23, 68, 0.98) 100%);
}

.prism-shop-dialog .dialog-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 216, 107, 0.22);
}

.prism-shop-dialog .dialog-head strong {
  font-family: "Nunito", "Inter", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  color: #6a4cff;
  text-shadow: 0 2px 0 rgba(255, 249, 239, 0.85), 0 0 22px rgba(255, 216, 107, 0.34);
}

.prism-shop-dialog > form > .shop-note {
  color: #4f426a;
  font-size: 0.96rem;
  padding: 10px 12px;
  border: 1px solid rgba(106, 76, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.86);
}

.shop-wallet-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-wallet-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(85, 223, 255, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 216, 107, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.11), rgba(85, 223, 255, 0.06)),
    rgba(30, 23, 68, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(30, 23, 68, 0.22);
}

.shop-wallet-card span {
  color: #9fdcff;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.shop-wallet-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff9ef;
  font-size: 1.22rem;
  line-height: 1.05;
}

.shop-wallet-card--credits strong {
  color: #ffd86b;
}

.shop-wallet-card em {
  min-width: 0;
  color: #d9edff;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.prism-shop-dialog .grownup-gate {
  grid-template-columns: minmax(230px, 1.05fr) minmax(210px, .8fr) auto minmax(150px, .58fr) auto;
  margin: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 111, 174, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(56, 32, 110, 0.86), rgba(8, 13, 28, 0.94));
}

.prism-shop-dialog .grownup-gate p {
  color: #fff9ef;
  font-weight: 900;
}

.shop-preview-strip {
  min-height: 0;
}

.prism-shop-dialog .shop-preview-strip {
  display: none;
}

.prism-shop-dialog .shop-preview-card {
  position: relative;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 112px;
  border-color: color-mix(in srgb, var(--product-accent, #55dfff) 45%, rgba(255,255,255,.2));
  background:
    radial-gradient(circle at 20% 12%, color-mix(in srgb, var(--product-accent, #55dfff) 28%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  cursor: pointer;
}

.prism-shop-dialog .shop-preview-art {
  grid-row: 1 / span 2;
  width: 86px;
  height: 86px;
  background-color: rgba(255, 249, 239, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 24px color-mix(in srgb, var(--product-accent, #55dfff) 24%, transparent);
}

.prism-shop-dialog .shop-preview-card strong,
.prism-shop-dialog .shop-preview-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.prism-shop-dialog .shop-preview-card strong {
  align-self: end;
  color: #fff9ef;
  font-size: 0.94rem;
  line-height: 1.1;
}

.prism-shop-dialog .shop-preview-card em {
  align-self: start;
  color: #ffd86b;
  font-size: 0.78rem;
}

.prism-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(390px, 1fr));
  align-content: start;
  gap: 12px;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 0 6px 8px 0;
  scrollbar-gutter: stable;
}

.prism-shop-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 4px 0 8px;
  background: linear-gradient(180deg, rgba(30, 23, 68, 0.94), rgba(30, 23, 68, 0.76));
  backdrop-filter: blur(10px);
}

.prism-shop-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(85, 223, 255, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff9ef;
  background: linear-gradient(135deg, rgba(106, 76, 255, 0.72), rgba(56, 32, 110, 0.84));
  font-weight: 950;
  cursor: pointer;
}

.prism-shop-tabs button.is-active {
  border-color: rgba(255, 216, 107, 0.82);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 216, 107, 0.32), transparent 60%),
    linear-gradient(135deg, rgba(255, 111, 174, 0.88), rgba(106, 76, 255, 0.9));
  box-shadow: 0 0 24px rgba(255, 216, 107, 0.22);
}

.prism-shop-tabs b {
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #302247;
  background: #fff4d8;
  font-size: 0.72rem;
}

.prism-product-card {
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: minmax(132px, auto) auto;
  gap: 12px;
  min-height: 286px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--product-accent, #55dfff) 45%, rgba(255,255,255,.18));
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--product-accent, #55dfff) 22%, transparent), transparent 46%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.13), rgba(255, 249, 239, 0.055)),
    rgba(30, 23, 68, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 16px 36px rgba(12, 8, 28, 0.22);
}

.prism-product-card.is-owned {
  border-color: rgba(118, 240, 161, 0.62);
  background:
    radial-gradient(circle at 0% 0%, rgba(118, 240, 161, 0.22), transparent 48%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.15), rgba(255, 249, 239, 0.06)),
    rgba(30, 23, 68, 0.74);
}

.prism-product-art {
  position: relative;
  min-height: 132px;
  border-radius: 8px;
  background-color: rgba(255, 249, 239, 0.1);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 30px color-mix(in srgb, var(--product-accent, #55dfff) 25%, transparent);
}

.prism-product-art span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  border-radius: 999px;
  padding: 5px 8px;
  color: #302247;
  background: rgba(255, 249, 239, 0.92);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: capitalize;
}

.prism-product-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.prism-product-copy strong {
  min-width: 0;
  color: #fff9ef;
  font-size: 1.08rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.prism-product-copy p {
  min-width: 0;
  color: #d9edff;
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.prism-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prism-product-chips span {
  border: 1px solid rgba(255, 216, 107, 0.25);
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff4d8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prism-product-purchase {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(130px, .34fr) minmax(160px, .44fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.prism-product-purchase .shop-price {
  color: #ffd86b;
  font-size: 1.02rem;
  line-height: 1.1;
}

.prism-product-purchase small {
  min-width: 0;
  color: #bfe9ff;
  font-weight: 850;
  line-height: 1.2;
}

.prism-product-actions {
  justify-content: flex-end;
  min-width: 0;
}

.shop-provider-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.prism-product-actions button {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  white-space: nowrap;
}

.prism-product-actions .shop-credit-button {
  background: linear-gradient(135deg, #76f0a1, #55dfff);
  color: #302247;
}

.prism-product-actions .shop-manage-button {
  background: linear-gradient(135deg, #ffd86b, #ffb45e);
  color: #302247;
}

.prism-product-actions .provider-demo {
  background: linear-gradient(135deg, #6a4cff, #ff6fae);
}

.prism-product-actions .provider-stripe {
  background: linear-gradient(135deg, #635bff, #55dfff);
}

.prism-product-actions .provider-paypal {
  background: linear-gradient(135deg, #1b74e4, #55dfff);
}

.prism-product-actions .provider-wise {
  background: linear-gradient(135deg, #2f7049, #76f0a1);
}

.prism-product-actions .provider-bitcoin {
  background: linear-gradient(135deg, #f7931a, #ffd86b);
  color: #302247;
}

.prism-product-actions button:disabled {
  opacity: 0.44;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.equipped-gear-badge {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.equipped-gear-badge img {
  position: absolute;
  inset: 4px;
  z-index: 0;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.34));
}

.equipped-gear-slot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 2;
  min-width: 16px;
  border-radius: 999px;
  padding: 2px 4px;
  color: #302247;
  background: linear-gradient(135deg, #fff9ef, #ffd86b);
  font-size: 0.55rem;
  font-weight: 950;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.credit-pack-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(250px, .74fr) minmax(0, 1.5fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 216, 107, 0.5);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 216, 107, 0.34), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(85, 223, 255, 0.23), transparent 48%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.92), rgba(30, 23, 68, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(12, 8, 28, 0.28);
}

.credit-pack-intro {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.credit-pack-intro span {
  color: #ffd86b;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.credit-pack-intro strong {
  color: #fff9ef;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.credit-pack-intro p {
  margin: 0;
  color: #dff7ff;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.36;
}

.credit-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(126px, 1fr));
  gap: 10px;
  min-width: 0;
}

.credit-pack-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--product-accent, #55dfff) 52%, rgba(255,255,255,.22));
  border-radius: 8px;
  padding: 9px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--product-accent, #55dfff) 26%, transparent), transparent 56%),
    rgba(255, 249, 239, 0.09);
}

.credit-pack-main {
  display: grid;
  gap: 2px;
  min-height: 86px;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  color: #302247;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 54%, #ffb45e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.credit-pack-main span {
  font-size: 0.8rem;
  font-weight: 950;
}

.credit-pack-main strong {
  color: #302247;
  font-size: 1.02rem;
  line-height: 1.05;
}

.credit-pack-main em {
  color: #5c4473;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.credit-pack-card .prism-product-actions,
.credit-pack-card .shop-provider-strip {
  justify-content: stretch;
}

.shop-completion-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 216, 107, 0.56);
  border-radius: 8px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 216, 107, 0.32), transparent 36%),
    radial-gradient(circle at 94% 20%, rgba(85, 223, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(72, 44, 142, 0.94), rgba(30, 23, 68, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 36px rgba(12, 8, 28, 0.26);
}

.shop-completion-art {
  display: block;
  width: 104px;
  height: 78px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 2px rgba(255, 249, 239, 0.32), 0 0 24px rgba(255, 216, 107, 0.22);
}

.shop-completion-banner div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.shop-completion-banner span,
.shop-completion-banner em {
  color: #ffd86b;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.shop-completion-banner strong {
  color: #fff9ef;
  font: 950 1.18rem/1.08 var(--gk-title-font);
}

.shop-completion-banner p {
  margin: 0;
  color: #e8f7ff;
  font: 850 0.86rem/1.3 var(--gk-body-font);
}

.shop-completion-banner button {
  min-height: 42px;
  border: 1px solid rgba(255, 249, 239, 0.72);
  border-radius: 8px;
  padding: 0 14px;
  color: #302247;
  background: linear-gradient(135deg, #ffb45e, #ffd86b);
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.credit-pack-card .prism-product-actions {
  display: grid;
}

.credit-pack-card .shop-provider-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credit-pack-card .prism-product-actions button {
  min-width: 0;
  min-height: 30px;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prism-product-purchase .shop-price,
.shop-item .shop-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  padding: 5px 9px;
  color: #302247;
  background: linear-gradient(135deg, #fff9ef, #ffd86b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.shop-item.is-owned,
.prism-product-card.is-owned {
  color: #fff9ef;
}

.shop-item.is-owned strong,
.shop-item.is-owned p,
.shop-item.is-owned small,
.shop-item.is-owned span,
.prism-product-card.is-owned strong,
.prism-product-card.is-owned p,
.prism-product-card.is-owned small {
  color: #fff9ef;
}

.support-dialog {
  width: min(760px, calc(100vw - 28px));
}

.support-dialog form {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  gap: 12px;
  max-height: min(760px, calc(100vh - 40px));
}

.support-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 280px;
  max-height: min(52vh, 470px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(85, 223, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 17, 0.52);
}

.support-message,
.support-empty {
  display: grid;
  gap: 5px;
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.1);
  color: #fff9ef;
}

.support-message--admin {
  justify-self: start;
  border: 1px solid rgba(85, 223, 255, 0.32);
}

.support-message--player {
  justify-self: end;
  border: 1px solid rgba(255, 216, 107, 0.36);
  background: rgba(106, 76, 255, 0.28);
}

.support-message strong,
.support-empty strong {
  color: #ffd86b;
  font-size: 0.82rem;
}

.support-message span,
.support-empty span {
  color: #fff9ef;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.support-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.support-input-row input {
  min-height: 44px;
  border: 1px solid rgba(85, 223, 255, 0.3);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff9ef;
  background: rgba(5, 9, 17, 0.74);
  font-weight: 850;
}

.admin-analytics-panel {
  display: grid;
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(85, 223, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 223, 255, 0.12), transparent 42%),
    rgba(5, 9, 17, 0.7);
}

.admin-analytics-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-analytics-head strong,
.admin-support-board > strong {
  display: block;
  color: #fff9ef;
  font-size: 1rem;
}

.admin-analytics-head span,
.admin-support-board > span {
  color: rgba(231, 238, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 850;
}

.admin-analytics-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-analytics-stats b {
  display: grid;
  min-width: 78px;
  border: 1px solid rgba(255, 216, 107, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffd86b;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.admin-analytics-stats span {
  color: #dff7ff;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.admin-player-table-wrap {
  overflow: auto;
  border: 1px solid rgba(122, 215, 255, 0.16);
  border-radius: 8px;
}

.admin-player-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  color: #fff9ef;
}

.admin-player-table th,
.admin-player-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-player-table th {
  color: #ffd86b;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.admin-player-table td strong,
.admin-player-table td span {
  display: block;
}

.admin-player-table td span {
  color: rgba(231, 238, 255, 0.66);
  font-size: 0.66rem;
}

.admin-support-board {
  display: grid;
  gap: 9px;
}

.admin-payment-board {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 216, 107, 0.18);
  border-radius: 8px;
  padding: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 216, 107, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.admin-payment-board > strong {
  color: #fff9ef;
  font-size: 1rem;
}

.admin-payment-board > span {
  color: rgba(231, 238, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 8px;
  color: #302247;
  background: linear-gradient(135deg, #ffd86b, #fff9ef);
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 950;
}

.admin-payment-status--complete {
  background: linear-gradient(135deg, #76f0a1, #55dfff);
}

.admin-moderation-board {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 111, 174, 0.2);
  border-radius: 10px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 111, 174, 0.13), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(85, 223, 255, 0.12), transparent 42%),
    rgba(30, 23, 68, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-moderation-board > strong {
  color: #fff9ef;
  font-size: 1rem;
}

.admin-moderation-board > span {
  color: rgba(231, 238, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-moderation-grid {
  display: grid;
  gap: 12px;
}

.admin-moderation-grid section {
  display: grid;
  gap: 7px;
}

.admin-moderation-grid h4 {
  margin: 0;
  color: #ffd86b;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-moderation-board .admin-player-table {
  min-width: 860px;
}

.admin-ip-table {
  min-width: 560px !important;
}

.admin-chat-message-cell {
  max-width: 360px;
  color: #fff9ef !important;
  line-height: 1.35;
  white-space: normal;
}

.admin-chat-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(118, 240, 161, 0.94), rgba(85, 223, 255, 0.9));
  color: #302247;
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-support-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(122, 215, 255, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-support-card strong {
  color: #fff9ef;
}

.admin-support-card em {
  color: #ffd86b;
  font-style: normal;
}

.admin-support-card span,
.admin-support-card p {
  margin: 0;
  color: rgba(231, 238, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.admin-support-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-support-reply input {
  min-height: 36px;
  border: 1px solid rgba(85, 223, 255, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  color: #fff9ef;
  background: rgba(5, 9, 17, 0.78);
  font-weight: 850;
}

.shop-empty-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid rgba(85, 223, 255, 0.22);
  border-radius: 8px;
  color: #fff9ef;
  background: rgba(255, 255, 255, 0.07);
}

.shop-empty-card p {
  margin: 0;
  color: #d9edff;
}

@media (max-width: 1100px) {
  .shop-wallet-bar,
  .prism-shop-dialog .shop-preview-strip,
  .prism-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prism-product-purchase {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .prism-product-actions,
  .shop-provider-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .prism-shop-dialog {
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
  }

  .prism-shop-dialog form {
    grid-template-rows: auto;
    overflow: auto;
  }

  .shop-wallet-bar,
  .prism-shop-dialog .shop-preview-strip,
  .prism-shop-grid,
  .prism-product-card {
    grid-template-columns: 1fr;
  }

  .prism-shop-grid {
    overflow: visible;
    padding-right: 0;
  }

  .prism-shop-dialog .grownup-gate {
    grid-template-columns: 1fr;
  }

  .prism-shop-dialog .shop-preview-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .prism-shop-dialog .shop-preview-art {
    width: 74px;
    height: 74px;
  }
}

/* Demo sale reminder */
.sale-reminder {
  position: absolute;
  left: 50%;
  bottom: 108px;
  z-index: 43;
  display: grid;
  grid-template-columns: 64px minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(760px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 244, 216, 0.74);
  border-radius: 8px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 9% 12%, rgba(255, 216, 107, 0.36), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(85, 223, 255, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.96), rgba(56, 32, 110, 0.98) 54%, rgba(30, 23, 68, 0.98));
  box-shadow:
    0 22px 60px rgba(30, 23, 68, 0.44),
    0 0 34px rgba(255, 216, 107, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translate(-50%, 18px) scale(0.98);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.sale-reminder[hidden] {
  display: none;
}

.sale-reminder.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.sale-reminder.is-completion {
  border-color: rgba(255, 216, 107, 0.9);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 216, 107, 0.46), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(118, 240, 161, 0.2), transparent 32%),
    radial-gradient(circle at 54% 100%, rgba(255, 111, 174, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.98), rgba(56, 32, 110, 0.98) 46%, rgba(30, 23, 68, 0.98));
  box-shadow:
    0 24px 70px rgba(30, 23, 68, 0.5),
    0 0 42px rgba(255, 216, 107, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.sale-reminder.is-completion .sale-reminder-orb {
  background:
    radial-gradient(circle at 35% 26%, rgba(255,255,255,.94), transparent 18%),
    conic-gradient(from 20deg, #ffd86b, #fff9ef, #55dfff, #ff6fae, #ffd86b);
  box-shadow:
    0 0 0 4px rgba(255, 249, 239, 0.22),
    0 0 32px rgba(255, 216, 107, 0.46);
}

.sale-reminder-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 244, 216, 0.58);
  border-radius: 8px;
  color: #fff9ef;
  background: rgba(30, 23, 68, 0.62);
  font-weight: 950;
}

.sale-reminder-orb {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 26%, rgba(255,255,255,.9), transparent 18%),
    conic-gradient(from 40deg, #55dfff, #6a4cff, #ff6fae, #ffd86b, #76f0a1, #55dfff);
  box-shadow:
    0 0 0 4px rgba(255, 249, 239, 0.18),
    0 0 28px rgba(85, 223, 255, 0.38);
  transform: rotate(45deg);
}

.sale-reminder-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-right: 8px;
}

.sale-reminder-copy b {
  color: #fff9ef;
  font: 950 1rem/1.12 "Nunito", "Inter", sans-serif;
}

.sale-reminder-copy span {
  color: #d9edff;
  font: 850 0.84rem/1.25 "Nunito", "Inter", sans-serif;
}

.sale-reminder-copy em {
  color: #ffd86b;
  font: 950 0.76rem/1.1 "Nunito", "Inter", sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.sale-reminder-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 138px;
  padding-right: 26px;
}

.sale-reminder-actions button {
  min-height: 38px;
  border: 1px solid rgba(255, 244, 216, 0.68);
  border-radius: 8px;
  padding: 0 12px;
  color: #302247;
  background: linear-gradient(135deg, #ffb45e, #ffd86b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 18px rgba(30,23,68,.22);
  font-weight: 950;
  white-space: nowrap;
}

.sale-reminder-actions button + button {
  color: #fff9ef;
  background: linear-gradient(135deg, rgba(106, 76, 255, 0.82), rgba(56, 32, 110, 0.9));
}

.sale-reminder-actions button:hover,
.sale-reminder-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 216, 107, 0.22), inset 0 1px 0 rgba(255,255,255,.7);
}

@media (max-width: 780px) {
  .sale-reminder {
    grid-template-columns: 44px minmax(0, 1fr);
    bottom: 92px;
    width: min(440px, calc(100vw - 20px));
    padding: 12px;
  }

  .sale-reminder-orb {
    width: 42px;
    height: 42px;
  }

  .sale-reminder-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    padding-right: 0;
  }

  .sale-reminder-copy {
    padding-right: 28px;
  }
}

@media (max-width: 1180px) {
  .credit-pack-hero,
  .shop-completion-banner,
  .admin-analytics-head {
    grid-template-columns: 1fr;
  }

  .shop-completion-art {
    width: 100%;
    min-height: 110px;
  }

  .credit-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .credit-pack-grid,
  .credit-pack-card .shop-provider-strip,
  .support-input-row,
  .admin-support-reply {
    grid-template-columns: 1fr;
  }
}

.boss-fight-announcement {
  position: absolute;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.boss-fight-announcement[hidden] {
  display: none;
}

.boss-fight-announcement__rays {
  position: absolute;
  width: min(980px, 130vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -8deg, rgba(255, 216, 107, 0.42) 0 8deg, rgba(255, 111, 174, 0.2) 8deg 15deg, transparent 15deg 22deg),
    radial-gradient(circle, rgba(255, 249, 239, 0.58), rgba(85, 223, 255, 0.18) 32%, transparent 62%);
  filter: blur(0.2px) saturate(1.3);
  opacity: 0;
}

.boss-fight-announcement__card {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(860px, calc(100vw - 28px));
  padding: clamp(20px, 4vw, 42px);
  border: 4px solid rgba(255, 249, 239, 0.95);
  border-radius: 8px;
  color: #302247;
  text-align: center;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.92), transparent 24%),
    radial-gradient(circle at 88% 0%, rgba(85, 223, 255, 0.42), transparent 32%),
    linear-gradient(135deg, #fff4d8 0%, #ffd86b 42%, #ff6fae 74%, #6a4cff 100%);
  box-shadow:
    0 28px 80px rgba(30, 23, 68, 0.5),
    0 0 0 8px rgba(255, 216, 107, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(22px) scale(0.72) rotate(-2deg);
  opacity: 0;
}

.boss-fight-announcement__card::before,
.boss-fight-announcement__card::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 74px;
  height: 42px;
  border: 3px solid rgba(48, 34, 71, 0.18);
  border-radius: 8px 8px 18px 18px;
  background:
    radial-gradient(circle at 28% 36%, #fff9ef 0 12%, transparent 13%),
    linear-gradient(135deg, #55dfff, #6a4cff 56%, #ff6fae);
  box-shadow: 0 10px 24px rgba(48, 34, 71, 0.22);
}

.boss-fight-announcement__card::before {
  left: 18px;
  transform: rotate(-19deg);
}

.boss-fight-announcement__card::after {
  right: 18px;
  transform: rotate(19deg);
}

.boss-fight-announcement__tag {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  margin-bottom: 9px;
  padding: 4px 14px;
  border: 2px solid rgba(48, 34, 71, 0.18);
  border-radius: 999px;
  color: #fff9ef;
  background: linear-gradient(135deg, #302247, #6a4cff);
  box-shadow: 0 8px 20px rgba(48, 34, 71, 0.22);
  font-size: clamp(0.78rem, 1.7vw, 1rem);
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.boss-fight-announcement strong {
  display: block;
  max-width: 100%;
  color: #fff9ef;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: clamp(2.35rem, 7.8vw, 6.8rem);
  font-weight: 1000;
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 5px 0 #302247,
    0 10px 0 rgba(48, 34, 71, 0.32),
    0 0 24px rgba(255, 255, 255, 0.42);
  -webkit-text-stroke: 2px rgba(48, 34, 71, 0.72);
}

.boss-fight-announcement em,
.boss-fight-announcement span:last-child {
  display: block;
  max-width: min(680px, 94%);
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0;
}

.boss-fight-announcement em {
  margin-top: 14px;
  color: #302247;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52);
}

.boss-fight-announcement span:last-child {
  margin-top: 8px;
  color: rgba(48, 34, 71, 0.82);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
}

.boss-fight-announcement.is-active .boss-fight-announcement__rays {
  animation: bossFightRays 3.75s ease-out both;
}

.boss-fight-announcement.is-active .boss-fight-announcement__card {
  animation: bossFightCard 3.75s cubic-bezier(0.16, 1.1, 0.24, 1) both;
}

@keyframes bossFightRays {
  0% { opacity: 0; transform: scale(0.35) rotate(0deg); }
  12% { opacity: 1; transform: scale(0.92) rotate(12deg); }
  76% { opacity: 0.82; transform: scale(1.04) rotate(42deg); }
  100% { opacity: 0; transform: scale(1.14) rotate(62deg); }
}

@keyframes bossFightCard {
  0% { opacity: 0; transform: translateY(34px) scale(0.62) rotate(-8deg); filter: saturate(1.8) brightness(1.14); }
  10% { opacity: 1; transform: translateY(0) scale(1.1) rotate(3deg); }
  18% { transform: translateY(0) scale(0.98) rotate(-2deg); }
  26% { transform: translateY(0) scale(1.02) rotate(1deg); }
  70% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-28px) scale(0.92) rotate(1deg); filter: saturate(1.1); }
}

@media (max-width: 680px) {
  .boss-fight-announcement__card {
    padding: 18px 14px 20px;
  }

  .boss-fight-announcement__card::before,
  .boss-fight-announcement__card::after {
    width: 46px;
    height: 30px;
    top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boss-fight-announcement.is-active .boss-fight-announcement__rays,
  .boss-fight-announcement.is-active .boss-fight-announcement__card {
    animation-duration: 2ms;
  }
}

/* v101 cinematic 16:9 splash and loading presentation */
.splash-screen {
  display: grid !important;
  place-items: center !important;
  padding: clamp(14px, 2.3vw, 34px) !important;
  color: #fff9ef !important;
  background:
    radial-gradient(circle at 72% 24%, rgba(85, 223, 255, 0.24), transparent 30%),
    radial-gradient(circle at 24% 74%, rgba(255, 111, 174, 0.18), transparent 30%),
    linear-gradient(180deg, #08091c 0%, #1e1744 52%, #08091c 100%) !important;
}

.splash-screen::before {
  inset: -4% !important;
  background:
    linear-gradient(90deg, rgba(4, 7, 18, 0.78), rgba(4, 7, 18, 0.18) 42%, rgba(4, 7, 18, 0.42)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat !important;
  filter: blur(10px) saturate(1.2) brightness(0.72) !important;
  opacity: 0.9 !important;
  transform: scale(1.05) !important;
  animation: splashCinematicDrift 18s ease-in-out infinite alternate !important;
}

.splash-screen::after {
  background:
    linear-gradient(180deg, #03040d 0 7.8%, transparent 7.8% 92.2%, #03040d 92.2% 100%),
    radial-gradient(circle at 30% 48%, rgba(255, 216, 107, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(3, 4, 13, 0.78), rgba(3, 4, 13, 0.08) 48%, rgba(3, 4, 13, 0.52)) !important;
}

.splash-cinema-frame {
  position: relative;
  z-index: 1;
  width: min(96vw, calc((100dvh - 46px) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 46px);
  overflow: hidden;
  border: 1px solid rgba(255, 249, 239, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(4, 7, 18, 0.58), rgba(4, 7, 18, 0.04) 52%, rgba(4, 7, 18, 0.28)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    0 0 0 8px rgba(255, 249, 239, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -110px 120px rgba(3, 4, 13, 0.26);
  animation: splashFrameFloat 7.5s ease-in-out infinite alternate;
}

.splash-cinema-frame::before,
.splash-cinema-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-cinema-frame::before {
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.12), transparent 24%),
    radial-gradient(circle at 71% 53%, rgba(85, 223, 255, 0.26), transparent 18%);
  mix-blend-mode: screen;
}

.splash-cinema-frame::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 249, 239, 0.18), rgba(255, 255, 255, 0));
  width: 18%;
  transform: translateX(-160%) skewX(-12deg);
  animation: splashLightSweep 6.8s ease-in-out infinite;
}

.splash-cinema-glow,
.splash-cinema-sparkle {
  position: absolute;
  display: block;
  pointer-events: none;
}

.splash-cinema-glow {
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.42;
}

.splash-cinema-glow--left {
  left: -8%;
  bottom: 8%;
  background: #ff6fae;
}

.splash-cinema-glow--right {
  right: 9%;
  top: 16%;
  background: #55dfff;
}

.splash-cinema-sparkle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd86b;
  box-shadow: 0 0 20px #ffd86b;
  animation: splashSparkleFloat 4.4s ease-in-out infinite alternate;
}

.splash-cinema-sparkle--one { left: 58%; top: 24%; }
.splash-cinema-sparkle--two { left: 78%; top: 42%; animation-delay: 0.9s; }
.splash-cinema-sparkle--three { left: 48%; top: 68%; animation-delay: 1.7s; }

.splash-scene {
  display: none !important;
}

.splash-copy {
  z-index: 4 !important;
  top: 50% !important;
  left: max(28px, calc((100vw - min(96vw, calc((100dvh - 46px) * 16 / 9))) / 2 + 54px)) !important;
  width: min(560px, 42vw) !important;
  transform: translateY(-48%) !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.58) !important;
}

.splash-copy .eyebrow {
  border-color: rgba(255, 216, 107, 0.48) !important;
  color: #ffd86b !important;
  background: rgba(8, 9, 28, 0.62) !important;
  backdrop-filter: blur(8px);
}

.splash-copy h1 {
  font-family: var(--gk-title-font), "Nunito", "Inter", sans-serif !important;
  line-height: 0.94 !important;
}

.splash-copy h1 span {
  font-size: clamp(2.15rem, 4vw, 4rem) !important;
}

.splash-copy h1 strong {
  font-size: clamp(3rem, 6vw, 6.1rem) !important;
}

.splash-copy p {
  color: #fff4d8 !important;
  font-size: clamp(1rem, 1.35vw, 1.16rem) !important;
}

.splash-copy .primary-button.splash-play-button {
  min-height: 78px !important;
  border-color: rgba(255, 216, 107, 0.86) !important;
  color: #fff9ef !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 216, 107, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.96), rgba(255, 111, 174, 0.92) 54%, rgba(30, 23, 68, 0.98)) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42) !important;
  box-shadow:
    0 22px 54px rgba(255, 111, 174, 0.28),
    0 0 0 6px rgba(85, 223, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 24px rgba(0, 0, 0, 0.22) !important;
}

.splash-copy .primary-button.splash-play-button span,
.splash-copy .primary-button.splash-play-button small {
  color: #fff9ef !important;
}

.splash-copy .primary-button.splash-play-button small {
  opacity: 0.82;
}

.travel-transition {
  background:
    linear-gradient(180deg, rgba(3, 4, 13, 0.78), rgba(3, 4, 13, 0.86)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat !important;
}

.travel-transition__copy {
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  align-content: center;
  border-color: rgba(255, 216, 107, 0.42) !important;
  background:
    radial-gradient(circle at 52% 0%, rgba(85, 223, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(30, 23, 68, 0.84), rgba(8, 9, 28, 0.9)) !important;
  color: #fff9ef !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.travel-transition__copy strong,
.travel-transition__copy span {
  color: #fff9ef !important;
}

@keyframes splashCinematicDrift {
  from { transform: scale(1.05) translate3d(-0.6%, 0, 0); }
  to { transform: scale(1.09) translate3d(0.8%, -0.7%, 0); }
}

@keyframes splashFrameFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -8px, 0); }
}

@keyframes splashLightSweep {
  0%, 48% { transform: translateX(-160%) skewX(-12deg); opacity: 0; }
  60% { opacity: 0.72; }
  76%, 100% { transform: translateX(620%) skewX(-12deg); opacity: 0; }
}

@keyframes splashSparkleFloat {
  from { transform: translate3d(0, 0, 0) scale(0.72); opacity: 0.45; }
  to { transform: translate3d(0, -16px, 0) scale(1.08); opacity: 0.94; }
}

@media (max-width: 980px) {
  .splash-copy {
    left: 50% !important;
    top: 47% !important;
    width: min(720px, calc(100vw - 42px)) !important;
    text-align: center !important;
    transform: translate(-50%, -50%) !important;
  }

  .splash-copy .eyebrow {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 560px) {
  .splash-screen {
    padding: 10px !important;
  }

  .splash-cinema-frame {
    width: 100vw;
    min-height: 100dvh;
    border-radius: 0;
  }

  .splash-screen::after {
    background:
      linear-gradient(180deg, #03040d 0 5.5%, transparent 5.5% 94.5%, #03040d 94.5% 100%),
      linear-gradient(90deg, rgba(3, 4, 13, 0.72), rgba(3, 4, 13, 0.2) 50%, rgba(3, 4, 13, 0.72)) !important;
  }
}

/* v102 Glowkin Luminous Fantasy character select rebuild */
#loginScreen {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 216, 107, 0.18), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(85, 223, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #1e1744 0%, #38206e 48%, #161233 100%);
}

#loginScreen .login-card {
  width: min(1500px, calc(100vw - 34px)) !important;
  max-height: calc(100dvh - 28px) !important;
  overflow: auto !important;
  padding: clamp(16px, 2vw, 26px) !important;
  border: 1px solid rgba(255, 244, 216, 0.54) !important;
  border-radius: 8px !important;
  color: var(--gk-text-dark) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 216, 107, 0.18), transparent 34%),
    radial-gradient(circle at 100% 4%, rgba(85, 223, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.97), rgba(255, 244, 216, 0.94)) !important;
  box-shadow:
    0 30px 90px rgba(6, 4, 24, 0.44),
    0 0 0 8px rgba(255, 249, 239, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

#loginScreen .menu-copy {
  gap: 5px;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
}

#loginScreen .menu-copy .eyebrow {
  margin-bottom: 2px !important;
  border-color: rgba(106, 76, 255, 0.22) !important;
  color: var(--gk-moonlit-violet) !important;
  background: rgba(255, 255, 255, 0.56) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 18px rgba(48,34,71,.08) !important;
}

#gameTitle {
  display: grid !important;
  gap: 0 !important;
  margin: 0 !important;
  color: var(--gk-moonlit-violet) !important;
  font-family: var(--gk-title-font), "Nunito", "Inter", sans-serif !important;
  line-height: 0.92 !important;
  text-align: center !important;
  text-shadow: none !important;
}

#gameTitle span {
  color: var(--gk-pepper-pink);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

#gameTitle strong {
  color: transparent;
  background: linear-gradient(180deg, #6a4cff 0%, #302247 56%, #ff6fae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.4rem, 5.6vw, 5.45rem);
  font-weight: 1000;
  letter-spacing: 0;
  filter: drop-shadow(0 4px 0 rgba(255,255,255,.9)) drop-shadow(0 0 20px rgba(85,223,255,.18));
}

#loginScreen .subtitle {
  max-width: 760px;
  margin: 6px 0 0 !important;
  color: rgba(48, 34, 71, 0.78) !important;
  font: 900 clamp(0.95rem, 1.2vw, 1.08rem)/1.35 var(--gk-body-font) !important;
}

#loginScreen .profile-form {
  margin-top: 14px !important;
  gap: 14px !important;
}

#loginScreen .menu-layout {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: clamp(14px, 1.8vw, 22px) !important;
}

#loginScreen .menu-showcase,
#loginScreen .menu-panel,
#loginScreen .save-panel,
#loginScreen .color-picker-panel,
#loginScreen .field {
  border: 1px solid rgba(106, 76, 255, 0.18) !important;
  border-radius: 8px !important;
  color: var(--gk-text-dark) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,244,216,.42)),
    rgba(255, 249, 239, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 14px 30px rgba(48,34,71,.1) !important;
}

#loginScreen .menu-showcase {
  min-height: 0 !important;
  grid-template-rows: auto auto !important;
  align-content: start !important;
  align-self: start !important;
  overflow: hidden !important;
}

#loginScreen .menu-hero-stage {
  min-height: 292px !important;
  height: clamp(284px, 33vh, 340px) !important;
  border-radius: 8px 8px 0 0 !important;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 216, 107, 0.34), transparent 20%),
    radial-gradient(circle at 54% 42%, rgba(85, 223, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.18), rgba(255, 249, 239, 0.56)) !important;
}

#loginScreen .menu-hero-stage::before {
  left: 18% !important;
  right: 18% !important;
  bottom: 24px !important;
  height: 36px !important;
  background: radial-gradient(ellipse at center, rgba(106, 76, 255, 0.24), transparent 68%) !important;
}

#loginScreen #menuHeroCanvas {
  width: min(300px, 92%) !important;
  max-height: 318px !important;
  filter: drop-shadow(0 22px 24px rgba(48,34,71,.22));
}

#loginScreen .menu-hero-copy {
  gap: 7px !important;
  padding: 14px 16px 16px !important;
  color: var(--gk-text-dark) !important;
}

#loginScreen .menu-hero-copy strong {
  color: var(--gk-moonlit-violet) !important;
  font: 1000 1.28rem/1.05 var(--gk-title-font), "Nunito", sans-serif !important;
  text-shadow: none !important;
}

#loginScreen .menu-hero-copy span,
#loginScreen .menu-hero-copy p {
  color: rgba(48, 34, 71, 0.74) !important;
  font-size: 0.86rem !important;
}

#loginScreen .menu-hero-stats {
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 2px !important;
}

#loginScreen .menu-hero-stats div {
  padding: 8px 9px !important;
  border-color: rgba(106, 76, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

#loginScreen .menu-hero-stats dt,
#loginScreen .chooser-head span,
#loginScreen .save-panel-head span {
  color: rgba(48, 34, 71, 0.66) !important;
}

#loginScreen .menu-hero-stats dd,
#loginScreen .chooser-head strong,
#loginScreen .save-panel-head strong {
  color: var(--gk-ink-plum) !important;
}

#loginScreen .menu-panel {
  display: grid;
  gap: 12px;
  padding: 14px !important;
}

#loginScreen .save-panel {
  padding: 12px !important;
}

#loginScreen .save-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#loginScreen .save-panel-head strong,
#loginScreen .chooser-head strong {
  font: 1000 1rem/1.1 var(--gk-title-font), "Nunito", sans-serif !important;
}

#loginScreen .save-slot-list {
  display: block !important;
  overflow-x: auto !important;
  padding-bottom: 2px !important;
}

#loginScreen .save-slot-table {
  min-width: 790px !important;
  gap: 7px !important;
  margin: 10px 0 0 !important;
}

#loginScreen .save-slot-row {
  grid-template-columns: 58px minmax(170px, .95fr) 92px 102px minmax(220px, 1.25fr) 82px !important;
  gap: 9px !important;
}

#loginScreen .save-slot-row--head {
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 0 !important;
  color: var(--gk-moonlit-violet) !important;
  background: transparent !important;
  font: 1000 0.72rem/1.1 var(--gk-body-font) !important;
}

#loginScreen .save-slot-card.save-slot-row {
  min-height: 66px !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(106, 76, 255, 0.18) !important;
  color: var(--gk-text-dark) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,244,216,.48)),
    rgba(255, 249, 239, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(48,34,71,.08) !important;
}

#loginScreen .save-slot-card.save-slot-row.is-selected {
  border-color: rgba(255, 216, 107, 0.82) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 216, 107, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,244,216,.74)) !important;
  box-shadow: 0 0 0 3px rgba(255,216,107,.18), 0 12px 24px rgba(48,34,71,.12) !important;
}

#loginScreen .save-slot-index,
#loginScreen .save-slot-cell,
#loginScreen .save-slot-progress,
#loginScreen .save-slot-hero em,
#loginScreen .save-slot-row em {
  color: rgba(48, 34, 71, 0.72) !important;
  font-weight: 900 !important;
}

#loginScreen .save-slot-card strong,
#loginScreen .save-slot-hero strong,
#loginScreen .save-slot-row strong {
  color: var(--gk-ink-plum) !important;
}

#loginScreen .save-slot-avatar {
  border: 0 !important;
  background-color: transparent !important;
  background-size: contain !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
}

#loginScreen .field {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
}

#loginScreen .field span {
  color: var(--gk-moonlit-violet) !important;
  font-weight: 1000 !important;
}

#loginScreen .field input {
  min-height: 42px !important;
  border-color: rgba(106, 76, 255, 0.18) !important;
  color: var(--gk-ink-plum) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

#loginScreen .chooser-head {
  padding: 0 2px !important;
}

#loginScreen .chooser-head--compact {
  padding: 0 !important;
}

#loginScreen .chooser {
  grid-template-columns: repeat(7, minmax(86px, 1fr)) !important;
  gap: 7px 8px !important;
  padding: 2px 0 0 !important;
}

#loginScreen .avatar-choice {
  position: relative !important;
  min-height: 112px !important;
  grid-template-rows: 68px auto auto !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: var(--gk-text-dark) !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#loginScreen .avatar-choice::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 42px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--swatch) 32%, transparent), transparent 70%);
  opacity: 0.7;
  z-index: -1;
}

#loginScreen .avatar-choice:hover,
#loginScreen .avatar-choice.is-selected {
  transform: translateY(-2px) !important;
  background: transparent !important;
}

#loginScreen .avatar-choice.is-selected::before {
  left: 4%;
  right: 4%;
  top: 36px;
  height: 34px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--swatch) 54%, #fff4d8 18%), transparent 72%);
  opacity: 1;
}

#loginScreen .avatar-choice.is-selected::after {
  content: "Selected";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  min-width: 66px;
  border-radius: 999px;
  padding: 2px 8px;
  color: #302247;
  background: linear-gradient(135deg, #fff9ef, #ffd86b);
  font: 1000 0.58rem/1.1 var(--gk-body-font);
  box-shadow: 0 6px 14px rgba(48,34,71,.16);
}

#loginScreen .avatar-choice-preview {
  width: 78px !important;
  height: 68px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 12px 10px rgba(48, 34, 71, 0.2)) !important;
}

#loginScreen .avatar-choice-name {
  color: var(--gk-ink-plum) !important;
  font-size: 0.66rem !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

#loginScreen .avatar-choice-role {
  color: rgba(48, 34, 71, 0.62) !important;
  font-size: 0.56rem !important;
  line-height: 1.05 !important;
}

#loginScreen .color-picker-panel {
  display: grid;
  gap: 9px;
  padding: 10px 12px !important;
}

#loginScreen .swatches {
  justify-content: flex-start !important;
  gap: 9px !important;
}

#loginScreen .swatch {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.95), transparent 20%),
    var(--swatch) !important;
  box-shadow: 0 7px 14px rgba(48,34,71,.16), inset 0 -5px 10px rgba(0,0,0,.12) !important;
}

#loginScreen .swatch.is-selected {
  outline: 3px solid rgba(255, 216, 107, 0.72) !important;
  outline-offset: 2px !important;
  transform: translateY(-1px) scale(1.04);
}

#loginScreen .menu-actions {
  justify-content: flex-start !important;
  gap: 10px !important;
}

#loginScreen .menu-actions .primary-button,
#loginScreen .menu-actions .secondary-button {
  min-height: 46px !important;
  border-radius: 8px !important;
  font-weight: 1000 !important;
}

#loginScreen .menu-actions .primary-button {
  border-color: rgba(255, 216, 107, 0.78) !important;
  color: #fff9ef !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,216,107,.26), transparent 38%),
    linear-gradient(135deg, #6a4cff, #ff6fae 58%, #38206e) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.34) !important;
}

#loginScreen .menu-actions .secondary-button {
  color: var(--gk-moonlit-violet) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,244,216,.82)) !important;
  border-color: rgba(106, 76, 255, 0.2) !important;
}

#loginScreen .server-hint {
  color: rgba(48, 34, 71, 0.7) !important;
  font-weight: 900 !important;
}

@media (max-width: 1180px) {
  #loginScreen .menu-layout {
    grid-template-columns: 1fr !important;
  }

  #loginScreen .menu-showcase {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }

  #loginScreen .menu-hero-stage {
    border-radius: 8px 0 0 8px !important;
  }
}

@media (max-width: 760px) {
  #loginScreen .login-card {
    width: calc(100vw - 18px) !important;
    max-height: none !important;
    padding: 12px !important;
  }

  #gameTitle strong {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  #loginScreen .menu-showcase,
  #loginScreen .field {
    grid-template-columns: 1fr !important;
  }

  #loginScreen .menu-hero-stage {
    border-radius: 8px 8px 0 0 !important;
  }

  #loginScreen .chooser {
    grid-template-columns: repeat(3, minmax(84px, 1fr)) !important;
  }

  #loginScreen .menu-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #loginScreen .save-slot-table {
    min-width: 680px !important;
  }
}

/* v102.1 make character select fit a 1080p viewport without clipping the chooser/actions */
#loginScreen .login-card {
  padding: clamp(12px, 1.45vw, 20px) !important;
}

#loginScreen .menu-copy {
  gap: 2px;
}

#gameTitle span {
  font-size: clamp(1.05rem, 1.55vw, 1.45rem) !important;
}

#gameTitle strong {
  font-size: clamp(2.35rem, 4.4vw, 4.55rem) !important;
}

#loginScreen .subtitle {
  margin-top: 2px !important;
}

#loginScreen .profile-form {
  margin-top: 10px !important;
}

#loginScreen .menu-layout {
  gap: 14px !important;
}

#loginScreen .menu-hero-stage {
  min-height: 248px !important;
  height: clamp(248px, 27vh, 292px) !important;
}

#loginScreen #menuHeroCanvas {
  width: min(268px, 88%) !important;
}

#loginScreen .menu-hero-copy {
  padding: 12px 14px 14px !important;
}

#loginScreen .menu-hero-copy strong {
  font-size: 1.12rem !important;
}

#loginScreen .menu-hero-copy span,
#loginScreen .menu-hero-copy p {
  font-size: 0.8rem !important;
  line-height: 1.25 !important;
}

#loginScreen .menu-hero-stats div {
  padding: 7px 8px !important;
}

#loginScreen .menu-hero-stats dd {
  font-size: 0.7rem !important;
}

#loginScreen .menu-panel {
  gap: 9px !important;
  padding: 12px !important;
}

#loginScreen .save-panel {
  padding: 10px 12px !important;
}

#loginScreen .save-slot-table {
  gap: 5px !important;
}

#loginScreen .save-slot-row--head {
  min-height: 26px !important;
  font-size: 0.66rem !important;
}

#loginScreen .save-slot-card.save-slot-row {
  min-height: 48px !important;
  padding: 6px 10px !important;
}

#loginScreen .save-slot-row {
  grid-template-columns: 54px minmax(164px, .95fr) 86px 94px minmax(206px, 1.2fr) 76px !important;
}

#loginScreen .save-slot-avatar {
  width: 32px !important;
  height: 32px !important;
}

#loginScreen .save-slot-hero {
  grid-template-columns: 34px 1fr !important;
  column-gap: 8px !important;
}

#loginScreen .save-slot-hero strong,
#loginScreen .save-slot-row strong {
  font-size: 0.84rem !important;
}

#loginScreen .save-slot-index,
#loginScreen .save-slot-cell,
#loginScreen .save-slot-progress,
#loginScreen .save-slot-hero em,
#loginScreen .save-slot-row em {
  font-size: 0.68rem !important;
}

#loginScreen .field,
#loginScreen .color-picker-panel {
  padding: 8px 10px !important;
}

#loginScreen .field input {
  min-height: 38px !important;
}

#loginScreen .chooser {
  gap: 5px 8px !important;
}

#loginScreen .avatar-choice {
  min-height: 88px !important;
  grid-template-rows: 52px auto auto !important;
}

#loginScreen .avatar-choice-preview {
  width: 64px !important;
  height: 54px !important;
}

#loginScreen .avatar-choice::before {
  top: 32px !important;
  height: 18px !important;
}

#loginScreen .avatar-choice.is-selected::before {
  top: 28px !important;
  height: 26px !important;
}

#loginScreen .avatar-choice-name {
  font-size: 0.6rem !important;
}

#loginScreen .avatar-choice-role {
  font-size: 0.5rem !important;
}

#loginScreen .swatch {
  width: 28px !important;
  height: 28px !important;
}

#loginScreen .menu-actions .primary-button,
#loginScreen .menu-actions .secondary-button {
  min-height: 40px !important;
}

/* v102.2 final fit pass */
#loginScreen .login-card {
  padding: 10px 18px !important;
}

#loginScreen .menu-copy .eyebrow {
  min-height: 0 !important;
  padding: 4px 9px !important;
  font-size: 0.66rem !important;
}

#gameTitle span {
  font-size: clamp(0.95rem, 1.25vw, 1.24rem) !important;
}

#gameTitle strong {
  font-size: clamp(2.15rem, 3.65vw, 3.85rem) !important;
}

#loginScreen .subtitle {
  font-size: 0.92rem !important;
}

#loginScreen .profile-form {
  margin-top: 8px !important;
}

#loginScreen .menu-hero-stage {
  min-height: 230px !important;
  height: clamp(230px, 24vh, 262px) !important;
}

#loginScreen #menuHeroCanvas {
  width: min(242px, 86%) !important;
}

#loginScreen .menu-hero-copy {
  padding: 10px 13px 12px !important;
}

#loginScreen .menu-hero-stats div {
  padding: 6px 7px !important;
}

#loginScreen .save-panel {
  padding: 8px 10px !important;
}

#loginScreen .save-slot-row--head {
  min-height: 20px !important;
  font-size: 0.62rem !important;
}

#loginScreen .save-slot-card.save-slot-row {
  min-height: 39px !important;
  padding: 4px 9px !important;
}

#loginScreen .save-slot-table {
  gap: 4px !important;
  margin-top: 6px !important;
}

#loginScreen .save-slot-avatar {
  width: 27px !important;
  height: 27px !important;
}

#loginScreen .save-slot-hero {
  grid-template-columns: 29px 1fr !important;
}

#loginScreen .save-slot-hero strong,
#loginScreen .save-slot-row strong {
  font-size: 0.78rem !important;
}

#loginScreen .save-slot-index,
#loginScreen .save-slot-cell,
#loginScreen .save-slot-progress,
#loginScreen .save-slot-hero em,
#loginScreen .save-slot-row em {
  font-size: 0.62rem !important;
}

#loginScreen .field,
#loginScreen .color-picker-panel {
  padding: 7px 9px !important;
}

#loginScreen .field input {
  min-height: 34px !important;
}

#loginScreen .chooser {
  gap: 3px 8px !important;
}

#loginScreen .avatar-choice {
  min-height: 70px !important;
  grid-template-rows: 43px auto !important;
}

#loginScreen .avatar-choice-preview {
  width: 54px !important;
  height: 45px !important;
}

#loginScreen .avatar-choice-role {
  display: none !important;
}

#loginScreen .avatar-choice::before {
  top: 26px !important;
  height: 15px !important;
}

#loginScreen .avatar-choice.is-selected::before {
  top: 23px !important;
  height: 22px !important;
}

#loginScreen .avatar-choice.is-selected::after {
  bottom: -7px !important;
  padding: 1px 7px !important;
  font-size: 0.52rem !important;
}

#loginScreen .color-picker-panel {
  grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr);
  align-items: center;
}

#loginScreen .color-picker-panel .chooser-head {
  display: grid;
  gap: 2px;
}

#loginScreen .swatch {
  width: 25px !important;
  height: 25px !important;
}

#loginScreen .menu-actions {
  margin-top: -1px !important;
}

#loginScreen .server-hint {
  display: none !important;
}

/* v107 admin moderation + respawn controls */
.admin-dialog .admin-settings-panel {
  gap: 11px !important;
  padding: 14px !important;
  color: #fff9ef !important;
  border-color: rgba(85, 223, 255, 0.28) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(85, 223, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(56, 32, 110, 0.96), rgba(30, 23, 68, 0.98)) !important;
}

.admin-dialog .admin-settings-panel .gear-section-title,
.admin-dialog .admin-settings-panel strong,
.admin-dialog .admin-settings-panel em {
  color: #fff9ef !important;
}

.admin-dialog .admin-settings-panel em {
  opacity: 0.82;
}

.admin-dialog .admin-setting-row,
.admin-dialog .admin-toggle-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.15fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px !important;
  color: #fff9ef !important;
  border: 1px solid rgba(85, 223, 255, 0.22) !important;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.08), transparent 38%),
    rgba(30, 23, 68, 0.78) !important;
}

.admin-dialog .admin-setting-row > span:first-child,
.admin-dialog .admin-toggle-row > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-dialog .admin-setting-row strong,
.admin-dialog .admin-toggle-row strong {
  font-size: 0.88rem;
  white-space: normal !important;
}

.admin-dialog .admin-setting-row em,
.admin-dialog .admin-toggle-row em {
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: normal !important;
}

.admin-dialog .setting-slider-wrap {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(82px, auto);
  align-items: center;
  gap: 12px;
}

.admin-dialog .admin-setting-row input[type="range"] {
  height: 8px;
  accent-color: #55dfff !important;
}

.admin-dialog .admin-setting-row .setting-value {
  min-width: 82px;
  padding: 6px 9px;
  border: 1px solid rgba(85, 223, 255, 0.28);
  border-radius: 999px;
  color: #302247 !important;
  background: linear-gradient(135deg, #fff9ef, #bff4ff);
  font-weight: 950;
  text-align: center;
}

.admin-dialog .admin-toggle-row button {
  justify-self: end;
  display: grid;
  min-width: 132px;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 249, 239, 0.62);
  border-radius: 999px;
  color: #302247 !important;
  background: linear-gradient(135deg, #76f0a1, #55dfff);
  box-shadow:
    0 10px 24px rgba(85, 223, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.admin-dialog .admin-toggle-row button b,
.admin-dialog .admin-toggle-row button small {
  color: #302247 !important;
  line-height: 1;
}

.admin-dialog .admin-toggle-row button b {
  font-size: 0.9rem;
  font-weight: 950;
}

.admin-dialog .admin-toggle-row button small {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-dialog .admin-toggle-row.is-off button {
  color: #fff9ef !important;
  border-color: rgba(255, 249, 239, 0.22);
  background: linear-gradient(135deg, rgba(48, 34, 71, 0.92), rgba(30, 23, 68, 0.96));
}

.admin-dialog .admin-toggle-row.is-off button b,
.admin-dialog .admin-toggle-row.is-off button small {
  color: #fff9ef !important;
}

.admin-dialog .admin-player-table {
  min-width: 1280px;
}

.admin-dialog .admin-player-table th {
  color: #fff4d8 !important;
  background: rgba(30, 23, 68, 0.78) !important;
}

.admin-dialog .admin-player-table td {
  color: #fff9ef !important;
}

.admin-dialog .admin-player-table small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 249, 239, 0.72);
  font-size: 0.62rem;
  line-height: 1.15;
}

.admin-dialog .admin-status-pill {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #302247 !important;
  background: linear-gradient(135deg, #76f0a1, #fff9ef);
  font-size: 0.68rem;
  font-weight: 950;
}

.admin-dialog .admin-status-pill.is-banned {
  color: #302247 !important;
  background: linear-gradient(135deg, #ff6fae, #ffd86b);
}

.admin-dialog .mini-button.admin-ban-player {
  min-width: 76px;
  color: #302247 !important;
  border-color: rgba(255, 249, 239, 0.5);
  background: linear-gradient(135deg, #ff6fae, #ffd86b) !important;
  font-weight: 950;
}

.admin-dialog .mini-button.admin-ban-player.is-unban {
  color: #302247 !important;
  background: linear-gradient(135deg, #76f0a1, #55dfff) !important;
}

@media (max-width: 820px) {
  .admin-dialog .admin-setting-row,
  .admin-dialog .admin-toggle-row,
  .admin-dialog .setting-slider-wrap {
    grid-template-columns: 1fr;
  }

  .admin-dialog .admin-toggle-row button {
    justify-self: stretch;
  }
}

/* v109 final Glowkin polish: cinematic atlas splash, readable gold controls, relay test, and stable transition cards. */
.splash-screen {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 216, 107, 0.22), transparent 26%),
    radial-gradient(circle at 76% 24%, rgba(85, 223, 255, 0.24), transparent 30%),
    radial-gradient(circle at 54% 90%, rgba(255, 111, 174, 0.16), transparent 28%),
    linear-gradient(180deg, #08091c 0%, #21104f 48%, #08091c 100%) !important;
}

.splash-screen::before {
  inset: -3% !important;
  background:
    linear-gradient(90deg, rgba(4, 7, 18, 0.84), rgba(4, 7, 18, 0.2) 40%, rgba(4, 7, 18, 0.5)),
    url("assets/png/maps/world/prismworlds-atlas-underlay.png?v=110") center / cover no-repeat !important;
  filter: saturate(1.18) contrast(1.04) brightness(0.8) blur(3px) !important;
  opacity: 0.92 !important;
  transform: scale(1.04) !important;
  animation: splashCinematicDrift 24s ease-in-out infinite alternate !important;
}

.splash-screen::after {
  background:
    linear-gradient(180deg, #03040d 0 8%, transparent 8% 92%, #03040d 92% 100%),
    radial-gradient(circle at 70% 42%, rgba(85, 223, 255, 0.15), transparent 20%),
    linear-gradient(90deg, rgba(3, 4, 13, 0.8), rgba(3, 4, 13, 0.06) 50%, rgba(3, 4, 13, 0.58)) !important;
}

.splash-cinema-frame {
  border-color: rgba(255, 244, 216, 0.44) !important;
  background:
    linear-gradient(90deg, rgba(4, 7, 18, 0.62), rgba(4, 7, 18, 0.04) 50%, rgba(4, 7, 18, 0.3)),
    radial-gradient(circle at 66% 38%, rgba(85, 223, 255, 0.2), transparent 22%),
    url("assets/png/maps/world/prismworlds-atlas-underlay.png?v=110") center / cover no-repeat !important;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(255, 249, 239, 0.045),
    0 0 60px rgba(85, 223, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -120px 130px rgba(3, 4, 13, 0.34) !important;
}

.splash-copy {
  width: min(620px, 43vw) !important;
}

.splash-copy .eyebrow {
  color: #fff4d8 !important;
  border-color: rgba(255, 216, 107, 0.56) !important;
  background: linear-gradient(135deg, rgba(30, 23, 68, 0.74), rgba(106, 76, 255, 0.48)) !important;
}

.splash-copy h1 span,
.splash-copy h1 strong {
  color: #fff9ef !important;
  text-shadow:
    0 4px 0 rgba(48, 34, 71, 0.34),
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(85, 223, 255, 0.22) !important;
}

.splash-copy h1 strong {
  background: linear-gradient(180deg, #fff9ef 0%, #ffd86b 48%, #ffb45e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.splash-copy .splash-tagline {
  max-width: 560px;
  color: #fff4d8 !important;
  font-weight: 900 !important;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.72) !important;
}

.splash-copy .primary-button.splash-play-button,
.splash-copy .primary-button.splash-play-button:hover {
  color: #fff9ef !important;
  border-color: rgba(255, 244, 216, 0.82) !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 249, 239, 0.34), transparent 38%),
    linear-gradient(135deg, #6a4cff 0%, #ff6fae 50%, #302247 100%) !important;
}

.splash-copy .primary-button.splash-play-button span,
.splash-copy .primary-button.splash-play-button small {
  color: #fff9ef !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42) !important;
}

.travel-transition {
  background:
    linear-gradient(180deg, rgba(3, 4, 13, 0.78), rgba(3, 4, 13, 0.88)),
    url("assets/png/maps/world/prismworlds-atlas-underlay.png?v=110") center / cover no-repeat !important;
}

.travel-transition__copy {
  width: min(880px, calc(100vw - 34px)) !important;
  aspect-ratio: 16 / 6.8 !important;
  padding: clamp(24px, 4vw, 52px) !important;
  border-color: rgba(255, 216, 107, 0.58) !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 216, 107, 0.24), transparent 36%),
    radial-gradient(circle at 92% 18%, rgba(85, 223, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(30, 23, 68, 0.9), rgba(8, 9, 28, 0.94)) !important;
}

.travel-transition__copy strong {
  color: #ffd86b !important;
  font-size: clamp(1.8rem, 4.4vw, 4.4rem) !important;
  text-align: center;
}

.travel-transition__copy span {
  max-width: 720px;
  color: #fff9ef !important;
  font-size: clamp(1rem, 1.55vw, 1.3rem) !important;
  line-height: 1.36 !important;
  text-align: center;
}

.admin-dialog .admin-email-test-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.2fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 216, 107, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 216, 107, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.1), rgba(30, 23, 68, 0.78));
}

.admin-dialog .admin-email-test-copy {
  display: grid;
  gap: 4px;
}

.admin-dialog .admin-email-test-copy strong {
  color: #ffd86b !important;
  font-size: 1rem;
}

.admin-dialog .admin-email-test-copy span {
  color: #fff9ef !important;
  font-weight: 850;
  line-height: 1.32;
}

.admin-dialog .admin-email-test-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, auto);
  gap: 10px;
  align-items: stretch;
}

.admin-dialog .admin-email-test-form input {
  min-height: 48px;
  border: 1px solid rgba(85, 223, 255, 0.34) !important;
  border-radius: 8px !important;
  color: #302247 !important;
  background: linear-gradient(180deg, #fff9ef, #fff4d8) !important;
  font-weight: 900;
}

.admin-dialog .admin-email-test-button {
  min-height: 48px;
  margin: 0 !important;
  color: #302247 !important;
  background: linear-gradient(135deg, #76f0a1, #55dfff) !important;
}

.admin-dialog .admin-email-test-button strong,
.admin-dialog .admin-email-test-button span {
  color: #302247 !important;
}

.settings-dialog .setting-value,
.admin-dialog .admin-setting-row .setting-value,
.trial-badge,
.prism-shop-tabs b,
.prism-product-purchase .shop-price,
.shop-item .shop-price,
.credit-pack-intro span,
.shop-completion-banner button,
.sale-reminder-actions button:first-child {
  color: #302247 !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 58%, #ffb45e) !important;
  text-shadow: none !important;
}

.prism-product-card.is-owned,
.shop-item.is-owned {
  color: #302247 !important;
  border-color: rgba(118, 240, 161, 0.66) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(118, 240, 161, 0.28), transparent 42%),
    linear-gradient(180deg, #fff9ef, #eafff1) !important;
}

.prism-product-card.is-owned strong,
.prism-product-card.is-owned p,
.prism-product-card.is-owned small,
.prism-product-card.is-owned span,
.shop-item.is-owned strong,
.shop-item.is-owned p,
.shop-item.is-owned small,
.shop-item.is-owned span {
  color: #302247 !important;
  text-shadow: none !important;
}

.grownup-gate button,
.provider-row button,
.prism-product-actions button,
.mini-button.admin-ban-player {
  text-shadow: none !important;
}

@media (max-width: 820px) {
  .admin-dialog .admin-email-test-panel,
  .admin-dialog .admin-email-test-form {
    grid-template-columns: 1fr;
  }
}

/* v110 Luminous Storybook polish: bring HUD, Admin Studio, Shop, splash, and transitions back onto one premium Glowkin system. */
:root {
  --gk-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 216, 0.88) 48%, rgba(245, 224, 255, 0.86));
  --gk-card-bg-deep: radial-gradient(circle at 0% 0%, rgba(85, 223, 255, 0.2), transparent 38%), linear-gradient(145deg, rgba(255, 249, 239, 0.95), rgba(255, 244, 216, 0.9));
  --gk-violet-panel: radial-gradient(circle at 20% 0%, rgba(255, 216, 107, 0.2), transparent 34%), linear-gradient(145deg, rgba(106, 76, 255, 0.9), rgba(56, 32, 110, 0.9));
}

.splash-screen {
  padding: clamp(12px, 2.2vw, 30px) !important;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 111, 174, 0.18), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(85, 223, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #0a0822 0%, #1e1744 52%, #07111f 100%) !important;
}

.splash-screen::before {
  background:
    linear-gradient(90deg, rgba(30, 23, 68, 0.74), rgba(30, 23, 68, 0.1) 48%, rgba(30, 23, 68, 0.2)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat !important;
  filter: blur(8px) saturate(1.18) brightness(0.78) !important;
}

.splash-cinema-frame {
  border-color: rgba(255, 244, 216, 0.64) !important;
  background:
    linear-gradient(90deg, rgba(30, 23, 68, 0.58), rgba(30, 23, 68, 0.06) 46%, rgba(30, 23, 68, 0.18)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=110") center / cover no-repeat !important;
  box-shadow:
    0 34px 110px rgba(7, 8, 32, 0.58),
    0 0 0 9px rgba(255, 249, 239, 0.055),
    0 0 60px rgba(85, 223, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -120px 140px rgba(3, 4, 13, 0.22) !important;
}

.splash-copy {
  padding: 22px 24px !important;
  border: 1px solid rgba(255, 244, 216, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.16), rgba(255, 249, 239, 0.02)),
    rgba(30, 23, 68, 0.26);
  backdrop-filter: blur(5px);
}

.splash-copy .eyebrow {
  color: #fff9ef !important;
  background: linear-gradient(135deg, rgba(106, 76, 255, 0.78), rgba(255, 111, 174, 0.58)) !important;
}

.splash-copy h1 span,
.splash-copy h1 strong {
  text-shadow: 0 4px 0 rgba(48, 34, 71, 0.26), 0 18px 38px rgba(5, 4, 18, 0.58), 0 0 26px rgba(85, 223, 255, 0.2) !important;
}

.splash-copy .primary-button.splash-play-button {
  color: #fff9ef !important;
  border-color: rgba(255, 244, 216, 0.92) !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 249, 239, 0.38), transparent 40%),
    linear-gradient(135deg, #6a4cff 0%, #ff6fae 48%, #55dfff 100%) !important;
  box-shadow:
    0 24px 58px rgba(106, 76, 255, 0.28),
    0 0 0 6px rgba(255, 216, 107, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -10px 24px rgba(48, 34, 71, 0.28) !important;
}

.travel-transition {
  background:
    linear-gradient(180deg, rgba(30, 23, 68, 0.42), rgba(7, 8, 32, 0.76)),
    url("assets/png/ui/prismworlds-transition-storybook.png?v=110") center / cover no-repeat !important;
}

.travel-transition__copy {
  color: #302247 !important;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 216, 107, 0.36), transparent 38%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.92), rgba(255, 244, 216, 0.86)) !important;
  border-color: rgba(255, 216, 107, 0.72) !important;
}

.travel-transition__copy strong {
  color: #6a4cff !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.82), 0 0 22px rgba(255, 216, 107, 0.26);
}

.travel-transition__copy span {
  color: #302247 !important;
  font-weight: 900;
}

.topbar,
.profile-panel,
.battle-panel,
.chat-panel,
.minimap-panel,
.zoom-panel,
.ability-bar,
.roster-panel {
  border: 1px solid rgba(106, 76, 255, 0.24) !important;
  color: #302247 !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(85, 223, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.92), rgba(255, 244, 216, 0.82)) !important;
  box-shadow:
    0 18px 48px rgba(48, 34, 71, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(12px) saturate(1.14);
}

.profile-card strong,
.quest-panel strong,
.battle-panel strong,
.chat-panel strong,
.minimap-panel strong,
.roster-panel strong,
.topbar strong,
.profile-card span,
.battle-panel span,
.chat-panel span,
.minimap-panel span,
.roster-panel span {
  color: #302247 !important;
  text-shadow: none !important;
}

.profile-panel .panel-label,
.battle-panel .panel-label,
.quest-panel .panel-label,
.chat-panel .panel-label,
.minimap-panel .panel-label {
  color: #6a4cff !important;
}

.quest-panel {
  color: #302247 !important;
  border: 1px solid rgba(255, 216, 107, 0.58) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 216, 107, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.96), rgba(255, 244, 216, 0.9)) !important;
}

.stat-grid span,
.equipped-gear-badge,
.objective-meter-chips span,
.buff-icon {
  color: #302247 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 216, 0.8)) !important;
  border-color: rgba(106, 76, 255, 0.22) !important;
}

.ability-bar {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 107, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.88), rgba(245, 224, 255, 0.76)) !important;
}

.ability-button {
  border-color: rgba(106, 76, 255, 0.26) !important;
  color: #302247 !important;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(135deg, #fff4d8, #ffd86b 62%, #ffb45e) !important;
}

.ability-button--super {
  color: #fff9ef !important;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.32), transparent 44%),
    linear-gradient(135deg, #ff6fae, #6a4cff 58%, #55dfff) !important;
}

.world-map-card {
  color: #302247 !important;
  border-color: rgba(255, 216, 107, 0.58) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 223, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.97), rgba(255, 244, 216, 0.92)) !important;
}

#worldMapCanvas {
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 249, 239, 0.58), 0 18px 44px rgba(48, 34, 71, 0.2);
}

.world-map-details,
.world-map-details strong,
.world-map-details span {
  color: #302247 !important;
}

.world-map-card .shop-note,
#worldMapSummary {
  color: rgba(48, 34, 71, 0.76) !important;
}

.world-map-details {
  border-color: rgba(106, 76, 255, 0.2) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 223, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.94), rgba(255, 244, 216, 0.86)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 26px rgba(48, 34, 71, 0.12) !important;
}

.admin-dialog {
  color: #302247 !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(85, 223, 255, 0.28), transparent 34%),
    radial-gradient(circle at 86% 5%, rgba(255, 111, 174, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.98), rgba(255, 244, 216, 0.94)) !important;
  border-color: rgba(255, 216, 107, 0.68) !important;
}

.admin-dialog form {
  color: #302247 !important;
  background: transparent !important;
}

.admin-dialog .dialog-head strong,
.admin-status--studio strong,
.admin-overview-panel strong,
.admin-backlog-panel strong,
.admin-pricing-head strong,
.admin-pricing-title strong,
.admin-map-editor-head strong,
.admin-map-flow-head strong,
.admin-map-inspector > strong,
.admin-section-list strong,
.admin-record-list strong,
.admin-hierarchy-col strong,
.admin-editor strong,
.admin-dialog .admin-email-test-copy strong {
  color: #302247 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-dialog .shop-note,
.admin-dialog :is(.admin-status, .admin-command, .admin-overview-panel, .admin-section-list, .admin-record-list, .admin-editor, .admin-hierarchy, .admin-quick-panel, .admin-backlog-panel, .admin-pricing-panel, .admin-map-visualizer, .admin-map-flow, .admin-terrain-palette, .admin-object-palette, .admin-email-test-panel) {
  color: #302247 !important;
  border-color: rgba(106, 76, 255, 0.2) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 223, 255, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 216, 0.78)) !important;
}

.admin-dialog :is(.admin-status--studio span, .admin-result, .admin-command span, .admin-overview-panel span, .admin-editor-note, .admin-section-list span, .admin-record-list span, .admin-hierarchy-col span, .admin-map-editor-head span, .admin-map-flow-head span, .admin-map-actions span, .admin-map-inspector > span, .admin-pricing-note, .admin-backlog-panel span, .admin-email-test-copy span) {
  color: rgba(48, 34, 71, 0.72) !important;
}

.admin-tabs {
  background: rgba(255, 249, 239, 0.78) !important;
  border-color: rgba(106, 76, 255, 0.18) !important;
}

.admin-tabs button,
.admin-section-list button,
.admin-record-list button,
.admin-hierarchy-col button,
.admin-map-toolbar button,
.admin-terrain-palette button,
.admin-object-palette button,
.admin-map-flow-col button {
  color: #302247 !important;
  border-color: rgba(106, 76, 255, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.86), rgba(245, 224, 255, 0.8)) !important;
}

.admin-tabs button.is-active,
.admin-section-list button.is-active,
.admin-record-list button.is-active,
.admin-hierarchy-col button.is-active,
.admin-map-toolbar button.is-active,
.admin-terrain-palette button.is-active,
.admin-object-palette button.is-active,
.admin-map-flow-col button.is-active,
.admin-overview-chips button.is-active {
  color: #302247 !important;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.62), transparent 44%),
    linear-gradient(135deg, #ffd86b, #ffb45e) !important;
}

.admin-dialog :is(input, select, textarea, .admin-record-search, .admin-json-editor, .admin-map-point-grid input) {
  color: #302247 !important;
  background: rgba(255, 249, 239, 0.96) !important;
  border-color: rgba(106, 76, 255, 0.24) !important;
}

.admin-json-editor {
  background: linear-gradient(180deg, #fff9ef, #fff4d8) !important;
}

.prism-shop-dialog {
  width: min(1580px, calc(100vw - 18px)) !important;
  max-width: none !important;
}

.prism-shop-dialog form {
  color: #302247 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 107, 0.24), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(85, 223, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(255, 244, 216, 0.94)) !important;
}

.prism-shop-dialog .dialog-head strong,
.prism-shop-dialog > form > .shop-note,
.shop-wallet-card span,
.shop-wallet-card strong,
.shop-wallet-card em,
.prism-product-copy strong,
.prism-product-copy p,
.prism-product-chips span,
.prism-product-purchase small,
.credit-pack-intro strong,
.credit-pack-intro p,
.credit-pack-main strong,
.credit-pack-main span,
.credit-pack-main em,
.shop-completion-banner strong,
.shop-completion-banner p,
.shop-completion-banner span,
.shop-completion-banner em {
  color: #302247 !important;
  text-shadow: none !important;
}

.shop-wallet-card,
.prism-product-card,
.credit-pack-hero,
.credit-pack-card,
.shop-completion-banner,
.prism-shop-dialog .grownup-gate {
  color: #302247 !important;
  border-color: rgba(106, 76, 255, 0.2) !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--product-accent, #55dfff) 18%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 244, 216, 0.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 32px rgba(48, 34, 71, 0.12) !important;
}

.prism-shop-dialog .grownup-gate,
.prism-shop-dialog .grownup-gate p,
.prism-shop-dialog .grownup-gate label,
.prism-shop-dialog .grownup-gate label span,
.prism-shop-dialog .grownup-gate .field span {
  color: #302247 !important;
  opacity: 1 !important;
}

.prism-shop-dialog .grownup-gate input {
  color: #302247 !important;
  background: linear-gradient(180deg, #fff9ef, #fff4d8) !important;
  border-color: rgba(106, 76, 255, 0.24) !important;
}

.credit-pack-hero {
  border-color: rgba(255, 216, 107, 0.68) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 107, 0.28), transparent 36%),
    radial-gradient(circle at 96% 0%, rgba(85, 223, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #fff9ef, #fff4d8) !important;
}

.prism-product-art,
.shop-preview-art,
.shop-completion-art {
  background-color: rgba(255, 249, 239, 0.78) !important;
  box-shadow: inset 0 0 0 1px rgba(106, 76, 255, 0.16), 0 0 26px color-mix(in srgb, var(--product-accent, #55dfff) 22%, transparent) !important;
}

.prism-shop-tabs {
  background: rgba(255, 249, 239, 0.9) !important;
  border-radius: 8px;
}

.prism-shop-tabs button {
  color: #302247 !important;
  background: linear-gradient(135deg, rgba(255, 249, 239, 0.92), rgba(245, 224, 255, 0.82)) !important;
}

.prism-shop-tabs button.is-active {
  color: #302247 !important;
  background: linear-gradient(135deg, #ffd86b, #ffb45e) !important;
}

.shop-price,
.prism-product-purchase .shop-price,
.credit-pack-intro span,
.trial-badge,
.setting-value,
.admin-overview-chips button span {
  color: #302247 !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 62%, #ffb45e) !important;
  text-shadow: none !important;
}

.potion-tray {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.potion-button {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 249, 239, 0.44);
  border-radius: 12px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.86), rgba(30, 23, 68, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 22px rgba(30, 23, 68, 0.28);
  cursor: pointer;
}

.potion-button--hp {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.55), transparent 34%),
    linear-gradient(135deg, rgba(255, 111, 174, 0.94), rgba(106, 76, 255, 0.92));
}

.potion-button--mp {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.55), transparent 34%),
    linear-gradient(135deg, rgba(85, 223, 255, 0.9), rgba(106, 76, 255, 0.94));
}

.potion-button:disabled,
.potion-button.is-empty {
  opacity: 0.54;
  filter: saturate(0.78);
  cursor: not-allowed;
}

.potion-button img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(30, 23, 68, 0.3));
}

.potion-button span {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: inherit;
}

.potion-button b,
.potion-button em,
.potion-button small {
  color: #fff9ef !important;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(30, 23, 68, 0.44);
}

.potion-button b {
  font-size: 0.82rem;
  font-weight: 950;
}

.potion-button em {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.potion-button small {
  position: absolute;
  top: 5px;
  right: 7px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #302247 !important;
  background: #fff9ef;
}

.local-shop-dialog {
  width: min(980px, calc(100vw - 32px)) !important;
  color: #302247 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 216, 107, 0.28), transparent 36%),
    radial-gradient(circle at 90% 4%, rgba(85, 223, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #fff9ef, #fff4d8 42%, #f7e7ff) !important;
}

.local-shop-dialog form {
  padding: clamp(18px, 2vw, 28px) !important;
}

.local-shop-dialog .dialog-head strong,
.local-shop-dialog .shop-note {
  color: #302247 !important;
}

.local-shop-scene {
  position: relative;
  height: 126px;
  margin: 14px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(106, 76, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 26% 16%, rgba(255, 216, 107, 0.34), transparent 18%),
    radial-gradient(circle at 72% 18%, rgba(255, 111, 174, 0.2), transparent 20%),
    linear-gradient(180deg, rgba(106, 76, 255, 0.18), rgba(255, 244, 216, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 18px 36px rgba(48, 34, 71, 0.14);
}

.local-shop-scene::before,
.local-shop-scene::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.78);
}

.local-shop-scene::before {
  left: 7%;
  top: 20px;
  width: 70px;
  height: 70px;
  box-shadow: 140px 10px 0 rgba(85, 223, 255, 0.28), 420px 12px 0 rgba(255, 111, 174, 0.2), 620px -4px 0 rgba(255, 216, 107, 0.3);
}

.local-shop-scene::after {
  left: 0;
  right: 0;
  bottom: -30px;
  height: 72px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, rgba(255, 180, 94, 0.78), rgba(255, 216, 107, 0.82));
}

.local-shop-scene__counter {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16px;
  z-index: 1;
  height: 38px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(135deg, #ffb45e, #ffd86b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(48, 34, 71, 0.12);
}

.local-shop-scene__shelves {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 22px;
  height: 52px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 46%, #ff6fae 0 9px, transparent 10px),
    radial-gradient(circle at 36% 44%, #55dfff 0 9px, transparent 10px),
    radial-gradient(circle at 56% 42%, #76f0a1 0 9px, transparent 10px),
    radial-gradient(circle at 76% 44%, #ffd86b 0 9px, transparent 10px),
    rgba(255, 249, 239, 0.68);
  box-shadow: inset 0 -8px 0 rgba(106, 76, 255, 0.15);
}

.local-shop-scene__lantern {
  position: absolute;
  right: 10%;
  top: 18px;
  z-index: 2;
  width: 44px;
  height: 56px;
  border-radius: 18px 18px 22px 22px;
  background: radial-gradient(circle at 50% 40%, #fff9ef, #ffd86b 48%, #ffb45e 76%);
  box-shadow: 0 0 34px rgba(255, 216, 107, 0.58);
}

.local-shop-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.local-shop-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid rgba(106, 76, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 216, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 28px rgba(48, 34, 71, 0.12);
}

.local-shop-card.is-locked {
  opacity: 0.72;
}

.local-shop-art {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: 16px;
  color: #302247;
  font-weight: 950;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--item-accent, #55dfff) 34%, transparent), transparent 72%),
    linear-gradient(135deg, #fff9ef, #f3e8ff);
  box-shadow: inset 0 0 0 1px rgba(106, 76, 255, 0.16);
}

.local-shop-art img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(48, 34, 71, 0.2));
}

.local-shop-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.local-shop-copy strong,
.local-shop-copy p,
.local-shop-chips span,
.local-shop-buy b,
.local-shop-buy span {
  color: #302247 !important;
  text-shadow: none !important;
}

.local-shop-copy p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.local-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.local-shop-chips span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.82);
  font-size: 0.68rem;
  font-weight: 950;
}

.local-shop-buy {
  grid-column: 1 / -1;
  min-height: 46px;
  border-radius: 14px !important;
}

.dialogue-dialog {
  width: min(1040px, calc(100vw - 30px)) !important;
  color: #302247 !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(85, 223, 255, 0.22), transparent 38%),
    radial-gradient(circle at 92% 0%, rgba(255, 111, 174, 0.18), transparent 36%),
    linear-gradient(145deg, #fff9ef, #fff4d8 46%, #f0e9ff) !important;
}

.dialogue-stage {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 130px;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
}

.dialogue-portrait {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 170px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 249, 239, 0.9), transparent 48%),
    linear-gradient(160deg, rgba(106, 76, 255, 0.24), rgba(85, 223, 255, 0.2));
  box-shadow: inset 0 0 0 1px rgba(106, 76, 255, 0.18), 0 18px 34px rgba(48, 34, 71, 0.12);
}

.dialogue-portrait::before {
  content: "";
  width: 78px;
  height: 96px;
  margin-bottom: 44px;
  border-radius: 45% 45% 38% 38%;
  background:
    radial-gradient(circle at 35% 35%, #fff9ef 0 7px, transparent 8px),
    radial-gradient(circle at 63% 35%, #fff9ef 0 7px, transparent 8px),
    linear-gradient(135deg, #55dfff, #6a4cff 54%, #ff6fae);
  box-shadow: 0 10px 22px rgba(48, 34, 71, 0.18);
}

.dialogue-portrait span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 8px;
  border-radius: 999px;
  color: #302247 !important;
  background: rgba(255, 249, 239, 0.86);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
}

.dialogue-scroll {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(106, 76, 255, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 216, 0.88)),
    #fff4d8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 20px 40px rgba(48, 34, 71, 0.13);
}

.dialogue-speaker {
  display: inline-grid;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #302247 !important;
  background: linear-gradient(135deg, #ffd86b, #ffb45e);
  font-size: 0.78rem;
  font-weight: 950;
}

.dialogue-scroll p {
  min-height: 78px;
  margin: 0;
  color: #302247 !important;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 850;
  line-height: 1.45;
}

.dialogue-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.arcade-dialog {
  width: min(1080px, calc(100vw - 28px)) !important;
  color: #302247 !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 216, 107, 0.3), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(85, 223, 255, 0.24), transparent 36%),
    linear-gradient(145deg, #fff9ef, #f2e7ff) !important;
}

.arcade-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 240px;
  gap: 16px;
  align-items: start;
}

.arcade-cabinet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.16), rgba(255, 216, 107, 0.22));
  box-shadow: inset 0 0 0 1px rgba(106, 76, 255, 0.18), 0 14px 26px rgba(48, 34, 71, 0.09);
}

.arcade-cabinet-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(106, 76, 255, 0.2);
  border-radius: 999px;
  color: #302247;
  background: linear-gradient(145deg, rgba(255, 249, 239, 0.92), rgba(242, 231, 255, 0.9));
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.arcade-cabinet-tabs button:hover,
.arcade-cabinet-tabs button.is-selected {
  transform: translateY(-2px);
  color: #fff9ef;
  background: linear-gradient(135deg, #6a4cff, #ff6fae 58%, #ffd86b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 12px 24px rgba(106, 76, 255, 0.24);
}

.arcade-cabinet-tabs button.is-disabled {
  opacity: 0.52;
  filter: grayscale(0.25);
}

.arcade-marquee {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.82), transparent 30%),
    linear-gradient(135deg, #6a4cff, #55dfff 48%, #ff6fae);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 30px rgba(106, 76, 255, 0.2);
}

.arcade-marquee span,
.arcade-marquee strong,
.arcade-marquee em {
  color: #fff9ef !important;
  text-shadow: 0 2px 8px rgba(30, 23, 68, 0.34);
}

.arcade-marquee span {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.arcade-marquee em {
  font-style: normal;
  font-weight: 850;
}

.arcade-board {
  grid-column: 1;
  grid-row: 2 / span 2;
  display: grid;
  grid-template-columns: repeat(8, minmax(32px, 1fr));
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(106, 76, 255, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.24), rgba(85, 223, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 18px 38px rgba(48, 34, 71, 0.12);
}

.arcade-board--lantern_lanes {
  grid-template-columns: repeat(9, minmax(28px, 1fr));
  gap: 5px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 216, 107, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(85, 223, 255, 0.2), rgba(106, 76, 255, 0.16)),
    linear-gradient(135deg, rgba(255, 244, 216, 0.78), rgba(242, 231, 255, 0.8));
}

.arcade-board--starwhirl_defender {
  display: block;
  min-height: 420px;
  padding: 10px;
}

.starwhirl-canvas {
  display: block;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px rgba(255, 249, 239, 0.3), 0 18px 34px rgba(48, 34, 71, 0.14);
  touch-action: none;
}

.arcade-gem {
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-radius: 20px 16px 20px 16px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.82), transparent 22%),
    linear-gradient(145deg, var(--gem-a), var(--gem-b));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.54), 0 10px 18px rgba(48, 34, 71, 0.17);
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.arcade-gem:hover,
.arcade-gem.is-selected {
  transform: translateY(-3px) scale(1.06);
  filter: saturate(1.18) brightness(1.06);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 0 0 3px rgba(255, 216, 107, 0.62), 0 16px 26px rgba(106, 76, 255, 0.2);
}

.arcade-gem--moon { --gem-a: #fff4d8; --gem-b: #ffd86b; border-radius: 50% 50% 42% 50%; }
.arcade-gem--heart { --gem-a: #ff9cca; --gem-b: #ff4f9a; border-radius: 44% 44% 58% 58%; }
.arcade-gem--star { --gem-a: #fff9ef; --gem-b: #55dfff; clip-path: polygon(50% 4%, 61% 34%, 94% 34%, 67% 54%, 78% 90%, 50% 68%, 22% 90%, 33% 54%, 6% 34%, 39% 34%); }
.arcade-gem--leaf { --gem-a: #a7ffc0; --gem-b: #32c972; border-radius: 70% 20% 70% 24%; }
.arcade-gem--drop { --gem-a: #9ff3ff; --gem-b: #3a7dff; border-radius: 70% 70% 72% 16%; }
.arcade-gem--pepper { --gem-a: #ffb45e; --gem-b: #ff6fae; border-radius: 60% 38% 70% 36%; }

.lantern-cell {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-radius: 15px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(145deg, rgba(255, 244, 216, 0.94), rgba(255, 180, 94, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 7px 14px rgba(48, 34, 71, 0.1);
  cursor: pointer;
}

.lantern-cell--violet {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(145deg, rgba(242, 231, 255, 0.95), rgba(106, 76, 255, 0.32));
}

.lantern-cell::before {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  font-size: clamp(16px, 2.1vw, 28px);
  font-weight: 950;
  color: #302247;
  text-shadow: 0 2px 8px rgba(255, 249, 239, 0.82);
}

.lantern-cell.is-exit::before {
  content: "?";
  color: rgba(48, 34, 71, 0.52);
}

.lantern-cell.is-exit-open {
  box-shadow: inset 0 0 0 2px rgba(255, 216, 107, 0.68), 0 0 22px rgba(85, 223, 255, 0.35);
}

.lantern-cell.is-exit-open::before {
  content: "Portal";
  inset: 23% 8%;
  font-size: clamp(9px, 1.1vw, 14px);
  color: #6a4cff;
}

.lantern-cell.has-charm::before {
  content: "Star";
  inset: 26% 9%;
  color: #ff6fae;
  font-size: clamp(10px, 1.2vw, 15px);
}

.lantern-cell.has-hazard::before {
  content: "Wisp";
  inset: 28% 7%;
  color: #fff9ef;
  background: linear-gradient(135deg, #6a4cff, #1e1744);
  border-radius: 999px;
  font-size: clamp(9px, 1.1vw, 13px);
  box-shadow: 0 0 16px rgba(106, 76, 255, 0.35);
}

.lantern-cell.has-player::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 58%;
  border-radius: 50% 50% 42% 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff9ef 0 17%, transparent 18%),
    linear-gradient(145deg, #55dfff, #ff6fae 65%, #ffd86b);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(255, 249, 239, 0.78), 0 0 24px rgba(85, 223, 255, 0.54);
}

.arcade-controls {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.arcade-control {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(106, 76, 255, 0.18);
  border-radius: 999px;
  color: #302247;
  background: linear-gradient(135deg, #fff4d8, #ffd86b);
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 18px rgba(48, 34, 71, 0.1);
}

.arcade-control:hover {
  filter: brightness(1.06) saturate(1.08);
  transform: translateY(-1px);
}

.arcade-side {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 10px;
}

.arcade-side div {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 18px;
  color: #302247;
  background: rgba(255, 249, 239, 0.84);
  box-shadow: inset 0 0 0 1px rgba(106, 76, 255, 0.14);
}

.arcade-side span,
.arcade-side strong,
.arcade-side .shop-note {
  color: #302247 !important;
}

.arcade-side span {
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.arcade-side strong {
  font-size: 1.35rem;
}

.admin-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(85, 223, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 249, 239, 0.08);
}

.admin-settings-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 249, 239, 0.18);
  border-radius: 999px;
  color: #fff9ef;
  background: rgba(30, 23, 68, 0.5);
  font-weight: 950;
  cursor: pointer;
}

.admin-settings-tabs button.is-active {
  color: #302247;
  background: linear-gradient(135deg, #55dfff, #ffd86b);
  box-shadow: 0 10px 22px rgba(85, 223, 255, 0.16);
}

.admin-dialog .admin-settings-tabs button {
  white-space: nowrap;
}

/* v113: hidden arcade polish and per-HUD dimming controls. */
.topbar,
.profile-panel,
.battle-panel,
.quest-panel,
.minimap-panel,
.roster-panel,
.chat-panel,
.zoom-panel,
.ability-bar,
.buff-tray,
.combat-feed {
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.is-hud-muted {
  filter: saturate(0.92) brightness(0.96);
}

.is-hud-hidden-by-setting {
  opacity: 0 !important;
  pointer-events: none !important;
}

.hud-visibility-settings {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(106, 76, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(85, 223, 255, 0.18), transparent 36%),
    radial-gradient(circle at 92% 4%, rgba(255, 111, 174, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.94), rgba(242, 231, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 16px 34px rgba(48, 34, 71, 0.1);
}

.hud-visibility-settings .hud-master-row {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 244, 216, 0.92), rgba(255, 216, 107, 0.22)),
    rgba(255, 249, 239, 0.82);
}

.hud-opacity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hud-opacity-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.78fr) minmax(110px, 1fr) 54px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(106, 76, 255, 0.14);
  border-radius: 16px;
  color: #302247;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.76), transparent 28%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.92), rgba(224, 247, 255, 0.76));
}

.hud-opacity-row span {
  overflow: hidden;
  color: #302247;
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-opacity-row input[type="range"] {
  width: 100%;
  height: 7px;
  accent-color: #6a4cff;
}

.hud-opacity-row .setting-value {
  min-width: 48px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 216, 107, 0.62);
  border-radius: 999px;
  color: #302247 !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b) !important;
  font-size: 0.72rem;
  text-align: center;
}

.arcade-dialog {
  width: min(1180px, calc(100vw - 28px)) !important;
  border: 1px solid rgba(255, 249, 239, 0.62) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 9% 2%, rgba(255, 216, 107, 0.42), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(85, 223, 255, 0.35), transparent 34%),
    radial-gradient(circle at 55% 100%, rgba(255, 111, 174, 0.2), transparent 38%),
    linear-gradient(145deg, #fff9ef, #f2e7ff 52%, #e5fbff) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 28px rgba(106, 76, 255, 0.08),
    0 28px 70px rgba(30, 23, 68, 0.28) !important;
}

.arcade-shell {
  gap: 18px;
  padding: 2px;
}

.arcade-cabinet-tabs {
  border: 1px solid rgba(255, 249, 239, 0.68);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(135deg, rgba(85, 223, 255, 0.26), rgba(255, 216, 107, 0.3) 52%, rgba(255, 111, 174, 0.2));
}

.arcade-cabinet-tabs button.is-locked {
  position: relative;
  color: rgba(48, 34, 71, 0.68);
  background: linear-gradient(145deg, rgba(255, 249, 239, 0.68), rgba(216, 215, 232, 0.74));
}

.arcade-cabinet-tabs button.is-locked::after {
  content: "Hidden";
  display: inline-grid;
  place-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff9ef;
  background: linear-gradient(135deg, #6a4cff, #302247);
  font-size: 0.62rem;
  font-weight: 950;
}

.arcade-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 239, 0.58);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 255, 255, 0.72), transparent 24%),
    radial-gradient(circle at 92% 0%, rgba(255, 216, 107, 0.44), transparent 30%),
    linear-gradient(135deg, #38206e, #6a4cff 38%, #55dfff 72%, #ff6fae);
}

.arcade-marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.22) 46%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(255, 216, 107, 0.34), transparent 24%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.arcade-board {
  position: relative;
  overflow: hidden;
  justify-self: center;
  width: min(100%, 640px);
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 249, 239, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.76), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 216, 107, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(106, 76, 255, 0.28), rgba(85, 223, 255, 0.2) 48%, rgba(255, 111, 174, 0.15)),
    repeating-linear-gradient(45deg, rgba(255, 249, 239, 0.34) 0 10px, rgba(255, 249, 239, 0.12) 10px 20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -18px 38px rgba(106, 76, 255, 0.09), 0 22px 44px rgba(48, 34, 71, 0.16);
}

.arcade-board--lantern_lanes {
  width: min(100%, 590px);
  gap: 6px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 216, 107, 0.38), transparent 34%),
    radial-gradient(circle at 16% 86%, rgba(118, 240, 161, 0.26), transparent 32%),
    linear-gradient(180deg, rgba(85, 223, 255, 0.24), rgba(106, 76, 255, 0.18)),
    repeating-linear-gradient(90deg, rgba(255, 244, 216, 0.52) 0 18px, rgba(242, 231, 255, 0.44) 18px 36px);
}

.arcade-board--starwhirl_defender {
  width: 100%;
  min-height: 440px;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 216, 107, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(30, 23, 68, 0.95), rgba(56, 32, 110, 0.9));
}

.starwhirl-canvas {
  height: 440px;
  border: 1px solid rgba(255, 249, 239, 0.5);
  border-radius: 24px;
  box-shadow: inset 0 0 0 2px rgba(255, 249, 239, 0.2), inset 0 0 38px rgba(85, 223, 255, 0.16), 0 22px 48px rgba(48, 34, 71, 0.24);
}

.arcade-gem {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 239, 0.62);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.62),
    inset 0 -10px 18px rgba(48, 34, 71, 0.16),
    0 12px 20px rgba(48, 34, 71, 0.2);
}

.arcade-gem::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 18%;
  width: 24%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: rotate(-24deg);
}

.arcade-gem--moon {
  box-shadow: inset -9px -6px 0 rgba(255, 180, 94, 0.28), inset 0 3px 0 rgba(255, 255, 255, 0.68), 0 12px 20px rgba(48, 34, 71, 0.2);
}

.arcade-gem--heart {
  clip-path: polygon(50% 92%, 12% 54%, 8% 25%, 28% 10%, 50% 24%, 72% 10%, 92% 25%, 88% 54%);
  border-radius: 22px;
}

.arcade-gem--drop {
  transform: rotate(-9deg);
}

.arcade-gem--drop:hover,
.arcade-gem--drop.is-selected {
  transform: translateY(-3px) scale(1.06) rotate(-9deg);
}

.arcade-gem--flare,
.arcade-gem--wild {
  isolation: isolate;
  color: #302247;
  background:
    radial-gradient(circle at 50% 48%, #fff9ef 0 16%, transparent 17%),
    conic-gradient(from 0.08turn, #ffd86b, #ff6fae, #6a4cff, #55dfff, #ffd86b) !important;
  box-shadow:
    0 0 0 2px rgba(255, 249, 239, 0.82),
    0 0 26px rgba(255, 216, 107, 0.56),
    inset 0 4px 0 rgba(255, 255, 255, 0.62),
    inset 0 -12px 22px rgba(48, 34, 71, 0.2);
}

.arcade-gem--wild {
  background:
    radial-gradient(circle at 50% 52%, #fff9ef 0 13%, transparent 14%),
    conic-gradient(from 0.2turn, #fff9ef, #55dfff, #6a4cff, #ff6fae, #ffd86b, #fff9ef) !important;
  animation: arcadePowerPulse 1.25s ease-in-out infinite;
}

.arcade-gem--flare::before,
.arcade-gem--wild::before {
  content: attr(data-label);
  position: absolute;
  inset: auto 6px 7px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 17px;
  border-radius: 999px;
  color: #302247;
  background: rgba(255, 249, 239, 0.88);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: none;
}

@keyframes arcadePowerPulse {
  0%, 100% { filter: saturate(1.05) brightness(1); }
  50% { filter: saturate(1.25) brightness(1.12); }
}

.lantern-cell {
  overflow: hidden;
  border: 1px solid rgba(255, 249, 239, 0.62);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.68), inset 0 -10px 18px rgba(106, 76, 255, 0.06), 0 8px 16px rgba(48, 34, 71, 0.12);
}

.lantern-cell.is-exit::before {
  content: "";
  inset: 26%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 249, 239, 0.8), transparent 28%),
    conic-gradient(from 0.2turn, rgba(106, 76, 255, 0.48), rgba(85, 223, 255, 0.56), rgba(255, 216, 107, 0.48), rgba(106, 76, 255, 0.48));
  opacity: 0.55;
}

.lantern-cell.is-exit-open::before {
  content: "";
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff9ef 0 16%, rgba(85, 223, 255, 0.86) 17% 34%, rgba(106, 76, 255, 0.78) 35% 58%, rgba(255, 216, 107, 0.64) 59% 72%, transparent 73%),
    conic-gradient(from 0.3turn, #55dfff, #6a4cff, #ff6fae, #ffd86b, #55dfff);
}

.lantern-cell.has-charm::before {
  content: "";
  inset: 22%;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 48%, #ff6fae);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 96%, 50% 72%, 20% 96%, 32% 56%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 8px rgba(255, 216, 107, 0.7));
}

.lantern-cell.has-hazard::before {
  content: "";
  inset: 18% 16%;
  border-radius: 48% 52% 46% 54%;
  background:
    radial-gradient(circle at 36% 34%, #fff9ef 0 8%, transparent 9%),
    radial-gradient(circle at 64% 36%, #fff9ef 0 8%, transparent 9%),
    linear-gradient(145deg, #6a4cff, #1e1744 72%);
  box-shadow: 0 0 18px rgba(106, 76, 255, 0.42);
}

.lantern-cell.has-hazard--puff::before {
  background:
    radial-gradient(circle at 36% 34%, #302247 0 8%, transparent 9%),
    radial-gradient(circle at 64% 36%, #302247 0 8%, transparent 9%),
    linear-gradient(145deg, #ff6fae, #ffd86b);
}

.lantern-cell.has-block::before {
  content: "";
  inset: 17%;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 249, 239, 0.5), transparent 18%),
    linear-gradient(145deg, #8e78c8, #38206e);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.22), 0 8px 16px rgba(48, 34, 71, 0.22);
}

.lantern-cell.has-key::before {
  content: "";
  inset: 22%;
  background:
    radial-gradient(circle at 72% 28%, #fff9ef 0 8%, transparent 9%),
    linear-gradient(135deg, #ffd86b, #ffb45e);
  clip-path: polygon(0 42%, 54% 42%, 54% 22%, 84% 22%, 84% 42%, 100% 42%, 100% 62%, 84% 62%, 84% 82%, 54% 82%, 54% 62%, 0 62%);
  filter: drop-shadow(0 0 9px rgba(255, 216, 107, 0.72));
}

.lantern-cell.has-shield::before {
  content: "";
  inset: 18% 24%;
  border-radius: 48% 48% 58% 58%;
  background: linear-gradient(145deg, #fff9ef, #55dfff 44%, #6a4cff);
  clip-path: polygon(50% 0, 88% 14%, 80% 70%, 50% 100%, 20% 70%, 12% 14%);
  filter: drop-shadow(0 0 10px rgba(85, 223, 255, 0.68));
}

.lantern-cell.has-boost::before {
  content: "";
  inset: 20%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #fff9ef 0 14%, transparent 15%),
    conic-gradient(from 0.18turn, #55dfff, #76f0a1, #ffd86b, #ff6fae, #55dfff);
  filter: drop-shadow(0 0 12px rgba(118, 240, 161, 0.6));
}

.arcade-side div {
  border: 1px solid rgba(106, 76, 255, 0.14);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.76), transparent 26%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.95), rgba(224, 247, 255, 0.82));
}

.arcade-control {
  border-color: rgba(255, 249, 239, 0.62);
  color: #302247;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 48%, #ffb45e);
}

@media (max-width: 980px) {
  .splash-copy {
    background: rgba(30, 23, 68, 0.36);
  }

  .prism-shop-grid {
    grid-template-columns: 1fr !important;
  }

  .dialogue-stage,
  .arcade-shell {
    grid-template-columns: 1fr;
  }

  .arcade-board,
  .arcade-side,
  .arcade-controls {
    grid-column: 1;
    grid-row: auto;
  }

  .dialogue-portrait {
    min-height: 92px;
  }

  .dialogue-portrait::before {
    width: 54px;
    height: 64px;
    margin-bottom: 26px;
  }

  .arcade-side {
    grid-template-columns: repeat(3, 1fr);
  }

  .arcade-cabinet-tabs {
    border-radius: 20px;
  }

  .arcade-cabinet-tabs button {
    flex: 1 1 150px;
  }

  .starwhirl-canvas {
    height: 340px;
  }

  .arcade-side button,
  .arcade-side .shop-note {
    grid-column: 1 / -1;
  }

  .hud-opacity-grid {
    grid-template-columns: 1fr;
  }

  .hud-opacity-row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1.1fr) 54px;
  }
}

/* v125: Glowkin readability and arcade/payment polish guard */
.gear-dialog form {
  color: #302247 !important;
}

.gear-dialog .dialog-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding-bottom: 8px !important;
}

.gear-dialog .dialog-head strong,
.gear-dialog .gear-section-title,
.gear-dialog .slot-card strong,
.gear-dialog .gear-item strong,
.gear-dialog .combo-panel strong,
.gear-dialog .gear-power-orb strong,
.gear-dialog .gear-stat-matrix b {
  color: #302247 !important;
  text-shadow: none !important;
}

.gear-power-dashboard {
  display: grid !important;
  grid-template-columns: minmax(190px, 0.78fr) minmax(280px, 1.22fr) !important;
  grid-template-areas:
    "orb stats"
    "copy copy" !important;
  gap: 14px !important;
  align-items: stretch !important;
  padding: 16px !important;
  border-radius: 26px !important;
  color: #302247 !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(85, 223, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.95), rgba(255, 244, 216, 0.88)) !important;
}

.gear-power-orb {
  grid-area: orb !important;
  min-height: 132px !important;
  display: grid !important;
  place-items: center !important;
  gap: 5px !important;
  padding: 18px !important;
  border: 1px solid rgba(106, 76, 255, 0.2) !important;
  border-radius: 24px !important;
  color: #302247 !important;
  background:
    radial-gradient(circle at 36% 18%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(135deg, rgba(255, 216, 107, 0.9), rgba(255, 244, 216, 0.86) 54%, rgba(85, 223, 255, 0.24)) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34), 0 16px 32px rgba(106, 76, 255, 0.14) !important;
}

.gear-power-orb span,
.gear-power-orb em {
  color: #5b4b7a !important;
  text-shadow: none !important;
}

.gear-power-orb strong {
  color: #302247 !important;
  font-size: clamp(3.4rem, 7vw, 5.6rem) !important;
  line-height: 0.85 !important;
  text-shadow: 0 2px 0 rgba(255, 249, 239, 0.72) !important;
}

.gear-stat-matrix {
  grid-area: stats !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(92px, 1fr)) !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1px solid rgba(106, 76, 255, 0.16) !important;
  border-radius: 24px !important;
  background: rgba(255, 249, 239, 0.52) !important;
}

.gear-stat-matrix span {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(106, 76, 255, 0.18) !important;
  border-radius: 18px !important;
  color: #302247 !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

.gear-power-dashboard p {
  grid-area: copy !important;
  margin: 0 !important;
  color: #4b3a74 !important;
  line-height: 1.45 !important;
}

.gear-loadout-tools {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 12px 0 10px !important;
}

.gear-unequip-all,
.gear-unequip {
  color: #302247 !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 60%, #ffb45e) !important;
}

.gear-loadout {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 12px !important;
}

.gear-dialog :is(.slot-card, .combo-panel, .gear-item, .gear-combo-card) {
  color: #302247 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 107, 0.18), transparent 28%),
    rgba(255, 249, 239, 0.9) !important;
}

.gear-dialog :is(.slot-card span, .slot-card em, .combo-panel span, .combo-panel em, .combo-panel small, .gear-item span, .gear-item p, .gear-item em) {
  color: #5b4b7a !important;
}

.admin-dialog form {
  color: #fff9ef !important;
  background:
    radial-gradient(circle at 12% 6%, rgba(85, 223, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(30, 23, 68, 0.97), rgba(56, 32, 110, 0.95) 54%, rgba(75, 45, 138, 0.96)) !important;
}

.admin-dialog :is(h1, h2, h3, h4, strong, label, p, span, em, small, b, summary) {
  color: #fff9ef !important;
}

.admin-dialog :is(.shop-note, .admin-status, .admin-command, .admin-overview-panel, .admin-section-list, .admin-record-list, .admin-editor, .admin-hierarchy, .admin-quick-panel, .admin-backlog-panel, .admin-pricing-panel, .admin-map-visualizer, .admin-map-flow, .admin-analytics-panel, .admin-support-board, .admin-moderation-board, .admin-settings-panel, .admin-email-test-panel, .admin-terrain-palette, .admin-object-palette) {
  color: #fff9ef !important;
  border-color: rgba(255, 249, 239, 0.22) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 216, 107, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(30, 23, 68, 0.86), rgba(20, 18, 49, 0.78)) !important;
}

.admin-dialog :is(input, select, textarea, option, .admin-json-editor, .admin-record-search, .admin-map-point-grid input) {
  color: #302247 !important;
  background: #fff9ef !important;
  border-color: rgba(106, 76, 255, 0.32) !important;
}

.admin-dialog :is(button, .primary-button, .secondary-button, .mini-button, .danger-button, .admin-tabs button, .admin-settings-tabs button) {
  color: #302247 !important;
  text-shadow: none !important;
}

.admin-dialog :is(button.is-active, .admin-tabs button.is-active, .admin-settings-tabs button.is-active, .primary-button) {
  color: #302247 !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 60%, #ffb45e) !important;
}

.admin-dialog :is(.admin-result, .admin-editor-note, .admin-pricing-note, .admin-email-test-copy span, .admin-status--studio span, .admin-backlog-panel span, .admin-overview-panel span, .admin-command span) {
  color: #fff4d8 !important;
}

.admin-player-table-wrap {
  border-radius: 18px !important;
  background: rgba(255, 249, 239, 0.9) !important;
}

.admin-player-table,
.admin-player-table :is(th, td) {
  color: #302247 !important;
  background: rgba(255, 249, 239, 0.88) !important;
}

.admin-player-table :is(td span, td strong, td b, th) {
  color: #302247 !important;
}

.admin-dialog .shop-note {
  color: #fff9ef !important;
  background: linear-gradient(135deg, rgba(30, 23, 68, 0.86), rgba(56, 32, 110, 0.78)) !important;
}

.admin-dialog .shop-note :is(strong, span, em, p) {
  color: #fff9ef !important;
}

body .admin-dialog form > .shop-note,
body .admin-dialog form .shop-note {
  color: #fff9ef !important;
}

body .admin-dialog form > .shop-note *,
body .admin-dialog form .shop-note * {
  color: #fff9ef !important;
}

.admin-dialog :is(.admin-command, .admin-overview-chips button, .admin-section-list button, .admin-record-list button, .admin-hierarchy button) {
  color: #fff9ef !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 223, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(48, 56, 72, 0.95), rgba(30, 23, 68, 0.88)) !important;
}

.admin-dialog :is(.admin-command, .admin-overview-chips button, .admin-section-list button, .admin-record-list button, .admin-hierarchy button) :is(strong, span, em, small, b),
.admin-dialog :is(.admin-command, .admin-overview-chips button, .admin-section-list button, .admin-record-list button, .admin-hierarchy button) {
  color: #fff9ef !important;
}

.admin-dialog :is(.admin-overview-chips button.is-active, .admin-section-list button.is-active, .admin-record-list button.is-active, .admin-hierarchy button.is-active) {
  color: #302247 !important;
  background: linear-gradient(135deg, #fff4d8, #ffd86b 56%, #ffb45e) !important;
}

.admin-dialog :is(.admin-overview-chips button.is-active, .admin-section-list button.is-active, .admin-record-list button.is-active, .admin-hierarchy button.is-active) :is(strong, span, em, small, b) {
  color: #302247 !important;
}

.admin-dialog :is(.admin-terrain-palette-grid button, .admin-object-palette button) {
  color: #302247 !important;
  background: rgba(255, 249, 239, 0.88) !important;
}

.admin-dialog :is(.admin-terrain-palette-grid button, .admin-object-palette button) :is(b, span, em) {
  color: #302247 !important;
}

.admin-dialog .admin-overview-panel > div > span {
  color: #5b4b7a !important;
}

.admin-dialog :is(.admin-terrain-palette-head strong, .admin-terrain-palette-head span, .admin-object-palette strong, .admin-object-palette span, .admin-map-actions span, .admin-map-inspector span) {
  color: #fff9ef !important;
}

.arcade-dialog form {
  color: #302247 !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(85, 223, 255, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.98), rgba(255, 244, 216, 0.94)) !important;
}

.arcade-dialog :is(.dialog-head strong, .arcade-marquee h3, .arcade-stat strong, .arcade-side strong, .arcade-status, .arcade-goal, .arcade-reward) {
  color: #302247 !important;
}

.arcade-shell {
  display: grid !important;
  grid-template-columns: minmax(620px, 1fr) minmax(280px, 340px) !important;
  grid-template-areas:
    "marquee side"
    "board side"
    "controls side" !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.arcade-marquee {
  grid-area: marquee !important;
}

.arcade-board {
  grid-area: board !important;
}

.arcade-controls {
  grid-area: controls !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.arcade-side {
  grid-area: side !important;
}

.arcade-board--starwhirl_defender,
.arcade-board--unicorn_derby {
  display: block !important;
  width: 100% !important;
  min-height: 540px !important;
  padding: 14px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 216, 107, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(106, 76, 255, 0.16), rgba(85, 223, 255, 0.12)) !important;
}

.starwhirl-canvas,
.unicorn-derby-canvas {
  display: block !important;
  width: 100% !important;
  height: clamp(500px, 58vh, 680px) !important;
  min-height: 500px !important;
  border-radius: 26px !important;
  touch-action: none !important;
  box-shadow: inset 0 0 0 2px rgba(255, 249, 239, 0.62), 0 18px 44px rgba(30, 23, 68, 0.18) !important;
}

.arcade-control,
.unicorn-derby-go,
.unicorn-derby-cheer {
  min-height: 52px !important;
  color: #302247 !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 58%, #ffb45e) !important;
}

.unicorn-derby-card {
  display: grid !important;
  grid-template-columns: minmax(200px, 1.2fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr) !important;
  gap: 12px !important;
  align-items: end !important;
  color: #302247 !important;
}

.unicorn-derby-boosts {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
  grid-column: 1 / -1 !important;
}

.unicorn-derby-result {
  grid-column: 1 / -1 !important;
  color: #302247 !important;
  background: rgba(255, 249, 239, 0.82) !important;
}

.checkout-shell {
  background:
    linear-gradient(90deg, rgba(30, 23, 68, 0.82), rgba(30, 23, 68, 0.18)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=125") center / cover no-repeat !important;
}

@media (max-width: 1120px) {
  .arcade-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "marquee"
      "board"
      "controls"
      "side" !important;
  }

  .gear-power-dashboard {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "orb"
      "stats"
      "copy" !important;
  }

  .gear-stat-matrix,
  .unicorn-derby-card,
  .unicorn-derby-boosts {
    grid-template-columns: 1fr !important;
  }

  .starwhirl-canvas,
  .unicorn-derby-canvas {
    height: min(62vh, 560px) !important;
  }
}

/* v114: contrast guardrails for mixed light/dark magical UI surfaces. */
:root {
  --gk-readable-dark: #302247;
  --gk-readable-muted: #5d4a78;
  --gk-readable-light: #fff9ef;
}

:is(.shop-dialog, .gear-dialog, .settings-dialog, .hint-dialog, .local-shop-dialog, .support-dialog, .dialogue-dialog, .arcade-dialog, .stable-dialog) form {
  color: var(--gk-readable-dark);
}

:is(.shop-dialog, .gear-dialog, .settings-dialog, .hint-dialog, .local-shop-dialog, .support-dialog, .dialogue-dialog, .arcade-dialog, .stable-dialog)
  :is(p, span, small, em, label, dt, dd, li, td, th, option, .shop-note, .setting-row em, .gear-item span, .gear-item p, .shop-item p, .local-shop-copy p) {
  color: var(--gk-readable-muted);
  text-shadow: none;
}

:is(.shop-dialog, .gear-dialog, .settings-dialog, .hint-dialog, .local-shop-dialog, .support-dialog, .dialogue-dialog, .arcade-dialog, .stable-dialog)
  :is(strong, h1, h2, h3, .dialog-head strong, .gear-section-title, .shop-item strong, .gear-item strong, .local-shop-copy strong, .setting-row strong) {
  color: var(--gk-readable-dark);
  text-shadow: none;
}

:is(.primary-button, .ability-button, .shop-price, .trial-badge, .credit-pack-card, .credit-pack-main, .setting-value, .rarity-pill, .pill, .mini-button.is-light, .objective-meter-chips span) {
  color: var(--gk-readable-dark) !important;
  text-shadow: none !important;
}

:is(.primary-button, .ability-button, .shop-price, .trial-badge, .credit-pack-card, .credit-pack-main, .setting-value, .rarity-pill, .pill) :is(strong, span, small, em) {
  color: var(--gk-readable-dark) !important;
  text-shadow: none !important;
}

:is(.admin-dialog, .chat-panel, .profile-panel, .battle-panel, .minimap-panel, .roster-panel) {
  color: var(--gk-readable-light);
}

.admin-dialog :is(.admin-status, .admin-command, .admin-overview-panel, .admin-section-list, .admin-record-list, .admin-editor, .admin-hierarchy, .admin-quick-panel, .admin-backlog-panel, .admin-pricing-panel, .admin-map-visualizer, .admin-map-flow, .admin-analytics-panel, .admin-support-board, .admin-moderation-board)
  :is(strong, span, p, em, small, label, td, th, button) {
  color: var(--gk-readable-light);
  text-shadow: 0 1px 2px rgba(30, 23, 68, 0.42);
}

.admin-dialog :is(input, select, textarea, option, .admin-json-editor, .admin-record-search) {
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 249, 239, 0.96) !important;
  text-shadow: none !important;
}

.admin-dialog :is(.primary-button, .secondary-button, .mini-button, .danger-button),
:is(.shop-dialog, .gear-dialog, .settings-dialog, .hint-dialog, .local-shop-dialog, .support-dialog, .dialogue-dialog, .arcade-dialog, .stable-dialog)
  :is(.primary-button, .secondary-button, .mini-button, .provider-row button, .shop-credit-button, .shop-manage-button) {
  color: var(--gk-readable-dark) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 244, 216, 0.32)),
    linear-gradient(135deg, #fff9ef, #ffd86b 58%, #ffb45e) !important;
  border-color: rgba(106, 76, 255, 0.22) !important;
  text-shadow: none !important;
}

/* v115: fourth hidden arcade game and admin game-log polish. */
.arcade-board--unicorn_derby {
  width: 100%;
  min-height: 430px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 107, 0.34), transparent 32%),
    radial-gradient(circle at 88% 6%, rgba(255, 111, 174, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(85, 223, 255, 0.22), rgba(106, 76, 255, 0.22) 52%, rgba(118, 240, 161, 0.2));
}

.unicorn-derby-canvas {
  width: 100%;
  height: 430px;
  display: block;
  border: 1px solid rgba(255, 249, 239, 0.66);
  border-radius: 24px;
  background: #e5fbff;
  box-shadow:
    inset 0 0 0 2px rgba(255, 249, 239, 0.24),
    inset 0 0 46px rgba(255, 216, 107, 0.22),
    0 24px 54px rgba(48, 34, 71, 0.2);
}

.unicorn-derby-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.8fr) minmax(170px, 0.95fr) auto auto;
  align-items: end;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(106, 76, 255, 0.16);
  border-radius: 22px;
  color: #302247;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.95), rgba(242, 231, 255, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 34px rgba(48, 34, 71, 0.12);
}

.unicorn-derby-card label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #302247;
  font-size: 0.78rem;
  font-weight: 950;
}

.unicorn-derby-card select,
.unicorn-derby-card input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(106, 76, 255, 0.18);
  border-radius: 14px;
  color: #302247;
  background: rgba(255, 249, 239, 0.96);
  font-weight: 900;
}

.unicorn-derby-go,
.unicorn-derby-cheer {
  min-height: 44px;
  white-space: nowrap;
}

.unicorn-derby-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 216, 107, 0.46);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 244, 216, 0.96), rgba(229, 251, 255, 0.84));
}

.unicorn-derby-result strong,
.unicorn-derby-result span,
.unicorn-derby-result li,
.unicorn-derby-result b,
.unicorn-derby-result em {
  color: #302247 !important;
  text-shadow: none !important;
}

.unicorn-derby-result ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding-left: 20px;
}

.unicorn-derby-result li {
  min-width: 0;
  font-weight: 850;
}

.unicorn-derby-boosts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.unicorn-derby-boosts button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(106, 76, 255, 0.18);
  border-radius: 16px;
  color: #302247;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.86), transparent 30%),
    linear-gradient(135deg, rgba(255, 249, 239, 0.95), rgba(255, 216, 107, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 18px rgba(48, 34, 71, 0.1);
  text-align: left;
}

.unicorn-derby-boosts button.is-active {
  border-color: rgba(255, 111, 174, 0.72);
  background:
    radial-gradient(circle at 22% 6%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(135deg, #ffd86b, #ff6fae 52%, #55dfff);
  transform: translateY(-1px);
}

.unicorn-derby-boosts strong,
.unicorn-derby-boosts span {
  color: #302247 !important;
  text-shadow: none !important;
}

.unicorn-derby-boosts strong {
  font-size: 0.82rem;
}

.unicorn-derby-boosts span {
  font-size: 0.7rem;
  font-weight: 850;
}

.admin-game-log-board {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 249, 239, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 223, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(30, 23, 68, 0.82), rgba(56, 32, 110, 0.74));
}

.admin-game-log-message {
  min-width: 280px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .unicorn-derby-card {
    grid-template-columns: 1fr;
  }

  .unicorn-derby-result ol {
    grid-template-columns: 1fr;
  }

  .unicorn-derby-boosts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unicorn-derby-canvas {
    height: 340px;
  }
}

/* v117: premium graphics polish layer for Glowkin's luminous fantasy look. */
.game-shell {
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 216, 107, 0.24), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(85, 223, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #11183b 0%, #1e1744 26%, #2f7d56 100%);
}

.game-shell::before,
.game-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.game-shell::before {
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 244, 216, 0.16), transparent 22%),
    radial-gradient(circle at 78% 10%, rgba(85, 223, 255, 0.11), transparent 26%),
    linear-gradient(115deg, rgba(255, 111, 174, 0.07), transparent 32%, rgba(118, 240, 161, 0.08) 72%, transparent);
  mix-blend-mode: screen;
}

.game-shell::after {
  background-image:
    radial-gradient(circle, rgba(255, 249, 239, 0.34) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(85, 223, 255, 0.22) 0 1px, transparent 1.8px);
  background-position: 3vw 7vh, 72vw 18vh;
  background-size: 180px 160px, 260px 230px;
  opacity: 0.22;
  animation: glowkinWorldMotes 18s linear infinite;
}

@keyframes glowkinWorldMotes {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-36px, 28px, 0); }
}

#gpuGame,
#game {
  image-rendering: auto;
  filter: saturate(1.08) contrast(1.04);
}

.hud-vignette {
  background:
    radial-gradient(circle at center, transparent 42%, rgba(30, 23, 68, 0.10) 72%, rgba(5, 8, 18, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 216, 107, 0.04), transparent 34%, rgba(85, 223, 255, 0.035));
  mix-blend-mode: multiply;
}

.topbar,
.profile-panel,
.quest-panel,
.roster-panel,
.battle-panel,
.chat-panel,
.zoom-panel,
.sale-reminder,
.toast,
.settings-dialog form,
.shop-dialog form,
.gear-dialog form,
.admin-dialog form,
.arcade-dialog form,
.local-shop-dialog form,
.dialogue-dialog form {
  border: 1px solid rgba(255, 249, 239, 0.24);
  border-radius: 20px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 107, 0.16), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(85, 223, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(38, 28, 83, 0.9), rgba(18, 22, 50, 0.84));
  box-shadow:
    0 22px 58px rgba(5, 8, 18, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(85, 223, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.35);
}

.brand strong,
.profile-card strong,
.battle-panel strong,
.quest-panel strong,
.panel-label,
.chat-panel strong,
.roster-panel strong,
.zoom-panel,
.toast strong,
.sale-reminder b {
  color: #fff9ef;
  text-shadow: 0 2px 8px rgba(5, 8, 18, 0.55);
}

.profile-card span,
.stat-row,
.battle-panel span,
.quest-panel span,
.chat-panel span,
.roster-panel span,
.sale-reminder span,
.sale-reminder em {
  color: rgba(255, 249, 239, 0.82);
  text-shadow: 0 1px 5px rgba(5, 8, 18, 0.42);
}

.brand-gem {
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 22%, #fff9ef 0 13%, transparent 14%),
    linear-gradient(135deg, #ff6fae, #ffd86b 48%, #55dfff);
  box-shadow:
    0 0 0 3px rgba(255, 249, 239, 0.58),
    0 0 22px rgba(85, 223, 255, 0.42);
}

.pill,
.build-pill,
.stat-grid span,
.target-track,
.xp-track,
.equipped-gear-badge,
.roster-friend,
.chat-message,
.save-slot-card {
  border: 1px solid rgba(255, 249, 239, 0.16);
  color: #fff9ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(8, 13, 28, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(5, 8, 18, 0.18);
}

.profile-card canvas,
.character-preview-card,
.slot-detail-preview canvas,
.arcade-board canvas,
.unicorn-derby-canvas {
  border-color: rgba(255, 249, 239, 0.46);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 249, 239, 0.36), transparent 28%),
    linear-gradient(145deg, rgba(85, 223, 255, 0.22), rgba(106, 76, 255, 0.16));
  box-shadow:
    0 18px 38px rgba(5, 8, 18, 0.22),
    inset 0 0 36px rgba(255, 249, 239, 0.12);
}

.ability-button,
.mini-button,
.icon-button,
.primary-button,
.secondary-button,
.hint-button,
.provider-row button,
.shop-credit-button,
.shop-manage-button {
  border-radius: 16px;
  color: #302247 !important;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(180deg, #fff9ef 0%, #ffd86b 58%, #ffb45e 100%) !important;
  box-shadow:
    0 8px 0 rgba(138, 97, 50, 0.34),
    0 16px 28px rgba(5, 8, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-shadow: none !important;
}

.ability-button:hover,
.mini-button:hover,
.icon-button:hover,
.primary-button:hover,
.secondary-button:hover,
.shop-credit-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.04);
}

.ability-button.is-active,
.ability-button:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 rgba(138, 97, 50, 0.34),
    0 10px 18px rgba(5, 8, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.quest-panel {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 216, 107, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.96), rgba(255, 244, 216, 0.9));
  color: #302247;
}

.quest-panel strong,
.quest-panel span,
.quest-panel .panel-label {
  color: #302247;
  text-shadow: none;
}

.xp-track b,
.mp-track b,
.hp-track b {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.24);
}

.arcade-dialog form,
.arcade-shell,
.arcade-board,
.unicorn-derby-card,
.unicorn-derby-result,
.unicorn-derby-boosts button {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 107, 0.24), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255, 111, 174, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(255, 249, 239, 0.94), rgba(229, 251, 255, 0.84)) !important;
  color: #302247;
}

.arcade-dialog :is(strong, span, p, em, small, label, button),
.arcade-shell :is(strong, span, p, em, small, label, button),
.unicorn-derby-card :is(strong, span, p, em, small, label, button) {
  color: #302247 !important;
  text-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .game-shell::after {
    animation: none;
  }
}

/* v121 cinematic story screens: real Glowkin characters, unicorns, castles, and portals. */
.splash-screen::before {
  background:
    linear-gradient(90deg, rgba(3, 4, 13, 0.9), rgba(3, 4, 13, 0.18) 42%, rgba(3, 4, 13, 0.36)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=121") center / cover no-repeat !important;
  filter: saturate(1.18) contrast(1.04) brightness(0.96) !important;
}

.splash-cinema-frame {
  background:
    linear-gradient(90deg, rgba(3, 4, 13, 0.5), rgba(3, 4, 13, 0.03) 48%, rgba(3, 4, 13, 0.18)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=121") center / cover no-repeat !important;
  box-shadow:
    0 36px 112px rgba(3, 4, 13, 0.62),
    0 0 0 9px rgba(255, 249, 239, 0.055),
    0 0 72px rgba(85, 223, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -120px 150px rgba(3, 4, 13, 0.26) !important;
}

.splash-copy {
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 216, 107, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(30, 23, 68, 0.72), rgba(56, 32, 110, 0.36)) !important;
  border-color: rgba(255, 244, 216, 0.34) !important;
  box-shadow:
    0 22px 58px rgba(3, 4, 13, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.travel-transition {
  --transition-art: url("assets/png/ui/prismworlds-transition-storybook.png?v=121");
  place-items: end center !important;
  padding: clamp(18px, 3vw, 38px) !important;
  background:
    linear-gradient(180deg, rgba(3, 4, 13, 0.18), rgba(3, 4, 13, 0.42) 64%, rgba(3, 4, 13, 0.82)),
    var(--transition-art) center / cover no-repeat !important;
}

.travel-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #03040d 0 8%, transparent 8% 92%, #03040d 92% 100%),
    radial-gradient(circle at 50% 42%, rgba(85, 223, 255, 0.12), transparent 28%);
}

.travel-transition__copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 38px)) !important;
  min-height: auto !important;
  aspect-ratio: auto !important;
  margin-bottom: clamp(18px, 5vh, 58px) !important;
  padding: clamp(18px, 2.4vw, 30px) clamp(22px, 4vw, 54px) !important;
  border-radius: 8px !important;
  color: #fff9ef !important;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 216, 107, 0.26), transparent 38%),
    linear-gradient(135deg, rgba(30, 23, 68, 0.82), rgba(8, 9, 28, 0.88)) !important;
  border-color: rgba(255, 244, 216, 0.58) !important;
  box-shadow:
    0 26px 80px rgba(3, 4, 13, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(9px) saturate(1.18) !important;
}

.travel-transition__copy strong {
  color: #ffd86b !important;
  font-size: clamp(1.8rem, 3.7vw, 4.2rem) !important;
  text-shadow: 0 4px 0 rgba(48, 34, 71, 0.34), 0 0 28px rgba(85, 223, 255, 0.28) !important;
}

.travel-transition__copy span {
  color: #fff9ef !important;
  max-width: 860px !important;
  text-shadow: 0 3px 20px rgba(3, 4, 13, 0.62) !important;
}

/* v122 AAA splash intro: one full-frame cinematic image, no cards, no cutout collage. */
.splash-screen {
  --splash-cinema-w: min(100vw, 177.7778dvh);
  --splash-cinema-h: min(100dvh, 56.25vw);
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: #fff9ef !important;
  background: #03040d !important;
}

.splash-screen::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  background: none !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}

.splash-screen::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(3, 4, 13, 0.98) 0, rgba(3, 4, 13, 0.98) calc((100dvh - var(--splash-cinema-h)) / 2), transparent calc((100dvh - var(--splash-cinema-h)) / 2 + 1px), transparent calc((100dvh + var(--splash-cinema-h)) / 2 - 1px), rgba(3, 4, 13, 0.98) calc((100dvh + var(--splash-cinema-h)) / 2), rgba(3, 4, 13, 0.98) 100%),
    linear-gradient(90deg, rgba(3, 4, 13, 0.98) 0, rgba(3, 4, 13, 0.98) calc((100vw - var(--splash-cinema-w)) / 2), transparent calc((100vw - var(--splash-cinema-w)) / 2 + 1px), transparent calc((100vw + var(--splash-cinema-w)) / 2 - 1px), rgba(3, 4, 13, 0.98) calc((100vw + var(--splash-cinema-w)) / 2), rgba(3, 4, 13, 0.98) 100%),
    radial-gradient(circle at 72% 48%, rgba(85, 223, 255, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(3, 4, 13, 0.62), rgba(3, 4, 13, 0.08) 47%, rgba(3, 4, 13, 0.28)) !important;
}

.splash-cinema-frame {
  position: relative !important;
  z-index: 1 !important;
  width: var(--splash-cinema-w) !important;
  height: var(--splash-cinema-h) !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(90deg, rgba(3, 4, 13, 0.5), rgba(3, 4, 13, 0.02) 46%, rgba(3, 4, 13, 0.16)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=122") center / cover no-repeat !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}

.splash-cinema-frame::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 72% 45%, rgba(85, 223, 255, 0.22), transparent 21%),
    radial-gradient(circle at 82% 74%, rgba(255, 111, 174, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.07), transparent 28%, rgba(3, 4, 13, 0.3));
  mix-blend-mode: screen;
}

.splash-cinema-frame::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  width: auto !important;
  transform: none !important;
  animation: none !important;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(3, 4, 13, 0.42) 100%),
    linear-gradient(180deg, rgba(3, 4, 13, 0.82) 0 8.8%, transparent 8.8% 91.2%, rgba(3, 4, 13, 0.86) 91.2% 100%) !important;
}

.splash-cinema-glow,
.splash-cinema-sparkle {
  display: none !important;
}

.splash-copy {
  z-index: 4 !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(36px, calc((100dvh - var(--splash-cinema-h)) / 2 + clamp(42px, 6.4vh, 86px))) !important;
  width: min(1120px, calc(var(--splash-cinema-w) - 54px)) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  text-shadow:
    0 6px 26px rgba(0, 0, 0, 0.74),
    0 0 34px rgba(85, 223, 255, 0.2) !important;
}

.splash-copy .eyebrow {
  display: block !important;
  width: auto !important;
  margin: 0 auto clamp(8px, 1.2vh, 14px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffd86b !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  font-size: clamp(0.78rem, 1.08vw, 1.08rem) !important;
  font-weight: 1000 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.splash-copy h1 {
  display: grid !important;
  gap: 0 !important;
  margin: 0 auto !important;
  font-family: var(--gk-title-font), "Nunito", "Inter", sans-serif !important;
  line-height: 0.86 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.splash-copy h1 span,
.splash-copy h1 strong {
  display: block !important;
  color: #fff9ef !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.72)) !important;
  text-shadow:
    0 3px 0 rgba(48, 34, 71, 0.42),
    0 0 24px rgba(85, 223, 255, 0.26),
    0 0 48px rgba(255, 111, 174, 0.16) !important;
}

.splash-copy h1 span {
  font-size: clamp(2.1rem, 4.7vw, 5.15rem) !important;
}

.splash-copy h1 strong {
  font-size: clamp(3rem, 7.2vw, 7.55rem) !important;
  color: #ffd86b !important;
}

.splash-copy .splash-tagline,
.splash-copy p.splash-tagline {
  width: min(920px, 100%) !important;
  max-width: none !important;
  margin: clamp(12px, 1.9vh, 20px) auto clamp(18px, 2.8vh, 34px) !important;
  color: #fff4d8 !important;
  font-size: clamp(1rem, 1.45vw, 1.35rem) !important;
  font-weight: 950 !important;
  line-height: 1.32 !important;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.78) !important;
}

.splash-copy .primary-button.splash-play-button,
.splash-copy .primary-button.splash-play-button:hover {
  display: inline-grid !important;
  min-width: clamp(210px, 20vw, 320px) !important;
  min-height: clamp(58px, 6.3vh, 76px) !important;
  padding: 0 clamp(28px, 3vw, 46px) !important;
  border: 2px solid rgba(255, 249, 239, 0.88) !important;
  border-radius: 999px !important;
  color: #fff9ef !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 249, 239, 0.55), transparent 38%),
    linear-gradient(135deg, #6a4cff 0%, #ff6fae 48%, #55dfff 100%) !important;
  box-shadow:
    0 18px 50px rgba(3, 4, 13, 0.45),
    0 0 0 7px rgba(255, 216, 107, 0.1),
    0 0 34px rgba(85, 223, 255, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -10px 22px rgba(48, 34, 71, 0.34) !important;
  text-shadow: 0 3px 14px rgba(3, 4, 13, 0.62) !important;
}

.splash-copy .primary-button.splash-play-button span {
  color: #fff9ef !important;
  font-size: clamp(1.06rem, 1.32vw, 1.34rem) !important;
  font-weight: 1000 !important;
  letter-spacing: 0.08em !important;
}

.splash-copy .primary-button.splash-play-button small {
  display: none !important;
}

@media (max-width: 740px) {
  .splash-copy {
    bottom: max(22px, calc((100dvh - var(--splash-cinema-h)) / 2 + 28px)) !important;
    width: min(96vw, calc(var(--splash-cinema-w) - 28px)) !important;
  }

  .splash-copy .splash-tagline {
    display: none !important;
  }

  .splash-copy .primary-button.splash-play-button {
    min-height: 54px !important;
  }
}

/* v123 stabilization/readability pass: final Glowkin Luminous UI guardrails. */
:root {
  --gk-readable-dark: #302247;
  --gk-readable-muted: rgba(48, 34, 71, 0.76);
  --gk-readable-light: #fff9ef;
  --gk-panel-cream: rgba(255, 249, 239, 0.94);
  --gk-panel-violet: rgba(56, 32, 110, 0.84);
}

.menu-showcase {
  grid-template-rows: minmax(322px, auto) auto !important;
  gap: 18px !important;
  overflow: visible !important;
}

.menu-hero-stage {
  min-height: 344px !important;
  padding-bottom: 10px !important;
  overflow: visible !important;
}

#menuHeroCanvas {
  max-height: 318px !important;
  object-fit: contain !important;
}

.menu-hero-copy {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 8px !important;
  padding-top: 20px !important;
}

.profile-panel {
  color: var(--gk-readable-dark) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(85, 223, 255, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 244, 216, 0.91)) !important;
  border-color: rgba(106, 76, 255, 0.28) !important;
}

.profile-panel :is(strong, span, b, em, small, .stat-row span, #coinCount, #weaponName, .panel-label) {
  color: var(--gk-readable-dark) !important;
  text-shadow: none !important;
}

.profile-card {
  min-height: 76px !important;
  overflow: visible !important;
  align-items: center !important;
}

.profile-card canvas {
  width: 66px !important;
  height: 66px !important;
  padding: 3px !important;
  object-fit: contain !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 216, 107, 0.34), transparent 58%),
    rgba(255, 255, 255, 0.64) !important;
}

.stat-grid span,
.stat-row span {
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  border-color: rgba(106, 76, 255, 0.18) !important;
}

.chat-panel {
  color: var(--gk-readable-light) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(85, 223, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(30, 23, 68, 0.88), rgba(56, 32, 110, 0.84)) !important;
  border-color: rgba(255, 249, 239, 0.34) !important;
}

.chat-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
  align-items: center !important;
}

.chat-head .mini-button {
  min-width: 68px !important;
  min-height: 34px !important;
  color: var(--gk-readable-dark) !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b) !important;
}

.chat-line {
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 249, 239, 0.9) !important;
  border-color: rgba(106, 76, 255, 0.18) !important;
}

.chat-line :is(strong, span) {
  color: var(--gk-readable-dark) !important;
  text-shadow: none !important;
}

.chat-form input,
.support-input-row input {
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 249, 239, 0.96) !important;
}

.settings-dialog {
  width: min(860px, calc(100vw - 28px)) !important;
}

.settings-dialog form,
.gear-dialog form,
.shop-dialog form,
.local-shop-dialog form,
.arcade-dialog form,
.support-dialog form,
.dialogue-dialog form {
  color: var(--gk-readable-dark) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 223, 255, 0.22), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255, 111, 174, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(255, 244, 216, 0.95)) !important;
}

.settings-dialog :is(strong, span, p, em, label, small, button),
.gear-dialog :is(strong, span, p, em, label, small, button),
.shop-dialog :is(strong, span, p, em, label, small, button),
.local-shop-dialog :is(strong, span, p, em, label, small, button),
.arcade-dialog :is(strong, span, p, em, label, small, button) {
  text-shadow: none !important;
}

.settings-dialog :is(.dialog-head strong, .setting-row strong, .game-log-panel strong),
.gear-dialog :is(.dialog-head strong, .gear-section-title, .gear-item strong, .slot-card strong, .combo-panel strong),
.shop-dialog :is(.dialog-head strong, .shop-item strong, .prism-product-title strong) {
  color: var(--gk-readable-dark) !important;
}

.settings-dialog :is(.shop-note, .setting-row em, .game-log-panel span),
.gear-dialog :is(.gear-item span, .gear-item p, .slot-card span, .slot-card em, .combo-panel span),
.shop-dialog :is(.shop-note, .shop-item p, .shop-item span, .provider-row span) {
  color: var(--gk-readable-muted) !important;
}

.setting-row,
.game-log-panel,
.gear-dialog .slot-card,
.gear-dialog .combo-panel,
.gear-dialog .gear-item,
.shop-item,
.grownup-gate,
.unicorn-derby-card,
.unicorn-derby-result {
  color: var(--gk-readable-dark) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 216, 107, 0.22), transparent 28%),
    rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(106, 76, 255, 0.18) !important;
}

.setting-row input[type="range"] {
  accent-color: #6a4cff !important;
}

.gear-loadout-tools {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 6px 0 10px !important;
}

.gear-unequip-all,
.gear-unequip {
  min-height: 38px !important;
  color: var(--gk-readable-light) !important;
  background: linear-gradient(135deg, #6a4cff, #ff6fae) !important;
  border: 1px solid rgba(255, 249, 239, 0.5) !important;
  border-radius: 8px !important;
}

.gear-unequip-all:disabled {
  opacity: 0.5 !important;
}

.prism-shop-dialog .grownup-gate {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.9fr) auto auto !important;
  gap: 12px !important;
  align-items: end !important;
}

.prism-shop-dialog .grownup-gate p {
  margin: 0 !important;
  align-self: center !important;
  font-weight: 950 !important;
}

.prism-shop-dialog .grownup-gate :is(input, button) {
  min-height: 44px !important;
}

.admin-dialog {
  color: var(--gk-readable-dark) !important;
}

.admin-dialog form {
  color: var(--gk-readable-dark) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 223, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(255, 111, 174, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(255, 244, 216, 0.94)) !important;
}

.admin-dialog :is(.admin-status, .admin-command, .admin-overview-panel, .admin-section-list, .admin-record-list, .admin-editor, .admin-hierarchy, .admin-quick-panel, .admin-backlog-panel, .admin-pricing-panel, .admin-map-visualizer, .admin-map-flow, .admin-analytics-panel, .admin-support-board, .admin-moderation-board, .admin-email-test-panel, .admin-settings-tabs, .admin-toggle-row, .admin-setting-row) {
  color: var(--gk-readable-dark) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 216, 107, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(106, 76, 255, 0.18) !important;
}

.admin-dialog :is(strong, h2, h3, label, th, td, span, p, em, small, button, .shop-note, .admin-result) {
  color: var(--gk-readable-dark) !important;
  text-shadow: none !important;
}

.admin-dialog :is(input, select, textarea, option, .admin-json-editor, .admin-record-search) {
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 249, 239, 0.98) !important;
  border-color: rgba(106, 76, 255, 0.24) !important;
}

.admin-dialog :is(.primary-button, .secondary-button, .mini-button, .admin-tabs button, .admin-settings-tabs button) {
  color: var(--gk-readable-dark) !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b) !important;
  border-color: rgba(106, 76, 255, 0.22) !important;
}

.admin-dialog :is(.admin-tabs button.is-active, .admin-settings-tabs button.is-active) {
  color: var(--gk-readable-light) !important;
  background: linear-gradient(135deg, #6a4cff, #ff6fae) !important;
}

.game-log-panel {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(106, 76, 255, 0.18) !important;
  border-radius: 8px !important;
}

.game-log-head,
.game-log-list {
  display: grid !important;
  gap: 8px !important;
}

.game-log-list article {
  display: grid !important;
  grid-template-columns: 90px 150px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border-radius: 8px !important;
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 249, 239, 0.82) !important;
}

.game-log-list :is(b, strong, span) {
  color: var(--gk-readable-dark) !important;
}

.arcade-board--starwhirl_defender,
.arcade-board--unicorn_derby {
  display: grid !important;
  gap: 14px !important;
  align-content: start !important;
  min-height: 460px !important;
}

.starwhirl-canvas,
.unicorn-derby-canvas {
  width: 100% !important;
  height: clamp(360px, 48vh, 560px) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 216, 107, 0.22), transparent 28%),
    linear-gradient(180deg, #38206e, #1e1744) !important;
}

.unicorn-derby-card {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto auto !important;
  gap: 12px !important;
  padding: 14px !important;
  align-items: end !important;
}

.unicorn-derby-card label {
  display: grid !important;
  gap: 5px !important;
}

.unicorn-derby-card :is(select, input) {
  min-height: 44px !important;
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 249, 239, 0.98) !important;
}

.unicorn-derby-boosts {
  grid-column: 1 / -1 !important;
}

@media (max-width: 980px) {
  .prism-shop-dialog .grownup-gate,
  .unicorn-derby-card,
  .game-log-list article {
    grid-template-columns: 1fr !important;
  }
}

/* v124 live checkout, profile HUD, party chat, and arcade layout polish. */
.profile-panel {
  width: min(352px, calc(100vw - 28px)) !important;
}

.profile-card {
  grid-template-columns: 76px minmax(0, 1fr) !important;
  min-height: 86px !important;
}

.profile-card canvas {
  width: 76px !important;
  height: 76px !important;
  padding: 0 !important;
}

.stat-row {
  display: grid !important;
  grid-template-columns: minmax(116px, 0.92fr) minmax(0, 1.28fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#coinCount,
#weaponName {
  display: grid !important;
  align-content: center !important;
  gap: 1px !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 7px 9px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#coinCount b,
#weaponName b,
#coinCount small,
#weaponName small {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--gk-readable-dark) !important;
  text-shadow: none !important;
}

#coinCount b,
#weaponName b {
  font-size: 0.84rem !important;
  line-height: 1.05 !important;
}

#coinCount small,
#weaponName small {
  font-size: 0.66rem !important;
  line-height: 1.1 !important;
  opacity: 0.78 !important;
}

.chat-panel {
  color: var(--gk-readable-dark) !important;
  border-color: rgba(106, 76, 255, 0.24) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 223, 255, 0.24), transparent 32%),
    radial-gradient(circle at 90% 4%, rgba(255, 216, 107, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 244, 216, 0.9)) !important;
}

.chat-panel :is(strong, span, p, label, button) {
  color: var(--gk-readable-dark) !important;
  text-shadow: none !important;
}

.chat-head {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
}

.chat-head .mini-button {
  min-width: 72px !important;
  color: var(--gk-readable-dark) !important;
  background: linear-gradient(135deg, #fff9ef, #ffd86b) !important;
}

.chat-line,
.chat-message {
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(106, 76, 255, 0.18) !important;
}

.chat-form {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

.chat-form input {
  min-width: 0 !important;
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 249, 239, 0.98) !important;
}

.prism-shop-dialog .grownup-gate {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.15fr) minmax(190px, 0.9fr) auto minmax(148px, 0.66fr) auto !important;
  gap: 10px !important;
  align-items: end !important;
  color: var(--gk-readable-dark) !important;
}

.prism-shop-dialog .grownup-gate p {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  color: var(--gk-readable-dark) !important;
}

.prism-shop-dialog .grownup-gate .field {
  min-width: 0 !important;
}

.prism-shop-dialog .grownup-gate :is(input, button) {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 46px !important;
}

.shop-provider-unavailable {
  display: block;
  grid-column: 1 / -1;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--gk-readable-dark) !important;
  background: rgba(255, 249, 239, 0.78);
  font-weight: 850;
}

.game-log-panel {
  display: grid !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

.game-log-panel summary {
  cursor: pointer;
  list-style: none;
}

.game-log-panel summary::-webkit-details-marker {
  display: none;
}

.game-log-head {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) !important;
  align-items: center !important;
  padding: 3px 0 !important;
}

.game-log-head::after {
  content: "Expand";
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff9ef;
  background: linear-gradient(135deg, #6a4cff, #ff6fae);
  font-size: 0.72rem;
  font-weight: 950;
}

.game-log-panel[open] .game-log-head::after {
  content: "Collapse";
}

.game-log-list {
  max-height: min(42vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.arcade-shell {
  grid-template-columns: minmax(520px, 1fr) minmax(220px, 260px) !important;
  gap: 18px !important;
}

.arcade-board--starwhirl_defender,
.arcade-board--unicorn_derby {
  display: block !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 12px !important;
}

.starwhirl-canvas,
.unicorn-derby-canvas {
  display: block !important;
  width: 100% !important;
  height: clamp(390px, 50vh, 560px) !important;
  border-radius: 22px !important;
  touch-action: none !important;
}

.unicorn-derby-card {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) repeat(2, minmax(120px, auto)) !important;
  align-items: end !important;
}

.unicorn-derby-boosts {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
}

.checkout-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  color: var(--gk-readable-dark, #302247);
  background:
    radial-gradient(circle at 20% 18%, rgba(85, 223, 255, 0.34), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(255, 111, 174, 0.28), transparent 30%),
    linear-gradient(145deg, #38206e, #6a4cff 48%, #55dfff);
}

.checkout-shell {
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  min-height: min(640px, calc(100vh - 48px));
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  border: 1px solid rgba(255, 249, 239, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(30, 23, 68, 0.82), rgba(30, 23, 68, 0.18)),
    url("assets/png/ui/prismworlds-cinematic-splash.png?v=124") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 34px 90px rgba(5, 8, 18, 0.42);
}

.checkout-hero {
  position: relative;
  width: min(560px, 100%);
  justify-self: start;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 249, 239, 0.34);
  border-radius: 24px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 107, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(30, 23, 68, 0.86), rgba(56, 32, 110, 0.76));
  backdrop-filter: blur(12px);
}

.checkout-orb {
  position: absolute;
  right: 24px;
  top: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff9ef, #55dfff 34%, #6a4cff 70%, #ff6fae);
  box-shadow: 0 0 28px rgba(85, 223, 255, 0.48);
}

.checkout-hero h1 {
  margin: 0;
  color: #fff9ef;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.checkout-hero .subtitle,
.checkout-note {
  margin: 0;
  color: rgba(255, 249, 239, 0.9);
  font-weight: 850;
  line-height: 1.45;
}

.checkout-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkout-status-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 249, 239, 0.22);
  border-radius: 16px;
  background: rgba(255, 249, 239, 0.12);
}

.checkout-status-grid span {
  color: rgba(255, 249, 239, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.checkout-status-grid strong {
  color: #fff9ef;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.checkout-actions .primary-button,
.checkout-link {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #302247 !important;
  text-decoration: none;
  font-weight: 950;
  background: linear-gradient(135deg, #fff9ef, #ffd86b 58%, #ffb45e) !important;
  border: 1px solid rgba(255, 249, 239, 0.52);
}

.checkout-ok .checkout-hero {
  box-shadow: 0 0 48px rgba(118, 240, 161, 0.28);
}

@media (max-width: 980px) {
  .arcade-shell {
    grid-template-columns: 1fr !important;
  }

  .prism-shop-dialog .grownup-gate,
  .unicorn-derby-card,
  .unicorn-derby-boosts,
  .checkout-status-grid,
  .stat-row {
    grid-template-columns: 1fr !important;
  }

  .checkout-shell {
    aspect-ratio: auto;
  }
}

/* v130 painted raster foundation: all cinematic openings use the new imagegen painting. */
.splash-screen::before,
.splash-cinema-frame,
.loading-screen,
.transition-screen {
  background-image: url("assets/png/painted/ui/cinematic_splash.png?v=130") !important;
  background-size: cover !important;
  background-position: center !important;
}

.arcade-board--crystal_memory {
  grid-template-columns: repeat(4, minmax(74px, 1fr)) !important;
  gap: 12px !important;
  padding: 18px !important;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 216, 107, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(56, 32, 110, 0.92), rgba(85, 223, 255, 0.18), rgba(30, 23, 68, 0.96)) !important;
}

.memory-card {
  min-height: 82px;
  border: 2px solid rgba(255, 244, 216, 0.44);
  border-radius: 18px;
  color: #302247;
  font-weight: 950;
  font-size: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 216, 107, 0.46), transparent 34%),
    linear-gradient(145deg, #6a4cff, #ff6fae 62%, #55dfff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 16px 28px rgba(16, 10, 40, 0.32);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.memory-card::before {
  content: "✦";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff9ef;
  font-size: 2rem;
  text-shadow: 0 3px 10px rgba(30, 23, 68, 0.55);
}

.memory-card.is-open,
.memory-card.is-matched {
  background: linear-gradient(145deg, #fff4d8, #ffd86b 45%, #55dfff);
  transform: translateY(-2px) rotateX(6deg);
}

.memory-card.is-open::before,
.memory-card.is-matched::before {
  content: attr(data-symbol);
  color: #302247;
  font-size: 0.95rem;
  text-transform: capitalize;
}

.memory-card.is-matched {
  filter: saturate(1.18) brightness(1.08);
  box-shadow: 0 0 22px rgba(118, 240, 161, 0.42), 0 16px 28px rgba(16, 10, 40, 0.24);
}

.arcade-board--prism_chess {
  grid-template-columns: repeat(8, minmax(42px, 1fr)) !important;
  gap: 4px !important;
  padding: 14px !important;
  background:
    radial-gradient(circle at 45% 30%, rgba(85, 223, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(30, 23, 68, 0.96), rgba(56, 32, 110, 0.94)) !important;
}

.chess-square {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 249, 239, 0.28);
  border-radius: 10px;
  color: #fff9ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3.6vw, 2.2rem);
  line-height: 1;
  display: grid;
  place-items: center;
  text-shadow: 0 3px 10px rgba(30, 23, 68, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.chess-square--cream {
  background: linear-gradient(145deg, rgba(255, 244, 216, 0.9), rgba(255, 216, 107, 0.68));
}

.chess-square--violet {
  background: linear-gradient(145deg, rgba(106, 76, 255, 0.88), rgba(255, 111, 174, 0.42));
}

.chess-square.has-player {
  color: #302247;
}

.chess-square.has-guide {
  color: #fff9ef;
}

.chess-square.is-selected {
  outline: 3px solid #55dfff;
  box-shadow: 0 0 24px rgba(85, 223, 255, 0.52);
}

.chess-square.is-legal {
  outline: 2px dashed #76f0a1;
}

/* v131: stable collapsed quest dock and runtime asset polish guards. */
.quest-panel.is-collapsed {
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
}

.quest-panel.is-collapsed .quest-head {
  gap: 8px !important;
  margin: 0 !important;
}

.quest-panel.is-collapsed .panel-label {
  min-width: 54px;
  color: #302247 !important;
  text-align: center;
}

.quest-panel.is-collapsed .quest-toggle-button {
  min-width: 72px;
  color: #fff9ef !important;
  background: linear-gradient(135deg, #6a4cff, #55dfff) !important;
}

.quest-panel.is-hidden {
  display: none !important;
}

.equipped-gear-badge img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

#gpuGame {
  opacity: 1;
  transition: none;
}

/* v132: payment/admin tooling, full-screen pause, and stable HUD gear polish. */
body.is-game-paused .game-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 216, 107, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(30, 23, 68, 0.72), rgba(106, 76, 255, 0.34), rgba(85, 223, 255, 0.16));
  backdrop-filter: blur(4px) saturate(1.1);
}

body.is-game-paused .game-shell::after {
  content: "Paused";
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 66;
  min-width: min(520px, calc(100vw - 44px));
  padding: 28px 34px;
  border-radius: 30px;
  color: #fff9ef;
  text-align: center;
  font-family: "Nunito", "Baloo 2", system-ui, sans-serif;
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 4px 20px rgba(30, 23, 68, 0.58);
  border: 2px solid rgba(255, 244, 216, 0.58);
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 216, 107, 0.36), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(85, 223, 255, 0.26), transparent 22%),
    linear-gradient(145deg, rgba(56, 32, 110, 0.94), rgba(106, 76, 255, 0.72), rgba(30, 23, 68, 0.94));
  box-shadow: 0 34px 90px rgba(16, 10, 40, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.is-boss-impact .game-shell {
  animation: boss-impact-shake 620ms cubic-bezier(.2,.8,.2,1);
}

@keyframes boss-impact-shake {
  0%, 100% { transform: translate3d(0, 0, 0); filter: none; }
  14% { transform: translate3d(-8px, 3px, 0); filter: saturate(1.22) brightness(1.08); }
  28% { transform: translate3d(7px, -4px, 0); }
  42% { transform: translate3d(-5px, 5px, 0); }
  56% { transform: translate3d(4px, -3px, 0); }
  72% { transform: translate3d(-2px, 2px, 0); }
}

.equipped-gear-tray,
.equipped-gear-badge {
  contain: layout paint;
}

.equipped-gear-badge,
.equipped-gear-badge img {
  animation: none !important;
  transition: opacity 120ms ease, transform 120ms ease, filter 120ms ease !important;
}

.equipped-gear-badge img {
  opacity: 1 !important;
  object-fit: contain !important;
  image-rendering: auto;
}

.admin-tool-panel {
  margin: 18px 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255, 244, 216, 0.32);
  border-radius: 28px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 216, 107, 0.2), transparent 26%),
    radial-gradient(circle at 88% 4%, rgba(85, 223, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(30, 23, 68, 0.96), rgba(56, 32, 110, 0.92));
  box-shadow: 0 24px 56px rgba(16, 10, 40, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.admin-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-tool-head strong {
  display: block;
  color: #fff9ef;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 950;
}

.admin-tool-head span,
.admin-tool-panel label span {
  color: rgba(255, 249, 239, 0.82);
  font-weight: 800;
}

.admin-tool-pill {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #302247 !important;
  background: linear-gradient(135deg, #fff4d8, #ffd86b);
  box-shadow: 0 8px 20px rgba(255, 216, 107, 0.22);
}

.asset-inspector-grid,
.admin-message-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.asset-generator-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 249, 239, 0.08);
  border: 1px solid rgba(255, 249, 239, 0.18);
}

.admin-tool-panel label {
  display: grid;
  gap: 7px;
}

.admin-tool-panel input,
.admin-tool-panel select,
.admin-tool-panel textarea {
  width: 100%;
  color: #302247;
  background: #fff9ef;
  border: 2px solid rgba(85, 223, 255, 0.46);
  border-radius: 16px;
  padding: 11px 13px;
  font: 850 0.98rem "Nunito", system-ui, sans-serif;
  box-shadow: inset 0 2px 7px rgba(48, 34, 71, 0.08);
}

.asset-generator-wide,
.admin-message-wide,
.admin-message-actions {
  grid-column: 1 / -1;
}

.admin-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.admin-primary-command {
  border: 0;
  border-radius: 18px;
  padding: 13px 16px;
  color: #302247;
  font-weight: 950;
  cursor: pointer;
  background: linear-gradient(135deg, #ffb45e, #ffd86b 58%, #fff4d8);
  box-shadow: 0 14px 28px rgba(255, 180, 94, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.admin-primary-command span,
.admin-command span {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: rgba(48, 34, 71, 0.82);
}

.asset-inspector-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.asset-inspector-chip {
  min-height: 72px;
  text-align: left;
  border: 1px solid rgba(255, 244, 216, 0.28);
  border-radius: 18px;
  color: #fff9ef;
  background: rgba(255, 249, 239, 0.08);
}

.asset-inspector-chip strong,
.asset-inspector-chip span {
  display: block;
  color: inherit;
}

@media (max-width: 780px) {
  .asset-inspector-grid,
  .admin-message-form {
    grid-template-columns: 1fr;
  }
}


















