/* CTF terminal styles. Only the terminal itself uses monospace. */
/* secret (ROT13, you know the drill): WX{fglyrf_pna_uvqr_frpergf} */
.t-grid{display:grid;gap:clamp(12px,1.5vw,20px);grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));margin-top:32px}
.t-flag{padding:18px 20px;border-radius:var(--r-md);background:var(--surface);color:var(--ink);min-height:92px;display:flex;flex-direction:column;gap:6px}
.t-flag b{font-family:var(--display);font-stretch:62%;font-weight:900;font-size:2rem;line-height:.9}
.t-flag span{font-size:.9375rem;color:var(--muted)}
.t-flag.is-done{background:var(--mint);color:var(--on-light)}
.t-flag.is-done span{color:var(--on-light)}
.t-term{margin-top:32px;border-radius:var(--r-lg);background:#0a0a0a;border:1px solid var(--line);overflow:hidden}
.t-bar{display:flex;align-items:center;gap:8px;padding:12px 20px;background:var(--surface);font-weight:700;font-size:.875rem;color:var(--muted)}
.t-bar i{width:12px;height:12px;border-radius:50%;background:var(--red);display:inline-block}
.t-bar i:nth-child(2){background:var(--yellow)}.t-bar i:nth-child(3){background:var(--mint)}
.t-out{font-family:var(--mono);font-size:.9375rem;line-height:1.55;padding:18px 20px;height:min(60vh,520px);overflow-y:auto;overflow-wrap:anywhere;white-space:pre-wrap;color:var(--ink-soft)}
.t-out .cmd{color:var(--yellow)}.t-out .ok{color:var(--mint)}.t-out .bad{color:var(--orange)}.t-out .dim{color:var(--muted)}
.t-out a{color:var(--mint);text-decoration:underline}
.t-form{display:flex;align-items:center;gap:10px;padding:14px 20px;border-top:1px solid var(--line);font-family:var(--mono)}
.t-form label{color:var(--mint);white-space:nowrap}
.t-form input{flex:1;min-width:0;min-height:44px;background:transparent;border:0;color:var(--ink);font:inherit;font-size:1rem;outline:none}
.t-form:focus-within{box-shadow:inset 0 0 0 2px var(--yellow)}
.t-ghost{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:600px){.t-out{font-size:.875rem}}
