:root { --accent:#ffc36c; --text:#eef1f7; --muted:#aab5c8; }
main { max-width:1120px; padding-top:42px; }
.intro { margin-bottom:16px; }.capabilities { margin-bottom:24px; }
.game-picker { margin-bottom:20px; }
.filter-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.filter-tabs button { display:flex; align-items:center; gap:8px; font-family:inherit; font-size:13px; font-weight:600; line-height:1.5; border:1px solid #ffffff18; border-radius:24px; padding:9px 14px; min-height:42px; background:#ffffff04; color:#b3bfd1; cursor:pointer; transition:background .15s,border-color .15s; }
.filter-tabs span { font-size:11px; opacity:.7; }
.filter-tabs button[aria-pressed=true] { background:#ffc36c; color:#241b0e; border-color:#ffc36c; }
.filter-tabs button:hover:not([aria-pressed=true]) { background:#ffffff0d; border-color:#ffffff35; }
.filter-status { margin:10px 2px 0; color:#a2aec2; font-size:12px; }
.games { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.art { height:176px; }.details { padding:20px; }.details h2 { font-size:25px; }.details p { font-size:13px; }
.mini2048 { transform:scale(.82) rotate(-6deg); }.mini-box { transform:scale(.78) rotate(6deg); }.mini-cat { width:145px; height:145px; }.mini-tetris { height:152px; width:105px; }.mini-threes { transform:scale(.9) rotate(-7deg); }
.game { min-width:0; }.details { min-width:0; }.game .art { transition:filter .2s; }.game:hover .art { filter:brightness(1.12); }
@media(min-width:621px) and (max-width:900px) { .games { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) {
  main { padding:24px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  h1 { font-size:36px; margin-top:18px; }.intro { font-size:14px; }.capabilities { font-size:11px; gap:6px; margin-bottom:20px; }
  .filter-tabs { gap:6px; }.filter-tabs button { padding:8px 10px; font-size:12px; }.filter-tabs span { display:none; }
  .games { grid-template-columns:1fr; gap:12px; }
  .game { display:grid; grid-template-columns:108px minmax(0,1fr); border-radius:18px; }
  .art { height:100%; min-height:186px; border:0; border-right:1px solid #ffffff08; overflow:hidden; }
  .details { padding:16px 14px; }.details h2 { font-size:22px; margin:9px 0 7px; }.details p { font-size:12px; margin-bottom:10px; line-height:1.7; }.details p br { display:none; }.tag { font-size:10px; padding:2px 7px; }
  .game-record { font-size:11px!important; margin-bottom:8px!important; min-height:0; }.play { font-size:12px; }.play span:last-child { font-size:20px; }
  .mini2048 { transform:scale(.46) rotate(-6deg); }.mini-box { transform:scale(.46) rotate(6deg); }.mini-threes { transform:scale(.42) rotate(-7deg); }.mini-tetris { width:72px; height:114px; }.mini-cat { width:100px; height:100px; }
}
@media(max-width:350px) { .game { grid-template-columns:84px minmax(0,1fr); }.details { padding:14px 12px; }.details h2 { font-size:20px; }.mini-cat { width:80px; height:80px; } }
@media(prefers-reduced-motion:reduce) { .filter-tabs button,.game .art { transition:none; } }

.art { min-width:0; grid-template-columns:minmax(0,1fr); }

.block-puzzle:hover{border-color:#86cbd6}.block-puzzle .art{background:radial-gradient(ellipse at 50% 35%,#29464e,#1d222e 75%)}.block-puzzle .tag{color:#a6dce3;border-color:#395d66}.block-puzzle .play{color:#a6dce3}.mini-block-puzzle{width:136px;height:136px;transform:rotate(-6deg);filter:drop-shadow(0 10px 14px #0004)}
@media(max-width:620px){.mini-block-puzzle{width:88px;height:88px}}
.sudoku:hover { border-color: #9ac0aa; }
.sudoku .art { background: radial-gradient(ellipse at 49% 36%, #3d645b, #1d222e 78%); }
.sudoku .tag { color: #add3bd; border-color: #446557; }
.sudoku .play { color: #b3dfc8; }
.mini-sudoku { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); width: 123px; height: 123px; transform: rotate(-7deg); gap: 1px; padding: 2px; background: #72867c; border-radius: 4px; box-shadow: 0 10px 19px #0005; }
.mini-sudoku span { display: grid; place-items: center; background: #e6eee8; color: #233e34; font-size: 21px; font-weight: 730; }
.mini-sudoku .mini-sudoku-focus { background: #fbdf9f; color: #704201; }
@media(max-width:620px){.mini-sudoku{width:70px;height:70px}.mini-sudoku span{font-size:13px}}

.woodland:hover { border-color:#99ad75; }
.woodland .art {
  overflow: hidden;
  background: linear-gradient(#d6ae80 0 42%, #71896d 42% 62%, #50694c 62% 78%, #2b4238 78%);
}
.woodland .tag { color:#d1daa3; border-color:#52634b; }
.woodland .play { color:#cfdeaa; }
.mini-woodland { width: 100%; height: 100%; position: relative; overflow: hidden; }
.mini-moon {
  position:absolute; left:60%; top:13%; width:37px; height:36px;
  background:#f2d7a0; clip-path:polygon(22% 0,78% 0,78% 10%,90% 10%,90% 22%,100% 22%,100% 78%,90% 78%,90% 90%,78% 90%,78% 100%,22% 100%,22% 90%,10% 90%,10% 78%,0 78%,0 22%,10% 22%,10% 10%,22% 10%);
}
.mini-trees { position:absolute; inset:10% -5% 34%; background:repeating-linear-gradient(90deg,#49675a 0 29px,#537365 29px 46px); clip-path:polygon(0 66%,7% 26%,13% 63%,20% 11%,29% 56%,35% 34%,43% 66%,50% 30%,56% 65%,63% 41%,70% 64%,77% 23%,83% 58%,90% 15%,96% 51%,100% 35%,100% 100%,0 100%); }
.mini-path { position:absolute; inset:69% 5% 16%; background:#9f9b69; clip-path:polygon(3% 19%,19% 19%,19% 0,80% 0,80% 10%,100% 10%,100% 68%,86% 68%,86% 100%,20% 100%,20% 83%,0 83%,0 37%,3% 37%); }
.mini-pet { position:absolute; bottom:19%; width:48px; height:48px; }
.mini-fox {
  left:30%; background:#e18856;
  clip-path:polygon(0 58%,15% 58%,15% 44%,34% 44%,34% 7%,43% 7%,43% 20%,55% 20%,55% 26%,65% 26%,65% 13%,76% 13%,76% 42%,86% 42%,86% 54%,100% 54%,100% 72%,80% 72%,80% 90%,67% 90%,67% 80%,48% 80%,48% 93%,35% 93%,35% 78%,13% 78%,13% 70%,0 70%);
}
.mini-fox::before { content:""; position:absolute; top:46%; right:24%; width:5px; height:5px; background:#2a2e28; box-shadow:9px 9px #f5d7a3,14px 9px #f5d7a3,9px 14px #f5d7a3; }
.mini-frog {
  left:64%; background:#a3bd76; transform:scale(.8);
  clip-path:polygon(0 56%,12% 56%,12% 29%,32% 29%,32% 41%,67% 41%,67% 29%,87% 29%,87% 50%,100% 50%,100% 78%,87% 78%,87% 91%,66% 91%,66% 79%,33% 79%,33% 91%,12% 91%,12% 79%,0 79%);
}
.mini-frog::before { content:""; position:absolute; top:42%; left:22%; width:5px; height:5px; background:#2f4936; box-shadow:24px 0 #2f4936,5px 15px #d4cf8a,10px 15px #d4cf8a,15px 15px #d4cf8a,20px 15px #d4cf8a; }
@media(max-width:620px) {
  .mini-moon { left:55%; width:22px; height:22px; }
  .mini-pet { transform:scale(.64); bottom:19%; }
  .mini-fox { left:7%; }
  .mini-frog { left:48%; transform:scale(.57); }
}
