body{
    font-family:Arial;
    background:#f5f5f5;
    max-width:900px;
    margin:auto;
    padding:20px;
}

.card{
    background:white;
    padding:20px;
    margin-bottom:15px;
    border-radius:8px;
}

input,
textarea{
    width:100%;
    padding:10px;
    margin-top:5px;
    margin-bottom:10px;
}

button{
    background:#1976d2;
    color:white;
    border:0;
    padding:12px 20px;
    cursor:pointer;
}

:root{
    --red:#e10600;
    --blue:#0a2f6b;
    --blue2:#102f55;
    --bg:#020812;
    --card:#07131f;
    --text:#ffffff;
    --border:#16314f;
}

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

body{
    background:#020812;
    color:white;
    font-family:Segoe UI,Tahoma,sans-serif;
    min-height:100vh;

    background-image:
        linear-gradient(
            rgba(0,0,0,.75),
            rgba(0,0,0,.85)
        ),
        url('../assets/yamaha-bg.png');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}

.container{
    max-width:1400px;
    margin:auto;
    padding:20px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.logo{
    height:90px;
}

.offline{
    background:#111;
    border:1px solid var(--red);
    padding:10px 15px;
    border-radius:8px;
    color:white;
}

.card{
    background:rgba(7,19,31,.95);

    border:1px solid var(--border);

    border-radius:12px;

    padding:20px;

    box-shadow:
    0 0 20px rgba(0,0,0,.5);
}

.section-title{
    color:white;
    font-size:22px;
    margin-bottom:20px;
    border-left:6px solid var(--red);
    padding-left:10px;
}

.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

label{
    display:block;
    margin-bottom:5px;
    color:#bbb;
}

input,
select,
textarea{
    width:100%;
    background:#081624;
    border:1px solid #173250;
    color:white;
    padding:12px;
    border-radius:6px;
}

input:focus,
textarea:focus{
    outline:none;
    border-color:#2b74d6;
}

.row{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.row3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.row4{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.btn{
    background:var(--red);
    border:none;
    color:white;
    padding:15px 25px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

.btn:hover{
    background:#ff241d;
}

.bestlap{
    background:#062f14;
    color:#5dff87;
    font-size:32px;
    font-weight:bold;
    padding:15px;
    border-radius:8px;
}

.history{
    margin-top:20px;
}

.history table{
    width:100%;
    border-collapse:collapse;
}

.history th{
    background:#0c1e32;
}

.history td,
.history th{
    padding:12px;
    border:1px solid #173250;
    text-align:center;
}

.rating{
    display:flex;
    gap:5px;
    font-size:28px;
}

.star{
    color:#3a4d66;
}

.star.active{
    color:#2d7dff;
}

@media(max-width:1000px){

.grid{
    grid-template-columns:1fr;
}

.row4,
.row3,
.row{
    grid-template-columns:1fr;
}

.logo{
    height:60px;
}
}