:root { color-scheme: light; font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif; color: #111; background: #fff; }
body { margin: 24px auto; max-width: 720px; padding: 0 14px; font-size: 18px; line-height: 1.6; }
.page { border: 1px solid #999; padding: 22px 28px; }
h1 { font-size: 2.25em; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.4em; font-weight: normal; }
a { color: #00e; text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: #551a8b; }
nav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 22px 0; }
hr { border: 0; border-top: 1px solid #999; margin: 26px 0; }
p { margin: 12px 0; }
.terminal-heading { font-size: 1.2em; margin: 0 0 3px; }
.terminal { border: 3px double #999; background: #000; color: #00f099; padding: 12px; font: 16px/1.5 "Courier New", monospace; }
.terminal p { margin: 0; }
.terminal-output { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow-y: auto; }
.terminal-output:not(:empty) { margin-top: 12px; }
.terminal form { display: flex; align-items: center; flex-wrap: wrap; margin-top: 16px; gap: 6px; }
.terminal label { white-space: nowrap; }
.terminal input { border: 0; border-radius: 0; padding: 0; background: #000; color: inherit; caret-color: #fff; font: inherit; min-width: 5ch; width: 10ch; flex: 1; }
.terminal input:focus { outline: 1px dotted #00f099; outline-offset: 3px; }
.terminal button { color: inherit; background: #000; border: 1px solid #666; padding: 0 6px; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #0758cc; outline-offset: 4px; }
footer { font-size: .85em; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mail-robots { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.robot-link, .robot-link:visited { color: #fff; font-size: .75em; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 480px) { body { margin: 12px auto; padding: 0 7px; font-size: 17px; } .page { padding: 18px 14px; } nav { gap: 6px 18px; } .terminal { font-size: 14px; padding: 9px; } }

#terminal-status { font-size: .8em; margin-top: 6px; color: #a1c8b8; }
#runtime-frame { width: 100%; height: 340px; border: 0; display: block; margin-top: 8px; }
#runtime-controls { margin-top: 8px; }
#runtime-container { position: relative; }
/* Keep the paused terminal's geometry: collapsing it to zero causes guest TTY
   resize signals while the shell is returning from the game. */
#runtime-frame[hidden] { display: block; position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; }
#doom-frame { width: 100%; height: 720px; border: 0; display: block; margin-top: 8px; }
#html-preview-frame { width: 100%; height: 820px; border: 0; display: block; margin-top: 8px; background: white; }
#runtime-controls[hidden] { display: none; }
.terminal button:disabled { opacity: .5; }

@media (max-width: 600px) {
  #runtime-frame { height: clamp(260px, 45svh, 380px); }
  .terminal input { font-size: 16px; min-height: 44px; }
  .terminal button { min-height: 44px; padding: 0 8px; }
  #runtime-controls { display: flex; flex-wrap: wrap; gap: 6px; }
  #runtime-controls[hidden] { display: none; }
}

.source-downloads { overflow-wrap: anywhere; }
.site-map-image { display: block; cursor: zoom-in; }
.site-map-image img { display: block; width: 100%; height: auto; }

.visitor-counter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0; font-size: 14px; }
.counter-digits { display: inline-flex; flex-wrap: wrap; gap: 2px; border: 2px inset #aaa; background: #111; padding: 2px; }
.counter-digit { background: #222; color: #e8f1d3; padding: 0 4px; border-right: 1px solid #555; font: bold 22px/28px "Courier New", monospace; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.privacy-table { width: 100%; border-collapse: collapse; font-size: .9em; table-layout: fixed; }
.privacy-table th, .privacy-table td { border: 1px solid #999; padding: 8px; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.privacy-table th:nth-child(1), .privacy-table td:nth-child(1) { width: 25%; }
.privacy-table th:nth-child(2), .privacy-table td:nth-child(2) { width: 45%; }

.privacy-cell-label { display: none; }
@media (max-width: 480px) {
  .privacy-table { display: block; border: 1px solid #999; }
  .privacy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .privacy-table tbody, .privacy-table tr { display: block; }
  .privacy-table tr + tr { border-top: 1px solid #999; }
  .privacy-table th, .privacy-table td { display: block; width: auto !important; border: 0; padding: 6px 8px; }
  .privacy-cell-label { display: block; font-weight: bold; }
}

/* Long translated words and catalog labels must fit narrow pages. */
[data-copy] { overflow-wrap: anywhere; }
.counter-digits { direction: ltr; }
.analytics-choice { margin-top: 18px; font-size: .85em; }
.analytics-choice button, #analytics-settings { font: inherit; color: #111; background: #fff; border: 1px solid #999; border-radius: 0; padding: 4px 10px; cursor: pointer; }
.analytics-choice button { min-height: 36px; }
.analytics-choice[hidden] { display: none; }
