:root {
  color-scheme: dark;
  --bg: #0b191b;
  --panel: #14282b;
  --line: #2a4242;
  --text: #e5eee5;
  --muted: #95aaa0;
  --gold: #e9c277;
  --green: #7ac5a5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at top, #183536, var(--bg) 70%);
  font:
    15px/1.5 system-ui,
    sans-serif;
  color: var(--text);
}
button,
a,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #405650;
  border-radius: 6px;
  background: #233d39;
  color: var(--text);
  padding: 9px 14px;
  transition: 0.15s;
}
button:hover {
  background: #36584c;
  border-color: var(--green);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #202e26;
  font-weight: 750;
}
button.active {
  color: var(--gold);
  background: #2e4039;
  border-color: #8e794e;
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 30px;
  background: #0e2022;
}
a {
  color: inherit;
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 24px Georgia;
  letter-spacing: 2px;
  color: var(--gold);
}
.brand small {
  display: block;
  font: 9px system-ui;
  letter-spacing: 3px;
  color: #a9c1ae;
}
.brand b {
  font: 10px system-ui;
  border: 1px solid #746746;
  padding: 3px;
}
nav {
  display: flex;
  gap: 8px;
  flex: 1;
}
nav button {
  background: none;
  border: 0;
  padding: 12px;
}
.local {
  font-size: 12px;
  color: var(--green);
}
main {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 246px;
  gap: 20px;
  max-width: 1600px;
  margin: auto;
  padding: 24px;
}
.panel,
aside > section {
  background: linear-gradient(135deg, #193033, #12272a);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
  margin-bottom: 16px;
}
h1 {
  font: 30px Georgia;
  margin: 2px 0;
  color: #f0e8cd;
}
h2 {
  font: 20px Georgia;
  margin: 0 0 14px;
}
h3 {
  font-size: 14px;
  margin: 10px 0;
}
small,
.muted {
  color: var(--muted);
}
.scene-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.scene-heading small {
  letter-spacing: 2px;
  font-size: 10px;
}
#weather {
  font-size: 12px;
  color: #b3c3b2;
}
.world {
  position: relative;
  border: 1px solid #53705a;
  border-radius: 9px;
  overflow: hidden;
  background: #224d45;
}
canvas {
  width: 100%;
  display: block;
  image-rendering: pixelated;
  cursor: crosshair;
}
#scene-label {
  position: absolute;
  bottom: 16px;
  left: 20px;
  background: #102927cc;
  padding: 7px 14px;
  border: 1px solid #6c8d6b;
  color: #e0e8c8;
  border-radius: 4px;
  font: 14px Georgia;
  pointer-events: none;
}
#controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.avatar {
  font-size: 46px;
  text-align: center;
  background: #234c46;
  border: 1px solid #4c7664;
  border-radius: 8px;
  padding: 12px;
}
.name {
  text-align: center;
  font: 20px Georgia;
  margin-top: 12px;
}
.bar {
  background: #0b1c20;
  height: 7px;
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--gold);
}
.stat {
  display: flex;
  justify-content: space-between;
  margin: 9px 0;
}
.gear-row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.gear-row b {
  display: block;
  font-size: 13px;
}
.gear-row small {
  font-size: 11px;
}
.coin {
  color: var(--gold);
}
.section-title {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  background: #142b2d;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
}
.card h3 {
  margin: 0 0 4px;
}
.card button {
  margin-top: 12px;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
}
.fish-icon {
  font-size: 30px;
  color: #b6d3ae;
}
.log {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.log b {
  color: var(--gold);
}
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  background: #25483d;
  color: #a6d7bb;
  padding: 3px 7px;
  border-radius: 3px;
}
.metric {
  font: 30px Georgia;
  color: var(--gold);
}
footer {
  border-top: 1px solid var(--line);
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
footer button {
  font-size: 12px;
}
dialog {
  background: #163034;
  color: var(--text);
  border: 1px solid #729476;
  border-radius: 12px;
  max-width: 650px;
  width: 90%;
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
dialog p {
  color: #b5c8bd;
}
#close {
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #d7bd7d;
  color: #173029;
  padding: 12px 25px;
  border-radius: 6px;
  box-shadow: 0 8px 40px #0008;
  display: none;
  z-index: 10;
}
input {
  max-width: 100%;
  padding: 10px;
  background: #0b2022;
  color: white;
  border: 1px solid #4f7062;
  border-radius: 4px;
}
.empty {
  padding: 26px;
  text-align: center;
  color: var(--muted);
}
.wide {
  width: 100%;
}
.progress {
  flex: 1;
}
.notice {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  color: #c8d2bc;
  font-size: 13px;
}
a.source {
  color: var(--green);
  text-decoration: underline;
  font-size: 12px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 32px;
  }
  .world {
    margin-top: 6px;
  }
}
@media (max-width: 1100px) {
  main {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  #right {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  header {
    gap: 15px;
    padding: 0 16px;
  }
  .local {
    display: none;
  }
}
@media (max-width: 700px) {
  header {
    height: auto;
    flex-wrap: wrap;
    padding: 14px;
  }
  .brand {
    font-size: 20px;
  }
  nav {
    overflow: auto;
    width: 100%;
    order: 2;
  }
  nav button {
    padding: 8px;
  }
  main {
    display: flex;
    flex-direction: column;
    padding: 12px;
  }
  #profile {
    display: flex;
    gap: 10px;
    overflow: auto;
  }
  #profile section {
    min-width: 190px;
    margin: 0;
  }
  #profile section:last-child {
    display: none;
  }
  .scene-heading h1 {
    font-size: 24px;
  }
  #weather {
    display: none;
  }
  #right {
    display: block;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  footer span {
    display: none;
  }
  #controls {
    flex-wrap: wrap;
  }
  .world canvas {
    min-height: 280px;
    object-fit: cover;
  }
}
/* The world is the stage: controls stay outside its moving canvas. */
.world-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  color: #abc3af;
  font-size: 12px;
}
.world-toolbar > div {
  display: flex;
  gap: 7px;
}
.world-toolbar button {
  font-size: 12px;
  padding: 6px 10px;
  background: #183b38;
}
.world {
  box-shadow: 0 18px 60px #0004;
}
canvas:focus-visible {
  outline: 3px solid #e9c277;
  outline-offset: -4px;
}
#scene-label {
  font-family: system-ui;
  font-size: 12px;
  bottom: 12px;
  max-width: 75%;
  background: #0e2a2de3;
}
.visual-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.visual-option input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #d9ba78;
}
.visual-option select {
  padding: 8px;
  border: 1px solid #638474;
  background: #183b3c;
  color: #e0e9cc;
  border-radius: 5px;
}
.immersive main {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1450px;
}
.immersive #profile,
.immersive #right {
  display: none;
}
.immersive .world {
  max-height: 76vh;
}
.immersive canvas {
  max-height: 76vh;
  object-fit: contain;
  background: #163b40;
}
.immersive #content {
  display: none;
}
.immersive footer {
  padding: 8px 30px;
}
@media (max-width: 700px) {
  .world-toolbar {
    align-items: flex-start;
    font-size: 11px;
  }
  .world-toolbar > div {
    flex-shrink: 0;
  }
  .world-toolbar button {
    font-size: 11px;
    padding: 6px 8px;
  }
  .world canvas {
    min-height: 0;
    object-fit: contain;
  }
  .immersive .world {
    max-height: none;
  }
  .immersive canvas {
    max-height: none;
  }
  .world-toolbar > span {
    max-width: 150px;
  }
  #scene-label {
    font-size: 10px;
    padding: 5px 8px;
    max-width: 85%;
    bottom: 6px;
    left: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  button:hover {
    transform: none;
  }
}
/* Keep canvas geometry and pointer coordinates aligned in the expanded view. */
.immersive .world {
  width: min(100%, 130vh);
  max-height: none;
  margin-inline: auto;
}
.immersive canvas {
  max-height: none;
  object-fit: fill;
}
/* 0.4: handcrafted river journal framing the illustrated world. */
:root {
  --bg: #081d23;
  --panel: #102b30;
  --line: #36534d;
  --text: #ece6d3;
  --muted: #a7b9aa;
  --gold: #dfc28b;
  --green: #9cbd9a;
}
body {
  background: radial-gradient(
    ellipse at 50% 5%,
    #21463f 0,
    #112e32 40%,
    #071d24 100%
  );
  font-family: "Segoe UI", system-ui, sans-serif;
}
header {
  height: 76px;
  padding: 0 25px;
  background: linear-gradient(180deg, #102e31, #0b242b);
  border-bottom: 1px solid #957e4e66;
  box-shadow: 0 4px 25px #00151a66;
  gap: 34px;
}
.brand {
  font-size: 24px;
  letter-spacing: 2px;
}
.brand-leaf {
  width: 40px;
  height: 40px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 2.5px;
}
.brand b {
  border: 1px solid #a78e5759;
  border-radius: 3px;
  color: #a6bfac;
}
nav button {
  display: flex;
  gap: 9px;
  align-items: center;
  border-radius: 4px;
  color: #bdcdbb;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
nav button.active {
  background: #28483d66;
  border-bottom-color: #d9bf80;
}
nav button .icon {
  width: 21px;
  height: 21px;
}
.local {
  color: #aac3b2;
  font-size: 12px;
}
main {
  max-width: 1900px;
  grid-template-columns: 202px minmax(0, 1fr) 214px;
  gap: 16px;
  padding: 24px 20px;
}
aside > section,
.panel {
  background: linear-gradient(145deg, #17373aeb, #0b272eed);
  border: 1px solid #76896845;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 #d4c38d17,
    0 6px 20px #02171e33;
  padding: 15px;
}
h1 {
  font-size: 31px;
  letter-spacing: 0.2px;
  color: #f0dfb8;
}
h2 {
  font-size: 21px;
  color: #e6d7ae;
}
.scene-heading {
  margin-bottom: 12px;
}
.scene-heading small {
  color: #c0be91;
  letter-spacing: 2.3px;
}
#weather {
  color: #b9c8ac;
}
.world {
  border: 3px solid #967b49;
  border-radius: 4px;
  outline: 1px solid #d5bd7f66;
  outline-offset: 3px;
  box-shadow: 0 18px 45px #00151a99;
}
.world canvas {
  image-rendering: auto;
}
.world-toolbar {
  margin-bottom: 12px;
}
.art-status {
  font-size: 10px;
  color: #9fb89b;
  margin-right: auto;
}
#world-instructions {
  font-size: 11px;
  color: #b1c0aa;
}
.world-toolbar button {
  border-color: #9a8b5b66;
  background: #203f3c;
  color: #e2d7b8;
}
#scene-label {
  background: #102d32e8;
  border: 1px solid #a28e5a77;
  color: #e6d9b4;
  font-size: 12px;
  border-radius: 3px;
}
.icon {
  display: inline-block;
  width: 23px;
  height: 23px;
  vertical-align: middle;
  flex-shrink: 0;
  color: #cbb67d;
}
.avatar-art {
  width: 110px;
  height: 124px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #b2a67955;
  background: radial-gradient(ellipse at center, #4c695444, transparent 70%);
}
.avatar-art img {
  position: absolute;
  width: 440px;
  height: 496px;
  max-width: none;
  top: 0;
  left: 0;
  object-fit: fill;
}
.name {
  font-size: 22px;
  color: #eee0bb;
}
.section-title {
  color: #b6b98d;
  font-size: 10px;
  letter-spacing: 1.7px;
}
.stat {
  font-size: 13px;
}
.stat .icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
.gear-row {
  gap: 10px;
  padding: 9px 0;
}
.gear-row .icon {
  width: 25px;
  height: 25px;
  align-self: center;
}
.gear-row b {
  font-size: 12px;
  color: #d7dfc4;
}
.gear-row small {
  font-size: 11px;
  color: #93ae9e;
}
.bar {
  height: 6px;
  background: #061e26;
}
.bar i {
  background: linear-gradient(90deg, #b19159, #e0c78c);
}
.services-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #7e8a6b44;
  border: 1px solid #84936c55;
  border-radius: 5px;
  overflow: hidden;
}
.services-strip button {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: #17363a;
  border: 0;
  border-radius: 0;
  padding: 13px;
  font-size: 13px;
}
.services-strip small {
  display: block;
  color: #96b0a0;
  font-size: 11px;
  margin-top: 2px;
}
.services-strip .icon {
  width: 27px;
  height: 27px;
}
.card {
  background: #133238;
  border-color: #6d896b55;
  border-radius: 5px;
}
.card h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
  color: #e5dab8;
}
.card p {
  color: #a7beb0;
}
.fish-thumb {
  display: inline-block;
  width: 96px;
  height: 72px;
  background-image: url("assets/art/fish-atlas.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  vertical-align: middle;
  filter: drop-shadow(0 3px 3px #02191c77);
}
.fish-thumb.small {
  width: 48px;
  height: 36px;
}
.card h3 > .fish-thumb {
  float: right;
  margin: -6px 0 3px 8px;
}
.unknown-fish {
  font: 38px Georgia;
  color: #7d9c8e;
}
.notice {
  font-size: 12px;
  line-height: 1.6;
  border-left-color: #aa965c;
  color: #adbfaa;
}
.log {
  font-size: 12px;
  padding: 9px 0;
  color: #b3c7b4;
}
.primary {
  box-shadow:
    inset 0 1px 0 #fff6,
    0 4px 14px #061c2244;
}
.grid {
  gap: 10px;
}
.brand:hover {
  color: #eed5a1;
}
footer {
  color: #839e91;
  font-size: 10px;
  padding: 12px 24px;
}
.visual-option {
  font-size: 14px;
}
dialog {
  background: linear-gradient(135deg, #1b3d3f, #102d34);
  border-color: #ab925e;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #e4c781;
  outline-offset: 3px;
}
@media (min-width: 1550px) {
  main {
    grid-template-columns: 218px minmax(0, 1fr) 234px;
    padding: 26px;
  }
  .world-toolbar {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  main {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  #right {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .art-status {
    display: none;
  }
}
@media (max-width: 760px) {
  header {
    height: auto;
    padding: 14px;
    gap: 12px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-leaf {
    width: 30px;
    height: 30px;
  }
  nav {
    width: 100%;
    order: 2;
    gap: 3px;
    overflow: auto;
  }
  nav button {
    padding: 8px;
    font-size: 12px;
    gap: 5px;
  }
  .world-toolbar {
    gap: 6px;
  }
  #world-instructions {
    font-size: 10px;
  }
  .services-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  main {
    display: flex;
    padding: 14px;
    gap: 14px;
  }
  .world {
    outline-offset: 2px;
    border-width: 2px;
  }
  .scene-heading h1 {
    font-size: 26px;
  }
  #profile {
    gap: 8px;
  }
  #profile > section:first-child {
    display: none;
  }
  #profile > section:last-child {
    display: block;
    min-width: 100%;
    margin: 0;
  }
  #profile .gear-row {
    display: none;
  }
  #profile .section-title {
    display: none;
  }
  #profile .stat {
    display: inline-flex;
    width: auto;
    margin: 0 20px 0 0;
  }
  #profile .wide {
    display: none;
  }
  #right {
    display: block;
  }
  .local {
    display: none;
  }
}
.immersive main {
  grid-template-columns: 1fr;
  max-width: 1640px;
}
.immersive .world {
  width: min(100%, 145vh);
}
@media (max-width: 760px) {
  #profile > section:first-child {
    display: block;
    position: relative;
    min-width: 100%;
    padding: 12px 12px 12px 90px;
    min-height: 112px;
    margin: 0;
  }
  #profile > section:last-child {
    display: none;
  }
  #profile .avatar-art {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 64px;
    height: 84px;
  }
  #profile .avatar-art img {
    width: 256px;
    height: 336px;
  }
  #profile .name {
    text-align: left;
    font-size: 18px;
    margin: 0;
  }
  #profile center {
    text-align: left;
  }
  #profile > section:first-child > small {
    display: none;
  }
  #profile .bar {
    margin: 7px 0;
  }
  #profile .stat {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    font-size: 13px;
  }
  #profile .stat:nth-last-child(-n + 2) {
    display: none;
  }
  .world-toolbar > span {
    font-size: 11px;
  }
}
/* 0.5: preparation and session tools stay below the world, with a compact live summary. */
nav {
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: thin;
}
nav button {
  white-space: nowrap;
  flex-shrink: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #becbb9;
}
.form-grid input,
.form-grid select {
  width: 100%;
  min-width: 0;
  padding: 11px;
  background: #0c2830;
  color: #e6e4cf;
  border: 1px solid #66836888;
  border-radius: 5px;
  font: 14px system-ui;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #c5cfba;
}
.check-grid input {
  width: 17px;
  height: 17px;
  accent-color: #dbbc7c;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: 0.6;
}
.preset-row,
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.preset-row button,
.item-actions button {
  font-size: 12px;
  padding: 7px 10px;
}
.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.view-heading h2 {
  margin: 8px 0;
}
.estimate {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #294a3d66;
  border-left: 3px solid #c8b277;
  padding: 12px;
  margin: 18px 0;
  font-size: 13px;
}
.estimate small {
  line-height: 1.6;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.metrics-grid > div {
  background: #0e2a31;
  border: 1px solid #6f88644d;
  border-radius: 4px;
  padding: 12px;
}
.metrics-grid small {
  display: block;
  font-size: 11px;
}
.metrics-grid b {
  display: block;
  font: 24px Georgia;
  color: #e2ca94;
  margin-top: 4px;
}
.session-species {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.session-species > span {
  font-size: 12px;
  background: #1a3b3b;
  padding: 3px 9px;
  border-radius: 3px;
}
.guidance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #bca66677;
}
.guidance h3 {
  margin: 3px 0;
  color: #e6d6ae;
}
.guidance .section-title {
  font-size: 9px;
}
.inventory-grid .card h3 {
  min-height: 55px;
}
.inventory-grid .card .fish-thumb {
  margin-top: -10px;
}
details {
  margin: 14px 0;
  color: #b3c5b4;
  font-size: 13px;
}
summary {
  cursor: pointer;
  color: #dcc595;
  padding: 8px 0;
}
details p {
  line-height: 1.6;
}
label:has(input:focus-visible),
label:has(select:focus-visible) {
  color: #f1d69d;
}
.mini-progress {
  height: 4px;
  background: #0b242b;
  margin: 6px 0;
}
.mini-progress i {
  display: block;
  background: #86ad89;
  height: 100%;
}
@media (max-width: 1000px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .view-heading {
    align-items: flex-start;
  }
  .view-heading h2 {
    font-size: 21px;
  }
  .preset-row button {
    flex: 1;
  }
  .item-actions button {
    font-size: 11px;
  }
  .guidance {
    padding: 12px;
  }
  .guidance h3 {
    font-size: 14px;
  }
  nav button .icon {
    width: 17px;
    height: 17px;
  }
}

/* 0.6 — nota de qualidade, copa semanal e navegação mobile */
.grade {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  margin-left: 6px;
  border-radius: 5px;
  font: 700 12px/1 Georgia, serif;
  vertical-align: middle;
  background: #0a2226;
  border: 1px solid currentColor;
}
.grade-S { color: #f5c451; box-shadow: 0 0 8px #f5c45155; }
.grade-A { color: #9fe0a8; }
.grade-B { color: #8fc7e8; }
.grade-C { color: #c9d3c6; }
.grade-D { color: #a3a39a; }
.cup-panel { border-color: #c9a25a66; }
.cup-track {
  position: relative;
  height: 12px;
  margin: 14px 0 18px;
  border-radius: 6px;
  background: #0b2529;
  border: 1px solid #2c5552;
}
.cup-track > i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #a56a3c, #d7dde0 55%, #f5c451);
  transition: width 0.4s;
}
.cup-track > b {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 18px;
  margin-left: -2px;
  background: #f2e7bf;
  border-radius: 2px;
}
.cup-tier.tier-0 h3 { color: #d39a6a; }
.cup-tier.tier-1 h3 { color: #d7dde0; }
.cup-tier.tier-2 h3 { color: #f5c451; }
#content:focus { outline: none; }
#content.flash > :first-child { animation: content-flash 0.9s ease-out; }
@keyframes content-flash {
  from { box-shadow: 0 0 0 2px #e8c57f; }
  to { box-shadow: 0 0 0 2px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  #content.flash > :first-child { animation: none; }
}
@media (max-width: 760px) {
  nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    overflow: visible;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    background: #0b2226f5;
    border-top: 1px solid #2c5552;
  }
  nav button {
    flex-direction: column;
    padding: 6px 0;
    font-size: 10px;
    gap: 2px;
    min-height: 48px;
    border-radius: 6px;
  }
  body { padding-bottom: 64px; }
}
.cup-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .cup-tiers { grid-template-columns: 1fr; } }
.trophy .plaque {
  display: grid; place-items: center; height: 64px; margin-bottom: 8px;
  background: linear-gradient(#6b4527, #4a2f1b); border: 2px solid #8a5d34; border-radius: 8px;
  box-shadow: inset 0 2px 0 #9c6c40, 0 3px 0 #2a1a0e;
}
.trophy .plaque img, .trophy .plaque canvas { transform: scale(1.4); }
.trophy.record { border-color: #f5c45188; }
.trophy.record h3 { color: #f5c451; }
.world { position: relative; }
#event-banner {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .04em;
  background: #0b2226d9; color: #a9c3b8; border: 1px solid #2c5552; white-space: nowrap; pointer-events: none;
}
#event-banner.active { color: #1b1206; background: linear-gradient(90deg, #e8c57f, #f5d98f); border-color: #fff3c4; font-weight: 700; box-shadow: 0 0 14px #f5c45166; }
@media (max-width: 760px) { #event-banner { font-size: 10px; top: 6px; max-width: 94%; overflow: hidden; text-overflow: ellipsis; } }
.drop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.drop-list > div { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #0b2529; border: 1px solid #23474a; border-radius: 6px; }
.drop-list span:nth-child(2) { flex: 1; }
.drop-list b { color: #e8c57f; }
#update-bar {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; gap: 12px; align-items: center; padding: 8px 14px; border-radius: 10px;
  background: #102f35; color: #f2e7bf; border: 1px solid #e8c57f; box-shadow: 0 8px 24px #0008;
}
#update-bar[hidden] { display: none; }
footer a { color: #e8c57f; }

/* 0.7 — painéis laterais estilo idle */
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.panel-head small { color: #9fb8ad; font-size: 11px; }
.live { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #8a9a94; }
.live.on { color: #7fe0a0; text-shadow: 0 0 8px #7fe0a066; }
button.wide { width: 100%; padding: 11px; font-size: 15px; }
.auto-where { margin: 8px 0 2px; font-size: 12px; color: #b9cdc3; text-align: center; }
.auto-stop { margin: 4px 0; padding: 6px 8px; font-size: 12px; border-radius: 6px; background: #3a2a14; color: #f1d39a; border: 1px solid #6b4d22; }
.auto-group { margin-top: 10px; }
.auto-group > small { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8fb0a4; }
.auto-group select { width: 100%; padding: 7px 8px; border-radius: 6px; background: #0b2226; color: #e9e2c8; border: 1px solid #2c5552; font: inherit; font-size: 13px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: #0b2226; padding: 3px; border-radius: 8px; border: 1px solid #2c5552; }
.seg button { padding: 6px 0; font-size: 12px; border: 0; border-radius: 6px; background: transparent; color: #b9cdc3; min-height: 0; }
.seg button.on { background: linear-gradient(#e8c57f, #c99a4b); color: #1b1206; font-weight: 700; }
.switches { display: grid; gap: 6px; margin: 12px 0 8px; }
.switch { display: flex; align-items: center; gap: 9px; font-size: 12.5px; cursor: pointer; color: #dfe8df; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { flex: none; position: relative; width: 32px; height: 18px; border-radius: 9px; background: #23403f; border: 1px solid #34605c; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #9fb8ad; transition: transform .2s, background .2s; }
.switch input:checked + i { background: #3d7a52; border-color: #5fae7a; }
.switch input:checked + i::after { transform: translateX(14px); background: #f2e7bf; }
.switch input:focus-visible + i { outline: 2px solid #e8c57f; outline-offset: 2px; }
button.link { background: none; border: 0; padding: 0; min-height: 0; color: #e8c57f; font-size: 12px; text-decoration: underline; cursor: pointer; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0 10px; }
.mini-stats > div { text-align: center; padding: 6px 2px; border-radius: 6px; background: #0b2226; border: 1px solid #23474a; }
.mini-stats b { display: block; font-size: 14px; color: #f2e7bf; }
.mini-stats small { font-size: 10px; color: #8fb0a4; }
.cap-list { display: grid; gap: 4px; max-height: 330px; overflow: auto; }
.cap { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 6px; background: #0e2a2d; border: 1px solid #1f4245; animation: cap-in .35s ease-out; }
.cap > span:nth-child(2) { flex: 1; font-size: 12.5px; line-height: 1.2; }
.cap small { display: block; font-size: 10.5px; color: #8fb0a4; }
.cap.s { border-color: #f5c45188; background: linear-gradient(90deg, #2d2a14, #0e2a2d); }
.cap.escaped { opacity: .6; font-size: 12px; }
@keyframes cap-in { from { opacity: 0; transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .cap { animation: none; } }
.field-panel h3 { margin: 0 0 4px; font: 17px Georgia, serif; color: #f2e7bf; }
.field-fish { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.field-fish > span { display: grid; justify-items: center; padding: 3px; border-radius: 5px; background: #0b2226; border: 1px solid #23474a; }
.field-fish small { font-size: 9.5px; color: #e8c57f; }
.tiny { font-size: 10.5px; margin: 8px 0 0; }
@media (min-width: 1201px) { main { grid-template-columns: 236px minmax(0, 1fr) 268px; } }
@media (min-width: 1550px) { main { grid-template-columns: 250px minmax(0, 1fr) 290px; } }
.fish-thumb.species { background-image: url("assets/art/species-atlas.png"); background-size: 1000% 500%; height: 48px; }
.fish-thumb.species.small { height: 24px; }
.fisher-avatar { display: block; width: 96px; height: 112px; margin: auto; background: url("assets/art/fisher-poses.png") no-repeat; background-size: 600% auto; background-position: 6px -40px; height: 122px; filter: drop-shadow(0 4px 4px #02191c88); }

/* 0.9 — mapa-múndi */
.world-map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.world-map { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid #6b5a3a; background: url("assets/art/world-map.png") center/cover; box-shadow: inset 0 0 40px #0008; }
.world-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-map polyline { fill: none; stroke: #f5d98f; stroke-width: .5; stroke-dasharray: 1.4 1; opacity: .85; }
.map-village { position: absolute; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #1b1206d9; color: #f5d98f; border: 1px solid #e8c57f; white-space: nowrap; pointer-events: none; }
.map-node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; min-height: 0; padding: 2px 8px 2px 2px; border-radius: 999px; background: #0b2226e6; border: 2px solid #5f8f86; color: #f2e7bf; font-size: 11px; cursor: pointer; transition: transform .15s; }
.map-node:hover, .map-node.sel { transform: translate(-50%, -50%) scale(1.12); z-index: 2; }
.map-node > b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2f6b4f; font-size: 12px; }
.map-node span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; white-space: nowrap; }
.map-node small { font-size: 9.5px; color: #e8c57f; }
.map-node.here { border-color: #7fe0a0; box-shadow: 0 0 0 4px #7fe0a044, 0 0 18px #7fe0a0aa; }
.map-node.here > b { background: #3d9a62; }
.map-node.ready { border-color: #e8c57f; animation: node-pulse 1.6s infinite; }
.map-node.ready > b { background: #b8873f; }
.map-node.locked { opacity: .78; border-color: #555; }
.map-node.locked > b { background: #333; }
.map-node.sel { border-color: #fff3c4; }
@keyframes node-pulse { 50% { box-shadow: 0 0 0 6px #e8c57f33; } }
@media (prefers-reduced-motion: reduce) { .map-node.ready { animation: none; } }
.map-info h3 { margin: 6px 0 2px; font: 20px Georgia, serif; color: #f2e7bf; }
.map-fish { display: grid; gap: 4px; margin: 6px 0 12px; max-height: 260px; overflow: auto; }
.map-fish > div { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; background: #0b2226; border: 1px solid #23474a; }
.map-fish > div.unknown .fish-thumb { filter: brightness(0) opacity(.55); }
.map-fish span { flex: 1; font-size: 12.5px; line-height: 1.15; }
.map-fish span small { display: block; font-size: 10px; color: #8fb0a4; }
.map-fish b { color: #e8c57f; font-size: 12px; }
.auto-group-title { display: block; font-size: 10px; letter-spacing: .08em; color: #8fb0a4; }
@media (max-width: 900px) { .world-map-wrap { grid-template-columns: 1fr; } .map-node span { display: none; } }

/* 0.9 — HUD estilo idle: barra de ícones e registro sobre o mundo */
@media (min-width: 761px) {
  nav { gap: 6px; }
  nav button { flex-direction: column; gap: 3px; min-width: 74px; padding: 7px 10px 6px; font-size: 11.5px; border-radius: 9px; background: linear-gradient(#24464a, #17333a); border: 1px solid #3a6a66; box-shadow: inset 0 1px 0 #ffffff1a, 0 3px 0 #0a1c1f; }
  nav button.active { background: linear-gradient(#e8c57f, #b8873f); color: #1b1206; border-color: #fff3c4; }
  nav button .icon { width: 22px; height: 22px; }
}
#world-log { position: absolute; left: 10px; bottom: 52px; display: grid; gap: 3px; max-width: 58%; pointer-events: none; }
#world-log div { padding: 3px 9px; border-radius: 5px; font-size: 11.5px; background: #0b2226d0; color: #e9e2c8; border-left: 3px solid #e8c57f; animation: cap-in .3s ease-out; }
#world-log div.miss { border-left-color: #8db6af; color: #b9cdc3; }
#world-log div.s { border-left-color: #f5c451; color: #f5d98f; font-weight: 700; }
@media (max-width: 760px) { #world-log { display: none; } }

/* 1.0 — janelas de menu sobre o mundo */
.center { position: relative; }
.center > nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 8px; border-radius: 12px; background: linear-gradient(#3b2a1a, #2a1d12); border: 2px solid #6b4a2b; box-shadow: inset 0 2px 0 #8a6640, 0 4px 0 #160e07; }
.center.window-open #content { position: absolute; left: 0; right: 0; z-index: 30; overflow: auto; padding: 0 14px 14px; border-radius: 12px; background: #0e2629f5; border: 2px solid #e8c57f; box-shadow: 0 18px 50px #000a; backdrop-filter: blur(3px); animation: win-in .18s ease-out; }
.win-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin: 0 -14px 12px; padding: 9px 14px; background: linear-gradient(#5a3d22, #3f2a17); border-bottom: 2px solid #e8c57f; color: #f5d98f; letter-spacing: .12em; font-size: 13px; }
.win-head button { min-height: 0; padding: 3px 10px; border-radius: 6px; background: #8a3a2a; border: 1px solid #e8a07f; color: #fff; font-weight: 700; }
@keyframes win-in { from { opacity: 0; transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) { .center.window-open #content { animation: none; } }
@media (max-width: 760px) {
  .center > nav { margin: 0; padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); border-radius: 0; }
  .center.window-open #content { position: fixed; inset: 0 0 62px 0; top: 0 !important; height: auto !important; border-radius: 0; z-index: 50; }
}
.gold-total { color: #f5d98f; font-size: 18px; }
.sell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.sell-cell { display: grid; justify-items: center; gap: 3px; padding: 8px; border-radius: 9px; background: #0b2226; border: 1px solid #2c5552; text-align: center; }
.sell-cell b { font-size: 12.5px; color: #f2e7bf; }
.sell-cell small { font-size: 10.5px; color: #8fb0a4; }
.sell-cell button { width: 100%; min-height: 0; padding: 5px; font-weight: 700; color: #1b1206; background: linear-gradient(#e8c57f, #c99a4b); border: 0; border-radius: 6px; }
.sell-cell button:disabled { opacity: .4; }
#levelup { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; display: grid; justify-items: center; padding: 14px 34px; border-radius: 14px; background: radial-gradient(#3b2a1aee, #1b1206ee); border: 3px solid #f5c451; color: #f5d98f; text-align: center; box-shadow: 0 0 40px #f5c45188; }
#levelup small { letter-spacing: .2em; font-size: 12px; }
#levelup b { font: 700 54px Georgia, serif; line-height: 1; color: #fff3c4; text-shadow: 0 0 18px #f5c451; }
#levelup span { font-size: 12px; color: #e9e2c8; }
#levelup.show { animation: lvl 2.6s ease-out forwards; }
@keyframes lvl { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
@media (prefers-reduced-motion: reduce) { #levelup.show { animation-duration: 2.6s; animation-timing-function: steps(1); } }
.world-map.globe { aspect-ratio: 1; background-image: url("assets/art/world-globe.png"); }
.region-title { margin: 12px 0 6px; font: 18px Georgia, serif; color: #f2e7bf; }
.spot-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.spot-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 96px; padding: 6px; border-radius: 8px; border: 2px solid #2c5552; background-size: cover; background-position: center 30%; color: #fff; text-align: left; overflow: hidden; }
.spot-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, #061416e6); }
.spot-card > * { position: relative; }
.spot-card b { font-size: 12px; line-height: 1.15; }
.spot-card small { font-size: 9.5px; color: #cfe0d6; }
.spot-lv { position: absolute !important; top: 5px; left: 5px; padding: 1px 6px; border-radius: 999px; background: #1b1206d9; color: #f5d98f; font-size: 10px; font-weight: 700; }
.spot-card.locked { filter: grayscale(.85) brightness(.7); }
.spot-card.here { border-color: #7fe0a0; box-shadow: 0 0 12px #7fe0a088; }
.spot-card.ready { border-color: #e8c57f; }
.spot-card.sel { outline: 3px solid #fff3c4; }
@media (max-width: 900px) { .spot-row { grid-template-columns: repeat(2, 1fr); } }

/* 1.0 — tema de HUD "madeira ribeirinha" (inspirado no formato da referência, identidade própria) */
:root { --wood: #4a3220; --wood-hi: #7a5534; --wood-lo: #24170c; --gold: #e8c57f; --teal: #2f6b65; }
body { background: radial-gradient(circle at 50% 0, #1d4a47, #0b1f22 60%), #0b1f22; }
header { background: linear-gradient(#3b2a1a, #24170c); border-bottom: 3px solid var(--wood-hi); box-shadow: 0 4px 0 #0007; }
aside > section, .panel {
  background: linear-gradient(#183a3c, #10292b);
  border: 3px solid var(--wood);
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--wood-hi), inset 0 0 0 4px #0b1f2299, 0 5px 0 var(--wood-lo);
}
.section-title { display: inline-block; margin: -4px 0 10px -4px; padding: 3px 10px; border-radius: 6px; background: linear-gradient(var(--wood-hi), var(--wood)); color: var(--gold); font-weight: 700; letter-spacing: .1em; box-shadow: 0 2px 0 var(--wood-lo); }
.world { border: 4px solid var(--wood); border-radius: 10px; box-shadow: inset 0 0 0 2px var(--wood-hi), 0 6px 0 var(--wood-lo); overflow: hidden; }
button { border-radius: 7px; }
button.primary { background: linear-gradient(#f2d692, #c99a4b); color: #1b1206; border: 2px solid #fff3c4; box-shadow: 0 3px 0 #6b4a1f; }
button.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #6b4a1f; }
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.rail button { display: grid; justify-items: center; gap: 2px; min-height: 0; padding: 7px 2px 5px; font-size: 10px; background: linear-gradient(#2a4f52, #193537); border: 2px solid var(--wood); box-shadow: 0 3px 0 var(--wood-lo); color: #e9e2c8; }
.rail button .icon { width: 20px; height: 20px; }
.rail button:hover { border-color: var(--gold); }
.fish-thumb.sheet { background-size: 1000% 1000%; height: 48px; background-color: transparent; }
.fish-thumb.sheet.small { height: 24px; }
.region-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.region-tabs button { display: grid; min-height: 0; padding: 5px 9px; font-size: 11.5px; }
.region-tabs button small { font-size: 10px; color: #8fb0a4; }
.region-tabs button.on { background: linear-gradient(#e8c57f, #b8873f); color: #1b1206; }
.region-tabs button.on small { color: #3b2a1a; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cat-cell { display: grid; justify-items: center; gap: 2px; padding: 8px; border-radius: 9px; background: #0b2226; border: 1px solid #2c5552; text-align: center; }
.cat-cell b { font-size: 12px; color: #f2e7bf; }
.cat-cell small { font-size: 10px; color: #8fb0a4; }
.cat-cell.unknown .fish-thumb { filter: brightness(0) opacity(.5); }
.icon.pi { display: inline-block; width: 22px; height: 22px; flex: none; vertical-align: middle; background: url("assets/art/icons.png") no-repeat; background-size: 600% 600%; filter: drop-shadow(0 1px 1px #0008); }
.icon.pi.big { width: 44px; height: 44px; }
.icon.pi.huge { width: 56px; height: 56px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px; border-radius: 999px; background: #0b2226; border: 1px solid #2c5552; font-size: 12px; font-weight: 700; color: #f2e7bf; }
.chip .icon.pi { width: 18px; height: 18px; }
.chip.short { border-color: #b65a4a; color: #ffb1a0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { display: grid; justify-items: center; gap: 6px; padding: 12px 10px; border-radius: 12px; background: linear-gradient(#183a3c, #0f2729); border: 2px solid #2c5552; text-align: center; }
.tile:hover { border-color: #e8c57f; }
.tile h4 { margin: 0; font: 600 14px Georgia, serif; color: #f2e7bf; }
.tile p { margin: 0; font-size: 11.5px; color: #9fb8ad; line-height: 1.3; }
.tile .lv { font-size: 11px; color: #e8c57f; font-weight: 700; }
.tile button { width: 100%; }
.res-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.gear-bar { width: 100%; height: 6px; border-radius: 3px; background: #0b2226; overflow: hidden; }
.gear-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4fae7a, #e8c57f); }
.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.bag-tile { position: relative; display: grid; justify-items: center; gap: 3px; padding: 10px 6px 6px; border-radius: 10px; background: linear-gradient(#183a3c, #0f2729); border: 2px solid #2c5552; text-align: center; }
.bag-tile.locked { border-color: #8a6a3a; }
.bag-tile > .grade { position: absolute; top: 5px; left: 5px; margin: 0; }
.bag-tile .lock { position: absolute; top: 4px; right: 6px; font-size: 12px; }
.bag-tile b { font-size: 12px; color: #f2e7bf; line-height: 1.1; }
.bag-tile small { font-size: 10px; color: #8fb0a4; }
.mini-actions { display: flex; gap: 3px; margin-top: 3px; }
.mini-actions button { min-height: 0; padding: 2px; border-radius: 6px; background: #0b2226; border: 1px solid #2c5552; }
.mini-actions button:hover { border-color: #e8c57f; }
.mini-actions .icon.pi { width: 18px; height: 18px; }
.center > nav button .icon.pi { width: 30px; height: 30px; }
.rail button .icon.pi { width: 26px; height: 26px; }
.stat .icon.pi { width: 18px; height: 18px; }
.lang-switch { display: flex; gap: 2px; margin-left: 10px; padding: 2px; border-radius: 8px; background: #0b2226; border: 1px solid #6b4a2b; }
.lang-switch button { min-height: 0; padding: 3px 9px; font-size: 11px; font-weight: 700; border: 0; background: transparent; color: #9fb8ad; }
.lang-switch button.on { background: linear-gradient(#e8c57f, #b8873f); color: #1b1206; }
.feedback { display: grid; gap: 10px; min-width: min(520px, 86vw); }
.feedback label { display: grid; gap: 4px; font-size: 12px; color: #9fb8ad; }
.feedback textarea, .feedback input, .feedback select { padding: 8px; border-radius: 7px; background: #0b2226; color: #f2e7bf; border: 1px solid #2c5552; font: inherit; }
footer #feedback { margin-right: 8px; }
.wallet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0; }
.wallet > span { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 8px; background: #0b2226; border: 1px solid #6b4a2b; }
.wallet b { font-size: 12.5px; color: #f2e7bf; }
.wallet .icon.pi { width: 20px; height: 20px; }
.icon.pi.gem { filter: hue-rotate(150deg) saturate(1.4) drop-shadow(0 1px 1px #0008); }
.icon.pi.premium { filter: hue-rotate(260deg) saturate(1.5) drop-shadow(0 0 4px #c77dff88); }
.tile.soon { opacity: .75; }
.gem-shop { border-color: #c0577a; }
.wallet { grid-template-columns: repeat(2, 1fr); }
.icon.pi.pearl { filter: grayscale(1) brightness(1.7) drop-shadow(0 0 3px #fff8); }
.icon.pi.blue { filter: drop-shadow(0 0 4px #4fb4ff99); }
.icon.pi.pink { filter: hue-rotate(110deg) saturate(1.6) drop-shadow(0 0 4px #ff7fd199); }
.pink-shop { border-color: #c0577a; opacity: .85; }

/* 1.1 — interior da casa */
.house-panel { padding: 8px; }
.house-room { position: relative; aspect-ratio: 1344 / 768; border-radius: 10px; overflow: hidden; background: url("assets/art/house-room.jpg") center/cover; border: 3px solid #4a3220; box-shadow: inset 0 0 40px #0007; }
.furn { position: absolute; aspect-ratio: 1; transform: translate(0, -100%); background: url("assets/art/furniture.png") no-repeat; background-size: 500% 200%; filter: drop-shadow(0 6px 6px #0007); pointer-events: none; }
.furn-icon { width: 64px; height: 64px; background: url("assets/art/furniture.png") no-repeat; background-size: 500% 200%; }
.plaque-wall { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 8.6%; aspect-ratio: 1.5; min-height: 0; padding: 0; border-radius: 8px; background: linear-gradient(#7a5534, #4a3220); border: 3px solid #a07443; box-shadow: inset 0 2px 0 #b98a55, 0 5px 6px #0008; cursor: pointer; }
.plaque-wall:hover { border-color: #e8c57f; }
.plaque-wall .fish-thumb { width: 92%; height: 70%; }
.plaque-wall.record { border-color: #f5c451; box-shadow: 0 0 12px #f5c45199, inset 0 2px 0 #b98a55; }
.plaque-wall i { position: absolute; top: -9px; right: -6px; font-style: normal; color: #f5c451; text-shadow: 0 0 6px #000; font-size: 15px; }
.plaque-wall.empty { background: #0003; border: 2px dashed #e8c57f66; box-shadow: none; cursor: default; }
.house-tag { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #1b1206d9; color: #f5d98f; font-size: 12px; }
.furn.floor { transform: translate(0, -100%) perspective(400px) rotateX(62deg); transform-origin: bottom center; }

/* 1.2 — interiores dos prédios */
.interior { position: relative; aspect-ratio: 1344 / 768; margin-bottom: 12px; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; border: 3px solid #4a3220; box-shadow: inset 0 0 40px #0007; }
.npc-in { position: absolute; bottom: 4%; width: 13%; aspect-ratio: 360 / 520; transform: translateX(-50%); background: url("assets/art/npcs.png") no-repeat; background-size: 600% 100%; filter: drop-shadow(0 8px 8px #0009); animation: npc-bob 3s ease-in-out infinite; }
@keyframes npc-bob { 50% { transform: translateX(-50%) translateY(-3px); } }
.say { position: absolute; bottom: 40%; transform: translateX(-30%); max-width: 34%; padding: 7px 11px; border-radius: 12px; background: #fff8e6f2; color: #3b2a1a; font-size: 12.5px; font-weight: 600; box-shadow: 0 4px 10px #0007; }
.say::after { content: ""; position: absolute; left: 24%; bottom: -8px; border: 8px solid transparent; border-top-color: #fff8e6f2; border-bottom: 0; }
.hotspot { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; min-height: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.hotspot i { width: 18px; height: 18px; border-radius: 50%; background: #f5c451; border: 3px solid #fff3c4; box-shadow: 0 0 0 0 #f5c451aa; animation: spot 1.8s infinite; }
.hotspot .spot-label { padding: 3px 9px; border-radius: 999px; background: #1b1206e6; color: #f5d98f; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: .92; }
.hotspot:hover .spot-label { background: #e8c57f; color: #1b1206; }
@keyframes spot { 70% { box-shadow: 0 0 0 10px #f5c45100; } }
@media (prefers-reduced-motion: reduce) { .npc-in, .hotspot i { animation: none; } }
.flash-target { outline: 3px solid #f5c451; outline-offset: 2px; transition: outline .3s; }
@media (max-width: 760px) { .say { display: none; } .hotspot .spot-label { font-size: 10px; } }

/* 1.3 — missões do dia e conquistas */
.quest-board { border-color: #8a6a3a !important; }
.quest { display: flex; align-items: center; gap: 8px; padding: 7px; margin-top: 6px; border-radius: 9px; background: #0b2226; border: 1px solid #2c5552; transition: border-color .2s; }
.quest .icon.pi { width: 26px; height: 26px; }
.quest.done:not(.claimed) { border-color: #f5c451; box-shadow: 0 0 10px #f5c45144; animation: q-glow 1.6s ease-in-out infinite; }
.quest.claimed { opacity: .55; }
@keyframes q-glow { 50% { box-shadow: 0 0 16px #f5c45188; } }
.q-body { flex: 1; min-width: 0; }
.q-body b { display: block; font-size: 12px; line-height: 1.2; color: #f2e7bf; }
.q-bar { position: relative; height: 13px; margin-top: 4px; border-radius: 7px; background: #061416; border: 1px solid #23474a; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3d9a62, #e8c57f); transition: width .4s; }
.q-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.q-bar.wide { width: 220px; height: 16px; }
.q-claim { min-height: 0; padding: 4px 7px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 2px; }
.q-claim:not(:disabled) { background: linear-gradient(#f2d692, #c99a4b); color: #1b1206; border-color: #fff3c4; }
.q-claim .icon.pi { width: 15px; height: 15px; }
.q-ok { color: #7fe0a0; font-weight: 700; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .quest.done { animation: none; } }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ach { display: grid; justify-items: center; gap: 5px; padding: 12px 8px; border-radius: 12px; background: linear-gradient(#183a3c, #0f2729); border: 2px solid #2c5552; text-align: center; }
.ach b { font-size: 13px; color: #f2e7bf; }
.ach .q-bar { width: 100%; }
.ach.tier-3 { border-color: #f5c451; box-shadow: 0 0 14px #f5c45144; }
.medals { display: flex; gap: 5px; }
.medal { width: 16px; height: 16px; border-radius: 50%; background: #0b2226; border: 2px solid #34605c; }
.medal.on.m0 { background: radial-gradient(#f0b27a, #a0602c); border-color: #f0c08a; }
.medal.on.m1 { background: radial-gradient(#f2f4f5, #9aa5ab); border-color: #fff; }
.medal.on.m2 { background: radial-gradient(#fff2a8, #d4a017); border-color: #fff3c4; box-shadow: 0 0 8px #f5c451; }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.boat-card { display: grid; justify-items: center; gap: 5px; padding: 10px; border-radius: 12px; background: linear-gradient(#183a3c, #0f2729); border: 2px solid #2c5552; text-align: center; opacity: .55; filter: grayscale(.5); }
.boat-card.own, .boat-card.next { opacity: 1; filter: none; }
.boat-card.current { border-color: #7fe0a0; box-shadow: 0 0 12px #7fe0a066; }
.boat-card.next { border-color: #e8c57f; }
.boat-card b { font-size: 13px; color: #f2e7bf; }
.boat-img { width: 100%; aspect-ratio: 2.1; background-repeat: no-repeat; }
.boat-card button { width: 100%; }
.country-block { margin-top: 8px; }
.country-name { margin: 6px 0 4px; font: 600 14px Georgia, serif; color: #f2e7bf; }
.country-name small { font: 11px system-ui; color: #8fb0a4; }
.spot-biome { position: absolute !important; top: 5px; right: 5px; padding: 1px 6px; border-radius: 999px; background: #0b2226d9; color: #9fe0c8; font-size: 9.5px; }
.geo-line { margin: 0 0 6px; color: #e8c57f; font-weight: 600; }
.spot-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
.boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.boss { display: grid; justify-items: center; gap: 5px; padding: 12px 8px; border-radius: 12px; background: radial-gradient(circle at 50% 20%, #3b2a1a, #10292b 70%); border: 2px solid #8a6a3a; text-align: center; }
.boss.locked { filter: grayscale(.8) brightness(.7); }
.boss.fighting { border-color: #e85d4a; box-shadow: 0 0 16px #e85d4a77; }
.boss-art { display: grid; place-items: center; width: 100%; height: 64px; filter: drop-shadow(0 0 10px #f5c451aa) saturate(1.3); }
.boss-art .fish-thumb { width: 120px; height: 60px; }
.boss b { font-size: 13px; color: #f5d98f; }
.boss small { font-size: 10.5px; color: #9fb8ad; }
.q-bar.hp { width: 100%; }
.q-bar.hp i { background: linear-gradient(90deg, #c0392b, #e85d4a); }
#boss-bar { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); width: min(420px, 70%); padding: 6px 12px; border-radius: 10px; background: #1b1206e6; border: 2px solid #e85d4a; color: #f5d98f; font-size: 12px; text-align: center; z-index: 5; }
#boss-bar[hidden] { display: none; }

/* 1.4 — interiores estáticos com ícones de ação */
.npc-in { animation: none !important; }
.hotspot { transition: none; }
.hotspot .icon.pi { width: 34px; height: 34px; border-radius: 50%; background-color: #1b1206e6; outline: 2px solid #e8c57f; box-shadow: 0 3px 6px #0009; background-origin: border-box; }
.hotspot:hover .icon.pi { outline-color: #fff3c4; background-color: #3b2a1a; }
.hotspot:hover .spot-label { background: #e8c57f; color: #1b1206; }
.hotspot .spot-label { transform: none; }
.pet-img { display: block; width: 80px; height: 80px; background: url("assets/art/pets.png") no-repeat; background-size: 300% 100%; filter: drop-shadow(0 4px 4px #0008); }
.pet-img.big { width: 120px; height: 120px; flex: none; }
.pet-img.in-room { position: absolute; left: 44%; bottom: 6%; width: 12%; height: auto; aspect-ratio: 1; }
.pet-row { display: flex; gap: 14px; align-items: center; }
#event-banner.season { color: #ffe6f6; background: linear-gradient(90deg, #7a2e66d9, #c0577ad9); border-color: #ffb1d8; }
.gold-tag { background: linear-gradient(#f5d98f, #c99a4b) !important; color: #1b1206 !important; }

/* 1.6 — mochila nova */
.bag-panel { position: static; }
.bag-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bag-top .cap { flex: 1; min-width: 200px; }
.bag-top .cap b { font: 700 18px Georgia, serif; color: #f2e7bf; }
.bag-top .cap small, .bag-total small { display: block; font-size: 12px; color: #8fb0a4; }
.bag-total { text-align: right; }
.bag-filters { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin: 10px 0 6px; }
.bag-filters input, .bag-filters select { min-height: 36px; padding: 6px 10px; border-radius: 8px; background: #0b2226; color: #f2e7bf; border: 1px solid #2c5552; font: inherit; }
.bag-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.bag-chips .sep { width: 1px; height: 22px; background: #2c5552; margin: 0 4px; }
.fchip { min-height: 32px; padding: 4px 10px; border-radius: 999px; background: #0b2226; border: 1px solid #2c5552; color: #cfe0d6; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.fchip.on { background: linear-gradient(#e8c57f, #b8873f); color: #1b1206; border-color: #fff3c4; }
.fchip .grade { margin: 0; }
.bag-bulk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 9px; background: #0b2226; border: 1px dashed #2c5552; }
.bag-bulk.on { border: 1px solid #e8c57f; background: #2a1d12; }
.bag-bulk b { margin-right: 6px; font-size: 13px; color: #f5d98f; }
.bag-bulk button { min-height: 34px; display: inline-flex; align-items: center; gap: 4px; }
.bag-bulk .icon.pi { width: 18px; height: 18px; }
.bag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.bag-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bag-cell { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 0; padding: 12px 6px 8px; border-radius: 10px; background: linear-gradient(#183a3c, #0f2729); border: 1px solid #365c5a; text-align: center; cursor: pointer; }
.bag-cell:hover { border-color: #5f8f86; }
.bag-cell.sel { border-color: #f5c451; box-shadow: 0 0 0 2px #f5c45155, 0 0 12px #f5c45144; background: linear-gradient(#2d3a22, #172a1e); }
.bag-cell.g-S { background: linear-gradient(#3a3418, #17291f); }
.bag-cell > .grade { position: absolute; top: 5px; left: 5px; margin: 0; }
.bag-cell .lock { position: absolute; top: 4px; right: 6px; font-size: 12px; }
.bag-cell b { font-size: 13px; color: #f2e7bf; line-height: 1.35; }
.bag-cell small { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: #9fb8ad; }
.bag-cell small .icon.pi { width: 13px; height: 13px; }
.bag-detail { position: static; display: grid; justify-items: center; gap: 6px; padding: 14px; border-radius: 12px; background: radial-gradient(circle at 50% 10%, #24464a, #10292b 70%); border: 1px solid #8a6a3a; text-align: center; }
.bag-detail.empty { color: #9fb8ad; font-size: 12.5px; border-style: dashed; }
.bd-art .fish-thumb { width: 200px; height: 100px; }
.bag-detail h3 { margin: 0; font: 20px Georgia, serif; color: #f5d98f; }
.bag-detail .sci { margin: 0; font-size: 12px; color: #9fb8ad; }
.bd-stats { display: flex; gap: 10px; font-size: 12px; color: #dfe8df; }
.bd-stats .icon.pi { width: 16px; height: 16px; }
.bd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.bd-actions button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12.5px; }
.bd-actions button:first-child { grid-column: 1 / -1; }
.bd-actions .icon.pi { width: 18px; height: 18px; }
.empty-bag { grid-column: 1 / -1; text-align: center; padding: 30px; }
@media (max-width: 900px) { .bag-layout { grid-template-columns: 1fr; } .bag-detail { position: static; order: -1; } .bag-filters { grid-template-columns: 1fr 1fr; } .bag-filters input { grid-column: 1 / -1; } .bag-panel { position: static; } }
.bag-filters input, .bag-filters select { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 900px) { .bag-detail.empty { display: none; } .bag-total { text-align: left; } }

/* 1.6.2 — HUD e janelas. Esta seção é a autoridade de layout da interface. */
header { height:64px; gap:24px; padding:0 20px; background:#10292c; border-bottom:1px solid #365653; box-shadow:none; }
.brand { font-size:22px; }
footer { min-height:42px; padding:6px 18px; font-size:12px; border-top:1px solid #365653; }
.panel, aside > section { border:1px solid #365653; box-shadow:none; padding:14px; margin-bottom:12px; background:linear-gradient(135deg,#18383b,#10282c); }
.section-title { background:none; padding:0; margin:0 0 10px; font:700 12px/1.4 system-ui; color:#b3c8bd; letter-spacing:.08em; box-shadow:none; }
.world { border:1px solid #5a7770; box-shadow:none; border-radius:10px; flex:none; }
.center > nav { background:#10282c; border:1px solid #365653; box-shadow:none; padding:6px; gap:4px; }
.center > nav button { font-size:12px; min-height:44px; }
.rail button { border:1px solid #365653; box-shadow:none; font-size:12px; min-height:52px; }
button.primary { border:1px solid #e8c57f; box-shadow:none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline:3px solid #9be4dc; outline-offset:3px; }
.lang-switch button { min-width:40px; min-height:36px; }
.scene-heading { margin:10px 0; gap:12px; }
.scene-heading h1 { font-size:clamp(23px,2.2vw,30px); }
.scene-heading small { letter-spacing:.08em; font-size:12px; }
#weather { font-size:12px; max-width:42%; }
.q-body b, .gear-row b { font-size:13px; line-height:1.4; }
.gear-row small, .tiny { font-size:12px; }
.q-claim { min-height:38px; padding:7px 9px; }
#scene-label { display:none; }
#world-log { bottom:10px; left:10px; max-width:42%; }
#boss-bar { top:8px; }
#event-banner { top:auto; bottom:10px; left:auto; right:10px; transform:none; max-width:48%; padding:6px 10px; font-size:12px; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:left; pointer-events:auto; min-height:36px; z-index:6; letter-spacing:0; }
#event-banner:hover { transform:none; }
#event-banner:focus-visible { outline-offset:-3px; }
.country-code { display:inline-grid; place-items:center; min-width:30px; padding:2px 5px; border:1px solid #5a817b; border-radius:5px; font:700 11px/1.4 system-ui; letter-spacing:.06em; background:#112f32; color:#c1e3d9; vertical-align:middle; }
.center.window-open #content { position:fixed; inset:80px max(16px,calc((100vw - 1080px)/2)) 56px; height:auto; z-index:35; display:flex; flex-direction:column; overflow:hidden; padding:0; border:1px solid #6d9384; border-radius:12px; background:#10282cfb; box-shadow:0 18px 60px #0009; }
.center.window-open #content.bag-window { left:max(16px,calc((100vw - 1240px)/2)); right:max(16px,calc((100vw - 1240px)/2)); }
.win-head { position:static; flex:none; margin:0; padding:10px 16px; border-bottom:1px solid #365653; background:#18383b; color:#f4e4be; letter-spacing:.06em; font-size:15px; }
.win-head button { min-width:44px; min-height:40px; padding:6px 12px; }
.win-body { min-width:0; }
.window-open .win-body { min-height:0; overflow:auto; overscroll-behavior:contain; padding:16px; scrollbar-gutter:stable; }
.bag-window .win-body { flex:1; display:flex; flex-direction:column; overflow:hidden; gap:12px; }
.bag-window .bag-panel { flex:none; margin:0; padding:12px; }
.bag-window .bag-layout { flex:1; min-height:0; }
.bag-window .bag-grid2, .bag-window .bag-detail { min-height:0; max-height:100%; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; align-content:start; }
.bag-cell { min-width:0; }
.bag-cell b { overflow-wrap:anywhere; }
.bag-cell .fish-thumb { width:110px; height:55px; }
.bag-detail { min-width:0; }
.bd-stats { flex-wrap:wrap; justify-content:center; }
.prot-note { flex-basis:100%; margin:4px 0; color:#f1d39a; font-size:13px; }
.interior { isolation:isolate; }
.hotspot { width:44px; height:44px; justify-content:center; min-height:44px; z-index:2; }
.hotspot .spot-label { display:none; position:absolute; top:calc(100% + 4px); left:50%; transform:translateX(-50%); font-size:12px; max-width:190px; white-space:normal; min-width:110px; text-align:center; pointer-events:none; }
.hotspot:hover, .hotspot:focus-visible { z-index:4; }
.hotspot:hover .spot-label, .hotspot:focus-visible .spot-label { display:block; }
.interior-actions { position:static; display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 16px; }
.interior-actions button { display:flex; gap:6px; align-items:center; padding:8px 12px; min-height:44px; font-size:13px; }
@media (min-width:1101px) {
  html { height:100%; overflow:clip; }
  body { height:100vh; height:100dvh; display:grid; grid-template-rows:64px minmax(0,1fr) auto; overflow:hidden; }
  main { width:100%; height:100%; margin:0 auto; max-width:1800px; min-height:0; display:grid; grid-template-columns:220px minmax(0,1fr) 280px; grid-template-rows:minmax(0,1fr); gap:14px; padding:14px 18px; overflow:hidden; }
  #profile, #right, .center { min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
  .center { display:flex; flex-direction:column; padding:0 2px 10px; }
  .center > nav { position:sticky; top:0; z-index:10; flex:none; }
  .immersive main { grid-template-columns:1fr; }
  .immersive .center { align-items:stretch; }
  .immersive .world { align-self:center; }
}
@media (max-width:1100px) {
  header { position:sticky; top:0; z-index:25; }
  main { min-width:0; }
  #profile, #right, .center { min-width:0; }
}
@media (max-width:760px) {
  header { height:60px; padding:0 12px; gap:12px; }
  .brand { font-size:18px; gap:6px; letter-spacing:1px; }
  .brand small { letter-spacing:1px; font-size:8px; }
  header .local { display:none; }
  .lang-switch { margin-left:auto; }
  body { padding-bottom:76px; }
  body.in-window { position:fixed; inset:0; width:100%; height:100dvh; overflow:hidden; }
  main { display:flex; flex-direction:column; padding:10px; gap:10px; }
  #profile { display:grid !important; grid-template-columns:1fr; gap:8px; overflow:visible !important; }
  #profile section { min-width:0 !important; width:auto; }
  #profile .field-panel, #profile > section:last-child { display:none; }
  .rail { grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; }
  .rail button { min-height:52px; }
  .avatar-art { display:none; }
  #profile .name { font-size:18px; }
  #profile .wallet { flex-wrap:wrap; }
  #world-log { display:none; }
  #event-banner { max-width:calc(100% - 20px); font-size:11px; min-height:36px; }
  #weather { display:none; }
  #eyebrow { overflow-wrap:anywhere; }
  .center > nav { position:fixed; bottom:0; top:auto; left:0; right:0; z-index:40; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-radius:0; padding:4px 2px calc(4px + env(safe-area-inset-bottom)); margin:0; }
  .center > nav button { min-width:0; padding:6px 0; font-size:10px; min-height:52px; }
  .center > nav button .icon.pi { width:24px; height:24px; }
  .center.window-open #content, .center.window-open #content.bag-window { inset:0 0 calc(68px + env(safe-area-inset-bottom)); height:auto !important; border-radius:0; z-index:35; }
  .window-open .win-body { padding:10px; }
  .bag-window .win-body { display:block; overflow:auto; }
  .bag-window .bag-panel { margin-bottom:10px; }
  .bag-window .bag-layout { display:flex; flex-direction:column; }
  .bag-window .bag-grid2 { width:100%; overflow:visible; max-height:none; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bag-window .bag-detail { order:-1; width:100%; max-height:none; overflow:visible; }
  .bag-detail.empty { display:none; }
  .bd-art .fish-thumb { width:150px; height:75px; }
  .hotspot .icon.pi { width:36px; height:36px; }
  .hotspot .spot-label { max-width:130px; min-width:90px; }
  .interior-actions { display:grid; grid-template-columns:1fr; }
  .interior-actions button { justify-content:flex-start; }
  footer { flex-wrap:wrap; padding:12px; gap:8px; }
}
/* A fala fica fora da imagem e dos pontos, inclusive com tradução e zoom. */
.interior-dialogue { margin:0 0 10px; padding:10px 12px; border-left:3px solid #d2b576; border-radius:4px; background:#1a3939; color:#ecdfba; font-size:14px; line-height:1.5; }
.hotspot.edge-start .spot-label { left:0; transform:none; }
.hotspot.edge-end .spot-label { left:auto; right:0; transform:none; }
footer a { display:inline-flex; align-items:center; min-height:32px; }

html:has(body.in-window) { overflow:clip; }
#profile, #right { overflow-x:hidden; }
#profile small, #profile p { overflow-wrap:anywhere; }
/* 1.7 — controles claros e acessibilidade sem animação obrigatória. */
.bag-total > b { display:block; font-size:18px; color:var(--gold); }
.bag-bulk { scroll-margin-top:12px; }
.bag-bulk .prot-note { margin:0; }
.interior-actions button:focus-visible { outline-offset:1px; }
.auto-group select { min-height:40px; }
#modal { max-height:calc(100dvh - 32px); overflow:auto; }
#modal::backdrop { background:#031318b8; backdrop-filter:blur(3px); }
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; }
  .flash-target, .quest.done, #levelup { animation:none !important; transition:none !important; }
}

.founder-shop .founder-terms{margin:.3rem 0 .6rem 1.1rem;font-size:.85em;opacity:.85}
.founder-shop .tile.founder ul{text-align:left;font-size:.8em;margin:.3rem 0 .5rem 1rem;padding:0}
.founder-shop a.btn{display:inline-block;padding:.35rem .8rem;border-radius:8px;background:#2f9e5b;color:#fff;text-decoration:none;font-weight:700}
.diamond-shop h3{margin:.8rem 0 .3rem;font-size:1rem}
.diamond-shop .shop-note{background:rgba(255,255,255,.06);padding:.5rem .7rem;border-radius:8px}
.diamond-shop .bonus{color:#6fdc8c;font-size:.7em}
.diamond-shop .chip.on{background:#2f9e5b33;border-color:#2f9e5b}
.diamond-shop .vip-tile{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.diamond-shop .vip-tile ul{margin:0 0 0 1rem;font-size:.85em}
.diamond-shop .ledger{font-size:.8em;max-height:10rem;overflow:auto}
.tag.vip{background:#d4a72c;color:#222}

/* ===== HUD limpo 1.8 (desktop): mundo como protagonista, barras compactas ===== */
@media (min-width: 1100px) {
  header { min-height: 0; height: 44px; padding-block: 4px; }
  footer { height: 30px; min-height: 0; padding-block: 2px; font-size: 11px; }
  main { grid-template-columns: 200px minmax(0, 1fr) 236px; gap: 10px; padding: 8px 10px; }
  #profile, #right { gap: 8px; }
  #profile > section, #right > section { padding: 10px 12px; }
  #profile h2, #right h2, #profile .tag, #right .tag { font-size: 11px; letter-spacing: .08em; margin-bottom: 6px; }
  .center { position: relative; gap: 6px; }
  /* Barra superior de ícones, uma linha */
  #nav { display: flex; gap: 4px; padding: 4px; height: auto; min-height: 0; }
  #nav button { flex: 1; min-height: 0; height: 40px; padding: 2px 4px; flex-direction: row; gap: 6px; justify-content: center; font-size: 12px; }
  #nav button .icon { width: 22px; height: 22px; }
  /* Título do local vira etiqueta sobre o mundo */
  .scene-heading { position: absolute; z-index: 3; left: 12px; top: 60px; padding: 4px 10px; border-radius: 8px;
    background: rgba(8, 20, 18, .72); backdrop-filter: blur(3px); margin: 0; min-height: 0; pointer-events: none; gap: 10px; align-items: center; }
  .scene-heading h1 { font-size: 15px; margin: 0; }
  .scene-heading small { font-size: 9px; }
  .scene-heading #weather { font-size: 11px; opacity: .8; }
  .world-toolbar { position: absolute; z-index: 3; right: 12px; top: 60px; margin: 0; height: auto; }
  .world-toolbar > div:first-child { display: none; }
  .world-toolbar button { padding: 3px 8px; font-size: 11px; background: rgba(8, 20, 18, .72); }
  .world { border-radius: 10px; }
  /* Rail de atalhos: ícones compactos */
  .rail { height: auto; gap: 4px; }
  .rail button { min-height: 0; height: 36px; padding: 2px; font-size: 10px; }
}
@media (min-width: 1100px) {
  main { grid-template-columns: 196px minmax(0, 1fr) 256px; }
  .scene-heading, .scene-heading > div { display: flex; white-space: nowrap; }
  .scene-heading > div { flex-direction: column; }
  #nav button .icon { display: inline-block; flex: none; }
}
@media (min-width: 1100px) {
  .scene-heading { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  .world-toolbar > *:not(div), .world-toolbar small, .world-toolbar p { display: none; }
}
.diamond-shop .test-mode{border:1px dashed #d4a72c;background:#d4a72c1a}
.plan-preview{border:1px solid var(--line,#ffffff22);border-radius:10px;padding:10px 12px;margin:10px 0;font-size:.92em}
.plan-preview ul{margin:6px 0 6px 18px;padding:0}.plan-preview p{margin:6px 0}
.auto-stop .link{margin-left:6px}
.cat-cell .prep{display:block;margin-top:4px;font-size:.85em}.cat-cell .lock-hint{display:block;margin-top:4px;opacity:.75;font-size:.78em}
.cap.hl{outline:1px solid #f5c84a88}.cap-tag{font-style:normal;font-size:.7em;font-weight:700;letter-spacing:.04em;padding:1px 4px;border-radius:4px;background:#f5c84a33}
.cap.group{opacity:.85}
.account-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:8px 0}
.acct{display:flex;flex-direction:column;gap:6px;border:1px solid #ffffff22;border-radius:10px;padding:10px}
.acct h4{margin:0 0 4px}.acct label{display:flex;flex-direction:column;gap:2px;font-size:.9em}.acct label.check{display:block;font-size:.82em;line-height:1.35}.acct label.check input{margin-right:6px;vertical-align:middle}
.acct input:not([type=checkbox]){width:100%;box-sizing:border-box}
.hot-list{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.chip.hot b{color:#f5c84a}
.market-sell{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px}.market-sell .cap{display:flex;align-items:center;gap:6px}.market-sell .cap>span{flex:1}

.linkish{background:none;border:0;color:var(--gold,#e8c57f);text-decoration:underline;padding:4px;cursor:pointer;font-size:.9em}
.online-count{font-size:.8em;color:#9fe0a8;white-space:nowrap;margin-right:10px;align-self:center}
.online-count::first-letter{color:#4ade80}
/* Aquário / companheiros */
.aq-tabs{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:8px}.aq-tabs .active{outline:2px solid #ffd76a}
.aq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:6px}
.aq-card{display:flex;flex-direction:column;gap:2px;text-align:left;padding:6px;border-radius:6px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.15);color:inherit;min-width:0}
.aq-card small{overflow:hidden;text-overflow:ellipsis}.aq-card.sel{outline:2px solid #ffd76a}.aq-card.special{border-color:#ffd76a}.aq-card.empty{opacity:.5;justify-content:center}
.aq-card em{font-size:11px;color:#9fe3a0}.aq-slot{font-size:11px;opacity:.8}
.aq-stats{border-collapse:collapse;width:100%}.aq-stats td{padding:2px 6px;border-bottom:1px solid rgba(255,255,255,.1)}
.aq-actions{display:flex;flex-wrap:wrap;gap:4px}.aq-fight{max-height:240px;overflow:auto;margin-top:6px}
.aq-detail label,.aq-market label{margin-right:6px}#aq-price{width:90px}
/* Visual do pescador */
.avatar-art{display:flex;flex-direction:column;align-items:center;gap:2px}.avatar-canvas{width:110px;height:130px;image-rendering:auto;filter:drop-shadow(0 4px 4px #02191c88)}
.look-wrap{display:grid;grid-template-columns:220px 1fr;gap:12px}.look-stage{display:flex;flex-direction:column;align-items:center;gap:6px;background:rgba(0,0,0,.2);border-radius:8px;padding:8px}
.look-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.look-tile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:6px;border-radius:8px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.15)}
.look-tile span{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}.look-tile .tier{opacity:.8}
.look-tile.tier-2{border-color:#4fa3e0}.look-tile.tier-3{border-color:#a56cff}.look-tile.tier-4{border-color:#ffd24a;box-shadow:0 0 10px #ffd24a55}
@media (max-width:700px){.look-wrap{grid-template-columns:1fr}}
/* Comunidade, passe, ranking, chat, mochila */
.soc-tabs{position:sticky;top:0;z-index:2;background:inherit;padding:4px 0}
.pass-head{display:flex;gap:14px;align-items:center;background:rgba(0,0,0,.25);border-radius:10px;padding:10px}
.pass-day{display:flex;flex-direction:column;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;border:3px solid #ffd76a;background:rgba(0,0,0,.3)}.pass-day b{font-size:30px;line-height:1}
.pass-grid{display:grid;grid-template-columns:1fr 44px 1fr;gap:4px 8px;margin-top:10px;align-items:stretch}
.pass-cell{padding:6px;border-radius:6px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.12);font-size:12px}
.pass-cell.prem{border-color:#ffd24a66}.pass-cell.done{opacity:.55}.pass-cell.today{border-color:#9fe3a0;box-shadow:0 0 8px #9fe3a066}.pass-cell.big{border-width:2px}
.pass-num{display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,.08);font-weight:700}.pass-num.today{background:#9fe3a0;color:#0b2a20}
button.big,.btn.big{font-size:16px;padding:10px 18px;background:linear-gradient(#ffd76a,#e0a92a);color:#2a1a00;border-radius:8px;font-weight:700;display:inline-block;text-decoration:none}
.vote-big{font-size:16px;background:rgba(0,0,0,.25);padding:10px;border-radius:8px}
.podium{display:flex;gap:10px;justify-content:center;align-items:flex-end;margin:10px 0}.pod{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 16px;border-radius:10px;background:rgba(0,0,0,.25);color:inherit;border:1px solid #ffffff22}
.pod span{font-size:28px}.pod.p1{padding-bottom:26px;border-color:#ffd24a}.rank-me{background:rgba(0,0,0,.25);padding:6px 10px;border-radius:6px}
.rank-wrap{display:grid;grid-template-columns:1fr 220px;gap:10px;align-items:start}.highlights{display:flex;flex-direction:column;gap:6px;background:rgba(0,0,0,.2);padding:8px;border-radius:8px}
.dot-on{color:#5fd068}.dot-off{color:#777}
.prof-head{display:flex;gap:12px;align-items:center}.bio{font-style:italic;opacity:.9}.stat-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px;margin:8px 0}.stat-box{background:rgba(0,0,0,.25);border-radius:8px;padding:8px;text-align:center;display:flex;flex-direction:column}.stat-box b{font-size:18px}
.friends{display:grid;grid-template-columns:260px 1fr;gap:10px}.fr-left{display:flex;flex-direction:column;gap:4px}.fr{display:block;text-align:left;width:100%;color:inherit;background:rgba(0,0,0,.2);border:1px solid #ffffff1a;border-radius:6px;padding:6px}.fr.sel{outline:2px solid #ffd76a}
.chat-box{height:280px;overflow:auto;background:rgba(0,0,0,.3);border-radius:8px;padding:6px;font-size:13px}
#soc-chat-text,#soc-dm-text{width:min(70%,480px)}
.mkt-cols{display:grid;grid-template-columns:240px 1fr;gap:10px}.mkt-item{display:flex;flex-direction:column;width:100%;text-align:left;color:inherit;background:rgba(0,0,0,.2);border:1px solid #ffffff1a;border-radius:6px;padding:6px;margin-bottom:4px}.mkt-item.sel{outline:2px solid #ffd76a}
input.qty{width:80px}
.calc-grid{display:grid;grid-template-columns:1fr 260px;gap:12px}.calc-out{background:rgba(0,0,0,.25);border-radius:10px;padding:10px;text-align:center}.calc-nota{font-size:42px;color:#ffb347}
.pocket-grid .pocket{min-height:96px}.pocket em{margin-top:auto;font-style:normal;background:rgba(255,215,106,.2);border-radius:10px;padding:1px 8px;align-self:flex-start}.pocket-detail{margin-top:10px;background:rgba(0,0,0,.2);padding:10px;border-radius:8px}
@media (max-width:700px){.rank-wrap,.friends,.mkt-cols,.calc-grid{grid-template-columns:1fr}.pass-grid{font-size:11px}}
