@charset "UTF-8";
@font-face{font-family:"Forest Chinese";src:url('assets/chinese.ttf') format('truetype');font-weight:400;font-display:swap}
html body{font-family:"PingFang SC","Microsoft YaHei","Forest Chinese",sans-serif;font-synthesis:weight}
html body h1,html body dialog h2{font-family:"Songti SC","Forest Chinese",serif}
@media(max-width:370px){html body .game-shell{padding-left:7px;padding-right:7px}html body .table{padding-left:0;padding-right:0}}
:root{--ink:#173c30;--muted:#6d7c68;--cream:#fff8e8;--honey:#edc66c;--line:#c9d2b8;--green:#284f39;font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;color:var(--ink);background:#183d32;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(#173b3180,#102d26aa),url('assets/background.webp') center/cover fixed;min-height:100svh}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;color:inherit}button:focus-visible{outline:3px solid #daaa35;outline-offset:4px}button:disabled{cursor:default}.game-shell{max-width:500px;margin:0 auto;padding:27px 23px 18px;background:#f6f4e9f5;box-shadow:0 0 100px #0a241b70;min-height:100svh}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;margin:0 0 8px;color:#667759}h1{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:32px;letter-spacing:3px;margin:0;font-weight:900;line-height:1.2}.title-dot{display:inline-block;width:8px;height:8px;background:#d3a647;margin-left:7px;border-radius:50%}.round{border:1px solid var(--line);border-radius:50%;width:44px;height:44px;background:transparent;font-family:Georgia,serif;font-size:22px}.level-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#e5e9dc;padding:5px;border-radius:13px;margin-bottom:17px}.level-bar button{border:0;background:transparent;border-radius:9px;padding:9px 3px;font-weight:700;min-height:55px;font-size:14px}.level-bar span{display:block;font-size:10px;font-weight:400;margin-top:3px;color:#72816a;letter-spacing:1px}.level-bar button.active{background:var(--ink);color:var(--cream);box-shadow:0 3px 5px #203b3020}.level-bar button.active span{color:#d2d9bc}.table{position:relative;border-radius:22px;padding:15px 10px 2px;background:linear-gradient(#224e38c9,#24462edb),url('assets/background.webp') center 65%/cover;border:1px solid #3c6449;box-shadow:inset 0 0 40px #0b2e2340,0 8px 16px #1a342718;color:#e8edcf;overflow:hidden}.table-info{display:flex;justify-content:space-between;padding:0 8px;font-size:11px;letter-spacing:1px}.table-info>b{font-size:13px}.table-info #level-name{border:1px solid #8fa47b60;border-radius:20px;padding:3px 10px;margin-top:-3px}#board{width:100%;aspect-ratio:1.08;position:relative;margin-top:12px}.tile{border:1px solid #fff6d4;border-bottom:4px solid #ccbd97;border-radius:10px;background-color:#fff7e3;box-shadow:0 3px 3px #10291b55;display:flex;align-items:center;justify-content:center;padding:3px;transition:filter .16s,transform .16s}.tile::before{content:"";display:block;width:100%;aspect-ratio:1;background-image:url('assets/tiles.webp');background-size:300% 300%;background-position:var(--px) var(--py);background-repeat:no-repeat;border-radius:5px}.board-tile{position:absolute;min-width:44px;min-height:44px}.board-tile:disabled{filter:brightness(.64) saturate(.7);border-color:#a6ad83;border-bottom-color:#6f805c}.board-tile:not(:disabled):hover{transform:translateY(-3px);filter:brightness(1.04)}.board-tile:not(:disabled):active{transform:translateY(1px)}.table-bottom{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#c3d1ad;padding:0 7px;letter-spacing:1px}.table-bottom button{min-height:44px;background:transparent;border:0;color:#e5eacb;font-size:11px}.collection{margin-top:22px}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}h2{font-size:14px;margin:0;letter-spacing:1px}h2 small{font-size:10px;color:var(--muted);letter-spacing:0;font-weight:400;margin-left:5px}#capacity{font-size:12px;font-variant-numeric:tabular-nums;color:#7a825e}.tray{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;background:#dce1cd;padding:8px 6px;border-radius:12px;box-shadow:inset 0 2px 3px #81916a30}.slot{min-width:0;aspect-ratio:.82;background:#c6cfb6;border-radius:7px;box-shadow:inset 0 2px 3px #78866020}.slot .tile{width:100%;height:100%;padding:1px;border-radius:7px}#message{font-size:11px;min-height:18px;margin:11px 1px 16px;color:#6c785f}#message.alert{color:#aa6135}.reserve-line{display:flex;align-items:center;justify-content:space-between;min-height:63px;border-top:1px solid var(--line);padding-top:12px}.reserve-line h2{font-size:12px}.reserve-line p{font-size:10px;color:var(--muted);margin:5px 0}.reserve-line #reserve{display:flex;gap:5px;min-height:46px;min-width:145px;justify-content:flex-end}.reserve-line .tile{width:44px;height:47px;padding:2px}.reserve-empty{border:1px dashed #b7c3a3;border-radius:8px;width:44px;height:47px}.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}.tools button{position:relative;background:#fdf9ee;border:1px solid #d9ddc9;border-bottom:3px solid #c8cfb3;border-radius:12px;min-height:83px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:3px}.tools button:last-child{background:#f2d993;border-color:#e7cb80;border-bottom-color:#cba955}.tools button:disabled{opacity:.45}.tool-symbol{font-size:25px;line-height:26px;font-family:Georgia,serif}.tools strong{font-size:11px;letter-spacing:1px}.tools small{font-size:9px;color:#788065}footer{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:10px;color:#7a866d}footer button{border:0;min-height:44px;background:transparent;font-size:10px;color:#6a785d}dialog{color:var(--ink);background:var(--cream);border:1px solid #e4d8b9;border-radius:22px;max-width:360px;width:calc(100% - 40px);padding:34px 26px 26px;box-shadow:0 20px 100px #091f19aa}dialog::backdrop{background:#102d26b8;backdrop-filter:blur(4px)}dialog h2{font-family:"Songti SC",serif;font-size:27px;margin:10px 0 20px}dialog p,dialog li{font-size:13px;line-height:1.9}dialog ol{padding-left:20px}.close{position:absolute;right:10px;top:6px;border:0;background:transparent;font-size:25px;width:44px;height:44px}.modal-actions{display:flex;gap:8px;margin-top:20px}.modal-actions button{flex:1;border:1px solid #cbd0b5;border-radius:9px;min-height:46px;background:#f2d28a;font-weight:700;font-size:12px}.modal-actions button.secondary{background:transparent}progress{width:100%}@media(min-width:760px){.game-shell{margin:28px auto;border-radius:28px;min-height:0;padding:28px 28px 15px}body{padding-bottom:28px}}@media(max-width:370px){.game-shell{padding:20px 10px 12px}h1{font-size:29px}.table{padding-left:4px;padding-right:4px}h2 small{font-size:9px}.level-bar{margin-bottom:12px}.collection{margin-top:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
