/* Figma 11:282. Buttons are complete Figma exports, including their borders and shadows. */
body.home-screen{background:#f4fbff;--ad-banner-height:calc(70px + env(safe-area-inset-bottom,0px));color:#09111d}
#library{position:relative;isolation:isolate;max-width:560px;min-height:100dvh;margin:0 auto;background:#f4fbff;overflow:hidden}
#library::before{content:"";position:absolute;z-index:-1;inset:0;background:url('/assets/home/background.svg') center top/964px 842px no-repeat;pointer-events:none}
.home-screen #library{padding-bottom:calc(175px + env(safe-area-inset-bottom,0px))}
.home-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(16px + env(safe-area-inset-top,0px)) 20px 16px;min-height:76px}
.home-brand{display:block;flex:none}.home-brand img{display:block;width:80px;height:auto}
.home-account{display:flex;align-items:center;gap:8px;border:0;background:none;padding:0;min-width:0;max-width:58%;text-align:left;color:#09111d}
.home-account>img{width:40px;height:44px;object-fit:contain;flex-shrink:0}.home-account>span{min-width:0}.home-account strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800}.home-account small{display:block;font-size:11px;color:#3662ff;margin-top:2px}
.home-main{padding:0 20px;margin-top:103px}.home-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.home-heading h1{display:flex;align-items:center;gap:6px;font-size:18px;font-weight:900;letter-spacing:-.5px;line-height:24px;margin:0;color:#09111d}.home-heading h1::before{content:"";width:8px;height:8px;background:#ff85fe;border-radius:50%}.home-heading>span{font-size:13px;font-weight:700;color:#1b00c7;white-space:nowrap}.home-heading b{font-weight:inherit}.home-games{display:grid;gap:12px}
.home-card{display:grid;grid-template-columns:64px minmax(0,1fr) 89px;align-items:center;gap:14px;min-height:94px;padding:13px 12px;border:2px solid #3662ff;border-radius:20px;background:#fff;box-shadow:0 6px 8px #6339f90f}.home-art{position:relative;width:64px;height:64px;border-radius:12px;overflow:hidden;background:#e7f7ff}.home-art img{position:absolute;max-width:none}.sudoku-art img{width:115.62%;height:130.22%;left:-7.81%;top:-15.11%}.pang-art img{width:122.03%;height:134.69%;left:-10.43%;top:-17.89%}.home-art:not(.sudoku-art):not(.pang-art) img{inset:0;width:100%;height:100%;object-fit:contain}.home-game-info{min-width:0}.home-game-info h2{line-height:19px;margin:0 0 2px;font-size:16px;font-weight:900;letter-spacing:-.5px;color:#09111d}.home-game-info p{margin:0 0 2px;font-size:12px;line-height:16px;color:#767f8f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-version{display:inline-block;max-width:100%;font-size:12px;line-height:15px;border-radius:20px;padding:4px 12px;color:#3662ff;background:#c7e9ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.home-play{display:block;width:89px;height:40px}.home-play img{display:block;width:100%;height:100%;object-fit:contain}.home-card:active .home-play{transform:translateY(2px)}
.home-nav{position:fixed;z-index:16;bottom:var(--ad-banner-height);left:50%;transform:translateX(-50%);width:100%;max-width:560px;height:81px;display:grid;grid-template-columns:repeat(5,1fr);background:#fcfcfc;border-top:2px solid #f7f7f8;padding:14px 30px 7px;gap:4px}.home-nav>a{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:transparent;padding:0;min-width:0;font-size:11px;line-height:15px;color:#c4c4c4;font-weight:700;white-space:nowrap}.nav-icon{position:relative;display:block;width:44px;height:44px;flex:none}.nav-icon img{position:absolute;inset:0;width:44px;height:44px;object-fit:contain}.nav-icon .nav-active,.nav-icon .nav-pressed{visibility:hidden}.home-nav [aria-current]{color:#3662ff}.home-nav [aria-current] .nav-inactive{visibility:hidden}.home-nav [aria-current] .nav-active{visibility:visible}.home-nav a:active .nav-active,.home-nav a:active .nav-inactive{visibility:hidden}.home-nav a:active .nav-pressed{visibility:visible}.home-nav [aria-current]::before{content:"";position:absolute;top:-17px;width:28px;height:3px;border-radius:4px;background:#ff85fe}
.home-screen .ad-banner{max-width:560px;left:50%;right:auto;transform:translateX(-50%);width:100%;background:#e8ebfc;border-top:1px solid #c3c8d2;padding:9px 16px calc(10px + env(safe-area-inset-bottom,0px))}.home-screen .ad-banner-content{max-width:320px;height:50px;gap:8px;border:1.5px solid #e2e4f0;border-radius:6px;background:#fff;flex-wrap:nowrap;align-content:center}.home-screen .ad-label{font-size:11px;padding:2px 6px;background:#737380;color:white;border-radius:4px}.home-screen .ad-banner strong{font-size:13px;color:#737380}.home-screen .ad-caption{display:none}.home-screen #platform-status{bottom:calc(var(--ad-banner-height) + 90px)}
.home-main.is-subpage{margin-top:24px}.content-page{min-height:360px}.content-page h2{font-size:24px;font-weight:900;margin:0 0 12px;letter-spacing:-.6px}.content-page p{font-size:14px;line-height:1.7;color:#767f8f}.content-page label{display:block;font-size:14px;font-weight:700;margin-bottom:8px}.content-page input,.content-page textarea{font:inherit;border:1px solid #c3c8d2;border-radius:12px;padding:12px;background:white;color:#09111d;min-width:0;max-width:100%;font-size:16px}.content-page button:disabled{opacity:.5;cursor:wait}.content-page [role=alert]{color:#b93043}.content-page #records-panel{margin-top:30px}.content-page #records-panel h2{font-size:18px}.post-composer{background:white;border:2px solid #3662ff;border-radius:20px;padding:16px;margin:24px 0}.post-composer textarea{width:100%;resize:vertical;min-height:110px}.composer-actions,.board-heading,.post-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.composer-actions{margin-top:10px}.composer-actions span,.post-meta time{font-size:12px;color:#767f8f}.board-heading h3{font-size:16px}.community-post{background:white;border:1px solid #dce5ef;border-radius:16px;padding:18px;margin:12px 0}.post-meta{flex-wrap:wrap;gap:6px}.post-meta strong{font-size:14px;overflow-wrap:anywhere}.community-post .post-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#202a42;margin:14px 0 0}.community-post .quiet{display:block;margin:8px 0 -8px auto}.content-page #community-more{display:block;margin:20px auto}.content-page .code-card{background:white;border:1px solid #dce5ef}.home-nav a:focus-visible,.home-card:focus-visible{outline:3px solid #ff85fe;outline-offset:3px}
@media(max-width:360px){.home-header{padding-left:16px;padding-right:16px}.home-main{padding:0 12px}.home-card{grid-template-columns:52px minmax(0,1fr) 78px;gap:8px;padding:12px 10px}.home-art{width:52px;height:52px}.home-play{width:78px}.home-account{gap:4px}.home-account strong{font-size:12px}.home-nav{padding-left:12px;padding-right:12px}.home-heading>span{font-size:11px}}
@media(max-height:650px){.home-main{margin-top:28px}}

#sudoku-picker{width:calc(100% - 40px);max-width:362px;max-height:calc(100dvh - 24px);padding:26px 18px 30px;border:2px solid #4063ff;border-radius:20px;background:#f4fbff;overflow:auto;color:#0b1420}#sudoku-picker::backdrop{background:#000c}#sudoku-picker h2{margin:0 0 22px;text-align:center;font-size:24px;line-height:32px;color:#f4fbff;-webkit-text-stroke:1.2px #4063ff;paint-order:stroke fill;text-shadow:1px 1px #4063ff,-1px -1px #4063ff}.sudoku-levels{display:flex;flex-direction:column;gap:16px}.sudoku-levels button{display:flex;align-items:center;gap:8px;width:100%;min-height:58px;padding:14px 22px;border:2px solid #c5cad5;border-radius:16px;background:white;box-shadow:0 4px 0 #d9dce2;text-align:left;font:inherit;font-weight:700}.sudoku-levels span{width:16px;height:16px;border-radius:50%}.sudoku-levels .easy{background:#52ff00}.sudoku-levels .medium{background:#ffc400}.sudoku-levels .hard{background:red}#sudoku-cancel{display:block;margin:22px auto 0;padding:10px 18px;border:0;border-radius:12px;background:#e7edff;color:#334c94;font:inherit;cursor:pointer}.sudoku-levels button:active{transform:translateY(3px);box-shadow:0 1px 0 #d9dce2}
