.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2em;
    padding: 2em 0 2em 0;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
#clock-canvas {
    background: #fffbe6;
    border-radius: 50%;
    box-shadow: 0 2px 12px #fad0c488;
    width: 420px;
    height: 420px;
    max-width: 80vw;
    max-height: 50vw;
    display: block;
    margin: 2em 0 2em 0;
}

/* GTA-style stats table */
.general-stats-table {
    width: 100%;
    max-width: 720px;
    margin: 2em auto 2em auto;
    background: linear-gradient(90deg, #222 80%, #444 100%);
    border-radius: 12px;
    box-shadow: 0 4px 24px #000a, 0 0 0 4px #fff20099;
    border: 3px solid #fff200;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #fff200;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    overflow: hidden;
}
.general-stats-table th, .general-stats-table td {
    padding: 0.7em 1em;
    border-bottom: 2px solid #ff6b81;
    text-align: left;
    background: rgba(34,34,34,0.85);
}
.general-stats-table th {
    background: #222;
    color: #fff200;
    font-weight: 900;
    text-shadow: 1px 1px 0 #ff6b81, 0 0 6px #fad0c4;
}
.general-stats-table tr:last-child td {
    border-bottom: none;
}
.progress-bar {
    width: 100%;
    height: 1.2em;
    background: #444;
    border-radius: 6px;
    box-shadow: 0 2px 8px #000a;
    overflow: hidden;
    margin-top: 0.3em;
    position: relative;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff200 0%, #ff6b81 100%);
    border-radius: 6px 0 0 6px;
    transition: width 0.5s;
    box-shadow: 0 0 8px #fff20088;
}
.progress-bar-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #222;
    font-weight: 900;
    font-size: 0.95rem;
    text-shadow: 0 0 4px #fff;
}

.standard-table {
    max-width: 720px !important;
}

.rainbow-container {
    margin: auto;
    width: 70vw;
    height: 35vw;
    overflow: hidden;
    position: relative;
    background-color: inherit;
}

.rainbow-container>div {
    border-radius: 70vw;
}

.rainbow-red {
    position: absolute;
    width: 70vw;
    height: 70vw;
}

.rainbow-orange {
    position: absolute;
    width: 66vw;
    height: 66vw;
    top: 2vw;
    left: 2vw;
}

.rainbow-yellow {
    position: absolute;
    width: 62vw;
    height: 62vw;
    top: 4vw;
    left: 4vw;
}

.rainbow-green {
    position: absolute;
    width: 58vw;
    height: 58vw;
    top: 6vw;
    left: 6vw;
}

.rainbow-blue {
    position: absolute;
    width: 54vw;
    height: 54vw;
    top: 8vw;
    left: 8vw;
}

.rainbow-purple {
    position: absolute;
    width: 50vw;
    height: 50vw;
    top: 10vw;
    left: 10vw;
}

.rainbow-brown {
    position: absolute;
    width: 46vw;
    height: 46vw;
    top: 12vw;
    left: 12vw;
}

.rainbow-black {
    position: absolute;
    width: 42vw;
    height: 42vw;
    top: 14vw;
    left: 14vw;
}

.rainbow-white {
    position: absolute;
    width: 38vw;
    height: 38vw;
    top: 16vw;
    left: 16vw;
}

.rainbow-middle {
    background-color: rgb(211, 211, 211);
    position: absolute;
    width: 34vw;
    height: 34vw;
    top: 18vw;
    left: 18vw;
}

.rainbow-container>div[title] {
    cursor: help;
}

@media (max-width: 600px) {
    #clock-canvas {
        width: 250px;
        height: 250px;
        max-height: 80vw;
        margin: 1.2em 0 1.2em 0;
    }
    .stats-container {
        padding: 1em 0 1em 0;
    }
    .general-stats-table {
        font-size: 1rem;
    }
    .progress-bar-label {
        font-size: 0.50rem;
    }
    .standard-table {
        max-width: 98vw !important;
    }
    .rainbow-container {
        max-width: 98vw !important;
    }
}