
:root{--ink:#141414;--paper:#faf8f4;--accent:#2f7d4f;--rule:#d8d2c6;--muted:#5f5b54;--soft:#f0ebe1;--box:#fff;
  --serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --body:#ebe6db;--bodyedge:#cbc3b2;--bezel:#3f424a;--pad:#2b2d33;--abtn:#a8324a}
@media (prefers-color-scheme:dark){:root{--ink:#e8e4dc;--paper:#171614;--accent:#6fbe8f;--rule:#3a362e;--muted:#aaa49a;--soft:#24221e;
  --body:#cbc4b5;--bodyedge:#a1998a}}
*{margin:0;box-sizing:border-box}
body{font-family:var(--serif);background:var(--paper);color:var(--ink);line-height:1.6}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}
a{color:var(--accent)}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.skip{position:absolute;left:-999px;top:0;background:#12181c;color:#fff;padding:8px 12px;z-index:1000}.skip:focus{left:8px;top:8px}
[hidden]{display:none!important}
main{padding-bottom:64px}
section{padding-top:64px}
h1{font-size:clamp(32px,4.4vw,52px);line-height:1.08;letter-spacing:-.5px}
h2{font-size:28px;line-height:1.2;letter-spacing:-.3px}
.lede{font-size:clamp(18px,1.8vw,21px);line-height:1.5;color:var(--muted);margin-top:16px;max-width:620px}
.sec{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px 24px;margin-bottom:24px}
.sec a,.more a,.links a{font-family:var(--sans);font-size:15px;text-decoration:none}
.sec a:hover,.more a:hover,.links a:hover{text-decoration:underline}

/* cards: a preview of the tool, a name, one line (the Arcade's way; the previews are tools/tidy_cards.py's) */
.cards{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:40px 32px}
.cards.four{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}
@media (min-width:520px) and (max-width:719px){.cards:not(.four){grid-template-columns:1fr 1fr}}
.card{position:relative;min-width:0}
.pic.photo{height:auto;aspect-ratio:276/156}
.pic.photo img{width:100%;height:100%;object-fit:cover;image-rendering:auto}
.card h3{font-size:20px;line-height:1.25;margin:16px 0 4px}
.card h3 a{color:var(--ink);text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0}
.card:hover h3 a{color:var(--accent)}
.card p{font-size:15.5px;line-height:1.5;color:var(--muted)}

.more{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:baseline;padding-top:32px;margin-top:48px;border-top:1px solid var(--rule)}
.more span{font-family:var(--sans);font-size:15px;color:var(--muted)}
.links{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:16px}

footer.site-f{display:flex;justify-content:space-between;flex-wrap:wrap;gap:0 24px;padding:16px 0 40px;border-top:1px solid var(--rule);font:14px/1.4 var(--sans);color:var(--muted)}
footer.site-f a{color:var(--accent);text-decoration:none;margin-right:16px;display:inline-flex;align-items:center;min-height:44px}
#stamp{user-select:none;display:inline-flex;align-items:center;min-height:44px}
@media (max-width:600px){.wrap{padding:0 16px}section{padding-top:48px}h2{font-size:25px}
  .cards.four{grid-template-columns:1fr 1fr;gap:24px 16px}.cards.four h3{font-size:18px;margin-top:12px}.cards.four p{font-size:14.5px}}

/* the Lab (lab() below): the Battler's screen with its starts, three featured tools, the index, one note.
   Game surfaces are the game's own colours in both themes: the battler's white (--gbw) for its screen and the menus
   drawn with its text box tiles, the Super Game Boy's white (--sgb) under every Gen 1 sprite. */
:root{--sgb:#ffefff;--gbw:#f8f8f8;--gbink:#181010;--gbdim:#5b525c}
/* the frame: the site header's own (tools/apply_nav.py: the same pixels on every page, Garden 2026-11-06) up to a laptop's
   width, then wider than it, up to 1600 px, so a big window is used (Garden 2026-11-20: "all this empty space on the
   sides"); the header itself is never moved */
.wrap{max-width:none;padding-left:max(24px,min(calc(50% - 596px),max(120px,calc(50% - 800px))));padding-right:max(24px,min(calc(50% - 596px),max(120px,calc(50% - 800px))))}
main{padding-bottom:88px}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.px{image-rendering:pixelated;image-rendering:crisp-edges}
.sec-h{font-size:clamp(26px,2.4vw,34px);line-height:1.15;letter-spacing:-.3px}
.sec-h a{color:var(--ink);text-decoration:none}
.sec-h a:hover{color:var(--accent)}
.say{font-size:17px;line-height:1.55;color:var(--muted);margin-top:8px;max-width:36em}
.say a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}

/* the hero. A phone: the title, the screen and the menu (all three in the first screen), then the Battler's words. A
   wide window: the title over the screen and the lede over the menu, on the same two columns; the menu at the top of
   its column and the Battler's words at the foot of it, level with the screen's bezel */
.lh{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "shot" "play";gap:24px;padding-top:24px;align-items:start}
.lh>.intro{grid-area:intro}.lh>.shot{grid-area:shot}.lh>.play{grid-area:play}
.lh h1{font-size:clamp(46px,7.2vw,104px);line-height:.95;letter-spacing:-.02em}
.lh .lede{max-width:30em;margin-top:12px}
.play{min-width:0;display:flex;flex-direction:column}
.about{margin-top:40px}
@media (max-width:600px){.lh{gap:12px;padding-top:12px}.lh .lede{margin-top:8px;font-size:16px;line-height:1.45}.about{margin-top:36px}}
/* a tablet: the menu beside the screen, the Battler's words under both */
@media (min-width:744px) and (max-width:879px){
  .lh{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"intro intro" "shot menu" "about about";column-gap:28px}
  .lh>.play{display:contents}.lh .gbmenu{grid-area:menu}.lh .about{grid-area:about;margin-top:8px}}
@media (min-width:880px){
  .lh{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"intro intro" "shot play";gap:44px 56px;padding-top:48px}
  .lh>.intro{display:grid;grid-template-columns:subgrid;align-items:end}
  .lh .lede{margin:0 0 4px}
  .lh>.play{align-self:stretch;justify-content:space-between}
  .about{margin-top:32px}}
@media (min-width:1180px){.lh{column-gap:88px}}

/* the Battler's screen: the battler's own frame in the Glitchhouse piece's bezel (.gh-pic below), one link to a
   quick battle; 2x, 3x on a wide window, 1x on the narrowest phone, the bezel narrower where a phone has no room */
.shot{justify-self:start}
.shot img{display:block;width:320px;height:288px}
.shot:hover img{filter:brightness(1.04)}
.shot:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media (max-width:389px){.lh .shot{padding:clamp(0px,calc(50vw - 176px),14px) clamp(0px,calc(50vw - 176px),14px) 22px}}
@media (max-width:351px){.lh .shot{padding:14px 14px 22px}.shot img{width:160px;height:144px}}
@media (min-width:1180px){.shot img{width:480px;height:432px}}

/* the starts: a menu in the game's own text box (its border tiles, BOX) and font (each label a picture of it), every
   entry a plain link; the game's cursor (CUR) on the first, and on the one a pointer or the keyboard is on */
.gbbox{border:16px solid transparent;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAmElEQVR42u2VSwrAIAxEE+ki9z/t7OxGIbHGH1oodEAoTV+CQ3WIXlZMaxsfdBGA/lADveXxxOULLQU0JSJeiS+vWYYasOE8ngqLIoCYn0ct0ozijEXGOwAkIlMWZabsG2pbnmneYx5/0WzznsLpg/UP+AfsHcCVE7l/BytDRhlzwa1edmXofD8PuBaZqcgT+cwOfz70j+sGcwqpx6oqteAAAAAASUVORK5CYII=) 8 fill / 16px stretch;image-rendering:pixelated;image-rendering:crisp-edges;color:var(--gbink)}
.gbmenu{max-width:560px}
.gbmenu ul{list-style:none;margin:0;padding:0}
.gbmenu a{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;padding:9px 6px 9px 0;color:inherit;text-decoration:none;border-radius:2px}
.gbmenu a::before{content:"";grid-row:1/span 2;width:16px;height:16px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAJ0lEQVR42mNgIBL8h2IMwIRFIV4FGIqY8FiJVwEjPgWM+KxgRFcNAHC8BQs8MUryAAAAAElFTkSuQmCC) 0 0/16px 16px no-repeat;visibility:hidden}
.gbmenu li:first-child a::before,.gbmenu a:hover::before,.gbmenu a:focus-visible::before{visibility:visible}
.gbmenu:has(a:hover,a:focus-visible) li:first-child a:not(:hover):not(:focus-visible)::before{visibility:hidden}
.gbmenu img{display:block;height:16px}
.gbmenu .d{display:block;margin-top:6px;font:14.5px/1.45 var(--sans);color:var(--gbdim)}
.gbmenu a:hover .d{color:var(--gbink)}
.gbmenu a:focus-visible{outline:3px solid var(--accent);outline-offset:1px}
@media (max-width:600px){.gbmenu a{padding:5px 4px 5px 0}.gbmenu .d{margin-top:3px;font-size:13.5px;line-height:1.3}}
@media (min-width:1500px){.lh .lede,.about .say{max-width:40em}}
/* a big window: the screen 4x and the menu 3x (the text box's tiles, the font, the cursor), level with each other */
@media (min-width:1700px){.shot img{width:640px;height:576px}
  .gbbox.gbmenu{border-width:24px;border-image-width:24px;max-width:720px}
  .gbmenu a{grid-template-columns:36px minmax(0,1fr);padding:18px 8px 18px 0}
  .gbmenu a::before{width:24px;height:24px;background-size:24px 24px}
  .gbmenu img{height:24px;width:auto}.gbmenu .d{margin-top:8px;font-size:16px}}
.about .embed{margin-top:18px;font:15px/1.5 var(--sans);color:var(--muted)}
.about .embed a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}

/* the featured three: the name calculator, the Glitchhouse, the bosses */
.feat{display:grid;grid-template-columns:minmax(0,1fr);gap:72px;margin-top:88px;padding-top:56px;border-top:1px solid var(--rule)}
@media (min-width:1000px){.feat{grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"ng gh" "boss gh";grid-template-rows:auto 1fr;gap:72px 88px;align-items:start}
  .feat>.ng{grid-area:ng}.feat>.gh{grid-area:gh}.feat>.boss{grid-area:boss}}
.ngf{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:22px}
.ngf label{font:600 12px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.ngf .gbbox{display:inline-block}
.ngf input{display:block;width:8.6ch;margin:0;padding:2px 4px;border:0;border-radius:0;background:transparent;color:var(--gbink);font:700 26px/1.2 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;outline:0;-webkit-appearance:none;appearance:none}
.ngf .gbbox:focus-within{outline:3px solid var(--accent);outline-offset:2px}
.ngf a{font:15px/1.4 var(--sans);color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
.ngout{margin-top:20px;padding:22px 12px 16px;background:var(--sgb);color:var(--gbink)}
.ngout ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.ngout li{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.ngout .sp{display:flex;align-items:flex-end;justify-content:center;height:56px}
.ngout img{display:block}
.ngout .q{font:700 40px/1 ui-monospace,Menlo,Consolas,monospace;color:#a8303a}
.ngout b{margin-top:10px;font:700 14px/1.2 var(--sans);letter-spacing:.04em;overflow-wrap:anywhere}
.ngout .gl b{color:#a8303a}
.ngout .lv{margin-top:2px;font:13px/1.4 var(--sans);color:var(--gbdim)}
.ngout p{margin-top:16px;padding:0 4px;font:13.5px/1.45 var(--sans);color:var(--gbdim);text-align:center}
@media (min-width:520px){.ngout .sp{height:112px}.ngout img{zoom:2}}
.gh-pic,.shot{display:inline-block;padding:14px 14px 22px;background:var(--bezel);border-radius:8px 8px 28px 8px;line-height:0}
.gh-pic img{display:block;width:320px;height:288px}
@media (max-width:380px){.gh-pic img{width:160px;height:144px}}
@media (min-width:1600px){.gh-pic img{width:480px;height:432px}}
.gh .sec-h{margin-top:24px}
.gh ul{list-style:none;margin:20px 0 0;padding:0}
.gh ul{columns:2;column-gap:24px}
@media (min-width:1000px){.gh ul{columns:1}}
.gh li{break-inside:avoid;border-top:1px solid var(--rule)}
.gh li a{display:flex;align-items:center;min-height:44px;font:16px/1.35 var(--sans);color:var(--ink);text-decoration:none}
.gh li a:hover{color:var(--accent)}
.lineup{list-style:none;margin:22px 0 0;padding:22px 10px 14px;background:var(--sgb);display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:20px 4px}
@media (min-width:1000px){.lineup{grid-template-columns:repeat(7,minmax(0,1fr));gap:24px 8px}}
.lineup a{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--gbink);text-decoration:none;font:600 12.5px/1.2 var(--sans);text-align:center}
.lineup .sp{display:flex;align-items:flex-end;height:56px}
.lineup a:hover span:last-child,.lineup a:focus-visible span:last-child{text-decoration:underline}
@media (min-width:1600px){.lineup .sp{height:112px}.lineup img{zoom:2}}
.boss .say+.say{margin-top:16px}

/* everything else: four short lists, each with its pictures on one strip of screen white */
.idx{margin-top:96px;padding-top:0}
.groups{display:grid;grid-template-columns:minmax(0,1fr);gap:44px;margin-top:24px}
.grp{padding-top:0}
@media (min-width:700px){.groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:56px 48px}}
@media (min-width:1440px){.groups{grid-template-columns:repeat(4,minmax(0,1fr));gap:56px 40px}}
.grp h3{font:600 12px/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding-bottom:12px}
.grp ul{list-style:none;margin:0;padding:0;background:linear-gradient(90deg,var(--sgb) 0 72px,transparent 72px)}
.grp li{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:16px;align-items:center;min-height:80px;padding:10px 0;border-top:1px solid var(--rule)}
.grp li:last-child{border-bottom:1px solid var(--rule)}
.grp .ico{display:flex;align-items:center;justify-content:center;align-self:stretch}
.grp .ico img{display:block}
.grp a{font:600 17.5px/1.25 var(--serif);color:var(--ink);text-decoration:none}
.grp a:hover{color:var(--accent)}
.grp p{margin-top:3px;font:14.5px/1.45 var(--sans);color:var(--muted)}
.grp p.sub a{font:inherit;color:var(--accent);text-decoration:underline;text-underline-offset:2px}

/* how the tools are checked */
.how{display:grid;grid-template-columns:minmax(0,1fr);gap:12px 64px;margin-top:104px;padding-top:40px;border-top:1px solid var(--rule)}
@media (min-width:1000px){.how{grid-template-columns:minmax(0,4fr) minmax(0,8fr)}}
.how h2{font-size:26px;line-height:1.2}
.how p{font-size:17.5px;line-height:1.65;max-width:42em}
@media (max-width:600px){.feat{margin-top:48px;padding-top:32px;gap:52px}.idx,.how{margin-top:60px}.how{padding-top:28px}
  .grp ul{background:linear-gradient(90deg,var(--sgb) 0 60px,transparent 60px)}
  .grp li{grid-template-columns:60px minmax(0,1fr);column-gap:14px;min-height:64px;padding:6px 0}
  .grp a{font-size:16px}.grp p{margin-top:1px;font-size:13.5px;line-height:1.35}.grp h3{padding-bottom:10px}
  .groups{gap:32px}.how p{font-size:16px;line-height:1.6}.gh li a{font-size:15px;min-height:40px}
  .say{font-size:16px;line-height:1.5}.lineup{gap:14px 2px;padding:16px 6px 12px}}
