/* ═════════════ 🏛️ Diseño de la mesa: jugadores a la izquierda, barras de madera oscura y pergamino ═════════════
   Inspirado en un tablero clásico: madera oscura, líneas doradas finas, letras con serifa y cartas de pergamino.
   Todo estático (sin animaciones que se repitan) para que no pese. */
:root {
  --w0: #170e07; --w1: #21150c; --w2: #2d1d10; --w3: #3d2816;
  --g1: #8a6a2e; --g2: #c9a24a; --g3: #ecd08a;
  --p1: #f7eed6; --p2: #eadbb3; --p3: #d4bd87; --ink2: #2a1c0e;
}

/* ---------- estructura ---------- */
#game #main { grid-template-columns: 238px minmax(0, 1fr) 290px; grid-template-rows: minmax(0, 1fr); }
body.chat-hidden #game #main { grid-template-columns: 238px minmax(0, 1fr) 0; }
body.chat-hidden #game #side { display: none; }
@media (max-width: 1400px) { #game #main { grid-template-columns: 214px minmax(0, 1fr) 256px; } body.chat-hidden #game #main { grid-template-columns: 214px minmax(0, 1fr) 0; } }
@media (max-width: 1150px) { #game #main { grid-template-columns: 196px minmax(0, 1fr) 236px; } body.chat-hidden #game #main { grid-template-columns: 196px minmax(0, 1fr) 0; } }

#game #left { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; z-index: 3;
  background: linear-gradient(90deg, var(--w1), var(--w2)); border-right: 1px solid var(--g1);
  box-shadow: inset -1px 0 0 rgba(236,208,138,.12), 6px 0 16px rgba(0,0,0,.35); }
#game #side { background: linear-gradient(90deg, var(--w2), var(--w1)); border-left: 1px solid var(--g1); box-shadow: inset 1px 0 0 rgba(236,208,138,.12); }
#game #side #chatbox { flex: 1; }

/* ---------- jugadores ---------- */
#game #players { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 0; padding: 6px 10px; scrollbar-width: thin; scrollbar-color: var(--g1) transparent; }
#game .pl { background: none; border: 0; border-bottom: 1px solid rgba(201,162,74,.22); border-radius: 0; padding: 12px 6px 10px; color: var(--p1);
  box-shadow: none; transform: none; transition: background .25s; position: relative; }
#game .pl:last-child { border-bottom: 0; }
#game .pl.active { background: linear-gradient(90deg, rgba(236,208,138,.15), rgba(236,208,138,.02)); box-shadow: inset 3px 0 0 var(--g3); }
#game .pl.me .pl-name { text-decoration: none; }
#game .pl-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 9px; }
#game .pl-medal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--c); background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--c) 45%, #fff), color-mix(in srgb, var(--c) 72%, #000));
  box-shadow: 0 0 0 2px var(--w0), 0 0 0 4px var(--g2), 0 0 0 5px var(--g1), 0 4px 10px rgba(0,0,0,.55); }
#game .pl.active .pl-medal { box-shadow: 0 0 0 2px var(--w0), 0 0 0 4px var(--g3), 0 0 0 5px var(--g1), 0 0 16px rgba(236,208,138,.55); }
#game .pl-medal .pl-house { width: 30px; height: 28px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
#game .pl-id { min-width: 0; }
#game .pl-name { font: 700 16px/1.1 'Cinzel', Georgia, serif; color: var(--p1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#game .pl-name em { font: italic 600 11px 'Nunito', sans-serif; opacity: .6; }
#game .pl-casa { margin-top: 2px; font: 800 9.5px/1 'Nunito', sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
  color: #d8c59a; color: color-mix(in srgb, var(--c) 45%, #f1e4c4); }
#game .pl-vp { display: flex; align-items: baseline; gap: 3px; font: 700 18px/1 'Cinzel', serif; color: var(--p1); white-space: nowrap; }
#game .pl-vp .pl-crown { color: var(--g3); font-size: 15px; }
#game .pl-vp small { font-size: 12px; opacity: .65; }
#game .pl-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 7px 0 0 55px; font-size: 11.5px; font-weight: 700; color: rgba(247,238,214,.72); opacity: 1; }
#game .pl-stats small { font-weight: 600; opacity: .7; }
#game .pl-awards { margin: 6px 0 0 55px; }
#game .pl-awards span { background: rgba(236,208,138,.14); color: var(--g3); border: 1px solid rgba(236,208,138,.35); }
#game .pl-wait { margin: 4px 0 0 55px; color: #ff9b8e; }
#game .pl-kick { width: 24px; height: 24px; font-size: 11px; }
#game .pl-turn { font-size: .9em; }
/* muchos jugadores (Mega): filas más compactas */
#game #players.many .pl { padding: 7px 4px 6px; }
#game #players.many .pl-medal { width: 32px; height: 32px; }
#game #players.many .pl-medal .pl-house { width: 21px; height: 19px; }
#game #players.many .pl-name { font-size: 13px; }
#game #players.many .pl-casa { display: none; }
#game #players.many .pl-vp { font-size: 15px; }
#game #players.many .pl-stats { margin: 3px 0 0 41px; font-size: 10.5px; gap: 2px 7px; }
#game #players.many .pl-stats small { display: none; }
#game #players.many .pl-awards, #game #players.many .pl-wait { margin-left: 41px; }

/* ---------- premios (abajo de los jugadores) ---------- */
#game #awards { flex: none; padding: 8px 10px 10px; border-top: 1px solid var(--g1); box-shadow: inset 0 1px 0 rgba(236,208,138,.12); display: grid; gap: 6px;
  background: linear-gradient(var(--w1), var(--w0)); }
#game #awards:empty { display: none; }
.aw { display: flex; align-items: center; gap: 9px; color: var(--p1); }
.aw-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; font-size: 17px; border-radius: 6px;
  background: linear-gradient(var(--p1), var(--p3)); box-shadow: 0 0 0 1px var(--g1), inset 0 0 0 2px rgba(255,255,255,.4); filter: grayscale(.4); opacity: .85; }
.aw.got .aw-ico { filter: none; opacity: 1; box-shadow: 0 0 0 1px var(--g2), 0 0 10px rgba(236,208,138,.45), inset 0 0 0 2px rgba(255,255,255,.4); }
.aw b { display: block; font: 700 13px/1.15 'Cinzel', serif; }
.aw small { display: block; font-size: 11px; font-weight: 700; opacity: .65; }
.aw.got small { color: var(--g3); opacity: 1; }

/* ---------- barra de arriba ---------- */
#game #topbar { background: linear-gradient(var(--w2), var(--w1)); border: 0; border-image: none; border-bottom: 1px solid var(--g1);
  box-shadow: inset 0 -1px 0 rgba(236,208,138,.14), 0 4px 14px rgba(0,0,0,.45); }
#game .brand-name { font-family: 'Cinzel', serif; color: var(--g3); text-shadow: 0 2px 0 #0d0703; }
#game .code-pill { background: transparent; border: 1px solid rgba(201,162,74,.6); color: var(--p2); box-shadow: none; font-family: 'Cinzel', serif; font-weight: 700; }
#game .tb-goal { background: linear-gradient(var(--p1), var(--p3)); border: 1px solid var(--g1); box-shadow: 0 0 0 2px var(--w0), 0 0 0 3px rgba(201,162,74,.6); }
#game .tbtn { border-radius: 8px; border: 1px solid rgba(201,162,74,.65); background: linear-gradient(var(--w3), var(--w2)); box-shadow: inset 0 1px 0 rgba(236,208,138,.18), 0 2px 0 var(--w0); }
#game .tbtn:hover { background: linear-gradient(#4a3119, var(--w3)); box-shadow: inset 0 1px 0 rgba(236,208,138,.25), 0 0 10px rgba(236,208,138,.25); }
#game .tbtn.emote-top { background: linear-gradient(var(--p1), var(--p3)); color: var(--ink2); border-color: var(--g1); }
#game .bank, #game .roll-mini { background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(201,162,74,.25); }
#game .bk { background: transparent; border-color: rgba(201,162,74,.3); }

/* ---------- barra de abajo ---------- */
#game #bottom { display: flex; align-items: stretch; flex-wrap: nowrap; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(var(--w2), var(--w1)); border: 0; border-image: none; border-top: 1px solid var(--g1);
  box-shadow: inset 0 1px 0 rgba(236,208,138,.14), 0 -4px 14px rgba(0,0,0,.45); }
#game #mebox { display: none; }
/* cartas de recurso: pergamino con nombre arriba, dibujo y número en un círculo */
#game #hand { display: flex; gap: 8px; align-items: center; padding: 0; background: none; box-shadow: none; flex: none; }
#game #hand::before { display: none; }
#game .rcard { width: 72px; height: 98px; border-radius: 6px; display: block; border: 1px solid var(--g1); overflow: visible; animation: none;
  background: linear-gradient(170deg, var(--p1), var(--p2) 70%, var(--p3));
  box-shadow: inset 0 0 0 3px var(--p1), inset 0 0 0 4px rgba(138,106,46,.45), 0 4px 0 var(--w0), 0 6px 12px rgba(0,0,0,.45); }
#game .rcard::before { content: ''; position: absolute; left: 4px; right: 4px; top: 4px; width: auto; height: 3px; margin: 0; border-radius: 2px; background: var(--rc); box-shadow: none; }
#game .rcard .lbl { position: absolute; left: 0; right: 0; top: 9px; bottom: auto; padding: 0; text-align: center; background: none; text-shadow: none;
  font: 700 12px/1 'Cinzel', serif; color: var(--ink2); }
#game .rcard .ico { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -21px 0 0 -23px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
#game .rcard .cnt { top: auto; bottom: 5px; right: auto; left: 50%; transform: translateX(-50%); min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px;
  background: var(--p1); color: var(--ink2); border: 1.5px solid var(--g1); box-shadow: inset 0 0 0 2px var(--p1), inset 0 0 0 3px rgba(138,106,46,.35); font: 700 14px/1 'Cinzel', serif; }
#game .rcard.zero { opacity: .55; filter: grayscale(.6); }
#game .rcard.zero .cnt { background: var(--p2); color: rgba(42,28,14,.6); }
#game .rcard:not(.zero):hover { transform: translateY(-4px); }

/* cartas de desarrollo: marco con título */
#game #devwrap { display: flex; flex-direction: column; min-width: 150px; max-width: 330px; flex: 0 1 auto; padding: 6px 10px 8px; border-radius: 8px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(201,162,74,.45); box-shadow: inset 0 0 0 1px rgba(236,208,138,.08); }
#game .dw-head { font: 700 12px/1 'Cinzel', serif; color: var(--p2); display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; white-space: nowrap; }
#game .dw-head b { min-width: 20px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--g1); font-size: 11px; color: var(--g3); }
#game #devhand { flex: 1; padding: 0; background: none; box-shadow: none; overflow-x: auto; scrollbar-width: none; min-width: 0; }
#game #devhand::-webkit-scrollbar { display: none; }
#game .dev-empty { border: 1px dashed rgba(201,162,74,.35); height: 64px; min-width: 0; color: rgba(247,238,214,.6); font-family: 'Cinzel', serif; font-size: 12px; }

/* construir: siempre a la vista con su costo */
#game #build { display: flex; gap: 8px; align-items: stretch; margin-left: auto; flex: none; }
#game #build.empty { display: none; }
.bt { position: relative; width: 86px; min-height: 92px; padding: 7px 4px 6px; border-radius: 8px; cursor: default; color: var(--p1);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 3px;
  background: linear-gradient(var(--w3), var(--w2)); border: 1px solid var(--g1);
  box-shadow: inset 0 0 0 2px var(--w1), inset 0 0 0 3px rgba(201,162,74,.35), 0 3px 0 var(--w0), 0 5px 10px rgba(0,0,0,.4);
  transition: transform .12s, box-shadow .15s, filter .15s; font: inherit; }
.bt-art { height: 32px; display: grid; place-items: center; }
.bt-art svg { width: 38px; height: 32px; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.bt-emo { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.bt-name { font: 700 12.5px/1 'Cinzel', serif; letter-spacing: .3px; }
.bt-cost { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 80px; }
.bt-cost .bc { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: rgba(247,238,214,.12); opacity: .4; filter: grayscale(.85); }
.bt-cost .bc.have { opacity: 1; filter: none; background: rgba(247,238,214,.22); box-shadow: 0 0 0 1px rgba(236,208,138,.5); }
.bt-cost .ico { width: 15px; height: 15px; }
.bt-left { position: absolute; top: 4px; right: 5px; font: 700 10px/1 'Cinzel', serif; color: rgba(247,238,214,.6); }
.bt.off { filter: saturate(.75); }
.bt.off .bt-art, .bt.off .bt-name { opacity: .72; }
.bt.ready:not(.can) { box-shadow: inset 0 0 0 2px var(--w1), inset 0 0 0 3px rgba(111,191,74,.55), 0 3px 0 var(--w0), 0 5px 10px rgba(0,0,0,.4); }
.bt.can { cursor: pointer; border-color: var(--g2); box-shadow: inset 0 0 0 2px var(--w1), inset 0 0 0 3px var(--g2), 0 3px 0 var(--w0), 0 0 14px rgba(236,208,138,.35); }
.bt.can:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--w1), inset 0 0 0 3px var(--g3), 0 6px 0 var(--w0), 0 0 18px rgba(236,208,138,.55); }
.bt.can:active { transform: translateY(2px); }
.bt.on { background: linear-gradient(#5a4318, #3d2a10); border-color: var(--g3); box-shadow: inset 0 0 0 2px var(--w1), inset 0 0 0 3px var(--g3), 0 0 0 2px var(--g3), 0 0 22px rgba(236,208,138,.7); }
.bt:focus-visible { outline: 2px solid var(--g3); outline-offset: 2px; }

/* acciones (tirar, comerciar, terminar) */
#game #actions { display: flex; flex-direction: column; justify-content: center; gap: 8px; margin-left: 0; flex: none; min-width: 150px; }
#game #actions:empty { display: none; }
#game #actions .btn { border-radius: 8px; font-family: 'Cinzel', serif; font-weight: 700; }
#game #actions .act-trade { background: linear-gradient(var(--p1), var(--p3)); color: var(--ink2); border: 1px solid var(--g1); }
#game #actions .roll-btn { min-height: 64px; }
#game .turn-wait { font-family: 'Cinzel', serif; }

/* ---------- laptops y pantallas bajitas ---------- */
@media (max-width: 1400px), (max-height: 820px) {
  #game #bottom { gap: 9px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  #game .rcard { width: 60px; height: 82px; }
  #game .rcard .ico { width: 38px; height: 38px; margin: -17px 0 0 -19px; }
  #game .rcard .lbl { font-size: 10.5px; top: 8px; }
  #game .rcard .cnt { min-width: 21px; height: 21px; font-size: 12.5px; }
  .bt { width: 70px; min-height: 80px; padding: 5px 3px; }
  .bt-art { height: 26px; } .bt-art svg { width: 32px; height: 26px; } .bt-emo { font-size: 21px; }
  .bt-name { font-size: 11px; }
  .bt-cost .bc { width: 14px; height: 14px; } .bt-cost .ico { width: 12px; height: 12px; }
  #game #devwrap { max-width: 250px; min-width: 130px; }
  #game .dev-empty { height: 54px; font-size: 11px; }
  #game #actions { min-width: 128px; }
  #game .pl { padding: 9px 4px 8px; }
  #game .pl-medal { width: 40px; height: 40px; }
  #game .pl-medal .pl-house { width: 26px; height: 24px; }
  #game .pl-name { font-size: 14.5px; }
  #game .pl-stats { margin-left: 49px; }
  #game .pl-awards, #game .pl-wait { margin-left: 49px; }
}
@media (max-width: 1150px) and (min-width: 1001px) {
  #game .dw-head { font-size: 10.5px; }
  #game #devwrap { max-width: 190px; }
  .bt { width: 62px; } .bt-name { font-size: 10px; }
  #game .pl-stats small { display: none; }
}

/* ---------- tablets y pantallas compactas: jugadores en una franja arriba ---------- */
@media (max-width: 1000px), (max-height: 520px) and (orientation: landscape) {
  #game #side { position: absolute; width: 0; height: 0; overflow: visible; border: 0; background: none; box-shadow: none; }
}
@media (max-width: 1000px) {
  #game #main, body.chat-hidden #game #main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  #game #left { order: -1; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--g1); box-shadow: inset 0 -1px 0 rgba(236,208,138,.12), 0 4px 10px rgba(0,0,0,.35); }
  #game #players { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 5px 6px; gap: 6px; scrollbar-width: none; }
  #game #players::-webkit-scrollbar { display: none; }
  #game .pl, #game #players.many .pl { flex: none; min-width: 150px; max-width: 190px; padding: 5px 7px; border: 1px solid rgba(201,162,74,.3); border-radius: 8px; background: rgba(0,0,0,.18); }
  #game .pl.active { background: linear-gradient(rgba(236,208,138,.18), rgba(236,208,138,.04)); box-shadow: inset 0 0 0 1px var(--g3); }
  #game .pl-top { gap: 6px; }
  #game .pl-medal, #game #players.many .pl-medal { width: 28px; height: 28px; box-shadow: 0 0 0 1.5px var(--w0), 0 0 0 3px var(--g2); }
  #game .pl-medal .pl-house, #game #players.many .pl-medal .pl-house { width: 19px; height: 17px; }
  #game .pl-name, #game #players.many .pl-name { font-size: 12.5px; }
  #game .pl-casa { display: none; }
  #game .pl-vp, #game #players.many .pl-vp { font-size: 14px; } #game .pl-vp .pl-crown { font-size: 12px; }
  #game .pl-stats, #game #players.many .pl-stats { margin: 3px 0 0; font-size: 10.5px; gap: 2px 7px; }
  #game .pl-stats small { display: none; }
  #game .pl-awards, #game .pl-wait, #game #players.many .pl-awards, #game #players.many .pl-wait { margin-left: 0; }
  #game .pl-awards span { font-size: 9px; }
  #game #awards { display: none; }
  #game #bottom { flex-wrap: wrap; justify-content: center; }
  #game #build { margin-left: 0; }
}

/* ---------- celular vertical ---------- */
@media (max-width: 760px) {
  #game #bottom { gap: 6px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  #game #hand { width: 100%; justify-content: center; gap: 5px; }
  #game .rcard { width: 58px; height: 74px; flex: 1 1 0; max-width: 66px; }
  #game .rcard .ico { width: 32px; height: 32px; margin: -14px 0 0 -16px; }
  #game .rcard .lbl { font-size: 9px; top: 7px; }
  #game .rcard .cnt { min-width: 20px; height: 20px; font-size: 12px; bottom: 3px; }
  #game #devwrap { order: 3; width: 100%; max-width: none; min-width: 0; padding: 4px 6px 5px; }
  #game #devwrap:has(.dev-empty) { display: none; }
  #game .dw-head { font-size: 10px; margin-bottom: 4px; }
  #game #build { order: 1; width: 100%; justify-content: center; gap: 4px; }
  .bt { flex: 1 1 0; width: auto; max-width: 74px; min-height: 0; padding: 4px 2px 4px; gap: 2px; }
  .bt-art { height: 20px; } .bt-art svg { width: 26px; height: 20px; } .bt-emo { font-size: 16px; }
  .bt-name { font-size: 9.5px; letter-spacing: 0; }
  .bt-cost .bc { width: 12px; height: 12px; } .bt-cost .ico { width: 10px; height: 10px; }
  .bt-left { font-size: 8.5px; top: 2px; right: 3px; }
  #game #actions { order: 2; width: 100%; min-width: 0; flex-direction: row; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  #game #actions .btn.huge, #game #actions .btn:only-child, #game #actions .turn-wait { grid-column: 1 / -1; }
  #game #actions .roll-btn { min-height: 0; }
}
@media (max-width: 380px) {
  #game .rcard .lbl { display: none; }
  #game .rcard .ico { margin-top: -18px; }
  .bt-name { font-size: 8.5px; }
}

/* ---------- celular horizontal: jugadores en una columna angosta ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  #game #main, body.chat-hidden #game #main { grid-template-columns: 168px minmax(0, 1fr) 0; grid-template-rows: minmax(0, 1fr); }
  #game #left { order: 0; flex-direction: column; border-bottom: 0; border-right: 1px solid var(--g1); }
  #game #players { flex-direction: column; overflow-y: auto; overflow-x: hidden; padding: 4px; gap: 4px; }
  #game .pl, #game #players.many .pl { min-width: 0; max-width: none; padding: 4px 6px; border: 1px solid rgba(201,162,74,.3); border-radius: 7px; }
  #game .pl-medal, #game #players.many .pl-medal { width: 22px; height: 22px; }
  #game .pl-medal .pl-house { width: 15px; height: 14px; }
  #game .pl-name { font-size: 11.5px; }
  #game .pl-casa, #game #awards { display: none; }
  #game .pl-stats { margin: 2px 0 0; font-size: 9.5px; gap: 1px 6px; }
  #game .pl-stats small { display: none; }
  #game #bottom { flex-wrap: nowrap; gap: 6px; padding: 4px 6px; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  #game .rcard { width: 42px; height: 54px; }
  #game .rcard .lbl { display: none; }
  #game .rcard .ico { width: 26px; height: 26px; margin: -16px 0 0 -13px; }
  #game .rcard .cnt { min-width: 17px; height: 17px; font-size: 10.5px; bottom: 2px; }
  #game #devwrap { display: none; }
  #game #build { margin-left: 0; gap: 4px; }
  .bt { width: 48px; min-height: 0; padding: 3px 2px; }
  .bt-name { display: none; }
  .bt-art { height: 18px; } .bt-art svg { width: 22px; height: 18px; } .bt-emo { font-size: 14px; }
  .bt-cost .bc { width: 10px; height: 10px; } .bt-cost .ico { width: 9px; height: 9px; }
  .bt-left { display: none; }
  #game #actions { min-width: 0; flex-direction: row; gap: 5px; }
  #game #actions .btn { font-size: 11px; padding: 5px 8px; }
}

/* ---------- panel de sonido ---------- */
#sound-pop { position: fixed; z-index: 85; display: none; width: 260px; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(var(--w2), var(--w1)); border: 1px solid var(--g1); box-shadow: inset 0 0 0 1px rgba(236,208,138,.15), 0 10px 26px rgba(0,0,0,.55); }
#sound-pop.show { display: block; animation: rise .18s ease-out; }
.sound-panel { display: grid; gap: 7px; }
.sp-tog { width: 100%; text-align: left; padding: 6px 9px; border-radius: 7px; border: 1px solid rgba(201,162,74,.45); background: rgba(0,0,0,.25); color: var(--p1);
  font: 700 13px 'Nunito', sans-serif; cursor: pointer; }
.sp-tog.on { border-color: var(--g2); background: rgba(236,208,138,.14); }
.vol-row { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 8px; color: var(--p1); font-size: 12px; font-weight: 800; }
.vol-n { text-align: right; font: 700 12px 'Cinzel', serif; color: var(--g3); }
.vol-row input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; margin: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--g2) var(--p, 50%), rgba(247,238,214,.18) var(--p, 50%)); }
.vol-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--p1); border: 2px solid var(--g1); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.vol-row input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--p1); border: 2px solid var(--g1); }
#menu-pop .sound-panel { padding-bottom: 6px; border-bottom: 1px solid rgba(201,162,74,.3); margin-bottom: 2px; min-width: 230px; }
#menu-pop .vol-row { color: var(--p1); }
#menu-pop .sp-tog { font-size: 15px; padding: 8px 10px; }
.mu-card .vol-row { margin-top: 6px; color: inherit; }
@media (pointer: coarse) { .vol-row input[type=range] { height: 8px; } .vol-row input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; } }
