/* Tak.express campaign styles, scoped to the mini-app campaign. */
.campaign-scope {
  --navy:#07103f;
  --blue:#001689;

  --gold:#ffb400;
  --cream:#f4f0e8;
  font:400 16px/normal Pelak,Arial,sans-serif;
}

@scope (.campaign-scope) {
  .campaign {
    width:var(--width);
    min-height:928px;
    margin-inline:auto;
    color:white;
    text-align:center;
    background:radial-gradient(ellipse 280px 410px at 50% 52%,#0a2bc0 0,#001689 42%,#041364 72%,#07103f 100%);
  }

  .campaign-header {
    height:81px;
    border-bottom:1px solid #2c3771;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding-top:28px;
  }

  .logo-pill {
    width:173px;
    height:36px;
    padding:4px 16px 8px;
    background:var(--cream);
    border-radius:16px;
  }

  .logo-pill img {
    display:block;
    width:141px;
    height:24px;
  }

  .hero {
    padding-top:20px;
    padding-bottom:2px;
  }

  .deadline {
    width:max-content;
    height:32px;
    margin:0 auto;
    padding:5px 8px;
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:99px;
    background:rgba(255,255,255,.1);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
    font-size:14px;
    line-height:14px;
  }

  .deadline-dot {
    width:7px;
    height:7px;
    flex:none;
    border-radius:3px;
    background:var(--accent);
    box-shadow:0 0 0 5px rgba(255,103,29,.15);
    opacity:.65;
  }

  .deadline-time {
    padding-right:8px;
    border-right:1px solid rgba(255,255,255,.2);
    color:#ffcf87;
    font:700 12px/1 Pelak,sans-serif;
    white-space:nowrap;
  }

  .eyebrow {
    margin:16px 0 13px;
    color:#ffd5c1;
    font-size:14px;
    font-weight:700;
    line-height:18px;
  }

  .heading-wrap {
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .heading-wrap h1 {
    margin:0;
    color:white;
    font-size:40px;
    font-weight:900;
    letter-spacing:-1px;
    line-height:49px;
    white-space:nowrap;
  }

  .heading-wrap h1 span {
    color:var(--accent);
  }

  .hero-subtitle {
    margin:8px 0 0;
    color:rgba(255,255,255,.75);
    font-size:16px;
    line-height:22px;
  }

  .hero-subtitle strong {
    color:white;
    font-weight:700;
  }

  .wheel-section {
    width:326px;
    height:336px;
    margin:27px auto 0;
    position:relative;
    display:flex;
    align-items:flex-end;
    justify-content:center;
  }

  .wheel-shell {
    position:relative;
    width:310px;
    height:310px;
    flex:none;
    transform:scale(var(--wheel-scale,1));
    transform-origin:center bottom;
    border-radius:50%;
    background:linear-gradient(145deg,#f8fbff 8%,#687089 20%,#151b36 36%,#d7e0ec 61%,#555d76 79%,#fff 94%);
    box-shadow:0 28px 69px rgba(0,5,44,.42),0 4px 15px rgba(0,5,44,.36),inset 0 -15px 30px rgba(0,0,0,.42);
  }

  .wheel-shell:after {
    content:"";
    position:absolute;
    inset:3px;
    border-radius:50%;
    pointer-events:none;
    background:linear-gradient(110deg,rgba(255,255,255,.35) 8%,transparent 23%,transparent 61%,rgba(255,255,255,.11) 92%);
  }

  .wheel-inner-rim {
    inset:17px;
    background:#020b3b;
    box-shadow:inset 0 8px 18px rgba(0,0,0,.75),0 0 0 2px rgba(255,255,255,.25);
  }

  .wheel-face,.wheel-inner-rim {
    position:absolute;
    border-radius:50%;
  }

  .wheel-face {
    --slice-angle: 45deg;
    --segment-index: 0;
    width:270.362px;
    height:270.362px;
    top:20px;
    left:20px;
    overflow:hidden;
    direction:ltr;
    transform: rotate(calc((var(--segment-index) + .5) * var(--slice-angle) * -1));
    box-shadow:0 9px 20px rgba(0,0,0,.45);
    background: repeating-conic-gradient(
      #0934a9 0deg calc(var(--slice-angle) - 1deg),
      #ffd78c calc(var(--slice-angle) - 1deg) var(--slice-angle),
      #1a205d var(--slice-angle) calc(2 * var(--slice-angle) - 1deg),
      #ffd78c calc(2 * var(--slice-angle) - 1deg) calc(2 * var(--slice-angle))
    );
  }

  .wheel-value {
    --value-angle: calc((var(--segment-index) + .5) * var(--slice-angle));
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transform: translate(-50%, -50%) rotate(var(--value-angle)) translateY(-86px);
  }

  .wheel-value bdi {
    display: grid;
    gap: 2px;
    text-align: center;
    line-height: 1;
  }

  .wheel-value strong {
    font-size: 22px;
    font-weight: 900;
  }

  .wheel-ring {
    position:absolute;
    width:207.278px;
    height:207.278px;
    left:31.5px;
    top:31.5px;
  }

  .wheel-dot {
    position:absolute;
    width:5.40796px;
    height:5.40796px;
    transform:translate(-50%,-50%);
  }

  .wheel-label {
    position:absolute;
    z-index:2;
    font:700 15px/1 Arial,sans-serif;
    direction:ltr;
    white-space:nowrap;
    transform-origin:center;
    text-align:center;
    color:#fff;
    text-shadow:0 1px 2px #001;
  }

  .wheel-label-0 {
    left:62.3%;
    top:24.8%;
    transform:translate(-50%,-50%) rotate(26deg);
  }

  .wheel-label-1 {
    left:77.3%;
    top:43.7%;
    color:var(--blue);
    transform:translate(-50%,-50%) rotate(77deg);
  }

  .wheel-label-2 {
    left:71.8%;
    top:67.6%;
    transform:translate(-50%,-50%) rotate(129deg);
  }

  .wheel-label-3 {
    left:50%;
    top:78%;
    transform:translate(-50%,-50%) rotate(180deg);
  }

  .wheel-label-4 {
    left:28.2%;
    top:67.6%;
    color:var(--blue);
    transform:translate(-50%,-50%) rotate(-129deg);
  }

  .wheel-label-5 {
    left:22.7%;
    top:43.7%;
    transform:translate(-50%,-50%) rotate(-77deg);
  }

  .wheel-label-6 {
    left:37.7%;
    top:24.8%;
    transform:translate(-50%,-50%) rotate(-26deg);
  }

  .wheel-label {
    max-width:24%;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .wheel-center {
    position:absolute;
    z-index:3;
    left:116px;
    top:116px;
    width:78px;
    height:78px;
    border:4.4px solid #fff;
    border-radius:50%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:radial-gradient(circle at 35% 20%,#7ce1e7,var(--accent) 55%,#00828a);
    color:white;
    box-shadow:0 8px 10px rgba(0,0,0,.4),inset 0 3px 4px rgba(255,255,255,.4);
  }

  .wheel-center span {
    font-size:12px;
    font-weight:900;
    line-height:18px;
  }

  .wheel-center small {
    font:400 8px/1 Arial,sans-serif;
    letter-spacing:1px;
    opacity:.7;
  }

  .wheel-pointer {
    position:absolute;
    z-index:4;
    width:38.3446px;
    height:56.7957px;
    left:50%;
    top:-24px;
    transform:translateX(-50%);
  }

  .chance-row {
    width:100%;
    height:49px;
    padding:16px 16px 8px;
    justify-content:space-between;
  }

  .chance,.chance-row {
    display:flex;
    align-items:center;
  }

  .chance {
    gap:2px;
    flex-direction:row;
    font-size:12px;
    font-weight:500;
  }

  .chance-number {
    color:var(--gold);
    font-size:26px;
    font-weight:700;
    line-height:26px;
  }

  .prize-link {
    padding:0;
    border:0;
    border-bottom:1px solid var(--accent);
    background:transparent;
    color:var(--accent);
    font-size:14px;
    font-weight:500;
    line-height:27px;
  }

  .prize-info {
    margin:0 16px 8px;
    padding:8px;
    border:1px solid rgba(255,180,0,.4);
    border-radius:8px;
    color:var(--gold);
    font-size:12px;
  }

  .button-band {
    padding:25px 16px 19px;
    background:linear-gradient(#001689,#07103f);
  }

  .spin-button {
    width:100%;
    height:48px;
    border:0;
    border-radius:16px;
    background:var(--accent);
    color:white;
    font-size:18px;
    font-weight:700;
  }

  .spin-button:hover,.wheel-center:hover {
    filter:brightness(1.08);
  }

  .spin-button:disabled,.wheel-center:disabled {
    cursor:wait;
  }

  .bottom-button-wrap {
    padding:8px 20px 58px;
    display:none;
  }

  .sticky-spin {
    position:-webkit-sticky;
    position:sticky;
    bottom:0;
    z-index:10;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }

  .faq-section,.how-section {
    padding:32px 16px;
    background:#f4f0e8;
    color:#001689;
    text-align:right;
  }

  .faq-section h2,.how-section h2,.prize-section h2 {
    margin:0 0 20px;
    text-align:center;
    font-size:20px;
    font-weight:900;
  }

  .how-card {
    margin-top:16px;
    border-radius:22px;
    background:#fff;
    box-shadow:0 6px 0 #e3dccb;
    color:#001689;
    font-size:14px;
  }

  .how-card p {
    margin:8px 0 0;
    color:#4a5280;
  }

  .prize-section {
    background:linear-gradient(#001689,#07103f);
    color:white;
    text-align:center;
  }

  .prize-section h3 {
    color:var(--accent);
    font-size:22px;
  }

  .prize-section ul {
    padding:0;
    list-style:none;
    text-align:right;
  }

  .prize-section li {
    margin-top:10px;
    padding:8px 14px;
    border-radius:14px;
    background:#0b1a66;
    color:#dde2fa;
    font-size:14px;
    line-height:1.8;
  }

  .faq-section details {
    padding:16px 4px;
    border-bottom:1px solid #00168924;
  }

  .faq-section summary {
    cursor:pointer;
    font-weight:700;
  }

  .faq-section details p {
    color:#666d85;
    line-height:1.8;
  }

  .campaign-footer {
    padding:28px 20px;
    display:grid;
    justify-items:center;
    grid-gap:18px;
    gap:18px;
    background:linear-gradient(#001689,#06114f);
  }

  @media (max-width:380px) {
    .heading-wrap h1 {
      font-size:36px;
    }
    .wheel-section {
      --wheel-scale:.95;
    }
  }

  @media (max-width:350px) {
    .heading-wrap h1 {
      font-size:32px;
    }
    .wheel-section {
      --wheel-scale:.88;
    }
  }

  @media (prefers-reduced-motion:reduce) {
    .wheel-face {
      transition-duration:.01ms;
    }
  }

  .campaign {
    position:relative;
  }

  .sticky-slot {
    position:relative;
    z-index:20;
    width:100%;
    min-height:64px;
    margin-top:4px;
  }

  .sticky-spin {
    width:100%;
    padding:8px 16px;
    background:transparent;
  }

  .sticky-spin:not(.is-stuck) {
    animation:sticky-return .28s ease-out both;
  }

  .my-prizes-link {
    display:block;
    margin:8px auto 0;
    border:0;
    background:none;
    color:var(--accent);
    font-size:14px;
    font-weight:700;
  }

  .sticky-spin.is-stuck {
    position:fixed;
    left:50%;
    bottom:2px;
    transform:translateX(-50%);
    width:var(--width);
    padding:10px 16px;
    animation:sticky-arrive .24s ease-out both;
  }

  @keyframes sticky-arrive {
    0% {
      opacity:.5;
      translate:0 12px;
    }
    to {
      opacity:1;
      translate:0 0;
    }
  }

  @keyframes sticky-return {
    0% {
      opacity:.45;
      translate:0 -10px;
    }
    to {
      opacity:1;
      translate:0 0;
    }
  }

  .how-section {
    position:relative;
    margin-top:92px;
    padding:56px 16px 32px;
    min-height:475px;
    background:linear-gradient(180deg,transparent 0 49px,#f4f0e8 49px);
  }

  .how-section:before {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:49px;
  }

  .how-section h2 {
    margin:0 0 32px;
    text-align:center;
  }

  .how-card {
    min-height:104px;
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 0 16px;
    padding:12px 4px;
    text-align:right;
  }

  .how-card img {
    width:64px;
    height:83px;
    object-fit:contain;
    flex:none;
  }

  .how-card>div {
    flex:1 1;
  }

  .how-card b {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    font-weight:800;
  }

  .how-card i {
    display:grid;
    place-items:center;
    width:26px;
    height:26px;
    border-radius:50%;
    background:var(--accent);
    color:white;
    font-style:normal;
    font-weight:900;
    flex:none;
  }

  .how-card p {
    font-size:12px;
    line-height:25px;
    margin:0;
  }

  .prize-section {
    padding:32px 16px;
  }

  .prize-section h2 {
    margin:8px 0 0;
    font-size:32px;
    line-height:54px;
    white-space:nowrap;
  }

  .prize-section h3 {
    margin:0 0 12px;
    font-size:26px;
    line-height:46px;
    white-space:nowrap;
  }

  .prize-section li {
    margin-top:12px;
    min-height:42px;
    line-height:25px;
  }

  .faq-section {
    padding:32px 16px 40px;
  }

  .faq-section h2 {
    margin:0 0 23px;
  }

  .faq-section details {
    min-height:66px;
  }

  .faq-section details:first-of-type {
    min-height:100px;
  }

  .faq-section summary {
    position:relative;
    padding:8px 40px 8px 8px;
    list-style:none;
  }

  .faq-section summary:before {
    content:"+";
    position:absolute;
    left:0;
    top:0;
    display:grid;
    place-items:center;
    width:31px;
    height:31px;
    border-radius:50%;
    background:#00168914;
    color:#001689;
    font:20px Arial;
  }

  .faq-section details[open] summary:before {
    content:"−";
  }

  .faq-section details p {
    margin:0;
    padding:0 4px 4px;
    font-size:14px;
    line-height:26px;
  }

  .campaign-footer {
    padding:26px 20px 30px;
    gap:23px;
  }

  .social-row {
    display:flex;
    gap:8px;
  }

  .social-row>* {
    width:32px;
    height:32px;
    padding:7px;
    display:grid;
    place-items:center;
    border:1px solid #ffffff1f;
    border-radius:50%;
    background:#ffffff12;
    color:white;
  }

  .how-card {
    height:94px;
    min-height:0;
    padding:5px 4px;
  }

  .how-card img {
    height:76px;
  }

  .faq-section details {
    height:66px;
    min-height:0;
    padding:8px 4px;
  }

  .faq-section details:first-of-type {
    height:100px;
    min-height:0;
  }

  .eyebrow .stars-icon,.prize-link .stars-icon {
    display:inline-block;
    width:19px;
    height:17px;
    vertical-align:middle;
    margin:0 4px;
  }

  .how-section {
    padding:0;
    min-height:0;
    height:auto;
    background:transparent;
    line-height:0;
  }

  .how-section:before {
    content:none;
  }

  .how-section>img {
    display:block;
    width:100%;
    height:auto;
  }

  .faq-item {
    border-bottom:1px solid #00168924;
  }

  .faq-question {
    position:relative;
    display:block;
    width:100%;
    min-height:50px;
    padding:8px 40px 8px 42px;
    border:0;
    background:transparent;
    color:inherit;
    text-align:right;
    font-weight:700;
    cursor:pointer;
  }

  .faq-question:before {
    content:"+";
    position:absolute;
    left:0;
    top:9px;
    display:grid;
    place-items:center;
    width:31px;
    height:31px;
    border-radius:50%;
    background:#00168914;
    color:#001689;
    font:20px Arial;
  }

  .faq-item.is-open .faq-question:before {
    content:"−";
  }

  .faq-answer p {
    margin:0;
    padding:0 40px 12px 4px;
    color:#666d85;
    font-size:14px;
    line-height:26px;
  }

  .campaign-overlay {
    position:fixed;
    inset:0;
    z-index:100;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    background:#020720aa;
  }

  .campaign-sheet {
    position:relative;
    width:min(100vw,390px);
    padding:74px 16px 22px;
    border:1px solid #3a4a9a;
    border-radius:28px 28px 0 0;
    background:linear-gradient(#001689,#07103f);
    color:#f4f0e8;
    text-align:right;
    animation:sheet-rise .3s ease-out both;
    max-height:92dvh;
    overflow-y:auto;
  }

  @keyframes sheet-rise {
    0% {
      transform:translateY(100%);
    }
    to {
      transform:translateY(0);
    }
  }

  .sheet-close {
    position:absolute;
    top:9px;
    right:16px;
    border:0;
    background:none;
    color:#b6bee6;
    font:30px Arial;
    line-height:30px;
  }

  .auth-box {
    display:grid;
    grid-gap:12px;
    gap:12px;
    width:100%;
    padding:16px;
    border:1px solid #3a4a9a;
    border-radius:18px;
    background:#0b1a66;
  }

  .auth-box label {
    display:block;
    height:35px;
    padding-bottom:8px;
    color:#f4f0e8;
    font-size:15px;
    font-weight:700;
    line-height:27px;
  }

  .auth-box input {
    width:100%;
    height:56px;
    padding:8px;
    border:2px solid #3a4a9a;
    border-radius:12px;
    outline:none;
    background:#07103f87;
    color:#fff;
    text-align:center;
    font:400 20px Pelak,sans-serif;
    letter-spacing:2px;
    direction:ltr;
    transition:border-color .35s,background .35s,box-shadow .35s;
  }

  .auth-box input::placeholder {
    color:#777eae;
  }

  .auth-box input:focus {
    border-color:#ffb400;
  }

  .auth-box input.is-verified {
    border-color:#38bf82;
    background:#175a55;
    box-shadow:0 0 0 4px #38bf8233;
  }

  .auth-box>button:not(.resend-code) {
    height:48px;
    border:0;
    border-radius:16px;
    background:var(--accent);
    color:#fff;
    font-size:18px;
    font-weight:700;
  }

  .auth-box>button:disabled {
    opacity:.6;
  }

  .resend-code {
    justify-self:end;
    border:0;
    background:none;
    color:#b6bee6;
    font-size:14px;
  }

  .sheet-error {
    margin:0;
    color:#ffd3c7;
    font-size:13px;
  }

  .dev-code {
    margin:0;
    color:#b6bee6;
    font-size:12px;
  }

  .prize-sheet {
    padding-top:22px;
  }

  .reward-content {
    display:grid;
    grid-gap:16px;
    gap:16px;
  }

  .reward-hoodie {
    display:block;
    width:96px;
    height:96px;
    object-fit:contain;
    margin:0 auto;
  }

  .reward-content h2 {
    margin:0;
    text-align:center;
    color:#f4f0e8;
    font-size:28px;
    font-weight:900;
    line-height:1.8;
    white-space:nowrap;
  }

  .reward-content h2 span {
    display:inline-block;
    padding:0 6px;
    border-radius:12px;
    background:#f4f0e8;
    color:var(--accent);
  }

  .reward-description {
    margin:0;
    text-align:center;
    color:#c9d0f5;
    font-size:14px;
  }

  .reward-code {
    display:flex;
    gap:8px;
    height:48px;
  }

  .reward-code code {
    display:grid;
    place-items:center;
    flex:1 1;
    border:1px dashed #ffb400;
    border-radius:12px;
    color:#f4f0e8;
    font:900 21px Pelak;
    letter-spacing:2px;
  }

  .reward-code button {
    min-width:70px;
    border:0;
    border-radius:18px;
    background:var(--accent);
    font-size:14px;
    font-weight:900;
  }

  .reward-validity {
    margin:-6px 9px 0;
    color:#b6bee6;
    font-size:14px;
  }

  .reward-card {
    padding:12px;
    border-radius:18px;
    background:#0b1a66;
  }

  .reward-card h3 {
    margin:0;
    color:#f4f0e8;
    font-size:16px;
  }

  .reward-card p {
    margin:5px 0 14px;
    color:#c9d0f5;
    font-size:14px;
    line-height:25px;
  }

  .reward-card>a {
    display:grid;
    place-items:center;
    width:100%;
    height:47px;
    border-radius:16px;
    background:var(--accent);
    color:#fff;
    text-decoration:none;
    font-size:17px;
    font-weight:900;
  }

  .referral-card {
    padding:16px;
  }

  .referral-card h3 {
    text-align:center;
    font-size:18px;
  }

  .referral-link {
    display:flex;
    align-items:center;
    gap:8px;
    height:56px;
    padding:8px;
    border:1px dashed #324488;
    border-radius:13px;
    background:#19276e;
  }

  .referral-link span {
    min-width:0;
    flex:1 1;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#fff;
    font:14px Arial;
  }

  .referral-link button {
    height:40px;
    padding:0 12px;
    border:0;
    border-radius:9px;
    background:#001689;
    font-size:12px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
  }

  .referral-link button img {
    width:20px;
    height:20px;
  }

  .referral-progress,.referral-share {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:15px;
  }

  .referral-share>div {
    display:flex;
    gap:8px;
  }

  .referral-share a,.referral-share button {
    display:grid;
    place-items:center;
    width:32px;
    height:32px;
    border:1px solid #ffffff20;
    border-radius:50%;
    background:#ffffff0d;
    color:#fff;
    text-decoration:none;
    font-size:19px;
  }

  .referral-share button img {
    width:16px;
    height:16px;
  }

  .referral-share span {
    font-size:14px;
  }

  .referral-progress {
    margin-top:20px;
    color:#bfbfbf;
    font-size:12px;
  }

  .referral-progress b {
    color:var(--accent);
    font-size:23px;
  }

  .my-prizes-content {
    display:grid;
    grid-gap:14px;
    gap:14px;
  }

  .my-prizes-content h2 {
    margin:0 28px 4px 0;
    font-size:20px;
    text-align:center;
  }

  .my-prizes-content h3 {
    margin:4px 0 0;
    font-size:16px;
  }

  .invite-prompt {
    margin:0;
    color:#c9d0f5;
    font-size:14px;
    line-height:25px;
  }

  .my-prizes-stats {
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-gap:10px;
    gap:10px;
  }

  .my-prizes-stats>div {
    display:grid;
    grid-gap:8px;
    gap:8px;
    padding:14px;
    border-radius:14px;
    background:#0b1a66;
  }

  .empty-wins,.my-prizes-stats span {
    color:#b6bee6;
    font-size:13px;
  }

  .my-prizes-stats b {
    color:#ffb400;
    font-size:20px;
  }

  .my-win {
    display:grid;
    grid-template-columns:1fr auto;
    grid-gap:6px 10px;
    gap:6px 10px;
    padding:12px;
    border-radius:12px;
    background:#0b1a66;
  }

  .my-win span {
    color:#c9d0f5;
    font-size:13px;
  }

  .my-win code {
    grid-column:1/-1;
    color:#ffb400;
    text-align:left;
  }

  .empty-wins {
    margin:0;
    padding:10px 0;
  }

  @media(max-width:600px) {
    .campaign-sheet {
      width:100%;
    }
  }

  @media(min-width:700px) {
    .campaign-overlay {
      align-items:center;
      padding:24px;
    }
    .campaign-sheet {
      width:min(960px,calc(100vw - 64px));
      max-height:calc(100vh - 48px);
      padding:28px;
      border-radius:28px;
    }
    .prize-sheet {
      padding-top:28px;
    }
    .reward-content {
      grid-template-columns:1fr 1fr;
      gap:14px 20px;
      align-items:start;
    }
    .reward-code,.reward-content h2,.reward-hoodie,.reward-validity {
      grid-column:1/-1;
    }
    .reward-hoodie {
      width:76px;
      height:76px;
    }
    .reward-content h2 {
      font-size:26px;
    }
    .reward-card {
      height:100%;
    }
    .reward-card p {
      line-height:23px;
    }
    .referral-card {
      grid-column:2;
      grid-row:5/span 2;
    }
    .reward-card:not(.referral-card) {
      grid-column:1;
      grid-row:5/span 2;
    }
    .sheet-close {
      z-index:2;
    }
  }

  .loading-ring {
    display:inline-block;
    width:16px;
    height:16px;
    border:2px solid #ffffff55;
    border-top-color:var(--accent);
    border-radius:50%;
    vertical-align:middle;
    animation:loading-turn .7s linear infinite;
  }

  .wheel-loading {
    position:absolute;
    left:calc(50% - 12px);
    top:calc(50% - 12px);
    width:24px;
    height:24px;
    border-width:3px;
  }

  .deadline-time .loading-ring {
    width:13px;
    height:13px;
    margin-inline:10px;
  }

  .my-prizes-link:disabled {
    opacity:.6;
    cursor:wait;
  }

  .spin-button:disabled {
    opacity:.88;
  }

  @keyframes loading-turn {
    to {
      transform:rotate(1turn);
    }
  }

  @media(prefers-reduced-motion:reduce) {
    .loading-ring {
      animation-duration:2s;
    }
  }

  .wheel-label-loading {
    display:grid;
    place-items:center;
    width:24%;
    height:24%;
  }

  .wheel-label-loading .loading-ring {
    width:13px;
    height:13px;
  }

  .campaign {
    overflow-x:clip;
  }

  .wheel-section {
    width:min(326px,100%);
  }

  @media(max-width:380px) {
    .heading-wrap {
      width:100%;
      padding-inline:8px;
    }
    .heading-wrap h1 {
      font-size:clamp(28px,9vw,36px);
      line-height:1.2;
    }
    .chance-row {
      padding-inline:12px;
      gap:6px;
    }
    .prize-link {
      font-size:clamp(11px,3.4vw,14px);
      white-space:nowrap;
    }
  }

  @media(max-width:600px) {
    .campaign-overlay {
      height:100dvh;
      overflow:hidden;
    }
    .campaign-sheet {
      width:100%;
      max-width:390px;
      max-height:calc(100dvh - 8px);
      padding-bottom:calc(18px + env(safe-area-inset-bottom));
      overflow-x:hidden;
      overflow-y:auto;
      overscroll-behavior:contain;
      -webkit-overflow-scrolling:touch;
    }
    .prize-sheet {
      padding-top:18px;
    }
    .reward-content {
      min-width:0;
      gap:10px;
    }
    .reward-hoodie {
      width:72px;
      height:72px;
    }
    .reward-content h2 {
      white-space:normal;
      overflow-wrap:anywhere;
      font-size:clamp(20px,6vw,26px);
      line-height:1.45;
    }
    .reward-code {
      min-width:0;
      height:auto;
      min-height:46px;
    }
    .reward-code code {
      min-width:0;
      padding:6px;
      overflow-wrap:anywhere;
      font-size:clamp(15px,4.8vw,20px);
      letter-spacing:0;
    }
    .reward-code button {
      flex:none;
      min-width:68px;
      padding-inline:8px;
    }
    .reward-card {
      min-width:0;
      padding:12px;
    }
    .reward-card p {
      font-size:13px;
      line-height:1.7;
    }
    .referral-card h3 {
      font-size:16px;
    }
    .referral-link {
      min-width:0;
    }
    .referral-link button {
      flex:none;
      padding-inline:8px;
    }
    .referral-progress,.referral-share {
      gap:8px;
      flex-wrap:wrap;
    }
  }

  @media(max-height:950px) {
    .campaign-header {
      height:70px;
      padding-top:20px;
    }
    .hero {
      padding-top:12px;
    }
    .eyebrow {
      margin:11px 0 9px;
    }
    .wheel-section {
      height:303px;
      margin-top:13px;
      --wheel-scale:.9;
    }
    .chance-row {
      height:44px;
    }
    .sticky-slot {
      margin-top:0;
    }
    .how-section {
      margin-top:58px;
    }
    .sticky-spin.is-stuck {
      bottom:2px;
    }
  }

  @media(max-height:760px) {
    .campaign-header {
      height:66px;
      padding-top:18px;
    }
    .hero {
      padding-top:10px;
    }
    .eyebrow {
      margin:10px 0 8px;
    }
    .wheel-section {
      height:290px;
      margin-top:8px;
      --wheel-scale:.86;
    }
    .chance-row {
      height:43px;
    }
    .how-section {
      margin-top:20px;
    }
  }

  @media(max-height:680px) {
    .wheel-section {
      height:263px;
      --wheel-scale:.78;
    }
    .hero-subtitle {
      margin-top:2px;
    }
    .how-section {
      margin-top:12px;
    }
  }

  .social-row a {
    width:32px;
    height:32px;
    padding:7px;
    display:grid;
    place-items:center;
    border:1px solid #ffffff1f;
    border-radius:50%;
    background:#ffffff12;
  }

  .referral-share img,.social-row img {
    width:16px;
    height:16px;
    display:block;
  }

  .social-row>* {
    color:inherit;
  }

  .referral-share a img {
    width:16px;
    height:16px;
  }

  .campaign-footer {
    padding-bottom:calc(72px + env(safe-area-inset-bottom));
  }

  .social-row button {
    width:32px;
    height:32px;
    padding:7px;
    display:grid;
    place-items:center;
    border:1px solid #ffffff1f;
    border-radius:50%;
    background:#ffffff12;
    color:white;
  }

  .how-section {
    margin-top:32px;
    padding:54px 16px 34px;
    background:#f4f0e8;
    line-height:normal;
  }

  .how-section:before {
    content:"";
  }

  .how-section h2 {
    margin:0 0 24px;
  }

  .how-card {
    height:auto;
    min-height:88px;
    padding:14px;
    margin-bottom:12px;
    align-items:flex-start;
  }

  .how-card i {
    margin-top:3px;
  }

  .how-card b {
    font-size:16px;
  }

  .how-card p {
    margin-top:5px;
    line-height:1.8;
  }

  .reward-card {
    background:#203898;
    border:1px solid #6682f5;
    box-shadow:0 7px 20px #020b3b55;
  }

  .referral-card {
    background:#273c8e;
  }

  .referral-link button {
    font-weight:900;
  }

  .referral-link button,.reward-code button {
    background:var(--accent);
    color:#fff;
  }

  .copy-toast {
    position:fixed;
    z-index:200;
    bottom:calc(76px + env(safe-area-inset-bottom));
    left:50%;
    transform:translateX(-50%);
    padding:9px 18px;
    border-radius:12px;
    background:#10215d;
    color:#fff;
    box-shadow:0 6px 20px #0005;
    white-space:nowrap;
    font-size:14px;
  }

  .my-prizes-content>.referral-link {
    margin:4px 0 10px;
  }

}

@scope (.campaign-scope) {
  .campaign button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
  .wheel-center:disabled, .spin-button:disabled { cursor: default; }
  .reward-feedback { width: calc(100% - 32px); margin: 12px 16px 24px; }
  .dot-0 { left: 50.0000000%; top: 7.0000000%; }
  .dot-1 { left: 68.6570008%; top: 11.2583387%; }
  .dot-2 { left: 83.6187537%; top: 23.1899385%; }
  .dot-3 { left: 91.9219002%; top: 40.4315998%; }
  .dot-4 { left: 91.9219002%; top: 59.5684002%; }
  .dot-5 { left: 83.6187537%; top: 76.8100615%; }
  .dot-6 { left: 68.6570008%; top: 88.7416613%; }
  .dot-7 { left: 50.0000000%; top: 93.0000000%; }
  .dot-8 { left: 31.3429992%; top: 88.7416613%; }
  .dot-9 { left: 16.3812463%; top: 76.8100615%; }
  .dot-10 { left: 8.0780998%; top: 59.5684002%; }
  .dot-11 { left: 8.0780998%; top: 40.4315998%; }
  .dot-12 { left: 16.3812463%; top: 23.1899385%; }
  .dot-13 { left: 31.3429992%; top: 11.2583387%; }
  :is(.wheel-value-0, .wheel-face[data-segment="0"]) { --segment-index: 0; }
  :is(.wheel-value-1, .wheel-face[data-segment="1"]) { --segment-index: 1; }
  :is(.wheel-value-2, .wheel-face[data-segment="2"]) { --segment-index: 2; }
  :is(.wheel-value-3, .wheel-face[data-segment="3"]) { --segment-index: 3; }
  :is(.wheel-value-4, .wheel-face[data-segment="4"]) { --segment-index: 4; }
  :is(.wheel-value-5, .wheel-face[data-segment="5"]) { --segment-index: 5; }
  :is(.wheel-value-6, .wheel-face[data-segment="6"]) { --segment-index: 6; }
  :is(.wheel-value-7, .wheel-face[data-segment="7"]) { --segment-index: 7; }
}
