:root {
  --demo-ink: #10243a;
  --demo-primary: #005b4f;
  --demo-primary-dark: #003f38;
  --demo-accent: #f6c344;
  --demo-paper: #f7f4ec;
  --demo-white: #fffefa;
  --demo-muted: #687368;
  --demo-line: #d8d4ca;
  --demo-shadow: 0 18px 50px rgba(16, 36, 58, 0.12);
  --demo-radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--demo-ink);
  background: var(--demo-paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(16, 36, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 58, 0.035) 1px, transparent 1px),
    var(--demo-paper);
  background-size: 72px 72px;
  color: var(--demo-ink);
}

.demo-loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--demo-paper);
}

.demo-loading__ribbon {
  min-height: 40px;
  background: #07131f;
}

.demo-loading-clean .demo-loading__ribbon {
  display: none;
}

.demo-loading__header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 22px;
  background: var(--demo-ink);
  color: #fff;
  letter-spacing: 0.055em;
}

.demo-loading__mark {
  width: 42px;
  height: 42px;
  border: 8px solid var(--demo-accent);
  border-radius: 50%;
}

.demo-loading-clean .demo-loading__sales-only {
  display: none;
}

.demo-loading__sponsor {
  min-height: 54px;
  background: var(--demo-primary-dark);
}

.demo-loading__workspace {
  display: grid;
  gap: 12px;
  min-height: 430px;
  padding: 26px;
  border-top: 6px solid var(--demo-ink);
  background: var(--demo-white);
  box-shadow: var(--demo-shadow);
}

.demo-loading__sidebar {
  min-height: 330px;
  border-top: 6px solid var(--demo-ink);
  background: var(--demo-white);
  box-shadow: var(--demo-shadow);
}

.demo-loading__workspace span {
  display: block;
  min-height: 62px;
  border-left: 5px solid var(--demo-primary);
  background: #efede5;
}

.demo-loading .demo-main > p {
  margin: 18px auto 0;
  color: var(--demo-muted);
  font-weight: 750;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.demo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--demo-accent);
  color: var(--demo-ink);
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
}

.demo-skip-link:focus {
  transform: translateY(0);
}

.demo-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  padding: 8px 24px;
  background: #07131f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-ribbon__note {
  color: #aeb8bf;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.demo-ribbon__link {
  margin-left: auto;
  color: var(--demo-accent);
  text-underline-offset: 4px;
}

.publisher-header {
  position: relative;
  z-index: 5;
  background: var(--demo-ink);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.publisher-header__inner,
.demo-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.publisher-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.publisher-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.publisher-brand img {
  width: 52px;
  height: 52px;
}

.publisher-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.publisher-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.publisher-nav a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.sponsor-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 24px;
  background: var(--demo-primary-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.sponsor-strip img {
  width: 116px;
  height: 35px;
  border-radius: 6px;
}

.demo-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 64px;
  background:
    radial-gradient(circle at 88% 20%, rgba(246, 195, 68, 0.24), transparent 24%),
    linear-gradient(128deg, var(--demo-primary-dark), var(--demo-primary));
  color: #fff;
  border-bottom: 8px solid var(--demo-accent);
}

.demo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 44px, rgba(255, 255, 255, 0.035) 44px 45px);
}

.demo-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 42px;
}

.demo-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: var(--demo-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.demo-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.97;
  letter-spacing: -0.055em;
}

.demo-hero__description {
  max-width: 730px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.demo-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(4, 35, 31, 0.32);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.demo-chip--accent {
  border-color: var(--demo-accent);
  background: var(--demo-accent);
  color: var(--demo-ink);
  text-transform: uppercase;
}

.hero-mark {
  width: 150px;
  height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 27, 33, 0.25);
  box-shadow: 12px 12px 0 rgba(246, 195, 68, 0.22);
}

.demo-main {
  padding: 46px 0 72px;
}

.demo-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: start;
  gap: 24px;
}

.demo-workspace-grid,
.demo-sidebar,
.demo-card {
  min-width: 0;
}

.demo-card {
  background: var(--demo-white);
  border: 1px solid var(--demo-line);
  border-top: 6px solid var(--demo-ink);
  box-shadow: var(--demo-shadow);
}

.demo-card__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--demo-line);
}

.section-kicker {
  color: var(--demo-primary);
}

.demo-card h2,
.demo-card h3 {
  margin: 0;
  letter-spacing: -0.035em;
}

.demo-card h2 {
  font-size: clamp(30px, 4vw, 45px);
}

.demo-card h3 {
  font-size: 24px;
}

.workspace-hint {
  max-width: 300px;
  margin: 0;
  color: var(--demo-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 12px 20px;
}

.team-row {
  display: grid;
  grid-template-columns: 48px 46px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 64px;
  margin: 4px 0;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-left: 5px solid #c8ccc6;
  background: #f3f1ea;
  transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease;
  scroll-margin-block: 132px;
}

.team-row:nth-child(-n + 3) {
  border-left-color: var(--demo-primary);
  background: #e8f2ee;
}

.team-row.is-drag-over {
  border-color: var(--demo-accent);
  background: #fff4cf;
  transform: translateY(2px);
}

.team-row.is-dragging {
  opacity: 0.55;
  user-select: none;
}

.team-position {
  color: var(--demo-muted);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.team-badge {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--demo-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.team-name {
  min-width: 0;
  padding-inline: 10px;
  font-size: 17px;
  font-weight: 800;
}

.team-handle {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border: 1px solid #bcc2bd;
  background: var(--demo-white);
  cursor: grab;
  touch-action: none;
}

.team-handle:active {
  cursor: grabbing;
}

.team-handle:hover {
  border-color: var(--demo-primary);
  background: #edf5f1;
}

.team-handle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.demo-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
  border-top: 1px solid var(--demo-line);
  background: #ece8dd;
}

.demo-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--demo-ink);
  background: transparent;
  color: var(--demo-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
}

.demo-button:hover {
  background: var(--demo-ink);
  color: #fff;
}

.demo-button--primary {
  background: var(--demo-accent);
}

.demo-button--quiet {
  border-color: #a8aea8;
  color: var(--demo-muted);
}

.demo-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.demo-status {
  min-height: 52px;
  margin: 0;
  padding: 15px 22px;
  border-top: 1px solid var(--demo-line);
  color: var(--demo-primary);
  font-size: 14px;
  font-weight: 750;
}

.demo-status[data-kind="error"] {
  color: #a2232d;
}

.demo-sidebar {
  display: grid;
  gap: 24px;
}

.mode-card {
  padding: 24px;
}

.mode-label {
  display: block;
  margin-bottom: 12px;
  color: var(--demo-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--demo-ink);
}

.mode-switch button {
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--demo-ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.mode-switch button + button {
  border-left: 1px solid var(--demo-ink);
}

.mode-switch button[aria-pressed="true"] {
  background: var(--demo-ink);
  color: #fff;
}

.mode-switch button:not([aria-pressed="true"]):hover {
  background: #edf5f1;
}

.state-panel {
  padding: 24px;
  border-top: 1px solid var(--demo-line);
}

.state-panel p {
  margin: 12px 0 0;
  color: var(--demo-muted);
  line-height: 1.55;
}

.live-badge,
.sample-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  background: var(--demo-accent);
  color: var(--demo-ink);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  margin: 20px 0;
}

.score-primary,
.score-rank {
  padding: 18px;
  background: var(--demo-ink);
  color: #fff;
}

.score-rank {
  background: var(--demo-primary);
}

.metric-label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.call-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.call-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--demo-line);
  background: #f3f1ea;
}

.call-card span {
  display: block;
  color: var(--demo-muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.call-card strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.current-table {
  margin: 18px -24px -24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--demo-line);
}

.current-table li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 112px);
  gap: 10px;
  align-items: center;
  min-height: 43px;
  padding: 7px 18px;
  border-bottom: 1px solid var(--demo-line);
  font-size: 13px;
}

.current-table li:last-child {
  border-bottom: 0;
}

.current-position {
  color: var(--demo-muted);
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.current-name {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.current-diff {
  min-width: 0;
  color: var(--demo-muted);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: right;
}

.team-position,
.leaderboard-table td:first-child {
  font-variant-numeric: tabular-nums;
}

.prize-card {
  overflow: hidden;
}

.prize-card__header {
  padding: 24px;
  background: var(--demo-accent);
}

.prize-card__body {
  padding: 10px 24px 22px;
}

.prize-row {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--demo-line);
}

.prize-row strong {
  font-size: 14px;
}

.prize-row span {
  color: var(--demo-muted);
  font-size: 14px;
  font-weight: 650;
}

.prize-disclaimer {
  margin: 16px 0 0;
  color: var(--demo-muted);
  font-size: 12px;
  line-height: 1.5;
}

.leaderboard-card {
  margin-top: 28px;
}

.leaderboard-header__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.leaderboard-disclaimer {
  max-width: 380px;
  margin: 0;
  color: var(--demo-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-align: right;
}

.leaderboard-scroll {
  overflow-x: auto;
}

.leaderboard-scroll-hint {
  display: none;
}

.leaderboard-scroll:focus-visible {
  outline: 3px solid var(--demo-accent);
  outline-offset: -3px;
}

#tippa,
#topplista,
#priser {
  scroll-margin-top: 24px;
}

.leaderboard-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  height: 62px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--demo-line);
  text-align: left;
}

.leaderboard-table th {
  height: 48px;
  background: var(--demo-ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-table td:first-child {
  width: 120px;
  color: var(--demo-primary);
  font-size: 20px;
  font-weight: 950;
}

.leaderboard-table tr[data-local-entry="true"] td {
  background: #fff4cf;
}

.leaderboard-name {
  font-weight: 850;
}

.leaderboard-you {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 6px;
  background: var(--demo-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rank-change {
  font-weight: 850;
}

.rank-change[data-direction="up"] {
  color: #087746;
}

.rank-change[data-direction="down"] {
  color: #aa2733;
}

.buyer-section {
  margin-top: 28px;
  padding: 34px;
  background: var(--demo-ink);
  color: #fff;
  border-bottom: 7px solid var(--demo-accent);
  box-shadow: var(--demo-shadow);
}

.buyer-section__grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 50px;
  align-items: start;
}

.buyer-section h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.buyer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.buyer-list li {
  position: relative;
  padding: 15px 0 15px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  font-weight: 700;
}

.buyer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--demo-accent);
  font-weight: 950;
}

.buyer-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.buyer-contact {
  margin-top: 22px;
}

.demo-footer {
  padding: 28px 0 42px;
  color: var(--demo-muted);
  font-size: 12px;
  line-height: 1.55;
}

.demo-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--demo-line);
  padding-top: 22px;
}

.save-dialog {
  width: min(500px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: var(--demo-white);
  color: var(--demo-ink);
  box-shadow: 0 30px 100px rgba(4, 16, 26, 0.42);
  overscroll-behavior: contain;
}

.save-dialog::backdrop {
  background: rgba(5, 18, 29, 0.72);
}

.save-dialog__body {
  padding: 28px;
  border-top: 6px solid var(--demo-accent);
}

.save-dialog h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.save-dialog p {
  color: var(--demo-muted);
  line-height: 1.5;
}

.save-dialog label {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 850;
}

.save-dialog input {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 10px 13px;
  border: 2px solid var(--demo-ink);
  background: #fff;
  color: var(--demo-ink);
  font-size: 17px;
}

.save-dialog__error {
  min-height: 22px;
  margin: 8px 0 0;
  color: #a2232d !important;
  font-size: 13px;
  font-weight: 750;
}

.save-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.demo-error {
  width: min(680px, calc(100% - 40px));
  margin: 80px auto;
  padding: 28px;
  border-top: 6px solid #a2232d;
  background: #fff;
  box-shadow: var(--demo-shadow);
}

.demo-error .demo-button {
  margin-top: 18px;
}

:focus-visible {
  outline: 4px solid #2d8cff;
  outline-offset: 3px;
}

@media (max-width: 940px) {
  .demo-workspace-grid {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .mode-card {
    grid-column: 1 / -1;
  }

  .demo-actions {
    grid-template-columns: 1fr 1fr;
  }

  .buyer-section__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .demo-loading {
    width: 100%;
  }

  .demo-loading__header {
    min-height: 136px;
    justify-content: center;
    padding-inline: 14px;
    font-size: 14px;
  }

  .demo-loading__ribbon {
    min-height: 65px;
  }

  .demo-loading__workspace {
    min-height: 390px;
    padding: 14px;
  }

  .publisher-header__inner,
  .demo-container {
    width: min(100% - 24px, 1180px);
  }

  .demo-ribbon {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 12px;
    padding-inline: 12px;
  }

  .demo-ribbon__note {
    width: calc(100% - 120px);
  }

  .demo-ribbon__link {
    position: absolute;
    right: 12px;
  }

  .publisher-header__inner {
    min-height: auto;
    padding: 14px 0 0;
    flex-wrap: wrap;
  }

  .publisher-brand {
    width: 100%;
    justify-content: center;
    font-size: 16px;
  }

  .publisher-brand img {
    width: 44px;
    height: 44px;
  }

  .publisher-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .publisher-nav a {
    justify-content: center;
    min-height: 48px;
    padding: 0 6px;
  }

  .sponsor-strip {
    align-items: center;
    font-size: 11px;
  }

  .sponsor-strip img {
    width: 96px;
  }

  .demo-hero {
    padding: 46px 0 44px;
  }

  .demo-hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .demo-hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .hero-mark {
    display: none;
  }

  .demo-main {
    padding-top: 24px;
  }

  .demo-card__header {
    display: block;
    padding: 22px 18px 18px;
  }

  .workspace-hint,
  .leaderboard-disclaimer {
    max-width: none;
    margin-top: 12px;
    text-align: left;
  }

  .team-list {
    padding: 8px;
  }

  .team-row {
    grid-template-columns: 40px 40px minmax(0, 1fr) 48px;
    min-height: 62px;
    padding-inline: 4px;
  }

  .team-name {
    padding-inline: 7px;
    font-size: 15px;
  }

  .team-handle {
    width: 44px;
    height: 44px;
  }

  .demo-actions {
    grid-template-columns: 1fr 1fr;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--demo-line);
  }

  .demo-button {
    min-height: 48px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .demo-sidebar {
    grid-template-columns: 1fr;
  }

  .mode-card {
    grid-column: auto;
  }

  .leaderboard-card {
    margin-top: 20px;
  }

  .leaderboard-scroll-hint {
    display: block;
    margin: 0;
    padding: 10px 16px;
    border-top: 1px solid var(--demo-line);
    background: linear-gradient(90deg, #fff 0%, #fff 80%, rgba(246, 195, 68, 0.3) 100%);
    color: var(--demo-muted);
    font-size: 12px;
    font-weight: 750;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding-inline: 16px;
  }

  .buyer-section {
    margin-top: 20px;
    padding: 24px 20px;
  }

  .demo-footer__inner {
    display: block;
  }

  .demo-footer__inner span {
    display: block;
    margin-top: 10px;
  }

  .save-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .current-table li {
    grid-template-columns: 34px minmax(0, 1fr) minmax(0, 94px);
    gap: 8px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .demo-ribbon,
  .publisher-nav,
  .demo-actions,
  .mode-card,
  .buyer-section,
  .save-dialog {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .demo-card {
    box-shadow: none;
  }
}
