:root{--black:#090909;--ink:#15171a;--paper:#f4f4f2;--white:#fff;--line:#d8d8d3;--muted:#62666d;--green:#22c55e;--red:#ef4444;--radius:22px;--shadow:0 22px 60px rgba(0,0,0,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,a{font:inherit}a{color:inherit}.skip-link{position:fixed;left:1rem;top:-5rem;z-index:9999;background:#fff;padding:.7rem 1rem}.skip-link:focus{top:1rem}.topbar{height:88px;padding:0 max(24px,calc((100% - 1240px)/2));display:flex;align-items:center;justify-content:space-between;background:var(--black);color:#fff;border-bottom:1px solid #282828}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:900;letter-spacing:.18em}.brand img{width:53px;height:53px;object-fit:contain}.brand span{padding-left:12px;border-left:1px solid #3b3b3b}.topbar nav{display:flex;gap:8px}.topbar nav a{padding:.65rem .9rem;border-radius:9px;color:#c7c7c7;text-decoration:none;font-size:.9rem;font-weight:700}.topbar nav a:hover,.topbar nav a:focus-visible{background:#242424;color:#fff}.hero{max-width:1240px;min-height:560px;margin:0 auto;padding:72px 24px;display:grid;grid-template-columns:1.25fr .75fr;gap:70px;align-items:center}.eyebrow{font-size:.72rem;font-weight:900;letter-spacing:.18em;color:#6d7178}.hero h1{max-width:760px;margin:14px 0 24px;font-size:clamp(3rem,6.2vw,6.2rem);line-height:.92;letter-spacing:-.07em}.hero h1 em{display:block;color:#75787e;font-style:normal}.hero p{max-width:630px;color:var(--muted);font-size:1.08rem}.primary-button{display:inline-flex;margin-top:18px;padding:14px 20px;border-radius:10px;background:var(--black);color:#fff;text-decoration:none;font-weight:800}.hero-art{position:relative;min-height:360px;border-radius:var(--radius);overflow:hidden;background:#111;color:#fff;box-shadow:var(--shadow)}.pixel-grid{position:absolute;inset:0;background-image:linear-gradient(#ffffff12 1px,transparent 1px),linear-gradient(90deg,#ffffff12 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(to bottom,#000,transparent)}.hero-orb{position:absolute;width:190px;height:190px;display:grid;place-items:center;left:50%;top:50%;translate:-50% -50%;border:1px solid #777;border-radius:50%;font-size:7rem;font-weight:950;box-shadow:0 0 0 35px #ffffff08,0 0 0 70px #ffffff05}.hero-art>span{position:absolute;right:24px;bottom:20px;font-size:.7rem;letter-spacing:.3em}.status-strip{max-width:1192px;margin:0 auto 90px;padding:22px 26px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:16px;background:#fff}.status-strip>div{display:flex;align-items:center;gap:15px}.status-dot{width:11px;height:11px;border-radius:50%;background:var(--green);box-shadow:0 0 0 6px #22c55e20}.status-strip p{margin:0}.status-strip small{display:block;color:var(--muted)}.status-strip a{font-weight:800}.games-section{max-width:1240px;margin:0 auto;padding:0 24px 95px}.section-heading{margin-bottom:34px}.section-heading h2{margin:8px 0 5px;font-size:clamp(2.2rem,4vw,4rem);letter-spacing:-.05em}.section-heading p{margin:0;color:var(--muted)}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.game-card{display:grid;grid-template-columns:.85fr 1.15fr;min-height:330px;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#fff;transition:.2s ease}.game-card:hover{translate:0 -5px;box-shadow:var(--shadow)}.game-preview{position:relative;overflow:hidden;background:#111}.game-copy{padding:30px;display:flex;flex-direction:column;align-items:flex-start}.game-number{color:#9a9a9a;font-size:.73rem;font-weight:900}.game-copy h3{margin:10px 0;font-size:1.65rem;letter-spacing:-.03em}.game-copy p{margin:0;color:var(--muted)}.game-copy button{margin-top:auto;padding:11px 15px;border:0;border-radius:9px;background:#111;color:#fff;font-weight:800;cursor:pointer}.game-copy button:hover{background:#333}.snake-card .game-preview i{position:absolute;width:30px;height:30px;border-radius:8px;background:#fff}.snake-card .game-preview i:nth-child(1){left:25%;top:45%}.snake-card .game-preview i:nth-child(2){left:41%;top:45%}.snake-card .game-preview i:nth-child(3){left:57%;top:45%}.snake-card .game-preview i:nth-child(4){left:57%;top:61%}.snake-card .game-preview b{position:absolute;width:16px;height:16px;left:30%;top:23%;border-radius:50%;background:var(--green);box-shadow:0 0 25px var(--green)}.platform-card .game-preview i{position:absolute;height:8px;border-radius:8px;background:#fff}.platform-card .game-preview i:nth-of-type(1){width:42%;left:5%;bottom:25%}.platform-card .game-preview i:nth-of-type(2){width:35%;right:4%;bottom:48%}.platform-card .game-preview b{position:absolute;width:24px;height:28px;left:28%;bottom:28%;border-radius:6px;background:#fff}.moon{position:absolute;width:75px;height:75px;right:15%;top:14%;border:1px solid #777;border-radius:50%;box-shadow:0 0 35px #ffffff30}.memory-card .game-preview{padding:18%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.memory-card .game-preview i{display:grid;place-items:center;border:1px solid #666;border-radius:10px;color:#fff;font-style:normal;font-size:1.5rem}.memory-card .game-preview i:nth-child(2),.memory-card .game-preview i:nth-child(3){background:#fff;color:#111}.blocks-card .game-preview div{position:absolute;top:20%;width:25%;height:38px;background:#fff}.blocks-card .game-preview div:nth-child(1){left:8%}.blocks-card .game-preview div:nth-child(2){left:38%;background:#6c6c6c}.blocks-card .game-preview div:nth-child(3){right:8%}.blocks-card .game-preview b{position:absolute;bottom:14%;left:32%;width:36%;height:8px;border-radius:8px;background:#fff}.blocks-card .game-preview i{position:absolute;left:48%;bottom:35%;width:15px;height:15px;border-radius:50%;background:var(--green)}.principles{max-width:1192px;margin:0 auto 90px;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:16px;background:#fff}.principles div{padding:25px;text-align:center}.principles div+div{border-left:1px solid var(--line)}.principles strong,.principles span{display:block}.principles strong{font-size:1.4rem}.principles span{color:var(--muted);font-size:.85rem}footer{padding:34px max(24px,calc((100% - 1192px)/2));display:flex;justify-content:space-between;gap:20px;background:#0a0a0a;color:#aaa;font-size:.85rem}footer div{display:flex;gap:20px}footer a{color:#ddd}
dialog{width:min(1080px,calc(100% - 22px));max-width:none;padding:0;border:0;border-radius:22px;background:#111;color:#fff;box-shadow:0 35px 100px #0009}dialog::backdrop{background:#000c;backdrop-filter:blur(8px)}.dialog-shell{padding:22px}.game-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.game-header h2{margin:3px 0 0;font-size:1.7rem}.game-stats{display:flex;align-items:center;gap:10px}.game-stats>span{padding:8px 12px;border:1px solid #333;border-radius:9px;color:#aaa;font-size:.78rem}.game-stats b{display:block;color:#fff;font-size:1rem}.game-stats button{width:42px;height:42px;border:0;border-radius:50%;background:#292929;color:#fff;font-size:1.6rem;cursor:pointer}.game-stage{position:relative;min-height:520px;border:1px solid #333;border-radius:15px;overflow:hidden;background:#050505}.game-stage canvas{display:block;width:100%;height:auto;max-height:68vh;object-fit:contain;touch-action:none}.game-message{position:absolute;inset:0;z-index:3;display:grid;place-content:center;text-align:center;background:#050505d9;backdrop-filter:blur(4px)}.game-message[hidden]{display:none}.game-message h3{margin:0;font-size:2.4rem}.game-message p{max-width:440px;color:#bbb}.game-message button{justify-self:center;padding:12px 19px;border:0;border-radius:9px;font-weight:900;cursor:pointer}.game-help{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#aaa}.game-help button{padding:8px 12px;border:1px solid #444;border-radius:8px;background:transparent;color:#fff}.memory-board{min-height:520px;padding:28px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.memory-board[hidden]{display:none}.memory-tile{min-height:95px;border:1px solid #444;border-radius:12px;background:#1a1a1a;color:transparent;font-size:2rem;font-weight:900;cursor:pointer;transition:.2s}.memory-tile.open,.memory-tile.matched{background:#fff;color:#111;transform:rotateY(180deg)}.memory-tile.matched{outline:3px solid var(--green)}.touch-controls{display:none;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px}.touch-controls button{min-height:48px;border:1px solid #444;border-radius:9px;background:#222;color:#fff;font-weight:900;touch-action:none}.touch-controls .action{background:#fff;color:#111}
.orbit-card .game-preview span,.radar-card .game-preview span{position:absolute;width:130px;height:130px;left:50%;top:50%;translate:-50% -50%;border:1px solid #777;border-radius:50%}.orbit-card .game-preview i{position:absolute;width:20px;height:20px;left:68%;top:45%;border-radius:50%;background:#fff}.orbit-card .game-preview b{position:absolute;width:12px;height:12px;left:29%;top:35%;border-radius:50%;background:var(--green);box-shadow:0 0 18px var(--green)}.stack-card .game-preview i{position:absolute;height:28px;background:#fff}.stack-card .game-preview i:nth-child(1){width:62%;left:19%;bottom:18%}.stack-card .game-preview i:nth-child(2){width:48%;left:26%;bottom:30%}.stack-card .game-preview i:nth-child(3){width:36%;left:32%;bottom:42%}.stack-card .game-preview b{position:absolute;width:36%;height:25px;left:8%;top:20%;background:#777}.radar-card .game-preview span{width:170px;height:170px;box-shadow:inset 0 0 0 42px #ffffff06}.radar-card .game-preview i{position:absolute;width:18px;height:18px;right:24%;top:28%;border:2px solid var(--green);border-radius:50%;box-shadow:0 0 15px var(--green)}.runner-card .game-preview b{position:absolute;width:28px;height:35px;left:25%;bottom:31%;background:#fff}.runner-card .game-preview i{position:absolute;width:8px;height:38px;bottom:20%;background:#777}.runner-card .game-preview i:nth-of-type(1){left:55%}.runner-card .game-preview i:nth-of-type(2){left:75%;height:60px}.runner-card .game-preview span{position:absolute;left:8%;right:8%;bottom:19%;height:5px;background:#fff}.balance-card .game-preview i{position:absolute;width:16px;height:16px;top:23%;border-radius:4px}.balance-card .game-preview i:nth-child(1){left:30%;background:var(--green)}.balance-card .game-preview i:nth-child(2){right:28%;background:var(--red)}.balance-card .game-preview b{position:absolute;width:45%;height:10px;left:28%;bottom:20%;border-radius:10px;background:#fff}.sequence-card .game-preview{padding:18%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.sequence-card .game-preview i{border:1px solid #777;border-radius:12px}.sequence-card .game-preview i:nth-child(2){background:#fff}.sequence-card .game-preview i:nth-child(3){background:#555}
@media(max-width:850px){.topbar{height:auto;padding:15px 20px;align-items:flex-start}.topbar nav{flex-wrap:wrap;justify-content:flex-end}.topbar nav a{padding:.4rem .55rem}.hero{grid-template-columns:1fr;padding-top:55px}.hero-art{min-height:280px}.game-grid{grid-template-columns:1fr}.status-strip{margin-inline:18px}.principles{margin-inline:18px;grid-template-columns:1fr 1fr}.principles div:nth-child(3){border-left:0;border-top:1px solid var(--line)}.principles div:nth-child(4){border-top:1px solid var(--line)}footer{flex-direction:column}.touch-controls{display:grid}.game-stage{min-height:auto}.memory-board{min-height:420px}}
@media(max-width:560px){.brand img{width:42px;height:42px}.brand span{font-size:.8rem}.topbar nav a:first-child{display:none}.hero h1{font-size:3.25rem}.game-card{grid-template-columns:1fr}.game-preview{min-height:190px}.status-strip{align-items:flex-start;gap:20px;flex-direction:column}.principles{grid-template-columns:1fr 1fr}.game-header{align-items:flex-start}.game-stats>span{display:none}.dialog-shell{padding:12px}.memory-board{padding:12px;gap:7px}.memory-tile{min-height:72px}.game-help p{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.access-choice{max-width:1192px;margin:0 auto 28px;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-radius:18px;background:#111;color:#fff}.access-choice h2{margin:4px 0;font-size:1.6rem}.access-choice p{margin:0;color:#aaa}.access-actions{display:flex;gap:10px;flex-wrap:wrap}.access-actions a{padding:12px 16px;border:1px solid #555;border-radius:9px;text-decoration:none;font-weight:800}.access-actions .login-action{background:#fff;color:#111}.user-menu{display:flex;align-items:center;gap:8px}.user-menu strong{font-size:.85rem}.account-page,.ranking-page,.admin-page{max-width:1100px;margin:0 auto;padding:60px 24px 90px}.account-card,.admin-card{padding:32px;border:1px solid var(--line);border-radius:18px;background:#fff}.account-card{max-width:680px;margin:auto}.account-card h1,.ranking-page h1,.admin-page h1{font-size:clamp(2.3rem,5vw,4.8rem);letter-spacing:-.06em;margin:8px 0 15px}.account-card label{display:block;margin:20px 0 7px;font-weight:800}.account-card input[type=text],.account-card input[name=alias]{width:100%;padding:13px;border:1px solid #bbb;border-radius:9px;font:inherit}.account-card .check{display:flex;align-items:flex-start;gap:10px;font-weight:600}.account-card .check input{margin-top:5px}.privacy-note{color:var(--muted);font-size:.86rem}.notice{padding:12px;border-radius:8px}.notice.success{background:#e8fff0;color:#075c27}.notice.error{background:#fee;color:#8e1111}.back-link{display:inline-block;margin-top:25px}.ranking-page>header{margin-bottom:30px}.ranking-filter{display:flex;align-items:center;gap:15px;margin-bottom:18px}.ranking-filter label{font-weight:800}.ranking-filter select{padding:11px;border:1px solid var(--line);border-radius:8px;background:#fff}.ranking-table{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.ranking-table table{width:100%;border-collapse:collapse}.ranking-table th,.ranking-table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left}.ranking-table th{background:#111;color:#fff;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.ranking-table td:last-child{text-align:right}.admin-card{margin-top:20px}.admin-card h2{margin-top:0}.admin-card button{padding:7px 10px;border:0;border-radius:7px;background:#111;color:#fff;cursor:pointer}
@media(max-width:700px){.access-choice{margin-inline:18px;align-items:flex-start;flex-direction:column}.access-actions{width:100%}.access-actions a{flex:1;text-align:center}.ranking-filter{align-items:flex-start;flex-direction:column}.ranking-filter select{width:100%}}
