/* The lobby uses the game's existing felt, ivory, brass and illustrated tokens. */
.v3 .main-menu{max-width:1180px;min-height:100svh;margin:auto;padding:30px 48px 20px;display:block;overflow:visible}
.menu-brand{display:flex;align-items:center;gap:14px;padding-bottom:22px;border-bottom:1px solid #cbb77533}
.menu-brand h1{font-size:25px;letter-spacing:5px;margin:0}.menu-brand>div>span{font:9px var(--mono);letter-spacing:2.7px;color:#a5bcb0}.menu-edition{margin-left:auto;color:#b1bfa6;font-size:11px;letter-spacing:2px}
.menu-hero{display:grid;grid-template-columns:1fr 1.05fr;gap:46px;padding:32px 0 28px;align-items:center}
.menu-intro .section-kicker,.menu-kicker{font-size:10px;letter-spacing:3px;color:#d8bd7c;display:block}.menu-intro h2{font-size:clamp(36px,4.6vw,58px);line-height:1.23;letter-spacing:3px;color:#f1e6c9;margin:15px 0;text-shadow:0 4px #0f3329}.menu-intro p{color:#bbceba;font-size:13px;line-height:1.9;margin:0}
.menu-tiles{display:flex;gap:8px;margin:22px 0 8px}.menu-tiles .hand-preview-tile{width:41px;height:61px;transform:rotate(-5deg);flex:none}.menu-tiles .hand-preview-tile:nth-child(3n){transform:translateY(-6px) rotate(5deg)}.menu-tiles .hand-preview-tile .tile-face{height:40px}.menu-tiles .hand-preview-tile .pip-grid{width:25px;height:32px}.menu-tiles .hand-preview-tile .pip.dot{width:7px;height:7px}.menu-tiles .hand-preview-tile .wan-number{font-size:18px}.menu-tiles .hand-preview-tile .wan-glyph{font-size:23px}
.menu-journey{position:relative;isolation:isolate;border:1px solid #c9b77391;border-radius:13px;background:#0e332bcc;box-shadow:inset 0 0 0 5px #bda25a0b,0 10px 24px #051f2045;overflow:hidden;min-width:0}
.menu-landscape{position:absolute;inset:-30px -90px auto auto;width:360px;height:260px;opacity:.23;z-index:-1;pointer-events:none;mask-image:linear-gradient(#000 50%,transparent)}.menu-landscape svg{width:100%;height:100%}.menu-journey-copy{padding:29px 28px}.menu-journey h3{font-size:30px;letter-spacing:5px;color:#f2dfb2;margin:12px 0}.menu-journey p{font-size:12px;color:#c3ccb4;line-height:1.9;margin:0 0 20px}.menu-journey button{width:100%;font-size:14px;min-height:46px}.menu-journey .secondary-button{margin-top:10px;min-height:38px;font-size:12px}.menu-mode-note{display:block;margin-top:12px;font-size:10px;line-height:1.6;color:#a9beab}.menu-continue small{display:block;margin-top:7px;font-size:11px;color:#d3c797;text-align:center}
.menu-challenges>header{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 14px}.menu-challenges h2{font-size:21px;letter-spacing:3px;margin:6px 0 0}.menu-challenges header p{font-size:11px;color:#b0c1ac;margin:0}.challenge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.challenge-card{position:relative;display:flex;align-items:center;gap:12px;padding:18px 14px;border:1px solid #9eae8e55;border-radius:9px;background:linear-gradient(125deg,#193c32,#18392d);color:#e4dcc2;cursor:pointer;text-align:left;min-width:0;transition:transform .18s,border-color .18s,background .18s;font:inherit}.challenge-card.theme-copper{background:linear-gradient(125deg,#3d3529,#243b31)}.challenge-card.theme-gold{background:linear-gradient(125deg,#343d28,#1c392e)}.challenge-card:hover{transform:translateY(-3px);border-color:#dcc58c;background-color:#294d3b}.challenge-art{aspect-ratio:5/7;width:68px;flex:none;filter:drop-shadow(2px 7px 6px #051d2280);transform:rotate(-7deg);transition:transform .25s}.challenge-art>svg{width:100%;height:auto;display:block}.challenge-card:hover .challenge-art{transform:rotate(0deg) translateY(-3px)}.challenge-copy{display:block;min-width:0;flex:1}.challenge-copy>strong{font-size:18px;letter-spacing:2px;display:block;margin-bottom:7px}.challenge-seal{position:absolute;right:12px;top:10px;border:1px solid #b8ab7055;color:#dac58e55;font-family:serif;padding:1px 3px;font-size:12px}.challenge-tagline{font-size:11px;color:#dbc596;display:block}.challenge-summary{display:block;margin:8px 0 12px;font-size:11px;line-height:1.75;color:#b7c8b5}.challenge-best{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;color:#aabf9e;border-top:1px solid #c1bc8b22;padding-top:8px}.challenge-best b{font-size:17px;color:#dfca89}.menu-history-note{font-size:10px;color:#92ae9d;display:block;margin-top:10px;line-height:1.6}
.menu-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding:18px 0 12px;margin-top:13px;border-top:1px solid #cbb77533}.menu-navigation button,.menu-navigation a{font-size:12px;line-height:1.5;min-height:36px;display:inline-flex;align-items:center;color:#ded3b1;text-decoration:none}.menu-navigation button{padding:4px 0}.menu-navigation a:hover{text-decoration:underline}.menu-footer{display:flex;justify-content:space-between;gap:15px;color:#94b19f;font-size:10px;line-height:1.8}.menu-footer details{max-width:70%}.menu-footer summary{cursor:pointer;text-align:right;padding:4px 0}.menu-footer details>div{display:flex;flex-wrap:wrap;justify-content:end;gap:8px;padding-top:8px}.menu-footer a{color:#d4c49a;padding:5px}.main-menu button:focus-visible,.main-menu a:focus-visible,.main-menu summary:focus-visible{outline:2px solid #f0d58d;outline-offset:4px}
.mode-rules{padding-left:20px;line-height:1.9;font-size:13px}.mode-rules li{margin:5px 0}.mode-setup{display:flex!important;flex-direction:column;align-items:stretch;gap:14px}.mode-setup fieldset{border:0;padding:0;margin:0;min-width:0}.mode-setup legend{font-size:12px;margin-bottom:9px;color:#d7c792}.mode-setup .format-option{display:flex;align-items:center;gap:12px;cursor:pointer;border:1px solid #829e8855;border-radius:7px;padding:13px;margin-bottom:8px;background:#122f2850}.mode-setup .format-option:has(input:checked){border-color:#dcc58c;background:#6c71312b}.mode-setup .format-option:has(input:focus-visible){outline:2px solid #ead398;outline-offset:2px}.mode-setup input[type=radio]{width:18px;min-width:18px;height:18px;padding:0;margin:0;accent-color:#c9af69;flex:none}.mode-setup .format-option span{min-width:0}.mode-setup b{display:block;font-size:16px}.mode-setup em{font-style:normal;font-size:10px;color:#cdbb87;margin-left:8px}.mode-setup small{display:block;color:#adc1ac;font-size:11px;line-height:1.8;margin-top:4px}.seed-settings summary{font-size:11px;color:#a8bca9;cursor:pointer}.seed-settings label{display:block;font-size:11px;line-height:1.8;margin:10px 0 5px}.mode-setup .seed-settings input{width:100%;box-sizing:border-box}.mode-replace-note,.mode-record-note{font-size:11px!important;line-height:1.8;margin:0!important;color:#b5c4b0}.mode-replace-note{color:#e0bd89;padding:9px 11px;border-left:2px solid #b79b59;background:#72582622}.run-mode-label{color:#d8c391;font:inherit;text-align:left;background:none;border:0;cursor:pointer;padding:2px 0}.r-top .run-mode-label{font-size:11px}.run-mode-label:hover{text-decoration:underline}
@media(max-width:1000px){.v3 .main-menu{padding:26px}.menu-hero{gap:25px}.challenge-card{gap:9px;padding:16px 12px}.challenge-art{width:50px}.challenge-copy>strong{font-size:17px}.challenge-summary{font-size:10px}.menu-journey-copy{padding:24px}}
@media(max-width:700px){.v3 .main-menu{padding:19px 18px 20px;min-height:100svh}.menu-brand{padding-bottom:15px;gap:10px}.menu-brand h1{font-size:22px;letter-spacing:4px}.menu-brand>div>span{font-size:8px;letter-spacing:1.9px}.menu-edition{display:none}.menu-hero{grid-template-columns:1fr;gap:18px;padding:23px 0}.menu-intro{position:relative;min-height:131px}.menu-intro h2{font-size:34px;line-height:1.2;margin:12px 0}.menu-intro p{font-size:11px}.menu-intro .section-kicker{font-size:9px;letter-spacing:2px}.menu-tiles{position:absolute;right:0;bottom:12px;margin:0;gap:3px;width:148px;flex-wrap:wrap;justify-content:end;opacity:.94}.menu-tiles .hand-preview-tile{width:29px;height:45px}.menu-tiles .hand-preview-tile:nth-child(-n+3){display:none}.menu-tiles .hand-preview-tile .tile-top{display:none}.menu-tiles .hand-preview-tile .tile-face{height:33px}.menu-tiles .hand-preview-tile .pip-grid{width:19px;height:28px}.menu-tiles .hand-preview-tile .pip.dot{width:5px;height:5px}.menu-tiles .hand-preview-tile .one-bamboo{font-size:24px}.menu-journey-copy{padding:20px}.menu-journey h3{font-size:26px;margin:10px 0}.menu-journey p{font-size:12px;margin-bottom:15px}.menu-journey button{min-height:44px}.menu-mode-note{font-size:10px}.menu-landscape{width:270px;right:-50px}.menu-challenges>header{align-items:center}.menu-challenges h2{font-size:20px}.menu-challenges header p{font-size:10px}.challenge-grid{grid-template-columns:1fr;gap:10px}.challenge-card{padding:15px 18px;gap:18px}.challenge-art{width:55px}.challenge-copy>strong{font-size:18px;margin-bottom:5px}.challenge-summary{font-size:11px;margin:7px 0}.challenge-best{font-size:10px;padding-top:6px}.challenge-tagline{font-size:11px}.menu-navigation{gap:6px 18px;margin-top:8px;padding:14px 0 10px}.menu-navigation button,.menu-navigation a{font-size:11px;min-height:40px}.menu-footer{font-size:9px}.menu-footer details{max-width:55%}.mode-rules{font-size:12px}.mode-setup .format-option{padding:12px 10px}.mode-setup b{font-size:15px}}
@media(max-width:360px){.v3 .main-menu{padding:16px 13px}.menu-tiles{width:108px}.menu-tiles .hand-preview-tile:last-child{display:none}.menu-challenges header p{max-width:100px;text-align:right}.challenge-card{padding:13px;gap:13px}}
@media(prefers-reduced-motion:reduce){.challenge-card,.challenge-art{transition:none;transform:none!important}}

#modal:has(.mode-setup) .modal-header{position:sticky;top:0;z-index:3;background:#203d32}

/* A lobby, rather than a scrolling landing page, on tablet and desktop. */
@media (min-width:700px) and (min-height:600px){
  .v3 .main-menu{min-height:100svh;padding:18px 32px 14px;display:flex;flex-direction:column}
  .menu-brand{padding-bottom:12px}
  .menu-brand .brand-mark{width:36px;height:42px;font-size:28px}
  .menu-hero{gap:28px;padding:20px 0;flex:1}
  .menu-intro h2{font-size:clamp(34px,4vw,48px);margin:10px 0}
  .menu-tiles{margin:14px 0 5px}
  .menu-journey-copy{padding:20px 24px}
  .menu-journey h3{margin:8px 0;font-size:27px}
  .menu-journey p{margin-bottom:14px}
  .menu-mode-note{margin-top:8px}
  .menu-challenges>header{margin-bottom:10px}
  .challenge-card{padding:14px 12px;gap:10px}
  .challenge-art{width:52px}
  .challenge-copy>strong{font-size:17px;margin-bottom:5px}
  .challenge-summary{margin:6px 0;line-height:1.6}
  .challenge-best{padding-top:5px}
  .menu-navigation{margin-top:10px;padding:9px 0 6px}
  .menu-history-note{margin-top:7px}
}
@media (min-width:700px) and (max-height:800px){
  .v3 .main-menu{padding-top:12px;padding-bottom:10px}
  .menu-brand{padding-bottom:9px}
  .menu-hero{padding:12px 0;gap:24px}
  .menu-intro h2{font-size:36px}
  .menu-journey-copy{padding:14px 20px}
  .menu-journey p{line-height:1.65;margin-bottom:10px}
  .menu-journey h3{font-size:25px}
  .menu-challenges h2{font-size:19px}
  .menu-tiles .hand-preview-tile{height:52px;width:36px}
  .challenge-summary{display:none} /* Full rules are on each mode's launch screen. */
  .challenge-card{min-height:130px}
  .menu-footer details[open]{position:relative}
  .menu-footer details[open]>div{position:absolute;right:0;bottom:100%;width:330px;padding:14px;background:#173b30;border:1px solid #a69b65;border-radius:8px;z-index:5;box-shadow:0 8px 30px #001b19aa}
}
@media (min-width:700px) and (max-width:850px) and (orientation:portrait){
  .menu-hero{gap:22px;grid-template-columns:.85fr 1.15fr}
  .menu-intro h2{font-size:36px}
  .menu-intro p{font-size:12px}
  .menu-tiles{gap:4px;flex-wrap:wrap;max-width:230px}
  .challenge-card{flex-direction:column;align-items:flex-start;padding:16px}
  .challenge-art{width:60px;align-self:center}
  .challenge-copy{width:100%}
  .challenge-summary{min-height:70px}
}
