/* First Chair's familiar centered opening, with the mountain left room to breathe. */
[hidden]{display:none!important;}
button,a,select,summary{-webkit-tap-highlight-color:transparent;}
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--lime);outline-offset:5px;}
canvas:focus-visible{outline:none;}
.ovl.hide{visibility:hidden;}
.ovl{background:radial-gradient(ellipse at 50% 40%,rgba(0,27,57,.58),rgba(0,27,57,.30) 75%);}
/* min-width:0 (5 Sep 2026): the card is a grid item, and a grid item's minimum width defaults to its
   content's. The seven-tile picker rail is 638 px, so on a phone the card grew to 670 and both
   edges were off screen. With the minimum released, the rail scrolls inside the card. */
.card{width:min(100%,760px);min-width:0;padding:32px 28px;}
.card .logo{height:47px;margin-bottom:23px;}
.card h1{font-size:clamp(52px,8.2vw,91px);line-height:.98;letter-spacing:-.055em;}
.card .sub{font-size:16px;opacity:1;margin-top:19px;}
.card .pre{color:#ff8277;}
.card .how{margin-top:21px;font-size:12px;line-height:1.85;background:rgba(0,25,53,.48);}
/* The how-to lines live behind this one button now (6 Sep 2026), in the #tips dialog. */
.card .tips-link{margin-top:18px;font-size:12px;}
.card .tips-link button{background:none;border:0;color:var(--cream);opacity:.85;font:700 12px "Lato",sans-serif;letter-spacing:.06em;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:36px;padding:6px 10px;}
.card .tips-link button:hover{opacity:1;}
#tips{z-index:12;}
#tips .how{text-align:left;margin-top:18px;}
/* mVara's wordmark in the credit lines (6 Sep 2026); doubled the same evening at the product
   owner's ask, so it now stands taller than the line it sits in. */
.credit .mvara img{height:28px;vertical-align:-9px;display:inline-block;}
#crash .credit .mvara img{height:36px;vertical-align:-12px;}
/* The lodge card's heart (6 Sep 2026): the site's own wishlist, in the site's own clothes, over
   the photo's top right corner. Filled orange when the home is saved. */
.lodge-card{position:relative;}
.lodge-heart{position:absolute;top:12px;right:12px;z-index:2;width:40px;height:40px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(0,20,44,.18);cursor:pointer;transition:transform .15s;}
.lodge-heart:active{transform:scale(.9);}
.lodge-heart svg{width:20px;height:20px;fill:none;stroke:var(--navy);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.lodge-heart.on svg{fill:var(--orange);stroke:var(--orange);}
.card .about{max-width:460px;margin-top:16px;background:rgba(0,25,53,.4);}
.card .about summary{letter-spacing:.08em;opacity:.85;text-transform:none;}
.card .go{min-height:48px;padding:12px 28px;font-size:18px;}
.modes{gap:18px;margin-top:20px;}
/* The mountain picker (5 Sep 2026): seven photo tiles, cartoonized on a canvas by run3d.js. A row
   on desktop, a scroll rail on a phone; the chosen tile wears the lime ring the rest of the game
   uses for focus. The canvas fades in once drawn, so an undrawn tile is a navy card with a name. */
.peaks{display:flex;justify-content:safe center;gap:6px;margin:20px auto 0;max-width:100%;min-width:0;overflow-x:auto;padding:6px 4px;scrollbar-width:none;}
.peaks::-webkit-scrollbar{display:none;}
.peak{position:relative;flex:0 0 82px;height:94px;border:0;padding:0;border-radius:12px;overflow:hidden;background:var(--navy);cursor:pointer;color:#fff;font:700 12px/1.1 "Lato",sans-serif;text-align:left;box-shadow:0 4px 14px #00142c40;transition:transform .15s;}
.peak canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .35s;}
.peak.drawn canvas{opacity:1;}
.peak::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,27,57,.88) 0,rgba(0,27,57,.3) 42%,transparent 68%);}
.peak .peakName,.peak .peakWhere{position:absolute;left:8px;right:6px;z-index:1;}
.peak .peakName{bottom:19px;font-size:12px;letter-spacing:-.01em;}
.peak .peakWhere{bottom:8px;font:600 8.5px/1 "Lato",sans-serif;opacity:.8;letter-spacing:.07em;text-transform:uppercase;}
.peak[aria-checked="true"]{outline:3px solid var(--lime);outline-offset:2px;transform:translateY(-2px);}
.peak:hover{transform:translateY(-2px);}
.destination{display:flex;justify-content:center;align-items:center;gap:9px;margin:22px auto 0;font-size:13px;}
.destination select{font:700 13px "Lato",sans-serif;color:#fff;background:rgba(0,38,81,.6);border:1px solid #ffffff65;border-radius:20px;padding:8px 28px 8px 13px;max-width:200px;}
.destination select option{color:var(--navy);background:white;}
.hud{top:18px;left:50%;right:auto;transform:translateX(-50%);gap:25px;padding:11px 22px;border:1px solid #ffffff25;border-radius:18px;background:rgba(0,38,81,.78);white-space:nowrap;}
.hud .v{font-size:23px;}
.hud .k{letter-spacing:.11em;opacity:.9;}
.pause-button{left:16px;right:auto;bottom:16px;min-height:42px;}
.mute{min-height:42px;}
.lodge-prompt{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:6;text-align:center;padding:12px 20px;border-radius:18px;background:rgba(0,38,81,.9);color:#fff;width:max-content;max-width:calc(100% - 32px);box-shadow:0 5px 24px #00265125;}
.lodge-prompt p{font-size:13px;margin-bottom:6px;}
.lodge-prompt button{font:700 13px "Lato",sans-serif;background:none;border:0;color:var(--lime);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px;min-height:36px;}
#paused,#lodgeStop,#tips{background:rgba(0,25,53,.55);backdrop-filter:blur(5px);}
.pause-card{max-width:490px;}
.pause-card h2{font-size:clamp(34px,6vw,54px);}
.pause-card .sub{max-width:310px;margin:20px auto 0;}
.lodge-card{width:min(430px,calc(100% - 32px));margin:32px auto;background:#fff;color:var(--navy);border-radius:24px;overflow:hidden;box-shadow:0 24px 80px #00142c44;}
.lodge-card img{display:block;width:100%;height:190px;object-fit:cover;}
.lodge-copy{padding:25px 28px 28px;text-align:center;}
.lodge-copy .location{font-size:13px;color:#526474;margin-bottom:9px;}
.lodge-copy h2{font:750 26px/1.15 "Epilogue",sans-serif;letter-spacing:-.035em;}
.lodge-copy p{font-size:15px;line-height:1.6;margin-top:13px;}
.lodge-copy .recommendation{color:#596b7b;font-size:12px;margin-top:0;margin-bottom:10px;}
.lodge-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin-top:23px;}
.lodge-actions button,.lodge-actions a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:fit-content;max-width:100%;min-height:44px;border-radius:999px;padding:13px 26px;font:700 15px/1 "Lato",sans-serif;cursor:pointer;text-decoration:none;border:1px solid var(--navy);text-align:center;}
.lodge-actions button{background:var(--navy);color:#fff;}
.lodge-actions a{background:var(--orange);color:#fff;border-color:var(--orange);}
.destination-link{display:inline-block;font-size:12px;line-height:1.5;color:var(--navy);margin-top:13px;text-underline-offset:3px;}
/* Share this home (6 Sep 2026): a text button in the destination link's clothes, beside it. */
.lodge-copy .share-home{background:none;border:0;padding:0;margin-left:14px;font:inherit;font-size:12px;text-decoration:underline;cursor:pointer;min-height:36px;}
/* The crash card's small row: share, switch mode, Trail Notes. */
.card .switch .dot{opacity:.5;margin:0 8px;}
.card .switch a{color:var(--cream);opacity:.72;font-size:12px;font-weight:700;letter-spacing:.06em;text-decoration:underline;text-underline-offset:3px;}
.card .switch a:hover{opacity:1;}
.lodge-copy .pause-note{font-size:12px;color:#5b6976;}
.credit{font-size:10px;opacity:.7;margin-top:13px;}
.credit a{color:inherit;}
@media(max-width:600px){
  .card{padding:65px 16px 75px;}
  .card .logo{height:36px;margin-bottom:19px;}
  .card h1{font-size:clamp(45px,14.8vw,58px);}
  .card .pre{font-size:9px;letter-spacing:.19em;}
  .card .sub{font-size:14px;max-width:290px;margin:17px auto 0;}
  .card .go{font-size:15px;padding:11px 15px;min-width:91px;}
  .modes{gap:10px;}
  /* On a phone the eight tiles sit in two rows of four, all in view, no rail to discover
     (6 Sep 2026: "destinations don't work on mobile. should have mini tiles"). */
  .peaks{flex-wrap:wrap;justify-content:center;overflow:visible;gap:7px;margin-top:16px;padding:6px 0;}
  .peak{flex:0 0 calc((100% - 21px)/4);height:88px;}
  #title .modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
  #title .go{width:100%;min-width:0;padding-inline:10px;}
  .card .how{font-size:11px;padding:12px 13px;letter-spacing:0;}
  .card .how b{padding:2px 4px;}
  .card .best{font-size:12px;}
  .hud{top:70px;gap:18px;padding:10px 17px;}
  .hud .v{font-size:19px;}
  .hud .k{font-size:8px;}
  .hud .cell.mode .v{font-size:15px;}
  .toast,html.framed .toast{top:140px;font-size:17px;}
  .lodge-prompt{bottom:80px;}
  .lodge-card img{height:175px;}
  .lodge-copy{padding:21px;}
  .lodge-copy h2{font-size:23px;}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;}}

@media(min-width:601px) and (max-height:800px){.card{padding:25px 28px;}.card .logo{height:38px;margin-bottom:16px;}.card h1{font-size:74px;}.card .how{margin-top:16px;}.card .about{margin-top:12px;}.destination{margin-top:16px;}.credit{margin-top:9px;}}
