:root {
    --reward-bg: #050816;
    --reward-bg-soft: #0a1224;
    --reward-surface: rgba(9, 18, 36, 0.82);
    --reward-surface-strong: rgba(8, 16, 32, 0.96);
    --reward-line: rgba(110, 201, 255, 0.18);
    --reward-line-strong: rgba(83, 220, 255, 0.34);
    --reward-text: #eef5ff;
    --reward-muted: #a8b8d6;
    --reward-dim: #7486a7;
    --reward-cyan: #53dcff;
    --reward-mint: #38f1c2;
    --reward-violet: #8b72ff;
    --reward-gold: #ffd166;
    --reward-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --reward-radius: 28px;
    --reward-font: 'Noto Sans TC', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { touch-action: pan-y; overscroll-behavior-y: none; }

@media (max-width: 768px) {
    html { height: 100%; overflow: hidden; overscroll-behavior: none; }
    body {
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: touch;
    }
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--reward-text);
    background:
        radial-gradient(circle at 12% 5%, rgba(83, 220, 255, 0.16), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(139, 114, 255, 0.18), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(56, 241, 194, 0.10), transparent 34%),
        linear-gradient(180deg, #07101f 0%, #050816 55%, #03050d 100%);
    font-family: var(--reward-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(110, 201, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 201, 255, 0.035) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.reward-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 24px;
    background: rgba(5, 10, 20, 0.86);
    border-bottom: 1px solid rgba(110, 201, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.reward-nav__inner {
    width: min(1180px, 100%);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.reward-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.reward-brand img {
    width: auto;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.reward-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reward-nav__link {
    padding: 10px 14px;
    color: var(--reward-muted);
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.reward-nav__link:hover {
    color: var(--reward-text);
    background: rgba(83, 220, 255, 0.10);
}

.reward-nav__link.is-active {
    color: #2b1600;
    background: linear-gradient(135deg, #ffe66d 0%, #ffad3d 100%);
    border-color: rgba(255, 235, 145, 0.72);
    box-shadow: 0 10px 24px rgba(255, 177, 61, 0.28);
}

.reward-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--reward-font);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.reward-btn:hover { transform: translateY(-2px); }
.reward-btn--primary {
    color: #03111d;
    background: linear-gradient(135deg, var(--reward-cyan), var(--reward-mint));
    box-shadow: 0 14px 34px rgba(83, 220, 255, 0.24);
}

.reward-btn--primary:hover { box-shadow: 0 18px 42px rgba(83, 220, 255, 0.32); }
.reward-btn--ghost {
    color: var(--reward-text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(110, 201, 255, 0.22);
}

.reward-btn--ghost:hover {
    background: rgba(83, 220, 255, 0.10);
    border-color: rgba(83, 220, 255, 0.38);
}

.reward-btn--lg {
    min-height: 52px;
    padding: 13px 24px;
    font-size: 15px;
}

.reward-hero {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 54px;
}

.reward-eyebrow,
.reward-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--reward-cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.reward-eyebrow {
    padding: 9px 14px;
    border: 1px solid rgba(83, 220, 255, 0.22);
    border-radius: 999px;
    background: rgba(83, 220, 255, 0.06);
    letter-spacing: 0.04em;
}

.reward-eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--reward-mint);
    box-shadow: 0 0 16px rgba(56, 241, 194, 0.9);
}

.reward-hero h1 {
    margin: 22px 0 22px;
    font-size: clamp(2.55rem, 5vw, 4.7rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.reward-hero h1 span {
    color: transparent;
    background: linear-gradient(100deg, #ffffff 0%, var(--reward-cyan) 46%, var(--reward-mint) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.reward-hero__lead {
    color: #dce9ff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.75;
}

.reward-hero__copy > p:not(.reward-hero__lead):not(.reward-note) {
    color: var(--reward-muted);
    font-size: 16px;
    line-height: 1.9;
}

.reward-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.reward-note {
    margin: 16px 0 0;
    color: var(--reward-dim);
    font-size: 12px;
    line-height: 1.7;
}

.reward-hero__media {
    position: relative;
    margin: 0;
    border: 1px solid rgba(110, 201, 255, 0.2);
    border-radius: 30px;
    overflow: hidden;
    background: var(--reward-surface);
    box-shadow: var(--reward-shadow), 0 0 70px rgba(83, 220, 255, 0.10);
}

.reward-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -80px 80px rgba(0, 0, 0, 0.18);
}

.reward-hero__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.reward-tips,
.latest-articles,
.reward-cta {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.reward-tips { padding: 34px 0 76px; }
.latest-articles { padding: 10px 0 76px; }

.reward-section-head {
    max-width: 760px;
    margin-bottom: 30px;
}

.reward-section-head h2,
.reward-cta h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.85rem, 3.4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.reward-section-head p,
.reward-cta p {
    margin-bottom: 0;
    color: var(--reward-muted);
    font-size: 16px;
    line-height: 1.9;
}

.reward-tip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.reward-tip-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--reward-line);
    border-radius: var(--reward-radius);
    background: linear-gradient(150deg, rgba(15, 28, 52, 0.92), rgba(6, 13, 27, 0.9));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.reward-tip-card::after {
    content: '';
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83, 220, 255, 0.18), transparent 68%);
}

.reward-tip-card__number {
    color: rgba(83, 220, 255, 0.48);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.reward-tip-card__icon {
    width: 58px;
    height: 58px;
    margin: 30px 0 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(83, 220, 255, 0.18);
    border-radius: 18px;
    background: rgba(83, 220, 255, 0.08);
    font-size: 27px;
}

.reward-tip-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.reward-tip-card p {
    margin-bottom: 0;
    color: var(--reward-muted);
    font-size: 15px;
    line-height: 1.8;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.article-card,
.article-loading,
.article-empty {
    border: 1px solid var(--reward-line);
    border-radius: 22px;
    background: var(--reward-surface);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}

.article-card {
    display: flex;
    min-height: 174px;
    padding: 24px;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: var(--reward-line-strong);
    background: rgba(13, 28, 53, 0.94);
}

.article-card__top,
.article-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.merchant-id {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 64%;
    padding: 6px 10px;
    overflow: hidden;
    color: var(--reward-cyan);
    background: rgba(83, 220, 255, 0.08);
    border: 1px solid rgba(83, 220, 255, 0.16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-date {
    flex: 0 0 auto;
    color: var(--reward-dim);
    font-size: 12px;
}

.article-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.article-card__foot {
    color: var(--reward-muted);
    font-size: 13px;
}

.article-card__title {
    color: inherit;
}

.article-card__title:hover {
    color: var(--reward-cyan);
}

.article-card__merchant {
    min-width: 0;
    overflow: hidden;
    color: var(--reward-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-card__merchant:hover {
    color: var(--reward-cyan);
}

.article-card__more {
    flex: 0 0 auto;
    color: var(--reward-mint);
    font-weight: 900;
}

.article-card__title:focus-visible,
.article-card__merchant:focus-visible,
.article-card__more:focus-visible {
    outline: 2px solid var(--reward-cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

.article-loading,
.article-empty {
    grid-column: 1 / -1;
    padding: 34px;
    color: var(--reward-muted);
    text-align: center;
}

.article-empty strong {
    display: block;
    margin-bottom: 8px;
    color: var(--reward-text);
    font-size: 20px;
}

.article-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.article-pagination[hidden] { display: none; }

.article-page-btn {
    min-width: 104px;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--reward-text);
    background: linear-gradient(135deg, rgba(83, 220, 255, 0.14), rgba(139, 114, 255, 0.14));
    border: 1px solid rgba(83, 220, 255, 0.28);
    border-radius: 999px;
    font-family: var(--reward-font);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.article-page-btn:hover:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(-2px);
    border-color: rgba(83, 220, 255, 0.52);
    background: linear-gradient(135deg, rgba(83, 220, 255, 0.24), rgba(139, 114, 255, 0.22));
}

.article-page-btn:disabled,`n.article-page-btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.42;
}

.article-page-status {
    min-width: 92px;
    color: var(--reward-muted);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.reward-cta {
    margin-bottom: 76px;
    padding: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid rgba(83, 220, 255, 0.22);
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 12%, rgba(56, 241, 194, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(14, 31, 58, 0.98), rgba(7, 14, 29, 0.98));
    box-shadow: var(--reward-shadow);
}

.reward-cta h2 { margin-bottom: 8px; }

.reward-footer {
    padding: 30px 20px 40px;
    color: var(--reward-dim);
    border-top: 1px solid rgba(110, 201, 255, 0.12);
    text-align: center;
    font-size: 13px;
}

.reward-footer a { color: var(--reward-muted); }
.reward-footer a:hover { color: var(--reward-cyan); }
.reward-footer span { margin: 0 10px; color: rgba(168, 184, 214, 0.35); }
.reward-footer p { margin: 12px 0 0; }

@media (max-width: 920px) {
    .reward-hero {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 58px;
    }

    .reward-hero__copy { max-width: 760px; }
    .reward-hero__media { order: 2; }
    .reward-tip-grid { grid-template-columns: 1fr; }
    .reward-tip-card { min-height: auto; }
    .reward-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .reward-nav { padding: 10px 12px; }
    .reward-nav__inner {
        min-height: 58px;
        padding: 7px 8px 7px 11px;
        border: 1px solid rgba(83, 220, 255, 0.15);
        border-radius: 999px;
        background: rgba(6, 13, 27, 0.78);
        gap: 8px;
    }

    .reward-brand { gap: 8px; font-size: 15px; }
    .reward-brand img { height: 34px; }
    .reward-nav__actions { gap: 6px; }
    .reward-nav__link { display: none; }
    .reward-nav .reward-btn--primary {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .reward-hero,
    .reward-tips,
    .latest-articles,
    .reward-cta {
        width: min(100% - 28px, 1180px);
    }

    .reward-hero { padding: 46px 0 42px; }
    .reward-hero h1 {
        margin: 18px 0 18px;
        font-size: clamp(2.25rem, 11vw, 3.35rem);
        letter-spacing: -0.035em;
    }

    .reward-hero__lead { font-size: 16px; }
    .reward-hero__copy > p:not(.reward-hero__lead):not(.reward-note) { font-size: 15px; }
    .reward-hero__actions { display: grid; grid-template-columns: 1fr; }
    .reward-btn--lg { width: 100%; }
    .reward-hero__media { border-radius: 22px; }
    .reward-tips { padding-bottom: 52px; }
    .latest-articles { padding-bottom: 52px; }
    .reward-section-head { margin-bottom: 22px; }
    .reward-section-head h2,
    .reward-cta h2 { font-size: 1.85rem; }
    .reward-section-head p,
    .reward-cta p { font-size: 15px; }
    .reward-tip-card,
    .article-card { padding: 20px; }
    .article-grid { grid-template-columns: 1fr; }
    .article-card { min-height: 158px; }
    .article-card h3 { font-size: 19px; }
    .article-pagination {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }
    .article-page-btn {
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
    }
    .article-page-status { min-width: 74px; font-size: 13px; }
    .reward-cta {
        margin-bottom: 52px;
        padding: 26px 20px;
        border-radius: 24px;
    }
    .reward-cta .reward-btn { width: 100%; }
}

@media (max-width: 390px) {
    .reward-brand span { display: none; }
    .reward-hero h1 { font-size: 2.15rem; }
    .reward-hero__media { border-radius: 18px; }
    .merchant-id { max-width: 68%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
/* Homepage header styles, scoped so activity content keeps its own design. */
.nav{position:sticky;top:0;z-index:100;background:rgba(8,13,26,.94);border-bottom:1px solid #23314a;backdrop-filter:blur(16px);font-family:'Noto Sans TC','Segoe UI',sans-serif;line-height:1.8;color:#f1f5ff}
.nav-inner{max-width:1440px;margin:auto;padding:12px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.nav-logo a{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:900;letter-spacing:-1px}
.nav-logo img{width:40px;height:40px;object-fit:contain}
.nav-links{display:flex;gap:24px;color:#a8b6ce;font-size:14px}
.nav-links a:hover{color:#70e5e0}
.nav-actions{display:flex;align-items:center;gap:8px}
.nav .btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid #23314a;border-radius:10px;padding:10px 18px;min-height:44px;color:#f1f5ff;font-family:inherit;font-size:14px;font-weight:700;line-height:1.5;cursor:pointer;background:#142036;transition:background .2s,transform .2s}
.nav .btn:hover{transform:translateY(-2px);background:#1b2d46}
.nav .btn-primary{background:#70e5e0;border-color:#70e5e0;color:#091c25}
.nav .btn-primary:hover{background:#a0f2ee}
.nav .btn-reward{background:#211c39;border-color:#51427c;color:#d5caff}
.nav .btn-lucky{border:1px solid rgba(83,220,255,.45);background:linear-gradient(135deg,#53dcff 0%,#38f1c2 52%,#ffd166 100%);color:#041018;font-weight:900;box-shadow:0 0 24px rgba(83,220,255,.24)}
.nav .btn-lucky:hover{transform:translateY(-1px);box-shadow:0 0 30px rgba(83,220,255,.34);background:linear-gradient(135deg,#53dcff 0%,#38f1c2 52%,#ffd166 100%)}
.nav a:focus-visible,.nav button:focus-visible{outline:3px solid #70e5e0;outline-offset:5px}
.lucky-wheel-modal .lucky-wheel-close{z-index:5}
@media(max-width:1100px){.nav-links{order:3;width:100%;justify-content:center;border-top:1px solid #23314a;padding-top:10px;gap:32px}}
@media(max-width:560px){.nav-inner{padding:10px 16px;gap:10px}.nav-logo a{font-size:22px}.nav-logo img{width:30px;height:30px}.nav-actions{gap:6px}.nav-actions .btn{font-size:11px;padding:8px 9px;min-height:40px;border-radius:7px}.nav-links{font-size:12px;gap:22px;padding-top:8px}}
@media(max-width:360px){.nav-logo img{display:none}.nav-inner{padding-left:12px;padding-right:12px}.nav-actions .btn{padding:8px}.nav-links{gap:15px}}
@media(prefers-reduced-motion:reduce){.nav *{transition:none!important}}
.lucky-wheel-section {
    position: relative;
    padding: 72px 24px;
    content-visibility: auto;
    contain-intrinsic-size: 620px;
}

.lucky-wheel-panel {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    gap: 32px;
    align-items: center;
    border: 1px solid rgba(83, 220, 255, .22);
    border-radius: 28px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(83, 220, 255, .12), rgba(123, 97, 255, .10) 44%, rgba(56, 241, 194, .08)),
        rgba(5, 8, 22, .78);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
    overflow: hidden;
}

.lucky-wheel-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(83, 220, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83, 220, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(120deg, transparent, #000 18%, #000 75%, transparent);
    pointer-events: none;
}

.lucky-wheel-copy,
.lucky-wheel-visual {
    position: relative;
    z-index: 1;
}

.lucky-wheel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(83, 220, 255, .26);
    border-radius: 999px;
    color: #9fe9ff;
    background: rgba(83, 220, 255, .08);
    font-size: 13px;
    font-weight: 700;
}

.lucky-wheel-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.1;
    color: #f3f8ff;
}

.lucky-wheel-copy p {
    max-width: 620px;
    margin: 0 0 18px;
    color: #a9bcda;
    font-size: 16px;
    line-height: 1.8;
}

.lucky-wheel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.lucky-wheel-status {
    color: #8df5d3;
    font-size: 13px;
    font-weight: 700;
}

.btn-lucky {
    border: 1px solid rgba(83, 220, 255, .45);
    background: linear-gradient(135deg, #53dcff 0%, #38f1c2 52%, #ffd166 100%);
    color: #041018;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(83, 220, 255, .24);
}

.btn-lucky:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(83, 220, 255, .34);
    background: linear-gradient(135deg, #53dcff 0%, #38f1c2 52%, #ffd166 100%);
}

.lucky-wheel-mini {
    position: relative;
    width: min(360px, 90%);
    aspect-ratio: 1;
    margin-left: auto;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(83, 220, 255, .25), transparent 48%),
        conic-gradient(from 0deg, #53dcff, #7b61ff, #38f1c2, #ffb86b, #53dcff);
    padding: 18px;
    box-shadow: 0 0 34px rgba(83, 220, 255, .20), 0 0 70px rgba(123, 97, 255, .14);
}

.lucky-wheel-mini::before {
    content: '';
    position: absolute;
    inset: 44px;
    border-radius: 50%;
    background: #050816;
    box-shadow: inset 0 0 30px rgba(83, 220, 255, .22);
}

.lucky-wheel-mini::after {
    content: 'AI';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #eaf2ff;
    font-size: 42px;
    font-weight: 900;
    text-shadow: 0 0 22px rgba(83, 220, 255, .8);
}

.lucky-wheel-modal {
    position: fixed;
    top: 78px;
    right: 22px;
    left: auto;
    bottom: auto;
    z-index: 1000000;
    display: none;
    padding: 0;
}

.lucky-wheel-modal.is-open { display: block; }

.lucky-wheel-dialog {
    position: relative;
    width: min(680px, calc(100vw - 32px));
    max-height: min(82vh, 760px);
    overflow: auto;
    border: 1px solid rgba(83, 220, 255, .32);
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 0%, rgba(83, 220, 255, .18), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(123, 97, 255, .18), transparent 32%),
        #070c1a;
    color: #eaf2ff;
    box-shadow: 0 40px 140px rgba(0, 0, 0, .7);
}

.lucky-wheel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.lucky-wheel-countdown {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100% - 52px));
    margin: 58px auto 0;
    padding: 10px 14px;
    border: 1px solid rgba(83, 220, 255, .30);
    border-radius: 14px;
    background:
        radial-gradient(circle at 16% 0%, rgba(83, 220, 255, .18), transparent 42%),
        rgba(5, 8, 22, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 48px rgba(0,0,0,.30);
    text-align: center;
}

.lucky-wheel-countdown-text {
    margin-bottom: 7px;
    color: #dff8ff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.lucky-wheel-countdown-clock {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.lucky-wheel-countdown-clock span {
    min-width: 48px;
    padding: 5px 8px;
    border: 1px solid rgba(83, 220, 255, .22);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
}

.lucky-wheel-countdown-clock strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.lucky-wheel-countdown-clock small {
    display: block;
    margin-top: 2px;
    color: #9fe9ff;
    font-size: 10px;
    font-weight: 700;
}

.lucky-wheel-dialog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px;
    align-items: center;
}

@media (max-width: 640px) {
    .lucky-wheel-countdown { width: calc(100% - 32px); margin: 64px auto 0; padding: 9px 10px; }
    .lucky-wheel-countdown-text { font-size: 13px; }
    .lucky-wheel-countdown-clock { gap: 6px; }
    .lucky-wheel-countdown-clock span { min-width: 44px; padding: 5px 6px; }
    .lucky-wheel-countdown-clock strong { font-size: 17px; }
}

.lucky-wheel-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.lucky-wheel-stage canvas {
    width: min(320px, 74vw);
    height: min(320px, 74vw);
}

.lucky-wheel-not-started {
    display: none;
    width: min(420px, 100%);
    min-height: 320px;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 28px 20px;
    border: 1px solid rgba(83, 220, 255, .30);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 18%, rgba(83, 220, 255, .20), transparent 44%),
        linear-gradient(145deg, rgba(83, 220, 255, .07), rgba(123, 97, 255, .08)),
        rgba(5, 8, 22, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 70px rgba(0,0,0,.35);
    text-align: center;
}

.lucky-wheel-not-started-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: 4px;
    border: 1px solid rgba(83, 220, 255, .48);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83, 220, 255, .20), rgba(5, 8, 22, .75) 68%);
    box-shadow: 0 0 34px rgba(83, 220, 255, .22), inset 0 0 26px rgba(123, 97, 255, .22);
}

.lucky-wheel-not-started-orbit::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px dashed rgba(83, 220, 255, .42);
    border-radius: 50%;
    animation: lucky-orbit 10s linear infinite;
}

.lucky-wheel-not-started-orbit::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #38f1c2;
    box-shadow: 0 0 18px rgba(56, 241, 194, .95);
}

.lucky-wheel-not-started-orbit strong {
    font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .08em;
    color: #eaf2ff;
    text-shadow: 0 0 18px rgba(83, 220, 255, .85);
}

.lucky-wheel-not-started-eyebrow,
.lucky-wheel-not-started-time {
    font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
    letter-spacing: .13em;
}

.lucky-wheel-not-started-eyebrow {
    color: #53dcff;
    font-size: 11px;
    font-weight: 700;
}

.lucky-wheel-not-started h3 {
    margin: 4px 0 0;
    font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 900;
    letter-spacing: .08em;
    color: #f3f8ff;
    text-shadow: 0 0 26px rgba(83, 220, 255, .28);
}

.lucky-wheel-not-started p {
    max-width: 330px;
    margin: 0;
    color: #a9bcda;
    line-height: 1.8;
}

.lucky-wheel-not-started-time {
    min-height: 20px;
    margin-top: 4px;
    color: #8df5d3;
    font-size: 12px;
    font-weight: 700;
}

.lucky-wheel-modal.is-not-started .lucky-wheel-stage canvas,
.lucky-wheel-modal.is-not-started .lucky-wheel-pointer,
.lucky-wheel-modal.is-not-started .lucky-wheel-info {
    display: none;
}

.lucky-wheel-modal.is-not-started .lucky-wheel-not-started {
    display: grid;
}

@keyframes lucky-orbit {
    to { transform: rotate(360deg); }
}

.lucky-wheel-pointer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 34px solid #38f1c2;
    filter: drop-shadow(0 0 10px rgba(56, 241, 194, .8));
    z-index: 2;
}

.lucky-wheel-info h3 {
    margin: 0 0 10px;
    font-size: 28px;
}

.lucky-wheel-info p {
    color: #a9bcda;
    line-height: 1.8;
}

.lucky-wheel-result {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(83, 220, 255, .25);
    border-radius: 16px;
    background: rgba(83, 220, 255, .08);
}

.lucky-wheel-code {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #050816;
    border: 1px dashed rgba(56, 241, 194, .6);
    color: #8df5d3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .08em;
}

@media (max-width: 900px) {
    .lucky-wheel-panel { grid-template-columns: 1fr; }
    .lucky-wheel-modal { top: 72px; left: 12px; right: 12px; }
    .lucky-wheel-dialog { width: 100%; max-height: 82vh; }
    .lucky-wheel-mini { margin: 0 auto; }
    .lucky-wheel-stage { min-height: 300px; }
}

@media (max-width: 640px) {
    .lucky-wheel-section { padding: 52px 16px; }
    .lucky-wheel-panel { padding: 24px; border-radius: 22px; }
    .lucky-wheel-modal {
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(2, 6, 15, .86);
        overflow: hidden;
    }
    html.aics-lucky-open,
    body.aics-lucky-open {
        width: 100%;
        height: 100%;
        overflow: hidden !important;
        overscroll-behavior: none !important;
        touch-action: none;
    }
    .lucky-wheel-dialog {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
        touch-action: pan-y;
    }
    .lucky-wheel-close {
        position: fixed;
        top: calc(12px + env(safe-area-inset-top));
        right: calc(14px + env(safe-area-inset-right));
        z-index: 3;
        background: rgba(5, 8, 22, .82);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .lucky-wheel-dialog-grid {
        padding: calc(70px + env(safe-area-inset-top)) 18px 24px;
    }
    .lucky-wheel-stage {
        min-height: min(74vw, 320px);
    }
    .lucky-wheel-stage canvas {
        width: min(78vw, 320px);
        height: min(78vw, 320px);
    }
    .lucky-wheel-info h3 {
        font-size: 24px;
    }
    body.aics-lucky-open #aics-widget-btn,
    body.aics-lucky-open #aics-widget-container {
        display: none !important;
    }
}
