*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#0b1020;color:#fff;min-height:100vh}.app-shell{max-width:850px;margin:0 auto;padding:40px 20px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.topbar h1{font-size:40px;margin:0}.topbar p{color:#9aa6c5;margin:6px 0 0}.topbar-actions{display:flex;align-items:center;gap:10px}.scorebox{background:#151c33;padding:14px 18px;border-radius:14px}.restart-btn{border:1px solid #34405e;background:#151c33;color:#dbe3f8;padding:13px 16px;border-radius:14px;font-weight:bold;cursor:pointer}.restart-btn:hover{background:#202a45}.game-card{background:#11182b;border:1px solid #27314d;border-radius:22px;padding:30px;box-shadow:0 20px 70px rgba(0,0,0,.35)}.progress{height:9px;background:#29314a;border-radius:20px;overflow:hidden;margin-bottom:18px}.progress:after{content:"";display:block;height:100%;width:var(--progress,5%);background:linear-gradient(90deg,#6c5cff,#c45cff);transition:.25s}.status-row{display:flex;justify-content:space-between;color:#b6c0dc;font-size:14px;margin-bottom:28px}.play-btn{display:block;width:180px;height:180px;margin:12px auto 34px;border:0;border-radius:50%;font-size:23px;font-weight:bold;color:#fff;background:linear-gradient(145deg,#6c5cff,#bd4cff);box-shadow:0 0 45px rgba(132,83,255,.35);cursor:pointer}.search-wrap{position:relative}.search-wrap input{width:100%;padding:17px 18px;font-size:17px;border-radius:13px;border:1px solid #34405e;background:#0b1120;color:#fff;outline:none}.suggestions{position:absolute;z-index:10;left:0;right:0;top:calc(100% + 6px);background:#171f36;border:1px solid #384461;border-radius:12px;max-height:300px;overflow:auto}.suggestion{padding:13px 15px;cursor:pointer;border-bottom:1px solid #27314a}.suggestion:hover{background:#242e4a}.actions{display:flex;gap:12px;margin-top:17px}.actions button,.modal button{flex:1;padding:14px 18px;border:0;border-radius:11px;background:#7259ff;color:#fff;font-weight:bold;cursor:pointer}.actions button:disabled{opacity:.45;cursor:not-allowed}.actions .secondary{background:#27314a}.message{min-height:24px;margin-top:17px;color:#ffca5c}.hidden{display:none!important}.modal{position:fixed;inset:0;background:rgba(3,5,12,.82);display:flex;align-items:center;justify-content:center;padding:20px;z-index:30}.modal-card{max-width:460px;width:100%;text-align:center;background:#121a2d;border:1px solid #33405f;border-radius:22px;padding:35px}.result-icon{font-size:70px;font-weight:bold}.modal-card h2{font-size:32px;margin:8px}.modal-card p{color:#bbc4dd;font-size:17px}@media(max-width:600px){.topbar{align-items:flex-start}.topbar-actions{flex-direction:column;align-items:stretch}.restart-btn{padding:11px 12px}.topbar h1{font-size:32px}.game-card{padding:20px}.play-btn{width:145px;height:145px}.actions{flex-direction:column}.status-row{gap:10px;flex-direction:column}}
.history-card{margin-top:22px;background:#11182b;border:1px solid #27314d;border-radius:22px;padding:24px 30px;box-shadow:0 20px 70px rgba(0,0,0,.22)}
.history-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.history-head h2{margin:0;font-size:22px}.history-head p{margin:5px 0 0;color:#8f9ab8;font-size:14px}.history-count{background:#202a45;color:#c9d2ec;border-radius:999px;padding:8px 12px;font-size:13px;white-space:nowrap}.history-empty{padding:22px 5px;color:#8995b5;text-align:center;border-top:1px solid #222c46}.history-table-wrap{overflow-x:auto}.history-table{width:100%;border-collapse:collapse;min-width:650px}.history-table th{text-align:left;color:#7f8baa;font-size:12px;text-transform:uppercase;letter-spacing:.05em;padding:11px 10px;border-bottom:1px solid #2a3552}.history-table td{padding:14px 10px;border-bottom:1px solid #202a43;color:#dce3f7;vertical-align:middle}.history-table tbody tr:last-child td{border-bottom:0}.history-song strong{display:block;color:#fff}.history-song span{display:block;color:#8e9ab8;font-size:13px;margin-top:3px}.result-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;font-weight:bold;font-size:12px;white-space:nowrap}.result-badge.good{background:rgba(61,201,143,.13);color:#70e0ae;border:1px solid rgba(61,201,143,.22)}.result-badge.bad{background:rgba(255,99,123,.12);color:#ff8699;border:1px solid rgba(255,99,123,.20)}.history-points.good{color:#70e0ae;font-weight:bold}.history-points.bad{color:#8d98b5}.history-muted{color:#96a2c0}
@media(max-width:600px){.history-card{padding:20px}.history-head{align-items:flex-start}.history-count{margin-top:2px}}
.result-panel{text-align:center;padding:18px 8px 4px}.result-panel-icon{font-size:64px;font-weight:bold;line-height:1}.result-panel h2{font-size:32px;margin:8px 0}.result-panel-answer{font-size:22px;font-weight:bold;color:#fff;margin:10px 0}.result-panel-points{font-size:18px;color:#70e0ae;font-weight:bold}.result-panel-listen{color:#aeb9d6;margin:20px 0 8px}.result-audio-status{color:#8f9ab8;font-size:14px;min-height:20px;margin-bottom:20px}.result-next-btn{min-width:230px;padding:15px 24px;border:0;border-radius:12px;background:#7259ff;color:#fff;font-weight:bold;font-size:16px;cursor:pointer}.result-next-btn:hover{filter:brightness(1.08)}

.actions .danger{background:linear-gradient(135deg,#ef4444,#b91c1c);border:1px solid #ef4444;color:#fff}.actions .danger:hover{background:linear-gradient(135deg,#f87171,#dc2626);filter:brightness(1.05)}
.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.site-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 320px;
    max-height: 150px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .site-logo img {
        max-width: 95%;
        max-height: 110px;
    }
}
.volume-control{display:flex;align-items:center;justify-content:center;gap:10px;margin:-16px auto 28px;max-width:360px;color:#aeb9d6}.volume-control input[type=range]{width:100%;accent-color:#7a5cff;cursor:pointer}.volume-icon{font-size:18px}.volume-value{width:48px;text-align:right;font-size:13px;color:#9da8c6;font-variant-numeric:tabular-nums}

.result-volume-control { margin: 16px auto 18px; max-width: 420px; }
