/* Drake Soul - page-specific styles only */

.game-shell {
    position: relative;
    overflow: visible;
}

.mobile-only-notice {
    display: none;
    max-width: 520px;
    margin: 20px auto;
    padding: 16px;
    text-align: center;
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid #00cccc;
    border-radius: 8px;
    color: #e6e6e6;
}

#game-wrap {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0 8px;
}

#drakeSoulCanvas {
    display: block;
    width: min(520px, 100%);
    height: auto;
    border: 2px solid #00cccc;
    box-shadow: 0 0 20px rgba(0, 204, 204, 0.4), 0 0 40px rgba(0, 204, 204, 0.15);
    background: #0a0a0a;
    touch-action: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23ffb450' stroke-width='2' stroke-linecap='square'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Cpath d='M16 2v6M16 24v6M2 16h6M24 16h6'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='3' fill='none' stroke='%23ff6a00' stroke-width='1.5'/%3E%3C/svg%3E") 16 16,
        crosshair;
}

@media (max-height: 940px) {
    #drakeSoulCanvas {
        width: min(460px, 100%);
    }
}

@media (max-width: 760px) {
    #drakeSoulCanvas {
        width: 100%;
        height: auto;
    }
}

/* ---- How to Play (matches site .game-info standard) ---- */
.game-info {
    max-width: 620px;
    margin: 20px auto;
    background: rgba(15, 15, 15, .9);
    border: 1px solid #00cccc;
    border-radius: 8px;
    padding: 14px clamp(18px, 3vw, 34px);
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 214, 214, .25);
}

.game-info h3 {
    margin: 0 0 6px;
    color: #00cccc;
    font-size: 1.3rem;
}

.game-info ul {
    list-style: disc inside;
    margin: 0 auto;
    padding: 0;
    font-size: .95rem;
    line-height: 1.55;
    text-align: center;
    max-width: 560px;
}

.game-info li {
    margin-bottom: 4px;
}

/* ---- Drake Name + START bar ---- */
#name-row {
    max-width: 560px;
    margin: 10px auto 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.back-link {
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
}

#name-row label {
    color: #00cccc;
    font-size: 14px;
    white-space: nowrap;
}

#playerName {
    background: #111;
    border: 1px solid #00cccc;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    padding: 4px 10px;
    outline: none;
    width: 180px;
}

#playerName:focus {
    border-color: #00ffff;
    box-shadow: 0 0 6px rgba(0, 204, 204, 0.5);
}

#startBtn {
    background: #111;
    border: 1px solid #00cccc;
    border-radius: 4px;
    color: #00cccc;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    padding: 4px 16px;
    transition: background 0.15s, color 0.15s;
}

#startBtn:hover {
    background: #00cccc;
    color: #0a0a0a;
}

/* ---- Leaderboard (matches cryptinvaders #lbTable style) ---- */
#leaderboard-panel {
    max-width: 560px;
    margin: 0 auto 16px;
    text-align: center;
}

#lb-table {
    width: 100%;
    max-width: 360px;
    margin: 18px auto 40px;
    border-collapse: collapse;
    font-size: .9rem;
    background: rgba(17, 17, 17, .92);
    border: 1px solid #00cccc;
}

#lb-table th,
#lb-table td {
    padding: 8px 10px;
    border: 1px solid #013535;
}

#lb-table th {
    background: #00cccc;
    color: #000;
    font-weight: 700;
}

#lb-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .04);
}

@media (max-width: 920px), (hover: none) and (pointer: coarse) {
    .mobile-only-notice {
        display: block;
    }

    .desktop-game {
        display: none;
    }
}
