*{box-sizing:border-box} :root{--bg:#f6f7fa;--panel:#fff;--text:#18202d;--muted:#718096;--line:#e4e8ef;--gold:#c69b2d;--gold2:#e3bf59;--shadow:0 12px 35px rgba(27,37,54,.08)}[data-theme=dark]{--bg:#101216;--panel:#191d24;--text:#f2f4f7;--muted:#a0a8b5;--line:#2b313c;--shadow:0 12px 35px rgba(0,0,0,.25)}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,sans-serif;transition:background .2s,color .2s}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 1200px)/2));background:var(--panel);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brand{display:flex;gap:10px;align-items:center;color:var(--text);font-weight:900;letter-spacing:2px;text-decoration:none;font-size:18px}.brand small{display:block;font-size:8px;letter-spacing:3px;color:var(--gold);margin-top:2px}.brand-mark{height:38px;width:38px;border-radius:11px;background:linear-gradient(145deg,#141414,#393020);border:1px solid #cba544;color:#f5d36b;display:grid;place-items:center;font-family:Georgia;font-size:25px;box-shadow:0 3px 12px #c69b2d55}.gold{color:var(--gold)}.top-actions{display:flex;align-items:center;gap:12px}.status{font-size:11px;font-weight:800;color:var(--gold);background:#c69b2d18;border:1px solid #c69b2d44;padding:8px 12px;border-radius:30px}.status i{display:inline-block;width:7px;height:7px;background:#2ab77b;border-radius:50%;margin-right:6px}.icon-btn{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:12px;width:40px;height:40px;font-size:19px;cursor:pointer}.hero{max-width:1200px;margin:34px auto 18px;padding:46px 56px;min-height:330px;border-radius:28px;background:linear-gradient(115deg,#17191e,#27231a 70%,#423318);color:#fff;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 50%,#c69b2d33,transparent 38%);pointer-events:none}.hero-copy{position:relative;z-index:1;max-width:520px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:2.4px;color:var(--gold2)}h1{font-size:clamp(38px,6vw,64px);line-height:.98;letter-spacing:-2px;margin:16px 0}h1 em{font-style:normal;color:#e5c15d}.hero p{color:#c6c8ce;line-height:1.6;max-width:430px}.hero-actions{display:flex;align-items:center;gap:18px;margin-top:25px}.primary{border:0;border-radius:12px;background:linear-gradient(110deg,#e0bd58,#b78b22);color:#171717;font-weight:900;padding:13px 20px;cursor:pointer}.hero-note{font-size:11px;color:#c2c2c2}.hero-art{width:320px;height:250px;position:relative;z-index:1;display:grid;place-items:center}.core{width:130px;height:130px;border:2px solid #e2bd53;border-radius:32px;display:grid;place-items:center;font-family:Georgia;font-size:90px;font-weight:900;color:#f5d77c;text-shadow:0 0 20px #e2ad37;transform:rotate(-8deg);box-shadow:0 0 65px #c69b2d55,inset 0 0 30px #c69b2d33}.orbit{position:absolute;border:1px solid #d5ac45aa;border-radius:50%;transform:rotate(-22deg)}.orbit-a{width:290px;height:120px}.orbit-b{width:230px;height:190px;transform:rotate(50deg);border-style:dashed}.float{position:absolute;font-size:10px;font-weight:900;letter-spacing:2px;color:#f4d57a;background:#201d17;border:1px solid #b58c35;padding:8px 12px;border-radius:20px}.f1{top:18px;right:30px}.f2{bottom:28px;left:20px}.f3{bottom:22px;right:12px}.stats{max-width:1200px;margin:0 auto 48px;display:grid;grid-template-columns:repeat(3,1fr);background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.stats div{padding:18px 24px;display:flex;align-items:center;gap:12px;border-right:1px solid var(--line)}.stats div:last-child{border:0}.stats b{font-size:27px;color:var(--gold)}.stats span{font-size:10px;font-weight:800;letter-spacing:1px;color:var(--muted)}.library{max-width:1200px;margin:0 auto 80px;padding:0 0}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}.section-head h2{font-size:30px;margin:5px 0 0;letter-spacing:-1px}.count{font-size:12px;color:var(--muted)}.search-row{display:flex;gap:10px;margin-bottom:14px}.search-row input,.search-row select{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:14px 16px;color:var(--text);font:inherit;outline:none}.search-row input{flex:1;min-width:0}.search-row select{width:150px}.filters{display:flex;gap:8px;overflow:auto;padding:2px 0 18px}.filter{white-space:nowrap;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:30px;padding:9px 15px;font-size:12px;font-weight:800;cursor:pointer}.filter.active{background:var(--gold);border-color:var(--gold);color:#181818}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);transition:transform .18s,border-color .18s}.card:hover{transform:translateY(-3px);border-color:#c69b2d88}.card-art{height:132px;padding:16px;display:flex;align-items:flex-end;justify-content:space-between;position:relative;overflow:hidden;background:linear-gradient(135deg,var(--accent),#17191f 82%);color:white}.card-art:before,.card-art:after{content:"";position:absolute;border:1px solid #ffffff55;border-radius:50%;width:190px;height:190px;right:-45px;top:-85px}.card-art:after{width:120px;height:120px;right:25px;top:-40px;border-style:dashed}.card-number{font-size:12px;font-weight:900;letter-spacing:2px;opacity:.85;z-index:1}.card-symbol{font-size:38px;font-weight:900;z-index:1;text-shadow:0 4px 15px #0007}.heart{position:absolute;right:12px;top:12px;z-index:2;border:0;background:#1118;color:white;border-radius:50%;width:31px;height:31px;cursor:pointer;font-size:17px}.heart.on{color:#ffd36a}.card-body{padding:15px}.card-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px}.card h3{font-size:16px;margin:9px 0 6px}.card p{font-size:12px;color:var(--muted);line-height:1.45;min-height:35px;margin:0 0 13px}.card-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}.difficulty{font-size:10px;color:var(--muted)}.play{border:0;border-radius:9px;background:var(--gold);color:#171717;padding:9px 14px;font-weight:900;font-size:11px;cursor:pointer}.load-more{display:block;margin:24px auto 0;background:transparent;border:1px solid var(--line);color:var(--text);border-radius:12px;padding:12px 24px;font-weight:800;cursor:pointer}.empty{text-align:center;padding:50px;color:var(--muted);grid-column:1/-1}footer{border-top:1px solid var(--line);padding:24px max(22px,calc((100% - 1200px)/2));display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.brand.small{font-size:14px}.brand.small .brand-mark{width:30px;height:30px;font-size:19px}.modal{position:fixed;inset:0;background:#090b10dd;z-index:10;display:grid;place-items:center;padding:14px}.modal.hidden{display:none}.game-window{width:min(760px,100%);background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 25px 90px #0008}.game-top{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.game-top h2{margin:5px 0 0;font-size:20px}.game-tools{display:flex;gap:8px}.game-desc{padding:0 20px;color:var(--muted);font-size:13px}.playfield{margin:0 18px 14px;min-height:330px;border-radius:15px;background:radial-gradient(circle at 50% 30%,#2a3040,#10131b);color:white;display:grid;place-items:center;position:relative;overflow:hidden;padding:20px;touch-action:manipulation}.game-bottom{padding:13px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:800}.game-ui{text-align:center;width:100%}.game-ui h3{font-size:24px;margin:0 0 10px}.game-ui p{color:#c4c9d2;font-size:13px}.game-action{border:0;border-radius:12px;background:#e3bd52;color:#151515;font-weight:900;padding:14px 22px;margin:8px;cursor:pointer}.game-big{font-size:58px;font-weight:900;color:#f3cb5a;margin:10px}.game-options{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.game-options button{min-width:64px}.game-pad{display:grid;grid-template-columns:repeat(3,64px);gap:8px;justify-content:center;margin:15px auto}.game-pad button{height:58px;border-radius:12px;border:1px solid #ffffff33;background:#ffffff12;color:#fff;font-size:22px}.game-input{width:120px;padding:12px;border-radius:10px;border:0;font-size:20px;text-align:center}canvas.game-canvas{width:100%;max-width:560px;height:260px;display:block;background:#151a25;border-radius:12px}.memory-grid{display:grid;grid-template-columns:repeat(3,70px);gap:8px;justify-content:center}.memory-grid button{height:65px;border-radius:12px;border:1px solid #ffffff33;background:#293244;color:#fff;font-size:20px}.memory-grid button.lit{background:#e3bd52;color:#111}.tile-grid{display:grid;grid-template-columns:repeat(3,60px);gap:5px;justify-content:center}.tile-grid button{height:60px;border:0;border-radius:8px;background:#323d52;color:white;font-size:18px;font-weight:900}.tile-grid button.blank{background:#10131b}.hidden{display:none!important}@media(max-width:1250px){.hero,.stats,.library{margin-left:22px;margin-right:22px}footer{padding-left:22px;padding-right:22px}}@media(max-width:760px){.topbar{height:62px;padding:0 15px}.hero{margin:18px 12px 14px;padding:30px 24px;min-height:0}.hero-art{width:130px;height:160px;transform:scale(.72);margin-right:-28px}.hero-copy{max-width:70%}.hero p{font-size:13px}.hero-note{display:none}.stats{margin:0 12px 34px}.stats div{padding:13px 9px;display:block;text-align:center}.stats b{display:block;font-size:22px}.stats span{font-size:8px}.library{margin:0 12px 55px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card-art{height:100px}.card-body{padding:11px}.card h3{font-size:14px}.card p{font-size:11px}.search-row select{width:105px;padding:12px 8px}.section-head h2{font-size:25px}footer{gap:10px;align-items:flex-start;flex-direction:column}}@media(max-width:380px){.grid{grid-template-columns:1fr}.hero-art{display:none}.hero-copy{max-width:100%}.stats span{font-size:7px}}
