:root {
  color-scheme: light;
  --ink: #182d32;
  --blue: #163e9e;
  --ocean: #0d5260;
  --paper: #fffdf3;
  --metal: #d3d6c7;
  --line: #8d998a;
  --sun: #ffce68;
  --sans: 'Work Sans', 'Trebuchet MS', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, 'Liberation Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #c4d6ce; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-image: radial-gradient(#72968c62 .65px, transparent .9px);
  background-size: 5px 5px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}
a { color: #103d7d; text-underline-offset: .18em; }
a:hover { color: #061a4c; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #c6401f;
  outline-offset: 3px;
}
.wrap { width: min(65rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; z-index: 5; }
.skip:focus { top: .5rem; left: .8rem; background: white; padding: .4rem .85rem; }
.mast { background: #f7f5e9; border-bottom: 2px solid var(--ink); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.35rem; }
.mast a { text-decoration: none; }
.mast a:hover { text-decoration: underline; }
.arcade { display: inline-flex; gap: .6rem; align-items: center; font-size: .97rem; color: var(--ink); }
.arcade strong { letter-spacing: -.04em; font-size: 1.18rem; }
.arcade .division { border-left: 1px solid #78847c; padding-left: .65rem; }
.pennants { display: inline-block; height: .86rem; width: 1.42rem; position: relative; }
.pennants::before { content: ''; position: absolute; top: 0; left: 0; width: .34rem; height: .86rem; background: #b7462c; transform: skewX(-12deg); box-shadow: .47rem .15rem #b7462c, .94rem .30rem #b7462c; }
.mast-source { color: var(--ink); font-size: .89rem; font-weight: 700; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(1.2rem, 3vw, 2.4rem); }
.intro h1 { margin: 0; font-size: clamp(2.2rem, 6.8vw, 5.75rem); line-height: .96; letter-spacing: -.075em; font-family: var(--sans); font-weight: 800; }
.intro h1 em { color: var(--blue); font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -.08em; }
.intro p { max-width: 53ch; margin: .8rem 0 0; line-height: 1.34; font-size: clamp(1rem,1.9vw,1.25rem); }
.computer { --u: clamp(2.5px, .32vw, 3.4px); width: calc(44 * var(--u)); height: calc(37 * var(--u)); position: relative; flex: none; margin-inline-end: 1em; color: var(--ink); }
.computer div, .computer i, .computer b { position: absolute; }
.crt { top: 2%; left: 13%; width: 74%; height: 70%; border: var(--u) solid currentColor; border-radius: calc(2 * var(--u)); background: #c3c5af; box-shadow: inset var(--u) var(--u) #fffbea, inset calc(-2 * var(--u)) calc(-2 * var(--u)) #9ea798; }
.crt::after { content: ''; position: absolute; right: 11%; top: 84%; width: 6%; height: var(--u); background: #3e6253; }
.glass { top: 10%; left: 9%; width: 80%; height: 65%; overflow: hidden; background: #25626a; border: var(--u) solid currentColor; box-shadow: 0 var(--u) #f6f2db; }
.pixel-globe { top: 12%; left: 36%; width: 30%; height: 74%; border: var(--u) solid #82dfbe; border-radius: 50%; }
.pixel-globe::before, .pixel-globe::after { content:''; position: absolute; }
.pixel-globe::before { inset: calc(-1 * var(--u)) 13%; border: var(--u) solid #82dfbe; border-radius: 50%; }
.pixel-globe::after { top: 39%; left: 0; right: 0; height: var(--u); background: #82dfbe; }
.drive { left: 8%; bottom: 17%; width: 84%; height: 16%; border: var(--u) solid; background: #d9dbbe; box-shadow: inset var(--u) var(--u) #fffbe3, inset calc(-1 * var(--u)) calc(-1 * var(--u)) #93a091; }
.drive::before { content: ''; position: absolute; top: 30%; right: 8%; width: 36%; height: var(--u); background: currentColor; }
.drive::after { content: ''; position: absolute; top: 30%; left: 7%; width: var(--u); height: var(--u); background: #c65628; }
.keyboard { left: 4%; bottom: 1%; width: 92%; height: 13%; border: var(--u) solid; background: #c9cbb6; box-shadow: inset 0 var(--u) #faf8df, 0 var(--u) #799689; transform: skewX(-12deg); }
.keyboard::after { content: ''; position: absolute; left: 9%; right: 9%; top: 22%; height: var(--u); background: repeating-linear-gradient(to right,#839181 0 5%, transparent 5% 8%); }
.window { border: 2px solid var(--ink); padding: .28rem; background: var(--metal); box-shadow: inset 2px 2px #fffff1, inset -2px -2px #798579, .32rem .32rem #718f84; }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .48rem .78rem; background: var(--blue); color: white; font-family: var(--mono); font-weight: 700; font-size: .88rem; }
.titlebar span:first-child { display: inline-flex; align-items: center; gap: .65rem; }
.titlebar span:first-child::before { content: ''; width: .95rem; height: .72rem; border: 1px solid #fffbd5; background: #f6c866; box-shadow: inset 0 -2px #c38e39; }
.surface { padding: clamp(1rem,3.6vw,2.65rem); margin: .47rem .24rem .22rem; background: var(--paper); border: 1px solid; border-color: #7c887d #fffff5 #fffff5 #7c887d; }
h2, h3 { line-height: 1.12; }
h2 { margin: 0; letter-spacing: -.045em; font-size: clamp(1.58rem, 3.5vw, 2.6rem); }
button { border-radius: 0; font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 2rem; padding-block: 1.3rem 2.6rem; font-size: .9rem; }
.footer p { margin: 0; max-width: 40rem; }
.footer details { max-width: 42rem; }
.footer summary { cursor: pointer; color: #163e73; font-weight: bold; text-decoration: underline; text-underline-offset: .18em; }
.footer details[open] p { margin-top: .5rem; }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 1.55rem); }
  .intro { gap: .4rem; }
  .intro h1 { font-size: clamp(2.25rem,7.8vw,3.25rem); }
  .intro p { margin-top: .55rem; }
  .computer { --u: 1.55px; margin-right: 0; }
  .titlebar { padding: .4rem .55rem; font-size: .78rem; }
  .surface { padding: .9rem .65rem; }
}
@media (max-width: 390px) { .computer { display: none; } .arcade { gap: .4rem; } }
@media (min-width: 360px) and (max-width: 390px) {
  .intro { position: relative; }
  .intro h1 { max-width: calc(100% - 2.9rem); }
  .computer { display: block; position: absolute; top: 1rem; right: 0; --u: 1px; }
}
@media (forced-colors: active) { .window, .surface { border: 1px solid CanvasText; } }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1.4rem; align-items: stretch; }
.record { --folder: #ffcf6f; --trim: #a46223; background: #fcf7e4; border: 2px solid #34484b; box-shadow: 3px 3px #c8cec2; display: flex; flex-direction: column; min-width: 0; }
.record:nth-child(2) { --folder: #95d5cd; --trim: #487f80; background: #f1f7ee; }
.pick { display: flex; flex: 1; align-items: flex-start; flex-direction: column; text-align: left; width: 100%; min-width: 0; padding: clamp(.95rem, 2.5vw, 1.5rem); border: 0; background: transparent; }
.pick:not(:disabled):hover { background: #fff4ca; }
.record:nth-child(2) .pick:not(:disabled):hover { background: #dcefe1; }
.record:has(.pick:not(:disabled):active) { transform: translate(2px, 2px); box-shadow: 1px 1px #a9b3a7; }
.pick-meta { display: flex; align-items: center; gap: .55rem; color: #41514e; font: 700 .86rem/1.3 var(--mono); }
.file-icon { position: relative; display: inline-block; flex: none; width: 1.55rem; height: 1.06rem; margin-top: .24rem; background: var(--folder); border: 1.5px solid #394f4d; border-radius: 0 2px 2px 2px; box-shadow: inset 0 2px #fff9d9, inset -1px -2px var(--trim); }
.file-icon::before { content:''; position: absolute; width: 50%; height: .25rem; left: -1.5px; bottom: 100%; background: var(--folder); border: 1.5px solid #394f4d; border-bottom: 0; }
.pick-title { margin: 1rem 0 .42rem; line-height: 1.12; letter-spacing: -.035em; font-size: clamp(1.2rem, 2.45vw, 1.7rem); overflow-wrap: anywhere; }
.pick-clue { margin-bottom: 1.25rem; line-height: 1.45; }
.pick-action { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; color: var(--blue); }
kbd { display: inline-block; min-width: 1.45rem; padding: .08rem .23rem; line-height: 1.1; text-align: center; font: 700 .85rem/1.3 var(--mono); color: var(--ink); border: 1px solid #596963; border-bottom-width: 3px; border-radius: 3px; background: #fdf9e8; }
.pick:disabled .pick-action { display:none; }
.record[data-outcome=earlier] { border-color: #285f47; }
.proof { margin-inline: clamp(.95rem, 2.5vw, 1.5rem); padding: .8rem 0 1.2rem; border-top: 1px dashed #727e72; }
.verdict { display: block; margin-bottom: .35rem; color: #425250; font: 700 .85rem/1.35 var(--mono); }
.record[data-outcome=earlier] .verdict { color: #20563f; }
.proof-date { display: block; font: 700 clamp(1.12rem,2vw,1.35rem)/1.25 var(--mono); color: #1d4b53; }
.proof p { margin: .4rem 0 .7rem; font-size: .95rem; }
.proof-links { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; font-weight: 700; font-size: .88rem; }
.response { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1rem; margin-top: 1.3rem; }
.response:has(#yi-feedback:empty):not(:has(button:not([hidden]))) { display:none; }
#yi-feedback { margin: 0; flex: 1 1 17rem; font-weight: 700; }
#yi-feedback:empty { display:none; }
.advance { display: flex; flex-wrap: wrap; gap: .55rem; }
.advance:empty { display:none; }
.advance button, #yi-share { padding: .52rem .85rem; line-height: 1.3; font-weight: 700; background: #dde1d3; border: 1px solid #334543; box-shadow: inset 1px 1px #fff, inset -1px -1px #8a978b; }
.advance .primary { background: var(--blue); color: white; box-shadow: inset 1px 1px #6d89dc, inset -1px -1px #152752; }
.advance button:hover, #yi-share:hover { text-decoration: underline; }
.statusbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: .3rem .25rem .2rem; font-size: .87rem; }
.how { padding: .4rem .45rem; }
.how summary { cursor: pointer; font-weight: 700; text-underline-offset: .15em; }
.how summary:hover { text-decoration: underline; }
.how p { max-width: 50ch; margin: .3rem 0; }
.share { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .45rem .7rem; min-width: 0; }
#yi-share { min-height: 2.3rem; font-size: .87rem; }
#yi-share-status { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
#yi-share-status input { max-width: 100%; font-size: 1rem; }
.summary ol { padding: 0; margin: 1rem 0; list-style-position: inside; }
.summary li { border-top: 1px solid #adb6a8; padding: .7rem 0; }
.summary li::marker { font: 700 .9rem var(--mono); color: #2b5352; }
.no-script { padding: 1rem; background: var(--paper); border: 1px solid var(--ink); }
html[data-embed=coolcode], html[data-embed=coolcode] body { min-height: 0; }
html[data-embed=coolcode] .intro { padding-block: .95rem; }
html[data-embed=coolcode] .intro h1 { font-size: clamp(2.1rem,5.6vw,4rem); }
html[data-embed=coolcode] .footer { padding-bottom: 1rem; }
@media(max-width:600px) {
  .pair { gap: .65rem; grid-template-columns: 1fr; margin-top: .9rem; }
  .pick { padding: .8rem .87rem; }
  .pick-title { margin-top: .55rem; }
  .pick-clue { margin-bottom: .55rem; }
  .proof { margin-inline: .87rem; padding-bottom: .8rem; }
  .statusbar { gap: .2rem .6rem; flex-wrap: wrap; }
  .share { margin-left: auto; }
  .pick-meta { font-size: .8rem; }
  .response { margin-top: .8rem; }
}
