@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans/InstrumentSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans/InstrumentSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans/InstrumentSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans/InstrumentSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader/Newsreader-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #091017;
  --bg-deep: #050a0e;
  --surface: #111b24;
  --surface-strong: #17232d;
  --surface-soft: #1b2934;
  --surface-faint: #0d151c;
  --line: rgba(229, 232, 224, 0.12);
  --line-strong: rgba(229, 232, 224, 0.21);
  --text: #f4f1e8;
  --muted: #aeb8bb;
  --muted-strong: #d6dcda;
  --cyan: #70c6c0;
  --gold: #f0b554;
  --green: #83c391;
  --danger: #ed8d8d;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --max-width: 1360px;
  --ui-font: "Instrument Sans", "Segoe UI", sans-serif;
  --display-font: "Newsreader", "Iowan Old Style", Georgia, serif;
}

html {
  color-scheme: dark;
  background: var(--bg-deep);
}

body {
  font-family: var(--ui-font);
  font-size: 16px;
  background:
    radial-gradient(circle at 14% -6%, rgba(240, 181, 84, 0.09), transparent 27rem),
    radial-gradient(circle at 94% 4%, rgba(112, 198, 192, 0.06), transparent 30rem),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

body::before,
.ambient {
  display: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(240, 181, 84, 0.94);
  outline-offset: 3px;
}

.shell {
  width: min(var(--max-width), calc(100% - 44px));
  padding: 18px 0 64px;
}

.topbar {
  top: 12px;
  min-height: 68px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 14, 19, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border-color: rgba(240, 181, 84, 0.3);
  background: #17232d;
}

.brand-mascot {
  width: 42px;
  height: 42px;
}

.brand-text strong {
  font-family: var(--ui-font);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text span:last-child {
  color: #b6c0c2;
  font-size: 0.75rem;
}

.global-search-control {
  max-width: 420px;
  border-radius: 10px;
  background: #101a22;
}

.topbar-links > a,
.topbar-nav-group > a,
.topbar-links > button,
.mobile-nav-toggle {
  min-height: 42px;
  border-radius: 9px;
  font-weight: 600;
}

.topbar-links a.is-active,
.topbar-links a[aria-current="page"] {
  border-color: rgba(112, 198, 192, 0.28);
  background: rgba(112, 198, 192, 0.1);
  color: var(--text);
}

.topbar-links .topbar-link-cta {
  border-color: var(--gold);
  background: var(--gold);
  color: #17202a;
}

.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.app-rail {
  gap: 14px;
}

.app-rail-card,
.panel,
.sidebar-card,
.summary-card,
.hero-panel,
.empty-panel,
.updates-card,
.giveaway-card,
.pricing-section,
.plan-banner {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}

.panel::after,
.sidebar-card::after,
.summary-card::after,
.hero-panel::after,
.empty-panel::after,
.updates-card::after,
.giveaway-card::after {
  display: none;
}

.app-rail-card {
  padding: 14px;
  background: #0f1921;
}

.sidebar-nav,
.rail-nav {
  gap: 6px;
}

.sidebar-link {
  min-height: 42px;
  border-radius: 8px;
  color: #b8c1c3;
  font-size: 0.94rem;
  font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  background: #18242e;
  color: var(--text);
}

.sidebar-link.is-active,
.sidebar-link[data-view-link].is-active,
.sidebar-link[data-primary-nav].is-active,
.sidebar-link[data-section-link].is-active,
.sidebar-link[data-auth-link].is-active {
  border-color: rgba(240, 181, 84, 0.42);
  background: rgba(240, 181, 84, 0.11);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--gold);
}

.route-panel-content {
  gap: 22px;
}

.content-stack {
  gap: 16px;
}

.panel,
.hero-panel,
.empty-panel {
  padding: clamp(20px, 2.2vw, 30px);
}

.page-kicker,
.section-kicker,
.mini-heading,
.rail-kicker,
.card-eyebrow,
.eyebrow {
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.page-hero h1,
.public-giveaways-overview h1,
.home-hero-copy h1,
.auth-intro h2,
.announcement-page-card h1,
.update-card-featured h3 {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.section-head {
  align-items: end;
  padding: 0 2px;
}

.section-head h2 {
  max-width: 22ch;
  margin-top: 5px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-optical-sizing: auto;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.035em;
}

.panel-head h2,
.panel-head h3 {
  letter-spacing: -0.02em;
}

.button {
  min-height: 44px;
  border-radius: 9px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.button:hover,
.button:focus-visible {
  transform: none;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #17202a;
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #ffd183;
  background: #ffd183;
  color: #111820;
}

.button-secondary {
  border-color: var(--line-strong);
  background: #16222c;
}

.status-pill,
.home-proof-strip span,
.subscription-sale-pill,
.subscription-plan-metrics span,
.subscription-plan-highlights span {
  border-radius: 999px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  min-height: 46px;
  border-radius: 9px;
  background: #0d161e;
}

.home-hero-panel {
  border-color: rgba(240, 181, 84, 0.18);
  background: #0f1921;
}

.home-hero-layout {
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.82fr);
  gap: 0;
}

.home-hero-copy {
  gap: 20px;
  padding: clamp(30px, 4vw, 56px);
}

.home-hero-copy h1 {
  max-width: 9.2ch;
  font-size: clamp(4.6rem, 7vw, 7.4rem);
  line-height: 0.88;
}

.home-hero-copy .page-copy {
  max-width: 58ch;
  color: #bcc5c7;
  font-size: 1.03rem;
  line-height: 1.68;
}

.home-proof-strip span {
  min-height: 34px;
  border-color: rgba(240, 181, 84, 0.18);
  background: rgba(240, 181, 84, 0.07);
  color: #ebe8df;
}

.home-feature-slider {
  border-left-color: var(--line);
  background: #14212b;
}

.home-feature-slide {
  min-height: 440px;
  padding: clamp(28px, 3.2vw, 46px);
}

.home-feature-slide h2 {
  max-width: 12ch;
  font-family: var(--display-font);
  font-size: clamp(2.5rem, 3.4vw, 4rem);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.home-slide-metric-grid span,
.home-slide-rule-list span,
.home-slide-timeline span,
.home-slide-ledger span {
  border-radius: 9px;
  border-color: rgba(112, 198, 192, 0.18);
  background: rgba(112, 198, 192, 0.06);
  font-weight: 600;
}

.updates-grid,
.public-giveaways-list {
  gap: 14px;
}

.update-card {
  min-height: 0;
  border-radius: var(--radius-lg);
  background: #101a22;
  box-shadow: none;
}

.update-card::before {
  width: 2px;
  background: var(--gold);
  opacity: 0.8;
}

.update-card:hover {
  transform: none;
  border-color: rgba(240, 181, 84, 0.25);
  box-shadow: none;
}

.update-card-featured {
  padding: clamp(24px, 3.5vw, 42px);
  background:
    linear-gradient(110deg, rgba(240, 181, 84, 0.08), transparent 42%),
    #101a22;
}

.update-card-featured h3 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1;
}

.empty-state,
.feed-empty {
  min-height: 116px;
  place-items: center;
  padding: 26px;
  border: 1px dashed rgba(229, 232, 224, 0.17);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  color: #aeb8bb;
  text-align: center;
}

.public-giveaway-row,
.ops-row {
  border-radius: 12px;
  background: #101a22;
}

.public-giveaways-overview,
.page-hero,
.creator-control-hero,
.giveaway-detail-hero {
  background:
    linear-gradient(115deg, rgba(240, 181, 84, 0.065), transparent 40%),
    var(--surface);
}

.auth-entry-card {
  max-width: 720px;
  margin-inline: auto;
  border-radius: 18px;
  background: #111b24;
}

.auth-intro h2 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.92;
}

.auth-oauth-button {
  min-height: 46px;
  border-radius: 9px;
}

.summary-card,
.admin-metric-card,
.admin-trend-card,
.admin-payment-event-card,
.quick-card,
.account-transaction-card,
.creator-relationship-card,
.giveaway-rule-status-card,
.giveaway-entry-pool-card,
.update-card,
.quick-link,
.capability-card,
.trust-step,
.account-detail-card,
.account-settings-card,
.account-profile-form-card,
.account-preference-card,
.account-password-form-card,
.address-book-card,
.payment-method-card,
.creator-access-account-card,
.creator-application-status-card,
.creator-platform-card,
.platform-card,
.platform-feature-card,
.platform-feature-detail-card,
.platform-mini-card,
.platform-roadmap-card,
.campaign-card,
.campaign-stream-card,
.stream-bot-card,
.stream-bot-provider-card,
.stream-bot-campaign-card,
.studio-card,
.studio-action-card,
.studio-application-card,
.admin-placement-card,
.admin-roadmap-card,
.admin-subscription-plan-card,
.admin-promotion-workflow-card,
.admin-promotion-picker-card,
.admin-promotion-copy-card,
.admin-promotion-controls-card,
.admin-promotion-preview-card {
  border-radius: 12px;
  border-color: var(--line);
  background: #101a22;
  box-shadow: none;
}

.announcement-page-shell {
  padding: 28px 18px;
}

.announcement-page-card {
  max-width: 860px;
  padding: clamp(26px, 5vw, 60px);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(240, 181, 84, 0.07), transparent 38%),
    #111b24;
}

.announcement-page-card h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.9;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .home-hero-copy h1 {
    font-size: clamp(4.1rem, 7.3vw, 6rem);
  }
}

@media (max-width: 960px) {
  .shell {
    width: min(100% - 28px, 860px);
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .app-rail {
    display: none;
  }

  .view-stage {
    order: 1;
  }

  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-feature-slider {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-feature-slide,
  .home-slider-track {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .topbar {
    top: 6px;
    min-height: 62px;
    padding: 7px;
    border-radius: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-mascot {
    width: 38px;
    height: 38px;
  }

  .app-shell {
    margin-top: 12px;
  }

  .route-panel-content,
  .content-stack {
    gap: 14px;
  }

  .panel,
  .hero-panel,
  .empty-panel {
    padding: 18px;
    border-radius: 13px;
  }

  .section-head {
    align-items: start;
  }

  .section-head h2 {
    max-width: 18ch;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .home-hero-copy {
    gap: 16px;
    padding: 26px 20px;
  }

  .home-hero-copy h1 {
    max-width: 8.8ch;
    font-size: clamp(3.5rem, 16vw, 5rem);
    line-height: 0.88;
  }

  .home-proof-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-proof-strip span {
    justify-content: flex-start;
    min-height: 38px;
    padding-inline: 12px;
  }

  .home-feature-slider {
    padding: 0;
  }

  .home-slider-track {
    display: flex;
    width: 400%;
  }

  .home-feature-slide {
    flex: 0 0 25%;
    width: 25%;
    min-height: 300px;
    padding: 24px 20px;
  }

  .home-slider-track {
    min-height: 300px;
  }

  .home-feature-slide h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .update-card-featured {
    padding: 22px 20px;
  }

  .update-card-featured h3 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .public-giveaways-overview h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.1rem);
  }

  .auth-entry-card {
    padding: 22px 18px;
  }

  .auth-intro h2 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .section-head-with-action > :first-child {
    flex: none;
  }

  .public-giveaway-row-summary {
    gap: 14px;
    padding: 17px 16px;
  }

  .public-giveaway-row-main {
    gap: 8px;
  }

  .public-giveaway-row-main h3 {
    font-size: 1.35rem;
  }

  .public-giveaway-row-copy,
  .public-giveaway-entry-line,
  .public-giveaway-row-snapshot {
    display: none;
  }

  .public-giveaway-row-control {
    align-items: stretch;
    gap: 8px;
  }

  .public-giveaway-row-open-link {
    width: 100%;
  }

  .public-giveaway-row-toggle {
    min-height: 40px;
  }

  .button,
  .topbar-links > a,
  .topbar-nav-group > a,
  .topbar-links > button,
  .mobile-nav-toggle,
  .sidebar-link,
  .auth-oauth-button {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .brand-text span:last-child,
  .global-search,
  .global-search-shortcut {
    display: none;
  }

  .section-head-with-action,
  .panel-head,
  .admin-section-head,
  .hero-actions,
  .inline-actions {
    align-items: stretch;
  }

  .section-head-action,
  .hero-actions .button,
  .inline-actions .button,
  .panel-head > .button,
  .admin-section-head > .button {
    width: 100%;
  }

  .announcement-page-shell {
    padding: 10px;
  }

  .announcement-page-card {
    padding: 26px 20px;
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive cohesion pass
 *
 * The application keeps a persistent rail on many desktop and laptop views,
 * so viewport-only breakpoints can overestimate the space available to the
 * active route. The view stage is the layout container for route-level
 * decisions below.
 */
.view-stage {
  min-width: 0;
  container-name: gibaway-stage;
  container-type: inline-size;
}

.route-panel,
.route-panel-content,
.content-stack,
.page-hero,
.page-hero-split,
.public-giveaways-overview,
.giveaway-detail-hero,
.giveaway-detail-main-grid,
.creator-directory,
.creator-directory-grid,
.creator-relationship-grid,
.auth-mode-panels,
.auth-mode-panel,
.auth-provider-section,
.auth-provider-stack {
  min-width: 0;
}

:where(
  .home-hero-copy h1,
  .home-feature-slide h2,
  .page-hero h1,
  .public-giveaways-overview h1,
  .auth-intro h2,
  .section-head h2,
  .creator-directory-hero-copy h1,
  .giveaway-detail-hero-copy h1,
  .update-card-featured h3
) {
  text-wrap: balance;
}

:where(
  .page-copy,
  .auth-subcopy,
  .home-feature-slide p,
  .creator-directory-card-copy p,
  .creator-relationship-description,
  .field-note
) {
  text-wrap: pretty;
}

.home-hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(4rem, 5.8vw, 5.8rem);
  line-height: 0.92;
}

.home-feature-slide h2 {
  font-size: clamp(2.25rem, 3vw, 3.35rem);
}

.auth-mode-panels.auth-entry-grid {
  width: min(920px, 100%);
}

.auth-mode-panel[data-auth-mode-panel="signin"] {
  width: min(680px, 100%);
  max-width: 680px;
  justify-self: center;
}

.auth-mode-panel[data-auth-mode-panel="signup"] {
  width: 100%;
  max-width: none;
  padding: clamp(26px, 3.2vw, 42px);
}

.auth-mode-panel[data-auth-mode-panel="signup"] .auth-intro {
  max-width: 760px;
}

.auth-mode-panel[data-auth-mode-panel="signup"] .auth-intro h2 {
  max-width: 14ch;
  font-size: clamp(3.25rem, 5vw, 4.65rem);
}

#signup-form > .field-note,
#signup-form > .checkbox,
#signup-form > .captcha-shell,
#signup-form > .inline-actions,
#login-form > .inline-actions {
  grid-column: 1 / -1;
}

#signup-form > .field-note {
  max-width: 76ch;
}

#signup-captcha-shell:not([hidden]) {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(112, 198, 192, 0.18);
  border-radius: 12px;
  background: rgba(112, 198, 192, 0.055);
}

.auth-provider-list {
  width: 100%;
}

@container gibaway-stage (max-width: 1000px) {
  .home-hero-layout,
  .page-hero-split,
  .public-giveaways-overview,
  .giveaway-detail-hero,
  .giveaway-detail-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-copy {
    padding: clamp(28px, 5cqi, 46px);
  }

  .home-hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(3.75rem, 8.5cqi, 5.2rem);
  }

  .home-feature-slider {
    display: block;
    padding: 12px;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-left: 0;
    background: #0d1722;
  }

  .home-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 42%);
    gap: 12px;
    width: 100%;
    min-height: 0;
    padding: 0 0 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    animation: none;
    transform: none;
  }

  .home-feature-slide {
    width: auto;
    min-height: 300px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #14212b;
    scroll-snap-align: start;
  }

  .home-feature-slide h2 {
    max-width: 15ch;
    font-size: clamp(2rem, 4.4cqi, 2.75rem);
  }

  .home-slider-dots {
    display: none;
  }

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

@container gibaway-stage (max-width: 760px) {
  .auth-mode-panels.auth-entry-grid,
  .auth-mode-panel[data-auth-mode-panel="signin"],
  .auth-mode-panel[data-auth-mode-panel="signup"] {
    width: 100%;
  }

  .auth-mode-panel[data-auth-mode-panel="signup"] {
    padding: clamp(22px, 5cqi, 32px);
  }

  .auth-mode-panel[data-auth-mode-panel="signup"] .auth-intro h2 {
    font-size: clamp(2.8rem, 10cqi, 4rem);
  }

  .auth-mode-panel .form-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-provider-list,
  .creator-directory-grid,
  .creator-relationship-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-copy {
    padding: 26px 22px;
  }

  .home-hero-copy h1 {
    max-width: 10.5ch;
    font-size: clamp(3rem, 13cqi, 4.25rem);
  }

  .home-slider-track {
    grid-auto-columns: min(82cqi, 320px);
  }

  .home-feature-slide {
    min-height: 286px;
    padding: 20px;
  }

  .home-feature-slide h2 {
    font-size: clamp(1.8rem, 8cqi, 2.3rem);
  }

  .section-head-with-action,
  .panel-head,
  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head-action,
  .panel-head > .button,
  .admin-section-head > .button {
    width: 100%;
  }
}

@container gibaway-stage (min-width: 621px) and (max-width: 760px) {
  .auth-mode-panel .form-stack,
  .auth-provider-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container gibaway-stage (max-width: 460px) {
  .home-proof-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-proof-strip span {
    justify-content: flex-start;
    min-height: 38px;
    padding-inline: 12px;
    text-align: left;
  }

  .home-slider-track {
    grid-auto-columns: 90cqi;
  }

  .auth-mode-panel[data-auth-mode-panel="signup"] .auth-intro h2,
  .auth-intro h2 {
    font-size: clamp(2.55rem, 13cqi, 3.35rem);
  }

  .auth-provider-list {
    gap: 9px;
  }
