.svg-game {
    --svg-navy: #08233f;
    --svg-blue: #1267ff;
    --svg-sky: #62d7ff;
    --svg-sea: #0575d6;
    --svg-deep: #064e8c;
    --svg-foam: #eafaff;
    --svg-sand: #ffd77b;
    --svg-leaf: #16a35b;
    --svg-coral: #ff694d;
    --svg-gold: #ffc94d;
    --svg-white: #ffffff;
    position: relative;
    isolation: isolate;
    max-width: 1080px;
    margin: 28px auto;
    overflow: hidden;
    color: var(--svg-navy);
    background: linear-gradient(180deg, #f8fdff 0%, #eef8ff 100%);
    border: 1px solid rgba(8, 35, 63, 0.08);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(8, 35, 63, 0.14);
    font-family: inherit;
}

.svg-game * {
    box-sizing: border-box;
}

.svg-game__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: clamp(22px, 4vw, 38px);
    padding-bottom: 18px;
}

.svg-game__eyebrow,
.svg-game h2,
.svg-game p {
    margin: 0;
}

.svg-game__eyebrow {
    margin-bottom: 8px;
    color: var(--svg-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.svg-game h2 {
    max-width: 760px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.svg-game__header p:last-child {
    max-width: 760px;
    margin-top: 12px;
    color: #4c6075;
    font-size: 16px;
    line-height: 1.65;
}

.svg-game__badge {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    color: #08233f;
    background: radial-gradient(circle at 34% 26%, #fff5cf 0 18%, var(--svg-gold) 19% 100%);
    border: 5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 16px 40px rgba(8, 35, 63, 0.16);
    transform: rotate(6deg);
}

.svg-game__badge span,
.svg-game__badge strong {
    display: block;
    line-height: 1;
}

.svg-game__badge span {
    font-size: 12px;
    font-weight: 800;
}

.svg-game__badge strong {
    font-size: 22px;
    font-weight: 950;
}

.svg-game__panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.7fr);
    gap: 16px;
    align-items: stretch;
    padding: 0 clamp(22px, 4vw, 38px) 22px;
}

.svg-game__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.svg-game__form label {
    display: grid;
    gap: 7px;
    color: #466077;
    font-size: 13px;
    font-weight: 850;
}

.svg-game__form input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    color: var(--svg-navy);
    background: var(--svg-white);
    border: 1px solid rgba(8, 35, 63, 0.12);
    border-radius: 8px;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(8, 35, 63, 0.03);
}

.svg-game__form input:focus {
    outline: 3px solid rgba(18, 103, 255, 0.18);
    border-color: var(--svg-blue);
}

.svg-game__form button,
.svg-game__copy {
    min-height: 50px;
    padding: 0 18px;
    color: var(--svg-white);
    background: linear-gradient(135deg, var(--svg-blue), #00a3ff);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(18, 103, 255, 0.24);
}

.svg-game__status {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 14px;
    color: #456074;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(8, 35, 63, 0.1);
    border-radius: 8px;
    line-height: 1.45;
}

.svg-game__ocean {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #9fe7ff 0%, #7bdcff 33%, var(--svg-sea) 34%, var(--svg-deep) 100%);
}

.svg-game__sun {
    position: absolute;
    top: 34px;
    right: 9%;
    width: 88px;
    height: 88px;
    background: #ffd75f;
    border-radius: 50%;
    box-shadow: 0 0 0 14px rgba(255, 215, 95, 0.2), 0 0 50px rgba(255, 215, 95, 0.55);
}

.svg-game__cloud {
    position: absolute;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    animation: svg-cloud 16s linear infinite;
}

.svg-game__cloud::before,
.svg-game__cloud::after {
    content: "";
    position: absolute;
    bottom: 7px;
    background: inherit;
    border-radius: 50%;
}

.svg-game__cloud::before {
    left: 20px;
    width: 34px;
    height: 34px;
}

.svg-game__cloud::after {
    right: 20px;
    width: 44px;
    height: 44px;
}

.svg-game__cloud--one {
    top: 54px;
    left: 8%;
    width: 118px;
}

.svg-game__cloud--two {
    top: 110px;
    left: 44%;
    width: 96px;
    animation-duration: 22s;
}

.svg-game__wave {
    position: absolute;
    right: -120px;
    left: -120px;
    height: 90px;
    background:
        radial-gradient(44px 26px at 44px 38px, rgba(255, 255, 255, 0.7) 0 45%, transparent 46%) repeat-x;
    background-size: 112px 90px;
    opacity: 0.75;
    animation: svg-wave 7s linear infinite;
}

.svg-game__wave--back {
    top: 184px;
    opacity: 0.38;
}

.svg-game__wave--front {
    bottom: 28px;
    animation-duration: 4.8s;
}

.svg-game__ship {
    position: absolute;
    left: 7%;
    bottom: 70px;
    z-index: 4;
    width: 132px;
    height: 112px;
    transform: translate3d(0, 0, 0);
    transition: left 1100ms cubic-bezier(.2,.9,.2,1), bottom 1100ms cubic-bezier(.2,.9,.2,1);
    animation: svg-bob 2.5s ease-in-out infinite;
}

.svg-game__ship.is-sailing {
    animation: svg-bob 900ms ease-in-out infinite;
}

.svg-game__mast {
    position: absolute;
    left: 61px;
    bottom: 38px;
    width: 7px;
    height: 72px;
    background: #7a4d29;
    border-radius: 6px;
}

.svg-game__sail {
    position: absolute;
    left: 66px;
    bottom: 50px;
    width: 58px;
    height: 64px;
    background: linear-gradient(135deg, #ffffff, #dff8ff);
    clip-path: polygon(0 0, 100% 54%, 0 100%);
    box-shadow: inset -8px -10px 0 rgba(18, 103, 255, 0.08);
}

.svg-game__hull {
    position: absolute;
    left: 10px;
    right: 8px;
    bottom: 18px;
    height: 38px;
    background: linear-gradient(180deg, #ff7b50, #c94330);
    border: 4px solid #732716;
    border-radius: 10px 10px 38px 38px;
}

.svg-game__hull::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #ffdd86;
    border: 2px solid #732716;
    border-radius: 50%;
    box-shadow: 30px 0 0 #ffdd86, 60px 0 0 #ffdd86;
}

.svg-game__islands {
    position: absolute;
    inset: 132px 28px 30px;
    display: grid;
    grid-template-columns: repeat(var(--island-count, 4), minmax(120px, 1fr));
    gap: 14px;
    align-items: end;
    z-index: 5;
}

.svg-game__island {
    position: relative;
    display: grid;
    place-items: end center;
    min-height: 190px;
    padding: 0 8px 12px;
    color: var(--svg-navy);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease;
}

.svg-game__island:disabled {
    cursor: not-allowed;
    filter: grayscale(0.55);
    opacity: 0.62;
}

.svg-game__island:not(:disabled):hover,
.svg-game__island.is-selected {
    transform: translateY(-8px);
}

.svg-game__sand {
    display: block;
    width: min(148px, 100%);
    height: 56px;
    background: radial-gradient(ellipse at center, #ffe29a 0 58%, #e7a94a 60% 100%);
    border: 3px solid rgba(112, 72, 20, 0.28);
    border-radius: 50%;
    box-shadow: 0 18px 0 rgba(0, 72, 126, 0.18);
}

.svg-game__palm {
    position: absolute;
    bottom: 56px;
    left: 50%;
    width: 12px;
    height: 74px;
    background: linear-gradient(90deg, #875023, #b57738);
    border-radius: 8px;
    transform: translateX(-50%) rotate(5deg);
}

.svg-game__palm::before,
.svg-game__palm::after {
    content: "";
    position: absolute;
    top: -21px;
    width: 64px;
    height: 35px;
    background: var(--svg-leaf);
    border-radius: 90% 10% 90% 10%;
}

.svg-game__palm::before {
    left: -52px;
    transform: rotate(-18deg);
}

.svg-game__palm::after {
    left: 4px;
    transform: rotate(30deg) scaleX(-1);
}

.svg-game__island-name {
    position: relative;
    z-index: 2;
    display: inline-flex;
    justify-content: center;
    max-width: 150px;
    min-height: 34px;
    margin-top: -16px;
    padding: 7px 10px;
    color: #073459;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(8, 35, 63, 0.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.svg-game__result {
    display: grid;
    gap: 12px;
    padding: 22px clamp(22px, 4vw, 38px) 28px;
    background: #ffffff;
}

.svg-game__result[hidden] {
    display: none;
}

.svg-game__result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    color: #31475f;
    background: #f8fcff;
    border: 1px solid rgba(8, 35, 63, 0.1);
    border-radius: 8px;
}

.svg-game__result-card h3,
.svg-game__result-card p {
    margin: 0;
}

.svg-game__result-card h3 {
    color: var(--svg-navy);
    font-size: 22px;
    line-height: 1.2;
}

.svg-game__result-card > div:last-child {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.svg-game__voucher {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    color: #07294a;
    background: linear-gradient(135deg, #fff2bd, var(--svg-gold));
    border: 1px solid #e5a727;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
}

.svg-game__copy {
    width: fit-content;
}

.svg-game.is-ready .svg-game__ocean {
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.28);
}

@keyframes svg-wave {
    from { transform: translateX(0); }
    to { transform: translateX(112px); }
}

@keyframes svg-cloud {
    0% { transform: translateX(-14px); }
    50% { transform: translateX(22px); }
    100% { transform: translateX(-14px); }
}

@keyframes svg-bob {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

@media (max-width: 760px) {
    .svg-game__header,
    .svg-game__panel,
    .svg-game__result-card {
        grid-template-columns: 1fr;
    }

    .svg-game__badge {
        display: none;
    }

    .svg-game__form {
        grid-template-columns: 1fr;
    }

    .svg-game__ocean {
        min-height: 620px;
    }

    .svg-game__islands {
        inset: 110px 18px 24px;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .svg-game__island {
        min-height: 168px;
    }

    .svg-game__ship {
        left: 5%;
        bottom: 26px;
        width: 116px;
        transform: scale(0.9);
    }
}

@media (max-width: 460px) {
    .svg-game {
        margin: 18px auto;
    }

    .svg-game__islands {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .svg-game__ocean {
        min-height: 820px;
    }

    .svg-game__ship {
        width: 104px;
    }

    .svg-game__voucher {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

/* Modern interaction layer and the locked-to-ready game flow. */
.svg-game {
    max-width: 1120px;
    border: 1px solid rgba(9, 45, 73, 0.1);
    border-radius: 20px;
    background: #f8fcff;
    box-shadow: 0 28px 80px rgba(7, 54, 91, 0.16);
}

.svg-game__header {
    padding: clamp(28px, 5vw, 54px) clamp(24px, 5vw, 64px) 22px;
}

.svg-game__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 0 11px;
    color: #007f9a;
    background: #d9f8fb;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.svg-game h2 {
    font-size: clamp(31px, 5vw, 58px);
    letter-spacing: -0.02em;
}

.svg-game__badge {
    width: 118px;
    height: 118px;
    border-color: #f8fcff;
    box-shadow: 0 18px 36px rgba(249, 139, 63, 0.26);
}

.svg-game__steps {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 clamp(24px, 5vw, 64px) 22px;
    color: #89a0b1;
    font-size: 12px;
    font-weight: 850;
}

.svg-game__steps span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.svg-game__steps b {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #89a0b1;
    background: #e8f1f5;
    border-radius: 50%;
}

.svg-game__steps span.is-active,
.svg-game__steps span.is-done {
    color: #0a718c;
}

.svg-game__steps span.is-active b,
.svg-game__steps span.is-done b {
    color: #fff;
    background: #0a9fb5;
}

.svg-game__steps i {
    width: 34px;
    height: 1px;
    background: #d5e4eb;
}

.svg-game__panel {
    padding: 0 clamp(24px, 5vw, 64px) 26px;
}

.svg-game__form input,
.svg-game__form button,
.svg-game__status {
    min-height: 56px;
}

.svg-game__form input {
    border-radius: 12px;
    border-color: #cfe1e9;
}

.svg-game__form button {
    border-radius: 12px;
    background: linear-gradient(135deg, #f26e45, #e34836);
    box-shadow: 0 12px 24px rgba(227, 72, 54, 0.23);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.svg-game__form button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(227, 72, 54, 0.3);
}

.svg-game__form button:disabled {
    cursor: default;
    opacity: 0.68;
}

.svg-game__status {
    border-radius: 12px;
    background: #edf8fa;
    border-color: #c9e9ee;
}

.svg-game__ocean {
    min-height: 490px;
    background: linear-gradient(180deg, #a6ebf0 0%, #57cfe1 32%, #087fb7 33%, #075584 100%);
}

.svg-game__ocean::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,0.18), transparent 35%, rgba(2,42,75,0.16));
}

.svg-game__lock {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 9px;
    color: #fff;
    text-align: center;
    background: rgba(3, 47, 78, 0.3);
    backdrop-filter: blur(3px);
}

.svg-game__lock[hidden] {
    display: none;
}

.svg-game__lock-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.48);
    border-radius: 50%;
    font-size: 21px;
}

.svg-game__lock strong {
    font-size: 19px;
}

.svg-game__lock small {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
}

.svg-game__route-help {
    position: absolute;
    right: 20px;
    bottom: 14px;
    left: 20px;
    z-index: 7;
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    text-align: center;
}

.svg-game__island:not(:disabled) .svg-game__island-name {
    box-shadow: 0 8px 18px rgba(1, 45, 76, 0.2);
}

.svg-game__result {
    padding: 26px clamp(24px, 5vw, 64px) 34px;
}

.svg-game__result-card {
    border-radius: 16px;
    border-color: #cde5ec;
    box-shadow: 0 14px 30px rgba(7, 54, 91, 0.08);
}

@media (max-width: 600px) {
    .svg-game__steps {
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 18px;
    }

    .svg-game__steps i {
        width: 16px;
        flex: 0 0 16px;
    }

    .svg-game__steps span {
        font-size: 11px;
    }
}

/* Full-frame game presentation. */
.svg-game {
    min-height: 680px;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    background: #062f55;
    box-shadow: 0 32px 100px rgba(2, 32, 58, 0.3);
}

.svg-game__header,
.svg-game__steps {
    display: none;
}

.svg-game__ocean {
    min-height: 680px;
    background-image: linear-gradient(180deg, rgba(2, 47, 82, 0.03), rgba(0, 41, 76, 0.18)), url("../images/ocean-bg.png");
    background-position: center;
    background-size: cover;
}

.svg-game__ocean::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 50, 86, 0.06) 0%, transparent 44%, rgba(1, 35, 69, 0.44) 100%);
}

.svg-game__ocean::after {
    z-index: 2;
    background: repeating-linear-gradient(165deg, transparent 0 58px, rgba(255,255,255,0.055) 59px 61px, transparent 62px 112px);
    mix-blend-mode: screen;
    opacity: 0.6;
}

.svg-game__sun,
.svg-game__cloud,
.svg-game__wave {
    display: none;
}

.svg-game__hud {
    position: absolute;
    top: 24px;
    right: 26px;
    z-index: 12;
    display: grid;
    justify-items: center;
    min-width: 98px;
    padding: 9px 15px 11px;
    color: #fff;
    background: rgba(2, 42, 75, 0.46);
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(1, 38, 67, 0.2);
    backdrop-filter: blur(12px);
}

.svg-game__hud-label {
    color: rgba(255,255,255,0.68);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.svg-game__hud strong {
    color: #ffe38c;
    font-size: 28px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.svg-game.is-countdown .svg-game__hud strong {
    animation: svg-timer-pulse 1s ease-in-out infinite;
}

.svg-game__lock {
    background: rgba(2, 36, 66, 0.16);
}

.svg-game__lock-icon {
    color: #ffe695;
    background: rgba(255, 230, 149, 0.18);
}

.svg-game__ship {
    z-index: 10;
    filter: drop-shadow(0 16px 10px rgba(0, 38, 67, 0.4));
}

.svg-game__islands {
    z-index: 9;
    inset: 214px 30px 84px;
}

.svg-game__island-name {
    color: #fff;
    background: rgba(2, 47, 78, 0.58);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 8px 18px rgba(1, 31, 56, 0.3);
    backdrop-filter: blur(7px);
}

.svg-game__route-help {
    bottom: 24px;
    z-index: 11;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0, 26, 50, 0.4);
}

.svg-game:not(.is-playing) .svg-game__panel {
    top: 50%;
    right: 50%;
    left: auto;
    width: min(440px, calc(100% - 36px));
    padding: 30px;
    transform: translate(50%, -50%);
    background: rgba(250, 254, 255, 0.96);
    border-radius: 24px;
}

.svg-game:not(.is-playing) .svg-game__panel::before {
    color: #073c5e;
    font-size: 25px;
    text-align: center;
}

.svg-game:not(.is-playing) .svg-game__panel::after {
    margin-top: 15px;
    text-align: center;
}

.svg-game__result {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 27, 52, 0.56);
    backdrop-filter: blur(10px);
}

.svg-game__result-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    gap: 18px;
    padding: 36px 30px 30px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #08395e, #061f43);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 26px;
    box-shadow: 0 26px 80px rgba(0, 19, 39, 0.5);
    text-align: center;
}

.svg-game__result-card::before,
.svg-game__result-card::after {
    content: "✦";
    position: absolute;
    color: #ffe58d;
    font-size: 28px;
    animation: svg-sparkle 1.4s ease-in-out infinite;
}

.svg-game__result-card::before { top: 18px; left: 25px; }
.svg-game__result-card::after { right: 28px; bottom: 18px; animation-delay: 420ms; }

.svg-game__result-card h3 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(25px, 4vw, 36px);
}

.svg-game__result-card p {
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
}

.svg-game__result-card > div:last-child {
    justify-items: center;
}

.svg-game__voucher {
    min-height: 64px;
    color: #082d4d;
    background: linear-gradient(135deg, #fff6ba, #ffc842);
    border-color: #fff1a0;
    border-radius: 14px;
    font-size: 24px;
    box-shadow: 0 0 32px rgba(255, 215, 83, 0.28);
}

.svg-game__copy {
    min-width: 170px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f26e45, #e0433d);
}

@keyframes svg-timer-pulse {
    0%, 100% { transform: scale(1); }
    50% { color: #fff; transform: scale(1.1); }
}

@keyframes svg-sparkle {
    0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0); }
    50% { opacity: 1; transform: scale(1.3) rotate(18deg); }
}

@media (max-width: 600px) {
    .svg-game,
    .svg-game__ocean {
        min-height: 720px;
    }

    .svg-game__hud {
        top: 16px;
        right: 16px;
    }

    .svg-game__islands {
        inset: 184px 16px 84px;
    }
}

@media (max-width: 460px) {
    .svg-game__ocean {
        min-height: 820px;
    }
}

/* Boarding popup and clickable treasure discovery. */
.svg-game__panel--boarding,
.svg-game__panel {
    position: relative;
    z-index: 10;
}

.svg-game:not(.is-playing) .svg-game__panel {
    position: absolute;
    top: 50%;
    right: clamp(18px, 8vw, 110px);
    left: clamp(18px, 8vw, 110px);
    z-index: 20;
    display: block;
    padding: 25px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 26px 70px rgba(2, 42, 75, 0.28);
    transform: translateY(-22%);
    backdrop-filter: blur(12px);
}

.svg-game:not(.is-playing) .svg-game__panel::before {
    content: "Naik ke kapal Samudra";
    display: block;
    margin-bottom: 5px;
    color: #073c5e;
    font-size: 22px;
    font-weight: 950;
}

.svg-game:not(.is-playing) .svg-game__panel::after {
    content: "Masukkan email untuk mendapatkan kesempatan mencari harta karun.";
    display: block;
    margin-top: 14px;
    color: #5e788a;
    font-size: 13px;
    line-height: 1.5;
}

.svg-game:not(.is-playing) .svg-game__form {
    grid-template-columns: minmax(0, 1fr) auto;
}

.svg-game.is-playing .svg-game__panel {
    display: none;
}

.svg-game.is-playing .svg-game__header {
    padding-bottom: 28px;
}

.svg-game.is-playing .svg-game__steps span:first-child {
    color: #0a718c;
}

.svg-game__island {
    pointer-events: none;
}

.svg-game__treasure {
    position: absolute;
    bottom: 67px;
    left: 50%;
    z-index: 8;
    display: grid;
    place-items: center;
    width: 62px;
    height: 56px;
    padding: 0;
    color: #fff6c9;
    background: linear-gradient(145deg, #ffe88a, #e88d22);
    border: 4px solid #fff1a9;
    border-radius: 12px 12px 18px 18px;
    box-shadow: 0 0 0 7px rgba(255, 214, 78, 0.2), 0 0 35px 12px rgba(255, 230, 103, 0.76), 0 12px 25px rgba(40, 69, 50, 0.32);
    cursor: pointer;
    font-size: 27px;
    transform: translateX(-50%) translateY(10px) scale(0.5) rotate(-8deg);
    opacity: 0;
    pointer-events: none;
}

.svg-game__treasure::before {
    content: "";
    position: absolute;
    top: 10px;
    right: -4px;
    left: -4px;
    height: 9px;
    background: #bd641c;
    border-top: 3px solid #fff0a4;
    border-bottom: 2px solid rgba(88, 45, 14, 0.35);
}

.svg-game__treasure[hidden] {
    display: grid;
}

.svg-game__treasure.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1) rotate(-8deg);
    transition: opacity 300ms ease, transform 450ms cubic-bezier(.2,1.5,.3,1);
    animation: svg-treasure-glow 1.15s ease-in-out infinite;
}

.svg-game__treasure:hover,
.svg-game__treasure:focus-visible {
    outline: 4px solid rgba(255,255,255,0.7);
    transform: translateX(-50%) translateY(-8px) scale(1.08) rotate(-3deg);
}

.svg-game__treasure.is-opened {
    animation: none;
    filter: grayscale(0.7);
    opacity: 0.65;
}

.svg-game__island.is-found .svg-game__sand {
    box-shadow: 0 18px 0 rgba(0, 72, 126, 0.18), 0 0 28px rgba(255, 234, 126, 0.5);
}

@keyframes svg-treasure-glow {
    0%, 100% { filter: brightness(1); transform: translateX(-50%) translateY(0) scale(1) rotate(-8deg); }
    50% { filter: brightness(1.22); transform: translateX(-50%) translateY(-8px) scale(1.06) rotate(5deg); }
}

@media (max-width: 600px) {
    .svg-game:not(.is-playing) .svg-game__panel {
        top: 43%;
        padding: 20px;
        transform: translateY(-15%);
    }

    .svg-game:not(.is-playing) .svg-game__form {
        grid-template-columns: 1fr;
    }
}
