*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --c01: #1a1a2e;
    --c02: #f8fafc;
    --c03: #ffffff;
    --c04: #4a4a68;
    --c05: #6c63ff;
    --c06: #1a1a2e;
    --c07: #1a1a2e;
    --c08: #94a3b8;
    --c09: #1a1a2e;
    --c10: 0.7;
    --c11: #6c63ff;
    --c12: #ff6584;
    --c13: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--c13); color: var(--c04); line-height: 1.7; font-size: 1.05rem; background: var(--c03); }
img { max-width: 100%; height: auto; }
a { color: var(--c05); text-decoration: none; }
a:hover { opacity: 0.8; }

._nba {
    position: relative;
    z-index: 100;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

._rft-pk { font-size: 1.4rem; font-weight: 700; }
._rft-pk a { display: flex; align-items: center; text-decoration: none; }
._rft-pk img { display: block; }

._wqj-dl {
    display: flex;
    align-items: center;
    gap: 25px;
}
._wqj-dl a { font-size: 0.95rem; font-weight: 500; transition: opacity 0.2s; }
._wqj-dl a:hover { opacity: 0.8; }

._cvh { position: relative; }
._bpm { position: relative; }

._yzr-gn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.12); border: 1px solid currentColor;
    color: inherit; font-size: 0.85rem; font-weight: 600;
    padding: 5px 12px; border-radius: 6px; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
._yzr-gn:hover { background: rgba(255,255,255,0.2); }
._djk-aw { transition: transform 0.2s; }
._bpm._opn ._djk-aw { transform: rotate(180deg); }

._xmf-tc {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--c03); border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    list-style: none; margin: 0; padding: 6px 0;
    min-width: 70px; z-index: 300; max-height: 240px; overflow-y: auto;
}
._bpm._opn ._xmf-tc { display: block; }
._xmf-tc li a { display: block; padding: 6px 16px; color: var(--c04); font-size: 0.85rem; font-weight: 600; text-align: center; transition: background 0.15s; }
._xmf-tc li a:hover { background: var(--c02); opacity: 1; color: var(--c04); }
._xmf-tc li a._qwe { color: var(--c05); }

._mbl ._yzr-gn { font-size: 1rem; padding: 8px 18px; }
._mbl ._xmf-tc { position: static; box-shadow: none; background: rgba(255,255,255,0.1); border-radius: 8px; margin-top: 8px; max-height: 200px; }
._mbl ._xmf-tc li a { color: inherit; font-size: 1rem; }
._mbl ._xmf-tc li a:hover { background: rgba(255,255,255,0.1); }
._mbl ._xmf-tc li a._qwe { color: var(--c05); }

._hmb {
    display: none; background: none; border: none; cursor: pointer;
    padding: 10px; position: fixed; top: 15px; right: 15px; z-index: 210;
}
._hmb span { display: block; width: 26px; height: 3px; border-radius: 2px; transition: all 0.3s ease; }
._hmb span + span { margin-top: 5px; }
._hmb._hmb-x span:nth-child(1) { transform: rotate(45deg) translate(4px, 7px); }
._hmb._hmb-x span:nth-child(2) { opacity: 0; }
._hmb._hmb-x span:nth-child(3) { transform: rotate(-45deg) translate(4px, -7px); }

._mbl {
    display: none; position: fixed; inset: 0; z-index: 200;
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
}
._mbl._vis { display: flex; }
._cls-bt {
    position: absolute; top: 15px; right: 15px; background: none;
    border: none; font-size: 2.5rem; cursor: pointer; padding: 5px 12px;
    line-height: 1; z-index: 211;
}
._cls-bt:hover { opacity: 0.7; }
._mbl a { font-size: 1.4rem; font-weight: 600; transition: opacity 0.2s; }
._mbl a:hover { opacity: 0.7; }
._mbl ._cvh { font-size: 1rem; }
._mbl ._cvh a { font-size: 1rem; padding: 5px 10px; }

._wrp { display: flex; flex-direction: column; }
._wrp > ._gzn-wrap { order: 1; }
._wrp > ._cnt { order: 2; }
._wrp > ._fqs { order: 3; }

/* Game wrapper - hero section */
._gzn-wrap {
    position: relative; width: 100%; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-color: #1a1a2e; background-size: cover; background-position: center;
    overflow: hidden; padding: 30px 20px;
}
._gzn-wrap::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: var(--uol, #1a1a2e);
    opacity: var(--llv, 0.7);
    pointer-events: none;
}

/* Promo banner */
._gzn-promo {
    position: relative; z-index: 5;
    background: linear-gradient(135deg, #ff6b35, #e74c3c);
    color: #fff; font-size: 1.1rem; font-weight: 700;
    padding: 14px 30px; border-radius: 12px;
    text-align: center; margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(231,76,60,0.4);
    max-width: 800px; width: 100%;
    animation: _promo-pulse 2s infinite;
}
._gzn-promo strong { color: #ffd700; font-size: 1.25rem; }
._gzn-promo-icon { font-size: 1.3rem; }
@keyframes _promo-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(231,76,60,0.4); }
    50% { box-shadow: 0 4px 30px rgba(231,76,60,0.7), 0 0 15px rgba(255,215,0,0.3); }
}

/* Game zone - centered with max size */
._gzn {
    position: relative; z-index: 5;
    width: 100%; max-width: 800px;
    padding-bottom: 56.25%; /* 16:9 ratio */
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    background: #4fc3f7;
}
._gzn-canvas {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    display: block; cursor: crosshair;
}
._gzn-hud {
    display: none; justify-content: space-between; align-items: center;
    padding: 12px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
    color: #fff; font-weight: 700; font-size: 1.05rem;
    z-index: 30; position: absolute; top: 0; left: 0; right: 0;
    pointer-events: none; border-radius: 16px 16px 0 0;
}
._gzn-hud._gzn-hud-on { display: flex; }
._gzn-hud-left, ._gzn-hud-right {
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.35); padding: 8px 16px; border-radius: 30px;
}
._gzn-hud-icon { font-size: 1.1rem; }
._gzn-score { color: #ffd700; font-size: 1.1rem; }
._gzn-timer { color: #ff6b6b; font-size: 1.1rem; }

._gzn-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 25;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.45); border-radius: 16px;
}
._gzn-overlay._gzn-hidden { display: none; }
._gzn-overlay-box {
    text-align: center; padding: 35px 45px;
    background: rgba(0,0,0,0.5); border-radius: 20px;
    backdrop-filter: blur(8px);
}
._gzn-logo-text {
    color: #ffd700; font-size: 2.8rem; font-weight: 900;
    text-shadow: 3px 3px 0 #c0392b, 5px 5px 10px rgba(0,0,0,0.4);
    letter-spacing: 2px; margin-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
}
._gzn-overlay-sub {
    color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 22px;
}
._gzn-btn {
    padding: 15px 48px; border-radius: 50px; border: none;
    color: #fff; font-size: 1.2rem; font-weight: 800;
    cursor: pointer; font-family: inherit;
    text-transform: uppercase; letter-spacing: 2px;
    transition: transform 0.15s, box-shadow 0.15s;
}
._gzn-btn:hover { transform: translateY(-3px); }
._gzn-btn-play {
    background: linear-gradient(135deg, #ff6b35, #e74c3c);
    box-shadow: 0 6px 25px rgba(231,76,60,0.5);
}
._gzn-btn-play:hover { box-shadow: 0 10px 35px rgba(231,76,60,0.6); }
._gzn-btn-replay {
    background: linear-gradient(135deg, #6c63ff, #4834d4);
    box-shadow: 0 6px 25px rgba(108,99,255,0.5);
}
._gzn-btn-replay:hover { box-shadow: 0 10px 35px rgba(108,99,255,0.6); }
._gzn-over-title { margin-bottom: 0; }
._gzn-final-score {
    color: #ffd700; font-size: 2rem; font-weight: 900;
    margin: 10px 0 22px; text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* Win screen */
._gzn-win-box { text-align: center; }
._gzn-win-title {
    color: #ffd700; font-size: 2.4rem; font-weight: 900;
    text-shadow: 3px 3px 0 #c0392b, 5px 5px 10px rgba(0,0,0,0.4);
    margin-bottom: 8px;
}
._gzn-win-text {
    color: #fff; font-size: 1.15rem; font-weight: 600;
    margin-bottom: 5px; line-height: 1.4;
}
._gzn-btn-win {
    display: inline-block; text-decoration: none;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    box-shadow: 0 6px 25px rgba(39,174,96,0.5);
    animation: _win-glow 1.5s infinite;
}
._gzn-btn-win:hover { box-shadow: 0 10px 35px rgba(39,174,96,0.7); color: #fff; opacity: 1; }
@keyframes _win-glow {
    0%, 100% { box-shadow: 0 6px 25px rgba(39,174,96,0.5); }
    50% { box-shadow: 0 6px 35px rgba(39,174,96,0.8), 0 0 20px rgba(255,215,0,0.3); }
}

/* Splash intro */
._gzn-splash {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 35;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.7);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
._gzn-splash._gzn-splash-in { opacity: 1; }
._gzn-splash._gzn-splash-out { opacity: 0; transition: opacity 0.6s ease; }
._gzn-splash-img {
    max-width: 75%; max-height: 75%;
    object-fit: contain;
    animation: _splash-zoom 2s ease forwards;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
@keyframes _splash-zoom {
    0% { transform: scale(0.3) rotate(-5deg); opacity: 0; }
    30% { transform: scale(1.1) rotate(2deg); opacity: 1; }
    50% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* CTA buttons below game */
._gzn-cta {
    position: relative; z-index: 5;
    display: flex; flex-direction: row; justify-content: center; align-items: stretch;
    gap: 16px; margin-top: 22px; flex-wrap: wrap;
    max-width: 800px; width: 100%;
}
a._gzn-cta-btn, ._gzn-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 18px 48px; border-radius: 50px; white-space: nowrap;
    font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: #fff;
}
._gzn-cta-btn:hover { transform: translateY(-2px); opacity: 1; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
._gzn-cta-btn img { width: 20px; height: 20px; object-fit: contain; border-radius: 0; }
._gzn-cta-ico { font-size: 18px; line-height: 1; }

._gzn-note {
    position: relative; z-index: 5;
    color: rgba(248,250,252,0.7); font-size: 0.95rem; font-weight: 400;
    line-height: 1.5; margin-top: 15px; text-align: center;
}

._cnt { max-width: 800px; margin: 0 auto; padding: 80px 20px; }
._cnt ._cnt-hd { font-size: 2rem; font-weight: 800; margin-bottom: 30px; color: var(--c06); }
._cnt h2 { font-size: 1.8rem; font-weight: 800; margin: 50px 0 20px; padding-left: 20px; border-left: 8px solid var(--c05); color: var(--c06); }
._cnt h3 { font-size: 1.4rem; font-weight: 700; margin: 40px 0 15px; color: var(--c06); }
._cnt p { margin-bottom: 20px; font-size: 1.1rem; line-height: 1.9; }
._cnt ul, ._cnt ol { margin: 0 0 20px 25px; }
._cnt li { margin-bottom: 8px; line-height: 1.8; }
._cnt blockquote { border-left: 4px solid var(--c05); padding: 15px 25px; margin: 30px 0; font-style: italic; background: #f0efff; border-radius: 0 8px 8px 0; }
._cnt img { border-radius: 8px; margin: 20px 0; }

._fqs { max-width: 800px; margin: 0 auto; padding: 0 20px 60px; }
._fqs-hd { font-size: 1.8rem; font-weight: 800; margin-bottom: 25px; padding-left: 20px; border-left: 8px solid var(--c05); color: var(--c06); }
._fqi { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; overflow: hidden; transition: box-shadow 0.2s; }
._fqi:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
._fqi summary { padding: 18px 24px; font-size: 1.05rem; font-weight: 600; cursor: pointer; color: var(--c06); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
._fqi summary::-webkit-details-marker { display: none; }
._fqi summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--c05); flex-shrink: 0; transition: transform 0.2s; }
._fqi[open] summary::after { transform: rotate(45deg); }
._fqi-bd { padding: 0 24px 18px; }
._fqi-bd p { line-height: 1.7; color: var(--c04); margin: 0; }

._ftr { text-align: center; padding: 40px 20px; font-size: 0.9rem; background: var(--c07); color: var(--c08); }
._ftr a, ._ftr-lk a { color: var(--c08); }
._ftr-lk { margin-top: 15px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
._ftr-lk a { font-size: 0.8rem; transition: opacity 0.2s; }
._ftr-lk a:hover { opacity: 0.7; }

/* Sticky bar */
._skb {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%); transition: transform 0.4s ease;
    padding: 0;
}
._skb._skb-on { transform: translateY(0); }
._skb-in {
    max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 20px;
    padding: 14px 20px;
}
._skb-tx {
    color: #f8fafc; font-size: 1rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
._skb-bt { display: flex; gap: 12px; flex-shrink: 0; }
._skb-a {
    display: inline-block; color: #fff; font-size: 0.9rem; font-weight: 700;
    padding: 10px 24px; border-radius: 50px; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
._skb-a:hover { transform: scale(1.05); opacity: 1; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

._ftr { padding-bottom: 80px; }

@media (max-width: 768px) {
    ._nba { padding: 10px 15px !important; }
    ._wqj-dl { display: none !important; }
    ._hmb { display: flex; flex-direction: column; }
    ._gzn-wrap { padding: 20px 12px; min-height: auto; }
    ._gzn { padding-bottom: 177.78%; } /* 9:16 ratio on mobile */
    ._gzn-promo { font-size: 0.9rem; padding: 10px 15px; margin-bottom: 14px; }
    ._gzn-promo strong { font-size: 1rem; }
    ._gzn-logo-text { font-size: 1.8rem; }
    ._gzn-overlay-sub { font-size: 0.85rem; }
    ._gzn-overlay-box { padding: 22px 25px; }
    ._gzn-btn { padding: 12px 32px; font-size: 1rem; }
    ._gzn-hud { padding: 8px 12px; }
    ._gzn-hud-left, ._gzn-hud-right { padding: 5px 10px; font-size: 0.85rem; }
    ._gzn-final-score { font-size: 1.4rem; }
    ._gzn-win-title { font-size: 1.6rem; }
    ._gzn-win-text { font-size: 0.9rem; }
    ._gzn-splash-img { max-width: 85%; max-height: 65%; }
    ._gzn-cta { gap: 10px; flex-direction: column; align-items: center; margin-top: 16px; }
    ._gzn-cta-btn { padding: 14px 28px; width: 100%; max-width: 320px; justify-content: center; }
    ._cnt { padding: 50px 15px; }
    ._cnt h2 { font-size: 1.5rem; }
    ._nba ._rft-pk img { height: 35px !important; width: auto !important; }
    ._skb-in { flex-direction: column; gap: 8px; padding: 12px 15px; }
    ._skb-tx { font-size: 0.85rem; text-align: center; white-space: normal; }
    ._skb-bt { width: 100%; }
    ._skb-a { flex: 1; text-align: center; padding: 10px 16px; font-size: 0.85rem; }
}
