/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --color-bg:       #ffffff;
  --color-surface:  #f6f8fa;
  --color-text:     #1f2328;
  --color-muted:    #656d76;
  --color-accent:   #2f81f7;
  --color-border:   #d0d7de;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Fira Code", monospace;

  --radius: 8px;
  --max-w:  1100px;
  --nav-h:  60px;

  --transition: 200ms ease;
}

[data-theme="dark"] {
  --color-bg:      #0d1117;
  --color-surface: #161b22;
  --color-text:    #e6edf3;
  --color-muted:   #8b949e;
  --color-border:  #30363d;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  transition: background var(--transition), color var(--transition);
}

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover { opacity: 0.8; }

/* ============================================================
   Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

.section-alt {
  background: var(--color-surface);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-large { padding: 0.875rem 2rem; font-size: 1.0625rem; }

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.05em;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--color-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--color-text); opacity: 1; }

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--color-text);
  transition: border-color var(--transition), background var(--transition);
}

.theme-toggle:hover { background: var(--color-surface); }

.theme-icon { font-size: 1rem; line-height: 1; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 5rem 3rem;
}

.hero-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.hero-greeting {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--color-muted);
  font-weight: 500;
}

.hero-description {
  max-width: 520px;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }

.hero-scroll-hint {
  margin-top: auto;
  padding-top: 2rem;
}

.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 2px;
  height: 48px;
  margin-inline: auto;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  border-radius: 2px;
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6) translateY(-6px); }
  50%       { opacity: 1;   transform: scaleY(1)   translateY(0); }
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .about-grid { grid-template-columns: 2fr 1fr; }
}

.about-text { display: flex; flex-direction: column; gap: 1rem; }

.about-links h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.social-list { display: flex; flex-direction: column; gap: 0.625rem; }

.social-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
}

.social-list svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   Skills
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.skill-category h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.skill-list { display: flex; flex-direction: column; gap: 0.375rem; }

.skill-list li {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.skill-list li:last-child { border-bottom: none; }

/* ============================================================
   Projects
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color var(--transition), transform var(--transition);
}

.project-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.project-card-placeholder { opacity: 0.6; }
.project-card-placeholder:hover { transform: none; border-color: var(--color-border); }

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-title { font-size: 1.0625rem; font-weight: 700; }

.project-links { display: flex; gap: 0.5rem; flex-shrink: 0; }

.project-links a {
  color: var(--color-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.project-links a:hover { color: var(--color-text); opacity: 1; }

.project-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.project-description {
  font-size: 0.9375rem;
  color: var(--color-muted);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.project-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

.project-tags li a { color: inherit; }

/* ============================================================
   Contact
   ============================================================ */
.contact-inner {
  align-items: center;
  text-align: center;
}

.contact-description {
  max-width: 480px;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links { display: flex; gap: 1rem; }

.footer-links a { color: var(--color-muted); }
.footer-links a:hover { color: var(--color-text); opacity: 1; }

/* ============================================================
   Mobile nav — collapse links below 768px
   ============================================================ */
@media (max-width: 767px) {
  .nav-links { display: none; }
}

/* ============================================================
   Terminal nav (shared by chat + voice subpages)
   ============================================================ */
.term-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  background: #0d1117;
  color: #33ff33;
  font-family: ui-monospace, "Cascadia Code", "Fira Code", "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.4;
}

.term-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  flex-shrink: 0;
}

.term-nav-logo {
  color: #00ff88;
  font-weight: bold;
  text-decoration: none;
}

.term-nav-logo:hover { color: #00bfff; }

.term-nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.term-nav-links a {
  color: #00bfff;
  text-decoration: none;
}

.term-nav-links a:hover { color: #33ff33; }
.term-nav-links a[aria-current="page"] { color: #ffcc00; }

.term-rule {
  border: none;
  height: 3px;
  background: #444444;
  border-top: 1px solid #444444;
  border-bottom: 1px solid #444444;
  margin: 0;
  flex-shrink: 0;
}

/* ============================================================
   Chat page
   ============================================================ */
.chat-gate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-gate[hidden] { display: none; }

.chat-gate-inner {
  text-align: center;
  max-width: 360px;
  width: 100%;
  padding: 1rem;
}

.chat-gate-title {
  color: #ffcc00;
  font-weight: bold;
  margin: 0 0 0.5rem;
}

.chat-gate-sub {
  color: #666666;
  margin: 0 0 1.5rem;
}

.chat-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-gate-row {
  display: flex;
  gap: 0.5rem;
}

.chat-gate-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #33ff33;
  background: transparent;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  caret-color: #33ff33;
}

.chat-gate-row input::placeholder { color: #444444; }
.chat-gate-row input:focus { outline: none; border-color: #00bfff; }

.chat-gate-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #33ff33;
  background: transparent;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.chat-gate-btn:hover { background: #1a2332; color: #00bfff; border-color: #00bfff; }

/* -- Chat UI -- */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-main[hidden] { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 1rem;
  flex-shrink: 0;
}

.chat-room-name {
  color: #ffcc00;
  font-weight: bold;
}

.chat-identity {
  color: #666666;
}

#displayName {
  color: #00ff88;
}

.chat-rename {
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.chat-rename:hover { color: #00bfff; }

/* -- Messages -- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.chat-empty {
  color: #666666;
  text-align: center;
  margin-top: 2rem;
}

.chat-msg {
  padding: 0.125rem 0;
  word-break: break-word;
}

.chat-msg:hover { background: #1a2332; }

.chat-msg-time { color: #666666; }
.chat-msg-author { color: #00bfff; font-weight: bold; }
.chat-msg--self .chat-msg-author { color: #00ff88; }
.chat-msg-text { color: #e6edf3; }

/* -- Notices -- */
.chat-notice {
  color: #666666;
  text-align: center;
  padding: 0.25rem 0;
  font-style: italic;
}

.chat-notice--error { color: #ff4444; }

/* -- Input bar -- */
.chat-input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-top: 1px solid #444444;
}

.chat-input-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-prompt-caret { color: #33ff33; }

.chat-input-form input {
  flex: 1;
  padding: 0.25rem 0;
  border: none;
  background: transparent;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  caret-color: #33ff33;
}

.chat-input-form input::placeholder { color: #444444; }
.chat-input-form input:focus { outline: none; }

.chat-send-btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid #33ff33;
  background: transparent;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.chat-send-btn:hover { background: #1a2332; color: #00bfff; border-color: #00bfff; }
.chat-send-btn:disabled { opacity: 0.4; cursor: default; }

.chat-char-count {
  color: #444444;
  font-size: 12px;
  white-space: nowrap;
}

/* ============================================================
   Voice page
   ============================================================ */
.voice-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.voice-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* -- Gate -- */
.voice-gate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.voice-gate[hidden] {
  display: none;
}

.voice-gate-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.voice-gate-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.voice-gate-sub {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.voice-gate-row {
  display: flex;
  gap: 0.5rem;
}

.voice-gate-row input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.voice-gate-row input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.voice-gate-error {
  color: #cf222e;
  font-size: 0.875rem;
  min-height: 1.25em;
}

[data-theme="dark"] .voice-gate-error {
  color: #f85149;
}

/* -- Voice UI -- */
.voice-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.voice-ui[hidden] {
  display: none;
}

.voice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
  flex-shrink: 0;
}

.voice-room-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.voice-identity {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.voice-username { color: var(--color-text); font-weight: 600; }

.voice-rename {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0;
  text-decoration: underline;
}

/* -- Participant grid -- */
.participant-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  align-content: start;
  overflow-y: auto;
}

.participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color var(--transition);
}

.participant-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: box-shadow var(--transition);
}

.participant-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  word-break: break-word;
}

.participant-card--speaking .participant-avatar {
  box-shadow: 0 0 0 3px var(--color-accent), 0 0 0 6px color-mix(in srgb, var(--color-accent) 25%, transparent);
  animation: voice-pulse 1s ease-in-out infinite;
}

.participant-card--muted .participant-avatar {
  opacity: 0.5;
}

.participant-card--muted .participant-name::after {
  content: ' (muted)';
  color: var(--color-muted);
  font-weight: 400;
}

.participant-conn {
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.01em;
}

.participant-card--connected .participant-conn {
  color: #3fb950;
}

.participant-card--disconnected .participant-conn {
  color: #f85149;
}

.participant-retry {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  height: auto;
  min-height: unset;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.4;
}

.participant-retry:hover {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

/* -- Connection logs panel -- */
.voice-logs {
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.voice-logs-summary {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.voice-logs-summary::-webkit-details-marker { display: none; }

.voice-logs-summary::before {
  content: '▶';
  font-size: 0.6rem;
  transition: transform 0.15s;
}

.voice-logs[open] .voice-logs-summary::before {
  transform: rotate(90deg);
}

.voice-logs-summary:hover {
  color: var(--color-text);
}

.voice-logs-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.25rem 0.75rem;
  max-height: 260px;
  overflow-y: auto;
}

.peer-log {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.peer-log-summary {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.peer-log-summary::-webkit-details-marker { display: none; }

.peer-log-summary::before {
  content: '▶';
  font-size: 0.55rem;
  color: var(--color-muted);
  transition: transform 0.15s;
}

.peer-log[open] .peer-log-summary::before {
  transform: rotate(90deg);
}

.peer-log-entries {
  padding: 0.4rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 140px;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
}

.peer-log-entry {
  font-size: 0.7rem;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  color: var(--color-muted);
  white-space: pre-wrap;
}

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-accent), 0 0 0 6px color-mix(in srgb, var(--color-accent) 25%, transparent); }
  50%       { box-shadow: 0 0 0 3px var(--color-accent), 0 0 0 10px color-mix(in srgb, var(--color-accent) 10%, transparent); }
}

/* -- Controls -- */
.voice-controls {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary[aria-pressed="true"] {
  background: var(--color-border);
}

.btn-danger {
  background: #cf222e;
  color: #fff;
}

.btn-warn {
  background: transparent;
  color: #9a6700;
  border-color: #d4a017;
}

[data-theme="dark"] .btn-warn {
  color: #e3b341;
  border-color: #9e6a03;
}

/* -- Status -- */
.voice-status {
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
  padding: 0.375rem 1.25rem 0.625rem;
  flex-shrink: 0;
  font-style: italic;
  min-height: 1.5rem;
}

/* ============================================================
   Mobile UX improvements
   ============================================================ */
@media (max-width: 767px) {
  /* 44 × 44 px minimum touch targets */
  .btn {
    min-height: 44px;
    justify-content: center;
  }

  /* Voice controls: expand buttons to fill the bar */
  .voice-controls {
    gap: 0.5rem;
    padding: 0.875rem 1rem;
  }

  .voice-controls .btn {
    flex: 1;
    min-width: 0;
  }

  /* Gate forms: stack input + submit on narrow screens */
  .voice-gate-row,
  .chat-gate-row {
    flex-direction: column;
  }

  .voice-gate-row input,
  .chat-gate-row input {
    width: 100%;
  }

  .voice-gate-row .btn,
  .chat-gate-btn {
    width: 100%;
  }
}

/* ============================================================
   Terminal page
   ============================================================ */
.terminal-page {
  margin: 0;
  padding: 0;
  background: #0d1117;
  overflow: hidden;
}

#terminalWrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0d1117;
}

#terminal {
  font-family: ui-monospace, "Cascadia Code", "Fira Code", "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  color: #33ff33;
  white-space: pre;
  cursor: default;
  min-height: 100vh;
  min-height: 100svh;
}

#terminal > div {
  min-height: 1.2em;
}

#terminal::selection,
#terminal *::selection {
  background: #33ff33;
  color: #0d1117;
}

/* Subtle scanline effect */
#terminalWrap::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 1;
}

/* Noscript fallback */
.noscript-fallback {
  padding: 2rem;
  color: #e6edf3;
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
}

@media (max-width: 480px) {
  #terminal {
    font-size: 11px;
  }

  .term-page {
    font-size: 11px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #terminal {
    font-size: 12px;
  }

  .term-page {
    font-size: 12px;
  }
}
