/* print.css — B4 print stylesheet for Time for Spelling.
   On screen, #print-root (the report/worksheet container filled by
   DashboardScene) is hidden. When printing, everything else on the page —
   game canvas, overlays, loader — is hidden and only #print-root shows,
   in a clean black-on-white layout. */

#print-root {
    display: none;
}

@media print {
    body {
        background: #fff !important;
        overflow: visible !important;
    }

    #game-container,
    #overlay-root,
    #ui-root,
    #spellbinder-loader,
    #file-protocol-warning,
    #phaser-error {
        display: none !important;
    }

    #print-root {
        display: block !important;
        position: static;
        width: 100%;
        color: #111;
        font-family: Georgia, 'Times New Roman', serif;
    }

    .print-doc {
        max-width: 700px;
        margin: 0 auto;
        padding: 12px;
    }

    .print-doc h1 {
        font-size: 24px;
        margin: 0 0 4px;
        color: #111;
    }

    .print-doc h2 {
        font-size: 17px;
        margin: 20px 0 6px;
        border-bottom: 1.5px solid #111;
        padding-bottom: 3px;
        color: #111;
    }

    .print-sub {
        font-size: 13px;
        color: #444;
        margin: 0 0 14px;
    }

    .print-note {
        font-size: 13px;
        color: #444;
        margin: 0 0 16px;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13.5px;
        margin-bottom: 6px;
    }

    .print-table th {
        text-align: left;
        border: 1px solid #999;
        background: #eee;
        padding: 5px 8px;
    }

    .print-table td {
        border: 1px solid #999;
        padding: 5px 8px;
    }

    .print-chips {
        line-height: 2;
    }

    .print-chip {
        display: inline-block;
        border: 1px solid #666;
        border-radius: 10px;
        padding: 1px 9px;
        margin: 0 2px;
        font-size: 13px;
    }

    .print-foot {
        margin-top: 26px;
        font-size: 11px;
        color: #777;
        text-align: center;
    }

    /* Worksheet */
    .print-ws-word {
        margin-bottom: 18px;
        break-inside: avoid;
    }

    .print-ws-sentence {
        font-size: 15.5px;
        margin: 0 0 8px;
    }

    .print-line {
        border-bottom: 1.5px dotted #888;
        height: 26px;
        margin-bottom: 6px;
    }

    .print-blank-word {
        color: #444;
    }
}

@media screen {
    #print-root {
        display: none !important;
    }
}
