@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
:root{--bg:#f5f3ee;--paper:#fffefa;--ink:#242923;--muted:#777c72;--line:#e7e4dc;--accent:#526b58;--soft:#e8ede5;--shadow:0 18px 55px #29332612}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:"DM Sans","Noto Sans SC",sans-serif}body.dark{--bg:#171b19;--paper:#222925;--ink:#f0f1e9;--muted:#a3aca2;--line:#353e37;--accent:#a8c4a7;--soft:#2d3930;--shadow:0 18px 55px #0005}
a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;max-width:1160px;margin:auto;padding:0 28px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.5px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:var(--accent);color:white;font-size:21px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:500}.topbar nav{display:flex;gap:34px;color:var(--muted);font-size:13px}.topbar nav a:hover,footer a:hover{color:var(--accent)}.theme-btn{border:1px solid var(--line);background:var(--paper);border-radius:50%;width:36px;height:36px;cursor:pointer}
main{max-width:1104px;margin:auto;padding:0 28px}.hero{min-height:440px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;padding:54px 0 60px}.eyebrow{font:11px "DM Mono",monospace;letter-spacing:2px;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;background:#91a98c;border-radius:50%;margin-right:8px}.hero h1{font-size:clamp(42px,6vw,70px);line-height:1.18;letter-spacing:-3px;margin:22px 0 18px;font-weight:700}.hero h1 em{font-style:normal;color:var(--accent)}.hero p{color:var(--muted);line-height:1.9;max-width:390px;font-size:14px}.primary-btn{display:inline-flex;gap:35px;align-items:center;background:var(--accent);color:white;border-radius:9px;padding:14px 18px;margin-top:20px;font-size:13px}.primary-btn span{font-size:18px}.hero-art{height:330px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #9cab923d;border-radius:50%;transform:rotate(-24deg)}.orbit-one{width:300px;height:170px}.orbit-two{width:370px;height:235px;transform:rotate(32deg)}.sun{width:145px;height:145px;border-radius:45px;background:#e8c98c;display:grid;place-items:center;color:#fff9e9;font-size:88px;box-shadow:0 25px 55px #b58e4930;transform:rotate(-12deg)}.planet{position:absolute;border-radius:18px;box-shadow:var(--shadow);font:13px "DM Mono";display:grid;place-items:center}.p1{width:65px;height:65px;background:#d7e2d2;left:13%;top:23%;transform:rotate(-12deg)}.p2{width:58px;height:58px;background:#e6d7c8;right:12%;top:23%;color:#785e47}.p3{width:48px;height:48px;background:#d9d4e7;right:20%;bottom:18%;font-size:25px;color:#71658c}.art-note{position:absolute;bottom:12px;left:12%;font:12px "DM Mono";color:var(--muted);line-height:1.8}.art-note small{font-family:inherit;font-size:10px}
.section{padding:45px 0 55px;border-top:1px solid var(--line)}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.section-head h2{font-size:29px;letter-spacing:-1px;margin:8px 0 0}.section-note{font-size:11px;color:var(--muted)}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.game-card{border:0;text-align:left;position:relative;min-height:205px;border-radius:15px;padding:23px;cursor:pointer;transition:.2s;overflow:hidden}.game-card:hover,.tool-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.card-2048{background:#e8dfce}.card-snake{background:#dce8d9}.card-tetris{background:#e2deec}.card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#ffffff80;font-size:24px;margin-bottom:24px}.card-title{display:block;font-size:21px;font-weight:700}.card-desc{display:block;font-size:12px;color:#666b61;margin-top:7px}.card-arrow{position:absolute;right:22px;bottom:20px;font-size:20px;color:#697365}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tool-card{display:flex;align-items:center;gap:14px;text-align:left;padding:17px;border:1px solid var(--line);border-radius:13px;background:var(--paper);cursor:pointer;transition:.2s}.tool-symbol{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;font-size:23px;flex-shrink:0}.purple{background:#e9e4f0;color:#77658d}.orange{background:#f4e6d6;color:#ad7946}.green{background:#e1eadf;color:#5f805e}.tool-card b,.tool-card small{display:block}.tool-card b{font-size:13px}.tool-card small{font-size:11px;color:var(--muted);margin-top:5px}.quote-band{text-align:center;padding:65px 15px 72px;border-top:1px solid var(--line)}.quote-band>span{font:55px Georgia;color:#b5c2ae;line-height:.7}.quote-band p{font-size:19px;margin:13px 0}.quote-band small{font:10px "DM Mono";letter-spacing:2px;color:var(--muted)}footer{border-top:1px solid var(--line);padding:22px 0 30px;display:flex;justify-content:space-between;color:var(--muted);font-size:11px}footer span:first-child{color:var(--ink);font-weight:700}
.modal{position:fixed;inset:0;background:#141a16a8;display:none;align-items:center;justify-content:center;padding:18px;z-index:20}.modal.show{display:flex}.modal-panel{width:min(760px,100%);max-height:92vh;overflow:auto;background:var(--paper);border-radius:18px;padding:24px;box-shadow:0 30px 90px #0004}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{margin:5px 0 0;font-size:25px}.close-btn{border:1px solid var(--line);background:transparent;border-radius:50%;width:36px;height:36px;font-size:24px;cursor:pointer}.game-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}.score-box{background:var(--soft);padding:8px 13px;border-radius:9px;font:12px "DM Mono"}.small-btn{border:1px solid var(--line);background:var(--paper);padding:8px 12px;border-radius:8px;cursor:pointer;font-size:12px}.board2048{width:min(390px,100%);aspect-ratio:1;margin:12px auto;background:#b9b3a6;padding:8px;border-radius:10px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;touch-action:none}.tile{background:#d8d2c5;border-radius:6px;display:grid;place-items:center;font-size:clamp(20px,5vw,30px);font-weight:700;color:#4b4a43}.tile[data-v="2"]{background:#eee9dc}.tile[data-v="4"]{background:#eee1c6}.tile[data-v="8"]{background:#e8b77d;color:white}.tile[data-v="16"]{background:#e69b66;color:white}.tile[data-v="32"]{background:#df805f;color:white}.tile[data-v="64"]{background:#d96648;color:white}.tile[data-v="128"],.tile[data-v="256"],.tile[data-v="512"]{background:#d8bd68;color:white;font-size:23px}.tile[data-v="1024"],.tile[data-v="2048"]{background:#bca34f;color:white;font-size:20px}.help{text-align:center;color:var(--muted);font-size:11px;margin:10px}.snake-wrap,.tetris-wrap{display:flex;justify-content:center;gap:18px;align-items:flex-start;flex-wrap:wrap}.game-canvas{background:#202b25;border-radius:10px;max-width:100%;touch-action:none}.game-side{min-width:115px;color:var(--muted);font-size:12px;line-height:2}.periodic{display:grid;grid-template-columns:repeat(18,minmax(25px,1fr));gap:4px}.element{min-width:0;aspect-ratio:1;border:1px solid #c8d5c3;background:#e8efe5;color:#334a39;border-radius:5px;padding:3px;cursor:pointer;text-align:left;position:relative}.element b{display:block;font-size:clamp(8px,1.5vw,12px)}.element small{font-size:clamp(6px,1vw,9px)}.element.empty{visibility:hidden}.element.selected{outline:3px solid var(--accent)}.element-detail{margin-top:15px;padding:15px;background:var(--soft);border-radius:10px;min-height:75px}.element-detail b{font-size:18px}.element-detail p{margin:5px 0;color:var(--muted);font-size:12px}.clock-face{text-align:center;padding:30px}.clock-time{font:clamp(36px,8vw,65px) "DM Mono";letter-spacing:-3px}.clock-date{color:var(--muted);margin-top:8px}.dice-face{text-align:center;padding:35px}.dice-number{font-size:100px;line-height:1.3}.dice-roll{background:var(--accent);color:white;border:0;border-radius:9px;padding:12px 25px;cursor:pointer}.mobile-controls{display:none;grid-template-columns:repeat(3,48px);gap:5px;justify-content:center;margin-top:12px}.mobile-controls button{height:42px;border:1px solid var(--line);background:var(--soft);border-radius:8px}@media(max-width:700px){.topbar{padding:0 17px;height:66px}.topbar nav{gap:13px;font-size:11px}.topbar nav a:last-child{display:none}main{padding:0 18px}.hero{grid-template-columns:1fr;padding:55px 0 35px;min-height:0}.hero-art{height:260px;order:-1}.hero-copy{padding-bottom:25px}.hero h1{font-size:48px}.game-grid{grid-template-columns:1fr}.game-card{min-height:155px}.card-icon{margin-bottom:12px}.tool-grid{grid-template-columns:1fr}.section-head{align-items:start}.section-note{max-width:120px;text-align:right;line-height:1.6}.periodic{gap:2px}.element{padding:1px;border-radius:3px}.element b{font-size:7px}.element small{font-size:6px}.modal-panel{padding:17px}.mobile-controls{display:grid}footer{gap:12px;flex-wrap:wrap}.art-note{left:5%}}
