* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1024;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    overflow: hidden;
}

.game-wrap {
    width: 1000px;
    transform-origin: center center;
}

#game {
    position: relative;
    width: 1000px;
    height: 560px;
    border: 4px solid #6b2d91;
    border-radius: 16px;
    overflow: hidden;
    background: #87CEEB;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

#view,
#view canvas {
    width: 1000px;
    height: 560px;
}

#hud {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(rgba(8, 28, 16, 0.7), transparent);
    font-weight: bold;
    text-shadow: 0 2px 0 #000;
    pointer-events: none;
}

#back-btn,
#rides-btn {
    position: absolute;
    bottom: 12px;
    z-index: 4;
    padding: 8px 12px;
    background: #2a6fad;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

#back-btn {
    right: 12px;
}

#rides-btn {
    left: 12px;
    background: #662D91;
}

.panel {
    position: absolute;
    inset: 24px;
    z-index: 5;
    overflow-y: auto;
    padding: 24px;
    border-radius: 16px;
    background: rgba(16, 32, 24, 0.94);
    text-align: center;
}

.panel h1 {
    color: #FFD100;
    margin-top: 0;
}

.panel button {
    margin-top: 12px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #2ECC40;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.panel::-webkit-scrollbar {
    width: 12px;
}

.panel::-webkit-scrollbar-thumb {
    background: #2ECC40;
    border-radius: 8px;
}

.panel-link {
    color: #FFD100;
    font-weight: bold;
}

.pick-panel {
    overflow-y: auto;
    padding: 16px 18px 18px;
}

.pick-panel h1 {
    margin-bottom: 4px;
    font-size: 28px;
}

.pick-panel p {
    margin: 0 0 10px;
}

.track-picks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.panel button.track-pick {
    margin-top: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    background: #4b2a7a;
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    line-height: 1.2;
}

.track-pick small {
    display: block;
    margin-top: 2px;
    font-weight: normal;
    font-size: 12px;
    opacity: 0.88;
}

.panel button.track-pick:hover {
    background: #2ECC40;
}

.panel button.track-pick.locked,
.panel button.track-pick.locked:hover {
    background: #3a3a3a;
    color: #cfcfcf;
    cursor: not-allowed;
}
