/* ============================================================
   STYLE TY‑LUDIC — VERSION STABLE POUR TETRIS
   ============================================================ */

body {
    background: #000;
    color: #00ffff;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------
   CADRE ARCADE
------------------------------------------------------------ */

#arcade-frame {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
#tl-arcade-frame {
    background: #111;
    padding: 20px;
    border: 8px solid #444;
    border-radius: 20px;
    box-shadow: 0 0 40px #0ff inset, 0 0 20px #0ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px;
    margin: 20px auto;
}


/* ------------------------------------------------------------
   MARQUEE
------------------------------------------------------------ */

#marquee {
    font-size: 18px;
    padding: 20px 0;
}

/* ------------------------------------------------------------
   HUD
------------------------------------------------------------ */

#hud {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
}

/* ------------------------------------------------------------
   BEZEL + CANVAS WRAPPER
------------------------------------------------------------ */

#bezel {
    border: 4px solid #00ffff;
    padding: 10px;
    margin-bottom: 10px;
}

.canvas-wrapper {
    width: 100%;
    /* ⭐ NE PAS imposer de hauteur */
}

/* Bezel */
#tl-bezel {
    background: radial-gradient(circle, #222, #000);
    border: 6px solid #333;
    border-radius: 10px;
    box-shadow: 0 0 20px #0ff inset;
    padding: 10px;
    width: 500px;
}

/* Canvas wrapper */
.tl-canvas-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}


/* ------------------------------------------------------------
   CANVAS — VERSION STABLE
------------------------------------------------------------ */

canvas {
    width: 100%;
    height: auto;
    max-height: 480px;   /* ⭐ limite l'affichage du canvas */
    display: block;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   CONTROLS
------------------------------------------------------------ */

#controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

#controls button {
    font-size: 24px;
    padding: 10px 20px;
    background: #003344;
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Press Start 2P';
}

/* ------------------------------------------------------------
   HIGH SCORES (désactivé)
------------------------------------------------------------ */

#highscores {
    display: none; /* ⭐ On désactive totalement */
}
