.topbar-inner { gap: clamp(.7rem, 1.65vw, 1.6rem); }
#stamina-clock { white-space: nowrap; color: var(--teal); font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.main-nav { gap: .22rem; }
.main-nav > button { gap: .42rem; padding-inline: clamp(.62rem, 1.1vw, 1.04rem); }
.sound-control {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #54776c;
  border-radius: .42rem;
  background: #0b2024;
  color: var(--gold-bright);
}
.sound-control:hover { background: #21413c; }
.sound-control[aria-pressed="true"] { color: var(--muted); background: #121a25; }
.route-option small { display: block; color: var(--gold-bright); font-weight: 600; }
.route-option.route-locked:not([aria-pressed="true"]) { opacity: .76; }
.origin-pin .pin-icon { color: var(--teal); border-color: #97d7c3; background-color: #152b35; }
.map-extra .pin-icon { color: var(--gold-bright); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.chapter-scene > img { z-index: 0; }
.chapter-scene::before {
  z-index: 1;
  background:
    linear-gradient(0deg, #080d15e0, #080d1536 42%, transparent 70%),
    linear-gradient(109deg, #080e17c2, #0a17284f 45%, transparent 71%);
}
.chapter-scene-intro, .chapter-battlefield { position: relative; z-index: 2; }
.chapter-scene::after { z-index: 3; }
.chapter-ui .chapter-enemy.is-elite > img { width: min(43%,16rem); height: clamp(8.4rem,16vw,13rem); }
.seed-pet-preview { display: flex; align-items: center; gap: .6rem; margin-top: .45rem; }
.seed-pet-preview img { width: 44px; height: 44px; border: 1px solid #92765d; border-radius: .25rem; }
.seed-pet-preview strong { display: block; color: var(--gold-bright); }
.functional-gear {
  display: flex;
  gap: .42rem;
  align-items: flex-start;
  padding: .55rem .52rem;
  border-inline-start: 2px solid #7ebbad;
  background: #122d31;
  color: #d7f2e8;
  font-size: .875rem;
}
.functional-gear > .icon { color: #b8edd4; }
.chapter-slot > .functional-gear { grid-column: 1 / -1; }
.chapter-item-art[data-gear-tone="light"] { background: radial-gradient(#674937, #1c232d); color: #ffcf83; }
.chapter-item-art[data-gear-tone="tide"] { background: radial-gradient(#305e57, #182b35); color: #b9e5d5; }
.chapter-item-art[data-gear-tone="ward"] { background: radial-gradient(#494167, #191f34); color: #e1cef8; }
.chapter-room.is-sigil:not(.is-locked,.is-current) { border-color: #aec4a8; background: #223633; }
.chapter-scene[data-region="canal"] { border-color: #759589; }
.chapter-scene[data-region="arquivo"] { border-color: #9980a9; }
.chapter-scene[data-region="canal"] .chapter-scene-intro > .eyebrow { color: #c6f2dc; }
.chapter-scene[data-region="arquivo"] .chapter-scene-intro > .eyebrow { color: #e0cef3; }
.chapter-zone-links { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .85rem; }
.action-film[data-kind="unlock"] .film-band { border-color: #9fd1ba; background: linear-gradient(100deg, #14242aee, #22544bee, #152535ee); }
.is-story-pin .pin-icon { color: #ffe0a6; border-color: #d99565; background: #4b3327; }
.is-village .card-icon { color: #f3c993; border-color: #956f4f; }
.footer-credits { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.footer-credits > a { color: inherit; }
.footer-credits > a:is(:hover,:focus-visible) { color: var(--gold-bright); }
.chapter-unit, .chapter-enemy { position: relative; }
.combat-float {
  position: absolute;
  z-index: 5;
  top: .6rem;
  right: .6rem;
  pointer-events: none;
  color: #ffe7ca;
  text-shadow: 0 2px 2px #130c13, 0 0 2px #08080c, 0 0 10px #e33b27;
  font: 700 clamp(1.75rem, 5vw, 3.25rem)/1 var(--display);
  animation: crypt-float .56s cubic-bezier(.15,.61,.26,1) both;
}
.combat-float.is-healing { color: #baffcc; text-shadow: 0 2px 2px #061813, 0 0 10px #009667; }
.combat-impact { animation: crypt-impact .28s ease-out; }
.chapter-enemy.is-fallen { filter: saturate(.35); }
.chapter-action:active:not(:disabled), .sound-control:active { transform: translateY(2px); }
@keyframes crypt-float {
  0% { opacity: 0; transform: translateY(10px) scale(.7); }
  22% { opacity: 1; transform: translateY(0) scale(1.14); }
  66% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-25px) scale(1); }
}
@keyframes crypt-impact {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-4px); }
  58% { transform: translateX(2px); }
}
@media (max-width: 1310px) {
  .topbar-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; padding-block: .38rem; }
  .topbar-inner .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .topbar-inner .top-status { grid-column: 2; grid-row: 1; }
  .main-nav > button { margin-block: 0; }
}
@media (max-width: 610px) {
  .topbar-inner .main-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .18rem; }
  .main-nav > button { padding-inline: .22rem; min-height: 44px; font-size: 1.02rem; gap: .25rem; }
  .map-pin.origin-pin .pin-label, .map-pin.map-extra .pin-label { display: none; }
  .map-pin.origin-pin:is(:hover, :focus-visible) .pin-label,
  .map-pin.map-extra:is(:hover, :focus-visible) .pin-label { display: block; }
}
@media (max-width: 475px) {
  .top-status #current-seed { display: none; }
  .topbar-inner .top-status { gap: .38rem; }
}
@media (prefers-reduced-motion: reduce) {
  .combat-float { animation: none; }
  .combat-impact { animation: none; }
}
