/*
 * gizlet.io. Cool plastic grey, cobalt and sun yellow, with gizlets as candy-coloured
 * cartridges and handhelds drawn in CSS.
 * Type is Schibsted Grotesk on English pages; Chinese and Japanese pages use the system CJK
 * face for Latin too, so mixed lines match. Illustrations (cartridges, handhelds) carry ink
 * outlines; interface surfaces do not. design/README.md describes the system.
 */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/static/fonts/schibsted-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/static/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Gizlet Phosphor"; src: url("/static/fonts/phosphor-fill.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: block; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-vote-bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
.ph-icon { display: inline-block; flex: none; width: 1em; height: 1em; line-height: 1; vertical-align: -.125em; }
.ph-icon::before { display: block; font: normal 400 1em/1 "Gizlet Phosphor"; font-synthesis: none; }
.ph-arrow-left::before { content: "\e058"; }
.ph-arrow-right::before { content: "\e06c"; }
.ph-caret-down::before { content: "\e136"; }
.ph-check::before { content: "\e182"; }
.ph-circle::before { content: "\e18a"; }
.ph-desktop::before { content: "\e560"; }
.ph-envelope-simple::before { content: "\e218"; }
.ph-file::before { content: "\e230"; }
.ph-folder::before { content: "\e24a"; }
.ph-game-controller::before { content: "\e26e"; }
.ph-github-logo::before { content: "\e576"; }
.ph-globe::before { content: "\e288"; }
.ph-heart::before { content: "\e2a8"; }
.ph-laptop::before { content: "\e586"; }
.ph-magnifying-glass::before { content: "\e30c"; }
.ph-play::before { content: "\e3d0"; }
.ph-plus::before { content: "\e3d4"; }

:root {
  color-scheme: light;
  --bg: #eceef1; --surface: #fff; --ink: #101114; --dim: #585d68; --line: #1011141f;
  --cobalt: #2b45ff; --cobalt-deep: #1a2fd6; --sun: #ffd23a;
  --mint: #2fd39a; --coral: #ff6b57; --sky: #5cc6ff; --pink: #ff8bc6;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
:root:lang(zh-CN) { --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif; }
:root:lang(zh-TW) { --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", system-ui, sans-serif; }
:root:lang(ja) { --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", system-ui, sans-serif; }

* { box-sizing: border-box; }
/* A thin scrollbar in the page's colours; where it takes room at all, it shifts the layout by a few pixels only. */
html { overflow-x: clip; scrollbar-width: thin; scrollbar-color: #1011144d transparent; }
body { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.1; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: #10111410; padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type */
.display { margin: 0; font-weight: 850; letter-spacing: -0.025em; line-height: .96; }
.display em { font-style: normal; }
:lang(zh) .display, :lang(ja) .display { font-weight: 800; letter-spacing: 0; line-height: 1.18; }
.kicker { margin-bottom: 18px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.lede { max-width: 38em; color: var(--dim); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.row-head h2, .section-title { margin: 0; font-weight: 820; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; }
.row-head a { font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--cobalt); }
:lang(zh) .row-head h2, :lang(ja) .row-head h2, :lang(zh) .section-title, :lang(ja) .section-title { letter-spacing: 0; }

/* Header and footer */
header.wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 23px; letter-spacing: -0.02em; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; transition: transform .18s; }
a.brand:hover .mark { transform: rotate(-4deg) translateY(-2px); }
a.brand:hover .mark .cur, .handheld .boot .cur { animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
header nav { margin-left: auto; display: flex; gap: 4px; }
header nav a { padding: 8px 14px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; border-radius: 10px; }
header nav a:hover { background: #1011140d; }
header nav a[aria-current] { color: #fff; background: var(--ink); }
.login { padding: 9px 16px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; color: #fff; background: var(--cobalt); border-radius: 10px; }
.login:hover { background: var(--cobalt-deep); }
/* The language switcher: a disclosure, so it opens without scripts; the list drops below it, flush right. */
.langs { position: relative; }
.langs summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-weight: 600; font-size: 15px; white-space: nowrap; border-radius: 10px; cursor: pointer; list-style: none; user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: #1011140d; }
.langs .ph-caret-down { font-size: 12px; transition: transform .15s; }
.langs[open] .ph-caret-down { transform: rotate(180deg); }
.langs .ph-globe { font-size: 18px; }
.langs ul { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.langs li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px; font-size: 15px; text-decoration: none; white-space: nowrap; border-radius: 8px; }
.langs li a:hover { background: #1011140d; }
.langs li a[aria-current] { font-weight: 700; }
.langs .ph-check { color: var(--cobalt); }
@media (prefers-reduced-motion: reduce) { .langs .ph-caret-down { transition: none; } }
footer { margin-top: 72px; border-top: 1px solid var(--line); }
body.home footer { margin-top: 0; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--dim); }
footer .brand.small { font-size: 16px; color: var(--ink); }
footer .brand.small { gap: 6px; }
footer .brand.small .mark { width: 22px; height: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; font: 700 16px var(--sans); text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.sun { background: var(--sun); }
.btn.cobalt { color: #fff; background: var(--cobalt); border-color: var(--cobalt); }
.btn.cobalt:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.btn.ghost { color: #fff; background: transparent; border-color: #ffffffb3; }
.btn.ghost:hover { border-color: #fff; background: #ffffff14; }

/* The address bar: home link box and Explore search */
.addr { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; }
.addr:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.addr .prefix { font: 15px var(--mono); color: var(--dim); white-space: nowrap; }
.addr input { flex: 1; min-width: 0; padding: 11px 2px; font: 15px var(--mono); color: var(--ink); background: transparent; border: 0; outline: 0; }
.addr button { padding: 12px 20px; font: 700 15px var(--sans); color: #fff; background: var(--ink); border: 0; border-radius: 11px; cursor: pointer; }
.addr button:hover { background: var(--cobalt-deep); }
.addr .ph-magnifying-glass { font-size: 20px; color: var(--dim); }

/* Cartridges. Shell colour s1–s5 is picked per repository. */
.s1 { --c: var(--mint); } .s2 { --c: var(--coral); } .s3 { --c: var(--sky); } .s4 { --c: var(--sun); } .s5 { --c: var(--pink); }
.cart { --c: var(--mint); position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 14px 14px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c), #fff 32%) 0, var(--c) 34%, color-mix(in srgb, var(--c), #000 7%) 100%);
  border: 2px solid var(--ink); border-radius: 16px 16px 10px 10px;
  box-shadow: inset 0 2px 0 #ffffff80, 0 16px 26px -18px #101114a0; transition: transform .18s, box-shadow .18s; }
/* A cartridge with the gizlet's pattern (src/theme.ts): the tile over the shell, at half the page band's scale. */
.cart.has-pattern { background-image: var(--pattern), linear-gradient(180deg, color-mix(in srgb, var(--c), #fff 32%) 0, var(--c) 34%, color-mix(in srgb, var(--c), #000 7%) 100%); background-size: 128px 128px, auto; background-repeat: repeat, no-repeat; }
a.cart:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: inset 0 2px 0 #ffffff80, 0 26px 34px -20px #101114b0; }
.cart .grip { position: absolute; top: 9px; left: 24%; right: 24%; height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c), #000 30%) 0 2px, transparent 2px 6px); }
.cart .label { display: block; overflow: hidden; aspect-ratio: 1; background: #fff; border: 2px solid var(--ink); border-radius: 8px; }
.cart .pic { display: block; width: 100%; height: 100%; }
img.pic { object-fit: cover; background: #f4f5f7; }
.cart .name { margin-top: 12px; overflow: hidden; font-weight: 820; font-size: 18px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.cart .repo { margin-top: 2px; overflow: hidden; font: 11px var(--mono); color: color-mix(in srgb, currentColor 64%, transparent); text-overflow: ellipsis; white-space: nowrap; }
.cart .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cart .meta span { padding: 2px 8px; font-weight: 650; font-size: 12px; color: var(--ink); background: #ffffff8c; border-radius: 6px; }
/* A shell in the gizlet's own colour (src/theme.ts): text in ink or white, whichever reads. */
.cart[class*="theme-"] { color: var(--g-on); }
.carts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px; }
.ghost-cart { width: 96px; flex: none; padding: 20px 10px 10px; background: #fff; border-style: dashed; box-shadow: none; }
.ghost-cart .grip { background: repeating-linear-gradient(90deg, #10111433 0 2px, transparent 2px 6px); }
.ghost-cart .label { border-style: dashed; background: var(--bg); }
.empty { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.empty p { flex: 1; min-width: 240px; color: var(--dim); }

/* Label art for gizlets without an icon */
.p1 { background: radial-gradient(circle at 70% 32%, var(--sun) 0 13%, transparent 14%), linear-gradient(#1b2bb8, #0a1260); }
.p2 { background: radial-gradient(ellipse at 28% 112%, #12a874 0 52%, transparent 53%), radial-gradient(ellipse at 90% 120%, var(--mint) 0 45%, transparent 46%), #bfe8ff; }
.p3 { background: radial-gradient(circle, var(--coral) 0 12%, transparent 13%), repeating-radial-gradient(circle, var(--sky) 0 7px, #fff 7px 15px); }
.p4 { background: repeating-linear-gradient(45deg, var(--coral) 0 14px, var(--sun) 14px 28px); }
.p5 { background: linear-gradient(165deg, transparent 56%, var(--ink) 56.5%), linear-gradient(#7fd1ff, #eef9ff); }

/* Handhelds, drawn in CSS. Sizes scale with font-size. */
.handheld { --body: #fff; --ctl: var(--ink); position: relative; width: 22em; padding: 2em 1.8em 2.6em; font-size: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--body), #fff 28%) 0, var(--body) 30%, color-mix(in srgb, var(--body), #000 6%) 100%);
  border: 3px solid var(--ink); border-radius: 2.2em 2.2em 4.8em 4.8em; box-shadow: inset 0 3px 0 #ffffff70, 0 2.4em 4em -2.2em #101114a8; }
.handheld::before { content: ""; position: absolute; top: -3px; left: 30%; right: 30%; height: .9em; background: var(--ink); border-radius: 0 0 .5em .5em; }
.handheld.big { font-size: 13.6px; }
.handheld.small { font-size: 7.8px; }
.body-sun { --body: var(--sun); } .body-coral { --body: #ff7a63; } .body-mint { --body: var(--mint); } .body-sky { --body: var(--sky); }
.body-smoke { --body: #3a3d45; --ctl: #121317; }
.handheld .screen { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; padding: .8em; color: #fff; text-align: center; background: #0f1117; border: 3px solid var(--ink); border-radius: .8em; box-shadow: inset 0 0 0 .55em #23262e; font: 700 1.1em/1.35 var(--sans); }
.handheld .controls { display: flex; justify-content: space-between; align-items: center; margin: 1.7em .6em 0; }
.handheld .dpad { width: 4.8em; height: 4.8em; background: linear-gradient(var(--ctl), var(--ctl)) center / 1.55em 100% no-repeat, linear-gradient(var(--ctl), var(--ctl)) center / 100% 1.55em no-repeat; }
.handheld .abxy { display: grid; grid-template: repeat(3, 1.55em) / repeat(3, 1.55em); }
.handheld .abxy i { border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.handheld .abxy i:nth-child(1) { grid-area: 1 / 2; } .handheld .abxy i:nth-child(2) { grid-area: 2 / 1; }
.handheld .abxy i:nth-child(3) { grid-area: 2 / 3; background: var(--cobalt); } .handheld .abxy i:nth-child(4) { grid-area: 3 / 2; }
.body-smoke .abxy i:nth-child(3) { background: var(--sun); }
.handheld .sticks { display: flex; justify-content: space-around; margin-top: 1.4em; }
.handheld .sticks i { width: 2.9em; height: 2.9em; background: radial-gradient(circle at 40% 35%, #5a5e68, #23252b); border: 2px solid var(--ink); border-radius: 50%; }
.handheld .boot { display: grid; justify-items: center; gap: .8em; font: 700 .9em var(--mono); letter-spacing: .12em; }
.handheld .boot .prompt { width: 3.6em; height: 3.35em; }
/* Now playing: the gizlet's cover fills the screen, its name on a tag in the corner. */
.handheld .now { position: absolute; inset: .8em; overflow: hidden; border-radius: .4em; }
.handheld .now .pic { display: block; width: 100%; height: 100%; }
.handheld .now b { position: absolute; left: .55em; bottom: .55em; padding: .15em .7em; font-size: .9em; background: #101114d0; border-radius: 999px; }
.installing { display: grid; gap: .6em; width: 100%; }
.installing .url { overflow-wrap: anywhere; font: 400 .85em var(--mono); color: #aab0bd; }
.installing .bar { height: .7em; background: #2a2e38; border-radius: .35em; overflow: hidden; }
.installing .bar i { display: block; width: 64%; height: 100%; background: var(--sun); }

/* Home: the stage */
.stage { color: #fff; background: var(--cobalt); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.stage .kicker { color: var(--sun); }
.stage h1 { font-size: clamp(44px, 6.2vw, 90px); }
.stage .lede { margin-top: 26px; max-width: 32em; font-size: 18px; color: #ffffffd1; }
.stage .open { margin-top: 34px; max-width: 600px; }
.stage .open label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #ffffffc4; }
.stage .open .error { margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--sun); }
.stage .btns { margin-top: 22px; }
.rig { position: relative; display: grid; justify-items: center; padding-top: 118px; }
.rig::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 34px; height: 36px; background: radial-gradient(closest-side, #0a1580aa, transparent); z-index: 0; }
.rig .handheld { z-index: 1; transform: rotate(3deg); }
.rig-cart { position: absolute; top: 0; left: 50%; z-index: 0; width: 150px; margin-left: -70px; padding: 24px 12px 90px; transform: rotate(-5deg); }
a.rig-cart:hover { transform: rotate(-5deg) translateY(-10px); }
.rig .caption { position: relative; z-index: 1; margin-top: 30px; padding: 7px 14px; font-weight: 700; font-size: 15px; color: #fff; text-decoration: none; background: #ffffff1f; border-radius: 999px; }
.rig .caption:hover { background: #ffffff33; }

/* Home: ticker */
.ticker { overflow: hidden; padding: 15px 0; white-space: nowrap; color: var(--ink); background: var(--sun); border-bottom: 2px solid var(--ink); font-weight: 820; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.ticker .run { display: flex; width: max-content; animation: ticker 42s linear infinite paused; }
.ticker .run.scrolling { animation-play-state: running; }
.ticker .cycle { flex: none; }
.ticker i { display: inline-block; width: 9px; height: 9px; margin: 0 30px; vertical-align: 2px; background: var(--cobalt); }
@keyframes ticker { to { transform: translateX(var(--ticker-step, 0px)); } }
@media (prefers-reduced-motion: reduce) { .ticker .run, .cur { animation: none !important; } a.brand:hover .mark { transform: none; } }

/* Home: shelves, how it works, developers, principles */
.shelf { padding-top: 80px; padding-bottom: 8px; }
.shelf .carts + .row-head { margin-top: 64px; }
.how { padding-top: 88px; padding-bottom: 96px; }
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.scenes > li { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.scene { display: grid; place-items: center; height: 270px; padding: 26px; }
.scene-chat { background: #dcf1ff; }
.scene-term { background: #fff2c2; }
.scene-device { background: var(--cobalt); }
.chat { display: grid; gap: 12px; width: 100%; }
.chat .you { justify-self: end; max-width: 92%; padding: 11px 15px; font-size: 15px; line-height: 1.45; color: #fff; background: var(--ink); border-radius: 16px 16px 4px 16px; }
.chat .agent { max-width: 94%; padding: 11px 15px; font: 12px/1.75 var(--mono); background: #fff; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 0 var(--line); }
.chat .agent span { color: #0e9f6e; font-weight: 700; }
.term { width: 100%; margin: 0; padding: 20px 22px; font: 13.5px/1.85 var(--mono); color: #e9ebf0; background: var(--ink); border-radius: 14px; white-space: pre-wrap; box-shadow: 0 18px 30px -20px #101114aa; }
.term .p { color: #7d8494; } .term .ok { color: var(--mint); }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 22px 24px 28px; }
.step .num, .flash-steps .num { display: grid; place-items: center; width: 32px; height: 32px; font-weight: 800; font-size: 15px; color: #fff; background: var(--ink); border-radius: 50%; }
.step h3 { margin: 4px 0 8px; font-weight: 820; font-size: 20px; }
.step p { font-size: 15.5px; color: var(--dim); }
.make { color: #fff; background: var(--ink); }
.make-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.make .kicker { color: var(--sun); }
.make h2 { font-size: clamp(34px, 4.4vw, 60px); }
.make .copy > p:not(.kicker) { margin-top: 22px; max-width: 32em; color: #b8bcc6; }
.make .copy code { color: #fff; background: #ffffff1a; }
.make .btns { margin-top: 30px; }
.tree { margin: 0; min-width: 0; }
.tree figcaption { margin-bottom: 10px; font-size: 14px; color: #9aa0ad; }
.code { margin: 0; overflow-x: auto; padding: 24px 26px; font: 13.5px/1.85 var(--mono); color: #c9cdd6; background: #1b1d23; border: 1px solid #2e313a; border-radius: 18px; scrollbar-color: #3a3e48 transparent; }
.code code { padding: 0; background: none; font-size: inherit; color: inherit; }
.code b { color: #fff; } .code .c { color: #7d8494; } .code .p { color: var(--sun); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 80px; padding-bottom: 88px; }
.pillars h3 { margin: 0 0 10px; padding-top: 18px; font-weight: 820; font-size: 24px; border-top: 3px solid var(--ink); }
.pillars p { max-width: 34em; color: var(--dim); }

/* Page bands: Explore and Devices */
.band { color: #fff; background: var(--cobalt); }
.band .wrap { padding-top: 64px; padding-bottom: 60px; }
.band h1 { font-size: clamp(48px, 7vw, 96px); }
.band .lede { margin-top: 18px; font-size: 18px; color: #ffffffd1; }
.band .search { margin-top: 30px; max-width: 680px; }

/* Explore */
.explore { padding-bottom: 88px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tabs a { padding: 9px 18px; font-weight: 650; font-size: 15px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.tabs a:hover { border-color: var(--ink); }
.tabs a[aria-current] { color: #fff; background: var(--ink); border-color: var(--ink); }
.tabs:has(+ .tabs.sub) { margin-bottom: 12px; }
.tabs.sub { margin-top: 0; }
.tabs.sub a { padding: 6px 14px; font-size: 14px; }
.tabs.sub a[aria-current] { color: var(--ink); background: #fff; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.more { margin-top: 48px; text-align: center; }

/* Devices: desktop downloads, then the handheld table */
.devices, .device-page { padding-bottom: 96px; }
.devices .section-title, .device-page .section-title { margin: 64px 0 22px; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.platform { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.platform .txt { flex: 1; min-width: 180px; }
.platform h3 { margin: 0 0 2px; font-weight: 820; font-size: 24px; letter-spacing: -0.01em; }
.platform p { font-size: 14.5px; color: var(--dim); }
.platform .btns { flex-basis: 100%; gap: 10px; }
.platform > .ph-icon { font-size: 60px; color: var(--cobalt); }
.platform.win > .ph-icon { color: #07704c; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.handhelds .row-head { align-items: flex-end; margin: 64px 0 22px; }
.handhelds .row-head .section-title { margin: 0; }
.count { font-weight: 600; font-size: 15px; color: var(--dim); }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.table-tools .search { flex: 1 1 340px; max-width: 520px; }
.table-tools .tabs { margin: 0; }
.hh-list-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.hh-list { list-style: none; margin: 0; padding: 0; }
.hh-list li:not([hidden]) { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 54px; padding: 9px clamp(10px, 1.6vw, 20px); }
.hh-list li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line); }
.hh-info, .hh-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; }
.hh-info { min-width: 0; color: var(--dim); }
.hh-description { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hh-description > span { margin-inline-start: .25em; }
.hh-info > a { flex: none; }
.hh-info strong { color: var(--ink); font-size: 17px; }
.hh-info strong a { text-decoration: none; }
.hh-info strong a:hover { text-decoration: underline; }
.hh-info time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hh-actions { flex: none; align-items: center; justify-content: flex-end; }
.hh-empty { padding: 24px 16px; text-align: center; color: var(--dim); }
.catalog-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; color: var(--dim); font-size: 14px; }
.catalog-credits { margin-top: 28px; color: var(--dim); font-size: 15px; }
.catalog-credits h3 { margin: 0 0 4px; color: var(--ink); font-size: 17px; }
.catalog-credits ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 8px 0 0; }
.device-list .ph-game-controller { font-size: 28px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; font-weight: 700; font-size: 13px; white-space: nowrap; border-radius: 999px; }
.pill .ph-circle { font-size: 9px; }
.pill.ok { color: #07704c; background: #d4f6e7; }
.pill.wait { color: var(--dim); background: #eef0f3; }
.table-note { margin-top: 16px; font-size: 15px; color: var(--dim); }
.want { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 14px; font: 700 14px/1 "Barlow Condensed", var(--sans); white-space: nowrap; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; }
.want:hover { background: #fff0ee; }
.want .ph-heart { font-size: 14px; margin-inline-end: 8px; color: var(--coral); }
.want[aria-pressed="true"] { color: #fff; background: var(--coral); border-color: var(--coral); }
.want[aria-pressed="true"] .ph-heart { color: inherit; }
.want:disabled { opacity: .6; cursor: progress; }
.want-label { transform: translateY(-.06em); }
.want-n { margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
/* Signed out, "I want it" asks to sign in first. */
.modal { width: min(460px, calc(100vw - 36px)); padding: 0; color: var(--ink); background: var(--surface); border: 0; border-radius: 12px; box-shadow: 0 30px 60px -20px #10111480; }
.modal::backdrop { background: #10111499; }
.modal-body { padding: 28px; }
.modal h2 { margin: 0 0 10px; font-weight: 820; font-size: 24px; line-height: 1.25; }
.modal p { margin: 0 0 22px; color: var(--dim); }
html:has(.modal[open]) { overflow: hidden; }

/* One device: hero, specs, flashing */
.device-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.band .device-hero { padding-top: 36px; padding-bottom: 64px; }
.back { display: inline-block; margin-bottom: 30px; font-weight: 650; font-size: 15px; color: #ffffffd1; text-decoration: none; }
.back:hover { color: #fff; text-decoration: underline; }
.device-band .kicker { color: var(--sun); }
.device-band h1 { font-size: clamp(72px, 10vw, 150px); }
.device-band .btns { margin-top: 30px; }
.device-art { position: relative; display: grid; place-items: center; padding: 16px 0 24px; }
.device-art::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 34px; background: radial-gradient(closest-side, #0a1580aa, transparent); }
.device-art .handheld { z-index: 1; transform: rotate(-6deg); }
.specs-card { padding: 6px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.spec-grid div { padding: 16px 0; border-top: 1px solid var(--line); }
.spec-grid div:nth-child(-n+3) { border-top: 0; }
.spec-grid dt { font-weight: 650; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.spec-grid dd { margin: 4px 0 0; font-weight: 700; font-size: 17px; }
.flash-guide .lede { margin: -8px 0 26px; }
.flash-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.flash-steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.flash-steps h3 { margin: 4px 0 6px; font-weight: 800; font-size: 20px; }
.flash-steps p { max-width: 46em; color: var(--dim); }
.flash-steps > li.run { color: #fff; background: var(--ink); border-color: var(--ink); }
.flash-steps > li.run p { color: #b8bcc6; }
.flash-steps > li.run .num { color: var(--ink); background: var(--sun); }
.cmds { display: grid; gap: 12px; margin-top: 18px; }
.cmd { overflow: hidden; background: #1b1d23; border: 1px solid #2e313a; border-radius: 14px; }
.cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 8px 6px 18px; font-size: 13.5px; color: #9aa0ad; border-bottom: 1px solid #2e313a; }
.copy-btn { padding: 6px 13px; font: 700 13px var(--sans); color: var(--ink); background: var(--sun); border: 0; border-radius: 8px; cursor: pointer; }
.copy-btn:hover { background: #ffe175; }
.cmd pre { margin: 0; padding: 16px 18px; font: 15px/1.6 var(--mono); color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .p { margin-right: 12px; color: var(--sun); user-select: none; }
.flash-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.flash-aside > div { padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.flash-aside h3 { margin: 0 0 10px; font-weight: 800; font-size: 18px; }
.flash-aside p { font-size: 15px; color: var(--dim); }
.panel-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.panel-list li { padding: 5px 12px; font-weight: 650; font-size: 14px; background: var(--bg); border-radius: 8px; }
.manual { margin-top: 14px; padding: 0 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.manual summary { padding: 20px 0; font-weight: 700; cursor: pointer; list-style: none; }
.manual summary::-webkit-details-marker { display: none; }
.manual:not([open]) .ph-caret-down { transform: rotate(-90deg); }
.manual[open] { padding-bottom: 24px; }
.manual > p { font-size: 15px; color: var(--dim); }
.images { display: grid; gap: 10px; margin-top: 16px; }
.image { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 18px; background: var(--bg); border-radius: 14px; }
.image b { display: block; font-weight: 700; }
.image code { padding: 0; font-size: 13px; color: var(--dim); background: none; }
.note { margin-top: 14px; font-size: 14.5px; color: var(--dim); }

/* A gizlet's page. --g is its colour from gizlet.toml (src/theme.ts), cobalt without one. The band
   is a deep shade of it, so the cartridge in the full colour stands out and white text always reads. */
.gz-band { --g: var(--cobalt); color: #fff; background: color-mix(in srgb, var(--g) 42%, #101114); }
.gz-band.has-pattern { background-image: linear-gradient(90deg, var(--scrim) 0 38%, transparent 78%), var(--pattern); background-size: auto, 256px 256px; background-repeat: no-repeat, repeat; }
.gz-band { --scrim: color-mix(in srgb, var(--g) 42%, #101114); }
.gz-band .back, .gz-band .lede { color: #ffffffd1; }
.gz-band .back:hover { color: #fff; }
.gz-band .kicker { color: var(--sun); }
.gz-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 72px; }
.gz-hero h1 { font-size: clamp(48px, 7vw, 96px); overflow-wrap: anywhere; }
.gz-hero .lede { margin-top: 20px; max-width: 32em; font-size: 18px; }
.gz-get { margin-top: 30px; max-width: 600px; }
.gz-get pre { font-size: 18px; }
.gz-get .p { margin-right: 0; color: #9aa0ad; }
.gz-wait { margin-top: 12px; font-size: 15px; }
.gz-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gz-facts span { padding: 4px 11px; font-weight: 650; font-size: 14px; background: #ffffff1f; border-radius: 8px; }
.gz-rig::after { background: radial-gradient(closest-side, #000000aa, transparent); }
.gz-rig .rig-cart { width: 138px; margin-left: -64px; padding: 24px 12px 84px; }
.gz-rig .screen { padding: 0; }
.gz-rig .screen img.shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.gz-page { padding-top: 8px; padding-bottom: 88px; }
.gz-page .section-title { margin: 56px 0 22px; }
.gz-unlisted { margin-top: 32px; font-size: 15px; color: var(--dim); }
.gz-unlisted .pill { margin-right: 6px; }
.gz-shots { display: flex; gap: 20px; margin: 0 -32px; padding: 4px 32px 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gz-shots a { flex: 0 0 min(440px, 82%); scroll-snap-align: start; padding: 8px; background: var(--ink); border-radius: 18px; }
.gz-shots a { cursor: zoom-in; }
.gz-shots img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; background: #23262e; }
/* Screenshots full size: a click or Esc closes it (devices.js) */
.lightbox[open] { display: grid; place-items: center; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 4vh 4vw; background: transparent; border: 0; cursor: zoom-out; }
.lightbox::backdrop { background: #101114eb; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 60px -20px #000; cursor: default; }
html:has(.lightbox[open]) { overflow: hidden; }
.gz-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.prose { max-width: 40em; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin: 30px 0 10px; font-weight: 820; font-size: 22px; }
.prose h4, .prose h5, .prose h6 { font-size: 18px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 4px; }
.prose blockquote { padding: 2px 16px; color: var(--dim); border-left: 3px solid var(--line); }
.prose pre { overflow-x: auto; padding: 16px 18px; font: 14px/1.6 var(--mono); color: #e9ebf0; background: #1b1d23; border-radius: 14px; }
.prose pre code { padding: 0; color: inherit; background: none; }
.gz-side { display: grid; gap: 16px; margin-top: 56px; }
.gz-card { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.gz-card h3 { margin: 0 0 14px; font-weight: 800; font-size: 18px; }
.gz-card .note { margin-top: 14px; }
.gz-controls { display: grid; margin: 0; padding: 0; list-style: none; }
.gz-controls li { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.gz-controls li:first-child { border-top: 0; padding-top: 0; }
.key { display: inline-grid; flex: none; place-items: center; min-width: 30px; height: 30px; font-weight: 800; font-size: 13px; background: #fff; border: 2px solid var(--ink); }
.key.face { border-radius: 50%; }
.key.face.a { color: #fff; background: var(--cobalt); border-color: var(--cobalt); }
.key.wide { padding: 0 10px; font-weight: 700; font-size: 12px; border-radius: 999px; }
.key.shoulder { padding: 0 9px; border-radius: 10px 10px 5px 5px; }
.key.dpad { border: 0; background: transparent; font-size: 30px; }
.gz-links { display: grid; margin: 0; padding: 0; list-style: none; }
.gz-links li + li { border-top: 1px solid var(--line); }
.gz-links a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 9px 0; text-decoration: none; }
.gz-links li:first-child a { padding-top: 0; }
.gz-links b { font-weight: 700; }
.gz-links small { overflow: hidden; max-width: 100%; font: 13px var(--mono); color: var(--dim); text-overflow: ellipsis; white-space: nowrap; }
.gz-links a:hover b { text-decoration: underline; }
.gz-details { display: grid; margin: 0; }
.gz-details div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.gz-details div:first-child { border-top: 0; padding-top: 0; }
.gz-details dt { font-weight: 650; font-size: 12px; letter-spacing: .06em; line-height: 2; text-transform: uppercase; color: var(--dim); }
.gz-details dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.gz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gz-tags span { padding: 2px 9px; font-weight: 650; font-size: 13px; background: var(--bg); border-radius: 6px; }
.gz-pkgs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gz-pkgs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.gz-pkgs a, .gz-pkgs span { font: 14px var(--mono); overflow-wrap: anywhere; }
.gz-pkgs small { font-size: 14px; color: var(--dim); }

/* Narrow pages: sign-in, device, account */
.narrow h1 { margin: 0 0 20px; font-weight: 850; font-size: 44px; letter-spacing: -0.02em; }
.narrow h2 { font-weight: 820; }
.card { display: grid; gap: 14px; max-width: 440px; margin: 20px 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
label { display: grid; gap: 6px; font-weight: 600; }
input { font: inherit; padding: 11px 13px; color: var(--ink); background: #fff; border: 2px solid #10111433; border-radius: 10px; }
input:focus { border-color: var(--ink); outline: 0; }
button { font: inherit; font-weight: 700; padding: 11px 18px; color: #fff; background: var(--cobalt); border: 0; border-radius: 10px; cursor: pointer; }
button.secondary { color: var(--ink); background: #fff; border: 2px solid var(--ink); }
button.link { padding: 0; font-weight: 500; color: var(--ink); text-decoration: underline; background: none; border: 0; }
.signup, [hidden] { display: none; }
form.signing-up .signup { display: grid; }
.meta { color: var(--dim); }
button.small { padding: 7px 14px; font-size: 14px; }
button:disabled { opacity: .6; cursor: progress; }

/* Account (src/account.ts): a cobalt band with the user and the tabs, cut like folder tabs into the page */
.acct-band .wrap { padding-top: 0; padding-bottom: 0; }
.acct-band .acct-hero { display: flex; align-items: center; gap: 28px; padding-top: 52px; padding-bottom: 36px; }
.acct-who { min-width: 0; }
.acct-who .kicker { margin-bottom: 10px; color: var(--sun); }
.acct-who h1 { font-size: clamp(40px, 5.6vw, 76px); overflow-wrap: anywhere; }
.acct-sub { margin-top: 14px; font-size: 16px; color: #ffffffd1; overflow-wrap: anywhere; }
.acct-sub a { color: #fff; }
.avatar { flex: none; width: 112px; height: 112px; object-fit: cover; background: var(--sun); border: 4px solid #fff; border-radius: 50%; }
.avatar.initial { display: grid; place-items: center; font-weight: 900; font-size: 50px; line-height: 1; color: var(--ink); }
.avatar.small { width: 56px; height: 56px; font-size: 24px; border: 2px solid var(--ink); }
.acct-tabs [role="tablist"] { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.acct-tabs [role="tablist"]::-webkit-scrollbar { display: none; }
.acct-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; font-weight: 700; font-size: 15.5px; color: #ffffffd1; text-decoration: none; white-space: nowrap; border-radius: 10px 10px 0 0; }
.acct-tabs a:hover { color: #fff; background: #ffffff1a; }
.acct-tabs a[aria-selected="true"] { color: var(--ink); background: var(--bg); }
.acct-tabs a:focus-visible { outline-offset: -3px; }
.acct-tabs .n { min-width: 22px; padding: 1px 7px; font-size: 12.5px; text-align: center; color: var(--ink); background: var(--sun); border-radius: 999px; }
.acct { padding-top: 40px; padding-bottom: 88px; }
.acct-head { margin-bottom: 22px; }
.acct-head:not(:first-child) { margin-top: 56px; }
.acct-head h2 { margin: 0 0 8px; font-weight: 820; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.015em; }
:lang(zh) .acct-head h2, :lang(ja) .acct-head h2 { letter-spacing: 0; }
.acct-head p { max-width: 46em; color: var(--dim); }
.acct-head .note { margin-top: 6px; font-size: 14.5px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: start; }
.acct-card { display: grid; gap: 16px; min-width: 0; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.acct-card h2 { margin: 0; font-weight: 820; font-size: 22px; }
.acct-card .note { margin: 0; }
.acct-form { display: grid; gap: 12px; }
.acct-form button { justify-self: start; }
.acct-picture { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.acct-picture p { font-size: 14.5px; color: var(--dim); }
.acct-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.acct-note { padding: 18px 22px; font-size: 15px; color: var(--dim); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.acct-note.warn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; color: #6b4300; background: #fff4cc; border-color: #f2d47a; }
.acct-note.warn .btn { flex: none; }
.empty.acct-link > div { flex: 1; min-width: 240px; }
.empty.acct-link h2 { margin: 0 0 8px; font-weight: 820; font-size: 24px; }
.empty.acct-link p { margin-bottom: 18px; color: var(--dim); }

/* Account: the handhelds you want, drawn small, and the devices signed in */
.want-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.want-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.want-art { display: grid; place-items: center; width: 112px; padding: 12px 0; background: var(--bg); border-radius: 14px; }
.handheld.tiny { font-size: 4.1px; }
.handheld.tiny, .handheld.tiny .screen { border-width: 2px; }
.hh-label { font: 800 2.5em/1.1 var(--sans); overflow-wrap: break-word; }
.want-txt h3 { margin: 0; font-weight: 820; font-size: 20px; overflow-wrap: anywhere; }
.want-txt p { margin: 2px 0 10px; font-size: 14px; color: var(--dim); }
.want-txt .pill { max-width: 100%; white-space: normal; }
.want-acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.want-acts .link { margin-left: auto; font-size: 15px; }
.empty > .ph-game-controller { font-size: 54px; color: var(--dim); }
.device-list { margin: 0; padding: 0 24px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.device-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.device-list li:first-child { border-top: 0; }
.device-list li > div { flex: 1; min-width: 0; }
.device-list b, .methods b { display: block; }
.device-list small, .methods small { display: block; font-size: 13.5px; color: var(--dim); overflow-wrap: anywhere; }

/* Account: your gizlets as cartridges, with how their checks went */
.acct-cart .check { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 8px; padding: 2px 9px; font-weight: 700; font-size: 12px; color: var(--ink); background: #fff; border-radius: 999px; }
.acct-cart .check .ph-circle { font-size: 9px; color: #9aa0ad; }
.acct-cart .check-ready .ph-circle { color: #0e9f6e; }
.acct-cart .check-checking .ph-circle { color: #e0a800; }
.acct-cart .check-failed .ph-circle { color: var(--coral); }

/* Account: short links, one row per gizlet */
.link-rows { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.link-row { display: grid; grid-template-columns: 56px minmax(0, 220px) minmax(0, 1fr); gap: 14px 20px; align-items: start; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.link-art { --c: var(--mint); display: block; width: 56px; height: 56px; padding: 6px; background: var(--c); border: 2px solid var(--ink); border-radius: 12px 12px 8px 8px; }
.link-art .pic { display: block; width: 100%; height: 100%; border: 2px solid var(--ink); border-radius: 5px; }
.link-who { padding-top: 6px; min-width: 0; }
.link-who b { display: block; font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.link-who small { display: block; font: 12.5px var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.link-form .addr { padding: 4px 4px 4px 14px; border-radius: 12px; }
.link-form .addr input { padding: 8px 2px; }
.link-form .addr button { padding: 9px 16px; border-radius: 9px; }
.link-state { min-height: 1.45em; margin-top: 8px; font-size: 14px; color: var(--dim); }
.link-state:empty { min-height: 0; margin: 0; }
.link-state.ok { color: #07704c; }
.link-state.bad { color: #b42b18; }
.link-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.link-tools[hidden] { display: none; }
.link-url { font: 600 15px var(--mono); overflow-wrap: anywhere; }
.link-ro { padding-top: 6px; }
.link-ro .note { margin-top: 4px; }

/* Account: sign-in methods */
.methods { display: grid; margin: 0; padding: 0; list-style: none; }
.methods li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.methods li:first-child { padding-top: 0; border-top: 0; }
.methods li > div { flex: 1; min-width: 0; }
.method-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; font: 800 15px var(--mono); border: 2px solid var(--ink); border-radius: 10px; }
.method-icon.mail { background: var(--sun); }
.method-icon .ph-icon { font-size: 21px; }
.method-icon.gh { color: #fff; background: var(--ink); }

/* What just happened, at the bottom of the screen for a few seconds */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 13px 20px; font-weight: 600; font-size: 15px; color: #fff; background: var(--ink); border-radius: 12px;
  box-shadow: 0 20px 40px -20px #101114b0; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; }
.toast.on:not(:empty) { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* A gizlet's short link among its facts */
.gz-facts .gz-short { padding: 4px 11px; font: 650 14px var(--mono); color: var(--ink); text-decoration: none; background: var(--sun); border-radius: 8px; }
.gz-facts .gz-short:hover { text-decoration: underline; }

/* Small screens */
@media (max-width: 1100px) {
  .make-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 1000px) {
  .stage-grid, .device-hero, .gz-hero, .gz-body { grid-template-columns: minmax(0, 1fr); }
  .gz-band.has-pattern { background-image: linear-gradient(color-mix(in srgb, var(--scrim) 82%, transparent), color-mix(in srgb, var(--scrim) 82%, transparent)), var(--pattern); background-size: auto, 256px 256px; }
  .gz-side { margin-top: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .rig { margin-top: 8px; }
  .scenes { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 900px) {
  /* The globe alone; the language's name stays for screen readers. */
  .langs .lang-now { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 860px) {
  .hh-info, .hh-actions { gap: 6px; font-size: 12px; }
  .hh-info strong { font-size: 15px; }
  .hh-list li:not([hidden]) { gap: 8px; }
  .want { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  header.wrap { gap: 10px; }
  header nav a { padding: 7px 9px; font-size: 14px; }
  .login { padding: 8px 12px; font-size: 14px; }
  .langs summary { padding: 7px 8px; }
  .langs .ph-caret-down { display: none; }
  .stage-grid { padding-top: 44px; padding-bottom: 56px; }
  .handheld.big { font-size: 11px; }
  .addr .prefix { display: none; }
  .pillars, .platforms, .flash-aside { grid-template-columns: minmax(0, 1fr); }
  .flash-steps > li { padding: 20px; }
  .gz-shots { margin: 0 -18px; padding: 4px 18px 18px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid div:nth-child(3) { border-top: 1px solid var(--line); }
  .acct-band .acct-hero { gap: 18px; padding-top: 32px; padding-bottom: 24px; }
  .avatar { width: 72px; height: 72px; font-size: 32px; border-width: 3px; }
  .acct-tabs a { padding: 11px 14px; font-size: 14.5px; }
  .acct { padding-top: 28px; }
  .acct-card { padding: 22px 20px; }
  .link-row { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; }
  .link-art { width: 48px; height: 48px; padding: 5px; }
  .link-form, .link-ro { grid-column: 1 / -1; }
  .link-form .addr .prefix { display: inline; font-size: 13px; }
  .device-list { padding: 0 18px; }
  .device-list li { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  /* The mark alone, so the nav and Account fit; the link keeps its aria-label. */
  header .brand { gap: 0; font-size: 0; }
  header .brand .mark { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  .carts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cart { padding: 24px 10px 10px; }
  .cart .name { font-size: 15px; }
  .cart .repo { display: none; }
}
@media (max-width: 440px) {
  header.wrap { gap: 6px; padding-left: 12px; padding-right: 12px; }
  header nav { gap: 0; }
  header nav a { padding: 7px 4px; font-size: 13.5px; }
  .langs summary { padding: 7px 4px; }
  .login { padding: 8px 9px; font-size: 13.5px; }
  header .brand .mark { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  header.wrap { gap: 4px; padding-left: 10px; padding-right: 10px; }
  header nav a { padding: 7px 3px; font-size: 13px; }
  .langs summary { padding: 7px 3px; }
  .login { padding: 8px 7px; font-size: 13px; }
  header .brand .mark { width: 24px; height: 24px; }
}
