/* Terminal-only presentation. Shared tokens, reset, and transition layers remain in global.css. */
.terminal-page { min-height: 100dvh; color: var(--terminal-copy); background: var(--terminal); background-image: radial-gradient(circle at 76% 8%, rgba(183,238,77,.08), transparent 28rem); }
.terminal-page::before { position: fixed; z-index: 0; inset: 0; content: ''; pointer-events: none; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 3rem 3rem; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.terminal-skip:focus-visible { outline-color: var(--accent); }
.terminal-frame { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; width: min(calc(100% - 2.5rem), 68rem); min-height: 100dvh; margin: 0 auto; }
.terminal-top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 4.25rem; border-bottom: 1px solid var(--terminal-line); font-family: var(--mono); font-size: .62rem; letter-spacing: .07em; }
.terminal-brand { display: inline-flex; align-items: center; gap: .7rem; color: #edf3e7; font-weight: 700; }
.terminal-logo { display: grid; place-items: center; width: 1.75rem; aspect-ratio: 1; color: var(--terminal); background: var(--accent); }
.terminal-status { display: flex; align-items: center; gap: .8rem; color: var(--terminal-muted); }
.terminal-status .signal { width: .45rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .25rem rgba(183,238,77,.08); animation: pulse 2s ease infinite; }
.terminal-status time { min-width: 4.5rem; color: #b5bdae; font-variant-numeric: tabular-nums; }
.terminal-grid { display: block; min-height: 0; }
.terminal-console { min-width: 0; padding: clamp(2rem, 5vw, 4.5rem) 0 3rem; }
.boot-log { display: grid; max-width: 42rem; color: var(--terminal-muted); font-family: var(--mono); font-size: .67rem; line-height: 1.65; }
.boot-log span { display: grid; grid-template-columns: 2rem 1fr; opacity: 0; transform: translateY(.35rem); animation: boot-in .28s ease forwards; }
.boot-log b { font-weight: 400; }
.boot-log .boot-title { margin-bottom: .55rem; }
.boot-log .boot-ready { margin-top: .55rem; }
.boot-log span:nth-child(2) { animation-delay: .16s; }
.boot-log span:nth-child(3) { animation-delay: .32s; }
.boot-log span:nth-child(4) { animation-delay: .48s; }
.boot-log span:nth-child(5) { color: var(--accent); animation-delay: .68s; }
.boot-log i { color: #4c5549; }
.terminal-welcome { max-width: 51rem; margin-top: clamp(3.5rem, 8vh, 6.5rem); opacity: 0; transform: translateY(.7rem); animation: terminal-reveal .5s .82s ease forwards; }
.terminal-kicker { margin: 0 0 1.2rem; color: var(--accent); font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; }
.terminal-welcome h1 { max-width: 21ch; margin: 0; color: #edf2e8; font-family: var(--mono); font-size: clamp(1.45rem, 3.5vw, 2.8rem); font-weight: 500; line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; }
.welcome-copy { display: grid; margin-top: 1.7rem; }
.welcome-copy p { margin: .18rem 0; color: #a3ac9e; font-family: var(--mono); font-size: clamp(.72rem, 1.3vw, .82rem); line-height: 1.7; }
.welcome-copy .hint { margin-top: 1.25rem; color: var(--terminal-muted); }
.terminal-output { display: grid; gap: .8rem; max-width: 51rem; margin-top: 2.5rem; color: #aeb6a8; font-family: var(--mono); font-size: .76rem; line-height: 1.7; }
.terminal-output:empty { display: none; }
.terminal-output .output-row { white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-output .command { padding-top: .6rem; color: #e8eee2; border-top: 1px solid rgba(255,255,255,.055); }
.terminal-output .command::before { margin-right: .55rem; color: var(--accent); content: '›'; }
.terminal-output .error { color: var(--error); }
.terminal-output .listing { color: #c5d3ba; line-height: 1.95; }
.terminal-input-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 2.2rem; align-items: center; gap: .7rem; max-width: 51rem; margin-top: 2.5rem; padding: .65rem 0; border-bottom: 1px solid rgba(183,238,77,.48); color: var(--accent); font-family: var(--mono); opacity: 0; animation: terminal-reveal .4s 1s ease forwards; }
.prompt { white-space: nowrap; font-size: clamp(.73rem, 1.5vw, .86rem); }
.terminal-input { min-width: 0; padding: .35rem 0; color: #f3f7ee; border: 0; outline: 0; background: transparent; caret-color: var(--accent); font-family: var(--mono); font-size: .9rem; }
.terminal-input::placeholder { color: #4e584c; }
.terminal-input-row > button { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; padding: 0; color: var(--terminal); border: 0; background: var(--accent); font-family: var(--mono); font-weight: 700; transition: transform .2s ease; }
.terminal-input-row > button:hover { transform: translateY(-2px); }
.terminal-footer { display: flex; gap: 1.5rem; padding: 1rem 0; color: #4e574c; border-top: 1px solid var(--terminal-line); font-family: var(--mono); font-size: .56rem; letter-spacing: .06em; }
.terminal-footer span:last-child { margin-left: auto; }

@keyframes boot-in { to { opacity: 1; transform: translateY(0); } }
@keyframes terminal-reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .45; } }

@media (max-width: 620px) {
  .terminal-frame { width: min(calc(100% - 1.5rem), var(--content)); }
  .terminal-top { min-height: 3.8rem; }
  .terminal-status > span:nth-child(2) { display: none; }
  .terminal-console { min-height: calc(100dvh - 7rem); padding: 2.5rem 0 2rem; border-right: 0; }
  .terminal-footer { flex-wrap: wrap; }
  .terminal-footer span:last-child { width: 100%; margin-left: 0; }
  .terminal-input-row { grid-template-columns: 1fr 2.2rem; }
  .prompt { grid-column: 1 / -1; }
}
