@font-face{font-family:MenuYomogi;src:url('assets/home-menu/yomogi-menu-v1.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
html.home-menu-root,html.home-menu-root body{height:100%;overflow:hidden;overscroll-behavior:none}
body.hand-menu[data-screen="home"]{--menu-ink:#354e56;--menu-pencil:#927b5b;--menu-paper:#fff9e9;display:flex;flex-direction:column;height:100vh;height:100svh;color:var(--menu-ink);background:#fff6e2 url('assets/home-menu/sea-paper-v1.webp') no-repeat center bottom/cover;isolation:isolate}
body.hand-menu[data-screen="home"]>.app-header{flex:none;width:min(100%,1160px);max-width:none;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 20px;padding:12px 26px 4px;margin:0 auto}
body.hand-menu[data-screen="home"] .brand{grid-column:1;grid-row:1;padding:0;min-width:0;color:#375d65;font-family:MenuYomogi,"Yu Gothic",sans-serif;font-size:clamp(20px,2.5vw,30px);font-weight:400;white-space:nowrap;line-height:1.3;letter-spacing:-.07em}
body.hand-menu[data-screen="home"] .brand>span:last-child{display:block}.hand-menu[data-screen="home"] .brand br,.hand-menu[data-screen="home"] .brand-dot{display:none}
body.hand-menu[data-screen="home"] .brand small{font:inherit;letter-spacing:inherit}
body.hand-menu[data-screen="home"] .app-header nav{grid-column:2;grid-row:1;display:flex;gap:8px;align-items:center}
body.hand-menu[data-screen="home"] .app-header nav>[data-home-screen="home"]{display:none}
body.hand-menu[data-screen="home"] .app-header>.menu-bgm-toggle{grid-column:3;grid-row:1;min-width:46px;min-height:40px}
body.hand-menu[data-screen="home"] .app-header .ghost-btn{border:1.5px solid #b4bca1;border-radius:11px 14px 10px 13px;background:#fffbed;color:#496164;padding:7px 13px;font-size:12px;min-height:40px;box-shadow:0 2px 0 #d3cfb3}
body.hand-menu[data-screen="home"] .app-header .ghost-btn:active{transform:translateY(2px);box-shadow:none}
body.hand-menu[data-screen="home"]>main{display:flex;flex:1;min-height:0;width:min(100%,1120px);max-width:none;margin:0 auto;padding:7px 26px 10px}
body.hand-menu[data-screen="home"]>footer{display:none}
body.hand-menu #screen-home.active{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;gap:9px;width:100%;height:100%;min-height:0;position:relative}
.home-menu-heading{display:flex;align-items:center;justify-content:space-between;min-width:0}
.home-menu-heading h1{font:400 clamp(20px,2.3vw,27px)/1.35 MenuYomogi,"Yu Gothic",sans-serif;margin:0;color:#38545c;letter-spacing:.02em}
.home-menu-coins{display:flex;gap:6px;align-items:center;border-bottom:1px dashed #c6a15d;font-size:12px;color:#7c622e;white-space:nowrap;padding:2px 6px}.home-menu-coins>span{color:#bb8a34}
.home-menu-tabs{display:flex;justify-content:center;gap:20px;min-height:37px;border-bottom:1px dashed #bcb591}
.home-menu-tabs>button{position:relative;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:4px 10px 7px;color:#777966;font:400 17px/1.3 MenuYomogi,"Yu Gothic",sans-serif;min-height:37px;min-width:115px}
.home-menu-tabs>button[aria-selected="true"]{color:#315c5c;border-color:#d6a249}
.home-menu-tabs>button small{display:inline-block;font:700 10px/1.4 system-ui,sans-serif;color:#797159;margin-left:3px;vertical-align:middle}
.home-menu-board{min-height:0;min-width:0;touch-action:pan-y pinch-zoom;position:relative;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.hand-menu #screen-home .game-grid{display:grid;grid-template-columns:repeat(var(--menu-columns,2),minmax(0,1fr));grid-template-rows:repeat(var(--menu-rows,3),minmax(0,1fr));gap:var(--menu-gap,10px);width:100%;height:100%;min-height:0}
body.hand-menu #screen-home .game-grid[hidden]{display:none}
body.hand-menu #screen-home .hand-game{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:0;min-width:0;height:100%;padding:6px 8px 5px;position:relative;overflow:visible;border:2px solid transparent;border-radius:19px 15px 20px 16px;background:rgba(255,250,231,.52);box-shadow:none;color:#344d54;text-align:center;transition:background .14s ease,transform .14s ease,border-color .14s ease}
body.hand-menu #screen-home .hand-game[hidden]{display:none!important}
body.hand-menu #screen-home .hand-game:first-child{min-height:0;background:rgba(255,250,231,.52)}
body.hand-menu #screen-home .hand-game:hover{background:#fffcef;border-color:#ccae69;box-shadow:0 3px 0 #e4d5aa;transform:translateY(-2px)}
body.hand-menu #screen-home .hand-game:active{transform:scale(.97);background:#fff0c9;border-color:#ccae69;box-shadow:none}
body.hand-menu #screen-home .hand-game:focus-visible{border-color:#aa7b35;outline:2px solid #aa7b35;outline-offset:1px;background:#fff9db}
body.hand-menu #screen-home .hand-game-art{display:block;width:var(--menu-art-size,110px);height:var(--menu-art-size,110px);flex:none;border-radius:16px 19px 15px 18px;background-image:url('assets/home-menu/game-atlas-v1.webp');background-size:400% 400%;background-position:var(--art-x) var(--art-y);background-repeat:no-repeat;box-shadow:0 2px 0 rgba(130,112,67,.11)}
body.hand-menu #screen-home .hand-game strong{display:flex;align-items:center;justify-content:center;min-height:38px;padding:0;width:100%;font:400 clamp(14px,1.5vw,18px)/1.22 MenuYomogi,"Yu Gothic",sans-serif;color:#334e54;letter-spacing:-.055em;overflow-wrap:anywhere}
body.hand-menu #screen-home .hand-game small{display:block;min-height:14px;max-width:100%;font:500 10px/1.35 system-ui,"Yu Gothic",sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#7e7155;margin:0}
.home-menu-pages{display:flex;justify-content:center;align-items:center;gap:19px;position:relative;min-height:43px}
.home-menu-pages>button{width:46px;height:42px;min-height:42px;border:1.5px solid #bcb397;border-radius:13px 17px 12px 15px;background:#fffae9;color:#56766e;font:400 30px/1 MenuYomogi,serif;box-shadow:0 2px 0 #dfd1ab;padding:0}
.home-menu-pages>button:disabled{opacity:.3;box-shadow:none}.home-menu-pages>div{display:flex;align-items:center;gap:9px}
#homePageDots{display:flex;gap:3px}#homePageDots>button{width:30px;height:36px;background:none;border:0;position:relative;padding:0}#homePageDots>button:before{content:"";display:block;width:9px;height:9px;margin:auto;border:1.5px solid #a79b7a;border-radius:48% 56% 51% 44%;background:#fff8dd}#homePageDots>button[aria-current="page"]:before{background:#ca9850;border-color:#b18b4b;transform:rotate(-12deg)}
#homePageStatus{font-size:11px;color:#786f55;min-width:30px}.home-swipe-hint{position:absolute;right:2px;bottom:12px;font:400 13px/1.3 MenuYomogi,sans-serif;color:#807858}
.home-menu-bottom{display:flex;justify-content:center;gap:10px;align-items:center;min-width:0;border-top:1px dashed #c7bc96;padding-top:5px}
.home-menu-bottom button{background:#fff9e8;border:1px solid #c9bfa1;border-radius:10px 13px 11px 14px;color:#5c6c5c;min-height:35px;padding:4px 12px;font-size:11px;white-space:nowrap}
.home-menu-bottom .home-player-chip{display:flex;gap:6px;align-items:center;min-width:0;max-width:290px}.home-player-chip #homePlayerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-player-chip>span:first-child{font-size:18px;color:#b88745}
.home-menu-legal{margin:0;text-align:center;font:400 10px/1.4 system-ui,sans-serif;color:#777c6b}.home-menu-legal a{color:inherit;text-underline-offset:3px;display:inline-block;padding:1px 4px}
body.hand-menu[data-screen="home"] .app-update-notice{position:fixed;z-index:110;top:max(70px,env(safe-area-inset-top));left:50%;width:min(460px,calc(100vw - 30px));margin:0;transform:translateX(-50%);box-shadow:0 8px 24px #344d5438;background:#fffdf1}
.home-menu-info{width:min(540px,calc(100vw - 28px));max-height:85vh;max-height:85svh;overflow:auto;border:2px solid #c0b594;border-radius:23px;background:#fff9e8;color:#38535c;padding:22px}.home-menu-info::backdrop{background:#29484988}
.home-menu-info>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.home-menu-info h2{font:400 24px/1.5 MenuYomogi,sans-serif;margin:0}.home-menu-info button[data-menu-info-close]{border:1px solid #bcb397;border-radius:12px;background:#fffdf5;min-width:44px;min-height:44px;font-size:23px;color:#56766e}.home-menu-info>p{font-size:13px;line-height:1.8}.home-menu-info .player-banner,.home-menu-info .install-banner{margin:15px 0;max-width:100%}.home-menu-info .player-banner{padding:13px;gap:10px}.home-menu-info .install-banner{padding:13px;gap:10px;flex-wrap:wrap}
@keyframes homePageIn{from{opacity:.3;transform:translateX(var(--page-in,10px))}to{opacity:1;transform:none}}
.home-menu-board.is-changing .game-grid:not([hidden]){animation:homePageIn .19s ease-out}
@media(max-width:700px){
 body.hand-menu[data-screen="home"]>.app-header{grid-template-columns:minmax(0,1fr) auto;gap:7px 8px;padding:calc(7px + env(safe-area-inset-top)) 16px 3px}
 body.hand-menu[data-screen="home"] .brand{font-size:clamp(18px,5.25vw,25px)}
 body.hand-menu[data-screen="home"] .app-header>.menu-bgm-toggle{grid-column:2;grid-row:1;min-width:43px;min-height:36px;padding:4px 7px;font-size:10px}
 body.hand-menu[data-screen="home"] .app-header nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;gap:9px}
 body.hand-menu[data-screen="home"] .app-header nav .ghost-btn{min-height:36px;min-width:77px;padding:5px 12px;font-size:11px}
 body.hand-menu[data-screen="home"]>main{padding:6px 14px calc(5px + env(safe-area-inset-bottom))}
 body.hand-menu #screen-home.active{gap:6px}
 .home-menu-heading h1{font-size:21px}.home-menu-heading{min-height:30px}.home-menu-coins{font-size:10px}
 .home-menu-tabs{gap:13px;min-height:34px}.home-menu-tabs>button{min-height:34px;font-size:16px;padding:2px 10px 5px}
 body.hand-menu #screen-home .hand-game strong{font-size:16px;min-height:37px}
 .home-swipe-hint{display:none}.home-menu-pages{min-height:40px;gap:13px}.home-menu-pages>button{height:38px;min-height:38px}
 .home-menu-bottom{gap:6px;justify-content:space-between}.home-menu-bottom button{padding:3px 8px;min-height:33px;font-size:10px}.home-menu-bottom .home-player-chip{max-width:48%;flex:1}
 .home-menu-legal{font-size:9px;line-height:1.3}
}
@media(max-height:650px){
 body.hand-menu[data-screen="home"]>.app-header{padding-top:calc(4px + env(safe-area-inset-top));gap:4px 8px}
 body.hand-menu[data-screen="home"] .app-header nav .ghost-btn{min-height:32px;padding-top:3px;padding-bottom:3px}
 body.hand-menu #screen-home.active{gap:4px}.home-menu-heading{min-height:25px}.home-menu-heading h1{font-size:19px}.home-menu-tabs>button{min-height:31px;font-size:15px}.home-menu-tabs{min-height:31px}
 body.hand-menu #screen-home .hand-game{gap:2px;padding:3px 5px}.home-menu-pages{min-height:36px}.home-menu-pages>button{height:34px;min-height:34px}.home-menu-bottom button{min-height:30px}
}
@media(min-width:640px) and (max-height:550px){
 body.hand-menu[data-screen="home"]>.app-header{grid-template-columns:minmax(0,1fr) auto auto;padding:calc(3px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));gap:5px 10px}
 body.hand-menu[data-screen="home"] .brand{font-size:22px}
 body.hand-menu[data-screen="home"] .app-header nav{grid-column:2;grid-row:1}.hand-menu[data-screen="home"] .app-header>.menu-bgm-toggle{grid-column:3!important;grid-row:1}
 body.hand-menu[data-screen="home"]>main{padding-top:2px;padding-bottom:max(3px,env(safe-area-inset-bottom));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
 .home-menu-heading{min-height:22px}.home-menu-tabs{position:absolute;left:50%;top:0;transform:translateX(-50%);border:0;z-index:1;min-height:26px}.home-menu-tabs>button{min-height:26px;padding:0 8px 3px;font-size:14px;min-width:95px}
 body.hand-menu #screen-home.active{grid-template-rows:26px minmax(0,1fr) 35px 30px;gap:3px}
 .home-menu-board{grid-row:2}.home-menu-pages{grid-row:3}.home-menu-bottom{grid-row:4;padding-top:0;border-top:0}.home-menu-legal{position:absolute;bottom:8px;right:0;font-size:9px}.home-menu-bottom{justify-content:flex-start;width:60%}.home-menu-bottom button{min-height:28px}
 body.hand-menu #screen-home .hand-game strong{min-height:30px;font-size:15px}.home-menu-coins{font-size:10px}
}
@media(min-aspect-ratio:1/1){body.hand-menu[data-screen="home"]{background-image:url('assets/home-menu/sea-paper-wide-v1.webp')}}
@media(prefers-reduced-motion:reduce){body.hand-menu #screen-home .hand-game{transition:none}.home-menu-board.is-changing .game-grid:not([hidden]){animation:none}}
