.games-section { padding-top: 125px; background: var(--qv-bg); }
.games-heading { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.games-heading h1, .game-header h1 { margin: 4px 0 10px; color: var(--qv-heading); font-size: clamp(2rem, 4vw, 3rem); }
.games-heading p, .game-header p { color: var(--qv-muted); }
.game-kicker { margin: 0; color: var(--qv-accent) !important; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.games-saved-note, .game-guest-note { margin: 0 auto 25px; padding: 12px 16px; border: 1px solid var(--qv-border); border-radius: 7px; background: #fff; color: var(--qv-muted); }
.games-saved-note { max-width: 720px; text-align: center; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 22px; }
.game-card { display: flex; overflow: hidden; height: 100%; flex-direction: column; border: 1px solid var(--qv-border); border-radius: 12px; background: #fff; box-shadow: var(--qv-shadow-small); }
.game-card-image { display: grid; min-height: 220px; place-items: center; padding: 22px; background: var(--qv-panel); }
.game-card-image img { width: 100%; height: 190px; object-fit: contain; }
.game-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.game-card h2 { margin: 0 0 9px; font-size: 1.12rem; }
.game-card h2 a { color: var(--qv-heading); }
.game-card p { min-height: 66px; color: var(--qv-muted); }
.game-card-body > .px-btn { align-self: center; margin-top: auto; }
.game-card-stats { display: flex; gap: 18px; margin: 0 0 17px; }
.game-card-stats div { display: flex; gap: 6px; }.game-card-stats dt { color: var(--qv-muted); }.game-card-stats dd { margin: 0; color: var(--qv-heading); font-weight: 700; }
.game-ratio{overflow:hidden;height:8px;margin:-7px 0 17px;border-radius:999px;background:#f1d4d9}.game-ratio span{display:block;height:100%;border-radius:inherit;background:#18864b}.game-report{margin-top:28px;padding-top:20px;border-top:1px solid var(--qv-border)}.game-report p{color:var(--qv-muted)}.game-report-status{min-height:24px;margin-bottom:0!important;font-weight:700}
.game-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; color: var(--qv-muted); font-size: .9rem; }.game-breadcrumb a { color: var(--qv-accent); font-weight: 700; }
.game-container { max-width: 1040px; margin: 0 auto; padding: 30px; border: 1px solid var(--qv-border); border-radius: 14px; background: #fff; box-shadow: var(--qv-shadow); color: var(--qv-heading); text-align: center; }
.game-header { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; margin-bottom: 22px; text-align: left; }.game-header > div { max-width: 760px; }.game-header p:last-child { margin: 0; }.game-back { flex: 0 0 auto; color: var(--qv-accent); font-weight: 700; }
.game-controls, .level-selector, .score { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-bottom: 18px; }
.game-controls, .level-selector { padding: 12px; border-radius: 9px; background: var(--qv-panel); }.game-controls input[type="number"] { width: 74px; padding: 7px; border: 1px solid var(--qv-border); border-radius: 6px; }
.timer-toggle, .level-option { cursor: pointer; font-weight: 600; }.level-selector { border: 0; }.level-selector input:disabled + * { opacity: .5; }
.score-box { min-width: 115px; padding: 11px 17px; border: 1px solid var(--qv-border); border-radius: 8px; background: #fff; }.score-box span { display: block; color: var(--qv-muted); font-size: .82rem; }.score-box strong { color: var(--qv-heading); font-size: 1.45rem; }
.game-area { display: grid; width: 100%; min-width: 0; gap: 22px; justify-items: center; }.game-chart { width: min(100%, 800px); max-width: 100%; min-width: 0; min-height: 480px; }.vectors-chart { min-height: 680px; }.game-formula { min-height: 45px; font-size: 1.35rem; }
.quiz-container { width: min(100%, 650px); }.task-type { margin: 0 0 15px; font-size: 1.05rem; font-weight: 800; }
.question, .task-block { margin-bottom: 13px; padding: 15px; border: 1px solid var(--qv-border); border-radius: 9px; background: var(--qv-panel); text-align: left; }.question label { display: block; margin-bottom: 7px; font-weight: 700; }.question input, .question select { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid var(--qv-border); border-radius: 6px; background: #fff; color: var(--qv-heading); font: inherit; }
.result-icon { display: inline-block; margin: 7px 0 0 8px; font-size: 1.2rem; font-weight: 800; }.correct { color: #18864b; }.incorrect { color: #b42318; }.hidden { display: none !important; }
.equation { margin: 18px auto; padding: 15px; border-radius: 8px; background: var(--qv-panel); font-size: 1.15rem; }.line-chart { width: 500px; max-width: 100%; margin: 15px auto; }.line-chart canvas { display: block; max-width: 100%; height: auto; border: 1px solid var(--qv-border); }.selected-point { display: inline-block; margin: 4px; padding: 5px 9px; border-radius: 6px; background: #18864b; color: #fff; }.round-timer { min-height: 30px; color: #a65a00; font-size: 1.35rem; font-weight: 800; }.feedback { min-height: 26px; margin: 10px; font-weight: 800; }
.task-block .question { display: flex; align-items: center; gap: 10px; background: #fff; }.math-label { min-width: 155px; text-align: right; }.task-block math-field { flex: 1; min-width: 0; padding: 9px; border: 1px solid var(--qv-border); border-radius: 6px; background: #fff; }.task-block math-field[readonly] { background: #f3f5f7; }.vector-quiz { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 767px) { .games-section { padding-top: 95px; }.game-container { padding: 20px 14px; }.game-header { display: block; }.game-back { display: inline-block; margin-top: 10px; }.game-chart { min-height: 390px; }.vectors-chart { min-height: 520px; }.task-block .question { display: block; }.math-label { display: block; min-width: 0; margin-bottom: 8px; text-align: left; }.task-block math-field { display: block; width: 100%; }.score { gap: 8px; }.score-box { min-width: 92px; }.game-card p { min-height: 0; } }
