:root {
  --purple: #7c3aed;
  --purple-bright: #8b5cf6;
  --purple-deep: #4c1d95;
  --night: #160b2e;
  --night-soft: #231045;
  --lime: #c5ef00;
  --lime-deep: #9dc200;
  --pink: #ec4899;
  --ink: #1d1530;
  --paper: #ffffff;
  --paper-soft: #faf9fd;
  --muted: #736d7f;
  --line: #e9e5ef;
  --err: #cf2f4f;
  --radius-lg: 3px;
  --radius-md: 3px;
  --shadow-lg: 0 30px 80px rgba(8, 2, 24, 0.38);
  --shadow-card: 0 18px 50px rgba(20, 8, 48, 0.2);
  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 12%, rgba(124, 58, 237, 0.42), transparent 31rem),
    radial-gradient(circle at 92% 78%, rgba(197, 239, 0, 0.12), transparent 28rem),
    linear-gradient(145deg, #0e071d 0%, var(--night) 42%, #260e4b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  top: -38vw;
  right: -24vw;
  width: 76vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(255, 255, 255, 0.018),
    0 0 0 16vw rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(197, 239, 0, 0.65);
  outline-offset: 3px;
}

.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.page-glow-one {
  top: 18%;
  left: -170px;
  width: 330px;
  height: 330px;
  background: rgba(124, 58, 237, 0.18);
}

.page-glow-two {
  right: -130px;
  bottom: 8%;
  width: 260px;
  height: 260px;
  background: rgba(197, 239, 0, 0.08);
}

.app {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 28px 32px calc(30px + env(safe-area-inset-bottom));
}

/* Header */
.head {
  color: #fff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.badge {
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  color: var(--night);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow {
  color: var(--lime);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.hero-copy {
  max-width: 690px;
  margin: 46px 0 34px;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(197, 239, 0, 0.28);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(197, 239, 0, 0.07);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.event-pill i,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(197, 239, 0, 0.11), 0 0 16px rgba(197, 239, 0, 0.75);
}

h1 {
  max-width: 650px;
  margin: 18px 0 10px;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(50px, 7vw, 82px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: var(--lime);
}

.subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.65;
}

/* Main experience */
.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 26px;
  align-items: start;
}

.wheel-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 32px 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 46%, rgba(124, 58, 237, 0.44), transparent 43%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.wheel-stage::before,
.wheel-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.wheel-stage::before {
  width: 360px;
  height: 360px;
  top: -230px;
  right: -120px;
}

.wheel-stage::after {
  width: 220px;
  height: 220px;
  bottom: -160px;
  left: -60px;
}

.stage-label {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0.08em;
}

.stage-label strong {
  color: rgba(197, 239, 0, 0.58);
  font-size: 26px;
}

.wheel-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74%, 430px);
  aspect-ratio: 1;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.4);
  filter: blur(42px);
  pointer-events: none;
}

.wheel-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 490px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.wheel {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 22px 35px rgba(4, 0, 15, 0.55));
  will-change: transform;
}

/* Tâm bánh xe: logo JUN (lớp phủ tĩnh, không quay theo bánh xe) */
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 23%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--lime);
  box-shadow: 0 8px 20px rgba(9, 3, 22, 0.45), inset 0 0 0 1px rgba(22, 11, 46, 0.06);
  pointer-events: none;
}

.wheel-hub img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.pointer {
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 3;
  width: 48px;
  height: 58px;
  transform: translateX(-50%);
  border: 5px solid #fff;
  border-radius: 25px 25px 28px 28px;
  background: linear-gradient(180deg, var(--lime), #a9d000);
  box-shadow: 0 10px 22px rgba(9, 3, 22, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.55);
}

.pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
  border-radius: 0 0 6px 0;
  background: #a9d000;
}

.pointer span {
  position: absolute;
  inset: 9px;
  z-index: 1;
  border: 2px solid rgba(22, 11, 46, 0.35);
  border-radius: 50%;
}

.wheel-caption {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
}

.wheel-caption span {
  padding: 0 6px;
  color: var(--lime);
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Form card */
.panel {
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #fff, #f8f5fc);
  box-shadow: var(--shadow-card);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.step-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--night);
  color: var(--lime);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(22, 11, 46, 0.22);
}

.panel-kicker {
  margin: 0 0 3px;
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.greeting {
  min-height: 46px;
  margin: 18px 0 15px;
  font-size: 13px;
  line-height: 1.65;
}

.greeting p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.err {
  position: relative;
  padding: 11px 12px 11px 37px;
  border: 1px solid rgba(207, 47, 79, 0.16);
  border-radius: 3px;
  background: rgba(207, 47, 79, 0.07);
  color: var(--err);
  font-weight: 600;
}

.err::before {
  content: "!";
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--err);
  color: #fff;
  font-size: 11px;
}

.ended {
  color: var(--purple-deep);
  font-weight: 700;
}

.code-form {
  display: flex;
  flex-direction: column;
}

.field-label {
  margin: 0 0 7px 2px;
  color: #443b52;
  font-size: 11px;
  font-weight: 700;
}

.field-label:not(:first-child) {
  margin-top: 13px;
}

.code-row {
  display: flex;
  gap: 9px;
}

.input-shell {
  position: relative;
  width: 100%;
}

.input-shell-code {
  min-width: 0;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: #eee9f7;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.ticket-icon {
  color: var(--night);
}

.text-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px 0 49px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.text-input::placeholder {
  color: #aaa3b3;
  font-size: 13px;
  font-weight: 400;
}

.text-input:hover {
  border-color: #d8d0e3;
}

.text-input:focus {
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.09);
}

.code-input {
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.form-hint {
  margin: 10px 2px 0;
  color: #8c8595;
  font-size: 9.5px;
  line-height: 1.55;
}

/* Ô tích đồng ý thể lệ */
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 13px 2px 2px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-soft);
  color: #4a4258;
  font-size: 11.5px;
  line-height: 1.5;
  cursor: pointer;
}

.agree-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--purple);
  cursor: pointer;
}

.agree-text {
  display: inline;
}

.link-inline {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--purple);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link-inline:hover {
  color: var(--purple-deep);
}

/* Thể lệ (popup) */
.thele-modal {
  z-index: 25;
  padding: 18px;
}

.thele-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: min(88vh, 780px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: pop 0.32s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.thele-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #fff, #f5f1fd);
}

.thele-head h2 {
  margin: 0;
  color: var(--purple-deep);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.thele-x {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.thele-x:hover {
  background: var(--paper-soft);
  color: var(--ink);
}

.thele-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 22px 8px;
  color: #423b52;
  font-size: 13.5px;
  line-height: 1.7;
  scrollbar-color: rgba(124, 58, 237, 0.35) transparent;
  scrollbar-width: thin;
}

.thele-kicker {
  margin: 0 0 12px;
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.thele-body h3 {
  margin: 16px 0 6px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.thele-body p {
  margin: 0 0 9px;
}

.thele-body ul {
  margin: 0 0 9px;
  padding-left: 20px;
}

.thele-body li {
  margin: 4px 0;
}

.thele-body b {
  color: var(--ink);
}

.thele-gifts {
  list-style: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
}

.thele-gifts li {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-soft);
  color: var(--ink);
  font-weight: 600;
}

.thele-contact {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--lime-deep);
  border-radius: 3px;
  background: rgba(197, 239, 0, 0.1);
  color: var(--ink);
  font-size: 12.5px;
}

.thele-foot {
  flex: 0 0 auto;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.thele-foot .btn-primary {
  width: 100%;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.035em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.btn-ghost {
  flex: 0 0 auto;
  padding: 0 16px;
  background: var(--night);
  color: #fff;
  box-shadow: 0 10px 20px rgba(22, 11, 46, 0.17);
}

.btn-ghost b {
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 17px;
  transition: transform 0.18s ease;
}

.btn-ghost:hover b {
  transform: translateX(3px);
}

.btn-primary {
  width: 100%;
  min-height: 58px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, #d8ff24, var(--lime));
  color: var(--night);
  font-size: 18px;
  text-transform: uppercase;
  box-shadow: 0 13px 26px rgba(157, 194, 0, 0.28);
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 35%;
  height: 200%;
  transform: skewX(-24deg);
  background: rgba(255, 255, 255, 0.45);
  transition: left 0.55s ease;
}

.btn-primary:hover::before {
  left: 130%;
}

.btn-spark,
.btn-arrow {
  position: absolute;
}

.btn-spark {
  left: 18px;
}

.btn-arrow {
  right: 18px;
  font-family: var(--font-body);
  font-size: 21px;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 17px;
  color: #817a8b;
  font-size: 9.5px;
  font-weight: 600;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trust-row i {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
  font-size: 9px;
  font-style: normal;
}

/* Live activity */
.fomo {
  padding: 20px 21px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: 0 14px 40px rgba(8, 2, 24, 0.2);
  backdrop-filter: blur(16px);
}

.fomo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.fomo-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fomo-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fomo-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.fomo-count b {
  color: var(--lime);
  font-family: var(--font-head);
  font-size: 22px;
}

.fomo-count span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 142px;
  margin: 0;
  padding: 0 3px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: rgba(197, 239, 0, 0.35) transparent;
  scrollbar-width: thin;
}

.feed li {
  position: relative;
  padding: 9px 10px 9px 36px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  line-height: 1.5;
}

.feed b {
  color: #fff;
  font-weight: 700;
}

.feed-gift {
  color: var(--lime);
  font-weight: 700;
}

.feed-emoji {
  position: absolute;
  top: 50%;
  left: 9px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.feed-empty {
  padding-left: 10px !important;
  color: rgba(255, 255, 255, 0.48) !important;
  text-align: center;
}

/* Footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 27px;
  padding: 22px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.42);
  font-size: 9.5px;
  line-height: 1.6;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.foot-brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.foot-copy {
  text-align: right;
}

.foot p {
  margin: 2px 0;
}

.tiny {
  font-size: 8.5px;
}

/* Result modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 3, 21, 0.82);
  backdrop-filter: blur(12px);
  animation: fade 0.22s ease;
}

.modal-card {
  position: relative;
  width: min(100%, 410px);
  overflow: hidden;
  padding: 34px 28px 27px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 6%, rgba(197, 239, 0, 0.2), transparent 34%),
    #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
  text-align: center;
  animation: pop 0.42s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.modal-card::before,
.modal-card::after {
  content: "✦";
  position: absolute;
  color: rgba(124, 58, 237, 0.16);
  font-size: 28px;
}

.modal-card::before {
  top: 34px;
  left: 31px;
}

.modal-card::after {
  top: 75px;
  right: 28px;
  font-size: 18px;
}

.modal-shine {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translateX(-50%);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(124, 58, 237, 0.025), 0 0 0 54px rgba(124, 58, 237, 0.02);
}

.result-kicker {
  position: relative;
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.result-emoji {
  position: relative;
  display: grid;
  place-items: center;
  width: 102px;
  height: 102px;
  margin: 19px auto 14px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  background: linear-gradient(145deg, #f1ebff, #fff);
  box-shadow: 0 16px 30px rgba(76, 29, 149, 0.14);
  font-size: 52px;
  line-height: 1;
}

/* Khi trúng quà vật lý: hiện poster thật thay cho emoji */
.result-emoji.has-img {
  width: 150px;
  height: 188px;
  margin: 12px auto 16px;
  padding: 0;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 3px;
  background: none;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(76, 29, 149, 0.22);
}

.result-emoji.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
}

.result-gift {
  margin: 0 0 13px;
  color: var(--purple-deep);
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.result-note {
  margin: 0 auto 20px;
  color: #625a6e;
  font-size: 11px;
  line-height: 1.7;
}

.result-thanks {
  margin: 14px 0 0;
  color: #9891a1;
  font-size: 9.5px;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 19;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

/* Gallery quà — khung nền tối riêng để đọc rõ trên mọi nền trang cha (kể cả nền sáng của Squarespace) */
.gift-gallery {
  margin: 24px 0 6px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, var(--night-soft), var(--night));
  box-shadow: var(--shadow-card);
}

.gift-gallery-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 2px 16px;
}

.gift-gallery-head h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(23px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.gift-gallery-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.gift-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 34px rgba(8, 2, 24, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gift-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 239, 0, 0.55);
  box-shadow: 0 20px 44px rgba(8, 2, 24, 0.34);
}

.gift-shot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Ô voucher (e-gift, không có poster) — khung 4:5 khớp các poster khác */
.gift-card-voucher {
  border-color: rgba(197, 239, 0, 0.28);
}

.voucher-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 4 / 5;
  padding: 14px 12px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(197, 239, 0, 0.22), transparent 60%),
    linear-gradient(160deg, var(--purple-deep), var(--night));
}

.voucher-brand {
  color: var(--lime);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.voucher-emoji {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.voucher-title {
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.voucher-denoms {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.voucher-foot {
  color: rgba(255, 255, 255, 0.6);
  font-size: 9.5px;
}

/* Squarespace embed: chỉ hiển thị widget vòng quay + form, nền ngoài trong suốt. */
.embed-body {
  display: block;
  min-height: 0;
  background: transparent;
}

.embed-body::before,
.embed-body::after {
  display: none;
}

.embed-app {
  width: min(1000px, 100%);
  min-height: 0;
  padding: 8px;
}

.embed-app .experience-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 20px;
}

.embed-app .wheel-stage {
  padding: 22px;
}

.embed-app .panel {
  padding: 27px;
}

.form-title {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

@keyframes pop {
  from { transform: translateY(18px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .app {
    width: min(620px, 100%);
    padding-inline: 20px;
  }

  .hero-copy {
    margin-block: 35px 28px;
    text-align: center;
    margin-inline: auto;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .embed-app .experience-grid {
    grid-template-columns: 1fr;
  }

  .wheel-wrap {
    width: min(92%, 480px);
  }

  .stage-label {
    left: 24px;
  }
}

@media (max-width: 560px) {
  .app {
    padding: 17px 13px calc(22px + env(safe-area-inset-bottom));
  }

  .embed-app {
    padding: 4px;
  }

  .brand-lockup {
    gap: 10px;
    padding: 0 3px 15px;
  }

  .brand-logo {
    width: 45px;
    height: 45px;
  }

  .eyebrow {
    font-size: 10.5px;
  }

  .brand-note {
    font-size: 8px;
  }

  .hero-copy {
    margin: 24px auto 20px;
  }

  .event-pill {
    padding: 7px 10px;
    font-size: 9px;
  }

  h1 {
    margin-top: 14px;
    font-size: clamp(43px, 15vw, 64px);
  }

  .subtitle {
    padding: 0 20px;
    font-size: 11px;
  }

  .experience-grid {
    gap: 14px;
  }

  .wheel-stage {
    padding: 25px 7px 17px;
    border-radius: 3px;
  }

  .embed-app .wheel-stage {
    padding: 18px 7px 12px;
  }

  .stage-label {
    top: 18px;
    left: 17px;
    font-size: 12px;
  }

  .stage-label strong {
    font-size: 18px;
  }

  .wheel-wrap {
    width: 95%;
    padding: 8px;
  }

  .pointer {
    top: -8px;
    width: 40px;
    height: 48px;
    border-width: 4px;
  }

  .pointer::after {
    bottom: -11px;
    width: 18px;
    height: 18px;
    border-width: 0 4px 4px 0;
  }

  .wheel-caption {
    margin-top: 12px;
    font-size: 8.5px;
  }

  .side-stack {
    gap: 12px;
  }

  .panel {
    padding: 21px 17px 18px;
    border-radius: 3px;
  }

  .embed-app .panel {
    padding: 20px 17px;
  }

  .form-title {
    padding-bottom: 13px;
    font-size: 15px;
  }

  .step-badge {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    font-size: 17px;
  }

  .panel h2 {
    font-size: 15px;
  }

  .panel-kicker {
    font-size: 9px;
  }

  .greeting {
    min-height: 38px;
    margin: 14px 0 12px;
    font-size: 11px;
  }

  .code-row {
    gap: 7px;
  }

  .text-input {
    height: 49px;
    padding-left: 45px;
  }

  .btn-ghost {
    min-height: 49px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .form-hint {
    font-size: 8.5px;
  }

  .trust-row {
    gap: 13px;
    font-size: 8.5px;
  }

  .fomo {
    padding: 17px 15px;
    border-radius: 3px;
  }

  .fomo-title {
    font-size: 9px;
  }

  .feed {
    max-height: 124px;
  }

  .feed li {
    font-size: 9.5px;
  }

  .foot {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .foot-copy {
    text-align: center;
  }

  .modal-card {
    padding: 31px 20px 23px;
    border-radius: 3px;
  }

  .gift-gallery {
    margin-top: 18px;
    padding: 18px 15px;
    border-radius: 3px;
  }

  .gift-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .voucher-emoji {
    font-size: 34px;
  }

  .voucher-title {
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  .code-row {
    flex-direction: column;
  }

  .btn-ghost {
    width: 100%;
  }

  .trust-row {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@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;
  }
}
