.corner,.play-page{padding-top:25px;min-height:65vh}h1{font-size:52px;letter-spacing:-2.3px;margin:0 0 18px;line-height:1.1}h1 span{color:var(--purple)}.corner>.world-note{max-width:560px}.game-grid{display:grid;gap:25px;margin:34px 0}.corner-card{display:grid;grid-template-columns:1fr 1.3fr;background:white;border:1.5px solid #c1adcf;border-radius:22px;overflow:hidden;box-shadow:5px 5px 0 #e7dcec}.corner-card>div:last-child{padding:30px}.corner-card h2{font-size:30px;letter-spacing:-1px;margin:0 0 10px}.corner-card p{font-size:14px;line-height:1.7}.corner-card .best-note{font-size:11px;color:#89708f;margin-top:20px}.corner-art{background:#deebd2;display:grid;place-items:center;font-size:125px;color:#8da778;position:relative;min-height:230px}.corner-art:before{content:"";position:absolute;bottom:45px;width:140px;height:30px;border-radius:50%;background:#bacfa8;box-shadow:0 9px 0 #9eb687}.corner-art>span{font-size:30px;position:absolute;top:25px;right:45px;color:#b997c0}.game-catch{background:#e7def4;color:#d4b66d}.game-catch:before{background:#d1bfe5;box-shadow:0 9px 0 #b6a2ca}.game-match{background:#fae0df;color:#b98ea2}.empty-corner{text-align:center;border:2px dashed #c8b8d1;border-radius:24px;background:#f2edf7;padding:46px 25px;margin:30px 0}.empty-corner>span{font-size:60px;color:#ae92c1}.empty-corner h2,.empty-corner h1{font-size:29px;letter-spacing:-1px;max-width:470px;margin:15px auto}.empty-corner p{font-size:14px;line-height:1.8;margin-bottom:24px}.back-link{display:inline-block;margin-bottom:30px;font-size:12px;text-underline-offset:5px}.play-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.play-heading h1{font-size:43px;margin-bottom:24px}.session-tag{font-size:11px;white-space:nowrap;background:#ece3f5;border:1px solid #cbb7db;padding:10px 14px;border-radius:20px}.story-note{background:#e4edda;border:1px solid #c6d4b6;padding:16px 22px;font-family:Georgia,serif;font-style:italic;line-height:1.7;font-size:16px;border-radius:15px;margin-bottom:23px}.game-shell{position:relative;background:#e5eedc;border:2px solid #aa96bb;border-radius:24px;box-shadow:5px 6px 0 #dfd0e6;overflow:hidden;max-width:880px;margin:auto;min-height:355px}.instructions{text-align:center;padding:32px 24px;min-height:355px;background:radial-gradient(ellipse,#fffaf2,#e8efdd)}#game-mark{font-size:55px;line-height:1.2;color:#a286b1}.instructions h2{font-size:30px;letter-spacing:-1px;margin:10px 0}.instructions p{font-size:14px;line-height:1.7;max-width:530px;margin:10px auto}#controls-help{font-size:12px;color:#7c6b85}.instructions .world-button{margin-top:14px}.game-canvas{width:100%;height:auto;display:block;aspect-ratio:16/9;touch-action:none}.touch-controls{display:flex;align-items:center;justify-content:center;gap:17px;padding:13px;background:#fffaf2;border-top:1px solid #c6b5d3}.control{border:1.5px solid #ae93bd;border-radius:12px;background:#eee2f5;min-width:85px;min-height:48px;font-size:17px;font-weight:bold;padding:9px 20px;box-shadow:0 3px 0 #bca3cb;user-select:none;touch-action:none}.control:active{background:#decaed;transform:translateY(2px);box-shadow:0 1px 0 #bca3cb}.control:nth-child(2):nth-last-child(2){background:#ffe6a2;min-width:130px}.play-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:880px;margin:14px auto}#game-status{font-size:13px;line-height:1.7;flex:1;margin:0}.play-toolbar .text-link{white-space:nowrap}.pause-overlay{position:absolute;inset:0;background:#fffaf2e8;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;backdrop-filter:blur(4px);z-index:3}.pause-overlay h2{font-size:30px;margin:0 0 10px}.pause-overlay p{font-size:14px;margin:0 0 20px}.match-hud{display:flex;justify-content:space-between;gap:15px;padding:19px 25px;background:#f8e7e3;border-bottom:1px solid #d7c0d2;font-size:13px}.match-board{display:grid;grid-template-columns:repeat(var(--columns),1fr);gap:14px;padding:25px;background:#f5ebdf}.match-card{aspect-ratio:1.05;min-width:0;min-height:70px;border:2px solid #b79bc7;background:#d8c9e8;border-radius:16px;box-shadow:0 5px 0 #b29ac5;position:relative;display:grid;place-items:center;overflow:hidden;transition:background .15s}.card-back{font-size:43px;color:#fff7e5;border:1px dashed #f5e7ff;border-radius:11px;width:calc(100% - 13px);height:calc(100% - 13px);display:grid;place-items:center}.card-face{position:absolute;inset:0;pointer-events:none}.card-face svg{height:100%;width:100%;overflow:visible}.match-card.revealed{background:#fffaf2}.match-card.found{background:#e0eed3;border-color:#9ab082;box-shadow:0 5px 0 #9ab082}.match-card.found:after{content:'✓';position:absolute;top:6px;right:8px;font-weight:bold;font-size:16px;color:#698058}.result{padding:30px;border:1.5px solid #c2acd0;border-radius:22px;text-align:center;background:#f0e9f6;max-width:600px;margin:25px auto}.result.won{background:#f2f3e6}.result .world-kicker{margin-top:20px}.result h2{font-size:30px;letter-spacing:-1px;margin:12px 0}.result p{font-size:14px;line-height:1.7}.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin-top:23px}#play-save{text-align:center;font-size:11px;margin-top:24px}@media(max-width:650px){.corner,.play-page{padding-top:20px}h1{font-size:40px}.play-heading{align-items:start;gap:10px}.play-heading h1{font-size:31px;letter-spacing:-1.4px;max-width:240px}.play-heading .world-kicker{font-size:8px}.session-tag{font-size:9px;padding:8px 10px}.story-note{font-size:14px;padding:13px 16px}.back-link{margin-bottom:23px}.game-shell{border-radius:18px;min-height:0}.instructions{padding:26px 16px;min-height:0}.instructions p{font-size:12px}#controls-help{font-size:11px}.touch-controls{padding:10px;gap:12px}.control{min-width:67px;padding:9px 14px;font-size:14px;min-height:48px}.control:nth-child(2):nth-last-child(2){min-width:105px}#game-status{font-size:11px}.match-board{gap:9px;padding:15px}.match-card{border-radius:12px}.card-back{font-size:28px}.match-hud{padding:15px;font-size:11px}.result{padding:24px 17px}.result h2{font-size:26px}.result p{font-size:12px}.result-actions{flex-direction:column;gap:13px}.corner-card{grid-template-columns:1fr}.corner-art{min-height:190px}.corner-card>div:last-child{padding:25px}.empty-corner h1,.empty-corner h2{font-size:25px}.empty-corner p{font-size:12px}}@media(prefers-reduced-motion:reduce){.match-card{transition:none}}

.result.won .reward-medallion{animation:treasure-pop .6s ease-out}.result.won:before{content:"\2726  \2727  \2661  \2727  \2726";display:block;color:#ac8cbd;letter-spacing:12px;font-size:20px;margin:0 0 20px;animation:treasure-pop .8s ease-out}@keyframes treasure-pop{0%{transform:translateY(8px) scale(.85);opacity:.3}65%{transform:translateY(-4px) scale(1.06);opacity:1}100%{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){.result.won .reward-medallion,.result.won:before{animation:none}}

.your-card{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);background:#ffe8a8;color:#665274;border:1px solid #a48a9f;border-radius:10px;font-size:10px;padding:2px 8px;white-space:nowrap}
#game-host[data-biome=beach] .match-board{background:#f7e7c9}#game-host[data-biome=beach] .match-card{background:#c2dfdd;border-color:#93b8b9;box-shadow:0 5px 0 #93b8b9}#game-host[data-biome=snow] .match-board{background:#e9eaf6}#game-host[data-biome=snow] .match-card{background:#c8cde8;border-color:#9aa4c8;box-shadow:0 5px 0 #9aa4c8}#game-host[data-biome] .match-card.revealed{background:#fffaf2}#game-host[data-biome] .match-card.found{background:#e0eed3}
