/* Desktop art direction: engraved brass, warm parchment, forest-green surfaces. */
:root{--gold:#d8b76e;--ink:#372d21;--muted:#8c795b;--paper:#eadfc3;--line:#b6a17a;--night:#151e1c;--green:#203b31;--shadow:0 12px 32px #080b09a0}
*{box-sizing:border-box}body{margin:0;padding:18px 24px;background:radial-gradient(ellipse at 50% 0,#2b3a30 0,#101713 55%,#0a100d 100%);font:15px/1.5 Georgia,'Times New Roman',serif;color:var(--ink);min-width:1180px}button,input,select{font:inherit}button{transition:background .18s,box-shadow .18s,filter .18s;cursor:pointer}button:hover:not(:disabled){filter:brightness(1.09)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.45;filter:grayscale(.6);cursor:default}button:focus-visible,input:focus-visible{outline:2px solid #e9cd87;outline-offset:3px}
#game{width:100%;max-width:1440px;min-width:1120px;margin:auto;border:1px solid #8c774a;border-radius:12px;background:#15211e;box-shadow:0 0 0 4px #0d1714,0 0 0 5px #4d513c,0 28px 90px #0008;overflow:hidden}#game:before{display:none}#game:fullscreen{max-width:none;width:100vw;min-width:0;border-radius:0}#game:fullscreen .layout{height:calc(100vh - 195px);max-height:none}
header{height:88px;padding:12px 16px;display:grid;grid-template-columns:265px 125px repeat(6,minmax(75px,1fr));gap:9px;background:linear-gradient(180deg,#263b32,#172a22);border-bottom:1px solid #b3985a;box-shadow:inset 0 1px #cfc09933;z-index:3}
.hud{min-width:0;border:1px solid #6c7151;background:linear-gradient(#263d31,#1b2f26);clip-path:none!important;border-radius:7px;color:#f1e4c8;box-shadow:inset 0 1px #ebde9f12;display:flex;align-items:center;justify-content:center;font-size:14px}.hud small{display:block;color:#b6bb9a;font:9px/1.5 Arial,sans-serif;letter-spacing:1px;white-space:nowrap}.hud b{display:block;font:700 17px/1.5 Georgia,serif;font-variant-numeric:tabular-nums}.hud.resource{gap:6px;text-align:left;overflow:visible!important}.hud .coin{width:26px;height:29px;flex:0 0 26px;margin:0;overflow:visible}.coin img{width:26px;height:29px;object-fit:contain}.hud.energy{background:#12261e;border-color:#607456;gap:7px;flex-direction:row;text-align:left;line-height:1.2}.hud.energy img{width:24px;height:37px;object-fit:contain}.hud.energy b{font-size:16px}.hud.energy em{font-size:11px;font-style:normal;color:#9cae94}.hud.profile{padding:0;border:0;background:none;box-shadow:none;gap:12px;justify-content:flex-start;overflow:visible}.profile-avatar{height:60px;width:53px;position:relative;flex:none}.profile-avatar img{width:53px;height:60px;object-fit:cover;border:2px solid #c9a15c;border-radius:8px}.profile-avatar>b{position:absolute;bottom:-3px;right:-6px;background:#d0ad63;border:2px solid #293c2c;color:#243321;border-radius:50%;width:24px;height:24px;text-align:center;font-size:12px;line-height:20px}.profile-content{min-width:0;flex:1}.profiletop{height:22px;gap:5px}.profiletop .name{max-width:145px;color:#f1e4c5;padding:0;font-size:16px;letter-spacing:0}.mode-tag{font:8px Arial;letter-spacing:1px;color:#bbcc9b;border:1px solid #73805b;border-radius:3px;padding:2px 4px}.xp{max-width:none;height:9px;margin:5px 0 6px;border:1px solid #677555;background:#0b1712;border-radius:5px;overflow:visible;letter-spacing:0}.xp>span{background:linear-gradient(#d6b66c,#a08245);border-radius:5px}.xp>b{display:none}.profile-tools{display:flex;align-items:center;gap:7px;line-height:1}.round{width:17px;height:17px;border:0;background:none;box-shadow:none;color:#d2c398;font:13px Arial}.text-button{border:0;background:transparent;color:inherit;padding:3px 0;text-decoration:none;font-size:12px}.text-button:hover{text-decoration:underline}.profile-tools .text-button{color:#b8bca4;font-size:10px;margin-left:auto}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 232px;height:calc(100vh - 220px);min-height:550px;max-height:780px}.stage{border:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#8c764e #1a2922;background:#dfd1b1;isolation:isolate}.page{min-height:100%;padding:28px 32px 32px;background:radial-gradient(ellipse at 15% 0,#fff8dfaa,transparent 60%),url('assets/paper.webp') center/220px,var(--paper);box-shadow:inset 0 0 70px #93774924}.page>h1{font-weight:400;font-size:30px;letter-spacing:.4px;color:#3a3826;margin:0 32px 24px;padding-bottom:14px;border-bottom:1px solid #ac9971;text-shadow:0 1px #fff9}.page>h1:empty{display:none}.page h2{font-size:21px;font-weight:400}.page h3{font-size:17px}.page p{line-height:1.55}.eyebrow{font:10px/1.5 Arial,sans-serif;letter-spacing:2px;color:#8c7448}.close{position:sticky;float:right;margin-top:calc(-100% + 8px);top:8px;right:8px;background:#273b31;border:1px solid #b39759;border-radius:50%;width:30px;height:30px;box-shadow:0 2px 6px #0004;color:#e9d4a1;font:23px/22px Georgia;z-index:5}.stage>.close{position:absolute;top:10px;right:10px;margin:0}.darkpage{background:radial-gradient(ellipse at 50% 0,#31483b,#15251e);color:#e8dfc9;box-shadow:none}.darkpage h1{color:#e9d5a3;border-color:#758066}.darkpage .panel{background:linear-gradient(#2a3e31,#213328);border-color:#6a795c;color:#ede1c5}.darkpage .note{background:#bbca8e0b;border-color:#6a795c}.darkpage .eyebrow{color:#c2b68d}
.sidebar{background:linear-gradient(#eee4c8,#d9c8a2);border:0;border-left:1px solid #ad9564;display:flex;flex-direction:column;min-height:0}.sidebar-brand{text-align:center;padding:13px 8px 9px;background:linear-gradient(#314435,#1e3427);color:#e4c67c;border-bottom:4px double #a68b50}.sidebar-brand>span{display:block;font-size:35px;font-weight:bold;letter-spacing:5px;line-height:1.1;text-shadow:0 3px 3px #0008}.sidebar-brand>small{display:block;font:8px/1.7 Arial;letter-spacing:3px}.navigation{height:auto;padding:12px;border:0;flex-shrink:0}.navgrid{position:static;display:grid;grid-template-columns:1fr 1fr;gap:8px}.navgrid button{position:static!important;width:auto;height:80px;min-height:0;transform:none!important;border:1px solid #b6a078;border-radius:7px;background:linear-gradient(#f4ecd6,#e0cda6);box-shadow:inset 0 1px #fff8;color:#4e432d;font-size:12px;padding:4px}.navgrid button.active{background:linear-gradient(#496148,#2b4935);color:#fff0c6;border-color:#b4975b;box-shadow:inset 0 0 0 2px #d2b97944}.navgrid img{width:48px;height:47px;object-fit:contain;mix-blend-mode:multiply;margin:0 auto 2px}.navgrid button.active img{mix-blend-mode:normal}.navgrid span{display:block}.sidebar-links{display:flex;justify-content:space-between;padding:0 15px 9px;border-bottom:1px solid #b9a87b}.sidebar-links button{font-size:11px;color:#6a5030}.dailylist{padding:14px 15px 10px;flex:1;overflow:auto}.dailytitle{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #bfa675;padding:0 0 8px;margin:0 0 10px;background:none;box-shadow:none;color:#473e2a;font-size:19px}.dailytitle>span{font:11px Arial;color:#8c714a}.dailylist button.quest{display:grid;grid-template-columns:20px 1fr;gap:3px;width:100%;font-size:12px;line-height:1.35;min-height:28px;padding:5px 0;margin:0;background:none;border:0;text-align:left;font-weight:400;color:#5e5138}.dailylist .quest.done{color:#536c36}.dailylist .quest>span:first-child{color:#9c7d39;font-size:15px}.daily-reward{border-top:1px solid #c1ad80;margin-top:9px;padding-top:8px;font-size:10px;color:#806b46;text-align:center}.daily-reward b{font-size:11px;color:#6c4b24}.daily-calendar{display:block;width:100%;border:0;background:none;margin:8px 0 0;text-decoration:underline;font-size:11px;color:#617345}.sidebar-bottom{display:flex;gap:6px;padding:9px 12px;border-top:1px solid #b49b6f}.sidebar-bottom button{flex:1;font-size:11px;padding:6px 3px;min-height:30px}
.footer{height:106px;padding:9px 22px 0;border-top:1px solid #a78d52;background:linear-gradient(#263a2e,#15271e);position:relative}.footer:after{display:none}.iconbar{display:flex;justify-content:space-between;gap:5px;height:68px;margin:0}.iconbar button{width:auto;flex:1;min-width:0;height:63px;padding:4px 2px;border:1px solid transparent;border-radius:6px;color:#d4c9aa;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.iconbar img{width:36px;height:35px;object-fit:contain;filter:drop-shadow(0 2px 2px #0006)}.iconbar button span{font-size:11px;white-space:nowrap}.iconbar button.selected{background:linear-gradient(#5d6740aa,#30472e);border-color:#a28e58;box-shadow:inset 0 1px #ead79d22;color:#ffe4a5}.iconbar button:hover:after{display:none}.iconbar button:hover img{transform:translateY(-2px)}.statusline{position:static;display:flex;justify-content:space-between;gap:16px;margin:4px 0 0;color:#899c86;font:10px/1.4 Arial;letter-spacing:.2px}.statusline>span:first-child{display:block}.statusline>span:last-child{background:none;padding:0}.online-dot{display:inline-block;width:5px;height:5px;background:#83ad62;border-radius:50%;margin-right:5px;box-shadow:0 0 7px #83ad6266}
.home{height:100%;min-height:550px;position:relative;overflow:hidden;background:#334529 url('assets/village-desktop-v2.png') 50% 48%/cover no-repeat}.home-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0c24146b,transparent 50%),linear-gradient(0deg,#0a1b12c9 0,transparent 42%,#112b173d 100%);pointer-events:none}.home-heading{position:absolute;left:35px;top:28px;color:#fff3d2;text-shadow:0 2px 12px #1a2c1880}.home-heading .eyebrow{color:#e4cd8c;font-size:10px;letter-spacing:2.3px}.home-heading h1{font-size:34px;font-weight:400;line-height:1.12;margin:8px 0 10px}.home-heading p{font-size:13px;color:#ecedce;margin:0}.homeactions{right:22px;top:26px;width:76px;gap:11px;display:flex;flex-direction:column}.portraitbtn{margin:0!important;width:76px;height:78px!important;background:linear-gradient(#14291dd9,#14251be8);border:1px solid #c1a05d;border-radius:8px;padding:6px 5px 5px;box-shadow:0 4px 12px #0005;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.portraitbtn img{width:48px;height:45px!important;object-fit:contain;border-radius:4px}.portraitbtn span{position:static;display:block!important;background:none;color:#e9d6a8;font:10px Georgia;line-height:12px}.home-objective{position:absolute;bottom:29px;left:30px;width:267px;padding:18px 20px;background:linear-gradient(130deg,#172b20f2,#182e23ed);border:1px solid #b2995d;border-radius:9px;box-shadow:0 10px 25px #0004;color:#eddfc0;backdrop-filter:blur(3px)}.home-objective .eyebrow{font-size:8px;color:#bca971;letter-spacing:1.5px}.home-objective h2{font-weight:400;font-size:23px;margin:6px 0}.home-objective p{font:12px/1.6 Georgia;color:#bdc5ae;margin:7px 0 13px}.home-objective .goldbtn{width:100%;font-size:15px;min-height:37px;padding:6px 10px}.home-objective .text-button{display:block;margin:6px auto 0;color:#c6c6a7;font-size:11px}.home-events{position:absolute;bottom:28px;right:22px;display:flex;flex-direction:column;gap:8px;width:190px}.event-card{padding:12px 13px;text-align:left;border:1px solid #a28a54;border-radius:7px;background:linear-gradient(110deg,#1c3022ec,#16241aee);box-shadow:0 3px 10px #0004;color:#e8d39b}.event-card small{display:block;font:8px Arial;letter-spacing:1.5px;color:#adae8c;margin-bottom:5px}.event-card b{font-size:12px;font-weight:400}.home-medals{position:absolute;top:24px;left:50%;display:flex;gap:5px;transform:translateX(-50%)}.medallion{height:40px;width:38px;padding:0;background:#1e332455;border:1px solid #c3a65a66;border-radius:50%}.medallion img{width:32px;height:36px;object-fit:contain}.home.housing1{filter:none}.home.housing2:before,.home.housing3:before{display:none}.home.housing2{background-position:43% 48%}.home.housing3{background-position:57% 48%}
.blue,.goldbtn,.redbtn,.ornate{border:1px solid #8b774b;border-radius:6px;background:linear-gradient(#3c5c46,#253f2d);box-shadow:inset 0 1px #fff2,0 2px 3px #0002;color:#f1e4bd;text-shadow:0 1px #132317;font-weight:400;padding:9px 16px;font-size:14px;min-height:36px}.goldbtn{background:linear-gradient(#dfc183,#bd9550);color:#342b1c;border-color:#9c773e;text-shadow:0 1px #fce5b166;font-weight:bold}.redbtn{background:linear-gradient(#784438,#502d26);border-color:#ac7c52;color:#f7e2b6}.small{font-size:12px;padding:5px 10px;min-height:28px}.bottom-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;margin:15px 0}.pill{border-radius:20px}.panel{border:1px solid #b7a17a;border-radius:8px;background:linear-gradient(135deg,#f7efd9,#e4d6b5);padding:18px;box-shadow:0 3px 8px #6c512111;margin-bottom:13px}.panel h2,.panel h3{margin:0 0 12px}.note{border:1px solid #b6a278;border-radius:6px;background:#b8a57813;font-size:12px;padding:11px 15px;line-height:1.6}.tabs{gap:6px;margin:0 0 19px;flex-wrap:wrap}.tabs button{border:1px solid #aa9671;border-radius:5px;background:linear-gradient(#f4ecd5,#decdab);color:#5e4f35;min-height:34px;font-size:12px;padding:6px 12px;font-weight:400}.tabs button.active{background:linear-gradient(#496047,#293f2d);color:#f0dfb7;border-color:#748363}.row{min-width:0}.twocol{gap:18px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-grid .panel{margin:0}.journal{max-height:190px;overflow:auto}.journal p{font-size:12px;border-bottom:1px solid #bba57a44;padding-bottom:6px}.listrow{padding:12px 4px;font-size:13px}.listrow img{width:46px;height:46px;object-fit:cover;border:1px solid #ac8b50}.bar{height:10px;border:1px solid #99865f;background:#b9aa82;border-radius:6px}.bar>span{background:linear-gradient(#7f9f59,#42623a)}.bar.red>span{background:linear-gradient(#bb6351,#854438)}input,select{border:1px solid #b19a6b;border-radius:5px;background:#fffae9;color:#443521;padding:10px 12px;max-width:100%}.formrow{gap:8px;display:flex;align-items:center}.formrow input{flex:1;min-width:0}dialog{padding:30px;max-width:540px;width:calc(100vw - 100px);max-height:80vh;overflow:auto;border:1px solid #bca16b;border-radius:12px;background:radial-gradient(ellipse at top,#fff4d6,#e1cda3);box-shadow:0 0 0 5px #293a2de8,0 25px 100px #0009;color:#41361f}dialog::backdrop{background:#07120cc7;backdrop-filter:blur(4px)}dialog h2{font-size:26px;font-weight:400;text-align:center;margin:0 0 20px}dialog .close{position:absolute;margin:0}#toast{font:14px/1.5 Georgia;max-width:550px;bottom:35px;background:#203d2ff5;border:1px solid #cbb16c;border-radius:8px;padding:13px 22px;color:#f0e3c1;box-shadow:var(--shadow);z-index:30}
.mapgrid{grid-template-columns:repeat(3,1fr);gap:14px}.district{height:180px;border:1px solid #b79b59;border-radius:9px;background-image:linear-gradient(#15271d18,#0d2215dc),url('assets/village-desktop-v2.png');box-shadow:inset 0 0 0 4px #223b2b33,0 4px 8px #0002;padding:15px}.district b{font-weight:400;font-size:20px}.district small{background:none}.district.locked{filter:grayscale(.5);opacity:.65}.district button{font-size:12px}.page:has(.taskhead){padding:25px 28px;background:var(--paper) url('assets/paper.webp')}.taskhead{grid-template-columns:1.5fr 1fr 160px;gap:10px;margin:0 0 14px;font-size:18px}.taskhead .ornate{border:0;border-image:none;height:auto;background:transparent;color:#6d5b38;box-shadow:none;font-size:18px;padding:8px;line-height:1.3}.taskrow{height:auto;min-height:70px;grid-template-columns:1.5fr 1fr 160px;gap:10px;margin:0 0 8px;padding:12px;border:1px solid #ac966d;border-image:none;border-radius:6px;background:linear-gradient(#eee4c9,#e4d4b0);color:#4f412a;text-shadow:none;font-size:13px}.taskrow button{height:36px;min-height:36px;border:1px solid #9d8146;border-image:none;border-radius:5px;background:linear-gradient(#d9bd7e,#b68e48);font-size:15px;line-height:1.3;color:#3d2e19;padding:5px}.segments i{width:19px;height:5px;background:#bbac89;border:0;border-radius:1px}.segments i.on{background:#5d7944}.page:has(.taskhead) .bottom-actions{gap:10px;flex-wrap:wrap;margin:17px 0}.page:has(.taskhead) .bottom-actions button{font-size:13px;border:1px solid #977c48;border-image:none;background:linear-gradient(#425c3f,#2a432d);padding:8px 10px;white-space:normal;height:auto;min-height:38px}
.bossgrid{gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.bosscard{border:1px solid #7c865e;border-radius:8px;background:linear-gradient(#334a37,#203327);padding:17px 12px}.bosscard img{width:82px;height:82px;border:2px solid #b29a5b;box-shadow:0 0 0 5px #a6a66b12}.bosscard h3{font-size:16px;min-height:38px}.bosscard p{font:12px/1.6 Georgia;color:#bccaab}.medal-progress{font-size:10px}.medal-progress small{font-size:9px}.medal-steps{gap:3px;justify-content:center}.medal-steps span{background:#85926520;color:inherit;border:1px solid #8d987244;font-size:9px;padding:2px 4px}.bosshero{padding:22px;gap:32px}.bosshero img{border:2px solid #b8a46a;width:155px;height:155px}.combatlog{border:1px solid #829065;border-radius:8px;background:#10251b;color:#bccaab;font:12px/1.7 Georgia;padding:18px 22px;box-shadow:inset 0 3px 12px #0004}.attackgrid button{font-size:12px}.attackgrid strong{font-size:22px}
.armor-menu-page{padding:28px;background:radial-gradient(ellipse at top,#384c3b,#15271c)}.armor-menu{width:auto;max-width:640px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:25px auto}.armor-menu .blue{height:65px;border-radius:8px;background:linear-gradient(#425a42,#263f2c);border:1px solid #839064;font-size:17px}.armor-detail{height:100%;min-height:550px;background:radial-gradient(ellipse at center,#314a34,#15261c)}.armor-detail .equipmentchoices button:nth-child(1){top:33px}.armor-detail .equipmentchoices button:nth-child(2){top:210px;left:7%}.armor-detail .equipmentchoices button:nth-child(3){top:210px;right:7%}.armor-detail .equipmentchoices button:nth-child(4){top:385px}.armor-details{top:250px;left:calc(50% - 125px);width:250px}.armor-special-page,.armor-locked{background:radial-gradient(ellipse at top,#344c38,#15251c)}.armor-special-card,.armor-special-selector button{background:linear-gradient(#3b513c,#243c29);border-color:#788762;color:#e7ddbe}.armor-arrow{background:linear-gradient(#64734c,#314d34);border:1px solid #c2a76b;color:#f1e1b7}.armor-special-selected{color:#e7dfc6}
.inventoryPage{padding:26px 30px;background:var(--paper) url('assets/paper.webp')}.inventoryPage .profilepanel{height:auto!important;min-height:355px;padding:20px!important;margin:14px 0;border:1px solid #b6a078;border-radius:8px;background:linear-gradient(#f1e7cc,#e0d1ac)}.inventoryName{font-size:20px;background:none;border:0;height:auto;margin-bottom:15px}.inventorySummary{margin:0 0 17px}.inventoryPage .statrow{height:29px;font-size:13px;grid-template-columns:125px 1fr 70px}.inventoryPage .statrow .bar{height:6px}.inventoryPage .petpanel{height:auto!important;padding:16px!important;background:#eee2c5;border-radius:8px}.petpanel h3{border:0;background:none;font-size:20px}.pet{height:auto;min-height:125px;padding:12px!important;background:linear-gradient(#f6ecd2,#e1cfa5);border-radius:6px}.pet img{width:57px;height:57px;border:1px solid #b19a63}.pet b{margin:4px 0}.inventoryPage>.tabs button{height:auto;min-height:34px}.inventory-items .panel{min-height:150px}.inventory-items .sigil{font-size:27px;color:#8d723e}
.arenaPage{background:var(--paper);padding:0 0 25px;min-height:100%;height:auto}.arenaPage .arenabanner{height:240px;width:100%;object-fit:cover;object-position:center}.arenaRules{padding:22px;gap:18px}.arenaRules>.panel{height:310px;border:1px solid #ac9566;border-image:none;border-radius:8px;background:#eee2c4;padding:17px}.arenaRules h2{font-size:22px;height:45px;white-space:normal}.arenaRules h2 img{width:47px;height:47px;object-fit:contain}.arenaRules p{font-size:13px;line-height:1.6;min-height:94px}.arenaRules .goldbtn{width:calc(100% - 28px);left:14px;bottom:13px;border:1px solid #a88d4b;border-image:none;border-radius:6px;height:41px;font-size:13px;background:linear-gradient(#dfc183,#bd9550);padding:5px}.arenaRules .medal-steps{bottom:65px;max-height:64px}.arenaRules .medal-steps button{font-size:9px;min-height:22px;padding:2px 4px}.arenaPage>.center>.redbtn{height:auto;width:calc(100% - 44px);border:1px solid #945e41;border-image:none;font-size:16px;letter-spacing:1px;padding:12px;background:linear-gradient(#744635,#4b2b22)}.battlefield{background-size:cover}.arenaPage .battlefield{height:360px}.arenaPage .combatlog{height:220px}.hpheads>div{background:#11271ede;border:1px solid #a18e56;border-radius:7px}.fighter{border:2px solid #cfb873}.battle-result{background:#d9c89c;border:1px solid #aa925e;color:#3e3c25;padding:12px}
.dicepage{background:linear-gradient(#151c13a8,#152417b8),url('assets/tavern.webp') center/cover;color:#eddfbb}.dicepage h1{color:#efdbab}.dicetable{border:1px solid #ac8e4e;border-radius:12px;background:#443721 url('assets/wood.webp') center/cover;box-shadow:inset 0 5px 30px #0007,0 5px 20px #0004;min-height:280px;max-width:650px;margin:20px auto;padding:22px 55px;gap:17px}.die{border:2px solid #ad8f4c;border-radius:13px;color:#74432d;background:linear-gradient(140deg,#fff6d4,#d5c49b);width:83px;height:83px;font-size:69px;line-height:73px}.dicepage .note{background:#17291fe8;border-color:#79805a}.chestpage .chests{margin:55px 15px 30px}.chest-slot{min-width:0;flex:1}.chests button{font-size:75px}.chest-result{border:1px solid #ac9458;background:#1e3325;border-radius:8px;width:330px}.chest-steps i{border:1px solid #b49b5c;background:#16271e;border-radius:2px}.chest-steps i.on{background:#aa8c46}
.wheelpage{display:grid;grid-template-columns:175px 1fr;align-items:center;gap:30px;height:100%;min-height:550px;padding:18px 30px;background:linear-gradient(90deg,#13261de8,#13251ab0),url('assets/wheel-room.webp') center/cover;overflow:auto}.wheelpage .wheel-heading{left:215px;right:25px;top:17px;font-size:22px;color:#e8d29b}.wheel-prizes{margin:25px 0 0;padding:8px;border:1px solid #b59b60;border-radius:8px;background:#172a20}.wheel-prize{height:35px;border:1px solid #c7b67b40;border-radius:4px;padding:3px 8px}.wheel-prize small{font-size:9px}.wheelpage .wheelart{width:min(360px,100%);height:auto;aspect-ratio:1;margin:0 auto 15px;border-width:8px}.wheelpage .wheel-machine{padding-top:25px}.wheelpage .wheelcontrols{max-width:450px;margin:auto;background:#182c21;border:1px solid #9c8b54;border-radius:9px;padding:12px 7px}.wheelpage .wheel-pointer{top:14px;height:48px}.wheel-chips{gap:14px}.wheel-spin{width:260px;height:43px;border:1px solid #c9a765;border-radius:7px;background:linear-gradient(#b7793b,#784625);font:20px Georgia;box-shadow:inset 0 1px #f3d79b77;color:#fff0b6;letter-spacing:2px}.wheel-chip{height:47px;width:60px;border-width:5px}.wheel-chip-slot{width:60px;flex-basis:60px}.wheel-chip-slot .wheel-chip{width:60px}.wheel-chip small{top:48px;font-size:9px}.wheel-chip-buy{top:31px}.wheelpage .wheel-chips{height:65px}
.collection{border:1px solid #b69c6a;border-radius:8px;padding:19px;background:linear-gradient(#f3e9ce,#e1d1ad);margin:0 0 16px}.collection .parts{gap:10px}.parts button{border:1px solid #b9a071;background:#f4e9ce;border-radius:6px;padding:13px}.parts span{font-size:30px}.clanbanner{border:1px solid #8d9a6b;border-radius:9px;background:linear-gradient(115deg,#38533b,#182e21);padding:24px;color:#efddb2}.clanbanner h2{font-size:28px}.clanbanner+.tabs{margin-top:16px}.castle{border:1px solid #8b9b68;border-radius:9px;background-image:linear-gradient(90deg,#142b20e8,#263e25bd),url('assets/village-desktop-v2.png');padding:25px;filter:none!important}.castle h2{font-size:26px}.siegeparts button{background:linear-gradient(#f3e8cd,#decd9e);border:1px solid #b39963;border-radius:7px}.shop-grid,.companion-grid,.housing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.shop-card{display:flex;flex-direction:column;align-items:center;text-align:center;margin:0;min-height:185px}.shop-card .shop-symbol{font-size:32px;color:#927845;margin-bottom:10px}.shop-card h3{font-size:16px}.shop-card .blue{margin-top:auto;min-width:120px}.companion-card{text-align:center;margin:0}.companion-card>img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:2px solid #b29860}.companion-card h3{margin-top:12px;font-size:15px}.rank-list{border:1px solid #b7a27b;border-radius:8px;overflow:hidden}.rank-row{display:grid;grid-template-columns:40px 42px 1fr 110px;gap:12px;align-items:center;padding:12px 18px;background:#f0e6cb;border-bottom:1px solid #c5b58e88;font-size:14px}.rank-row:nth-child(even){background:#e7d9b7}.rank-row.me{background:#3a553c;color:#f3dfaf}.rank-row img{width:36px;height:36px;object-fit:cover;border-radius:50%}.rank-row b:last-child{text-align:right}.rank-row>.rank-number{font-size:18px;color:#9b7a39}.rank-row.me>.rank-number{color:#e4c778}.foodpage{background:var(--paper) url('assets/paper.webp');color:var(--ink)}.food-layout{grid-template-columns:minmax(0,1fr) 240px}.food-card{background:linear-gradient(#f5ebd2,#e1d1ad);border:1px solid #b59d6e;border-radius:7px}.food-card.selected{border-color:#557247;background:#dbe1ba;box-shadow:inset 0 0 0 1px #557247}.foodicon{font-size:32px}.food-inbox{border:1px solid #b7a078;background:#ecdfc0;border-radius:7px;padding:15px}.food-inbox h2{font-size:18px}.food-send h2{font-size:18px}.food-card b{font-size:12px}.food-footer button{min-width:200px}.chat-messages{max-height:270px;overflow:auto;margin-bottom:18px}.chat-message{padding:8px 10px;border-bottom:1px solid #bca67577;font-size:13px}.chat-message b{display:block;color:#477044;font-size:11px}.chat-message p{margin:3px 0}.housing-grid .panel{margin:0;text-align:center}.housing-preview{height:150px;background:url('assets/village-desktop-v2.png') center/cover;border-radius:6px;margin-bottom:15px}.settings-grid .goldbtn{font-size:14px}.emptytext{padding:45px;text-align:center;color:#806c45}.tournament-hero{border-radius:8px;height:240px;width:100%;object-fit:cover}.progress-caption{font-size:12px;color:#907951;text-align:center}
@media(max-height:800px){body{padding:10px 16px}.layout{height:550px;min-height:550px}.sidebar-brand{padding-top:8px;padding-bottom:6px}.navigation{padding:9px}.navgrid button{height:71px}.navgrid img{height:39px;width:40px}.dailylist{padding:9px 14px}.dailylist button.quest{font-size:11px;min-height:25px;padding:3px 0}.daily-reward{font-size:9px}.dailytitle{margin-bottom:6px}.home-heading h1{font-size:30px}.home-objective{width:250px;padding:15px 17px}.home-events{width:175px}.homeactions{gap:8px}.portraitbtn{height:72px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.layout{height:calc(100vh - 234px)}
.equipment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.equipment-card{text-align:center;margin:0;display:flex;align-items:center;flex-direction:column;padding:22px;min-height:390px}.equipment-card.equipped{border-color:#d6b362;box-shadow:inset 0 0 0 2px #b6974c55}.equipment-portrait{width:120px;height:155px;object-fit:contain;margin-bottom:10px;filter:drop-shadow(0 4px 10px #0006)}.equipment-card h2{margin:8px 0}.equipment-card p{font-size:13px;max-width:230px}.equipment-card button{width:100%;max-width:240px;margin-top:8px}.gear-stars{letter-spacing:5px;color:#cfb66e;font-size:17px}.locked-requirement{color:#cbb67f!important;margin-top:auto}.darkpage .muted{color:#afb79c}.feature-portrait{width:140px;height:180px;object-fit:contain;display:block;margin:10px auto 18px}.dog-emblem{font-size:90px;line-height:1.5;margin:8px auto}.home.housing1{background-image:url('assets/tavern.webp');background-position:center}.home.housing2{background-image:url('assets/wheel-room.webp');background-position:center}.home.housing3{background-position:65% 68%;background-size:115%}.house-preview-3{background-position:70% 70%;background-size:150%}.profile-avatar img{object-position:50% 17%;background:#aab491}.armor-menu-page>h1{display:block}.formrow label{min-width:85px;font-size:13px}.formrow input{min-width:0}.stage .panel>img.armyimage{max-width:100%;height:130px;object-fit:contain}.page .panel .eyebrow{display:block}.darkpage .panel .eyebrow{color:#bcab72}.rank-row small{font-size:11px;text-align:right}.rank-row .rank-number{font-variant-numeric:tabular-nums}.food-card strong{font-size:14px}.stage button:focus-visible,dialog button:focus-visible{outline:3px solid #d58a32;outline-offset:3px}.stage .note{line-height:1.6}.page .emptytext{line-height:1.7}
@media(max-height:800px){.layout{height:550px}}
.equipment-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.equipment-card{padding:17px 12px;min-height:445px}.equipment-card h2{font-size:20px}.equipment-card p{font-size:12px}.equipment-card .goldbtn{font-size:12px;padding:9px 3px}.equipment-portrait{border-radius:10px;width:130px;height:160px}.inventory-items{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Clean scenic layers: artwork contains no duplicate controls. */
.tavernpage{position:relative;display:flex;flex-direction:column;min-height:100%;padding:30px 34px;background:linear-gradient(90deg,#101d18c9,transparent 75%),url('assets/tavern-clean.png') center/cover;color:#f3e5c4}
.tavernpage>h1{margin:0;padding:0;border:0;color:#f4dfad;font-size:36px;text-shadow:0 2px 10px #0008}
.tavern-intro{margin:6px 0 30px;font-size:13px;color:#e4d4af}
.tavern-counter{width:390px;max-width:100%;margin-top:auto;padding:23px 25px;background:linear-gradient(135deg,#142a23f5,#172c23eb);border:1px solid #bd9c60;border-radius:10px;box-shadow:0 10px 35px #0006}
.tavern-counter .eyebrow{color:#cbb37c;font-size:9px}.tavern-counter h2{font-size:27px;margin:5px 0 9px}.tavern-counter p{font-size:13px;color:#d0d2b7;margin:0 0 17px}.tavern-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.tavern-slot{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 5px;border:1px solid #b79a5c;border-radius:9px;background:linear-gradient(#526044,#263d2c);color:#f3df9f;box-shadow:inset 0 1px #e9d8a544;min-height:96px}.tavern-slot img{width:33px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 4px #0008)}.tavern-slot b{font-size:14px}.tavern-slot:disabled{opacity:.5;background:#17271f}.tavern-counter .tavern-status{font-size:12px;color:#ddc796;margin-bottom:12px}.tavern-status .timer{font-variant-numeric:tabular-nums}.tavern-counter .text-button{color:#c6cfb6}
.dicepage{background-image:linear-gradient(#13241bd9,#13241be8),url('assets/tavern-clean.png')}.home.housing1{background-image:url('assets/tavern-clean.png')}.home.housing2{background-image:url('assets/village-desktop-v2.png');background-position:30% 45%}
.wheelpage{grid-template-columns:205px minmax(0,1fr);gap:28px;padding:58px 30px 24px;background:radial-gradient(ellipse at 68% 45%,#536247 0,#263f32 40%,#10271e 85%);align-items:center;min-height:550px;height:100%}
.wheelpage .wheel-heading{left:0;right:0;top:17px;font-size:26px;font-weight:400;letter-spacing:.5px}
.wheelpage .wheel-prizes{margin:0;padding:8px;gap:4px;background:#13271fe8;border-color:#8f8757;box-shadow:0 8px 24px #0003}
.wheelpage .wheel-prize{height:33px;gap:8px;border-color:#d7c49a38;text-shadow:0 1px 2px #0008}.wheelpage .wheel-prize small{font:10px/12px Georgia,serif}.wheelpage .wheel-prize b{font-size:14px;line-height:15px}
.wheelpage .wheel-machine{padding-top:12px}.wheelpage .wheelart{width:min(330px,100%);height:auto;aspect-ratio:1;margin-bottom:18px;box-shadow:0 0 0 3px #8b6529,0 0 0 5px #d5b568,0 10px 40px #0006}
.wheelpage .wheel-pointer{top:0;height:44px;width:30px}.wheelpage .wheelcontrols{max-width:390px;padding:13px 12px 12px;box-shadow:0 6px 18px #0003}
.wheelpage .wheel-chips{height:76px;gap:20px}.wheelpage .wheel-chip-slot{width:60px;flex-basis:60px}.wheelpage .wheel-chip b{right:4px;bottom:-7px}.wheelpage .wheel-chip-buy{right:-9px;top:25px;width:22px;height:22px;line-height:20px}.wheelpage .wheel-chip small{top:49px;font:10px/14px Georgia,serif}.wheelpage .wheel-spin{width:100%;max-width:290px;min-height:40px;font-size:19px}
.foodpage{padding:24px 28px}.foodpage>h1{margin:0 0 12px;padding-bottom:10px}.foodpage>p{margin:0 0 18px;font-size:13px}.foodpage .food-layout{grid-template-columns:minmax(0,1fr) 225px;gap:18px;min-height:0;align-items:stretch}.foodpage .food-send{padding:0;border:0;background:none}.foodpage .food-layout h2{font-size:18px;margin:0 0 13px;text-align:left}.foodpage .food-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.foodpage .food-card{min-height:137px;padding:9px 7px;gap:5px;outline:none}.foodpage .food-card.selected{outline:none;box-shadow:inset 0 0 0 2px #657747;background:linear-gradient(#eff0d3,#ccd7a9)}.foodpage .food-card:disabled{opacity:.65}.foodpage .food-card b{font-size:12px;line-height:1.35;min-height:32px}.foodpage .food-card small{font-size:11px;color:#75472c}.foodpage .foodicon{font-size:29px;line-height:34px}.foodpage .food-inbox{min-width:0;padding:17px;border-width:1px;max-height:330px;overflow:auto}.foodpage .food-inbox p{padding:15px 0;margin:0;font-size:13px;border-bottom:1px solid #b9a47755;line-height:1.6}.foodpage .food-inbox small{display:block;margin-top:15px;font-size:11px;color:#7d6845}.foodpage .food-inbox button{width:100%;margin-top:14px}.foodpage .food-footer{margin:18px 243px 0 0}.foodpage .food-footer button{min-width:220px}
@media(max-width:1280px){.foodpage .food-layout{grid-template-columns:minmax(0,1fr) 195px;gap:13px}.foodpage .food-footer{margin-right:208px}.wheelpage{gap:18px;padding-left:22px;padding-right:22px;grid-template-columns:190px minmax(0,1fr)}}
.dicepage .dicetable{grid-template-columns:repeat(4,83px);justify-content:center;align-content:center;min-height:180px;padding:24px;gap:23px;margin:18px auto}.dicepage>h1{margin-bottom:15px}.dicepage .row .ornate{font-size:14px}.dicepage .note{max-width:760px;margin:0 auto}.dicepage .tabs{justify-content:center;margin:12px 0}
.die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:7px;padding:14px;line-height:1}.die .pip{border-radius:50%;background:#713e26;visibility:hidden;box-shadow:inset 0 1px 2px #391d13aa}.die .pip.visible{visibility:visible}.die:disabled{opacity:1;filter:none}.house-preview-2{background-position:30% 45%}

/* Presentation edition: readable, complete actions at desktop sizes. */
.showcase-intro{max-width:800px;margin:0 auto 22px;text-align:center;color:#746040;font-size:13px}.showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.showcase-card{display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:20px;min-height:230px}.showcase-card>img{width:45px;height:45px;object-fit:contain;margin-bottom:12px}.showcase-card h2{font-size:21px;margin:0 0 9px}.showcase-card p{font-size:13px;color:#756244;margin:0 0 15px}.showcase-card button{margin-top:auto;width:100%}.statusline .text-button{font:10px Arial;color:#e0c47e;padding:0 4px}
.inventoryPage .pet .currency-inline{display:inline-block;width:16px;height:16px;margin:0 0 0 3px;vertical-align:middle;border:0}.inventoryPage .pet .blue span{display:inline}.inventoryPage .pet .active-pet{position:static;display:block;font-size:9px;background:none;border:0}.inventoryPage .pet .blue{border-radius:5px}
.inventoryPage{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);grid-template-rows:auto 1fr;gap:16px;padding:22px 25px;align-content:start}.inventoryPage>.tabs{grid-column:1/-1;margin:0}.inventoryPage .profilepanel{margin:0;min-height:0;padding:16px 20px!important}.inventoryPage .petpanel{padding:17px!important;align-self:stretch}.inventoryPage .petpanel h3{height:auto;font-size:21px;margin:0 0 16px;text-align:center}.inventoryPage .pets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inventoryPage .pet{min-height:155px;padding:13px 8px!important;display:flex;align-items:center;flex-direction:column;justify-content:center}.inventoryPage .pet img{height:57px;width:57px}.inventoryPage .pet b{min-height:36px;line-height:18px;text-align:center}.inventoryPage .pet .blue{white-space:nowrap;min-height:30px}.inventoryPage .inventorySummary{margin-bottom:12px}.inventoryPage .statrow{height:27px;grid-template-columns:95px minmax(20px,1fr) 65px;font-size:12px}.inventoryPage .inventoryName{margin-bottom:12px}
.bosscard{display:flex;flex-direction:column;align-items:center}.bosscard>small{display:block;margin:0 0 9px;font-size:11px;color:#c5cbb0}.bosscard>button{margin-top:auto;min-width:130px}.bosscard>p{margin:12px 0}.bosscard h3{min-height:0;margin:12px 0}.bosscard .medal-progress{margin-top:4px}
.arenaPage .arenabanner{height:150px;object-position:center 42%}.arenaRules{padding:16px 22px;gap:16px}.arenaRules>.panel{height:270px;padding:15px 17px}.arenaRules h2{height:38px;margin:0 0 10px;font-size:21px}.arenaRules h2 img{height:36px;width:36px}.arenaRules p{font-size:12px;min-height:76px}.arenaRules .medal-steps{bottom:65px}.arenaPage>.center>.redbtn{font-size:13px;min-height:35px;padding:7px;margin-bottom:12px}.arenaPage .battlefield{height:290px;background:radial-gradient(ellipse at center,#695239,#182c21);border-bottom:1px solid #ad925c}.arenaPage .fighters{margin:30px auto 0;display:flex;justify-content:space-around}.arenaPage .fighter{background:#283c2e;width:115px;height:140px;border-radius:10px;overflow:hidden}.arenaPage .fighter img{height:100%;width:100%;object-fit:contain}.arenaPage .combatlog{height:150px;margin:12px 20px;padding:12px 18px}.battle-result{text-align:center}.hpheads{padding:17px 22px}.hpheads>div{font-size:13px;padding:10px}
.page:has(.tournament-hero){padding:20px 26px}.page:has(.tournament-hero)>h1{margin:0 0 15px;padding-bottom:10px;font-size:26px}.tournament-hero{height:145px;object-position:center 35%}.page:has(.tournament-hero) .twocol{gap:15px}.page:has(.tournament-hero) .panel{padding:12px;margin-bottom:12px}.page:has(.tournament-hero) .panel h2{font-size:18px;margin:0 0 7px}.page:has(.tournament-hero) .panel h3{font-size:14px;margin:6px 0}.page:has(.tournament-hero) .panel .armyimage{width:58px;height:65px;margin:0 auto 7px}.page:has(.tournament-hero) .panel p{font-size:12px;margin:5px 0}
.page:has(.gymimg){padding-top:22px}.gymimg{height:110px;border:1px solid #b39a65;border-radius:7px;object-position:center 35%;margin-bottom:15px}.trainrow{border:1px solid #b7a078;border-radius:6px;background:#eee3c6;padding:12px;min-height:64px}.trainrow b{font-size:14px}.trainrow>div>div{font-size:11px;color:#806b45}.page:has(.gymimg) .twocol{gap:10px}.page:has(.gymimg)>.tabs{margin-bottom:10px}
.clanbanner{padding:18px 22px}.clanbanner h2{font-size:26px;margin:5px 0 9px}.page:has(.clanbanner) .formrow{margin-top:12px}.page:has(.siegeparts) .siegeparts{gap:12px}.siegeparts button{padding:18px 10px;min-height:85px;font-size:14px}.page:has(.castle)>.castle{min-height:245px;padding:20px 25px}.castle>p{font-size:13px}.castle h2{font-size:25px;margin:4px 0 12px}.page .note button{vertical-align:middle}.login-calendar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.login-calendar .panel{margin:0}.login-calendar+.center{margin-top:20px}
@media(max-height:800px){.inventoryPage{gap:12px;padding:17px 22px}.inventoryPage .profilepanel{padding:13px 18px!important}.inventoryPage .inventorySummary{margin-bottom:8px}.inventoryPage .statrow{height:25px}.inventoryPage .pet{min-height:145px}.arenaPage .arenabanner{height:125px}.arenaRules{padding-top:13px;padding-bottom:13px}.arenaRules>.panel{height:263px}.showcase-card{min-height:210px;padding:16px}.showcase-card>img{width:33px;height:33px;margin-bottom:7px}.showcase-card h2{font-size:18px}.showcase-card p{font-size:12px}.showcase-intro{margin-bottom:15px}.page:has(.showcase-grid)>h1{margin-bottom:15px;font-size:27px}.tournament-hero{height:110px}}
.tournament-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #a18c59;background:radial-gradient(ellipse at top,#506248,#193829);color:#eddbab;box-shadow:inset 0 0 0 5px #a18c5918}.tournament-hero .eyebrow{color:#c6b57e}.tournament-hero h2{font-size:26px;margin:8px 0}.bosshero{padding:12px 22px;min-height:185px}.bosshero>div{min-width:280px}.bosshero p{font-size:13px;margin:8px 0}.bosshero img{width:130px;height:130px}.bosshero .bar{width:100%}
@media(max-height:800px){.page:has(.showcase-grid){padding:20px 26px}.page:has(.showcase-grid)>h1{margin:0 0 10px;padding-bottom:8px}.showcase-intro{font-size:12px;margin-bottom:12px}.showcase-grid{gap:12px}.showcase-card{min-height:170px;display:grid;grid-template-columns:32px 1fr;gap:6px 10px;padding:13px}.showcase-card>img{margin:0;width:30px;height:30px}.showcase-card h2{margin:0;font-size:17px}.showcase-card p{grid-column:1/-1;margin:0;font-size:12px}.showcase-card button{grid-column:1/-1;font-size:12px;min-height:32px;padding:6px}.page:has(.showcase-grid) .bottom-actions{margin:10px 0 0}.gymimg{height:78px;margin-bottom:10px}.page:has(.gymimg)>p{margin:7px 0}.page:has(.gymimg) .trainrow{min-height:55px;padding:9px;margin:0}.page:has(.gymimg) .twocol>.panel{padding:8px;margin:0}.page:has(.gymimg) .twocol>.panel .tabs{margin:6px 0 0}.armor-menu{grid-template-columns:repeat(3,1fr);max-width:850px}.armor-menu .blue{height:65px}}
@media(max-height:800px){.wheelpage{padding-top:52px;padding-bottom:16px}.wheelpage .wheelart{width:280px;margin-bottom:14px}.wheelpage .wheelcontrols{padding:10px 12px}.wheelpage .wheel-chips{height:68px}.wheelpage .wheel-prize{height:32px}.wheelpage .wheel-machine{padding-top:10px}.wheelpage .wheel-heading{top:13px;font-size:24px}.tavernpage{padding:24px 30px}.tavern-counter{padding:18px 22px}.tavern-intro{margin-bottom:15px}.dicepage{padding-top:20px;padding-bottom:20px}.dicepage .dicetable{min-height:155px;margin:12px auto}.dicepage .note{font-size:11px}}
