@font-face {
  font-family: Bricolage;
  src: url("./display.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #f5f4e9;
  --muted: #d1dcd4;
  --mint: #d0e7b6;
  --ink: #203b2b;
  --panel: #152d29;
  --line: #ffffff30;
  --panel-text: #f3f1e7;
  --panel-muted: #bfd0c7;
  --realm: #d8eee6;
  font-family: Arial, Helvetica, sans-serif;
  background: #152d29;
  color: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
main:focus-visible {
  outline: 3px solid #e3eda5;
  outline-offset: 5px;
}
button {
  border: 0;
}
button,
select {
  min-height: 44px;
}
p {
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: Bricolage, Arial, sans-serif;
  font-weight: 700;
}
h2 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -1px;
}
h3 {
  font-size: 22px;
}
button span[aria-hidden] {
  padding-left: 14px;
}
button[hidden],
[hidden] {
  display: none !important;
}
/* Shade only the distant scenery; leave the 3D models lit naturally. */
.world-backdrop,
#world,
.world-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.world-backdrop {
  background: url("./coast.webp") center/cover;
  z-index: 0;
}
#world {
  z-index: 1;
  pointer-events: auto;
  touch-action: pan-y;
}
#world canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.world-shade {
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 27, 26, 0.84),
      rgba(8, 27, 26, 0.54) 29%,
      transparent 59%
    ),
    linear-gradient(
      0deg,
      rgba(8, 27, 26, 0.96),
      transparent 36%,
      transparent 84%,
      rgba(8, 27, 26, 0.55)
    );
}
.game-header,
main {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.game-header a,
.game-header button,
main button,
main a,
main input,
main select,
main dialog {
  pointer-events: auto;
}
.game-header {
  padding: 25px 4vw;
  display: flex;
  align-items: center;
  gap: 40px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Bricolage, Arial;
  font-size: 20px;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.wordmark img {
  filter: grayscale(1) brightness(4);
}
.header-back {
  font-size: 12px;
  color: #e7eee4;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 9px;
  align-items: center;
}
.quiet-button {
  background: #14302b85;
  border: 1px solid var(--line);
  border-radius: 28px;
  font-size: 12px;
  padding: 10px 16px;
  white-space: nowrap;
}
.quiet-button:hover {
  background: #27483c;
}
.quiet-button[aria-pressed="true"] {
  background: #d0e7b6;
  color: #203b2b;
}
.header-actions #seal-count {
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}
.header-back:hover,
.text-button:hover {
  color: #e1f5b4;
}
main {
  min-height: calc(100svh - 96px);
  display: flex;
  flex-direction: column;
  padding: 0 4vw;
}
.welcome {
  width: 490px;
  max-width: 44%;
  margin-top: clamp(25px, 5vh, 80px);
  padding-bottom: 28px;
}
.eyebrow {
  letter-spacing: 2.3px;
  font-size: 10px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #dceacb;
}
h1 {
  font-size: clamp(48px, 5.1vw, 80px);
  line-height: 0.99;
  letter-spacing: -3px;
  margin: 0 0 24px;
}
.welcome-copy {
  font-size: 16px;
  line-height: 1.65;
  max-width: 330px;
  color: #e0e5da;
  margin: 0 0 27px;
}
.guide-picker {
  display: flex;
  gap: 12px;
  margin: 0 0 26px;
}
.guide-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #132b2799;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  padding: 7px 12px 7px 7px;
  text-align: left;
  min-width: 145px;
  transition: background 0.2s;
}
.guide-choice img {
  border-radius: 50%;
  object-fit: cover;
}
.guide-choice span {
  font-size: 13px;
  line-height: 1.2;
}
.guide-choice small {
  display: block;
  color: #c5cfc3;
  font-size: 10px;
  margin-top: 4px;
}
.guide-choice[aria-pressed="true"] {
  border-color: #d0e7b6;
  background: #243d31;
}
.primary-button {
  background: var(--mint);
  color: var(--ink);
  border-radius: 28px;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 3px 12px #09170e15;
}
.primary-button:hover {
  background: #e2efc7;
  transform: translateY(-1px);
}
.text-button {
  background: transparent;
  color: inherit;
  padding: 8px 0;
  font-size: 12px;
  text-align: left;
  min-height: 44px;
}
.welcome > .text-button {
  margin-left: 17px;
}
.portal-caption {
  position: absolute;
  top: 67%;
  left: 56%;
  width: 35%;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 12px #092720;
}
.portal-caption span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e5ecd9;
}
.portal-caption strong {
  display: block;
  font-family: Bricolage;
  font-size: 17px;
  margin-top: 8px;
}
.realm-dock {
  margin-top: auto;
  padding-top: 20px;
  padding-bottom: 12px;
}
.dock-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dock-heading > span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #c3d2c5;
}
.dock-heading .text-button {
  min-height: 32px;
}
.realm-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.realm-button {
  background: rgba(14, 36, 31, 0.58);
  border: 1px solid #ffffff25;
  border-radius: 14px;
  padding: 12px 12px 12px 8px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 6px;
  position: relative;
  min-height: 80px;
}
.realm-button:hover,
.realm-button[aria-current="true"] {
  background: #33524399;
  border-color: #cce4b58a;
}
.animal-thumb {
  background-image: url("./animal-thumbs.webp");
  background-repeat: no-repeat;
  background-size: 500% auto;
  width: 57px;
  height: 60px;
  flex: none;
  filter: drop-shadow(0 3px 4px #062c1b77);
}
.realm-name {
  font-family: Bricolage;
  font-size: 17px;
  display: block;
  line-height: 1.2;
}
.realm-meta {
  font-size: 10px;
  display: block;
  color: #cfdbce;
  margin-top: 5px;
}
.realm-seal {
  position: absolute;
  right: 9px;
  top: 8px;
  color: #d3e9b7;
  font-size: 12px;
}
.bottom-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 0 0 12px;
  color: #d1dbd0;
  font-size: 10px;
}
.bottom-note .text-button {
  font-size: 10px;
  min-height: 30px;
}
.bottom-note #render-status {
  max-width: 34%;
  text-align: right;
}
.expedition {
  width: 360px;
  max-width: 36%;
  margin-top: 10px;
  margin-bottom: 28px;
  pointer-events: auto;
}
.expedition > .text-button {
  color: #d9e8d7;
  font-size: 11px;
}
.lesson-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 15px 0;
}
.instructor-portrait {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e7f2d480;
}
.instructor-name {
  font-size: 12px;
}
.instructor-name small {
  font-size: 10px;
  color: #cbdacb;
  display: block;
  margin-top: 4px;
}
.expedition h2 {
  font-size: 37px;
  line-height: 1.04;
  margin: 20px 0 10px;
  letter-spacing: -1.5px;
}
.realm-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--realm);
  margin: 12px 0;
}
.guide-quote {
  font-size: 14px;
  color: #e4e8dc;
  line-height: 1.65;
  margin: 15px 0;
}
.lesson-story {
  font-size: 13px;
  color: #d6e0d5;
  line-height: 1.7;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.facts div {
  padding-left: 10px;
  border-left: 1px solid #ccdabb60;
}
.facts dt {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c8d6c8;
  margin-bottom: 5px;
}
.facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.lesson-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.anatomy-note {
  font-size: 12px;
  color: #e1e6db;
  line-height: 1.6;
  background: #102822b0;
  border: 1px solid #ffffff24;
  padding: 14px;
  border-radius: 12px;
  margin-top: 14px;
}
.anatomy-note strong {
  display: block;
  color: #dbefc4;
  margin-bottom: 6px;
}
.lesson-tabs {
  display: flex;
  border-bottom: 1px solid #ffffff30;
  gap: 18px;
  margin-top: 18px;
}
.lesson-tabs button {
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  padding: 8px 0;
  color: #d3dfce;
}
.lesson-tabs button[aria-selected="true"] {
  border-color: #d4e7b5;
  color: #e8f0d9;
}
.world-tools {
  position: absolute;
  top: 65%;
  left: 55%;
  width: 38%;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.sound-label {
  font-family: Bricolage;
  font-size: 38px;
  color: var(--realm);
  margin: 24px 0 6px;
  word-break: break-word;
}
.breath-orbit {
  position: relative;
  width: 96px;
  height: 96px;
  border: 1px solid #deefcd70;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 15px auto;
}
.breath-orbit:before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid var(--realm);
  border-radius: 50%;
  transform: scale(var(--breath-scale, 0.65));
  transition: transform 1s;
}
.breath-orbit span {
  font-size: 11px;
  background: #152d29aa;
  padding: 5px;
  position: relative;
}
.practice-progress {
  font-size: 11px;
  color: #d7e4d0;
  text-align: center;
}
.practice-help {
  font-size: 11px;
  line-height: 1.6;
  color: #ceddca;
}
.answer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}
.answer-button {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #ffffff45;
  border-radius: 10px;
  background: #1b342bd9;
  font-size: 13px;
  line-height: 1.5;
}
.answer-button:hover {
  border-color: #e5edbc;
}
.answer-button.correct {
  background: #426041;
  border-color: #d4e7b5;
}
.answer-button.incorrect {
  background: #5d3630;
  border-color: #d6aa8c;
}
.answer-feedback {
  font-size: 13px;
  color: #e0edcf;
  line-height: 1.6;
}
.seal-art {
  font-size: 65px;
  line-height: 1;
  color: #e0ebb2;
  margin: 20px 0;
}
.small-note {
  font-size: 11px;
  color: #d0decd;
}
.tide-controls {
  position: absolute;
  left: 44%;
  top: 57%;
  width: 50%;
  pointer-events: auto;
  text-align: center;
  background: #122c28e6;
  border: 1px solid #ffffff38;
  border-radius: 16px;
  padding: 16px;
}
.tide-controls > p {
  font-size: 13px;
  margin: 0 0 12px;
}
.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lane {
  background: #25483b;
  color: #edf4df;
  border: 1px solid #b7d0b37a;
  border-radius: 9px;
  padding: 12px 6px;
  font-size: 12px;
  min-height: 62px;
  line-height: 1.4;
}
.lane[aria-pressed="true"] {
  background: #d4e7b5;
  color: #19392c;
  border-color: #d4e7b5;
}
.lane small {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  opacity: 0.75;
}
.tide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
}
.tide-meta .primary-button {
  font-size: 11px;
  padding: 12px;
}
.tide-controls #tide-feedback {
  font-size: 11px;
  color: #d3e1c8;
  margin: 8px 0 0;
}
.is-playing .realm-dock {
  opacity: 0.5;
}
.is-playing .portal-caption {
  display: none;
}
.is-playing .world-tools {
  display: none !important;
}
dialog {
  color: var(--panel-text);
  background: var(--panel);
  border: 1px solid #78907a;
  border-radius: 20px;
  padding: 28px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  box-shadow: 0 20px 100px #00150db3;
  pointer-events: auto;
}
dialog::backdrop {
  background: #061c1bc9;
  backdrop-filter: blur(7px);
}
dialog p {
  font-size: 13px;
  color: var(--panel-muted);
}
dialog a {
  text-decoration: underline;
  color: var(--panel-text);
}
.dialog-head {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}
.dialog-head h2 {
  margin: 5px 0 14px;
}
.dialog-head .quiet-button {
  align-self: flex-start;
}
.journal-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #ffffff24;
  padding: 15px 0;
  text-align: left;
  background: transparent;
}
.journal-row small {
  display: block;
  margin-top: 5px;
  color: var(--panel-muted);
  font-size: 11px;
}
.journal-row strong {
  font-size: 15px;
}
.journal-row .journal-status {
  margin-left: auto;
  font-size: 11px;
  max-width: 130px;
  text-align: right;
  color: var(--panel-muted);
}
.journal-symbol {
  font-size: 25px;
  color: #cce2b3;
  width: 28px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
}
.setting-row select {
  background: #274438;
  color: #f0f3e5;
  border: 1px solid #a4b09a;
  border-radius: 8px;
  padding: 9px;
}
.setting-row input {
  width: 24px;
  height: 24px;
  accent-color: #bcd5a8;
}
.how-list {
  padding-left: 20px;
}
.how-list li {
  padding: 10px 0;
  color: var(--panel-muted);
  font-size: 14px;
  line-height: 1.6;
}
.how-list strong {
  display: block;
  color: var(--panel-text);
}
.notice {
  position: fixed;
  z-index: 4;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 15px 22px;
  border: 1px solid #c4dca6;
  background: #213d31;
  color: #f0f1d8;
  border-radius: 12px;
  box-shadow: 0 6px 28px #001e14;
  font-size: 13px;
}
.skip-link {
  position: fixed;
  z-index: 5;
  left: 12px;
  top: -90px;
  background: #d0e7b6;
  color: #182e26;
  padding: 14px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.no-script {
  position: fixed;
  top: 100px;
  left: 30px;
  background: #162f29;
  color: #f7f4e9;
  padding: 25px;
  z-index: 4;
}
.no-script a {
  text-decoration: underline;
}
.scene-failed .portal-caption {
  display: none;
}
.scene-failed .world-tools {
  display: none !important;
}
.scene-failed .world-shade {
  background: linear-gradient(90deg, #102b27e8, #102b2770);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --panel: #eef0e4;
    --panel-text: #203b2b;
    --panel-muted: #425b48;
  }
  :root:not([data-theme="dark"]) dialog .quiet-button {
    background: #dce4d0;
    color: #203b2b;
    border-color: #94a989;
  }
  :root:not([data-theme="dark"]) .journal-row {
    color: #203b2b;
    border-color: #5d715e40;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --panel: #eef0e4;
  --panel-text: #203b2b;
  --panel-muted: #425b48;
}
:root[data-theme="light"] dialog .quiet-button {
  background: #dce4d0;
  color: #203b2b;
  border-color: #94a989;
}
:root[data-theme="light"] .journal-row {
  color: #203b2b;
  border-color: #5d715e40;
}
@media (min-width: 1600px) {
  .welcome {
    margin-top: 9vh;
  }
  .realm-dock {
    padding-bottom: 20px;
  }
  .realm-button {
    padding: 18px;
  }
  .portal-caption {
    top: 55%;
  }
}
@media (max-width: 1050px) {
  .header-back {
    display: none;
  }
  .game-header {
    padding: 20px 3vw;
  }
  .header-actions {
    gap: 6px;
  }
  .quiet-button {
    padding: 10px 12px;
  }
  main {
    padding: 0 3vw;
  }
  .welcome {
    max-width: 47%;
    width: 390px;
  }
  h1 {
    font-size: 62px;
  }
  .guide-picker {
    gap: 6px;
  }
  .guide-choice {
    min-width: 132px;
    padding-right: 8px;
  }
  .guide-choice small {
    font-size: 9px;
  }
  .realm-name {
    font-size: 15px;
  }
  .animal-thumb {
    width: 42px;
    height: 53px;
  }
  .realm-button {
    padding-left: 5px;
  }
  .realm-meta {
    font-size: 9px;
  }
  .expedition {
    max-width: 39%;
  }
  .expedition h2 {
    font-size: 31px;
  }
  .portal-caption {
    left: 55%;
    width: 39%;
    top: 55%;
  }
}
@media (max-width: 700px) {
  .game-header {
    padding: 15px 20px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 18px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .quiet-button {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 36px;
  }
  .header-actions #settings-open {
    font-size: 0;
    padding: 8px 11px;
  }
  .header-actions #settings-open:after {
    content: "⋯";
    font-size: 19px;
    line-height: 1;
  }
  .header-actions #seal-count {
    margin-left: 3px;
  }
  .header-actions #journal-open {
    font-size: 0;
  }
  .header-actions #seal-count {
    font-size: 10px;
  }
  main {
    min-height: calc(100svh - 70px);
    padding: 0 20px;
  }
  .welcome {
    max-width: 100%;
    width: 100%;
    margin-top: 16px;
    padding-bottom: 0;
  }
  h1 {
    font-size: 57px;
    letter-spacing: -3px;
    line-height: 0.97;
    margin-bottom: 16px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
    margin-bottom: 18px;
  }
  .welcome-copy {
    font-size: 13px;
    max-width: 250px;
    margin-bottom: 20px;
  }
  .guide-picker {
    gap: 8px;
    margin-bottom: 18px;
  }
  .guide-choice {
    min-width: 140px;
  }
  .guide-choice img {
    width: 36px;
    height: 36px;
  }
  .welcome > .text-button {
    margin-left: 12px;
    font-size: 11px;
  }
  .welcome > .primary-button {
    font-size: 12px;
  }
  .world-shade {
    background:
      linear-gradient(90deg, #09231ddf, #09231d20 100%),
      linear-gradient(0deg, #09231df5, transparent 46%, #09231d50);
  }
  .portal-caption {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 150px;
    padding-top: 110px;
    text-align: right;
    margin-bottom: 12px;
  }
  .portal-caption span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .portal-caption strong {
    font-size: 12px;
    margin-top: 4px;
  }
  .realm-dock {
    padding-top: 12px;
  }
  .dock-heading > span {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .dock-heading .text-button {
    font-size: 10px;
  }
  .realm-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .realm-button {
    padding: 6px 2px 9px;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    border-radius: 10px;
  }
  .animal-thumb {
    width: 46px;
    height: 47px;
  }
  .realm-name {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
  }
  .realm-meta {
    font-size: 8px;
    line-height: 1.4;
    min-height: 24px;
    margin-top: 3px;
  }
  .realm-seal {
    right: 4px;
    top: 4px;
    font-size: 10px;
  }
  .bottom-note {
    font-size: 8px;
    gap: 10px;
    padding-top: 5px;
    flex-wrap: wrap;
  }
  .bottom-note .text-button {
    font-size: 9px;
  }
  .bottom-note #render-status {
    max-width: 100%;
    font-size: 8px;
    flex-basis: 100%;
    text-align: left;
    min-height: 12px;
  }
  .expedition {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }
  .expedition h2 {
    font-size: 34px;
    margin-top: 12px;
  }
  .lesson-heading {
    margin: 8px 0;
  }
  .guide-quote {
    font-size: 13px;
    max-width: 96%;
  }
  .lesson-story {
    font-size: 12px;
  }
  .facts {
    margin: 15px 0;
  }
  .expedition .lesson-actions {
    margin-top: 12px;
  }
  .is-exploring .portal-caption {
    height: 190px;
    padding-top: 150px;
  }
  .is-exploring .world-shade {
    background: linear-gradient(
      180deg,
      #09231dea 30%,
      #09231d45 68%,
      #09231df5
    );
  }
  .world-tools {
    position: relative;
    left: auto;
    top: auto;
    justify-content: flex-end;
    width: 100%;
    margin: 0 0 18px;
  }
  .world-tools .quiet-button {
    font-size: 10px;
  }
  .tide-controls {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 14px;
    margin: 170px 0 10px;
  }
  .is-playing .expedition {
    margin-bottom: 0;
  }
  .is-playing .guide-quote {
    display: none;
  }
  .is-playing .realm-dock {
    display: none;
  }
  .lane {
    font-size: 11px;
  }
  .lesson-tabs {
    margin-top: 15px;
  }
  .sound-label {
    font-size: 31px;
    margin: 18px 0 10px;
  }
  .breath-orbit {
    margin: 15px 0;
  }
  .practice-progress {
    text-align: left;
  }
  .anatomy-note {
    font-size: 11px;
  }
  .dialog-head h2 {
    font-size: 26px;
  }
  dialog {
    padding: 22px;
  }
  .journal-row .journal-status {
    max-width: 100px;
    font-size: 10px;
  }
  .journal-row strong {
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .game-header {
    padding: 14px 15px;
  }
  .wordmark {
    font-size: 16px;
  }
  .header-actions .quiet-button {
    padding: 8px;
  }
  .guide-choice {
    min-width: 128px;
  }
  .guide-choice small {
    font-size: 8px;
  }
  main {
    padding: 0 15px;
  }
  h1 {
    font-size: 52px;
  }
  .welcome > .text-button {
    margin-left: 8px;
  }
  .primary-button {
    padding: 14px 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .welcome {
    animation: arrive 0.7s both;
  }
  .realm-dock {
    animation: arrive 0.9s both;
  }
  .expedition {
    animation: arrive 0.35s both;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:root[data-gentle="true"] * {
  animation: none !important;
  transition: none !important;
}

.is-exploring .portal-caption {
  visibility: hidden;
}
.is-playing .realm-dock {
  visibility: hidden;
  pointer-events: none;
}
.is-playing .realm-dock button {
  pointer-events: none;
}

@media (max-width: 700px) {
  .portal-caption {
    height: 180px;
    padding: 0;
  }
  .portal-caption span,
  .portal-caption strong {
    display: none;
  }
}

.on-shore #world {
  visibility: hidden;
}
.on-shore .world-backdrop {
  background-image: url("./intro.webp");
}
.on-shore .portal-caption {
  visibility: hidden;
}
@media (max-width: 700px) {
  .on-shore .world-backdrop {
    background-image: url("./coast-mobile.webp");
  }
  .on-shore .portal-caption {
    visibility: visible;
    background: url("./intro-mobile.webp") 85% 58% / 170% auto no-repeat;
    border-radius: 14px;
    margin-top: 18px;
  }
}

main {
  overflow-anchor: none;
}
.is-playing .realm-dock {
  display: none;
}
.is-playing .guide-quote {
  display: none;
}
.is-playing .bottom-note {
  margin-top: auto;
}
@media (min-width: 701px) {
  .tide-controls {
    top: auto;
    bottom: 50px;
  }
}

.mobile-scene-slot {
  display: none;
}
@media (max-width: 700px) {
  .mobile-scene-slot {
    display: block;
    height: 300px;
    margin: 10px 0;
    pointer-events: none;
  }
  .is-exploring .portal-caption {
    display: none;
  }
}

.scene-failed .mobile-scene-slot {
  display: none;
}
