/* VILKO: warm stone, carved timber, golden details and one consistent item atlas. */
:root{--game-ink:#324047;--game-navy:#233b40;--game-gold:#d9a34b;--game-paper:#f2e7ce;--game-outline:#604a2c;--serif:'Trebuchet MS','Segoe UI',sans-serif;--sans:'Trebuchet MS','Segoe UI',sans-serif}
[hidden]{display:none!important}
body{background:#718d40;color:var(--game-ink);font-size:14px}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{touch-action:manipulation}
.game-mode{height:100dvh!important;min-height:320px!important;overflow:hidden;background:#7b9c43;isolation:isolate}
.game-mode .viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab;outline:none}
.game-mode .viewport.dragging{cursor:grabbing}
.game-mode .world{position:absolute;inset:0;width:100%;height:100%;transform:none;pointer-events:none}
#village-canvas{width:100%;height:100%;display:block}
.game-art{display:inline-block;width:32px;height:32px;background-image:url('assets/game-icons-v3.webp');background-repeat:no-repeat;background-size:400% 300%;background-position:var(--art-x) var(--art-y);flex-shrink:0;vertical-align:middle;filter:drop-shadow(0 2px 1px #302b2b35)}
.game-mode button:focus-visible,.game-mode a:focus-visible{outline:3px solid #ffdc7c;outline-offset:4px}
.game-mode button{transition:filter .15s,transform .15s,background .15s}
.game-mode button:hover:not(:disabled){filter:brightness(1.07)}
.game-mode button:disabled{opacity:.5;cursor:not-allowed}
.hud-player{position:absolute;left:26px;top:24px;width:252px;z-index:4}
.player-profile{display:flex;position:relative;align-items:center;gap:13px;width:100%;text-align:left;padding:10px 20px 12px 10px;background:linear-gradient(115deg,#2c464a,#1e3338);border:2px solid #ba9559;border-bottom-width:4px;border-radius:12px;color:#fff1d0;box-shadow:0 4px 0 #43351f,0 7px 16px #23311d36,inset 0 1px #f1ddab55}
.player-crest{display:block;width:55px;flex-shrink:0;transform:rotate(-5deg)}
.player-crest svg{width:55px;height:64px;filter:drop-shadow(0 3px 1px #13242988)}
.player-info{display:flex;flex-direction:column;flex:1;min-width:0}
.game-wordmark{font-size:10px;letter-spacing:3px;color:#e4bf7c;font-weight:800}
.player-info>strong{font-size:27px;letter-spacing:-.7px;margin-top:2px;text-shadow:0 2px #16292e}
.player-info>small{font-size:8px;letter-spacing:.8px;color:#cec6af;margin-top:5px}
.xp-track{margin-top:7px;width:100%;height:7px;background:#10262b;border:1px solid #62858b;border-radius:4px;box-shadow:inset 0 2px 2px #0005;overflow:hidden}
.xp-track i{display:block;background:linear-gradient(#70c8d1,#31899e);height:100%;width:18%;border-radius:3px}
.level-badge{position:absolute;right:-10px;top:-9px;width:32px;height:34px;display:grid;place-items:center;border:2px solid #efc677;border-radius:9px;background:linear-gradient(#4f7d8c,#254858);box-shadow:0 2px #322c1c;font-size:18px;font-weight:900;text-shadow:0 2px #1c3441}
.village-identity{display:block;font-size:8px;letter-spacing:1px;font-weight:800;text-align:center;color:#fff4d6;text-shadow:0 1px 3px #293e1b;margin-top:11px}
.realm-heading{position:absolute;top:30px;left:50%;transform:translateX(-50%);text-align:center;color:#fdf3cf;font-size:10px;letter-spacing:3px;font-weight:800;text-shadow:0 1px 2px #304322;white-space:nowrap;pointer-events:none}
.realm-heading>span{display:inline-block;vertical-align:middle}
.realm-ornament{width:45px;height:1px;background:linear-gradient(90deg,transparent,#ead8a3);margin:0 11px}
.realm-ornament.reverse{transform:rotate(180deg)}
.realm-heading p{font-size:14px;letter-spacing:.4px;font-weight:500;margin:10px 0}
.wallet-top{position:absolute;top:24px;right:27px;display:flex;align-items:center;gap:12px;z-index:4}
.preview-label{font-size:8px;letter-spacing:1px;color:#fff3d0;font-weight:800;text-shadow:0 1px 2px #263519;display:flex;align-items:center;gap:7px}
.preview-label i{width:5px;height:5px;background:#e7c777;border-radius:50%;box-shadow:0 0 0 3px #e7c77722}
.wallet-chip{display:flex;align-items:center;gap:9px;min-height:41px;border-radius:9px;padding:4px 13px 4px 8px;color:#f4e6c7;background:linear-gradient(#30494a,#243a3d);border:1px solid #a48e60;border-bottom:3px solid #5a4930;box-shadow:0 2px 5px #20321844}
.wallet-chip .game-art{width:30px;height:30px}.wallet-chip b{font-size:12px;font-weight:700}.wallet-chip.connected{border-color:#94b08e}
.hud-resources{position:absolute;top:84px;right:27px;width:232px;display:grid;grid-template-columns:1fr 1fr;gap:13px 14px;z-index:4}
.game-resource{position:relative;display:flex;align-items:center;text-align:left;width:100%;height:50px;border:2px solid #b7a16d;border-bottom-width:3px;border-radius:8px;background:linear-gradient(#35452e,#263b2b);box-shadow:0 2px 0 #3c4327,0 4px 6px #243a2033;color:#fff7d7;padding:4px 15px 7px 9px}
.resource-track{display:block;position:relative;isolation:isolate;width:100%;height:100%}
.resource-track>small{font-size:8px;font-weight:700;letter-spacing:1px;color:#e8dec3;display:block;margin-bottom:4px}
.resource-track>b{position:relative;font-size:18px;line-height:1;z-index:1;font-weight:900;text-shadow:0 2px #26301b}
.resource-track>i{display:block;position:absolute;bottom:-7px;left:-9px;height:4px;max-width:calc(100% + 20px);border-radius:0 2px 2px 5px;background:linear-gradient(90deg,#ba882e,#edc753);width:62%}
.large-resource-icon{position:absolute;right:-13px;top:4px;filter:drop-shadow(0 2px 1px #22341d99)}
.large-resource-icon .game-art{width:39px;height:39px}
.wood-resource .resource-track>i{background:#bb8244}.food-resource .resource-track>i{background:#dac661}.ore-resource .resource-track>i{background:#57b7ce}
.hud-centre{position:absolute;top:164px;left:26px;display:flex;gap:9px;z-index:4}
.hud-counter{display:flex;gap:8px;align-items:center;background:#263f3cd9;border:1px solid #b7a270;border-bottom:3px solid #4e4d32;border-radius:8px;color:#f9efd5;padding:5px 9px 5px 6px;min-width:106px;box-shadow:0 2px 5px #243b2033}
.hud-counter>span:first-child .game-art{width:32px;height:32px}.hud-counter strong{font-size:15px;display:block;font-weight:900;white-space:nowrap}.hud-counter small{font-size:7px;letter-spacing:.7px;color:#d1ccb2;margin-top:4px;display:block}.hud-counter em{font-size:11px;font-style:normal;color:#c6c4ae}
.happiness-counter{display:none}.happiness-counter>span:first-child{color:#f0bd7a}.happiness-counter svg{width:25px;height:25px}
.left-game-tools{position:absolute;top:246px;left:25px;display:flex;flex-direction:column;gap:17px;z-index:5}
.game-tool{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:65px;height:69px;border-radius:11px;border:2px solid #eed39b;border-bottom:5px solid #876235;background:linear-gradient(145deg,#f6e5b6,#dec089);box-shadow:0 3px 0 #51472c,0 4px 10px #25341d50,inset 0 1px #fff6cf;color:#5d442a}
.game-tool>span .game-art{width:44px;height:44px}.game-tool>b{font-size:9px;white-space:nowrap;margin-top:2px;font-weight:900}
.game-tool>i{position:absolute;right:-7px;top:-8px;font-style:normal;border:2px solid #fff1c4;background:#b74937;color:#fff8dc;min-width:21px;height:22px;padding:1px 4px;border-radius:7px;font-size:11px;font-weight:900;display:grid;place-items:center;box-shadow:0 2px 1px #51332155}
.right-game-tools{position:absolute;right:25px;bottom:177px;display:flex;flex-direction:column;gap:9px;z-index:4}
.right-game-tools .game-tool{width:40px;height:41px;border-radius:8px;background:linear-gradient(#e7e7ce,#bdc1a4);border-color:#e9e5c4;border-bottom:4px solid #626d50;color:#536147}
.right-game-tools .game-tool>svg{width:19px;height:19px}.right-game-tools .game-art{width:29px;height:29px}.right-game-tools .game-tool.active{background:linear-gradient(#f8d57c,#d8a445);border-color:#ffebaf;border-bottom-color:#865b30}
.zoom-tools{position:absolute;right:24px;bottom:123px;display:flex;gap:4px;z-index:5;background:#263f3ce6;border:1px solid #d3b77a;border-radius:7px;padding:3px;box-shadow:0 2px #55482a}
.zoom-tools button{display:grid;place-items:center;width:31px;height:31px;background:transparent;color:#fff2d4;border-radius:4px}.zoom-tools button svg{width:16px;height:16px}.zoom-tools button:hover{background:#b5b78c22}
.game-clock{position:absolute;left:27px;bottom:40px;display:flex;align-items:center;gap:9px;z-index:4;color:#fff6d4;text-shadow:0 1px 3px #2a3d20}
.game-clock>span:first-child{color:#ead696}.game-clock strong{font-size:14px;display:block}.game-clock small{font-size:8px;letter-spacing:.8px;margin-top:4px;display:block}.game-clock button{display:grid;place-items:center;background:#233b3bdd;color:#f6e5c4;width:29px;height:29px;border:1px solid #b7a16a;border-bottom:3px solid #5b4f30;border-radius:6px;margin-left:4px;font-size:11px;font-weight:900;text-shadow:none}.game-clock button svg{width:12px;height:12px}
.bottom-dock-game{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);display:flex;align-items:stretch;gap:3px;padding:8px 12px 10px;border:2px solid #b89b65;border-bottom:5px solid #6d5134;border-radius:15px;background:linear-gradient(#365052,#23393c);box-shadow:0 3px 0 #3e3527,0 7px 25px #28351f66,inset 0 1px #d8c19755;z-index:6}
.dock-game-item{width:76px;height:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:8px;color:#f5e2bb;position:relative}
.dock-game-item>span{display:block;height:43px}.dock-game-item .game-art{height:44px;width:44px}.dock-game-item svg{height:39px;width:35px}.dock-game-item>b{font-size:11px;font-weight:900;text-shadow:0 2px #1a2c2d;margin-top:4px;letter-spacing:.3px}
.dock-game-item:hover{background:#c1a57015;border-color:#b89b6533}.dock-game-item.build-highlight{margin-top:-16px;height:83px;background:linear-gradient(#eab65e,#cc8d36);border:2px solid #ffe1a2;box-shadow:0 3px 0 #7c512a;border-radius:11px;color:#fff1cb}.dock-game-item.build-highlight>b{text-shadow:0 2px #8c5b2e}.dock-game-item.build-highlight .game-art{height:50px;width:50px}
.journey-teaser{position:absolute;left:26px;bottom:121px;display:flex;align-items:center;gap:10px;width:270px;text-align:left;background:linear-gradient(120deg,#fcf0d0,#ead4a3);border:2px solid #fff0bf;border-bottom:4px solid #9c7944;border-radius:10px;padding:11px 12px 12px 9px;box-shadow:0 3px 0 #5b5636,0 5px 15px #24351e33;z-index:4;color:#4d452f}
.teaser-icon .game-art{width:48px;height:48px}.teaser-copy{flex:1;min-width:0}.teaser-copy>small{font-size:7px;letter-spacing:1.2px;color:#967641;font-weight:900;display:block;margin-bottom:5px}.teaser-copy>strong{display:block;font-size:12px;line-height:1.3}.teaser-copy>#quest-progress{font-size:8px;margin-top:4px;display:block;color:#82714a}.journey-teaser>span:last-child svg{height:14px;width:14px;color:#b49764}
.teaser-meter{display:block;height:5px;border:1px solid #cbb887;background:#d8c89e;border-radius:5px;margin-top:8px;overflow:hidden}.teaser-meter i{display:block;height:100%;width:0;background:linear-gradient(#7babad,#3c777b)}
.latest-story{position:absolute;right:87px;bottom:190px;display:flex;align-items:center;gap:10px;width:240px;color:#fff3cf;text-shadow:0 1px 3px #354325;pointer-events:none;z-index:3}
.story-badge{display:none}.latest-story strong{font-size:11px;display:block;letter-spacing:.2px}.latest-story p{font-size:10px;line-height:1.6;max-height:50px;overflow:hidden;margin:6px 0 0;color:#f0e3b8}.latest-story button{pointer-events:auto;flex-shrink:0;color:#fff0c8;background:#29422b77;width:24px;height:30px;border-radius:5px}.latest-story button svg{width:12px;height:12px}
.bottom-village-name{position:absolute;left:50%;bottom:137px;transform:translateX(-50%);text-align:center;color:#fff4d2;text-shadow:0 2px 3px #293e1b;pointer-events:none;z-index:2;white-space:nowrap}.bottom-village-name>strong{font-size:13px;letter-spacing:3px;display:block}.bottom-village-name>span{font-size:10px;letter-spacing:.6px;display:block;margin-top:7px}.bottom-village-name>small{display:block;margin-top:11px;font-size:7px;letter-spacing:1.3px;color:#e5deb8}
.contribution-chip{position:absolute;right:28px;bottom:76px;display:flex;align-items:center;gap:7px;color:#e5ebce;background:#243e37bb;border:1px solid #b8b48277;border-radius:6px;padding:7px 10px;z-index:4}.contribution-chip>b{font-size:12px}.contribution-chip>span:last-child{font-size:9px}.point-diamond{width:8px;height:8px;transform:rotate(45deg);background:#6bb8c2;border:1px solid #b1e6df;box-shadow:0 1px 2px #283932}
.corner-links{position:absolute;right:27px;bottom:30px;display:flex;gap:14px;align-items:center;z-index:6;color:#f3e5bd;font-size:10px;font-weight:700;text-shadow:0 1px #30421c}.corner-links button{background:transparent;font-size:10px;padding:3px 0;color:inherit}.corner-links .preview-badge{border:1px solid #dfd4a16b;border-radius:4px;padding:4px 6px;font-size:7px;letter-spacing:1px}.corner-links a{font-size:12px}
/* Game panels */
.game-mode .modal-backdrop{padding:28px;background:#152c32a6;backdrop-filter:blur(3px);z-index:30;position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.game-mode .modal{width:min(920px,100%);max-height:calc(100dvh - 70px);border:3px solid #ab8951;border-top-color:#ddbf82;border-bottom:7px solid #82603a;background:linear-gradient(130deg,#fbf1dc,#eee0c0);border-radius:15px;box-shadow:0 3px 0 #4a3b2a,0 25px 80px #152a3299,inset 0 0 0 2px #fff7de;scrollbar-color:#b59b6c #e6d7b7;color:#3e4847}
.game-mode .modal.narrow{width:min(550px,100%)}.game-mode .modal.wide{width:min(1040px,100%)}
.game-mode .modal-header{padding:24px 64px 23px 26px;background:linear-gradient(#344d50,#253d41);border-bottom:4px solid #ae8c53;color:#fff0cc;gap:14px;box-shadow:inset 0 2px #ffffff15}
.game-mode .modal-title-icon{background:#172f34;border:1px solid #b3975c;width:55px;height:58px;border-radius:10px;box-shadow:0 2px #13252a,inset 0 1px #eff6ce22;flex-shrink:0;color:#e7c37d}
.game-mode .modal-title-icon .game-art{width:47px;height:47px}.game-mode .modal-title-icon svg{width:35px;height:40px}
.game-mode .modal-header h2{font-size:26px;font-weight:900;letter-spacing:-.5px;margin:5px 0 7px;line-height:1.12;text-shadow:0 2px #173038}
.game-mode .modal-header p{font-size:11px;color:#d2d2bc;line-height:1.5}.game-mode .modal-header .eyebrow{font-size:8px;letter-spacing:1.4px;color:#d6b77a}
.game-mode .modal-close{height:31px;width:32px;right:18px;top:19px;border:1px solid #eac492;border-bottom:3px solid #783d2c;background:linear-gradient(#ca7350,#a74d33);border-radius:7px;color:#fff0d2;box-shadow:0 2px #10292b66}.game-mode .modal-close svg{height:16px;width:16px}
.game-mode .modal-tabs{padding:10px 24px 0;gap:8px;background:#dfd0ab;border-bottom:2px solid #c8b68c;scrollbar-width:none}
.game-mode .modal-tabs button{border:1px solid #c5b083;border-bottom:0;border-radius:7px 7px 0 0;background:linear-gradient(#e9dcbd,#d4c399);padding:12px 18px;font-size:11px;font-weight:800;color:#746245;white-space:nowrap}
.game-mode .modal-tabs button.active{background:#f7edd5;color:#3b5657;border-color:#b69c68;box-shadow:inset 0 3px #ca9d51}
.game-mode .modal-body{padding:25px 26px 29px}
.game-mode .btn{border:1px solid #ae9563;border-bottom:3px solid #94764a;border-radius:7px;background:linear-gradient(#f5e9cc,#e3d1a7);color:#65502f;font-size:11px;font-weight:800;min-height:39px;padding:9px 14px;box-shadow:inset 0 1px #fff7dc,0 1px #f8f0d6;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.game-mode .btn.primary{color:#fff5d8;background:linear-gradient(#567b7e,#33585f);border-color:#7e9d94;border-bottom-color:#243f46;box-shadow:inset 0 1px #ffffff30;text-shadow:0 1px #244148}
.game-mode .btn.danger{background:linear-gradient(#cb8061,#ab5a41);border-color:#d09b6b;border-bottom-color:#783b2a;color:#fff1d0}
.game-mode .btn svg{width:15px;height:15px}.game-mode .btn .game-art{width:24px;height:24px;margin:-5px 0}.game-mode .full-width{width:100%}.game-mode .button-row{gap:10px;flex-wrap:wrap}.game-mode .body-copy{font-size:13px;color:#6f705d;line-height:1.8}
.game-mode .paper-card{background:#fff8e8;border:1px solid #d5c39a;border-bottom:3px solid #d2bd91;border-radius:9px;padding:20px;box-shadow:inset 0 1px #fffdf3}.game-mode .two-col{gap:18px}.game-mode .two-col>.paper-card{margin:0}
.game-mode .paper-card h3,.game-mode .docs-section h3{font-size:21px;font-weight:900;color:#435555;line-height:1.2;letter-spacing:-.3px}.game-mode .paper-card p,.game-mode .docs-section p{font-size:12px;line-height:1.8;color:#77735f}
.game-mode .stats-grid{gap:12px;margin-bottom:22px}.game-mode .stat-tile{border:1px solid #d3c198;background:#e9ddbe;border-bottom:3px solid #c9b587;border-radius:8px;padding:17px 15px;min-width:0}.game-mode .stat-tile small{font-size:8px;color:#88734c;font-weight:800;letter-spacing:.8px;margin-bottom:9px}.game-mode .stat-tile strong{font-weight:900;color:#3f5757;font-size:27px;overflow-wrap:anywhere;letter-spacing:-.7px}.game-mode .stat-tile p{font-size:10px;color:#807a62;line-height:1.5}
.game-mode .notice{background:#e6e6cc;border:1px solid #c9d1ae;border-radius:7px;padding:13px 15px;font-size:11px;line-height:1.8;color:#63705a;display:block}.game-mode .notice svg{display:inline-block;height:15px;width:15px;vertical-align:middle;margin-right:4px}.game-mode .notice.warm{background:#f1dfb8;color:#8b683c;border-color:#ddbf82}.game-mode .preview-explainer{font-size:11px;line-height:1.8;color:#87795f;border-top:1px solid #d4c29b;margin-top:20px;padding-top:15px}
.game-mode .section-label{font-size:9px;letter-spacing:1.1px;color:#9a7c4d;font-weight:800}.game-mode .feature-row{gap:12px}.game-mode .feature-row>span{width:39px;height:40px;background:#ead9b3}.game-mode .feature-row .game-art{width:33px;height:33px}.game-mode .feature-row strong{font-size:13px}.game-mode .feature-row p{font-size:11px}.game-mode .feature-row svg{height:22px;width:22px}
.game-mode .portrait{display:inline-block;background-image:url('assets/villagers-v3.webp')!important;background-size:400% 200%!important;background-position:var(--portrait-x) var(--portrait-y)!important;background-repeat:no-repeat!important;border:2px solid #c2a26a;border-bottom-width:3px;border-radius:10px;width:48px;height:48px;flex-shrink:0;box-shadow:0 2px 3px #5e573d22;overflow:hidden}
.game-mode .avatar.large,.game-mode .resident-profile .avatar{width:94px;height:94px;border-radius:13px;border-width:3px}
.game-mode .villager-tile{border:1px solid #d3bf97;border-bottom:3px solid #d4c095;border-radius:9px;background:#fff8e6;gap:11px;padding:14px;text-align:left}
.game-mode .villager-tile .avatar{width:50px;height:50px}.game-mode .villager-tile strong{font-size:15px;font-weight:800;color:#3f5352}.game-mode .villager-tile small{font-size:10px;color:#8b7855}.game-mode .villager-tile .mood{font-size:9px;color:#7c8b64;line-height:1.5}.game-mode .residents-grid{gap:12px}
.game-mode .search-box{background:#fff8e7;border:1px solid #c8b286;border-radius:7px}.game-mode .search-box input{font-size:12px;color:#52615a;min-height:21px}.game-mode .select{border:1px solid #b8a075;border-radius:6px;background:#f8ebce;font-size:11px;padding:11px;color:#5d6250;min-height:40px}.game-mode .search-box input::placeholder{color:#a19677}
.game-mode .resident-profile h3{font-size:27px;font-weight:900;color:#425756}.game-mode .tag{font-size:9px;border-color:#cbb98c;background:#e7d9b5;color:#86714b;border-radius:4px}.game-mode .profile-tools{flex-wrap:wrap;justify-content:flex-end}.game-mode .profile-details{background:#e7dcbc;border:1px solid #d4c299;font-size:11px;color:#83734f;gap:12px;line-height:1.5}
.game-mode .need-track{height:7px;background:#d6caa5;border:1px solid #c3b38a;border-radius:6px;overflow:hidden}.game-mode .need-track>i{height:100%;background:linear-gradient(#89a58a,#668875)!important}.game-mode .need-large label{font-size:12px;color:#74674c;margin-bottom:9px}.game-mode .need-large b{font-size:11px;color:#7c8b6d}.game-mode .thought{font-size:20px;color:#7e7359;line-height:1.6;border-color:#c5b68f}.game-mode .diary-entry p{font-size:13px;color:#6f715c;line-height:1.8}.game-mode .diary-entry small{font-size:9px;color:#a08b5f}
.game-mode .relationship{background:#fff7e6;border-color:#d4bf95;gap:12px}.game-mode .relationship strong{font-size:14px}.game-mode .relationship p{font-size:11px}.game-mode .leader .avatar{width:65px;height:65px}.game-mode .leader h3{font-size:22px;font-weight:900;color:#435b57}.game-mode .leader small{font-size:8px;color:#998255}.game-mode .meter{background:#d8caa5;height:8px;border-radius:6px;overflow:hidden}.game-mode .meter>i{background:#75978a}.game-mode .meter-label{font-size:12px;color:#87764f}.game-mode .vote-row strong{font-size:11px;color:#77654a}.game-mode .slider-row input{accent-color:#4d7578}.game-mode .slider-row label{font-size:12px}.game-mode .slider-row p{font-size:11px}
.game-mode .building-grid{gap:15px}.game-mode .building-tile{display:flex;align-items:center;gap:12px;background:#fff6e2;border:1px solid #d1bc8e;border-bottom:3px solid #cdb88b;border-radius:10px;padding:17px 14px}.game-mode .building-thumb{width:112px;height:120px;object-fit:contain;filter:drop-shadow(0 3px 2px #74633f22)}.game-mode .building-tile h3{font-size:19px;font-weight:900;color:#455a56;line-height:1.2;margin:6px 0}.game-mode .building-tile p{font-size:11px;line-height:1.7;color:#94805a}.game-mode .building-level{font-size:8px;letter-spacing:.5px;color:#9d7c46;font-weight:800}.building-sprite-panel{height:205px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 80%,#d6c49666,transparent 65%);margin-bottom:15px}.building-sprite-panel img{max-height:192px;max-width:90%;object-fit:contain;filter:drop-shadow(0 5px 3px #6c633524)}
/* Selected object tools */
.building-actions,.move-actions{position:absolute;bottom:142px;left:50%;transform:translateX(-50%);text-align:center;z-index:10;max-width:90%}.building-actions>h2,.move-actions>strong{font-size:22px;font-weight:900;color:#fff2cd;text-shadow:0 2px #324321,2px 0 #324321,-2px 0 #324321,0 -1px #324321;display:block;margin:0 0 14px}.building-actions>h2 small{font-size:12px;color:#efe1b4}.building-action-row{display:flex;gap:13px;justify-content:center}.building-action{width:81px;height:77px;border:2px solid #fff1ba;border-bottom:5px solid #95703e;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:linear-gradient(#f9e9b9,#d8bb7c);color:#694d2a;box-shadow:0 3px 0 #4c482e,0 3px 12px #1d362333}.building-action>b{font-size:11px}.building-action>small{font-size:8px}.building-action>svg{width:28px;height:28px}.building-action .game-art{width:34px;height:34px}.building-action.upgrade{background:linear-gradient(#769d80,#4f7e68);border-color:#cce2ab;border-bottom-color:#37553e;color:#f6f3cf;width:108px}.move-actions>span{color:#fff2cf;text-shadow:0 2px #3b4b2b;font-size:12px}.move-actions>div{display:flex;justify-content:center;gap:16px;margin-top:14px}.game-confirm{display:grid;place-items:center;width:64px;height:48px;background:linear-gradient(#82ab78,#5d8a55);color:#f6ffdf;border:2px solid #d4e7aa;border-bottom:5px solid #41603b;border-radius:9px;box-shadow:0 2px #344028}.game-confirm.cancel{background:linear-gradient(#d48c67,#b46142);border-color:#f9cea3;border-bottom-color:#7c4932}.game-confirm svg{width:28px;height:28px}
.game-mode.selecting .bottom-village-name,.game-mode.moving .bottom-village-name,.game-mode.moving .building-actions{display:none!important}
.game-mode .resident-card{position:absolute;left:107px;bottom:135px;z-index:12;width:306px;border:2px solid #e6cf97;border-bottom:5px solid #9a794a;border-radius:12px;background:linear-gradient(#fff4d6,#e9d7b0);padding:19px;box-shadow:0 3px #5f5938,0 7px 20px #253d2344;animation:modalIn .17s ease-out}.game-mode .resident-head h3{font-size:20px;font-weight:900;color:#435753}.game-mode .resident-head .job{font-size:10px;color:#988057}.game-mode .resident-card .status{font-size:11px;color:#8a7953}.game-mode .resident-card .dismiss{background:transparent;color:#a0865c}.game-mode .resident-card .card-links{gap:7px}.game-mode .resident-card .card-links .btn{font-size:10px;padding:8px 10px}.game-mode .resident-card .need-line{font-size:10px;color:#857650}
/* Activity drawer */
.game-mode .life-panel{min-height:0;position:absolute;left:106px;top:239px;bottom:139px;width:342px;max-height:540px;border:2px solid #c5a76e;border-bottom:5px solid #907046;background:linear-gradient(#faf0d8,#ebdcba);border-radius:12px;box-shadow:0 4px 0 #645638,0 7px 35px #172e2f55;z-index:15;display:none;flex-direction:column;overflow:hidden;animation:modalIn .18s ease-out}
.game-mode .life-panel.open{display:flex}.game-mode .life-heading{padding:20px 18px 14px}.game-mode .life-heading h2{font-size:22px;font-weight:900;color:#45615c}.game-mode .life-heading .eyebrow{font-size:7px;letter-spacing:1px;color:#a38b5d}.game-mode .live-status{font-size:6px;letter-spacing:.6px;color:#8d9b71}.game-mode .live-status i{background:#7e9b76;box-shadow:none;animation:none}.game-mode .life-heading .small-icon{color:#9c845b}.game-mode .panel-tabs{margin:0 18px;gap:25px;border-color:#d8c79f}.game-mode .panel-tabs button{font-size:10px;color:#ac976c;padding-bottom:11px}.game-mode .panel-tabs button.active{color:#57796d;border-color:#688a76}.game-mode .activity-feed{padding:0 18px;overflow:auto}.game-mode .feed-entry{padding:17px 0;border-color:#dfcfaa;gap:11px}.game-mode .feed-entry .avatar{width:40px;height:40px;border-radius:8px}.game-mode .event-dot{width:17px;height:17px;right:-3px;bottom:-3px;background:#f7e6bc;border:1px solid #dac48f;color:#b4844c}.game-mode .event-dot svg{width:10px;height:10px}.game-mode .event-dot .game-art{width:15px;height:15px}.game-mode .feed-content strong{font-size:11px;font-weight:800;color:#5e6653}.game-mode .feed-content p{font-size:10px;line-height:1.7;color:#9c8a62}.game-mode .feed-content time{font-size:8px;color:#ad9c77}.game-mode .view-chronicle{font-size:10px;background:#dfcfaa66;color:#8d784b;padding:13px;border-color:#d4c096}.game-mode .village-mood{padding:15px 16px;background:#e0e2c5;border-color:#cbd1ae}.game-mode .village-mood strong{font-size:10px;color:#70866c}.game-mode .village-mood small{font-size:8px;color:#98a17c;margin-top:5px;line-height:1.5}.game-mode .village-mood>span:last-child{font-size:27px;color:#6e8a6d}.game-mode .village-mood>span:last-child small{font-size:13px}.game-mode .chronicle-list .feed-content strong{font-size:13px}.game-mode .chronicle-list .feed-content p{font-size:12px}.game-mode .chronicle-list .feed-content time{font-size:9px}
/* Mining, quests and genuine wallet readout */
.three-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.production-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.production-card{padding:14px 16px 18px;border:1px solid #d5c097;border-bottom:3px solid #c7af80;border-radius:10px;background:#fff8e6;text-align:center;min-width:0}
.production-image{height:145px;position:relative;display:grid;place-items:center;margin:0 -8px 13px;background:radial-gradient(ellipse at 50% 90%,#dbcca266,transparent 70%)}.production-image>img{height:140px;max-width:100%;object-fit:contain;filter:drop-shadow(0 5px 2px #5f5c2a22)}.production-image .tag{position:absolute;right:3px;top:0;font-size:8px}
.production-card>h3{font-size:17px;font-weight:900;color:#425b56;margin:5px 0 8px;letter-spacing:-.4px}.production-rate{font-size:11px;color:#a48b58;display:flex;align-items:center;justify-content:center;gap:4px}.production-rate .game-art{height:23px;width:23px}.production-ready{padding:15px 0;margin:11px 0 15px;border-top:1px solid #e9ddbe;border-bottom:1px solid #e9ddbe}.production-ready>small{font-size:7px;letter-spacing:1.1px;color:#a99060;font-weight:800}.production-ready>strong{display:block;font-size:30px;font-weight:900;color:#4d6c61;margin:6px 0 2px}.production-ready>span{font-size:10px;color:#998a61}
.mining-notes{display:flex;align-items:center;gap:20px;justify-content:space-between;border:1px solid #c2ccac;background:#e2e6cd;padding:16px;border-radius:8px;margin-bottom:16px}.mining-notes strong{color:#5c7968;font-size:14px}.mining-notes p{font-size:11px;line-height:1.7;color:#8a9471;margin:5px 0 0}.mining-notes .btn{white-space:nowrap;flex-shrink:0}
.field-label{display:block;margin:19px 0 8px;color:#9c8356;font-size:9px;letter-spacing:.9px;font-weight:800}.wide-select{max-width:none!important;width:100%;margin-bottom:4px}.wide-select+.btn{margin-top:18px}.workforce-row{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #e5d7b5;font-size:12px;color:#7b7559}.workforce-row b{color:#4a6b5f;font-size:13px;white-space:nowrap}.workforce-row small{font-weight:400;font-size:10px;color:#9c8b62}
.forge-feature{display:flex;align-items:center;gap:32px;padding:9px 20px 26px}.forge-feature>img{width:225px;max-height:240px;object-fit:contain;filter:drop-shadow(0 5px 3px #70613333)}.forge-feature h3{font-size:28px;color:#465e59;letter-spacing:-.6px;margin:9px 0}.forge-feature p{font-size:12px;line-height:1.8;color:#8e805f}.recipe-cost{display:flex;align-items:center;gap:20px;margin:19px 0}.recipe-cost>span{display:flex;gap:5px;align-items:center;font-size:15px;font-weight:800;color:#836a42}.recipe-cost .game-art{width:30px;height:30px}
.journey-intro{display:flex;align-items:center;gap:16px;margin-bottom:24px}.journey-book .game-art{width:65px;height:65px}.journey-intro h3{font-size:22px;margin:0 0 8px;color:#425e59;font-weight:900}.journey-intro p{font-size:11px;color:#a08d62;margin:0}.points-pill{margin-left:auto;border:1px solid #a4b8ad;border-bottom:3px solid #76958c;background:#d6e3d8;color:#648579;font-size:12px;font-weight:900;padding:9px 12px;border-radius:7px;white-space:nowrap}
.quest-list{display:grid;gap:13px;margin-bottom:22px}.quest-row{display:flex;align-items:center;gap:17px;border:1px solid #d3c096;border-bottom:3px solid #c8b282;background:#fff8e6;border-radius:9px;padding:17px 19px}.quest-art .game-art{width:54px;height:54px}.quest-copy{flex:1;min-width:0}.quest-copy>h3{font-size:16px;font-weight:900;color:#4a6158;margin:0 0 6px}.quest-copy>p{font-size:11px;color:#9a885c;line-height:1.5;margin:0}.quest-meter{height:6px;border:1px solid #cbbb91;background:#e2d5b2;border-radius:5px;margin:11px 0 7px;overflow:hidden}.quest-meter i{display:block;height:100%;background:linear-gradient(#91aea0,#638c80)}.quest-copy>small{display:flex;justify-content:space-between;font-size:9px;color:#9b8d68;gap:10px}.quest-copy>small b{font-weight:700;color:#b38b49}.quest-row .btn{min-width:76px;flex-shrink:0}.quest-claimed{background:#e9e7cf;opacity:.78}.quest-done{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:9px;color:#739177;min-width:76px}.quest-done svg{height:23px;width:23px}
.treasury-banner{display:flex;align-items:center;gap:20px;margin-bottom:25px;background:linear-gradient(120deg,#2e4b4e,#233b41);padding:22px 24px;border:2px solid #c3a164;border-bottom:4px solid #907349;border-radius:11px;color:#efdeb6}.treasury-banner>span .game-art{width:105px;height:105px}.treasury-banner .section-label{font-size:7px;color:#cfb27b}.treasury-banner h3{font-size:25px;font-weight:900;color:#f6e6c3;letter-spacing:-.6px;margin:9px 0}.treasury-banner p{font-size:11px;line-height:1.8;color:#c0c9b7;margin:0;max-width:550px}
.status-chip{display:inline-flex;align-items:center;gap:6px;font-size:8px;letter-spacing:1px;font-weight:800;background:#dce6cc;color:#76906b;border:1px solid #bdc9a5;padding:6px 8px;border-radius:4px}.status-chip.pending{background:#eedbb0;color:#9e7a42;border-color:#d5b77a}.reward-card h3{margin-top:18px!important}.reward-card>p{font-size:11px!important}.claim-amount{display:block;font-size:26px;font-weight:900;color:#8e8467;margin:12px 0 22px}.reward-card>small{display:block;font-size:10px;line-height:1.8;color:#a28e63;margin-top:14px}.ledger-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eadbbb}.ledger-row>.game-art{height:35px;width:35px}.ledger-row strong{display:block;font-size:12px;color:#6d725a}.ledger-row p{font-size:10px!important;line-height:1.5!important;margin:4px 0!important}.ledger-row+.btn{margin-top:15px}.launch-readiness{margin-top:21px;border:1px solid #d9c59b;border-radius:8px;padding:16px 18px;background:#e9dcbc}.launch-readiness>p{font-size:11px;color:#9a875f;line-height:1.8;margin:10px 0}.launch-readiness code{font-size:10px;overflow-wrap:anywhere}.text-link{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#60837c;font-weight:800}.text-link svg{width:12px;height:12px}
.wallet-intro{text-align:center;margin:0 0 25px}.wallet-intro>.game-art{height:90px;width:90px;margin-bottom:6px}.wallet-intro h3{font-size:25px;color:#4d6860;letter-spacing:-.5px;margin:9px 0}.wallet-intro p{font-size:12px;line-height:1.8;color:#95835b;max-width:360px;margin:0 auto}.wallet-provider-list{display:grid;gap:10px;margin-bottom:18px}.wallet-provider{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #cbb68c;border-bottom:3px solid #c4ac7d;border-radius:9px;padding:12px;background:#fff7e5;text-align:left}.provider-emblem{width:42px;height:42px;background:#e8d9b2;border-radius:8px;display:grid;place-items:center}.provider-emblem .game-art{height:36px;width:36px}.wallet-provider>span:nth-child(2){flex:1}.wallet-provider strong{font-size:13px;color:#566b5e;display:block}.wallet-provider small{font-size:10px;color:#aa966d;display:block;margin-top:4px}.wallet-provider>svg{width:15px;height:15px;color:#ad9665}
.wallet-identity{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:23px}.wallet-medallion .game-art{width:90px;height:90px;margin-bottom:10px}.wallet-identity>strong{font-size:28px;color:#4d6b63;margin:9px 0;letter-spacing:-.5px}.wallet-identity>code{font-size:10px;color:#a18e64;overflow-wrap:anywhere;max-width:100%;line-height:1.8}.network-pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#6c8d75;background:#e3e7cd;border:1px solid #c1cdab;border-radius:20px;padding:5px 9px;margin-top:12px}.network-pill>i{height:5px;width:5px;background:#8aa77b;border-radius:50%}.wallet-balances{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:17px}.wallet-balances .stat-tile strong{font-size:23px}
.game-mode .toast-region{position:absolute;top:210px;left:50%;transform:translateX(-50%);z-index:50;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;width:min(500px,90%)}.game-mode .toast{background:linear-gradient(#fff7df,#ecdfbd);border:1px solid #c6ae7a;border-bottom:3px solid #a18756;color:#5a725e;border-radius:8px;font-size:12px;font-weight:700;line-height:1.6;padding:11px 16px;box-shadow:0 4px 16px #283b2455;display:flex;align-items:center;gap:9px;pointer-events:auto;animation:modalIn .18s ease-out}.game-mode .toast.error{color:#ab6549;border-color:#d2ad79}.game-mode .toast>svg{width:17px;height:17px;flex-shrink:0}
.loading{background:radial-gradient(ellipse at 50% 35%,#3d5957,#1d3539);color:#f5e4bb;z-index:100}.loading>h1{font-family:var(--serif);font-size:45px;font-weight:900;letter-spacing:6px;margin:15px 0}.loading>p{font-size:12px;letter-spacing:1px;color:#c7c9af}.loading>.load-track{height:7px;background:#132c30;border-color:#b79860;margin-top:29px}.loading>.load-track>i{background:linear-gradient(90deg,#b78d45,#f4d58b)}.loading>span{font-size:9px;letter-spacing:.7px;color:#8fa69e;margin-top:12px}
@media(min-width:1650px){.hud-player{left:34px;top:30px;width:274px}.hud-centre{left:34px;top:173px}.happiness-counter{display:flex}.wallet-top{right:34px;top:30px}.hud-resources{right:34px;top:95px;width:270px;gap:15px 18px}.game-resource{height:54px}.left-game-tools{left:34px;top:261px}.game-tool{width:71px;height:75px}.game-tool>span .game-art{width:47px;height:47px}.game-tool>b{font-size:10px}.journey-teaser{left:34px;bottom:137px;width:300px;padding:13px}.game-clock{left:35px;bottom:48px}.bottom-dock-game{bottom:33px;padding:10px 15px 12px}.dock-game-item{width:86px;height:73px}.dock-game-item .game-art{width:49px;height:49px}.dock-game-item>span{height:49px}.dock-game-item>b{font-size:12px}.dock-game-item.build-highlight{height:89px}.latest-story{right:110px;bottom:210px;width:270px}.right-game-tools{right:34px;bottom:195px}.zoom-tools{right:34px;bottom:139px}.bottom-village-name{bottom:155px}}
@media(max-width:1100px){.realm-heading{top:36px;font-size:8px;letter-spacing:1.6px}.realm-heading p{font-size:11px}.realm-ornament{width:20px;margin:0 6px}.hud-player{left:18px;top:19px;width:222px}.player-info>strong{font-size:24px}.player-crest,.player-crest svg{width:48px}.player-crest svg{height:56px}.wallet-top{right:20px;top:20px}.preview-label{display:none}.hud-resources{right:22px;top:79px;width:210px}.hud-centre{left:18px;top:151px}.hud-counter{min-width:100px}.left-game-tools{left:18px;top:230px}.game-tool{width:58px;height:63px}.game-tool>span .game-art{width:39px;height:39px}.game-tool>b{font-size:8px}.journey-teaser{left:18px;width:225px;bottom:126px;padding:9px 10px 10px 7px}.teaser-icon .game-art{width:38px;height:38px}.teaser-copy>strong{font-size:11px}.teaser-copy>small{font-size:6px}.latest-story{display:none}.bottom-dock-game{bottom:26px;padding:7px 9px 8px}.dock-game-item{width:64px;height:63px}.dock-game-item>b{font-size:10px}.dock-game-item .game-art{width:41px;height:41px}.dock-game-item.build-highlight{height:79px}.game-clock{left:20px;bottom:37px;gap:7px}.game-clock strong{font-size:12px}.game-clock small{font-size:7px}.game-clock button{width:25px;height:27px;margin-left:1px}.corner-links{right:20px;bottom:27px;gap:10px}.corner-links button{font-size:9px}.corner-links .preview-badge{font-size:6px}.contribution-chip{right:21px;bottom:69px}.right-game-tools{right:20px;bottom:180px}.zoom-tools{right:20px;bottom:125px}.bottom-village-name{bottom:129px}.bottom-village-name>strong{font-size:11px}.bottom-village-name>span{font-size:9px}.bottom-village-name>small{font-size:6px}.game-mode .life-panel{left:90px;top:226px;bottom:136px}.game-mode .modal-header h2{font-size:24px}.game-mode .residents-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:761px) and (max-width:950px){.journey-teaser,.contribution-chip{display:none}.game-clock{bottom:130px}}
@media(max-width:760px){
 .hud-player{left:13px;top:max(15px,env(safe-area-inset-top));width:177px}.player-profile{gap:6px;padding:8px 12px 9px 6px;border-radius:9px}.player-crest,.player-crest svg{width:38px}.player-crest svg{height:46px}.game-wordmark{font-size:7px;letter-spacing:2px}.player-info>strong{font-size:21px}.player-info>small{font-size:6px;letter-spacing:.3px;margin-top:4px}.xp-track{height:5px;margin-top:5px}.level-badge{width:25px;height:27px;font-size:14px;right:-7px;top:-6px;border-radius:7px}.village-identity{font-size:6px;letter-spacing:.35px;margin-top:8px}.realm-heading{display:none}.wallet-top{top:auto;right:15px;top:154px}.wallet-chip{min-height:33px;gap:5px;padding:3px 9px 3px 5px;border-radius:7px}.wallet-chip .game-art{width:23px;height:23px}.wallet-chip b{font-size:10px}.hud-resources{top:max(16px,env(safe-area-inset-top));right:21px;width:155px;gap:13px 12px}.game-resource{height:45px;padding:4px 10px 6px 6px;border-width:1px;border-bottom-width:3px;border-radius:6px}.resource-track>small{font-size:6px;letter-spacing:.7px;margin-bottom:5px}.resource-track>b{font-size:14px}.resource-track>i{left:-6px;bottom:-6px;height:3px}.large-resource-icon{right:-10px;top:8px}.large-resource-icon .game-art{width:28px;height:28px}.hud-centre{left:13px;top:157px;gap:6px}.hud-counter{min-width:78px;padding:4px 6px 4px 4px;gap:4px;border-radius:6px}.hud-counter>span:first-child .game-art{width:24px;height:24px}.hud-counter strong{font-size:12px}.hud-counter em{font-size:9px}.hud-counter small{font-size:5px;letter-spacing:.5px;margin-top:3px}.happiness-counter{display:none}.game-clock{top:119px;left:15px;bottom:auto;gap:6px}.game-clock>span:first-child svg{width:15px;height:15px}.game-clock strong{font-size:10px}.game-clock small{font-size:6px;letter-spacing:.6px;margin-top:3px}.game-clock button{height:24px;width:23px;border-radius:5px;font-size:9px;margin-left:0}.game-clock button svg{height:10px;width:10px}.left-game-tools{left:13px;top:224px;gap:15px}.game-tool{height:55px;width:51px;border-radius:9px;border-bottom-width:4px}.game-tool>span .game-art{height:35px;width:35px}.game-tool>b{font-size:7px;margin-top:0}.game-tool>i{height:18px;min-width:18px;right:-5px;top:-5px;border-radius:6px;font-size:9px}.journey-teaser{display:none}.bottom-dock-game{bottom:calc(25px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:520px;padding:6px 6px 7px;gap:0;border-radius:12px;border-bottom-width:4px}.dock-game-item{flex:1;min-width:0;width:auto;height:55px;border-radius:7px}.dock-game-item>span{height:33px}.dock-game-item .game-art{width:35px;height:35px}.dock-game-item svg{height:32px;width:29px}.dock-game-item>b{font-size:9px;letter-spacing:0;margin-top:5px}.dock-game-item.build-highlight{height:68px;margin-top:-13px;border-radius:9px}.dock-game-item.build-highlight .game-art{height:42px;width:42px}.dock-game-item.build-highlight>span{height:42px}.right-game-tools{right:14px;bottom:calc(185px + env(safe-area-inset-bottom));gap:8px}.right-game-tools .game-tool{width:32px;height:34px;border-radius:6px;border-width:1px;border-bottom-width:3px}.right-game-tools .game-tool>svg{width:15px;height:15px}.right-game-tools .game-art{height:24px;width:24px}.zoom-tools{right:14px;bottom:calc(142px + env(safe-area-inset-bottom));padding:2px;gap:2px;border-radius:6px}.zoom-tools button{height:25px;width:25px}.zoom-tools button svg{height:13px;width:13px}.bottom-village-name{bottom:calc(118px + env(safe-area-inset-bottom))}.bottom-village-name>strong{font-size:10px;letter-spacing:2px}.bottom-village-name>span{font-size:8px;margin-top:5px}.bottom-village-name>small{display:none}.contribution-chip{display:none}.corner-links{right:14px;bottom:calc(5px + env(safe-area-inset-bottom));gap:10px;font-size:7px}.corner-links button{font-size:8px}.corner-links .preview-badge{font-size:5px;padding:3px 4px}.corner-links a{font-size:9px}.game-mode .life-panel{left:77px;right:14px;width:auto;top:220px;bottom:120px;max-height:470px;border-radius:9px}.game-mode .life-heading{padding:16px 14px 12px}.game-mode .life-heading .eyebrow{font-size:6px}.game-mode .life-heading h2{font-size:20px}.game-mode .live-status{font-size:5px}.game-mode .activity-feed{padding:0 14px}.game-mode .panel-tabs{margin:0 14px;gap:20px}.game-mode .panel-tabs button{font-size:9px}.game-mode .feed-content strong{font-size:10px}.game-mode .feed-content p{font-size:9px}.game-mode .feed-entry{gap:8px;padding:14px 0}.game-mode .feed-entry .avatar{width:33px;height:33px}.game-mode .village-mood{padding:12px}.game-mode .village-mood>span:first-child{display:none}.game-mode .village-mood strong{font-size:9px}.game-mode .village-mood small{font-size:7px}.game-mode .village-mood>span:last-child{font-size:22px}.game-mode .resident-card{left:14px;bottom:calc(124px + env(safe-area-inset-bottom));width:277px;padding:16px}.game-mode .resident-head h3{font-size:18px}.building-actions,.move-actions{bottom:calc(123px + env(safe-area-inset-bottom));max-width:calc(100% - 28px);width:300px}.building-actions>h2,.move-actions>strong{font-size:18px;margin-bottom:11px}.building-actions>h2 small{font-size:10px}.building-action{height:67px;width:70px;border-radius:8px;gap:4px}.building-action.upgrade{width:96px}.building-action>b{font-size:10px}.building-action>small{font-size:7px}.building-action>svg{width:24px;height:24px}.building-action .game-art{width:28px;height:28px}.move-actions>span{font-size:10px}.game-confirm{height:42px;width:54px}.game-confirm svg{height:24px;width:24px}.game-mode .toast-region{top:207px;width:calc(100% - 44px)}.game-mode .toast{font-size:11px;line-height:1.7;padding:10px 13px}.game-mode .modal-backdrop{padding:12px}.game-mode .modal{border-width:2px;border-bottom-width:5px;border-radius:11px;max-height:calc(100dvh - 32px)}.game-mode .modal-header{padding:20px 46px 20px 16px;gap:11px;border-bottom-width:3px}.game-mode .modal-title-icon{height:43px;width:41px;border-radius:8px}.game-mode .modal-title-icon .game-art{height:35px;width:35px}.game-mode .modal-title-icon svg{height:30px;width:27px}.game-mode .modal-header .eyebrow{font-size:6px;letter-spacing:.9px}.game-mode .modal-header h2{font-size:21px;letter-spacing:-.4px;margin:5px 0}.game-mode .modal-header p{font-size:9px;line-height:1.7}.game-mode .modal-close{height:27px;width:27px;right:10px;top:12px}.game-mode .modal-close svg{height:13px;width:13px}.game-mode .modal-tabs{padding:8px 12px 0;gap:5px}.game-mode .modal-tabs button{font-size:10px;padding:11px 12px;border-radius:6px 6px 0 0}.game-mode .modal-body{padding:20px 16px 23px}.game-mode .stats-grid{grid-template-columns:1fr 1fr;gap:9px}.game-mode .stat-tile{padding:13px 11px;border-radius:7px}.game-mode .stat-tile small{font-size:7px;line-height:1.5;margin-bottom:7px;letter-spacing:.5px}.game-mode .stat-tile strong{font-size:24px}.game-mode .stat-tile p{font-size:9px;line-height:1.5}.game-mode .two-col{grid-template-columns:1fr;gap:15px}.game-mode .paper-card{padding:17px}.game-mode .paper-card h3{font-size:20px}.game-mode .paper-card p{font-size:12px}.game-mode .btn{font-size:11px;min-height:39px;padding:9px 12px}.game-mode .notice{font-size:10px;line-height:1.8;padding:12px 13px}.game-mode .preview-explainer{font-size:10px}.game-mode .residents-grid{grid-template-columns:1fr}.game-mode .villager-tile{padding:12px}.game-mode .villager-tile .avatar{height:54px;width:54px}.game-mode .villager-tile strong{font-size:16px}.game-mode .villager-tile small{font-size:11px}.game-mode .villager-tile .mood{font-size:10px}.game-mode .search-row{gap:8px;flex-wrap:wrap}.game-mode .search-box{padding:8px 10px;flex-basis:100%}.game-mode .search-box input{font-size:11px}.game-mode .select{font-size:11px}.game-mode .resident-profile{gap:13px;flex-wrap:wrap}.game-mode .avatar.large,.game-mode .resident-profile .avatar{height:80px;width:80px}.game-mode .resident-profile h3{font-size:23px}.game-mode .tag{font-size:8px}.game-mode .profile-tools{margin-left:0;justify-content:flex-start;width:100%;margin-top:6px}.game-mode .profile-details{font-size:10px;align-items:flex-start;flex-direction:column;gap:7px;padding:11px 12px}.game-mode .needs-grid{gap:19px 17px}.game-mode .need-large label{font-size:11px}.game-mode .need-large b{font-size:9px}.game-mode .thought{font-size:17px}.game-mode .relationship{flex-wrap:wrap}.game-mode .relationship .btn{margin-left:0}.game-mode .building-grid{grid-template-columns:1fr}.game-mode .building-thumb{width:105px;height:117px}.game-mode .building-tile{padding:15px 13px;gap:13px}.game-mode .building-tile h3{font-size:20px}.game-mode .building-tile p{font-size:11px}.building-sprite-panel{height:190px}.building-sprite-panel img{max-height:180px}.game-mode .chronicle-list .feed-content strong{font-size:12px}.game-mode .chronicle-list .feed-content p{font-size:11px}.three-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.three-stats .stat-tile{padding:11px 9px}.three-stats .stat-tile small{font-size:6px;letter-spacing:.4px}.three-stats .stat-tile strong{font-size:21px}.three-stats .stat-tile p{font-size:8px}.production-grid{grid-template-columns:1fr;gap:13px}.production-card{display:grid;grid-template-columns:104px 1fr;column-gap:14px;padding:14px;text-align:left}.production-image{grid-row:1/4;height:118px;margin:0;background:radial-gradient(ellipse at 50% 90%,#dbcca266,transparent 70%)}.production-image>img{height:112px;width:100%;object-fit:contain}.production-image .tag{top:0;right:-2px;font-size:6px}.production-card>h3{font-size:16px;margin:5px 0 6px;align-self:end}.production-rate{justify-content:flex-start;font-size:10px}.production-rate .game-art{height:21px;width:21px}.production-ready{padding:8px 0 0;margin:6px 0 0;border:0}.production-ready>small{font-size:6px}.production-ready>strong{display:inline-block;font-size:23px;margin:7px 7px 8px 0}.production-ready>span{font-size:9px}.production-card>.btn{grid-column:1/3;margin-top:10px}.mining-notes{flex-direction:column;gap:14px;align-items:flex-start;padding:15px}.mining-notes strong{font-size:13px}.mining-notes p{font-size:10px}.forge-feature{flex-direction:column;gap:9px;padding:0 0 24px}.forge-feature>img{width:170px;height:170px;max-height:170px}.forge-feature>div{width:100%}.forge-feature h3{font-size:24px}.forge-feature p{font-size:11px}.recipe-cost{margin:15px 0;gap:20px}.recipe-cost .game-art{width:28px;height:28px}.recipe-cost>span{font-size:14px}.journey-intro{gap:10px;margin-bottom:19px;flex-wrap:wrap}.journey-book .game-art{width:46px;height:46px}.journey-intro h3{font-size:18px;line-height:1.3;margin-bottom:5px;max-width:205px}.journey-intro p{font-size:10px}.points-pill{font-size:10px;padding:6px 9px}.quest-row{padding:13px 12px;gap:11px;flex-wrap:wrap}.quest-art .game-art{width:39px;height:39px}.quest-copy>h3{font-size:14px}.quest-copy>p{font-size:10px}.quest-copy>small{font-size:8px;flex-wrap:wrap;gap:5px}.quest-meter{margin-top:9px}.quest-row .btn{margin-left:auto;min-width:80px}.quest-done{margin-left:auto}.treasury-banner{padding:17px 15px;gap:12px;margin-bottom:17px}.treasury-banner>span .game-art{width:66px;height:66px}.treasury-banner .section-label{font-size:5px;letter-spacing:.7px}.treasury-banner h3{font-size:20px;line-height:1.2;margin:8px 0}.treasury-banner p{font-size:10px}.launch-readiness{padding:14px}.launch-readiness>p{font-size:10px}.wallet-intro>.game-art{height:77px;width:77px}.wallet-intro h3{font-size:23px}.wallet-intro p{font-size:11px}.wallet-identity>strong{font-size:25px}.wallet-identity>code{font-size:9px}.wallet-balances .stat-tile strong{font-size:22px}.game-mode .docs-section p{font-size:12px;line-height:1.9}
}
@media(max-width:370px){.hud-player{width:157px;left:10px}.player-crest,.player-crest svg{width:30px}.player-info>strong{font-size:19px}.hud-resources{width:142px;right:18px}.hud-centre{left:10px}.hud-counter{min-width:72px;padding-right:5px}.hud-counter strong{font-size:11px}.wallet-top{right:12px}.game-clock{left:11px}.player-info>small{font-size:5px}.village-identity{font-size:5px}.quest-copy{flex-basis:calc(100% - 65px)}.points-pill{margin-left:56px}.realm-heading{display:none}}
@media(max-height:620px) and (min-width:761px){.hud-player{top:15px;width:207px}.player-info>strong{font-size:21px}.player-crest,.player-crest svg{width:42px}.player-crest svg{height:48px}.hud-centre{top:133px}.village-identity{margin-top:7px}.left-game-tools{top:207px;gap:12px}.game-tool{height:48px;width:48px;border-radius:8px}.game-tool>span .game-art{width:29px;height:29px}.game-tool>b{font-size:6px}.journey-teaser{display:none}.game-clock{bottom:24px}.bottom-dock-game{bottom:19px}.dock-game-item{height:56px;width:60px}.dock-game-item .game-art{height:35px;width:35px}.dock-game-item>span{height:35px}.dock-game-item>b{font-size:9px}.dock-game-item.build-highlight{height:72px}.bottom-village-name{bottom:112px}.bottom-village-name>small{display:none}.hud-resources{top:68px}.wallet-top{top:15px}.right-game-tools{bottom:152px;gap:5px}.right-game-tools .game-tool{width:32px;height:32px}.zoom-tools{bottom:108px}.contribution-chip{display:none}.corner-links{bottom:22px}.game-mode .life-panel{top:153px;left:80px;bottom:115px}}
@media(max-height:540px) and (max-width:760px) and (orientation:landscape){.hud-player{width:165px;top:12px}.hud-resources{width:190px;top:13px;right:20px}.game-resource{height:35px}.resource-track>b{font-size:12px}.resource-track>small{font-size:5px;margin-bottom:3px}.large-resource-icon{top:4px}.large-resource-icon .game-art{width:24px;height:24px}.wallet-top{top:111px;right:15px}.hud-centre{top:125px}.game-clock{top:93px}.left-game-tools{top:181px;gap:11px;flex-direction:row}.game-tool{height:45px;width:45px}.game-tool>span .game-art{width:27px;height:27px}.game-tool>b{font-size:6px}.bottom-dock-game{width:360px;bottom:21px}.dock-game-item{height:45px}.dock-game-item>span{height:26px}.dock-game-item .game-art{width:29px;height:29px}.dock-game-item>b{font-size:8px}.dock-game-item.build-highlight{height:58px}.dock-game-item.build-highlight .game-art{width:33px;height:33px}.dock-game-item.build-highlight>span{height:33px}.bottom-village-name{bottom:99px}.bottom-village-name>span{display:none}.right-game-tools{bottom:112px;gap:6px;flex-direction:row}.zoom-tools{display:none}.building-actions,.move-actions{bottom:100px}.game-mode .life-panel{top:160px;bottom:106px;left:170px;right:75px}.game-mode .resident-card{bottom:106px;left:180px}.game-mode .toast-region{top:154px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
