:root { --ink:#243f40; --muted:#657872; --green:#21695c; --paper:#faf8f1; --line:#dce4dc; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:22px; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:'Segoe UI','Microsoft JhengHei',sans-serif; }
button,input { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }a { color:inherit; }
:is(a,button,input):focus-visible { outline:3px solid #d98d2d; outline-offset:4px; }
.skip-link { position:fixed; top:-80px; left:16px; background:#fff; padding:14px; z-index:10; }.skip-link:focus { top:10px; }
.hub-nav { max-width:1224px; padding:24px 32px; display:flex; align-items:center; justify-content:space-between; margin:auto; border-bottom:1px solid var(--line); }
.brand { color:var(--green); display:flex; gap:10px; align-items:center; font-weight:800; font-size:20px; text-decoration:none; }
.brand>span { width:40px; height:40px; border-radius:13px; background:#dbece1; display:grid; place-items:center; font-size:26px; }
.brand small { color:#7f9288; letter-spacing:.12em; font-size:10px; font-weight:600; margin-left:8px; }
#music-toggle { min-height:44px; border:1px solid var(--line); border-radius:100px; padding:10px 18px; background:transparent; color:var(--green); font-size:13px; font-weight:600; }
main { max-width:1224px; margin:auto; padding:0 32px; }
.hero { display:grid; grid-template-columns:1fr 1fr; min-height:470px; align-items:center; gap:24px; padding:48px 0 42px; }
.eyebrow { color:var(--green); font-size:11px; font-weight:700; letter-spacing:.14em; display:flex; gap:8px; align-items:center; }.eyebrow>span { width:7px; height:7px; background:#83a86d; border-radius:50%; }
h1 { font-size:clamp(38px,4.3vw,60px); line-height:1.26; letter-spacing:-.04em; margin:20px 0 18px; font-weight:850; }
h1>span { color:var(--green); position:relative; white-space:nowrap; }h1>span::after { content:''; position:absolute; left:2px; right:0; bottom:-5px; height:7px; border-radius:50%; border-top:3px solid #e9b85b; transform:rotate(-2deg); }
.hero-copy>p { font-size:16px; line-height:1.9; color:var(--muted); margin:0 0 25px; }
.hero-button { display:inline-flex; align-items:center; gap:25px; background:var(--green); color:#fff; padding:14px 21px; min-height:50px; text-decoration:none; border-radius:14px; font-size:14px; font-weight:700; box-shadow:0 4px 0 #184c44; }.hero-button:hover { background:#185647; transform:translateY(-1px); }.hero-button span { font-size:20px; }
.hero-note { color:#7b8d83; margin-top:19px; font-size:11px; }.hero-note span { color:#b98339; margin-right:6px; }
.hero-art { position:relative; height:390px; }.art-orbit { position:absolute; width:330px; height:330px; border:1px dashed #bed1c3; background:#f0f2e7; border-radius:50%; left:50%; top:50%; transform:translate(-50%,-50%); }
.art-tile { position:absolute; width:170px; height:182px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:30px; border:3px solid #fff; box-shadow:0 15px 25px #355b3810; }.art-tile>span { font-size:76px; line-height:1.2; filter:drop-shadow(0 6px 1px #00000010); }.art-tile small { font-weight:700; font-size:11px; letter-spacing:.08em; margin-top:14px; }
.tile-flower { background:#e6efda; transform:rotate(-12deg); left:6%; top:38px; }.tile-dice { background:#f8e5b6; transform:rotate(12deg); right:3%; top:65px; }.tile-fox { background:#f4dcca; transform:rotate(-3deg); left:37%; bottom:13px; }
.art-spark { position:absolute; font-size:35px; color:#b98b46; }.art-spark.one { top:0; left:50%; }.art-spark.two { right:5%; bottom:44px; color:#4f8a73; }
.art-tag { position:absolute; left:1%; bottom:75px; padding:10px 15px; font-size:10px; letter-spacing:.12em; font-weight:800; transform:rotate(-12deg); border:1px solid #6c9e81; border-radius:50%; color:#4e8266; }
.art-cloud { position:absolute; width:60px; height:20px; border-radius:40px; background:#e4e9df; }.art-cloud::before { content:''; position:absolute; background:inherit; width:28px; height:28px; left:17px; bottom:3px; border-radius:50%; }.cloud-one { left:4%; top:9px; }.cloud-two { right:5%; bottom:126px; background:#e4e4d3; }
.art-dot { position:absolute; width:9px; height:9px; border-radius:50%; background:#9ac39d; }.dot-one { right:28%; top:8px; }.dot-two { left:27%; bottom:22px; background:#ddab69; }
.collection { padding:35px 0 0; border-top:1px solid var(--line); }.collection-heading { display:flex; justify-content:space-between; gap:15px; align-items:flex-end; }
h2 { font-size:26px; margin:10px 0 0; letter-spacing:-.025em; }h2>span { color:#85a876; }#game-count { font-size:12px; color:var(--muted); padding-bottom:4px; white-space:nowrap; }
.collection-tools { display:flex; justify-content:space-between; gap:16px; align-items:center; flex-wrap:wrap; padding:25px 0; }.filters { display:flex; gap:7px; flex-wrap:wrap; }
.filters button { min-height:42px; padding:9px 14px; border:1px solid var(--line); border-radius:11px; background:transparent; color:#63776e; font-size:12px; font-weight:600; }.filters button[aria-pressed="true"] { background:var(--green); color:#fff; border-color:var(--green); }.filters button:hover { border-color:#79a08c; }
.search-box { display:flex; gap:7px; align-items:center; padding:8px 12px; border:1px solid var(--line); background:#fff; border-radius:11px; min-height:42px; }.search-box span { font-size:23px; color:#789589; }.search-box input { border:0; width:145px; min-width:0; background:transparent; color:var(--ink); font-size:12px; outline-offset:9px; }
.game-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }.game-card { border:1px solid var(--line); border-radius:20px; overflow:hidden; background:#fff; display:flex; flex-direction:column; min-width:0; transition:transform .2s,box-shadow .2s; }.game-card:hover { transform:translateY(-4px); box-shadow:0 12px 28px #2d503511; }
.game-art { height:146px; position:relative; background:var(--tint); overflow:hidden; display:grid; place-items:center; text-decoration:none; }.game-art::before { content:''; position:absolute; width:140px; height:140px; border-radius:50%; border:1px solid #ffffffb3; left:-35px; top:-35px; }.game-art::after { content:''; position:absolute; width:120px; height:120px; border:20px solid #ffffff40; border-radius:30px; right:-28px; bottom:-48px; transform:rotate(25deg); }
.game-art>span { font-size:66px; position:relative; z-index:1; transform:rotate(-7deg); text-shadow:0 5px 1px #2037290b; transition:transform .25s; }.game-card:hover .game-art>span { transform:rotate(4deg) scale(1.05); }.art-star { position:absolute; right:22%; top:22px; color:var(--accent); opacity:.5; font-size:19px; }.art-tiny { position:absolute; left:18%; bottom:20px; width:6px; height:6px; border-radius:50%; background:var(--accent); opacity:.3; }
.card-content { padding:17px 18px 14px; flex:1; display:flex; flex-direction:column; }.category { color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.04em; display:flex; justify-content:space-between; align-items:center; gap:5px; }.category small { font-size:9px; font-weight:500; color:#70857a; }
.game-card h3 { font-size:17px; letter-spacing:-.02em; margin:8px 0; line-height:1.5; }.game-card h3 a { text-decoration:none; }.card-description { font-size:12px; line-height:1.85; color:#687c71; margin:0 0 17px; flex:1; }
.card-foot { border-top:1px solid #edf0e9; padding-top:12px; display:flex; align-items:center; justify-content:space-between; gap:10px; }.card-record { color:#7d8e83; font-size:10px; }.card-record b { color:var(--accent); font-size:12px; margin-left:3px; }.play-link { text-decoration:none; color:var(--accent); font-size:12px; font-weight:800; min-height:44px; display:flex; align-items:center; gap:8px; }.play-link>span { width:25px; height:25px; border:1px solid #e0e8df; border-radius:50%; display:grid; place-items:center; }
#empty-state { padding:40px; text-align:center; color:var(--muted); }.play-note { display:flex; gap:20px; align-items:center; padding:25px 30px; background:#ebf0e4; border-radius:19px; margin:42px 0; }.play-note>span:first-child { font-size:35px; }.play-note strong { font-size:15px; }.play-note p { font-size:12px; color:#70806d; margin:7px 0 0; line-height:1.8; }.note-doodle { margin-left:auto; font-size:36px; color:#8aa377; }
footer { display:flex; max-width:1224px; margin:auto; padding:25px 32px 34px; border-top:1px solid var(--line); justify-content:space-between; align-items:center; gap:20px; }footer .brand { font-size:15px; }footer .brand>span { width:30px; height:30px; font-size:22px; }footer p { color:#7b8c7f; font-size:11px; text-align:right; }footer p span { display:block; font-size:8px; letter-spacing:.16em; margin-top:6px; }
@media(max-width:1050px) { .game-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.hero-art { transform:scale(.9); }.brand small { display:none; } }
@media(max-width:760px) { .game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.hub-nav { padding:18px 20px; }main { padding:0 20px; }.hero { grid-template-columns:1fr; padding:32px 0; gap:0; }.hero-copy { text-align:center; }.hero-copy .eyebrow { justify-content:center; }h1 { font-size:42px; }.hero-art { width:min(440px,100%); height:305px; margin:15px auto 0; transform:none; }.art-tile { width:135px; height:140px; border-radius:24px; }.art-tile>span { font-size:59px; }.art-tile small { font-size:9px; }.tile-flower { left:5%; top:30px; }.tile-dice { right:4%; top:45px; }.tile-fox { left:34%; bottom:10px; }.art-orbit { width:260px; height:260px; }.art-tag { font-size:8px; left:0; bottom:52px; }.collection { padding-top:25px; }.collection-heading h2 { font-size:23px; }.collection-heading { align-items:center; }.search-box { width:100%; }.search-box input { width:100%; }.collection-tools { padding:20px 0; }.play-note { padding:22px; }.note-doodle { display:none; }footer { padding:24px 20px; } }
@media(max-width:430px) { .brand { font-size:17px; gap:7px; }.brand>span { width:33px; height:33px; }#music-toggle { padding:8px 12px; font-size:12px; }.hub-nav { padding:14px 16px; }main { padding:0 16px; }.hero-copy>p { font-size:14px; }h1 { font-size:37px; }.collection-heading { align-items:flex-start; }.collection-heading h2 { font-size:21px; }#game-count { font-size:10px; padding-top:25px; }.filters { gap:6px; }.filters button { padding:8px 11px; font-size:11px; }.game-grid { gap:12px; }.game-art { height:120px; }.game-art>span { font-size:55px; }.card-content { padding:13px 12px 9px; }.game-card h3 { font-size:15px; }.card-description { font-size:11px; margin-bottom:12px; }.category { font-size:9px; }.category small { display:none; }.card-foot { gap:3px; flex-wrap:wrap; padding-top:6px; }.card-record { font-size:9px; }.play-link { font-size:11px; margin-left:auto; }.play-note { margin:28px 0; padding:19px 16px; gap:12px; }.play-note p { font-size:11px; }footer { flex-wrap:wrap; }footer p { text-align:left; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }* { transition:none !important; } }
/* Keyboard selection lets players enter a game without reaching for a mouse. */
.home-keyboard-hint { color:#5b746c; font-size:12px; margin:0 0 16px; }
.game-card.keyboard-selected { outline:3px solid var(--accent); outline-offset:3px; }
@media (pointer:coarse) { .home-keyboard-hint { display:none; } }
