/* Page d'accueil / lobby */
#bg canvas { position: fixed; inset: 0; width: 100% !important; height: 100% !important; }
.glass { background: rgba(15, 23, 42, .78); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.field { width: 100%; background: rgba(30, 41, 59, .9); border-radius: 12px; padding: 12px 16px; outline: none; }
.field:focus { box-shadow: 0 0 0 2px #fbbf24; }
.feat { background: rgba(15, 23, 42, .6); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(15, 23, 42, .7); border: 1px solid rgba(255, 255, 255, .08); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.pill.on .dot { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: blink 2s infinite; }
.pill.full .dot { background: #f59e0b; }
.pill.off .dot { background: #ef4444; }
@keyframes blink { 50% { opacity: .4; } }

.avatar { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; font-size: 28px; font-weight: 900; background: linear-gradient(135deg, #1e293b, #334155); border: 2px solid rgba(251, 191, 36, .5); }
.stat { background: rgba(30, 41, 59, .8); border-radius: 10px; padding: 8px 4px; }
.stat b { display: block; font-size: 17px; font-weight: 900; }
.stat span { font-size: 10px; color: #94a3b8; text-transform: uppercase; }

.play-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 84px; border-radius: 18px; color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 10px 30px rgba(245, 158, 11, .35); transition: transform .15s, box-shadow .15s; }
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(245, 158, 11, .5); }
.sum-line { padding: 3px 0; }
.sum-line b { display: inline-block; width: 18px; color: #fbbf24; }

.ltab { padding: 14px 18px; color: #94a3b8; border-bottom: 2px solid transparent; white-space: nowrap; }
.ltab:hover { color: #e2e8f0; }
.ltab.on { color: #fbbf24; border-bottom-color: #fbbf24; }

.emb-btn { width: 44px; height: 44px; border-radius: 12px; background: #1e293b; font-size: 22px; color: #64748b; border: 2px solid transparent; }
.emb-btn:hover:not(:disabled) { background: #334155; }
.emb-btn.sel { border-color: #fbbf24; }
.emb-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Frise de progression */
.timeline { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tl { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.tl-lvl { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: #1e293b; color: #64748b; }
.tl.done .tl-lvl { background: #14532d; color: #4ade80; }
.tl.next .tl-lvl { background: #fbbf24; color: #0f172a; box-shadow: 0 0 16px rgba(251, 191, 36, .5); }
.tl-items { display: flex; flex-direction: column; gap: 4px; }
.tl-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; padding: 8px 10px; border-radius: 10px; background: rgba(30, 41, 59, .6); font-size: 13px; }
.tl.locked .tl-item { opacity: .45; }
.tl-item small { color: #94a3b8; font-size: 12px; }
.tl-item .badge { font-size: 9px; text-transform: uppercase; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.tl-next { grid-column: 2; font-size: 12px; color: #fbbf24; font-weight: 700; }

kbd { display: inline-block; min-width: 22px; text-align: center; background: #1e293b; border: 1px solid #334155; border-bottom-width: 3px; border-radius: 6px; padding: 1px 6px; font-size: 12px; margin-right: 2px; }
.keys p { padding: 4px 0; color: #cbd5e1; }

/* Passe de combat */
.ss-track { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.ss-tier { flex: 0 0 112px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: rgba(30, 41, 59, .7); border: 2px solid transparent; opacity: .75; }
.ss-tier.item { background: rgba(51, 65, 85, .8); opacity: .9; }
.ss-tier.got { opacity: 1; border-color: rgba(34, 197, 94, .6); }
.ss-tier.cur { opacity: 1; border-color: #38bdf8; box-shadow: 0 0 16px rgba(56, 189, 248, .35); }
.ss-tier b { font-size: 12px; line-height: 1.2; }
.ss-tier small { font-size: 10px; color: #94a3b8; }
.ss-n { font-size: 11px; font-weight: 900; color: #fbbf24; }
.ss-ic { font-size: 26px; line-height: 1.2; }
.ss-st { font-size: 12px; }
.ttl-btn { padding: 4px 10px; border-radius: 8px; font-size: 13px; background: #1e293b; border: 2px solid transparent; font-style: italic; color: #fde68a; }
.ttl-btn.sel { border-color: #fbbf24; background: #334155; }
.ttl-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Téléphone */
@media (max-width: 639px) {
  #status { font-size: 11px; padding: 4px 9px; white-space: nowrap; min-width: 0; overflow: hidden; }
  #status-txt { overflow: hidden; text-overflow: ellipsis; }
  .play-btn { height: 72px; }
  .ltab { padding: 12px 13px; }
}
