body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  width: 100vw;
  height: 100vh;
  background-color: #0a0a0a;
}
#drawing {
    width:100vw;
    height:100vh;
    overflow:hidden;
}
#ads3d {

    position:absolute;

    width:260px;
    height:260px;

    left:0;
    top:0;

    z-index:20;

    pointer-events:auto;

    transform-origin:center center;

}
#walkPanel {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
    display: none;
    padding: 12px;
    color: #fff;
    background: rgba(20, 25, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-family: Arial, sans-serif;
    text-align: center;
}

#walkExit {
    width: 100%;
    padding: 7px 12px;
    margin-bottom: 12px;
    color: white;
    background: #a83232;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.walkKeys {
    display: grid;
    grid-template-columns: 30px 30px 30px;
    gap: 4px;
    justify-content: center;
    margin: 8px 0;
}

.walkKeys span {
    padding: 5px;
    background: #454d55;
    border-radius: 4px;
    font-weight: bold;
}

.walkInfo {
    font-size: 11px;
    color: #ccc;
    line-height: 1.5;
}
#gameTimer {
    margin: 12px 0 5px;
    padding: 8px;
    font-family: monospace;
    font-size: 24px;
    font-weight: bold;
    color: #7dff9b;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}
#gamePoints {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.gamePoint {
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius: 50%;
    background: #454d55;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.gamePoint.visited {
    background: #28a745;
    color: white;
}

#mastOverlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 20;
    display: none;
}

/* =========================
   PLAYER OVERLAY
   ========================= */

#playerOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;

    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

#playerOverlay.active {
    display: flex;
}

.player-panel {
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    background: #171b20;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;

    overflow: hidden;
    color: #eee;

    font-family: Arial, sans-serif;
    font-size: 14px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.player-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 22px;
    flex-shrink: 0;

    background: linear-gradient(135deg, #252d35, #171b20);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.player-panel-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
}

#playerList {
    display: block;
    min-height: 40px;
    overflow-y: auto;
    overflow-x: auto;
    color: #fff;
}

.player-list-head,
.player-row {
    display: grid;

    grid-template-columns:
        60px
        60px
        180px
        180px
        minmax(180px, 1fr)
        120px;

    gap: 16px;
    align-items: center;

    padding: 13px 24px;
    font-variant-numeric: tabular-nums;
    min-width: 800px;
}
.player-list-head,
.player-row {
    display: grid;

    grid-template-columns:
        55px
        90px
        190px
        150px
        minmax(220px, 1fr)
        110px;

    gap: 18px;
    align-items: center;
    padding: 13px 24px;
    font-variant-numeric: tabular-nums;
    min-width: 900px;
}

.player-row:nth-child(even) {
    background: rgba(255,255,255,0.025);
}

.player-row:hover {
    background: rgba(255,255,255,0.075);
}

.player-rank {
    color: #9ca3af;
    font-weight: 700;
}

.player-country {
    white-space: nowrap;
    font-size: 0.85rem;
    color: #d1d5db;
}

.player-id,
.ip-code {
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
    white-space: nowrap;
}

.player-info {
    color: #e5e7eb;
}

.best-time {
    text-align: right;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    color: #6ee7b7;
}

.player-list-state {
    padding: 30px 20px;
    text-align: center;
    color: #9ca3af;
}

.player-list-error {
    color: #f87171;
}

.player-panel-footer {
    padding: 13px 20px;
    flex-shrink: 0;

    background: #14181d;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #6b7280;
    font-size: 0.72rem;
    text-align: center;
}
