/* ==========================================================================
   Empurra Empurra · sistema de design da interface (camada final)
   Carregado por último em index.html. Tokens em :root; componentes usam o
   prefixo ":root body" para vencer as camadas antigas sem !important.
   Movimento: tudo é desligado por prefers-reduced-motion (ver final).
   ========================================================================== */
:root{
  /* Superfícies (azul-marinho) */
  --ee-950:#060b1b;--ee-900:#0a1126;--ee-850:#0f172f;--ee-800:#141e3a;--ee-750:#192547;--ee-700:#1f2d53;--ee-600:#28396a;--ee-500:#35497f;
  --ee-line:rgba(150,178,240,.18);--ee-line-strong:rgba(170,196,255,.32);
  --ee-text:#f6f8ff;--ee-muted:#bdcae4;--ee-dim:#93a3c6;
  /* Destaques */
  --ee-lime:#d6fa69;--ee-lime-hi:#ecffa6;--ee-lime-lo:#bfe846;--ee-lime-edge:#6f8f1d;--ee-lime-ink:#18250a;
  --ee-violet:#bba6ff;--ee-violet-edge:#5d48b8;--ee-coral:#ff7b5c;--ee-coral-edge:#a83a22;
  --ee-gold:#ffd166;--ee-gold-edge:#a8751a;--ee-sky:#6cc4ff;--ee-mint:#7ee0b5;--ee-silver:#d5def0;--ee-bronze:#f0a46b;
  /* Forma */
  --ee-r-xs:8px;--ee-r-sm:12px;--ee-r-md:16px;--ee-r-lg:22px;--ee-r-xl:28px;--ee-r-pill:999px;
  --ee-space-1:4px;--ee-space-2:8px;--ee-space-3:12px;--ee-space-4:16px;--ee-space-5:20px;--ee-space-6:24px;
  /* Profundidade */
  --ee-glass:linear-gradient(180deg,rgba(28,41,76,.94),rgba(15,23,47,.94));
  --ee-panel:linear-gradient(180deg,#1c2a4f 0%,#141e3b 42%,#111a33 100%);
  --ee-card:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));
  --ee-hi:inset 0 1px 0 rgba(255,255,255,.1);
  --ee-pop:0 30px 80px -12px rgba(2,6,20,.85),0 0 0 1px rgba(0,0,0,.35);
  --ee-float:0 10px 26px -8px rgba(2,6,20,.7);
  /* Tipografia */
  --ee-display:'Fredoka EE','Fredoka','Arial Rounded MT Bold',ui-rounded,system-ui,sans-serif;
  --ee-body:'Signika EE','Segoe UI',system-ui,-apple-system,sans-serif;
  --ee-ease:cubic-bezier(.2,.9,.3,1.2);
  /* Compatibilidade com as camadas antigas */
  --ui-bg:var(--ee-900);--ui-panel:var(--ee-800);--ui-raised:var(--ee-700);--ui-line:#3a4d78;--ui-text:var(--ee-text);--ui-muted:var(--ee-muted);--ui-lime:var(--ee-lime);--ui-violet:var(--ee-violet);
  color-scheme:dark;
}

/* ---------- Base ---------- */
:root body{font-family:var(--ee-body);background:var(--ee-900);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;scrollbar-color:#4a5f92 transparent}
:root body :is(h1,h2,h3,.brand,.timer,.multiplier,.roundbox b,#centerMessage,.character-title,.rank-row .place,.rank-row strong,.player-hud strong,.room-code strong){font-family:var(--ee-display)}
:root body :is(button,input,select){font-family:var(--ee-body)}
.ui-icon{display:block;width:100%;height:100%;overflow:visible}
[data-icon]{display:inline-grid;place-items:center;width:1.25em;height:1.25em;flex:none;font-style:normal;line-height:1}
:root body :is(button,a,input,select,[tabindex]):focus-visible{outline:3px solid var(--ee-lime);outline-offset:3px;box-shadow:0 0 0 6px rgba(214,250,105,.18)}
:root body ::selection{background:var(--ee-lime);color:var(--ee-lime-ink)}
:root body *{scrollbar-width:thin;scrollbar-color:#4a5f92 transparent}
:root body ::-webkit-scrollbar{width:10px;height:10px}
:root body ::-webkit-scrollbar-thumb{background:#3d5185;border-radius:10px;border:3px solid transparent;background-clip:padding-box}
:root body ::-webkit-scrollbar-track{background:transparent}
:root body .grain{opacity:.035;z-index:2}

/* Fundo do menu: vinheta com brilho lima/violeta sobre a arena 3D */
:root body::before{background:
  radial-gradient(60vmax 50vmax at -8% 18%,rgba(187,166,255,.22),transparent 60%),
  radial-gradient(40vmax 40vmax at 8% 105%,rgba(214,250,105,.14),transparent 62%),
  linear-gradient(90deg,rgba(7,12,30,.96) 0%,rgba(9,15,36,.86) 28%,rgba(10,17,40,.3) 54%,transparent 76%),
  linear-gradient(0deg,rgba(7,12,30,.9),transparent 30%)}
:root body.playing::before{display:none}

/* ---------- Botões (3D com borda inferior) ---------- */
:root body :is(.primary,.secondary){
  position:relative;border:0;border-radius:var(--ee-r-md);font-family:var(--ee-display);font-weight:600;font-style:normal;letter-spacing:.4px;
  transition:transform .14s var(--ee-ease),box-shadow .14s ease,filter .14s ease,background-color .14s;
  -webkit-tap-highlight-color:transparent}
:root body .primary{
  color:var(--ee-lime-ink);background:linear-gradient(180deg,var(--ee-lime-hi) 0%,var(--ee-lime) 38%,var(--ee-lime-lo) 100%);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.65),inset 0 -3px 0 rgba(60,90,0,.16),0 5px 0 var(--ee-lime-edge),0 14px 26px -8px rgba(160,215,40,.5);
  text-shadow:0 1px 0 rgba(255,255,255,.45)}
:root body .secondary{
  color:var(--ee-text);background:linear-gradient(180deg,#30436f 0%,#24345b 55%,#1f2d51 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(160,190,255,.14),0 5px 0 #080e22,0 14px 24px -10px rgba(0,0,0,.75)}
:root body :is(.primary,.secondary):hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.06)}
:root body .primary:hover:not(:disabled){box-shadow:inset 0 2px 0 rgba(255,255,255,.65),inset 0 -3px 0 rgba(60,90,0,.16),0 7px 0 var(--ee-lime-edge),0 18px 30px -8px rgba(160,215,40,.55)}
:root body .secondary:hover:not(:disabled){box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 0 1px rgba(214,250,105,.35),0 7px 0 #080e22,0 18px 28px -10px rgba(0,0,0,.8)}
:root body :is(.primary,.secondary):active:not(:disabled){transform:translateY(4px);filter:brightness(.98)}
:root body .primary:active:not(:disabled){box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 1px 0 var(--ee-lime-edge),0 4px 10px -4px rgba(160,215,40,.4)}
:root body .secondary:active:not(:disabled){box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 1px rgba(160,190,255,.14),0 1px 0 #080e22}
:root body :is(.primary,.secondary):disabled{filter:saturate(.35) brightness(.8);cursor:default;transform:none}

/* Botão-ícone redondo (fechar) */
:root body :is(.close,#closeWardrobe,.options-close){
  display:inline-grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:14px;color:var(--ee-text);font-size:0;line-height:0;
  background:linear-gradient(180deg,#32446f,#243459);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 4px 0 #080e22,0 10px 18px -8px #000;transition:transform .12s var(--ee-ease),box-shadow .12s}
:root body :is(.close,#closeWardrobe,.options-close) [data-icon]{width:20px;height:20px}
:root body :is(.close,#closeWardrobe,.options-close):hover{transform:translateY(-1px) rotate(-4deg);color:var(--ee-lime)}
:root body :is(.close,#closeWardrobe,.options-close):active{transform:translateY(3px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 1px 0 #080e22}

/* ---------- Cabeçalho ---------- */
:root body header .brand{font-family:var(--ee-display);font-weight:700;font-stretch:88%;font-size:27px;letter-spacing:.2px;gap:12px;color:var(--ee-text);text-shadow:0 3px 0 #050a18,0 6px 14px rgba(0,0,0,.45)}
:root body .brand-icon{display:grid;place-items:center;width:44px;height:44px;padding:8px;font-size:0;line-height:0;color:var(--ee-lime-ink);
  background:linear-gradient(180deg,var(--ee-lime-hi),var(--ee-lime) 45%,var(--ee-lime-lo));border-radius:14px 6px 14px 6px;transform:rotate(-7deg);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 4px 0 var(--ee-lime-edge),0 10px 20px -6px rgba(160,215,40,.55);transition:transform .25s var(--ee-ease)}
:root body .brand:hover .brand-icon{transform:rotate(4deg) scale(1.06)}
:root body.playing .tiny{display:none}
:root body .tiny{font-family:var(--ee-body);font-weight:700;color:var(--ee-muted);font-size:9px;letter-spacing:1.6px;text-shadow:none}
:root body .tools .icon{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;min-width:44px;padding:0 12px;border:0;border-radius:14px;color:var(--ee-text);
  background:linear-gradient(180deg,rgba(48,67,111,.95),rgba(33,48,84,.95));box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(160,190,255,.14),0 4px 0 #070d20,0 12px 22px -10px #000;
  font-family:var(--ee-display);font-weight:600;font-size:15px;letter-spacing:.3px;transition:transform .12s var(--ee-ease),box-shadow .12s,color .12s}
:root body .tools .icon [data-icon]{width:21px;height:21px}
:root body .tools .icon:hover{transform:translateY(-2px);color:var(--ee-lime)}
:root body .tools .icon:active{transform:translateY(3px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 1px 0 #070d20}
:root body #optionsToggle .options-label{line-height:1}

/* ---------- Menu principal ---------- */
:root body #menu{animation:ee-fade .35s ease both}
:root body #menu::before{content:'';display:block;position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.55;
  background:radial-gradient(circle at 1px 1px,rgba(214,250,105,.22) 1.2px,transparent 1.6px) 0 0/22px 22px;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,rgba(0,0,0,.6) 25%,transparent 48%);mask-image:linear-gradient(90deg,#000 0%,rgba(0,0,0,.6) 25%,transparent 48%);
  animation:ee-drift 26s linear infinite}
:root body #menu .eyebrow{display:inline-flex;align-items:center;gap:9px;padding:6px 13px 6px 10px;border-radius:var(--ee-r-pill);background:rgba(187,166,255,.12);
  box-shadow:inset 0 0 0 1px rgba(187,166,255,.3);color:#d9cfff;font-family:var(--ee-body);font-weight:700;font-size:12px;letter-spacing:1.3px;animation:ee-rise .5s var(--ee-ease) both}
:root body #menu .eyebrow>span:first-child{width:8px;height:8px;border-radius:50%;background:var(--ee-lime);box-shadow:0 0 0 4px rgba(214,250,105,.2);animation:ee-live 1.8s ease-in-out infinite}
:root body #menu h1{font-family:var(--ee-display);font-weight:700;font-stretch:82%;font-style:normal;letter-spacing:.5px;line-height:.9;color:var(--ee-text);
  text-shadow:0 5px 0 #070d22,0 10px 26px rgba(0,0,0,.45);animation:ee-rise .55s .05s var(--ee-ease) both}
:root body #menu h1 em{color:var(--ee-lime);font-style:normal;display:inline-block;transform:rotate(-2deg);transform-origin:left;text-shadow:0 5px 0 #2d3f0c,0 10px 26px rgba(160,215,40,.35)}
:root body #menu .intro{font-family:var(--ee-body);font-weight:400;font-size:16px;line-height:1.55;color:var(--ee-muted);animation:ee-rise .55s .1s var(--ee-ease) both}
:root body #menu .play-actions{display:grid;gap:14px;animation:ee-rise .6s .14s var(--ee-ease) both}
:root body #menu .mode-btn{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;column-gap:16px;min-height:80px;padding:12px 64px 12px 14px;text-align:left;
  font-family:var(--ee-display);font-weight:600;font-stretch:96%;font-size:22px;line-height:1.05;letter-spacing:.4px;font-style:normal;border-radius:20px}
:root body #menu .mode-btn .mode-icon{display:grid;place-items:center;width:52px;height:52px;padding:12px;border-radius:15px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);transition:transform .2s var(--ee-ease)}
:root body #menu .mode-btn:hover .mode-icon{transform:rotate(-8deg) scale(1.08)}
:root body #menu .mode-btn.primary .mode-icon{background:rgba(24,37,10,.12);box-shadow:inset 0 0 0 1px rgba(24,37,10,.12);color:var(--ee-lime-ink)}
:root body #menu #online .mode-icon{color:var(--ee-gold);background:rgba(255,209,102,.13);box-shadow:inset 0 0 0 1px rgba(255,209,102,.3)}
:root body #menu #duos .mode-icon{color:var(--ee-sky);background:rgba(108,196,255,.13);box-shadow:inset 0 0 0 1px rgba(108,196,255,.3)}
:root body #menu .mode-copy{display:block;min-width:0}
:root body #menu .mode-copy>span{position:absolute;right:16px;top:50%;display:grid;place-items:center;width:36px;height:36px;margin-top:-18px;float:none;border-radius:50%;font-family:var(--ee-body);font-size:18px;font-weight:700;
  background:rgba(255,255,255,.1);transition:transform .2s var(--ee-ease),background .2s}
:root body #menu .primary .mode-copy>span{background:rgba(24,37,10,.12)}
:root body #menu .mode-btn:hover .mode-copy>span{transform:translate(3px,-3px);background:rgba(255,255,255,.2)}
:root body #menu .play-actions small{display:block;margin-top:5px;font-family:var(--ee-body);font-style:normal;font-weight:600;font-size:12.5px;letter-spacing:.5px;line-height:1.35;color:var(--ee-muted);text-shadow:none}
:root body #menu .primary small{color:#3c5418}
:root body #menu .play-actions>button:nth-child(3){border-left:0}

/* Seletor de arenas */
:root body #menu .arena-picker{background:linear-gradient(180deg,rgba(23,34,64,.94),rgba(13,20,42,.96));border:0;border-radius:24px;padding:16px 18px 18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px var(--ee-line),0 24px 60px -16px rgba(2,6,20,.9);backdrop-filter:blur(14px);animation:ee-rise .6s .2s var(--ee-ease) both}
:root body #menu .picker-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-family:var(--ee-body);font-weight:700;font-size:12px;letter-spacing:1.5px;color:var(--ee-muted)}
:root body #menu .picker-title span{float:none;padding:3px 10px;border-radius:var(--ee-r-pill);background:rgba(214,250,105,.12);color:var(--ee-lime);font-family:var(--ee-display);font-weight:600;font-size:13px;letter-spacing:.8px;opacity:1}
:root body #menu #maps{gap:10px}
:root body #menu #maps .map-card{--map:var(--ee-violet);position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;row-gap:2px;align-items:center;
  min-width:0;min-height:72px;padding:12px 12px;border:0;border-radius:18px;text-align:left;color:var(--ee-text);
  background:linear-gradient(180deg,#24345c,#1b2949);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 1px rgba(160,190,255,.14),0 4px 0 #080e22;
  transition:transform .16s var(--ee-ease),box-shadow .16s,background .16s}
:root body #menu #maps .map-card[data-map=garden]{--map:#8fdc6a}
:root body #menu #maps .map-card[data-map=orbit]{--map:#b5a1ff}
:root body #menu #maps .map-card[data-map=lava]{--map:#ff8d52}
:root body #menu #maps .map-card[data-map=jungle]{--map:#4fd6a4}
:root body #menu #maps .map-card[data-map=ice]{--map:#7ccbff}
:root body #menu #maps .map-card .mini{grid-row:1/3;float:none;display:grid;place-items:center;width:40px;height:40px;margin:0;padding:8px;border-radius:13px;color:var(--map);
  background:color-mix(in srgb,var(--map) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--map) 35%,transparent);font-size:20px;transition:transform .2s var(--ee-ease)}
:root body #menu #maps .map-card b{font-family:var(--ee-display);font-weight:600;font-stretch:92%;font-size:16px;line-height:1.1;letter-spacing:.3px;overflow-wrap:normal;align-self:end}
:root body #menu #maps .map-card small{clear:none;display:block;padding:0;font-family:var(--ee-body);font-weight:600;font-size:10.5px;letter-spacing:.4px;line-height:1.3;color:var(--ee-dim);align-self:start}
:root body #menu #maps .map-card:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 1px color-mix(in srgb,var(--map) 50%,transparent),0 7px 0 #080e22}
:root body #menu #maps .map-card:hover .mini{transform:rotate(-10deg) scale(1.1)}
:root body #menu #maps .map-card.active{padding:12px;color:#f8ffe6;border:0;
  background:linear-gradient(180deg,color-mix(in srgb,var(--map) 30%,#22345a),color-mix(in srgb,var(--map) 14%,#182644));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 0 2px var(--ee-lime),0 5px 0 var(--ee-lime-edge),0 14px 28px -10px color-mix(in srgb,var(--map) 60%,transparent);transform:translateY(-2px)}
:root body #menu #maps .map-card.active small{color:#e2ecd2}
:root body #menu #maps .map-card.active .mini{background:var(--map);color:#0d1530;box-shadow:inset 0 2px 0 rgba(255,255,255,.4)}
:root body #menu #maps .map-card.active::after{content:'';position:absolute;top:-7px;right:-7px;width:24px;height:24px;border-radius:50%;
  background:var(--ee-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318250a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E") center/15px no-repeat;
  box-shadow:0 0 0 3px var(--ee-900),0 3px 8px rgba(0,0,0,.4);animation:ee-pop .3s var(--ee-ease) both}
:root body #menu .stage-caption{padding:12px 18px 12px 16px;border:0;border-radius:18px;background:linear-gradient(180deg,rgba(23,34,64,.94),rgba(13,20,42,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px var(--ee-line),inset 4px 0 0 var(--ee-lime),0 16px 40px -14px rgba(2,6,20,.9);font-family:var(--ee-display);font-weight:600;font-size:16px;letter-spacing:.4px}
:root body #menu .stage-caption>span:last-child{font-family:var(--ee-body);font-weight:600;font-size:12px;letter-spacing:.5px;color:var(--ee-muted)}
:root body .live-dot{background:var(--ee-lime);box-shadow:0 0 0 4px rgba(214,250,105,.2);animation:ee-live 1.8s ease-in-out infinite}

/* ---------- Painéis e diálogos ---------- */
:root body :is(.panel,#optionsPanel,#wardrobePanel,#results.final-results){
  background:var(--ee-panel);color:var(--ee-text);border:0;border-radius:var(--ee-r-xl);
  box-shadow:inset 0 3px 0 rgba(214,250,105,.85),inset 0 0 0 1px var(--ee-line),inset 0 4px 22px -6px rgba(214,250,105,.18),var(--ee-pop);backdrop-filter:none}
:root body .panel{animation:ee-pop-panel .34s var(--ee-ease) both}
:root body :is(#optionsPanel,#wardrobePanel){animation:ee-rise .34s var(--ee-ease) both}
:root body :is(#optionsLayer,#wardrobeLayer){background:radial-gradient(ellipse at 50% 40%,rgba(20,32,66,.62),rgba(4,8,20,.84));backdrop-filter:blur(10px) saturate(1.1);animation:ee-fade .22s ease both}
:root body :is(.panel h2,.wardrobe-heading h2,.options-heading h2,#results h2){font-family:var(--ee-display);font-weight:700;font-stretch:90%;font-style:normal;letter-spacing:.3px;color:var(--ee-text);text-shadow:0 3px 0 rgba(4,8,22,.7)}
:root body :is(.panel h2 span,.wardrobe-heading h2 em,.options-heading h2 span){color:var(--ee-lime);font-style:normal}
:root body :is(.panel .eyebrow,.wardrobe-heading .eyebrow,.options-heading .eyebrow,#resultEyebrow){display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;padding:5px 11px;border-radius:var(--ee-r-pill);
  background:rgba(187,166,255,.13);box-shadow:inset 0 0 0 1px rgba(187,166,255,.28);color:#dcd2ff;font-family:var(--ee-body);font-weight:700;font-size:11px;letter-spacing:1.3px;line-height:1.3}
:root body :is(label,.lobby-camera h3,.team-picker-title,.wardrobe-group legend){font-family:var(--ee-body);font-weight:700;letter-spacing:1.1px;color:var(--ee-muted)}
:root body :is(#netStatus,#resultSub,#teamNotice,#bindingStatus,#lobbyCameraNotice){font-family:var(--ee-body);font-size:13px;line-height:1.55;color:var(--ee-muted)}
:root body :is(.fine,.score-rules,.rematch-note,.options-description,.volume-label,.wardrobe-summary small,.custom-color-fields label,.roster-details span,.lobby-camera p,.wardrobe-group p){font-family:var(--ee-body);font-size:13px;line-height:1.55;color:var(--ee-muted)}
:root body #error{font-family:var(--ee-body);font-weight:600;font-size:13px;color:#ffb39f}

/* Campos */
:root body :is(input:not([type=range]):not([type=color]),select,#roomMap,.roster-row select){
  min-height:46px;padding:11px 14px;border:0;border-radius:14px;color:var(--ee-text);font-family:var(--ee-body);font-weight:600;font-size:15px;
  background:#0a1229;box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 0 0 1.5px #34477a;transition:box-shadow .15s}
:root body :is(input:not([type=range]):not([type=color]),select):hover{box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 0 0 1.5px #4d64a3}
:root body :is(input:not([type=range]):not([type=color]),select):focus{outline:none;box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 0 0 2px var(--ee-lime),0 0 0 5px rgba(214,250,105,.16)}
:root body input::placeholder{color:#8798bd;opacity:1}
:root body #roomCode{font-family:var(--ee-display);font-weight:600;letter-spacing:2px;text-transform:uppercase}

/* Controle segmentado (câmera, idioma, dupla) */
:root body :is(.camera-choices,.team-choices){display:flex;gap:6px;padding:5px;border-radius:16px;background:#0a1229;box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 0 0 1px #2c3c68}
:root body :is(.camera-choices,.team-choices) button{flex:1;min-height:42px;padding:9px 10px;border:0;border-radius:12px;color:var(--ee-muted);background:transparent;box-shadow:none;
  font-family:var(--ee-display);font-weight:600;font-size:14px;letter-spacing:.3px;line-height:1.15;transition:background .16s,color .16s,transform .12s,box-shadow .16s}
:root body :is(.camera-choices,.team-choices) button:hover:not(:disabled){color:var(--ee-text);background:rgba(255,255,255,.06)}
:root body .camera-choices button:is([aria-pressed=true],[aria-checked=true]){color:var(--ee-lime-ink);background:linear-gradient(180deg,var(--ee-lime-hi),var(--ee-lime) 50%,var(--ee-lime-lo));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 0 var(--ee-lime-edge);border:0;text-shadow:none}
:root body .camera-choices button:disabled{opacity:.75}
:root body .team-choices [data-team='0']{color:#bfe3ff}
:root body .team-choices [data-team='1']{color:#ffd0c4}
:root body .team-choices [data-team='0'][aria-pressed=true]{color:#06203a;background:linear-gradient(180deg,#a6dcff,#5fb6f6);box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 0 #2d6fa6;outline:0}
:root body .team-choices [data-team='1'][aria-pressed=true]{color:#3a0f05;background:linear-gradient(180deg,#ffc0ad,#ff8a6b);box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 0 #b44a2e;outline:0}

/* ---------- Sala multiplayer (lobby) ---------- */
:root body #lobby{width:min(480px,94vw);padding:26px 26px 22px}
:root body #lobby .close{position:absolute;right:16px;top:16px}
:root body #lobby h2{font-size:44px;margin:12px 0 18px}
:root body #lobby .lobby-name input{margin-top:8px}
:root body :is(.lobby-look,.lobby-camera,#teamPicker,.round-highlight){border:0;border-radius:18px;background:var(--ee-card);box-shadow:inset 0 0 0 1px var(--ee-line)}
:root body .lobby-look{padding:12px 12px 12px 16px;margin:2px 0 14px}
:root body .lobby-look>div b{display:block;font-family:var(--ee-display);font-weight:600;font-size:17px;color:var(--ee-text)}
:root body .lobby-look>div small{font-family:var(--ee-body);font-weight:500;font-size:12px;color:var(--ee-muted)}
:root body :is(.rotate-character,.preview-motions>button,.binding-button,.waiting-tools>button,.room-code>button,.reset-controls,.wardrobe-back){
  border:0;border-radius:12px;color:var(--ee-text);background:linear-gradient(180deg,#32456f,#26375e);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(160,190,255,.16),0 3px 0 #080e22;
  font-family:var(--ee-display);font-weight:600;font-size:13px;letter-spacing:.4px;text-decoration:none;transition:transform .12s var(--ee-ease),box-shadow .12s,color .12s}
:root body :is(.rotate-character,.preview-motions>button,.binding-button,.waiting-tools>button,.room-code>button,.reset-controls,.wardrobe-back):hover:not(:disabled){transform:translateY(-1px);color:var(--ee-lime)}
:root body :is(.rotate-character,.preview-motions>button,.binding-button,.waiting-tools>button,.room-code>button,.reset-controls,.wardrobe-back):active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 #080e22}
:root body :is(#editAppearance,#exitGame){border:0;border-radius:12px;color:var(--ee-text);background:linear-gradient(180deg,#32456f,#26375e);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(160,190,255,.16),0 3px 0 #080e22;font-family:var(--ee-display);font-weight:600;letter-spacing:.4px;transition:transform .12s var(--ee-ease),box-shadow .12s,color .12s}
:root body :is(#editAppearance,#exitGame):hover:not(:disabled){transform:translateY(-1px);color:var(--ee-lime)}
:root body :is(#editAppearance,#exitGame):active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 #080e22}
:root body #editAppearance{padding:10px 13px;font-size:13px}
:root body .lobby-camera{padding:14px;margin:0 0 16px}
:root body :is(.lobby-camera h3,#teamPicker h3){margin:0 0 10px;font-family:var(--ee-body);font-weight:700;letter-spacing:1.1px;color:var(--ee-muted);font-size:12px}
:root body .lobby-camera .camera-choices{margin-top:0}
:root body #teamPicker{padding:14px;margin:0 0 16px}
:root body .or{display:flex;align-items:center;gap:10px;margin:18px 0 10px;font-family:var(--ee-body);font-weight:700;font-size:11px;letter-spacing:1.2px;color:var(--ee-dim)}
:root body .or::before,:root body .or::after{content:'';flex:1;height:1px;background:var(--ee-line)}
:root body .join-row{gap:10px}
:root body .join-row button{padding:0 18px;min-height:46px;font-size:15px}
:root body #connectActions>.primary,:root body #startOnline{min-height:54px;font-size:18px}
:root body .room-code{display:grid;gap:6px;padding:16px;border-radius:18px;text-align:center;font-family:var(--ee-body);font-weight:700;font-size:11px;letter-spacing:1.5px;color:var(--ee-muted);
  background:repeating-linear-gradient(135deg,rgba(214,250,105,.05) 0 10px,transparent 10px 20px),#0b1430;box-shadow:inset 0 0 0 2px rgba(214,250,105,.28)}
:root body .room-code strong{margin:4px 0;font-size:34px;font-weight:700;letter-spacing:7px;color:var(--ee-lime);text-shadow:0 3px 0 #2d3f0c}
:root body .room-code>button{justify-self:center;padding:10px 16px}
:root body #roster{display:grid;gap:8px;margin:14px 0}
:root body .roster-row{gap:12px;padding:9px 12px;border:0;border-radius:14px;background:var(--ee-card);box-shadow:inset 0 0 0 1px var(--ee-line)}
:root body .roster-avatar{width:36px;height:36px;padding:6px;border:0;border-radius:12px;flex:none;color:#101a33;background:var(--avatar);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.18)}
:root body .roster-details b{font-family:var(--ee-display);font-weight:600;font-size:15px}
:root body .roster-details span{font-size:12px;line-height:1.35}
:root body .roster-row small{padding:3px 8px;border-radius:var(--ee-r-pill);background:rgba(255,255,255,.08);font-family:var(--ee-body);font-weight:700;font-size:10px;letter-spacing:1px;color:var(--ee-muted)}
:root body #netStatus{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--ee-line)}

/* ---------- Opções ---------- */
:root body #optionsPanel{width:min(700px,100%);padding:22px 24px 20px}
:root body .options-heading{align-items:center;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--ee-line)}
:root body .options-heading h2{font-size:44px;margin:8px 0 0}
:root body :is(.audio-settings,.language-settings,.camera-settings,.control-settings){margin:0 0 12px;padding:16px;border:0;border-radius:20px;background:var(--ee-card);box-shadow:inset 0 0 0 1px var(--ee-line)}
:root body .options-section-heading h3{display:flex;align-items:center;gap:10px;margin:0;font-family:var(--ee-display);font-weight:600;font-size:19px;letter-spacing:.3px;color:var(--ee-text)}
:root body .section-icon{display:grid;place-items:center;width:34px;height:34px;padding:7px;border-radius:11px;color:var(--ee-lime);background:rgba(214,250,105,.1);box-shadow:inset 0 0 0 1px rgba(214,250,105,.22)}
:root body .language-alt{font-family:var(--ee-body);font-weight:600;font-size:13px;color:var(--ee-dim)}
:root body .options-description{margin:10px 0 12px}
:root body #cameraModeSummary{padding:5px 11px;border-radius:var(--ee-r-pill);background:rgba(214,250,105,.12);color:var(--ee-lime);font-family:var(--ee-display);font-weight:600;font-size:13px}
/* Interruptor de som */
:root body .sound-toggle{position:relative;display:inline-flex;align-items:center;gap:10px;min-width:0;min-height:38px;padding:6px 14px 6px 8px;border:0;border-radius:var(--ee-r-pill);
  font-family:var(--ee-display);font-weight:600;font-size:14px;color:var(--ee-lime);background:#0a1229;box-shadow:inset 0 0 0 1.5px #34477a}
:root body .sound-toggle::before{content:'';flex:none;width:42px;height:24px;border-radius:var(--ee-r-pill);background:linear-gradient(180deg,var(--ee-lime),var(--ee-lime-lo));box-shadow:inset 0 2px 3px rgba(0,0,0,.2);transition:background .2s}
:root body .sound-toggle::after{content:'';position:absolute;left:28px;top:50%;width:18px;height:18px;margin-top:-9px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.35);transition:left .22s var(--ee-ease)}
:root body .sound-toggle[aria-pressed=false]{color:var(--ee-dim);background:#0a1229;box-shadow:inset 0 0 0 1.5px #34477a}
:root body .sound-toggle[aria-pressed=false]::before{background:#33456f}
:root body .sound-toggle[aria-pressed=false]::after{left:11px;background:#c5d0e6}
/* Volume */
:root body .volume-label{display:flex;justify-content:space-between;align-items:center;margin-top:14px;letter-spacing:0}
:root body .volume-label output{float:none;padding:3px 10px;border-radius:var(--ee-r-pill);background:rgba(214,250,105,.12);color:var(--ee-lime);font-family:var(--ee-display);font-weight:600;font-size:14px}
:root body .volume-row{gap:12px;margin:12px 0 2px}
:root body .volume-row span{font-family:var(--ee-display);font-size:20px;color:var(--ee-dim)}
:root body #volume{--v:65%;-webkit-appearance:none;appearance:none;height:26px;background:transparent;accent-color:var(--ee-lime)}
:root body #volume::-webkit-slider-runnable-track{height:10px;border-radius:10px;background:linear-gradient(90deg,var(--ee-lime-lo),var(--ee-lime)) 0/var(--v) 100% no-repeat,#0a1229;box-shadow:inset 0 0 0 1.5px #34477a}
:root body #volume::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;margin-top:-7px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px var(--ee-lime),0 3px 0 4px var(--ee-lime-edge),0 6px 12px rgba(0,0,0,.4);transition:transform .12s}
:root body #volume:active::-webkit-slider-thumb{transform:scale(1.12)}
:root body #volume::-moz-range-track{height:10px;border-radius:10px;background:#0a1229;box-shadow:inset 0 0 0 1.5px #34477a}
:root body #volume::-moz-range-progress{height:10px;border-radius:10px;background:var(--ee-lime)}
:root body #volume::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:50%;background:#fff;box-shadow:0 0 0 4px var(--ee-lime),0 3px 0 4px var(--ee-lime-edge)}
/* Tabela de controles */
:root body .reset-controls{padding:8px 12px;font-size:12px}
:root body .binding-header{padding:0 10px 8px;font-family:var(--ee-body);font-weight:700;font-size:10.5px;letter-spacing:1.2px;color:var(--ee-dim)}
:root body #bindingRows{display:grid;gap:4px}
:root body .binding-row{min-height:46px;padding:5px 10px;border:0;border-radius:12px;font-family:var(--ee-body);font-size:14px}
:root body .binding-row:nth-child(odd){background:rgba(255,255,255,.035)}
:root body .binding-row>span{font-weight:600;color:var(--ee-text)}
:root body :is(kbd,.binding-row>kbd){display:inline-block;padding:6px 10px;border:0;border-radius:9px;color:var(--ee-text);background:linear-gradient(180deg,#2e4069,#223156);font-family:var(--ee-display);font-weight:600;font-size:13px;line-height:1.1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 0 #070d20}
:root body .binding-button{min-height:36px;padding:7px 10px;font-size:13px}
:root body .binding-button.listening{color:var(--ee-lime-ink);background:linear-gradient(180deg,var(--ee-lime-hi),var(--ee-lime));box-shadow:0 3px 0 var(--ee-lime-edge);animation:ee-blink 1s ease-in-out infinite}
:root body .clear-binding{width:30px;height:30px;border-radius:9px;color:var(--ee-dim);font-size:18px}
:root body .clear-binding:hover:not(:disabled){background:rgba(255,123,92,.15);color:var(--ee-coral)}
:root body #bindingStatus{min-height:0;margin:10px 2px 0;font-size:12.5px;color:var(--ee-mint)}
:root body #bindingStatus.error{color:#ffb39f}
:root body .options-bottom{padding-top:14px;border-top:1px solid var(--ee-line)}
:root body #optionsDone{min-height:50px;padding:12px 20px;font-size:16px}
:root body #optionsMatchNotice{font-family:var(--ee-body);font-size:13px;color:var(--ee-gold)}

/* ---------- Guarda-roupa ---------- */
:root body #wardrobePanel{width:min(1000px,calc(100vw - 40px));border-radius:var(--ee-r-xl)}
:root body .wardrobe-heading{padding:22px 26px 18px;background:linear-gradient(180deg,rgba(214,250,105,.06),transparent);border-bottom:1px solid var(--ee-line)}
:root body .wardrobe-heading h2{font-size:46px;margin:10px 0 0}
:root body .character-stage{border-right:1px solid var(--ee-line);
  background:radial-gradient(ellipse 60% 26% at 50% 70%,rgba(214,250,105,.2),transparent 70%),radial-gradient(ellipse at 50% 35%,#3a4f86 0%,#22325c 55%,#16203f 100%)}
:root body .preview-label{padding:5px 10px;border-radius:var(--ee-r-pill);background:rgba(6,11,27,.55);color:var(--ee-text);font-family:var(--ee-body);font-weight:700;font-size:10px;letter-spacing:1.4px}
:root body .preview-label::before{color:var(--ee-lime)}
:root body .character-title{font-family:var(--ee-display);font-weight:700;font-stretch:90%;font-size:42px;color:var(--ee-text);text-shadow:0 3px 0 rgba(4,8,22,.7)}
:root body .character-description{font-family:var(--ee-body);font-size:14px;line-height:1.5;color:#d0dbf0}
:root body .rotate-character{padding:9px 14px;border-radius:var(--ee-r-pill)}
:root body .preview-motions{gap:8px}
:root body .preview-motions>button{padding:9px 12px;font-size:12px}
:root body .preview-motions>button[aria-pressed=true]{color:var(--ee-lime-ink);background:linear-gradient(180deg,var(--ee-lime-hi),var(--ee-lime));box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 0 var(--ee-lime-edge)}
:root body .preview-motions small{font-family:var(--ee-body);font-size:12px;color:#c8d4ec}
:root body .wardrobe-controls{gap:18px;padding:20px 24px}
:root body .wardrobe-group legend{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:12px;letter-spacing:1.4px;color:var(--ee-text)}
:root body .wardrobe-group legend span{display:inline-grid;place-items:center;width:24px;height:24px;margin:0;border-radius:8px;background:rgba(187,166,255,.16);color:var(--ee-violet);font-family:var(--ee-display);font-weight:600;font-size:12px;letter-spacing:0}
:root body .choice-grid{gap:8px}
:root body .cosmetic-choice{position:relative;gap:4px;min-height:74px;padding:10px 4px 9px;border:0;border-radius:16px;color:var(--ee-text);
  background:linear-gradient(180deg,#27385f,#1e2c4d);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 1px rgba(160,190,255,.14),0 4px 0 #080e22;transition:transform .14s var(--ee-ease),box-shadow .14s,background .14s}
:root body .cosmetic-choice:hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 1px rgba(214,250,105,.4),0 6px 0 #080e22}
:root body .cosmetic-choice:active{transform:translateY(3px);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 #080e22}
:root body .cosmetic-choice .choice-icon{display:grid;place-items:center;width:38px;height:38px;padding:2px;color:var(--ee-violet);font-size:22px}
:root body .cosmetic-choice b{font-family:var(--ee-display);font-weight:600;font-size:13px;letter-spacing:.2px;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}
:root body .cosmetic-choice small{font-family:var(--ee-body);font-weight:600;font-size:10.5px;color:var(--ee-dim)}
:root body .cosmetic-choice[aria-pressed=true]{padding:10px 4px 9px;border:0;color:#f8ffe6;background:linear-gradient(180deg,#3c5530,#2a3d2a);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 2px var(--ee-lime),0 4px 0 var(--ee-lime-edge),0 10px 20px -8px rgba(160,215,40,.45)}
:root body .cosmetic-choice[aria-pressed=true] .choice-icon{color:var(--ee-lime)}
:root body .cosmetic-choice[aria-pressed=true]::after{content:'';position:absolute;top:-6px;right:-6px;width:20px;height:20px;border-radius:50%;
  background:var(--ee-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318250a' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E") center/12px no-repeat;box-shadow:0 0 0 3px #16203f}
:root body .accessory-grid .cosmetic-choice{min-height:56px}
:root body .accessory-grid .choice-icon{width:32px;height:32px;padding:2px;font-size:18px}
:root body .color-choices{gap:12px}
:root body .color-swatch{display:grid;place-items:center;width:42px;height:42px;padding:9px;border:0;border-radius:50%;color:#101a33;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.4),inset 0 -3px 0 rgba(0,0,0,.18),0 0 0 3px #16203f,0 0 0 4px rgba(160,190,255,.25);transition:transform .15s var(--ee-ease),box-shadow .15s}
:root body .color-swatch:hover{transform:translateY(-2px) scale(1.05)}
:root body .color-swatch[aria-pressed=true],:root body .custom-swatch[aria-pressed=true]{transform:scale(1.12);box-shadow:inset 0 3px 0 rgba(255,255,255,.4),inset 0 -3px 0 rgba(0,0,0,.18),0 0 0 3px #16203f,0 0 0 6px var(--ee-lime)}
:root body .color-swatch span{width:100%;height:100%}
:root body .custom-swatch{color:#101a33}
:root body .custom-color-fields{padding:10px 12px;border-radius:14px;background:var(--ee-card);box-shadow:inset 0 0 0 1px var(--ee-line)}
:root body #customColorHex{width:110px;min-height:40px;padding:8px 10px;font-family:ui-monospace,Consolas,monospace;font-size:14px}
:root body .wardrobe-bottom{gap:18px;padding:16px 24px 18px;border-top:1px solid var(--ee-line);background:linear-gradient(180deg,rgba(17,26,51,.92),#111a33);backdrop-filter:blur(8px)}
:root body .wardrobe-summary strong{font-family:var(--ee-display);font-weight:600;font-size:15px;line-height:1.35;color:var(--ee-text)}
:root body .wardrobe-summary small{font-size:12px}
:root body .wardrobe-back{padding:12px 16px;font-size:14px}
:root body .wardrobe-actions .primary{min-height:52px;padding:12px 22px;font-size:17px}

/* ---------- HUD da partida ---------- */
:root body .match-top{display:flex;align-items:center;gap:10px;padding:7px;border:0;border-radius:var(--ee-r-pill);background:var(--ee-glass);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 1px var(--ee-line),0 14px 34px -10px rgba(2,6,20,.85);backdrop-filter:blur(10px)}
:root body .roundbox,:root body .multiplier{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:84px;height:56px;padding:4px 16px;border-radius:var(--ee-r-pill);background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px var(--ee-line)}
:root body .roundbox small,:root body .multiplier small{display:block;font-family:var(--ee-body);font-weight:700;font-size:9.5px;letter-spacing:1.5px;color:var(--ee-dim)}
:root body .roundbox b{font-weight:700;font-size:25px;line-height:1;color:var(--ee-text)}
:root body .roundbox b span{font-size:14px;color:var(--ee-dim)}
:root body .timer{display:grid;place-items:center;width:72px;height:72px;margin:-15px 2px;border-radius:50%;font-weight:700;font-size:36px;line-height:1;letter-spacing:.5px;color:var(--ee-lime-ink);font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,var(--ee-lime-hi),var(--ee-lime) 50%,var(--ee-lime-lo));box-shadow:inset 0 3px 0 rgba(255,255,255,.6),0 5px 0 var(--ee-lime-edge),0 0 0 5px rgba(10,17,38,.95),0 14px 26px -8px rgba(160,215,40,.6)}
:root body .timer.low{color:#fff;background:linear-gradient(180deg,#ffa58c,var(--ee-coral) 55%,#e9573a);box-shadow:inset 0 3px 0 rgba(255,255,255,.45),0 5px 0 var(--ee-coral-edge),0 0 0 5px rgba(10,17,38,.95),0 14px 26px -8px rgba(255,123,92,.7);animation:ee-heart 1s ease-in-out infinite}
:root body .multiplier{flex-direction:row;gap:6px;font-weight:700;font-size:24px;line-height:1;color:var(--ee-lime)}
:root body .multiplier small{font-size:9.5px}
:root body .multiplier:not([data-level='1']){color:#3a2603;background:linear-gradient(180deg,#ffe49a,var(--ee-gold));box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 0 var(--ee-gold-edge);animation:ee-heart 1.6s ease-in-out infinite}
:root body .multiplier:not([data-level='1']) small{color:#6b4a0c}
/* Placar lateral */
:root body #playersHud{gap:8px}
:root body #playersHud .player-hud{--p:var(--ee-violet);display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:'av name score' 'av tag score';column-gap:10px;row-gap:0;align-items:center;
  min-width:196px;max-width:230px;padding:7px 12px 7px 7px;border:0;border-radius:16px;background:var(--ee-glass);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px var(--ee-line),inset 3px 0 0 var(--p),0 8px 20px -10px rgba(2,6,20,.8);transition:opacity .3s,filter .3s}
:root body .player-hud .ph-avatar{grid-area:av;display:grid;place-items:center;width:32px;height:32px;padding:5px;border-radius:11px;color:#0e1830;background:var(--p);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.2)}
:root body .player-hud b{grid-area:name;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ee-display);font-weight:600;font-size:15px;line-height:1.15;color:var(--ee-text)}
:root body .player-hud small{grid-area:tag;justify-self:start;font-family:var(--ee-body);font-weight:700;font-size:9.5px;letter-spacing:1.1px;line-height:1.3;color:var(--ee-dim)}
:root body .player-hud strong{grid-area:score;min-width:28px;text-align:right;font-weight:700;font-size:22px;color:var(--ee-text);font-variant-numeric:tabular-nums}
:root body #playersHud .player-hud.me{box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 2px var(--ee-lime),0 0 0 4px rgba(214,250,105,.14),0 8px 20px -10px rgba(2,6,20,.8)}
:root body .player-hud.me small{color:var(--ee-lime)}
:root body #playersHud .player-hud.dead{opacity:.62;filter:saturate(.25)}
:root body .player-hud.dead small{font-size:9.5px;color:#ffb39f}
:root body .player-hud.dead b{text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:rgba(255,179,159,.7)}
/* Avisos */
:root body #eventToast{transform:none;translate:-50% 0;display:flex;align-items:center;gap:10px;max-width:min(560px,86vw);padding:10px 18px 10px 12px;border:0;border-radius:var(--ee-r-pill);color:var(--ee-text);
  background:var(--ee-glass);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 1px var(--ee-line-strong),0 14px 30px -10px rgba(2,6,20,.85);font-family:var(--ee-display);font-weight:600;font-size:15px;letter-spacing:.2px;line-height:1.25}
:root body #eventToast::before{content:'';flex:none;width:10px;height:10px;border-radius:50%;background:var(--ee-lime);box-shadow:0 0 0 4px rgba(214,250,105,.2)}
:root body #eventToast:empty{display:none}
:root body #hazardHint{display:flex;align-items:center;gap:10px;max-width:300px;padding:9px 14px 9px 9px;border:0;border-radius:16px;color:var(--ee-text);background:var(--ee-glass);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px rgba(255,209,102,.35),0 10px 24px -10px rgba(2,6,20,.85);font-family:var(--ee-body);font-weight:700;font-size:12px;letter-spacing:.6px;line-height:1.3}
:root body:is(.spectating,.grabbed) #hazardHint,:root body:has(#windEscapeBanner:not(.hidden)) #hazardHint,:root body:has(#ledgeBanner:not(.hidden)) #hazardHint{display:none}
:root body #hazardHint>i{flex:none;width:30px;height:30px;padding:5px;border-radius:10px;color:#3a2603;background:linear-gradient(180deg,#ffe49a,var(--ee-gold));box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 2px 0 var(--ee-gold-edge)}
:root body #exitGame{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;font-size:13px}
:root body #centerMessage{transform:none;translate:-50% -50%;font-family:var(--ee-display);font-weight:700;font-size:min(190px,34vw,42vh);line-height:1;letter-spacing:0;color:var(--ee-lime);
  -webkit-text-stroke:12px #0b1226;paint-order:stroke fill;text-shadow:0 10px 0 #0b1226,0 24px 40px rgba(0,0,0,.45)}
:root body .hud-alert{display:grid;justify-items:center;gap:6px;padding:16px 22px 16px;border:0;border-radius:20px;color:var(--ee-text);text-align:center;background:var(--ee-glass);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 0 0 1px var(--ee-line),inset 0 3px 0 var(--alert,var(--ee-lime)),0 18px 40px -12px rgba(2,6,20,.9);backdrop-filter:blur(10px)}
:root body .hud-alert .alert-icon{width:40px;height:40px;margin-top:-34px;padding:8px;border-radius:14px;color:#0e1830;background:var(--alert,var(--ee-lime));box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 rgba(0,0,0,.35),0 0 0 4px #10182f}
:root body .hud-alert b{display:block;font-family:var(--ee-display);font-weight:700;font-size:17px;letter-spacing:.6px;color:var(--ee-text)}
:root body .hud-alert span{display:block;margin:0;font-family:var(--ee-body);font-weight:600;font-size:13px;line-height:1.4;color:var(--ee-muted);opacity:1}
:root body :is(#spectatorBanner,#grabEscapeBanner,#windEscapeBanner,#ledgeBanner){border:0;color:var(--ee-text)}
:root body #spectatorBanner{--alert:var(--ee-violet)}
:root body #grabEscapeBanner{--alert:var(--ee-gold)}
:root body #windEscapeBanner{--alert:var(--ee-mint);width:min(360px,90vw)}
:root body #ledgeBanner{--alert:var(--ee-coral);width:min(370px,90vw)}
:root body .hud-alert{transform:none;translate:-50% 0}
:root body .hud-alert:not(.hidden){animation:ee-rise .3s var(--ee-ease) both}
:root body .hud-alert progress{-webkit-appearance:none;appearance:none;width:100%;height:12px;margin-top:4px;border:0;border-radius:12px;overflow:hidden;background:#0a1229;box-shadow:inset 0 0 0 1px #34477a}
:root body .hud-alert progress::-webkit-progress-bar{background:#0a1229;border-radius:12px}
:root body .hud-alert progress::-webkit-progress-value{background:linear-gradient(90deg,var(--alert),color-mix(in srgb,var(--alert) 60%,#fff));border-radius:12px;transition:width .1s linear}
:root body .hud-alert progress::-moz-progress-bar{background:var(--alert);border-radius:12px}
:root body .camera-hint{padding:9px 16px;border:0;border-radius:var(--ee-r-pill);background:var(--ee-glass);box-shadow:inset 0 0 0 1px var(--ee-line);font-family:var(--ee-body);font-weight:700;font-size:11px;letter-spacing:.8px;color:var(--ee-text)}
:root body .camera-hint span{color:var(--ee-lime)}

/* Controles de toque */
:root body #touch button{display:grid;place-items:center;width:56px;height:56px;padding:0;border:0;border-radius:50%;color:var(--ee-text);
  background:radial-gradient(circle at 50% 30%,rgba(60,82,132,.92),rgba(24,36,66,.92));box-shadow:inset 0 2px 0 rgba(255,255,255,.18),inset 0 0 0 1.5px rgba(170,196,255,.3),0 4px 0 rgba(4,8,22,.85),0 10px 18px -6px rgba(0,0,0,.6);
  font-family:var(--ee-display);font-weight:700;font-stretch:78%;font-size:11px;letter-spacing:0;line-height:1.05;text-align:center;overflow:hidden;transition:transform .08s,box-shadow .08s}
:root body #touch button:active{transform:translateY(3px) scale(.96);box-shadow:inset 0 2px 0 rgba(255,255,255,.14),inset 0 0 0 1.5px rgba(214,250,105,.6),0 1px 0 rgba(4,8,22,.85)}
:root body #touch .dpad{grid-template-columns:repeat(3,56px);grid-template-rows:repeat(2,56px);gap:4px}
:root body #touch .dpad button [data-icon]{width:24px;height:24px}
:root body #touch [data-action=jump]{color:var(--ee-lime-ink);background:radial-gradient(circle at 50% 30%,var(--ee-lime-hi),var(--ee-lime-lo));box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 4px 0 var(--ee-lime-edge),0 10px 18px -6px rgba(0,0,0,.6)}
:root body #touch [data-action=push]{box-shadow:inset 0 2px 0 rgba(255,255,255,.18),inset 0 0 0 2px var(--ee-coral),0 4px 0 rgba(4,8,22,.85)}
:root body #touch [data-action=kick]{box-shadow:inset 0 2px 0 rgba(255,255,255,.18),inset 0 0 0 2px var(--ee-violet),0 4px 0 rgba(4,8,22,.85)}
:root body #touch [data-action=grab]{box-shadow:inset 0 2px 0 rgba(255,255,255,.18),inset 0 0 0 2px var(--ee-sky),0 4px 0 rgba(4,8,22,.85)}
:root body #touch [data-action=throw]{box-shadow:inset 0 2px 0 rgba(255,255,255,.18),inset 0 0 0 2px var(--ee-gold),0 4px 0 rgba(4,8,22,.85)}
:root body .touch-actions{gap:6px}

/* ---------- Sala de espera ---------- */
:root body .waiting-title{padding:14px 18px;border:0;border-radius:20px;background:var(--ee-glass);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px var(--ee-line),inset 0 3px 0 var(--ee-lime),0 14px 30px -12px rgba(2,6,20,.85)}
:root body .waiting-title small{font-family:var(--ee-body);font-weight:700;font-size:10.5px;letter-spacing:1.4px;color:var(--ee-violet)}
:root body .waiting-title h2{font-family:var(--ee-display);font-weight:700;font-stretch:90%;font-size:36px;margin:6px 0 4px;text-shadow:0 3px 0 rgba(4,8,22,.7)}
:root body .waiting-title p{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:6px 0 0;font-family:var(--ee-body);font-size:13px;color:var(--ee-muted)}
:root body .waiting-title p b{padding:2px 9px;border-radius:var(--ee-r-pill);background:rgba(214,250,105,.14);color:var(--ee-lime);font-family:var(--ee-display);font-weight:600}
:root body .waiting-title p span{margin-left:4px;padding:2px 9px;border-radius:var(--ee-r-pill);background:rgba(255,255,255,.07);font-family:var(--ee-display);font-weight:600;letter-spacing:2px}
:root body .waiting-title p span:empty{display:none}
:root body .waiting-tools{gap:10px}
:root body .waiting-tools>button{padding:11px 14px;font-size:13px}
:root body .waiting-tools>button[aria-expanded=true]{color:var(--ee-lime-ink);background:linear-gradient(180deg,var(--ee-lime-hi),var(--ee-lime));box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 0 var(--ee-lime-edge)}
:root body .waiting-controls{padding:14px 18px;border:0;border-radius:20px;background:var(--ee-glass);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px var(--ee-line),0 14px 30px -12px rgba(2,6,20,.85)}
:root body .waiting-controls strong{font-family:var(--ee-display);font-weight:600;font-size:19px;color:var(--ee-lime)}
:root body .waiting-controls span{font-family:var(--ee-body);font-weight:600;font-size:13.5px;color:var(--ee-text)}
:root body .waiting-controls small{font-family:var(--ee-body);font-size:12px;color:var(--ee-muted)}
:root body #waitingStart{min-height:58px;padding:14px 24px;font-size:18px}
:root body #waitingHostNotice{border:0;border-radius:16px;background:var(--ee-glass);box-shadow:inset 0 0 0 1px var(--ee-line);font-family:var(--ee-body);font-weight:600;font-size:13px;color:var(--ee-muted)}
:root body.waiting #lobby{top:196px;max-height:calc(100vh - 216px);animation:ee-rise .3s var(--ee-ease) both}
@media(max-width:750px){
  :root body.waiting #lobby{top:76px;bottom:auto;max-height:calc(100dvh - 88px)}
  :root body .waiting-title{max-width:250px;padding:11px 14px}
  :root body .waiting-title small{letter-spacing:.8px}
}
:root body.waiting #lobby h2{font-size:34px;margin:4px 0 16px}

/* ---------- Resultados e pódio ---------- */
:root body #results{width:min(500px,94vw)}
:root body #results h2{font-size:46px;margin:12px 0 16px}
:root body #results:not(.final-results) #ranking{display:grid;gap:7px}
:root body .rank-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:8px 14px 8px 8px;border:0;border-radius:16px;background:var(--ee-card);box-shadow:inset 0 0 0 1px var(--ee-line);animation:ee-rise .35s var(--ee-ease) both}
:root body .rank-row:nth-child(2){animation-delay:.04s}:root body .rank-row:nth-child(3){animation-delay:.08s}:root body .rank-row:nth-child(4){animation-delay:.12s}:root body .rank-row:nth-child(5){animation-delay:.16s}:root body .rank-row:nth-child(6){animation-delay:.2s}
:root body .rank-row .place{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;font-weight:700;font-size:18px;color:var(--ee-text);background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px var(--ee-line)}
:root body .rank-row[data-place='1'] .place{color:#3a2603;background:linear-gradient(180deg,#ffe9a8,var(--ee-gold));box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 3px 0 var(--ee-gold-edge)}
:root body .rank-row[data-place='2'] .place{color:#1b2440;background:linear-gradient(180deg,#f4f7ff,var(--ee-silver));box-shadow:inset 0 2px 0 rgba(255,255,255,.7),0 3px 0 #7d8aa8}
:root body .rank-row[data-place='3'] .place{color:#3a1a05;background:linear-gradient(180deg,#ffd0ab,var(--ee-bronze));box-shadow:inset 0 2px 0 rgba(255,255,255,.55),0 3px 0 #9c5a2a}
:root body .rank-row b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ee-display);font-weight:600;font-size:17px}
:root body .rank-row>small{padding:3px 8px;border-radius:var(--ee-r-pill);background:rgba(255,255,255,.08);font-family:var(--ee-body);font-weight:700;font-size:10px;letter-spacing:1px;color:var(--ee-muted);opacity:1}
:root body .rank-row strong{font-weight:700;font-size:20px;color:var(--ee-text)}
:root body .rank-row strong small{font-family:var(--ee-body);font-weight:600;font-size:11px;color:var(--ee-dim)}
:root body .rank-row.me{box-shadow:inset 0 0 0 2px var(--ee-lime),0 0 0 4px rgba(214,250,105,.12)}
:root body .rank-row.me>small{background:rgba(214,250,105,.16);color:var(--ee-lime)}
:root body .score-rules{margin-top:12px;padding:10px 12px;border:0;border-radius:12px;background:rgba(255,255,255,.035);font-size:12px}
:root body #resultSub{margin:14px 0 0}
:root body #results.final-results{width:min(920px,94vw);padding:22px 28px 24px}
:root body #results.final-results h2{font-size:48px;margin:10px 0 6px}
:root body #podiumCanvas{border-radius:22px;background:radial-gradient(ellipse 70% 60% at 50% 100%,rgba(255,209,102,.28),transparent 70%),radial-gradient(ellipse at 50% 100%,#3a4e86,#1f2e57 60%,#141e3b);box-shadow:inset 0 0 0 1px var(--ee-line)}
:root body .podium-places{gap:8px;margin:12px 0}
:root body .podium-place{gap:8px;padding:7px 12px 7px 7px;border-radius:var(--ee-r-pill);background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px var(--ee-line);color:var(--ee-text);font-family:var(--ee-body);font-size:13px}
:root body .podium-place strong{display:grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border-radius:var(--ee-r-pill);background:rgba(255,255,255,.1);font-family:var(--ee-display);font-weight:700;font-size:14px}
:root body .podium-place b{font-family:var(--ee-display);font-weight:600;font-size:15px}
:root body .podium-place span{color:var(--ee-muted);font-weight:600}
:root body .podium-place.winner{color:var(--ee-lime-ink);background:linear-gradient(180deg,var(--ee-lime-hi),var(--ee-lime));box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 3px 0 var(--ee-lime-edge)}
:root body .podium-place.winner span{color:#3c5418}
:root body .podium-place[data-place='1'] strong{color:#3a2603;background:linear-gradient(180deg,#ffe9a8,var(--ee-gold))}
:root body .podium-place[data-place='2'] strong{color:#1b2440;background:linear-gradient(180deg,#f4f7ff,var(--ee-silver))}
:root body .podium-place[data-place='3'] strong{color:#3a1a05;background:linear-gradient(180deg,#ffd0ab,var(--ee-bronze))}
:root body #matchHighlights{gap:10px}
:root body .highlight-card{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-areas:'icon title' 'icon name' 'icon detail';column-gap:12px;row-gap:1px;align-items:center;padding:12px;border:0;border-radius:18px;background:var(--ee-card);box-shadow:inset 0 0 0 1px var(--ee-line)}
:root body .highlight-card>span{grid-area:icon;float:none;display:grid;place-items:center;width:44px;height:44px;padding:9px;border-radius:14px;color:#0e1830;background:var(--ee-lime);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 var(--ee-lime-edge)}
:root body .highlight-card[data-metric=hits]>span{background:var(--ee-coral);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 3px 0 var(--ee-coral-edge)}
:root body .highlight-card[data-metric=roundWins]>span{background:var(--ee-gold);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 var(--ee-gold-edge)}
:root body .highlight-card[data-metric=escapes]>span{background:var(--ee-mint);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 #2e8a63}
:root body .highlight-card[data-metric=throws]>span{background:var(--ee-sky);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 #2d6fa6}
:root body .highlight-card strong{grid-area:title;margin:0;font-family:var(--ee-body);font-weight:700;font-size:10.5px;letter-spacing:1.2px;color:var(--ee-dim);text-transform:uppercase}
:root body .highlight-card b{grid-area:name;min-width:0;font-family:var(--ee-display);font-weight:600;font-size:16px;color:var(--ee-text)}
:root body .highlight-card small{grid-area:detail;margin:0;font-family:var(--ee-body);font-size:12px;color:var(--ee-muted)}
:root body.waiting .roster-row,:root body #finalActions{gap:10px}
:root body #finalActions button{min-height:52px;font-size:16px}
:root body .rematch-note{font-size:12.5px;text-align:center}
:root body[data-phase=finished]::after{background:radial-gradient(ellipse at 50% 40%,rgba(20,32,66,.55),rgba(4,8,20,.82))}

/* ---------- Ajustes responsivos ---------- */
@media(min-width:1600px){
  :root body #menu .mode-btn{min-height:88px;font-size:25px}
  :root body #menu .play-actions small{font-size:13.5px}
}
@media(min-width:901px) and (max-height:900px){
  :root body #menu .mode-btn{min-height:70px;padding-top:9px;padding-bottom:9px}
  :root body #menu .play-actions{gap:12px}
}
@media(min-width:901px) and (max-height:760px){
  :root body #menu .mode-btn{min-height:62px;grid-template-columns:44px minmax(0,1fr);font-size:20px}
  :root body #menu .mode-btn .mode-icon{width:44px;height:44px;padding:10px}
  :root body #menu .play-actions small{font-size:11.5px;margin-top:3px}
  :root body #menu #maps .map-card{min-height:62px;padding:10px}
}
@media(max-width:1100px) and (min-width:901px){
  :root body #menu #maps .map-card{grid-template-columns:32px minmax(0,1fr);column-gap:8px;padding:10px 9px}
  :root body #menu #maps .map-card .mini{width:32px;height:32px;padding:6px;border-radius:10px}
  :root body #menu #maps .map-card b{font-size:14px}
  :root body #menu #maps .map-card small{font-size:9.5px}
}
@media(max-width:900px){
  :root body #menu .mode-btn{min-height:76px}
  :root body #menu #maps .map-card{min-height:68px}
}
@media(max-width:540px){
  :root body header .brand{font-size:21px;gap:9px}
  :root body .brand-icon{width:36px;height:36px;padding:7px}
  :root body .tools .icon{height:40px;min-width:40px;padding:0 9px}
  :root body #optionsToggle .options-label{display:none}
  :root body #optionsToggle{width:40px;min-width:40px;padding:0}
  :root body #menu .eyebrow{font-size:10.5px;letter-spacing:1px}
  :root body #menu h1{font-size:62px}
  :root body #menu .intro{font-size:15px}
  :root body #menu .mode-btn{grid-template-columns:46px minmax(0,1fr);column-gap:13px;min-height:74px;padding:11px 54px 11px 12px;font-size:21px}
  :root body #menu .mode-btn .mode-icon{width:46px;height:46px;padding:10px}
  :root body #menu .mode-copy>span{right:12px;width:32px;height:32px;margin-top:-16px;font-size:16px}
  :root body #menu .play-actions small{font-size:11.5px;letter-spacing:.3px}
  :root body #menu #maps .map-card{grid-template-columns:34px minmax(0,1fr);column-gap:9px;padding:10px 10px;min-height:64px}
  :root body #menu #maps .map-card.active{padding:10px}
  :root body #menu #maps .map-card .mini{width:34px;height:34px;padding:7px;border-radius:11px}
  :root body #menu #maps .map-card b{font-size:15px}
  :root body #menu #maps .map-card small{font-size:10px}
  :root body .panel{padding:20px}
  :root body #lobby{padding:20px 18px 18px}
  :root body #lobby h2{font-size:38px;padding-right:44px}
  :root body .options-heading h2{font-size:38px}
  :root body #optionsPanel{padding:18px 16px}
  :root body :is(.audio-settings,.language-settings,.camera-settings,.control-settings){padding:14px 12px}
  :root body .binding-row{font-size:12.5px;padding:5px 6px}
  :root body .binding-header{padding:0 6px 8px;font-size:9.5px}
  :root body :is(kbd,.binding-row>kbd){font-size:11.5px;padding:6px 7px}
  :root body .binding-button{font-size:12px;padding:7px 6px}
  :root body .wardrobe-heading h2{font-size:34px}
  :root body .wardrobe-controls{padding:16px}
  :root body .cosmetic-choice{min-height:68px}
  :root body .cosmetic-choice b{font-size:12px}
  :root body .wardrobe-bottom{padding:14px 16px 16px}
  :root body #results h2{font-size:38px}
  :root body #results.final-results{padding:18px 16px}
  :root body #results.final-results h2{font-size:34px}
  :root body .highlight-card{grid-template-columns:36px minmax(0,1fr);padding:10px}
  :root body .highlight-card>span{display:grid;width:36px;height:36px;padding:7px}
  :root body .match-top{gap:6px;padding:5px}
  :root body .roundbox,:root body .multiplier{min-width:0;height:44px;padding:3px 11px}
  :root body .roundbox b{font-size:20px}
  :root body .multiplier{font-size:19px}
  :root body .timer{width:56px;height:56px;margin:-10px 0;font-size:28px}
  :root body #playersHud .player-hud{min-width:0;width:150px;grid-template-columns:24px minmax(0,1fr) auto;column-gap:7px;padding:5px 9px 5px 5px;border-radius:13px}
  :root body .player-hud .ph-avatar{width:24px;height:24px;padding:3px;border-radius:8px}
  :root body .player-hud b{font-size:12.5px}
  :root body .player-hud small,:root body .player-hud.dead small{font-size:8.5px;letter-spacing:.6px}
  :root body .player-hud strong{font-size:17px}
  :root body #eventToast{top:auto;bottom:210px;font-size:13px;padding:8px 14px 8px 10px}
  :root body #hazardHint{font-size:10.5px;max-width:220px}
  :root body #hazardHint>i{width:26px;height:26px}
  :root body .hud-alert b{font-size:15px}
  :root body .hud-alert span{font-size:12px}
  :root body .waiting-title h2{font-size:26px}
  :root body .waiting-title small{font-size:9px}
  :root body .waiting-tools>button{font-size:12px;padding:9px 11px}
  :root body .waiting-controls strong{font-size:16px}
  :root body .waiting-controls span{font-size:12px}
  :root body .waiting-controls small{font-size:11px}
  :root body #waitingStart{min-height:50px;font-size:16px}
}
@media(max-width:420px){
  :root body #touch{left:8px;right:8px}
  :root body #touch button{width:42px;height:42px;font-size:9px;letter-spacing:0}
  :root body #touch .dpad{grid-template-columns:repeat(3,42px);grid-template-rows:repeat(2,42px);gap:0}
  :root body #touch .dpad button [data-icon]{width:20px;height:20px}
  :root body .touch-actions{gap:3px}
}
/* Toque: o botão de sair sobe para não ficar sob os botões de ação */
@media(pointer:coarse){
  :root body.playing #exitGame{top:80px;bottom:auto;right:3%}
}
@media(pointer:coarse) and (max-height:500px){
  :root body.playing #exitGame{top:66px;padding:8px 12px;font-size:12px}
}
@media(max-width:360px){
  :root body header .brand{font-size:16px;white-space:nowrap;gap:8px}
  :root body .brand-icon{width:32px;height:32px;padding:6px}
  :root body #menu .eyebrow{font-size:9.5px;letter-spacing:.5px;padding:5px 10px 5px 8px}
  :root body .touch-actions{display:grid;grid-template-columns:repeat(3,42px);gap:4px;align-content:end}
  :root body .match-top{gap:4px;padding:4px}
  :root body .roundbox{padding:3px 9px}
  :root body .multiplier{padding:3px 9px}
  :root body .multiplier small{display:none}
  :root body .timer{width:50px;height:50px;font-size:24px;margin:-6px 0}
  :root body #playersHud .player-hud{width:128px}
  :root body #eventToast{top:132px;bottom:auto;left:auto;right:8px;translate:none;max-width:165px;border-radius:16px}
  :root body #hazardHint{bottom:178px;max-width:200px}
  :root body #menu h1{font-size:52px}
  :root body #menu .mode-btn{font-size:19px;padding-right:48px}
  :root body #menu #maps .map-card .mini{display:grid}
}
@media(max-height:500px) and (orientation:landscape){
  :root body .match-top{top:8px}
  :root body .timer{width:50px;height:50px;font-size:24px;margin:-8px 0}
  :root body .roundbox,:root body .multiplier{height:38px}
  :root body #playersHud{gap:4px}
  :root body #playersHud .player-hud{padding:3px 8px 3px 4px}
  :root body .player-hud .ph-avatar{width:22px;height:22px}
}

/* Paisagem baixa (celular deitado): menu em duas colunas e HUD compacto */
@media(max-height:500px) and (min-width:600px){
  :root body:not(.playing) header{padding:10px 4%}
  :root body #menu{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'eyebrow actions' 'title actions' 'intro actions' 'picker picker';column-gap:24px;align-items:start;
    width:auto;max-width:none;margin:2px 4% 22px}
  :root body #menu .eyebrow{grid-area:eyebrow;justify-self:start;font-size:10px}
  :root body #menu h1{grid-area:title;font-size:44px;margin:12px 0 10px}
  :root body #menu .intro{grid-area:intro;font-size:13px;margin:0}
  :root body #menu .play-actions{grid-area:actions;gap:10px}
  :root body #menu .mode-btn{min-height:60px;grid-template-columns:42px minmax(0,1fr);padding:8px 52px 8px 10px;font-size:18px}
  :root body #menu .mode-btn .mode-icon{width:42px;height:42px;padding:9px}
  :root body #menu .mode-copy>span{width:30px;height:30px;margin-top:-15px;right:12px;font-size:15px}
  :root body #menu .play-actions small{font-size:11px;margin-top:3px}
  :root body #menu .arena-picker{grid-area:picker;margin-top:18px;padding:12px 14px 14px}
  :root body #menu #maps{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  :root body #menu #maps .map-card{grid-template-columns:1fr;grid-template-rows:auto auto auto;justify-items:start;row-gap:4px;min-height:0;padding:10px}
  :root body #menu #maps .map-card.active{padding:10px}
  :root body #menu #maps .map-card:last-child{grid-column:auto}
  :root body #menu #maps .map-card .mini{grid-row:auto;width:30px;height:30px;padding:6px;border-radius:10px}
  :root body #menu #maps .map-card b{font-size:13.5px}
  :root body #menu #maps .map-card small{font-size:9.5px}
  :root body.playing header .brand{visibility:hidden}
  :root body .tools .icon{height:38px;min-width:38px}
  :root body #optionsToggle .options-label{display:none}
  :root body #optionsToggle{width:38px;min-width:38px;padding:0}
  :root body.playing header{padding:10px 3%}
  :root body .match-top{top:8px;gap:5px;padding:4px}
  :root body .roundbox,:root body .multiplier{min-width:0;height:38px;padding:2px 11px}
  :root body .roundbox b{font-size:18px}
  :root body .multiplier{font-size:17px}
  :root body .timer{width:50px;height:50px;margin:-8px 0;font-size:24px}
  :root body #playersHud{top:60px;left:3%;gap:4px}
  :root body #playersHud .player-hud{min-width:0;width:150px;grid-template-columns:22px minmax(0,1fr) auto;column-gap:7px;padding:3px 9px 3px 4px;border-radius:12px}
  :root body .player-hud .ph-avatar{width:22px;height:22px;padding:3px;border-radius:7px}
  :root body .player-hud b{font-size:12px}
  :root body .player-hud small,:root body .player-hud.dead small{font-size:8px;letter-spacing:.5px}
  :root body .player-hud strong{font-size:15px}
  :root body.playing #exitGame{top:14px;bottom:auto;left:3%;right:auto;padding:8px 12px;font-size:12px}
  :root body #hazardHint{top:58px;bottom:auto;right:3%;max-width:230px;padding:6px 10px 6px 6px;font-size:10px}
  :root body #hazardHint>i{width:24px;height:24px;padding:4px}
  :root body #eventToast{top:auto;bottom:18px;font-size:12.5px;padding:7px 14px 7px 10px}
  :root body #touch{bottom:14px}
  :root body:has(#touch:not(.hidden)) #eventToast{bottom:auto;top:62px}
  :root body .hud-alert{padding:12px 16px;gap:4px}
  :root body #spectatorBanner{bottom:16px}
  :root body :is(#grabEscapeBanner,#windEscapeBanner,#ledgeBanner){top:74px;bottom:auto}
  :root body:has(:is(#grabEscapeBanner,#windEscapeBanner,#ledgeBanner):not(.hidden)) #eventToast{display:none}
  :root body .hud-alert .alert-icon{width:32px;height:32px;margin-top:-26px;padding:6px}
  :root body .hud-alert b{font-size:14px}
  :root body .hud-alert span{font-size:11.5px}
}

/* ---------- Animações ---------- */
@keyframes ee-fade{from{opacity:0}to{opacity:1}}
@keyframes ee-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes ee-pop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
@keyframes ee-pop-panel{from{opacity:0;transform:translate(-50%,-46%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes ee-live{0%,100%{box-shadow:0 0 0 3px rgba(214,250,105,.25)}50%{box-shadow:0 0 0 7px rgba(214,250,105,0)}}
@keyframes ee-heart{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes ee-blink{0%,100%{filter:brightness(1)}50%{filter:brightness(1.15)}}
@keyframes ee-drift{from{background-position:0 0}to{background-position:220px 110px}}
@media(prefers-reduced-motion:reduce){
  :root body *,:root body *::before,:root body *::after{animation:none!important;transition:none!important}
}
