:root {
  color-scheme: dark;
  --ivory: #f2eddb;
  --muted: #a4b6b4;
  --gold: #d8bc81;
  --teal: #8dd9cd;
  --border: rgba(170, 205, 193, 0.18);
  --text-scale: 1;
  --brightness: 1;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #071c22;
}
body {
  font-family: "DM Sans", sans-serif;
  color: var(--ivory);
  font-size: calc(14px * var(--text-scale));
  overflow-x: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #0a242c;
  z-index: 0;
  filter: brightness(var(--brightness));
}
.forest {
  position: absolute;
  inset: -2%;
  background: url("assets/forest.webp") center center/cover no-repeat;
  transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0)
    scale(1.015);
  transition: transform 1.5s ease-out;
}
.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 14, 20, 0.79),
      rgba(3, 15, 20, 0.38) 32%,
      transparent 65%
    ),
    linear-gradient(
      0deg,
      rgba(3, 15, 19, 0.85),
      transparent 24%,
      transparent 83%,
      rgba(3, 15, 19, 0.55)
    );
}
.light {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 74% 44%,
    rgba(137, 245, 220, 0.09),
    transparent 42%
  );
  animation: breathe 8s ease-in-out infinite alternate;
}
.mist {
  position: absolute;
  inset: 30% -30% -15%;
  background: radial-gradient(
    ellipse at 60% 65%,
    rgba(149, 221, 207, 0.15),
    transparent 57%
  );
  filter: blur(30px);
  animation: drift 26s ease-in-out infinite alternate;
}
.mist-two {
  inset: 45% -15% -20%;
  animation-duration: 38s;
  animation-direction: alternate-reverse;
  opacity: 0.5;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.topbar {
  position: relative;
  z-index: 1;
  height: 94px;
  padding: 0 4.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.studio {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #d0dcd4;
}
.sigil {
  font-size: 32px;
  line-height: 1;
  color: var(--gold);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.build-tag {
  font-size: 9px;
  letter-spacing: 2px;
  color: #b1c6bf;
}
.build-tag span {
  padding-left: 10px;
  color: var(--gold);
}
.icon-button {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 17px;
  position: relative;
}
.icon-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.sound-slash {
  position: absolute;
  width: 21px;
  height: 1px;
  transform: rotate(-45deg);
  background: var(--ivory);
  top: 16px;
  left: 6px;
}
.sound-on .sound-slash {
  display: none;
}
.home {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4.2vh, 58px) 0 110px;
  margin-left: 9.1%;
  width: 420px;
  min-height: calc(100svh - 94px);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3.2px;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 14px;
}
.title-block h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(72px, 7.9vw, 124px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -5px;
  margin: 14px 0 15px;
  color: #fff6df;
  text-shadow: 0 2px 30px rgba(210, 226, 175, 0.13);
}
.title-rule {
  width: 310px;
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 22px 0;
  color: var(--gold);
  font-size: 12px;
}
.title-rule:before,
.title-rule:after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #8b9e8c);
}
.title-rule:after {
  transform: rotate(180deg);
}
.tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  color: #becdc5;
  margin: 0 0 28px;
  font-weight: 400;
}
.main-menu {
  width: 302px;
  display: grid;
  gap: 2px;
}
.menu-item {
  text-align: left;
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 0;
  background: transparent;
  border-radius: 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.2px;
  color: #bdcdc4;
  transition:
    color 0.2s,
    transform 0.2s,
    background 0.2s;
}
.menu-marker {
  font-size: 22px;
  width: 33px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
}
.menu-arrow {
  margin-left: auto;
  opacity: 0;
  color: var(--gold);
  font-family: serif;
}
.menu-item.primary {
  color: #fff6df;
}
.menu-item.primary .menu-marker {
  opacity: 1;
}
.menu-item:hover,
.menu-item:focus-visible {
  color: #fff6df;
  transform: translateX(7px);
  background: linear-gradient(90deg, rgba(150, 207, 182, 0.08), transparent);
}
.menu-item:hover .menu-marker,
.menu-item:hover .menu-arrow,
.menu-item:focus-visible .menu-marker,
.menu-item:focus-visible .menu-arrow {
  opacity: 1;
}
.scene-caption {
  position: fixed;
  right: 6%;
  bottom: 115px;
  display: flex;
  gap: 15px;
  align-items: center;
  color: #d6e4d8;
  z-index: 1;
}
.tiny-star {
  color: var(--gold);
  font-size: 22px;
}
.scene-caption p {
  font-size: 9px;
  letter-spacing: 3px;
  margin: 0 0 8px;
}
.scene-caption div > span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #b6c8bf;
}
.footer {
  position: fixed;
  left: 4.2%;
  right: 4.2%;
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 1;
  font-size: 10px;
  color: #8fa8a2;
}
.footer-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hint-gap {
  margin-left: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 22px;
  border: 1px solid rgba(170, 205, 193, 0.25);
  border-radius: 3px;
  padding: 0 4px;
  font-family: inherit;
  font-size: 10px;
  color: #bfd0c7;
}
.footer button {
  font-size: 10px;
  background: transparent;
  color: #b5c8c0;
  margin-left: auto;
}
.footer button:hover {
  color: var(--gold);
}
.version {
  font-size: 9px;
  letter-spacing: 0.4px;
}
dialog {
  width: min(850px, calc(100% - 36px));
  max-height: calc(100svh - 52px);
  padding: 0;
  border: 1px solid rgba(167, 202, 184, 0.3);
  border-radius: 10px;
  color: var(--ivory);
  background: rgba(8, 27, 33, 0.97);
  box-shadow:
    0 30px 120px #0009,
    0 0 90px #74bda109;
  overflow: auto;
  scrollbar-color: #48665f #0b252c;
}
dialog[open] {
  animation: arrive 0.25s ease-out;
}
dialog::backdrop {
  background: rgba(1, 9, 15, 0.63);
  backdrop-filter: blur(9px);
}
.modal-shell {
  padding: 35px 40px 28px;
  background: radial-gradient(
    ellipse at top right,
    rgba(80, 139, 124, 0.1),
    transparent 60%
  );
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.modal-head .eyebrow {
  font-size: 9px;
  letter-spacing: 2.4px;
  margin-bottom: 8px;
}
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}
h2 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0;
}
h3 {
  font-size: 26px;
  margin: 0 0 12px;
}
.close-button {
  background: transparent;
  color: #a8c1b6;
  font-size: 28px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.close-button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
p {
  line-height: 1.7;
}
.intro {
  color: var(--muted);
  font-size: 0.94em;
  line-height: 1.7;
  margin: 0 0 24px;
}
.tabs {
  display: flex;
  gap: 25px;
  overflow: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  background: transparent;
  padding: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab[aria-selected="true"] {
  border-color: var(--gold);
  color: var(--gold);
}
.panel {
  min-height: 220px;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.setting:first-child {
  padding-top: 0;
}
.setting-label {
  font-size: 0.94em;
  line-height: 1.4;
}
.setting-label small {
  display: block;
  font-size: 0.82em;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 5px;
  max-width: 360px;
}
.range-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 205px;
}
input[type="range"] {
  width: 160px;
  accent-color: var(--gold);
  cursor: pointer;
  height: 22px;
}
output {
  font-size: 12px;
  min-width: 38px;
  text-align: right;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.switch {
  appearance: none;
  width: 40px;
  height: 23px;
  border-radius: 20px;
  border: 1px solid #607a75;
  background: #142d33;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.switch:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  background: #a3b7b1;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transition: transform 0.15s;
}
.switch:checked {
  background: #c6b27d;
  border-color: #c6b27d;
}
.switch:checked:after {
  transform: translateX(17px);
  background: #162c2c;
}
select,
input[type="text"] {
  border: 1px solid #48645f;
  background: #102d33;
  color: var(--ivory);
  border-radius: 4px;
  padding: 10px 12px;
  max-width: 100%;
}
select {
  min-width: 158px;
  font-size: 0.9em;
}
.modal-footer {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.subtle {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.button-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.btn {
  padding: 11px 21px;
  border: 1px solid #56726a;
  border-radius: 4px;
  background: transparent;
  font-size: 12px;
  min-height: 42px;
  color: #d8e1d7;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.btn:hover {
  border-color: var(--gold);
  background: #d8bc8110;
}
.btn-gold {
  background: #d9c18d;
  color: #12282a;
  border-color: #d9c18d;
}
.btn-gold:hover {
  background: #ebd4a0;
  color: #12282a;
}
.btn-danger {
  color: #efb7a0;
  border-color: #815b51;
}
.text-button {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 0;
}
.text-button:hover {
  color: var(--gold);
}
.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 24px;
}
.choice {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 19px 16px;
  background: #112f343d;
  text-align: left;
}
.choice[aria-pressed="true"] {
  background: #a7ceaf0a;
  border-color: var(--gold);
}
.choice[aria-pressed="true"]:after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--gold);
}
.choice .choice-icon {
  font-size: 25px;
  color: var(--gold);
  display: block;
  margin-bottom: 15px;
}
.choice strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  display: block;
}
.choice small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  display: block;
  margin-top: 6px;
}
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #bdcfc4;
  margin-bottom: 9px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  margin-bottom: 24px;
}
.form-row input,
.form-row select {
  width: 100%;
}
.inline-note {
  padding: 14px 17px;
  background: #93c1a908;
  border-left: 2px solid #6c9982;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.save-list {
  display: grid;
  gap: 12px;
}
.save-card {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(110deg, #284c4130, transparent);
}
.save-emblem {
  height: 59px;
  width: 59px;
  flex-shrink: 0;
  border: 1px solid #6284774d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 30px;
}
.save-info {
  flex: 1;
  min-width: 0;
}
.save-info h3 {
  font-size: 23px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.save-info p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.slot-number {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8aa89b;
  margin-bottom: 7px;
}
.save-actions {
  display: grid;
  gap: 5px;
  justify-items: end;
}
.empty-slot {
  border-style: dashed;
  opacity: 0.8;
}
.key-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
}
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.key-button {
  border: 1px solid #526f65;
  border-radius: 4px;
  min-width: 74px;
  padding: 7px;
  background: #103138;
  color: var(--gold);
  font-size: 11px;
}
.key-button.waiting {
  border-color: var(--gold);
  animation: breathe 0.7s infinite alternate;
}
.section-label {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 22px 0 14px;
}
.world-hero {
  height: 185px;
  background:
    linear-gradient(0deg, #0a2027, transparent),
    url("assets/forest.webp") 70% 48% / cover;
  border-radius: 5px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.world-hero h3 {
  font-size: 32px;
  margin: 0;
}
.world-hero p {
  margin: 6px 0 0;
  font-size: 11px;
  color: #c5d3c7;
}
.world-copy {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.55;
  color: #d2ddd2;
}
.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin: 22px 0;
}
.lore-card {
  padding: 17px 0;
  border-top: 1px solid var(--border);
}
.lore-card h3 {
  font-size: 21px;
  margin-bottom: 7px;
}
.lore-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.achievement {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.achievement > span {
  font-size: 24px;
  color: #759b8d;
  width: 40px;
}
.achievement strong {
  font-size: 13px;
  font-weight: 500;
}
.achievement p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.achievement .locked {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1px;
  color: #749589;
}
.credits-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 67px;
  text-align: center;
  margin: 15px 0 4px;
  color: #eddfb9;
}
.credits-sub {
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 30px;
}
.credit-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  font-size: 12px;
}
.credit-row span {
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: #14332e;
  border: 1px solid #6a9580;
  padding: 13px 23px;
  border-radius: 5px;
  font-size: 12px;
  box-shadow: 0 10px 40px #0005;
  z-index: 10;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90%;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.journey-heading {
  text-align: center;
  margin: 16px 0 24px;
}
.journey-heading .large-emblem {
  font-size: 49px;
  color: var(--gold);
}
.journey-heading h3 {
  font-size: 32px;
  margin: 15px 0 5px;
}
.journey-heading p {
  color: var(--muted);
  font-size: 12px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}
.stat {
  text-align: center;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.stat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
}
.stat span {
  font-size: 10px;
  color: var(--muted);
}
.preview-box {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 18px;
  margin-top: 22px;
}
.preview-box h3 {
  font-size: 23px;
}
.preview-box p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.color-preview {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.color-preview span {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-preview b {
  font-weight: 400;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #09262a;
}
.color-preview b:first-child {
  background: #a6d4a1;
}
.color-preview span:last-child b {
  background: #ddb088;
}
.color-accessible .color-preview span:first-child b {
  background: #89c5ef;
}
.color-accessible .color-preview span:last-child b {
  background: #f8d578;
}
.contrast {
  --muted: #d1dfd9;
  --border: rgba(210, 234, 220, 0.4);
}
.contrast .shade {
  background: linear-gradient(90deg, #031018eb, #03101877 46%, transparent);
}
.contrast .menu-item {
  color: #e2eee2;
}
.contrast dialog {
  background: #061b20;
}
.motion-off *,
.motion-off *:before,
.motion-off *:after {
  animation: none !important;
  transition: none !important;
}
.motion-off .forest {
  transform: none;
}
.motion-off .mist {
  display: none;
}
.effects-low .mist {
  display: none;
}
.effects-low .light {
  animation: none;
}
.hide-ui .topbar,
.hide-ui .home,
.hide-ui .scene-caption,
.hide-ui .footer {
  visibility: hidden;
}
.photo-return {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@keyframes breathe {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@keyframes drift {
  from {
    transform: translateX(-7%);
  }
  to {
    transform: translateX(7%);
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  .home {
    padding-top: 7vh;
  }
  .main-menu {
    gap: 6px;
  }
  .tagline {
    margin-bottom: 35px;
  }
  .menu-item {
    font-size: 27px;
  }
  .title-block h1 {
    font-size: 130px;
  }
}
@media (max-height: 760px) and (min-width: 701px) {
  .topbar {
    height: 74px;
  }
  .home {
    padding-top: 5px;
    min-height: calc(100svh - 74px);
  }
  .title-block h1 {
    font-size: 85px;
  }
  .title-rule {
    margin: 16px 0;
  }
  .tagline {
    font-size: 19px;
    margin-bottom: 17px;
  }
  .menu-item {
    font-size: 22px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .scene-caption {
    bottom: 90px;
  }
  .footer {
    bottom: 20px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 76px;
    padding: 0 6%;
  }
  .studio {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .top-actions {
    gap: 10px;
  }
  .build-tag {
    display: none;
  }
  .home {
    margin-left: 9%;
    width: 82%;
    padding-top: 7vh;
    min-height: calc(100svh - 76px);
    padding-bottom: 110px;
  }
  .title-block h1 {
    font-size: 83px;
    letter-spacing: -4px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .title-rule {
    width: 280px;
  }
  .tagline {
    font-size: 21px;
  }
  .main-menu {
    width: 280px;
  }
  .menu-item {
    font-size: 24px;
    padding: 9px 10px 9px 0;
  }
  .forest {
    background-position: 62% center;
  }
  .shade {
    background:
      linear-gradient(90deg, #04151beb, #04151b70 65%, #04151b26),
      linear-gradient(0deg, #04151b, transparent 50%);
  }
  .scene-caption {
    display: none;
  }
  .footer {
    left: 7%;
    right: 7%;
    bottom: 22px;
  }
  .footer-hint {
    display: none;
  }
  .footer button {
    margin-left: 0;
  }
  .version {
    margin-left: auto;
    font-size: 8px;
  }
  dialog {
    width: calc(100% - 22px);
    max-height: calc(100svh - 24px);
  }
  .modal-shell {
    padding: 25px 22px;
  }
  .modal-head {
    margin-bottom: 22px;
  }
  h2 {
    font-size: 34px;
  }
  .tabs {
    gap: 20px;
  }
  .tab {
    font-size: 11px;
  }
  .setting {
    gap: 16px;
    flex-wrap: wrap;
  }
  .setting-label {
    flex: 1;
    min-width: 140px;
  }
  .range-wrap {
    min-width: 150px;
    gap: 8px;
  }
  input[type="range"] {
    width: 115px;
  }
  .difficulty-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .choice {
    padding: 12px 16px 12px 57px;
    min-height: 80px;
  }
  .choice .choice-icon {
    position: absolute;
    top: 24px;
    left: 18px;
  }
  .choice strong {
    font-size: 22px;
  }
  .choice small {
    margin: 2px 0 0;
    font-size: 11px;
    padding-right: 10px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-footer {
    flex-wrap: wrap;
  }
  .modal-footer .button-row {
    margin-left: auto;
  }
  .key-list {
    grid-template-columns: 1fr;
  }
  .save-card {
    padding: 15px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .save-emblem {
    width: 40px;
    height: 40px;
    font-size: 23px;
  }
  .save-actions {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
  }
  .lore-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .credit-row {
    font-size: 11px;
  }
  .credits-logo {
    font-size: 55px;
  }
  .stat-grid {
    gap: 8px;
  }
  .stat {
    padding: 12px 6px;
  }
  .stat span {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .forest,
  .mist,
  .light,
  dialog[open] {
    animation: none;
    transition: none;
  }
  .mist {
    display: none;
  }
}
@media (max-width: 700px) {
  .title-block h1 {
    font-size: clamp(60px, 21vw, 83px);
  }
  .title-rule,
  .main-menu {
    width: min(280px, 100%);
  }
}
