:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --bg-elev: #12141c;
  --bg-elev-2: #171a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(209, 167, 111, 0.22);
  --text: #f4f2ec;
  --muted: #b3ac9f;
  --gold: #d1a76f;
  --gold-soft: rgba(209, 167, 111, 0.1);
  --violet-soft: rgba(123, 92, 255, 0.08);
  --shadow: 0 28px 72px rgba(3, 5, 10, 0.1), 0 12px 28px rgba(3, 5, 10, 0.06), 0 2px 8px rgba(3, 5, 10, 0.04), 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --font-body: "Manrope", Inter, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 760px 300px at top center, rgba(255, 244, 214, 0.08), transparent 62%),
    radial-gradient(ellipse 640px 260px at top center, rgba(209, 167, 111, 0.14), transparent 58%),
    radial-gradient(ellipse 920px 360px at top center, rgba(123, 92, 255, 0.08), transparent 66%),
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.09), transparent 22%),
    radial-gradient(circle at top right, rgba(123, 92, 255, 0.07), transparent 28%),
    linear-gradient(180deg, #08080c 0%, #12131a 42%, #0b0c11 100%);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
}

body.viewer-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.viewer-page {
  --viewer-max-width: 1380px;
  --viewer-shell-width: min(100%, var(--viewer-max-width));
  --viewer-shell-gutter: clamp(12px, 3vw, 24px);
  --viewer-shell-vspace: clamp(16px, 2.6vw, 30px);
  --viewer-topbar-offset: 14px;
  --viewer-x-padding: clamp(12px, 3vw, 24px);
  --viewer-y-padding: clamp(16px, 2.6vw, 30px);
  --viewer-topbar-gap: 14px;
  padding: calc(var(--viewer-y-padding) + var(--viewer-topbar-offset)) var(--viewer-shell-gutter) 64px;
  scrollbar-gutter: stable;
}

.luxe-shell {
  max-width: var(--viewer-shell-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 24px;
}

.luxe-hero,
.luxe-grid-primary,
.luxe-grid-secondary,
.luxe-grid-guide {
  display: grid;
  gap: 18px;
  align-items: start;
}

.luxe-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.luxe-grid-primary {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.luxe-grid-guide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.luxe-grid-secondary {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.viewer-v3 .luxe-hero-copy,
.viewer-v3 .luxe-summary-panel,
.viewer-v3-panel {
  min-width: 0;
}

.viewer-v3 .luxe-hero-copy,
.viewer-v3 .luxe-summary-panel,
.viewer-v3-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(24, 24, 32, 0.94), rgba(12, 13, 18, 0.98));
  box-shadow: 0 12px 30px rgba(3, 5, 10, 0.08), 0 4px 12px rgba(3, 5, 10, 0.05);
}

.viewer-v3 .luxe-hero-copy {
  padding: 40px;
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.1), transparent 24%),
    radial-gradient(circle at bottom right, rgba(123, 92, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(22, 23, 31, 0.96), rgba(12, 13, 19, 0.98));
}

.viewer-v3 .luxe-summary-panel,
.viewer-v3-panel {
  overflow: hidden;
}

.viewer-v3 .luxe-summary-panel {
  padding: 24px;
}

.luxe-kicker,
.luxe-panel-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.luxe-title {
  margin: 14px 0 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.luxe-copy {
  margin: 20px 0 0;
  max-width: 58ch;
  color: #d8d5cd;
  font-size: 17px;
  line-height: 1.75;
}

.luxe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.luxe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.luxe-button-primary {
  background: linear-gradient(135deg, #d1a76f, #885f2b);
  color: #150f08;
  font-weight: 700;
}

.luxe-button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.luxe-search {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  max-width: 640px;
}

.luxe-search label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.luxe-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.luxe-search-row input,
.luxe-search-row button {
  min-height: 54px;
  border-radius: var(--radius-md);
}

.luxe-search-row input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 16px;
}

.luxe-search-row button {
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(209, 167, 111, 0.16), rgba(123, 92, 255, 0.14));
  color: #f8f3ea;
  cursor: pointer;
}

.luxe-panel-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 0 0;
}

.luxe-panel-header.compact {
  padding: 0 0 18px;
}

.luxe-panel-header h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.luxe-panel-description {
  margin: 8px 0 0;
  max-width: 56ch;
  color: #b8b0a4;
  font-size: 14px;
  line-height: 1.65;
}

.luxe-summary-grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.luxe-summary-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.luxe-summary-label {
  color: #a59c90;
  font-size: 13px;
}

.luxe-summary-value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.luxe-empty-state {
  padding: 24px;
  color: #d7d4cc;
  line-height: 1.7;
}

.luxe-profile-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.luxe-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.luxe-profile-name {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.03;
}

.luxe-profile-login {
  margin-top: 6px;
  color: #a59c90;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.luxe-profile-rank {
  min-width: 84px;
  padding: 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  font-weight: 700;
}

.luxe-profile-intro {
  color: #d7d4cc;
  line-height: 1.65;
}

.luxe-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.luxe-profile-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.luxe-profile-grid span {
  color: #a59c90;
  font-size: 13px;
}

.luxe-profile-grid strong {
  font-size: 18px;
}

.luxe-top-spotlight,
.luxe-top-list,
.luxe-shop-list,
.luxe-feed-list,
.luxe-info-list,
.luxe-command-list,
.luxe-mechanics-list {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.luxe-shop-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start;
}

.luxe-top-spotlight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 10px;
}

.luxe-spotlight-card,
.luxe-top-row,
.luxe-shop-card,
.luxe-command-list div,
.luxe-feed-row {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.luxe-spotlight-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.luxe-spotlight-card-1 { border-color: rgba(212, 164, 96, 0.28); }
.luxe-spotlight-card-2 { border-color: rgba(154, 164, 182, 0.24); }
.luxe-spotlight-card-3 { border-color: rgba(176, 110, 72, 0.24); }

.luxe-spotlight-rank {
  color: #a59c90;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.luxe-spotlight-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.luxe-spotlight-login {
  color: #a59c90;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.luxe-spotlight-balance {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}

.luxe-top-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.luxe-top-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.luxe-top-rank {
  min-width: 68px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
}

.luxe-top-name {
  font-size: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.luxe-top-login {
  margin-top: 5px;
  color: #a59c90;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.luxe-top-balance {
  font-size: 20px;
  font-weight: 700;
  text-align: right;
}

.luxe-top-balance span {
  color: #a59c90;
  font-size: 13px;
  font-weight: 500;
}

.luxe-shop-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.luxe-shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(209, 167, 111, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.luxe-shop-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.luxe-shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.luxe-shop-code {
  padding: 10px 0px 3px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.luxe-shop-name {
  margin: 0;
  font-size: 20px;
  font-family: var(--font-display);
  line-height: 1.15;
}

.luxe-shop-description {
  margin: 0;
  color: #d7d4cc;
  font-size: 14px;
  line-height: 1.45;
  min-height: 40px;
}

.luxe-shop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #a59c90;
  font-size: 14px;
}

.luxe-shop-cta {
  margin-top: 4px;
  color: #e6e0d6;
  font-size: 13px;
}

.luxe-info-list div,
.luxe-mechanics-list div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #d7d4cc;
  line-height: 1.65;
}

.luxe-info-list p,
.luxe-mechanics-list p {
  margin: 0;
}

#viewer-help .luxe-info-list strong,
#viewer-help .luxe-mechanics-list strong {
  font-size: 16px;
}

.luxe-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 164, 96, 0.14);
  color: #f5e6d0;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.luxe-knowledge-stack {
  display: grid;
  gap: 16px;
}

.luxe-command-list div,
.luxe-feed-row {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.luxe-command-list div {
  grid-template-columns: minmax(118px, 148px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.luxe-command-list span:first-child {
  padding-top: 2px;
}

.luxe-command-list span:last-child,
.luxe-feed-text {
  color: #d7d4cc;
  line-height: 1.55;
}

.luxe-feed-time {
  color: #a59c90;
  font-size: 13px;
}

.luxe-feed-status {
  margin-left: 8px;
  color: #a59c90;
}

@media (max-width: 1100px) {
  .luxe-hero,
  .luxe-grid-primary,
  .luxe-grid-guide,
  .luxe-grid-secondary,
  .luxe-profile-grid,
  .luxe-top-spotlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .viewer-page {
    padding: 18px 14px 36px;
  }

  .luxe-title {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 56px);
  }

  .viewer-v3 .luxe-hero-copy,
  .viewer-v3 .luxe-summary-panel {
    padding: 28px;
  }

  .luxe-search-row,
  .luxe-top-row,
  .luxe-profile-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .luxe-top-balance {
    text-align: left;
  }

  .luxe-profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Viewer v3 layout bindings */
.viewer-page-v3 .luxe-shell {
  gap: 24px;
}

.viewer-v3 {
  width: var(--viewer-shell-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  justify-items: stretch;
}

body.viewer-route-giveaways .viewer-v3 {
  max-width: none;
  width: 100%;
}

.viewer-v3-hero,
.viewer-v3-main-grid,
.viewer-v3-help-grid,
.viewer-v3-bottom-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.viewer-v3-hero {
  grid-template-columns: 1fr;
  gap: 0;
}

.viewer-v3-main-grid,
.viewer-v3-bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.viewer-v3-help-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.viewer-v3-hero-main,
.viewer-v3-panel {
  min-width: 0;
}

.viewer-v3-hero-main {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.1), transparent 24%),
    radial-gradient(circle at bottom right, rgba(123, 92, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(22, 23, 31, 0.96), rgba(12, 13, 19, 0.98));
  box-shadow: var(--shadow);
  padding: 24px;
}

.viewer-v3-title {
  margin: 8px 0 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.viewer-v3-copy {
  margin: 10px 0 0;
  max-width: 62ch;
  color: #d8d5cd;
  font-size: 15px;
  line-height: 1.55;
}

.viewer-v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.viewer-v3-search-card,
.viewer-v3-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(24, 24, 32, 0.94), rgba(12, 13, 18, 0.98));
  box-shadow: var(--shadow);
}

.viewer-v3-search-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.viewer-v3-panel-search {
  padding: 18px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.viewer-v3-search-card label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.viewer-v3-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.viewer-v3-search-row input,
.viewer-v3-search-row button {
  min-height: 48px;
  border-radius: var(--radius-md);
}

.viewer-v3-search-row input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 16px;
}

.viewer-v3-search-row button {
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(209, 167, 111, 0.16), rgba(123, 92, 255, 0.14));
  color: #f8f3ea;
  cursor: pointer;
}

.viewer-v3-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.viewer-v3-summary-grid .luxe-summary-card {
  min-height: 112px;
}

.viewer-v3-panel {
  overflow: hidden;
}

.viewer-v3-panel .luxe-panel-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.viewer-v3-panel .luxe-panel-header h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.viewer-v3-panel .luxe-panel-description {
  margin: 8px 0 0;
  max-width: 56ch;
  color: #b8b0a4;
  font-size: 14px;
  line-height: 1.65;
}

.viewer-v3-knowledge {
  display: grid;
  gap: 16px;
}

@media (max-width: 1100px) {
  .viewer-v3-hero,
  .viewer-v3-main-grid,
  .viewer-v3-help-grid,
  .viewer-v3-bottom-grid,
  .viewer-v3-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .viewer-v3-hero-main,
  .viewer-v3-search-card,
  .viewer-v3-panel {
    border-radius: 24px;
  }

  .viewer-v3-hero-main {
    padding: 20px;
  }

  .viewer-v3-panel-search {
    padding: 16px 20px 18px;
    border-radius: 0;
  }

  .viewer-v3-title {
    max-width: 100%;
    font-size: clamp(28px, 9vw, 40px);
  }

  .viewer-v3-search-row,
  .luxe-top-row,
  .luxe-profile-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .luxe-top-balance {
    text-align: left;
  }

  .luxe-profile-grid,
  .luxe-top-spotlight {
    grid-template-columns: 1fr;
  }
}

/* Viewer v3 structure refresh */
.viewer-v3 {
  gap: 20px;
}

.viewer-v3-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 20px 10px;
}

.viewer-v3-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0 0 20px 20px;
  background: rgba(58, 60, 78, 0.24);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 20px rgba(3, 5, 10, 0.08), 0 2px 8px rgba(3, 5, 10, 0.04);
}

.viewer-v3-topbar-spacer {
  min-height: 1px;
}

.viewer-v3-online-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(114, 223, 155, 0.18);
  border-radius: 999px;
  background: rgba(114, 223, 155, 0.08);
  color: #d8f4dd;
  font-size: 13px;
  font-weight: 700;
}

.viewer-v3-topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
}

.viewer-v3-topnav a {
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: #cfc8bc;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.viewer-v3-topnav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f4ede2;
  transform: translateY(-1px);
}

.viewer-v3-topnav a.is-active {
  background: linear-gradient(180deg, rgba(209, 167, 111, 0.18), rgba(209, 167, 111, 0.08));
  color: #f0e2c9;
}

.viewer-v3-topnav a,
.viewer-v3-topnav details,
.viewer-v3-topnav summary {
  color: #d9dfef;
  text-decoration: none;
}

.viewer-v3-topnav summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.viewer-v3-topnav summary::-webkit-details-marker {
  display: none;
}

.viewer-v3-topnav summary::after {
  content: "▾";
  margin-left: 8px;
  font-size: 10px;
  opacity: 0.8;
}

.viewer-v3-topnav details {
  position: relative;
}

.viewer-v3-topnav summary,
.viewer-v3-topnav a {
  white-space: nowrap;
}

.viewer-v3-topnav details[open] summary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.viewer-v3-topnav details[open] summary::after {
  transform: rotate(180deg);
}

.viewer-v3-topnav details[open] .viewer-v3-subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  width: max-content;
  padding: 8px;
  gap: 6px;
  display: grid;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 20, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(3, 5, 10, 0.25);
  z-index: 20;
}

.viewer-v3-subnav a {
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 12px;
}

.viewer-v3-subnav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.viewer-v3-nav-group {
  margin: 0;
}

.viewer-v3-mobile-bottom-nav {
  display: none;
}

.viewer-v3-route-shell {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: inherit;
}

.viewer-v3-route-frame {
  display: grid;
  gap: 18px;
  align-items: start;
}

.viewer-v3-route-frame--with-sidebar {
  grid-template-columns: 1fr;
}

.viewer-v3-route-main,
.viewer-v3-route-sidebar {
  min-width: 0;
}

.viewer-v3-route-sidebar {
  display: grid;
  gap: 12px;
}

.viewer-v3-side-panel {
  margin: 0;
}

.viewer-v3-side-panel .luxe-panel-header {
  padding-bottom: 12px;
}

.viewer-v3-side-panel .luxe-panel-header h2 {
  margin-top: 4px;
  font-size: clamp(24px, 1.95vw, 30px);
}

.viewer-v3-side-links {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.viewer-v3-side-links a,
.viewer-v3-side-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
}

.viewer-v3-side-links a:hover,
.viewer-v3-side-action:hover {
  border-color: rgba(209, 167, 111, 0.3);
  background: rgba(209, 167, 111, 0.1);
  color: #f7efe2;
}

.viewer-v3-side-list {
  margin: 0;
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
  color: #d3cec4;
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
}

.viewer-v3-side-list li {
  margin: 0;
}

.viewer-v3-side-list--ordered {
  list-style: decimal;
  padding: 0 14px 14px 30px;
}

.viewer-v3-side-list strong {
  color: #eddcc2;
}

.viewer-v3-side-tasks-bar {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.viewer-v3-side-action {
  width: 100%;
}

.viewer-v3-route-shell.viewer-v3-inventory-grid,
.viewer-v3-route-shell.viewer-v3-help-grid,
.viewer-v3-route-shell.viewer-v3-referrals-grid,
.viewer-v3-route-shell.viewer-v3-bottom-grid {
  align-items: start;
}

.viewer-v3-home-hero,
.viewer-v3-home-map,
.viewer-v3-home-rail,
.viewer-v3-home-summary,
.viewer-v3-home-tile {
  min-width: 0;
}

.viewer-v3-home-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(24, 24, 32, 0.96), rgba(12, 13, 18, 0.99));
  overflow: hidden;
}

[data-viewer-page][hidden] {
  display: none !important;
}

.viewer-preload [data-viewer-page] {
  visibility: hidden;
}

.viewer-v3-status-shell[hidden] {
  display: none !important;
}

.viewer-v3-status-shell {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  width: min(100% - 32px, 760px);
  transform: translateX(-50%);
  display: grid;
  pointer-events: none;
}

.viewer-v3-modal-shell[hidden] {
  display: none !important;
}

.viewer-v3-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 9, 14, 0.76);
  backdrop-filter: blur(8px);
}

.viewer-v3-modal {
  width: min(100%, 520px);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 16, 24, 0.98);
  box-shadow: 0 22px 56px rgba(3, 5, 10, 0.2), 0 8px 24px rgba(3, 5, 10, 0.12);
}

.viewer-v3-modal-purchase {
  width: min(100%, 860px);
}

.viewer-v3-modal-purchase .viewer-v3-modal-copy {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 18px 20px;
}

.viewer-v3-modal-purchase .viewer-v3-modal-image {
  grid-row: 1 / span 2;
}

.viewer-v3-modal-purchase .viewer-purchase-quantity-box,
.viewer-v3-modal-purchase p {
  margin: 0;
}

.viewer-purchase-details,
.viewer-purchase-description {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.viewer-purchase-side {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-width: 0;
  align-self: stretch;
}

.viewer-purchase-side-spacer {
  min-height: 1px;
}

.viewer-purchase-description {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.viewer-purchase-description strong {
  color: #f5f1ea;
}

.viewer-lootbox-rewards-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.viewer-lootbox-rewards-preview.is-modal {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  gap: 12px;
  padding: 16px;
}

.responsive-image-frame {
  position: relative;
  isolation: isolate;
}

.responsive-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.02) 65%),
    rgba(255, 255, 255, 0.035);
  background-size: 220% 100%;
  animation: viewer-image-skeleton 1.4s ease-in-out infinite;
}

.responsive-image-frame.is-loaded::before {
  opacity: 0;
  transition: opacity 240ms ease;
}

.responsive-image-frame > img[data-image-frame="true"] {
  width: 100%;
  height: 100%;
  object-fit: var(--image-fit, cover);
  display: block;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 240ms ease, transform 240ms ease;
}

.responsive-image-frame.is-loaded > img[data-image-frame="true"] {
  opacity: 1;
  transform: scale(1);
}

@keyframes viewer-image-skeleton {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

.viewer-lootbox-rewards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.viewer-lootbox-rewards-preview.is-modal .viewer-lootbox-rewards-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.viewer-lootbox-reward-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.viewer-lootbox-reward-chip-media,
.viewer-lootbox-reward-chip-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.viewer-lootbox-reward-chip-media img {
  object-fit: cover;
  display: block;
}

.viewer-lootbox-reward-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #f4e3c6;
  font-size: 11px;
  font-weight: 800;
}

.viewer-lootbox-reward-chip span:last-child {
  min-width: 0;
  color: #e5dfd5;
  font-size: 13px;
  line-height: 1.35;
}

.viewer-v3-modal h3,
.viewer-v3-modal p {
  margin: 0;
}

.viewer-v3-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.viewer-v3-modal-copy {
  display: grid;
  gap: 8px;
  color: #d3cec4;
  line-height: 1.6;
}

.viewer-v3-modal-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.viewer-v3-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-v3-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.viewer-task-profile-link {
  color: #f0e2c9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.viewer-purchase-quantity-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.viewer-purchase-field {
  display: grid;
  gap: 6px;
}

.viewer-purchase-field span {
  color: #f4e3c6;
  font-size: 13px;
  font-weight: 700;
}

.viewer-purchase-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #f5f1ea;
}

.viewer-v3-modal-purchase .viewer-purchase-quantity-box-lowered {
  margin-top: 0;
}

.viewer-purchase-quantity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.viewer-purchase-quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viewer-purchase-quantity-controls .luxe-button {
  min-width: 46px;
}

.viewer-purchase-quantity-input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f1ea;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font: inherit;
}

.viewer-purchase-quantity-input:focus {
  outline: none;
  border-color: rgba(209, 167, 111, 0.35);
  box-shadow: 0 0 0 3px rgba(209, 167, 111, 0.12);
}

.viewer-v3-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: auto;
  animation: viewerStatusSlideUp 220ms ease;
}

.viewer-v3-status.is-hiding {
  animation: viewerStatusSlideDown 220ms ease forwards;
}

.viewer-v3-status strong,
.viewer-v3-status p {
  margin: 0;
}

.viewer-v3-status p {
  color: #d3cec4;
  line-height: 1.55;
}

.viewer-v3-status-success {
  border-color: rgba(114, 223, 155, 0.2);
  background: rgba(114, 223, 155, 0.08);
}

.viewer-v3-status-error {
  border-color: rgba(255, 112, 112, 0.22);
  background: rgba(255, 112, 112, 0.10);
}

@keyframes viewerStatusSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes viewerStatusSlideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.viewer-v3-status-info {
  border-color: rgba(209, 167, 111, 0.2);
  background: rgba(209, 167, 111, 0.08);
}

.viewer-v3-status button {
  flex: 0 0 auto;
}

.viewer-v3-auth-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  width: min(100%, 280px);
  max-width: min(100%, 280px);
  min-height: 56px;
  padding: 6px 8px 6px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  justify-self: end;
}

.viewer-v3-auth-box-loading {
  pointer-events: none;
}

.viewer-v3-auth-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.viewer-v3-auth-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: viewerAuthSkeleton 1.4s ease-in-out infinite;
}

.viewer-v3-auth-skeleton-label {
  width: 128px;
  height: 14px;
}

.viewer-v3-auth-skeleton-meta {
  width: 164px;
  height: 11px;
}

.viewer-v3-auth-skeleton-button {
  width: 78px;
  height: 32px;
  flex: 0 0 auto;
}

.viewer-v3-auth-avatar-skeleton {
  position: relative;
}

.viewer-v3-auth-avatar-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: viewerAuthSkeleton 1.4s ease-in-out infinite;
}

.luxe-button-primary {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.luxe-button-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 36px rgba(209, 167, 111, 0.22);
  filter: brightness(1.04);
}

.viewer-v3-auth-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.viewer-v3-auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #a9a190;
  font-size: 12px;
  min-width: 0;
}

.viewer-v3-auth-label,
.viewer-v3-auth-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-v3-auth-avatar {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.viewer-v3-auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-v3-auth-label {
  color: #f4e3c6;
  font-size: 13px;
  font-weight: 700;
}

.viewer-v3-auth-copy > span {
  color: #a9a190;
  font-size: 12px;
}

.viewer-v3-auth-box .luxe-button {
  min-height: 32px;
  padding: 6px 12px;
}

.viewer-v3-auth-box .luxe-button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

@keyframes viewerAuthSkeleton {
  100% {
    transform: translateX(100%);
  }
}

.viewer-v3-socials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.viewer-v3-socials-modal input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f1ea;
  font: inherit;
}

.viewer-v3-socials-modal input:focus {
  outline: none;
  border-color: rgba(209, 167, 111, 0.35);
  box-shadow: 0 0 0 3px rgba(209, 167, 111, 0.12);
}

.viewer-v3-lootbox-modal {
  width: min(100%, 980px);
}

.viewer-lootbox-stage {
  position: relative;
  display: grid;
  gap: 14px;
}

.viewer-lootbox-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.viewer-lootbox-rail {
  display: flex;
  gap: 12px;
  padding: 20px;
  transform: translateX(0);
  transition: transform var(--lootbox-duration, 7600ms) cubic-bezier(0.12, 0.8, 0.16, 1);
  will-change: transform;
}

.viewer-lootbox-card {
  flex: 0 0 176px;
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.viewer-lootbox-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.viewer-lootbox-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inventory-item-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #080a0f;
  isolation: isolate;
}

.inventory-item-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.1), rgba(6, 8, 12, 0.28)),
    radial-gradient(circle at center, transparent 45%, rgba(6, 8, 12, 0.14) 100%);
  pointer-events: none;
  z-index: 1;
}

.inventory-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #080a0f;
  filter: brightness(0.84) saturate(0.9);
}

.inventory-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #f4e3c6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-item-icon-lootbox {
  background: rgba(209, 167, 111, 0.12);
}

.inventory-item-icon-points {
  background: rgba(114, 223, 155, 0.1);
}

.inventory-item-icon-usdt {
  background: rgba(255, 112, 112, 0.12);
}

.inventory-item-icon-skin_rub,
.inventory-item-icon-random_game_rub,
.inventory-item-icon-channel_sub,
.inventory-item-icon-telegram_premium_3m,
.inventory-item-icon-vip_24h,
.inventory-item-icon-mute_5m,
.inventory-item-icon-mute_10m {
  background: rgba(123, 92, 255, 0.1);
}

.viewer-v3-modal-mute-item {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.viewer-mute-modal-notice {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(209, 167, 111, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(209, 167, 111, 0.09), rgba(255, 255, 255, 0.03));
}

.viewer-mute-modal-notice strong {
  color: #f4e3c6;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.viewer-mute-modal-notice p,
.viewer-mute-modal-copy p {
  margin: 0;
  color: #d7cfbf;
  line-height: 1.6;
}

.viewer-mute-modal-copy {
  padding: 0;
}

.viewer-mute-modal-field {
  display: grid;
  gap: 10px;
}

.viewer-mute-modal-field span {
  color: #f4e3c6;
  font-size: 13px;
  font-weight: 700;
}

.viewer-mute-modal-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: #f5f1ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.viewer-mute-modal-field input:focus {
  outline: none;
  border-color: rgba(209, 167, 111, 0.28);
  box-shadow: 0 0 0 3px rgba(209, 167, 111, 0.12);
}

.viewer-mute-modal-help {
  margin-top: 10px;
  color: #f0ddbe;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.viewer-v3-modal h3 {
  margin: 0;
}

.viewer-v3-modal-mute-item .viewer-v3-modal-head > div {
  padding-top: 11px;
}

.viewer-mute-modal-error {
  padding: 13px 14px;
  border: 1px solid rgba(255, 112, 112, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 112, 112, 0.1), rgba(255, 112, 112, 0.05));
  color: #ffd2d2;
  font-size: 13px;
  line-height: 1.5;
}

.viewer-v3-modal-game-key {
  max-width: 560px;
}

.viewer-game-key-box {
  padding: 18px;
  border: 1px solid rgba(209, 167, 111, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.viewer-game-key-box code,
.viewer-game-key-inline code {
  color: #f4e3c6;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.viewer-game-key-inline {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(209, 167, 111, 0.16);
  border-radius: 14px;
  background: rgba(209, 167, 111, 0.06);
}

.viewer-game-key-inline span {
  color: #a9a190;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.viewer-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viewer-higher-lower-stage {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(24, 24, 32, 0.9), rgba(12, 13, 18, 0.96));
  box-shadow: var(--shadow);
}

.viewer-higher-lower-card {
  display: grid;
  place-items: center;
  width: 160px;
  aspect-ratio: 2.7 / 3.8;
  border: 1px solid rgba(209, 167, 111, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: #f5f1ea;
  font-size: 44px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(0,0,0,0.24), 0 0 0 1px rgba(209, 167, 111, 0.05) inset;
}

.viewer-higher-lower-last-result {
  color: #cfc6b7;
  font-size: 14px;
  font-weight: 600;
}

.viewer-higher-lower-last-result.is-win {
  color: #d8f4dd;
}

.viewer-higher-lower-last-result.is-loss {
  color: #ffd2d2;
}

.viewer-bigger-smaller-shell {
  display: grid;
  gap: 14px;
}

.viewer-bigger-smaller-arena,
.viewer-bigger-smaller-card,
.viewer-bigger-smaller-start {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(24, 24, 32, 0.9), rgba(12, 13, 18, 0.96));
  box-shadow: var(--shadow);
}

.viewer-bigger-smaller-arena {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at top center, rgba(209, 167, 111, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(26, 24, 21, 0.96), rgba(12, 13, 18, 0.99));
}

.viewer-bigger-smaller-arena-start {
  gap: 16px;
}

.viewer-bigger-smaller-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: center;
  min-height: 320px;
  width: min(100%, 280px);
  padding: 22px 20px;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(28, 24, 18, 0.96), rgba(12, 13, 18, 0.98));
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(209, 167, 111, 0.04) inset;
}

.viewer-bigger-smaller-card-label,
.viewer-bigger-smaller-stat span,
.viewer-bigger-smaller-start-meta,
.viewer-bigger-smaller-option-head span {
  color: #b9b09f;
  font-size: 12px;
}

.viewer-bigger-smaller-card-value {
  display: grid;
  place-items: center;
  width: 212px;
  aspect-ratio: 2.7 / 3.8;
  border: 1px solid rgba(209, 167, 111, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  color: #f5f1ea;
  font-size: 62px;
  font-weight: 700;
  box-shadow:
    0 18px 34px rgba(0,0,0,0.22),
    0 0 0 1px rgba(209, 167, 111, 0.08) inset,
    0 10px 22px rgba(209, 167, 111, 0.08);
}

.viewer-bigger-smaller-card-value-start {
  font-size: 72px;
}

.viewer-bigger-smaller-result {
  color: #cfc6b7;
  min-height: 18px;
  max-width: 34ch;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.viewer-bigger-smaller-result-neutral {
  color: #d9d1c3;
}

.viewer-bigger-smaller-result.is-win {
  color: #d8f4dd;
}

.viewer-bigger-smaller-result.is-loss {
  min-width: min(100%, 420px);
  padding: 14px 18px;
  border: 1px solid rgba(255, 112, 112, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 112, 112, 0.16), rgba(255, 255, 255, 0.03));
  color: #ffe3e3;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 14px 28px rgba(255, 112, 112, 0.08);
}

.viewer-bigger-smaller-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.viewer-bigger-smaller-stat {
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  justify-items: center;
  text-align: center;
}

.viewer-bigger-smaller-stat strong {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.15;
}

.viewer-bigger-smaller-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 640px);
}

.viewer-bigger-smaller-option {
  display: grid;
  gap: 8px;
}

.viewer-bigger-smaller-option.is-disabled {
  opacity: 0.7;
}

.viewer-bigger-smaller-option-button {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid rgba(209, 167, 111, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(209, 167, 111, 0.18), rgba(114, 79, 36, 0.88));
  color: #f5f1ea;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.viewer-bigger-smaller-option-button strong {
  font-size: 22px;
  line-height: 1;
}

.viewer-bigger-smaller-option-button span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.82);
}

.viewer-bigger-smaller-option-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(209, 167, 111, 0.18);
  filter: brightness(1.03);
}

.viewer-bigger-smaller-option-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.18);
}

.viewer-bigger-smaller-option-meta {
  color: #a59c90;
  font-size: 12px;
  text-align: center;
}

.viewer-bigger-smaller-start {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.viewer-bigger-smaller-input {
  display: grid;
  gap: 8px;
}

.viewer-bigger-smaller-input span {
  color: #f0e2c9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-bigger-smaller-input input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f1ea;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
}

.viewer-bigger-smaller-input input.is-invalid {
  border-color: rgba(255, 112, 112, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 112, 112, 0.12);
}

.viewer-bigger-smaller-error {
  color: #ffd2d2;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.viewer-bigger-smaller-start-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.viewer-bigger-smaller-start-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.viewer-bigger-smaller-actions {
  justify-content: stretch;
}

.viewer-bigger-smaller-actions .luxe-button,
.viewer-bigger-smaller-option .luxe-button,
.viewer-bigger-smaller-stats > .luxe-button {
  width: min(100%, 320px);
  min-height: 46px;
}

.viewer-bigger-smaller-cashout {
  width: min(100%, 380px) !important;
  min-height: 58px !important;
  padding: 14px 24px;
  border: 1px solid rgba(209, 167, 111, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 231, 196, 0.96), rgba(209, 167, 111, 0.94));
  color: #120d08;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 34px rgba(209, 167, 111, 0.2);
}

.viewer-bigger-smaller-cashout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(209, 167, 111, 0.24);
  filter: brightness(1.02);
}

.viewer-bigger-smaller-cashout:disabled {
  opacity: 0.55;
  box-shadow: none;
}

.viewer-bigger-smaller-start > .luxe-button {
  width: 100%;
}

@media (max-width: 900px) {
  .viewer-bigger-smaller-page .viewer-giveaway-summary-row,
  .viewer-bigger-smaller-options,
  .viewer-bigger-smaller-start {
    grid-template-columns: 1fr;
  }

  .viewer-bigger-smaller-card {
    width: min(100%, 244px);
    min-height: 286px;
  }

  .viewer-bigger-smaller-card-value {
    width: 176px;
    font-size: 54px;
  }
}

.viewer-lootbox-card strong,
.viewer-lootbox-card span {
  margin: 0;
}

.viewer-lootbox-card span {
  color: #b9b09f;
  font-size: 13px;
}

.viewer-lootbox-marker {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #f1e3ca, #d1a76f);
  z-index: 2;
  box-shadow: 0 0 22px rgba(209, 167, 111, 0.36);
}

.viewer-lootbox-result {
  border-color: rgba(209, 167, 111, 0.24);
  background: rgba(209, 167, 111, 0.08);
  opacity: 0.6;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.viewer-lootbox-result.is-revealed {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 16px 34px rgba(209, 167, 111, 0.16);
}

.viewer-lootbox-result-media {
  margin-bottom: 8px;
}

.viewer-v3-inventory-filters {
  margin-top: 14px;
}

.viewer-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(209, 167, 111, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(209, 167, 111, 0.24), rgba(209, 167, 111, 0.12));
  color: #f4e3c6;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(3, 5, 10, 0.16), 0 6px 18px rgba(3, 5, 10, 0.1);
  backdrop-filter: blur(18px);
}

.viewer-chat-fab span {
  pointer-events: none;
}

.viewer-chat-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff6b6b;
  color: #fff;
  font-size: 12px;
  line-height: 24px;
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.28);
}

.viewer-chat-fab.is-open {
  background: rgba(255, 255, 255, 0.08);
}

.viewer-chat-panel[hidden] {
  display: none !important;
}

.viewer-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
}

.viewer-chat-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 16, 24, 0.96);
  box-shadow: 0 22px 56px rgba(3, 5, 10, 0.18), 0 8px 24px rgba(3, 5, 10, 0.1);
  backdrop-filter: blur(18px);
}

.viewer-chat-head,
.viewer-chat-actions,
.viewer-chat-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viewer-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.viewer-chat-message,
.viewer-chat-empty {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.viewer-chat-message-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.viewer-chat-avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: #f4e3c6;
  font-size: 13px;
  font-weight: 700;
}

.viewer-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-chat-message-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.viewer-chat-message-head span,
.viewer-chat-empty {
  color: #a9a190;
  font-size: 12px;
}

.viewer-chat-message-text {
  color: #f5f1ea;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.viewer-chat-form {
  display: grid;
  gap: 10px;
}

.viewer-chat-form textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f1ea;
  font: inherit;
  resize: vertical;
}

.viewer-chat-form textarea:focus {
  outline: none;
  border-color: rgba(209, 167, 111, 0.35);
  box-shadow: 0 0 0 3px rgba(209, 167, 111, 0.12);
}

[data-viewer-page][id] {
  scroll-margin-top: calc(76px + var(--viewer-topbar-offset, 14px));
}

.viewer-v3-hero {
  align-items: stretch;
}

.viewer-v3-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.viewer-v3-highlight-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.viewer-v3-highlight-label,
.viewer-v3-flow-step {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.viewer-v3-highlight-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.viewer-v3-highlight-card p,
.viewer-v3-flow-card p,
.viewer-v3-search-copy,
.viewer-v3-search-hint,
.viewer-v3-section-head p,
.viewer-v3-profile-empty-copy,
.viewer-v3-profile-empty-list {
  margin: 0;
  color: #d3cec4;
  line-height: 1.65;
}

.viewer-v3-search-copy {
  font-size: 13px;
}

.viewer-v3-search-hint {
  color: #ada596;
  font-size: 12px;
}

.viewer-v3-flow-shell {
  display: grid;
  gap: 18px;
}

.viewer-v3-map-shell {
  display: grid;
  gap: 18px;
}

.viewer-v3-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.viewer-v3-map-card {
  display: grid;
  gap: 12px;
  min-height: 246px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(123, 92, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(21, 22, 30, 0.94), rgba(11, 12, 18, 0.99));
  box-shadow: 0 14px 34px rgba(3, 5, 10, 0.14), 0 5px 14px rgba(3, 5, 10, 0.08);
}

.viewer-v3-map-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.viewer-v3-map-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.viewer-v3-map-card p {
  margin: 0;
  color: #d3cec4;
  line-height: 1.7;
}

.viewer-v3-map-meta {
  color: #f0dfc2;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
  margin-top: auto;
}

.viewer-v3-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.viewer-v3-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  min-width: 176px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #d1a76f, #885f2b);
  box-shadow: 0 12px 24px rgba(9, 8, 14, 0.18);
  color: #150f08;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.viewer-v3-map-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 233, 198, 0.22);
  background: linear-gradient(135deg, #ddb47e, #986934);
  box-shadow: 0 14px 28px rgba(9, 8, 14, 0.22);
}

.viewer-v3-map-link:focus-visible {
  outline: 2px solid rgba(244, 216, 166, 0.82);
  outline-offset: 2px;
}

.viewer-v3-map-link.is-secondary {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 22px rgba(9, 8, 14, 0.14);
  color: var(--text);
}

.viewer-v3-map-link.is-secondary:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 24px rgba(9, 8, 14, 0.18);
}

.viewer-v3-flow-head {
  align-items: flex-start;
}

.viewer-v3-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.viewer-v3-flow-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(123, 92, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(23, 24, 33, 0.94), rgba(11, 12, 18, 0.99));
  box-shadow: 0 18px 38px rgba(3, 5, 10, 0.16), 0 6px 16px rgba(3, 5, 10, 0.08);
}

.viewer-v3-flow-card h2,
.viewer-v3-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.viewer-v3-flow-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.viewer-v3-flow-meta {
  margin-top: auto;
  color: #f0dfc2;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

.viewer-v3-summary {
  display: grid;
  gap: 16px;
  padding: 10px 0px 0px;
}

.viewer-v3-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}

.viewer-v3-section-head p {
  margin-top: 8px;
  max-width: 68ch;
}

.viewer-v3-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0;
}

.viewer-v3-summary-grid .luxe-summary-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
}

.luxe-summary-note {
  color: #a59c90;
  font-size: 13px;
  line-height: 1.5;
}

.viewer-v3-main-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 1fr);
}

.viewer-v3-inventory-grid {
  grid-template-columns: minmax(0, 1fr);
}

#viewer-giveaways-section {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: calc(100vh - 160px);
}

.viewer-v3-panel-giveaways {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 160px);
}

.viewer-v3-bottom-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.viewer-v3-help-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.viewer-v3-spend-list {
  padding: 24px;
}

.viewer-v3-spend-list div {
  display: grid;
  gap: 4px;
}

.viewer-v3-spend-list strong {
  color: #f1e3ca;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.viewer-v3-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.viewer-v3-profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e5dfd5;
  font-size: 13px;
}

.viewer-v3-panel-inventory {
  width: min(100%, 1180px);
  margin: 0 auto;
  background: transparent;
  overflow: visible;
}

.viewer-v3-panel-inventory .luxe-panel-header {
  background: transparent;
}

.viewer-v3-panel-inventory #viewer-inventory {
  display: grid;
  gap: 16px;
  padding: 22px 24px 28px;
  background: transparent;
}

.viewer-v3-panel-tasks #viewer-tasks {
  padding: 22px 24px 28px;
}

.viewer-task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.viewer-task-shell {
  display: grid;
  gap: 26px;
}

.viewer-task-section {
  display: grid;
  gap: 16px;
}

.viewer-task-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.viewer-task-section-head h3,
.viewer-task-section-head p {
  margin: 0;
}

.viewer-task-section-head h3 {
  font-size: 22px;
  line-height: 1.08;
}

.viewer-task-section-head p {
  font-size: 15px;
  line-height: 1.6;
}

.viewer-task-reset-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
  color: #b6aa96;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-task-reset-meta strong {
  color: #f4e3c6;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.viewer-quest-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.viewer-task-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(24, 24, 32, 0.94), rgba(12, 13, 18, 0.98));
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.viewer-task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(209, 167, 111, 0.18);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(209, 167, 111, 0.04) inset;
}

.viewer-task-card.is-completed {
  border-color: rgba(209, 167, 111, 0.32);
  background:
    radial-gradient(circle at top left, rgb(209 167 111 / 4%), transparent 28%),
    radial-gradient(circle at bottom right, rgb(244 227 198 / 4%), transparent 24%),
    linear-gradient(180deg, rgb(63 50 33 / 13%), rgba(16, 13, 10, 0.99));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(209, 167, 111, 0.08) inset;
}

.viewer-task-card.is-completed:hover {
  border-color: rgba(209, 167, 111, 0.42);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(209, 167, 111, 0.12) inset;
}

.viewer-task-card.is-rewarded {
  animation: viewerTaskRewardPulse 1.6s ease;
}

.viewer-task-hint {
  margin-bottom: 16px;
}

.viewer-task-card-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.viewer-task-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(76, 171, 247, 0.24), rgba(49, 123, 220, 0.18));
  color: #d8ecff;
}

.viewer-task-icon svg {
  width: 28px;
  height: 28px;
}

.viewer-task-icon-quest {
  background: linear-gradient(180deg, rgba(209, 167, 111, 0.24), rgba(149, 100, 34, 0.18));
  color: #f4e3c6;
}

.viewer-task-icon-site {
  background: linear-gradient(180deg, rgba(155, 126, 255, 0.24), rgba(92, 72, 194, 0.18));
  color: #efe6ff;
}

.viewer-task-icon-live {
  background: linear-gradient(180deg, rgba(255, 94, 120, 0.24), rgba(180, 52, 86, 0.18));
  color: #ffe7ee;
}

.viewer-task-icon-chat {
  background: linear-gradient(180deg, rgba(71, 199, 227, 0.24), rgba(38, 124, 194, 0.18));
  color: #e7fbff;
}

.viewer-task-icon-economy {
  background: linear-gradient(180deg, rgba(209, 167, 111, 0.24), rgba(149, 100, 34, 0.18));
  color: #f4e3c6;
}

.viewer-task-icon-shop {
  background: linear-gradient(180deg, rgba(255, 181, 94, 0.24), rgba(194, 112, 38, 0.18));
  color: #fff0dc;
}

.viewer-task-icon-inventory {
  background: linear-gradient(180deg, rgba(124, 221, 180, 0.24), rgba(54, 145, 104, 0.18));
  color: #e8fff4;
}

.viewer-task-icon-minigame {
  background: linear-gradient(180deg, rgba(255, 123, 196, 0.24), rgba(168, 66, 126, 0.18));
  color: #ffebf6;
}

.viewer-task-icon-quests {
  background: linear-gradient(180deg, rgba(255, 214, 102, 0.24), rgba(168, 122, 40, 0.18));
  color: #fff2c8;
}

.viewer-task-icon-subscribe {
  background: linear-gradient(180deg, rgba(76, 171, 247, 0.24), rgba(49, 123, 220, 0.18));
  color: #d8ecff;
}

.viewer-task-icon-comment {
  background: linear-gradient(180deg, rgba(104, 209, 255, 0.24), rgba(52, 138, 197, 0.18));
  color: #e5f8ff;
}

.viewer-task-icon-reaction {
  background: linear-gradient(180deg, rgba(255, 122, 164, 0.24), rgba(183, 67, 104, 0.18));
  color: #ffe8f0;
}

.viewer-task-copy {
  display: grid;
  gap: 4px;
}

.viewer-task-headline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.viewer-task-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(209, 167, 111, 0.16);
  border-radius: 999px;
  background: rgba(209, 167, 111, 0.05);
  color: #ead7b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-task-helper {
  font-size: 13px;
  line-height: 1.45;
}

.viewer-task-helper-accent {
  color: #f0ddbe;
  font-weight: 600;
}

.viewer-task-hint-badge {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8d0c2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.viewer-task-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.viewer-quest-card {
  align-content: start;
  position: relative;
}

.viewer-quest-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(209, 167, 111, 0.2), transparent);
  pointer-events: none;
}

.viewer-quest-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #d8d0c2;
  font-size: 13px;
}

.viewer-quest-progress-meta strong {
  color: #f4e3c6;
}

.viewer-quest-progress-bar {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.viewer-quest-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(209, 167, 111, 0.75), rgba(245, 223, 178, 0.95));
}

.viewer-dashboard-link {
  color: #f0e2c9;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}

.viewer-dashboard-shell {
  display: block;
}

.viewer-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(209, 167, 111, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(123, 92, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(24, 22, 18, 0.92), rgba(13, 13, 18, 0.98));
  box-shadow: 0 20px 48px rgba(3, 5, 10, 0.16), 0 8px 18px rgba(3, 5, 10, 0.08);
}

.viewer-dashboard-lead {
  display: grid;
  gap: 10px;
  align-content: start;
}

.viewer-dashboard-kicker {
  color: #f0dbb6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.viewer-dashboard-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.viewer-dashboard-copy {
  margin: 0;
  max-width: 52ch;
  color: #ddd3c5;
  font-size: 14px;
  line-height: 1.65;
}

.viewer-dashboard-lead-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.viewer-dashboard-lead-pill {
  display: grid;
  gap: 2px;
  min-width: 116px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.viewer-dashboard-lead-pill span {
  color: #b3a894;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-dashboard-lead-pill strong {
  color: #f5e4c7;
  font-size: 18px;
  line-height: 1.1;
}

.viewer-dashboard-hero-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.viewer-dashboard-hero-focus,
.viewer-dashboard-hero-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.viewer-dashboard-hero-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viewer-dashboard-hero-focus-head strong {
  color: #f5e4c7;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.viewer-dashboard-hero-focus-list {
  display: grid;
  gap: 10px;
}

.viewer-dashboard-hero-quest {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(11, 12, 18, 0.34);
}

.viewer-dashboard-hero-quest-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.viewer-dashboard-action-chip {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.viewer-dashboard-action-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(209, 167, 111, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.viewer-dashboard-action-chip strong {
  font-size: 14px;
  line-height: 1.25;
}

.viewer-dashboard-action-chip span,
.viewer-dashboard-empty {
  color: #d0c8bc;
  font-size: 13px;
  line-height: 1.55;
}

.viewer-dashboard-hero-side-list,
.viewer-dashboard-hero-action-list {
  display: grid;
  gap: 10px;
}

.viewer-dashboard-hero-action-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.viewer-dashboard-hero-streak {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.viewer-dashboard-empty {
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.viewer-dashboard-quest-reward {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(209, 167, 111, 0.12);
  border: 1px solid rgba(209, 167, 111, 0.22);
  color: #f1dec0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.viewer-dashboard-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.viewer-dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(209, 167, 111, 0.82), rgba(244, 216, 166, 0.98));
}

.viewer-dashboard-hero-streak.is-warning {
  border-color: rgba(209, 167, 111, 0.22);
  background: rgba(209, 167, 111, 0.06);
}

.viewer-dashboard-hero-streak.is-danger {
  border-color: rgba(255, 113, 113, 0.22);
  background: rgba(255, 113, 113, 0.06);
}

.viewer-dashboard-streak-alert {
  color: #f4d6b3;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .viewer-dashboard-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .viewer-dashboard-hero-action-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .viewer-dashboard-lead-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .viewer-dashboard-lead-pills {
    grid-template-columns: minmax(0, 1fr);
  }
}

.viewer-profile-page-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

#viewer-profile-section {
  grid-template-columns: minmax(0, 1fr);
}

.viewer-profile-shell {
  display: grid;
  gap: 22px;
  padding: 20px;
}

.viewer-profile-hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.viewer-profile-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.viewer-profile-identity {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.viewer-profile-avatar-shell {
  flex: 0 0 auto;
}

.viewer-profile-avatar,
.viewer-profile-avatar-fallback {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #f0e2c9;
  font-size: 44px;
  font-weight: 700;
}

.viewer-profile-identity-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.viewer-profile-title-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(209, 167, 111, 0.12);
  border: 1px solid rgba(209, 167, 111, 0.24);
  color: #f0ddbe;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-profile-name,
.viewer-profile-section-head h3 {
  margin: 0;
}

.viewer-profile-name {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.viewer-profile-login {
  color: #c7bda9;
  font-size: 16px;
}

.viewer-profile-hero-copy,
.viewer-profile-section-head p,
.viewer-profile-main-highlight-copy,
.viewer-profile-kpi-meta {
  margin: 0;
  color: #d2c9bb;
}

.viewer-profile-hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.viewer-profile-hero-badge,
.viewer-profile-main-highlight,
.viewer-profile-kpi-card,
.viewer-profile-section-card,
.viewer-profile-streak-card,
.viewer-profile-empty-state-card,
.viewer-profile-auth-state {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.viewer-profile-hero-badge {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.viewer-profile-hero-badge.is-accent {
  border-color: rgba(209, 167, 111, 0.25);
  background: rgba(209, 167, 111, 0.08);
}

.viewer-profile-hero-badge-label,
.viewer-profile-kpi-label,
.viewer-profile-main-highlight-label {
  color: #b6aa96;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.viewer-profile-hero-badge-value,
.viewer-profile-kpi-value,
.viewer-profile-main-highlight-value,
.viewer-profile-streak-current {
  color: #f5e9d3;
  font-size: 22px;
  font-weight: 700;
}

.viewer-profile-main-highlight {
  display: grid;
  gap: 14px;
  padding: 20px;
  align-content: space-between;
}

.viewer-profile-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.viewer-profile-kpi-grid,
.viewer-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.viewer-profile-kpi-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.viewer-profile-streaks-section,
.viewer-profile-sections {
  display: grid;
  gap: 16px;
}

.viewer-profile-streaks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.viewer-profile-streak-card,
.viewer-profile-section-card,
.viewer-profile-empty-state-card,
.viewer-profile-auth-state {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.viewer-profile-streak-top,
.viewer-profile-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.viewer-profile-streak-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.viewer-profile-loading {
  display: grid;
  gap: 16px;
}

.viewer-profile-skeleton,
.viewer-profile-skeleton-grid {
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: viewerProfileShimmer 1.6s linear infinite;
}

.viewer-profile-skeleton-hero {
  min-height: 220px;
}

.viewer-profile-skeleton-grid {
  min-height: 360px;
}

@keyframes viewerProfileShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.viewer-giveaway-form,
.viewer-giveaway-participants,
.viewer-giveaway-actions {
  display: grid;
  gap: 10px;
}

.viewer-giveaway-layout {
  display: grid;
  grid-template-columns: minmax(420px, 560px) minmax(620px, 780px) minmax(420px, 520px);
  gap: 24px;
  align-items: start;
  justify-content: space-between;
}

.viewer-giveaway-main {
  display: grid;
  gap: 24px;
  justify-self: end;
  width: min(100%, 520px);
  max-width: 520px;
  margin-left: auto;
}

.viewer-giveaway-layout-compact {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.viewer-giveaway-main-compact {
  justify-self: center;
  width: min(100%, 860px);
  max-width: 860px;
  margin: 0 auto;
}

.viewer-v3-panel-giveaways {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(24, 24, 32, 0.94), rgba(12, 13, 18, 0.98));
  box-shadow: var(--shadow);
}

.viewer-v3-panel-giveaways .luxe-panel-header {
  background: transparent;
}

.viewer-v3-history-card.viewer-giveaway-settings-card {
  height: 100%;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(209, 167, 111, 0.12);
  background:
    radial-gradient(circle at top left, rgba(123, 92, 255, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(209, 167, 111, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 22, 31, 0.99), rgba(12, 14, 21, 0.99));
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-settings-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-field {
  display: grid;
  gap: 8px;
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-field > span,
.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-criteria-group > strong {
  color: #f1e3ca;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-criteria-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-criteria-options {
  display: grid;
  gap: 10px;
}

.viewer-giveaway-wheel-stage {
  display: grid;
  align-items: center;
  min-height: 100%;
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-form {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-form > .luxe-button {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-form input {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #f5f1ea;
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-form input:focus {
  outline: none;
  border-color: rgba(209, 167, 111, 0.32);
  box-shadow: 0 0 0 3px rgba(209, 167, 111, 0.10);
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: #d8d0c2;
  line-height: 1.45;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-check:hover {
  border-color: rgba(209, 167, 111, 0.16);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-check input {
  margin: 1px 0 0;
  align-self: start;
  accent-color: #d1a76f;
}

.viewer-v3-history-card.viewer-giveaway-settings-card .viewer-giveaway-check span {
  display: block;
  min-width: 0;
  text-align: left;
  color: #ebe4d8;
  font-size: 14px;
}

.viewer-giveaway-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(209, 167, 111, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(22, 24, 33, 0.96), rgba(12, 14, 21, 0.98));
}

.viewer-giveaway-guide-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(22, 24, 33, 0.96), rgba(12, 14, 21, 0.98));
}

.viewer-giveaway-guide-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.viewer-giveaway-guide-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.viewer-giveaway-guide-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
}

.viewer-giveaway-guide-block > strong {
  color: #f1e3ca;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.viewer-giveaway-guide-steps,
.viewer-giveaway-guide-criteria {
  display: grid;
  gap: 10px;
}

.viewer-giveaway-guide-step,
.viewer-giveaway-guide-criterion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.viewer-giveaway-guide-step span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(209, 167, 111, 0.12);
  color: #f0ddbe;
  font-size: 12px;
  font-weight: 700;
}

.viewer-giveaway-guide-criterion {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.viewer-giveaway-guide-criterion a {
  color: #f0ddbe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.viewer-giveaway-guide-empty {
  color: #a9a190;
}

.viewer-giveaway-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.viewer-giveaway-criteria-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.viewer-giveaway-criteria-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #e5dfd5;
  font-size: 12px;
}

.viewer-giveaway-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.viewer-giveaway-summary-pill {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
}

.viewer-giveaway-summary-pill span {
  color: #a9a190;
  font-size: 12px;
}

.viewer-giveaway-summary-pill strong {
  color: #f5f1ea;
  font-size: 15px;
}

.viewer-giveaway-winners {
  display: grid;
  gap: 10px;
}

.viewer-giveaway-winners > strong {
  color: #f1e3ca;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.viewer-giveaway-winners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viewer-giveaway-winner-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(209, 167, 111, 0.18);
  border-radius: 999px;
  background: rgba(209, 167, 111, 0.08);
  color: #f0ddbe;
  font-size: 12px;
  font-weight: 700;
}

.viewer-giveaway-criteria-chip.is-empty {
  color: #a9a190;
}

.viewer-giveaway-wheel-wrap {
  display: flex;
  justify-content: center;
  min-height: 820px;
  align-items: center;
}

.viewer-giveaway-wheel {
  width: min(100%, 1560px);
}

.viewer-giveaway-wheel-shell {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
}

.viewer-giveaway-wheel-current {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  color: #d8d0c2;
  font-size: 14px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.viewer-giveaway-wheel-current strong {
  color: #f4e3c6;
  font-size: 16px;
  line-height: 1.1;
}

.viewer-giveaway-wheel-pointer {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid #f4e3c6;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
}

.viewer-giveaway-wheel-disc {
  width: min(100%, 810px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, rgba(18, 20, 28, 0.24), rgba(8, 9, 14, 0.9));
  box-shadow: inset 0 0 0 12px rgba(8, 9, 14, 0.36), 0 18px 42px rgba(0,0,0,0.22);
}

.viewer-giveaway-wheel-disc.is-rolling {
  animation: giveawaySpin var(--giveaway-duration, 9000ms) cubic-bezier(0.12, 0.8, 0.16, 1) forwards;
}

.viewer-giveaway-wheel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.viewer-giveaway-wheel-label {
  fill: #f7f2ea;
  font-size: 2.2px;
  font-weight: 700;
  letter-spacing: 0.03em;
  paint-order: stroke;
  stroke: rgba(8, 9, 14, 0.72);
  stroke-width: 1.2px;
  stroke-linejoin: round;
}

.viewer-giveaway-wheel-center {
  width: 17%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 14, 21, 0.96), rgba(18, 20, 28, 0.92));
  border: 1px solid rgba(255,255,255,0.08);
  color: #f4e3c6;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.viewer-giveaway-wheel-empty {
  padding: 20px;
  text-align: center;
  color: #d8d0c2;
}

.viewer-giveaway-wheel-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  width: 100%;
}

.viewer-giveaway-wheel-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.viewer-giveaway-wheel-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.viewer-giveaway-participant {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.viewer-giveaway-participant.is-self {
  border-color: rgba(209, 167, 111, 0.2);
  background: rgba(209, 167, 111, 0.07);
}

.viewer-giveaway-actions {
  grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
}

.viewer-giveaway-compact-meta {
  color: #a9a190;
  font-size: 14px;
}

.viewer-giveaway-history-card .viewer-v3-history-list {
  gap: 12px;
}

.viewer-giveaway-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.viewer-giveaway-criteria-item a {
  color: #f0e2c9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes giveawaySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(var(--giveaway-spin, 0deg)); }
}

.viewer-task-actions .luxe-button {
  min-height: 44px;
}

.viewer-task-button-subscribe {
  border: 1px solid rgba(76, 171, 247, 0.32);
  background: linear-gradient(180deg, rgba(76, 171, 247, 0.24), rgba(49, 123, 220, 0.18));
  color: #e8f5ff;
  box-shadow: 0 10px 26px rgba(49, 123, 220, 0.16);
}

.viewer-task-button-subscribe:hover {
  border-color: rgba(76, 171, 247, 0.46);
  background: linear-gradient(180deg, rgba(76, 171, 247, 0.3), rgba(49, 123, 220, 0.22));
}

.viewer-task-button-check {
  box-shadow: 0 8px 20px rgba(209, 167, 111, 0.14);
}

.viewer-task-button-done {
  opacity: 0.92;
}

@keyframes viewerTaskRewardPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(114, 223, 155, 0);
  }
  30% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 8px rgba(114, 223, 155, 0.12);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(114, 223, 155, 0);
  }
}

.inventory-masonry {
  column-count: 2;
  column-gap: 16px;
}

.viewer-v3-panel-inventory .viewer-v3-history-item,
.viewer-v3-panel-inventory .inventory-item-card {
  padding: 16px;
  border-radius: 18px;
  break-inside: avoid;
  margin-bottom: 16px;
}

.viewer-v3-panel-inventory .inventory-item-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(24, 24, 32, 0.94), rgba(12, 13, 18, 0.98));
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  overflow: visible;
}

.viewer-v3-panel-inventory .inventory-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(209, 167, 111, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.035), transparent 24%),
    linear-gradient(180deg, rgba(28, 28, 37, 0.96), rgba(14, 15, 20, 0.99));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(209, 167, 111, 0.04) inset;
}

.viewer-v3-panel-inventory .inventory-item-card.is-lootbox {
  cursor: pointer;
  border-color: rgba(209, 167, 111, 0.18);
  background:
    radial-gradient(circle at top left, rgba(209, 167, 111, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(28, 24, 18, 0.95), rgba(14, 13, 12, 0.99));
}

.viewer-v3-panel-inventory .inventory-item-card.is-muted {
  opacity: 0.72;
}

#viewer-minigames {
  gap: 14px;
}

.viewer-bigger-smaller-page {
  display: grid;
  gap: 14px;
}

.viewer-bigger-smaller-page .viewer-giveaway-summary-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.viewer-bigger-smaller-page .viewer-giveaway-summary-pill {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.inventory-item-card-head,
.inventory-item-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.inventory-item-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.inventory-item-title-wrap {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inventory-item-title {
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
}

.inventory-item-type,
.inventory-item-expiry,
.inventory-filter-label {
  color: #a9a190;
  font-size: 13px;
  text-align: left;
}

.inventory-item-status {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
}

.inventory-item-status-active {
  color: #d8f4dd;
  border-color: rgba(114, 223, 155, 0.2);
  background: rgba(114, 223, 155, 0.1);
}

.inventory-item-status-used {
  color: #f1dfbd;
  border-color: rgba(209, 167, 111, 0.24);
  background: rgba(209, 167, 111, 0.1);
}

.inventory-item-status-pending_claim {
  color: #f8de98;
  border-color: rgba(240, 201, 121, 0.3);
  background: rgba(240, 201, 121, 0.14);
}

.inventory-item-status-expired {
  color: #d9d0c2;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.inventory-item-expiry {
  align-self: center;
  text-align: left;
}

.inventory-item-actions {
  flex: 0 0 auto;
}


.viewer-v3-inventory-filters {
  display: grid;
  gap: 14px;
  padding: 4px 2px 2px;
}

.inventory-filter-group {
  display: grid;
  gap: 8px;
}

.inventory-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inventory-filter-buttons .luxe-button {
  min-height: 40px;
  padding: 10px 14px;
}

.inventory-empty-state {
  min-height: 150px;
  place-content: center;
}

.luxe-top-avatar,
.luxe-spotlight-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #f0e2c9;
  font-size: 15px;
  font-weight: 700;
}

.luxe-top-avatar img,
.luxe-spotlight-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.luxe-top-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.luxe-spotlight-avatar {
  width: 56px;
  height: 56px;
  margin-top: 4px;
}

.viewer-v3-shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.viewer-v3-shop-hint {
  color: #a9a190;
  font-size: 12px;
}

.viewer-v3-shop-note {
  color: #a9a190;
  font-size: 12px;
  line-height: 1.45;
}

.viewer-v3-profile-empty {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.viewer-v3-profile-empty-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
}

.viewer-v3-profile-empty-list {
  padding-left: 20px;
}

.viewer-v3-profile-empty-list li + li {
  margin-top: 8px;
}

.viewer-v3-profile-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.viewer-v3-profile-empty-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(209, 167, 111, 0.24);
  background: rgba(209, 167, 111, 0.08);
  color: #f0e2c9;
  font-size: 13px;
}

.viewer-v3-referral-shell {
  padding: 0;
}

.viewer-v3-referrals-grid,
.viewer-v3-history-shell {
  display: grid;
}

.viewer-v3-history-shell {
  padding: 24px 24px 24px;
}

.viewer-v3-top-periods,
.viewer-v3-store-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 20px;
}

.viewer-v3-top-periods {
  padding: 20px 24px 20px;
}

.viewer-v3-store-toolbar {
  padding: 21px 24px 0;
}

.viewer-v3-store-toolbar input,
.viewer-v3-store-toolbar select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.04);
  color: #f5f1ea;
  font: inherit;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.viewer-v3-store-toolbar select {
  -webkit-appearance: none;
  appearance: none;
  min-width: 220px;
  padding-right: 42px;
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(18, 20, 29, 0.96);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(240, 226, 201, 0.9) 50%),
    linear-gradient(135deg, rgba(240, 226, 201, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.viewer-v3-store-toolbar select option {
  background: #161923;
  color: #f5f1ea;
}

.viewer-v3-store-toolbar select:focus,
.viewer-v3-store-toolbar input:focus {
  outline: none;
  border-color: rgba(209, 167, 111, 0.35);
  box-shadow: 0 0 0 3px rgba(209, 167, 111, 0.12);
}

#viewer-store-search {
  width: 345px;
}

.viewer-v3-top-periods .luxe-button.is-active {
  border-color: rgba(209, 167, 111, 0.28);
  background: rgba(209, 167, 111, 0.1);
  color: #f0e2c9;
}

.viewer-v3-history-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.viewer-v3-home-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.viewer-v3-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.viewer-v3-history-list {
  display: grid;
  gap: 10px;
}

.viewer-v3-achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.viewer-v3-achievement-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(209, 167, 111, 0.05), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.015), transparent 38%),
    linear-gradient(180deg, rgba(30, 26, 28, 0.98), rgba(17, 17, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 48px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.viewer-v3-achievement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.viewer-v3-achievement-card.is-unlocked {
  border-color: rgba(209, 167, 111, 0.28);
  background:
    radial-gradient(circle at top right, rgba(209, 167, 111, 0.07), transparent 32%),
    radial-gradient(circle at bottom left, rgba(114, 223, 155, 0.025), transparent 36%),
    linear-gradient(180deg, rgba(47, 36, 25, 0.98), rgba(21, 18, 20, 0.98));
}

.viewer-v3-achievement-topline,
.viewer-v3-achievement-head,
.viewer-v3-achievement-bar-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.viewer-v3-achievement-topline {
  align-items: center;
}

.viewer-v3-achievement-state,
.viewer-v3-achievement-progress-pill,
.viewer-v3-achievement-reward,
.viewer-v3-achievement-stage-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-v3-achievement-state {
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #eee3d1;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.viewer-v3-achievement-state.is-active {
  border-color: rgba(209, 167, 111, 0.2);
  color: #f0dfc4;
  background: rgba(209, 167, 111, 0.05);
}

.viewer-v3-achievement-state.is-completed {
  border-color: rgba(114, 223, 155, 0.24);
  color: #d6f4e0;
  background: rgba(114, 223, 155, 0.08);
}

.viewer-v3-achievement-progress-pill {
  border: 1px solid rgba(209, 167, 111, 0.24);
  color: #f0ddbe;
  background: rgba(209, 167, 111, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.viewer-v3-achievement-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.94;
}

.viewer-v3-achievement-head p {
  margin: 0;
  margin-top: 8px;
  color: #d3cec4;
  font-size: 14px;
  line-height: 1.5;
}

.viewer-v3-achievement-reward {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f8f0e3;
  background: rgba(255, 255, 255, 0.035);
}

.viewer-v3-achievement-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.viewer-v3-achievement-stat {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: left;
  align-content: start;
  justify-items: start;
}

.viewer-v3-achievement-stat span,
.viewer-v3-achievement-bar-meta span {
  color: #a9a190;
  font-size: 12px;
  line-height: 1.4;
}

.viewer-v3-achievement-stat strong,
.viewer-v3-achievement-bar-meta strong {
  font-size: 18px;
  line-height: 1;
}

.viewer-v3-achievement-progress {
  display: grid;
  gap: 8px;
}

.viewer-v3-achievement-bar {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.28);
}

.viewer-v3-achievement-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6a43 0%, #c4a06f 58%, #e7d5ba 100%);
  box-shadow: 0 0 18px rgba(209, 167, 111, 0.24);
}

.viewer-v3-achievement-bar-meta {
  align-items: center;
}

.viewer-v3-achievement-stages {
  display: grid;
  gap: 8px;
}

.viewer-v3-achievement-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #d8d0c2;
}

.viewer-v3-achievement-stage.is-unlocked {
  border-color: rgba(209, 167, 111, 0.2);
  background: rgba(209, 167, 111, 0.05);
}

.viewer-v3-achievement-stage.is-claimed {
  border-color: rgba(114, 223, 155, 0.2);
  background: rgba(114, 223, 155, 0.05);
  color: #d8f4dd;
}

.viewer-v3-achievement-stage-status {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
}

.viewer-v3-achievement-stage.is-unlocked .viewer-v3-achievement-stage-status {
  border-color: rgba(209, 167, 111, 0.24);
  background: rgba(209, 167, 111, 0.07);
}

.viewer-v3-achievement-stage.is-claimed .viewer-v3-achievement-stage-status {
  border-color: rgba(114, 223, 155, 0.24);
  background: rgba(114, 223, 155, 0.08);
}

.viewer-v3-history-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.viewer-v3-history-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.viewer-v3-history-meta {
  color: #a9a190;
  font-size: 13px;
  line-height: 1.5;
}

.viewer-v3-referral-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.viewer-v3-referral-card h3,
.viewer-v3-referral-card p {
  margin: 0;
}

.viewer-v3-referral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.viewer-v3-referral-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.viewer-v3-referral-stat span {
  color: #a9a190;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.viewer-v3-referral-stat strong {
  font-size: 20px;
}

.viewer-v3-referral-form {
  display: grid;
  gap: 10px;
}

.viewer-v3-referral-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.viewer-v3-referral-form input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f1ea;
}

.viewer-v3-referral-list {
  display: grid;
  gap: 10px;
}

.viewer-v3-leaderboard-shell {
  display: grid;
  gap: 20px;
}

.viewer-v3-leaderboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.viewer-v3-leaderboard-spotlight,
.viewer-v3-leaderboard-list {
  display: grid;
  gap: 12px;
}

.viewer-v3-leaderboard-list {
  align-content: start;
}

.viewer-v3-referral-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.luxe-spotlight-meta {
  color: #a59c90;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1240px) {
  .viewer-v3-hero-highlights,
  .viewer-v3-flow,
  .viewer-v3-help-grid {
    grid-template-columns: 1fr;
  }

  .viewer-v3-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viewer-v3-achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .viewer-v3-route-frame--with-sidebar {
    grid-template-columns: 1fr;
  }

  .viewer-v3-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-v3-main-grid,
  .viewer-v3-bottom-grid {
    grid-template-columns: 1fr;
  }

  .luxe-shop-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viewer-v3-history-grid {
    grid-template-columns: 1fr;
  }

  .viewer-v3-route-sidebar {
    position: static;
    top: auto;
  }

  .viewer-dashboard-hero,
  .viewer-v3-map-grid,
  .viewer-v3-leaderboard-layout {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 1100px) {
  .viewer-v3-route-frame--with-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  }

  .viewer-v3-route-sidebar {
    position: sticky;
    top: 96px;
  }

  .viewer-v3 {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  }

  .viewer-v3 > [data-viewer-page] {
    grid-column: 1 / -1;
  }

  .viewer-v3-topbar {
    grid-column: 1 / -1;
  }

  .viewer-v3-home-hero {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .viewer-v3-home-map {
    grid-row: 3;
    grid-column: 1 / 2;
  }

  .viewer-v3-home-rail {
    grid-row: 3;
    grid-column: 2 / -1;
    align-self: start;
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 140px);
    overflow: auto;
    scrollbar-width: thin;
  }

  .viewer-v3-home-summary {
    grid-row: 4;
    grid-column: 1 / -1;
  }
}

@media (min-width: 1380px) {
  .viewer-v3 {
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .viewer-page {
    padding-top: 18px;
  }

  .viewer-v3-panel .luxe-panel-header {
    padding: 18px 18px 16px;
  }

  .viewer-v3-panel .luxe-panel-header h2 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .viewer-v3-topbar {
    position: sticky;
    grid-template-columns: 1fr;
    width: 100%;
    top: 0;
    padding: 10px 10px 12px;
    gap: 8px;
  }

  .viewer-v3-topbar-spacer {
    display: none;
  }

  .viewer-v3-topnav {
    display: none;
  }

  .viewer-v3-topbar::before {
    border-radius: 18px;
  }

  .viewer-v3-achievement-head,
  .viewer-v3-achievement-topline,
  .viewer-v3-achievement-bar-meta,
  .viewer-v3-achievement-stage {
    flex-direction: column;
    align-items: flex-start;
  }

  .viewer-v3-achievement-stats {
    grid-template-columns: 1fr;
  }

  .viewer-v3-achievements-grid {
    grid-template-columns: 1fr;
  }

  .viewer-v3-online-badge {
    width: auto;
    justify-content: center;
  }

  .viewer-v3-status-shell {
    bottom: 12px;
  }

  .viewer-v3-panel-inventory {
    width: 100%;
  }

  .viewer-v3-panel-inventory #viewer-inventory {
    padding: 18px;
  }

  .viewer-v3-panel-tasks #viewer-tasks {
    padding: 18px;
  }

  .viewer-task-list {
    grid-template-columns: 1fr;
  }

  .viewer-quest-list {
    grid-template-columns: 1fr;
  }

  .viewer-giveaway-form {
    grid-template-columns: 1fr;
  }

  .viewer-giveaway-layout {
    grid-template-columns: 1fr;
  }

  .viewer-giveaway-layout-compact {
    grid-template-columns: 1fr;
  }

  .viewer-giveaway-main-compact {
    width: 100%;
    max-width: 100%;
  }

  .viewer-giveaway-wheel {
    width: 100%;
  }

  .viewer-giveaway-guide-head,
  .viewer-giveaway-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .viewer-giveaway-guide-grid {
    grid-template-columns: 1fr;
  }

  .viewer-giveaway-wheel-disc {
    width: min(100%, 570px);
  }

  .viewer-task-card-head {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .viewer-task-card-head .inventory-item-status {
    grid-column: 1 / -1;
  }

  .inventory-masonry {
    column-count: 1;
  }

  .inventory-item-card-head,
  .inventory-item-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .inventory-item-card-head {
    grid-template-columns: 1fr;
  }

  .inventory-item-status {
    grid-column: 1 / -1;
  }

  .inventory-item-actions,
  .inventory-item-actions .luxe-button {
    width: 100%;
  }

  .inventory-filter-buttons {
    gap: 8px;
  }

  .inventory-filter-buttons .luxe-button {
    flex: 1 1 auto;
    width: 100%;
  }

  .viewer-v3-topnav {
    display: none;
  }

  .viewer-v3-mobile-bottom-nav {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: rgba(8, 10, 20, 0.95);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .viewer-v3-mobile-bottom-nav a {
    width: 100%;
    justify-content: center;
    padding: 10px 6px;
    font-size: 12px;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: #ece5db;
  }

  .viewer-v3-mobile-bottom-nav a.is-active {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
  }

  .viewer-page {
    padding-bottom: 96px;
  }

  .viewer-v3-auth-box {
    width: 100%;
    justify-content: space-between;
    min-height: 40px;
    padding: 6px 8px 6px 10px;
  }

  .viewer-v3-socials-grid {
    grid-template-columns: 1fr;
  }

  .viewer-v3-auth-copy {
    min-width: 0;
  }

  .viewer-v3-auth-label {
    font-size: 12px;
  }

  .viewer-v3-auth-meta {
    gap: 6px;
    font-size: 11px;
  }

  .viewer-v3-auth-avatar {
    width: 38px;
    height: 38px;
  }

  .viewer-v3-flow-card,
  .viewer-v3-highlight-card {
    padding: 16px;
  }

  .viewer-v3-map-card {
    min-height: 0;
    padding: 16px;
  }

  .viewer-dashboard-hero,
  .viewer-dashboard-hero-focus,
  .viewer-dashboard-hero-actions {
    padding: 16px;
  }

  .viewer-v3-top-periods,
  .viewer-v3-store-toolbar,
  .luxe-shop-list,
  .luxe-feed-list {
    padding-right: 18px;
    padding-left: 18px;
  }

  .viewer-v3-store-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .viewer-v3-store-toolbar input,
  .viewer-v3-store-toolbar select {
    width: 100%;
  }

  .viewer-v3-store-toolbar select {
    min-width: 0;
  }

  .luxe-shop-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .luxe-shop-card,
  .luxe-feed-row {
    border-radius: 18px;
  }

  .luxe-shop-card {
    gap: 10px;
    padding: 12px;
  }

  .luxe-shop-name {
    font-size: 18px;
  }

  .luxe-shop-description {
    min-height: 0;
  }

  .viewer-v3-modal-shell {
    align-items: end;
    padding: 12px;
    overflow-y: auto;
  }

  .viewer-v3-modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .viewer-v3-modal h3 {
    font-size: 24px;
    line-height: 1.08;
  }

  .viewer-v3-modal-copy {
    gap: 10px;
    overflow-y: auto;
  }

  .viewer-v3-modal-purchase {
    width: 100%;
  }

  .viewer-v3-modal-purchase .viewer-v3-modal-copy {
    grid-template-columns: 1fr;
  }

  .viewer-v3-modal-purchase .viewer-v3-modal-image {
    grid-row: auto;
  }

  .viewer-v3-modal-image {
    aspect-ratio: 16 / 10;
  }

  .viewer-v3-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .viewer-v3-modal-actions .luxe-button {
    width: 100%;
    justify-content: center;
  }

  .viewer-purchase-quantity-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-purchase-quantity-controls {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    display: grid;
  }

  .viewer-purchase-quantity-controls .luxe-button {
    width: 100%;
    min-width: 0;
  }

  .viewer-lootbox-rewards-list {
    grid-template-columns: 1fr;
  }

  .viewer-chat-fab {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .viewer-chat-panel {
    right: 12px;
    left: 12px;
    bottom: 86px;
    width: auto;
  }

  .viewer-chat-messages {
    max-height: 260px;
  }

  .viewer-chat-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .luxe-command-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .viewer-v3-profile-empty-title {
    font-size: 26px;
  }

  .viewer-profile-hero-main,
  .viewer-profile-streaks-grid,
  .viewer-profile-kpi-grid,
  .viewer-profile-stat-grid,
  .viewer-profile-hero-badges,
  .viewer-profile-streak-grid {
    grid-template-columns: 1fr;
  }

  .viewer-profile-identity,
  .viewer-profile-streak-top,
  .viewer-profile-section-head {
    flex-direction: column;
  }

  .viewer-profile-avatar,
  .viewer-profile-avatar-fallback {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    font-size: 34px;
  }
}
