#homeMenuToggle{display:none}.home-mobile-menu .site-navigation,.home-mobile-menu #headerTools,.home-mobile-menu .utility-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;position:static;margin:0;padding:0;border:0;background:none}.home-mobile-menu .site-navigation>button,.home-mobile-menu .utility-actions>button,.home-mobile-menu #mySetsButton{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;width:100%;padding:12px;font-size:14px}.home-mobile-menu #headerTools #soundButton,.home-mobile-menu #headerTools #audioSettingsButton,.home-mobile-menu #fullscreenButton{width:100%}.home-mobile-menu .language-control{display:flex;justify-content:space-between;align-items:center;padding:8px 0;margin:0}.home-mobile-menu .language-control>span{position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important}.home-mobile-menu #startCategoryLabel{display:block;color:#b5c4d9;font-size:14px;margin:18px 0}.home-mobile-menu #startCategory{width:100%;margin-top:8px}.home-mobile-menu .join-code-form{display:block;margin:20px 0 0;max-width:none}.home-mobile-menu .join-code-form label{display:block;margin-bottom:8px}.home-mobile-menu #mySetsButton{margin-top:14px}.home-mobile-menu .mp-rules-copy{border-top:1px solid #394a69;padding-top:16px;margin-top:16px}.home-mobile-menu .mp-rules-copy h2{font-size:18px}.home-mobile-menu .mp-rules-copy ul{padding-left:20px}.home-mobile-menu .mp-rules-copy li{font-size:14px;line-height:1.5;margin:8px 0}
.home-mobile-menu [hidden]{display:none!important}
.language-control{display:flex;align-items:center;gap:10px}
.language-control>span{display:flex;align-items:center;gap:10px}
.language-buttons{display:inline-flex;flex-shrink:0;gap:0;padding:3px;border:1px solid #617393;border-radius:6px;background:#0d172a}
.language-buttons button{display:grid;place-items:center;min-width:44px;width:44px;min-height:38px;padding:6px;border:0;border-radius:3px;background:transparent;color:#c5d0e5;font-size:13px;font-weight:800;line-height:1}
.language-buttons button[aria-pressed="true"]{background:#f3d150;color:#0b1730;box-shadow:0 1px 5px #0004}
.language-buttons button:focus-visible{outline:2px solid #85d9ff;outline-offset:2px}
.home-mobile-menu .mobile-menu-section{display:flex;flex-direction:column;gap:8px;min-width:0;padding:18px 0;border-top:1px solid #ffffff26}
.home-mobile-menu .mobile-menu-section:first-child{padding-top:0;border-top:0}
.home-mobile-menu .mobile-menu-section h3{margin:0 0 4px;font-size:12px;font-weight:700;color:#afc0da;letter-spacing:0}
.home-mobile-menu .mobile-menu-section>button,.home-mobile-menu .utility-actions>button{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:46px;padding:10px 12px;font-size:14px;text-align:left;line-height:1.35;border-radius:6px}
.home-mobile-menu .mobile-menu-section button>i,.game-menu-tools button>i{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;margin:0;font-size:17px;text-align:center}
.home-mobile-menu #mySetsButton{margin-top:0}
.home-mobile-menu #headerTools #soundButton,.home-mobile-menu #headerTools #audioSettingsButton{padding:10px 12px;justify-content:flex-start}
.home-mobile-menu .language-control{padding:0 0 0 13px;gap:12px}
.home-mobile-menu .language-control>span{gap:12px}
.home-mobile-menu .language-control>span>i{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;font-size:17px}
.home-mobile-menu .language-buttons button{width:52px;min-height:44px}
.home-mobile-menu #startCategoryLabel{margin:0}
.home-mobile-menu .join-code-form{margin:12px 0 0}
.home-mobile-menu .join-code-form label{font-size:13px}
.home-mobile-menu #mpLanguageLabel{display:flex;align-items:center;justify-content:space-between;margin:0;padding:0 0 18px}
.home-mobile-menu #mpLanguageLabel>span{display:flex}
#gameMenu .game-menu-tools{gap:8px}
#gameMenu .game-menu-tools #mpLeave{margin-top:16px;min-height:46px}
.game-menu-footer{border-top:1px solid #ffffff26;margin-top:20px;padding-top:8px}
.home-mobile-menu .game-menu-icon-label::after{font-size:14px;line-height:1.35}
@media(max-width:1024px),(max-width:1180px) and (max-height:600px){
  body.home-compact #homeMenuToggle{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;padding:8px;margin-left:auto}
  body.home-compact .site-header{min-height:60px;flex-wrap:nowrap;padding:8px 12px;gap:12px}
  body.home-compact .start-screen{padding:0}
  body.home-compact .page-intro{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
  body.home-compact .journey-grid,body.home-compact .rules-grid,body.home-compact .site-footer{display:none}
  body.home-compact .hero{margin:0;padding:18px 14px;min-height:calc(100dvh - 60px);display:flex;align-items:center}
  body.home-compact .hero-copy{width:100%;max-width:720px;margin:auto}
  body.home-compact .hero-copy>.eyebrow,body.home-compact .hero-copy>p:not(.eyebrow){display:none}
  body.home-compact .hero-copy h2{font-size:25px;margin:0 0 14px;line-height:1.15}
  body.home-compact .player-card{margin:0}
  body.home-compact .mode-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 16px}
  body.home-compact .mode-choice legend{font-size:12px;margin-bottom:8px}
  body.home-compact .mode-choice label,body.home-compact .mode-choice .duel-mode,body.home-compact .mode-choice #multiplayerLink{display:flex;align-items:center;justify-content:center;min-height:68px;padding:8px 16px;gap:8px;border:1px solid #ffffff35;border-radius:6px;background:#111c2bf2;text-align:center;text-decoration:none}
  body.home-compact .mode-choice label:has(input:checked){border-color:#edcc79;background:#25334b}
  body.home-compact .mode-choice label>span,body.home-compact .mode-choice .duel-mode>span{display:none}
  body.home-compact .mode-choice strong,body.home-compact .mode-choice #multiplayerLink>span{font-size:15px;line-height:1.25;font-weight:700;overflow-wrap:anywhere}
  body.home-compact .mode-choice input{top:6px;right:6px;width:14px;height:14px}
  body.home-compact .setup-fields{grid-template-columns:minmax(0,1fr);gap:0}
  body.home-compact .participant-field>label{font-size:12px;margin-bottom:6px}
  body.home-compact .start-row{grid-template-columns:1fr;gap:8px}
  body.home-compact .start-row input,body.home-compact .start-row button{min-height:44px;padding:10px 12px}
  body.home-compact #startError:not(.visible){display:none}
  body.home-compact .start-actions{margin:10px 0 0}
  body.home-compact .start-actions:not(:has(>#multiplayerLink)):not(:has(#resumeButton:not(.hidden))){display:none}
  body.home-compact .mp-app{padding:10px}
  body.home-compact .mp-header{flex-wrap:nowrap;gap:8px;padding-bottom:10px}
  body.home-compact .mp-header .mp-mode{display:none}
  body.home-compact .mp-header #mpConnection{font-size:11px;min-width:0}
  body.home-compact .mp-intro{margin:12px 0}
  body.home-compact .mp-intro .mp-eyebrow{display:none}
  body.home-compact .mp-intro h1{font-size:24px;margin:0}
  body.home-compact .mp-setup-layout{display:flex;flex-direction:column-reverse;gap:10px}
  body.home-compact .mp-rules{padding:0;border:0}
  body.home-compact .mp-rules img{display:block;width:100%;height:clamp(64px,calc(100dvh - 480px),140px);object-fit:cover}
  body.home-compact .mp-setup form{padding:0}
  body.home-compact .mp-setup form>label{margin:8px 0 6px;font-size:13px}
  body.home-compact .mp-setup form>.mp-primary{margin-top:8px}
  body.home-compact .mp-divider{margin:10px 0;font-size:13px}
  body.home-compact .mp-section-heading{margin-top:12px}
  body.home-compact .mp-section-heading h1{font-size:24px;margin:6px 0 12px}
  body.home-compact .mp-players{max-height:max(70px,calc(100dvh - 350px));overflow:auto}
}
@media(max-height:500px) and (orientation:landscape){
  body.home-compact .hero{padding:12px 16px}
  body.home-compact .hero-copy{max-width:900px}
  body.home-compact .hero-copy h2{font-size:23px;margin-bottom:10px}
  body.home-compact #playerForm{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:0 16px}
  body.home-compact .mode-choice{grid-column:1;grid-row:1/span 2;margin:0}
  body.home-compact .mode-choice label,body.home-compact .mode-choice .duel-mode,body.home-compact .mode-choice #multiplayerLink{min-height:58px}
  body.home-compact .setup-fields,body.home-compact .form-note{grid-column:2}
  body.home-compact .mp-setup-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:20px;align-items:center}
  body.home-compact .mp-rules img{height:170px}
  body.home-compact .mp-intro{margin:8px 0}
}
