*{box-sizing:border-box;touch-action:none;user-select:none;-webkit-user-select:none}body{margin:0;overflow:hidden;background:#101820;color:white;font-family:Arial,sans-serif}canvas{position:fixed;inset:0;z-index:0;display:block}button{color:white;background:#17242bd9;border:1px solid #ffffff66;border-radius:12px;padding:13px;font-weight:bold;cursor:pointer}#hud{position:absolute;z-index:3;top:12px;left:12px;background:#101820cc;padding:12px;border-radius:8px;pointer-events:none}#hud b{color:#a6e875;font-size:18px}small,#stats{display:block;color:#cad3cc;font-size:11px;margin-top:6px}#cross{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28px;pointer-events:none}#look{position:absolute;inset:0;z-index:1}#joy{position:absolute;z-index:4;bottom:80px;left:24px;width:120px;height:120px;border:2px solid #ffffff66;border-radius:50%;background:#10203055;display:flex;align-items:center;justify-content:center}#stick{width:48px;height:48px;border-radius:50%;background:#ffffff77;pointer-events:none}#actions{position:absolute;z-index:4;right:20px;bottom:80px;display:grid;grid-template-columns:repeat(2,65px);gap:10px}#actions button{height:60px;font-size:11px;border-radius:50%}#jump{grid-column:2}#hotbar{position:absolute;z-index:4;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:4px}#hotbar button{font-size:10px;padding:12px 8px}#hotbar .active{border:2px solid #d5ef89;background:#53713c}#menu{position:absolute;z-index:10;inset:0;background:#081019dd;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}h1{font-size:clamp(28px,7vw,72px);color:#a6e875;margin:0}#play{background:#527d31;padding:18px 38px;font-size:18px}@media(pointer:fine){#joy,#actions{opacity:.55}}

.br-modal{position:fixed;z-index:30;top:5%;left:50%;transform:translateX(-50%);width:min(94vw,540px);max-height:90%;overflow:auto;touch-action:pan-y;background:#11202af5;color:#f1f5f8;padding:12px;border:1px solid #75919d;border-radius:12px;box-shadow:0 10px 40px #0009;font:13px system-ui}.br-modal *{touch-action:pan-y}.br-modal h2{color:#c3ed9c;font-size:19px;margin:4px 0 8px}.br-modal button{padding:7px;margin:4px;font-size:11px}.br-modal input{width:100%;padding:10px;color:#fff;background:#233643;border:1px solid #8da3ae}.br-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:8px 0}.br-slot{min-height:44px;background:#21343e;border:1px solid #4f6571;border-radius:4px;font-size:9px;text-align:center;padding:3px;overflow:hidden}.br-swatch{display:inline-block;width:19px;height:19px;border:1px solid #ffffff44;border-radius:3px;box-shadow:inset -3px -3px #0003}.br-item{display:flex;align-items:center;gap:6px;border-bottom:1px solid #49606a;padding:6px 0}.br-item div{flex:1}.br-modal button:disabled{opacity:.45}

/* V07 mobile UI, no external assets */
:root{--br-gold:#e9c983;--br-dark:#13202ce8;--br-edge:#b49a664d}body{font-family:system-ui,Arial,sans-serif}#hud{top:auto!important;bottom:80px!important;left:8px!important;background:#101b2580!important;padding:5px!important;font-size:10px!important;pointer-events:none}#hud>*:not(#stats){display:none!important}#stats{font-size:10px!important}.br7-hud{position:fixed;left:10px;top:10px;width:min(42vw,220px);z-index:6;pointer-events:none;background:var(--br-dark);border:1px solid var(--br-edge);border-radius:11px;padding:8px;box-shadow:0 3px 14px #0005}.br7-brand{font-weight:900;font-size:clamp(10px,2.7vw,15px);color:var(--br-gold);letter-spacing:.3px}.br7-brand small{color:#aac9d4;font-size:9px}.br7-track,.br7-xp{position:relative;height:15px;margin-top:5px;background:#060b12;border-radius:4px;overflow:hidden}.br7-track span,.br7-xp span{display:block;height:100%;width:0;transition:width .18s;background:linear-gradient(90deg,#9e2e32,#e65c4d)}.br7-xp{height:12px}.br7-xp span{background:linear-gradient(90deg,#3b8660,#89ce79)}.br7-track b,.br7-xp b{position:absolute;inset:0;text-align:center;font-size:10px;color:white;text-shadow:0 1px 2px #000}.br7-meta{display:flex;flex-wrap:wrap;gap:4px 8px;color:#e8ebee;font-size:10px;margin-top:5px}.br7-gold{color:var(--br-gold)}.br7-zone{color:#a7dca6}.br7-top{position:fixed;right:9px;top:9px;z-index:7;display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;width:min(49vw,320px)}.br7-top>*{position:static!important;border-radius:9px!important;background:var(--br-dark)!important;border:1px solid var(--br-edge)!important;padding:8px!important;font-size:11px!important;color:#fff!important;min-height:34px}.br7-settings{position:fixed;right:9px;top:94px;z-index:20;background:#14212df5;border:1px solid var(--br-edge);border-radius:10px;padding:8px;width:160px}.br7-settings[hidden]{display:none}.br7-settings button{display:block;width:100%;margin:4px 0;padding:9px;font-size:11px}#actions{right:12px!important;bottom:76px!important;display:grid!important;grid-template-columns:repeat(2,56px)!important;gap:7px!important}#actions button{height:53px!important;width:56px!important;border-radius:16px!important;background:#152733d9!important;border:1px solid #d5e0e46b!important;font-size:11px!important;padding:0!important}#actions button:last-child{background:#713d39e8!important}#joy{bottom:83px!important;left:15px!important;width:104px!important;height:104px!important;border:1px solid #f5e1b080!important;background:#1527335e!important}#hotbar{bottom:10px!important;gap:4px!important;max-width:96vw}#hotbar button{min-width:55px;min-height:47px;font-size:10px;border-radius:8px!important;background:#14212de8!important;border:1px solid var(--br-edge)!important;color:white}#hotbar button.active{border:2px solid #ecd68b!important;background:#58633d!important}.br-modal{background:#12202dfc!important;border:1px solid #aa9565!important;border-radius:16px!important;padding:16px!important;overscroll-behavior:contain}.br-modal h2{color:var(--br-gold)!important;letter-spacing:1px}.br-modal button{background:#273c48;border:1px solid #b6a17170;border-radius:8px;min-height:34px}.br-grid{gap:5px!important}.br-slot{min-height:55px!important;background:linear-gradient(#2c3b48,#16222e)!important;border:1px solid #6c7d8880!important;border-radius:7px!important;color:#e8edf0!important}.br-swatch{width:24px!important;height:24px!important;box-shadow:inset 4px 4px #ffffff23,inset -4px -4px #0004!important}.br-item{padding:10px 0!important}.br-modal input{touch-action:auto!important;user-select:text!important}#menu h1{letter-spacing:3px;color:var(--br-gold)!important;text-shadow:0 3px 0 #583b1b,0 6px 20px #000}#play{background:#365d43!important;border:1px solid #b6d59a!important;border-radius:12px!important}@media(max-height:460px){.br7-hud{width:180px;padding:5px}.br7-top{width:280px}.br7-top>*{min-height:28px;padding:5px!important}#joy{width:90px!important;height:90px!important;bottom:56px!important}#actions{bottom:55px!important;grid-template-columns:repeat(2,45px)!important}#actions button{width:45px!important;height:40px!important}#hotbar{bottom:4px!important}#hotbar button{min-height:38px}#hud{bottom:5px!important}.br-modal{top:2%!important;max-height:96%!important}.br-slot{min-height:35px!important}}

/* V08 viewport fixes */
html,body{width:100%;height:100%;max-width:100%;overflow:hidden!important;margin:0!important}*,*::before,*::after{box-sizing:border-box}.br7-hud{top:8px!important;left:8px!important;width:min(42vw,210px)!important;max-width:calc(var(--br8w,100vw)*.43);padding:7px!important}.br7-top{right:8px!important;left:auto!important;top:8px!important;transform:none!important;width:min(52vw,330px)!important;max-width:calc(var(--br8w,100vw)*.52);display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px!important;justify-content:stretch!important}.br7-top>*{position:static!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:6px 3px!important;font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:32px!important}.br7-settings{right:8px!important;top:88px!important;max-width:calc(100vw - 16px)}#actions{position:fixed!important;left:auto!important;right:9px!important;transform:none!important;bottom:76px!important;grid-template-columns:repeat(2,minmax(0,50px))!important;width:106px!important;max-width:42vw!important;gap:6px!important}#actions button{position:static!important;transform:none!important;margin:0!important;min-width:0!important;max-width:100%!important;width:50px!important;height:48px!important;font-size:10px!important}#joy{position:fixed!important;left:12px!important;right:auto!important;transform:none!important;width:92px!important;height:92px!important;bottom:82px!important}#hotbar{position:fixed!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100vw - 12px)!important;bottom:8px!important;display:flex!important;gap:4px!important}#hotbar button{flex:1 1 0;min-width:0!important;max-width:66px!important;width:58px!important;padding:4px!important;font-size:10px!important}#hud{bottom:59px!important;left:8px!important;max-width:45vw!important}.br-modal{position:fixed!important;top:8px!important;left:50%!important;width:min(540px,calc(var(--br8w,100vw) - 16px))!important;max-height:calc(var(--br8h,100vh) - 16px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:12px!important;touch-action:pan-y!important}.br-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.br-slot{min-width:0!important;overflow-wrap:anywhere;min-height:44px!important}.br8-empty{opacity:.55}.br-item{flex-wrap:wrap}.br-item>div{min-width:85px}.br8-narrow .br7-brand{font-size:10px!important}.br8-narrow .br7-meta{font-size:9px!important;gap:3px!important}.br8-narrow .br-slot{font-size:9px!important}.br8-short #actions{bottom:48px!important}.br8-short #actions button{height:36px!important}.br8-short #joy{bottom:48px!important;width:74px!important;height:74px!important}.br8-short #hotbar button{min-height:35px!important}.br8-short #hud{bottom:4px!important}.br8-short .br7-hud{width:160px!important}

/* V09 creature and world polish */
.br7-brand{letter-spacing:.04em}.br-slot{transition:border-color .15s}.br-slot:active{border-color:#d6b66b!important}#cross{text-shadow:0 1px 3px #000;pointer-events:none}
