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

@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/202605evt/img/bg_pc.webp");
    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/202605evt/img/bg_mb.webp");
        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 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))); }
}

@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/202605evt/img/bg_pc.webp") 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/202605evt/img/bg_mb.webp") 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: 214px !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 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;
}

/* 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: 214px !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;
}
