/* urlilgoddess.exe override — paper OS
   one stylesheet, no framework. tokens first, then the OS chrome, then pages. */

:root {
  color-scheme: light;
  --ground: #f7f3f2;
  --ink: #17131a;
  --ink-soft: #4a3f48;
  --panel: #e6e0e1;
  --panel-2: #f2eeee;
  --pink: #f0679c;
  --pink-deep: #c9235f;
  --sh0: #f7f3f2;
  --sh1: #f7a6c3;
  --sh2: #ee4f8f;
  --dot: rgba(23, 19, 26, .10);
  --shadow: #17131a;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-px: "DotGothic16", "JetBrains Mono", monospace;
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
.px { font-family: var(--font-px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 2px; }

/* ---------- menu bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--ground);
  border-bottom: 1px solid var(--ink);
}
.chip {
  display: inline-block;
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--ink);
  padding: 3px 8px; font-size: 13px; font-family: var(--font-head); font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.3;
}
.chip.solid { background: var(--ink); color: var(--ground); }
.chip[aria-current="page"] { background: var(--ink); color: var(--ground); }
.chip.brand { font-family: var(--font-px); font-weight: 400; font-size: 14px; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.topbar .right { display: flex; gap: 4px; }
.topbar .burger { display: none; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; }
  .menu { order: 3; width: 100%; justify-content: flex-start; }
  .chip.brand { font-size: 12px; }
}

/* ---------- control meter ---------- */
.meter {
  position: fixed; left: 12px; bottom: 12px; z-index: 25;
  font-family: var(--font-px); font-size: 12px;
  background: var(--panel); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow);
  padding: 3px 8px; min-width: 120px; opacity: .9;
}
.meter i { display: block; height: 6px; border: 1px solid var(--ink); background: var(--panel-2); margin-top: 3px; }
.meter i b { display: block; height: 100%; width: 0; background: var(--pink-deep); transition: width .6s steps(8); }
@media (max-width: 760px) { .meter { display: none; } }

/* ---------- windows ---------- */
.win {
  background: var(--panel); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  font-family: var(--font-px);
  font-size: 15px; line-height: 1.35;
}
.win { min-width: 0; max-width: 100%; }
.win .t {
  background: var(--ink); color: var(--ground);
  padding: 3px 8px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.win .t span { min-width: 0; overflow-wrap: anywhere; }
.win .t span:last-child { opacity: .7; }
.win .b { overflow-wrap: anywhere; }
.win .b { padding: 12px; }
.win .b p { margin: 0 0 6px; }
.win .b p:last-child { margin-bottom: 0; }
.win .btn {
  display: inline-block; font: inherit; background: var(--ink); color: var(--ground);
  border: 0; padding: 6px 14px; cursor: pointer; text-decoration: none; margin-top: 6px;
}
.win .btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.win .btn:disabled { opacity: .55; cursor: default; }
.bar { height: 14px; border: 2px solid var(--ink); background: var(--panel-2); margin: 8px 0 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s steps(10); }
.center { text-align: center; }
.small { font-size: 12px; opacity: .7; }
table.diff { border-collapse: collapse; width: 100%; font-size: 14px; }
table.diff td { padding: 2px 4px; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); vertical-align: top; }
table.diff td:first-child { opacity: .7; width: 34%; }
table.diff td:nth-child(2) { opacity: .7; }
table.diff td:last-child { font-weight: bold; }
.clock { font-size: 22px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- gate (boot + age) ---------- */
#gate {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ground);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 6px 6px;
  display: grid; place-items: center; padding: 16px; overflow: auto;
}
#gate[hidden] { display: none; }
#gate .win { width: min(380px, 100%); }
#gate .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- desktop windows (laid out by the .desk grid; never positioned) ---------- */
.life { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 6px; }
.life i { display: block; aspect-ratio: 1; background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.life i.on { background: var(--pink); border-color: var(--pink); }
.big-num { font-size: 26px; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { position: relative; max-width: 1200px; margin: 0 auto; padding: 56px 16px 40px; }
.marks::before, .marks::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--ink); }
.marks::before { left: 0; top: 24px; border-right: 0; border-bottom: 0; }
.marks::after { right: 0; top: 24px; border-left: 0; border-bottom: 0; }
.eyebrow { text-align: center; font-family: var(--font-head); font-weight: 500; font-size: 15px; margin: 0 0 18px; }
.eyebrow .dots { letter-spacing: .12em; opacity: .55; }
h1.big {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(42px, 9vw, 128px); line-height: .86; letter-spacing: -0.045em;
  text-align: center; margin: 0; text-wrap: balance; color: var(--ink);
}
h1.big em { font-style: normal; color: var(--pink-deep); }
h1.page { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 6vw, 72px); line-height: .9; letter-spacing: -0.04em; margin: 0 0 8px; text-wrap: balance; }
h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3.6vw, 40px); line-height: .95; letter-spacing: -0.03em; margin: 0 0 12px; text-wrap: balance; }
h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin: 0 0 6px; letter-spacing: -0.02em; }
p.lead { font-family: var(--font-head); font-size: 17px; max-width: 60ch; margin: 0 0 10px; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 12px; font-family: var(--font-head); font-size: 16px; }
.prose ol, .prose ul { font-family: var(--font-head); font-size: 16px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.k { font-size: 11px; letter-spacing: .08em; text-transform: none; opacity: .7; margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }
.card { border-left: 1px solid var(--ink); padding: 6px 0 6px 14px; }
.card .k { margin-bottom: 30px; }
.card p { margin: 0; font-family: var(--font-head); font-size: 16px; color: var(--ink-soft); }

.band { background: var(--pink); color: var(--ink); }
.band .section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 900px) { .band .section { grid-template-columns: 1fr; } }
.band .win { box-shadow: 4px 4px 0 var(--ink); }
.big-btn { display: block; width: 100%; font-family: var(--font-px); font-size: 22px; padding: 18px; background: var(--ink); color: var(--ground); border: 0; cursor: pointer; margin-top: 10px; }
.big-btn:disabled { opacity: .55; cursor: default; }
.streak { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 14px; }
.graph { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin-top: 10px; }
.graph i { display: block; aspect-ratio: 1; background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.graph i.l1 { background: color-mix(in srgb, var(--pink-deep) 30%, var(--panel-2)); }
.graph i.l2 { background: color-mix(in srgb, var(--pink-deep) 65%, var(--panel-2)); }
.graph i.l3 { background: var(--pink-deep); }
.msg { min-height: 44px; margin-top: 8px; }

/* terminal */
.term { font-family: var(--font-px); }
.term .out { min-height: 150px; max-height: 260px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.term .out div { margin: 0 0 2px; }
.term form { display: flex; gap: 6px; margin-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); padding-top: 8px; }
.term input { flex: 1; font: inherit; font-family: var(--font-px); background: var(--panel-2); color: var(--ink); border: 2px solid var(--ink); padding: 4px 6px; min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* ---------- log / catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; align-items: center; }
.filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.filters input { font: inherit; font-family: var(--font-px); background: var(--panel-2); border: 2px solid var(--ink); padding: 4px 8px; min-width: min(200px, 100%); max-width: 100%; }
.section-head .small { overflow-wrap: anywhere; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.file .b { display: grid; gap: 6px; }
.file .meta { font-size: 12px; opacity: .75; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.file .hook { font-family: var(--font-head); font-size: 15px; }
.file .flag { display: inline-block; border: 1px solid var(--ink); padding: 0 6px; font-size: 11px; }
.file .flag.nb { background: var(--ink); color: var(--ground); }
.file .flag.nn { background: var(--pink); }
.count { font-size: 12px; opacity: .7; margin: 0 0 12px; }

/* forms */
.forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.form .img {
  aspect-ratio: 3 / 4; border: 2px solid var(--ink); margin-bottom: 8px;
  background: repeating-conic-gradient(var(--panel-2) 0 25%, var(--panel) 0 50%) 0 0 / 8px 8px;
  display: grid; place-items: center; font-size: 12px; text-align: center; padding: 8px; opacity: .8;
}
.form .img.dep { opacity: .35; }

/* docs tables */
table.doc { border-collapse: collapse; width: 100%; font-family: var(--font-px); font-size: 14px; max-width: 640px; }
table.doc th, table.doc td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ink); }
table.doc th { background: var(--ink); color: var(--ground); font-weight: normal; }

/* manifesto footnotes */
.fn { font-family: var(--font-px); font-size: 14px; border-top: 1px solid var(--ink); padding-top: 12px; max-width: 68ch; }
.fn li { margin: 0 0 8px; }
sup { font-size: .7em; }

/* ---------- footer ---------- */
footer { padding: 40px 16px 80px; max-width: 1200px; margin: 0 auto; font-size: 12px; }
footer .b64 { word-break: break-all; opacity: .6; cursor: pointer; margin: 0 0 10px; }
footer .b64:hover { opacity: 1; }
footer .decoded { font-family: var(--font-px); font-size: 15px; min-height: 22px; color: var(--pink-deep); }
footer .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; opacity: .85; }
footer .row a { text-decoration: none; }
footer .row a:hover { text-decoration: underline; }
footer .bottom { margin-top: 28px; font-family: var(--font-px); opacity: 0; transition: opacity .8s; }
footer .bottom.show { opacity: .8; }

/* floating windows (egg, dev, idle) */
.float { position: fixed; right: 16px; bottom: 16px; width: min(300px, calc(100vw - 32px)); z-index: 60; }
.float[hidden] { display: none; }
.float.two-up { bottom: 190px; }

.note { font-size: 11px; opacity: .55; margin-top: 8px; }

/* ---------- v2.1: hero, pictures, posts ---------- */
.hero { position: relative; overflow: hidden; background: var(--ground); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 6px 6px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 40px 16px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding-top: 24px; } }
.hero-text .eyebrow { text-align: left; }
.hero-text h1.big { text-align: left; font-size: clamp(40px, 7vw, 104px); }
.hero-text .lead { margin-top: 18px; font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-big { display: inline-block; font-family: var(--font-px); font-size: 18px; padding: 12px 20px; background: var(--ink); color: var(--ground); border: 2px solid var(--ink); text-decoration: none; }
.btn-big.ghost { background: var(--panel-2); color: var(--ink); }
.btn-big:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: var(--ground); }
.hero-pic { position: relative; display: grid; gap: 14px; }
.hero-pic .win img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.hero-pic .loop { width: 62%; justify-self: end; margin-top: -60px; }
@media (max-width: 900px) { .hero-pic .loop { width: 100%; margin-top: 0; } }
.win img.pic { display: block; width: 100%; height: auto; image-rendering: pixelated; border-bottom: 2px solid var(--ink); }
.files .file img.pic { aspect-ratio: 16 / 9; object-fit: cover; }
.file .b { padding-top: 10px; }
.file .price { font-weight: bold; }
.newest { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.looks.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.looks .win img.pic { aspect-ratio: 3 / 4; object-fit: cover; }
.looks.wide .win img.pic { aspect-ratio: 16 / 9; }
.desk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: start; }
.desk .win, .play .win, .files .win, .looks .win { width: auto; }
.post .two { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .post .two { grid-template-columns: 1fr; } }
.post .prose h3 { margin-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-family: var(--font-px); text-decoration: none; border-bottom: 1px solid var(--ink); }
#gate .row { margin-top: 10px; }

/* ---------- v2.2: play pages ---------- */
#bsod { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--ground); font-family: var(--font-px); font-size: 18px; padding: 10vh 8vw; cursor: pointer; }
#bsod[hidden] { display: none; }
#bsod p { max-width: 60ch; margin: 0 0 12px; }
#bsod .big { font-size: 34px; margin-bottom: 24px; }
.play { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.play .win a.btn { margin-top: 10px; }
.mirror { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 720px; }
.mirror canvas { width: 100%; height: auto; display: block; border-bottom: 2px solid var(--ink); image-rendering: pixelated; background: var(--panel-2); }
.mirror .ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.cave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 800px) { .cave { grid-template-columns: repeat(2, 1fr); } }
.cave .win img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.session .lines { min-height: 220px; max-height: 50vh; overflow-y: auto; font-family: var(--font-px); font-size: 20px; line-height: 1.4; }
.session .lines div { margin: 0 0 8px; }
.session .lines div.hold { color: var(--pink-deep); }
.session .lines div.big { font-size: 30px; }
.hold-bar { height: 10px; border: 2px solid var(--ink); background: var(--panel-2); overflow: hidden; margin: 8px 0; }
.hold-bar i { display: block; height: 100%; background: var(--pink-deep); width: 0; }
.quiz .q { margin-bottom: 18px; }
.quiz .q p { font-family: var(--font-head); font-size: 17px; margin: 0 0 8px; }
.quiz label { display: block; font-family: var(--font-px); font-size: 15px; margin: 4px 0; cursor: pointer; }
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.walls .win img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.walls .win a.btn { display: block; text-align: center; margin: 0; }
.field { display: grid; gap: 4px; margin-bottom: 10px; font-family: var(--font-px); }
.field input, .field select, .field textarea { font: inherit; font-family: var(--font-px); background: var(--panel-2); color: var(--ink); border: 2px solid var(--ink); padding: 6px 8px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.card-wrap canvas { width: 100%; max-width: 480px; height: auto; display: block; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.tracks .win audio { width: 100%; margin-top: 8px; }
.inline-form { display: flex; gap: 6px; }
.inline-form input { flex: 1; min-width: 0; font: inherit; font-family: var(--font-px); background: var(--panel-2); color: var(--ink); border: 2px solid var(--ink); padding: 6px 8px; }
@media (prefers-reduced-motion: reduce) { .bar i, .meter i b { transition: none; } html { scroll-behavior: auto; } }
