@font-face {
    font-family: 'Parimatch';
    src: url('./fonts/Parimatch-Bold.eot');
    src: url('./fonts/Parimatch-Bold.eot?#iefix') format('embedded-opentype'),
    url('./fonts/Parimatch-Bold.woff2') format('woff2'),
    url('./fonts/Parimatch-Bold.woff') format('woff'),
    url('./fonts/Parimatch-Bold.ttf') format('truetype'),
    url('./fonts/Parimatch-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Parimatch';
    src: url('./fonts/Parimatch-Regular.eot');
    src: url('./fonts/Parimatch-Regular.eot?#iefix') format('embedded-opentype'),
    url('./fonts/Parimatch-Regular.woff2') format('woff2'),
    url('./fonts/Parimatch-Regular.woff') format('woff'),
    url('./fonts/Parimatch-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

* { box-sizing: border-box; }
body { font-family: 'Parimatch', sans-serif; }

main {
    background-image: url("./img/pm-bg.png");
    background-color: #000;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    width: 100%;
    background-position: center;
}

header {
    padding: 10px 20px;
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    justify-content: space-between;
}
header .logo img { max-height: 35px; }

.header-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    line-height: 1;
    cursor: pointer;
    border: 0.2vh solid #FF4800;
    text-decoration: none;
    text-align: center;
    color: #000;
    background-color: #FF4800;
    padding: 0 2rem 0.2vh 2rem;
    user-select: none;
    outline: none;
    transform: skewX(-14deg);
    transition: all 0.4s ease-in-out;
    height: 30px;
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    font-family: 'Parimatch', sans-serif;
}
.header__log-btn {
    border-color: #fff;
    background-color: transparent;
    color: #fff;
    margin-right: 1vh;
    min-width: 4rem;
}
.header-btn span { transform: skewX(14deg); }
.header__log-btn:hover { background-color: #fff; color: #000; border-color: transparent; }
.header__reg-btn:hover { background-color: transparent; color: #FF4800; border-color: #FF4800; }

.content {
    position: relative;
    flex: 1 1 auto;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    min-height: clamp(500px, 85vh, 1000px);
    align-items: center;
}
.content > .text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.content > .game-wrap { width: 50%; display: flex; justify-content: center; align-items: center; }

.main-title {
    font-family: 'Parimatch', sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(28px, 4vw, 52px);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
}
.main-title .title-line-1 { color: #fff; display: block; }
.main-title .title-line-2 { color: #FF4800; display: block; text-shadow: 0 0 12px rgba(255,72,0,0.5); }
.welcome-bonus { color: #fff; font-size: clamp(14px, 1.8vw, 22px); margin: 0 0 8px 0; }
.welcome-bonus strong { color: #FF4800; }

.timer { text-align: center; width: 100%; }
.timer .title {
    font-style: italic;
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 28px);
    line-height: 113.5%;
    text-transform: uppercase;
    color: #fff;
}
.timer .block-time {
    margin: 10px auto 0;
    display: inline-block;
    border: solid 1px #fff;
    border-radius: 10px;
    padding: 0 10px 10px;
}
.timer .block-time .time {
    font-style: italic;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 44px);
    color: #f8ff13;
    border-bottom: solid 1px #fff;
    display: flex;
}
.timer .block-time .time span { flex: 1; font-weight: 600; }
.timer .block-time .text span { padding: 0 8px; font-size: 14px; color: #fff; }

/* Aviator game area — bigger & better */
.aviator-container {
    position: relative;
    width: min(560px, 92vw);
    margin: 0 auto;
}

.aviator-board {
    position: relative;
    background: linear-gradient(180deg, rgba(18,25,45,0.97) 0%, rgba(8,12,28,0.99) 100%);
    border: 4px solid #FF4800;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 0 40px rgba(255,72,0,0.25), 0 0 80px rgba(255,72,0,0.1), inset 0 0 60px rgba(0,0,0,0.4);
    overflow: hidden;
}

.aviator-multiplier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    border: 2px solid rgba(255,72,0,0.4);
}
.aviator-multiplier .mult-icon {
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 0 6px rgba(211,47,47,0.5));
}
.aviator-plane .plane-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(211,47,47,0.5));
}
.aviator-multiplier .mult-icon .plane-icon {
    display: block;
    height: 24px;
    width: auto;
    object-fit: contain;
}
.aviator-multiplier #mult-value {
    font-family: 'Parimatch', sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(36px, 5vw, 56px);
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
}

.aviator-chart {
    position: relative;
    width: 100%;
    height: 420px;
    background:
        radial-gradient(ellipse 120% 100% at 20% 80%, rgba(30,40,80,0.4) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 80% 20%, rgba(20,30,60,0.3) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10,18,35,0.8) 0%, rgba(5,10,22,0.95) 100%);
    border-radius: 12px;
    overflow: hidden;
}

.aviator-chart-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.flight-path {
    stroke-width: 1.2;
    filter: drop-shadow(0 0 6px rgba(211,47,47,0.6));
    transition: stroke-dashoffset 0.03s linear;
}

.aviator-plane {
    position: absolute;
    left: 14%;
    top: 86%;
    width: 48px;
    height: 36px;
    margin-left: -24px;
    margin-top: -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.03s linear, top 0.03s linear, transform 0.03s linear;
    z-index: 5;
    pointer-events: none;
}
.btn-aviator {
    animation: aviatorPulse 1s ease infinite alternate;
    margin: 24px auto 0;
    display: block;
    width: 220px;
    height: 56px;
    background: #000;
    border: 3px solid #FF4800;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Parimatch', sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(16px, 2vw, 22px);
    color: #FF4800;
    text-transform: uppercase;
    transform: skewX(-14deg);
    transition: opacity 0.3s;
}
.btn-aviator span { display: inline-block; transform: skewX(14deg); font-size: clamp(18px, 2.2vw, 24px); }
.btn-aviator:hover:not(:disabled) { background: rgba(255,72,0,0.2); box-shadow: 0 0 25px rgba(255,72,0,0.3); }
.btn-aviator:disabled { opacity: 0.4; cursor: not-allowed; }

.aviator-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 24px; }
.btn-aviator-stop {
    display: none;
    width: 180px;
    height: 56px;
    background: rgba(211,47,47,0.15);
    border: 3px solid #e53935;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Parimatch', sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(16px, 2vw, 20px);
    color: #ff5252;
    text-transform: uppercase;
    transform: skewX(-14deg);
    transition: all 0.2s;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(229,57,53,0.4);
}
.btn-aviator-stop.visible { display: inline-flex; }
.btn-aviator-stop span { display: inline-block; transform: skewX(14deg); }
.btn-aviator-stop:hover { background: rgba(229,57,53,0.35); box-shadow: 0 0 25px rgba(229,57,53,0.6); }

@keyframes aviatorPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,72,0,0.4); }
    100% { box-shadow: 0 0 20px 4px rgba(255,72,0,0.2); }
}

/* Modal */
#modal_confirm {
    position: fixed;
    top: 0; left: 0;
    height: 100%; width: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}
#modal_confirm .modal_background {
    background: linear-gradient(105.37deg, rgba(48,48,48,0.6) 2.85%, rgba(0,0,0,0.6) 100%);
    border: 3px solid #FF4800;
    box-shadow: 0px 10px 19px rgb(0 0 0 / 25%);
    backdrop-filter: blur(63px);
    border-radius: 20px;
    min-height: 25vw;
    width: 50vw;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    position: relative;
}
.modal_background .close { position: absolute; top: 15px; right: 15px; cursor: pointer; }
.modal_background .close img { width: 28px; height: 28px; }
.modal_background .image .confetti-icon { font-size: 48px; display: block; text-align: center; }
.modal_background .congratulations-text {
    font-family: 'Parimatch', sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(24px, 3vw, 42px);
    color: #FF4800;
    text-transform: uppercase;
    text-align: center;
    margin: 10px 0;
}
.modal_background .bonus { text-align: center; font-size: clamp(20px, 2.5vw, 32px); color: #fff; margin: 10px 0; }
.modal_background .bonus span { color: #FF4800; }

.bonus-form { max-width: 90%; margin: 15px 0; text-align: center; }
.bonus-form label.checkbox-block {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    margin: 15px 0;
    cursor: pointer;
}
.bonus-form input[type="checkbox"] { display: none; }
.bonus-form .checkbox { width: 24px; height: 24px; border: 2px solid #FF4800; flex-shrink: 0; position: relative; }
.bonus-form input:checked + .checkbox::before {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    background: #FF4800;
    top: 3px; left: 3px;
}
.bonus-form .rules a { color: #FF4800; text-decoration: underline; }
.bonus__btn, .spin-again-btn {
    display: inline-flex;
    margin: 10px auto;
    padding: 12px 40px;
    transform: skewX(-15deg);
    background: #FF4800;
    color: #000;
    border: 2px solid #FF4800;
    font-family: 'Parimatch', sans-serif;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 20px);
    cursor: pointer;
    text-transform: uppercase;
}
.bonus__btn span, .spin-again-btn span { transform: skewX(15deg); }
.bonus__btn:hover, .spin-again-btn:hover { background: transparent; color: #FF4800; }

@media (max-width: 990px) {
    .content { flex-direction: column; padding: 20px 15px; min-height: auto; }
    .content > .text, .content > .game-wrap { width: 100%; }
    .content > .text { margin-bottom: 30px; }
    .aviator-chart { height: 340px; }
    .aviator-container { width: min(480px, 92vw); }
    #modal_confirm .modal_background { width: 95%; max-width: 400px; }
}
