/* Terminal entry, responsive controls and distinct small interactions. */
.terminal-entry {width:600px;padding:0;text-align:left;overflow:auto;border-radius:9px;background:#0d1218;}
.terminal-entry .entry-content {padding:0;}
.terminal-chrome {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 20px;background:#1a222c;border-bottom:1px solid #3d4c5b;font:14px Consolas,monospace;color:#c5d0db;}
.terminal-output {padding:24px 28px 15px;font:15px/1.7 Consolas,monospace;color:#b4c4d2;}
.terminal-output .boot-line {display:flex;justify-content:space-between;gap:15px;animation:boot-appear .4s both;}
.boot-ok {color:#a0c7b0;white-space:nowrap;}
.terminal-output h2 {font:700 clamp(55px,12vw,82px)/1.2 Consolas,monospace;letter-spacing:-.06em;margin:22px 0 7px;color:#ecf2f6;animation:boot-appear .45s .1s both;}
.terminal-output h2 span {color:var(--accent);}
.terminal-output .entry-motto {font:16px/1.6 "Segoe UI",sans-serif;color:#bdcbd7;margin-bottom:25px;}
.terminal-output .boot-ready {justify-content:flex-start;gap:7px;animation-delay:.3s;color:#adc4b8;}
.terminal-caret {animation:caret-pulse 1.5s step-end infinite;}
.boot-key {color:#e4ecf3;margin-top:15px;font-size:17px;}
.boot-key kbd {display:inline-block;padding:2px 8px;border:1px solid #657687;border-radius:4px;background:#1e2a35;color:#eef4fa;font:16px Consolas,monospace;}
.boot-mobile {font-size:14px;color:#aabac9;margin-top:8px;}
.terminal-options {border-top:1px solid #354351;margin:10px 28px 16px;padding-top:14px;display:grid;gap:12px;}
.terminal-options label {display:flex;align-items:center;gap:10px;font-size:15px;color:#d8e2eb;cursor:pointer;min-height:28px;}
.terminal-options input {width:17px;height:17px;accent-color:var(--accent);}
.terminal-entry .entry-enter {max-width:none;width:calc(100% - 56px);margin:0 28px 25px;background:#243240;color:#edf5fb;border-color:#627c93;font-size:15px;padding:10px 14px;}
.interface-startup {border:0;background:none;color:var(--muted);font-size:14px;padding:10px 0;margin-top:8px;cursor:pointer;text-decoration:underline;text-underline-offset:4px;}
html[data-chaos-active="true"]:not([data-chaos-mode="ripple"]) .console-launcher {position:static;left:auto;right:auto;top:auto;bottom:auto;z-index:auto;background:var(--surface);}
.site-header>.console-launcher {flex-shrink:0;margin-left:8px;}
.console-launcher {font-size:14px;min-height:36px;padding:5px 9px;}
.interface-game {margin-top:7px;}
html[data-chaos-mode="gravity"] :is(.site-header,.site-footer,.section-label,.system-strip) {border-color:transparent;}
html[data-chaos-mode="gravity"] .console-launcher {cursor:grab;}
/* Colour separation is visible immediately, without requiring a hover. */
html[data-rainbow="true"] .nav-card {border-color:transparent;background:linear-gradient(var(--surface),var(--surface)) padding-box,linear-gradient(115deg,#b79bcb,#8eb8d3,#97bca5,#c4b082,#b79bcb) border-box;background-size:100% 100%,240% 100%;animation:tile-colours 18s linear infinite;}
html[data-rainbow="true"] .nav-card::after {opacity:.65;transform:scaleX(1);background:linear-gradient(90deg,#b698c9,#8fbad0,#a5c3a8,#c8b58b);}
html[data-rainbow="true"] .nav-card h2 svg {color:var(--accent);}
/* Each page title has a different response. Decorations do not change hitboxes. */
.title-fx {position:relative;isolation:isolate;max-width:100%;}
.title-hub::after {content:attr(data-title);position:absolute;inset:0;color:var(--accent);pointer-events:none;opacity:0;clip-path:polygon(0 44%,100% 44%,100% 57%,0 57%);transition:opacity .25s,translate .35s;}
.title-hub:hover::after {opacity:.65;translate:5px -1px;}
.title-projects::after {content:"";position:absolute;left:0;bottom:-8px;width:100%;height:3px;background:linear-gradient(90deg,transparent,var(--accent),transparent);transform:scaleX(.16);transform-origin:left;opacity:.45;transition:transform .55s ease,opacity .4s;}
.title-projects:hover::after {transform:scaleX(1);opacity:1;}
.title-weapons::before,.title-weapons::after {content:"";position:absolute;top:18%;bottom:9%;width:8px;border:1px solid var(--accent);opacity:0;transition:opacity .3s,translate .3s;pointer-events:none;}
.title-weapons::before {left:-13px;border-right:0;translate:5px 0;}.title-weapons::after {right:-13px;border-left:0;translate:-5px 0;}
.title-weapons:hover::before,.title-weapons:hover::after {opacity:.8;translate:0 0;}
.title-socials::after {content:"";position:absolute;left:0;bottom:-11px;width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:18px 0 0 color-mix(in srgb,var(--accent) 50%,transparent),36px 0 0 color-mix(in srgb,var(--accent) 20%,transparent);transition:translate .6s cubic-bezier(.2,.7,.2,1);}
.title-socials:hover::after {translate:55px 0;}
.title-setup::after {content:"";position:absolute;left:0;bottom:-9px;right:0;height:3px;background:repeating-linear-gradient(90deg,var(--accent) 0 9px,transparent 9px 14px);clip-path:inset(0 85% 0 0);opacity:.6;transition:clip-path .6s steps(12);}
.title-setup:hover::after {clip-path:inset(0);opacity:1;}
.site-footer>span {transition:color .3s;}.site-footer>span:hover {color:var(--text);}
.footer-note {display:inline-block;background:linear-gradient(var(--accent),var(--accent)) left bottom/0 1px no-repeat;transition:background-size .45s;}
.footer-note:hover {background-size:100% 1px;}
.footer-links a[href="archive.html"] {display:inline-flex;align-items:center;gap:5px;}
.footer-links a[href="archive.html"]::after {content:"↗";opacity:0;translate:-4px 3px;transition:opacity .2s,translate .3s;}
.footer-links a[href="archive.html"]:hover::after {opacity:1;translate:0 0;}
.footer-links .donate-link {background:linear-gradient(115deg,transparent 25%,color-mix(in srgb,var(--accent) 15%,transparent) 50%,transparent 75%);background-size:250% 100%;background-position:100% 0;transition:background-position .65s,border-color .3s;}
.footer-links .donate-link:hover {background-position:0 0;border-color:var(--accent);}
.site-credit summary {display:inline-flex;gap:7px;align-items:center;}
.site-credit summary::before {content:"+";font:17px Consolas,monospace;transition:rotate .25s;color:var(--accent);}
.site-credit[open] summary::before {rotate:45deg;}
.home-intro .eyebrow {flex-wrap:wrap;line-height:1.7;}
@keyframes boot-appear {from{opacity:0;translate:0 4px;}to{opacity:1;translate:0 0;}}
@keyframes caret-pulse {50%{opacity:0;}}
@keyframes tile-colours {to{background-position:0 0,240% 0;}}
.arcade-dialog {width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:22px;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--text);}
.arcade-stats {display:flex;justify-content:space-between;gap:8px;margin-bottom:12px;font:14px Consolas,monospace;color:var(--muted);}.arcade-stats strong {color:var(--text);font-weight:500;}
.arcade-stage {position:relative;border:1px solid var(--border);border-radius:5px;overflow:hidden;max-width:min(100%,54dvh);margin:auto;}
.arcade-stage canvas {display:block;width:100%;height:auto;touch-action:none;outline-offset:-3px;}
.arcade-message {position:absolute;inset:36% 10px auto;padding:15px;text-align:center;background:#0b1118eb;pointer-events:none;}
.arcade-message strong {display:block;font-size:23px;letter-spacing:-.03em;color:#ecf1f5;}.arcade-message span {display:block;font-size:14px;color:#b9c9d6;line-height:1.5;margin-top:6px;}
.arcade-actions {display:flex;justify-content:center;gap:8px;margin-top:14px;}
.arcade-actions button,.arcade-pad button {min-height:42px;padding:8px 15px;font-size:15px;border:1px solid var(--border);border-radius:5px;background:var(--surface);color:var(--text);cursor:pointer;}
.arcade-actions button:first-child {background:var(--accent);color:var(--bg);}.arcade-actions button:disabled {opacity:.45;}
.arcade-pad {display:grid;grid-template-columns:repeat(3,46px);justify-content:center;gap:5px;margin-top:12px;}
.arcade-pad button {padding:4px;min-height:44px;touch-action:none;font-size:22px;}.arcade-pad button:first-child {grid-column:2;}.arcade-pad button:nth-child(2) {grid-column:1;}
.arcade-dialog[data-game="drift"] .arcade-pad {grid-template-columns:repeat(2,65px);}.arcade-dialog[data-game="drift"] [data-direction="up"],.arcade-dialog[data-game="drift"] [data-direction="down"] {display:none;}
.arcade-help {color:var(--muted);font-size:14px;line-height:1.5;margin-top:12px;text-align:center;}
@media(hover:hover) and (pointer:fine){.arcade-pad {display:none;}}
@media(max-width:640px){.arcade-dialog{padding:16px;}.arcade-stage{max-width:min(100%,43dvh);}.arcade-dialog[data-game="drift"] .arcade-stage{max-width:min(100%,50dvh);}.arcade-dialog .session-heading{margin-bottom:14px;}.arcade-actions button{min-height:44px;}.arcade-message strong{font-size:20px;}.arcade-stats{font-size:13px;}}
@media(max-width:640px){
  .console-panel {top:auto;bottom:12px;right:12px;left:12px;width:auto;max-height:min(86dvh,760px);transform:none;border-radius:16px;padding:18px;padding-bottom:max(18px,env(safe-area-inset-bottom));}
  .console-heading {position:sticky;top:-18px;padding:9px 0;background:var(--bg);z-index:2;}
  .console-utilities {display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;}
  .console-utilities>label {gap:7px;min-height:48px;font-size:14px;}.console-utilities>.lab-mode {grid-column:1/-1;}
  .console-utilities input[type="checkbox"] {flex-shrink:0;}.lab-mode {min-height:58px;}.lab-close {min-width:44px;min-height:44px;}
  .site-header {gap:10px;}.site-header>.console-launcher {min-height:44px;margin-left:auto;font-size:14px;}.site-header .edition-label {font-size:13px;margin-left:0;}.site-header nav {order:4;}
  .terminal-entry {width:calc(100vw - 24px);max-height:calc(100dvh - 24px);}.terminal-chrome {padding:12px 16px;}.terminal-output {padding:18px 20px 10px;font-size:14px;}.terminal-output .entry-motto {font-size:16px;}.terminal-options {margin:10px 20px 16px;}.terminal-options label {min-height:36px;}.terminal-entry .entry-enter {width:calc(100% - 40px);margin:0 20px 20px;min-height:44px;}
  .boot-key {font-size:16px;}.title-weapons::before {left:-9px;}.title-weapons::after {right:-9px;}
  .home-intro .eyebrow {display:block;max-width:28ch;}.home-intro .eyebrow .status-dot {display:inline-block;margin:0 6px 2px 0;}.home-intro .eyebrow .status-dot:nth-child(2) {margin-left:8px;}
}
@media(prefers-reduced-motion:reduce){.terminal-output .boot-line,.terminal-output h2,.terminal-caret,html[data-rainbow="true"] .nav-card {animation:none!important;}.title-fx::before,.title-fx::after,.footer-note {transition:none;}}
