/*
 * MyCard Member Event
 * Version: v1.3.64
 * Updated: 2026-08-20 CST
 */

@font-face {
    font-family: "LINE Seed TW";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedTW_OTF_Rg.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

/* v1.0.72: desktop title/tabs row, panel-driven section backgrounds, compact panel titles. */
body#top:not(.inline-detail-mode) #topupbonus[data-active-panel="topup"] {
    --board-bg: #8ed9b5;
    --board-accent: #147950;
    --board-image: none;
    --board-wash: rgba(142, 217, 181, 0.76);
    --board-position: left center;
}

body#top:not(.inline-detail-mode) #topupbonus[data-active-panel="wallet"] {
    --board-bg: #8bc8ef;
    --board-accent: #236db5;
    --board-image: none;
    --board-wash: rgba(139, 200, 239, 0.76);
    --board-position: center;
}

body#top:not(.inline-detail-mode) #hotgames[data-active-panel="games"] {
    --board-bg: #c8b2e9;
    --board-accent: #7443aa;
    --board-image: none;
    --board-wash: rgba(200, 178, 233, 0.78);
    --board-position: left center;
}

body#top:not(.inline-detail-mode) #hotgames[data-active-panel="preregister"] {
    --board-bg: #ffa8a0;
    --board-accent: #bd2845;
    --board-image: none;
    --board-wash: rgba(255, 168, 160, 0.78);
    --board-position: center;
}

.tab-composite-section > .event-tab-panel > .section-heading {
    display: block !important;
    width: min(720px, calc(100% - 32px)) !important;
    min-height: 0 !important;
    margin: 0 auto clamp(14px, 2vw, 22px) !important;
    padding: 0 !important;
    text-align: center !important;
}

.tab-composite-section > .event-tab-panel > .section-heading > .section-kicker,
.tab-composite-section > .event-tab-panel > .section-heading .section-title-icon-frame,
.tab-composite-section > .event-tab-panel > .section-heading .section-title-copy > p {
    display: none !important;
}

.tab-composite-section > .event-tab-panel > .section-heading .section-title-row {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

.tab-composite-section > .event-tab-panel > .section-heading .section-title-copy {
    display: block !important;
    flex: 0 1 auto !important;
    width: auto !important;
    text-align: center !important;
}

.tab-composite-section > .event-tab-panel > .section-heading .section-title-copy h2 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 !important;
    color: var(--board-accent, #a62510) !important;
    font-size: clamp(1.22rem, 2vw, 1.72rem) !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-shadow: 0 2px 0 rgba(255, 248, 207, .9) !important;
}

.tab-composite-section > .event-tab-panel > .section-heading .section-title-copy h2::before,
.tab-composite-section > .event-tab-panel > .section-heading .section-title-copy h2::after {
    display: block;
    width: clamp(24px, 4vw, 54px);
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    opacity: .55;
}

@media (min-width: 769px) {
    body#top:not(.inline-detail-mode) main > .tab-composite-section {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(420px, 620px) !important;
        column-gap: clamp(24px, 4vw, 58px) !important;
        align-items: center !important;
    }

    .tab-composite-section > .section-heading {
        grid-column: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .tab-composite-section > .event-tabs {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .tab-composite-section > .event-tab-panel {
        grid-column: 1 / -1 !important;
        margin-top: clamp(24px, 3vw, 38px) !important;
    }
}

@media (max-width: 700px) {
    .tab-composite-section > .event-tab-panel > .section-heading {
        width: calc(100% - 24px) !important;
        margin-bottom: 9px !important;
    }

    .tab-composite-section > .event-tab-panel > .section-heading .section-title-copy h2 {
        gap: 8px;
        font-size: 1.06rem !important;
    }

    .tab-composite-section > .event-tab-panel > .section-heading .section-title-copy h2::before,
    .tab-composite-section > .event-tab-panel > .section-heading .section-title-copy h2::after {
        width: 22px;
        height: 2px;
    }
}

/* Release version: v1.0.72 | Updated: 2026-07-26 23:10:00 CST */

@font-face {
    font-family: "LINE Seed TW";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedTW_OTF_Bd.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed TW";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedTW_OTF_Eb.woff2") format("woff2");
    font-weight: 800 900;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed EN";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedSans_W_Rg.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed EN";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedSans_W_Bd.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed EN";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedSans_W_XBd.woff2") format("woff2");
    font-weight: 800 900;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed JP";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedJP_OTF_Rg.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed JP";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedJP_OTF_Bd.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed JP";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedJP_OTF_Eb.woff2") format("woff2");
    font-weight: 800 900;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed KR";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedKR-Rg.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed KR";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedKR-Bd.woff2") format("woff2");
    font-weight: 700 900;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed TH";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedSansTH_W_Rg.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed TH";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedSansTH_W_Bd.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "LINE Seed TH";
    src: url("https://image.mycard520.com/globalmycard/member/line-seed-woff2/LINESeedSansTH_W_XBd.woff2") format("woff2");
    font-weight: 800 900;
    font-display: swap;
}

:root {
    --font-tw: "LINE Seed TW", "LINE Seed Sans TW", "LINE Seed Sans TC", "LINE Seed Sans Traditional Chinese", "LINE Seed Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    --font-en: "LINE Seed EN", "LINE Seed Sans EN", "LINE Seed Sans", "LINE Seed", "Inter", "Arial", system-ui, sans-serif;
    --font-jp: "LINE Seed JP", "LINE Seed Sans JP", "LINE Seed Sans Japanese", "LINE Seed Sans", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
    --font-kr: "LINE Seed KR", "LINE Seed Sans KR", "LINE Seed Sans Korean", "LINE Seed Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
    --font-th: "LINE Seed TH", "LINE Seed Sans TH", "LINE Seed Sans Thai", "LINE Seed Sans", "Noto Sans Thai", "Tahoma", system-ui, sans-serif;
    --font: var(--font-tw);
    --cream: #fff7df;
    --rice: #fffdf1;
    --leaf: #277653;
    --leaf-dark: #154b38;
    --bamboo: #d7e7a5;
    --gold: #f2b938;
    --gold-soft: #ffe3a1;
    --brown: #532812;
    --caramel: #a75a24;
    --red: #d84c36;
    --ink: #2d241b;
    --muted: #746552;
    --line: rgba(83, 40, 18, 0.14);
    --shadow: 0 18px 40px rgba(76, 40, 15, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html.is-restoring-position,
html.is-restoring-position * {
    scroll-behavior: auto !important;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.55;
    background: linear-gradient(180deg, rgba(255, 250, 226, 0.9), rgba(255, 240, 199, 0.88));
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
}


body[data-lang="zh"],
body[data-lang="zh-cn"] {
    --font: var(--font-tw);
}

body[data-lang="en"],
body[data-lang="id"],
body[data-lang="vi"] {
    --font: var(--font-en);
}

body[data-lang="ja"] {
    --font: var(--font-jp);
}

body[data-lang="ko"] {
    --font: var(--font-kr);
}

body[data-lang="th"] {
    --font: var(--font-th);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 18%, rgba(39, 118, 83, 0.16), transparent 22%),
        radial-gradient(circle at 86% 8%, rgba(242, 185, 56, 0.18), transparent 18%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.24));
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 10px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid rgba(83, 40, 18, 0.1);
    background: rgba(255, 253, 241, 0.9);
    box-shadow: 0 6px 24px rgba(73, 41, 12, 0.08);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-weight: 900;
    color: var(--brown);
}

.brand-logo {
    display: block;
    width: auto;
    height: clamp(24px, 2.6vw, 31px);
}

.header-nav {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.header-nav a {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--brown);
    font-size: 14px;
    font-weight: 700;
}

.header-nav a:hover {
    background: rgba(39, 118, 83, 0.1);
}

.lang-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(83, 40, 18, 0.14);
    border-radius: 999px;
    background: rgba(255, 253, 241, 0.72);
    overflow: hidden;
}

.lang-current {
    display: none;
}

.lang-menu {
    display: inline-flex;
    gap: 4px;
}

.lang-switch button {
    min-width: 42px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: var(--brown);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.lang-mark {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    font-size: 11px;
    line-height: 1;
}

.lang-switch button.is-active {
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    box-shadow: 0 5px 12px rgba(21, 75, 56, 0.2);
}

.hero {
    position: relative;
    display: grid;
    min-height: clamp(560px, 78vh, 760px);
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid rgba(83, 40, 18, 0.12);
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(255, 248, 221, 0.98) 0%, rgba(255, 248, 221, 0.76) 38%, rgba(255, 248, 221, 0.28) 72%),
        url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_zh-tw.webp?v=202608");
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(255, 247, 223, 0.94));
}

.hero-content {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(54px, 9vw, 104px) 0 72px;
    align-self: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--leaf-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 18px;
    color: var(--brown);
    font-size: clamp(46px, 8vw, 96px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: 0 6px 0 rgba(255, 226, 151, 0.66);
}

.hero-copy {
    max-width: 560px;
    margin-bottom: 28px;
    color: #49331e;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-action,
.ghost-action,
.reward-card a,
.offer-card a,
.game-card a,
.notice a,
.feature-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 136px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
}

.primary-action,
.reward-card a,
.offer-card a,
.game-card a,
.notice a,
.feature-grid a {
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    box-shadow: 0 8px 0 rgba(21, 75, 56, 0.2);
}

.ghost-action {
    color: var(--leaf-dark);
    border: 2px solid rgba(39, 118, 83, 0.36);
    background: rgba(255, 255, 255, 0.66);
}

.quick-panel,
.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.quick-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: -44px;
    padding: 14px;
    border: 1px solid rgba(83, 40, 18, 0.12);
    border-radius: 26px;
    background: rgba(255, 253, 241, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.quick-panel a {
    display: grid;
    gap: 4px;
    min-height: 86px;
    padding: 14px;
    align-content: center;
    justify-items: start;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 247, 224, 0.92), rgba(255, 255, 255, 0.66));
    border: 1px solid rgba(39, 118, 83, 0.12);
}

.quick-panel span {
    color: var(--leaf);
    font-size: 12px;
    font-weight: 900;
}

.quick-panel span.has-icon {
    display: grid;
    place-items: center;
    min-height: 34px;
    margin-bottom: 6px;
}

.quick-panel span.has-icon svg,
.quick-panel span.has-icon img {
    display: block;
    width: 42px;
    height: 42px;
}

.quick-panel span.has-icon img {
    object-fit: contain;
}

.quick-panel strong {
    color: var(--brown);
    font-size: 16px;
}

.section {
    padding: clamp(54px, 8vw, 88px) 0 0;
}

.section-heading {
    display: grid;
    gap: 10px;
    max-width: 680px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin-bottom: 0;
    color: var(--brown);
    font-size: clamp(32px, 4.8vw, 56px);
    font-weight: 900;
    line-height: 1.05;
}

.section-heading p:last-child {
    color: var(--muted);
    font-size: 17px;
    font-weight: 700;
}

.rail-shell {
    position: relative;
}

.rail {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 31%);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 4px 16px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    user-select: none;
}

.rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail-control {
    position: absolute;
    top: 50%;
    z-index: 170;
    display: none !important;
    place-items: center;
    width: 46px;
    height: 66px;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(176, 88, 33, 0.74);
    box-shadow: 0 14px 34px rgba(83, 40, 18, 0.26);
    font: inherit;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.rail-prev {
    left: 8px;
}

.rail-next {
    right: 8px;
}

.rail-shell.has-prev .rail-prev,
.rail-shell.has-next .rail-next {
    display: none !important;
}


.reward-card,
.offer-card,
.game-card,
.feature-grid article,
.payment-grid a,
.notice {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 241, 0.9);
    box-shadow: var(--shadow);
}

.reward-card,
.game-card {
    scroll-snap-align: start;
    height: 292px;
    padding: 24px;
}

.reward-card::before,
.offer-card::before,
.game-card::before,
.feature-grid article::before {
    content: "";
    position: absolute;
    inset: -60px -60px auto auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 185, 56, 0.45), transparent 66%);
}

.reward-card.featured {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(39, 118, 83, 0.94), rgba(21, 75, 56, 0.92)),
        linear-gradient(45deg, rgba(242, 185, 56, 0.18), transparent);
}

.offer-card.featured {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(39, 118, 83, 0.96), rgba(21, 75, 56, 0.92)),
        radial-gradient(circle at 82% 6%, rgba(242, 185, 56, 0.32), transparent 34%);
}

.reward-card.featured .tag,
.reward-card.featured p,
.offer-card.featured span,
.offer-card.featured p {
    color: rgba(255, 255, 255, 0.82);
}

.tag,
.offer-card span,
.game-card span,
.feature-grid b {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--leaf-dark);
    background: var(--gold-soft);
    font-size: 13px;
    font-weight: 900;
}

.reward-card h3,
.offer-card h3,
.game-card h3,
.feature-grid h3 {
    margin-bottom: 10px;
    color: inherit;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.18;
}

.reward-card p,
.offer-card p,
.game-card p {
    margin-bottom: 24px;
    color: var(--muted);
    font-weight: 700;
}

.offer-card p.offer-media {
    display: grid;
    place-items: center;
    min-height: 92px;
    margin: 4px 0 22px;
}

.offer-card p.offer-media svg,
.offer-card p.offer-media img {
    display: block;
    width: clamp(78px, 7vw, 112px);
    height: clamp(78px, 7vw, 112px);
    object-fit: contain;
}

.reward-card.featured a {
    color: var(--leaf-dark);
    background: #fff;
    box-shadow: none;
}

.offer-card.featured a {
    color: var(--leaf-dark);
    background: #fff;
    box-shadow: none;
}

.section-green,
.section-rice {
    width: 100%;
    max-width: none;
    padding-left: max(18px, calc((100vw - 1180px) / 2));
    padding-right: max(18px, calc((100vw - 1180px) / 2));
}

.section-green {
    margin-top: 54px;
    padding-bottom: 64px;
    background: linear-gradient(180deg, rgba(39, 118, 83, 0.08), rgba(255, 247, 223, 0.4));
}

.section-rice {
    margin-top: 54px;
    padding-bottom: 64px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 227, 161, 0.28));
}

.section-limited {
    width: 100%;
    max-width: none;
    margin-top: 38px;
    padding-left: max(18px, calc((100vw - 1180px) / 2));
    padding-right: max(18px, calc((100vw - 1180px) / 2));
    padding-bottom: 58px;
    background:
        radial-gradient(circle at 12% 18%, rgba(242, 185, 56, 0.24), transparent 28%),
        linear-gradient(180deg, rgba(39, 118, 83, 0.1), rgba(255, 247, 223, 0.44));
}

.limited-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.limited-card {
    position: relative;
    display: flex;
    min-height: 214px;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(211, 168, 72, 0.45);
    border-radius: var(--radius);
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 253, 241, 0.96), rgba(255, 239, 199, 0.86));
    box-shadow: var(--shadow);
}

.limited-card::before {
    content: "";
    position: absolute;
    inset: -62px -64px auto auto;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 185, 56, 0.5), transparent 66%);
}

.limited-card b {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--leaf-dark);
    background: var(--gold-soft);
    font-size: 13px;
    font-weight: 900;
}

.limited-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    color: var(--brown);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    line-height: 1;
}

.limited-card p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.limited-card a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: var(--card-action-width, 100%);
    min-height: 44px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    margin-top: auto;
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    box-shadow: 0 8px 0 rgba(21, 75, 56, 0.2);
    font-weight: 900;
}

.limited-card.is-active,
.limited-card.is-featured {
    border-color: rgba(242, 185, 56, 0.74);
    background:
        linear-gradient(135deg, rgba(39, 118, 83, 0.96), rgba(21, 75, 56, 0.92)),
        radial-gradient(circle at 82% 6%, rgba(242, 185, 56, 0.32), transparent 34%);
}

.limited-card.is-active h3,
.limited-card.is-featured h3 {
    color: #fff;
}

.limited-card.is-active p,
.limited-card.is-featured p {
    color: rgba(255, 255, 255, 0.82);
}

.limited-card.is-featured b {
    color: var(--leaf-dark);
    background: var(--gold-soft);
}

@media (max-width: 1180px) {
    .limited-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* v31 Mid-Year Celebration red and gold visual refresh */
:root {
    --cream: #fff4dc;
    --rice: #fffaf0;
    --leaf: #c21f2f;
    --leaf-dark: #7a0f1d;
    --bamboo: #ffe0a3;
    --gold: #f7c85f;
    --gold-soft: #ffe7a7;
    --brown: #681414;
    --caramel: #b84a24;
    --red: #d92735;
    --ink: #321717;
    --muted: #7c5a44;
    --line: rgba(133, 30, 30, 0.16);
    --shadow: 0 20px 46px rgba(117, 21, 21, 0.18);
}

body {
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 220, 123, 0.32), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(217, 39, 53, 0.22), transparent 28%),
        linear-gradient(180deg, #fff2d8 0%, #fff8ec 34%, #fff1d0 100%) !important;
}

body::before {
    background:
        linear-gradient(135deg, rgba(151, 20, 35, 0.08) 0 12%, transparent 12% 24%, rgba(247, 200, 95, 0.14) 24% 26%, transparent 26% 100%),
        radial-gradient(circle at 8% 26%, rgba(217, 39, 53, 0.16), transparent 18%),
        radial-gradient(circle at 92% 18%, rgba(247, 200, 95, 0.22), transparent 18%) !important;
}

.site-header,
.lang-switch,
.lang-menu,
.quick-panel,
.bottom-nav,
.notice,
.inline-detail__panel,
.register-notice-box {
    border-color: rgba(151, 20, 35, 0.16) !important;
    background: rgba(255, 248, 232, 0.92) !important;
    box-shadow: 0 14px 34px rgba(107, 19, 22, 0.12) !important;
}

.header-nav a:hover,
.lang-menu button:hover {
    background: rgba(217, 39, 53, 0.1) !important;
}

.hero {
    min-height: min(760px, 86vh);
    background:
        radial-gradient(circle at 78% 30%, rgba(247, 200, 95, 0.42), transparent 18%),
        linear-gradient(135deg, #8b1022 0%, #c92336 42%, #ffce69 100%) !important;
}

.hero-art {
    opacity: 1;
    background:
        radial-gradient(circle at 76% 36%, rgba(255, 240, 180, 0.58), transparent 0 11%, rgba(255, 240, 180, 0.18) 11% 18%, transparent 18%),
        linear-gradient(90deg, rgba(124, 15, 29, 0.96) 0%, rgba(194, 31, 47, 0.82) 42%, rgba(247, 200, 95, 0.5) 100%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 18px) !important;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 8% 6% 10% auto;
    width: min(46vw, 560px);
    border-radius: 42px;
    background:
        linear-gradient(135deg, rgba(255, 232, 167, 0.92), rgba(255, 195, 74, 0.5)),
        radial-gradient(circle at 20% 22%, #fff8d8 0 5%, transparent 6%),
        repeating-linear-gradient(45deg, rgba(126, 17, 30, 0.16) 0 12px, transparent 12px 24px);
    clip-path: polygon(0 18%, 84% 0, 100% 72%, 18% 100%);
    box-shadow: 0 32px 80px rgba(67, 8, 16, 0.32);
}

.hero::after {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 244, 218, 0.96) 100%) !important;
}

.eyebrow {
    color: #ffe8a4 !important;
    text-shadow: 0 2px 12px rgba(62, 8, 13, 0.26);
}

#hero-title,
.hero-copy {
    color: #fff8e4 !important;
    text-shadow: 0 4px 18px rgba(64, 8, 13, 0.3);
}

.hero-actions .primary-action,
.reward-card a,
.offer-card a,
.game-card a,
.feature-grid a,
.payment-grid a,
.topup-actions a,
.inline-detail__action,
.register-task-card a,
.preregister-action,
.limited-card a {
    color: #fff8e4 !important;
    background: linear-gradient(180deg, #e13943, #8d1422) !important;
    box-shadow: 0 8px 0 rgba(102, 15, 24, 0.22) !important;
}

.hero-actions .ghost-action,
.inline-detail__back {
    color: #8d1422 !important;
    border-color: rgba(247, 200, 95, 0.72) !important;
    background: rgba(255, 248, 232, 0.86) !important;
}

.quick-panel a,
.reward-card,
.offer-card,
.game-card,
.feature-grid article,
.payment-grid a,
.limited-card,
.register-task-card,
.preregister-card,
.social-video-card {
    border-color: rgba(183, 55, 38, 0.16) !important;
    background:
        linear-gradient(180deg, rgba(255, 252, 242, 0.96), rgba(255, 234, 188, 0.82)) !important;
    box-shadow: 0 18px 42px rgba(109, 25, 24, 0.14) !important;
}

.reward-card::before,
.offer-card::before,
.game-card::before,
.feature-grid article::before,
.limited-card::before {
    background: radial-gradient(circle, rgba(247, 200, 95, 0.58), transparent 68%) !important;
}

.reward-card.featured,
.offer-card.featured,
.feature-grid article.featured,
.limited-card.is-active,
.limited-card.is-featured,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child {
    color: #fff8e4 !important;
    border-color: rgba(255, 224, 142, 0.55) !important;
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 218, 119, 0.36), transparent 28%),
        linear-gradient(135deg, #d62937, #81111f) !important;
}

.tag,
.offer-card span,
.game-card span,
.feature-grid b,
.limited-card b,
.reward-card.featured .tag,
.offer-card.featured span,
.feature-grid article.featured b {
    color: #7a0f1d !important;
    background: linear-gradient(180deg, #ffe9a8, #f5bd42) !important;
}

.section-heading h2,
.payment-grid strong,
.quick-panel strong,
.brand,
.header-nav a,
.notice h2 {
    color: #681414 !important;
}

.section-kicker,
.quick-panel span,
.payment-grid span,
.notice a {
    color: #c21f2f !important;
}

.section-green,
.section-rice,
.section-limited {
    background:
        radial-gradient(circle at 12% 0%, rgba(247, 200, 95, 0.2), transparent 22%),
        linear-gradient(180deg, rgba(255, 247, 226, 0.14), rgba(217, 39, 53, 0.08)) !important;
}

.side-nav a,
.side-nav-toggle,
.back-top,
.detail-back-float {
    color: #fff8e4 !important;
    background: linear-gradient(180deg, #e13943, #8d1422) !important;
    box-shadow: 0 12px 28px rgba(94, 14, 22, 0.22) !important;
}

.bottom-nav a {
    color: #681414 !important;
}

.bottom-nav a span,
.bottom-nav a svg {
    color: #c21f2f !important;
}

.coloredSvg [fill="#00adee"],
.coloredSvg [fill="#00ADEE"],
.coloredSvg [style*="0, 173, 238"],
.coloredSvg [style*="#00adee"],
.coloredSvg [style*="#00ADEE"],
.offer-card p.offer-media svg [fill="#00adee"],
.offer-card p.offer-media svg [fill="#00ADEE"],
.offer-card p.offer-media svg [style*="0, 173, 238"],
.offer-card p.offer-media svg [style*="#00adee"],
.offer-card p.offer-media svg [style*="#00ADEE"],
.payment-icon svg [fill="#00adee"],
.payment-icon svg [fill="#00ADEE"],
.payment-icon svg [style*="0, 173, 238"],
.payment-icon svg [style*="#00adee"],
.payment-icon svg [style*="#00ADEE"],
.quick-panel svg [fill="#00adee"],
.quick-panel svg [fill="#00ADEE"],
.quick-panel svg [style*="0, 173, 238"],
.quick-panel svg [style*="#00adee"],
.quick-panel svg [style*="#00ADEE"],
.bottom-nav svg [fill="#00adee"],
.bottom-nav svg [fill="#00ADEE"],
.bottom-nav svg [style*="0, 173, 238"],
.bottom-nav svg [style*="#00adee"],
.bottom-nav svg [style*="#00ADEE"] {
    fill: #c21f2f !important;
}

.coloredSvg [stroke="#00adee"],
.coloredSvg [stroke="#00ADEE"],
.coloredSvg [style*="0, 173, 238"],
.coloredSvg [style*="#00adee"],
.coloredSvg [style*="#00ADEE"],
.offer-card p.offer-media svg [stroke="#00adee"],
.offer-card p.offer-media svg [stroke="#00ADEE"],
.offer-card p.offer-media svg [style*="0, 173, 238"],
.offer-card p.offer-media svg [style*="#00adee"],
.offer-card p.offer-media svg [style*="#00ADEE"],
.payment-icon svg [stroke="#00adee"],
.payment-icon svg [stroke="#00ADEE"],
.payment-icon svg [style*="0, 173, 238"],
.payment-icon svg [style*="#00adee"],
.payment-icon svg [style*="#00ADEE"],
.quick-panel svg [stroke="#00adee"],
.quick-panel svg [stroke="#00ADEE"],
.quick-panel svg [style*="0, 173, 238"],
.quick-panel svg [style*="#00adee"],
.quick-panel svg [style*="#00ADEE"],
.bottom-nav svg [stroke="#00adee"],
.bottom-nav svg [stroke="#00ADEE"],
.bottom-nav svg [style*="0, 173, 238"],
.bottom-nav svg [style*="#00adee"],
.bottom-nav svg [style*="#00ADEE"] {
    stroke: #c21f2f !important;
}

body.inline-detail-mode .header-nav a.detail-home-link {
    color: #fff8e4 !important;
    background: linear-gradient(180deg, #e13943, #8d1422) !important;
}

@media (max-width: 768px) {
    .hero-art::before {
        inset: 12% -18% auto auto;
        width: 72vw;
        height: 46vh;
        opacity: 0.72;
    }

    .hero-art {
        background:
            radial-gradient(circle at 78% 20%, rgba(255, 240, 180, 0.48), transparent 20%),
            linear-gradient(180deg, rgba(139, 16, 34, 0.96), rgba(201, 35, 54, 0.72) 58%, rgba(255, 206, 105, 0.3)) !important;
    }
}

@media (max-width: 680px) {
    .section-limited {
        margin-top: 26px;
        padding-bottom: 46px;
    }

    .limited-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 20px) / 3);
        grid-template-columns: none;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 2px 2px 12px;
        -webkit-overflow-scrolling: touch;
    }

    .limited-grid::-webkit-scrollbar {
        display: none;
    }

    .limited-card {
        min-height: 188px;
        padding: 16px;
        scroll-snap-align: start;
    }

    .limited-card h3 {
        font-size: clamp(26px, 9vw, 34px);
    }

    .limited-card a {
        min-height: 42px;
        padding-inline: 12px;
        font-size: 14px;
    }
}

.card-grid {
    display: grid;
    gap: 16px;
}

.two-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offer-card {
    min-height: 286px;
    padding: 24px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.payment-grid a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    min-height: 86px;
    padding: 20px;
    align-content: center;
    align-items: center;
    background: linear-gradient(180deg, #fffdf1, #fff0c6);
}

.payment-grid .payment-icon {
    display: inline-flex;
    grid-row: span 2;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
}

.payment-grid .payment-icon img,
.payment-grid .payment-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-grid strong {
    color: var(--brown);
    font-size: 22px;
    font-weight: 900;
}

.payment-grid span {
    color: var(--leaf-dark);
    font-size: 17px;
    font-weight: 900;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-grid article {
    min-height: 238px;
    padding: 24px;
}

.game-rail {
    grid-auto-columns: minmax(300px, 32%);
}

.game-card {
    background:
        linear-gradient(180deg, rgba(255, 253, 241, 0.92), rgba(255, 238, 194, 0.76));
}

.section-final {
    padding-bottom: 72px;
}

.notice {
    width: 100%;
    max-width: none;
    padding: 26px;
}

.notice p {
    color: var(--muted);
    font-weight: 700;
}

.notice p + p {
    margin-top: 8px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 130;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(720px, calc(100% - 24px));
    padding: 8px;
    border: 1px solid rgba(83, 40, 18, 0.12);
    border-radius: 24px;
    background: rgba(255, 253, 241, 0.94);
    box-shadow: 0 -12px 34px rgba(73, 41, 12, 0.2);
    transform: translateX(-50%);
    backdrop-filter: blur(16px);
}

.bottom-nav a {
    display: grid;
    min-height: 54px;
    place-items: center;
    gap: 2px;
    border-radius: 16px;
    color: var(--brown);
    font-size: 12px;
    font-weight: 900;
}

.bottom-nav span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    background: var(--caramel);
    font-size: 13px;
}

.bottom-nav a:active {
    background: rgba(39, 118, 83, 0.1);
}

.side-nav {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    top: 50%;
    z-index: 145;
    display: grid;
    gap: 8px;
    transform: translateY(-50%);
}

.side-nav a {
    display: grid;
    place-items: center;
    width: 46px;
    min-height: 46px;
    padding: 6px;
    border: 1px solid rgba(83, 40, 18, 0.12);
    border-radius: 999px;
    color: #fff;
    background: rgba(21, 75, 56, 0.82);
    box-shadow: 0 12px 30px rgba(21, 75, 56, 0.22);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    backdrop-filter: blur(12px);
}

.side-nav .back-top {
    background: rgba(176, 88, 33, 0.9);
    font-size: 20px;
}

.side-nav a:not(.back-top) {
    display: none;
}

@media (max-width: 1024px) {
    .quick-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-col,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* v13 notice width and standalone detail mode */
.section-final .section-heading {
    max-width: none;
}

.section-final {
    padding-bottom: 112px;
}

body.inline-detail-mode .section-final {
    padding-top: 0;
}

body.inline-detail-mode .section-final .section-heading {
    margin-top: 0;
}

/* v13 tablet carousel and raster icon sizing */
@media (min-width: 769px) and (max-width: 1024px) {
    .rail,
    .rail-large,
    .game-rail,
    #membertasks .rail-large,
    body[data-lang="en"] .rail,
    body[data-lang="id"] .rail,
    body[data-lang="vi"] .rail,
    body[data-lang="ja"] .rail,
    body[data-lang="ko"] .rail,
    body[data-lang="en"] .rail-large,
    body[data-lang="id"] .rail-large,
    body[data-lang="vi"] .rail-large,
    body[data-lang="ja"] .rail-large,
    body[data-lang="ko"] .rail-large {
        grid-auto-columns: calc((100% - 40px) / 3.5) !important;
    }
}

.quick-panel span.has-icon svg {
    width: 56px;
    height: 56px;
}

.quick-panel span.has-icon img {
    width: 42px;
    height: 42px;
}

.bottom-nav span.has-icon svg {
    width: 42px;
    height: 42px;
}

.bottom-nav span.has-icon img {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .quick-panel span.has-icon svg {
        width: 44px;
        height: 44px;
    }

    .quick-panel span.has-icon img {
        width: 34px;
        height: 34px;
    }

    .bottom-nav span.has-icon svg {
        width: 36px;
        height: 36px;
    }

    .bottom-nav span.has-icon img {
        width: 28px;
        height: 28px;
    }
}

/* v13 final alignment overrides */
#membertasks .reward-card.featured .tag,
#membertasks .reward-card:first-child .tag,
#topupbonus .offer-card.featured span,
#topupbonus .offer-card:first-child span {
    color: var(--leaf-dark) !important;
    background: var(--gold-soft) !important;
}

.hero {
    margin-top: -64px;
    padding-top: 64px;
}

@media (min-width: 1025px) {
    .hero-content {
        padding-top: 18px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 570px;
        margin-top: -56px;
        padding-top: 56px;
    }

    .hero-content {
        padding-top: 6px;
        padding-bottom: 86px;
    }

    .quick-panel {
        margin-top: -78px;
    }
}

/* v13 latest polish */
#membertasks .reward-card.featured .tag,
#membertasks .reward-card:first-child .tag,
#topupbonus .offer-card.featured span,
#topupbonus .offer-card:first-child span {
    color: var(--leaf-dark);
    background: var(--gold-soft);
}

.side-nav button.detail-back-float {
    display: none;
    place-items: center;
    width: 46px;
    min-height: 46px;
    padding: 6px;
    border: 1px solid rgba(83, 40, 18, 0.12);
    border-radius: 999px;
    color: #fff;
    background: rgba(21, 75, 56, 0.82);
    box-shadow: 0 12px 30px rgba(21, 75, 56, 0.22);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.side-nav button.detail-back-float svg {
    width: 27px;
    height: 27px;
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding-top: 18px;
        padding-bottom: 98px;
    }

    .quick-panel {
        margin-top: -88px;
    }

    body.inline-detail-mode .detail-back-float {
        display: grid;
        min-height: 46px;
        border: 1px solid rgba(83, 40, 18, 0.12);
        color: #fff;
        background: rgba(21, 75, 56, 0.82);
        box-shadow: 0 12px 30px rgba(21, 75, 56, 0.22);
        font: inherit;
        writing-mode: horizontal-tb;
        letter-spacing: 0;
    }
}

@media (max-width: 768px) {
    body {
        background-size: 100% auto, 230% auto;
    }

    .site-header {
        min-height: 56px;
        padding: 9px 14px;
    }

    .brand-logo {
        height: 25px;
    }

    .header-nav {
        display: none;
    }

    .lang-switch {
        position: relative;
        margin-left: auto;
        padding: 0;
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .lang-current {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-width: 82px;
        height: 38px;
        padding: 0 12px 0 7px;
        border: 1px solid rgba(83, 40, 18, 0.14);
        background: rgba(255, 253, 241, 0.92);
        box-shadow: 0 10px 24px rgba(83, 40, 18, 0.12);
        font-size: 12px;
    }

    .lang-current::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-left: auto;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }

    .lang-switch.is-open .lang-current::after {
        transform: translateY(2px) rotate(225deg);
    }

    .lang-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 260;
        display: none;
        width: min(184px, calc(100vw - 28px));
        padding: 8px;
        border: 1px solid rgba(83, 40, 18, 0.12);
        border-radius: 18px;
        background: rgba(255, 253, 241, 0.98);
        box-shadow: 0 18px 44px rgba(83, 40, 18, 0.18);
        overflow: hidden;
    }

    .lang-switch.is-open .lang-menu {
        display: grid;
        gap: 4px;
    }

    .lang-menu button {
        width: 100%;
        min-width: 0;
        height: 34px;
        padding: 0 12px;
        text-align: left;
    }

    .hero {
        min-height: 680px;
    }

    .hero-art {
        background:
            linear-gradient(180deg, rgba(255, 248, 221, 0.78) 0%, rgba(255, 248, 221, 0.72) 48%, rgba(255, 248, 221, 0.96) 100%),
            url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_zh-tw.webp?v=202608");
        background-size: 100% auto;
        background-position: center top;
    }

    .hero-content {
        width: min(100% - 28px, 520px);
        padding: 38px 0 84px;
        align-self: end;
    }

    h1 {
        font-size: clamp(44px, 13vw, 64px);
    }

    .hero-copy {
        font-size: 16px;
    }

    .quick-panel {
        width: min(100% - 20px, 520px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: -54px;
        gap: 7px;
        padding: 9px;
        border-radius: 22px;
    }

    .quick-panel a {
        min-height: 72px;
        padding: 9px 8px;
        border-radius: 15px;
    }

    .quick-panel a:nth-child(n+10) {
        display: none;
    }

    .quick-panel span {
        font-size: 11px;
    }

    .quick-panel strong {
        font-size: clamp(12px, 3.4vw, 15px);
        line-height: 1.16;
    }

    .section {
        width: min(100% - 20px, 520px);
        padding-top: 48px;
    }

    .section-green,
    .section-rice {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .section-heading {
        margin-bottom: 16px;
    }

    .section-heading h2 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .section-heading p:last-child {
        font-size: 15px;
    }

    .rail {
        grid-auto-columns: 78%;
        gap: 12px;
        margin-left: -2px;
        margin-right: -2px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .rail-large {
        grid-auto-columns: 74%;
    }

    .reward-card,
    .game-card {
        height: 266px;
        padding: 20px;
    }

    .reward-card h3,
    .offer-card h3,
    .game-card h3,
    .feature-grid h3 {
        font-size: 22px;
    }

    .two-col,
    .feature-grid,
    .payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .offer-card,
    .feature-grid article,
    .payment-grid a {
        min-height: 172px;
        padding: 16px;
        border-radius: 20px;
    }

    .offer-card p {
        display: none;
    }

    .offer-card a,
    .game-card a,
    .reward-card a,
    .notice a,
    .feature-grid a {
        min-height: 40px;
        min-width: 118px;
        padding: 0 15px;
        font-size: 14px;
    }

    .payment-grid strong {
        font-size: 18px;
    }

    .payment-grid span {
        font-size: 15px;
    }

    .game-rail {
        grid-auto-columns: 76%;
    }

    .notice {
        padding: 20px;
    }

    .side-nav,
    .side-nav a:not(.back-top) {
        display: grid;
    }

    body:not([data-lang="zh"]):not([data-lang="zh-cn"]) .side-nav a:not(.back-top) {
        font-size: 18px;
    }
}

@media (max-width: 390px) {
    .quick-panel {
        grid-template-columns: 1fr 1fr;
    }

    .rail,
    .rail-large,
    .game-rail {
        grid-auto-columns: 84%;
    }

    .two-col,
    .feature-grid,
    .payment-grid {
        grid-template-columns: 1fr;
    }
}


/* v4 text, card, and popup refinements */

h1,
h2,
h3,
.hero-copy,
.section-heading p,
.reward-card p,
.offer-card p,
.game-card p,
.notice p {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

h2,
h3,
.section-heading p,
.hero-copy {
    text-wrap: pretty;
}

@media (min-width: 1025px) {
    h1 {
        max-width: 1180px;
        font-size: clamp(58px, 5.7vw, 96px);
        line-height: 1.02;
        white-space: nowrap;
    }

    h1 span {
        display: inline;
    }

    .hero-copy {
        max-width: 680px;
    }
}

.reward-card,
.offer-card,
.game-card,
.feature-grid article,
.payment-grid a {
    display: flex;
    flex-direction: column;
}

.reward-card p,
.offer-card p,
.game-card p {
    flex: 1 1 auto;
}

.reward-card a,
.offer-card a,
.game-card a,
.feature-grid a {
    width: fit-content;
    margin-top: auto;
}

.payment-grid a {
    justify-content: center;
}

.feature-grid article {
    justify-content: space-between;
}

.quick-panel strong,
.bottom-nav a,
.payment-grid strong,
.payment-grid span {
    word-break: keep-all;
}

body[data-lang="en"] .quick-panel,
body[data-lang="id"] .quick-panel,
body[data-lang="vi"] .quick-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-lang="en"] .rail,
body[data-lang="id"] .rail,
body[data-lang="vi"] .rail {
    grid-auto-columns: minmax(330px, 36%);
}



@media (max-width: 1180px) {
    .site-header {
        flex-wrap: wrap;
    }

    .brand {
        margin-right: auto;
    }

    .header-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
}










@media (max-width: 768px) {
    .hero {
        overflow-x: hidden;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(42px, 12vw, 56px);
        line-height: 1.02;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    h1 span {
        display: block;
    }

    h1,
    h2,
    h3,
    .hero-copy,
    .section-heading p,
    .reward-card p,
    .offer-card p,
    .game-card p,
    .notice p {
        overflow-wrap: break-word;
    }


    body[data-lang="en"] .rail,
    body[data-lang="id"] .rail,
    body[data-lang="vi"] .rail,
    body[data-lang="ja"] .rail,
    body[data-lang="ko"] .rail {
        grid-auto-columns: 86%;
    }

    body[data-lang="en"] .quick-panel,
    body[data-lang="id"] .quick-panel,
    body[data-lang="vi"] .quick-panel,
    body[data-lang="ja"] .quick-panel,
    body[data-lang="ko"] .quick-panel {
        grid-template-columns: 1fr;
    }

}

/* v7 layout refinements */
@media (min-width: 1025px) {
    h1 {
        max-width: none;
        font-size: clamp(56px, 5.3vw, 88px);
        white-space: nowrap;
    }

    .hero-content {
        width: min(1280px, calc(100% - 48px));
    }
}

@media (max-width: 768px) {
    h1 {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    h1 span {
        display: block;
        white-space: nowrap;
    }

    body[data-lang="en"] .quick-panel,
    body[data-lang="id"] .quick-panel,
    body[data-lang="vi"] .quick-panel,
    body[data-lang="ja"] .quick-panel,
    body[data-lang="ko"] .quick-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-panel a:nth-child(n+10) {
        display: none;
    }

    .payment-grid a {
        min-height: 82px;
    }

    .feature-grid article {
        min-height: 210px;
    }
}

@media (max-width: 390px) {
    .quick-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-panel a {
        min-height: 68px;
        padding: 8px 6px;
    }

    .quick-panel strong {
        font-size: 12px;
    }
}

/* v7 carousel and card polish */
.reward-card {
    height: 292px;
}

.reward-card a,
.offer-card a,
.game-card a,
.feature-grid a {
    width: 144px;
    max-width: 100%;
}

.rail-large {
    grid-auto-columns: calc((100% - 48px) / 4);
}

@media (max-width: 768px) {
    .rail-large {
        grid-auto-columns: minmax(260px, 82%);
    }

    body[data-lang="en"] .rail-large,
    body[data-lang="id"] .rail-large,
    body[data-lang="vi"] .rail-large,
    body[data-lang="ja"] .rail-large,
    body[data-lang="ko"] .rail-large {
        grid-auto-columns: minmax(270px, 84%);
    }

    .reward-card {
        height: 254px;
        padding: 18px;
    }

    .reward-card h3 {
        font-size: 20px;
    }

    .reward-card p {
        font-size: 14px;
        line-height: 1.45;
    }

    .reward-card a,
    .offer-card a,
    .game-card a,
    .feature-grid a {
        width: 118px;
    }

    .rail-control {
        width: 38px;
        height: 56px;
        font-size: 34px;
    }

    .rail-next {
        right: 58px;
    }
}

/* v8 daily task sheet layout */
#membertasks .rail-shell {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

#membertasks .rail-large {
    grid-auto-columns: calc((100% - 68px) / 5.3);
    gap: 16px;
    padding-top: 6px;
    padding-bottom: 18px;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

#membertasks .reward-card {
    height: 286px;
    background: rgba(255, 253, 241, 0.96);
}

#membertasks .reward-card.featured {
    color: var(--brown);
    background: rgba(255, 253, 241, 0.96);
}

#membertasks .reward-card.featured .tag {
    color: var(--leaf-dark);
    background: var(--gold-soft);
}

#membertasks .reward-card.featured p {
    color: var(--muted);
}

#membertasks .reward-card.featured a {
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    box-shadow: 0 8px 0 rgba(21, 75, 56, 0.2);
}

@media (max-width: 768px) {
    #membertasks .rail-large {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 82% !important;
        grid-template-rows: repeat(4, minmax(88px, auto));
        gap: 10px 12px;
        padding: 4px 2px 16px;
    }

    #membertasks .reward-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        align-items: center;
        height: auto !important;
        min-height: 88px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 253, 241, 0.96);
    }

    #membertasks .reward-card.featured {
        color: var(--brown);
        background: rgba(255, 253, 241, 0.96);
    }

    #membertasks .reward-card.featured .tag,
    #membertasks .reward-card.featured p {
        color: var(--muted);
    }

    #membertasks .reward-card::before {
        display: none;
    }

    #membertasks .reward-card .tag {
        grid-row: 1 / span 2;
        align-self: start;
        margin: 0;
        color: var(--leaf-dark);
        background: var(--gold-soft);
    }

    #membertasks .reward-card h3 {
        margin: 0;
        font-size: 18px;
        line-height: 1.16;
    }

    #membertasks .reward-card p {
        margin: 4px 0 0;
        font-size: 13px;
        line-height: 1.35;
    }

    #membertasks .reward-card a {
        grid-column: 3;
        grid-row: 1 / span 2;
        width: 76px;
        min-width: 76px;
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* v8 spacing and multilingual card stability */
.side-nav {
    top: auto;
    bottom: 20%;
    transform: none;
}

.rail,
.card-grid,
.feature-grid,
.payment-grid {
    align-items: stretch;
}

.card-grid,
.feature-grid,
.payment-grid {
    grid-auto-rows: 1fr;
}

.reward-card,
.offer-card,
.game-card,
.feature-grid article,
.payment-grid a {
    height: auto;
    min-width: 0;
}

.reward-card {
    min-height: 292px;
}

.offer-card {
    min-height: 286px;
}

.game-card {
    min-height: 292px;
}

.feature-grid article {
    min-height: 238px;
}

.reward-card h3,
.offer-card h3,
.game-card h3,
.feature-grid h3,
.reward-card p,
.offer-card p,
.game-card p,
.feature-grid p {
    overflow-wrap: anywhere;
}

.reward-card a,
.offer-card a,
.game-card a,
.feature-grid a {
    flex: 0 0 auto;
    width: min(var(--card-action-width, 144px), 100%);
    min-width: min(var(--card-action-width, 144px), 100%);
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

#membertasks .reward-card {
    height: auto;
    min-height: 286px;
}

#membertasks .tag,
#topupbonus .offer-card span,
#mycardwalletevent .feature-grid b,
#hotgames .game-card span {
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
}

#mycardwalletevent .feature-grid article {
    min-height: 430px;
}

#mycardwalletevent .feature-grid article h3 {
    min-height: 62px;
}

@media (max-width: 768px) {
    .side-nav {
        bottom: calc(20% + env(safe-area-inset-bottom));
    }

    .reward-card,
    .game-card {
        min-height: 266px;
    }

    .offer-card,
    .feature-grid article,
    .payment-grid a {
        min-height: 172px;
    }

    #mycardwalletevent .feature-grid article {
        min-height: 470px;
    }

    #mycardwalletevent .feature-grid article h3 {
        min-height: 0;
    }

    .reward-card a,
    .offer-card a,
    .game-card a,
    .feature-grid a {
        width: fit-content;
        min-width: min(118px, 100%);
        max-width: 100%;
    }

    #membertasks .rail-large {
        align-items: stretch;
        grid-template-rows: repeat(4, minmax(92px, 1fr));
    }

    #membertasks .reward-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        align-items: center;
        min-height: 92px;
    }

    #membertasks .reward-card a {
        grid-column: 3;
        grid-row: 1 / span 2;
        width: min(76px, 28vw);
        min-width: min(76px, 28vw);
        max-width: 100%;
        margin-top: 0;
        align-self: center;
        justify-self: end;
        white-space: nowrap;
    }

    #membertasks .reward-card .tag {
        grid-row: 1 / span 2;
        align-self: start;
        margin: 0;
    }

    #membertasks .reward-card h3 {
        margin: 0;
        font-size: 18px;
        line-height: 1.16;
    }

    #membertasks .reward-card p {
        margin: 4px 0 0;
        font-size: 13px;
        line-height: 1.35;
    }

    #membertasks .reward-card::before {
        display: none;
    }

    body:not([data-lang="zh"]):not([data-lang="zh-cn"]) h1 {
        max-width: 100%;
        font-size: clamp(42px, 11.5vw, 58px);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body:not([data-lang="zh"]):not([data-lang="zh-cn"]) h1 span {
        white-space: normal;
    }
}

/* v11 quick links: keep 10 items as 5 per row on desktop and 2 rows on mobile */
.quick-panel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-panel a:nth-child(n+11) {
    display: none;
}

@media (max-width: 768px) {
    .quick-panel,
    body[data-lang="en"] .quick-panel,
    body[data-lang="id"] .quick-panel,
    body[data-lang="vi"] .quick-panel,
    body[data-lang="ja"] .quick-panel,
    body[data-lang="ko"] .quick-panel {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .quick-panel {
        gap: 8px;
        padding: 10px;
    }

    .quick-panel a {
        min-height: 82px;
        padding: 8px 5px;
        justify-items: center;
        text-align: center;
    }

    .quick-panel a:nth-child(n+11) {
        display: none;
    }

    .quick-panel span.has-icon svg,
    .quick-panel span.has-icon img {
        width: 34px;
        height: 34px;
    }

    .quick-panel strong {
        font-size: 12px;
        line-height: 1.2;
    }
}

/* v11 sheet-driven quick and bottom navigation */
.quick-panel span.has-icon svg,
.quick-panel span.has-icon img {
    width: 58px;
    height: 58px;
}

.bottom-nav {
    grid-template-columns: repeat(var(--item-count, 5), minmax(0, 1fr));
    width: min(820px, calc(100% - 24px));
}

.bottom-nav span.has-icon {
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: transparent;
}

.bottom-nav span.has-icon svg,
.bottom-nav span.has-icon img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.quick-link-pager,
.bottom-link-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
    color: var(--leaf-dark);
    font-size: 13px;
    font-weight: 900;
}

.quick-link-pager[hidden],
.bottom-link-pager[hidden] {
    display: none;
}

.quick-link-pager button,
.bottom-link-pager button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(39, 118, 83, 0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(21, 75, 56, 0.88);
    font: inherit;
    font-size: 24px;
    line-height: 1;
}

.quick-link-pager button:disabled,
.bottom-link-pager button:disabled {
    opacity: 0.35;
}

.bottom-link-pager {
    position: fixed;
    left: 50%;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 131;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(83, 40, 18, 0.12);
    border-radius: 999px;
    background: rgba(255, 253, 241, 0.94);
    box-shadow: 0 -8px 24px rgba(73, 41, 12, 0.16);
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    .quick-panel span.has-icon svg,
    .quick-panel span.has-icon img {
        width: 41px;
        height: 41px;
    }

    .bottom-nav {
        width: min(100% - 16px, 620px);
        padding: 7px;
        border-radius: 22px;
    }

    .bottom-nav a {
        min-height: 56px;
        gap: 1px;
        padding: 4px 2px;
        font-size: 11px;
        line-height: 1.12;
    }

    .bottom-nav span.has-icon {
        width: 29px;
        height: 29px;
    }

    .bottom-nav span.has-icon svg,
    .bottom-nav span.has-icon img {
        width: 29px;
        height: 29px;
    }
}

/* v12 hero entry redesign */
.quick-panel {
    width: min(1120px, calc(100% - 40px));
    margin-top: -96px;
    padding: 12px;
    gap: 8px;
    border-radius: 30px;
    border-color: rgba(39, 118, 83, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 253, 241, 0.96), rgba(255, 248, 222, 0.9));
    box-shadow: 0 22px 56px rgba(72, 43, 13, 0.22);
}

.quick-panel a {
    position: relative;
    min-height: 104px;
    padding: 13px 10px;
    justify-items: center;
    align-content: center;
    text-align: center;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 220, 0.74));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.quick-panel a.has-red-dot::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 14px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--activity-red, #c21f2f);
    box-shadow: 0 0 0 3px rgba(255, 242, 208, 0.9), 0 4px 10px rgba(154, 20, 30, 0.35);
    animation: quickRedDotPulse 1.8s ease-in-out infinite;
}

@keyframes quickRedDotPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(255, 242, 208, 0.9), 0 4px 10px rgba(154, 20, 30, 0.35);
    }

    50% {
        transform: scale(1.18);
        box-shadow: 0 0 0 7px rgba(194, 31, 47, 0.18), 0 5px 14px rgba(154, 20, 30, 0.42);
    }
}

.quick-panel a:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(232, 244, 210, 0.84));
}

.quick-panel span.has-icon {
    min-height: 56px;
    margin-bottom: 2px;
}

.quick-panel span.has-icon svg,
.quick-panel span.has-icon img {
    width: 60px;
    height: 60px;
}

.quick-panel strong {
    color: var(--leaf-dark);
}

.bottom-nav span.has-icon {
    width: 36px;
    height: 36px;
}

.bottom-nav span.has-icon svg,
.bottom-nav span.has-icon img {
    width: 36px;
    height: 36px;
}

@media (min-width: 1025px) {
    .hero-content {
        padding-bottom: 132px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-bottom: 128px;
    }

    .quick-panel {
        width: min(100% - 18px, 520px);
        margin-top: -104px;
        gap: 7px;
        padding: 9px;
        border-radius: 24px;
    }

    .quick-panel a {
        min-height: 86px;
        padding: 8px 4px;
        border-radius: 16px;
    }

    .quick-panel span.has-icon {
        min-height: 46px;
    }

    .quick-panel span.has-icon svg,
    .quick-panel span.has-icon img {
        width: 50px;
        height: 50px;
    }

    .quick-panel strong {
        font-size: 12px;
    }

    .bottom-nav span.has-icon {
        width: 34px;
        height: 34px;
    }

    .bottom-nav span.has-icon svg,
    .bottom-nav span.has-icon img {
        width: 34px;
        height: 34px;
    }
}

/* v12 quick panel display rules */
.quick-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.quick-panel a {
    display: grid;
    border: 1px solid rgba(39, 118, 83, 0.16);
    box-shadow:
        0 14px 30px rgba(72, 43, 13, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.quick-panel a:nth-child(n+10) {
    display: grid;
}

.quick-panel a:nth-child(n+11) {
    display: none;
}

@media (max-width: 768px) {
    .quick-panel {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .quick-panel a:nth-child(n+10) {
        display: grid;
    }

    .quick-panel a:nth-child(n+11) {
        display: none;
    }
}

/* v12 visibility and larger bottom icons */
.quick-panel {
    position: relative;
    z-index: 30;
    margin-top: -72px;
}

.bottom-nav span.has-icon {
    width: 43px;
    height: 43px;
}

.bottom-nav span.has-icon svg,
.bottom-nav span.has-icon img {
    width: 43px;
    height: 43px;
}

@media (max-width: 768px) {
    .quick-panel {
        margin-top: -76px;
    }

    .bottom-nav span.has-icon {
        width: 41px;
        height: 41px;
    }

    .bottom-nav span.has-icon svg,
    .bottom-nav span.has-icon img {
        width: 41px;
        height: 41px;
    }
}

/* v12 desktop quick links stay in one row, max 10 per page */
@media (min-width: 1025px) {
    .quick-panel {
        width: min(1320px, calc(100% - 48px));
        grid-template-columns: repeat(var(--item-count, 10), minmax(0, 1fr));
        margin-top: -124px;
        gap: 8px;
    }

    .quick-panel a {
        min-height: 96px;
        padding: 10px 6px;
    }

    .quick-panel span.has-icon {
        min-height: 50px;
    }

    .quick-panel span.has-icon svg,
    .quick-panel span.has-icon img {
        width: 54px;
        height: 54px;
    }

    .quick-panel strong {
        font-size: 14px;
        line-height: 1.18;
    }
}

/* v13 standalone utm_content detail mode */
body.inline-detail-mode main > section:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.section-final) {
    display: none;
}

.inline-detail[hidden] {
    display: none;
}

.payment-grid a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-content: center;
    align-items: center;
}

.payment-grid .payment-icon {
    display: inline-flex;
    grid-row: span 2;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
}

.payment-grid .payment-icon img,
.payment-grid .payment-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(39, 118, 83, 0.96), rgba(21, 75, 56, 0.92)),
        radial-gradient(circle at 82% 6%, rgba(242, 185, 56, 0.32), transparent 34%);
}

#membertasks .reward-card.featured .tag,
#membertasks .reward-card:first-child .tag,
#membertasks .reward-card.featured p,
#membertasks .reward-card:first-child p,
#topupbonus .offer-card.featured span,
#topupbonus .offer-card:first-child span,
#topupbonus .offer-card.featured p:not(.offer-media),
#topupbonus .offer-card:first-child p:not(.offer-media) {
    color: rgba(255, 255, 255, 0.84);
}

#membertasks .reward-card.featured a,
#membertasks .reward-card:first-child a,
#topupbonus .offer-card.featured a,
#topupbonus .offer-card:first-child a {
    color: var(--leaf-dark);
    background: #fff;
    box-shadow: none;
}

.inline-detail {
    padding-top: clamp(34px, 5vw, 56px);
    padding-bottom: 86px;
}

.inline-detail__panel {
    position: relative;
    display: grid;
    gap: 16px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(83, 40, 18, 0.16);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 253, 241, 0.98), rgba(255, 246, 220, 0.96));
    background-size: 100% auto;
    box-shadow: 0 24px 70px rgba(72, 43, 13, 0.18);
}

.inline-detail__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--leaf-dark);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(49, 30, 13, 0.14);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.inline-detail__kicker {
    margin: 0;
    color: var(--leaf-dark);
    font-size: 15px;
    font-weight: 900;
}

.inline-detail__kicker:empty {
    display: none !important;
}

.inline-detail h2 {
    max-width: none;
    margin: 0;
    color: var(--brown);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.08;
    word-break: keep-all;
}

.inline-detail__desc {
    max-width: 760px;
    margin: 0;
    color: #49331e;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 800;
}

.inline-detail__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 6px 0 0;
}

.inline-detail__meta div {
    min-height: 94px;
    padding: 16px;
    border: 1px solid rgba(39, 118, 83, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.inline-detail__meta dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.inline-detail__meta dd {
    margin: 5px 0 0;
    color: var(--brown);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.32;
}

.inline-detail__notes {
    display: grid;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.inline-detail__notes li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    font-weight: 800;
}

.inline-detail__notes li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--leaf);
}

.inline-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-self: start;
}

.inline-detail__action,
.inline-detail__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
}

.inline-detail__action {
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    box-shadow: 0 8px 0 rgba(21, 75, 56, 0.2);
}

.inline-detail__back {
    color: var(--leaf-dark);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 2px rgba(39, 118, 83, 0.18);
}

.detail-back-float {
    display: none;
}

@media (min-width: 1025px) {
    .inline-detail__panel {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        column-gap: 30px;
        align-items: start;
    }

    .inline-detail__kicker,
    .inline-detail h2,
    .inline-detail__desc {
        grid-column: 1 / -1;
    }

    .inline-detail__actions {
        grid-column: 1 / -1;
    }

    .inline-detail__meta,
    .inline-detail__notes {
        grid-column: 2;
    }

    .inline-detail__meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .inline-detail {
        width: min(100% - 20px, 520px);
        padding-top: 36px;
    }

    .inline-detail__panel {
        padding: 22px;
        border-radius: 22px;
    }

    .inline-detail__meta {
        grid-template-columns: 1fr;
    }

    .inline-detail h2 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .inline-detail__close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .payment-grid a {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 78px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .payment-grid .payment-icon {
        width: 44px;
        height: 44px;
    }

    .payment-grid strong {
        font-size: 17px;
        line-height: 1.16;
    }

    .payment-grid span {
        font-size: 13px;
        line-height: 1.22;
    }

    body.inline-detail-mode .detail-back-float {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        border: 0;
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
        box-shadow: 0 12px 28px rgba(17, 72, 52, 0.24);
        font: inherit;
        font-weight: 900;
        writing-mode: vertical-rl;
        letter-spacing: 0;
    }
}

/* v13 final multilingual quick-link and icon sizing pass */
@media (min-width: 769px) {
    .quick-panel,
    body[data-lang="en"] .quick-panel,
    body[data-lang="id"] .quick-panel,
    body[data-lang="vi"] .quick-panel {
        width: min(1320px, calc(100% - 48px));
        grid-template-columns: repeat(var(--item-count, 10), minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .quick-panel a,
    body[data-lang="en"] .quick-panel a,
    body[data-lang="id"] .quick-panel a,
    body[data-lang="vi"] .quick-panel a {
        min-width: 0;
    }

    .quick-panel span:not(.has-icon),
    .quick-panel strong,
    body[data-lang="en"] .quick-panel span:not(.has-icon),
    body[data-lang="en"] .quick-panel strong,
    body[data-lang="id"] .quick-panel span:not(.has-icon),
    body[data-lang="id"] .quick-panel strong,
    body[data-lang="vi"] .quick-panel span:not(.has-icon),
    body[data-lang="vi"] .quick-panel strong {
        display: block;
        max-width: 100%;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.quick-panel span.has-icon img {
    width: 54px !important;
    height: 54px !important;
    border-radius: 999px;
    object-fit: cover;
}

.bottom-nav span.has-icon img {
    width: 27px !important;
    height: 27px !important;
}

@media (max-width: 768px) {
    .quick-panel span.has-icon img {
        width: 50px !important;
        height: 50px !important;
    }

    .bottom-nav span.has-icon img {
        width: 25px !important;
        height: 25px !important;
    }
}

.payment-grid .payment-icon {
    overflow: hidden;
    border-radius: 20px;
}

.payment-grid .payment-icon img {
    border-radius: 20px;
}

#membertasks .reward-card.featured .tag,
#membertasks .reward-card:first-child .tag {
    color: var(--leaf-dark);
    background: var(--gold-soft);
}

.section-heading {
    width: 100%;
    max-width: none;
}

.section-heading h2 {
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
}

@media (min-width: 1025px) {
    h1 {
        max-width: calc(100vw - 64px);
    }

    body[data-lang="en"] h1,
    body[data-lang="id"] h1,
    body[data-lang="vi"] h1,
    body[data-lang="th"] h1 {
        font-size: clamp(38px, 3.65vw, 64px);
        white-space: normal;
        overflow-wrap: normal;
    }

    body[data-lang="ja"] h1,
    body[data-lang="ko"] h1 {
        font-size: clamp(46px, 4.6vw, 78px);
        white-space: normal;
    }
}

body:not([data-lang="zh"]):not([data-lang="zh-cn"]) h1 span + span::before {
    content: " ";
}

@media (max-width: 768px) {
    h1 {
        max-width: calc(100vw - 28px);
    }

    #hero-title {
        white-space: nowrap;
        font-size: clamp(34px, 10vw, 56px);
    }

    #hero-title span {
        display: inline;
    }

    body:not([data-lang="zh"]):not([data-lang="zh-cn"]) h1 span {
        display: inline;
    }

    body[data-lang="en"] h1,
    body[data-lang="id"] h1,
    body[data-lang="vi"] h1,
    body[data-lang="th"] h1 {
        font-size: clamp(32px, 8.4vw, 44px);
        overflow-wrap: anywhere;
    }
}

/* v14 sheet-driven member point and hot game cards */
.feature-grid article.featured {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(39, 118, 83, 0.96), rgba(21, 75, 56, 0.92)),
        radial-gradient(circle at 82% 6%, rgba(242, 185, 56, 0.32), transparent 34%);
}

.feature-grid article.featured b {
    color: var(--leaf-dark);
    background: var(--gold-soft);
}

.feature-grid article.featured a {
    color: var(--leaf-dark);
    background: #fff;
    box-shadow: none;
}

.feature-grid p {
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 800;
}

.feature-grid p[hidden] {
    display: none;
}

.feature-grid .feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 210px;
    margin: 0 0 18px;
}

.feature-grid .feature-media img {
    display: block;
    width: 100%;
    max-height: 210px;
    border-radius: 18px;
    object-fit: contain;
}

.game-card-image {
    padding: 0;
    overflow: hidden;
    min-height: 0;
    border-radius: 10px;
    background: #fffdf1;
}

.game-card-image > a {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.game-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 388 / 600;
    border-radius: 10px;
    object-fit: cover;
}

@media (min-width: 769px) {
    .game-rail {
        grid-template-rows: repeat(2, minmax(0, auto));
        grid-auto-columns: minmax(148px, calc((100% - 64px) / 5));
        align-items: start;
    }
}

@media (max-width: 768px) {
    .game-rail {
        grid-template-rows: repeat(2, minmax(0, auto));
        grid-auto-columns: minmax(132px, 42%);
        gap: 12px;
    }

    .feature-grid .feature-media {
        min-height: 240px;
    }

    .feature-grid .feature-media img {
        max-height: 240px;
    }
}

/* v14 responsive payment grid and smooth hot-game marquee */
.payment-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.game-rail,
.rail-large {
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.game-card-image {
    border-radius: 10px !important;
}

.game-card-image > a,
.game-card-image img {
    border-radius: 10px;
}


/* v14 final carousel consistency across languages */
#membertasks .rail-large,
body[data-lang="en"] #membertasks .rail-large,
body[data-lang="id"] #membertasks .rail-large,
body[data-lang="vi"] #membertasks .rail-large,
body[data-lang="ja"] #membertasks .rail-large,
body[data-lang="ko"] #membertasks .rail-large {
    grid-template-rows: none !important;
    grid-auto-columns: calc((100% - 68px) / 5.3) !important;
}

#hotgames .game-rail,
body[data-lang="en"] #hotgames .game-rail,
body[data-lang="id"] #hotgames .game-rail,
body[data-lang="vi"] #hotgames .game-rail,
body[data-lang="ja"] #hotgames .game-rail,
body[data-lang="ko"] #hotgames .game-rail {
    grid-template-rows: repeat(2, minmax(0, auto)) !important;
    grid-auto-columns: minmax(148px, calc((100% - 64px) / 5)) !important;
}

@media (max-width: 768px) {
    #membertasks .rail-large,
    body[data-lang="en"] #membertasks .rail-large,
    body[data-lang="id"] #membertasks .rail-large,
    body[data-lang="vi"] #membertasks .rail-large,
    body[data-lang="ja"] #membertasks .rail-large,
    body[data-lang="ko"] #membertasks .rail-large {
        grid-auto-flow: column !important;
        grid-template-rows: repeat(4, minmax(92px, 1fr)) !important;
        grid-auto-columns: 82% !important;
    }

    #hotgames .game-rail,
    body[data-lang="en"] #hotgames .game-rail,
    body[data-lang="id"] #hotgames .game-rail,
    body[data-lang="vi"] #hotgames .game-rail,
    body[data-lang="ja"] #hotgames .game-rail,
    body[data-lang="ko"] #hotgames .game-rail {
        grid-template-rows: repeat(2, minmax(0, auto)) !important;
        grid-auto-columns: minmax(132px, 42%) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .payment-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .payment-grid a {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 118px;
        padding: 12px 8px;
        text-align: center;
    }

    .payment-grid .payment-icon {
        grid-row: auto;
        width: 44px;
        height: 44px;
    }

    .payment-grid strong {
        font-size: 14px;
        line-height: 1.15;
    }

    .payment-grid span {
        font-size: 12px;
        line-height: 1.18;
    }

}


/* v16 social shorts section */
.section-social {
    background: transparent;
}

.social-rail-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.social-video-rail {
    grid-auto-columns: minmax(210px, calc((100% - 54px) / 4));
    align-items: stretch;
}

.social-video-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #0f2f26;
    box-shadow: 0 16px 34px rgba(23, 73, 54, 0.16);
    aspect-ratio: 9 / 16;
}

.social-video-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.social-link-panel {
    width: min(860px, calc(100% - 40px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.social-link-panel a {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 10px 4px 8px;
    border-radius: 0;
    background: transparent;
    color: #174936;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
}

.social-link-panel span.has-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
}

.social-link-panel span.has-icon svg,
.social-link-panel span.has-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-link-panel strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .social-video-rail {
        grid-auto-columns: minmax(200px, calc((100% - 36px) / 3));
    }
}

@media (max-width: 768px) {
    .social-rail-shell {
        width: calc(100% - 28px);
    }

    .social-video-rail {
        grid-auto-columns: minmax(156px, 47%);
    }

    .social-video-card {
        border-radius: 14px;
    }

    .social-link-panel {
        width: calc(100% - 28px);
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 4px;
        margin-top: 18px;
    }

    .social-link-panel a {
        padding: 8px 1px 6px;
        border-radius: 0;
        font-size: 10px;
    }

    .social-link-panel span.has-icon {
        width: 44px;
        height: 44px;
    }
}


/* v16 social rail consistency */
.social-video-rail {
    scroll-behavior: auto;
}

.social-video-rail .social-video-card {
    min-width: 0;
}




/* v17 preregister and aligned social content */
.section-preregister {
    background: transparent;
}

.preregister-rail-shell,
.social-rail-shell,
.social-link-panel {
    width: 100%;
}

.preregister-rail {
    grid-auto-columns: minmax(176px, calc((100% - 64px) / 5));
    align-items: stretch;
}

.preregister-card {
    min-width: 0;
}

.preregister-card > a {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    height: 100%;
    padding: 12px;
    border: 1px solid rgba(43, 107, 78, 0.16);
    border-radius: 16px;
    background: #fffdf1;
    color: #174936;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(23, 73, 54, 0.12);
}


.preregister-action-row {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.preregister-action {
    min-width: 156px;
}

.preregister-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
}

.preregister-card strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2em;
    overflow: hidden;
    color: #174936;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .preregister-rail {
        grid-auto-columns: minmax(170px, calc((100% - 40px) / 3.5));
    }
}

@media (max-width: 768px) {
    .preregister-rail {
        grid-auto-columns: minmax(142px, 45%);
        gap: 12px;
    }

    .preregister-card > a {
        gap: 8px;
        padding: 10px;
        border-radius: 14px;
    }

    .preregister-card img {
        border-radius: 10px;
    }

    .preregister-card strong {
        font-size: 13px;
    }
}

/* v17 multilingual rail parity for preregister and social */
#preregister .preregister-rail,
body[data-lang="en"] #preregister .preregister-rail,
body[data-lang="id"] #preregister .preregister-rail,
body[data-lang="vi"] #preregister .preregister-rail,
body[data-lang="ja"] #preregister .preregister-rail,
body[data-lang="ko"] #preregister .preregister-rail,
body[data-lang="zh-cn"] #preregister .preregister-rail {
    grid-template-rows: none !important;
    grid-auto-columns: minmax(176px, calc((100% - 64px) / 5)) !important;
}

#youtubeshorts .social-video-rail,
body[data-lang="en"] #youtubeshorts .social-video-rail,
body[data-lang="id"] #youtubeshorts .social-video-rail,
body[data-lang="vi"] #youtubeshorts .social-video-rail,
body[data-lang="ja"] #youtubeshorts .social-video-rail,
body[data-lang="ko"] #youtubeshorts .social-video-rail,
body[data-lang="zh-cn"] #youtubeshorts .social-video-rail {
    grid-template-rows: none !important;
    grid-auto-columns: minmax(210px, calc((100% - 54px) / 4)) !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
    #preregister .preregister-rail,
    body[data-lang="en"] #preregister .preregister-rail,
    body[data-lang="id"] #preregister .preregister-rail,
    body[data-lang="vi"] #preregister .preregister-rail,
    body[data-lang="ja"] #preregister .preregister-rail,
    body[data-lang="ko"] #preregister .preregister-rail,
    body[data-lang="zh-cn"] #preregister .preregister-rail {
        grid-auto-columns: minmax(170px, calc((100% - 40px) / 3.5)) !important;
    }

    #youtubeshorts .social-video-rail,
    body[data-lang="en"] #youtubeshorts .social-video-rail,
    body[data-lang="id"] #youtubeshorts .social-video-rail,
    body[data-lang="vi"] #youtubeshorts .social-video-rail,
    body[data-lang="ja"] #youtubeshorts .social-video-rail,
    body[data-lang="ko"] #youtubeshorts .social-video-rail,
    body[data-lang="zh-cn"] #youtubeshorts .social-video-rail {
        grid-auto-columns: minmax(200px, calc((100% - 36px) / 3)) !important;
    }
}

@media (max-width: 768px) {
    #preregister .preregister-rail,
    body[data-lang="en"] #preregister .preregister-rail,
    body[data-lang="id"] #preregister .preregister-rail,
    body[data-lang="vi"] #preregister .preregister-rail,
    body[data-lang="ja"] #preregister .preregister-rail,
    body[data-lang="ko"] #preregister .preregister-rail,
    body[data-lang="zh-cn"] #preregister .preregister-rail {
        grid-template-rows: none !important;
        grid-auto-columns: minmax(142px, 45%) !important;
    }

    #youtubeshorts .social-video-rail,
    body[data-lang="en"] #youtubeshorts .social-video-rail,
    body[data-lang="id"] #youtubeshorts .social-video-rail,
    body[data-lang="vi"] #youtubeshorts .social-video-rail,
    body[data-lang="ja"] #youtubeshorts .social-video-rail,
    body[data-lang="ko"] #youtubeshorts .social-video-rail,
    body[data-lang="zh-cn"] #youtubeshorts .social-video-rail {
        grid-template-rows: none !important;
        grid-auto-columns: minmax(156px, 47%) !important;
    }
}

/* v17 mobile language width and compact centered social links */
.social-link-panel, body[data-lang="en"] .social-link-panel, body[data-lang="id"] .social-link-panel, body[data-lang="vi"] .social-link-panel, body[data-lang="ja"] .social-link-panel, body[data-lang="ko"] .social-link-panel, body[data-lang="zh-cn"] .social-link-panel { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 12px; width: 100%; }
.social-link-panel a, body[data-lang="en"] .social-link-panel a, body[data-lang="id"] .social-link-panel a, body[data-lang="vi"] .social-link-panel a, body[data-lang="ja"] .social-link-panel a, body[data-lang="ko"] .social-link-panel a, body[data-lang="zh-cn"] .social-link-panel a { width: 76px; flex: 0 0 76px; }
@media (max-width: 768px) { .lang-current, body[data-lang="en"] .lang-current, body[data-lang="id"] .lang-current, body[data-lang="vi"] .lang-current, body[data-lang="ja"] .lang-current, body[data-lang="ko"] .lang-current, body[data-lang="zh-cn"] .lang-current { width: 112px; min-width: 112px; justify-content: flex-start; } .lang-current .lang-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .social-link-panel, body[data-lang="en"] .social-link-panel, body[data-lang="id"] .social-link-panel, body[data-lang="vi"] .social-link-panel, body[data-lang="ja"] .social-link-panel, body[data-lang="ko"] .social-link-panel, body[data-lang="zh-cn"] .social-link-panel { width: calc(100% - 28px); gap: 6px; overflow-x: auto; justify-content: center; scrollbar-width: none; } .social-link-panel::-webkit-scrollbar { display: none; } .social-link-panel a, body[data-lang="en"] .social-link-panel a, body[data-lang="id"] .social-link-panel a, body[data-lang="vi"] .social-link-panel a, body[data-lang="ja"] .social-link-panel a, body[data-lang="ko"] .social-link-panel a, body[data-lang="zh-cn"] .social-link-panel a { width: 54px; flex-basis: 54px; padding-inline: 0; } }


/* v18 sheet-driven register detail */
.inline-detail__custom[hidden] {
    display: none;
}

.inline-detail--register .inline-detail__panel {
    gap: 20px;
}

.register-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.register-detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 136px;
    padding: 0 20px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    box-shadow: 0 8px 0 rgba(21, 75, 56, 0.2);
    font-weight: 900;
    text-decoration: none;
}

.inline-detail--register .inline-detail__notes {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
}

.inline-detail--register .inline-detail__actions {
    margin-top: 0;
}

@media (max-width: 768px) {

    .register-detail-actions a {
        width: 100%;
    }
}


/* v18 register detail refinement */
body.inline-detail-mode main > .section-final {
    display: none;
}

body.inline-detail-mode .header-nav a.detail-hidden-link {
    display: none;
}

body.inline-detail-mode .header-nav a.detail-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    box-shadow: 0 6px 0 rgba(21, 75, 56, 0.16);
}

body.inline-detail-mode .side-nav a:not(.back-top) {
    display: none !important;
}

.register-detail-stack {
    display: grid;
    gap: 18px;
}

.register-detail-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(16px, 3vw, 28px);
    align-items: start;
    padding: clamp(22px, 3.2vw, 34px);
    border: 1px solid rgba(39, 118, 83, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(72, 43, 13, 0.12);
}

.register-detail-section__head {
    display: grid;
    gap: 12px;
}

.register-detail-section__head > p {
    width: fit-content;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    font-size: 13px;
    font-weight: 900;
}

.register-detail-section h3 {
    margin: 0;
    color: var(--brown);
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 900;
    line-height: 1.12;
}

.register-detail-section__head > strong {
    color: var(--leaf-dark);
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.45;
}

.register-detail-section dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.register-detail-section dl div {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 247, 223, 0.78);
}

.register-detail-section dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.register-detail-section dd {
    margin: 0;
    color: #49331e;
    font-weight: 800;
    line-height: 1.55;
}

.register-detail-section .register-detail-actions {
    grid-column: 1 / -1;
    margin-top: 0;
}


@media (max-width: 768px) {
    .register-detail-section {
        grid-template-columns: 1fr;
    }

    body.inline-detail-mode .header-nav {
        display: none;
    }
}

/* v18 register uses its own CTA buttons from the sheet */
.inline-detail--register .inline-detail__actions {
    display: none;
}

.inline-detail__action[hidden] {
    display: none;
}


/* v18 register width and independent notes */
.inline-detail.section.inline-detail--register {
    width: min(1280px, calc(100% - 36px));
}

.inline-detail--register .inline-detail__panel {
    width: 100%;
}

.inline-detail--register .inline-detail__desc {
    max-width: 100%;
}

.register-detail-section {
    width: 100%;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.inline-detail--register .inline-detail__notes {
    display: none;
}

@media (max-width: 768px) {
    .inline-detail.section.inline-detail--register {
        width: min(100% - 20px, 520px);
    }

    .register-detail-section {
        grid-template-columns: 1fr;
    }
}

/* v18 register custom content spans full detail panel */
.inline-detail--register .inline-detail__custom {
    grid-column: 1 / -1;
    width: 100%;
}

/* v18 register standalone notice update */
.register-standalone-notice[hidden] {
    display: none !important;
}

body.inline-detail-mode main > .register-standalone-notice {
    display: block;
}

.register-standalone-notice {
    width: min(1280px, calc(100% - 36px));
    padding-top: clamp(12px, 2vw, 22px);
    padding-bottom: 96px;
}

.register-standalone-notice .section-heading {
    max-width: none;
}

.register-notice-box {
    width: 100%;
    max-width: none;
    border: 1px solid rgba(83, 40, 18, 0.14);
    border-radius: 24px;
    background: rgba(255, 253, 241, 0.82);
    box-shadow: 0 18px 40px rgba(72, 43, 13, 0.1);
}

.register-notice-box ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.register-notice-box li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.65;
}

.register-notice-box li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--leaf);
}

.register-notice-box a {
    color: var(--leaf-dark);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.register-detail-section__head > strong:empty {
    display: none;
}

@media (max-width: 768px) {
    .register-standalone-notice {
        width: min(100% - 20px, 520px);
        padding-top: 8px;
    }
}

/* v18 ensure register notice is visible in inline detail mode */
body.inline-detail-mode main > .register-standalone-notice:not([hidden]) {
    display: block !important;
}

/* v18 register table and plain notice links */
.register-detail-body {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.register-table-block {
    display: grid;
    gap: 10px;
}

.register-table-block h4 {
    margin: 0;
    color: var(--leaf-dark);
    font-size: 16px;
    font-weight: 900;
}

.register-table-scroll {
    overflow-x: auto;
    border: 1px solid rgba(39, 118, 83, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.register-detail-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
}

.register-detail-table th,
.register-detail-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(39, 118, 83, 0.12);
    color: #49331e;
    font-weight: 800;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
}

.register-detail-table th {
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    font-size: 14px;
    font-weight: 900;
}

.register-detail-table tr:last-child td {
    border-bottom: 0;
}

.register-detail-section.has-register-table {
    grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1.36fr);
}

.notice a,
.section-final .notice a,
.register-notice-box a {
    display: inline;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    color: var(--leaf-dark);
    background: none;
    box-shadow: none;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice a:hover,
.section-final .notice a:hover,
.register-notice-box a:hover {
    color: var(--leaf);
}

@media (max-width: 768px) {
    .register-detail-section.has-register-table {
        grid-template-columns: 1fr;
    }

    .register-detail-table {
        min-width: 360px;
    }
}

/* v18 register single-column content flow */
.inline-detail--register .register-detail-section,
.inline-detail--register .register-detail-section.has-register-table {
    grid-template-columns: 1fr;
    gap: 16px;
}

.inline-detail--register .register-detail-section__head {
    gap: 10px;
}

.inline-detail--register .register-detail-section h3 {
    max-width: 100%;
}

.inline-detail--register .register-detail-body dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .inline-detail--register .register-detail-body dl {
        grid-template-columns: 1fr;
    }
}

/* v18 utm detail hierarchy refinement */
.inline-detail--register .register-detail-section__head {
    gap: 8px;
}

.register-detail-time {
    display: block;
    width: fit-content;
    margin-top: 2px;
    color: var(--leaf-dark);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 900;
    line-height: 1.45;
}

.inline-detail--register .register-detail-body dl {
    grid-template-columns: 1fr;
}

.register-detail-section dl div.register-method {
    padding: clamp(16px, 2vw, 20px);
}

.register-standalone-notice .section-kicker[hidden] {
    display: none;
}

.register-standalone-notice .section-heading {
    margin-bottom: 18px;
}







/* v18 mobile two-button layout for utm detail cards */
@media (max-width: 768px) {
    .register-detail-actions.register-detail-actions--2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .register-detail-actions.register-detail-actions--2 a {
        width: 100%;
        min-width: 0;
        padding-inline: 10px;
    }
}

/* v18 mobile three-button layout for utm detail cards */
@media (max-width: 768px) {
    .register-detail-actions.register-detail-actions--3 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .register-detail-actions.register-detail-actions--3 a {
        width: 100%;
        min-width: 0;
        padding-inline: 10px;
    }

    .register-detail-actions.register-detail-actions--3 a:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* v18 utm detail split info rows */
.inline-detail--register .register-detail-body dl.has-register-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-detail-section dl div.register-info-item,
.register-detail-section dl div.register-method {
    min-width: 0;
}

.register-detail-section dl div.register-method {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .inline-detail--register .register-detail-body dl.has-register-info {
        grid-template-columns: 1fr;
    }
}

.register-standalone-notice .section-heading h2 {
    font-size: clamp(24px, 3vw, 38px);
}

/* v18 click reliability: keep card actions above decorative layers */
.reward-card::before,
.offer-card::before,
.game-card::before,
.feature-grid article::before {
    pointer-events: none;
}

.reward-card a,
.offer-card a,
.game-card a,
.feature-grid a {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

/* v18 memberpresent after-method block */
.register-detail-section dl div.register-after-method {
    grid-column: 1 / -1;
    min-width: 0;
    padding: clamp(16px, 2vw, 20px);
    border: 1px solid rgba(39, 118, 83, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

/* v19 mobile floating navigation toggle */
.side-nav-toggle {
    display: none;
}

.side-nav-links {
    display: contents;
}

@media (max-width: 768px) {
    .side-nav {
        top: auto;
        bottom: calc(20% + env(safe-area-inset-bottom));
        right: max(4px, env(safe-area-inset-right));
        background: transparent;
        transform: none;
        justify-items: end;
    }

    .side-nav-toggle {
        position: relative;
        display: grid;
        order: 2;
        place-items: center;
        width: 48px;
        height: 48px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(180deg, rgba(39, 118, 83, 0.96), rgba(21, 75, 56, 0.94));
        box-shadow: 0 14px 30px rgba(21, 75, 56, 0.28);
        font: inherit;
        font-size: 32px;
        font-weight: 900;
        line-height: 1;
        text-shadow: none;
    }

    .side-nav-toggle span {
        transform: translateY(-1px);
    }

    .side-nav-links {
        display: grid;
        order: 1;
        justify-items: end;
        gap: 8px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: translateY(10px) scale(0.96);
        transform-origin: right bottom;
        transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.24s ease;
    }

    .side-nav.is-open .side-nav-links {
        max-height: 560px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .side-nav .side-nav-links a:not(.back-top),
    .side-nav .side-nav-links button.detail-back-float {
        display: grid;
        border: 1px solid rgba(83, 40, 18, 0.12);
        color: #fff;
        background: rgba(21, 75, 56, 0.82);
        box-shadow: 0 12px 30px rgba(21, 75, 56, 0.22);
        text-shadow: none;
        backdrop-filter: blur(12px);
    }

    .side-nav .back-top {
        order: 3;
        border: 1px solid rgba(83, 40, 18, 0.12);
        color: #fff;
        background: rgba(176, 88, 33, 0.9);
        box-shadow: 0 12px 30px rgba(21, 75, 56, 0.22);
        text-shadow: none;
    }

    body.inline-detail-mode .side-nav-toggle,
    body.inline-detail-mode .side-nav .back-top,
    body.inline-detail-mode .side-nav-links a {
        display: none !important;
    }

    body.inline-detail-mode .side-nav-links {
        display: grid;
        max-height: none;
        opacity: 1;
        overflow: visible;
        pointer-events: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    body.inline-detail-mode .side-nav .side-nav-links button.detail-back-float {
        display: grid !important;
    }
}

body.inline-detail-mode .side-nav {
    background: transparent;
}

body.inline-detail-mode .side-nav-toggle,
body.inline-detail-mode .side-nav .back-top,
body.inline-detail-mode .side-nav-links a {
    display: none !important;
}

body.inline-detail-mode .side-nav-links {
    display: grid;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    transform: none;
}

body.inline-detail-mode .side-nav .side-nav-links button.detail-back-float {
    display: grid !important;
}

body:not(.inline-detail-mode) .side-nav .side-nav-links button.detail-back-float {
    display: none !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .quick-panel,
    body[data-lang="en"] .quick-panel,
    body[data-lang="id"] .quick-panel,
    body[data-lang="vi"] .quick-panel,
    body[data-lang="ja"] .quick-panel,
    body[data-lang="ko"] .quick-panel {
        width: min(100% - 18px, 620px);
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 8px;
        padding: 0;
    }

    .quick-panel a,
    body[data-lang="en"] .quick-panel a,
    body[data-lang="id"] .quick-panel a,
    body[data-lang="vi"] .quick-panel a,
    body[data-lang="ja"] .quick-panel a,
    body[data-lang="ko"] .quick-panel a {
        min-height: 82px;
        padding: 8px 5px;
        justify-items: center;
        text-align: center;
    }

    .quick-panel span.has-icon svg,
    .quick-panel span.has-icon img {
        width: 50px !important;
        height: 50px !important;
    }

    .quick-panel strong {
        font-size: 12px;
        line-height: 1.2;
    }
}

/* v19 payment bonus carousel */
.payment-shell {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.payment-rail,
body[data-lang="en"] .payment-rail,
body[data-lang="id"] .payment-rail,
body[data-lang="vi"] .payment-rail,
body[data-lang="ja"] .payment-rail,
body[data-lang="ko"] .payment-rail {
    display: grid !important;
    grid-auto-flow: column;
    grid-template-columns: none !important;
    grid-auto-columns: calc((100% - 30px) / 4) !important;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
}

.payment-rail::-webkit-scrollbar {
    display: none;
}

.payment-rail a {
    min-width: 0;
    min-height: 112px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .payment-shell {
        width: min(860px, calc(100% - 28px));
    }

    .payment-rail,
    body[data-lang="en"] .payment-rail,
    body[data-lang="id"] .payment-rail,
    body[data-lang="vi"] .payment-rail,
    body[data-lang="ja"] .payment-rail,
    body[data-lang="ko"] .payment-rail {
        grid-auto-columns: calc((100% - 20px) / 3) !important;
    }
}

@media (max-width: 768px) {
    .payment-shell {
        width: min(100% - 18px, 520px);
    }

    .payment-rail,
    body[data-lang="en"] .payment-rail,
    body[data-lang="id"] .payment-rail,
    body[data-lang="vi"] .payment-rail,
    body[data-lang="ja"] .payment-rail,
    body[data-lang="ko"] .payment-rail {
        grid-template-columns: none !important;
        grid-auto-columns: calc((100% - 10px) / 2) !important;
        gap: 10px;
    }

    .payment-rail a {
        min-height: 118px;
    }
}

/* v19 tablet member task carousel: 3 cards per view */
@media (min-width: 769px) and (max-width: 1024px) {
    #membertasks .rail-large,
    body[data-lang="en"] #membertasks .rail-large,
    body[data-lang="id"] #membertasks .rail-large,
    body[data-lang="vi"] #membertasks .rail-large,
    body[data-lang="ja"] #membertasks .rail-large,
    body[data-lang="ko"] #membertasks .rail-large {
        grid-template-rows: none !important;
        grid-auto-columns: calc((100% - 36px) / 3) !important;
    }
}

/* v20 footer */
.site-footer {
    position: relative;
    z-index: 20;
    width: min(1120px, calc(100% - 32px));
    margin: clamp(32px, 5vw, 64px) auto 0;
    padding: 24px 18px calc(112px + env(safe-area-inset-bottom));
    color: rgba(83, 40, 18, 0.72);
    text-align: center;
}

.site-footer__inner {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.site-footer__apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.site-footer__apps a {
    display: block;
    border-radius: 12px;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.site-footer__apps a:hover {
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.site-footer__apps img {
    display: block;
    width: clamp(138px, 15vw, 176px);
    height: auto;
}

.site-footer p {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.home-notice[hidden] {
    display: none;
}

.home-notice {
    position: fixed;
    top: 82px;
    right: clamp(16px, 3vw, 36px);
    z-index: 520;
    display: block;
    pointer-events: none;
}

.home-notice__panel {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    padding: 18px 18px 18px;
    border: 1px solid rgba(255, 222, 145, 0.72);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 217, 104, 0.42), transparent 28%),
        linear-gradient(135deg, rgba(255, 252, 235, 0.98), rgba(255, 235, 196, 0.96));
    box-shadow: 0 18px 45px rgba(89, 17, 23, 0.24);
    color: var(--activity-deep, #7a0f1d);
    transform: translateY(-18px);
    animation: homeNoticeIn 0.42s ease forwards;
    pointer-events: auto;
}

.home-notice__panel::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(194, 31, 47, 0.16);
    border-radius: 13px;
    pointer-events: none;
}

.home-notice__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(122, 15, 29, 0.1);
    color: var(--activity-deep, #7a0f1d);
    font: inherit;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.home-notice__kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 44px 10px 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--activity-red, #c21f2f);
    color: #fff9e8;
    font-size: 13px;
    font-weight: 400;
}

.home-notice h2 {
    margin: 0;
    max-width: 13em;
    color: var(--activity-deep, #7a0f1d);
    font-size: clamp(18px, 3vw, 26px);
    line-height: 1.12;
    letter-spacing: 0;
}

.home-notice__desc {
    margin: 10px 0 0;
    max-width: 30em;
    color: rgba(91, 36, 18, 0.86);
    font-size: 16px;
    font-weight: 700;
}

.home-notice__actions {
    display: flex;
    margin-top: 16px;
}

.home-notice__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

@keyframes homeNoticeIn {
    from {
        opacity: 0;
        transform: translateY(-22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-notice__primary {
    border: 0;
    background: linear-gradient(180deg, #d92a3a, #a80f22);
    color: #fff8e8;
    box-shadow: 0 14px 28px rgba(168, 15, 34, 0.25);
}

.home-notice__secondary {
    display: none;
}

body.inline-detail-mode .home-notice {
    display: none;
}


body.inline-detail-mode .site-footer {
    width: min(980px, calc(100% - 32px));
    margin-top: 20px;
}

@media (max-width: 768px) {
    .site-footer {
        width: min(100% - 20px, 520px);
        margin-top: 28px;
        padding: 18px 10px calc(104px + env(safe-area-inset-bottom));
    }

    .site-footer__apps {
        gap: 8px;
    }

    .site-footer__apps img {
        width: min(42vw, 150px);
    }

    .home-notice {
        top: 72px;
        right: 12px;
        left: 12px;
    }

    .home-notice__panel {
        width: 100%;
        padding: 18px 16px 16px;
        border-radius: 18px;
    }

    .home-notice__panel::before {
        inset: 6px;
        border-radius: 14px;
    }

    .home-notice h2 {
        font-size: 21px;
    }

    .home-notice__desc {
        font-size: 14px;
    }

    .home-notice__primary {
        width: 100%;
        min-height: 44px;
    }
}

/* v20 top-up rewards: manual two-row carousel 4x2 / 3.2x2 */
#topupbonus .topup-shell {
    position: relative;
}

#topupbonus .topup-rail {
    --topup-gap: 16px;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-columns: calc((100% - (var(--topup-gap) * 3)) / 4);
    grid-template-columns: none;
    gap: var(--topup-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 4px 18px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    user-select: none;
}

#topupbonus .topup-rail::-webkit-scrollbar {
    display: none;
}

#topupbonus .topup-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

#topupbonus .topup-rail .offer-card {
    display: flex;
    min-width: 0;
    min-height: 260px;
    scroll-snap-align: start;
}

#topupbonus .topup-rail .offer-card p.offer-media {
    flex: 1 1 auto;
    align-content: center;
}

#topupbonus .topup-rail .offer-card a {
    margin-top: auto;
}

#topupbonus .rail-control,
#topupbonus .rail-shell.has-prev .rail-prev,
#topupbonus .rail-shell.has-next .rail-next {
    display: none !important;
}

@media (max-width: 1024px) {
    #topupbonus .topup-rail {
        grid-auto-columns: calc((100% - (var(--topup-gap) * 3)) / 4);
    }
}

@media (max-width: 680px) {
    #topupbonus .topup-rail {
        --topup-gap: 12px;
        grid-auto-columns: calc((100% - (var(--topup-gap) * 2.2)) / 3.2);
        padding-inline: 2px;
    }

    #topupbonus .offer-card {
        min-height: 214px;
        padding: 12px;
    }

    #topupbonus .offer-card span {
        margin-bottom: 10px;
        padding: 5px 8px;
        font-size: 11px;
    }

    #topupbonus .offer-card h3 {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 1.18;
    }

    #topupbonus .offer-card p.offer-media {
        min-height: 52px;
        margin: 0 0 10px;
    }

    #topupbonus .offer-card p.offer-media svg,
    #topupbonus .offer-card p.offer-media img {
        width: 54px;
        height: 54px;
    }

    #topupbonus .offer-card a {
        min-width: 100%;
        width: 100%;
        padding: 8px 8px;
        font-size: 12px;
    }
}


/* v20 top-up quick action buttons from Sheet */
#topupbonus .topup-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

#topupbonus .topup-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    min-height: 50px;
    padding: 13px 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    color: #fff;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 12px 22px rgba(21, 75, 56, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#topupbonus .topup-actions a:nth-child(2) {
    background: linear-gradient(180deg, #ffe9ad, #f3c95f);
    color: var(--leaf-dark);
}

#topupbonus .topup-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(21, 75, 56, 0.24);
}

@media (max-width: 680px) {
    #topupbonus .topup-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }

    #topupbonus .topup-actions a {
        min-width: 0;
        min-height: 46px;
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}


/* v20 member point carousel: PC and tablet 4 / mobile 2.1 */
#mycardwalletevent .lottery-shell {
    position: relative;
}

#mycardwalletevent .lottery-rail {
    --lottery-gap: 16px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--lottery-gap) * 3)) / 4);
    grid-template-columns: none;
    gap: var(--lottery-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 4px 18px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    user-select: none;
}

#mycardwalletevent .lottery-rail::-webkit-scrollbar {
    display: none;
}

#mycardwalletevent .lottery-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

#mycardwalletevent .lottery-rail article {
    min-width: 0;
    scroll-snap-align: start;
}

@media (max-width: 680px) {
    #mycardwalletevent .lottery-rail {
        --lottery-gap: 12px;
        grid-auto-columns: calc((100% - (var(--lottery-gap) * 1.1)) / 2.1);
        padding-inline: 2px;
    }
}


/* v20 member point compact image cards */
#mycardwalletevent .lottery-rail article {
    min-height: 360px;
    padding: 20px;
}

#mycardwalletevent .lottery-rail article h3 {
    min-height: 52px;
    margin-bottom: 10px;
}

#mycardwalletevent .lottery-rail .feature-media {
    min-height: 0;
    margin: 0 0 12px;
}

#mycardwalletevent .lottery-rail .feature-media img {
    width: min(100%, 180px);
    max-height: none;
    border-radius: 16px;
    object-fit: contain;
}

@media (max-width: 1180px) {
    #mycardwalletevent .lottery-rail article {
        min-height: 340px;
    }

    #mycardwalletevent .lottery-rail .feature-media img {
        width: min(100%, 170px);
    }
}

@media (max-width: 680px) {
    #mycardwalletevent .lottery-rail article {
        min-height: 330px;
        padding: 16px;
    }

    #mycardwalletevent .lottery-rail article h3 {
        min-height: 0;
        font-size: 20px;
    }

    #mycardwalletevent .lottery-rail .feature-media {
        margin-bottom: 10px;
    }

    #mycardwalletevent .lottery-rail .feature-media img {
        width: min(100%, 150px);
        border-radius: 14px;
    }
}


/* v20 member point text and compact spacing refinements */
#mycardwalletevent .lottery-rail article h3 {
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
}

#mycardwalletevent .lottery-rail .feature-media {
    margin: 0;
}

@media (max-width: 1180px) {
    #mycardwalletevent .lottery-rail a {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 680px) {
    #mycardwalletevent .lottery-rail article h3 {
        margin-bottom: 6px;
    }

    #mycardwalletevent .lottery-rail .feature-media {
        margin: 0;
    }
}


/* v20 member point mobile vertical spacing fix */
@media (max-width: 680px) {
    #mycardwalletevent .lottery-rail article {
        justify-content: flex-start;
        min-height: 300px;
    }

    #mycardwalletevent .lottery-rail a {
        margin-top: 10px;
    }

    #mycardwalletevent .lottery-rail .feature-media {
        margin: 0;
    }
}


/* v20 top-up compact card spacing and unified actions */
#topupbonus .topup-rail .offer-card {
    justify-content: flex-start;
    min-height: 332px;
}

#topupbonus .topup-rail .offer-card h3 {
    margin-bottom: 8px;
}

#topupbonus .topup-rail .offer-card p.offer-media {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 0 4px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#topupbonus .topup-rail .offer-card p.offer-media svg,
#topupbonus .topup-rail .offer-card p.offer-media img {
    width: clamp(114px, 9vw, 144px);
    height: clamp(114px, 9vw, 144px);
}

#topupbonus .topup-rail .offer-card a {
    margin-top: auto;
}

#topupbonus .topup-actions a:nth-child(2) {
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    color: #fff;
}

@media (max-width: 680px) {
    #topupbonus .topup-rail .offer-card {
        justify-content: flex-start;
        min-height: 250px;
    }

    #topupbonus .topup-rail .offer-card h3 {
        margin-bottom: 6px;
    }

    #topupbonus .topup-rail .offer-card p.offer-media {
        min-height: 0;
        margin: 0 0 4px;
        align-items: flex-end;
    }

    #topupbonus .topup-rail .offer-card p.offer-media svg,
    #topupbonus .topup-rail .offer-card p.offer-media img {
        width: 78px;
        height: 78px;
    }

    #topupbonus .topup-rail .offer-card a {
        margin-top: auto;
    }
}


/* v22 tickets section mirrors member point card carousel */
#lottery .tickets-shell {
    position: relative;
}

#lottery .tickets-rail {
    --lottery-gap: 16px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--lottery-gap) * 3)) / 4);
    grid-template-columns: none;
    gap: var(--lottery-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
    scrollbar-width: none;
    padding: 6px 4px 18px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    user-select: none;
}

#lottery .tickets-rail::-webkit-scrollbar {
    display: none;
}

#lottery .tickets-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

#lottery .tickets-rail article {
    min-width: 0;
    min-height: 360px;
    padding: 20px;
    scroll-snap-align: start;
}

#lottery .tickets-rail article h3 {
    min-height: 52px;
    margin-bottom: 10px;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
}

#lottery .tickets-rail .feature-media {
    min-height: 0;
    margin: 0;
}

#lottery .tickets-rail .feature-media img {
    width: min(100%, 180px);
    max-height: none;
    border-radius: 16px;
    object-fit: contain;
}

@media (max-width: 1180px) {
    #lottery .tickets-rail article {
        min-height: 340px;
    }

    #lottery .tickets-rail .feature-media img {
        width: min(100%, 170px);
    }

    #lottery .tickets-rail a {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 680px) {
    #lottery .tickets-rail {
        --lottery-gap: 12px;
        grid-auto-columns: calc((100% - (var(--lottery-gap) * 1.1)) / 2.1);
        padding-inline: 2px;
    }

    #lottery .tickets-rail article {
        justify-content: flex-start;
        min-height: 300px;
        padding: 16px;
    }

    #lottery .tickets-rail article h3 {
        min-height: 0;
        margin-bottom: 6px;
        font-size: 20px;
    }

    #lottery .tickets-rail .feature-media {
        margin: 0;
    }

    #lottery .tickets-rail .feature-media img {
        width: min(100%, 150px);
        border-radius: 14px;
    }

    #lottery .tickets-rail a {
        margin-top: 10px;
    }
}

/* v22 sheet-driven lottery prize gallery */
.register-prize-block {
    margin-top: 18px;
    min-width: 0;
    overflow: hidden;
}

.register-prize-block h4 {
    margin: 0 0 12px;
    color: #145f38;
    font-size: 18px;
    font-weight: 800;
}

.register-prize-scroll {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 2px 0 10px;
}

.register-prize-grid {
    --prize-gap: 14px;
    --prize-visible: 3;
    --prize-card: calc((100% - (var(--prize-gap) * (var(--prize-visible) - 1))) / var(--prize-visible));
    display: grid;
    width: 100%;
    min-width: 0;
    grid-auto-flow: column;
    grid-auto-columns: var(--prize-card);
    grid-template-columns: none;
    gap: var(--prize-gap);
    will-change: transform;
}

.register-prize-grid.is-prize-loop {
    animation: prizeLoop 18s linear infinite;
}

.register-prize-scroll:hover .register-prize-grid.is-prize-loop {
    animation-play-state: paused;
}

.register-prize-grid figure {
    position: relative;
    margin: 0;
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid rgba(211, 168, 72, 0.45);
    border-radius: 16px;
    background: rgba(255, 251, 235, 0.86);
    box-shadow: 0 12px 26px rgba(30, 73, 43, 0.12);
}

.register-prize-grid figure > b {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    max-width: calc(100% - 20px);
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 5px 12px;
    background: #167346;
    color: #fff7dc;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(18, 84, 51, 0.22);
}

.register-prize-grid img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 220px;
    margin: 10px auto 0;
    object-fit: contain;
    object-position: center;
}

.register-prize-grid figcaption {
    width: 100%;
    min-height: 48px;
    margin-top: 0;
    padding: 10px 8px 12px;
    color: #214734;
    background: rgba(255, 251, 235, 0.92);
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
}

@keyframes prizeLoop {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - var(--prize-gap))); }
}

.register-detail-section.has-product-cards {
    grid-template-columns: 1fr;
}

.register-detail-section.has-product-cards .register-detail-section__head {
    max-width: 760px;
}

.register-product-block {
    min-width: 0;
}

.register-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.register-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(211, 168, 72, 0.45);
    border-radius: 18px;
    background: rgba(255, 251, 235, 0.9);
    box-shadow: 0 12px 26px rgba(30, 73, 43, 0.1);
}

.register-product-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    object-fit: cover;
}

.register-product-card h4 {
    margin: 0;
    color: var(--brown);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.register-product-card a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, var(--leaf), var(--leaf-dark));
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 0 rgba(21, 75, 56, 0.2);
}

@media (max-width: 1024px) {
    .register-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .register-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .register-product-card {
        gap: 8px;
        padding: 10px;
        border-radius: 14px;
    }

    .register-product-card img {
        border-radius: 10px;
    }

    .register-product-card h4 {
        font-size: 13px;
    }

    .register-product-card a {
        min-height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .inline-detail.section.inline-detail--register,
    .inline-detail--register .inline-detail__panel,
    .inline-detail--register .inline-detail__custom,
    .register-detail-stack,
    .register-detail-section,
    .register-detail-body,
    .register-product-block,
    .register-product-grid,
    .register-table-block,
    .register-table-scroll {
        min-width: 0;
        max-width: 100%;
    }

    .inline-detail--register .inline-detail__panel,
    .register-detail-section,
    .register-product-card {
        overflow: hidden;
    }

    .inline-detail h2,
    .register-detail-section h3,
    .register-detail-section__head > p,
    .register-detail-section__head > strong,
    .register-detail-section dd,
    .register-product-card h4,
    .register-product-card a {
        max-width: 100%;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .register-product-card a {
        min-width: 0;
        padding-inline: 4px;
        text-align: center;
        line-height: 1.2;
    }
}

@media (max-width: 1180px) {
    .register-prize-grid {
        --prize-gap: 12px;
        --prize-visible: 2.2;
    }
}

@media (max-width: 680px) {
    .register-prize-grid {
        --prize-visible: 2.2;
    }

    .register-prize-grid img {
        max-height: 170px;
        margin-top: 16px;
    }

    .register-prize-grid figcaption {
        min-height: 44px;
        font-size: 14px;
    }
}

/* v23 Thai responsive typography */
body[data-lang="th"] #hero-title {
    font-size: clamp(34px, 3.45vw, 60px);
}
@media (max-width: 768px) {
    body[data-lang="th"] #hero-title {
        font-size: clamp(30px, 7.8vw, 42px);
    }
}

/* v25 tickets card bottom alignment refinement */
#lottery .tickets-rail article {
    align-items: flex-start;
}

#lottery .tickets-rail .feature-media {
    flex: 0 0 auto;
    margin: auto 0 12px;
}

#lottery .tickets-rail a {
    margin-top: 0;
}

@media (max-width: 1180px) {
    #lottery .tickets-rail article {
        align-items: stretch;
    }

    #lottery .tickets-rail .feature-media {
        margin-top: auto;
        margin-bottom: 12px;
    }

    #lottery .tickets-rail a {
        width: 100%;
        min-width: 0;
        margin-top: 0;
        align-self: stretch;
    }
}

@media (max-width: 680px) {
    #lottery .tickets-rail .feature-media {
        margin-top: auto;
        margin-bottom: 10px;
    }

    #lottery .tickets-rail a {
        margin-top: 0;
    }
}

/* v26 tickets action full-width alignment */
#lottery .tickets-rail a {
    width: 100%;
    min-width: 0;
    align-self: stretch;
}

/* v29 more activities mirrors the ticket gallery */
#more .tickets-shell {
    position: relative;
}

#more .tickets-rail {
    --lottery-gap: 16px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--lottery-gap) * 3)) / 4);
    grid-template-columns: none;
    gap: var(--lottery-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
    scrollbar-width: none;
    padding: 6px 4px 18px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    user-select: none;
}

#more .tickets-rail::-webkit-scrollbar {
    display: none;
}

#more .tickets-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

#more .tickets-rail article {
    align-items: flex-start;
    min-width: 0;
    min-height: 360px;
    padding: 20px;
    scroll-snap-align: start;
}

#more .tickets-rail article h3 {
    min-height: 52px;
    margin-bottom: 10px;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
}

#more .tickets-rail .feature-media {
    flex: 0 0 auto;
    min-height: 0;
    margin: auto 0 12px;
}

#more .tickets-rail .feature-media img {
    width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    object-fit: cover;
}

#more .tickets-rail a {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    align-self: stretch;
}

@media (max-width: 1180px) {
    #more .tickets-rail article {
        align-items: stretch;
        min-height: 340px;
    }

    #more .tickets-rail .feature-media {
        margin-top: auto;
        margin-bottom: 12px;
    }

    #more .tickets-rail a {
        width: 100%;
        min-width: 0;
        margin-top: 0;
        align-self: stretch;
    }
}

@media (max-width: 680px) {
    #more .tickets-rail {
        --lottery-gap: 12px;
        grid-auto-columns: calc((100% - (var(--lottery-gap) * 1.1)) / 2.1);
        padding-inline: 2px;
    }

    #more .tickets-rail article {
        justify-content: flex-start;
        min-height: 300px;
        padding: 16px;
    }

    #more .tickets-rail article h3 {
        min-height: 0;
        margin-bottom: 6px;
        font-size: 20px;
    }

    #more .tickets-rail .feature-media {
        margin-top: auto;
        margin-bottom: 10px;
    }

    #more .tickets-rail .feature-media img {
        border-radius: 14px;
    }

    #more .tickets-rail a {
        margin-top: 0;
    }
}

/* v26 invitation ordered participation flow */
.register-flow-block {
    margin: 22px 0 8px;
}

.register-flow-block h4 {
    margin: 0 0 14px;
    color: var(--leaf-dark);
    font-size: 18px;
    font-weight: 900;
}

.register-flow-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(176px, 1fr);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 2px 12px;
}

.register-flow-rail::-webkit-scrollbar {
    display: none;
}

.register-flow-card {
    position: relative;
    min-height: 132px;
    scroll-snap-align: start;
    padding: 18px 16px 16px;
    border: 1px solid rgba(39, 118, 83, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 253, 241, 0.98), rgba(231, 244, 222, 0.82));
    box-shadow: 0 12px 26px rgba(30, 73, 43, 0.10);
}

.register-flow-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -13px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-top: 3px solid rgba(39, 118, 83, 0.52);
    border-right: 3px solid rgba(39, 118, 83, 0.52);
    transform: translateY(-50%) rotate(45deg);
    background: transparent;
}

.register-flow-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--leaf);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}

.register-flow-card p {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.42;
}

@media (min-width: 1181px) {
    .register-flow-rail {
        grid-auto-columns: calc((100% - 70px) / 6);
        overflow-x: visible;
    }
}

@media (max-width: 768px) {
    .register-flow-rail {
        grid-auto-columns: calc((100% - 14px) / 1.45);
    }

    .register-flow-card {
        min-height: 126px;
    }
}

/* v26 invitation flow layout correction */
.register-flow-actions {
    margin: 0 0 22px;
}

.register-flow-actions a {
    flex: 1 1 0;
}

.register-flow-block h4 {
    margin-top: 0;
}

@media (min-width: 769px) and (max-width: 1180px) {
    .register-flow-rail {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;
        padding: 0;
        scroll-snap-type: none;
    }

    .register-flow-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        align-items: center;
        min-height: 88px;
        padding: 16px 18px;
    }

    .register-flow-card span {
        margin-bottom: 0;
    }

    .register-flow-card:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -11px;
        left: 31px;
        width: 18px;
        height: 18px;
        transform: rotate(135deg);
    }
}

@media (max-width: 768px) {
    .register-flow-rail {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;
        padding: 0;
        scroll-snap-type: none;
    }

    .register-flow-card {
        display: grid;
        grid-template-columns: 42px 1fr;
        align-items: center;
        min-height: 82px;
        padding: 14px;
    }

    .register-flow-card span {
        width: 34px;
        height: 34px;
        margin-bottom: 0;
        font-size: 13px;
    }

    .register-flow-card p {
        font-size: 15px;
    }

    .register-flow-card:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -11px;
        left: 28px;
        width: 18px;
        height: 18px;
        transform: rotate(135deg);
    }
}

/* v26 centered vertical flow arrows */
@media (min-width: 769px) and (max-width: 1180px) {
    .register-flow-card:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
    }
}

@media (max-width: 768px) {
    .register-flow-card:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
    }
}

/* v26 invitation flow CTA sizing */
@media (min-width: 1181px) {
    .register-flow-actions {
        justify-content: flex-start;
    }

    .register-flow-actions a {
        flex: 0 0 auto;
        width: auto;
        min-width: 168px;
    }
}

/* v27 sheet-driven social task cards */
.section-social-tasks .social-task-shell {
    width: 100%;
}

.section-social-tasks .social-task-rail,
body[data-lang="en"] .section-social-tasks .social-task-rail,
body[data-lang="id"] .section-social-tasks .social-task-rail,
body[data-lang="vi"] .section-social-tasks .social-task-rail,
body[data-lang="ja"] .section-social-tasks .social-task-rail,
body[data-lang="ko"] .section-social-tasks .social-task-rail,
body[data-lang="zh-cn"] .section-social-tasks .social-task-rail,
body[data-lang="th"] .section-social-tasks .social-task-rail {
    --social-task-gap: 14px;
    display: grid !important;
    grid-auto-flow: column;
    grid-template-columns: none !important;
    grid-auto-columns: calc((100% - (var(--social-task-gap) * 5)) / 6) !important;
    gap: var(--social-task-gap);
    overflow-x: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
}

.section-social-tasks .social-task-rail::-webkit-scrollbar {
    display: none;
}

.section-social-tasks .social-task-card {
    min-width: 0;
    min-height: 286px;
}

.section-social-tasks .social-task-card h3 {
    min-height: 1.4em;
    word-break: keep-all;
}

.section-social-tasks .social-task-card .feature-media {
    min-height: 104px;
    margin-block: auto 14px;
    display: grid;
    place-items: center;
}

.section-social-tasks .social-task-card .feature-media svg,
.section-social-tasks .social-task-card .feature-media img {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.section-social-tasks .social-task-card a {
    width: 100%;
    max-width: none;
    align-self: stretch;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section-social-tasks .social-task-shell {
        width: 100%;
    }

    .section-social-tasks .social-task-rail,
    body[data-lang="en"] .section-social-tasks .social-task-rail,
    body[data-lang="id"] .section-social-tasks .social-task-rail,
    body[data-lang="vi"] .section-social-tasks .social-task-rail,
    body[data-lang="ja"] .section-social-tasks .social-task-rail,
    body[data-lang="ko"] .section-social-tasks .social-task-rail,
    body[data-lang="zh-cn"] .section-social-tasks .social-task-rail,
    body[data-lang="th"] .section-social-tasks .social-task-rail {
        grid-auto-columns: calc((100% - (var(--social-task-gap) * 2)) / 3) !important;
    }
}

@media (max-width: 768px) {
    .section-social-tasks .social-task-shell {
        width: 100%;
    }

    .section-social-tasks .social-task-rail,
    body[data-lang="en"] .section-social-tasks .social-task-rail,
    body[data-lang="id"] .section-social-tasks .social-task-rail,
    body[data-lang="vi"] .section-social-tasks .social-task-rail,
    body[data-lang="ja"] .section-social-tasks .social-task-rail,
    body[data-lang="ko"] .section-social-tasks .social-task-rail,
    body[data-lang="zh-cn"] .section-social-tasks .social-task-rail,
    body[data-lang="th"] .section-social-tasks .social-task-rail {
        --social-task-gap: 10px;
        grid-auto-columns: calc((100% - (var(--social-task-gap) * 1.1)) / 2.1) !important;
    }

    .section-social-tasks .social-task-card {
        min-height: 260px;
    }

    .section-social-tasks .social-task-card .feature-media {
        min-height: 92px;
        margin-block: auto 12px;
    }

    .section-social-tasks .social-task-card .feature-media svg,
    .section-social-tasks .social-task-card .feature-media img {
        width: 92px;
        height: 92px;
    }
}

/* v28 sheet-driven task carousel inside utm_content details */
.detail-task-section[hidden],
body.inline-detail-mode main > .detail-task-section[hidden] {
    display: none !important;
}

body.inline-detail-mode main > .detail-task-section {
    display: block;
}

.detail-task-section {
    width: min(1280px, calc(100% - 36px));
    padding-top: 4px;
}

.detail-task-section .section-heading {
    margin-bottom: 14px;
}

.detail-task-section .section-heading h2 {
    font-size: clamp(24px, 3vw, 38px);
}

.detail-task-section .section-kicker {
    display: none;
}

.detail-task-shell {
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.detail-task-rail,
body[data-lang="en"] .detail-task-rail,
body[data-lang="id"] .detail-task-rail,
body[data-lang="vi"] .detail-task-rail,
body[data-lang="ja"] .detail-task-rail,
body[data-lang="ko"] .detail-task-rail,
body[data-lang="zh-cn"] .detail-task-rail,
body[data-lang="th"] .detail-task-rail {
    display: grid !important;
    grid-auto-flow: column;
    grid-template-rows: none !important;
    grid-auto-columns: calc((100% - 64px) / 5) !important;
    gap: 16px;
    align-items: stretch;
    overflow-x: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
    padding-top: 6px;
    padding-bottom: 18px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-overflow-scrolling: touch;
}

.detail-task-rail::-webkit-scrollbar {
    display: none;
}

.detail-task-rail .register-task-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 286px;
    background: rgba(255, 253, 241, 0.96);
}

.detail-task-rail .register-task-card h3 {
    word-break: keep-all;
}

.detail-task-rail .register-task-card a {
    width: 100%;
    max-width: none;
    margin-top: auto;
    align-self: stretch;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .detail-task-rail,
    body[data-lang="en"] .detail-task-rail,
    body[data-lang="id"] .detail-task-rail,
    body[data-lang="vi"] .detail-task-rail,
    body[data-lang="ja"] .detail-task-rail,
    body[data-lang="ko"] .detail-task-rail,
    body[data-lang="zh-cn"] .detail-task-rail,
    body[data-lang="th"] .detail-task-rail {
        grid-auto-columns: calc((100% - 36px) / 3) !important;
    }
}

@media (max-width: 768px) {
    .detail-task-section {
        width: min(100% - 20px, 520px);
        padding-top: 8px;
    }

    .detail-task-rail,
    body[data-lang="en"] .detail-task-rail,
    body[data-lang="id"] .detail-task-rail,
    body[data-lang="vi"] .detail-task-rail,
    body[data-lang="ja"] .detail-task-rail,
    body[data-lang="ko"] .detail-task-rail,
    body[data-lang="zh-cn"] .detail-task-rail,
    body[data-lang="th"] .detail-task-rail {
        grid-auto-flow: column !important;
        grid-template-rows: none !important;
        grid-auto-columns: calc((100% - 12px) / 2) !important;
        gap: 12px;
        padding: 4px 2px 16px;
    }

    .detail-task-rail .register-task-card {
        display: flex;
        min-height: 248px;
        height: auto !important;
        padding: 12px;
    }

    .detail-task-rail .register-task-card .tag {
        width: max-content;
    }

    .detail-task-rail .register-task-card h3 {
        min-height: 0;
        margin: 0;
        font-size: 17px;
    }

    .detail-task-rail .register-task-card p {
        min-height: 0;
        margin: 0;
        font-size: 13px;
    }

    .detail-task-rail .register-task-card a {
        align-self: stretch;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* v31 final SVG color pass: keep sheet-provided inline icons in the red/gold theme. */
.coloredSvg [fill="#277653"],
.coloredSvg [fill="#154b38"],
.coloredSvg [style*="#277653"],
.coloredSvg [style*="#154b38"],
.coloredSvg [style*="39, 118, 83"],
.coloredSvg [style*="21, 75, 56"],
.offer-card p.offer-media svg [fill="#277653"],
.offer-card p.offer-media svg [fill="#154b38"],
.offer-card p.offer-media svg [style*="#277653"],
.offer-card p.offer-media svg [style*="#154b38"],
.offer-card p.offer-media svg [style*="39, 118, 83"],
.offer-card p.offer-media svg [style*="21, 75, 56"],
.payment-icon svg [fill="#277653"],
.payment-icon svg [fill="#154b38"],
.payment-icon svg [style*="#277653"],
.payment-icon svg [style*="#154b38"],
.payment-icon svg [style*="39, 118, 83"],
.payment-icon svg [style*="21, 75, 56"],
.quick-panel svg [fill="#277653"],
.quick-panel svg [fill="#154b38"],
.quick-panel svg [style*="#277653"],
.quick-panel svg [style*="#154b38"],
.quick-panel svg [style*="39, 118, 83"],
.quick-panel svg [style*="21, 75, 56"],
.bottom-nav svg [fill="#277653"],
.bottom-nav svg [fill="#154b38"],
.bottom-nav svg [style*="#277653"],
.bottom-nav svg [style*="#154b38"],
.bottom-nav svg [style*="39, 118, 83"],
.bottom-nav svg [style*="21, 75, 56"] {
    fill: #c21f2f !important;
}

.coloredSvg [stroke="#277653"],
.coloredSvg [stroke="#154b38"],
.offer-card p.offer-media svg [stroke="#277653"],
.offer-card p.offer-media svg [stroke="#154b38"],
.payment-icon svg [stroke="#277653"],
.payment-icon svg [stroke="#154b38"],
.quick-panel svg [stroke="#277653"],
.quick-panel svg [stroke="#154b38"],
.bottom-nav svg [stroke="#277653"],
.bottom-nav svg [stroke="#154b38"] {
    stroke: #c21f2f !important;
}

/* v31 homepage headings: hide section kicker tags for a cleaner test view. */
main > .section:not(.inline-detail):not(.register-standalone-notice):not(.detail-task-section) > .section-heading .section-kicker {
    display: none !important;
}

/* v31 social panel: align icon accents and labels with red/gold theme */
.social-link-panel a,
.social-link-panel strong {
    color: #681414 !important;
}

.social-link-panel svg [fill="#00adee"],
.social-link-panel svg [fill="#00ADEE"],
.social-link-panel svg [fill="#277653"],
.social-link-panel svg [fill="#154b38"],
.social-link-panel svg [style*="0, 173, 238"],
.social-link-panel svg [style*="#00adee"],
.social-link-panel svg [style*="#00ADEE"],
.social-link-panel svg [style*="#277653"],
.social-link-panel svg [style*="#154b38"],
.social-link-panel svg [style*="39, 118, 83"],
.social-link-panel svg [style*="21, 75, 56"] {
    fill: #c21f2f !important;
}

.social-link-panel svg [stroke="#00adee"],
.social-link-panel svg [stroke="#00ADEE"],
.social-link-panel svg [stroke="#277653"],
.social-link-panel svg [stroke="#154b38"],
.social-link-panel svg [style*="0, 173, 238"],
.social-link-panel svg [style*="#00adee"],
.social-link-panel svg [style*="#00ADEE"],
.social-link-panel svg [style*="#277653"],
.social-link-panel svg [style*="#154b38"],
.social-link-panel svg [style*="39, 118, 83"],
.social-link-panel svg [style*="21, 75, 56"] {
    stroke: #c21f2f !important;
}

/* v31 preregister cards: remove remaining green text from game titles */
#preregister .preregister-card > a,
#preregister .preregister-card strong {
    color: #681414 !important;
}

#preregister .preregister-card > a {
    border-color: rgba(183, 55, 38, 0.16) !important;
    box-shadow: 0 16px 34px rgba(109, 25, 24, 0.12) !important;
}

/* v31 limited point rush: keep live cards highlighted */
.limited-card.is-active,
.limited-card.is-featured {
    color: #fff8e4 !important;
    border-color: rgba(255, 224, 142, 0.55) !important;
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 218, 119, 0.36), transparent 28%),
        linear-gradient(135deg, #d62937, #81111f) !important;
}

.limited-card.is-active a {
    color: #7a0f1d !important;
    background: linear-gradient(180deg, #fff4c4, #f5bd42) !important;
    box-shadow: 0 8px 0 rgba(101, 12, 22, 0.22) !important;
}

/* v31 detail and responsive card polish */
@media (max-width: 680px) {
    .limited-card h3 {
        font-size: clamp(22px, 7.6vw, 30px);
    }
}

@media (max-width: 1024px) {
    #topupbonus .topup-rail .offer-card,
    #mycardwalletevent .lottery-rail article,
    #lottery .tickets-rail article,
    #more .tickets-rail article,
    #mymall .mall-card,
    .section-social-tasks .social-task-card,
    .detail-task-rail .register-task-card {
        display: flex;
        flex-direction: column;
    }

    #topupbonus .topup-rail .offer-card a,
    #mycardwalletevent .lottery-rail a,
    #lottery .tickets-rail a,
    #more .tickets-rail a,
    #mymall .mall-card a,
    .section-social-tasks .social-task-card a,
    .detail-task-rail .register-task-card a {
        width: 100%;
        margin-top: auto;
        align-self: stretch;
    }

    #topupbonus .topup-rail .offer-card p.offer-media,
    #mycardwalletevent .lottery-rail .feature-media,
    #lottery .tickets-rail .feature-media,
    #more .tickets-rail .feature-media,
    #mymall .mall-media,
    .section-social-tasks .social-task-card .feature-media {
        flex: 0 0 auto;
        min-height: 0 !important;
        margin-top: 4px !important;
        margin-bottom: 8px !important;
        padding: 0 !important;
    }

    #topupbonus .topup-rail .offer-card p.offer-media svg,
    #topupbonus .topup-rail .offer-card p.offer-media img,
    #mycardwalletevent .lottery-rail .feature-media img,
    #lottery .tickets-rail .feature-media img,
    #more .tickets-rail .feature-media img,
    #mymall .mall-media img,
    .section-social-tasks .social-task-card .feature-media svg,
    .section-social-tasks .social-task-card .feature-media img {
        display: block;
        margin: 0 auto !important;
        object-fit: contain;
    }
}

/* v31 golottery prize gallery: remove remaining green accents */
.inline-detail--register .register-prize-block h4,
.inline-detail--register .register-prize-grid figcaption {
    color: #681414 !important;
}

.inline-detail--register .register-prize-grid figure {
    border-color: rgba(183, 55, 38, 0.16) !important;
    background: linear-gradient(180deg, rgba(255, 252, 242, 0.96), rgba(255, 234, 188, 0.82)) !important;
    box-shadow: 0 18px 42px rgba(109, 25, 24, 0.14) !important;
}

.inline-detail--register .register-prize-grid figure > b {
    color: #7a0f1d !important;
    background: linear-gradient(180deg, #ffe9a8, #f5bd42) !important;
    box-shadow: 0 8px 18px rgba(101, 12, 22, 0.16) !important;
}

.inline-detail--register .register-prize-grid figcaption {
    background: rgba(255, 248, 226, 0.94) !important;
}

/* v31 utm_content inserted tasks: match home member-task mobile behavior */
@media (max-width: 768px) {
    .detail-task-rail,
    body[data-lang="en"] .detail-task-rail,
    body[data-lang="id"] .detail-task-rail,
    body[data-lang="vi"] .detail-task-rail,
    body[data-lang="ja"] .detail-task-rail,
    body[data-lang="ko"] .detail-task-rail,
    body[data-lang="zh-cn"] .detail-task-rail,
    body[data-lang="th"] .detail-task-rail {
        grid-auto-flow: column !important;
        grid-template-rows: repeat(4, minmax(92px, 1fr)) !important;
        grid-auto-columns: 82% !important;
        gap: 10px 12px !important;
        align-items: stretch;
    }

    .detail-task-rail .register-task-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        align-items: center;
        min-height: 92px;
        padding: 12px;
    }

    .detail-task-rail .register-task-card .tag {
        grid-row: 1 / span 2;
        align-self: start;
        width: max-content;
        max-width: 70px;
        margin: 0;
    }

    .detail-task-rail .register-task-card h3 {
        margin: 0;
        font-size: 18px;
        line-height: 1.16;
    }

    .detail-task-rail .register-task-card p {
        margin: 4px 0 0;
        font-size: 13px;
        line-height: 1.35;
    }

    .detail-task-rail .register-task-card a {
        grid-column: 3;
        grid-row: 1 / span 2;
        width: min(76px, 28vw);
        min-width: min(76px, 28vw);
        max-width: 100%;
        margin-top: 0;
        align-self: center;
        justify-self: end;
        white-space: nowrap;
    }

    .detail-task-rail .register-task-card::before {
        display: none;
    }
}

/* v31 background visual pass */
body {
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 220, 123, 0.32), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(217, 39, 53, 0.22), transparent 28%),
        linear-gradient(180deg, #fff2d8 0%, #fff8ec 34%, #fff1d0 100%) !important;
}

body::before {
    background:
        linear-gradient(135deg, rgba(151, 20, 35, 0.08) 0 12%, transparent 12% 24%, rgba(247, 200, 95, 0.14) 24% 26%, transparent 26% 100%),
        radial-gradient(circle at 8% 26%, rgba(217, 39, 53, 0.16), transparent 18%),
        radial-gradient(circle at 92% 18%, rgba(247, 200, 95, 0.22), transparent 18%) !important;
    opacity: 0.9;
}

.hero {
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.quick-panel {
    position: relative;
    overflow: visible;
}

.section-heading {
    position: relative;
}

.reward-card::before,
.offer-card::before,
.game-card::before,
.feature-grid article::before,
.limited-card::before,
.register-task-card::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: -48px -44px auto auto;
    width: 156px;
    height: 156px;
    border-radius: 0;
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202605evt/img/500x500_mycoin.webp") center / contain no-repeat !important;
    opacity: 0.12;
}

.reward-card.featured::before,
.offer-card.featured::before,
.limited-card.featured::before {
    opacity: 0.22;
    filter: saturate(1.12) brightness(1.08);
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at 18% 8%, rgba(255, 220, 123, 0.28), transparent 24%),
            radial-gradient(circle at 84% 10%, rgba(217, 39, 53, 0.18), transparent 28%),
            linear-gradient(180deg, #fff2d8 0%, #fff8ec 34%, #fff1d0 100%) !important;
    }

    body::before {
        background:
            linear-gradient(135deg, rgba(151, 20, 35, 0.08) 0 12%, transparent 12% 24%, rgba(247, 200, 95, 0.14) 24% 26%, transparent 26% 100%),
            radial-gradient(circle at 8% 26%, rgba(217, 39, 53, 0.16), transparent 18%),
            radial-gradient(circle at 92% 18%, rgba(247, 200, 95, 0.22), transparent 18%) !important;
    }

    .reward-card::before,
    .offer-card::before,
    .game-card::before,
    .feature-grid article::before,
    .limited-card::before,
    .register-task-card::before {
        width: 118px;
        height: 118px;
        inset: -34px -32px auto auto;
        opacity: 0.1;
    }
}

/* v31 shopping mall section */
#mymall .mall-rail {
    grid-auto-columns: calc((100% - 68px) / 5.3) !important;
    gap: 16px;
    padding: 6px 0 18px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#mymall .mall-card {
    height: auto;
    min-height: 352px;
    background: rgba(255, 253, 241, 0.96);
}

#mymall .mall-card h3 {
    min-height: 2.25em;
    font-size: 18px;
}

#mymall .mall-card .tag {
    min-height: 29px;
}

#mymall .mall-card .tag-placeholder {
    visibility: hidden;
}

#topupbonus .offer-card span {
    min-height: 29px;
}

#topupbonus .offer-card .tag-placeholder {
    visibility: hidden;
}

#mymall .mall-media {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    overflow: hidden;
    margin: auto 0 14px;
    border-radius: 14px;
}

#mymall .mall-media[hidden] {
    display: none;
}

#mymall .mall-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: inherit;
}

#mymall .mall-card a {
    width: 100%;
    min-width: 0;
    align-self: stretch;
    margin-top: 0;
}

@media (min-width: 769px) and (max-width: 1180px) {
    #mymall .mall-rail {
        grid-auto-columns: calc((100% - 32px) / 3) !important;
    }

    #mymall .mall-card {
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    #mymall .mall-rail {
        grid-auto-columns: calc((100% - 24px) / 3) !important;
        gap: 12px;
        padding: 4px 2px 16px;
    }

    #mymall .mall-card {
        height: auto;
        min-height: 360px;
        padding: 14px;
        border-radius: 18px;
    }

    #mymall .mall-card::before {
        display: none;
    }

    #mymall .mall-card h3 {
        min-height: 2.35em;
        margin: 0;
        font-size: 16px;
        line-height: 1.16;
    }

    #mymall .mall-media {
        min-height: 0;
        margin: auto 0 10px;
    }

    #mymall .mall-media img {
        height: 100%;
        max-height: none;
    }

    #mymall .mall-card a {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }
}

/* v31 responsive refinements for mall, social tasks, and preregister */
.preregister-card {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.preregister-card > a {
    overflow: hidden;
    background-clip: padding-box;
}

@media (min-width: 769px) and (max-width: 1180px) {
    #mymall .mall-rail {
        grid-auto-columns: calc((100% - 32px) / 3) !important;
    }

    .section-social-tasks .social-task-rail,
    body[data-lang="en"] .section-social-tasks .social-task-rail,
    body[data-lang="id"] .section-social-tasks .social-task-rail,
    body[data-lang="vi"] .section-social-tasks .social-task-rail,
    body[data-lang="ja"] .section-social-tasks .social-task-rail,
    body[data-lang="ko"] .section-social-tasks .social-task-rail,
    body[data-lang="zh-cn"] .section-social-tasks .social-task-rail,
    body[data-lang="th"] .section-social-tasks .social-task-rail {
        --social-task-gap: 12px;
        grid-auto-columns: calc((100% - (var(--social-task-gap) * 1.5)) / 2.5) !important;
    }
}

/* v31 final media/action lock: image or svg sits on the bottom, action follows immediately */
#topupbonus .topup-rail .offer-card p.offer-media,
#mycardwalletevent .lottery-rail .feature-media,
#lottery .tickets-rail .feature-media,
#more .tickets-rail .feature-media,
#mymall .mall-media,
.section-social-tasks .social-task-card .feature-media {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin-top: auto !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    place-items: end center !important;
}

#topupbonus .topup-rail .offer-card p.offer-media svg,
#topupbonus .topup-rail .offer-card p.offer-media img,
#mycardwalletevent .lottery-rail .feature-media img,
#lottery .tickets-rail .feature-media img,
#more .tickets-rail .feature-media img,
#mymall .mall-media img,
.section-social-tasks .social-task-card .feature-media svg,
.section-social-tasks .social-task-card .feature-media img {
    display: block !important;
    margin: 0 auto !important;
}

#topupbonus .topup-rail .offer-card a,
#mycardwalletevent .lottery-rail a,
#lottery .tickets-rail a,
#more .tickets-rail a,
#mymall .mall-card a,
.section-social-tasks .social-task-card a {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    align-self: stretch !important;
}

/* v33.0.26 keep member task CTAs stable after returning from detail pages */
#membertasks .reward-card a {
    width: min(max(var(--card-action-width, 144px), 118px), 100%) !important;
    min-width: min(max(var(--card-action-width, 144px), 118px), 100%) !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    #membertasks .reward-card a {
        width: min(76px, 28vw) !important;
        min-width: min(76px, 28vw) !important;
        max-width: 100% !important;
    }
}

/* v33 final hero text shadow split */
#hero-title,
.hero-copy {
    text-shadow: none !important;
}

@media (max-width: 768px) {
    .hero .eyebrow {
        display: none !important;
    }

    #hero-title,
    .hero-copy {
        text-shadow:
            0 2px 10px rgba(0, 0, 0, 0.62),
            0 1px 3px rgba(0, 0, 0, 0.72) !important;
    }
}

/* v33 PC hero background */
@media (min-width: 769px) {
    .hero-art {
        background:
            linear-gradient(90deg, rgba(105, 15, 26, 0.72) 0%, rgba(105, 15, 26, 0.42) 34%, rgba(105, 15, 26, 0.08) 64%, rgba(105, 15, 26, 0) 100%),
            url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_zh-tw.webp?v=202608") center / cover no-repeat !important;
    }

    .hero-art::before {
        display: none !important;
    }

    #hero-title,
    .hero-copy {
        text-shadow: none !important;
    }
}

/* v33 mobile hero line fix */
@media (max-width: 768px) {
    .hero {
        border-bottom: 0 !important;
        background: linear-gradient(180deg, #fff2d8 0%, #fff8ec 52%, #fff1d0 100%) !important;
    }

    .hero-art {
        background:
            linear-gradient(180deg, rgba(255, 248, 232, 0.16), rgba(255, 248, 232, 0.28)),
            url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_zh-tw.webp?v=202608") center top / 100% auto no-repeat !important;
    }

    .hero-art::before {
        display: none !important;
    }

    .hero::after {
        background: transparent !important;
    }
}

/* v34.0.3: soften utm_content detail typography after loading LINE Seed */
.inline-detail h2,
.register-detail-section h3 {
    font-weight: 800 !important;
}

.inline-detail__desc,
.inline-detail__meta dd,
.inline-detail__notes li,
.register-detail-section__head > strong,
.register-detail-section dd,
.register-detail-body,
.register-detail-table th,
.register-detail-table td,
.register-notice-box li {
    font-weight: 400 !important;
}

.register-detail-section dt,
.register-table-block h4 {
    font-weight: 700 !important;
}

.inline-detail__kicker,
.register-detail-section__head > p {
    font-weight: 700 !important;
}

.inline-detail__action,
.inline-detail__back,
.register-detail-actions a,
body.inline-detail-mode .header-nav a.detail-home-link {
    font-weight: 800 !important;
}

/* v32 highlighted red cards use gold CTAs */
.reward-card.featured a,
.reward-card:first-child a,
.offer-card.featured a,
.offer-card:first-child a,
.feature-grid article.featured a,
.limited-card.is-featured a,
.limited-card.is-active a,
#membertasks .reward-card.featured a,
#membertasks .reward-card:first-child a,
#topupbonus .offer-card.featured a,
#topupbonus .offer-card:first-child a {
    color: #7a0f1d !important;
    background: linear-gradient(180deg, #fff4c4, #f5bd42) !important;
    box-shadow: 0 8px 0 rgba(101, 12, 22, 0.22) !important;
}

/* v34.0.6: keep button labels crisp without looking too heavy in LINE Seed */
.primary-action,
.ghost-action,
.hero-actions a,
.quick-panel a,
.quick-panel span,
.quick-panel strong,
.bottom-nav a,
.bottom-nav span,
.side-nav a,
.side-nav-toggle,
.reward-card a,
.offer-card a,
.game-card a,
.feature-grid a,
.payment-grid a,
.limited-card a,
#topupbonus .topup-actions a,
#mymall .mall-card a,
.section-social-tasks .social-task-card a,
.inline-detail__action,
.inline-detail__back,
.register-detail-actions a,
body.inline-detail-mode .header-nav a.detail-home-link {
    font-weight: 700 !important;
}

/* v32 mobile top-up compact cards: move media/action group upward */
@media (max-width: 680px) {
    #topupbonus .topup-rail .offer-card {
        min-height: 0 !important;
        padding: 12px !important;
    }

    #topupbonus .topup-rail .offer-card h3 {
        margin-bottom: 4px !important;
    }

    #topupbonus .topup-rail .offer-card p.offer-media {
        flex: 0 0 auto !important;
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }

    #topupbonus .topup-rail .offer-card a {
        margin-top: 0 !important;
    }
}

/* v32 mobile top-up title/media spacing */
@media (max-width: 680px) {
    #topupbonus .topup-rail .offer-card p.offer-media {
        margin-top: 2px !important;
        margin-bottom: 6px !important;
    }
}

/* v32 quick panel without background */
.quick-panel,
body[data-lang="en"] .quick-panel,
body[data-lang="id"] .quick-panel,
body[data-lang="vi"] .quick-panel,
body[data-lang="ja"] .quick-panel,
body[data-lang="ko"] .quick-panel,
body[data-lang="zh-cn"] .quick-panel,
body[data-lang="th"] .quick-panel {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* v34.0.7 remove hero eyebrow label */
.hero .eyebrow {
    display: none !important;
}

/* v32 top-up infinite manual rail and mobile payment spacing */
#topupbonus .topup-rail {
    grid-auto-columns: calc((100% - (var(--topup-gap, 16px) * 4.2)) / 5.2) !important;
}

@media (max-width: 768px) {
    .detail-task-rail,
    body[data-lang="en"] .detail-task-rail,
    body[data-lang="id"] .detail-task-rail,
    body[data-lang="vi"] .detail-task-rail,
    body[data-lang="ja"] .detail-task-rail,
    body[data-lang="ko"] .detail-task-rail,
    body[data-lang="zh-cn"] .detail-task-rail,
    body[data-lang="th"] .detail-task-rail {
        grid-template-rows: repeat(3, minmax(92px, 1fr)) !important;
    }

    .payment-grid .payment-icon {
        margin-bottom: 5px !important;
    }
}

/* v32 spacing between detail inserted tasks and notice */
body.inline-detail-mode main > .detail-task-section:not([hidden]) {
    margin-bottom: clamp(26px, 4vw, 48px) !important;
}

body.inline-detail-mode main > .detail-task-section:not([hidden]) + .register-standalone-notice {
    padding-top: clamp(18px, 3vw, 32px) !important;
}

/* v32 mobile visible card counts */
@media (max-width: 680px) {
    #topupbonus .topup-rail {
        --topup-gap: 12px;
        grid-auto-columns: calc((100% - (var(--topup-gap) * 2.2)) / 3.2) !important;
    }

    .limited-grid {
        grid-auto-columns: calc((100% - 14px) / 2.4) !important;
    }
}

/* v32 mall desktop title/media spacing */
@media (min-width: 769px) {
    #mymall .mall-card {
        display: flex !important;
        flex-direction: column !important;
        min-height: 324px !important;
    }

    #mymall .mall-card h3 {
        margin-bottom: 8px !important;
    }

    #mymall .mall-media {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    #mymall .mall-card a {
        margin-top: auto !important;
    }
}

/* v32 requested layout changes */
#topupbonus .topup-rail {
    grid-template-rows: none !important;
}

#mymall .mall-card .tag,
#mymall .mall-card .tag-placeholder {
    display: none !important;
}

@media (max-width: 680px) {
    .limited-grid {
        grid-auto-columns: calc((100% - 10px) / 2) !important;
    }
}

/* v32 mobile refinements */
@media (max-width: 768px) {
    #youtubeshorts .social-link-panel,
    body[data-lang="en"] #youtubeshorts .social-link-panel,
    body[data-lang="id"] #youtubeshorts .social-link-panel,
    body[data-lang="vi"] #youtubeshorts .social-link-panel,
    body[data-lang="ja"] #youtubeshorts .social-link-panel,
    body[data-lang="ko"] #youtubeshorts .social-link-panel,
    body[data-lang="zh-cn"] #youtubeshorts .social-link-panel,
    body[data-lang="th"] #youtubeshorts .social-link-panel {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        width: calc(100% - 28px) !important;
        gap: 4px !important;
        overflow: visible !important;
    }

    #youtubeshorts .social-link-panel a,
    body[data-lang="en"] #youtubeshorts .social-link-panel a,
    body[data-lang="id"] #youtubeshorts .social-link-panel a,
    body[data-lang="vi"] #youtubeshorts .social-link-panel a,
    body[data-lang="ja"] #youtubeshorts .social-link-panel a,
    body[data-lang="ko"] #youtubeshorts .social-link-panel a,
    body[data-lang="zh-cn"] #youtubeshorts .social-link-panel a,
    body[data-lang="th"] #youtubeshorts .social-link-panel a {
        width: 100% !important;
        min-width: 0 !important;
        flex: initial !important;
    }

    #membertasks .rail-large,
    body[data-lang="en"] #membertasks .rail-large,
    body[data-lang="id"] #membertasks .rail-large,
    body[data-lang="vi"] #membertasks .rail-large,
    body[data-lang="ja"] #membertasks .rail-large,
    body[data-lang="ko"] #membertasks .rail-large,
    body[data-lang="zh-cn"] #membertasks .rail-large,
    body[data-lang="th"] #membertasks .rail-large {
        grid-template-rows: repeat(3, minmax(92px, 1fr)) !important;
    }
}

/* v31 absolute final mall mobile title/media spacing */
@media (max-width: 768px) {
    #mymall .mall-card {
        justify-content: flex-start !important;
    }

    #mymall .mall-media {
        margin-top: 8px !important;
        margin-bottom: 6px !important;
    }
}

/* v31 mall mobile: keep title and image close together */
@media (max-width: 768px) {
    #mymall .mall-card {
        justify-content: flex-start !important;
        min-height: 0 !important;
    }

    #mymall .mall-media {
        margin-top: 8px !important;
        margin-bottom: 6px !important;
    }
}

/* v31 mobile payment bonus sizing */
@media (max-width: 768px) {
    .payment-rail,
    body[data-lang="en"] .payment-rail,
    body[data-lang="id"] .payment-rail,
    body[data-lang="vi"] .payment-rail,
    body[data-lang="ja"] .payment-rail,
    body[data-lang="ko"] .payment-rail,
    body[data-lang="zh-cn"] .payment-rail,
    body[data-lang="th"] .payment-rail {
        grid-auto-columns: calc((100% - 20px) / 2.7) !important;
    }

    .payment-rail a {
        min-height: 134px !important;
        padding: 12px 8px !important;
    }

    .payment-grid .payment-icon {
        width: 66px !important;
        height: 66px !important;
    }
}

/* v31 keep media and actions visually attached on responsive cards */
@media (max-width: 1024px) {
    #topupbonus .topup-rail .offer-card p.offer-media,
    #mycardwalletevent .lottery-rail .feature-media,
    #lottery .tickets-rail .feature-media,
    #more .tickets-rail .feature-media,
    #mymall .mall-media,
    .section-social-tasks .social-task-card .feature-media {
        margin-top: auto !important;
        margin-bottom: 6px !important;
    }

    #topupbonus .topup-rail .offer-card a,
    #mycardwalletevent .lottery-rail a,
    #lottery .tickets-rail a,
    #more .tickets-rail a,
    #mymall .mall-card a,
    .section-social-tasks .social-task-card a {
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    #mymall .mall-media {
        margin-top: auto !important;
        margin-bottom: 6px !important;
    }
}

/* v31 final responsive card alignment overrides */
@media (max-width: 1024px) {
    #topupbonus .topup-rail .offer-card a,
    #mycardwalletevent .lottery-rail a,
    #lottery .tickets-rail a,
    #more .tickets-rail a,
    #mymall .mall-card a,
    .section-social-tasks .social-task-card a {
        width: 100% !important;
        min-width: 0 !important;
        margin-top: auto !important;
        align-self: stretch !important;
    }

    #topupbonus .topup-rail .offer-card p.offer-media,
    #mycardwalletevent .lottery-rail .feature-media,
    #lottery .tickets-rail .feature-media,
    #more .tickets-rail .feature-media,
    .section-social-tasks .social-task-card .feature-media {
        flex: 0 0 auto !important;
        min-height: 0 !important;
        margin: 4px 0 8px !important;
        padding: 0 !important;
    }

    #mymall .mall-media {
        flex: 0 0 auto !important;
        margin: 6px 0 10px !important;
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    #mymall .mall-rail {
        grid-auto-columns: calc((100% - 24px) / 3) !important;
    }

    .section-social-tasks .social-task-rail,
    body[data-lang="en"] .section-social-tasks .social-task-rail,
    body[data-lang="id"] .section-social-tasks .social-task-rail,
    body[data-lang="vi"] .section-social-tasks .social-task-rail,
    body[data-lang="ja"] .section-social-tasks .social-task-rail,
    body[data-lang="ko"] .section-social-tasks .social-task-rail,
    body[data-lang="zh-cn"] .section-social-tasks .social-task-rail,
    body[data-lang="th"] .section-social-tasks .social-task-rail {
        --social-task-gap: 10px;
        grid-auto-columns: calc((100% - (var(--social-task-gap) * 1.5)) / 2.5) !important;
    }
}

/* v31 absolute final media/action lock */
#topupbonus .topup-rail .offer-card p.offer-media,
#mycardwalletevent .lottery-rail .feature-media,
#lottery .tickets-rail .feature-media,
#more .tickets-rail .feature-media,
.section-social-tasks .social-task-card .feature-media {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin-top: auto !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    place-items: end center !important;
}

#topupbonus .topup-rail .offer-card p.offer-media svg,
#topupbonus .topup-rail .offer-card p.offer-media img,
#mycardwalletevent .lottery-rail .feature-media img,
#lottery .tickets-rail .feature-media img,
#more .tickets-rail .feature-media img,
#mymall .mall-media img,
.section-social-tasks .social-task-card .feature-media svg,
.section-social-tasks .social-task-card .feature-media img {
    display: block !important;
    margin: 0 auto !important;
}

#topupbonus .topup-rail .offer-card a,
#mycardwalletevent .lottery-rail a,
#lottery .tickets-rail a,
#more .tickets-rail a,
#mymall .mall-card a,
.section-social-tasks .social-task-card a {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    align-self: stretch !important;
}

/* v34.0.12 homepage card typography tuning */
.reward-card h3,
.offer-card h3,
.game-card h3,
.feature-grid h3,
.section-social-tasks .social-task-card h3 {
    font-size: 21px !important;
    line-height: 1.24 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: auto !important;
    text-wrap: initial !important;
}

.limited-card h3 {
    font-size: clamp(20px, 2.4vw, 32px) !important;
    line-height: 1.08 !important;
}

#mymall .mall-card h3 {
    font-size: 16px !important;
}

.reward-card p,
.offer-card p:not(.offer-media),
.game-card p,
.feature-grid p,
.limited-card p,
.section-social-tasks .social-task-card p {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: auto !important;
    text-wrap: initial !important;
}

/* v34.0.11 card tag weight aligns with buttons */
.tag,
.offer-card span,
.game-card span,
.feature-grid b,
.limited-card b,
.limited-card span,
#topupbonus .offer-card span,
#mymall .mall-card .tag,
.section-social-tasks .social-task-card .tag,
.detail-task-rail .register-task-card .tag {
    font-weight: 700 !important;
}

/* v36.0.51: ended limited-rush actions use disabled grey */
.limited-card.is-ended a {
    color: #fff !important;
    background: linear-gradient(180deg, #b8b8b8, #8d8d8d) !important;
    box-shadow: 0 8px 0 rgba(96, 96, 96, 0.18) !important;
    cursor: not-allowed;
}

/* v34.0.30 tickets image width release */
#lottery .tickets-rail .feature-media img {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* v34.0.31 mall action bottom distance matches tickets */
#mymall .mall-card {
    padding-bottom: 20px !important;
}

#mymall .mall-card a {
    margin-bottom: 0 !important;
}

@media (max-width: 680px) {
    #mymall .mall-card {
        padding-bottom: 16px !important;
    }
}

/* v34.0.32 mall flex-space cleanup */
#mymall .mall-card {
    display: flex !important;
    flex-direction: column !important;
}

#mymall .mall-media {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

#mymall .mall-card a {
    width: 100% !important;
    min-width: 0 !important;
    align-self: stretch !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 680px) {
    #mymall .mall-media {
        margin-bottom: 10px !important;
    }
}

/* v34.0.34 mall card height shrink */
#mymall .mall-card {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 12px !important;
}

#mymall .mall-card a {
    flex: 0 0 auto !important;
}

@media (min-width: 769px) and (max-width: 1180px) {
    #mymall .mall-card {
        min-height: 0 !important;
    }
}

@media (max-width: 768px) {
    #mymall .mall-card {
        min-height: 0 !important;
        padding-bottom: 10px !important;
    }
}

/* v34.0.35 top-up recommended frame and sheet-driven social task tags */
#topupbonus .offer-card:first-child {
    color: var(--ink) !important;
    border-color: rgba(183, 55, 38, 0.16) !important;
    background:
        linear-gradient(180deg, rgba(255, 252, 242, 0.96), rgba(255, 234, 188, 0.82)) !important;
    box-shadow: 0 18px 42px rgba(109, 25, 24, 0.14) !important;
}

#topupbonus .offer-card:first-child span {
    color: var(--leaf-dark) !important;
    background: var(--gold-soft) !important;
}

#topupbonus .offer-card:first-child p:not(.offer-media) {
    color: var(--muted) !important;
}

#topupbonus .offer-card:first-child a {
    color: #fff8e4 !important;
    background: linear-gradient(180deg, #e13943, #8d1422) !important;
    box-shadow: 0 8px 0 rgba(102, 15, 24, 0.22) !important;
}

#topupbonus .offer-card.featured {
    color: var(--ink) !important;
    border-color: #e13943 !important;
    background:
        linear-gradient(180deg, rgba(255, 252, 242, 0.98), rgba(255, 238, 196, 0.9)) !important;
    box-shadow:
        0 0 0 3px rgba(225, 57, 67, 0.42),
        0 0 26px rgba(225, 57, 67, 0.26),
        0 18px 42px rgba(109, 25, 24, 0.16) !important;
}

#topupbonus .offer-card.featured span {
    color: var(--leaf-dark) !important;
    background: linear-gradient(180deg, #ffe9a8, #f5bd42) !important;
}

#topupbonus .offer-card.featured p:not(.offer-media) {
    color: var(--muted) !important;
}

#topupbonus .offer-card.featured a {
    color: #fff8e4 !important;
    background: linear-gradient(180deg, #e13943, #8d1422) !important;
    box-shadow: 0 8px 0 rgba(102, 15, 24, 0.22) !important;
}

.section-social-tasks .social-task-card > b {
    display: none !important;
}

/* v34.0.37 compact cards after removing tags */
#topupbonus .offer-card span,
#topupbonus .offer-card .tag-placeholder {
    display: none !important;
}

#topupbonus .topup-rail .offer-card {
    min-height: 284px !important;
}

#topupbonus .topup-rail .offer-card h3 {
    margin-top: 0 !important;
}

@media (max-width: 680px) {
    #topupbonus .topup-rail .offer-card {
        min-height: 0 !important;
    }
}

.section-social-tasks .social-task-card {
    min-height: 236px !important;
}

.section-social-tasks .social-task-card h3 {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .section-social-tasks .social-task-card {
        min-height: 220px !important;
    }
}

/* v34.0.38 unified activity card padding */
.reward-card,
.offer-card,
.limited-card,
.payment-grid a,
.feature-grid article:not(.game-card-image),
#topupbonus .topup-rail .offer-card,
#mycardwalletevent .lottery-rail article,
#lottery .tickets-rail article,
#more .tickets-rail article,
#mymall .mall-card,
.section-social-tasks .social-task-card,
.detail-task-rail .register-task-card,
.register-flow-card {
    padding: 20px !important;
}

@media (max-width: 768px) {
    .reward-card,
    .offer-card,
    .limited-card,
    .payment-grid a,
    .feature-grid article:not(.game-card-image),
    #topupbonus .topup-rail .offer-card,
    #mycardwalletevent .lottery-rail article,
    #lottery .tickets-rail article,
    #more .tickets-rail article,
    #mymall .mall-card,
    .section-social-tasks .social-task-card,
    .detail-task-rail .register-task-card,
    .register-flow-card {
        padding: 12px !important;
    }
}

/* v34.0.41 more activities 16:9 image fit */
#more .tickets-rail article {
    min-height: 0 !important;
}

#more .tickets-rail .feature-media {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

#more .tickets-rail .feature-media img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 14px !important;
}

@media (max-width: 768px) {
    #more .tickets-rail .feature-media {
        margin-bottom: 8px !important;
    }

    #more .tickets-rail .feature-media img {
        border-radius: 12px !important;
    }
}

/* v34.0.44 more activities cards follow content height on desktop */
@media (min-width: 769px) {
    #more .tickets-rail article {
        height: auto !important;
        min-height: 0 !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }

    #more .tickets-rail article h3 {
        min-height: 0 !important;
        margin-bottom: 8px !important;
    }

    #more .tickets-rail .feature-media {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    #more .tickets-rail a {
        margin-top: 0 !important;
    }
}

/* v34.0.46 sheet labels are blank in more activities */
#more .tickets-rail article > b {
    display: none !important;
}

/* v34.0.51 sheet labels are blank in ticket zone */
#lottery .tickets-rail article > b {
    display: none !important;
}

#lottery .tickets-rail article {
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

#lottery .tickets-rail article h3 {
    min-height: 0 !important;
    margin-bottom: 8px !important;
}

#lottery .tickets-rail .feature-media {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

#lottery .tickets-rail a {
    margin-top: 0 !important;
}

/* v34.0.47 home card padding */
.reward-card,
.offer-card,
.limited-card,
.payment-grid a,
.feature-grid article:not(.game-card-image),
#topupbonus .topup-rail .offer-card,
#mycardwalletevent .lottery-rail article,
#lottery .tickets-rail article,
#more .tickets-rail article,
#mymall .mall-card,
.section-social-tasks .social-task-card {
    padding: 24px !important;
}

@media (max-width: 768px) {
    .reward-card,
    .offer-card,
    .limited-card,
    .payment-grid a,
    .feature-grid article:not(.game-card-image),
    #topupbonus .topup-rail .offer-card,
    #mycardwalletevent .lottery-rail article,
    #lottery .tickets-rail article,
    #more .tickets-rail article,
    #mymall .mall-card,
    .section-social-tasks .social-task-card {
        padding: 16px !important;
    }
}

/* v34.0.48 member task CTA width */
#membertasks .reward-card a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    align-self: stretch !important;
}

@media (max-width: 768px) {
    #membertasks .reward-card a {
        width: clamp(84px, 26vw, 112px) !important;
        min-width: clamp(84px, 26vw, 112px) !important;
        max-width: 100% !important;
        align-self: center !important;
        justify-self: end !important;
    }
}

/* v35.0.1: use the mobile language dropdown pattern across all viewport widths. */
.lang-switch {
    position: relative !important;
    margin-left: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.lang-current,
body[data-lang="en"] .lang-current,
body[data-lang="id"] .lang-current,
body[data-lang="vi"] .lang-current,
body[data-lang="ja"] .lang-current,
body[data-lang="ko"] .lang-current,
body[data-lang="zh-cn"] .lang-current,
body[data-lang="th"] .lang-current {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: 112px;
    min-width: 112px;
    height: 38px;
    padding: 0 12px 0 7px;
    border: 1px solid rgba(83, 40, 18, 0.14);
    border-radius: 999px;
    color: var(--brown);
    background: rgba(255, 253, 241, 0.94);
    box-shadow: 0 10px 24px rgba(83, 40, 18, 0.12);
    font-size: 12px;
    font-weight: 900;
}

.lang-current .lang-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.lang-current::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.lang-switch.is-open .lang-current::after {
    transform: translateY(2px) rotate(225deg);
}

.lang-menu,
body[data-lang="en"] .lang-menu,
body[data-lang="id"] .lang-menu,
body[data-lang="vi"] .lang-menu,
body[data-lang="ja"] .lang-menu,
body[data-lang="ko"] .lang-menu,
body[data-lang="zh-cn"] .lang-menu,
body[data-lang="th"] .lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 260;
    display: none !important;
    width: min(184px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid rgba(83, 40, 18, 0.12) !important;
    border-radius: 18px;
    background: rgba(255, 253, 241, 0.98) !important;
    box-shadow: 0 18px 44px rgba(83, 40, 18, 0.18) !important;
    overflow: hidden;
}

.lang-switch.is-open .lang-menu {
    display: grid !important;
    gap: 4px;
}

.lang-menu button {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 12px;
    text-align: left;
}

@media (max-width: 768px) {
    .lang-switch {
        margin-left: auto;
    }
}

/* v35.0.2: match language switcher typography weight to homepage buttons. */
.lang-current,
.lang-switch button,
.lang-menu button {
    font-weight: 700 !important;
}


/* v35.0.14 invitation CTA spacing */
.inline-detail[data-content-key="invitation"] .register-flow-block {
    margin-top: 10px;
}

.inline-detail[data-content-key="invitation"] .register-flow-actions {
    margin: 0 0 14px;
}

@media (max-width: 768px) {
    .inline-detail[data-content-key="invitation"] .register-flow-block {
        margin-top: 8px;
    }
}


/* v35.0.17 note bullet alignment */
.inline-detail__notes li,
.register-notice-box li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
}

.inline-detail__notes li::before,
.register-notice-box li::before {
    position: static;
    display: block;
    flex: 0 0 8px;
    margin-top: 0.58em;
}


.inline-detail__notes li > .note-text,
.register-notice-box li > .note-text {
    min-width: 0;
}

/* v36.0.63: enlarge bottom navigation image icons by 50%. */
.bottom-nav span.has-icon {
    width: 45px !important;
    height: 45px !important;
}

.bottom-nav span.has-icon img {
    width: 41px !important;
    height: 41px !important;
}

@media (max-width: 768px) {
    .bottom-nav span.has-icon {
        width: 42px !important;
        height: 42px !important;
    }

    .bottom-nav span.has-icon img {
        width: 38px !important;
        height: 38px !important;
    }
}

/* v36.0.71: use localized hero backgrounds for desktop and mobile. */
body[data-lang="zh"] .hero-art {
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_zh-tw.webp?v=202608") center / cover no-repeat !important;
}

body[data-lang="zh-cn"] .hero-art {
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_zh-cn.webp?v=202608") center / cover no-repeat !important;
}

body[data-lang="en"] .hero-art {
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_en.webp?v=202608") center / cover no-repeat !important;
}

body[data-lang="ja"] .hero-art {
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_ja.webp?v=202608") center / cover no-repeat !important;
}

body[data-lang="ko"] .hero-art {
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_ko.webp?v=202608") center / cover no-repeat !important;
}

body[data-lang="id"] .hero-art {
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_id.webp?v=202608") center / cover no-repeat !important;
}

body[data-lang="vi"] .hero-art {
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_vi.webp?v=202608") center / cover no-repeat !important;
}

body[data-lang="th"] .hero-art {
    background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_th.webp?v=202608121812") center / cover no-repeat !important;
}

@media (max-width: 768px) {
    body[data-lang="zh"] .hero-art {
        background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_zh-tw.webp?v=202608") center top / 100% auto no-repeat !important;
    }

    body[data-lang="zh-cn"] .hero-art {
        background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_zh-cn.webp?v=202608") center top / 100% auto no-repeat !important;
    }

    body[data-lang="en"] .hero-art {
        background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_en.webp?v=202608") center top / 100% auto no-repeat !important;
    }

    body[data-lang="ja"] .hero-art {
        background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_ja.webp?v=202608") center top / 100% auto no-repeat !important;
    }

    body[data-lang="ko"] .hero-art {
        background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_ko.webp?v=202608") center top / 100% auto no-repeat !important;
    }

    body[data-lang="id"] .hero-art {
        background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_id.webp?v=202608") center top / 100% auto no-repeat !important;
    }

    body[data-lang="vi"] .hero-art {
        background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_vi.webp?v=202608") center top / 100% auto no-repeat !important;
    }

    body[data-lang="th"] .hero-art {
        background: url("https://image.mycard520.com/globalmycard/member/mmevent/202608evt/img/bg_pc_th.webp?v=202608121812") center top / 100% auto no-repeat !important;
    }
}

/* v36.0.72: hero becomes a content-width visual without overlay copy or CTAs. */
.hero {
    display: block !important;
    width: min(1180px, calc(100% - 36px)) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: clamp(70px, 7vw, 92px) 0 0 !important;
    overflow: visible !important;
    border-bottom: 0 !important;
    background: transparent !important;
}

.hero::after {
    display: none !important;
}

.hero-content,
.hero .eyebrow,
.hero-copy,
.hero-actions,
#hero-title {
    display: none !important;
}

.hero-art {
    position: relative !important;
    inset: auto !important;
    z-index: 0 !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1600 / 900 !important;
    min-height: 0 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 22px 52px rgba(111, 18, 24, 0.18) !important;
}

.hero-art::before {
    display: none !important;
}

/* v36.0.90: final hero override must stay at EOF so older hero rules cannot win. */
.hero {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border-bottom: 0 !important;
    line-height: 0 !important;
}

.hero::after,
.hero-art::before,
.hero-art::after,
.quick-panel::before {
    display: none !important;
}

.hero-art {
    position: relative !important;
    inset: auto !important;
    z-index: 0 !important;
    display: block !important;
    width: min(1320px, calc(100% - 48px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 0 !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
}

.hero-art img {
    display: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    vertical-align: top !important;
}

body:not([data-lang]) .hero-art img[data-hero-lang="zh"],
body[data-lang="zh"] .hero-art img[data-hero-lang="zh"],
body[data-lang="zh-cn"] .hero-art img[data-hero-lang="zh-cn"],
body[data-lang="en"] .hero-art img[data-hero-lang="en"],
body[data-lang="ja"] .hero-art img[data-hero-lang="ja"],
body[data-lang="ko"] .hero-art img[data-hero-lang="ko"],
body[data-lang="id"] .hero-art img[data-hero-lang="id"],
body[data-lang="vi"] .hero-art img[data-hero-lang="vi"],
body[data-lang="th"] .hero-art img[data-hero-lang="th"] {
    display: block !important;
}

.quick-panel {
    margin-top: -72px !important;
}

@media (max-width: 768px) {
    .hero-art {
        width: 100% !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .quick-panel {
        margin-top: -58px !important;
    }
}

/* v36.0.89: make the hero visual strictly image-height, without extra red beds. */
.hero {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    line-height: 0 !important;
}

.hero::after,
.hero-art::before,
.hero-art::after,
.quick-panel::before {
    display: none !important;
}

.hero-art {
    position: relative !important;
    display: block !important;
    width: min(1320px, calc(100% - 48px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: none !important;
    box-shadow: none !important;
    line-height: 0 !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
}

.hero-art img {
    display: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    vertical-align: top !important;
}

body:not([data-lang]) .hero-art img[data-hero-lang="zh"],
body[data-lang="zh"] .hero-art img[data-hero-lang="zh"],
body[data-lang="zh-cn"] .hero-art img[data-hero-lang="zh-cn"],
body[data-lang="en"] .hero-art img[data-hero-lang="en"],
body[data-lang="ja"] .hero-art img[data-hero-lang="ja"],
body[data-lang="ko"] .hero-art img[data-hero-lang="ko"],
body[data-lang="id"] .hero-art img[data-hero-lang="id"],
body[data-lang="vi"] .hero-art img[data-hero-lang="vi"],
body[data-lang="th"] .hero-art img[data-hero-lang="th"] {
    display: block !important;
}

.quick-panel {
    margin-top: -72px !important;
}

@media (max-width: 768px) {
    .hero-art {
        width: 100% !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .quick-panel {
        margin-top: -58px !important;
    }
}

.quick-panel {
    margin-top: -28px !important;
}

@media (max-width: 768px) {
    .hero {
        width: min(100% - 24px, 520px) !important;
        padding-top: 72px !important;
    }

    .hero-art {
        aspect-ratio: 1600 / 900 !important;
        border-radius: 18px !important;
        box-shadow: 0 14px 34px rgba(111, 18, 24, 0.18) !important;
    }

    .quick-panel {
        margin-top: -18px !important;
    }
}

/* v36.0.73: lift hero visual and add a matching visual bed for faded edges. */
.hero {
    padding: clamp(50px, 5.4vw, 70px) 8px 8px !important;
    border-radius: 32px !important;
    background: linear-gradient(180deg, #fff2d8 0%, #fff5df 100%) !important;
}

.hero-art {
    border-radius: 24px !important;
    box-shadow: 0 18px 46px rgba(111, 18, 24, 0.14) !important;
}

.quick-panel {
    margin-top: -24px !important;
}

@media (max-width: 768px) {
    .hero {
        width: min(100% - 20px, 520px) !important;
        padding: 54px 6px 6px !important;
        border-radius: 22px !important;
    }

    .hero-art {
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(111, 18, 24, 0.14) !important;
    }

    .quick-panel {
        margin-top: -14px !important;
    }
}

/* v36.0.74: full-width hero bed with content-width hero image. */
.hero {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 0 22px !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, #fff1d4 0%, #fff6e6 18%, #fff2d8 50%, #fff6e6 82%, #fff1d4 100%) !important;
}

.hero-art {
    width: min(1180px, calc(100% - 36px)) !important;
    margin: 0 auto !important;
    border-radius: 24px !important;
}

.quick-panel {
    margin-top: -34px !important;
}

@media (max-width: 768px) {
    .hero {
        width: 100% !important;
        padding: 10px 0 18px !important;
        border-radius: 0 !important;
    }

    .hero-art {
        width: min(100% - 20px, 520px) !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
    }

    .quick-panel {
        margin-top: -26px !important;
    }
}

/* v36.0.75: fade hero image edges into the full-width hero bed. */
.hero-art {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
}

@media (max-width: 768px) {
    .hero-art {
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%) !important;
        mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%) !important;
    }
}

/* v36.0.76: use red theme bed so faded hero edges blend into the campaign color. */
.hero {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 205, 100, 0.16), transparent 34%),
        linear-gradient(90deg, #8f1022 0%, #b8172d 18%, #d92735 50%, #b8172d 82%, #8f1022 100%) !important;
}

/* v36.0.77: align hero image directly under the navigation bar. */
.hero {
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 0 !important;
    }
}

/* v36.0.78: square hero image, align width with quick panel, and tighten first section. */
.hero-art {
    width: min(1320px, calc(100% - 48px)) !important;
    border-radius: 0 !important;
}

#limited,
#membertasks {
    padding-top: clamp(32px, 4vw, 48px) !important;
}

#limited {
    margin-top: 10px !important;
}

@media (max-width: 768px) {
    .hero-art {
        width: min(100% - 18px, 520px) !important;
        border-radius: 0 !important;
    }

    #limited,
    #membertasks {
        padding-top: 28px !important;
    }

    #limited {
        margin-top: 10px !important;
    }
}

/* v36.0.79: extend red bed behind quick links and fade hero bottom edge. */
.hero-art {
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
        linear-gradient(180deg, #000 0%, #000 84%, transparent 100%) !important;
    -webkit-mask-composite: source-in !important;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
        linear-gradient(180deg, #000 0%, #000 84%, transparent 100%) !important;
    mask-composite: intersect !important;
}

.quick-panel {
    isolation: isolate;
}

.quick-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -28px 50% -18px;
    width: 100vw;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 205, 100, 0.12), transparent 34%),
        linear-gradient(90deg, #8f1022 0%, #b8172d 18%, #d92735 50%, #b8172d 82%, #8f1022 100%);
}

@media (max-width: 768px) {
    .hero-art {
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
            linear-gradient(180deg, #000 0%, #000 82%, transparent 100%) !important;
        mask-image:
            linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
            linear-gradient(180deg, #000 0%, #000 82%, transparent 100%) !important;
    }

    .quick-panel::before {
        inset: -22px 50% -16px;
    }
}

/* v36.0.80: mobile hero image flush edges, bottom-only fade, compact quick links. */
@media (max-width: 768px) {
    .hero-art {
        width: 100% !important;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%) !important;
        mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%) !important;
    }

    .quick-panel {
        margin-top: -44px !important;
    }

    .quick-panel a {
        min-height: 70px !important;
        padding: 6px 4px !important;
    }

    .quick-panel span.has-icon {
        min-height: 34px !important;
        margin-bottom: 0 !important;
    }

    .quick-panel span.has-icon svg,
    .quick-panel span.has-icon img {
        width: 38px !important;
        height: 38px !important;
    }

    .quick-panel strong {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .quick-panel::before {
        inset: -36px 50% -14px;
    }
}

/* v36.0.81: visible red gradient overlay for the hero image bottom edge. */
.hero-art::after {
    content: "" !important;
    position: absolute !important;
    inset: auto 0 0 !important;
    z-index: 2 !important;
    display: block !important;
    height: 26% !important;
    pointer-events: none !important;
    background: linear-gradient(180deg, rgba(217, 39, 53, 0) 0%, rgba(184, 23, 45, 0.58) 58%, #b8172d 100%) !important;
}

@media (max-width: 768px) {
    .hero-art::after {
        height: 36% !important;
        background: linear-gradient(180deg, rgba(217, 39, 53, 0) 0%, rgba(184, 23, 45, 0.64) 56%, #b8172d 100%) !important;
    }
}

/* v36.0.82: match bottom fade to the red bed and float quick links higher. */
.hero-art::after {
    height: 34% !important;
    background:
        linear-gradient(180deg, rgba(217, 39, 53, 0) 0%, rgba(184, 23, 45, 0.5) 52%, rgba(184, 23, 45, 0.96) 100%),
        linear-gradient(90deg, #8f1022 0%, #b8172d 18%, #d92735 50%, #b8172d 82%, #8f1022 100%) !important;
    background-blend-mode: normal !important;
}

.quick-panel {
    margin-top: -48px !important;
}

.quick-panel::before {
    inset: -44px 50% -18px;
}

@media (max-width: 768px) {
    .hero-art::after {
        height: 42% !important;
        background:
            linear-gradient(180deg, rgba(217, 39, 53, 0) 0%, rgba(184, 23, 45, 0.54) 48%, rgba(184, 23, 45, 0.98) 100%),
            linear-gradient(90deg, #8f1022 0%, #b8172d 18%, #d92735 50%, #b8172d 82%, #8f1022 100%) !important;
    }

    .quick-panel {
        margin-top: -58px !important;
    }

    .quick-panel::before {
        inset: -48px 50% -14px;
    }
}

/* v36.0.83: use a solid red bed and fade desktop hero left/right/bottom into it. */
.hero {
    background: #b8172d !important;
}

.quick-panel::before {
    background: #b8172d !important;
}

.hero-art {
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
        linear-gradient(180deg, #000 0%, #000 82%, transparent 100%) !important;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
        linear-gradient(180deg, #000 0%, #000 82%, transparent 100%) !important;
}

.hero-art::after {
    height: 34% !important;
    background: linear-gradient(180deg, rgba(184, 23, 45, 0) 0%, rgba(184, 23, 45, 0.58) 54%, #b8172d 100%) !important;
}

@media (max-width: 768px) {
    .hero-art {
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%) !important;
        mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%) !important;
    }

    .hero-art::after {
        height: 42% !important;
        background: linear-gradient(180deg, rgba(184, 23, 45, 0) 0%, rgba(184, 23, 45, 0.62) 50%, #b8172d 100%) !important;
    }
}

/* v36.0.84: match mobile bottom fade to desktop and float desktop quick links higher. */
.quick-panel {
    margin-top: -72px !important;
}

.quick-panel::before {
    inset: -64px 50% -18px;
}

@media (max-width: 768px) {
    .hero-art::after {
        height: 34% !important;
        background: linear-gradient(180deg, rgba(184, 23, 45, 0) 0%, rgba(184, 23, 45, 0.58) 54%, #b8172d 100%) !important;
    }

    .quick-panel {
        margin-top: -58px !important;
    }

    .quick-panel::before {
        inset: -48px 50% -14px;
    }
}

/* v36.0.85: remove the visual gap between the hero image and the red bed bottom. */
.hero {
    padding-bottom: 0 !important;
}

.hero-art {
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
        linear-gradient(180deg, #000 0%, #000 94%, transparent 100%) !important;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
        linear-gradient(180deg, #000 0%, #000 94%, transparent 100%) !important;
}

.hero-art::after {
    height: 22% !important;
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 0 !important;
    }

    .hero-art {
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 94%, transparent 100%) !important;
        mask-image: linear-gradient(180deg, #000 0%, #000 94%, transparent 100%) !important;
    }

    .hero-art::after {
        height: 22% !important;
    }
}

/* v36.0.86: render the hero as real images so the section height follows the asset. */
.hero-art {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    background: transparent !important;
}

.hero-art img {
    display: none;
    width: 100%;
    height: auto;
    vertical-align: top;
}

body:not([data-lang]) .hero-art img[data-hero-lang="zh"],
body[data-lang="zh"] .hero-art img[data-hero-lang="zh"],
body[data-lang="zh-cn"] .hero-art img[data-hero-lang="zh-cn"],
body[data-lang="en"] .hero-art img[data-hero-lang="en"],
body[data-lang="ja"] .hero-art img[data-hero-lang="ja"],
body[data-lang="ko"] .hero-art img[data-hero-lang="ko"],
body[data-lang="id"] .hero-art img[data-hero-lang="id"],
body[data-lang="vi"] .hero-art img[data-hero-lang="vi"],
body[data-lang="th"] .hero-art img[data-hero-lang="th"] {
    display: block;
}

/* v36.0.87: let the hero section height equal the visible image height. */
.hero {
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
}

.hero-art {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
}

.hero-art::after {
    height: 14% !important;
    background: linear-gradient(180deg, rgba(184, 23, 45, 0) 0%, rgba(184, 23, 45, 0.38) 62%, #b8172d 100%) !important;
}

@media (max-width: 768px) {
    .hero {
        padding: 0 !important;
        line-height: 0 !important;
    }

    .hero-art {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .hero-art::after {
        height: 14% !important;
    }
}

/* v36.0.88: hard-reset hero layout so JS can bind section height to the active image. */
.hero {
    display: block !important;
    height: auto;
    max-height: none !important;
}

body:not([data-lang]) .hero-art,
body[data-lang] .hero-art {
    height: auto;
    max-height: none !important;
    background: none !important;
}

.hero-art::before {
    display: none !important;
}

/* v36.0.92: final hero image-height layout with red fade bed. */
.hero {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #b8172d !important;
    border-bottom: 0 !important;
    line-height: 0 !important;
}

.hero::after,
.hero-art::before,
.quick-panel::before {
    display: none !important;
}

.hero-art {
    position: relative !important;
    inset: auto !important;
    z-index: 0 !important;
    display: block !important;
    width: min(1320px, calc(100% - 48px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 0 !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%) !important;
}

.hero-art::after {
    content: "" !important;
    position: absolute !important;
    inset: auto 0 0 !important;
    z-index: 2 !important;
    display: block !important;
    height: 16% !important;
    pointer-events: none !important;
    background: linear-gradient(180deg, rgba(184, 23, 45, 0) 0%, rgba(184, 23, 45, 0.42) 62%, #b8172d 100%) !important;
}

.hero-art img {
    display: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    vertical-align: top !important;
}

body:not([data-lang]) .hero-art img[data-hero-lang="zh"],
body[data-lang="zh"] .hero-art img[data-hero-lang="zh"],
body[data-lang="zh-cn"] .hero-art img[data-hero-lang="zh-cn"],
body[data-lang="en"] .hero-art img[data-hero-lang="en"],
body[data-lang="ja"] .hero-art img[data-hero-lang="ja"],
body[data-lang="ko"] .hero-art img[data-hero-lang="ko"],
body[data-lang="id"] .hero-art img[data-hero-lang="id"],
body[data-lang="vi"] .hero-art img[data-hero-lang="vi"],
body[data-lang="th"] .hero-art img[data-hero-lang="th"] {
    display: block !important;
}

.quick-panel {
    margin-top: -72px !important;
}

@media (max-width: 768px) {
    .hero-art {
        width: 100% !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .hero-art::after {
        height: 14% !important;
    }

    .quick-panel {
        margin-top: -58px !important;
    }
}

/* v36.0.93: connect the quick-link area to the red hero bed without changing hero height. */
.quick-panel {
    position: relative !important;
    background: #b8172d !important;
    box-shadow: 0 0 0 100vmax #b8172d !important;
    clip-path: inset(0 -100vmax) !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
}

/* v36.0.94: stronger hero bottom fade and half-overlap quick panel. */
.hero-art::after {
    height: 24% !important;
    background: linear-gradient(180deg, rgba(184, 23, 45, 0) 0%, rgba(184, 23, 45, 0.5) 56%, #b8172d 100%) !important;
}

.quick-panel {
    margin-top: -52px !important;
}

@media (max-width: 768px) {
    .hero-art::after {
        height: 22% !important;
    }

    .quick-panel {
        margin-top: -44px !important;
    }
}

/* v36.0.95: float quick links over the hero without extending the hero bed. */
.quick-panel {
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    margin-bottom: -52px !important;
    background: #b8172d !important;
    box-shadow: 0 18px 42px rgba(90, 0, 12, 0.2) !important;
    clip-path: none !important;
    z-index: 35 !important;
}

@media (max-width: 768px) {
    .quick-panel {
        margin-top: 0 !important;
        margin-bottom: -86px !important;
        transform: translateY(-50%) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .quick-panel {
        margin-bottom: -86px !important;
    }
}

/* v36.0.96: keep quick links floating, but make their section background transparent. */
.quick-panel {
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
}

.quick-panel::before {
    display: none !important;
}

/* v36.0.98: keep desktop quick overlap, but set mobile overlap to 25%. */
@media (max-width: 768px) {
    .quick-panel {
        transform: translateY(-25%) !important;
        margin-bottom: -43px !important;
    }
}

/* v36.0.99: compact mobile toast into a top-right notification bell. */
@media (max-width: 768px) {
    .home-notice {
        top: calc(12px + env(safe-area-inset-top));
        right: 12px;
        left: auto;
        width: 54px;
        height: 54px;
        pointer-events: auto;
    }

    .home-notice__panel {
        display: block;
        width: 54px;
        height: 54px;
        padding: 0;
        overflow: visible;
        border: 1px solid rgba(255, 222, 145, 0.86);
        border-radius: 999px;
        background:
            radial-gradient(circle at 68% 22%, rgba(255, 236, 153, 0.95), transparent 30%),
            linear-gradient(180deg, #d92a3a, #a80f22);
        box-shadow: 0 12px 26px rgba(82, 7, 18, 0.24);
        color: #fff8e8;
    }

    .home-notice__panel::before {
        inset: auto;
        top: 9px;
        right: 10px;
        width: 9px;
        height: 9px;
        border: 2px solid #fff8e8;
        border-radius: 999px;
        background: #ffd95e;
        box-shadow: 0 0 0 2px rgba(168, 15, 34, 0.45);
    }

    .home-notice__panel::after {
        content: "🔔";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        font-size: 24px;
        line-height: 1;
        pointer-events: none;
        transform: translateY(1px);
    }

    .home-notice__close,
    .home-notice__kicker,
    .home-notice h2,
    .home-notice__desc {
        display: none !important;
    }

    .home-notice__actions {
        position: absolute;
        inset: 0;
        display: block;
        margin: 0;
    }

    .home-notice__primary {
        position: absolute;
        inset: 0;
        width: 100%;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
        color: transparent;
        font-size: 0;
        white-space: nowrap;
    }

    .home-notice__primary:focus-visible {
        outline: 3px solid rgba(255, 248, 232, 0.94);
        outline-offset: 3px;
    }
}

/* v36.0.101: mobile home notice becomes a full-screen takeover again. */
@media (max-width: 768px) {
    body.home-notice-open {
        overflow: hidden;
    }

    .home-notice {
        inset: 0;
        z-index: 900;
        display: grid;
        place-items: center;
        width: auto;
        height: auto;
        padding:
            calc(22px + env(safe-area-inset-top))
            18px
            calc(22px + env(safe-area-inset-bottom));
        background:
            radial-gradient(circle at 50% 18%, rgba(255, 217, 94, 0.25), transparent 34%),
            rgba(50, 5, 15, 0.72);
        backdrop-filter: blur(8px);
        pointer-events: auto;
    }

    .home-notice__panel {
        display: block;
        width: min(360px, 92vw);
        height: auto;
        max-height: calc(100dvh - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding: 22px 18px 18px;
        overflow-y: auto;
        border: 1px solid rgba(255, 222, 145, 0.84);
        border-radius: 18px;
        background:
            radial-gradient(circle at 88% 18%, rgba(255, 217, 104, 0.42), transparent 28%),
            linear-gradient(135deg, rgba(255, 252, 235, 0.99), rgba(255, 235, 196, 0.98));
        box-shadow: 0 22px 58px rgba(35, 2, 12, 0.38);
        color: var(--activity-deep, #7a0f1d);
    }

    .home-notice__panel::before {
        content: "";
        position: absolute;
        inset: 7px;
        width: auto;
        height: auto;
        border: 1px solid rgba(194, 31, 47, 0.16);
        border-radius: 13px;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
    }

    .home-notice__panel::after {
        content: none;
    }

    .home-notice__close {
        display: grid !important;
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        background: rgba(122, 15, 29, 0.1);
        color: var(--activity-deep, #7a0f1d);
        font-size: 22px;
    }

    .home-notice__kicker {
        display: inline-flex !important;
        margin: 0 44px 10px 0;
        color: #fff9e8;
        font-size: 13px;
    }

    .home-notice h2,
    .home-notice__desc {
        display: block !important;
    }

    .home-notice h2 {
        max-width: 12em;
        font-size: 22px;
        line-height: 1.12;
    }

    .home-notice__desc {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.45;
    }

    .home-notice__actions {
        position: static;
        display: flex;
        margin-top: 16px;
    }

    .home-notice__primary {
        position: static;
        inset: auto;
        width: 100%;
        min-height: 44px;
        padding: 10px 18px;
        overflow: visible;
        border-radius: 999px;
        background: linear-gradient(180deg, #d92a3a, #a80f22);
        box-shadow: 0 14px 28px rgba(168, 15, 34, 0.25);
        color: #fff8e8;
        font-size: 15px;
        font-weight: 700;
    }
}

/* v1.0.1 final override: dark cyber blue, neon cyan, and gold CTA theme. */
:root {
    --cream: #07112d;
    --rice: #0b1738;
    --leaf: #00d9ff;
    --leaf-dark: #0066ff;
    --bamboo: #243a82;
    --gold: #ffd43d;
    --gold-soft: #ffe977;
    --brown: #d8f6ff;
    --caramel: #ff9f1c;
    --red: #8b5cff;
    --ink: #eafcff;
    --muted: #8fb2d8;
    --line: rgba(0, 217, 255, 0.24);
    --shadow: 0 24px 70px rgba(0, 8, 36, 0.5), 0 0 34px rgba(0, 217, 255, 0.16);
    --activity-red: #00d9ff;
    --activity-deep: #081436;
}

body {
    color: var(--ink) !important;
    background:
        radial-gradient(circle at 80% 8%, rgba(0, 217, 255, 0.22), transparent 30%),
        radial-gradient(circle at 12% 18%, rgba(28, 82, 255, 0.24), transparent 28%),
        linear-gradient(180deg, #020718 0%, #07112d 38%, #0b1738 100%) !important;
}

body::before {
    background:
        linear-gradient(90deg, rgba(0, 217, 255, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 14% 24%, rgba(255, 212, 61, 0.16), transparent 18%),
        radial-gradient(circle at 90% 12%, rgba(0, 102, 255, 0.22), transparent 24%) !important;
    background-size: 42px 42px, 42px 42px, auto, auto !important;
    opacity: 0.95;
}

.site-header,
.bottom-nav {
    border-color: rgba(0, 217, 255, 0.32) !important;
    background: rgba(3, 10, 31, 0.86) !important;
    box-shadow: 0 16px 42px rgba(0, 8, 36, 0.42), inset 0 -1px 0 rgba(0, 217, 255, 0.18) !important;
    backdrop-filter: blur(16px);
}

.bottom-nav {
    transition: background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

body.is-page-scrolled .bottom-nav {
    border-color: rgba(0, 217, 255, 0.2) !important;
    background: rgba(3, 10, 31, 0.48) !important;
    box-shadow: 0 12px 34px rgba(0, 8, 36, 0.24), inset 0 -1px 0 rgba(0, 217, 255, 0.1) !important;
}

.brand,
.header-nav a,
.lang-current,
.lang-menu button,
.bottom-nav a {
    color: #dffbff !important;
}

.header-nav a:hover,
.bottom-nav a:hover,
.bottom-nav a:active {
    background: rgba(0, 217, 255, 0.12) !important;
    color: #ffffff !important;
}

.lang-current,
.lang-menu {
    border-color: rgba(0, 217, 255, 0.35) !important;
    background: rgba(4, 16, 48, 0.94) !important;
    box-shadow: 0 14px 36px rgba(0, 8, 36, 0.42), 0 0 20px rgba(0, 217, 255, 0.12) !important;
}

.lang-mark,
.lang-switch button.is-active {
    color: #02102e !important;
    background: linear-gradient(180deg, #62f5ff, #009dff) !important;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.46) !important;
}

.hero {
    border-bottom-color: rgba(0, 217, 255, 0.32) !important;
    background:
        radial-gradient(circle at 72% 12%, rgba(0, 217, 255, 0.2), transparent 32%),
        linear-gradient(180deg, #020718 0%, #061235 100%) !important;
}

.hero::after,
.hero-art::after {
    background: linear-gradient(180deg, rgba(2, 7, 24, 0) 0%, rgba(4, 15, 44, 0.62) 58%, #07112d 100%) !important;
}

.hero-art {
    box-shadow: 0 24px 80px rgba(0, 8, 36, 0.64), 0 0 48px rgba(0, 217, 255, 0.22) !important;
}

.quick-panel,
.quick-panel::before {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.quick-panel a,
.reward-card,
.offer-card,
.game-card,
.limited-card,
.payment-grid a,
.feature-grid article:not(.game-card-image),
#topupbonus .topup-rail .offer-card,
#mycardwalletevent .lottery-rail article,
#lottery .tickets-rail article,
#more .tickets-rail article,
#mymall .mall-card,
.section-social-tasks .social-task-card,
.detail-task-rail .register-task-card,
.register-flow-card,
.inline-detail__panel,
.register-detail-body,
.home-notice__panel {
    border-color: rgba(0, 217, 255, 0.28) !important;
    background: linear-gradient(180deg, rgba(11, 28, 72, 0.94), rgba(5, 14, 42, 0.94)) !important;
    box-shadow: var(--shadow) !important;
    color: #eafcff !important;
}

.quick-panel a::before,
.reward-card::before,
.offer-card::before,
.game-card::before {
    background:
        radial-gradient(circle at 18% 18%, rgba(98, 245, 255, 0.26), transparent 26%),
        linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(139, 92, 255, 0.08)) !important;
}

.section-heading,
.eyebrow,
.section-kicker,
.section-heading h2,
.quick-panel strong,
.reward-card h3,
.offer-card h3,
.game-card h3,
.feature-grid article h3,
.inline-detail__panel h2,
.register-flow-card h3 {
    color: #f7fdff !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.36) !important;
}

.section-kicker,
.offer-card span,
.game-card span,
.reward-card .tag,
.feature-grid article b,
.limited-card b,
#topupbonus .offer-card span,
main > .section:not(.inline-detail):not(.register-standalone-notice):not(.detail-task-section) > .section-heading .section-kicker {
    color: #04102f !important;
    background: linear-gradient(180deg, #fff38a, #ffc21a) !important;
    box-shadow: 0 0 18px rgba(255, 212, 61, 0.34) !important;
}

.section-heading p,
.quick-panel span,
.reward-card p,
.offer-card p:not(.offer-media),
.game-card p,
.feature-grid article p,
.inline-detail__desc,
.inline-detail__notes,
.register-flow-card p,
.bottom-nav span {
    color: #9fc4e8 !important;
}

.primary-action,
.hero-actions a,
.reward-card a,
.offer-card a,
.game-card a,
.notice a,
.feature-grid a,
.inline-detail__action,
.inline-detail__back,
.home-notice__primary,
body.inline-detail-mode .header-nav a.detail-home-link {
    color: #06102d !important;
    border: 1px solid rgba(255, 244, 142, 0.76) !important;
    background: linear-gradient(180deg, #fff36f 0%, #ffc21a 56%, #ff9f1c 100%) !important;
    box-shadow: 0 8px 0 rgba(150, 82, 0, 0.52), 0 0 22px rgba(255, 212, 61, 0.36) !important;
}

.reward-card.featured,
.offer-card.featured,
.feature-grid article.featured,
.limited-card.is-featured,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child {
    color: #ffffff !important;
    border-color: rgba(98, 245, 255, 0.54) !important;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 212, 61, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(0, 102, 255, 0.92), rgba(4, 16, 48, 0.96) 58%, rgba(0, 217, 255, 0.18)) !important;
    box-shadow: 0 24px 70px rgba(0, 8, 36, 0.56), 0 0 38px rgba(0, 217, 255, 0.24) !important;
}

.reward-card.featured p,
.offer-card.featured p:not(.offer-media),
.feature-grid article.featured p,
.limited-card.is-featured p {
    color: #c8efff !important;
}

.coloredSvg [fill="#00adee"],
.coloredSvg [fill="#00ADEE"],
.coloredSvg [fill="#277653"],
.coloredSvg [fill="#154b38"],
.offer-card p.offer-media svg [fill="#00adee"],
.offer-card p.offer-media svg [fill="#00ADEE"],
.offer-card p.offer-media svg [fill="#277653"],
.offer-card p.offer-media svg [fill="#154b38"],
.quick-panel svg [fill="#00adee"],
.quick-panel svg [fill="#00ADEE"],
.quick-panel svg [fill="#277653"],
.quick-panel svg [fill="#154b38"],
.bottom-nav svg [fill="#00adee"],
.bottom-nav svg [fill="#00ADEE"],
.bottom-nav svg [fill="#277653"],
.bottom-nav svg [fill="#154b38"],
.social-link-panel svg [fill="#00adee"],
.social-link-panel svg [fill="#00ADEE"],
.social-link-panel svg [fill="#277653"],
.social-link-panel svg [fill="#154b38"] {
    fill: #00d9ff !important;
}

.coloredSvg [stroke="#00adee"],
.coloredSvg [stroke="#00ADEE"],
.coloredSvg [stroke="#277653"],
.coloredSvg [stroke="#154b38"],
.offer-card p.offer-media svg [stroke="#00adee"],
.offer-card p.offer-media svg [stroke="#00ADEE"],
.offer-card p.offer-media svg [stroke="#277653"],
.offer-card p.offer-media svg [stroke="#154b38"],
.quick-panel svg [stroke="#00adee"],
.quick-panel svg [stroke="#00ADEE"],
.quick-panel svg [stroke="#277653"],
.quick-panel svg [stroke="#154b38"],
.bottom-nav svg [stroke="#00adee"],
.bottom-nav svg [stroke="#00ADEE"],
.bottom-nav svg [stroke="#277653"],
.bottom-nav svg [stroke="#154b38"],
.social-link-panel svg [stroke="#00adee"],
.social-link-panel svg [stroke="#00ADEE"],
.social-link-panel svg [stroke="#277653"],
.social-link-panel svg [stroke="#154b38"] {
    stroke: #00d9ff !important;
}

.home-notice {
    background: rgba(2, 7, 24, 0.72) !important;
}

.home-notice__close {
    background: rgba(0, 217, 255, 0.12) !important;
    color: #dffbff !important;
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at 82% 8%, rgba(0, 217, 255, 0.18), transparent 32%),
            linear-gradient(180deg, #020718 0%, #07112d 42%, #0b1738 100%) !important;
    }

    .site-header {
        background: rgba(3, 10, 31, 0.92) !important;
    }

    .quick-panel a,
    .reward-card,
    .offer-card,
    .game-card,
    .limited-card,
    .feature-grid article:not(.game-card-image),
    #topupbonus .topup-rail .offer-card,
    #mycardwalletevent .lottery-rail article,
    #lottery .tickets-rail article,
    #more .tickets-rail article,
    #mymall .mall-card,
    .section-social-tasks .social-task-card {
        box-shadow: 0 14px 36px rgba(0, 8, 36, 0.48), 0 0 20px rgba(0, 217, 255, 0.12) !important;
    }
}

/* v1.0.2: tune home buttons, toast contrast, and utm_content detail surfaces. */
.quick-panel a {
    border: 1px solid rgba(98, 245, 255, 0.5) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(98, 245, 255, 0.22), transparent 52%),
        linear-gradient(180deg, rgba(10, 39, 96, 0.98), rgba(4, 15, 48, 0.98)) !important;
    box-shadow:
        0 16px 36px rgba(0, 8, 36, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 20px rgba(0, 217, 255, 0.18) !important;
}

.quick-panel a:hover {
    border-color: rgba(255, 229, 85, 0.78) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 212, 61, 0.26), transparent 54%),
        linear-gradient(180deg, rgba(16, 58, 132, 0.98), rgba(5, 20, 61, 0.98)) !important;
    transform: translateY(-2px);
}

.quick-panel span.has-icon {
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.52), transparent 28%),
        linear-gradient(180deg, #37f4ff, #0877ff) !important;
    box-shadow:
        0 0 0 1px rgba(98, 245, 255, 0.42),
        0 0 22px rgba(0, 217, 255, 0.44) !important;
}

.quick-panel strong {
    color: #ffffff !important;
}

.quick-panel span:not(.has-icon) {
    color: #aeeaff !important;
}

.reward-card a,
.offer-card a,
.game-card a,
.feature-grid a,
.detail-task-rail .register-task-card a,
.register-detail-actions a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.66) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow:
        0 8px 0 rgba(0, 54, 135, 0.58),
        0 0 22px rgba(0, 217, 255, 0.34) !important;
}

.primary-action,
.home-notice__primary,
.inline-detail__action,
body.inline-detail-mode .header-nav a.detail-home-link {
    color: #06102d !important;
    border-color: rgba(255, 246, 160, 0.92) !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow:
        0 8px 0 rgba(150, 82, 0, 0.54),
        0 0 24px rgba(255, 212, 61, 0.42) !important;
}

.home-notice {
    background:
        radial-gradient(circle at 52% 18%, rgba(0, 217, 255, 0.24), transparent 36%),
        rgba(2, 7, 24, 0.78) !important;
}

.home-notice__panel {
    border-color: rgba(98, 245, 255, 0.54) !important;
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 212, 61, 0.18), transparent 26%),
        linear-gradient(150deg, rgba(9, 28, 74, 0.98), rgba(3, 11, 35, 0.98)) !important;
    box-shadow:
        0 26px 70px rgba(0, 8, 36, 0.58),
        0 0 34px rgba(0, 217, 255, 0.22) !important;
    color: #ffffff !important;
}

.home-notice__kicker {
    color: #06102d !important;
    background: linear-gradient(180deg, #fff678, #ffc51f) !important;
    text-shadow: none !important;
}

.home-notice h2 {
    color: #ffffff !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.48) !important;
}

.home-notice__desc {
    color: #c8efff !important;
}

.home-notice__close {
    color: #ffffff !important;
    background: rgba(0, 217, 255, 0.16) !important;
}

.inline-detail {
    background:
        radial-gradient(circle at 80% 0%, rgba(0, 217, 255, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(2, 7, 24, 0.12), rgba(2, 7, 24, 0.7)) !important;
}

.inline-detail__panel {
    border: 1px solid rgba(98, 245, 255, 0.42) !important;
    background:
        linear-gradient(180deg, rgba(10, 31, 78, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow:
        0 30px 90px rgba(0, 8, 36, 0.62),
        0 0 42px rgba(0, 217, 255, 0.18) !important;
}

.inline-detail__kicker {
    color: #06102d !important;
    background: linear-gradient(180deg, #fff678, #ffc51f) !important;
    text-shadow: none !important;
}

.inline-detail h2 {
    color: #ffffff !important;
    text-shadow:
        0 0 18px rgba(0, 217, 255, 0.5),
        0 3px 0 rgba(0, 54, 135, 0.56) !important;
}

.inline-detail__desc {
    color: #c8efff !important;
}

.inline-detail__meta div,
.inline-detail__notes,
.register-detail-section,
.register-flow-card,
.inline-detail--register .inline-detail__custom,
.register-detail-body,
.register-detail-table,
.detail-task-rail .register-task-card {
    border-color: rgba(98, 245, 255, 0.28) !important;
    background:
        linear-gradient(180deg, rgba(13, 37, 91, 0.82), rgba(5, 17, 52, 0.86)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 8, 36, 0.26) !important;
    color: #eafcff !important;
}

.inline-detail__meta dt,
.register-detail-section__head p,
.register-detail-time,
.detail-task-section .section-kicker,
.detail-task-rail .register-task-card .tag {
    color: #04102f !important;
    background: linear-gradient(180deg, #fff678, #ffc51f) !important;
    text-shadow: none !important;
}

.inline-detail__meta dd,
.inline-detail__notes li,
.register-detail-body dd,
.register-detail-body p,
.register-detail-table td,
.detail-task-rail .register-task-card p {
    color: #b8dcff !important;
}

.register-detail-section h3,
.detail-task-section .section-heading h2,
.detail-task-rail .register-task-card h3 {
    color: #ffffff !important;
    text-shadow: 0 0 16px rgba(0, 217, 255, 0.42) !important;
}

.inline-detail__back {
    color: #c8efff !important;
    border-color: rgba(98, 245, 255, 0.42) !important;
    background: rgba(0, 217, 255, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(98, 245, 255, 0.12) !important;
}

@media (max-width: 768px) {
    .home-notice__kicker {
        color: #06102d !important;
    }

    .home-notice h2,
    .home-notice__desc {
        display: block !important;
    }

    .quick-panel a {
        box-shadow:
            0 12px 26px rgba(0, 8, 36, 0.5),
        0 0 16px rgba(0, 217, 255, 0.18) !important;
    }
}

/* v1.0.3: remove remaining red states and refine detail readability. */
.limited-card.is-upcoming,
.limited-card.is-ended {
    border-color: rgba(132, 151, 177, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(29, 42, 68, 0.92), rgba(12, 20, 39, 0.94)) !important;
    box-shadow: 0 14px 34px rgba(0, 8, 36, 0.42) !important;
}

.limited-card.is-upcoming a,
.limited-card.is-ended a {
    color: #f4f7fb !important;
    border-color: rgba(160, 170, 185, 0.52) !important;
    background: linear-gradient(180deg, #9aa7b8, #617084) !important;
    box-shadow: 0 7px 0 rgba(41, 50, 64, 0.58) !important;
    cursor: default;
}

.limited-card.is-soon,
.limited-card.is-active,
.limited-card.is-featured {
    border-color: rgba(98, 245, 255, 0.58) !important;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 212, 61, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(0, 92, 220, 0.92), rgba(4, 16, 48, 0.98) 62%, rgba(0, 217, 255, 0.18)) !important;
    box-shadow: 0 24px 70px rgba(0, 8, 36, 0.54), 0 0 34px rgba(0, 217, 255, 0.24) !important;
}

.limited-card.is-soon a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.72) !important;
    background: linear-gradient(180deg, #13dfff, #0877ff) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
}

.limited-card.is-active a {
    color: #06102d !important;
    border-color: rgba(255, 246, 160, 0.92) !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow: 0 8px 0 rgba(150, 82, 0, 0.54), 0 0 24px rgba(255, 212, 61, 0.42) !important;
}

#topupbonus .offer-card,
#topupbonus .topup-rail .offer-card,
#topupbonus .offer-card:first-child,
#topupbonus .offer-card.featured {
    color: #eafcff !important;
    border-color: rgba(0, 217, 255, 0.3) !important;
    background:
        radial-gradient(circle at 84% 12%, rgba(0, 217, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(10, 31, 78, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow: 0 22px 58px rgba(0, 8, 36, 0.48), 0 0 28px rgba(0, 217, 255, 0.14) !important;
}

#topupbonus .offer-card h3,
#topupbonus .topup-rail .offer-card h3 {
    color: #ffffff !important;
    text-shadow: 0 0 16px rgba(0, 217, 255, 0.42) !important;
}

#topupbonus .offer-card p:not(.offer-media),
#topupbonus .offer-card:first-child p:not(.offer-media),
#topupbonus .offer-card.featured p:not(.offer-media) {
    color: #b8dcff !important;
}

#topupbonus .offer-card span,
#topupbonus .offer-card:first-child span,
#topupbonus .offer-card.featured span,
#topupbonus .offer-card .tag-placeholder {
    color: #04102f !important;
    background: linear-gradient(180deg, #fff678, #ffc51f) !important;
    box-shadow: 0 0 16px rgba(255, 212, 61, 0.3) !important;
}

#topupbonus .offer-card p.offer-media,
#topupbonus .topup-rail .offer-card p.offer-media {
    border-color: rgba(98, 245, 255, 0.26) !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(0, 217, 255, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(6, 23, 61, 0.96), rgba(2, 9, 29, 0.92)) !important;
    box-shadow: inset 0 0 0 1px rgba(98, 245, 255, 0.08) !important;
}

#topupbonus .offer-card a,
#topupbonus .topup-rail .offer-card a,
#topupbonus .offer-card:first-child a,
#topupbonus .offer-card.featured a,
#topupbonus .topup-actions a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.66) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
}

#topupbonus .topup-actions a:nth-child(2) {
    color: #06102d !important;
    border-color: rgba(255, 246, 160, 0.92) !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow: 0 8px 0 rgba(150, 82, 0, 0.54), 0 0 24px rgba(255, 212, 61, 0.42) !important;
}

#payments .section-heading h2,
#payments .section-heading p:last-child {
    color: #f7fdff !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.42) !important;
}

#payments .section-heading p:last-child {
    color: #b8dcff !important;
}

#payments .payment-grid a {
    border-color: rgba(98, 245, 255, 0.32) !important;
    background:
        linear-gradient(180deg, rgba(10, 31, 78, 0.94), rgba(4, 13, 39, 0.96)) !important;
    color: #eafcff !important;
}

.inline-detail__kicker,
.inline-detail__meta dt,
.register-detail-section__head > p,
.register-detail-section__head > strong,
.register-detail-time,
.detail-task-section .section-kicker,
.detail-task-rail .register-task-card .tag {
    color: #111827 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.inline-detail__meta div,
.inline-detail__notes,
.register-detail-section,
.register-detail-body,
.register-detail-table,
.inline-detail--register .inline-detail__custom {
    border-color: rgba(17, 24, 39, 0.14) !important;
    background: #ffffff !important;
    box-shadow: 0 16px 36px rgba(0, 8, 36, 0.12) !important;
    color: #111827 !important;
}

.inline-detail__meta dd,
.inline-detail__notes li,
.inline-detail__notes li > .note-text,
.register-detail-section h3,
.register-detail-section dd,
.register-detail-body,
.register-detail-body p,
.register-detail-body dd,
.register-detail-table th,
.register-detail-table td {
    color: #111827 !important;
    text-shadow: none !important;
}

.register-detail-table th {
    background: #edf4ff !important;
    color: #0f172a !important;
}

.inline-detail__notes li::before {
    background: #0877ff !important;
}

.inline-detail__panel {
    border-color: rgba(98, 245, 255, 0.42) !important;
    background:
        radial-gradient(circle at 84% 0%, rgba(0, 217, 255, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(10, 31, 78, 0.96), rgba(4, 13, 39, 0.98)) !important;
}

@media (max-width: 768px) {
    .limited-card.is-upcoming a,
    .limited-card.is-ended a {
        color: #f4f7fb !important;
    }
}

/* v1.0.4: transparent image holders, payment text cleanup, and rebuilt utm_content palette. */
.quick-panel span.has-icon,
.bottom-nav span.has-icon,
.social-link-panel span.has-icon,
.payment-grid .payment-icon,
.offer-card p.offer-media,
#topupbonus .offer-card p.offer-media,
#topupbonus .topup-rail .offer-card p.offer-media,
.feature-grid .feature-media,
#mycardwalletevent .lottery-rail .feature-media,
#lottery .tickets-rail .feature-media,
#more .tickets-rail .feature-media,
.section-social-tasks .social-task-card .feature-media,
.game-card-image {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.quick-panel span.has-icon::before,
.quick-panel span.has-icon::after,
.payment-grid .payment-icon::before,
.payment-grid .payment-icon::after,
.offer-card p.offer-media::before,
.offer-card p.offer-media::after,
.feature-media::before,
.feature-media::after {
    content: none !important;
    display: none !important;
}

.quick-panel span.has-icon img,
.quick-panel span.has-icon svg,
.bottom-nav span.has-icon img,
.bottom-nav span.has-icon svg,
.social-link-panel span.has-icon img,
.social-link-panel span.has-icon svg,
.payment-grid .payment-icon img,
.payment-grid .payment-icon svg,
.offer-card p.offer-media img,
.offer-card p.offer-media svg,
.feature-media img,
.feature-media svg,
.game-card-image img {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

.payment-grid strong,
.payment-rail strong,
#payments .payment-grid strong {
    color: #ffffff !important;
    text-shadow: 0 0 14px rgba(0, 217, 255, 0.42) !important;
}

.payment-grid span,
.payment-rail span,
#payments .payment-grid span {
    color: #bfeeff !important;
    text-shadow: none !important;
}

#payments .payment-grid a,
#payments .payment-rail a {
    border-color: rgba(98, 245, 255, 0.38) !important;
    background:
        linear-gradient(180deg, rgba(9, 28, 74, 0.84), rgba(3, 12, 38, 0.9)) !important;
    box-shadow: 0 18px 42px rgba(0, 8, 36, 0.42), inset 0 0 0 1px rgba(98, 245, 255, 0.1) !important;
}

body.inline-detail-mode {
    background:
        radial-gradient(circle at 74% 0%, rgba(0, 217, 255, 0.18), transparent 34%),
        linear-gradient(180deg, #020718 0%, #07112d 100%) !important;
}

.inline-detail {
    background: transparent !important;
}

.inline-detail__panel {
    border: 1px solid rgba(98, 245, 255, 0.42) !important;
    background:
        radial-gradient(circle at 88% 0%, rgba(0, 217, 255, 0.2), transparent 30%),
        linear-gradient(180deg, rgba(8, 27, 76, 0.98), rgba(3, 12, 38, 0.98)) !important;
    box-shadow: 0 32px 90px rgba(0, 8, 36, 0.62), 0 0 44px rgba(0, 217, 255, 0.16) !important;
    color: #f7fdff !important;
}

.inline-detail__kicker {
    color: #8defff !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 0 14px rgba(0, 217, 255, 0.42) !important;
}

.inline-detail h2 {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5) !important;
}

.inline-detail__desc {
    color: #c8efff !important;
}

.inline-detail__meta,
.inline-detail__notes,
.register-detail-stack,
.inline-detail--register .inline-detail__custom {
    background: transparent !important;
    box-shadow: none !important;
}

.inline-detail__meta div,
.inline-detail__notes,
.register-detail-section,
.register-detail-body,
.register-detail-table,
.register-flow-card,
.register-prize-grid figure,
.register-flow-block,
.inline-detail[data-content-key="invitation"] .register-flow-block {
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    background: #ffffff !important;
    box-shadow: 0 18px 38px rgba(0, 8, 36, 0.18) !important;
    color: #111827 !important;
}

.inline-detail__meta dt,
.register-detail-section__head > p,
.register-detail-section__head > strong,
.register-detail-time,
.detail-task-section .section-kicker,
.detail-task-rail .register-task-card .tag,
.register-flow-step b,
.register-prize-grid figure > b {
    color: #0f172a !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.inline-detail__meta dd,
.inline-detail__notes li,
.inline-detail__notes li > .note-text,
.register-detail-section h3,
.register-detail-section dd,
.register-detail-body,
.register-detail-body p,
.register-detail-body dd,
.register-detail-table th,
.register-detail-table td,
.register-flow-card h3,
.register-flow-card p,
.register-prize-grid figcaption {
    color: #111827 !important;
    text-shadow: none !important;
}

.register-detail-section h3,
.register-flow-card h3 {
    color: #082f68 !important;
}

.register-detail-table th {
    background: #edf4ff !important;
    color: #0f172a !important;
}

.inline-detail__notes li::before {
    background: #0877ff !important;
}

.detail-task-section {
    background: transparent !important;
}

.detail-task-rail .register-task-card {
    border-color: rgba(98, 245, 255, 0.3) !important;
    background:
        linear-gradient(180deg, rgba(9, 28, 74, 0.92), rgba(3, 12, 38, 0.94)) !important;
    color: #f7fdff !important;
}

.detail-task-rail .register-task-card h3 {
    color: #ffffff !important;
    text-shadow: 0 0 14px rgba(0, 217, 255, 0.38) !important;
}

.detail-task-rail .register-task-card p {
    color: #bfeeff !important;
}

/* v1.0.5: normalize featured cards, side shortcuts, more buttons, and footer text. */
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child {
    border-color: rgba(0, 217, 255, 0.28) !important;
    background: linear-gradient(180deg, rgba(11, 28, 72, 0.94), rgba(5, 14, 42, 0.94)) !important;
    box-shadow: var(--shadow) !important;
    color: #eafcff !important;
}

#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3,
#membertasks .reward-card.featured h3,
#membertasks .reward-card:first-child h3 {
    color: #f7fdff !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.36) !important;
}

#mycardwalletevent .lottery-rail article.featured p,
#mycardwalletevent .lottery-rail article:first-child p,
#membertasks .reward-card.featured p,
#membertasks .reward-card:first-child p {
    color: #9fc4e8 !important;
    text-shadow: none !important;
}

#mycardwalletevent .lottery-rail article.featured > b,
#mycardwalletevent .lottery-rail article:first-child > b,
#membertasks .reward-card.featured .tag,
#membertasks .reward-card:first-child .tag {
    color: #04102f !important;
    background: linear-gradient(180deg, #fff38a, #ffc21a) !important;
    box-shadow: 0 0 18px rgba(255, 212, 61, 0.34) !important;
}

.side-nav a,
.side-nav-toggle,
.side-nav .side-nav-links a:not(.back-top),
.side-nav .side-nav-links button.detail-back-float,
.back-top,
.detail-back-float {
    color: #f7fdff !important;
    border: 1px solid rgba(98, 245, 255, 0.58) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
    text-shadow: none !important;
}

.side-nav .back-top {
    color: #06102d !important;
    border-color: rgba(255, 246, 160, 0.92) !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow: 0 8px 0 rgba(150, 82, 0, 0.54), 0 0 24px rgba(255, 212, 61, 0.42) !important;
}

#more .tickets-rail a,
#more .more-activities-rail a,
#more .tickets-rail article a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.66) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
}

.site-footer,
.site-footer p {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.32) !important;
}

/* v1.0.6: keep utm_content wrapper blocks transparent; only child content cards own backgrounds. */
.inline-detail--register .inline-detail__custom,
.register-detail-stack,
.register-detail-body {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* v1.0.7: first feature cards use the same CTA style as sibling cards. */
#mycardwalletevent .lottery-rail article.featured a,
#mycardwalletevent .lottery-rail article:first-child a,
#lottery .tickets-rail article.featured a,
#lottery .tickets-rail article:first-child a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.66) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
}

/* v1.0.8: detail notes stay readable and note links remain plain hyperlinks. */
.inline-detail__notes,
.register-notice-box {
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    background: #ffffff !important;
    box-shadow: 0 18px 38px rgba(0, 8, 36, 0.18) !important;
    color: #111827 !important;
}

.inline-detail__notes li,
.inline-detail__notes li > .note-text,
.register-notice-box li,
.register-notice-box li > .note-text {
    color: #111827 !important;
    text-shadow: none !important;
}

.inline-detail__notes a,
.register-notice-box a {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0877ff !important;
    font: inherit !important;
    font-weight: 800 !important;
    line-height: inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 0.16em !important;
    text-shadow: none !important;
}

.inline-detail__notes a:hover,
.register-notice-box a:hover {
    color: #005bd8 !important;
    background: transparent !important;
}

/* v1.0.9: member-task first card uses the same CTA style as sibling cards. */
#membertasks .reward-card.featured a,
#membertasks .reward-card:first-child a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.66) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
}

/* v1.0.10: remove decorative coin pseudo-elements from cards. */
.reward-card::before,
.offer-card::before,
.game-card::before,
.feature-grid article::before,
.limited-card::before,
.register-task-card::before,
.detail-task-rail .register-task-card::before,
.section-social-tasks .social-task-card::before,
#membertasks .reward-card::before,
#topupbonus .offer-card::before,
#mycardwalletevent .lottery-rail article::before,
#lottery .tickets-rail article::before,
#more .tickets-rail article::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* v1.0.11: quick-button section wrapper has no background treatment. */
.quick-panel,
[id="8icons"].quick-panel,
body[data-lang] .quick-panel {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.quick-panel::before,
.quick-panel::after,
[id="8icons"].quick-panel::before,
[id="8icons"].quick-panel::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* v1.0.26: promote selected cards to the limited-soon highlight style. */
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#topupbonus .offer-card:first-child {
    border-color: rgba(98, 245, 255, 0.58) !important;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 212, 61, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(0, 92, 220, 0.92), rgba(4, 16, 48, 0.98) 62%, rgba(0, 217, 255, 0.18)) !important;
    box-shadow: 0 24px 70px rgba(0, 8, 36, 0.54), 0 0 34px rgba(0, 217, 255, 0.24) !important;
    color: #f7fdff !important;
}

#membertasks .reward-card.featured h3,
#membertasks .reward-card:first-child h3,
#topupbonus .offer-card:first-child h3 {
    color: #ffffff !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.44) !important;
}

#membertasks .reward-card.featured p,
#membertasks .reward-card:first-child p,
#topupbonus .offer-card:first-child p:not(.offer-media) {
    color: #c8efff !important;
    text-shadow: none !important;
}

#membertasks .reward-card.featured .tag,
#membertasks .reward-card:first-child .tag,
#topupbonus .offer-card:first-child span {
    color: #04102f !important;
    background: linear-gradient(180deg, #fff38a, #ffc21a) !important;
    box-shadow: 0 0 18px rgba(255, 212, 61, 0.34) !important;
}

#membertasks .reward-card.featured a,
#membertasks .reward-card:first-child a,
#topupbonus .offer-card:first-child a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.72) !important;
    background: linear-gradient(180deg, #13dfff, #0877ff) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
}

/* v1.0.26: member-entry split section sourced from the "是否會員" sheet tab. */
.section-member-gate {
    padding-top: clamp(28px, 5vw, 58px) !important;
}

.member-gate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 26px);
    width: min(980px, 100%);
    margin: 0 auto;
}

.member-gate-card {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    min-height: 190px;
    padding: clamp(18px, 2.4vw, 26px);
    border: 1px solid rgba(98, 245, 255, 0.44);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 20%, rgba(98, 245, 255, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(11, 28, 72, 0.94), rgba(5, 14, 42, 0.94));
    box-shadow: 0 22px 58px rgba(0, 8, 36, 0.44), 0 0 24px rgba(0, 217, 255, 0.14);
    color: #eafcff;
    overflow: hidden;
}

.member-gate-card__media {
    display: grid;
    place-items: center;
    min-width: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.member-gate-card__media img {
    display: block;
    width: min(132px, 100%);
    height: auto;
    background: transparent !important;
    filter: drop-shadow(0 16px 24px rgba(0, 8, 36, 0.3));
}

.member-gate-card__body {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 12px;
    min-width: 0;
}

.member-gate-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    color: #04102f;
    background: linear-gradient(180deg, #fff38a, #ffc21a);
    box-shadow: 0 0 18px rgba(255, 212, 61, 0.34);
    font-size: 13px;
    font-weight: 900;
}

.member-gate-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.44);
}

.member-gate-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid rgba(98, 245, 255, 0.72);
    border-radius: 999px;
    color: #f7fdff !important;
    background: linear-gradient(180deg, #13dfff, #0877ff);
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34);
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 768px) {
    .member-gate-grid {
        grid-template-columns: 1fr;
    }

    .member-gate-card {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 150px;
        border-radius: 16px;
    }

    .member-gate-card__media img {
        width: 94px;
    }
}

/* v1.0.26: stronger split-card proportions for member entry. */
.member-gate-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: min(1120px, 100%) !important;
}

.member-gate-card {
    grid-template-columns: clamp(108px, 24%, 150px) minmax(0, 1fr) !important;
}

.member-gate-card__body {
    justify-items: stretch !important;
}

.member-gate-card__tag {
    justify-self: start;
    min-height: 36px !important;
    padding: 0 16px !important;
    font-size: clamp(16px, 1.5vw, 20px) !important;
    line-height: 1 !important;
}

.member-gate-card a {
    width: 100% !important;
    min-height: 48px !important;
    padding-inline: 18px !important;
}

@media (max-width: 768px) {
    .member-gate-grid {
        grid-template-columns: 1fr !important;
    }

    .member-gate-card {
        grid-template-columns: 96px minmax(0, 1fr) !important;
    }
}

/* v1.0.26: make member entry feel like a two-choice Y/N question. */
.member-gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(12px, 2vw, 22px) !important;
}

.member-gate-card {
    position: relative;
    grid-template-columns: clamp(96px, 22%, 138px) minmax(0, 1fr) !important;
    min-width: 0;
    isolation: isolate;
}

.member-gate-card::after {
    content: "N";
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: -1;
    color: rgba(98, 245, 255, 0.1);
    font-size: clamp(64px, 8vw, 110px);
    font-weight: 900;
    line-height: 1;
}

.member-gate-card:nth-child(2)::after {
    content: "Y";
    color: rgba(255, 212, 61, 0.12);
}

.member-gate-card__tag {
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.member-gate-card a {
    align-self: stretch;
}

@media (max-width: 768px) {
    .member-gate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .member-gate-card {
        grid-template-columns: 1fr !important;
        align-content: start;
        min-height: 210px;
        padding: 14px !important;
    }

    .member-gate-card__media {
        min-height: 74px;
    }

    .member-gate-card__media img {
        width: min(82px, 70%) !important;
    }

    .member-gate-card__body {
        justify-items: stretch !important;
        gap: 9px;
    }

    .member-gate-card__tag {
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
        justify-self: start;
        max-width: 100%;
        white-space: normal;
    }

    .member-gate-card h3 {
        font-size: 18px !important;
        line-height: 1.16;
    }

    .member-gate-card a {
        min-height: 42px !important;
        padding-inline: 10px !important;
        font-size: 14px;
    }

    .member-gate-card::after {
        right: 8px;
        top: 8px;
        font-size: 56px;
    }
}

/* v1.0.26: member-entry image column takes half of each card. */
.member-gate-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.member-gate-card__media img {
    width: min(190px, 92%) !important;
}

@media (max-width: 768px) {
    .member-gate-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }

    .member-gate-card__media {
        min-height: 0;
    }

    .member-gate-card__media img {
        width: min(88px, 92%) !important;
    }
}

/* v1.0.26: 50% image split is desktop-only; mobile reads label, title, image, action. */
@media (max-width: 768px) {
    .member-gate-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-content: start !important;
        min-height: 230px;
    }

    .member-gate-card__body {
        display: contents !important;
    }

    .member-gate-card__tag {
        order: 1;
    }

    .member-gate-card h3 {
        order: 2;
    }

    .member-gate-card__media {
        order: 3;
        min-height: 76px !important;
    }

    .member-gate-card__media img {
        width: min(82px, 70%) !important;
    }

    .member-gate-card a {
        order: 4;
        width: 100% !important;
        align-self: end;
    }
}

/* v1.0.26: restore compact member-entry tags and reduce mobile card whitespace. */
.member-gate-card__tag {
    min-height: 28px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .member-gate-card {
        min-height: 0 !important;
        padding: 12px !important;
        row-gap: 10px !important;
    }

    .member-gate-card__tag {
        justify-self: start;
    }

    .member-gate-card h3 {
        margin-top: 2px;
    }

    .member-gate-card__media {
        min-height: 66px !important;
    }

    .member-gate-card a {
        align-self: stretch !important;
        min-height: 40px !important;
        margin-top: 0;
    }
}

/* v1.0.26: align member-entry labels with member-task card tags. */
.member-gate-card__tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    color: #04102f !important;
    background: linear-gradient(180deg, #fff38a, #ffc21a) !important;
    box-shadow: 0 0 18px rgba(255, 212, 61, 0.34) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    white-space: normal !important;
}

/* v1.0.26: keep the language dropdown identical across all selected languages. */
.lang-switch .lang-menu button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 34px !important;
    box-sizing: border-box !important;
    color: #d8efff !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1 !important;
    text-align: center !important;
}

.lang-switch .lang-menu button.is-active {
    color: #02102e !important;
    background: linear-gradient(180deg, #62f5ff, #009dff) !important;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.34) !important;
}

@media (max-width: 768px) {
    .lang-switch .lang-current,
    body[data-lang="zh"] .lang-switch .lang-current,
    body[data-lang="zh-cn"] .lang-switch .lang-current,
    body[data-lang="en"] .lang-switch .lang-current,
    body[data-lang="ja"] .lang-switch .lang-current,
    body[data-lang="ko"] .lang-switch .lang-current,
    body[data-lang="id"] .lang-switch .lang-current,
    body[data-lang="vi"] .lang-switch .lang-current,
    body[data-lang="th"] .lang-switch .lang-current {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 112px !important;
        min-width: 112px !important;
        height: 38px !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
        color: #d8efff !important;
        border: 1px solid rgba(98, 245, 255, 0.58) !important;
        background: rgba(4, 16, 48, 0.94) !important;
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.24) !important;
    }

    .lang-switch .lang-menu,
    body[data-lang="zh"] .lang-switch .lang-menu,
    body[data-lang="zh-cn"] .lang-switch .lang-menu,
    body[data-lang="en"] .lang-switch .lang-menu,
    body[data-lang="ja"] .lang-switch .lang-menu,
    body[data-lang="ko"] .lang-switch .lang-menu,
    body[data-lang="id"] .lang-switch .lang-menu,
    body[data-lang="vi"] .lang-switch .lang-menu,
    body[data-lang="th"] .lang-switch .lang-menu {
        width: min(184px, calc(100vw - 28px)) !important;
        padding: 8px !important;
        border: 1px solid rgba(98, 245, 255, 0.52) !important;
        border-radius: 18px !important;
        background: rgba(4, 16, 48, 0.98) !important;
        box-shadow: 0 18px 44px rgba(0, 8, 36, 0.42), 0 0 22px rgba(0, 217, 255, 0.18) !important;
    }

    .lang-switch .lang-menu button,
    body[data-lang] .lang-switch .lang-menu button {
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 34px !important;
        padding: 0 12px !important;
        text-align: left !important;
    }
}

/* v1.0.26: keep the dropdown panel background on the same color as the language button. */
.lang-switch .lang-current,
.lang-switch .lang-menu,
body[data-lang] .lang-switch .lang-current,
body[data-lang] .lang-switch .lang-menu {
    border-color: rgba(0, 217, 255, 0.35) !important;
    background: rgba(4, 16, 48, 0.94) !important;
    box-shadow: 0 14px 36px rgba(0, 8, 36, 0.42), 0 0 20px rgba(0, 217, 255, 0.12) !important;
}

@media (max-width: 768px) {
    .lang-switch .lang-current,
    .lang-switch .lang-menu,
    body[data-lang] .lang-switch .lang-current,
    body[data-lang] .lang-switch .lang-menu {
        background: rgba(4, 16, 48, 0.94) !important;
    }
}

/* v1.0.26: render member-task sheet image media instead of text subtitles. */
#membertasks .reward-card p.offer-media {
    display: grid !important;
    place-items: center !important;
    min-height: 86px !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#membertasks .reward-card p.offer-media img,
#membertasks .reward-card p.offer-media svg {
    display: block !important;
    width: min(92px, 82%) !important;
    max-height: 92px !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: drop-shadow(0 12px 18px rgba(0, 8, 36, 0.28)) !important;
}

@media (max-width: 768px) {
    #membertasks .reward-card p.offer-media {
        min-height: 72px !important;
    }

    #membertasks .reward-card p.offer-media img,
    #membertasks .reward-card p.offer-media svg {
        width: min(76px, 78%) !important;
        max-height: 76px !important;
    }
}

/* v1.0.32: member tasks use image cards without tags and a fixed 3x2 mobile grid. */
#membertasks .reward-card .tag {
    display: none !important;
}

#membertasks .reward-card h3 {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    #membertasks .rail-shell {
        overflow: visible !important;
    }

    #membertasks .rail-large,
    body[data-lang="en"] #membertasks .rail-large,
    body[data-lang="id"] #membertasks .rail-large,
    body[data-lang="vi"] #membertasks .rail-large,
    body[data-lang="ja"] #membertasks .rail-large,
    body[data-lang="ko"] #membertasks .rail-large,
    body[data-lang="zh-cn"] #membertasks .rail-large,
    body[data-lang="th"] #membertasks .rail-large {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: initial !important;
        grid-template-rows: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        transform: none !important;
        animation: none !important;
        scroll-snap-type: none !important;
    }

    #membertasks .rail-large > .reward-card,
    body[data-lang] #membertasks .rail-large > .reward-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        align-items: center !important;
        align-content: center !important;
        justify-items: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 190px !important;
        padding: 12px 8px 10px !important;
        gap: 0 !important;
        flex: initial !important;
        scroll-snap-align: none !important;
    }

    #membertasks .reward-card h3 {
        display: -webkit-box !important;
        order: 1 !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #f8fdff !important;
        font-size: 20px !important;
        line-height: 1.18 !important;
        text-align: center !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    #membertasks .reward-card p.offer-media {
        order: 2 !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        width: 100% !important;
        min-height: 58px !important;
        box-sizing: border-box !important;
    }

    #membertasks .reward-card p.offer-media img,
    #membertasks .reward-card p.offer-media svg {
        width: min(58px, 82%) !important;
        max-height: 58px !important;
    }

    #membertasks .reward-card a {
        display: inline-flex !important;
        order: 3 !important;
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        justify-self: stretch !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        min-height: 40px !important;
        padding: 0 15px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        word-break: keep-all !important;
    }

    #membertasks .rail-large > .reward-card[data-loop-clone="true"],
    body[data-lang] #membertasks .rail-large > .reward-card[data-loop-clone="true"] {
        display: none !important;
    }
}

/* v1.0.35: align member task card content across desktop and mobile. */
#membertasks .reward-card {
    color: #eafcff !important;
    border-color: rgba(0, 217, 255, 0.3) !important;
    background:
        radial-gradient(circle at 84% 12%, rgba(0, 217, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(10, 31, 78, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow: 0 22px 58px rgba(0, 8, 36, 0.48), 0 0 28px rgba(0, 217, 255, 0.14) !important;
}

#membertasks .reward-card.featured,
#membertasks .reward-card:first-child {
    border-color: rgba(98, 245, 255, 0.58) !important;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 212, 61, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(0, 92, 220, 0.92), rgba(4, 16, 48, 0.98) 62%, rgba(0, 217, 255, 0.18)) !important;
    box-shadow: 0 24px 70px rgba(0, 8, 36, 0.54), 0 0 34px rgba(0, 217, 255, 0.24) !important;
}

#membertasks .reward-card h3,
#membertasks .reward-card.featured h3,
#membertasks .reward-card:first-child h3 {
    color: #ffffff !important;
    font-size: 21px !important;
    line-height: 1.24 !important;
    text-shadow: 0 0 16px rgba(0, 217, 255, 0.42) !important;
}

#membertasks .reward-card.featured h3,
#membertasks .reward-card:first-child h3 {
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.44) !important;
}

#membertasks .reward-card p.offer-media,
#membertasks .reward-card.featured p.offer-media,
#membertasks .reward-card:first-child p.offer-media {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 0 4px !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

#membertasks .reward-card p.offer-media img,
#membertasks .reward-card p.offer-media svg {
    width: clamp(114px, 9vw, 144px) !important;
    height: clamp(114px, 9vw, 144px) !important;
    max-height: none !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 18px rgba(0, 8, 36, 0.28)) !important;
}

#membertasks .reward-card a,
#membertasks .reward-card.featured a,
#membertasks .reward-card:first-child a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.66) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
}

@media (max-width: 768px) {
    #membertasks .rail-large > .reward-card,
    body[data-lang] #membertasks .rail-large > .reward-card {
        min-height: 214px !important;
        padding: 12px 8px 10px !important;
    }

    #membertasks .reward-card h3,
    #membertasks .reward-card.featured h3,
    #membertasks .reward-card:first-child h3 {
        margin: 0 0 8px !important;
        font-size: 21px !important;
        line-height: 1.24 !important;
    }

    #membertasks .reward-card p.offer-media,
    #membertasks .reward-card.featured p.offer-media,
    #membertasks .reward-card:first-child p.offer-media {
        min-height: 0 !important;
        margin: 0 0 4px !important;
        align-items: flex-end !important;
    }

    #membertasks .reward-card p.offer-media img,
    #membertasks .reward-card p.offer-media svg {
        width: min(82px, 82%) !important;
        height: min(82px, 82%) !important;
        max-height: 82px !important;
    }

    #membertasks .reward-card a,
    #membertasks .reward-card.featured a,
    #membertasks .reward-card:first-child a {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 0 12px !important;
        font-size: 16px !important;
        line-height: 1.15 !important;
        align-self: stretch !important;
        justify-self: stretch !important;
    }
}

/* v1.0.57: redesign member wallet cards as four feature highlights without images. */
#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    gap: clamp(12px, 1.7vw, 20px) !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child {
    position: relative !important;
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    justify-items: start !important;
    align-content: stretch !important;
    min-height: clamp(162px, 15vw, 206px) !important;
    padding: clamp(18px, 2vw, 24px) clamp(14px, 1.7vw, 20px) !important;
    overflow: hidden !important;
    text-align: left !important;
    border: 1px solid rgba(98, 245, 255, 0.36) !important;
    background:
        linear-gradient(135deg, rgba(98, 245, 255, 0.18), transparent 34%),
        radial-gradient(circle at 86% 14%, rgba(255, 212, 61, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(10, 31, 78, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow: 0 18px 46px rgba(0, 8, 36, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

#mycardwalletevent .lottery-rail article::before {
    content: attr(data-feature-no);
    position: absolute;
    right: clamp(10px, 1.5vw, 16px);
    bottom: -0.16em;
    z-index: 0;
    color: rgba(98, 245, 255, 0.12);
    font-size: clamp(54px, 6vw, 86px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0;
    pointer-events: none;
}

#mycardwalletevent .lottery-rail article::after {
    content: "";
    position: absolute;
    inset: auto 14px 12px 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #13dfff, #ffd43d 58%, rgba(19, 223, 255, 0));
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.34);
}

#mycardwalletevent .lottery-rail article > b {
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    margin: 0 0 clamp(14px, 1.5vw, 18px) !important;
    padding: 5px 10px !important;
    border: 1px solid rgba(98, 245, 255, 0.42) !important;
    border-radius: 999px !important;
    color: #dffbff !important;
    background: rgba(4, 13, 39, 0.62) !important;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.14) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    position: relative !important;
    z-index: 1 !important;
    align-self: start !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(22px, 2.15vw, 30px) !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.38) !important;
}

#mycardwalletevent .lottery-rail article > p {
    display: none !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(20px, 2.4vw, 30px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        gap: 7px !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child {
        min-height: 118px !important;
        padding: 10px 7px 14px !important;
    }

    #mycardwalletevent .lottery-rail article::before {
        right: 5px;
        bottom: -0.12em;
        font-size: 34px;
    }

    #mycardwalletevent .lottery-rail article::after {
        inset: auto 7px 7px 7px;
        height: 2px;
    }

    #mycardwalletevent .lottery-rail article > b {
        min-height: 0 !important;
        margin-bottom: 8px !important;
        padding: 3px 5px !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        font-size: 14px !important;
        line-height: 1.16 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 14px !important;
    }
}

/* v1.0.36: enlarge member-entry images on mobile. */
@media (max-width: 768px) {
    .member-gate-card__media {
        min-height: clamp(96px, 28vw, 128px) !important;
    }

    .member-gate-card__media img {
        width: 80% !important;
        max-width: 132px !important;
        height: auto !important;
    }
}

/* v1.0.37: remove member-entry Y/N background watermarks. */
.member-gate-card::after,
.member-gate-card:nth-child(2)::after {
    content: none !important;
    display: none !important;
}

/* v1.0.39: place the sheet-defined title image before the title/subtitle group. */
.section-heading .section-title-row {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: start !important;
    max-width: 100% !important;
    column-gap: 0 !important;
    text-align: left !important;
}

.section-heading .section-title-copy {
    min-width: 0 !important;
    text-align: left !important;
}

.section-heading .section-title-copy h2,
.section-heading .section-title-copy p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.section-heading .section-title-icon-frame {
    display: block !important;
    flex: 0 0 auto !important;
    width: clamp(64px, 9vw, 112px) !important;
    height: clamp(64px, 9vw, 112px) !important;
    max-width: clamp(64px, 9vw, 112px) !important;
    max-height: 128px !important;
    overflow: hidden !important;
}

.section-heading .section-title-icon {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: 128px !important;
    object-fit: contain !important;
}

@media (max-width: 720px) {
    .section-heading .section-title-row {
        column-gap: 0 !important;
    }

    .section-heading .section-title-icon-frame {
        max-width: 72px !important;
        max-height: 96px !important;
    }

    .section-heading .section-title-icon {
        max-width: 72px !important;
        max-height: 96px !important;
    }
}

/* v1.0.43: normalize vertical rhythm between main homepage content sections. */
main > .section:not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final) {
    margin-top: 0 !important;
    padding-top: clamp(64px, 7vw, 88px) !important;
}

@media (max-width: 720px) {
    main > .section:not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final) {
        padding-top: 48px !important;
    }
}

#limited,
#membergate,
#membertasks,
#topupbonus,
#payments,
#mycardwalletevent,
#hotgames,
#preregister,
#socialtasks,
#youtubeshorts,
#mymall,
#lottery,
#more {
    margin-top: 0 !important;
    padding-top: clamp(64px, 7vw, 88px) !important;
}

@media (max-width: 720px) {
    #limited,
    #membergate,
    #membertasks,
    #topupbonus,
    #payments,
    #mycardwalletevent,
    #hotgames,
    #preregister,
    #socialtasks,
    #youtubeshorts,
    #mymall,
    #lottery,
    #more {
        padding-top: 48px !important;
    }
}

/* v1.0.46: redesign the page background around the 202606 electric training-camp visual. */
body {
    color: #f5fdff !important;
    background:
        radial-gradient(circle at 82% 7%, rgba(0, 157, 255, 0.42) 0, rgba(0, 157, 255, 0.12) 24%, transparent 44%),
        radial-gradient(circle at 13% 18%, rgba(98, 245, 255, 0.24) 0, transparent 32%),
        radial-gradient(circle at 78% 72%, rgba(255, 196, 32, 0.14) 0, transparent 34%),
        linear-gradient(135deg, rgba(0, 217, 255, 0.13) 0 1px, transparent 1px 44px),
        linear-gradient(45deg, rgba(0, 90, 255, 0.14) 0 1px, transparent 1px 56px),
        linear-gradient(180deg, #020714 0%, #041332 30%, #061844 58%, #020817 100%) !important;
    background-attachment: fixed, fixed, fixed, fixed, fixed, fixed !important;
}

body::before {
    opacity: 0.74 !important;
    background:
        linear-gradient(90deg, rgba(98, 245, 255, 0.15) 1px, transparent 1px),
        linear-gradient(0deg, rgba(98, 245, 255, 0.1) 1px, transparent 1px),
        linear-gradient(115deg, transparent 0 28%, rgba(0, 217, 255, 0.18) 28% 28.4%, transparent 28.4% 63%, rgba(0, 90, 255, 0.14) 63% 63.35%, transparent 63.35%),
        radial-gradient(circle at 82% 15%, rgba(98, 245, 255, 0.3), transparent 23%),
        radial-gradient(circle at 18% 88%, rgba(255, 196, 32, 0.1), transparent 26%) !important;
    background-size: 48px 48px, 48px 48px, 520px 520px, auto, auto !important;
}

main > .section:not(.hero):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final) {
    background:
        linear-gradient(180deg, rgba(2, 7, 24, 0), rgba(0, 217, 255, 0.035) 52%, rgba(2, 7, 24, 0)) !important;
}

.section-heading h2,
.section-heading .section-title-copy h2 {
    text-shadow:
        0 0 14px rgba(98, 245, 255, 0.52),
        0 0 32px rgba(0, 90, 255, 0.32) !important;
}

.hero::after,
.hero-art::after {
    background: linear-gradient(180deg, rgba(2, 7, 24, 0) 0%, rgba(2, 10, 31, 0.44) 58%, #041332 100%) !important;
}

#socialtasks .social-rail-shell {
    margin-top: clamp(22px, 3vw, 34px) !important;
}

#socialtasks .social-video-rail,
body[data-lang="en"] #socialtasks .social-video-rail,
body[data-lang="id"] #socialtasks .social-video-rail,
body[data-lang="vi"] #socialtasks .social-video-rail,
body[data-lang="ja"] #socialtasks .social-video-rail,
body[data-lang="ko"] #socialtasks .social-video-rail,
body[data-lang="zh-cn"] #socialtasks .social-video-rail,
body[data-lang="th"] #socialtasks .social-video-rail {
    grid-template-rows: none !important;
    grid-auto-columns: minmax(210px, calc((100% - 54px) / 4)) !important;
}

#socialtasks .social-video-card {
    border: 1px solid rgba(98, 245, 255, 0.34) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(98, 245, 255, 0.18), transparent 54%),
        linear-gradient(180deg, rgba(11, 28, 72, 0.96), rgba(4, 15, 48, 0.98)) !important;
    box-shadow: 0 22px 52px rgba(0, 8, 36, 0.52), 0 0 24px rgba(0, 217, 255, 0.16) !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
    #socialtasks .social-video-rail,
    body[data-lang="en"] #socialtasks .social-video-rail,
    body[data-lang="id"] #socialtasks .social-video-rail,
    body[data-lang="vi"] #socialtasks .social-video-rail,
    body[data-lang="ja"] #socialtasks .social-video-rail,
    body[data-lang="ko"] #socialtasks .social-video-rail,
    body[data-lang="zh-cn"] #socialtasks .social-video-rail,
    body[data-lang="th"] #socialtasks .social-video-rail {
        grid-auto-columns: minmax(200px, calc((100% - 36px) / 3)) !important;
    }
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at 82% 8%, rgba(0, 157, 255, 0.3) 0, rgba(0, 157, 255, 0.1) 28%, transparent 48%),
            radial-gradient(circle at 12% 18%, rgba(98, 245, 255, 0.16) 0, transparent 36%),
            linear-gradient(135deg, rgba(0, 217, 255, 0.11) 0 1px, transparent 1px 38px),
            linear-gradient(180deg, #020714 0%, #041332 42%, #061844 100%) !important;
        background-attachment: scroll !important;
    }

    #socialtasks .social-rail-shell {
        margin-top: 20px !important;
    }

    #socialtasks .social-video-rail,
    body[data-lang="en"] #socialtasks .social-video-rail,
    body[data-lang="id"] #socialtasks .social-video-rail,
    body[data-lang="vi"] #socialtasks .social-video-rail,
    body[data-lang="ja"] #socialtasks .social-video-rail,
    body[data-lang="ko"] #socialtasks .social-video-rail,
    body[data-lang="zh-cn"] #socialtasks .social-video-rail,
    body[data-lang="th"] #socialtasks .social-video-rail {
        grid-template-rows: none !important;
        grid-auto-columns: minmax(156px, 47%) !important;
    }
}

/* v1.0.47: keep the former payment bonus rail inside top-up rewards. */
#topupbonus .payment-shell {
    margin-top: clamp(24px, 3vw, 36px) !important;
}

#topupbonus .payment-rail {
    scroll-margin-top: 120px;
}

@media (max-width: 768px) {
    #topupbonus .payment-shell {
        margin-top: 22px !important;
    }
}

/* v1.0.48: align mobile task cards and delay the go-top affordance. */
@media (max-width: 768px) {
    #membertasks .reward-card a,
    #membertasks .reward-card.featured a,
    #membertasks .reward-card:first-child a {
        width: 100% !important;
        min-width: 100% !important;
        min-height: 40px !important;
        padding: 8px 8px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        align-self: stretch !important;
        justify-self: stretch !important;
    }

    .section-social-tasks .social-task-shell {
        overflow: visible !important;
    }

    .section-social-tasks .social-task-rail,
    body[data-lang="en"] .section-social-tasks .social-task-rail,
    body[data-lang="id"] .section-social-tasks .social-task-rail,
    body[data-lang="vi"] .section-social-tasks .social-task-rail,
    body[data-lang="ja"] .section-social-tasks .social-task-rail,
    body[data-lang="ko"] .section-social-tasks .social-task-rail,
    body[data-lang="zh-cn"] .section-social-tasks .social-task-rail,
    body[data-lang="th"] .section-social-tasks .social-task-rail {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: initial !important;
        grid-template-rows: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        transform: none !important;
        animation: none !important;
        scroll-snap-type: none !important;
    }

    .section-social-tasks .social-task-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        align-items: center !important;
        align-content: center !important;
        justify-items: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 12px 8px 10px !important;
        gap: 0 !important;
        flex: initial !important;
        scroll-snap-align: none !important;
    }

    .section-social-tasks .social-task-card h3 {
        display: -webkit-box !important;
        order: 1 !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        width: 100% !important;
        margin: 0 0 8px !important;
        overflow: hidden !important;
        font-size: 21px !important;
        line-height: 1.24 !important;
        text-align: center !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .section-social-tasks .social-task-card .feature-media {
        order: 2 !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        align-items: flex-end !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
    }

    .section-social-tasks .social-task-card .feature-media img,
    .section-social-tasks .social-task-card .feature-media svg {
        width: min(82px, 82%) !important;
        height: min(82px, 82%) !important;
        max-height: 82px !important;
        object-fit: contain !important;
    }

    .section-social-tasks .social-task-card a {
        display: inline-flex !important;
        order: 3 !important;
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 100% !important;
        min-height: 40px !important;
        padding: 8px 8px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        white-space: normal !important;
        word-break: keep-all !important;
    }
}

/* v1.0.96: final mobile card action inset override. */
@media (max-width: 768px) {
    #membergate .member-gate-card,
    #membertasks .reward-card,
    #membertasks .rail-large > .reward-card,
    body[data-lang] #membertasks .rail-large > .reward-card,
    #limited .limited-card,
    #topupbonus .topup-rail .offer-card,
    #socialtasks .social-task-card,
    #mymall .mall-card,
    #lottery .tickets-rail article,
    #more .tickets-rail article {
        position: relative !important;
        padding-bottom: max(61px, var(--mobile-card-action-reserve, 61px)) !important;
    }

    #membergate .member-gate-card a,
    #membertasks .reward-card a,
    #limited .limited-card a,
    #topupbonus .topup-rail .offer-card a,
    #socialtasks .social-task-card a,
    #mymall .mall-card a,
    #lottery .tickets-rail article a,
    #more .tickets-rail article a {
        position: absolute !important;
        right: 9px !important;
        bottom: 17px !important;
        left: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 40px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* v1.0.96: final mobile card action inset override. */
@media (max-width: 768px) {
    #membergate .member-gate-card,
    #membertasks .reward-card,
    #membertasks .rail-large > .reward-card,
    body[data-lang] #membertasks .rail-large > .reward-card,
    #limited .limited-card,
    #topupbonus .topup-rail .offer-card,
    #socialtasks .social-task-card,
    #mymall .mall-card,
    #lottery .tickets-rail article,
    #more .tickets-rail article {
        position: relative !important;
        padding-bottom: max(61px, var(--mobile-card-action-reserve, 61px)) !important;
    }

    #membergate .member-gate-card a,
    #membertasks .reward-card a,
    #limited .limited-card a,
    #topupbonus .topup-rail .offer-card a,
    #socialtasks .social-task-card a,
    #mymall .mall-card a,
    #lottery .tickets-rail article a,
    #more .tickets-rail article a {
        position: absolute !important;
        right: 9px !important;
        bottom: 17px !important;
        left: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 40px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* v1.0.96: normalize mobile card action inset for cards with standalone buttons. */
@media (max-width: 768px) {
    #membergate .member-gate-card,
    #membertasks .reward-card,
    #limited .limited-card,
    #topupbonus .topup-rail .offer-card,
    #socialtasks .social-task-card,
    #mymall .mall-card,
    #lottery .tickets-rail article,
    #more .tickets-rail article {
        position: relative !important;
        padding-bottom: max(61px, var(--mobile-card-action-reserve, 61px)) !important;
    }

    #membergate .member-gate-card a,
    #membertasks .reward-card a,
    #limited .limited-card a,
    #topupbonus .topup-rail .offer-card a,
    #socialtasks .social-task-card a,
    #mymall .mall-card a,
    #lottery .tickets-rail article a,
    #more .tickets-rail article a {
        position: absolute !important;
        right: 9px !important;
        bottom: 17px !important;
        left: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 40px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

.side-nav .back-top {
    color: #f7fdff !important;
    border: 1px solid rgba(98, 245, 255, 0.58) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(10px) scale(0.96) !important;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease !important;
}

body.is-back-top-visible .side-nav .back-top {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

/* v1.0.49: remove legacy section bottom padding so homepage spacing stays even. */
.section-green,
.section-rice {
    padding-bottom: 0 !important;
}

/* v1.0.50: add the member campaign participation progress guide. */
#eventjourney {
    margin-top: 0 !important;
    padding-top: clamp(64px, 7vw, 88px) !important;
    padding-bottom: 0 !important;
}

#eventjourney + #membergate {
    padding-top: 0 !important;
}

.journey-progress {
    position: relative;
    isolation: isolate;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.journey-progress::before {
    content: "";
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: calc((clamp(54px, 5.2vw, 66px) / 2) - 2px);
    z-index: 0;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(19, 223, 255, 0.22), rgba(19, 223, 255, 0.92) 42%, rgba(255, 212, 61, 0.94) 100%);
    box-shadow: 0 0 22px rgba(0, 217, 255, 0.45);
}

.journey-progress__list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.journey-progress__item {
    position: relative;
    display: grid;
    justify-items: center;
    min-height: 132px;
    padding: 0 10px 14px;
    text-align: center;
}

.journey-progress__link {
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    gap: 12px;
    width: 100%;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.journey-progress__link:hover .journey-progress__marker,
.journey-progress__link:focus-visible .journey-progress__marker {
    transform: translateY(-2px);
}

.journey-progress__marker {
    display: grid;
    place-items: center;
    width: clamp(54px, 5.2vw, 66px);
    height: clamp(54px, 5.2vw, 66px);
    border: 2px solid rgba(98, 245, 255, 0.72);
    border-radius: 18px;
    color: #06102d;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%);
    box-shadow: 0 8px 0 rgba(150, 82, 0, 0.52), 0 0 28px rgba(255, 212, 61, 0.44);
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 900;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-progress__item strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1em;
    color: #ffd448;
    background: linear-gradient(180deg, #fff678 0%, #ffd448 46%, #ffb21f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(17px, 1.8vw, 24px);
    font-weight: 900;
    line-height: 1.18;
    text-shadow:
        0 0 12px rgba(255, 212, 61, 0.42),
        0 0 18px rgba(255, 178, 31, 0.24);
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    #eventjourney {
        padding-top: 48px !important;
        padding-bottom: 0 !important;
    }

    #eventjourney + #membergate {
        padding-top: 16px !important;
    }

    .journey-progress {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        overflow: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .journey-progress::-webkit-scrollbar {
        display: none;
    }

    .journey-progress::before {
        left: 12.5%;
        right: 12.5%;
        top: 20px;
        width: auto;
    }

    .journey-progress__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        min-width: 0;
    }

    .journey-progress__item {
        min-height: 88px;
        padding: 0;
    }

    .journey-progress__link {
        gap: 7px;
    }

    .journey-progress__marker {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 14px;
        box-shadow: 0 5px 0 rgba(150, 82, 0, 0.52), 0 0 20px rgba(255, 212, 61, 0.36);
    }

    .journey-progress__item strong {
        min-height: 3.2em;
        font-size: 12px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }
}

/* v1.0.56: present member point redemption as four features with one shared action. */
#mycardwalletevent .lottery-shell {
    overflow: visible !important;
}

#mycardwalletevent .lottery-rail,
body[data-lang="en"] #mycardwalletevent .lottery-rail,
body[data-lang="id"] #mycardwalletevent .lottery-rail,
body[data-lang="vi"] #mycardwalletevent .lottery-rail,
body[data-lang="ja"] #mycardwalletevent .lottery-rail,
body[data-lang="ko"] #mycardwalletevent .lottery-rail,
body[data-lang="zh-cn"] #mycardwalletevent .lottery-rail,
body[data-lang="th"] #mycardwalletevent .lottery-rail {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    cursor: default !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child {
    display: grid !important;
    grid-template-rows: auto auto 1fr !important;
    justify-items: center !important;
    align-content: start !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 14px 16px !important;
    text-align: center !important;
    scroll-snap-align: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    min-height: 0 !important;
    margin: 0 0 12px !important;
    font-size: clamp(17px, 1.75vw, 22px) !important;
    line-height: 1.18 !important;
}

#mycardwalletevent .lottery-rail .feature-media,
#mycardwalletevent .lottery-rail article.featured .feature-media,
#mycardwalletevent .lottery-rail article:first-child .feature-media {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

#mycardwalletevent .lottery-rail .feature-media img {
    width: min(100%, 150px) !important;
    max-height: 190px !important;
    border-radius: 14px !important;
    object-fit: contain !important;
}

#mycardwalletevent .wallet-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

#mycardwalletevent .wallet-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 188px;
    min-height: 50px;
    padding: 12px 30px;
    border: 1px solid rgba(98, 245, 255, 0.66);
    border-radius: 999px;
    color: #f7fdff;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%);
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child {
        padding: 10px 6px !important;
    }

    #mycardwalletevent .lottery-rail article > b {
        padding: 4px 6px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        margin-bottom: 8px !important;
        font-size: 13px !important;
        line-height: 1.18 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .lottery-rail .feature-media img {
        width: min(100%, 70px) !important;
        max-height: 92px !important;
        border-radius: 10px !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 16px;
    }

    #mycardwalletevent .wallet-actions a {
        width: min(100%, 260px);
        min-height: 44px;
    }
}

/* v1.0.58: turn member wallet into an open 2x2 feature matrix. */
#mycardwalletevent .lottery-shell {
    padding: clamp(8px, 1vw, 12px) 0 0 !important;
    overflow: visible !important;
}

#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    position: relative !important;
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(18px, 2.4vw, 28px) clamp(22px, 3vw, 36px) !important;
    width: min(100%, 920px) !important;
    margin-inline: auto !important;
    padding: clamp(8px, 1.4vw, 16px) 0 !important;
    overflow: visible !important;
    cursor: default !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
}

#mycardwalletevent .lottery-rail::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(98, 245, 255, 0.52), rgba(255, 212, 61, 0.5), transparent);
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.26);
    pointer-events: none;
}

#mycardwalletevent .lottery-rail::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(98, 245, 255, 0.42), rgba(255, 212, 61, 0.42), transparent);
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.22);
    pointer-events: none;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child {
    position: relative !important;
    display: grid !important;
    grid-template-columns: clamp(52px, 5vw, 70px) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-items: stretch !important;
    column-gap: clamp(12px, 1.7vw, 18px) !important;
    min-width: 0 !important;
    min-height: clamp(96px, 10vw, 128px) !important;
    height: auto !important;
    padding: clamp(10px, 1.5vw, 16px) clamp(8px, 1.2vw, 14px) !important;
    overflow: visible !important;
    text-align: left !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scroll-snap-align: none !important;
}

#mycardwalletevent .lottery-rail article::before {
    content: attr(data-feature-no);
    position: static !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(52px, 5vw, 70px) !important;
    height: clamp(52px, 5vw, 70px) !important;
    border: 1px solid rgba(98, 245, 255, 0.62) !important;
    border-radius: 20px !important;
    color: #06102d !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 56%, #ff9f1c 100%) !important;
    box-shadow: 0 8px 0 rgba(150, 82, 0, 0.42), 0 0 26px rgba(255, 212, 61, 0.34) !important;
    font-size: clamp(18px, 2vw, 26px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

#mycardwalletevent .lottery-rail article::after {
    content: "";
    position: absolute !important;
    inset: auto auto 10px calc(clamp(52px, 5vw, 70px) + clamp(12px, 1.7vw, 18px) + 8px) !important;
    width: min(120px, 46%) !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #13dfff, rgba(255, 212, 61, 0.92), transparent) !important;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.26) !important;
}

#mycardwalletevent .lottery-rail article > b {
    display: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    position: relative !important;
    z-index: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(25px, 2.5vw, 34px) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.42) !important;
}

#mycardwalletevent .lottery-rail article > p {
    display: none !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(14px, 2vw, 24px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 12px !important;
        width: 100% !important;
        padding: 8px 0 !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        column-gap: 8px !important;
        min-height: 78px !important;
        padding: 8px 2px !important;
    }

    #mycardwalletevent .lottery-rail article::before {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        box-shadow: 0 5px 0 rgba(150, 82, 0, 0.42), 0 0 18px rgba(255, 212, 61, 0.28) !important;
    }

    #mycardwalletevent .lottery-rail article::after {
        inset: auto auto 4px 48px !important;
        width: 54px !important;
        height: 2px !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        font-size: 17px !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 12px !important;
    }
}

/* v1.0.59: rebuild member wallet as a softer HUD feature field. */
#mycardwalletevent .lottery-shell {
    position: relative !important;
    isolation: isolate !important;
    width: min(100%, 1040px) !important;
    margin: 0 auto !important;
    padding: clamp(18px, 2.4vw, 30px) clamp(14px, 2.2vw, 28px) clamp(12px, 1.6vw, 20px) !important;
    overflow: visible !important;
}

#mycardwalletevent .lottery-shell::before {
    content: "";
    position: absolute;
    inset: 0 clamp(8px, 1.5vw, 18px);
    z-index: -1;
    background:
        radial-gradient(circle at 16% 0%, rgba(98, 245, 255, 0.2), transparent 30%),
        radial-gradient(circle at 86% 100%, rgba(255, 212, 61, 0.16), transparent 30%),
        linear-gradient(90deg, transparent, rgba(19, 223, 255, 0.08) 18%, rgba(19, 223, 255, 0.1) 82%, transparent);
    filter: blur(0);
    opacity: 0.95;
    pointer-events: none;
}

#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    gap: clamp(20px, 2.7vw, 34px) clamp(30px, 4vw, 56px) !important;
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    cursor: default !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
}

#mycardwalletevent .lottery-rail::before,
#mycardwalletevent .lottery-rail::after {
    display: none !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-items: start !important;
    min-width: 0 !important;
    min-height: clamp(112px, 10vw, 142px) !important;
    height: auto !important;
    padding: clamp(14px, 1.8vw, 20px) clamp(12px, 1.8vw, 22px) clamp(18px, 2vw, 24px) clamp(72px, 7vw, 100px) !important;
    overflow: visible !important;
    text-align: left !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, rgba(5, 23, 66, 0.78), rgba(5, 23, 66, 0.28) 62%, transparent),
        linear-gradient(180deg, rgba(98, 245, 255, 0.1), transparent 70%) !important;
    box-shadow: none !important;
    scroll-snap-align: none !important;
}

#mycardwalletevent .lottery-rail article:nth-child(even),
#mycardwalletevent .lottery-rail article.featured:nth-child(even),
#mycardwalletevent .lottery-rail article:first-child:nth-child(even) {
    background:
        linear-gradient(90deg, rgba(5, 23, 66, 0.64), rgba(5, 23, 66, 0.22) 58%, transparent),
        linear-gradient(180deg, rgba(255, 212, 61, 0.09), transparent 72%) !important;
}

#mycardwalletevent .lottery-rail article::before {
    content: attr(data-feature-no);
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: rgba(98, 245, 255, 0.16) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: clamp(58px, 6.2vw, 88px) !important;
    font-weight: 900 !important;
    line-height: 0.85 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 0 24px rgba(0, 217, 255, 0.26) !important;
    transform: translateY(-50%) !important;
}

#mycardwalletevent .lottery-rail article::after {
    content: "";
    position: absolute !important;
    left: clamp(72px, 7vw, 100px) !important;
    right: clamp(16px, 2vw, 28px) !important;
    bottom: clamp(8px, 1vw, 12px) !important;
    width: auto !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, rgba(19, 223, 255, 0.86), rgba(255, 212, 61, 0.72), transparent) !important;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.24) !important;
}

#mycardwalletevent .lottery-rail article > b,
#mycardwalletevent .lottery-rail article > p {
    display: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    position: relative !important;
    z-index: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #f7fdff !important;
    font-size: clamp(24px, 2.25vw, 34px) !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.34) !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(16px, 2.2vw, 28px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell {
        padding: 14px 2px 8px !important;
    }

    #mycardwalletevent .lottery-shell::before {
        inset: 2px 0;
        opacity: 0.78;
    }

    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 10px !important;
        max-width: none !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child {
        min-height: 86px !important;
        padding: 10px 8px 13px 44px !important;
        background:
            linear-gradient(90deg, rgba(5, 23, 66, 0.72), rgba(5, 23, 66, 0.18) 74%, transparent),
            linear-gradient(180deg, rgba(98, 245, 255, 0.08), transparent 70%) !important;
    }

    #mycardwalletevent .lottery-rail article::before {
        font-size: 37px !important;
        left: 0 !important;
        color: rgba(98, 245, 255, 0.2) !important;
    }

    #mycardwalletevent .lottery-rail article::after {
        left: 44px !important;
        right: 8px !important;
        bottom: 6px !important;
        height: 2px !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        font-size: 17px !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 10px !important;
    }
}

/* v1.0.60: rebuild member wallet as a central energy hub with four feature nodes. */
#mycardwalletevent .lottery-shell {
    position: relative !important;
    isolation: isolate !important;
    width: min(100%, 1080px) !important;
    margin: 0 auto !important;
    padding: clamp(24px, 3vw, 38px) clamp(10px, 2vw, 24px) clamp(8px, 1vw, 12px) !important;
    overflow: visible !important;
}

#mycardwalletevent .lottery-shell::before {
    content: "";
    position: absolute;
    inset: 10% 8%;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 50%, rgba(19, 223, 255, 0.22), transparent 22%),
        radial-gradient(circle at 50% 50%, rgba(255, 212, 61, 0.14), transparent 38%),
        linear-gradient(90deg, transparent, rgba(98, 245, 255, 0.08) 20%, rgba(98, 245, 255, 0.08) 80%, transparent);
    opacity: 0.95;
    pointer-events: none;
}

#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    gap: clamp(30px, 4vw, 48px) clamp(148px, 17vw, 210px) !important;
    width: 100% !important;
    max-width: 1020px !important;
    margin: 0 auto !important;
    padding: clamp(8px, 1vw, 12px) 0 !important;
    overflow: visible !important;
    cursor: default !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
}

#mycardwalletevent .lottery-rail::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    display: block !important;
    width: clamp(104px, 10vw, 136px);
    height: clamp(104px, 10vw, 136px);
    border: 1px solid rgba(98, 245, 255, 0.72);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 246, 120, 0.96), rgba(255, 197, 31, 0.78) 30%, rgba(19, 223, 255, 0.34) 52%, rgba(5, 23, 66, 0.42) 72%, transparent 73%),
        conic-gradient(from 20deg, rgba(19, 223, 255, 0.1), rgba(98, 245, 255, 0.7), rgba(255, 212, 61, 0.8), rgba(19, 223, 255, 0.1));
    box-shadow: 0 0 34px rgba(0, 217, 255, 0.34), 0 0 54px rgba(255, 212, 61, 0.22);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#mycardwalletevent .lottery-rail::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    display: block !important;
    width: clamp(146px, 14vw, 188px);
    height: clamp(146px, 14vw, 188px);
    border: 1px solid rgba(98, 245, 255, 0.22);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(98, 245, 255, 0.36) 50%, transparent calc(50% + 1px)),
        linear-gradient(0deg, transparent calc(50% - 1px), rgba(98, 245, 255, 0.24) 50%, transparent calc(50% + 1px));
    box-shadow: inset 0 0 28px rgba(0, 217, 255, 0.12);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: stretch !important;
    min-width: 0 !important;
    min-height: clamp(110px, 10vw, 132px) !important;
    height: auto !important;
    padding: clamp(14px, 1.6vw, 18px) 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scroll-snap-align: none !important;
}

#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article.featured:nth-child(odd),
#mycardwalletevent .lottery-rail article:first-child:nth-child(odd) {
    padding-right: clamp(36px, 4vw, 58px) !important;
    text-align: right !important;
}

#mycardwalletevent .lottery-rail article:nth-child(even),
#mycardwalletevent .lottery-rail article.featured:nth-child(even),
#mycardwalletevent .lottery-rail article:first-child:nth-child(even) {
    padding-left: clamp(36px, 4vw, 58px) !important;
    text-align: left !important;
}

#mycardwalletevent .lottery-rail article::before {
    content: attr(data-feature-no);
    position: absolute !important;
    top: 50% !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(40px, 4.2vw, 54px) !important;
    height: clamp(40px, 4.2vw, 54px) !important;
    border: 1px solid rgba(98, 245, 255, 0.58) !important;
    border-radius: 16px !important;
    color: #06102d !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow: 0 6px 0 rgba(150, 82, 0, 0.44), 0 0 22px rgba(255, 212, 61, 0.32) !important;
    font-size: clamp(14px, 1.55vw, 19px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
}

#mycardwalletevent .lottery-rail article:nth-child(odd)::before {
    right: 0 !important;
    left: auto !important;
}

#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    left: 0 !important;
    right: auto !important;
}

#mycardwalletevent .lottery-rail article::after {
    content: "";
    position: absolute !important;
    top: 50% !important;
    width: clamp(42px, 5vw, 64px) !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, rgba(19, 223, 255, 0), rgba(19, 223, 255, 0.85), rgba(255, 212, 61, 0.82)) !important;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.28) !important;
    transform: translateY(-50%) !important;
}

#mycardwalletevent .lottery-rail article:nth-child(odd)::after {
    right: calc(clamp(40px, 4.2vw, 54px) + 8px) !important;
    left: auto !important;
}

#mycardwalletevent .lottery-rail article:nth-child(even)::after {
    left: calc(clamp(40px, 4.2vw, 54px) + 8px) !important;
    right: auto !important;
    background: linear-gradient(90deg, rgba(255, 212, 61, 0.82), rgba(19, 223, 255, 0.85), rgba(19, 223, 255, 0)) !important;
}

#mycardwalletevent .lottery-rail article > b,
#mycardwalletevent .lottery-rail article > p {
    display: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    position: relative !important;
    z-index: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(24px, 2.25vw, 32px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.42) !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(12px, 1.7vw, 20px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell {
        padding: 12px 0 6px !important;
    }

    #mycardwalletevent .lottery-shell::before {
        inset: 0;
        opacity: 0.62;
    }

    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 12px !important;
        max-width: none !important;
        padding: 0 !important;
    }

    #mycardwalletevent .lottery-rail::before,
    #mycardwalletevent .lottery-rail::after {
        display: none !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        min-height: 88px !important;
        padding: 6px 0 8px 42px !important;
        text-align: left !important;
    }

    #mycardwalletevent .lottery-rail article::before,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::before,
    #mycardwalletevent .lottery-rail article:nth-child(even)::before {
        left: 0 !important;
        right: auto !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
        box-shadow: 0 4px 0 rgba(150, 82, 0, 0.42), 0 0 16px rgba(255, 212, 61, 0.28) !important;
    }

    #mycardwalletevent .lottery-rail article::after,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::after,
    #mycardwalletevent .lottery-rail article:nth-child(even)::after {
        left: 42px !important;
        right: 4px !important;
        top: auto !important;
        bottom: 0 !important;
        width: auto !important;
        height: 2px !important;
        background: linear-gradient(90deg, rgba(19, 223, 255, 0.84), rgba(255, 212, 61, 0.68), transparent) !important;
        transform: none !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        font-size: 17px !important;
        line-height: 1.14 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 10px !important;
    }
}

/* v1.0.61 final card layout: member wallet cards after all older experiments. */
#mycardwalletevent .lottery-shell {
    position: relative !important;
    isolation: auto !important;
    width: min(100%, 980px) !important;
    margin: 0 auto !important;
    padding: clamp(12px, 1.8vw, 18px) 0 0 !important;
    overflow: visible !important;
}

#mycardwalletevent .lottery-shell::before,
#mycardwalletevent .lottery-rail::before,
#mycardwalletevent .lottery-rail::after {
    display: none !important;
}

#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    gap: clamp(14px, 2vw, 22px) !important;
    width: 100% !important;
    max-width: 940px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    cursor: default !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: clamp(12px, 1.7vw, 18px) !important;
    min-width: 0 !important;
    min-height: clamp(122px, 12vw, 156px) !important;
    height: auto !important;
    padding: clamp(18px, 2vw, 24px) clamp(16px, 2vw, 24px) !important;
    overflow: hidden !important;
    text-align: left !important;
    border: 1px solid rgba(98, 245, 255, 0.38) !important;
    border-radius: 12px !important;
    background:
        radial-gradient(circle at 92% 10%, rgba(98, 245, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(8, 33, 86, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow: 0 18px 42px rgba(0, 8, 36, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    scroll-snap-align: none !important;
}

#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child {
    border-color: rgba(255, 212, 61, 0.56) !important;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 212, 61, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(0, 92, 220, 0.92), rgba(4, 13, 39, 0.98) 66%, rgba(0, 217, 255, 0.14)) !important;
    box-shadow: 0 20px 52px rgba(0, 8, 36, 0.5), 0 0 28px rgba(255, 212, 61, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    content: attr(data-feature-no);
    position: static !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(46px, 4.8vw, 62px) !important;
    height: clamp(46px, 4.8vw, 62px) !important;
    border: 1px solid rgba(98, 245, 255, 0.7) !important;
    border-radius: 16px !important;
    color: #06102d !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow: 0 7px 0 rgba(150, 82, 0, 0.46), 0 0 22px rgba(255, 212, 61, 0.32) !important;
    font-size: clamp(15px, 1.65vw, 21px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: none !important;
}

#mycardwalletevent .lottery-rail article::after,
#mycardwalletevent .lottery-rail article:nth-child(odd)::after,
#mycardwalletevent .lottery-rail article:nth-child(even)::after {
    content: "";
    position: absolute !important;
    left: clamp(16px, 2vw, 24px) !important;
    right: clamp(16px, 2vw, 24px) !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #13dfff, rgba(255, 212, 61, 0.86), rgba(19, 223, 255, 0)) !important;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.24) !important;
    transform: none !important;
}

#mycardwalletevent .lottery-rail article > b,
#mycardwalletevent .lottery-rail article > p {
    display: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    position: relative !important;
    z-index: 1 !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
    color: #ffffff !important;
    font-size: clamp(23px, 2.15vw, 31px) !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.38) !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(18px, 2.2vw, 26px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell {
        width: 100% !important;
        padding-top: 10px !important;
    }

    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        max-width: none !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        column-gap: 8px !important;
        min-height: 104px !important;
        padding: 12px 8px 14px !important;
        border-radius: 10px !important;
    }

    #mycardwalletevent .lottery-rail article::before,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::before,
    #mycardwalletevent .lottery-rail article:nth-child(even)::before {
        width: 34px !important;
        height: 34px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
        box-shadow: 0 4px 0 rgba(150, 82, 0, 0.42), 0 0 16px rgba(255, 212, 61, 0.28) !important;
    }

    #mycardwalletevent .lottery-rail article::after,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::after,
    #mycardwalletevent .lottery-rail article:nth-child(even)::after {
        left: 8px !important;
        right: 8px !important;
        bottom: 7px !important;
        height: 2px !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        margin-bottom: 4px !important;
        font-size: 17px !important;
        line-height: 1.14 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 12px !important;
    }
}

/* v1.0.62: member wallet as vertical step cards. */
#mycardwalletevent .lottery-shell {
    position: relative !important;
    isolation: isolate !important;
    width: min(100%, 900px) !important;
    margin: 0 auto !important;
    padding: clamp(12px, 1.8vw, 20px) 0 0 !important;
    overflow: visible !important;
}

#mycardwalletevent .lottery-shell::before,
#mycardwalletevent .lottery-rail::after {
    display: none !important;
}

#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    gap: clamp(12px, 1.6vw, 18px) !important;
    width: 100% !important;
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 0 0 0 clamp(58px, 6vw, 76px) !important;
    overflow: visible !important;
    cursor: default !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
}

#mycardwalletevent .lottery-rail::before {
    content: "";
    position: absolute !important;
    display: block !important;
    left: clamp(24px, 2.7vw, 34px) !important;
    top: clamp(31px, 3.6vw, 43px) !important;
    bottom: clamp(31px, 3.6vw, 43px) !important;
    width: 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ffd43d 0%, #13dfff 46%, rgba(19, 223, 255, 0.2) 100%) !important;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.36), 0 0 24px rgba(255, 212, 61, 0.18) !important;
    pointer-events: none !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: clamp(92px, 8.8vw, 118px) !important;
    height: auto !important;
    padding: clamp(18px, 2vw, 24px) clamp(18px, 2.4vw, 28px) !important;
    overflow: visible !important;
    text-align: left !important;
    border: 1px solid rgba(98, 245, 255, 0.36) !important;
    border-radius: 12px !important;
    background:
        radial-gradient(circle at 96% 18%, rgba(98, 245, 255, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(8, 33, 86, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow: 0 16px 38px rgba(0, 8, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    scroll-snap-align: none !important;
}

#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child {
    border-color: rgba(255, 212, 61, 0.58) !important;
    background:
        radial-gradient(circle at 96% 18%, rgba(255, 212, 61, 0.2), transparent 30%),
        linear-gradient(135deg, rgba(0, 92, 220, 0.92), rgba(4, 13, 39, 0.98) 68%, rgba(0, 217, 255, 0.14)) !important;
    box-shadow: 0 18px 46px rgba(0, 8, 36, 0.48), 0 0 26px rgba(255, 212, 61, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    content: attr(data-feature-no);
    position: absolute !important;
    left: calc((clamp(58px, 6vw, 76px) * -1) + clamp(24px, 2.7vw, 34px) - clamp(22px, 2.35vw, 29px) + 2px) !important;
    top: 50% !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(44px, 4.7vw, 58px) !important;
    height: clamp(44px, 4.7vw, 58px) !important;
    border: 2px solid rgba(98, 245, 255, 0.72) !important;
    border-radius: 16px !important;
    color: #06102d !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow: 0 7px 0 rgba(150, 82, 0, 0.45), 0 0 22px rgba(255, 212, 61, 0.34) !important;
    font-size: clamp(15px, 1.6vw, 20px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
}

#mycardwalletevent .lottery-rail article::after,
#mycardwalletevent .lottery-rail article:nth-child(odd)::after,
#mycardwalletevent .lottery-rail article:nth-child(even)::after {
    content: "";
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: clamp(20px, 2.4vw, 30px) !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #ffd43d, #13dfff) !important;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.3) !important;
    transform: translate(calc(-100% - 1px), -50%) !important;
}

#mycardwalletevent .lottery-rail article > b,
#mycardwalletevent .lottery-rail article > p {
    display: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    position: relative !important;
    z-index: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(22px, 2vw, 30px) !important;
    font-weight: 900 !important;
    line-height: 1.14 !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.38) !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(18px, 2.2vw, 26px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell {
        width: 100% !important;
        padding-top: 10px !important;
    }

    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        gap: 10px !important;
        max-width: none !important;
        padding-left: 48px !important;
    }

    #mycardwalletevent .lottery-rail::before {
        left: 19px !important;
        top: 26px !important;
        bottom: 26px !important;
        width: 3px !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        min-height: 82px !important;
        padding: 13px 12px !important;
        border-radius: 10px !important;
    }

    #mycardwalletevent .lottery-rail article::before,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::before,
    #mycardwalletevent .lottery-rail article:nth-child(even)::before {
        left: -46px !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        box-shadow: 0 4px 0 rgba(150, 82, 0, 0.42), 0 0 16px rgba(255, 212, 61, 0.28) !important;
    }

    #mycardwalletevent .lottery-rail article::after,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::after,
    #mycardwalletevent .lottery-rail article:nth-child(even)::after {
        width: 10px !important;
        height: 2px !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        font-size: 17px !important;
        line-height: 1.14 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 12px !important;
    }
}

/* v1.0.63: member wallet as a flowchart instead of cards or a timeline. */
#mycardwalletevent .lottery-shell {
    position: relative !important;
    isolation: isolate !important;
    width: min(100%, 1100px) !important;
    margin: 0 auto !important;
    padding: clamp(18px, 2.4vw, 28px) 0 0 !important;
    overflow: visible !important;
}

#mycardwalletevent .lottery-shell::before {
    content: "";
    position: absolute;
    inset: 22% 5% auto 5%;
    z-index: -1;
    height: 56%;
    border-radius: 999px;
    background: radial-gradient(ellipse at 50% 50%, rgba(19, 223, 255, 0.14), transparent 64%);
    pointer-events: none;
}

#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    gap: clamp(16px, 2vw, 26px) !important;
    width: 100% !important;
    max-width: 1060px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    cursor: default !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
}

#mycardwalletevent .lottery-rail::before {
    content: "";
    position: absolute !important;
    display: block !important;
    left: calc(12.5% + 28px) !important;
    right: calc(12.5% + 28px) !important;
    top: clamp(31px, 3.2vw, 39px) !important;
    height: 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #ffd43d 0%, #13dfff 34%, #13dfff 68%, rgba(255, 212, 61, 0.9) 100%) !important;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.34) !important;
    pointer-events: none !important;
}

#mycardwalletevent .lottery-rail::after {
    display: none !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr !important;
    justify-items: center !important;
    align-items: start !important;
    gap: 14px !important;
    min-width: 0 !important;
    min-height: clamp(164px, 15vw, 202px) !important;
    height: auto !important;
    padding: 0 0 clamp(16px, 1.7vw, 22px) !important;
    overflow: visible !important;
    text-align: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scroll-snap-align: none !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    content: attr(data-feature-no);
    position: static !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(58px, 6vw, 72px) !important;
    height: clamp(58px, 6vw, 72px) !important;
    border: 2px solid rgba(98, 245, 255, 0.76) !important;
    border-radius: 20px !important;
    color: #06102d !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow: 0 8px 0 rgba(150, 82, 0, 0.48), 0 0 24px rgba(255, 212, 61, 0.34) !important;
    font-size: clamp(17px, 1.8vw, 22px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: none !important;
}

#mycardwalletevent .lottery-rail article::after,
#mycardwalletevent .lottery-rail article:nth-child(odd)::after,
#mycardwalletevent .lottery-rail article:nth-child(even)::after {
    content: "›";
    position: absolute !important;
    left: auto !important;
    right: calc(clamp(16px, 2vw, 26px) * -0.92) !important;
    top: clamp(15px, 1.7vw, 22px) !important;
    bottom: auto !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(28px, 3vw, 36px) !important;
    height: clamp(28px, 3vw, 36px) !important;
    border: 1px solid rgba(98, 245, 255, 0.46) !important;
    border-radius: 999px !important;
    color: #fff678 !important;
    background: rgba(5, 23, 66, 0.86) !important;
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.24) !important;
    font-size: clamp(22px, 2.5vw, 30px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: none !important;
}

#mycardwalletevent .lottery-rail article:nth-child(4)::after {
    display: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    min-height: clamp(88px, 8vw, 112px) !important;
    margin: 0 !important;
    padding: clamp(14px, 1.6vw, 20px) clamp(10px, 1.3vw, 16px) !important;
    border: 1px solid rgba(98, 245, 255, 0.36) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    background:
        radial-gradient(circle at 90% 12%, rgba(98, 245, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(8, 33, 86, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow: 0 16px 36px rgba(0, 8, 36, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    font-size: clamp(19px, 1.8vw, 25px) !important;
    font-weight: 900 !important;
    line-height: 1.16 !important;
    text-align: center !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.36) !important;
}

#mycardwalletevent .lottery-rail article:first-child h3 {
    border-color: rgba(255, 212, 61, 0.56) !important;
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 212, 61, 0.2), transparent 34%),
        linear-gradient(135deg, rgba(0, 92, 220, 0.92), rgba(4, 13, 39, 0.98) 68%, rgba(0, 217, 255, 0.14)) !important;
}

#mycardwalletevent .lottery-rail article > b,
#mycardwalletevent .lottery-rail article > p {
    display: none !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(14px, 2vw, 24px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell {
        width: 100% !important;
        padding-top: 10px !important;
    }

    #mycardwalletevent .lottery-shell::before {
        display: none !important;
    }

    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 18px !important;
        max-width: none !important;
        padding: 0 !important;
    }

    #mycardwalletevent .lottery-rail::before {
        left: 25% !important;
        right: 25% !important;
        top: 24px !important;
        height: 3px !important;
        width: auto !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        min-height: 128px !important;
        gap: 9px !important;
        padding: 0 0 8px !important;
    }

    #mycardwalletevent .lottery-rail article::before,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::before,
    #mycardwalletevent .lottery-rail article:nth-child(even)::before {
        width: 46px !important;
        height: 46px !important;
        border-radius: 14px !important;
        font-size: 14px !important;
        box-shadow: 0 5px 0 rgba(150, 82, 0, 0.42), 0 0 16px rgba(255, 212, 61, 0.28) !important;
    }

    #mycardwalletevent .lottery-rail article::after,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::after,
    #mycardwalletevent .lottery-rail article:nth-child(even)::after {
        right: -17px !important;
        top: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 22px !important;
    }

    #mycardwalletevent .lottery-rail article:nth-child(2)::after {
        content: "⌄" !important;
        right: auto !important;
        left: 50% !important;
        top: auto !important;
        bottom: -17px !important;
        transform: translateX(-50%) !important;
    }

    #mycardwalletevent .lottery-rail article:nth-child(4)::after {
        display: none !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        min-height: 76px !important;
        padding: 10px 8px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        line-height: 1.14 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 12px !important;
    }
}

/* v1.0.64: wallet advantages left and mascot visual right. */
#mycardwalletevent .lottery-shell {
    position: relative !important;
    isolation: isolate !important;
    display: grid !important;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr) !important;
    align-items: center !important;
    gap: clamp(22px, 4vw, 52px) !important;
    width: min(100%, 1080px) !important;
    margin: 0 auto !important;
    padding: clamp(18px, 2.5vw, 30px) 0 0 !important;
    overflow: visible !important;
}

#mycardwalletevent .lottery-shell::before {
    content: "";
    position: absolute;
    inset: 10% 0 4% 0;
    z-index: -1;
    border-radius: 28px;
    background:
        radial-gradient(circle at 76% 50%, rgba(255, 212, 61, 0.14), transparent 24%),
        radial-gradient(circle at 20% 18%, rgba(19, 223, 255, 0.14), transparent 28%),
        linear-gradient(90deg, rgba(5, 23, 66, 0.28), rgba(5, 23, 66, 0.1), transparent);
    pointer-events: none;
}

#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    gap: clamp(10px, 1.3vw, 14px) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    cursor: default !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
}

#mycardwalletevent .lottery-rail::before,
#mycardwalletevent .lottery-rail::after {
    display: none !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: clamp(42px, 4vw, 54px) minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: clamp(12px, 1.8vw, 18px) !important;
    min-width: 0 !important;
    min-height: clamp(76px, 6.8vw, 92px) !important;
    height: auto !important;
    padding: clamp(12px, 1.5vw, 16px) clamp(14px, 1.8vw, 20px) !important;
    overflow: hidden !important;
    text-align: left !important;
    border: 1px solid rgba(98, 245, 255, 0.34) !important;
    border-radius: 12px !important;
    background:
        radial-gradient(circle at 96% 14%, rgba(98, 245, 255, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(8, 33, 86, 0.94), rgba(4, 13, 39, 0.98)) !important;
    box-shadow: 0 14px 32px rgba(0, 8, 36, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    scroll-snap-align: none !important;
}

#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child {
    border-color: rgba(255, 212, 61, 0.52) !important;
    background:
        radial-gradient(circle at 96% 14%, rgba(255, 212, 61, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(0, 92, 220, 0.9), rgba(4, 13, 39, 0.98) 70%, rgba(0, 217, 255, 0.12)) !important;
    box-shadow: 0 16px 38px rgba(0, 8, 36, 0.42), 0 0 22px rgba(255, 212, 61, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    content: attr(data-feature-no);
    position: static !important;
    display: grid !important;
    place-items: center !important;
    width: clamp(42px, 4vw, 54px) !important;
    height: clamp(42px, 4vw, 54px) !important;
    border: 1px solid rgba(98, 245, 255, 0.72) !important;
    border-radius: 15px !important;
    color: #06102d !important;
    background: linear-gradient(180deg, #fff678 0%, #ffc51f 58%, #ff9f1c 100%) !important;
    box-shadow: 0 6px 0 rgba(150, 82, 0, 0.44), 0 0 20px rgba(255, 212, 61, 0.3) !important;
    font-size: clamp(14px, 1.35vw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: none !important;
}

#mycardwalletevent .lottery-rail article::after,
#mycardwalletevent .lottery-rail article:nth-child(odd)::after,
#mycardwalletevent .lottery-rail article:nth-child(even)::after {
    content: "";
    position: absolute !important;
    left: clamp(14px, 1.8vw, 20px) !important;
    right: clamp(14px, 1.8vw, 20px) !important;
    bottom: 8px !important;
    top: auto !important;
    width: auto !important;
    height: 2px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #13dfff, rgba(255, 212, 61, 0.8), rgba(19, 223, 255, 0)) !important;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.22) !important;
    transform: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: clamp(20px, 1.8vw, 27px) !important;
    font-weight: 900 !important;
    line-height: 1.14 !important;
    text-align: left !important;
    text-shadow: 0 0 18px rgba(0, 217, 255, 0.36) !important;
}

#mycardwalletevent .lottery-rail article > b,
#mycardwalletevent .lottery-rail article > p {
    display: none !important;
}

#mycardwalletevent .wallet-visual {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    min-height: clamp(300px, 28vw, 430px) !important;
    padding: clamp(6px, 1vw, 12px) !important;
}

#mycardwalletevent .wallet-visual img {
    display: block !important;
    width: min(100%, clamp(240px, 29vw, 390px)) !important;
    max-height: clamp(280px, 32vw, 430px) !important;
    object-fit: contain !important;
    filter: drop-shadow(0 22px 28px rgba(0, 8, 36, 0.34)) drop-shadow(0 0 22px rgba(0, 217, 255, 0.22)) !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(18px, 2.2vw, 26px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        padding-top: 10px !important;
    }

    #mycardwalletevent .lottery-shell::before {
        inset: 6% 0 0 0;
        border-radius: 18px;
    }

    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        gap: 9px !important;
        max-width: none !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        grid-template-columns: 36px minmax(0, 1fr) !important;
        column-gap: 8px !important;
        min-height: 72px !important;
        padding: 10px 9px 12px !important;
        border-radius: 10px !important;
    }

    #mycardwalletevent .lottery-rail article::before,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::before,
    #mycardwalletevent .lottery-rail article:nth-child(even)::before {
        width: 36px !important;
        height: 36px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        box-shadow: 0 4px 0 rgba(150, 82, 0, 0.42), 0 0 16px rgba(255, 212, 61, 0.28) !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        font-size: 17px !important;
        line-height: 1.14 !important;
        overflow-wrap: anywhere !important;
    }

    #mycardwalletevent .wallet-visual {
        min-height: 0 !important;
        padding: 2px 0 0 !important;
    }

    #mycardwalletevent .wallet-visual img {
        width: min(78%, 240px) !important;
        max-height: 220px !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 12px !important;
    }
}

/* v1.0.65: wallet advantage cards contain only one-line text. */
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: clamp(62px, 5.8vw, 78px) !important;
    padding: clamp(14px, 1.6vw, 18px) clamp(18px, 2.2vw, 26px) !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before,
#mycardwalletevent .lottery-rail article::after,
#mycardwalletevent .lottery-rail article:nth-child(odd)::after,
#mycardwalletevent .lottery-rail article:nth-child(even)::after {
    display: none !important;
    content: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: clamp(21px, 1.8vw, 28px) !important;
    line-height: 1.1 !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        min-height: 54px !important;
        padding: 11px 14px !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        font-size: 17px !important;
        line-height: 1.12 !important;
    }
}

/* v1.0.66: tighten wallet section spacing and center text cards. */
#mycardwalletevent .lottery-shell {
    padding-top: clamp(4px, 0.8vw, 10px) !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    justify-content: center !important;
    text-align: center !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    text-align: center !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: clamp(8px, 1.1vw, 14px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell {
        padding-top: 4px !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 8px !important;
    }
}

/* v1.0.67: remove toast outer fill and align toast label typography with member-gate tags. */
.home-notice {
    background: transparent !important;
}

.home-notice__kicker {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: fit-content !important;
    max-width: calc(100% - 44px) !important;
    min-height: 0 !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    color: #04102f !important;
    background: linear-gradient(180deg, #fff38a, #ffc21a) !important;
    box-shadow: 0 0 18px rgba(255, 212, 61, 0.34) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    text-shadow: none !important;
}

@media (max-width: 768px) {
    .home-notice {
        background: transparent !important;
    }
}

/* v1.0.68: remove padding from wallet content area. */
#mycardwalletevent .lottery-shell {
    padding: 0 !important;
}

#mycardwalletevent .wallet-visual {
    padding: 0 !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    padding: 0 !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell,
    #mycardwalletevent .wallet-visual,
    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        padding: 0 !important;
    }
}

/* v1.0.69: align wallet content flush with page content and remove extra gaps. */
#mycardwalletevent .lottery-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

#mycardwalletevent .lottery-shell::before {
    display: none !important;
}

#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    margin: 0 !important;
    border-radius: 0 !important;
}

#mycardwalletevent .wallet-visual {
    margin: 0 !important;
    padding: 0 !important;
}

#mycardwalletevent .wallet-actions {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-shell,
    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail,
    #mycardwalletevent .wallet-visual {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    #mycardwalletevent .wallet-actions {
        margin-top: 0 !important;
    }
}

/* v1.0.70: restore a small vertical rhythm between wallet feature cards and support two sheet CTAs. */
#mycardwalletevent .lottery-rail,
body[data-lang] #mycardwalletevent .lottery-rail {
    gap: 8px !important;
}

#mycardwalletevent .wallet-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
}

#mycardwalletevent .wallet-actions a {
    min-width: min(220px, 100%) !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail,
    body[data-lang] #mycardwalletevent .lottery-rail {
        gap: 6px !important;
    }

    #mycardwalletevent .wallet-actions {
        gap: 8px !important;
    }

    #mycardwalletevent .wallet-actions a {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
    }
}

/* v1.0.71: align wallet feature copy left on desktop and centered on mobile. */
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    text-align: left !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    text-align: left !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even),
    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        text-align: center !important;
    }
}

/* v1.0.72: add a little horizontal breathing room inside wallet feature cards. */
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    padding-inline: clamp(12px, 1.5vw, 20px) !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        padding-inline: 10px !important;
    }
}

/* v1.0.73: emphasize key wallet feature terms. */

/* v1.0.74: add designed bullet badges to wallet feature cards. */
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    gap: clamp(10px, 1.1vw, 14px) !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    content: attr(data-feature-no) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid rgba(105, 231, 255, 0.7) !important;
    border-radius: 10px !important;
    color: #fff8a8 !important;
    background:
        linear-gradient(135deg, rgba(0, 215, 255, 0.28), rgba(0, 57, 255, 0.1)),
        rgba(3, 16, 48, 0.72) !important;
    box-shadow:
        0 0 14px rgba(0, 215, 255, 0.34),
        inset 0 0 12px rgba(0, 215, 255, 0.18) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    width: auto !important;
    flex: 1 1 auto !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        flex-direction: column !important;
        gap: 8px !important;
    }

    #mycardwalletevent .lottery-rail article::before,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::before,
    #mycardwalletevent .lottery-rail article:nth-child(even)::before {
        width: 30px !important;
        height: 30px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        width: 100% !important;
    }
}

/* v1.0.75: pull the wallet heading closer to its content. */
#mycardwalletevent > .section-heading {
    margin-bottom: clamp(6px, 0.8vw, 12px) !important;
    padding-bottom: 0 !important;
}

#mycardwalletevent > .section-heading .section-title-row,
#mycardwalletevent > .section-heading .section-title-copy,
#mycardwalletevent > .section-heading .section-title-copy h2,
#mycardwalletevent > .section-heading .section-title-copy p {
    margin-bottom: 0 !important;
}

#mycardwalletevent .lottery-shell {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    #mycardwalletevent > .section-heading {
        margin-bottom: 8px !important;
    }
}

/* v1.0.76: switch wallet bullets to left-side diamond markers. */
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: clamp(9px, 1vw, 12px) !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    content: "" !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 12px !important;
    height: 12px !important;
    border: 1px solid rgba(137, 239, 255, 0.92) !important;
    border-radius: 2px !important;
    transform: rotate(45deg) !important;
    background: linear-gradient(135deg, #fff06c 0%, #12e9ff 52%, #236cff 100%) !important;
    box-shadow:
        0 0 10px rgba(18, 233, 255, 0.58),
        0 0 18px rgba(255, 240, 108, 0.28) !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    width: auto !important;
    flex: 1 1 auto !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    #mycardwalletevent .lottery-rail article::before,
    #mycardwalletevent .lottery-rail article:nth-child(odd)::before,
    #mycardwalletevent .lottery-rail article:nth-child(even)::before {
        width: 10px !important;
        height: 10px !important;
    }

    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        width: auto !important;
        flex: 0 1 auto !important;
    }
}

/* v1.0.77: match wallet diamond markers to the primary button color and lock vertical centering. */
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    align-items: center !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    align-self: center !important;
    border-color: rgba(0, 217, 255, 0.95) !important;
    background: linear-gradient(135deg, var(--leaf) 0%, #2beaff 45%, var(--leaf-dark) 100%) !important;
    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.58),
        0 0 18px rgba(0, 102, 255, 0.34) !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    min-height: 34px !important;
    line-height: 1.15 !important;
}

@media (max-width: 768px) {
    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3 {
        min-height: 30px !important;
        justify-content: center !important;
    }
}

/* v1.0.78: force wallet diamonds to the exact primary CTA blue. */
#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article.featured::before,
#mycardwalletevent .lottery-rail article:first-child::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    background-color: #13dfff !important;
    border-color: rgba(98, 245, 255, 0.82) !important;
    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.54),
        0 0 18px rgba(8, 119, 255, 0.4) !important;
}

/* v1.0.80: restore wallet layout sizing and render diamonds beside the text. */
#mycardwalletevent {
    padding-top: clamp(64px, 7vw, 88px) !important;
    padding-bottom: 0 !important;
}

#mycardwalletevent .lottery-shell {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#mycardwalletevent .lottery-shell::before {
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
}

#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even) {
    align-items: center !important;
    gap: clamp(10px, 1vw, 13px) !important;
    padding-block: clamp(12px, 1.4vw, 16px) !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article.featured::before,
#mycardwalletevent .lottery-rail article:first-child::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    display: none !important;
    content: none !important;
}

#mycardwalletevent .wallet-bullet {
    display: inline-block !important;
    flex: 0 0 11px !important;
    width: 11px !important;
    height: 11px !important;
    min-width: 11px !important;
    min-height: 11px !important;
    align-self: center !important;
    border: 1px solid rgba(98, 245, 255, 0.96) !important;
    border-radius: 2px !important;
    background: #13dfff !important;
    box-shadow:
        0 0 8px rgba(19, 223, 255, 0.76),
        0 0 16px rgba(8, 119, 255, 0.46) !important;
    transform: rotate(45deg) !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    align-self: center !important;
    min-height: 0 !important;
    line-height: 1.15 !important;
}

@media (max-width: 768px) {
    #mycardwalletevent {
        padding-top: 48px !important;
        padding-bottom: 0 !important;
    }

    #mycardwalletevent .lottery-rail article,
    #mycardwalletevent .lottery-rail article.featured,
    #mycardwalletevent .lottery-rail article:first-child,
    #mycardwalletevent .lottery-rail article:nth-child(odd),
    #mycardwalletevent .lottery-rail article:nth-child(even) {
        padding-block: 12px !important;
    }

    #mycardwalletevent .wallet-bullet {
        flex-basis: 10px !important;
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        min-height: 10px !important;
    }
}

/* v1.0.88: center homepage dividers at 70% of content width, excluding member gate. */
main > .section:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final) {
    --section-content-gutter: 0px;
    position: relative;
}

main > .section.section-green:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final),
main > .section.section-rice:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final),
main > .section.section-limited:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final) {
    --section-content-gutter: max(18px, calc((100vw - 1180px) / 2));
}

main > .section:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final)::before {
    content: "";
    position: absolute;
    top: clamp(20px, 2.4vw, 28px);
    left: 50%;
    width: min(calc((100% - (var(--section-content-gutter) * 2)) * 0.7), 1000px);
    height: 2px;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0%, rgba(98, 245, 255, 0.18) 9%, rgba(98, 245, 255, 0.78) 48%, rgba(255, 214, 72, 0.36) 70%, transparent 100%),
        linear-gradient(90deg, transparent 0%, rgba(8, 119, 255, 0.22) 18%, rgba(255, 255, 255, 0.32) 50%, rgba(8, 119, 255, 0.18) 82%, transparent 100%);
    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.34),
        0 0 30px rgba(8, 119, 255, 0.18);
    opacity: 0.9;
    transform: translateX(-50%);
}

#membergate::before {
    display: none !important;
}

.quick-panel + .section::before,
[id="8icons"].quick-panel + .section::before,
#eventjourney::before {
    content: none !important;
    display: none !important;
}

@media (max-width: 768px) {
    main > .section:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final)::before {
        top: 18px;
        left: 50%;
        opacity: 0.78;
    }
}

/* v1.0.93: unify homepage mobile card titles. */
@media (max-width: 768px) {
    main > .section:not(.inline-detail):not(.detail-task-section) article h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .reward-card h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .offer-card h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .game-card h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .limited-card h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .member-gate-card h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .social-task-card h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .mall-card h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .tickets-rail article h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .lottery-rail article h3,
    main > .section:not(.inline-detail):not(.detail-task-section) .preregister-card strong {
        font-size: 18px !important;
    }

    #membergate .member-gate-card h3,
    #membertasks .reward-card h3,
    #membertasks .reward-card.featured h3,
    #membertasks .reward-card:first-child h3,
    #topupbonus .offer-card h3,
    #topupbonus .offer-card.featured h3,
    #topupbonus .offer-card:first-child h3,
    #limited .limited-card h3,
    #hotgames .game-card h3,
    #preregister .preregister-card strong,
    #socialtasks .social-task-card h3,
    #mymall .mall-card h3,
    #lottery .tickets-rail article h3,
    #more .tickets-rail article h3,
    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3,
    #mycardwalletevent .lottery-rail article:nth-child(odd) h3,
    #mycardwalletevent .lottery-rail article:nth-child(even) h3 {
        font-size: 18px !important;
    }
}

/* v1.0.96: final mobile card action inset override. */
@media (max-width: 768px) {
    #membergate .member-gate-card,
    #membertasks .reward-card,
    #limited .limited-card,
    #topupbonus .topup-rail .offer-card,
    #socialtasks .social-task-card,
    #mymall .mall-card,
    #lottery .tickets-rail article,
    #more .tickets-rail article {
        position: relative !important;
        padding-bottom: max(61px, var(--mobile-card-action-reserve, 61px)) !important;
    }

    #membergate .member-gate-card a,
    #membertasks .reward-card a,
    #limited .limited-card a,
    #topupbonus .topup-rail .offer-card a,
    #socialtasks .social-task-card a,
    #mymall .mall-card a,
    #lottery .tickets-rail article a,
    #more .tickets-rail article a {
        position: absolute !important;
        right: 9px !important;
        bottom: 17px !important;
        left: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 40px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* v1.0.94: align social task mobile cards with member task cards. */
@media (max-width: 768px) {
    .section-social-tasks .social-task-shell {
        overflow: visible !important;
    }

    .section-social-tasks .social-task-rail,
    body[data-lang] .section-social-tasks .social-task-rail {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: initial !important;
        grid-template-rows: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        transform: none !important;
        animation: none !important;
        scroll-snap-type: none !important;
    }

    .section-social-tasks .social-task-card,
    body[data-lang] .section-social-tasks .social-task-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        align-items: center !important;
        align-content: center !important;
        justify-items: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 214px !important;
        padding: 12px 8px 10px !important;
        gap: 0 !important;
        flex: initial !important;
        scroll-snap-align: none !important;
    }

    .section-social-tasks .social-task-rail > .social-task-card[data-loop-clone="true"],
    body[data-lang] .section-social-tasks .social-task-rail > .social-task-card[data-loop-clone="true"] {
        display: none !important;
    }

    .section-social-tasks .social-task-card .tag,
    .section-social-tasks .social-task-card > b {
        display: none !important;
    }

    .section-social-tasks .social-task-card h3 {
        display: -webkit-box !important;
        order: 1 !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 8px !important;
        overflow: hidden !important;
        color: #f8fdff !important;
        font-size: 18px !important;
        line-height: 1.24 !important;
        text-align: center !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    #socialtasks .social-task-card h3,
    .section-social-tasks .social-task-card h3 {
        height: auto !important;
        max-height: 1.24em !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        -webkit-line-clamp: unset !important;
    }

    .section-social-tasks .social-task-card .feature-media {
        display: flex !important;
        order: 2 !important;
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        align-items: flex-end !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .section-social-tasks .social-task-card .feature-media img,
    .section-social-tasks .social-task-card .feature-media svg {
        width: min(82px, 82%) !important;
        height: min(82px, 82%) !important;
        max-height: 82px !important;
        object-fit: contain !important;
    }

    .section-social-tasks .social-task-card a {
        display: inline-flex !important;
        position: absolute !important;
        order: 3 !important;
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        right: 9px !important;
        bottom: 17px !important;
        left: 9px !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 8px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        word-break: keep-all !important;
    }

    #socialtasks .social-task-card a {
        right: 0 !important;
        left: 0 !important;
    }
}

/* v1.0.97: remove extra top and side spacing around top-up card images. */
#topupbonus .topup-rail .offer-card p.offer-media,
#topupbonus .offer-card p.offer-media {
    margin: 0 !important;
}

#topupbonus .topup-rail .offer-card p.offer-media img,
#topupbonus .topup-rail .offer-card p.offer-media svg,
#topupbonus .offer-card p.offer-media img,
#topupbonus .offer-card p.offer-media svg {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* v1.0.98: let mobile homepage cards size from their content instead of fixed minimums. */
@media (max-width: 768px) {
    #membergate .member-gate-card,
    #membertasks .reward-card,
    #membertasks .rail-large > .reward-card,
    body[data-lang] #membertasks .rail-large > .reward-card,
    #limited .limited-card,
    #topupbonus .topup-rail .offer-card,
    #socialtasks .social-task-card,
    #mymall .mall-card,
    #lottery .tickets-rail article,
    #more .tickets-rail article {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* v1.0.99: keep mobile preregister external link titles readable. */
@media (max-width: 768px) {
    #preregister .preregister-card strong {
        font-size: 14px !important;
    }
}

/* v1.0.100: normalize mobile in-card button type and alignment. */
@media (max-width: 768px) {
    #membergate .member-gate-card a,
    #membertasks .reward-card a,
    #membertasks .reward-card.featured a,
    #membertasks .reward-card:first-child a,
    #limited .limited-card a,
    #topupbonus .topup-rail .offer-card a,
    #socialtasks .social-task-card a,
    #mymall .mall-card a,
    #lottery .tickets-rail article a,
    #more .tickets-rail article a,
    .game-card a,
    .feature-grid a {
        right: 9px !important;
        left: 9px !important;
        bottom: 17px !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
    }
}

/* v1.0.101: set mobile card titles to 16px, preserving image-only and preregister URL exceptions. */
@media (max-width: 768px) {
    #membergate .member-gate-card h3,
    #membertasks .reward-card h3,
    #membertasks .reward-card.featured h3,
    #membertasks .reward-card:first-child h3,
    #topupbonus .offer-card h3,
    #topupbonus .offer-card.featured h3,
    #topupbonus .offer-card:first-child h3,
    #socialtasks .social-task-card h3,
    #mymall .mall-card h3,
    #lottery .tickets-rail article h3,
    #more .tickets-rail article h3,
    #mycardwalletevent .lottery-rail article h3,
    #mycardwalletevent .lottery-rail article.featured h3,
    #mycardwalletevent .lottery-rail article:first-child h3,
    #mycardwalletevent .lottery-rail article:nth-child(odd) h3,
    #mycardwalletevent .lottery-rail article:nth-child(even) h3 {
        font-size: 16px !important;
    }

    #membertasks .rail-large > .reward-card:first-child a,
    #membertasks .reward-card:first-child a,
    #membertasks .reward-card.featured a {
        display: inline-flex !important;
        position: absolute !important;
        right: 9px !important;
        bottom: 17px !important;
        left: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 8px !important;
        transform: none !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: auto !important;
        justify-self: auto !important;
        text-align: center !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
    }
}

/* v1.0.102: hide mall card titles and restore hot-game image cards after mobile button normalization. */
#mymall .mall-card h3 {
    display: none !important;
}

#mymall .mall-media {
    margin-top: 0 !important;
}

#hotgames .game-card-image {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#hotgames .game-card-image > a {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

#hotgames .game-card-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 388 / 600 !important;
    object-fit: cover !important;
    border-radius: inherit !important;
}

/* v1.0.103: refresh preregister cards to match the current neon-blue visual style. */
#preregister .preregister-card {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#preregister .preregister-card > a {
    position: relative !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, auto) !important;
    gap: 10px !important;
    height: 100% !important;
    padding: 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(98, 245, 255, 0.38) !important;
    border-radius: 14px !important;
    color: #f7fdff !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 217, 255, 0.18), transparent 52%),
        linear-gradient(180deg, rgba(10, 31, 78, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow:
        0 16px 38px rgba(0, 8, 36, 0.44),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 22px rgba(0, 217, 255, 0.12) !important;
    text-decoration: none !important;
}

#preregister .preregister-card > a::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
        linear-gradient(135deg, rgba(98, 245, 255, 0.18), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(255, 212, 61, 0.16), transparent 26%) !important;
}

#preregister .preregister-card img {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border: 1px solid rgba(98, 245, 255, 0.18) !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    background: rgba(3, 12, 38, 0.72) !important;
    box-shadow: 0 10px 24px rgba(0, 8, 36, 0.28) !important;
}

#preregister .preregister-card strong {
    position: relative !important;
    z-index: 1 !important;
    min-height: 3em !important;
    color: #f7fdff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.28) !important;
}

@media (max-width: 768px) {
    #preregister .preregister-card > a {
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 12px !important;
    }

    #preregister .preregister-card strong {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }
}

/* v1.0.104: align payment rail edges and tune social shorts visible counts. */
#topupbonus .payment-shell,
#payments .payment-shell {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}

#topupbonus .payment-rail,
#payments .payment-rail,
body[data-lang="en"] #topupbonus .payment-rail,
body[data-lang="id"] #topupbonus .payment-rail,
body[data-lang="vi"] #topupbonus .payment-rail,
body[data-lang="ja"] #topupbonus .payment-rail,
body[data-lang="ko"] #topupbonus .payment-rail,
body[data-lang="zh-cn"] #topupbonus .payment-rail,
body[data-lang="th"] #topupbonus .payment-rail {
    padding-inline: 0 !important;
}

#socialtasks .social-video-rail,
body[data-lang="en"] #socialtasks .social-video-rail,
body[data-lang="id"] #socialtasks .social-video-rail,
body[data-lang="vi"] #socialtasks .social-video-rail,
body[data-lang="ja"] #socialtasks .social-video-rail,
body[data-lang="ko"] #socialtasks .social-video-rail,
body[data-lang="zh-cn"] #socialtasks .social-video-rail,
body[data-lang="th"] #socialtasks .social-video-rail {
    --social-video-gap: 12px;
    gap: var(--social-video-gap) !important;
    grid-template-rows: none !important;
    grid-auto-columns: calc((100% - (var(--social-video-gap) * 5.5)) / 6.5) !important;
}

@media (max-width: 768px) {
    #socialtasks .social-video-rail,
    body[data-lang="en"] #socialtasks .social-video-rail,
    body[data-lang="id"] #socialtasks .social-video-rail,
    body[data-lang="vi"] #socialtasks .social-video-rail,
    body[data-lang="ja"] #socialtasks .social-video-rail,
    body[data-lang="ko"] #socialtasks .social-video-rail,
    body[data-lang="zh-cn"] #socialtasks .social-video-rail,
    body[data-lang="th"] #socialtasks .social-video-rail {
        grid-auto-columns: calc((100% - (var(--social-video-gap) * 1.5)) / 2.5) !important;
    }
}

/* v1.0.105: hide more-activities card titles like the mall image cards. */
#more .tickets-rail article h3 {
    display: none !important;
}

#more .tickets-rail article > p:first-child {
    margin-top: 0 !important;
}

/* v1.0.106: keep the lottery ticket cards static on desktop. */
@media (min-width: 769px) {
    #lottery .tickets-rail {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: initial !important;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        overflow: visible !important;
        cursor: default !important;
        touch-action: auto !important;
        user-select: auto !important;
    }

    #lottery .tickets-rail > [data-loop-clone="true"] {
        display: none !important;
    }
}

/* v1.0.108: align utm_content more-task cards with the homepage member-task style. */
.detail-task-rail .register-task-card {
    color: #eafcff !important;
    border-color: rgba(0, 217, 255, 0.3) !important;
    background:
        radial-gradient(circle at 84% 12%, rgba(0, 217, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(10, 31, 78, 0.96), rgba(4, 13, 39, 0.98)) !important;
    box-shadow: 0 22px 58px rgba(0, 8, 36, 0.48), 0 0 28px rgba(0, 217, 255, 0.14) !important;
}

.detail-task-rail .register-task-card:first-child {
    border-color: rgba(98, 245, 255, 0.58) !important;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 212, 61, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(0, 92, 220, 0.92), rgba(4, 16, 48, 0.98) 62%, rgba(0, 217, 255, 0.18)) !important;
    box-shadow: 0 24px 70px rgba(0, 8, 36, 0.54), 0 0 34px rgba(0, 217, 255, 0.24) !important;
}

.detail-task-rail .register-task-card .tag {
    display: none !important;
}

.detail-task-rail .register-task-card h3 {
    color: #ffffff !important;
    font-size: 21px !important;
    line-height: 1.24 !important;
    text-align: center !important;
    text-shadow: 0 0 16px rgba(0, 217, 255, 0.42) !important;
}

.detail-task-rail .register-task-card p {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 76px !important;
    margin: 0 0 4px !important;
    color: #bdeeff !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    text-align: center !important;
}

.detail-task-rail .register-task-card a {
    color: #f7fdff !important;
    border-color: rgba(98, 245, 255, 0.66) !important;
    background: linear-gradient(180deg, #13dfff 0%, #0877ff 100%) !important;
    box-shadow: 0 8px 0 rgba(0, 54, 135, 0.58), 0 0 22px rgba(0, 217, 255, 0.34) !important;
}

@media (max-width: 768px) {
    .detail-task-shell {
        overflow: visible !important;
    }

    .detail-task-rail,
    body[data-lang] .detail-task-rail {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: initial !important;
        grid-template-rows: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        transform: none !important;
        animation: none !important;
        scroll-snap-type: none !important;
    }

    .detail-task-rail > .register-task-card[data-loop-clone="true"],
    body[data-lang] .detail-task-rail > .register-task-card[data-loop-clone="true"] {
        display: none !important;
    }

    .detail-task-rail .register-task-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        align-items: center !important;
        align-content: center !important;
        justify-items: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 12px 8px 10px !important;
        gap: 0 !important;
        flex: initial !important;
        scroll-snap-align: none !important;
    }

    .detail-task-rail .register-task-card h3 {
        display: -webkit-box !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 8px !important;
        overflow: hidden !important;
        font-size: 16px !important;
        line-height: 1.24 !important;
        text-align: center !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .detail-task-rail .register-task-card p {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        min-height: 58px !important;
        margin: 0 0 4px !important;
        padding: 0 2px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .detail-task-rail .register-task-card a {
        display: inline-flex !important;
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1.15 !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: keep-all !important;
    }

    .detail-task-rail .register-task-card::before {
        display: none !important;
    }
}

/* v1.0.109: detail bottom task media mirrors homepage member-task card sizing. */
.detail-task-rail .register-task-card p.offer-media {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

.detail-task-rail .register-task-card p.offer-media img,
.detail-task-rail .register-task-card p.offer-media svg {
    display: block !important;
    width: clamp(114px, 9vw, 144px) !important;
    height: clamp(114px, 9vw, 144px) !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: drop-shadow(0 12px 18px rgba(0, 8, 36, 0.28)) !important;
}

@media (max-width: 768px) {
    .detail-task-rail .register-task-card p.offer-media {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        min-height: 0 !important;
        margin: 0 0 4px !important;
        align-items: flex-end !important;
    }

    .detail-task-rail .register-task-card p.offer-media img,
    .detail-task-rail .register-task-card p.offer-media svg {
        width: min(82px, 82%) !important;
        height: min(82px, 82%) !important;
        max-height: 82px !important;
    }
}

/* v1.0.111: invitation flow keeps only step-card backgrounds, not an outer panel. */
.inline-detail[data-content-key="invitation"] .register-flow-block {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
}


/* v1.0: August 202608 visual theme. */
:root {
    --cream: #fff3c7;
    --rice: #fff8df;
    --leaf: #f9a701;
    --leaf-dark: #c4210b;
    --bamboo: #ffcf4a;
    --gold: #fcb203;
    --gold-soft: #ffe58a;
    --brown: #3a1208;
    --caramel: #d95a12;
    --red: #c4210b;
    --ink: #2b1008;
    --muted: #7d4a26;
    --line: rgba(196, 33, 11, 0.18);
    --shadow: 0 20px 46px rgba(83, 20, 4, 0.22);
}

body {
    color: #fff8ec !important;
    background:
        radial-gradient(circle at 72% 8%, rgba(252, 178, 3, 0.42) 0, rgba(252, 178, 3, 0.12) 25%, transparent 45%),
        radial-gradient(circle at 16% 18%, rgba(196, 33, 11, 0.34) 0, transparent 32%),
        radial-gradient(circle at 78% 72%, rgba(40, 126, 238, 0.18) 0, transparent 35%),
        linear-gradient(135deg, rgba(252, 135, 2, 0.15) 0 1px, transparent 1px 44px),
        linear-gradient(45deg, rgba(196, 33, 11, 0.16) 0 1px, transparent 1px 56px),
        linear-gradient(180deg, #2b0904 0%, #641507 34%, #a72a08 62%, #260804 100%) !important;
    background-attachment: fixed, fixed, fixed, fixed, fixed, fixed !important;
}

body::before {
    opacity: 0.72 !important;
    background:
        linear-gradient(90deg, rgba(255, 210, 72, 0.18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 184, 1, 0.12) 1px, transparent 1px),
        linear-gradient(115deg, transparent 0 28%, rgba(252, 135, 2, 0.2) 28% 28.4%, transparent 28.4% 63%, rgba(40, 126, 238, 0.16) 63% 63.35%, transparent 63.35%),
        radial-gradient(circle at 82% 15%, rgba(255, 229, 138, 0.28), transparent 23%),
        radial-gradient(circle at 18% 88%, rgba(196, 33, 11, 0.18), transparent 26%) !important;
    background-size: 48px 48px, 48px 48px, 520px 520px, auto, auto !important;
}

main > .section:not(.hero):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final) {
    background:
        linear-gradient(180deg, rgba(43, 9, 4, 0), rgba(252, 135, 2, 0.05) 52%, rgba(43, 9, 4, 0)) !important;
}

.section-heading h2,
.section-heading .section-title-copy h2 {
    text-shadow:
        0 0 14px rgba(255, 229, 138, 0.58),
        0 0 34px rgba(196, 33, 11, 0.42) !important;
}

.section-heading p,
.notice,
.reward-card p,
.offer-card p,
.feature-card p,
.mall-card p,
.tickets-rail article p {
    color: #ffe9bf !important;
}

.hero::after,
.hero-art::after {
    background: linear-gradient(180deg, rgba(43, 9, 4, 0) 0%, rgba(71, 13, 5, 0.32) 58%, #641507 100%) !important;
}

.quick-panel,
.reward-card,
.offer-card,
.feature-card,
.member-gate-card,
.social-task-card,
.mall-card,
.tickets-rail article,
.inline-detail__panel,
.notice {
    border-color: rgba(255, 207, 74, 0.34) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 207, 74, 0.18), transparent 54%),
        linear-gradient(180deg, rgba(99, 21, 7, 0.96), rgba(43, 9, 4, 0.98)) !important;
    box-shadow: 0 22px 52px rgba(43, 9, 4, 0.52), 0 0 24px rgba(252, 135, 2, 0.16) !important;
}

.primary-action,
.inline-detail__action,
.reward-card a,
.offer-card a,
.feature-card a,
.member-gate-card a,
.social-task-card a,
.mall-card a,
.tickets-rail article a,
.side-nav .back-top {
    color: #2b1008 !important;
    border-color: rgba(255, 229, 138, 0.7) !important;
    background: linear-gradient(180deg, #ffe58a 0%, #fcb203 54%, #fc8702 100%) !important;
    box-shadow: 0 8px 0 rgba(117, 35, 4, 0.52), 0 0 24px rgba(252, 178, 3, 0.38) !important;
}

.rail-control,
.lang-switch button.is-active,
.bottom-nav a.is-active,
.bottom-nav button.is-active {
    color: #fff8ec !important;
    border-color: rgba(255, 207, 74, 0.5) !important;
    background: linear-gradient(180deg, #e74612 0%, #c4210b 100%) !important;
    box-shadow: 0 8px 0 rgba(83, 20, 4, 0.48), 0 0 20px rgba(196, 33, 11, 0.32) !important;
}

.journey-progress::before {
    background: linear-gradient(90deg, rgba(252, 135, 2, 0.22), rgba(252, 178, 3, 0.92) 42%, rgba(40, 126, 238, 0.88) 100%) !important;
    box-shadow: 0 0 22px rgba(252, 135, 2, 0.45) !important;
}

.journey-progress__marker {
    border-color: rgba(255, 229, 138, 0.78) !important;
    color: #2b1008 !important;
    background: linear-gradient(180deg, #ffe58a 0%, #fcb203 56%, #fc8702 100%) !important;
    box-shadow: 0 8px 0 rgba(117, 35, 4, 0.52), 0 0 28px rgba(252, 178, 3, 0.46) !important;
}

.journey-progress__item strong,
.section-kicker {
    color: #ffe58a !important;
    background: linear-gradient(180deg, #fff4a8 0%, #fcb203 46%, #fc8702 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    text-shadow: 0 0 14px rgba(252, 178, 3, 0.42), 0 0 22px rgba(196, 33, 11, 0.28) !important;
    -webkit-text-fill-color: transparent !important;
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at 82% 8%, rgba(252, 178, 3, 0.32) 0, rgba(252, 178, 3, 0.1) 28%, transparent 48%),
            radial-gradient(circle at 12% 18%, rgba(196, 33, 11, 0.24) 0, transparent 36%),
            linear-gradient(135deg, rgba(252, 135, 2, 0.12) 0 1px, transparent 1px 38px),
            linear-gradient(180deg, #2b0904 0%, #641507 42%, #a72a08 100%) !important;
        background-attachment: scroll !important;
    }
}


/* v1.0.1: complete August warm visual treatment for controls, quick links, and cards. */
body {
    color: #fff8ec !important;
    background:
        radial-gradient(ellipse at 50% -8%, rgba(255, 229, 138, 0.34) 0%, rgba(252, 178, 3, 0.12) 34%, transparent 62%),
        radial-gradient(ellipse at 15% 20%, rgba(196, 33, 11, 0.34) 0%, rgba(196, 33, 11, 0.12) 32%, transparent 62%),
        radial-gradient(ellipse at 86% 26%, rgba(40, 126, 238, 0.18) 0%, transparent 44%),
        radial-gradient(ellipse at 50% 100%, rgba(252, 135, 2, 0.26) 0%, rgba(99, 21, 7, 0.28) 38%, transparent 70%),
        linear-gradient(180deg, #260804 0%, #5b1307 30%, #a72a08 58%, #3a0b04 100%) !important;
    background-attachment: fixed, fixed, fixed, fixed, fixed !important;
}

body::before {
    opacity: 0.78 !important;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(255, 244, 168, 0.18), transparent 44%),
        radial-gradient(ellipse at 50% 58%, rgba(252, 135, 2, 0.12), transparent 54%),
        linear-gradient(105deg, transparent 0 16%, rgba(255, 229, 138, 0.08) 28%, transparent 46% 100%),
        linear-gradient(255deg, transparent 0 18%, rgba(40, 126, 238, 0.08) 34%, transparent 52% 100%) !important;
    background-size: auto !important;
}

.hero::after,
.hero-art::after {
    background: linear-gradient(180deg, rgba(38, 8, 4, 0) 0%, rgba(91, 19, 7, 0.26) 56%, #5b1307 100%) !important;
}

.rail-control,
.rail-shell.has-prev .rail-prev,
.rail-shell.has-next .rail-next,
.quick-link-pager button {
    color: #fff8ec !important;
    border: 1px solid rgba(255, 229, 138, 0.78) !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 244, 168, 0.34), transparent 42%),
        linear-gradient(180deg, #fc8702 0%, #e74612 45%, #b91606 100%) !important;
    box-shadow:
        0 8px 0 rgba(83, 20, 4, 0.55),
        0 0 24px rgba(252, 178, 3, 0.42),
        inset 0 1px 0 rgba(255, 244, 168, 0.42) !important;
}

.rail-control:hover,
.rail-control:focus-visible,
.quick-link-pager button:hover,
.quick-link-pager button:focus-visible {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 244, 168, 0.44), transparent 44%),
        linear-gradient(180deg, #ffe58a 0%, #fc8702 54%, #c4210b 100%) !important;
    color: #2b1008 !important;
    transform: translateY(-2px) !important;
}

.quick-panel,
[id="8icons"].quick-panel {
    border: 1px solid rgba(255, 207, 74, 0.34) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 229, 138, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(99, 21, 7, 0.88), rgba(43, 9, 4, 0.94)) !important;
    box-shadow: 0 26px 58px rgba(43, 9, 4, 0.48), 0 0 28px rgba(252, 135, 2, 0.18) !important;
}

.quick-panel a,
body[data-lang] .quick-panel a {
    color: #fff8ec !important;
    border: 1px solid rgba(255, 207, 74, 0.28) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 229, 138, 0.18), transparent 48%),
        linear-gradient(180deg, rgba(133, 29, 8, 0.92), rgba(63, 12, 5, 0.96)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 244, 168, 0.18), 0 12px 28px rgba(43, 9, 4, 0.3) !important;
}

.quick-panel a:hover,
.quick-panel a:focus-visible {
    border-color: rgba(255, 229, 138, 0.68) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 229, 138, 0.3), transparent 50%),
        linear-gradient(180deg, rgba(196, 33, 11, 0.96), rgba(99, 21, 7, 0.98)) !important;
    box-shadow: 0 16px 34px rgba(43, 9, 4, 0.36), 0 0 22px rgba(252, 178, 3, 0.28) !important;
}

.quick-panel span.has-icon {
    background: linear-gradient(180deg, #ffe58a 0%, #fcb203 58%, #fc8702 100%) !important;
    box-shadow: 0 7px 0 rgba(117, 35, 4, 0.48), 0 0 20px rgba(252, 178, 3, 0.34) !important;
}

.quick-panel strong,
.quick-panel span:not(.has-icon) {
    color: #fff8ec !important;
    text-shadow: 0 1px 0 rgba(43, 9, 4, 0.42), 0 0 12px rgba(252, 178, 3, 0.22) !important;
}

.quick-panel svg [fill="#00adee"],
.quick-panel svg [fill="#00ADEE"],
.offer-card p.offer-media svg [fill="#00adee"],
.offer-card p.offer-media svg [fill="#00ADEE"] {
    fill: #fc8702 !important;
}

.quick-panel svg [stroke="#00adee"],
.quick-panel svg [stroke="#00ADEE"],
.offer-card p.offer-media svg [stroke="#00adee"],
.offer-card p.offer-media svg [stroke="#00ADEE"] {
    stroke: #c4210b !important;
}

.reward-card,
.offer-card,
.game-card,
.limited-card,
.member-gate-card,
.social-task-card,
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even),
.mall-card,
#lottery .tickets-rail article,
#more .tickets-rail article,
.detail-task-rail .register-task-card,
#preregister .preregister-card > a {
    color: #fff8ec !important;
    border: 1px solid rgba(255, 207, 74, 0.32) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 229, 138, 0.2), transparent 50%),
        radial-gradient(ellipse at 86% 18%, rgba(40, 126, 238, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(111, 24, 7, 0.96), rgba(43, 9, 4, 0.98)) !important;
    box-shadow: 0 24px 54px rgba(43, 9, 4, 0.5), 0 0 26px rgba(252, 135, 2, 0.15) !important;
}

.reward-card::before,
.offer-card::before,
.game-card::before,
.limited-card::before,
#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article.featured::before,
#mycardwalletevent .lottery-rail article:first-child::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    background: linear-gradient(90deg, rgba(252, 135, 2, 0), rgba(255, 229, 138, 0.72), rgba(252, 135, 2, 0)) !important;
}

.reward-card h3,
.offer-card h3,
.game-card h3,
.limited-card h3,
.member-gate-card h3,
.social-task-card h3,
#mycardwalletevent .lottery-rail article h3,
.mall-card h3,
#lottery .tickets-rail article h3,
#more .tickets-rail article h3,
.detail-task-rail .register-task-card h3,
#preregister .preregister-card strong {
    color: #fff4a8 !important;
    text-shadow: 0 0 14px rgba(252, 178, 3, 0.34), 0 2px 0 rgba(43, 9, 4, 0.28) !important;
}

.reward-card p,
.offer-card p,
.game-card p,
.limited-card p,
.member-gate-card p,
.social-task-card p,
#mycardwalletevent .lottery-rail article p,
.mall-card p,
#lottery .tickets-rail article p,
#more .tickets-rail article p,
.detail-task-rail .register-task-card p,
.notice,
.inline-detail__desc,
.inline-detail__notes,
.inline-detail__meta {
    color: #ffe9bf !important;
}

.reward-card .tag,
.offer-card span,
.game-card span,
.limited-card b,
.member-gate-card b,
.social-task-card .tag,
.social-task-card > b,
#mycardwalletevent .wallet-bullet,
#mycardwalletevent .lottery-rail article b,
.detail-task-rail .register-task-card .tag {
    color: #2b1008 !important;
    border-color: rgba(255, 229, 138, 0.72) !important;
    background: linear-gradient(180deg, #fff4a8 0%, #fcb203 58%, #fc8702 100%) !important;
    box-shadow: 0 5px 0 rgba(117, 35, 4, 0.44), 0 0 18px rgba(252, 178, 3, 0.28) !important;
}

.reward-card a,
.offer-card a,
.game-card a,
.limited-card a,
.member-gate-card a,
.social-task-card a,
.mall-card a,
#lottery .tickets-rail article a,
#more .tickets-rail article a,
#mycardwalletevent .lottery-rail article a,
.detail-task-rail .register-task-card a,
.primary-action,
.inline-detail__action,
.inline-detail__back,
.topup-actions a,
.wallet-actions a,
.preregister-action {
    color: #2b1008 !important;
    border: 1px solid rgba(255, 244, 168, 0.78) !important;
    background: linear-gradient(180deg, #fff4a8 0%, #fcb203 54%, #fc8702 100%) !important;
    box-shadow: 0 8px 0 rgba(117, 35, 4, 0.52), 0 0 24px rgba(252, 178, 3, 0.36) !important;
    text-shadow: none !important;
}

.reward-card a:hover,
.offer-card a:hover,
.game-card a:hover,
.limited-card a:hover,
.member-gate-card a:hover,
.social-task-card a:hover,
.mall-card a:hover,
#lottery .tickets-rail article a:hover,
#more .tickets-rail article a:hover,
#mycardwalletevent .lottery-rail article a:hover,
.detail-task-rail .register-task-card a:hover,
.primary-action:hover,
.inline-detail__action:hover,
.inline-detail__back:hover,
.topup-actions a:hover,
.wallet-actions a:hover,
.preregister-action:hover {
    background: linear-gradient(180deg, #fff8c8 0%, #ffcf4a 48%, #e74612 100%) !important;
    box-shadow: 0 10px 0 rgba(117, 35, 4, 0.5), 0 0 30px rgba(252, 178, 3, 0.48) !important;
}

.section-heading h2,
.section-heading .section-title-copy h2 {
    color: #fff4a8 !important;
    text-shadow: 0 0 16px rgba(252, 178, 3, 0.54), 0 0 36px rgba(196, 33, 11, 0.38) !important;
}

.section-heading p,
.section-title-copy p {
    color: #ffe9bf !important;
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(ellipse at 50% -6%, rgba(255, 229, 138, 0.28), transparent 58%),
            radial-gradient(ellipse at 10% 18%, rgba(196, 33, 11, 0.3), transparent 54%),
            radial-gradient(ellipse at 86% 30%, rgba(40, 126, 238, 0.14), transparent 46%),
            linear-gradient(180deg, #260804 0%, #641507 45%, #a72a08 100%) !important;
        background-attachment: scroll !important;
    }
}


/* v1.0.2: shift the August treatment from orange warmth to golden yellow. */
:root {
    --cream: #fff8d6;
    --rice: #fffbe8;
    --leaf: #f4d43d;
    --leaf-dark: #8c6506;
    --bamboo: #ffe56a;
    --gold: #f4d43d;
    --gold-soft: #fff4a8;
    --brown: #2f2105;
    --caramel: #b98a07;
    --red: #8d2f05;
    --ink: #221805;
    --muted: #795f1a;
    --line: rgba(244, 212, 61, 0.26);
    --shadow: 0 22px 50px rgba(47, 33, 5, 0.22);
}

body {
    color: #fff8d6 !important;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(255, 247, 166, 0.52) 0%, rgba(244, 212, 61, 0.2) 34%, transparent 62%),
        radial-gradient(ellipse at 14% 22%, rgba(255, 230, 106, 0.24) 0%, transparent 50%),
        radial-gradient(ellipse at 86% 26%, rgba(40, 126, 238, 0.12) 0%, transparent 44%),
        radial-gradient(ellipse at 50% 98%, rgba(185, 138, 7, 0.28) 0%, rgba(47, 33, 5, 0.38) 42%, transparent 76%),
        linear-gradient(180deg, #241704 0%, #4f3708 34%, #8c6506 64%, #211504 100%) !important;
    background-attachment: fixed, fixed, fixed, fixed, fixed !important;
}

body::before {
    opacity: 0.88 !important;
    background:
        radial-gradient(ellipse at 50% 12%, rgba(255, 248, 200, 0.2), transparent 44%),
        radial-gradient(ellipse at 50% 54%, rgba(255, 229, 106, 0.12), transparent 58%),
        linear-gradient(112deg, transparent 0 18%, rgba(255, 244, 168, 0.1) 31%, transparent 48% 100%),
        linear-gradient(248deg, transparent 0 20%, rgba(255, 229, 106, 0.08) 36%, transparent 54% 100%) !important;
    background-size: auto !important;
}

main > .section:not(.hero):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final) {
    position: relative !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 244, 168, 0.1), transparent 46%),
        linear-gradient(180deg, rgba(255, 229, 106, 0.035), rgba(47, 33, 5, 0.12) 48%, rgba(255, 229, 106, 0.035)) !important;
}

main > .section:not(.hero):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final)::before {
    background:
        linear-gradient(90deg, transparent, rgba(255, 244, 168, 0.34), rgba(244, 212, 61, 0.2), transparent) !important;
    filter: blur(0.2px) !important;
    opacity: 0.7 !important;
}

.hero::after,
.hero-art::after {
    background: linear-gradient(180deg, rgba(36, 23, 4, 0) 0%, rgba(79, 55, 8, 0.22) 56%, #4f3708 100%) !important;
}

.rail-control,
.rail-shell.has-prev .rail-prev,
.rail-shell.has-next .rail-next,
.quick-link-pager button {
    color: #2a1b04 !important;
    border: 1px solid rgba(255, 248, 200, 0.82) !important;
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.34), transparent 42%),
        linear-gradient(180deg, #fff8c8 0%, #ffe56a 42%, #d8a912 100%) !important;
    box-shadow:
        0 8px 0 rgba(91, 62, 4, 0.58),
        0 0 24px rgba(255, 229, 106, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
    text-shadow: none !important;
}

.rail-control:hover,
.rail-control:focus-visible,
.quick-link-pager button:hover,
.quick-link-pager button:focus-visible {
    color: #201504 !important;
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.48), transparent 44%),
        linear-gradient(180deg, #fffce0 0%, #fff06c 48%, #c79608 100%) !important;
    box-shadow: 0 10px 0 rgba(91, 62, 4, 0.52), 0 0 30px rgba(255, 229, 106, 0.6) !important;
}

.quick-panel,
[id="8icons"].quick-panel {
    border: 1px solid rgba(255, 229, 106, 0.34) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 244, 168, 0.2), transparent 58%),
        linear-gradient(180deg, rgba(91, 62, 4, 0.82), rgba(32, 21, 4, 0.94)) !important;
    box-shadow: 0 28px 62px rgba(32, 21, 4, 0.48), 0 0 30px rgba(244, 212, 61, 0.18) !important;
}

.quick-panel a,
body[data-lang] .quick-panel a {
    color: #fff8d6 !important;
    border: 1px solid rgba(255, 229, 106, 0.24) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 244, 168, 0.15), transparent 48%),
        linear-gradient(180deg, rgba(90, 61, 7, 0.78), rgba(35, 23, 4, 0.92)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 248, 200, 0.18), 0 12px 28px rgba(32, 21, 4, 0.3) !important;
}

.quick-panel a:hover,
.quick-panel a:focus-visible {
    border-color: rgba(255, 244, 168, 0.68) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 244, 168, 0.26), transparent 52%),
        linear-gradient(180deg, rgba(128, 91, 9, 0.88), rgba(47, 33, 5, 0.96)) !important;
    box-shadow: 0 16px 34px rgba(32, 21, 4, 0.36), 0 0 24px rgba(255, 229, 106, 0.28) !important;
}

.quick-panel span.has-icon {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.quick-panel span.has-icon img,
.quick-panel span.has-icon svg {
    filter: drop-shadow(0 6px 10px rgba(32, 21, 4, 0.42)) drop-shadow(0 0 8px rgba(255, 229, 106, 0.22)) !important;
}

.quick-panel strong,
.quick-panel span:not(.has-icon) {
    color: #fff8d6 !important;
    text-shadow: 0 1px 0 rgba(32, 21, 4, 0.5), 0 0 12px rgba(255, 229, 106, 0.24) !important;
}

.quick-panel svg [fill="#00adee"],
.quick-panel svg [fill="#00ADEE"],
.offer-card p.offer-media svg [fill="#00adee"],
.offer-card p.offer-media svg [fill="#00ADEE"] {
    fill: #f4d43d !important;
}

.quick-panel svg [stroke="#00adee"],
.quick-panel svg [stroke="#00ADEE"],
.offer-card p.offer-media svg [stroke="#00adee"],
.offer-card p.offer-media svg [stroke="#00ADEE"] {
    stroke: #8c6506 !important;
}

.reward-card,
.offer-card,
.game-card,
.limited-card,
.member-gate-card,
.social-task-card,
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even),
.mall-card,
#lottery .tickets-rail article,
#more .tickets-rail article,
.detail-task-rail .register-task-card,
#preregister .preregister-card > a,
.inline-detail__panel,
.notice {
    color: #fff8d6 !important;
    border: 1px solid rgba(255, 229, 106, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(255, 248, 200, 0.08), transparent 24%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 244, 168, 0.18), transparent 50%),
        radial-gradient(ellipse at 84% 16%, rgba(40, 126, 238, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(91, 62, 4, 0.94), rgba(32, 21, 4, 0.98)) !important;
    box-shadow:
        0 24px 54px rgba(32, 21, 4, 0.5),
        0 0 26px rgba(244, 212, 61, 0.14),
        inset 0 1px 0 rgba(255, 248, 200, 0.12) !important;
}

.reward-card.featured,
.reward-card:first-child,
.offer-card.featured,
.offer-card:first-child,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child,
.limited-card.is-active,
.limited-card.is-featured {
    border-color: rgba(255, 244, 168, 0.62) !important;
    background:
        linear-gradient(180deg, rgba(255, 248, 200, 0.12), transparent 26%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 229, 106, 0.28), transparent 52%),
        linear-gradient(180deg, rgba(128, 91, 9, 0.96), rgba(47, 33, 5, 0.98)) !important;
    box-shadow: 0 26px 58px rgba(32, 21, 4, 0.52), 0 0 34px rgba(255, 229, 106, 0.24) !important;
}

.reward-card::before,
.offer-card::before,
.game-card::before,
.limited-card::before,
#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article.featured::before,
#mycardwalletevent .lottery-rail article:first-child::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    background: linear-gradient(90deg, rgba(244, 212, 61, 0), rgba(255, 244, 168, 0.76), rgba(244, 212, 61, 0)) !important;
}

.reward-card h3,
.offer-card h3,
.game-card h3,
.limited-card h3,
.member-gate-card h3,
.social-task-card h3,
#mycardwalletevent .lottery-rail article h3,
.mall-card h3,
#lottery .tickets-rail article h3,
#more .tickets-rail article h3,
.detail-task-rail .register-task-card h3,
#preregister .preregister-card strong,
.section-heading h2,
.section-heading .section-title-copy h2 {
    color: #fff4a8 !important;
    text-shadow: 0 0 16px rgba(255, 229, 106, 0.42), 0 2px 0 rgba(32, 21, 4, 0.32) !important;
}

.reward-card p,
.offer-card p,
.game-card p,
.limited-card p,
.member-gate-card p,
.social-task-card p,
#mycardwalletevent .lottery-rail article p,
.mall-card p,
#lottery .tickets-rail article p,
#more .tickets-rail article p,
.detail-task-rail .register-task-card p,
.notice,
.inline-detail__desc,
.inline-detail__notes,
.inline-detail__meta,
.section-heading p,
.section-title-copy p {
    color: #fff0b8 !important;
}

.reward-card .tag,
.offer-card span,
.game-card span,
.limited-card b,
.member-gate-card b,
.social-task-card .tag,
.social-task-card > b,
#mycardwalletevent .wallet-bullet,
#mycardwalletevent .lottery-rail article b,
.detail-task-rail .register-task-card .tag,
.section-kicker {
    color: #241704 !important;
    border-color: rgba(255, 248, 200, 0.78) !important;
    background: linear-gradient(180deg, #fffce0 0%, #ffe56a 58%, #d8a912 100%) !important;
    box-shadow: 0 5px 0 rgba(91, 62, 4, 0.46), 0 0 18px rgba(255, 229, 106, 0.3) !important;
    -webkit-text-fill-color: currentColor !important;
}

.reward-card a,
.offer-card a,
.game-card a,
.limited-card a,
.member-gate-card a,
.social-task-card a,
.mall-card a,
#lottery .tickets-rail article a,
#more .tickets-rail article a,
#mycardwalletevent .lottery-rail article a,
.detail-task-rail .register-task-card a,
.primary-action,
.inline-detail__action,
.inline-detail__back,
.topup-actions a,
.wallet-actions a,
.preregister-action,
.side-nav .back-top {
    color: #241704 !important;
    border: 1px solid rgba(255, 248, 200, 0.82) !important;
    background: linear-gradient(180deg, #fffce0 0%, #ffe56a 52%, #d8a912 100%) !important;
    box-shadow: 0 8px 0 rgba(91, 62, 4, 0.55), 0 0 24px rgba(255, 229, 106, 0.42) !important;
    text-shadow: none !important;
}

.reward-card a:hover,
.offer-card a:hover,
.game-card a:hover,
.limited-card a:hover,
.member-gate-card a:hover,
.social-task-card a:hover,
.mall-card a:hover,
#lottery .tickets-rail article a:hover,
#more .tickets-rail article a:hover,
#mycardwalletevent .lottery-rail article a:hover,
.detail-task-rail .register-task-card a:hover,
.primary-action:hover,
.inline-detail__action:hover,
.inline-detail__back:hover,
.topup-actions a:hover,
.wallet-actions a:hover,
.preregister-action:hover,
.side-nav .back-top:hover {
    background: linear-gradient(180deg, #fffef0 0%, #fff06c 50%, #c79608 100%) !important;
    box-shadow: 0 10px 0 rgba(91, 62, 4, 0.52), 0 0 30px rgba(255, 229, 106, 0.58) !important;
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(ellipse at 50% -8%, rgba(255, 247, 166, 0.42), transparent 58%),
            radial-gradient(ellipse at 12% 20%, rgba(255, 229, 106, 0.18), transparent 54%),
            radial-gradient(ellipse at 88% 32%, rgba(40, 126, 238, 0.1), transparent 46%),
            linear-gradient(180deg, #241704 0%, #4f3708 48%, #8c6506 100%) !important;
        background-attachment: scroll !important;
    }
}


/* v1.0.3: milk-tea visual pass for quick icons, notification dots, hero controls, and all card families. */
:root {
    --cream: #f8ecd8;
    --rice: #fff7e8;
    --leaf: #d9b978;
    --leaf-dark: #7a5630;
    --bamboo: #ead3a6;
    --gold: #d9b978;
    --gold-soft: #fff0c8;
    --brown: #3a2a1d;
    --caramel: #a87a42;
    --red: #b68b4d;
    --ink: #2d2118;
    --muted: #84694f;
    --line: rgba(217, 185, 120, 0.3);
    --shadow: 0 22px 50px rgba(52, 37, 24, 0.2);
}

body {
    color: #fff7e8 !important;
    background:
        radial-gradient(ellipse at 50% -12%, rgba(255, 240, 200, 0.54) 0%, rgba(232, 205, 164, 0.22) 36%, transparent 64%),
        radial-gradient(ellipse at 14% 24%, rgba(217, 185, 120, 0.22) 0%, transparent 52%),
        radial-gradient(ellipse at 86% 26%, rgba(174, 143, 92, 0.18) 0%, transparent 46%),
        radial-gradient(ellipse at 50% 104%, rgba(113, 80, 45, 0.28) 0%, rgba(58, 42, 29, 0.34) 44%, transparent 78%),
        linear-gradient(180deg, #2f2319 0%, #5b432d 34%, #8d6a43 66%, #2b2018 100%) !important;
    background-attachment: fixed, fixed, fixed, fixed, fixed !important;
}

body::before {
    opacity: 0.92 !important;
    background:
        radial-gradient(ellipse at 50% 10%, rgba(255, 247, 232, 0.22), transparent 45%),
        radial-gradient(ellipse at 50% 56%, rgba(232, 205, 164, 0.14), transparent 58%),
        linear-gradient(112deg, transparent 0 18%, rgba(255, 240, 200, 0.11) 31%, transparent 48% 100%),
        linear-gradient(248deg, transparent 0 22%, rgba(217, 185, 120, 0.09) 38%, transparent 56% 100%) !important;
    background-size: auto !important;
}

main > .section:not(.hero):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final) {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.13), transparent 48%),
        radial-gradient(ellipse at 50% 100%, rgba(174, 143, 92, 0.08), transparent 52%),
        linear-gradient(180deg, rgba(255, 247, 232, 0.035), rgba(58, 42, 29, 0.12) 50%, rgba(255, 247, 232, 0.035)) !important;
}

main > .section:not(.hero):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final)::before {
    background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.34), rgba(217, 185, 120, 0.22), transparent) !important;
    opacity: 0.58 !important;
}

.hero::after,
.hero-art::after {
    background: linear-gradient(180deg, rgba(47, 35, 25, 0) 0%, rgba(91, 67, 45, 0.24) 56%, #5b432d 100%) !important;
}

.rail-control,
.rail-shell.has-prev .rail-prev,
.rail-shell.has-next .rail-next,
.quick-link-pager button {
    color: #2d2118 !important;
    border: 1px solid rgba(255, 247, 232, 0.86) !important;
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.42), transparent 42%),
        linear-gradient(180deg, #fff4dc 0%, #e8cda4 46%, #b88a50 100%) !important;
    box-shadow:
        0 8px 0 rgba(93, 65, 38, 0.54),
        0 0 22px rgba(232, 205, 164, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
    text-shadow: none !important;
}

.rail-control:hover,
.rail-control:focus-visible,
.quick-link-pager button:hover,
.quick-link-pager button:focus-visible {
    color: #2d2118 !important;
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.5), transparent 44%),
        linear-gradient(180deg, #fff8ea 0%, #f1dab5 50%, #a87a42 100%) !important;
    box-shadow: 0 10px 0 rgba(93, 65, 38, 0.5), 0 0 30px rgba(232, 205, 164, 0.56) !important;
}

.quick-panel,
[id="8icons"].quick-panel {
    border: 1px solid rgba(232, 205, 164, 0.34) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.2), transparent 58%),
        linear-gradient(180deg, rgba(94, 68, 43, 0.82), rgba(45, 33, 24, 0.94)) !important;
    box-shadow: 0 28px 62px rgba(45, 33, 24, 0.46), 0 0 30px rgba(232, 205, 164, 0.18) !important;
}

.quick-panel a,
body[data-lang] .quick-panel a {
    color: #fff7e8 !important;
    border: 1px solid rgba(232, 205, 164, 0.26) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.15), transparent 48%),
        linear-gradient(180deg, rgba(96, 70, 45, 0.76), rgba(46, 34, 25, 0.92)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.18), 0 12px 28px rgba(45, 33, 24, 0.28) !important;
}

.quick-panel a:hover,
.quick-panel a:focus-visible {
    border-color: rgba(255, 240, 200, 0.68) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.26), transparent 52%),
        linear-gradient(180deg, rgba(123, 91, 58, 0.88), rgba(58, 42, 29, 0.96)) !important;
    box-shadow: 0 16px 34px rgba(45, 33, 24, 0.34), 0 0 24px rgba(232, 205, 164, 0.28) !important;
}

.quick-panel span.has-icon,
.quick-panel a span.has-icon {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.quick-panel span.has-icon::before,
.quick-panel span.has-icon::after {
    display: none !important;
    content: none !important;
}

.quick-panel span.has-icon img,
.quick-panel span.has-icon svg {
    filter: drop-shadow(0 6px 10px rgba(45, 33, 24, 0.42)) drop-shadow(0 0 8px rgba(232, 205, 164, 0.24)) !important;
}

.quick-panel a.has-red-dot::after {
    background: #e8cda4 !important;
    border: 2px solid #fff7e8 !important;
    box-shadow: 0 0 0 0 rgba(232, 205, 164, 0.62), 0 0 14px rgba(255, 240, 200, 0.58) !important;
    animation: quickMilkTeaDotPulse 1.8s ease-in-out infinite !important;
}

@keyframes quickMilkTeaDotPulse {
    0%, 100% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(232, 205, 164, 0.56), 0 0 12px rgba(255, 240, 200, 0.46);
    }
    50% {
        transform: scale(1.16);
        box-shadow: 0 0 0 8px rgba(232, 205, 164, 0), 0 0 20px rgba(255, 240, 200, 0.68);
    }
}

.reward-card,
.offer-card,
.game-card,
.game-card-image,
.limited-card,
.member-gate-card,
.social-task-card,
.social-video-card,
.preregister-card,
#preregister .preregister-card,
#preregister .preregister-card > a,
.register-product-card,
.register-task-card,
.detail-task-rail .register-task-card,
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even),
.mall-card,
#lottery .tickets-rail article,
#more .tickets-rail article,
.inline-detail__panel,
.notice {
    color: #fff7e8 !important;
    border: 1px solid rgba(232, 205, 164, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(255, 247, 232, 0.08), transparent 24%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.18), transparent 50%),
        radial-gradient(ellipse at 84% 16%, rgba(174, 143, 92, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(90, 66, 42, 0.94), rgba(45, 33, 24, 0.98)) !important;
    box-shadow:
        0 24px 54px rgba(45, 33, 24, 0.46),
        0 0 26px rgba(232, 205, 164, 0.14),
        inset 0 1px 0 rgba(255, 247, 232, 0.12) !important;
}

.reward-card.featured,
.reward-card:first-child,
.offer-card.featured,
.offer-card:first-child,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child,
.limited-card.is-active,
.limited-card.is-featured {
    border-color: rgba(255, 240, 200, 0.62) !important;
    background:
        linear-gradient(180deg, rgba(255, 247, 232, 0.12), transparent 26%),
        radial-gradient(ellipse at 50% 0%, rgba(232, 205, 164, 0.28), transparent 52%),
        linear-gradient(180deg, rgba(121, 88, 54, 0.96), rgba(58, 42, 29, 0.98)) !important;
    box-shadow: 0 26px 58px rgba(45, 33, 24, 0.5), 0 0 34px rgba(232, 205, 164, 0.24) !important;
}

.reward-card::before,
.offer-card::before,
.game-card::before,
.limited-card::before,
.member-gate-card::before,
.social-task-card::before,
#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article.featured::before,
#mycardwalletevent .lottery-rail article:first-child::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before {
    background: linear-gradient(90deg, rgba(232, 205, 164, 0), rgba(255, 240, 200, 0.72), rgba(232, 205, 164, 0)) !important;
}

.reward-card h3,
.offer-card h3,
.game-card h3,
.limited-card h3,
.member-gate-card h3,
.social-task-card h3,
.social-video-card h3,
.register-product-card h4,
.register-task-card h3,
#mycardwalletevent .lottery-rail article h3,
.mall-card h3,
#lottery .tickets-rail article h3,
#more .tickets-rail article h3,
.detail-task-rail .register-task-card h3,
#preregister .preregister-card strong,
.section-heading h2,
.section-heading .section-title-copy h2 {
    color: #fff0c8 !important;
    text-shadow: 0 0 16px rgba(232, 205, 164, 0.38), 0 2px 0 rgba(45, 33, 24, 0.32) !important;
}

.reward-card p,
.offer-card p,
.game-card p,
.limited-card p,
.member-gate-card p,
.social-task-card p,
.social-video-card p,
.register-product-card p,
.register-task-card p,
#mycardwalletevent .lottery-rail article p,
.mall-card p,
#lottery .tickets-rail article p,
#more .tickets-rail article p,
.detail-task-rail .register-task-card p,
.notice,
.inline-detail__desc,
.inline-detail__notes,
.inline-detail__meta,
.section-heading p,
.section-title-copy p {
    color: #f8e3c3 !important;
}

.reward-card .tag,
.offer-card span,
.game-card span,
.limited-card b,
.member-gate-card b,
.social-task-card .tag,
.social-task-card > b,
.register-task-card .tag,
#mycardwalletevent .wallet-bullet,
#mycardwalletevent .lottery-rail article b,
.detail-task-rail .register-task-card .tag,
.section-kicker {
    color: #2d2118 !important;
    border-color: rgba(255, 247, 232, 0.78) !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 58%, #b88a50 100%) !important;
    box-shadow: 0 5px 0 rgba(93, 65, 38, 0.44), 0 0 18px rgba(232, 205, 164, 0.3) !important;
    -webkit-text-fill-color: currentColor !important;
}

.reward-card a,
.offer-card a,
.game-card a,
.limited-card a,
.member-gate-card a,
.social-task-card a,
.register-product-card a,
.register-task-card a,
.mall-card a,
#lottery .tickets-rail article a,
#more .tickets-rail article a,
#mycardwalletevent .lottery-rail article a,
.detail-task-rail .register-task-card a,
.primary-action,
.inline-detail__action,
.inline-detail__back,
.topup-actions a,
.wallet-actions a,
.preregister-action,
.side-nav .back-top {
    color: #2d2118 !important;
    border: 1px solid rgba(255, 247, 232, 0.82) !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 52%, #b88a50 100%) !important;
    box-shadow: 0 8px 0 rgba(93, 65, 38, 0.54), 0 0 24px rgba(232, 205, 164, 0.42) !important;
    text-shadow: none !important;
}

.reward-card a:hover,
.offer-card a:hover,
.game-card a:hover,
.limited-card a:hover,
.member-gate-card a:hover,
.social-task-card a:hover,
.register-product-card a:hover,
.register-task-card a:hover,
.mall-card a:hover,
#lottery .tickets-rail article a:hover,
#more .tickets-rail article a:hover,
#mycardwalletevent .lottery-rail article a:hover,
.detail-task-rail .register-task-card a:hover,
.primary-action:hover,
.inline-detail__action:hover,
.inline-detail__back:hover,
.topup-actions a:hover,
.wallet-actions a:hover,
.preregister-action:hover,
.side-nav .back-top:hover {
    background: linear-gradient(180deg, #fffbf2 0%, #f1dab5 50%, #a87a42 100%) !important;
    box-shadow: 0 10px 0 rgba(93, 65, 38, 0.5), 0 0 30px rgba(232, 205, 164, 0.56) !important;
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(ellipse at 50% -8%, rgba(255, 240, 200, 0.42), transparent 58%),
            radial-gradient(ellipse at 12% 20%, rgba(232, 205, 164, 0.18), transparent 54%),
            radial-gradient(ellipse at 88% 32%, rgba(174, 143, 92, 0.12), transparent 46%),
            linear-gradient(180deg, #2f2319 0%, #5b432d 48%, #8d6a43 100%) !important;
        background-attachment: scroll !important;
    }
}

/* v1.0.4: complete milk-tea style audit cleanup for active August selectors. */
:root {
    --aug-milk-bg: #6f573c;
    --aug-milk-deep: #2f2319;
    --aug-milk-deeper: #231a13;
    --aug-milk-mid: #5b432d;
    --aug-milk-tea: #8d6a43;
    --aug-milk-gold: #b88a50;
    --aug-milk-light: #e8cda4;
    --aug-milk-cream: #fff7e8;
    --aug-milk-soft: #f8e3c3;
}

html,
body {
    background:
        radial-gradient(ellipse at 50% -16%, rgba(255, 247, 232, 0.58), transparent 56%),
        radial-gradient(ellipse at 12% 20%, rgba(232, 205, 164, 0.22), transparent 46%),
        radial-gradient(ellipse at 88% 34%, rgba(184, 138, 80, 0.16), transparent 48%),
        linear-gradient(180deg, #8a7356 0%, #6f573c 38%, #4f3b29 72%, #2f2319 100%) !important;
    background-attachment: fixed !important;
}

body::before {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 247, 232, 0.32), transparent 58%),
        linear-gradient(180deg, rgba(255, 247, 232, 0.14), rgba(232, 205, 164, 0.07) 42%, rgba(47, 35, 25, 0.16)) !important;
    opacity: 1 !important;
}

body::after {
    background:
        linear-gradient(115deg, transparent 0 30%, rgba(255, 247, 232, 0.09) 30% 30.25%, transparent 30.25% 64%, rgba(232, 205, 164, 0.08) 64% 64.25%, transparent 64.25%),
        radial-gradient(ellipse at 50% 100%, rgba(47, 35, 25, 0.22), transparent 52%) !important;
    opacity: 0.72 !important;
}

.site-header,
body[data-lang] .site-header,
.bottom-nav,
body[data-lang] .bottom-nav {
    border-color: rgba(232, 205, 164, 0.38) !important;
    background:
        linear-gradient(180deg, rgba(91, 67, 45, 0.94), rgba(47, 35, 25, 0.96)) !important;
    box-shadow: 0 18px 42px rgba(47, 35, 25, 0.42), 0 0 22px rgba(232, 205, 164, 0.18) !important;
    backdrop-filter: blur(18px) saturate(118%) !important;
}

.header-nav a,
.lang-current,
.lang-menu,
.lang-menu button,
.bottom-nav a,
.bottom-nav a span,
.bottom-nav button,
.side-nav a,
.side-nav-toggle {
    color: var(--aug-milk-cream) !important;
    border-color: rgba(232, 205, 164, 0.28) !important;
    background-color: rgba(74, 54, 36, 0.72) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.header-nav a:hover,
.header-nav a.is-active,
.lang-current:hover,
.lang-menu button:hover,
.lang-menu button.is-active,
.bottom-nav a:hover,
.bottom-nav a.is-active,
.bottom-nav button.is-active,
.side-nav a:hover,
.side-nav a.is-active,
.side-nav-toggle:hover {
    color: #2f2319 !important;
    border-color: rgba(255, 247, 232, 0.78) !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 56%, #b88a50 100%) !important;
    box-shadow: 0 8px 20px rgba(47, 35, 25, 0.28), 0 0 18px rgba(232, 205, 164, 0.34) !important;
}

.lang-mark,
.lang-current .lang-mark {
    color: #2f2319 !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 58%, #b88a50 100%) !important;
    box-shadow: 0 0 16px rgba(232, 205, 164, 0.36) !important;
}

.hero,
body[data-lang] .hero {
    background:
        radial-gradient(ellipse at 50% -12%, rgba(255, 247, 232, 0.72), transparent 50%),
        radial-gradient(ellipse at 18% 18%, rgba(232, 205, 164, 0.28), transparent 44%),
        radial-gradient(ellipse at 84% 24%, rgba(184, 138, 80, 0.2), transparent 46%),
        linear-gradient(180deg, #9a8263 0%, #7a6144 38%, #5b432d 68%, #2f2319 100%) !important;
    box-shadow: inset 0 -60px 80px rgba(47, 35, 25, 0.32) !important;
}

.hero::before,
.hero::after {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 247, 232, 0.26), transparent 58%),
        linear-gradient(180deg, rgba(255, 247, 232, 0), rgba(232, 205, 164, 0.08) 52%, rgba(47, 35, 25, 0.1)) !important;
    opacity: 1 !important;
}

.hero-art,
body[data-lang] .hero-art {
    border-color: rgba(255, 247, 232, 0.32) !important;
    background-color: rgba(91, 67, 45, 0.18) !important;
    box-shadow: 0 22px 48px rgba(47, 35, 25, 0.42), 0 0 26px rgba(232, 205, 164, 0.2) !important;
}

.hero-art::before,
.hero-art::after {
    background: linear-gradient(90deg, rgba(232, 205, 164, 0), rgba(255, 247, 232, 0.36), rgba(232, 205, 164, 0)) !important;
    box-shadow: none !important;
}

.section-heading,
.section-title-row,
.section-title-icon-frame,
.inline-detail__header {
    border-color: rgba(232, 205, 164, 0.28) !important;
    background:
        linear-gradient(180deg, rgba(255, 247, 232, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(91, 67, 45, 0.66), rgba(47, 35, 25, 0.72)) !important;
    box-shadow: 0 18px 40px rgba(47, 35, 25, 0.28), 0 0 18px rgba(232, 205, 164, 0.12) !important;
}

.section-heading::before,
.section-title-row::before,
.inline-detail__header::before {
    background: linear-gradient(90deg, rgba(232, 205, 164, 0), rgba(255, 247, 232, 0.7), rgba(232, 205, 164, 0)) !important;
    box-shadow: 0 0 14px rgba(232, 205, 164, 0.24) !important;
}

.section-heading h2,
.section-title-copy h2,
#detailTaskTitle,
#inlineDetailTitle,
main > .section:not(.inline-detail):not(.detail-task-section) .reward-card h3,
main > .section:not(.inline-detail):not(.detail-task-section) .offer-card h3,
main > .section:not(.inline-detail):not(.detail-task-section) .limited-card h3,
main > .section:not(.inline-detail):not(.detail-task-section) .social-task-card h3,
main > .section:not(.inline-detail):not(.detail-task-section) .mall-card h3,
#membertasks .reward-card h3,
#membertasks .reward-card.featured h3,
#membertasks .reward-card:first-child h3,
#topupbonus .offer-card h3,
#topupbonus .offer-card.featured h3,
#topupbonus .offer-card:first-child h3,
#limited .limited-card h3,
#socialtasks .social-task-card h3,
#socialtasks .social-video-card h3,
#mymall .mall-card h3,
#preregister .preregister-card strong,
#mycardwalletevent .lottery-rail article h3,
#lottery .tickets-rail article h3,
#more .tickets-rail article h3 {
    color: #fff0c8 !important;
    text-shadow: 0 0 14px rgba(232, 205, 164, 0.34), 0 2px 0 rgba(47, 35, 25, 0.28) !important;
    -webkit-text-fill-color: currentColor !important;
}

.section-heading p,
.section-title-copy p,
.inline-detail__kicker,
.inline-detail__desc,
.inline-detail__notes,
.inline-detail__meta,
.section-kicker {
    color: var(--aug-milk-soft) !important;
    text-shadow: none !important;
}

.reward-card,
.offer-card,
.game-card,
.game-card-image,
.limited-card,
.limited-card.is-active,
.limited-card.is-featured,
.member-gate-card,
.social-task-card,
.section-social-tasks .social-task-card,
#socialtasks .social-task-card,
.social-video-card,
#socialtasks .social-video-card,
.preregister-card,
#preregister .preregister-card,
#preregister .preregister-card > a,
.register-product-card,
.register-task-card,
.detail-task-rail .register-task-card,
#membertasks .reward-card,
#membertasks .rail-large > .reward-card,
body[data-lang] #membertasks .rail-large > .reward-card,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#topupbonus .offer-card,
#topupbonus .topup-rail .offer-card,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child,
#limited .limited-card,
#mymall .mall-card,
#hotgames .game-card,
#hotgames .game-card-image,
#mycardwalletevent .lottery-rail article,
#mycardwalletevent .lottery-rail article.featured,
#mycardwalletevent .lottery-rail article:first-child,
#mycardwalletevent .lottery-rail article:nth-child(odd),
#mycardwalletevent .lottery-rail article:nth-child(even),
#lottery .tickets-rail article,
#more .tickets-rail article,
.inline-detail__panel,
.home-notice__panel,
.notice {
    color: var(--aug-milk-cream) !important;
    border-color: rgba(232, 205, 164, 0.36) !important;
    background:
        linear-gradient(180deg, rgba(255, 247, 232, 0.09), transparent 26%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.18), transparent 52%),
        radial-gradient(ellipse at 88% 14%, rgba(184, 138, 80, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(91, 67, 45, 0.94), rgba(47, 35, 25, 0.98)) !important;
    box-shadow: 0 24px 54px rgba(47, 35, 25, 0.46), 0 0 24px rgba(232, 205, 164, 0.14), inset 0 1px 0 rgba(255, 247, 232, 0.14) !important;
}

.reward-card.featured,
.reward-card:first-child,
.offer-card.featured,
.offer-card:first-child,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#membertasks .rail-large > .reward-card:first-child,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child,
#limited .limited-card.is-active,
#limited .limited-card.is-featured,
.limited-card.is-active,
.limited-card.is-featured {
    border-color: rgba(255, 247, 232, 0.62) !important;
    background:
        linear-gradient(180deg, rgba(255, 247, 232, 0.13), transparent 28%),
        radial-gradient(ellipse at 50% 0%, rgba(232, 205, 164, 0.27), transparent 54%),
        linear-gradient(180deg, rgba(126, 93, 58, 0.96), rgba(58, 42, 29, 0.99)) !important;
    box-shadow: 0 26px 60px rgba(47, 35, 25, 0.5), 0 0 32px rgba(232, 205, 164, 0.24), inset 0 1px 0 rgba(255, 247, 232, 0.18) !important;
}

.reward-card::before,
.offer-card::before,
.game-card::before,
.limited-card::before,
.member-gate-card::before,
.social-task-card::before,
.section-social-tasks .social-task-card::before,
#socialtasks .social-task-card::before,
#membertasks .reward-card::before,
#topupbonus .offer-card::before,
#mymall .mall-card::before,
#mycardwalletevent .lottery-rail article::before,
#lottery .tickets-rail article::before,
#more .tickets-rail article::before {
    background: linear-gradient(90deg, rgba(232, 205, 164, 0), rgba(255, 247, 232, 0.72), rgba(232, 205, 164, 0)) !important;
    box-shadow: 0 0 14px rgba(232, 205, 164, 0.2) !important;
}

.reward-card p,
.offer-card p,
.offer-card p:not(.offer-media),
.game-card p,
.limited-card p,
.member-gate-card p,
.social-task-card p,
.social-video-card p,
.mall-card p,
#membertasks .reward-card p,
#topupbonus .offer-card p,
#limited .limited-card p,
#socialtasks .social-task-card p,
#mymall .mall-card p,
#mycardwalletevent .lottery-rail article p,
#lottery .tickets-rail article p,
#more .tickets-rail article p,
.register-product-card p,
.register-task-card p,
.detail-task-rail .register-task-card p {
    color: var(--aug-milk-soft) !important;
    text-shadow: none !important;
}

.reward-card .tag,
.offer-card span,
#topupbonus .offer-card span,
#topupbonus .offer-card.featured span,
#topupbonus .offer-card:first-child span,
.game-card span,
.limited-card b,
.limited-card span,
.social-task-card .tag,
.social-task-card > b,
#mymall .mall-card .tag,
#mymall .mall-card .tag-placeholder,
.register-task-card .tag,
#mycardwalletevent .wallet-bullet,
#mycardwalletevent .lottery-rail article b,
.detail-task-rail .register-task-card .tag {
    color: var(--aug-milk-deep) !important;
    border-color: rgba(255, 247, 232, 0.78) !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 58%, #b88a50 100%) !important;
    box-shadow: 0 5px 0 rgba(93, 65, 38, 0.42), 0 0 16px rgba(232, 205, 164, 0.28) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.reward-card a,
.offer-card a,
.game-card a,
.limited-card a,
.member-gate-card a,
.social-task-card a,
.register-product-card a,
.register-task-card a,
.mall-card a,
#membertasks .reward-card a,
#membertasks .reward-card.featured a,
#membertasks .reward-card:first-child a,
#membertasks .rail-large > .reward-card:first-child a,
#limited .limited-card a,
#topupbonus .topup-rail .offer-card a,
#topupbonus .offer-card.featured a,
#topupbonus .offer-card:first-child a,
#socialtasks .social-task-card a,
#mymall .mall-card a,
#lottery .tickets-rail article a,
#more .tickets-rail article a,
#mycardwalletevent .lottery-rail article a,
.detail-task-rail .register-task-card a,
.primary-action,
.inline-detail__action,
.inline-detail__back,
.topup-actions a,
.wallet-actions a,
.preregister-action,
.side-nav .back-top {
    color: var(--aug-milk-deep) !important;
    border-color: rgba(255, 247, 232, 0.82) !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 52%, #b88a50 100%) !important;
    box-shadow: 0 8px 0 rgba(93, 65, 38, 0.52), 0 0 22px rgba(232, 205, 164, 0.4) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.reward-card a:hover,
.offer-card a:hover,
.game-card a:hover,
.limited-card a:hover,
.member-gate-card a:hover,
.social-task-card a:hover,
.register-product-card a:hover,
.register-task-card a:hover,
.mall-card a:hover,
#membertasks .reward-card a:hover,
#limited .limited-card a:hover,
#topupbonus .topup-rail .offer-card a:hover,
#socialtasks .social-task-card a:hover,
#mymall .mall-card a:hover,
#lottery .tickets-rail article a:hover,
#more .tickets-rail article a:hover,
#mycardwalletevent .lottery-rail article a:hover,
.detail-task-rail .register-task-card a:hover,
.primary-action:hover,
.inline-detail__action:hover,
.inline-detail__back:hover,
.topup-actions a:hover,
.wallet-actions a:hover,
.preregister-action:hover,
.side-nav .back-top:hover {
    background: linear-gradient(180deg, #fffbf2 0%, #f1dab5 50%, #a87a42 100%) !important;
    box-shadow: 0 10px 0 rgba(93, 65, 38, 0.48), 0 0 28px rgba(232, 205, 164, 0.54) !important;
}

.offer-card p.offer-media,
#topupbonus .topup-rail .offer-card p.offer-media,
.section-social-tasks .social-task-card .feature-media,
#membertasks .reward-card p.offer-media,
.payment-icon,
.game-card-image {
    border-color: rgba(232, 205, 164, 0.26) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 247, 232, 0.12), transparent 54%),
        linear-gradient(180deg, rgba(255, 247, 232, 0.08), rgba(47, 35, 25, 0.24)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.12), 0 12px 28px rgba(47, 35, 25, 0.28) !important;
}

.quick-panel,
[id="8icons"].quick-panel {
    border-color: rgba(232, 205, 164, 0.38) !important;
    background: linear-gradient(180deg, rgba(91, 67, 45, 0.88), rgba(47, 35, 25, 0.94)) !important;
    box-shadow: 0 28px 62px rgba(47, 35, 25, 0.46), 0 0 26px rgba(232, 205, 164, 0.16) !important;
}

.quick-panel a,
body[data-lang] .quick-panel a {
    color: var(--aug-milk-cream) !important;
    border-color: rgba(232, 205, 164, 0.3) !important;
    background: linear-gradient(180deg, rgba(96, 70, 45, 0.78), rgba(47, 35, 25, 0.9)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.14), 0 12px 26px rgba(47, 35, 25, 0.28) !important;
}

.quick-panel span.has-icon,
.quick-panel a span.has-icon,
.bottom-nav span.has-icon {
    border: 0 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.quick-panel span.has-icon::before,
.quick-panel span.has-icon::after,
.bottom-nav span.has-icon::before,
.bottom-nav span.has-icon::after {
    display: none !important;
    content: none !important;
}

.quick-panel a.has-red-dot::after,
.quick-panel a[data-new="true"]::after {
    background: #e8cda4 !important;
    border-color: #fff7e8 !important;
    box-shadow: 0 0 0 0 rgba(232, 205, 164, 0.62), 0 0 14px rgba(255, 240, 200, 0.58) !important;
    animation: quickMilkTeaDotPulse 1.8s ease-in-out infinite !important;
}

.coloredSvg [fill="#00adee"],
.coloredSvg [fill="#00ADEE"],
.coloredSvg [fill="#13dfff"],
.coloredSvg [fill="#13DFFF"],
.coloredSvg [fill="#0877ff"],
.coloredSvg [fill="#0877FF"],
.quick-panel svg [fill="#00adee"],
.quick-panel svg [fill="#00ADEE"],
.quick-panel svg [fill="#13dfff"],
.offer-card p.offer-media svg [fill="#00adee"],
.offer-card p.offer-media svg [fill="#00ADEE"],
.offer-card p.offer-media svg [fill="#13dfff"],
.payment-icon svg [fill="#00adee"],
.payment-icon svg [fill="#00ADEE"],
.social-link-panel svg [fill="#00adee"],
.social-link-panel svg [fill="#00ADEE"],
.bottom-nav svg [fill="#00adee"],
.bottom-nav svg [fill="#00ADEE"] {
    fill: #e8cda4 !important;
}

.coloredSvg [stroke="#00adee"],
.coloredSvg [stroke="#00ADEE"],
.coloredSvg [stroke="#13dfff"],
.coloredSvg [stroke="#13DFFF"],
.coloredSvg [stroke="#0877ff"],
.coloredSvg [stroke="#0877FF"],
.quick-panel svg [stroke="#00adee"],
.quick-panel svg [stroke="#00ADEE"],
.quick-panel svg [stroke="#13dfff"],
.offer-card p.offer-media svg [stroke="#00adee"],
.offer-card p.offer-media svg [stroke="#00ADEE"],
.offer-card p.offer-media svg [stroke="#13dfff"],
.payment-icon svg [stroke="#00adee"],
.payment-icon svg [stroke="#00ADEE"],
.social-link-panel svg [stroke="#00adee"],
.social-link-panel svg [stroke="#00ADEE"],
.bottom-nav svg [stroke="#00adee"],
.bottom-nav svg [stroke="#00ADEE"] {
    stroke: #e8cda4 !important;
}

.bottom-nav svg,
.quick-panel svg,
.offer-card p.offer-media svg,
.payment-icon svg,
.social-link-panel svg {
    color: #e8cda4 !important;
    filter: drop-shadow(0 5px 8px rgba(47, 35, 25, 0.36)) !important;
}

@media (max-width: 768px) {
    html,
    body {
        background:
            radial-gradient(ellipse at 50% -8%, rgba(255, 247, 232, 0.52), transparent 58%),
            radial-gradient(ellipse at 14% 22%, rgba(232, 205, 164, 0.2), transparent 54%),
            linear-gradient(180deg, #8a7356 0%, #6f573c 44%, #4f3b29 78%, #2f2319 100%) !important;
        background-attachment: scroll !important;
    }

    .site-header,
    .bottom-nav {
        background: linear-gradient(180deg, rgba(91, 67, 45, 0.96), rgba(47, 35, 25, 0.98)) !important;
    }
}


/* v1.0.4 audit patch: remove remaining active blue from high-specificity UI layers. */
body#top header.site-header .lang-switch .lang-current,
body#top header.site-header .lang-switch #langMenu.lang-menu,
body#top header.site-header .lang-switch .lang-menu {
    color: #fff7e8 !important;
    border-color: rgba(232, 205, 164, 0.34) !important;
    background: linear-gradient(180deg, rgba(91, 67, 45, 0.96), rgba(47, 35, 25, 0.98)) !important;
    background-color: rgba(91, 67, 45, 0.96) !important;
    box-shadow: 0 14px 34px rgba(47, 35, 25, 0.36), 0 0 18px rgba(232, 205, 164, 0.18) !important;
}

body#top header.site-header .lang-switch #langMenu.lang-menu button,
body#top header.site-header .lang-switch #langMenu.lang-menu button.is-active,
body#top header.site-header .lang-switch .lang-menu button.is-active {
    color: #2f2319 !important;
    border-color: rgba(255, 247, 232, 0.78) !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 58%, #b88a50 100%) !important;
    box-shadow: 0 0 16px rgba(232, 205, 164, 0.34) !important;
    text-shadow: none !important;
}

.hero,
body[data-lang] .hero {
    border-color: rgba(255, 247, 232, 0.24) !important;
    border-bottom-color: rgba(232, 205, 164, 0.34) !important;
}

[id="8icons"].quick-panel > a::before,
.quick-panel > a::before,
.quick-panel a::before {
    background: radial-gradient(circle at 18% 18%, rgba(255, 247, 232, 0.16), transparent 28%), linear-gradient(135deg, rgba(232, 205, 164, 0.12), rgba(91, 67, 45, 0.08)) !important;
    box-shadow: none !important;
}

.section-heading,
.section-heading *,
.section-title-row,
.section-title-row *,
.section-title-icon-frame,
.section-title-copy,
.section-title-copy *,
.inline-detail__header,
.inline-detail__header *,
main > .section .section-heading,
main > .section .section-heading * {
    text-shadow: none !important;
    color: #fff7e8 !important;
    -webkit-text-fill-color: currentColor !important;
}

.section-heading h2,
.section-title-copy h2,
.section-heading strong,
.section-heading b,
.section-title-copy strong,
#detailTaskTitle,
#inlineDetailTitle {
    color: #fff0c8 !important;
    text-shadow: 0 0 14px rgba(232, 205, 164, 0.34), 0 2px 0 rgba(47, 35, 25, 0.28) !important;
}

#topupbonus .topup-rail > article.offer-card h3,
#topupbonus .topup-rail article.offer-card h3,
section#topupbonus .topup-rail article.offer-card > h3,
body#top main section#topupbonus .topup-rail article.offer-card > h3,
#topupbonus .offer-card h3,
#topupbonus .offer-card h3 *,
#topupbonus .offer-card h3 br {
    color: #fff0c8 !important;
    border-color: rgba(255, 240, 200, 0.42) !important;
    text-shadow: 0 0 14px rgba(232, 205, 164, 0.32), 0 2px 0 rgba(47, 35, 25, 0.26) !important;
    -webkit-text-fill-color: currentColor !important;
}

.payment-grid > a,
.payment-rail > a,
#topupbonus .payment-grid > a,
#topupbonus .payment-rail > a,
section#topupbonus .payment-grid.rail.payment-rail > a,
main section#topupbonus .payment-grid.rail.payment-rail > a {
    color: #fff7e8 !important;
    border-color: rgba(232, 205, 164, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(255, 247, 232, 0.09), transparent 26%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.16), transparent 52%),
        linear-gradient(180deg, rgba(91, 67, 45, 0.94), rgba(47, 35, 25, 0.98)) !important;
    box-shadow: 0 22px 50px rgba(47, 35, 25, 0.42), 0 0 22px rgba(232, 205, 164, 0.14) !important;
    text-shadow: none !important;
}

.payment-grid > a strong,
.payment-rail > a strong,
#topupbonus .payment-grid > a strong,
#topupbonus .payment-rail > a strong,
section#topupbonus .payment-grid.rail.payment-rail > a strong {
    color: #fff0c8 !important;
    text-shadow: 0 0 12px rgba(232, 205, 164, 0.32) !important;
    -webkit-text-fill-color: currentColor !important;
}

.payment-grid > a span,
.payment-rail > a span,
#topupbonus .payment-grid > a span,
#topupbonus .payment-rail > a span {
    color: #f8e3c3 !important;
    text-shadow: none !important;
}

.payment-grid > a::before,
.payment-rail > a::before,
#topupbonus .payment-grid > a::before,
#topupbonus .payment-rail > a::before {
    background: linear-gradient(90deg, rgba(232, 205, 164, 0), rgba(255, 247, 232, 0.58), rgba(232, 205, 164, 0)) !important;
    box-shadow: none !important;
}


/* v1.0.4 audit patch 2: valid numeric-id selectors and section pseudo cleanup. */
[id="8icons"].quick-panel > a::before,
body#top main section[id="8icons"].quick-panel > a::before,
.quick-panel > a::before,
.quick-panel a::before {
    background: radial-gradient(circle at 18% 18%, rgba(255, 247, 232, 0.16), transparent 28%), linear-gradient(135deg, rgba(232, 205, 164, 0.12), rgba(91, 67, 45, 0.08)) !important;
    box-shadow: none !important;
}

main > .section::before,
main > .section::after,
.section::before,
.section::after,
.rail-shell::before,
.rail-shell::after,
.rail::before,
.rail::after {
    background: linear-gradient(90deg, rgba(232, 205, 164, 0), rgba(255, 240, 200, 0.34), rgba(217, 185, 120, 0.22), rgba(232, 205, 164, 0)) !important;
    box-shadow: none !important;
}

#mycardwalletevent .lottery-rail article::before,
#mycardwalletevent .lottery-rail article.featured::before,
#mycardwalletevent .lottery-rail article:first-child::before,
#mycardwalletevent .lottery-rail article:nth-child(odd)::before,
#mycardwalletevent .lottery-rail article:nth-child(even)::before,
body#top main section#mycardwalletevent .lottery-rail article::before,
body#top main section#mycardwalletevent .lottery-rail article.featured::before,
#mycardwalletevent .lottery-rail article::after,
#mycardwalletevent .lottery-rail article.featured::after,
#mycardwalletevent .lottery-rail article:first-child::after,
#mycardwalletevent .lottery-rail article:nth-child(odd)::after,
#mycardwalletevent .lottery-rail article:nth-child(even)::after,
body#top main section#mycardwalletevent .lottery-rail article::after,
body#top main section#mycardwalletevent .lottery-rail article.featured::after {
    background: linear-gradient(90deg, rgba(232, 205, 164, 0), rgba(255, 247, 232, 0.62), rgba(232, 205, 164, 0)) !important;
    box-shadow: none !important;
}

#mycardwalletevent .lottery-rail article h3,
#mycardwalletevent .lottery-rail article.featured h3,
#mycardwalletevent .lottery-rail article:first-child h3 {
    color: #fff0c8 !important;
    text-shadow: 0 0 14px rgba(232, 205, 164, 0.34), 0 2px 0 rgba(47, 35, 25, 0.28) !important;
    -webkit-text-fill-color: currentColor !important;
}

#topupbonus .topup-actions a,
body#top main section#topupbonus .topup-actions a,
#lottery .tickets-rail article a,
#lottery .tickets-rail article.featured a,
#more .tickets-rail article a,
#more .tickets-rail article.featured a {
    color: #2f2319 !important;
    border-color: rgba(255, 247, 232, 0.82) !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 52%, #b88a50 100%) !important;
    box-shadow: 0 8px 0 rgba(93, 65, 38, 0.52), 0 0 22px rgba(232, 205, 164, 0.4) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}


/* v1.0.4 audit patch 3: outer navigation, footer, notice, and rail container cleanup. */
#mycardwalletevent .lottery-shell,
#mycardwalletevent .lottery-rail,
body#top main section#mycardwalletevent .lottery-shell,
body#top main section#mycardwalletevent .lottery-rail {
    border-color: rgba(232, 205, 164, 0.26) !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.12), transparent 54%),
        linear-gradient(180deg, rgba(91, 67, 45, 0.28), rgba(47, 35, 25, 0.18)) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

#mycardwalletevent .lottery-shell::before,
#mycardwalletevent .lottery-shell::after,
#mycardwalletevent .lottery-rail::before,
#mycardwalletevent .lottery-rail::after {
    background: linear-gradient(90deg, rgba(232, 205, 164, 0), rgba(255, 240, 200, 0.32), rgba(232, 205, 164, 0)) !important;
    box-shadow: none !important;
}

.site-footer,
.site-footer *,
.site-footer__inner,
.site-footer__apps,
.site-footer__apps a,
.site-footer__inner p {
    color: #f8e3c3 !important;
    border-color: rgba(232, 205, 164, 0.24) !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.site-footer {
    background: linear-gradient(180deg, rgba(47, 35, 25, 0.82), rgba(35, 26, 19, 0.96)) !important;
    box-shadow: 0 -18px 42px rgba(47, 35, 25, 0.34) !important;
}

.home-notice__panel,
.home-notice__panel *,
.home-notice__close,
#homeNoticeTitle {
    color: #fff7e8 !important;
    border-color: rgba(232, 205, 164, 0.34) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.home-notice__panel {
    background: linear-gradient(180deg, rgba(91, 67, 45, 0.96), rgba(47, 35, 25, 0.98)) !important;
    box-shadow: 0 24px 54px rgba(47, 35, 25, 0.46), 0 0 24px rgba(232, 205, 164, 0.14) !important;
}

.side-nav,
.side-nav *,
.side-nav-toggle,
#mobileFloatLinks,
#mobileFloatLinks a,
#mobileFloatLinks button,
.detail-back-float {
    color: #fff7e8 !important;
    border-color: rgba(232, 205, 164, 0.3) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.side-nav-toggle,
#mobileFloatLinks a,
#mobileFloatLinks button,
.detail-back-float {
    background: linear-gradient(180deg, rgba(91, 67, 45, 0.94), rgba(47, 35, 25, 0.98)) !important;
}

.side-nav-toggle:hover,
#mobileFloatLinks a:hover,
#mobileFloatLinks a.is-active,
#mobileFloatLinks button:hover,
.detail-back-float:hover {
    color: #2f2319 !important;
    background: linear-gradient(180deg, #fff7e8 0%, #e8cda4 56%, #b88a50 100%) !important;
    box-shadow: 0 8px 20px rgba(47, 35, 25, 0.28), 0 0 18px rgba(232, 205, 164, 0.34) !important;
}


/* v1.0.4 audit patch 4: home notice close button final cleanup. */
#homeNotice .home-notice__panel .home-notice__close,
body#top #homeNotice.home-notice .home-notice__panel button.home-notice__close {
    color: #fff7e8 !important;
    border-color: rgba(232, 205, 164, 0.34) !important;
    background: rgba(91, 67, 45, 0.78) !important;
    box-shadow: 0 8px 18px rgba(47, 35, 25, 0.28) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}

#homeNotice .home-notice__panel .home-notice__close::before,
#homeNotice .home-notice__panel .home-notice__close::after,
body#top #homeNotice.home-notice .home-notice__panel button.home-notice__close::before,
body#top #homeNotice.home-notice .home-notice__panel button.home-notice__close::after {
    background: none !important;
    box-shadow: none !important;
}


/* v1.0.5: bright board-game visual pass based on the August key art. */
:root {
    --aug-game-sun: #ffd72e;
    --aug-game-gold: #ffb600;
    --aug-game-deep-gold: #d47b00;
    --aug-game-red: #c72612;
    --aug-game-red-dark: #7d150b;
    --aug-game-cream: #fff8cf;
    --aug-game-ink: #5a1608;
    --aug-game-blue: #2378dd;
    --aug-game-green: #57b93f;
    --aug-game-purple: #9c46e6;
}

html,
body {
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.7), transparent 17%),
        repeating-conic-gradient(from -18deg at 50% 0%, rgba(255, 255, 255, 0.18) 0deg 7deg, rgba(255, 186, 0, 0.08) 7deg 15deg),
        radial-gradient(circle at 14% 18%, rgba(255, 248, 207, 0.48), transparent 14%),
        radial-gradient(circle at 86% 20%, rgba(255, 248, 207, 0.4), transparent 14%),
        linear-gradient(180deg, #ffe961 0%, #ffc019 30%, #ffad10 58%, #f18a05 100%) !important;
    background-attachment: fixed !important;
    color: var(--aug-game-ink) !important;
}

body::before {
    background:
        radial-gradient(circle at 7% 26%, rgba(51, 135, 228, 0.22) 0 16px, transparent 17px),
        radial-gradient(circle at 90% 32%, rgba(86, 191, 70, 0.2) 0 20px, transparent 21px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 60px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 72px) !important;
    opacity: 0.82 !important;
    mix-blend-mode: soft-light !important;
}

body::after {
    background:
        radial-gradient(circle at 18% 72%, rgba(199, 38, 18, 0.16) 0 40px, transparent 42px),
        radial-gradient(circle at 72% 74%, rgba(35, 120, 221, 0.16) 0 44px, transparent 46px),
        linear-gradient(180deg, rgba(255, 248, 207, 0), rgba(255, 248, 207, 0.22) 46%, rgba(124, 55, 0, 0.18)) !important;
    opacity: 0.72 !important;
    mix-blend-mode: normal !important;
}

main {
    background: transparent !important;
}

main > .section:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final),
main > .section.section-green:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final),
main > .section.section-rice:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final),
main > .section.section-limited:not(.hero):not(.quick-panel):not(.inline-detail):not(.detail-task-section):not(.register-standalone-notice):not(.section-final),
#eventjourney,
#membergate,
#membertasks,
#topupbonus,
#mycardwalletevent,
#hotgames,
#preregister,
#socialtasks,
#mymall,
#lottery,
#more {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

main > .section::before,
main > .section::after,
.section::before,
.section::after,
.quick-panel + .section::before,
[id="8icons"].quick-panel + .section::before,
#eventjourney::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 248, 207, 0.3), rgba(255, 182, 0, 0.18), rgba(255, 255, 255, 0)) !important;
    box-shadow: none !important;
}

.site-header,
body[data-lang] .site-header,
.bottom-nav,
body[data-lang] .bottom-nav {
    border-color: rgba(255, 248, 207, 0.58) !important;
    background:
        linear-gradient(180deg, rgba(212, 43, 18, 0.94), rgba(126, 21, 11, 0.96)) !important;
    box-shadow: 0 14px 34px rgba(126, 21, 11, 0.32), 0 0 22px rgba(255, 215, 46, 0.34) !important;
}

.header-nav a,
.lang-current,
.lang-menu,
.lang-menu button,
.bottom-nav a,
.bottom-nav a span,
.bottom-nav button,
.side-nav a,
.side-nav-toggle,
body#top header.site-header .lang-switch .lang-current,
body#top header.site-header .lang-switch #langMenu.lang-menu,
body#top header.site-header .lang-switch .lang-menu {
    color: #fff8cf !important;
    border-color: rgba(255, 248, 207, 0.46) !important;
    background: rgba(126, 21, 11, 0.58) !important;
    box-shadow: inset 0 1px 0 rgba(255, 248, 207, 0.22) !important;
    text-shadow: 0 2px 0 rgba(90, 22, 8, 0.32) !important;
}

.header-nav a:hover,
.header-nav a.is-active,
.lang-current:hover,
.lang-menu button:hover,
.lang-menu button.is-active,
.bottom-nav a:hover,
.bottom-nav a.is-active,
.bottom-nav button.is-active,
.side-nav a:hover,
.side-nav a.is-active,
.side-nav-toggle:hover,
body#top header.site-header .lang-switch #langMenu.lang-menu button.is-active {
    color: #6c1907 !important;
    border-color: #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 50%, #ffad10 100%) !important;
    box-shadow: 0 7px 0 rgba(126, 21, 11, 0.34), 0 0 18px rgba(255, 215, 46, 0.52) !important;
    text-shadow: none !important;
}

.hero,
body[data-lang] .hero {
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.76), transparent 20%),
        repeating-conic-gradient(from -22deg at 50% 0%, rgba(255, 255, 255, 0.26) 0deg 6deg, rgba(255, 193, 25, 0.08) 6deg 14deg),
        linear-gradient(180deg, #ffe961 0%, #ffc019 52%, #f18a05 100%) !important;
    border-color: rgba(255, 248, 207, 0.5) !important;
    box-shadow: inset 0 -42px 80px rgba(199, 38, 18, 0.1), 0 10px 32px rgba(212, 123, 0, 0.18) !important;
}

.hero::before,
.hero::after,
.hero-art::before,
.hero-art::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.74) 0 2px, transparent 3px) 0 0 / 88px 68px !important;
    opacity: 0.52 !important;
    box-shadow: none !important;
}

.hero-art,
body[data-lang] .hero-art {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.section-heading,
.section-title-row,
.section-title-icon-frame,
.section-title-copy,
.inline-detail__header,
main > .section .section-heading,
#mycardwalletevent > .section-heading,
.register-standalone-notice .section-heading,
.detail-task-section .section-heading {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.section-heading::before,
.section-heading::after,
.section-title-row::before,
.section-title-row::after,
.section-title-icon-frame::before,
.section-title-icon-frame::after,
.inline-detail__header::before,
.inline-detail__header::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}

.section-heading h2,
.section-heading .section-title-copy h2,
.section-title-copy h2,
#detailTaskTitle,
#inlineDetailTitle,
.register-standalone-notice .section-heading h2,
.detail-task-section .section-heading h2 {
    color: #fff8cf !important;
    background: none !important;
    -webkit-text-fill-color: #fff8cf !important;
    text-shadow:
        0 4px 0 #7d150b,
        3px 0 0 #7d150b,
        -3px 0 0 #7d150b,
        0 -2px 0 #7d150b,
        0 0 16px rgba(255, 215, 46, 0.8) !important;
}

.section-kicker,
.section-heading p,
.section-title-copy p,
.inline-detail__kicker,
.inline-detail__desc,
.inline-detail__notes,
.inline-detail__meta {
    color: #6c1907 !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.72) !important;
    box-shadow: none !important;
}

.section-title-icon-frame,
.section-heading .section-title-icon-frame,
.quick-panel span.has-icon,
.quick-panel a span.has-icon,
.bottom-nav span.has-icon,
.payment-grid .payment-icon,
.payment-icon,
.offer-card p.offer-media,
#topupbonus .offer-card p.offer-media,
#topupbonus .topup-rail .offer-card p.offer-media,
#membertasks .reward-card p.offer-media,
.feature-grid .feature-media,
#mycardwalletevent .lottery-rail .feature-media,
#lottery .tickets-rail .feature-media,
#more .tickets-rail .feature-media,
.section-social-tasks .social-task-card .feature-media,
.game-card-image,
#hotgames .game-card-image,
.detail-task-rail .register-task-card p.offer-media {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.section-title-icon-frame::before,
.section-title-icon-frame::after,
.quick-panel span.has-icon::before,
.quick-panel span.has-icon::after,
.payment-grid .payment-icon::before,
.payment-grid .payment-icon::after,
.payment-icon::before,
.payment-icon::after,
.offer-card p.offer-media::before,
.offer-card p.offer-media::after,
.feature-media::before,
.feature-media::after,
.game-card-image::before,
.game-card-image::after,
.detail-task-rail .register-task-card p.offer-media::before,
.detail-task-rail .register-task-card p.offer-media::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}

.section-title-icon,
.section-heading .section-title-icon,
.quick-panel span.has-icon img,
.quick-panel span.has-icon svg,
.payment-grid .payment-icon img,
.payment-grid .payment-icon svg,
.offer-card p.offer-media img,
.offer-card p.offer-media svg,
.feature-media img,
.feature-media svg,
.game-card-image img,
.detail-task-rail .register-task-card p.offer-media img,
.detail-task-rail .register-task-card p.offer-media svg {
    filter: drop-shadow(0 8px 9px rgba(126, 21, 11, 0.26)) !important;
}

.quick-panel,
[id="8icons"].quick-panel {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.quick-panel::before,
.quick-panel::after,
[id="8icons"].quick-panel::before,
[id="8icons"].quick-panel::after {
    display: none !important;
    content: none !important;
}

.quick-panel a,
body[data-lang] .quick-panel a {
    color: #fff8cf !important;
    border: 2px solid rgba(255, 248, 207, 0.68) !important;
    background: linear-gradient(180deg, rgba(205, 40, 18, 0.92), rgba(124, 21, 11, 0.96)) !important;
    box-shadow: 0 8px 0 rgba(102, 28, 0, 0.42), 0 12px 22px rgba(199, 38, 18, 0.2) !important;
    text-shadow: 0 2px 0 rgba(90, 22, 8, 0.42) !important;
}

.quick-panel a::before,
[id="8icons"].quick-panel > a::before,
body#top main section[id="8icons"].quick-panel > a::before {
    background: linear-gradient(180deg, rgba(255, 248, 207, 0.28), rgba(255, 248, 207, 0)) !important;
    box-shadow: none !important;
}

.quick-panel a:hover,
.quick-panel a:focus-visible {
    color: #6c1907 !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 54%, #ffad10 100%) !important;
    box-shadow: 0 9px 0 rgba(126, 21, 11, 0.38), 0 0 20px rgba(255, 215, 46, 0.55) !important;
    text-shadow: none !important;
}

.quick-panel strong,
.quick-panel span:not(.has-icon) {
    color: inherit !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.quick-panel a.has-red-dot::after,
.quick-panel a[data-new="true"]::after {
    background: #35b64b !important;
    border-color: #fff8cf !important;
    box-shadow: 0 0 0 0 rgba(53, 182, 75, 0.6), 0 0 14px rgba(255, 215, 46, 0.7) !important;
    animation: quickGameDotPulse 1.75s ease-in-out infinite !important;
}

@keyframes quickGameDotPulse {
    0%, 100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(53, 182, 75, 0.58), 0 0 12px rgba(255, 215, 46, 0.56); }
    50% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(53, 182, 75, 0), 0 0 22px rgba(255, 215, 46, 0.82); }
}

.reward-card,
.offer-card,
.game-card,
.limited-card,
.limited-card.is-active,
.limited-card.is-featured,
.member-gate-card,
.social-task-card,
.section-social-tasks .social-task-card,
#socialtasks .social-task-card,
.social-video-card,
#socialtasks .social-video-card,
.preregister-card,
#preregister .preregister-card,
#preregister .preregister-card > a,
.register-product-card,
.register-task-card,
.detail-task-rail .register-task-card,
#membertasks .reward-card,
#membertasks .rail-large > .reward-card,
body[data-lang] #membertasks .rail-large > .reward-card,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#topupbonus .offer-card,
#topupbonus .topup-rail .offer-card,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child,
#limited .limited-card,
#mymall .mall-card,
#hotgames .game-card,
#mycardwalletevent .lottery-rail article,
#lottery .tickets-rail article,
#more .tickets-rail article,
.payment-grid > a,
.payment-rail > a,
#topupbonus .payment-grid > a,
#topupbonus .payment-rail > a,
.inline-detail__panel,
.home-notice__panel,
.notice {
    color: #fff8cf !important;
    border: 2px solid rgba(255, 248, 207, 0.72) !important;
    background:
        linear-gradient(180deg, rgba(255, 248, 207, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(199, 38, 18, 0.95), rgba(125, 21, 11, 0.98)) !important;
    box-shadow: 0 10px 0 rgba(102, 28, 0, 0.38), 0 20px 38px rgba(199, 38, 18, 0.24), inset 0 1px 0 rgba(255, 248, 207, 0.24) !important;
}

.reward-card.featured,
.reward-card:first-child,
.offer-card.featured,
.offer-card:first-child,
#membertasks .reward-card.featured,
#membertasks .reward-card:first-child,
#membertasks .rail-large > .reward-card:first-child,
#topupbonus .offer-card.featured,
#topupbonus .offer-card:first-child,
#limited .limited-card.is-active,
#limited .limited-card.is-featured,
.limited-card.is-active,
.limited-card.is-featured {
    background:
        linear-gradient(180deg, rgba(255, 248, 207, 0.24), transparent 30%),
        linear-gradient(180deg, #d12b13, #7d150b) !important;
    box-shadow: 0 11px 0 rgba(102, 28, 0, 0.42), 0 0 30px rgba(255, 215, 46, 0.34), 0 22px 42px rgba(199, 38, 18, 0.28) !important;
}

.reward-card::before,
.offer-card::before,
.game-card::before,
.limited-card::before,
.member-gate-card::before,
.social-task-card::before,
.section-social-tasks .social-task-card::before,
#socialtasks .social-task-card::before,
#membertasks .reward-card::before,
#topupbonus .offer-card::before,
#mymall .mall-card::before,
#mycardwalletevent .lottery-rail article::before,
#lottery .tickets-rail article::before,
#more .tickets-rail article::before {
    background: linear-gradient(90deg, rgba(255, 248, 207, 0), rgba(255, 248, 207, 0.82), rgba(255, 215, 46, 0.36), rgba(255, 248, 207, 0)) !important;
    box-shadow: none !important;
}

.reward-card h3,
.offer-card h3,
.game-card h3,
.limited-card h3,
.member-gate-card h3,
.social-task-card h3,
.social-video-card h3,
.register-product-card h4,
.register-task-card h3,
#membertasks .reward-card h3,
#topupbonus .offer-card h3,
#limited .limited-card h3,
#socialtasks .social-task-card h3,
#mymall .mall-card h3,
#mycardwalletevent .lottery-rail article h3,
#lottery .tickets-rail article h3,
#more .tickets-rail article h3,
#preregister .preregister-card strong {
    color: #fff8cf !important;
    text-shadow: 0 3px 0 #7d150b, 0 0 12px rgba(255, 215, 46, 0.62) !important;
    -webkit-text-fill-color: currentColor !important;
}

.reward-card p,
.offer-card p,
.offer-card p:not(.offer-media),
.game-card p,
.limited-card p,
.member-gate-card p,
.social-task-card p,
.social-video-card p,
.mall-card p,
#membertasks .reward-card p,
#topupbonus .offer-card p,
#limited .limited-card p,
#socialtasks .social-task-card p,
#mymall .mall-card p,
#mycardwalletevent .lottery-rail article p,
#lottery .tickets-rail article p,
#more .tickets-rail article p,
.register-product-card p,
.register-task-card p,
.detail-task-rail .register-task-card p,
.payment-grid > a span,
.payment-rail > a span {
    color: #ffe99a !important;
    text-shadow: 0 1px 0 rgba(90, 22, 8, 0.28) !important;
}

.reward-card .tag,
.offer-card span,
#topupbonus .offer-card span,
.game-card span,
.limited-card b,
.limited-card span,
.social-task-card .tag,
.social-task-card > b,
#mymall .mall-card .tag,
#mymall .mall-card .tag-placeholder,
.register-task-card .tag,
#mycardwalletevent .wallet-bullet,
#mycardwalletevent .lottery-rail article b,
.detail-task-rail .register-task-card .tag {
    color: #6c1907 !important;
    border-color: #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 54%, #ffad10 100%) !important;
    box-shadow: 0 5px 0 rgba(126, 21, 11, 0.38), 0 0 14px rgba(255, 215, 46, 0.44) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.reward-card a,
.offer-card a,
.game-card a,
.limited-card a,
.member-gate-card a,
.social-task-card a,
.register-product-card a,
.register-task-card a,
.mall-card a,
#membertasks .reward-card a,
#limited .limited-card a,
#topupbonus .topup-rail .offer-card a,
#socialtasks .social-task-card a,
#mymall .mall-card a,
#lottery .tickets-rail article a,
#more .tickets-rail article a,
#mycardwalletevent .lottery-rail article a,
.detail-task-rail .register-task-card a,
.primary-action,
.inline-detail__action,
.inline-detail__back,
.topup-actions a,
.wallet-actions a,
.preregister-action,
.side-nav .back-top {
    color: #6c1907 !important;
    border-color: #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 52%, #ffad10 100%) !important;
    box-shadow: 0 8px 0 rgba(126, 21, 11, 0.42), 0 0 20px rgba(255, 215, 46, 0.5) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}

#eventjourney {
    position: relative;
    padding-top: clamp(48px, 6vw, 78px) !important;
}

.journey-progress {
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.journey-progress::before {
    top: calc((clamp(58px, 5.5vw, 74px) / 2) - 3px) !important;
    height: 8px !important;
    border: 2px solid rgba(255, 248, 207, 0.72) !important;
    background: linear-gradient(90deg, #57b93f 0%, #ffd72e 34%, #2378dd 68%, #c72612 100%) !important;
    box-shadow: 0 4px 0 rgba(126, 21, 11, 0.28), 0 0 18px rgba(255, 215, 46, 0.52) !important;
}

.journey-progress__item {
    min-height: 142px !important;
}

.journey-progress__link {
    gap: 14px !important;
}

.journey-progress__marker {
    width: clamp(58px, 5.5vw, 74px) !important;
    height: clamp(58px, 5.5vw, 74px) !important;
    border: 3px solid #fff8cf !important;
    border-radius: 18px !important;
    color: #6c1907 !important;
    background:
        radial-gradient(circle at 50% 28%, #fff8cf 0 14%, transparent 15%),
        linear-gradient(180deg, #ffd72e 0%, #ffb600 58%, #d47b00 100%) !important;
    box-shadow: 0 8px 0 rgba(126, 21, 11, 0.42), 0 0 20px rgba(255, 215, 46, 0.58) !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.82) !important;
}

.journey-progress__item:nth-child(1) .journey-progress__marker { background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 48%, #ffb600 100%) !important; }
.journey-progress__item:nth-child(2) .journey-progress__marker { background: linear-gradient(180deg, #ffef5f 0%, #57b93f 100%) !important; }
.journey-progress__item:nth-child(3) .journey-progress__marker { background: linear-gradient(180deg, #7fc7ff 0%, #2378dd 100%) !important; color: #fff8cf !important; text-shadow: 0 2px 0 rgba(36, 43, 97, 0.4) !important; }
.journey-progress__item:nth-child(4) .journey-progress__marker { background: linear-gradient(180deg, #ff8adf 0%, #9c46e6 100%) !important; color: #fff8cf !important; text-shadow: 0 2px 0 rgba(72, 20, 96, 0.45) !important; }

.journey-progress__item strong {
    min-height: 3.25em !important;
    color: #fff8cf !important;
    background: transparent !important;
    -webkit-text-fill-color: #fff8cf !important;
    text-shadow:
        0 3px 0 #7d150b,
        2px 0 0 #7d150b,
        -2px 0 0 #7d150b,
        0 0 12px rgba(255, 215, 46, 0.68) !important;
}

.site-footer {
    background: linear-gradient(180deg, rgba(199, 38, 18, 0.86), rgba(126, 21, 11, 0.94)) !important;
    box-shadow: 0 -12px 28px rgba(126, 21, 11, 0.22) !important;
}

.side-nav-toggle,
#mobileFloatLinks a,
#mobileFloatLinks button,
.detail-back-float,
.home-notice__panel,
#homeNotice .home-notice__panel .home-notice__close,
body#top #homeNotice.home-notice .home-notice__panel button.home-notice__close {
    border-color: rgba(255, 248, 207, 0.64) !important;
    background: linear-gradient(180deg, rgba(199, 38, 18, 0.94), rgba(126, 21, 11, 0.96)) !important;
    box-shadow: 0 8px 0 rgba(102, 28, 0, 0.34), 0 0 18px rgba(255, 215, 46, 0.28) !important;
}

.coloredSvg [fill="#00adee"],
.coloredSvg [fill="#00ADEE"],
.coloredSvg [fill="#13dfff"],
.coloredSvg [fill="#13DFFF"],
.coloredSvg [fill="#0877ff"],
.coloredSvg [fill="#0877FF"],
.quick-panel svg [fill="#00adee"],
.quick-panel svg [fill="#00ADEE"],
.quick-panel svg [fill="#13dfff"],
.offer-card p.offer-media svg [fill="#00adee"],
.offer-card p.offer-media svg [fill="#00ADEE"],
.offer-card p.offer-media svg [fill="#13dfff"],
.payment-icon svg [fill="#00adee"],
.payment-icon svg [fill="#00ADEE"],
.social-link-panel svg [fill="#00adee"],
.social-link-panel svg [fill="#00ADEE"],
.bottom-nav svg [fill="#00adee"],
.bottom-nav svg [fill="#00ADEE"] {
    fill: #ffd72e !important;
}

.coloredSvg [stroke="#00adee"],
.coloredSvg [stroke="#00ADEE"],
.coloredSvg [stroke="#13dfff"],
.coloredSvg [stroke="#13DFFF"],
.coloredSvg [stroke="#0877ff"],
.coloredSvg [stroke="#0877FF"],
.quick-panel svg [stroke="#00adee"],
.quick-panel svg [stroke="#00ADEE"],
.quick-panel svg [stroke="#13dfff"],
.offer-card p.offer-media svg [stroke="#00adee"],
.offer-card p.offer-media svg [stroke="#00ADEE"],
.offer-card p.offer-media svg [stroke="#13dfff"],
.payment-icon svg [stroke="#00adee"],
.payment-icon svg [stroke="#00ADEE"],
.social-link-panel svg [stroke="#00adee"],
.social-link-panel svg [stroke="#00ADEE"],
.bottom-nav svg [stroke="#00adee"],
.bottom-nav svg [stroke="#00ADEE"] {
    stroke: #ffd72e !important;
}

@media (max-width: 768px) {
    html,
    body {
        background:
            radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.65), transparent 18%),
            repeating-conic-gradient(from -18deg at 50% 0%, rgba(255, 255, 255, 0.16) 0deg 7deg, rgba(255, 186, 0, 0.08) 7deg 15deg),
            linear-gradient(180deg, #ffe961 0%, #ffc019 36%, #ffad10 68%, #f18a05 100%) !important;
        background-attachment: scroll !important;
    }

    .journey-progress::before {
        top: 22px !important;
        height: 6px !important;
    }

    .journey-progress__item {
        min-height: 94px !important;
    }

    .journey-progress__marker {
        width: 46px !important;
        height: 46px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
    }

    .journey-progress__item strong {
        font-size: 12px !important;
        line-height: 1.12 !important;
    }
}


/* v1.0.5 patch: keep image and icon media holders transparent after card styling. */
.game-card-image,
#hotgames .game-card-image,
#hotgames .game-card-image > a,
.offer-card p.offer-media,
#topupbonus .offer-card p.offer-media,
#topupbonus .topup-rail .offer-card p.offer-media,
#membertasks .reward-card p.offer-media,
.payment-grid .payment-icon,
.payment-icon,
.feature-grid .feature-media,
#mycardwalletevent .lottery-rail .feature-media,
#lottery .tickets-rail .feature-media,
#more .tickets-rail .feature-media,
.section-social-tasks .social-task-card .feature-media,
.detail-task-rail .register-task-card p.offer-media {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.game-card-image::before,
.game-card-image::after,
#hotgames .game-card-image::before,
#hotgames .game-card-image::after,
.offer-card p.offer-media::before,
.offer-card p.offer-media::after,
.payment-grid .payment-icon::before,
.payment-grid .payment-icon::after,
.payment-icon::before,
.payment-icon::after,
.feature-grid .feature-media::before,
.feature-grid .feature-media::after,
.detail-task-rail .register-task-card p.offer-media::before,
.detail-task-rail .register-task-card p.offer-media::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}


/* v1.0.6: red section titles, brighter nav pills, and transparent bottom icons. */
.section-heading h2,
.section-heading .section-title-copy h2,
.section-title-copy h2,
#detailTaskTitle,
#inlineDetailTitle,
.register-standalone-notice .section-heading h2,
.detail-task-section .section-heading h2,
#mycardwalletevent > .section-heading .section-title-copy h2,
#payments .section-heading h2,
main > .section .section-heading h2 {
    color: #d72712 !important;
    background: none !important;
    -webkit-text-fill-color: #d72712 !important;
    text-shadow:
        0 3px 0 #fff8cf,
        2px 0 0 #fff8cf,
        -2px 0 0 #fff8cf,
        0 -2px 0 #fff8cf,
        0 5px 0 #7d150b,
        0 0 16px rgba(255, 215, 46, 0.8) !important;
}

.section-heading .section-kicker,
.section-kicker {
    color: #8d1d08 !important;
    background: transparent !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.76) !important;
}

.header-nav a,
body[data-lang] .header-nav a,
body.inline-detail-mode .header-nav a.detail-home-link {
    color: #7d150b !important;
    border-color: rgba(255, 248, 207, 0.86) !important;
    background: linear-gradient(180deg, rgba(255, 248, 207, 0.96), rgba(255, 215, 46, 0.88) 56%, rgba(255, 173, 16, 0.9)) !important;
    box-shadow: 0 5px 0 rgba(126, 21, 11, 0.24), 0 0 14px rgba(255, 215, 46, 0.36) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.header-nav a:hover,
.header-nav a.is-active,
body[data-lang] .header-nav a:hover,
body[data-lang] .header-nav a.is-active,
body.inline-detail-mode .header-nav a.detail-home-link:hover {
    color: #fff8cf !important;
    border-color: #fff8cf !important;
    background: linear-gradient(180deg, #e63b1e 0%, #c72612 54%, #7d150b 100%) !important;
    box-shadow: 0 6px 0 rgba(102, 28, 0, 0.34), 0 0 18px rgba(255, 215, 46, 0.5) !important;
    text-shadow: 0 2px 0 rgba(90, 22, 8, 0.44) !important;
}

.lang-current,
.lang-menu button,
body#top header.site-header .lang-switch .lang-current,
body#top header.site-header .lang-switch #langMenu.lang-menu button {
    color: #7d150b !important;
    border-color: rgba(255, 248, 207, 0.82) !important;
    background: linear-gradient(180deg, rgba(255, 248, 207, 0.96), rgba(255, 215, 46, 0.86)) !important;
    box-shadow: 0 5px 0 rgba(126, 21, 11, 0.22), 0 0 14px rgba(255, 215, 46, 0.3) !important;
    text-shadow: none !important;
}

.lang-menu,
body#top header.site-header .lang-switch #langMenu.lang-menu,
body#top header.site-header .lang-switch .lang-menu {
    border-color: rgba(255, 248, 207, 0.74) !important;
    background: linear-gradient(180deg, rgba(199, 38, 18, 0.94), rgba(126, 21, 11, 0.96)) !important;
    box-shadow: 0 12px 28px rgba(126, 21, 11, 0.32), 0 0 18px rgba(255, 215, 46, 0.3) !important;
}

.bottom-nav span.has-icon,
.bottom-nav a span.has-icon,
body[data-lang] .bottom-nav span.has-icon,
body[data-lang] .bottom-nav a span.has-icon {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.bottom-nav span.has-icon::before,
.bottom-nav span.has-icon::after,
.bottom-nav a span.has-icon::before,
.bottom-nav a span.has-icon::after,
body[data-lang] .bottom-nav span.has-icon::before,
body[data-lang] .bottom-nav span.has-icon::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}

.bottom-nav span.has-icon img,
.bottom-nav span.has-icon svg,
body[data-lang] .bottom-nav span.has-icon img,
body[data-lang] .bottom-nav span.has-icon svg {
    filter: drop-shadow(0 4px 5px rgba(126, 21, 11, 0.28)) !important;
}


/* v1.0.7: transparent footer download and copyright area. */
.site-footer,
body[data-lang] .site-footer,
.site-footer__inner,
.site-footer__apps,
.site-footer__apps a,
.site-footer__inner p,
.site-footer p {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.site-footer {
    color: #7d150b !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.72) !important;
}

.site-footer__apps a:hover,
.site-footer__apps a:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-2px);
}

.site-footer__apps img {
    filter: drop-shadow(0 5px 8px rgba(126, 21, 11, 0.2)) !important;
}


/* v1.0.8: tighten touch targets for persistent controls. */
.brand,
.site-header .brand {
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.lang-current,
body#top header.site-header .lang-switch .lang-current {
    min-height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home-notice__close,
#homeNotice .home-notice__panel .home-notice__close,
body#top #homeNotice.home-notice .home-notice__panel button.home-notice__close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    line-height: 1 !important;
}

@media (max-width: 768px) {
    .brand,
    .site-header .brand {
        min-height: 38px !important;
    }

    .home-notice__close,
    #homeNotice .home-notice__panel .home-notice__close,
    body#top #homeNotice.home-notice .home-notice__panel button.home-notice__close {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}


/* v1.0.10: keep card titles from clipping on dense desktop and mobile rails. */
.reward-card h3,
.offer-card h3,
.game-card h3,
.preregister-card h3,
#membertasks .reward-card h3,
#topupbonus .offer-card h3,
#hotgames .game-card h3,
#preregister .preregister-card h3 {
    line-height: 1.32 !important;
    max-height: none !important;
    min-height: calc(2em * 1.32 + 6px) !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    .reward-card h3,
    .offer-card h3,
    .game-card h3,
    .preregister-card h3,
    #membertasks .reward-card h3,
    #topupbonus .offer-card h3,
    #hotgames .game-card h3,
    #preregister .preregister-card h3 {
        line-height: 1.36 !important;
        min-height: calc(3em * 1.36 + 4px) !important;
    }
}


/* v1.0.11: remove translucent section backplates so sections sit on the shared page background. */
main > .section:not(.hero)::before,
main > .section:not(.hero)::after,
main > section.section-green::before,
main > section.section-green::after,
main > section.section-rice::before,
main > section.section-rice::after,
main > section.section-limited::before,
main > section.section-limited::after,
main > section.section-preregister::before,
main > section.section-preregister::after,
main > section.section-social-tasks::before,
main > section.section-social-tasks::after,
main > section.section-mall::before,
main > section.section-mall::after,
main > section.section-tickets::before,
main > section.section-tickets::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

.rail-shell,
.lottery-shell,
.topup-shell,
.payment-shell,
.preregister-rail-shell,
.social-task-shell,
.social-rail-shell,
.mall-rail-shell,
.tickets-shell {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}


body#top main > section.section::before,
body#top main > section.section::after,
body#top main > section.section-green::before,
body#top main > section.section-green::after,
body#top main > section.section-rice::before,
body#top main > section.section-rice::after,
body#top main > section.section-preregister::before,
body#top main > section.section-preregister::after,
body#top main > section.section-social-tasks::before,
body#top main > section.section-social-tasks::after,
body#top main > section.section-mall::before,
body#top main > section.section-mall::after,
body#top main > section.section-tickets::before,
body#top main > section.section-tickets::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
}

body#top main .rail-shell,
body#top main .rail-shell.lottery-shell,
body#top main #mycardwalletevent .rail-shell.lottery-shell,
body#top main #mycardwalletevent .lottery-shell {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}


/* v1.0.26: remove residual translucent shells around title icons, rails, preregister cards, and bottom-nav items. */
.section-heading .section-title-row,
.section-title-row.has-title-icon,
.section-heading .section-title-icon-frame,
.section-title-icon-frame {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.section-heading .section-title-row::before,
.section-heading .section-title-row::after,
.section-title-row.has-title-icon::before,
.section-title-row.has-title-icon::after,
.section-heading .section-title-icon-frame::before,
.section-heading .section-title-icon-frame::after,
.section-title-icon-frame::before,
.section-title-icon-frame::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body#top main .rail-shell::before,
body#top main .rail-shell::after,
body#top main .topup-shell::before,
body#top main .topup-shell::after,
body#top main .payment-shell::before,
body#top main .payment-shell::after,
body#top main .lottery-shell::before,
body#top main .lottery-shell::after,
body#top main .preregister-rail-shell::before,
body#top main .preregister-rail-shell::after,
body#top main .social-task-shell::before,
body#top main .social-task-shell::after,
body#top main .social-rail-shell::before,
body#top main .social-rail-shell::after,
body#top main .mall-rail-shell::before,
body#top main .mall-rail-shell::after,
body#top main .tickets-shell::before,
body#top main .tickets-shell::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

#preregister article.preregister-card,
body#top #preregister article.preregister-card {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#preregister article.preregister-card,
body#top #preregister article.preregister-card {
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
}

#preregister article.preregister-card::before,
#preregister article.preregister-card::after,
body#top #preregister article.preregister-card::before,
body#top #preregister article.preregister-card::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

.bottom-nav a,
.bottom-nav button,
.bottom-nav a:hover,
.bottom-nav a:focus-visible,
.bottom-nav a.is-active,
.bottom-nav button.is-active,
body[data-lang] .bottom-nav a,
body[data-lang] .bottom-nav button,
body[data-lang] .bottom-nav a:hover,
body[data-lang] .bottom-nav a:focus-visible,
body[data-lang] .bottom-nav a.is-active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.bottom-nav a::before,
.bottom-nav a::after,
.bottom-nav button::before,
.bottom-nav button::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* v1.0.26: remove gradient backplates from activity cards in the main task rails. */
#membertasks .reward-card,
#topupbonus .topup-rail .offer-card,
#preregister .preregister-card > a,
#socialtasks .social-task-card,
#mymall .mall-card,
body[data-lang] #membertasks .reward-card,
body[data-lang] #topupbonus .topup-rail .offer-card,
body[data-lang] #preregister .preregister-card > a,
body[data-lang] #socialtasks .social-task-card,
body[data-lang] #mymall .mall-card {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#membertasks .reward-card::before,
#membertasks .reward-card::after,
#topupbonus .topup-rail .offer-card::before,
#topupbonus .topup-rail .offer-card::after,
#preregister .preregister-card > a::before,
#preregister .preregister-card > a::after,
#socialtasks .social-task-card::before,
#socialtasks .social-task-card::after,
#mymall .mall-card::before,
#mymall .mall-card::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

#membertasks .reward-card h3,
#topupbonus .topup-rail .offer-card h3,
#preregister .preregister-card strong,
#socialtasks .social-task-card h3,
#mymall .mall-card h3 {
    color: #8f170d !important;
    text-shadow: 0 2px 0 rgba(255, 248, 207, 0.86), 0 0 10px rgba(255, 215, 46, 0.34) !important;
}

#membertasks .reward-card p,
#topupbonus .topup-rail .offer-card p:not(.offer-media),
#socialtasks .social-task-card p,
#mymall .mall-card p {
    color: #5a1608 !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.72) !important;
}

#membertasks .reward-card .tag,
#topupbonus .topup-rail .offer-card > span,
#socialtasks .social-task-card .tag,
#socialtasks .social-task-card > b,
#mymall .mall-card .tag,
#mymall .mall-card .tag-placeholder {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #c72612 !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.72) !important;
}

/* v1.0.26: high-specificity member task card backplate cleanup. */
body#top main section#membertasks .rail-large > article.reward-card,
body#top main section#membertasks .rail-large > article.reward-card.featured,
body#top main section#membertasks .rail-large > article.reward-card:first-child,
body#top main section#membertasks .rail-large > article.reward-card[data-loop-clone="true"],
body[data-lang] main section#membertasks .rail-large > article.reward-card,
body[data-lang] main section#membertasks .rail-large > article.reward-card.featured,
body[data-lang] main section#membertasks .rail-large > article.reward-card:first-child {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body#top main section#membertasks .rail-large > article.reward-card::before,
body#top main section#membertasks .rail-large > article.reward-card::after,
body[data-lang] main section#membertasks .rail-large > article.reward-card::before,
body[data-lang] main section#membertasks .rail-large > article.reward-card::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* v1.0.26: restore visible card bodies while keeping outer gradient backplates removed. */
body#top main section#membertasks .rail-large > article.reward-card,
body#top main section#membertasks .rail-large > article.reward-card.featured,
body#top main section#membertasks .rail-large > article.reward-card:first-child,
body#top main section#membertasks .rail-large > article.reward-card[data-loop-clone="true"],
body#top main section#topupbonus .topup-rail > article.offer-card,
body#top main section#topupbonus .topup-rail > article.offer-card.featured,
body#top main section#topupbonus .topup-rail > article.offer-card:first-child,
body#top main section#preregister .preregister-card > a,
body#top main section#socialtasks article.social-task-card,
body#top main section#mymall article.mall-card,
body[data-lang] main section#membertasks .rail-large > article.reward-card,
body[data-lang] main section#topupbonus .topup-rail > article.offer-card,
body[data-lang] main section#preregister .preregister-card > a,
body[data-lang] main section#socialtasks article.social-task-card,
body[data-lang] main section#mymall article.mall-card {
    background: #fff6cf !important;
    background-color: #fff6cf !important;
    background-image: none !important;
    border: 2px solid #d42b12 !important;
    box-shadow: 0 8px 0 rgba(126, 21, 11, 0.26) !important;
}

body#top main section#membertasks .rail-large > article.reward-card.featured,
body#top main section#membertasks .rail-large > article.reward-card:first-child,
body#top main section#topupbonus .topup-rail > article.offer-card.featured,
body#top main section#topupbonus .topup-rail > article.offer-card:first-child {
    background: #fff1a8 !important;
    background-color: #fff1a8 !important;
    background-image: none !important;
    border-color: #c72612 !important;
}

body#top main section#membertasks .rail-large > article.reward-card:hover,
body#top main section#topupbonus .topup-rail > article.offer-card:hover,
body#top main section#preregister .preregister-card > a:hover,
body#top main section#socialtasks article.social-task-card:hover,
body#top main section#mymall article.mall-card:hover {
    background: #fff8dc !important;
    background-image: none !important;
    box-shadow: 0 9px 0 rgba(126, 21, 11, 0.28), 0 0 0 3px rgba(255, 215, 46, 0.28) !important;
}

body#top main section#membertasks .rail-large > article.reward-card::before,
body#top main section#membertasks .rail-large > article.reward-card::after,
body#top main section#topupbonus .topup-rail > article.offer-card::before,
body#top main section#topupbonus .topup-rail > article.offer-card::after,
body#top main section#preregister .preregister-card > a::before,
body#top main section#preregister .preregister-card > a::after,
body#top main section#socialtasks article.social-task-card::before,
body#top main section#socialtasks article.social-task-card::after,
body#top main section#mymall article.mall-card::before,
body#top main section#mymall article.mall-card::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* v1.0.26: align activity card bodies with the hero red-and-gold marquee palette. */
body#top main section#membertasks .rail-large > article.reward-card,
body#top main section#membertasks .rail-large > article.reward-card.featured,
body#top main section#membertasks .rail-large > article.reward-card:first-child,
body#top main section#membertasks .rail-large > article.reward-card[data-loop-clone="true"],
body#top main section#topupbonus .topup-rail > article.offer-card,
body#top main section#topupbonus .topup-rail > article.offer-card.featured,
body#top main section#topupbonus .topup-rail > article.offer-card:first-child,
body#top main section#preregister .preregister-card > a,
body#top main section#socialtasks article.social-task-card,
body#top main section#mymall article.mall-card,
body[data-lang] main section#membertasks .rail-large > article.reward-card,
body[data-lang] main section#topupbonus .topup-rail > article.offer-card,
body[data-lang] main section#preregister .preregister-card > a,
body[data-lang] main section#socialtasks article.social-task-card,
body[data-lang] main section#mymall article.mall-card {
    background: #c72612 !important;
    background-color: #c72612 !important;
    background-image: none !important;
    border: 2px solid #fff8cf !important;
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.46), inset 0 0 0 2px rgba(255, 215, 46, 0.18) !important;
}

body#top main section#membertasks .rail-large > article.reward-card.featured,
body#top main section#membertasks .rail-large > article.reward-card:first-child,
body#top main section#topupbonus .topup-rail > article.offer-card.featured,
body#top main section#topupbonus .topup-rail > article.offer-card:first-child {
    background: #a9150b !important;
    background-color: #a9150b !important;
    background-image: none !important;
    border-color: #ffd72e !important;
    box-shadow: 0 9px 0 rgba(90, 22, 8, 0.5), 0 0 0 3px rgba(255, 215, 46, 0.2), inset 0 0 0 2px rgba(255, 248, 207, 0.18) !important;
}

body#top main section#membertasks .rail-large > article.reward-card:hover,
body#top main section#topupbonus .topup-rail > article.offer-card:hover,
body#top main section#preregister .preregister-card > a:hover,
body#top main section#socialtasks article.social-task-card:hover,
body#top main section#mymall article.mall-card:hover {
    background: #d42b12 !important;
    background-color: #d42b12 !important;
    background-image: none !important;
    box-shadow: 0 9px 0 rgba(90, 22, 8, 0.48), 0 0 0 3px rgba(255, 215, 46, 0.34), inset 0 0 0 2px rgba(255, 248, 207, 0.2) !important;
}

body#top main section#membertasks .rail-large > article.reward-card h3,
body#top main section#topupbonus .topup-rail > article.offer-card h3,
body#top main section#preregister .preregister-card > a strong,
body#top main section#socialtasks article.social-task-card h3,
body#top main section#mymall article.mall-card h3 {
    color: #fff8cf !important;
    text-shadow: 0 3px 0 #7d150b, 0 0 12px rgba(255, 215, 46, 0.46) !important;
}

body#top main section#membertasks .rail-large > article.reward-card p,
body#top main section#topupbonus .topup-rail > article.offer-card p:not(.offer-media),
body#top main section#socialtasks article.social-task-card p,
body#top main section#mymall article.mall-card p {
    color: #fff8cf !important;
    text-shadow: 0 2px 0 rgba(90, 22, 8, 0.42) !important;
}

body#top main section#membertasks .rail-large > article.reward-card .tag,
body#top main section#topupbonus .topup-rail > article.offer-card > span,
body#top main section#socialtasks article.social-task-card .tag,
body#top main section#socialtasks article.social-task-card > b,
body#top main section#mymall article.mall-card .tag,
body#top main section#mymall article.mall-card .tag-placeholder {
    background: #ffd72e !important;
    background-color: #ffd72e !important;
    background-image: none !important;
    color: #7d150b !important;
    box-shadow: 0 4px 0 rgba(90, 22, 8, 0.24), 0 0 12px rgba(255, 215, 46, 0.34) !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.78) !important;
}

/* v1.0.26: normalize carousel first cards and include lottery ticket cards in the red-gold card system. */
body#top main section#membertasks .rail-large > article.reward-card,
body#top main section#membertasks .rail-large > article.reward-card.featured,
body#top main section#membertasks .rail-large > article.reward-card:first-child,
body#top main section#topupbonus .topup-rail > article.offer-card,
body#top main section#topupbonus .topup-rail > article.offer-card.featured,
body#top main section#topupbonus .topup-rail > article.offer-card:first-child,
body#top main section#preregister .preregister-card > a,
body#top main section#socialtasks article.social-task-card,
body#top main section#mymall article.mall-card,
body#top main section#mycardwalletevent .lottery-rail > article,
body#top main section#mycardwalletevent .lottery-rail > article.featured,
body#top main section#mycardwalletevent .lottery-rail > article:first-child,
body#top main section#lottery .tickets-rail > article,
body#top main section#lottery .tickets-rail > article.featured,
body#top main section#lottery .tickets-rail > article:first-child,
body#top main section#more .tickets-rail > article,
body#top main section#more .tickets-rail > article.featured,
body#top main section#more .tickets-rail > article:first-child,
body[data-lang] main section#membertasks .rail-large > article.reward-card,
body[data-lang] main section#topupbonus .topup-rail > article.offer-card,
body[data-lang] main section#preregister .preregister-card > a,
body[data-lang] main section#socialtasks article.social-task-card,
body[data-lang] main section#mymall article.mall-card,
body[data-lang] main section#mycardwalletevent .lottery-rail > article,
body[data-lang] main section#lottery .tickets-rail > article,
body[data-lang] main section#more .tickets-rail > article {
    background: #c72612 !important;
    background-color: #c72612 !important;
    background-image: none !important;
    border: 2px solid #fff8cf !important;
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.46), inset 0 0 0 2px rgba(255, 215, 46, 0.18) !important;
    transform: none !important;
}

body#top main section#membertasks .rail-large > article.reward-card:hover,
body#top main section#topupbonus .topup-rail > article.offer-card:hover,
body#top main section#preregister .preregister-card > a:hover,
body#top main section#socialtasks article.social-task-card:hover,
body#top main section#mymall article.mall-card:hover,
body#top main section#mycardwalletevent .lottery-rail > article:hover,
body#top main section#lottery .tickets-rail > article:hover,
body#top main section#more .tickets-rail > article:hover {
    background: #d42b12 !important;
    background-color: #d42b12 !important;
    background-image: none !important;
    box-shadow: 0 9px 0 rgba(90, 22, 8, 0.48), 0 0 0 3px rgba(255, 215, 46, 0.34), inset 0 0 0 2px rgba(255, 248, 207, 0.2) !important;
}

body#top main section#membertasks .rail-large > article.reward-card::before,
body#top main section#membertasks .rail-large > article.reward-card::after,
body#top main section#topupbonus .topup-rail > article.offer-card::before,
body#top main section#topupbonus .topup-rail > article.offer-card::after,
body#top main section#preregister .preregister-card > a::before,
body#top main section#preregister .preregister-card > a::after,
body#top main section#socialtasks article.social-task-card::before,
body#top main section#socialtasks article.social-task-card::after,
body#top main section#mymall article.mall-card::before,
body#top main section#mymall article.mall-card::after,
body#top main section#mycardwalletevent .lottery-rail > article::before,
body#top main section#mycardwalletevent .lottery-rail > article::after,
body#top main section#lottery .tickets-rail > article::before,
body#top main section#lottery .tickets-rail > article::after,
body#top main section#more .tickets-rail > article::before,
body#top main section#more .tickets-rail > article::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

body#top main section#mycardwalletevent .lottery-rail > article h3,
body#top main section#lottery .tickets-rail > article h3,
body#top main section#more .tickets-rail > article h3,
body#top main section#mycardwalletevent .lottery-rail > article p,
body#top main section#lottery .tickets-rail > article p,
body#top main section#more .tickets-rail > article p {
    color: #fff8cf !important;
    text-shadow: 0 2px 0 rgba(90, 22, 8, 0.42) !important;
}

body#top main section#mycardwalletevent .lottery-rail > article h3,
body#top main section#lottery .tickets-rail > article h3,
body#top main section#more .tickets-rail > article h3 {
    text-shadow: 0 3px 0 #7d150b, 0 0 12px rgba(255, 215, 46, 0.46) !important;
}

body#top main section#mycardwalletevent .lottery-rail > article b,
body#top main section#mycardwalletevent .lottery-rail > article .wallet-bullet {
    background: #ffd72e !important;
    background-color: #ffd72e !important;
    background-image: none !important;
    color: #7d150b !important;
    box-shadow: 0 4px 0 rgba(90, 22, 8, 0.24), 0 0 12px rgba(255, 215, 46, 0.34) !important;
}

/* v1.0.26: remove residual wallet lottery rail backplate after card restoration. */
body#top main section#mycardwalletevent .lottery-rail,
body[data-lang] main section#mycardwalletevent .lottery-rail {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body#top main section#mycardwalletevent .lottery-rail::before,
body#top main section#mycardwalletevent .lottery-rail::after,
body[data-lang] main section#mycardwalletevent .lottery-rail::before,
body[data-lang] main section#mycardwalletevent .lottery-rail::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* v1.0.26: remove the diffuse shared shadow from payment-method cards. */
body#top main section#topupbonus .payment-grid > a,
body#top main section#topupbonus .payment-rail > a,
body[data-lang] main section#topupbonus .payment-grid > a,
body[data-lang] main section#topupbonus .payment-rail > a {
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.46), inset 0 0 0 2px rgba(255, 215, 46, 0.18) !important;
}

body#top main section#topupbonus .payment-grid > a:hover,
body#top main section#topupbonus .payment-rail > a:hover,
body[data-lang] main section#topupbonus .payment-grid > a:hover,
body[data-lang] main section#topupbonus .payment-rail > a:hover {
    box-shadow: 0 9px 0 rgba(90, 22, 8, 0.48), 0 0 0 3px rgba(255, 215, 46, 0.34), inset 0 0 0 2px rgba(255, 248, 207, 0.2) !important;
}

/* v1.0.26: keep social-video cards on the same short-shadow system. */
body#top main section#socialtasks .social-video-card,
body[data-lang] main section#socialtasks .social-video-card {
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.46), inset 0 0 0 2px rgba(255, 215, 46, 0.18) !important;
}

body#top main section#socialtasks .social-video-card:hover,
body[data-lang] main section#socialtasks .social-video-card:hover {
    box-shadow: 0 9px 0 rgba(90, 22, 8, 0.48), 0 0 0 3px rgba(255, 215, 46, 0.34), inset 0 0 0 2px rgba(255, 248, 207, 0.2) !important;
}

/* v1.0.26: override the legacy blue CTA on the first lottery ticket. */
body#top main section#lottery .tickets-rail > article:first-child > a,
body#top main section#lottery .tickets-rail > article.featured > a,
body[data-lang] main section#lottery .tickets-rail > article:first-child > a,
body[data-lang] main section#lottery .tickets-rail > article.featured > a {
    color: #6c1907 !important;
    border-color: #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 52%, #ffad10 100%) !important;
    box-shadow: 0 8px 0 rgba(126, 21, 11, 0.42), 0 0 20px rgba(255, 215, 46, 0.5) !important;
    text-shadow: none !important;
}

body#top main section#lottery .tickets-rail > article:first-child > a:hover,
body#top main section#lottery .tickets-rail > article.featured > a:hover,
body[data-lang] main section#lottery .tickets-rail > article:first-child > a:hover,
body[data-lang] main section#lottery .tickets-rail > article.featured > a:hover {
    background: linear-gradient(180deg, #fff8cf 0%, #ffe98a 46%, #f4b300 100%) !important;
    box-shadow: 0 9px 0 rgba(126, 21, 11, 0.46), 0 0 0 3px rgba(255, 215, 46, 0.32), 0 0 18px rgba(255, 215, 46, 0.42) !important;
}

/* v1.0.26: give every utm_content detail view the August red-and-gold game-board treatment. */
body.inline-detail-mode {
    background:
        radial-gradient(ellipse at 50% -8%, rgba(255, 250, 207, 0.92) 0%, rgba(255, 215, 46, 0.62) 30%, transparent 62%),
        radial-gradient(circle at 8% 42%, rgba(199, 38, 18, 0.14), transparent 28%),
        radial-gradient(circle at 92% 34%, rgba(199, 38, 18, 0.12), transparent 26%),
        linear-gradient(180deg, #ffd72e 0%, #f5dfaa 42%, #e7c979 100%) !important;
    background-attachment: fixed !important;
}

body.inline-detail-mode::before {
    opacity: 0.72 !important;
    background:
        linear-gradient(112deg, transparent 0 24%, rgba(255, 248, 207, 0.46) 35%, transparent 48% 100%),
        linear-gradient(248deg, transparent 0 22%, rgba(255, 248, 207, 0.32) 34%, transparent 50% 100%) !important;
    background-size: auto !important;
}

body.inline-detail-mode .inline-detail,
body.inline-detail-mode .detail-task-section {
    background: transparent !important;
}

body.inline-detail-mode .inline-detail__panel {
    color: #fff8cf !important;
    border: 2px solid #fff8cf !important;
    background: #c72612 !important;
    box-shadow: 0 10px 0 rgba(90, 22, 8, 0.46), inset 0 0 0 2px rgba(255, 215, 46, 0.2) !important;
}

body.inline-detail-mode .inline-detail__close {
    color: #7d150b !important;
    border: 2px solid #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 58%, #ffad10 100%) !important;
    box-shadow: 0 5px 0 rgba(90, 22, 8, 0.36) !important;
}

body.inline-detail-mode .inline-detail__kicker {
    color: #ffd72e !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 2px 0 rgba(90, 22, 8, 0.5) !important;
}

body.inline-detail-mode .inline-detail h2 {
    color: #fff8cf !important;
    -webkit-text-fill-color: #fff8cf !important;
    text-shadow: 0 3px 0 #7d150b, 0 0 14px rgba(255, 215, 46, 0.46) !important;
}

body.inline-detail-mode .inline-detail__desc,
body.inline-detail-mode .inline-detail__meta dd {
    color: #fff8cf !important;
    text-shadow: 0 1px 0 rgba(90, 22, 8, 0.44) !important;
}

body.inline-detail-mode .inline-detail__meta div,
body.inline-detail-mode .inline-detail__notes,
body.inline-detail-mode .register-detail-section,
body.inline-detail-mode .register-detail-body,
body.inline-detail-mode .register-detail-table,
body.inline-detail-mode .register-flow-card,
body.inline-detail-mode .register-prize-grid figure,
body.inline-detail-mode .register-flow-block,
body.inline-detail-mode .register-notice-box {
    color: #5a1608 !important;
    border: 2px solid #ffd72e !important;
    background: #fff8cf !important;
    box-shadow: 0 6px 0 rgba(90, 22, 8, 0.22) !important;
}

body.inline-detail-mode .inline-detail__meta dt,
body.inline-detail-mode .register-detail-section__head > p,
body.inline-detail-mode .register-detail-section__head > strong,
body.inline-detail-mode .register-detail-time,
body.inline-detail-mode .inline-detail__notes li,
body.inline-detail-mode .inline-detail__notes li > .note-text,
body.inline-detail-mode .register-detail-section h3,
body.inline-detail-mode .register-detail-section dd,
body.inline-detail-mode .register-detail-body,
body.inline-detail-mode .register-detail-body p,
body.inline-detail-mode .register-detail-body dd,
body.inline-detail-mode .register-detail-table th,
body.inline-detail-mode .register-detail-table td,
body.inline-detail-mode .register-flow-card h3,
body.inline-detail-mode .register-flow-card p,
body.inline-detail-mode .register-prize-grid figcaption,
body.inline-detail-mode .register-notice-box li {
    color: #5a1608 !important;
    text-shadow: none !important;
}

body.inline-detail-mode .register-detail-section h3,
body.inline-detail-mode .register-flow-card h3 {
    color: #c72612 !important;
}

body.inline-detail-mode .register-detail-table th {
    color: #fff8cf !important;
    background: #c72612 !important;
}

body.inline-detail-mode .inline-detail__notes li::before,
body.inline-detail-mode .register-notice-box li::before {
    background: #c72612 !important;
}

body.inline-detail-mode .inline-detail__notes a,
body.inline-detail-mode .register-notice-box a {
    color: #a9150b !important;
}

body.inline-detail-mode .detail-task-section .section-heading h2 {
    color: #c72612 !important;
    -webkit-text-fill-color: #c72612 !important;
    text-shadow: 0 3px 0 #fff8cf, 0 5px 0 #7d150b !important;
}

body.inline-detail-mode .detail-task-rail .register-task-card,
body.inline-detail-mode .detail-task-rail .register-task-card:first-child {
    color: #fff8cf !important;
    border: 2px solid #fff8cf !important;
    background: #c72612 !important;
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.46), inset 0 0 0 2px rgba(255, 215, 46, 0.18) !important;
}

body.inline-detail-mode .detail-task-rail .register-task-card h3,
body.inline-detail-mode .detail-task-rail .register-task-card p {
    color: #fff8cf !important;
    text-shadow: 0 2px 0 rgba(90, 22, 8, 0.42) !important;
}

body.inline-detail-mode .detail-task-rail .register-task-card a,
body.inline-detail-mode .inline-detail__action,
body.inline-detail-mode .inline-detail__back {
    color: #6c1907 !important;
    border-color: #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 52%, #ffad10 100%) !important;
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.42), 0 0 18px rgba(255, 215, 46, 0.34) !important;
}

body#top main section#topupbonus .topup-actions a,
body[data-lang] main section#topupbonus .topup-actions a {
    color: #6c1907 !important;
    border: 2px solid #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 52%, #ffad10 100%) !important;
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.42), 0 0 18px rgba(255, 215, 46, 0.34) !important;
    text-shadow: none !important;
}

body#top main section#topupbonus .topup-actions a:hover,
body[data-lang] main section#topupbonus .topup-actions a:hover {
    background: linear-gradient(180deg, #fff8cf 0%, #ffe98a 46%, #f4b300 100%) !important;
    box-shadow: 0 9px 0 rgba(90, 22, 8, 0.46), 0 0 0 3px rgba(255, 215, 46, 0.32), 0 0 18px rgba(255, 215, 46, 0.42) !important;
}

/* v1.0.26: remove the legacy featured styling from the first member-task card. */
body#top main section#membertasks .rail-large > article.reward-card:first-child,
body#top main section#membertasks .rail-large > article.reward-card.featured,
body[data-lang] main section#membertasks .rail-large > article.reward-card:first-child,
body[data-lang] main section#membertasks .rail-large > article.reward-card.featured {
    color: #fff8cf !important;
    border: 2px solid #fff8cf !important;
    background: #c72612 !important;
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.46), inset 0 0 0 2px rgba(255, 215, 46, 0.18) !important;
}

body#top main section#membertasks .rail-large > article.reward-card:first-child h3,
body#top main section#membertasks .rail-large > article.reward-card.featured h3,
body#top main section#membertasks .rail-large > article.reward-card:first-child p:not(.offer-media),
body#top main section#membertasks .rail-large > article.reward-card.featured p:not(.offer-media),
body[data-lang] main section#membertasks .rail-large > article.reward-card:first-child h3,
body[data-lang] main section#membertasks .rail-large > article.reward-card.featured h3,
body[data-lang] main section#membertasks .rail-large > article.reward-card:first-child p:not(.offer-media),
body[data-lang] main section#membertasks .rail-large > article.reward-card.featured p:not(.offer-media) {
    color: #fff8cf !important;
    text-shadow: 0 2px 0 rgba(90, 22, 8, 0.42) !important;
}

body#top main section#membertasks .rail-large > article.reward-card:first-child .tag,
body#top main section#membertasks .rail-large > article.reward-card.featured .tag,
body[data-lang] main section#membertasks .rail-large > article.reward-card:first-child .tag,
body[data-lang] main section#membertasks .rail-large > article.reward-card.featured .tag {
    color: #7d150b !important;
    border-color: #fff8cf !important;
    background: #ffd72e !important;
    box-shadow: 0 4px 0 rgba(90, 22, 8, 0.24) !important;
}

body#top main section#membertasks .rail-large > article.reward-card:first-child > a,
body#top main section#membertasks .rail-large > article.reward-card.featured > a,
body[data-lang] main section#membertasks .rail-large > article.reward-card:first-child > a,
body[data-lang] main section#membertasks .rail-large > article.reward-card.featured > a {
    color: #6c1907 !important;
    border-color: #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 52%, #ffad10 100%) !important;
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.42), 0 0 18px rgba(255, 215, 46, 0.34) !important;
    text-shadow: none !important;
}

body#top main section#membertasks .rail-large > article.reward-card:first-child > a:hover,
body#top main section#membertasks .rail-large > article.reward-card.featured > a:hover,
body[data-lang] main section#membertasks .rail-large > article.reward-card:first-child > a:hover,
body[data-lang] main section#membertasks .rail-large > article.reward-card.featured > a:hover {
    background: linear-gradient(180deg, #fff8cf 0%, #ffe98a 46%, #f4b300 100%) !important;
    box-shadow: 0 9px 0 rgba(90, 22, 8, 0.46), 0 0 0 3px rgba(255, 215, 46, 0.32), 0 0 18px rgba(255, 215, 46, 0.42) !important;
}

/* v1.0.26: normalize dynamically rendered utm_content CTA buttons. */
body.inline-detail-mode .register-detail-actions > a,
body.inline-detail-mode .register-product-card > a {
    color: #6c1907 !important;
    border: 2px solid #fff8cf !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffd72e 52%, #ffad10 100%) !important;
    box-shadow: 0 8px 0 rgba(90, 22, 8, 0.42), 0 0 18px rgba(255, 215, 46, 0.34) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}

body.inline-detail-mode .register-detail-actions > a:hover,
body.inline-detail-mode .register-product-card > a:hover {
    color: #6c1907 !important;
    background: linear-gradient(180deg, #fff8cf 0%, #ffe98a 46%, #f4b300 100%) !important;
    box-shadow: 0 9px 0 rgba(90, 22, 8, 0.46), 0 0 0 3px rgba(255, 215, 46, 0.32), 0 0 18px rgba(255, 215, 46, 0.42) !important;
}

/* v1.0.26: restore the homepage subtitle colors from the previous visual pass. */
body#top:not(.inline-detail-mode) main > section.section > .section-heading .section-kicker,
body#top:not(.inline-detail-mode) main > section.section > .section-heading > .section-kicker {
    color: #a9150b !important;
    -webkit-text-fill-color: #a9150b !important;
    text-shadow: none !important;
}

body#top:not(.inline-detail-mode) main > section.section > .section-heading > p:not(.section-kicker),
body#top:not(.inline-detail-mode) main > section.section > .section-heading .section-title-copy > p {
    color: #6c1907 !important;
    -webkit-text-fill-color: #6c1907 !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.72) !important;
}

/* v1.0.27: interactive mascot guide for visitors who need a clear starting point. */
.smart-guide {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: clamp(28px, 4vw, 54px) 20px clamp(18px, 3vw, 38px);
    scroll-margin-top: 84px;
}

.smart-guide__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    width: min(1120px, 100%);
    min-height: 410px;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid #fff8cf;
    border-radius: 8px;
    background: linear-gradient(90deg, #fff8cf 0 35%, #c92713 35% 100%);
    box-shadow: 0 10px 0 #7d1b0b, 0 14px 28px rgba(104, 35, 8, 0.22);
}

.smart-guide__inner::before,
.smart-guide__inner::after {
    position: absolute;
    z-index: 3;
    width: 14px;
    height: 14px;
    border: 2px solid #fff8cf;
    border-radius: 50%;
    background: #ffd72e;
    box-shadow: 0 0 0 3px #a9150b;
    content: "";
}

.smart-guide__inner::before {
    top: 14px;
    right: 14px;
}

.smart-guide__inner::after {
    right: 14px;
    bottom: 14px;
}

.smart-guide__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    padding: 22px 0 0 16px;
    overflow: hidden;
}

.smart-guide__visual::after {
    position: absolute;
    top: 0;
    right: -38px;
    width: 76px;
    height: 100%;
    background: #fff8cf;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    content: "";
}

.smart-guide__visual img {
    display: block;
    width: min(420px, 120%);
    max-width: none;
    height: 100%;
    max-height: 390px;
    object-fit: contain;
    object-position: center bottom;
    mix-blend-mode: multiply;
    transform: translateX(5%);
}

.smart-guide__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(30px, 4vw, 50px) clamp(34px, 5vw, 64px);
}

.smart-guide__eyebrow {
    margin: 0 0 8px;
    color: #ffd72e;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.smart-guide__content h2 {
    margin: 0;
    color: #fff8cf;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 950;
    line-height: 1.16;
    letter-spacing: 0;
    text-shadow: 0 3px 0 #791608;
}

.smart-guide__message {
    min-height: 3em;
    margin: 12px 0 20px;
    color: #fffdf2;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.smart-guide__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.smart-guide__choice {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    min-height: 50px;
    padding: 10px 13px;
    border: 2px solid #fff8cf;
    border-radius: 7px;
    color: #6c1907;
    background: #fff8cf;
    box-shadow: 0 4px 0 #8d210e;
    cursor: pointer;
    font: inherit;
    line-height: 1.3;
    text-align: left;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.smart-guide__choice > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef3b24;
    box-shadow: 0 0 0 3px #ffd72e;
}

.smart-guide__choice strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.94rem;
    font-weight: 900;
}

.smart-guide__choice:hover,
.smart-guide__choice:focus-visible {
    background: #ffe45c;
    box-shadow: 0 6px 0 #791608;
    outline: 3px solid rgba(255, 215, 46, 0.42);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.smart-guide__choice.is-selected {
    border-color: #ffd72e;
    background: #ffd72e;
    box-shadow: 0 3px 0 #791608, inset 0 0 0 2px #fff8cf;
    transform: translateY(1px);
}

.smart-guide__choice.is-selected > span {
    background: #a9150b;
    box-shadow: 0 0 0 3px #fff8cf;
}

.smart-guide__reset {
    align-self: flex-start;
    margin-top: 16px;
    padding: 7px 0 5px;
    border: 0;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    color: #fff8cf;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
}

.smart-guide__reset:hover,
.smart-guide__reset:focus-visible {
    color: #ffd72e;
    outline: 2px solid #ffd72e;
    outline-offset: 4px;
}

.smart-guide-arrival {
    scroll-margin-top: 90px;
    animation: smart-guide-arrival 1.4s ease both;
}

@keyframes smart-guide-arrival {
    0%, 100% { filter: none; }
    35% { filter: drop-shadow(0 0 16px rgba(255, 215, 46, 0.9)); }
}

body.inline-detail-mode .smart-guide {
    display: none !important;
}

@media (max-width: 820px) {
    .smart-guide {
        padding: 24px 14px 18px;
    }

    .smart-guide__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        background: linear-gradient(180deg, #fff8cf 0 33%, #c92713 33% 100%);
        box-shadow: 0 8px 0 #7d1b0b, 0 12px 22px rgba(104, 35, 8, 0.2);
    }

    .smart-guide__visual {
        height: clamp(190px, 48vw, 270px);
        padding: 10px 16px 0;
    }

    .smart-guide__visual::after {
        top: auto;
        right: 0;
        bottom: -24px;
        width: 100%;
        height: 48px;
        clip-path: polygon(0 0, 50% 100%, 100% 0);
    }

    .smart-guide__visual img {
        width: min(430px, 100%);
        height: 100%;
        max-height: none;
        transform: none;
    }

    .smart-guide__content {
        padding: 36px 18px 28px;
    }

    .smart-guide__content h2 {
        font-size: clamp(1.6rem, 7vw, 2.15rem);
    }
}

@media (max-width: 540px) {
    .smart-guide__choices {
        grid-template-columns: 1fr;
    }

    .smart-guide__choice {
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smart-guide__choice,
    .smart-guide-arrival {
        transition: none;
        animation: none;
    }
}

/* v1.0.28: floating, progressive decision-tree guide. */
.smart-guide {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    width: auto;
    padding: 0;
    pointer-events: none;
}

.smart-guide__launcher,
.smart-guide__panel {
    pointer-events: auto;
}

.smart-guide__launcher {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 106px;
    height: 112px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #6c1907;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.smart-guide__launcher:hover,
.smart-guide__launcher:focus-visible {
    outline: none;
    box-shadow: none;
    transform: translateY(-3px);
}

.smart-guide__launcher:focus-visible {
    border-radius: 8px;
    outline: 3px solid #ffd72e;
    outline-offset: 3px;
}

.smart-guide__launcher img {
    display: block;
    width: 106px;
    height: 112px;
    object-fit: contain;
    mix-blend-mode: normal;
    filter: drop-shadow(0 8px 6px rgba(90, 22, 8, 0.36));
}

.smart-guide[data-state="open"] .smart-guide__launcher {
    display: none;
}

.smart-guide__panel {
    position: absolute;
    right: 0;
    bottom: 146px;
    width: min(400px, calc(100vw - 32px));
    max-height: min(650px, calc(100vh - 150px));
    overflow: auto;
    border: 3px solid #fff8cf;
    border-radius: 8px;
    color: #fff8cf;
    background: #bd2915;
    box-shadow: 0 9px 0 #7d1b0b, 0 20px 42px rgba(74, 18, 7, 0.4);
    animation: smart-guide-panel-in 180ms ease-out both;
    scrollbar-color: #ffd72e #9d210f;
    scrollbar-width: thin;
}

.smart-guide[data-state="open"] .smart-guide__panel {
    bottom: 88px;
    max-height: calc(100vh - 132px);
}

@keyframes smart-guide-panel-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.smart-guide__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 10px 12px;
    border-bottom: 2px solid rgba(255, 248, 207, 0.5);
    background: #fff8cf;
}

.smart-guide__identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.smart-guide__identity img {
    display: block;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    object-fit: contain;
    mix-blend-mode: normal;
}

.smart-guide__identity > div {
    min-width: 0;
}

.smart-guide__eyebrow {
    margin: 0;
    color: #a9150b;
    font-size: 0.86rem;
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

.smart-guide__status {
    margin: 3px 0 0;
    color: #6c1907;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.3;
}

.smart-guide__close {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 2px solid #a9150b;
    border-radius: 50%;
    color: #a9150b;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.smart-guide__close:hover,
.smart-guide__close:focus-visible {
    color: #fff8cf;
    background: #a9150b;
    outline: 2px solid #ffd72e;
    outline-offset: 2px;
}

.smart-guide__content {
    display: block;
    min-width: 0;
    padding: 22px 20px 18px;
}

.smart-guide__dialogue {
    position: relative;
    margin: 0 0 22px;
    padding: 22px 16px 14px;
    border: 3px solid #ffd72e;
    border-radius: 7px;
    color: #6c1907;
    background: #fff8cf;
    box-shadow: 0 5px 0 #7d1b0b, inset 0 0 0 2px rgba(255, 255, 255, 0.58);
}

.smart-guide__dialogue::after {
    position: absolute;
    bottom: -10px;
    left: 28px;
    width: 16px;
    height: 16px;
    border-right: 3px solid #ffd72e;
    border-bottom: 3px solid #ffd72e;
    background: #fff8cf;
    content: "";
    transform: rotate(45deg);
}

.smart-guide__speaker {
    position: absolute;
    top: -14px;
    left: 13px;
    padding: 5px 12px;
    border: 2px solid #fff8cf;
    border-radius: 5px;
    color: #fff8cf;
    background: #a9150b;
    box-shadow: 0 3px 0 #6c1907;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
}

.smart-guide__content h2 {
    margin: 0;
    color: #6c1907;
    font-size: 1.3rem;
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: none;
}

.smart-guide__content h2:focus {
    outline: none;
}

.smart-guide__message {
    min-height: 0;
    margin: 8px 0 0;
    color: #7d1b0b;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}

.smart-guide__choices {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding-left: 16px;
}

.smart-guide__choices::before {
    position: absolute;
    top: 23px;
    bottom: 23px;
    left: 5px;
    width: 3px;
    border-radius: 3px;
    background: #ffd72e;
    content: "";
}

.smart-guide__choice {
    position: relative;
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr) 18px;
    align-items: center;
    min-height: 48px;
    padding: 9px 11px;
    border: 2px solid #fff8cf;
    border-radius: 7px;
    color: #6c1907;
    background: #fff8cf;
    box-shadow: 0 4px 0 #7d1b0b;
    cursor: pointer;
    font: inherit;
    line-height: 1.3;
    text-align: left;
}

.smart-guide__choice::before {
    position: absolute;
    top: 50%;
    left: -17px;
    width: 17px;
    height: 3px;
    background: #ffd72e;
    content: "";
}

.smart-guide__choice > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c92713;
    box-shadow: 0 0 0 3px #ffd72e;
}

.smart-guide__choice strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    font-weight: 900;
}

.smart-guide__choice i {
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.smart-guide__choice:hover,
.smart-guide__choice:focus-visible {
    color: #6c1907;
    background: #ffe45c;
    box-shadow: 0 5px 0 #791608;
    outline: 3px solid rgba(255, 215, 46, 0.38);
    outline-offset: 2px;
    transform: translateX(3px);
}

.smart-guide__choices:has(.smart-guide__destination) {
    padding-left: 0;
}

.smart-guide__choices:has(.smart-guide__destination)::before {
    content: none;
}

.smart-guide__destination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    gap: 12px;
    padding: 12px 14px;
    border: 3px solid #fff8cf;
    border-radius: 7px;
    color: #6c1907;
    background: #ffd72e;
    box-shadow: 0 6px 0 #791608;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.smart-guide__destination strong {
    font-size: 1rem;
    font-weight: 950;
}

.smart-guide__destination span {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 900;
}

.smart-guide__destination:hover,
.smart-guide__destination:focus-visible {
    background: #fff8cf;
    outline: 3px solid rgba(255, 215, 46, 0.44);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.smart-guide__actions {
    display: flex;
    justify-content: space-between;
    min-height: 49px;
    padding: 8px 20px 13px;
    gap: 12px;
}

.smart-guide__actions:not(:has(button:not([hidden]))) {
    display: none;
}

.smart-guide__back,
.smart-guide__reset {
    align-self: auto;
    margin: 0;
    padding: 5px 0;
    border: 0;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    color: #fff8cf;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
}

.smart-guide__back:hover,
.smart-guide__back:focus-visible,
.smart-guide__reset:hover,
.smart-guide__reset:focus-visible {
    color: #ffd72e;
    outline: 2px solid #ffd72e;
    outline-offset: 3px;
}

body.inline-detail-mode .smart-guide {
    display: none !important;
}

@media (max-width: 640px) {
    .smart-guide {
        right: 10px;
        bottom: calc(102px + env(safe-area-inset-bottom));
        width: auto;
        padding: 0;
    }

    .smart-guide__launcher {
        width: 88px;
        height: 96px;
    }

    .smart-guide__launcher img {
        width: 88px;
        height: 96px;
    }

    .smart-guide__panel {
        position: fixed;
        right: 10px;
        bottom: calc(210px + env(safe-area-inset-bottom));
        left: 10px;
        width: auto;
        max-height: calc(100vh - 230px - env(safe-area-inset-bottom));
    }

    .smart-guide[data-state="open"] .smart-guide__panel {
        bottom: calc(102px + env(safe-area-inset-bottom));
        max-height: calc(100vh - 122px - env(safe-area-inset-bottom));
    }

    .smart-guide__content {
        padding: 22px 16px 15px;
    }

    .smart-guide__content h2 {
        font-size: 1.24rem;
    }

    .smart-guide__actions {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smart-guide__launcher,
    .smart-guide__panel,
    .smart-guide__choice,
    .smart-guide__destination {
        transition: none;
        animation: none;
    }
}

/* v1.0.36: soften the floating bottom navigation after the page starts scrolling. */
.bottom-nav,
body[data-lang] .bottom-nav {
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease !important;
}

body.is-page-scrolled .bottom-nav,
body[data-lang].is-page-scrolled .bottom-nav {
    border-color: rgba(255, 248, 207, 0.3) !important;
    background: rgba(146, 28, 13, 0.32) !important;
    box-shadow: 0 6px 14px rgba(90, 22, 8, 0.13), inset 0 1px 0 rgba(255, 248, 207, 0.1) !important;
    -webkit-backdrop-filter: blur(9px) saturate(1.08);
    backdrop-filter: blur(9px) saturate(1.08);
}

/* v1.0.40: unique generated district per section with seamless transitions. */
body#top:not(.inline-detail-mode) main > section.section[data-board-space] {
    --board-bg: #ffd85a;
    --board-accent: #c92713;
    --board-image: none;
    --board-wash: rgba(255, 218, 82, 0.66);
    --board-position: center;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(64px, 6vw, 88px) max(20px, calc((100vw - 1180px) / 2)) clamp(64px, 6vw, 92px) !important;
    scroll-margin-top: 72px;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    background-color: var(--board-bg) !important;
    background-image:
        linear-gradient(var(--board-wash), var(--board-wash)),
        var(--board-image) !important;
    background-position: center, var(--board-position) !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat !important;
    box-shadow:
        inset 0 6px 0 var(--board-accent),
        inset 0 8px 0 rgba(255, 248, 207, 0.46),
        inset 0 -4px 0 var(--board-accent) !important;
}

body#top:not(.inline-detail-mode) main > section.section[data-board-space] > * {
    position: relative;
    z-index: 1;
}

body#top:not(.inline-detail-mode) main > section.section[data-board-space]::before {
    position: absolute !important;
    top: 18px !important;
    left: max(20px, calc((100vw - 1180px) / 2)) !important;
    z-index: 3 !important;
    display: none !important;
    width: 64px !important;
    height: 52px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 3px solid #fff8cf !important;
    border-radius: 6px !important;
    color: #fff8cf !important;
    background: var(--board-accent) !important;
    box-shadow: 0 6px 0 rgba(108, 25, 7, 0.42) !important;
    content: attr(data-board-space) !important;
    transform: none !important;
    opacity: 1 !important;
    font-size: 0.84rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

body#top:not(.inline-detail-mode) main > section.section[data-board-space] > .section-heading,
body#top:not(.inline-detail-mode) main > section.section[data-board-space] > .journey-progress,
body#top:not(.inline-detail-mode) main > section.section[data-board-space] > .member-gate-grid,
body#top:not(.inline-detail-mode) main > section.section[data-board-space] > .rail-shell,
body#top:not(.inline-detail-mode) main > section.section[data-board-space] > .topup-actions,
body#top:not(.inline-detail-mode) main > section.section[data-board-space] > .wallet-actions,
body#top:not(.inline-detail-mode) main > section.section[data-board-space] > .preregister-action-row {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1180px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body#top:not(.inline-detail-mode) #eventjourney { --board-bg: #b8df75; --board-accent: #32894b; --board-image: none; --board-wash: rgba(184, 223, 117, 0.7); --board-position: center; }
body#top:not(.inline-detail-mode) #membergate { --board-bg: #b8df75; --board-accent: #32894b; --board-image: none; --board-wash: rgba(184, 223, 117, 0.7); --board-position: center; }
body#top:not(.inline-detail-mode) #membertasks { --board-bg: #ffc65e; --board-accent: #d66c05; --board-image: none; --board-wash: rgba(255, 198, 94, 0.67); --board-position: center; }
body#top:not(.inline-detail-mode) #topupbonus { --board-bg: #8ed9b5; --board-accent: #147950; --board-image: none; --board-wash: rgba(142, 217, 181, 0.69); --board-position: left center; }
body#top:not(.inline-detail-mode) #mycardwalletevent { --board-bg: #8bc8ef; --board-accent: #236db5; --board-image: none; --board-wash: rgba(139, 200, 239, 0.68); --board-position: center; }
body#top:not(.inline-detail-mode) #hotgames { --board-bg: #c8b2e9; --board-accent: #7443aa; --board-image: none; --board-wash: rgba(200, 178, 233, 0.72); --board-position: left center; }
body#top:not(.inline-detail-mode) #preregister { --board-bg: #ffa8a0; --board-accent: #bd2845; --board-image: none; --board-wash: rgba(255, 168, 160, 0.72); --board-position: center; }
body#top:not(.inline-detail-mode) #socialtasks { --board-bg: #79d2cc; --board-accent: #147c80; --board-image: none; --board-wash: rgba(121, 210, 204, 0.7); --board-position: center; }
body#top:not(.inline-detail-mode) #mymall { --board-bg: #f2b66c; --board-accent: #ae5413; --board-image: none; --board-wash: rgba(242, 182, 108, 0.7); --board-position: left center; }
body#top:not(.inline-detail-mode) #lottery { --board-bg: #94afea; --board-accent: #3159ae; --board-image: none; --board-wash: rgba(148, 175, 234, 0.72); --board-position: center; }
body#top:not(.inline-detail-mode) #more { --board-bg: #91d084; --board-accent: #347d3f; --board-image: none; --board-wash: rgba(145, 208, 132, 0.7); --board-position: center; }

@media (max-width: 700px) {
    body#top:not(.inline-detail-mode) main > section.section[data-board-space] {
        padding: 56px 12px 48px !important;
        background-position: center, var(--board-position) !important;
        background-size: cover, auto 100% !important;
        scroll-margin-top: 62px;
    }

    body#top:not(.inline-detail-mode) main > section.section[data-board-space]::before {
        top: 14px !important;
        left: 12px !important;
        width: 50px !important;
        height: 42px !important;
        border-width: 2px !important;
        font-size: 0.72rem !important;
        box-shadow: 0 5px 0 rgba(108, 25, 7, 0.36) !important;
    }
}

/* v1.0.68: member tasks uses the same heading system as top-up rewards. */
body#top main section#membertasks > .section-heading {
    display: grid !important;
    width: min(1165px, calc(100% - 32px)) !important;
    margin: 0 auto 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body#top main section#membertasks > .section-heading > .section-kicker {
    display: none !important;
}

body#top main section#membertasks > .section-heading .section-title-row {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    min-height: 112px !important;
    gap: 0 !important;
}

body#top main section#membertasks > .section-heading .section-title-row::before {
    display: none !important;
    content: none !important;
}

body#top main section#membertasks > .section-heading .section-title-icon-frame,
body#top main section#membertasks > .section-heading .section-title-icon {
    display: block !important;
    width: 112px !important;
    height: 112px !important;
    margin: 0 !important;
    object-fit: contain !important;
}

body#top main section#membertasks > .section-heading .section-title-copy {
    display: block !important;
    width: auto !important;
    min-width: 0;
}

body#top main section#membertasks > .section-heading .section-title-copy h2 {
    margin: 0 !important;
    color: #d72712 !important;
    font-size: clamp(2rem, 4.4vw, 3.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-align: left !important;
    text-shadow: 0 3px 0 #fff8cf, 2px 0 0 #fff8cf, -2px 0 0 #fff8cf, 0 -2px 0 #fff8cf, 0 5px 0 #7d150b, 0 0 16px rgba(255, 215, 46, 0.8) !important;
}

body#top main section#membertasks > .section-heading .section-title-copy p {
    margin: 0 !important;
    color: #6c1907 !important;
    font-size: 1.06rem !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.72) !important;
}

/* v1.0.71: merge top-up/wallet and games/preregister into accessible tabs. */
body#top:not(.inline-detail-mode) main > .tab-composite-section {
    display: block !important;
    overflow: hidden;
}

.tab-composite-section > .event-tabs {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(620px, calc(100% - 32px));
    margin: 0 auto clamp(20px, 3vw, 34px);
    padding: 6px;
    gap: 6px;
    border: 3px solid #7d150b;
    border-radius: 18px;
    background: #fff0aa;
    box-shadow: 0 6px 0 #7d150b, inset 0 0 0 2px #ffd72e, 0 12px 24px rgba(92, 28, 6, 0.2);
}

.tab-composite-section .event-tab {
    min-height: 50px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    color: #7d150b;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tab-composite-section .event-tab:hover,
.tab-composite-section .event-tab:focus-visible {
    color: #b31c0a;
    background: rgba(255, 255, 255, 0.6);
    outline: 3px solid rgba(215, 39, 18, 0.28);
    outline-offset: 1px;
}

.tab-composite-section .event-tab.is-active {
    color: #fff8cf;
    background: linear-gradient(180deg, #e8391f, #b61e0d);
    box-shadow: 0 4px 0 #7d150b, inset 0 1px 0 rgba(255,255,255,.35);
    transform: translateY(-1px);
}

.tab-composite-section > .event-tab-panel {
    position: relative;
    z-index: 3;
    display: block;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tab-composite-section > .event-tab-panel[hidden] {
    display: none !important;
}

body#top:not(.inline-detail-mode) #topupbonus > #mycardwalletevent,
body#top:not(.inline-detail-mode) #hotgames > #preregister,
body#top:not(.inline-detail-mode) #hotgames > #games-panel,
body#top:not(.inline-detail-mode) #topupbonus > #topup-panel {
    --board-image: none;
    --board-wash: transparent;
    background: transparent !important;
}

body#top:not(.inline-detail-mode) #topupbonus > #mycardwalletevent::before,
body#top:not(.inline-detail-mode) #topupbonus > #mycardwalletevent::after,
body#top:not(.inline-detail-mode) #hotgames > #preregister::before,
body#top:not(.inline-detail-mode) #hotgames > #preregister::after,
body#top:not(.inline-detail-mode) #hotgames > #games-panel::before,
body#top:not(.inline-detail-mode) #hotgames > #games-panel::after,
body#top:not(.inline-detail-mode) #topupbonus > #topup-panel::before,
body#top:not(.inline-detail-mode) #topupbonus > #topup-panel::after {
    display: none !important;
    content: none !important;
}

.tab-composite-section > .section-heading {
    margin-bottom: clamp(12px, 2vw, 20px) !important;
}

.tab-composite-section .event-tab-panel > .section-heading {
    width: min(1165px, calc(100% - 32px)) !important;
    margin: 0 auto clamp(14px, 2vw, 22px) !important;
}

.tab-composite-section .event-tab-panel > .section-heading .section-title-icon-frame {
    width: 78px !important;
    height: 78px !important;
}

.tab-composite-section .event-tab-panel > .section-heading .section-title-copy h2 {
    font-size: clamp(1.55rem, 3vw, 2.45rem) !important;
}

.tab-composite-section .event-tab-panel > .section-heading .section-title-copy p {
    font-size: .92rem !important;
}

@media (max-width: 700px) {
    .tab-composite-section > .event-tabs {
        width: calc(100% - 24px);
        margin-bottom: 16px;
        padding: 4px;
        gap: 4px;
        border-width: 2px;
        border-radius: 13px;
        box-shadow: 0 4px 0 #7d150b, inset 0 0 0 1px #ffd72e;
    }

    .tab-composite-section .event-tab {
        min-height: 44px;
        padding: 7px 6px;
        border-radius: 9px;
        font-size: .76rem;
    }

    .tab-composite-section .event-tab-panel > .section-heading {
        width: calc(100% - 24px) !important;
        margin-bottom: 10px !important;
    }

    .tab-composite-section .event-tab-panel > .section-heading .section-title-icon-frame {
        width: 52px !important;
        height: 52px !important;
    }

    .tab-composite-section .event-tab-panel > .section-heading .section-title-copy h2 {
        font-size: 1.36rem !important;
    }

    .tab-composite-section .event-tab-panel > .section-heading .section-title-copy p {
        font-size: .66rem !important;
        line-height: 1.3 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tab-composite-section .event-tab { transition: none; }
}

/* Release version: v1.0.71 | Updated: 2026-07-26 22:30:00 CST */

@media (max-width: 700px) {
    body#top main section#membertasks > .section-heading {
        width: calc(100% - 24px) !important;
        margin-bottom: 12px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-row {
        min-height: 56px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-icon-frame,
    body#top main section#membertasks > .section-heading .section-title-icon {
        width: 56px !important;
        height: 56px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy h2 {
        font-size: 1.72rem !important;
    }

body#top main section#membertasks > .section-heading .section-title-copy p {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
    }
}

/* v1.1.42: mobile Shorts intentionally shows two full cards and half of the next. */
@media (max-width: 768px) {
    html body#top:not(.inline-detail-mode) #socialtasks .social-video-rail,
    html body#top[data-lang] #socialtasks .social-video-rail {
        --social-video-gap: 8px;
        display: grid !important;
        grid-auto-flow: column !important;
        grid-template-rows: none !important;
        gap: var(--social-video-gap) !important;
        grid-auto-columns: calc((100% - (var(--social-video-gap) * 1.5)) / 2.5) !important;
    }
}

/* v1.0.41: merge the onboarding route and member gate into one property. */
body#top:not(.inline-detail-mode) #eventjourney {
    padding-bottom: clamp(22px, 3vw, 34px) !important;
    box-shadow:
        inset 0 6px 0 #32894b,
        inset 0 8px 0 rgba(255, 248, 207, 0.46) !important;
    background-attachment: fixed, fixed !important;
}

body#top:not(.inline-detail-mode) #membergate {
    padding-top: clamp(22px, 3vw, 34px) !important;
    box-shadow: inset 0 -4px 0 #32894b !important;
    background-attachment: fixed, fixed !important;
}

body#top:not(.inline-detail-mode) #eventjourney .journey-progress__marker {
    display: grid !important;
}

.site-footer,
body[data-lang] .site-footer {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-right: max(20px, calc((100vw - 1120px) / 2)) !important;
    padding-left: max(20px, calc((100vw - 1120px) / 2)) !important;
    border-top: 4px solid #ffd72e !important;
    border-radius: 0 !important;
    color: #fff8cf !important;
    background: linear-gradient(180deg, #a82412 0%, #6c1907 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 248, 207, 0.24) !important;
}

.site-footer__inner,
.site-footer__apps,
.site-footer__apps a,
.site-footer__inner p {
    background: transparent !important;
}

.site-footer__inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 59px;
        scroll-snap-type: y proximity;
    }

    body#top:not(.inline-detail-mode) .hero {
        height: 20svh !important;
        min-height: 150px !important;
        max-height: 185px !important;
        scroll-snap-align: start;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel {
        min-height: 96px !important;
        height: 12svh !important;
        max-height: 108px !important;
        align-content: center;
        overflow: hidden;
    }

    body#top:not(.inline-detail-mode) #eventjourney {
        min-height: 64px !important;
        height: 8svh !important;
        max-height: 72px !important;
        padding: 6px 12px !important;
        background-size: cover, 100% auto !important;
        background-position: center, center top !important;
        background-attachment: scroll, scroll !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress {
        min-height: 52px;
        height: 100%;
        padding: 4px 0 !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__marker {
        width: 30px !important;
        height: 24px !important;
        font-size: 0.68rem !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__item strong {
        font-size: 0.7rem !important;
    }

    body#top:not(.inline-detail-mode) #membergate {
        min-height: calc(60svh - 149px) !important;
        padding: 12px 12px 24px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-size: cover, 100% auto !important;
        background-position: center, center bottom !important;
        background-attachment: scroll, scroll !important;
    }

    body#top:not(.inline-detail-mode) #membergate .section-heading {
        margin-bottom: 8px !important;
    }

    body#top:not(.inline-detail-mode) #membergate .member-gate-grid {
        gap: 8px !important;
    }

    body#top:not(.inline-detail-mode) #membergate .member-gate-card {
        min-height: 0 !important;
        height: clamp(195px, 25svh, 220px) !important;
    }

    body#top:not(.inline-detail-mode) #membertasks,
    body#top:not(.inline-detail-mode) #topupbonus,
    body#top:not(.inline-detail-mode) #mycardwalletevent,
    body#top:not(.inline-detail-mode) #hotgames,
    body#top:not(.inline-detail-mode) #preregister,
    body#top:not(.inline-detail-mode) #socialtasks,
    body#top:not(.inline-detail-mode) #mymall,
    body#top:not(.inline-detail-mode) #lottery,
    body#top:not(.inline-detail-mode) #more {
        min-height: calc(100svh - 59px) !important;
        scroll-snap-align: start;
        scroll-snap-stop: normal;
        display: flex;
        flex-direction: column;
        justify-content: center;
        scroll-margin-top: 0 !important;
    }

    body#top:not(.inline-detail-mode) .site-footer {
        min-height: 32svh;
        padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
        display: flex;
        align-items: center;
        scroll-snap-align: end;
    }
}

/* v1.0.42: one-image districts, unified first property, and firm mobile paging. */
html {
    background-color: #6c1907 !important;
}

body#top::before,
body#top::after {
    display: none !important;
    content: none !important;
}

body#top:not(.inline-detail-mode) [id="8icons"].quick-panel {
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

body#top:not(.inline-detail-mode) [id="8icons"].quick-panel::before,
body#top:not(.inline-detail-mode) [id="8icons"].quick-panel::after {
    display: none !important;
    content: none !important;
}

body#top:not(.inline-detail-mode) main > section.section[data-board-space] {
    background-position: center, var(--board-position) !important;
    background-size: 100% 100%, 100% auto !important;
    background-repeat: no-repeat, no-repeat !important;
    background-attachment: scroll, scroll !important;
}

body#top:not(.inline-detail-mode) #eventjourney,
body#top:not(.inline-detail-mode) #membergate {
    --board-wash: rgba(184, 223, 117, 0.82);
}

body#top:not(.inline-detail-mode) #membertasks { --board-wash: rgba(255, 198, 94, 0.8); }
body#top:not(.inline-detail-mode) #topupbonus { --board-wash: rgba(142, 217, 181, 0.81); }
body#top:not(.inline-detail-mode) #mycardwalletevent { --board-wash: rgba(139, 200, 239, 0.8); }
body#top:not(.inline-detail-mode) #hotgames { --board-wash: rgba(200, 178, 233, 0.82); }
body#top:not(.inline-detail-mode) #preregister { --board-wash: rgba(255, 168, 160, 0.82); }
body#top:not(.inline-detail-mode) #socialtasks { --board-wash: rgba(121, 210, 204, 0.81); }
body#top:not(.inline-detail-mode) #mymall { --board-wash: rgba(242, 182, 108, 0.81); }
body#top:not(.inline-detail-mode) #lottery { --board-wash: rgba(148, 175, 234, 0.82); }
body#top:not(.inline-detail-mode) #more { --board-wash: rgba(145, 208, 132, 0.81); }

.site-footer,
body[data-lang] .site-footer {
    border-top: 4px solid #ffd72e !important;
    color: #fff8cf !important;
    background: linear-gradient(180deg, #941f0d 0%, #6c1907 100%) !important;
    box-shadow: none !important;
    text-shadow: 0 1px 0 rgba(54, 8, 2, 0.58) !important;
}

.site-footer::before,
.site-footer::after,
.site-footer__inner::before,
.site-footer__inner::after,
.site-footer__apps::before,
.site-footer__apps::after {
    display: none !important;
    content: none !important;
}

.site-footer__inner,
.site-footer__apps,
.site-footer__apps a,
.site-footer__inner p {
    background: none !important;
    box-shadow: none !important;
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 59px !important;
        scroll-snap-type: y mandatory !important;
        overscroll-behavior-y: none;
    }

    body#top:not(.inline-detail-mode) .hero {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel {
        position: relative !important;
        inset: auto !important;
        margin: 0 !important;
        transform: none !important;
        scroll-snap-align: none !important;
    }

    body#top:not(.inline-detail-mode) main > section.section[data-board-space] {
        background-position: center, var(--board-position) !important;
        background-size: 100% 100%, auto 100% !important;
        background-repeat: no-repeat, no-repeat !important;
        background-attachment: scroll, scroll !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney,
    body#top:not(.inline-detail-mode) #membergate {
        background-position: center, center !important;
        background-size: 100% 100%, auto 100svh !important;
        background-repeat: no-repeat, no-repeat !important;
        background-attachment: scroll, fixed !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney {
        box-shadow:
            inset 0 6px 0 #32894b,
            inset 0 8px 0 rgba(255, 248, 207, 0.46) !important;
    }

    body#top:not(.inline-detail-mode) #membergate {
        box-shadow: inset 0 -4px 0 #32894b !important;
    }

    body#top:not(.inline-detail-mode) #membertasks,
    body#top:not(.inline-detail-mode) #topupbonus,
    body#top:not(.inline-detail-mode) #mycardwalletevent,
    body#top:not(.inline-detail-mode) #hotgames,
    body#top:not(.inline-detail-mode) #preregister,
    body#top:not(.inline-detail-mode) #socialtasks,
    body#top:not(.inline-detail-mode) #mymall,
    body#top:not(.inline-detail-mode) #lottery,
    body#top:not(.inline-detail-mode) #more {
        box-sizing: border-box;
        height: calc(100svh - 59px) !important;
        min-height: calc(100svh - 59px) !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    body#top:not(.inline-detail-mode) .site-footer {
        scroll-snap-align: end;
        scroll-snap-stop: always;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__list {
        height: 52px !important;
        align-items: start;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__item {
        height: 52px !important;
        min-height: 52px !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__link {
        height: 52px !important;
        gap: 2px !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__item strong {
        display: flex !important;
        align-items: flex-start;
        justify-content: center;
        height: 24px !important;
        min-height: 0 !important;
        font-size: 0.62rem !important;
        line-height: 1.05 !important;
    }
}

/* v1.0.43: mobile sections advance as discrete vertical slides. */
@media (max-width: 700px) {
    html.is-mobile-page-slider,
    html.is-mobile-page-slider body {
        overscroll-behavior-y: none;
    }

    html.is-mobile-page-slider main {
        touch-action: pan-x pinch-zoom;
    }

    html.is-mobile-page-slider .bottom-nav,
    html.is-mobile-page-slider .side-nav {
        transition: opacity 220ms ease, transform 260ms ease, visibility 0s linear 0s !important;
    }

    body[data-mobile-slide-id="home"] .bottom-nav {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translate(-50%, calc(100% + 24px)) !important;
    }

    body[data-mobile-slide-id="home"] .side-nav {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateX(calc(100% + 20px)) !important;
    }

    body#top:not(.inline-detail-mode) #membergate {
        height: calc(100svh - 59px - clamp(150px, 20svh, 185px) - clamp(96px, 12svh, 108px) - clamp(64px, 8svh, 72px)) !important;
        min-height: calc(100svh - 59px - clamp(150px, 20svh, 185px) - clamp(96px, 12svh, 108px) - clamp(64px, 8svh, 72px)) !important;
        justify-content: flex-start !important;
    }
}

/* v1.0.44: keep the document canvas and footer overscroll uniformly deep red. */
html {
    background: #6c1907 !important;
}

body#top:not(.inline-detail-mode) {
    padding-bottom: 0 !important;
    background: #6c1907 !important;
}

body#top:not(.inline-detail-mode) > main {
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.65), transparent 18%),
        repeating-conic-gradient(from -18deg at 50% 0%, rgba(255, 255, 255, 0.16) 0deg 7deg, rgba(255, 186, 0, 0.08) 7deg 15deg),
        linear-gradient(180deg, #ffe961 0%, #ffc019 36%, #ffad10 68%, #f18a05 100%) !important;
}

/* v1.0.45: keep guide scrolling inside the dialogue and the close control reachable. */
.smart-guide__panel,
.home-notice__panel,
.inline-detail__panel {
    overscroll-behavior: contain;
}

/* v1.2.68: desktop utm_content panels scroll the page while hovered. */
@media (min-width: 769px) {
    body.inline-detail-mode .inline-detail__panel {
        overscroll-behavior-y: auto !important;
    }
}

.smart-guide__header {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* v1.0.46: make quick actions a contained, continuous part of mobile Part 1. */
@media (max-width: 700px) {
    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel,
    body#top:not(.inline-detail-mode) #eventjourney,
    body#top:not(.inline-detail-mode) #membergate {
        background-color: #b8df75 !important;
        background-image: linear-gradient(rgba(184, 223, 117, 0.82), rgba(184, 223, 117, 0.82)) !important;
        background-position: center !important;
        background-size: 100% 100% !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        height: clamp(120px, 15svh, 132px) !important;
        min-height: clamp(120px, 15svh, 132px) !important;
        max-height: clamp(120px, 15svh, 132px) !important;
        padding: 4px 8px !important;
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(0, 1fr) !important;
        column-gap: 6px !important;
        row-gap: 4px !important;
        align-content: stretch !important;
        overflow: hidden !important;
        box-shadow:
            inset 0 6px 0 #32894b,
            inset 0 8px 0 rgba(255, 248, 207, 0.46) !important;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel > a {
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 1px !important;
        gap: 0 !important;
        align-self: stretch !important;
        transform: none !important;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon,
    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon img,
    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon svg {
        width: 21px !important;
        height: 21px !important;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel strong,
    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel a > span:not(.has-icon) {
        font-size: 9px !important;
        line-height: 1 !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney {
        height: clamp(52px, 7svh, 60px) !important;
        min-height: clamp(52px, 7svh, 60px) !important;
        max-height: clamp(52px, 7svh, 60px) !important;
        padding: 0 12px !important;
        box-shadow: none !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress {
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 !important;
    }

    body#top:not(.inline-detail-mode) #membergate {
        height: calc(100svh - 59px - clamp(150px, 20svh, 185px) - clamp(120px, 15svh, 132px) - clamp(52px, 7svh, 60px)) !important;
        min-height: calc(100svh - 59px - clamp(150px, 20svh, 185px) - clamp(120px, 15svh, 132px) - clamp(52px, 7svh, 60px)) !important;
    }

    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) [id="8icons"].quick-panel > a {
        overflow: hidden !important;
    }

    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon,
    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon img,
    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon svg {
        width: 19px !important;
        height: 19px !important;
    }

    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) [id="8icons"].quick-panel strong,
    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) [id="8icons"].quick-panel a > span:not(.has-icon) {
        font-size: 8px !important;
        line-height: 0.95 !important;
    }

    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) #eventjourney .journey-progress__item strong {
        height: 24px !important;
        overflow: hidden !important;
        font-size: 8px !important;
        line-height: 1 !important;
    }

    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) #membergate .section-heading {
        margin-bottom: 4px !important;
    }

    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) #membergate .section-heading h2 {
        font-size: 1.45rem !important;
        line-height: 1 !important;
    }

    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) #membergate .section-heading > p:not(.section-kicker),
    body#top:not([data-lang="zh"]):not([data-lang="zh-cn"]):not([data-lang="ja"]):not([data-lang="ko"]):not(.inline-detail-mode) #membergate .section-title-copy > p {
        margin-top: 2px !important;
        font-size: 0.7rem !important;
        line-height: 1.05 !important;
    }
}

/* v1.0.47: keep Japanese mobile titles and Part 1 controls inside the viewport. */
@media (max-width: 700px) {
    body#top[data-lang="ja"]:not(.inline-detail-mode) main > section,
    body#top[data-lang="ja"]:not(.inline-detail-mode) main > section > .section-heading {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) .section-heading .section-title-row {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) .section-heading .section-title-copy {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) .section-heading .section-title-copy h2,
    body#top[data-lang="ja"]:not(.inline-detail-mode) .section-heading .section-title-copy p {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) .section-heading .section-title-copy h2 {
        font-size: clamp(1.55rem, 7.2vw, 1.85rem) !important;
        line-height: 1.05 !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) [id="8icons"].quick-panel > a {
        overflow: hidden !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon,
    body#top[data-lang="ja"]:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon img,
    body#top[data-lang="ja"]:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon svg {
        width: 19px !important;
        height: 19px !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) [id="8icons"].quick-panel strong,
    body#top[data-lang="ja"]:not(.inline-detail-mode) [id="8icons"].quick-panel a > span:not(.has-icon) {
        font-size: 8px !important;
        line-height: 0.95 !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) #eventjourney .journey-progress__item strong {
        height: 24px !important;
        overflow: hidden !important;
        font-size: 7px !important;
        line-height: 0.95 !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) #membergate .section-heading {
        margin-bottom: 4px !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) #membergate .section-heading .section-title-copy h2 {
        font-size: 1.25rem !important;
        line-height: 1 !important;
    }

    body#top[data-lang="ja"]:not(.inline-detail-mode) #membergate .section-title-copy > p {
        margin-top: 2px !important;
        font-size: 0.7rem !important;
        line-height: 1.05 !important;
    }
}

/* v1.0.48: wrap Japanese bottom navigation labels inside their own tap targets. */
@media (max-width: 700px) {
    body#top[data-lang="ja"] .bottom-nav > a {
        min-width: 0 !important;
        overflow: hidden !important;
        font-size: 10px !important;
        line-height: 1.05 !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }
}

/* v1.0.49: preserve the complete Part 1 route on short mobile viewports. */
@media (max-width: 700px) and (max-height: 650px) {
    body#top:not(.inline-detail-mode) {
        --short-part-hero: clamp(128px, 23svh, 145px);
        --short-part-quick: clamp(96px, 17svh, 108px);
        --short-part-journey: clamp(42px, 7.5svh, 46px);
    }

    body#top:not(.inline-detail-mode) .hero {
        height: var(--short-part-hero) !important;
        min-height: var(--short-part-hero) !important;
        max-height: var(--short-part-hero) !important;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel {
        height: var(--short-part-quick) !important;
        min-height: var(--short-part-quick) !important;
        max-height: var(--short-part-quick) !important;
        padding-top: 3px !important;
        padding-bottom: 3px !important;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon,
    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon img,
    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel span.has-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel strong,
    body#top:not(.inline-detail-mode) [id="8icons"].quick-panel a > span:not(.has-icon) {
        font-size: 8px !important;
        line-height: 0.95 !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney {
        height: var(--short-part-journey) !important;
        min-height: var(--short-part-journey) !important;
        max-height: var(--short-part-journey) !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress {
        height: 100% !important;
        min-height: 0 !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__list,
    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__item,
    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__link {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__link {
        overflow: hidden !important;
    }

    body#top:not(.inline-detail-mode) #eventjourney .journey-progress__item strong {
        height: 18px !important;
        overflow: hidden !important;
        font-size: 7px !important;
        line-height: 0.95 !important;
    }

    body#top:not(.inline-detail-mode) #membergate {
        height: calc(100svh - 59px - var(--short-part-hero) - var(--short-part-quick) - var(--short-part-journey)) !important;
        min-height: calc(100svh - 59px - var(--short-part-hero) - var(--short-part-quick) - var(--short-part-journey)) !important;
        max-height: calc(100svh - 59px - var(--short-part-hero) - var(--short-part-quick) - var(--short-part-journey)) !important;
        padding: 6px 10px 0 !important;
    }

    body#top:not(.inline-detail-mode) #membergate .section-heading {
        flex: 0 0 auto !important;
        margin-bottom: 4px !important;
    }

    body#top:not(.inline-detail-mode) #membergate .section-title-icon-frame {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }

    body#top:not(.inline-detail-mode) #membergate .section-title-copy h2 {
        font-size: 1.3rem !important;
        line-height: 1 !important;
    }

    body#top:not(.inline-detail-mode) #membergate .section-title-copy > p {
        margin-top: 1px !important;
        font-size: 0.65rem !important;
        line-height: 1 !important;
    }

    body#top:not(.inline-detail-mode) #membergate .member-gate-grid {
        flex: 0 0 170px !important;
        height: 170px !important;
        min-height: 170px !important;
        max-height: 170px !important;
        gap: 6px !important;
    }

    body#top:not(.inline-detail-mode) #membergate .member-gate-card {
        height: 170px !important;
        min-height: 170px !important;
        max-height: 170px !important;
        padding: 8px 8px 46px !important;
    }

    body#top:not(.inline-detail-mode) #membergate .member-gate-card h3 {
        font-size: 14px !important;
        line-height: 1.05 !important;
    }

    body#top:not(.inline-detail-mode) #membergate .member-gate-card__media {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
    }

    body#top:not(.inline-detail-mode) #membergate .member-gate-card__media img {
        width: auto !important;
        max-width: 94px !important;
        height: 64px !important;
        max-height: 64px !important;
    }

    body#top:not(.inline-detail-mode) #membergate .member-gate-card a {
        right: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    body#top:not(.inline-detail-mode) .smart-guide__launcher,
    body#top:not(.inline-detail-mode) .smart-guide__launcher img {
        width: 68px !important;
        height: 74px !important;
    }

    body#top[data-mobile-slide-id="home"]:not(.inline-detail-mode) .smart-guide {
        right: -4px !important;
        bottom: calc(58px + env(safe-area-inset-bottom)) !important;
    }

    body#top:not(.inline-detail-mode) #membertasks > * {
        zoom: 0.75;
    }

    body#top:not(.inline-detail-mode) #topupbonus > * {
        zoom: 0.65;
    }

    body#top:not(.inline-detail-mode) #mycardwalletevent > * {
        zoom: 0.7;
    }

    body#top:not(.inline-detail-mode) #hotgames > * {
        zoom: 0.78;
    }

    body#top:not(.inline-detail-mode) #preregister > * {
        zoom: 0.94;
    }

    body#top:not(.inline-detail-mode) #socialtasks > * {
        zoom: 0.42;
    }
}

/* v1.0.67: final card-carousel heading restoration after retired quest-board rules. */
body#top main section#membertasks > .section-heading {
    width: min(1120px, calc(100% - 44px)) !important;
    margin: 0 auto 20px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body#top main section#membertasks > .section-heading > .section-kicker {
    display: none !important;
}

body#top main section#membertasks > .section-heading .section-title-row {
    display: block !important;
}

body#top main section#membertasks > .section-heading .section-title-row::before,
body#top main section#membertasks > .section-heading .section-title-icon-frame {
    display: none !important;
    content: none !important;
}

body#top main section#membertasks > .section-heading .section-title-copy {
    display: block !important;
}

body#top main section#membertasks > .section-heading .section-title-copy h2 {
    margin: 0 !important;
    color: #a52210 !important;
    font-size: clamp(2rem, 3.2vw, 2.8rem) !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    text-shadow: 0 2px 0 #fff6cb, 0 4px 0 rgba(103, 25, 8, 0.18) !important;
}

body#top main section#membertasks > .section-heading .section-title-copy p {
    margin: 7px 0 0 !important;
    color: #7b220e !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-shadow: 0 1px 0 rgba(255, 251, 226, 0.82) !important;
}

@media (max-width: 700px) {
    body#top main section#membertasks > .section-heading {
        width: calc(100% - 24px) !important;
        margin-bottom: 12px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy h2 {
        font-size: 1.38rem !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy p {
        margin-top: 4px !important;
        font-size: 0.7rem !important;
    }
}

/* v1.0.60: simplify the RPG board into a game-style quest menu. */
body#top main section#membertasks > .section-heading {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    grid-template-areas:
        "crest kicker"
        "crest title"
        "crest subtitle" !important;
    align-items: center;
    gap: 1px 10px;
    width: min(1165px, calc(100% - 32px));
    margin: 0 auto 12px !important;
    padding: 10px 14px 11px !important;
    border: 2px solid #ffe18a;
    border-radius: 7px;
    background: linear-gradient(135deg, #a42b13 0%, #7b1c0b 58%, #5b1107 100%);
    box-shadow: 0 6px 0 #4b1108;
    color: #fff5c8;
    text-align: left !important;
}

body#top main section#membertasks > .section-heading::before {
    display: grid;
    grid-area: crest;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid #fff1ac;
    border-radius: 50%;
    background: #ffd85b;
    box-shadow: inset 0 0 0 4px #a52a12;
    color: #fff8d6;
    content: "✦";
    font-size: 19px;
    line-height: 1;
}

body#top main section#membertasks > .section-heading .section-kicker {
    grid-area: kicker;
    margin: 0 !important;
    color: #ffd968 !important;
    font-size: 0.64rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

body#top main section#membertasks > .section-heading h2 {
    grid-area: title;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(1.28rem, 2.2vw, 1.78rem) !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    text-align: left !important;
    text-shadow: 0 3px 0 rgba(70, 10, 4, 0.45) !important;
}

body#top main section#membertasks > .section-heading p:not(.section-kicker) {
    grid-area: subtitle;
    margin: 2px 0 0 !important;
    color: #fff0bf !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

body#top main section#membertasks .member-task-board__intro {
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px 8px;
    border-top: 0;
    border-bottom: 2px solid #8f210f;
}

body#top main section#membertasks .member-task-board__guild {
    padding-left: 0;
}

body#top main section#membertasks .member-task-board__guild::before,
body#top main section#membertasks .member-task-board__guild::after {
    display: none;
}

body#top main section#membertasks .member-task-board__kicker {
    color: #8f210f;
    font-size: 0.61rem;
}

body#top main section#membertasks .member-task-board__title {
    color: #6c1907;
    font-size: 0.96rem;
    line-height: 1.15;
}

body#top main section#membertasks .member-task-board__hint {
    min-height: 22px;
    padding: 0 8px;
    border-color: #8f210f;
    border-radius: 3px;
    background: #fff5c4;
    font-size: 0.64rem;
}

body#top main section#membertasks a.member-task-tile__link,
body[data-lang] main section#membertasks a.member-task-tile__link {
    grid-template-columns: 78px minmax(0, 1fr) 30px !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-template-areas: "media copy action" !important;
    align-items: center !important;
    column-gap: 12px !important;
    min-height: 138px !important;
    padding: 11px 12px !important;
    border: 2px solid #ffe18a !important;
    border-left: 5px solid var(--task-accent) !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #9b2912 0%, #7b1c0b 55%, #581107 100%) !important;
    box-shadow: 0 6px 0 #4b1108 !important;
}

body#top main section#membertasks a.member-task-tile__link::before {
    inset: 5px;
    border-radius: 2px;
}

body#top main section#membertasks .member-task-tile__media,
body#top main section#membertasks .member-task-tile__media.offer-media {
    width: 78px !important;
    height: 78px !important;
}

body#top main section#membertasks .member-task-tile__media img,
body#top main section#membertasks .member-task-tile__media svg {
    width: 74px !important;
    height: 74px !important;
    max-width: 74px !important;
    max-height: 74px !important;
}

body#top main section#membertasks .member-task-tile__copy {
    align-content: center;
    gap: 6px;
}

body#top main section#membertasks article.member-task-tile h3 {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
}

body#top main section#membertasks .member-task-tile__reward {
    gap: 5px;
    color: #ffe17d;
    font-size: 0.67rem;
    line-height: 1.2;
}

body#top main section#membertasks .member-task-tile__action {
    justify-self: end;
    color: inherit !important;
}

body#top main section#membertasks .member-task-tile__action i {
    width: 28px;
    height: 28px;
    border: 2px solid #fff1aa;
    border-radius: 50%;
    background: #ffd95b;
    color: #6c1907;
    font-size: 17px;
    font-weight: 950;
}

@media (max-width: 700px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding: 10px 10px 86px !important;
    }

    body#top main section#membertasks > .section-heading {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 1px 8px;
        width: 100%;
        margin-bottom: 8px !important;
        padding: 7px 9px 8px !important;
        border-radius: 5px;
        box-shadow: 0 4px 0 #4b1108;
    }

    body#top main section#membertasks > .section-heading::before {
        width: 33px;
        height: 33px;
        box-shadow: inset 0 0 0 3px #a52a12;
        font-size: 14px;
    }

    body#top main section#membertasks > .section-heading .section-kicker {
        font-size: 0.47rem !important;
    }

    body#top main section#membertasks > .section-heading h2 {
        font-size: 1.1rem !important;
    }

    body#top main section#membertasks > .section-heading p:not(.section-kicker) {
        font-size: 0.62rem !important;
        line-height: 1.15 !important;
    }

    body#top main section#membertasks .member-task-board__intro {
        margin-bottom: 7px;
        padding: 0 1px 6px;
    }

    body#top main section#membertasks .member-task-board__kicker {
        font-size: 0.46rem;
    }

    body#top main section#membertasks .member-task-board__title {
        font-size: 0.78rem;
    }

    body#top main section#membertasks .member-task-board__hint {
        min-height: 19px;
        padding: 0 5px;
        font-size: 0.52rem;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        grid-template-columns: 45px minmax(0, 1fr) 22px !important;
        grid-template-rows: minmax(0, 1fr) !important;
        grid-template-areas: "media copy action" !important;
        column-gap: 6px !important;
        min-height: 118px !important;
        padding: 8px 6px !important;
        box-shadow: 0 4px 0 #4b1108 !important;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media {
        width: 45px !important;
        height: 45px !important;
    }

    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }

    body#top main section#membertasks .member-task-tile__copy {
        gap: 4px;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.78rem !important;
        line-height: 1.1 !important;
    }

    body#top main section#membertasks .member-task-tile__reward {
        gap: 3px;
        font-size: 0.5rem;
    }

    body#top main section#membertasks .member-task-tile__action i {
        width: 19px;
        height: 19px;
        border-width: 1px;
        font-size: 12px;
    }
}

@media (max-width: 700px) and (max-height: 650px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding-top: 6px !important;
        padding-bottom: 70px !important;
    }

    body#top main section#membertasks > .section-heading {
        margin-bottom: 5px !important;
        padding: 5px 7px !important;
    }

    body#top main section#membertasks > .section-heading p:not(.section-kicker),
    body#top main section#membertasks .member-task-board__intro {
        display: none !important;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        min-height: 86px !important;
        padding: 5px !important;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media,
    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.68rem !important;
    }

    body#top main section#membertasks .member-task-tile__reward {
        display: none;
    }
}

/* v1.0.60 follow-up: section headings are assembled dynamically into a title row. */
body#top main section#membertasks > .section-heading {
    display: block !important;
}

body#top main section#membertasks > .section-heading::before {
    display: none;
}

body#top main section#membertasks > .section-heading > .section-kicker {
    display: none !important;
}

body#top main section#membertasks > .section-heading .section-title-row {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    align-items: center;
    gap: 10px;
}

body#top main section#membertasks > .section-heading .section-title-row::before {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid #fff1ac;
    border-radius: 50%;
    background: #ffd85b;
    box-shadow: inset 0 0 0 4px #a52a12;
    color: #fff8d6;
    content: "✦";
    font-size: 19px;
    line-height: 1;
}

body#top main section#membertasks > .section-heading .section-title-icon-frame {
    display: none !important;
}

body#top main section#membertasks > .section-heading .section-title-copy {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
}

body#top main section#membertasks > .section-heading .section-title-copy h2,
body#top main section#membertasks > .section-heading .section-title-copy p {
    grid-area: auto;
}

body#top main section#membertasks > .section-heading .section-title-copy h2 {
    margin: 0 !important;
}

body#top main section#membertasks > .section-heading .section-title-copy p {
    margin: 2px 0 0 !important;
}

@media (max-width: 700px) {
    body#top main section#membertasks > .section-heading .section-title-row {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 8px;
    }

    body#top main section#membertasks > .section-heading .section-title-row::before {
        width: 33px;
        height: 33px;
        box-shadow: inset 0 0 0 3px #a52a12;
        font-size: 14px;
    }
}

@media (max-width: 700px) and (max-height: 650px),
       (max-width: 430px) and (min-height: 651px) and (max-height: 750px) {
    body#top:not(.inline-detail-mode) .bottom-nav {
        bottom: calc(4px + env(safe-area-inset-bottom)) !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        padding: 3px 8px !important;
    }

    body#top:not(.inline-detail-mode) .bottom-nav > a {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        min-width: 0 !important;
        padding: 1px 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
        font-size: clamp(8px, 1.4vw, 10px) !important;
        line-height: 1 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    body#top:not(.inline-detail-mode) .bottom-nav span.has-icon,
    body#top:not(.inline-detail-mode) .bottom-nav span.has-icon img,
    body#top:not(.inline-detail-mode) .bottom-nav span.has-icon svg {
        width: clamp(24px, 4vw, 28px) !important;
        height: clamp(24px, 4vw, 28px) !important;
    }
}

/* v1.0.66: restore the carousel heading and keep Manny above floating navigation. */
body#top:not(.inline-detail-mode) .smart-guide {
    z-index: 140 !important;
}

body#top main section#membertasks > .section-heading > .section-kicker {
    display: block !important;
    margin: 0 0 4px !important;
    color: #fff1a9 !important;
    font-size: 0.74rem !important;
    font-weight: 800;
    letter-spacing: 0 !important;
}

body#top main section#membertasks > .section-heading .section-title-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
}

body#top main section#membertasks > .section-heading .section-title-row::before {
    display: none !important;
    content: none !important;
}

body#top main section#membertasks > .section-heading .section-title-copy h2 {
    color: #fffbe2 !important;
    font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
}

body#top main section#membertasks > .section-heading .section-title-copy p {
    color: #fff3c2 !important;
    font-size: 0.92rem !important;
}

@media (max-width: 700px) {
    body#top:not(.inline-detail-mode) .smart-guide {
        z-index: 140 !important;
    }

    body#top main section#membertasks > .section-heading > .section-kicker {
        margin-bottom: 2px !important;
        font-size: 0.55rem !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy h2 {
        font-size: 1.12rem !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy p {
        font-size: 0.66rem !important;
    }
}

@media (max-width: 430px) and (max-height: 750px) {
    body#top:not(.inline-detail-mode) .bottom-nav > a {
        font-size: 8px !important;
    }

    body#top:not(.inline-detail-mode) .bottom-nav span.has-icon,
    body#top:not(.inline-detail-mode) .bottom-nav span.has-icon img,
    body#top:not(.inline-detail-mode) .bottom-nav span.has-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    body#top:not(.inline-detail-mode) #membertasks > * {
        zoom: 0.68;
    }

    body#top:not(.inline-detail-mode) #topupbonus > * {
        zoom: 0.58;
    }

    body#top:not(.inline-detail-mode) #mycardwalletevent > * {
        zoom: 0.64;
    }

    body#top:not(.inline-detail-mode) #hotgames > * {
        zoom: 0.72;
    }

    body#top:not(.inline-detail-mode) #preregister > * {
        zoom: 0.94;
    }

    body#top:not(.inline-detail-mode) #socialtasks > * {
        zoom: 0.55;
    }
}

@media (max-width: 430px) and (min-height: 651px) and (max-height: 750px) {
    body#top:not(.inline-detail-mode) .smart-guide__launcher,
    body#top:not(.inline-detail-mode) .smart-guide__launcher img {
        width: 68px !important;
        height: 74px !important;
    }

    body#top[data-mobile-slide-id="home"]:not(.inline-detail-mode) .smart-guide {
        right: -4px !important;
        bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 700px) and (max-height: 650px) {
    body#top[data-mobile-slide-id="home"]:not(.inline-detail-mode) .smart-guide {
        bottom: calc(62px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 700px) and (min-height: 751px) {
    body#top:not(.inline-detail-mode) .bottom-nav {
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    }
}

/* v1.0.58: replace the member-task carousel with a readable board route. */
body#top main section#membertasks .member-task-board {
    width: min(1165px, calc(100% - 32px));
    margin: 0 auto;
}

body#top main section#membertasks .member-task-board__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 14px;
    color: #6c1907;
}

body#top main section#membertasks .member-task-board__intro > div {
    display: grid;
    gap: 1px;
}

body#top main section#membertasks .member-task-board__kicker {
    color: #8f210f;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

body#top main section#membertasks .member-task-board__title {
    color: #8f210f;
    font-size: 1.15rem;
    font-weight: 950;
    line-height: 1.15;
}

body#top main section#membertasks .member-task-board__hint {
    margin: 0;
    color: #6c1907;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: right;
}

body#top main section#membertasks .member-task-board__grid {
    display: grid !important;
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    gap: 18px 20px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    animation: none !important;
    scroll-snap-type: none !important;
    isolation: isolate;
}

body#top main section#membertasks article.member-task-tile,
body[data-lang] main section#membertasks article.member-task-tile,
body#top main section#membertasks article.member-task-tile:hover {
    position: relative !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: visible !important;
    scroll-snap-align: none !important;
    --task-accent: #2f9d58;
}

body#top main section#membertasks article.member-task-tile:nth-child(2) { --task-accent: #2e78c7; }
body#top main section#membertasks article.member-task-tile:nth-child(3) { --task-accent: #8f45c7; }
body#top main section#membertasks article.member-task-tile:nth-child(4) { --task-accent: #e7432e; }
body#top main section#membertasks article.member-task-tile:nth-child(5) { --task-accent: #d79a00; }
body#top main section#membertasks article.member-task-tile:nth-child(6) { --task-accent: #168f91; }

body#top main section#membertasks article.member-task-tile:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

body#top main section#membertasks article.member-task-tile:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}

body#top main section#membertasks article.member-task-tile:nth-child(6) {
    grid-column: 1;
    grid-row: 2;
}

body#top main section#membertasks a.member-task-tile__link,
body[data-lang] main section#membertasks a.member-task-tile__link {
    box-sizing: border-box !important;
    display: grid !important;
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    grid-template-columns: 46px 76px minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr auto !important;
    grid-template-areas:
        "step media copy"
        "step media copy"
        "step media action" !important;
    align-items: center !important;
    column-gap: 14px !important;
    row-gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 156px !important;
    margin: 0 !important;
    padding: 14px 16px 14px 12px !important;
    border: 2px solid #a52210 !important;
    border-left: 6px solid var(--task-accent) !important;
    border-radius: 8px !important;
    background: linear-gradient(145deg, #fffdf0 0%, #fff4c2 58%, #ffe7a0 100%) !important;
    color: #6c1907 !important;
    box-shadow: 0 7px 0 #8f210f !important;
    text-decoration: none !important;
    overflow: visible !important;
    transform: none !important;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease !important;
}

body#top main section#membertasks a.member-task-tile__link:hover,
body#top main section#membertasks a.member-task-tile__link:focus-visible {
    background: linear-gradient(145deg, #ffffff 0%, #fff6ca 55%, #ffedae 100%) !important;
    box-shadow: 0 10px 0 #8f210f !important;
    filter: saturate(1.04);
    transform: translateY(-3px) !important;
}

body#top main section#membertasks a.member-task-tile__link:focus-visible {
    outline: 3px solid #2e78c7 !important;
    outline-offset: 4px !important;
}

body#top main section#membertasks a.member-task-tile__link:active {
    box-shadow: 0 4px 0 #8f210f !important;
    transform: translateY(3px) !important;
}

body#top main section#membertasks .member-task-tile__step {
    display: grid;
    grid-area: step;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid #ffd72e;
    border-radius: 50%;
    background: #9a220e;
    color: #fff8cf;
    box-shadow: inset 0 0 0 2px rgba(255, 248, 207, 0.22);
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
}

body#top main section#membertasks .member-task-tile__media,
body#top main section#membertasks .member-task-tile__media.offer-media {
    display: grid !important;
    grid-area: media;
    place-items: center;
    width: 76px !important;
    height: 76px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body#top main section#membertasks .member-task-tile__media img,
body#top main section#membertasks .member-task-tile__media svg {
    display: block;
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: contain;
}

body#top main section#membertasks .member-task-tile__copy {
    display: grid;
    grid-area: copy;
    align-self: stretch;
    align-content: center;
    gap: 3px;
    min-width: 0;
}

body#top main section#membertasks .member-task-tile__category {
    color: var(--task-accent);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

body#top main section#membertasks article.member-task-tile h3 {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    color: #8f210f !important;
    font-size: 1.08rem !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    text-align: left !important;
    white-space: normal !important;
    text-overflow: clip !important;
    text-shadow: none !important;
    -webkit-line-clamp: unset !important;
}

body#top main section#membertasks .member-task-tile__description {
    display: -webkit-box;
    min-width: 0;
    margin: 1px 0 0 !important;
    overflow: hidden;
    color: #6c1907 !important;
    font-size: 0.76rem !important;
    font-weight: 700;
    line-height: 1.25 !important;
    text-shadow: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body#top main section#membertasks .member-task-tile__action {
    display: inline-flex !important;
    grid-area: action;
    align-items: center;
    justify-self: start;
    gap: 7px;
    min-width: 0;
    color: #8f210f !important;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1;
}

body#top main section#membertasks .member-task-tile__action i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffd72e;
    color: #6c1907;
    font-size: 14px;
    font-style: normal;
    line-height: 1;
}

body#top main section#membertasks article.member-task-tile::before {
    content: none !important;
}

body#top main section#membertasks article.member-task-tile::after {
    content: none !important;
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 701px) {
    body#top main section#membertasks article.member-task-tile:nth-child(1)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(2)::after {
        content: "" !important;
        top: 50%;
        right: -20px;
        width: 20px;
        height: 4px;
        background-color: transparent !important;
        background-image: repeating-linear-gradient(90deg, #fff8cf 0 6px, transparent 6px 10px) !important;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(3)::after {
        content: "" !important;
        right: 50%;
        bottom: -18px;
        width: 4px;
        height: 18px;
        background-color: transparent !important;
        background-image: repeating-linear-gradient(180deg, #fff8cf 0 6px, transparent 6px 10px) !important;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(4)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(5)::after {
        content: "" !important;
        top: 50%;
        left: -20px;
        width: 20px;
        height: 4px;
        background-color: transparent !important;
        background-image: repeating-linear-gradient(90deg, #fff8cf 0 6px, transparent 6px 10px) !important;
    }
}

@media (max-width: 700px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding: 18px 10px 92px !important;
    }

    body#top:not(.inline-detail-mode) #membertasks > .member-task-board {
        zoom: 1 !important;
    }

    body#top main section#membertasks .member-task-board {
        width: 100%;
    }

    body#top main section#membertasks .member-task-board__intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 8px;
        margin-bottom: 9px;
    }

    body#top main section#membertasks .member-task-board__title {
        font-size: 0.95rem;
    }

    body#top main section#membertasks .member-task-board__hint {
        max-width: 150px;
        font-size: 0.68rem;
    }

    body#top main section#membertasks .member-task-board__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 10px !important;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(1) { grid-column: 1; grid-row: 1; }
    body#top main section#membertasks article.member-task-tile:nth-child(2) { grid-column: 2; grid-row: 1; }
    body#top main section#membertasks article.member-task-tile:nth-child(3) { grid-column: 2; grid-row: 2; }
    body#top main section#membertasks article.member-task-tile:nth-child(4) { grid-column: 1; grid-row: 2; }
    body#top main section#membertasks article.member-task-tile:nth-child(5) { grid-column: 1; grid-row: 3; }
    body#top main section#membertasks article.member-task-tile:nth-child(6) { grid-column: 2; grid-row: 3; }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        grid-template-columns: 34px minmax(0, 1fr) 46px !important;
        grid-template-rows: 44px auto 1fr auto !important;
        grid-template-areas:
            "step . media"
            "copy copy copy"
            "copy copy copy"
            "action action action" !important;
        column-gap: 5px !important;
        row-gap: 3px !important;
        min-height: 136px !important;
        padding: 9px 9px 8px !important;
        border-left-width: 5px !important;
    }

    body#top main section#membertasks .member-task-tile__step {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media {
        justify-self: end;
        width: 44px !important;
        height: 44px !important;
    }

    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }

    body#top main section#membertasks .member-task-tile__category {
        font-size: 8px;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.83rem !important;
        line-height: 1.12 !important;
    }

    body#top main section#membertasks .member-task-tile__description {
        font-size: 0.62rem !important;
        line-height: 1.18 !important;
    }

    body#top main section#membertasks .member-task-tile__action {
        gap: 5px;
        font-size: 0.66rem;
    }

    body#top main section#membertasks .member-task-tile__action i {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(1)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(5)::after {
        content: "" !important;
        top: 50%;
        right: -10px;
        width: 10px;
        height: 3px;
        background-color: transparent !important;
        background-image: repeating-linear-gradient(90deg, #fff8cf 0 4px, transparent 4px 7px) !important;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(2)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(4)::after {
        content: "" !important;
        bottom: -12px;
        left: 50%;
        width: 3px;
        height: 12px;
        background-color: transparent !important;
        background-image: repeating-linear-gradient(180deg, #fff8cf 0 4px, transparent 4px 7px) !important;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(3)::after {
        content: "" !important;
        top: 50%;
        left: -10px;
        width: 10px;
        height: 3px;
        background-color: transparent !important;
        background-image: repeating-linear-gradient(90deg, #fff8cf 0 4px, transparent 4px 7px) !important;
    }
}

@media (max-width: 700px) and (min-height: 651px) and (max-height: 750px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding: 8px 10px 72px !important;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        min-height: 120px !important;
    }

    body#top main section#membertasks .member-task-tile__description {
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 700px) and (min-height: 560px) and (max-height: 650px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding: 6px 8px 72px !important;
    }

    body#top main section#membertasks .member-task-board__intro {
        gap: 4px;
        margin-bottom: 6px;
    }

    body#top main section#membertasks .member-task-board__kicker {
        font-size: 7px;
    }

    body#top main section#membertasks .member-task-board__title {
        font-size: 0.78rem;
    }

    body#top main section#membertasks .member-task-board__hint {
        font-size: 0.56rem;
    }

    body#top main section#membertasks .member-task-board__grid {
        gap: 6px !important;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        grid-template-columns: 28px minmax(0, 1fr) 36px !important;
        grid-template-rows: 34px auto auto !important;
        grid-template-areas:
            "step . media"
            "copy copy copy"
            "action action action" !important;
        min-height: 96px !important;
        padding: 6px !important;
        box-shadow: 0 5px 0 #8f210f !important;
    }

    body#top main section#membertasks .member-task-tile__step {
        width: 26px;
        height: 26px;
        border-width: 1px;
        font-size: 9px;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media,
    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.7rem !important;
    }

    body#top main section#membertasks .member-task-tile__description {
        display: none !important;
    }

    body#top main section#membertasks .member-task-tile__action {
        font-size: 0.58rem;
    }

    body#top main section#membertasks .member-task-tile__action i {
        width: 15px;
        height: 15px;
        font-size: 9px;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(1)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(5)::after {
        right: -6px;
        width: 6px;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(2)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(4)::after {
        bottom: -6px;
        height: 6px;
    }

    body#top main section#membertasks article.member-task-tile:nth-child(3)::after {
        left: -6px;
        width: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body#top main section#membertasks a.member-task-tile__link {
        transition: none !important;
    }
}

/* v1.0.56: replace scaled-down controls with a compact, tappable short-screen layout. */
@media (max-width: 700px) and (min-height: 560px) and (max-height: 750px) {
    body#top:not(.inline-detail-mode) #socialtasks {
        padding-top: 6px !important;
        padding-bottom: 72px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-shell,
    body#top:not(.inline-detail-mode) #socialtasks .social-rail-shell {
        zoom: 1 !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-rail {
        gap: 6px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card {
        height: 118px !important;
        min-height: 118px !important;
        max-height: 118px !important;
        padding: 5px 4px 44px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card h3 {
        margin-bottom: 2px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card .feature-media {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        margin-bottom: 0 !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card .feature-media img,
    body#top:not(.inline-detail-mode) #socialtasks .social-task-card .feature-media svg {
        width: 44px !important;
        height: 44px !important;
        max-height: 44px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card a {
        bottom: 6px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 4px !important;
        font-size: 10px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-rail-shell {
        margin-top: 10px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-video-rail,
    body#top[data-lang] #socialtasks .social-video-rail {
        --social-video-gap: 6px;
        gap: var(--social-video-gap) !important;
        grid-auto-columns: clamp(48px, 16%, 60px) !important;
        padding-bottom: 12px !important;
    }
}

/* v1.0.50: keep Manny's longer decision branches visible without hidden choices. */
.smart-guide__header {
    min-height: 68px;
    padding: 7px 10px;
}

.smart-guide__identity {
    gap: 8px;
}

.smart-guide__identity img {
    width: 50px;
    height: 50px;
}

.smart-guide__content {
    padding: 18px 14px 12px;
}

.smart-guide__dialogue {
    margin-bottom: 16px;
    padding: 19px 13px 11px;
}

.smart-guide__content h2 {
    font-size: 1.12rem;
    line-height: 1.2;
}

.smart-guide__message {
    margin-top: 5px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.smart-guide__choices {
    gap: 6px;
    padding-left: 14px;
}

.smart-guide__choice {
    grid-template-columns: 13px minmax(0, 1fr) 16px;
    min-height: 44px;
    padding: 6px 9px;
    box-shadow: 0 3px 0 #7d1b0b;
}

.smart-guide__choice::before {
    left: -15px;
    width: 15px;
}

.smart-guide__choice strong {
    font-size: 0.82rem;
    line-height: 1.2;
}

.smart-guide__choice i {
    font-size: 1.2rem;
}

.smart-guide__actions {
    min-height: 44px;
    padding: 6px 14px 9px;
}

body.home-notice-open .smart-guide {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* v1.0.52: keep Manny clear of mobile cards after the opening slide. */
@media (max-width: 700px) {
    body#top:not(.inline-detail-mode) .side-nav {
        display: none !important;
    }

    body#top:not(.inline-detail-mode) .smart-guide__launcher,
    body#top:not(.inline-detail-mode) .smart-guide__launcher img {
        width: 68px !important;
        height: 74px !important;
    }

    body#top[data-mobile-slide-id]:not([data-mobile-slide-id="home"]):not(.inline-detail-mode) .smart-guide {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 700px) and (min-height: 751px) {
    body#top[data-mobile-slide-id="home"]:not(.inline-detail-mode) .smart-guide {
        right: -4px !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
    }
}

/* v1.0.54: give tablet navigation and Manny separate lanes. */
@media (min-width: 701px) and (max-width: 1100px) {
    body#top:not(.inline-detail-mode) .side-nav {
        display: none !important;
    }

    body#top:not(.inline-detail-mode) .bottom-nav {
        width: clamp(528px, 58vw, 620px) !important;
    }

    body#top:not(.inline-detail-mode) .smart-guide {
        right: 10px !important;
        bottom: 22px !important;
    }

    body#top:not(.inline-detail-mode) .smart-guide__launcher,
    body#top:not(.inline-detail-mode) .smart-guide__launcher img {
        width: 68px !important;
        height: 74px !important;
    }
}

/* v1.0.55: let short landscape phones use a complete, normally scrolling layout. */
@media (max-width: 700px) and (max-height: 559px) {
    html,
    html body {
        scroll-snap-type: none !important;
        overscroll-behavior-y: auto !important;
    }

    html main {
        touch-action: auto !important;
    }

    body#top:not(.inline-detail-mode) .hero {
        height: clamp(190px, 42vw, 280px) !important;
        min-height: clamp(190px, 42vw, 280px) !important;
        max-height: clamp(190px, 42vw, 280px) !important;
    }

    body#top:not(.inline-detail-mode) #membergate {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 10px 10px 22px !important;
    }

    body#top:not(.inline-detail-mode) #membertasks,
    body#top:not(.inline-detail-mode) #topupbonus,
    body#top:not(.inline-detail-mode) #mycardwalletevent,
    body#top:not(.inline-detail-mode) #hotgames,
    body#top:not(.inline-detail-mode) #preregister,
    body#top:not(.inline-detail-mode) #socialtasks,
    body#top:not(.inline-detail-mode) #mymall,
    body#top:not(.inline-detail-mode) #lottery,
    body#top:not(.inline-detail-mode) #more {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    body#top:not(.inline-detail-mode) .site-footer {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    body#top:not(.inline-detail-mode) .smart-guide {
        display: none !important;
    }
}

/* v1.0.56: keep the complete social mission board above mobile navigation. */
@media (max-width: 700px) and (min-height: 751px) {
    body#top:not(.inline-detail-mode) #socialtasks {
        padding-top: 12px !important;
        padding-bottom: 92px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card {
        padding: 8px 6px 52px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card h3 {
        margin-bottom: 4px !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card .feature-media {
        margin-bottom: 2px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card .feature-media img,
    body#top:not(.inline-detail-mode) #socialtasks .social-task-card .feature-media svg {
        width: min(58px, 78%) !important;
        height: min(58px, 78%) !important;
        max-height: 58px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-task-card a {
        bottom: 10px !important;
    }

    body#top:not(.inline-detail-mode) #socialtasks .social-video-rail,
    body#top[data-lang] #socialtasks .social-video-rail {
        --social-video-gap: 8px;
        gap: var(--social-video-gap) !important;
        grid-auto-columns: calc((100% - (var(--social-video-gap) * 3.5)) / 4.5) !important;
    }
}

/* v1.0.60 final overrides: task heading is rendered as a compact game masthead. */
body#top main section#membertasks > .section-heading {
    display: block !important;
    width: min(1165px, calc(100% - 32px)) !important;
    margin: 0 auto 12px !important;
    padding: 10px 14px 11px !important;
    border: 2px solid #ffe18a !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #a42b13 0%, #7b1c0b 58%, #5b1107 100%) !important;
    box-shadow: 0 6px 0 #4b1108 !important;
}

body#top main section#membertasks > .section-heading::before,
body#top main section#membertasks > .section-heading > .section-kicker,
body#top main section#membertasks > .section-heading .section-title-icon-frame {
    display: none !important;
}

body#top main section#membertasks > .section-heading .section-title-row {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

body#top main section#membertasks > .section-heading .section-title-row::before {
    display: grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid #fff1ac;
    border-radius: 50%;
    background: #ffd85b;
    box-shadow: inset 0 0 0 4px #a52a12;
    color: #fff8d6;
    content: "✦";
    font-size: 19px;
    line-height: 1;
}

body#top main section#membertasks > .section-heading .section-title-copy {
    display: grid !important;
    align-content: center;
    gap: 2px;
    width: 100% !important;
    min-width: 0;
}

body#top main section#membertasks > .section-heading .section-title-copy h2 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(1.28rem, 2.2vw, 1.78rem) !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    text-align: left !important;
    text-shadow: 0 3px 0 rgba(70, 10, 4, 0.45) !important;
}

body#top main section#membertasks > .section-heading .section-title-copy p {
    margin: 2px 0 0 !important;
    color: #fff0bf !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

body#top main section#membertasks .member-task-board__intro {
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px 8px;
    border-top: 0 !important;
    border-bottom: 2px solid #8f210f !important;
}

body#top main section#membertasks .member-task-board__guild {
    padding-left: 0 !important;
}

body#top main section#membertasks .member-task-board__guild::before,
body#top main section#membertasks .member-task-board__guild::after {
    display: none !important;
}

body#top main section#membertasks .member-task-board__kicker {
    color: #8f210f !important;
    font-size: 0.61rem !important;
}

body#top main section#membertasks .member-task-board__title {
    color: #6c1907 !important;
    font-size: 0.96rem !important;
    line-height: 1.15 !important;
}

body#top main section#membertasks .member-task-board__hint {
    min-height: 22px !important;
    padding: 0 8px !important;
    border-color: #8f210f !important;
    border-radius: 3px !important;
    background: #fff5c4 !important;
    font-size: 0.64rem !important;
}

body#top main section#membertasks a.member-task-tile__link,
body[data-lang] main section#membertasks a.member-task-tile__link {
    grid-template-columns: 78px minmax(0, 1fr) 30px !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-template-areas: "media copy action" !important;
    align-items: center !important;
    column-gap: 12px !important;
    min-height: 138px !important;
    padding: 11px 12px !important;
    border: 2px solid #ffe18a !important;
    border-left: 5px solid var(--task-accent) !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #9b2912 0%, #7b1c0b 55%, #581107 100%) !important;
    box-shadow: 0 6px 0 #4b1108 !important;
}

body#top main section#membertasks .member-task-tile__media,
body#top main section#membertasks .member-task-tile__media.offer-media {
    width: 78px !important;
    height: 78px !important;
}

body#top main section#membertasks .member-task-tile__media img,
body#top main section#membertasks .member-task-tile__media svg {
    width: 74px !important;
    height: 74px !important;
    max-width: 74px !important;
    max-height: 74px !important;
}

body#top main section#membertasks .member-task-tile__copy {
    align-content: center !important;
    gap: 6px !important;
    width: 100% !important;
}

body#top main section#membertasks article.member-task-tile h3 {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
}

body#top main section#membertasks .member-task-tile__reward {
    gap: 5px !important;
    color: #ffe17d !important;
    font-size: 0.67rem !important;
    line-height: 1.2 !important;
}

body#top main section#membertasks .member-task-tile__action {
    justify-self: end !important;
}

body#top main section#membertasks .member-task-tile__action i {
    width: 28px !important;
    height: 28px !important;
    border: 2px solid #fff1aa !important;
    border-radius: 50% !important;
    background: #ffd95b !important;
    color: #6c1907 !important;
    font-size: 17px !important;
    font-weight: 950 !important;
}

@media (max-width: 700px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding: 10px 10px 86px !important;
    }

    body#top main section#membertasks > .section-heading {
        width: 100% !important;
        margin-bottom: 8px !important;
        padding: 7px 9px 8px !important;
        border-radius: 5px !important;
        box-shadow: 0 4px 0 #84170a, inset 0 0 0 1px #ef9b21 !important;
    }

    body#top main section#membertasks > .section-heading .section-title-row {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-row::before {
        width: 33px;
        height: 33px;
        box-shadow: inset 0 0 0 3px #a52a12;
        font-size: 14px;
    }

    body#top main section#membertasks > .section-heading .section-title-copy h2 {
        font-size: 1.1rem !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy p {
        font-size: 0.62rem !important;
        line-height: 1.15 !important;
    }

    body#top main section#membertasks .member-task-board__intro {
        margin-bottom: 7px;
        padding: 0 1px 6px;
    }

    body#top main section#membertasks .member-task-board__kicker {
        font-size: 0.46rem !important;
    }

    body#top main section#membertasks .member-task-board__title {
        font-size: 0.78rem !important;
    }

    body#top main section#membertasks .member-task-board__hint {
        min-height: 19px !important;
        padding: 0 5px !important;
        font-size: 0.52rem !important;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        grid-template-columns: 45px minmax(0, 1fr) 22px !important;
        grid-template-rows: minmax(0, 1fr) !important;
        grid-template-areas: "media copy action" !important;
        column-gap: 6px !important;
        min-height: 118px !important;
        padding: 8px 6px !important;
        border-width: 2px !important;
        border-left-width: 6px !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 0 #9d230e, inset 0 0 0 2px #ffe28a !important;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media,
    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }

    body#top main section#membertasks .member-task-tile__copy {
        gap: 4px !important;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.78rem !important;
        line-height: 1.1 !important;
    }

    body#top main section#membertasks .member-task-tile__reward {
        gap: 3px !important;
        font-size: 0.5rem !important;
    }

    body#top main section#membertasks .member-task-tile__action i {
        width: 19px !important;
        height: 19px !important;
        border-width: 1px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 700px) and (max-height: 650px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding-top: 6px !important;
        padding-bottom: 70px !important;
    }

    body#top main section#membertasks > .section-heading {
        margin-bottom: 5px !important;
        padding: 5px 7px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy p,
    body#top main section#membertasks .member-task-board__intro,
    body#top main section#membertasks .member-task-tile__reward {
        display: none !important;
    }

    body#top main section#membertasks .member-task-board__grid {
        gap: 8px !important;
        padding: 9px !important;
        border-width: 2px;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        width: 92px !important;
        min-height: 92px !important;
        padding: 5px !important;
        border-width: 4px !important;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media,
    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.62rem !important;
    }
}

/* v1.0.61: bright MyCard board-game palette for member tasks. */
body#top main section#membertasks {
    background-color: #ffe08a !important;
    background-image: linear-gradient(rgba(255, 234, 166, 0.74), rgba(255, 221, 117, 0.7)) !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
}

body#top main section#membertasks > .section-heading {
    border: 3px solid #ffe99d !important;
    border-radius: 8px !important;
    background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)), #bd2a11 !important;
    box-shadow: 0 6px 0 #84170a, inset 0 0 0 2px #ef9b21 !important;
}

body#top main section#membertasks > .section-heading .section-title-copy h2 {
    color: #fffbe2 !important;
    text-shadow: 0 3px 0 #8b1809 !important;
}

body#top main section#membertasks > .section-heading .section-title-copy p {
    color: #fff1b8 !important;
}

body#top main section#membertasks > .section-heading .section-title-icon-frame,
body#top main section#membertasks > .section-heading .section-title-icon {
    filter: drop-shadow(0 2px 0 rgba(105, 20, 8, 0.65));
}

body#top main section#membertasks .member-task-board__intro {
    padding-bottom: 8px !important;
    border-bottom-color: #bd2a11 !important;
}

body#top main section#membertasks .member-task-board__kicker { color: #bd2a11 !important; }
body#top main section#membertasks .member-task-board__title { color: #8e1b0b !important; }

body#top main section#membertasks .member-task-board__hint {
    border: 2px solid #bd2a11 !important;
    background: #fff6c9 !important;
    color: #a52210 !important;
}

body#top main section#membertasks article.member-task-tile { --task-accent: #dc3721; }
body#top main section#membertasks article.member-task-tile:nth-child(2) { --task-accent: #317cd0; }
body#top main section#membertasks article.member-task-tile:nth-child(3) { --task-accent: #8245c7; }
body#top main section#membertasks article.member-task-tile:nth-child(4) { --task-accent: #e84b2d; }
body#top main section#membertasks article.member-task-tile:nth-child(5) { --task-accent: #e3a312; }
body#top main section#membertasks article.member-task-tile:nth-child(6) { --task-accent: #259f62; }

body#top main section#membertasks a.member-task-tile__link,
body[data-lang] main section#membertasks a.member-task-tile__link {
    border: 2px solid #bd2a11 !important;
    border-top: 10px solid var(--task-accent) !important;
    border-left-width: 2px !important;
    border-radius: 6px !important;
    background: #fffdf1 !important;
    box-shadow: 0 5px 0 #a62510 !important;
    color: #8b1b0a !important;
}

body#top main section#membertasks a.member-task-tile__link::before {
    inset: 7px !important;
    border: 1px solid rgba(197, 44, 18, 0.25) !important;
    border-radius: 3px !important;
}

body#top main section#membertasks a.member-task-tile__link:hover,
body#top main section#membertasks a.member-task-tile__link:focus-visible {
    background: #fff9df !important;
    box-shadow: 0 9px 0 #9d230e, inset 0 0 0 3px #ffe28a !important;
    filter: none !important;
}

body#top main section#membertasks a.member-task-tile__link:active {
    box-shadow: 0 3px 0 #9d230e, inset 0 0 0 3px #ffe28a !important;
}

body#top main section#membertasks .member-task-tile__media img,
body#top main section#membertasks .member-task-tile__media svg {
    filter: drop-shadow(0 2px 0 rgba(142, 27, 11, 0.18)) !important;
}

body#top main section#membertasks article.member-task-tile h3 {
    color: #6d1b0c !important;
    text-shadow: none !important;
}

body#top main section#membertasks .member-task-tile__reward { color: #8c210e !important; }
body#top main section#membertasks .member-task-tile__reward i { color: #e7a20d !important; }

body#top main section#membertasks .member-task-tile__action i {
    border: 2px solid #a52210 !important;
    background: #bd2a11 !important;
    color: #fff7cc !important;
    box-shadow: 0 2px 0 #8d1b0a !important;
}

@media (min-width: 701px) {
    body#top main section#membertasks article.member-task-tile:nth-child(1)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(2)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(4)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(5)::after { background-image: repeating-linear-gradient(90deg, #d22f16 0 5px, #ffe78f 5px 9px) !important; }
    body#top main section#membertasks article.member-task-tile:nth-child(3)::after { background-image: repeating-linear-gradient(180deg, #d22f16 0 5px, #ffe78f 5px 9px) !important; }
}

@media (max-width: 700px) {
    body#top main section#membertasks > .section-heading {
        border-width: 2px !important;
        box-shadow: 0 4px 0 #84170a, inset 0 0 0 1px #ef9b21 !important;
    }
    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        border-width: 2px !important;
        border-left-width: 6px !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 0 #9d230e, inset 0 0 0 2px #ffe28a !important;
    }
    body#top main section#membertasks .member-task-tile__action i {
        border-width: 1px !important;
        box-shadow: 0 1px 0 #8d1b0a !important;
    }
    body#top main section#membertasks article.member-task-tile:nth-child(1)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(3)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(5)::after { background-image: repeating-linear-gradient(90deg, #d22f16 0 4px, #ffe78f 4px 7px) !important; }
    body#top main section#membertasks article.member-task-tile:nth-child(2)::after,
    body#top main section#membertasks article.member-task-tile:nth-child(4)::after { background-image: repeating-linear-gradient(180deg, #d22f16 0 4px, #ffe78f 4px 7px) !important; }
}

/* v1.0.59: turn member tasks into an RPG quest guild. */
body#top main section#membertasks .member-task-board__intro {
    align-items: center;
    margin-bottom: 7px;
    padding: 8px 0 7px;
    border-top: 2px solid #8f210f;
    border-bottom: 2px solid #8f210f;
    color: #6c1907;
}

body#top main section#membertasks .member-task-board__guild {
    position: relative;
    padding-left: 29px;
}

body#top main section#membertasks .member-task-board__guild::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 19px;
    height: 19px;
    border: 2px solid #8f210f;
    border-radius: 50%;
    background: #ffd95b;
    box-shadow: inset 0 0 0 3px #fff1aa;
    content: "";
    transform: translateY(-50%);
}

body#top main section#membertasks .member-task-board__guild::after {
    position: absolute;
    top: 50%;
    left: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8f210f;
    content: "";
    transform: translateY(-50%);
}

body#top main section#membertasks .member-task-board__kicker {
    color: #8f210f;
    font-size: 10px;
    line-height: 1.1;
}

body#top main section#membertasks .member-task-board__title {
    color: #6c1907;
    font-size: 1.22rem;
}

body#top main section#membertasks .member-task-board__hint {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid #8f210f;
    border-radius: 4px;
    background: #fff0a6;
    color: #8f210f;
    font-size: 0.74rem;
    font-weight: 950;
    white-space: nowrap;
}

body#top main section#membertasks .member-task-board__legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 11px;
    color: #6c1907;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

body#top main section#membertasks .member-task-board__legend-node {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #8f210f;
    color: #ffe576;
    font-size: 11px;
}

body#top main section#membertasks a.member-task-tile__link,
body[data-lang] main section#membertasks a.member-task-tile__link {
    grid-template-columns: 44px 74px minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr auto !important;
    grid-template-areas:
        "step media copy"
        "step media copy"
        "step media action" !important;
    column-gap: 12px !important;
    row-gap: 4px !important;
    padding: 13px 15px 12px 11px !important;
    border: 2px solid #ffdd75 !important;
    border-left: 6px solid var(--task-accent) !important;
    background: linear-gradient(145deg, #9f2c13 0%, #751a0a 58%, #581107 100%) !important;
    box-shadow: 0 7px 0 #4b1108 !important;
    color: #fff5c8 !important;
}

body#top main section#membertasks a.member-task-tile__link::before {
    position: absolute;
    inset: 6px;
    z-index: -1;
    border: 1px solid rgba(255, 226, 122, 0.36);
    border-radius: 3px;
    content: "";
}

body#top main section#membertasks a.member-task-tile__link:hover,
body#top main section#membertasks a.member-task-tile__link:focus-visible {
    background: linear-gradient(145deg, #b63a19 0%, #85200d 58%, #631307 100%) !important;
    box-shadow: 0 10px 0 #4b1108 !important;
    filter: brightness(1.05) saturate(1.06);
}

body#top main section#membertasks a.member-task-tile__link:active {
    box-shadow: 0 4px 0 #4b1108 !important;
}

body#top main section#membertasks .member-task-tile__step {
    width: 38px;
    height: 38px;
    border: 2px solid #fff0a8;
    background: #641408;
    color: #ffe478;
    box-shadow: inset 0 0 0 3px #a93616;
}

body#top main section#membertasks .member-task-tile__media,
body#top main section#membertasks .member-task-tile__media.offer-media {
    width: 74px !important;
    height: 74px !important;
}

body#top main section#membertasks .member-task-tile__media img,
body#top main section#membertasks .member-task-tile__media svg {
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    filter: drop-shadow(0 3px 0 rgba(67, 11, 4, 0.54));
}

body#top main section#membertasks .member-task-tile__copy {
    gap: 2px;
}

body#top main section#membertasks .member-task-tile__quest {
    color: #ffe478;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
}

body#top main section#membertasks .member-task-tile__category {
    color: #ffc85f;
    font-size: 0.62rem;
}

body#top main section#membertasks article.member-task-tile h3 {
    color: #ffffff !important;
    font-size: 1.02rem !important;
    text-shadow: 0 2px 0 rgba(54, 9, 3, 0.42) !important;
}

body#top main section#membertasks .member-task-tile__description {
    color: #fff2c1 !important;
    font-size: 0.71rem !important;
}

body#top main section#membertasks .member-task-tile__reward {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #ffdc70;
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1.1;
}

body#top main section#membertasks .member-task-tile__reward i {
    color: #fff2a8;
    font-size: 0.68rem;
    font-style: normal;
}

body#top main section#membertasks .member-task-tile__action {
    color: #fff2c1 !important;
    font-size: 0.72rem;
}

body#top main section#membertasks .member-task-tile__action i {
    width: 20px;
    height: 20px;
    border: 1px solid #fff1a7;
    background: #ffd85b;
    color: #6c1907;
}

@media (max-width: 700px) {
    body#top main section#membertasks .member-task-board__intro {
        margin-bottom: 5px;
        padding: 6px 0;
    }

    body#top main section#membertasks .member-task-board__guild {
        padding-left: 23px;
    }

    body#top main section#membertasks .member-task-board__guild::before {
        width: 15px;
        height: 15px;
    }

    body#top main section#membertasks .member-task-board__guild::after {
        left: 6px;
        width: 6px;
        height: 6px;
    }

    body#top main section#membertasks .member-task-board__kicker {
        font-size: 7px;
    }

    body#top main section#membertasks .member-task-board__title {
        font-size: 0.92rem;
    }

    body#top main section#membertasks .member-task-board__hint {
        min-height: 21px;
        padding: 0 6px;
        font-size: 0.58rem;
    }

    body#top main section#membertasks .member-task-board__legend {
        gap: 4px;
        margin-bottom: 7px;
        font-size: 0.62rem;
    }

    body#top main section#membertasks .member-task-board__legend-node {
        width: 15px;
        height: 15px;
        font-size: 8px;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        grid-template-columns: 31px minmax(0, 1fr) 44px !important;
        grid-template-rows: 40px auto 1fr auto !important;
        min-height: 138px !important;
        padding: 8px 8px 7px !important;
        border-left-width: 5px !important;
        box-shadow: 0 5px 0 #4b1108 !important;
    }

    body#top main section#membertasks .member-task-tile__step {
        width: 29px;
        height: 29px;
        font-size: 10px;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media {
        width: 42px !important;
        height: 42px !important;
    }

    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }

    body#top main section#membertasks .member-task-tile__quest,
    body#top main section#membertasks .member-task-tile__category {
        font-size: 0.54rem;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.84rem !important;
        line-height: 1.08 !important;
    }

    body#top main section#membertasks .member-task-tile__copy {
        align-content: start;
        gap: 3px;
    }

    body#top main section#membertasks .member-task-tile__category,
    body#top main section#membertasks .member-task-tile__description {
        display: none !important;
    }

    body#top main section#membertasks .member-task-tile__reward {
        font-size: 0.56rem;
    }

    body#top main section#membertasks .member-task-tile__action {
        font-size: 0.6rem;
    }

    body#top main section#membertasks .member-task-tile__action i {
        width: 17px;
        height: 17px;
        font-size: 10px;
    }
}

@media (max-width: 700px) and (max-height: 650px) {
    body#top main section#membertasks .member-task-board__legend {
        display: none;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        min-height: 96px !important;
        padding: 6px !important;
    }

    body#top main section#membertasks .member-task-tile__quest,
    body#top main section#membertasks .member-task-tile__reward {
        display: none;
    }
}

/* v1.0.60 final cascade: preserve a clean game-menu layout after legacy rules. */
body#top main section#membertasks {
    overflow-x: clip !important;
    background-color: #ffd462 !important;
    background-image: linear-gradient(rgba(255, 210, 93, 0.62), rgba(255, 210, 93, 0.62)) !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
}

body#top main section#membertasks > .section-heading {
    display: block !important;
    width: min(1165px, calc(100% - 32px)) !important;
    margin: 0 auto 14px !important;
    padding: 8px 13px 9px !important;
    border: 3px solid #ffe99d !important;
    border-radius: 6px !important;
    background: #bd2a11 !important;
    box-shadow: 0 6px 0 #84170a, inset 0 0 0 2px #ef9b21 !important;
}

body#top main section#membertasks > .section-heading::before,
body#top main section#membertasks > .section-heading > .section-kicker,
body#top main section#membertasks > .section-heading .section-title-row::before {
    display: none !important;
}

body#top main section#membertasks > .section-heading .section-title-row {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
}

body#top main section#membertasks > .section-heading .section-title-icon-frame {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    overflow: visible !important;
}

body#top main section#membertasks > .section-heading .section-title-icon {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
}

body#top main section#membertasks > .section-heading .section-title-copy {
    display: grid !important;
    align-content: center;
    gap: 2px;
    width: 100% !important;
    min-width: 0;
}

body#top main section#membertasks > .section-heading .section-title-copy h2 {
    margin: 0 !important;
    color: #fffbe2 !important;
    font-size: clamp(1.24rem, 2.1vw, 1.68rem) !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    text-align: left !important;
    text-shadow: 0 3px 0 #8b1809 !important;
}

body#top main section#membertasks > .section-heading .section-title-copy p {
    margin: 2px 0 0 !important;
    color: #fff3c2 !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

body#top main section#membertasks .member-task-board__intro {
    display: none !important;
    align-items: center !important;
    margin-bottom: 13px !important;
    padding: 0 2px 9px !important;
    border-top: 0 !important;
    border-bottom: 1px dashed #c52c12 !important;
}

body#top main section#membertasks .member-task-board__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 24px !important;
    padding: 20px !important;
    border: 4px solid #c52c12;
    border-radius: 12px;
    background: #fff9dc;
    box-shadow: 0 7px 0 #a62510, inset 0 0 0 3px #ffe28a;
}

body#top main section#membertasks article.member-task-tile {
    display: grid !important;
    place-items: center;
    min-height: 0 !important;
}

body#top main section#membertasks .member-task-board__guild,
body#top main section#membertasks .member-task-board__guild::before,
body#top main section#membertasks .member-task-board__guild::after {
    padding-left: 0 !important;
}

body#top main section#membertasks .member-task-board__guild::before,
body#top main section#membertasks .member-task-board__guild::after {
    display: none !important;
}

body#top main section#membertasks .member-task-board__kicker {
    color: #bd2a11 !important;
    font-size: 0.61rem !important;
}

body#top main section#membertasks .member-task-board__title {
    color: #8e1b0b !important;
    font-size: 0.96rem !important;
    line-height: 1.15 !important;
}

body#top main section#membertasks .member-task-board__hint {
    min-height: 22px !important;
    padding: 0 8px !important;
    border: 1px solid #bd2a11 !important;
    border-radius: 4px !important;
    background: #fff8d8 !important;
    color: #a52210 !important;
    font-size: 0.64rem !important;
}

body#top main section#membertasks article.member-task-tile { --task-accent: #dc3721; }
body#top main section#membertasks article.member-task-tile:nth-child(2) { --task-accent: #317cd0; }
body#top main section#membertasks article.member-task-tile:nth-child(3) { --task-accent: #8245c7; }
body#top main section#membertasks article.member-task-tile:nth-child(4) { --task-accent: #e84b2d; }
body#top main section#membertasks article.member-task-tile:nth-child(5) { --task-accent: #e3a312; }
body#top main section#membertasks article.member-task-tile:nth-child(6) { --task-accent: #259f62; }

body#top main section#membertasks a.member-task-tile__link,
body[data-lang] main section#membertasks a.member-task-tile__link {
    grid-template-columns: 1fr !important;
    grid-template-rows: 48px minmax(0, 1fr) 22px !important;
    grid-template-areas: "media" "copy" "action" !important;
    justify-items: center !important;
    align-items: center !important;
    width: 156px !important;
    min-height: 156px !important;
    aspect-ratio: 1;
    padding: 12px !important;
    border: 8px solid var(--task-accent) !important;
    border-radius: 50% !important;
    background: #fffdf1 !important;
    box-shadow: 0 5px 0 #a62510, inset 0 0 0 4px #ffe28a !important;
}

body#top main section#membertasks .member-task-tile__media,
body#top main section#membertasks .member-task-tile__media.offer-media {
    width: 48px !important;
    height: 48px !important;
}

body#top main section#membertasks .member-task-tile__media img,
body#top main section#membertasks .member-task-tile__media svg {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}

body#top main section#membertasks .member-task-tile__copy {
    align-content: center !important;
    justify-items: center;
    gap: 3px !important;
    width: 100% !important;
}

body#top main section#membertasks article.member-task-tile h3 {
    color: #a52210 !important;
    font-size: 0.9rem !important;
    line-height: 1.08 !important;
    text-align: center !important;
}

body#top main section#membertasks .member-task-tile__reward {
    gap: 3px !important;
    color: #a52210 !important;
    font-size: 0.56rem !important;
    line-height: 1.2 !important;
}

body#top main section#membertasks .member-task-tile__action {
    justify-self: center !important;
}

body#top main section#membertasks .member-task-tile__action i {
    width: 22px !important;
    height: 22px !important;
    border: 2px solid #bd2a11 !important;
    border-radius: 50% !important;
    background: #ffd95b !important;
    color: #8e1b0b !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

@media (max-width: 700px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding: 10px 10px 86px !important;
    }

    body#top main section#membertasks > .section-heading {
        width: 100% !important;
        margin-bottom: 8px !important;
        padding: 7px 9px 8px !important;
        border-radius: 5px !important;
        box-shadow: 0 4px 0 #84170a, inset 0 0 0 1px #ef9b21 !important;
    }

    body#top main section#membertasks > .section-heading .section-title-row {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-icon-frame,
    body#top main section#membertasks > .section-heading .section-title-icon {
        width: 33px !important;
        height: 33px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy h2 {
        font-size: 1.12rem !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy p {
        font-size: 0.62rem !important;
        line-height: 1.15 !important;
    }

    body#top main section#membertasks .member-task-board__intro {
        margin-bottom: 7px !important;
        padding: 0 1px 6px !important;
    }

    body#top main section#membertasks .member-task-board__kicker {
        font-size: 0.46rem !important;
    }

    body#top main section#membertasks .member-task-board__title {
        font-size: 0.78rem !important;
    }

    body#top main section#membertasks .member-task-board__hint {
        min-height: 19px !important;
        padding: 0 5px !important;
        font-size: 0.52rem !important;
    }

    body#top main section#membertasks .member-task-board__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        padding: 14px !important;
        border-width: 3px;
        border-radius: 10px;
        box-shadow: 0 5px 0 #a62510, inset 0 0 0 2px #ffe28a;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        grid-template-columns: 1fr !important;
        grid-template-rows: 38px minmax(0, 1fr) 18px !important;
        grid-template-areas: "media" "copy" "action" !important;
        width: 128px !important;
        min-height: 128px !important;
        padding: 9px !important;
        border: 6px solid var(--task-accent) !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 0 #a62510, inset 0 0 0 3px #ffe28a !important;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media,
    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    body#top main section#membertasks .member-task-tile__copy {
        gap: 2px !important;
        justify-items: center;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.72rem !important;
        line-height: 1.05 !important;
        text-align: center !important;
    }

    body#top main section#membertasks .member-task-tile__reward {
        gap: 3px !important;
        font-size: 0.46rem !important;
    }

    body#top main section#membertasks .member-task-tile__action i {
        width: 17px !important;
        height: 17px !important;
        border-width: 1px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 700px) and (max-height: 650px) {
    body#top:not(.inline-detail-mode) #membertasks {
        padding-top: 6px !important;
        padding-bottom: 70px !important;
    }

    body#top main section#membertasks > .section-heading {
        margin-bottom: 5px !important;
        padding: 5px 7px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy p,
    body#top main section#membertasks .member-task-board__intro,
    body#top main section#membertasks .member-task-tile__reward {
        display: none !important;
    }

    body#top main section#membertasks a.member-task-tile__link,
    body[data-lang] main section#membertasks a.member-task-tile__link {
        min-height: 86px !important;
        padding: 5px !important;
    }

    body#top main section#membertasks .member-task-tile__media,
    body#top main section#membertasks .member-task-tile__media.offer-media,
    body#top main section#membertasks .member-task-tile__media img,
    body#top main section#membertasks .member-task-tile__media svg {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    body#top main section#membertasks article.member-task-tile h3 {
        font-size: 0.68rem !important;
    }
}

/* v1.0.69: final cascade, match member-task heading to top-up heading exactly. */
body#top main section#membertasks > .section-heading {
    display: grid !important;
    width: min(1165px, calc(100% - 32px)) !important;
    margin: 0 auto 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body#top main section#membertasks > .section-heading > .section-kicker {
    display: none !important;
}

body#top main section#membertasks > .section-heading .section-title-row {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    min-height: 112px !important;
    gap: 0 !important;
}

body#top main section#membertasks > .section-heading .section-title-row::before {
    display: none !important;
    content: none !important;
}

body#top main section#membertasks > .section-heading .section-title-icon-frame,
body#top main section#membertasks > .section-heading .section-title-icon {
    display: block !important;
    width: 112px !important;
    height: 112px !important;
    margin: 0 !important;
    object-fit: contain !important;
}

body#top main section#membertasks > .section-heading .section-title-row {
    display: flex !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

body#top main section#membertasks > .section-heading .section-title-row .section-title-copy {
    display: block !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

body#top main section#membertasks > .section-heading .section-title-copy h2 {
    margin: 0 !important;
    color: #d72712 !important;
    font-size: clamp(2rem, 4.4vw, 3.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-align: left !important;
    text-shadow: 0 3px 0 #fff8cf, 2px 0 0 #fff8cf, -2px 0 0 #fff8cf, 0 -2px 0 #fff8cf, 0 5px 0 #7d150b, 0 0 16px rgba(255, 215, 46, 0.8) !important;
}

body#top main section#membertasks > .section-heading .section-title-copy p {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #6c1907 !important;
    font-size: 1.06rem !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    text-shadow: 0 1px 0 rgba(255, 248, 207, 0.72) !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 700px) {
    body#top main section#membertasks > .section-heading {
        width: calc(100% - 24px) !important;
        margin-bottom: 12px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-row {
        min-height: 56px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-icon-frame,
    body#top main section#membertasks > .section-heading .section-title-icon {
        width: 56px !important;
        height: 56px !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy h2 {
        font-size: 1.72rem !important;
    }

    body#top main section#membertasks > .section-heading .section-title-copy p {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
    }
}

/* Release: v1.2.87 | 2026-08-05 11:58:32 GMT+8 | Added append-only CSS/JS release history. */
/* Release: v1.2.88 | 2026-08-05 12:09:15 GMT+8 | Synced campaign takeover Sheet data and eight locales. */
/* Release: v1.2.89 | 2026-08-05 17:29:26 GMT+8 | Restored Android and WebView vertical touch scrolling. */
/* Release: v1.2.90 | 2026-08-05 18:08:06 GMT+8 | Enforced Android card touch scrolling above legacy selectors. */
/* Release: v1.2.91 | 2026-08-05 18:20:09 GMT+8 */
/* Release: v1.2.92 | 2026-08-05 18:37:05 GMT+8 */
/* Release: v1.2.93 | 2026-08-06 10:07:15 GMT+8 */
/* Release: v1.2.94 | 2026-08-06 10:18:54 GMT+8 */
/* Release: v1.2.95 | 2026-08-06 10:50:17 GMT+8 */
/* Release: v1.2.96 | 2026-08-06 11:20:46 GMT+8 */
/* Release: v1.2.97 | 2026-08-06 16:13:37 GMT+8 */
/* Release: v1.2.98 | 2026-08-06 18:56:37 GMT+8 */
/* Release: v1.2.99 | 2026-08-07 18:42:08 GMT+8 */
/* Release: v1.3.1 | 2026-08-08 06:32:37 GMT+8 */
/* Release: v1.3.2 | 2026-08-08 06:36:29 GMT+8 */
/* Release: v1.3.3 | 2026-08-08 06:43:27 GMT+8 */
/* Release: v1.3.4 | 2026-08-08 06:49:41 GMT+8 */
/* Release: v1.3.5 | 2026-08-09 14:23:33 GMT+8 | Synced limited-4 and quick links Sheet data across eight locales. */
/* Release: v1.3.6 | 2026-08-09 14:46:33 GMT+8 | Synced campaign takeover and member check-in Sheet data across eight locales. */
/* Release: v1.3.7 | 2026-08-09 14:51:26 GMT+8 | Aligned mobile member check-in pagination styling. */
/* Release: v1.3.8 | 2026-08-09 16:58:42 GMT+8 | Synced toast Sheet data across eight locales. */
/* Release: v1.3.9 | 2026-08-09 17:08:44 GMT+8 | Synced mycardwalletEvent Sheet data across eight locales. */
/* Release: v1.3.10 | 2026-08-09 22:27:47 GMT+8 | Synced campaign takeover and quick links Sheet data across eight locales. */
/* Release: v1.3.11 | 2026-08-09 22:49:29 GMT+8 | Synced quick links Sheet display schedule across eight locales. */
/* Release: v1.3.12 | 2026-08-09 23:07:25 GMT+8 | Synced expanded quick links Sheet data across eight locales. */
/* Release: v1.3.13 | 2026-08-09 23:11:14 GMT+8 | Refreshed static asset hashes after Cloudflare preview delivery failure. */
/* Release: v1.3.14 | 2026-08-09 23:14:05 GMT+8 | Removed quick-link pagination and stabilized red-dot placement for every item count. */
/* Release: v1.3.15 | 2026-08-09 23:37:00 GMT+8 | Restored ten-item quick-link pages with swipe-only navigation and no visible controls. */
/* Release: v1.3.16 | 2026-08-09 23:50:58 GMT+8 | Fixed every quick-link page to the same ten-slot card sizing. */
/* Release: v1.3.17 | 2026-08-09 23:59:47 GMT+8 | Synced Toast Sheet links and display schedule across eight locales. */
/* Release: v1.3.18 | 2026-08-10 10:38:16 GMT+8 | Synced quick links and more activities Sheet data across eight locales. */
/* Release: v1.3.19 | 2026-08-10 13:27:14 GMT+8 | Synced campaign takeover Sheet data across eight locales. */
/* Release: v1.3.20 | 2026-08-10 16:47:47 GMT+8 | Synced mmcoupon daily rewards and checkin-style detail flow across eight locales. */
/* Release: v1.3.21 | 2026-08-10 17:02:40 GMT+8 | Synced revised mmcoupon notices across eight locales. */
/* Release: v1.3.22 | 2026-08-10 22:48:05 GMT+8 | Synced the refreshed More Activities creator artwork. */
/* Release: v1.3.23 | 2026-08-10 22:51:22 GMT+8 | Refreshed static asset hashes after Cloudflare tab UI delivery failure. */
/* Release: v1.3.24 | 2026-08-11 09:14:18 GMT+8 | Synced mmlottery daily rewards and checkin-style detail flow across eight locales. */
/* Release: v1.3.25 | 2026-08-11 12:59:35 GMT+8 | Synced refreshed More Activities cards and eight locale titles. */
/* Release: v1.3.26 | 2026-08-11 15:45:25 GMT+8 | Added 48-hour red-dot guidance for non-default tabs. */
/* Release: v1.3.27 | 2026-08-11 17:56:01 GMT+8 | Synced iPASS MONEY top-up reward and takeover across eight locales. */

/* Release: v1.3.28 | 2026-08-12 09:28:45 GMT+8 | Synced mmcoupon and mmlottery Sheet periods across eight locales. */

/* Release: v1.3.29 | 2026-08-12 09:36:26 GMT+8 | Synced goTikTok takeover keyword across eight locales. */

/* Release: v1.3.30 | 2026-08-12 09:40:26 GMT+8 | Synced shortcut red-dot settings and goTikTok title across eight locales. */

/* Release: v1.3.31 | 2026-08-12 10:17:24 GMT+8 | Synced shortcut and goInstagram takeover updates across eight locales. */

/* Release: v1.3.32 | 2026-08-12 15:44:34 GMT+8 | Applied the requested Thai and Indonesian copy fixes and updated the Thai hero banner. */

/* Release: v1.3.33 | 2026-08-12 18:12:09 GMT+8 | Restored the original Thai hero CDN path and refreshed only its version query. */

/* Release: v1.3.34 | 2026-08-13 09:22:21 GMT+8 | Fixed quick-link taps by capturing pointers only after a confirmed horizontal drag. */
/* Release: v1.3.35 | 2026-08-13 09:31:57 GMT+8 | Synced the latest 17 shortcut entries and eight-locale ordering from Google Sheets. */
/* Release: v1.3.36 | 2026-08-13 11:03:34 GMT+8 | Synced the social-tiktok reward-two display schedule across eight locales. */
/* Release: v1.3.37 | 2026-08-13 11:06:22 GMT+8 | Synced the revised social-tiktok reward-two display date across eight locales. */
/* Release: v1.3.38 | 2026-08-14 14:02:41 GMT+8 | Replaced the fifth shortcut with the AirPods Instagram entry across eight locales. */

/* Release: v1.3.39 | 2026-08-14 15:16:44 GMT+8 | Synced LINE friend and redemption-code campaign takeovers across eight locales. */

/* Release: v1.3.40 | 2026-08-14 15:56:08 GMT+8 | Synced the AirPods shortcut destination across all eight locales. */

/* Release: v1.3.41 | 2026-08-15 08:15:06 GMT+8 | Disabled the fully claimed limited-4 points reward across eight locales. */

/* Release: v1.3.42 | 2026-08-15 08:25:59 GMT+8 | Rendered fully claimed limited-4 rewards as non-interactive gray buttons across eight locales. */

/* Release: v1.3.43 | 2026-08-16 00:37:10 GMT+8 | Synced the limited-3 claim period and claim action across eight locales. */

/* Release: v1.3.44 | 2026-08-16 10:43:32 GMT+8 | Synced the limited-3 TWD threshold and discounted-payment eligibility note across eight locales. */

/* Release: v1.3.45 | 2026-08-16 12:46:10 GMT+8 | Synced the goInstagram takeover claim link across eight locales. */
/* Release: v1.3.46 | 2026-08-17 09:28:15 GMT+8 | Synced shortcut and limited-3 Sheet updates across eight locales. */
/* Release: v1.3.47 | 2026-08-17 09:35:06 GMT+8 | Synced limited-time points schedule across eight locales. */
/* Release: v1.3.48 | 2026-08-17 09:41:51 GMT+8 | Rebuilt the limited points drop as a responsive standalone section. */

/* Release: v1.3.49 | 2026-08-17 09:44:21 GMT+8 | Updated the limited points section title icon. */

/* Release: v1.3.50 | 2026-08-17 09:51:20 GMT+8 | Made the limited points section white and paged mobile cards in groups of three. */

/* Release: v1.3.51 | 2026-08-17 10:05:30 GMT+8 | Removed the legacy divider between shortcuts and the limited points section. */

/* Release: v1.3.52 | 2026-08-17 10:13:48 GMT+8 | Changed the limited points mobile carousel to two cards per page. */

/* Release: v1.3.53 | 2026-08-17 10:49:46 GMT+8 | Synced the shortcut sheet update across eight locales. */

/* Release: v1.3.54 | 2026-08-17 10:55:29 GMT+8 | Synced the refreshed shortcut destination across eight locales. */


/* Release: v1.3.55 | 2026-08-17 14:07:50 GMT+8 | Unified payment, preregistration, and more-activity autoplay with the popular-activity carousel. */


/* Release: v1.3.56 | 2026-08-18 08:08:38 GMT+8 | Synced refreshed shortcut items and eight-locale titles. */


/* Release: v1.3.57 | 2026-08-19 12:44:30 GMT+8 | Synced AirPods schedule and limited treasure-box shortcut across eight locales. */


/* Release: v1.3.58 | 2026-08-19 13:11:04 GMT+8 | Synced limited treasure-box shortcut icon across eight locales. */


/* Release: v1.3.59 | 2026-08-19 13:22:35 GMT+8 | Unified source and medium tracking across outbound actions. */


/* Release: v1.3.60 | 2026-08-19 16:51:06 GMT+8 | Added cached five-second secondary-action unlock for gated takeovers. */


/* Release: v1.3.61 | 2026-08-19 17:00:57 GMT+8 | Synced gated Instagram takeover action order across eight locales. */


/* Release: v1.3.62 | 2026-08-19 17:45:52 GMT+8 | Synced Instagram takeover reward link across eight locales. */
/* Release: v1.3.63 | 2026-08-20 07:07:38 GMT+8 | Synced points-task shortcut across eight locales. */
/* Release: v1.3.64 | 2026-08-20 07:37:23 GMT+8 | Synced Instagram takeover reward eligibility across eight locales. */
