:root {
  --bg1: #120017;
  --bg2: #4f1b61;
  --card: rgba(255,255,255,.12);
  --text: #fff;
  --muted: rgba(255,255,255,.78);
  --gold: #ffd36a;
  --gold-2: #ffb84d;
  --pink: #ff4fa3;
  --danger: #ff5b6e;
  --ok: #23d18b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 163, .20), transparent 28%),
    radial-gradient(circle at bottom right, rgba(69, 200, 255, .18), transparent 24%),
    linear-gradient(140deg, var(--bg1), var(--bg2));
}
a { color: inherit; }
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.card {
  width: min(1080px, 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 32px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  padding: 42px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #381900;
  background: linear-gradient(135deg, #fff3bf, var(--gold));
  font-weight: 800;
  font-size: 14px;
}
h1 { font-size: clamp(36px, 5.2vw, 64px); margin: 18px 0 12px; line-height: 1.02; }
p { color: var(--muted); font-size: 18px; line-height: 1.72; }
.hero-actions { margin: 22px 0 10px; }
.hero-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.hero-points li {
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  color: #2b0820;
  background: linear-gradient(135deg, #fff3bf, #ffd36a 52%, #ff9f43);
  box-shadow: 0 12px 30px rgba(255, 159, 67, .32);
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 159, 67, .42); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn.secondary { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.btn.danger { background: var(--danger); color: #fff; box-shadow: none; }
.wheel-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 14px 6px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
}
.wheel-title {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}
.wheel-caption { font-size: 13px; color: rgba(255,255,255,.7); }
.wheel-wrap { position: relative; display: grid; place-items: center; padding-top: 10px; }
.pointer {
  position: absolute;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 44px solid var(--gold);
  z-index: 8;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
}
.pointer::after {
  content: '';
  position: absolute;
  left: -7px;
  top: -41px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.wheel {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 12px solid rgba(255,255,255,.16);
  background: conic-gradient(from -90deg, #ffd36a 0 60deg, #ff4fa3 60deg 120deg, #8c52ff 120deg 180deg, #45c8ff 180deg 240deg, #ff9f43 240deg 300deg, #62ddb0 300deg 360deg);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 50px rgba(0,0,0,.18), 0 24px 50px rgba(0,0,0,.3);
  transition: transform 4.2s cubic-bezier(.12,.80,.18,1);
}
.wheel::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.wheel-gloss {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.24), transparent 24%);
  pointer-events: none;
  z-index: 1;
}
.wheel-center {
  position: relative;
  z-index: 6;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffef7, #ffe5a1);
  color: #391337;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: .05em;
  border: 10px solid #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}
.wheel-center span {
  display: block;
  font-size: 13px;
  letter-spacing: .18em;
  margin-top: 2px;
}
.wheel-dividers,
.wheel-prizes {
  position: absolute;
  inset: 0;
}
.wheel-dividers { z-index: 2; }
.wheel-prizes { z-index: 4; pointer-events: none; }
.wheel-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 49%;
  background: rgba(255,255,255,.32);
  transform-origin: top center;
  transform: rotate(var(--rot)) translateY(-100%);
}
.wheel-prize {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  transform-origin: center center;
}
.wheel-prize-slot {
  position: absolute;
  left: 50%;
  top: var(--top-gap);
  width: var(--content-w);
  transform: translateX(-50%);
  transform-origin: center top;
}
.wheel-prize-content {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.32);
}
.wheel-prize-content img {
  width: var(--img, 38px);
  height: var(--img, 38px);
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}
.wheel-prize-content .emoji {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.28));
}
.wheel-prize-content strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--font, 12px);
  line-height: 1.15;
  font-weight: 900;
  word-break: break-word;
  letter-spacing: .01em;
}
.result-image-wrap {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  display: none;
  place-items: center;
  border-radius: 24px;
  background: #fff4cf;
  overflow: hidden;
}
.result-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.prize-editor { display: grid; gap: 12px; margin-top: 10px; }
.prize-admin-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.14);
}
.prize-admin-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom: 4px; }
.btn.mini { padding: 8px 12px; font-size: 13px; box-shadow: none; }

.modal {
  position: fixed; inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.55);
  padding: 20px;
  z-index: 10;
}
.modal.show { display: grid; }
.modal-box {
  width: min(480px, 100%);
  background: #fff;
  color: #34122d;
  border-radius: 28px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
.modal-box p { color: #6b5364; }
.gift { font-size: 62px; }
.admin-shell { padding: 28px; max-width: 1120px; margin: 0 auto; }
.admin-header { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom: 22px; }
.admin-grid { display:grid; grid-template-columns: 380px 1fr; gap:20px; }
.panel { background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); border-radius: 22px; padding:20px; }
label { display:block; margin: 12px 0 6px; color: rgba(255,255,255,.82); font-size: 14px; }
input, textarea, select {
  width:100%; padding: 12px 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.18); color: #fff; outline: none; font-size: 15px;
}
textarea { min-height: 72px; resize: vertical; }
.table { width:100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.12); text-align:left; font-size: 14px; vertical-align: top; }
.table th { color: var(--gold); }
.actions { display:flex; gap:8px; flex-wrap: wrap; }
.small { font-size: 13px; color: rgba(255,255,255,.68); }
.toast { margin-top: 12px; color: var(--gold); min-height: 20px; }
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .admin-grid { grid-template-columns: 1fr; }
  .hero { padding: 26px; gap: 24px; }
  .wheel { width: 330px; height: 330px; }
  .wheel-center { width: 108px; height: 108px; font-size: 21px; }
  .admin-header { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 480px) {
  .page { padding: 16px; }
  .card { border-radius: 24px; }
  .hero { padding: 20px; }
  h1 { font-size: 34px; }
  p { font-size: 16px; }
  .wheel-stage { padding: 14px 8px 2px; }
  .wheel { width: min(90vw, 320px); height: min(90vw, 320px); }
  .wheel-center { width: 98px; height: 98px; font-size: 19px; }
}


/* v11 customer-facing simplification for US-market landing pages */
.compact-hero {
  width: min(980px, 100%);
  grid-template-columns: minmax(0, 1fr) 420px;
}
.compact-hero .hero-copy {
  max-width: 470px;
}
.compact-hero .hero-points { display: none; }
.headline-visual {
  margin: 18px 0 12px;
  max-width: 100%;
}
.headline-visual img {
  display: block;
  width: min(100%, 520px);
  max-height: 140px;
  object-fit: contain;
  object-position: left center;
}
.compact-hero h1 {
  max-width: 560px;
  font-size: clamp(38px, 5vw, 58px);
}
.compact-hero p {
  max-width: 520px;
}
.compact-hero .small {
  max-width: 440px;
}
@media (max-width: 940px) {
  .compact-hero { grid-template-columns: 1fr; }
  .compact-hero .hero-copy { max-width: none; }
}


.upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.upload-row input[type="file"] {
  padding: 10px;
  font-size: 13px;
}
@media (max-width: 560px) {
  .upload-row {
    grid-template-columns: 1fr;
  }
}

/* v15 compact customer layout: less empty spacing, faster mobile landing view */
.page {
  padding: 12px;
  align-items: center;
}
.card {
  width: min(940px, 100%);
  border-radius: 22px;
  box-shadow: 0 18px 56px rgba(0,0,0,.30);
}
.hero,
.compact-hero {
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  padding: 22px;
}
.badge {
  padding: 6px 10px;
  font-size: 12px;
}
h1,
.compact-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 4.4vw, 50px);
}
p,
.compact-hero p {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.48;
}
.hero-actions {
  margin: 14px 0 6px;
}
.btn {
  padding: 14px 24px;
  font-size: 16px;
}
.small {
  font-size: 12px;
  line-height: 1.45;
}
.headline-visual {
  margin: 10px 0 8px;
}
.headline-visual img {
  max-height: 110px;
}
.wheel-stage {
  gap: 8px;
  padding: 10px 10px 8px;
  border-radius: 22px;
}
.wheel-title {
  padding: 6px 12px;
  font-size: 11px;
}
.wheel-wrap {
  padding-top: 6px;
}
.wheel {
  width: 350px;
  height: 350px;
  border-width: 10px;
}
.wheel-center {
  width: 108px;
  height: 108px;
  border-width: 8px;
  font-size: 21px;
}
.wheel-caption {
  font-size: 12px;
}
.modal {
  padding: 12px;
}
.modal-box {
  border-radius: 22px;
  padding: 24px;
}

@media (max-width: 940px) {
  .hero,
  .compact-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .compact-hero .hero-copy {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 8px;
    place-items: start center;
  }
  .card {
    border-radius: 18px;
  }
  .hero,
  .compact-hero {
    padding: 12px;
    gap: 10px;
  }
  .badge {
    font-size: 11px;
    padding: 5px 9px;
  }
  h1,
  .compact-hero h1 {
    margin: 8px 0 6px;
    font-size: 30px;
  }
  p,
  .compact-hero p {
    font-size: 14px;
    line-height: 1.38;
  }
  .headline-visual {
    margin: 8px 0 6px;
  }
  .headline-visual img {
    max-height: 82px;
  }
  .hero-actions {
    margin: 10px 0 4px;
  }
  .btn {
    width: 100%;
    padding: 13px 18px;
  }
  .small#hint {
    display: none;
  }
  .wheel-stage {
    gap: 5px;
    padding: 8px 6px 6px;
    border-radius: 18px;
  }
  .wheel-title,
  .wheel-caption {
    display: none;
  }
  .wheel-wrap {
    padding-top: 4px;
  }
  .pointer {
    top: -2px;
    border-left-width: 16px;
    border-right-width: 16px;
    border-top-width: 36px;
  }
  .pointer::after {
    left: -6px;
    top: -34px;
    width: 12px;
    height: 12px;
  }
  .wheel {
    width: min(88vw, 304px);
    height: min(88vw, 304px);
    border-width: 8px;
  }
  .wheel-center {
    width: 88px;
    height: 88px;
    border-width: 7px;
    font-size: 17px;
  }
  .wheel-center span {
    font-size: 10px;
  }
  .wheel-prize-content strong {
    -webkit-line-clamp: 2;
  }
  .modal-box {
    padding: 20px;
  }
}

/* v16 layout refinement: 16:9 title image, tighter Activity Type, lower CTA */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.compact-hero .badge {
  align-self: flex-start;
  margin: -2px 0 6px;
  line-height: 1.1;
  white-space: normal;
}
.headline-visual {
  width: 100%;
  margin: 4px 0 8px;
}
.headline-visual img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: left center;
  border-radius: 16px;
  display: block;
}
.compact-hero h1 {
  margin-top: 4px;
}
.compact-hero #subtitle {
  margin-top: 4px;
  margin-bottom: 0;
}
.compact-hero .hero-actions {
  margin-top: auto;
  padding-top: 22px;
  margin-bottom: 8px;
}
.compact-hero .small#hint {
  margin-top: 0;
}
@media (max-width: 940px) {
  .hero-copy {
    align-self: auto;
  }
  .compact-hero .hero-actions {
    margin-top: 18px;
    padding-top: 0;
  }
  .headline-visual img {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .compact-hero .badge {
    margin: 0 0 4px;
    font-size: 10.5px;
    padding: 4px 8px;
  }
  .headline-visual {
    margin: 2px 0 6px;
  }
  .headline-visual img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    border-radius: 12px;
  }
  .compact-hero #subtitle {
    margin: 2px 0 0;
  }
  .compact-hero .hero-actions {
    margin-top: 14px;
    margin-bottom: 4px;
  }
}
