:root {
  --brand: #e4002b;
  --brand-soft: #ff4d63;
  --bg: #14080b;
  --surface: #2a1519;
  --border: #3d2328;
  --border-strong: #5a3a40;
  --text: #ffffff;
  --muted: #d4d4d8;
  --font:
    system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB',
    'Noto Sans CJK SC', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: #0d0507;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgb(228 0 43 / 0.32), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgb(228 0 43 / 0.12), transparent 70%),
    linear-gradient(180deg, #1a0c0f 0%, #0d0507 100%);
}

.page {
  max-width: 880px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px 28px;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.logo {
  height: 32px;
  width: auto;
  display: block;
}

.lang {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 56px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.lang:hover {
  border-color: var(--brand-soft);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 16px;
  font-size: 0.9375rem;
  color: var(--muted);
  background: rgb(228 0 43 / 0.12);
  border: 1px solid rgb(228 0 43 / 0.45);
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px rgb(228 0 43 / 0.25);
}

h1 {
  margin: 0 0 36px;
  font-size: clamp(1.75rem, 6vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.prize-label {
  margin: 0;
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  color: var(--muted);
}

.prize {
  margin: 4px 0 0;
  font-weight: 800;
  line-height: 1.05;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.3em;
}

.prize-num {
  font-size: clamp(3.5rem, 17vw, 8rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 10%, #ff6b7f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prize-unit {
  font-size: clamp(1.5rem, 6vw, 2.75rem);
  color: var(--brand-soft);
}

.disclaimer {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.contact {
  max-width: 640px;
  margin: 0 auto;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  text-align: center;
}

.channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas:
    'icon name actions'
    'icon value actions'
    'hint hint hint';
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card:hover {
  border-color: var(--brand-soft);
}

.icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--border);
  color: rgb(255 255 255 / 0.9);
}

.icon svg {
  display: block;
}

.name {
  grid-area: name;
  font-size: 0.8125rem;
  color: var(--muted);
}

.value {
  grid-area: value;
  justify-self: start;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

a.value {
  text-decoration: underline;
  text-decoration-color: var(--brand-soft);
  text-underline-offset: 4px;
}

.actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint {
  grid-area: hint;
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: #4ade80;
}

.hint:empty {
  display: none;
}

.btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn.primary {
  color: #ffffff;
  background: var(--brand);
  border: 1px solid transparent;
}

.btn.primary:hover {
  background: #c8001e;
}

.btn.secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.btn.secondary:hover {
  border-color: var(--brand-soft);
}

.copy {
  min-width: 92px;
}

.scan[hidden] {
  display: none;
}

/* Scan needs JS (the dialog), so it is only revealed once teaser.js added the `js` class. */
@media (hover: hover) and (pointer: fine) {
  .js .scan[hidden] {
    display: inline-flex;
  }
}

.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: #ffc857;
  background: #3d2e10;
  border: 1px solid rgb(255 200 87 / 0.4);
  border-radius: 12px;
}

.notice[hidden] {
  display: none;
}

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

.dlg {
  width: min(360px, calc(100vw - 32px));
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
}

.dlg::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.dlg[open] {
  animation: fade 0.15s ease-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.dlg-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 24px;
  text-align: center;
}

.dlg-body .close {
  align-self: flex-end;
}

.dlg h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.qr {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 8px;
}

.dlg-url {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  word-break: break-all;
}

.foot {
  padding-top: 32px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Narrow windows (and very small phones): buttons get their own row so values never break. */
@media (max-width: 359px), (max-width: 479px) and (hover: hover) and (pointer: fine) {
  .card {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      'icon name'
      'icon value'
      'actions actions'
      'hint hint';
  }
  .actions {
    margin-top: 10px;
  }
}

@media (min-width: 640px) {
  .page {
    padding: 28px 24px 36px;
  }
  .logo {
    height: 40px;
  }
  .hero {
    padding: 88px 0 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none;
  }
  .dlg[open] {
    animation: none;
  }
}
