/*
Theme Name: Track Lock Demo
Description: Παιχνίδι πίστας με συμμετοχές AJAX και δημόσια κατάταξη.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: track-lock-demo
License: GNU General Public License v2 or later
*/

    * { box-sizing: border-box; }
    body { margin: 0; background: #101827; color: #eef4ff; font: 16px system-ui, sans-serif; }
    main { max-width: 1040px; margin: auto; padding: 24px 16px; }
    header { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
    h1 { margin: 0; font-size: clamp(24px, 4vw, 36px); }
    p { color: #b7c6db; line-height: 1.6; }
    .controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
    #timer { font-size: 28px; font-variant-numeric: tabular-nums; }
    button { border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 650; background: #7ce3bc; color: #10251e; cursor: pointer; }
    button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
    .board { margin-top: 18px; border: 1px solid #334259; border-radius: 20px; overflow: hidden; background: #182438; }
    svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
    #road { stroke: #52627a; stroke-width: 62; stroke-linecap: round; stroke-linejoin: round; fill: none; }
    #centerline { stroke: #c6d3e6; stroke-width: 2; stroke-dasharray: 9 12; fill: none; }
    #trail { stroke: #7ce3bc; stroke-width: 5; fill: none; stroke-linecap: round; opacity: .65; }
    #car { cursor: grab; }
    #car.dragging { cursor: grabbing; }
    #finger { fill: #7ce3bc; fill-opacity: .12; stroke: #7ce3bc; stroke-width: 2; pointer-events: none; }
    text { font: bold 15px system-ui, sans-serif; fill: #eef4ff; }
    #status { min-height: 26px; }
  
[hidden] { display:none !important; }
button:disabled { opacity:.5; cursor:wait; }
#participation { padding:20px; border:1px solid #334259; border-radius:16px; margin:20px 0; }
input { font:inherit; padding:12px; border-radius:8px; border:1px solid #52627a; max-width:100%; margin:8px; }
#save-status { min-height:26px; color:#7ce3bc; }
#leaderboard { margin-top:32px; }
table { width:100%; border-collapse:collapse; }
th,td { padding:12px; text-align:left; border-bottom:1px solid #334259; }
