:root{
  --bg0:#070a10;
  --bg1:#0b0f16;

  --stroke:rgba(255,255,255,.08);
  --stroke2:rgba(255,255,255,.12);

  --txt:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);

  --neon:#27ffd6;
  --pink:#ff4fd8;
  --violet:#9a5cff;
  --gold:#f4c35a;

  --r:18px;
  --r2:22px;
  --gap:16px;
  --pad:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--txt);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(154,92,255,.22), transparent 60%),
    radial-gradient(900px 600px at 75% 10%, rgba(39,255,214,.14), transparent 60%),
    radial-gradient(700px 400px at 35% 85%, rgba(244,195,90,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bg-glow{
  position:fixed;
  inset:-20%;
  pointer-events:none;
  background:
    radial-gradient(600px 400px at 10% 20%, rgba(39,255,214,.10), transparent 60%),
    radial-gradient(700px 500px at 80% 0%, rgba(154,92,255,.14), transparent 65%),
    radial-gradient(600px 500px at 65% 90%, rgba(244,195,90,.08), transparent 60%);
  filter: blur(10px);
  opacity:.9;
  z-index:0;
}

a{ color:inherit; text-decoration:none; }

/* ---------- Topbar ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  backdrop-filter: blur(10px);
  background: rgba(10,14,20,.68);
  border-bottom: 1px solid var(--stroke);
}

.brand{ display:flex; align-items:center; gap:12px; }

.logo{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:14px;
  background: linear-gradient(145deg, rgba(154,92,255,.22), rgba(39,255,214,.10));
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.brand-text .title{
  font-weight:900;
  letter-spacing:.08em;
  font-size:26px;
  background: linear-gradient(90deg, #ffb45a, #ff4fd8, #46d6ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.brand-text .subtitle{ margin-top:2px; font-size:13px; color:var(--muted); }

.top-actions{ display:flex; gap:10px; align-items:center; }

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.88);
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
}
.pill[aria-disabled="true"]{ opacity:.5; pointer-events:none; }
.pill-btn{ cursor:pointer; }

/* ✅ Topbar hardening: stesso font/rendering per <a> e <button> */
.top-actions .pill{
  font: inherit;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
}
.top-actions button.pill{
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.88);
  border: 1px solid var(--stroke);
  padding:10px 14px;
}
.top-actions button.pill:focus{
  outline: none;
}
.top-actions button.pill::-moz-focus-inner{
  border: 0;
}

/* ── Hamburger button ──────────────────────────────────────── */
.og-hamburger { font-size: 18px; padding: 10px 14px; }

/* ── Backdrop ──────────────────────────────────────────────── */
.og-menu-backdrop {
  position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
.og-menu-backdrop.open { opacity: 1; pointer-events: all; }

/* ── Drawer ────────────────────────────────────────────────── */
.og-menu-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 230px; z-index: 300;
  background: rgba(10,14,20,.97);
  border-left: 1px solid rgba(255,255,255,.10);
  box-shadow: -12px 0 40px rgba(0,0,0,.55);
  display: flex; flex-direction: column;
  padding: 20px 16px 28px;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.og-menu-drawer.open { transform: translateX(0); }

/* close button */
.og-menu-close {
  align-self: flex-end;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.45); font-size: 18px;
  padding: 4px 8px; border-radius: 8px;
  margin-bottom: 8px;
  transition: color .15s, background .15s;
}
.og-menu-close:hover { color: #fff; background: rgba(255,255,255,.09); }

/* items inside drawer */
.og-menu-item {
  width: 100% !important;
  justify-content: flex-start !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
}
.og-menu-item.hidden { display: none !important; }

/* ---------- Layout ---------- */
.container{
  max-width: 1180px;
  margin: 18px auto 40px;
  padding: 0 16px;
  position:relative;
  z-index:1;
}
.hidden{ display:none; }

/* ---------- Panels ---------- */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--stroke);
  border-radius: var(--r2);
  padding: var(--pad);
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.panel + .panel{ margin-top: var(--gap); }

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.panel-head.slim{ margin-bottom: 10px; }

.panel-title{ font-weight:800; letter-spacing:.02em; }
.mini{ color:var(--muted); font-size:12px; }

/* ---------- Forms ---------- */
label{
  display:block;
  color: rgba(255,255,255,.78);
  font-size:12px;
  margin-bottom: 8px;
}

.section{ margin-top: 12px; }

hr{
  border:none;
  border-top:1px solid var(--stroke);
  margin: 14px 0;
}

.row{ display:flex; gap:12px; align-items:center; }
@media (max-width: 900px){ .row{ flex-wrap:wrap; } }

input{
  width:100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  outline:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
input:disabled{ opacity:.6; }

button{ border:none; cursor:pointer; user-select:none; }

.btn{
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.9);
  box-shadow: 0 14px 26px rgba(0,0,0,.25);
}
.btn:disabled{ opacity:.45; cursor:not-allowed; }

.btn-neon{
  border: 1px solid rgba(39,255,214,.28);
  background: linear-gradient(180deg, rgba(39,255,214,.10), rgba(39,255,214,.04));
}
.btn-accent{
  border: 1px solid rgba(255,79,216,.25);
  background: linear-gradient(180deg, rgba(255,79,216,.12), rgba(255,79,216,.04));
}

.conn{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  white-space:nowrap;
}
.conn.ok::before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(102,255,146,.90);
  box-shadow: 0 0 16px rgba(102,255,146,.55);
  display:inline-block;
}

/* ---------- Lobby (ripristino look “prima”) ---------- */
.lobby-stack{
  display:flex;
  flex-direction:column;
  gap: var(--gap);
}

.hero{
  display:flex;
  justify-content:space-between;
  gap: var(--gap);
}

.hero-title{
  margin: 0 0 6px 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.hero-desc{
  margin: 0 0 12px 0;
  color: rgba(255,255,255,.72);
  line-height: 1.45;
}

.hero-tip{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(39,255,214,.18);
  background: linear-gradient(180deg, rgba(39,255,214,.10), rgba(0,0,0,.14));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(39,255,214,.20);
  background: rgba(39,255,214,.08);
  font-weight:800;
  font-size:12px;
}

.game-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
@media (max-width: 900px){ .game-grid{ grid-template-columns: 1fr; } }

.game-card{
  text-align:left;
  width:100%;
  padding: 16px;
  border-radius: var(--r2);
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  color: var(--txt);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.game-card:hover{ border-color: rgba(39,255,214,.18); }

.game-card-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 10px;
}

.game-icon{
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.game-name{
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.game-tags{ display:flex; flex-wrap:wrap; gap:8px; }

.tag{
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.80);
  font-size: 12px;
  font-weight: 700;
}

.game-card-body{
  color: rgba(255,255,255,.72);
  line-height: 1.4;
  margin: 8px 0 14px;
}

.game-card-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: var(--neon);
  font-weight: 900;
}

.cta{ color: var(--neon); }

/* ---------- Games layout: Online+Chat / Reveal in fondo ---------- */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 1050px){ .grid-2{ grid-template-columns: 1fr; } }

.player{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.12);
  margin-bottom: 10px;
}
.player:last-child{ margin-bottom:0; }

.chat-box{
  height: 280px;
  overflow:auto;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.14);
  margin-bottom: 12px;
}

.chat-row{ display:flex; gap:12px; align-items:center; }

.chat-msg{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(39,255,214,.12);
  background: rgba(39,255,214,.06);
  margin-bottom: 10px;
}
.chat-msg.sys{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
}
.chat-msg b{ color: rgba(255,255,255,.92); margin-right:6px; }

.reveal-full{
  margin-top: var(--gap);
}

.reveal-big{
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(244,195,90,.30);
  background:
    radial-gradient(900px 360px at 30% 10%, rgba(244,195,90,.18), transparent 55%),
    linear-gradient(180deg, rgba(244,195,90,.10), rgba(0,0,0,.16));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 18px 40px rgba(0,0,0,.35);
  min-height: 260px;
  color: rgba(255,255,255,.92);
}

/* --- Coming soon card --- */
.game-card-disabled{
  opacity: .62;
  cursor: not-allowed;
  filter: grayscale(.15);
}

.game-card-disabled:hover{
  border-color: rgba(255,255,255,.10);
}

.soon-pill{
  display:inline-flex;
  margin-left:10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  border: 1px solid rgba(244,195,90,.28);
  background: rgba(244,195,90,.10);
  color: rgba(244,195,90,.95);
}

.muted{
  opacity: .7;
}

/* ============================
   Lobby chat: stessa vibe "gold" della chat giochi
   ============================ */

.lobby-chat { margin-top: 18px; }

.join-row--inline {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
  margin-bottom: 12px;
}

.join-row--inline .input-wrap { flex: 1; }
.join-row--inline .btn { height: 44px; padding: 0 18px; }

.chat-box--gold {
  border: 1px solid rgba(240, 190, 60, 0.30);
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(240, 190, 60, 0.12), transparent 60%),
    radial-gradient(700px 260px at 90% 10%, rgba(255, 118, 203, 0.06), transparent 55%),
    rgba(10, 14, 20, 0.35);
  box-shadow: inset 0 0 0 1px rgba(240, 190, 60, 0.06);
}

.chat-box--gold .chat-msg {
  border: 1px solid rgba(240, 190, 60, 0.18);
  background: rgba(240, 190, 60, 0.04);
}

.chat-box--gold .chat-msg.sys {
  border-color: rgba(240, 190, 60, 0.12);
  background: rgba(240, 190, 60, 0.03);
}

.lobby-footnote {
  margin-top: 10px;
  opacity: 0.85;
}

/* Hardening: card disabilitate (es. Coming soon) non devono sembrare cliccabili */
.game-card.disabled {
  cursor: not-allowed !important;
  opacity: 0.68;
  transform: none !important;
  filter: none !important;
}

.game-card.disabled:hover {
  transform: none !important;
  filter: none !important;
}

/* ── OG News Bar — ticker TV ─────────────────────────────────────────────── */
.og-newsbar {
  display: flex;
  align-items: center;
  gap: 0;
  height: 36px;
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  transition: background .4s, border-color .4s, box-shadow .4s;
  font-size: 13px;
  font-weight: 700;
}

/* Colori per fase */
/* ROSSO — tanti giorni */
.og-nb-far {
  background: rgba(200,40,40,.12);
  border-color: rgba(220,60,60,.30);
  box-shadow: 0 0 20px rgba(200,40,40,.08);
}
.og-nb-far .og-nb-dot      { background: #e05050; box-shadow: 0 0 8px #e05050; }
.og-nb-far .og-nb-live-txt { color: #e05050; }
.og-nb-far .og-nb-label    { background: rgba(200,40,40,.25); border-color: rgba(220,60,60,.30); color: #ff8080; }
.og-nb-far .og-nb-ticker   { color: rgba(255,160,160,.85); }

/* GIALLO — metà strada */
.og-nb-mid {
  background: rgba(200,160,0,.10);
  border-color: rgba(244,195,90,.28);
  box-shadow: 0 0 20px rgba(200,160,0,.07);
}
.og-nb-mid .og-nb-dot      { background: #f4c35a; box-shadow: 0 0 8px #f4c35a; }
.og-nb-mid .og-nb-live-txt { color: #f4c35a; }
.og-nb-mid .og-nb-label    { background: rgba(200,160,0,.18); border-color: rgba(244,195,90,.28); color: #f4c35a; }
.og-nb-mid .og-nb-ticker   { color: rgba(244,215,120,.90); }

/* VERDE — vicini */
.og-nb-near {
  background: rgba(39,200,120,.10);
  border-color: rgba(39,255,150,.28);
  box-shadow: 0 0 24px rgba(39,200,120,.10);
}
.og-nb-near .og-nb-dot      { background: #27ffa0; box-shadow: 0 0 10px #27ffa0; animation: og-nb-blink .9s ease-in-out infinite; }
.og-nb-near .og-nb-live-txt { color: #27ffa0; }
.og-nb-near .og-nb-label    { background: rgba(39,200,120,.18); border-color: rgba(39,255,150,.30); color: #27ffa0; }
.og-nb-near .og-nb-ticker   { color: rgba(100,255,180,.90); }

/* VERDE ACCESO — payday */
.og-nb-payday {
  background: linear-gradient(90deg, rgba(39,255,200,.12), rgba(39,255,120,.06));
  border-color: rgba(39,255,214,.38);
  box-shadow: 0 0 32px rgba(39,255,200,.14);
}
.og-nb-payday .og-nb-dot      { background: #27ffd6; box-shadow: 0 0 14px #27ffd6; animation: og-nb-blink .6s ease-in-out infinite; }
.og-nb-payday .og-nb-live-txt { color: #27ffd6; }
.og-nb-payday .og-nb-label    { background: rgba(39,255,200,.18); border-color: rgba(39,255,214,.36); color: #27ffd6; }
.og-nb-payday .og-nb-ticker   { color: rgba(39,255,214,.95); font-weight: 800; }

/* Elementi interni */
.og-nb-live {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 12px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.08);
}
.og-nb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.40);
  flex-shrink: 0;
}
.og-nb-live-txt {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}

.og-nb-label {
  flex-shrink: 0;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.og-nb-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}
.og-nb-ticker {
  white-space: nowrap;
  padding-left: 100%;
  animation: og-nb-scroll 22s linear infinite;
  will-change: transform;
}
.og-nb-ticker:hover { animation-play-state: paused; }

@keyframes og-nb-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes og-nb-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ── News bar — bottone "↓" cambio news ───────────────────────── */
.og-nb-cycle {
  flex-shrink: 0;
  height: 100%;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  border: none;
  border-left: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.55);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: background .2s, color .2s, transform .2s;
  padding: 0;
}
.og-nb-cycle:hover {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
}
.og-nb-cycle:active { transform: scale(.92); }
.og-nb-cycle .og-nb-cycle-ic {
  display: inline-block;
  transition: transform .2s;
}
.og-nb-cycle:hover .og-nb-cycle-ic {
  transform: translateY(2px);
}

/* ── Stato news ZEC (Zcash) — varianti per trend ─────────────── */
.og-nb-zec,
.og-nb-zec-flat,
.og-nb-zec-up,
.og-nb-zec-up-big,
.og-nb-zec-down,
.og-nb-zec-down-big {
  background: rgba(154,92,255,.10);
  border-color: rgba(154,92,255,.28);
  box-shadow: 0 0 22px rgba(154,92,255,.10);
}
.og-nb-zec .og-nb-dot,
.og-nb-zec-flat .og-nb-dot { background: #c8b1ff; box-shadow: 0 0 10px #c8b1ff; animation: og-nb-blink 1.4s ease-in-out infinite; }
.og-nb-zec .og-nb-live-txt,
.og-nb-zec-flat .og-nb-live-txt { color: #c8b1ff; }
.og-nb-zec .og-nb-label,
.og-nb-zec-flat .og-nb-label { background: rgba(154,92,255,.18); border-color: rgba(154,92,255,.28); color: #d6c2ff; }
.og-nb-zec .og-nb-ticker,
.og-nb-zec-flat .og-nb-ticker { color: rgba(220,200,255,.92); }

/* Trend ZEC up */
.og-nb-zec-up,
.og-nb-zec-up-big {
  background: rgba(39,200,120,.10);
  border-color: rgba(39,255,150,.28);
  box-shadow: 0 0 24px rgba(39,200,120,.10);
}
.og-nb-zec-up .og-nb-dot,
.og-nb-zec-up-big .og-nb-dot { background: #27ffa0; box-shadow: 0 0 10px #27ffa0; animation: og-nb-blink .9s ease-in-out infinite; }
.og-nb-zec-up .og-nb-live-txt,
.og-nb-zec-up-big .og-nb-live-txt { color: #27ffa0; }
.og-nb-zec-up .og-nb-label,
.og-nb-zec-up-big .og-nb-label { background: rgba(39,200,120,.18); border-color: rgba(39,255,150,.30); color: #27ffa0; }
.og-nb-zec-up .og-nb-ticker,
.og-nb-zec-up-big .og-nb-ticker { color: rgba(100,255,180,.92); }
.og-nb-zec-up-big { box-shadow: 0 0 32px rgba(39,255,150,.18); }

/* Trend ZEC down */
.og-nb-zec-down,
.og-nb-zec-down-big {
  background: rgba(220,80,80,.10);
  border-color: rgba(255,120,120,.28);
  box-shadow: 0 0 22px rgba(220,80,80,.10);
}
.og-nb-zec-down .og-nb-dot,
.og-nb-zec-down-big .og-nb-dot { background: #ff7a7a; box-shadow: 0 0 10px #ff7a7a; animation: og-nb-blink 1s ease-in-out infinite; }
.og-nb-zec-down .og-nb-live-txt,
.og-nb-zec-down-big .og-nb-live-txt { color: #ff7a7a; }
.og-nb-zec-down .og-nb-label,
.og-nb-zec-down-big .og-nb-label { background: rgba(220,80,80,.18); border-color: rgba(255,120,120,.30); color: #ffb0b0; }
.og-nb-zec-down .og-nb-ticker,
.og-nb-zec-down-big .og-nb-ticker { color: rgba(255,180,180,.92); }
.og-nb-zec-down-big { box-shadow: 0 0 32px rgba(255,120,120,.18); }

/* ── ZEC chart ───────────────────────────────────────────────── */
.og-zec-chart {
  margin: -8px 0 18px 0;
  padding: 14px 16px 10px;
  border-radius: 14px;
  border: 1px solid rgba(154,92,255,.22);
  background:
    linear-gradient(180deg, rgba(154,92,255,.06), rgba(39,255,214,.04)),
    rgba(255,255,255,.02);
  box-shadow: 0 0 24px rgba(154,92,255,.08);
  animation: og-zec-fade-in .35s ease-out;
}
.og-zec-chart.hidden { display: none; }

@keyframes og-zec-fade-in {
  0%   { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.og-zec-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.og-zec-chart-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  color: rgba(255,255,255,.85);
}
.og-zec-chart-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
}
.og-zec-chart-now { color: rgba(255,255,255,.92); }
.og-zec-chart-chg.pos { color: #27ffa0; }
.og-zec-chart-chg.neg { color: #ff7a7a; }

.og-zec-chart-svgwrap {
  width: 100%;
  height: 160px;
}
.og-zec-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.og-zec-svg .og-zec-axis {
  fill: rgba(255,255,255,.45);
  font-size: 10px;
  font-weight: 700;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.og-zec-svg .og-zec-last {
  fill: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 800;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.og-zec-chart-empty {
  height: 160px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.45);
  font-size: 12px;
}

/* ── OG Chat dropdown ────────────────────────────────────────────────────── */
.og-chat-drop {
  position: fixed;
  top: 72px;
  right: 18px;
  width: 420px;
  height: 520px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(10,14,22,.97);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(16px);
  /* chiuso */
  opacity: 0;
  transform: translateY(-12px) scale(.97);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.og-chat-drop--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.og-chat-drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.og-chat-drop-title { font-size: 14px; font-weight: 900; }
.og-chat-drop-note  { font-size: 11px; color: rgba(255,255,255,.35); padding: 6px 16px 10px; flex-shrink: 0; }

/* Pill chat attiva */
.og-chat-active {
  border-color: rgba(39,255,214,.30) !important;
  background: rgba(39,255,214,.07) !important;
  color: rgba(39,255,214,.90) !important;
}

/* responsive */
@media (max-width: 520px) {
  .og-nb-live    { display: none; }
  .og-chat-drop  { left: 10px; right: 10px; width: auto; height: 480px; top: 64px; }
}
/* ─────────────────────────────────────────────────────────────────────────── */


/* waiting badge on game cards */
.waiting-badge{
  margin-left: 8px;
  color: rgba(255, 154, 47, 0.95);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255,154,47,0.20);
}

/* lobby sys neutral override */
.chat-box--gold .chat-msg.sys {
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.03) !important;
  color: rgba(255,255,255,.82) !important;
}

/* ===================== OG_AFK_UI_V1 ===================== */
.og-afk-pill{
  position: fixed;
  right: 22px;
  bottom: 110px; /* sopra payday banner */
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20,20,24,0.62);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,0.94);
}
.og-afk-pill.hidden{ display:none; }
/* ======================================================== */

/* Dice Duel: evidenzia giocatore di turno */
.player.turn{
  border-color: rgba(255,79,216,.28);
  box-shadow: 0 0 0 1px rgba(255,79,216,.10), 0 12px 26px rgba(0,0,0,.18);
}

/* OG: All-in glow */
.btn-allin{
  border-color: rgba(244,195,90,.32);
  background: linear-gradient(180deg, rgba(244,195,90,.14), rgba(244,195,90,.05));
  position: relative;
}
.btn-allin:hover:not(:disabled){
  box-shadow:
    0 0 0 1px rgba(244,195,90,.18),
    0 0 22px rgba(244,195,90,.22),
    0 18px 40px rgba(0,0,0,.30);
}
.btn-allin:active:not(:disabled){
  transform: translateY(1px);
  box-shadow:
    0 0 0 1px rgba(244,195,90,.20),
    0 0 28px rgba(244,195,90,.28),
    0 12px 30px rgba(0,0,0,.26);
}
@keyframes ogAllInPulse{
  0%   { box-shadow: 0 0 0 1px rgba(244,195,90,.10), 0 0 12px rgba(244,195,90,.10); }
  50%  { box-shadow: 0 0 0 1px rgba(244,195,90,.18), 0 0 22px rgba(244,195,90,.20); }
  100% { box-shadow: 0 0 0 1px rgba(244,195,90,.10), 0 0 12px rgba(244,195,90,.10); }
}
.btn-allin:not(:disabled){
  animation: ogAllInPulse 2.2s ease-in-out infinite;
}

