/* =========================================================================
   GoodUp — feature layer: navigation groups, wheel, chat, shop, promo cards,
   item stakes, cosmetics frames/banners, admin live board.
   ========================================================================= */

/* ------------------------------------------------------------- navigation */
.nav-group { position: relative; }
.nav-group > .nav-link { display: inline-flex; }
.nav-caret {
  display: inline-block; width: 8px; height: 8px; margin-left: -1px; opacity: .6;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease);
}
.nav-group:hover .nav-caret, .nav-group:focus-within .nav-caret { transform: translateY(2px) rotate(-135deg); }
.nav-drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -8px) scale(.97);
  min-width: 196px; padding: 7px; border-radius: 16px; background: rgba(9, 14, 28, .98);
  border: 1px solid var(--stroke); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 60;
}
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.nav-drop::before { content: ""; position: absolute; inset: -12px 0 auto; height: 14px; }
.nav-drop-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  font-size: 13.5px; font-weight: 650; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.nav-drop-item svg { width: 16px; height: 16px; opacity: .8; }
.nav-drop-item:hover { background: rgba(120, 170, 255, .1); color: #fff; transform: translateX(2px); }
.nav-drop-item.active { color: var(--aqua); background: rgba(34, 211, 238, .1); }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(120, 170, 255, .08); border: 1px solid var(--stroke); }
.lang-btn {
  border: 0; background: none; color: var(--ink-4); font: 800 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s;
}
.lang-btn.on { color: #04121b; background: linear-gradient(135deg, #22d3ee, #8b5cf6); }
.lang-btn:hover { color: #fff; }

/* -------------------------------------------------------------- games hub */
.games-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hub-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border-radius: var(--r-xl); border: 1px solid var(--stroke); overflow: hidden; text-decoration: none;
  background: linear-gradient(165deg, rgba(19, 28, 52, .92), rgba(7, 11, 24, .96));
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
  isolation: isolate;
}
.hub-card:nth-child(1), .hub-card:nth-child(2) { grid-column: span 1; }
.hub-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--accent, #22d3ee) 55%, transparent); box-shadow: 0 40px 80px -46px var(--accent, #22d3ee); }
.hub-glow { position: absolute; inset: -50% -30% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--accent, #22d3ee), transparent 65%); opacity: .18; filter: blur(14px); z-index: -1; transition: opacity .4s, transform .5s var(--ease); }
.hub-card:hover .hub-glow { opacity: .34; transform: scale(1.1); }
.hub-art { display: grid; place-items: center; min-height: 126px; border-radius: 16px; background: radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, .05), rgba(4, 8, 18, .5)); border: 1px solid var(--stroke); }
.hub-art svg { width: 86%; max-height: 128px; }
.hub-tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #22d3ee); opacity: .85; }
.hub-body { display: flex; flex-direction: column; gap: 8px; }
.hub-body p { margin: 0; line-height: 1.5; }
.hub-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.hub-play { font-weight: 800; font-size: 13px; color: var(--accent, #22d3ee); transition: transform .3s var(--ease); }
.hub-card:hover .hub-play { transform: translateX(4px); }
.hub-stats { margin-top: 14px; letter-spacing: .02em; }

@media (max-width: 1080px) { .games-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .games-hub { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- wheel */
.wheel-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.wheel-stage { position: relative; display: grid; place-items: center; padding: 18px; border-radius: var(--r-xl); border: 1px solid var(--stroke);
  background: radial-gradient(120% 120% at 50% 0%, rgba(34, 211, 238, .1), rgba(6, 10, 22, .96) 60%); min-height: 520px; overflow: hidden; }
.wheel-holder { position: relative; width: min(560px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.wheel-rotor { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.wheel-rotor svg { width: 100%; height: 100%; }
.wheel-pointer-new {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0; z-index: 3;
  border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid #fff;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
}
.wheel-center {
  position: absolute; inset: 0; margin: auto; width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 2px; text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(24, 36, 66, .98), rgba(5, 9, 18, .99));
  border: 2px solid rgba(255, 255, 255, .12); box-shadow: inset 0 0 40px rgba(34, 211, 238, .18), 0 16px 40px rgba(0, 0, 0, .55);
}
.wheel-result { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.wheel-holder.win-flash::after {
  content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 2px solid rgba(74, 222, 128, .7);
  animation: winPulse 1.2s var(--ease) 2;
}
@keyframes winPulse { 0% { transform: scale(.94); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.06); opacity: 0; } }

.seg-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg-btn {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px;
  border-radius: 14px; cursor: pointer; color: #eaf3ff; text-align: left;
  border: 1px solid color-mix(in srgb, var(--seg-a) 42%, transparent);
  background: linear-gradient(140deg, color-mix(in srgb, var(--seg-a) 22%, transparent), rgba(8, 13, 26, .9));
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.seg-btn b { font-size: 17px; font-weight: 900; }
.seg-btn span { font-size: 10.5px; color: rgba(234, 243, 255, .6); letter-spacing: .04em; }
.seg-btn:hover { transform: translateY(-2px); border-color: var(--seg-a); }
.seg-btn.on { border-color: var(--seg-a); box-shadow: 0 0 0 1px var(--seg-a), 0 18px 34px -22px var(--seg-a); background: linear-gradient(140deg, color-mix(in srgb, var(--seg-a) 42%, transparent), rgba(8, 13, 26, .92)); }
.seg-check { position: absolute; right: 9px; top: 9px; font-style: normal; font-size: 11px; color: #04121b; background: var(--seg-a); border-radius: 50%; width: 16px; height: 16px; display: grid; place-items: center; font-weight: 900; }

.slip { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.slip-row, .slip-result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(120, 170, 255, .06); border: 1px solid var(--stroke); font-size: 13px; }
.slip-result.won { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .1); }
.slip-results { display: flex; flex-direction: column; gap: 6px; }
.slip-seg { font-weight: 900; color: var(--seg-a); min-width: 34px; }
.slip-amount { margin-left: auto; font-variant-numeric: tabular-nums; }
.slip-x { margin-left: auto; background: none; border: 0; color: var(--ink-4); font-size: 17px; line-height: 1; cursor: pointer; }
.slip-x:hover { color: #fff; }

.wheel-side { gap: 14px; }
.wheel-history { display: flex; flex-wrap: wrap; gap: 5px; }
.wheel-hist {
  min-width: 32px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px;
  font-size: 11.5px; font-weight: 900; color: #04121b; background: var(--seg-a); opacity: .92;
}
.wheel-hist.miss { background: rgba(120, 170, 255, .1); color: var(--ink-4); }

@media (max-width: 1240px) {
  .wheel-shell { grid-template-columns: 320px minmax(0, 1fr); }
  .wheel-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .wheel-shell { grid-template-columns: 1fr; }
  .wheel-stage { min-height: 420px; }
  .wheel-side { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ item stake */
.stake-box { border: 1px dashed rgba(148, 178, 230, .22); border-radius: 14px; padding: 10px 12px; background: rgba(120, 170, 255, .04); }
.stake-head { display: flex; align-items: center; gap: 8px; }
.stake-head .label { margin: 0; }
.stake-open { margin-left: auto; }
.stake-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.stake-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border-radius: 10px; cursor: pointer;
  background: rgba(10, 16, 32, .8); border: 1px solid color-mix(in srgb, var(--rar, #93a4b8) 40%, transparent);
  color: var(--ink-2); font-size: 12px; width: 100%; text-align: left;
}
.stake-chip img { width: 26px; height: 26px; border-radius: 7px; }
.stake-chip b { margin-left: auto; color: var(--rar, #93a4b8); }
.stake-chip i { font-style: normal; color: var(--ink-4); font-size: 15px; }
.stake-chip:hover { border-color: var(--rar, #93a4b8); color: #fff; }
.stake-total { margin-top: 8px; color: var(--ink-3); }
.stake-total b { color: var(--aqua); }

.stake-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.skin-pick {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 7px; border-radius: 12px; cursor: pointer;
  background: rgba(10, 16, 32, .85); border: 1px solid var(--stroke); color: var(--ink-3); text-align: left;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.skin-pick img { width: 100%; aspect-ratio: 1; border-radius: 9px; }
.skin-pick .sp-name { font-size: 11px; font-weight: 750; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-pick .sp-price { font-size: 11px; font-weight: 800; color: var(--aqua); }
.skin-pick .sp-rar { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.skin-pick:hover { transform: translateY(-3px); border-color: var(--stroke-hi); }
.skin-pick.picked { border-color: var(--aqua); box-shadow: 0 0 0 2px rgba(34, 211, 238, .35), 0 18px 34px -24px var(--aqua); }
.skin-pick.picked::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--aqua); color: #04121b; font-size: 11px; font-weight: 900; display: grid; place-items: center; }

/* ----------------------------------------------------------------- chat */
.chat-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.chat-page-main { display: flex; flex-direction: column; min-height: 620px; }
.chat-body.tall { max-height: 54vh; min-height: 420px; padding: 4px 0 0; }
.chat-side { display: flex; flex-direction: column; gap: 14px; }
.chat-rules { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.chat-typing { min-height: 16px; padding: 0 16px 2px; opacity: .8; }
.chat-msg-body { min-width: 0; }
.chat-time { font-size: 10px; color: var(--ink-4); font-weight: 500; margin-left: 6px; }
.chat-role { color: var(--gold); font-size: 10px; letter-spacing: .08em; }
.chat-title {
  font-size: 9.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: 1px 6px; margin-right: 6px; border-radius: 999px; color: #04121b;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
}
.chat-page-main .chat-bubble { max-width: min(520px, 78%); }
.chat-page-main .chat-msg { padding: 2px 0; }
.chat-ava { display: inline-block; border-radius: 50%; flex: none; }
.chat-ava .avatar { width: 30px; height: 30px; }
.admin-chat-hint { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); color: var(--ink-3); }
.admin-chat-hint code { color: var(--gold); font-weight: 800; }
@media (max-width: 980px) { .chat-page { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- promo cards */
.promo-card {
  position: relative; margin-top: 6px; padding: 15px 18px 14px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 160% at 0% 0%, rgba(139, 92, 246, .3), rgba(8, 13, 26, .96) 55%);
  border: 1px solid rgba(167, 139, 250, .45); isolation: isolate; width: min(430px, 100%);
  animation: promoIn .5s var(--ease-bounce);
}
@keyframes promoIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.promo-glow { position: absolute; inset: -60% -30% auto auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #a78bfa, transparent 65%); opacity: .35; filter: blur(10px); z-index: -1; animation: promoGlow 6s ease-in-out infinite; }
@keyframes promoGlow { 50% { transform: translate(-16px, 12px) scale(1.12); opacity: .5; } }
.promo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-badge {
  font: 900 9.5px/1 Inter, system-ui, sans-serif; letter-spacing: .18em; padding: 4px 8px; border-radius: 999px;
  color: #1a0b2e; background: linear-gradient(135deg, #f5d0fe, #a78bfa);
}
.promo-left { font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.promo-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .16) 45%, transparent 58%);
  background-size: 260% 100%; animation: promoSheen 6.5s ease-in-out infinite;
}
@keyframes promoSheen { 0%, 62% { background-position: 140% 0; } 100% { background-position: -40% 0; } }
.promo-code {
  margin: 10px 0 7px; font: 900 27px/1.1 "SFMono-Regular", ui-monospace, Menlo, monospace; letter-spacing: .14em;
  color: #fff; text-shadow: 0 0 26px rgba(167, 139, 250, .95), 0 2px 0 rgba(0, 0, 0, .35); cursor: copy;
  background: linear-gradient(90deg, #f5d0fe, #c4b5fd, #7dd3fc, #f5d0fe); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: promoShine 5s linear infinite;
}
@keyframes promoShine { to { background-position: 300% 0; } }
.promo-reward { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.promo-amount { color: #fbbf24; font-size: 15px; }
.promo-plus { color: var(--ink-4); }
.promo-skin { display: inline-flex; align-items: center; gap: 6px; }
.promo-skin img { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .18); }
.promo-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 10.5px; color: var(--ink-4); flex-wrap: wrap; }
.promo-sep { opacity: .5; }
.promo-activate {
  margin-left: auto; padding: 6px 12px; border-radius: 999px; cursor: pointer; border: 0;
  font: 800 11px/1 Inter, system-ui, sans-serif; color: #1a0b2e;
  background: linear-gradient(135deg, #f5d0fe, #a78bfa); transition: transform .2s var(--ease), box-shadow .2s;
}
.promo-activate:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -14px #a78bfa; }
.promo-activate:disabled { opacity: .6; cursor: default; }
.chat-msg.is-promo { max-width: 100%; }

/* --------------------------------------------------------------- shop */
.shop-balance { margin: -6px 0 14px; font-size: 13px; }
.shop-balance b { color: var(--aqua); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cos-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px;
  background: linear-gradient(165deg, rgba(19, 28, 52, .9), rgba(7, 11, 24, .96));
  border: 1px solid var(--stroke); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.cos-card:hover { transform: translateY(-4px); border-color: var(--stroke-hi); box-shadow: 0 30px 60px -40px rgba(34, 211, 238, .8); }
.cos-card.on { border-color: rgba(74, 222, 128, .5); }
.cos-preview { display: grid; place-items: center; height: 104px; border-radius: 14px; background: rgba(4, 8, 18, .6); border: 1px solid var(--stroke); overflow: hidden; }
.cos-accent { width: 100%; height: 100%; }
.cos-banner { width: 100%; height: 100%; }
.cos-frame { width: 66px; height: 66px; border-radius: 50%; padding: 4px; display: grid; place-items: center; }
.cos-frame img { width: 100%; height: 100%; border-radius: 50%; }
.cos-title { font-size: 15px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #fbbf24, #fb7185); color: #1a0b2e; font-weight: 900; }
.cos-name { font-weight: 800; font-size: 14.5px; }
.cos-meta { min-height: 38px; }
.cos-foot { margin-top: auto; }

/* --------------------------------------------- avatar frames & banners */
.av-frame { position: relative; display: inline-grid; place-items: center; border-radius: 50%; padding: 2px; }
.av-frame > .avatar { width: 100%; height: 100%; }
.av-frame-ring { box-shadow: 0 0 0 2px rgba(148, 178, 230, .55); }
.av-frame-neon { background: conic-gradient(#22d3ee, #8b5cf6, #22d3ee); box-shadow: 0 0 14px rgba(34, 211, 238, .6); animation: spinSlow 8s linear infinite; }
.av-frame-gold { background: conic-gradient(#fbbf24, #fef3c7, #b45309, #fbbf24); box-shadow: 0 0 16px rgba(251, 191, 36, .55); }
.av-frame-ice { background: conic-gradient(#bae6fd, #ffffff, #38bdf8, #bae6fd); box-shadow: 0 0 14px rgba(186, 230, 253, .55); }
.av-frame-fire { background: conic-gradient(#fb923c, #fef08a, #b91c1c, #fb923c); box-shadow: 0 0 18px rgba(251, 146, 60, .6); animation: flicker 3.4s ease-in-out infinite; }
.av-frame-rune { background: conic-gradient(#4ade80, #0f172a, #4ade80); box-shadow: 0 0 16px rgba(74, 222, 128, .5); }
.av-frame-holo { background: conic-gradient(#f0abfc, #7dd3fc, #4ade80, #fde68a, #f0abfc); box-shadow: 0 0 18px rgba(240, 171, 252, .6); animation: spinSlow 6s linear infinite; }
.av-frame-void { background: conic-gradient(#5b21b6, #020617, #a21caf, #020617); box-shadow: 0 0 20px rgba(139, 92, 246, .65); }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes flicker { 50% { opacity: .75; } }

.banner-default { background: radial-gradient(120% 140% at 0% 0%, rgba(34, 211, 238, .35), rgba(8, 13, 26, .95) 62%); }
.banner-aurora { background: linear-gradient(120deg, #042f2e, #0f766e 30%, #22d3ee 55%, #8b5cf6 80%, #042f2e); background-size: 220% 220%; animation: bannerShift 14s ease-in-out infinite; }
.banner-deep { background: radial-gradient(120% 140% at 20% 0%, #0e7490, #052e3f 45%, #041018 80%); }
.banner-sunset { background: linear-gradient(140deg, #4c1d95, #be185d 45%, #f97316 80%, #fde68a); }
.banner-toxic { background: linear-gradient(140deg, #052e16, #65a30d 50%, #a3e635 80%, #052e16); }
.banner-grid { background-color: #05080f; background-image: linear-gradient(rgba(34, 211, 238, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .22) 1px, transparent 1px); background-size: 22px 22px; }
.banner-nebula { background: radial-gradient(60% 80% at 15% 20%, #7c3aed, transparent 60%), radial-gradient(70% 90% at 85% 30%, #db2777, transparent 60%), radial-gradient(90% 120% at 50% 100%, #0891b2, transparent 60%), #05080f; }
.banner-embers { background: radial-gradient(50% 60% at 40% 100%, #ea580c, transparent 65%), radial-gradient(60% 70% at 80% 90%, #b91c1c, transparent 60%), #0a0705; }
.banner-holo { background: linear-gradient(120deg, #f0abfc, #7dd3fc, #4ade80, #fde68a, #f0abfc); background-size: 300% 300%; animation: bannerShift 10s linear infinite; }
.banner-void { background: radial-gradient(60% 80% at 50% 20%, #3b0764, transparent 60%), radial-gradient(80% 100% at 50% 110%, #000, #0b0616); }
@keyframes bannerShift { 50% { background-position: 100% 60%; } }

/* ------------------------------------------------------------ admin live */
.admin-live { display: flex; flex-direction: column; gap: 14px; }
.live-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scroll-behavior: smooth; }
.live-card {
  flex: 0 0 236px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(19, 28, 52, .92), rgba(7, 11, 24, .96)); position: relative; overflow: hidden;
}
.live-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--live, #22d3ee); }
.live-card h5 { margin: 0 0 6px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.live-card .tiny { line-height: 1.6; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live, #22d3ee); box-shadow: 0 0 10px var(--live, #22d3ee); animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 50% { opacity: .35; transform: scale(.75); } }
.live-marquee { display: flex; gap: 8px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.live-marquee-track { display: flex; gap: 8px; animation: liveScroll 40s linear infinite; }
.live-marquee:hover .live-marquee-track { animation-play-state: paused; }
@keyframes liveScroll { to { transform: translateX(-50%); } }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(120, 170, 255, .08); border: 1px solid var(--stroke); font-size: 11.5px; white-space: nowrap; color: var(--ink-3); }
.live-pill b { color: var(--ink); }
.live-pill.win { border-color: rgba(74, 222, 128, .35); color: #bbf7d0; }
.live-pill.lose { opacity: .75; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* ------------------------------------------------------------ misc fixes */
body.chat-open .chat-panel { z-index: 90; }
@media (max-width: 720px) {
  .lang-switch { order: -1; }
  .nav-group .nav-drop { display: none; }
}

/* ------------------------------------------------------ profile extras */
.prof-banner {
  position: absolute; inset: 0 0 auto; height: 88px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  opacity: .85; mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.profile-card { position: relative; overflow: hidden; padding-top: 46px; }
.profile-card .avatar { position: relative; z-index: 2; margin-top: -30px; }
.prof-title {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .06em; color: #1a0b2e;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
}
.prof-bio { margin-top: 8px; max-width: 34ch; line-height: 1.45; color: var(--ink-3); }

.look-section { margin-bottom: 16px; }
.look-section .label { display: block; margin-bottom: 8px; }
.look-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.look-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px;
  background: rgba(10, 16, 32, .8); border: 1px solid var(--stroke); color: var(--ink-3); cursor: pointer;
  min-width: 86px; transition: transform .2s var(--ease), border-color .2s;
}
.look-item:hover { transform: translateY(-2px); border-color: var(--stroke-hi); }
.look-item.on { border-color: var(--aqua); box-shadow: 0 0 0 1px var(--aqua); }
.look-name { font-size: 10.5px; font-weight: 750; color: var(--ink-2); }
.look-accent { width: 44px; height: 26px; border-radius: 8px; }
.look-banner { width: 64px; height: 26px; border-radius: 8px; }
.look-frame { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#22d3ee, #8b5cf6, #22d3ee); }
.look-title { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #fbbf24, #fb7185); color: #1a0b2e; font-weight: 900; }
.look-none { width: 44px; height: 26px; display: grid; place-items: center; color: var(--ink-4); }

/* profile card inside a grid needs a stacking context for the banner */
.profile-card .prof-banner { z-index: 0; }

/* --------------------------------------------------- equipped profile accent */
.chat-nick { font-weight: 750; }
.chat-msg.mine .chat-nick { color: var(--user-accent, var(--aqua)); }
.has-accent .wallet-pill .cur { color: var(--user-accent); }
.has-accent .prof-balance,
.has-accent .profile-card .avatar { box-shadow: 0 0 0 1px color-mix(in srgb, var(--user-accent) 45%, transparent); }
.prof-title {
  display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: #04121b; background: linear-gradient(135deg, var(--user-accent, #22d3ee), var(--user-accent-2, #8b5cf6));
}

/* --------------------------------------------------------------- small bits */
.hub-note { display: grid; gap: 10px; }
.hub-stats {
  padding-top: 10px; border-top: 1px solid var(--stroke); font-variant-numeric: tabular-nums;
}
.stake-count {
  margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  background: rgba(148, 178, 230, .12); font-variant-numeric: tabular-nums;
}
.drop-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 10px currentColor; }
.system-bubble {
  background: linear-gradient(90deg, rgba(251, 191, 36, .12), rgba(139, 92, 246, .1));
  border: 1px solid rgba(251, 191, 36, .22);
}

/* items that can't be staked (worth more than the whole bet) */
.skin-pick.too-big { opacity: .38; filter: grayscale(.6); cursor: not-allowed; }
.skin-pick.too-big:hover { transform: none; border-color: var(--stroke); box-shadow: none; }
.skin-pick.too-big .sp-rar { color: var(--red) !important; }
