:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0c131d; color: #f4f7fb; }
body { min-height: 100vh; background: radial-gradient(circle at 12% 12%, #253d53 0, transparent 32%), radial-gradient(circle at 88% 82%, #2e2549 0, transparent 30%), #0c131d; }
.shell { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 50px); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(500px, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 42px 0 28px; }
.eyebrow { color: #8edcf2; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1 { margin: 12px 0 16px; font-size: clamp(48px, 7vw, 88px); line-height: .9; letter-spacing: -.07em; }
h1 span { color: #ffca5f; }
.lead { max-width: 530px; margin: 0; color: #c2ccd7; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.rules { display: grid; gap: 12px; margin: 30px 0; }
.rules article { display: flex; gap: 13px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.045); }
.rules b { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 50%; color: #111923; background: #8edcf2; }
.rules strong, .rules small { display: block; }
.rules small { margin-top: 3px; color: #9eabb9; line-height: 1.35; }
.tip { padding: 13px 15px; border-left: 3px solid #ffca5f; color: #aab6c4; background: rgba(255,202,95,.07); font-size: 14px; line-height: 1.5; }
.tip strong { color: #ffca5f; margin-right: 6px; }
.game-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 16px; background: rgba(243,246,250,.98); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.card-top { display: flex; justify-content: space-between; padding: 2px 4px 13px; color: #536271; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
#catch-the-cat { display: grid; place-items: center; width: 100%; min-height: 500px; border-radius: 15px; overflow: hidden; background: #fff; }
#catch-the-cat canvas { display: block; max-width: 100%; height: auto !important; touch-action: manipulation; }
.caption { margin: 12px 4px 0; color: #667381; font-size: 12px; line-height: 1.45; }
.game-actions { display: flex; gap: 8px; margin-top: 11px; }
.game-actions button { flex: 1; border: 0; border-radius: 10px; padding: 10px 12px; color: #eff7ff; background: #1e3346; font: 800 12px/1 system-ui, sans-serif; cursor: pointer; }
.game-actions button:hover { background: #294b66; }
.game-actions button:focus-visible { outline: 3px solid #ffca5f; outline-offset: 2px; }
footer { height: 50px; display: grid; place-items: center; color: #748293; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; padding-top: 30px; } .intro { text-align: center; } .lead, .tip { margin-left: auto; margin-right: auto; } .rules { max-width: 590px; margin-left: auto; margin-right: auto; text-align: left; } }
@media (max-width: 560px) { .shell { width: min(100% - 18px, 1180px); gap: 22px; } h1 { font-size: 52px; } .rules { margin: 20px 0; } .game-card { padding: 9px; border-radius: 17px; } #catch-the-cat { min-height: 350px; } .card-top { font-size: 8px; } }
