:root{font-family:"Cairo",system-ui,sans-serif;color:#edfaff;background:#041b2c;font-synthesis:none;text-rendering:optimizeLegibility;--panel:rgba(5,31,49,.87);--panel2:rgba(11,53,80,.92);--line:rgba(149,223,255,.2);--cyan:#73e2ff;--gold:#ffd66e;--ink:#061923;--danger:#ff7485}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes floaty{50%{transform:translateY(-6px)}}@keyframes pop{0%{transform:scale(.5);opacity:0}20%{transform:scale(1.15);opacity:1}100%{transform:translateY(-18px) scale(1);opacity:.9}}
.splash{height:100%;display:flex;align-items:center;justify-content:center;gap:12px;background:radial-gradient(circle at 50% 30%,#0c6384,#031a2b 70%);font-size:20px}.splash svg{color:var(--cyan)}
.auth-shell{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px;position:relative;overflow:auto;background:radial-gradient(circle at 10% 20%,#0f6f8b 0,transparent 32%),radial-gradient(circle at 90% 80%,#633f96 0,transparent 28%),linear-gradient(160deg,#031826,#082e48 52%,#071b2d)}.auth-ambient{position:fixed;border-radius:50%;filter:blur(30px);opacity:.32;pointer-events:none}.auth-ambient.a1{width:260px;height:260px;background:#36d9f4;left:6%;top:12%}.auth-ambient.a2{width:340px;height:340px;background:#7e58d7;right:3%;bottom:5%}.auth-card{position:relative;width:min(760px,100%);background:linear-gradient(155deg,rgba(10,52,76,.94),rgba(3,26,43,.93));border:1px solid rgba(144,228,255,.25);border-radius:30px;padding:30px;box-shadow:0 40px 100px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.06);backdrop-filter:blur(22px)}.auth-card.error-card{max-width:620px;text-align:center}.brand-orb{width:74px;height:74px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,#69e7ff,#7b6ef4);box-shadow:0 14px 40px rgba(72,215,255,.28);margin-bottom:16px}.brand-orb svg{width:40px;height:40px}.eyebrow{font-size:11px;letter-spacing:.18em;color:#8bdff5;font-weight:800}.auth-card h1{font-size:clamp(36px,8vw,70px);line-height:1;margin:10px 0;background:linear-gradient(90deg,#fff,#9ae9ff,#ffe58e);-webkit-background-clip:text;color:transparent;font-weight:900}.auth-sub{color:#bfd8e3;max-width:600px;line-height:1.8}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#041c2d;border:1px solid var(--line);border-radius:18px;padding:6px;margin:24px 0 18px}.auth-tabs button{border:0;background:transparent;color:#abc9d7;border-radius:13px;padding:12px;font-weight:800;display:flex;justify-content:center;gap:8px}.auth-tabs button.active{background:linear-gradient(135deg,#176a85,#275474);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:7px;color:#dff5ff;font-weight:700;font-size:13px}.auth-form label span{color:#7fa7b9;font-weight:500}.auth-form input{width:100%;border:1px solid var(--line);background:#041d2f;color:#fff;border-radius:14px;padding:13px 14px;outline:none}.auth-form input:focus{border-color:#6fe5ff;box-shadow:0 0 0 3px rgba(111,229,255,.08)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.primary-btn{border:0;border-radius:15px;background:linear-gradient(135deg,#6fe5ff,#3ba8d0);color:#031a27;font-weight:900;padding:14px 18px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.ghost-btn{border:1px solid var(--line);background:transparent;color:#fff;border-radius:14px;padding:12px;margin-top:10px}.auth-features{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.auth-features span{font-size:12px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.03);color:#c6e5f0}
.game-shell{position:relative;width:100%;height:100%;overflow:hidden;background:#031827}.scene-layer{position:absolute;inset:0;touch-action:none}.hud{position:absolute;z-index:10}.top-hud{top:12px;right:12px;left:12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;pointer-events:none}.top-hud>*{pointer-events:auto}.profile-chip{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:6px 12px 6px 6px;backdrop-filter:blur(14px);cursor:pointer;box-shadow:0 15px 40px rgba(0,0,0,.25)}.mini-avatar{width:54px;height:54px;border-radius:14px;overflow:hidden;background:linear-gradient(150deg,#174b66,#08273a)}.profile-chip strong{display:block;font-size:14px}.profile-chip small{display:block;color:#93bdcc;font-size:10px;margin-top:2px}.currency-row{justify-self:center;display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:center}.currency-row span,.status-row span{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:7px 10px;font-weight:800;font-size:12px;backdrop-filter:blur(12px)}.currency-row svg,.status-row svg{width:15px;height:15px}.currency-row .boost-chip{color:#fff2a9;border-color:rgba(255,226,102,.35);background:rgba(88,60,8,.78)}.status-row{justify-self:end;display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.status-row .online{color:#83f0af}.status-row .offline{color:#ff9a9a}.quick-menu{right:12px;top:94px;display:grid;gap:7px}.quick-menu button{width:70px;min-height:60px;border:1px solid var(--line);border-radius:17px;background:var(--panel);color:#fff;backdrop-filter:blur(14px);display:grid;place-items:center;align-content:center;gap:3px;box-shadow:0 12px 30px rgba(0,0,0,.2);position:relative}.quick-menu button:hover{border-color:#6adfff;transform:translateX(-2px)}.quick-menu svg{width:21px;height:21px;color:#86e4ff}.quick-menu span{font-size:10px;font-weight:800}.quick-menu .has-dot:after{content:"";position:absolute;width:8px;height:8px;background:#ff7a8c;border:2px solid #082033;border-radius:50%;top:7px;left:7px}.emote-dock{bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:6px;padding:7px;border:1px solid var(--line);border-radius:18px;background:var(--panel);backdrop-filter:blur(14px)}.emote-dock button{width:38px;height:38px;border:0;border-radius:12px;background:rgba(255,255,255,.06);font-size:20px}.emote-dock button:hover{background:rgba(255,255,255,.13);transform:translateY(-2px)}.controls{bottom:18px;right:18px;display:flex;align-items:flex-end;gap:10px}.joystick{position:relative;width:124px;height:124px;border-radius:50%;border:1px solid rgba(141,225,255,.28);background:radial-gradient(circle,rgba(109,221,255,.14),rgba(3,27,43,.82));box-shadow:inset 0 0 30px rgba(50,203,255,.09),0 12px 35px rgba(0,0,0,.28);touch-action:none;user-select:none}.joystick:before,.joystick:after{content:"";position:absolute;background:rgba(180,238,255,.09)}.joystick:before{width:2px;top:12px;bottom:12px;left:50%}.joystick:after{height:2px;left:12px;right:12px;top:50%}.joystick-knob{position:absolute;left:50%;top:50%;width:54px;height:54px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d6f8ff,#3fb9dc 55%,#176986);box-shadow:0 0 25px rgba(81,210,248,.45)}.swim-controls{display:grid;gap:8px}.swim-controls button{width:54px;height:54px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:#8ee8ff}.race-mini{top:100px;left:12px;display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,rgba(83,55,9,.91),rgba(22,44,57,.92));border:1px solid rgba(255,215,94,.34);border-radius:18px;padding:10px 14px;backdrop-filter:blur(14px)}.race-mini svg{color:#ffd45b}.race-mini strong{display:block;font-size:12px}.race-mini small{display:block;color:#ffe8a3;font-size:10px}
.panel-backdrop{position:absolute;inset:0;z-index:50;background:rgba(1,10,17,.56);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}.game-panel{position:relative;width:min(920px,96vw);max-height:min(760px,92vh);overflow:auto;background:linear-gradient(160deg,rgba(8,46,69,.98),rgba(3,25,42,.98));border:1px solid rgba(132,224,255,.28);border-radius:28px;padding:26px;box-shadow:0 35px 90px rgba(0,0,0,.55)}.close-panel{position:absolute;left:14px;top:14px;width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:#09263b;color:#fff;display:grid;place-items:center}.close-panel svg{width:18px}.panel-title{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding-left:50px}.panel-title>svg{width:34px;height:34px;color:var(--cyan)}.panel-title h2{margin:0;font-size:22px}.panel-title p{margin:2px 0 0;color:#91b9c9;font-size:12px}.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.store-card{display:grid;grid-template-columns:56px 1fr;grid-template-rows:auto auto;gap:8px 10px;background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:18px;padding:12px;min-height:132px}.store-card.premium{border-color:rgba(196,153,255,.36);background:linear-gradient(145deg,rgba(110,60,142,.17),rgba(255,255,255,.025))}.store-card.equipped{border-color:rgba(100,239,173,.42);box-shadow:inset 0 0 0 1px rgba(100,239,173,.08)}.item-icon{grid-row:1/3;width:56px;height:56px;border-radius:15px;background:linear-gradient(145deg,#164b65,#0b2b42);display:grid;place-items:center;font-size:28px}.item-copy b{display:block;font-size:13px}.item-copy small{display:block;color:#8eb7c7;font-size:10px;line-height:1.5;margin-top:3px}.price{display:flex;gap:6px;align-items:center}.price span{font-size:11px;background:#071f31;padding:4px 7px;border-radius:999px}.store-card>button{grid-column:2;border:0;border-radius:11px;background:#147da0;color:#fff;font-weight:800;font-size:11px}.empty-state{padding:30px;text-align:center;color:#84aebe;border:1px dashed var(--line);border-radius:18px}.chat-list{height:360px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:4px}.chat-message{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.05)}.chat-message b{display:block;color:#77e6ff;font-size:11px}.chat-message span{font-size:13px;line-height:1.7}.all-emotes{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.all-emotes button{width:36px;height:36px;border:1px solid var(--line);background:#09283e;border-radius:10px;font-size:18px}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px}.chat-compose input{border:1px solid var(--line);background:#041d2f;color:#fff;padding:12px;border-radius:13px;outline:none}.chat-compose button,.race-info button{border:0;border-radius:12px;background:#26a7ce;color:#052231;font-weight:900;padding:0 18px}.world-map{position:relative;width:100%;aspect-ratio:1.35/1;min-height:430px;overflow:hidden;border-radius:24px;border:1px solid var(--line);background:radial-gradient(circle at 30% 25%,rgba(49,178,205,.22),transparent 27%),radial-gradient(circle at 75% 70%,rgba(100,84,181,.23),transparent 24%),linear-gradient(145deg,#053852,#05263e)}.map-water-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:30px 30px}.map-place,.map-race,.map-me{position:absolute;transform:translate(-50%,-50%);z-index:2}.map-place{color:#9fe8ff}.map-place span{display:block;text-align:center;font-size:18px}.map-place small,.map-me small{display:block;white-space:nowrap;background:rgba(2,18,30,.82);padding:3px 6px;border-radius:7px;font-size:9px}.map-race{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#2a7fa2;border:2px solid #a8ebff;font-size:10px;font-weight:900}.map-race.active{background:#e5ad27;color:#1b1604;border-color:#fff1a5;box-shadow:0 0 20px #f7c84f}.map-me{color:#fff26b;font-size:24px;text-align:center;text-shadow:0 0 14px #ffe35b}.race-hero{text-align:center;padding:20px}.race-icon{font-size:70px;animation:floaty 3s ease-in-out infinite}.race-hero h3{margin:4px 0 18px}.race-info{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.035);margin-bottom:14px}.race-info>div{flex:1}.race-info b,.race-info small{display:block}.race-info small{color:#91b8c8}.joined{color:#84efae;font-weight:800}.checkpoint-list{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:16px 0}.checkpoint-list>div{display:grid;place-items:center;gap:5px;text-align:center;min-height:80px;border:1px solid var(--line);border-radius:15px;background:#09263a}.checkpoint-list span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#164866;font-size:11px}.checkpoint-list b{font-size:10px}.checkpoint-list .done{opacity:.55;border-color:#59d891}.checkpoint-list .done span{background:#247a51}.checkpoint-list .current{border-color:#f6cb58;box-shadow:0 0 22px rgba(246,203,88,.16)}.checkpoint-list .current span{background:#c99318;color:#171203}.leaderboard{display:grid;gap:6px}.leaderboard>div{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.035)}.leaderboard span{color:#ffdc73;font-weight:900}.leaderboard small{color:#8fb8c8}.character-preview{height:260px;border:1px solid var(--line);border-radius:22px;background:radial-gradient(circle,#13516d,#06273e 70%);margin-bottom:14px}.character-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.character-grid button{display:flex;align-items:center;gap:9px;text-align:right;border:1px solid var(--line);background:#08253a;color:#fff;border-radius:14px;padding:9px}.character-grid button.selected{border-color:#77e4ff;background:#0b3d56}.character-grid button.premium{box-shadow:inset 3px 0 #9d6ae4}.character-grid i{width:30px;height:30px;border-radius:50%;flex:0 0 auto}.character-grid b,.character-grid small{display:block}.character-grid b{font-size:11px}.character-grid small{font-size:9px;color:#8db4c5}.logout-btn{margin-top:16px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(255,116,133,.3);background:rgba(107,31,43,.36);color:#ff9eaa;border-radius:14px;padding:12px}.world-label,.player-tag{white-space:nowrap;border-radius:999px;border:1px solid rgba(156,226,255,.25);background:rgba(3,23,37,.78);padding:4px 8px;font-size:11px;font-weight:800;color:#eefaff;box-shadow:0 5px 18px rgba(0,0,0,.24)}.player-tag.talking{background:#1d8aa8}.world-emote{font-size:38px;animation:pop 3s ease-out both;filter:drop-shadow(0 6px 10px rgba(0,0,0,.4))}.race-marker-label{white-space:nowrap;background:rgba(3,24,36,.78);border:1px solid rgba(110,219,255,.25);padding:4px 7px;border-radius:9px;color:#bfeeff;font-size:9px}.race-marker-label.active{color:#241a02;background:#ffe36b;border-color:#fff3a8;font-weight:900}
@media(max-width:900px){.top-hud{grid-template-columns:1fr auto}.currency-row{grid-column:1/3;grid-row:2;justify-self:start}.status-row{grid-column:2;grid-row:1}.status-row span:nth-child(n+3){display:none}.quick-menu{top:126px}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.auth-shell{padding:10px}.auth-card{padding:20px;border-radius:22px}.form-grid{grid-template-columns:1fr}.top-hud{top:7px;right:7px;left:7px;gap:6px}.profile-chip{padding:4px 7px 4px 4px;border-radius:14px}.mini-avatar{width:44px;height:44px}.profile-chip strong{font-size:11px}.profile-chip small{font-size:8px}.currency-row{gap:4px}.currency-row span,.status-row span{padding:5px 7px;font-size:9px}.status-row span:nth-child(n+2){display:none}.quick-menu{right:7px;top:105px;gap:5px}.quick-menu button{width:48px;min-height:48px;border-radius:14px}.quick-menu button span{display:none}.quick-menu svg{width:18px}.controls{right:8px;bottom:8px}.joystick{width:96px;height:96px}.joystick-knob{width:42px;height:42px}.swim-controls button{width:44px;height:44px}.emote-dock{bottom:8px;left:auto;right:164px;transform:none;gap:3px;padding:4px}.emote-dock button{width:31px;height:31px;font-size:16px}.emote-dock button:nth-child(n+5){display:none}.race-mini{left:7px;top:104px;max-width:170px;padding:7px 9px}.panel-backdrop{padding:8px;align-items:flex-end}.game-panel{width:100%;max-height:88vh;border-radius:24px 24px 0 0;padding:20px 14px 18px}.panel-title h2{font-size:18px}.item-grid{grid-template-columns:1fr}.world-map{min-height:360px;aspect-ratio:auto}.checkpoint-list{grid-template-columns:repeat(2,1fr)}.character-preview{height:210px}.chat-list{height:330px}.store-card{min-height:112px}}

/* ========================= QAA AL HAMOUR v3 UI ========================= */
:root{--v3-bg:#031724;--v3-panel:rgba(4,24,38,.82);--v3-panel-solid:#071f31;--v3-line:rgba(158,232,255,.18);--v3-cyan:#78e7ff;--v3-gold:#ffd66f;--v3-purple:#ab8dff;--v3-green:#72efb2}
.auth-shell{padding:14px;background:radial-gradient(circle at 18% 18%,rgba(28,174,208,.28),transparent 29%),radial-gradient(circle at 82% 74%,rgba(97,65,167,.25),transparent 30%),linear-gradient(155deg,#02121d,#06324a 56%,#061a2b)}
.auth-card{width:min(500px,100%);border-radius:24px;padding:20px 22px 18px;background:linear-gradient(160deg,rgba(7,43,63,.95),rgba(3,23,37,.96));box-shadow:0 28px 70px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.07)}
.auth-card .brand-orb{width:52px;height:52px;border-radius:17px;margin-bottom:9px}.auth-card .brand-orb svg{width:28px;height:28px}.auth-card .eyebrow{font-size:9px}.auth-card h1{font-size:clamp(32px,6vw,46px);margin:5px 0 7px}.auth-sub{font-size:12px;line-height:1.65;margin:0 0 12px}.auth-tabs{border-radius:14px;padding:4px;margin:10px 0}.auth-tabs button{min-height:39px;border-radius:10px;font-size:12px}.auth-tabs svg{width:16px}.auth-form{gap:9px}.auth-form label{font-size:10px;gap:4px}.auth-form input{min-height:39px;padding:8px 11px;border-radius:10px;font-size:12px}.auth-form .primary-btn{min-height:42px;border-radius:12px;font-size:13px;margin-top:2px}.form-grid{gap:8px}.auth-features{margin-top:10px;padding-top:10px;gap:5px}.auth-features span{font-size:9px;padding:5px 7px}.auth-ambient.a1{width:190px;height:190px}.auth-ambient.a2{width:230px;height:230px}
.game-shell{background:#061d2c}.hud{border-color:var(--v3-line);box-shadow:0 14px 36px rgba(0,0,0,.24)}
.top-hud{top:10px;right:10px;left:10px;min-height:60px;padding:7px 9px;border-radius:18px;background:linear-gradient(145deg,rgba(4,25,39,.87),rgba(8,47,65,.78));backdrop-filter:blur(18px) saturate(1.25)}
.profile-chip{padding:4px 8px 4px 4px;border-radius:14px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}.mini-avatar{width:47px;height:47px;border-radius:12px;background:radial-gradient(circle at 40% 25%,#185d79,#082a3e)}.profile-chip strong{font-size:12px}.profile-chip small{font-size:9px;color:#9fc4d1}
.currency-row span,.status-row span{background:rgba(2,17,28,.62);border:1px solid rgba(157,226,255,.12);border-radius:11px;padding:6px 9px}.currency-row svg,.status-row svg{width:14px;height:14px}.membership-chip svg{width:13px}.membership-chip.gold{color:#ffe086;border-color:rgba(255,218,112,.24)}.membership-chip.royal{color:#d6c1ff;border-color:rgba(188,157,255,.3);box-shadow:inset 0 0 20px rgba(155,103,255,.08)}
.quick-menu{top:84px;right:10px;gap:5px;padding:5px;border-radius:17px;background:rgba(3,24,38,.72);backdrop-filter:blur(18px)}.quick-menu button{width:64px;min-height:51px;border-radius:13px;background:linear-gradient(155deg,rgba(14,61,82,.88),rgba(7,35,52,.91));border:1px solid rgba(144,224,251,.12);transition:.18s transform,.18s border-color,.18s background}.quick-menu button:hover{transform:translateX(-2px);border-color:rgba(122,232,255,.36);background:linear-gradient(155deg,rgba(20,82,105,.95),rgba(8,43,62,.94))}.quick-menu button svg{width:18px;height:18px}.quick-menu button span{font-size:9px}.quick-menu .voice-btn.active{color:#85f2c2;border-color:rgba(103,241,179,.38);box-shadow:0 0 24px rgba(75,232,166,.12)}.quick-menu .voice-btn.talking{animation:voicePulse 1s ease-in-out infinite;background:linear-gradient(155deg,rgba(24,141,125,.95),rgba(5,69,69,.95));color:#fff}.quick-menu .admin-menu-btn{color:#eadcff;border-color:rgba(182,145,255,.28)}
@keyframes voicePulse{50%{box-shadow:0 0 0 5px rgba(92,239,183,.08),0 0 28px rgba(92,239,183,.3)}}
.voice-pill{position:absolute;top:84px;left:10px;z-index:20;display:grid;grid-template-columns:26px auto;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:7px 11px;border-radius:14px;background:rgba(5,31,45,.82);backdrop-filter:blur(16px);border:1px solid rgba(112,232,196,.22)}.voice-pill>svg{grid-row:1/3;width:20px;color:#7cf1bd}.voice-pill b{font-size:10px}.voice-pill small{font-size:8px;color:#93c8bd}.voice-pill.talking{border-color:rgba(92,246,181,.5);box-shadow:0 0 26px rgba(62,226,155,.18)}
.emote-dock{background:rgba(3,24,38,.68);backdrop-filter:blur(16px);border-radius:15px;padding:5px}.emote-dock button{background:rgba(13,59,79,.83);border-color:rgba(145,226,255,.12);transition:.16s}.emote-dock button:hover{transform:translateY(-3px) scale(1.06)}
.game-panel{background:linear-gradient(160deg,rgba(7,41,60,.99),rgba(3,21,34,.995));border-radius:22px;padding:22px;border-color:rgba(139,228,255,.22);box-shadow:0 32px 90px rgba(0,0,0,.6)}.panel-title{margin-bottom:15px}.panel-title>svg{width:28px;height:28px}.panel-title h2{font-size:19px}.panel-title p{font-size:10px}.close-panel{width:34px;height:34px;border-radius:10px}
.store-card{border-radius:15px;min-height:120px;background:linear-gradient(150deg,rgba(255,255,255,.045),rgba(255,255,255,.018));transition:.18s transform,.18s border-color}.store-card:hover{transform:translateY(-2px);border-color:rgba(126,230,255,.28)}.item-icon{border-radius:13px}.character-preview.pro-preview{background:radial-gradient(circle at 50% 22%,rgba(77,211,245,.2),transparent 33%),radial-gradient(circle at 50% 70%,rgba(119,83,196,.17),transparent 42%),linear-gradient(155deg,#0a3d55,#061f31);box-shadow:inset 0 0 50px rgba(77,215,255,.08)}.character-grid button{min-height:61px}.character-grid small{line-height:1.45}
/* Luck */
.luck-stage{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:radial-gradient(circle at 50% 44%,rgba(106,86,211,.19),transparent 34%),linear-gradient(160deg,rgba(7,37,56,.7),rgba(4,24,37,.55));border:1px solid var(--v3-line);border-radius:22px;padding:24px}.luck-wheel{position:relative;width:210px;height:210px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(from 0deg,#173f5a 0 12.5%,#4e3e86 0 25%,#0d6070 0 37.5%,#78582b 0 50%,#174e48 0 62.5%,#633953 0 75%,#164961 0 87.5%,#3d3875 0 100%);border:7px solid rgba(214,241,255,.18);box-shadow:0 0 0 2px rgba(95,220,255,.14),0 24px 60px rgba(0,0,0,.36),inset 0 0 45px rgba(255,255,255,.06)}.luck-wheel:before{content:"";position:absolute;top:-22px;border-left:13px solid transparent;border-right:13px solid transparent;border-top:25px solid #ffe073;filter:drop-shadow(0 4px 4px #0008)}.luck-wheel span{position:absolute;font-size:24px;transform-origin:50% 105px}.luck-wheel b{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#fef4c2,#d9a22e);color:#18212a;border:5px solid #0b2c40;box-shadow:0 8px 25px #0008;font-size:15px}.luck-wheel.spinning{animation:luckSpin 1s cubic-bezier(.1,.7,.2,1) both}@keyframes luckSpin{to{transform:rotate(1080deg)}}.luck-spin-btn{min-width:230px;border:0;border-radius:13px;padding:12px 18px;background:linear-gradient(90deg,#f3c34e,#ffe082);color:#18222a;font-weight:900}.luck-result{display:flex;gap:12px;align-items:center;padding:10px 16px;border-radius:13px;background:rgba(76,213,160,.1);border:1px solid rgba(98,236,181,.28)}.luck-result strong{font-size:13px}.luck-result span{color:#8bf1bf;font-weight:900}
/* Admin */
.admin-panel-shell{width:min(1180px,97vw);max-height:94vh}.admin-loading{min-height:280px;display:flex;gap:10px;align-items:center;justify-content:center;color:#b9dbe7}.admin-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:12px}.admin-stats>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:10px 12px;border-radius:14px;background:linear-gradient(145deg,rgba(17,67,89,.55),rgba(6,34,51,.65));border:1px solid var(--v3-line)}.admin-stats>div>span{grid-row:1/3;font-size:22px}.admin-stats b{font-size:15px}.admin-stats small{font-size:8px;color:#8fb8c7}.admin-tabs{display:flex;gap:6px;position:sticky;top:-22px;z-index:5;padding:7px 0;background:linear-gradient(#072b40 65%,transparent)}.admin-tabs button{display:flex;align-items:center;gap:6px;border:1px solid var(--v3-line);background:#09283c;color:#cceaf3;padding:8px 12px;border-radius:10px;font-size:10px}.admin-tabs button svg{width:15px}.admin-tabs button.active{background:#176c87;color:#fff;border-color:#3db6d6}.admin-section{display:grid;gap:9px}.admin-search{display:flex;align-items:center;gap:7px;background:#051d2d;border:1px solid var(--v3-line);padding:7px 10px;border-radius:12px}.admin-search svg{width:16px}.admin-search input{flex:1;background:transparent;border:0;color:#fff;outline:0}.admin-user-list,.admin-shop-list,.luck-admin-list{display:grid;gap:7px}.admin-user-row{display:grid;gap:8px;padding:10px;border-radius:14px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.055)}.admin-user-row.is-online{border-color:rgba(94,231,168,.18)}.admin-user-head{display:flex;align-items:center;gap:8px}.admin-user-head>div{flex:1}.admin-user-head b,.admin-user-head small{display:block}.admin-user-head b{font-size:12px}.admin-user-head small{font-size:8px;color:#83aebb}.online-dot{width:8px;height:8px;border-radius:50%;background:#667985}.is-online .online-dot{background:#62e6a4;box-shadow:0 0 10px #62e6a4}.admin-user-row input,.admin-user-row select,.admin-shop-row input,.admin-shop-row select,.new-shop-box input,.new-shop-box select,.luck-admin-list input,.luck-admin-list select{background:#051e2e;color:#fff;border:1px solid rgba(147,221,245,.14);border-radius:9px;padding:7px 8px;outline:none;min-width:0}.admin-user-head select{width:92px}.admin-user-fields{display:grid;grid-template-columns:repeat(7,minmax(75px,1fr));gap:6px}.admin-user-fields label,.shop-admin-fields label,.luck-admin-list label{display:grid;gap:3px;font-size:8px;color:#8fb6c4}.admin-user-actions{display:flex;gap:6px;align-items:center}.admin-user-actions select{flex:1}.admin-user-actions button,.shop-admin-toggles button,.save-luck-admin,.admin-add-item,.new-shop-box button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--v3-line);background:#0e5970;color:#fff;border-radius:9px;padding:7px 10px;font-weight:800;font-size:9px}.admin-user-actions button svg,.shop-admin-toggles button svg,.save-luck-admin svg{width:14px}.admin-user-actions .save-admin{background:#157a5a;border-color:#2fb583}.check-control{display:flex!important;grid-auto-flow:column;align-items:center;gap:4px!important;white-space:nowrap;color:#c8e2ea!important}.check-control input{width:auto}.admin-shop-row{display:grid;grid-template-columns:45px minmax(220px,1fr) minmax(220px,.8fr) auto;gap:8px;align-items:center;padding:9px;border-radius:13px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.055)}.shop-admin-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;font-size:22px;background:#0b3047}.shop-admin-main{display:grid;grid-template-columns:1fr 1.3fr;gap:5px}.shop-admin-main small{grid-column:1/3;font-size:7px;color:#749cac}.shop-admin-fields{display:flex;gap:5px}.shop-admin-fields label{width:72px}.shop-admin-toggles{display:flex;align-items:center;gap:6px;font-size:8px}.shop-admin-toggles label{white-space:nowrap}.admin-add-item{justify-self:start;background:#17465c}.new-shop-box{display:grid;grid-template-columns:1.3fr 1fr .7fr 2fr .7fr .7fr auto auto;gap:6px;padding:9px;border:1px dashed rgba(115,222,255,.25);border-radius:12px}.luck-admin-note{display:flex;gap:8px;align-items:center;padding:9px 11px;border-radius:11px;background:rgba(97,79,180,.12);border:1px solid rgba(168,145,255,.18);font-size:9px;color:#cbbefa}.luck-admin-note svg{width:16px}.luck-admin-list article{display:grid;grid-template-columns:40px 1.4fr .8fr repeat(3,.55fr) auto;gap:6px;align-items:center;padding:8px;border:1px solid rgba(255,255,255,.055);border-radius:12px;background:rgba(255,255,255,.02)}.luck-admin-icon{font-size:22px;text-align:center}.save-luck-admin{justify-self:start;background:#5b4699;border-color:#856dcc;padding:10px 15px}
@media(max-width:950px){.admin-stats{grid-template-columns:repeat(3,1fr)}.admin-user-fields{grid-template-columns:repeat(4,1fr)}.admin-shop-row{grid-template-columns:42px 1fr}.shop-admin-fields,.shop-admin-toggles{grid-column:2}.luck-admin-list article{grid-template-columns:38px 1fr 1fr repeat(3,.65fr)}.luck-admin-list article>.check-control{grid-column:2/7}.new-shop-box{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.auth-card{width:min(430px,100%);padding:16px;border-radius:18px}.auth-card h1{font-size:34px}.auth-sub{font-size:10px}.auth-features{display:none}.quick-menu{top:99px;right:7px;display:grid;grid-template-columns:repeat(2,47px);padding:4px}.quick-menu button{width:47px;min-height:45px}.voice-pill{top:101px;left:7px}.voice-pill small{display:none}.emote-dock{right:112px}.admin-panel-shell{padding:16px 10px}.admin-stats{grid-template-columns:repeat(2,1fr)}.admin-tabs{overflow:auto}.admin-user-fields{grid-template-columns:repeat(2,1fr)}.admin-user-actions{flex-wrap:wrap}.admin-user-actions select{min-width:100%}.admin-shop-row{grid-template-columns:38px 1fr}.shop-admin-main{grid-template-columns:1fr}.shop-admin-main small{grid-column:1}.shop-admin-fields{grid-column:1/3;flex-wrap:wrap}.shop-admin-toggles{grid-column:1/3;flex-wrap:wrap}.new-shop-box{grid-template-columns:1fr}.luck-admin-list article{grid-template-columns:32px 1fr}.luck-admin-list article>*{grid-column:auto}.luck-admin-list article label{grid-column:1/3!important}.luck-stage{min-height:360px;padding:12px}.luck-wheel{width:180px;height:180px}.luck-wheel span{transform-origin:50% 90px!important}}

/* ==================== QAA AL HAMOUR 3.5 PRO UI ==================== */
:root{--pro-bg:rgba(3,18,31,.82);--pro-card:rgba(7,37,56,.88);--pro-line:rgba(117,226,255,.16);--pro-cyan:#77e9ff;--pro-mint:#70efc3;--pro-violet:#a890ff;--pro-gold:#ffdd7a}
.auth-shell{padding:14px;background:radial-gradient(circle at 18% 8%,rgba(31,165,197,.27),transparent 28%),radial-gradient(circle at 85% 90%,rgba(111,76,197,.23),transparent 32%),linear-gradient(145deg,#031522,#082d45 54%,#041725)}
.auth-card{width:min(470px,94vw);padding:20px 22px;border-radius:24px;border:1px solid rgba(129,226,255,.2);box-shadow:0 28px 85px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.05)}
.brand-orb{width:56px;height:56px;border-radius:18px;margin:0 auto 11px}.brand-orb svg{width:30px;height:30px}.eyebrow{text-align:center;font-size:9px}.auth-card h1{text-align:center;font-size:clamp(34px,6vw,48px);margin:7px 0}.auth-sub{text-align:center;margin:0 auto;font-size:11px;line-height:1.65;max-width:410px}.auth-tabs{margin:15px 0 12px;border-radius:14px}.auth-tabs button{padding:9px}.auth-form{gap:10px}.auth-form label{gap:5px;font-size:11px}.auth-form input{border-radius:11px;padding:10px 12px}.form-grid{gap:8px}.primary-btn{padding:11px 15px;border-radius:12px}.auth-features{justify-content:center;margin-top:11px}.auth-features span{font-size:9px;padding:5px 8px}
.top-hud{top:9px;right:9px;left:9px;gap:8px}.profile-chip{border-radius:15px;padding:5px 9px 5px 5px;background:linear-gradient(145deg,rgba(5,33,49,.88),rgba(6,25,39,.78));box-shadow:0 12px 34px rgba(0,0,0,.22)}.mini-avatar{width:48px;height:48px;border-radius:12px}.currency-row span,.status-row span{padding:6px 9px;background:rgba(3,25,39,.78);box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.quick-menu{top:84px;right:9px;grid-template-columns:repeat(2,58px);padding:5px;border-radius:18px;background:rgba(3,19,31,.3);backdrop-filter:blur(8px)}.quick-menu button{width:58px;min-height:52px;border-radius:14px;background:linear-gradient(145deg,rgba(7,44,64,.88),rgba(3,27,43,.86));transition:.16s transform,.16s border-color,.16s box-shadow}.quick-menu button:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(0,0,0,.25)}.quick-menu .voice-btn.active{background:linear-gradient(145deg,rgba(20,101,78,.9),rgba(5,49,49,.9));border-color:rgba(91,241,184,.32)}.quick-menu .voice-note-quick.recording{background:linear-gradient(145deg,rgba(137,38,57,.94),rgba(76,19,34,.94));border-color:rgba(255,123,144,.42);animation:recordPulse 1.15s ease-in-out infinite}@keyframes recordPulse{50%{box-shadow:0 0 0 5px rgba(255,83,113,.08),0 0 25px rgba(255,62,92,.2)}}
.game-panel{width:min(980px,95vw);border-radius:24px;padding:22px;background:radial-gradient(circle at 15% 5%,rgba(33,116,144,.12),transparent 30%),linear-gradient(160deg,rgba(6,38,57,.985),rgba(3,20,34,.992));box-shadow:0 35px 100px rgba(0,0,0,.64)}.panel-backdrop{background:rgba(0,8,15,.48);backdrop-filter:blur(7px)}
.item-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.store-card{grid-template-columns:50px 1fr;min-height:112px;border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.015));overflow:hidden;position:relative}.store-card.premium:before{content:"PREMIUM";position:absolute;top:7px;left:-23px;transform:rotate(-38deg);font-size:7px;font-weight:900;letter-spacing:.1em;padding:3px 26px;background:linear-gradient(90deg,#7b56cf,#d19cff);color:#fff}.item-icon{width:50px;height:50px;border-radius:13px}.store-card>button{min-height:28px}
.character-preview.pro-preview{height:250px;border:1px solid rgba(125,232,255,.16);border-radius:20px;overflow:hidden;background:radial-gradient(circle at 50% 20%,rgba(81,221,255,.18),transparent 30%),radial-gradient(circle at 50% 76%,rgba(137,93,222,.14),transparent 36%),#061f31}.character-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.character-grid button{position:relative;overflow:hidden;border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.016));border:1px solid var(--pro-line);transition:.18s transform,.18s box-shadow,.18s border-color}.character-grid button:hover{transform:translateY(-2px);border-color:rgba(115,232,255,.34)}.character-grid button.selected{border-color:rgba(105,238,196,.5);box-shadow:inset 0 0 0 1px rgba(105,238,196,.13),0 10px 30px rgba(17,139,111,.12)}.character-grid button.premium{background:linear-gradient(145deg,rgba(106,73,168,.14),rgba(255,255,255,.018))}.character-grid button i{box-shadow:inset 0 0 12px rgba(255,255,255,.25),0 4px 15px rgba(0,0,0,.2)}
.chat-list{height:min(390px,48vh);padding:8px;border:1px solid rgba(115,220,245,.08);border-radius:16px;background:rgba(1,16,27,.34)}.chat-message{border-radius:13px;background:linear-gradient(145deg,rgba(255,255,255,.042),rgba(255,255,255,.015));border:1px solid rgba(255,255,255,.045)}.chat-message b{color:#8be8ff}.chat-message.voice-message{padding:9px 11px}.voice-note{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;margin-top:7px;padding:7px;border-radius:12px;background:rgba(3,25,40,.72);border:1px solid rgba(111,226,255,.12)}.voice-note-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#167b99,#315d94)}.voice-note audio{width:100%;height:32px;min-width:140px}.voice-note small{font-size:9px;color:#92c8d8}.voice-recorder-box{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;padding:9px 10px;border-radius:14px;background:linear-gradient(145deg,rgba(9,54,73,.64),rgba(5,29,45,.7));border:1px solid rgba(111,224,255,.12)}.voice-recorder-state{display:flex;align-items:center;gap:9px;min-width:0}.voice-recorder-state>svg{width:21px;color:#7ee9ff}.voice-recorder-state b,.voice-recorder-state small{display:block}.voice-recorder-state b{font-size:11px}.voice-recorder-state small{font-size:8px;color:#90bcca;line-height:1.4}.voice-recorder-state.recording>svg{color:#ff728d;animation:recordPulse 1s infinite}.record-note-btn{display:flex;align-items:center;gap:6px;border:1px solid rgba(96,225,255,.18);background:#126782;color:#fff;border-radius:11px;padding:8px 11px;font-size:10px;font-weight:900;white-space:nowrap}.record-note-btn.stop{background:#8c2940;border-color:#cc526a}.record-note-btn svg,.chat-compose button svg{width:15px}.chat-compose button{display:flex;align-items:center;gap:5px}
.voice-pill{background:linear-gradient(145deg,rgba(4,42,46,.86),rgba(4,25,38,.86));border-color:rgba(102,239,190,.25)}.voice-pill.talking{box-shadow:0 0 0 4px rgba(90,238,177,.06),0 0 24px rgba(48,210,146,.18)}
.admin-panel-shell{width:min(1240px,97vw)}.admin-panel-shell:before{content:"CONTROL CENTER";display:block;font-size:8px;letter-spacing:.22em;color:#6faec2;margin-bottom:5px}.admin-stats>div{background:linear-gradient(145deg,rgba(14,62,82,.62),rgba(4,29,45,.78));border-radius:13px}.admin-tabs{backdrop-filter:blur(12px)}.admin-user-row,.admin-shop-row,.luck-admin-list article{transition:.16s border-color,.16s background}.admin-user-row:hover,.admin-shop-row:hover,.luck-admin-list article:hover{border-color:rgba(112,226,255,.17);background:rgba(255,255,255,.035)}
@media(max-width:1100px){.item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.auth-card{width:min(410px,95vw);padding:15px}.form-grid{grid-template-columns:1fr}.auth-card h1{font-size:34px}.quick-menu{grid-template-columns:repeat(2,48px)}.quick-menu button{width:48px;min-height:45px}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.voice-recorder-box{align-items:stretch;flex-direction:column}.record-note-btn{justify-content:center}.voice-note{grid-template-columns:30px 1fr}.voice-note small{grid-column:2}.admin-panel-shell{width:98vw}.game-panel{padding:17px 12px}}
@media(max-width:430px){.auth-shell{padding:7px}.auth-card{padding:13px;border-radius:17px}.brand-orb{width:46px;height:46px}.auth-sub{font-size:9px}.item-grid{grid-template-columns:1fr}.character-preview.pro-preview{height:210px}.emote-dock{max-width:calc(100vw - 125px);overflow-x:auto;left:auto;right:112px;transform:none}.voice-note audio{max-width:210px}}
.character-grid b{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.character-grid .rarity{font-style:normal;font-size:6px;letter-spacing:.08em;padding:2px 5px;border-radius:999px;background:rgba(255,255,255,.08);color:#d8e9ef}.character-grid .rarity.epic{background:rgba(158,91,230,.18);color:#dcb6ff}.character-grid .rarity.legendary{background:rgba(255,188,68,.16);color:#ffe09b}.character-grid .rarity.mythic{background:linear-gradient(90deg,rgba(96,223,255,.16),rgba(193,97,255,.18));color:#d9dcff}
.character-grid b{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.character-grid .rarity{font-style:normal;font-size:6px;letter-spacing:.08em;padding:2px 5px;border-radius:999px;background:rgba(255,255,255,.08);color:#d8e9ef}.character-grid .rarity.epic{background:rgba(158,91,230,.18);color:#dcb6ff}.character-grid .rarity.legendary{background:rgba(255,188,68,.16);color:#ffe09b}.character-grid .rarity.mythic{background:linear-gradient(90deg,rgba(96,223,255,.16),rgba(193,97,255,.18));color:#d9dcff}

/* ==================== QAA AL HAMOUR 3.6 LIVING OCEAN ==================== */
html,body,#root,.game-shell,.scene-layer{height:100%;height:100dvh;min-height:100%;overscroll-behavior:none}
body{background:#03131f;-webkit-tap-highlight-color:transparent}
.scene-layer,canvas{touch-action:none!important;user-select:none;-webkit-user-select:none}

/* speech instead of traditional text chat */
.world-speech{position:relative;max-width:220px;min-width:38px;padding:8px 12px;border-radius:16px 16px 5px 16px;background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(217,247,255,.96));color:#062231;font:800 12px/1.55 "Cairo",system-ui,sans-serif;text-align:center;white-space:normal;overflow-wrap:anywhere;box-shadow:0 8px 24px rgba(0,17,28,.32),0 0 0 1px rgba(14,84,112,.13);animation:qaaBubbleIn .18s ease-out;pointer-events:none}
.world-speech:after{content:"";position:absolute;right:18px;bottom:-8px;border-width:9px 3px 0 9px;border-style:solid;border-color:#e1f8ff transparent transparent transparent;transform:skewX(-10deg)}
@keyframes qaaBubbleIn{from{opacity:0;transform:translateY(7px) scale(.88)}to{opacity:1;transform:none}}

.speech-compose{left:50%;bottom:15px;transform:translateX(-50%);display:grid;grid-template-columns:minmax(160px,360px) 42px 42px;gap:6px;padding:6px;border-radius:18px;border:1px solid rgba(118,225,255,.18);background:linear-gradient(145deg,rgba(2,25,39,.88),rgba(3,18,30,.82));box-shadow:0 14px 38px rgba(0,0,0,.3);backdrop-filter:blur(16px);z-index:23}
.speech-compose input{min-width:0;border:0;outline:0;background:rgba(255,255,255,.055);color:#fff;border-radius:12px;padding:9px 12px;font-size:11px}.speech-compose input::placeholder{color:#86aab9}.speech-compose button{border:1px solid rgba(127,229,255,.15);background:linear-gradient(145deg,#126d87,#17485f);color:#fff;border-radius:12px;font-size:16px}.speech-compose button.recording{background:linear-gradient(145deg,#c53a58,#6f1f34);animation:recordPulse 1s infinite}

.public-voice-feed{left:10px;top:156px;display:grid;gap:5px;width:min(260px,34vw);z-index:18;pointer-events:none}.public-voice-item{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid rgba(112,232,196,.2);border-radius:13px;background:linear-gradient(145deg,rgba(4,50,55,.88),rgba(3,25,39,.84));box-shadow:0 10px 28px rgba(0,0,0,.2);animation:qaaVoiceIn .2s ease-out}.public-voice-item>span{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:rgba(105,238,190,.12)}.public-voice-item b,.public-voice-item small{display:block}.public-voice-item b{font-size:10px}.public-voice-item small{font-size:8px;color:#93cabe}@keyframes qaaVoiceIn{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}

.golden-fish-label{white-space:nowrap;padding:5px 9px;border-radius:999px;color:#fff8c6;background:linear-gradient(90deg,rgba(112,68,0,.86),rgba(190,126,4,.9));border:1px solid rgba(255,226,105,.55);font:bold 9px "Cairo";box-shadow:0 0 22px rgba(255,193,49,.36);animation:goldFishPulse 1.1s ease-in-out infinite alternate;pointer-events:none}@keyframes goldFishPulse{to{transform:scale(1.06);filter:brightness(1.18)}}
.fish-wallet{border-color:rgba(99,224,188,.2)!important;color:#b9ffe7}.gold-fish-wallet{border-color:rgba(255,214,83,.36)!important;color:#ffe994;background:rgba(88,58,4,.75)!important}

.challenge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:14px 0}.challenge-card{min-height:190px;display:flex;flex-direction:column;gap:9px;padding:15px;border-radius:18px;border:1px solid rgba(121,225,255,.14);background:radial-gradient(circle at 90% 0,rgba(94,221,255,.08),transparent 34%),linear-gradient(145deg,rgba(9,48,68,.72),rgba(3,27,43,.85));box-shadow:inset 0 1px rgba(255,255,255,.025)}.challenge-card.hunt-challenge{background:radial-gradient(circle at 90% 0,rgba(82,241,171,.1),transparent 36%),linear-gradient(145deg,rgba(7,55,55,.72),rgba(3,29,43,.86))}.challenge-card.golden-challenge{border-color:rgba(255,213,87,.23);background:radial-gradient(circle at 90% 0,rgba(255,207,72,.13),transparent 38%),linear-gradient(145deg,rgba(72,49,5,.58),rgba(3,29,43,.88))}.challenge-icon{font-size:28px}.challenge-card h3{margin:0;font-size:14px}.challenge-card p{margin:0;color:#a9cad7;font-size:10px;line-height:1.65;flex:1}.challenge-card small{display:block;color:#d7eef5;font-size:9px}.challenge-card button{border:1px solid rgba(117,229,255,.18);background:#116b87;color:#fff;border-radius:11px;padding:8px;font-weight:900;font-size:10px}.challenge-card button:disabled{background:#164456}.challenge-board{margin-top:9px;border:1px solid rgba(118,224,255,.1);background:rgba(2,22,35,.5);border-radius:15px;padding:10px}.challenge-board h3{font-size:12px;margin:0 0 7px}.challenge-board>div{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;padding:7px 8px;border-top:1px solid rgba(255,255,255,.04);font-size:10px}.challenge-board>div:first-of-type{border-top:0}.challenge-board .me{background:rgba(90,233,183,.07);border-radius:8px}.hunt-mini{left:10px;top:164px;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(97,238,181,.22);border-radius:14px;background:linear-gradient(145deg,rgba(6,59,54,.88),rgba(3,30,42,.89));backdrop-filter:blur(13px)}.hunt-mini>span{font-size:21px}.hunt-mini strong,.hunt-mini small{display:block}.hunt-mini strong{font-size:10px}.hunt-mini small{font-size:8px;color:#a8e4cf}

/* stronger desktop layout without blocking gameplay */
.quick-menu{max-height:calc(100dvh - 120px);overflow:auto;scrollbar-width:none}.quick-menu::-webkit-scrollbar{display:none}.game-panel{max-height:min(88dvh,820px);overflow:auto;overscroll-behavior:contain}.panel-backdrop{height:100dvh}.auth-card{width:min(430px,94vw)}

/* mobile portrait */
@media (max-width:760px){
  .top-hud{top:max(5px,env(safe-area-inset-top));right:6px;left:6px;grid-template-columns:auto 1fr;gap:5px}.profile-chip{padding:4px 7px 4px 4px}.mini-avatar{width:40px;height:40px}.profile-chip strong{font-size:11px}.profile-chip small{font-size:8px}.currency-row{justify-self:end;gap:3px}.currency-row span{font-size:9px;padding:4px 6px}.currency-row .membership-chip,.currency-row .boost-chip{display:none}.status-row{display:none}
  .quick-menu{top:58px;right:6px;grid-template-columns:repeat(2,43px);gap:4px;padding:4px;border-radius:14px}.quick-menu button{width:43px;min-height:41px;border-radius:11px}.quick-menu button svg{width:16px}.quick-menu button span{font-size:7px}
  .voice-pill{top:auto;bottom:164px;left:8px;padding:5px 8px}.voice-pill>svg{width:16px}.voice-pill b{font-size:8px}
  .public-voice-feed{top:58px;left:6px;width:min(190px,47vw)}.public-voice-item{padding:5px 6px}.public-voice-item small{display:none}
  .controls{right:8px;bottom:max(68px,calc(58px + env(safe-area-inset-bottom)));gap:5px}.joystick{width:92px;height:92px}.joystick-knob{width:40px;height:40px}.swim-controls{gap:5px}.swim-controls button{width:40px;height:40px}
  .speech-compose{bottom:max(8px,env(safe-area-inset-bottom));width:min(96vw,520px);grid-template-columns:minmax(0,1fr) 38px 38px;padding:5px;border-radius:14px}.speech-compose input{padding:8px 10px;font-size:10px}.speech-compose button{border-radius:10px}
  .emote-dock{left:7px;right:auto;bottom:max(68px,calc(58px + env(safe-area-inset-bottom)));transform:none;max-width:calc(100vw - 160px);overflow-x:auto}.emote-dock button{flex:0 0 29px;width:29px;height:29px;font-size:15px}.emote-dock button:nth-child(n){display:block}
  .race-mini,.hunt-mini{left:7px;top:auto;bottom:116px;max-width:170px;padding:6px 8px}.hunt-mini{bottom:151px}.race-mini strong,.hunt-mini strong{font-size:8px}.race-mini small,.hunt-mini small{font-size:7px}
  .game-panel{width:calc(100vw - 10px);max-height:calc(100dvh - 10px);padding:15px 10px 18px;border-radius:18px}.panel-backdrop{padding:5px;align-items:center}.challenge-grid{grid-template-columns:1fr}.challenge-card{min-height:140px}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-preview.pro-preview{height:200px}
  .world-speech{max-width:165px;font-size:10px;padding:6px 9px}
}

/* landscape is the primary phone play mode */
@media (max-height:560px) and (orientation:landscape){
  .top-hud{top:max(3px,env(safe-area-inset-top));right:max(5px,env(safe-area-inset-right));left:max(5px,env(safe-area-inset-left));display:flex;align-items:flex-start}.profile-chip{flex:0 0 auto}.mini-avatar{width:35px;height:35px}.profile-chip strong{font-size:9px}.profile-chip small{font-size:7px}.currency-row{margin-inline:auto;gap:3px;flex-wrap:nowrap}.currency-row span{font-size:8px;padding:3px 5px}.currency-row .membership-chip,.currency-row .boost-chip{display:none}.status-row{display:none}
  .quick-menu{top:48px;right:max(5px,env(safe-area-inset-right));grid-template-columns:repeat(2,38px);gap:3px;padding:3px;max-height:calc(100dvh - 56px)}.quick-menu button{width:38px;min-height:35px;padding:3px;border-radius:10px}.quick-menu button svg{width:14px;height:14px}.quick-menu button span{font-size:6px;line-height:1.1}
  .controls{right:max(6px,env(safe-area-inset-right));bottom:max(7px,env(safe-area-inset-bottom));gap:4px}.joystick{width:82px;height:82px}.joystick-knob{width:35px;height:35px}.swim-controls button{width:35px;height:35px}.swim-controls button svg{width:17px}
  .speech-compose{bottom:max(5px,env(safe-area-inset-bottom));width:min(43vw,420px);grid-template-columns:minmax(100px,1fr) 34px 34px;padding:4px;gap:4px}.speech-compose input{padding:6px 8px;font-size:9px}.speech-compose button{font-size:14px}
  .emote-dock{bottom:max(48px,calc(43px + env(safe-area-inset-bottom)));left:50%;right:auto;transform:translateX(-50%);padding:3px;gap:2px;max-width:42vw;overflow-x:auto}.emote-dock button{width:27px;height:27px;flex:0 0 27px;font-size:14px}.emote-dock button:nth-child(n){display:block}
  .voice-pill{left:max(5px,env(safe-area-inset-left));top:48px;bottom:auto;padding:4px 6px}.voice-pill>svg{width:14px}.voice-pill b{font-size:7px}.public-voice-feed{top:82px;left:max(5px,env(safe-area-inset-left));width:170px}.public-voice-item{padding:4px 6px}.public-voice-item>span{width:24px;height:24px}.public-voice-item b{font-size:8px}.public-voice-item small{display:none}
  .race-mini{left:max(5px,env(safe-area-inset-left));top:auto;bottom:7px;max-width:150px;padding:5px 7px}.hunt-mini{left:max(5px,env(safe-area-inset-left));top:auto;bottom:45px;max-width:150px;padding:5px 7px}
  .panel-backdrop{padding:4px;align-items:center}.game-panel{width:min(94vw,1100px);max-height:94dvh;padding:13px 15px;border-radius:17px}.panel-title{margin-bottom:8px}.panel-title h2{font-size:15px}.panel-title p{font-size:8px}.item-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.character-preview.pro-preview{height:150px}.character-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.character-grid button{min-height:54px}.challenge-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.challenge-card{min-height:130px;padding:9px}.challenge-card p{font-size:8px}.challenge-card h3{font-size:11px}.challenge-icon{font-size:21px}.admin-panel-shell{width:97vw;max-height:96dvh}.auth-shell{padding:5px}.auth-card{width:min(620px,92vw);padding:10px 14px}.brand-orb{width:38px;height:38px;margin-bottom:4px}.brand-orb svg{width:22px}.auth-card h1{font-size:27px;margin:3px 0}.auth-sub,.auth-features{display:none}.auth-tabs{margin:6px 0}.auth-tabs button{padding:6px}.auth-form{gap:6px}.auth-form label{font-size:9px}.auth-form input{padding:7px 9px}.primary-btn{padding:8px 12px}.form-grid{gap:6px}
}

@media (max-width:390px){.currency-row .fish-wallet,.currency-row .gold-fish-wallet{display:none}.quick-menu{grid-template-columns:repeat(2,40px)}.quick-menu button{width:40px}.speech-compose{width:96vw}.world-speech{max-width:140px}}

/* conventional mobile controls: movement left, vertical swim right */
@media (max-width:760px){
  .controls{left:max(8px,env(safe-area-inset-left));right:auto;bottom:max(66px,calc(58px + env(safe-area-inset-bottom)))}
  .swim-controls{position:fixed;right:max(8px,env(safe-area-inset-right));bottom:max(70px,calc(62px + env(safe-area-inset-bottom)));z-index:24}
  .emote-dock{left:50%;right:auto;transform:translateX(-50%);bottom:max(68px,calc(60px + env(safe-area-inset-bottom)));max-width:calc(100vw - 235px)}
}
@media (max-height:560px) and (orientation:landscape){
  .controls{left:max(7px,env(safe-area-inset-left));right:auto;bottom:max(6px,env(safe-area-inset-bottom))}
  .swim-controls{position:fixed;right:max(7px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));z-index:24}
  .emote-dock{left:50%;right:auto;transform:translateX(-50%);bottom:max(46px,calc(41px + env(safe-area-inset-bottom)));max-width:38vw}
}

/* ================= QAA AL HAMOUR v3.7 — voice, Arabic bubbles, combat, responsive ================= */
.world-speech{
  width:max-content!important;max-width:min(300px,72vw)!important;min-width:72px!important;
  direction:rtl!important;unicode-bidi:plaintext!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;hyphens:none!important;
  text-align:right!important;line-height:1.65!important;padding:8px 13px!important;
}
.world-speech *{writing-mode:horizontal-tb!important;direction:rtl!important}
.arena-neon-sign{padding:7px 13px;border:1px solid rgba(255,94,110,.7);border-radius:999px;background:rgba(38,8,20,.9);color:#ffd7dd;font:900 12px "Cairo",sans-serif;white-space:nowrap;box-shadow:0 0 26px rgba(255,44,82,.5)}
.combat-world-hp{position:relative;width:88px;height:12px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(15,9,18,.8);overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.28)}
.combat-world-hp span{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#ff375f,#ff9c5b);transition:width .18s linear}.combat-world-hp b{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:800 7px "Cairo";text-shadow:0 1px 2px #000}
.combat-menu-btn{border-color:rgba(255,85,108,.42)!important;background:linear-gradient(145deg,rgba(107,20,45,.94),rgba(55,12,28,.94))!important;box-shadow:0 0 20px rgba(255,44,82,.16)}
.combat-hud{position:fixed;left:50%;top:78px;transform:translateX(-50%);z-index:24;display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid rgba(255,96,117,.28);border-radius:13px;background:rgba(35,8,22,.84);backdrop-filter:blur(13px)}
.combat-hud>div{display:flex;align-items:center;gap:4px;font:800 9px "Cairo"}.combat-hud svg{width:15px;height:15px;color:#ff6b82}.combat-hud button{border:0;border-radius:9px;padding:6px 9px;background:#c92f50;color:#fff;font:900 9px "Cairo"}
.combat-feed{position:fixed;left:50%;top:118px;transform:translateX(-50%);z-index:23;width:min(420px,88vw);display:grid;gap:4px;pointer-events:none}.combat-feed>div{padding:5px 9px;border-radius:9px;background:rgba(25,7,18,.75);border:1px solid rgba(255,108,128,.16);font:800 8px "Cairo";text-align:center}
.combat-panel-shell{width:min(980px,94vw)}.combat-summary{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 14px}.combat-summary span{padding:7px 10px;border:1px solid rgba(255,113,130,.16);border-radius:10px;background:rgba(88,20,39,.22);font-size:10px}.weapon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.weapon-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;align-items:center;padding:10px;border-radius:14px;border:1px solid rgba(133,217,242,.12);background:rgba(4,31,47,.72)}.weapon-card.selected{border-color:rgba(255,101,123,.55);box-shadow:0 0 20px rgba(255,55,91,.12)}.weapon-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.06);font-size:23px}.weapon-card b,.weapon-card small{display:block}.weapon-card small{font-size:8px;color:#a9c7d4;line-height:1.5}.weapon-card button,.fighter-list button{grid-column:1/-1;border:0;border-radius:9px;padding:7px;background:#a62748;color:#fff;font:900 9px "Cairo"}.fighter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.fighter-list article{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px;border:1px solid rgba(255,110,129,.13);border-radius:12px;background:rgba(34,11,26,.48)}.fighter-list article.nearest{border-color:rgba(255,199,89,.5)}.fighter-list b,.fighter-list small{display:block}.fighter-list small{font-size:8px;color:#c9b8bf}.fighter-list button{grid-column:auto;white-space:nowrap}
.challenge-grid-large{grid-template-columns:repeat(4,minmax(0,1fr))}.arena-challenge{border-color:rgba(255,83,111,.24)!important;background:radial-gradient(circle at 90% 0,rgba(255,70,102,.14),transparent 38%),linear-gradient(145deg,rgba(71,11,35,.66),rgba(20,12,32,.88))!important}
.voice-pill.listening,.voice-pill{user-select:none}.weapon-bag-note{display:block;padding:6px 7px;border-radius:8px;background:rgba(255,84,108,.08);color:#ffb2bf;font-size:8px;text-align:center}

@media (max-width:900px){.challenge-grid-large{grid-template-columns:repeat(2,minmax(0,1fr))}.weapon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .world-speech{max-width:min(230px,70vw)!important;min-width:64px!important;font-size:10px!important;padding:6px 9px!important}
  .combat-hud{top:56px;max-width:55vw;gap:4px;padding:4px 6px}.combat-hud>div{font-size:7px}.combat-hud button{font-size:7px;padding:4px 6px}.combat-feed{top:88px;width:52vw}.combat-feed>div{font-size:7px}
  .challenge-grid-large{grid-template-columns:1fr}.weapon-grid,.fighter-list{grid-template-columns:1fr}.combat-panel-shell{width:calc(100vw - 10px)}
  .quick-menu{max-height:calc(100dvh - 122px)}
  .speech-compose input{min-width:0;direction:rtl;text-align:right}.speech-compose{z-index:31}
}
@media (max-height:560px) and (orientation:landscape){
  .top-hud{max-width:calc(100vw - 12px)}
  .combat-hud{top:45px;max-width:44vw}.combat-feed{top:76px;width:42vw}
  .speech-compose{left:50%;right:auto;transform:translateX(-50%);width:min(46vw,430px)}
  .quick-menu{max-height:calc(100dvh - 52px)}
  .world-speech{max-width:min(250px,46vw)!important;font-size:9px!important}
  .combat-panel-shell{width:96vw;max-height:95dvh}.weapon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fighter-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .challenge-grid-large{grid-template-columns:repeat(4,minmax(0,1fr))}.challenge-card{min-height:120px}
}
@media (max-width:390px){.world-speech{max-width:190px!important}.combat-hud{max-width:62vw}.combat-hud .combat-weapon-chip{display:none}}

/* ================= QAA AL HAMOUR v3.8 — GRAND ARENA + HOUSES MARKET ================= */
.house-sign{min-width:150px;max-width:230px;display:grid;grid-template-columns:38px 1fr;gap:4px 8px;align-items:center;padding:8px 11px;border:1px solid rgba(168,235,255,.35);border-radius:14px;background:rgba(3,28,44,.9);box-shadow:0 10px 35px rgba(0,0,0,.34);backdrop-filter:blur(10px);direction:rtl;text-align:right}.house-sign img,.house-sign>span{grid-row:1/3;width:38px;height:38px;border-radius:10px;object-fit:cover;display:grid;place-items:center;background:#0c415e;font-size:22px}.house-sign b{font:900 11px "Cairo";white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.house-sign small{font:700 8px "Cairo";color:#a8d5e6}.house-kiosk-btn{border:1px solid rgba(117,231,255,.36);border-radius:999px;padding:7px 12px;background:rgba(4,42,61,.92);color:#fff;font:900 9px "Cairo";box-shadow:0 7px 24px rgba(0,0,0,.25)}
.house-near-hud{left:50%;bottom:94px;transform:translateX(-50%);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;width:min(450px,80vw);padding:8px 10px;border:1px solid rgba(105,226,255,.32);border-radius:16px;background:rgba(3,34,52,.9);backdrop-filter:blur(13px);box-shadow:0 16px 36px rgba(0,0,0,.26)}.house-near-hud>svg{color:#7fe7ff}.house-near-hud b,.house-near-hud small{display:block}.house-near-hud b{font-size:10px}.house-near-hud small{font-size:8px;color:#9dc7d6}.house-near-hud button,.fish-catch-hud button{border:0;border-radius:10px;padding:7px 10px;background:linear-gradient(135deg,#55dcff,#218bb2);color:#032134;font:900 9px "Cairo"}
.fish-catch-hud{left:50%;bottom:145px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid rgba(109,238,181,.35);border-radius:14px;background:rgba(4,49,45,.9);backdrop-filter:blur(12px)}.fish-catch-hud b{font-size:9px}.fish-catch-hud small{color:#adf4d2;font-size:8px}.fish-catch-hud.golden{border-color:rgba(255,220,91,.55);background:linear-gradient(135deg,rgba(80,55,5,.92),rgba(36,26,5,.92));box-shadow:0 0 28px rgba(255,203,53,.18)}.fish-catch-hud.golden button{background:linear-gradient(135deg,#ffe37a,#e9a926)}
.house-panel-shell{width:min(1120px,96vw)}.house-loading{display:flex;align-items:center;justify-content:center;gap:8px;min-height:240px}.house-buy-card{max-width:620px;margin:auto;text-align:center;padding:28px;border:1px solid rgba(111,226,255,.2);border-radius:24px;background:radial-gradient(circle at 50% 0,rgba(58,201,236,.12),transparent 48%),rgba(255,255,255,.025)}.house-big-icon{font-size:68px;animation:floaty 3s ease-in-out infinite}.house-buy-card h3{font-size:25px;margin:8px}.house-buy-card p{color:#a7c9d6;line-height:1.8}.house-buy-card strong{display:block;font-size:22px;color:#ffe17e;margin:12px}.house-store-hero{display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,rgba(37,117,145,.16),rgba(255,255,255,.02));margin-bottom:14px}.house-store-hero>img,.house-logo-placeholder{width:92px;height:92px;border-radius:20px;object-fit:cover;background:#0a3b55;display:grid;place-items:center;font-size:42px}.house-store-hero h3{margin:0;font-size:20px}.house-store-hero p{margin:4px 0;color:#9ec2d0;font-size:11px}.house-store-hero button{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:12px;padding:9px 11px;background:#092c42;color:#fff}.house-owner-editor{padding:15px;border:1px solid rgba(112,226,255,.2);border-radius:20px;background:rgba(1,21,34,.38);margin:14px 0}.house-owner-editor>h3,.house-product-editor>h3{margin:0 0 10px}.house-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.house-form-grid label{display:grid;gap:5px;font-size:10px}.house-form-grid input,.house-form-grid textarea,.house-product-editor input,.house-product-editor textarea{width:100%;border:1px solid var(--line);border-radius:11px;background:#061f31;color:#fff;padding:9px 10px;outline:none}.house-form-grid textarea,.house-product-editor textarea{min-height:70px;resize:vertical}.house-check{display:flex!important;align-items:center;gap:7px;margin:10px 0;color:#cceaf4}.house-check input{width:auto}.house-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0}.upload-card{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;border:1px dashed rgba(109,226,255,.35);border-radius:12px;background:rgba(72,188,221,.06);color:#c9f4ff;font-size:10px;cursor:pointer}.upload-card input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-card.compact{padding:8px}.product-editor-actions{display:flex;gap:8px;align-items:stretch;margin-top:8px}.product-editor-actions>*{flex:1}.house-product-editor{margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}.house-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.house-product-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:9px;padding:10px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025);min-height:112px}.house-product-card.selected{border-color:rgba(89,226,175,.52);box-shadow:inset 0 0 0 1px rgba(89,226,175,.08)}.house-product-card>img,.product-image-placeholder{width:80px;height:80px;border-radius:13px;object-fit:cover;background:#092d43;display:grid;place-items:center;font-size:30px}.product-card-copy b,.product-card-copy small,.product-card-copy strong{display:block}.product-card-copy b{font-size:12px}.product-card-copy small{font-size:8px;color:#95b9c8;line-height:1.5;margin:3px 0}.product-card-copy strong{font-size:11px;color:#ffe38a}.qty-picker,.owner-product-actions{grid-column:1/-1;display:grid;grid-template-columns:38px 1fr 38px;gap:5px}.qty-picker button,.owner-product-actions button{border:0;border-radius:9px;background:#0f6684;color:#fff;padding:6px}.qty-picker span{display:grid;place-items:center;background:#071e2d;border-radius:9px;font-weight:900}.owner-product-actions{grid-template-columns:1fr 42px}.owner-product-actions .danger{background:#7d2638}.house-cart{position:sticky;bottom:-1px;margin-top:14px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(64,229,142,.32);border-radius:16px;background:rgba(4,39,38,.96);backdrop-filter:blur(15px);box-shadow:0 -10px 35px rgba(0,0,0,.26)}.house-cart>div{display:flex;gap:7px;align-items:center}.whatsapp-btn{display:flex;align-items:center;gap:6px;border:0;border-radius:11px;padding:10px 14px;background:#21c96b;color:#052916;font-weight:900}.voice-upload-quick{border-color:rgba(147,109,255,.3)!important}.combat-fire-btn{background:linear-gradient(135deg,#ff4d6f,#a6113d)!important;box-shadow:0 0 20px rgba(255,64,102,.2)}
/* larger visual hierarchy for wide screens */
@media (min-width:1200px){.game-panel.house-panel-shell{width:min(1220px,92vw)}.house-products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:900px){.house-products{grid-template-columns:repeat(2,minmax(0,1fr))}.house-store-hero{grid-template-columns:70px 1fr}.house-store-hero>img,.house-logo-placeholder{width:70px;height:70px}.house-store-hero>button{grid-column:1/-1;justify-content:center}.house-form-grid{grid-template-columns:1fr}}
@media (max-width:760px){.house-near-hud{bottom:max(113px,calc(104px + env(safe-area-inset-bottom)));width:min(62vw,390px);left:50%}.fish-catch-hud{bottom:max(158px,calc(150px + env(safe-area-inset-bottom)));max-width:62vw}.house-near-hud small{display:none}.house-near-hud button,.fish-catch-hud button{padding:5px 7px;font-size:7px}.house-panel-shell{width:calc(100vw - 8px);max-height:96dvh}.house-products{grid-template-columns:1fr 1fr}.house-product-card{grid-template-columns:58px 1fr;padding:7px;min-height:88px}.house-product-card>img,.product-image-placeholder{width:58px;height:58px}.house-product-card b{font-size:9px}.house-product-card small{font-size:7px}.house-media-grid{grid-template-columns:1fr}.house-cart{padding:7px;font-size:8px}.whatsapp-btn{padding:7px 9px;font-size:8px}.house-store-hero{padding:9px}.quick-menu{overflow-y:auto;scrollbar-width:none}}
@media (max-height:560px) and (orientation:landscape){.house-near-hud{bottom:5px;left:50%;width:min(42vw,390px)}.fish-catch-hud{bottom:49px;left:50%;max-width:42vw}.house-panel-shell{width:97vw;max-height:96dvh}.house-products{grid-template-columns:repeat(4,minmax(0,1fr))}.house-product-card{grid-template-columns:52px 1fr}.house-product-card>img,.product-image-placeholder{width:52px;height:52px}.house-owner-editor{padding:9px}.house-store-hero{grid-template-columns:58px 1fr auto}.house-store-hero>img,.house-logo-placeholder{width:58px;height:58px}}
@media (max-width:430px){.house-products{grid-template-columns:1fr}.house-near-hud{width:70vw}.fish-catch-hud{max-width:70vw}.product-editor-actions{flex-direction:column}}
.map-house{position:absolute;transform:translate(-50%,-50%);width:18px;height:18px;border-radius:7px;display:grid;place-items:center;background:#153d53;border:1px solid rgba(126,230,255,.45);color:#9feaff;font-size:11px;box-shadow:0 4px 10px rgba(0,0,0,.28)}

/* ================= QAA AL HAMOUR v3.9 — PERFORMANCE + SPATIAL WORLD ================= */
.mini-avatar-lite{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:24px;box-shadow:inset 0 1px rgba(255,255,255,.32),0 8px 20px rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.16)}
.navigation-hud{left:50%;top:92px;transform:translateX(-50%);min-width:210px;display:flex;align-items:center;gap:9px;padding:8px 10px;border:1px solid rgba(255,225,93,.42);border-radius:16px;background:rgba(34,31,8,.9);backdrop-filter:blur(12px);box-shadow:0 12px 35px rgba(0,0,0,.28)}.navigation-hud .nav-arrow{width:38px;height:38px;border:0;border-radius:50%;background:#ffe36b;color:#332607;font-size:21px;display:grid;place-items:center;transition:transform .14s linear}.navigation-hud b,.navigation-hud small{display:block}.navigation-hud b{font-size:10px}.navigation-hud small{color:#ffeaa0;font-size:9px}.navigation-hud .nav-close{margin-inline-start:auto;border:0;background:transparent;color:#fff;font-size:20px}
.world-map.interactive button{cursor:pointer}.map-place,.map-house,.map-race,.map-ad{border:0}.map-place:active,.map-house:active,.map-race:active,.map-ad:active{transform:translate(-50%,-50%) scale(.88)}.map-house.sale{background:#14384c}.map-house.owned{background:#175c47;border-color:#67e8a5}.map-ad{position:absolute;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:8px;display:grid;place-items:center;background:#713d10;color:#ffe08a;font-size:12px;box-shadow:0 4px 12px #0006}.map-current-route{display:flex;align-items:center;gap:8px;padding:8px 10px;margin-bottom:10px;border:1px solid rgba(255,224,92,.28);border-radius:12px;background:#382d0d}.map-current-route b{flex:1;font-size:11px}.map-current-route button{border:0;border-radius:9px;padding:6px 9px;background:#6d5220;color:#fff;font-size:9px}
.waypoint-world,.world-ad-card{padding:7px 10px;border:1px solid rgba(255,226,98,.35);border-radius:12px;background:rgba(4,29,43,.9);color:#fff;font:900 9px "Cairo";white-space:nowrap}.world-ad-card{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:3px 8px;max-width:190px;border-color:rgba(100,229,255,.38)}.world-ad-card img{grid-row:1/3;width:40px;height:40px;border-radius:8px;object-fit:cover}.world-ad-card b{font-size:9px;overflow:hidden;text-overflow:ellipsis}.world-ad-card small{font-size:7px;color:#91dced}
.my-houses-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.my-house-card{display:grid;grid-template-columns:64px 1fr;gap:9px;padding:10px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.03)}.my-house-card>img,.house-thumb{width:64px;height:64px;border-radius:13px;object-fit:cover;background:#0b3850;display:grid;place-items:center;font-size:29px}.my-house-card b,.my-house-card small{display:block}.my-house-card small{font-size:8px;color:#91bdcd;margin-top:4px}.my-house-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:6px}.my-house-actions button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:9px;background:#0e5772;color:#fff;padding:7px;font-size:9px}
.offer-badge{position:absolute;top:7px;left:7px;background:#ff4f76;color:#fff;border-radius:999px;padding:3px 7px;font-size:7px;font-weight:900}.house-product-card{position:relative}.product-card-copy del{color:#7897a3;font-size:8px;margin-inline-end:5px}.npc-editor,.ad-editor{margin-top:15px;padding:13px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025)}.npc-editor h3,.ad-editor h3{display:flex;align-items:center;gap:7px;margin:0 0 9px}.npc-editor select,.ad-editor select,.house-form-grid select{width:100%;border:1px solid var(--line);border-radius:11px;background:#061f31;color:#fff;padding:9px 10px}.active-ads{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.active-ads span{padding:6px 8px;border-radius:999px;background:#173d4d;font-size:8px;color:#bceaff}
.voice-pill{max-width:210px}.voice-pill small{line-height:1.35}.joystick.smooth .joystick-knob{transition:box-shadow .12s ease}.joystick.smooth:active .joystick-knob{box-shadow:0 0 32px rgba(81,210,248,.65)}
@media (max-width:900px){
  .top-hud{top:max(5px,env(safe-area-inset-top));right:6px;left:6px;gap:5px;grid-template-columns:auto 1fr auto}.profile-chip{padding:4px 6px;border-radius:13px;gap:5px}.mini-avatar-lite{width:36px;height:36px;border-radius:10px;font-size:18px}.profile-chip strong{font-size:10px}.profile-chip small{font-size:7px}.currency-row{gap:3px}.currency-row span,.status-row span{padding:4px 6px;font-size:8px}.status-row{gap:3px}.status-row span:nth-child(n+3){display:none}
  .quick-menu{top:58px;right:5px;gap:4px;max-height:calc(100dvh - 120px);overflow-y:auto;scrollbar-width:none}.quick-menu button{width:53px;min-height:48px;border-radius:13px}.quick-menu svg{width:17px;height:17px}.quick-menu span{font-size:7px}
  .controls{right:8px;bottom:max(8px,env(safe-area-inset-bottom));gap:6px}.joystick{width:104px;height:104px}.joystick-knob{width:46px;height:46px}.swim-controls button{width:45px;height:45px}
  .emote-dock{left:8px;transform:none;bottom:max(8px,env(safe-area-inset-bottom));max-width:42vw;overflow-x:auto}.emote-dock button{min-width:31px;width:31px;height:31px;font-size:16px}
  .speech-compose{bottom:max(8px,env(safe-area-inset-bottom));width:min(46vw,360px)}
  .voice-pill{left:6px;top:58px;max-width:160px;padding:6px 8px}.voice-pill b{font-size:8px}.voice-pill small{font-size:6px}
  .navigation-hud{top:56px;min-width:165px;max-width:44vw;padding:5px 7px}.navigation-hud .nav-arrow{width:31px;height:31px;font-size:17px}.navigation-hud b{font-size:8px}.navigation-hud small{font-size:7px}
  .my-houses-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-panel{padding:16px 12px 14px;border-radius:20px}.panel-title{margin-bottom:12px}.panel-title h2{font-size:16px}.panel-title p{font-size:9px}
}
@media (max-width:620px){.my-houses-grid{grid-template-columns:1fr}.house-products{grid-template-columns:1fr}.public-voice-feed{max-width:42vw}.navigation-hud{max-width:52vw}}
@media (max-height:560px) and (orientation:landscape){
  .top-hud{top:3px}.quick-menu{top:44px;grid-template-columns:repeat(2,44px);right:4px}.quick-menu button{width:44px;min-height:39px;border-radius:10px}.quick-menu span{font-size:6px}.quick-menu svg{width:14px;height:14px}
  .controls{right:5px;bottom:5px}.joystick{width:90px;height:90px}.joystick-knob{width:40px;height:40px}.swim-controls button{width:39px;height:39px}.speech-compose{bottom:5px;width:min(38vw,350px)}.emote-dock{bottom:5px;left:5px;max-width:35vw}.voice-pill{top:44px}.navigation-hud{top:44px;min-width:150px}.house-near-hud{bottom:49px}.fish-catch-hud{bottom:88px}
}


/* ===== v3.10 TURBO PERFORMANCE ===== */
.scene-layer,.scene-layer canvas{contain:strict;touch-action:none;}
.scene-layer canvas{display:block;will-change:transform;}
.joystick-knob{will-change:transform;}
@media (max-width:900px),(pointer:coarse){
  .hud,.panel,.quick-menu,.top-hud,.house-panel,.modal-card,.map-panel,.admin-panel{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    box-shadow:none!important;
  }
  .auth-ambient{display:none!important;}
  *{scroll-behavior:auto!important;}
  .world-label,.house-sign,.world-ad-card{filter:none!important;box-shadow:none!important;}
  .quick-menu button,.hud button,.joystick,.joystick-knob{transition:none!important;}
}
@media (max-width:700px){
  .world-ad-card img,.house-sign img{max-width:42px!important;max-height:42px!important;}
}
/* Desktop GPU saving too: keep glass look through background, not live backdrop blur. */
.game-shell .hud,.game-shell .panel,.game-shell .quick-menu,.game-shell .top-hud,.game-shell .house-panel,.game-shell .map-panel,.game-shell .admin-panel{
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}


/* ===== v3.11 ULTRA SMOOTH: GPU + HUD LAYOUT ===== */
.turbo-mode .hud,.turbo-mode .top-hud,.turbo-mode .quick-menu,.turbo-mode .profile-chip,.turbo-mode .speech-compose,.turbo-mode .emote-dock,.turbo-mode .voice-pill,.turbo-mode .navigation-hud,.turbo-mode .house-near-hud,.turbo-mode .fish-catch-hud{
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;filter:none!important;
}
.turbo-mode .quick-menu button,.turbo-mode .profile-chip,.turbo-mode .currency-row span,.turbo-mode .status-row span,.turbo-mode .speech-compose,.turbo-mode .emote-dock,.turbo-mode .controls button{
  box-shadow:none!important;transition:none!important;
}
.turbo-mode .scene-layer{isolation:isolate;contain:layout paint size style;}
.turbo-mode .scene-layer canvas{image-rendering:auto;transform:translateZ(0);}
.turbo-mode .quick-menu,.turbo-mode .controls,.turbo-mode .speech-compose,.turbo-mode .emote-dock{contain:layout paint style;}
/* Keep text composer and emotes in separate physical zones. */
.turbo-mode .emote-dock{left:12px!important;right:auto!important;bottom:12px!important;transform:none!important;max-width:min(310px,30vw);overflow-x:auto;overscroll-behavior:contain;scrollbar-width:none;}
.turbo-mode .speech-compose{left:50%!important;right:auto!important;bottom:12px!important;transform:translateX(-50%)!important;width:min(520px,48vw)!important;}
.turbo-mode .speech-compose input{min-width:0!important;direction:rtl;text-align:right;}
.turbo-mode .emote-dock::-webkit-scrollbar{display:none;}
@media (max-width:900px),(pointer:coarse){
  .turbo-mode .emote-dock{left:6px!important;bottom:max(62px,calc(56px + env(safe-area-inset-bottom)))!important;max-width:min(68vw,300px)!important;padding:5px!important;gap:4px!important;}
  .turbo-mode .emote-dock button{min-width:30px!important;width:30px!important;height:30px!important;font-size:15px!important;}
  .turbo-mode .speech-compose{bottom:max(6px,env(safe-area-inset-bottom))!important;width:min(72vw,440px)!important;grid-template-columns:minmax(0,1fr) 36px 36px!important;}
  .turbo-mode .speech-compose input{font-size:9px!important;padding:7px 8px!important;}
  .turbo-mode .quick-menu button{background:rgba(4,35,53,.94)!important;}
  .turbo-mode .profile-chip,.turbo-mode .currency-row span,.turbo-mode .status-row span{background:rgba(4,35,53,.94)!important;}
}
@media (max-height:560px) and (orientation:landscape){
  .turbo-mode .emote-dock{left:5px!important;bottom:48px!important;max-width:29vw!important;}
  .turbo-mode .speech-compose{bottom:5px!important;width:min(46vw,410px)!important;}
  .turbo-mode .controls{bottom:5px!important;}
}
@media (max-width:430px) and (orientation:portrait){
  .turbo-mode .speech-compose{width:calc(100vw - 12px)!important;}
  .turbo-mode .emote-dock{bottom:max(60px,calc(55px + env(safe-area-inset-bottom)))!important;max-width:calc(100vw - 145px)!important;}
}

/* ===== v3.12 POLISHED MOBILE + CLEAR AVATARS ===== */
.social-dock{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:34;display:flex;align-items:center;gap:7px;width:min(690px,58vw);padding:7px;border:1px solid rgba(116,225,255,.22);border-radius:20px;background:linear-gradient(145deg,rgba(3,31,47,.96),rgba(3,20,33,.94));box-shadow:0 12px 32px rgba(0,0,0,.25);contain:layout paint style}
.social-dock .speech-compose{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;flex:1;width:auto!important;display:grid;grid-template-columns:minmax(0,1fr) 38px 38px!important;gap:6px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;contain:layout paint style}
.social-dock .speech-compose input{height:40px;min-width:0;border:1px solid rgba(135,225,255,.12);outline:0;background:rgba(12,56,76,.72);color:#fff;border-radius:13px;padding:8px 12px;font:700 11px "Cairo";direction:rtl;text-align:right}
.social-dock .speech-compose input:focus{border-color:rgba(92,221,255,.52);background:rgba(13,65,88,.84)}
.social-dock .speech-compose input::placeholder{color:#82a9b8}
.social-dock button{border:1px solid rgba(129,228,255,.13);color:#fff;cursor:pointer}
.emote-toggle,.speech-send,.speech-mic{width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#126b88,#103f59);font-size:17px;font-weight:900}
.emote-toggle{flex:0 0 40px;background:linear-gradient(145deg,#174a65,#0a334a)}
.speech-send{color:#9af0ff}.speech-mic.recording{background:linear-gradient(145deg,#c63b59,#761d37);animation:recordPulse 1s infinite}
.emote-popover{position:absolute;left:0;bottom:calc(100% + 9px);display:flex;flex-wrap:wrap;gap:6px;width:min(370px,72vw);padding:7px;border:1px solid rgba(122,226,255,.2);border-radius:16px;background:rgba(3,27,42,.97);box-shadow:0 12px 28px rgba(0,0,0,.28)}
.emote-popover button{width:36px;height:36px;border-radius:11px;background:rgba(12,59,80,.86);font-size:19px;transition:transform .12s ease,background .12s ease}.emote-popover button:hover{transform:translateY(-2px);background:rgba(21,83,107,.95)}
.voice-mini{position:absolute;top:84px;left:10px;z-index:25;display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid rgba(105,239,184,.26);border-radius:999px;background:rgba(5,43,47,.9);font:900 9px "Cairo";color:#9ef1cd}.voice-mini svg{width:15px;height:15px}.voice-mini.talking{background:rgba(14,93,72,.94);border-color:rgba(111,255,196,.48);animation:voicePulse 1s ease-in-out infinite}
/* Old separated emote dock is no longer used in v3.12. */
.turbo-mode .social-dock{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important}

@media (max-width:900px),(pointer:coarse){
  .game-shell{--mobile-safe:env(safe-area-inset-bottom)}
  .top-hud{top:max(4px,env(safe-area-inset-top));right:5px;left:5px;grid-template-columns:auto 1fr auto;gap:4px}
  .profile-chip{padding:4px 5px;border-radius:12px;gap:5px}.mini-avatar-lite{width:34px;height:34px;border-radius:9px}.profile-chip strong{font-size:9px}.profile-chip small{display:none}
  .currency-row{gap:3px;flex-wrap:nowrap;overflow:hidden}.currency-row span{padding:4px 6px;font-size:7px;white-space:nowrap}.currency-row span:nth-child(n+4){display:none}
  .status-row{gap:3px}.status-row span{padding:4px 6px;font-size:7px}.status-row span:nth-child(n+2){display:none}
  /* Game-style horizontal action rail instead of tall side stack. */
  .quick-menu{top:50px!important;right:6px!important;left:6px!important;display:flex!important;grid-template-columns:none!important;gap:5px!important;padding:4px!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;scrollbar-width:none;background:rgba(3,25,39,.9)!important;border-radius:15px!important;contain:layout paint style}
  .quick-menu::-webkit-scrollbar{display:none}.quick-menu button{flex:0 0 48px!important;width:48px!important;min-height:43px!important;height:43px!important;border-radius:11px!important;padding:3px!important;scroll-snap-align:start;background:rgba(7,47,67,.95)!important}.quick-menu button svg{width:15px!important;height:15px!important}.quick-menu button span{font-size:6px!important;line-height:1.05!important;white-space:nowrap}
  .voice-mini{top:99px;left:7px;padding:5px 7px;font-size:7px}.voice-mini svg{width:13px;height:13px}
  /* True mobile-game controls: movement left, vertical swim right. */
  .controls{left:0!important;right:0!important;bottom:max(8px,var(--mobile-safe))!important;width:100%!important;height:112px!important;display:block!important;pointer-events:none!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .controls .joystick{position:absolute!important;left:10px!important;right:auto!important;bottom:0!important;width:100px!important;height:100px!important;pointer-events:auto!important;background:radial-gradient(circle,rgba(84,217,255,.17),rgba(3,28,43,.76))!important;border:1px solid rgba(135,230,255,.34)!important}
  .controls .joystick-knob{width:44px!important;height:44px!important}
  .controls .swim-controls{position:absolute!important;right:10px!important;left:auto!important;bottom:4px!important;display:grid!important;gap:7px!important;pointer-events:auto!important}
  .controls .swim-controls button{width:44px!important;height:44px!important;background:rgba(5,42,61,.92)!important;border:1px solid rgba(124,225,255,.24)!important;touch-action:none}
  /* Single professional communication dock. */
  .social-dock{bottom:max(10px,var(--mobile-safe));width:min(56vw,430px);padding:5px;border-radius:16px;gap:5px}
  .social-dock .speech-compose{grid-template-columns:minmax(0,1fr) 34px 34px!important;gap:4px}.social-dock .speech-compose input{height:36px;font-size:8px;padding:6px 8px;border-radius:10px}.emote-toggle,.speech-send,.speech-mic{width:34px;height:36px;border-radius:10px;font-size:14px}.emote-toggle{flex-basis:34px}
  .emote-popover{left:0;bottom:calc(100% + 6px);width:min(300px,68vw);gap:4px;padding:5px;border-radius:13px}.emote-popover button{width:31px;height:31px;border-radius:9px;font-size:16px}
  .public-voice-feed{top:106px!important;left:7px!important;max-width:150px!important}
  .navigation-hud{top:99px!important;max-width:44vw!important}
  .race-mini,.hunt-mini{top:102px!important}
}

@media (max-height:560px) and (orientation:landscape){
  .top-hud{top:2px}.quick-menu{top:42px!important;left:18%!important;right:18%!important;height:43px!important;padding:3px!important}.quick-menu button{flex-basis:43px!important;width:43px!important;height:37px!important;min-height:37px!important}.quick-menu button span{display:none!important}
  .voice-mini{top:44px;left:5px}
  .controls{height:94px!important;bottom:4px!important}.controls .joystick{width:86px!important;height:86px!important;left:7px!important}.controls .joystick-knob{width:38px!important;height:38px!important}.controls .swim-controls{right:7px!important;bottom:1px!important}.controls .swim-controls button{width:39px!important;height:39px!important}
  .social-dock{bottom:5px!important;width:min(52vw,470px)!important}.social-dock .speech-compose input{height:34px!important}.emote-toggle,.speech-send,.speech-mic{height:34px!important}
  .emote-popover{width:min(360px,58vw)}
  .navigation-hud{top:44px!important}.public-voice-feed{top:44px!important}
}

@media (max-width:520px) and (orientation:portrait){
  .quick-menu{top:48px!important}
  .voice-mini{top:96px}
  .social-dock{left:50%;bottom:max(114px,calc(106px + var(--mobile-safe)));width:calc(100vw - 18px)}
  .emote-popover{left:0;width:calc(100vw - 28px);justify-content:center}
  .controls{height:104px!important}.controls .joystick{width:92px!important;height:92px!important}.controls .swim-controls button{width:42px!important;height:42px!important}
  .public-voice-feed{top:96px!important;max-width:130px!important}.navigation-hud{top:96px!important}
}


/* ================= v3.13 ULTRA-LIGHT PAID DISTRICT ================= */
/* Emote menu must be allowed to paint outside the dock. paint containment in v3.12 clipped it. */
.social-dock{contain:layout style!important;overflow:visible!important;width:min(760px,68vw)!important;gap:6px!important;z-index:56!important}
.emote-strip{display:flex;align-items:center;gap:4px;flex:0 0 auto;direction:ltr}
.emote-chip,.emote-more{width:34px;height:36px;border-radius:10px;background:linear-gradient(145deg,rgba(20,81,105,.96),rgba(7,48,68,.96));display:grid;place-items:center;font-size:17px;padding:0;box-shadow:none!important}
.emote-more{font-size:12px;font-weight:900;letter-spacing:1px;color:#aeeeff}
.emote-popover{z-index:90!important;overflow:visible!important;contain:none!important;bottom:calc(100% + 8px)!important}
.social-dock .speech-compose{min-width:0}
.house-sign-top{min-width:128px!important;max-width:210px!important;padding:6px 10px!important;border-radius:13px!important;background:rgba(3,28,42,.92)!important;border:1px solid rgba(103,232,249,.28)!important;box-shadow:0 6px 18px rgba(0,0,0,.24)!important;text-align:center!important}
.house-sign-top b{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.house-sign-top small{font-size:7px!important;white-space:nowrap;color:#a9dbe9!important}
.house-entry-btn{border:1px solid rgba(255,240,140,.52)!important;background:rgba(8,48,63,.94)!important;color:#fff!important;border-radius:999px!important;padding:6px 12px!important;font:800 9px Cairo!important;box-shadow:0 0 0 2px rgba(255,226,106,.1)!important;white-space:nowrap}
/* no legacy separated emote dock */
.emote-dock{display:none!important}

@media (max-width:900px){
  .social-dock{left:50%!important;bottom:max(92px,calc(84px + env(safe-area-inset-bottom)))!important;width:calc(100vw - 16px)!important;padding:5px!important;border-radius:15px!important;gap:4px!important}
  .emote-strip{gap:3px}.emote-chip,.emote-more{width:31px;height:34px;font-size:15px;border-radius:9px}.emote-wide{display:none!important}.emote-more{font-size:11px}
  .social-dock .speech-compose{grid-template-columns:minmax(0,1fr) 34px 34px!important}.social-dock .speech-compose input{height:34px!important;font-size:9px!important}
  .emote-popover{left:0!important;right:0!important;margin:auto;width:min(340px,94vw)!important;justify-content:center!important}
  .house-sign-top{min-width:108px!important;max-width:154px!important;padding:4px 7px!important}.house-sign-top b{font-size:8px!important}.house-sign-top small{font-size:6px!important}
}
@media (max-width:900px) and (orientation:landscape){
  .social-dock{bottom:5px!important;width:min(66vw,640px)!important;max-height:46px!important}
  .emote-chip,.emote-more{width:29px;height:32px}.social-dock .speech-compose input{height:32px!important}
}


/* ===== v3.16 VISUAL STABILITY + LIGHT CHARACTER GARAGE ===== */
.character-preview.pro-preview{height:230px!important;overflow:hidden!important;background:linear-gradient(155deg,#0a3d55,#061f31)!important;border-color:rgba(126,231,255,.24)!important}
.character-preview-stage{position:relative;width:100%;height:100%;overflow:hidden;background:radial-gradient(circle at 50% 28%,color-mix(in srgb,var(--char-a) 22%,transparent),transparent 32%),radial-gradient(circle at 50% 82%,color-mix(in srgb,var(--char-b) 18%,transparent),transparent 40%)}
.character-preview-stage canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.character-preview-name{position:absolute;right:12px;bottom:10px;left:12px;z-index:2;display:flex;align-items:end;justify-content:space-between;gap:8px;pointer-events:none;text-shadow:0 2px 10px #000}
.character-preview-name b{font-size:13px}.character-preview-name small{font-size:8px;color:#b8dce8;max-width:62%;text-align:left}
.character-grid{content-visibility:auto;contain-intrinsic-size:500px}
.character-grid button{content-visibility:auto;contain-intrinsic-size:64px;transform:translateZ(0)}
.character-grid button:hover{transform:none!important}
@media(max-width:900px),(pointer:coarse){.character-preview.pro-preview{height:175px!important}.character-preview-name{right:8px;left:8px;bottom:7px}.character-preview-name b{font-size:11px}.character-preview-name small{font-size:7px}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.character-grid button{min-height:54px!important;padding:7px!important}.character-grid small{font-size:7px!important}}

/* v3.17 - house customization studio */
.house-customizer{margin:14px 0;padding:14px;border:1px solid rgba(126,226,255,.18);border-radius:18px;background:linear-gradient(145deg,rgba(7,40,57,.94),rgba(9,55,73,.82));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.house-customizer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.house-customizer-head h3{margin:0 0 3px}.house-customizer-head small{opacity:.72}.house-level-badge{min-width:58px;height:58px;border-radius:17px;display:grid;place-items:center;font-weight:900;background:linear-gradient(145deg,#ffe77f,#d49d28);color:#2b210a;box-shadow:0 8px 22px rgba(213,157,40,.22)}
.house-color-row{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:10px;align-items:end;margin-bottom:13px}.house-color-row label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800}.house-color-row input[type=color]{width:100%;height:44px;border:0;padding:3px;border-radius:12px;background:#0b2d3b;cursor:pointer}.house-color-preview{height:44px;border-radius:12px;display:grid;place-items:center;font-size:12px;font-weight:900;color:#fff;text-shadow:0 1px 4px #000;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.house-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.house-style-card{min-height:126px;border-radius:15px;border:1px solid rgba(116,211,241,.15);background:rgba(5,31,45,.72);padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;color:#eafcff;transition:transform .16s ease,border-color .16s ease,background .16s ease}.house-style-card:hover{transform:translateY(-2px);border-color:rgba(255,222,105,.55)}.house-style-card.active{background:linear-gradient(145deg,rgba(88,68,18,.72),rgba(28,57,62,.86));border-color:#f4d25f;box-shadow:0 0 0 1px rgba(244,210,95,.16),0 8px 22px rgba(0,0,0,.16)}.house-style-card.locked{opacity:.86}.house-style-icon{font-size:28px}.house-style-card b{font-size:12px}.house-style-card small{font-size:10px;line-height:1.45;opacity:.67;min-height:29px}.house-style-card strong{font-size:11px;color:#ffe477}.house-style-card.owned:not(.active) strong{color:#7fe8bc}
.house-upgrade-row{margin-top:12px;border-top:1px solid rgba(255,255,255,.07);padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.house-upgrade-row>div{display:flex;flex-direction:column}.house-upgrade-row small{opacity:.65}.house-upgrade-row .primary-btn{width:auto;margin:0}.max-level{padding:9px 16px;border-radius:999px;background:linear-gradient(135deg,#ffdf68,#d79d28);color:#2a2108;font-weight:900}
@media(max-width:900px){.house-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.house-color-row{grid-template-columns:1fr 1fr}.house-color-preview{grid-column:1/-1}.house-customizer{padding:11px}.house-style-card{min-height:112px}.house-upgrade-row{align-items:stretch;flex-direction:column}.house-upgrade-row .primary-btn{width:100%}}

/* v3.18 - premium house catalogue */
.house-style-card{position:relative;overflow:hidden;background:linear-gradient(155deg,rgba(5,31,45,.94),rgba(7,50,66,.82));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.house-style-card::after{content:"";position:absolute;inset:auto -28px -38px auto;width:95px;height:95px;border-radius:50%;background:radial-gradient(circle,rgba(87,224,255,.12),transparent 68%);pointer-events:none}
.house-style-tier{position:absolute;top:7px;left:8px;padding:3px 6px;border-radius:999px;font-size:7px;font-weight:900;letter-spacing:.06em;background:rgba(0,0,0,.24);color:#a9dbe8;border:1px solid rgba(255,255,255,.08)}
.house-style-card.tier-rare{border-color:rgba(80,196,255,.30)}.house-style-card.tier-rare .house-style-tier{color:#79d8ff}
.house-style-card.tier-epic{border-color:rgba(184,111,255,.30)}.house-style-card.tier-epic .house-style-tier{color:#d1a0ff}
.house-style-card.tier-legendary{border-color:rgba(255,190,78,.34)}.house-style-card.tier-legendary .house-style-tier{color:#ffd477}
.house-style-card.tier-mythic{border-color:rgba(255,90,156,.36);background:linear-gradient(155deg,rgba(45,18,50,.88),rgba(7,50,66,.84))}.house-style-card.tier-mythic .house-style-tier{color:#ff9ec8}
.house-style-card.active{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(255,219,92,.24),0 12px 28px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.08)}

/* ===== v3.19 Player marketplace / trade hub ===== */
.exchange-world-sign{min-width:220px;padding:10px 16px;border-radius:16px;background:linear-gradient(145deg,rgba(7,35,50,.94),rgba(22,76,103,.94));border:1px solid rgba(245,200,91,.62);box-shadow:0 10px 30px rgba(0,0,0,.28),0 0 24px rgba(245,200,91,.12);color:#fff;text-align:center;white-space:nowrap;pointer-events:none}.exchange-world-sign b{display:block;color:#ffe28a;font-size:15px}.exchange-world-sign small{display:block;margin-top:4px;color:#cdebf4;font-size:10px}
.trade-hub-hud{position:fixed;left:50%;top:22%;transform:translateX(-50%);z-index:26;display:flex;align-items:center;gap:10px;max-width:min(560px,88vw);padding:10px 12px;border-radius:18px;background:linear-gradient(145deg,rgba(6,36,51,.95),rgba(19,76,98,.95));border:1px solid rgba(245,200,91,.6);box-shadow:0 14px 38px rgba(0,0,0,.28)}.trade-hub-hud>svg{color:#ffe27d;width:26px;height:26px}.trade-hub-hud div{flex:1;min-width:0}.trade-hub-hud b,.trade-hub-hud small{display:block}.trade-hub-hud small{color:#b9dce8;font-size:11px;margin-top:2px}.trade-hub-hud button{border:0;border-radius:12px;padding:9px 14px;background:#f3c75a;color:#132a34;font-weight:900;cursor:pointer}.player-market-btn{border-color:rgba(245,200,91,.32)!important}.player-market-btn svg{color:#f7d56f!important}
.market-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:180px;color:#cce8f1}.market-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}.market-tabs button,.market-filters button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(131,210,235,.18);background:rgba(7,45,61,.72);color:#d8edf4;border-radius:12px;padding:9px 13px;cursor:pointer;font-weight:800}.market-tabs button.active,.market-filters button.active{background:linear-gradient(145deg,#17657d,#1f8196);border-color:rgba(106,230,255,.55);color:#fff}.market-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.market-card{display:flex;flex-direction:column;gap:9px;min-width:0;padding:12px;border:1px solid rgba(125,213,237,.16);border-radius:18px;background:linear-gradient(155deg,rgba(9,46,62,.9),rgba(7,35,48,.88));box-shadow:0 10px 25px rgba(0,0,0,.16)}.market-card.type-house{border-color:rgba(245,200,91,.25)}.market-card.type-character{border-color:rgba(203,145,255,.24)}.market-card-icon{height:74px;border-radius:14px;background:rgba(31,112,137,.25);display:flex;align-items:center;justify-content:center;font-size:38px;border:1px solid rgba(255,255,255,.07)}.market-card-copy{min-width:0}.market-card-copy b{display:block;color:#fff;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.market-card-copy small,.market-card-copy em{display:block;margin-top:3px;color:#9fc8d6;font-size:10px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.market-card-copy em{color:#f0cf78}.market-card-price{display:flex;gap:7px;flex-wrap:wrap}.market-card-price span{padding:5px 8px;border-radius:10px;background:rgba(3,27,38,.66);font-weight:900;color:#f4f8fa}.market-card-actions{display:flex;gap:6px;margin-top:auto}.market-card-actions button{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:11px;padding:8px 7px;background:#164f65;color:#eaf7fb;font-weight:800;cursor:pointer}.market-card-actions .buy-market{background:linear-gradient(145deg,#1e8b77,#2fb08d)}.market-card-actions .danger-soft{background:rgba(150,59,69,.62)}
.market-sell-box{padding:14px;border:1px solid rgba(245,200,91,.18);border-radius:18px;background:rgba(7,40,55,.62)}.market-sell-note{padding:9px 11px;margin-bottom:12px;border-radius:12px;background:rgba(245,200,91,.09);color:#f3daa0;font-size:11px;line-height:1.6}.market-sell-box>label{display:block;color:#cde7ef;font-size:11px}.market-sell-box select,.market-sell-box input{width:100%;margin-top:5px;border:1px solid rgba(127,205,230,.2);border-radius:11px;background:#082d3d;color:#fff;padding:10px 11px;outline:none}.market-price-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.market-price-inputs label{font-size:11px;color:#cde7ef}
@media(max-width:980px){.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trade-hub-hud{top:16%}}
@media(max-width:620px){.market-grid{grid-template-columns:1fr}.market-tabs{display:grid;grid-template-columns:repeat(2,1fr)}.market-tabs button{padding:8px 7px;font-size:11px}.market-price-inputs{grid-template-columns:1fr}.trade-hub-hud{top:13%;padding:8px 9px}.trade-hub-hud small{display:none}.trade-hub-hud button{padding:8px 10px;font-size:11px}.exchange-world-sign{min-width:165px;padding:8px 11px}.exchange-world-sign b{font-size:12px}.exchange-world-sign small{font-size:8px}}

/* =========================================================
   QAA AL HAMOUR v3.20 — MOBILE PRO HUD
   Mobile is a dedicated game layout, not a shrunken desktop.
   ========================================================= */
@media (max-width:900px),(pointer:coarse){
  :root{--mobile-social-h:54px;--mobile-controls-gap:66px;--mobile-top-h:49px}
  .game-shell{touch-action:none;background:#05283d}
  .scene-layer{inset:0;touch-action:none}

  /* compact premium player bar */
  .top-hud{
    top:max(5px,env(safe-area-inset-top))!important;right:7px!important;left:7px!important;
    min-height:42px!important;display:flex!important;align-items:center!important;gap:5px!important;
    padding:4px!important;border:1px solid rgba(117,224,255,.18)!important;border-radius:16px!important;
    background:linear-gradient(145deg,rgba(4,39,58,.94),rgba(2,25,39,.91))!important;
    box-shadow:0 8px 24px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.045)!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  .profile-chip{flex:0 0 auto!important;min-width:92px!important;padding:3px 7px 3px 3px!important;border:0!important;background:rgba(16,73,96,.62)!important;border-radius:12px!important;box-shadow:none!important}
  .mini-avatar-lite{width:33px!important;height:33px!important;font-size:17px!important;border:1px solid rgba(128,229,255,.22)!important}
  .profile-chip strong{font-size:9px!important;max-width:72px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-chip small{display:none!important}
  .currency-row{flex:1!important;min-width:0!important;display:flex!important;justify-content:center!important;gap:4px!important;overflow:hidden!important;flex-wrap:nowrap!important}
  .currency-row span{display:flex!important;padding:4px 7px!important;font-size:8px!important;min-height:29px!important;background:rgba(6,48,68,.78)!important;border-color:rgba(112,219,255,.13)!important}
  .currency-row span:nth-child(n+3){display:none!important}
  .status-row{flex:0 0 auto!important}.status-row span{display:none!important}.status-row span:first-child{display:flex!important;padding:4px 7px!important;font-size:7px!important;min-height:29px!important}

  /* top action ribbon */
  .quick-menu{
    top:calc(max(5px,env(safe-area-inset-top)) + 48px)!important;right:7px!important;left:7px!important;
    height:55px!important;display:flex!important;gap:5px!important;padding:5px!important;
    overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;
    scroll-snap-type:x proximity!important;border:1px solid rgba(107,219,255,.16)!important;border-radius:17px!important;
    background:linear-gradient(90deg,rgba(3,30,46,.96),rgba(5,47,65,.94),rgba(3,30,46,.96))!important;
    box-shadow:0 10px 28px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.04)!important;
    contain:layout style!important;
  }
  .quick-menu::-webkit-scrollbar{display:none!important}
  .quick-menu button{
    flex:0 0 51px!important;width:51px!important;height:44px!important;min-height:44px!important;padding:3px 2px!important;
    border-radius:12px!important;border:1px solid rgba(115,223,255,.12)!important;
    background:linear-gradient(155deg,rgba(14,72,94,.96),rgba(5,43,62,.96))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.045)!important;scroll-snap-align:start!important;
  }
  .quick-menu button:active{transform:scale(.94)!important;background:rgba(20,94,119,.98)!important}
  .quick-menu button svg{width:17px!important;height:17px!important;color:#9beaff!important}.quick-menu button span{display:block!important;font-size:7px!important;line-height:1.05!important;font-weight:900!important;white-space:nowrap!important;max-width:47px!important;overflow:hidden!important;text-overflow:ellipsis!important}

  /* controls live ABOVE the social dock */
  .controls{
    left:0!important;right:0!important;bottom:calc(var(--mobile-social-h) + max(12px,env(safe-area-inset-bottom)))!important;
    width:100%!important;height:112px!important;display:block!important;pointer-events:none!important;
    background:transparent!important;border:0!important;box-shadow:none!important;z-index:49!important;
  }
  .controls .joystick{
    position:absolute!important;left:12px!important;right:auto!important;bottom:2px!important;width:104px!important;height:104px!important;
    pointer-events:auto!important;border:1px solid rgba(133,229,255,.36)!important;
    background:radial-gradient(circle at 50% 50%,rgba(54,180,217,.18) 0 28%,rgba(5,39,56,.73) 62%,rgba(2,26,41,.84) 100%)!important;
    box-shadow:inset 0 0 28px rgba(79,215,255,.10),0 8px 25px rgba(0,0,0,.26)!important;
  }
  .controls .joystick:before,.controls .joystick:after{opacity:.55}
  .controls .joystick-knob{width:47px!important;height:47px!important;background:radial-gradient(circle at 32% 28%,#e2fbff,#52c8e7 52%,#1a6f89 100%)!important;box-shadow:0 0 20px rgba(78,211,247,.45)!important}
  .controls .swim-controls{position:absolute!important;right:13px!important;left:auto!important;bottom:5px!important;display:grid!important;gap:8px!important;pointer-events:auto!important}
  .controls .swim-controls button{width:48px!important;height:48px!important;border-radius:15px!important;border:1px solid rgba(131,228,255,.25)!important;background:linear-gradient(145deg,rgba(14,74,97,.96),rgba(5,43,61,.96))!important;color:#c6f5ff!important;box-shadow:0 6px 18px rgba(0,0,0,.22)!important;touch-action:none!important}
  .controls .swim-controls button:active{transform:scale(.91)!important;background:#166f8e!important}

  /* social dock is always the lowest interaction bar */
  .social-dock{
    left:6px!important;right:6px!important;bottom:max(6px,env(safe-area-inset-bottom))!important;transform:none!important;
    width:auto!important;min-height:50px!important;max-height:none!important;display:flex!important;align-items:center!important;gap:4px!important;
    padding:5px!important;border-radius:16px!important;border:1px solid rgba(119,225,255,.18)!important;
    background:linear-gradient(145deg,rgba(3,34,51,.98),rgba(4,24,38,.97))!important;
    box-shadow:0 9px 28px rgba(0,0,0,.31),inset 0 1px rgba(255,255,255,.045)!important;z-index:60!important;
    contain:layout style!important;overflow:visible!important;
  }
  .emote-strip{display:flex!important;align-items:center!important;gap:2px!important;flex:0 0 auto!important}
  .emote-chip,.emote-more{display:grid!important;width:27px!important;height:36px!important;border-radius:9px!important;font-size:14px!important;background:linear-gradient(145deg,rgba(22,83,106,.98),rgba(8,48,67,.98))!important;padding:0!important}
  .emote-wide{display:grid!important}.emote-more{font-size:10px!important;color:#bcefff!important}
  .social-dock .speech-compose{flex:1!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 35px 35px!important;gap:4px!important}
  .social-dock .speech-compose input{height:38px!important;min-width:0!important;padding:7px 9px!important;border-radius:11px!important;font-size:11px!important;background:rgba(11,59,79,.82)!important;border-color:rgba(124,224,255,.15)!important}
  .social-dock .speech-compose input::placeholder{font-size:9px!important;color:#8db5c3!important}
  .speech-send,.speech-mic{width:35px!important;height:38px!important;border-radius:10px!important;font-size:15px!important}
  .emote-popover{left:4px!important;right:4px!important;bottom:calc(100% + 7px)!important;width:auto!important;max-width:none!important;justify-content:center!important;padding:6px!important;gap:4px!important;border-radius:14px!important;background:rgba(3,28,43,.985)!important;box-shadow:0 12px 32px rgba(0,0,0,.38)!important}
  .emote-popover button{width:33px!important;height:33px!important;font-size:17px!important}

  /* small floating status cards must not sit on the main controls */
  .voice-mini{top:112px!important;bottom:auto!important;right:8px!important;left:auto!important;transform:none!important;padding:5px 7px!important;font-size:8px!important}
  .public-voice-feed{top:145px!important;bottom:auto!important;right:8px!important;max-width:180px!important}
  .fish-catch-hud,.house-near-hud,.trade-hub-hud{top:116px!important;bottom:auto!important;left:8px!important;right:auto!important;max-width:min(72vw,280px)!important}

  /* panels become touch-native bottom sheets */
  .panel-backdrop{padding:0!important;align-items:flex-end!important;background:rgba(0,10,17,.46)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .game-panel{width:100%!important;max-width:none!important;max-height:84dvh!important;border-radius:24px 24px 0 0!important;border-bottom:0!important;padding:18px 13px calc(16px + env(safe-area-inset-bottom))!important;box-shadow:0 -18px 60px rgba(0,0,0,.48)!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}
  .game-panel:before{content:"";display:block;width:42px;height:4px;border-radius:999px;background:rgba(177,235,255,.26);margin:-9px auto 11px}
  .close-panel{left:10px!important;top:10px!important;width:35px!important;height:35px!important}
  .panel-title{margin-bottom:13px!important;padding-left:42px!important;gap:8px!important}.panel-title>svg{width:27px!important;height:27px!important}.panel-title h2{font-size:17px!important}.panel-title p{font-size:9px!important}
  .item-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.store-card{padding:9px!important;border-radius:14px!important;min-height:118px!important}
  .world-map{min-height:52vh!important;border-radius:18px!important}

  /* character garage: large and crisp while the world is paused */
  .character-preview.pro-preview{height:235px!important;margin-bottom:10px!important;border-radius:20px!important}
  .character-preview-stage{height:100%!important}.character-preview-name{right:10px!important;left:10px!important;bottom:9px!important;padding:7px 9px!important}
  .character-preview-name b{font-size:13px!important}.character-preview-name small{font-size:8px!important}
  .character-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.character-grid button{min-height:58px!important;padding:7px!important;border-radius:13px!important}
}

@media (max-width:900px) and (orientation:landscape){
  :root{--mobile-social-h:48px}
  .top-hud{right:8px!important;left:8px!important;min-height:39px!important}.quick-menu{top:47px!important;left:16%!important;right:16%!important;height:49px!important;padding:4px!important}.quick-menu button{flex-basis:47px!important;width:47px!important;height:39px!important;min-height:39px!important}.quick-menu button span{font-size:6.5px!important}
  .controls{height:96px!important;bottom:calc(var(--mobile-social-h) + 6px)!important}.controls .joystick{width:90px!important;height:90px!important;left:8px!important}.controls .joystick-knob{width:40px!important;height:40px!important}.controls .swim-controls{right:9px!important;bottom:2px!important}.controls .swim-controls button{width:42px!important;height:42px!important;border-radius:13px!important}
  .social-dock{left:18%!important;right:18%!important;bottom:4px!important;min-height:44px!important;padding:4px!important}.emote-chip,.emote-more{width:26px!important;height:32px!important;font-size:13px!important}.social-dock .speech-compose input{height:34px!important;font-size:10px!important}.speech-send,.speech-mic{height:34px!important;width:33px!important}
  .game-panel{max-height:90dvh!important}.character-preview.pro-preview{height:205px!important}
}

@media (max-width:380px) and (orientation:portrait){
  .profile-chip{min-width:76px!important}.currency-row span{padding:4px 5px!important}.quick-menu button{flex-basis:48px!important;width:48px!important}
  .emote-chip,.emote-more{width:24px!important;font-size:13px!important}.social-dock .speech-compose{grid-template-columns:minmax(0,1fr) 32px 32px!important}.speech-send,.speech-mic{width:32px!important}.social-dock .speech-compose input{font-size:10px!important}
}

/* =========================================================
   QAA AL HAMOUR v3.21 — MOBILE VIEWPORT + COLLAPSIBLE TOOLS
   More world visibility, slightly smaller player, ideal landscape HUD.
   ========================================================= */
.quick-menu-toggle{
  top:94px;right:92px;display:flex;align-items:center;justify-content:center;gap:6px;
  min-width:76px;height:42px;padding:0 10px;border:1px solid rgba(121,226,255,.24);
  border-radius:14px;background:linear-gradient(145deg,rgba(5,49,70,.96),rgba(3,29,44,.96));
  color:#e8faff;box-shadow:0 9px 24px rgba(0,0,0,.24);backdrop-filter:blur(10px);z-index:22;
  font-weight:900;font-size:10px;transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.quick-menu-toggle:hover{border-color:rgba(119,229,255,.52)}
.quick-menu-toggle:active{transform:scale(.95)}
.quick-menu-toggle svg{width:15px;height:15px;color:#93eaff}
.quick-menu-toggle .toolbar-menu-icon{font-size:16px;line-height:1;color:#bdf4ff}
.quick-menu.is-closed{display:none!important}
.quick-menu.is-open{animation:qaaToolsOpen .16s ease-out both}
@keyframes qaaToolsOpen{from{opacity:0;transform:translateY(-7px) scale(.985)}to{opacity:1;transform:none}}

@media (max-width:900px),(pointer:coarse){
  /* permanent tool button; the large icon ribbon is hidden by default */
  .quick-menu-toggle{
    top:calc(max(5px,env(safe-area-inset-top)) + 49px)!important;right:8px!important;
    min-width:72px!important;height:38px!important;padding:0 8px!important;border-radius:13px!important;
    background:linear-gradient(145deg,rgba(6,57,79,.97),rgba(3,31,47,.97))!important;
    border-color:rgba(120,227,255,.22)!important;box-shadow:0 8px 22px rgba(0,0,0,.26)!important;
    z-index:72!important;
  }
  .quick-menu-toggle .toolbar-toggle-label{font-size:9px!important}
  .quick-menu-toggle .toolbar-menu-icon{font-size:15px!important}
  .quick-menu-toggle svg{width:14px!important;height:14px!important}
  .quick-menu.is-closed{display:none!important}
  .quick-menu.is-open{display:flex!important}

  /* keep the center of the screen clean even when tools are open */
  .quick-menu.is-open{
    top:calc(max(5px,env(safe-area-inset-top)) + 92px)!important;
    right:7px!important;left:7px!important;height:51px!important;padding:4px!important;
    border-radius:15px!important;background:rgba(3,31,46,.965)!important;
    box-shadow:0 8px 25px rgba(0,0,0,.25)!important;
  }
  .quick-menu.is-open button{height:41px!important;min-height:41px!important;flex-basis:49px!important;width:49px!important}

  /* HUD notices rise only when the tool drawer is actually open */
  .game-shell:has(.quick-menu.is-closed) .voice-mini{top:62px!important}
  .game-shell:has(.quick-menu.is-closed) .public-voice-feed{top:96px!important}
  .game-shell:has(.quick-menu.is-closed) .fish-catch-hud,
  .game-shell:has(.quick-menu.is-closed) .house-near-hud,
  .game-shell:has(.quick-menu.is-closed) .trade-hub-hud{top:66px!important}

  /* slightly more breathing room around the movement controls */
  .controls .joystick{width:98px!important;height:98px!important;left:11px!important}
  .controls .joystick-knob{width:44px!important;height:44px!important}
  .controls .swim-controls button{width:46px!important;height:46px!important}

  /* make bottom communication bar feel like a native game composer */
  .social-dock{border-radius:15px!important;padding:4px 5px!important}
  .social-dock .speech-compose input{font-size:11px!important}
}

@media (max-width:900px) and (orientation:landscape){
  :root{--mobile-social-h:44px}

  /* Slim centered identity bar instead of covering the full horizon. */
  .top-hud{
    top:max(4px,env(safe-area-inset-top))!important;left:50%!important;right:auto!important;
    transform:translateX(-50%)!important;width:calc(100vw - 124px)!important;max-width:560px!important;
    min-height:34px!important;height:34px!important;padding:3px 5px!important;border-radius:13px!important;
    gap:4px!important;background:rgba(3,31,47,.90)!important;
  }
  .profile-chip{min-width:78px!important;height:28px!important;padding:2px 5px 2px 2px!important}
  .mini-avatar-lite{width:27px!important;height:27px!important;font-size:14px!important}
  .profile-chip strong{font-size:8px!important;max-width:58px!important}
  .currency-row span{min-height:25px!important;padding:3px 6px!important;font-size:7.5px!important}
  .status-row{display:none!important}

  /* Tool launcher stays tiny in the top-right corner. */
  .quick-menu-toggle{
    top:max(4px,env(safe-area-inset-top))!important;right:7px!important;left:auto!important;
    min-width:68px!important;width:68px!important;height:34px!important;border-radius:12px!important;padding:0 6px!important;
  }
  .quick-menu-toggle .toolbar-toggle-label{font-size:8px!important}
  .quick-menu.is-open{
    top:42px!important;left:12%!important;right:12%!important;height:45px!important;padding:3px!important;
    border-radius:14px!important;
  }
  .quick-menu.is-open button{height:37px!important;min-height:37px!important;flex-basis:45px!important;width:45px!important;border-radius:10px!important}
  .quick-menu.is-open button svg{width:15px!important;height:15px!important}
  .quick-menu.is-open button span{font-size:6px!important}

  /* Landscape game controls: clear center, left movement, right depth. */
  .controls{
    height:84px!important;bottom:calc(var(--mobile-social-h) + 7px)!important;left:0!important;right:0!important;
  }
  .controls .joystick{width:80px!important;height:80px!important;left:max(9px,env(safe-area-inset-left))!important;bottom:0!important}
  .controls .joystick-knob{width:36px!important;height:36px!important}
  .controls .swim-controls{right:max(9px,env(safe-area-inset-right))!important;bottom:0!important;gap:5px!important}
  .controls .swim-controls button{width:38px!important;height:38px!important;border-radius:12px!important}

  /* Composer sits in the middle and leaves both thumb zones unobstructed. */
  .social-dock{
    left:16%!important;right:16%!important;bottom:max(3px,env(safe-area-inset-bottom))!important;
    min-height:40px!important;height:40px!important;padding:3px 4px!important;border-radius:13px!important;
  }
  .emote-chip,.emote-more{width:23px!important;height:30px!important;font-size:12px!important;border-radius:8px!important}
  .social-dock .speech-compose{grid-template-columns:minmax(0,1fr) 31px 31px!important;gap:3px!important}
  .social-dock .speech-compose input{height:32px!important;font-size:9.5px!important;padding:5px 7px!important}
  .speech-send,.speech-mic{width:31px!important;height:32px!important;font-size:13px!important;border-radius:9px!important}
  .emote-popover{bottom:calc(100% + 5px)!important;padding:4px!important}
  .emote-popover button{width:29px!important;height:29px!important;font-size:15px!important}

  /* Notifications hug the edges and never sit over the player. */
  .game-shell:has(.quick-menu.is-closed) .voice-mini{top:43px!important;right:7px!important}
  .game-shell:has(.quick-menu.is-closed) .public-voice-feed{top:76px!important;right:7px!important}
  .game-shell:has(.quick-menu.is-closed) .fish-catch-hud,
  .game-shell:has(.quick-menu.is-closed) .house-near-hud,
  .game-shell:has(.quick-menu.is-closed) .trade-hub-hud{top:43px!important;left:7px!important;max-width:230px!important}
  .game-shell:has(.quick-menu.is-open) .voice-mini{top:92px!important}
  .game-shell:has(.quick-menu.is-open) .public-voice-feed{top:124px!important}
  .game-shell:has(.quick-menu.is-open) .fish-catch-hud,
  .game-shell:has(.quick-menu.is-open) .house-near-hud,
  .game-shell:has(.quick-menu.is-open) .trade-hub-hud{top:92px!important}

  .game-panel{max-height:94dvh!important}
  .character-preview.pro-preview{height:190px!important}
}

@media (max-width:540px) and (orientation:portrait){
  .quick-menu-toggle{min-width:66px!important;width:66px!important}
  .toolbar-toggle-label{font-size:8px!important}
}

/* =========================================================
   QAA AL HAMOUR v3.22 — MOBILE CONTROLS + STORE + MAP ROUTE
   ========================================================= */
.map-route-svg{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.map-route-svg line{stroke:#ffd51f;stroke-width:1.25;stroke-linecap:round;stroke-dasharray:3 1.6;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px #ffd51f) drop-shadow(0 0 7px rgba(255,213,31,.55))}
.map-route-target{position:absolute;transform:translate(-50%,-50%);z-index:3;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#3a2d05;border:2px solid #ffe45e;color:#fff3a4;font-size:9px;box-shadow:0 0 0 5px rgba(255,213,31,.12),0 0 16px rgba(255,213,31,.65);pointer-events:none;animation:qaaRoutePulse 1.2s ease-in-out infinite}
@keyframes qaaRoutePulse{50%{box-shadow:0 0 0 9px rgba(255,213,31,.04),0 0 22px rgba(255,213,31,.8)}}
.map-me{display:grid;place-items:center}.map-me-arrow{display:block;line-height:1;transform-origin:50% 55%;transition:transform .12s linear;filter:drop-shadow(0 0 5px #ffe35b)}
.navigation-hud .nav-arrow{will-change:transform;transform-origin:50% 50%;box-shadow:0 0 0 3px rgba(255,227,107,.08),0 0 18px rgba(255,213,31,.25)}

@media (max-width:900px),(pointer:coarse){
  /* Requested mobile layout: movement RIGHT, swim/depth LEFT. */
  .controls .joystick{
    left:auto!important;right:max(11px,env(safe-area-inset-right))!important;
  }
  .controls .swim-controls{
    right:auto!important;left:max(12px,env(safe-area-inset-left))!important;
  }

  /* Panels must be above the chat/emote dock; it used to cover WhatsApp. */
  .panel-backdrop{z-index:120!important}
  .game-panel{z-index:121!important}
  .house-panel-shell{
    max-height:88dvh!important;
    padding-bottom:max(12px,env(safe-area-inset-bottom))!important;
  }
  .house-panel-shell .panel-title{margin-bottom:9px!important}
  .house-panel-shell .house-store-hero{margin-bottom:9px!important}
  .house-panel-shell .house-products{
    max-height:38dvh!important;overflow-y:auto!important;overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
    padding:2px 3px 10px 1px!important;scrollbar-width:thin!important;
  }
  .house-panel-shell .house-cart{
    position:sticky!important;bottom:0!important;z-index:15!important;margin-top:8px!important;
    background:linear-gradient(145deg,rgba(4,52,48,.995),rgba(4,35,39,.995))!important;
    border-color:rgba(67,238,145,.48)!important;box-shadow:0 -12px 30px rgba(0,0,0,.42)!important;
  }
  .house-panel-shell .whatsapp-btn{min-height:38px!important;flex:0 0 auto!important}

  /* Smaller map so route info and controls are easier to read. */
  .map-panel{max-height:86dvh!important}
  .map-panel .world-map{
    min-height:280px!important;height:min(42dvh,390px)!important;aspect-ratio:auto!important;
    border-radius:17px!important;
  }
  .map-panel .panel-title{margin-bottom:9px!important}
  .map-current-route{margin-bottom:7px!important;padding:6px 8px!important}
}

@media (max-width:900px) and (orientation:landscape){
  .controls .joystick{
    left:auto!important;right:max(9px,env(safe-area-inset-right))!important;
  }
  .controls .swim-controls{
    right:auto!important;left:max(9px,env(safe-area-inset-left))!important;
  }
  .house-panel-shell{max-height:92dvh!important}
  .house-panel-shell .house-products{max-height:42dvh!important}
  .map-panel{max-height:92dvh!important}
  .map-panel .world-map{min-height:190px!important;height:min(54dvh,310px)!important}
  .navigation-hud{top:43px!important;max-width:min(260px,48vw)!important}
}

@media (max-width:430px) and (orientation:portrait){
  .house-panel-shell .house-products{max-height:42dvh!important}
  .house-panel-shell .house-cart{gap:6px!important}
  .house-panel-shell .whatsapp-btn{padding:8px 9px!important;font-size:8px!important}
  .map-panel .world-map{min-height:260px!important;height:39dvh!important}
}

/* =========================================================
   QAA AL HAMOUR v3.23 — VOICE STABILITY + SPAWN PLAZA UI
   ========================================================= */
.quick-menu-toggle{right:12px}
.quick-menu-toggle.is-open{right:154px;top:84px}
.spawn-plaza-label{display:grid;gap:2px;min-width:120px;padding:5px 9px;border-radius:12px;background:rgba(5,45,59,.78);border:1px solid rgba(246,214,98,.38);box-shadow:0 7px 18px rgba(0,0,0,.22);backdrop-filter:blur(8px);text-align:center;color:#fff;white-space:nowrap}
.spawn-plaza-label b{font-size:10px;color:#ffe378}.spawn-plaza-label small{font-size:7px;color:#cbe8ee}
@media (max-width:900px),(pointer:coarse){
  .quick-menu-toggle,.quick-menu-toggle.is-open{right:8px!important}
  .spawn-plaza-label{padding:4px 7px;min-width:100px}.spawn-plaza-label b{font-size:9px}.spawn-plaza-label small{font-size:6px}
}
@media (max-width:900px) and (orientation:landscape){
  .quick-menu-toggle,.quick-menu-toggle.is-open{top:max(4px,env(safe-area-inset-top))!important;right:7px!important}
}

/* ====================== GHOSTS TLGAWY v1 ====================== */
:root{--ghost-bg:#080706;--ghost-panel:rgba(12,11,10,.9);--ghost-panel2:rgba(27,23,19,.94);--ghost-line:rgba(238,220,190,.16);--ghost-cream:#eee0c7;--ghost-amber:#e7a63b;--ghost-red:#d44c45;--ghost-green:#8eb15b}
.ghost-auth-shell{position:relative;width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;overflow:auto;padding:24px;color:#f4ead9;background:radial-gradient(circle at 50% 18%,rgba(144,83,35,.18),transparent 28%),radial-gradient(circle at 12% 72%,rgba(50,75,42,.18),transparent 25%),linear-gradient(160deg,#060605,#12100d 48%,#070706)}
.ghost-auth-noise{position:fixed;inset:0;pointer-events:none;opacity:.15;background-image:repeating-linear-gradient(0deg,transparent 0 3px,rgba(255,255,255,.025) 3px 4px);mix-blend-mode:screen}.ghost-auth-glow{position:fixed;width:360px;height:360px;border-radius:50%;filter:blur(80px);pointer-events:none;opacity:.17}.ghost-auth-glow.one{background:#a04f2e;top:-120px;right:-90px}.ghost-auth-glow.two{background:#667b3d;bottom:-150px;left:-100px}
.ghost-auth-card{position:relative;width:min(720px,100%);padding:30px;border:1px solid rgba(231,207,172,.16);border-radius:27px;background:linear-gradient(145deg,rgba(29,25,21,.96),rgba(10,9,8,.97));box-shadow:0 40px 100px rgba(0,0,0,.7),inset 0 1px rgba(255,255,255,.05);backdrop-filter:blur(20px)}.ghost-auth-card.error-card{text-align:center;max-width:560px}.ghost-auth-card.error-card>svg{width:56px;height:56px;color:#ce554c}.ghost-logo{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid rgba(230,198,150,.19);border-radius:999px;background:rgba(255,255,255,.025);font-weight:900;letter-spacing:.13em;font-size:11px;color:#e7c58e}.ghost-logo svg{width:18px}.ghost-kicker{margin:18px 0 5px;color:#a79882;font-size:10px;letter-spacing:.17em}.ghost-auth-card h1{margin:0;font-size:clamp(45px,10vw,82px);line-height:1.05;color:#f3e6ce;font-weight:900;text-shadow:0 8px 30px #000}.ghost-auth-card h1 em{font-style:normal;color:#d8674f}.ghost-auth-sub{max-width:610px;margin:14px 0 18px;color:#b9aa96;line-height:1.85;font-size:13px}.ghost-feature-row{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.ghost-feature-row span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid rgba(221,197,162,.12);border-radius:11px;background:rgba(255,255,255,.025);font-size:10px;color:#d9c6aa}.ghost-feature-row svg{width:15px;height:15px;color:#d99a3f}
.ghost-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border-radius:15px;background:#080706;border:1px solid rgba(229,206,171,.12);margin:10px 0 14px}.ghost-auth-tabs button{min-height:42px;border:0;border-radius:11px;background:transparent;color:#9e907e;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px}.ghost-auth-tabs button.active{color:#fff3dd;background:linear-gradient(135deg,#503825,#30261d);box-shadow:inset 0 0 0 1px rgba(239,205,154,.13)}.ghost-auth-tabs svg{width:17px}.ghost-auth-form{display:grid;gap:11px}.ghost-auth-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#d9c9b2}.ghost-auth-form label small{color:#7f7568;font-weight:500}.ghost-auth-form input{width:100%;min-height:44px;padding:10px 12px;border-radius:11px;border:1px solid rgba(231,208,177,.13);outline:none;background:#090807;color:#fff4e2}.ghost-auth-form input:focus{border-color:rgba(226,160,66,.55);box-shadow:0 0 0 3px rgba(226,160,66,.07)}.ghost-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ghost-primary,.ghost-secondary{min-height:45px;border-radius:12px;font-weight:900;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:8px}.ghost-primary{border:1px solid #e3b260;background:linear-gradient(135deg,#f0b84e,#b86b30);color:#1b1007;box-shadow:0 10px 26px rgba(172,91,27,.2)}.ghost-secondary{width:100%;margin-top:9px;border:1px solid rgba(232,210,176,.14);background:#17130f;color:#eadcc6}.ghost-warning{display:flex;align-items:center;gap:8px;margin-top:15px;padding:10px 12px;border-radius:12px;background:rgba(123,45,39,.14);border:1px solid rgba(211,79,69,.17);font-size:10px;color:#c8ad9d}.ghost-warning svg{width:17px;color:#d45b50}.ghost-splash{flex-direction:column;text-align:center}.ghost-splash h1{font-size:38px;margin:8px 0 0}.ghost-splash p{margin:0;color:#a99d8c}.ghost-float{width:52px;height:52px;animation:ghostFloat 2s ease-in-out infinite;color:#e8af55}@keyframes ghostFloat{50%{transform:translateY(-8px) rotate(-3deg)}}

.horror-shell{position:relative;width:100%;height:100%;overflow:hidden;background:#050504;color:#f7ecda;isolation:isolate}.horror-shell:after{content:"";position:absolute;inset:0;z-index:8;pointer-events:none;box-shadow:inset 0 0 170px 45px rgba(0,0,0,.82);transition:.2s}.horror-shell.danger:after{box-shadow:inset 0 0 170px 52px rgba(83,8,5,.62)}.horror-shell.shaking{animation:ghostShake .11s linear 9}@keyframes ghostShake{25%{transform:translate(3px,-2px)}50%{transform:translate(-3px,2px)}75%{transform:translate(2px,2px)}}.horror-scene{position:absolute;inset:0;z-index:1;touch-action:none;background:#070706}.horror-scene canvas{display:block;width:100%!important;height:100%!important;outline:none}
.horror-topbar{position:absolute;z-index:20;top:max(10px,env(safe-area-inset-top));right:12px;left:12px;display:grid;grid-template-columns:minmax(170px,1fr) auto minmax(260px,1fr);gap:10px;align-items:center;pointer-events:none}.horror-topbar>*{pointer-events:auto}.horror-brand,.round-clock,.horror-stats{border:1px solid var(--ghost-line);background:linear-gradient(140deg,rgba(18,16,14,.91),rgba(8,8,7,.82));backdrop-filter:blur(15px);box-shadow:0 12px 35px rgba(0,0,0,.35)}.horror-brand{justify-self:start;display:flex;align-items:center;gap:9px;border-radius:15px;padding:8px 12px}.horror-brand>svg{width:26px;color:#e4a64b}.horror-brand b,.horror-brand small{display:block}.horror-brand b{font-size:13px}.horror-brand small{font-size:8px;color:#9c8c77}.round-clock{text-align:center;min-width:150px;border-radius:14px;padding:6px 14px}.round-clock small,.round-clock b{display:block}.round-clock small{font-size:8px;color:#9d907f}.round-clock b{font-size:20px;letter-spacing:.08em;direction:ltr}.round-clock.prep{border-color:rgba(225,165,70,.31)}.round-clock.hunt{border-color:rgba(207,69,60,.38);box-shadow:0 0 28px rgba(158,34,28,.16)}.horror-stats{justify-self:end;display:flex;align-items:center;gap:5px;padding:6px;border-radius:14px}.horror-stats span{min-height:31px;padding:5px 8px;border-radius:9px;background:rgba(255,255,255,.035);font-size:10px;font-weight:900;display:flex;align-items:center;gap:4px}.horror-stats svg{width:13px;height:13px;color:#d9564f}
.prep-banner{position:absolute;z-index:21;top:84px;left:50%;transform:translateX(-50%);width:min(510px,calc(100% - 28px));display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;border:1px solid rgba(226,166,73,.27);background:rgba(41,28,15,.86);backdrop-filter:blur(12px);box-shadow:0 14px 40px rgba(0,0,0,.4)}.prep-banner>svg{width:24px;color:#eeae49}.prep-banner b,.prep-banner small{display:block}.prep-banner b{font-size:11px}.prep-banner small{font-size:9px;color:#bda98f;margin-top:2px}.heartbeat,.detector-hud{position:absolute;z-index:22;left:12px;top:85px;display:flex;align-items:center;gap:8px;padding:8px 11px;border-radius:13px;backdrop-filter:blur(12px);box-shadow:0 12px 35px #0006}.heartbeat{border:1px solid rgba(211,75,66,.35);background:rgba(71,19,16,.84);animation:heartBeat .85s ease-in-out infinite}.heartbeat.chase{background:rgba(111,15,11,.9);animation-duration:.44s}.heartbeat>svg{width:22px;color:#ef5b51}.heartbeat b,.heartbeat small,.detector-hud b,.detector-hud small{display:block}.heartbeat b,.detector-hud b{font-size:10px}.heartbeat small,.detector-hud small{font-size:8px;color:#c8ad9a}@keyframes heartBeat{50%{transform:scale(1.045)}}.detector-hud{top:139px;border:1px solid rgba(116,166,86,.3);background:rgba(27,42,22,.84)}.detector-hud>svg{width:21px;color:#9bbd68}
.horror-menu{position:absolute;z-index:24;right:12px;top:88px;display:grid;gap:6px;padding:5px;border-radius:15px;border:1px solid var(--ghost-line);background:rgba(9,8,7,.72);backdrop-filter:blur(12px)}.horror-menu button{width:61px;min-height:53px;border:1px solid rgba(230,207,176,.11);border-radius:11px;background:linear-gradient(145deg,rgba(42,35,28,.88),rgba(16,14,12,.88));color:#e9dcc8;display:grid;place-items:center;align-content:center;gap:2px}.horror-menu button:hover,.horror-menu button.active{border-color:rgba(234,171,69,.37);background:linear-gradient(145deg,rgba(80,55,29,.92),rgba(29,22,16,.9))}.horror-menu svg{width:19px}.horror-menu span{font-size:8px;font-weight:800}
.voice-hud{position:absolute;z-index:24;left:12px;bottom:max(88px,calc(78px + env(safe-area-inset-bottom)));display:flex;gap:6px}.voice-hud button{min-height:47px;padding:6px 10px;border:1px solid var(--ghost-line);border-radius:13px;background:rgba(13,12,10,.86);color:#dfd2c0;display:flex;align-items:center;gap:7px;backdrop-filter:blur(12px)}.voice-hud button.on{border-color:rgba(100,190,125,.36);color:#a9d59f}.voice-hud button.recording{border-color:rgba(219,77,68,.48);color:#f18279;animation:recordPulse .75s ease-in-out infinite}.voice-hud svg{width:19px}.voice-hud span{font-size:9px;font-weight:800}@keyframes recordPulse{50%{box-shadow:0 0 0 5px rgba(215,70,61,.08)}}.voice-feed{position:absolute;z-index:23;left:12px;bottom:max(144px,calc(134px + env(safe-area-inset-bottom)));display:grid;gap:4px}.voice-feed>div{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:9px;background:rgba(9,8,7,.7);border:1px solid rgba(225,206,179,.09);font-size:8px}.voice-feed svg{width:13px;color:#c9a26b}.voice-feed small{color:#8e8273}
.horror-controls{position:absolute;z-index:24;right:12px;bottom:max(12px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:9px;direction:ltr}.horror-controls .joystick{width:112px;height:112px;border-color:rgba(218,187,145,.2);background:radial-gradient(circle,rgba(166,116,61,.09),rgba(10,9,8,.72));box-shadow:inset 0 0 28px rgba(180,118,54,.07),0 12px 30px rgba(0,0,0,.4)}.horror-controls .joystick-knob{width:46px;height:46px;background:radial-gradient(circle at 35% 30%,#e0c7a5,#8b623d 56%,#39291d);box-shadow:0 0 20px rgba(214,152,72,.2)}.sprint-btn{width:59px;height:59px;border-radius:50%;border:1px solid rgba(230,174,77,.27);background:linear-gradient(145deg,#593a1c,#241a11);color:#ffd586;display:grid;place-items:center;align-content:center;gap:1px;box-shadow:0 10px 30px rgba(0,0,0,.4);touch-action:none}.sprint-btn:active{transform:scale(.94);background:#71461d}.sprint-btn svg{width:21px}.sprint-btn span{font-size:8px;font-weight:900}.emotes{position:absolute;z-index:24;left:50%;bottom:max(65px,calc(55px + env(safe-area-inset-bottom)));transform:translateX(-50%);display:flex;gap:4px;padding:4px;border:1px solid rgba(229,207,176,.1);border-radius:13px;background:rgba(8,7,6,.65);backdrop-filter:blur(12px)}.emotes button{width:34px;height:34px;border:0;border-radius:9px;background:rgba(255,255,255,.035);font-size:17px}.emotes button:hover{background:rgba(255,255,255,.09);transform:translateY(-2px)}
.horror-chat{position:absolute;z-index:25;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(390px,43vw);height:44px;display:grid;grid-template-columns:22px 1fr 42px;align-items:center;gap:5px;padding:5px 6px 5px 9px;border:1px solid var(--ghost-line);border-radius:14px;background:rgba(9,8,7,.84);backdrop-filter:blur(14px)}.horror-chat>svg{width:16px;color:#9b8b77}.horror-chat input{min-width:0;border:0;outline:none;background:transparent;color:#f5e8d4;font-size:10px}.horror-chat input::placeholder{color:#70675b}.horror-chat button{height:32px;border:0;border-radius:9px;background:#644121;color:#f5d59f;display:grid;place-items:center}.horror-chat button svg{width:15px}.interact-btn{position:absolute;z-index:26;left:50%;bottom:max(122px,calc(112px + env(safe-area-inset-bottom)));transform:translateX(-50%);min-width:180px;min-height:46px;padding:7px 12px;border-radius:14px;border:1px solid rgba(241,184,82,.35);background:linear-gradient(135deg,rgba(111,68,27,.95),rgba(44,31,19,.96));color:#ffe7bb;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 13px 36px rgba(0,0,0,.5)}.interact-btn svg{width:18px}.interact-btn span{font-size:10px}.interact-btn kbd{font:700 9px monospace;border:1px solid rgba(255,255,255,.16);background:#17120d;border-radius:5px;padding:2px 5px}.power-pill{position:absolute;z-index:23;right:86px;top:88px;padding:6px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.12);font-size:8px;font-weight:800;display:flex;align-items:center;gap:5px;backdrop-filter:blur(12px)}.power-pill svg{width:13px}.power-pill.invis{background:rgba(76,55,108,.78);color:#d6c4ff}.power-pill.silence{top:119px;background:rgba(41,77,68,.78);color:#aee4d2}
.horror-modal{position:absolute;z-index:60;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(2,2,2,.66);backdrop-filter:blur(7px)}.horror-panel{position:relative;width:min(900px,96vw);max-height:86vh;overflow:auto;padding:23px;border-radius:24px;border:1px solid rgba(226,204,173,.16);background:linear-gradient(155deg,#1a1713,#090807);box-shadow:0 40px 100px rgba(0,0,0,.7)}.close-horror-panel{position:absolute;left:12px;top:12px;width:37px;height:37px;border-radius:11px;border:1px solid var(--ghost-line);background:#17130f;color:#e6d5bb;display:grid;place-items:center}.close-horror-panel svg{width:17px}.horror-panel-title{display:flex;align-items:center;gap:11px;padding-left:46px;margin-bottom:17px}.horror-panel-title>svg{width:31px;color:#dca350}.horror-panel-title h2{margin:0;font-size:20px}.horror-panel-title p{margin:3px 0 0;font-size:10px;color:#948573}.horror-store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.horror-store-card{display:grid;grid-template-columns:50px 1fr;grid-template-rows:auto auto;gap:7px 9px;min-height:120px;padding:10px;border:1px solid rgba(229,207,174,.11);border-radius:15px;background:rgba(255,255,255,.025)}.horror-store-card.premium{border-color:rgba(173,125,220,.27);background:linear-gradient(145deg,rgba(86,47,108,.12),rgba(255,255,255,.018))}.horror-store-card.bag{min-height:104px}.horror-item-icon{grid-row:1/3;width:50px;height:50px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#3b2b20,#17120e);font-size:25px}.horror-item-copy b,.horror-item-copy small,.horror-item-copy em{display:block}.horror-item-copy b{font-size:11px}.horror-item-copy small{font-size:8px;color:#968674;line-height:1.5;margin-top:2px}.horror-item-copy em{font-style:normal;color:#c99ae5;font-size:7px;font-weight:900;margin-top:4px;letter-spacing:.1em}.horror-price{display:flex;align-items:center;gap:5px}.horror-price span{font-size:9px;background:#0a0908;border-radius:999px;padding:3px 6px}.horror-store-card>button{grid-column:2;border:0;border-radius:9px;background:#694321;color:#ffe3b5;font-size:9px;font-weight:900}.owned-badge{grid-column:2;align-self:center;color:#9bc789;font-size:9px;font-weight:900}.horror-empty{text-align:center;padding:35px;border:1px dashed rgba(222,200,170,.15);border-radius:15px;color:#918372;font-size:11px}
.character-grid-horror{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.character-card-horror{position:relative;min-height:150px;padding:12px 8px;border:1px solid rgba(232,208,175,.1);border-radius:15px;background:linear-gradient(145deg,#17130f,#0b0a08);color:#e8dac4;display:grid;justify-items:center;align-content:center;gap:5px}.character-card-horror.selected{border-color:rgba(230,165,69,.58);box-shadow:inset 0 0 28px rgba(214,143,48,.09)}.character-card-horror.locked{opacity:.62}.character-card-horror b{font-size:10px}.character-card-horror small{font-size:7px;color:#918373}.semibot-mini{position:relative;width:55px;height:76px;border-radius:26px 26px 18px 18px;background:linear-gradient(90deg,var(--accent),var(--body) 30%,var(--body) 70%,#211810);box-shadow:inset -7px 0 13px rgba(0,0,0,.25),0 9px 18px rgba(0,0,0,.35)}.semibot-mini:after{content:"";position:absolute;left:5px;right:5px;top:40px;height:2px;background:#17110d;box-shadow:0 9px #22170f}.semibot-mini i{position:absolute;top:12px;width:22px;height:25px;border-radius:50%;background:#f1e4ca;border:1px solid #b5aa96}.semibot-mini i:after{content:"";position:absolute;width:6px;height:7px;border-radius:50%;background:#16120e;left:8px;top:9px}.semibot-mini i:first-child{left:5px;transform:rotate(-7deg)}.semibot-mini i:nth-child(2){right:5px;transform:rotate(7deg)}.semibot-mini span{position:absolute;left:12px;right:12px;top:39px;height:5px;border-radius:50%;background:#080706}.logout-horror{grid-column:1/-1;min-height:42px;border-radius:11px;border:1px solid rgba(209,74,65,.23);background:rgba(91,30,26,.26);color:#e7837b;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px}.logout-horror svg{width:16px}
.jumpscare{position:absolute;z-index:100;inset:0;display:grid;place-items:center;align-content:center;gap:12px;background:radial-gradient(circle,#6d100a,#0b0302 58%,#000);color:#fff;animation:jumpFlash .13s linear 6}.jumpscare b{font-size:clamp(30px,7vw,70px);text-shadow:0 0 25px #f33}.monster-face{font:900 clamp(70px,16vw,180px)/.7 monospace;letter-spacing:.05em;color:#f2e5cf;text-shadow:0 0 50px #b4100a}.monster-face span{display:block;margin-top:38px;font-size:.5em;color:#210201;text-align:center}@keyframes jumpFlash{50%{filter:brightness(2.2) contrast(1.7)}}.round-result{position:absolute;z-index:70;inset:0;display:grid;place-items:center;background:rgba(2,2,2,.76);backdrop-filter:blur(7px)}.round-result>div{width:min(450px,calc(100% - 30px));padding:28px;text-align:center;border-radius:24px;border:1px solid rgba(229,206,173,.17);background:linear-gradient(145deg,#1d1915,#090807);box-shadow:0 30px 90px #000}.round-result svg{width:52px;height:52px;color:#dda14a}.round-result h2{margin:9px 0 3px;font-size:25px}.round-result p{font-size:10px;color:#9b8c79}.round-result button{min-height:43px;margin-top:12px;padding:0 18px;border:1px solid #d69b47;border-radius:11px;background:#6e461e;color:#ffe1aa;font-weight:900}.horror-loading{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,#292015,#070706 55%);color:#efe1cb}.horror-loading h1{margin:8px 0 0;font-size:34px}.horror-loading p{margin:3px;color:#968775;font-size:11px}

@media(max-width:900px){.ghost-auth-card{width:min(610px,100%)}.horror-topbar{grid-template-columns:1fr auto;gap:6px}.horror-brand{padding:6px 9px}.horror-brand b{font-size:11px}.horror-brand small{font-size:7px}.round-clock{min-width:120px;padding:5px 10px}.round-clock b{font-size:17px}.horror-stats{grid-column:1/-1;justify-self:center;margin-top:-2px}.horror-menu{top:116px}.prep-banner{top:117px}.heartbeat{top:117px}.detector-hud{top:167px}.horror-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-grid-horror{grid-template-columns:repeat(3,1fr)}.horror-chat{width:min(360px,42vw)}}
@media(max-width:640px){.ghost-auth-shell{padding:10px;align-items:flex-start}.ghost-auth-card{margin:auto 0;padding:18px 15px;border-radius:21px}.ghost-auth-card h1{font-size:43px}.ghost-auth-sub{font-size:11px;line-height:1.65}.ghost-form-grid{grid-template-columns:1fr}.ghost-feature-row span{font-size:8px}.horror-topbar{top:max(5px,env(safe-area-inset-top));right:6px;left:6px}.horror-brand{max-width:128px}.horror-brand>svg{width:21px}.horror-brand small{white-space:nowrap;max-width:90px;overflow:hidden;text-overflow:ellipsis}.round-clock{min-width:99px}.round-clock small{font-size:6px}.round-clock b{font-size:14px}.horror-stats{gap:2px;padding:3px}.horror-stats span{min-height:25px;padding:3px 5px;font-size:8px}.horror-stats span:nth-last-child(-n+2){display:none}.prep-banner{top:86px;width:calc(100% - 20px);padding:7px 9px}.prep-banner>svg{width:19px}.prep-banner b{font-size:9px}.prep-banner small{font-size:7px}.horror-menu{top:92px;right:6px;padding:3px;gap:3px}.horror-menu button{width:44px;min-height:43px}.horror-menu span{display:none}.horror-menu svg{width:17px}.heartbeat{top:90px;left:6px;padding:6px 8px}.heartbeat>svg{width:17px}.detector-hud{top:134px;left:6px;padding:6px 8px}.voice-hud{left:6px;bottom:max(68px,calc(62px + env(safe-area-inset-bottom)));gap:3px}.voice-hud button{min-height:40px;padding:5px 7px}.voice-hud button span{display:none}.voice-hud svg{width:17px}.voice-feed{left:6px;bottom:max(113px,calc(107px + env(safe-area-inset-bottom)))}.horror-controls{right:6px;bottom:max(5px,env(safe-area-inset-bottom));height:92px}.horror-controls .joystick{width:88px!important;height:88px!important}.horror-controls .joystick-knob{width:38px!important;height:38px!important}.sprint-btn{width:45px;height:45px}.sprint-btn span{display:none}.sprint-btn svg{width:18px}.horror-chat{bottom:max(5px,env(safe-area-inset-bottom));width:min(44vw,235px);height:39px;grid-template-columns:16px 1fr 34px}.horror-chat>svg{width:13px}.horror-chat input{font-size:8px}.horror-chat button{height:29px}.emotes{bottom:max(48px,calc(43px + env(safe-area-inset-bottom)));gap:2px;padding:3px}.emotes button{width:28px;height:28px;font-size:14px}.emotes button:nth-child(n+5){display:none}.interact-btn{bottom:max(86px,calc(80px + env(safe-area-inset-bottom)));min-width:145px;min-height:39px}.interact-btn span{font-size:8px}.power-pill{right:55px;top:92px;font-size:7px}.power-pill.silence{top:120px}.horror-modal{padding:7px;align-items:flex-end}.horror-panel{width:100%;max-height:86vh;border-radius:22px 22px 0 0;padding:17px 10px 14px}.horror-panel-title h2{font-size:17px}.horror-panel-title p{font-size:8px}.horror-store-grid{grid-template-columns:1fr}.character-grid-horror{grid-template-columns:repeat(2,1fr)}.character-card-horror{min-height:125px}.semibot-mini{transform:scale(.84);margin:-5px}.jumpscare b{font-size:33px}}
@media(max-width:840px) and (orientation:landscape){.horror-topbar{grid-template-columns:auto auto 1fr;top:4px}.horror-stats{grid-column:auto;justify-self:end;margin:0}.horror-brand small{display:none}.horror-menu{top:56px}.prep-banner{top:58px;width:420px}.heartbeat{top:58px}.detector-hud{top:101px}.voice-hud{bottom:5px}.voice-feed{bottom:53px}.horror-controls{bottom:3px}.horror-controls .joystick{width:82px!important;height:82px!important}.horror-chat{bottom:4px;width:min(34vw,320px)}.emotes{bottom:48px}.interact-btn{bottom:88px}.power-pill{top:59px}.power-pill.silence{top:88px}}
.horror-name{white-space:nowrap;padding:4px 7px;border-radius:999px;border:1px solid rgba(231,207,177,.16);background:rgba(7,6,5,.78);color:#efe1cc;font-size:9px;font-weight:900;box-shadow:0 7px 18px #0008}.horror-name.talking{border-color:rgba(101,201,139,.45);background:rgba(18,53,33,.82);box-shadow:0 0 18px rgba(82,215,132,.16)}.horror-name.ghosted{opacity:.45}.horror-speech{position:relative;max-width:170px;white-space:normal;text-align:center;padding:6px 9px;border-radius:11px;background:rgba(239,228,206,.92);color:#211913;font-size:8px;font-weight:800;box-shadow:0 9px 25px #0007}.horror-speech:after{content:"";position:absolute;left:50%;bottom:-5px;transform:translateX(-50%);border:5px solid transparent;border-top-color:rgba(239,228,206,.92);border-bottom:0}.treasure-world-label,.exit-world,.monster-tag{white-space:nowrap;padding:5px 8px;border-radius:9px;background:rgba(12,9,6,.82);border:1px solid rgba(233,180,84,.27);color:#f1d39d;font-size:8px;font-weight:900;box-shadow:0 8px 22px #0007}.exit-world.open{border-color:rgba(113,220,137,.42);color:#b9f1c2;background:rgba(13,48,23,.83)}.exit-world.locked{border-color:rgba(213,78,68,.26);color:#e5aaa3}.monster-tag{border-color:rgba(220,65,58,.5);background:rgba(91,13,10,.86);color:#ffc0b9;animation:heartBeat .5s ease-in-out infinite}

/* ====================== GHOSTS TLGAWY v1.2.0 — BRIGHT CINEMATIC + PARTY + PUBG CONTROLS ====================== */
html,body,#root{height:100%;height:100dvh;overscroll-behavior:none;background:#090a0a}.ghost-auth-shell,.horror-shell,.ghost-lobby{min-height:100dvh;height:100dvh}
.horror-shell:after{box-shadow:inset 0 0 120px 18px rgba(0,0,0,.42)!important;background:linear-gradient(180deg,rgba(0,0,0,.02),transparent 22%,transparent 78%,rgba(0,0,0,.14));}.horror-shell.danger:after{box-shadow:inset 0 0 125px 24px rgba(72,8,6,.45)!important}.horror-scene{background:#17191c;cursor:crosshair}.horror-scene canvas{filter:saturate(1.03) contrast(1.02)}

/* login / registration: desktop two-column, small screens collapse cleanly */
.ghost-auth-shell{padding:clamp(10px,2vw,28px);background:radial-gradient(circle at 18% 28%,rgba(62,99,74,.28),transparent 32%),radial-gradient(circle at 76% 18%,rgba(127,65,42,.24),transparent 28%),linear-gradient(145deg,#0c0d0c,#171714 48%,#090a09)}
.ghost-auth-layout{position:relative;z-index:2;width:min(1180px,100%);min-height:min(720px,calc(100dvh - 40px));display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);border:1px solid rgba(239,217,185,.16);border-radius:32px;overflow:hidden;background:rgba(11,11,10,.82);box-shadow:0 42px 120px rgba(0,0,0,.64)}
.ghost-auth-layout .ghost-auth-card{width:auto;border:0;border-radius:0;background:linear-gradient(150deg,rgba(30,27,23,.97),rgba(12,12,11,.98));box-shadow:none;display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,3.5vw,46px);overflow:auto}
.ghost-auth-visual{position:relative;min-height:620px;overflow:hidden;background:radial-gradient(circle at 52% 55%,rgba(104,128,82,.22),transparent 30%),linear-gradient(180deg,#111517,#151a18 48%,#0a0b0b);isolation:isolate}
.ghost-auth-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px);background-size:42px 42px;opacity:.34;transform:perspective(520px) rotateX(56deg) scale(1.5);transform-origin:bottom}
.ghost-auth-visual:after{content:"";position:absolute;left:7%;right:7%;bottom:8%;height:37%;border:1px solid rgba(162,182,159,.14);border-bottom:0;background:linear-gradient(180deg,rgba(36,45,42,.58),rgba(12,14,13,.84));clip-path:polygon(0 20%,12% 20%,12% 0,88% 0,88% 20%,100% 20%,100% 100%,0 100%);z-index:-1}
.auth-visual-copy{position:absolute;z-index:4;right:7%;left:7%;bottom:6%;padding:18px 20px;border-radius:17px;border:1px solid rgba(218,229,211,.12);background:rgba(9,12,11,.76);backdrop-filter:blur(14px)}.auth-visual-copy>span{font-size:9px;letter-spacing:.2em;color:#91a995;font-weight:900}.auth-visual-copy h2{max-width:520px;margin:6px 0;font-size:clamp(20px,2.8vw,36px);line-height:1.35;color:#f0eadc}.auth-visual-copy p{margin:0;color:#a9afa5;font-size:11px;line-height:1.75}.auth-hud{position:absolute;z-index:5;top:28px;left:30px;display:flex;align-items:baseline;gap:5px;font-family:monospace;text-shadow:0 0 15px currentColor}.auth-hud b{font-size:25px}.auth-hud span{font-size:12px}.auth-hud.hp{color:#75f498}.auth-hud.energy{top:65px;color:#eed962}
.auth-bot-stage{position:absolute;z-index:2;inset:13% 8% 26%;display:flex;align-items:flex-end;justify-content:center;gap:2%}.auth-bot{position:relative;width:25%;max-width:145px;aspect-ratio:.68;border-radius:46% 46% 25% 25%/31% 31% 19% 19%;background:linear-gradient(90deg,color-mix(in srgb,var(--bot) 68%,#111),var(--bot) 40%,color-mix(in srgb,var(--bot) 72%,#fff) 58%,color-mix(in srgb,var(--bot) 70%,#111));box-shadow:inset -16px 0 24px #0005,0 28px 45px #0009;border:1px solid rgba(255,255,255,.13)}.auth-bot:after{content:"";position:absolute;left:6%;right:6%;top:55%;height:3px;background:#111c;box-shadow:0 15px #1118}.auth-bot i{position:absolute;z-index:2;top:12%;width:45%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 38% 30%,#fff,#ddd8c8 64%,#9d9b91);box-shadow:0 6px 8px #0005}.auth-bot i:after{content:"";position:absolute;width:24%;aspect-ratio:1;border-radius:50%;background:#111;top:42%;left:43%}.auth-bot i:first-child{right:6%;transform:rotate(8deg)}.auth-bot i:nth-child(2){left:6%;transform:rotate(-7deg)}.auth-bot span{position:absolute;left:18%;right:18%;top:51%;height:4%;border-radius:50%;background:#080908}.auth-bot em{position:absolute;left:12%;right:12%;bottom:-13%;height:22%;background:linear-gradient(90deg,transparent 0 20%,var(--bot) 21% 38%,transparent 39% 62%,var(--bot) 63% 80%,transparent 81%);clip-path:polygon(0 0,100% 0,86% 100%,66% 100%,58% 0,42% 0,34% 100%,14% 100%)}.auth-bot.green{--bot:#5c8f3e;transform:scale(.88) translateY(4%)}.auth-bot.red{--bot:#b84538;transform:scale(1.04)}.auth-bot.blue{--bot:#41668e;transform:scale(.9) translateY(7%)}.auth-beam{position:absolute;z-index:1;width:42%;height:34%;left:29%;top:43%;background:conic-gradient(from 165deg at 50% 0,transparent 0 41%,rgba(227,226,175,.21) 44% 56%,transparent 59%);filter:blur(4px)}
.ghost-auth-layout .ghost-auth-card h1{font-size:clamp(45px,5.4vw,74px)}.ghost-auth-layout .ghost-auth-sub{font-size:12px}.ghost-auth-layout .ghost-form-grid{gap:8px}

/* Party / friend lobby */
.ghost-lobby{position:relative;width:100%;overflow:auto;color:#eee9dd;background:linear-gradient(145deg,#101313,#191c19 48%,#0b0d0c);padding:18px clamp(12px,3vw,42px) 26px}.lobby-bg{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 15% 22%,rgba(75,120,84,.18),transparent 29%),radial-gradient(circle at 80% 20%,rgba(150,79,55,.14),transparent 25%);opacity:.95}.lobby-header,.lobby-hero,.lobby-grid,.lobby-help{position:relative;z-index:2;width:min(1280px,100%);margin-inline:auto}.lobby-header{min-height:56px;display:flex;align-items:center;gap:10px}.lobby-logo{display:flex;align-items:center;gap:9px;margin-inline-end:auto}.lobby-logo>svg{width:29px;height:29px;color:#e8b45a}.lobby-logo b,.lobby-logo small{display:block}.lobby-logo b{font-size:14px}.lobby-logo small{font-size:7px;letter-spacing:.14em;color:#849088}.lobby-wallet{display:flex;gap:5px;align-items:center}.lobby-wallet span,.lobby-wallet button,.lobby-logout{min-height:34px;padding:5px 9px;border:1px solid rgba(225,224,208,.12);border-radius:10px;background:rgba(16,19,18,.74);color:#e8e4da;font-size:9px;font-weight:800}.lobby-wallet button,.lobby-logout{display:flex;align-items:center;gap:5px}.lobby-wallet svg,.lobby-logout svg{width:15px}.lobby-logout{border-color:rgba(210,82,72,.2);color:#e39189}.lobby-hero{min-height:300px;margin-top:8px;border-radius:27px;border:1px solid rgba(219,228,212,.12);overflow:hidden;display:grid;grid-template-columns:.95fr 1.05fr;background:linear-gradient(120deg,rgba(28,34,31,.98),rgba(12,14,13,.92));box-shadow:0 26px 70px #0007}.lobby-hero-copy{padding:clamp(28px,4vw,58px);align-self:center}.lobby-kicker{font-size:9px;letter-spacing:.22em;color:#8ca08f;font-weight:900}.lobby-hero h1{margin:5px 0 8px;font-size:clamp(37px,6vw,72px);line-height:1.05}.lobby-hero h1 em{font-style:normal;color:#dd7a59}.lobby-hero-copy>p:not(.lobby-kicker){max-width:570px;color:#a9b0a7;line-height:1.9;font-size:11px}.lobby-hero-actions{display:flex;gap:8px;align-items:center;margin-top:16px}.lobby-primary{border:1px solid rgba(247,190,91,.5)!important;background:linear-gradient(135deg,#e5a64a,#9c5d2c)!important;color:#1c1008!important;font-weight:900!important;box-shadow:0 12px 30px rgba(172,93,31,.2)}.lobby-primary,.lobby-danger,.join-code-form button,.quick-wide{min-height:43px;border-radius:11px;padding:8px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.lobby-primary svg,.lobby-danger svg,.join-code-form svg,.quick-wide svg{width:17px}.lobby-status-dot{font-size:10px;color:#9dcc9d}.lobby-semi-scene{position:relative;overflow:hidden;background:radial-gradient(ellipse at 55% 72%,rgba(125,147,116,.23),transparent 32%),linear-gradient(160deg,#1a201f,#0e1111 58%);display:flex;align-items:flex-end;justify-content:center;gap:1.5%;padding-bottom:34px}.lobby-semi-scene:before{content:"";position:absolute;inset:12% 8% 10%;border:1px solid rgba(205,215,201,.1);background:linear-gradient(180deg,transparent 0 54%,rgba(255,255,255,.025) 55% 56%,transparent 57%),linear-gradient(90deg,rgba(255,255,255,.025),transparent 30%,transparent 70%,rgba(255,255,255,.025));clip-path:polygon(0 18%,20% 18%,20% 0,80% 0,80% 18%,100% 18%,100% 100%,0 100%)}.lobby-bot{position:relative;z-index:2;width:22%;max-width:115px;aspect-ratio:.65;border-radius:44% 44% 24% 24%;background:linear-gradient(90deg,color-mix(in srgb,var(--bot) 66%,#111),var(--bot),color-mix(in srgb,var(--bot) 70%,#ddd));box-shadow:inset -12px 0 17px #0005,0 19px 30px #0009}.lobby-bot:after{content:"";position:absolute;left:7%;right:7%;top:54%;height:3px;background:#121414;box-shadow:0 12px #1119}.lobby-bot i{position:absolute;top:12%;width:44%;aspect-ratio:1;border-radius:50%;background:#e5e3d8;box-shadow:0 5px 7px #0005}.lobby-bot i:after{content:"";position:absolute;left:42%;top:42%;width:22%;aspect-ratio:1;border-radius:50%;background:#111}.lobby-bot i:first-child{left:5%;transform:rotate(-8deg)}.lobby-bot i:nth-child(2){right:5%;transform:rotate(8deg)}.lobby-bot span{position:absolute;left:17%;right:17%;top:50%;height:5px;border-radius:50%;background:#0a0b0b}.lobby-bot.bot-0{--bot:#a84538;transform:scale(1.04)}.lobby-bot.bot-1{--bot:#6e8d3a;transform:scale(.88) translateY(4%)}.lobby-bot.bot-2{--bot:#426589;transform:scale(.9) translateY(6%)}.lobby-flash{position:absolute;z-index:1;bottom:12%;left:38%;width:24%;height:50%;background:linear-gradient(180deg,rgba(240,220,159,.24),transparent);clip-path:polygon(40% 0,60% 0,100% 100%,0 100%);filter:blur(3px)}
.lobby-grid{display:grid;grid-template-columns:1.35fr .9fr .9fr;gap:12px;margin-top:12px;align-items:start}.lobby-card{border:1px solid rgba(220,225,211,.11);border-radius:20px;background:linear-gradient(145deg,rgba(25,29,27,.95),rgba(12,14,13,.95));padding:16px;box-shadow:0 16px 42px #0004}.party-card{grid-row:span 2}.lobby-card-title{display:flex;align-items:center;gap:9px;margin-bottom:13px}.lobby-card-title>svg{width:25px;height:25px;color:#dda65d}.lobby-card-title h2,.lobby-card-title p{margin:0}.lobby-card-title h2{font-size:15px}.lobby-card-title p{font-size:8px;color:#8e9890;margin-top:2px}.lobby-form{display:grid;gap:9px}.lobby-form label{display:grid;gap:5px;font-size:9px;font-weight:900;color:#bfc5bb}.lobby-form input,.join-code-form input,.friend-add input{min-height:41px;border:1px solid rgba(224,226,214,.12);border-radius:10px;background:#0a0d0c;color:#f5efe4;outline:none;padding:8px 10px}.lobby-form input:focus,.join-code-form input:focus,.friend-add input:focus{border-color:rgba(229,171,88,.42)}.privacy-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px}.privacy-switch button{min-height:36px;border:1px solid rgba(225,225,209,.1);border-radius:9px;background:#0e1110;color:#8e998f}.privacy-switch button.active{background:#29352c;color:#d9e6d8;border-color:rgba(132,180,139,.3)}.lobby-or{text-align:center;color:#687169;font-size:8px;margin:7px 0}.join-code-form{display:grid;grid-template-columns:1fr auto;gap:6px}.join-code-form input{font-family:monospace;letter-spacing:.24em;text-align:center;font-size:17px;text-transform:uppercase}.join-code-form button{border:1px solid rgba(216,177,111,.24);background:#382c1e;color:#e8c78e;font-weight:900}.quick-wide{width:100%;margin-top:10px;border:1px solid rgba(136,171,143,.2);background:#1a2920;color:#c7dbc9}.quick-wide span,.quick-wide b,.quick-wide small{display:block;text-align:start}.quick-wide small{font-size:7px;color:#829489}.lobby-code{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 9px;padding:11px 12px;border-radius:14px;border:1px solid rgba(227,180,97,.2);background:#17130e;margin-bottom:11px}.lobby-code small{font-size:7px;color:#927e65}.lobby-code b{font:900 25px/1 monospace;letter-spacing:.16em;color:#efc77d;direction:ltr}.lobby-code button{grid-column:2;grid-row:1/3;border:0;border-radius:9px;background:#362819;color:#dcb878;padding:8px 10px;display:flex;align-items:center;gap:5px;font-size:8px}.lobby-code svg{width:14px}.lobby-members,.friend-list,.request-stack,.public-server-list,.invite-list{display:grid;gap:6px;max-height:280px;overflow:auto;scrollbar-width:thin}.lobby-members article,.friend-list article,.request-stack>div,.public-server-list article,.invite-list article{min-height:48px;display:flex;align-items:center;gap:8px;padding:7px 8px;border:1px solid rgba(226,228,216,.08);border-radius:11px;background:rgba(255,255,255,.018)}.lobby-members article.host{border-color:rgba(223,166,82,.22);background:rgba(113,72,29,.08)}.member-avatar{width:31px;height:31px;border-radius:9px;background:#242923;display:grid;place-items:center}.member-avatar svg{width:16px}.lobby-members article>div:nth-child(2),.friend-list article>div,.request-stack span,.public-server-list article>div,.invite-list article>div{min-width:0;flex:1}.lobby-members b,.lobby-members small,.friend-list b,.friend-list small,.request-stack b,.request-stack small,.public-server-list b,.public-server-list small,.invite-list b,.invite-list small{display:block}.lobby-members b,.friend-list b,.request-stack b,.public-server-list b,.invite-list b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lobby-members small,.friend-list small,.request-stack small,.public-server-list small,.invite-list small{font-size:7px;color:#7f8981}.lobby-members .online,.lobby-members .offline{font-size:7px}.lobby-members .online{color:#8fd59b}.lobby-members .offline{color:#777}.friend-dot{width:7px;height:7px;border-radius:50%;background:#565c57}.friend-dot.on{background:#70d68a;box-shadow:0 0 8px #70d68a}.friend-list button,.request-stack button,.public-server-list button,.invite-list button{border:1px solid rgba(216,178,110,.18);border-radius:8px;background:#30261a;color:#d8b77f;padding:6px 8px;font-size:7px;display:flex;align-items:center;gap:4px}.friend-list svg{width:12px}.friend-add{display:grid;grid-template-columns:1fr 38px;gap:5px;margin-bottom:9px}.friend-add button{border:1px solid rgba(131,179,140,.2);border-radius:9px;background:#203026;color:#a9d1af}.friend-add svg{width:16px}.lobby-party-actions{display:flex;gap:7px;margin-top:10px;align-items:stretch}.lobby-party-actions>.lobby-primary{flex:1}.lobby-danger{border:1px solid rgba(213,80,70,.22);background:#3a1b19;color:#de8a82;font-size:8px}.waiting-host{flex:1;min-height:43px;border-radius:11px;border:1px solid rgba(139,166,141,.16);background:#17211a;color:#9eb5a0;display:flex;align-items:center;justify-content:center;gap:7px;font-size:8px}.waiting-host svg{width:15px}.lobby-empty{padding:24px 10px;text-align:center;color:#747e76;font-size:8px;border:1px dashed rgba(218,223,211,.1);border-radius:11px}.invites-card{grid-column:2/4}.lobby-help{margin-top:12px;display:flex;align-items:center;justify-content:center;gap:7px;color:#78837b;font-size:8px}.lobby-help svg{width:15px}

/* Desktop: actual mouse capture + useful control hints */
.desktop-control-guide,.mouse-lock-hint{position:absolute;z-index:23;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;border:1px solid rgba(225,218,196,.11);background:rgba(8,10,9,.6);backdrop-filter:blur(10px);color:#afa999;border-radius:999px;padding:6px 10px;pointer-events:none}.desktop-control-guide{bottom:12px;font-size:7px}.desktop-control-guide svg,.mouse-lock-hint svg{width:14px}.mouse-lock-hint{top:86px;font-size:8px;animation:hintPulse 1.8s ease-in-out infinite}@keyframes hintPulse{50%{opacity:.58}}
.mobile-look-zone{display:none}.mobile-landscape-btn{display:none}.horror-menu button{transition:transform .12s ease,border-color .12s ease,background .12s ease}.horror-menu button:active,.voice-hud button:active,.emotes button:active{transform:scale(.94)}

/* Tablet / mobile: PUBG-like two thumb zones */
@media(max-width:900px),(pointer:coarse){
  .ghost-auth-layout{grid-template-columns:1fr;min-height:auto;max-width:640px;margin:auto}.ghost-auth-visual{display:none}.ghost-auth-layout .ghost-auth-card{border-radius:25px;padding:clamp(18px,5vw,30px);max-height:none}.ghost-auth-shell{overflow:auto;align-items:flex-start}.ghost-auth-layout .ghost-auth-card h1{font-size:clamp(42px,12vw,68px)}
  .ghost-lobby{padding:8px 8px 18px}.lobby-header{min-height:48px}.lobby-wallet span:nth-child(1){display:none}.lobby-logout span{display:none}.lobby-hero{grid-template-columns:1fr;min-height:auto}.lobby-hero-copy{padding:24px 20px}.lobby-hero h1{font-size:clamp(38px,10vw,60px)}.lobby-semi-scene{min-height:220px;order:-1}.lobby-grid{grid-template-columns:1fr 1fr}.party-card{grid-column:1/-1;grid-row:auto}.invites-card{grid-column:1/-1}.lobby-help{padding:0 10px;text-align:center}
  .desktop-control-guide,.mouse-lock-hint{display:none}.mobile-look-zone{display:block;position:absolute;z-index:7;right:0;top:0;bottom:0;width:52%;touch-action:none;background:transparent}.horror-topbar,.horror-menu,.voice-hud,.horror-controls,.emotes,.horror-chat,.interact-btn,.mobile-landscape-btn,.prep-banner,.heartbeat,.detector-hud,.power-pill{z-index:24}.horror-controls{right:auto!important;left:max(10px,env(safe-area-inset-left))!important;direction:ltr!important;height:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important}.horror-controls .joystick{width:118px!important;height:118px!important;border:2px solid rgba(224,213,187,.2);background:radial-gradient(circle,rgba(196,170,117,.12),rgba(8,10,9,.4))}.horror-controls .joystick-knob{width:48px!important;height:48px!important}.sprint-btn{position:absolute;left:98px;bottom:76px;width:53px;height:53px;background:rgba(54,42,25,.83)}
  .voice-hud{left:auto!important;right:max(8px,env(safe-area-inset-right))!important;bottom:max(12px,env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:48px 48px}.voice-hud button{width:48px;min-height:48px!important;height:48px;padding:0!important;border-radius:50%!important;justify-content:center}.voice-hud button span{display:none!important}.voice-hud svg{width:20px!important}.horror-chat{left:50%!important;transform:translateX(-50%);bottom:max(8px,env(safe-area-inset-bottom))!important;width:min(38vw,320px)!important;z-index:25}.emotes{left:50%!important;bottom:max(53px,calc(47px + env(safe-area-inset-bottom)))!important}.interact-btn{right:max(74px,calc(66px + env(safe-area-inset-right)));left:auto!important;bottom:max(70px,calc(62px + env(safe-area-inset-bottom)))!important;transform:none!important;min-width:128px!important}.horror-menu{right:max(6px,env(safe-area-inset-right))!important;top:58px!important;display:flex!important;flex-direction:column}.horror-menu button{width:45px!important;min-height:43px!important}.horror-menu span{display:none!important}.mobile-landscape-btn{display:flex;position:absolute;z-index:25;right:max(61px,calc(55px + env(safe-area-inset-right)));top:max(8px,env(safe-area-inset-top));min-height:38px;border:1px solid rgba(222,193,145,.17);border-radius:11px;background:rgba(11,13,12,.74);color:#dfcfb6;align-items:center;gap:5px;padding:5px 8px;font-size:7px;backdrop-filter:blur(10px)}.mobile-landscape-btn svg{width:15px}.voice-feed{right:max(8px,env(safe-area-inset-right));left:auto!important;bottom:max(66px,calc(58px + env(safe-area-inset-bottom)))!important}.horror-shell:after{box-shadow:inset 0 0 80px 8px rgba(0,0,0,.33)!important}
}
@media(max-width:640px){
  .ghost-auth-shell{padding:8px}.ghost-auth-layout{width:100%;border-radius:20px;min-height:calc(100dvh - 16px)}.ghost-auth-layout .ghost-auth-card{padding:18px 14px;justify-content:flex-start}.ghost-logo{font-size:9px}.ghost-kicker{margin-top:13px}.ghost-auth-layout .ghost-auth-card h1{font-size:42px}.ghost-auth-layout .ghost-auth-sub{font-size:10px;line-height:1.65;margin:10px 0}.ghost-feature-row{gap:4px}.ghost-feature-row span{font-size:7px;padding:5px 7px}.ghost-auth-tabs{margin:6px 0 10px}.ghost-auth-form{gap:8px}.ghost-auth-form input{min-height:41px}.ghost-warning{font-size:8px;margin-top:10px}.ghost-form-grid{grid-template-columns:1fr}
  .lobby-grid{grid-template-columns:1fr}.friends-card,.servers-card,.invites-card{grid-column:1}.lobby-hero-copy{padding:20px 15px}.lobby-semi-scene{min-height:180px}.lobby-header{gap:5px}.lobby-logo small{display:none}.lobby-wallet span{padding:4px 6px}.lobby-hero-copy>p:not(.lobby-kicker){font-size:9px}.lobby-card{padding:12px;border-radius:16px}
  .horror-brand{display:none!important}.horror-topbar{grid-template-columns:auto 1fr!important;right:57px!important;left:6px!important}.round-clock{justify-self:start!important;min-width:90px!important}.horror-stats{grid-column:auto!important;justify-self:end!important;margin:0!important;max-width:55vw;overflow:hidden}.horror-stats span{font-size:7px!important}.horror-menu{top:51px!important}.mobile-landscape-btn{right:auto;left:6px;top:53px}.prep-banner{top:56px!important;width:min(58vw,330px)!important}.heartbeat{top:56px!important}.detector-hud{top:99px!important}.horror-controls .joystick{width:105px!important;height:105px!important}.sprint-btn{left:87px;bottom:68px;width:48px;height:48px}.horror-chat{width:34vw!important}.horror-chat input{padding-inline:3px}.emotes button:nth-child(n+4){display:none}.interact-btn{right:64px!important;bottom:66px!important;min-width:115px!important}.mobile-look-zone{width:55%}
}
@media(max-height:560px) and (orientation:landscape){
  .ghost-auth-shell{padding:6px;align-items:flex-start}.ghost-auth-layout{grid-template-columns:.85fr 1fr;min-height:calc(100dvh - 12px);max-width:1040px}.ghost-auth-visual{display:block;min-height:calc(100dvh - 12px)}.ghost-auth-layout .ghost-auth-card{padding:12px 18px;overflow:auto;max-height:calc(100dvh - 12px)}.auth-visual-copy{padding:8px 11px}.auth-visual-copy h2{font-size:18px}.auth-visual-copy p{display:none}.ghost-auth-layout .ghost-auth-card h1{font-size:37px}.ghost-auth-layout .ghost-auth-sub{font-size:8px;line-height:1.5;margin:6px 0}.ghost-feature-row{margin-bottom:7px}.ghost-feature-row span{font-size:6px;padding:4px 6px}.ghost-auth-tabs{margin:4px 0 6px}.ghost-auth-tabs button{min-height:31px;font-size:8px}.ghost-auth-form{gap:5px}.ghost-auth-form label{font-size:8px}.ghost-auth-form input{min-height:34px;padding:6px 8px}.ghost-primary{min-height:34px}.ghost-warning{display:none}.ghost-form-grid{gap:5px}
  .ghost-lobby{padding:5px 8px 12px}.lobby-header{min-height:39px}.lobby-hero{min-height:180px;grid-template-columns:.9fr 1.1fr}.lobby-semi-scene{min-height:180px;order:initial}.lobby-hero-copy{padding:16px}.lobby-hero h1{font-size:35px}.lobby-hero-copy>p:not(.lobby-kicker){font-size:8px;line-height:1.5}.lobby-grid{grid-template-columns:1.25fr .9fr .9fr;gap:7px}.party-card{grid-column:auto}.lobby-card{padding:9px}.lobby-card-title{margin-bottom:6px}.lobby-card-title h2{font-size:11px}.lobby-members,.friend-list,.request-stack,.public-server-list,.invite-list{max-height:125px}.invites-card{grid-column:2/4}.lobby-help{display:none}
  .horror-topbar{top:4px!important}.horror-stats span:nth-last-child(-n+2){display:flex!important}.horror-menu{top:49px!important}.horror-controls{bottom:3px!important;left:5px!important}.horror-controls .joystick{width:88px!important;height:88px!important}.horror-controls .joystick-knob{width:38px!important;height:38px!important}.sprint-btn{left:73px;bottom:57px;width:43px;height:43px}.voice-hud{right:5px!important;bottom:4px!important;grid-template-columns:43px 43px}.voice-hud button{width:43px;height:43px;min-height:43px!important}.horror-chat{bottom:4px!important;width:min(30vw,260px)!important}.emotes{bottom:46px!important}.interact-btn{right:58px!important;bottom:54px!important;min-height:36px!important}.mobile-landscape-btn{display:none}.prep-banner{top:52px!important}.heartbeat{top:52px!important}.detector-hud{top:94px!important}
}

/* ======================================================================
   Ghosts TLGAWY legacy movement / voice upload / mobile gameplay foundation
   ====================================================================== */
.voice-file-input{display:none!important}
.voice-hud button.uploading{opacity:.68;cursor:wait}
.jump-btn{width:59px;height:59px;border-radius:50%;border:1px solid rgba(139,184,226,.28);background:linear-gradient(145deg,#213b52,#111d27);color:#b9ddff;display:grid;place-items:center;align-content:center;gap:1px;box-shadow:0 10px 30px rgba(0,0,0,.4);touch-action:none;user-select:none;-webkit-user-select:none}
.jump-btn:active{transform:scale(.94);background:#2b506d}.jump-btn svg{width:21px}.jump-btn span{font-size:8px;font-weight:900}
.horror-controls button{-webkit-tap-highlight-color:transparent}
.horror-scene{overscroll-behavior:none}
.horror-scene canvas{image-rendering:auto}

/* make the game readable like the supplied references without killing the horror mood */
.horror-shell:after{box-shadow:inset 0 0 95px 12px rgba(0,0,0,.31)!important;background:linear-gradient(180deg,rgba(0,0,0,.015),transparent 24%,transparent 76%,rgba(0,0,0,.11))}
.horror-shell.danger:after{box-shadow:inset 0 0 110px 18px rgba(72,8,6,.38)!important}

@media(max-width:900px),(pointer:coarse){
  .voice-hud{grid-template-columns:48px 48px 48px!important}
  .voice-hud button{width:48px!important;height:48px!important;min-height:48px!important}
  .horror-controls{gap:7px!important}
  .jump-btn{position:absolute;left:101px;bottom:12px;width:53px;height:53px}
  .sprint-btn{left:98px;bottom:76px}
}

@media(max-width:640px),(max-height:430px) and (pointer:coarse){
  .voice-hud{grid-template-columns:43px 43px 43px!important;gap:4px!important}
  .voice-hud button{width:43px!important;height:43px!important;min-height:43px!important}
  .jump-btn{left:75px;bottom:4px;width:43px;height:43px}
  .jump-btn svg{width:18px}.jump-btn span{display:none}
  .sprint-btn{left:73px;bottom:57px}
}

@media(orientation:portrait) and (pointer:coarse){
  .horror-shell:before{content:"لف الهاتف للوضع العرضي للحصول على أفضل تحكم";position:absolute;z-index:60;left:50%;top:50%;transform:translate(-50%,-50%);width:min(82vw,360px);padding:13px 16px;border-radius:16px;background:rgba(10,11,10,.84);border:1px solid rgba(226,199,157,.2);color:#ead7ba;text-align:center;font-size:11px;font-weight:800;pointer-events:none;backdrop-filter:blur(14px)}
}
@media(min-width:901px) and (pointer:fine){.horror-controls{display:none!important}}

/* ======================================================================
   Ghosts TLGAWY v1.4.0 REVAMP — brighter horror, fast HUD, PUBG-like mobile
   ====================================================================== */
:root{
  --ghost-bg:#20292d;
  --ghost-panel:rgba(28,34,35,.82);
  --ghost-panel2:rgba(38,43,42,.92);
  --ghost-line:rgba(238,222,190,.19);
  --ghost-cream:#f5e9d5;
  --ghost-amber:#f0b95f;
  --ghost-red:#e56259;
  --ghost-green:#8fd59d;
}
.ghost-auth-shell{
  background:
    radial-gradient(circle at 18% 18%,rgba(92,145,150,.30),transparent 32%),
    radial-gradient(circle at 83% 75%,rgba(166,112,61,.22),transparent 31%),
    linear-gradient(145deg,#172126,#263136 48%,#171d20)!important;
}
.ghost-auth-layout{background:rgba(28,34,35,.87)!important;border-color:rgba(255,229,184,.22)!important;box-shadow:0 34px 100px rgba(0,0,0,.42)!important}
.ghost-auth-layout .ghost-auth-card{background:linear-gradient(145deg,rgba(44,48,46,.97),rgba(25,29,29,.98))!important}
.ghost-auth-card h1{color:#fff0d6!important;text-shadow:0 8px 24px rgba(0,0,0,.32)!important}.ghost-auth-card h1 em{color:#ef846b!important}.ghost-auth-sub{color:#d4c7b6!important}
.ghost-auth-form input{background:rgba(16,24,26,.88)!important;border-color:rgba(237,214,179,.18)!important}.ghost-auth-form input:focus{border-color:#e9b66c!important;box-shadow:0 0 0 3px rgba(233,182,108,.11)!important}
.ghost-primary{background:linear-gradient(135deg,#eeb96e,#d78454)!important;color:#251a12!important;box-shadow:0 10px 30px rgba(214,126,75,.22)!important}

.horror-shell{background:#263039!important;color:#f8ecda!important}
.horror-scene{background:#263039!important;cursor:crosshair}
.horror-scene canvas{filter:saturate(1.12) contrast(1.025) brightness(1.035)!important}
.horror-shell:after{box-shadow:inset 0 0 68px 5px rgba(0,0,0,.16)!important;background:linear-gradient(180deg,rgba(7,11,12,.02),transparent 21%,transparent 78%,rgba(7,11,12,.07))!important}
.horror-shell.danger:after{box-shadow:inset 0 0 92px 12px rgba(91,17,13,.28)!important;background:radial-gradient(circle at 50% 50%,transparent 48%,rgba(91,17,13,.13))!important}
.horror-brand,.round-clock,.horror-stats{background:linear-gradient(145deg,rgba(33,42,44,.88),rgba(22,28,29,.82))!important;border-color:rgba(244,221,184,.18)!important;box-shadow:0 10px 28px rgba(0,0,0,.25)!important}
.horror-brand small,.round-clock small{color:#b9b6aa!important}.horror-stats span{background:rgba(255,255,255,.055)!important}
.horror-menu{background:rgba(25,31,32,.78)!important;border-color:rgba(242,218,180,.18)!important}
.horror-menu button{background:linear-gradient(145deg,rgba(55,61,60,.90),rgba(31,36,36,.90))!important;border-color:rgba(241,218,182,.12)!important;color:#f3e7d3!important}
.horror-menu button:hover,.horror-menu button.active{background:linear-gradient(145deg,rgba(105,78,47,.94),rgba(48,42,35,.94))!important;border-color:rgba(245,184,89,.48)!important}
.voice-hud button{background:rgba(29,37,39,.90)!important;border-color:rgba(237,217,185,.18)!important;color:#f2e6d3!important;box-shadow:0 9px 24px rgba(0,0,0,.22)}
.voice-hud button.on{background:rgba(38,77,61,.91)!important;border-color:rgba(131,224,158,.42)!important;color:#c9f4d2!important}
.horror-chat{background:rgba(27,35,37,.90)!important;border-color:rgba(239,219,186,.18)!important}.horror-chat input{color:#fff1df!important}.horror-chat button{background:#a76d38!important;color:#fff0d4!important}
.emotes{background:rgba(24,31,32,.76)!important}.interact-btn{background:linear-gradient(135deg,rgba(196,125,58,.96),rgba(100,65,37,.96))!important;border-color:rgba(255,205,112,.52)!important;color:#fff3d7!important;box-shadow:0 10px 28px rgba(0,0,0,.28)!important}

/* Responsive action pad: movement + sprint + jump remain reachable with both thumbs. */
.horror-controls .joystick{border:2px solid rgba(225,234,235,.22)!important;background:radial-gradient(circle,rgba(126,157,160,.22),rgba(29,38,40,.68))!important;box-shadow:inset 0 0 24px rgba(155,204,209,.08),0 10px 28px rgba(0,0,0,.28)!important}
.horror-controls .joystick-knob{background:radial-gradient(circle at 35% 30%,#edf6f3,#8ca7a8 56%,#42575a)!important;box-shadow:0 0 17px rgba(199,232,233,.20)!important}
.sprint-btn{background:linear-gradient(145deg,#b57a3f,#5a4129)!important;border-color:rgba(255,211,124,.42)!important;color:#fff0c7!important}.jump-btn{background:linear-gradient(145deg,#53748b,#283c49)!important;border-color:rgba(161,211,239,.42)!important;color:#d9efff!important}
.sprint-btn:active,.jump-btn:active{filter:brightness(1.18);transform:scale(.94)}
.mobile-look-zone{cursor:grab}.mobile-look-zone:active{cursor:grabbing}

/* Render less chrome on tiny screens: the 3D scene gets the space. */
@media(max-width:900px),(pointer:coarse){
  .horror-shell:after{box-shadow:inset 0 0 42px 2px rgba(0,0,0,.12)!important}
  .horror-controls{left:max(10px,env(safe-area-inset-left))!important;right:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;gap:6px!important}
  .horror-controls .joystick{width:116px!important;height:116px!important}
  .horror-controls .joystick-knob{width:48px!important;height:48px!important}
  .sprint-btn{left:101px!important;bottom:72px!important;width:54px!important;height:54px!important}
  .jump-btn{left:101px!important;bottom:10px!important;width:54px!important;height:54px!important}
  .mobile-look-zone{width:57%!important}
  .voice-hud{right:max(8px,env(safe-area-inset-right))!important;left:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;grid-template-columns:50px 50px 50px!important;gap:6px!important}
  .voice-hud button{width:50px!important;height:50px!important;min-height:50px!important}
  .interact-btn{right:max(80px,calc(72px + env(safe-area-inset-right)))!important;left:auto!important;bottom:max(72px,calc(64px + env(safe-area-inset-bottom)))!important;min-width:132px!important}
  .horror-chat{width:min(34vw,300px)!important}
  .horror-menu{background:rgba(27,34,35,.74)!important}
}
@media(max-width:680px),(max-height:460px) and (pointer:coarse){
  .horror-controls .joystick{width:94px!important;height:94px!important}.horror-controls .joystick-knob{width:40px!important;height:40px!important}
  .sprint-btn{left:80px!important;bottom:57px!important;width:45px!important;height:45px!important}.jump-btn{left:80px!important;bottom:5px!important;width:45px!important;height:45px!important}
  .voice-hud{grid-template-columns:44px 44px 44px!important}.voice-hud button{width:44px!important;height:44px!important;min-height:44px!important}
  .horror-chat{width:min(31vw,240px)!important}.interact-btn{right:62px!important;bottom:56px!important;min-width:112px!important}
}

/* ===== Ghosts TLGAWY v1.5.0: maps + ready party ===== */
.map-picker-wrap{margin:10px 0 12px;padding:10px;border:1px solid rgba(218,181,112,.13);border-radius:14px;background:linear-gradient(145deg,rgba(73,57,38,.15),rgba(14,17,16,.72))}.map-picker-wrap.create-map{margin-top:2px}.map-picker-title{display:flex;align-items:center;gap:8px;margin-bottom:8px}.map-picker-title>svg{width:19px;color:#e1aa58}.map-picker-title b,.map-picker-title small{display:block}.map-picker-title b{font-size:9px}.map-picker-title small{font-size:7px;color:#7f8b83}.map-select-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.map-select-card{position:relative;min-width:0;min-height:86px;padding:9px 7px;border:1px solid rgba(225,226,214,.09);border-radius:11px;background:linear-gradient(155deg,#131816,#0d100f);color:#d9ddd5;text-align:start;display:grid;grid-template-columns:auto 1fr;align-items:start;gap:7px;overflow:hidden}.map-select-card:before{content:"";position:absolute;inset:auto -20% -55% 20%;height:85%;background:radial-gradient(circle,rgba(213,152,71,.14),transparent 65%);pointer-events:none}.map-select-card:hover:not(:disabled){border-color:rgba(226,175,90,.3);transform:translateY(-1px)}.map-select-card.selected{border-color:rgba(230,174,78,.58);background:linear-gradient(150deg,#302318,#161b18);box-shadow:inset 0 0 0 1px rgba(230,174,78,.08),0 7px 20px #0004}.map-select-card:disabled{cursor:default;opacity:.76}.map-select-card .map-icon{font-size:22px;line-height:1}.map-select-card b,.map-select-card small{display:block}.map-select-card b{font-size:8px;line-height:1.45}.map-select-card small{font-size:6px;color:#7f8981;line-height:1.5;margin-top:2px}.map-select-card em{grid-column:1/-1;font-style:normal;font-size:6px;color:#d3af70}.map-check{position:absolute;left:6px;top:6px;width:13px;color:#8dd69d}.party-map-banner{display:flex;align-items:center;gap:9px;margin:0 0 10px;padding:9px 11px;border-radius:12px;border:1px solid rgba(129,176,146,.14);background:linear-gradient(90deg,rgba(47,75,57,.22),rgba(18,22,20,.75))}.party-map-banner>span{font-size:24px}.party-map-banner div{flex:1}.party-map-banner small,.party-map-banner b,.party-map-banner em{display:block}.party-map-banner small{font-size:6px;color:#839087}.party-map-banner b{font-size:10px}.party-map-banner em{font-style:normal;font-size:6px;color:#d7ad68;margin-top:2px}.ready-badge{font-size:6px;padding:4px 6px;border-radius:999px;background:#292d2a;color:#7d877f;border:1px solid rgba(255,255,255,.06);white-space:nowrap}.ready-badge.is-ready{color:#99d7a2;background:#173120;border-color:rgba(108,206,127,.2)}.ready-badge.host-badge{color:#edc170;background:#352718;border-color:rgba(226,169,72,.2)}.lobby-members article.ready{border-color:rgba(91,184,111,.16);background:rgba(37,91,49,.06)}.host-start-stack{display:grid;gap:6px;flex:1}.ready-summary{min-height:27px;border:1px solid rgba(220,181,100,.12);border-radius:9px;background:#171711;color:#a99370;font-size:7px;display:flex;align-items:center;justify-content:center;gap:5px}.ready-summary.ok{color:#9bd4a3;border-color:rgba(96,188,114,.15);background:#122017}.ready-summary svg{width:13px}.ready-toggle{flex:1;min-height:43px;border:1px solid rgba(117,178,129,.18);border-radius:11px;background:#17221a;color:#9cc3a2;font-size:8px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px}.ready-toggle.active{background:#1f3b27;color:#b6e9bd;border-color:rgba(102,215,124,.28)}.ready-toggle svg{width:16px}.friend-online,.friend-away{font-size:6px;font-style:normal;margin-top:2px;display:block}.friend-online{color:#74ca88}.friend-away{color:#777}.server-map-icon{font-size:20px;width:26px;text-align:center;flex:0 0 auto}.friend-list button:disabled{opacity:.4;filter:grayscale(.4)}
@media(max-width:1000px){.map-select-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.map-select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-select-card{min-height:75px}.lobby-party-actions{flex-direction:column}.lobby-danger{min-height:38px}.ready-badge{font-size:5.5px}}
@media(max-height:520px) and (orientation:landscape){.map-picker-wrap{padding:6px;margin:5px 0}.map-select-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.map-select-card{min-height:55px;padding:5px}.map-select-card small{display:none}.map-select-card .map-icon{font-size:16px}.map-picker-title{margin-bottom:5px}.party-map-banner{padding:5px 8px;margin-bottom:5px}.lobby-members{max-height:105px}}
