
:root {
  --bg: #eef1f7;
  --bg-2: #f7f9ff;
  --panel: #ffffff;
  --panel-2: #f6f8fd;
  --text: #3f4d77;
  --text-strong: #315be9;
  --muted: #8b96b7;
  --accent: #3d66f4;
  --accent-2: #5ecdf6;
  --green: #2dcf8f;
  --red: #ff6f87;
  --line: #dfe6f5;
  --shadow: 0 18px 45px rgba(81, 106, 177, .12);
  --shadow-soft: 0 8px 25px rgba(81,106,177,.08);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Rubik, Inter, Arial, sans-serif;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94,205,246,.16), transparent 24%),
    radial-gradient(circle at top right, rgba(61,102,244,.10), transparent 30%),
    linear-gradient(180deg, #f5f7fb 0%, #eef1f7 100%);
}
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.center-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.center-wrap.inner { min-height: auto; padding: 50px 0; }
.auth-card, .card {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.auth-card { width: 100%; max-width: 520px; padding: 28px; }
.logo-row, .brand, .profile-card, .flex { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, #ffd05d, #ffb636);
  box-shadow: 0 10px 24px rgba(255,190,91,.35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #7d5800; font-size: 24px;
}
.logo-mark.sm { width: 58px; height: 58px; border-radius: 18px; font-size: 20px; }
.brand-link { padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.brand-link:hover { transform: none; opacity: .96; }
.logo-photo { overflow: hidden; padding: 0; background: linear-gradient(135deg, #ffd05d, #ffb636); }
.logo-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.auth-brand-btn { border: 0; }
.auth-brand-btn:hover { transform: none; }
.sidebar .brand .muted { max-width: 220px; line-height: 1.2; }

.auth-title, .brand h1, .section-title, .game-title, .profile-name {
  color: var(--text-strong);
  font-weight: 900;
}
.auth-title { font-size: 30px; }
.brand h1 { margin: 0; font-size: 30px; }
.section-title { font-size: 26px; margin: 0; }
.muted, small, .footer-note, .toggle-row { color: var(--muted); }
.footer-note { margin-top: 14px; font-size: 13px; }
.provider-grid, .card-grid, .notice-list, .history-list, .stack-col { display: grid; gap: 16px; }
.provider-grid { grid-template-columns: 1fr 1fr; margin: 18px 0; }
.field { margin-top: 14px; }
.field label { display:block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f6f8fd;
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(61,102,244,.45); box-shadow: 0 0 0 4px rgba(61,102,244,.08); }
.provider-btn, .primary-btn, .secondary-btn, .ghost-btn, .balance-pill {
  border-radius: 16px; padding: 13px 16px; transition: .18s ease; font-weight: 700;
}
.provider-btn, .secondary-btn, .ghost-btn, .balance-pill-light {
  background: #f2f5fb; color: var(--text); border: 1px solid var(--line);
}
.provider-btn.active, .nav button.active, .user-item.active { border-color: rgba(61,102,244,.25); box-shadow: 0 0 0 1px rgba(61,102,244,.09) inset; background: linear-gradient(180deg,#f8fbff,#eef4ff); }
.primary-btn, .top-badge, .nav-badge, .pill-unread {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4a7dff);
  box-shadow: 0 10px 22px rgba(61,102,244,.22);
}
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .provider-btn:hover, .balance-pill-light:hover { transform: translateY(-1px); }
.secondary-btn { background: linear-gradient(180deg, #f9fbff, #eef2fb); }
.ghost-btn { background: transparent; }
button:disabled { opacity: .7; cursor: default; transform: none !important; }
.space { height: 18px; }
.app-shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px;
  border-right: 1px solid #e4ebf8;
  background: rgba(248,250,255,.88);
  backdrop-filter: blur(18px);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-mini {
  display:flex; gap:12px; align-items:center; padding: 14px; margin: 20px 0 18px;
  background: linear-gradient(180deg, #3f68f5, #3860ea); color: #fff;
  border-color: rgba(61,102,244,.14);
}
.profile-mini .muted { color: rgba(255,255,255,.72); }
.avatar-pill, .avatar-xl {
  display:flex; align-items:center; justify-content:center; font-weight:900;
  background: linear-gradient(135deg, #ffdb72, #ffc34f); color:#735300;
}
.avatar-pill { width: 46px; height: 46px; border-radius: 50%; }
.avatar-xl { width: 84px; height: 84px; border-radius: 24px; font-size: 30px; }
.nav { display: grid; gap: 10px; }
.nav button, .user-item {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  width: 100%; text-align: left; padding: 14px 16px;
  border-radius: 18px; background: rgba(255,255,255,.7); color: var(--text);
  border: 1px solid transparent;
}
.nav button.active { color: var(--text-strong); }
.nav-badge, .top-badge, .pill-unread { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; display:inline-flex; align-items:center; justify-content:center; font-size: 12px; font-weight:800; }
.main { padding: 24px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap;
  padding: 14px; margin-bottom: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow: var(--shadow-soft);
}
.topbar-left { display:flex; align-items:center; gap: 12px; }
.topbar-left-copy { display:grid; gap:2px; }
.brand-mobile-home { display:none; align-items:center; gap:10px; padding:10px 12px; border-radius:18px; border:1px solid var(--line); background:linear-gradient(180deg,#ffffff,#f8fbff); box-shadow: var(--shadow-soft); color:inherit; }
.brand-mobile-home .logo-mark.sm { width:46px; height:46px; border-radius:14px; }
.brand-mobile-copy { display:grid; gap:2px; text-align:left; }
.brand-mobile-copy strong { font-size:20px; line-height:1; color: var(--text-strong); }
.brand-mobile-copy span { font-size:13px; color: var(--muted); line-height:1.15; }
.top-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.balance-pill { background: linear-gradient(180deg, #ffffff, #f8fbff); border: 1px solid var(--line); color: var(--text-strong); }
.balance-pill-light { box-shadow: var(--shadow-soft); }
.card { padding: 20px; }
.card.soft { background: linear-gradient(180deg, #fbfcff, #f7f9fd); }
.card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.game-card {
  position: relative; overflow: hidden; min-height: 255px; border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.game-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(84,219,235,.70), rgba(91,191,246,.92)),
    radial-gradient(circle at top left, rgba(255,255,255,.34), transparent 30%);
}
.game-bg.mines { background: linear-gradient(135deg, rgba(232,165,239,.78), rgba(163,136,255,.92)); }
.game-bg::before, .game-bg::after {
  content:''; position:absolute; border:2px solid rgba(255,255,255,.35); border-radius: 12px;
}
.game-bg::before { width: 30px; height: 30px; left: 20px; top: 26px; transform: rotate(18deg); }
.game-bg::after { width: 20px; height: 20px; right: 28px; bottom: 54px; border-radius: 999px; }
.game-content { position: relative; z-index: 1; display:flex; flex-direction:column; justify-content:space-between; height: 100%; }
.badge {
  display:inline-flex; padding:8px 12px; border-radius:999px;
  color:#fff; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.24); font-size:13px;
}
.game-title { color:#fff; font-size: 38px; margin: 16px 0 8px; letter-spacing:.4px; }
.game-card .muted { color: rgba(255,255,255,.86); max-width: 420px; }
.hero-strip, .top-tabs {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.top-tabs { margin-top: 12px; }
.tab-chip {
  padding: 12px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight:700;
}
.tab-chip.active { color: var(--text-strong); box-shadow: var(--shadow-soft); }
.bonus-hero, .admin-layout, .profile-grid, .dice-layout { display:grid; gap:18px; }
.bonus-hero, .admin-layout, .profile-grid, .dice-layout { grid-template-columns: 1.1fr .9fr; }
.big-bonus { font-size: 42px; color: var(--text-strong); font-weight: 900; margin: 12px 0; }
.kpi { display:grid; gap: 12px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.kpi.mini .kpi-value { font-size: 20px; }
.kpi .card { padding: 16px; background: linear-gradient(180deg, #fff, #f8fbff); }
.kpi-value { font-size: 26px; color: var(--text-strong); font-weight: 900; margin-top: 8px; }
.notice-list { gap: 12px; }
.notice {
  background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; transition: .18s ease;
}
.notice-unread { border-color: rgba(61,102,244,.32); box-shadow: 0 0 0 1px rgba(61,102,244,.08) inset; }
.notice:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.notice-head, .history-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.promo-line {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(61,102,244,.08), rgba(94,205,246,.11));
  border: 1px solid rgba(61,102,244,.12);
}
.game-panel { display: grid; gap: 18px; }
.dice-stage {
  min-height: 340px; display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; background: radial-gradient(circle at top, rgba(61,102,244,.06), transparent 52%), linear-gradient(180deg,#ffffff,#f8fbff);
}
.dice-roll { font-size: 72px; line-height: 1; font-weight:900; margin: 18px 0 10px; color: var(--text-strong); }
.dice-roll.win, .dice-outcome.win { color: var(--green); }
.dice-roll.lose, .dice-outcome.lose { color: var(--red); }
.dice-outcome { font-size: 24px; font-weight: 900; }
.dice-row { display:flex; gap:10px; flex-wrap: wrap; }
.history-balls { display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.history-ball {
  width: 72px; height: 72px; display:flex; align-items:center; justify-content:center; border-radius: 18px;
  border: 1px solid var(--line); background:#fff; font-weight: 800; box-shadow: var(--shadow-soft);
}
.history-ball.win { border-color: rgba(45,207,143,.28); color: var(--green); }
.history-ball.lose { border-color: rgba(255,111,135,.28); color: var(--red); }
.mines-grid { display:grid; grid-template-columns: repeat(3, minmax(88px, 1fr)); gap: 12px; width: 100%; max-width: 340px; }
.mine-cell {
  width: 100%; aspect-ratio: 1/1; height:auto; border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  border: 1px solid var(--line); color: #5b6b98; font-size: 30px; box-shadow: var(--shadow-soft);
}
.mine-cell.revealed.safe { background: linear-gradient(180deg, rgba(45,207,143,.12), rgba(45,207,143,.06)); border-color: rgba(45,207,143,.28); color: var(--green); }
.mine-cell.revealed.mine { background: linear-gradient(180deg, rgba(255,111,135,.13), rgba(255,111,135,.06)); border-color: rgba(255,111,135,.30); color: var(--red); }
.feature-list { margin: 12px 0 0; padding-left: 18px; display:grid; gap: 8px; color: var(--muted); }
.feature-list.compact { gap: 6px; }
.user-list { display:grid; gap:10px; max-height: 430px; overflow:auto; }
.history-item, .winner-card {
  padding: 14px; border-radius: 18px; background: linear-gradient(180deg,#fff,#f9fbff); border:1px solid var(--line);
}
.winner-card { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top: 10px; }
.toast {
  position: fixed; right: 14px; top: 14px; width: min(250px, calc(100vw - 28px)); z-index: 60; display:grid; gap:8px;
}
.toast-item {
  width: 100%; text-align:left; background: rgba(255,255,255,.97); color: var(--text);
  border:1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; padding: 9px 11px; box-shadow: var(--shadow); cursor:pointer;
}
.toast-item div:last-child { margin-top: 4px; font-size: 13px; color: var(--muted); }
.popup {
  position: fixed; left: 18px; bottom: 18px; width: min(360px, calc(100vw - 36px)); z-index: 50;
}
.popup .card { border-radius: 22px; }
.auth-status-grid { display:grid; gap:12px; grid-template-columns:1fr 1fr; margin-top:14px; }
.status-tile {
  padding: 14px; border-radius: 18px; background:#f7f9fe; border:1px solid var(--line);
}
.status-tile.ok { border-color: rgba(45,207,143,.28); }
.menu-btn, .drawer-close {
  display:none; border:1px solid var(--line); background:#fff; color: var(--text-strong); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-soft);
}
.mobile-overlay { display:none; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(84vw, 320px); max-width:320px; height:100vh; z-index: 90;
    transform: translateX(-110%); transition: transform .24s ease; overflow-y:auto;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .menu-btn, .drawer-close { display:inline-flex; align-items:center; justify-content:center; }
  .mobile-overlay.show { display:block; position:fixed; inset:0; background:rgba(44,52,83,.18); z-index:80; }
  .main { padding: 16px; }
  .card-grid, .bonus-hero, .admin-layout, .profile-grid, .dice-layout, .auth-status-grid, .kpi { grid-template-columns: 1fr; }
  .topbar { padding: 12px; padding-bottom: 12px; margin-bottom: 14px; gap: 14px; }
  .topbar-left { width:100%; align-items:center; gap: 12px; }
  .topbar-left-copy { display:none; }
  .menu-btn {
    width: 44px; height: 44px; min-width: 44px; border-radius: 16px; padding: 0;
    font-size: 22px; font-weight: 700;
  }
  .brand-mobile-home {
    display:flex; flex:1; min-width:0; min-height: 68px; padding: 12px 14px;
    align-items:center; gap: 12px; border-radius: 20px;
  }
  .brand-mobile-home .logo-mark.sm {
    width: 54px; height: 54px; border-radius: 18px; flex: 0 0 54px;
    box-shadow: 0 10px 24px rgba(255, 188, 54, .16);
  }
  .brand-mobile-copy { gap: 4px; }
  .brand-mobile-copy strong {
    display:block; font-size: 19px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .brand-mobile-copy span {
    display:block; font-size: 12px; line-height: 1.2; color: var(--muted); white-space: normal;
  }
  .top-actions { width:100%; justify-content:space-between; gap: 12px; }
  .popup { left: 12px; right:12px; width:auto; bottom: 12px; }
  .toast { left:12px; right:12px; top:12px; width:auto; }
}
@media (max-width: 560px) {
  .auth-card, .card { border-radius: 22px; }
  .brand h1 { font-size: 24px; }
  .section-title { font-size: 22px; }
  .big-bonus { font-size: 34px; }
  .game-title { font-size: 34px; }
  .dice-roll { font-size: 54px; }
  .history-ball { width: 62px; height:62px; border-radius:16px; font-size: 14px; }
  .profile-card { align-items:flex-start; flex-direction:column; }
  .top-actions { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .top-actions > * { min-width:0; justify-content:center; text-align:center; }
  .top-actions .top-user-card { grid-column: 1 / -1; }
  .brand-mobile-home { padding: 12px 14px; min-height: 72px; }
  .brand-mobile-home .logo-mark.sm { width: 56px; height: 56px; border-radius: 18px; }
  .brand-mobile-copy strong { font-size:20px; }
  .brand-mobile-copy span { font-size:12px; }
  .profile-trigger-rich.top-user-card { padding: 12px 14px; }
}

.badge-live { background: linear-gradient(135deg,#3d66f4,#5ecdf6); border:none; color:#fff; }
.badge-mines { background: linear-gradient(135deg,#c27cf7,#7d8dff); border:none; color:#fff; }
.game-shell { overflow: hidden; }
.dice-shell::before, .mines-shell::before {
  content:''; position:absolute; inset:auto -120px -120px auto; width:280px; height:280px; border-radius:50%;
  background: radial-gradient(circle, rgba(94,205,246,.18), transparent 65%); pointer-events:none;
}
.dice-shell, .mines-shell { position: relative; }
.dice-hero, .mines-layout { display:grid; grid-template-columns: 1.25fr .9fr; gap:18px; margin-top: 16px; }
.dice-visual, .dice-controls, .mines-controls { padding: 18px; }
.dice-visual-top, .control-header, .mines-board-top, .history-headline {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.dice-track-wrap { padding: 12px 4px 6px; }
.dice-track {
  position: relative; height: 30px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, rgba(45,207,143,.14), rgba(94,205,246,.12), rgba(255,111,135,.14));
  border: 1px solid var(--line);
}
.dice-track-fill {
  position:absolute; inset:0 auto 0 0; border-radius:999px; opacity:.95;
  background: linear-gradient(90deg, rgba(45,207,143,.75), rgba(94,205,246,.9));
}
.dice-track-fill.over { background: linear-gradient(90deg, rgba(255,208,93,.9), rgba(255,111,135,.88)); }
.dice-track-marker {
  position:absolute; top:-4px; width:12px; height:38px; transform:translateX(-50%);
  border-radius:999px; background:#fff; border:2px solid var(--text-strong); box-shadow: 0 8px 20px rgba(49,91,233,.18);
}
.dice-track-label {
  position:absolute; top: 7px; font-size: 11px; color: var(--muted); font-weight:700;
}
.dice-track-label.left { left:12px; }
.dice-track-label.center { left:50%; transform:translateX(-50%); }
.dice-track-label.right { right:12px; }
.dice-kpi { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.dice-last-panel {
  margin-top: 14px; padding: 18px; border-radius: 20px; border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(244,248,255,.95));
}
.dice-last-panel.win { border-color: rgba(45,207,143,.28); }
.dice-last-panel.lose { border-color: rgba(255,111,135,.28); }
.chip-row { display:flex; gap:8px; flex-wrap:wrap; }
.chip-btn {
  padding: 10px 12px; border-radius: 999px; background:#fff; color: var(--text-strong);
  border:1px solid var(--line); box-shadow: var(--shadow-soft); font-weight:700;
}
.dice-row.two-up { grid-template-columns: 1fr 1fr; }
.dice-note {
  font-size: 13px; color: var(--muted); line-height: 1.45; padding: 10px 12px; border-radius: 14px;
  background: rgba(245,248,255,.85); border:1px solid var(--line);
}
.history-card { padding: 18px; }
.history-balls.modern { display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.history-balls.modern .history-ball {
  min-width: 78px; min-height: 62px; border-radius: 18px; padding: 10px 12px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:4px;
}
.history-balls.modern .history-ball small { text-transform: uppercase; letter-spacing:.05em; font-size:10px; }
.mines-layout { align-items: start; }
.mines-controls { display:grid; gap:12px; }
.mines-kpi { grid-template-columns: repeat(3, 1fr); }
.mines-pill-row { display:flex; gap:8px; flex-wrap:wrap; }
.mines-pill {
  padding: 9px 12px; border-radius: 999px; background:#fff; border:1px solid var(--line); color: var(--text-strong); font-weight:700;
}
.mines-pill.active { background: linear-gradient(135deg, rgba(45,207,143,.14), rgba(94,205,246,.14)); }
.mines-board-wrap {
  padding: 18px; border-radius: 24px; background: linear-gradient(180deg,#fff,#f6f9ff); border:1px solid var(--line); box-shadow: var(--shadow-soft);
}
.mines-grid.enhanced { margin-top: 14px; gap: 12px; }
.mines-grid.enhanced .mine-cell {
  min-height: 88px; border-radius: 22px; position: relative;
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mines-grid.enhanced .mine-cell:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(81,106,177,.12); }
.mines-grid.enhanced .mine-cell span { position: relative; z-index: 1; }
.mines-grid.enhanced .mine-cell::after {
  content:''; position:absolute; inset:0; border-radius:22px; pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0));
}
@media (max-width: 980px) {
  .dice-hero, .mines-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dice-kpi, .mines-kpi { grid-template-columns: 1fr; }
  .history-balls.modern .history-ball { min-width: calc(50% - 6px); }
  .mines-grid.enhanced .mine-cell { min-height: 74px; }
}

.badge-solid {
  background: linear-gradient(135deg, #3d66f4, #5ecdf6);
  border: none;
}
.lobby-hero-card {
  overflow: hidden;
  position: relative;
}
.lobby-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  padding: 12px 0 8px;
}
.lobby-title {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 900;
  color: var(--text-strong);
  margin: 8px 0 14px;
}
.lobby-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}
.lobby-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-chip {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f6f9ff);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}
.stat-chip b {
  color: var(--text-strong);
  font-size: 20px;
}
.stat-chip span {
  font-size: 13px;
  color: var(--muted);
}
.lobby-visual {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-orb {
  position: absolute;
  inset: 30px 30px 20px 30px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.88), transparent 32%),
    linear-gradient(135deg, rgba(94,205,246,.24), rgba(61,102,244,.20));
  border: 1px solid rgba(61,102,244,.12);
}
.cookie-img {
  position: relative;
  z-index: 2;
  width: min(320px, 78%);
  filter: drop-shadow(0 22px 40px rgba(61,102,244,.15));
}
.floating-panel {
  position: absolute;
  z-index: 3;
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}
.panel-a { top: 20px; right: 0; }
.panel-b { left: 0; bottom: 28px; }
.panel-kicker {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.floating-panel b { color: var(--text-strong); font-size: 18px; }
.floating-panel span { color: var(--muted); font-size: 13px; }
.lobby-tabs { margin-top: 4px; }
.lobby-grid { margin-top: 2px; }
.game-card.featured {
  min-height: 300px;
}
.game-card-footer {
  display: grid;
  gap: 14px;
}
.mini-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.2);
}
.dice-card .game-bg {
  background:
    radial-gradient(circle at 22% 22%, rgba(255,255,255,.28), transparent 22%),
    linear-gradient(135deg, rgba(84,219,235,.70), rgba(91,191,246,.92));
}
.mines-card .game-bg {
  background:
    radial-gradient(circle at 80% 25%, rgba(255,255,255,.24), transparent 22%),
    linear-gradient(135deg, rgba(235,173,231,.76), rgba(171,145,255,.95));
}
.lobby-bottom-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feature-pills span {
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f6f9ff);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}
.activity-list {
  display: grid;
  gap: 10px;
}
.activity-item {
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.activity-item b { color: var(--text-strong); }
.activity-item span { color: var(--muted); font-size: 14px; }
.history-ball.modern {
  width: auto;
}
@media (max-width: 980px) {
  .lobby-hero,
  .lobby-bottom-grid {
    grid-template-columns: 1fr;
  }
  .lobby-stats {
    grid-template-columns: 1fr;
  }
  .lobby-visual {
    min-height: 280px;
  }
  .floating-panel {
    min-width: unset;
    width: 170px;
  }
}
@media (max-width: 560px) {
  .lobby-title {
    font-size: 28px;
  }
  .lobby-sub {
    font-size: 14px;
  }
  .floating-panel {
    position: static;
    width: 100%;
  }
  .lobby-visual {
    display: grid;
    gap: 10px;
  }
  .cookie-orb {
    inset: 18px;
  }
  .cookie-img {
    width: 180px;
    margin: 24px auto 0;
  }
}


.auth-screen-wrap {
  padding: 32px;
}
.auth-card-wide {
  max-width: 1140px;
  width: 100%;
  padding: 30px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: stretch;
}
.auth-main {
  display: grid;
  align-content: start;
  gap: 16px;
}
.auth-side {
  display: flex;
}
.auth-side-panel {
  width: 100%;
  min-height: 100%;
  border-radius: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,249,255,.94));
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  align-content: center;
}
.auth-logo-row {
  align-items: flex-start;
}
.auth-logo-mark {
  flex: 0 0 56px;
}
.auth-lead {
  max-width: 720px;
  line-height: 1.5;
  font-size: 16px;
}
.auth-provider-grid {
  margin: 4px 0 0;
}
.status-title {
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.auth-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.auth-actions-row .primary-btn {
  min-width: 150px;
}
.auth-note {
  margin-top: 0;
  max-width: 440px;
}
.cookie-preview {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-preview-orb {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.92), transparent 25%),
    linear-gradient(135deg, rgba(94,205,246,.22), rgba(61,102,244,.16));
  border: 1px solid rgba(61,102,244,.10);
}
.cookie-preview-img {
  position: relative;
  z-index: 1;
  width: min(270px, 78%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(61,102,244,.14));
}
.auth-side-title {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--text-strong);
}
.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 52px;
}
.profile-trigger-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #735300;
  background: linear-gradient(135deg, #ffdb72, #ffc34f);
}
.profile-trigger-copy {
  display: grid;
  text-align: left;
  gap: 2px;
}
.profile-trigger-copy strong {
  font-size: 14px;
  color: var(--text-strong);
}
.profile-trigger-copy span {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 980px) {
  .auth-card-wide {
    max-width: 760px;
    padding: 24px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-side {
    order: -1;
  }
  .auth-side-panel {
    min-height: auto;
  }
}
@media (max-width: 560px) {
  .auth-screen-wrap {
    padding: 16px;
  }
  .auth-card-wide {
    padding: 18px;
  }
  .cookie-preview {
    min-height: 180px;
  }
  .cookie-preview-img {
    width: min(200px, 72%);
  }
  .auth-side-title {
    font-size: 20px;
  }
  .auth-actions-row {
    align-items: stretch;
  }
  .auth-actions-row .primary-btn,
  .auth-note,
  .profile-trigger {
    width: 100%;
  }
}


.auth-card-wide { overflow: hidden; }
.auth-main { min-width: 0; }
.auth-note-block { max-width: 100%; line-height: 1.45; }
.auth-login-btn { min-width: 180px; }
.auth-side-copy { display:grid; gap:10px; }
.auth-side-copy .muted { line-height: 1.55; }
.cookie-preview { min-height: 300px; padding: 12px; overflow: visible; }
.cookie-preview-orb { inset: 10px; }
.cookie-preview-img { width: min(320px, 86%); max-height: 260px; }
.profile-trigger-rich { gap: 12px; padding-right: 14px; }
.profile-trigger-meta { display:grid; gap:2px; text-align:right; padding-left:10px; border-left:1px solid var(--line); }
.profile-trigger-meta small { font-size:11px; color: var(--muted); line-height:1; }
.profile-trigger-meta b { font-size:13px; color: var(--text-strong); }
.profile-trigger-copy strong, .profile-trigger-copy span { white-space: nowrap; }
.top-actions { align-items:center; }
.history-item { gap: 12px; }
.winner-card { align-items: center; }
.winner-card .muted { line-height: 1.4; }
@media (max-width: 980px) {
  .profile-trigger-meta { display:none; }
  .cookie-preview { min-height: 220px; }
  .cookie-preview-img { max-height: 200px; }
}
@media (max-width: 560px) {
  .auth-status-grid, .auth-provider-grid { grid-template-columns: 1fr; }
  .auth-actions-row { width:100%; }
  .auth-login-btn { width:100%; }
  .auth-lead { font-size: 14px; }
  .cookie-preview { min-height: 170px; padding: 4px; }
  .cookie-preview-orb { inset: 0; }
  .cookie-preview-img { width: min(180px, 76%); max-height: 150px; }
}


.auth-kicker {
  display:inline-flex;
  margin-top:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color: var(--accent);
  background: rgba(61,102,244,.08);
  border:1px solid rgba(61,102,244,.12);
}
.auth-card-wide {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,250,255,.96));
}
.auth-main .field input {
  height: 54px;
  font-size: 16px;
}
.auth-provider-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.provider-btn {
  min-height: 52px;
  font-weight: 800;
}
.auth-note-block {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #f2f6ff);
  border: 1px solid var(--line);
  color: var(--muted);
}
.auth-side-panel {
  grid-template-rows: minmax(280px, auto) auto;
}
.cookie-preview {
  min-height: 340px;
  border-radius: 28px;
}
.cookie-preview-img {
  width: min(360px, 88%);
  max-height: 300px;
}
.top-actions {
  gap: 14px;
}
.notice-pill {
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.balance-main-pill {
  font-weight: 900;
  gap: 8px;
  min-height: 54px;
}
.balance-main-pill span {
  color: var(--text-strong);
}
.top-user-card {
  min-height: 64px;
  padding: 8px 14px 8px 8px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}
.profile-trigger-avatar.big {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 16px;
}
.profile-trigger-copy strong {
  font-size: 15px;
}
.profile-trigger-copy span {
  font-size: 12px;
}
.profile-trigger-meta {
  min-width: 132px;
}
.history-list {
  display: grid;
  gap: 12px;
}
.history-item {
  box-shadow: var(--shadow-soft);
}
.history-head {
  align-items: center;
}
.winner-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
@media (max-width: 980px) {
  .top-actions {
    gap: 10px;
  }
  .balance-main-pill {
    order: 2;
  }
  .notice-pill {
    order: 1;
  }
  .top-user-card {
    width: 100%;
    order: 3;
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .auth-main { gap: 14px; }
  .auth-card-wide { padding: 16px; }
  .auth-title { font-size: 28px; }
  .auth-lead { line-height: 1.45; }
  .cookie-preview { min-height: 200px; }
  .cookie-preview-img { width: min(210px, 82%); max-height: 180px; }
  .balance-pill, .balance-main-pill { min-height: 48px; }
  .top-user-card { padding-right: 12px; }
}


/* v13 fixes */
.sidebar .nav{margin-top:18px;}
.profile-trigger-meta.compact b{font-size:12px;}


/* v14 cleanup */
.top-actions{align-items:stretch;}
.balance-main-pill{min-width:140px;justify-content:center;}
.top-user-card{display:flex;align-items:center;justify-content:flex-start;min-width:280px;}
.profile-summary-card{padding:16px 18px;}
.profile-summary-card .notice-head{align-items:center;}
@media (max-width: 980px){
  .top-actions{width:100%;}
  .balance-main-pill{min-width:auto;flex:1 1 160px;}
  .notice-pill{flex:1 1 180px;}
}


/* v15 profile cleanup */
.profile-grid-clean{grid-template-columns:1fr 1fr;}
.profile-kpi-clean .kpi-value{font-size:22px;}
.account-clean-box{padding:18px;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--line);box-shadow:var(--shadow-soft);}
.account-clean-row{display:flex;align-items:center;gap:14px;}
.account-clean-name{font-weight:800;color:var(--text-strong);font-size:18px;line-height:1.2;}
@media (max-width:980px){.profile-grid-clean{grid-template-columns:1fr;}}


.project-blocks-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.project-card { display:flex; flex-direction:column; min-height: 240px; justify-content:space-between; background: linear-gradient(180deg,#ffffff,#f8fbff); }
.project-card-top { display:flex; justify-content:space-between; align-items:center; }
.project-card-title { font-size: 28px; line-height:1.15; font-weight:900; color: var(--text-strong); margin-top:14px; }
.project-card-desc { margin-top:10px; font-size:15px; line-height:1.55; min-height:72px; }
.project-card-footer { margin-top:18px; }
.badge-soft { background: rgba(61,102,244,.08); color: var(--text-strong); border:1px solid rgba(61,102,244,.10); }
.link-btn { display:inline-flex; text-decoration:none; }
.empty-projects-card { padding: 28px; }
@media (max-width: 980px) { .project-blocks-grid { grid-template-columns: 1fr; } }


/* v19 polish */
.top-actions{align-items:center;}
.top-actions > *{align-self:center;}
.balance-main-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  padding-top:0;
  padding-bottom:0;
}
.balance-main-pill span{
  display:inline-flex;
  align-items:center;
  line-height:1;
}

.admin-grid-split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  align-items:start;
}
.admin-tabs{
  margin-top:16px;
  gap:12px;
}
.stack-col{
  gap:18px;
}
.admin-grid-split .card,
.admin-grid-split .history-item,
.admin-grid-split .winner-card{
  box-shadow:var(--shadow-soft);
}
.admin-grid-split .card{
  padding:22px;
}
.history-list{
  gap:14px;
}
.user-list{
  gap:12px;
}
.user-item{
  border-radius:18px;
}

@media (max-width: 980px){
  .admin-grid-split{grid-template-columns:1fr;gap:16px;}
}

.logo-photo img { width:100%; height:100%; object-fit: cover; display:block; }


/* v23 mobile header polish */
@media (max-width: 980px) {
  .topbar {
    background: #ffffff;
    border-radius: 30px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
  }
  .topbar-left {
    display:grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: stretch;
  }
  .menu-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    align-self: center;
    border-radius: 18px;
    background: linear-gradient(180deg,#ffffff,#f6f9ff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    color: var(--text-strong);
  }
  .brand-mobile-home {
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg,#ffffff,#f7faff);
    box-shadow: 0 16px 30px rgba(81,106,177,.10);
    border: 1px solid rgba(223,230,245,.95);
    gap: 14px;
  }
  .brand-mobile-home .logo-mark.sm {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    flex-basis: 60px;
    box-shadow: 0 10px 24px rgba(255,188,54,.20);
  }
  .brand-mobile-copy strong {
    font-size: 23px;
    line-height: 1.02;
    letter-spacing: -.02em;
  }
  .brand-mobile-copy span {
    font-size: 13px;
    line-height: 1.25;
  }
  .top-actions {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
  }
  .top-actions .top-user-card {
    grid-column: 1 / -1;
  }
  .balance-pill,
  .profile-trigger-rich.top-user-card {
    min-height: 64px;
    border-radius: 22px;
    box-shadow: 0 12px 24px rgba(81,106,177,.08);
  }
  .notice-pill,
  .balance-main-pill {
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
  }
  .balance-main-pill span {
    font-size: 18px;
    line-height: 1;
  }
  .profile-trigger-rich.top-user-card {
    padding: 14px 16px;
    align-items: center;
  }
  .profile-trigger-avatar.big {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }
  .profile-trigger-copy {
    gap: 4px;
  }
  .profile-trigger-copy strong {
    font-size: 18px;
    line-height: 1.05;
  }
  .profile-trigger-copy span {
    font-size: 13px;
    line-height: 1.2;
  }
  .profile-trigger-meta.compact {
    margin-left: auto;
    text-align: right;
  }
}

@media (max-width: 560px) {
  .main { padding: 14px; }
  .topbar {
    border-radius: 28px;
    padding: 12px;
    gap: 12px;
  }
  .topbar-left {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .menu-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    font-size: 21px;
  }
  .brand-mobile-home {
    min-height: 76px;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 20px;
  }
  .brand-mobile-home .logo-mark.sm {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
  }
  .brand-mobile-copy strong { font-size: 21px; }
  .brand-mobile-copy span { font-size: 12px; }
  .balance-pill,
  .profile-trigger-rich.top-user-card {
    min-height: 60px;
    border-radius: 20px;
  }
  .notice-pill,
  .balance-main-pill {
    font-size: 17px;
  }
  .profile-trigger-avatar.big {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .profile-trigger-copy strong {
    font-size: 17px;
  }
  .profile-trigger-copy span {
    font-size: 12px;
  }
}


/* v24 mobile polish */
.hero-strip.compact { gap: 8px; }
.brand-tag {
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px;
  border-radius:999px; background:linear-gradient(135deg,#3d66f4,#66b9ff); color:#fff;
  font-weight:800; font-size:13px; box-shadow: var(--shadow-soft);
}
.brand-tag .dot { width:8px; height:8px; border-radius:999px; background:rgba(255,255,255,.85); }
.hero-strip-text { font-size:14px; color:var(--muted); }
.project-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.project-card-title { font-size:28px; font-weight:900; color:var(--text-strong); line-height:1.05; margin:6px 0 10px; }
.project-card-desc { font-size:15px; line-height:1.55; min-height:72px; }
.project-card-footer { margin-top:18px; }
.empty-projects-card { padding:28px; }
.link-btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }

@media (max-width: 980px){
  .topbar { position:static; padding-bottom:14px; margin-bottom:14px; background:#fafbfe; backdrop-filter:none; }
  .topbar-left { width:100%; align-items:stretch; gap:10px; }
  .brand-mobile-home {
    display:flex; flex:1; min-width:0; padding:12px 14px;
    border-radius:22px; box-shadow:0 10px 28px rgba(81,106,177,.10);
  }
  .brand-mobile-home .logo-mark.sm { width:54px; height:54px; border-radius:16px; flex:0 0 54px; }
  .brand-mobile-copy strong { font-size:26px; }
  .brand-mobile-copy span { font-size:14px; }
  .top-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .top-actions > * { min-width:0; }
  .profile-trigger { grid-column:1 / -1; width:100%; justify-content:flex-start; min-height:64px; padding:10px 12px 10px 10px; }
  .profile-trigger-avatar { width:44px; height:44px; border-radius:16px; }
  .profile-trigger-copy strong { font-size:19px; }
  .profile-trigger-copy span { font-size:14px; }
  .balance-pill, .secondary-btn { min-height:52px; justify-content:center; }
  .lobby-hero-card { padding:18px; }
  .hero-strip.compact { margin-bottom:4px; }
  .lobby-hero { gap:18px; padding-top:4px; }
  .lobby-title { font-size:40px; letter-spacing:-.02em; margin-bottom:10px; }
  .lobby-sub { max-width:none; }
  .lobby-stats { grid-template-columns:repeat(3, minmax(0,1fr)); }
  .stat-chip { min-height:86px; align-content:start; }
}
@media (max-width: 560px){
  .main { padding:16px; }
  .topbar { gap:10px; margin-bottom:12px; }
  .topbar-left { gap:8px; }
  .brand-mobile-home { padding:10px 12px; border-radius:20px; }
  .brand-mobile-home .logo-mark.sm { width:50px; height:50px; border-radius:15px; }
  .brand-mobile-copy strong { font-size:22px; }
  .brand-mobile-copy span { font-size:13px; }
  .top-actions { grid-template-columns:1fr 1fr; }
  .profile-trigger { min-height:60px; border-radius:20px; }
  .profile-trigger-copy strong { font-size:17px; }
  .profile-trigger-copy span { font-size:13px; }
  .lobby-hero-card { padding:16px; border-radius:24px; }
  .hero-strip.compact { display:grid; gap:6px; }
  .hero-strip-text { font-size:13px; }
  .lobby-title { font-size:28px; line-height:1.04; margin:4px 0 10px; }
  .lobby-sub { font-size:14px; line-height:1.45; }
  .lobby-stats { grid-template-columns:1fr; gap:10px; }
  .stat-chip { padding:13px 14px; min-height:0; }
  .lobby-visual {
    min-height:0; gap:10px; padding-top:4px;
    grid-template-columns:1fr; align-items:start;
  }
  .cookie-orb { inset:10px; border-radius:26px; }
  .cookie-img { width:150px; margin:18px auto 0; }
  .floating-panel { padding:12px 13px; border-radius:16px; }
  .project-blocks-grid { gap:14px; }
  .project-card { padding:18px; border-radius:22px; }
  .project-card-title { font-size:22px; line-height:1.08; }
  .project-card-desc { font-size:14px; min-height:0; }
  .project-card-footer { margin-top:14px; }
  .lobby-bottom-grid { gap:14px; }
  .lobby-card { padding:18px; border-radius:22px; }
  .feature-pills span { width:100%; justify-content:center; text-align:center; }
  .activity-item { padding:12px 13px; }
}

/* v28 store */
.store-card .project-card-desc { min-height: 90px; }
.store-price {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 8px 12px; border-radius: 999px; font-weight: 800;
  background: linear-gradient(180deg,#fff7df,#ffe5a1); color: #8b6300; border:1px solid #f3d98a;
}
.lobby-hero-shop { grid-template-columns: 1fr; }
.admin-tabs { row-gap: 10px; }
@media (max-width: 560px){
  .store-card .project-card-desc { min-height: 0; }
  .store-price { font-size: 13px; padding: 7px 10px; }
}

.purchase-item { margin-bottom: 10px; }
.admin-tabs { gap: 12px; }
.admin-layout .card, .stack-col > .card { margin-bottom: 0; }
@media (max-width: 980px) {
  .admin-tabs { gap: 8px; }
}

.guest-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 49, 0.24);
  backdrop-filter: blur(3px);
  z-index: 60;
}
.guest-auth-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 61;
}
.auth-modal-card {
  width: min(720px, 100%);
}
.auth-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.guest-shell .main {
  max-width: 1180px;
  margin: 0 auto;
}
.guest-topbar {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.guest-actions {
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .guest-topbar .top-actions {
    width: 100%;
    justify-content: stretch;
  }
  .guest-topbar .top-actions > * {
    flex: 1 1 100%;
  }
}

/* v31 guest layout hotfix */
.guest-shell{grid-template-columns:1fr !important;min-height:100vh;}
.guest-shell .main{grid-column:1 / -1; width:100%; max-width:1180px; margin:0 auto; padding:24px;}
.guest-topbar, .guest-shell .lobby-hero-card, .guest-shell .project-card, .guest-shell .empty-projects-card{width:100%;}
.guest-auth-modal{position:fixed; inset:0; display:flex; align-items:center; justify-content:center; padding:20px; z-index:61;}
.guest-auth-modal .auth-modal-card{max-width:720px; width:min(720px, calc(100vw - 40px));}
@media (max-width: 980px){.guest-shell .main{padding:16px;}}


/* v31 desktop guest brand + no guest balance */
.guest-brand-home{display:flex !important;}
.guest-topbar-left{min-width:0;}
.guest-topbar{justify-content:space-between;align-items:center;}
.guest-topbar .topbar-left,.guest-topbar .top-actions{flex:0 1 auto;}
.guest-topbar .top-actions{margin-left:auto;}
@media (min-width: 981px){
  .guest-topbar .menu-btn{display:none;}
  .guest-brand-home{min-width:280px; max-width:420px;}
}
@media (max-width: 980px){
  .guest-brand-home{flex:1 1 auto; min-width:0;}
}
