:root {
  --xp-blue: #0a55cc;
  --xp-blue-light: #2f83f7;
  --xp-dark: #003a95;
  --window-gray: #ece9d8;
  --border-light: #ffffff;
  --border-mid: #9ca3af;
  --border-dark: #274d7e;
  --text: #101820;
  --yellow: #ffd957;
  --green: #3ebd42;
  --shadow: 8px 10px 0 rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  overflow-x: hidden;
  background: linear-gradient(#4fa7ef 0 48%, #4f9d31 48% 100%);
  padding-bottom: 58px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(255,255,255,.65), transparent 40%);
  pointer-events: none;
  z-index: -4;
}
.desktop-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .09;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
.cloud {
  position: fixed;
  z-index: -3;
  width: 180px;
  height: 58px;
  border-radius: 50px;
  background: rgba(255,255,255,.88);
  filter: blur(1px);
}
.cloud::before,.cloud::after { content:""; position:absolute; border-radius:50%; background:inherit; }
.cloud::before { width:85px; height:85px; left:28px; top:-38px; }
.cloud::after { width:110px; height:110px; right:20px; top:-52px; }
.cloud-one { top: 9vh; left: 8vw; transform: scale(1.2); }
.cloud-two { top: 20vh; right: 8vw; transform: scale(.8); opacity: .8; }
.hill { position: fixed; z-index:-2; border-radius: 50% 50% 0 0; transform-origin:center; }
.hill-back { width: 120vw; height: 55vh; left: -10vw; bottom: -27vh; background: linear-gradient(120deg,#74b83f,#2f7d27); transform: rotate(-5deg); }
.hill-front { width: 100vw; height: 43vh; right: -30vw; bottom: -22vh; background: linear-gradient(150deg,#8ac64e,#337d29); transform: rotate(8deg); }

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

.top-icons {
  position: fixed;
  top: 18px;
  left: 18px;
  display: grid;
  gap: 16px;
  z-index: 0;
}
.desktop-icon {
  width: 92px;
  color: white;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 2px #000;
  font-size: 12px;
  line-height: 1.2;
}
.icon-box { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 5px; font-size:30px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.4)); }
.desktop-icon:hover span:last-child { background:#164a9c; outline:1px dotted white; }

.desktop {
  width: min(1160px, calc(100% - 150px));
  margin: 28px auto 90px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 34px 28px;
  position: relative;
  z-index: 2;
}
.window {
  background: var(--window-gray);
  border: 2px solid var(--border-light);
  border-right-color: var(--border-dark);
  border-bottom-color: var(--border-dark);
  box-shadow: var(--shadow);
  min-width: 0;
}
.hero-window { grid-column: 1 / -1; }
.about-window { grid-column: 1 / span 5; }
.truth-window { grid-column: 6 / -1; align-self:start; }
.how-window { grid-column: 1 / -1; }
.memes-window { grid-column: 1 / span 8; }
.links-window { grid-column: 9 / -1; align-self:start; }

.titlebar {
  min-height: 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 3px 4px 3px 8px;
  color:white;
  font-weight:700;
  letter-spacing:.2px;
  background: linear-gradient(90deg, #064bb4 0%, #2584ee 72%, #0b55c2 100%);
  text-shadow: 1px 1px 0 #00327c;
  user-select:none;
}
.titlebar-title { display:flex; align-items:center; gap:6px; overflow:hidden; white-space:nowrap; }
.window-controls { display:flex; gap:3px; }
.window-controls button {
  width: 26px; height: 25px; padding:0; font-weight:900; line-height:1;
  color:#111; background:linear-gradient(#fff,#d3d3d3);
  border:2px outset #fff;
}
.window-controls button:last-child { color:white; background:linear-gradient(#ef8b69,#c63616); }
.browser-menu,.notepad-menu { display:flex; gap:22px; padding:6px 10px; font-size:13px; border-bottom:1px solid #aaa; }
.addressbar { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:7px; padding:5px; border-bottom:1px solid #888; background:#f4f2e7; }
.address-label { font-size:12px; }
.address-value { min-width:0; background:white; border:2px inset #eee; padding:5px 8px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-family:"Courier New",monospace; font-size:12px; }
.go-button,.tiny-button { border:2px outset #fff; background:#e7e4d7; padding:4px 10px; font-weight:700; cursor:pointer; }
.go-button:active,.tiny-button:active,.button:active { border-style:inset; transform:translateY(1px); }

.hero-content {
  display:grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  min-height: 610px;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(rgba(255,255,255,.02), rgba(255,255,255,.06)),
    linear-gradient(#49a5ef 0 54%, #5aa337 54% 100%);
}
.hero-content::before {
  content:"";
  position:absolute;
  width:130%; height:45%; left:-15%; bottom:-24%;
  border-radius:50% 50% 0 0;
  background:linear-gradient(150deg,#85c24d,#2f7828);
  transform:rotate(-4deg);
}
.hero-content::after {
  content:"";
  position:absolute;
  width:170px; height:54px; top:70px; left:48%;
  border-radius:50px; background:rgba(255,255,255,.88);
  box-shadow: -48px -20px 0 -10px white, 50px -16px 0 -5px white;
  opacity:.78;
}
.hero-copy { padding: 58px 18px 52px 58px; position:relative; z-index:2; }
.eyebrow {
  display:inline-block;
  padding:7px 10px;
  background:#151d20;
  color:#a6ff95;
  border:2px inset #eee;
  font:700 13px/1 "Courier New",monospace;
  letter-spacing:1px;
}
h1 {
  margin:18px 0 16px;
  font: 900 clamp(46px,7vw,92px)/.9 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 1px;
  color:#15191c;
  text-shadow: 2px 2px 0 rgba(255,255,255,.6);
}
h1 span { color:white; text-shadow: 3px 3px 0 #112941, -2px -2px 0 #112941, 2px -2px 0 #112941, -2px 2px 0 #112941; }
.hero-lead { max-width:640px; font-size:20px; line-height:1.45; font-weight:700; }
.ticker-line { display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:10px; width:fit-content; max-width:100%; padding:9px 12px; background:rgba(18,28,20,.88); color:white; border:2px solid #101010; box-shadow:3px 3px 0 rgba(255,255,255,.25); }
.ticker-line strong { font:900 30px/1 "Courier New",monospace; color:#c8ff8f; }
.ticker-line small { max-width:310px; line-height:1.25; }
.coin-orb { width:37px; height:37px; display:grid; place-items:center; border-radius:50%; background:#fff; color:#000; font:900 22px/1 serif; border:3px solid #aaa; }
.cta-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.button {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:9px 18px;
  color:#111; background:linear-gradient(#fff,#cdd9e8);
  border:3px outset #fff; text-decoration:none; font-weight:900; cursor:pointer;
  box-shadow:2px 2px 0 rgba(0,0,0,.25);
}
.button-primary { background:linear-gradient(#fff08a,#f4b919); }
.contract-box { margin-top:15px; display:flex; align-items:center; gap:8px; max-width:680px; padding:7px; background:#f2f2ed; border:2px inset white; font-size:12px; }
.contract-box > div { min-width:0; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.contract-box code { font-family:"Courier New",monospace; }
.contract-box button { border:2px outset white; background:#225fc1; color:white; font-weight:900; padding:5px 9px; cursor:pointer; }

.mascot-stage { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:45px 30px 35px 5px; }
.mascot-frame { width:min(360px,95%); aspect-ratio:1; padding:10px; background:#d5d2c6; border:4px outset white; transform:rotate(2deg); box-shadow:10px 12px 0 rgba(0,0,0,.22); }
.mascot-frame img { width:100%; height:100%; object-fit:cover; image-rendering:pixelated; filter:contrast(1.08) saturate(.86); }
.thought-bubble { position:relative; max-width:330px; margin-bottom:22px; padding:15px 18px; background:white; border:3px solid #171717; font:700 17px/1.25 "Courier New",monospace; box-shadow:5px 5px 0 rgba(0,0,0,.2); }
.thought-bubble::after { content:""; position:absolute; right:28px; bottom:-18px; border:9px solid transparent; border-top-color:#171717; transform:rotate(-15deg); }
.tiny-button { margin-top:22px; }
.statusbar { display:flex; justify-content:space-between; padding:5px 8px; font-size:12px; border-top:1px solid #aaa; }

.notepad-body { min-height:420px; padding:34px 36px; background:#fffef8; font: 18px/1.65 "Courier New", monospace; background-image:repeating-linear-gradient(transparent 0 31px, rgba(60,90,130,.1) 31px 32px); }
.notepad-body p { margin:0 0 20px; }
.signature { color:#164c9c; font-weight:700; }

.truth-app { min-height:420px; display:grid; grid-template-columns:110px 1fr; gap:24px; align-items:center; padding:45px; background:#efede1; }
.truth-app-icon { font-size:76px; filter:drop-shadow(4px 4px 0 #aaa); }
.dialog-heading { font-weight:700; margin-bottom:14px; }
blockquote { margin:0 0 25px; min-height:145px; padding:25px; background:white; border:2px inset white; font:700 clamp(22px,3vw,36px)/1.25 "Courier New",monospace; display:flex; align-items:center; }
.dialog-actions { display:flex; flex-wrap:wrap; gap:10px; }

.help-layout { display:grid; grid-template-columns:220px 1fr; min-height:470px; background:white; }
.help-sidebar { padding:20px; background:linear-gradient(#e7eefb,#cdddf5); border-right:1px solid #8290a6; }
.help-sidebar strong { display:block; margin-bottom:14px; }
.help-sidebar a { display:block; margin:8px 0; color:#124a9c; }
.help-content { padding:35px; }
.help-content h2 { margin-top:0; font-family:Georgia,serif; color:#163e7a; }
.step { display:grid; grid-template-columns:45px 1fr; gap:15px; align-items:center; padding:13px 0; border-bottom:1px solid #ddd; }
.step span { display:grid; place-items:center; width:38px; height:38px; background:#ffdd62; border:2px outset #fff; font-weight:900; }
.step p { margin:0; line-height:1.5; }
.warning-box { margin-top:25px; padding:15px; border:2px solid #c19c00; background:#fff4b8; }

.folder-toolbar { display:flex; gap:8px; align-items:center; padding:7px; border-bottom:1px solid #999; }
.folder-toolbar button { border:2px outset white; background:#eeeade; padding:4px 10px; }
.folder-toolbar span { margin-left:auto; font-size:12px; }
.meme-grid { padding:20px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; background:white; }
.meme-grid a { text-decoration:none; text-align:center; font-size:13px; min-width:0; }
.meme-grid img { width:100%; aspect-ratio:1; object-fit:cover; border:2px solid #8190a6; image-rendering:auto; }
.meme-grid a:hover span { background:#174c9e; color:white; }
.meme-grid span { display:inline-block; margin-top:5px; padding:2px 4px; }
.wide-meme { grid-column:1/-1; }
.wide-meme img { aspect-ratio:auto; max-height:260px; }

.shortcut-grid { display:grid; gap:10px; padding:20px; background:white; }
.shortcut-grid a { display:grid; grid-template-columns:55px 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; padding:10px; border:1px solid transparent; text-decoration:none; }
.shortcut-grid a:hover { background:#dce9ff; border-color:#7da2d8; }
.shortcut-grid span { grid-row:1/3; font-size:36px; text-align:center; }
.shortcut-grid strong { color:#15488f; text-decoration:underline; }
.shortcut-grid small { color:#555; }
.disclaimer { margin:0; padding:16px 20px; border-top:1px solid #aaa; font-size:11px; line-height:1.5; }

.taskbar {
  position:fixed; left:0; right:0; bottom:0; z-index:100;
  display:flex; align-items:center; gap:6px; height:48px; padding:3px;
  background:linear-gradient(#2e85f2 0%,#0754c7 20%,#176bdf 85%,#0c49a8 100%);
  border-top:2px solid #5aa7ff; box-shadow:0 -2px 8px rgba(0,0,0,.25);
}
.start-button { height:42px; min-width:120px; border:0; border-radius:0 12px 12px 0; background:linear-gradient(120deg,#55c642,#1e9c27); color:white; font-weight:900; font-size:17px; text-shadow:1px 1px #0a5b12; cursor:pointer; box-shadow:inset 0 2px rgba(255,255,255,.5); }
.task-button { height:37px; min-width:190px; max-width:260px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; border:2px outset #3584ee; background:#266ed4; color:white; text-align:left; font-weight:700; padding:0 12px; cursor:pointer; }
.task-button.active { background:#124999; border-style:inset; }
.tray { margin-left:auto; height:42px; display:flex; gap:8px; align-items:center; padding:0 12px; color:white; background:rgba(45,169,212,.7); border-left:2px inset rgba(255,255,255,.4); font-size:13px; }
.tray button { border:0; background:none; cursor:pointer; }
.start-menu { position:fixed; left:3px; bottom:48px; width:300px; z-index:110; background:#fff; border:3px solid #0d55be; box-shadow:6px -6px 14px rgba(0,0,0,.25); }
.start-user { display:flex; align-items:center; gap:12px; padding:12px; color:white; background:linear-gradient(#1f77df,#1257b6); font-size:20px; }
.start-user img { width:48px; height:48px; object-fit:cover; border:2px solid white; }
.start-menu nav { display:grid; padding:10px; }
.start-menu nav a { padding:10px; text-decoration:none; font-weight:700; }
.start-menu nav a:hover { color:white; background:#2459a8; }
.start-footer { padding:12px; text-align:right; color:white; background:#2f7edb; font-size:12px; }
.toast { position:fixed; right:20px; bottom:68px; z-index:120; max-width:320px; padding:12px 16px; background:#fff9c6; border:2px solid #2f5685; box-shadow:4px 4px 0 rgba(0,0,0,.25); font-weight:700; transform:translateY(20px); opacity:0; pointer-events:none; transition:.2s ease; }
.toast.show { transform:translateY(0); opacity:1; }

@media (min-width: 1000px) {
  .drag-handle { cursor:grab; }
  .window.dragging { position:relative; z-index:50; box-shadow:14px 16px 0 rgba(0,0,0,.25); }
}
@media (max-width: 980px) {
  .top-icons { display:none; }
  .desktop { width:min(94%,760px); grid-template-columns:1fr; margin-top:18px; }
  .hero-window,.about-window,.truth-window,.how-window,.memes-window,.links-window { grid-column:1; }
  .hero-content { grid-template-columns:1fr; }
  .hero-copy { padding:38px 26px 20px; }
  .mascot-stage { padding:25px; }
  .mascot-frame { width:min(330px,80vw); }
  .help-layout { grid-template-columns:1fr; }
  .help-sidebar { display:flex; flex-wrap:wrap; gap:8px 18px; border-right:0; border-bottom:1px solid #8290a6; }
  .help-sidebar strong { width:100%; margin:0; }
  .task-button { display:none; }
}
@media (max-width: 620px) {
  body { padding-bottom:52px; }
  .desktop { width:100%; margin:0 0 70px; gap:14px; }
  .window { box-shadow:none; border-left:0; border-right:0; }
  .hero-content { min-height:0; }
  .hero-copy { padding:30px 18px 10px; }
  h1 { font-size:48px; }
  .hero-lead { font-size:17px; }
  .ticker-line { grid-template-columns:auto 1fr; }
  .ticker-line small { grid-column:1/-1; }
  .cta-row .button { width:100%; }
  .contract-box { align-items:stretch; }
  .contract-box > div { white-space:normal; overflow-wrap:anywhere; }
  .mascot-stage { padding-bottom:40px; }
  .about-window .notepad-body { min-height:0; padding:25px 20px; font-size:16px; }
  .truth-app { min-height:0; grid-template-columns:1fr; padding:25px 18px; }
  .truth-app-icon { font-size:50px; }
  blockquote { min-height:130px; font-size:22px; padding:18px; }
  .dialog-actions .button { width:100%; }
  .help-content { padding:25px 18px; }
  .meme-grid { grid-template-columns:1fr; padding:12px; }
  .wide-meme { grid-column:1; }
  .taskbar { height:50px; }
  .start-button { min-width:105px; }
  .tray { font-size:12px; padding:0 8px; }
  .browser-menu span:nth-child(4),.browser-menu span:nth-child(5) { display:none; }
  .address-label { display:none; }
  .addressbar { grid-template-columns:1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  * { transition:none !important; }
}
