@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0c21;
  --card: #141426;
  --line: #34304c;
  --muted: #b5b0ca;
  --purple: #c0a0ff;
  --green: #c2f2b0;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(#0b0c211a, #0b0c214d), url('./assets/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f5f3ff;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.5;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
a { color: inherit; }
button:disabled { cursor: default; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 18px; border-radius: 8px; background: var(--purple); color: var(--bg); z-index: 20; }
.skip-link:focus { top: 16px; }

header { max-width: 1256px; margin: auto; min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 40px; }
.brand { display: flex; gap: 10px; align-items: center; flex-shrink: 0; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--purple); color: #201630; display: grid; place-items: center; font-size: 25px; }
.brand span:last-child { color: var(--purple); }
nav { display: flex; gap: 24px; align-items: center; min-width: 0; font-size: 13px; color: var(--muted); }
nav a { text-decoration: none; white-space: nowrap; }
nav a:hover { color: white; }
.pill { border: 1px solid var(--line); border-radius: 30px; padding: 10px 14px; color: #e0d4ff; background: #201a35; font-size: 11px; letter-spacing: 1px; font-weight: 700; }
.community-pill { white-space: nowrap; }
.account-button { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 240px; min-height: 44px; letter-spacing: .3px; }
.account-button:hover:not(:disabled) { border-color: var(--purple); background: #2b2146; }
.account-button:disabled { opacity: .65; }
.account-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
#account-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-banner { border-top: 1px solid #ffffff08; border-bottom: 1px solid var(--line); background: #0b0c21b3; color: #c9bddf; padding: 12px 24px; text-align: center; font-size: 12px; }
.connection-banner.error { color: #ffdcba; background: #33222bed; }

main { max-width: 1176px; margin: 36px auto 0; padding: 0 24px; }
.eyebrow { color: var(--purple); letter-spacing: 2px; font-weight: 700; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -2px; margin: 14px 0; }
h1 em { font-style: normal; color: var(--purple); }
.lead { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.date-chip { border: 1px solid var(--line); background: #151327e6; border-radius: 12px; padding: 13px 18px; font-size: 12px; color: var(--muted); margin-bottom: 6px; max-width: 290px; }
.date-chip b { color: #f0ecff; display: block; margin-top: 5px; font-size: 14px; }
.giveaway-banner { margin: 28px 0 0; }
.giveaway-banner img { display: block; width: 100%; height: auto; object-fit: contain; border: 1px solid #7661ad; border-radius: 18px; background: #0b0c21; box-shadow: 0 10px 48px #0005; }
.giveaway-banner figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.6; }
.giveaway-banner time { color: #e2d6ff; }

.layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 22px; margin-top: 28px; align-items: stretch; }
.wheel-card { background: radial-gradient(ellipse at 50% 42%, #5d368a44, transparent 64%), #141426; border: 1px solid #50416c; border-radius: 22px; position: relative; overflow: hidden; padding: 23px 28px 26px; text-align: center; box-shadow: 0 14px 40px #0003; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #cfc6e5; font-size: 11px; }
.card-top > span:first-child { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.card-top .tag { font-size: 10px; letter-spacing: 1px; border: 1px solid #55416f; border-radius: 6px; padding: 6px 8px; color: var(--purple); }
.active-dot { color: var(--purple); }
.operator-disclosure { margin: 20px 0 0; padding: 18px; border: 2px solid #e0b36e; border-radius: 12px; background: #2b2235; color: #f4e9dc; text-align: left; overflow-wrap: anywhere; }
.operator-disclosure h2 { margin: 0 0 10px; color: #ffe0a8; font-size: 16px; line-height: 1.4; }
.operator-disclosure p { margin: 10px 0 0; font-size: 12px; line-height: 1.7; }
.operator-disclosure strong { color: #fff3db; }
.operator-disclosure .operator-rule-state { padding: 9px 11px; border-left: 3px solid #e0b36e; background: #171323; color: #ffe0a8; font-weight: 700; }
.wheel-wrap { position: relative; width: min(100%, 356px); aspect-ratio: 1; margin: 27px auto 24px; }
.wheel-rim { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #8b6eb2; background: #2a213d; padding: 11px; box-shadow: 0 0 0 7px #c8a6ff08, 0 24px 60px #0005; }
.wheel { position: relative; width: 100%; height: 100%; border: 2px solid #b593db; border-radius: 50%; background: conic-gradient(from -15deg, #b9a2e9 0deg 30deg, #403252 30deg 60deg, #8d72b8 60deg 90deg, #30283f 90deg 120deg, #c2addf 120deg 150deg, #4c395f 150deg 180deg, #9d82c8 180deg 210deg, #32283f 210deg 240deg, #b9a2e9 240deg 270deg, #4c395f 270deg 300deg, #8d72b8 300deg 330deg, #30283f 330deg 360deg); transition: transform 5s cubic-bezier(.15, .7, .1, 1); will-change: transform; overflow: hidden; }
.sector { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.sector span { position: absolute; left: calc(50% - 12px); top: 22px; width: 24px; color: #f6edff; text-shadow: 0 1px 8px #0004; font: bold 28px 'Space Grotesk', sans-serif; }
.spoke { position: absolute; height: 50%; width: 1px; background: #f0d6ff44; left: 50%; top: 0; transform-origin: bottom; transform: rotate(var(--a)); }
.hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 94px; height: 94px; background: #211830; border: 7px solid #6a4c85; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px #0006; color: #eadbff; z-index: 2; }
.pointer { position: absolute; top: -9px; left: calc(50% - 14px); width: 28px; height: 33px; background: var(--purple); clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 4; filter: drop-shadow(0 3px 4px #000); }
.spin-button { width: 100%; max-width: 390px; margin: 0 auto; border: 0; border-radius: 11px; background: var(--purple); color: #1e142e; padding: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 11px; box-shadow: 0 3px 0 #8163b5; transition: background .2s, box-shadow .2s; }
.spin-button:hover:not(:disabled) { background: #d1baff; box-shadow: 0 3px 0 #8163b5, 0 0 24px #b88bff33; }
.spin-button:disabled { background: #373048; color: #c7bbd9; box-shadow: none; }
.status { font-size: 12px; color: var(--muted); margin: 15px auto 0; line-height: 1.6; min-height: 38px; max-width: 440px; overflow-wrap: anywhere; }
.retry-button { min-height: 44px; margin: 8px auto 0; padding: 9px 14px; border: 1px solid #7b609f; border-radius: 9px; background: #211a33; color: #eadbff; font-size: 12px; }
.retry-button:hover:not(:disabled) { background: #302144; }
.wheel-note { color: var(--muted); font-size: 11px; line-height: 1.7; max-width: 380px; margin: 12px auto 0; }

.sidebar { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.prize-card { background: linear-gradient(135deg, #302046, #171426); border: 1px solid #765494; border-radius: 22px; padding: 25px; position: relative; overflow: hidden; }
.small-label { font-size: 10px; letter-spacing: 1.8px; font-weight: 700; color: #d2b6ff; }
.prize-art { min-height: 91px; display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.gift { width: 70px; height: 70px; flex-shrink: 0; display: grid; place-items: center; background: #bca0f5; color: #281940; border-radius: 20px; transform: rotate(-9deg); box-shadow: 7px 7px 0 #71608d; }
.prize-title { font: 700 27px 'Space Grotesk', sans-serif; margin: 0 0 5px; letter-spacing: -.6px; }
.prize-sub { font-size: 12px; color: #c8bcd9; }
.prize-foot { border-top: 1px solid #ffffff20; margin-top: 20px; padding-top: 17px; font-size: 12px; color: #cfc1e0; display: flex; justify-content: space-between; gap: 12px; }
.prize-foot b { color: #f0e3ff; white-space: nowrap; }
.prize-delivery { font-size: 11px; line-height: 1.6; color: #c8bcd9; margin: 10px 0 0; }
.reveal-card { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 22px; }
.reveal-heading { display: flex; gap: 12px; align-items: center; }
.icon-square { height: 36px; width: 36px; flex-shrink: 0; border: 1px solid #58416e; border-radius: 10px; display: grid; place-items: center; color: var(--purple); background: #282039; }
.reveal-heading h2 { font-size: 14px; margin: 0 0 5px; }
.reveal-heading p { font-size: 11px; color: var(--muted); margin: 0; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0 18px; }
.timer div { text-align: center; background: #0e0e1e; border: 1px solid #373047; border-radius: 9px; padding: 11px 3px; min-width: 0; }
.timer b { display: block; font: 500 25px 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.timer span { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.winner-result { margin-top: 20px; overflow-wrap: anywhere; color: var(--green); font-weight: 700; }
.activity { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 18px 22px; }
.activity-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--muted); margin: 0 0 12px; }
.entry { display: flex; gap: 12px; align-items: center; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #302240; color: var(--purple); font-size: 15px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.entry > div { min-width: 0; }
.entry b { font-size: 12px; }
.entry p { font-size: 11px; color: var(--muted); margin: 5px 0 0; overflow-wrap: anywhere; }
.entry .lock { margin-left: auto; color: var(--muted); flex-shrink: 0; }

.how { padding: 37px 0 30px; }
.how h2 { font: 500 21px 'Space Grotesk', sans-serif; margin: 0 0 22px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; }
.step { display: flex; gap: 13px; }
.step-num { border: 1px solid #584270; color: var(--purple); height: 29px; min-width: 29px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.step h3 { margin: 2px 0 7px; font-size: 13px; }
.step p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
details { border-top: 1px solid var(--line); padding: 0; font-size: 12px; color: var(--muted); }
summary { cursor: pointer; color: #e7def5; padding: 18px 0; font-size: 13px; }
summary:hover { color: var(--purple); }
details p { line-height: 1.8; max-width: 880px; margin: 0 0 18px; }
.odds-value { color: var(--purple); }
.noscript-note { border: 1px solid #765494; border-radius: 12px; padding: 18px; color: #f0d8ff; }
footer { border-top: 1px solid var(--line); max-width: 1128px; margin: 0 auto; padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 16px; color: #aaa1bb; font-size: 11px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #eee6ff; color: #21162e; border-radius: 12px; padding: 14px 20px; font-size: 13px; width: max-content; max-width: calc(100% - 30px); overflow-wrap: anywhere; z-index: 10; box-shadow: 0 10px 50px #0008; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-definitions { display: none; }
.gift svg { width: 42px; height: 42px; }
.hub svg { width: 30px; height: 30px; }

@media (max-width: 1050px) {
  nav { gap: 16px; }
  .community-pill { display: none; }
}
@media (max-width: 800px) {
  header { padding: 16px 24px; min-height: 78px; }
  nav a { display: none; }
  main { margin-top: 26px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .intro { display: block; }
  .date-chip { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity { grid-column: 1 / -1; }
  .prize-card, .reveal-card { padding: 20px; }
  footer { margin: 0 24px; }
}
@media (max-width: 600px) {
  header { padding: 16px 20px; gap: 14px; flex-wrap: wrap; }
  nav { gap: 10px; }
  .account-button { max-width: 220px; }
  .sidebar { display: flex; }
  main { padding: 0 16px; }
  .giveaway-banner { margin-top: 22px; }
  .giveaway-banner img { border-radius: 12px; }
  .giveaway-banner figcaption { font-size: 10px; text-align: left; }
  .wheel-card { padding: 20px 18px; }
  .wheel-wrap { width: min(100%, 304px); }
  .sector span { top: 18px; font-size: 24px; }
  .hub { width: 80px; height: 80px; }
  .pill { font-size: 10px; padding: 8px 10px; }
  h1 { letter-spacing: -1.2px; }
  .layout { margin-top: 22px; }
  .connection-banner { padding: 11px 16px; }
  footer { margin: 0 16px; align-items: start; flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .card-top .tag { letter-spacing: .3px; font-size: 9px; }
  .gift { width: 58px; height: 58px; }
  .prize-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel { transition-duration: .1s; }
  .spin-button { transition: none; }
  body { background-attachment: scroll; }
}
