:root{--ink:#293e32;--muted:#7b826d;--paper:#f6f4e9;--line:#dadfcc;--green:#3c5942;--green-light:#edf0df;--gold:#bd8e41;--shadow:0 8px 30px #183a2420;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);font-synthesis:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,canvas:focus-visible{outline:3px solid #c79548;outline-offset:3px}button{border:0;background:none}a{color:inherit;text-decoration:none}body{overflow:hidden}#game{position:relative;width:100vw;height:100dvh;overflow:hidden;background:#97ad70}#world{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}.topbar{position:absolute;z-index:3;left:0;right:0;top:0;height:84px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(180deg,#f7f6ecef,#f7f6ece5);border-bottom:1px solid #fff8;box-shadow:0 4px 24px #253c2712}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:43px;height:45px;border:1px solid #54714c;border-radius:11px 11px 4px 11px;color:#3e623b;font-family:serif;font-size:31px;line-height:1}.brand strong{display:block;font-family:Georgia,"STSong","SimSun",serif;letter-spacing:5px;font-size:23px;font-weight:600}.brand small{display:block;font-size:14px;letter-spacing:2px;margin-top:4px;color:#7b836b}.version-tag{font-size:14px;background:#e7ebd9;border:1px solid #d2dac5;padding:4px 8px;border-radius:5px;margin-left:8px;letter-spacing:1px;color:#6c795d}.world-clock{display:flex;align-items:center;gap:13px;font-size:14px;color:#53634b;letter-spacing:1px}.live-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#6c9752;box-shadow:0 0 0 3px #8aa87219;flex-shrink:0}.clock-divider{width:1px;height:14px;background:#c5ccb9;margin:0 4px}.top-actions{display:flex;gap:8px;align-items:center}.online-badge{font-size:14px;color:#728069;margin-right:14px}.online-badge i{display:inline-block;background:#719b5b;width:5px;height:5px;border-radius:50%;margin-right:6px}.icon-button{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#627057;transition:background .15s}.icon-button:hover{background:#e5e9d8}.icon-button svg{width:19px;height:19px}.left-hud{position:absolute;z-index:2;left:28px;top:111px;width:252px;display:flex;flex-direction:column;gap:12px}.profile-card{width:100%;display:flex;gap:11px;align-items:center;padding:13px;background:#f6f4e9f2;border-radius:14px;box-shadow:var(--shadow);text-align:left;border:1px solid #fff9}.avatar{width:50px;height:54px;image-rendering:pixelated;background:#dce6c3;border-radius:9px;border:1px solid #cbd5b9}.profile-info{flex:1;min-width:0}.profile-info>strong{display:block;font-size:15px;margin-bottom:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-info>span{font-size:14px;color:var(--muted)}.profile-info b{font-size:14px;color:#f7f4df;background:#677c4e;border-radius:3px;padding:2px 4px;margin-right:4px;font-weight:400}.profile-more{font-size:21px;color:#95a084}.xp-track{display:block;height:3px;background:#dadfc8;margin-top:9px;border-radius:4px;overflow:hidden}.xp-track i{display:block;width:10%;height:100%;background:#8b9c63;transition:width .5s}.resource-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.resource-row>div{display:flex;align-items:center;gap:8px;padding:11px 13px;background:#f5f3e8ec;border-radius:10px;border:1px solid #fffa;box-shadow:0 5px 16px #27472b14}.resource-row strong{font-size:16px;font-weight:650;font-variant-numeric:tabular-nums}.resource-row small{color:#8a8b72;font-size:14px;margin-left:auto}.coin-symbol{color:#c69742;font-size:21px}.energy-symbol{font-size:24px;font-weight:bold;color:#89984b;line-height:18px}.quest-card{margin-top:4px;background:#f6f4e9f0;border-radius:13px;padding:17px 18px 0;box-shadow:var(--shadow);border:1px solid #fff9;overflow:hidden}.section-title{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:14px;letter-spacing:2px;color:#7f886e;font-weight:500}.text-button{font-size:14px;color:#83906e;padding:3px}.text-button:hover{color:#35513a}.text-button span{font-size:14px}.quest-card h2{font-size:17px;margin:16px 0 9px;font-weight:650}.quest-card p{font-size:14px;line-height:1.8;color:#7a816a;margin:0;min-height:37px}.quest-bottom{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:14px 0 7px;color:#788362}.quest-bottom>span:last-child{color:#b58a3d;background:#f0ead3;padding:3px 6px;border-radius:4px}.quest-track{height:4px;background:#dde2cc;border-radius:4px;overflow:hidden}.quest-track i{display:block;background:#8e9b64;height:100%;transition:width .5s}.quest-action{border-top:1px solid #dde1d1;width:calc(100% + 36px);margin:18px -18px 0;padding:13px 18px;font-size:14px;display:flex;justify-content:space-between;color:#60734d;transition:background .15s}.quest-action:hover{background:#ebeedb}.field-notice{background:#f3f2d8e8;display:flex;align-items:center;gap:9px;border:1px solid #e8eccbbb;padding:12px;border-radius:9px;box-shadow:0 3px 20px #34502b10;text-align:left;font-size:14px;color:#687c4d}.field-notice b{margin-left:auto;font-weight:400}.notice-dot{width:5px;height:5px;display:block;background:#9b9c53;border-radius:50%;flex-shrink:0}.right-hud{position:absolute;z-index:2;right:28px;top:111px;width:203px;display:flex;flex-direction:column;gap:13px}.weather-card{background:#f6f4e9ed;border:1px solid #fff9;border-radius:13px;padding:18px 19px 12px;box-shadow:var(--shadow)}.weather-top{display:flex;align-items:center;justify-content:space-between}.weather-card h2{font-size:21px;font-weight:500;letter-spacing:2px;margin:7px 0}.weather-art{font-size:39px;color:#c69a46;text-shadow:0 0 15px #dacb90}.weather-card p{font-size:14px;color:#858a72;margin:7px 0 14px}.forecast{display:flex;justify-content:space-between;border-top:1px solid #dadfc9;padding-top:10px}.forecast span{display:flex;flex-direction:column;align-items:center;gap:8px;color:#90947a;font-size:14px}.forecast b{font-size:17px;color:#b4a76b;font-weight:400}.weather-card>small{display:block;font-size:14px;color:#969b83;margin-top:12px}.map-card{padding:6px;background:#f4f1e5e8;border-radius:12px;border:1px solid #fff9;box-shadow:var(--shadow);overflow:hidden}.map-card canvas{width:100%;height:107px;display:block;border-radius:7px;background:#a7b685;image-rendering:pixelated}.map-card>span{display:flex;align-items:center;gap:7px;padding:10px 6px 4px;font-size:14px}.map-card b{margin-left:auto;font-size:17px;font-weight:400;color:#7b8868}.location-label{position:absolute;top:110px;left:50%;transform:translateX(-50%);color:#f9f5e4;text-shadow:0 1px 5px #314628aa;text-align:center;pointer-events:none}.location-label span{display:block;font-family:Georgia,"STSong","SimSun",serif;letter-spacing:6px;font-size:17px}.location-label small{font-size:14px;letter-spacing:2px;display:block;margin-top:7px;opacity:.8}.location-label i{display:block;width:20px;height:1px;background:#f6f0cf99;margin:0 auto 9px}.center-hint{position:absolute;left:50%;bottom:131px;transform:translateX(-50%);font-size:14px;color:#f7f6e8;text-shadow:0 1px 3px #223e29;display:flex;gap:10px;align-items:center;white-space:nowrap;background:#334e3830;padding:8px 13px;border-radius:18px}.center-hint i{font-style:normal;opacity:.5}.key-cap{font-size:14px;border:1px solid #fff7;border-radius:4px;padding:3px 5px;letter-spacing:2px}.chat-preview{position:absolute;z-index:2;bottom:43px;left:28px;width:274px;border-radius:11px;border:1px solid #fff4;background:#f5f3e8ec;padding:13px 15px 0;box-shadow:var(--shadow)}.chat-heading{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#61734f}.chat-heading>span{display:flex;align-items:center;gap:8px}#chat-preview-messages{height:48px;overflow:hidden;margin:8px 0 4px}#chat-preview-messages p{margin:0 0 6px;font-size:14px;color:#758168;line-height:1.8;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#chat-preview-messages b{color:#687e4d;font-weight:500}.chat-placeholder{border-top:1px solid #daddca;padding:11px 0;width:100%;display:flex;justify-content:space-between;font-size:14px;color:#929b82;text-align:left}.bottom-nav{display:flex;align-items:center;gap:5px;position:absolute;left:50%;bottom:38px;transform:translateX(-50%);z-index:3;background:#f7f5eaf5;border:1px solid #fff8;border-radius:17px;box-shadow:0 8px 26px #23362630;padding:8px 11px}.nav-button{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:65px;height:68px;font-size:14px;color:#6f7c5d;border-radius:10px;transition:background .15s,transform .15s}.nav-button:hover{background:#e9edda;transform:translateY(-2px)}.nav-button.active{background:#e8ebd8;color:#48603c}.nav-icon svg{width:24px;height:24px;display:block}.nav-button small{position:absolute;top:4px;right:5px;color:#aab097;font-size:14px}.nav-divider{height:32px;width:1px;background:#d7ddc8;margin:0 5px}.quick-tools{position:absolute;bottom:47px;right:30px;display:flex;gap:9px;z-index:2}.round-button{border:1px solid #fff8;width:45px;height:45px;display:grid;place-items:center;background:#f3f1e5ee;box-shadow:var(--shadow);border-radius:50%;color:#6d7e57}.round-button:hover{background:#fffbea}.round-button svg{width:19px;height:19px}#mobile-chat{display:none}.performance-indicator{position:absolute;bottom:13px;right:29px;display:flex;align-items:center;gap:6px;font-size:14px;color:#f2f1dc;text-shadow:0 1px 3px #32422e99}.performance-indicator>span:first-child{height:4px;width:4px;border-radius:50%;background:#cbdc89}.performance-indicator>span:last-child{margin-left:4px;opacity:.7}#joystick{display:none;position:absolute;z-index:2;left:30px;bottom:118px;width:104px;height:104px;border-radius:50%;background:#f4f3dd27;border:1px solid #fff5;touch-action:none}#joystick-knob{position:absolute;left:34px;top:34px;width:36px;height:36px;border-radius:50%;background:#f5f2d9b0;border:1px solid #fff7;pointer-events:none}
.auth-screen{position:absolute;inset:84px 0 0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:45px max(6vw,30px);background:linear-gradient(90deg,#203b2870,transparent 54%,#39523133);gap:50px}.auth-intro{color:#fffbe5;text-shadow:0 2px 13px #2c3d2844;margin-bottom:60px;max-width:600px}.auth-kicker{font-size:14px;letter-spacing:5px}.auth-intro h1{font-family:"STSong","SimSun",serif;font-size:clamp(32px,4vw,60px);font-weight:500;line-height:1.65;letter-spacing:5px;margin:24px 0 20px}.auth-intro p{font-size:14px;line-height:2.1;letter-spacing:2px;opacity:.87}.auth-stamp{font-size:14px;letter-spacing:3px;display:block;border-top:1px solid #fff5;margin-top:38px;padding-top:21px;width:max-content;opacity:.82}.auth-card{width:380px;flex-shrink:0;background:#f8f5e9f5;border:1px solid #fff8;border-radius:18px;padding:31px 32px 20px;box-shadow:0 16px 60px #23392433}.auth-card h2{font-family:"STSong","SimSun",serif;font-size:24px;letter-spacing:2px;margin:13px 0}.auth-card>p{font-size:14px;color:#8c8e78;line-height:1.8;margin:0 0 24px}.auth-tabs{display:flex;border-bottom:1px solid #dce1ce;margin-bottom:21px;gap:26px}.auth-tabs button{font-size:14px;color:#92977c;padding:0 1px 10px}.auth-tabs button.selected{border-bottom:2px solid #55704a;color:#395039}label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#69775b}input,select,textarea{width:100%;border:1px solid #d9dfca;background:#faf9f0;color:#334833;border-radius:7px;padding:11px 12px;outline:none;min-height:42px;font-size:14px}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#a1a68d;font-size:14px}#auth-form{display:flex;flex-direction:column;gap:16px}.primary-button,.secondary-button{padding:12px 18px;min-height:43px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:12px;transition:background .15s}.primary-button{background:#3e5c40;color:#f4f1df;border:1px solid #3e5c40}.primary-button:hover{background:#294b31}.secondary-button{border:1px solid #cdd5bb;background:#f1f1e4;color:#5e7450}.secondary-button:hover{background:#e6ecd8}#auth-form .primary-button{width:100%}.auth-or{display:flex;align-items:center;gap:12px;color:#acaf98;font-size:14px;margin:17px 0}.auth-or span{height:1px;background:#e0e4d3;flex:1}#guest-button{width:100%}.auth-note{display:block;text-align:center;color:#969d82;font-size:14px;line-height:1.8;margin-top:13px}.auth-foot{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#939b81;border-top:1px solid #e1e5d3;padding-top:16px;margin-top:23px}.auth-foot i{margin-right:5px}.form-error{color:#a75d3e!important;font-size:14px!important;margin:0!important;line-height:1.6;min-height:0}.form-error:empty{display:none}
dialog{border:1px solid #ffffed;background:#f6f4e9;color:var(--ink);border-radius:17px;width:min(820px,calc(100% - 40px));max-height:calc(100dvh - 64px);padding:0;box-shadow:0 22px 110px #17322255;overflow:hidden}dialog::backdrop{background:#17352352;backdrop-filter:blur(3px)}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:24px 27px 20px;border-bottom:1px solid #dfe3d0;background:#faf8eef0}.panel-header h2{font-family:"STSong","SimSun",serif;font-size:25px;letter-spacing:2px;margin:7px 0 0;font-weight:600}.panel-header .icon-button{font-size:25px;border:1px solid #dce1ce;background:#eef0e3}#panel-body{max-height:calc(100dvh - 190px);overflow:auto;padding:22px 27px 26px;scrollbar-width:thin;scrollbar-color:#c9d2b7 transparent;overscroll-behavior:contain}.panel-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:21px}.panel-intro p{margin:0;color:#7b856b;font-size:14px;line-height:1.9}.balance-chip{display:flex;align-items:center;gap:7px;flex-shrink:0;background:#eeead5;color:#a27d36;font-size:14px;border:1px solid #e1dbba;padding:8px 12px;border-radius:7px}.tabs{display:flex;gap:6px;padding:4px;border-radius:9px;background:#e9eddb;margin-bottom:21px;overflow:auto}.tabs button{padding:10px 17px;font-size:14px;color:#7e886b;border-radius:6px;white-space:nowrap}.tabs button.selected{background:#f9f7ee;color:#3f5a3d;box-shadow:0 2px 8px #3345290c}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.item-card,.activity-card,.plot-card,.quest-item{position:relative;background:#fbf9ef;border:1px solid #dfe4ce;border-radius:11px;padding:16px;display:flex;flex-direction:column;gap:11px;overflow:hidden}.item-visual{display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#e5ebd4,#f0efd9);border-radius:7px;height:97px;position:relative}.item-visual canvas{width:72px;height:72px;image-rendering:pixelated}.item-visual small{position:absolute;bottom:7px;right:8px;color:#798665;font-size:14px}.item-card h3,.activity-card h3,.plot-card h3,.quest-item h3{font-size:15px;margin:0;font-weight:600}.item-card p,.activity-card p,.plot-card p,.quest-item p{margin:0;color:#859075;font-size:14px;line-height:1.8;flex:1}.item-card footer{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#a98740;gap:6px}.small-button{border:1px solid #cfd8be;color:#59764a;background:#eaf0dd;padding:7px 13px;border-radius:6px;font-size:14px;min-height:33px}.small-button:hover{background:#dce8cb}.small-button.accent{background:#456447;border-color:#456447;color:#f3f1dc}.small-button.danger{border-color:#e1cbb8;background:#f5e9de;color:#a66b42}.plot-card{background:#f9f8ed;gap:10px}.plot-card .plot-head{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#8a9579}.plot-status{font-size:14px;border:1px solid #dbe2cb;border-radius:5px;padding:3px 6px;background:#ebefdf;color:#728357}.plot-card .item-visual{height:104px;background:linear-gradient(145deg,#dce6ca,#e9e7cf)}.plot-buttons{display:flex;gap:6px;flex-wrap:wrap}.plot-buttons button{flex:1;white-space:nowrap;padding:7px 8px}.plot-card select{min-height:33px;padding:6px 8px;font-size:14px}.activity-icon{height:53px;width:53px;border-radius:10px;background:#e8edda;display:grid;place-items:center;color:#83975d}.activity-icon svg{width:28px;height:28px}.activity-card .meta{display:flex;justify-content:space-between;font-size:14px;color:#90977c}.activity-card>button{width:100%;text-align:center}.recipe{font-size:14px;line-height:1.9;color:#778a64;background:#edf0e3;border-radius:5px;padding:8px 9px}.empty-state{padding:46px 22px;text-align:center;color:#8a977c;font-size:14px;border:1px dashed #d0d9c1;border-radius:12px;line-height:2}.empty-state strong{display:block;font-size:18px;color:#5b7451;margin-bottom:5px}.panel-error{color:#a66442;background:#f6eadd;border:1px solid #e3cdb9;border-radius:8px;padding:14px;font-size:14px;line-height:1.8}.toolbar-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.toolbar-row h3{font-size:14px;margin:0}.toolbar-row input{max-width:210px;min-height:35px;font-size:14px;padding:8px 11px}.market-form{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:16px;background:#edf0e1;border:1px solid #d9e0c8;border-radius:10px;margin-bottom:18px}.market-form .primary-button{grid-column:1/-1;justify-content:center}.market-form .wide-field{grid-column:1/-1}.trade-list{display:flex;flex-direction:column;gap:10px}.trade-row{display:flex;align-items:center;gap:13px;padding:14px;border:1px solid #dde3cf;background:#faf9ef;border-radius:9px}.trade-row canvas{width:46px;height:46px;image-rendering:pixelated;background:#e7ecd9;border-radius:6px}.trade-row .trade-info{flex:1;min-width:0}.trade-info strong{display:block;font-size:14px;margin-bottom:6px}.trade-info small{font-size:14px;color:#899477}.trade-price{font-size:14px;color:#b58c3d;white-space:nowrap}.quest-list{display:flex;flex-direction:column;gap:12px}.quest-item{display:grid;grid-template-columns:1fr auto;gap:8px 20px}.quest-item p{grid-column:1}.quest-item>button{grid-column:2;grid-row:1/4;align-self:center}.quest-item .quest-track{grid-column:1;margin-top:3px}.quest-reward{font-size:14px;color:#b1954e}.leader-table{width:100%;border-collapse:collapse;font-size:14px}.leader-table th{text-align:left;padding:12px;color:#90987f;font-size:14px;font-weight:500;border-bottom:1px solid #dfe4d1}.leader-table td{padding:16px 12px;border-bottom:1px solid #e5e8d9}.leader-table td:first-child{font-family:Georgia,serif;font-size:19px;color:#a7ac90}.leader-table tr:nth-child(-n+3) td:first-child{color:#b39758}.leader-name{display:flex;align-items:center;gap:9px;font-weight:600}.leader-name i{font-style:normal;font-size:14px;color:#8b986e;background:#e9edd9;padding:3px 7px;border-radius:4px}.leader-self{background:#eaf0dc}.arena-banner{padding:23px;background:#344d37;color:#eef1dc;border-radius:11px;display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.arena-banner h3{font-family:serif;font-size:24px;margin:0 0 8px;letter-spacing:3px}.arena-banner p{font-size:14px;opacity:.72;margin:0;line-height:1.8}.arena-banner strong{font-size:35px;font-family:Georgia,serif;font-weight:400}.arena-banner small{display:block;font-size:14px;text-align:right;letter-spacing:2px;opacity:.65;margin-top:5px}.arena-result{padding:20px;background:#e8edd9;border:1px solid #ccd6b7;border-radius:10px;line-height:2;font-size:14px;margin-bottom:18px}.arena-result h3{font-size:21px;margin:0;color:#65814b}.opponent-list{display:flex;flex-direction:column;gap:10px}.history-list{margin-top:24px;border-top:1px solid #dce2cc;padding-top:17px}.history-list h3{font-size:14px}.history-list p{font-size:14px;color:#81906e;display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e1e6d5}.chat-controls{display:flex;gap:10px;margin-bottom:15px}.chat-controls select{font-size:14px}.chat-controls input{font-size:14px}.chat-messages{display:flex;flex-direction:column;gap:15px;height:310px;overflow:auto;background:#eef0e3;border:1px solid #dee3cf;border-radius:11px;padding:18px;overscroll-behavior:contain}.chat-message{max-width:86%;align-self:flex-start}.chat-message.self{align-self:flex-end}.chat-message small{font-size:14px;display:block;color:#8e997c;margin-bottom:7px}.chat-message.self small{text-align:right}.chat-message p{margin:0;background:#fcfbf2;padding:10px 13px;border-radius:0 10px 10px 10px;border:1px solid #dde4ca;font-size:14px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.chat-message.self p{background:#dce7c8;border-color:#d1dfb8;border-radius:10px 0 10px 10px}.chat-compose{display:flex;gap:10px;margin-top:14px}.chat-compose input{flex:1;min-width:0}.chat-compose .primary-button{white-space:nowrap}.chat-note{font-size:14px;color:#929c81;margin:10px 0 0}.settings-group{padding:18px 0;border-bottom:1px solid #dce2cc;display:flex;justify-content:space-between;gap:22px;align-items:center}.settings-group h3{font-size:14px;margin:0 0 8px}.settings-group p{font-size:14px;color:#929a81;margin:0;line-height:1.8}.settings-group select{max-width:145px;font-size:14px;flex-shrink:0}.setting-footer{font-size:14px;color:#959d83;line-height:2;padding-top:20px}.profile-detail{display:flex;gap:19px;align-items:center;background:#eaf0dc;padding:20px;border-radius:11px;margin-bottom:20px}.profile-detail canvas{width:72px;height:72px;image-rendering:pixelated;background:#d5e0bd;border-radius:11px}.profile-detail h3{margin:0 0 8px;font-size:19px}.profile-detail p{font-size:14px;color:#7a8b63;margin:0}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.stat-grid>div{padding:15px;border:1px solid #dce4cc;border-radius:8px;text-align:center}.stat-grid strong{display:block;font-size:22px;color:#617d4d;font-weight:500}.stat-grid span{font-size:14px;color:#8b9a79;display:block;margin-top:6px}.profile-actions{display:flex;gap:10px;justify-content:flex-end}.profile-register{display:flex;flex-direction:column;gap:13px}.world-map{width:100%;height:330px;border-radius:10px;background:#a5b77e;image-rendering:pixelated}.map-legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:17px;font-size:14px;color:#7c8d68}.map-legend span{display:flex;align-items:center;gap:7px}.map-legend i{height:8px;width:8px;display:block;border-radius:2px}.loading-panel{padding:55px;text-align:center;font-size:14px;color:#8b9979}.loading-panel:before{content:'';display:block;width:22px;height:22px;border:2px solid #d1dbbe;border-top-color:#6f8c53;border-radius:50%;margin:0 auto 17px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toasts{position:absolute;top:100px;left:50%;transform:translateX(-50%);z-index:50;display:flex;flex-direction:column;gap:8px;pointer-events:none;width:max-content;max-width:90vw}.toast{padding:12px 22px;background:#f7f6eaf5;border:1px solid #cddbbb;box-shadow:0 5px 30px #223d3330;border-radius:10px;font-size:14px;color:#4e7343;animation:toast-in .2s ease-out;max-width:90vw;line-height:1.6}.toast.error{background:#fbf0e5;color:#a46842;border-color:#e3c5a7}@keyframes toast-in{from{opacity:0;transform:translateY(-8px)}}
@media(min-width:1600px){.left-hud{left:38px;top:125px;width:275px}.right-hud{right:38px;top:125px;width:219px}.chat-preview{left:38px;width:302px}.topbar{padding:0 40px;height:91px}.auth-screen{top:91px}.quest-card p{font-size:14px}.resource-row strong{font-size:18px}}
@media(max-width:1180px){.brand strong{font-size:20px}.version-tag{display:none}.world-clock{font-size:14px}.left-hud{width:213px;left:20px}.right-hud{width:173px;right:20px}.quest-card{padding:14px 14px 0}.quest-action{width:calc(100% + 28px);margin-left:-14px;padding:13px 14px}.quest-card p{font-size:14px}.weather-card{padding:14px}.weather-card>small{font-size:14px}.chat-preview{width:220px;left:20px}.bottom-nav{gap:2px;padding:7px}.nav-button{width:56px}.quick-tools{right:20px;bottom:48px}.round-button{width:38px;height:38px}.auth-intro h1{font-size:38px}.auth-screen{padding:35px 5vw;gap:28px}.auth-card{width:350px;padding:28px}.center-hint{font-size:14px;gap:7px}.key-cap{font-size:14px}}
@media(max-width:900px){.left-hud{width:190px}.right-hud{width:154px}.world-clock{display:none}.topbar{height:73px;padding:0 20px}.left-hud,.right-hud{top:93px}.chat-preview{display:none}.quick-tools{bottom:45px}.center-hint{bottom:131px}.location-label{top:99px}.bottom-nav{bottom:36px}.profile-card{padding:10px;gap:9px}.profile-info>strong{font-size:14px}.profile-info b{font-size:14px}.profile-info>span{font-size:14px}.avatar{width:40px;height:44px}.resource-row>div{padding:9px;gap:6px}.resource-row strong{font-size:14px}.resource-row small{font-size:14px}.weather-card p{font-size:14px;line-height:1.8}.forecast{gap:8px}.forecast span{font-size:14px}.weather-card h2{font-size:18px}.weather-art{font-size:29px}.map-card canvas{height:87px}.auth-screen{top:73px;padding:25px 4vw;gap:20px}.auth-intro h1{font-size:31px}.auth-kicker{font-size:14px;letter-spacing:3px}.auth-intro p{font-size:14px}.auth-card{width:320px;padding:25px}.auth-card h2{font-size:20px}.auth-stamp{font-size:14px;letter-spacing:2px}#mobile-chat{display:grid}.quick-tools{flex-direction:column;bottom:135px}}
@media(pointer:coarse){#joystick{display:block}.center-hint{display:none}button{min-height:36px}.nav-button small{display:none}.auth-tabs button{min-height:38px}.quest-action{min-height:42px}}
@media(max-width:600px){.topbar{height:65px;padding:0 15px}.brand{gap:8px}.brand-mark{width:34px;height:36px;font-size:25px;border-radius:8px 8px 3px 8px}.brand strong{font-size:18px;letter-spacing:3px}.brand small{font-size:14px;letter-spacing:1.2px;margin-top:3px}.top-actions{gap:2px}.online-badge{font-size:14px;margin-right:3px}.icon-button{width:33px;height:33px}.icon-button svg{width:17px;height:17px}.left-hud{top:79px;left:12px;width:177px;gap:8px}.profile-card{padding:9px}.avatar{width:37px;height:40px}.profile-info>strong{font-size:14px}.profile-info>span{font-size:14px}.profile-info b{font-size:14px}.profile-more{font-size:17px}.xp-track{margin-top:7px}.resource-row{gap:6px}.resource-row>div{padding:7px 9px;gap:5px;border-radius:8px}.resource-row strong{font-size:14px}.resource-row small{font-size:14px}.coin-symbol{font-size:17px}.energy-symbol{font-size:21px}.quest-card{padding:11px 12px 0;border-radius:10px;margin:0}.quest-card .eyebrow{font-size:14px;letter-spacing:1px}.quest-card .text-button{font-size:14px;min-height:22px}.quest-card h2{font-size:14px;margin:8px 0}.quest-card p{font-size:14px;line-height:1.7;min-height:0}.quest-bottom{margin-top:9px;font-size:14px}.quest-action{font-size:14px;padding:8px 12px;width:calc(100% + 24px);margin:10px -12px 0;min-height:31px}.field-notice{display:none}.right-hud{top:79px;right:12px;width:125px;gap:9px}.weather-card{padding:12px}.weather-card .eyebrow{font-size:14px;letter-spacing:1px}.weather-card h2{font-size:16px;margin:5px 0}.weather-art{font-size:29px}.weather-card p{font-size:14px;margin:4px 0 0}.forecast,.weather-card>small{display:none}.map-card{padding:4px;border-radius:9px}.map-card canvas{height:77px}.map-card>span{font-size:14px;padding:7px 3px 3px;gap:5px}.map-card b{font-size:14px}.location-label{top:calc(41% + 30px);left:50%;opacity:.9}.location-label span{font-size:14px;letter-spacing:3px}.location-label small{font-size:14px;letter-spacing:1px}.location-label i{display:none}.bottom-nav{bottom:calc(18px + env(safe-area-inset-bottom));width:calc(100% - 24px);border-radius:14px;justify-content:space-between;padding:6px;gap:0}.nav-button{width:auto;flex:1;height:57px;gap:4px;font-size:14px}.nav-icon svg{width:21px;height:21px}.nav-button small{display:none}.nav-divider{margin:0 3px;height:25px}.quick-tools{right:17px;bottom:calc(112px + env(safe-area-inset-bottom));gap:11px}.round-button{width:41px;height:41px;background:#f4f2e5dd}.performance-indicator{bottom:5px;left:19px;right:auto;font-size:14px}.performance-indicator>span:last-child{display:none}#joystick{left:25px;bottom:calc(122px + env(safe-area-inset-bottom));width:94px;height:94px}#joystick-knob{left:29px;top:29px}.auth-screen{top:65px;padding:22px 20px;align-items:center;justify-content:center;background:#29412c35;overflow:auto}.auth-intro{display:none}.auth-card{width:min(350px,100%);padding:25px;background:#f8f5e9f7}.auth-card h2{font-size:23px}.auth-card .eyebrow{font-size:14px}.auth-tabs{margin-bottom:18px}.auth-card>p{margin-bottom:17px}.auth-foot{margin-top:19px}.auth-or{margin:13px 0}.auth-note{font-size:14px}.auth-card input{font-size:16px}.auth-screen label{font-size:14px}dialog{width:calc(100% - 18px);max-height:calc(100dvh - 22px);border-radius:13px}.panel-header{padding:18px 18px 14px}.panel-header h2{font-size:22px}.panel-header .eyebrow{font-size:14px}#panel-body{padding:17px 16px 22px;max-height:calc(100dvh - 119px)}.panel-intro{gap:10px;margin-bottom:16px}.panel-intro p{font-size:14px}.balance-chip{font-size:14px;padding:7px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.item-card,.activity-card,.plot-card{padding:12px;gap:9px}.item-card p,.activity-card p,.plot-card p{font-size:14px}.item-card h3,.activity-card h3,.plot-card h3{font-size:14px}.item-visual{height:77px}.item-visual canvas{width:60px;height:60px}.plot-card .item-visual{height:85px}.plot-buttons{gap:5px}.plot-buttons .small-button{padding:6px;font-size:14px;min-height:35px}.plot-card select{font-size:14px}.tabs{margin-bottom:15px;gap:2px}.tabs button{font-size:14px;padding:9px 12px}.market-form{grid-template-columns:1fr 1fr;gap:10px;padding:13px}.market-form label:first-child{grid-column:1/-1}.market-form input,.market-form select{font-size:14px}.trade-row{gap:9px;padding:11px}.trade-row canvas{width:35px;height:35px}.trade-info strong{font-size:14px}.trade-info small{font-size:14px}.trade-price{font-size:14px}.trade-row .small-button{padding:6px 9px;font-size:14px}.quest-item{gap:7px 10px;padding:13px}.quest-item h3{font-size:14px}.quest-item p{font-size:14px}.quest-item>button{font-size:14px;padding:7px 9px}.leader-table{font-size:14px}.leader-table th{font-size:14px;padding:10px 7px}.leader-table td{padding:15px 7px}.leader-name{gap:5px;flex-wrap:wrap}.leader-name i{font-size:14px;padding:2px 4px}.arena-banner{padding:18px}.arena-banner h3{font-size:21px}.arena-banner p{font-size:14px}.arena-banner strong{font-size:29px}.chat-controls{flex-wrap:wrap;gap:7px}.chat-controls select{flex:1}.chat-controls input{flex-basis:100%}.chat-messages{height:min(45dvh,350px);padding:13px;gap:12px}.chat-message p{font-size:14px}.chat-compose{gap:7px}.chat-compose input{font-size:16px;min-width:0}.chat-compose .primary-button{padding:10px 14px;font-size:14px}.settings-group{gap:13px}.settings-group h3{font-size:14px}.settings-group p{font-size:14px}.settings-group select{max-width:118px;font-size:14px;padding:10px 7px}.stat-grid>div{padding:12px}.stat-grid strong{font-size:19px}.stat-grid span{font-size:14px}.world-map{height:260px}#toasts{top:75px}.toast{padding:10px 16px;font-size:14px}.toolbar-row input{max-width:145px}.settings-group .secondary-button{padding:10px;white-space:nowrap}}
@media(max-height:570px) and (orientation:landscape){.topbar{height:52px;padding:0 16px}.brand-mark{height:32px;width:31px;font-size:23px}.brand strong{font-size:17px}.brand small{font-size:14px}.online-badge{font-size:14px}.left-hud{top:65px;left:12px;width:172px;gap:7px}.profile-card{padding:8px}.avatar{width:32px;height:36px}.profile-info>strong{font-size:14px}.profile-info>span{font-size:14px}.resource-row>div{padding:7px 9px}.resource-row strong{font-size:14px}.quest-card,.field-notice{display:none}.right-hud{top:65px;right:12px;width:128px}.weather-card{padding:11px}.weather-card h2{font-size:15px}.weather-art{font-size:25px}.weather-card .eyebrow{font-size:14px}.weather-card p{font-size:14px}.forecast,.weather-card>small,.map-card{display:none}.bottom-nav{bottom:14px;padding:4px 7px;gap:2px;border-radius:12px}.nav-button{height:48px;width:47px;gap:4px;font-size:14px}.nav-icon svg{width:20px;height:20px}.nav-button small{display:none}.nav-divider{height:24px}.center-hint{display:none}.quick-tools{bottom:34px;right:19px;flex-direction:row}.round-button{width:36px;height:36px}.performance-indicator{bottom:10px;font-size:14px}.chat-preview{display:none}.location-label{top:70px}.location-label span{font-size:14px}.location-label small{font-size:14px}#joystick{width:82px;height:82px;bottom:33px;left:34px}#joystick-knob{width:32px;height:32px;left:25px;top:25px}.auth-screen{top:52px;padding:15px 5vw}.auth-intro{display:block;margin:0}.auth-intro h1{font-size:28px;line-height:1.6;margin:15px 0}.auth-intro p{font-size:14px}.auth-stamp{display:none}.auth-card{padding:18px 23px;width:320px;max-height:100%;overflow:auto}.auth-card>.eyebrow,.auth-card>p,.auth-note,.auth-foot{display:none}.auth-card h2{font-size:18px;margin:0 0 13px}.auth-tabs{margin-bottom:12px}.auth-tabs button{padding-bottom:6px;min-height:25px}#auth-form{gap:10px}.auth-card label{gap:5px;font-size:14px}.auth-card input{padding:8px 10px;min-height:34px;font-size:14px}.auth-card .primary-button,.auth-card .secondary-button{min-height:34px;padding:8px 13px;font-size:14px}.auth-or{margin:8px 0}.auth-card .form-error{font-size:14px!important}dialog{max-height:calc(100dvh - 18px)}.panel-header{padding:12px 20px}.panel-header h2{font-size:19px;margin-top:4px}.panel-header .eyebrow{font-size:14px}#panel-body{max-height:calc(100dvh - 98px);padding:16px 20px}.chat-messages{height:170px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
#panel-toasts{position:absolute;top:98px;left:50%;transform:translateX(-50%);z-index:20;pointer-events:none;display:flex;flex-direction:column;gap:7px;width:max-content;max-width:90%}#panel-toasts .toast{max-width:100%}@media(max-width:600px){#panel-toasts{top:79px}}@media(max-height:570px) and (orientation:landscape){#panel-toasts{top:67px}}
.forecast span:last-child b{font-size:14px;font-variant-numeric:tabular-nums;padding-top:3px}@supports not (height:100dvh){#game{height:100vh}dialog{max-height:calc(100vh - 40px)}#panel-body{max-height:calc(100vh - 165px)}}
dialog:not([open]){display:none}.dialog-fallback:before{content:"";position:fixed;inset:0;background:#17352366;z-index:8}.dialog-fallback dialog[open]{display:block;position:fixed;inset:0;z-index:9;margin:auto;height:max-content}
@media(max-width:760px){#joystick{display:block}.center-hint{display:none}}.resource-row small{white-space:nowrap}
@media(max-height:570px) and (orientation:landscape){#joystick{display:block}}
/* Keep the portrait playfield clear; the complete journal opens from “全部”. */
@media(max-width:600px) and (orientation:portrait){.quest-card p,.quest-card .quest-bottom,.quest-card .quest-track,.quest-card .quest-action{display:none}.quest-card h2{margin:3px 0 10px;font-size:14px}.quest-card .text-button{min-height:32px;min-width:44px}.weather-card p{display:none}.map-card canvas{height:60px}}

/* A 14 CSS-pixel floor applies independently of the world render quality. */
:root{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
small{font-size:14px}
.brand small{letter-spacing:1px;line-height:1.3}.version-tag{letter-spacing:0}
.profile-info>span{display:flex;align-items:center;gap:5px;flex-wrap:wrap;line-height:1.4}.profile-info b{margin-right:0;white-space:nowrap}
.resource-row{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-row>div{padding:10px 9px;gap:5px;min-width:0}.resource-row strong{overflow:hidden;text-overflow:ellipsis}.resource-row small{color:#6c775c}.coin-symbol{font-size:18px}
.eyebrow{letter-spacing:1px}.quest-card p{line-height:1.75}.quest-bottom{gap:8px;flex-wrap:wrap}.quest-action{line-height:1.5}
.forecast{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.forecast span{text-align:center;line-height:1.4;min-width:0}.forecast b{white-space:nowrap}
.weather-card>small{line-height:1.6}.map-card>span{line-height:1.4}.map-card b{flex-shrink:0}
.nav-button{line-height:1.25}.nav-button small{top:3px;right:5px;line-height:1}.nav-icon{margin-top:5px}
.center-hint{gap:8px;max-width:calc(100% - 40px);line-height:1.4}.key-cap{letter-spacing:1px}
#chat-preview-messages{height:61px}.chat-placeholder{line-height:1.5}.performance-indicator{line-height:1.25}
.auth-screen{overflow:auto}.auth-card{margin-block:auto}.auth-card>p,.auth-note,.auth-foot{line-height:1.6}.auth-foot{gap:10px;flex-wrap:wrap}.auth-or{line-height:1.5}
input,select,textarea,.plot-card select,.toolbar-row input,.chat-controls input,.chat-controls select,.settings-group select{font-size:16px}
input::placeholder,textarea::placeholder{font-size:14px}.small-button{min-height:38px;line-height:1.4}.icon-button{min-width:40px;min-height:40px}
.item-card footer,.activity-card .meta{flex-wrap:wrap}.plot-head{gap:8px;flex-wrap:wrap}.plot-buttons button{flex:1 1 64px}
.toolbar-row{flex-wrap:wrap}.trade-info small{display:block;line-height:1.6;overflow-wrap:anywhere}.trade-row canvas{flex-shrink:0}
.leader-table th,.leader-table td{overflow-wrap:anywhere}.leader-name{flex-wrap:wrap}.arena-banner{gap:16px}.arena-banner>div{min-width:0}.arena-banner p{opacity:.9}
.settings-group>div{min-width:0}.history-list p{gap:12px;flex-wrap:wrap}
dialog[open]{display:flex;flex-direction:column}.panel-header{flex-shrink:0;gap:14px}.panel-header>div{min-width:0}.panel-header .icon-button{flex-shrink:0}#panel-body{min-height:0;flex:1 1 auto}
@media(min-width:901px) and (max-width:1180px){.left-hud{width:236px}.right-hud{width:200px}.chat-preview{width:236px}}
@media(min-width:601px) and (max-width:900px){.left-hud{width:216px}.right-hud{width:180px}.forecast{display:none}.brand small{font-size:14px}}
@media(max-width:600px){
  .topbar{height:70px;padding:0 12px}.brand strong{font-size:19px;letter-spacing:2px}.brand small{display:none}.online-badge{display:none}.top-actions{gap:4px}.icon-button svg{width:20px;height:20px}
  .left-hud,.right-hud{top:82px}.left-hud{width:calc(100% - 166px);max-width:224px}.right-hud{width:130px}.forecast,.weather-card>small{display:none}.profile-card{gap:8px;padding:10px}.profile-info>strong{font-size:15px}.profile-more{display:none}.avatar{width:34px;height:38px;flex-shrink:0}.profile-info>span{gap:3px}.profile-info b{padding:1px 3px}.profile-info #player-title{display:none}
  .resource-row{gap:5px}.resource-row>div{padding:8px 5px;gap:3px}.resource-row strong{font-size:15px}.resource-row small{margin-left:auto}.energy-symbol{font-size:19px}.coin-symbol{font-size:16px}
  .quest-card{padding:8px 10px 0}.quest-card .section-title{gap:3px}.quest-card .eyebrow{letter-spacing:0}.quest-card .text-button{padding:3px 0}.quest-card h2{line-height:1.5}.weather-card{padding:10px}.weather-card .eyebrow{letter-spacing:0}.weather-card h2{font-size:18px}.weather-art{font-size:25px}.map-card>span{gap:4px;padding:7px 2px 3px}.map-card .live-dot{display:none}
  .bottom-nav{padding:6px 3px;bottom:calc(23px + env(safe-area-inset-bottom))}.nav-button{height:59px;font-size:14px;gap:4px}.nav-icon{margin-top:0}.nav-divider{margin:0 2px}.performance-indicator{bottom:calc(4px + env(safe-area-inset-bottom));left:14px}
  .auth-screen{top:70px;padding:20px 16px}.auth-card{padding:23px;width:min(380px,100%)}.auth-card input,.market-form input,.market-form select,.plot-card select,.settings-group select{font-size:16px}.auth-card .eyebrow{letter-spacing:1px}
  .panel-header{padding:16px}.panel-header h2{margin-top:5px}.panel-intro{flex-wrap:wrap}.balance-chip{margin-left:auto}.item-card,.activity-card,.plot-card{padding:15px}.item-card h3,.activity-card h3,.plot-card h3,.quest-item h3{font-size:16px}.plot-buttons .small-button{font-size:14px;min-height:40px}.item-card footer{gap:10px}.tabs button{min-height:40px}.toolbar-row input{max-width:none;flex:1;min-width:140px}
  .trade-row{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:9px}.trade-row .trade-info{grid-column:2/4}.trade-row .trade-price{grid-column:2}.trade-row>.small-button{grid-column:3;font-size:14px;min-height:40px}.quest-item{grid-template-columns:1fr}.quest-item>button{grid-column:1;grid-row:auto;justify-self:start;font-size:14px;min-height:40px}.quest-item p{grid-column:1}
  .settings-group{flex-wrap:wrap;align-items:start}.settings-group>div{flex:1 1 180px}.settings-group select{max-width:100%;width:100%}.settings-group .secondary-button{min-height:42px}.chat-controls select{min-width:100px;font-size:16px}.chat-message{max-width:95%}.leader-table th,.leader-table td{padding:12px 5px}.arena-banner{flex-wrap:wrap}
}
@media(max-width:460px){.card-grid{grid-template-columns:1fr}.item-visual,.plot-card .item-visual{height:90px}.item-card p,.activity-card p,.plot-card p{line-height:1.7}.item-card footer{flex-wrap:nowrap}}
@media(max-width:360px){.left-hud{left:8px;width:calc(100% - 146px)}.right-hud{right:8px;width:120px}.profile-card{padding:8px;gap:5px}.avatar{width:28px;height:34px}.resource-row>div{padding:8px 3px;gap:2px}.coin-symbol,.energy-symbol{display:none}.quest-card{padding-inline:8px}.quest-card .text-button span{display:none}.nav-divider{display:none}.brand{gap:6px}.brand-mark{width:30px}.brand strong{font-size:18px}.stat-grid{gap:5px}.stat-grid>div{padding:10px 6px}}
@media(max-height:570px) and (orientation:landscape){
  .topbar{height:54px}.brand small{display:none}.left-hud{top:66px;width:204px}.right-hud{top:66px;width:148px}.profile-card{padding:8px}.profile-info>strong{font-size:14px}.profile-info #player-title{display:none}.profile-info>span{line-height:1.2}.xp-track{margin-top:5px}.resource-row>div{padding:6px}.resource-row strong{font-size:14px}.weather-card{padding:10px}.weather-card p{display:none}
  .bottom-nav{width:auto;bottom:14px;padding:5px;gap:2px}.nav-button{flex:none;width:49px;height:53px;font-size:14px}.nav-icon{margin-top:0}.nav-divider{margin:0 3px}.quick-tools{bottom:29px;gap:8px}.round-button{width:40px;height:40px}.performance-indicator{bottom:5px;right:16px;left:auto}.performance-indicator>span:last-child{display:none}
  .auth-screen{top:54px;overflow:auto}.auth-card input{font-size:16px;min-height:40px}.auth-card .primary-button,.auth-card .secondary-button{min-height:40px}.auth-card{width:340px}.auth-intro{max-width:42%}
}
@media(max-height:570px) and (orientation:landscape) and (max-width:700px){.quick-tools{bottom:85px;flex-direction:column;gap:5px}.nav-button{width:43px}.bottom-nav{gap:0}.auth-intro{display:none}.auth-screen{justify-content:center}}
@media(max-height:820px) and (min-width:901px){.field-notice{display:none}.quest-card h2{margin-top:12px}.quest-action{margin-top:14px}.left-hud{gap:10px}}
@media(max-height:700px) and (min-width:901px){.quest-card p,.quest-card .quest-bottom,.quest-card .quest-track{display:none}.quest-card h2{margin:10px 0}.quest-action{margin-top:10px}#chat-preview-messages{height:27px;margin:5px 0}.chat-placeholder{padding:8px 0}.weather-card p,.weather-card>small{display:none}}
@media(max-height:570px) and (orientation:landscape){#mobile-chat{display:grid}}
