.game-hub{min-height:100dvh;padding:20px 14px 28px;display:flex;justify-content:center;align-items:flex-start;background:radial-gradient(circle at 18% 12%,hsla(0,0%,100%,.65),transparent 30%),radial-gradient(circle at 82% 8%,rgba(255,224,150,.55),transparent 32%),linear-gradient(180deg,#b7e3ff,#dff3ff 34%,#b7e7a4);color:#231710;font-family:Inter,ui-sans-serif,system-ui,sans-serif}.game-hub-shell{width:min(560px,100%);display:grid;grid-gap:18px;gap:18px}.game-hub-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-hub-header h1{margin:0;font-size:30px;line-height:1.1}.game-hub-header p{margin:4px 0 0;font-size:14px;color:#4b5a45}.hub-badge{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;font-size:28px;background:linear-gradient(145deg,#6b3a1f,#3d2213);box-shadow:0 14px 24px rgba(0,0,0,.2)}.game-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:12px;gap:12px}.game-card{display:grid;grid-gap:8px;gap:8px;padding:14px;border-radius:20px;background:hsla(0,0%,100%,.78);border:1px solid hsla(0,0%,100%,.8);box-shadow:0 12px 26px rgba(31,53,32,.12);color:#2b3a28;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease}.game-card:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(31,53,32,.18)}.game-card-icon{font-size:26px}.game-card-title{font-size:17px;font-weight:900}.game-card-text{font-size:13px;color:#556b52}.hub-footer{display:flex;justify-content:flex-end}.back-link{color:#2b3a28;text-decoration:none;font-size:14px;padding:10px 14px;border-radius:12px;background:hsla(0,0%,100%,.7);border:1px solid hsla(0,0%,100%,.8)}@media (max-width:420px){.game-grid{grid-template-columns:1fr}.game-hub-header h1{font-size:26px}}.board-2048{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:8px;gap:8px;background:hsla(0,0%,100%,.6);padding:10px;border-radius:20px}.cell-2048{aspect-ratio:1;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:clamp(18px,6vw,28px);color:#2f3a2b;background:#e8f1e5;box-shadow:inset 0 2px 0 hsla(0,0%,100%,.6),inset 0 -2px 0 rgba(70,90,70,.1)}.cell-2{background:#f7dcb8}.cell-4{background:#f7c8a0}.cell-8{background:#f7b47c}.cell-16{background:#f79e56}.cell-32{background:#f5874a}.cell-64{background:#f76f3a}.cell-128{background:#f65e3b}.cell-256{background:#edcf72}.cell-512{background:#edc850}.cell-1024{background:#edc53f}.cell-2048{background:#edc22e}.snake-board{display:grid;grid-template-columns:repeat(12,1fr);grid-gap:2px;gap:2px;background:hsla(0,0%,100%,.6);padding:8px;border-radius:20px;touch-action:none}.snake-cell{aspect-ratio:1;border-radius:4px;background:#e8f1e5}.snake-body{background:#5ec488}.snake-head{background:#2f9e60}.snake-food{background:#ff8a65}.memory-board{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:8px;gap:8px}.memory-card{aspect-ratio:1;border:0;border-radius:14px;font-size:clamp(22px,7vw,34px);background:#f4f7f2;cursor:pointer;box-shadow:inset 0 2px 0 hsla(0,0%,100%,.7),inset 0 -2px 0 rgba(70,90,70,.12);transition:transform .16s ease,background .16s ease}.memory-open{background:#fff3c4;transform:scale(1.03)}.memory-done{background:#d3f3d1;cursor:default}.tictactoe-board{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px}.tictactoe-cell{aspect-ratio:1;border:0;border-radius:16px;font-size:clamp(28px,10vw,46px);font-weight:900;background:#f4f7f2;color:#2f3a2b;cursor:pointer;box-shadow:inset 0 2px 0 hsla(0,0%,100%,.7),inset 0 -2px 0 rgba(70,90,70,.12)}.simon-board{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;gap:10px}.simon-button{aspect-ratio:1;border:0;border-radius:20px;opacity:.7;transition:opacity .2s ease,transform .2s ease}.simon-active{opacity:1;transform:scale(1.03)}.simon-red{background:#ff6b6b}.simon-green{background:#5ff59b}.simon-blue{background:#7fd7ff}.simon-yellow{background:#ffd08a}.mole-board{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:10px;gap:10px}.mole-hole{aspect-ratio:1;border:0;border-radius:18px;font-size:clamp(28px,9vw,44px);background:#e8f1e5;cursor:pointer;box-shadow:inset 0 2px 0 hsla(0,0%,100%,.7),inset 0 -2px 0 rgba(70,90,70,.12);transition:background .2s ease,transform .2s ease}.mole-active{background:#fff3c4;transform:scale(1.04)}.game-page{min-height:100dvh;padding:18px 14px 24px;display:flex;justify-content:center;align-items:flex-start;color:#231710;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:radial-gradient(circle at 18% 12%,hsla(0,0%,100%,.65),transparent 30%),radial-gradient(circle at 82% 8%,rgba(255,224,150,.55),transparent 32%),linear-gradient(180deg,#b7e3ff,#dff3ff 34%,#b7e7a4)}.game-shell{width:min(560px,100%);display:grid;grid-gap:14px;gap:14px}.game-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-title{margin:0;font-size:28px;line-height:1.1}.game-subtitle{margin:4px 0 0;font-size:14px;color:#4b5a45}.game-badge{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;font-size:28px;background:linear-gradient(145deg,#6b3a1f,#3d2213);box-shadow:0 14px 24px rgba(0,0,0,.2)}.stats{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px}.stat{background:hsla(0,0%,100%,.78);border:1px solid hsla(0,0%,100%,.8);border-radius:16px;padding:10px 12px;box-shadow:0 12px 26px rgba(31,53,32,.12)}.stat-label{display:block;font-size:12px;color:#556b52;margin-bottom:2px}.stat-value{font-size:20px;font-weight:800}.board-wrap{position:relative;padding:10px;border-radius:24px;background:hsla(0,0%,100%,.75);border:1px solid hsla(0,0%,100%,.8);box-shadow:0 24px 60px rgba(25,51,28,.18)}.overlay{position:absolute;inset:0;border-radius:24px;background:hsla(0,0%,100%,.86);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:grid;place-items:center;text-align:center;padding:20px}.overlay-title{font-size:24px;margin:0 0 6px;color:#25301f}.overlay-text{margin:0 0 16px;color:#4b5a45}.btn{border:0;border-radius:16px;padding:12px 18px;min-height:48px;font-weight:900;font-size:15px;color:#2c1b09;background:linear-gradient(180deg,#ffce54,#f97316);box-shadow:0 14px 30px rgba(249,115,22,.25);cursor:pointer}.btn:disabled{opacity:.6;cursor:default}.hint-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.hint{font-size:13px;color:#4b5a45;line-height:1.4}.snake-controls{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:10px;gap:10px}.snake-arrow{min-height:56px;border:1px solid hsla(0,0%,100%,.75);border-radius:18px;background:hsla(0,0%,100%,.78);color:#344532;font-size:24px;font-weight:900;box-shadow:0 12px 26px rgba(31,53,32,.12);cursor:pointer;touch-action:manipulation;transition:transform .16s ease,background .16s ease}.snake-arrow:active{transform:scale(.96);background:#fff3c4}.tower-page{min-height:100dvh;padding:0;display:block}.tower-frame{width:100%;height:100dvh;border:none;display:block}