@media(max-width:600px)and (orientation:portrait),(max-height:520px)and (orientation:landscape)and (max-width:1100px){html #menu-modal#menu-modal:not([hidden]){padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)!important;align-items:stretch!important}html #menu-modal#menu-modal .menu-card{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0!important;padding:10px 12px 12px!important;box-sizing:border-box!important;border-radius:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;overflow:hidden!important}html #menu-modal#menu-modal .menu-card>.eyebrow,html #menu-modal#menu-modal .menu-card>.intro,html #menu-modal#menu-modal #join-row,html #menu-modal#menu-modal .frbc-links,html #menu-modal#menu-modal .account-section,html #menu-modal#menu-modal .menu-donation-feature,html #menu-modal#menu-modal .menu-card>footer,html #menu-modal#menu-modal .frbc-home-tagline,html #menu-modal#menu-modal #frbc-home-donate,html #menu-modal#menu-modal #frbc-sponsors,html #menu-modal#menu-modal #frbc-sponsors-viewport,html #menu-modal#menu-modal .frbc-sponsors-heading,html #menu-modal#menu-modal .frbc-home-social,html #menu-modal#menu-modal #frbc-tour-open,html #menu-modal#menu-modal #training-button,html #menu-modal#menu-modal #exit-training{display:none!important}html #menu-modal#menu-modal #welcome-title{order:1!important;flex:0 0 auto!important;margin:0!important;padding-right:56px!important;font-size:clamp(17px,4.8vw,22px)!important;line-height:1.15!important}html #menu-modal#menu-modal #welcome-title br{display:none!important}html #menu-modal#menu-modal #menu-close{position:absolute!important;top:4px!important;right:4px!important;left:auto!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;margin:0!important;padding:0!important;z-index:4!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:24px!important;line-height:1!important}html #menu-modal#menu-modal .frbc-home-settings{display:contents!important}html #menu-modal#menu-modal #level-row,html #menu-modal#menu-modal #guide-setting-row,html #menu-modal#menu-modal #board-orientation-row,html #menu-modal#menu-modal #frbc-clock-option,html #menu-modal#menu-modal .settings-row:has(#match-length),html #menu-modal#menu-modal .audio-settings{display:none!important}html #menu-modal#menu-modal #frbc-home-auth-slot,html #menu-modal#menu-modal #frbc-home-member-slot{order:2!important;flex:0 0 auto!important;display:flex!important;gap:8px!important;margin:0!important}html #menu-modal#menu-modal #frbc-home-auth-slot>*,html #menu-modal#menu-modal #frbc-home-member-slot>*{flex:1 1 0!important;min-width:0!important}html #menu-modal#menu-modal .frbc-mode-picker{order:3!important;flex:0 0 auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0!important}html #menu-modal#menu-modal .frbc-mode-picker .frbc-mode{min-height:56px!important;padding:4px 6px!important;font-size:clamp(12px,3.4vw,14px)!important}html #menu-modal#menu-modal .frbc-mode-picker .frbc-mode span{font-size:inherit!important}html #menu-modal#menu-modal .frbc-home-play-actions{order:4!important;flex:0 0 auto!important;display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important}html #menu-modal#menu-modal #new-game,html #menu-modal#menu-modal #resume-game{width:100%!important;min-height:56px!important;height:auto!important;font-size:clamp(14px,4vw,16px)!important;margin:0!important}html #menu-modal#menu-modal .menu-tools{order:5!important;flex:0 0 auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0!important}html #menu-modal#menu-modal .menu-tools>*{width:100%!important;min-height:48px!important;margin:0!important}html #menu-modal#menu-modal .menu-tools :is(span,small,b){font-size:12px!important;line-height:1.2!important}html #menu-modal#menu-modal #frbc-play-settings{order:6!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:48px!important;margin:0!important;border:1px solid #8fbde15c!important;border-radius:12px!important;background:#0d2741cc!important;color:#dcecf9!important;font:inherit!important;font-size:13px!important;font-weight:700!important;cursor:pointer!important}html #menu-modal#menu-modal #frbc-play-settings:after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}html #menu-modal#menu-modal.frbc-settings-open #frbc-play-settings:after{transform:translateY(2px) rotate(-135deg)}html #menu-modal#menu-modal.frbc-settings-open :is(#frbc-home-auth-slot,#frbc-home-member-slot,.frbc-mode-picker,.frbc-home-play-actions,.menu-tools){display:none!important}html #menu-modal#menu-modal.frbc-settings-open #level-row,html #menu-modal#menu-modal.frbc-settings-open #guide-setting-row,html #menu-modal#menu-modal.frbc-settings-open #board-orientation-row,html #menu-modal#menu-modal.frbc-settings-open #frbc-clock-option,html #menu-modal#menu-modal.frbc-settings-open .settings-row:has(#match-length),html #menu-modal#menu-modal.frbc-settings-open .audio-settings{display:flex!important;flex:0 0 auto!important;align-items:center!important;flex-wrap:wrap!important;gap:6px 10px!important;min-height:48px!important;margin:0!important;padding:0!important}html #menu-modal#menu-modal.frbc-settings-open #level-row{order:2!important}html #menu-modal#menu-modal.frbc-settings-open .settings-row:has(#match-length){order:3!important}html #menu-modal#menu-modal.frbc-settings-open #guide-setting-row{order:4!important}html #menu-modal#menu-modal.frbc-settings-open #board-orientation-row{order:5!important}html #menu-modal#menu-modal.frbc-settings-open #frbc-clock-option{order:6!important}html #menu-modal#menu-modal.frbc-settings-open .audio-settings{order:7!important}html #menu-modal#menu-modal #frbc-play-settings{order:8!important}html #menu-modal#menu-modal.frbc-settings-open .settings-row>label,html #menu-modal#menu-modal.frbc-settings-open .audio-settings>label,html #menu-modal#menu-modal.frbc-settings-open #frbc-clock-option span,html #menu-modal#menu-modal.frbc-settings-open #guide-availability{flex:0 1 auto!important;min-width:0!important;margin:0!important;font-size:12px!important;line-height:1.2!important;white-space:normal!important}html #menu-modal#menu-modal.frbc-settings-open :is(#ai-level,#match-length,#board-orientation){flex:1 1 140px!important;min-width:0!important;min-height:48px!important;margin:0!important;font-size:13px!important}html #menu-modal#menu-modal.frbc-settings-open .audio-settings{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px 10px!important}html #menu-modal#menu-modal.frbc-settings-open .audio-settings>label{grid-column:1/-1!important}html #menu-modal#menu-modal.frbc-settings-open .audio-settings .audio-volume{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important}html #menu-modal#menu-modal.frbc-settings-open .audio-settings input[type=range]{width:100%!important;min-height:28px!important;margin:0!important}html #menu-modal#menu-modal.frbc-settings-open input[type=checkbox]{width:20px!important;height:20px!important;margin:0!important}html #menu-modal#menu-modal.frbc-settings-open #guide-setting-row label,html #menu-modal#menu-modal.frbc-settings-open #frbc-clock-option label{cursor:pointer!important}}@media(max-width:600px)and (orientation:portrait){html #menu-modal#menu-modal .menu-card{gap:10px!important;padding:12px 14px 16px!important;justify-content:center!important}html #menu-modal#menu-modal .frbc-mode-picker .frbc-mode{min-height:64px!important}}@media(max-height:520px)and (orientation:landscape)and (max-width:1100px){html #menu-modal#menu-modal .menu-card{gap:6px!important;padding:8px 12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-auto-rows:min-content!important;align-content:start!important}html #menu-modal#menu-modal #welcome-title{grid-column:1/-1!important;font-size:18px!important;padding-right:56px!important}html #menu-modal#menu-modal #frbc-home-auth-slot,html #menu-modal#menu-modal #frbc-home-member-slot{grid-column:1!important;order:2!important}html #menu-modal#menu-modal .frbc-mode-picker{grid-column:1!important;order:3!important}html #menu-modal#menu-modal .frbc-home-play-actions{grid-column:1!important;order:4!important}html #menu-modal#menu-modal .menu-tools{grid-column:2!important;grid-row:2/span 2!important;order:5!important;align-content:start!important}html #menu-modal#menu-modal #frbc-play-settings{grid-column:2!important;order:6!important;align-self:end!important}html #menu-modal#menu-modal .frbc-mode-picker .frbc-mode{min-height:48px!important}html #menu-modal#menu-modal #new-game,html #menu-modal#menu-modal #resume-game{min-height:48px!important;font-size:14px!important}html #menu-modal#menu-modal.frbc-settings-open .menu-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-content:start!important}html #menu-modal#menu-modal.frbc-settings-open :is(#level-row,.settings-row:has(#match-length),#guide-setting-row){grid-column:1!important}html #menu-modal#menu-modal.frbc-settings-open :is(#board-orientation-row,#frbc-clock-option){grid-column:2!important}html #menu-modal#menu-modal.frbc-settings-open .audio-settings{grid-column:1/-1!important}}@media(max-width:600px)and (orientation:portrait),(max-height:520px)and (orientation:landscape)and (max-width:1100px){html #menu-modal#menu-modal.frbc-home-screen>.menu-card{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0!important;border-radius:0!important}html #menu-modal#menu-modal.frbc-home-screen .menu-card>#menu-close{position:absolute!important;top:4px!important;right:4px!important;left:auto!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;margin:0!important;z-index:6!important}}@media(max-height:520px)and (orientation:landscape)and (max-width:1100px){html #menu-modal#menu-modal.frbc-home-screen{display:flex!important;align-items:center!important;justify-content:center!important}html #menu-modal#menu-modal.frbc-home-screen>.menu-card{width:min(760px,94vw)!important;max-width:min(760px,94vw)!important;height:auto!important;max-height:calc(100% - 8px)!important;margin:0 auto!important;border-radius:16px!important;padding:8px 12px 10px!important}html #menu-modal#menu-modal.frbc-home-screen .menu-tools{grid-column:2!important;padding-right:0!important}html #menu-modal#menu-modal.frbc-home-screen .menu-tools{gap:6px!important}html #menu-modal#menu-modal.frbc-home-screen .menu-tools{margin-right:52px!important}html #menu-modal#menu-modal.frbc-home-screen #frbc-play-settings{grid-column:2!important}}@media(max-width:1100px)and (max-height:520px)and (orientation:landscape){html #game-dock :is(.dock-actions,.dock-secondary,.dice-values) button,html #game-dock #frbc-multiplayer-actions button{background:#0d1b28e6!important;border:1px solid #ffffff2e!important;border-radius:9px!important;color:#eff6fc!important;text-shadow:none!important}html #game-dock .dock-secondary button{background:#0d1b28e6!important;padding:0 8px!important}html #game-dock .dock-secondary :is(span,b,small){color:#e7f0f8!important}html #game-dock #cube-button{background:#0d1b28e6!important;border:1px solid #ffffff2e!important;border-radius:9px!important;color:#eff6fc!important}}@media(min-width:1101px){html body .brand{display:inline-flex!important;align-items:center!important;padding:10px 2px!important}html body .top-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:content-box!important;padding:21px 10px!important;line-height:14px!important;min-width:28px!important}html body #game-dock :is(#roll-button,#undo-button,#cube-button){box-sizing:content-box!important;padding-top:3px!important;padding-bottom:3px!important}html body #game-dock #hint-button{box-sizing:content-box!important;padding:3px 16px!important}html body #v28-rail{overflow:visible!important}html body #v28-rail-handle{box-sizing:content-box!important;padding:18px!important}html body #v28-hint-fold{box-sizing:content-box!important;padding:13px!important}}@media(min-width:1101px){html.frbc-pc-horizontal .topbar :is(.language-button,.account-hud),html.frbc-pc-horizontal .topbar #language-switch,html.frbc-pc-horizontal .topbar #hud-account{max-height:none!important;min-height:48px!important;height:48px!important;min-width:48px!important;padding:8px 12px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}html.frbc-v28-demo #v28-rail-handle{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;box-sizing:border-box!important;padding:0!important}}@media(min-width:1101px){html.frbc-pc-horizontal #language-switch[id],html.frbc-pc-horizontal #hud-account[id],html.frbc-pc-horizontal .topbar .top-actions>button[id]{height:48px!important;min-height:48px!important;max-height:none!important;padding:12px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}html.frbc-v28-demo #v28-rail-handle[id]{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;padding:0!important;box-sizing:border-box!important}}@media(min-width:1101px){html.frbc-pc-horizontal .topbar,html body .topbar{align-items:center!important;min-height:60px!important;height:auto!important;max-height:none!important;padding-top:6px!important;padding-bottom:6px!important}html.frbc-pc-horizontal .topbar .top-actions,html body .topbar .top-actions{align-items:center!important;height:auto!important;min-height:48px!important;max-height:none!important;margin-top:0!important;overflow:visible!important}html.frbc-pc-horizontal .topbar #language-switch[id],html.frbc-pc-horizontal .topbar #hud-account[id],html body .topbar #language-switch[id],html body .topbar #hud-account[id]{height:48px!important;min-height:48px!important;max-height:none!important;padding:0 12px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}html.frbc-pc-horizontal .brand,html body .brand{align-items:center!important;margin-top:0!important;min-height:48px!important}}
