:root {
  --bg: #0c1018;
  --surface: #151a25;
  --elevated: #1b2230;
  --header: #10151e;
  --stage: #10151e;
  --border: #2a3344;
  --border-strong: #3a4660;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: #1d2a44;
  --accent-glow: rgba(59, 130, 246, .22);
  --text: #eef1f6;
  --text-2: #c9d1e0;
  --muted: #8b93a7;
  --success: #22c55e;
  --warn: #f59e0b;
  --error: #ef4444;
  --rs: #3ddc84;
  --gold: #f5c542;
  --overlay: rgba(6, 8, 12, .74);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .28);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --dur: 140ms;
  --dur-med: 220ms;
  --chat: 280px;
  --panel: var(--surface);
  --panel-2: var(--elevated);
  --line: var(--border);
  --blue: var(--accent);
  --green: var(--success);
  --orange: var(--warn);
  --red: var(--error);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(59, 130, 246, .09), transparent 58%),
    radial-gradient(720px 420px at 100% 0%, rgba(37, 99, 235, .05), transparent 48%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:disabled:not(.mines-tile) { transform: none !important; }
img { display: block; max-width: 100%; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) { outline: none; }

.shell { display: flex; min-height: 100%; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.chat {
  width: var(--chat);
  flex-shrink: 0;
  background: var(--header);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  position: sticky;
  top: 0;
}
.chat-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 12px; letter-spacing: .08em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chat-head .count { color: var(--muted); }
.chat-head .spacer { flex: 1; }
.icon-btn {
  width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted);
}
.icon-btn { transition: color var(--dur) ease, background var(--dur) ease; }
.icon-btn:hover { color: #fff; background: var(--elevated); }
.chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat,
.chat-log,
#chat-log {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.chat::-webkit-scrollbar,
.chat-log::-webkit-scrollbar,
#chat-log::-webkit-scrollbar {
  width: 7px;
}
.chat::-webkit-scrollbar-track,
.chat-log::-webkit-scrollbar-track,
#chat-log::-webkit-scrollbar-track {
  background: transparent;
}
.chat::-webkit-scrollbar-thumb,
.chat-log::-webkit-scrollbar-thumb,
#chat-log::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}
.chat::-webkit-scrollbar-thumb:hover,
.chat-log::-webkit-scrollbar-thumb:hover,
#chat-log::-webkit-scrollbar-thumb:hover {
  background: #3d4658;
}
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 8px; }
.msg .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg .name { font-weight: 700; font-size: 13px; line-height: 1.2; }
.msg .time { color: var(--muted); font-size: 11px; line-height: 1; display: inline-flex; align-items: center; }
.msg .body { color: #cfd5e1; line-height: 1.4; word-break: break-word; }
.msg.style-high_roller .name,
.style-name.high_roller,
.userchip.style-high_roller { color: #ffcc22; }
.msg.style-whale .name,
.style-name.whale,
.userchip.style-whale { color: #6ec8ff; }
.msg.style-content_creator .name,
.style-name.content_creator,
.userchip.style-content_creator { color: #00a2ff; }
.msg.style-admin .name,
.style-name.admin,
.userchip.style-admin { color: #ff3b3b; text-shadow: 0 0 10px rgba(255, 32, 32, .45); }
.msg.style-bot .name,
.style-name.bot { color: #c4b5fd; }
.msg.style-support .name,
.style-name.support,
.userchip.style-support {
  background: linear-gradient(135deg, #f5af19, #f12711);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.chat-input {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--header);
}
.chat-input input {
  flex: 1; min-width: 0; background: var(--stage); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; outline: none;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.chat-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.chat-input .primary {
  flex-shrink: 0;
  width: 40px;
  min-width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-reopen {
  position: fixed; left: 8px; top: 50%; transform: translateY(-50%);
  z-index: 40; width: 40px; height: 40px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) ease, background var(--dur) ease, transform var(--dur) var(--ease);
}
.chat-reopen:hover { border-color: var(--border-strong); background: var(--elevated); }

.badge {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 99px; text-transform: uppercase;
}
.badge.high_roller { background: #2a2108; color: #ffcc22; }
.badge.whale { background: #0b2233; color: #b8d4ff; }
.badge.content_creator { background: #062033; color: #4db8ff; }
.badge.admin { background: #3a0a0a; color: #ff6b6b; }
.badge.developer { background: #050805; color: #39ff14; }
.badge.bot { background: #312e81; color: #ddd6fe; }
.badge.taxxed { background: #3a2a08; color: #fbbf24; }
.badge.support { background: #3a1a08; color: #f5af19; }
.badge.compact {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  padding: 1px 5px;
}
.badge.compact.ico {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  align-self: center;
  border-radius: 5px;
  overflow: hidden;
  background: #0a0c10;
  line-height: 0;
}
.badge.with-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  padding: 4px 10px 4px 4px;
  overflow: hidden;
  vertical-align: middle;
}
.badge.with-ico > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.role-ico {
  display: block;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  min-width: 16px;
  min-height: 16px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 16px;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: middle;
  align-self: center;
}
.badge.compact.ico:not(.developer) .role-ico,
.badge.with-ico:not(.developer) .role-ico,
.style-row:not(.developer) .style-ico .role-ico {
  mix-blend-mode: screen;
}
.badge.developer.compact.ico,
.badge.developer.with-ico,
.style-row.developer .style-ico {
  background: #000;
}
.role-ico.card {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex: 0 0 28px;
}
.msg.style-developer .name,
.style-name.developer,
.userchip.style-developer { color: #39ff14; text-shadow: 0 0 8px rgba(57, 255, 20, .35); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: #1f2937; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--border);
}
.avatar.lg { width: 72px; height: 72px; }
.avatar.sm { width: 28px; height: 28px; }
.avatar.style-high_roller { box-shadow: 0 0 0 2px #ffcc22; }
.avatar.style-whale { box-shadow: 0 0 0 2px #6ec8ff; }
.avatar.style-content_creator { box-shadow: 0 0 0 2px #00a2ff; }
.avatar.style-admin { box-shadow: 0 0 0 2px #ff3b3b; }
.avatar.style-developer { box-shadow: 0 0 0 2px #39ff14; }
.avatar.style-bot { box-shadow: 0 0 0 2px #a78bfa; }
.avatar.style-support { box-shadow: 0 0 0 2px #f5af19; }
.avatar-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: visible;
}
.chip {
  position: absolute;
  right: -18%;
  bottom: -18%;
  width: 45%;
  height: 45%;
  min-width: 16px;
  min-height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.45);
  padding: 0;
  z-index: 1;
  box-sizing: border-box;
}
.avatar-wrap.lg .chip {
  border-width: 2px;
  min-width: 30px;
  min-height: 30px;
}
.chip .coin-face {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
}

.top {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: var(--header);
  background: color-mix(in srgb, var(--header) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03);
  position: sticky; top: 0; z-index: 20;
}
.logo {
  height: 42px;
  width: 42px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--elevated);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.nav-toggle { display: none; }
.nav { display: flex; gap: 4px; }
.nav button {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 12px; font-weight: 700; font-size: 13px; border-radius: var(--radius-sm);
  transition: color var(--dur) ease, background var(--dur) ease;
}
.nav button.active, .nav button:hover { color: #fff; background: var(--accent-soft); }
.spacer { flex: 1; }
.top-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.balance {
  background: var(--stage); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: var(--radius-sm); font-weight: 700; color: var(--accent);
}
.userchip { display: flex; align-items: center; gap: 8px; color: var(--text); }
.userchip .chip-name { font-weight: 700; line-height: 1.2; display: inline-flex; align-items: center; }
.userchip .badge { align-self: center; }

.nav-ico { width: 16px; height: 16px; flex-shrink: 0; display: block; }
.nav-ico.chev { width: 12px; height: 12px; color: var(--muted); }
.header-dd { position: relative; }
.header-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 188px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 40;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.header-dd.open .header-menu { display: flex; flex-direction: column; gap: 2px; }
.header-dd.opening .header-menu { animation: menu-in var(--dur) var(--ease); }
.nav .header-menu-item,
.header-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.header-menu-item:hover,
.header-menu-item.active { background: var(--accent-soft); color: #fff; }
.header-menu-item.danger { color: var(--red); }
.header-menu-item.danger:hover { background: rgba(239, 68, 68, .12); color: #f87171; }
.profile-menu { min-width: 196px; }
.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.profile-menu-name {
  font-weight: 800;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-menu-item.signout {
  margin-top: 4px;
  justify-content: flex-start;
  text-align: left;
  background: color-mix(in srgb, var(--red) 16%, transparent);
  color: color-mix(in srgb, var(--red) 52%, #fff);
}
.header-menu-item.signout:hover,
.header-menu-item.signout.active {
  background: color-mix(in srgb, var(--red) 26%, transparent);
  color: color-mix(in srgb, var(--red) 38%, #fff);
}
.nav .games-select,
.games-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  transition: color var(--dur) ease, background var(--dur) ease, border-color var(--dur) ease;
}
.games-select:hover,
.games-select.active { color: #fff; background: var(--accent-soft); border-color: var(--border-strong); }
.profile-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: var(--text);
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-md);
  min-height: 40px;
  transition: border-color var(--dur) ease, background var(--dur) ease, filter var(--dur) ease;
}
.profile-widget:hover { border-color: var(--border-strong); background: var(--accent-soft); }
.profile-widget-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.profile-widget-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.profile-widget-amt { font-weight: 800; color: var(--green); font-size: 13px; }
.profile-widget.tick .profile-widget-amt,
.profile-widget-amt.tick { animation: bal-tick .45s ease; }
@keyframes bal-tick {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); color: #86efac; }
  100% { transform: scale(1); }
}
.icon-square {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
}
.icon-square .nav-ico { width: 18px; height: 18px; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.notif-dd .header-menu { left: auto; right: 0; width: min(320px, 86vw); }
.profile-dd .header-menu { left: auto; right: 0; }
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.notif-all {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  font-size: 11px;
  padding: 0;
}
.notif-list { max-height: 320px; overflow: auto; }
.notif-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}
.notif-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
}
.notif-item { transition: background var(--dur) ease; }
.notif-item:hover { background: var(--accent-soft); }
.notif-dot-inline {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  margin-top: 6px;
}
.notif-item.unread .notif-dot-inline { background: var(--blue); }
.notif-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-copy b { font-size: 13px; }
.notif-when { color: var(--muted); font-size: 11px; white-space: nowrap; }

.primary, .ghost, .danger {
  border: 0; border-radius: var(--radius-sm);
  padding: 9px 14px; font-weight: 700; font-size: 13px;
  transition: transform var(--dur) var(--ease), filter var(--dur) ease, background var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.primary {
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 16px rgba(37, 99, 235, .2);
}
.danger { background: #dc2626; color: #fff; }
.ghost { background: var(--elevated); border: 1px solid var(--line); color: var(--text); }
.primary:hover:not(:disabled), .ghost:hover:not(:disabled), .danger:hover:not(:disabled) {
  transform: translateY(-1px); filter: brightness(1.07);
}
.ghost:hover:not(:disabled) { border-color: var(--border-strong); }
.primary:active:not(:disabled), .ghost:active:not(:disabled), .danger:active:not(:disabled) {
  transform: none;
}

.wrap { width: min(1220px, calc(100% - 40px)); margin: 22px auto 28px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.page-head h1 { font-size: 24px; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.rs { color: var(--rs); font-weight: 700; }

.cf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}
.cf-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px;
  border-radius: 10px;
  min-width: 100px;
}
.cf-stat-value { background: var(--blue); }
.cf-stat-games { background: var(--green); }
.cf-stat-num { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.15; }
.cf-stat-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cf-past100 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}
.cf-past-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--muted);
}
.cf-past-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.cf-past-chip .past-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
}
.cf-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.cf-hist-btn { white-space: nowrap; }

.flip-list { display: flex; flex-direction: column; gap: 8px; }
.flip-section { margin-top: 28px; }
.flip-section h2 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.flip-row {
  display: grid; grid-template-columns: 180px 64px minmax(0, 1fr) auto auto;
  gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  overflow: visible;
  transition: background var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.flip-row.usd {
  /* Value absorbs free space so .actions stays content-width (same as item rows). */
  grid-template-columns: 180px 64px minmax(0, 1fr) auto;
}
.flip-row > * { align-self: center; min-width: 0; }
.flip-row:hover { background: var(--elevated); border-color: var(--border-strong); }
.vs { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px 4px; min-height: 48px; overflow: visible; }
.vs .avatar-wrap { margin-bottom: 4px; }
.vs .vs-txt { color: var(--muted); font-size: 11px; }
.vs .empty-slot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #0e121a; border: 1px dashed #334155;
}
.vs .avatar-wrap.lost .avatar {
  opacity: .48;
  filter: grayscale(.4) brightness(.72);
}
.vs .avatar-wrap.won .avatar {
  box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(245, 197, 66, .55);
}
.vs .avatar-wrap.lost .chip,
.vs .avatar-wrap.won .chip {
  opacity: 1;
  filter: none;
}
.mid-coin {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden; background: transparent;
  box-shadow: none;
}
.mid-coin .coin-face {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.thumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  align-self: center;
  min-height: 48px;
  line-height: 0;
}
.thumbs-side {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  line-height: 0;
  max-width: 50%;
}
.thumbs-side.creator { justify-content: flex-start; }
.thumbs-side.joiner { justify-content: flex-end; }
.item-thumb {
  /* Full 150x150 render. Cover + 1.26–1.28 zoom clipped tops (Bling Clock ~2px pad). */
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
  background: var(--stage);
  border-radius: 8px;
}
.item-thumb img {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  object-position: 53% 50%;
  transform: none;
}
.thumbs .item-thumb,
.item-line .item-thumb {
  width: 40px;
  height: 40px;
}
.val { text-align: right; font-weight: 800; color: var(--rs); font-size: 16px; }
.val small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 88px;
  min-width: 88px;
  flex-shrink: 0;
}
.actions .primary,
.actions .ghost {
  width: 100%;
  box-sizing: border-box;
}
/* Completed games in live feed */
.flip-row.completed { opacity: .55; }
.flip-row.completed:hover { opacity: .75; }
.ended-label { color: #f59e0b; font-weight: 600; }
.ended-time { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0; }
/* Item tooltip */
.thumb-overflow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--stage); color: var(--muted); font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.usd-amount { font-weight: 800; color: var(--rs); font-size: 16px; white-space: nowrap; }
/* USD bet bar */
.cf-bet-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  flex-wrap: nowrap;
  min-height: 0;
}
.cf-bet-bar > .primary,
.cf-bet-bar > .ghost {
  flex-shrink: 0;
  height: 40px;
  white-space: nowrap;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cf-bet-bar > .ghost { margin-left: auto; }
.cf-bet-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  flex: 1 1 auto;
  width: auto;
  min-width: 180px;
  max-width: 420px;
  height: 40px;
  flex-shrink: 1;
}
.cf-bet-dollar { color: var(--rs); font-weight: 700; font-size: 15px; line-height: 1; flex-shrink: 0; }
.cf-bet-input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  padding: 0;
  height: 38px;
  line-height: 38px;
  width: 100%;
  min-width: 0;
  outline: none;
}
.cf-bet-side-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cf-bet-side-pick .side-coin-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.cf-bet-side-pick .side-coin-btn .coin-face.pick {
  width: 40px;
  height: 40px;
}
/* USD game modal columns */
.usd-cols { display: flex; justify-content: space-between; padding: 12px 0; }
.usd-col { text-align: center; flex: 1; }
.usd-col.end { text-align: center; }
.usd-val { font-weight: 800; color: var(--rs); font-size: 18px; }
/* USD join prompt */
.usd-join-prompt { display: flex; align-items: center; gap: 8px; margin: 10px 0; justify-content: center; }
.usd-join-prompt .cf-bet-input { background: var(--stage); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 160px; color: var(--text); }
.pill { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }

.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toggle-pill {
  border-radius: 99px;
  white-space: nowrap;
}
.toolbar input, .toolbar select, .field, .gate-card input[type=text], .wallet-card input {
  background: var(--stage); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; outline: none; color: var(--text);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.toolbar input:focus, .toolbar select:focus, .field:focus,
.gate-card input[type=text]:focus, .wallet-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.item-card, .bet-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 10px; display: flex; flex-direction: column; gap: 6px;
  position: relative;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) var(--ease);
}
.item-card:hover, .bet-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.item-card.selected, .bet-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.item-stage {
  background: var(--stage); border-radius: 10px; aspect-ratio: 1;
  display: grid; place-items: stretch; overflow: hidden;
}
.item-stage .item-thumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  background: transparent;
}
.item-card img, .bet-card img { background: transparent; }
.item-card h3, .bet-card .name { font-size: 13px; min-height: 32px; font-weight: 600; }
.robux { color: var(--muted); font-size: 12px; }
.price { font-weight: 800; color: var(--gold); font-size: 16px; }
.seller-row { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.seller-row .style-name { display: inline-flex; align-items: center; line-height: 1.2; }
.item-card .primary, .item-card .ghost, .item-card .danger { width: 100%; }
.sub { color: var(--muted); font-size: 12px; }
.proj {
  position: absolute; right: 8px; top: 8px; background: #b91c1c;
  color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 4px;
}
.bet-card.projected { opacity: .45; filter: grayscale(.4); pointer-events: none; }
.stats-bar { display: flex; gap: 18px; color: var(--rs); font-weight: 700; margin: 8px 0 12px; }
.stats-bar .spacer { flex: 1; }

.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: var(--overlay);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  width: min(860px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px 16px;
  position: relative;
  max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg);
}
.modal.wide { width: min(920px, 100%); }
.modal-close {
  position: absolute; right: 12px; top: 12px; left: auto;
  width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 18px;
  border-radius: var(--radius-sm);
  transition: color var(--dur) ease, background var(--dur) ease;
}
.modal-close:hover { color: #fff; background: var(--elevated); }
.modal-logo { text-align: center; margin-bottom: 10px; }
.modal-logo img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #1a1d24;
}
.match-head {
  display: grid; grid-template-columns: 1fr 132px 1fr;
  align-items: center; margin-bottom: 14px;
  overflow: visible;
}
.match-head.result, .match-head.has-coin { grid-template-columns: 1fr 160px 1fr; }
.player { display: flex; flex-direction: column; align-items: center; gap: 10px; overflow: visible; }
.player .avatar-wrap {
  margin-bottom: 18px;
}
.player .name-line {
  margin-top: 2px;
  position: relative;
  z-index: 0;
}
.player.lost { opacity: .45; }
.odds-block { margin-bottom: 12px; }
.odds-track {
  height: 8px; border-radius: var(--radius-pill); overflow: hidden;
  display: flex; background: var(--stage); margin-bottom: 8px;
}
.odds-track .rs { background: var(--rs); }
.odds-track .t { background: var(--orange); }
.odds {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--stage); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 700;
}
.odds .l { color: #fff; }
.odds .r { text-align: right; }
.side-pick { margin: 0 0 14px; }
.side-picker { display: flex; gap: 16px; margin-top: 8px; align-items: center; }
.side-coin-btn {
  background: none; border: 0; padding: 0; border-radius: 50%;
  cursor: pointer; line-height: 0;
  overflow: visible;
}
.side-coin-btn .coin-face.pick {
  width: 72px; height: 72px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  transform: none;
  transition: box-shadow .15s ease, transform .12s ease;
}
.side-coin-btn:hover .coin-face.pick { transform: translateY(-1px) scale(1.04); }
.side-coin-btn.active.rs .coin-face.pick {
  box-shadow: 0 0 0 3px var(--rs), 0 0 18px rgba(61,220,132,.5);
}
.side-coin-btn.active.t .coin-face.pick {
  box-shadow: 0 0 0 3px var(--orange), 0 0 20px rgba(245,158,11,.55);
}
.coin-face { display: block; object-fit: cover; image-rendering: auto; }
.coin-face.stage {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; transform: none;
}
.coin-face.result {
  width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; transform: none;
}
.match-center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.result-coin {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 28px; color: #fff;
  border: 4px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.result-coin.rs { background: radial-gradient(circle at 30% 25%, #86efac, #16a34a); }
.result-coin.t { background: radial-gradient(circle at 30% 25%, #fdba74, #ea580c); }
.item-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.item-tax-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.item-tax-row .item-line {
  width: auto;
  max-width: min(420px, 100%);
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
}
.item-cols > * { min-width: 0; width: 100%; }
.item-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 6px 0;
}
.item-line.taxxed {
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
}
.item-line .badge.taxxed {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.item-thumb.taxxed {
  outline: 2px solid #fbbf24;
  outline-offset: 1px;
  border-radius: 6px;
}
.item-col.end .item-line.taxxed {
  grid-template-columns: auto auto minmax(0, 1fr) 40px;
}
.item-col.end .item-line.taxxed .badge.taxxed { order: 2; }
.item-col.end .item-line.taxxed b { order: 3; }
.item-col.end .item-line.taxxed .item-thumb { order: 4; }
.item-col.end .item-line.taxxed .rs { order: 1; }
.item-line b {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-col.end .item-line,
.item-line.end {
  grid-template-columns: auto minmax(0, 1fr) 40px;
}
.item-col.end .item-line .item-thumb,
.item-line.end .item-thumb { order: 3; }
.item-col.end .item-line b,
.item-line.end b { order: 2; justify-self: end; text-align: right; }
.item-col.end .item-line .rs,
.item-line.end .rs { order: 1; }
.foot { margin-top: 14px; text-align: center; color: var(--muted); font-size: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hash { font-size: 11px; color: var(--muted); word-break: break-all; text-align: center; }
.match-modal .match-result-meta {
  width: 100%;
  text-align: center;
}
.match-modal .ended-time,
.match-modal .hash {
  width: 100%;
  text-align: center;
}

.hud-coin,
.hud-coin-frame,
.hud-coin-mask,
.hud-coin-video,
.hud-coin-vignette,
.hud-coin-wash,
.hud-coin-mark { display: none; }

/* Coinflip toss — rbxflips.com: 1.3s linear rotateX + WebGL cylinder (CSS fallback below). */
.coin-scene {
  perspective: 900px;
  perspective-origin: 50% 50%;
  height: 150px;
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  justify-items: center;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  z-index: 1;
}
.coin-scene.lg { height: 150px; }
.coin-scene.xl { height: 188px; perspective: 760px; }
.coin-gl-holder,
.coin.css-coin-fallback {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
}
.coin-gl-holder {
  z-index: 1;
  width: 148px;
  height: 164px;
  position: relative;
  opacity: 0;
}
.coin-scene.has-gl .coin-gl-holder { opacity: 1; }
.coin-scene.xl .coin-gl-holder { width: 196px; height: 210px; }
.coin-gl { width: 100%; height: 100%; display: block; }
.coin.css-coin-fallback { visibility: hidden; pointer-events: none; }
.coin-scene.no-gl .css-coin-fallback { visibility: visible; pointer-events: auto; }
.coin {
  width: 96px;
  height: 96px;
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  --coin-thick: 20px;
}
.coin.lg { width: 96px; height: 96px; --coin-thick: 20px; }
.coin.xl { width: 128px; height: 128px; --coin-thick: 27px; }
.coin-face-3d {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  background: transparent;
}
.coin-face-3d.front { transform: translateZ(calc(var(--coin-thick) / 2)); }
.coin-face-3d.back { transform: rotateX(180deg) translateZ(calc(var(--coin-thick) / 2)); }
.coin-face-3d .coin-face {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
}
.coin-edge {
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: var(--coin-thick);
  margin-top: calc(var(--coin-thick) / -2);
  border-radius: calc(var(--coin-thick) / 2);
  background: linear-gradient(90deg, #006b01 0% 50%, #ff8900 50% 100%);
  transform: rotateX(90deg);
  backface-visibility: visible;
  pointer-events: none;
}
.coin-shadow {
  transform-origin: 50% 50%;
  background: radial-gradient(ellipse, rgba(0, 20, 50, .55), transparent 70%);
  border-radius: 50%;
  width: 75px;
  height: 14px;
  position: absolute;
  left: 50%;
  bottom: 2px;
  margin-left: -37.5px;
  opacity: .7;
  z-index: 0;
}
.coin-scene.xl .coin-shadow { width: 96px; height: 16px; margin-left: -48px; }
.coin.toss-rs-rs { animation: toss-rs-rs 1.3s linear forwards; }
.coin.toss-rs-t { animation: toss-rs-t 1.3s linear forwards; }
.coin.toss-t-rs { animation: toss-t-rs 1.3s linear forwards; }
.coin.toss-t-t { animation: toss-t-t 1.3s linear forwards; }
.coin-shadow.toss-rs-rs,
.coin-shadow.toss-rs-t,
.coin-shadow.toss-t-rs,
.coin-shadow.toss-t-t { animation: coin-shadow 1.3s linear forwards; }
.coin.land-rs,
.coin.land-t { animation: none !important; filter: none; }
.coin.land-rs { transform: translate3d(0, 0, 0) rotateX(0) scale(1) !important; }
.coin.land-t { transform: translate3d(0, 0, 0) rotateX(180deg) scale(1) !important; }

@keyframes toss-rs-rs {
  0% { transform: translate(0) rotateX(-32deg) scale(1); }
  10% { transform: translate(0) rotateX(-40deg) scale(1); }
  28% { transform: translateY(-19px) rotateX(-335deg) scale(1.62); }
  60% { transform: translateY(-19px) rotateX(-385deg) scale(1.62); }
  88% { transform: translate(0) rotateX(-720deg) scale(1); }
  100% { transform: translate(0) rotateX(-720deg) scale(1); }
}
@keyframes toss-rs-t {
  0% { transform: translate(0) rotateX(-32deg) scale(1); }
  10% { transform: translate(0) rotateX(-40deg) scale(1); }
  28% { transform: translateY(-19px) rotateX(-335deg) scale(1.62); }
  60% { transform: translateY(-19px) rotateX(-385deg) scale(1.62); }
  88% { transform: translate(0) rotateX(-540deg) scale(1); }
  100% { transform: translate(0) rotateX(-540deg) scale(1); }
}
@keyframes toss-t-rs {
  0% { transform: translate(0) rotateX(-212deg) scale(1); }
  10% { transform: translate(0) rotateX(-220deg) scale(1); }
  28% { transform: translateY(-19px) rotateX(-515deg) scale(1.62); }
  60% { transform: translateY(-19px) rotateX(-565deg) scale(1.62); }
  88% { transform: translate(0) rotateX(-720deg) scale(1); }
  100% { transform: translate(0) rotateX(-720deg) scale(1); }
}
@keyframes toss-t-t {
  0% { transform: translate(0) rotateX(-212deg) scale(1); }
  10% { transform: translate(0) rotateX(-220deg) scale(1); }
  28% { transform: translateY(-19px) rotateX(-515deg) scale(1.62); }
  60% { transform: translateY(-19px) rotateX(-565deg) scale(1.62); }
  88% { transform: translate(0) rotateX(-900deg) scale(1); }
  100% { transform: translate(0) rotateX(-900deg) scale(1); }
}
@keyframes coin-shadow {
  0%, 100% { opacity: .7; transform: scaleX(1); }
  28%, 60% { opacity: .28; transform: scaleX(.62); }
}

/* Legacy wrappers kept for safety */
.coin-wrap { perspective: 900px; height: 96px; display: grid; place-items: center; overflow: visible; }
.coin-wrap.lg { height: 96px; }
.coin-wrap.xl { height: 140px; }
.flip-status {
  font-weight: 700; letter-spacing: .12em; font-size: 11px; color: var(--muted);
  text-align: center; position: relative; z-index: 2;
  min-height: 14px; line-height: 1.2; white-space: nowrap;
}
.winner-reveal { text-align: center; }
.winner-label { letter-spacing: .16em; font-size: 11px; color: var(--gold); font-weight: 800; }
.winner-name { font-size: 20px; font-weight: 800; }
.winner-amt { color: var(--rs); font-size: 18px; font-weight: 800; }
.winner-outcome { font-size: 28px; font-weight: 800; letter-spacing: .06em; }
.winner-reveal.you-won .winner-outcome { color: var(--green); }
.winner-reveal.you-lost .winner-outcome { color: var(--red); }
.timer { width: 96px; height: 96px; position: relative; margin: 0 auto; }
.timer svg { transform: rotate(-90deg); }
.timer-ring { transition: none; }
.timer .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em; line-height: 1;
}

.jp-layout { display: grid; grid-template-columns: 280px 1fr 220px; gap: 18px; align-items: start; }
.jp-wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; }
.jp-wheel-stage {
  position: relative;
  width: 240px;
  height: 240px;
  overflow: visible;
}
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 6;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 24px solid #f5c542;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.65));
  pointer-events: none;
}
.wheel {
  width: 240px; height: 240px; border-radius: 50%;
  position: relative;
  background: conic-gradient(#1f2937, #1f2937);
  transform: none;
  transform-origin: 50% 50%;
  will-change: transform;
  box-shadow: inset 0 0 0 4px #141821, 0 8px 24px rgba(0,0,0,.35);
}
.wheel.landed { transition: none; }
.wheel.spinning { z-index: 1; }
.wheel-hole {
  position: absolute; inset: 48px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.wheel-hole .jp-total { font-size: 28px; font-weight: 800; color: #7dd3fc; }
.wheel-hole .jp-count { color: var(--muted); font-size: 13px; }
.wheel-av {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px;
  pointer-events: none;
  z-index: 1;
}
.wheel-av .avatar { width: 28px; height: 28px; }
.wheel-av.winner {
  z-index: 4;
}
.wheel-av.winner .avatar {
  width: 36px;
  height: 36px;
  box-shadow: 0 0 0 3px #f5c542, 0 0 16px rgba(245, 197, 66, .85);
}
.jp-item.winner {
  background: #1a1f12;
  border-radius: 10px;
  padding: 8px;
  margin: 4px -8px;
  box-shadow: inset 0 0 0 1px #f5c542;
}
.jp-status { font-weight: 800; letter-spacing: .04em; }
.jp-status.spinning { color: #f5c542; }
.jp-players { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; min-height: 320px; }
.jp-players h3, .jp-hist h3 { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.jp-item {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.jp-item .item-thumb { width: 48px; height: 48px; }
.name-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; line-height: 1.2; }
.name-line, .jp-name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jp-name-row { justify-content: flex-end; flex-wrap: wrap; }
.jp-hist { display: flex; flex-direction: column; gap: 10px; }
.hist-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px; text-align: center;
}
.hist-card .avatar { width: 56px; height: 56px; margin: 0 auto 6px; }
.hist-thumbs { display: flex; gap: 4px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 8px; line-height: 0; }
.hist-thumbs .item-thumb { width: 28px; height: 28px; }

.gate { min-height: 100vh; background: var(--bg); }
.gate-overlay { background: var(--overlay); }
.login-modal {
  width: min(440px, 100%);
  padding: 28px 26px 24px;
}
.login-modal .logo {
  display: block;
  height: 72px;
  width: 72px;
  margin: 0 auto 12px;
  border-radius: 16px;
}
.login-modal h1 {
  font-family: Nunito, Inter, sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin: 4px 0 10px;
  text-align: center;
}
.login-legal, .login-step {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.login-step { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.login-account { color: var(--muted); font-size: 12px; margin: -6px 0 12px; }
.login-account b { color: var(--text); }
.login-modal .field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.login-modal input[type=text] {
  width: 100%;
  margin: 0 0 16px;
  background: var(--stage);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  outline: none;
  color: var(--text);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.login-modal input[type=text]:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.phrase-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  background: var(--stage);
  border: 1px solid #3a4254;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.phrase-text {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.phrase-copy {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 2px;
  display: grid;
  place-items: center;
}
.phrase-copy:hover { color: #4ade80; }
.login-warn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #3b1518;
  border: 1px solid #7f1d1d;
  color: #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.login-warn b { text-decoration: underline; }
.login-modal .age {
  align-items: flex-start;
  margin-bottom: 16px;
  line-height: 1.4;
}
.login-modal .age input:checked + .box { background: var(--green); border-color: var(--green); }
.terms-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font-weight: 700;
  display: inline;
}
.terms-link:hover { text-decoration: underline; }
.login-btn {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-weight: 800;
  font-size: 15px;
  background: var(--success);
  color: #052e16;
  transition: filter var(--dur) ease, transform var(--dur) var(--ease);
}
.login-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.login-terms {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.gate-card {
  width: min(400px, 100%);
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px;
}
.gate-card img.logo { height: 72px; width: 72px; margin: 0 auto 10px; }
.gate-card h1 { font-size: 26px; margin-bottom: 6px; text-align: center; }
.gate-card h2 { font-size: 12px; letter-spacing: .12em; text-align: center; margin-bottom: 14px; color: var(--muted); }
.gate-card p { color: var(--muted); margin-bottom: 16px; text-align: center; }
.gate-card input[type=text] { width: 100%; margin: 8px 0 12px; }
.gate-card label.field-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.age { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); user-select: none; }
.age input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.age .box {
  width: 18px; height: 18px; border: 1.5px solid #c5c9d4; border-radius: 4px;
  display: inline-flex; position: relative; flex-shrink: 0;
  margin-top: 1px;
}
.age input:checked + .box { background: var(--blue); border-color: var(--blue); }
.age input:checked + .box::after {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}
.notice { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }
.inv-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  padding: 48px 0;
}
.toast {
  position: fixed; right: 16px; top: 72px; z-index: 80;
  min-width: 240px; max-width: 320px; border-radius: var(--radius-md); padding: 12px 14px 12px 44px;
  color: #111; font-weight: 600; box-shadow: var(--shadow-md);
  animation: menu-in var(--dur) var(--ease);
}
.toast.info { background: #bfdbfe; }
.toast.error { background: #fecaca; }
.toast.success { background: #bbf7d0; }
.toast::before {
  content: "i"; position: absolute; left: 12px; top: 12px;
  width: 20px; height: 20px; border-radius: 50%; background: #111; color: #fff;
  display: grid; place-items: center; font-size: 12px;
}
.toast.error::before { content: "!"; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.style-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 8px;
}
.style-row.locked {
  background: #12151c;
  border-style: dashed;
  opacity: 1;
}
.style-ico {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  background: #1d2a22; color: var(--rs); font-size: 14px;
  overflow: hidden;
}
.style-row.high_roller .style-ico { background: #2a2108; }
.style-row.whale .style-ico { background: #0b2233; }
.style-row.content_creator .style-ico { background: #062033; }
.style-row.admin .style-ico { background: #3a0a0a; }
.style-row.developer .style-ico { background: #000; }
.style-row.support .style-ico { background: #3a1a08; }
.style-row.locked .style-ico,
.style-row.locked.high_roller .style-ico,
.style-row.locked.whale .style-ico,
.style-row.locked.content_creator .style-ico,
.style-row.locked.admin .style-ico,
.style-row.locked.developer .style-ico,
.style-row.locked.bot .style-ico,
.style-row.locked.support .style-ico {
  background: #1c212c;
  color: inherit;
}
.style-lock {
  width: 20px;
  height: 20px;
  display: block;
}
.style-row.high_roller b { color: #ffcc22; }
.style-row.whale b { color: #6ec8ff; }
.style-row.content_creator b { color: #00a2ff; }
.style-row.admin b { color: #ff3b3b; }
.style-row.developer b { color: #39ff14; }
.style-row.support b {
  background: linear-gradient(135deg, #f5af19, #f12711);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.style-row > div:nth-child(2) { flex: 1; min-width: 0; }
.style-actions { display: flex; gap: 8px; align-items: center; }
.equipped-pill, .locked-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 99px;
}
.equipped-pill { background: #16351f; color: var(--rs); }
.locked-pill { background: #2a1719; color: #fca5a5; }
.profile-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.profile-hero > div, .player-hero > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.profile-hero .style-name, .player-hero .style-name { line-height: 1.2; }
.profile-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-edit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px; margin: 16px 0 8px; display: flex; flex-direction: column; gap: 8px; max-width: 420px;
}
.profile-edit h3 { margin: 0; font-size: 15px; }
.profile-edit .field { width: 100%; }
.profile-edit .field-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.profile-edit .primary { align-self: flex-start; margin-top: 4px; }
.avatar-upload { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.avatar-upload-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-avatar-preview {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; background: #1f2937;
  box-shadow: 0 0 0 2px var(--border);
}
.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-card, .stat-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 14px;
}
.activity-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.activity-main { flex: 1; min-width: 0; }
.activity-amt { flex-shrink: 0; }
.activity-thumb {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--stage); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.activity-thumb .item-thumb { width: 40px; height: 40px; background: transparent; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.stat-box { display: flex; flex-direction: column; gap: 4px; }
.stat-box b { font-size: 16px; }
.peek-modal { width: min(560px, 100%); }
.avatar-btn, .name-btn {
  border: 0; background: transparent; padding: 0; color: inherit; text-align: left;
}
.avatar-btn { display: grid; place-items: center; }
.name-btn {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
.name-btn:hover { color: #fff; text-decoration: underline; }
.badge { background: #1f2937; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.admin-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; }
.admin-wrap { width: min(1220px, calc(100% - 40px)); }
.admin-shell { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.admin-side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 72px; }
.admin-side button { width: 100%; text-align: left; }
.admin-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.admin-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px;
}
.admin-card h3 { font-size: 15px; margin-bottom: 12px; }
.house-wallet-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px;
}
.house-wallet-head h3 { margin-bottom: 4px; }
.house-wallet-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.house-wallet-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 8px 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.house-wallet-row:last-child { border-bottom: 0; }
.house-wallet-coin { display: flex; flex-direction: column; gap: 4px; }
.house-wallet-bal b { font-size: 15px; }
.house-wallet-addr {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; max-width: 100%;
}
.house-wallet-addr .mono { overflow: hidden; text-overflow: ellipsis; }
.house-wallet-err { color: #f87171; grid-column: 1 / -1; }
@media (max-width: 720px) {
  .house-wallet-row { grid-template-columns: 1fr; }
  .house-wallet-head { flex-direction: column; }
}
.admin-maint-pass { margin-top: 16px; max-width: 360px; }
.admin-maint-pass .primary { width: fit-content; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px;
}
.admin-stat b { display: block; font-size: 20px; margin-top: 4px; }
.player-hero { display: flex; align-items: center; gap: 14px; }
.player-hero h2 { font-size: 22px; }
.admin-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
#admin-wallet-mins { max-width: 280px; }
.admin-form label, .stats-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.stats-form { display: grid; grid-template-columns: 1fr 1fr; max-width: 100%; }
.admin-radios { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.admin-user-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; margin-top: 10px; }
.admin-user-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; }
.admin-user-btn.active { border-color: var(--blue); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table tbody tr { transition: background var(--dur) ease; }
.admin-table tbody tr:hover { background: var(--accent-soft); }
.admin-table th { color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.audit-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.status-dot { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-dot.on { color: var(--green); }
.status-dot.off { color: #f87171; }
.game-card .game-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.admin-hit { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.admin-hit .item-thumb { width: 48px; height: 48px; }
.admin-inv-grid { margin-top: 12px; }
.game-off {
  color: #f87171; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.entry { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; gap: 8px; }
.wallet-wd-meta { display: inline-flex; align-items: center; gap: 10px; }
.wallet-wd-meta .danger { padding: 5px 10px; font-size: 12px; }
.tx-plus { color: var(--rs); font-weight: 800; }
.tx-minus { color: #f87171; font-weight: 800; }
.promo-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.promo-row .field { flex: 1; }
.promo-row .login-btn { width: auto; padding: 11px 18px; flex-shrink: 0; }
.promo-form { max-width: 420px; }
.promo-created-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.promo-created-row code { font-size: 15px; }
.admin-table tr[data-promo] { cursor: pointer; }
.admin-table tr.on { background: var(--accent-soft); }
.wallet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.wallet-page { width: min(680px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.wallet-hero { text-align: center; padding: 8px 0 4px; }
.wallet-amt { font-size: 40px; font-weight: 800; color: var(--gold); }
.wallet-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet-tabs button { padding: 11px 14px; }
.tx-page { width: min(960px, 100%); }
.tx-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
}
.tx-tabs button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-weight: 700;
  background: var(--elevated);
  color: var(--muted);
  transition: background var(--dur) ease, color var(--dur) ease;
}
.tx-tabs button.active {
  background: var(--accent);
  color: #fff;
}
.tx-tabs button:hover:not(.active) { color: var(--text); }
.tx-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.tx-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.tx-table th, .tx-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tx-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: var(--panel-2);
}
.tx-table tbody tr { transition: background var(--dur) ease; }
.tx-table tbody tr:hover { background: var(--accent-soft); }
.tx-table tr:last-child td { border-bottom: 0; }
.tx-empty { text-align: center !important; color: var(--muted); padding: 48px 16px !important; white-space: normal !important; }
.tx-status { font-weight: 700; }
.tx-status.ok { color: var(--green); }
.tx-status.bad { color: var(--red); }
.tx-status.wait { color: var(--orange); }
.tx-view {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  padding: 0;
}
.tx-view:hover { color: #fff; text-decoration: underline; }
.tx-peek-modal { width: min(420px, 100%); }
.tx-peek-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tx-peek-list div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: start; }
.tx-peek-list dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.tx-peek-list dd { font-weight: 700; word-break: break-word; }
.wallet-panel { padding: 20px; }
.wallet-panel h3 { margin-bottom: 8px; }
.wallet-label {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.wallet-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.method-tile.soon {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding: 28px 12px;
  min-height: 108px;
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
  background: #0c0e14;
}
.method-tile {
  border: 1px solid var(--line); background: var(--stage); border-radius: var(--radius-lg);
  padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, background var(--dur) ease;
}
.method-tile.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.method-tile.paused { opacity: .62; }
.method-tile.paused.active { border-color: #f87171; box-shadow: none; background: rgba(248, 113, 113, .08); }
.pause-pill {
  font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 99px;
  background: #3f1d1d; color: #f87171;
}
.admin-wd-coin button { min-width: 148px; }
.method-name { font-weight: 800; font-size: 13px; }
.method-sub { color: var(--muted); font-size: 10px; }
.coin-logo { width: 36px; height: 36px; display: block; margin-bottom: 2px; }
.limiteds-stage {
  position: absolute;
  inset: -28% -8%;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.limiteds-grid {
  display: grid;
  grid-template-columns: repeat(6, 88px);
  gap: 7px;
  width: max-content;
  transform: perspective(720px) rotateX(14deg) rotateZ(-11deg) scale(1.2);
  filter: blur(1.7px);
}
.limiteds-card {
  position: relative;
  background: #16181f;
  border: 1px solid #2a2e38;
  border-radius: 4px;
  padding: 10px 6px 4px;
  overflow: hidden;
}
.limiteds-tag {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  background: #00b06f;
  color: #fff;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 2px;
}
.limiteds-card .item-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0;
  background: #111318;
}
.method-tile.soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,18,.25), rgba(10,12,18,.08) 45%, rgba(10,12,18,.4));
  pointer-events: none;
}
.method-tile.soon .method-name,
.method-tile.soon .soon-pill { position: relative; z-index: 1; }
.soon-pill {
  font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 99px;
  background: #3f2e12; color: #fbbf24;
}
.wallet-amount-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; margin: 10px 0 12px; }
.wallet-amount-row .field { width: 100%; }
.usd-prefix, .usd-coin { color: var(--muted); font-weight: 800; }
.wallet-hint { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 14px; }
.wallet-go { margin-top: 4px; }
.deposit-invoice { display: flex; flex-direction: column; gap: 16px; }
.deposit-pay-card,
.deposit-addr-card { padding: 24px; }
.deposit-pay-row { display: flex; gap: 24px; align-items: center; }
.deposit-qr {
  flex: 0 0 168px;
  width: 168px;
  height: 168px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}
.deposit-qr svg { width: 100%; height: 100%; display: block; }
.deposit-pay-copy { flex: 1; min-width: 0; }
.deposit-lead { font-size: 15px; line-height: 1.55; color: var(--text); }
.deposit-lead b { font-weight: 800; }
.deposit-min-ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin: 0 4px 0 2px;
}
.deposit-warn { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.deposit-addr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.deposit-addr-head > span:first-child {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d5dbe8;
}
.network-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}
.network-badge.sol { background: #7c3aed; color: #fff; }
.network-badge.btc { background: #f59e0b; color: #1a1304; }
.network-badge.eth { background: #6366f1; color: #fff; }
.network-badge.ltc { background: #64748b; color: #fff; }
.deposit-addr-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
}
.deposit-addr-box:hover { border-color: #3a4254; }
.deposit-addr-box .mono {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
  color: #fff;
  font-weight: 600;
}
.deposit-copy-ico { color: var(--muted); flex-shrink: 0; display: flex; }
.deposit-addr-box:hover .deposit-copy-ico { color: #fff; }
.deposit-status { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
@media (max-width: 640px) {
  .deposit-pay-row { flex-direction: column; align-items: flex-start; gap: 18px; }
}
.wallet-actions { display: flex; gap: 10px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.quick .on { border-color: var(--blue); color: #fff; }
.check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }

.giveaway-card {
  margin: 10px 10px 0;
  padding: 10px;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.giveaway-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.giveaway-item { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; }
.giveaway-thumb {
  width: 44px; height: 44px; background: var(--stage); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.giveaway-thumb .item-thumb { width: 44px; height: 44px; background: transparent; }
.giveaway-name {
  font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.giveaway-stats {
  display: flex; justify-content: space-between; gap: 8px;
  margin: 8px 0; color: var(--muted); font-size: 12px; font-weight: 700;
}
.giveaway-cd { color: var(--text); font-variant-numeric: tabular-nums; }
.giveaway-join {
  width: 100%; border: 0; border-radius: 8px; padding: 8px 12px;
  background: var(--green); color: #052e16; font-weight: 800;
}
.giveaway-join:hover:not(:disabled) { filter: brightness(1.08); }
.giveaway-tag {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 99px;
  background: #243044; color: #9aa6bf;
}
.giveaway-winner { color: var(--gold); font-weight: 800; font-size: 12px; margin: 0 0 8px; }
.giveaway-chip {
  position: fixed; left: 8px; top: calc(50% + 36px); transform: none;
  z-index: 40; display: flex; align-items: center; gap: 6px;
  padding: 4px 8px 4px 4px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.giveaway-chip .item-thumb { width: 28px; height: 28px; }
.giveaway-chip .giveaway-cd { font-size: 11px; font-weight: 800; }

.eos-wait {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--stage); border: 2px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.eos-wait-kicker { font-size: 9px; font-weight: 800; letter-spacing: .14em; color: var(--blue); }
.eos-wait-num { font-size: 13px; font-weight: 800; color: var(--text); }
.eos-wait-sub { font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

.fair-panel {
  margin-top: 14px; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; text-align: left;
}
.fair-kicker { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--blue); }
.fair-panel h3 { font-size: 15px; margin: 4px 0 8px; }
.fair-lead, .fair-warn { font-size: 12px; line-height: 1.45; color: var(--muted); margin-bottom: 10px; }
.fair-warn { color: var(--orange); }
.fair-rows { display: grid; gap: 7px; margin-bottom: 10px; }
.fair-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: start; font-size: 12px; }
.fair-row > span { color: var(--muted); font-weight: 700; }
.fair-row code, .fair-formula code {
  display: inline-block; word-break: break-all;
  color: var(--text); font-size: 11px;
}
.fair-panel a { color: var(--blue); }
.fair-muted { color: var(--muted); font-weight: 600; }
.fair-formula { margin: 8px 0; font-size: 12px; }
.fair-formula span { display: block; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.fair-how {
  white-space: pre-wrap; color: var(--muted); font-size: 11px; line-height: 1.45;
  background: var(--stage); border-radius: 8px; padding: 10px; margin: 8px 0 12px;
  font-family: inherit;
}
.fair-check { font-size: 12px; font-weight: 700; margin-top: 8px; }
.fair-check.ok { color: var(--green); }
.fair-check.bad { color: var(--red); }
#view-jp-fair { margin: 8px auto 0; display: block; }

@media (max-width: 1100px) {
  .jp-layout { grid-template-columns: 1fr; }
  .flip-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  html, body, .shell, .main { overflow-x: hidden; max-width: 100%; }
  .vs { padding: 8px 10px 8px 6px; }
  .player { padding: 6px 10px 0; }
  .shell { display: block; }
  .chat {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    width: min(320px, 92vw);
    height: auto;
    max-height: 100vh;
    max-height: 100dvh;
    transform: translateX(-105%);
  }
  .chat.open { transform: none; }
  .chat-head { flex-shrink: 0; }
  .match-head, .item-cols, .admin-grid, .odds, .admin-shell, .admin-stats, .stats-form { grid-template-columns: 1fr; }
  .item-col.end .item-line,
  .item-line.end { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .item-col.end .item-line .item-thumb,
  .item-col.end .item-line b,
  .item-col.end .item-line .rs,
  .item-line.end .item-thumb,
  .item-line.end b,
  .item-line.end .rs { order: 0; }
  .item-col.end .item-line b,
  .item-line.end b { justify-self: start; text-align: left; }
  .admin-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .top {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .logo { height: 36px; width: 36px; border-radius: 8px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 12px;
    background: var(--header);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    z-index: 25;
  }
  .top.nav-open .nav { display: flex; }
  .nav button {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
    min-height: 44px;
  }
  .spacer { display: none; }
  .top-end { margin-left: auto; gap: 6px; }
  .top-end .ghost,
  .top-end .primary,
  .top-end .balance {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 40px;
  }
  .top-end .userchip .chip-name { display: none; }
  .top-end .userchip { padding: 6px 8px; min-height: 40px; }
  .games-select { width: 100%; justify-content: flex-start; min-height: 44px; }
  .games-dd .header-menu { position: static; width: 100%; box-shadow: none; margin-top: 4px; }
  .profile-widget-label { display: none; }
  .profile-widget { padding: 4px 8px 4px 4px; min-height: 40px; }
  .icon-square { width: 40px; height: 40px; }
  .notif-dd .header-menu,
  .profile-dd .header-menu {
    position: absolute;
    right: 0;
    left: auto;
    width: min(300px, 92vw);
  }
  .tx-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tx-tabs button { min-height: 40px; }
  .tx-peek-list div { grid-template-columns: 1fr; gap: 2px; }
  .wrap { width: calc(100% - 24px); margin: 14px auto 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

  /* Coinflip: stack bet bar, wrap stats */
  .cf-bet-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    align-items: stretch;
  }
  .cf-bet-input-wrap {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .cf-bet-bar > .primary,
  .cf-bet-bar > .ghost {
    flex: 1 1 auto;
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
  }
  .cf-bet-bar > .ghost { margin-left: 0; }
  .cf-bet-side-pick {
    flex: 0 0 auto;
    gap: 8px;
  }
  .cf-bet-side-pick .side-coin-btn,
  .cf-bet-side-pick .side-coin-btn .coin-face.pick {
    width: 44px;
    height: 44px;
  }
  .cf-header {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .cf-stat {
    min-width: 0;
    padding: 8px 12px;
    flex: 0 0 auto;
  }
  .cf-stat-num { font-size: 16px; }
  .cf-stat-label { font-size: 10px; }
  .cf-past100 {
    margin-left: 0;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .cf-past-label { font-size: 10px; letter-spacing: .06em; }
  .cf-past-chip { font-size: 14px; gap: 4px; }
  .cf-past-chip .past-ico { width: 18px; height: 18px; }
  .cf-header-actions {
    margin-left: auto;
    flex-shrink: 0;
  }
  .cf-hist-btn {
    min-height: 40px;
    padding: 8px 12px;
  }
  .player .avatar-wrap { margin-bottom: 16px; }
}

@media (max-width: 430px) {
  .top { padding: 8px 10px; gap: 6px; }
  .top-end .ghost#open-chat { padding: 8px 8px; }
  .cf-stat { padding: 7px 10px; }
  .cf-past100 { gap: 5px; }
  .cf-bet-bar > .primary,
  .cf-bet-bar > .ghost { font-size: 12px; padding: 0 10px; }
}

.maint-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: radial-gradient(ellipse at 50% 20%, #1a2233 0%, var(--bg) 58%);
}
.maint-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.maint-card .logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
}
.maint-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.maint-card .sub {
  margin: 0 0 24px;
  line-height: 1.55;
  color: var(--muted);
}
.maint-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.maint-form .field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.maint-form .field { width: 100%; }
.maint-form .login-btn { margin-top: 6px; }
.deposit-loading {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  padding: 28px 24px;
}
.wallet-copy-row { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; }
.wallet-copy-row .mono { flex: 1; }
.top .primary { background: var(--blue); border: 0; color: #fff; padding: 8px 12px; border-radius: 8px; }

/* Site footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 36px 20px 48px;
}
.footer-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-start;
}
.footer-brand { max-width: 420px; flex: 1 1 auto; }
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer-name b { font-weight: 800; }
.footer-tld { color: var(--accent-hover); font-weight: 600; }
.footer-social { display: flex; gap: 8px; margin-bottom: 16px; }
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--elevated);
  border: 1px solid var(--line);
  color: #e8ecf4;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.footer-social-btn:hover { background: var(--accent-soft); color: #fff; border-color: var(--border-strong); }
.footer-copy,
.footer-disclaimer,
.footer-age,
.footer-contact {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.footer-disclaimer { max-width: 380px; }
.footer-contact a,
.footer-contact b { color: #d7dce8; }
.footer-contact a:hover { color: #fff; }
.footer-cols {
  display: flex;
  gap: 56px;
  flex-shrink: 0;
  padding-top: 4px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 120px;
}
.footer-col h3 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px;
}
.footer-col button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.footer-col button { transition: color var(--dur) ease; }
.footer-col button:hover { color: #fff; }

.legal-overlay { z-index: 60; }
.legal-modal {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  padding: 22px 24px 28px;
}
.legal-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.legal-body { color: #d5dae6; line-height: 1.6; font-size: 14px; }
.legal-body h1 { font-size: 24px; color: #fff; margin: 0 0 8px; font-weight: 800; }
.legal-body h2 { font-size: 16px; color: #fff; margin: 22px 0 8px; font-weight: 800; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul,
.legal-body ol { margin: 0 0 14px 1.2em; padding: 0; }
.legal-body li { margin: 0 0 6px; }
.legal-body a { color: var(--blue); }
.legal-body code {
  font-size: 12px;
  background: #0e131c;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  word-break: break-all;
}
.legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 16px !important; }

@media (max-width: 820px) {
  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
  .footer-cols { gap: 36px; }
  .site-footer { padding: 28px 16px 40px; }
  .coin-scene,
  .coin-scene.lg { height: 130px; }
  .coin-scene.xl { height: 148px; }
  .coin-gl-holder { width: 112px; height: 130px; }
  .coin-scene.xl .coin-gl-holder { width: 128px; height: 148px; }
  .coin.lg { width: 84px; height: 84px; --coin-thick: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .coin.toss-rs-rs,
  .coin.toss-rs-t,
  .coin.toss-t-rs,
  .coin.toss-t-t,
  .coin-shadow.toss-rs-rs,
  .coin-shadow.toss-rs-t,
  .coin-shadow.toss-t-rs,
  .coin-shadow.toss-t-t {
    animation-duration: 0.01ms !important;
  }
}

.game-control {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.game-control:last-child { border-bottom: 0; }
.game-control button { min-width: 132px; font-weight: 800; }
.game-control .game-on { border-color: #166534; color: #86efac; }
.game-off-page { margin-top: 24px; padding: 28px; }

.profit-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 16px 12px; margin: 16px 0 8px;
}
.profit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.profit-head h3 { margin: 0; font-size: 15px; }
.profit-ranges { display: flex; gap: 6px; }
.profit-ranges button {
  border: 1px solid var(--line); background: var(--stage); color: var(--muted);
  border-radius: var(--radius-sm); padding: 6px 10px; font-weight: 700; font-size: 12px;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.profit-ranges button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.profit-total { font-size: 28px; font-weight: 800; margin: 10px 0 8px; letter-spacing: -.02em; }
.profit-svg { width: 100%; height: 168px; display: block; }
.profit-zero { stroke: var(--border-strong); stroke-width: 1; }
.profit-line { stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.profit-dot { fill: var(--accent-hover); stroke: var(--bg); stroke-width: 1.5; }
.profit-empty { margin: 12px 0; }
.profit-note { margin-top: 8px; }

.wrap.mines-page {
  width: min(720px, calc(100% - 40px));
}
.wrap.mines-page.chicken-page {
  width: min(1100px, calc(100% - 40px));
}
.mines-card {
  display: grid;
  grid-template-columns: 236px 1px auto;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mines-panel {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.mines-panel .field-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.mines-bet-box {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 6px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 6px 0 12px;
  min-height: 42px;
}
.mines-bet-box .usd-prefix { font-size: 13px; }
.mines-bet-box .field {
  border: 0;
  background: transparent;
  padding: 9px 4px;
  min-width: 0;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.mines-bet-box .field::-webkit-outer-spin-button,
.mines-bet-box .field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mines-bet-box .field:focus,
.mines-bet-box .field:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
}
.mines-bet-box:focus-within:has(.field:focus) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.mines-max {
  border: 0;
  background: #2a3344;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: 7px;
  padding: 6px 8px;
  line-height: 1;
}
.mines-max:hover:not(:disabled) { background: #334056; }
.mines-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}
.mines-count-label { color: var(--red); display: inline-flex; align-items: center; gap: 5px; }
.mines-count-label b { font-size: 16px; color: var(--text); }
.mines-panel input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: #2a3142;
  cursor: pointer;
}
.mines-panel input[type="range"]:disabled { cursor: not-allowed; opacity: .55; }
.mines-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: transparent;
}
.mines-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.mines-panel input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: transparent;
}
.mines-panel input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.mines-live { display: flex; flex-direction: column; gap: 0; margin: 2px 0 4px; }
.mines-live .entry {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.mines-live .entry span { color: var(--muted); }
.mines-live .entry b { font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mines-go {
  width: 100%;
  margin-top: auto;
  padding: 13px 16px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  letter-spacing: .02em;
  border-radius: 10px;
  box-shadow: 0 4px 0 #1d4ed8, 0 8px 16px rgba(37, 99, 235, .22);
}
.mines-go:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.mines-go:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 0 #1d4ed8; }
.mines-go span { font-size: 12px; font-weight: 600; opacity: .92; }
.mines-go.cash {
  background: #16a34a;
  box-shadow: 0 4px 0 #15803d, 0 8px 16px rgba(22, 163, 74, .22);
}
.mines-go.cash:active:not(:disabled) { box-shadow: 0 2px 0 #15803d; }
.chicken-card.is-play .mines-go.cash:not(:disabled) {
  animation: chicken-go-pulse 1.8s ease-in-out infinite;
}
.mines-go.over {
  background: #7f1d1d;
  box-shadow: 0 4px 0 #450a0a, 0 8px 16px rgba(127, 29, 29, .22);
  cursor: default;
}
.chicken-card .mines-go + .mines-go {
  margin-top: 8px;
}
@keyframes chicken-go-pulse {
  0%, 100% { box-shadow: 0 4px 0 #15803d, 0 8px 16px rgba(22, 163, 74, .22); }
  50% { box-shadow: 0 4px 0 #15803d, 0 8px 22px rgba(74, 222, 128, .42); }
}
.mines-divider { background: var(--line); }
.mines-board-wrap {
  position: relative;
  padding: 36px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: linear-gradient(180deg, var(--elevated) 0%, var(--stage) 100%);
}
.mines-board-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 336px;
  max-width: 100%;
  min-height: 28px;
  margin-bottom: 12px;
}
.mines-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.mines-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  border: 1px solid transparent;
}
.mines-pill.ok {
  color: #86efac;
  background: rgba(22, 163, 74, .12);
  border-color: rgba(22, 163, 74, .28);
}
.mines-pill.bad {
  color: #fca5a5;
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .28);
}
.chicken-board .mines-pill:not(.ok):not(.bad) {
  color: #93c5fd;
  background: rgba(59, 130, 246, .1);
  border-color: rgba(59, 130, 246, .28);
}
.mines-fair-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 2px;
  border-radius: 6px;
  white-space: nowrap;
}
.mines-fair-btn:hover { color: #bbf7d0; background: rgba(34, 197, 94, .08); }
.mines-fair-btn[aria-expanded="true"] { color: #bbf7d0; }
.mines-fair-slot { margin-top: 12px; }
.mines-fair-empty { padding: 10px 4px; }
.mines-grid {
  --mines-gap: 8px;
  width: 336px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--mines-gap);
  perspective: 640px;
}
.mines-grid.is-busy { pointer-events: none; }
button.mines-tile:disabled {
  opacity: 1;
  cursor: default;
}
.mines-tile {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  padding: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 34%),
    linear-gradient(180deg, #1a2030 0%, #10141c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 0 0 1px #2a3142,
    0 3px 0 #0a0c10,
    0 6px 12px rgba(0, 0, 0, .32);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  transform-style: preserve-3d;
}
.mines-tile.live:not(:disabled):hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 0 1px #3a455c,
    0 5px 0 #0a0c10,
    0 12px 18px rgba(0, 0, 0, .38);
}
.mines-tile.live:not(:disabled):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.mines-tile.press {
  transform: translateY(2px) scale(.97) !important;
  transition: transform 90ms ease, box-shadow 90ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    inset 0 0 0 1px #2a3142,
    0 1px 0 #0a0c10,
    0 2px 6px rgba(0, 0, 0, .3);
}
.mines-tile.safe {
  background: linear-gradient(180deg, #1d4a2c, #14351f);
  box-shadow:
    inset 0 1px 0 rgba(134, 239, 172, .22),
    inset 0 0 0 1px #166534,
    0 3px 0 #0a1a10;
}
.mines-tile.mine {
  background: linear-gradient(180deg, #4a1c1f, #2a1012);
  box-shadow:
    inset 0 1px 0 rgba(248, 113, 113, .16),
    inset 0 0 0 1px #7f1d1d,
    0 3px 0 #1a0808;
}
.mines-tile.hit {
  box-shadow:
    inset 0 0 0 2px #ef4444,
    0 0 16px rgba(239, 68, 68, .28),
    0 3px 0 #1a0808;
}
.mines-tile.flip { animation: mines-flip 260ms ease; }
.mines-tile.boom { animation: mines-boom 300ms ease; }
@keyframes mines-flip {
  0% { transform: rotateY(0) scale(1); }
  45% { transform: rotateY(90deg) scale(.96); }
  100% { transform: rotateY(0) scale(1); }
}
@keyframes mines-boom {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-1.4deg); }
  40% { transform: translateX(3px) rotate(1.4deg); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.mines-card.is-wait .mines-tile { filter: saturate(.92); }
.mines-card.is-bust .mines-tile:not(.mine):not(.safe),
.mines-card.is-cashed .mines-tile:not(.mine):not(.safe) { opacity: .48; }
.mines-mark { width: 46%; height: 46%; object-fit: contain; opacity: .4; pointer-events: none; }
.mines-card.is-play .mines-mark { opacity: .46; }
.mines-ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.mines-ico.gem,
.mines-ico.bomb {
  width: 14px;
  height: 14px;
  font-size: inherit;
}
.mines-tile .mines-ico.gem,
.mines-tile .mines-ico.bomb,
.chicken-clear .mines-ico,
.chicken-crash .mines-ico {
  width: 20px;
  height: 20px;
}
.mines-ico.gem { color: #86efac; }
.mines-ico.bomb { color: #fecaca; }
.mines-end { text-align: center; margin-top: 12px; font-weight: 800; font-size: 13px; }
.mines-end.cashed { color: var(--green); }
.mines-end.bust { color: var(--red); }
.mines-hist-title { margin: 22px 0 10px; }

@media (max-width: 960px) {
  .wrap.mines-page.chicken-page { width: calc(100% - 24px); }
  .mines-card.chicken-card {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .chicken-card .mines-divider { height: 1px; margin: 0 16px; }
}

@media (max-width: 760px) {
  .wrap.mines-page { width: calc(100% - 24px); }
  .mines-card {
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 16px;
  }
  .mines-divider { height: 1px; margin: 0 16px; }
  .mines-panel { padding-bottom: 14px; }
  .mines-go { margin-top: 4px; }
  .mines-board-wrap { padding: 38px 16px 16px; }
  .mines-board-top { width: min(100%, 300px); }
  .mines-fair-btn { top: 10px; right: 10px; font-size: 10px; }
  .mines-grid { width: min(100%, 300px); --mines-gap: 7px; }
}

.towers-stack {
  width: 336px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.towers-stack.is-busy { pointer-events: none; }
.towers-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 3px 4px;
  border-radius: 12px;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.towers-row-mult {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
  line-height: 1;
}
.towers-row.is-active {
  background: rgba(59, 130, 246, .08);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .28);
}
.towers-row.is-active .towers-row-mult { color: #93c5fd; }
.mines-card.is-play .towers-row.is-future { opacity: .42; }
.mines-card.is-play .towers-row.is-done .mines-tile:not(.safe) { opacity: .55; }
.towers-row-tiles {
  display: flex;
  justify-content: center;
  gap: 7px;
}
.towers-row-tiles .mines-tile {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

@media (max-width: 760px) {
  .towers-stack { width: min(100%, 300px); }
  .towers-row { grid-template-columns: 36px minmax(0, 1fr); gap: 6px; }
  .towers-row-mult { font-size: 10px; }
  .towers-row-tiles .mines-tile {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mines-tile,
  .mines-tile.live:not(:disabled):hover,
  .mines-go { transition: none; }
  .mines-tile.flip,
  .mines-tile.boom { animation: none; }
  .towers-row { transition: none; }
  .chicken-actor,
  .chicken-pad { transition: none; }
  .chicken-card.is-play .mines-go.cash:not(:disabled),
  .chicken-road.is-bust .chicken-actor,
  .chicken-road.is-cashed .chicken-actor,
  .chicken-pad.flip,
  .chicken-pad.boom { animation: none; }
}

.chicken-bet-ops {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.chicken-bet-ops .mines-max {
  width: 100%;
  padding: 8px 6px;
  font-size: 10px;
}
.chicken-diffs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.chicken-diff-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 7px 2px;
  border-radius: 7px;
  line-height: 1.1;
}
.chicken-diff-btn:hover:not(:disabled):not(.is-on) {
  color: var(--text);
  background: var(--accent-soft);
}
.chicken-diff-btn.is-on {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 0 #1d4ed8;
}
.chicken-board {
  background:
    linear-gradient(180deg, #0c1410 0 18px, transparent 42px),
    linear-gradient(180deg, transparent 78%, #0b1210 100%),
    linear-gradient(180deg, #121820 0%, #0e141c 100%);
  min-width: 0;
  padding: 36px 16px 16px;
}
.chicken-board .mines-board-top { width: 100%; }
.chicken-board .mines-pill .chicken-car {
  width: 11px;
  height: 16px;
  filter: none;
}
.chicken-road-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.chicken-road {
  --sidewalk-w: 68px;
  --lane-w: 64px;
  --chicken-floor: 0;
  width: calc(var(--sidewalk-w) + var(--chicken-rows, 8) * var(--lane-w));
  min-width: calc(var(--sidewalk-w) + var(--chicken-rows, 8) * var(--lane-w));
  margin: 0 auto;
}
.chicken-road,
.chicken-road * { pointer-events: none; }
.chicken-road.is-busy { pointer-events: none; }
.chicken-canopy,
.chicken-verge {
  height: 22px;
  pointer-events: none;
  background-color: #0a140f;
  background-image:
    radial-gradient(ellipse 18px 16px at 10px 20px, #16361f 0 68%, transparent 70%),
    radial-gradient(ellipse 24px 18px at 34px 22px, #102616 0 66%, transparent 68%),
    radial-gradient(ellipse 16px 14px at 54px 18px, #1a3d24 0 70%, transparent 72%);
  background-size: 64px 22px;
  background-repeat: repeat-x;
}
.chicken-verge { transform: scaleY(-1); opacity: .88; }
.chicken-track {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 260px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .35), transparent 18%),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255, 255, 255, .025) 14px 15px),
    linear-gradient(180deg, #1b2230 0%, #141a24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 -1px 0 rgba(0, 0, 0, .35);
}
.chicken-sidewalk {
  width: var(--sidewalk-w);
  flex: 0 0 var(--sidewalk-w);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 4px 10px;
  background:
    repeating-linear-gradient(180deg, #3d4454 0 11px, #333948 11px 12px),
    #383e4c;
  box-shadow: inset -3px 0 0 #4b5568, inset 0 0 0 1px rgba(0, 0, 0, .2);
  z-index: 2;
}
.chicken-curb-lbl {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #93c5fd;
}
.chicken-actor {
  position: absolute;
  left: calc(var(--sidewalk-w) / 2 - 18px + var(--chicken-floor, 0) * var(--lane-w));
  top: 36%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  z-index: 6;
  pointer-events: none;
  transition: left 220ms cubic-bezier(.22, .8, .28, 1);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5));
}
.chicken-hero { display: block; }
.chicken-road.is-bust .chicken-actor { animation: mines-boom 300ms ease; }
.chicken-road.is-cashed .chicken-actor {
  animation: chicken-cash 560ms ease;
  filter: drop-shadow(0 0 10px rgba(134, 239, 172, .55));
}
@keyframes chicken-cash {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-5px) scale(1.1); }
}
.chicken-lane {
  position: relative;
  width: var(--lane-w);
  flex: 0 0 var(--lane-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .03), transparent 18%, transparent 82%, rgba(0, 0, 0, .12));
}
.chicken-lane + .chicken-lane::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 46px;
  border-left: 2px dashed rgba(226, 232, 240, .2);
  pointer-events: none;
  z-index: 1;
}
.chicken-lane.is-active {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, .14), rgba(59, 130, 246, .04) 40%, transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, .04), transparent 20%, transparent 80%, rgba(0, 0, 0, .1));
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .38);
}
.chicken-lane.is-hit {
  box-shadow: inset 0 0 0 2px rgba(239, 68, 68, .7), inset 0 0 22px rgba(239, 68, 68, .16);
}
.mines-card.is-play .chicken-lane.is-future { opacity: .48; }
.chicken-lane-traffic {
  height: 72px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}
.chicken-card.is-wait .chicken-lane-traffic,
.chicken-lane.is-future .chicken-lane-traffic { height: 96px; }
.chicken-lane.is-active .chicken-lane-traffic { opacity: .28; height: 52px; }
.chicken-lane-visual {
  flex: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.chicken-clear,
.chicken-crash {
  width: 36px;
  height: 36px;
  margin: 8px auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.chicken-clear {
  background: linear-gradient(180deg, #1d4a2c, #14351f);
  box-shadow: inset 0 1px 0 rgba(134, 239, 172, .22), inset 0 0 0 1px #166534;
}
.chicken-crash {
  background: linear-gradient(180deg, #4a1c1f, #2a1012);
  box-shadow: inset 0 0 0 2px #ef4444, 0 0 14px rgba(239, 68, 68, .28);
  animation: mines-boom 300ms ease;
}
.chicken-car { display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.chicken-lane-tiles {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px 7px 2px;
  position: relative;
  z-index: 2;
}
.chicken-lane-tiles .mines-tile.chicken-pad {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  flex: 1 1 0;
  min-height: 28px;
  max-height: 42px;
  border-radius: 8px;
}
.chicken-lane-tiles .mines-tile.chicken-pad.live:not(:disabled):hover {
  transform: translateY(-2px);
}
.chicken-hole {
  width: 56px;
  height: 32px;
  margin: 6px auto 8px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 32%, #3d4658 0 34%, #252b38 42% 72%, #171b24 74%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 0 2px #2a3142,
    0 2px 0 #0a0c10;
  font-size: 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: #dbe4f0;
  line-height: 1;
  z-index: 2;
}
.chicken-lane.is-active .chicken-hole {
  color: #bfdbfe;
  box-shadow:
    inset 0 1px 0 rgba(147, 197, 253, .2),
    inset 0 0 0 2px #3b82f6,
    0 0 10px rgba(59, 130, 246, .28);
}
.chicken-lane.is-done .chicken-hole {
  color: #86efac;
  box-shadow:
    inset 0 1px 0 rgba(134, 239, 172, .2),
    inset 0 0 0 2px #16a34a,
    0 0 8px rgba(22, 163, 74, .22);
}
.chicken-lane.is-hit .chicken-hole {
  color: #fca5a5;
  box-shadow:
    inset 0 0 0 2px #ef4444,
    0 0 10px rgba(239, 68, 68, .25);
}

@media (max-width: 760px) {
  .chicken-board { padding: 38px 12px 14px; }
  .chicken-road { --lane-w: 56px; --sidewalk-w: 56px; }
  .chicken-track { height: 240px; }
  .chicken-lane-tiles .mines-tile.chicken-pad {
    min-height: 26px;
    max-height: 36px;
  }
  .chicken-hole { width: 48px; height: 30px; font-size: 7px; }
}

@media (min-width: 1600px) {
  .wrap { width: min(1280px, calc(100% - 64px)); }
  .admin-wrap { width: min(1280px, calc(100% - 64px)); }
  .footer-inner { width: min(1280px, 100%); }
  .wrap.mines-page { width: min(760px, calc(100% - 64px)); }
  .wrap.mines-page.chicken-page { width: min(1180px, calc(100% - 64px)); }
}
@media (min-width: 2200px) {
  .wrap { width: min(1400px, calc(100% - 96px)); }
  .admin-wrap { width: min(1400px, calc(100% - 96px)); }
  .footer-inner { width: min(1400px, 100%); }
}
@media (min-width: 2560px) {
  .wrap { width: min(1480px, calc(100% - 120px)); }
  .admin-wrap { width: min(1480px, calc(100% - 120px)); }
  .footer-inner { width: min(1480px, 100%); }
}
@media (max-width: 1360px) {
  html, body, .shell, .main { max-width: 100%; }
  .flip-row { min-width: 0; }
  .cf-header, .cf-bet-bar, .jp-layout { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .header-menu,
  .toast { animation: none; }
  .primary, .ghost, .danger, .login-btn, .item-card, .bet-card, .flip-row,
  .games-select, .profile-widget, .nav button, .icon-btn, .chat-reopen {
    transition: none;
  }
}

.lvl-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  flex-shrink: 0;
  cursor: default;
  user-select: none;
  box-shadow: 0 0 0 1px rgba(12, 16, 24, .45);
}
.lvl-badge.md {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.lvl-badge.corner {
  position: absolute;
  left: -5px;
  top: -5px;
  z-index: 2;
  width: 16px;
  height: 16px;
  font-size: 8px;
}
.lvl-badge.lvl-bronze { background: #3a2a18; color: #e8b86d; border-color: #8a6230; }
.lvl-badge.lvl-silver { background: #2a3344; color: #d5dde8; border-color: #7b879c; }
.lvl-badge.lvl-gold { background: #3a300e; color: var(--gold); border-color: #b8962a; }
.lvl-badge.lvl-platinum { background: #243044; color: #e8eef8; border-color: #8aa0c4; }
.lvl-badge.lvl-diamond { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent); }
.lvl-badge.lvl-elite { background: #102038; color: #93c5fd; border-color: #3b82f6; }
.lvl-badge.lvl-master { background: #1a2438; color: #c4b5fd; border-color: #7c6bc4; }
.lvl-badge.lvl-grandmaster { background: #241828; color: #f0abfc; border-color: #a855f7; }
.lvl-badge.lvl-champion { background: #2a1810; color: #fdba74; border-color: #c2410c; }
.lvl-badge.lvl-legend,
.lvl-badge.lvl-legendary {
  background: #1d2a44;
  color: #f5c542;
  border-color: #60a5fa;
}
.lvl-tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 132px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  letter-spacing: 0;
  z-index: 40;
  white-space: nowrap;
}
.lvl-tip b { display: block; font-size: 12px; margin-bottom: 2px; }
.lvl-tip span { display: block; color: var(--text-2); font-weight: 600; }
.lvl-badge:hover .lvl-tip,
.lvl-badge:focus .lvl-tip,
.lvl-badge:focus-within .lvl-tip { display: block; }
.xp-panel {
  margin: 12px 0 4px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xp-panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.xp-panel-copy { flex: 1; min-width: 0; }
.xp-level-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.xp-tier { font-size: 12px; color: var(--muted); font-weight: 600; }
.xp-nums {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.xp-bar {
  height: 6px;
  border-radius: 99px;
  background: #1b2230;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border);
}
.xp-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}
.xp-remain { font-size: 11px; color: var(--muted); font-weight: 600; }
.admin-card .xp-panel { margin-top: 12px; }
