.front-end {
  position:fixed;
  inset:0;
  z-index:10;
  pointer-events:auto;
  background:#142c40;
  color:#f4eedb;
  isolation:isolate
}
.front-end.hidden {
  display:none
}
.front-end [hidden] {
  display:none!important
}
#menu-scene {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:-2
}
.front-shade {
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#10293deb 0%,#10293d9c 34%,#10293d00 70%),linear-gradient(0deg,#10293d55,transparent 24%);
  pointer-events:none
}
.front-brand {
  position:absolute;
  top:max(30px,env(safe-area-inset-top));
  left:7.5vw;
  display:flex;
  align-items:center;
  gap:12px;
  color:#d5e4df;
  font-size:10px;
  letter-spacing:.22em;
  text-transform:uppercase
}
.mountain-mark {
  width:33px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round
}
.front-footer {
  position:absolute;
  bottom:max(25px,env(safe-area-inset-bottom));
  left:7.5vw;
  right:6vw;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  color:#b3c8c9;
  font-size:11px;
  letter-spacing:.04em
}
.front-footer kbd {
  border:1px solid #acc8c64d;
  border-radius:4px;
  padding:3px 6px;
  color:#ece7d6;
  font:10px inherit
}
.front-footer .footer-note {
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.18em
}
.front-splash {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:28px 20px;
  background:linear-gradient(90deg,#142c4077,#142c4022)
}
.splash-mark {
  width:65px;
  height:55px;
  color:#e9c995;
  margin-bottom:30px
}
.game-title {
  margin:0;
  color:#f8f0db;
  font-family:Georgia,'Times New Roman',serif;
  font-style:italic;
  font-weight:400;
  line-height:.89;
  letter-spacing:-.065em;
  text-shadow:0 3px 30px #10233540
}
.game-title span {
  display:block;
  font-family:ui-sans-serif,system-ui,sans-serif;
  font-size:.23em;
  font-style:normal;
  font-weight:500;
  letter-spacing:.51em;
  line-height:2.6;
  padding-left:.5em
}
.front-splash .game-title {
  font-size:clamp(54px,8.5vw,126px)
}
.splash-caption {
  margin:24px 0 0;
  font-size:11px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#c9d8d1
}
.splash-progress {
  width:208px;
  margin-top:45px
}
.loading-label {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#bdcfc9;
  letter-spacing:.05em;
  margin-bottom:10px
}
.loading-track {
  height:2px;
  background:#ffffff24;
  overflow:hidden
}
.loading-fill {
  height:100%;
  width:0;
  background:#f0c991;
  transition:width .2s ease
}
.splash-enter {
  margin-top:24px;
  border:0;
  background:none;
  color:#f3e2bd;
  min-height:44px;
  padding:12px 15px;
  font:600 11px ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.18em;
  text-transform:uppercase;
  cursor:default
}
.front-menu {
  position:absolute;
  left:7.5vw;
  top:50%;
  transform:translateY(-49%);
  width:min(430px,43vw)
}
.front-menu .game-title {
  font-size:clamp(58px,6.5vw,98px)
}
.menu-tagline {
  color:#b7cdc9;
  font-size:13px;
  line-height:1.8;
  margin:22px 0 28px
}
.menu-eyebrow {
  font-size:10px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#dbbd8a;
  margin:0 0 14px
}
.game-menu {
  display:flex;
  flex-direction:column;
  gap:4px
}
.game-menu button,.front-back {
  font-family:inherit;
  cursor:pointer
}
.menu-choice {
  display:flex;
  align-items:center;
  gap:16px;
  position:relative;
  width:100%;
  text-align:left;
  border:0;
  border-bottom:1px solid #c4d7cd26;
  border-radius:0;
  color:#d9e5da;
  background:transparent;
  padding:14px 0;
  min-height:52px;
  transition:transform .2s,color .2s,border-color .2s;
  font-size:15px;
  font-weight:400;
}
.menu-choice .menu-number {
  font-size:9px;
  color:#aac6bf99;
  font-weight:400;
  letter-spacing:.12em
}
.menu-choice .menu-arrow {
  margin-left:auto;
  font-size:18px;
  font-weight:400;
  opacity:.65
}
.menu-choice.primary {
  color:#f3d9a9;
  background:transparent;
  border-color:#e4c68b66;
  box-shadow:none;
  font-weight:500;
}
.menu-choice.primary .menu-number {
  color:#d7bc8b99;
}
.menu-choice:hover,.menu-choice:focus-visible {
  transform:translateX(4px);
  color:#fff0cb;
  background:transparent;
  border-bottom-color:#ebd4a999;
}
.menu-choice.primary:hover,.menu-choice.primary:focus-visible {
  background:transparent;
  color:#fff0cb;
  border-color:#f3d6a1;
}
.front-end button:focus-visible,.panel button:focus-visible {
  outline:2px solid #f2d39d;
  outline-offset:5px
}
.menu-records {
  display:flex;
  gap:30px;
  margin:26px 0 0;
  padding-top:4px;
  border-top:0
}
.menu-records div {
  display:flex;
  flex-direction:column;
  gap:6px
}
.menu-records dt {
  font-size:9px;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:#a9c3bf
}
.menu-records dd {
  font-family:Georgia,serif;
  font-size:21px;
  letter-spacing:.01em;
  margin:0;
  color:#e7e5cf
}
.menu-records dd small {
  font:10px ui-sans-serif,system-ui,sans-serif;
  color:#b6cdc5
}
.pause-heading {
  font:italic 400 clamp(36px,4.5vw,62px)/1.1 Georgia,serif;
  letter-spacing:-.045em;
  margin:0 0 16px
}
.front-help {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:25px;
  background:#10263880;
  backdrop-filter:blur(8px)
}
.help-paper {
  width:min(670px,100%);
  max-height:85dvh;
  overflow:auto;
  touch-action:pan-y;
  padding:30px;
  background:#19384df5;
  border:1px solid #c6d5c32e;
  border-radius:16px;
  box-shadow:0 20px 80px #081b2f55
}
.help-paper h2 {
  font:italic 400 36px Georgia,serif;
  letter-spacing:-.04em;
  margin:7px 0 12px
}
.help-intro {
  color:#adc6c2;
  font-size:13px;
  line-height:1.6;
  margin:0 0 25px
}
.help-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px 25px;
  margin-bottom:28px
}
.help-grid article {
  border-top:1px solid #a6c3ba35;
  padding-top:15px
}
.help-grid b {
  display:block;
  font-size:13px;
  font-weight:600;
  color:#edd2a5;
  margin-bottom:7px
}
.help-grid p {
  font-size:12px;
  line-height:1.75;
  color:#c1d2ca;
  margin:0
}
.front-back {
  border:1px solid #d7c59d70;
  border-radius:7px;
  padding:11px 20px;
  background:none;
  color:#edd7af;
  font-size:12px
}
.pause-button {
  position:absolute;
  left:20px;
  top:max(106px,calc(env(safe-area-inset-top) + 88px));
  pointer-events:auto;
  width:44px;
  height:44px;
  background:#152d4b90;
  color:#fff;
  border:1px solid #ffffff65;
  border-radius:50%;
  font-size:16px;
  cursor:pointer
}
.hud {
  z-index:30
}
body:not([data-screen="playing"]) .game-only {
  visibility:hidden;
  pointer-events:none
}
#over {
  background:#102b3db8
}
#over .panel {
  background:#1b394de8;
  border:1px solid #c7d6c044;
  border-radius:14px;
  box-shadow:0 20px 80px #10233566
}
#over .panel h1 {
  font:italic 400 38px/1.1 Georgia,serif;
  letter-spacing:-.045em;
  margin:18px 0
}
#over .panel .chip {
  border:0;
  background:none;
  color:#d6bc8e;
  letter-spacing:.18em
}
#over .panel button {
  border-radius:7px;
  font-size:13px;
  width:100%;
  min-width:0
}
#over .panel .back-home {
  background:none;
  border:1px solid #a6c1b64d;
  color:#ceded1;
  margin-top:9px;
  padding:11px 18px;
  font-weight:500
}
#over .panel p {
  color:#c4d7cd
}
body[data-screen="splash"] .front-footer .footer-controls {
  visibility:hidden
}
@media(max-width:650px) {
  .front-brand {
    left:24px;
    top:max(24px,env(safe-area-inset-top));
    font-size:8px;
    gap:9px
  }
  .mountain-mark {
    width:26px;
    height:24px
  }
  .front-shade {
    background:linear-gradient(180deg,#102b3dda 0%,#102b3db8 43%,#102b3d22 79%,#102b3d44)
  }
  .front-menu {
    top:13%;
    left:24px;
    right:24px;
    width:auto;
    transform:none
  }
  .front-menu .game-title {
    font-size:clamp(47px,12.8vw,75px)
  }
  .menu-tagline {
    margin:17px 0 24px;
    font-size:12px
  }
  .menu-choice {
    min-height:49px;
    padding:13px 0;
    font-size:14px
  }
  .menu-records {
    margin-top:23px;
    padding-top:15px;
    gap:35px
  }
  .menu-records dd {
    font-size:19px
  }
  .front-footer {
    left:24px;
    right:24px;
    bottom:max(22px,env(safe-area-inset-bottom));
    font-size:9px;
    line-height:1.8
  }
  .front-footer .footer-note {
    display:none
  }
  .front-splash .game-title {
    font-size:clamp(45px,12.6vw,80px)
  }
  .splash-caption {
    font-size:9px;
    letter-spacing:.19em
  }
  .splash-mark {
    margin-bottom:24px;
    width:51px;
    height:43px
  }
  .splash-progress {
    margin-top:32px
  }
  .splash-enter {
    font-size:9px;
    letter-spacing:.12em
  }
  .help-paper {
    padding:24px 20px
  }
  .help-grid {
    grid-template-columns:1fr;
    gap:16px
  }
  .help-paper h2 {
    font-size:30px
  }
}
@media(max-height:560px) {
  .front-brand {
    top:15px;
    font-size:8px
  }
  .front-menu {
    top:53%;
    transform:translateY(-50%);
    width:min(350px,44vw)
  }
  .front-menu .game-title {
    font-size:48px
  }
  .menu-tagline {
    margin:10px 0 14px;
    font-size:11px
  }
  .menu-choice {
    padding:8px 0;
    min-height:36px;
    font-size:12px
  }
  .game-menu {
    gap:6px
  }
  .menu-records {
    display:none
  }
  .front-footer {
    bottom:12px;
    font-size:9px
  }
  .splash-mark {
    width:40px;
    height:34px;
    margin-bottom:10px
  }
  .front-splash .game-title {
    font-size:64px
  }
  .splash-caption {
    margin-top:14px;
    font-size:9px
  }
  .splash-progress {
    margin-top:22px;
    width:180px
  }
  .splash-enter {
    margin-top:8px;
    min-height:35px
  }
  .pause-heading {
    font-size:34px
  }
  .menu-eyebrow {
    margin-bottom:7px
  }
  .help-paper {
    max-height:90dvh;
    padding:23px
  }
  .help-grid {
    grid-template-columns:1fr 1fr
  }
}
@media(prefers-reduced-motion:reduce) {
  .menu-choice {
    transition:none
  }
}
.splash-mark .mountain-mark {
  width:100%;
  height:100%
}
@media(max-height:560px) and (max-aspect-ratio:1/1) {
  .front-menu {
    left:24px;
    right:24px;
    width:auto;
    top:65px;
    transform:none
  }
  .front-menu .game-title {
    font-size:44px
  }
}
@media (max-width:650px) {
  .front-footer {
    color:#d7e2d7;
  }
  .front-footer .footer-controls {
    background:#102c3eb3;
    border:1px solid #e4eddd1a;
    padding:7px 10px;
    border-radius:6px;
    backdrop-filter:blur(5px);
  }
}

.front-end .menu-choice:focus-visible {
  outline:0;
  border-bottom-color:#f3d6a1;
}
.menu-choice:focus-visible::before {
  content:'›';
  position:absolute;
  left:-15px;
  top:50%;
  transform:translateY(-50%);
  font-size:20px;
  color:#f3d6a1;
}
.front-splash.splash-leaving {
  animation:splash-dissolve .48s ease-in forwards;
  pointer-events:none;
}
.menu-arriving > * {
  animation:menu-emerge .65s ease-out both;
}
.menu-arriving .menu-tagline {
  animation-delay:.05s;
}
.menu-arriving .game-menu {
  animation-delay:.12s;
}
.menu-arriving .menu-records {
  animation-delay:.2s;
}
@keyframes splash-dissolve {
  from {opacity:1;transform:translateY(0)}
  to {opacity:0;transform:translateY(-12px)}
}
@keyframes menu-emerge {
  from {opacity:0;transform:translateY(10px)}
  to {opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce) {
  .front-splash.splash-leaving,.menu-arriving > * {
    animation:none;
  }
}
