:root {
    --cm-red: #b50032;
    --cm-red-dark: #7d001f;
    --cm-red-deep: #560016;
    --cm-red-light: #e42859;
    --cm-soft: #fff3f6;
    --cm-border: #eed5dc;
    --text: #24191c;
    --muted: #706267;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
    color: var(--text);
    background: #f7f3f4;
}

body {
     width:100%;
    max-width:100%;
    overflow-x:hidden;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.game-page{
    display:flex;
    align-items:center;
    justify-content:center;

    min-height:100vh;

    padding:32px 20px;

    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(228,40,89,.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(125,0,31,.14),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #fffafb 0%,
            #f5ecef 100%
        );
}

.game-card {
    display: grid;
    grid-template-columns:
        minmax(360px, 0.86fr)
        minmax(520px, 1.14fr);
    width: min(1180px, 100%);
    min-height: 680px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(125, 0, 31, 0.08);
    border-radius: 32px;
    box-shadow:
        0 32px 90px rgba(72, 0, 21, 0.17);
}

.game-content {
    position: relative;
    z-index: 2;
    padding: 64px 58px;
}


.brand-mark__cm{

    display:block;

    width:80px;

    height:auto;

    object-fit:contain;

    flex-shrink:0;

}

.brand-mark{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:42px;

}

.brand-mark__divider{
    width:1px;
    height:28px;
    background:#d9c9cf;
}

.brand-mark__ziaja{
    display:block;

    width:110px;      /* promijeni po želji */
    height:auto;

    object-fit:contain;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--cm-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #221619;
    font-size: clamp(42px, 5vw, 67px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.intro {
    max-width: 470px;
    margin: 25px 0 34px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.receipt-form {
    display: grid;
    gap: 19px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    min-height: 56px;
    padding: 0 17px;
    color: var(--text);
    background: #fff;
    border: 1px solid #dacbd0;
    border-radius: 14px;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.form-group input::placeholder {
    color: #aa9ba0;
}

.form-group input:focus {
    border-color: var(--cm-red);
    box-shadow:
        0 0 0 4px rgba(181, 0, 50, 0.11);
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #65575c;
    font-size: 13px;
    line-height: 1.55;
}

.terms-row input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--cm-red);
}

.terms-row a {
    color: var(--cm-red-dark);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

#submit-button {
    position: relative;
    min-height: 58px;
    padding: 0 27px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background:
        linear-gradient(
            120deg,
            var(--cm-red-dark) 0%,
            var(--cm-red) 48%,
            var(--cm-red-light) 100%
        );
    box-shadow:
        0 14px 32px rgba(181, 0, 50, 0.27);
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 170ms ease,
        box-shadow 170ms ease,
        opacity 170ms ease;
}

#submit-button::before {
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    content: "";
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.28),
            transparent
        );
    transform: skewX(-20deg);
    transition: left 550ms ease;
}

#submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px rgba(181, 0, 50, 0.34);
}

#submit-button:hover:not(:disabled)::before {
    left: 145%;
}

#submit-button:active:not(:disabled) {
    transform: translateY(0);
}

#submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.form-message {
    display: none;
    padding: 15px 17px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.55;
}

.form-message--error,
.form-message--success {
    display: block;
}

.form-message--error {
    color: #800422;
    background: #fff0f4;
    border: 1px solid #f1bdca;
}

.form-message--success {
    color: #135c37;
    background: #ebfff3;
    border: 1px solid #b8e5ca;
}

.receipt-note {
    margin: 24px 0 0;
    color: #88787d;
    font-size: 12.5px;
    line-height: 1.6;
}

.wheel-area{

    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:40px;

    overflow:hidden;

    background:
        url("../images/background.png")
        left center
        / cover
        no-repeat;

}

.wheel-area::before{
    content:"";

    position:absolute;
    inset:0;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,.30),
            rgba(255,255,255,.12) 55%,
            transparent 100%
        );
filter: drop-shadow(0 24px 40px rgba(0,0,0,.18));
  

    z-index:0;
    pointer-events:none;
}
.wheel-stage::after{
    content:"";
    position:absolute;
    width:82%;
    aspect-ratio:1;
    border-radius:50%;
    background:radial-gradient(circle,
        rgba(255,255,255,.25) 0%,
        transparent 70%);
    z-index:1;
    pointer-events:none;
}
.wheel-stage {
    position: relative;
    z-index: 2;
    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: center;

    width: min(720px, 100%);
    aspect-ratio: 1;

    margin: 0 auto;
}

.wheel {
    position: relative;
    z-index: 2;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
    user-select: none;

    transform: rotate(0deg);
    transform-origin: 50% 50%;

    backface-visibility: hidden;
    will-change: transform;

    filter:
        drop-shadow(
            0 24px 28px rgba(61, 0, 18, 0.25)
        );
}

.wheel.is-spinning {
    pointer-events: none;
}

.wheel-center-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 50;

    width: 15%;
    height: auto;

    transform: translate(-50%, -60%);

    pointer-events: none;
    user-select: none;
}
/*
 * Pristupačnost: smanjeno kretanje.
 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    /*
     * Ne skraćujemo animaciju kola.
     * Kolo mora odraditi cijelu rotaciju prije rezultata.
     */
    *:not(.wheel),
    *:not(.wheel)::before,
    *:not(.wheel)::after {
        animation-duration: 0.01ms !important;
    }
}

/*
 * Tablet.
 */
@media (max-width: 950px) {
    .game-card {
        grid-template-columns: 1fr;
    }

    .game-content {
        padding: 45px 34px;
    }

    .wheel-area {
        display: flex;
        min-height: 620px;
        padding: 30px 24px;
    }

    .wheel-stage {
        display: flex;
        width: min(620px, 100%);
        min-width: 0;
        aspect-ratio: 1;
    }

    .wheel {
        display: block;
        width: 100%;
        height: 100%;
    }
}

/*
 * Mobilni prikaz.
 */
@media (max-width: 560px) {
     html,
    body {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
  body {
        min-height: 100dvh;
    }
.game-page{

    padding:0;

    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(228,40,89,.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(125,0,31,.14),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #fffafb 0%,
            #f5ecef 100%
        );

}

    .game-card {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        min-height: 100vh;
        overflow: visible;
        border-radius: 0;
    }

    .game-content {
        padding: 35px 22px;
    }

    .brand-mark {
        margin-bottom: 28px;
    }

    h1 {
        font-size: 43px;
    }

    .intro {
        font-size: 15px;
    }

    .wheel-area {
        display: flex;
        width: 100%;
        min-height: 430px;
        padding: 24px 10px 30px;
        overflow: visible;
    }

    .wheel-stage {
        display: flex;
        width: min(430px, 100%);
        max-width: 100%;
        aspect-ratio: 1;
    }

    .wheel {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
.wheel-center-pointer {

    width: 10.3%;
    transform: translate(-50%, -50%);
}
}