/* free_draw.php: the whole board on one screen (see js/free-draw.js).
   Loaded before draw-session-float.css, hence the body prefix. */
#save-drill, #gk-save-state, #standalone-banner, #draw-ctx-page-title { display: none !important; }
body .free-note { color: #94a3b8; font-weight: 400; font-size: .85rem; margin-left: .4rem; }
body .draw-ctx-header-row { gap: 8px; margin: 0 0 10px; }
body .draw-ctx-header-row .action-buttons { display: flex !important; gap: 8px; margin: 0 !important; width: auto; flex: 0 0 auto; }
body .draw-ctx-header-row .action-buttons .btn { height: 40px; padding-top: 0; padding-bottom: 0; }
body #free-drill-name { flex: 0 1 320px; min-width: 120px; margin-right: auto; height: 40px; padding: 0 .8rem; background: #0f172a; border: 1px solid #334155; border-radius: 8px; color: #e2e8f0; font-size: .95rem; }
body #free-drill-name:focus { outline: none; border-color: #3b82f6; }
/* Desktop: fill the screen below the toolbar. Capped at 1.15x the width: taller,
   the grass image stops covering it. */
@media (min-width: 1024px) {
    body .drill-maker.drill-maker--canvas-focus { height: max(320px, min(calc(100vh - 190px), calc(100vw * 1.15))) !important; min-height: 320px !important; }
}
/* Below 1024px the page is the zoomed desktop layout (see draw_session.php):
   keep the app's own pitch size and a one-line top bar, as on the draw session page. */
@media (max-width: 1023px) {
    body .free-note { display: none; }
    body .app-back-bar { flex-wrap: nowrap; }
    body .app-back-bar-actions { flex-wrap: nowrap; }
}
body .drill-canvas-stage { margin-bottom: 0; }
/* Where the pitch image doesn't reach the edge, the strip matches its grass. */
body #pitch-bg-layer { background-color: rgb(60, 116, 29) !important; }
/* The ⋮ Drill Details menu opens over the tools panel, not under it. */
body .draw-ctx-menu-panel { z-index: 9500; }
/* Locked type/focus pickers (in Drill Details) + the sign-up dialog they open. */
body select.free-lock { color: #94a3b8; cursor: pointer; }
body select.free-lock option { color: #64748b; }
body select.free-lock option:first-child { color: #94a3b8; }
#free-signup { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 23, .75); }
#free-signup[hidden] { display: none; }
#free-signup .fs-card { position: relative; width: 100%; max-width: 400px; background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 1.8rem 1.6rem 1.5rem; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
#free-signup h2 { margin: .4rem 0 .6rem; font-size: 1.2rem; color: #f1f5f9; }
#free-signup p { margin: 0 0 .7rem; color: #cbd5e1; font-size: .92rem; line-height: 1.5; }
#free-signup .fs-warn { color: #fbbf24; font-size: .85rem; }
#free-signup .fs-lock { font-size: 1.8rem; }
#free-signup .fs-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; }
#free-signup .fs-btn { display: block; margin-top: .6rem; padding: .7rem 1rem; border-radius: 8px; border: 1px solid #334155; color: #e2e8f0; font-weight: 600; text-decoration: none; }
#free-signup .fs-primary { background: #3b82f6; border-color: #3b82f6; color: #fff; }
