/* paintpad: worldwideweb's launchpad layout, dressed as Windows 98 Paint.
   Built on 98.css at its native pixel sizes; the page is zoomed so the 11px system font lands at 19 to 22px. */
:root {
  --sky: #c9d5e1;
  --face: #c0c0c0;
  --navy: #000080;
  --tip: #ffffe1;
  --up: #0000c0;
  --down: #c00000;
  --mute: #404040;
  --sunken: inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  --raised: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --pressed: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
  --field: inset -1px -1px #fff, inset 1px 1px #808080;
  --dither: repeating-conic-gradient(#c0c0c0 0 25%, #fff 0 50%) 0 0 / 2px 2px;
}
html { zoom: 2; background: var(--sky); }
@media (max-width: 1700px) { html { zoom: 1.75; } }
@media (max-width: 1100px) { html { zoom: 1.65; } }
body { margin: 0; background: var(--sky); color: #000; font: 11px 'Pixelated MS Sans Serif', Arial, sans-serif; -webkit-font-smoothing: none; }
a { color: #000; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
.mute { color: var(--mute); }
.mi { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 12px; }
.window { min-width: 0; }
.title-bar-text { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.title-bar-text img { width: 16px; height: 16px; image-rendering: pixelated; flex: none; }
.window-body > :first-child { margin-top: 0; }
.window-body > :last-child { margin-bottom: 0; }
.tag { display: inline-block; background: var(--face); box-shadow: var(--raised); padding: 3px 8px; margin-bottom: 10px; }

/* header: worldwideweb's bar, as a Windows menu strip */
.top { background: var(--face); box-shadow: inset 0 -1px #808080, inset 0 -2px #fff; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.brand { display: flex; align-items: center; gap: 5px; font-weight: bold; text-decoration: none; font-size: 13px; }
.brand img { width: 16px; height: 16px; image-rendering: pixelated; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav span { color: #808080; }
.nav a[aria-current="page"] { font-weight: bold; }
.top .wallet { margin-left: auto; font-weight: bold; }

.testnet { margin: 0; background: var(--tip); border-bottom: 1px solid #000; padding: 4px 0; line-height: 13px; }
.testnet .wrap { display: block; }

/* Paint window parts */
.menubar { display: flex; gap: 2px; padding: 0 0 2px; flex-wrap: wrap; }
.menubar a { padding: 1px 6px; color: #000; text-decoration: none; }
.menubar a:hover, .menubar a:focus-visible { background: var(--navy); color: #fff; }
.menubar a::first-letter { text-decoration: underline; }
.paint { display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.toolbox { padding: 0 3px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.toolbox .tools .pressed { position: absolute; width: 50%; height: 12.5%; background: rgba(255,255,255,0.35); box-shadow: inset 1px 1px #000, inset -1px -1px #fff; }
.toolbox .tools { position: relative; width: 50px; aspect-ratio: 100 / 381; background: url(toolbox.png) center / 100% 100% no-repeat; }
.toolbox .widths { width: 44px; height: 56px; box-shadow: var(--field); display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; }
.toolbox .widths i { display: block; width: 30px; background: #000; }
.toolbox .widths i.on { box-shadow: 0 0 0 3px var(--navy); }
.workspace { background: #808080; padding: 4px 8px 8px 4px; box-shadow: var(--sunken); min-width: 0; position: relative; }
.easel { position: relative; background: #fff; overflow: hidden; }
.easel canvas { display: block; width: 100%; height: auto; aspect-ratio: 760 / 520; }
.workspace .easel { box-shadow: 2px 2px 0 #000; }
.cursor { position: absolute; left: 0; top: 0; width: 13px; height: 13px; pointer-events: none; will-change: transform; transform: translate(-60px, -60px); }
.colors { display: flex; gap: 4px; align-items: center; padding: 4px 0 0; }
.current { width: 31px; height: 31px; position: relative; box-shadow: var(--field); flex: none; background: var(--dither); }
.current i { position: absolute; width: 13px; height: 13px; box-shadow: var(--field); }
.current i:first-child { left: 5px; top: 5px; background: #000; z-index: 1; }
.current i:last-child { right: 5px; bottom: 5px; background: #fff; }
.swatches { display: grid; grid-template-columns: repeat(14, 15px); grid-template-rows: 15px 15px; gap: 1px; }
.swatches i { display: block; box-shadow: inset -1px -1px #fff, inset 1px 1px #808080, inset 2px 2px #000; }
.status-bar-field { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.caption { margin: 6px 0 0; line-height: 14px; min-height: 28px; }
.caption .think { color: var(--mute); }
.caption .caret { display: inline-block; width: 5px; height: 10px; background: #000; vertical-align: -1px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* home hero: picture | words | live Paint */
.hero { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.55fr); grid-template-areas: 'art words live' 'lists lists live'; gap: 14px 20px; padding: 18px 0 22px; align-items: start; }
.art { grid-area: art; }
.art img { width: 128px; height: 128px; display: block; image-rendering: pixelated; } /* the 32px Paint icon at exactly 4x */
.words { grid-area: words; display: grid; gap: 10px; align-content: start; }
.words .motto { line-height: 14px; }
.big { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 22px; line-height: 26px; font-weight: bold; }
.big span { color: #808080; font-weight: normal; }
.words p { margin: 0; line-height: 14px; }
.live { grid-area: live; }
.lists { grid-area: lists; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lists h2 { font-size: 11px; margin: 0 0 4px; }
.listbox { background: #fff; box-shadow: var(--sunken); padding: 4px; margin: 0; list-style: none; min-height: 60px; }
.listbox li { display: flex; gap: 8px; padding: 1px 2px; align-items: center; flex-wrap: wrap; line-height: 14px; }
.listbox:empty::before { content: attr(data-empty); color: var(--mute); }

/* explore */
.explore { padding-bottom: 28px; }
.explore-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.explore-head h2 { font-size: 22px; line-height: 26px; margin: 0; }
.explore-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.seg { display: flex; }
.seg button { min-width: 0; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; }
.seg button .mi { margin: 0; }
.seg button[aria-pressed="true"] { box-shadow: var(--pressed); background: var(--dither); font-weight: bold; }
.explore-tools input { flex: 1 1 160px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.more-row { text-align: center; margin: 12px 0 0; }
.more-row button { padding: 0 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { text-decoration: none; color: #000; display: block; }
.card .window-body { margin: 3px; }
.card .easel { box-shadow: 0 0 0 1px #808080; }
.badge { position: absolute; left: 4px; top: 4px; display: flex; align-items: center; gap: 3px; background: var(--face); box-shadow: var(--raised); padding: 2px 5px; }
.badge .mi { margin: 0; }
.tipline { position: absolute; left: 4px; right: 4px; bottom: 4px; margin: 0; background: var(--tip); border: 1px solid #000; padding: 2px 4px; line-height: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tipline:empty { display: none; }
.id { display: flex; gap: 6px; align-items: center; padding: 6px 0 4px; }
.id > canvas, .id > img { width: 32px; height: 32px; border: 1px solid #808080; background: #fff; flex: none; object-fit: cover; }
.id div { min-width: 0; }
.id b { display: block; }
.id span { color: var(--mute); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0 0 4px; }
.stats div { box-shadow: var(--field); padding: 2px 4px; min-width: 0; }
.stats dt { color: var(--mute); }
.stats dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up { color: var(--up); }
.down { color: var(--down); }

/* Win98 progress bar: navy blocks in a sunken trough */
.progress { height: 14px; padding: 2px; box-shadow: var(--field); background: #fff; }
.progress .fill { height: 100%; min-width: 2px; background: repeating-linear-gradient(90deg, var(--navy) 0 7px, transparent 7px 9px); }
.curve { display: flex; justify-content: space-between; gap: 6px; margin: 3px 0 0; color: var(--mute); flex-wrap: wrap; }

/* page heads (launch, models, docs) */
.page-head { padding: 18px 0 14px; max-width: 660px; }
.page-head h1 { font-size: 33px; line-height: 36px; margin: 0 0 8px; }
.page-head p { margin: 0; line-height: 14px; }

/* launch */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; padding-bottom: 28px; }
.launch form .window-body { display: grid; gap: 12px; }
.sec { display: grid; gap: 8px; }
.sec + .sec { border-top: 1px solid #808080; box-shadow: inset 0 1px #fff; padding-top: 12px; }
.sec h2 { display: flex; align-items: center; gap: 6px; font-size: 11px; margin: 0; }
.num { display: inline-grid; place-items: center; width: 16px; height: 16px; background: var(--navy); color: #fff; font-weight: bold; flex: none; }
.coin-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.drop { box-shadow: var(--sunken); background: #fff; display: grid; place-items: center; text-align: center; cursor: pointer; height: 84px; position: relative; overflow: hidden; line-height: 13px; }
.drop img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; background: #fff; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field { display: grid; gap: 3px; }
.field > span { display: flex; justify-content: space-between; gap: 6px; }
.field > span i { font-style: normal; color: var(--mute); }
.field input, .field textarea { width: 100%; }
.field textarea { min-height: 44px; resize: vertical; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.picker-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.picker-tools input { flex: 1 1 140px; min-width: 0; }
.pick { background: #fff; box-shadow: var(--sunken); padding: 3px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
.opt { display: flex; gap: 6px; align-items: center; text-align: left; font: inherit; color: #000; background: #fff; border: 0; box-shadow: none; padding: 3px 4px; min-width: 0; min-height: 0; height: auto; width: 100%; cursor: pointer; }
.opt:hover { background: #e8e8e8; }
.opt[aria-pressed="true"] { background: var(--navy); color: #fff; }
.opt[aria-pressed="true"] small { color: #dfdfdf; }
.opt .tile { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.opt .tile img { width: 16px; height: 16px; }
.opt b { display: block; font-weight: normal; }
.opt small { display: block; font-size: 11px; color: var(--mute); line-height: 13px; }
.models-pick { max-height: 250px; overflow: auto; }
#mlabs { flex-wrap: wrap; }
#mlabs button { padding: 0 4px; }
.go-launch { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.go-launch .go { font-weight: bold; padding: 0 16px; height: 26px; }
.go-launch .status { color: var(--mute); line-height: 13px; flex: 1 1 200px; }
.side { display: grid; gap: 14px; position: sticky; top: 10px; }
.who { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.logo-box { width: 48px; height: 48px; background: #fff; box-shadow: var(--sunken); overflow: hidden; flex: none; }
.logo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who b { font-size: 22px; line-height: 24px; display: block; word-break: break-all; }
.kv { margin: 0; display: grid; gap: 6px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 1px 0 0; }
.kv .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.notepad pre, .notepad .note { margin: 0; background: #fff; box-shadow: var(--sunken); padding: 6px; font: 11px/13px 'Courier New', monospace; white-space: pre-wrap; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; line-height: 13px; }

/* coin page */
.coin-head { display: flex; gap: 10px; align-items: center; padding: 16px 0 10px; flex-wrap: wrap; }
.coin-head > canvas, .coin-head > img { width: 48px; height: 48px; background: #fff; box-shadow: var(--sunken); padding: 2px; flex: none; object-fit: cover; }
.coin-head h1 { font-size: 22px; line-height: 24px; margin: 0; }
.coin-head h1 small { font-size: 11px; font-weight: normal; margin-left: 4px; }
.coin-head p { margin: 2px 0 0; color: var(--mute); }
.coin-head .links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.coin-head .links span { color: #808080; }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; background: var(--face); box-shadow: var(--raised); padding: 3px; margin-bottom: 12px; }
.strip > div { box-shadow: var(--field); padding: 4px 6px; min-width: 0; }
.strip dt { color: var(--mute); }
.strip dd { margin: 2px 0 0; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip dd small { display: block; font-weight: normal; color: var(--mute); }
.strip .progress { margin-top: 3px; }
.coin-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 12px; }
.coin-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; padding: 6px; background: #fff; box-shadow: var(--sunken); min-height: 120px; align-content: start; max-height: 420px; overflow: auto; }
.piece { background: none; border: 0; box-shadow: none; padding: 2px; text-align: left; min-width: 0; min-height: 0; font: inherit; color: #000; cursor: pointer; display: block; }
.piece canvas { display: block; width: 100%; height: auto; aspect-ratio: 760 / 520; background: #fff; border: 1px solid #808080; }
.piece .q, .piece .m { margin: 2px 0 0; line-height: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.piece .m { color: var(--mute); }
.piece[aria-current="true"] .q { background: var(--navy); color: #fff; }
.piece:hover .q { text-decoration: underline; }
.empty { color: var(--mute); margin: 0; line-height: 13px; }
.box-head { display: flex; justify-content: space-between; gap: 8px; }
.model-box .model { display: flex; align-items: center; gap: 6px; font-weight: bold; margin: 2px 0 8px; flex-wrap: wrap; min-width: 0; }
.model-box .model img { width: 16px; height: 16px; }

/* the guessing room */
.gamebar { display: flex; align-items: center; gap: 10px; padding: 0 2px 4px; min-height: 18px; }
.gamebar .hint { flex: 1; text-align: center; font: bold 16px/18px 'Courier New', monospace; letter-spacing: 1px; white-space: nowrap; overflow: hidden; }
.gamebar .clock { color: var(--mute); }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; margin: 0; max-width: 34%; padding: 3px 7px; background: #fff; border: 1px solid #000; box-shadow: 2px 2px 0 #000; line-height: 13px; overflow-wrap: anywhere; animation: pop .18s steps(2) both; }
.bubble.l { left: 3%; }
.bubble.r { right: 3%; }
.bubble.got { background: var(--navy); color: #fff; font-weight: bold; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.reveal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 46%; z-index: 2; }
.reveal .word { font-size: 22px; line-height: 26px; font-weight: bold; text-align: center; margin: 4px 0 6px; }
.reveal p { margin: 0; text-align: center; line-height: 13px; }
.guess-box .window-body { display: grid; gap: 6px; }
.chat { height: 150px; overflow: auto; }
.chat li.got span { color: var(--navy); font-weight: bold; }
.guess-row { display: flex; gap: 4px; }
.guess-row input { flex: 1; min-width: 0; height: 26px; }
.guess-row button { font-weight: bold; height: 26px; }
.buy-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.buy-row span { flex: 1 1 140px; }
.guess-box .fine { margin: 0; line-height: 13px; min-height: 13px; color: var(--mute); }
.scores { min-height: 40px; padding-left: 4px; }
.scores li { justify-content: space-between; }
.rules { margin: 0; padding-left: 16px; line-height: 13px; display: grid; gap: 4px; }
.rules code { font: 11px 'Courier New', monospace; }

/* models page */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding-bottom: 28px; }
.model-card .window-body { display: grid; gap: 6px; }
.model-card .maker { display: flex; align-items: center; gap: 5px; color: var(--mute); }
.model-card .maker img { width: 16px; height: 16px; }
.model-card h2 { font-size: 22px; line-height: 24px; margin: 0; }
.model-card p { margin: 0; line-height: 13px; }

/* docs */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 760px; padding-bottom: 28px; }
.docs .window-body p { margin: 0 0 8px; line-height: 14px; }

footer.site { text-align: center; padding: 18px 0 26px; color: var(--mute); }
footer.site nav { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; color: #000; }
footer.site nav span { color: #808080; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 110px minmax(0, 1fr); grid-template-areas: 'art words' 'live live' 'lists lists'; }
  .art img { width: 96px; height: 96px; }
  .launch, .coin-main { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'words' 'live' 'lists'; }
  .art { display: none; }
  .lists, .pair, .coin-row, .pick { grid-template-columns: minmax(0, 1fr); }
  .paint { grid-template-columns: minmax(0, 1fr); }
  .toolbox, .colors { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coin-head .links { margin-left: 0; }
  .top .wrap { flex-wrap: wrap; gap: 2px 12px; padding-top: 4px; padding-bottom: 4px; }
  .top .nav { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .caption .caret, .bubble { animation: none; } }
.claim-box { display: grid; gap: 6px; }
.claim-box p { margin: 0; line-height: 13px; }
.claim-box button { justify-self: start; font-weight: bold; }
.claim-box .fine { color: var(--mute); min-height: 13px; }
