/* =========================================================
   TOSIA_OS v17.0 — motyw hakerski / terminal / cyberpunk
   ========================================================= */

:root {
    --bg: #000000;
    --panel-bg: #060b06;
    --panel-border: #0d3b0d;
    --green: #39ff14;
    --green-dim: #1e8f11;
    --blue: #00e5ff;
    --blue-dim: #0a7f8f;
    --red: #ff3b3b;
    --amber: #ffb000;
    --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}

* {
    box-sizing: border-box;
}

/* Nic nie wypycha strony w bok na telefonie. */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, canvas, pre, table, iframe {
    max-width: 100%;
}

.terminal-frame, .tosia-card {
    max-width: 100%;
    overflow-wrap: anywhere;
}

html, body {
    background: var(--bg);
    color: var(--green);
    font-family: var(--font-mono);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a, .btn-link {
    color: var(--blue);
}

::selection {
    background: var(--green);
    color: #000;
}

h1, h2, h3, h4 {
    font-family: var(--font-mono);
    color: var(--green);
    text-shadow: 0 0 6px rgba(57, 255, 20, 0.55);
    letter-spacing: 1px;
}

/* Layout */
.page {
    min-height: 100vh;
}

main {
    min-height: 100vh;
}

.content {
    padding: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.sidebar {
    background: #000;
}

/* Terminal chrome */
.terminal-frame {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.6);
    padding: 1rem;
    margin-bottom: 1rem;
}

.terminal-title {
    color: var(--blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.terminal-text {
    white-space: normal;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* W <pre> (np. briefing) zachowujemy łamanie linii z treści. */
pre.terminal-text {
    white-space: pre-wrap;
}

/* Kursor podczas efektu wpisywania (typewriter.js). */
.tw-typing::after {
    content: '▋';
    color: var(--green);
    animation: blink 0.8s steps(1) infinite;
}

/* Black Market Roulette */
.roulette-wrap {
    position: relative;
    width: 280px;
    height: 292px;
    margin: 1rem auto;
}

.roulette-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid var(--green);
    filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.8));
    z-index: 2;
}

.roulette-wheel {
    position: absolute;
    top: 12px;
    left: 50%;
    margin-left: -140px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 3px solid var(--green-dim);
    box-shadow: 0 0 24px rgba(57, 255, 20, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.6);
    transition: transform 4s cubic-bezier(0.15, 0.85, 0.25, 1);
    will-change: transform;
}

.roulette-label {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--green);
    font-size: .85rem;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

/* Małe numery na kole (0-36). */
.roulette-num {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #f2fff2;
    font-size: .5rem;
    font-weight: bold;
    text-shadow: 0 0 3px #000, 0 0 3px #000;
    pointer-events: none;
}

/* Wynik w środku koła. */
.roulette-result {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 74px;
    height: 74px;
    margin-left: -37px;
    transform: translateY(103px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    background: #060b06;
    border: 3px solid var(--green-dim);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(0, 0, 0, 0.7);
    z-index: 3;
}

.roulette-result.red { border-color: #8e1616; color: #ff6b6b; }
.roulette-result.black { border-color: #555; color: #eaeaea; }
.roulette-result.green { border-color: #0d6b2f; color: var(--green); }

/* Historia ostatnich wyników. */
.rl-history {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    margin: 0 auto 1rem;
    max-width: 720px;
    font-size: .8rem;
}

.rl-chip-history {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 .25rem;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
}

.rl-chip-history.red { background: #8e1616; }
.rl-chip-history.black { background: #101010; }
.rl-chip-history.green { background: #0d6b2f; }

/* Pasek żetonów (nominały). */
.rl-chipbar {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    align-items: center;
}

.rl-chipbtn {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 2px dashed var(--amber);
    background: #120d00;
    color: var(--amber);
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
    transition: all .12s ease-in-out;
}

.rl-chipbtn:hover:not(:disabled) { box-shadow: 0 0 10px rgba(255, 176, 0, .6); }
.rl-chipbtn.active {
    background: var(--amber);
    color: #000;
    border-style: solid;
    box-shadow: 0 0 12px rgba(255, 176, 0, .7);
}
.rl-chipbtn:disabled { opacity: .4; cursor: not-allowed; }

/* Stół ruletki - kompaktowy, mieści się na telefonie bez przewijania w bok. */
.rl-board {
    display: flex;
    gap: 2px;
    width: 100%;
}

.rl-numbers {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.rl-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 3px;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: filter .1s ease-in-out, box-shadow .1s ease-in-out;
}

.rl-cell-num { font-size: .8rem; }

.rl-cell.red { background: #8e1616; }
.rl-cell.black { background: #101010; }
.rl-cell.green { background: #0d6b2f; }
.rl-cell.rl-zero {
    flex: 0 0 2rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.rl-cell.rl-zero .rl-cell-num { font-size: 1.1rem; }
.rl-cell:hover:not(.dis) { filter: brightness(1.35); box-shadow: 0 0 8px rgba(57, 255, 20, .5); }
.rl-cell.dis { opacity: .6; cursor: not-allowed; }

/* Żeton położony na polu. */
.rl-chip {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 .18rem;
    border-radius: 50%;
    background: var(--amber);
    color: #000;
    font-size: .62rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    box-shadow: 0 0 6px rgba(255, 176, 0, .85);
    z-index: 2;
}

.rl-hint {
    text-align: center;
    opacity: .55;
    font-size: .72rem;
    margin: .35rem 0 .5rem;
}

.rl-dozens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.rl-outside-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 5px;
}

.rl-out {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 1px solid var(--green-dim);
    border-radius: 5px;
    background: #071007;
    color: var(--green);
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
    transition: filter .1s ease-in-out, box-shadow .1s ease-in-out;
}

.rl-out-label { font-size: .9rem; letter-spacing: .5px; }

.rl-out.red { background: #3a0d0d; color: #ff8a8a; border-color: #8e1616; }
.rl-out.black { background: #151515; color: #ddd; border-color: #555; }
.rl-out:hover:not(.dis) { filter: brightness(1.4); box-shadow: 0 0 10px rgba(57, 255, 20, .5); }
.rl-out.dis { opacity: .6; cursor: not-allowed; }

.rl-mult { display: block; font-size: .66rem; opacity: .7; margin-top: .1rem; }

.rl-actions {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}
.rl-actions .tosia-btn { flex: 1; padding: .5rem; }

/* Licznik nieprzeczytanych wiadomości w nawigacji. */
.nav-unread {
    display: inline-block;
    min-width: 1.3rem;
    margin-left: .4rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--green);
    color: #000;
    font-size: .75rem;
    font-weight: bold;
    text-align: center;
    animation: blink 1.2s steps(1) infinite;
}

.blink-cursor::after {
    content: '_';
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Buttons */
.tosia-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    font-family: var(--font-mono);
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s ease-in-out;
}

.tosia-btn:hover, .tosia-btn:focus {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.6);
}

.tosia-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tosia-btn-blue {
    border-color: var(--blue);
    color: var(--blue);
}

.tosia-btn-blue:hover, .tosia-btn-blue:focus {
    background: var(--blue);
    color: #000;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.tosia-btn-danger {
    border-color: var(--red);
    color: var(--red);
}

.tosia-btn-danger:hover {
    background: var(--red);
    color: #000;
    box-shadow: 0 0 14px rgba(255, 59, 59, 0.6);
}

/* Inputs */
.tosia-input, .tosia-textarea, .tosia-select {
    width: 100%;
    background: #000;
    border: 1px solid var(--green-dim);
    color: var(--green);
    font-family: var(--font-mono);
    padding: 0.6rem 0.75rem;
    border-radius: 3px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.tosia-input:focus, .tosia-textarea:focus, .tosia-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.tosia-label {
    display: block;
    color: var(--blue);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

/* HUD / status bar */
.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--panel-border);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.hud .hud-item {
    color: var(--blue);
}

.hud .hud-item strong {
    color: var(--green);
}

/* Cards / product / quest tiles */
.tosia-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
}

.tosia-card.locked {
    opacity: 0.45;
    filter: grayscale(0.4);
}

.tosia-card h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
}

.tosia-badge {
    display: inline-block;
    border: 1px solid var(--blue);
    color: var(--blue);
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tosia-price {
    color: var(--amber);
    font-weight: bold;
}

.status-pending { color: var(--amber); }
.status-approved { color: var(--green); }
.status-rejected { color: var(--red); }
.status-delivered { color: var(--green); }

/* Fullscreen gate (clock / login) */
.gate-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: radial-gradient(ellipse at center, #041004 0%, #000 70%);
}

.gate-clock {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    letter-spacing: 2px;
    color: var(--green);
    text-shadow: 0 0 16px rgba(57, 255, 20, 0.7);
    margin: 1rem 0;
}

.hidden {
    display: none !important;
}

/* Ball bounce game */
.ball-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;          /* bez poziomego paddingu - inaczej kanwa liczy złą szerokość i robi się nierówny margines */
    width: 100%;
    user-select: none;
}

.juggle-canvas {
    display: block;
    margin: 0.5rem auto 0;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--green-dim);
    border-radius: 8px;
    background: radial-gradient(ellipse at center, #041004 0%, #000 80%);
    touch-action: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.ball-count {
    font-size: 1.6rem;
    color: var(--green);
    margin-top: 0.75rem;
    text-align: center;
}

/* Progress bar */
.tosia-progress {
    width: 100%;
    height: 10px;
    background: #061006;
    border: 1px solid var(--green-dim);
    border-radius: 6px;
    overflow: hidden;
    margin: 0.5rem 0 1rem;
}

.tosia-progress-fill {
    height: 100%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
    transition: width 0.25s ease-out;
}

/* Nav */
.top-row {
    background: #000 !important;
    border-bottom: 1px solid var(--panel-border);
}

.navbar-brand {
    color: var(--green) !important;
    font-family: var(--font-mono);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.nav-scrollable {
    background: #000;
}

.nav-item .nav-link, .nav-item .nav-link.active {
    color: var(--green) !important;
    font-family: var(--font-mono);
}

.nav-item .nav-link:hover {
    color: var(--blue) !important;
}

.alert-msg {
    border: 1px solid var(--red);
    color: var(--red);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.ok-msg {
    border: 1px solid var(--green);
    color: var(--green);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

table.tosia-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

table.tosia-table th, table.tosia-table td {
    border: 1px solid var(--panel-border);
    padding: 0.4rem 0.5rem;
    text-align: left;
}

table.tosia-table th {
    color: var(--blue);
}

/* Blazor error UI - keep but reskin minimally.
   IMPORTANT: display:none is the default state - Blazor's own JS flips this
   to visible only when a real unhandled error occurs. */
#blazor-error-ui {
    display: none;
    background: var(--red);
    color: #000;
    font-family: var(--font-mono);
    padding: 1rem 1rem 1rem 1.5rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #300;
    padding: 1rem 1rem 1rem 1.5rem;
    color: var(--red);
    border: 1px solid var(--red);
}

.blazor-error-boundary::after {
    content: "BŁĄD SYSTEMU.";
}

/* =========================================================
   Dopasowanie mobilne
   ========================================================= */
@media (max-width: 560px) {
    .content { padding: .55rem; }

    /* Breach na mały ekran */
    .breach { padding: .55rem; }
    .breach-grid, .breach-grid-6 { max-width: 100%; }
    .breach-cell { font-size: .8rem; }
    .breach-slot { min-width: 2rem; font-size: .78rem; }
    .breach-tok { padding: .1rem .3rem; font-size: .8rem; }

    /* Ruletka - mniejsze pola i etykiety */
    .rl-cell { min-height: 1.9rem; }
    .rl-cell-num { font-size: .72rem; }
    .rl-out { min-height: 2.7rem; }
    .rl-out-label { font-size: .8rem; }
    .rl-chipbtn { width: 2.3rem; height: 2.3rem; }

    /* D-pad Firewalla - trochę mniejszy, ale wciąż wygodny */
    .fw-dpad {
        grid-template-columns: repeat(3, 3rem);
        grid-template-rows: repeat(3, 3rem);
    }

    /* Konsola hakerska - węższe wiersze się mieszczą */
    .hack-console { font-size: .66rem; height: 7.5rem; }
}

/* Listy w instrukcji. */
.instr-list {
    margin: .25rem 0 .5rem 0;
    padding-left: 1.2rem;
    line-height: 1.6;
    font-size: .95rem;
}

.instr-list li { margin-bottom: .3rem; }
.instr-list li strong { color: var(--green); }

/* Panel admina - siatka ustawień. */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .5rem;
}

.admin-grid .admin-mini {
    display: block;
    color: var(--blue);
    font-size: .7rem;
    opacity: .8;
    margin-bottom: .15rem;
}

.admin-grid .tosia-input { margin-bottom: 0; }

/* Dyskretny link do logowania Centrali na bramce. */
.gate-centrala-link {
    position: fixed;
    bottom: .8rem;
    right: 1rem;
    color: var(--green-dim);
    opacity: .45;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: 2px;
    text-decoration: none;
}
.gate-centrala-link:hover { opacity: .9; color: var(--green); }

/* Animowana konsola hakerska (cooldowny / odblokowywanie). */
.hack-console {
    margin: .6rem 0;
    padding: .6rem .7rem;
    height: 8.5rem;
    overflow: hidden;
    background: #010401;
    border: 1px solid var(--green-dim);
    border-radius: 6px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: .72rem;
    line-height: 1.25;
    white-space: pre;
    text-shadow: 0 0 6px rgba(57, 255, 20, .5);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, .7), 0 0 10px rgba(57, 255, 20, .12);
    opacity: .9;
}

/* Treść wiadomości - zachowaj podziały wierszy (entery). */
.msg-body {
    white-space: pre-line;
}

/* Zdjęcia-dowody w zleceniach. */
.quest-photo {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin: .4rem 0;
    border: 1px solid var(--green-dim);
    border-radius: 6px;
}

.quest-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    margin: .3rem 0;
}

/* Firewall - labirynt + D-pad. */
.firewall-canvas {
    display: block;
    margin: .4rem auto 0;
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--green-dim);
    border-radius: 8px;
    background: radial-gradient(ellipse at center, #041004 0%, #000 80%);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.fw-dpad {
    display: grid;
    grid-template-columns: repeat(3, 3.3rem);
    grid-template-rows: repeat(3, 3.3rem);
    gap: .4rem;
    justify-content: center;
    margin: .75rem auto 0;
    touch-action: none;
}

.fw-btn {
    border: 1px solid var(--green);
    background: #071007;
    color: var(--green);
    font-size: 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: background .08s, box-shadow .08s;
}

.fw-btn:active {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 12px rgba(57, 255, 20, .6);
}

.fw-up { grid-column: 2; grid-row: 1; }
.fw-left { grid-column: 1; grid-row: 2; }
.fw-right { grid-column: 3; grid-row: 2; }
.fw-down { grid-column: 2; grid-row: 3; }

/* Grind - przełącznik trybu (sekwencje / breach). */
.grind-modes {
    display: flex;
    gap: .4rem;
    margin-bottom: .75rem;
}

.grind-tab {
    flex: 1;
    padding: .55rem .4rem;
    background: transparent;
    border: 1px solid var(--green-dim);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .12s ease-in-out;
}

.grind-tab:hover { border-color: var(--green); box-shadow: 0 0 8px rgba(57, 255, 20, .35); }
.grind-tab.active {
    background: var(--green);
    color: #000;
    border-color: var(--green);
    box-shadow: 0 0 12px rgba(57, 255, 20, .55);
}

/* Separator "albo" na terminalu. */
.terminal-divider {
    text-align: center;
    color: var(--blue);
    opacity: .6;
    font-size: .8rem;
    letter-spacing: 1px;
    margin: 1.1rem 0 .8rem;
}

/* Minigra Breach Protocol (Naruszenie Protokołu). */
.breach {
    margin-top: .5rem;
    border: 1px solid var(--amber);
    border-radius: 6px;
    padding: .8rem;
    background: #0a0800;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, .6);
}

.breach-label {
    color: var(--blue);
    font-size: .75rem;
    letter-spacing: 1px;
    margin-right: .4rem;
}

.breach-target {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .6rem;
}

.breach-tok {
    border: 1px solid var(--green-dim);
    color: var(--green);
    padding: .1rem .4rem;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 1px;
}

.breach-tok.done { background: var(--green); color: #000; }

.breach-buffer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .8rem;
}

.breach-slot {
    min-width: 2.4rem;
    text-align: center;
    border: 1px dashed var(--green-dim);
    color: var(--green-dim);
    padding: .1rem .3rem;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 1px;
}

.breach-slot.filled {
    border-style: solid;
    border-color: var(--amber);
    color: var(--amber);
}

.breach-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .35rem;
    max-width: 320px;
    margin: 0 auto .6rem;
}

.breach-grid-6 { grid-template-columns: repeat(6, 1fr); max-width: 360px; }

/* Timer breacha. */
.breach-timer {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem;
}

.breach-timerbar {
    flex: 1;
    height: 8px;
    background: #1a1200;
    border: 1px solid var(--green-dim);
    border-radius: 5px;
    overflow: hidden;
}

.breach-timerfill {
    height: 100%;
    background: var(--amber);
    box-shadow: 0 0 8px rgba(255, 176, 0, .8);
    transition: width .25s linear;
}

.breach-secs { color: var(--amber); font-size: .8rem; font-weight: bold; }

/* Dwie sekwencje (demony) do wgrania. */
.breach-daemons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
}

.breach-daemon {
    display: inline-flex;
    gap: .3rem;
    padding: .15rem .3rem;
    border: 1px dashed var(--green-dim);
    border-radius: 4px;
}

.breach-daemon.done { border-color: var(--green); box-shadow: 0 0 8px rgba(57, 255, 20, .4); }

.breach-cell {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--green-dim);
    background: #050a05;
    color: var(--green);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    transition: all .1s ease-in-out;
}

.breach-cell.hot {
    border-color: var(--amber);
    color: var(--amber);
    box-shadow: 0 0 10px rgba(255, 176, 0, .5);
}

.breach-cell.hot:hover {
    background: var(--amber);
    color: #000;
}

.breach-cell.used {
    opacity: .3;
    color: var(--blue);
    border-color: var(--blue-dim);
}

.breach-cell:disabled { cursor: not-allowed; }
