.btn,.cell,.home-btn,.swatch{cursor:pointer}.panel h2,.title{font-family:'Pirata One',Roboto,serif;font-weight:400;color:var(--gold)}.status,kbd{text-align:center}:root{--bg:#03213f;--bg-soft:#03305e;--surface:#0a4d8b;--surface-dark:#07396a;--border:#5c7292;--gold:#f2b84b;--gold-soft:#ffe2a0;--text:#f4f7fb;--text-muted:#b9c8dc;--radius:14px;--topbar-h:64px;--footer-h:36px}*,::after,::before{box-sizing:border-box}body,html{margin:0;min-height:100%}body{min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font-family:Roboto,system-ui,sans-serif;-webkit-tap-highlight-color:transparent}.backdrop{position:fixed;inset:0;z-index:0;background:linear-gradient(180deg,rgba(3,33,63,.2),rgba(3,33,63,.11)),url('../Img/memory/background.png') center/cover no-repeat;transform:scale(1.102) translate(0,-3.99%)}.cell,.layout,.topbar{position:relative}.material-symbols-sharp{width:1em;height:1em;font-size:26px;line-height:1;overflow:hidden;white-space:nowrap;user-select:none}.picker{transition:opacity .18s}.picker.is-clicked{opacity:.55}.topbar{z-index:2;height:var(--topbar-h);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 16px;background:linear-gradient(180deg,rgba(3,48,94,.95),rgba(3,48,94,.8));border-bottom:1px solid var(--border);box-shadow:0 6px 20px rgba(0,0,0,.35)}.title{margin:0;font-size:clamp(1.7rem, 4vw, 2.3rem);letter-spacing:.04em;text-shadow:0 2px 0 rgba(0,0,0,.45)}.btn,.home-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:999px;text-decoration:none;font:500 0.95rem Roboto,sans-serif;transition:background .15s,transform .15s,border-color .15s}.home-btn{width:44px;height:44px;justify-self:start}.btn{justify-self:end;height:44px;padding:0 18px 0 12px}.btn:hover,.home-btn:hover{background:#1262ad;border-color:var(--gold);transform:translateY(-1px)}.btn:focus-visible,.cell:focus-visible,.home-btn:focus-visible,.swatch:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.layout{z-index:1;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:center;width:min(1280px,100%);margin:0 auto;padding:20px 24px;translate:12.9%}.board-wrap{display:flex;flex-direction:column;align-items:center;gap:14px}.board{--gap:8px;display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);aspect-ratio:4/3;width:min(100%,calc((100dvh - var(--topbar-h) - var(--footer-h) - 110px) * 4 / 3));min-width:280px;padding:var(--gap);background:#14181d;border:3px solid #2a3139;border-radius:12px;box-shadow:0 0 0 2px #000,0 24px 50px rgba(0,0,0,.55),inset 0 0 18px rgba(0,0,0,.8)}.cell{border-radius:4px;background:url('../Img/memory/black.png') center/cover no-repeat #0d0f12;overflow:hidden;transition:filter .15s}.cell.c-blue,.legend-chip.c-blue,.swatch.c-blue{background-image:url('../Img/memory/blue.png')}.cell.c-purple,.legend-chip.c-purple,.swatch.c-purple{background-image:url('../Img/memory/purple.png')}.cell.c-pink,.legend-chip.c-pink,.swatch.c-pink{background-image:url('../Img/memory/pink.png')}.cell.c-orange,.legend-chip.c-orange,.swatch.c-orange{background-image:url('../Img/memory/orange.png')}.cell.c-green,.legend-chip.c-green,.swatch.c-green{background-image:url('../Img/memory/green.png')}.cell.c-red,.legend-chip.c-red,.swatch.c-red{background-image:url('../Img/memory/red.png')}.cell:hover{filter:brightness(1.12)}.picker{position:absolute;inset:0;display:none;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:4%;padding:6%;background:rgba(5,10,18,.72);backdrop-filter:blur(2px)}.cell.is-open .picker,.cell:focus-within .picker,.cell:hover .picker{display:grid}.swatch{position:relative;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:4px;background:center/cover no-repeat;transition:transform .12s,border-color .12s}.swatch:hover{transform:scale(1.1);border-color:var(--gold);z-index:1}.swatch-key{position:absolute;left:2px;bottom:2px;min-width:1.35em;padding:0 3px;border-radius:3px;background:rgba(0,0,0,.75);color:#fff;line-height:1.4}.panel-hint,.status,.steps{color:var(--text-muted)}@keyframes blink{0%,100%{filter:brightness(1);box-shadow:inset 0 0 0 3px var(--gold)}50%{filter:brightness(1.6);box-shadow:inset 0 0 0 3px #fff}}.cell.blinking{animation:1s ease-in-out infinite blink}@media (prefers-reduced-motion:reduce){.cell.blinking{animation:none;box-shadow:inset 0 0 0 4px var(--gold)}}.status{margin:0;min-height:1.4em;padding:8px 18px;border-radius:999px;background:rgba(3,48,94,.85);border:1px solid var(--border);font-size:.95rem}.panel{padding:20px;background:rgba(3,48,94,.88);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 14px 34px rgba(0,0,0,.4)}.panel h2{margin:0 0 6px;font-size:1.5rem;letter-spacing:.03em}.panel h2:not(:first-child){margin-top:20px}.panel-hint{margin:0 0 12px;font-size:.9rem;line-height:1.4}.legend{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;list-style:none}.legend li{display:flex;align-items:center;gap:8px;padding:6px 8px;background:var(--surface-dark);border:1px solid rgba(92,114,146,.6);border-radius:8px;font-size:.88rem}.legend-name{flex:1;min-width:0}.legend-clear{grid-column:1/-1}.legend-chip{flex:none;width:28px;height:28px;border-radius:4px;border:1px solid rgba(255,255,255,.4);background:center/cover no-repeat #0d0f12}.legend-chip.c-empty{background-image:url('../Img/memory/black.png')}kbd{display:inline-block;min-width:1.6em;padding:2px 6px;border-radius:5px;background:#fff;color:#14181d;border-bottom:2px solid #aab6c6;font:700 0.8rem Roboto,sans-serif}.steps{margin:0;padding-left:20px;font-size:.92rem;line-height:1.55}.steps li+li{margin-top:4px}.dock{display:none}@media (max-width:640px),(hover:none){.cell.is-open .picker,.cell:focus-within .picker,.cell:hover .picker,.picker{display:none}.backdrop{transform:unset}.layout{translate:unset}.dock.is-visible{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;flex-direction:column;gap:10px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:rgba(3,33,63,.97);border-top:2px solid var(--gold);box-shadow:0 -10px 30px rgba(0,0,0,.5)}body.dock-open{padding-bottom:130px}.dock-title{display:flex;justify-content:space-between;align-items:center;font-weight:500;color:var(--gold-soft)}.dock-actions{display:flex;gap:6px}.dock-actions button{padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font:500 0.85rem Roboto,sans-serif}.dock-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.dock-swatches .swatch{aspect-ratio:1;border-radius:6px}.dock-swatches .swatch-key{font-size:12px}}.credit{position:relative;z-index:1;height:var(--footer-h);display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:.85rem}.credit a{margin-left:4px;color:var(--gold-soft);font-weight:700;text-decoration:none}.credit a:hover{text-decoration:underline}@media (max-width:960px){.board,.panel{width:min(100%,720px)}.backdrop{transform:unset}.layout{grid-template-columns:1fr;align-items:start;padding:16px;translate:unset}.panel{justify-self:center}.legend{grid-template-columns:repeat(3,1fr)}}@media (max-width:520px){.backdrop{transform:unset}.layout{translate:unset}:root{--topbar-h:56px}.topbar{padding:0 10px}.btn-label{display:none}.btn{width:44px;padding:0}.board{--gap:5px}.legend{grid-template-columns:1fr 1fr}}@media (max-width:1400px) and (max-height:800px){.backdrop{transform:unset;background:linear-gradient(180deg,rgba(3,33,63,.82),rgba(3,33,63,.94)),url('../Img/memory/background.png') center/cover no-repeat;filter:blur(3px)}.layout{translate:unset}}@media (max-width:1280px) and (max-height:750px){.backdrop{transform:unset;background:linear-gradient(180deg,rgba(3,33,63,.82),rgba(3,33,63,.94)),url('../Img/memory/background.png') center/cover no-repeat;filter:blur(3px)}.layout{translate:unset}}@media (max-width:1280px) and (min-height:900px){.backdrop{transform:unset;background:linear-gradient(180deg,rgba(3,33,63,.82),rgba(3,33,63,.94)),url('../Img/memory/background.png') center/cover no-repeat;filter:blur(3px)}.layout{translate:unset}}@media (max-height:700px){.backdrop{transform:unset;background:linear-gradient(180deg,rgba(3,33,63,.82),rgba(3,33,63,.94)),url('../Img/memory/background.png') center/cover no-repeat;filter:blur(3px)}.layout{translate:unset}}@media (min-width:1921px) and (max-width:3000px){:root{--topbar-h:110px;--footer-h:54px;--radius:22px}.topbar{padding:0 44px}.title{font-size:clamp(3rem, 1.8vw, 4.2rem)}.home-btn{width:68px;height:68px}.btn{height:68px;padding:0 32px 0 24px;font-size:1.4rem}.material-symbols-sharp{font-size:42px}.layout{translate:17.3% -1.3%;scale:1.33}.credit{font-size:1.55rem}}@media (min-width:3001px){:root{--topbar-h:110px;--footer-h:54px;--radius:22px}.topbar{padding:0 44px}.title{font-size:clamp(3rem, 1.8vw, 4.2rem)}.home-btn{width:68px;height:68px}.btn{height:68px;padding:0 32px 0 24px;font-size:1.4rem}.material-symbols-sharp{font-size:42px}.layout{translate:25.9%;scale:1.99}.credit{font-size:1.55rem}}