@charset "UTF-8";

/* src/styles.scss */
:root {
  --bg:
    linear-gradient(
      180deg,
      #0a0c16 0%,
      #07090f 45%,
      #060810 100%);
  --bg-solid: #07090f;
  --surface: #0d1120;
  --surface-2: #141a30;
  --surface-3: #1c2340;
  --border: rgba(168, 130, 255, 0.10);
  --border-strong: rgba(168, 130, 255, 0.18);
  --text: #f0f2ff;
  --text-muted: #8892b0;
  --text-faint: #4a5280;
  --accent: #a855f7;
  --accent-2: #8b31e0;
  --accent-soft: rgba(168, 85, 247, 0.16);
  --accent-grad:
    linear-gradient(
      135deg,
      #d8b4fe 0%,
      #a855f7 45%,
      #7c3aed 100%);
  --accent-glow: 0 0 32px rgba(168, 85, 247, 0.38);
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --radius: 15px;
  --radius-sm: 11px;
  --radius-input: 11px;
  --radius-pill: 999px;
  --shadow:
    0 24px 56px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(168, 130, 255, 0.08),
    0 0 40px rgba(139, 49, 224, 0.08);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(168, 130, 255, 0.05);
  --dur-fast: 0.15s;
  --sidebar-w: 240px;
  --topbar-h: 56px;
}
[data-theme=light] {
  --bg:
    linear-gradient(
      180deg,
      #f2edfc 0%,
      #eceef9 40%,
      #e9edf9 100%);
  --bg-solid: #eceef9;
  --surface: #ffffff;
  --surface-2: #f8f6fd;
  --surface-3: #f0ecfa;
  --border: rgba(109, 40, 217, 0.12);
  --border-strong: rgba(109, 40, 217, 0.22);
  --text: #13172b;
  --text-muted: #5c6382;
  --text-faint: #9ba3bf;
  --accent: #6d28d9;
  --accent-2: #5b21b6;
  --accent-soft: rgba(109, 40, 217, 0.10);
  --accent-grad:
    linear-gradient(
      135deg,
      #a855f7 0%,
      #7c3aed 50%,
      #5b21b6 100%);
  --accent-glow: 0 0 22px rgba(139, 49, 224, 0.18);
  --gold: #b45309;
  --gold-soft: rgba(180, 83, 9, 0.09);
  --success: #15803d;
  --success-soft: rgba(21, 128, 61, 0.09);
  --warning: #b45309;
  --warning-soft: rgba(180, 83, 9, 0.10);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.08);
  --info: #1d4ed8;
  --info-soft: rgba(29, 78, 216, 0.09);
  --shadow:
    0 2px 4px rgba(76, 29, 149, 0.05),
    0 10px 20px rgba(76, 29, 149, 0.07),
    0 28px 56px rgba(76, 29, 149, 0.10);
  --shadow-sm:
    0 1px 2px rgba(76, 29, 149, 0.04),
    0 4px 10px rgba(76, 29, 149, 0.05),
    0 10px 22px rgba(76, 29, 149, 0.06);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Plus Jakarta Sans",
    "Cairo",
    system-ui,
    sans-serif;
  font-size: 13.7px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.18s ease, color 0.18s ease;
  background-image:
    radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(139, 49, 224, 0.14),
      transparent),
    radial-gradient(
      ellipse 60% 40% at 100% 100%,
      rgba(59, 130, 246, 0.06),
      transparent);
}
[data-theme=light] body {
  background-image:
    radial-gradient(
      ellipse 70% 40% at 80% 0%,
      rgba(139, 49, 224, 0.12),
      transparent),
    radial-gradient(
      ellipse 50% 34% at 0% 100%,
      rgba(29, 78, 216, 0.07),
      transparent),
    radial-gradient(
      ellipse 45% 30% at 50% 0%,
      rgba(219, 39, 119, 0.05),
      transparent);
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
button {
  font-family: inherit;
  cursor: pointer;
}
svg {
  display: block;
}
::selection {
  background: var(--accent-soft);
}
svg.ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 99px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.55);
}
::-webkit-scrollbar-corner {
  background: transparent;
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.25) transparent;
}
[data-theme=light] ::-webkit-scrollbar-thumb {
  background: rgba(109, 40, 217, 0.2);
}
[data-theme=light] ::-webkit-scrollbar-thumb:hover {
  background: rgba(109, 40, 217, 0.42);
}
[data-theme=light] * {
  scrollbar-color: rgba(109, 40, 217, 0.2) transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.06s,
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg,
.btn svg.ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(139, 49, 224, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(139, 49, 224, 0.5);
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}
.field label {
  font-weight: 700;
  font-size: 13.7px;
}
.field label.req::after {
  content: " *";
  color: var(--danger, #ef4444);
}
.field-error {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--danger, #ef4444);
  margin-top: -3px;
}
.input.input-error,
.textarea.input-error {
  border-color: var(--danger, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.input,
.textarea,
select.input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 11px 13px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.input:focus,
.textarea:focus,
select.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.textarea {
  min-height: 101px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-faint);
}
.with-icon {
  position: relative;
}
.with-icon .input {
  padding-inline-start: 42px;
}
.with-icon .input.has-trail {
  padding-inline-end: 44px;
}
.input-icon {
  position: absolute;
  inset-inline-start: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  line-height: 0;
}
.input-icon svg,
.input-icon svg.ico {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
}
.pw-toggle {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-faint);
  padding: 5px;
  display: grid;
  place-items: center;
  cursor: pointer;
  line-height: 0;
}
.pw-toggle:hover {
  color: var(--text-muted);
}
.pw-toggle svg,
.pw-toggle svg.ico {
  width: 19px;
  height: 19px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.icon-btn svg,
.icon-btn svg.ico {
  width: 16px;
  height: 16px;
}
.icon-btn .dot {
  position: absolute;
  top: 8px;
  inset-inline-end: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
}
.lang-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  height: 34px;
  width: 76px;
  position: relative;
}
.lang-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.lang-toggle:has(button:nth-child(2).active)::before {
  transform: translateX(100%);
}
[dir=rtl] .lang-toggle:has(button:nth-child(2).active)::before {
  transform: translateX(-100%);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
.lang-toggle button:hover:not(.active) {
  color: var(--text);
}
.lang-toggle button.active {
  color: #fff;
  font-weight: 800;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.7px;
  -webkit-user-select: none;
  user-select: none;
}
.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check .box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: #fff;
  line-height: 0;
  transition: background 0.15s, border-color 0.15s;
}
.check .box svg,
.check .box svg.ico {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.12s;
}
.check input:checked + .box {
  background: var(--accent-grad);
  border-color: transparent;
}
.check input:checked + .box svg {
  opacity: 1;
}
.page-sub {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.spacer {
  flex: 1;
}
.muted {
  color: var(--text-muted);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
[data-theme=light] {
}
[data-theme=light] .btn:not(.btn-primary):not(.btn-hero) {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: 0 1px 3px rgba(13, 17, 43, 0.07);
}
[data-theme=light] .btn:not(.btn-primary):not(.btn-hero):hover {
  background: var(--surface-2);
  box-shadow: 0 2px 8px rgba(13, 17, 43, 0.1);
}
[data-theme=light] .btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(109, 40, 217, 0.3);
}
[data-theme=light] .btn-primary:hover {
  box-shadow: 0 5px 18px rgba(109, 40, 217, 0.42);
  filter: brightness(1.06);
}
[data-theme=light] {
}
[data-theme=light] .input,
[data-theme=light] .textarea,
[data-theme=light] select.input {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(13, 17, 43, 0.04);
}
[data-theme=light] {
}
[data-theme=light] .icon-btn {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: 0 1px 3px rgba(13, 17, 43, 0.07);
}
[data-theme=light] .icon-btn:hover {
  background: var(--surface-2);
  box-shadow: 0 2px 8px rgba(13, 17, 43, 0.1);
}
[data-theme=light] {
}
[data-theme=light] .lang-toggle {
  background: var(--surface-3);
  border: 1px solid var(--border);
  box-shadow: none;
}
app-games,
app-categories,
app-admins,
app-badges,
app-collections,
app-home-banners,
app-banners,
app-players,
app-support,
app-player-history,
app-rewards,
app-challenges,
app-moderation,
app-achievements,
app-prize-claims,
app-language-settings {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
app-games .card,
app-categories .card,
app-badges .card,
app-collections .card,
app-home-banners .card,
app-banners .card,
app-admins .card,
app-players .card,
app-support .card,
app-player-history .card,
app-rewards .card,
app-achievements .card,
app-prize-claims .card,
app-language-settings .card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
app-player-history .ph-card {
  flex: 1;
  min-height: 0;
}
app-challenges .ch-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
[data-theme=dark] .card {
  background:
    linear-gradient(
      165deg,
      #101526 0%,
      #0d1120 60%);
}
[data-theme=light] .card {
  background:
    linear-gradient(
      165deg,
      #ffffff 0%,
      #fbf9ff 100%);
}
.cat-page-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 19px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.card-head h3 {
  font-size: 15px;
}
.card-head .page-sub {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
}
.card-body {
  padding: 21px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  text-align: start;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
[data-theme=dark] thead th {
  background: #101526;
}
tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background 0.15s;
  position: relative;
}
tbody tr td:first-child {
  position: relative;
}
tbody tr td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent-grad);
  border-radius: 0 3px 3px 0;
  transition: height 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-2));
}
tbody tr:hover td:first-child::before {
  height: 60%;
}
.cell-main {
  display: flex;
  align-items: center;
  gap: 13px;
}
.thumb {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 19px;
  border: 1px solid var(--border);
}
img.thumb {
  object-fit: cover;
  display: block;
}
.cell-title {
  font-weight: 700;
}
.cell-sub {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.gold {
  color: var(--gold);
}
.rating-val {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rating-val svg,
.rating-val svg.ico {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}
th.sortable {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
th.sortable:hover {
  color: var(--text-muted);
}
.sort-ind {
  font-size: 10.5px;
  margin-inline-start: 5px;
}
.sort-ind.dim {
  opacity: 0.35;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.b-success {
  background: var(--success-soft);
  color: var(--success);
}
.badge.b-warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge.b-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge.b-info {
  background: var(--info-soft);
  color: var(--info);
}
.badge.b-muted {
  background: var(--surface-3);
  color: var(--text-muted);
}
.badge.b-accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.req-star {
  color: var(--danger, #ef4444);
  font-weight: 700;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 12px;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status.active {
  color: var(--success);
}
.status.active::before {
  background: var(--success);
}
.status.inactive {
  color: var(--text-faint);
}
.status.inactive::before {
  background: var(--text-faint);
}
.status.suspended {
  color: var(--danger);
}
.status.suspended::before {
  background: var(--danger);
}
.status.kpi-size {
  font-size: 23px;
  font-weight: 800;
  gap: 9px;
}
.status.kpi-size::before {
  width: 13px;
  height: 13px;
}
.status.pending {
  color: var(--warning);
}
.status.pending::before {
  background: var(--warning);
}
.status.hidden {
  color: var(--text-faint);
}
.status.hidden::before {
  background: var(--text-faint);
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
[dir=rtl] .row-actions {
  justify-content: flex-start;
}
.act {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.act svg,
.act svg.ico {
  width: 15px;
  height: 15px;
}
.act:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.act.danger:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: 0 2px 8px rgba(248, 113, 113, 0.2);
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.chip.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(139, 49, 224, 0.4);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 17px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.page-btn svg,
.page-btn svg.ico {
  width: 18px;
  height: 18px;
}
.page-btn.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(139, 49, 224, 0.4);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 21px;
  animation: fadeIn 0.12s ease;
  zoom: 1.1111111111;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  width: 100%;
  max-width: 366px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 23px;
  animation: slideUp 0.15s ease;
}
.ap-modal {
  max-width: 520px;
  padding: 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ap-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.ap-head h3 {
  font-size: 16.5px;
  font-weight: 800;
}
.ap-head-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ap-head-icon svg,
.ap-head-icon svg.ico {
  width: 18px;
  height: 18px;
}
.ap-head-sub {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.ap-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ap-close svg,
.ap-close svg.ico {
  width: 14px;
  height: 14px;
}
.ap-close:hover {
  background: var(--surface-3);
  color: var(--text);
}
.ap-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.ap-sec {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 800;
  margin: 22px 0 14px;
}
.ap-sec:first-child {
  margin-top: 0;
}
.ap-error {
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 16px;
}
.ap-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 17px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface-2);
}
[data-theme=light] .ap-foot {
  background: var(--surface);
}
.dg-modal {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
}
.dg-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.dg-head h3 {
  font-size: 15.5px;
  font-weight: 800;
}
.dg-head-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--danger-soft);
  color: var(--danger);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dg-head-icon svg,
.dg-head-icon svg.ico {
  width: 18px;
  height: 18px;
}
.dg-head-sub {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 3px;
  line-height: 1.5;
}
.dg-body {
  padding: 20px 24px;
}
.dg-label {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.pc-trigger {
  height: 44px;
  box-sizing: border-box;
  border-width: 1px;
  border-radius: var(--radius-input);
  padding: 0 12px;
  gap: 10px;
}
.pc-trigger .ch-trigger-name {
  font-size: 13.5px;
}
.pc-input {
  height: 44px;
  box-sizing: border-box;
}
.pc-flag {
  width: 24px;
  height: 24px;
  font-size: 14px;
  border-radius: 7px;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.m-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
}
.m-icon svg,
.m-icon svg.ico {
  width: 21px;
  height: 21px;
}
.modal h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}
.modal p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 19px;
  line-height: 1.55;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.rank {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13.7px;
  background: var(--surface-3);
  color: var(--text-muted);
  flex-shrink: 0;
}
.rank.r1 {
  background:
    linear-gradient(
      160deg,
      #fce98a,
      #f8d144);
  color: #5a4500;
}
.rank.r2 {
  background:
    linear-gradient(
      160deg,
      #e7ebf2,
      #c4ccd8);
  color: #44505f;
}
.rank.r3 {
  background:
    linear-gradient(
      160deg,
      #f0c08a,
      #dd9a52);
  color: #5a3410;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
  gap: 6px;
}
.btn-sm svg,
.btn-sm svg.ico {
  width: 15px;
  height: 15px;
}
.editor-form {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 305px;
  gap: 21px;
  align-items: start;
}
@media (max-width: 1080px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}
.section-h {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 700;
  margin: 0 0 17px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
@media (max-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: inset-inline-start 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.switch.on {
  background: var(--accent-grad);
  border-color: transparent;
}
.switch.on::after {
  inset-inline-start: 23px;
}
.switch:disabled {
  cursor: default;
  opacity: 0.55;
  overflow: hidden;
}
.switch:disabled::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom right,
      transparent calc(50% - 1.5px),
      var(--accent) calc(50% - 1.5px),
      var(--accent) calc(50% + 1.5px),
      transparent calc(50% + 1.5px));
  z-index: 1;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.switch-row:last-child {
  border-bottom: 0;
}
.switch-row .sr-label b {
  font-size: 14.2px;
}
.switch-row .sr-label small {
  display: block;
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.req-label::after {
  content: " *";
  color: var(--danger, #ef4444);
}
.ratio-badge {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.upload-box-error .upload-box {
  border-color: var(--danger, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.icon-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--danger, #ef4444);
  color: #fff;
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.icon-remove-btn:hover {
  background: #dc2626;
}
.upload-box {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: 15px;
  padding: 23px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-box:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-box svg,
.upload-box svg.ico {
  width: 27px;
  height: 27px;
  color: var(--accent);
}
.upload-box b {
  font-size: 13.7px;
}
.upload-box small {
  font-size: 12px;
  color: var(--text-faint);
}
.avatar-upload-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.avatar-upload-wrap {
  position: relative;
  display: inline-flex;
  transition: transform 0.15s;
}
.avatar-upload-wrap:hover {
  transform: scale(1.02);
}
.avatar-upload-wrap:hover .avatar-upload-circle {
  border-color: var(--accent);
}
.avatar-upload-circle {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface-2);
  padding: 0;
  transition: border-color 0.15s;
}
.avatar-upload-circle.has-image {
  border-style: solid;
  border-color: var(--border);
  cursor: pointer;
}
.avatar-upload-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-upload-circle svg,
.avatar-upload-circle svg.ico {
  width: 30px;
  height: 30px;
}
.avatar-upload-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.15s;
}
.avatar-upload-hover svg,
.avatar-upload-hover svg.ico {
  width: 24px;
  height: 24px;
  color: #fff;
}
.avatar-upload-circle.has-image:hover .avatar-upload-hover {
  opacity: 1;
}
.avatar-upload-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--surface);
  z-index: 1;
  transition: background 0.15s;
}
.avatar-upload-badge:hover {
  background: var(--accent-hover, var(--accent));
  filter: brightness(0.92);
}
.avatar-upload-badge svg,
.avatar-upload-badge svg.ico {
  width: 15px;
  height: 15px;
  stroke: #fff;
  color: #fff;
}
.avatar-upload-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.avatar-upload-remove:hover {
  text-decoration: underline;
}
.avatar-lightbox-overlay {
  z-index: 1300;
}
.avatar-lightbox {
  position: relative;
  max-width: min(90vw, 420px);
  max-height: 90vh;
}
.avatar-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}
.avatar-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.crop-modal {
  background: var(--surface-1);
  border-radius: 16px;
  padding: 24px;
  width: min(520px, 96vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.crop-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.crop-title {
  font-size: 16px;
  font-weight: 700;
}
.crop-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.crop-canvas-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.crop-canvas:active {
  cursor: grabbing;
}
.crop-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.crop-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #ef4444;
}
.img-preview-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.img-preview-wrap .img-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.img-preview-wrap .img-preview-overlay svg {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
  transform: scale(0.85);
  transition: transform 0.18s ease;
}
.img-preview-wrap:hover .img-preview-overlay {
  opacity: 1;
}
.img-preview-wrap:hover .img-preview-overlay svg {
  transform: scale(1);
}
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.img-lightbox img {
  max-width: min(90vw, 720px);
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  cursor: pointer;
  border: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.12s, transform 0.12s;
}
.swatch:hover {
  transform: scale(1.1);
}
.swatch.sel {
  outline-color: var(--text);
  transform: scale(1.1);
}
.pd-back {
  margin-bottom: 17px;
}
.pd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 17px;
}
.profile-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.profile-head-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}
.pd-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.pd-hero {
  background:
    radial-gradient(
      700px 220px at 100% 0%,
      var(--accent-soft),
      transparent 65%),
    var(--surface);
}
.pd-avatar {
  width: 90px !important;
  height: 90px !important;
  font-size: 32px !important;
  box-shadow: 0 6px 18px rgba(139, 49, 224, 0.28);
}
.pd-name {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.pd-handle {
  font-size: 13px;
}
.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pd-suspend-reason {
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.pd-metrics {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 920px) {
  .pd-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .pd-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pd-member-value {
  font-size: 15px;
  margin-top: 8px;
}
.metric {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px 17px;
}
[data-theme=light] .metric {
  background: var(--surface);
}
.metric .m-label {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.metric .m-label svg,
.metric .m-label svg.ico {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.metric .m-value {
  font-size: 23px;
  font-weight: 800;
  margin-top: 5px;
  letter-spacing: -0.01em;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 23px;
  align-items: start;
}
.gd-header {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  flex-wrap: wrap;
}
.gd-thumb {
  width: 71px !important;
  height: 71px !important;
  font-size: 34px !important;
  border-radius: 17px !important;
  flex-shrink: 0;
}
.gd-header-info {
  flex: 1;
  min-width: 0;
}
.gd-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gd-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.gd-similar {
  display: flex;
  gap: 21px;
  flex-wrap: wrap;
}
.gd-similar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s;
}
.gd-similar-item:hover {
  opacity: 0.8;
}
.gd-similar-thumb {
  width: 67px !important;
  height: 67px !important;
  font-size: 29px !important;
  border-radius: 15px !important;
}
.gd-similar-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.gd-similar-plays {
  font-size: 11.5px;
  color: var(--text-faint);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px 29px;
}
.info-grid .il {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 3px;
}
.info-grid .iv {
  font-weight: 700;
  font-size: 14.7px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}
.field-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}
[data-theme=light] .field-item {
  background: var(--surface);
}
.field-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.field-item .il {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 2px;
}
.field-item .iv {
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.field-icon svg,
.field-icon svg.ico {
  width: 16px;
  height: 16px;
}
.login-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}
[data-theme=light] .login-row {
  background: var(--surface);
}
.login-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.login-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.login-row-icon svg,
.login-row-icon svg.ico {
  width: 17px;
  height: 17px;
}
.login-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-row-device {
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.login-row-platform {
  text-transform: capitalize;
  flex-shrink: 0;
}
.login-row-when {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.login-row-when svg,
.login-row-when svg.ico {
  width: 13px;
  height: 13px;
}
.friend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}
[data-theme=light] .friend-row {
  background: var(--surface);
}
.friend-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.friend-row-avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
  flex-shrink: 0;
  object-fit: cover;
}
.friend-row-info {
  flex: 1;
  min-width: 0;
}
.friend-row-name {
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 3px;
  min-width: 0;
}
.friend-row-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.friend-row-meta-item svg,
.friend-row-meta-item svg.ico {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.friend-row-badge {
  flex-shrink: 0;
}
.friend-row-badge svg,
.friend-row-badge svg.ico {
  width: 12px;
  height: 12px;
}
.history {
  display: flex;
  flex-direction: column;
}
.hist {
  display: flex;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.hist:last-child {
  border-bottom: 0;
}
.hist .dotcol {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hist .hist-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}
.hist .hist-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
}
.hist b {
  font-size: 14.2px;
}
.hist .hist-time {
  color: var(--text-faint);
  font-size: 12.5px;
  margin-top: 2px;
}
.ch-game-picker {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 17px;
}
.ch-game-dropdown {
  position: relative;
  flex: 1;
  min-width: 0;
}
.ch-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
  zoom: 1.1111111111;
}
.ch-game-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 15px;
  padding: 11px 15px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.ch-game-trigger:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.open .ch-game-trigger {
  border-color: var(--accent);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ch-game-trigger:disabled {
  opacity: 0.45;
  cursor: default;
}
.ch-trigger-emoji-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.open .ch-trigger-emoji-box {
  background: var(--accent-soft);
  border-color: rgba(150, 52, 235, 0.35);
}
.ch-trigger-name {
  flex: 1;
  text-align: start;
  font-size: 14.7px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-trigger-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  place-items: center;
}
.open .ch-trigger-chevron {
  transform: rotate(90deg);
}
.ch-trigger-chevron svg {
  width: 17px;
  height: 17px;
}
.ch-game-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--ch-menu-bg, rgba(17, 21, 33, 0.97));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--ch-menu-border, rgba(255, 255, 255, 0.09));
  border-radius: 17px;
  box-shadow: var(--ch-menu-shadow, 0 24px 60px rgba(0, 0, 0, 0.6)), 0 0 0 1px rgba(150, 52, 235, 0.1);
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 336px;
  animation: chMenuIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
}
@keyframes chMenuIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
[data-theme=light] {
  --ch-menu-bg: rgba(255, 255, 255, 0.97);
  --ch-menu-border: rgba(17, 21, 33, 0.1);
  --ch-menu-shadow: 0 16px 48px rgba(30, 30, 60, 0.14);
}
[data-theme=light] .ch-game-search {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(17, 21, 33, 0.08);
}
[data-theme=light] .ch-game-menu-scroll::-webkit-scrollbar-thumb {
  background: rgba(17, 21, 33, 0.15);
}
.ch-game-search {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
}
.ch-game-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.ch-game-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14.2px;
  font-weight: 500;
}
.ch-game-search-input::placeholder {
  color: var(--text-faint);
}
.ch-game-menu-scroll {
  overflow-y: auto;
  flex: 1;
}
.ch-game-menu-scroll::-webkit-scrollbar {
  width: 4px;
}
.ch-game-menu-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.ch-game-menu-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
.ch-game-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
  text-align: start;
}
.ch-game-menu-item:hover {
  background: rgba(150, 52, 235, 0.1);
}
.ch-game-menu-item:hover .ch-menu-emoji-box {
  background: var(--accent-soft);
  border-color: rgba(150, 52, 235, 0.3);
}
.ch-menu-emoji-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.ch-menu-item-name {
  font-size: 14.2px;
  font-weight: 600;
  color: var(--text);
}
.ch-game-menu-empty {
  padding: 25px 15px;
  color: var(--text-muted);
  font-size: 13.7px;
  text-align: center;
}
.ch-add-btn {
  flex-shrink: 0;
}
.ch-games-empty {
  text-align: center;
  padding: 29px 0 17px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}
.reward-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.reward {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.reward .thumb {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}
.reward .prize-rank {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13.7px;
  background: var(--surface-3);
  color: var(--text-muted);
}
.reward .prize-rank.r1 {
  background:
    linear-gradient(
      160deg,
      #fce98a,
      #f8d144);
  color: #5a4500;
}
.reward .prize-rank.r2 {
  background:
    linear-gradient(
      160deg,
      #e7ebf2,
      #c4ccd8);
  color: #44505f;
}
.reward .prize-rank.r3 {
  background:
    linear-gradient(
      160deg,
      #f0c08a,
      #dd9a52);
  color: #5a3410;
}
.reward .prize-name {
  font-weight: 700;
  font-size: 14.2px;
}
.reward .prize-type {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.reward .prize-value {
  margin-inline-start: auto;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.seg {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}
.seg button {
  flex: 1;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.seg button + button {
  border-inline-start: 1px solid var(--border);
}
.seg button:hover {
  color: var(--text);
  background: var(--surface-2);
}
.seg button.active {
  background: var(--accent-grad);
  color: #fff;
}
.lb-scope-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  flex-wrap: wrap;
}
.lb-scope-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 260px;
  flex-shrink: 0;
  padding: 16px;
  border-inline-end: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius) 0 0 var(--radius);
}
.lb-rail-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: start;
  transition: all 0.15s;
}
.lb-rail-btn:hover {
  background: var(--surface-3);
}
.lb-rail-btn.active {
  background: var(--accent-grad);
  box-shadow: var(--accent-glow);
}
.lb-rail-btn.active .lb-rail-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.lb-rail-btn.active .lb-rail-title {
  color: #fff;
}
.lb-rail-btn.active .lb-rail-sub {
  color: rgba(255, 255, 255, 0.75);
}
.lb-rail-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--accent);
  flex-shrink: 0;
}
.lb-rail-icon svg {
  width: 16px;
  height: 16px;
}
.lb-rail-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lb-rail-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.lb-rail-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.lb-scope-main {
  flex: 1;
  min-width: 320px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.lb-scope-main-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lb-scope-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.lb-scope-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.lb-scope-stat svg {
  width: 14px;
  height: 14px;
}
.lb-infinity {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.lb-overall-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 560px;
}
.lb-overall-note .lb-rail-icon {
  color: var(--accent);
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 13px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
}
.tag-pill svg,
.tag-pill svg.ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.hero {
  position: relative;
  background:
    radial-gradient(
      900px 300px at 100% 0%,
      rgba(167, 139, 250, 0.22),
      transparent 60%),
    linear-gradient(
      135deg,
      #56357d 0%,
      #312e81 55%,
      #1d2335 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 25px 27px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 27px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  transition: padding-inline 0.15s;
}
.hero h2 {
  font-size: 25px;
  margin: 13px 0 6px;
}
.hero p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 420px;
}
.hero-main {
  flex: 1;
  min-width: 260px;
}
.hero .hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  flex-shrink: 0;
}
.hero .hero-nav svg {
  width: 17px;
  height: 17px;
  stroke: #fff !important;
}
.hero .hero-nav:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: #fff !important;
}
.hero .hero-nav.hero-nav-prev {
  inset-inline-start: 14px;
}
.hero .hero-nav.hero-nav-next {
  inset-inline-end: 14px;
}
.hero-nav-flip {
  display: inline-flex;
  transform: scaleX(-1);
}
@keyframes hero-in-next {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes hero-in-prev {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.hero-anim-next,
.hero-anim-prev {
  animation-duration: 0.38s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}
.hero-anim-next {
  animation-name: hero-in-next;
}
.hero-anim-prev {
  animation-name: hero-in-prev;
}
.hero-nav {
  transition:
    transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.15s,
    border-color 0.15s;
}
.hero-nav:active {
  transform: translateY(-50%) scale(0.85) !important;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition:
    background 0.2s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.2s;
}
.hero-dot.active {
  background: #fff;
  width: 16px;
  border-radius: 4px;
}
.ch-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #74ef44;
  box-shadow: 0 0 0 0 rgba(116, 239, 68, 0.6);
  animation: blip 1.6s infinite;
}
@keyframes blip {
  0% {
    box-shadow: 0 0 0 0 rgba(116, 239, 68, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(116, 239, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(116, 239, 68, 0);
  }
}
.ch-endsin {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 11px;
}
.countdown {
  display: flex;
  gap: 11px;
}
.cd-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  padding: 13px 6px;
  min-width: 67px;
  text-align: center;
}
.cd-box b {
  font-size: 27px;
  font-weight: 800;
  display: block;
  font-variant-numeric: tabular-nums;
}
.cd-box small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}
.btn-hero {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-hero:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}
.afilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 15px 21px;
  border-bottom: 1px solid var(--border);
}
.af-label {
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 700;
  margin-inline-end: 2px;
}
.afilter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.afilter button {
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
}
.afilter button svg,
.afilter button svg.ico {
  width: 14px;
  height: 14px;
}
.afilter button:hover {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}
.af-clear {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.af-clear:hover {
  color: var(--text);
}
.copy-btn {
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  padding: 3px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  margin-inline-start: 5px;
  transition: color 0.15s, background 0.15s;
}
.copy-btn svg,
.copy-btn svg.ico {
  width: 13px;
  height: 13px;
}
.copy-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.copy-btn.copied {
  color: var(--success);
}
.lb-topplayers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
}
@media (max-width: 900px) {
  .lb-topplayers {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .lb-topplayers {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tp-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
[data-theme=light] .tp-item {
  background: var(--surface);
}
.tp-item.p1 {
  background:
    linear-gradient(
      160deg,
      var(--accent-soft) 0%,
      var(--surface-2) 80%);
  border-color: var(--accent);
}
[data-theme=light] .tp-item.p1 {
  background:
    linear-gradient(
      160deg,
      var(--accent-soft) 0%,
      var(--surface) 80%);
}
.tp-medal {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: var(--surface-3);
  color: var(--text-muted);
}
.tp-medal.r1 {
  background:
    linear-gradient(
      160deg,
      #fce98a,
      #f8d144);
  color: #5a4500;
}
.tp-medal.r2 {
  background:
    linear-gradient(
      160deg,
      #e7ebf2,
      #c4ccd8);
  color: #44505f;
}
.tp-medal.r3 {
  background:
    linear-gradient(
      160deg,
      #f0c08a,
      #dd9a52);
  color: #5a3410;
}
.tp-name {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.tp-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.lb-dd {
  position: relative;
  max-width: 340px;
}
.lb-dd-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s;
}
.lb-dd-toggle svg,
.lb-dd-toggle svg.ico {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.lb-dd-toggle:hover {
  border-color: var(--border-strong);
}
.lb-dd.open .lb-dd-toggle svg {
  transform: rotate(90deg);
}
.lb-dd-pop {
  position: absolute;
  top: calc(100% + 5px);
  inset-inline-start: 0;
  width: 100%;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 50;
  overflow: hidden;
  animation: fadeIn 0.1s ease;
}
.lb-dd-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.lb-dd-search svg,
.lb-dd-search svg.ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.lb-dd-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  width: 100%;
}
.lb-dd-search input::placeholder {
  color: var(--text-faint);
}
.lb-dd-list {
  max-height: 210px;
  overflow-y: auto;
  padding: 5px;
}
.lb-dd-item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: background 0.1s;
}
.lb-dd-item:hover {
  background: var(--surface-2);
}
.lb-dd-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.lb-dd-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.avatar.c2 {
  background:
    linear-gradient(
      160deg,
      #449cef,
      #2563eb);
}
.avatar.c3 {
  background:
    linear-gradient(
      160deg,
      #38ba2c,
      #15803d);
}
.avatar.c4 {
  background:
    linear-gradient(
      160deg,
      #f59e0b,
      #d97706);
}
.avatar.c5 {
  background: var(--surface-3);
  color: var(--text-muted);
}
.adm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.adm-badge.admin {
  background: var(--accent-soft);
  color: var(--accent);
}
.adm-badge.sub {
  background: var(--info-soft);
  color: var(--info);
}
.adm-access {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.adm-acc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.adm-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.adm-loc-pill svg,
.adm-loc-pill svg.ico {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.adm-mod-pill {
  padding: 2px 9px;
  border-radius: 7px;
  background: var(--info-soft);
  color: var(--info);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.adm-more-pill {
  padding: 2px 9px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.adm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
}
.adm-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.adm-status.active {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
  background: var(--success-soft);
}
.adm-status.active::before {
  background: var(--success);
}
.adm-status.suspended {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  background: var(--danger-soft);
}
.adm-status.suspended::before {
  background: var(--danger);
}
.adm-status.invited {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 35%, transparent);
  background: var(--warning-soft);
}
.adm-status.invited::before {
  background: var(--warning);
}
.adm-switch-locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.flagged-row td {
  background: color-mix(in srgb, var(--danger) 5%, transparent);
}
.lb-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.lb-note svg,
.lb-note svg.ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}
.aa-hd {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aa-hd-pin {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.aa-hd-pin svg,
.aa-hd-pin svg.ico {
  width: 17px;
  height: 17px;
}
.aa-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}
.aa-right-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.aa-sec {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  font-weight: 800;
  margin: 0 0 18px;
}
.aa-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.aa-field:last-of-type {
  margin-bottom: 0;
}
.aa-field label {
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.aa-req {
  color: var(--danger);
}
.aa-hint {
  color: var(--text-faint);
  font-weight: 500;
  font-size: 11.5px;
  margin-inline-start: 4px;
}
.aa-input {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--dur-fast);
  box-sizing: border-box;
}
.aa-input:focus {
  border-color: var(--accent);
}
.aa-input::placeholder {
  color: var(--text-faint);
}
.aa-input.aa-input-error {
  border-color: var(--danger);
}
.aa-input.aa-input-error:focus {
  border-color: var(--danger);
}
.aa-field-error {
  display: block;
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 6px;
}
.aa-card-error {
  border-color: var(--danger) !important;
}
.aa-perm-error {
  margin: -10px 0 14px;
}
select.aa-input,
.aa-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a92a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-inline-end: 40px;
  cursor: pointer;
}
.aa-pw-wrap {
  position: relative;
}
.aa-pw-wrap .aa-input {
  padding-inline-end: 46px;
}
.aa-pw-wrap .aa-pw-btn {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-faint);
  padding: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--dur-fast);
}
.aa-pw-wrap .aa-pw-btn:hover {
  color: var(--text-muted);
}
.aa-pw-wrap .aa-pw-btn svg,
.aa-pw-wrap .aa-pw-btn svg.ico {
  width: 17px;
  height: 17px;
}
.aa-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface-2);
  margin-top: 18px;
}
.aa-city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.aa-city-grid .full {
  grid-column: 1/-1;
}
.aa-city {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  -webkit-user-select: none;
  user-select: none;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast),
    color var(--dur-fast);
}
.aa-city:hover {
  border-color: var(--border-strong);
}
.aa-city.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.aa-city-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.aa-city-icon svg,
.aa-city-icon svg.ico {
  width: 14px;
  height: 14px;
}
.aa-cbx {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.aa-cbx svg,
.aa-cbx svg.ico {
  width: 10px;
  height: 10px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.aa-cbx.on {
  background: var(--accent-grad);
  border-color: transparent;
}
.aa-cbx.on svg,
.aa-cbx.on svg.ico {
  opacity: 1;
}
.aa-perm-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.aa-perm-search svg,
.aa-perm-search svg.ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.aa-perm-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  width: 100%;
}
.aa-perm-search input::placeholder {
  color: var(--text-faint);
}
.aa-perm-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  overflow: hidden;
}
table.aa-perm {
  width: 100%;
  border-collapse: collapse;
}
table.aa-perm thead th {
  background: var(--surface-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.aa-perm thead th.aa-mod-th {
  text-align: start;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 800;
}
table.aa-perm thead th.aa-act-th {
  text-align: center;
  width: 88px;
}
table.aa-perm tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
table.aa-perm tbody td:first-child {
  text-align: start;
}
table.aa-perm tbody tr:last-child td {
  border-bottom: 0;
}
table.aa-perm tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}
table.aa-perm tbody tr.aa-all-row td {
  background: var(--surface-2);
  font-size: 13px;
}
.aa-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.aa-col-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.aa-col-lbl.aa-lbl-addedit {
  color: var(--success);
}
.aa-col-lbl.aa-lbl-del {
  color: var(--danger);
}
.aa-col-lbl.aa-lbl-exp {
  color: var(--warning);
}
.aa-col-lbl.aa-lbl-expd {
  color: var(--accent);
}
.aa-na {
  color: var(--text-faint);
  font-weight: 800;
  font-size: 13px;
  opacity: 0.35;
}
.aa-access-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.aa-access-hd {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
}
.aa-access-hd.super {
  background: color-mix(in srgb, #ef4444 7%, var(--surface-2));
  border-color: color-mix(in srgb, #ef4444 18%, var(--border));
}
.aa-access-text {
  flex: 1;
  min-width: 0;
}
.aa-access-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 55%, transparent);
}
.aa-access-icon svg,
.aa-access-icon svg.ico {
  width: 22px;
  height: 22px;
}
.aa-access-icon.super {
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #ef4444);
  box-shadow: 0 6px 16px -6px rgba(239, 68, 68, 0.45);
}
.aa-access-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 3px;
}
.aa-access-desc {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}
.aa-access-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}
.aa-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.aa-access-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.aa-access-tile:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  transform: translateY(-1px);
}
.aa-access-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.aa-access-tile-icon svg,
.aa-access-tile-icon svg.ico {
  width: 16px;
  height: 16px;
}
.aa-access-tile-name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aa-access-tile-badge {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--success-soft);
  color: var(--success);
}
.aa-access-tile-badge svg,
.aa-access-tile-badge svg.ico {
  width: 12px;
  height: 12px;
}
.backlink {
  align-self: flex-start;
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  flex-wrap: wrap;
}
.detail-head .thumb {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 30px;
  flex-shrink: 0;
}
.detail-head h2 {
  font-size: 21px;
}
.detail-head .dh-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-head .dh-actions {
  margin-inline-start: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.steps {
  display: flex;
  padding: 22px 26px;
}
.steps .step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.steps .step::before {
  content: "";
  position: absolute;
  top: 16px;
  inset-inline-start: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.steps .step:first-child::before {
  display: none;
}
.steps .step .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text-faint);
  border: 1px solid var(--border);
  z-index: 1;
  font-weight: 800;
  font-size: 13px;
}
.steps .step .dot svg {
  width: 17px;
  height: 17px;
}
.steps .step .st-label {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 700;
  text-align: center;
}
.steps .step .st-time {
  font-size: 11px;
  color: var(--text-faint);
}
.steps .step.done .dot,
.steps .step.current .dot {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
}
.steps .step.done::before,
.steps .step.current::before {
  background: var(--accent);
}
.steps .step.done .st-label,
.steps .step.current .st-label {
  color: var(--text);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
  align-items: start;
}
.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sec-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sec-icon svg {
  width: 16px;
  height: 16px;
}
.rank-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.kv .k {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}
.kv .v {
  font-weight: 700;
  font-size: 13.5px;
}
.kv .full {
  grid-column: 1/-1;
}
.winner-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.winner-row .avatar {
  width: 48px;
  height: 48px;
  font-size: 17px;
}
.winner-row b {
  font-size: 15px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.sum {
  display: flex;
  flex-direction: column;
}
.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.sum-row:last-child {
  border-bottom: 0;
}
.sum-row .sl {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.sum-row .sv {
  font-weight: 700;
  font-size: 13.5px;
}
.timeline {
  display: flex;
  flex-direction: column;
}
.tl {
  display: flex;
  gap: 13px;
  padding: 9px 0;
}
.tl .tl-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl .tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}
.tl .tl-dot.soft {
  background: var(--surface-3);
  border: 2px solid var(--border-strong);
}
.tl .tl-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
}
.tl b {
  font-size: 13px;
}
.tl .tl-time {
  color: var(--text-faint);
  font-size: 12px;
}
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--warning);
  background: var(--warning-soft);
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.savebar {
  position: fixed;
  bottom: 0;
  inset-inline-start: var(--sidebar-w);
  inset-inline-end: 0;
  z-index: 30;
  zoom: 1.1111111111;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.savebar .sb-status {
  color: var(--text-muted);
  font-size: 12.5px;
}
@media (max-width: 820px) {
  .savebar {
    inset-inline-start: 0;
  }
}
@media (max-width: 1080px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .kv {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.ph-card .card-head {
  gap: 10px;
}
.ph-count {
  margin-inline-start: auto;
  font-size: 12.5px;
  font-weight: 600;
}
.ph-table tbody tr {
  transition: background 0.15s;
}
.ph-table tbody tr:nth-child(even) {
  background: var(--surface-2);
}
.ph-table tbody tr:hover {
  background: var(--surface-3);
}
.ph-table .badge {
  padding: 4px 12px;
  font-size: 12px;
}
.ph-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.ph-date {
  font-size: 13px;
  font-weight: 600;
}
.ph-row-time {
  font-size: 12.5px;
  color: var(--text-muted);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.compose-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: stretch;
}
.sec-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sec-icon svg {
  width: 16px;
  height: 16px;
}
.lbl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.count {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
}
.opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input, 10px);
  background: var(--surface-2);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.opt svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.opt:hover {
  border-color: var(--border-strong);
}
.opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.radio-pill .rd {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.radio-pill:hover {
  border-color: var(--border-strong);
}
.radio-pill.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.radio-pill.on .rd {
  border-color: var(--accent);
}
.radio-pill.on .rd::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.sec-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0 18px;
}
.reach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-input, 10px);
  background: var(--info-soft);
  color: var(--info);
  font-size: 13px;
  font-weight: 700;
}
.reach svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.reach b {
  font-variant-numeric: tabular-nums;
}
.date-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input, 10px);
  padding: 0 14px;
  height: 44px;
  color: var(--text-muted);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.date-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.date-wrap.input-error {
  border-color: var(--danger, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.date-wrap svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.date-wrap .date-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.date-wrap .date-input::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
  filter: invert(0.5);
}
.composer-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.pn-send-btn {
  padding: 11px 26px;
  font-size: 13.5px;
  border-radius: var(--radius-pill);
}
.pn-send-btn svg {
  width: 16px;
  height: 16px;
}
.preview-card {
  position: sticky;
  top: 90px;
}
.phone {
  background: var(--accent-grad);
  border-radius: 22px;
  padding: 22px 16px 26px;
  min-height: 340px;
  overflow: hidden;
}
.ph-time {
  text-align: center;
  color: #fff;
}
.ph-time .clock {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ph-time .date {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 600;
  margin-top: 2px;
}
.notif {
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nf-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.nf-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.nf-app {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nf-when {
  margin-inline-start: auto;
  font-size: 11px;
  color: #888;
  font-weight: 600;
}
.nf-title {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}
.nf-msg {
  font-size: 13px;
  color: #333;
  margin-top: 3px;
  line-height: 1.4;
}
.mv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mv-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.mv-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.mv-token {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}
.mv-source {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.nt-title {
  font-weight: 700;
  font-size: 13.5px;
}
.nt-sub {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}
.aud {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--surface-3, var(--surface-2));
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
}
.rate {
  font-weight: 700;
}
.badge.sent {
  background: var(--success-soft);
  color: var(--success);
}
.badge.scheduled {
  background: var(--info-soft);
  color: var(--info);
}
.badge.draft {
  background: var(--surface-2);
  color: var(--text-muted);
}
.badge.failed {
  background: var(--danger-soft);
  color: var(--danger);
}
.pn-result {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: none;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border);
}
.pn-result-hero {
  position: relative;
  padding: 32px 24px 24px;
  text-align: center;
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--success) 10%, var(--surface)),
      var(--surface));
  overflow: hidden;
}
.pn-result.st-failed .pn-result-hero {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--danger) 10%, var(--surface)),
      var(--surface));
}
.pn-result.st-pending .pn-result-hero {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--info) 10%, var(--surface)),
      var(--surface));
}
.pn-result-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pn-result-close:hover {
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text);
}
.pn-result-close svg {
  width: 14px;
  height: 14px;
}
.pn-result-status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success-soft);
  color: var(--success);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 10%, transparent);
}
.pn-result-status-icon svg {
  width: 30px;
  height: 30px;
}
.pn-result.st-failed .pn-result-status-icon {
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--danger) 10%, transparent);
}
.pn-result.st-pending .pn-result-status-icon {
  background: var(--info-soft);
  color: var(--info);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--info) 10%, transparent);
}
.pn-result-hero h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.pn-result-hero .pn-result-status-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}
.pn-result.st-failed .pn-result-status-label {
  color: var(--danger);
}
.pn-result.st-pending .pn-result-status-label {
  color: var(--info);
}
.pn-result-recipient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pn-result-game-thumb {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.pn-result-game-thumb svg {
  width: 13px;
  height: 13px;
}
.pn-result-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pn-result-game {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.pn-result-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px 24px;
  background: var(--surface);
}
.pn-result-error {
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-word;
}
.pn-result-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
}
.pn-result-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  padding: 8px 10px 4px;
}
.pn-result-card-langs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pn-result-lang {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface);
}
.pn-result-lang-tag {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 2px 6px;
  margin-top: 1px;
}
.pn-result-lang p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}
.pn-result .modal-actions {
  margin: 0;
  padding: 0 24px 24px;
  border-top: none;
  background: var(--surface);
  justify-content: stretch;
}
.pn-result .modal-actions .btn {
  flex: 1;
  justify-content: center;
}
.pn-dd {
  position: relative;
}
.pn-dd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 11px 13px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.pn-dd-trigger:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.pn-dd.open .pn-dd-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.pn-dd-icon {
  display: flex;
  color: var(--accent);
  flex-shrink: 0;
}
.pn-dd-icon svg {
  width: 17px;
  height: 17px;
}
.pn-dd-label {
  flex: 1;
  text-align: start;
}
.pn-dd-caret {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.pn-dd.open .pn-dd-caret {
  transform: rotate(180deg);
}
.pn-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pn-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pn-dd-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.pn-dd-item:hover {
  background: var(--surface-2);
}
.pn-dd-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.pn-dd-item.active svg {
  color: var(--accent);
}
.pn-auto-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(
      700px 220px at 100% 0%,
      rgba(255, 255, 255, 0.14),
      transparent 60%),
    var(--accent-grad);
  flex-wrap: wrap;
}
.pn-auto-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pn-auto-hero-icon svg {
  width: 22px;
  height: 22px;
}
.pn-auto-hero-text h3 {
  font-size: 16px;
  font-weight: 800;
}
.pn-auto-hero-text .muted {
  color: rgba(255, 255, 255, 0.8) !important;
}
.pn-auto-hero-count {
  text-align: center;
  padding: 0 22px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.25);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.25);
}
.pn-auto-hero-count .n {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.pn-auto-hero-count .l {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  white-space: nowrap;
}
.pn-auto-hero .btn-primary {
  background: #fff;
  color: var(--accent);
  margin-inline-start: auto;
}
.pn-auto-hero .btn-primary:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.9);
}
@media (max-width: 720px) {
  .pn-auto-hero-count {
    border: none;
    padding: 0;
  }
  .pn-auto-hero .btn-primary {
    margin-inline-start: 0;
  }
}
.pn-auto-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pn-auto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pn-auto-card.is-on {
  border-color: var(--accent);
}
[data-theme=dark] .pn-auto-card {
  background:
    linear-gradient(
      165deg,
      #101526 0%,
      #0d1120 60%);
}
.pn-auto-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 19px;
  flex-wrap: wrap;
}
.pn-auto-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pn-auto-card-icon svg {
  width: 19px;
  height: 19px;
}
.pn-auto-card-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pn-auto-card-title strong {
  font-size: 14.5px;
}
.pn-auto-card-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pn-auto-card-status.is-on {
  color: var(--success);
}
.pn-auto-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pn-auto-expand-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
.pn-auto-expand-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s;
}
.pn-auto-expand-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}
.pn-auto-expand-btn.open {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.pn-auto-expand-btn.open svg {
  transform: rotate(180deg);
}
.pn-auto-card-body {
  padding: 4px 19px 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .pn-auto-card-body {
    grid-template-columns: 1fr;
  }
}
.pn-auto-savebar {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 1080px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compose-grid {
    grid-template-columns: 1fr;
  }
  .preview-card {
    position: static;
  }
}
@media (max-width: 700px) {
  .opts {
    grid-template-columns: 1fr;
  }
}
.stat-grid .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.stat-grid .stat .ico-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.stat-grid .stat .ico-wrap svg,
.stat-grid .stat .ico-wrap span {
  width: 21px;
  height: 21px;
  display: flex;
}
.stat-grid .stat .ico-wrap svg {
  width: 21px;
  height: 21px;
}
.stat-grid .stat .label {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.stat-grid .stat .value {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3px;
}
.cms-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  height: calc(100vh - 80px);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.cms {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cms-list {
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.cms-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.cms-panel-count {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
}
.cms-list-head {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cms-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  padding: 8px 13px;
  color: var(--text-muted);
}
.cms-search svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.cms-search input {
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  width: 100%;
}
.cms-search input::placeholder {
  color: var(--text-faint);
}
.pages {
  overflow-y: auto;
  flex: 1;
}
.page-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--dur-fast, 0.15s);
  position: relative;
}
.page-item:hover {
  background: var(--surface-2);
}
.page-item.active {
  background: var(--accent-soft);
}
.page-item.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.page-item.active .pg-ic {
  background: transparent;
  color: var(--accent);
}
.pg-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pg-ic svg,
.pg-ic span {
  width: 16px;
  height: 16px;
  display: flex;
}
.pg-body {
  min-width: 0;
  flex: 1;
}
.pg-title {
  font-weight: 700;
  font-size: 13.5px;
}
.pg-slug {
  color: var(--text-muted);
  font-size: 11.5px;
  margin-top: 2px;
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    monospace;
}
.dotstatus {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.dotstatus.published {
  background: var(--success, #22c55e);
}
.dotstatus.draft {
  background: var(--warning, #f59e0b);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill, 999px);
  font-size: 12px;
  font-weight: 700;
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-pill.published {
  background: var(--success-soft, #d1fae5);
  color: var(--success, #065f46);
}
.status-pill.published::before {
  background: var(--success, #22c55e);
}
.status-pill.draft {
  background: var(--warning-soft, #fef3c7);
  color: var(--warning, #92400e);
}
.status-pill.draft::before {
  background: var(--warning, #f59e0b);
}
.editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.ed-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ed-head h3 {
  font-size: 16px;
  margin: 0;
}
.ed-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  padding: 3px;
  gap: 3px;
}
.lang-tabs button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
}
.lang-tabs button.active {
  background: var(--accent-grad);
  color: #fff;
}
.ed-meta {
  padding: 16px 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.input.title-input {
  font-size: 16px;
  font-weight: 700;
}
.input.slug {
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    monospace;
  font-size: 13px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.tb-select {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 10px;
  outline: none;
  cursor: pointer;
  appearance: auto;
}
.tb-select option {
  background: var(--surface-2);
  color: var(--text);
}
.tb-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tb-btn svg {
  width: 17px;
  height: 17px;
}
.tb-btn:hover {
  background: var(--surface-3, var(--surface));
  color: var(--text);
}
.tb-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.tb-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 6px;
}
.doc {
  padding: 26px 32px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.7;
  font-size: 14.5px;
  color: var(--text);
}
.doc:focus {
  outline: none;
}
.doc h1 {
  font-size: 24px;
  margin: 0 0 6px;
}
.doc h2 {
  font-size: 18px;
  margin: 26px 0 8px;
}
.doc p {
  margin: 0 0 14px;
}
.doc .lead {
  color: var(--text-muted);
}
.doc ul {
  margin: 0 0 14px;
  padding-inline-start: 22px;
}
.doc li {
  margin-bottom: 7px;
}
.doc a {
  color: var(--accent);
}
.doc[dir=rtl] {
  text-align: right;
}
.ed-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ed-foot .meta {
  color: var(--text-faint);
  font-size: 12.5px;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  animation: drawerIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes drawerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-dh-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-dh-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(168, 85, 247, 0.2);
  flex-shrink: 0;
}
.drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.drawer-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.13s;
}
.drawer-close svg {
  width: 14px;
  height: 14px;
}
.drawer-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.drawer-body {
  flex: 1 1 0;
  overflow-y: auto;
  min-height: 0;
}
.drawer-section {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-section:last-child {
  border-bottom: 0;
}
.drawer-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.drawer-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.drawer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.drawer-req {
  color: #ef4444;
  font-size: 13px;
}
.drawer-field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 15px;
}
.drawer-field-foot .field-error {
  margin-top: 0;
}
.drawer-char-count {
  margin-inline-start: auto;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.drawer-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.pn-notify-head {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 12%, var(--surface)),
      var(--surface));
  padding: 20px 24px;
}
.pn-player-notify-head .drawer-sub {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.pn-player-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.pn-notify-icon {
  background: var(--accent-grad);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent);
  overflow: hidden;
}
.pn-notify-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.pn-notify-section {
  background: var(--surface-2);
  margin: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.pn-notify-section:last-child {
  margin-top: 0;
}
.pn-notify-section-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.pn-notify-section-icon svg {
  width: 12px;
  height: 12px;
}
.pn-notify-preview {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.pn-notify-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pn-notify-default {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.pn-notify-default img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pn-notify-default-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}
.pn-notify-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.pn-notify-icon-btn svg,
.pn-notify-icon-btn span {
  width: 16px;
  height: 16px;
}
.pn-notify-icon-btn:hover {
  transform: scale(1.08);
}
.pn-notify-preview-btn {
  position: absolute;
  left: 10px;
  bottom: 10px;
}
.pn-notify-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.15s;
}
.pn-notify-change:hover {
  opacity: 0.8;
}
.pn-notify-upload {
  border-radius: 14px;
  background: var(--surface);
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.pn-notify-upload:hover {
  transform: translateY(-1px);
}
.pn-notify-upload-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.pn-notify-upload-icon svg {
  width: 16px;
  height: 16px;
}
.pn-notify-foot {
  background: var(--surface-2);
}
.cms-status-row {
  display: flex;
  gap: 10px;
}
.cms-status-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.cms-status-btn.sel {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.cms-icon-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 90px;
  border-radius: var(--radius-input);
  border: 1.5px dashed var(--border-strong);
  background: var(--surface-2);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
}
.cms-icon-upload:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cms-icon-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
@media (max-width: 1080px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .cms {
    grid-template-columns: 1fr;
  }
  .cms-list {
    border-inline-end: 0;
    border-bottom: 1px solid var(--border);
    max-height: 280px;
  }
  .ed-meta {
    grid-template-columns: 1fr;
  }
}
[data-theme=light] {
}
[data-theme=light] .card {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme=light] .card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
[data-theme=light] .card-head {
  border-bottom-color: var(--border);
  background:
    linear-gradient(
      180deg,
      rgba(109, 40, 217, 0.025) 0%,
      transparent 100%);
}
[data-theme=light] {
}
[data-theme=light] thead th {
  background: var(--surface-2);
  border-bottom-color: var(--border-strong);
}
[data-theme=light] tbody td {
  border-bottom-color: var(--border);
}
[data-theme=light] tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
[data-theme=light] {
}
[data-theme=light] .thumb {
  background:
    linear-gradient(
      160deg,
      var(--surface-2),
      var(--surface-3));
  border-color: var(--border);
}
[data-theme=light] {
}
[data-theme=light] .act {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(76, 29, 149, 0.04);
}
[data-theme=light] .act:hover {
  background: var(--surface-2);
  box-shadow: 0 2px 8px rgba(76, 29, 149, 0.1);
}
[data-theme=light] {
}
[data-theme=light] .chip {
  background: var(--surface);
  border-color: var(--border-strong);
}
[data-theme=light] .chip.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(126, 34, 206, 0.28);
}
[data-theme=light] {
}
[data-theme=light] .page-btn {
  background: var(--surface);
  border-color: var(--border-strong);
}
[data-theme=light] .page-btn.active {
  box-shadow: 0 2px 10px rgba(126, 34, 206, 0.28);
}
[data-theme=light] {
}
[data-theme=light] .modal-overlay {
  background: rgba(13, 17, 43, 0.4);
}
[data-theme=light] .modal {
  background:
    linear-gradient(
      165deg,
      #ffffff 0%,
      #fbf9ff 100%);
  box-shadow: var(--shadow);
}
[data-theme=light] {
}
[data-theme=light] .metric {
  background:
    linear-gradient(
      165deg,
      #ffffff 0%,
      #faf8ff 100%);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(76, 29, 149, 0.03);
}
[data-theme=light] {
}
[data-theme=light] .switch {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
[data-theme=light] .switch.on {
  background: var(--accent-grad);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(126, 34, 206, 0.34);
}
[data-theme=light] {
}
[data-theme=light] .upload-box {
  border-color: var(--border-strong);
}
[data-theme=light] {
}
[data-theme=light] .stat-grid .stat {
  box-shadow: var(--shadow-sm);
}
[data-theme=light] .stat-grid .stat:hover {
  box-shadow: var(--shadow);
}
[data-theme=light] {
}
[data-theme=light] .tp-item {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme=light] .tp-item.p1 {
  border-color: var(--accent);
}
[data-theme=light] {
}
[data-theme=light] .savebar {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-top-color: var(--border-strong);
}
[data-theme=light] {
}
[data-theme=light] .seg {
  border-color: var(--border-strong);
}
[data-theme=light] .seg button:hover:not(.active) {
  background: var(--accent-soft);
  color: var(--accent);
}
[data-theme=light] {
}
[data-theme=light] .lb-dd-toggle {
  background: var(--surface);
  border-color: var(--border-strong);
}
[data-theme=light] .lb-dd-pop {
  box-shadow: var(--shadow);
}
[data-theme=light] {
}
[data-theme=light] .page-item:hover {
  background: var(--surface-3);
}
[data-theme=light] .page-item.active {
  background: var(--accent-soft);
}
[data-theme=light] {
}
[data-theme=light] .opt {
  background: var(--surface);
  border-color: var(--border-strong);
}
[data-theme=light] {
}
[data-theme=light] .adm-more-pill {
  border-color: var(--border-strong);
}
.game-preview-modal {
  background: var(--surface-2);
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  width: min(760px, 95vw);
  display: flex;
  flex-direction: column;
  max-height: 95vh;
  overflow: hidden;
}
.phone-frame {
  display: flex;
  justify-content: center;
  padding: 16px 24px 24px;
}
.phone-shell {
  width: 100%;
  aspect-ratio: 5/3;
  background: #0a0a0a;
  border-radius: 20px;
  border: 8px solid #2a2a2a;
  box-shadow: 0 0 0 2px #444, 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.phone-home {
  width: 60px;
  height: 4px;
  background: #444;
  border-radius: 4px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.dash-hero {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .dash-hero {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .dash-hero {
    grid-template-columns: repeat(2, 1fr);
  }
}
.dash-hero-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 17px;
}
[data-theme=light] .dash-hero-tile {
  background: var(--surface);
}
.dash-hero-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--surface-3);
  color: var(--text-muted);
}
.dash-hero-icon svg {
  width: 18px;
  height: 18px;
}
.dash-ic-accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.dash-ic-info {
  background: var(--info-soft);
  color: var(--info);
}
.dash-ic-gold {
  background: var(--gold-soft);
  color: var(--gold);
}
.dash-ic-success {
  background: var(--success-soft);
  color: var(--success);
}
.dash-ic-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.dash-hero-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.dash-hero-value {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.dash-hero-of {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.dash-text-danger {
  color: var(--danger);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 640px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}
.dash-grid-secondary {
  align-items: stretch;
}
.dash-span-3 {
  grid-column: span 3;
}
.dash-span-4 {
  grid-column: span 4;
}
.dash-span-5 {
  grid-column: span 5;
}
.dash-span-7 {
  grid-column: span 7;
}
@media (max-width: 1100px) {
  .dash-span-3,
  .dash-span-4,
  .dash-span-5,
  .dash-span-7 {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .dash-span-3,
  .dash-span-4,
  .dash-span-5,
  .dash-span-7 {
    grid-column: 1/-1;
  }
}
.dash-card-flex {
  display: flex;
  flex-direction: column;
}
.dash-card-flex .card-head {
  flex-shrink: 0;
}
.dash-card-flex .card-body {
  flex: 1;
  min-height: 0;
}
.dash-gauge-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.dash-gauge-body::before,
.dash-gauge-body::after {
  content: "";
  flex: 1;
}
.dash-gauge-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.dash-gauge-svg {
  width: 100%;
  display: block;
}
.dash-gauge-arc {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-gauge-readout {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dash-gauge-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.dash-gauge-pct {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
}
.dash-gauge-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}
.dash-gauge-tick {
  position: absolute;
  bottom: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-faint);
}
.dash-gauge-tick-lo {
  left: 2%;
}
.dash-gauge-tick-hi {
  right: 2%;
}
.dash-gauge-rows {
  display: flex;
  flex-direction: column;
}
.dash-gauge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  transition: background 0.15s;
}
.dash-gauge-row:hover {
  background: var(--surface-2);
}
.dash-gauge-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-gauge-row-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.dash-gauge-row-value {
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dash-gauge-row-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dash-gauge-row-total {
  border-bottom: none;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid var(--border);
}
.dash-gauge-row-total .dash-gauge-row-label {
  font-weight: 700;
  color: var(--text);
}
.dash-gauge-row-total .dash-gauge-row-value {
  font-size: 15px;
}
.dash-pb-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-pb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.dash-pb-pct {
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.dash-pb-pct-sign {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
}
.dash-pb-pct-label {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}
.dash-pb-total {
  text-align: end;
}
.dash-pb-total-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.dash-pb-total-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.dash-pb-track {
  display: flex;
  height: 10px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface-3);
}
.dash-pb-fill-active {
  background: var(--accent-grad, var(--accent));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-pb-fill-suspended {
  background: var(--danger);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-pb-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
}
.dash-pb-square {
  aspect-ratio: 1;
  border-radius: 7px;
  transition: transform 0.15s;
}
.dash-pb-square:hover {
  transform: scale(1.08);
}
.dash-pb-square-active {
  background: var(--accent-grad, var(--accent));
}
.dash-pb-square-suspended {
  background: var(--danger);
}
.dash-donut-body {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 176px;
}
.dash-donut {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
}
.dash-donut.dash-flip {
  transform: scaleX(-1);
}
.dash-flip .dash-donut-text {
  transform: scaleX(-1);
  transform-origin: 60px 60px;
}
.dash-donut-ring {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: dashRingIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
@keyframes dashRingIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.dash-donut-seg {
  cursor: pointer;
  transition:
    stroke-width 0.15s,
    opacity 0.15s,
    stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-donut-seg-active {
  stroke-width: 15;
}
.dash-donut-seg-dim {
  opacity: 0.35;
}
.dash-legend {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  min-width: 0;
}
.dash-legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  border-radius: 8px;
  padding: 3px 6px;
  margin: 0 -6px;
  transition: background 0.15s;
}
.dash-legend-row:hover {
  background: var(--surface-2);
}
.dash-legend-label {
  color: var(--text-muted);
  font-weight: 600;
  flex: 1;
}
.dash-legend-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dash-legend-total {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 2px;
}
.dash-legend-total .dash-legend-label {
  font-weight: 700;
  color: var(--text);
}
.dash-legend-total .dash-legend-value {
  font-weight: 800;
}
.dash-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-device-body {
  display: flex;
  flex-direction: column;
}
.dash-device-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.dash-device-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-device-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-device-icon svg,
.dash-device-icon svg.ico {
  width: 18px;
  height: 18px;
}
.dash-device-main {
  flex: 1;
  min-width: 0;
}
.dash-device-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dash-device-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.dash-device-pct {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.dash-device-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.dash-device-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-device-count {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.dash-game-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 176px;
  justify-content: center;
}
.dash-gamerank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 176px;
  justify-content: center;
}
.dash-gamerank {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition:
    border-color 0.15s,
    transform 0.15s,
    background 0.15s;
  opacity: 0;
  animation: dashRankcardIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
[data-theme=light] .dash-gamerank {
  background: var(--surface);
}
.dash-gamerank:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
  transform: translateX(3px);
}
.dash-gamerank-lead {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
  background: color-mix(in srgb, var(--gold) 6%, var(--surface-2));
}
[data-theme=light] .dash-gamerank-lead {
  background: color-mix(in srgb, var(--gold) 5%, var(--surface));
}
@keyframes dashRankcardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[dir=rtl] .dash-gamerank:hover {
  transform: translateX(-3px);
}
.dash-gamerank-ring {
  --pct: 0%;
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 3px;
  background:
    conic-gradient(
      from 0deg,
      currentColor var(--pct),
      var(--surface-3) var(--pct));
  animation: dashRingIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.dash-gamerank-ring.dash-bar-c0 {
  color: var(--accent);
}
.dash-gamerank-ring.dash-bar-c1 {
  color: var(--info);
}
.dash-gamerank-ring.dash-bar-c2 {
  color: var(--success);
}
.dash-gamerank-ring.dash-bar-c3 {
  color: var(--gold);
}
.dash-gamerank-ring.dash-bar-c4 {
  color: var(--danger);
}
@keyframes dashRingIn {
  from {
    background:
      conic-gradient(
        from 0deg,
        currentColor 0%,
        var(--surface-3) 0%);
  }
}
.dash-gamerank-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid var(--surface-2);
  display: grid;
  place-items: center;
}
.dash-gamerank-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-gamerank-fallback {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}
.dash-gamerank-rank {
  position: absolute;
  bottom: -3px;
  inset-inline-end: -3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.dash-gamerank-lead .dash-gamerank-rank {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--surface);
}
.dash-gamerank-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-gamerank-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-gamerank-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dash-gamerank-value {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-inline-start: 8px;
}
.dash-gamerank-value-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.dash-gamerank-spark {
  width: 44px;
  height: 20px;
  flex-shrink: 0;
  overflow: visible;
}
.dash-gamerank-spark polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-gamerank-spark polyline.dash-bar-c0 {
  color: var(--accent);
}
.dash-gamerank-spark polyline.dash-bar-c1 {
  color: var(--info);
}
.dash-gamerank-spark polyline.dash-bar-c2 {
  color: var(--success);
}
.dash-gamerank-spark polyline.dash-bar-c3 {
  color: var(--gold);
}
.dash-gamerank-spark polyline.dash-bar-c4 {
  color: var(--danger);
}
.dash-game-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-game-avatar {
  width: 34px;
  height: 34px;
  font-size: 12.5px;
  flex-shrink: 0;
}
.dash-game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.dash-game-info {
  flex: 1;
  min-width: 0;
}
.dash-game-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
  gap: 10px;
}
.dash-game-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-game-plays {
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.dash-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 20px;
}
.dash-mod-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-mod-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 2px;
}
.dash-mod-hero-ring {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.dash-mod-hero-ring svg {
  width: 100%;
  height: 100%;
}
.dash-mod-hero-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.dash-mod-hero-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.dash-mod-hero-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}
.dash-mod-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash-mod-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 12px 10px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
  opacity: 0;
  animation: dashTileIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
[data-theme=light] .dash-mod-tile {
  background: var(--surface);
}
.dash-mod-tile:nth-child(1) {
  animation-delay: 0.1s;
}
.dash-mod-tile:nth-child(2) {
  animation-delay: 0.18s;
}
.dash-mod-tile:nth-child(3) {
  animation-delay: 0.26s;
}
.dash-mod-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
@keyframes dashTileIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.dash-mod-tile-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.dash-mod-tile-icon svg {
  width: 14px;
  height: 14px;
}
.dash-mod-tile-value {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.dash-mod-tile-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.dash-panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: flex-start;
}
.dash-bar-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.dash-bar-row-value {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dash-bar-track {
  width: 100%;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-bar-ongoing {
  background: var(--accent-grad);
}
.dash-bar-upcoming {
  background: var(--info);
}
.dash-bar-ended {
  background: var(--text-faint);
}
.dash-bar-gold {
  background: var(--gold);
}
.dash-bar-ios {
  background: var(--accent);
}
.dash-bar-android {
  background: var(--success);
}
.card-head-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.card-head-icon svg,
.card-head-icon svg.ico {
  width: 15px;
  height: 15px;
}
.dash-country-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-country-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-country-flag {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 17px;
  overflow: hidden;
}
.dash-country-main {
  flex: 1;
  min-width: 0;
}
.dash-country-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dash-country-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.dash-country-count {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.dash-country-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-country-track {
  flex: 1;
}
.dash-country-pct {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 26px;
  text-align: right;
}
.dash-bar-web {
  background: var(--info);
}
.dash-bar-c0 {
  background: var(--accent-grad);
}
.dash-bar-c1 {
  background: var(--info);
}
.dash-bar-c2 {
  background: var(--success);
}
.dash-bar-c3 {
  background: var(--gold);
}
.dash-bar-c4 {
  background: var(--danger);
}
.dash-stack-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
}
.dash-stack-bar .dash-stack-seg:first-child {
  border-start-start-radius: var(--radius-pill);
  border-end-start-radius: var(--radius-pill);
}
.dash-stack-bar .dash-stack-seg:last-child {
  border-start-end-radius: var(--radius-pill);
  border-end-end-radius: var(--radius-pill);
}
.dash-stack-seg {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-quick-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}
.dash-quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: opacity 0.15s;
  opacity: 0;
  animation: dashQuickRowIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.dash-quick-row:last-child {
  border-bottom: none;
}
.dash-quick-row:hover {
  opacity: 0.7;
}
.dash-quick-row:nth-child(1) {
  animation-delay: 0.05s;
}
.dash-quick-row:nth-child(2) {
  animation-delay: 0.11s;
}
.dash-quick-row:nth-child(3) {
  animation-delay: 0.17s;
}
.dash-quick-row:nth-child(4) {
  animation-delay: 0.23s;
}
@keyframes dashQuickRowIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
[dir=rtl] .dash-quick-row {
  animation-name: dashQuickRowInRtl;
}
@keyframes dashQuickRowInRtl {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.dash-quick-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--accent);
  flex-shrink: 0;
}
.dash-quick-icon svg {
  width: 14px;
  height: 14px;
}
.dash-quick-label {
  flex: 1;
  font-weight: 600;
  font-size: 13.5px;
}
.dash-quick-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dash-tip-rich {
  position: relative;
  cursor: default;
}
.dash-tip-box {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s, transform 0.12s;
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 10px 13px;
  white-space: nowrap;
  min-width: max-content;
}
.dash-tip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateX(-50%) translateY(-6px) rotate(45deg);
}
.dash-tip-rich:hover .dash-tip-box {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dash-tip-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.dash-tip-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.dash-tip-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dash-tip-value {
  color: var(--text);
  font-weight: 800;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
