#ludo-home-shell[hidden],#ludo-home-panel[hidden]{display:none!important}
#ludo-home-shell{position:fixed;z-index:30;box-sizing:border-box;pointer-events:none;color:#fff;font:12px/1.25 Arial,Helvetica,sans-serif}
#ludo-home-shell *{box-sizing:border-box}
#ludo-home-mail{position:absolute;top:8.5%;left:2%;width:9%;aspect-ratio:1;height:auto;padding:0;border:2px solid #ffd329;border-radius:13px;background:linear-gradient(#1269bd,#073b84);box-shadow:0 3px 8px #001d50;color:#fff;font-size:23px;cursor:pointer;pointer-events:auto}
#ludo-home-footer{position:absolute;left:1.5%;right:1.5%;bottom:1%;height:8%;min-height:44px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;border:2px solid #f4c821;border-radius:10px;background:linear-gradient(#1769b7,#06316f);box-shadow:0 4px 14px #001944;pointer-events:auto}
#ludo-home-footer button{min-width:0;padding:3px 1px;border:1px solid transparent;border-radius:7px;background:transparent;color:#e4f3ff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:700 clamp(8px,1.2vh,12px) Arial,Helvetica,sans-serif;cursor:pointer}
#ludo-home-footer button[aria-current="page"],#ludo-home-footer button:hover{border-color:#ffe031;background:linear-gradient(#237bc7,#07418e);color:#fff}
#ludo-home-footer .lhn-icon{display:block;width:auto;height:52%;max-width:42px;object-fit:contain;filter:drop-shadow(0 2px 2px #001638)}
#ludo-home-mail img{display:block;width:62%;height:auto;margin:auto;object-fit:contain}
#ludo-home-panel{position:absolute;left:3%;right:3%;bottom:10%;max-height:min(260px,55%);overflow:auto;padding:17px 14px 14px;border:3px solid #ffdb28;border-radius:15px;background:linear-gradient(#176cc1,#073578);box-shadow:0 10px 28px #00143bcc;text-align:center;pointer-events:auto}
#ludo-home-panel h2{margin:0 32px 10px;color:#ffe46a;font-size:20px;text-shadow:0 2px 3px #062651}
#ludo-home-panel p{margin:0 0 12px;color:#e7f5ff;font-size:13px}
#ludo-home-panel .lhn-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#ludo-home-panel .lhn-actions button{min-height:43px;padding:6px;border:2px solid #ffd329;border-radius:9px;background:linear-gradient(#125ea8,#073575);color:#fff;font:bold 13px Arial,Helvetica,sans-serif;cursor:pointer}
#ludo-home-panel .lhn-close{position:absolute;top:7px;right:8px;width:30px;height:30px;border:0;border-radius:50%;background:#06316f;color:#fff;font-size:23px;cursor:pointer}
/* Blueprint positions, retaining the game's blue/gold controls and extracted artwork. */
#ludo-home-mail{top:calc(22 * var(--home-unit));left:20%;width:6%;border-width:1px;border-radius:7px;box-shadow:none}
.lhn-side{position:absolute;top:calc(116 * var(--home-unit));width:9%;display:grid;gap:calc(14 * var(--home-unit));pointer-events:auto}
.lhn-left{left:2%}.lhn-right{right:2%}
.lhn-side button,#ludo-home-bonuses button{border:2px solid #ffd329;background:linear-gradient(#2077c5,#073575);box-shadow:inset 0 0 4px #8bcbff,0 2px 4px #001d50;color:white;cursor:pointer}
.lhn-side button{width:100%;aspect-ratio:1;padding:15%;border-radius:12px}
.lhn-side img{width:100%;height:100%;object-fit:contain}
#ludo-home-bonuses{position:absolute;top:78%;left:22%;right:22%;display:grid;gap:7px;pointer-events:auto}
#ludo-home-bonuses>div{display:flex;justify-content:center;gap:10px}
#ludo-home-bonuses button{display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 10px;border-radius:22px;font:bold clamp(9px,1.2vh,13px) Arial;min-height:32px}
#ludo-home-bonuses img{width:clamp(20px,3vh,30px);height:clamp(20px,3vh,30px);object-fit:contain}
#ludo-home-bonuses button:disabled{cursor:default;opacity:.7}
#ludo-home-bonuses small{font-size:7px}
#ludo-home-bonuses .lhn-daily{border-radius:10px;color:#fff3ac;text-shadow:0 1px 2px #000}
body.ludo-original-home #ludoking-mode-widget>button:first-of-type{box-sizing:border-box;padding:0;display:flex;align-items:center;justify-content:center}
body.ludo-original-home #ludoking-mode-widget>button:first-of-type:before{font-size:clamp(16px,2.5vh,24px);line-height:1}
/* Large currency counters and centered Home tab from the latest reference. */
#ludo-home-mail{left:25%;top:calc(20 * var(--home-unit));width:7%;border:0;background:none;box-shadow:none}
#ludo-home-mail img{width:100%}
#ludo-home-balances{position:absolute;left:35%;right:3%;top:calc(24 * var(--home-unit));height:calc(48 * var(--home-unit));display:grid;grid-template-columns:1fr 1.4fr;gap:5%;pointer-events:auto}
#ludo-home-balances button{position:relative;min-width:0;display:flex;align-items:center;gap:5%;border:1px solid #1858ba;border-radius:8px;background:linear-gradient(#10225e,#081647);color:white;padding:0 4% 0 13%;font:700 calc(27 * var(--home-unit)) Arial;box-shadow:inset 0 1px 3px #336ac7;cursor:pointer}
#ludo-home-balances img{position:absolute;left:-9%;width:25%;height:110%;object-fit:contain}
#ludo-home-balances strong{flex:1;text-align:right;white-space:nowrap}
#ludo-home-balances span{display:grid;place-items:center;border-radius:4px;background:linear-gradient(#75ef18,#1caa05);border:1px solid #bdff69;width:calc(26 * var(--home-unit));height:calc(29 * var(--home-unit));text-shadow:0 1px 2px #285100}
#ludo-home-footer{grid-template-columns:1fr 1fr 1.15fr 1fr 1fr;left:0;right:0;bottom:0;height:8%;padding:0;gap:1px;border:0;border-radius:0;background:#042764;overflow:visible}
#ludo-home-footer button{border:1px solid #1b8bdd;border-radius:4px 4px 0 0;background:linear-gradient(#238de1,#043b87);font-size:clamp(8px,1.15vh,12px);text-shadow:0 2px 2px #072256}
#ludo-home-footer button[data-section="home"]{margin-top:-13%;background:linear-gradient(#39bafa,#0960b6);border-color:#6ddcff}
#ludo-home-footer .lhn-icon{height:56%;max-width:54px}
#ludo-home-footer button[data-section="home"] .lhn-icon{height:65%;max-width:66px}
.lhn-side button{border:0;background:none;box-shadow:none;padding:3%}
.lhn-side img{filter:drop-shadow(0 2px 3px #06336b)}
