/* ==========================================================================
   Styles for the individual windows
   ========================================================================== */

/* ---- Message box --------------------------------------------------------- */
.msgbox { display: flex; flex-direction: column; gap: 14px; padding: 14px 12px 10px; }
.msgbox-main { display: flex; align-items: flex-start; gap: 14px; }
.msgbox-main img { flex: none; width: 32px; height: 32px; }
.msgbox-text { max-width: 340px; margin: 0; padding-top: 4px; white-space: pre-line; }

/* ---- Welcome ------------------------------------------------------------------ */
.welcome { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 12px; }
.welcome-title {
  margin: 0;
  font: normal clamp(20px, 4vw, 28px)/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: -.01em;
}
.welcome-title b { font-weight: 900; }
.welcome-title .y { color: #ff5a1f; font-weight: 900; }
.welcome-main { display: flex; gap: 12px; flex-wrap: wrap; }
.welcome-tip { flex: 1 1 260px; min-height: 150px; padding: 12px 14px; background: #ffffe1; }
.welcome-tip-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.15em; }
.welcome-tip-head img { width: 32px; height: 32px; }
.welcome-tip p { margin: 0; font-size: 1.05em; line-height: 1.5; }
.welcome-buttons { flex: 0 1 160px; display: flex; flex-direction: column; gap: 6px; }
.welcome-buttons .btn { text-align: left; padding-left: 10px; }
.welcome-buttons .divider { margin: 4px 0; }
@media (max-width: 480px) {
  .welcome-buttons { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .welcome-buttons .divider { display: none; }
}

/* ---- Notepad ------------------------------------------------------------------ */
.notepad { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.notepad-text {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 6px 8px;
  overflow: auto;
  font: 13px/1.45 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  outline: none;
}
@media (pointer: coarse) { .notepad-text { font-size: 13px; } }

/* ---- Events ---------------------------------------------------------------------- */
.events > p { margin: 0; }
.events .ev-info { min-width: 200px; }
.events .ev-time, .events .ev-place { white-space: nowrap; }

/* ---- Checklist (✓ bullets) --------------------------------------------------------- */
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.checklist li {
  position: relative;
  padding-left: 20px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M6 0h1v1H6zM5 1h2v1H5zM0 2h1v1H0zM4 2h3v1H4zM0 3h2v1H0zM3 3h3v1H3zM0 4h5v1H0zM1 5h3v1H1zM2 6h1v1H2z'/%3E%3C/svg%3E") no-repeat center;
  box-shadow: var(--sunken);
}

/* ---- Tickets ---------------------------------------------------------------------- */
.tickets-title { margin: 0; font-size: 1.3em; }
.tickets-intro { margin: 0; }
.tickets-list { flex: none; }
.tickets-list td:first-child { width: 100%; }
.tickets-list .price { white-space: nowrap; }
.tickets-footer { display: flex; align-items: center; gap: 10px; }
.tickets-footer img { width: 32px; height: 32px; flex: none; }
.tickets-footer p { margin: 0; }
.notice { margin: 0; }

/* ---- Media Player --------------------------------------------------------------- */
.mp { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.mp-screen {
  flex: none;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  box-shadow: var(--sunken);
  padding: 2px;
}
.mp-screen video, .mp-screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.mp-list { flex: 1; min-height: 64px; display: flex; flex-direction: column; padding: 2px; overflow: auto; background: #fff; box-shadow: var(--sunken); }
.mp-item { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border: 0; background: none; text-align: left; }
.mp-item img { width: 16px; height: 16px; flex: none; }
.mp-item.selected { background: var(--navy); color: #fff; }
.mp-item:focus { outline: none; }
.mp-item:focus-visible { outline: 1px dotted #000; outline-offset: -1px; }
@media (pointer: coarse) { .mp-item { padding: 8px 6px; } }

/* ---- Food & Drink ------------------------------------------------------------------ */
.food-intro { display: flex; align-items: center; gap: 10px; }
.food-intro img { width: 32px; height: 32px; flex: none; }
.food-intro p { margin: 0; }
.food-list { flex: none; }
.food-list td:first-child { font-weight: bold; }
.food-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.food-groups p { margin: 0; }

/* ---- Volunteer (wizard layout) ----------------------------------------------------- */
.volunteer .wizard-content { gap: 10px; min-height: 0; }
.volunteer .wizard-content h2 { margin: 0; font-size: 1.35em; }
.volunteer .wizard-content p { margin: 0; }
.volunteer .wizard-buttons { margin-top: 4px; }

/* ---- Contact & documents ------------------------------------------------------------- */
.contact-main, .docs-intro { display: flex; align-items: flex-start; gap: 14px; }
.contact-main img, .docs-intro img { width: 32px; height: 32px; flex: none; }
.contact-main p { margin: 0 0 10px; }
.docs-intro { padding: 4px 4px 8px; }
.docs-intro p { margin: 0; }
.contact-web .iconview { min-height: 110px; }
.hint { margin: 0; }

/* Shortcut arrow on link icons */
.ico-link { position: absolute; left: 0; bottom: 0; width: 12px !important; height: 12px !important; }

/* ---- Registration wizard ------------------------------------------------------------- */
.wizard { display: flex; gap: 14px; padding: 12px; }
.wizard-art {
  flex: none;
  width: 150px;
  position: relative;
  background: linear-gradient(160deg, #00a0a0, #004848);
  box-shadow: var(--thin-in);
  overflow: hidden;
}
.wizard-art img { position: absolute; image-rendering: pixelated; }
.wizard-art .a1 { width: 96px; height: 96px; left: 26px; top: 46px; }
.wizard-art .a2 { width: 64px; height: 64px; left: 62px; top: 132px; transform: rotate(-12deg); }
.wizard-art .a3 { width: 40px; height: 40px; left: 14px; top: 160px; }
.wizard-content { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 290px; }
.wizard-step { flex: 1; }
.wizard-step h2 { margin: 0 0 12px; font-size: 1.35em; }
.wizard-step .group { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wizard-step .radio small { color: #333; }
.wizard-buttons { display: flex; justify-content: flex-end; gap: 6px; padding-top: 12px; margin-top: 10px; box-shadow: inset 0 1px var(--shadow), inset 0 2px var(--hilight); }
.wizard-buttons [data-wiz="next"] { margin-right: 8px; }
.notice { padding: 6px 8px; background: #ffffe1; box-shadow: var(--thin-in); }
@media (max-width: 560px) {
  .wizard-art { display: none; }
  .wizard-content { min-height: 0; }
  .wizard-buttons .btn { min-width: 0; flex: 1; }
  .wizard-buttons [data-wiz="next"] { margin-right: 0; }
}

/* ---- Internet Exploder + 90's homepage ---------------------------------------------- */
.browser { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.browser-address { flex: none; display: flex; align-items: center; gap: 6px; padding: 2px 2px 4px; }
.browser-address .field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; }
.browser-address .field img { width: 16px; height: 16px; }
/* overflow: hidden keeps the spinning globe's corners inside the box - otherwise they
   poke out of the window while rotating and make its scrollbars flicker */
.browser-throbber { margin-left: auto; width: 32px; height: 32px; padding: 2px; background: #000; box-shadow: var(--thin-in); overflow: hidden; }
.browser-throbber img { width: 28px; height: 28px; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.browser-page { flex: 1; min-height: 0; overflow: auto; }

.geo {
  min-height: 100%;
  padding: 18px 16px 28px;
  color: #ffff66;
  font: 16px/1.5 "Times New Roman", Times, serif;
  text-align: center;
  background:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 70px 90px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 130px 50px, #ffd, transparent),
    radial-gradient(1px 1px at 160px 140px, #fff, transparent),
    radial-gradient(1px 1px at 40px 160px, #ccf, transparent),
    #000033;
  background-size: 180px 180px;
}
.geo a { color: #66ccff; }
.geo h1 {
  margin: 0 0 6px;
  font: bold clamp(22px, 4vw, 32px)/1.2 "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  background: linear-gradient(90deg, #ff4040, #ffb000, #ffff40, #40ff40, #40c0ff, #c040ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.geo h2 { margin: 22px 0 8px; color: #ff66ff; font: bold 20px "Comic Sans MS", "Comic Sans", cursive; }
.geo-marquee { overflow: hidden; margin: 10px auto 16px; padding: 4px 0; background: #000080; color: #00ff00; font: bold 14px var(--mono); white-space: nowrap; }
.geo-marquee span { display: inline-block; padding-left: 100%; animation: marquee 14s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.geo-construction {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 6px 14px;
  color: #000;
  font: bold 14px Arial, sans-serif;
  background: repeating-linear-gradient(-45deg, #ffcc00 0 12px, #000 12px 24px);
}
.geo-construction span { padding: 2px 8px; background: #ffcc00; }
.geo-table { margin: 0 auto; border: 3px ridge #c0c0c0; border-collapse: separate; background: #000066; color: #fff; text-align: left; }
.geo-table th, .geo-table td { padding: 6px 10px; border: 2px inset #c0c0c0; }
.geo-table th { color: #ffff66; }
.geo ul { display: inline-block; margin: 0; padding-left: 20px; text-align: left; color: #fff; max-width: 520px; }
.geo li { margin-bottom: 6px; }
.geo li::marker { content: "\2605  "; color: #ffff66; }
.geo hr { margin: 22px auto; border: 0; height: 4px; max-width: 420px; background: linear-gradient(90deg, #ff4040, #ffff40, #40ff40, #40c0ff, #c040ff); }
.geo .btn { color: #000; font-family: var(--font); font-size: var(--fs); }
.geo-lead { margin: 0 auto 14px; max-width: 520px; color: #fff; font-size: 18px; }
.geo-text { margin: 0 auto 10px; max-width: 520px; color: #fff; }
.geo-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0; }
.counter { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; }
.counter-digits { padding: 2px 6px; background: #000; color: #00ff00; font: bold 18px var(--mono); letter-spacing: 3px; border: 2px inset #808080; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0; }
.badge { padding: 2px 6px; border: 1px solid #fff; background: #333366; color: #fff; font: 10px/1.3 Verdana, sans-serif; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .blink, .geo-marquee span, .browser-throbber img { animation: none; }
  .geo-marquee span { padding-left: 0; }
}

/* ---- Help (FAQ) ----------------------------------------------------------------------- */
.tree { flex: 1; min-height: 140px; overflow: auto; padding: 6px 8px; }
.tree summary { display: flex; align-items: center; gap: 6px; padding: 2px 3px; list-style: none; cursor: default; width: fit-content; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary img { width: 16px; height: 16px; flex: none; }
.tree summary:focus { outline: none; }
.tree summary:focus-visible span { outline: 1px dotted #000; }
.tree details[open] > summary > span { background: var(--navy); color: #fff; }
.tree .book > summary .open-book { display: none; }
.tree .book[open] > summary .open-book { display: block; }
.tree .book[open] > summary .closed-book { display: none; }
.tree .book > div { padding-left: 20px; }
.tree .answer { margin: 4px 0 10px 24px; padding: 8px 10px; max-width: 520px; background: #ffffe1; box-shadow: var(--thin-in); }
.help-index { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }

/* ---- Mail ------------------------------------------------------------------------------- */
.mail { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mail-fields { flex: none; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; padding: 6px 4px 8px; }
.mail-fields label { text-align: right; }
.mail-fields .field { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-body { flex: 1; min-height: 120px; width: 100%; font: 13px/1.5 var(--font); }
@media (pointer: coarse) { .mail-body { font-size: 16px; } }

/* ---- Explorer icon view ------------------------------------------------------------------- */
.explorer { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.iconview {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px 4px;
  padding: 10px 6px;
  overflow: auto;
  background: #fff;
  box-shadow: var(--sunken);
}
.iv-item {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 0;
  background: none;
  color: #000;
  text-align: center;
  outline: none;
}
.iv-label { max-width: 100%; padding: 0 2px; line-height: 1.25; overflow-wrap: anywhere; }
.iv-item.selected .iv-label { background: var(--navy); color: #fff; }
.iv-item.selected:focus-visible .iv-label { outline: 1px dotted #ffff80; }

/* ---- Paw Sweeper ------------------------------------------------------------------------------ */
.sw-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.sweeper {
  --cell: 22px;
  padding: 7px;
  background: var(--face);
  box-shadow: inset 2px 2px var(--hilight), inset -2px -2px var(--shadow);
}
@media (pointer: coarse) { .sweeper { --cell: 32px; } }
.sw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  padding: 5px 6px;
  box-shadow: inset 2px 2px var(--shadow), inset -2px -2px var(--hilight);
}
.sw-led {
  min-width: 46px;
  padding: 1px 3px;
  background: #000;
  color: #ff0000;
  font: bold 24px/1 "Courier New", monospace;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--hilight);
}
.sw-face {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: var(--face) center / 22px 22px no-repeat;
  box-shadow: var(--raised);
}
.sw-face:active { box-shadow: var(--pressed); }
.sw-face:focus { outline: none; }
.sw-grid {
  display: grid;
  grid-template-columns: repeat(9, var(--cell));
  padding: 3px;
  box-shadow: inset 3px 3px var(--shadow), inset -3px -3px var(--hilight);
  touch-action: manipulation;
}
.sw-cell {
  width: var(--cell);
  height: var(--cell);
  padding: 0;
  border: 0;
  background: var(--face) center / 70% no-repeat;
  box-shadow: var(--raised);
  font: bold calc(var(--cell) * .66)/1 Arial, Helvetica, sans-serif;
  outline: none;
}
.sw-cell:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.sw-cell.flag { background-image: var(--flag); }
.sw-cell.open { box-shadow: inset 1px 1px var(--shadow); }
.sw-cell.mine, .sw-cell.wrong { box-shadow: inset 1px 1px var(--shadow); background-image: var(--paw); }
.sw-cell.boom { background-color: #ff0000; }
.sw-cell.wrong { background-image: linear-gradient(45deg, transparent 46%, #f00 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #f00 46% 54%, transparent 54%), var(--paw); background-size: 80%, 80%, 70%; }
.n1 { color: #0000ff; } .n2 { color: #008000; } .n3 { color: #ff0000; } .n4 { color: #000080; }
.n5 { color: #800000; } .n6 { color: #008080; } .n7 { color: #000; } .n8 { color: #808080; }

/* ---- Date/Time ------------------------------------------------------------------------------- */
.dt-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dt-row .group { flex: 1 1 180px; }
.dt-month { margin-bottom: 6px; text-align: center; }
.dt-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; padding: 3px; background: #fff; box-shadow: var(--sunken); text-align: center; }
.dt-cal b { color: #fff; background: var(--shadow); font-weight: normal; }
.dt-cal span { padding: 1px 0; }
.dt-cal .on { background: var(--navy); color: #fff; font-weight: bold; }
.dt-time { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.analog {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #000 0 3px, transparent 3.5px),
    repeating-conic-gradient(from -1.5deg, #000080 0 3deg, transparent 3deg 30deg);
  box-shadow: inset 0 0 0 6px var(--face), inset 0 0 0 7px var(--shadow);
}
.analog::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--face); }
.hand { position: absolute; z-index: 1; left: 50%; bottom: 50%; transform-origin: 50% 100%; background: #000; }
.hand.hh { width: 4px; height: 24px; margin-left: -2px; background: #008080; }
.hand.mm { width: 3px; height: 33px; margin-left: -1.5px; background: #008080; }
.hand.ss { width: 1px; height: 36px; background: #000; }
.analog .hand { box-shadow: 1px 1px 0 rgba(0, 0, 0, .35); }
.lcd {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 6px 10px;
  background: #000;
  color: #00ff00;
  font: bold 22px/1 "Courier New", monospace;
  box-shadow: var(--sunken);
}
.lcd small { font: 12px var(--font); color: #00b000; }
.dt-note { margin: 0; font-size: .95em; }
.dt-zone { margin: 0; }

/* ---- Run ---------------------------------------------------------------------------------- */
.run-main { display: flex; gap: 14px; align-items: flex-start; }
.run-main img { width: 32px; height: 32px; flex: none; }
.run-main p { margin: 2px 0 0; }
.run-field { display: flex; align-items: center; gap: 10px; }
.run-field input { flex: 1; min-width: 0; }

/* ---- Display properties ------------------------------------------------------------------------ */
.monitor {
  position: relative;
  align-self: center;
  width: 184px;
  height: 160px;
  margin-bottom: 4px;
  padding: 14px 14px 30px;
  background: linear-gradient(var(--face), var(--face)) 50% 100% / 70px 12px no-repeat,
              linear-gradient(var(--shadow), var(--shadow)) 50% calc(100% - 12px) / 30px 12px no-repeat;
}
.monitor::before {
  content: "";
  position: absolute;
  inset: 0 0 24px;
  background: var(--face);
  box-shadow: var(--raised);
}
.monitor-screen { position: relative; height: 100%; box-shadow: var(--sunken); }
.wp-list { width: 100%; min-height: 90px; }

/* ---- Shut down ----------------------------------------------------------------------------------- */
.shutdown-main { display: flex; gap: 16px; align-items: flex-start; }
.shutdown-main img { width: 32px; height: 32px; flex: none; }
.shutdown-main .radio { margin: 8px 0; }

/* ---- Welcome header with the slogan ------------------------------------------------- */
.welcome-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.welcome-head .welcome-title { flex: 1 1 230px; }
.welcome-slogan {
  flex: none;
  width: 210px;
  height: auto;
  margin: -4px -2px -6px 0;
  transform: rotate(-3deg);
  image-rendering: auto;
}
@media (max-width: 480px) {
  .welcome-slogan { width: 100%; max-width: 300px; margin: 0 auto; }
}

/* ==========================================================================
   Compact mode for very small screens. Phones normally get the whole page
   zoomed out (see the viewport script in index.html); this covers browsers
   that can't zoom out and tiny desktop windows. Loaded last so it wins.
   ========================================================================== */
@media (max-width: 359px), (max-height: 419px) {
  :root {
    --fs: 12px;
    --taskbar-h: 34px;
    --title-h: 22px;
    --tb-w: 20px;
    --tb-h: 18px;
  }
  .btn { --py: 5px; min-width: 64px; }
  .menu-item { height: 28px; font-size: 13px; }
  .menu-large .menu-item { height: 32px; }
  .menu-item img, .menu-large .menu-item img { width: 20px; height: 20px; }
  .start-button img { width: 22px; height: 22px; }
  .start-button { font-size: 13px; }
  .task-btn img, .tray-btn img { width: 18px; height: 18px; }
  .start-menu-side { width: 18px; }
  .start-menu-side span { font-size: 13px; }
  .sweeper { --cell: 26px; padding: 5px; }
  .sw-led { font-size: 20px; min-width: 40px; }
  .assistant { width: 70px; }
  .welcome { padding: 10px; gap: 10px; }
  .welcome-tip { min-height: 0; padding: 10px; }
  .pad { padding: 6px; gap: 8px; }
  .tab-panel { padding: 8px; }
  .tab { padding: 2px 8px 3px; }
  .tab[aria-selected="true"] { padding: 3px 10px 6px; }
  .notepad-text { font-size: 12px; }
  .wizard { padding: 8px; }
}

/* Display Properties preview: shrink tiled wallpapers so the pattern is visible */
.monitor-screen.wp-paws { background-size: 36px 36px; }

/* Media Player playlist: title + length column */
.mp-item .mp-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mp-item .mp-len { flex: none; margin-left: 12px; font-variant-numeric: tabular-nums; }

/* ---- Credits ----------------------------------------------------------------------- */
.credits-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  box-shadow: var(--thin-in);
}
.credits-slogan { width: min(260px, 100%); height: auto; transform: rotate(-3deg); image-rendering: auto; }
.credits-title { margin: 2px 0 0; font-size: 1.15em; text-align: center; }
.credits-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; margin: 4px auto 0; }
.credits-role { color: #333; text-align: right; }
.credits-list a { font-weight: bold; }
.credits-copy { margin: 0; text-align: center; }
.credits .divider { margin: 2px 0; }
.credits .dialog-buttons { justify-content: center; }

/* ---- MS-DOS Prompt ----------------------------------------------------------------- */
.cmd-screen {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 6px 8px;
  background: #000;
  color: #c0c0c0;
  font: 14px/1.3 "Perfect DOS VGA 437", "Lucida Console", Consolas, "Courier New", monospace;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}
.cmd-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd-line { display: flex; }
.cmd-prompt { white-space: pre; }
.cmd-screen .cmd-input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  caret-color: currentColor;
  outline: none;
}
/* 16px stops phones from zooming in when you start typing */
@media (pointer: coarse) { .cmd-screen { font-size: 16px; } }
