#boot-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1a1e1f;
  color: var(--text);
  font: var(--font-size)/1.3 var(--font-mono);
  padding: 2rem 3rem;
  white-space: pre-wrap;
  overflow-y: auto;
  z-index: 9999;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#boot-overlay.boot-done {
  opacity: 0;
  pointer-events: none;
}

#boot-overlay .boot-prompt {
  color: var(--text);
}

#boot-overlay .boot-ok {
  color: var(--green);
}

#boot-overlay .boot-info {
  color: var(--text-dim);
}

#boot-overlay .boot-warn {
  color: var(--text-dim);
}

:root {
  --bg:         #1a1b1e;
  --bg-light:   #242529;
  --text:       #c5c8c6;
  --text-dim:   #6a6d70;
  --text-muted: #8b8e91;
  --white:      #e0e0e0;
  --blue:       #5b8db8;
  --blue-dim:   #3a5f7a;
  --orange:     #c47c4a;
  --orange-dim: #8b5a3a;
  --green:      #7a9c6c;
  --green-dim:  #4a6a3e;
  --red:        #c46a6a;
  --cyan:       #6a9cac;
  --cyan-dim:   #4a6a7a;
  --yellow:     #c4b87a;
  --grey-outline: #4a4c54;
  --font-mono:  'DejaVu Sans Mono', 'Liberation Mono', 'Courier New', 'Consolas', 'Noto Sans Mono', monospace;
  --font-size:  clamp(13px, 1vw + 11px, 15px);
  --line-height: 1.55;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: var(--line-height);
  min-height: 100vh;
  padding: 0.5rem 1.6rem 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

.terminal {
  max-width: 880px;
  margin: 0.8rem auto;
  text-align: left;
  border: 1px solid var(--grey-outline);
  border-radius: 6px;
  padding: 1.0rem 2rem;
  background: var(--bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
}

.terminal::before {
  content: '';
  display: block;
  height: 28px;
  margin: -1.0rem -2rem 0.8rem -2rem;
  background: #1e2023;
  border-bottom: 1px solid var(--grey-outline);
  border-radius: 6px 6px 0 0;
  position: relative;
}

.terminal::after {
  content: '_ □ ✕';
  position: absolute;
  top: 6px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
}

.hero-logo {
  text-align: center;
  margin: 0 0 0.3rem 0;
  padding: 0;
}

.hero-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: contrast(1.05) brightness(0.95);
  image-rendering: auto;
}

.motd {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
  white-space: pre;
  text-align: center;
  overflow-x: hidden;
}

/* secure — white → grey */
.ps0 { color: rgb(248,248,248); }
.ps1 { color: rgb(238,238,238); }
.ps2 { color: rgb(228,228,228); }
.ps3 { color: rgb(214,214,214); }
.ps4 { color: rgb(196,196,196); }
.ps5 { color: rgb(180,180,180); }

.psa { color: rgb(155,175,155); }

/* hole-by-wrabbit — green gradient dark→vibrant */
.ph0  { color: rgb(135,180,135); }
.ph1  { color: rgb(120,185,120); }
.ph2  { color: rgb(105,190,105); }
.ph3  { color: rgb( 90,195, 90); }
.ph4  { color: rgb( 80,190, 80); }
.ph5  { color: rgb( 95,200, 95); }
.ph6  { color: rgb(110,205,110); }
.ph7  { color: rgb(120,210,120); }
.ph8  { color: rgb(140,220,140); }
.ph9  { color: rgb(155,225,155); }
.ph10 { color: rgb(170,230,170); }
.ph11 { color: rgb(185,235,185); }
.ph12 { color: rgb(200,240,200); }
.ph13 { color: rgb(215,245,215); }
.ph14 { color: rgb(230,250,230); }

.pd { color: rgb(160,160,160); }
.pa { color: rgb(120,220,120); text-shadow: 0 0 6px rgba(120,220,120,0.4); }

.prompt-line {
  line-height: 1.5;
  cursor: default;
}

.prompt-live {
  margin: 0.2rem 0 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--grey-outline);
  position: relative;
}

.easter-hint {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  opacity: 0.3;
  margin-top: 0.15rem;
  transition: opacity 0.3s;
  cursor: default;
  user-select: none;
}

.easter-hint:hover {
  opacity: 0.7;
  color: var(--green);
}

.cursor-blink {
  color: var(--text);
  animation: blink 1.0s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes dust-fade {
  0%   { opacity: 0.8; transform: translateY(0) scale(1); }
  100% { opacity: 0;   transform: translateY(-14px) scale(0.3); }
}

.cmd {
  color: var(--green);
  font-weight: 400;
}

.cmd-link {
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cmd-link:hover,
.cmd-link:focus {
  color: var(--white);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--grey-outline);
}

.output {
  color: var(--text);
  line-height: 1.7;
  padding: 0.3rem 0 0.6rem 0;
}

.output p,
.output .indent {
  max-width: 72ch;
}

.indent {
  padding-left: 2ch;
}

.help-grid {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 0.06rem 1.2rem;
  margin-top: 0.1rem;
  position: relative;
}

.help-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.help-col {
  display: flex;
  flex-direction: column;
}

.help-cmd {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  margin: 0;
  border-radius: 3px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--grey-outline);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease,
              border-color 0.12s ease, padding-left 0.12s ease;
}

.help-cmd:last-child {
  border-bottom: none;
}

.help-cmd.active {
  color: var(--white);
  background: var(--bg-light);
  border-color: var(--grey-outline);
  border-bottom-color: var(--green);
}

.help-cmd.active .pa {
  opacity: 1;
  color: rgb(120,220,120);
}

.help-cmd .pa {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.5;
  flex-shrink: 0;
  width: 1.2em;
  text-align: center;
  transition: opacity 0.12s ease;
  text-shadow: 0 0 4px rgba(120,220,120,0.6), 0 0 8px rgba(120,220,120,0.3);
  animation: crt-flicker 3s infinite;
}

@keyframes crt-flicker {
  0%, 100%   { opacity: 0.5; }
  92%        { opacity: 0.5; }
  93%        { opacity: 0.35; }
  94%        { opacity: 0.55; }
  95%        { opacity: 0.4; }
  96%        { opacity: 0.5; }
}

.help-cmd:hover,
.help-cmd:focus-visible {
  color: var(--white);
  background: var(--bg-light);
  border-color: var(--grey-outline);
  padding-left: 1rem;
  outline: none;
  text-shadow:
    1px 0 0 rgba(255,0,0,0.6),
    -1px 0 0 rgba(0,255,255,0.6),
    0 0 6px var(--text);
  animation: menu-glitch 0.3s ease;
}

@keyframes menu-glitch {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-1px); }
  40%      { transform: translateX(1px); }
  60%      { transform: translateX(-1px); }
  80%      { transform: translateX(0); }
}

.help-cmd:hover .pa,
.help-cmd:focus-visible .pa {
  opacity: 1;
  animation: none;
  text-shadow: 0 0 6px rgba(120,220,120,0.9), 0 0 12px rgba(120,220,120,0.5);
}

.section {
  margin-top: 0rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--grey-outline);
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section-trigger {
  cursor: pointer;
}

.section-back {
  margin: 0.6rem 0 0 2ch;
}

.section-back .cmd-link {
  animation: sway 1.6s ease-in-out infinite;
  display: inline-block;
}

@keyframes sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(1.5deg); }
}

.section-trigger:hover .cmd-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--grey-outline);
}

.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.35s ease;
  opacity: 0;
  padding-top: 0;
}

.section-content.open {
  max-height: 12000px;
  opacity: 1;
  padding-top: 0.2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.6rem;
  padding-left: 2ch;
  margin: 0.3rem 0;
}

.skill-cat {
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.dir-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}

.dir {
  color: var(--blue);
}

.project {
  margin: 0.8rem 0;
}

.project-title {
  color: var(--white);
  font-weight: 700;
  padding-left: 2ch;
}

.hw-cat {
  color: var(--orange);
  font-weight: 700;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}

.hw-name {
  color: var(--cyan);
}

.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  padding-left: 2ch;
}

.resume-section {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}

.philosophy {
  margin: 0.4rem 0 0.4rem 2ch;
  padding: 0.3rem 0 0.3rem 2ch;
  border-left: 2px solid var(--grey-outline);
  color: var(--text-muted);
  font-style: italic;
}

.philosophy footer {
  margin-top: 0.3rem;
  color: var(--text-dim);
  font-style: normal;
}

.pgp-block {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.5rem 0;
  white-space: pre;
  width: fit-content;
  margin: 0 auto;
  overflow-x: auto;
}

.link {
  color: var(--cyan);
  text-decoration: none;
}

.link:hover,
.link:focus {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--cyan-dim);
  outline: none;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 0.3rem 0 0.6rem 2ch;
}

.shot {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.shot .shot-screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #0a0b0d;
  border: 1px solid var(--grey-outline);
  border-radius: 4px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.shot .shot-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.shot-caption {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.shot:hover .shot-screen,
.shot:focus-visible .shot-screen {
  border-color: var(--green);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.65), 0 0 8px rgba(122, 156, 108, 0.25);
}

.shot:hover .shot-caption,
.shot:focus-visible .shot-caption {
  color: var(--text);
}

.shot-os-netbsd   { color: var(--orange); }
.shot-os-freebsd  { color: var(--red); }
.shot-os-openbsd  { color: var(--yellow); }
.shot-os-gentoo   { color: var(--cyan); }
.shot-os-slackware { color: var(--blue); }

.footer {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--grey-outline);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}

.lang-toggle {
  position: absolute;
  top: 6px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  z-index: 2;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}

.lang-toggle:hover {
  color: var(--white);
  border-color: var(--grey-outline);
  background: rgba(255,255,255,0.03);
}

.lang-toggle .active-lang {
  color: var(--green);
  font-weight: 700;
}


html[data-lang="en"] .lang-pl,
html.lang-en .lang-pl { display: none !important; }
html[data-lang="pl"] .lang-en,
html.lang-pl .lang-en { display: none !important; }

.c64-ascii {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: rgb(90, 180, 90);
  margin: 0 auto 0.3rem;
  text-align: center;
  white-space: pre;
  text-shadow: 0 0 4px rgba(90,180,90,0.6), 0 0 8px rgba(90,180,90,0.3);
  filter: blur(0.3px);
  opacity: 0.7;
  letter-spacing: 0.15em;
}

.ascii-placeholder {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.1;
  color: var(--text-dim);
  text-align: center;
  white-space: pre;
  margin: 0.3rem 0;
  opacity: 0.4;
}

.dim  { color: var(--text-dim); }
.muted { color: var(--text-muted); }


.link-dim {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.link-dim:hover,
.link-dim:focus {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-cmd-accent {
  color: rgb(185,100,100) !important;
  border-color: transparent;
}

.help-cmd-accent:hover,
.help-cmd-accent:focus-visible {
  color: rgb(220,130,130) !important;
  background: var(--bg-light);
  border-color: rgb(100,50,50);
}

.help-cmd-accent .pa {
  color: rgb(160,80,80) !important;
  opacity: 0.7;
}

.help-cmd-accent:hover .pa,
.help-cmd-accent:focus-visible .pa {
  opacity: 1;
}

.help-cmd-pair {
  display: flex;
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--grey-outline);
}

.help-cmd-pair .help-cmd {
  flex: 1;
  justify-content: center;
  text-align: center;
  border-bottom: none;
}

.help-cmd-pair .help-cmd + .help-cmd {
  border-left: 1px solid var(--grey-outline);
}

.wormhole-output {
  text-align: center;
  padding: 0.3rem 0;
}

#wormhole-canvas {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.1;
  color: var(--text-dim);
  margin: 0;
  padding: 0;
  letter-spacing: 0.15em;
  overflow-x: hidden;
}

.links-grid {
  line-height: 1.8;
}

.links-grid .dim {
  font-size: 0.85em;
}

.quote,
.quote-lq {
  font-style: italic;
  color: var(--text-muted);
}

.section-trigger:focus-visible,
.cmd-link:focus-visible {
  outline: 1px dashed var(--grey-outline);
  outline-offset: 2px;
}

::selection {
  background: var(--grey-outline);
  color: var(--white);
}

img, video, svg {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hamburger {
  display: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
}

body.menu-locked {
  overflow: hidden;
}


@media (max-width: 991px) {
  .terminal {
    max-width: 100%;
    margin: 1.2rem auto;
    padding: 1.2rem 1.4rem;
  }

  body {
    padding: 0.7rem 0.8rem 2rem;
  }

  .help-grid {
    gap: 0.06rem 0.5rem;
  }

  .terminal::before {
    margin: -1.2rem -1.4rem 0.8rem -1.4rem;
  }
}

@media (max-width: 767px) {
  .terminal {
    margin: 0.6rem auto;
    padding: 1rem 1rem;
    border-radius: 4px;
  }

  body {
    padding: 0.5rem 0.7rem 1.8rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.2rem 0.6rem;
  }

  .dir-list {
    flex-direction: column;
    gap: 0.15rem;
  }

  .indent {
    padding-left: 1.5ch;
  }

  .help-grid {
    grid-template-columns: 1fr;
    gap: 0.06rem;
  }

  .help-cmd {
    padding: 0.35rem 0.6rem;
  }

  .help-cmd .pa {
    margin-right: 0.4rem;
  }

  .section-trigger {
    min-height: 44px;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
  }

  .cmd-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .pgp-block {
    font-size: 0.7rem;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
  }

  #wormhole-canvas {
    font-size: clamp(8px, 2vw, 0.7rem);
  }

  .ascii-placeholder {
    display: none;
  }

  .motd {
    text-align: center;
    padding: 0;
    width: 100%;
  }

  .hero-logo {
    margin: 0 0 0.6rem 0;
  }

  .lang-toggle {
    margin-left: 0.4rem;
  }

  .footer {
    font-size: 0.7rem;
  }

  .terminal::before {
    margin: -1rem -1rem 0.8rem -1rem;
    border-radius: 4px 4px 0 0;
  }
}

@media (max-width: 575px) {
  .terminal {
    margin: 0 auto;
    padding: 0.7rem 0.6rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  body {
    padding: 0.3rem 0.4rem 1.5rem;
  }

  .indent {
    padding-left: 1ch;
  }

  .skills-grid {
    gap: 0.4rem 0;
    padding-left: 1ch;
  }

  .contact-grid {
    gap: 0.15rem 0.4rem;
    padding-left: 1ch;
  }

  .link {
    word-break: break-all;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0.3rem auto 0.5rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--grey-outline);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger:focus-visible {
    outline: 1px dashed var(--grey-outline);
    outline-offset: 2px;
  }

  .hamburger.active {
    color: var(--white);
    border-color: var(--green);
  }

  .help-grid {
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(26, 27, 30, 0.98);
    border: 1px solid var(--grey-outline);
    z-index: 1000;
    padding: 4.5rem 1.5rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
    align-items: flex-start;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .help-grid.menu-open {
    visibility: visible;
    opacity: 1;
  }

  .help-grid .help-col {
    display: contents;
  }

  .help-grid .help-cmd {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0.75rem 0.8rem;
    font-size: 1rem;
    text-align: left;
    border-radius: 4px;
    margin: 0.04rem 0;
    min-height: 44px;
    border-bottom: 1px solid var(--grey-outline);
  }

  .help-grid .help-cmd:last-child {
    border-bottom: none;
  }

  .help-grid .help-cmd .pa {
    font-size: 1rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
    width: 1.2em;
    text-align: center;
  }

  .help-grid .help-cmd-pair {
    flex-direction: column;
    width: 100%;
  }

  .help-grid .help-cmd-pair .help-cmd + .help-cmd {
    border-left: none;
  }

  .help-grid .help-cmd:hover,
  .help-grid .help-cmd:focus-visible {
    padding-left: 1.4rem;
    background: var(--bg-light);
  }

  .section-trigger,
  .section-back {
    min-height: 44px;
    display: flex;
    align-items: baseline;
    cursor: pointer;
    gap: 0.35rem;
  }

  .section-back .cmd-link {
    animation: none;
  }

  a.link {
    display: inline-block;
    padding: 0.25rem 0;
  }

  .skill-cat {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
  }

  .philosophy {
    padding: 0.2rem 0 0.2rem 1ch;
    margin: 0.3rem 0 0.3rem 1ch;
  }

  .project {
    margin: 0.5rem 0;
  }

  .project-title {
    padding-left: 1ch;
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }

  .resume-section {
    margin-top: 0.4rem;
  }

  .hw-cat {
    margin-top: 0.4rem;
  }

  .terminal::before {
    margin: -0.7rem -0.6rem 0.8rem -0.6rem;
    border-radius: 0;
  }

  .terminal::after {
    top: 5px;
    right: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
  }

  .ascii-placeholder {
    display: none;
  }
}

@media (max-width: 390px) {
  .terminal {
    padding: 0.4rem 0.35rem;
  }

  body {
    padding: 0.2rem 0.25rem 1.2rem;
  }

  .help-grid .help-cmd {
    font-size: 0.95rem;
    padding: 0.6rem 0.7rem;
    min-height: 40px;
  }

  .prompt-live {
    font-size: 0.85rem;
  }

  .footer {
    margin-top: 0.5rem;
    padding-top: 0.3rem;
    font-size: 0.6rem;
  }

  .terminal::before {
    margin: -0.4rem -0.35rem 0.8rem -0.35rem;
    border-radius: 0;
  }

  .terminal::after {
    top: 4px;
    right: 6px;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .cursor-blink,
  .section-content {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
  }

  .terminal {
    max-width: 100%;
  }
}
