/* Fonts (self-hosted, OFL) */
@font-face { font-family: 'Pixelify Sans'; font-weight: 400; font-display: swap; src: url(../fonts/pixelify-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 500; font-display: swap; src: url(../fonts/pixelify-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 600; font-display: swap; src: url(../fonts/pixelify-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url(../fonts/pixelify-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Silkscreen'; font-weight: 400; font-display: swap; src: url(../fonts/silkscreen-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'VT323'; font-weight: 400; font-display: swap; src: url(../fonts/vt323-latin-400-normal.woff2) format('woff2'); }

/* 1. Primitives: the sprite palette */
:root {
  --c-ink: #1b1f3b; --c-navy: #23306b; --c-blue: #3651a8; --c-blue-3: #4f7fd6; --c-sky-4: #86b1f2; --c-sky: #c3dcff; --c-ice: #eef7f6;
  --c-pink: #f0679f; --c-pink-light: #ff9fc4; --c-pink-dark: #b93c7d; --c-peach: #ffe3dc; --c-sun: #ffdf62; --c-lime: #b0ec72; --c-green: #5fc86a;
  --c-silver: #d0d7eb; --c-steel: #9ea7c8; --c-slate: #3b4366; --c-paper: #f7f6f2; --c-white: #fff;
  --c-stripe: #2c3d86; --c-gloss-1: #d4e4fb; --c-gloss-2: #9fc0f2; --c-ruled: #d7e6fb; --c-shelf: #e6f0ff;
  --c-day: #8fb6f0; --c-night-1: #0f1230; --c-night-2: #1f2a5c; --c-night-3: #3a2f6b;
  --f-body: 'Pixelify Sans', system-ui, sans-serif; --f-label: 'Silkscreen', monospace; --f-digits: 'VT323', monospace;
}
/* 2. Semantic roles (night mode swaps these only) */
:root {
  --page-ink: var(--c-ink); --sky-top: var(--c-day); --sky-mid: var(--c-sky); --sky-bot: var(--c-ice);
  --surface: var(--c-white); --surface-ink: var(--c-ink); --muted: var(--c-slate); --label: var(--c-blue);
  --edge: var(--c-ink); --shadow: var(--c-ink); --shadow-soft: var(--c-steel); --accent: var(--c-pink); --focus: var(--c-pink);
}
html.night { --page-ink: var(--c-ice); --sky-top: var(--c-night-1); --sky-mid: var(--c-night-2); --sky-bot: var(--c-night-3); }
/* 3. Component tokens */
:root {
  --line: 2px solid var(--edge);
  --shadow-win: 6px 6px 0 var(--shadow); --shadow-box: 4px 4px 0 var(--shadow); --shadow-btn: 3px 3px 0 var(--shadow);
  --gloss: linear-gradient(180deg, var(--c-white) 0, var(--c-gloss-1) 48%, var(--c-gloss-2) 52%, var(--c-gloss-1) 100%);
  --stripes: repeating-linear-gradient(90deg, var(--c-navy) 0 6px, var(--c-stripe) 6px 12px);
  --checker: repeating-conic-gradient(var(--c-ice) 0 25%, #dfeafc 0 50%) 0 0 / 8px 8px;
}

/* Base and browser surfaces */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--c-navy) var(--c-sky); }
body { margin: 0; font: 16px/1.55 var(--f-body); color: var(--page-ink); min-height: 100dvh; overflow-x: hidden; caret-color: var(--accent);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 45%, var(--sky-bot)) fixed; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-conic-gradient(rgb(255 255 255 / .13) 0 25%, transparent 0 50%) 0 0 / 4px 4px; }
::selection { background: var(--c-pink-light); color: var(--c-ink); }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.px { image-rendering: pixelated; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Sky */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cloud { position: absolute; left: -260px; animation: drift linear infinite; transition: opacity .6s; }
@keyframes drift { to { transform: translateX(calc(100vw + 520px)); } }
.nstar { position: absolute; opacity: 0; transition: opacity .8s; }
html.night .nstar { opacity: 1; animation: tw 2.2s steps(2) infinite; }
html.night .cloud { opacity: .25; }
@keyframes tw { 50% { opacity: .2; } }
.wrap { position: relative; z-index: 1; width: min(1080px, 94vw); margin: 0 auto; padding: 18px 0 40px; }

/* Header */
.top { position: relative; display: grid; grid-template-columns: 1fr 330px; align-items: end; gap: 20px; min-height: 270px; }
.brand h1 { margin: 0; font: 700 clamp(52px, 7.2vw, 88px)/.95 var(--f-body); color: var(--c-white);
  text-shadow: 3px 0 var(--c-ink), -3px 0 var(--c-ink), 0 3px var(--c-ink), 0 -3px var(--c-ink), 3px 3px var(--c-ink), -3px -3px var(--c-ink), 3px -3px var(--c-ink), -3px 3px var(--c-ink), 9px 9px 0 var(--c-pink); }
.brand p { margin: 18px 0 12px; font: 600 19px var(--f-body); max-width: 520px; }
.tag { display: inline-block; font: 12px var(--f-label); background: var(--surface); color: var(--surface-ink); border: var(--line); padding: 8px 12px; box-shadow: var(--shadow-btn); }
.crt3d { position: relative; width: 330px; height: 250px; cursor: grab; touch-action: none; display: grid; place-items: center; }
.crt3d:active { cursor: grabbing; }
.crt3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; image-rendering: pixelated; display: block; }
.crt3d .hint { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); font: 12px var(--f-label); background: var(--c-ink); color: var(--c-white); padding: 6px 10px; white-space: nowrap; pointer-events: none; }
.toggles { position: absolute; top: 0; right: 0; display: flex; gap: 10px; z-index: 4; }
.tbtn { width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface); border: var(--line); box-shadow: var(--shadow-btn); cursor: pointer; padding: 0; }
.tbtn:active, .btn:active, .pbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.ground { position: relative; height: 84px; margin-top: 4px; border-bottom: 4px solid var(--edge); }
.ground::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border-top: var(--line);
  background: repeating-linear-gradient(90deg, var(--c-green) 0 8px, var(--c-lime) 8px 16px); }
.mascot { position: absolute; bottom: 10px; left: 0; width: 48px; height: 72px; z-index: 3; cursor: pointer; will-change: transform; }
.mascot .mj, .mascot img { width: 48px; height: 72px; }
.bubble { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--surface-ink); border: var(--line);
  padding: 8px 11px; font: 12px var(--f-label); white-space: nowrap; box-shadow: var(--shadow-btn); opacity: 0; pointer-events: none; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 28px; }
.badge { display: flex; align-items: center; gap: 10px; height: 62px; min-width: 150px; padding: 0 14px 0 10px; border: var(--line); box-shadow: var(--shadow-btn);
  font: 13px var(--f-label); color: var(--c-ink); text-decoration: none; background: linear-gradient(180deg, rgb(255 255 255 / .6) 0 46%, transparent 46%), var(--bg); }

/* Layout */
.main { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: start; }
.side { position: sticky; top: 14px; display: grid; gap: 16px; }
.box { background: var(--surface); border: var(--line); box-shadow: var(--shadow-box); color: var(--surface-ink); }
.box h2 { margin: 0; padding: 8px 12px; font: 400 12px var(--f-label); color: var(--c-white); background: var(--stripes); border-bottom: var(--line); }
.box .in { padding: 12px; }
.nav h3 { margin: 2px 0 8px; font: 400 12px var(--f-label); color: var(--label); }
.nav h3:not(:first-child) { margin-top: 14px; }
.nav a { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; padding: 5px 14px 5px 8px; border: var(--line); border-radius: 0 22px 22px 0;
  background: linear-gradient(0deg, var(--c-shelf) 30%, var(--c-white) 60%); font: 16px var(--f-body); text-decoration: none; box-shadow: 2px 2px 0 rgb(27 31 59 / .35); }
.nav a:hover, .nav a.on { background: var(--c-navy); color: var(--c-white); }
.ic { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.cur div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; margin: 6px 0; }
.cur b { display: block; font: 400 12px var(--f-label); color: var(--label); }
.cur span { font-size: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font: 18px/1.2 var(--f-digits); }
.cal b { font: 400 12px var(--f-label); color: var(--label); }
.cal span { border: 1px solid var(--c-silver); }
.cal .today { background: var(--c-pink); border-color: var(--edge); color: var(--c-ink); }
.counter { display: flex; gap: 3px; justify-content: center; }
.counter span { font: 30px/1 var(--f-digits); background: var(--c-ink); color: var(--c-lime); padding: 4px 5px; min-width: 22px; text-align: center; }
.small { font-size: 13px; margin: 8px 0 0; text-align: center; }

/* Windows */
.sec { scroll-margin-top: 16px; margin-bottom: 28px; }
.win { background: var(--surface); border: var(--line); box-shadow: var(--shadow-win); color: var(--surface-ink); }
.bar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px 7px 12px; border-bottom: var(--line); background: var(--gloss); }
.bar h2, .bar b { flex: 1; margin: 0; font: 600 16px var(--f-body); }
.dots { display: flex; gap: 5px; }
.dots i { width: 14px; height: 14px; border: var(--line); }
.dots i:nth-child(1) { background: var(--c-sun); } .dots i:nth-child(2) { background: var(--c-lime); } .dots i:nth-child(3) { background: var(--c-pink); }
.body { padding: 18px 20px; }
.lead { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: var(--line); background: var(--c-pink); color: var(--c-ink);
  box-shadow: var(--shadow-btn); font: 13px var(--f-label); cursor: pointer; text-decoration: none; }
.btn.alt { background: var(--c-ice); }

/* About and background */
.about { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.av { width: 140px; height: 140px; border: var(--line); background: repeating-conic-gradient(var(--c-peach) 0 25%, #ffd3e2 0 50%) 0 0 / 8px 8px;
  display: grid; place-items: center; cursor: pointer; box-shadow: 4px 4px 0 var(--c-pink); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font: 12px var(--f-label); border: var(--line); padding: 6px 10px; background: var(--c-ice); }
.tl { display: grid; gap: 10px; }
.tl > div { display: grid; grid-template-columns: 40px 120px 1fr; gap: 12px; align-items: center; border: 2px dashed var(--c-steel); padding: 10px 12px; }
.tl b { font: 400 12px var(--f-label); color: var(--label); }

/* Resume printer */
.printer { width: min(330px, 100%); margin: 4px auto 0; }
.pr-top { position: relative; min-height: 86px; background: linear-gradient(180deg, var(--c-white), var(--c-silver)); border: var(--line); border-radius: 12px 12px 4px 4px;
  box-shadow: var(--shadow-box); display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 24px; z-index: 2; }
.pr-top .lbl { font: 12px var(--f-label); }
.pr-led { width: 12px; height: 12px; background: var(--c-steel); border: var(--line); }
.pr-led.on { background: var(--c-lime); }
.pr-slot { position: absolute; left: 34px; right: 34px; bottom: 10px; height: 8px; background: var(--c-ink); }
.pr-out { height: 330px; overflow: hidden; margin: -12px 38px 0; position: relative; z-index: 1; }
.paper { background: var(--c-white); border: var(--line); border-top: 0; padding: 18px 16px; height: 320px; transform: translateY(-100%); box-shadow: 4px 4px 0 var(--c-steel); }
.paper .pn { font: 700 18px var(--f-body); }
.paper small { display: block; font: 12px var(--f-label); color: var(--label); margin: 10px 0 4px; }
.paper i { display: block; height: 7px; background: var(--c-silver); margin: 7px 0; }
.pr-actions { display: flex; gap: 12px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* Projects */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { border: var(--line); background: var(--surface); box-shadow: var(--shadow-box); cursor: pointer; text-align: left; padding: 0; display: block; width: 100%; }
.pcard .shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: var(--line); }
.pcard .ph { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--checker); border-bottom: var(--line); }
.pcard .meta { display: block; padding: 10px 12px 12px; }
.pcard .meta b { display: block; font: 600 17px var(--f-body); }
.pcard .meta span { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.modal { position: fixed; inset: 0; display: none; place-items: center; background: rgb(15 18 48 / .55); z-index: 80; padding: 20px; }
.modal.open { display: grid; }
.modal .win { width: min(640px, 94vw); max-height: 92dvh; overflow: auto; }
.modal .shot { display: block; width: 100%; border: var(--line); margin-bottom: 14px; }
.xbtn { width: 30px; height: 30px; border: var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; font: 13px var(--f-label); }
.xbtn:hover { background: var(--c-pink); }

/* Journal */
.jlist { margin: 4px 0 16px;
  background: repeating-linear-gradient(180deg, var(--c-white) 0 27px, var(--c-ruled) 27px 28px); }
.jlist > .muted { margin: 0; padding: 12px 16px; }
.jentry { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 16px; }
.jentry + .jentry { border-top: 2px dashed var(--c-steel); }
.jday { font: 34px/1 var(--f-digits); color: var(--label); text-align: center; border-right: 2px dashed var(--c-pink-light); padding-right: 14px; }
.jday small { display: block; font: 12px var(--f-label); color: var(--c-ink); margin-top: 4px; }
.jentry b { display: block; font: 600 17px var(--f-body); }
.jentry p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* Music */
.radio { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; }
.cdwrap { position: relative; width: 190px; height: 190px; border: var(--line); background: radial-gradient(circle, var(--c-white) 35%, #dbe9ff); box-shadow: var(--shadow-box); display: grid; place-items: center; }
.cdwrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; image-rendering: pixelated; display: block; }
.cdwrap .spin { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.np { font: 12px var(--f-label); color: var(--label); }
.np-t { font: 600 20px var(--f-body); margin: 2px 0 8px; }
.viz { width: 100%; height: 60px; border: var(--line); background: var(--c-ink); image-rendering: pixelated; display: block; }
.ctrl { display: flex; gap: 10px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.pbtn { height: 44px; min-width: 46px; padding: 0 12px; display: grid; place-items: center; border: var(--line); background: var(--c-ice); box-shadow: var(--shadow-btn); cursor: pointer; font: 12px var(--f-label); }
.pbtn.play { background: var(--c-pink); min-width: 90px; }
.vol { display: flex; align-items: center; gap: 8px; font: 12px var(--f-label); }
.vol input { accent-color: var(--c-pink); width: 110px; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.lists h3 { margin: 0 0 8px; font: 400 12px var(--f-label); color: var(--label); }
.tracks button, .favs li { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px; border: var(--line); background: var(--surface); font-size: 15px; cursor: pointer; }
.tracks button.on { background: var(--c-sky); }
.favs { list-style: none; margin: 0; padding: 0; }
.favs li { cursor: default; background: var(--c-ice); }

/* Movies */
.cinema { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.shelf { display: flex; flex-wrap: wrap; gap: 18px 16px; padding: 12px 6px 18px; border-bottom: 6px solid var(--c-slate); background: linear-gradient(180deg, transparent 92%, var(--c-silver) 92%); }
.tape { background: none; border: 0; padding: 0; cursor: pointer; transform-origin: 50% 100%; }
.tape img { width: 128px; height: 80px; }
.tv { border: 3px solid var(--edge); border-radius: 14px; background: linear-gradient(180deg, var(--c-paper), var(--c-silver)); padding: 14px; box-shadow: 5px 5px 0 var(--shadow); }
.tvscr { position: relative; height: 190px; border: 3px solid var(--edge); border-radius: 10px; background: var(--c-navy); overflow: hidden; color: var(--c-white); }
.tvscr canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.tvinfo { position: absolute; inset: 0; padding: 14px; display: grid; align-content: center; gap: 6px; text-align: center; }
.tvinfo b { font: 600 20px var(--f-body); }
.tvinfo .stars { display: flex; gap: 4px; justify-content: center; }
.tvinfo p { margin: 0; font-size: 14px; color: var(--c-sky); }
.vcr { margin-top: 12px; border: var(--line); background: var(--c-slate); display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font: 12px var(--f-label); color: var(--c-lime); }
.vcr i { width: 100px; height: 6px; background: var(--c-ink); }

/* Games */
.games { display: grid; grid-template-columns: 1fr 404px; gap: 22px; align-items: start; }
.carts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cart { background: var(--surface); border: var(--line); box-shadow: var(--shadow-btn); padding: 12px 8px; cursor: pointer; display: grid; justify-items: center; gap: 8px; font: 12px var(--f-label); }
.cart img { width: 72px; height: 84px; }
.cart .sub { color: var(--c-pink-dark); }
.cart.in { opacity: .35; }
.console { position: relative; width: 404px; padding: 24px 24px 26px; border: 3px solid var(--edge); border-radius: 20px 20px 56px 20px; box-shadow: var(--shadow-win);
  background: linear-gradient(135deg, rgb(255 255 255 / .85), rgb(195 220 255 / .92) 42%, rgb(134 177 242 / .95)); }
.slot { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 130px; height: 12px; background: var(--c-ink); border-radius: 5px 5px 0 0; }
.bezel { background: var(--c-slate); border: 3px solid var(--edge); border-radius: 8px 8px 26px 8px; padding: 14px 14px 10px; }
.bezel canvas { display: block; width: 320px; height: 288px; image-rendering: pixelated; background: var(--c-slate); cursor: pointer; touch-action: none; }
.bezel .lbl { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font: 12px var(--f-label); color: var(--c-sky); }
.bezel .led { width: 10px; height: 10px; border: var(--line); background: #555b80; }
.bezel .led.on { background: var(--c-pink); }
.pads { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.dpad { position: relative; width: 102px; height: 102px; }
.dpad button, .dpad .c { position: absolute; width: 34px; height: 34px; background: var(--c-ink); border: 0; padding: 0; }
.dpad button { cursor: pointer; } .dpad button:active { background: var(--c-navy); }
.dpad .u { left: 34px; top: 0; } .dpad .d { left: 34px; top: 68px; } .dpad .l { left: 0; top: 34px; } .dpad .r { left: 68px; top: 34px; } .dpad .c { left: 34px; top: 34px; }
.ab { display: flex; gap: 16px; transform: rotate(-18deg); margin-right: 6px; }
.ab button { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--edge); background: var(--c-pink); font: 13px var(--f-label); color: var(--c-ink); cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); }
.ab button:active { transform: translate(2px, 2px); box-shadow: none; }
.ss { display: flex; gap: 22px; justify-content: center; margin-top: 16px; }
.ss label { display: grid; justify-items: center; gap: 4px; font: 12px var(--f-label); }
.ss button { width: 60px; height: 16px; border-radius: 8px; border: var(--line); background: var(--c-steel); cursor: pointer; padding: 0; }
.ghost { position: fixed; z-index: 70; pointer-events: none; }

/* Footer, stickers, trail */
.foot { margin-top: 34px; border: var(--line); background: var(--surface); overflow: hidden; white-space: nowrap; box-shadow: var(--shadow-box); color: var(--surface-ink); }
.foot .mq { display: inline-flex; gap: 12px; align-items: center; padding: 8px; animation: mq 30s linear infinite; }
.foot:hover .mq { animation-play-state: paused; }
.foot .mq span { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--f-label); border: var(--line); padding: 6px 10px; background: var(--c-ice); }
@keyframes mq { to { transform: translateX(-50%); } }
.credit { text-align: center; font-size: 14px; margin-top: 16px; }
.sticker { position: absolute; z-index: 6; cursor: grab; touch-action: none; filter: drop-shadow(3px 3px 0 rgb(27 31 59 / .55)); }
.sticker:active { cursor: grabbing; }
.trail { position: fixed; pointer-events: none; z-index: 99; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .foot .mq, html.night .nstar, .cdwrap .spin { animation: none !important; }
}
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr; padding-top: 58px; }
  .brand h1 { font-size: clamp(40px, 11vw, 64px); }
  .crt3d { margin: 0 auto; }
  .main, .games, .cinema, .radio, .lists { grid-template-columns: 1fr; }
  .side { position: static; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .console { width: 100%; max-width: 404px; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .sticker { display: none; } }
@media (max-width: 420px) {
  .pgrid { grid-template-columns: 1fr; }
  .bezel canvas { width: 160px; height: 144px; }
  .tl > div { grid-template-columns: 40px 1fr; }
  .tl > div span:last-child { grid-column: 2; }
}
