/* Baccarat Tournament Lobby — clean rebuild (CSS only, no stacked PNG) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Cinzel:wght@600;700&family=Montserrat:wght@300;400;500;600&family=Roboto+Condensed:wght@700&display=swap');

:root {
  --bg: #080706;
  --gold: #d4af37;
  --gold2: #ffe08a;
  --ivory: #eee5cd;
  --muted: #a59678;
  --wine: #5c1420;
  --wine2: #7a1c28;
  --line: rgba(216, 178, 83, 0.32);
  --green: #7be395;
  --amber: #ffd76a;
  --w: 1440px;
  --h: 900px;
  --font-display: 'Cinzel', serif;
  --font-room: 'Cinzel', serif;
  --font-num: 'Barlow Condensed', sans-serif;
  --font-label: 'Montserrat', sans-serif;
  --font-ui: 'Roboto Condensed', sans-serif;
  --gold-metallic: linear-gradient(180deg, #fff0b3 0%, #d49422 50%, #8a5a00 100%);
  --logo-gold-depth: drop-shadow(0 1px 0 rgba(255, 240, 200, 0.4)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
  --nav-active: #ffffff;
  --nav-idle: #bcbfc7;
  --balance-gold: #ffd46a;
  --kpi-label: #b0a496;
  --kpi-num: #f3cd76;
  --kpi-sub: #8f8f8f;
  --section-title: #f6d383;
  --room-name: #fad165;
  --card-lbl: #a89f91;
  --card-val: #fff3d1;
  --card-foot: #d1cdce;
  --panel-title: #f1c40f;
  --btn-gold-text: #111111;
  --notice-body: #e0e0e0;
  --notice-date: #7f8c8d;
  --partner-slogan: #f3cd76;
  --chat-nick: #ffffff;
  --chat-body: #d1d1d1;
  --chat-time: #666666;
  --badge-hot: #c0392b;
  --badge-live: #27ae60;
  --badge-warm: #d35400;
  /* subtle depth */
  --lift-sm: 0 2px 0 rgba(255, 224, 138, 0.14);
  --lift-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --lift-lg: 0 14px 36px rgba(0, 0, 0, 0.55);
  --inset-top: inset 0 1px 0 rgba(255, 224, 138, 0.12);
  --inset-deep: inset 0 -3px 10px rgba(0, 0, 0, 0.4);
  --text-emboss: 0 1px 0 rgba(255, 236, 190, 0.35), 0 2px 8px rgba(0, 0, 0, 0.85);
  --text-num-depth: 0 1px 0 rgba(255, 240, 210, 0.28), 0 2px 6px rgba(0, 0, 0, 0.9);
  --gold-text-depth: drop-shadow(0 1px 0 rgba(255, 220, 150, 0.45)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85));
  --bg-lobby: url(/assets/a-lobby/backgrounds/casino_lobby_bg.png);
  --widget-depth: inset 0 0 15px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.8);
  --gold-rim: 1px solid rgba(212, 148, 34, 0.3);
  --glow-dragon: rgba(220, 60, 60, 0.45);
  --glow-fortune: rgba(160, 90, 220, 0.45);
  --glow-lucky: rgba(60, 200, 120, 0.4);
  --glow-royal: rgba(70, 130, 220, 0.45);
  --card-photo-fade: linear-gradient(to top, rgba(0, 0, 0, 0.95) 40%, rgba(0, 0, 0, 0.2) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: #14100e;
  color: var(--ivory);
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.lobby-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px 16px 32px;
  overflow: auto;
}

.lobby {
  position: relative;
  width: var(--w);
  height: var(--h);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  background:
    linear-gradient(180deg, rgba(4, 3, 2, 0.72) 0%, rgba(6, 4, 3, 0.88) 50%, rgba(8, 6, 5, 0.92) 100%),
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(114, 24, 40, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 35% at 90% 100%, rgba(212, 175, 55, 0.06), transparent 50%),
    var(--bg-lobby) center top / cover no-repeat,
    var(--bg);
  box-shadow:
    var(--lift-lg),
    0 0 0 1px rgba(216, 178, 83, 0.08),
    var(--inset-top);
  transform-origin: top center;
}

/* ── Header ── */
.lobby-header {
  height: 60px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 268px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 16, 12, 0.98) 0%, rgba(8, 7, 6, 0.92) 100%);
  box-shadow: var(--widget-depth);
  margin: 0 -24px;
  padding: 0 24px;
}

.lobby-header__brand { display: flex; align-items: center; gap: 10px; }
.crest {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 18px/1 var(--font-display); color: var(--gold2);
  background: radial-gradient(circle at 32% 28%, #3a2820, #120a08 70%);
  box-shadow:
    var(--lift-sm),
    0 0 0 1px rgba(255, 224, 138, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(255, 200, 80, 0.2);
}
.brand-txt__baccarat {
  display: block;
  width: 100%;
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: var(--logo-gold-depth);
}
.brand-txt__tournament {
  display: block;
  width: 100%;
  margin-top: 2px;
  text-align: center;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kpi-sub);
}

.lobby-nav { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.lobby-nav button {
  border: 1px solid transparent; border-radius: 8px;
  padding: 8px 11px; background: transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nav-idle);
  cursor: pointer; transition: 0.15s;
}
.lobby-nav button:hover { color: #d8dbe3; }
.lobby-nav button.is-active {
  color: var(--nav-active);
  -webkit-text-fill-color: var(--nav-active);
  background: linear-gradient(180deg, rgba(130, 28, 42, 0.9), rgba(50, 14, 18, 0.85));
  border-color: rgba(180, 50, 60, 0.45);
  box-shadow:
    var(--lift-sm),
    0 0 16px rgba(140, 30, 40, 0.25),
    inset 0 1px 0 rgba(255, 224, 138, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45);
}

.lobby-header__right { display: flex; align-items: center; gap: 8px; }
.balance {
  display: flex; height: 36px; border-radius: 8px; overflow: hidden;
  border: var(--gold-rim);
  background: linear-gradient(180deg, rgba(28, 20, 14, 0.95), rgba(0, 0, 0, 0.65));
  box-shadow: var(--widget-depth);
}
.balance__amt {
  padding: 0 12px; display: flex; align-items: center;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--balance-gold);
}
.balance__add {
  width: 36px; border: 0; border-left: 1px solid var(--line); cursor: pointer;
  background: linear-gradient(180deg, #fff8d8 0%, #e8c050 45%, #9a7018 100%);
  box-shadow: var(--lift-sm), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #1a0c00;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.profile {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.9), rgba(0, 0, 0, 0.55));
  box-shadow: var(--lift-sm), var(--inset-top);
}
.profile__av {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  color: var(--num-tone);
  background: #2a2018; border: 1px solid rgba(216, 178, 83, 0.35);
}
.profile__vip {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a0c00;
  padding: 2px 6px; border-radius: 4px;
  background: linear-gradient(180deg, #fff6c8, #d8b253);
}
.profile__name {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--notice-body);
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.45);
  color: var(--gold2); font-size: 13px; cursor: pointer; position: relative;
}
.icon-btn.lang {
  width: auto; padding: 0 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nav-idle);
}
.mail .dot {
  position: absolute; top: 4px; right: 4px; width: 7px; height: 7px;
  border-radius: 50%; background: #e53935; border: 1px solid #1a0808;
}

/* ── KPI (gradient detail → lobby-hifi.css) ── */
.lobby > .kpi-bar {
  margin-top: 14px;
  height: 108px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(216, 178, 83, 0.42);
}
.kpi {
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  border-right: 1px solid rgba(216, 178, 83, 0.12);
}
.kpi:last-child { border-right: 0; }
.kpi__ico {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px;
  filter: drop-shadow(0 0 10px rgba(255, 200, 80, 0.35));
}
.kpi label {
  display: block;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kpi-label);
}
.kpi strong {
  display: block; margin-top: 5px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--kpi-num);
}
.kpi em {
  display: block; margin-top: 3px;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-style: normal;
  color: var(--kpi-sub);
}

/* ── Rooms ── */
.rooms-head {
  margin-top: 14px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.rooms-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--section-title);
}
.rooms-head__acts { display: flex; align-items: center; gap: 8px; }
.rooms-head a {
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  color: var(--label-tone);
  text-decoration: none;
}
.rooms-head a:hover { color: var(--gold2); }
.rooms-head .arr {
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 18, 12, 0.95), rgba(0, 0, 0, 0.7));
  box-shadow: var(--lift-sm), var(--inset-top);
  color: var(--gold2); font-size: 15px; cursor: pointer;
}

.rooms-zone {
  position: relative; height: 318px; flex-shrink: 0; margin-top: 6px;
}
.rooms-track {
  display: flex; gap: 12px; height: 100%;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 4px 52px 8px 2px;
  scrollbar-width: none;
}
.rooms-track::-webkit-scrollbar { display: none; }

.rooms-fab {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 224, 138, 0.5);
  background: radial-gradient(circle at 35% 30%, #2a2218, #0a0806 70%);
  color: var(--gold2); font-size: 24px; font-weight: 700;
  cursor: pointer; z-index: 5;
  box-shadow: 0 0 28px rgba(255, 190, 60, 0.35), 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* Room card — 3D scene + theme glow */
.room-card {
  flex: 0 0 302px; width: 302px; height: 306px;
  position: relative; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: #0a0806;
  border: var(--gold-rim);
  box-shadow: var(--widget-depth);
  transition: transform 0.2s, box-shadow 0.2s;
}
.room-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 6;
  pointer-events: none;
}
.room-card--dragon::before {
  background: linear-gradient(90deg, transparent, var(--glow-dragon), transparent);
  box-shadow: 0 0 14px var(--glow-dragon);
}
.room-card--fortune::before {
  background: linear-gradient(90deg, transparent, var(--glow-fortune), transparent);
  box-shadow: 0 0 14px var(--glow-fortune);
}
.room-card--lucky::before {
  background: linear-gradient(90deg, transparent, var(--glow-lucky), transparent);
  box-shadow: 0 0 14px var(--glow-lucky);
}
.room-card--royal::before {
  background: linear-gradient(90deg, transparent, var(--glow-royal), transparent);
  box-shadow: 0 0 14px var(--glow-royal);
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.55), 0 8px 28px rgba(0, 0, 0, 0.85);
}
.room-card.is-pick {
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(255, 190, 60, 0.2),
    0 8px 28px rgba(0, 0, 0, 0.85);
}
.room-card--dragon { border-color: rgba(200, 70, 70, 0.45); }
.room-card--fortune { border-color: rgba(150, 110, 220, 0.4); }
.room-card--lucky { border-color: rgba(70, 180, 110, 0.4); }
.room-card--royal { border-color: rgba(80, 120, 210, 0.4); }

.room-card__photo {
  height: 190px; position: relative; overflow: hidden;
  background: #120a08 center / cover no-repeat;
}
.room-card--dragon .room-card__photo {
  background-image: url(/assets/a-lobby/backgrounds/room_scene_dragon.png);
}
.room-card--fortune .room-card__photo {
  background-image: url(/assets/a-lobby/backgrounds/room_scene_fortune.png);
}
.room-card--lucky .room-card__photo {
  background-image: url(/assets/a-lobby/backgrounds/room_scene_lucky.png);
}
.room-card--royal .room-card__photo {
  background-image: url(/assets/a-lobby/backgrounds/room_scene_royal.png);
}
.room-card__photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--card-photo-fade);
  pointer-events: none;
}

.room-card__ribbon {
  position: absolute; top: 12px; z-index: 2;
  padding: 4px 26px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.room-card__ribbon.hot {
  left: -24px; transform: rotate(-42deg);
  background: var(--badge-hot); color: #ffffff;
}
.room-card__ribbon.new {
  right: -24px; transform: rotate(42deg);
  background: linear-gradient(180deg, #2ecc71, #1e8449); color: #ffffff;
}

.room-card__status {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 3;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--lift-sm);
}
.room-card__status.live { background: var(--badge-live); border-color: rgba(255, 255, 255, 0.12); }
.room-card__status.warm { background: var(--badge-warm); border-color: rgba(255, 255, 255, 0.12); }

.room-card__pct {
  position: absolute; left: 10px; right: 10px; top: 178px; height: 3px; z-index: 2;
  background: rgba(0, 0, 0, 0.5); border-radius: 2px; overflow: hidden;
}
.room-card__pct i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }

.room-card__title {
  height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, rgba(18, 12, 8, 0.98), rgba(4, 3, 2, 0.99));
  border-top: 1px solid rgba(212, 148, 34, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 224, 138, 0.08), inset 0 -8px 16px rgba(0, 0, 0, 0.5);
}
.room-card__icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: #1a0c00;
  background: radial-gradient(circle at 35% 28%, #fff8d8, #d4a84a 55%, #6b4210);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.room-card--fortune .room-card__icon { background: radial-gradient(circle, #e8d4ff, #6b4a9e); color: #fff; }
.room-card--lucky .room-card__icon { background: radial-gradient(circle, #b8f5d0, #2d8a52); color: #fff; }
.room-card--royal .room-card__icon { background: radial-gradient(circle, #c8dcff, #3a5ca8); color: var(--gold2); }

.room-card__name {
  margin: 0;
  font-family: var(--font-room);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--room-name);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.room-card__stats {
  height: 52px; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 5px 4px;
  background: linear-gradient(180deg, rgba(12, 9, 7, 0.98), rgba(4, 3, 2, 0.99));
  border-top: 1px solid rgba(216, 178, 83, 0.12);
}
.room-card__stats > div {
  text-align: center; padding: 2px; border-right: 1px solid rgba(216, 178, 83, 0.08);
}
.room-card__stats > div:last-child { border-right: 0; }
.room-card__stats .lbl {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--card-lbl);
}
.room-card__stats b {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--card-val);
}

.room-card__foot {
  height: 28px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 12px;
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--card-foot);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.8));
  border-top: 1px solid rgba(216, 178, 83, 0.1);
}
.room-card__foot span:first-child,
.room-card__foot .t {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* ── Lower ── */
.lower {
  margin-top: 10px; height: 254px; flex-shrink: 0;
  display: grid; grid-template-columns: 364px 336px 308px 1fr; gap: 14px;
  margin-bottom: 10px;
}
.panel {
  border-radius: 10px; padding: 14px 16px;
  display: flex; flex-direction: column; min-height: 0;
  border: var(--gold-rim);
  background: linear-gradient(165deg, rgba(28, 20, 14, 0.96) 0%, rgba(8, 6, 5, 0.98) 100%);
  box-shadow: var(--widget-depth);
}
.panel h3 {
  margin: 0 0 8px; flex-shrink: 0;
  padding-bottom: 7px; border-bottom: 1px solid rgba(216, 178, 83, 0.12);
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--panel-title);
}
.panel h3 small,
.panel h3 .view-all {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--kpi-sub);
}
.panel h3 .view-all {
  font-weight: 500;
  text-decoration: none;
  color: var(--kpi-label);
}
.panel h3 .view-all:hover { color: var(--panel-title); }

.mj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.mj-slot {
  aspect-ratio: 1; border-radius: 8px;
  border: 1px dashed rgba(212, 148, 34, 0.28);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55);
  display: grid; place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kpi-sub);
  text-align: center; padding: 6px;
  background: linear-gradient(180deg, rgba(18, 12, 8, 0.85), rgba(0, 0, 0, 0.75));
  position: relative;
}
.mj-slot.on {
  border: 1px solid rgba(212, 148, 34, 0.45);
  background: linear-gradient(180deg, rgba(24, 18, 12, 0.9), rgba(0, 0, 0, 0.8));
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.6);
}
.mj-slot.on::after {
  content: '✓'; position: absolute; top: 4px; right: 6px; z-index: 2;
  color: var(--green); font-size: 9px; font-weight: 700;
}
.mj-chip {
  width: 52px; height: 52px; object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 10px rgba(255, 200, 80, 0.15));
}
.mj-slot--dragon.on { box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 12px rgba(200, 50, 50, 0.2); }
.mj-slot--fortune.on { box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 12px rgba(140, 80, 200, 0.2); }

.mj-total {
  text-align: center; margin: 0 0 8px;
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  color: var(--label-tone);
}
.mj-total b {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--card-val);
}

.btn-gold {
  margin-top: auto; width: 100%; min-height: 44px; border: 0; border-radius: 8px; cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--btn-gold-text);
  background: linear-gradient(180deg, #fffae0 0%, #e8c050 38%, #8a6010 100%);
  box-shadow:
    var(--lift-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(80, 50, 0, 0.35);
}
.btn-outline {
  width: 100%; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(216, 178, 83, 0.55);
  background: linear-gradient(180deg, rgba(22, 16, 12, 0.85), rgba(0, 0, 0, 0.75));
  box-shadow: var(--lift-sm), var(--inset-top), inset 0 -2px 6px rgba(0, 0, 0, 0.5);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--panel-title);
}

.notice-list { flex: 1; overflow-y: auto; min-height: 0; }
.notice-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.notice-item .tag {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 6px; border-radius: 3px; height: fit-content;
}
.notice-item .tag.n { background: #2a5c34; color: #9fe0ad; }
.notice-item .tag.h { background: #5c1818; color: #ffb0b0; }
.notice-item .tag.v { background: #4a3810; color: var(--gold2); }
.notice-item b {
  display: block;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--notice-body);
}
.notice-item p {
  margin: 2px 0 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--notice-body);
}
.notice-item--status {
  justify-content: center;
  cursor: default;
}
.notice-item--status p {
  margin: 0;
  font-size: 11px;
  color: var(--kpi-sub);
  text-align: center;
  width: 100%;
}

.notice-item time {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--notice-date);
}

.partner-box {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  box-sizing: border-box;
  padding: 6px 12px 12px;
  border-radius: 8px;
  overflow: hidden;
  min-height: 128px;
  background: #0a0806;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.65);
}
.partner-box__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  display: block; z-index: 0;
}
.partner-box__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.72) 30%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.06) 100%);
}
.partner-box__txt {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin: 0;
  padding: 0 2px 8px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}
.partner-box .btn-outline {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
}

.chat-feed { flex: 1; overflow-y: auto; min-height: 0; margin-bottom: 8px; }
.chat-msg {
  display: flex; gap: 8px; padding: 6px 8px; margin-bottom: 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 12, 9, 0.75), rgba(0, 0, 0, 0.55));
  border: 1px solid rgba(216, 178, 83, 0.1);
  box-shadow: var(--inset-top), inset 0 -2px 6px rgba(0, 0, 0, 0.35);
  font-size: 10px;
}
.chat-msg .av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  background: #2a2018; color: var(--num-tone);
}
.chat-msg b {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--chat-nick);
}
.chat-msg .vip {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(90deg, #f3cd76, #d49422);
  padding: 1px 4px; border-radius: 3px; margin-left: 4px;
}
.chat-msg time {
  float: right;
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--chat-time);
}
.chat-msg p {
  margin: 3px 0 0; clear: both;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--chat-body);
}

.chat-msg.is-own {
  border-color: rgba(216, 178, 83, 0.28);
  background: linear-gradient(180deg, rgba(28, 20, 10, 0.82), rgba(12, 8, 4, 0.65));
}

.chat-msg.is-system b {
  color: #f6d797;
}

.chat-msg--hidden {
  opacity: 0.55;
  font-style: italic;
}

.chat-msg--hidden p,
.chat-empty {
  color: rgba(245, 232, 200, 0.45);
  font-size: 11px;
  text-align: center;
  padding: 12px 8px;
}

.chat-flag {
  margin-right: 3px;
}

.chat-input {
  flex-shrink: 0; display: flex; gap: 6px; padding: 4px;
  border-radius: 8px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(216, 178, 83, 0.2);
}
.chat-input input {
  flex: 1; height: 30px; border: 0; background: transparent;
  color: var(--ivory); outline: none; padding: 0 8px;
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.chat-input button {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4);
  color: var(--gold2); cursor: pointer;
}
.chat-input .send {
  background: linear-gradient(180deg, var(--gold2), #a67c1a);
  color: #1a0c00; border: 0;
}

/* ── Footer ── */
.lobby-footer {
  height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -24px; padding: 0 24px;
  border-top: 1px solid rgba(216, 178, 83, 0.2);
  background: linear-gradient(180deg, rgba(16, 12, 9, 0.98), rgba(4, 3, 2, 0.96));
  box-shadow: var(--inset-top);
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  color: var(--label-tone);
}
.lobby-footer__links a {
  color: var(--label-tone); text-decoration: none; margin-right: 14px;
}
.lobby-footer__time {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--num-tone);
}
.lobby-footer__links a:hover { color: var(--gold2); }
.signal {
  width: 16px; height: 10px; border-radius: 2px;
  background: linear-gradient(90deg, #2a5c34, var(--green));
  box-shadow: 0 0 6px rgba(123, 227, 149, 0.4);
  opacity: 0.35;
}
.signal.is-live {
  opacity: 1;
  animation: sync-pulse 1.2s ease-in-out infinite;
}
@keyframes sync-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(123, 227, 149, 0.45); }
  50% { box-shadow: 0 0 12px rgba(123, 227, 149, 0.85); }
}
