/* =========================================================
   DANG OL' INTERNET - main stylesheet
   Pure CSS, no external fonts or libraries required.
   ========================================================= */

@font-face {
  font-family: "King Of The Hill";
  src: url("../fonts/king-of-the-hill-2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --weather-visibility: 1;
  --bg: #d7d38d;
  --bg-2: #b9c77d;
  --panel: #f3e2b2;
  --panel-strong: #fff3cd;
  --line: rgba(82, 63, 35, 0.24);
  --text: #33291e;
  --muted: #6d5e48;
  --amber: #d56b32;
  --amber-soft: #b14e2d;
  --danger: #a83f2e;
  --green: #557c49;
  --blue: #72a9bd;
  --shadow: 7px 8px 0 rgba(73, 57, 32, 0.2);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, #83bdd0 0 27%, #d8d17f 27% 62%, #b6bb68 62% 100%);
  font-family: "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Custom cursor appears only over interactive elements. */
a[href],
button:not(:disabled),
summary,
[role="button"] {
  cursor: url("../images/cursor/cursor.cur"), pointer !important;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

code {
  color: #ffd982;
  font-family: Consolas, "Courier New", monospace;
}

.sky,
.scanlines,
.flash-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.sky {
  z-index: -3;
  overflow: hidden;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 27vh;
  --celestial-opacity: .46;
  opacity: var(--celestial-opacity);
  background:
    radial-gradient(ellipse 72px 22px at 10% 35%, #fff 0 68%, transparent 71%),
    radial-gradient(ellipse 48px 28px at 12% 29%, #fff 0 66%, transparent 70%),
    radial-gradient(ellipse 88px 25px at 44% 55%, #fff 0 68%, transparent 71%),
    radial-gradient(ellipse 54px 31px at 46% 48%, #fff 0 66%, transparent 70%),
    radial-gradient(ellipse 75px 23px at 80% 27%, #fff 0 68%, transparent 71%),
    radial-gradient(ellipse 44px 28px at 82% 21%, #fff 0 66%, transparent 70%);
  animation: none;
}

.stars-b {
  --celestial-opacity: .28;
  transform: none;
  background:
    radial-gradient(ellipse 58px 18px at 28% 72%, #fff 0 68%, transparent 71%),
    radial-gradient(ellipse 38px 23px at 30% 67%, #fff 0 66%, transparent 70%),
    radial-gradient(ellipse 66px 20px at 66% 76%, #fff 0 68%, transparent 71%),
    radial-gradient(ellipse 42px 25px at 68% 70%, #fff 0 66%, transparent 70%);
}

.horizon-glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -16vh;
  height: 44vh;
  background: repeating-linear-gradient(90deg, #9c6d42 0 8px, #bb8a58 8px 78px, #7d5636 78px 83px);
  filter: blur(16px);
}

.haze {
  position: absolute;
  width: 55vw;
  height: 28vh;
  border-radius: 50%;
  background: rgba(255, 244, 196, .22);
  filter: blur(42px);
  animation: haze-drift 24s ease-in-out infinite alternate;
}

.haze-one {
  left: -15vw;
  bottom: 6vh;
}

.haze-two {
  right: -20vw;
  bottom: 20vh;
  animation-delay: -11s;
  animation-duration: 31s;
}

.scanlines { display: none; }

.flash-layer {
  z-index: 1000;
  opacity: 0;
  background: rgba(255, 235, 170, .15);
  transition: opacity 120ms ease;
}

.flash-layer.active {
  opacity: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 3px solid #664a2f;
  background: rgba(246, 224, 169, .94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: .86;
  letter-spacing: .08em;
  transform: skew(-5deg);
}

.brand-kicker {
  color: var(--amber);
  font-size: .72rem;
  font-weight: 900;
}

.brand-main {
  font-size: 1.32rem;
  font-weight: 1000;
  letter-spacing: .035em;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 6px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #5e4c36;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  transition: 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(132, 91, 47, .1);
  outline: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.visitor-counter {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(89,63,35,.25);
  border-radius: 5px;
  color: #5e4c36;
  background: rgba(255,248,218,.55);
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}

.visitor-counter-label {
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.visitor-counter strong {
  min-width: 2ch;
  color: #923e2b;
  font-size: .9rem;
}

.section-shell {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 46px;
  padding-block: 92px 78px;
}

.hero-copy {
  position: relative;
  min-width: 0;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9a3e2c;
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .9;
}

h1 {
  max-width: 820px;
  font-family: "King Of The Hill", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
  transform: none;
  text-shadow: 3px 3px 0 rgba(255, 244, 204, .65);
}

h1 span {
  color: var(--amber);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 1000;
}

.hero-subtitle,
.section-heading > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.hero-subtitle {
  max-width: 690px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.danger-button,
.pill-button,
.mini-button {
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 1000;
  letter-spacing: .045em;
  transition: transform 130ms ease, filter 130ms ease, background 130ms ease;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
}

.primary-button {
  color: #fff5d5;
  background: linear-gradient(180deg, #df743c, #b64b2c);
  box-shadow: 0 9px 28px rgba(231, 164, 52, .18);
}

.secondary-button {
  color: var(--text);
  background: rgba(255,248,218,.48);
  border-color: rgba(89,63,35,.25);
}

.danger-button {
  color: #fff1eb;
  background: linear-gradient(180deg, #ba452d, #7c2d1e);
  border-color: rgba(255,255,255,.08);
}

.pill-button,
.mini-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255,248,218,.55);
  border-color: rgba(89,63,35,.25);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.pill-button:hover,
.mini-button:hover,
.quick-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(242, 184, 75, .6);
  outline-offset: 3px;
}

.ticker {
  display: flex;
  gap: 9px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 26px;
  padding: 9px 12px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 242, 196, .55);
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: .85rem;
}

.ticker-label {
  color: var(--amber);
  font-weight: 900;
}

.panel {
  position: relative;
  border: 3px solid #65482e;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.25), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.status-panel {
  width: min(100%, 340px);
  justify-self: center;
  padding: 16px;
  transform: rotate(1deg);
}

.status-panel .status-list { margin: 8px 0 12px; font-size: .875rem; }
.status-panel .status-list div { padding: 7px 0; gap: 12px; }
.status-panel .panel-heading { font-size: .7rem; gap: 10px; padding-bottom: 10px; }
.status-panel .status-dot { flex-shrink: 0; }

.boomhauer-portrait {
  position: relative;
  height: 190px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 2px solid #684a2d;
  border-radius: 5px;
  background: linear-gradient(#77aec0 0 58%, #9ea45d 58%);
}

.portrait-head { position:absolute; left:50%; top:28px; width:112px; height:134px; transform:translateX(-50%); border:3px solid #493728; border-radius:44% 45% 48% 48%; background:#d5a36c; z-index:2; }
.portrait-hair { position:absolute; left:50%; top:17px; width:116px; height:52px; transform:translateX(-50%) rotate(-3deg); border:3px solid #493728; border-radius:55% 48% 20% 20%; background:#d8b54f; z-index:3; clip-path:polygon(0 45%,12% 15%,23% 33%,36% 3%,49% 28%,64% 0,77% 28%,92% 6%,100% 58%,93% 100%,5% 100%); }
.portrait-eye { position:absolute; top:49px; width:8px; height:5px; border-top:3px solid #3e3026; }
.eye-left { left:28px; } .eye-right { right:28px; }
.portrait-nose { position:absolute; left:49px; top:56px; width:20px; height:36px; border-right:3px solid #765237; border-bottom:3px solid #765237; border-radius:0 0 12px; transform:skew(-8deg); }
.portrait-mouth { position:absolute; left:34px; bottom:23px; width:50px; height:9px; border-bottom:4px solid #4b3428; border-radius:50%; transform:rotate(4deg); }
.portrait-shirt { position:absolute; left:50%; bottom:-54px; width:210px; height:120px; transform:translateX(-50%); border:3px solid #493728; border-radius:48% 48% 0 0; background:#69a3aa; }
.portrait-can { position:absolute; right:23px; bottom:15px; z-index:4; width:42px; height:70px; padding-top:24px; border:3px solid #493728; border-radius:5px; color:#eee6c9; background:#9b3528; font:900 8px/1 Arial; text-align:center; transform:rotate(8deg); }

.boomhauer-portrait.has-custom-portrait { background: #cdbf8e; }
.custom-portrait { display: block; width: 100%; height: 100%; }

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--amber);
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .1em;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(143, 211, 139, .7);
  animation: blink 1.6s ease-in-out infinite;
}

.status-list {
  margin: 12px 0 16px;
}

.status-list div,
.report-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}

.status-list dt,
.report-card dt {
  color: var(--muted);
}

.status-list dd,
.report-card dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.road-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  gap: 18px;
  opacity: .14;
  overflow: hidden;
}

.road-strip span {
  flex: 0 0 140px;
  height: 6px;
  background: var(--amber);
  transform: skew(-32deg);
  animation: road-run 3.2s linear infinite;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: -12px;
  position: relative;
  z-index: 3;
}

.quick-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(242,184,75,.07), transparent 50%),
    rgba(12, 15, 21, .8);
  box-shadow: 0 14px 32px rgba(0,0,0,.26);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: 140ms ease;
}

.quick-icon {
  margin-bottom: auto;
  font-size: 2rem;
}

.quick-card > span:not(.quick-icon) {
  font-weight: 1000;
  letter-spacing: .04em;
}

.quick-card small {
  color: var(--muted);
}

.content-section {
  padding-block: 104px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.garage-stage {
  min-height: 620px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(230, 167, 69, .08), transparent 32%),
    linear-gradient(180deg, rgba(16,19,24,.95), rgba(8,10,14,.97));
}

.garage-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 2px;
  background: rgba(255,255,255,.05);
  box-shadow:
    0 92px rgba(255,255,255,.04),
    0 184px rgba(255,255,255,.04),
    0 276px rgba(255,255,255,.04);
}

.garage-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background:
    linear-gradient(168deg, transparent 0 48%, rgba(255,255,255,.025) 49% 51%, transparent 52%),
    linear-gradient(180deg, rgba(100, 87, 63, .06), rgba(0,0,0,.2));
  pointer-events: none;
}

.garage-sign {
  position: absolute;
  top: 25px;
  left: 28px;
  color: var(--amber);
  font-family: Consolas, monospace;
  font-size: .78rem;
  letter-spacing: .08em;
}

.garage-object {
  position: absolute;
  z-index: 3;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border 150ms ease;
}

.garage-object:hover,
.garage-object:focus-visible {
  transform: translateY(-5px) rotate(-1deg);
  background: rgba(242,184,75,.06);
  border-color: rgba(242,184,75,.18);
}

.object-art {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.4));
}

.object-label {
  display: block;
  margin-top: 6px;
  color: var(--amber);
  font-size: .7rem;
  font-weight: 1000;
  letter-spacing: .12em;
}

.car-object { left: 30%; bottom: 13%; }
.radio-object { left: 8%; top: 29%; }
.toolbox-object { right: 10%; bottom: 18%; }
.tv-object { right: 13%; top: 20%; }
.chair-object { left: 12%; bottom: 15%; }
.door-object { right: 35%; top: 24%; }

.garage-message {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(86%, 620px);
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: var(--muted);
  text-align: center;
  font-family: Consolas, monospace;
}

.quote-machine {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 4vw, 38px);
}

.quote-prefix {
  color: var(--amber);
  font-family: Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .1em;
}

blockquote {
  margin: 14px 0 0;
  font-size: clamp(1.55rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
}

.quote-controls {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.speed-panel,
.console-panel {
  min-height: 460px;
  padding: 28px;
}

.speed-meter {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin-block: 26px;
}

.speed-dial {
  position: relative;
  aspect-ratio: 1;
  border: 14px solid rgba(255,255,255,.05);
  border-top-color: rgba(242,184,75,.35);
  border-left-color: rgba(242,184,75,.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242,184,75,.06), transparent 52%),
    rgba(0,0,0,.28);
}

.speed-needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: var(--danger);
  transform-origin: left center;
  transform: rotate(-135deg);
  transition: transform 1100ms cubic-bezier(.2,.8,.2,1);
}

.speed-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 7px rgba(255,255,255,.06);
}

.speed-readouts {
  display: grid;
  gap: 12px;
}

.speed-readouts div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}

.speed-readouts span,
.speed-readouts small {
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .09em;
}

.speed-readouts strong {
  font-family: Consolas, monospace;
  font-size: 1.75rem;
}

.full-width {
  width: 100%;
}

.console-panel {
  display: flex;
  flex-direction: column;
}

.console-titlebar {
  display: flex;
  justify-content: space-between;
  margin: -28px -28px 18px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius) var(--radius) 0 0;
  color: #d8d8d8;
  background: rgba(255,255,255,.04);
  font-family: Consolas, monospace;
  font-size: .8rem;
}

.fake-console {
  flex: 1;
  min-height: 260px;
  max-height: 320px;
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: #050706;
  color: #9bd18e;
  font-family: Consolas, monospace;
  font-size: .85rem;
  line-height: 1.6;
}

.fake-console p {
  margin: 0 0 6px;
}

.console-panel .mini-button {
  margin-top: 14px;
  align-self: flex-start;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.meme-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(15,18,24,.78);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

.meme-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: #111;
}

.meme-placeholder {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(242,184,75,.08), transparent 48%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px);
  color: var(--muted);
  text-align: center;
  font-family: Consolas, monospace;
}

.meme-caption {
  padding: 14px 16px 16px;
  color: var(--muted);
}

.meme-card.is-interactive { cursor: pointer; }
.meme-card.is-interactive:focus-visible { outline: 3px solid rgba(168,63,46,.65); outline-offset: 4px; }
.meme-card.meme-activated { animation: meme-tap 180ms ease; }

@keyframes meme-tap {
  50% { transform: scale(.992); }
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.report-card {
  padding: 20px;
}

.report-stamp {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 2px solid var(--danger);
  color: #ff9a82;
  font-weight: 1000;
  transform: rotate(-2deg);
}

.warning-stamp {
  color: #ffd577;
  border-color: var(--amber);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0 18px;
}

.faq-list summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-answer {
  padding: 0 0 18px;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p {
  margin-top: 10px;
}

.faq-answer ul {
  margin-bottom: 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.site-credit {
  margin-top: 10px;
}

footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 90px auto 0;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: .75rem;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--amber);
  background: none;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.toast-layer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  background: rgba(8,10,14,.95);
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
  color: var(--text);
  font-family: Consolas, monospace;
  font-size: .82rem;
  animation: toast-in 220ms ease both;
}

.toast.danger {
  border-left-color: var(--danger);
}

.wobble {
  animation: wobble 380ms ease;
}

.screen-shake {
  animation: none;
}

/* Never transform the body: fixed scenery can disappear in some browsers. */
.screen-shake main {
  animation: screen-shake 260ms linear;
}

.glitching {
  animation: glitch 280ms steps(2) 3;
}

.chaos-offset {
  transform: translate(var(--chaos-x, 0), var(--chaos-y, 0)) rotate(var(--chaos-r, 0deg)) !important;
}

@keyframes star-drift {
  to { transform: translate3d(70px, 40px, 0); }
}

@keyframes haze-drift {
  from { transform: translate3d(-7vw, 0, 0) scale(.95); }
  to { transform: translate3d(16vw, -3vh, 0) scale(1.08); }
}

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

@keyframes road-run {
  to { transform: translateX(316px) skew(-32deg); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wobble {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

@keyframes screen-shake {
  0%,100% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 2px); }
}

@keyframes glitch {
  0% { transform: translate(0); filter: none; }
  25% { transform: translate(2px, -1px); filter: contrast(1.4); }
  50% { transform: translate(-3px, 1px); filter: saturate(1.7); }
  75% { transform: translate(1px, 2px); filter: hue-rotate(10deg); }
  100% { transform: translate(0); filter: none; }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .nav {
    display: none;
  }

  .topbar-actions {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 64px;
  }

  .status-panel {
    max-width: 620px;
  }

  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quote-machine,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .quote-controls {
    min-width: 0;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .meme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .garage-stage {
    min-height: 560px;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 64px;
    padding-inline: 14px;
  }

  .brand-main {
    font-size: 1.12rem;
  }

  .pill-button {
    padding-inline: 10px;
    font-size: .82rem;
  }

  .topbar-actions { gap: 6px; }
  .visitor-counter { padding-inline: 8px; }
  .visitor-counter-label { display: none; }
  .visitor-counter strong::before { content: "👤 "; }

  .section-shell {
    width: min(calc(100% - 22px), var(--max));
  }

  .hero {
    min-height: auto;
    padding-block: 58px 52px;
  }

  h1 {
    font-size: clamp(1.6rem, 7.5vw, 3.4rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions > * {
    width: 100%;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .quick-card {
    min-height: 130px;
    padding: 14px;
  }

  .content-section {
    padding-top: 78px;
  }

  .garage-stage {
    min-height: 650px;
    padding: 18px;
  }

  .garage-sign {
    left: 18px;
  }

  .car-object { left: 24%; bottom: 20%; }
  .radio-object { left: 5%; top: 26%; }
  .toolbox-object { right: 5%; bottom: 9%; }
  .tv-object { right: 7%; top: 22%; }
  .chair-object { left: 5%; bottom: 6%; }
  .door-object { right: 29%; top: 39%; }

  .object-art {
    font-size: 3.6rem;
  }

  .garage-message {
    bottom: 18px;
  }

  .speed-panel,
  .console-panel {
    padding: 20px;
  }

  .console-titlebar {
    margin: -20px -20px 18px;
  }

  .speed-meter {
    grid-template-columns: 1fr;
  }

  .speed-dial {
    width: min(240px, 82%);
    margin-inline: auto;
  }

  .meme-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Sun-faded Arlen finish: warm paper, painted signs, fences and lawn chairs. */
.content-section { position: relative; }
.content-section::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 0;
  width: 70px;
  height: 5px;
  background: #b44b2d;
  box-shadow: 78px 0 #e1b849, 156px 0 #5e8a72;
}
.quick-card {
  border: 2px solid #684a2e;
  border-radius: 6px;
  background: linear-gradient(160deg, #f6e8bb, #dcc382);
  box-shadow: 4px 5px 0 rgba(76,54,31,.2);
}
.quick-card:nth-child(even) { transform: rotate(.6deg); }
.quick-card:nth-child(odd) { transform: rotate(-.5deg); }
.quick-icon { filter: saturate(.75); }
.garage-stage {
  border-width: 5px;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(89,58,34,.18) 14% 14.5%, transparent 14.5% 85%, rgba(89,58,34,.18) 85% 85.5%, transparent 85.5%),
    repeating-linear-gradient(180deg, #cfb276 0 54px, #b89962 54px 57px);
}
.garage-stage::before {
  top: auto;
  bottom: 0;
  height: 34%;
  background: repeating-linear-gradient(90deg, #8d8455 0 6px, #a7a169 6px 78px, #787548 78px 82px);
  box-shadow: none;
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%);
}
.garage-stage::after {
  height: 20%;
  background: linear-gradient(172deg, transparent 0 39%, #74694d 40% 42%, #998b68 43%);
}
.garage-sign {
  padding: 8px 12px;
  border: 2px solid #6a472a;
  color: #f7e9bd;
  background: #a3482e;
  font-weight: 900;
  transform: rotate(-1deg);
}
.garage-object:hover, .garage-object:focus-visible {
  background: rgba(255,240,184,.66);
  border-color: #795233;
}
.object-label { color: #3f3022; text-shadow: 1px 1px #f7e8b9; }
.garage-message { border: 2px solid #65482e; color:#392b20; background:#f2dda3; }
.quote-machine, .speed-panel, .console-panel, .report-card, .faq-list details {
  background: linear-gradient(170deg, #f5e7ba, #deca92);
}
.quote-machine blockquote { color:#3d2e21; }
.fake-console { color:#d8e2c8; background:#385043; border:4px solid #6a4b2e; }
.console-titlebar { color:#f3e1b0; background:#9b482f; }
.meme-card { border:3px solid #65482e; border-radius:6px; background:#ecdaa6; box-shadow:5px 6px 0 rgba(73,52,31,.2); }
.meme-placeholder { color:#66543e; background:repeating-linear-gradient(135deg,#e6d197 0 12px,#dcc186 12px 24px); }
.meme-caption { color:#4a3a2a; }
.report-card { font-family:"Courier New", monospace; transform:rotate(-.4deg); }
.report-card:nth-child(2) { transform:rotate(.7deg); }
.report-stamp { background:rgba(255,248,220,.42); }
.faq-list p, footer { color:#594a36; }
footer { border-top:3px solid #684a2e; }

/* Complete light-theme pass for legacy dark components. */
.toast {
  border: 2px solid #684a2e;
  border-left: 7px solid var(--amber);
  border-radius: 6px;
  color: #30251b;
  background: #fff0bd;
  box-shadow: 5px 6px 0 rgba(75, 53, 31, .24);
  font-weight: 800;
}
.toast.danger {
  border-color: #843526;
  border-left-color: #843526;
  color: #5a211a;
  background: #f4c4a4;
}
.panel-heading,
.status-list div,
.report-card dl div,
.speed-readouts div {
  border-color: rgba(84, 60, 34, .28);
}
.status-dot { box-shadow: 0 0 0 3px rgba(85,124,73,.18); }
.speed-dial {
  border-color: rgba(101, 72, 46, .13);
  border-top-color: #d36a36;
  border-left-color: #deb550;
  background: radial-gradient(circle, #fff2c5 0 16%, #dfca91 17% 62%, #c4ab72 63%);
  box-shadow: inset 0 0 0 3px #6b4c30;
}
.speed-center {
  background: #5b4029;
  box-shadow: 0 0 0 7px rgba(255,244,202,.65);
}
.console-titlebar {
  border-bottom: 3px solid #684a2e;
  color: #3a2b20;
  background: #dcbf7d;
}
.fake-console {
  border-radius: 5px;
  color: #2e3c26;
  background: #e5dfad;
  text-shadow: none;
}
.meme-card img { background: #e4cf96; }
.danger-button {
  color: #fff8dc;
  background: linear-gradient(180deg, #bd563c, #933826);
  border-color: #6f2b20;
}
.flash-layer { background: rgba(255, 237, 164, .38); }
.ticker { border: 2px solid rgba(98,68,37,.22); border-left: 5px solid var(--amber); }
.quote-prefix, code { color: #923e2b; }
.report-stamp { color: #8c3025; }
.warning-stamp { color: #8a5420; }

/* A recognizably lived-in suburban garage interior. */
.garage-stage {
  isolation: isolate;
  min-height: 660px;
  border: 7px solid #594632;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(105,88,65,.2) 49.8% 50.2%, transparent 50.3%),
    repeating-linear-gradient(0deg, transparent 0 62px, rgba(117,96,68,.22) 63px 66px),
    repeating-linear-gradient(90deg, #d7c79d 0 156px, #cabb91 156px 159px);
  box-shadow: inset 0 0 65px rgba(86,64,39,.22), 8px 9px 0 rgba(73,52,31,.2);
}
.garage-stage::before {
  top: auto;
  bottom: 0;
  z-index: 0;
  height: 34%;
  clip-path: none;
  background:
    linear-gradient(166deg, transparent 0 49%, rgba(74,67,56,.3) 49.3% 50%, transparent 50.3%),
    repeating-linear-gradient(100deg, transparent 0 118px, rgba(74,67,56,.13) 119px 121px),
    #8f8a7a;
}
.garage-stage::after {
  bottom: 33.5%;
  z-index: 0;
  height: 7px;
  background: #65513b;
  box-shadow: 0 4px 0 rgba(255,255,255,.16);
}
.garage-fixture { position: absolute; z-index: 1; pointer-events: none; }
.garage-door-panel {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-bottom: 12px solid #514434;
  background:
    linear-gradient(90deg, transparent 0 33%, rgba(91,77,58,.22) 33.2% 33.6%, transparent 33.8% 66%, rgba(91,77,58,.22) 66.2% 66.6%, transparent 66.8%),
    repeating-linear-gradient(0deg, #d8cfb4 0 102px, #9d947d 103px 108px);
  box-shadow: inset 0 0 45px rgba(75,63,47,.2), 0 12px 18px rgba(48,39,29,.28);
  transform: translateY(calc(-100% - 18px));
  transition: transform 850ms cubic-bezier(.65,.05,.35,1);
  pointer-events: none;
}
.garage-closed .garage-door-panel { transform: translateY(0); }
.door-window-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 45px 38px 0;
}
.door-window-row span {
  height: 72px;
  border: 7px solid #615543;
  background: linear-gradient(155deg, #80b3c1 0 44%, #acd0d4 45% 56%, #719ba7 57%);
  box-shadow: inset 0 0 18px rgba(40,63,67,.35);
}
.door-handle {
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: 80px;
  height: 18px;
  transform: translateX(-50%);
  border: 5px solid #4f473b;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.garage-light {
  top: 20px;
  left: 50%;
  width: 230px;
  height: 18px;
  transform: translateX(-50%);
  border: 4px solid #6b6251;
  border-radius: 4px;
  background: #fff8c7;
  box-shadow: 0 0 35px 14px rgba(255,245,177,.5);
}
.conduit {
  top: 0;
  right: 16%;
  width: 5px;
  height: 205px;
  background: #807968;
  box-shadow: 2px 0 rgba(255,255,255,.25);
}
.conduit::after {
  content: "";
  position: absolute;
  left: -9px;
  bottom: 0;
  width: 23px;
  height: 31px;
  border: 3px solid #5e584d;
  background: #aaa393;
}
.pegboard {
  left: 5%;
  top: 145px;
  width: 220px;
  height: 165px;
  border: 6px solid #6e4d2f;
  background-color: #a96c3d;
  background-image: radial-gradient(#5f402a 1.5px, transparent 2px);
  background-size: 14px 14px;
  box-shadow: 5px 6px rgba(62,45,30,.2);
}
.pegboard span { position:absolute; font-size:43px; filter:saturate(.65) drop-shadow(2px 3px #5f402a); }
.peg-wrench { left:18px; top:36px; transform:rotate(-18deg); }
.peg-hammer { left:82px; top:54px; transform:rotate(13deg); }
.peg-screwdriver { right:18px; top:28px; }
.wall-shelf {
  right: 4%;
  top: 126px;
  width: 230px;
  height: 90px;
  border-bottom: 12px solid #65452d;
}
.wall-shelf::before, .wall-shelf::after { content:""; position:absolute; bottom:-34px; width:8px; height:30px; background:#65452d; }
.wall-shelf::before { left:18px; transform:skew(-20deg); }
.wall-shelf::after { right:18px; transform:skew(20deg); }
.wall-shelf .shelf-item { position:absolute; bottom:12px; display:grid; place-items:center; margin:0; padding:0; border:3px solid #49382a; color:inherit; font:900 10px/1 Arial; cursor:pointer; pointer-events:auto; transition:transform 130ms ease, filter 130ms ease; }
.wall-shelf .shelf-item:hover,
.wall-shelf .shelf-item:focus-visible { z-index:2; filter:brightness(1.12); transform:translateY(-5px) rotate(-2deg); }
.oil-can { left:16px; width:44px; height:54px; color:#f6df9c; background:#a83d2c; }
.shop-can { left:68px; width:40px; height:46px; border-radius:50% 50% 5px 5px; color:#342b22; background:#e1bd45; }
.cardboard-box { right:10px; width:88px; height:57px; color:#493520; background:#b98a55; transform:rotate(2deg); }
.workbench {
  right: 4%;
  bottom: 145px;
  width: 285px;
  height: 105px;
  border-top: 15px solid #67452d;
  background: linear-gradient(90deg, #87603d 0 17px, #b27b49 18px 267px, #87603d 268px);
  box-shadow: 5px 7px rgba(57,43,30,.24);
}
.bench-vise { position:absolute; left:28px; top:-49px; width:55px; height:36px; border:5px solid #454a49; border-radius:4px 4px 9px 9px; background:#777e78; }
.bench-drawer { position:absolute; left:67px; top:17px; width:154px; height:42px; border:4px solid #725035; background:#c18b56; box-shadow:inset 0 0 0 13px #ae7748; }
.license-plate { left:37%; top:105px; width:112px; padding:6px; border:4px solid #4f4438; border-radius:6px; color:#1f3c5c; background:#eee7c8; text-align:center; font:700 9px/1.1 Arial; transform:rotate(-3deg); }
.license-plate b { font-size:18px; letter-spacing:2px; }
.floor-drain { left:51%; bottom:55px; width:94px; height:22px; border:4px solid #514f49; border-radius:50%; background:repeating-linear-gradient(90deg,#4e4d48 0 4px,#8e8a7c 4px 9px); transform:skew(-18deg); opacity:.8; }
.garage-sign { z-index: 4; }
.garage-object { z-index: 3; filter: drop-shadow(0 8px 2px rgba(52,41,29,.22)); }
.garage-message { z-index: 7; }
.car-object { left: 31%; bottom: 15%; }
.radio-object { left: 8%; top: 49%; }
.toolbox-object { right: 11%; bottom: 17%; }
.tv-object { right: 27%; top: 34%; }
.chair-object { left: 12%; bottom: 12%; }
.door-object { left: 48%; right: auto; top: 35%; z-index: 6; }
.garage-closed .door-object {
  left: 50%;
  top: auto;
  bottom: 105px;
  transform: translateX(-50%);
  background: rgba(255,241,192,.94);
  border: 3px solid #65482e;
}
.garage-closed .door-object:hover,
.garage-closed .door-object:focus-visible { transform: translateX(-50%) translateY(-4px); }

@media (max-width: 680px) {
  .boomhauer-portrait { height: 190px; }
  .content-section::before { top: 53px; }
  .garage-stage { min-height: 720px; }
  .garage-light { width: 150px; }
  .pegboard { left:4%; top:130px; width:155px; height:130px; }
  .pegboard span { font-size:30px; }
  .wall-shelf { right:3%; top:125px; width:155px; transform:scale(.8); transform-origin:top right; }
  .workbench { right:2%; bottom:155px; transform:scale(.7); transform-origin:bottom right; }
  .license-plate { display:none; }
}

/* Local-time atmosphere: day 7am–5pm, sunset 5pm–8pm, night 8pm–7am. */
body,
.sky,
.stars,
.horizon-glow,
.haze,
.hero-copy,
.section-heading,
footer {
  transition: background 900ms ease, color 900ms ease, opacity 900ms ease, filter 900ms ease;
}

.celestial-layer {
  position: absolute;
  inset: 0;
  opacity: var(--weather-visibility);
  transition: opacity 80ms linear;
}

.celestial-layer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7vh;
  right: 11vw;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffe69a;
  box-shadow: 0 0 45px 18px rgba(255,226,132,.36);
  transition: top 900ms ease, right 900ms ease, background 900ms ease, box-shadow 900ms ease;
}

html[data-atmosphere="day"] body {
  background: linear-gradient(180deg, #83bdd0 0 27%, #d8d17f 27% 62%, #b6bb68 62% 100%);
}

html[data-atmosphere="sunset"] body {
  background: linear-gradient(180deg, #b96f69 0 8%, #df8a61 18%, #f0b36f 27%, #c4b86f 27% 62%, #8f9252 62% 100%);
}

html[data-atmosphere="sunset"] .stars {
  --celestial-opacity: .34;
  filter: sepia(.55) saturate(1.35) hue-rotate(325deg);
}

html[data-atmosphere="sunset"] .celestial-layer::before {
  top: 19vh;
  right: 16vw;
  background: #ed784b;
  box-shadow: 0 0 54px 22px rgba(239,119,68,.44);
}

html[data-atmosphere="sunset"] .horizon-glow {
  filter: blur(12px) sepia(.35) saturate(1.15);
}

html[data-atmosphere="sunset"] .haze {
  background: rgba(255,194,134,.18);
}

html[data-atmosphere="night"] body {
  background: linear-gradient(180deg, #14253f 0 27%, #435744 27% 62%, #4f5137 62% 100%);
}

html[data-atmosphere="night"] .stars {
  height: 27vh;
  --celestial-opacity: .72;
  filter: none;
  background-image:
    radial-gradient(circle at 18% 22%, #fff8d7 0 1px, transparent 1.7px),
    radial-gradient(circle at 66% 61%, #dce9ff 0 1px, transparent 1.6px),
    radial-gradient(circle at 86% 31%, #fff8d7 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 42% 75%, #dce9ff 0 1px, transparent 1.7px);
  background-size: 153px 113px, 211px 137px, 257px 167px, 181px 149px;
  animation: star-drift 95s linear infinite;
}

html[data-atmosphere="night"] .stars-b {
  --celestial-opacity: .42;
  background-image:
    radial-gradient(circle at 28% 40%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 20%, #dbe6ff 0 1px, transparent 1.5px);
  background-size: 127px 97px, 193px 151px;
  animation-direction: reverse;
}

html[data-atmosphere="night"] .celestial-layer::before {
  top: 6vh;
  right: 13vw;
  width: 66px;
  height: 66px;
  background: #f4edcf;
  box-shadow: 0 0 32px 10px rgba(230,235,218,.25);
}

html[data-atmosphere="night"] .horizon-glow {
  filter: blur(12px) brightness(.42) saturate(.65);
}

html[data-atmosphere="night"] .haze {
  opacity: .16;
  background: rgba(173,194,210,.16);
}

html[data-atmosphere="night"] .hero-copy,
html[data-atmosphere="night"] .content-section > .section-heading,
html[data-atmosphere="night"] footer {
  color: #f4e8c8;
}

html[data-atmosphere="night"] .hero-subtitle,
html[data-atmosphere="night"] .section-heading > p:not(.eyebrow),
html[data-atmosphere="night"] footer {
  color: #d8d5bf;
}

html[data-atmosphere="night"] h1 {
  text-shadow: 3px 3px 0 rgba(26,28,34,.45);
}
