:root{--gold:#d6a84a;--gold2:#f7d37a;--dark:#100b0b;--panel:rgba(18,12,12,.78);--red:#7b1d1d;--muted:#c9b893;--line:rgba(255,217,130,.22)}
*{box-sizing:border-box}body{margin:0;direction:rtl;font-family:tahoma,Arial,sans-serif;background:#090707;color:#fff;min-height:100vh}a{text-decoration:none;color:inherit}button,input,select,textarea{font-family:inherit}.page-bg{min-height:100vh;background-size:cover;background-position:center;background-attachment:fixed;position:relative}.page-bg:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at center,rgba(100,37,14,.18),rgba(0,0,0,.86));pointer-events:none}.container{position:relative;z-index:1;width:min(460px,100%);margin:0 auto;min-height:100vh;padding:16px}.auth-card,.panel-card{background:linear-gradient(180deg,rgba(38,24,18,.92),rgba(10,8,8,.92));border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 20px 60px #0008}.auth-card{margin-top:9vh}.brand-title{text-align:center;color:var(--gold2);font-size:26px;font-weight:900;margin:0 0 8px;text-shadow:0 2px 18px #000}.sub-title{text-align:center;color:var(--muted);margin:0 0 20px;font-size:13px}.form-row{margin-bottom:12px}.label{display:block;margin-bottom:7px;color:#efd28e;font-size:13px}.input,.select,.textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:#080606cc;color:#fff;padding:12px 13px;outline:none}.textarea{min-height:110px;resize:vertical}.btn{border:0;border-radius:15px;padding:12px 16px;background:linear-gradient(180deg,#f2cb6b,#9e6926);color:#180d05;font-weight:900;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:7px;box-shadow:0 10px 25px #0008}.btn.full{width:100%}.btn.dark{background:linear-gradient(180deg,#2a1c18,#100b0b);color:#f6d98c;border:1px solid var(--line)}.btn.red{background:linear-gradient(180deg,#b1392e,#641714);color:#fff}.btn.small{padding:8px 10px;border-radius:12px;font-size:12px}.flash{border-radius:14px;padding:11px 12px;margin:10px 0;background:#201915;border:1px solid var(--line);font-size:13px}.flash-error{border-color:#b53939;color:#ffb5b5}.flash-success{border-color:#5da85d;color:#caffca}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.coin-pill{display:flex;align-items:center;gap:8px;background:#120d0bcc;border:1px solid var(--line);border-radius:18px;padding:8px 12px;color:var(--gold2);font-weight:900}.coin-dot{width:18px;height:18px;border-radius:50%;background:radial-gradient(circle,#ffe28a,#b57a22);box-shadow:0 0 12px #dca93e}.home-hero{position:relative;min-height:100vh;overflow:hidden;background-size:cover;background-position:center}.home-wrap{position:relative;z-index:1;width:min(480px,100%);margin:0 auto;min-height:100vh;padding:14px}.home-head{display:grid;grid-template-columns:90px 1fr 88px;gap:9px;align-items:center}.user-mini,.shop-mini{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:8px;min-height:72px}.display-name{font-weight:900;color:#fff;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank{font-size:12px;color:var(--gold2);margin-top:4px}.shop-mini{text-align:center;color:var(--gold2);font-weight:900}.avatar-widget{width:74px;height:74px;border-radius:50%;position:relative;margin:auto;display:block;flex:0 0 auto}.avatar-widget.small{width:52px;height:52px}.avatar-widget.big{width:110px;height:110px}.avatar-img{position:absolute;inset:9%;width:82%;height:82%;border-radius:50%;object-fit:cover;background:#111}.avatar-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.side-menu{position:absolute;top:125px;display:flex;flex-direction:column;gap:11px}.side-menu.left{left:13px}.side-menu.right{right:13px}.side-btn{width:72px;min-height:58px;border-radius:18px;background:linear-gradient(180deg,rgba(44,25,18,.88),rgba(15,9,8,.88));border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#f5d88c;font-size:11px;text-align:center;box-shadow:0 12px 24px #0008}.side-btn b{font-size:19px}.center-art{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);width:58%;max-width:300px;aspect-ratio:1/1;border-radius:50%;background:radial-gradient(circle,#442010,#0d0908 65%);border:1px solid var(--line);box-shadow:0 0 45px #000 inset,0 0 35px #b77a2440;display:flex;align-items:center;justify-content:center;text-align:center;color:#d3b36d;padding:20px}.start-btn{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);width:72%;height:58px;border-radius:24px;background:linear-gradient(180deg,#f8d272,#a56b25);border:2px solid #ffecb0;color:#1c0f05;font-size:22px;font-weight:900;box-shadow:0 16px 40px #000,0 0 20px #e2a83c66}.bottom-nav{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:14px}.bottom-nav a{width:48px;height:48px;border-radius:50%;background:var(--panel);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:#f9d986}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:13px;box-shadow:0 12px 30px #0007}.section-title{color:var(--gold2);font-weight:900;font-size:18px;margin:8px 0 14px}.tabs{display:flex;gap:8px;overflow:auto;margin-bottom:13px}.tabs a{white-space:nowrap;border:1px solid var(--line);background:#120c0c;border-radius:14px;padding:9px 12px;color:#e8c77c}.tabs a.active{background:#8b5b20;color:#fff}.shop-item{text-align:center}.shop-item img{width:92px;height:92px;object-fit:cover;border-radius:50%;background:#111;margin:4px auto 10px;display:block}.frame-preview{position:relative;width:104px;height:104px;margin:4px auto 10px}.frame-preview .base{position:absolute;inset:12px;border-radius:50%;background:#372016}.frame-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.room-card{display:grid;grid-template-columns:64px 1fr 88px;gap:10px;align-items:center;margin-bottom:12px}.room-card.locked{opacity:.82}.room-title{font-weight:900;color:#fff}.room-meta{font-size:12px;color:#d7c8a3;line-height:1.9}.room-prize{color:#ffdc7c;font-weight:900}.room-status{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:3px 8px;font-size:11px;color:#f6d88d}.room-layout{min-height:380px;position:relative;border-radius:24px;background:radial-gradient(circle at center,#3b2016,#0d0908 68%);border:1px solid var(--line);padding:16px;margin:12px 0}.seats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.seat{min-height:82px;border-radius:18px;border:1px dashed rgba(255,216,130,.22);background:#0f0a0a88;padding:8px;text-align:center}.seat .name{font-size:12px;color:#fff;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-seat{color:#8e7a59;font-size:12px;padding-top:22px}.room-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.muted{color:#b9aa88;font-size:13px}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{border-bottom:1px solid var(--line);padding:9px;text-align:right}.copybox{direction:ltr;text-align:center;background:#080606;border:1px solid var(--line);border-radius:13px;padding:9px;color:#f9db86;font-weight:900}
@media(max-width:380px){.home-head{grid-template-columns:78px 1fr 78px}.side-btn{width:62px;font-size:10px}.side-menu{top:118px}.center-art{width:54%}.start-btn{width:76%}.container{padding:12px}.grid{grid-template-columns:1fr}}

/* Patch 002: dynamic Mafia room layout */
.hint{font-size:12px;color:#b9aa88;margin-top:6px;line-height:1.8}.room-status.ok{border-color:#67b767;color:#caffca}.rooms-topbar{gap:8px}.circle-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#110d0dcc;border:1px solid var(--line);font-size:28px;font-weight:900;color:#f8d37a;box-shadow:0 8px 20px #0008;flex:0 0 auto}.rooms-title-badge{background:linear-gradient(180deg,#6c3a17,#1a0e0b);border:1px solid #d7a34d;border-radius:12px;padding:9px 15px;color:#fff;font-weight:900;white-space:nowrap;box-shadow:0 10px 24px #0008}.room-search-form{flex:1;min-width:70px}.room-search{width:100%;height:42px;border-radius:22px;border:1px solid var(--line);background:#05040499;color:#fff;padding:0 14px;outline:none}.mafia-room{min-height:100vh;position:relative;overflow:hidden;background:#090707;background-size:cover;background-position:center;color:#fff;width:min(520px,100%);margin:0 auto}.room-shade{position:fixed;inset:0;background:radial-gradient(circle at center,rgba(70,32,13,.15),rgba(0,0,0,.87));pointer-events:none}.game-room-header{position:relative;z-index:3;display:grid;grid-template-columns:48px 1fr 96px;gap:8px;align-items:start;padding:14px 10px 0}.room-heading{text-align:center;text-shadow:0 2px 14px #000}.room-heading h1{margin:0;color:#f5a6d8;letter-spacing:6px;font-size:23px;font-weight:900}.room-heading div{font-size:13px;color:#fff;margin-top:5px;font-weight:800}.room-code-line{color:#f8d77d!important}.room-owner-mini{background:rgba(0,0,0,.45);border:1px solid var(--line);border-radius:20px;padding:8px;text-align:center;min-height:54px}.room-owner-mini span{font-size:11px;color:#ddd}.room-owner-mini b{display:block;color:#56e0c6;font-size:13px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-left-controls{position:absolute;z-index:5;top:62px;left:10px;width:92px;display:flex;flex-direction:column;gap:8px}.lock-badge,.room-watch-note{display:block;border-radius:18px;background:linear-gradient(180deg,#2d251d,#0d0908);border:1px solid var(--line);color:#f8d77d;text-align:center;padding:7px 8px;font-weight:900;font-size:12px}.room-watch-note{color:#ddd}.table-stage{position:relative;z-index:2;height:calc(100vh - 245px);min-height:520px;margin:8px 8px 0;border-radius:28px}.table-stage:before{content:"";position:absolute;left:50%;top:50%;width:62%;height:75%;transform:translate(-50%,-50%);border-radius:48%;background:radial-gradient(ellipse at center,rgba(82,55,36,.38),rgba(12,8,7,.18) 62%,rgba(0,0,0,0));box-shadow:inset 0 0 45px #0009,0 0 40px #0006;border:1px solid rgba(255,217,130,.08)}.table-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;width:42%;min-height:210px;display:flex;align-items:center;justify-content:center}.god-zone{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;width:100%}.god-zone.empty{color:#f4d27c;text-align:center;font-weight:900;text-shadow:0 2px 18px #000}.god-empty-icon{width:82px;height:82px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:54px;background:radial-gradient(circle,#fff3a1,#a37022 45%,rgba(0,0,0,.15) 70%);box-shadow:0 0 28px #f2c75b88;color:#44300d}.god-card{text-align:center;position:relative}.god-label{display:inline-block;margin-top:-12px;background:#050505;color:#fff;border:1px solid var(--line);border-radius:8px;padding:2px 7px;font-size:10px}.god-name{font-size:12px;font-weight:900;color:#fff;margin-top:4px;text-shadow:0 2px 7px #000;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.orbit-player{position:absolute;z-index:5;transform:translate(-50%,-50%);width:80px;text-align:center}.orbit-player .avatar-widget.small{width:62px;height:62px}.orbit-player.compact{width:66px}.orbit-player.compact .avatar-widget.small{width:54px;height:54px}.orbit-player.mini{width:56px}.orbit-player.mini .avatar-widget.small{width:46px;height:46px}.seat-number{position:absolute;right:4px;top:0;z-index:8;width:20px;height:20px;border-radius:50%;background:#16334a;color:#fff;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.18)}.player-name{margin-top:3px;font-size:11px;font-weight:900;color:#fff;text-shadow:0 2px 8px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-info-strip{position:relative;z-index:6;margin:0 10px 8px;background:rgba(0,0,0,.55);border:1px solid var(--line);border-radius:18px;padding:8px;display:flex;gap:8px;justify-content:space-around;font-size:12px;color:#e8d5a7}.room-info-strip b{color:#f8d77d}.room-locked-message{position:relative;z-index:7;margin:8px 10px;background:rgba(70,20,20,.85);border:1px solid #b95050;border-radius:16px;padding:10px;text-align:center;color:#ffd1d1;font-size:13px}.owner-panel{position:relative;z-index:8;margin:8px 10px 82px;background:rgba(0,0,0,.58);border:1px solid var(--line);border-radius:18px;padding:10px}.owner-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.owner-actions button:disabled{opacity:.55;cursor:not-allowed}.god-manager{margin-top:10px}.god-manager summary{cursor:pointer;color:#f8d77d;font-weight:900}.member-manage-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid rgba(255,217,130,.12);font-size:12px}.member-manage-row small{color:#b9aa88}.member-manage-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.room-bottom-tools{position:fixed;z-index:10;left:50%;bottom:10px;transform:translateX(-50%);width:min(500px,100%);display:flex;justify-content:space-around;pointer-events:none}.room-bottom-tools a{pointer-events:auto;min-width:58px;height:58px;border-radius:50%;background:rgba(0,0,0,.62);border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#f9d986;font-weight:900;font-size:18px}.room-bottom-tools small{font-size:9px;color:#fff;margin-top:1px}.page-bg .room-card{grid-template-columns:64px 1fr 76px}.room-card .avatar-widget.small{width:58px;height:58px}
@media(max-width:420px){.game-room-header{grid-template-columns:42px 1fr 86px}.room-heading h1{font-size:20px;letter-spacing:4px}.room-left-controls{width:84px}.table-stage{height:calc(100vh - 245px);min-height:490px;margin-inline:2px}.table-stage:before{width:58%;height:73%}.table-center{width:40%}.orbit-player{width:66px}.orbit-player .avatar-widget.small{width:54px;height:54px}.player-name{font-size:10px}.room-info-strip{font-size:11px;gap:4px}.owner-panel{margin-bottom:80px}.member-manage-row{align-items:flex-start;flex-direction:column}.member-manage-actions{justify-content:flex-start}.rooms-title-badge{padding-inline:10px;font-size:13px}.circle-icon{width:38px;height:38px}.room-search{height:38px}.room-card{grid-template-columns:56px 1fr 68px!important}.room-card .btn.small{font-size:11px;padding:8px}.room-card .avatar-widget.small{width:52px;height:52px}}

/* Patch 003: better auth background fitting + improved lobby cards */
.page-bg.auth-bg{
    min-height:100vh;
    background-color:#050302!important;
    background-size:auto 100%!important;
    background-repeat:no-repeat!important;
    background-position:center center!important;
    background-attachment:scroll!important;
    overflow:hidden;
}
.page-bg.auth-bg:before{
    content:"";
    position:fixed;
    inset:-22px;
    background-image:inherit;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    filter:blur(18px);
    transform:scale(1.08);
    opacity:.52;
    pointer-events:none;
    z-index:0;
}
.page-bg.auth-bg:after{
    content:"";
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at center,rgba(44,20,9,.14),rgba(0,0,0,.54) 52%,rgba(0,0,0,.88)),
        linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.24) 28%,rgba(0,0,0,.24) 72%,rgba(0,0,0,.9));
    pointer-events:none;
    z-index:0;
}
.auth-bg .container{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    min-height:100vh;
    padding-top:clamp(34px,9vh,110px);
}
.auth-bg .auth-card{
    width:min(390px,calc(100vw - 28px));
    margin-top:0;
    background:linear-gradient(180deg,rgba(42,25,18,.86),rgba(8,6,6,.9));
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
    border-color:rgba(255,214,117,.32);
    box-shadow:0 28px 90px rgba(0,0,0,.88), inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-bg .brand-title{font-size:25px;color:#ffd778}.auth-bg .input{background:rgba(3,3,3,.82)}

.rooms-lobby-bg{
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    min-height:100vh;
}
.rooms-lobby-bg:before{
    content:"";
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at center,rgba(151,91,30,.14),rgba(0,0,0,.72) 62%,rgba(0,0,0,.92)),
        linear-gradient(180deg,rgba(0,0,0,.36),rgba(0,0,0,.82));
    pointer-events:none;
}
.lobby-shell{
    position:relative;
    z-index:2;
    width:min(540px,100%);
    min-height:100vh;
    margin:0 auto;
    padding:14px 10px 24px;
}
.lobby-topbar{
    display:grid;
    grid-template-columns:42px 1fr auto 42px 42px;
    gap:8px;
    align-items:center;
    margin-bottom:12px;
}
.lobby-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(4,4,4,.56);
    border:1px solid rgba(255,217,130,.26);
    color:#fff;
    font-size:28px;
    font-weight:900;
    box-shadow:0 12px 28px rgba(0,0,0,.65);
}
.lobby-icon.back{background:linear-gradient(180deg,#ecb942,#9b5c16);color:#120801}.lobby-icon.add{font-size:32px}.lobby-icon.gear{font-size:22px}
.lobby-title-frame{
    color:#fff;
    font-weight:900;
    white-space:nowrap;
    padding:9px 16px;
    border-radius:12px;
    background:linear-gradient(180deg,#6b3618,#1a0c08);
    border:1px solid #dca654;
    box-shadow:0 10px 28px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07);
    text-shadow:0 2px 10px #000;
}
.lobby-search-form{min-width:0}.lobby-search{
    width:100%;height:42px;border-radius:22px;border:1px solid rgba(255,217,130,.23);
    background:rgba(0,0,0,.54);color:#fff;outline:none;padding:0 14px;
    box-shadow:inset 0 0 20px rgba(0,0,0,.45);
}
.lobby-search::placeholder{color:rgba(255,255,255,.55)}
.lobby-mini-actions{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    color:#d8c69a;font-size:12px;margin:4px 4px 12px;
}
.lobby-mini-actions a{
    color:#181006;background:linear-gradient(180deg,#f3cd72,#ad762d);font-weight:900;
    border-radius:999px;padding:7px 10px;white-space:nowrap;
}
.lobby-list{display:flex;flex-direction:column;gap:12px}.lobby-room-card{
    position:relative;
    min-height:104px;
    display:grid;
    grid-template-columns:74px 1fr 70px;
    gap:9px;
    align-items:center;
    padding:12px 12px 12px 9px;
    border-radius:17px;
    overflow:visible;
    background:linear-gradient(90deg,rgba(10,10,10,.92),rgba(31,28,23,.88));
    border:1px solid rgba(255,217,130,.14);
    box-shadow:0 16px 34px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.035);
}
.lobby-room-card:before{
    content:"";position:absolute;inset:0;border-radius:17px;
    background:linear-gradient(90deg,rgba(255,214,95,.05),rgba(255,255,255,0));pointer-events:none;
}
.lobby-room-card.is-locked{filter:saturate(.82);opacity:.86}.lobby-card-glow{
    position:absolute;right:58px;top:0;bottom:0;width:80px;
    background:radial-gradient(circle,rgba(255,194,69,.16),rgba(0,0,0,0) 70%);pointer-events:none;
}
.lobby-owner-side{position:relative;display:flex;align-items:center;justify-content:center;min-width:0}.lobby-owner-side .avatar-widget.small{
    width:66px;height:66px;filter:drop-shadow(0 7px 12px rgba(0,0,0,.7));
}
.lobby-rank-badge{
    position:absolute;right:-4px;top:-8px;z-index:7;width:25px;height:25px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;background:#15324b;color:#fff;
    border:1px solid rgba(255,255,255,.18);font-weight:900;font-size:12px;
}
.lobby-room-body{min-width:0;position:relative;z-index:2}.lobby-room-topline{
    display:flex;justify-content:space-between;gap:8px;align-items:center;color:#bfb49d;font-size:12px;margin-bottom:3px;
}
.lobby-room-topline b{color:#31c3d4;font-weight:900}.lobby-room-body h2{
    margin:0;color:#f5c46d;font-size:16px;font-weight:900;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 10px #000;
}
.lobby-owner-name{font-size:12px;color:#fff;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.92}.lobby-room-chips{
    display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;align-items:center;
}
.lobby-room-chips span{
    border-radius:999px;padding:4px 8px;font-size:11px;background:rgba(0,0,0,.42);border:1px solid rgba(255,217,130,.15);color:#e9d2a1;
}
.lobby-room-chips .prize-chip{background:linear-gradient(180deg,#80621f,#3e2a0e);color:#ffdf7d;border-color:rgba(255,217,130,.32);font-weight:900}.state-chip.open{color:#baf7bf;border-color:rgba(92,211,111,.28)}.state-chip.locked{color:#ffb1b1;border-color:rgba(255,93,93,.26)}.state-chip.ready{color:#d6ffd6;border-color:rgba(98,224,98,.32)}
.lobby-enter{
    position:relative;z-index:2;align-self:center;justify-self:end;min-width:62px;height:42px;border-radius:9px;
    display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;
    background:linear-gradient(180deg,#38b45a,#1c6c31);box-shadow:0 10px 18px rgba(0,0,0,.55);
}
.lobby-enter.watch{background:linear-gradient(180deg,#403a33,#17120f);color:#f5d381;border:1px solid rgba(255,217,130,.22)}
.empty-lobby-card{
    background:rgba(0,0,0,.6);border:1px solid rgba(255,217,130,.2);border-radius:18px;padding:18px;text-align:center;
    display:flex;flex-direction:column;gap:10px;align-items:center;color:#e4d3a9;margin-top:18px;
}
.empty-lobby-card b{color:#ffdc7b;font-size:17px}.empty-lobby-card span{font-size:13px}

@media(min-width:760px){
    .page-bg.auth-bg{background-size:auto 100%!important;background-position:center center!important;}
    .auth-bg .container{width:100%;max-width:none;align-items:flex-start;}
}
@media(max-width:620px){
    .page-bg.auth-bg{background-size:cover!important;background-position:center center!important;}
    .page-bg.auth-bg:after{background:radial-gradient(circle at center,rgba(58,24,9,.16),rgba(0,0,0,.68) 58%,rgba(0,0,0,.9));}
    .auth-bg .container{padding-top:clamp(24px,7vh,70px);}
    .lobby-topbar{grid-template-columns:38px 1fr 38px 38px;}
    .lobby-title-frame{grid-column:1/-1;grid-row:2;text-align:center;margin:0 auto;min-width:160px;}
    .lobby-icon{width:38px;height:38px}.lobby-room-card{grid-template-columns:66px 1fr 60px;gap:7px;padding:10px 9px}.lobby-owner-side .avatar-widget.small{width:58px;height:58px}.lobby-room-body h2{font-size:14px}.lobby-room-topline{font-size:11px}.lobby-room-chips span{font-size:10px;padding:3px 6px}.lobby-enter{min-width:54px;height:38px;font-size:12px}.lobby-mini-actions{font-size:11px}.lobby-mini-actions a{padding:6px 8px}
}


/* Patch 004: Glass auth cards + cleaner lobby UI */
.page-bg.auth-bg{
    background-color:#050302!important;
    background-size:auto 100%!important;
    background-repeat:no-repeat!important;
    background-position:center center!important;
}
.page-bg.auth-bg:before{
    inset:-28px!important;
    background-image:inherit!important;
    background-size:cover!important;
    background-position:center center!important;
    filter:blur(20px)!important;
    transform:scale(1.1)!important;
    opacity:.38!important;
}
.page-bg.auth-bg:after{
    background:
        radial-gradient(circle at center,rgba(50,20,8,.10),rgba(0,0,0,.34) 55%,rgba(0,0,0,.72)),
        linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.14) 30%,rgba(0,0,0,.14) 70%,rgba(0,0,0,.76))!important;
}
.auth-bg .container{
    padding-top:clamp(18px,5.5vh,76px)!important;
    padding-bottom:26px!important;
}
.auth-bg .auth-card{
    width:min(390px,calc(100vw - 28px))!important;
    background:linear-gradient(180deg,rgba(45,24,14,.48),rgba(7,5,5,.46))!important;
    border:1px solid rgba(255,210,112,.44)!important;
    box-shadow:
        0 24px 80px rgba(0,0,0,.58),
        inset 0 1px 0 rgba(255,255,255,.07),
        inset 0 0 32px rgba(255,196,76,.035)!important;
    backdrop-filter:blur(13px) saturate(1.08)!important;
    -webkit-backdrop-filter:blur(13px) saturate(1.08)!important;
    border-radius:26px!important;
}
.auth-bg .brand-title{
    color:#ffd77b!important;
    text-shadow:0 2px 16px rgba(0,0,0,.75),0 0 22px rgba(255,196,76,.18)!important;
}
.auth-bg .sub-title{color:rgba(255,236,201,.86)!important}.auth-bg .label{color:#f6d486!important}
.auth-bg .input,
.auth-bg .select,
.auth-bg .textarea{
    background:rgba(0,0,0,.44)!important;
    border:1px solid rgba(255,213,113,.34)!important;
    box-shadow:inset 0 0 18px rgba(0,0,0,.34)!important;
    color:#fff!important;
}
.auth-bg .input:focus,
.auth-bg .select:focus,
.auth-bg .textarea:focus{
    background:rgba(0,0,0,.55)!important;
    border-color:rgba(255,216,126,.82)!important;
    box-shadow:0 0 0 3px rgba(218,165,62,.12), inset 0 0 20px rgba(0,0,0,.42)!important;
}
.auth-bg .input::placeholder{color:rgba(255,255,255,.44)!important}.auth-bg .btn.full{
    border-radius:16px!important;
    box-shadow:0 12px 28px rgba(0,0,0,.35),0 0 24px rgba(230,178,75,.10)!important;
}
.auth-bg .flash{
    background:rgba(8,6,6,.48)!important;
    backdrop-filter:blur(10px)!important;
    -webkit-backdrop-filter:blur(10px)!important;
}

/* Patch 004 lobby glass style */
.rooms-lobby-bg:before{
    background:
        radial-gradient(circle at center,rgba(160,95,35,.16),rgba(0,0,0,.58) 60%,rgba(0,0,0,.88)),
        linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.76))!important;
}
.lobby-shell{padding-top:12px!important}.lobby-topbar{
    background:rgba(6,5,5,.28);
    border:1px solid rgba(255,217,130,.12);
    border-radius:22px;
    padding:8px;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:0 16px 42px rgba(0,0,0,.35);
}
.lobby-title-frame{
    background:linear-gradient(180deg,rgba(105,53,20,.72),rgba(20,10,7,.62))!important;
    border-color:rgba(245,194,94,.62)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.08)!important;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}
.lobby-icon{
    background:rgba(8,7,7,.48)!important;
    border-color:rgba(255,217,130,.24)!important;
    box-shadow:0 10px 22px rgba(0,0,0,.42)!important;
}
.lobby-icon.back{background:linear-gradient(180deg,rgba(242,195,77,.95),rgba(158,95,23,.92))!important;color:#140803!important}
.lobby-search{
    background:rgba(0,0,0,.38)!important;
    border-color:rgba(255,217,130,.22)!important;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}
.lobby-mini-actions{
    background:rgba(0,0,0,.26);
    border:1px solid rgba(255,217,130,.10);
    border-radius:16px;
    padding:9px 10px;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}
.lobby-room-card{
    min-height:108px!important;
    background:
        linear-gradient(90deg,rgba(4,4,4,.54),rgba(29,23,18,.48)),
        radial-gradient(circle at 78% 10%,rgba(255,202,83,.12),rgba(0,0,0,0) 46%)!important;
    border:1px solid rgba(255,217,130,.17)!important;
    box-shadow:0 16px 38px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.055)!important;
    backdrop-filter:blur(11px) saturate(1.06)!important;
    -webkit-backdrop-filter:blur(11px) saturate(1.06)!important;
}
.lobby-room-card:before{
    background:linear-gradient(90deg,rgba(255,217,130,.045),rgba(255,255,255,.015),rgba(255,217,130,.035))!important;
}
.lobby-room-card.is-open{border-color:rgba(111,221,122,.18)!important}.lobby-room-card.is-locked{opacity:.9!important;filter:saturate(.9)!important;border-color:rgba(255,120,120,.16)!important}
.lobby-owner-side .avatar-widget.small{filter:drop-shadow(0 9px 14px rgba(0,0,0,.72)) drop-shadow(0 0 12px rgba(225,172,64,.12))!important}
.lobby-rank-badge{
    background:linear-gradient(180deg,#21445f,#102439)!important;
    box-shadow:0 5px 12px rgba(0,0,0,.45)!important;
}
.lobby-room-topline{color:rgba(245,232,201,.78)!important}.lobby-room-body h2{color:#ffd276!important}.lobby-owner-name{color:rgba(255,255,255,.92)!important}.lobby-room-chips span{
    background:rgba(0,0,0,.30)!important;
    border-color:rgba(255,217,130,.14)!important;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}
.lobby-room-chips .prize-chip{
    background:linear-gradient(180deg,rgba(132,101,31,.72),rgba(52,34,9,.62))!important;
    border-color:rgba(255,217,130,.30)!important;
}
.lobby-enter{
    border-radius:12px!important;
    background:linear-gradient(180deg,rgba(59,184,91,.94),rgba(27,105,49,.94))!important;
    box-shadow:0 10px 22px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.lobby-enter.watch{background:linear-gradient(180deg,rgba(67,58,47,.82),rgba(22,18,15,.78))!important;color:#f6d98b!important}
.empty-lobby-card{
    background:rgba(0,0,0,.36)!important;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}
@media(min-width:760px){.auth-bg .auth-card{margin-right:auto!important;margin-left:auto!important}.page-bg.auth-bg{background-size:auto 100%!important}}
@media(max-width:620px){
    .auth-bg .auth-card{background:linear-gradient(180deg,rgba(45,24,14,.54),rgba(7,5,5,.56))!important}
    .page-bg.auth-bg:after{background:radial-gradient(circle at center,rgba(58,24,9,.10),rgba(0,0,0,.44) 58%,rgba(0,0,0,.82))!important}
    .lobby-topbar{padding:7px!important;border-radius:20px!important}
    .lobby-mini-actions{align-items:flex-start;flex-direction:column}.lobby-mini-actions a{width:100%;text-align:center}
    .lobby-room-card{grid-template-columns:60px 1fr 58px!important;border-radius:18px!important}.lobby-room-chips{gap:4px!important}
}

/* ===== Patch 007: live icon-only room reactions ===== */
.room-bottom-tools.room-bottom-tools-v7{
    position:fixed;
    z-index:30;
    left:50%;
    bottom:12px;
    transform:translateX(-50%);
    width:min(500px,100%);
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    padding:0 14px;
    box-sizing:border-box;
    pointer-events:none;
}
.room-help-tools,
.room-reaction-pad{
    pointer-events:auto;
    display:flex;
    align-items:center;
    gap:9px;
}
.room-mini-tool,
.room-reaction-pad .room-tool{
    border:0;
    outline:0;
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:27px;
    line-height:1;
    cursor:pointer;
    color:#fff;
    box-shadow:0 8px 22px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18);
    transition:.16s ease;
}
.room-mini-tool{
    background:rgba(0,0,0,.58);
    border:1px solid rgba(255,255,255,.14);
    color:#cfcfcf;
    font-weight:900;
    font-family:Arial,sans-serif;
}
.room-reaction-pad{
    flex-direction:column;
    gap:7px;
    padding:7px;
    border-radius:34px;
    background:rgba(0,0,0,.32);
    border:1px solid rgba(255,255,255,.13);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}
.room-reaction-pad .reaction-hand-btn{background:linear-gradient(180deg,#168c93,#07545d)}
.room-reaction-pad .reaction-like-btn{background:linear-gradient(180deg,#2aa93a,#126d20)}
.room-reaction-pad .reaction-dislike-btn{background:linear-gradient(180deg,#b52b33,#71121b)}
.room-mini-tool:active,
.room-reaction-pad .room-tool:active{transform:scale(.92)}
.room-reaction-pad .room-tool:disabled{opacity:.68;cursor:default;transform:scale(.96)}
.room-reaction-pad small,
.room-bottom-tools-v7 small{display:none!important}

.orbit-player,
.god-card{position:absolute}
.god-card{position:relative}
.reaction-bubble{
    position:absolute;
    z-index:60;
    right:-6px;
    top:8px;
    width:34px;
    height:34px;
    border-radius:50%;
    display:none;
    align-items:center;
    justify-content:center;
    font-size:20px;
    line-height:1;
    color:#fff;
    border:1px solid rgba(255,255,255,.26);
    box-shadow:0 8px 20px rgba(0,0,0,.50),0 0 12px rgba(255,255,255,.10);
    opacity:0;
    transform:translateY(8px) scale(.55);
    pointer-events:none;
}
.god-card .reaction-bubble{right:6px;top:6px}
.reaction-bubble.show{
    opacity:1;
    transform:translateY(0) scale(1);
    animation:roomReactionPop 2.6s ease forwards;
}
.reaction-bubble.reaction-hand{background:linear-gradient(180deg,#159ca4,#095965)}
.reaction-bubble.reaction-like{background:linear-gradient(180deg,#29b53c,#126d22)}
.reaction-bubble.reaction-dislike{background:linear-gradient(180deg,#c4353c,#76141c)}
@keyframes roomReactionPop{
    0%{opacity:0;transform:translateY(10px) scale(.55)}
    12%{opacity:1;transform:translateY(-4px) scale(1.14)}
    24%{opacity:1;transform:translateY(0) scale(1)}
    78%{opacity:1;transform:translateY(0) scale(1)}
    100%{opacity:0;transform:translateY(-18px) scale(.84)}
}
.reaction-toast{
    position:fixed;
    z-index:9999;
    left:50%;
    bottom:90px;
    transform:translateX(-50%);
    background:rgba(0,0,0,.78);
    border:1px solid rgba(220,170,80,.45);
    border-radius:15px;
    padding:9px 14px;
    color:#ffd98a;
    font-size:13px;
    display:none;
    box-shadow:0 10px 25px rgba(0,0,0,.42);
}
@media (min-width:520px){
    .room-reaction-pad{flex-direction:row;border-radius:32px}
}

/* ===== Patch 008: reaction buttons exactly like user sample ===== */
.room-bottom-tools.room-bottom-tools-v7{
    left:50%!important;
    right:auto!important;
    bottom:10px!important;
    transform:translateX(-50%)!important;
    width:min(500px,100%)!important;
    padding:0 14px!important;
    align-items:flex-end!important;
}
.room-help-tools{
    display:flex!important;
    flex-direction:row!important;
    align-items:flex-end!important;
    gap:8px!important;
    margin-bottom:0!important;
}
.room-mini-tool{
    width:48px!important;
    height:48px!important;
    border-radius:50%!important;
    background:rgba(48,48,48,.70)!important;
    border:1px solid rgba(255,255,255,.18)!important;
    color:#d9d9d9!important;
    font-size:24px!important;
    box-shadow:0 8px 20px rgba(0,0,0,.56), inset 0 1px 0 rgba(255,255,255,.12)!important;
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}
.room-reaction-pad{
    position:relative!important;
    width:104px!important;
    height:106px!important;
    padding:0!important;
    display:block!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border-radius:0!important;
}
.room-reaction-pad::before{
    content:"";
    position:absolute;
    right:3px;
    bottom:2px;
    width:90px;
    height:90px;
    border-radius:50%;
    background:rgba(0,0,0,.12);
    box-shadow:0 0 0 1px rgba(255,255,255,.08), inset 0 0 22px rgba(0,0,0,.30);
    pointer-events:none;
}
.room-reaction-pad .room-tool{
    position:absolute!important;
    width:45px!important;
    height:45px!important;
    min-width:45px!important;
    min-height:45px!important;
    border-radius:50%!important;
    border:0!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#fff!important;
    font-size:25px!important;
    line-height:1!important;
    text-shadow:0 2px 3px rgba(0,0,0,.28)!important;
    box-shadow:0 7px 14px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.24)!important;
    transition:.13s ease!important;
    cursor:pointer!important;
}
.room-reaction-pad .reaction-hand-btn{
    top:0!important;
    right:23px!important;
    background:linear-gradient(180deg,#1c9ca3 0%,#08717a 100%)!important;
}
.room-reaction-pad .reaction-like-btn{
    bottom:0!important;
    right:48px!important;
    background:linear-gradient(180deg,#35b83f 0%,#177423 100%)!important;
}
.room-reaction-pad .reaction-dislike-btn{
    bottom:0!important;
    right:0!important;
    background:linear-gradient(180deg,#d62f39 0%,#86151d 100%)!important;
}
.room-reaction-pad .room-tool:active{
    transform:scale(.88)!important;
}
.room-reaction-pad .room-tool:disabled{
    opacity:.78!important;
}
.room-reaction-pad small,
.room-bottom-tools-v7 small,
.reaction-btn span,
.reaction-btn b{
    display:none!important;
}
.avatar-widget{
    overflow:visible!important;
}
.avatar-widget > .reaction-bubble{
    position:absolute!important;
    z-index:999!important;
    right:-14px!important;
    top:-12px!important;
    width:48px!important;
    height:48px!important;
    border-radius:50%!important;
    display:none;
    align-items:center!important;
    justify-content:center!important;
    font-size:29px!important;
    line-height:1!important;
    color:#fff!important;
    border:0!important;
    box-shadow:0 8px 20px rgba(0,0,0,.68), 0 0 0 2px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.30)!important;
    opacity:0;
    transform:translate(4px,5px) scale(.55)!important;
    pointer-events:none!important;
}

/* Patch 010: bigger reaction icon beside the avatar itself */
.avatar-widget.small > .reaction-bubble{
    width:48px!important;
    height:48px!important;
    font-size:29px!important;
    right:-15px!important;
    top:-13px!important;
}
.avatar-widget.big > .reaction-bubble{
    width:56px!important;
    height:56px!important;
    font-size:33px!important;
    right:-18px!important;
    top:-16px!important;
}
.orbit-player.compact .avatar-widget > .reaction-bubble,
.orbit-player.mini .avatar-widget > .reaction-bubble{
    width:42px!important;
    height:42px!important;
    font-size:25px!important;
    right:-12px!important;
    top:-10px!important;
}
@media(max-width:420px){
    .avatar-widget.small > .reaction-bubble{width:44px!important;height:44px!important;font-size:27px!important;right:-13px!important;top:-11px!important}
    .avatar-widget.big > .reaction-bubble{width:52px!important;height:52px!important;font-size:31px!important;right:-16px!important;top:-14px!important}
}

.avatar-widget > .reaction-bubble.reaction-hand{background:linear-gradient(180deg,#1c9ca3,#08717a)!important}
.avatar-widget > .reaction-bubble.reaction-like{background:linear-gradient(180deg,#35b83f,#177423)!important}
.avatar-widget > .reaction-bubble.reaction-dislike{background:linear-gradient(180deg,#d62f39,#86151d)!important}
.avatar-widget > .reaction-bubble.show{
    display:flex!important;
    opacity:1!important;
    animation:roomReactionExactPop 2.4s ease forwards!important;
}
@keyframes roomReactionExactPop{
    0%{opacity:0;transform:translate(4px,8px) scale(.55)}
    12%{opacity:1;transform:translate(0,-3px) scale(1.10)}
    24%{opacity:1;transform:translate(0,0) scale(1)}
    76%{opacity:1;transform:translate(0,0) scale(1)}
    100%{opacity:0;transform:translate(0,-18px) scale(.82)}
}
@media(max-width:420px){
    .room-reaction-pad{width:96px!important;height:100px!important}
    .room-reaction-pad::before{width:84px;height:84px;right:2px;bottom:2px}
    .room-reaction-pad .room-tool{width:43px!important;height:43px!important;min-width:43px!important;min-height:43px!important;font-size:24px!important}
    .room-reaction-pad .reaction-hand-btn{right:21px!important}
    .room-reaction-pad .reaction-like-btn{right:45px!important}
    .room-reaction-pad .reaction-dislike-btn{right:0!important}
    .room-mini-tool{width:45px!important;height:45px!important;font-size:22px!important}
    .avatar-widget > .reaction-bubble{right:-12px!important;top:-10px!important;width:44px!important;height:44px!important;font-size:27px!important}
}

/* Patch 011: reaction swap button + player info modal */
.room-reaction-pad{
    height:142px!important;
}
.room-reaction-pad::before{
    bottom:36px!important;
}
.room-reaction-pad .reaction-hand-btn{
    top:0!important;
}
.room-reaction-pad .reaction-like-btn,
.room-reaction-pad .reaction-dislike-btn{
    bottom:36px!important;
    transition:right .18s ease, transform .13s ease!important;
}
.room-reaction-pad.swapped .reaction-like-btn{
    right:0!important;
}
.room-reaction-pad.swapped .reaction-dislike-btn{
    right:48px!important;
}
.reaction-swap-btn{
    position:absolute!important;
    right:27px!important;
    bottom:0!important;
    width:36px!important;
    height:30px!important;
    border-radius:16px!important;
    border:1px solid rgba(255,217,130,.34)!important;
    background:linear-gradient(180deg,rgba(43,28,20,.94),rgba(8,6,6,.94))!important;
    color:#f7d37a!important;
    font-size:22px!important;
    font-weight:900!important;
    line-height:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-shadow:0 7px 15px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08)!important;
    cursor:pointer!important;
    z-index:4!important;
    padding:0!important;
}
.reaction-swap-btn:active{transform:scale(.88)!important}
.orbit-player .avatar-widget,
.god-card .avatar-widget{cursor:pointer!important}
.orbit-player .avatar-widget:active,
.god-card .avatar-widget:active{transform:scale(.96)}
.player-info-modal[hidden]{display:none!important}
.player-info-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px;direction:rtl}
.player-info-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.66);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.player-info-card{position:relative;width:min(92vw,390px);border-radius:24px;padding:18px;background:linear-gradient(180deg,rgba(44,23,14,.92),rgba(8,6,6,.94));border:1px solid rgba(244,196,104,.38);box-shadow:0 22px 80px rgba(0,0,0,.78), inset 0 1px 0 rgba(255,255,255,.06);color:#fff;animation:playerInfoPop .18s ease both}
@keyframes playerInfoPop{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.player-info-close{position:absolute;left:12px;top:10px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.45);color:#fff;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}
.player-info-head{display:flex;align-items:center;gap:12px;margin:4px 0 15px;padding-inline-start:4px;padding-left:42px}
.player-info-avatar .avatar-widget{width:76px!important;height:76px!important;margin:0!important;cursor:default!important}
.player-info-head h3{margin:0 0 5px;color:#f7d37a;font-size:20px;font-weight:900;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 12px #000}
.player-info-head span{display:inline-flex;border-radius:999px;background:rgba(255,217,130,.10);border:1px solid rgba(255,217,130,.18);color:#e8d5a7;font-size:12px;padding:4px 9px}
.player-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}
.player-info-grid div,.player-info-wins-row div{border-radius:16px;background:rgba(0,0,0,.38);border:1px solid rgba(255,217,130,.16);padding:10px;text-align:center;min-height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.player-info-grid span,.player-info-wins-row span{font-size:12px;color:#d7c8a3}.player-info-grid b,.player-info-wins-row b{font-size:19px;color:#fff;font-weight:900}.player-info-wins-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.player-info-wins-row b{color:#f7d37a}.player-info-loading .player-info-card:after{content:"در حال دریافت اطلاعات...";position:absolute;inset:auto 18px 12px;text-align:center;color:#d7c8a3;font-size:12px}
@media(max-width:420px){.room-reaction-pad{height:136px!important}.room-reaction-pad::before{bottom:34px!important}.room-reaction-pad .reaction-like-btn,.room-reaction-pad .reaction-dislike-btn{bottom:34px!important}.room-reaction-pad.swapped .reaction-dislike-btn{right:45px!important}.reaction-swap-btn{right:25px!important;bottom:0!important;width:34px!important;height:28px!important;font-size:21px!important}.player-info-card{width:calc(100vw - 24px);border-radius:22px;padding:16px}.player-info-wins-row{gap:6px}.player-info-wins-row div{padding:8px 5px}.player-info-wins-row span{font-size:11px}}



/* ===== PATCH 014: bottom tools left/right swap ===== */
.room-bottom-tools-v14{
    position:absolute;
    left:12px;
    right:12px;
    bottom:16px;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:space-between!important;
    direction:ltr!important;
    z-index:50;
    pointer-events:none;
}
.room-bottom-tools-v14 > *{pointer-events:auto}
.room-bottom-tools-v14 .room-reaction-pad{
    order:1!important;
    position:relative!important;
    width:96px!important;
    height:94px!important;
    display:block!important;
    direction:ltr!important;
}
.room-bottom-tools-v14 .bottom-side-swap-btn{
    order:2!important;
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
    border:1px solid rgba(214,168,74,.45)!important;
    background:rgba(22,12,8,.88)!important;
    color:#f2cb6b!important;
    font-size:22px!important;
    font-weight:900!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    box-shadow:0 8px 22px rgba(0,0,0,.55)!important;
}
.room-bottom-tools-v14 .room-help-tools{
    order:3!important;
    display:flex!important;
    gap:8px!important;
    direction:ltr!important;
}
.room-bottom-tools-v14.tools-swapped .room-help-tools{order:1!important}
.room-bottom-tools-v14.tools-swapped .bottom-side-swap-btn{order:2!important}
.room-bottom-tools-v14.tools-swapped .room-reaction-pad{order:3!important}

.room-bottom-tools-v14 .reaction-hand-btn{
    position:absolute!important;
    top:0!important;
    left:50%!important;
    transform:translateX(-50%)!important;
}
.room-bottom-tools-v14 .reaction-like-btn{
    position:absolute!important;
    left:0!important;
    bottom:0!important;
}
.room-bottom-tools-v14 .reaction-dislike-btn{
    position:absolute!important;
    right:0!important;
    bottom:0!important;
}

/* exact round buttons like reference */
.room-bottom-tools-v14 .room-tool,
.room-bottom-tools-v14 .room-mini-tool{
    width:48px!important;
    height:48px!important;
    border-radius:50%!important;
    border:1px solid rgba(255,255,255,.18)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:25px!important;
    line-height:1!important;
    box-shadow:0 8px 18px rgba(0,0,0,.5)!important;
    text-decoration:none!important;
}
.room-bottom-tools-v14 .reaction-hand-btn{background:#078c9e!important}
.room-bottom-tools-v14 .reaction-like-btn{background:#30a642!important}
.room-bottom-tools-v14 .reaction-dislike-btn{background:#b92535!important}
.room-bottom-tools-v14 .room-mini-tool{
    background:rgba(40,40,40,.92)!important;
    color:#fff!important;
    font-weight:900!important;
}

/* bigger avatar reaction bubble */
.reaction-bubble{
    min-width:48px!important;
    height:48px!important;
    border-radius:999px!important;
    font-size:29px!important;
    z-index:70!important;
    box-shadow:0 8px 20px rgba(0,0,0,.55)!important;
    border:2px solid rgba(255,255,255,.20)!important;
}
.reaction-bubble.reaction-hand{background:#078c9e!important}
.reaction-bubble.reaction-like{background:#30a642!important}
.reaction-bubble.reaction-dislike{background:#b92535!important}

@media (max-width:480px){
    .room-bottom-tools-v14{left:10px;right:10px;bottom:12px}
    .room-bottom-tools-v14 .room-tool,
    .room-bottom-tools-v14 .room-mini-tool{width:46px!important;height:46px!important;font-size:24px!important}
    .room-bottom-tools-v14 .room-reaction-pad{width:92px!important;height:90px!important}
    .room-bottom-tools-v14 .bottom-side-swap-btn{width:40px!important;height:40px!important}
}


/* ===== Patch 015: fixed bottom tools layout ===== */
/* This fixes the broken placement: reactions stay on one side, info/sticker on the other side, swap in center. */

.room-bottom-tools.room-bottom-tools-v15{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px))!important;
    transform:translateX(-50%)!important;
    width:min(500px, calc(100vw - 18px))!important;
    height:112px!important;
    padding:0!important;
    margin:0!important;
    display:block!important;
    z-index:999!important;
    pointer-events:none!important;
    direction:ltr!important;
}

/* left group: reaction pad */
.room-bottom-tools-v15 .room-reaction-pad{
    position:absolute!important;
    left:8px!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    width:104px!important;
    height:100px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    pointer-events:auto!important;
    direction:ltr!important;
    transform:none!important;
}

/* right group: info + sticker */
.room-bottom-tools-v15 .room-help-tools{
    position:absolute!important;
    right:8px!important;
    left:auto!important;
    bottom:14px!important;
    top:auto!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
    pointer-events:auto!important;
    direction:ltr!important;
    transform:none!important;
}

/* center swap button */
.room-bottom-tools-v15 .bottom-side-swap-btn{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:24px!important;
    top:auto!important;
    transform:translateX(-50%)!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    padding:0!important;
    border-radius:50%!important;
    border:1px solid rgba(214,168,74,.50)!important;
    background:rgba(20,12,7,.92)!important;
    color:#f2cb6b!important;
    font-size:24px!important;
    font-weight:900!important;
    line-height:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    box-shadow:0 8px 22px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08)!important;
    pointer-events:auto!important;
    z-index:1002!important;
}
.room-bottom-tools-v15 .bottom-side-swap-btn:active{
    transform:translateX(-50%) scale(.92)!important;
}

/* swap the two side groups */
.room-bottom-tools-v15.tools-swapped .room-reaction-pad{
    left:auto!important;
    right:8px!important;
}
.room-bottom-tools-v15.tools-swapped .room-help-tools{
    right:auto!important;
    left:8px!important;
}

/* exact reaction triangle */
.room-bottom-tools-v15 .reaction-hand-btn{
    position:absolute!important;
    top:0!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translateX(-50%)!important;
}
.room-bottom-tools-v15 .reaction-like-btn{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    transform:none!important;
}
.room-bottom-tools-v15 .reaction-dislike-btn{
    position:absolute!important;
    right:0!important;
    left:auto!important;
    bottom:0!important;
    top:auto!important;
    transform:none!important;
}

/* reaction buttons */
.room-bottom-tools-v15 .room-tool,
.room-bottom-tools-v15 .room-mini-tool{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    border-radius:50%!important;
    border:1px solid rgba(255,255,255,.20)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:26px!important;
    line-height:1!important;
    margin:0!important;
    padding:0!important;
    text-decoration:none!important;
    box-shadow:0 8px 18px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.16)!important;
    pointer-events:auto!important;
}
.room-bottom-tools-v15 .reaction-hand-btn{background:#078c9e!important;color:#fff!important}
.room-bottom-tools-v15 .reaction-like-btn{background:#30a642!important;color:#fff!important}
.room-bottom-tools-v15 .reaction-dislike-btn{background:#b92535!important;color:#fff!important}
.room-bottom-tools-v15 .room-mini-tool{
    background:rgba(45,45,45,.92)!important;
    color:#fff!important;
    font-weight:900!important;
    font-family:Arial,sans-serif!important;
}

/* remove old generated pseudo/backgrounds from older patches */
.room-bottom-tools-v15 .room-reaction-pad::before,
.room-bottom-tools-v15 .room-reaction-pad::after{
    display:none!important;
    content:none!important;
}

/* keep owner panel content from hiding under fixed bottom buttons */
.owner-panel{
    margin-bottom:138px!important;
}

@media (max-width:420px){
    .room-bottom-tools.room-bottom-tools-v15{
        width:calc(100vw - 12px)!important;
        height:106px!important;
        bottom:calc(8px + env(safe-area-inset-bottom, 0px))!important;
    }
    .room-bottom-tools-v15 .room-reaction-pad{
        width:96px!important;
        height:94px!important;
        left:4px!important;
    }
    .room-bottom-tools-v15.tools-swapped .room-reaction-pad{
        right:4px!important;
    }
    .room-bottom-tools-v15 .room-help-tools{
        right:4px!important;
        bottom:13px!important;
    }
    .room-bottom-tools-v15.tools-swapped .room-help-tools{
        left:4px!important;
    }
    .room-bottom-tools-v15 .room-tool,
    .room-bottom-tools-v15 .room-mini-tool{
        width:46px!important;
        height:46px!important;
        min-width:46px!important;
        min-height:46px!important;
        font-size:24px!important;
    }
    .room-bottom-tools-v15 .bottom-side-swap-btn{
        width:40px!important;
        height:40px!important;
        min-width:40px!important;
        bottom:23px!important;
    }
}


/* ===== Patch 016: auto refresh note ===== */
.room-auto-refresh-note{
    position:fixed!important;
    left:50%!important;
    top:18px!important;
    transform:translateX(-50%)!important;
    z-index:2000!important;
    padding:10px 18px!important;
    border-radius:999px!important;
    background:rgba(18,10,6,.92)!important;
    border:1px solid rgba(214,168,74,.55)!important;
    color:#f7d37a!important;
    font-weight:900!important;
    font-size:13px!important;
    box-shadow:0 12px 28px rgba(0,0,0,.55)!important;
}


/* ===== Patch 017: avatar frame fix ===== */
/* Goal: when a frame is selected, the avatar image should stay clean inside the circular opening
   and the frame should sit on top without stretching/distorting the avatar. */

.avatar-widget{
    position:relative!important;
    overflow:visible!important;
    background:transparent!important;
}

.avatar-widget .avatar-img,
.avatar-widget img.avatar-img{
    position:absolute!important;
    object-fit:cover!important;
    object-position:center center!important;
    z-index:1!important;
    border-radius:50%!important;
    display:block!important;
    max-width:none!important;
    image-rendering:auto!important;
    backface-visibility:hidden!important;
    -webkit-backface-visibility:hidden!important;
    transform:translateZ(0)!important;
}

/* hide empty frame tags if any */
.avatar-widget .avatar-frame[src=""],
.avatar-widget .avatar-frame:not([src]){
    display:none!important;
}

/* default avatar without frame */
.avatar-widget:not(:has(.avatar-frame[src]:not([src=""]))) .avatar-img,
.avatar-widget:not(:has(.avatar-frame[src]:not([src=""]))) img.avatar-img{
    inset:6%!important;
    width:88%!important;
    height:88%!important;
}

/* framed avatar: make image smaller so the ornate ring does not cut the face */
.avatar-widget:has(.avatar-frame[src]:not([src=""])) .avatar-img,
.avatar-widget:has(.avatar-frame[src]:not([src=""])) img.avatar-img{
    inset:15%!important;
    width:70%!important;
    height:70%!important;
    box-shadow:0 0 0 1px rgba(0,0,0,.35)!important;
}

/* a little more room for thick crown-style frames in room cards */
.orbit-player .avatar-widget:has(.avatar-frame[src]:not([src=""])) .avatar-img,
.god-card .avatar-widget:has(.avatar-frame[src]:not([src=""])) .avatar-img,
.profile-card .avatar-widget:has(.avatar-frame[src]:not([src=""])) .avatar-img,
.user-panel .avatar-widget:has(.avatar-frame[src]:not([src=""])) .avatar-img{
    inset:16%!important;
    width:68%!important;
    height:68%!important;
}

.avatar-widget .avatar-frame,
.avatar-widget img.avatar-frame{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    z-index:3!important;
    pointer-events:none!important;
    display:block!important;
    transform:translateZ(0)!important;
    filter:none!important;
}

/* keep rank/seat badge above the frame */
.avatar-widget .seat-badge,
.avatar-widget .rank-badge,
.avatar-widget .avatar-badge{
    z-index:4!important;
}

/* responsive: keep the same proportions on smaller avatars */
.orbit-player.compact .avatar-widget:has(.avatar-frame[src]:not([src=""])) .avatar-img,
.player-list .avatar-widget:has(.avatar-frame[src]:not([src=""])) .avatar-img{
    inset:16%!important;
    width:68%!important;
    height:68%!important;
}

/* ===== Patch 019: game setup and role dealing ===== */
.game-setup-container{max-width:720px;width:min(720px,100%)}
.game-setup-head .section-title{margin-bottom:8px}
.game-setup-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.game-setup-stats span{background:rgba(0,0,0,.35);border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-size:12px;color:#ead6a0}
.manual-role-grid{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0}
.manual-role-card{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1.1fr);gap:10px;align-items:center;background:rgba(0,0,0,.30);border:1px solid var(--line);border-radius:16px;padding:10px}
.manual-player-info{display:flex;align-items:center;gap:9px;font-weight:900;color:#fff;min-width:0}
.manual-player-info span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.role-list-box{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}
.role-player-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;background:rgba(0,0,0,.30);border:1px solid var(--line);border-radius:14px;padding:9px 10px;font-size:12px}
.role-player-row b{color:var(--gold2)}
.role-player-row small{color:#cdbb8d}
.game-role-box{position:relative;z-index:7;margin:0 10px 8px;background:linear-gradient(180deg,rgba(38,24,18,.82),rgba(5,5,5,.72));border:1px solid rgba(247,211,122,.35);border-radius:18px;padding:10px 12px;text-align:center;color:#fff;box-shadow:0 12px 34px rgba(0,0,0,.45)}
.game-role-box b{color:var(--gold2)}
.game-role-box small{color:#dac799;display:block;margin-top:4px}
@media(max-width:520px){.manual-role-card{grid-template-columns:1fr}.role-player-row{grid-template-columns:1fr}.game-setup-stats span{width:100%}}


/* ===== Patch 020: custom/manual scenario setup ===== */
.scenario-room-line{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    flex-wrap:wrap!important;
}
.scenario-room-line b{color:#f7d37a!important}
.scenario-manual-link{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:26px!important;
    padding:5px 10px!important;
    border-radius:999px!important;
    background:rgba(214,168,74,.18)!important;
    border:1px solid rgba(214,168,74,.48)!important;
    color:#f7d37a!important;
    font-size:11px!important;
    font-weight:900!important;
    box-shadow:0 7px 18px rgba(0,0,0,.32)!important;
}
.manual-custom-notice{border-color:rgba(247,211,122,.35)!important}
.manual-setup-status{
    display:flex!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    margin-top:10px!important;
}
.manual-setup-status span{
    display:inline-flex!important;
    gap:5px!important;
    align-items:center!important;
    padding:7px 10px!important;
    border-radius:12px!important;
    background:rgba(0,0,0,.28)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    color:#ead7a5!important;
    font-size:12px!important;
}
.start-saved-setup-card{margin-bottom:140px!important}


/* ===== Patch 021: inline manual role setup inside room.php ===== */
.inline-manual-setup{
    position:relative;
    z-index:10;
    margin:10px 10px 12px;
    padding:14px;
    border-radius:22px;
    border:1px solid rgba(247,211,122,.34);
    background:linear-gradient(180deg,rgba(36,20,12,.88),rgba(8,6,6,.90));
    box-shadow:0 18px 45px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}
.manual-setup-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}
.manual-setup-head h2{
    margin:0 0 5px;
    color:#f7d37a;
    font-size:18px;
    font-weight:900;
}
.manual-setup-head p{
    margin:0;
    color:#d9c795;
    font-size:12px;
    line-height:1.8;
}
.manual-setup-counter{
    min-width:74px;
    min-height:54px;
    border-radius:16px;
    background:rgba(0,0,0,.34);
    border:1px solid rgba(247,211,122,.24);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#fff;
}
.manual-setup-counter b{font-size:22px;color:#f7d37a}
.manual-setup-counter span{font-size:11px;color:#d9c795}
.manual-role-grid{
    display:flex;
    flex-direction:column;
    gap:9px;
}
.manual-player-row{
    display:grid;
    grid-template-columns:1fr minmax(145px, 46%);
    gap:9px;
    align-items:center;
    padding:9px;
    border-radius:16px;
    background:rgba(0,0,0,.25);
    border:1px solid rgba(255,255,255,.08);
}
.manual-player-info{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
}
.manual-player-info .avatar-widget.small{
    width:48px!important;
    height:48px!important;
    margin:0!important;
}
.manual-player-info b{
    display:block;
    color:#fff;
    font-size:13px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:130px;
}
.manual-player-info small{
    color:#d9c795;
    font-size:11px;
}
.manual-role-select{
    min-height:42px;
    padding:8px 10px!important;
    font-size:12px;
}
.manual-role-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}
.manual-role-actions .btn{
    flex:1 1 145px;
}
.manual-role-summary{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:10px;
}
.manual-role-summary span{
    flex:1 1 90px;
    border-radius:12px;
    padding:8px 10px;
    background:rgba(0,0,0,.28);
    border:1px solid rgba(255,255,255,.08);
    color:#d9c795;
    font-size:12px;
    text-align:center;
}
.manual-role-summary b{color:#f7d37a}

@media(max-width:420px){
    .inline-manual-setup{margin-inline:6px;padding:12px}
    .manual-setup-head{align-items:stretch}
    .manual-player-row{
        grid-template-columns:1fr;
        gap:7px;
    }
    .manual-player-info b{max-width:210px}
}


/* ===== Patch 022: manual composition, random role deal ===== */
.manual-role-help{
    margin:0 0 10px;
    padding:10px 12px;
    border-radius:14px;
    border:1px dashed rgba(247,211,122,.34);
    background:rgba(0,0,0,.25);
    color:#efd9a0;
    font-size:12px;
    line-height:1.8;
}
.manual-role-composition-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
}
.manual-role-count-row{
    display:grid;
    grid-template-columns:1fr 132px;
    align-items:center;
    gap:10px;
    padding:10px;
    border-radius:16px;
    background:rgba(0,0,0,.26);
    border:1px solid rgba(255,255,255,.09);
}
.manual-role-count-row.team-mafia{border-color:rgba(225,65,65,.28)}
.manual-role-count-row.team-citizen{border-color:rgba(77,160,255,.22)}
.manual-role-count-row.team-independent{border-color:rgba(189,103,255,.30)}
.manual-role-count-info b{
    display:block;
    color:#fff;
    font-size:13px;
}
.manual-role-count-info small{
    display:block;
    color:#d9c795;
    font-size:11px;
    margin-top:4px;
}
.manual-count-control{
    display:grid;
    grid-template-columns:34px 1fr 34px;
    gap:5px;
    align-items:center;
}
.manual-count-btn{
    height:38px;
    border-radius:12px;
    border:1px solid rgba(247,211,122,.25);
    background:rgba(14,9,6,.88);
    color:#f7d37a;
    font-size:19px;
    font-weight:900;
    cursor:pointer;
}
.manual-count-input{
    text-align:center!important;
    height:38px!important;
    padding:4px!important;
    border-radius:12px!important;
}
.manual-total-ok .manual-role-help{
    border-color:rgba(82,200,102,.45);
}
.manual-total-bad .manual-role-help{
    border-color:rgba(220,70,70,.35);
}


/* ===== Patch 023: small role card inside room ===== */
.my-role-mini-card{
    position:fixed!important;
    top:calc(92px + env(safe-area-inset-top, 0px))!important;
    left:10px!important;
    z-index:1200!important;
    width:118px!important;
    min-height:74px!important;
    padding:9px 10px!important;
    border-radius:18px!important;
    border:1px solid rgba(247,211,122,.35)!important;
    background:linear-gradient(180deg,rgba(28,17,10,.94),rgba(7,6,6,.92))!important;
    box-shadow:0 12px 32px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.08)!important;
    color:#fff!important;
    text-align:center!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    text-decoration:none!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
    pointer-events:auto!important;
}
.my-role-mini-card .role-card-kicker{
    font-size:10px!important;
    color:#d9c795!important;
    line-height:1.2!important;
}
.my-role-mini-card b{
    display:block!important;
    max-width:100%!important;
    color:#f7d37a!important;
    font-size:14px!important;
    font-weight:900!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.45!important;
}
.my-role-mini-card small{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:2px 8px!important;
    border-radius:999px!important;
    font-size:10px!important;
    font-weight:900!important;
    background:rgba(255,255,255,.08)!important;
    color:#fff!important;
}
.my-role-mini-card.team-mafia{border-color:rgba(225,65,65,.50)!important;box-shadow:0 12px 32px rgba(0,0,0,.62),0 0 18px rgba(225,65,65,.20)!important}
.my-role-mini-card.team-mafia b{color:#ff7979!important}
.my-role-mini-card.team-mafia small{background:rgba(225,65,65,.26)!important}
.my-role-mini-card.team-citizen{border-color:rgba(77,160,255,.42)!important;box-shadow:0 12px 32px rgba(0,0,0,.62),0 0 18px rgba(77,160,255,.16)!important}
.my-role-mini-card.team-citizen b{color:#91c9ff!important}
.my-role-mini-card.team-citizen small{background:rgba(77,160,255,.22)!important}
.my-role-mini-card.team-independent{border-color:rgba(189,103,255,.50)!important;box-shadow:0 12px 32px rgba(0,0,0,.62),0 0 18px rgba(189,103,255,.18)!important}
.my-role-mini-card.team-independent b{color:#d9a1ff!important}
.my-role-mini-card.team-independent small{background:rgba(189,103,255,.22)!important}
.my-role-mini-card.team-god{border-color:rgba(247,211,122,.48)!important}
.my-role-mini-card.team-god b{font-size:12px!important;color:#f7d37a!important}

@media(max-width:420px){
    .my-role-mini-card{
        top:calc(82px + env(safe-area-inset-top, 0px))!important;
        left:7px!important;
        width:104px!important;
        min-height:66px!important;
        padding:8px!important;
        border-radius:16px!important;
    }
    .my-role-mini-card b{font-size:13px!important}
    .my-role-mini-card small{font-size:9px!important;padding:2px 7px!important}
}


/* ===== Patch 024: in-game page and god controls ===== */
.game-page{
    min-height:100vh;
    position:relative;
    background:#070606 center/cover fixed no-repeat;
    padding:12px 10px 120px;
    overflow-x:hidden;
}
.game-page-shade{
    position:fixed;
    inset:0;
    background:radial-gradient(circle at center,rgba(94,42,17,.16),rgba(0,0,0,.88));
    pointer-events:none;
}
.game-page > *:not(.game-page-shade){
    position:relative;
    z-index:1;
}
.game-top-hud{
    width:min(520px,100%);
    margin:0 auto 10px;
    display:grid;
    grid-template-columns:42px 1fr auto;
    gap:8px;
    align-items:center;
}
.game-title-box{
    min-width:0;
    padding:8px 12px;
    border-radius:18px;
    border:1px solid rgba(247,211,122,.22);
    background:rgba(0,0,0,.42);
    backdrop-filter:blur(9px);
}
.game-title-box h1{
    margin:0;
    font-size:17px;
    color:#f7d37a;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.game-title-box span{
    color:#d9c795;
    font-size:11px;
}
.phase-badge{
    border-radius:16px;
    padding:8px 10px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 10px 24px rgba(0,0,0,.45);
}
.phase-badge.day{background:linear-gradient(180deg,#e2b04d,#81531b);color:#160b04}
.phase-badge.night{background:linear-gradient(180deg,#263b76,#11172c);color:#e5ecff}
.phase-badge.vote{background:linear-gradient(180deg,#7b3fb1,#301046);color:#fff}
.game-started-banner,
.game-count-strip,
.god-game-control-panel,
.my-role-mini-card,
.game-player-board{
    width:min(520px,100%);
    margin-left:auto;
    margin-right:auto;
}
.game-started-banner{
    display:flex;
    justify-content:space-between;
    gap:8px;
    align-items:center;
    padding:10px 12px;
    border-radius:18px;
    background:rgba(0,0,0,.42);
    border:1px solid rgba(247,211,122,.22);
    color:#fff;
    margin-bottom:8px;
}
.game-started-banner b{color:#f7d37a}
.game-started-banner span{font-size:12px;color:#e6d0a0}
.my-role-mini-card{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
    border-radius:20px;
    padding:12px;
    margin-bottom:8px;
    border:1px solid rgba(247,211,122,.28);
    background:linear-gradient(180deg,rgba(38,23,14,.92),rgba(8,6,6,.90));
    box-shadow:0 18px 44px rgba(0,0,0,.45);
}
.my-role-mini-card small{display:block;color:#d9c795;font-size:11px}
.my-role-mini-card b{display:block;color:#f7d37a;font-size:20px;line-height:1.7}
.my-role-mini-card span{font-size:12px;color:#fff}
.my-role-mini-card.team-mafia{border-color:rgba(225,65,65,.42)}
.my-role-mini-card.team-citizen{border-color:rgba(75,151,255,.34)}
.my-role-mini-card.team-independent{border-color:rgba(185,95,255,.40)}
.role-eye-btn{
    border:1px solid rgba(247,211,122,.4);
    background:rgba(0,0,0,.35);
    color:#f7d37a;
    border-radius:14px;
    padding:9px 12px;
    font-weight:900;
}
.role-card-pop[hidden]{display:none!important}
.role-card-pop{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.role-card-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(5px)}
.role-card-panel{
    position:relative;
    width:min(310px,92vw);
    min-height:210px;
    border-radius:26px;
    padding:24px 18px;
    text-align:center;
    background:linear-gradient(180deg,#2b160c,#080606);
    border:1px solid rgba(247,211,122,.35);
    box-shadow:0 24px 90px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
}
.role-card-panel.team-mafia{border-color:rgba(225,65,65,.55)}
.role-card-panel.team-citizen{border-color:rgba(75,151,255,.46)}
.role-card-panel.team-independent{border-color:rgba(185,95,255,.50)}
.role-card-panel small{color:#d9c795}
.role-card-panel h2{margin:18px 0 8px;color:#f7d37a;font-size:28px}
.role-card-panel p{color:#fff}
.role-card-panel span{display:inline-flex;margin-top:10px;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.08);color:#fff}
.role-card-close{
    position:absolute;
    left:12px;
    top:12px;
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:rgba(0,0,0,.45);
    color:#fff;
    font-size:22px;
}
.game-count-strip{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
    margin-bottom:8px;
}
.game-count-strip span{
    text-align:center;
    border-radius:14px;
    padding:8px 6px;
    background:rgba(0,0,0,.35);
    border:1px solid rgba(255,255,255,.08);
    color:#d9c795;
    font-size:11px;
}
.game-count-strip b{color:#f7d37a;font-size:15px}
.god-game-control-panel{
    margin-bottom:10px;
    padding:12px;
    border-radius:20px;
    background:rgba(20,11,7,.82);
    border:1px solid rgba(247,211,122,.25);
}
.god-game-control-panel h2{margin:0 0 10px;color:#f7d37a;font-size:16px}
.god-phase-actions form{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:7px;
}
.god-phase-actions .btn{flex:1 1 105px}
.game-player-board{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
}
.game-player-card{
    border-radius:20px;
    padding:10px;
    background:rgba(0,0,0,.44);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 12px 32px rgba(0,0,0,.35);
}
.game-player-card.team-mafia{border-color:rgba(225,65,65,.24)}
.game-player-card.team-citizen{border-color:rgba(75,151,255,.18)}
.game-player-card.team-independent{border-color:rgba(185,95,255,.25)}
.game-player-card.dead{
    opacity:.55;
    filter:grayscale(.65);
}
.game-player-main{
    display:grid;
    grid-template-columns:54px 1fr 42px;
    gap:10px;
    align-items:center;
}
.game-player-main .avatar-widget.small{
    width:54px!important;
    height:54px!important;
    margin:0!important;
}
.game-player-text b{
    display:block;
    color:#fff;
    font-size:14px;
}
.game-player-text span{
    color:#d9c795;
    font-size:12px;
}
.game-player-more{
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid rgba(247,211,122,.24);
    background:rgba(0,0,0,.34);
    color:#f7d37a;
    font-size:22px;
}
.game-player-god-actions{
    display:none;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.08);
}
.game-player-card.actions-open .game-player-god-actions{
    display:block;
}
.god-role-line{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
    color:#d9c795;
    font-size:12px;
}
.god-role-line b{color:#f7d37a}
.game-player-god-actions form{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}
.game-player-god-actions .btn{
    flex:1 1 92px;
}
@media(max-width:380px){
    .game-top-hud{grid-template-columns:38px 1fr; }
    .phase-badge{grid-column:1/-1;text-align:center}
    .game-count-strip{grid-template-columns:1fr}
}


/* ===== Patch 025: game page layout exactly like room, normal user simplified ===== */
.game-room-live{
    min-height:100vh!important;
    overflow:hidden!important;
    padding-bottom:118px!important;
}
.live-game-header{
    z-index:20!important;
}
.phase-badge.live{
    min-width:86px;
    text-align:center;
    border-radius:16px;
    padding:8px 9px;
    font-size:11px;
    font-weight:900;
    line-height:1.5;
    box-shadow:0 8px 22px rgba(0,0,0,.45);
}
.phase-badge.live.day{background:linear-gradient(180deg,#f2cb6b,#9e6926);color:#170b04}
.phase-badge.live.night{background:linear-gradient(180deg,#263b76,#10152d);color:#e7ecff}
.phase-badge.live.vote{background:linear-gradient(180deg,#7b3fb1,#32144c);color:#fff}
.live-game-status-card{
    position:relative;
    z-index:8;
    margin:0 10px 8px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    border-radius:18px;
    padding:8px 10px;
    background:rgba(0,0,0,.48);
    border:1px solid var(--line);
    color:#fff;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}
.live-game-status-card b{display:block;color:var(--gold2);font-size:13px}
.live-game-status-card span{display:block;color:#e6d5a8;font-size:11px;margin-top:2px}
.live-counts-mini{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.live-counts-mini small{border-radius:999px;padding:5px 7px;background:rgba(255,255,255,.08);color:#e6d5a8;font-size:10px}
.role-mini-floating{
    position:absolute;
    z-index:22;
    left:12px;
    top:132px;
    width:112px;
    min-height:74px;
    border-radius:18px;
    padding:9px;
    background:linear-gradient(180deg,rgba(38,22,12,.92),rgba(8,6,6,.88));
    border:1px solid rgba(247,211,122,.34);
    box-shadow:0 12px 30px rgba(0,0,0,.55);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    cursor:pointer;
}
.role-mini-floating small{display:block;color:#d9c795;font-size:10px}
.role-mini-floating b{display:block;color:#f7d37a;font-size:15px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.role-mini-floating span{display:block;color:#fff;font-size:11px}
.role-mini-floating.team-mafia{border-color:rgba(225,65,65,.55)}
.role-mini-floating.team-citizen{border-color:rgba(75,151,255,.42)}
.role-mini-floating.team-independent{border-color:rgba(185,95,255,.50)}
.god-view-card{right:12px;left:auto;border-color:rgba(247,211,122,.50)}
.live-game-stage{
    height:calc(100vh - 248px)!important;
    min-height:430px!important;
    margin-inline:4px!important;
    z-index:6!important;
}
.live-game-stage .table-center{z-index:4!important}
.live-orbit-player{
    border:0!important;
    background:transparent!important;
    padding:0!important;
    color:#fff!important;
    cursor:pointer!important;
}
.live-orbit-player.dead .avatar-widget{opacity:.48;filter:grayscale(.75)}
.live-orbit-player.dead .player-name{text-decoration:line-through;color:#aaa!important}
.dead-mark{
    position:absolute;
    left:50%;
    top:37px;
    transform:translateX(-50%);
    z-index:12;
    border-radius:999px;
    padding:2px 7px;
    background:rgba(160,20,20,.88);
    color:#fff;
    font-size:9px;
    font-weight:900;
    border:1px solid rgba(255,255,255,.18);
}
.god-live-toolbar{
    position:fixed;
    z-index:30;
    left:50%;
    bottom:calc(10px + env(safe-area-inset-bottom,0px));
    transform:translateX(-50%);
    width:min(500px,calc(100vw - 16px));
    border-radius:22px;
    padding:8px;
    background:rgba(10,7,6,.82);
    border:1px solid rgba(247,211,122,.28);
    box-shadow:0 12px 34px rgba(0,0,0,.65);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}
.god-live-toolbar form{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.god-live-toolbar .btn{flex:1 1 80px;padding:9px 8px!important;font-size:11px!important}
.finish-game-details{margin-top:6px;color:#f7d37a;font-size:12px}
.finish-game-details summary{cursor:pointer;text-align:center;list-style:none}
.finish-game-details summary::-webkit-details-marker{display:none}
.finish-game-details form{margin-top:6px}
.game-player-modal[hidden], .role-card-pop[hidden]{display:none!important}
.game-player-modal, .role-card-pop{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}
.game-player-modal-backdrop, .role-card-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.66);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.game-player-modal-card, .role-card-panel{
    position:relative;
    width:min(92vw,360px);
    border-radius:24px;
    padding:18px;
    background:linear-gradient(180deg,rgba(44,23,14,.94),rgba(8,6,6,.95));
    border:1px solid rgba(244,196,104,.38);
    box-shadow:0 22px 80px rgba(0,0,0,.78), inset 0 1px 0 rgba(255,255,255,.06);
    color:#fff;
    text-align:center;
}
.game-player-modal-close, .role-card-close{
    position:absolute;
    left:12px;
    top:12px;
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:rgba(0,0,0,.45);
    color:#fff;
    font-size:22px;
}
.game-player-modal-card h3{margin:12px 0 6px;color:#f7d37a;font-size:22px}
.game-player-modal-card p{margin:0 0 12px;color:#d9c795}
.god-only-role-line{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.god-only-role-line span{border-radius:14px;background:rgba(0,0,0,.25);padding:8px;color:#d9c795;font-size:12px}
.god-only-role-line b{display:block;color:#f7d37a;margin-top:4px}
.god-player-action-form{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.god-player-action-form .btn{flex:1 1 95px}
.normal-player-note{display:block;color:#d9c795;margin-top:8px}
.role-card-panel small{color:#d9c795}
.role-card-panel h2{margin:18px 0 8px;color:#f7d37a;font-size:28px}
.role-card-panel p{color:#fff}
.role-card-panel span{display:inline-flex;margin-top:10px;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.08);color:#fff}
.role-card-panel.team-mafia{border-color:rgba(225,65,65,.55)}
.role-card-panel.team-citizen{border-color:rgba(75,151,255,.46)}
.role-card-panel.team-independent{border-color:rgba(185,95,255,.50)}
@media(max-width:420px){
    .phase-badge.live{grid-column:auto;font-size:10px;min-width:78px;padding-inline:7px}
    .live-game-status-card{margin-inline:6px;padding:7px 8px}
    .role-mini-floating{top:128px;width:102px;min-height:68px;padding:8px}
    .role-mini-floating b{font-size:14px}
    .live-game-stage{height:calc(100vh - 240px)!important;min-height:410px!important}
    .god-live-toolbar{width:calc(100vw - 12px);bottom:6px}
}








/* ===== Patch 026: room sticker picker + sticker beside player name ===== */
.player-name-with-sticker{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    max-width:100%!important;
}
.player-name-with-sticker > span:first-child{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}
.room-name-sticker{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    border-radius:50%!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(0,0,0,.55)!important;
    border:1px solid rgba(248,215,125,.35)!important;
    box-shadow:0 5px 12px rgba(0,0,0,.42)!important;
    overflow:hidden!important;
    vertical-align:middle!important;
}
.room-name-sticker[hidden]{display:none!important}
.room-name-sticker img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    display:block!important;
}
.god-name .room-name-sticker,
.god-card .room-name-sticker{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
}
.room-name-sticker.show{
    animation:roomStickerPop026 .36s ease-out both;
}
@keyframes roomStickerPop026{
    0%{transform:scale(.35);opacity:.25}
    70%{transform:scale(1.18);opacity:1}
    100%{transform:scale(1);opacity:1}
}
.room-bottom-tools-v15 button.room-mini-tool{
    appearance:none!important;
    -webkit-appearance:none!important;
    cursor:pointer!important;
}
.room-sticker-modal[hidden]{display:none!important}
.room-sticker-modal{
    position:fixed!important;
    inset:0!important;
    z-index:2200!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:18px!important;
    direction:rtl!important;
}
.room-sticker-backdrop{
    position:absolute!important;
    inset:0!important;
    background:rgba(0,0,0,.68)!important;
    backdrop-filter:blur(3px)!important;
    -webkit-backdrop-filter:blur(3px)!important;
}
.room-sticker-card{
    position:relative!important;
    z-index:1!important;
    width:min(420px, calc(100vw - 28px))!important;
    max-height:min(680px, calc(100vh - 36px))!important;
    overflow:auto!important;
    border-radius:24px!important;
    padding:18px!important;
    background:linear-gradient(180deg, rgba(34,22,14,.98), rgba(12,9,8,.98))!important;
    border:1px solid rgba(248,215,125,.35)!important;
    box-shadow:0 22px 55px rgba(0,0,0,.72)!important;
    color:#fff!important;
    text-align:right!important;
}
.room-sticker-card h3{
    margin:0 0 6px!important;
    color:#f8d77d!important;
    font-size:20px!important;
}
.room-sticker-card p{
    margin:0 0 14px!important;
    color:#d9ccb3!important;
    font-size:12px!important;
    line-height:1.8!important;
}
.room-sticker-close{
    position:absolute!important;
    left:12px!important;
    top:12px!important;
    width:34px!important;
    height:34px!important;
    border-radius:50%!important;
    border:1px solid rgba(255,255,255,.16)!important;
    background:rgba(0,0,0,.55)!important;
    color:#fff!important;
    font-size:24px!important;
    line-height:1!important;
    cursor:pointer!important;
}
.room-sticker-grid{
    display:grid!important;
    grid-template-columns:repeat(4, minmax(0, 1fr))!important;
    gap:10px!important;
}
.room-sticker-choice{
    min-width:0!important;
    border:1px solid rgba(248,215,125,.24)!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.06)!important;
    color:#fff!important;
    padding:8px 5px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    cursor:pointer!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.room-sticker-choice:active{transform:scale(.96)!important}
.room-sticker-choice:disabled{opacity:.62!important;cursor:default!important}
.room-sticker-choice img{
    width:52px!important;
    height:52px!important;
    object-fit:contain!important;
    display:block!important;
}
.room-sticker-choice span{
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:10px!important;
    color:#f7e5b8!important;
}
.room-sticker-empty{
    padding:14px!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.06)!important;
    color:#f7e5b8!important;
    font-size:13px!important;
    line-height:1.9!important;
    margin-bottom:12px!important;
}
@media(max-width:420px){
    .room-sticker-grid{grid-template-columns:repeat(3, minmax(0, 1fr))!important;gap:8px!important}
    .room-sticker-choice img{width:48px!important;height:48px!important}
    .room-name-sticker{width:22px!important;height:22px!important;min-width:22px!important}
}

/* Patch 027: invitation, gift, communications */
.ltr-input{direction:ltr;text-align:left}
.copy-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.invite-card .textarea{min-height:138px;line-height:1.9}
.invite-bonus-box{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(54,32,17,.75),rgba(12,8,7,.75));border-radius:18px;padding:12px;margin:14px 0;color:#ecd08a}
.invite-bonus-box b{display:flex;align-items:center;gap:8px;color:#ffe18b;font-size:16px}
.invite-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:12px}.small-note{font-size:11px!important;line-height:1.9}.gift-lookup-result{border-radius:14px;padding:10px 12px;margin:8px 0 13px;line-height:1.8;font-size:13px}.gift-lookup-result.good{border:1px solid rgba(91,177,91,.65);background:rgba(36,87,36,.18);color:#d6ffd6}.gift-lookup-result.bad{border:1px solid rgba(191,65,65,.75);background:rgba(101,18,18,.22);color:#ffc4c4}.rich-content{line-height:2;color:#f5ead0}.rich-content h1,.rich-content h2,.rich-content h3,.rich-content h4{color:#ffd978;margin:8px 0 10px}.rich-content a{color:#ffe18b;text-decoration:underline}.rich-content ul,.rich-content ol{padding-right:22px}.rich-content blockquote{margin:10px 0;padding:10px 12px;border-right:3px solid #d6a84a;background:rgba(255,255,255,.05);border-radius:12px}.communications-card{min-height:260px}
@media(min-width:520px){.invite-actions{grid-template-columns:1fr 1fr}}

/* Patch 028: temporary room stickers, sticker tabs, gift notifications, transactions */
.room-name-sticker.room-sticker-emoji{
    background:rgba(0,0,0,.35)!important;
    border-color:rgba(255,255,255,.22)!important;
    font-size:19px!important;
    line-height:1!important;
}
.room-name-emoji{display:block!important;line-height:1!important;font-size:20px!important}
.god-name .room-name-emoji,.god-card .room-name-emoji{font-size:23px!important}
.room-name-sticker.room-sticker-gif{border-color:rgba(118,218,255,.62)!important;box-shadow:0 0 12px rgba(88,194,255,.28),0 5px 12px rgba(0,0,0,.42)!important}
.room-sticker-tabs{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;margin:12px 0 14px!important;background:rgba(0,0,0,.26)!important;border-radius:16px!important;padding:6px!important;border:1px solid rgba(255,255,255,.08)!important}
.room-sticker-tabs button{border:0!important;border-radius:12px!important;padding:9px 5px!important;background:transparent!important;color:#d9ccb3!important;font-size:12px!important;font-weight:800!important;cursor:pointer!important}
.room-sticker-tabs button.active{background:linear-gradient(180deg,#f8d77d,#b87825)!important;color:#1e1008!important;box-shadow:0 6px 16px rgba(0,0,0,.28)!important}
.room-sticker-panel{display:none!important}.room-sticker-panel.active{display:block!important}
.emoji-grid .room-sticker-choice{min-height:86px!important}.emoji-big{font-size:34px!important;line-height:1!important;color:#fff!important}.gif-choice img{border-radius:10px!important}
.share-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.share-grid .btn{text-align:center;text-decoration:none}.transaction-list{display:grid;gap:10px;margin-top:14px}.transaction-item{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:16px;padding:12px;background:rgba(255,255,255,.045)}.transaction-item.plus{border-color:rgba(91,177,91,.5)}.transaction-item.minus{border-color:rgba(218,85,85,.48)}.transaction-item b{font-size:15px}.transaction-item.plus b{color:#9affaa}.transaction-item.minus b{color:#ff9d9d}.transaction-item small{display:block;color:#cdbf9e;line-height:1.8}.transaction-type{font-size:11px;color:#f7d37a;border:1px solid rgba(247,211,122,.25);border-radius:999px;padding:2px 8px;white-space:nowrap}.gift-popup-overlay[hidden]{display:none!important}.gift-popup-overlay{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.64);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);direction:rtl}.gift-popup-card{width:min(390px,calc(100vw - 30px));border-radius:24px;padding:20px;background:linear-gradient(180deg,rgba(42,24,13,.98),rgba(10,7,7,.98));border:1px solid rgba(248,215,125,.42);box-shadow:0 28px 80px rgba(0,0,0,.78);text-align:center;color:#fff}.gift-popup-card h3{margin:0 0 8px;color:#f8d77d;font-size:22px}.gift-popup-amount{display:inline-flex;align-items:center;gap:7px;margin:8px auto 12px;border-radius:999px;padding:8px 14px;background:rgba(255,255,255,.08);color:#a7ffb3;font-weight:900}.gift-popup-card p{margin:6px 0;color:#f5ead0;line-height:1.9}.gift-popup-note{border-radius:16px;background:rgba(255,255,255,.065);padding:10px 12px;margin:10px 0 14px;color:#fff}.gift-popup-card .btn{width:100%}@media(max-width:420px){.room-sticker-tabs button{font-size:11px!important;padding:8px 3px!important}.share-grid{grid-template-columns:1fr}.emoji-big{font-size:31px!important}}

/* Patch 029: groups / clans */
.room-group-line{margin-top:5px;color:#d9c18a;font-size:12px}.room-group-line b{color:#ffd86f}
.lobby-room-card.is-my-group-room{border-color:rgba(86,224,148,.55)!important;background:linear-gradient(90deg,rgba(6,45,31,.94),rgba(23,32,25,.9))!important;box-shadow:0 16px 40px rgba(0,0,0,.68),0 0 0 1px rgba(86,224,148,.12),0 0 28px rgba(86,224,148,.14)!important}
.lobby-room-card.is-my-group-room .lobby-card-glow{background:radial-gradient(circle,rgba(86,224,148,.24),rgba(0,0,0,0) 72%)}
.group-chip{background:rgba(33,84,75,.48)!important;color:#cffff0!important;border-color:rgba(91,230,184,.28)!important}.group-chip.mine{background:linear-gradient(180deg,#2ed17e,#11683f)!important;color:#04150d!important;border-color:rgba(161,255,201,.45)!important;font-weight:900!important}
.player-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.player-info-grid [data-player-info-group]{font-size:12px;line-height:1.45;color:#baffcf!important}
.player-info-group-action{margin-top:12px;border-top:1px solid rgba(255,255,255,.08);padding-top:12px;display:flex;flex-direction:column;gap:8px}.player-info-group-message{font-size:12px;color:#d9c18a;line-height:1.8}.player-info-group-note{min-height:58px;resize:vertical}.player-info-group-action .btn{margin-top:2px}
.simple-page.group-page-bg{min-height:100vh;background:radial-gradient(circle at top,#2c190b,#080706 58%,#000);padding:18px 0 42px}.container.narrow{width:min(720px,calc(100% - 24px));margin:0 auto}.page-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 14px}.page-head-row h1{margin:0;color:#ffd878;font-size:22px;text-shadow:0 2px 16px #000}.card{background:linear-gradient(180deg,rgba(32,22,17,.88),rgba(8,8,8,.9));border:1px solid rgba(255,217,130,.18);border-radius:18px;padding:16px;margin-bottom:14px;box-shadow:0 18px 42px rgba(0,0,0,.55)}.group-card-empty h2,.group-profile-card h2,.group-members-card h2,.group-requests-card h2,.group-history-card h2{margin:0 0 10px;color:#ffd878}.group-card-empty p,.group-profile-card p{color:#d5c5a1;font-size:13px;line-height:2}.group-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.group-kicker{display:block;font-size:12px;color:#8dffbb;margin-bottom:5px}.group-profile-card.is-leader{border-color:rgba(88,220,143,.32);box-shadow:0 18px 42px rgba(0,0,0,.55),0 0 26px rgba(88,220,143,.08)}.group-count-box{min-width:72px;min-height:72px;border-radius:18px;background:rgba(0,0,0,.42);border:1px solid rgba(255,217,130,.2);display:flex;flex-direction:column;align-items:center;justify-content:center}.group-count-box b{font-size:24px;color:#fff}.group-count-box span{font-size:12px;color:#d9c18a}.group-edit-form{margin-top:14px;display:flex;flex-direction:column;gap:8px}.group-edit-form label{font-size:12px;color:#ffd878;font-weight:900}.group-member-list,.group-request-list,.group-history-list{display:flex;flex-direction:column;gap:10px}.group-member-row,.group-request-row{display:flex;align-items:center;gap:10px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:10px}.avatar-widget.tiny{width:42px;height:42px;flex:0 0 42px}.group-member-row b,.group-request-row b{display:block;color:#fff}.group-member-row small,.group-request-row small{display:block;color:#bfae88;font-size:11px;margin-top:3px}.group-request-body{flex:1;min-width:0}.group-request-body p{margin:7px 0 0;color:#e7d4aa;font-size:12px;line-height:1.7}.group-request-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.group-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(0,0,0,.22);border-radius:12px;padding:9px 11px;color:#eee}.group-history-row b.ok{color:#7effaa}.group-history-row b.bad{color:#ff8b8b}.empty-note{padding:13px;border-radius:12px;background:rgba(0,0,0,.25);color:#cbb990;text-align:center;font-size:13px}
@media(max-width:560px){.group-title-row{flex-direction:column}.group-count-box{width:100%;min-height:58px;flex-direction:row;gap:8px}.group-request-row{align-items:flex-start}.group-request-actions{width:100%;justify-content:flex-start}.player-info-grid{grid-template-columns:1fr}}

/* Patch 031: public groups + compact profile group button */
.player-info-group-chip,
.group-chip-link{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid rgba(255,255,255,.22);border-radius:999px;
  background:rgba(255,255,255,.12);color:#fff;text-decoration:none;
  padding:6px 10px;font:inherit;font-weight:800;cursor:pointer;line-height:1.2;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.player-info-group-chip:after{content:'›';font-weight:900;opacity:.8;transform:rotate(180deg)}
.player-info-group-chip:hover,.group-chip-link:hover{background:rgba(255,255,255,.2)}
.player-info-group-loaded-title{font-weight:900;font-size:15px;margin:0 0 8px;color:#fff;text-align:center}
.player-info-group-summary{background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:10px;display:grid;gap:6px;font-size:12px}
.player-info-group-online-box{margin-top:8px;background:rgba(255,255,255,.08);border-radius:14px;padding:10px;font-size:12px}
.player-info-group-mini-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.mini-online-chip{display:inline-flex;align-items:center;border-radius:999px;background:rgba(30,214,128,.16);border:1px solid rgba(30,214,128,.3);padding:5px 8px;color:#dfffe9;font-weight:700}
.player-info-view-group{margin-top:8px}.player-info-group-note{margin-top:8px}.muted{opacity:.72}
.groups-list-public{display:grid;gap:12px}.group-list-card{padding:0;overflow:hidden}.group-list-main{display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;color:inherit;padding:14px}.group-list-main h2{margin:0 0 6px;font-size:17px}.group-list-main p{margin:0 0 7px;opacity:.8}.group-list-main small{opacity:.75}.group-list-card.my-group{border-color:rgba(50,220,140,.45);box-shadow:0 0 0 1px rgba(50,220,140,.18),0 18px 40px rgba(0,0,0,.22)}.group-list-card.owned-group{border-color:rgba(255,205,80,.4)}.group-badge-note{margin:0 14px 14px;display:inline-flex;border-radius:999px;background:rgba(50,220,140,.16);color:#dfffe9;padding:5px 9px;font-weight:800;font-size:12px}.group-badge-note.leader{background:rgba(255,205,80,.16);color:#fff2c2}.group-stat-stack.mini{min-width:92px}.group-stat-stack.mini .group-count-box{padding:7px 9px}.group-stat-stack.mini .group-count-box b{font-size:16px}
@media(max-width:520px){.group-list-main{align-items:stretch}.group-stat-stack.mini{min-width:76px}.group-list-main h2{font-size:15px}}

/* Patch 032: in-popup Ajax group detail view */
.player-info-modal.player-info-group-mode .player-info-head,
.player-info-modal.player-info-group-mode .player-info-grid,
.player-info-modal.player-info-group-mode .player-info-wins-row{
  display:none!important;
}
.player-info-modal.player-info-group-mode .player-info-card{
  width:min(94vw,410px);
  max-height:min(88vh,690px);
  overflow:hidden;
  padding:14px;
}
.player-info-modal.player-info-group-mode .player-info-close{
  left:10px;
  top:10px;
  z-index:5;
}
.player-info-modal.player-info-group-mode .player-info-group-action{
  display:flex!important;
  flex-direction:column;
  gap:10px;
  margin:0!important;
  padding:0!important;
  border:0!important;
  max-height:calc(88vh - 28px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.player-info-group-back{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(255,217,130,.25);
  background:rgba(0,0,0,.34);
  color:#ffe09b;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  min-height:36px;
}
.player-info-group-back span{font-size:19px;line-height:1;transform:translateY(-1px)}
.player-info-group-page{display:flex;flex-direction:column;gap:10px;padding-top:2px}
.player-info-group-page-title{
  text-align:center;
  padding:8px 36px 10px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,217,130,.12),rgba(255,255,255,.05));
  border:1px solid rgba(255,217,130,.18);
}
.player-info-group-page-title h3{margin:0 0 5px;color:#ffd878;font-size:18px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-info-group-page-title span{font-size:12px;color:#d9c18a}
.player-info-group-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.player-info-group-stats div{
  border-radius:16px;
  background:rgba(0,0,0,.34);
  border:1px solid rgba(255,255,255,.1);
  text-align:center;
  padding:10px 6px;
}
.player-info-group-stats b{display:block;color:#fff;font-size:21px;font-weight:900;line-height:1.1}
.player-info-group-stats span{display:block;color:#d5c5a1;font-size:11px;margin-top:4px}
.player-info-group-desc{
  border-radius:14px;
  background:rgba(0,0,0,.24);
  border:1px solid rgba(255,255,255,.08);
  padding:9px 10px;
  color:#e7d4aa;
  font-size:12px;
  line-height:1.8;
  max-height:70px;
  overflow:auto;
}
.player-info-group-section{
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  padding:10px;
}
.player-info-group-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.player-info-group-section-head b{color:#fff;font-size:13px}
.player-info-group-section-head span{color:#d9c18a;font-size:11px;background:rgba(0,0,0,.25);border-radius:999px;padding:3px 8px}
.player-info-group-chip-list{display:flex;flex-wrap:wrap;gap:6px}
.player-info-group-members-scroll{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:185px;
  overflow:auto;
  padding-left:2px;
  -webkit-overflow-scrolling:touch;
}
.player-info-group-member-row{
  display:grid;
  grid-template-columns:10px 1fr auto;
  align-items:center;
  gap:7px;
  border-radius:12px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.06);
  padding:8px 9px;
  min-height:38px;
}
.player-info-group-member-row i{
  width:8px;height:8px;border-radius:50%;display:block;
  background:rgba(255,255,255,.26);
  box-shadow:0 0 0 3px rgba(255,255,255,.04);
}
.player-info-group-member-row.online i{background:#42df8a;box-shadow:0 0 0 3px rgba(66,223,138,.14),0 0 12px rgba(66,223,138,.35)}
.player-info-group-member-row b{color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-info-group-member-row small{color:#bfae88;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:118px;text-align:left;direction:rtl}
.player-info-group-message.center{text-align:center;border-radius:14px;background:rgba(0,0,0,.24);padding:12px;color:#d9c18a}
.player-info-group-message.compact{border-radius:14px;background:rgba(255,217,130,.08);border:1px solid rgba(255,217,130,.12);padding:9px 10px;font-size:12px;line-height:1.8;color:#ecd5a2}
.player-info-group-page .btn.full{min-height:42px;border-radius:14px}
.player-info-group-page .textarea{font-size:12px;border-radius:14px}
.muted.tiny{font-size:12px;color:#c9b98f;padding:5px 2px}
@media(max-width:420px){
  .player-info-modal{padding:10px!important;align-items:center!important}
  .player-info-modal.player-info-group-mode .player-info-card{width:calc(100vw - 20px);max-height:90vh;border-radius:20px;padding:12px}
  .player-info-modal.player-info-group-mode .player-info-group-action{max-height:calc(90vh - 24px)}
  .player-info-group-page-title{padding:8px 34px 9px}
  .player-info-group-page-title h3{font-size:16px}
  .player-info-group-members-scroll{max-height:170px}
  .player-info-group-member-row{grid-template-columns:10px minmax(0,1fr);align-items:start}
  .player-info-group-member-row small{grid-column:2;max-width:100%;text-align:right;margin-top:-2px}
}

/* Patch 033: room mic settings + room backgrounds */
.room-settings-open{background:linear-gradient(135deg,rgba(255,215,120,.96),rgba(255,132,84,.96))!important;color:#211108!important;font-weight:900;box-shadow:0 10px 24px rgba(255,164,80,.28)}
.room-settings-modal[hidden]{display:none!important}.room-settings-modal{position:fixed;inset:0;z-index:10010;display:flex;align-items:center;justify-content:center;padding:12px}.room-settings-backdrop{position:absolute;inset:0;background:rgba(2,3,9,.72);backdrop-filter:blur(7px)}.room-settings-card{position:relative;width:min(520px,96vw);max-height:88vh;overflow:auto;background:linear-gradient(180deg,rgba(26,23,36,.98),rgba(11,12,20,.98));border:1px solid rgba(255,255,255,.13);border-radius:24px;padding:18px;box-shadow:0 24px 70px rgba(0,0,0,.56);color:#fff}.room-settings-card h3{margin:0 0 6px;font-size:20px}.room-settings-hint{margin:0 0 14px;color:rgba(255,255,255,.68);font-size:12px;line-height:1.9}.room-settings-close{position:absolute;left:12px;top:12px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:24px;cursor:pointer}.room-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.room-settings-grid label{display:block;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);border-radius:15px;padding:10px}.room-settings-grid label span{display:block;font-size:11px;color:rgba(255,255,255,.72);margin-bottom:6px}.room-settings-grid .input{width:100%;box-sizing:border-box;text-align:center;font-size:16px;font-weight:800}.room-settings-switches{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.room-settings-switches label{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:10px;font-size:12px;display:flex;align-items:center;gap:7px}.room-settings-bg-section{margin:12px 0}.room-settings-bg-title{font-weight:900;margin-bottom:9px}.room-bg-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.room-bg-choice{position:relative;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:7px;background:rgba(255,255,255,.05);cursor:pointer;overflow:hidden}.room-bg-choice.active{border-color:#ffd27a;box-shadow:0 0 0 2px rgba(255,210,122,.18)}.room-bg-choice input{position:absolute;opacity:0;pointer-events:none}.room-bg-choice-preview{display:flex;align-items:center;justify-content:center;height:74px;border-radius:12px;background-size:cover;background-position:center;background-color:rgba(255,255,255,.08);color:rgba(255,255,255,.8);font-size:12px;overflow:hidden}.room-bg-choice-preview.default-bg{background:radial-gradient(circle at top,#393151,#111521)}.room-bg-choice b{display:block;margin-top:6px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.room-settings-empty{font-size:12px;color:rgba(255,255,255,.68);background:rgba(255,255,255,.06);border-radius:12px;padding:9px;margin-top:8px}.room-settings-status{min-height:22px;text-align:center;font-size:12px;margin-top:8px;color:rgba(255,255,255,.72)}.room-settings-status.ok{color:#85ffb0}.room-settings-status.error{color:#ff9b9b}.room-bg-shop-item .room-bg-shop-img{width:100%;height:140px;object-fit:cover;border-radius:14px;margin-bottom:10px}.room-bg-shop-grid .shop-item{overflow:hidden}
@media(max-width:540px){.room-settings-modal{align-items:flex-end;padding:0}.room-settings-card{width:100vw;max-height:86vh;border-radius:24px 24px 0 0;padding:16px}.room-settings-grid{grid-template-columns:1fr}.room-settings-switches{grid-template-columns:1fr}.room-bg-choice-grid{grid-template-columns:1fr 1fr}.room-bg-choice-preview{height:62px}.room-settings-card h3{font-size:18px}}

/* ===== Patch 034: settings icon + compact 3-button triangle + stable modal during room refresh ===== */
.room-bottom-tools-v15 .room-help-tools.has-settings{
    position:absolute!important;
    right:8px!important;
    left:auto!important;
    bottom:0!important;
    top:auto!important;
    width:104px!important;
    height:100px!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    pointer-events:auto!important;
    direction:ltr!important;
    transform:none!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
.room-bottom-tools-v15.tools-swapped .room-help-tools.has-settings{
    right:auto!important;
    left:8px!important;
}
.room-bottom-tools-v15 .room-help-tools.has-settings .room-mini-tool{
    position:absolute!important;
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    border-radius:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
    box-shadow:0 9px 20px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.18)!important;
    border:2px solid rgba(0,0,0,.22)!important;
}
.room-bottom-tools-v15 .room-help-tools.has-settings > .room-mini-tool:nth-child(1){
    top:0!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translateX(-50%)!important;
    background:#078c9e!important;
    color:#fff!important;
    font-size:24px!important;
}
.room-bottom-tools-v15 .room-help-tools.has-settings > .room-settings-open{
    left:0!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    transform:none!important;
    background:#30a642!important;
    color:#fff!important;
    font-size:25px!important;
    font-family:Arial,"Segoe UI Emoji","Apple Color Emoji",sans-serif!important;
}
.room-bottom-tools-v15 .room-help-tools.has-settings > .room-sticker-open{
    right:0!important;
    left:auto!important;
    bottom:0!important;
    top:auto!important;
    transform:none!important;
    background:#b92535!important;
    color:#fff!important;
    font-size:25px!important;
}
.room-bottom-tools-v15 .room-help-tools.has-settings .room-mini-tool:active{
    transform:scale(.94)!important;
}
.room-bottom-tools-v15 .room-help-tools.has-settings > .room-mini-tool:nth-child(1):active{
    transform:translateX(-50%) scale(.94)!important;
}
.room-bottom-tools-v15 .room-help-tools.no-settings{
    position:absolute!important;
    right:8px!important;
    left:auto!important;
    bottom:24px!important;
    display:flex!important;
    flex-direction:row!important;
    gap:8px!important;
    align-items:center!important;
    justify-content:center!important;
}
.room-bottom-tools-v15.tools-swapped .room-help-tools.no-settings{
    right:auto!important;
    left:8px!important;
}
.room-settings-open::before{content:none!important}
.room-settings-modal:not([hidden]){
    overscroll-behavior:contain!important;
}
.room-settings-card{
    touch-action:manipulation!important;
}
@media(max-width:420px){
    .room-bottom-tools-v15 .room-help-tools.has-settings{
        width:96px!important;
        height:94px!important;
        right:4px!important;
        bottom:0!important;
    }
    .room-bottom-tools-v15.tools-swapped .room-help-tools.has-settings{
        left:4px!important;
        right:auto!important;
    }
    .room-bottom-tools-v15 .room-help-tools.has-settings .room-mini-tool{
        width:46px!important;
        height:46px!important;
        min-width:46px!important;
        min-height:46px!important;
        font-size:23px!important;
    }
    .room-bottom-tools-v15 .room-help-tools.no-settings{
        right:4px!important;
        bottom:23px!important;
    }
    .room-bottom-tools-v15.tools-swapped .room-help-tools.no-settings{
        left:4px!important;
        right:auto!important;
    }
}

/* Patch 035: game engine core */
.game-core-035 .live-game-header{grid-template-columns:48px 1fr 112px}.core-status-035{display:grid;grid-template-columns:1.15fr 1fr .9fr;align-items:center;gap:8px;margin:8px 10px 0;padding:9px 10px;border-radius:18px;background:rgba(0,0,0,.62);border:1px solid rgba(255,217,130,.22);position:relative;z-index:7}.core-status-main b{display:block;color:#f8d77d;font-size:13px}.core-status-main span{display:block;color:#ddd;font-size:11px;margin-top:3px}.core-speaker-box{border-radius:14px;background:rgba(10,8,8,.62);border:1px solid rgba(255,255,255,.1);padding:6px 8px;text-align:center}.core-speaker-box.active{background:linear-gradient(180deg,rgba(19,98,77,.78),rgba(7,33,30,.74));border-color:rgba(86,224,198,.45);box-shadow:0 0 18px rgba(86,224,198,.18)}.core-speaker-box small,.core-speaker-box span{display:block;font-size:10px;color:#ddd}.core-speaker-box b{display:block;color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.core-speaker-box span{margin-top:2px;color:#f8d77d;font-weight:900}.core-phase-note-035{position:relative;z-index:7;margin:7px 10px 0;background:rgba(41,28,18,.72);border:1px solid rgba(255,217,130,.18);border-radius:14px;padding:8px 10px;color:#ffe7a4;font-size:12px;text-align:center}.core-god-toolbar-035{position:fixed;z-index:12;left:50%;bottom:8px;transform:translateX(-50%);width:min(510px,calc(100% - 14px));background:rgba(0,0,0,.76);border:1px solid rgba(255,217,130,.22);border-radius:20px;padding:9px;box-shadow:0 16px 40px #0009}.core-phase-form-035{display:flex;flex-direction:column;gap:7px}.core-phase-note-input{height:34px;min-height:34px;padding:7px 10px;border-radius:12px;font-size:12px}.core-phase-buttons-035{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.core-phase-buttons-035 .btn{min-height:34px;padding:7px 6px;border-radius:12px;font-size:11px;white-space:nowrap}.finish-game-details{margin-top:7px}.finish-game-details summary{cursor:pointer;color:#f8d77d;font-size:12px;font-weight:900;text-align:center}.finish-game-details form{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:7px}.live-orbit-player.is-speaking .avatar-widget{box-shadow:0 0 0 3px rgba(86,224,198,.7),0 0 24px rgba(86,224,198,.45);border-radius:50%}.speaking-mark{position:absolute;left:50%;bottom:21px;transform:translateX(-50%);background:linear-gradient(180deg,#56e0c6,#12624d);border:1px solid rgba(255,255,255,.25);color:#021916;border-radius:999px;padding:2px 7px;font-size:9px;font-weight:900;box-shadow:0 6px 16px #0009}.core-player-modal-035 .god-player-action-form{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:8px}.core-player-modal-035 .clear-speaker-form{display:block}.core-player-modal-035 .clear-speaker-form .btn{width:100%}.phase-badge.finished{background:linear-gradient(180deg,#4b4b4b,#111);color:#fff}.phase-badge.day{background:linear-gradient(180deg,#f2cb6b,#9e6926);color:#170c05}.phase-badge.night{background:linear-gradient(180deg,#2b3d86,#090d2d);color:#dfe7ff}.phase-badge.vote{background:linear-gradient(180deg,#8b2d68,#2b1026);color:#ffd7f0}.game-room-live .table-stage{height:calc(100vh - 295px);min-height:465px}.game-room-live .role-mini-floating{z-index:11}.live-counts-mini b{color:#fff}.game-player-modal[hidden],.role-card-pop[hidden]{display:none!important}
@media(max-width:440px){.game-core-035 .live-game-header{grid-template-columns:42px 1fr 96px}.core-status-035{grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}.core-status-035 .live-counts-mini{grid-column:1/3;display:flex;justify-content:space-around}.core-status-main b{font-size:12px}.core-speaker-box{padding:5px}.core-phase-buttons-035{grid-template-columns:repeat(3,1fr);gap:5px}.core-phase-buttons-035 .btn{font-size:10px;padding:7px 3px}.game-room-live .table-stage{height:calc(100vh - 330px);min-height:410px}.core-god-toolbar-035{border-radius:18px;padding:8px}.core-player-modal-035 .god-player-action-form{grid-template-columns:1fr 1fr}.phase-badge.live-phase{font-size:11px;padding-inline:6px}}

/* Patch 036: exact role assignment */
.role-setup-036 .panel-card{border:1px solid rgba(255,217,130,.18)}
.exact-role-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:14px 0}
.exact-role-card{background:rgba(0,0,0,.42);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:10px;display:grid;gap:8px}
.exact-role-card .manual-player-info{display:flex;align-items:center;gap:8px;font-weight:900;color:#fff}
.exact-role-summary{margin:10px 0;padding:9px 11px;border-radius:14px;background:rgba(255,217,130,.1);border:1px solid rgba(255,217,130,.18);color:#ffe8a8;font-size:12px;font-weight:800;text-align:center}
.role-player-row.team-mafia,.manual-role-count-row.team-mafia,.exact-role-card:has(option[data-team="mafia"]:checked){border-color:rgba(255,80,92,.34)!important;background:linear-gradient(180deg,rgba(110,18,25,.34),rgba(0,0,0,.28))!important}
.role-player-row.team-citizen,.manual-role-count-row.team-citizen,.exact-role-card:has(option[data-team="citizen"]:checked){border-color:rgba(74,197,255,.24)!important;background:linear-gradient(180deg,rgba(27,90,114,.24),rgba(0,0,0,.28))!important}
.role-player-row.team-independent,.manual-role-count-row.team-independent,.exact-role-card:has(option[data-team="independent"]:checked){border-color:rgba(200,114,255,.28)!important;background:linear-gradient(180deg,rgba(68,30,96,.3),rgba(0,0,0,.28))!important}
.role-card-desc{margin:8px 0;padding:9px 10px;border-radius:14px;background:rgba(0,0,0,.32);border:1px solid rgba(255,255,255,.12);color:#f1f1f1;font-size:12px;line-height:1.8;text-align:right}
.role-action-tags{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:6px 0}
.role-action-tags small{background:rgba(255,217,130,.18);border:1px solid rgba(255,217,130,.25);border-radius:999px;padding:3px 8px;color:#ffe8a8;font-weight:900}
@media(max-width:520px){.exact-role-grid{grid-template-columns:1fr}.manual-role-actions{display:grid;grid-template-columns:1fr;gap:7px}.role-setup-036 .game-setup-stats{grid-template-columns:1fr}.exact-role-card{border-radius:14px;padding:9px}.role-setup-036 .section-title{font-size:18px}}

/* Patch 037 - voting and elimination */
.vote-panel-037{position:relative;z-index:8;width:min(94vw,720px);margin:10px auto;padding:12px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(10,10,14,.70);backdrop-filter:blur(12px);box-shadow:0 10px 28px rgba(0,0,0,.28);color:#fff}.vote-head-037{display:flex;align-items:center;justify-content:space-between;gap:10px}.vote-head-037 small{display:block;opacity:.72;font-size:11px}.vote-head-037 b{font-size:14px}.vote-start-form-037{margin:0}.vote-live-box-037{margin-top:10px}.vote-mini-meta-037{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.vote-mini-meta-037 span{font-size:11px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.10)}.vote-target-grid-037{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0}.vote-target-btn-037{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.09);color:#fff;border-radius:12px;padding:9px 6px;font-size:12px;font-weight:700;cursor:pointer}.vote-target-btn-037.selected{background:linear-gradient(135deg,#ffd166,#ef476f);color:#18070b;border-color:transparent}.vote-help-037{display:block;opacity:.65;font-size:10px;margin-top:2px}.vote-results-037{display:grid;gap:6px;margin-top:10px}.vote-row-037{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:13px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10)}.vote-row-037 b{font-size:12px;color:#ffd166}.vote-empty-037{padding:9px 10px;border-radius:13px;background:rgba(255,255,255,.06);font-size:12px;opacity:.78}.vote-manager-actions-037{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.vote-results-037.closed{opacity:.85}@media(max-width:520px){.vote-panel-037{padding:10px;border-radius:16px;margin:8px auto}.vote-head-037{align-items:flex-start}.vote-target-grid-037{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.vote-target-btn-037{font-size:11px;padding:8px 5px}.vote-manager-actions-037 .btn{flex:1 1 auto}}

/* Patch 038 - Night actions */
.night-panel-038{position:relative;z-index:5;margin:10px auto;max-width:980px;padding:12px;border-radius:18px;background:rgba(8,10,22,.82);border:1px solid rgba(148,163,184,.22);box-shadow:0 14px 40px rgba(0,0,0,.28);backdrop-filter:blur(10px);color:#fff}
.night-head-038{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.night-head-038 small,.night-mini-meta-038 span,.night-action-row-038 small,.night-player-view-038 span{color:rgba(255,255,255,.68)}
.night-head-038 b{display:block;font-size:14px;margin-top:2px}
.night-live-box-038{display:grid;gap:10px}
.night-mini-meta-038{display:flex;flex-wrap:wrap;gap:8px;font-size:12px}
.night-mini-meta-038 span{padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.08)}
.night-action-form-038,.night-summary-form-038{display:grid;gap:8px;padding:10px;border-radius:14px;background:rgba(255,255,255,.06)}
.night-form-grid-038{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.night-form-grid-038 label{display:grid;gap:4px;font-size:11px;color:rgba(255,255,255,.68)}
.night-summary-actions-038{display:flex;flex-wrap:wrap;gap:8px}
.night-actions-list-038{display:grid;gap:8px;margin-top:10px}
.night-action-row-038{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:14px;background:rgba(15,23,42,.72);border:1px solid rgba(255,255,255,.08)}
.night-action-row-038 b{display:block;font-size:13px;margin-bottom:3px}
.night-action-row-038 span{display:block;font-size:12px;color:rgba(255,255,255,.78)}
.night-action-row-038 small{display:block;font-size:11px;margin-top:3px}
.night-empty-038,.night-player-view-038{padding:10px;border-radius:14px;background:rgba(255,255,255,.06);font-size:12px;color:rgba(255,255,255,.78)}
.night-player-view-038 b{display:block;margin-bottom:4px;color:#fff}
@media(max-width:720px){.night-panel-038{margin:8px 8px;padding:10px;border-radius:16px}.night-head-038{align-items:flex-start}.night-form-grid-038{grid-template-columns:1fr 1fr}.night-action-row-038{align-items:flex-start;flex-direction:column}.night-action-row-038 form,.night-action-row-038 button{width:100%}.night-summary-actions-038 .btn{flex:1}.night-start-form-038 .btn{white-space:nowrap}}
@media(max-width:420px){.night-form-grid-038{grid-template-columns:1fr}.night-head-038{flex-direction:column}.night-start-form-038,.night-start-form-038 .btn{width:100%}}

/* Patch 039 - game results and statistics */
.result-page-039,.history-page-039{min-height:100vh;background:#080912;color:#fff;font-family:inherit}.result-wrap-039{max-width:820px;margin:0 auto;padding:14px}.result-header-039{display:flex;align-items:center;gap:12px;margin:8px 0 14px}.result-header-039 h1{font-size:20px;margin:2px 0}.result-header-039 small,.result-header-039 span{color:#b9bfd6}.winner-card-039{border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:18px;background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.04));box-shadow:0 15px 35px rgba(0,0,0,.35);margin-bottom:12px}.winner-card-039 small{display:block;color:#c6cbea}.winner-card-039 b{display:block;font-size:28px;margin:5px 0}.winner-card-039 p{margin:10px 0 0;color:#f3f4ff;background:rgba(255,255,255,.07);border-radius:14px;padding:10px}.winner-card-039.team-mafia{border-color:rgba(255,76,104,.45)}.winner-card-039.team-citizen{border-color:rgba(73,209,143,.45)}.winner-card-039.team-independent{border-color:rgba(186,126,255,.45)}.result-counts-039,.my-stats-039{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.my-stats-039{grid-template-columns:repeat(3,1fr)}.my-stats-039.full{grid-template-columns:repeat(6,1fr)}.result-counts-039 div,.my-stats-039 div{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10);border-radius:16px;padding:10px;text-align:center}.result-counts-039 small,.my-stats-039 small{display:block;color:#b7bdd4;font-size:11px}.result-counts-039 b,.my-stats-039 b{font-size:20px}.section-title-039{font-weight:800;margin:16px 2px 10px}.player-result-row-039,.history-row-039{display:flex;justify-content:space-between;gap:10px;align-items:center;text-decoration:none;color:#fff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:17px;padding:10px 12px;margin-bottom:8px}.player-result-row-039.winner,.history-row-039.winner{border-color:rgba(72,211,137,.35);background:rgba(72,211,137,.10)}.player-result-row-039.loser,.history-row-039.loser{border-color:rgba(255,255,255,.08)}.result-player-name-039 span,.history-row-039 span,.history-row-039 small{display:block;color:#bdc3d9;font-size:12px;margin-top:3px}.result-player-meta-039{text-align:left}.result-player-meta-039 span{display:block;color:#b9bfd6;font-size:12px}.result-actions-039{display:flex;gap:8px;margin-top:14px}.result-note-039{width:100%;margin-bottom:8px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:12px;padding:10px}.empty-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:14px;color:#d8dcef;text-align:center}@media(max-width:640px){.result-wrap-039{padding:10px}.winner-card-039 b{font-size:22px}.result-counts-039{grid-template-columns:repeat(2,1fr)}.my-stats-039,.my-stats-039.full{grid-template-columns:repeat(3,1fr)}.player-result-row-039,.history-row-039{padding:9px 10px}.result-actions-039{flex-direction:column}.result-actions-039 .btn{width:100%;text-align:center}}

/* Patch 046: room profile gift and inline profile edit */
.player-info-room-actions{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  border-top:1px solid rgba(255,217,130,.11);
  padding-top:10px;
}
.player-info-room-actions[hidden]{display:none!important}
.player-info-action-toggle{
  width:100%;
  min-height:42px;
  border:1px solid rgba(255,217,130,.18);
  border-radius:15px;
  background:linear-gradient(135deg,rgba(255,217,130,.14),rgba(0,0,0,.22));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:900;
  cursor:pointer;
  font-family:inherit;
}
.player-info-action-toggle span{font-size:18px;line-height:1}
.player-info-action-toggle b{font-size:13px}
.player-info-inline-panel{
  display:flex;
  flex-direction:column;
  gap:8px;
  border:1px solid rgba(255,217,130,.12);
  background:rgba(0,0,0,.25);
  border-radius:16px;
  padding:10px;
  animation:playerInfoPop .14s ease both;
}
.player-info-inline-title{
  color:#ffd878;
  font-size:13px;
  font-weight:900;
  text-align:center;
}
.player-info-gift-row{
  display:grid;
  grid-template-columns:94px minmax(0,1fr);
  gap:8px;
}
.player-info-gift-row input,
.player-info-edit-name{
  width:100%;
  min-height:40px;
  border-radius:13px;
  border:1px solid rgba(255,217,130,.18);
  background:rgba(0,0,0,.38);
  color:#fff;
  padding:0 11px;
  font-family:inherit;
  font-weight:800;
  outline:none;
}
.player-info-gift-row input:focus,
.player-info-edit-name:focus{
  border-color:rgba(255,217,130,.52);
  box-shadow:0 0 0 3px rgba(255,217,130,.08);
}
.player-info-inline-meta{
  color:#d7c8a3;
  font-size:11px;
  line-height:1.7;
  text-align:center;
}
.player-info-submit{
  min-height:40px!important;
  border-radius:13px!important;
  font-size:13px!important;
}
.player-info-submit:disabled{opacity:.62;filter:grayscale(.25)}
@media(max-width:420px){
  .player-info-room-actions{margin-top:10px;padding-top:9px;gap:7px}
  .player-info-action-toggle{min-height:39px;border-radius:14px}
  .player-info-inline-panel{padding:9px;border-radius:14px;gap:7px}
  .player-info-gift-row{grid-template-columns:82px minmax(0,1fr);gap:7px}
  .player-info-gift-row input,.player-info-edit-name{min-height:38px;border-radius:12px;font-size:12px;padding:0 9px}
}

/* Patch 050: personal audio ignore */
.audio-ignored-by-me .avatar-widget,
.live-orbit-player.audio-ignored-by-me .avatar-widget{
  filter:grayscale(.35) brightness(.78);
}
.audio-ignore-badge{
  position:absolute;
  left:-4px;
  top:-5px;
  min-width:22px;
  height:22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(8,8,12,.86);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 5px 15px rgba(0,0,0,.35);
  font-size:13px;
  z-index:8;
  pointer-events:none;
}
.live-orbit-player .audio-ignore-badge.game{left:4px;top:4px;position:absolute}
.personal-audio-ignore-toggle.active{
  border-color:rgba(255,88,112,.32);
  background:linear-gradient(135deg,rgba(255,88,112,.20),rgba(0,0,0,.26));
}
.game-personal-audio-actions-050{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:10px;
}
.game-personal-audio-actions-050[hidden]{display:none!important}
.game-personal-audio-actions-050 small{
  display:block;
  color:rgba(255,255,255,.68);
  font-size:11px;
  line-height:1.7;
  text-align:center;
}
@media(max-width:420px){
  .audio-ignore-badge{min-width:20px;height:20px;font-size:12px;left:-3px;top:-4px}
  .game-personal-audio-actions-050{margin-top:8px;padding-top:8px}
}

/* Patch 054 - dynamic day/night game map assets */
.game-map-stage-054{
  position:relative!important;
  overflow:hidden!important;
  border-radius:28px!important;
  background-image:var(--map-bg-054), radial-gradient(circle at center,rgba(152,105,54,.26),rgba(10,13,18,.82) 68%)!important;
  background-size:cover!important;
  background-position:center!important;
  border:1px solid rgba(255,217,130,.18)!important;
  box-shadow:inset 0 0 55px rgba(0,0,0,.55),0 16px 34px rgba(0,0,0,.38)!important;
  isolation:isolate!important;
}
.game-map-stage-054:before{display:none!important}
.game-map-stage-054:after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(circle at 50% 50%,rgba(255,218,135,.12),rgba(0,0,0,0) 44%),linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.24));
}
.game-map-stage-054.phase-night:after{background:radial-gradient(circle at 50% 52%,rgba(70,98,180,.13),rgba(0,0,0,0) 42%),linear-gradient(180deg,rgba(2,8,27,.24),rgba(0,0,0,.45))}
.map-roads-layer-054{position:absolute;inset:0;z-index:1;pointer-events:none}
.map-road-segment-054{
  position:absolute;left:50%;top:50%;width:var(--road-width-054,35%);height:19px;transform-origin:left center;
  transform:rotate(var(--road-angle-054));border-radius:999px;opacity:.82;
  background-image:var(--map-road-054), linear-gradient(90deg,rgba(190,142,83,.85),rgba(120,79,42,.75));
  background-size:auto 100%,100% 100%;background-repeat:repeat-x,no-repeat;background-position:left center;filter:drop-shadow(0 4px 5px rgba(0,0,0,.28));
}
.game-map-stage-054.no-road-054 .map-road-segment-054{background-image:linear-gradient(90deg,rgba(196,145,83,.72),rgba(105,71,40,.65));box-shadow:inset 0 2px 0 rgba(255,255,255,.07),inset 0 -2px 0 rgba(0,0,0,.18)}
.map-center-ring-054{position:absolute;left:50%;top:50%;width:43%;aspect-ratio:1/1;transform:translate(-50%,-50%);z-index:2;border-radius:50%;background:radial-gradient(circle,rgba(141,93,45,.62),rgba(70,45,29,.38) 54%,rgba(0,0,0,.12) 70%);border:1px solid rgba(255,217,130,.22);box-shadow:inset 0 0 25px rgba(0,0,0,.36),0 9px 20px rgba(0,0,0,.25)}
.map-table-center-054{z-index:7!important;width:35%!important;min-height:135px!important}.map-table-center-054 .god-zone{transform:scale(.74)}
.map-seat-054{
  position:absolute!important;left:var(--chair-x-054)!important;top:var(--chair-y-054)!important;z-index:5!important;
  width:94px!important;height:106px!important;transform:translate(-50%,-50%)!important;border:0!important;background:transparent!important;
  padding:0!important;margin:0!important;cursor:pointer!important;transition:left .55s ease,top .55s ease,filter .25s ease,opacity .25s ease!important;
  box-shadow:none!important;color:#fff!important;outline:none!important;
}
.game-map-stage-054.phase-night .map-seat-054{left:var(--house-x-054)!important;top:var(--house-y-054)!important}
.map-seat-054:hover{filter:brightness(1.08)}
.map-house-asset-054,.map-chair-asset-054{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;pointer-events:none;background-repeat:no-repeat;background-position:center;background-size:contain;transition:opacity .45s ease,transform .45s ease,filter .45s ease}
.map-house-asset-054{width:108px;height:104px;background-image:var(--map-house-054);z-index:1;filter:drop-shadow(0 10px 10px rgba(0,0,0,.55))}
.map-chair-asset-054{width:86px;height:90px;background-image:var(--map-chair-054);z-index:2;filter:drop-shadow(0 9px 9px rgba(0,0,0,.48))}
.game-map-stage-054.phase-day .map-house-asset-054{opacity:0;transform:translate(-50%,-50%) scale(.72);filter:blur(1px)}
.game-map-stage-054.phase-night .map-chair-asset-054{opacity:0;transform:translate(-50%,-50%) scale(.72);filter:blur(1px)}
.game-map-stage-054.no-house-054 .map-house-asset-054{display:none}.game-map-stage-054.no-chair-054 .map-chair-asset-054{display:none}
.game-map-stage-054.no-chair-054.phase-day .map-seat-054:before{content:"";position:absolute;left:50%;top:50%;width:72px;height:72px;transform:translate(-50%,-50%);border-radius:16px;background:linear-gradient(180deg,#8f5a2c,#3d2416);border:2px solid rgba(255,217,130,.25);box-shadow:inset 0 6px 0 rgba(255,255,255,.08),0 12px 14px rgba(0,0,0,.45)}
.game-map-stage-054.no-house-054.phase-night .map-seat-054:before{content:"";position:absolute;left:50%;top:50%;width:82px;height:78px;transform:translate(-50%,-50%);border-radius:18px 18px 12px 12px;background:linear-gradient(180deg,#1d3150,#3d2416 45%,#16100e);border:2px solid rgba(255,217,130,.2);box-shadow:0 13px 16px rgba(0,0,0,.5)}
.map-avatar-anchor-054{position:absolute;left:50%;top:39%;transform:translate(-50%,-50%);z-index:4;display:block;transition:top .45s ease,transform .45s ease,opacity .3s ease}
.game-map-stage-054.phase-night .map-avatar-anchor-054{top:58%;transform:translate(-50%,-50%) scale(.72)}
.map-seat-054 .avatar-widget.small{width:52px!important;height:52px!important;margin:0!important;filter:drop-shadow(0 4px 8px rgba(0,0,0,.6))}
.game-map-stage-054.phase-night .map-seat-054 .avatar-widget.small{width:48px!important;height:48px!important}
.map-seat-number-054{position:absolute!important;right:7px!important;top:7px!important;z-index:6!important;min-width:22px!important;height:22px!important;line-height:22px!important;border-radius:999px!important;background:rgba(16,12,9,.82)!important;border:1px solid rgba(255,217,130,.45)!important;color:#ffe29a!important;font-size:11px!important;font-weight:900!important;text-align:center!important;box-shadow:0 5px 10px rgba(0,0,0,.42)!important}
.map-seat-054 .player-name{position:absolute!important;left:50%!important;bottom:-4px!important;transform:translateX(-50%)!important;z-index:7!important;max-width:92px!important;min-width:54px!important;padding:3px 6px!important;border-radius:999px!important;background:rgba(0,0,0,.72)!important;border:1px solid rgba(255,255,255,.12)!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#fff!important;text-align:center!important;line-height:1.4!important}
.game-map-stage-054.phase-night .map-seat-054 .player-name{bottom:-10px!important;background:rgba(6,10,22,.78)!important}.map-seat-054.dead{opacity:.62}.map-seat-054.dead .map-avatar-anchor-054{filter:grayscale(.9);opacity:.65}.map-seat-054.dead:after{content:"حذف";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-10deg);z-index:8;background:rgba(120,15,18,.9);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:2px 8px;font-size:10px;font-weight:900;color:#fff}.map-seat-054 .dead-mark{display:none!important}.map-seat-054 .speaking-mark{bottom:16px!important;z-index:9!important}.game-map-stage-054.phase-night .map-seat-054 .speaking-mark{bottom:9px!important}.map-seat-054.is-speaking .map-avatar-anchor-054{filter:drop-shadow(0 0 13px rgba(86,224,198,.9))}.map-seat-054.compact{width:80px!important;height:92px!important}.map-seat-054.compact .map-house-asset-054{width:92px;height:88px}.map-seat-054.compact .map-chair-asset-054{width:74px;height:77px}.map-seat-054.compact .avatar-widget.small{width:44px!important;height:44px!important}.map-seat-054.mini{width:68px!important;height:80px!important}.map-seat-054.mini .map-house-asset-054{width:76px;height:73px}.map-seat-054.mini .map-chair-asset-054{width:62px;height:66px}.map-seat-054.mini .avatar-widget.small{width:38px!important;height:38px!important}.map-seat-054.mini .player-name{font-size:9px!important;max-width:70px!important}
@media(max-width:440px){.map-road-segment-054{height:15px}.map-center-ring-054{width:39%}.map-table-center-054{width:32%!important;min-height:110px!important}.map-table-center-054 .god-zone{transform:scale(.62)}.map-seat-054{width:72px!important;height:82px!important}.map-house-asset-054{width:82px;height:78px}.map-chair-asset-054{width:68px;height:72px}.map-seat-054 .avatar-widget.small{width:40px!important;height:40px!important}.game-map-stage-054.phase-night .map-seat-054 .avatar-widget.small{width:35px!important;height:35px!important}.map-seat-number-054{right:2px!important;top:4px!important;min-width:19px!important;height:19px!important;line-height:19px!important;font-size:10px!important}.map-seat-054 .player-name{font-size:9px!important;max-width:74px!important;bottom:-8px!important}.game-map-stage-054.phase-night .map-avatar-anchor-054{top:58%;transform:translate(-50%,-50%) scale(.7)}}

/* Patch 055 - day phase zooms into the center instead of fading houses */
.game-map-stage-054.phase-day{
  background-size:155% auto, cover!important;
  background-position:center 49%, center!important;
}
.game-map-stage-054.phase-night{
  background-size:cover!important;
  background-position:center!important;
}
.game-map-stage-054 .map-house-asset-054,
.game-map-stage-054 .map-chair-asset-054{
  transition:none!important;
}
.game-map-stage-054.phase-day .map-house-asset-054{
  display:none!important;
  opacity:1!important;
  transform:translate(-50%,-50%)!important;
  filter:none!important;
}
.game-map-stage-054.phase-night .map-chair-asset-054{
  display:none!important;
  opacity:1!important;
  transform:translate(-50%,-50%)!important;
  filter:none!important;
}
.game-map-stage-054.phase-day .map-roads-layer-054{
  transform:scale(1.22)!important;
  transform-origin:50% 50%!important;
}
.game-map-stage-054.phase-day .map-road-segment-054{
  width:44%!important;
  height:23px!important;
  opacity:.9!important;
}
.game-map-stage-054.phase-day .map-center-ring-054{
  width:58%!important;
}
.game-map-stage-054.phase-day .map-table-center-054{
  width:44%!important;
  min-height:175px!important;
}
.game-map-stage-054.phase-day .map-table-center-054 .god-zone{
  transform:scale(.9)!important;
}
.game-map-stage-054.phase-day .map-seat-054{
  width:118px!important;
  height:132px!important;
  transform:translate(-50%,-50%) scale(1.08)!important;
  transition:left .42s ease,top .42s ease,transform .42s ease,filter .22s ease!important;
}
.game-map-stage-054.phase-day .map-chair-asset-054{
  width:112px!important;
  height:118px!important;
  display:block!important;
  opacity:1!important;
  transform:translate(-50%,-50%)!important;
  filter:drop-shadow(0 12px 13px rgba(0,0,0,.48))!important;
}
.game-map-stage-054.phase-day .map-avatar-anchor-054{
  top:39%!important;
  transform:translate(-50%,-50%)!important;
  opacity:1!important;
}
.game-map-stage-054.phase-day .map-seat-054 .avatar-widget.small{
  width:62px!important;
  height:62px!important;
}
.game-map-stage-054.phase-day .map-seat-number-054{
  right:10px!important;
  top:5px!important;
  min-width:26px!important;
  height:26px!important;
  line-height:26px!important;
  font-size:12px!important;
}
.game-map-stage-054.phase-day .map-seat-054 .player-name{
  bottom:-7px!important;
  max-width:106px!important;
  min-width:64px!important;
  font-size:11px!important;
}
.game-map-stage-054.phase-day.no-chair-054 .map-seat-054:before{
  width:96px!important;
  height:94px!important;
  display:block!important;
}
@media(max-width:440px){
  .game-map-stage-054.phase-day{
    background-size:170% auto, cover!important;
    background-position:center 48%, center!important;
  }
  .game-map-stage-054.phase-day .map-roads-layer-054{transform:scale(1.18)!important}
  .game-map-stage-054.phase-day .map-road-segment-054{height:19px!important;width:45%!important}
  .game-map-stage-054.phase-day .map-center-ring-054{width:61%!important}
  .game-map-stage-054.phase-day .map-table-center-054{width:46%!important;min-height:140px!important}
  .game-map-stage-054.phase-day .map-table-center-054 .god-zone{transform:scale(.74)!important}
  .game-map-stage-054.phase-day .map-seat-054{width:86px!important;height:98px!important;transform:translate(-50%,-50%) scale(1.05)!important}
  .game-map-stage-054.phase-day .map-chair-asset-054{width:84px!important;height:90px!important}
  .game-map-stage-054.phase-day .map-seat-054 .avatar-widget.small{width:47px!important;height:47px!important}
  .game-map-stage-054.phase-day .map-seat-number-054{right:3px!important;top:2px!important;min-width:21px!important;height:21px!important;line-height:21px!important;font-size:10px!important}
  .game-map-stage-054.phase-day .map-seat-054 .player-name{font-size:9px!important;max-width:78px!important;bottom:-7px!important}
}
/* Patch 057 - XP level widgets */
.home-xp-card{margin:12px auto 8px;max-width:420px;background:rgba(8,13,26,.72);border:1px solid rgba(255,213,128,.22);border-radius:18px;padding:12px 14px;color:#fff;box-shadow:0 14px 32px rgba(0,0,0,.25);backdrop-filter:blur(8px)}
.home-xp-card .top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:900}.home-xp-card .sub{font-size:12px;color:#f7dca0;margin-top:4px}.home-xp-card .xp-num{font-size:12px;color:#d9e4ff;margin-top:6px;display:flex;justify-content:space-between}.xp-bar{height:9px;background:rgba(255,255,255,.12);border-radius:999px;overflow:hidden;margin-top:8px}.xp-bar i{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#facc15);border-radius:999px}.player-level-line{display:block;margin-top:4px;color:#facc15;font-weight:900}.player-info-level-progress,.player-target-box{margin-top:12px;padding:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);border-radius:16px}.player-info-level-progress>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#fff}.player-target-box b{display:block;margin-bottom:8px;color:#facc15}.player-target-box>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.room-player-level-badge{position:absolute;left:50%;transform:translateX(-50%);bottom:-9px;background:rgba(0,0,0,.78);border:1px solid rgba(250,204,21,.45);color:#facc15;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:900;white-space:nowrap}

/* Patch 058 - unified game assets */
.asset-placeholder-058{width:100%;min-height:92px;border:1px dashed rgba(255,255,255,.25);border-radius:18px;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;background:rgba(255,255,255,.05);font-weight:800;color:#fff}
.game-assets-shop-058 audio{border-radius:14px;background:rgba(255,255,255,.08)}

/* Patch 061: final mafia home menu - no top shop/settings/avatar, central profile, swapped shop/settings */
.home-v061-body{background:#050505;overflow-x:hidden}.home-v061{background-color:#050505;background-size:cover;background-position:center;min-height:100svh;overflow:hidden}.home-v061:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 48%,rgba(206,142,35,.12),rgba(0,0,0,.72) 58%,rgba(0,0,0,.95)),linear-gradient(180deg,rgba(0,0,0,.65),rgba(0,0,0,.88));z-index:0}.home-v061-wrap{width:min(520px,100%);min-height:100svh;margin:0 auto;position:relative;z-index:1;padding:8px 10px 14px;isolation:isolate}.home-v061 .flash{position:relative;z-index:20;margin:6px 0}
.home-level-061{direction:ltr;position:relative;z-index:3;height:90px;margin:0 auto 10px;border:1px solid rgba(77,255,32,.64);border-radius:0 18px 18px 0;background:linear-gradient(90deg,rgba(5,19,5,.98),rgba(1,8,5,.9));box-shadow:0 0 22px rgba(80,255,25,.22),inset 0 0 32px rgba(51,210,19,.08);display:grid;grid-template-columns:104px 1fr;align-items:center;overflow:visible}.home-level-061:after{content:"";position:absolute;inset:5px;border:1px solid rgba(92,255,44,.18);border-radius:0 14px 14px 0;pointer-events:none}.level-badge-061{width:104px;height:104px;margin-left:-3px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,#173c0c,#041805 63%,#000);border:2px solid rgba(91,255,37,.75);box-shadow:0 0 0 5px rgba(55,192,22,.18),0 0 35px rgba(80,255,25,.45);font-size:50px;color:#80ff32;overflow:hidden}.level-badge-061 img{width:100%;height:100%;object-fit:cover}.level-main-061{min-width:0;padding:10px 22px 10px 12px}.level-row-061{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.level-title-061{color:#7dff2e;font-weight:900;font-style:italic;text-shadow:0 0 13px rgba(108,255,42,.45);font-size:25px;white-space:nowrap}.level-title-061 strong{font-size:38px;color:#eee;margin-left:6px;text-shadow:0 2px 0 #777,0 0 10px #000}.level-gain-061{color:#80ff36;font-weight:900;font-style:italic;font-size:22px;white-space:nowrap;text-shadow:0 0 12px rgba(110,255,37,.44)}.level-bottom-061{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}.level-track-061{height:28px;border:1px solid rgba(117,255,47,.55);background:#06130a;border-radius:4px;overflow:hidden;position:relative;box-shadow:inset 0 0 12px #000}.level-track-061 i{display:block;height:100%;background:repeating-linear-gradient(135deg,#9dff22 0 24px,#65d814 24px 28px,#16350a 28px 31px),linear-gradient(180deg,#c8ff58,#40b20a);box-shadow:inset 0 0 14px rgba(255,255,255,.28),0 0 18px rgba(102,255,25,.34);clip-path:polygon(0 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,0 100%)}.level-xp-061{color:#f7f7f7;font-size:18px;font-style:italic;white-space:nowrap;text-shadow:0 2px 8px #000}.side-menu-061{position:absolute;z-index:4;top:116px;display:flex;flex-direction:column;gap:11px}.side-left-061{left:14px}.side-right-061{right:14px}.side-btn-061{width:86px;height:72px;border-radius:17px;background:linear-gradient(180deg,rgba(37,25,14,.92),rgba(4,4,4,.92));border:1px solid rgba(255,192,65,.78);box-shadow:0 10px 28px rgba(0,0,0,.72),inset 0 0 18px rgba(255,197,70,.04);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#ffd983;text-align:center;font-size:13px;font-weight:900;line-height:1.25;text-shadow:0 2px 10px #000;position:relative}.side-btn-061 b{font-size:26px;line-height:1;filter:drop-shadow(0 4px 7px #000);font-family:Tahoma,Arial,sans-serif}.side-btn-061.has-alert-061:after{content:"";position:absolute;top:7px;right:9px;width:14px;height:14px;background:#e60013;border-radius:50%;box-shadow:0 0 8px rgba(255,0,0,.8);border:1px solid rgba(255,255,255,.4)}.home-center-061{position:absolute;z-index:2;left:50%;top:126px;transform:translateX(-50%);width:100%;display:flex;flex-direction:column;align-items:center;pointer-events:none}.profile-medallion-061{position:relative;width:280px;height:280px;border-radius:50%;border:2px solid rgba(255,194,70,.9);background-image:linear-gradient(180deg,rgba(3,5,8,.35),rgba(0,0,0,.55)),var(--home-center-bg,radial-gradient(circle at 50% 44%,#18212a,#030303 70%));background-size:cover;background-position:center;box-shadow:0 0 30px rgba(255,179,45,.35),inset 0 0 55px rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;margin-top:18px}.profile-medallion-061:before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 50% 35%,rgba(255,217,117,.06),rgba(0,0,0,.48) 70%);pointer-events:none}.profile-medallion-061:after{content:"";position:absolute;inset:20px;border-radius:50%;background:radial-gradient(circle at 50% 88%,rgba(239,173,51,.2),transparent 42%);pointer-events:none}.crown-top-061{position:absolute;top:-47px;left:50%;transform:translateX(-50%);font-size:58px;color:#ffc84f;text-shadow:0 4px 8px #000,0 0 20px rgba(255,199,71,.8);z-index:3}.mafia-logo-061{position:relative;z-index:2;width:154px;height:154px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:18px;color:#ffd46c;text-shadow:0 4px 9px #000,0 0 15px rgba(255,195,68,.38)}.mafia-logo-061:before{content:"";position:absolute;inset:16px 24px 8px;background:linear-gradient(145deg,#2b2a25,#070707);border:3px solid #d59d36;clip-path:polygon(50% 0,95% 21%,82% 100%,50% 82%,18% 100%,5% 21%);box-shadow:0 0 22px rgba(255,183,49,.4)}.mafia-logo-061:after{content:"";position:absolute;inset:-7px;background:conic-gradient(from 210deg,transparent 0 19%,#dfaa3f 20% 26%,transparent 27% 40%,#dfaa3f 41% 47%,transparent 48% 60%,#dfaa3f 61% 67%,transparent 68% 100%);border-radius:50%;opacity:.95;filter:drop-shadow(0 5px 7px #000);z-index:-1}.mafia-logo-061 em{font-style:normal;position:relative;z-index:2;font-size:47px;margin-bottom:-9px}.mafia-logo-061 strong{position:relative;z-index:2;font-size:70px;font-family:Georgia,serif;line-height:.95}.profile-nameplate-061{position:absolute;left:50%;bottom:-20px;transform:translateX(-50%);z-index:4;width:220px;min-height:69px;border-radius:0 0 18px 18px;background:linear-gradient(180deg,rgba(10,10,10,.98),rgba(0,0,0,.96));border:1px solid rgba(255,194,70,.62);box-shadow:0 12px 24px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.05);text-align:center;padding:9px 10px 8px}.profile-name-061{font-size:24px;color:#ffd983;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 10px #000}.profile-ref-061{font-size:15px;color:#ffd27b;font-weight:800;margin-top:3px}.title-tag-061{pointer-events:auto;min-width:150px;min-height:42px;margin-top:30px;border-radius:12px;padding:7px 16px;background:linear-gradient(180deg,#151015,#080608);border:1px solid rgba(255,199,73,.72);color:#d953ff;font-size:18px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 18px rgba(0,0,0,.7),0 0 16px rgba(170,50,255,.25)}.title-tag-061 span{color:#b243ff;font-size:23px;text-shadow:0 0 12px #b13fff}.coin-box-061{pointer-events:auto;min-width:188px;height:58px;margin-top:9px;border-radius:12px;background:linear-gradient(180deg,rgba(21,16,10,.98),rgba(2,2,2,.98));border:1px solid rgba(255,194,70,.8);box-shadow:0 8px 22px rgba(0,0,0,.75),inset 0 0 16px rgba(255,197,72,.07);display:flex;align-items:center;justify-content:center;gap:15px;color:#ffd466}.coin-box-061 strong{font-size:41px;line-height:1;font-weight:900;text-shadow:0 2px 6px #000}.coin-box-061 span{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,#ffe078 0 38%,#d08a14 39% 70%,#7b4508 100%);border:2px solid #ffc65f;color:#4e2700;font-size:24px;box-shadow:0 0 12px rgba(255,199,69,.55)}.start-btn-061{position:absolute;z-index:5;left:50%;bottom:100px;transform:translateX(-50%);width:74%;height:70px;border-radius:22px;background:linear-gradient(180deg,#ffe394 0,#e8ae3e 42%,#b46a1a 100%);border:2px solid #fff1b4;box-shadow:0 15px 32px rgba(0,0,0,.82),0 0 25px rgba(255,187,52,.55),inset 0 4px 11px rgba(255,255,255,.33);display:flex;align-items:center;justify-content:center;color:#170c03;font-size:34px;font-weight:900;text-shadow:0 1px 0 rgba(255,255,255,.25)}.bottom-nav-061{position:absolute;z-index:6;left:10px;right:10px;bottom:12px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.bottom-nav-061 a{height:58px;border-radius:12px;background:linear-gradient(180deg,rgba(18,17,15,.9),rgba(2,2,2,.94));border:1px solid #e73333;box-shadow:0 10px 24px rgba(0,0,0,.7),inset 0 0 14px rgba(255,194,70,.04);display:flex;align-items:center;justify-content:center;gap:8px;color:#ffd983;font-size:15px;font-weight:900;text-align:center}.bottom-nav-061 b{font-size:27px;color:#ffd04e;line-height:1}.bottom-nav-061 span{white-space:nowrap}
@media(max-width:430px){.home-v061-wrap{padding-left:7px;padding-right:7px}.home-level-061{height:78px;grid-template-columns:85px 1fr}.level-badge-061{width:88px;height:88px;font-size:40px}.level-main-061{padding:9px 13px 9px 8px}.level-title-061{font-size:19px}.level-title-061 strong{font-size:31px}.level-gain-061{font-size:17px}.level-bottom-061{grid-template-columns:1fr;gap:4px}.level-xp-061{font-size:14px;text-align:right}.level-track-061{height:22px}.side-menu-061{top:102px;gap:8px}.side-left-061{left:8px}.side-right-061{right:8px}.side-btn-061{width:72px;height:62px;border-radius:14px;font-size:11px}.side-btn-061 b{font-size:22px}.home-center-061{top:108px}.profile-medallion-061{width:228px;height:228px;margin-top:12px}.crown-top-061{top:-39px;font-size:48px}.mafia-logo-061{width:126px;height:126px}.mafia-logo-061 strong{font-size:56px}.profile-nameplate-061{width:185px;min-height:58px;bottom:-18px}.profile-name-061{font-size:20px}.profile-ref-061{font-size:13px}.title-tag-061{margin-top:27px;min-height:36px;font-size:16px}.coin-box-061{height:50px;min-width:158px}.coin-box-061 strong{font-size:34px}.coin-box-061 span{width:36px;height:36px}.start-btn-061{height:60px;bottom:88px;font-size:29px;width:72%}.bottom-nav-061{gap:7px}.bottom-nav-061 a{height:52px;font-size:12px;gap:5px}.bottom-nav-061 b{font-size:22px}}
@media(max-width:360px){.side-btn-061{width:64px;height:58px;font-size:10px}.profile-medallion-061{width:205px;height:205px}.profile-nameplate-061{width:170px}.home-center-061{top:106px}.start-btn-061{font-size:25px}.bottom-nav-061 a{font-size:10px}.bottom-nav-061 b{font-size:19px}.level-gain-061{display:none}}

/* Patch 062: XP bar uses user's scoring system + central avatar/frame instead of fixed M logo */
.home-v062-body{background:#050505;overflow-x:hidden}.home-v062{background-color:#050505;background-size:cover;background-position:center;min-height:100svh;overflow:hidden}.home-v062:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 48%,rgba(206,142,35,.12),rgba(0,0,0,.72) 58%,rgba(0,0,0,.95)),linear-gradient(180deg,rgba(0,0,0,.65),rgba(0,0,0,.88));z-index:0}.home-v062-wrap{width:min(520px,100%);min-height:100svh;margin:0 auto;position:relative;z-index:1;padding:8px 10px 14px;isolation:isolate}.home-v062 .flash{position:relative;z-index:20;margin:6px 0}
.home-level-062{direction:ltr;position:relative;z-index:3;height:90px;margin:0 auto 10px;border:1px solid rgba(77,255,32,.64);border-radius:0 18px 18px 0;background:linear-gradient(90deg,rgba(5,19,5,.98),rgba(1,8,5,.9));box-shadow:0 0 22px rgba(80,255,25,.22),inset 0 0 32px rgba(51,210,19,.08);display:grid;grid-template-columns:104px 1fr;align-items:center;overflow:visible}.home-level-062:after{content:"";position:absolute;inset:5px;border:1px solid rgba(92,255,44,.18);border-radius:0 14px 14px 0;pointer-events:none}.level-badge-062{width:104px;height:104px;margin-left:-3px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,#173c0c,#041805 63%,#000);border:2px solid rgba(91,255,37,.75);box-shadow:0 0 0 5px rgba(55,192,22,.18),0 0 35px rgba(80,255,25,.45);font-size:50px;color:#80ff32;overflow:hidden}.level-badge-062 img{width:100%;height:100%;object-fit:cover}.level-main-062{min-width:0;padding:10px 22px 10px 12px}.level-row-062{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.level-title-062{color:#7dff2e;font-weight:900;font-style:italic;text-shadow:0 0 13px rgba(108,255,42,.45);font-size:25px;white-space:nowrap}.level-title-062 strong{font-size:38px;color:#eee;margin-left:6px;text-shadow:0 2px 0 #777,0 0 10px #000}.level-gain-062{
    padding-right: 19px;color:#80ff36;font-weight:900;font-style:italic;font-size:22px;white-space:nowrap;text-shadow:0 0 12px rgba(110,255,37,.44)}.level-bottom-062{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}.level-track-062{height:28px;border:1px solid rgba(117,255,47,.55);background:#06130a;border-radius:4px;overflow:hidden;position:relative;box-shadow:inset 0 0 12px #000}.level-track-062 i{display:block;height:100%;background:repeating-linear-gradient(135deg,#9dff22 0 24px,#65d814 24px 28px,#16350a 28px 31px),linear-gradient(180deg,#c8ff58,#40b20a);box-shadow:inset 0 0 14px rgba(255,255,255,.28),0 0 18px rgba(102,255,25,.34);clip-path:polygon(0 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,0 100%)}.level-xp-062{color:#f7f7f7;font-size:18px;font-style:italic;white-space:nowrap;text-shadow:0 2px 8px #000}
.side-menu-062{position:absolute;z-index:4;top:116px;display:flex;flex-direction:column;gap:11px}.side-left-062{left:14px}.side-right-062{right:14px}.side-btn-062{width:86px;height:72px;border-radius:17px;background:linear-gradient(180deg,rgba(37,25,14,.92),rgba(4,4,4,.92));border:1px solid rgba(255,192,65,.78);box-shadow:0 10px 28px rgba(0,0,0,.72),inset 0 0 18px rgba(255,197,70,.04);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#ffd983;text-align:center;font-size:13px;font-weight:900;line-height:1.25;text-shadow:0 2px 10px #000;position:relative}.side-btn-062 b{font-size:26px;line-height:1;filter:drop-shadow(0 4px 7px #000);font-family:Tahoma,Arial,sans-serif}.side-btn-062.has-alert-062:after{content:"";position:absolute;top:7px;right:9px;width:14px;height:14px;background:#e60013;border-radius:50%;box-shadow:0 0 8px rgba(255,0,0,.8);border:1px solid rgba(255,255,255,.4)}
.home-center-062{position:absolute;z-index:2;left:50%;top:126px;transform:translateX(-50%);width:100%;display:flex;flex-direction:column;align-items:center;pointer-events:none}.profile-medallion-062{position:relative;width:280px;height:280px;border-radius:50%;border:2px solid rgba(255,194,70,.9);background:radial-gradient(circle at 50% 40%,rgba(45,45,42,.92),rgba(6,6,6,.98) 70%);box-shadow:0 0 30px rgba(255,179,45,.35),inset 0 0 55px rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;margin-top:18px}.profile-medallion-062:before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 50% 35%,rgba(255,217,117,.06),rgba(0,0,0,.48) 72%);pointer-events:none}.crown-top-062{position:absolute;top:-47px;left:50%;transform:translateX(-50%);font-size:58px;color:#ffc84f;text-shadow:0 4px 8px #000,0 0 20px rgba(255,199,71,.8);z-index:5}.avatar-holder-062{position:relative;z-index:2;width:230px;height:230px;display:flex;align-items:center;justify-content:center}.home-main-avatar-062{width:220px!important;height:220px!important;margin:0!important;border-radius:50%;filter:drop-shadow(0 14px 22px rgba(0,0,0,.88));}.home-main-avatar-062 .avatar-img{inset:8%!important;width:84%!important;height:84%!important;border-radius:50%!important;object-fit:cover!important;background:#121212!important;box-shadow:0 0 38px rgba(0,0,0,.75) inset}.home-main-avatar-062 .avatar-frame{inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 0 14px rgba(255,194,70,.28))}.profile-nameplate-062{position:absolute;left:50%;bottom:-20px;transform:translateX(-50%);z-index:4;width:220px;min-height:69px;border-radius:0 0 18px 18px;background:linear-gradient(180deg,rgba(10,10,10,.98),rgba(0,0,0,.96));border:1px solid rgba(255,194,70,.62);box-shadow:0 12px 24px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.05);text-align:center;padding:9px 10px 8px}.profile-name-062{font-size:24px;color:#ffd983;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 10px #000}.profile-ref-062{font-size:15px;color:#ffd27b;font-weight:800;margin-top:3px}.title-tag-062{pointer-events:auto;min-width:150px;min-height:42px;margin-top:30px;border-radius:12px;padding:7px 16px;background:linear-gradient(180deg,#151015,#080608);border:1px solid rgba(255,199,73,.72);color:#d953ff;font-size:18px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 18px rgba(0,0,0,.7),0 0 16px rgba(170,50,255,.25)}.title-tag-062 span{color:#b243ff;font-size:23px;text-shadow:0 0 12px #b13fff}.coin-box-062{pointer-events:auto;min-width:188px;height:58px;margin-top:9px;border-radius:12px;background:linear-gradient(180deg,rgba(21,16,10,.98),rgba(2,2,2,.98));border:1px solid rgba(255,194,70,.8);box-shadow:0 8px 22px rgba(0,0,0,.75),inset 0 0 16px rgba(255,197,72,.07);display:flex;align-items:center;justify-content:center;gap:15px;color:#ffd466}.coin-box-062 strong{font-size:41px;line-height:1;font-weight:900;text-shadow:0 2px 6px #000}.coin-box-062 span{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,#ffe078 0 38%,#d08a14 39% 70%,#7b4508 100%);border:2px solid #ffc65f;color:#4e2700;font-size:24px;box-shadow:0 0 12px rgba(255,199,69,.55)}
.start-btn-062{position:absolute;z-index:5;left:50%;bottom:100px;transform:translateX(-50%);width:74%;height:70px;border-radius:22px;background:linear-gradient(180deg,#ffe394 0,#e8ae3e 42%,#b46a1a 100%);border:2px solid #fff1b4;box-shadow:0 15px 32px rgba(0,0,0,.82),0 0 25px rgba(255,187,52,.55),inset 0 4px 11px rgba(255,255,255,.33);display:flex;align-items:center;justify-content:center;color:#170c03;font-size:34px;font-weight:900;text-shadow:0 1px 0 rgba(255,255,255,.25)}.bottom-nav-062{position:absolute;z-index:6;left:10px;right:10px;bottom:12px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.bottom-nav-062 a{height:58px;border-radius:12px;background:linear-gradient(180deg,rgba(18,17,15,.9),rgba(2,2,2,.94));border:1px solid #e73333;box-shadow:0 10px 24px rgba(0,0,0,.7),inset 0 0 14px rgba(255,194,70,.04);display:flex;align-items:center;justify-content:center;gap:8px;color:#ffd983;font-size:15px;font-weight:900;text-align:center}.bottom-nav-062 b{font-size:27px;color:#ffd04e;line-height:1}.bottom-nav-062 span{white-space:nowrap}
@media(max-width:430px){.home-v062-wrap{padding-left:7px;padding-right:7px}.home-level-062{height:78px;grid-template-columns:85px 1fr}.level-badge-062{width:88px;height:88px;font-size:40px}.level-main-062{padding:9px 13px 9px 8px}.level-title-062{font-size:19px}.level-title-062 strong{font-size:31px}.level-gain-062{font-size:17px}.level-bottom-062{grid-template-columns:1fr;gap:4px}.level-xp-062{font-size:14px;text-align:right}.level-track-062{height:22px}.side-menu-062{top:102px;gap:8px}.side-left-062{left:8px}.side-right-062{right:8px}.side-btn-062{width:72px;height:62px;border-radius:14px;font-size:11px}.side-btn-062 b{font-size:22px}.home-center-062{top:108px}.profile-medallion-062{width:228px;height:228px;margin-top:12px}.crown-top-062{top:-39px;font-size:48px}.avatar-holder-062{width:190px;height:190px}.home-main-avatar-062{width:184px!important;height:184px!important}.profile-nameplate-062{width:185px;min-height:58px;bottom:-18px}.profile-name-062{font-size:20px}.profile-ref-062{font-size:13px}.title-tag-062{margin-top:27px;min-height:36px;font-size:16px}.coin-box-062{height:50px;min-width:158px}.coin-box-062 strong{font-size:34px}.coin-box-062 span{width:36px;height:36px}.start-btn-062{height:60px;bottom:88px;font-size:29px;width:72%}.bottom-nav-062{gap:7px}.bottom-nav-062 a{height:52px;font-size:12px;gap:5px}.bottom-nav-062 b{font-size:22px}}
@media(max-width:360px){.side-btn-062{width:64px;height:58px;font-size:10px}.profile-medallion-062{width:205px;height:205px}.avatar-holder-062{width:174px;height:174px}.home-main-avatar-062{width:168px!important;height:168px!important}.profile-nameplate-062{width:170px}.home-center-062{top:106px}.start-btn-062{font-size:25px}.bottom-nav-062 a{font-size:10px}.bottom-nav-062 b{font-size:19px}.level-gain-062{display:none}}

/* Patch 067 - responsive seat/avatar sizing by player count
   <=8 players: large seats/avatars, 9-12: bigger default, 13-18: compact, 19+: mini */
.game-map-stage-054 .map-seat-054{
  width:104px!important;
  height:118px!important;
}
.game-map-stage-054 .map-chair-asset-054{
  width:98px!important;
  height:104px!important;
}
.game-map-stage-054 .map-seat-054 .avatar-widget.small{
  width:62px!important;
  height:62px!important;
}
.game-map-stage-054 .map-avatar-anchor-054{
  top:38%!important;
  transform:translate(-50%,-50%)!important;
}
.game-map-stage-054 .map-seat-054.large{
  width:122px!important;
  height:136px!important;
}
.game-map-stage-054 .map-seat-054.large .map-chair-asset-054{
  width:116px!important;
  height:124px!important;
}
.game-map-stage-054 .map-seat-054.large .avatar-widget.small{
  width:74px!important;
  height:74px!important;
}
.game-map-stage-054 .map-seat-054.large .player-name{
  max-width:112px!important;
  font-size:11px!important;
  bottom:-7px!important;
}
.game-map-stage-054 .map-seat-054.compact{
  width:88px!important;
  height:100px!important;
}
.game-map-stage-054 .map-seat-054.compact .map-chair-asset-054{
  width:84px!important;
  height:90px!important;
}
.game-map-stage-054 .map-seat-054.compact .avatar-widget.small{
  width:54px!important;
  height:54px!important;
}
.game-map-stage-054 .map-seat-054.compact .player-name{
  max-width:86px!important;
  font-size:9px!important;
}
.game-map-stage-054 .map-seat-054.mini{
  width:74px!important;
  height:86px!important;
}
.game-map-stage-054 .map-seat-054.mini .map-chair-asset-054{
  width:70px!important;
  height:76px!important;
}
.game-map-stage-054 .map-seat-054.mini .avatar-widget.small{
  width:46px!important;
  height:46px!important;
}
.game-map-stage-054 .map-seat-054.mini .player-name{
  max-width:72px!important;
  font-size:8px!important;
  bottom:-8px!important;
}
.game-map-stage-054.phase-day .map-seat-054{
  width:124px!important;
  height:140px!important;
  transform:translate(-50%,-50%) scale(1.06)!important;
}
.game-map-stage-054.phase-day .map-chair-asset-054{
  width:118px!important;
  height:126px!important;
}
.game-map-stage-054.phase-day .map-seat-054 .avatar-widget.small{
  width:70px!important;
  height:70px!important;
}
.game-map-stage-054.phase-day .map-seat-054.large{
  width:138px!important;
  height:154px!important;
  transform:translate(-50%,-50%) scale(1.04)!important;
}
.game-map-stage-054.phase-day .map-seat-054.large .map-chair-asset-054{
  width:132px!important;
  height:140px!important;
}
.game-map-stage-054.phase-day .map-seat-054.large .avatar-widget.small{
  width:82px!important;
  height:82px!important;
}
.game-map-stage-054.phase-day .map-seat-054.compact{
  width:96px!important;
  height:110px!important;
  transform:translate(-50%,-50%) scale(1.03)!important;
}
.game-map-stage-054.phase-day .map-seat-054.compact .map-chair-asset-054{
  width:92px!important;
  height:98px!important;
}
.game-map-stage-054.phase-day .map-seat-054.compact .avatar-widget.small{
  width:58px!important;
  height:58px!important;
}
.game-map-stage-054.phase-day .map-seat-054.mini{
  width:80px!important;
  height:92px!important;
  transform:translate(-50%,-50%) scale(1)!important;
}
.game-map-stage-054.phase-day .map-seat-054.mini .map-chair-asset-054{
  width:76px!important;
  height:82px!important;
}
.game-map-stage-054.phase-day .map-seat-054.mini .avatar-widget.small{
  width:49px!important;
  height:49px!important;
}
.game-map-stage-054.phase-night .map-seat-054 .avatar-widget.small{
  width:56px!important;
  height:56px!important;
}
.game-map-stage-054.phase-night .map-seat-054.large .avatar-widget.small{
  width:66px!important;
  height:66px!important;
}
.game-map-stage-054.phase-night .map-seat-054.compact .avatar-widget.small{
  width:50px!important;
  height:50px!important;
}
.game-map-stage-054.phase-night .map-seat-054.mini .avatar-widget.small{
  width:42px!important;
  height:42px!important;
}
@media(max-width:440px){
  .game-map-stage-054 .map-seat-054{width:86px!important;height:98px!important}
  .game-map-stage-054 .map-chair-asset-054{width:82px!important;height:88px!important}
  .game-map-stage-054 .map-seat-054 .avatar-widget.small{width:54px!important;height:54px!important}
  .game-map-stage-054 .map-seat-054.large{width:100px!important;height:112px!important}
  .game-map-stage-054 .map-seat-054.large .map-chair-asset-054{width:96px!important;height:102px!important}
  .game-map-stage-054 .map-seat-054.large .avatar-widget.small{width:64px!important;height:64px!important}
  .game-map-stage-054 .map-seat-054.compact{width:76px!important;height:88px!important}
  .game-map-stage-054 .map-seat-054.compact .map-chair-asset-054{width:72px!important;height:78px!important}
  .game-map-stage-054 .map-seat-054.compact .avatar-widget.small{width:48px!important;height:48px!important}
  .game-map-stage-054 .map-seat-054.mini{width:66px!important;height:78px!important}
  .game-map-stage-054 .map-seat-054.mini .map-chair-asset-054{width:62px!important;height:68px!important}
  .game-map-stage-054 .map-seat-054.mini .avatar-widget.small{width:40px!important;height:40px!important}
  .game-map-stage-054.phase-day .map-seat-054{width:92px!important;height:104px!important;transform:translate(-50%,-50%) scale(1.02)!important}
  .game-map-stage-054.phase-day .map-seat-054 .avatar-widget.small{width:56px!important;height:56px!important}
  .game-map-stage-054.phase-day .map-seat-054.large{width:106px!important;height:118px!important}
  .game-map-stage-054.phase-day .map-seat-054.large .avatar-widget.small{width:66px!important;height:66px!important}
  .game-map-stage-054.phase-day .map-seat-054.compact .avatar-widget.small{width:49px!important;height:49px!important}
  .game-map-stage-054.phase-day .map-seat-054.mini .avatar-widget.small{width:41px!important;height:41px!important}
}

/* Patch 069: role card facedown normal state */
.role-mini-floating.role-card-trigger-065.role-card-trigger-069{
  width:58px!important;height:78px!important;min-height:78px!important;padding:0!important;
  display:grid!important;place-items:center!important;overflow:hidden!important;
}
.role-card-trigger-065 small,.role-card-trigger-065 b,.role-card-trigger-065 .role-hidden-label-065{display:none!important}
.role-card-pop.role-card-pop-065[hidden]{display:none!important}


/* Patch 071 - home top level bar full rounded responsive fix */
.home-level-062{
  --level-badge-size-062: 96px;
  height:auto;
  min-height:96px;
  padding:10px 14px 10px 10px;
  border-radius:26px;
  grid-template-columns:var(--level-badge-size-062) minmax(0,1fr);
  gap:12px;
  overflow:hidden;
}
.home-level-062:after{
  inset:6px;
  border-radius:20px;
}
.home-level-062:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent 0%,rgba(142,255,93,.06) 22%,transparent 42%,transparent 58%,rgba(255,255,255,.08) 75%,transparent 100%);
  animation:homeLevelSweep071 4.8s linear infinite;
  pointer-events:none;
}
@keyframes homeLevelSweep071{
  0%{transform:translateX(-25%)}
  100%{transform:translateX(25%)}
}
.level-badge-062{
  width:var(--level-badge-size-062);
  height:var(--level-badge-size-062);
  margin-left:0;
  flex:0 0 var(--level-badge-size-062);
  position:relative;
  z-index:2;
}
.level-main-062{
  min-width:0;
  padding:0 6px 0 0;
  position:relative;
  z-index:2;
}
.level-row-062{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
}
.level-title-062{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.level-title-062 span{display:inline-block;flex:0 0 auto}
.level-title-062 strong{margin-left:0}
.level-gain-062{text-align:right}
.level-bottom-062{
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
}
.level-track-062{
  width:100%;
  min-width:0;
  border-radius:8px;
}
.level-xp-062{
  align-self:center;
  text-align:right;
}

@media (max-width:430px){
  .home-level-062{
    --level-badge-size-062: 78px;
    min-height:82px;
    padding:8px 10px 9px 8px;
    border-radius:24px;
    grid-template-columns:var(--level-badge-size-062) minmax(0,1fr);
    gap:10px;
  }
  .home-level-062:after{border-radius:18px}
  .level-main-062{padding-right:4px}
  .level-row-062{gap:8px;margin-bottom:6px}
  .level-title-062{font-size:18px}
  .level-title-062 strong{font-size:30px}
  .level-gain-062{font-size:16px}
  .level-bottom-062{grid-template-columns:minmax(0,1fr);gap:5px}
  .level-track-062{height:20px}
  .level-xp-062{font-size:13px;line-height:1.15}
}

@media (max-width:360px){
  .home-level-062{
    --level-badge-size-062: 64px;
    min-height:74px;
    padding:7px 8px 8px 7px;
    border-radius:22px;
    gap:8px;
  }
  .home-level-062:after{border-radius:16px}
  .level-row-062{
    grid-template-columns:minmax(0,1fr);
    gap:3px;
    margin-bottom:4px;
  }
  .level-title-062{font-size:15px;gap:6px}
  .level-title-062 strong{font-size:24px}
  .level-gain-062{display:block;font-size:13px;line-height:1.1}
  .level-track-062{height:18px}
  .level-xp-062{font-size:12px}
}


/* Patch 072 - stronger top bar animation + border balance fix */
.home-level-062{
  --level-badge-size-062: 90px;
  min-height:94px;
  padding:9px 14px 9px 9px;
  border:1px solid rgba(86,255,42,.72);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 45%, rgba(59,180,20,.12), transparent 24%),
    linear-gradient(90deg, rgba(6,26,8,.98), rgba(2,12,7,.95) 55%, rgba(3,10,6,.98));
  box-shadow:
    0 0 18px rgba(80,255,25,.22),
    0 0 34px rgba(80,255,25,.10),
    inset 0 0 28px rgba(51,210,19,.08);
  overflow:hidden;
  isolation:isolate;
}
.home-level-062::after{
  content:"";
  position:absolute;
  inset:5px;
  border:1px solid rgba(92,255,44,.22);
  border-radius:19px;
  pointer-events:none;
  z-index:1;
}
.home-level-062::before{
  content:"";
  position:absolute;
  top:-20%;
  bottom:-20%;
  left:-35%;
  width:38%;
  background:linear-gradient(90deg,transparent 0%,rgba(163,255,133,.05) 28%,rgba(255,255,255,.18) 50%,rgba(153,255,118,.08) 72%,transparent 100%);
  transform:skewX(-18deg);
  animation:homeLevelSweep072 3.4s linear infinite;
  pointer-events:none;
  z-index:0;
}
@keyframes homeLevelSweep072{
  0%{left:-42%; opacity:.2}
  18%{opacity:.55}
  100%{left:118%; opacity:.15}
}
.level-badge-062{
  width:var(--level-badge-size-062);
  height:var(--level-badge-size-062);
  align-self:center;
  justify-self:start;
  border-width:2px;
  box-shadow:
    0 0 0 4px rgba(55,192,22,.14),
    0 0 22px rgba(80,255,25,.38),
    inset 0 0 16px rgba(106,255,48,.12);
  animation:badgePulse072 2.4s ease-in-out infinite;
}
.level-badge-062 span,
.level-badge-062 img{position:relative;z-index:2}
.level-badge-062 span{filter:drop-shadow(0 0 9px rgba(125,255,70,.45))}
@keyframes badgePulse072{
  0%,100%{transform:scale(1); box-shadow:0 0 0 4px rgba(55,192,22,.14),0 0 18px rgba(80,255,25,.30),inset 0 0 16px rgba(106,255,48,.10)}
  50%{transform:scale(1.03); box-shadow:0 0 0 6px rgba(55,192,22,.18),0 0 28px rgba(80,255,25,.52),inset 0 0 18px rgba(106,255,48,.18)}
}
.level-main-062{padding:0 4px 0 0}
.level-row-062{margin-bottom:8px}
.level-title-062{font-size:24px;text-shadow:0 0 14px rgba(108,255,42,.52)}
.level-title-062 strong{font-size:36px;animation:levelNumberPop072 3.2s ease-in-out infinite}
@keyframes levelNumberPop072{
  0%,100%{transform:translateY(0); text-shadow:0 2px 0 #777,0 0 10px #000}
  50%{transform:translateY(-1px); text-shadow:0 2px 0 #888,0 0 14px rgba(255,255,255,.18),0 0 10px #000}
}
.level-gain-062{
  animation:xpGlow072 1.9s ease-in-out infinite;
}
@keyframes xpGlow072{
  0%,100%{transform:scale(1); text-shadow:0 0 10px rgba(110,255,37,.34)}
  50%{transform:scale(1.04); text-shadow:0 0 18px rgba(147,255,82,.78),0 0 8px rgba(255,255,255,.15)}
}
.level-track-062{
  height:26px;
  border-radius:9px;
  border:1px solid rgba(117,255,47,.62);
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.08)),
    #06130a;
  box-shadow:inset 0 0 12px #000, 0 0 14px rgba(75,255,26,.10);
}
.level-track-062 i{
  position:relative;
  overflow:hidden;
  border-radius:8px;
  background:
    repeating-linear-gradient(135deg,#a8ff34 0 22px,#76e21b 22px 28px,#17370b 28px 31px),
    linear-gradient(180deg,#d5ff68,#49bc10);
  background-size:140% 100%, 100% 100%;
  animation:trackMove072 2.1s linear infinite;
}
.level-track-062 i::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.05) 30%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.05) 70%,transparent 100%);
  transform:translateX(-100%);
  animation:trackShine072 2.4s ease-in-out infinite;
}
@keyframes trackMove072{
  0%{background-position:0 0, 0 0}
  100%{background-position:56px 0, 0 0}
}
@keyframes trackShine072{
  0%,20%{transform:translateX(-120%)}
  70%,100%{transform:translateX(120%)}
}
.level-xp-062{font-weight:900}

@media (max-width:430px){
  .home-level-062{
    --level-badge-size-062: 74px;
    min-height:80px;
    padding:8px 10px 8px 8px;
    border-radius:92px;
  }
  .home-level-062::after{inset:4px;border-radius:17px}
  .level-title-062{font-size:18px}
  .level-title-062 strong{font-size:29px}
  .level-gain-062{font-size:17px}
  .level-track-062{height:21px}
}

@media (max-width:360px){
  .home-level-062{
    --level-badge-size-062: 60px;
    min-height:72px;
    padding:7px 8px;
    border-radius:20px;
  }
  .home-level-062::after{inset:4px;border-radius:15px}
  .level-title-062{font-size:15px}
  .level-title-062 strong{font-size:24px}
  .level-gain-062{font-size:13px; display:block}
  .level-track-062{height:18px}
}

/* PATCH154_FRAME_OVERLAY_START */
/* PATCH 154 — exact transparent avatar-frame overlay */
.avatar-widget{
  position:relative!important;
  display:block!important;
  aspect-ratio:1/1!important;
  overflow:visible!important;
  isolation:isolate!important;
  background:transparent!important;
  border:0!important;
}
.avatar-widget .avatar-img,
.avatar-widget img.avatar-img{
  position:absolute!important;
  inset:10%!important;
  width:80%!important;
  height:80%!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:50%!important;
  background:#111!important;
  z-index:1!important;
  margin:0!important;
  padding:0!important;
  opacity:1!important;
}
.avatar-widget .avatar-frame,
.avatar-widget img.avatar-frame{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  margin:0!important;
  padding:0!important;
  opacity:1!important;
  z-index:2!important;
  pointer-events:none!important;
  mix-blend-mode:normal!important;
  transform:none!important;
}
.avatar-widget .avatar-frame[src=""],
.avatar-widget .avatar-frame:not([src]),
.avatar-widget .avatar-frame[hidden]{display:none!important}

/* Home/profile hero: keep avatar centered exactly under the full frame canvas. */
.home-main-avatar-062 .avatar-img,
.home-main-avatar-062 img.avatar-img{
  inset:10%!important;
  width:80%!important;
  height:80%!important;
}
.home-main-avatar-062 .avatar-frame,
.home-main-avatar-062 img.avatar-frame{
  inset:0!important;
  width:100%!important;
  height:100%!important;
}

/* Remove generic image backgrounds from all frame previews. */
.frame-preview,
.frame-preview img,
.asset-thumb.frame,
.shop-item .frame-preview img,
.frame-composite-154,
.frame-composite-154 img,
.frame-mini-composite-154,
.frame-mini-composite-154 img{
  background-color:transparent!important;
}
.frame-preview{position:relative!important;overflow:visible!important}
.frame-preview .base{
  position:absolute!important;
  inset:10%!important;
  width:80%!important;
  height:80%!important;
  border-radius:50%!important;
  overflow:hidden!important;
  z-index:1!important;
}
.frame-preview>img,
.frame-preview img.frame,
.frame-preview .avatar-frame{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  border-radius:0!important;
  z-index:2!important;
  margin:0!important;
  padding:0!important;
}
/* PATCH154_FRAME_OVERLAY_END */
