:root {
  color-scheme: dark;
  background: #0b1421;
  color: #edf6f9;
  font: 16px/1.5 "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
.expedition [hidden] { display: none !important; }
body { margin: 0; }
a { color: #8ce4e0; }

.expedition-service,
.expedition-reward {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #426678;
  border-radius: .75rem;
  background: #122533;
}

.expedition-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.expedition-reward {
  margin: 0;
  border-color: #a98b4c;
  background: linear-gradient(125deg, #23332e, #132330);
}

.expedition-reward h2 { margin: 0; font-size: 1.2rem; color: #ffdc9d; }
.expedition-reward p { margin: .5rem 0 .85rem; }

.expedition-stats {
  display: grid;
  gap: .65rem;
  margin-top: 1.5rem;
  overflow-anchor: none;
}

.google-ads-expedition {
  width: 100%;
  margin: 24px 0;
}

.expedition:has(#expedition-book[hidden]) .google-ads-expedition {
  margin-top: max(2cm, 76px);
}

.expedition-stats-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #426678;
  border-bottom-color: #a98b4c;
  border-radius: .75rem;
  background: linear-gradient(115deg, #10303b, #0a1a27);
}

.expedition-stats-row .preview-label {
  margin: 0 0 .15rem;
  color: #ffdc9d;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.expedition-stats-row h2 { margin: 0; font-size: 1.1rem; }
.expedition-stats-row p:not(.preview-label) { margin: .25rem 0 0; font-size: .75rem; }
.expedition-stats-row dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0; text-align: center; }
.expedition-stats-row dl > div { padding: .5rem .2rem; border: 1px solid #426678; border-radius: .6rem; background: #082432; }
.expedition-stats-row dt { font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.expedition-stats-row dd { margin: 0; color: #ffdc9d; font-size: 1.3rem; font-weight: 800; }

@media (max-width: 700px) {
  .expedition-stats-row { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}

.expedition {
  max-width: 1240px;
  margin: auto;
  padding: clamp(14px, 3vw, 32px);
}

.preview-label {
  margin: 1rem 0 .25rem;
  color: #8ce4e0;
  font-weight: 700;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.12;
}

h1 span {
  display: block;
  margin-top: .25rem;
  color: #ffdc9d;
  font-size: .66em;
}

.expedition-layout {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  overflow-anchor: none;
}

.expedition-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "status" "art" "tools";
  width: 100%;
  margin-inline: auto;
}

@media (min-width: 701px) {
  .expedition-stage {
    container-type: inline-size;
    max-width: max(38rem, calc(var(--expedition-viewport-height, 100vh) * 16 / 9));
  }

  #actions:not(.is-puzzle-controls) {
    grid-area: art;
    z-index: 3;
    align-self: start;
    justify-self: end;
    justify-content: flex-end;
    max-width: calc(100% - max(15%, 8.25rem) - 2rem);
    margin: .65rem;
    pointer-events: none;
  }

  .expedition-stage:has(.scene-art[data-location="beach"], .scene-art[data-location="cave"]) #actions:not(.is-puzzle-controls) {
    margin-right: 12%;
    max-width: calc(88% - max(15%, 8.25rem) - 1.5rem);
  }
}

#actions button {
  pointer-events: auto;
}

#actions.is-puzzle-controls {
  grid-area: tools;
  justify-self: stretch;
  margin: .5rem 0 0;
  padding: .55rem .7rem;
  border: 1px solid #426678;
  border-radius: .75rem;
  background: #122232;
}

.scene-art {
  grid-area: art;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: .75rem;
  outline: 1px solid #426678;
}

.scene-actions { z-index: 2; }

.expedition-hearts {
  position: absolute;
  z-index: 2;
  top: 1%;
  left: 1%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.22rem, .7vw, .55rem);
  min-width: max(15%, 8.25rem);
  min-height: max(11%, 32px);
  padding: 0 .5rem;
  border: 1px solid #9e794d;
  border-radius: .55rem;
  background: #12202c;
  color: #ff8275;
  font: 700 clamp(1.1rem, 2.6vw, 1.85rem)/1 system-ui, sans-serif;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.expedition-hearts .is-lost { color: #b5a28b; }

.scene-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.scene-art img[hidden] { display: none; }

.scene-water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.scene-surf {
  display: none;
  fill: none;
  stroke: url(#surf-foam);
  stroke-linecap: round;
  opacity: var(--surf-opacity, 0);
  transition: transform .55s ease-out, opacity .4s ease-out;
}

[data-location="beach"] .scene-surf-beach,
[data-location="cave"] .scene-surf-cave { display: inline; }

.scene-surf-beach {
  transform: translate(calc(var(--tide-step, 0) * 10px), calc(var(--tide-step, 0) * -4px));
}

.scene-surf-cave {
  transform: translate(calc(var(--tide-step, 0) * -3px), calc(var(--tide-step, 0) * -12px));
}

.surf-waterline {
  stroke: url(#surf-water);
  stroke-width: 37;
  transform: translate(-4px, 13px);
  filter: blur(9px);
}

.scene-surf-beach .surf-waterline { transform: translate(-14px, 7px); }
.surf-wash { stroke-width: 14; filter: blur(4px); opacity: .55; }
.surf-edge { stroke-width: 5; filter: blur(.6px) drop-shadow(0 1px 2px #053f49); }
.surf-ripples { stroke-width: 3; stroke-dasharray: 9 14 3 10 18 19; transform: translate(-3px, 9px); opacity: .85; }

.scene-tide {
  position: absolute;
  left: 29%;
  top: 79%;
  transform: translate(-50%, -50%);
  padding: .2rem .5rem;
  border: 1px solid #8bece2;
  border-radius: .35rem;
  background: #102536f2;
  color: #d6fff7;
  font-size: clamp(.7rem, 1.5vw, .9rem);
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

[data-location="cave"] .scene-tide { left: 56%; top: 76%; }
.scene-tide.is-high { border-color: #ffdc9d; color: #ffedc8; }

.scene-actions { position: absolute; inset: 0; pointer-events: none; }

[data-location="tower"] .scene-water,
[data-location="tower"] .scene-tide,
[data-location="north-cove"] .scene-water,
[data-location="north-cove"] #scene-tide,
[data-location="chamber"] .scene-water,
[data-location="chamber"] #scene-tide,
[data-location="bell"] .scene-water,
[data-location="bell"] #scene-tide,
[data-location="stone-door"] .scene-water,
[data-location="stone-door"] #scene-tide,
[data-location="house"] .scene-water,
[data-location="house"] #scene-tide,
[data-location="reef"] .scene-water,
[data-location="reef"] #scene-tide,
[data-location="fog"] .scene-water,
[data-location="fog"] #scene-tide,
[data-location="sluice"] .scene-water,
[data-location="sluice"] #scene-tide { display: none; }

.chamber-tide {
  left: 74%;
  top: 89%;
}

[data-location="bell"] .chamber-tide,
[data-location="stone-door"] .chamber-tide {
  left: 55%;
  top: 88%;
}

.chamber-status {
  margin-bottom: .75rem;
  padding: .55rem .7rem;
  border: 1px solid #447b83;
  border-radius: .45rem;
  background: #102f40;
}

.chamber-status p:last-child { margin-bottom: 0; }

.north-stairs-marker {
  position: absolute;
  left: 69%;
  top: 63%;
  transform: translate(-50%, -50%);
  padding: .24rem .5rem;
  border: 1px solid #ffdc9d;
  border-radius: .35rem;
  background: #102536f2;
  color: #fff1c5;
  font-size: clamp(.7rem, 1.5vw, .9rem);
  white-space: nowrap;
  pointer-events: none;
}

.tower-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tower-dial {
  position: absolute;
  left: 42%;
  top: 31%;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 10deg, transparent 25%, #ffde837d 48%, transparent 72%);
  transform: translate(-50%, -50%) rotate(var(--lens-angle, 0deg));
  transition: transform .35s ease;
  mix-blend-mode: screen;
}

.tower-light[data-setting="1"] { --lens-angle: 120deg; }
.tower-light[data-setting="2"] { --lens-angle: 240deg; }

.tower-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, #fff6bb 40%, #ffc56180 65%, #ffcf6270 76%);
  clip-path: polygon(42% 29%, 72% 52%, 72% 65%, 42% 34%);
  opacity: 0;
  transition: opacity .3s ease;
  mix-blend-mode: screen;
}

.tower-light[data-setting="2"] .tower-beam { opacity: .85; }

.cave-trace {
  position: absolute;
  left: 67%;
  top: 34%;
  width: 14%;
  transform: translate(-50%, -50%);
  color: #ffdf95;
  border-radius: 50%;
  background: radial-gradient(ellipse, #2b201ad9, #46301d87 48%, transparent 74%);
  filter: drop-shadow(0 0 5px #ed9b35);
  pointer-events: none;
}

.cave-trace[hidden] { display: none; }

button.scene-target {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #ffdc9d;
  border-radius: 50%;
  background: #102536f2;
  color: #fff1c5;
  box-shadow: 0 2px 10px #061017, inset 0 0 0 2px #ffdc9d38;
  font-size: 1.2rem;
  pointer-events: auto;
  touch-action: manipulation;
}

button.scene-target:hover, button.scene-target:focus-visible {
  background: #285465;
}

button.scene-target.is-lit,
button.scene-target[aria-pressed="true"] {
  background: #ffdc9d;
  color: #231b10;
  box-shadow: 0 0 18px #ffcf75;
}

[data-fog-pulse="Links"] button[data-target="Links"],
[data-fog-pulse="Mitte"] button[data-target="Mitte"],
[data-fog-pulse="Rechts"] button[data-target="Rechts"] {
  background: #e9ffff;
  color: #0c2533;
  outline: 3px solid #adf2fc;
  outline-offset: 5px;
  box-shadow: 0 0 24px 10px #9be6ffba;
}

.target-label {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  padding: .12rem .4rem;
  border-radius: .3rem;
  background: #102536f2;
  color: #fff1c5;
  font-size: .8rem;
  white-space: nowrap;
  pointer-events: none;
}

.expedition-game {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  padding: .55rem .7rem;
  border: 1px solid #426678;
  border-radius: .75rem;
  background: #122232;
}

.expedition-game {
  grid-area: status;
  margin-bottom: .5rem;
}
.expedition-game > [hidden] { display: none; }
.expedition-game > .expedition-status,
.expedition-game > .chamber-status { flex: 1 1 15rem; }
.expedition-game > .chamber-status { margin: 0; }
.expedition-game > .expedition-status p:last-child { margin-bottom: 0; }
.expedition-game:has(.chamber-status:not([hidden])) {
  padding: 0;
  border: 0;
  background: transparent;
}
.expedition-game > .chamber-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
}
.expedition-game > .chamber-status p { margin: 0; }
.expedition-game:not(:has(.expedition-status:not([hidden]), .chamber-status:not([hidden]))) {
  display: none;
}

.expedition-hints {
  grid-area: art;
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 2rem clamp(12%, 8vw, 18%) .9rem 12%;
  border-radius: 0 0 .75rem .75rem;
  background: linear-gradient(transparent, #07121be8 37%, #07121bf5);
  color: #fff6e4;
  font: 600 clamp(.95rem, 1.75cqi, 1.2rem)/1.38 "Courier New", monospace;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}

.expedition-hints h2 {
  margin: 0 0 .2rem;
  font-size: 1.12em;
  color: #ffdc9d;
}

.expedition-hints p { margin: 0; }
.expedition-next-actions,
#scene-next {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.expedition-next-actions { margin-top: .55rem; }
.expedition-next-actions:not(:has(button:not([hidden]))),
#scene-next:empty { display: none; }
.expedition-next-actions button {
  pointer-events: auto;
  background: #44301d;
  border-color: #b48d58;
  color: #fff1d2;
  font: 700 .95rem/1.25 system-ui, sans-serif;
  text-shadow: none;
}
.expedition-next-actions button:hover { background: #624522; }
.scene-copy { display: grid; }
.scene-copy > span { grid-area: 1 / 1; }
.scene-copy.is-dialogue { white-space: pre-line; }
.scene-copy.is-typing #scene-text { opacity: 0; }
.expedition-game p, .expedition-book p { margin: 0 0 .8rem; }
.expedition-status label, .expedition-status p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .75rem;
}

progress { width: 100%; accent-color: #64d6d2; }
.expedition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-left: auto;
}

.expedition-actions:empty { display: none; }

.chest-clues {
  padding: .7rem 1rem;
  border: 1px solid #426678;
  border-radius: .55rem;
  background: #122232;
}

.chest-clues h3 { margin: 0 0 .25rem; }
.chest-clues ul { margin: 0; padding-left: 1.25rem; }

.reef-planner table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: .65rem;
}

.reef-planner th, .reef-planner td {
  padding: .24rem .4rem;
  border-bottom: 1px solid #426678;
  text-align: left;
  vertical-align: top;
}

.reef-planner ul { margin-bottom: .65rem; }
.reef-planner .expedition-actions { margin-left: 0; }

.fog-clues p { margin: .35rem 0; }
.fog-clues .fog-strokes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 2.5rem;
  gap: .45rem;
  padding: 0;
  list-style: none;
}
.fog-strokes li {
  padding: .45rem;
  border: 1px solid #426678;
  border-radius: .45rem;
  background: #0b1925;
  text-align: center;
}
.expedition-actions [data-fog-action="listen"][aria-disabled="true"] { opacity: .65; }

.sluice-basins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sluice-basin {
  position: absolute;
  top: 37%;
  left: 31.8%;
  width: 11%;
  height: 23.8%;
}

.sluice-basin[data-basin="B"] { left: 55.2%; width: 10.5%; }
.sluice-basin[data-basin="C"] { left: 77.3%; width: 10%; }

.sluice-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 42% 42% 3% 3% / 24% 24% 2% 2%;
}

.sluice-water {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: var(--water-level, 0%);
  border-top: 2px solid #c5fff2;
  background: repeating-linear-gradient(174deg, transparent 0 10px, #a7eee624 11px 12px),
    linear-gradient(#7ce5ddb3, #145f6ac7 38%, #062e40e6);
  box-shadow: inset 0 5px 10px #d4fff849;
  transition: height .65s ease, opacity .3s;
}

.sluice-basin.is-dry .sluice-water { opacity: 0; }
.sluice-target {
  position: absolute;
  inset-inline: 0;
  border-top: 2px dashed #ffce6c;
  filter: drop-shadow(0 1px 2px #000);
}
.sluice-basin-caption {
  position: absolute;
  top: 103%;
  left: 50%;
  transform: translateX(-50%);
  padding: .1rem .3rem;
  border: 1px solid #b9955d;
  border-radius: .3rem;
  background: #0a1a25ef;
  color: #fff0c9;
  font-size: clamp(.62rem, 1.2vw, .95rem);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sluice-basin-role { font-size: .85em; }
.sluice-passage-marker {
  position: absolute;
  top: 16%;
  left: 84%;
  transform: translateX(-50%);
  padding: .2rem .5rem;
  border: 1px solid #b9955d;
  border-radius: .4rem;
  background: #0a1a25ed;
  color: #fff0c9;
  font-size: clamp(.65rem, 1.2vw, .95rem);
  text-align: center;
  white-space: nowrap;
}
.sluice-passage-marker small { display: block; }
.sluice-checks {
  position: absolute;
  top: 1.5%;
  left: 28%;
  right: 1.5%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff0c9;
  font-size: clamp(.7rem, 1.2vw, .95rem);
  line-height: 1.4;
}
.sluice-checks li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .35rem .4rem;
  border: 1px solid #a88858;
  border-radius: .4rem;
  background: #0a1a25ed;
}
.sluice-checks .is-complete { border-color: #8bd5bc; }
.sluice-checks .is-complete > span { color: #a1efd2; }
.scene-target.is-jammed {
  opacity: 1;
  border-color: #bc8a79;
  color: #edc6b8;
  background: #3d2d2a;
  cursor: default;
}
.scene-target.is-jammed .target-label { color: #edc6b8; }
.sluice-plan p { margin: .5rem 0; }
.sluice-plan .sluice-levels {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  padding: 0;
  list-style: none;
  color: #ffdc9d;
}
.sluice-plan summary { cursor: pointer; color: #8ce4e0; }
.sluice-help { margin-top: .7rem; padding-top: .6rem; border-top: 1px solid #426678; }
.stone-plan p { margin: .5rem 0; }
.stone-symbols { color: #ffdc9d; }
button.stone-target { font-size: .95rem; }
.stone-target:disabled,
.stone-options [aria-pressed="true"] {
  border-color: #ffdc9d;
  background: #634722;
  color: #fff0cb;
  opacity: 1;
}
.stone-options { display: none; }

@media (max-width: 900px) {
  button.stone-target { display: none; }
  .stone-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }
  .stone-options button { min-width: 0; }
}

@media (max-width: 450px) {
  .stone-options { grid-template-columns: minmax(0, 1fr); }
}
.expedition-actions.is-sluice-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}
.is-sluice-controls button { min-height: 4rem; }
.sluice-valve {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: .35rem;
  min-width: 0;
  margin: 0;
  padding: 0 .4rem .35rem;
  border: 1px solid #48868c;
  border-radius: .45rem;
}
.sluice-valve legend { padding: 0 .25rem; font-size: .85rem; }
.sluice-valve button {
  min-width: 0;
  min-height: 2.75rem;
  padding-inline: .2rem;
  font-size: clamp(.8rem, 1.2vw, 1rem);
  text-align: center;
}
.sluice-valve [aria-pressed="true"] {
  border-color: #ffdc9d;
  background: #634722;
  color: #fff0cb;
}

@media (max-width: 700px) {
  .expedition-actions.is-sluice-controls { grid-template-columns: minmax(0, 1fr); }
  .is-sluice-controls button { min-height: 44px; }
  .sluice-basin-role { display: none; }
  .sluice-checks { top: auto; bottom: 1.5%; left: 1.5%; gap: .2rem; }
  .sluice-checks li { padding: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sluice-water { transition: none; }
}

.expedition-actions:has(.chest-tiles) {
  width: 100%;
  margin-left: 0;
}

.chest-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem;
  width: min(100%, 25rem);
}

.chest-tiles button {
  display: grid;
  grid-template-rows: 1.4em 1fr;
  align-items: center;
  min-width: 0;
  min-height: 3.75rem;
  text-align: center;
  padding-inline: .25rem;
  background: #493319;
  border-color: #b79058;
  color: #fff0cb;
}

.chest-tiles button:hover { background: #634722; }
.chest-tiles strong, .chest-tiles span { display: block; }
.chest-tiles span { font-size: .8rem; line-height: 1.15; overflow-wrap: anywhere; }

.anchorage-map { margin: .65rem 0 0; }
.anchorage-marks {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.4rem;
  padding: .65rem .8rem;
  max-width: 34rem;
  border: 1px solid #8f7351;
  border-radius: .35rem;
  background: #c6d9cc;
  color: #293c35;
}

.anchorage-map figcaption { margin-top: .4rem; }

.expedition-book-wrap:has(.expedition-book[hidden]) { display: none; }

.expedition-book {
  margin: 0 0 .9rem;
  border: 1px solid #bd945b;
  border-radius: .55rem;
  background: #f2dfb3;
  color: #392715;
}

.expedition-book summary {
  padding: .65rem .8rem;
  cursor: pointer;
  font-weight: 750;
}

.expedition-book summary:focus-visible {
  outline-color: #684112;
  outline-offset: -4px;
}

.expedition-book article {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem;
  border-top: 1px solid #bd945b;
}

.expedition-book svg {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  color: #825927;
}

.expedition-book h3 {
  margin: 0 0 .4rem;
  font: 700 1.08rem/1.2 Georgia, serif;
}

.expedition-book article p:last-child { margin-bottom: 0; }

.expedition-book button {
  background: #543818;
  color: #fff5dc;
  border-color: #674622;
}

.expedition-book button:hover { background: #6e4a20; }

.north-cove-entry {
  padding: .75rem;
  border-top: 1px solid #bd945b;
}

.north-cove-entry blockquote {
  max-width: 75ch;
  margin: .65rem 0;
  padding-left: .65rem;
  border-left: 2px solid #825927;
  font-family: Georgia, serif;
}

.north-cove-map { margin: 0; }
.north-cove-map svg { display: block; width: 100%; max-width: 240px; }
.north-cove-map figcaption { margin-top: .4rem; font-size: .9rem; }
.north-cove-entry #north-stairs-note { margin: .75rem 0 0; }

.expedition-hints .mirror-clue,
.expedition-hints .tide-warning:not(:empty) {
  margin-top: .35rem;
  color: #ffdc9d;
}

button {
  min-height: 44px;
  border: 1px solid #48868c;
  border-radius: .45rem;
  padding: .45rem .65rem;
  background: #19394a;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

button:hover { background: #235064; }
:focus-visible { outline: 2px solid #ffdc9d; outline-offset: 3px; }

@media (max-width: 700px) {
  .expedition-stage { grid-template-areas: "status" "art" "hints" "tools"; }
  .expedition-game { display: grid; }
  .expedition-actions { display: grid; margin-left: 0; }
  #actions { grid-area: tools; margin-top: .5rem; }
  .expedition-hints {
    grid-area: hints;
    margin-top: -20px;
    padding: 20px .75rem .65rem;
    background: linear-gradient(transparent, #07121be8 20px, #07121b 58px);
    font-size: .875rem;
  }
  .expedition-next-actions button { font-size: .875rem; }
}

@media (max-width: 420px) {
  .target-label { font-size: .68rem; padding-inline: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-surf, .tower-dial, .tower-beam { transition: none; }
}
