:root {
    --bg: #070303;
    --panel: rgba(255, 255, 255, .04);
    --panel-2: rgba(255, 255, 255, .06);
    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .70);
    --stroke: rgba(255, 255, 255, .10);
    --shadow: 0 16px 40px rgba(0, 0, 0, .45);
    --brand: #ff2a2a;
    --radius: 16px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(255, 42, 42, .12), transparent 60%),
        radial-gradient(900px 600px at 90% 10%, rgba(68, 16, 16, 0.06), transparent 55%),
        var(--bg);
    color: var(--text);
    background-attachment: fixed;
    padding: 20px 30px;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-bottom: 50px;
    width: 100%;
}

header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    flex: 0 0 auto;
    margin: 3px;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(255, 42, 42, .35));
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand .title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand .subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.game-header {
    margin-bottom: 8px;
}

.game-header h1 {
    margin: 0;
    font-size: 20px;
    text-align: center;
    padding: 10px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.game-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.game-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.game-container::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    overflow: hidden;
}

.mobile-play-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mobile-play-btn {
    background: var(--brand);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 42, 42, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 42, 42, 0.4);
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 100;
}

.fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid var(--stroke);
}

.fullscreen-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
}

.fullscreen-close:hover {
    background: var(--panel);
}

.fullscreen-frame {
    width: 100%;
    height: calc(100% - 73px);
    border: none;
    display: block;
}

.info-blocks {
    display: grid;
    gap: 20px;
    margin-top: 10px;
}

.info-block {
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    padding: 22px;
}

.info-block h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.info-block p,
.info-block ul {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.info-block ul {
    padding-left: 20px;
}

.info-block li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .game-frame {
        display: none;
    }

    .mobile-play-overlay {
        display: flex;
    }

    .info-blocks {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .fullscreen-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .brand .title {
        font-size: 14px;
    }

    .game-header h1 {
        font-size: 17px;
    }

    .info-block {
        padding: 18px;
    }
}