* {
    box-sizing: border-box;
}

:root {
    --red: #e93445;
    --red-dark: #bb1f31;
    --cream: #fff8e8;
    --navy: #121a31;
    --navy-soft: #202b49;
    --white: #ffffff;
    --muted: #65708a;
    --border: rgba(18, 26, 49, 0.12);
    --shadow: 0 24px 60px rgba(36, 44, 72, 0.18);
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--navy);
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.8), transparent 22%),
        linear-gradient(180deg, #dff5ff 0%, #f8fdff 52%, #f9efd1 100%);
}

button,
input {
    font: inherit;
}

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

.player-header,
.game-topbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.player-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.player-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.player-brand strong {
    font-size: 17px;
}

.player-brand small {
    color: var(--muted);
    font-size: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--red), #ff6c76);
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(233, 52, 69, 0.3);
}

.landing-layout {
    width: min(1120px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 70px;
    margin: 54px auto 30px;
    position: relative;
    z-index: 4;
}

.hero-kicker,
.lobby-label {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(233, 52, 69, 0.11);
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 650px;
    margin: 18px 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 610px;
    margin-top: 32px;
}

.feature-row article {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(12px);
}

.feature-row strong {
    color: var(--red);
    font-size: 13px;
}

.feature-row span {
    font-weight: 750;
}

.player-card,
.lobby-panel {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.card-heading h2 {
    margin: 0 0 5px;
    font-size: 27px;
}

.card-heading p {
    margin: 0;
    color: var(--muted);
}

.mini-flag {
    width: 48px;
    height: 38px;
    overflow: hidden;
    display: grid;
    border: 1px solid rgba(18, 26, 49, 0.1);
    border-radius: 9px;
    box-shadow: 0 8px 22px rgba(18, 26, 49, 0.12);
}

.mini-flag span:first-child {
    background: var(--red);
}

.mini-flag span:last-child {
    background: var(--white);
}

.player-card form {
    display: grid;
    gap: 17px;
}

.player-card label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 750;
}

.player-card input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.84);
    color: var(--navy);
}

.player-card input:focus {
    border-color: rgba(233, 52, 69, 0.7);
    box-shadow: 0 0 0 4px rgba(233, 52, 69, 0.1);
}

.player-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 850;
    cursor: pointer;
}

.player-button.primary {
    background: linear-gradient(135deg, var(--red), #ff6671);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(233, 52, 69, 0.24);
}

.player-button.primary:hover:not(:disabled) {
    transform: translateY(-1px);
}

.player-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.security-note,
.lobby-help {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.player-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.5;
}

.player-alert.danger {
    border: 1px solid rgba(233, 52, 69, 0.25);
    background: rgba(233, 52, 69, 0.09);
    color: #ffffff;
}

.player-alert.success {
    border: 1px solid rgba(26, 151, 104, 0.24);
    background: rgba(26, 151, 104, 0.09);
    color: #ffffff;
}

.active-game-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(233, 52, 69, 0.16);
    border-radius: 16px;
    background: rgba(233, 52, 69, 0.055);
}

.active-game-box span {
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.active-game-box strong {
    font-size: 22px;
}

.active-game-box code {
    width: max-content;
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--navy);
    color: var(--white);
}

.pinang-scene {
    width: 360px;
    height: 430px;
    position: fixed;
    right: 2vw;
    bottom: -36px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.88;
}

.pinang-pole {
    width: 30px;
    height: 335px;
    position: absolute;
    left: 50%;
    bottom: 44px;
    transform: translateX(-50%);
    border-radius: 50% 50% 12px 12px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.18), transparent 22%, transparent 75%, rgba(0,0,0,0.15)),
        linear-gradient(180deg, #a67b46, #654327);
    box-shadow: inset 0 0 0 1px rgba(56, 37, 22, 0.22);
}

.pinang-top {
    width: 190px;
    height: 50px;
    position: absolute;
    left: 50%;
    bottom: 366px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #7a5532;
    box-shadow: 0 8px 16px rgba(40, 27, 17, 0.22);
}

.prize-bag {
    position: absolute;
    top: -20px;
    font-size: 32px;
}

.bag-one { left: 22px; }
.bag-two { left: 78px; }
.bag-three { right: 22px; }

.climber {
    position: absolute;
    left: 50%;
    bottom: 130px;
    transform: translateX(-54%);
    font-size: 45px;
    filter: drop-shadow(0 8px 8px rgba(0,0,0,0.12));
}

.grass,
.stage-ground {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 420px;
    height: 90px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(180deg, #7fc76a, #458a45);
}

.cloud,
.stage-cloud {
    width: 95px;
    height: 30px;
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.cloud::before,
.cloud::after,
.stage-cloud::before,
.stage-cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.cloud::before,
.stage-cloud::before {
    width: 42px;
    height: 42px;
    left: 16px;
    bottom: 4px;
}

.cloud::after,
.stage-cloud::after {
    width: 53px;
    height: 53px;
    right: 13px;
    bottom: 1px;
}

.cloud-one {
    left: 0;
    top: 90px;
}

.cloud-two {
    right: -30px;
    top: 38px;
    transform: scale(0.75);
}

.sky-decoration {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}

.sky-decoration-one {
    width: 380px;
    height: 380px;
    left: -190px;
    top: 110px;
    background: rgba(233, 52, 69, 0.06);
}

.sky-decoration-two {
    width: 280px;
    height: 280px;
    right: 8%;
    top: -170px;
    background: rgba(255, 203, 74, 0.12);
}

/* Ruang permainan */

.game-room-body {
    background:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.72), transparent 22%),
        linear-gradient(180deg, #dff4ff, #fff8e7);
}

.game-code-chip {
    padding: 9px 13px;
    border: 1px solid rgba(18, 26, 49, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 13px;
}

.game-code-chip strong {
    color: var(--navy);
}

.game-lobby {
    width: min(1120px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: 50px;
    margin: 30px auto 60px;
}

.game-stage-preview {
    height: 610px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 30px;
    background: linear-gradient(180deg, #a9e3ff 0%, #e8f8ff 65%, #f8e9bb 100%);
    box-shadow: var(--shadow);
}

.stage-sun {
    width: 92px;
    height: 92px;
    position: absolute;
    right: 48px;
    top: 45px;
    border-radius: 50%;
    background: #ffd85c;
    box-shadow: 0 0 0 18px rgba(255, 216, 92, 0.16);
}

.stage-cloud-one {
    left: 50px;
    top: 120px;
}

.stage-cloud-two {
    right: 150px;
    top: 205px;
    transform: scale(0.72);
}

.preview-pole {
    position: absolute;
    inset: 0;
}

.preview-trunk {
    width: 35px;
    height: 430px;
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    border-radius: 50% 50% 12px 12px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.18), transparent 24%, transparent 74%, rgba(0,0,0,0.16)),
        linear-gradient(180deg, #aa7d46, #664225);
}

.preview-prizes {
    width: 235px;
    height: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    position: absolute;
    left: 50%;
    bottom: 482px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #785333;
    font-size: 36px;
    box-shadow: 0 10px 22px rgba(58, 37, 21, 0.2);
}

.preview-prizes span {
    transform: translateY(-15px);
}

.preview-climber {
    position: absolute;
    left: 50%;
    bottom: 160px;
    transform: translateX(-54%);
    font-size: 56px;
}

.stage-ground {
    width: 760px;
    height: 150px;
    bottom: -56px;
}

.lobby-panel h1 {
    margin: 17px 0 12px;
    font-size: clamp(34px, 4vw, 53px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.lobby-panel > p {
    color: var(--muted);
    line-height: 1.65;
}

.game-info {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.game-info > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.game-info dt {
    color: var(--muted);
    font-size: 13px;
}

.game-info dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.status-playing-chip {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(26, 151, 104, 0.1);
    color: #11704e;
    font-size: 12px;
}

.next-stage-note {
    margin: 20px 0;
    padding: 14px;
    border: 1px dashed rgba(233, 52, 69, 0.24);
    border-radius: 14px;
    background: rgba(233, 52, 69, 0.055);
    color: var(--muted);
    line-height: 1.55;
}

.next-stage-note strong {
    color: var(--red-dark);
}

@media (max-width: 1050px) {
    .pinang-scene {
        opacity: 0.25;
    }
}

@media (max-width: 860px) {
    .landing-layout,
    .game-lobby {
        grid-template-columns: 1fr;
    }

    .landing-layout {
        gap: 34px;
        margin-top: 25px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy > p,
    .feature-row {
        margin-left: auto;
        margin-right: auto;
    }

    .pinang-scene {
        display: none;
    }

    .game-stage-preview {
        height: 500px;
    }
}

@media (max-width: 600px) {
    .player-header,
    .game-topbar {
        width: min(100% - 22px, 1180px);
    }

    .landing-layout,
    .game-lobby {
        width: min(100% - 22px, 1120px);
    }

    .hero-copy h1 {
        font-size: 43px;
    }

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

    .feature-row {
        grid-template-columns: 1fr;
    }

    .player-card,
    .lobby-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .game-code-chip {
        display: none;
    }

    .game-stage-preview {
        height: 440px;
    }

    .preview-trunk {
        height: 330px;
    }

    .preview-prizes {
        bottom: 380px;
    }
}

/* ===== Tahap 6: Animasi Panjat Pinang ===== */

.climb-game-layout,
.reward-ready-layout {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 46px;
    margin: 22px auto 60px;
}

.climb-stage {
    height: 650px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    background:
        linear-gradient(180deg, #94dcff 0%, #dcf5ff 65%, #f7e8b9 100%);
    box-shadow: var(--shadow);
}

.game-sun {
    width: 94px;
    height: 94px;
    position: absolute;
    right: 55px;
    top: 48px;
    border-radius: 50%;
    background: #ffd85a;
    box-shadow:
        0 0 0 18px rgba(255, 216, 90, 0.16),
        0 0 70px rgba(255, 216, 90, 0.35);
}

.game-cloud {
    width: 110px;
    height: 34px;
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.game-cloud::before,
.game-cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.game-cloud::before {
    width: 48px;
    height: 48px;
    left: 17px;
    bottom: 5px;
}

.game-cloud::after {
    width: 60px;
    height: 60px;
    right: 13px;
    bottom: 1px;
}

.game-cloud-one {
    left: 56px;
    top: 110px;
}

.game-cloud-two {
    right: 150px;
    top: 205px;
    transform: scale(0.7);
}

.mountain {
    position: absolute;
    bottom: 88px;
    width: 0;
    height: 0;
    border-left: 180px solid transparent;
    border-right: 180px solid transparent;
    border-bottom: 190px solid rgba(68, 127, 116, 0.22);
}

.mountain-one {
    left: -90px;
}

.mountain-two {
    right: -120px;
    transform: scale(0.78);
}

.climb-platform {
    width: 250px;
    height: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    position: absolute;
    left: 50%;
    bottom: 525px;
    z-index: 5;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, #8c623a, #694326);
    box-shadow: 0 12px 24px rgba(65, 39, 22, 0.25);
    font-size: 39px;
}

.climb-platform span {
    transform: translateY(-18px);
    filter: drop-shadow(0 8px 7px rgba(0, 0, 0, 0.15));
}

.climb-pole {
    width: 38px;
    height: 470px;
    position: absolute;
    left: 50%;
    bottom: 70px;
    z-index: 3;
    transform: translateX(-50%);
    transform-origin: bottom center;
    border-radius: 50% 50% 14px 14px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.21), transparent 25%, transparent 72%, rgba(0,0,0,0.16)),
        linear-gradient(180deg, #bd8c50, #684226);
    box-shadow:
        inset 0 0 0 1px rgba(53, 31, 19, 0.22),
        8px 10px 20px rgba(53, 31, 19, 0.12);
}

.pole-shine {
    width: 4px;
    height: 88%;
    position: absolute;
    left: 8px;
    top: 5%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.23);
}

.pole-shake {
    animation: poleShake 0.22s ease;
}

.climb-character {
    width: 82px;
    height: 92px;
    position: absolute;
    left: 50%;
    bottom: 56px;
    z-index: 7;
    transform: translateX(-53%);
    transition: bottom 0.24s cubic-bezier(.2,.75,.25,1);
}

.character-emoji {
    position: relative;
    z-index: 2;
    font-size: 66px;
    line-height: 1;
    filter: drop-shadow(0 9px 8px rgba(0,0,0,0.18));
}

.character-shadow {
    width: 48px;
    height: 13px;
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.16);
    filter: blur(3px);
}

.climb-pulse {
    animation: climbPulse 0.28s ease;
}

.climb-character.at-top {
    animation: winnerBounce 0.75s ease-in-out infinite alternate;
}

.climb-ground {
    width: 820px;
    height: 155px;
    position: absolute;
    left: 50%;
    bottom: -62px;
    z-index: 2;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0;
    background:
        radial-gradient(circle at 30% 0%, rgba(255,255,255,0.2), transparent 16%),
        linear-gradient(180deg, #79c969, #438b45);
}

.climb-confetti span {
    position: absolute;
    z-index: 9;
    pointer-events: none;
    animation: tapParticle 0.85s ease-out forwards;
}

.climb-control-panel,
.reward-ready-panel {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.climb-control-panel h1,
.reward-ready-panel h1 {
    margin: 17px 0 12px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.climb-control-panel > p,
.reward-ready-panel > p {
    color: var(--muted);
    line-height: 1.65;
}

.progress-card {
    margin: 24px 0 15px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(246, 249, 255, 0.9);
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
    font-size: 13px;
}

.progress-meta span {
    color: var(--muted);
}

.progress-meta strong {
    color: var(--red);
    font-size: 20px;
}

.climb-progress {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eaf4;
}

.climb-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, var(--red), #ff7a66, #ffc04b);
    box-shadow: 0 0 18px rgba(233, 52, 69, 0.25);
    transition: width 0.22s ease;
}

.climb-status {
    min-height: 20px;
    margin-top: 11px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.tap-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 13px 0 18px;
    padding: 11px 14px;
    border-radius: 13px;
    background: rgba(18, 26, 49, 0.055);
}

.tap-counter span {
    color: var(--muted);
    font-size: 13px;
}

.tap-counter strong {
    font-size: 23px;
}

.climb-start-button {
    margin-bottom: 12px;
}

.climb-tap-button {
    width: 100%;
    min-height: 116px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 23px;
    background:
        radial-gradient(circle at 50% 28%, rgba(255,255,255,0.26), transparent 32%),
        linear-gradient(145deg, #ff4f5e, #ca1f35);
    color: white;
    box-shadow:
        0 18px 32px rgba(201, 31, 53, 0.26),
        inset 0 -8px 0 rgba(115, 12, 30, 0.19);
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: transform 0.08s ease, opacity 0.2s ease;
}

.climb-tap-button span {
    font-size: 29px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.climb-tap-button small {
    opacity: 0.86;
}

.climb-tap-button.active:active {
    transform: translateY(5px) scale(0.985);
    box-shadow:
        0 8px 18px rgba(201, 31, 53, 0.22),
        inset 0 -3px 0 rgba(115, 12, 30, 0.15);
}

.climb-tap-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.climb-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    background: rgba(14, 20, 39, 0.86);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.climb-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.climb-success-overlay .success-burst {
    font-size: 86px;
    animation: successBurst 0.75s ease infinite alternate;
}

.climb-success-overlay strong {
    font-size: clamp(34px, 6vw, 66px);
}

.climb-success-overlay span {
    color: rgba(255, 255, 255, 0.78);
}

/* Layar persiapan roda hadiah */

.reward-ready-layout {
    min-height: calc(100vh - 125px);
}

.reward-celebration {
    height: 560px;
    overflow: hidden;
    display: grid;
    place-items: center;
    align-content: center;
    position: relative;
    border-radius: 30px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.95), transparent 28%),
        linear-gradient(145deg, #ffe88c, #ff9079 52%, #d93b58);
    box-shadow: var(--shadow);
}

.celebration-rays {
    width: 640px;
    height: 640px;
    position: absolute;
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255,255,255,0.24) 0deg 10deg,
            transparent 10deg 22deg
        );
    animation: rotateRays 16s linear infinite;
}

.top-platform {
    width: 280px;
    height: 72px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    background: #75472b;
    font-size: 46px;
}

.top-platform span {
    transform: translateY(-22px);
}

.winner-character {
    position: relative;
    z-index: 3;
    margin-top: -8px;
    font-size: 108px;
    animation: winnerBounce 0.8s ease-in-out infinite alternate;
}

.winner-title {
    position: relative;
    z-index: 3;
    margin-top: 12px;
    padding: 10px 17px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: var(--red-dark);
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(77, 25, 31, 0.16);
}

.reward-reel-preview {
    height: 145px;
    overflow: hidden;
    position: relative;
    margin: 25px 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f1f4fa;
}

.reward-reel-track {
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    animation: rewardPreviewMove 8s linear infinite;
}

.reward-reel-track article {
    width: 150px;
    height: 116px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 1px solid rgba(18,26,49,0.09);
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 24px rgba(18,26,49,0.08);
}

.reward-reel-track article span {
    font-size: 37px;
}

.reward-reel-track article strong {
    font-size: 12px;
}

.reward-pointer {
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 3;
    transform: translateX(-50%);
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 24px solid var(--red);
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.14));
}

@keyframes poleShake {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    35% { transform: translateX(-50%) rotate(-1.1deg); }
    70% { transform: translateX(-50%) rotate(1.1deg); }
}

@keyframes climbPulse {
    0% { transform: translateX(-53%) scale(1); }
    45% { transform: translateX(-53%) scale(1.12) rotate(-3deg); }
    100% { transform: translateX(-53%) scale(1); }
}

@keyframes winnerBounce {
    from { transform: translateY(0) rotate(-2deg); }
    to { transform: translateY(-11px) rotate(2deg); }
}

@keyframes tapParticle {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(0.65);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -70px) scale(1.15) rotate(18deg);
    }
}

@keyframes successBurst {
    from { transform: scale(0.9) rotate(-5deg); }
    to { transform: scale(1.12) rotate(5deg); }
}

@keyframes rotateRays {
    to { transform: rotate(360deg); }
}

@keyframes rewardPreviewMove {
    from { transform: translateX(0); }
    to { transform: translateX(-648px); }
}

@media (max-width: 900px) {
    .climb-game-layout,
    .reward-ready-layout {
        grid-template-columns: 1fr;
    }

    .climb-stage {
        height: 570px;
    }

    .reward-ready-layout {
        padding-top: 12px;
    }
}

@media (max-width: 600px) {
    .climb-game-layout,
    .reward-ready-layout {
        width: min(100% - 22px, 1180px);
        gap: 24px;
    }

    .climb-stage {
        height: 510px;
        border-radius: 22px;
    }

    .climb-platform {
        bottom: 415px;
        transform: translateX(-50%) scale(0.84);
    }

    .climb-pole {
        height: 365px;
        bottom: 60px;
    }

    .climb-character {
        bottom: 50px;
    }

    .climb-control-panel,
    .reward-ready-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .reward-celebration {
        height: 430px;
    }

    .reward-reel-track article {
        width: 135px;
    }
}

/* ===== Tahap 7: Roda Hadiah dan Hasil ===== */

.reward-game-layout,
.final-result-layout {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 125px);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 46px;
    margin: 22px auto 60px;
}

.reward-machine {
    overflow: hidden;
    position: relative;
    padding: 34px 24px 44px;
    border: 8px solid #9e2435;
    border-radius: 34px;
    background:
        linear-gradient(180deg, #ef4055, #b91f36);
    box-shadow:
        0 28px 60px rgba(117, 24, 42, 0.28),
        inset 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.reward-machine::before,
.reward-machine::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    pointer-events: none;
}

.reward-machine-title {
    display: grid;
    place-items: center;
    gap: 7px;
    margin-bottom: 26px;
    color: white;
    text-align: center;
}

.reward-machine-title span {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.reward-machine-title strong {
    font-size: clamp(25px, 4vw, 42px);
}

.reward-reel-window {
    height: 245px;
    overflow: hidden;
    position: relative;
    z-index: 3;
    border: 8px solid #fff1c9;
    border-radius: 23px;
    background:
        linear-gradient(180deg, #f4f6fb, #ffffff);
    box-shadow:
        inset 0 8px 18px rgba(18, 26, 49, 0.12),
        0 15px 32px rgba(75, 15, 31, 0.24);
}

.reward-track {
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    will-change: transform;
}

.reward-track.idle-moving {
    animation: rewardIdleMove 14s linear infinite;
}

.reward-reel-card {
    width: 170px;
    height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px;
    border: 2px solid rgba(18, 26, 49, 0.08);
    border-radius: 17px;
    background: white;
    text-align: center;
    box-shadow: 0 10px 22px rgba(18, 26, 49, 0.1);
}

.reward-card-image {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #f1f4fa;
    font-size: 49px;
}

.reward-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward-reel-card strong {
    max-width: 145px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reward-reel-card > span {
    color: var(--muted);
    font-size: 12px;
}

.reward-reel-card.winner-card {
    border-color: #ffc747;
    box-shadow:
        0 0 0 5px rgba(255, 199, 71, 0.2),
        0 15px 30px rgba(134, 80, 8, 0.2);
    animation: winnerCardPulse 0.55s ease infinite alternate;
}

.reward-selector {
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 8;
    transform: translateX(-50%);
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 34px solid #ffbf2f;
    filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.18));
}

.reward-selector::after {
    content: "";
    width: 4px;
    height: 195px;
    position: absolute;
    left: -2px;
    top: -2px;
    background: linear-gradient(180deg, rgba(255, 191, 47, 0.9), rgba(255, 191, 47, 0));
    opacity: 0.28;
}

.reward-machine-lights {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 14px;
    margin-top: 24px;
    padding: 0 18px;
}

.reward-machine-lights span {
    width: 13px;
    height: 13px;
    justify-self: center;
    border-radius: 50%;
    background: #ffe378;
    box-shadow: 0 0 16px rgba(255, 227, 120, 0.9);
    animation: machineLight 0.8s ease-in-out infinite alternate;
}

.reward-machine-lights span:nth-child(even) {
    animation-delay: 0.4s;
}

.reward-control-panel,
.final-result-panel {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.reward-control-panel h1,
.final-result-panel h1 {
    margin: 17px 0 12px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.reward-control-panel > p,
.final-result-panel > p {
    color: var(--muted);
    line-height: 1.65;
}

.reward-code-summary {
    display: grid;
    gap: 6px;
    margin: 22px 0;
    padding: 14px;
    border-radius: 15px;
    background: rgba(18, 26, 49, 0.055);
}

.reward-code-summary span {
    color: var(--muted);
    font-size: 12px;
}

.reward-code-summary strong {
    font-size: 19px;
}

.reward-open-button {
    width: 100%;
    min-height: 112px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255,255,255,0.28), transparent 32%),
        linear-gradient(145deg, #ffbf2f, #ef6d32);
    color: white;
    box-shadow:
        0 18px 34px rgba(213, 83, 34, 0.26),
        inset 0 -8px 0 rgba(143, 53, 22, 0.18);
    cursor: pointer;
}

.reward-open-button span {
    font-size: 22px;
    font-weight: 950;
}

.reward-open-button small {
    opacity: 0.86;
}

.reward-open-button:active:not(:disabled) {
    transform: translateY(5px);
}

.reward-open-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.reward-open-button.processing {
    animation: rewardButtonPulse 0.7s ease infinite alternate;
}

.reward-status-text {
    min-height: 22px;
    margin-top: 16px;
    color: var(--red-dark);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

.reward-disclosure {
    margin-top: 13px !important;
    font-size: 12px;
    text-align: center;
}

.reward-result-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 18, 35, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reward-result-overlay.show {
    opacity: 1;
    visibility: visible;
}

.reward-overlay-confetti {
    position: absolute;
    top: 8%;
    font-size: 76px;
    animation: overlayConfetti 0.8s ease infinite alternate;
}

.reward-overlay-card {
    width: min(100%, 430px);
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 30px;
    border-radius: 27px;
    background: white;
    color: var(--navy);
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.reward-overlay-image {
    width: 145px;
    height: 145px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: #f1f4fa;
    font-size: 74px;
}

.reward-overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward-overlay-card > span {
    color: var(--muted);
    font-size: 13px;
}

.reward-overlay-card > strong {
    font-size: 29px;
}

.reward-overlay-card > b {
    color: var(--red);
    font-size: 22px;
}

.reward-overlay-card > p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.55;
}

/* Final result */

.final-result-visual {
    min-height: 560px;
    overflow: hidden;
    display: grid;
    place-items: center;
    align-content: center;
    position: relative;
    border-radius: 30px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.92), transparent 30%),
        linear-gradient(145deg, #ffe27d, #ff8c77 52%, #cf3651);
    box-shadow: var(--shadow);
}

.final-rays {
    width: 680px;
    height: 680px;
    position: absolute;
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            rgba(255,255,255,0.23) 0deg 11deg,
            transparent 11deg 23deg
        );
    animation: rotateRays 18s linear infinite;
}

.final-prize-card {
    width: 245px;
    height: 245px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 16px;
    border: 10px solid rgba(255,255,255,0.82);
    border-radius: 36px;
    background: white;
    box-shadow: 0 22px 45px rgba(85, 27, 34, 0.24);
    animation: finalPrizeFloat 1.1s ease-in-out infinite alternate;
}

.final-prize-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.final-prize-placeholder {
    font-size: 110px;
}

.final-confetti {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    font-size: 49px;
}

.final-prize-info {
    display: grid;
    gap: 8px;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid rgba(233, 52, 69, 0.16);
    border-radius: 17px;
    background: rgba(233, 52, 69, 0.055);
}

.final-prize-info > span {
    color: var(--muted);
    font-size: 12px;
}

.final-prize-info > strong {
    font-size: 25px;
}

.final-prize-info > b {
    color: var(--red);
    font-size: 21px;
}

.final-prize-info > p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.status-used-chip {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(26, 151, 104, 0.1);
    color: #11704e;
    font-size: 12px;
}

.final-game-info {
    margin-bottom: 24px;
}

@keyframes rewardIdleMove {
    from { transform: translateX(0); }
    to { transform: translateX(-736px); }
}

@keyframes winnerCardPulse {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
}

@keyframes machineLight {
    from { opacity: 0.4; transform: scale(0.78); }
    to { opacity: 1; transform: scale(1.16); }
}

@keyframes rewardButtonPulse {
    from { transform: scale(0.99); }
    to { transform: scale(1.015); }
}

@keyframes overlayConfetti {
    from { transform: translateY(0) rotate(-3deg); }
    to { transform: translateY(-13px) rotate(3deg); }
}

@keyframes finalPrizeFloat {
    from { transform: translateY(0) rotate(-1deg); }
    to { transform: translateY(-13px) rotate(1deg); }
}

@media (max-width: 900px) {
    .reward-game-layout,
    .final-result-layout {
        grid-template-columns: 1fr;
    }

    .reward-machine {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .reward-game-layout,
    .final-result-layout {
        width: min(100% - 22px, 1180px);
        gap: 24px;
    }

    .reward-machine {
        padding: 26px 12px 34px;
        border-width: 6px;
        border-radius: 24px;
    }

    .reward-reel-window {
        height: 210px;
        border-width: 6px;
    }

    .reward-reel-card {
        width: 145px;
        height: 165px;
    }

    .reward-card-image {
        width: 78px;
        height: 78px;
    }

    .reward-control-panel,
    .final-result-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .final-result-visual {
        min-height: 430px;
    }

    .final-prize-card {
        width: 205px;
        height: 205px;
    }
}

/* ===== Tahap 8: Pengaturan aset dan audio ===== */

body.custom-player-background {
    background-image:
        linear-gradient(rgba(226, 245, 255, 0.78), rgba(255, 247, 226, 0.82)),
        var(--custom-player-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.brand-icon.has-logo-image {
    overflow: hidden;
    padding: 0;
    background: rgba(255, 255, 255, 0.92);
}

.brand-icon.has-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character-emoji.has-custom-climber {
    width: 76px;
    height: 86px;
    display: grid;
    place-items: center;
}

.character-emoji.has-custom-climber img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 9px 8px rgba(0,0,0,0.18));
}

.player-alert.maintenance {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(232, 152, 34, 0.3);
    background: rgba(255, 191, 47, 0.12);
    color: #ffffff;
}

.player-alert.maintenance span {
    color: rgba(255, 255, 255, 0.88);
}

.game-audio-toggle {
    position: fixed;
    right: 17px;
    bottom: 17px;
    z-index: 90;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(18, 26, 49, 0.82);
    color: white;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 12px 28px rgba(18, 26, 49, 0.2);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

/* =========================================================
   TAHAP 9 — VISUAL, LOADER, AUDIO, MOBILE, RESULT PROOF
   ========================================================= */

:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

body {
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

body.is-loading {
    overflow: hidden;
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95), transparent 28%),
        linear-gradient(145deg, #dff5ff, #fff4dc);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    animation: loaderFailsafe 0s 8s forwards;
}

.app-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-loader-card {
    width: min(100%, 350px);
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 70px rgba(28, 45, 81, 0.2);
    backdrop-filter: blur(18px);
    text-align: center;
}

.app-loader-card > strong {
    font-size: 23px;
}

.app-loader-card > p,
.app-loader-card > small {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.loader-emblem {
    width: 72px;
    height: 56px;
    overflow: hidden;
    display: grid;
    border: 4px solid white;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(18, 26, 49, 0.16);
    animation: loaderFloat 0.85s ease-in-out infinite alternate;
}

.loader-emblem span:first-child {
    background: var(--red);
}

.loader-emblem span:last-child {
    background: white;
}

.loader-progress {
    width: 100%;
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4e9f2;
}

.loader-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), #ff8b62, #ffc64e);
    transition: width 0.25s ease;
}

.player-header,
.game-topbar {
    padding-top: var(--safe-top);
}

.player-card,
.climb-control-panel,
.reward-control-panel,
.final-result-panel {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover,
.climb-control-panel:hover,
.reward-control-panel:hover,
.final-result-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 72px rgba(36, 44, 72, 0.22);
}

.player-button,
.reward-open-button,
.climb-tap-button,
.result-action-button {
    -webkit-tap-highlight-color: transparent;
}

.player-button.is-processing::before,
.reward-open-button.processing::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 9px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonSpinner 0.65s linear infinite;
}

.player-footer {
    width: min(1120px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 30px;
    color: rgba(18, 26, 49, 0.6);
    font-size: 12px;
}

.player-footer i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(233, 52, 69, 0.55);
}

.climb-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 13px 0 18px;
}

.climb-metrics > div {
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 12px 8px;
    border: 1px solid rgba(18, 26, 49, 0.06);
    border-radius: 13px;
    background: rgba(18, 26, 49, 0.055);
}

.climb-metrics span {
    color: var(--muted);
    font-size: 11px;
}

.climb-metrics strong {
    font-size: 20px;
}

.climb-confetti span {
    --particle-x: 0px;
}

@keyframes tapParticle {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(0.65);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--particle-x)), -78px) scale(1.18) rotate(22deg);
    }
}

.reward-track {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.reward-track.has-winner .reward-reel-card:not(.winner-card) {
    opacity: 0.62;
    filter: saturate(0.75);
}

.reward-reel-card {
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.reward-machine::after {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.1), transparent 20%, transparent 80%, rgba(255,255,255,0.1));
}

.result-actions {
    display: grid;
    gap: 11px;
}

.result-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.result-action-button {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--navy);
    font-weight: 750;
    cursor: pointer;
}

.result-action-button:hover {
    border-color: rgba(233, 52, 69, 0.4);
    background: rgba(233, 52, 69, 0.045);
}

.result-proof-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.game-audio-panel {
    position: fixed;
    right: calc(16px + var(--safe-right));
    bottom: calc(16px + var(--safe-bottom));
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(18, 26, 49, 0.88);
    color: white;
    box-shadow: 0 15px 34px rgba(18, 26, 49, 0.25);
    backdrop-filter: blur(14px);
}

.audio-mute-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.audio-volume-wrap {
    display: grid;
    grid-template-columns: auto 82px;
    align-items: center;
    gap: 7px;
    font-size: 10px;
}

.audio-volume-slider {
    width: 82px;
    accent-color: #ff6a72;
}

.game-audio-panel.is-muted .audio-volume-wrap {
    opacity: 0.52;
}

.player-toast {
    position: fixed;
    left: 50%;
    bottom: calc(22px + var(--safe-bottom));
    z-index: 1000;
    max-width: calc(100% - 28px);
    padding: 11px 16px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(18, 26, 49, 0.92);
    color: white;
    box-shadow: 0 14px 34px rgba(18,26,49,0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-align: center;
    font-size: 13px;
}

.player-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.player-toast.success {
    background: rgba(17, 112, 78, 0.95);
}

.player-toast.danger {
    background: rgba(166, 23, 41, 0.95);
}

.asset-load-error {
    opacity: 0.18;
    filter: grayscale(1);
}

.asset-recommendation {
    display: block;
    margin-top: -7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

@media (max-width: 680px) {
    .player-header,
    .game-topbar {
        min-height: 68px;
    }

    .player-brand strong {
        max-width: 210px;
        overflow: hidden;
        display: block;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .landing-layout {
        margin-top: 12px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .player-card,
    .climb-control-panel,
    .reward-control-panel,
    .final-result-panel {
        box-shadow: 0 17px 38px rgba(36, 44, 72, 0.16);
    }

    .climb-control-panel {
        padding-bottom: calc(22px + var(--safe-bottom));
    }

    .climb-tap-button {
        min-height: 126px;
        position: sticky;
        bottom: calc(12px + var(--safe-bottom));
        z-index: 12;
    }

    .climb-metrics strong {
        font-size: 18px;
    }

    .reward-machine-title strong {
        font-size: 25px;
    }

    .reward-machine-lights {
        gap: 7px;
        padding: 0 5px;
    }

    .reward-machine-lights span {
        width: 9px;
        height: 9px;
    }

    .result-secondary-actions {
        grid-template-columns: 1fr;
    }

    .game-audio-panel {
        right: calc(9px + var(--safe-right));
        bottom: calc(9px + var(--safe-bottom));
    }

    .audio-volume-wrap {
        display: none;
    }

    .player-footer {
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: var(--safe-bottom);
    }
}

@media (orientation: landscape) and (max-height: 560px) {
    .climb-game-layout,
    .reward-game-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        align-items: start;
    }

    .climb-stage {
        height: 470px;
    }

    .climb-control-panel,
    .reward-control-panel {
        padding: 18px;
    }

    .climb-control-panel h1,
    .reward-control-panel h1 {
        font-size: 31px;
    }

    .climb-tap-button {
        min-height: 82px;
    }
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    body,
    body.custom-player-background {
        min-height: auto;
        padding: 0;
        background: white !important;
        color: #111827;
    }

    .game-topbar,
    .app-loader,
    .game-audio-panel,
    .player-toast,
    .result-actions,
    .result-proof-note {
        display: none !important;
    }

    .final-result-layout {
        width: 100%;
        min-height: auto;
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        gap: 18px;
        margin: 0;
    }

    .final-result-visual,
    .final-result-panel {
        min-height: 0;
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #d7dce5;
    }

    .final-result-visual {
        height: 450px;
    }

    .final-result-panel {
        padding: 22px;
        background: white;
    }

    .final-rays {
        animation: none;
    }
}

@keyframes loaderFloat {
    from { transform: translateY(0) rotate(-1deg); }
    to { transform: translateY(-8px) rotate(1deg); }
}

@keyframes buttonSpinner {
    to { transform: rotate(360deg); }
}

@keyframes loaderFailsafe {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* =========================================================
   REVISI PLAYER V14 — LANDING PAGE SIMPEL
   Hanya memengaruhi body dengan class .landing-body-v14
   ========================================================= */

body.landing-body-v14 {
    min-height: 100vh;
    padding-top: max(10px, var(--safe-top));
    padding-bottom: max(18px, var(--safe-bottom));
    background:
        radial-gradient(
            circle at 50% -8%,
            rgba(255, 255, 255, 0.98),
            transparent 33%
        ),
        linear-gradient(
            180deg,
            #fff8f6 0%,
            #fffdf8 42%,
            #eff8ff 74%,
            #fff1e1 100%
        );
}

body.landing-body-v14.custom-player-background {
    background-image:
        linear-gradient(
            180deg,
            rgba(255, 250, 248, 0.88),
            rgba(248, 253, 255, 0.86)
        ),
        var(--custom-player-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.landing-body-v14::before,
.landing-body-v14::after {
    content: "";
    width: 230px;
    height: 230px;
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.landing-body-v14::before {
    left: -115px;
    top: 20%;
    background: rgba(215, 25, 45, 0.08);
}

.landing-body-v14::after {
    right: -115px;
    bottom: 12%;
    background: rgba(59, 170, 230, 0.1);
}

.landing-v14-shell {
    width: min(100% - 22px, 510px);
    display: grid;
    gap: 0;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.landing-v14-hero {
    min-height: 705px;
    overflow: hidden;
    position: relative;
    padding: 23px 18px 0;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 30px 30px 0 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 250, 248, 0.96) 38%,
            rgba(216, 243, 255, 0.96) 66%,
            rgba(156, 220, 255, 0.98) 100%
        );
    box-shadow:
        0 24px 70px rgba(37, 43, 70, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.62);
    text-align: center;
}

.landing-v14-ribbon {
    width: 190px;
    height: 76px;
    position: absolute;
    top: -20px;
    z-index: 0;
    border-radius: 50%;
    background:
        linear-gradient(
            180deg,
            #e11d31 0 48%,
            #ffffff 48% 100%
        );
    opacity: 0.95;
    filter: drop-shadow(0 8px 10px rgba(122, 19, 32, 0.12));
}

.landing-v14-ribbon.ribbon-left {
    left: -88px;
    transform: rotate(-24deg);
}

.landing-v14-ribbon.ribbon-right {
    right: -88px;
    transform: rotate(24deg);
}

.landing-v14-logo {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    position: relative;
    z-index: 3;
    border: 5px solid rgba(255, 255, 255, 0.94);
    border-radius: 27px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 16px 32px rgba(26, 36, 64, 0.17),
        0 0 0 1px rgba(215, 25, 45, 0.08);
}

.landing-v14-logo img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.landing-v14-fallback-logo {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    position: relative;
    color: #ffffff;
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(255, 255, 255, 0.28),
            transparent 26%
        ),
        linear-gradient(145deg, #ef3347, #b80f25);
    text-shadow: 0 2px 0 rgba(91, 6, 20, 0.34);
}

.landing-v14-fallback-logo strong {
    font-size: 17px;
    line-height: 0.9;
}

.landing-v14-fallback-logo small {
    padding: 3px 7px;
    border-radius: 999px;
    background: #ffffff;
    color: #b80f25;
    font-size: 8px;
    font-weight: 900;
}

.fallback-flag {
    width: 24px;
    height: 17px;
    overflow: hidden;
    display: grid;
    margin-bottom: 3px;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.fallback-flag i:first-child {
    background: #e21b32;
}

.fallback-flag i:last-child {
    background: #ffffff;
}

.landing-v14-kicker {
    display: inline-flex;
    position: relative;
    z-index: 2;
    padding: 7px 13px;
    border: 1px solid rgba(215, 25, 45, 0.15);
    border-radius: 999px;
    background: rgba(215, 25, 45, 0.08);
    color: #bc1830;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.landing-v14-hero h1 {
    max-width: 450px;
    margin: 13px auto 8px;
    position: relative;
    z-index: 2;
    color: #111a31;
    font-size: clamp(34px, 8.5vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.landing-v14-headline {
    display: grid;
    gap: 1px;
    width: max-content;
    max-width: 100%;
    margin: 14px auto 10px;
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(18px, 5vw, 25px);
    font-style: italic;
    font-weight: 950;
    line-height: 1.02;
    text-transform: uppercase;
    text-shadow:
        2px 2px 0 #a20d20,
        -1px -1px 0 #a20d20,
        1px -1px 0 #a20d20,
        -1px 1px 0 #a20d20;
    transform: rotate(-1deg);
}

.landing-v14-headline::before {
    content: "";
    position: absolute;
    inset: -7px -17px;
    z-index: -1;
    background: linear-gradient(90deg, #d8182d, #f04450, #d8182d);
    clip-path: polygon(
        0 20%,
        7% 14%,
        5% 0,
        96% 8%,
        100% 24%,
        96% 48%,
        100% 75%,
        95% 91%,
        6% 100%,
        8% 82%,
        0 70%,
        4% 47%
    );
    box-shadow: 0 9px 22px rgba(181, 12, 34, 0.18);
}

.landing-v14-headline span,
.landing-v14-headline strong {
    display: block;
}

.landing-v14-description {
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: #65708a;
    font-size: 14px;
    line-height: 1.6;
}

.landing-v14-pinang-scene {
    height: 410px;
    margin: 2px -18px 0;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.landing-v14-pinang-scene::before {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    z-index: -4;
    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(53, 151, 76, 0.54),
            transparent 59%
        );
}

.landing-v14-sun {
    width: 55px;
    height: 55px;
    position: absolute;
    right: 35px;
    top: 28px;
    z-index: -3;
    border-radius: 50%;
    background: #ffd759;
    box-shadow:
        0 0 0 13px rgba(255, 215, 89, 0.17),
        0 0 38px rgba(255, 196, 62, 0.26);
}

.landing-v14-cloud {
    width: 90px;
    height: 25px;
    position: absolute;
    top: 66px;
    z-index: -2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    filter: drop-shadow(0 7px 12px rgba(69, 126, 160, 0.08));
}

.landing-v14-cloud::before,
.landing-v14-cloud::after {
    content: "";
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
}

.landing-v14-cloud::before {
    width: 43px;
    height: 43px;
    left: 15px;
}

.landing-v14-cloud::after {
    width: 34px;
    height: 34px;
    right: 14px;
}

.landing-v14-cloud.cloud-left {
    left: 20px;
}

.landing-v14-cloud.cloud-right {
    right: 18px;
    top: 112px;
    transform: scale(0.8);
}

.landing-v14-bunting {
    width: 150px;
    height: 48px;
    display: flex;
    justify-content: space-around;
    position: absolute;
    top: 145px;
    z-index: -1;
    border-top: 2px solid rgba(151, 42, 53, 0.42);
}

.landing-v14-bunting.bunting-left {
    left: -18px;
    transform: rotate(11deg);
}

.landing-v14-bunting.bunting-right {
    right: -18px;
    transform: rotate(-11deg);
}

.landing-v14-bunting i {
    width: 17px;
    height: 24px;
    display: block;
    background: #df2135;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.landing-v14-bunting i:nth-child(even) {
    background: #ffffff;
    filter: drop-shadow(0 0 1px rgba(92, 31, 40, 0.2));
}

.landing-v14-pinang-top {
    width: 230px;
    height: 92px;
    position: absolute;
    left: 50%;
    top: 64px;
    z-index: 4;
    transform: translateX(-50%);
}

.landing-v14-flag {
    width: 40px;
    height: 29px;
    display: grid;
    position: absolute;
    left: 50%;
    top: -34px;
    overflow: hidden;
    border-radius: 3px;
    transform: translateX(4px);
    box-shadow: 0 6px 12px rgba(38, 44, 68, 0.14);
}

.landing-v14-flag::before {
    content: "";
    width: 3px;
    height: 69px;
    position: absolute;
    left: -6px;
    top: -2px;
    border-radius: 999px;
    background: #69503b;
}

.landing-v14-flag span:first-child {
    background: #df1f34;
}

.landing-v14-flag span:last-child {
    background: #ffffff;
}

.landing-v14-prize-ring {
    width: 230px;
    height: 72px;
    position: absolute;
    inset: 0;
    border: 12px solid #a97842;
    border-radius: 50%;
    background: rgba(151, 95, 43, 0.12);
    box-shadow:
        0 10px 20px rgba(68, 45, 28, 0.23),
        inset 0 0 0 3px rgba(255, 222, 166, 0.22);
}

.landing-v14-prize-ring::before,
.landing-v14-prize-ring::after {
    content: "";
    width: 25px;
    height: 25px;
    position: absolute;
    top: 13px;
    border-radius: 50%;
    background: #d61f34;
    box-shadow: 0 0 0 5px #ffffff;
}

.landing-v14-prize-ring::before {
    left: -2px;
}

.landing-v14-prize-ring::after {
    right: -2px;
}

.prize-item {
    position: absolute;
    z-index: 3;
    font-size: 30px;
    filter: drop-shadow(0 7px 6px rgba(45, 36, 30, 0.2));
}

.prize-one {
    left: 12px;
    top: 38px;
}

.prize-two {
    left: 61px;
    top: 47px;
}

.prize-three {
    left: 102px;
    top: 47px;
    font-size: 34px;
}

.prize-four {
    right: 43px;
    top: 46px;
}

.prize-five {
    right: 4px;
    top: 35px;
}

.landing-v14-pole {
    width: 34px;
    height: 315px;
    position: absolute;
    left: 50%;
    top: 113px;
    z-index: 2;
    border-radius: 50% 50% 12px 12px;
    transform: translateX(-50%);
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.25),
            transparent 25%,
            transparent 70%,
            rgba(55, 29, 11, 0.22)
        ),
        repeating-linear-gradient(
            175deg,
            #b8874e 0 18px,
            #96663a 18px 22px
        );
    box-shadow:
        inset 0 0 0 1px rgba(77, 48, 24, 0.2),
        8px 12px 18px rgba(72, 54, 40, 0.14);
}

.landing-v14-climber {
    width: 86px;
    height: 122px;
    position: absolute;
    left: calc(50% - 30px);
    top: 226px;
    z-index: 5;
    transform: rotate(-5deg);
    filter: drop-shadow(0 10px 8px rgba(36, 35, 43, 0.2));
}

.landing-v14-climber.has-custom-climber {
    left: 50%;
    width: 100px;
    height: 140px;
    transform: translateX(-55%);
}

.landing-v14-climber.has-custom-climber img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.climber-head {
    width: 27px;
    height: 27px;
    position: absolute;
    left: 33px;
    top: 0;
    border: 4px solid #e31c34;
    border-radius: 50%;
    background: #b97148;
}

.climber-head::after {
    content: "";
    width: 31px;
    height: 6px;
    position: absolute;
    left: -6px;
    top: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e21b32 50%, #ffffff 50%);
    transform: rotate(-10deg);
}

.climber-body {
    width: 35px;
    height: 50px;
    position: absolute;
    left: 29px;
    top: 27px;
    border-radius: 13px 13px 9px 9px;
    background:
        linear-gradient(90deg, #e52237 0 52%, #ffffff 52% 100%);
}

.climber-arm,
.climber-leg {
    position: absolute;
    border-radius: 999px;
    transform-origin: top center;
}

.climber-arm {
    width: 13px;
    height: 54px;
    top: 33px;
    background: #b97148;
}

.climber-arm.arm-left {
    left: 22px;
    transform: rotate(38deg);
}

.climber-arm.arm-right {
    right: 14px;
    transform: rotate(-47deg);
}

.climber-leg {
    width: 16px;
    height: 61px;
    top: 70px;
    background: linear-gradient(180deg, #25314d 0 55%, #b97148 55% 100%);
}

.climber-leg.leg-left {
    left: 29px;
    transform: rotate(29deg);
}

.climber-leg.leg-right {
    right: 23px;
    transform: rotate(-31deg);
}

.landing-v14-ground {
    width: 125%;
    height: 92px;
    position: absolute;
    left: 50%;
    bottom: -23px;
    z-index: 1;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0;
    background:
        radial-gradient(
            ellipse at 50% 0,
            rgba(255, 255, 255, 0.19),
            transparent 48%
        ),
        linear-gradient(180deg, #67b75b, #287b42);
    box-shadow: 0 -12px 30px rgba(50, 126, 74, 0.18);
}

.landing-v14-ground span {
    width: 16px;
    height: 42px;
    position: absolute;
    top: 8px;
    border-radius: 12px 12px 0 0;
    background: rgba(33, 65, 53, 0.55);
}

.landing-v14-ground span::before {
    content: "";
    width: 22px;
    height: 22px;
    position: absolute;
    left: -3px;
    top: -15px;
    border-radius: 50%;
    background: #42362f;
}

.landing-v14-ground span:nth-child(1) {
    left: 20%;
}

.landing-v14-ground span:nth-child(2) {
    left: 77%;
    height: 48px;
}

.landing-v14-ground span:nth-child(3) {
    left: 89%;
    height: 34px;
}

.landing-v14-action-card {
    padding: 23px;
    position: relative;
    z-index: 6;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-top: 0;
    border-radius: 0 0 30px 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 28px 70px rgba(37, 43, 70, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
}

.landing-v14-action-card::before {
    content: "";
    width: 54px;
    height: 5px;
    position: absolute;
    left: 50%;
    top: 10px;
    border-radius: 999px;
    background: #dce1e9;
    transform: translateX(-50%);
}

.landing-v14-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 7px 0 20px;
}

.landing-v14-card-heading .mini-flag {
    flex: 0 0 auto;
}

.landing-v14-card-label {
    display: block;
    margin-bottom: 2px;
    color: #d7192d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-v14-card-heading h2 {
    margin: 0;
    color: #111a31;
    font-size: 26px;
    line-height: 1.06;
}

.landing-v14-card-heading p {
    margin: 5px 0 0;
    color: #65708a;
    font-size: 13px;
}

.landing-v14-form {
    display: grid;
    gap: 14px;
}

.landing-v14-form label {
    display: grid;
    gap: 7px;
}

.landing-v14-form label > span {
    color: #303b56;
    font-size: 12px;
    font-weight: 800;
}

.landing-v14-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    outline: 0;
    background: #f8fafc;
    color: #111a31;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.landing-v14-form input:focus {
    border-color: rgba(215, 25, 45, 0.52);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(215, 25, 45, 0.08);
}

.landing-v14-start-button {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    padding: 0 18px 0 24px;
    border-radius: 17px;
    background:
        radial-gradient(
            circle at 30% 10%,
            rgba(255, 255, 255, 0.24),
            transparent 30%
        ),
        linear-gradient(135deg, #de1d32, #f13a49);
    box-shadow:
        0 13px 25px rgba(204, 18, 42, 0.26),
        inset 0 -4px 0 rgba(137, 9, 27, 0.22);
    font-size: 17px;
}

.landing-v14-start-button b {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 30px;
    line-height: 1;
}

.landing-v14-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 15px 0 0;
    color: #7b8498;
    font-size: 11px;
    text-align: center;
}

.landing-v14-security-note span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(35, 153, 96, 0.1);
    color: #22935e;
    font-weight: 900;
}

.landing-v14-active-game {
    margin: 0;
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(215, 25, 45, 0.07),
            rgba(255, 255, 255, 0.95)
        );
}

.landing-v14-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px 2px;
    color: #8a93a5;
    font-size: 10px;
}

.landing-v14-footer strong {
    color: #59647a;
}

.landing-v14-confetti {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.landing-v14-confetti i {
    width: 9px;
    height: 17px;
    position: absolute;
    border-radius: 2px;
    background: #df2035;
    opacity: 0.42;
    transform: rotate(23deg);
}

.landing-v14-confetti i:nth-child(1) {
    left: 7%;
    top: 13%;
}

.landing-v14-confetti i:nth-child(2) {
    right: 7%;
    top: 19%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(215, 25, 45, 0.12);
    transform: rotate(-19deg);
}

.landing-v14-confetti i:nth-child(3) {
    left: 12%;
    top: 63%;
    transform: rotate(49deg);
}

.landing-v14-confetti i:nth-child(4) {
    right: 13%;
    top: 55%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(215, 25, 45, 0.12);
}

.landing-v14-confetti i:nth-child(5) {
    left: 18%;
    bottom: 7%;
    transform: rotate(-32deg);
}

.landing-v14-confetti i:nth-child(6) {
    right: 18%;
    bottom: 9%;
    transform: rotate(36deg);
}

@media (min-width: 760px) {
    .landing-v14-shell {
        padding-top: 18px;
    }

    .landing-v14-hero {
        min-height: 735px;
    }

    .landing-v14-pinang-scene {
        height: 430px;
    }
}

@media (max-width: 520px) {
    body.landing-body-v14 {
        padding-top: 0;
    }

    .landing-v14-shell {
        width: 100%;
    }

    .landing-v14-hero,
    .landing-v14-action-card {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .landing-v14-hero {
        min-height: 670px;
        padding-top: 17px;
        box-shadow: none;
    }

    .landing-v14-logo {
        width: 91px;
        height: 91px;
        margin-bottom: 10px;
        border-width: 4px;
        border-radius: 23px;
    }

    .landing-v14-hero h1 {
        max-width: 360px;
        font-size: clamp(32px, 10vw, 42px);
    }

    .landing-v14-description {
        max-width: 350px;
        padding: 0 7px;
        font-size: 13px;
    }

    .landing-v14-pinang-scene {
        height: 380px;
    }

    .landing-v14-pinang-top {
        top: 66px;
        transform: translateX(-50%) scale(0.88);
    }

    .landing-v14-pole {
        height: 288px;
        top: 112px;
    }

    .landing-v14-climber {
        top: 218px;
        transform: rotate(-5deg) scale(0.92);
    }

    .landing-v14-climber.has-custom-climber {
        top: 208px;
        transform: translateX(-55%) scale(0.9);
    }

    .landing-v14-action-card {
        padding: 23px 18px 20px;
        box-shadow: 0 18px 40px rgba(37, 43, 70, 0.16);
    }

    .landing-v14-card-heading h2 {
        font-size: 23px;
    }
}

@media (max-width: 375px) {
    .landing-v14-hero {
        min-height: 645px;
    }

    .landing-v14-headline {
        font-size: 17px;
    }

    .landing-v14-pinang-scene {
        height: 355px;
        transform: scale(0.94);
        transform-origin: top center;
    }

    .landing-v14-action-card {
        margin-top: -10px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .landing-v14-flag {
        animation: landingFlagWave 2.3s ease-in-out infinite alternate;
        transform-origin: left center;
    }

    .landing-v14-climber {
        animation: landingClimberFloat 2.1s ease-in-out infinite alternate;
    }

    .landing-v14-prize-ring {
        animation: landingPrizeSwing 3s ease-in-out infinite alternate;
    }
}

@keyframes landingFlagWave {
    from {
        transform: translateX(4px) skewY(-2deg);
    }

    to {
        transform: translateX(4px) skewY(3deg);
    }
}

@keyframes landingClimberFloat {
    from {
        margin-top: 0;
    }

    to {
        margin-top: -5px;
    }
}

@keyframes landingPrizeSwing {
    from {
        transform: rotate(-1deg);
    }

    to {
        transform: rotate(1deg);
    }
}

/* =========================================================
   REVISI PLAYER V15 — LOGO BESAR + FORM LANGSUNG TERLIHAT
   ========================================================= */

body.landing-body-v15 {
    padding-top: 0;
    padding-bottom: max(8px, var(--safe-bottom));
}

.landing-body-v15 .landing-v14-shell {
    width: min(100%, 510px);
    min-height: 100vh;
    align-content: start;
}

.landing-body-v15 .landing-v14-hero {
    min-height: 0;
    height: auto;
    padding: 10px 16px 0;
    border-radius: 0;
    box-shadow: none;
}

.landing-body-v15 .landing-v14-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 5px;
    border-width: 5px;
    overflow: hidden;
    border-radius: 31px;
    box-shadow:
        0 15px 34px rgba(26, 36, 64, 0.18),
        0 0 0 1px rgba(215, 25, 45, 0.08);
}

.landing-body-v15 .landing-v14-logo img {
    padding: 0;
    transform: scale(1.24);
}

.landing-body-v15 .landing-v14-fallback-logo strong {
    font-size: 24px;
}

.landing-body-v15 .landing-v14-fallback-logo small {
    font-size: 10px;
}

.landing-body-v15 .landing-v14-kicker {
    padding: 5px 10px;
    font-size: 8px;
}

.landing-body-v15 .landing-v14-hero h1 {
    max-width: 390px;
    margin: 6px auto 3px;
    font-size: clamp(23px, 6.7vw, 33px);
    line-height: 1;
}

.landing-body-v15 .landing-v14-headline {
    margin: 8px auto 5px;
    font-size: clamp(15px, 4.4vw, 20px);
}

.landing-body-v15 .landing-v14-headline::before {
    inset: -5px -12px;
}

.landing-body-v15 .landing-v14-description {
    max-width: 370px;
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1.4;
}

.landing-body-v15 .landing-v14-pinang-scene {
    height: 205px;
    margin: -2px -16px 0;
}

.landing-body-v15 .landing-v14-pinang-top {
    top: 31px;
    transform: translateX(-50%) scale(0.62);
}

.landing-body-v15 .landing-v14-pole {
    width: 27px;
    height: 158px;
    top: 68px;
}

.landing-body-v15 .landing-v14-climber {
    width: 65px;
    height: 92px;
    left: calc(50% - 24px);
    top: 103px;
    transform: rotate(-5deg) scale(0.75);
}

.landing-body-v15 .landing-v14-climber.has-custom-climber {
    width: 76px;
    height: 104px;
    top: 97px;
    transform: translateX(-55%) scale(0.74);
}

.landing-body-v15 .landing-v14-sun {
    width: 38px;
    height: 38px;
    right: 46px;
    top: 24px;
}

.landing-body-v15 .landing-v14-cloud {
    top: 35px;
    transform: scale(0.62);
}

.landing-body-v15 .landing-v14-cloud.cloud-left {
    left: 3px;
}

.landing-body-v15 .landing-v14-cloud.cloud-right {
    right: -4px;
    top: 66px;
    transform: scale(0.5);
}

.landing-body-v15 .landing-v14-bunting {
    top: 91px;
}

.landing-body-v15 .landing-v14-bunting.bunting-left {
    transform: rotate(11deg) scale(0.7);
}

.landing-body-v15 .landing-v14-bunting.bunting-right {
    transform: rotate(-11deg) scale(0.7);
}

.landing-body-v15 .landing-v14-ground {
    height: 55px;
    bottom: -18px;
}

.landing-body-v15 .landing-v14-action-card {
    margin-top: 0;
    padding: 15px 16px 14px;
    border: 0;
    border-radius: 0;
    box-shadow:
        0 -8px 22px rgba(37, 43, 70, 0.08),
        0 18px 42px rgba(37, 43, 70, 0.13);
}

.landing-body-v15 .landing-v14-action-card::before {
    top: 6px;
    width: 43px;
    height: 4px;
}

.landing-body-v15 .landing-v14-card-heading {
    gap: 9px;
    margin: 3px 0 9px;
}

.landing-body-v15 .landing-v14-card-heading h2 {
    font-size: 19px;
}

.landing-body-v15 .landing-v14-card-heading p {
    margin-top: 2px;
    font-size: 9px;
}

.landing-body-v15 .landing-v14-card-label {
    font-size: 7px;
}

.landing-body-v15 .landing-v14-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.landing-body-v15 .landing-v14-form label {
    gap: 4px;
}

.landing-body-v15 .landing-v14-form label > span {
    font-size: 9px;
}

.landing-body-v15 .landing-v14-form input {
    min-height: 43px;
    padding: 0 11px;
    border-radius: 11px;
    font-size: 12px;
}

.landing-body-v15 .landing-v14-start-button {
    grid-column: 1 / -1;
    min-height: 49px;
    margin-top: 0;
    border-radius: 13px;
    font-size: 14px;
}

.landing-body-v15 .landing-v14-start-button b {
    width: 29px;
    height: 29px;
    font-size: 24px;
}

.landing-body-v15 .landing-v14-security-note {
    margin-top: 8px;
    font-size: 8px;
}

.landing-body-v15 .landing-v14-footer {
    padding-top: 8px;
}

@media (max-width: 390px) {
    .landing-body-v15 .landing-v14-logo {
        width: 132px;
        height: 132px;
    }

    .landing-body-v15 .landing-v14-hero h1 {
        font-size: 23px;
    }

    .landing-body-v15 .landing-v14-form {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .landing-body-v15 .landing-v14-form input {
        min-height: 41px;
        font-size: 11px;
    }
}

@media (max-height: 720px) and (max-width: 520px) {
    .landing-body-v15 .landing-v14-logo {
        width: 116px;
        height: 116px;
    }

    .landing-body-v15 .landing-v14-kicker {
        display: none;
    }

    .landing-body-v15 .landing-v14-hero h1 {
        margin-top: 3px;
        font-size: 22px;
    }

    .landing-body-v15 .landing-v14-headline {
        margin-top: 6px;
        font-size: 14px;
    }

    .landing-body-v15 .landing-v14-description {
        font-size: 9px;
    }

    .landing-body-v15 .landing-v14-pinang-scene {
        height: 165px;
    }

    .landing-body-v15 .landing-v14-pinang-top {
        top: 23px;
        transform: translateX(-50%) scale(0.53);
    }

    .landing-body-v15 .landing-v14-pole {
        height: 126px;
        top: 58px;
    }

    .landing-body-v15 .landing-v14-climber {
        top: 82px;
        transform: rotate(-5deg) scale(0.62);
    }

    .landing-body-v15 .landing-v14-climber.has-custom-climber {
        top: 77px;
        transform: translateX(-55%) scale(0.62);
    }

    .landing-body-v15 .landing-v14-card-heading {
        margin-bottom: 6px;
    }

    .landing-body-v15 .landing-v14-form input {
        min-height: 39px;
    }

    .landing-body-v15 .landing-v14-start-button {
        min-height: 45px;
    }
}

/* =========================================================
   PLAYER V16 — LAYOUT BESAR SEPERTI REFERENSI MERAH
   ========================================================= */

body.landing-body-v16 {
    min-height: 100vh;
    margin: 0;
    padding:
        max(12px, env(safe-area-inset-top))
        10px
        max(14px, env(safe-area-inset-bottom));
    color: #ffffff;
    background:
        radial-gradient(
            circle at 50% -8%,
            rgba(255, 84, 84, 0.85),
            transparent 34%
        ),
        linear-gradient(180deg, #f4000c 0%, #e8000b 55%, #c9000a 100%);
}

body.landing-body-v16.has-custom-v16-background {
    background-image:
        linear-gradient(
            180deg,
            rgba(239, 0, 12, 0.84),
            rgba(175, 0, 9, 0.92)
        ),
        var(--player-v16-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.landing-v16-shell {
    width: min(100%, 560px);
    margin: 0 auto;
}

.landing-v16-main-card {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 50% 4%,
            rgba(255, 70, 70, 0.32),
            transparent 28%
        ),
        linear-gradient(180deg, #c70c16 0%, #970812 40%, #470713 100%);
    box-shadow:
        0 24px 55px rgba(79, 0, 7, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.landing-v16-top-glow {
    width: 75%;
    height: 170px;
    position: absolute;
    left: 50%;
    top: -105px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    filter: blur(35px);
    transform: translateX(-50%);
    pointer-events: none;
}

.landing-v16-header {
    padding: 20px 18px 12px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.landing-v16-logo {
    width: min(96%, 490px);
    height: auto;
    max-height: 270px;
    display: block;
    margin: 0 auto 8px;
    object-fit: contain;
    object-position: center;
    filter:
        drop-shadow(0 12px 16px rgba(63, 0, 8, 0.35))
        drop-shadow(0 2px 0 rgba(255, 255, 255, 0.16));
    transform: scale(1.08);
    transform-origin: center;
}

.landing-v16-fallback-logo {
    width: min(94%, 470px);
    display: grid;
    justify-items: center;
    gap: 0;
    margin: 0 auto 12px;
    padding: 15px 12px;
    color: white;
    text-transform: uppercase;
    text-shadow:
        0 3px 0 #8b0010,
        0 7px 13px rgba(52, 0, 8, 0.28);
}

.landing-v16-fallback-logo span {
    padding: 5px 18px;
    position: relative;
    z-index: 1;
    background: #e21c31;
    font-size: 12px;
    font-style: italic;
    font-weight: 900;
}

.landing-v16-fallback-logo strong {
    margin-top: -2px;
    font-size: clamp(42px, 12vw, 70px);
    font-style: italic;
    line-height: 0.82;
    letter-spacing: -0.06em;
}

.landing-v16-fallback-logo b {
    color: #ffffff;
    font-size: clamp(28px, 8vw, 47px);
    font-style: italic;
    line-height: 0.94;
}

.landing-v16-fallback-logo small {
    margin-top: 7px;
    font-size: 11px;
    font-weight: 900;
}

.landing-v16-promo-title {
    display: grid;
    gap: 2px;
    margin-top: 3px;
    color: #35f6ff;
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: clamp(23px, 6.5vw, 37px);
    font-weight: 950;
    line-height: 0.94;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    text-shadow:
        0 0 6px rgba(38, 246, 255, 0.83),
        0 4px 0 rgba(3, 93, 115, 0.72),
        2px 0 0 rgba(0, 96, 115, 0.55),
        -2px 0 0 rgba(0, 96, 115, 0.55);
}

.landing-v16-promo-title span,
.landing-v16-promo-title strong {
    display: block;
}

.landing-v16-instruction {
    max-width: 470px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
    text-transform: uppercase;
}

.landing-v16-entry {
    padding: 0 18px 18px;
}

.landing-v16-code-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
}

.landing-v16-code-status strong {
    color: #ffffff;
}

.landing-v16-code-status a {
    margin-left: auto;
    color: #ffe6e8;
    font-weight: 850;
    text-decoration: underline;
}

.landing-v16-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    padding: 15px;
    border: 1px solid rgba(162, 205, 255, 0.5);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(11, 21, 43, 0.94),
            rgba(35, 12, 38, 0.93)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 30px rgba(37, 0, 10, 0.2);
}

.landing-v16-form label {
    display: grid;
    gap: 6px;
}

.landing-v16-form label > span {
    color: #d9e6ff;
    font-size: 11px;
    font-weight: 800;
}

.landing-v16-form input {
    width: 100%;
    min-height: 49px;
    padding: 0 13px;
    border: 1px solid rgba(147, 174, 218, 0.36);
    border-radius: 12px;
    outline: 0;
    background: rgba(8, 18, 38, 0.78);
    color: #ffffff;
    font-size: 13px;
    box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.18);
}

.landing-v16-form input::placeholder {
    color: rgba(210, 221, 241, 0.5);
}

.landing-v16-form input:focus {
    border-color: #42e8ff;
    box-shadow:
        0 0 0 3px rgba(66, 232, 255, 0.12),
        inset 0 1px 8px rgba(0, 0, 0, 0.18);
}

.landing-v16-main-button {
    grid-column: 1 / -1;
    min-height: 52px;
    border: 1px solid rgba(104, 255, 102, 0.4);
    border-radius: 999px;
    background:
        linear-gradient(180deg, #55a83e 0%, #2d752f 100%);
    color: #ffffff;
    box-shadow:
        0 9px 20px rgba(22, 92, 36, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.23);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.landing-v16-active-game {
    margin: 0;
    border-color: rgba(162, 205, 255, 0.5);
    background:
        linear-gradient(
            145deg,
            rgba(11, 21, 43, 0.94),
            rgba(35, 12, 38, 0.93)
        );
    color: #ffffff;
}

.landing-v16-game-preview {
    margin: 0 18px 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 197, 255, 0.6);
    border-radius: 19px;
    background:
        linear-gradient(
            180deg,
            rgba(23, 22, 43, 0.97),
            rgba(13, 17, 33, 0.97)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 34px rgba(30, 0, 11, 0.27);
}

.landing-v16-preview-heading {
    padding: 15px 16px 8px;
    text-align: center;
}

.landing-v16-preview-heading > span {
    color: #50f5ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-v16-preview-heading strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 21px;
}

.landing-v16-preview-heading p {
    margin: 5px 0 0;
    color: #c8cfdf;
    font-size: 11px;
}

.landing-v16-pinang-scene {
    height: 255px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(110, 68, 134, 0.34),
            transparent 24%
        ),
        linear-gradient(180deg, #171a30 0%, #25203d 64%, #183221 100%);
}

.landing-v16-moon {
    width: 44px;
    height: 44px;
    position: absolute;
    right: 34px;
    top: 22px;
    border-radius: 50%;
    background: #ffe267;
    box-shadow:
        0 0 0 9px rgba(255, 226, 103, 0.08),
        0 0 24px rgba(255, 226, 103, 0.22);
}

.landing-v16-stars i {
    width: 3px;
    height: 3px;
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.7);
}

.landing-v16-stars i:nth-child(1) {
    left: 11%;
    top: 21%;
}

.landing-v16-stars i:nth-child(2) {
    left: 23%;
    top: 37%;
}

.landing-v16-stars i:nth-child(3) {
    right: 22%;
    top: 43%;
}

.landing-v16-stars i:nth-child(4) {
    right: 8%;
    top: 26%;
}

.landing-v16-stars i:nth-child(5) {
    left: 8%;
    top: 62%;
}

.landing-v16-stars i:nth-child(6) {
    right: 15%;
    top: 65%;
}

.landing-v16-flag {
    width: 31px;
    height: 22px;
    display: grid;
    position: absolute;
    left: calc(50% + 4px);
    top: 10px;
    overflow: hidden;
    z-index: 5;
    border-radius: 2px;
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.2);
}

.landing-v16-flag span:first-child {
    background: #e51b31;
}

.landing-v16-flag span:last-child {
    background: #ffffff;
}

.landing-v16-flag::before {
    content: "";
    width: 3px;
    height: 48px;
    position: absolute;
    left: -5px;
    top: -2px;
    border-radius: 999px;
    background: #6c5035;
}

.landing-v16-prize-ring {
    width: 205px;
    height: 59px;
    position: absolute;
    left: 50%;
    top: 37px;
    z-index: 4;
    border: 10px solid #b48348;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 236, 196, 0.18);
}

.landing-v16-prize-ring span {
    position: absolute;
    top: 35px;
    font-size: 25px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.35));
}

.landing-v16-prize-ring span:nth-child(1) {
    left: 6px;
}

.landing-v16-prize-ring span:nth-child(2) {
    left: 50px;
}

.landing-v16-prize-ring span:nth-child(3) {
    left: 88px;
}

.landing-v16-prize-ring span:nth-child(4) {
    right: 42px;
}

.landing-v16-prize-ring span:nth-child(5) {
    right: 3px;
}

.landing-v16-pole {
    width: 29px;
    height: 191px;
    position: absolute;
    left: 50%;
    top: 73px;
    z-index: 2;
    border-radius: 50% 50% 8px 8px;
    transform: translateX(-50%);
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.18),
            transparent 27%,
            transparent 72%,
            rgba(48, 24, 10, 0.24)
        ),
        repeating-linear-gradient(
            176deg,
            #ba884c 0 15px,
            #8e5e32 15px 19px
        );
    box-shadow: 7px 9px 15px rgba(0, 0, 0, 0.24);
}

.landing-v16-climber {
    width: 68px;
    height: 99px;
    position: absolute;
    left: calc(50% - 24px);
    top: 126px;
    z-index: 5;
    transform: rotate(-6deg);
    filter: drop-shadow(0 8px 7px rgba(0, 0, 0, 0.3));
}

.landing-v16-climber.has-image {
    width: 86px;
    height: 116px;
    left: 50%;
    top: 113px;
    transform: translateX(-55%);
}

.landing-v16-climber.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.v16-head {
    width: 23px;
    height: 23px;
    position: absolute;
    left: 25px;
    top: 0;
    border: 4px solid #df1b30;
    border-radius: 50%;
    background: #b97047;
}

.v16-body {
    width: 29px;
    height: 42px;
    position: absolute;
    left: 23px;
    top: 23px;
    border-radius: 10px;
    background:
        linear-gradient(90deg, #e32237 0 52%, #ffffff 52% 100%);
}

.v16-arm,
.v16-leg {
    position: absolute;
    border-radius: 999px;
    transform-origin: top center;
}

.v16-arm {
    width: 11px;
    height: 43px;
    top: 28px;
    background: #b97047;
}

.v16-arm.arm-a {
    left: 17px;
    transform: rotate(38deg);
}

.v16-arm.arm-b {
    right: 10px;
    transform: rotate(-44deg);
}

.v16-leg {
    width: 13px;
    height: 49px;
    top: 60px;
    background:
        linear-gradient(180deg, #25314d 0 56%, #b97047 56% 100%);
}

.v16-leg.leg-a {
    left: 23px;
    transform: rotate(28deg);
}

.v16-leg.leg-b {
    right: 17px;
    transform: rotate(-29deg);
}

.landing-v16-ground {
    width: 130%;
    height: 64px;
    position: absolute;
    left: 50%;
    bottom: -28px;
    border-radius: 50% 50% 0 0;
    transform: translateX(-50%);
    background:
        radial-gradient(
            ellipse at 50% 0,
            rgba(74, 184, 94, 0.75),
            transparent 52%
        ),
        #1d4c2b;
}

.landing-v16-empty-prize {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 13px;
    padding: 13px;
    border: 1px solid rgba(147, 188, 241, 0.52);
    border-radius: 15px;
    background: rgba(14, 27, 51, 0.88);
}

.landing-v16-spark {
    font-size: 26px;
}

.landing-v16-empty-prize strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
}

.landing-v16-empty-prize p {
    margin: 4px 0 0;
    color: #c4ccdc;
    font-size: 10px;
    line-height: 1.4;
}

.landing-v16-badge {
    padding: 5px 9px;
    border: 1px solid rgba(201, 216, 239, 0.55);
    border-radius: 999px;
    color: #e6edf9;
    font-size: 9px;
    font-weight: 900;
}

.landing-v16-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 18px 16px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
}

.landing-v16-footer strong {
    color: #ffffff;
}

@media (max-width: 560px) {
    body.landing-body-v16 {
        padding: 0;
    }

    .landing-v16-main-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .landing-v16-header {
        padding-top: 12px;
    }

    .landing-v16-logo {
        width: 100%;
        max-height: 235px;
        margin-bottom: 3px;
        transform: scale(1.14);
    }

    .landing-v16-instruction {
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .landing-v16-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .landing-v16-entry {
        padding-left: 12px;
        padding-right: 12px;
    }

    .landing-v16-game-preview {
        margin-left: 12px;
        margin-right: 12px;
    }

    .landing-v16-form {
        grid-template-columns: 1fr;
    }

    .landing-v16-main-button {
        grid-column: auto;
    }

    .landing-v16-promo-title {
        font-size: 22px;
    }

    .landing-v16-pinang-scene {
        height: 235px;
    }
}

@media (max-height: 760px) and (max-width: 560px) {
    .landing-v16-logo {
        max-height: 190px;
    }

    .landing-v16-promo-title {
        font-size: 20px;
    }

    .landing-v16-instruction {
        margin-top: 8px;
        font-size: 10px;
    }

    .landing-v16-form input {
        min-height: 44px;
    }

    .landing-v16-main-button {
        min-height: 47px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .landing-v16-prize-ring {
        animation: v16RingSwing 2.7s ease-in-out infinite alternate;
    }

    .landing-v16-climber {
        animation: v16ClimberMove 1.8s ease-in-out infinite alternate;
    }

    .landing-v16-logo {
        animation: v16LogoFloat 2.9s ease-in-out infinite alternate;
    }
}

@keyframes v16RingSwing {
    from {
        transform: translateX(-50%) rotate(-1deg);
    }

    to {
        transform: translateX(-50%) rotate(1deg);
    }
}

@keyframes v16ClimberMove {
    from {
        margin-top: 0;
    }

    to {
        margin-top: -4px;
    }
}

@keyframes v16LogoFloat {
    from {
        margin-top: 1px;
    }

    to {
        margin-top: -3px;
    }
}

/* =========================================================
   PLAYER V17 — MODE STABIL TANPA GERAKAN OTOMATIS
   ========================================================= */

.landing-body-v16 .landing-v16-logo,
.landing-body-v16 .landing-v16-prize-ring,
.landing-body-v16 .landing-v16-climber,
.landing-body-v16 .landing-v16-flag,
.landing-body-v16 .landing-v16-moon,
.landing-body-v16 .landing-v16-stars i {
    animation: none !important;
}

.landing-body-v16 .landing-v16-logo {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    will-change: auto;
}

.landing-body-v16 .landing-v16-prize-ring {
    margin-top: 0 !important;
    transform: translateX(-50%) !important;
    will-change: auto;
}

.landing-body-v16 .landing-v16-climber {
    margin-top: 0 !important;
    transform: rotate(-6deg) !important;
    will-change: auto;
}

.landing-body-v16 .landing-v16-climber.has-image {
    margin-top: 0 !important;
    transform: translateX(-55%) !important;
}

.landing-body-v16 .landing-v16-main-card,
.landing-body-v16 .landing-v16-header,
.landing-body-v16 .landing-v16-entry,
.landing-body-v16 .landing-v16-game-preview,
.landing-body-v16 .landing-v16-pinang-scene {
    transform: none;
    animation: none !important;
}

.landing-body-v16 img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.landing-body-v16 .landing-v16-logo,
.landing-body-v16 .landing-v16-climber img {
    image-rendering: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .landing-body-v16 .landing-v16-logo,
    .landing-body-v16 .landing-v16-prize-ring,
    .landing-body-v16 .landing-v16-climber {
        animation: none !important;
    }
}

/* =========================================================
   PLAYER V18 — JUDUL & TEKS SAMBUTAN DINAMIS
   ========================================================= */

.landing-body-v16 .landing-v16-promo-title {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4px;
    overflow-wrap: anywhere;
}

.landing-body-v16 .landing-v16-promo-title strong {
    display: block;
    color: #35f6ff;
    font-size: clamp(24px, 7vw, 39px);
    line-height: 0.98;
    letter-spacing: 0.025em;
    text-align: center;
    text-transform: uppercase;
}

.landing-body-v16 .landing-v16-instruction {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 390px) {
    .landing-body-v16 .landing-v16-promo-title strong {
        font-size: clamp(21px, 6.8vw, 29px);
    }
}

/* =========================================================
   PLAYER V19 — JUDUL MERAH 3D OUTLINE PUTIH & HITAM
   ========================================================= */

.landing-body-v16 .landing-v19-title {
    width: min(100%, 510px);
    margin: 9px auto 8px;
    padding: 8px 12px 14px;
    position: relative;
    overflow: visible;
    isolation: isolate;
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Black",
        "Arial Narrow Bold",
        sans-serif;
    text-align: center;
}

.landing-body-v16 .landing-v19-title strong {
    display: inline-block;
    max-width: 100%;
    position: relative;
    z-index: 2;
    color: #f12620;
    font-size: clamp(37px, 10vw, 62px);
    font-style: italic;
    font-weight: 950;
    line-height: 0.84;
    letter-spacing: -0.045em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    transform: skewX(-5deg) rotate(-1deg);
    -webkit-text-stroke: 2.5px #ffffff;
    paint-order: stroke fill;
    text-shadow:
        1px 1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px -1px 0 #ffffff,
        0 4px 0 #171717,
        1px 5px 0 #171717,
        2px 6px 0 #171717,
        3px 7px 0 #101010,
        4px 8px 0 #080808,
        0 12px 15px rgba(0, 0, 0, 0.42);
    background:
        linear-gradient(
            180deg,
            #ff5147 0%,
            #f5231d 42%,
            #cf0b0b 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-body-v16 .landing-v19-title strong::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    color: #0d0d0d;
    -webkit-text-stroke: 9px #0d0d0d;
    paint-order: stroke fill;
    text-shadow:
        0 5px 0 #000000,
        0 9px 12px rgba(0, 0, 0, 0.48);
}

.landing-body-v16 .landing-v19-title::before,
.landing-body-v16 .landing-v19-title::after {
    content: "";
    width: 15px;
    height: 15px;
    position: absolute;
    top: 47%;
    border: 2px solid rgba(255, 255, 255, 0.62);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.72;
}

.landing-body-v16 .landing-v19-title::before {
    left: 2px;
}

.landing-body-v16 .landing-v19-title::after {
    right: 2px;
}

.landing-body-v16 .landing-v16-instruction {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 4px rgba(66, 0, 7, 0.34);
}

@media (max-width: 430px) {
    .landing-body-v16 .landing-v19-title {
        padding-left: 8px;
        padding-right: 8px;
    }

    .landing-body-v16 .landing-v19-title strong {
        font-size: clamp(31px, 9.4vw, 46px);
        -webkit-text-stroke-width: 2px;
    }

    .landing-body-v16 .landing-v19-title strong::before {
        -webkit-text-stroke-width: 7px;
    }

    .landing-body-v16 .landing-v19-title::before,
    .landing-body-v16 .landing-v19-title::after {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 350px) {
    .landing-body-v16 .landing-v19-title strong {
        font-size: 29px;
    }

    .landing-body-v16 .landing-v19-title::before,
    .landing-body-v16 .landing-v19-title::after {
        display: none;
    }
}

/* =========================================================
   PLAYER V20 — JUDUL LEBIH TEBAL & MUDAH DIBACA
   ========================================================= */

.landing-body-v16 .landing-v19-title {
    padding-bottom: 18px;
}

.landing-body-v16 .landing-v19-title strong {
    font-size: clamp(35px, 9.6vw, 60px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    -webkit-text-stroke: 3.5px #ffffff;
    text-shadow:
        1px 1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px -1px 0 #ffffff,
        0 5px 0 #121212,
        1px 6px 0 #121212,
        2px 7px 0 #121212,
        3px 8px 0 #121212,
        4px 9px 0 #090909,
        5px 10px 0 #050505,
        0 14px 18px rgba(0, 0, 0, 0.5);
}

.landing-body-v16 .landing-v19-title strong::before {
    -webkit-text-stroke: 11px #0a0a0a;
    text-shadow:
        0 6px 0 #000000,
        0 10px 14px rgba(0, 0, 0, 0.55);
}

@media (max-width: 430px) {
    .landing-body-v16 .landing-v19-title strong {
        font-size: clamp(30px, 9vw, 44px);
        line-height: 0.92;
        -webkit-text-stroke-width: 3px;
    }

    .landing-body-v16 .landing-v19-title strong::before {
        -webkit-text-stroke-width: 9px;
    }
}

/* =========================================================
   PLAYER V21 — STYLE JUDUL SEPERTI "MERDEKA"
   ========================================================= */

.landing-body-v16 .landing-v19-title {
    padding-bottom: 18px;
}

.landing-body-v16 .landing-v19-title strong {
    color: #ffffff;
    background: none !important;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-size: clamp(33px, 9.2vw, 58px);
    line-height: 0.9;
    letter-spacing: -0.035em;
    font-style: italic;
    font-weight: 950;
    transform: skewX(-5deg) rotate(-1deg);
    -webkit-text-stroke: 4px #c92a00;
    paint-order: stroke fill;
    text-shadow:
        0 1px 0 #fff6ee,
        0 2px 0 #ffd7bd,
        2px 4px 0 #9b1600,
        3px 5px 0 #9b1600,
        4px 6px 0 #9b1600,
        5px 7px 0 #7b0f00,
        6px 8px 0 #7b0f00,
        7px 9px 0 #5b0900,
        0 12px 16px rgba(59, 6, 0, 0.48);
}

.landing-body-v16 .landing-v19-title strong::before {
    color: transparent;
    -webkit-text-stroke: 8px #ff8e2b;
    paint-order: stroke fill;
    text-shadow:
        0 0 0 #ff8e2b,
        1px 2px 0 rgba(120, 16, 0, 0.55),
        0 8px 10px rgba(66, 8, 0, 0.42);
    z-index: -1;
}

.landing-body-v16 .landing-v19-title::before,
.landing-body-v16 .landing-v19-title::after {
    border-color: rgba(255, 220, 196, 0.7);
}

@media (max-width: 430px) {
    .landing-body-v16 .landing-v19-title strong {
        font-size: clamp(28px, 8.8vw, 41px);
        line-height: 0.92;
        -webkit-text-stroke-width: 3.4px;
        text-shadow:
            0 1px 0 #fff6ee,
            0 2px 0 #ffd7bd,
            2px 3px 0 #9b1600,
            3px 4px 0 #9b1600,
            4px 5px 0 #7b0f00,
            5px 6px 0 #5b0900,
            0 10px 13px rgba(59, 6, 0, 0.45);
    }

    .landing-body-v16 .landing-v19-title strong::before {
        -webkit-text-stroke-width: 7px;
    }
}

@media (max-width: 350px) {
    .landing-body-v16 .landing-v19-title strong {
        font-size: 27px;
    }
}

/* =========================================================
   PLAYER V22 — JARAK ANTARHURUF LEBIH LONGGAR
   ========================================================= */

.landing-body-v16 .landing-v19-title strong {
    letter-spacing: 0.01em;
    word-spacing: 0.04em;
    line-height: 0.96;
    padding-right: 0.06em;
}

@media (max-width: 430px) {
    .landing-body-v16 .landing-v19-title strong {
        letter-spacing: 0.015em;
        word-spacing: 0.05em;
        line-height: 0.98;
    }
}

@media (max-width: 350px) {
    .landing-body-v16 .landing-v19-title strong {
        letter-spacing: 0.02em;
        word-spacing: 0.06em;
        line-height: 1;
    }
}

/* =========================================================
   PLAYER V23 — JUDUL PUTIH SEDERHANA
   ========================================================= */

.landing-body-v16 .landing-v19-title {
    margin: 8px auto 6px;
    padding: 4px 8px 10px;
}

.landing-body-v16 .landing-v19-title::before,
.landing-body-v16 .landing-v19-title::after {
    display: none !important;
}

.landing-body-v16 .landing-v19-title strong {
    display: block;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    letter-spacing: 0.01em;
    word-spacing: normal;
    line-height: 1.08;
    font-style: normal;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
    transform: none !important;
    text-transform: uppercase;
    text-align: center;
    overflow-wrap: anywhere;
    padding-right: 0;
}

.landing-body-v16 .landing-v19-title strong::before {
    display: none !important;
    content: none !important;
}

.landing-body-v16 .landing-v16-instruction {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: none !important;
}

@media (max-width: 430px) {
    .landing-body-v16 .landing-v19-title strong {
        font-size: clamp(28px, 7.8vw, 36px);
        line-height: 1.08;
        letter-spacing: 0.01em;
    }
}

@media (min-width: 431px) {
    .landing-body-v16 .landing-v19-title strong {
        font-size: clamp(30px, 6.2vw, 42px);
    }
}

/* =========================================================
   PLAYER V24 — GAMBAR UTAMA HALAMAN PLAYER DINAMIS
   ========================================================= */

.landing-body-v16 .landing-v16-custom-preview {
    height: 255px;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #171a30 0%, #25203d 64%, #183221 100%);
}

.landing-body-v16 .landing-v16-custom-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 390px) {
    .landing-body-v16 .landing-v16-custom-preview {
        height: 235px;
    }
}

/* =========================================================
   PLAYER V25 — GAMEPLAY VERTIKAL DINAMIS
   ========================================================= */

body.gameplay-v25-body {
    min-height: 100vh;
    padding:
        max(8px, env(safe-area-inset-top))
        8px
        max(10px, env(safe-area-inset-bottom));
    background:
        linear-gradient(
            180deg,
            rgba(160, 0, 13, 0.76),
            rgba(88, 4, 19, 0.91)
        ),
        var(--custom-player-bg, none),
        linear-gradient(180deg, #d20b19, #770819);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gameplay-v25-shell {
    width: min(100%, 560px);
    margin: 0 auto;
    position: relative;
    z-index: 4;
}

.gameplay-v25-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(150, 8, 19, 0.97),
            rgba(73, 8, 24, 0.97)
        );
    box-shadow:
        0 28px 60px rgba(35, 0, 8, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.gameplay-v25-header {
    padding: 13px 15px 10px;
    text-align: center;
}

.gameplay-v25-logo {
    width: min(92%, 410px);
    max-height: 160px;
    display: block;
    margin: 0 auto 7px;
    object-fit: contain;
    filter: drop-shadow(0 10px 13px rgba(40,0,7,0.3));
}

.gameplay-v25-logo-fallback {
    display: grid;
    justify-items: center;
    margin-bottom: 8px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

.gameplay-v25-logo-fallback strong {
    font-size: 34px;
    line-height: 0.9;
}

.gameplay-v25-logo-fallback span {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 900;
}

.gameplay-v25-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(24, 9, 23, 0.32);
    color: rgba(255,255,255,0.78);
    font-size: 10px;
}

.gameplay-v25-code strong {
    color: #fff;
    letter-spacing: 0.04em;
}

.gameplay-v25-arena {
    width: calc(100% - 24px);
    height: clamp(430px, 62vh, 570px);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    margin: 0 12px;
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            #85d6f7 0%,
            #c9edfb 62%,
            #75c768 62%,
            #4aa650 100%
        );
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.42),
        0 15px 28px rgba(28,0,8,0.22);
}

.gameplay-v25-arena.has-custom-gameplay-bg {
    background:
        linear-gradient(
            rgba(0,0,0,0.02),
            rgba(0,0,0,0.02)
        ),
        var(--gameplay-v25-bg);
    background-size: cover;
    background-position: center;
}

.gameplay-v25-arena.has-custom-gameplay-bg
.gameplay-v25-fallback-sky {
    display: none;
}

.gameplay-v25-fallback-sky {
    position: absolute;
    inset: 0;
    z-index: -4;
    pointer-events: none;
}

.gameplay-v25-cloud {
    width: 86px;
    height: 28px;
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
}

.gameplay-v25-cloud::before,
.gameplay-v25-cloud::after {
    content: "";
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
}

.gameplay-v25-cloud::before {
    width: 38px;
    height: 38px;
    left: 13px;
}

.gameplay-v25-cloud::after {
    width: 48px;
    height: 48px;
    right: 9px;
}

.gameplay-v25-cloud.cloud-a {
    left: 5%;
    top: 16%;
}

.gameplay-v25-cloud.cloud-b {
    right: 4%;
    top: 30%;
    transform: scale(0.72);
}

.gameplay-v25-sun {
    width: 62px;
    height: 62px;
    position: absolute;
    right: 8%;
    top: 8%;
    border-radius: 50%;
    background: #ffd95e;
    box-shadow: 0 0 0 13px rgba(255,217,94,0.18);
}

.gameplay-v25-hill {
    position: absolute;
    bottom: 13%;
    width: 45%;
    height: 34%;
    background: rgba(89, 151, 146, 0.28);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.gameplay-v25-hill.hill-a {
    left: -8%;
}

.gameplay-v25-hill.hill-b {
    right: -7%;
}

.gameplay-v25-ground {
    width: 120%;
    height: 12%;
    position: absolute;
    left: 50%;
    bottom: -2%;
    z-index: 0;
    border-radius: 50% 50% 0 0;
    transform: translateX(-50%);
    background:
        linear-gradient(180deg, #63be59, #2b843c);
}

.gameplay-v25-pole {
    width: 17%;
    height: 69%;
    position: absolute;
    left: 50%;
    bottom: 6%;
    z-index: 3;
    transform: translateX(-50%);
    transform-origin: center bottom;
}

.gameplay-v25-pole-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(8px 8px 8px rgba(30,20,12,0.2));
}

.gameplay-v25-pole-fallback {
    width: 32%;
    height: 100%;
    margin: 0 auto;
    border-radius: 50% 50% 11px 11px;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.2),
            transparent 25%,
            transparent 72%,
            rgba(53,26,10,0.2)
        ),
        repeating-linear-gradient(
            176deg,
            #b7854a 0 18px,
            #8e5e32 18px 23px
        );
    box-shadow: 7px 8px 13px rgba(48,27,15,0.22);
}

.gameplay-v25-wheel {
    width: 76%;
    height: 24%;
    position: absolute;
    left: 50%;
    top: 3%;
    z-index: 5;
    transform: translateX(-50%);
}

.gameplay-v25-wheel-image {
    width: 100%;
    height: 70%;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 9px 9px rgba(35,21,12,0.2));
}

.gameplay-v25-wheel-fallback {
    width: 100%;
    height: 45%;
    position: absolute;
    left: 0;
    top: 11%;
    border: 11px solid #a4733e;
    border-radius: 50%;
    background: rgba(126,83,42,0.1);
    box-shadow:
        0 9px 14px rgba(50,31,18,0.24),
        inset 0 0 0 2px rgba(255,235,190,0.22);
}

.gameplay-v25-prizes {
    position: absolute;
    inset: 0;
}

.gameplay-v25-prize {
    width: 16%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 8;
    filter: drop-shadow(0 6px 6px rgba(31,18,12,0.3));
}

.gameplay-v25-prize img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gameplay-v25-prize span {
    width: 75%;
    height: 75%;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 11px;
    background: linear-gradient(145deg, #ff3547, #cf0e20);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.prize-slot-1 {
    left: 5%;
    top: 39%;
}

.prize-slot-2 {
    left: 22%;
    top: 53%;
}

.prize-slot-3 {
    left: 41.5%;
    top: 58%;
}

.prize-slot-4 {
    right: 22%;
    top: 53%;
}

.prize-slot-5 {
    right: 5%;
    top: 39%;
}

.prize-slot-6 {
    left: 42%;
    top: 7%;
}

.gameplay-v25-character {
    width: clamp(64px, 18%, 98px);
    height: clamp(82px, 19%, 120px);
    display: grid;
    place-items: center;
    position: absolute;
    left: 50%;
    bottom: 6%;
    z-index: 10;
    transform: translateX(-54%);
    transition: bottom 0.13s ease-out;
    will-change: bottom;
    pointer-events: none;
}

.gameplay-v25-character img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(7px 9px 6px rgba(20,20,22,0.28));
}

.gameplay-v25-character-fallback {
    font-size: clamp(54px, 13vw, 86px);
    filter: drop-shadow(7px 9px 6px rgba(20,20,22,0.22));
}

.gameplay-v25-border {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
    z-index: 30;
    object-fit: fill;
    pointer-events: none;
}

.gameplay-v25-confetti {
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
}

.gameplay-v25-confetti > span {
    position: absolute;
    z-index: 26;
    animation: gameplayV25Particle 0.8s ease-out forwards;
    font-size: 18px;
}

.gameplay-v25-controls {
    padding: 14px 16px 17px;
}

.gameplay-v25-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 10px;
}

.gameplay-v25-progress-row strong {
    color: #fff;
    font-size: 12px;
}

.gameplay-v25-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}

.gameplay-v25-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffbc36, #ff3d35);
    box-shadow: 0 0 12px rgba(255,96,52,0.4);
    transition: width 0.18s ease-out;
}

.gameplay-v25-description {
    max-width: 480px;
    margin: 11px auto 5px;
    color: rgba(255,255,255,0.94);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.48;
    text-align: center;
}

.gameplay-v25-status {
    min-height: 18px;
    margin-bottom: 9px;
    color: #ffd7dc;
    font-size: 10px;
    text-align: center;
}

.gameplay-v25-tap-button {
    width: 100%;
    min-height: 67px;
    display: grid;
    place-items: center;
    gap: 1px;
    padding: 9px 16px;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 16px;
    outline: 0;
    background:
        linear-gradient(180deg, #ff281d, #dd090f);
    color: #fff;
    box-shadow:
        0 10px 0 #9b0008,
        0 17px 24px rgba(35,0,6,0.3),
        inset 0 2px 0 rgba(255,255,255,0.2);
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
}

.gameplay-v25-tap-button span {
    font-size: clamp(20px, 5vw, 27px);
    font-weight: 950;
    letter-spacing: 0.01em;
}

.gameplay-v25-tap-button small {
    color: rgba(255,255,255,0.82);
    font-size: 9px;
    font-weight: 700;
}

.gameplay-v25-tap-button:active:not(:disabled) {
    transform: translateY(5px);
    box-shadow:
        0 5px 0 #9b0008,
        0 12px 18px rgba(35,0,6,0.25);
}

.gameplay-v25-tap-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.gameplay-v25-hidden-metrics {
    display: none;
}

.gameplay-v25-character.climb-pulse {
    animation: gameplayV25TapPulse 0.16s ease-out;
}

.gameplay-v25-pole.pole-shake {
    animation: gameplayV25PoleShake 0.13s ease-out;
}

@keyframes gameplayV25TapPulse {
    0% {
        transform: translateX(-54%) scale(1);
    }
    50% {
        transform: translateX(-54%) scale(1.07);
    }
    100% {
        transform: translateX(-54%) scale(1);
    }
}

@keyframes gameplayV25PoleShake {
    0%, 100% {
        transform: translateX(-50%) rotate(0);
    }
    50% {
        transform: translateX(-50%) rotate(0.5deg);
    }
}

@keyframes gameplayV25Particle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.85);
    }
    100% {
        opacity: 0;
        transform:
            translate(var(--particle-x, 0), -42px)
            scale(1.1)
            rotate(18deg);
    }
}

@media (min-width: 700px) {
    body.gameplay-v25-body {
        padding-top: 16px;
        padding-bottom: 20px;
    }

    .gameplay-v25-card {
        border-radius: 28px;
    }
}

@media (max-width: 560px) {
    body.gameplay-v25-body {
        padding: 0;
    }

    .gameplay-v25-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .gameplay-v25-header {
        padding-top: 8px;
    }

    .gameplay-v25-logo {
        width: 88%;
        max-height: 125px;
    }

    .gameplay-v25-arena {
        width: calc(100% - 18px);
        height: clamp(390px, 57vh, 500px);
        margin: 0 9px;
        border-radius: 19px;
    }

    .gameplay-v25-controls {
        padding: 12px 12px 17px;
    }
}

@media (max-width: 390px) {
    .gameplay-v25-logo {
        max-height: 105px;
    }

    .gameplay-v25-arena {
        height: clamp(365px, 54vh, 455px);
    }

    .gameplay-v25-tap-button {
        min-height: 61px;
    }

    .gameplay-v25-prize {
        width: 17%;
    }
}

@media (max-height: 720px) and (max-width: 560px) {
    .gameplay-v25-logo {
        max-height: 82px;
    }

    .gameplay-v25-code {
        padding: 4px 8px;
        font-size: 9px;
    }

    .gameplay-v25-arena {
        height: 390px;
    }

    .gameplay-v25-description {
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gameplay-v25-character,
    .gameplay-v25-progress-bar {
        transition: none;
    }

    .gameplay-v25-character.climb-pulse,
    .gameplay-v25-pole.pole-shake,
    .gameplay-v25-confetti > span {
        animation: none;
    }
}

/* =========================================================
   PLAYER V26 — ASSEMBLY RODA + HADIAH + BATANG + KARAKTER
   ========================================================= */

/*
 * All climb elements now share one coordinate system.
 * This keeps the pole connected to the wheel, prizes connected
 * to the wheel, and the character attached to the pole's right side.
 */
.gameplay-v25-arena .gameplay-v26-climb-assembly {
    width: 82%;
    height: 92%;
    position: absolute;
    left: 50%;
    top: 3%;
    z-index: 4;
    transform: translateX(-50%);
    pointer-events: none;
}

/* -------------------------
   WHEEL — master top anchor
   ------------------------- */
.gameplay-v25-arena .gameplay-v26-wheel {
    width: 100%;
    height: 25%;
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 8;
    transform: translateX(-50%);
}

.gameplay-v25-arena .gameplay-v26-wheel
.gameplay-v25-wheel-image {
    width: 100%;
    height: 76%;
    left: 0;
    top: 0;
    object-fit: contain;
    object-position: center top;
}

/*
 * Fallback ring stays inside the same wheel anchor.
 */
.gameplay-v25-arena .gameplay-v26-wheel
.gameplay-v25-wheel-fallback {
    width: 94%;
    height: 43%;
    left: 3%;
    top: 10%;
}

/* -------------------------
   PRIZES — children of wheel
   ------------------------- */
.gameplay-v25-arena .gameplay-v26-prizes {
    position: absolute;
    inset: 0;
    z-index: 12;
}

/*
 * The six prize positions use the wheel's own dimensions.
 * Therefore moving/resizing the wheel automatically moves all prizes.
 */
.gameplay-v25-arena .gameplay-v26-prizes
.gameplay-v25-prize {
    width: 15%;
    z-index: 13;
}

.gameplay-v25-arena .gameplay-v26-prizes .prize-slot-1 {
    left: 7%;
    top: 35%;
}

.gameplay-v25-arena .gameplay-v26-prizes .prize-slot-2 {
    left: 23%;
    top: 49%;
}

.gameplay-v25-arena .gameplay-v26-prizes .prize-slot-3 {
    left: 41.5%;
    top: 55%;
}

.gameplay-v25-arena .gameplay-v26-prizes .prize-slot-4 {
    right: 23%;
    top: 49%;
}

.gameplay-v25-arena .gameplay-v26-prizes .prize-slot-5 {
    right: 7%;
    top: 35%;
}

.gameplay-v25-arena .gameplay-v26-prizes .prize-slot-6 {
    left: 42.5%;
    top: 2%;
}

/* -------------------------
   POLE — overlaps wheel
   ------------------------- */
.gameplay-v25-arena .gameplay-v26-pole {
    width: 20%;
    height: 84%;
    position: absolute;
    left: 50%;
    top: 12%;
    bottom: auto;
    z-index: 5;
    transform: translateX(-50%);
    transform-origin: center top;
}

/*
 * top:12% intentionally makes the pole enter behind the wheel.
 * The wheel sits above it (z-index 8), producing a joined look.
 */
.gameplay-v25-arena .gameplay-v26-pole
.gameplay-v25-pole-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}

.gameplay-v25-arena .gameplay-v26-pole
.gameplay-v25-pole-fallback {
    width: 28%;
    height: 100%;
}

/* -------------------------
   CHARACTER — right of pole
   ------------------------- */
.gameplay-v25-arena .gameplay-v26-character {
    width: clamp(70px, 22%, 108px);
    height: clamp(88px, 22%, 132px);
    position: absolute;
    left: 50%;
    bottom: 2.5%;
    z-index: 15;

    /*
     * No horizontal movement while climbing.
     * Its left edge begins near the pole center, placing the body
     * against the right side of the pole.
     */
    transform: translateX(2%);
    transform-origin: left center;
    transition: bottom 0.13s ease-out;
}

.gameplay-v25-arena .gameplay-v26-character img {
    object-position: left center;
}

/*
 * Tap pulse keeps the same horizontal anchor.
 */
.gameplay-v25-arena .gameplay-v26-character.climb-pulse {
    animation: gameplayV26TapPulse 0.16s ease-out;
}

/*
 * The pole shake also preserves the common center anchor.
 */
.gameplay-v25-arena .gameplay-v26-pole.pole-shake {
    animation: gameplayV26PoleShake 0.13s ease-out;
}

@keyframes gameplayV26TapPulse {
    0% {
        transform: translateX(2%) scale(1);
    }
    50% {
        transform: translateX(2%) scale(1.065);
    }
    100% {
        transform: translateX(2%) scale(1);
    }
}

@keyframes gameplayV26PoleShake {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) rotate(0.35deg);
    }
}

/*
 * Disable the older V25 character/pole pulse transforms so they
 * cannot pull the V26 character back to the center.
 */
.gameplay-v25-arena .gameplay-v26-character {
    margin-top: 0 !important;
}

.gameplay-v25-arena .gameplay-v26-wheel,
.gameplay-v25-arena .gameplay-v26-pole {
    margin-top: 0 !important;
}

/* Mobile tuning */
@media (max-width: 560px) {
    .gameplay-v25-arena .gameplay-v26-climb-assembly {
        width: 88%;
        height: 93%;
        top: 2.5%;
    }

    .gameplay-v25-arena .gameplay-v26-pole {
        width: 21%;
        height: 84%;
        top: 12%;
    }

    .gameplay-v25-arena .gameplay-v26-character {
        width: clamp(66px, 22%, 94px);
        height: clamp(84px, 22%, 118px);
        left: 50%;
        transform: translateX(1%);
    }

    .gameplay-v25-arena .gameplay-v26-character.climb-pulse {
        animation-name: gameplayV26TapPulseMobile;
    }
}

@keyframes gameplayV26TapPulseMobile {
    0% {
        transform: translateX(1%) scale(1);
    }
    50% {
        transform: translateX(1%) scale(1.055);
    }
    100% {
        transform: translateX(1%) scale(1);
    }
}

@media (max-width: 390px) {
    .gameplay-v25-arena .gameplay-v26-climb-assembly {
        width: 91%;
    }

    .gameplay-v25-arena .gameplay-v26-prizes
    .gameplay-v25-prize {
        width: 15.5%;
    }

    .gameplay-v25-arena .gameplay-v26-character {
        width: clamp(61px, 21%, 86px);
        height: clamp(78px, 21%, 108px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gameplay-v25-arena .gameplay-v26-character,
    .gameplay-v25-arena .gameplay-v26-pole {
        animation: none !important;
    }
}

/* =========================================================
   PLAYER V27 — GEOMETRI PANJAT FINAL
   Roda + hadiah + batang + karakter benar-benar satu sistem
   ========================================================= */

/* Assembly nearly fills the arena height. */
.gameplay-v25-arena .gameplay-v27-climb-assembly {
    width: 78%;
    height: 96%;
    left: 50%;
    top: 1.5%;
    transform: translateX(-50%);
}

/*
 * Invisible helpers:
 * wheel anchor = center-top point
 * pole axis    = visual center line shared by wheel and pole
 */
.gameplay-v27-wheel-anchor {
    width: 4px;
    height: 4px;
    position: absolute;
    left: 50%;
    top: 13%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gameplay-v27-pole-axis {
    width: 1px;
    position: absolute;
    left: 50%;
    top: 15%;
    bottom: 2%;
    background: transparent;
    transform: translateX(-50%);
    pointer-events: none;
}

/* =========================================================
   WHEEL
   ========================================================= */
.gameplay-v25-arena .gameplay-v26-wheel {
    width: 76%;
    height: 23%;
    left: 50%;
    top: 2%;
    transform: translateX(-50%);
    z-index: 12;
}

.gameplay-v25-arena
.gameplay-v26-wheel
.gameplay-v25-wheel-image {
    width: 100%;
    height: 76%;
    top: 0;
    left: 0;
    object-fit: contain;
    object-position: center top;
}

.gameplay-v25-arena
.gameplay-v26-wheel
.gameplay-v25-wheel-fallback {
    width: 94%;
    height: 43%;
    left: 3%;
    top: 10%;
}

/* =========================================================
   SIX PRIZES
   All six are positioned RELATIVE TO THE WHEEL only.
   ========================================================= */
.gameplay-v25-arena
.gameplay-v26-prizes
.gameplay-v25-prize {
    width: 17%;
    max-width: 68px;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-1 {
    left: 4%;
    top: 38%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-2 {
    left: 20%;
    top: 52%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-3 {
    left: 36%;
    top: 58%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-4 {
    right: 30%;
    top: 58%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-5 {
    right: 14%;
    top: 52%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-6 {
    right: -1%;
    top: 38%;
}

/*
 * Remove old "slot 6 above wheel" behavior.
 * Now all six look like objects hanging from the wheel.
 */

/* =========================================================
   POLE
   Critical fix:
   Height is the main sizing reference, NOT width.
   It starts behind the wheel and continues almost to ground.
   ========================================================= */
.gameplay-v25-arena .gameplay-v26-pole {
    width: 18%;
    height: 83%;
    left: 50%;
    top: 14%;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 7;
    overflow: visible;
}

.gameplay-v25-arena
.gameplay-v26-pole
.gameplay-v25-pole-image {
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    object-fit: contain;
    object-position: center top;
    transform: translateX(-50%);
}

/*
 * Fallback trunk fills full pole height too.
 */
.gameplay-v25-arena
.gameplay-v26-pole
.gameplay-v25-pole-fallback {
    width: 31%;
    height: 100%;
    margin: 0 auto;
}

/*
 * Pole enters behind wheel.
 * Wheel is z-index 12; pole is 7, producing a natural join.
 */

/* =========================================================
   CHARACTER
   Locked to RIGHT SIDE of pole.
   JS changes ONLY bottom.
   ========================================================= */
.gameplay-v25-arena .gameplay-v26-character {
    width: clamp(72px, 22%, 108px);
    height: clamp(94px, 24%, 138px);
    left: 50%;
    bottom: 1%;
    z-index: 16;

    /*
     * Positive X offset keeps the character on pole's right edge.
     * No centering translation is used anymore.
     */
    transform: translateX(12%);
    transform-origin: left center;
}

.gameplay-v25-arena
.gameplay-v26-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/*
 * If character artwork itself has large transparent margins,
 * this slightly increases visual overlap with the pole.
 */
.gameplay-v25-arena
.gameplay-v26-character.has-tight-anchor {
    transform: translateX(4%);
}

/* Tap animation must keep the same right-side anchor. */
.gameplay-v25-arena
.gameplay-v26-character.climb-pulse {
    animation: gameplayV27TapPulse 0.16s ease-out;
}

@keyframes gameplayV27TapPulse {
    0% {
        transform: translateX(12%) scale(1);
    }
    50% {
        transform: translateX(12%) scale(1.055);
    }
    100% {
        transform: translateX(12%) scale(1);
    }
}

.gameplay-v25-arena
.gameplay-v26-pole.pole-shake {
    animation: gameplayV27PoleShake 0.13s ease-out;
}

@keyframes gameplayV27PoleShake {
    0%, 100% {
        transform: translateX(-50%) rotate(0);
    }
    50% {
        transform: translateX(-50%) rotate(0.25deg);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 560px) {
    .gameplay-v25-arena .gameplay-v27-climb-assembly {
        width: 84%;
        height: 96%;
        top: 1.5%;
    }

    .gameplay-v25-arena .gameplay-v26-wheel {
        width: 78%;
        height: 22%;
        top: 2%;
    }

    .gameplay-v25-arena .gameplay-v26-pole {
        width: 19%;
        height: 83%;
        top: 14%;
    }

    .gameplay-v25-arena .gameplay-v26-character {
        width: clamp(68px, 22%, 96px);
        height: clamp(88px, 23%, 122px);
        transform: translateX(10%);
    }

    .gameplay-v25-arena
    .gameplay-v26-character.climb-pulse {
        animation-name: gameplayV27TapPulseMobile;
    }

    .gameplay-v25-arena
    .gameplay-v26-prizes
    .gameplay-v25-prize {
        width: 17.5%;
    }
}

@keyframes gameplayV27TapPulseMobile {
    0% {
        transform: translateX(10%) scale(1);
    }
    50% {
        transform: translateX(10%) scale(1.05);
    }
    100% {
        transform: translateX(10%) scale(1);
    }
}

@media (max-width: 390px) {
    .gameplay-v25-arena .gameplay-v27-climb-assembly {
        width: 88%;
    }

    .gameplay-v25-arena .gameplay-v26-wheel {
        width: 80%;
    }

    .gameplay-v25-arena .gameplay-v26-pole {
        width: 20%;
    }

    .gameplay-v25-arena .gameplay-v26-character {
        width: clamp(62px, 21%, 87px);
        height: clamp(82px, 22%, 112px);
        transform: translateX(9%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gameplay-v25-arena .gameplay-v26-character,
    .gameplay-v25-arena .gameplay-v26-pole {
        animation: none !important;
    }
}

/* =========================================================
   PLAYER V28 — PENYEMPURNAAN VISUAL PANJAT
   Fokus:
   - Roda lebih besar & lebih menyatu dengan batang
   - Hadiah lebih rapat mengikuti roda
   - Karakter lebih menempel ke sisi kanan batang
   ========================================================= */

/* Assembly sedikit dilebarkan agar roda punya ruang visual lebih besar. */
.gameplay-v25-arena .gameplay-v27-climb-assembly {
    width: 84%;
    height: 96%;
    top: 1.2%;
}

/* =========================================================
   RODA — diperbesar agar proporsional dengan batang
   ========================================================= */
.gameplay-v25-arena .gameplay-v26-wheel {
    width: 90%;
    height: 25%;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 14;
}

.gameplay-v25-arena
.gameplay-v26-wheel
.gameplay-v25-wheel-image {
    width: 100%;
    height: 83%;
    top: 0;
    left: 0;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 6px 7px rgba(44, 20, 7, 0.22));
}

.gameplay-v25-arena
.gameplay-v26-wheel
.gameplay-v25-wheel-fallback {
    width: 96%;
    height: 48%;
    left: 2%;
    top: 8%;
}

/* =========================================================
   HADIAH — dirapatkan ke roda, bukan menggantung jauh
   Layout dibuat simetris mengitari roda.
   ========================================================= */
.gameplay-v25-arena
.gameplay-v26-prizes
.gameplay-v25-prize {
    width: 15.5%;
    max-width: 68px;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-1 {
    left: 9%;
    top: 30%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-2 {
    left: 23%;
    top: 49%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-3 {
    left: 40%;
    top: 56%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-4 {
    right: 40%;
    top: 56%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-5 {
    right: 23%;
    top: 49%;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-6 {
    right: 9%;
    top: 30%;
}

/* =========================================================
   BATANG — sedikit lebih lebar dan lebih "masuk" ke bawah roda
   agar sambungan roda↔batang terasa satu objek.
   ========================================================= */
.gameplay-v25-arena .gameplay-v26-pole {
    width: 20%;
    height: 84%;
    top: 11.8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
}

.gameplay-v25-arena
.gameplay-v26-pole
.gameplay-v25-pole-image {
    height: 100% !important;
    width: auto !important;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.08));
}

.gameplay-v25-arena
.gameplay-v26-pole
.gameplay-v25-pole-fallback {
    width: 33%;
}

/* =========================================================
   KARAKTER — digeser lebih dekat ke batang sebelah kanan
   supaya benar-benar terlihat menempel / memanjat.
   ========================================================= */
.gameplay-v25-arena .gameplay-v26-character {
    width: clamp(74px, 22%, 110px);
    height: clamp(96px, 24%, 140px);
    left: 50%;
    bottom: 1%;
    z-index: 16;
    transform: translateX(-2%);
    transform-origin: left center;
}

.gameplay-v25-arena
.gameplay-v26-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Pulse animation mempertahankan anchor yang baru. */
.gameplay-v25-arena
.gameplay-v26-character.climb-pulse {
    animation: gameplayV28TapPulse 0.16s ease-out;
}

@keyframes gameplayV28TapPulse {
    0% {
        transform: translateX(-2%) scale(1);
    }
    50% {
        transform: translateX(-2%) scale(1.05);
    }
    100% {
        transform: translateX(-2%) scale(1);
    }
}

.gameplay-v25-arena
.gameplay-v26-pole.pole-shake {
    animation: gameplayV28PoleShake 0.13s ease-out;
}

@keyframes gameplayV28PoleShake {
    0%, 100% {
        transform: translateX(-50%) rotate(0);
    }
    50% {
        transform: translateX(-50%) rotate(0.2deg);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 560px) {
    .gameplay-v25-arena .gameplay-v27-climb-assembly {
        width: 88%;
        top: 1.2%;
    }

    .gameplay-v25-arena .gameplay-v26-wheel {
        width: 94%;
        height: 25%;
        top: 1%;
    }

    .gameplay-v25-arena .gameplay-v26-pole {
        width: 21%;
        height: 84%;
        top: 11.8%;
    }

    .gameplay-v25-arena .gameplay-v26-character {
        width: clamp(70px, 22%, 98px);
        height: clamp(90px, 23%, 126px);
        transform: translateX(-5%);
    }

    .gameplay-v25-arena
    .gameplay-v26-character.climb-pulse {
        animation-name: gameplayV28TapPulseMobile;
    }

    .gameplay-v25-arena
    .gameplay-v26-prizes
    .gameplay-v25-prize {
        width: 16%;
    }
}

@keyframes gameplayV28TapPulseMobile {
    0% {
        transform: translateX(-5%) scale(1);
    }
    50% {
        transform: translateX(-5%) scale(1.045);
    }
    100% {
        transform: translateX(-5%) scale(1);
    }
}

@media (max-width: 390px) {
    .gameplay-v25-arena .gameplay-v27-climb-assembly {
        width: 90%;
    }

    .gameplay-v25-arena .gameplay-v26-wheel {
        width: 96%;
    }

    .gameplay-v25-arena .gameplay-v26-pole {
        width: 22%;
    }

    .gameplay-v25-arena .gameplay-v26-character {
        width: clamp(64px, 21%, 89px);
        height: clamp(84px, 22%, 114px);
        transform: translateX(-7%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gameplay-v25-arena .gameplay-v26-character,
    .gameplay-v25-arena .gameplay-v26-pole {
        animation: none !important;
    }
}

/* =========================================================
   PLAYER V29 — RODA LEBIH PROPORSIONAL & SEDIKIT NAIK
   ========================================================= */

.gameplay-v25-arena .gameplay-v26-wheel {
    width: 96% !important;
    height: 24% !important;
    top: -1.5% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.gameplay-v25-arena
.gameplay-v26-wheel
.gameplay-v25-wheel-image {
    width: 100% !important;
    height: 88% !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
}

/* Batang tetap masuk ke belakang roda agar terlihat menyatu. */
.gameplay-v25-arena .gameplay-v26-pole {
    top: 10.8% !important;
}

/* Hadiah tetap menjadi child roda dan sedikit dirapatkan. */
.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-1 {
    left: 9% !important;
    top: 32% !important;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-2 {
    left: 23% !important;
    top: 48% !important;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-3 {
    left: 40% !important;
    top: 54% !important;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-4 {
    right: 40% !important;
    top: 54% !important;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-5 {
    right: 23% !important;
    top: 48% !important;
}

.gameplay-v25-arena
.gameplay-v26-prizes
.prize-slot-6 {
    right: 9% !important;
    top: 32% !important;
}

@media (max-width: 560px) {
    .gameplay-v25-arena .gameplay-v26-wheel {
        width: 98% !important;
        height: 24% !important;
        top: -1.8% !important;
    }

    .gameplay-v25-arena .gameplay-v26-pole {
        top: 10.6% !important;
    }
}

@media (max-width: 390px) {
    .gameplay-v25-arena .gameplay-v26-wheel {
        width: 100% !important;
        height: 23.5% !important;
        top: -2% !important;
    }

    .gameplay-v25-arena .gameplay-v26-pole {
        top: 10.4% !important;
    }
}

/* =========================================================
   PLAYER V30 — POHON + RODA + HADIAH = SATU FILE
   ========================================================= */

/*
 * The combined image is expected to contain:
 * - pole/trunk centered vertically
 * - wheel already attached at the top
 * - all visual prizes already placed on/around the wheel
 *
 * Character remains a separate layer.
 */
.gameplay-v25-arena .gameplay-v30-climb-assembly {
    width: 88%;
    height: 96%;
    position: absolute;
    left: 50%;
    top: 1.5%;
    z-index: 5;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Combined tree image. */
.gameplay-v25-arena .gameplay-v30-tree-complete {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    position: absolute;
    inset: 0;
    z-index: 7;
}

.gameplay-v25-arena .gameplay-v30-tree-complete > img {
    width: auto;
    height: 98%;
    max-width: 100%;
    max-height: 98%;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(3px 5px 5px rgba(31, 20, 12, 0.15));
}

/*
 * Invisible climb track.
 * Its center line matches the expected center of the trunk.
 * This controls only the vertical movement range.
 */
.gameplay-v25-arena .gameplay-v30-climb-track {
    width: 10%;
    position: absolute;
    left: 50%;
    top: 17%;
    bottom: 4%;
    z-index: 8;
    transform: translateX(-50%);
    background: transparent;
    pointer-events: none;
}

/*
 * Character is separate and stays on the RIGHT SIDE of the
 * center pole. JS only changes "bottom".
 */
.gameplay-v25-arena .gameplay-v30-character {
    width: clamp(76px, 22%, 112px);
    height: clamp(96px, 24%, 142px);
    position: absolute;
    left: 50%;
    bottom: 1%;
    z-index: 16;
    transform: translateX(-18%);
    transform-origin: left center;
    transition: bottom 0.13s ease-out;
    pointer-events: none;
}

.gameplay-v25-arena .gameplay-v30-character img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(5px 7px 5px rgba(24, 20, 25, 0.25));
}

.gameplay-v25-arena
.gameplay-v30-character.climb-pulse {
    animation: gameplayV30TapPulse 0.16s ease-out;
}

@keyframes gameplayV30TapPulse {
    0% {
        transform: translateX(-18%) scale(1);
    }
    50% {
        transform: translateX(-18%) scale(1.05);
    }
    100% {
        transform: translateX(-18%) scale(1);
    }
}

/* Fallback only if no complete tree image has been uploaded yet. */
.gameplay-v30-tree-fallback {
    width: 60%;
    height: 94%;
    position: relative;
}

.gameplay-v30-fallback-wheel {
    width: 100%;
    height: 12%;
    position: absolute;
    left: 0;
    top: 4%;
    z-index: 3;
    border: 10px solid #a97842;
    border-radius: 50%;
    background: rgba(210, 147, 59, 0.18);
}

.gameplay-v30-fallback-pole {
    width: 12%;
    height: 84%;
    position: absolute;
    left: 50%;
    top: 10%;
    border-radius: 50% 50% 10px 10px;
    transform: translateX(-50%);
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.18),
            transparent 25%,
            transparent 72%,
            rgba(53,26,10,0.2)
        ),
        repeating-linear-gradient(
            176deg,
            #b7854a 0 18px,
            #8e5e32 18px 23px
        );
}

/* Mobile */
@media (max-width: 560px) {
    .gameplay-v25-arena .gameplay-v30-climb-assembly {
        width: 92%;
        height: 96%;
        top: 1.5%;
    }

    .gameplay-v25-arena .gameplay-v30-tree-complete > img {
        height: 98%;
        max-height: 98%;
    }

    .gameplay-v25-arena .gameplay-v30-character {
        width: clamp(70px, 22%, 100px);
        height: clamp(90px, 23%, 128px);
        transform: translateX(-22%);
    }

    .gameplay-v25-arena
    .gameplay-v30-character.climb-pulse {
        animation-name: gameplayV30TapPulseMobile;
    }
}

@keyframes gameplayV30TapPulseMobile {
    0% {
        transform: translateX(-22%) scale(1);
    }
    50% {
        transform: translateX(-22%) scale(1.045);
    }
    100% {
        transform: translateX(-22%) scale(1);
    }
}

@media (max-width: 390px) {
    .gameplay-v25-arena .gameplay-v30-climb-assembly {
        width: 94%;
    }

    .gameplay-v25-arena .gameplay-v30-character {
        width: clamp(64px, 21%, 90px);
        height: clamp(84px, 22%, 116px);
        transform: translateX(-24%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gameplay-v25-arena .gameplay-v30-character {
        transition: none;
        animation: none !important;
    }
}

/* =========================================================
   PLAYER V31 — POPUP HADIAH FINAL
   ========================================================= */

html.prize-popup-v31-open,
body.prize-popup-v31-open {
    overflow: hidden !important;
}

.prize-popup-v31 {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99990;
    align-items: center;
    justify-content: center;
    padding:
        max(14px, env(safe-area-inset-top))
        12px
        max(14px, env(safe-area-inset-bottom));
}

.prize-popup-v31.show {
    display: flex;
}

.prize-popup-v31-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 22, 0.72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.prize-popup-v31-card {
    width: min(100%, 420px);
    max-height: calc(100vh - 28px);
    overflow: auto;
    position: relative;
    z-index: 2;
    padding: 22px 20px 19px;
    border: 1px solid rgba(158, 198, 255, 0.75);
    border-radius: 21px;
    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(92, 88, 183, 0.2),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            rgba(29, 19, 43, 0.98),
            rgba(8, 18, 37, 0.98)
        );
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #fff;
    text-align: center;
}

.prize-popup-v31-sparkles {
    position: absolute;
    left: 22px;
    top: 77%;
    font-size: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 222, 101, 0.45));
}

.prize-popup-v31-card h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
}

.prize-popup-v31-gem {
    margin: 13px 0 4px;
    color: #45aaff;
    font-size: 41px;
    line-height: 1;
    text-shadow:
        0 0 15px rgba(57, 157, 255, 0.72),
        0 5px 0 rgba(20, 73, 150, 0.42);
    transform: rotate(45deg) scaleX(0.78);
}

.prize-popup-v31-image-wrap {
    width: 185px;
    height: 165px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    position: relative;
}

.prize-popup-v31-image-wrap::before {
    content: "";
    width: 145px;
    height: 145px;
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 203, 55, 0.19),
            transparent 68%
        );
    transform: translate(-50%, -50%);
}

.prize-popup-v31-image-wrap img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.35));
}

.prize-popup-v31-image-placeholder {
    position: relative;
    z-index: 2;
    font-size: 86px;
}

.prize-popup-v31-value {
    display: block;
    margin-top: -3px;
    color: #f6f0c5;
    font-size: 18px;
}

.prize-popup-v31-name {
    margin: 4px 0 0;
    color: #fff;
    font-size: 15px;
}

.prize-popup-v31-name:empty {
    display: none;
}

.prize-popup-v31-description {
    min-height: 18px;
    margin: 5px auto 8px;
    color: #cbd3e4;
    font-size: 12px;
    line-height: 1.45;
}

.prize-popup-v31-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    border: 1px solid #4bd7ff;
    border-radius: 999px;
    color: #63e3ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.prize-popup-v31-reminder {
    max-width: 340px;
    margin: 15px auto 11px;
    color: #f1f3f8;
    font-size: 11px;
    line-height: 1.45;
}

.prize-popup-v31-status {
    min-height: 18px;
    margin-bottom: 8px;
    color: #aebbd0;
    font-size: 10px;
}

.prize-popup-v31-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(135deg, #6b58ff, #876cff);
    color: #fff;
    box-shadow:
        0 11px 24px rgba(91, 75, 255, 0.33),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.prize-popup-v31-submit:disabled {
    cursor: wait;
    opacity: 0.55;
}

.prize-popup-v31-submit.processing {
    animation: prizePopupV31Pulse 0.9s ease-in-out infinite alternate;
}

@keyframes prizePopupV31Pulse {
    from {
        filter: brightness(0.92);
    }
    to {
        filter: brightness(1.12);
    }
}

@media (max-width: 390px) {
    .prize-popup-v31-card {
        padding: 18px 15px 16px;
        border-radius: 18px;
    }

    .prize-popup-v31-card h2 {
        font-size: 21px;
    }

    .prize-popup-v31-image-wrap {
        width: 155px;
        height: 145px;
    }

    .prize-popup-v31-image-placeholder {
        font-size: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prize-popup-v31-submit.processing {
        animation: none;
    }
}

/* =========================================================
   V45 — POPUP HADIAH: USERNAME + KODE GAME
   ========================================================= */

.prize-popup-v45-player-info {
    width: 100%;
    display: grid;
    gap: 0;
    margin: 14px auto 4px;
    overflow: hidden;
    border: 1px solid rgba(123, 158, 215, 0.28);
    border-radius: 13px;
    background: rgba(7, 16, 34, 0.46);
}

.prize-popup-v45-info-row {
    min-height: 43px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-align: left;
}

.prize-popup-v45-info-row + .prize-popup-v45-info-row {
    border-top: 1px solid rgba(123, 158, 215, 0.16);
}

.prize-popup-v45-info-row > span {
    color: #96a4bb;
    font-size: 10px;
    font-weight: 700;
}

.prize-popup-v45-info-row > strong,
.prize-popup-v45-info-row > code {
    min-width: 0;
    overflow: hidden;
    color: #f7f9ff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prize-popup-v45-info-row > code {
    justify-self: end;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.3);
    color: #8de7ff;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    letter-spacing: 0.02em;
}

.prize-popup-v31-badge {
    padding-left: 13px;
    padding-right: 13px;
}

@media (max-width: 390px) {
    .prize-popup-v45-info-row {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .prize-popup-v45-info-row > strong,
    .prize-popup-v45-info-row > code {
        font-size: 11px;
    }
}

/* =========================================================
   V46 — ALERT PLAYER TEKS PUTIH
   ========================================================= */
.player-alert.success,
.player-alert.danger,
.player-alert.maintenance {
    color: #ffffff;
}

/* =========================================================
   V47 — ALERT PLAYER PUTIH + CACHE FIX
   ========================================================= */

/*
 * Paksa semua teks alert menjadi putih.
 * !important dipakai untuk mengalahkan rule lama/cascade lain.
 */
.player-alert,
.player-alert.danger,
.player-alert.success,
.player-alert.maintenance,
.player-alert *,
.player-alert.danger *,
.player-alert.success *,
.player-alert.maintenance * {
    color: #ffffff !important;
}

/* Buat teks lebih tegas dan mudah dibaca. */
.player-alert {
    font-weight: 650;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.38);
}

/* Error */
.player-alert.danger {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(82, 8, 20, 0.52) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Success */
.player-alert.success {
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    background: rgba(8, 66, 46, 0.50) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Maintenance / warning */
.player-alert.maintenance {
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    background: rgba(91, 58, 5, 0.52) !important;
    color: #ffffff !important;
}

/* Kalau teks ter-wrap dalam span/p/strong, tetap putih. */
.player-alert span,
.player-alert p,
.player-alert strong,
.player-alert small {
    color: #ffffff !important;
}

/* =========================================================
   V48 — TEKS BANTUAN USERNAME/KODE JADI PUTIH
   ========================================================= */

.security-note {
    color: #ffffff !important;
    font-weight: 650;
    opacity: 1 !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.38);
}

/* Kompatibilitas jika template memakai class landing lama. */
.landing-v14-security-note,
.landing-body-v15 .landing-v14-security-note {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.38);
}
