:root {
  --bg: #09090b;
  --bar: #0e0d11;
  --panel: #131217;
  --panel-2: #1b1a20;
  --line: #26242c;
  --text: #edecf2;
  --muted: #8c8998;
  --purple: #9a5cf5;
  --purple-hi: #b383ff;
  --radius: 8px;
  --gap: 16px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-logo: "Lilita One", "Arial Black", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-y: scroll; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--purple-hi); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 28px;
  background: rgba(14, 13, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: 22px; text-decoration: none; color: var(--text); }
.brand img { display: block; height: 38px; width: auto; }
.brand-name { font-family: var(--font-logo); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: 0.3px; }
.brand-name .pot, .loader-name .pot { font-size: 1em; }
.pot { color: var(--purple); }
/* wordmark: chunky two-tone logo with a hard purple shadow */
.brand-name, .loader-name { letter-spacing: 0.6px; filter: drop-shadow(0 2px 0 #3b2270) drop-shadow(0 0 14px rgba(154, 92, 245, 0.28)); }
.brand-name > span, .brand-name, .loader-name { -webkit-text-fill-color: transparent; background: linear-gradient(180deg, #ffffff 10%, #d8c8f7 100%); -webkit-background-clip: text; background-clip: text; }
.brand-name .pot, .loader-name .pot { -webkit-text-fill-color: transparent; background: linear-gradient(180deg, #c8a0ff 5%, #8a4df0 100%); -webkit-background-clip: text; background-clip: text; margin-left: 1px; }

.main-nav { display: flex; align-self: stretch; gap: 6px; }
.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-btn:hover { color: var(--text); }
.nav-btn.is-active { color: var(--text); }
.nav-btn:not(.is-active) .ico, .tab:not(.is-active) .ico { opacity: 0.5; }
.nav-btn.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--purple);
}

.balance {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.balance-gem { display: block; width: 18px; height: 18px; object-fit: contain; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--panel-2);
  color: #d4d1df;
  transition: background 0.15s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: #28262f; }
.icon-btn--accent { background: var(--purple); color: #fff; }
.icon-btn--accent:hover { background: var(--purple-hi); }

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3a3743;
  background: var(--panel);
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.avatar { padding: 0; border-color: #4a3a6e; background: #1a1426; overflow: hidden; }
.avatar:hover { border-color: var(--purple-hi); }

/* ---------- page ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 36px 28px 70px; }

/* hero */
.promos { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 250px;
  padding: 36px 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(520px 320px at 88% 50%, rgba(154, 92, 245, 0.32), transparent 70%),
    linear-gradient(120deg, #121116 40%, #1a1128 100%);
}
.hero-text { position: relative; z-index: 1; max-width: 430px; }
.hero h1 { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 46px; line-height: 1; }
.hero p { margin: 0 0 24px; color: #b9b5c8; font-size: 15px; }
.hero-art { position: absolute; right: 56px; top: 0; bottom: 0; display: flex; align-items: center; }
.hero-art img { display: block; height: 200px; width: auto; filter: drop-shadow(0 18px 36px rgba(154, 92, 245, 0.4)); }

.side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 32px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(154, 92, 245, 0.26), transparent 70%),
    linear-gradient(160deg, #15131b, #101014);
}
.side-mark {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 190px;
  height: 190px;
  object-fit: contain;
  opacity: 0.16;
  transform: rotate(-12deg);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.side-stage { position: relative; z-index: 1; display: grid; flex: 1; align-content: center; }
.side-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0s 0.45s;
}
.side-slide.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.side-eyebrow { margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-hi); }
.side h2 { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.05; }
.side p { margin: 0; color: var(--muted); }
.side p b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.side-bar { width: 100%; max-width: 280px; height: 10px; margin: 2px 0 12px; overflow: hidden; border-radius: 5px; background: #26242c; }
.side-bar i { display: block; width: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7c47d9, #b080ff, #7c47d9); background-size: 200% 100%; animation: side-shine 2.4s linear infinite; transition: width 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes side-shine { to { background-position: -200% 0; } }

.side-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.side-dots { display: flex; gap: 6px; }
.side-dots button { position: relative; width: 26px; height: 18px; padding: 0; }
.side-dots button i { position: absolute; left: 0; right: 0; top: 7px; height: 4px; overflow: hidden; border-radius: 2px; background: #2f2c38; }
.side-dots button i::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--purple-hi); transform: scaleX(0); transform-origin: left; }
.side-dots button.is-on i::after { transform: scaleX(1); animation: side-fill 7.5s linear; }
.side.paused .side-dots button.is-on i::after { animation: none; }
@keyframes side-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-hi); }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(154, 92, 245, 0.45);
  border-radius: 999px;
  background: rgba(154, 92, 245, 0.12);
  color: var(--purple-hi);
  font-size: 12px;
  font-weight: 600;
}
.soon i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple-hi); }

/* toolbar */
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); margin: 40px 0 0; border-bottom: 1px solid var(--line); }

.tabs { position: relative; display: flex; gap: 6px; }
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}

.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }


.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  height: 38px;
  margin-bottom: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  transition: border-color 0.15s;
}
.search:focus-within { border-color: var(--purple); }
.search svg { width: 15px; height: 15px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }

/* rows */
.row { margin-top: 36px; }
.row[hidden] { display: none; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.row-title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1; }
.row-title .ico { width: 24px; height: 24px; }
.row-ctrl { display: flex; align-items: center; gap: 8px; }

.pill {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: #d4d1df;
  transition: border-color 0.15s, color 0.15s;
}
.pill:hover { border-color: var(--purple); color: var(--text); }

.arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel-2);
  transition: background 0.15s, opacity 0.15s;
}
.arrow svg { width: 14px; height: 14px; }
.arrow:hover:not(:disabled) { background: #28262f; }
.arrow:disabled { opacity: 0.3; cursor: default; }

.track {
  --cols: 5;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.is-grid .track { flex-wrap: wrap; overflow: visible; }
.is-grid .arrow, .is-grid .view-all { display: none; }

/* cards */
.card {
  position: relative;
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%) 0 0 / 56px 56px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%) 0 0 / 56px 56px,
    radial-gradient(130% 100% at 15% 0%, var(--c1), transparent 65%),
    var(--c2);
}
.card[hidden] { display: none; }
.card-initial {
  position: absolute;
  top: -8px;
  right: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 140px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.card-name { position: relative; font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.05; }

.empty { margin: 60px 0 0; text-align: center; color: var(--muted); }

/* floating buttons */
.float {
  position: fixed;
  bottom: 24px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: background 0.15s;
}
.float svg { width: 20px; height: 20px; }
.float:hover { background: var(--purple-hi); }
.float--chat { left: 0; width: 44px; border-radius: 0 12px 12px 0; }
.float--help { right: 24px; border-radius: 50%; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .track { --cols: 4; } }

@media (max-width: 960px) {
  .track { --cols: 3; }
  .promos { grid-template-columns: 1fr; }
  .hero-art img { height: 150px; }
  .toolbar { flex-direction: column; align-items: stretch; border-bottom: 0; }
  .tabs { overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .search { width: 100%; height: 44px; margin: 12px 0 0; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 14px; }
  .brand { margin-right: 4px; }
  .nav-btn { padding: 0 10px; }
  .nav-btn.is-active::after { left: 10px; right: 10px; }
  .balance, .topbar-right .icon-btn:not(.icon-btn--accent) { display: none; }
  .page { padding: 22px 14px 120px; }
  .hero { padding: 28px 24px; min-height: 0; }
  .hero h1 { font-size: 38px; }
  .hero-art { display: none; }
  .track { --cols: 2; --gap: 10px; }
  .card { min-height: 170px; padding: 14px; }
  .card-name { font-size: 21px; }
  .row-title { font-size: 20px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 26px; }
  .main-nav .nav-btn:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- icons ---------- */
.ico { display: block; flex: none; width: 18px; height: 18px; object-fit: contain; transition: opacity 0.2s; }
.ico-home { fill: var(--purple); stroke: none; }
.tab:not(.is-active) .ico-home { opacity: 0.5; }

/* ---------- layout stability ---------- */
#rows { min-height: 640px; }

/* ---------- sliding tab underline ---------- */
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--purple); pointer-events: none; }
.tab-ink.ready { transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.2, 1), width 0.35s cubic-bezier(0.3, 0.8, 0.2, 1); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes breathe { from { opacity: 0.55; transform: scale(1); } to { opacity: 1; transform: scale(1.12); } }
@keyframes bubble {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(var(--dx, 6px), -95px) scale(1.1); }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(179, 131, 255, 0.7); } 70%, 100% { box-shadow: 0 0 0 7px rgba(179, 131, 255, 0); } }

.row.enter .row-head { animation: rise 0.35s ease both; }
.row.enter .card { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 55ms + 60ms); }

.hero-text > * { animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: 0.1s; }
.hero-text > :nth-child(3) { animation-delay: 0.2s; }

.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  width: 420px;
  height: 420px;
  margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 92, 245, 0.38), transparent 68%);
  animation: breathe 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.pot-wrap { position: relative; animation: bob 5s ease-in-out infinite alternate; }

.bub {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8dff3a;
  box-shadow: 0 0 10px rgba(141, 255, 58, 0.8);
  opacity: 0;
  animation: bubble 3.6s ease-in infinite;
}
.b1 { left: 40%; top: 38%; --dx: -8px; }
.b2 { left: 54%; top: 34%; --dx: 10px; width: 6px; height: 6px; animation-delay: 1.1s; }
.b3 { left: 63%; top: 40%; --dx: 14px; width: 5px; height: 5px; animation-delay: 2.2s; }
.b4 { left: 47%; top: 40%; --dx: -3px; width: 7px; height: 7px; animation-delay: 0.6s; animation-duration: 4.2s; }

.side .soon i { animation: ping 2s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ---------- loading screen ---------- */
html.is-loading { overflow: hidden; }

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(520px 380px at 50% 44%, rgba(154, 92, 245, 0.22), transparent 70%),
    var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s;
}
#loader.is-done { opacity: 0; visibility: hidden; }
.loader-art { display: block; width: min(280px, 62vw); height: auto; }
.loader-name { margin-top: 4px; font-family: var(--font-logo); font-weight: 400; font-size: 40px; line-height: 1; }
.loader-bar { width: 150px; height: 3px; margin-top: 20px; overflow: hidden; border-radius: 2px; background: var(--panel-2); }
.loader-bar i { display: block; height: 100%; background: var(--purple); transform-origin: left; animation: load-fill 1.9s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes load-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* hold the page animations until the loader is gone */
.is-loading .hero-text > *,
.is-loading .hero::before,
.is-loading .pot-wrap,
.is-loading .bub,
.is-loading .side .soon i { animation-play-state: paused; }

/* ---------- game cover cards ---------- */
.card.card--cover {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}
.cover {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #141218;
}
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 10 / 7; -webkit-user-drag: none; user-select: none; }

/* ---------- blank "coming soon" cards ---------- */
.card.card--blank {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 0;
  padding: 0;
  aspect-ratio: 10 / 7;
  border: 1px solid rgba(154, 92, 245, 0.3);
  border-radius: 10px;
  background: linear-gradient(160deg, #54309c, #27143f);
  transition: border-color 0.2s ease, filter 0.2s ease;
}
.card--blank:hover { border-color: var(--purple); filter: brightness(1.12); }

/* keep vertical page scrolling working when the pointer is over a row */
.track { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.cover img { pointer-events: none; }

/* ---------- loading screen background ---------- */
#loader {
  background:
    radial-gradient(ellipse 55% 42% at 50% 45%, rgba(154, 92, 245, 0.3), transparent 70%),
    radial-gradient(ellipse 85% 40% at 50% 108%, rgba(109, 53, 196, 0.38), transparent 70%),
    #09090b;
}
#loader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%) 0 0 / 72px 72px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 62%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 62%);
}
#loader > * { position: relative; }
.loader-art { filter: drop-shadow(0 22px 40px rgba(154, 92, 245, 0.35)); }

/* ---------- page size ---------- */
.page { zoom: 0.93; }

/* ---------- custom scrollbar ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0c0b10; border-left: 1px solid var(--line); }
::-webkit-scrollbar-thumb {
  border: 3px solid #0c0b10;
  border-radius: 999px;
  background: linear-gradient(180deg, #8452dc, #5a35a0) padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a06af7, #7a46c8) padding-box; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: #0c0b10; }

@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #6d3fc0 #0c0b10; }
}

/* ---------- game name tag on the cover ---------- */
.game-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(12, 10, 16, 0.78);
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.game-tag img { display: block; width: 20px; height: 20px; object-fit: contain; }

/* ---------- one font for names, headings and tabs ---------- */
.row-title { font-family: var(--font-logo); font-weight: 400; letter-spacing: 0.2px; }
.tab { font-family: var(--font-logo); font-weight: 400; font-size: 15px; letter-spacing: 0.2px; }

/* linked game card */
a.card--cover { color: inherit; text-decoration: none; cursor: pointer; }
a.card--cover:focus-visible { outline: 2px solid var(--purple-hi); outline-offset: 4px; border-radius: 10px; }

/* ================= polish & motion ================= */
.row.enter .card { animation-fill-mode: backwards; }

/* press feedback */
.btn:active, .nav-btn:active, .pill:active, .tab:active, .icon-btn:active, .float:active, .arrow:not(:disabled):active { transform: scale(0.96); }

/* hover lift */
.card.card--blank { transition: border-color 0.2s ease, filter 0.2s ease, transform 0.25s ease; }

/* icons nudge on hover */
.ico { transition: opacity 0.2s, transform 0.2s; }
.tab:hover .ico, .nav-btn:hover .ico { transform: translateY(-2px) scale(1.08); }

/* hero spotlight */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 70%) var(--my, 50%), rgba(179, 131, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.hero:hover::after { opacity: 1; }

/* balance */
@keyframes gem-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes gem-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
.balance-gem { animation: gem-bob 3.6s ease-in-out infinite; }
.balance-amount { transition: color 0.3s ease; }
.balance.bump .balance-gem { animation: gem-pop 0.5s ease; }
.balance.up .balance-amount { color: #8df0a8; }
.balance.down .balance-amount { color: #ff8199; }

/* floating buttons */
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
a.float { text-decoration: none; animation: pop-in 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) 0.8s backwards; }
.float--help:hover { transform: scale(1.08); }
.float--chat:hover { padding-left: 6px; width: 50px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 28px; padding: 46px 0 26px; border-top: 1px solid var(--line); background: #0d0c10; }
.sf-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.sf-top { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 32px; }
.sf-brand .brand { margin-right: 0; width: fit-content; }
.sf-social { display: flex; gap: 10px; margin-top: 22px; }
a.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #18171d; color: #7f7b8d; transition: color 0.2s, background 0.2s, transform 0.2s; }
a.social svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
a.social:hover { color: #fff; background: #2a1f45; transform: translateY(-3px); }
.sf-col h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.sf-col a { display: block; width: fit-content; padding: 5px 0; color: var(--muted); font-size: 14px; text-decoration: none; transition: color 0.2s, transform 0.2s; }
.sf-col a:hover { color: var(--text); transform: translateX(4px); }
.sf-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: #615e6f; font-size: 13px; }
.sf-copy, .sf-legal { margin: 0; }
.sf-right { display: flex; align-items: flex-start; gap: 16px; max-width: 560px; }
.sf-legal { text-align: right; }
.sf-age { flex: none; display: grid; place-items: center; width: 40px; height: 32px; border-radius: 8px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; }

@media (max-width: 860px) {
  .sf-top { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-bottom { flex-direction: column; }
  .sf-right { max-width: none; }
  .sf-legal { text-align: left; }
}
@media (max-width: 480px) {
  .sf-top { grid-template-columns: 1fr; }
}

/* ================= loading screen v2 ================= */
#loader {
  clip-path: circle(150% at 50% 44%);
  transition: clip-path 0.75s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.75s;
}
#loader.is-done { opacity: 1; clip-path: circle(0% at 50% 44%); visibility: hidden; }

.loader-art { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) backwards; transition: transform 0.5s ease, opacity 0.45s ease; }
#loader.is-done .loader-art { transform: scale(1.18); opacity: 0; }
.loader-name { animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.15s backwards; }

.loader-bar { width: 220px; animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.3s backwards; }
.loader-bar i { position: relative; overflow: hidden; animation: none; transform: scaleX(var(--p, 0)); }
.loader-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-100%);
  animation: bar-shine 1.3s linear infinite;
}
@keyframes bar-shine { to { transform: translateX(100%); } }

.loader-meta {
  display: flex;
  justify-content: space-between;
  width: 220px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.4s backwards;
}
.loader-meta b { font-weight: 600; color: var(--purple-hi); font-variant-numeric: tabular-nums; }

/* slow rising sparks behind the cauldron */
#loader > .loader-dots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.loader-dots i {
  position: absolute;
  left: var(--x);
  bottom: -12px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #b080ff;
  box-shadow: 0 0 10px rgba(176, 128, 255, 0.7);
  opacity: 0;
  animation: dot-rise var(--t) linear var(--dl) infinite;
}
.loader-dots i:nth-child(3n) { background: #8dff3a; box-shadow: 0 0 10px rgba(141, 255, 58, 0.6); }
@keyframes dot-rise {
  0% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(var(--dx), -105vh); }
}

/* ================= loading screen v3 ================= */
#loader { background: radial-gradient(ellipse 110% 85% at 50% 46%, #150d26 0%, #09090b 72%); }

/* vignette over the edges */
#loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 46%, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
}

#loader > .loader-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* slow drifting colour blobs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift var(--t, 15s) ease-in-out infinite alternate;
}
.o1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: #6d35c4; opacity: 0.5; --t: 14s; --mx: 10vmax; --my: 7vmax; }
.o2 { width: 42vmax; height: 42vmax; right: -12vmax; bottom: -18vmax; background: #9a5cf5; opacity: 0.42; --t: 18s; --mx: -9vmax; --my: -6vmax; }
.o3 { width: 20vmax; height: 20vmax; left: 62%; top: 6%; background: #4aa52f; opacity: 0.16; --t: 12s; --mx: -6vmax; --my: 8vmax; }
@keyframes orb-drift { to { transform: translate(var(--mx), var(--my)) scale(1.18); } }

/* light rays turning slowly behind the cauldron */
.rays {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 160vmax;
  height: 160vmax;
  margin: -80vmax 0 0 -80vmax;
  background: repeating-conic-gradient(from 0deg, rgba(176, 128, 255, 0.11) 0deg 5deg, transparent 5deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 52%);
  mask-image: radial-gradient(circle, #000 0, transparent 52%);
  animation: rays-spin 70s linear infinite;
}
@keyframes rays-spin { to { transform: rotate(360deg); } }

/* status line + percentage */
.loader-quip {
  min-height: 26px;
  margin-top: 12px;
  max-width: 90vw;
  text-align: center;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 19px;
  line-height: 26px;
  letter-spacing: 0.4px;
  color: #d9ccf0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.35s backwards;
}
.loader-quip.swap { opacity: 0; transform: translateY(6px); }
.loader-quip::after { content: "..."; display: inline-block; width: 1.1em; text-align: left; overflow: hidden; vertical-align: bottom; animation: quip-dots 1.2s steps(4) infinite; }
@keyframes quip-dots { from { width: 0; } to { width: 1.1em; } }

.loader-bar { width: 240px; margin-top: 14px; }
.loader-meta { justify-content: center; width: 240px; margin-top: 8px; }
.loader-meta b { font-family: var(--font-logo); font-weight: 400; font-size: 15px; letter-spacing: 0.4px; }
.loader-quip.done::after { content: none; }

a.nav-btn { text-decoration: none; }

/* ---------- rank toast ---------- */
.rank-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 14px;
  border: 1px solid var(--purple);
  border-radius: 14px;
  background: linear-gradient(160deg, #2c1a50, #17121f);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(154, 92, 245, 0.35);
  transform: translateX(-50%);
  animation: toast-in 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.rank-toast.out { animation: toast-out 0.5s ease forwards; }
.rank-toast img { display: block; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.rank-toast strong { display: block; font-family: var(--font-logo); font-weight: 400; font-size: 20px; line-height: 1.1; }
.rank-toast span { display: block; font-size: 13px; color: #cfc4e6; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -24px) scale(0.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -16px); } }



/* ---------- live statistics (game pages) ---------- */
.bj-foot, .dc-foot, .tw-foot, .mn-foot, .kn-foot, .lm-foot { position: relative; }
.st-btn { position: absolute; left: 16px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border-radius: 8px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.st-btn svg { width: 20px; height: 20px; fill: currentColor; }
.st-btn:hover, .st-btn[aria-expanded="true"] { color: #fff; background: #25222d; }

.st-win {
  position: fixed;
  z-index: 70;
  left: 24px;
  top: 120px;
  width: 340px;
  max-width: calc(100vw - 16px);
  overflow: hidden;
  border: 1px solid #34303f;
  border-radius: 14px;
  background: #121116;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(154, 92, 245, 0.12);
  animation: st-in 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.st-win.drag { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(154, 92, 245, 0.45); }
@keyframes st-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }

.st-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); background: #17151c; cursor: grab; user-select: none; touch-action: none; }
.st-win.drag .st-head { cursor: grabbing; }
.st-head > svg { width: 18px; height: 18px; fill: var(--purple-hi); }
.st-head h2 { flex: 1; margin: 0; font-family: var(--font-logo); font-weight: 400; font-size: 19px; line-height: 1; }
.st-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.st-ico:hover { color: #fff; background: #2b2933; }
.st-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.st-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.st-select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font: 600 14px var(--font-body); cursor: pointer; }
.st-select:focus-visible { outline: 2px solid var(--purple-hi); }

.st-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; background: #0f0e12; }
.st-grid > div { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.st-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.st-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.st-grid span { font-size: 12px; font-weight: 600; color: var(--muted); }
.st-grid b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-win-n { color: #8df0a8; }
.st-loss-n { color: #ff8199; }
.st-money { display: inline-flex; align-items: center; gap: 6px; }
.st-money img { width: 15px; height: 15px; object-fit: contain; }
.st-money i { font-style: normal; }
.st-money.up { color: #8df0a8; }
.st-money.down { color: #ff8199; }

.st-chart { position: relative; height: 190px; padding: 12px 12px 8px; border: 1px solid var(--line); border-radius: 10px; background: #0f0e12; }
.st-now { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-svg { position: absolute; left: 12px; right: 12px; top: 46px; bottom: 12px; width: calc(100% - 24px); height: calc(100% - 58px); overflow: visible; }
.st-zero { stroke: #3a3644; stroke-width: 1; stroke-dasharray: 4 4; }
.st-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-line.up { stroke: #5ad98a; }
.st-line.down { stroke: #ff6b87; }
.st-area { stroke: none; }
.st-area.up { fill: rgba(90, 217, 138, 0.14); }
.st-area.down { fill: rgba(255, 107, 135, 0.14); }
.st-empty { position: absolute; left: 0; right: 0; bottom: 42px; text-align: center; font-size: 12px; color: #6c6879; }

html.no-loader #loader { display: none; }

/* ---------- per-game settings: turbo + mute ---------- */
.fx-btn { position: absolute; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border-radius: 8px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.fx-btn svg { width: 20px; height: 20px; fill: currentColor; }
.fx-btn svg .x { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fx-gear { right: 16px; }
.fx-mute { right: 58px; }
.fx-btn:hover, .fx-gear[aria-expanded="true"] { color: #fff; background: #25222d; }
.fx-mute.is-off { color: #ef4444; }
.fx-gear.is-turbo { color: var(--purple-hi); }
.fx-pop { position: absolute; right: 16px; bottom: calc(100% - 4px); z-index: 30; width: 270px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #17151c; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.fx-pop[hidden] { display: none; }
.fx-title { padding: 4px 8px 8px; font-family: var(--font-logo); font-size: 17px; letter-spacing: 0.02em; }
.fx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 8px; border-radius: 8px; text-align: left; transition: background 0.15s; }
.fx-row:hover { background: #211e29; }
.fx-txt { display: grid; gap: 2px; }
.fx-txt b { font-size: 14px; font-weight: 600; }
.fx-txt i { font-style: normal; font-size: 12px; color: var(--muted); }
.fx-sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: #2b2933; transition: background 0.2s; }
.fx-sw span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.fx-row.on .fx-sw { background: var(--purple); }
.fx-row.on .fx-sw span { transform: translateX(16px); }

/* ---------- chat panel: slides out over the page, never moves anything ---------- */
.float--chat { border: 0; cursor: pointer; transition: background 0.15s, left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.15s, padding 0.15s; }
.chat-open .float--chat { left: var(--chat-w); }
:root { --chat-w: 340px; }
.chat {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--chat-w);
  border-right: 1px solid var(--line);
  background: #100f13;
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.55);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s;
}
.chat-open .chat { transform: none; visibility: visible; transition-delay: 0s; }
.chat-head { display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); }
.chat-title { margin: 0; font-family: var(--font-logo); font-weight: 400; font-size: 24px; line-height: 1; }
.chat-room { padding: 4px 10px; border-radius: 999px; background: #211e29; color: var(--purple-hi); font-size: 12px; font-weight: 600; }
.chat-x { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 8px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.chat-x:hover { color: #fff; background: #25222d; }
.chat-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat-list { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; overflow-y: auto; }
.chat-empty { margin: auto; display: grid; justify-items: center; gap: 6px; max-width: 230px; text-align: center; color: var(--muted); }
.chat-empty b { color: var(--text); font-size: 15px; }
.chat-empty p { margin: 0; font-size: 13px; line-height: 1.45; }
.chat-empty-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 12px; background: #1b1a20; color: var(--purple-hi); }
.chat-empty-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.chat-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.chat-input { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.chat-input:focus-within { border-color: var(--purple); }
.chat-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 14px var(--font-body); color: var(--text); }
.chat-input input::placeholder { color: #6f6c7c; }
.chat-send { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--purple); color: #fff; }
.chat-send:disabled { opacity: 0.4; cursor: default; }
.chat-send svg { width: 17px; height: 17px; fill: currentColor; }
.chat-rules { margin: 10px 2px 0; font-size: 11.5px; color: #6f6c7c; }

/* messages (used once the real chat is connected) */
.cm { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; }
.cm:hover { background: #17161c; }
.cm-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e9e7ef; }
.cm-body { min-width: 0; }
.cm-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.cm-name img { width: 14px; height: 14px; }
.cm-time { font-size: 11px; font-weight: 500; color: #6f6c7c; }
.cm-text { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }

@media (max-width: 560px) { :root { --chat-w: min(340px, calc(100vw - 56px)); } }
.chat-open .float--chat { z-index: 41; }

/* top bar content slides over with the chat panel */
.topbar-left { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chat-open .topbar-left { transform: translateX(var(--chat-w)); }
@media (max-width: 900px) { .chat-open .topbar-left { transform: none; } }

/* the chat button rides out with the panel and is gone once the chat is open; it returns when the chat closes */
.float--chat { opacity: 1; transition: background 0.15s, left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.15s, padding 0.15s, opacity 0.3s ease, visibility 0s; }
.chat-open .float--chat { opacity: 0; visibility: hidden; pointer-events: none; transition: background 0.15s, left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.15s, padding 0.15s, opacity 0.3s ease, visibility 0s linear 0.3s; }

/* ---------- account: top bar buttons, profile menu and dialogs ---------- */
.acct { position: relative; display: flex; align-items: center; gap: 10px; }
.acct-out .topbar-right .icon-btn { display: none; }
.ac-btn { height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.ac-login { border: 1px solid #3a3743; color: var(--text); }
.ac-login:hover { background: #211f27; border-color: #55515f; }
.ac-signup { background: var(--purple); color: #fff; }
.ac-signup:hover { background: var(--purple-hi); }

.acm { position: absolute; top: calc(100% + 12px); right: 0; z-index: 50; width: 280px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #17151c; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); animation: acm-in 0.16s ease-out; }
.acm[hidden] { display: none; }
@keyframes acm-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.acm-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.am-av { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.acm-id { display: grid; gap: 3px; min-width: 0; }
.acm-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.acm-id span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.acm-id img { width: 16px; height: 16px; }
.acm-wag { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; padding: 10px 12px; border-radius: 10px; background: #1e1c25; font-size: 12px; color: var(--muted); }
.acm-wag b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.acm-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 600; text-align: left; transition: background 0.15s; }
.acm-item:hover { background: #24212c; }
.acm-item svg { width: 18px; height: 18px; color: var(--muted); }
.acm-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.acm-out, .acm-out svg { color: #ef4444; }
.acm-out:hover { background: rgba(239, 68, 68, 0.12); }

.am { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(6, 5, 9, 0.66); backdrop-filter: blur(3px); animation: am-fade 0.16s ease-out; }
.am.out { opacity: 0; transition: opacity 0.16s; }
@keyframes am-fade { from { opacity: 0; } }
.am-box { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: #131217; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: am-pop 0.2s cubic-bezier(0.2, 0.8, 0.3, 1.1); }
@keyframes am-pop { from { transform: translateY(10px) scale(0.97); opacity: 0; } }
.am-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.am-head h2 { margin: 0; font-family: var(--font-logo); font-weight: 400; font-size: 24px; line-height: 1; }
.am-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); transition: background 0.15s, color 0.15s; }
.am-x:hover { background: #25222d; color: #fff; }
.am-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.am-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px 20px 22px; }
.am-text { margin: 0 0 4px; font-size: 14px; line-height: 1.5; color: #bdb9c9; }
.am-fine { margin: 0; font-size: 12px; line-height: 1.45; color: #6f6c7c; }
.am-primary { height: 46px; border-radius: 10px; background: var(--purple); box-shadow: 0 4px 0 #6d3fc0; color: #fff; font-weight: 700; font-size: 14px; transition: background 0.15s, transform 0.1s, box-shadow 0.1s; }
.am-primary:hover:not(:disabled) { background: var(--purple-hi); }
.am-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #6d3fc0; }
.am-primary:disabled { opacity: 0.45; cursor: default; }
.am-opt { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.am-opt:disabled { opacity: 0.55; cursor: default; }
.am-opt i { font-style: normal; font-size: 12px; color: var(--muted); }
.am-or { display: flex; align-items: center; gap: 12px; color: #6f6c7c; font-size: 12px; }
.am-or::before, .am-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.am-sep { height: 1px; background: var(--line); }
.am-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 4px 0; text-align: left; }
.am-rt { display: grid; gap: 3px; }
.am-rt b { font-size: 14px; }
.am-rt i { font-style: normal; font-size: 12px; color: var(--muted); }
.am-sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: #2b2933; transition: background 0.2s; }
.am-sw span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.am-row.on .am-sw { background: var(--purple); }
.am-row.on .am-sw span { transform: translateX(16px); }
.am-danger { height: 44px; border: 1px solid rgba(239, 68, 68, 0.5); border-radius: 10px; color: #ef4444; font-weight: 700; font-size: 14px; transition: background 0.15s; }
.am-danger:hover { background: rgba(239, 68, 68, 0.12); }

.am-me { display: flex; align-items: center; gap: 14px; }
.am-me .am-av { width: 56px; height: 56px; }
.am-me-t { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.am-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.am-name { display: flex; gap: 8px; }
.am-name input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); outline: 0; font-weight: 600; font-size: 15px; }
.am-name input:focus { border-color: var(--purple); }
.am-save { height: 40px; padding: 0 16px; border-radius: 8px; background: var(--purple); color: #fff; font-weight: 700; font-size: 13px; }
.am-save:disabled { opacity: 0.4; cursor: default; }
.am-hint { margin: 0; font-size: 12px; color: #6f6c7c; }
.am-hint.bad { color: #ff8199; }
.am-hint.ok { color: #8df0a8; }
.am-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.am-stat { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: #1b1a20; }
.am-stat span { font-size: 11px; color: var(--muted); }
.am-stat b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-variant-numeric: tabular-nums; }
.am-stat img { width: 18px; height: 18px; }
.am-prog { display: grid; gap: 8px; }
.am-prog-t { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.am-bar { height: 8px; overflow: hidden; border-radius: 4px; background: #25232d; }
.am-bar i { display: block; height: 100%; border-radius: 4px; background: var(--purple); }

@media (max-width: 560px) { .ac-btn { padding: 0 13px; } .acct { gap: 6px; } }

.acct-note { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; max-width: 1180px; margin: 20px auto -8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #17151c; font-size: 14px; color: #bdb9c9; }
.acct-note[hidden] { display: none; }
.acct-note button { height: 34px; padding: 0 16px; border-radius: 8px; background: var(--purple); color: #fff; font-weight: 700; font-size: 13px; }
.acct-note button:hover { background: var(--purple-hi); }
@media (max-width: 1230px) { .acct-note { margin-left: 12px; margin-right: 12px; } }
.am-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 6px 0 0; }
.am-form input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: #fff; font: inherit; font-size: 14px; outline: none; transition: border-color 0.15s; }
.am-form input:focus { border-color: var(--purple); }
.am-form input::placeholder { color: #6f6c7c; }
#am-code { letter-spacing: 6px; text-align: center; font-size: 18px; }
.am-err { min-height: 18px; margin: 0; font-size: 13px; color: #ff6b7a; }
.am-err:empty { min-height: 0; }
.am-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.am-links button { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.am-links button:hover:not(:disabled) { color: #fff; }
.am-links button:disabled { opacity: 0.5; cursor: default; text-decoration: none; }
.am-guest { width: 100%; }
.balance { cursor: pointer; user-select: none; }
.am-conv { display: flex; align-items: flex-end; gap: 10px; }
.am-cf { flex: 1; display: grid; gap: 6px; min-width: 0; }
.am-cf > span { font-size: 12px; color: var(--muted); }
.am-cf input, .am-cf b { height: 46px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: #fff; font: inherit; font-size: 15px; font-weight: 600; outline: none; width: 100%; box-sizing: border-box; }
.am-cf input:focus { border-color: var(--purple); }
.am-eq { height: 46px; display: flex; align-items: center; color: var(--muted); }
.am-addr { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.am-addr code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; color: #d8d4e6; }
.am-copy { height: 30px; padding: 0 12px; border-radius: 8px; background: #2a2733; font-size: 12px; font-weight: 700; }
.am-copy:hover { background: #343040; }
.srv-lock { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: rgba(10, 9, 14, 0.86); backdrop-filter: blur(4px); }
.srv-lock-box { max-width: 380px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #17151c; text-align: center; }
.srv-lock-box h2 { margin: 0 0 8px; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 26px; }
.srv-lock-box p { margin: 0 0 18px; color: #bdb9c9; font-size: 14px; line-height: 1.5; }
.srv-toast { position: fixed; left: 50%; bottom: 28px; z-index: 950; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid #5a2a38; border-radius: 10px; background: #2a1219; color: #ff9aae; font-size: 14px; }


/* ---------- deposit and withdraw windows ---------- */
.dp-box { width: min(460px, 100%); }
.dp-top { display: flex; align-items: center; gap: 12px; }
.dp-coin { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #5a2fb5, #9a5cf5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.dp-coin svg { width: 22px; height: 22px; fill: #fff; }
.dp-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dp-name b { font-size: 15px; }
.dp-name span { font-size: 12px; color: var(--muted); }
.dp-net { padding: 4px 10px; border-radius: 999px; background: rgba(141, 240, 168, 0.12); color: #8df0a8; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.dp-net.test { background: rgba(255, 190, 80, 0.14); color: #ffbe50; }
.dp-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 190, 80, 0.1); color: #ffcf7a; font-size: 12px; line-height: 1.4; }
.dp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dp-stats div { display: grid; gap: 5px; padding: 11px 12px; border-radius: 10px; background: #1b1a20; }
.dp-stats span, .dp-sum span { font-size: 11px; color: var(--muted); }
.dp-stats b { font-size: 14px; font-variant-numeric: tabular-nums; }
.dp-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.dp-qr { flex: none; width: 118px; height: 118px; padding: 7px; border-radius: 10px; background: #fff; }
.dp-qr[hidden] { display: none; }
.dp-qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.dp-at { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: start; }
.dp-at code { display: block; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; color: #e4e0f0; }
.am-copy.done { background: rgba(141, 240, 168, 0.16); color: #8df0a8; }
.dp-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: dp; }
.dp-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #bdb9c9; counter-increment: dp; }
.dp-steps li::before { content: counter(dp); flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2a2733; color: #cdb6ff; font-size: 11px; font-weight: 700; }
.dp-bal { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #1b1a20; font-size: 13px; }
.dp-bal > span { flex: 1; color: var(--muted); }
.dp-bal b { font-variant-numeric: tabular-nums; }
.dp-bal i { font-style: normal; color: var(--muted); font-size: 12px; }
.dp-note { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.dp-note b { font-size: 15px; }
.dp-note span { font-size: 13px; line-height: 1.5; color: #bdb9c9; }
.dp-avail { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #231a38, #1b1a20); border: 1px solid rgba(154, 92, 245, 0.28); }
.dp-avail b { font-family: var(--font-logo); font-weight: 400; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dp-avail b small { font-family: inherit; font-size: 14px; color: var(--muted); }
.dp-avail i { font-style: normal; font-size: 13px; color: var(--muted); }
.dp-form { display: grid; gap: 12px; }
.dp-f { display: grid; gap: 6px; }
.dp-f > span { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.dp-f input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: #fff; font: inherit; font-size: 14px; outline: none; transition: border-color 0.15s; }
.dp-f input:focus { border-color: var(--purple); }
.dp-f input::placeholder { color: #6f6c7c; }
.dp-amt { position: relative; }
.dp-amt input { padding-right: 70px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dp-amt em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.dp-max { padding: 3px 10px; border-radius: 6px; background: #2a2733; color: #cdb6ff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.dp-max:hover { background: #343040; }
.dp-sum { display: grid; gap: 0; border-radius: 10px; background: #1b1a20; }
.dp-sum div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13px; }
.dp-sum div + div { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.dp-sum b { font-variant-numeric: tabular-nums; text-align: right; }
.dp-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 6px; }
.dp-done h3 { margin: 0; font-family: var(--font-logo); font-weight: 400; font-size: 22px; }
.dp-done p { margin: 0; font-size: 14px; line-height: 1.5; color: #bdb9c9; }
.dp-done .dp-sum, .dp-done .am-primary { width: 100%; }
.dp-tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(141, 240, 168, 0.14); color: #8df0a8; animation: am-pop 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2); }
.dp-tick.wait { background: rgba(255, 190, 80, 0.14); color: #ffbe50; }
.dp-tick svg { width: 28px; height: 28px; }
@media (max-width: 440px) { .dp-card { flex-direction: column; align-items: stretch; } .dp-qr { align-self: center; } .dp-stats b { font-size: 13px; } }

/* chat: messages and the box at the bottom */
.chat-err { min-height: 0; margin: 0 2px 8px; font-size: 12.5px; color: #ff6b7a; }
.chat-err:empty { display: none; }
.chat-input input:disabled { cursor: not-allowed; }
.chat-login { color: var(--purple-hi); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cm-av { display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.cm.mine .cm-name > span:first-child { color: var(--purple-hi); }
.cm-name > span:first-child { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- rain banner (top of the chat) ---------- */
.rain { margin: 10px 10px 0; padding: 12px 14px; border-radius: var(--radius); border: 1px solid #55398a; background: linear-gradient(135deg, #2a1f45, var(--panel)); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.rain.hide { display: none; }
.rain-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.rain-ttl { font-family: var(--font-logo); font-size: 17px; color: var(--purple-hi); }
.rain-time { font-family: var(--font-logo); font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.rain-pot { font-family: var(--font-logo); font-size: 26px; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.rain-pot img { width: 20px; height: 20px; }
.rain-sub { grid-column: 1; color: var(--muted); font-size: 12px; }
.rain-btn { grid-column: 2; grid-row: 2 / span 2; background: var(--purple); color: #fff; border-radius: 8px; padding: 9px 18px; font-family: var(--font-logo); font-size: 16px; }
.rain-btn:hover:not(:disabled) { background: var(--purple-hi); }
.rain-btn:disabled { background: var(--panel-2); color: var(--muted); cursor: default; }

/* ---------- tips ---------- */
.cm-who { cursor: pointer; }
.cm-who:hover { color: var(--purple-hi); text-decoration: underline; }
.tip-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 10px; border: 1px solid #55398a; border-radius: 10px; background: #1f1836; }
.tip-bar.hide { display: none; }
.tip-lbl { font-size: 13px; white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.tip-lbl b { font-family: var(--font-logo); font-weight: 400; color: var(--purple-hi); }
.tip-bar input { flex: 1; min-width: 0; background: var(--bar); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.tip-go { background: var(--purple); color: #fff; border-radius: 8px; padding: 6px 12px; font-family: var(--font-logo); }
.tip-go:hover { background: var(--purple-hi); }
.tip-x { color: var(--muted); font-size: 20px; line-height: 1; padding: 0 4px; }

/* ---------- support tickets ---------- */
.tk-back { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .65); }
.tk-box { width: min(480px, 100%); max-height: min(640px, 92vh); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tk-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tk-head h2 { margin: 0; font-family: var(--font-logo); font-weight: 400; font-size: 24px; }
.tk-x { color: var(--muted); font-size: 26px; line-height: 1; }
.tk-body { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.tk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.tk-note.bad, .tk-msg.bad { color: #ff6b7a; }
.tk-msg { margin: 0; padding: 0 18px 12px; min-height: 0; font-size: 13px; color: var(--muted); }
.tk-msg:empty { display: none; }
.tk-btn { background: var(--purple); color: #fff; border-radius: 8px; padding: 9px 16px; font-family: var(--font-logo); font-size: 15px; white-space: nowrap; align-self: flex-start; }
.tk-btn:hover:not(:disabled) { background: var(--purple-hi); }
.tk-btn:disabled { opacity: .5; cursor: default; }
.tk-link { color: var(--purple-hi); font-size: 13px; align-self: flex-start; padding: 0; }
.tk-link:hover { text-decoration: underline; }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.tk-row:hover { border-color: var(--purple); }
.tk-row-main { display: flex; flex-direction: column; min-width: 0; }
.tk-row-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row-main small { color: var(--muted); }
.tk-pill { font-size: 12px; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bar); white-space: nowrap; }
.tk-pill.open { color: #f5b94a; border-color: #7a5d22; }
.tk-pill.answered { color: #3ddc84; border-color: #1f6b44; }
.tk-form { display: flex; flex-direction: column; gap: 10px; }
.tk-form select, .tk-form input, .tk-form textarea { width: 100%; background: var(--bar); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; resize: vertical; }
.tk-form select:focus, .tk-form input:focus, .tk-form textarea:focus { border-color: var(--purple); outline: 0; }
.tk-thread { display: flex; flex-direction: column; gap: 12px; }
.tk-th { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.tk-m { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.tk-m.staff { background: #2a1f45; border-color: #55398a; }
.tk-m small { color: var(--muted); }
.tk-m p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }

/* ---------- chat ranks and roles ---------- */
.cm-name { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cm-rank { width: 16px; height: 16px; object-fit: contain; flex: none; }
.cm-tag { font: 700 10px/1 var(--font-body); letter-spacing: .6px; padding: 3px 6px; border-radius: 5px; border: 1px solid; }
.cm-tag-owner { color: #fff; border-color: transparent; background: linear-gradient(90deg, #ff4d8d, #ffb02e, #4dffb0, #4da6ff, #b383ff, #ff4d8d); background-size: 300% 100%; animation: cm-flow 4s linear infinite; text-shadow: 0 0 4px rgba(0, 0, 0, .55); }
.cm-tag-admin { color: #ff8a8a; border-color: #7a2a33; background: #2a1316; }
.cm-tag-mod { color: #6fd0ff; border-color: #1f5a7a; background: #0f202b; }
.cm-tag-vip { color: #ffd45e; border-color: #7a5d22; background: #2a2210; }
.cm-role-owner, .cm-role-admin, .cm-role-mod, .cm-role-vip { font-weight: 700; background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: cm-flow 4s linear infinite; }
.cm-role-owner { background-image: linear-gradient(90deg, #ff4d8d, #ffb02e, #4dffb0, #4da6ff, #b383ff, #ff4d8d); filter: drop-shadow(0 0 6px rgba(179, 131, 255, .55)); animation-duration: 3s; }
.cm-role-admin { background-image: linear-gradient(90deg, #ff4d4d, #ff9a4d, #ff4d4d); }
.cm-role-mod { background-image: linear-gradient(90deg, #4da6ff, #6ff0ff, #4da6ff); }
.cm-role-vip { background-image: linear-gradient(90deg, #ffb02e, #fff0a8, #ffb02e); }
@keyframes cm-flow { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .cm-tag-owner, .cm-role-owner, .cm-role-admin, .cm-role-mod, .cm-role-vip { animation: none; } }

/* role colours: the site sets --rg-<role> (gradient), --ra-<role> (animation) and --rs-<role> (size) from the admin settings */
.cm-role-owner { background-image: var(--rg-owner, linear-gradient(90deg, #ff4d8d, #ffb02e, #4dffb0, #4da6ff, #b383ff, #ff4d8d)); background-size: var(--rs-owner, 300% 100%); animation: var(--ra-owner, cm-flow 3s linear infinite); }
.cm-role-admin { background-image: var(--rg-admin, linear-gradient(90deg, #ff4d4d, #ff9a4d, #ff4d4d)); background-size: var(--rs-admin, 300% 100%); animation: var(--ra-admin, cm-flow 4s linear infinite); }
.cm-role-mod { background-image: var(--rg-mod, linear-gradient(90deg, #4da6ff, #6ff0ff, #4da6ff)); background-size: var(--rs-mod, 300% 100%); animation: var(--ra-mod, cm-flow 4s linear infinite); }
.cm-role-vip { background-image: var(--rg-vip, linear-gradient(90deg, #ffb02e, #fff0a8, #ffb02e)); background-size: var(--rs-vip, 300% 100%); animation: var(--ra-vip, cm-flow 4s linear infinite); }
.cm-tag-owner, .cm-tag-admin, .cm-tag-mod, .cm-tag-vip { color: #fff; border-color: transparent; text-shadow: 0 0 4px rgba(0, 0, 0, .65); }
.cm-tag-owner { background: var(--rg-owner, linear-gradient(90deg, #ff4d8d, #ffb02e, #4dffb0, #4da6ff, #b383ff, #ff4d8d)); background-size: var(--rs-owner, 300% 100%); animation: var(--ra-owner, cm-flow 4s linear infinite); }
.cm-tag-admin { background: var(--rg-admin, linear-gradient(90deg, #ff4d4d, #ff9a4d, #ff4d4d)); background-size: var(--rs-admin, 300% 100%); animation: var(--ra-admin, cm-flow 4s linear infinite); }
.cm-tag-mod { background: var(--rg-mod, linear-gradient(90deg, #4da6ff, #6ff0ff, #4da6ff)); background-size: var(--rs-mod, 300% 100%); animation: var(--ra-mod, cm-flow 4s linear infinite); }
.cm-tag-vip { background: var(--rg-vip, linear-gradient(90deg, #ffb02e, #fff0a8, #ffb02e)); background-size: var(--rs-vip, 300% 100%); animation: var(--ra-vip, cm-flow 4s linear infinite); }
@media (prefers-reduced-motion: reduce) { .cm-tag-owner, .cm-tag-admin, .cm-tag-mod, .cm-tag-vip, .cm-role-owner, .cm-role-admin, .cm-role-mod, .cm-role-vip { animation: none; background-size: 100% 100%; } }

/* announcements from the site */
.cm-av-bot { background: #10233f !important; display: grid; place-items: center; }
.cm-av-bot svg { width: 20px; height: 20px; stroke: none; }
.cm-botname { color: var(--purple-hi); font-weight: 700; }
.cm-bottag { display: inline-flex; }
.cm-bottag svg { width: 14px; height: 14px; stroke: none; }
.cm-bot .cm-text { color: #cfc4ea; }

/* featured slot covers use the provider artwork */
.slot-cover { position: relative; overflow: hidden; background: #15141a; }
.slot-cover::before { content: ""; position: absolute; inset: -20px; background: var(--art) center / cover; filter: blur(18px) brightness(0.55) saturate(1.2); }
.card--slot .cover > img { position: relative; width: 100%; height: 100%; aspect-ratio: 10 / 7; object-fit: contain; }

.more-sentinel { height: 60px; }
.more-sentinel[hidden] { display: none; }
select option { background: #1b1a20; color: #edecf2; }
select { color-scheme: dark; }
/* support tickets: a small panel above the support button instead of a full-screen window */
.tk-back { inset: auto 18px 84px auto; display: block; padding: 0; background: none; pointer-events: none; z-index: 400; }
.tk-box { pointer-events: auto; width: min(380px, calc(100vw - 36px)); max-height: min(580px, calc(100vh - 110px)); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7); animation: tk-pop 0.18s ease-out; }
@keyframes tk-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@media (max-width: 640px) { .tk-back { inset: auto 10px 76px 10px; } .tk-box { width: 100%; } }

/* USD mode: no shard gem, a dollar coin in the bet boxes */
html.usd-mode img[src$="images/gem.png"] { display: none; }
html.usd-mode :is(.dc-gem, .bj-gem, .kn-gem, .lm-gem, .mn-gem, .tw-gem) { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2327a965'/%3E%3Ctext x='12' y='17' font-family='Arial' font-weight='700' font-size='15' text-anchor='middle' fill='white'%3E%24%3C/text%3E%3C/svg%3E"); }
