/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body { margin: 0; padding: 0; }

:root{
  --bg-top: #08304a;
  --bg-bottom: #041c29;
  --text: #ffffff;
  --muted: #cfeeff;
  --accent-reef: #ffb86b;
  --accent-kelp: #33e1a1;
  --accent-surf: #7dd3ff;

  --btn-bg1: #0f78d6;
  --btn-bg2: #0a4e99;
  --btn-border: #063665;
  --focus: #ffe066;

  --panel: #0c2f48;
  --panel-border: #2b6da3;
  --divider: rgba(255,255,255,0.28);
  --surface: rgba(12, 47, 72, 0.20);
  --surface-strong: rgba(9, 38, 58, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(3, 22, 34, 0.82);
  --input-border: rgba(125, 211, 255, 0.46);
  --input-border-hover: rgba(255, 184, 107, 0.72);
  --danger: #ffd9d9;

  --motion-fast: 160ms;
  --motion-medium: 280ms;
  --motion-slow: 560ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-contrast: more){
  :root{ --btn-bg1:#1c82ff; --btn-bg2:#0b4fb0; --panel:#0e3958; --panel-border:#66b2ff; }
}

body{
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 18px;
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bottom));
  color: var(--text);
  text-align: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

/* Page-level seafloor decor sits behind the glass UI and never catches input. */
body::before,
body::after {
  content: "";
  position: fixed;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.23;
}

body::before {
  left: 0;
  inline-size: min(34vw, 25rem);
  block-size: min(44vh, 25rem);
  background:
    linear-gradient(96deg, transparent 0 13%, rgba(51,225,161,0.32) 14% 20%, transparent 21%),
    linear-gradient(82deg, transparent 0 30%, rgba(125,211,255,0.20) 31% 36%, transparent 37%),
    linear-gradient(112deg, transparent 0 48%, rgba(51,225,161,0.26) 49% 55%, transparent 56%),
    linear-gradient(72deg, transparent 0 68%, rgba(255,184,107,0.18) 69% 75%, transparent 76%),
    radial-gradient(ellipse at 12% 94%, rgba(255,184,107,0.32) 0 9%, transparent 10%),
    radial-gradient(ellipse at 38% 98%, rgba(255,159,135,0.30) 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 100%, rgba(51,225,161,0.18), transparent 68%);
  filter: drop-shadow(0 0 1rem rgba(51,225,161,0.10));
  transform-origin: 50% 100%;
}

body::after {
  right: 0;
  inline-size: min(38vw, 28rem);
  block-size: min(36vh, 22rem);
  background:
    radial-gradient(ellipse at 82% 94%, rgba(255,224,102,0.25) 0 10%, transparent 11%),
    radial-gradient(ellipse at 62% 96%, rgba(255,184,107,0.28) 0 8%, transparent 9%),
    radial-gradient(circle at 74% 72%, rgba(255,159,135,0.32) 0 7%, transparent 8%),
    radial-gradient(circle at 58% 58%, rgba(255,159,135,0.22) 0 6%, transparent 7%),
    linear-gradient(108deg, transparent 0 24%, rgba(51,225,161,0.22) 25% 31%, transparent 32%),
    linear-gradient(76deg, transparent 0 48%, rgba(125,211,255,0.18) 49% 55%, transparent 56%),
    radial-gradient(ellipse at 76% 100%, rgba(255,184,107,0.20), transparent 68%);
  filter: drop-shadow(0 0 1rem rgba(255,184,107,0.10));
  transform-origin: 50% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  body::before,
  body::after {
    animation: seafloor-drift 12s ease-in-out infinite alternate;
  }
}

@keyframes seafloor-drift {
  0% {
    transform: translateY(0) rotate(-0.8deg);
  }
  100% {
    transform: translateY(-0.22rem) rotate(0.8deg);
  }
}

@media (max-width: 700px) {
  body::before,
  body::after {
    opacity: 0.15;
  }
}

/* Function-first section identity: undersea tools, not extra content. */
.home-hero,
.home-status,
.home-section,
.area-hero,
.area-section-card,
.service-hero,
.service-section,
.shop-hero,
.shop-shelf,
.inventory-summary,
.inventory-card,
.combat-card,
.watch-fight-hero,
.watch-fight-section,
.watch-fight-scorecard-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-hero > *,
.home-status > *,
.home-section > *,
.area-hero > *,
.area-section-card > *,
.service-hero > *,
.service-section > *,
.shop-hero > *,
.shop-shelf > *,
.inventory-summary > *,
.inventory-card > *,
.combat-card > *,
.watch-fight-hero > *,
.watch-fight-section > *,
.watch-fight-scorecard-panel > * {
  position: relative;
  z-index: 1;
}

.home-hero::before,
.home-status::before,
.home-section::before,
.area-hero::before,
.area-section-card--explore::before,
.area-section-card--services::before,
.service-hero::before,
.service-section::before,
.shop-hero::before,
.shop-shelf::before,
.inventory-summary::before,
.inventory-card::before,
.combat-card::before,
.watch-fight-hero::before,
.watch-fight-section::before,
.watch-fight-scorecard-panel::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  inline-size: clamp(2.4rem, 5vw, 4rem);
  block-size: clamp(2.4rem, 5vw, 4rem);
  pointer-events: none;
  z-index: 0;
  opacity: 0.20;
  filter: drop-shadow(0 0 0.8rem rgba(125, 211, 255, 0.08));
}

.home-hero::before,
.home-status::before,
.home-section::before {
  border-radius: 54% 54% 14% 14% / 72% 72% 18% 18%;
  background:
    radial-gradient(circle at 50% 86%, rgba(255,255,255,0.30) 0 7%, transparent 8%),
    linear-gradient(42deg, transparent 0 46%, rgba(255,224,102,0.38) 47% 53%, transparent 54%),
    repeating-conic-gradient(from -45deg at 50% 100%, rgba(255,224,102,0.34) 0 7deg, rgba(255,184,107,0.06) 8deg 15deg),
    radial-gradient(ellipse at 50% 100%, rgba(255,184,107,0.42), rgba(125,211,255,0.10) 58%, transparent 70%);
  transform: rotate(-7deg);
}

.area-hero::before,
.area-section-card--explore::before {
  clip-path: polygon(50% 0, 88% 42%, 62% 42%, 62% 100%, 38% 100%, 38% 42%, 12% 42%);
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.40) 0 11%, transparent 12%),
    linear-gradient(180deg, rgba(116,244,223,0.46), rgba(125,211,255,0.14));
}

.area-section-card--services::before,
.service-hero::before,
.service-section::before {
  border-radius: 54% 46% 58% 42%;
  background:
    radial-gradient(circle at 38% 42%, rgba(255,255,255,0.46) 0 10%, transparent 11%),
    radial-gradient(circle at 62% 42%, rgba(255,255,255,0.30) 0 8%, transparent 9%),
    linear-gradient(135deg, transparent 0 64%, rgba(255,184,107,0.34) 65% 75%, transparent 76%),
    radial-gradient(ellipse at 50% 52%, rgba(125,211,255,0.28), rgba(255,184,107,0.12) 60%, transparent 72%);
}

.shop-hero::before,
.shop-shelf::before {
  clip-path: polygon(9% 0, 82% 0, 100% 50%, 82% 100%, 9% 100%, 0 50%);
  background:
    radial-gradient(circle at 23% 50%, rgba(4,28,41,0.72) 0 7%, rgba(255,255,255,0.35) 8% 11%, transparent 12%),
    repeating-conic-gradient(from -50deg at 50% 100%, rgba(255,224,102,0.30) 0 8deg, rgba(255,184,107,0.08) 9deg 16deg),
    linear-gradient(135deg, rgba(255,184,107,0.48), rgba(255,224,102,0.12));
}

.inventory-summary::before,
.inventory-card::before {
  border-radius: 44% 44% 18% 18% / 58% 58% 28% 28%;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(255,224,102,0.40) 33% 39%, transparent 40% 60%, rgba(255,224,102,0.32) 61% 67%, transparent 68%),
    radial-gradient(ellipse at 50% 28%, rgba(255,255,255,0.28) 0 9%, transparent 10%),
    linear-gradient(180deg, rgba(125,211,255,0.24), rgba(51,225,161,0.16) 55%, rgba(3,22,34,0.08));
}

.combat-card::before {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(255,224,102,0.38) 29% 35%, transparent 36% 46%, rgba(255,159,135,0.30) 47% 52%, transparent 53%),
    linear-gradient(90deg, transparent 0 46%, rgba(255,184,107,0.42) 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 0 46%, rgba(255,184,107,0.30) 47% 53%, transparent 54%);
}

.watch-fight-hero::before,
.watch-fight-section::before {
  border-radius: 999px 999px 999px 34%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.38) 0 13%, transparent 14% 23%, rgba(125,211,255,0.28) 24% 31%, transparent 32%),
    radial-gradient(circle at 68% 30%, rgba(255,184,107,0.32) 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 55%, rgba(125,211,255,0.22), transparent 66%);
  transform: rotate(-8deg);
}

.watch-fight-scorecard-panel::before {
  border-radius: 0.4rem;
  background:
    linear-gradient(90deg, rgba(255,224,102,0.34) 0 18%, transparent 19% 100%),
    linear-gradient(180deg, rgba(255,255,255,0.30) 0 10%, transparent 11% 25%, rgba(255,255,255,0.18) 26% 34%, transparent 35% 50%, rgba(255,255,255,0.16) 51% 59%, transparent 60%),
    rgba(125,211,255,0.16);
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero::before,
  .area-hero::before,
  .service-hero::before,
  .shop-hero::before,
  .inventory-summary::before,
  .combat-card::before,
  .watch-fight-hero::before {
    animation: section-identity-glow 6.5s ease-in-out infinite;
  }
}

@keyframes section-identity-glow {
  0%,
  100% {
    opacity: 0.17;
    filter: drop-shadow(0 0 0.55rem rgba(125, 211, 255, 0.06));
  }
  50% {
    opacity: 0.25;
    filter: drop-shadow(0 0 1rem rgba(255, 184, 107, 0.12));
  }
}

@media (max-width: 700px) {
  .home-hero::before,
  .home-status::before,
  .home-section::before,
  .area-hero::before,
  .area-section-card--explore::before,
  .area-section-card--services::before,
  .service-hero::before,
  .service-section::before,
  .shop-hero::before,
  .shop-shelf::before,
  .inventory-summary::before,
  .inventory-card::before,
  .combat-card::before,
  .watch-fight-hero::before,
  .watch-fight-section::before,
  .watch-fight-scorecard-panel::before {
    top: 0.5rem;
    right: 0.55rem;
    inline-size: 2.2rem;
    block-size: 2.2rem;
    opacity: 0.14;
    animation: none;
  }
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  border: 3px solid var(--focus);
  border-radius: 10px;
  background: #041c29;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

/* ===== Headings ===== */
h1,h2,h3{
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:#fff; text-shadow:none;
}

/* ===== Links ===== */
a{ color: var(--accent-surf); text-decoration: underline; font-weight: 600; }
a:hover{ color:#fff; }

/* ===== Buttons ===== */
button,.btn{
  background: linear-gradient(145deg,var(--btn-bg1),var(--btn-bg2));
  border:3px solid var(--btn-border);
  border-radius:16px;
  padding:10px 20px;
  color:var(--text);
  font-size:18px;
  font-family:inherit;
  letter-spacing:.3px;
  text-transform:none;
  box-shadow:0 2px 0 rgba(0,0,0,.6);
  cursor:pointer;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, filter var(--motion-fast) ease;
  display:inline-block;
  position:relative; overflow:hidden;
}
button:hover,.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:0 4px 0 rgba(0,0,0,.54), 0 0 18px rgba(125,211,255,.18);
}
button:focus-visible,.btn:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
button:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
.btn-sm{ padding:.25rem .6rem; font-size:.95rem; border-width:2px; border-radius:12px; }

@keyframes ripple{ to{ transform:translate(-50%,-50%) scale(2); opacity:0; } }
button:active::after,.btn:active::after{
  content:""; position:absolute; border-radius:50%; width:120px; height:120px; left:50%; top:50%;
  background:rgba(255,255,255,.3); transform:translate(-50%,-50%) scale(.1);
  animation:ripple .5s linear; pointer-events:none;
}

.btn-linkish {
  background:none;
  border:none;
  color:inherit;
  text-decoration:underline;
  cursor:pointer;
}
.btn-linkish:hover { text-decoration:none; }

/* ===== Forms ===== */
label {
  font-weight: 700;
}

input,
select,
textarea {
  max-width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--input-border-hover);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(255, 224, 102, 0.25);
  outline-offset: 2px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(207, 238, 255, 0.72);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  inline-size: 1.05em;
  block-size: 1.05em;
  accent-color: var(--accent-reef);
  vertical-align: -0.12em;
}

fieldset {
  border: 1px solid rgba(125, 211, 255, 0.36);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

legend {
  padding: 0 0.35rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.28rem;
}

.field-error {
  color: var(--danger);
  font-weight: 700;
}

.admin-inline-preview {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(125, 211, 255, 0.32);
  border-radius: 8px;
  background: rgba(4, 28, 41, 0.42);
}

.admin-inline-preview h4 {
  margin: 0 0 0.35rem;
}

.admin-inline-preview__list {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
}

.admin-inline-preview__list li + li {
  margin-top: 0.4rem;
}


/* ===== Containers ===== */
.container{
  max-width: 1100px;
  margin:20px auto;
  padding:20px;
  background: rgba(12, 47, 72, 0.18);
  border: 1px solid rgba(58, 168, 255, .35); /* lighter border */
  border-radius:18px;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow:0 6px 18px rgba(0,0,0,0.45);
}
.container, .card{ text-align:left; }

.page-shell {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.guest-main {
  max-width: 1120px;
  padding-inline: 1rem;
}

.role-picker-grid,
.choice-card-grid{
  display:grid;
  gap:.75rem;
}

.role-picker-grid{
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.choice-card-grid{
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.picker-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.picker-help {
  margin: 0.35rem 0 0.75rem;
}

.picker-list {
  padding-left: 0;
  margin: 0;
}

.picker-list__item {
  list-style: none;
  margin: 0;
}

.role-card,
.choice-card{
  display:block;
  position: relative;
  cursor:pointer;
}

.role-card__radio,
.choice-card__radio{
  position:absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  box-shadow: none;
}

.role-card__radio[type="radio"],
.choice-card__radio[type="radio"] {
  width: 100%;
  height: 100%;
  inline-size: 100%;
  block-size: 100%;
}

.role-card__body,
.choice-card__body{
  position: relative;
  z-index: 1;
  display:flex;
  gap:.85rem;
  align-items:flex-start;
  min-height:100%;
  padding:.85rem;
  border:1px solid rgba(58,168,255,.35);
  border-radius:16px;
  background:rgba(12, 47, 72, 0.28);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.choice-card__body{
  flex-direction:column;
}

.role-card:hover .role-card__body,
.choice-card:hover .choice-card__body{
  border-color: rgba(125, 211, 255, .9);
  transform: translateY(-1px);
}

.role-card__radio:focus-visible + .role-card__body,
.choice-card__radio:focus-visible + .choice-card__body{
  outline:3px solid var(--focus);
  outline-offset:2px;
}

.role-card__radio:checked + .role-card__body,
.choice-card__radio:checked + .choice-card__body{
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(255, 224, 102, .25);
}

.role-card__image,
.role-card__fallback{
  flex:0 0 5.25rem;
  inline-size:5.25rem;
  block-size:5.25rem;
  border-radius:14px;
  background:#0b2b44;
}

.role-card__image{
  object-fit:cover;
  border:1px solid rgba(255,255,255,.1);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.role-card__fallback{
  display:grid;
  place-items:center;
  font-size:2rem;
  font-weight:800;
  color:var(--accent-surf);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) ease, color var(--motion-fast) ease;
}

.role-card:hover .role-card__image,
.role-card__radio:focus-visible + .role-card__body .role-card__image,
.role-card__radio:checked + .role-card__body .role-card__image {
  transform: scale(1.025);
  filter: brightness(1.04) saturate(1.04);
  border-color: rgba(255, 255, 255, 0.24);
}

.role-card:hover .role-card__fallback,
.role-card__radio:focus-visible + .role-card__body .role-card__fallback,
.role-card__radio:checked + .role-card__body .role-card__fallback {
  transform: scale(1.025);
  color: #f7fbff;
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.12);
}

.role-card__content{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:.35rem;
}

.role-card__title-row{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  align-items:baseline;
}

.role-card__stat {
  display: block;
  white-space: normal;
}

.role-card__description {
  display: block;
}

.choice-card__title{
  font-weight:700;
}

/* ===== Layout (sidebar left, main right) ===== */
.layout{
  display:flex;
  gap:1.5rem;
  align-items:flex-start;
  max-width:1600px;
  width:100%;
  margin:0 auto;
  padding:0 1rem;
  position: relative;
  isolation: isolate;
}
.player-panel{
  flex:0 0 18rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.main-col{
  flex: 1 1 auto;
  min-width: 0;
  width:100%;
  max-width:100%;
  position: relative;
  isolation: isolate;
}
.layout > * {
  position: relative;
  z-index: 1;
}
.player-panel > *,
.main-col > * {
  position: relative;
  z-index: 1;
}
.layout > main.container {
  min-width: 0;
  width: 100%;
}

/* Decorative reef accents: visual-only, behind the glass UI. */
.brand-banner::before,
.brand-banner::after,
.layout::before,
.layout::after,
.player-panel::before,
.main-col::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}

.brand-banner::before {
  inline-size: clamp(4.5rem, 9vw, 7.5rem);
  block-size: clamp(3.2rem, 6vw, 5rem);
  left: max(0.75rem, calc(50% - 34rem));
  bottom: 0.15rem;
  z-index: 2;
  border-radius: 56% 56% 12% 12% / 72% 72% 18% 18%;
  background:
    radial-gradient(ellipse at 50% 92%, rgba(255,255,255,0.26) 0 9%, transparent 10%),
    repeating-conic-gradient(from -48deg at 50% 100%, rgba(255,224,102,0.26) 0 7deg, rgba(255,184,107,0.08) 8deg 14deg),
    radial-gradient(ellipse at 50% 100%, rgba(255,184,107,0.34), rgba(255,224,102,0.10) 54%, transparent 70%);
  filter: blur(0.1px) drop-shadow(0 0 0.65rem rgba(255,184,107,0.10));
  transform: rotate(-8deg);
}

.brand-banner::after {
  inline-size: clamp(5rem, 10vw, 8rem);
  block-size: clamp(3rem, 6vw, 5rem);
  right: max(0.85rem, calc(50% - 35rem));
  top: 0.2rem;
  z-index: 2;
  border-radius: 42% 58% 45% 55%;
  background:
    radial-gradient(circle at 18% 70%, rgba(255,159,135,0.42) 0 10%, transparent 11%),
    radial-gradient(circle at 38% 50%, rgba(255,159,135,0.28) 0 9%, transparent 10%),
    radial-gradient(circle at 58% 30%, rgba(255,159,135,0.24) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 72%, rgba(51,225,161,0.22) 0 11%, transparent 12%),
    linear-gradient(110deg, transparent 0 20%, rgba(255,159,135,0.34) 21% 27%, transparent 28%),
    linear-gradient(72deg, transparent 0 42%, rgba(51,225,161,0.20) 43% 48%, transparent 49%);
  filter: drop-shadow(0 0 0.75rem rgba(255,159,135,0.12));
  transform: rotate(8deg);
}

.brand-banner .brand-card {
  z-index: 1;
}

.layout::before {
  inline-size: clamp(3.2rem, 6vw, 5.5rem);
  block-size: clamp(9rem, 18vw, 15rem);
  left: clamp(0.5rem, 2vw, 2rem);
  bottom: -1.2rem;
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(96deg, transparent 0 16%, rgba(51,225,161,0.32) 17% 24%, transparent 25%),
    linear-gradient(82deg, transparent 0 36%, rgba(125,211,255,0.24) 37% 43%, transparent 44%),
    linear-gradient(112deg, transparent 0 58%, rgba(51,225,161,0.26) 59% 65%, transparent 66%),
    radial-gradient(ellipse at 50% 100%, rgba(51,225,161,0.18), transparent 65%);
  transform-origin: 50% 100%;
}

.layout::after {
  inline-size: clamp(5rem, 10vw, 8.5rem);
  block-size: clamp(5rem, 10vw, 8.5rem);
  right: clamp(0.5rem, 2vw, 2rem);
  bottom: -0.8rem;
  border-radius: 48% 52% 12% 12%;
  background:
    radial-gradient(circle at 24% 76%, rgba(255,224,102,0.28) 0 9%, transparent 10%),
    radial-gradient(circle at 43% 58%, rgba(255,159,135,0.32) 0 8%, transparent 9%),
    radial-gradient(circle at 65% 76%, rgba(255,184,107,0.24) 0 10%, transparent 11%),
    repeating-conic-gradient(from -40deg at 38% 96%, rgba(255,224,102,0.18) 0 7deg, transparent 8deg 16deg),
    radial-gradient(ellipse at 50% 100%, rgba(255,184,107,0.24), transparent 66%);
  filter: drop-shadow(0 0 0.75rem rgba(255,184,107,0.12));
  transform-origin: 50% 100%;
}

.player-panel::before {
  inline-size: 5.25rem;
  block-size: 5.25rem;
  right: 0.45rem;
  bottom: 0.45rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 48%, rgba(255,255,255,0.28) 0 10%, transparent 11%),
    repeating-conic-gradient(from 8deg, rgba(255,224,102,0.18) 0 9deg, rgba(255,184,107,0.05) 10deg 18deg),
    radial-gradient(circle at 50% 50%, rgba(255,224,102,0.16), transparent 68%);
  filter: blur(0.15px);
  transform: rotate(16deg);
}

.main-col::after {
  inline-size: clamp(2.5rem, 5vw, 4.5rem);
  block-size: clamp(8rem, 16vw, 13rem);
  right: 0.6rem;
  bottom: -1.4rem;
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(86deg, transparent 0 20%, rgba(51,225,161,0.22) 21% 30%, transparent 31%),
    linear-gradient(102deg, transparent 0 44%, rgba(51,225,161,0.28) 45% 55%, transparent 56%),
    linear-gradient(74deg, transparent 0 62%, rgba(125,211,255,0.18) 63% 70%, transparent 71%),
    radial-gradient(ellipse at 50% 100%, rgba(51,225,161,0.12), transparent 62%);
  transform-origin: 50% 100%;
}

@media (max-width: 700px) {
  .brand-banner::before,
  .brand-banner::after,
  .layout::before,
  .layout::after,
  .player-panel::before,
  .main-col::after {
    opacity: 0.28;
  }

  .brand-banner::before {
    left: 0.6rem;
    bottom: 0.3rem;
  }

  .brand-banner::after {
    right: 0.55rem;
    top: 0.3rem;
  }

  .main-col::after {
    opacity: 0.18;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .layout::before,
  .layout::after,
  .main-col::after {
    animation: reef-sway 8s ease-in-out infinite alternate;
  }
}

@keyframes reef-sway {
  0% {
    transform: rotate(-1.5deg) translateY(0);
  }
  100% {
    transform: rotate(1.5deg) translateY(-0.18rem);
  }
}

@media (max-width: 900px){
  .layout{ flex-direction:column; }
  .player-panel{ order:2; width:100%; }
  .main-col{ order:1; }
}

/* --- Sidebar: pro card look + meters --- */
.player-panel .panel-stats {
  display: grid;
  gap: .8rem;
  padding: 0;
  margin: .5rem 0 1rem 0;
}
.player-panel .panel-stats .stat-block {
  list-style: none;
  background: rgba(12, 47, 72, 0.28);
  border: 1px solid rgba(58,168,255,.35);
  border-radius: .75rem;
  padding: .6rem .7rem;
}
.player-panel .panel-stats .stat-block.compact { padding-bottom: .2rem; }
.player-panel .panel-stats .stat-block.inline { display:flex; align-items:center; gap:.5rem; }
.player-panel .panel-stats .stat-block.center { justify-content: center; }

.player-panel .label { font-weight: 700; color: #fff; margin-bottom: .15rem; }
.player-panel .row   { display:flex; align-items:center; gap:.55rem; }
.player-panel .value { font-size: 1.35rem; line-height: 1.2; }

/* core stats grid (2-up) */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem .9rem;
}
.stat-cell .row { gap: .45rem; }
@media (max-width: 520px){
  .stat-grid { grid-template-columns: 1fr; }
}

/* meters / numbers */
.player-panel .meter { margin-top: .15rem; }
.player-panel .meter.small { font-size: 1rem; color: var(--muted); }
.player-panel .meter.tiny  { font-size: .92rem; color: var(--muted); }
.player-panel .big-number  { font-size: 1.8rem; font-weight: 900; }
.player-panel .value,
.player-panel .meter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* oxygen bubble */
.player-panel .panel-stats .oxygen .bubble-icon { margin-right: .4rem; }
@keyframes shimmer {
  0%   { transform: scale(1) translateY(0); opacity: 0.9; }
  50%  { transform: scale(1.1) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 0.9; }
}
.bubble-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #cff, #39f);
  box-shadow:
    inset -4px -6px 8px rgba(255,255,255,0.6),
    inset 4px 6px 10px rgba(0,0,0,0.2),
    0 0 10px rgba(100,200,255,0.6);
  display: inline-block;
  animation: shimmer 2.5s ease-in-out infinite;
}

/* icon sizing (single source of truth) */
.icon     { width: 2.2rem; height: 2.2rem; display:inline-grid; place-content:center; }
.icon-lg  { width: 2.6rem; height: 2.6rem; }
.icon-xl  { width: 3.0rem; height: 3.0rem; }
.icon-xxl { width: 3.4rem; height: 3.4rem; }
.icon svg { width: 100%; height: 100%; fill: currentColor; }

/* subtle glow for legibility */
@media (prefers-reduced-motion: no-preference) {
  .icon svg { filter: drop-shadow(0 0 5px rgba(160,210,255,.4)); }
}

/* new icon colors in use */
.i-lightning { color: #ffd059; }  /* mental */
.i-gumption { color: #f5d36f; }
.i-anchor { color: #ff746f; }
.i-brain-coral { color: #8be8ff; }
.i-spring { color: #5ee0a0; }
.i-spotlight { color: #f4d47e; }
.i-doubloon { color: #f6c84f; }
.i-clams { color: #bff2ff; }
.i-basketball{ color: #ff7a2b; }  /* bounce */
.i-heart     { color: #ff5b5b; }  /* health */
.i-fullness  { color: #ff9933; }
.i-drunkenness { color: #dfb04a; }
.i-highness    { color: #35d16a; }
.i-flag        { color: #a8b1c1; }

/* icon colors (renamed for new icons) */
.i-glove     { color: #ff5a5a; }  /* brawn */
.i-brain     { color: #ff7aa9; }  /* brains */
.i-swagger   { color: #e2e8f0; }  /* swagger (sunglasses) */
.i-heart     { color: #ff5b5b; }  /* health */
.i-coins     { color: #f6c84f; }  /* currency (coin stack) */
.i-class     { color: #9bd; }     /* fallback class icon */

/* (Optional) duotone helper for “more realistic” look */
.icon svg [data-tone="shade"] { opacity: .25; }
.icon svg [data-tone="highlight"] { opacity: .6; }
.icon svg [data-stroke="edge"] { stroke: rgba(0,0,0,.25); stroke-width: .75; vector-effect: non-scaling-stroke; }

/* bounce jiggle */
@media (prefers-reduced-motion: no-preference) {
  .i-basketball { animation: ball-jiggle 1.6s ease-in-out infinite; transform-origin: 50% 60%; }
  @keyframes ball-jiggle {
    0%,100% { transform: translateY(0) scaleY(1); }
    25%     { transform: translateY(-1px) scaleY(1.02); }
    50%     { transform: translateY(0) scaleY(0.98); }
    75%     { transform: translateY(-2px) scaleY(1.03); }
  }
}

/* vitals triangle */
.tri-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "health mental"
    "oxygen oxygen";
  gap: .7rem .9rem;
}
.tri-health { grid-area: health; }
.tri-mental { grid-area: mental; }
.tri-oxygen { grid-area: oxygen; display:flex; justify-content:center; align-items:center; gap:.5rem; }

/* health color states + optional pulse */
.health.health-good     .i-heart { color: #e65252; }
.health.health-warn     .i-heart { color: #ff7a4e; }
.health.health-low      .i-heart { color: #ffb84d; }
.health.health-critical .i-heart { color: #777; }
@media (prefers-reduced-motion: no-preference) {
  .health.health-low .i-heart,
  .health.health-critical .i-heart {
    animation: thump 1.1s ease-in-out infinite;
    transform-origin: center;
  }
  @keyframes thump {
    0%, 100% { transform: scale(1); }
    20%      { transform: scale(1.08); }
    40%      { transform: scale(0.98); }
    60%      { transform: scale(1.05); }
    80%      { transform: scale(1.0); }
  }
}

/* Dark lenses you can theme later if you want */
.icon svg [data-lens] { fill: rgba(0,0,0,.72); }   /* lens tint */
.icon svg [data-lens-highlight] { fill: #fff; opacity: .08; } /* soft glare */

/* as-section: one glass pane, no borders between rows */
.player-panel .panel-stats.as-section {
  background: rgba(12, 47, 72, 0.28);
  border: 0;
  border-radius: .75rem;
  padding: .6rem .7rem;
  margin: .5rem 0 1rem 0;
  display: grid;
  gap: .8rem;
  box-shadow:
    0 8px 24px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition:
    background-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    filter var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease;
}
.player-panel .panel-stats.as-section .stat-block {
  background: transparent !important;
  border: 0 !important;
  padding: .35rem 0 !important;
  transition:
    color var(--motion-medium, 180ms) ease,
    filter var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease;
}

/* top spacing helpers you’re using now */
.player-panel .panel-stats.tight-top .stat-block { padding: .28rem 0; }
.player-panel .panel-stats .no-pad { padding: .22rem 0 !important; }

/* current row-2 layout helpers (left-aligned class + level stack) */
.cl-row {
  display: inline-flex;
  align-items: flex-end;
  gap: .55rem;
  justify-content: flex-start;
  text-align: left;
}
.class-name { font-weight: 600; opacity: .95; }
.level-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center; /* centers x/y under the level digit */
  line-height: 1.0;
  margin-left: .45rem;
}
.level-num  { letter-spacing: .3px; }
.level-prog { margin-top: .08rem; }

/* Bring sections closer and reduce row spacing inside each section */
.player-panel .panel-stats.as-section {
  gap: .3rem;                /* was .8rem */
  padding: .4rem .6rem;      /* tighter internal padding */
  margin: .25rem 0 .5rem 0;  /* bring sections closer together and "up" */
}

/* Make the rows inside each section tighter */
.player-panel .panel-stats.as-section .stat-block {
  padding: .18rem 0 !important;     /* was ~.35rem 0 */
}

.player-panel .panel-stats.as-section:hover,
.player-panel .panel-stats.as-section:focus-within {
  background: rgba(16, 62, 92, 0.34);
  box-shadow:
    0 10px 28px rgba(0,0,0,.2),
    0 0 0 1px rgba(125, 211, 255, 0.13),
    inset 0 1px 0 rgba(255,255,255,.07);
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.player-panel .panel-stats.as-section:hover .value,
.player-panel .panel-stats.as-section:focus-within .value {
  color: #ffffff;
  filter: drop-shadow(0 0 0.28rem rgba(125, 211, 255, 0.24));
}

.player-panel .panel-stats.as-section:hover .icon,
.player-panel .panel-stats.as-section:focus-within .icon {
  filter: drop-shadow(0 0 0.3rem rgba(160, 210, 255, 0.28));
  transform: translateY(-1px);
}

/* Compact default row gutters and line-height */
.player-panel .row { gap: .4rem; }   /* was .55rem */
.player-panel .value { line-height: 1.1; } /* was 1.2 */

/* Top identity block even tighter (name / class+level / doubloons) */
.player-panel .panel-stats.tight-top .stat-block { padding: .2rem 0; }
.player-panel .panel-stats .no-pad { padding: .14rem 0 !important; }

/* Keep these TWO vertical gaps as-is (PROTECTED) */
.stat-grid { row-gap: .9rem; }   /* preserves space between core stat rows */
.tri-grid  { row-gap: .9rem; }   /* keeps space between vitals row and oxygen */

/* ===== Header top bar ===== */
.site-header{ display:flex; align-items:center; gap:1rem; justify-content:space-between; flex-wrap:wrap; }
.top-actions {
  position: static;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: min(100% - 1rem, 1600px);
  margin: 0.35rem auto 0;
  padding: 0.35rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 14px;
  background: rgba(4, 28, 41, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.top-actions--single {
  justify-content: flex-end;
  width: fit-content;
  margin-left: auto;
  margin-right: 0.5rem;
}
.corner-logout {
  margin: 0;
}
.corner-btn{
  background: rgba(12, 47, 72, 0.8);
  border: 1px solid rgba(125, 211, 255, 0.55);
  border-radius: 10px;
  padding: .45rem .75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color var(--motion-fast, 140ms) ease,
    border-color var(--motion-fast, 140ms) ease,
    box-shadow var(--motion-fast, 140ms) ease,
    color var(--motion-fast, 140ms) ease,
    transform var(--motion-fast, 140ms) ease;
}
.corner-btn:hover,
.corner-btn:focus-visible {
  background: rgba(18, 70, 104, 0.88);
  border-color: var(--focus);
  box-shadow:
    0 0.5rem 1.1rem rgba(0, 0, 0, 0.18),
    0 0 0.85rem rgba(255, 224, 102, 0.16);
  transform: translateY(-1px);
}

/* ===== Alerts ===== */
.alerts{
  margin:0 auto 1rem;
  max-width:1200px;
  list-style:none;
  padding-left:0;
}
.alerts li{
  margin:.5rem 0; padding:.75rem 1rem; border-radius:12px;
  background:#0b2b44; border:2px solid var(--panel-border);
  transition:
    background-color var(--motion-medium, 180ms) ease,
    border-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease;
}
.alerts li:hover,
.alerts li:focus-within {
  background: #0f3856;
  border-color: rgba(125, 211, 255, 0.58);
  box-shadow:
    0 0.6rem 1.2rem rgba(0, 0, 0, 0.16),
    0 0 0.85rem rgba(125, 211, 255, 0.12);
  transform: translateY(-1px);
}

.achievements-popup {
  display: grid;
  gap: 0.55rem;
}

.achievement-banner {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 224, 102, 0.42);
  border-left: 4px solid rgba(255, 224, 102, 0.88);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 224, 102, 0.16), rgba(125, 211, 255, 0.1)),
    rgba(8, 38, 58, 0.84);
  box-shadow: 0 0.45rem 1.1rem rgba(0, 0, 0, 0.14);
  transition:
    background-color var(--motion-medium, 180ms) ease,
    border-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease;
}

.achievement-banner:hover,
.achievement-banner:focus-within {
  border-color: rgba(255, 239, 158, 0.72);
  box-shadow:
    0 0.65rem 1.3rem rgba(0, 0, 0, 0.18),
    0 0 1rem rgba(255, 224, 102, 0.16);
  transform: translateY(-1px);
}

/* ===== Compact, centered ocean wordmark banner ===== */
.brand-banner { position: relative; z-index: 1; isolation: isolate; }
.brand-banner .container.brand-card { margin: 10px auto 12px; padding: 12px 16px; }

.brand-card{
  background: linear-gradient(180deg, #0f3a57, #0b2b44);
  border-color: #3aa8ff;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--motion-slow, 240ms) ease,
    box-shadow var(--motion-slow, 240ms) ease;

  /* CENTER + STACK VERTICALLY (this is the key change) */
  display: flex;
  flex-direction: column;       /* NEW */
  align-items: center;          /* NEW */
  justify-content: center;      /* NEW */
  text-align: center;           /* keep text centered */
}

/* subtle light rays */
.brand-card::before{
  content:""; position:absolute; inset:-20% -10%;
  background: conic-gradient(from 200deg at 10% 0%, rgba(255,255,255,0.18), transparent 35%),
              conic-gradient(from 220deg at 20% 0%, rgba(255,255,255,0.10), transparent 30%);
  mix-blend-mode: screen; pointer-events:none;
  opacity: 0.72;
  transform: translateX(-0.25rem) rotate(-0.4deg);
}

@media (prefers-reduced-motion: no-preference) {
  .brand-card::before {
    animation: brand-light-sweep 9s ease-in-out infinite;
  }
}

@keyframes brand-light-sweep {
  0%, 100% {
    opacity: 0.62;
    transform: translateX(-0.35rem) rotate(-0.4deg);
  }
  50% {
    opacity: 0.9;
    transform: translateX(0.35rem) rotate(0.4deg);
  }
}

/* faint bubble blobs */
.brand-card::after{
  content:""; position:absolute; right:-10%; bottom:-20%;
  width:220px; height:220px; border-radius:50%;
  box-shadow:
    -40px -60px 0 0 rgba(255,255,255,0.12),
    -80px -20px 0 0 rgba(255,255,255,0.08),
    -100px -100px 0 0 rgba(255,255,255,0.10);
  filter: blur(2px);
  opacity:.8; pointer-events:none;
}

/* Centered stack with no extra gaps */
.brand-stack{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  line-height:.92;
  letter-spacing:.02em;
  gap:0;
  margin:0;
}
.brand-top{
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; text-transform: uppercase;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #b8ecff 0%, #39b2ff 35%, #0a79c2 65%, #064f86 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 3px 10px rgba(0,0,0,0.35);
  margin:0;
}
.brand-top .amp{ display:inline-block; padding:0 .12em; color:#fff; text-shadow:none; -webkit-text-fill-color:#fff; background:none; }

.brand-bottom{
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900; margin:0;
  background: linear-gradient(180deg, var(--accent-reef), #ff8c42 45%, #ff6a00 60%, #ffd39a 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35), 0 3px 10px rgba(0,0,0,0.35);
}
.brand-bottom[data-caps="upper"]{ text-transform: uppercase; }
.brand-bottom[data-caps="sentence"]{ text-transform: none; }

/* Tagline sits directly below, centered and full width */
.brand-tagline{
  margin:.3rem 0 0;
  font-size: clamp(13px, 1.5vw, 16px);
  color:#cfeeff;
  opacity:.95;
  letter-spacing:.3px;
  text-align:center;
  align-self: center;           /* ensure it doesn't drift */
  width: 100%;                  /* helps center on narrow screens */
}

.brand-banner--game .container.brand-card {
  margin-top: 0.6rem;
  padding-block: 0.7rem;
}

.brand-banner--game .brand-top {
  font-size: clamp(28px, 4vw, 48px);
}

.brand-banner--game .brand-bottom {
  font-size: clamp(30px, 4.8vw, 56px);
}

.brand-banner--game .brand-tagline {
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.welcome-page .brand-banner--guest .container.brand-card {
  margin: 0.4rem auto 0.55rem;
  padding: 0.45rem 0.8rem;
}

.welcome-page .brand-banner--guest .brand-top {
  font-size: clamp(32px, 5vw, 52px);
}

.welcome-page .brand-banner--guest .brand-bottom {
  font-size: clamp(34px, 5.8vw, 60px);
}

.welcome-page .brand-banner--guest .brand-tagline {
  margin-top: 0.12rem;
  font-size: clamp(0.86rem, 1.2vw, 0.98rem);
}

.welcome-page .guest-main {
  margin-top: 0.4rem;
  padding-block: 1rem;
}

/* SR-only utility */
.sr-only{
  position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Make the header visually “invisible” (no panel box up top) */
.site-header{
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* ===== Tabs (now in right/main column under banner) ===== */
.main-col .main-tabs { margin-top: 0; }
.tablist{
  display:flex;
  gap:.45rem;
  border-bottom:1px solid var(--divider);
  margin:0 auto 1rem;
  overflow-x:auto;
  max-width:100%;
  min-width:0;
  padding:0 0 .45rem;
  scrollbar-color: rgba(125, 211, 255, 0.45) transparent;
}
.tab.btn{
  flex:0 0 auto;
  border:1px solid rgba(125, 211, 255, 0.35);
  border-radius:999px;
  background:rgba(255,255,255,0.05);
  box-shadow:none;
  padding:.52rem .85rem;
  white-space:nowrap;
  transition:
    background-color var(--motion-fast, 140ms) ease,
    border-color var(--motion-fast, 140ms) ease,
    box-shadow var(--motion-fast, 140ms) ease,
    color var(--motion-fast, 140ms) ease,
    transform var(--motion-fast, 140ms) ease;
}
.tab.btn:hover,
.tab.btn:focus-visible {
  background: rgba(125, 211, 255, 0.12);
  border-color: rgba(125, 211, 255, 0.74);
  box-shadow:
    0 0.45rem 1rem rgba(0, 0, 0, 0.14),
    0 0 0.75rem rgba(125, 211, 255, 0.12);
  transform: translateY(-1px);
}
.tab[aria-selected="true"].btn{
  border-color: var(--accent-reef);
  background: rgba(255, 184, 107, 0.16);
  color: #fff8e8;
  transform: none;
  box-shadow:none;
}
.tab[aria-selected="true"].btn:hover,
.tab[aria-selected="true"].btn:focus-visible {
  background: rgba(255, 184, 107, 0.2);
  border-color: var(--accent-reef);
  box-shadow: 0 0 0.8rem rgba(255, 184, 107, 0.13);
  transform: none;
}

/* Lift main UI above the bubble layer so bubbles read as background */
.site-header,
.alerts,
.brand-banner,
.layout,
.container {
  position: relative;
  z-index: 1;
}

/* ===== Global bubbles (full-screen) ===== */
.global-bubbles{
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}

/* Realistic glossy bubbles with inner shadow + highlight */
.bubble{
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  /* main glass body */
  background:
    radial-gradient(circle at 35% 30%,
      rgba(255,255,255,0.95) 0%,
      rgba(215,235,255,0.55) 28%,
      rgba(200,230,255,0.28) 52%,
      rgba(255,255,255,0.12) 72%,
      rgba(255,255,255,0.00) 100%);
  box-shadow:
    inset -4px -6px 10px rgba(0,0,0,0.22),
    0 0 10px rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.35);
  /* animation hooks (JS fills these) */
  left: var(--left, 50vw);
  width: var(--size, 18px);
  height: var(--size, 18px);
  opacity: var(--startOpacity, 0.8);
  animation:
    rise var(--dur, 8s) ease-in forwards,
    drift var(--driftDur, 3.5s) ease-in-out var(--driftDelay, 0s) infinite alternate;
  will-change: transform, opacity, margin-left;
}

/* glossy highlight */
.bubble::after{
  content:"";
  position: absolute;
  top: 14%;
  left: 18%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  filter: blur(2px);
  opacity: 0.75;
  transform: rotate(-8deg);
  pointer-events: none;
}

/* vertical rise with subtle scale-up and fade-out */
@keyframes rise{
  0%{
    transform: translateY(0) scale(var(--startScale, 0.7));
    opacity: var(--startOpacity, 0.8);
  }
  45%{
    opacity: 1;
  }
  100%{
    transform: translateY(-120vh) scale(var(--endScale, 1.12));
    opacity: 0;
  }
}

/* gentle horizontal wobble using margin-left so it won’t clash with rise’s transform */
@keyframes drift{
  0%   { margin-left: calc(var(--driftAmp, 10px) * -1); }
  100% { margin-left: var(--driftAmp, 10px); }
}

/* Reduced motion users: keep them static */
@media (prefers-reduced-motion: reduce){
  .bubble{ animation: none !important; }
}


/* ===== Tables / small text ===== */
.small{ font-size:.95em; color:var(--muted); }
.muted{ color:var(--muted); }
.table, table{ width:100%; border-collapse:collapse; }
.table th,.table td,table th,table td{ border-bottom:1px solid var(--divider); text-align:left; padding:.5rem .4rem; }

/* ===== Cards & images ===== */
.card{ background:var(--panel); border:2px solid var(--panel-border); border-radius:16px; padding:1rem; margin-bottom:1rem; }
.card.container {
  max-width: none;
  margin: 0 0 1rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.avatar,.icon-50{ border-radius:8px; background:#0b2b44; }
.img-300{ max-width:300px; height:auto; border-radius:12px; display:block; margin:.5rem 0; }
.img-fallback{
  display:grid;
  place-items:center;
  min-height: 6.2rem;
  width: 100%;
  padding: .75rem;
  border-radius: 12px;
  border: 1px dashed rgba(125, 211, 255, 0.45);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.img-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(255,255,255,0.16), transparent 18%),
    linear-gradient(135deg, rgba(51,225,161,0.12), rgba(125,211,255,0.09) 52%, rgba(255,184,107,0.12));
  pointer-events: none;
}
.img-fallback.img-300{
  max-width:300px;
  min-height: 10.5rem;
  margin:.5rem 0;
}
.img-fallback.avatar{
  min-height: 3rem;
  min-width: 3rem;
}
.img-fallback.icon-50{
  min-height: 50px;
  min-width: 50px;
}

.card, .player-panel, .alerts{
  background: rgba(12, 47, 72, 0.20);
  border-color: rgba(58,168,255,.30);
}

.list-compact {
  padding-left: 1.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  button:active::after,.btn:active::after{ display:none; }
  .bubble{ animation:none !important; }
}

/* Achievement badge container (used for both emoji and image versions) */
.achievement-row .achievement-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Soft gold-ish background */
  background: radial-gradient(circle at 30% 30%, #ffe9a5, #d9a441);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6),
              0 2px 4px rgba(0, 0, 0, 0.25);
}

/* When we use the emoji fallback, bump the font size a little */
.achievement-row .achievement-icon:not(:has(img)) {
  font-size: 1.25rem;
  line-height: 1;
}

.actions {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.actions .btn,
.actions button {
  white-space: nowrap;
}

.quest-home-list,
.quest-hub-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.quest-home-row,
.quest-hub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.quest-hub-row--visual {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: start;
}

.quest-hub-row__body {
  min-width: 0;
}

.quest-hub-row__actions {
  justify-self: end;
}

.locations-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.areas-page {
  display: grid;
  gap: 1rem;
}

.areas-backnav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.area-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 0;
  transition: transform var(--motion-medium) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.area-card:hover,
.area-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24),
    0 0 1rem rgba(125, 211, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.area-card--map {
  position: relative;
}

.area-card--map::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #33e1a1, #7dd3ff);
  opacity: 0.92;
}

.area-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(125, 211, 255, 0.25);
  background: linear-gradient(135deg, rgba(51,225,161,0.14), rgba(125,211,255,0.12), rgba(255,184,107,0.12));
}

.area-card__image,
.area-card__fallback,
.area-card__media .img-fallback {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform var(--motion-medium) var(--motion-ease), filter var(--motion-fast) ease;
}

.area-card__image {
  object-fit: cover;
}

.area-card:hover .area-card__image,
.area-card:focus-within .area-card__image,
.area-card:hover .area-card__fallback,
.area-card:focus-within .area-card__fallback,
.area-card:hover .area-card__media .img-fallback,
.area-card:focus-within .area-card__media .img-fallback {
  transform: scale(1.025);
  filter: brightness(1.04) saturate(1.03);
}

.area-card__fallback,
.area-card__media .img-fallback {
  min-height: 100%;
  border: 0;
  border-radius: 0;
}

.area-card__body,
.area-card__footer {
  padding: 0.9rem;
}

.area-card__body h3 {
  margin: 0 0 0.35rem;
}

.area-card__body p {
  margin: 0.4rem 0 0;
}

.area-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(125, 211, 255, 0.18);
}

.area-card__place-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.54rem;
  border: 1px solid rgba(125, 211, 255, 0.28);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.34);
  color: #dffbff;
  font-weight: 850;
}

.area-card__place-chip::before {
  content: "";
  inline-size: 0.46rem;
  block-size: 0.46rem;
  border-radius: 0.12rem;
  background: currentColor;
}

.area-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.area-hero__media {
  min-height: 18rem;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.area-hero__media img,
.area-hero__media .img-fallback {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.area-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.area-hero__body h1 {
  margin: 0 0 0.5rem;
}

.area-route-summary {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 10rem));
  gap: 0.65rem;
  padding-left: 0;
  margin: 1rem 0 0;
}

.area-route-summary__card {
  position: relative;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 0.65rem 0.65rem 0.65rem 0.8rem;
  background: rgba(3, 22, 34, 0.34);
}

.area-route-summary__card::after {
  content: "";
  position: absolute;
  right: 0.62rem;
  top: 0.68rem;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.area-route-summary__card--explore {
  border-left-color: #33e1a1;
}

.area-route-summary__card--explore::after {
  clip-path: polygon(50% 0, 62% 34%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 34%);
  border-radius: 0;
}

.area-route-summary__card--services {
  border-left-color: #ffb86b;
}

.area-route-summary__card--services::after {
  border-radius: 0.14rem;
}

.area-route-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.area-route-summary strong {
  display: block;
  margin-top: 0.1rem;
  color: #f7fbff;
  font-size: 1.35rem;
  line-height: 1;
}

.area-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.area-section-card {
  min-width: 0;
}

.area-section-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.area-section-card__head h2,
.area-section-card__head p {
  margin: 0;
}

.area-section-card__count {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(158, 233, 226, 0.36);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.42);
  color: #dffbff;
  font-weight: 900;
}

.area-section-card--explore {
  box-shadow: inset 3px 0 0 rgba(116, 244, 223, 0.48), 0 16px 36px rgba(0, 0, 0, 0.24);
}

.area-section-card--services {
  box-shadow: inset 3px 0 0 rgba(255, 202, 121, 0.50), 0 16px 36px rgba(0, 0, 0, 0.24);
}

.area-section-card__lore-note {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: fit-content;
  max-width: 100%;
  margin: -0.25rem 0 0.75rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.28);
  color: #d8f3ff;
  font-weight: 780;
}

.area-section-card__lore-note::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.52rem;
  block-size: 0.52rem;
  border-radius: 0.16rem;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.86;
}

.location-detail-card {
  overflow: hidden;
}

.location-detail-hero {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.location-detail-hero__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 255, 0.26);
  background: rgba(3, 22, 34, 0.52);
}

.location-detail-hero__body {
  min-width: 0;
}

.location-detail-hero__body h1 {
  margin-top: 0.1rem;
  margin-bottom: 0.35rem;
}

.quest-thumb,
.skill-row__thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 10px;
  background: rgba(3, 22, 34, 0.5);
  object-fit: cover;
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.chip-danger-low {
  border-color: rgba(99, 241, 175, 0.55);
  background: rgba(67, 196, 132, 0.2);
  color: #c4ffe3;
}
.chip-danger-moderate {
  border-color: rgba(125, 211, 255, 0.55);
  background: rgba(77, 147, 199, 0.24);
  color: #d8f3ff;
}
.chip-danger-high {
  border-color: rgba(255, 184, 102, 0.6);
  background: rgba(207, 128, 54, 0.26);
  color: #ffe0c1;
}
.chip-danger-extreme {
  border-color: rgba(255, 120, 120, 0.65);
  background: rgba(191, 74, 74, 0.28);
  color: #ffd9d9;
}

.explore-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.explore-row,
.service-location-row {
  border: 1px solid rgba(58, 168, 255, 0.33);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 0.6rem;
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.32), rgba(3, 22, 34, 0.22)),
    rgba(255, 255, 255, 0.04);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.explore-row:hover,
.explore-row:focus-within,
.service-location-row:hover,
.service-location-row:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.48);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.42), rgba(3, 22, 34, 0.24)),
    rgba(255, 255, 255, 0.055);
}

.location-row--type-explore {
  border-left-color: #33e1a1;
}

.location-row--type-shop,
.location-row--type-workbench,
.location-row--type-hall {
  border-left-color: #ffb86b;
}

.location-row--type-quest,
.location-row--type-bank,
.location-row--type-inn,
.location-row--type-healer,
.location-row--type-service,
.location-row--type-area {
  border-left-color: #7dd3ff;
}

.location-row--type-quest {
  border-left-color: #ffd58a;
}

.location-row--type-bank {
  border-left-color: #f5df9f;
}

.location-row--type-healer {
  border-left-color: #9ff0c5;
}

.service-location-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.location-row {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}
.location-row__media {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  align-self: start;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 255, 0.24);
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(145deg, rgba(26, 92, 126, 0.84), rgba(12, 45, 70, 0.94));
  display: grid;
  place-items: center;
}

.location-row__media--explore {
  box-shadow: inset 0 0 0 3px rgba(51, 225, 161, 0.11);
}

.location-row__media--service {
  box-shadow: inset 0 0 0 3px rgba(125, 211, 255, 0.10);
}

.location-row__media--quest,
.location-row__media--workbench,
.location-row__media--shop,
.location-row__media--hall {
  box-shadow: inset 0 0 0 3px rgba(255, 184, 107, 0.13);
}
.location-row__thumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.location-row__thumb--actor {
  object-fit: contain;
  padding: 0.35rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(125, 211, 255, 0.18), transparent 46%),
    rgba(3, 22, 34, 0.5);
}
.location-row__actor-badge {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(234, 250, 255, 0.56);
  background: rgba(3, 22, 34, 0.76);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}
.location-row__body {
  min-width: 0;
}
.explore-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.location-row__head {
  align-items: center;
}

.location-row__action-form {
  flex: 1 1 12rem;
  min-width: 0;
}

.service-location-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.location-title-link {
  padding: 0;
  line-height: 1.25;
}
.location-actor-line {
  margin: 0.28rem 0 0;
}

.location-purpose-line {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.34rem 0 0;
  padding: 0.24rem 0.52rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.30);
  color: #cfeeff;
  font-weight: 760;
  line-height: 1.2;
}

.location-purpose-line::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.46rem;
  block-size: 0.46rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.14rem rgba(255, 255, 255, 0.05);
}

.location-purpose-line--explore {
  border-color: rgba(116, 244, 223, 0.30);
  color: #c4fff0;
}

.location-purpose-line--shop,
.location-purpose-line--workbench,
.location-purpose-line--hall {
  border-color: rgba(255, 184, 107, 0.32);
  color: #ffe3bd;
}

.location-purpose-line--quest,
.location-purpose-line--bank,
.location-purpose-line--inn,
.location-purpose-line--healer,
.location-purpose-line--service,
.location-purpose-line--area {
  border-color: rgba(125, 211, 255, 0.28);
}

.location-purpose-line--quest::before {
  border-radius: 0.14rem;
  transform: rotate(45deg);
  background: #ffd58a;
}

.location-access-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.24rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d7e8ee;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
}

.location-access-chip::before {
  content: "";
  inline-size: 0.38rem;
  block-size: 0.56rem;
  border-radius: 0.12rem;
  background: currentColor;
}

.location-access-chip--locked {
  border-color: rgba(255, 184, 107, 0.34);
  background: rgba(255, 184, 107, 0.10);
  color: #ffe0c1;
}
.explore-launch {
  padding: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}
.explore-meta-chips {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.explore-threats {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.explore-threats__label {
  color: #d8f3ff;
  font-weight: 850;
  text-transform: uppercase;
}
.explore-threat-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  padding-left: 0;
  margin: 0;
}
.explore-threat {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 0.38rem;
  padding: 0.28rem 0.48rem 0.28rem 0.32rem;
  border: 1px solid rgba(125, 211, 255, 0.25);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.34);
  color: #eefcff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
}
.explore-threat__thumb {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid rgba(225, 248, 255, 0.28);
  background: rgba(3, 22, 34, 0.48);
}
.explore-pressure-chips {
  margin-top: 0.45rem;
}
.chip-pressure {
  border-color: rgba(159, 211, 255, 0.45);
  background: rgba(45, 103, 153, 0.2);
}
.chip-pressure-hostile {
  border-color: rgba(255, 120, 120, 0.65);
}
.chip-pressure-helpful,
.chip-pressure-favorable,
.chip-pressure-allied {
  border-color: rgba(126, 218, 171, 0.6);
}
.explore-hint {
  margin: 0.42rem 0 0;
}
.explore-stat-guidance-warning {
  color: #ffd9d9;
  font-weight: 700;
}

.location-type-badge {
  --badge-accent: #7dd3ff;
  --badge-bg: rgba(125, 211, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.16rem 0.5rem 0.16rem 0.18rem;
  border: 1px solid rgba(125, 211, 255, 0.42);
  border-radius: 999px;
  background: var(--badge-bg);
  color: #e8f8ff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.location-type-badge__icon {
  position: relative;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.32), transparent 30%),
    linear-gradient(145deg, var(--badge-accent), #06263d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  flex: 0 0 auto;
}
.location-type-badge__icon::before,
.location-type-badge__icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}
.location-type-badge--icon-only {
  padding: 0;
  border-radius: 12px;
  background: transparent;
  border: 0;
}
.location-type-badge--icon-only .location-type-badge__icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
}
.location-type-badge--explore { --badge-accent: #74f4df; --badge-bg: rgba(116, 244, 223, 0.1); }
.location-type-badge--shop { --badge-accent: #ffca79; --badge-bg: rgba(255, 202, 121, 0.12); }
.location-type-badge--npc { --badge-accent: #a6dcff; --badge-bg: rgba(166, 220, 255, 0.11); }
.location-type-badge--quest { --badge-accent: #ffd58a; --badge-bg: rgba(255, 213, 138, 0.12); }
.location-type-badge--bank { --badge-accent: #f5df9f; --badge-bg: rgba(245, 223, 159, 0.12); }
.location-type-badge--workbench { --badge-accent: #ffc293; --badge-bg: rgba(255, 194, 147, 0.12); }
.location-type-badge--inn { --badge-accent: #b7f0ff; --badge-bg: rgba(183, 240, 255, 0.1); }
.location-type-badge--hall { --badge-accent: #ffb56f; --badge-bg: rgba(255, 181, 111, 0.12); }
.location-type-badge--area { --badge-accent: #9ff0c5; --badge-bg: rgba(159, 240, 197, 0.11); }
.location-type-badge--healer { --badge-accent: #9ff0c5; --badge-bg: rgba(159, 240, 197, 0.11); }
.location-type-badge--service { --badge-accent: #b6d9ff; --badge-bg: rgba(182, 217, 255, 0.1); }
.location-type-badge--explore .location-type-badge__icon::before {
  inset: 0.34rem;
  border: 0.14rem solid rgba(255,255,255,0.92);
  border-radius: 50%;
}
.location-type-badge--explore .location-type-badge__icon::after {
  left: 0.68rem;
  top: 0.31rem;
  width: 0.24rem;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  transform: rotate(35deg);
  transform-origin: bottom center;
}
.location-type-badge--shop .location-type-badge__icon::before {
  left: 0.28rem;
  right: 0.28rem;
  top: 0.36rem;
  height: 0.38rem;
  border-radius: 0.18rem 0.18rem 0.08rem 0.08rem;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.96) 0 0.22rem, rgba(8,42,56,0.38) 0.22rem 0.44rem);
}
.location-type-badge--shop .location-type-badge__icon::after {
  left: 0.42rem;
  right: 0.42rem;
  bottom: 0.32rem;
  height: 0.54rem;
  border: 0.13rem solid rgba(255,255,255,0.92);
  border-top-width: 0.22rem;
  border-radius: 0.1rem;
}
.location-type-badge--npc .location-type-badge__icon::before {
  left: 0.34rem;
  right: 0.3rem;
  top: 0.4rem;
  height: 0.62rem;
  border: 0.13rem solid rgba(255,255,255,0.93);
  border-radius: 0.22rem;
}
.location-type-badge--npc .location-type-badge__icon::after {
  left: 0.54rem;
  top: 0.9rem;
  border-style: solid;
  border-width: 0.28rem 0.2rem 0 0;
  border-color: rgba(255,255,255,0.93) transparent transparent transparent;
}
.location-type-badge--quest .location-type-badge__icon::before {
  left: 0.42rem;
  right: 0.42rem;
  top: 0.28rem;
  bottom: 0.28rem;
  border: 0.13rem solid rgba(255,255,255,0.92);
  border-radius: 0.12rem;
}
.location-type-badge--quest .location-type-badge__icon::after {
  left: 0.58rem;
  top: 0.6rem;
  width: 0.42rem;
  height: 0.36rem;
  border-top: 0.12rem solid rgba(255,255,255,0.94);
  border-bottom: 0.12rem solid rgba(255,255,255,0.82);
}
.location-type-badge--bank .location-type-badge__icon::before {
  left: 0.32rem;
  right: 0.32rem;
  top: 0.42rem;
  height: 0.66rem;
  border-radius: 0.66rem 0.66rem 0.18rem 0.18rem;
  border: 0.13rem solid rgba(255,255,255,0.92);
}
.location-type-badge--bank .location-type-badge__icon::after {
  left: 0.42rem;
  right: 0.42rem;
  bottom: 0.36rem;
  height: 0.12rem;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 -0.24rem 0 rgba(255,255,255,0.55);
}
.location-type-badge--workbench .location-type-badge__icon::before {
  left: 0.36rem;
  top: 0.72rem;
  width: 0.86rem;
  height: 0.14rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  transform: rotate(38deg);
}
.location-type-badge--workbench .location-type-badge__icon::after {
  left: 0.36rem;
  top: 0.72rem;
  width: 0.86rem;
  height: 0.14rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  transform: rotate(-38deg);
}
.location-type-badge--inn .location-type-badge__icon::before {
  left: 0.34rem;
  right: 0.3rem;
  bottom: 0.4rem;
  height: 0.48rem;
  border: 0.13rem solid rgba(255,255,255,0.93);
  border-radius: 0.1rem;
}
.location-type-badge--inn .location-type-badge__icon::after {
  left: 0.42rem;
  top: 0.54rem;
  width: 0.36rem;
  height: 0.26rem;
  border-radius: 0.12rem;
  background: rgba(255,255,255,0.93);
}
.location-type-badge--hall .location-type-badge__icon::before {
  left: 0.42rem;
  right: 0.42rem;
  top: 0.3rem;
  bottom: 0.32rem;
  border: 0.13rem solid rgba(255,255,255,0.93);
  border-radius: 0.38rem 0.38rem 0.2rem 0.2rem;
}
.location-type-badge--hall .location-type-badge__icon::after {
  left: 0.58rem;
  top: 0.52rem;
  width: 0.42rem;
  height: 0.5rem;
  border-left: 0.13rem solid rgba(255,255,255,0.88);
  border-right: 0.13rem solid rgba(255,255,255,0.88);
}
.location-type-badge--area .location-type-badge__icon::before {
  left: 0.34rem;
  right: 0.34rem;
  bottom: 0.32rem;
  height: 0.74rem;
  border: 0.13rem solid rgba(255,255,255,0.92);
  border-bottom: 0;
  border-radius: 0.52rem 0.52rem 0 0;
}
.location-type-badge--area .location-type-badge__icon::after {
  left: 0.67rem;
  top: 0.42rem;
  width: 0.26rem;
  height: 0.74rem;
  background: rgba(255,255,255,0.72);
}
.location-type-badge--healer .location-type-badge__icon::before {
  left: 0.68rem;
  top: 0.36rem;
  width: 0.2rem;
  height: 0.84rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
}
.location-type-badge--healer .location-type-badge__icon::after {
  left: 0.36rem;
  top: 0.68rem;
  width: 0.84rem;
  height: 0.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
}
.location-type-badge--service .location-type-badge__icon::before {
  inset: 0.43rem;
  border: 0.13rem solid rgba(255,255,255,0.92);
  border-radius: 50%;
}
.location-type-badge--service .location-type-badge__icon::after {
  left: 0.68rem;
  top: 0.68rem;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
}

@media (max-width: 640px) {
  .top-actions {
    position: static;
    width: min(100% - 1rem, 1600px);
    margin-inline: auto;
  }

  .top-actions--single {
    width: min(100% - 1rem, 1600px);
    justify-content: flex-end;
  }

  .location-detail-hero,
  .quest-hub-row--visual,
  .area-hero,
  .area-content-grid {
    grid-template-columns: 1fr;
  }

  .area-hero__media {
    min-height: 12rem;
    max-height: 15rem;
  }

  .area-route-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quest-hub-row__actions {
    justify-self: stretch;
  }

  .quest-hub-row__actions .btn,
  .quest-hub-row__actions button {
    width: 100%;
  }

  .location-row {
    grid-template-columns: 5.8rem minmax(0, 1fr);
  }

  .location-row__media,
  .location-row__thumb {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .location-row {
    grid-template-columns: 1fr;
  }

  .location-row__media {
    width: min(100%, 16rem);
  }

  .explore-row-head,
  .service-location-head {
    align-items: flex-start;
  }

  .explore-row-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .explore-row-head form,
  .service-location-head .location-title-link {
    width: 100%;
  }

  .explore-launch {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* ===== Combat ===== */
.combat-card {
  text-align: left;
  border-color: rgba(255, 184, 107, 0.45);
  background:
    linear-gradient(180deg, rgba(255,184,107,0.08), rgba(12,47,72,0.24)),
    rgba(12, 47, 72, 0.20);
}

.combat-encounter {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(255, 184, 107, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.12), rgba(125, 211, 255, 0.08)),
    rgba(3, 22, 34, 0.26);
}

.combat-encounter__media,
.combat-encounter__body {
  min-width: 0;
}

.combat-encounter__body,
.combat-effect-box,
.combat-log,
.combat-action-set,
.combat-picker-fieldset {
  text-align: left;
}

.combat-encounter__body h3 {
  margin: 0.1rem 0 0.3rem;
}

.combat-foe-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}

.combat-fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(125, 211, 255, 0.34);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.42);
  color: #e8fbff;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.combat-fact-chip::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.54rem;
  block-size: 0.54rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.86;
  box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.08);
}

.combat-fact-chip--enemy {
  border-color: rgba(255, 184, 107, 0.56);
  background: rgba(255, 184, 107, 0.14);
  color: #ffe4bc;
}

.combat-fact-chip--enemy::before {
  border-radius: 0.16rem;
  transform: rotate(45deg);
}

.combat-foe-description {
  margin-bottom: 0;
}

.combat-result-note {
  margin-bottom: 0;
  color: #fff8e8;
  font-weight: 700;
}

.combat-divider {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 1rem 0;
}

.combat-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.combat-portrait {
  display: block;
  width: 100%;
  max-width: 10rem;
  min-width: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255, 184, 107, 0.48);
  border-radius: 14px;
  background: rgba(3, 22, 34, 0.52);
}

.combat-resource-list,
.combat-actions,
.combat-picker-row,
.watch-fight-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.combat-supply-panel {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.combat-supply-panel h5,
.combat-supply-empty {
  margin: 0;
}

.combat-supply-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.55rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.combat-supply-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid rgba(125, 211, 255, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.34), rgba(3, 22, 34, 0.26)),
    rgba(255, 255, 255, 0.035);
}

.combat-supply-card__thumb {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
}

.combat-supply-card__body {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.combat-supply-card__body strong {
  color: #f7fbff;
  line-height: 1.2;
}

.combat-supply-card__qty {
  color: #d9ffe9;
  font-weight: 850;
}

.combat-resource-panel,
.combat-effects-panel,
.combat-log-panel {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.combat-resource-panel h4,
.combat-effects-panel h4,
.combat-log-panel h4 {
  margin: 0;
}

.combat-resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.55rem;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.combat-resource-item {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(125, 211, 255, 0.28);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.combat-resource-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  inline-size: 0.28rem;
  background: rgba(125, 211, 255, 0.78);
}

.combat-resource-item > * {
  position: relative;
}

.combat-resource-item--health {
  border-color: rgba(255, 140, 140, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 140, 140, 0.12), rgba(255, 184, 107, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.combat-resource-item--health::before {
  background: linear-gradient(180deg, #ff8c8c, #ffb86b);
}

.combat-resource-item--mental_energy {
  border-color: rgba(216, 140, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(216, 140, 255, 0.12), rgba(125, 211, 255, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.combat-resource-item--mental_energy::before {
  background: linear-gradient(180deg, #d88cff, #7dd3ff);
}

.combat-resource-item--oxygen {
  border-color: rgba(51, 225, 161, 0.34);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.11), rgba(125, 211, 255, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.combat-resource-item--oxygen::before {
  background: linear-gradient(180deg, #33e1a1, #7dd3ff);
}

.combat-resource-item__label {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: #e8f8ff;
  font-size: 0.95rem;
}

.combat-resource-meter {
  width: 100%;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.62);
}

.combat-resource-meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.62);
}

.combat-resource-meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #33e1a1, #7dd3ff);
  transition: width var(--motion-medium) var(--motion-ease);
}

.combat-resource-meter::-moz-meter-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #33e1a1, #7dd3ff);
  transition: width var(--motion-medium) var(--motion-ease);
}

.combat-resource-meter--health::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #ff8c8c, #ffb86b);
}

.combat-resource-meter--health::-moz-meter-bar {
  background: linear-gradient(90deg, #ff8c8c, #ffb86b);
}

.combat-resource-meter--mental_energy::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #d88cff, #7dd3ff);
}

.combat-resource-meter--mental_energy::-moz-meter-bar {
  background: linear-gradient(90deg, #d88cff, #7dd3ff);
}

.combat-effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
}

.combat-effect-box {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem;
  border: 1px solid rgba(125, 211, 255, 0.26);
  border-left-width: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
}

.combat-effect-box > strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f7fbff;
  line-height: 1.25;
}

.combat-effect-box > strong::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.7rem;
  block-size: 0.7rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.86;
  box-shadow: 0 0 0 0.13rem rgba(255, 255, 255, 0.08);
}

.combat-effect-box--warning {
  border-color: rgba(255, 184, 107, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.14), rgba(3, 22, 34, 0.20)),
    rgba(255, 255, 255, 0.04);
}

.combat-effect-box--warning > strong::before {
  border-radius: 0.18rem;
  transform: rotate(45deg);
  background: #ffb86b;
}

@media (prefers-reduced-motion: no-preference) {
  .combat-effect-box--warning {
    animation: combat-warning-pulse 2.8s ease-in-out infinite;
  }
}

@keyframes combat-warning-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 184, 107, 0);
  }
  50% {
    box-shadow: 0 0 1.15rem rgba(255, 184, 107, 0.22);
  }
}

.combat-effect-box--player {
  border-color: rgba(51, 225, 161, 0.44);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.12), rgba(3, 22, 34, 0.20)),
    rgba(255, 255, 255, 0.04);
}

.combat-effect-box--player > strong::before {
  background: #33e1a1;
}

.combat-effect-box--enemy {
  border-color: rgba(232, 93, 117, 0.46);
  background:
    linear-gradient(135deg, rgba(232, 93, 117, 0.12), rgba(3, 22, 34, 0.20)),
    rgba(255, 255, 255, 0.04);
}

.combat-effect-box--enemy > strong::before {
  border-radius: 0.15rem;
  background: #e85d75;
}

.combat-effect-box--cooldown {
  border-color: rgba(216, 140, 255, 0.44);
  background:
    linear-gradient(135deg, rgba(216, 140, 255, 0.12), rgba(3, 22, 34, 0.20)),
    rgba(255, 255, 255, 0.04);
}

.combat-effect-box--cooldown > strong::before {
  border-radius: 0.15rem;
  background:
    linear-gradient(90deg, transparent 35%, #f7fbff 35% 45%, transparent 45% 55%, #f7fbff 55% 65%, transparent 65%),
    #d88cff;
}

.combat-effect-list {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}

.combat-log {
  max-height: min(24rem, 48vh);
  overflow: auto;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.35);
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.combat-log__entry {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(125, 211, 255, 0.12);
  border-radius: 9px;
  background: rgba(255,255,255,0.035);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.combat-log__entry--latest {
  border-color: rgba(255, 224, 102, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 224, 102, 0.11), rgba(3, 22, 34, 0.18)),
    rgba(255,255,255,0.04);
}

@media (prefers-reduced-motion: no-preference) {
  .combat-log__entry--latest {
    animation: combat-log-latest-breathe 900ms var(--motion-ease-soft) 1;
  }
}

@keyframes combat-log-latest-breathe {
  0% {
    box-shadow: 0 0 0 rgba(255, 224, 102, 0);
    transform: translateY(0.12rem);
  }
  45% {
    box-shadow: 0 0 1rem rgba(255, 224, 102, 0.22);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 224, 102, 0);
    transform: translateY(0);
  }
}

.combat-log__latest-chip {
  flex: 0 0 auto;
  border-color: rgba(255, 224, 102, 0.42);
  background: rgba(255, 224, 102, 0.12);
  color: #fff4c7;
}

.combat-log__text {
  min-width: 0;
}

.combat-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.65rem;
}

.combat-action-set,
.combat-picker-fieldset {
  margin: 0;
  padding: 0.75rem;
  border-color: rgba(125, 211, 255, 0.24);
  background: rgba(255,255,255,0.035);
}

.combat-choice-panel--primary {
  display: grid;
  gap: 0.55rem;
}

.combat-action-card {
  min-width: 0;
  border: 1px solid rgba(125, 211, 255, 0.20);
  border-left-width: 4px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(3,22,34,0.16)),
    rgba(3, 22, 34, 0.24);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.combat-action-card:hover,
.combat-action-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 102, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.12);
}

.combat-action-card--attack {
  border-left-color: #ffb86b;
}

.combat-action-card--guard {
  border-left-color: #33e1a1;
}

.combat-action-card--run {
  border-left-color: #d88cff;
}

.combat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
}

.combat-action-card .combat-action-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 0.62rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.combat-action-btn__mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.72), rgba(255,255,255,0.16) 32%, transparent 34%),
    rgba(125, 211, 255, 0.22);
}

.combat-action-btn__copy {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.combat-action-btn__label {
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
}

.combat-action-btn__hint {
  color: #cfeeff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.combat-action-btn--attack .combat-action-btn__mark {
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.7), rgba(255,255,255,0.15) 32%, transparent 34%),
    linear-gradient(135deg, #ffb86b, #e85d75);
}

.combat-action-btn--guard .combat-action-btn__mark {
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.7), rgba(255,255,255,0.15) 32%, transparent 34%),
    linear-gradient(135deg, #7dd3ff, #33e1a1);
}

.combat-action-btn--run .combat-action-btn__mark {
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.7), rgba(255,255,255,0.15) 32%, transparent 34%),
    linear-gradient(135deg, #f7d36a, #d88cff);
}

.combat-action-btn--item .combat-action-btn__mark {
  border-radius: 0.34rem;
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.7), rgba(255,255,255,0.15) 32%, transparent 34%),
    linear-gradient(135deg, #33e1a1, #f7d36a);
  box-shadow:
    inset 0 0 0 0.18rem rgba(3, 22, 34, 0.16),
    0 0 0 0.08rem rgba(255, 255, 255, 0.08);
}

.combat-action-btn--skill .combat-action-btn__mark {
  margin-inline: 0.1rem;
  border-radius: 0.28rem;
  transform: rotate(45deg);
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.7), rgba(255,255,255,0.15) 32%, transparent 34%),
    linear-gradient(135deg, #7dd3ff, #d88cff);
}

.combat-picker-row select {
  min-width: min(100%, 14rem);
}

.combat-post-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* ===== Fight Plan ===== */
.fight-plan-page {
  display: grid;
  gap: 1rem;
  max-width: 1080px;
  margin-inline: auto;
}

.fight-plan-hero {
  overflow: hidden;
  border-color: rgba(255, 184, 107, 0.42);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 184, 107, 0.16), transparent 25%),
    linear-gradient(135deg, rgba(21, 86, 119, 0.24), rgba(3, 22, 34, 0.34)),
    rgba(12, 47, 72, 0.22);
}

.fight-plan-hero__layout {
  display: grid;
  grid-template-columns: minmax(7rem, 10.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.fight-plan-portrait {
  min-width: 0;
}

.fight-plan-portrait img,
.fight-plan-portrait .img-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(125, 211, 255, 0.30);
  border-radius: 14px;
  background: rgba(3, 22, 34, 0.48);
}

.fight-plan-portrait .img-fallback {
  display: grid;
  place-items: center;
  padding: 0.75rem;
  color: #bde7ef;
  text-align: center;
}

.fight-plan-heading {
  min-width: 0;
}

.fight-plan-heading h2 {
  margin: 0.1rem 0 0.25rem;
}

.fight-plan-safe-note {
  max-width: 42rem;
  margin: 0.25rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(51, 225, 161, 0.26);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.30);
  color: #dffbff;
}

.fight-plan-safe-note--opt-in {
  border-left: 4px solid rgba(51, 225, 161, 0.62);
}

.fight-plan-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 1rem;
  padding-left: 0;
  list-style: none;
}

.fight-plan-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(125, 211, 255, 0.28);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.34);
  color: #dffbff;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.fight-plan-summary-chip::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 999px;
  background: currentColor;
}

.fight-plan-summary-chip--budget {
  border-color: rgba(125, 211, 255, 0.36);
}

.fight-plan-summary-chip--budget::before {
  border-radius: 0.14rem;
  background: #7dd3ff;
}

.fight-plan-summary-chip--total {
  border-color: rgba(51, 225, 161, 0.36);
}

.fight-plan-summary-chip--total::before {
  background: #33e1a1;
}

.fight-plan-summary-chip--health {
  border-color: rgba(255, 184, 107, 0.38);
  background: rgba(255, 184, 107, 0.10);
  color: #ffe0c1;
}

.fight-plan-summary-chip--health::before {
  clip-path: polygon(50% 0, 62% 22%, 85% 24%, 78% 47%, 92% 67%, 68% 73%, 50% 100%, 32% 73%, 8% 67%, 22% 47%, 15% 24%, 38% 22%);
  border-radius: 0;
}

.fight-plan-form {
  display: grid;
  gap: 1rem;
}

.fight-plan-panel {
  display: grid;
  gap: 0.75rem;
}

.fight-plan-panel__head h3,
.fight-plan-panel__head p {
  margin: 0;
}

.fight-plan-panel__head h3 {
  margin-top: 0.12rem;
}

.fight-plan-name-field {
  max-width: 32rem;
  margin: 0;
}

.fight-plan-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.fight-plan-fieldset legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.fight-plan-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.fight-plan-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.6rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(3,22,34,0.16)),
    rgba(255,255,255,0.045);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.fight-plan-stat:hover,
.fight-plan-stat:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(3,22,34,0.18)),
    rgba(255,255,255,0.055);
}

.fight-plan-stat-card {
  border-left-width: 4px;
}

.fight-plan-stat-card--brawn {
  border-left-color: #ff9f87;
}

.fight-plan-stat-card--brains {
  border-left-color: #a7b8ff;
}

.fight-plan-stat-card--bounce {
  border-left-color: #33e1a1;
}

.fight-plan-stat-card--swagger {
  border-left-color: #ffe066;
}

.fight-plan-stat__body {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.fight-plan-stat__mark {
  width: 2.25rem;
  height: 2.25rem;
  grid-row: span 2;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.58), rgba(255,255,255,0.12) 34%, transparent 36%),
    rgba(125, 211, 255, 0.22);
  box-shadow: inset 0 -0.35rem 0 rgba(3, 22, 34, 0.22);
}

.fight-plan-stat--brawn .fight-plan-stat__mark {
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.56), rgba(255,255,255,0.12) 34%, transparent 36%),
    linear-gradient(135deg, #ffb86b, #e85d75);
}

.fight-plan-stat--brains .fight-plan-stat__mark {
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.56), rgba(255,255,255,0.12) 34%, transparent 36%),
    linear-gradient(135deg, #7dd3ff, #33e1a1);
}

.fight-plan-stat--bounce .fight-plan-stat__mark {
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.56), rgba(255,255,255,0.12) 34%, transparent 36%),
    linear-gradient(135deg, #a7e96f, #40d2ff);
}

.fight-plan-stat--swagger .fight-plan-stat__mark {
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.56), rgba(255,255,255,0.12) 34%, transparent 36%),
    linear-gradient(135deg, #f7d36a, #d88cff);
}

.fight-plan-stat input {
  width: 100%;
  max-width: 7rem;
}

.fight-plan-help-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.65rem;
  padding-left: 0;
  margin: 0.85rem 0 0;
}

.fight-plan-help-card {
  position: relative;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.20);
  border-left-width: 4px;
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.28);
  color: #cfeeff;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.fight-plan-help-card:hover,
.fight-plan-help-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.40);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background: rgba(3, 22, 34, 0.34);
}

.fight-plan-help-card--brawn,
.fight-plan-help-card--hurt {
  border-left-color: #ff9f87;
}

.fight-plan-help-card--brains {
  border-left-color: #a7b8ff;
}

.fight-plan-help-card--bounce,
.fight-plan-help-card--first-move,
.fight-plan-help-card--guard {
  border-left-color: #33e1a1;
}

.fight-plan-help-card--swagger,
.fight-plan-help-card--when-behind,
.fight-plan-help-card--attack,
.fight-plan-help-card--feint {
  border-left-color: #ffe066;
}

.fight-plan-help-card--fallback,
.fight-plan-help-card--focus,
.fight-plan-help-card--counter {
  border-left-color: #7dd3ff;
}

.fight-plan-help-card--rule {
  background:
    linear-gradient(135deg, rgba(125, 211, 255, 0.07), rgba(3, 22, 34, 0.14)),
    rgba(3, 22, 34, 0.28);
}

.fight-plan-help-card--move {
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.06), rgba(3, 22, 34, 0.14)),
    rgba(3, 22, 34, 0.28);
}

.fight-plan-help-grid strong {
  color: #f7fbff;
}

.fight-plan-moves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
}

.fight-plan-move-card {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-left-width: 4px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(3,22,34,0.16)),
    rgba(3, 22, 34, 0.28);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.fight-plan-move-card:hover,
.fight-plan-move-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(3,22,34,0.18)),
    rgba(3, 22, 34, 0.32);
}

.fight-plan-move-card--first {
  border-left-color: #33e1a1;
}

.fight-plan-move-card--hurt {
  border-left-color: #ff9f87;
}

.fight-plan-move-card--behind {
  border-left-color: #ffe066;
}

.fight-plan-move-card--fallback {
  border-left-color: #7dd3ff;
}

.fight-plan-move-card select {
  width: 100%;
}

.fight-plan-ready-card {
  display: grid;
  gap: 0.55rem;
  border-color: rgba(51, 225, 161, 0.36);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.10), rgba(3, 22, 34, 0.30)),
    rgba(12, 47, 72, 0.18);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.fight-plan-ready-card:hover,
.fight-plan-ready-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(51, 225, 161, 0.50);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.13), rgba(3, 22, 34, 0.32)),
    rgba(12, 47, 72, 0.22);
}

.fight-plan-ready-card--opt-in {
  border-left: 4px solid rgba(51, 225, 161, 0.62);
}

.fight-plan-ready-card h3,
.fight-plan-ready-card p {
  margin: 0;
}

.fight-plan-ready-card__control {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.30);
}

.fight-plan-actions {
  margin-top: 0;
}

.help-list {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.15rem;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

/* ===== Player Home / Character / Inventory ===== */
.page-heading {
  margin-bottom: 1rem;
}

.page-heading h1,
.page-heading h2 {
  margin-top: 0.1rem;
  margin-bottom: 0.25rem;
}

.eyebrow {
  margin: 0;
  color: #9ee9e2;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-band {
  margin-top: 1.25rem;
}

.home-dashboard {
  display: grid;
  gap: 1rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.home-hero__media {
  min-height: 12rem;
  background:
    radial-gradient(circle at 48% 30%, rgba(125, 211, 255, 0.18), transparent 48%),
    rgba(3, 22, 34, 0.44);
  border-right: 1px solid rgba(125, 211, 255, 0.22);
  display: grid;
  place-items: center;
}

.home-hero__media img,
.home-hero__media .img-fallback {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: contain;
  padding: 0.65rem;
}

.home-hero__body {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  padding: 1rem;
}

.home-hero__body h1 {
  margin: 0;
}

.home-hero__body p {
  margin: 0;
}

.home-summary-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding-left: 0;
  margin: 0.35rem 0 0;
}

.home-summary-card,
.home-count,
.home-meter {
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.42);
}

.home-summary-card {
  position: relative;
  min-width: 0;
  padding: 0.65rem 0.65rem 0.65rem 0.85rem;
  border-left-width: 4px;
  overflow: hidden;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.home-summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
}

.home-summary-card::after {
  content: "";
  position: absolute;
  right: 0.62rem;
  top: 0.68rem;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.65;
}

.home-summary-card--quests {
  border-left-color: #33e1a1;
}

.home-summary-card--jobs {
  border-left-color: #ffb86b;
}

.home-summary-card--jobs::after {
  border-radius: 0.14rem;
}

.home-summary-card--fights {
  border-left-color: #ff9f87;
}

.home-summary-card--fights::after {
  clip-path: polygon(50% 0, 65% 34%, 100% 38%, 74% 62%, 82% 100%, 50% 78%, 18% 100%, 26% 62%, 0 38%, 35% 34%);
  border-radius: 0;
}

.home-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.home-summary-strip strong {
  display: block;
  color: #f7fbff;
  font-size: 1.35rem;
  line-height: 1.05;
}

.home-status,
.home-section {
  padding: 1rem;
}

.home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.home-section-head h2,
.home-section-head p {
  margin: 0;
}

.home-count {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  color: #dffbff;
  font-weight: 900;
}

.home-meters {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-left: 0;
  margin: 0;
}

.home-meter {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.home-meter:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.38);
}

.home-meter__text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-meter__text span {
  color: var(--muted);
  font-weight: 800;
}

.home-meter__text strong {
  color: #f7fbff;
  font-size: 1.12rem;
  line-height: 1.1;
  white-space: nowrap;
}

.home-meter__bar {
  display: block;
  height: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(2, 14, 22, 0.64);
}

.home-meter__bar span {
  display: block;
  height: 100%;
  min-width: 0.18rem;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-reef), var(--accent-sea));
  transition: width var(--motion-medium) var(--motion-ease), filter var(--motion-fast) ease;
}

.home-meter--health .home-meter__bar span {
  background: linear-gradient(90deg, #ff746f, #ffd1aa);
}

.home-meter--mental .home-meter__bar span {
  background: linear-gradient(90deg, #ffd56f, #8be8ff);
}

.home-meter--gumption .home-meter__bar span {
  background: linear-gradient(90deg, #f5d36f, #8be8ff);
}

.home-alert {
  margin: 0.85rem 0 0;
}

.home-action-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  padding-left: 0;
  margin: 0;
}

.home-action-card {
  min-width: 0;
}

.home-action-card--next .home-action-card__link {
  position: relative;
  border-left: 4px solid rgba(255, 184, 107, 0.72);
}

.home-action-card--next .home-action-card__link::after {
  content: "";
  position: absolute;
  right: 0.78rem;
  top: 0.82rem;
  inline-size: 0.56rem;
  block-size: 0.56rem;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #ffd8a3;
  opacity: 0.78;
}

.home-action-card__link {
  display: grid;
  gap: 0.45rem;
  min-height: 7rem;
  height: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(125, 211, 255, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(17, 87, 118, 0.44), rgba(3, 22, 34, 0.34)),
    rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.home-action-card__link:hover,
.home-action-card__link:focus-visible {
  border-color: var(--focus);
  transform: translateY(-1px);
  box-shadow: 0 0 1.2rem rgba(255, 224, 102, 0.14);
}

.home-action-card__kicker,
.home-action-card__open {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-action-card strong {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.22;
}

.home-action-card__open {
  align-self: end;
  justify-self: start;
  border-bottom: 1px solid rgba(255, 184, 107, 0.68);
  color: #ffd8a3;
}

.home-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: 1rem;
}

.home-news-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.75rem;
  padding-left: 0;
  margin: 0;
}

.home-news-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-left: 4px solid rgba(125, 211, 255, 0.62);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.34), rgba(3, 22, 34, 0.26)),
    rgba(255, 255, 255, 0.04);
  text-align: left;
  overflow: hidden;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.home-news-card:hover,
.home-news-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.40);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
}

.home-news-card::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.7rem;
  inline-size: 1.05rem;
  block-size: 0.72rem;
  border: 1px solid rgba(255, 224, 102, 0.38);
  border-radius: 999px 999px 0.35rem 0.35rem;
  background:
    radial-gradient(circle at 32% 62%, rgba(255, 224, 102, 0.45) 0 12%, transparent 13%),
    radial-gradient(circle at 62% 54%, rgba(255, 255, 255, 0.32) 0 10%, transparent 11%),
    rgba(255, 184, 107, 0.12);
  opacity: 0.62;
  pointer-events: none;
}

.home-news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-news-card time {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.home-news-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.home-news-card p {
  margin: 0;
  color: var(--muted);
}

.pip-mentor-panel {
  border-color: rgba(255, 224, 102, 0.32);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 224, 102, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(125, 211, 255, 0.10), rgba(51, 225, 161, 0.07) 52%, rgba(3, 22, 34, 0.20)),
    rgba(12, 47, 72, 0.24);
}

.pip-mentor-layout {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pip-mentor-portrait {
  display: grid;
  place-items: center;
  min-width: 0;
}

.pip-mentor-portrait img {
  display: block;
  width: min(100%, 8.5rem);
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid rgba(255, 224, 102, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.20), transparent 36%),
    rgba(3, 22, 34, 0.42);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.22);
}

.pip-mentor-body {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.pip-mentor-body h2,
.pip-mentor-suggestion h3,
.pip-mentor-progress h3 {
  margin: 0;
}

.pip-mentor-suggestion {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 224, 102, 0.24);
  border-left: 4px solid rgba(255, 224, 102, 0.62);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 224, 102, 0.10), rgba(3, 22, 34, 0.22)),
    rgba(255, 255, 255, 0.04);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.pip-mentor-suggestion:hover,
.pip-mentor-suggestion:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 102, 0.42);
  box-shadow: 0 0 1rem rgba(255, 224, 102, 0.10);
}

.pip-mentor-suggestion p {
  margin: 0;
  color: var(--muted);
}

.pip-mentor-moment {
  border-left-color: rgba(51, 225, 161, 0.72);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.12), rgba(255, 224, 102, 0.08), rgba(3, 22, 34, 0.22)),
    rgba(255, 255, 255, 0.05);
}

.pip-mentor-reward-text {
  padding: 0.48rem 0.6rem;
  border: 1px solid rgba(51, 225, 161, 0.26);
  border-radius: 10px;
  background: rgba(51, 225, 161, 0.10);
  color: #d8fff0;
}

.pip-mentor-moment form {
  margin: 0;
}

.pip-mentor-progress {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.pip-mentor-progress ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.55rem;
  padding-left: 0;
  margin: 0;
}

.pip-mentor-progress__item {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 10px;
  background: rgba(3, 22, 34, 0.36);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.pip-mentor-progress__item:hover,
.pip-mentor-progress__item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.38);
}

.pip-mentor-progress__item.is-complete {
  border-color: rgba(51, 225, 161, 0.34);
  background: rgba(51, 225, 161, 0.09);
}

.pip-mentor-progress__item span {
  color: #f7fbff;
  font-weight: 850;
  line-height: 1.25;
}

.pip-mentor-progress__item strong {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.2;
}

.first-swim-panel {
  border-color: rgba(51, 225, 161, 0.34);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.08), rgba(125, 211, 255, 0.06) 48%, rgba(3, 22, 34, 0.18)),
    rgba(12, 47, 72, 0.22);
}

.first-swim-panel > .muted {
  margin-top: -0.35rem;
}

.first-swim-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
  padding-left: 0;
  margin: 0.85rem 0 0;
  counter-reset: first-swim;
}

.first-swim-card {
  counter-increment: first-swim;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.7rem;
  min-width: 0;
  min-height: 11rem;
  padding: 0.85rem;
  padding-left: 2.75rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(51, 225, 161, 0.62);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.08), rgba(3, 22, 34, 0.20)),
    rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.first-swim-card::before {
  content: counter(first-swim);
  position: absolute;
  left: 0.75rem;
  top: 0.82rem;
  display: inline-grid;
  place-items: center;
  inline-size: 1.38rem;
  block-size: 1.38rem;
  border: 1px solid rgba(255, 224, 102, 0.42);
  border-radius: 999px;
  background: rgba(255, 184, 107, 0.14);
  color: #fff5c6;
  font-size: 0.85rem;
  font-weight: 900;
}

.first-swim-card:hover,
.first-swim-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(51, 225, 161, 0.44);
  box-shadow: 0 0 1rem rgba(51, 225, 161, 0.10);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.11), rgba(3, 22, 34, 0.22)),
    rgba(255, 255, 255, 0.055);
}

.first-swim-card strong {
  display: block;
  color: #f7fbff;
  line-height: 1.25;
}

.first-swim-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.42;
}

.first-swim-card .btn {
  justify-self: start;
}

.dictionary-page {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.dictionary-page .glass-panel {
  text-align: left;
}

.dictionary-hero {
  border-color: rgba(51, 225, 161, 0.36);
}

.dictionary-quick-panel {
  border-color: rgba(255, 224, 102, 0.28);
}

.dictionary-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.dictionary-answer-card {
  display: grid;
  align-content: space-between;
  gap: 0.75rem;
  min-height: 12rem;
  border-left: 4px solid rgba(255, 224, 102, 0.5);
}

.dictionary-answer-card h4 {
  margin: 0;
}

.dictionary-answer-card p {
  margin: 0;
  color: var(--muted);
}

.dictionary-answer-card .btn {
  justify-self: start;
}

.dictionary-toc {
  padding: 1rem;
}

.dictionary-toc h3 {
  margin: 0 0 0.65rem;
}

.dictionary-toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
  margin: 0;
}

.dictionary-toc a {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(125, 211, 255, 0.26);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.28);
  color: #dffbff;
  font-weight: 800;
  text-decoration: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.dictionary-toc a:hover,
.dictionary-toc a:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 0.16rem rgba(255, 224, 102, 0.14);
}

.dictionary-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.75rem;
}

.dictionary-section-card {
  border-left: 4px solid rgba(125, 211, 255, 0.58);
}

.dictionary-section-card p {
  margin-top: 0;
  color: var(--muted);
}

.known-currents-page {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.known-currents-page .glass-panel {
  text-align: left;
}

.known-currents-hero {
  border-color: rgba(255, 224, 102, 0.34);
}

.known-currents-note {
  border-color: rgba(51, 225, 161, 0.28);
}

.known-currents-note h3 {
  margin-top: 0;
}

.known-currents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.75rem;
}

.known-current-card {
  display: grid;
  gap: 0.7rem;
  border-left: 4px solid rgba(51, 225, 161, 0.52);
}

.known-current-card h3,
.known-current-card p {
  margin: 0;
}

.known-current-card p {
  color: var(--muted);
}

.home-row-list,
.home-event-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  padding-left: 0;
  margin: 0;
}

.home-row-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.32), rgba(3, 22, 34, 0.24)),
    rgba(255, 255, 255, 0.04);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.home-row-card:hover,
.home-row-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.36);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
}

.home-row-card--fight,
.home-row-card--quest,
.home-row-card--job {
  border-left-width: 4px;
}

.home-row-card--fight {
  border-left-color: #ff9f87;
}

.home-row-card--quest {
  border-left-color: #33e1a1;
}

.home-row-card--job {
  border-left-color: #ffb86b;
}

.home-row-card__body {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.home-row-card__body strong {
  color: #fff;
  margin-right: 0.1rem;
  min-width: 0;
}

.home-row-card__body p {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
}

.home-row-card__body .chip,
.home-row-card__body .home-fact-chip {
  margin-left: 0.35rem;
  vertical-align: 0.08rem;
}

.home-fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.26rem 0.52rem;
  border: 1px solid rgba(125, 211, 255, 0.26);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.40);
  color: #dffbff;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

.home-fact-chip::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.48rem;
  block-size: 0.48rem;
  border-radius: 999px;
  background: currentColor;
}

.home-fact-chip--fight-type {
  border-color: rgba(255, 159, 135, 0.36);
  background: rgba(255, 159, 135, 0.12);
  color: #ffd4c8;
}

.home-fact-chip--fight-type::before {
  clip-path: polygon(50% 0, 64% 31%, 98% 34%, 72% 57%, 81% 100%, 50% 76%, 19% 100%, 28% 57%, 2% 34%, 36% 31%);
  border-radius: 0;
}

.home-fact-chip--step {
  border-color: rgba(51, 225, 161, 0.34);
  background: rgba(51, 225, 161, 0.12);
  color: #c9ffe9;
}

.home-fact-chip--step::before,
.home-fact-chip--level::before {
  border-radius: 0.14rem;
}

.home-fact-chip--location {
  border-color: rgba(125, 211, 255, 0.36);
  background: rgba(125, 211, 255, 0.11);
  color: #dffbff;
}

.home-fact-chip--location::before {
  clip-path: polygon(50% 0, 92% 45%, 50% 100%, 8% 45%);
  border-radius: 0;
}

.home-fact-chip--level {
  border-color: rgba(255, 184, 107, 0.36);
  background: rgba(255, 184, 107, 0.12);
  color: #ffe0c1;
}

.home-fact-chip--locked {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.07);
  color: #c9dce2;
}

.home-fact-chip--locked::before {
  inline-size: 0.38rem;
  block-size: 0.58rem;
  border-radius: 0.12rem;
}

.home-fact-chip--news {
  border-color: rgba(125, 211, 255, 0.38);
  background: rgba(125, 211, 255, 0.12);
  color: #dffbff;
}

.home-fact-chip--news::before {
  border-radius: 999px 999px 0.16rem 0.16rem;
}

.home-fact-chip--mentor {
  border-color: rgba(255, 224, 102, 0.40);
  background: rgba(255, 224, 102, 0.12);
  color: #fff3bd;
}

.home-fact-chip--mentor::before {
  clip-path: polygon(50% 0, 92% 28%, 72% 88%, 50% 100%, 28% 88%, 8% 28%);
  border-radius: 0;
}

.home-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-row-actions .btn,
.home-row-actions button {
  white-space: nowrap;
}

.home-event-list li {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.18);
  border-radius: 10px;
  background: rgba(3, 22, 34, 0.34);
}

.status-panel,
.character-hero,
.inventory-card,
.empty-state {
  border: 1px solid rgba(125, 211, 255, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(24, 96, 130, 0.16), rgba(3, 22, 34, 0.28)),
    rgba(255,255,255,0.035);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) 1.3fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.status-panel h2 {
  margin: 0.1rem 0 0;
}

.status-meters,
.metric-strip {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  padding-left: 0;
  margin: 0;
}

.status-meters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-meters li,
.metric-strip li {
  padding: 0.7rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.42);
}

.status-meters span,
.metric-strip span {
  display: block;
  color: #a7d7df;
  font-size: 0.86rem;
  line-height: 1.2;
}

.status-meters strong,
.metric-strip strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 1.25rem;
  line-height: 1.1;
}

.action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-left: 0;
}

.action-grid li {
  list-style: none;
  min-width: min(100%, 13rem);
}

.action-grid .btn {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.empty-state {
  padding: 0.85rem 1rem;
}

.empty-state h3,
.empty-state p {
  margin-top: 0;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

.character-hero {
  display: grid;
  grid-template-columns: minmax(11rem, 18rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.character-portrait {
  min-width: 0;
}

.character-portrait-stack {
  position: relative;
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
}

.character-portrait .avatar,
.character-portrait .img-fallback {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 20rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 255, 0.28);
  background: rgba(3, 22, 34, 0.55);
}

.character-gear-layer {
  position: absolute;
  z-index: 2;
  width: 3.45rem;
  height: 3.45rem;
  pointer-events: none;
  object-fit: cover;
  border: 1px solid rgba(190, 240, 255, 0.46);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.24), transparent 38%),
    rgba(3, 22, 34, 0.72);
  box-shadow: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.26);
}

.character-gear-layer--wearable {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  filter: drop-shadow(0 0.45rem 0.45rem rgba(0, 0, 0, 0.32));
}

.character-gear-layer--role-fit {
  opacity: 0.96;
}

.character-gear-layer--accent {
  z-index: 3;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border: 1px solid rgba(190, 240, 255, 0.52);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.30), transparent 38%),
    rgba(3, 22, 34, 0.78);
  box-shadow: 0 0.55rem 1.2rem rgba(0, 0, 0, 0.25);
  padding: 0.18rem;
  filter: drop-shadow(0 0.25rem 0.35rem rgba(0, 0, 0, 0.30));
}

.character-gear-layer--weapon {
  left: 0.55rem;
  bottom: 0.75rem;
  transform: rotate(-7deg);
}

.character-gear-layer--offhand {
  right: 0.55rem;
  bottom: 0.75rem;
  transform: rotate(7deg);
}

.character-gear-layer--body,
.character-gear-layer--chest {
  left: 50%;
  bottom: 35%;
  transform: translateX(-50%);
}

.character-gear-layer--head {
  left: 50%;
  top: 0.55rem;
  transform: translateX(-50%);
}

.character-gear-layer--hands {
  left: 0.55rem;
  top: 43%;
}

.character-gear-layer--legs {
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
}

.character-gear-layer--feet {
  right: 0.55rem;
  bottom: 0.45rem;
}

.character-gear-layer--accessory {
  right: 0.55rem;
  top: 0.65rem;
}

.character-gear-layer--aura {
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 108%;
  height: 108%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0.7;
  mix-blend-mode: screen;
  filter: blur(0.2px) saturate(1.15);
}

@media (prefers-reduced-motion: no-preference) {
  .character-gear-layer--aura {
    animation: aura-soft-pulse 4.8s ease-in-out infinite;
    transform-origin: center;
  }
}

@keyframes aura-soft-pulse {
  0%,
  100% {
    opacity: 0.68;
  }
  50% {
    opacity: 0.84;
  }
}

.character-gear-layer--anchor-brawn-force-aura {
  opacity: 0.78;
  filter: blur(0.15px) saturate(1.25) contrast(1.08);
}

.character-gear-layer--anchor-brains-charge-aura {
  opacity: 0.74;
  filter: blur(0.15px) saturate(1.18) hue-rotate(12deg);
}

.character-gear-layer--anchor-bounce-motion-aura {
  opacity: 0.72;
  filter: blur(0.12px) saturate(1.22) hue-rotate(-16deg);
}

.character-gear-layer--anchor-swagger-flourish-aura {
  opacity: 0.76;
  filter: blur(0.12px) saturate(1.18) brightness(1.06);
}

.character-gear-layer--costume {
  z-index: 2;
  left: 50%;
  bottom: 3%;
  width: 82%;
  height: 76%;
  transform: translateX(-50%);
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0.42rem 0.45rem rgba(0, 0, 0, 0.30));
}

.character-gear-layer--jewelry {
  right: 7%;
  top: 30%;
  z-index: 4;
}

.character-gear-layer--weapon.character-gear-layer--wearable {
  left: -2%;
  bottom: 3%;
  width: 62%;
  height: 66%;
  transform: rotate(-7deg);
}

.character-gear-layer--offhand.character-gear-layer--wearable {
  right: 4%;
  bottom: 17%;
  width: 36%;
  height: 36%;
  transform: rotate(5deg);
}

.character-gear-layer--body.character-gear-layer--wearable,
.character-gear-layer--chest.character-gear-layer--wearable {
  left: 50%;
  bottom: 6%;
  width: 78%;
  height: 70%;
  transform: translateX(-50%);
}

.character-gear-layer--accessory.character-gear-layer--wearable {
  right: 2%;
  top: 12%;
  width: 30%;
  height: 24%;
}

.character-gear-layer--head.character-gear-layer--wearable {
  left: 50%;
  top: -2%;
  width: 48%;
  height: 32%;
  transform: translateX(-50%);
}

.character-gear-layer--hands.character-gear-layer--wearable {
  left: 50%;
  top: 38%;
  width: 76%;
  height: 34%;
  transform: translateX(-50%);
}

.character-gear-layer--jewelry.character-gear-layer--wearable {
  right: 7%;
  top: 28%;
  width: 34%;
  height: 30%;
}

.character-gear-layer--motion-random-mood-shimmer {
  animation: mood-ring-shimmer 6.5s ease-in-out infinite;
}

@keyframes mood-ring-shimmer {
  0%,
  100% {
    filter:
      drop-shadow(0 0.45rem 0.45rem rgba(0, 0, 0, 0.32))
      hue-rotate(0deg)
      saturate(1.05);
    opacity: 0.92;
  }
  33% {
    filter:
      drop-shadow(0 0.45rem 0.45rem rgba(0, 0, 0, 0.32))
      hue-rotate(70deg)
      saturate(1.28);
    opacity: 1;
  }
  66% {
    filter:
      drop-shadow(0 0.45rem 0.45rem rgba(0, 0, 0, 0.32))
      hue-rotate(145deg)
      saturate(1.18);
    opacity: 0.96;
  }
}

.character-gear-layer--body.character-gear-layer--accent,
.character-gear-layer--chest.character-gear-layer--accent {
  left: 0.65rem;
  bottom: 0.65rem;
  transform: rotate(-6deg);
}

.character-gear-layer--head.character-gear-layer--accent {
  right: 0.65rem;
  top: 0.65rem;
  left: auto;
  transform: rotate(6deg);
}

.character-gear-layer--accessory.character-gear-layer--accent {
  right: 0.65rem;
  top: 3.95rem;
}

.character-portrait__gear-summary {
  margin: 0.55rem 0 0;
  text-align: center;
}

.character-summary {
  min-width: 0;
}

.character-summary h2 {
  margin: 0.15rem 0 0.25rem;
}

.character-role-note {
  max-width: 58rem;
  margin: 0.65rem 0 0;
  color: #d9f7ff;
  line-height: 1.55;
}

.metric-strip {
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  margin-top: 0.85rem;
}

.metric-strip--vitals {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.character-section {
  margin-bottom: 1rem;
}

.character-section h2 {
  margin-top: 0.1rem;
}

.character-section__intro {
  margin-top: -0.15rem;
}

.character-list,
.achievements-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  padding-left: 0;
  margin: 0;
}

.character-list__row,
.quest-journal-row,
.achievement-row {
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.30);
  padding: 0.7rem;
}

.skill-row,
.quest-journal-row__layout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.skill-row__body,
.quest-journal-row__body {
  min-width: 0;
  flex: 1 1 auto;
}

.character-note {
  margin-top: 0.28rem;
}

.stat-ledger-grid,
.stat-help-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.7rem;
  padding-left: 0;
  margin: 0;
}

.stat-ledger-card,
.stat-help-grid li {
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.34), rgba(3, 22, 34, 0.26)),
    rgba(3, 22, 34, 0.28);
  padding: 0.75rem;
}

.stat-ledger-card--primary {
  border-color: rgba(255, 184, 107, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.13), rgba(3, 22, 34, 0.30)),
    rgba(3, 22, 34, 0.28);
}

.stat-ledger-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 1.8rem;
}

.stat-ledger-card__label,
.stat-help-grid strong {
  color: #c7f3f0;
  font-weight: 850;
}

.stat-ledger-card__badge {
  border-color: rgba(255, 184, 107, 0.62);
  background: rgba(255, 184, 107, 0.16);
  color: #fff2cf;
}

.stat-ledger-card__value {
  display: block;
  margin-top: 0.1rem;
  color: #f7fbff;
  font-size: 1.6rem;
  line-height: 1.1;
}

.stat-help-grid li {
  display: grid;
  gap: 0.25rem;
}

.stat-help-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.character-math-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.character-math-grid li {
  display: grid;
  gap: 0.15rem;
}

.character-math-grid .value {
  color: #f7fbff;
  font-weight: 850;
}

.equipment-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.equipment-row:hover,
.equipment-row:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
}

.equipment-row--equipped {
  border-left-width: 4px;
  border-left-color: rgba(51, 225, 161, 0.62);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.08), rgba(3, 22, 34, 0.22)),
    rgba(3, 22, 34, 0.30);
}

.equipment-row--cannot-fit {
  border-left-color: rgba(255, 184, 107, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.11), rgba(3, 22, 34, 0.22)),
    rgba(3, 22, 34, 0.32);
}

.equipment-row__slot {
  flex: 0 0 5.25rem;
  color: #c7f3f0;
}

.equipment-row__thumb {
  width: 3rem;
  height: 3rem;
}

.equipment-row__name {
  flex: 1 1 8rem;
  min-width: 0;
  color: #f7fbff;
  font-weight: 800;
}

.equipment-row__portrait-note {
  flex: 0 0 auto;
  border-color: rgba(125, 211, 255, 0.48);
  background: rgba(13, 148, 136, 0.16);
  color: #d9f7ff;
  white-space: nowrap;
}

.equipment-row__portrait-note--badge {
  border-color: rgba(190, 240, 255, 0.28);
  background: rgba(3, 22, 34, 0.42);
  color: var(--muted);
}

.equipment-row__portrait-note--accent {
  border-color: rgba(190, 240, 255, 0.42);
  background: rgba(125, 211, 255, 0.14);
  color: #e9fbff;
}

.equipment-row__wearing-note {
  flex: 1 1 100%;
  min-width: 0;
  color: #cfeeff;
}

.equipment-row__motion-note {
  border-color: rgba(255, 224, 102, 0.42);
  background: rgba(255, 224, 102, 0.14);
  color: #fff6c7;
}

.equipment-row__bonus-note {
  border-color: rgba(99, 241, 175, 0.42);
  background: rgba(99, 241, 175, 0.12);
  color: #d9ffe9;
}

.equipment-row__power {
  margin-left: auto;
  white-space: nowrap;
}

.item-thumb {
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 8px;
  background: rgba(3, 22, 34, 0.5);
  object-fit: cover;
}

.achievement-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.achievement-row--earned {
  border-left: 4px solid rgba(99, 241, 175, 0.72);
  background:
    linear-gradient(135deg, rgba(99, 241, 175, 0.10), rgba(3, 22, 34, 0.26)),
    rgba(3, 22, 34, 0.32);
}

.achievement-row--secret {
  border-left-color: rgba(218, 178, 255, 0.76);
}

.achievement-body {
  min-width: 0;
  flex: 1 1 auto;
}

.achievement-row__head,
.achievement-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.achievement-row__name {
  color: #f6fbff;
}

.achievement-meta-row {
  margin-top: 0.35rem;
}

.achievement-chip {
  color: #e7f8ff;
}

.achievement-chip--category {
  border-color: rgba(125, 211, 255, 0.46);
  background: rgba(125, 211, 255, 0.13);
}

.achievement-chip--earned {
  border-color: rgba(99, 241, 175, 0.46);
  background: rgba(99, 241, 175, 0.12);
  color: #d9ffe9;
}

.achievement-chip--secret {
  border-color: rgba(218, 178, 255, 0.48);
  background: rgba(121, 76, 156, 0.24);
  color: #f3ddff;
}

.achievement-icon img {
  display: block;
  border-radius: 6px;
}

.achievement-icon--fallback {
  color: #2b1a00;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.secret-tag {
  margin-left: 0.25rem;
}

.achievement-prize-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.achievement-prize-chip {
  color: #f3fbff;
}

.achievement-prize-chip--stat {
  border-color: rgba(125, 211, 255, 0.44);
  background: rgba(125, 211, 255, 0.13);
}

.achievement-prize-chip--currency {
  border-color: rgba(255, 224, 102, 0.48);
  background: rgba(255, 224, 102, 0.13);
  color: #fff4c7;
}

.achievement-prize-chip--skill {
  border-color: rgba(218, 178, 255, 0.48);
  background: rgba(218, 178, 255, 0.13);
  color: #f2dcff;
}

.quest-journal-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.quest-journal-row {
  text-align: left;
}

.quest-journal-row--active {
  border-left: 4px solid rgba(125, 211, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(125, 211, 255, 0.10), rgba(3, 22, 34, 0.28)),
    rgba(3, 22, 34, 0.32);
}

.quest-journal-row--completed {
  border-left: 4px solid rgba(99, 241, 175, 0.70);
}

.quest-journal-row--focus {
  border-color: rgba(255, 184, 107, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.12), rgba(3, 22, 34, 0.30)),
    rgba(3, 22, 34, 0.30);
}

.quest-journal-row__title {
  color: #f6fbff;
}

.quest-status-chip {
  color: #e7f8ff;
}

.quest-status-chip--active {
  border-color: rgba(125, 211, 255, 0.50);
  background: rgba(125, 211, 255, 0.14);
}

.quest-status-chip--completed {
  border-color: rgba(99, 241, 175, 0.46);
  background: rgba(99, 241, 175, 0.12);
  color: #d9ffe9;
}

.quest-journal-next-card {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(255, 224, 102, 0.62);
  border-radius: 10px;
  background: rgba(5, 31, 46, 0.48);
  text-align: left;
}

.quest-journal-next-card__label {
  color: #cfeeff;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quest-journal-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quest-journal-chip {
  color: #e9f8ff;
}

.quest-journal-chip--step {
  border-color: rgba(255, 224, 102, 0.48);
  background: rgba(255, 224, 102, 0.13);
  color: #fff4c7;
}

.quest-journal-chip--location {
  border-color: rgba(125, 211, 255, 0.44);
  background: rgba(125, 211, 255, 0.12);
}

.quest-journal-go-link {
  text-decoration: none;
}

.quest-journal-fact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.45rem;
  padding-left: 0;
  margin: 0.55rem 0 0;
}

.quest-journal-fact-list li {
  display: grid;
  gap: 0.12rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(125, 211, 255, 0.18);
  border-radius: 10px;
  background: rgba(3, 22, 34, 0.34);
  text-align: left;
}

.quest-journal-fact-list span {
  color: #b9d7e5;
  font-size: 0.78rem;
  font-weight: 750;
}

.quest-journal-fact-list strong {
  color: #f5fbff;
}

.inventory-page {
  display: grid;
  gap: 1rem;
}

.inventory-message {
  margin-bottom: 0;
}

.inventory-message h3,
.inventory-card h3 {
  margin-top: 0;
}

.inventory-tabs {
  margin: 0;
}

.inventory-panel:not([hidden]) {
  display: grid;
  gap: 1rem;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.75rem;
}

.inventory-summary__item {
  display: grid;
  gap: 0.15rem;
  min-height: 4.2rem;
  padding: 0.7rem;
  border: 1px solid rgba(125, 211, 255, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 18%, rgba(158, 233, 226, 0.14), transparent 42%),
    rgba(3, 22, 34, 0.28);
}

.inventory-summary__label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.inventory-summary__item strong {
  color: #f7fbff;
  font-size: 1.45rem;
  line-height: 1;
}

.inventory-card {
  border-color: rgba(125, 211, 255, 0.26);
  padding: 0.85rem;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, filter var(--motion-fast) ease;
}

.inventory-card:hover,
.inventory-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  filter: brightness(1.02);
}

.inventory-card--equipment {
  box-shadow: inset 3px 0 0 rgba(255, 184, 107, 0.52), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.inventory-card--consumables {
  box-shadow: inset 3px 0 0 rgba(99, 241, 175, 0.52), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.inventory-card--misc {
  box-shadow: inset 3px 0 0 rgba(125, 211, 255, 0.56), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.inventory-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.inventory-card__head h3,
.inventory-card__head p {
  margin: 0;
}

.inventory-card__head h3 {
  margin-bottom: 0.18rem;
}

.inventory-card__count {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(158, 233, 226, 0.36);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.42);
  color: #dffbff;
  font-weight: 900;
}

.inventory-empty {
  margin-top: 0.75rem;
}

.inventory-card .list-compact {
  display: grid;
  gap: 0.6rem;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.inv-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  padding: 0.6rem;
  border: 1px solid rgba(125, 211, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.36), rgba(3, 22, 34, 0.24)),
    rgba(3, 22, 34, 0.26);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.inv-item:hover,
.inv-item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.44), rgba(3, 22, 34, 0.25)),
    rgba(3, 22, 34, 0.30);
}

.inv-item--equipment,
.inv-item--consumables,
.inv-item--misc {
  border-left-width: 4px;
}

.inv-item--equipment {
  border-left-color: rgba(255, 184, 107, 0.58);
}

.inv-item--consumables {
  border-left-color: rgba(99, 241, 175, 0.58);
}

.inv-item--misc {
  border-left-color: rgba(125, 211, 255, 0.62);
}

.inv-item--cannot-fit {
  border-left-color: rgba(255, 184, 107, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.12), rgba(3, 22, 34, 0.22)),
    rgba(3, 22, 34, 0.32);
}

.inv-item__main {
  flex: 1 1 14rem;
  min-width: min(100%, 12rem);
  display: grid;
  gap: 0.18rem;
}

.inv-item__title-line {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex-wrap: wrap;
}

.inv-item__name {
  color: #f7fbff;
  line-height: 1.2;
}

.inv-item__qty {
  color: #d9f7ff;
}

.inv-item__thumb {
  width: 50px;
  height: 50px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.inv-item__description {
  margin: 0;
}

.inventory-item-action {
  margin: 0;
  margin-left: auto;
}

.inventory-item-action .btn {
  white-space: nowrap;
}

.inventory-action-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 18rem;
  margin-top: 0.3rem;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.30);
  color: #dff8ff;
  font-weight: 760;
  line-height: 1.2;
}

.inventory-action-note::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.48rem;
  block-size: 0.48rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
  box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.07);
}

.inventory-action-note--equip {
  border-color: rgba(51, 225, 161, 0.34);
  color: #d9ffe9;
}

.inventory-action-note--unequip {
  border-color: rgba(125, 211, 255, 0.34);
  color: #dff8ff;
}

.inventory-action-note--use {
  border-color: rgba(255, 224, 102, 0.36);
  color: #fff4c7;
}

.inventory-action-note--locked {
  display: grid;
  gap: 0.18rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 184, 107, 0.26);
  border-left: 3px solid rgba(255, 184, 107, 0.68);
  border-radius: 8px;
  background: rgba(255, 184, 107, 0.10);
  color: #ffe8c7;
}

.inventory-action-note--locked::before {
  border-radius: 0.14rem;
  transform: rotate(45deg);
}

.inventory-action-note__fit-roles {
  display: block;
}

.inventory-chip {
  border-color: rgba(125, 211, 255, 0.32);
  background: rgba(125, 211, 255, 0.10);
  color: #dff8ff;
}

.inventory-chip--bonus {
  border-color: rgba(99, 241, 175, 0.42);
  background: rgba(99, 241, 175, 0.12);
  color: #d9ffe9;
}

.inventory-chip--equipped {
  border-color: rgba(99, 241, 175, 0.46);
  background: rgba(99, 241, 175, 0.14);
  color: #d9ffe9;
}

.equip-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.6rem;
  padding-left: 0;
  margin: 0;
}

.equip-slot-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 4.4rem;
  padding: 0.6rem;
  border: 1px solid rgba(125, 211, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.30), rgba(3, 22, 34, 0.24)),
    rgba(3, 22, 34, 0.24);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.equip-slot-row:hover,
.equip-slot-row:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(11, 62, 84, 0.38), rgba(3, 22, 34, 0.25)),
    rgba(3, 22, 34, 0.28);
}

.equip-slot-row--filled {
  border-left: 4px solid rgba(51, 225, 161, 0.58);
}

.equip-slot-row--empty {
  border-left: 4px solid rgba(125, 211, 255, 0.24);
}

.equip-slot-row--cannot-fit {
  border-left-color: rgba(255, 184, 107, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.11), rgba(3, 22, 34, 0.22)),
    rgba(3, 22, 34, 0.32);
}

.equip-slot-row__slot {
  min-width: 4.8rem;
  color: #f7fbff;
}

.equip-slot-row__thumb {
  width: 40px;
  height: 40px;
}

.equip-slot-row__item {
  min-width: 0;
  font-weight: 750;
}

.equip-slot-row__empty {
  font-style: italic;
}

/* ===== Guest / Shops / Services / Arena ===== */
.glass-panel,
.guest-hero,
.guest-form-card,
.shop-hero,
.service-panel,
.arena-hero {
  border: 1px solid rgba(125, 211, 255, 0.30);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(21, 86, 119, 0.22), rgba(3, 22, 34, 0.32)),
    rgba(12, 47, 72, 0.18);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

@media (prefers-reduced-motion: no-preference) {
  .glass-panel {
    animation: surface-rise var(--motion-slow) var(--motion-ease-soft) both;
  }
}

@keyframes surface-rise {
  from {
    opacity: 0.88;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guest-hero,
.guest-form-card,
.shop-hero,
.service-panel,
.arena-hero,
.glass-panel {
  padding: 1rem;
}

.no-peeking-shell {
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  text-align: left;
}

.no-peeking-shell h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1;
}

.no-peeking-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem;
  align-items: center;
}

.no-peeking-boot {
  inline-size: min(100%, 14rem);
  block-size: auto;
  justify-self: center;
  filter: drop-shadow(0 1rem 1.4rem rgba(0, 0, 0, 0.34));
}

.no-peeking-copy {
  min-width: 0;
}

.no-peeking-copy p {
  margin: .35rem 0;
}

.no-peeking-kicker {
  color: var(--accent-reef);
  font-weight: 900;
  font-size: 1.25rem;
}

.no-peeking-copy .btn {
  margin-top: .8rem;
}

.maintenance-shell {
  max-width: 44rem;
  margin: 0 auto 1.5rem;
  padding: clamp(1rem, 3vw, 1.65rem);
}

.maintenance-shell h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1;
}

.maintenance-copy {
  display: grid;
  gap: .55rem;
  font-size: 1.08rem;
  line-height: 1.58;
}

.maintenance-copy p {
  margin: 0;
}

.error-panel {
  max-width: 44rem;
  margin: 0 auto 1.5rem;
  padding: clamp(1rem, 3vw, 1.65rem);
}

.error-panel h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1;
}

.error-panel code {
  font-weight: 900;
  letter-spacing: 0;
}

@media (max-width: 620px) {
  .no-peeking-shell {
    text-align: center;
  }

  .no-peeking-layout {
    grid-template-columns: 1fr;
  }

  .no-peeking-boot {
    inline-size: min(72vw, 13rem);
  }

  .maintenance-shell {
    text-align: center;
  }

  .error-panel {
    text-align: center;
  }
}

.guest-form-card {
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.guest-form-card:focus-within {
  border-color: rgba(255, 224, 102, 0.52);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24),
    0 0 1.2rem rgba(255, 224, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(21, 86, 119, 0.26), rgba(3, 22, 34, 0.34)),
    rgba(12, 47, 72, 0.22);
}

.guest-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: 1rem;
  align-items: center;
  min-height: 20rem;
}

.guest-hero--uprising {
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
  align-items: stretch;
}

.guest-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
}

.guest-hero--uprising .guest-hero__copy {
  align-content: center;
  max-width: 47rem;
  gap: 0.7rem;
}

.guest-hero__copy h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  line-height: 0.98;
}

.guest-hero--uprising .guest-hero__copy h1 {
  max-width: 14.5ch;
  font-size: clamp(2.35rem, 5vw, 4.05rem);
  line-height: 0.98;
}

.guest-hero__callout {
  color: #ffe066;
}

.guest-manifesto {
  display: grid;
  gap: 0.5rem;
  line-height: 1.45;
}

.guest-manifesto p {
  margin: 0;
}

.guest-manifesto__punch {
  color: #f7fbff;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.guest-lede {
  font-size: 1.2rem;
  line-height: 1.45;
  color: #f7fbff;
}

.guest-hero--uprising .guest-lede {
  font-size: clamp(1.1rem, 1.7vw, 1.22rem);
}

.guest-hero__art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.guest-hero--uprising .guest-hero__art {
  align-content: center;
}

.guest-art-card {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(125, 211, 255, 0.30);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(10, 78, 117, 0.34), rgba(3, 22, 34, 0.55)),
    rgba(3, 22, 34, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.guest-art-card--front {
  grid-row: span 2;
}

.guest-art-card:hover,
.guest-art-card:focus-within {
  animation: none;
  transform: translateY(-2px);
  border-color: rgba(125, 211, 255, 0.48);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(10, 78, 117, 0.42), rgba(3, 22, 34, 0.58)),
    rgba(3, 22, 34, 0.46);
}

@media (prefers-reduced-motion: no-preference) {
  .guest-art-card {
    animation: guest-art-bob 6s ease-in-out infinite;
  }

  .guest-art-card:nth-child(2) {
    animation-delay: -1.6s;
  }

  .guest-art-card:nth-child(3) {
    animation-delay: -3.2s;
  }
}

@keyframes guest-art-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.25rem);
  }
}

.guest-art-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(3, 22, 34, 0.72);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease;
}

.guest-art-card:hover img,
.guest-art-card:focus-within img {
  transform: scale(1.025);
  filter: brightness(1.04) saturate(1.04);
}

.guest-art-card span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f7fbff;
}

.guest-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.guest-actions .btn {
  min-width: 9rem;
  text-align: center;
}

.guest-actions .btn-primary {
  border-color: rgba(255, 224, 102, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 184, 107, 0.96), rgba(198, 93, 58, 0.92)),
    var(--accent-reef);
  color: #041c29;
  text-shadow: none;
}

.guest-actions .btn-primary:hover,
.guest-actions .btn-primary:focus-visible {
  box-shadow: 0 4px 0 rgba(0,0,0,.54), 0 0 1.4rem rgba(255, 184, 107, 0.24);
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guest-section {
  margin-top: 1rem;
}

.guest-section--daily {
  padding-block: 1.25rem;
}

.guest-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 0.8rem;
}

.guest-mini-card {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.28);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.guest-mini-card:hover,
.guest-mini-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.44);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background: rgba(3, 22, 34, 0.34);
}

.guest-mini-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.guest-mini-card p {
  margin-bottom: 0;
}

.glass-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.1rem;
}

.guest-form-card {
  max-width: 34rem;
  margin-inline: auto;
}

.guest-form-card--wide {
  max-width: 1000px;
}

.guest-form-card__head {
  margin-bottom: 1rem;
}

.guest-form-card__head h1 {
  margin-top: 0.15rem;
}

.auth-section {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.20);
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.auth-section:focus-within {
  border-color: rgba(255, 224, 102, 0.46);
  box-shadow: 0 0 1rem rgba(255, 224, 102, 0.10);
  background: rgba(3, 22, 34, 0.27);
}

.auth-section__head h2 {
  margin: 0.15rem 0 0;
}

.stacked-form {
  display: grid;
  gap: 0.85rem;
}

.service-panel {
  margin: 0.75rem 0;
}

.service-page {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.service-backnav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.service-hero {
  overflow: hidden;
}

.service-panel__layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-panel__body {
  flex: 1 1 auto;
  min-width: 0;
}

.service-panel__body h1,
.shop-hero h1,
.arena-hero h2 {
  margin-top: 0.1rem;
}

.service-portrait {
  flex: 0 0 6rem;
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 255, 0.32);
  background: rgba(3, 22, 34, 0.52);
}

.service-portrait-stack {
  position: relative;
  flex: 0 0 6rem;
  width: 6rem;
  height: 6rem;
}

.service-portrait-stack > .service-portrait {
  width: 100%;
  height: 100%;
}

.service-portrait--actor-badge {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.08rem;
  border-radius: 0.85rem;
  border-color: rgba(234, 250, 255, 0.58);
  background: rgba(3, 22, 34, 0.82);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.34);
}

.service-copy {
  white-space: pre-wrap;
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(125, 211, 255, 0.20);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.28);
}

.service-actions {
  margin-top: 0.75rem;
}

.service-actor-line {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0.45rem 0 0;
}

.service-actor-line strong {
  color: #f7fbff;
}

.service-section {
  margin-top: 1rem;
}

.service-section--inner {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(125, 211, 255, 0.20);
}

.service-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.service-section__head h2,
.service-section__head p {
  margin: 0;
}

.service-section__count {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(158, 233, 226, 0.36);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.42);
  color: #dffbff;
  font-weight: 900;
}

.service-section__lore-note {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: fit-content;
  max-width: 100%;
  margin: -0.25rem 0 0.75rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.28);
  color: #d8f3ff;
  font-weight: 780;
  line-height: 1.25;
}

.service-section__lore-note::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.55rem;
  block-size: 0.55rem;
  border-radius: 0.16rem;
  background: currentColor;
  opacity: 0.78;
  transform: rotate(45deg);
  box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.07);
}

.shop-shelf__lore-note {
  border-color: rgba(255, 184, 107, 0.32);
  color: #ffe3bd;
}

.service-alert {
  margin: 0.25rem 0 0.75rem;
}

.service-note {
  margin-top: 0.25rem;
}

.choice-stack {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.service-choice-card {
  position: relative;
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left-width: 4px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(3, 22, 34, 0.18)),
    rgba(3, 22, 34, 0.28);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.service-choice-card:hover,
.service-choice-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.46);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(3, 22, 34, 0.20)),
    rgba(3, 22, 34, 0.32);
}

.service-choice-card--available {
  border-left-color: rgba(51, 225, 161, 0.72);
}

.service-choice-card--locked {
  border-left-color: rgba(255, 184, 107, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.10), rgba(3, 22, 34, 0.18)),
    rgba(3, 22, 34, 0.30);
}

.service-choice-card__form {
  display: grid;
  gap: 0.42rem;
  margin: 0;
}

.service-choice-card .btn {
  justify-self: start;
}

.service-choice-card__note {
  max-width: 100%;
}

.choice-stack .btn {
  max-width: 100%;
  white-space: normal;
}

.service-option-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.service-option-note__reason {
  flex-basis: 100%;
}

.service-action-note {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  flex: 1 1 100%;
  width: fit-content;
  max-width: 100%;
  padding: 0.24rem 0.52rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 999px;
  background: rgba(3, 22, 34, 0.30);
  color: #cfeeff;
  font-weight: 760;
  line-height: 1.2;
}

.service-action-note::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.48rem;
  block-size: 0.48rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
  box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.07);
}

.service-action-note--reply {
  border-color: rgba(125, 211, 255, 0.28);
}

.service-action-note--exchange {
  border-color: rgba(51, 225, 161, 0.34);
  color: #d9ffe9;
}

.service-action-note--locked {
  border-color: rgba(255, 184, 107, 0.36);
  color: #ffe3bd;
}

.service-action-note--locked::before {
  border-radius: 0.14rem;
  transform: rotate(45deg);
}

.gear-fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border-color: rgba(125, 211, 255, 0.34);
  background: rgba(3, 22, 34, 0.42);
  color: #e8fbff;
  font-weight: 850;
}

.gear-fact-chip::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
  box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.08);
}

.gear-fact-chip--slot {
  border-color: rgba(125, 211, 255, 0.48);
  background: rgba(125, 211, 255, 0.12);
  color: #dff8ff;
}

.gear-fact-chip--cost {
  border-color: rgba(255, 184, 107, 0.48);
  background: rgba(255, 184, 107, 0.13);
  color: #ffe5bd;
}

.gear-fact-chip--reward {
  border-color: rgba(51, 225, 161, 0.42);
  background: rgba(51, 225, 161, 0.12);
  color: #d9ffe9;
}

.gear-fact-chip--fit {
  border-color: rgba(190, 240, 255, 0.44);
  background: rgba(190, 240, 255, 0.11);
  color: #f0fdff;
}

.gear-fact-chip--bonus {
  border-color: rgba(255, 224, 102, 0.46);
  background: rgba(255, 224, 102, 0.13);
  color: #fff5c6;
}

.gear-fact-chip--portrait {
  border-color: rgba(125, 211, 255, 0.48);
  background: rgba(13, 148, 136, 0.16);
  color: #d9f7ff;
}

.gear-fact-chip--motion {
  border-color: rgba(255, 224, 102, 0.42);
  background: rgba(255, 224, 102, 0.14);
  color: #fff6c7;
}

.gear-fact-chip--warning::before {
  border-radius: 2px;
  transform: rotate(45deg);
}

.gear-fact-note {
  display: block;
  flex: 1 1 100%;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 3px solid rgba(125, 211, 255, 0.62);
  border-radius: 8px;
  background: rgba(3, 22, 34, 0.34);
  line-height: 1.35;
}

.gear-fact-note--wearing {
  color: #dff8ff;
}

.equipment-fit-warning {
  border-color: rgba(255, 184, 107, 0.56);
  background: rgba(255, 184, 107, 0.16);
  color: #ffe8c7;
}

.equipment-fit-reason {
  flex: 1 1 100%;
  min-width: 0;
  color: #ffe8c7;
}

.choice-stack--locked {
  opacity: 0.9;
}

.shop-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.shop-item {
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 14px;
  background: rgba(3, 22, 34, 0.30);
  padding: 0.75rem;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.shop-item:hover,
.shop-item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.44);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background: rgba(3, 22, 34, 0.36);
}

.shop-item--for-sale {
  border-left-width: 4px;
  border-left-color: rgba(51, 225, 161, 0.66);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.07), rgba(3, 22, 34, 0.14)),
    rgba(3, 22, 34, 0.30);
}

.shop-item--cannot-afford,
.shop-item--empty {
  border-left-color: rgba(255, 184, 107, 0.76);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.10), rgba(3, 22, 34, 0.16)),
    rgba(3, 22, 34, 0.32);
}

.shop-item__body {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
}

.shop-item__body--for-sale {
  grid-template-columns: 4.75rem minmax(0, 1fr) minmax(8rem, auto) minmax(7rem, auto);
}

.shop-item__body--for-sale .shop-item__main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shop-item__body--trainer {
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
}

.shop-item__body--quest {
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  align-items: start;
}

.shop-item__media {
  align-self: start;
  width: 4.75rem;
  aspect-ratio: 1 / 1;
}

.shop-item__media--placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.15), transparent 34%),
    rgba(3, 22, 34, 0.30);
}

.shop-item__media--placeholder .location-type-badge__icon {
  opacity: 0.82;
}

.shop-item__thumb {
  display: block;
  width: 100%;
  height: 100%;
}

.shop-item__main h3 {
  margin: 0 0 0.2rem;
}

.shop-item__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  padding-left: 0;
  margin: 0.45rem 0 0;
}

.shop-item__facts--price li {
  min-width: min(100%, 8.5rem);
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 10px;
  background: rgba(3, 22, 34, 0.34);
}

.shop-item__facts--price strong {
  color: #f7fbff;
}

.shop-item__meta {
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
  max-width: 24rem;
}

.shop-item__meta .equipment-fit-reason {
  flex: 1 1 100%;
  overflow-wrap: anywhere;
}

.shop-item__action {
  text-align: right;
}

.shop-item__action--buy {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  min-width: 7rem;
}

.shop-item__action--locked .service-note {
  max-width: 13rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 184, 107, 0.24);
  border-left: 3px solid rgba(255, 184, 107, 0.66);
  border-radius: 8px;
  background: rgba(255, 184, 107, 0.10);
  text-align: left;
}

.shop-item__action .btn {
  white-space: normal;
}

.speech-card {
  margin: 0.6rem 0;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--accent-reef);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.34);
}

.speech-card__text {
  margin-top: 0.25rem;
}

.trainer-list {
  margin-top: 0.25rem;
}

.trainer-lock-note {
  text-align: right;
  max-width: 14rem;
}

.quest-board-row__body p {
  margin: 0.45rem 0 0;
}

.quest-board-row {
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.quest-board-row:hover,
.quest-board-row:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.46);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
}

.quest-board-row__actions {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.quest-board-row__media .location-type-badge {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.service-fact-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.7rem;
  padding-left: 0;
  margin: 0.75rem 0 0;
}

.service-fact-grid li {
  padding: 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.34);
}

.service-fact-grid span,
.service-fact-grid small {
  display: block;
  color: var(--muted);
}

.service-fact-grid span {
  font-size: 0.86rem;
  font-weight: 800;
}

.service-fact-grid strong {
  display: block;
  margin-top: 0.18rem;
  color: #f7fbff;
  line-height: 1.2;
}

.service-action-form {
  margin-top: 0.85rem;
}

.service-exchange-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-exchange-card {
  margin-top: 0;
}

.service-exchange-card form {
  display: grid;
  gap: 0.75rem;
}

.service-form-row {
  gap: 0.4rem;
}

.service-form-row label {
  color: var(--muted);
  font-size: 0.95rem;
}

.registration-success {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid rgba(255, 184, 107, 0.46);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 120%, rgba(51, 225, 161, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 184, 107, 0.14), rgba(125, 211, 255, 0.10) 48%, rgba(3, 22, 34, 0.34)),
    rgba(12, 47, 72, 0.22);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.registration-success__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(3, 22, 34, 0.36);
  border: 1px solid rgba(125, 211, 255, 0.22);
}

.success-next-steps {
  margin: 1rem 0;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(3, 22, 34, 0.34);
  border: 1px solid rgba(125, 211, 255, 0.20);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.registration-success__content {
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.registration-success__content:focus-within {
  border-color: rgba(255, 224, 102, 0.46);
  box-shadow: 0 0 1.2rem rgba(255, 224, 102, 0.12);
  background: rgba(3, 22, 34, 0.42);
}

.success-next-steps:hover,
.success-next-steps:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background: rgba(3, 22, 34, 0.40);
}

.bubbleworks,
.sea-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubbleworks__bubble {
  position: absolute;
  left: var(--x);
  bottom: -3rem;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92) 0 10%, transparent 12%),
    radial-gradient(circle at 68% 72%, rgba(125, 211, 255, 0.18), transparent 42%),
    rgba(180, 239, 255, 0.14);
  border: 1px solid rgba(207, 238, 255, 0.62);
  box-shadow:
    inset -5px -7px 12px rgba(255,255,255,0.16),
    inset 6px 8px 16px rgba(3, 22, 34, 0.28),
    0 0 18px rgba(125, 211, 255, 0.28);
  animation: bubblework-rise 3.9s ease-out var(--delay) infinite;
}

.sea-confetti__bit {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0.56rem;
  height: 1.05rem;
  border-radius: 0.2rem;
  background: var(--accent-reef);
  box-shadow: 0 0 12px rgba(255, 184, 107, 0.28);
  transform: rotate(18deg);
  animation: sea-confetti-drift 4.6s ease-in-out var(--delay) infinite;
}

.sea-confetti__bit:nth-child(3n) {
  background: var(--accent-kelp);
  box-shadow: 0 0 12px rgba(51, 225, 161, 0.25);
}

.sea-confetti__bit:nth-child(3n + 1) {
  background: var(--accent-surf);
  box-shadow: 0 0 12px rgba(125, 211, 255, 0.25);
}

@keyframes bubblework-rise {
  0% {
    transform: translate(-50%, 0) scale(0.45);
    opacity: 0;
  }
  18% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    transform: translate(calc(-50% + 1.5rem), -31rem) scale(1.2);
    opacity: 0;
  }
}

@keyframes sea-confetti-drift {
  0% {
    transform: translateY(-0.4rem) rotate(12deg);
    opacity: 0;
  }
  15% {
    opacity: 0.92;
  }
  50% {
    transform: translate(0.9rem, 1.1rem) rotate(124deg);
  }
  100% {
    transform: translate(-0.7rem, 2.3rem) rotate(248deg);
    opacity: 0.2;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.section-head h2,
.section-head h3,
.section-head p {
  margin: 0;
}

.section-head h2,
.section-head h3 {
  margin-top: 0.12rem;
}

.arena-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  text-align: left;
}

.arena-page > * {
  min-width: 0;
}

.arena-page .glass-panel {
  text-align: left;
}

.arena-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.8fr);
  gap: 1rem;
  align-items: center;
  border-color: rgba(255, 184, 107, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.14), rgba(51, 225, 161, 0.08) 46%, rgba(125, 211, 255, 0.11)),
    rgba(12, 47, 72, 0.20);
}

.arena-hero__copy {
  min-width: 0;
}

.arena-hero__status {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
  margin: 0.75rem 0 0;
}

.arena-hero__status-card {
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 2.1rem;
  border: 1px solid rgba(125, 211, 255, 0.20);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(125, 211, 255, 0.07), rgba(3, 22, 34, 0.14)),
    rgba(3, 22, 34, 0.30);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.arena-hero__status-card:hover,
.arena-hero__status-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(125, 211, 255, 0.10), rgba(3, 22, 34, 0.16)),
    rgba(3, 22, 34, 0.34);
}

.arena-hero__status-card::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.92rem;
  inline-size: 0.58rem;
  block-size: 0.58rem;
  border-radius: 999px;
  background: #7dd3ff;
  box-shadow: 0 0 0 0.14rem rgba(255, 255, 255, 0.08);
}

.arena-hero__status-card--plan {
  border-color: rgba(51, 225, 161, 0.35);
}

.arena-hero__status-card--plan::before {
  border-radius: 0.16rem;
  background: #33e1a1;
}

.arena-hero__status-card--fighter {
  border-color: rgba(255, 184, 107, 0.36);
}

.arena-hero__status-card--fighter::before {
  background: #ffb86b;
}

.arena-hero__status-card--rating {
  border-color: rgba(255, 224, 102, 0.36);
}

.arena-hero__status-card--rating::before {
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 70% 58%, 82% 100%, 50% 74%, 18% 100%, 30% 58%, 0 35%, 38% 35%);
  border-radius: 0;
  background: #ffe066;
}

.arena-hero__status-card--empty {
  border-style: dashed;
}

.arena-hero__status .muted {
  display: block;
  margin-top: 0.18rem;
}

.arena-hero__media {
  min-width: 0;
}

.arena-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 184, 107, 0.36);
  border-radius: 14px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.arena-info-grid,
.arena-rule-grid,
.arena-reward-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  padding-left: 0;
  margin: 0;
}

.arena-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.arena-rule-grid,
.arena-reward-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.arena-info-card,
.arena-rule-card,
.arena-reward-card {
  position: relative;
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.75rem 0.75rem 0.75rem 0.9rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-left-width: 4px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(3,22,34,0.16)),
    rgba(3, 22, 34, 0.30);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.arena-info-card:hover,
.arena-info-card:focus-within,
.arena-rule-card:hover,
.arena-rule-card:focus-within,
.arena-reward-card:hover,
.arena-reward-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(3,22,34,0.18)),
    rgba(3, 22, 34, 0.34);
}

.arena-info-card::before,
.arena-rule-card::before,
.arena-reward-card::before {
  content: "";
  position: absolute;
  right: 0.7rem;
  top: 0.72rem;
  inline-size: 0.48rem;
  block-size: 0.48rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.65;
}

.arena-info-card--spar {
  border-left-color: #33e1a1;
}

.arena-info-card--challenge {
  border-left-color: #7dd3ff;
}

.arena-info-card--challenge::before,
.arena-rule-card--judges::before,
.arena-reward-card--fee::before {
  border-radius: 0.14rem;
}

.arena-info-card--prize,
.arena-reward-card--prize,
.arena-reward-card--wallet {
  border-left-color: #ffe066;
}

.arena-info-card--prize::before,
.arena-reward-card--prize::before,
.arena-reward-card--wallet::before {
  inline-size: 0.58rem;
  block-size: 0.36rem;
  border-radius: 999px;
}

.arena-info-card--championship,
.arena-reward-card--challenge {
  border-left-color: #ffb86b;
}

.arena-info-card--championship::before,
.arena-rule-card--replay::before,
.arena-reward-card--challenge::before {
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 70% 58%, 82% 100%, 50% 74%, 18% 100%, 30% 58%, 0 35%, 38% 35%);
  border-radius: 0;
}

.arena-rule-card--rounds {
  border-left-color: #7dd3ff;
}

.arena-rule-card--league {
  border-left-color: #33e1a1;
}

.arena-rule-card--judges,
.arena-rule-card--replay {
  border-left-color: #ffb86b;
}

.arena-reward-card--fee,
.arena-reward-card--limit {
  border-left-color: #ff9f87;
}

.arena-info-card strong,
.arena-rule-card strong,
.arena-reward-card strong {
  color: #f7fbff;
}

.arena-info-card span,
.arena-rule-card span,
.arena-reward-card span {
  color: #cfeeff;
}

.arena-info-card__kicker,
.arena-reward-card > span:first-child {
  color: #a7d7df;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arena-page .quest-home-row {
  padding: 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.20);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.24);
}

.arena-contender-card {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr) minmax(9rem, auto);
  gap: 0.85rem;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(3,22,34,0.20)),
    rgba(3, 22, 34, 0.28);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.arena-contender-card:hover,
.arena-contender-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(3,22,34,0.22)),
    rgba(3, 22, 34, 0.32);
}

.arena-contender-card__media {
  min-width: 0;
}

.arena-contender-card__avatar {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(125, 211, 255, 0.28);
  border-radius: 14px;
  background: rgba(3, 22, 34, 0.48);
  transition: transform var(--motion-medium) var(--motion-ease), filter var(--motion-fast) ease;
}

.arena-contender-card:hover .arena-contender-card__avatar,
.arena-contender-card:focus-within .arena-contender-card__avatar {
  transform: scale(1.025);
  filter: brightness(1.04) saturate(1.03);
}

.arena-contender-card__avatar.img-fallback {
  display: grid;
  place-items: center;
  padding: 0.6rem;
  color: #bde7ef;
  text-align: center;
}

.arena-contender-card__body {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.arena-contender-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.arena-fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 184, 107, 0.36);
  border-radius: 999px;
  background: rgba(255, 184, 107, 0.12);
  color: #ffe0c1;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.arena-fact-chip::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 999px;
  background: currentColor;
}

.arena-fact-chip--health::before {
  clip-path: polygon(50% 0, 62% 22%, 85% 24%, 78% 47%, 92% 67%, 68% 73%, 50% 100%, 32% 73%, 8% 67%, 22% 47%, 15% 24%, 38% 22%);
  border-radius: 0;
}

.arena-stat-grid,
.arena-move-grid {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  padding-left: 0;
  margin: 0;
}

.arena-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.arena-move-grid {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.arena-stat-card,
.arena-move-card {
  position: relative;
  min-width: 0;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(125, 211, 255, 0.20);
  border-left-width: 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.arena-stat-card:hover,
.arena-stat-card:focus-within,
.arena-move-card:hover,
.arena-move-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.40);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background: rgba(255,255,255,0.06);
}

.arena-stat-card--brawn {
  border-left-color: #ff9f87;
}

.arena-stat-card--brains {
  border-left-color: #a7b8ff;
}

.arena-stat-card--bounce {
  border-left-color: #33e1a1;
}

.arena-stat-card--swagger {
  border-left-color: #ffe066;
}

.arena-move-card {
  background:
    linear-gradient(135deg, rgba(125, 211, 255, 0.06), rgba(3, 22, 34, 0.12)),
    rgba(255,255,255,0.045);
}

.arena-move-card--first {
  border-left-color: #33e1a1;
}

.arena-move-card--hurt {
  border-left-color: #ff9f87;
}

.arena-move-card--behind {
  border-left-color: #ffe066;
}

.arena-move-card--fallback {
  border-left-color: #7dd3ff;
}

.arena-stat-grid span,
.arena-move-grid span {
  display: block;
  color: #a7d7df;
  line-height: 1.2;
}

.arena-stat-grid strong,
.arena-move-grid strong {
  display: block;
  margin-top: 0.1rem;
}

.arena-contender-card__summary {
  margin-top: 0;
}

.arena-contender-card__actions {
  display: grid;
  justify-items: stretch;
  gap: 0.45rem;
}

.arena-contender-card__actions form {
  margin: 0;
}

.arena-contender-card__actions .btn {
  width: 100%;
  white-space: normal;
}

/* ===== Social: Rumor Bloom and Writings in the Sand ===== */
.social-page {
  display: grid;
  gap: 1rem;
}

.social-hero,
.social-compose,
.social-thread-panel,
.social-preview,
.social-locked-note {
  padding: 1rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
}

.social-locked-note--mute {
  border-color: rgba(255, 184, 107, 0.34);
  background:
    linear-gradient(135deg, rgba(82, 57, 12, 0.28), rgba(6, 29, 48, 0.46)),
    rgba(6, 29, 48, 0.62);
}

.social-hero {
  position: relative;
  overflow: hidden;
}

.social-hero::before {
  content: "";
  position: absolute;
  inset: auto 1rem 0.65rem auto;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 255, 0.22);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.58), transparent 22%),
    radial-gradient(circle, rgba(125, 211, 255, 0.18), transparent 68%);
  opacity: 0.62;
  pointer-events: none;
}

.social-hero h2,
.social-card h3,
.social-preview h3,
.forum-board-card h3,
.forum-thread-card h4,
.social-thread-panel h3 {
  margin-top: 0;
}

.social-hero__actions,
.social-compose__actions,
.social-message-card__actions,
.social-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.social-surface-grid,
.social-two-column,
.social-code-grid,
.social-support-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.social-card,
.forum-board-card,
.forum-thread-card,
.social-message-card,
.social-rule-card,
.social-support-card {
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 14px;
  background: rgba(6, 29, 48, 0.62);
  box-shadow: 0 0.65rem 1.35rem rgba(0, 0, 0, 0.16);
  transition:
    border-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease,
    background-color var(--motion-medium, 180ms) ease;
}

.social-card:hover,
.social-card:focus-within,
.forum-board-card:hover,
.forum-board-card:focus-within,
.forum-thread-card:hover,
.forum-thread-card:focus-within,
.social-message-card:hover,
.social-message-card:focus-within,
.social-rule-card:hover,
.social-rule-card:focus-within,
.social-support-card:hover,
.social-support-card:focus-within {
  border-color: rgba(255, 224, 102, 0.42);
  background: rgba(9, 39, 63, 0.72);
  box-shadow: 0 0.85rem 1.65rem rgba(0, 0, 0, 0.2), 0 0 1rem rgba(125, 211, 255, 0.14);
  transform: translateY(-1px);
}

.social-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 13rem;
  padding: 1rem;
}

.social-card--rumor {
  background:
    linear-gradient(145deg, rgba(6, 43, 63, 0.8), rgba(12, 63, 70, 0.58)),
    rgba(6, 29, 48, 0.62);
}

.social-card--sand {
  background:
    linear-gradient(145deg, rgba(46, 38, 22, 0.5), rgba(12, 63, 70, 0.58)),
    rgba(6, 29, 48, 0.62);
}

.social-card--current {
  background:
    linear-gradient(145deg, rgba(16, 42, 76, 0.66), rgba(45, 25, 64, 0.48)),
    rgba(6, 29, 48, 0.62);
}

.social-card--code {
  background:
    linear-gradient(145deg, rgba(55, 44, 19, 0.56), rgba(11, 55, 66, 0.58)),
    rgba(6, 29, 48, 0.62);
}

.social-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(125, 211, 255, 0.32);
  border-radius: 999px;
  background: rgba(3, 24, 38, 0.74);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.social-compose {
  display: grid;
  gap: 0.65rem;
}

.social-compose input,
.social-compose select,
.social-compose textarea,
.social-message-card__actions input {
  width: 100%;
}

.social-message-list,
.forum-board-list,
.forum-thread-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.forum-board-list--compact li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(125, 211, 255, 0.16);
}

.forum-board-list--compact li:last-child {
  border-bottom: 0;
}

.forum-board-card,
.forum-thread-card,
.social-message-card,
.social-rule-card,
.social-support-card {
  padding: 0.85rem;
}

.social-rule-card h3,
.social-support-panel h3,
.social-support-card h4 {
  margin-top: 0;
}

.social-rule-card ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.2rem;
  margin: 0.65rem 0 0;
}

.social-support-card {
  display: grid;
  gap: 0.75rem;
  align-content: space-between;
}

.social-support-card p {
  margin-bottom: 0;
}

.social-message-list--posts {
  padding-left: 1.35rem;
  list-style: decimal;
}

.social-message-card p,
.forum-board-card p,
.forum-thread-card p {
  white-space: pre-line;
}

.social-message-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
}

.social-message-card__meta strong {
  color: var(--text);
}

.social-message-card__actions {
  align-items: flex-end;
  margin-top: 0.7rem;
}

.social-message-card__actions form {
  display: flex;
  flex: 1 1 16rem;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
}

.social-message-card__actions input {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.social-message-card__actions .btn-sm {
  flex: 0 0 auto;
  white-space: nowrap;
}

.social-warning {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 224, 102, 0.34);
  border-radius: 10px;
  background: rgba(82, 57, 12, 0.38);
  color: #ffeeb0;
  font-weight: 800;
}

/* ===== In-game compact chat ===== */
.ingame-chat-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(6, 29, 48, 0.66);
  box-shadow: 0 0.65rem 1.35rem rgba(0, 0, 0, 0.14);
}

.ingame-chat-panel__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: baseline;
  justify-content: space-between;
}

.ingame-chat-panel__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.ingame-chat-panel__header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.ingame-chat-panel__messages {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ingame-chat-panel__messages li {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(125, 211, 255, 0.14);
}

.ingame-chat-panel__messages li:first-child {
  border-top: 0;
}

.ingame-chat-panel__messages span {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ingame-chat-panel__form {
  display: grid;
  gap: 0.5rem;
}

.ingame-chat-panel__form textarea {
  width: 100%;
  min-height: 4rem;
  resize: vertical;
}

.ingame-chat-panel__form button {
  justify-self: start;
}

@media (min-width: 900px) {
  .ingame-chat-panel {
    max-width: 100%;
  }
}

.social-message-card--hidden,
.forum-thread-card--hidden {
  border-style: dashed;
  opacity: 0.82;
}

.support-desk-page,
.admin-support-desk-page {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.support-desk-page .glass-panel,
.admin-support-desk-page .glass-panel {
  text-align: left;
}

.support-desk-hero {
  border-color: rgba(51, 225, 161, 0.38);
}

.support-desk-character-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.support-desk-character-card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
  padding: 0.85rem;
  border-color: rgba(255, 224, 102, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 224, 102, 0.07), rgba(51, 225, 161, 0.08)),
    rgba(6, 29, 48, 0.58);
}

.support-desk-character-card__portrait {
  width: 6.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(125, 211, 255, 0.28);
  border-radius: 1rem;
  background: rgba(3, 22, 34, 0.36);
  box-shadow: 0 0.75rem 1.3rem rgba(0, 0, 0, 0.18);
}

.support-desk-character-card h3,
.support-desk-character-card p {
  margin: 0;
}

.support-desk-character-card p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.support-desk-form {
  gap: 0.75rem;
}

.support-desk-form h3 {
  margin: 0;
}

.support-desk-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
}

.support-desk-form label {
  display: grid;
  gap: 0.28rem;
  color: #dffbff;
  font-weight: 800;
  text-align: left;
}

.support-desk-form option {
  white-space: normal;
}

.support-desk-report-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  padding-left: 0;
  margin: 0;
}

.support-desk-report-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(51, 225, 161, 0.58);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.08), rgba(3, 22, 34, 0.18)),
    rgba(255, 255, 255, 0.04);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.support-desk-report-card:hover,
.support-desk-report-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(51, 225, 161, 0.44);
  box-shadow: 0 0 1rem rgba(51, 225, 161, 0.10);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.11), rgba(3, 22, 34, 0.20)),
    rgba(255, 255, 255, 0.055);
}

.support-desk-report-card h4,
.support-desk-report-card h3,
.support-desk-report-card p {
  margin: 0;
}

@media (max-width: 560px) {
  .support-desk-character-card {
    grid-template-columns: 1fr;
  }

  .support-desk-character-card__portrait {
    width: min(100%, 9rem);
  }
}

.player-profile-page {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.player-profile-page .glass-panel {
  text-align: left;
}

.player-profile-hero {
  display: grid;
  grid-template-columns: minmax(9rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-color: rgba(125, 211, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(125, 211, 255, 0.10), rgba(51, 225, 161, 0.07) 44%, rgba(3, 22, 34, 0.22)),
    rgba(12, 47, 72, 0.24);
}

.player-profile-avatar {
  display: grid;
  place-items: center;
  min-height: 11rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 14px;
  background: rgba(3, 22, 34, 0.28);
  overflow: hidden;
}

.player-profile-avatar img,
.player-profile-avatar .img-fallback {
  width: min(100%, 12rem);
  max-height: 15rem;
  object-fit: contain;
}

.player-profile-hero__body {
  display: grid;
  gap: 0.65rem;
}

.player-profile-hero__body h2 {
  margin: 0;
}

.player-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.player-profile-card {
  padding: 1rem;
}

.profile-fact-list,
.profile-achievement-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
  margin: 0;
}

.profile-fact-list li,
.profile-achievement-card {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.28);
}

.profile-achievement-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.profile-achievement-card:hover,
.profile-achievement-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
}

@media (prefers-reduced-motion: no-preference) {
  .social-hero::before {
    animation: socialBubbleDrift 9s ease-in-out infinite alternate;
  }
}

@keyframes socialBubbleDrift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-0.55rem) scale(1.04);
  }
}

/* ===== Admin social moderation ===== */
.admin-social-page {
  display: grid;
  gap: 1rem;
}

.admin-social-hero,
.admin-report-filters,
.admin-report-tools,
.admin-report-panel {
  padding: 1rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
}

.admin-social-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  border-color: rgba(255, 184, 107, 0.42);
}

.admin-social-hero h2,
.admin-report-tools h3,
.admin-report-panel h3,
.admin-report-card h4 {
  margin-top: 0;
}

.admin-report-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.6rem;
}

.admin-report-filter {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 12px;
  background: rgba(3, 24, 38, 0.58);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color var(--motion-medium, 180ms) ease,
    background-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease;
}

.admin-report-filter:hover,
.admin-report-filter:focus-visible,
.admin-report-filter--active {
  border-color: rgba(255, 224, 102, 0.45);
  background: rgba(21, 86, 119, 0.34);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.12);
  transform: translateY(-1px);
}

.admin-report-filter strong {
  display: inline-flex;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 184, 107, 0.16);
  border: 1px solid rgba(255, 184, 107, 0.28);
}

.admin-report-tools {
  display: grid;
  gap: 0.75rem;
}

.admin-report-tools h3 {
  margin-bottom: 0;
}

.admin-report-search {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.55fr) auto auto;
  gap: 0.65rem;
  align-items: end;
}

.admin-report-search label {
  display: grid;
  gap: 0.28rem;
  color: #dffbff;
  font-weight: 800;
}

.admin-report-search input,
.admin-report-search select {
  width: 100%;
}

.admin-report-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 224, 102, 0.28);
}

.admin-report-active-filters ul {
  display: flex;
  flex: 1 1 18rem;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-report-active-filters li {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.26rem 0.58rem;
  border: 1px solid rgba(255, 224, 102, 0.30);
  border-radius: 999px;
  background: rgba(82, 57, 12, 0.22);
  color: #fff5c6;
  font-weight: 800;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.admin-report-active-filters li:hover,
.admin-report-active-filters li:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 102, 0.46);
  box-shadow: 0 0 0.8rem rgba(255, 224, 102, 0.10);
  background: rgba(82, 57, 12, 0.30);
}

.admin-report-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-report-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(255, 184, 107, 0.58);
  border-radius: 14px;
  background: rgba(6, 29, 48, 0.62);
  transition:
    border-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease,
    background-color var(--motion-medium, 180ms) ease;
}

.admin-report-card:hover,
.admin-report-card:focus-within {
  border-color: rgba(255, 224, 102, 0.42);
  background: rgba(9, 39, 63, 0.72);
  box-shadow: 0 0.85rem 1.65rem rgba(0, 0, 0, 0.2), 0 0 1rem rgba(125, 211, 255, 0.14);
  transform: translateY(-1px);
}

.admin-report-card--reviewed {
  border-left-color: rgba(51, 225, 161, 0.62);
}

.admin-report-card--dismissed {
  border-left-color: rgba(167, 215, 223, 0.58);
}

@media (max-width: 700px) {
  .admin-report-search {
    grid-template-columns: 1fr;
  }

  .admin-report-search .btn {
    width: 100%;
  }
}

.admin-report-card__header,
.admin-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.admin-report-status,
.admin-report-note {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(125, 211, 255, 0.32);
  border-radius: 999px;
  background: rgba(3, 24, 38, 0.74);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-report-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.admin-report-facts div {
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(125, 211, 255, 0.18);
  border-radius: 10px;
  background: rgba(3, 24, 38, 0.46);
}

.admin-report-facts .admin-report-fact--attention {
  border-color: rgba(255, 224, 102, 0.38);
  border-left: 4px solid rgba(255, 224, 102, 0.62);
  background: rgba(82, 57, 12, 0.24);
}

.admin-report-facts .admin-report-fact--reporter-attention {
  border-color: rgba(255, 184, 107, 0.36);
  border-left: 4px solid rgba(255, 184, 107, 0.62);
  background: rgba(82, 44, 12, 0.22);
}

.admin-report-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-report-facts dd {
  margin: 0.18rem 0 0;
}

.admin-report-subfact {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-report-facts a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.28rem;
  font-size: 0.92rem;
}

.admin-report-target {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 224, 102, 0.26);
  border-radius: 12px;
  background: rgba(82, 57, 12, 0.20);
  white-space: pre-line;
}

.admin-report-actions {
  justify-content: flex-start;
  align-items: flex-end;
}

.admin-report-actions form {
  display: flex;
  flex: 1 1 16rem;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
}

.admin-report-actions input[type="text"] {
  min-width: 10rem;
}

.admin-player-moderation-page {
  display: grid;
  gap: 1rem;
}

.admin-player-search,
.admin-player-results {
  padding: 1rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
}

.admin-player-search {
  display: grid;
  gap: 0.55rem;
}

.admin-player-search__row,
.admin-player-moderation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.admin-player-search__row input[type="search"] {
  flex: 1 1 16rem;
  min-width: min(100%, 16rem);
}

.admin-player-moderation-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-player-moderation-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(125, 211, 255, 0.58);
  border-radius: 14px;
  background: rgba(6, 29, 48, 0.62);
  transition:
    border-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease,
    background-color var(--motion-medium, 180ms) ease;
}

.admin-player-moderation-card:hover,
.admin-player-moderation-card:focus-within {
  border-color: rgba(255, 224, 102, 0.42);
  background: rgba(9, 39, 63, 0.72);
  box-shadow: 0 0.85rem 1.65rem rgba(0, 0, 0, 0.2), 0 0 1rem rgba(125, 211, 255, 0.14);
  transform: translateY(-1px);
}

.admin-player-moderation-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-player-moderation-card h4,
.admin-player-results h3 {
  margin-top: 0;
}

.admin-player-status-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.admin-player-status-list div {
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(125, 211, 255, 0.18);
  border-radius: 10px;
  background: rgba(3, 24, 38, 0.46);
}

.admin-player-status-list dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-player-status-list dd {
  margin: 0.18rem 0 0;
}

.admin-player-moderation-actions form {
  flex-direction: column;
  align-items: stretch;
}

.admin-player-staff-notes {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(2, 19, 32, 0.38);
}

.admin-player-staff-notes__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.admin-player-staff-notes h5 {
  margin: 0;
  font-size: 1rem;
}

.admin-player-staff-note-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-player-staff-note-list li {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(125, 211, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-player-staff-note-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-player-staff-note-body {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
}

.admin-player-staff-note-form {
  display: grid;
  gap: 0.45rem;
}

.admin-player-staff-note-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.admin-player-notes-page {
  display: grid;
  gap: 1rem;
}

.admin-player-notes-filters,
.admin-player-notes-results {
  padding: 1rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
}

.admin-player-notes-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.admin-player-note-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-player-note-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(177, 238, 216, 0.58);
  border-radius: 14px;
  background: rgba(6, 29, 48, 0.62);
  transition:
    border-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease,
    background-color var(--motion-medium, 180ms) ease;
}

.admin-player-note-card:hover,
.admin-player-note-card:focus-within {
  border-color: rgba(255, 224, 102, 0.42);
  background: rgba(9, 39, 63, 0.72);
  box-shadow: 0 0.85rem 1.65rem rgba(0, 0, 0, 0.2), 0 0 1rem rgba(125, 211, 255, 0.14);
  transform: translateY(-1px);
}

.admin-player-note-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-player-note-card h4,
.admin-player-notes-results h3 {
  margin-top: 0;
}

.admin-moderation-history-page {
  display: grid;
  gap: 1rem;
}

.admin-moderation-history-filters,
.admin-moderation-history-results {
  padding: 1rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
}

.admin-moderation-history-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.admin-moderation-history-filters label {
  margin-bottom: -0.35rem;
}

.admin-moderation-action-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-moderation-action-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(255, 184, 107, 0.58);
  border-radius: 14px;
  background: rgba(6, 29, 48, 0.62);
  transition:
    border-color var(--motion-medium, 180ms) ease,
    box-shadow var(--motion-medium, 180ms) ease,
    transform var(--motion-medium, 180ms) ease,
    background-color var(--motion-medium, 180ms) ease;
}

.admin-moderation-action-card:hover,
.admin-moderation-action-card:focus-within {
  border-color: rgba(255, 224, 102, 0.42);
  background: rgba(9, 39, 63, 0.72);
  box-shadow: 0 0.85rem 1.65rem rgba(0, 0, 0, 0.2), 0 0 1rem rgba(125, 211, 255, 0.14);
  transform: translateY(-1px);
}

.admin-moderation-action-card h4,
.admin-moderation-history-results h3 {
  margin-top: 0;
}

/* ===== Watch Fight ===== */
.watch-fight-page {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.watch-fight-page .glass-panel {
  text-align: left;
}

.watch-fight-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.45fr);
  gap: 1rem;
  align-items: center;
  border-color: rgba(255, 184, 107, 0.5);
  background:
    linear-gradient(135deg, rgba(255,184,107,0.16), rgba(51,225,161,0.08) 45%, rgba(125,211,255,0.10)),
    rgba(12, 47, 72, 0.24);
}

.watch-fight-hero__copy {
  min-width: 0;
}

.watch-fight-hero h2 {
  margin-top: 0.1rem;
  margin-bottom: 0.4rem;
}

.watch-fight-kicker {
  margin: 0;
  color: #ffe0c1;
  font-weight: 800;
}

.watch-fight-meta {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
  margin: 0;
}

.watch-fight-meta li,
.watch-fight-meta-card {
  position: relative;
  display: grid;
  gap: 0.18rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(125, 211, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 22, 34, 0.34);
}

.watch-fight-meta .watch-fight-meta-card {
  padding-left: 2.1rem;
}

.watch-fight-meta-card {
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.watch-fight-meta-card:hover,
.watch-fight-meta-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
}

.watch-fight-meta-card::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.86rem;
  inline-size: 0.62rem;
  block-size: 0.62rem;
  border-radius: 999px;
  background: #7dd3ff;
  box-shadow: 0 0 0 0.14rem rgba(255, 255, 255, 0.08);
}

.watch-fight-meta-card--type {
  border-color: rgba(125, 211, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(125, 211, 255, 0.10), rgba(3, 22, 34, 0.22)),
    rgba(3, 22, 34, 0.34);
}

.watch-fight-meta-card--result::before {
  border-radius: 0.16rem;
  transform: rotate(45deg);
  background: #ffb86b;
}

.watch-fight-meta strong {
  display: block;
  color: #f7fbff;
  line-height: 1.25;
}

.watch-fight-result,
.watch-fight-meta-card--result {
  border-color: rgba(255, 184, 107, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.16), rgba(3, 22, 34, 0.22)),
    rgba(255, 184, 107, 0.10);
}

.announcer-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.55rem;
}

.announcer-card,
.commentary-line {
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-radius: 12px;
  padding: 0.65rem;
  background: rgba(255,255,255,0.045);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.announcer-card:hover,
.announcer-card:focus-within,
.commentary-line:hover,
.commentary-line:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 255, 0.42);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background: rgba(255,255,255,0.06);
}

.announcer-card--broadcast {
  position: relative;
  display: grid;
  gap: 0.14rem;
  padding-left: 2.35rem;
  border-color: rgba(255, 184, 107, 0.30);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.10), rgba(125, 211, 255, 0.07)),
    rgba(255, 255, 255, 0.04);
}

.announcer-card--broadcast::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.78rem;
  inline-size: 0.78rem;
  block-size: 0.78rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 184, 107, 0.95) 0 32%, transparent 34%),
    rgba(125, 211, 255, 0.34);
  box-shadow: 0 0 0 0.16rem rgba(255, 184, 107, 0.10);
}

@media (prefers-reduced-motion: no-preference) {
  .announcer-card--broadcast::before {
    animation: broadcast-badge-listen 3.8s ease-in-out infinite;
  }
}

@keyframes broadcast-badge-listen {
  0%,
  100% {
    box-shadow: 0 0 0 0.16rem rgba(255, 184, 107, 0.10);
  }
  50% {
    box-shadow:
      0 0 0 0.16rem rgba(255, 184, 107, 0.18),
      0 0 0.9rem rgba(255, 184, 107, 0.26);
  }
}

.round-card {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(125, 211, 255, 0.22);
}

.round-card--replay {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(255, 184, 107, 0.62);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.08), rgba(3, 22, 34, 0.18)),
    rgba(3, 22, 34, 0.26);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.round-card--replay:hover,
.round-card--replay:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 107, 0.48);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.11), rgba(3, 22, 34, 0.20)),
    rgba(3, 22, 34, 0.30);
}

.round-card:first-of-type {
  border-top: 0;
}

.round-card--replay:first-of-type {
  margin-top: 0.35rem;
  border-top: 1px solid rgba(125, 211, 255, 0.24);
}

.round-card--replay h4 {
  margin: 0;
}

.watch-fight-score-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(255, 184, 107, 0.34);
  border-radius: 999px;
  background: rgba(255, 184, 107, 0.10);
  color: #ffe4bc;
  font-weight: 850;
}

.watch-fight-score-line::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 0.12rem;
  transform: rotate(45deg);
  background: currentColor;
  opacity: 0.8;
}

.commentary-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.5rem;
}

.commentary-speaker {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.28rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(255, 184, 107, 0.34);
  border-radius: 999px;
  background: rgba(255, 184, 107, 0.10);
  color: #ffe0c1;
  line-height: 1.2;
}

.commentary-line--round {
  position: relative;
  border-left-width: 4px;
  border-left-color: rgba(125, 211, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(125, 211, 255, 0.08), rgba(3, 22, 34, 0.18)),
    rgba(255, 255, 255, 0.04);
}

.watch-fight-scorecard-panel {
  border-color: rgba(255, 184, 107, 0.34);
}

.watch-fight-scorecard-table {
  width: 100%;
}

.watch-fight-scorecard-table tbody tr,
.watch-fight-scorecard-table tfoot tr {
  background: rgba(3, 22, 34, 0.18);
}

.watch-fight-scorecard-table .watch-fight-total-row {
  background:
    linear-gradient(135deg, rgba(255, 184, 107, 0.13), rgba(3, 22, 34, 0.18)),
    rgba(255, 184, 107, 0.08);
}

.watch-fight-bonus-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.35rem 0.58rem;
  border: 1px solid rgba(255, 224, 102, 0.40);
  border-radius: 999px;
  background: rgba(255, 224, 102, 0.11);
  color: #fff5c6;
  font-weight: 850;
}

.watch-fight-bonus-note::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 0.54rem;
  block-size: 0.54rem;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 70% 58%, 82% 100%, 50% 74%, 18% 100%, 30% 58%, 0 35%, 38% 35%);
  background: currentColor;
}

.watch-fight-fact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.55rem;
  padding-left: 0;
  margin: 0.65rem 0 0;
}

.watch-fight-fact-card {
  min-width: 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(125, 211, 255, 0.24);
  border-left: 4px solid rgba(51, 225, 161, 0.58);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.08), rgba(3, 22, 34, 0.18)),
    rgba(255, 255, 255, 0.04);
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.watch-fight-fact-card:hover,
.watch-fight-fact-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(51, 225, 161, 0.44);
  box-shadow: 0 0 1rem rgba(125, 211, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(51, 225, 161, 0.11), rgba(3, 22, 34, 0.20)),
    rgba(255, 255, 255, 0.055);
}

.watch-fight-actions {
  align-items: center;
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .container {
    margin: 0.7rem auto;
    padding: 0.85rem;
    border-radius: 14px;
  }

  .layout {
    padding-inline: 0.5rem;
  }

  .brand-banner .container.brand-card,
  .brand-banner--game .container.brand-card {
    margin: 0.45rem auto 0.7rem;
    padding: 0.55rem 0.75rem;
  }

  .brand-top,
  .brand-banner--game .brand-top {
    font-size: clamp(26px, 10vw, 38px);
  }

  .brand-bottom,
  .brand-banner--game .brand-bottom {
    font-size: clamp(28px, 11vw, 42px);
  }

  .brand-tagline {
    font-size: 0.82rem;
  }

  .main-col .main-tabs {
    margin-bottom: 0.5rem;
  }

  .tab.btn {
    padding: 0.45rem 0.72rem;
    font-size: 0.95rem;
  }

  .role-card__body {
    flex-direction: column;
  }

  .guest-main {
    padding-inline: 0.5rem;
  }

  .guest-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .guest-hero__copy h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }

  .guest-hero__art {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guest-art-card--front {
    grid-row: auto;
  }

  .guest-art-card {
    padding: 0.45rem;
  }

  .guest-art-card span {
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .guest-card-grid {
    grid-template-columns: 1fr;
  }

  .role-card__image,
  .role-card__fallback {
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 1 / 1;
    max-block-size: 11rem;
  }

  .combat-layout {
    flex-direction: column;
  }

  .combat-encounter {
    grid-template-columns: 1fr;
  }

  .combat-portrait {
    width: min(100%, 11rem);
  }

  .combat-picker-row {
    align-items: stretch;
  }

  .combat-picker-row select,
  .combat-picker-row button {
    width: 100%;
  }

  .fight-plan-hero__layout,
  .player-profile-hero,
  .arena-hero,
  .watch-fight-hero,
  .admin-social-hero,
  .arena-contender-card {
    grid-template-columns: 1fr;
  }

  .fight-plan-portrait img,
  .fight-plan-portrait .img-fallback,
  .arena-contender-card__avatar {
    max-width: 11rem;
  }

  .arena-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-contender-card__actions {
    justify-content: stretch;
  }

  .admin-report-actions form,
  .admin-report-actions .btn,
  .admin-report-actions button {
    width: 100%;
  }

  .social-message-card__actions form {
    flex: 1 1 100%;
    align-items: stretch;
  }

  .social-message-card__actions input {
    flex-basis: 100%;
    min-width: 0;
  }

  .social-message-card__actions .btn-sm {
    align-self: flex-start;
  }

  .arena-contender-card__actions .btn,
  .arena-contender-card__actions form {
    width: 100%;
  }

  .section-head {
    display: grid;
  }

  .responsive-table {
    overflow-x: visible;
  }

  .responsive-table table,
  .responsive-table caption,
  .responsive-table tbody,
  .responsive-table tfoot,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .responsive-table caption {
    margin-bottom: 0.5rem;
    color: #a7d7df;
    text-align: left;
  }

  .responsive-table tbody,
  .responsive-table tfoot {
    display: grid;
    gap: 0.65rem;
  }

  .responsive-table tr {
    display: grid;
    gap: 0.28rem;
    padding: 0.7rem;
    border: 1px solid rgba(125, 211, 255, 0.20);
    border-radius: 12px;
    background: rgba(3, 22, 34, 0.28);
  }

  .responsive-table th,
  .responsive-table td {
    border-bottom: 0;
    padding: 0;
  }

  .responsive-table tbody th[scope="row"],
  .responsive-table tfoot th[scope="row"] {
    color: #f7fbff;
    font-size: 1rem;
  }

  .responsive-table tbody th[data-label],
  .responsive-table tfoot th[data-label],
  .responsive-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.12rem;
    overflow-wrap: anywhere;
  }

  .responsive-table tbody th[data-label]::before,
  .responsive-table tfoot th[data-label]::before,
  .responsive-table td::before {
    content: attr(data-label);
    color: #a7d7df;
    font-size: 0.9rem;
    font-weight: 800;
  }

  .tablist {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .tab.btn {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }

  .status-panel,
  .character-hero {
    grid-template-columns: 1fr;
  }

  .status-meters {
    grid-template-columns: 1fr;
  }

  .character-portrait .avatar,
  .character-portrait .img-fallback {
    max-height: 16rem;
  }

  .character-portrait-stack {
    max-width: 14rem;
  }

  .character-gear-layer {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
  }

  .character-gear-layer--wearable {
    border-radius: 0;
  }

  .service-panel__layout,
  .shop-item__body,
  .shop-item__body--quest,
  .service-exchange-grid {
    grid-template-columns: 1fr;
  }

  .shop-item__media {
    width: min(100%, 5.5rem);
  }

  .service-panel__layout {
    display: grid;
  }

  .service-portrait {
    width: min(100%, 8rem);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .service-portrait-stack {
    width: min(100%, 8rem);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .service-portrait--actor-badge {
    width: 3rem;
    height: 3rem;
  }

  .shop-item__action {
    text-align: left;
  }

  .trainer-lock-note {
    text-align: left;
    max-width: none;
  }

  .quest-board-row__actions {
    justify-items: stretch;
  }

  .shop-item__action .btn,
  .shop-item__action form,
  .quest-board-row__actions .btn,
  .quest-board-row__actions form {
    width: 100%;
  }

  .inventory-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-card__head {
    align-items: flex-start;
  }

  .inv-item {
    align-items: flex-start;
  }

  .inventory-item-action {
    width: 100%;
    margin-left: 0;
  }

  .inventory-item-action .btn {
    width: 100%;
    white-space: normal;
  }

  .equipment-row__slot {
    flex-basis: 4.75rem;
  }

  .equipment-row__power {
    flex-basis: 100%;
    margin-left: 0;
  }

  .guest-actions .btn,
  .form-actions .btn,
  .form-actions button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .registration-success {
    min-height: 31rem;
    padding: 0.85rem;
  }
}

@media (max-width: 700px) {
  .home-hero,
  .home-section-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__media {
    min-height: 10rem;
    max-height: 13rem;
    border-right: 0;
    border-bottom: 1px solid rgba(125, 211, 255, 0.22);
  }

  .home-summary-strip,
  .home-meters {
    grid-template-columns: 1fr;
  }

  .home-row-card {
    grid-template-columns: 1fr;
  }

  .pip-mentor-layout {
    grid-template-columns: 1fr;
  }

  .home-row-actions {
    justify-content: stretch;
  }

  .home-row-actions .btn,
  .home-row-actions button,
  .home-row-actions form {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .glass-panel,
  .bubble-icon,
  .brand-card::before,
  .brand-banner::before,
  .brand-banner::after,
  .layout::before,
  .layout::after,
  .player-panel::before,
  .main-col::after,
  .home-hero::before,
  .home-status::before,
  .home-section::before,
  .area-hero::before,
  .area-section-card--explore::before,
  .area-section-card--services::before,
  .service-hero::before,
  .service-section::before,
  .shop-hero::before,
  .shop-shelf::before,
  .inventory-summary::before,
  .inventory-card::before,
  .combat-card::before,
  .watch-fight-hero::before,
  .watch-fight-section::before,
  .watch-fight-scorecard-panel::before,
  .social-hero::before,
  .guest-art-card,
  .combat-log__entry--latest,
  .combat-effect-box--warning,
  .character-gear-layer--aura,
  .character-gear-layer--motion-random-mood-shimmer,
  .announcer-card--broadcast::before,
  .bubbleworks__bubble,
  .sea-confetti__bit {
    animation: none !important;
  }

  button,
  .btn,
  .top-actions,
  .corner-btn,
  .tab.btn,
  .brand-card,
  .player-panel .panel-stats.as-section,
  .player-panel .panel-stats .stat-block,
  .player-panel .panel-stats .icon,
  .player-panel .panel-stats .value,
  .alerts li,
  .achievement-banner,
  .role-card__body,
  .role-card__image,
  .role-card__fallback,
  .choice-card__body,
  .guest-form-card,
  .auth-section,
  .guest-art-card,
  .guest-art-card img,
  .guest-mini-card,
  .registration-success__content,
  .success-next-steps,
  .combat-action-card,
  .combat-log__entry,
  .home-summary-card,
  .home-meter,
  .home-meter__bar span,
  .home-action-card__link,
  .home-news-card,
  .pip-mentor-suggestion,
  .pip-mentor-progress__item,
  .first-swim-card,
  .dictionary-answer-card,
  .dictionary-toc a,
  .home-row-card,
  .fight-plan-stat,
  .fight-plan-help-card,
  .fight-plan-move-card,
  .fight-plan-ready-card,
  .arena-hero__status-card,
  .arena-info-card,
  .arena-rule-card,
  .arena-reward-card,
  .arena-contender-card,
  .arena-contender-card__avatar,
  .arena-stat-card,
  .arena-move-card,
  .area-card,
  .area-card__image,
  .area-card__fallback,
  .area-card__media .img-fallback,
  .explore-row,
  .service-location-row,
  .service-choice-card,
  .shop-item,
  .quest-board-row,
  .equipment-row,
  .inventory-card,
  .inv-item,
  .equip-slot-row,
  .announcer-card,
  .commentary-line,
  .round-card--replay,
  .watch-fight-meta-card,
  .watch-fight-fact-card,
  .social-card,
  .forum-board-card,
  .forum-thread-card,
  .social-message-card,
  .support-desk-report-card,
  .profile-achievement-card,
  .admin-report-filter,
  .admin-report-active-filters li,
  .admin-report-card,
  .admin-player-moderation-card,
  .admin-player-note-card,
  .admin-moderation-action-card {
    transition: none !important;
  }

  .bubbleworks__bubble,
  .sea-confetti__bit {
    opacity: 0.55;
  }
}
