/* GIF Cities look: a GeoCities neighbourhood homepage at night (reserved in the low-ai-feel registry). */
@font-face { font-family: "Silkscreen"; src: url("fonts/Silkscreen-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --gc-wall: #2A1458; --gc-star: #7E6AD0; --gc-cell: #1B0C3D; --gc-pink: #FF4FA3; --gc-cyan: #39D5E0;
  --gc-text: #EDE7FF; --gc-odo: #0A0A0A; --gc-green: #6CFF4A;
  color-scheme: dark;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  background: #2A1458;
  color: var(--gc-text);
  --pl-font: "Atkinson Hyperlegible", system-ui, sans-serif;
  --pl-topbar-bg: #1B0C3D;
  --pl-topbar-text: #EDE7FF;
  --pl-control-text: #EDE7FF;
  --pl-control-bg: #1B0C3D;
  --pl-control-border: #7E6AD0;
  --pl-focus: #39D5E0;
  --pl-overlay: rgb(14 6 34 / .72);
  --pl-card-bg: #1B0C3D;
  --pl-card-text: #EDE7FF;
  --pl-card-muted: #D6CCF5;
  --pl-card-border: #7E6AD0;
  --pl-primary: #FF4FA3;
  --pl-primary-text: #1B0C3D;
  --pl-shadow: rgb(0 0 0 / .5);
  --pl-share-bg: #1B0C3D;
  --pl-radius-control: 0px;
  --pl-radius-card: 0px;
  --pl-radius-picture: 0px;
}

body {
  background-color: #2A1458;
  /* a 32 px tile of hand-placed pixel stars */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Cg fill='%237E6AD0'%3E%3Crect x='6' y='4' width='2' height='6'/%3E%3Crect x='4' y='6' width='6' height='2'/%3E%3Crect x='21' y='22' width='2' height='2'/%3E%3Crect x='27' y='10' width='1' height='1'/%3E%3Crect x='13' y='27' width='1' height='3'/%3E%3Crect x='12' y='28' width='3' height='1'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--gc-text);
}

button {
  border: 2px solid #7E6AD0;
  border-radius: 0;
  background: #1B0C3D;
  color: #EDE7FF;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-weight: 700;
}
button:disabled { opacity: .45; }

.shell { padding-top: calc(62px + env(safe-area-inset-top)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
#play-screen { padding-top: 0; }
.level-row, #instruction { display: none; }
.board-shell { border: 0; border-radius: 0; background: #2A1458; box-shadow: none; }
#board { image-rendering: pixelated; }


#hand-demo, #success-effect { display: none !important; }

/* the result card rises over the empty box, in the thumb zone */
.result-card {
  position: fixed; z-index: 15; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 410px); transform: translateX(-50%);
  margin: 0; padding: 14px 14px 14px; border: 2px solid #7E6AD0; border-radius: 0;
  background: #1B0C3D; color: #EDE7FF; box-shadow: 0 0 0 4px #2A1458, 0 10px 30px rgb(0 0 0 / .5);
  transition: opacity .25s ease;
}
.result-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px;
  background: repeating-linear-gradient(90deg, #E8343B 0 12px, #FF8A1F 12px 24px, #FFD93B 24px 36px, #6CFF4A 36px 48px, #39D5E0 48px 60px, #3B6CFF 60px 72px, #B04FFF 72px 84px);
}
.gc-playing .result-card { opacity: 0; pointer-events: none; transition: none; }
.result-title { color: #FFFFFF; font-size: 22px; font-weight: 700; }
.result-marks { margin: 4px 0 2px; color: var(--gc-cyan); font-size: 17px; font-weight: 700; }
.share-line { margin: 0 auto 10px; color: var(--gc-green); font-family: "Silkscreen", monospace; font-size: 12px; }
.result-actions button { min-width: 104px; }
.primary-button { border-color: #FF4FA3; background: #FF4FA3; color: #1B0C3D; box-shadow: none; }
.primary-button:active { transform: translateY(1px); box-shadow: none; }

/* level list */
.eyebrow { color: #A99BE0; }
.map-heading h1 { font-family: "Silkscreen", "Atkinson Hyperlegible", sans-serif; font-weight: 400; letter-spacing: 0; color: #FFFFFF; }
.instruction { color: #D6CCF5; }
.level-tile { background: #1B0C3D; border-color: #7E6AD0; color: #EDE7FF; }
.level-tile strong { font-size: 15px; }
.level-tile small { color: #A99BE0; }
.level-tile.complete { border-color: #39D5E0; background: #1B0C3D; }
.quiet-button { color: #EDE7FF; border: 2px solid #7E6AD0; background: #1B0C3D; padding: 7px 12px; }
.load-error { background: #1B0C3D; color: #FFB3D6; border-color: #FF4FA3; }

/* top bar and the rules card in the same look */
[data-pl="topbar"] { box-shadow: 0 2px 0 #7E6AD0; }
[data-pl="howto-card"] h2 { font-family: "Silkscreen", "Atkinson Hyperlegible", sans-serif; font-weight: 400; font-size: 22px; color: #FFFFFF; }
[data-pl="howto-pictures"] { gap: 6px; }
[data-pl="howto-pictures"] canvas { width: calc((100% - 12px) / 3); min-width: 80px; max-width: 150px; image-rendering: pixelated; }
[data-pl="howto-lines"] { font-weight: 400; font-size: 15px; line-height: 1.35; }
.pl-howto-footer .pl-howto-start { min-width: 110px; font-size: 16px; }
/* How to play keeps its words from 360 px up (the kit shows a bare ? below 431 px) */
@media (min-width: 360px) {
  .pl-howto-word { display: inline; }
  .pl-howto-question { display: none; }
  .pl-topbar__inner { padding: 0 6px 0 8px; gap: 4px; }
  .pl-topbar__actions { gap: 2px; }
  .pl-topbar__actions button { padding: 8px 4px; }
  [data-pl="back"] { padding: 8px 6px; }
}


/* level names wrap inside their tile */
.level-tile { min-width: 0; }
.level-tile strong { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 359px) { .level-tile { padding: 10px 5px; } .level-tile strong { font-size: 14px; } }

@media (max-width: 359px) {
  [data-pl="howto-card"] { padding: 14px 12px; }
  [data-pl="howto-lines"] { font-size: 14px; padding-left: 20px; }
}

@media (min-width: 700px) { .shell { background: rgb(27 12 61 / .55); border-color: #7E6AD0; border-radius: 0; box-shadow: none; } }

 /* The shelf of rescued GIFs on the levels screen. */
.gc-shelf { margin: 18px 0 8px; padding: 12px; border: 2px dashed #8f7bd6; color: #e8e2ff; }
.gc-shelf h3 { margin: 0 0 4px; font-size: 16px; }
.gc-shelf p { margin: 0 0 6px; font-size: 13px; }
.gc-shelf-total { color: #7dff9a; font-weight: 700; }
.gc-collection-meter { height: 8px; margin: 8px 0 10px; overflow: hidden; border: 1px solid #7e6ad0; background: #1b0c3d; }
.gc-collection-meter i { display: block; height: 100%; background: linear-gradient(90deg, #39d5e0, #ff4fa3); }
.gc-shelf-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gc-shelf-item { min-width: 0; min-height: 66px; margin: 0; padding: 3px; text-align: center; font-size: 10.5px; line-height: 1.2; color: #c9bff0; }
.gc-shelf-item canvas { display: block; width: 100%; max-width: 64px; margin: 0 auto; aspect-ratio: 1; border: 1px dashed #5b4d8f; image-rendering: pixelated; }
.gc-shelf-item.got canvas { border-style: solid; border-color: #c9b8ff; }
.gc-shelf-item:not(.got) { opacity: .52; }
.gc-shelf-lore { min-height: 2.6em; margin-top: 10px !important; padding-top: 8px; border-top: 1px solid #51427e; color: #dcd4ff; }


/* ===== One design system for the whole page (design/STYLE.md, 2026-10-30) =====
   The board is a 1999 homepage table: dark cells, 2 px violet rules, square corners, rainbow bars between rows.
   Everything around it is built from the same parts, so the notes, controls, share card and footer read as
   more cells of the same homepage. One accent (pink) marks what to press and what is chosen. */
:root {
  --gc-line: #7E6AD0; --gc-muted: #D6CCF5; --gc-accent: #FF4FA3; --gc-on-accent: #1B0C3D; --gc-track: #38245F;
  --gc-read: "Atkinson Hyperlegible", system-ui, "Noto Sans TC", sans-serif; --gc-pixel: "Silkscreen", "Atkinson Hyperlegible", monospace;
  --gc-t-title: 28px; --gc-t-hud: 24px; --gc-t-rule: 22px; --gc-t-body: 20px; --gc-t-btn: 20px; --gc-t-key: 18px;
  --gc-s1: 4px; --gc-s2: 8px; --gc-s3: 12px; --gc-s4: 16px;
  --gc-rainbow: repeating-linear-gradient(90deg, #E8343B 0 12px, #FF8A1F 12px 24px, #FFD93B 24px 36px, #6CFF4A 36px 48px, #39D5E0 48px 60px, #3B6CFF 60px 72px, #B04FFF 72px 84px);
}
/* page frame: fills the screen like a web page; no floating phone card on wide screens */
.shell { width: 100%; max-width: 1240px; padding-left: max(var(--gc-s2), env(safe-area-inset-left)); padding-right: max(var(--gc-s2), env(safe-area-inset-right)); }
@media (min-width: 700px) { .shell { margin-top: 0; min-height: 100dvh; border: 0; background: transparent; box-shadow: none; padding-left: var(--gc-s4); padding-right: var(--gc-s4); } }
.gc-stage { display: grid; gap: var(--gc-s2); }
.board-shell { display: flex; justify-content: center; overflow: visible; background: transparent; }
#board { width: 100%; height: auto; flex: 0 0 auto; }
.gc-panel { display: grid; gap: var(--gc-s2); align-content: start; min-width: 0; }
@media (min-width: 900px) {
  .gc-stage { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: var(--gc-s4); align-items: start; }
}

/* buttons: one shape everywhere */
button, .credits summary {
  min-height: 48px; padding: var(--gc-s2) var(--gc-s3); border: 2px solid var(--gc-line); border-radius: 0;
  background: var(--gc-cell); color: var(--gc-text); font: 700 var(--gc-t-btn)/1.2 var(--gc-read);
}
button:active:not(:disabled), .credits summary:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gc-text); outline-offset: 2px; }
.primary-button, #gc-steps .plc-control--primary { border-color: var(--gc-accent); background: var(--gc-accent); color: var(--gc-on-accent); box-shadow: none; }

/* the cell: HUD, notes and key in one framed box, sections split by the board's rainbow bar */
.gc-cell { display: grid; gap: var(--gc-s2); padding: var(--gc-s2) var(--gc-s3) var(--gc-s3); border: 2px solid var(--gc-line); background: var(--gc-cell); }
#gc-target { margin: 0; }
#gc-target .plc-target { gap: var(--gc-s1); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#gc-target .plc-target__head { align-items: baseline; color: var(--gc-text); font: 700 var(--gc-t-body)/1.2 var(--gc-read); }
#gc-target .plc-target__count { color: var(--gc-text); font: 700 var(--gc-t-hud)/1 var(--gc-read); font-variant-numeric: tabular-nums; }
#gc-target .plc-target__track { height: 8px; border-radius: 0; background: var(--gc-track); }
#gc-target .plc-target__fill { border-radius: 0; background: var(--gc-accent); }
.gc-notes { display: grid; min-height: calc(2.6 * var(--gc-t-rule) + var(--gc-s2)); padding-top: var(--gc-s2); position: relative; }
.gc-notes::before, .gc-key::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gc-rainbow); }
.gc-notes > * { grid-area: 1 / 1; margin: 0; }
.coach { color: var(--gc-text); font: 400 var(--gc-t-rule)/1.3 var(--gc-read); text-align: left; }
.message { background: var(--gc-cell); color: var(--gc-text); font: 700 var(--gc-t-body)/1.3 var(--gc-read); text-align: left; }
.message:empty { display: none; }
.message.refused { color: #FFB3D6; }
.gc-notes:has(.message:not(:empty)) .coach { visibility: hidden; }
.gc-key { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gc-s1) var(--gc-s3); margin: 0; padding-top: var(--gc-s2); color: var(--gc-muted); font: 400 var(--gc-t-key)/1.3 var(--gc-read); }
.gc-key[hidden] { display: none; }
.gc-key-item { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: normal; }
.gc-ico { display: inline-block; flex: 0 0 auto; font-style: normal; }
.gc-ico-stripes { width: 14px; height: 5px; background: #9a96a8; box-shadow: 0 -7px 0 #9a96a8; margin-top: 7px; }
.gc-ico-hearts { width: 14px; color: #ff5fa2; font-size: 18px; line-height: 1; }
.gc-ico-patience { width: 12px; height: 12px; margin: 0 1px; background: #2fd3e0; }
.gc-ico-guestbook { width: 14px; height: 11px; background: #c4283c; box-shadow: inset 6px 0 0 #8e1a2a, inset 0 0 0 2px #ffffff55; }

/* controls: Undo and Reset while building, Next step and Play while the visitors read; Credits stays at the end */
.gc-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gc-s2); align-items: stretch; }
.gc-actions > .controls, .gc-actions > #gc-steps { grid-area: 1 / 1; margin: 0; padding: 0; }
.gc-actions .controls { display: grid; grid-template-columns: auto 1fr; gap: var(--gc-s2); }
.gc-actions .controls button { min-width: 0; }
#gc-steps { visibility: hidden; }
#gc-steps .plc-steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gc-s2); height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
#gc-steps .plc-steps__readout { display: none; }
#gc-steps .plc-control { min-height: 48px; padding: var(--gc-s2); border: 2px solid var(--gc-line); border-radius: 0; background: var(--gc-cell); color: var(--gc-text); font: 700 var(--gc-t-btn)/1.2 var(--gc-read); }
#gc-steps .plc-control--primary { border-color: var(--gc-accent); background: var(--gc-accent); color: var(--gc-on-accent); }
#gc-steps button:disabled { opacity: .45; }
.gc-playing #gc-steps { visibility: visible; }
.gc-playing .gc-actions .controls { visibility: hidden; }
#gc-steps .plc-steps > [hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.gc-playing #gc-steps .plc-steps > [hidden] { visibility: hidden; }

/* speed: a labelled segmented row, chosen segment in the accent */
.gc-speed { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--gc-s2); }
.gc-speed-label { color: var(--gc-muted); font: 400 var(--gc-t-key)/1.2 var(--gc-read); }
.gc-speed .plc-steps__speed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.gc-speed .plc-speed { min-width: 0; min-height: 48px; padding: var(--gc-s1) var(--gc-s1); border: 2px solid var(--gc-line); border-radius: 0; background: var(--gc-cell); color: var(--gc-text); font: 700 var(--gc-t-btn)/1.2 var(--gc-read); }
.gc-speed .plc-speed + .plc-speed { border-left-width: 0; }
.gc-speed .plc-speed[aria-pressed="true"] { border-color: var(--gc-accent); background: var(--gc-accent); color: var(--gc-on-accent); }

/* credits: a quiet button that opens a cell above the controls */
.credits { position: static; margin: 0; color: var(--gc-muted); font: 400 var(--gc-t-key)/1.4 var(--gc-read); }
.credits summary { display: flex; align-items: center; height: 100%; list-style: none; cursor: pointer; color: var(--gc-muted); font-weight: 400; }
.credits summary::-webkit-details-marker { display: none; }
.credits[open] summary { border-color: var(--gc-accent); }
.credits-sheet { position: fixed; z-index: 16; left: var(--gc-s2); right: var(--gc-s2); bottom: calc(132px + env(safe-area-inset-bottom)); max-height: 50vh; overflow: auto; padding: var(--gc-s3); border: 2px solid var(--gc-line); background: var(--gc-cell); color: var(--gc-text); text-align: left; box-shadow: 0 0 0 4px var(--gc-wall); }
.credits-sheet p { margin: 0; }
.credits a { color: var(--gc-text); text-decoration-color: var(--gc-accent); text-underline-offset: 3px; }
@media (min-width: 900px) { .gc-panel { position: relative; } .credits-sheet { position: absolute; left: 0; right: 0; bottom: auto; top: calc(100% + var(--gc-s2)); } }

/* share: the result card is one more cell, in the thumb zone on a phone and in the panel on a wide screen */
.result-card { padding: var(--gc-s3); border: 2px solid var(--gc-line); }
.result-card::before { background: var(--gc-rainbow); }
.result-title { margin: 0; color: var(--gc-text); font: 400 var(--gc-t-title)/1.2 var(--gc-pixel); }
.result-marks { margin: var(--gc-s1) 0; color: var(--gc-text); font: 700 var(--gc-t-body)/1.3 var(--gc-read); }
.share-line { margin: 0 auto var(--gc-s2); color: var(--gc-muted); font: 400 var(--gc-t-key)/1.3 var(--gc-pixel); }
.result-actions { gap: var(--gc-s2); }
.result-actions button { min-width: 0; flex: 1 1 auto; }
@media (min-width: 900px) {
  .result-card { position: relative; left: auto; bottom: auto; width: auto; transform: none; box-shadow: none; }
}

/* How to play card in the same type scale */
[data-pl="howto-lines"] { font-size: var(--gc-t-body); line-height: 1.4; }
.pl-howto-footer .pl-howto-start { font-size: var(--gc-t-btn); }
.gc-speed .plc-steps__speed { grid-column: auto; }
.gc-actions .controls { align-items: stretch; }
.gc-actions .controls button, .gc-actions .credits summary { height: 100%; }
/* short phones (640 tall): the same parts, tighter spacing, so the board keeps the page width */
@media (max-height: 700px) {
  .gc-cell { gap: var(--gc-s1); padding: var(--gc-s1) var(--gc-s2) var(--gc-s2); }
  .gc-key { padding-top: 6px; }
  .gc-key { gap: 0 var(--gc-s2); line-height: 1.25; }
  #gc-target .plc-target__track { height: 6px; }
}
#gc-steps .plc-steps > .plc-steps__readout { display: none !important; }
.gc-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; }
.gc-key-item { white-space: nowrap; }
/* the speed row is one cell: its label never sits on the starry wallpaper */
.gc-speed { gap: 0; padding-left: var(--gc-s3); border: 2px solid var(--gc-line); background: var(--gc-cell); }
.gc-speed .plc-speed { min-height: 44px; border-width: 0 0 0 2px; }
.gc-speed .plc-speed + .plc-speed { border-left-width: 2px; }
.gc-speed .plc-speed[aria-pressed="true"] { border-color: var(--gc-line); }
/* disabled: the fill stays solid (no stars through the label), only the words and rule dim */
button:disabled, #gc-steps button:disabled { opacity: 1; color: #8F86B8; border-color: #4B3C82; }
#gc-steps .plc-control--primary:disabled { background: #6E2A58; border-color: #6E2A58; color: #D6CCF5; }
@media (min-width: 900px) {
  .gc-stage { grid-template-columns: auto 400px; justify-content: center; }
  .board-shell { justify-content: flex-start; }
}
/* 320 px phones: the How to play card keeps one screen with the 18 px floor */
@media (max-width: 359px) { [data-pl="howto-lines"] { font-size: var(--gc-t-key); line-height: 1.3; } }

/* ===== Visual round (P2NV88, 2026-11-13): button badges, a one-line key, the board gets the height back ===== */
:root { --gc-well: #3B2A78; }
:root { --gc-ico-undo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%23EDE7FF'%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='9' y='4' width='1' height='1'/%3E%3Crect x='10' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='10' y='5' width='1' height='1'/%3E%3Crect x='10' y='6' width='1' height='1'/%3E%3Crect x='11' y='6' width='1' height='1'/%3E%3Crect x='9' y='7' width='1' height='1'/%3E%3Crect x='10' y='7' width='1' height='1'/%3E%3Crect x='3' y='8' width='1' height='1'/%3E%3Crect x='4' y='8' width='1' height='1'/%3E%3Crect x='5' y='8' width='1' height='1'/%3E%3Crect x='6' y='8' width='1' height='1'/%3E%3Crect x='7' y='8' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='9' y='8' width='1' height='1'/%3E%3C/svg%3E"); --gc-ico-undo-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%231B0C3D'%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='9' y='4' width='1' height='1'/%3E%3Crect x='10' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='10' y='5' width='1' height='1'/%3E%3Crect x='10' y='6' width='1' height='1'/%3E%3Crect x='11' y='6' width='1' height='1'/%3E%3Crect x='9' y='7' width='1' height='1'/%3E%3Crect x='10' y='7' width='1' height='1'/%3E%3Crect x='3' y='8' width='1' height='1'/%3E%3Crect x='4' y='8' width='1' height='1'/%3E%3Crect x='5' y='8' width='1' height='1'/%3E%3Crect x='6' y='8' width='1' height='1'/%3E%3Crect x='7' y='8' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='9' y='8' width='1' height='1'/%3E%3C/svg%3E"); }
:root { --gc-ico-slow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%23EDE7FF'%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='8' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='9' y='2' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='9' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3Crect x='9' y='5' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='1' y='7' width='1' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3Crect x='3' y='7' width='1' height='1'/%3E%3Crect x='4' y='7' width='1' height='1'/%3E%3Crect x='5' y='7' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3Crect x='7' y='7' width='1' height='1'/%3E%3Crect x='8' y='7' width='1' height='1'/%3E%3Crect x='9' y='7' width='1' height='1'/%3E%3Crect x='10' y='7' width='1' height='1'/%3E%3Crect x='1' y='8' width='1' height='1'/%3E%3Crect x='2' y='8' width='1' height='1'/%3E%3Crect x='3' y='8' width='1' height='1'/%3E%3Crect x='4' y='8' width='1' height='1'/%3E%3Crect x='5' y='8' width='1' height='1'/%3E%3Crect x='6' y='8' width='1' height='1'/%3E%3Crect x='7' y='8' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='9' y='8' width='1' height='1'/%3E%3Crect x='10' y='8' width='1' height='1'/%3E%3C/svg%3E"); --gc-ico-slow-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%231B0C3D'%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='8' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='9' y='2' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='9' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3Crect x='9' y='5' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='1' y='7' width='1' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3Crect x='3' y='7' width='1' height='1'/%3E%3Crect x='4' y='7' width='1' height='1'/%3E%3Crect x='5' y='7' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3Crect x='7' y='7' width='1' height='1'/%3E%3Crect x='8' y='7' width='1' height='1'/%3E%3Crect x='9' y='7' width='1' height='1'/%3E%3Crect x='10' y='7' width='1' height='1'/%3E%3Crect x='1' y='8' width='1' height='1'/%3E%3Crect x='2' y='8' width='1' height='1'/%3E%3Crect x='3' y='8' width='1' height='1'/%3E%3Crect x='4' y='8' width='1' height='1'/%3E%3Crect x='5' y='8' width='1' height='1'/%3E%3Crect x='6' y='8' width='1' height='1'/%3E%3Crect x='7' y='8' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='9' y='8' width='1' height='1'/%3E%3Crect x='10' y='8' width='1' height='1'/%3E%3C/svg%3E"); }
:root { --gc-ico-normal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%23EDE7FF'%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='8' y='4' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='3' y='7' width='1' height='1'/%3E%3Crect x='8' y='7' width='1' height='1'/%3E%3Crect x='3' y='8' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='2' y='9' width='1' height='1'/%3E%3Crect x='3' y='9' width='1' height='1'/%3E%3Crect x='8' y='9' width='1' height='1'/%3E%3Crect x='9' y='9' width='1' height='1'/%3E%3C/svg%3E"); --gc-ico-normal-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%231B0C3D'%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='8' y='4' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='3' y='7' width='1' height='1'/%3E%3Crect x='8' y='7' width='1' height='1'/%3E%3Crect x='3' y='8' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='2' y='9' width='1' height='1'/%3E%3Crect x='3' y='9' width='1' height='1'/%3E%3Crect x='8' y='9' width='1' height='1'/%3E%3Crect x='9' y='9' width='1' height='1'/%3E%3C/svg%3E"); }
:root { --gc-ico-fast: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%23EDE7FF'%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='7' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3Crect x='5' y='7' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3Crect x='4' y='8' width='1' height='1'/%3E%3Crect x='7' y='8' width='1' height='1'/%3E%3C/svg%3E"); --gc-ico-fast-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%231B0C3D'%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='7' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3Crect x='5' y='7' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3Crect x='4' y='8' width='1' height='1'/%3E%3Crect x='7' y='8' width='1' height='1'/%3E%3C/svg%3E"); }
:root { --gc-ico-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%23EDE7FF'%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='9' y='4' width='1' height='1'/%3E%3Crect x='10' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='9' y='5' width='1' height='1'/%3E%3Crect x='10' y='5' width='1' height='1'/%3E%3C/svg%3E"); --gc-ico-more-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' shape-rendering='crispEdges' fill='%231B0C3D'%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='9' y='4' width='1' height='1'/%3E%3Crect x='10' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='9' y='5' width='1' height='1'/%3E%3Crect x='10' y='5' width='1' height='1'/%3E%3C/svg%3E"); }
.shell { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .shell { padding-left: var(--gc-s4); padding-right: var(--gc-s4); } }
.gc-cell { position: relative; }
.gc-speed { display: none; }

/* target bar: the white tick marks the best possible share of all visitors */
#gc-target .plc-target__track { position: relative; }
#gc-target .gc-tick { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #FFFFFF; }

/* controls: three badges in one row (Undo, Speed, More). A badge is a 32 px icon well and a label. */
.gc-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
.gc-actions > .controls, .gc-actions > #gc-steps { grid-area: 1 / 1; }
.gc-actions .controls { display: grid; grid-template-columns: auto minmax(0, 1fr) 52px; gap: var(--gc-s2); }
.gc-badge { position: relative; display: flex; align-items: center; gap: 0; min-width: 0; height: 48px; min-height: 48px; padding: 0 var(--gc-s2) 0 0; border: 2px solid #7E6AD0; background: var(--gc-cell); color: var(--gc-text); font: 700 var(--gc-t-key)/1.1 var(--gc-read); text-align: left; white-space: nowrap; overflow: hidden; }
.gc-badge::before { content: ""; flex: 0 0 auto; width: 40px; height: 44px; margin-right: 6px; background-color: var(--gc-well); background-repeat: no-repeat; background-position: center; background-size: 24px 20px; }
.gc-badge > span { min-width: 0; overflow: hidden; text-overflow: clip; }
#undo-button::before { background-image: var(--gc-ico-undo); }
#undo-button:disabled { color: #8F84B3; }
#undo-button:disabled::before { opacity: .55; }
#speed-button::before { background-color: #FF4FA3; background-image: var(--gc-ico-slow-dark); }
#speed-button[data-pace="normal"]::before { background-image: var(--gc-ico-normal-dark); }
#speed-button[data-pace="fast"]::before { background-image: var(--gc-ico-fast-dark); }
#more-button { padding: 0; justify-content: center; }
#more-button::before { margin: 0; width: 100%; background-image: var(--gc-ico-more); background-size: 24px 20px; }
#more-button[aria-expanded="true"] { border-color: var(--gc-accent); }

/* the More sheet: Reset level and Credits */
.gc-more { position: fixed; z-index: 16; left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); display: grid; gap: var(--gc-s2); padding: var(--gc-s3); border: 2px solid var(--gc-line); background: var(--gc-cell); box-shadow: 0 0 0 4px var(--gc-wall); }
.gc-more[hidden] { display: none; }
.gc-more .credits { position: static; }
.gc-more .credits summary { height: auto; min-height: 48px; color: var(--gc-text); }
.gc-more .credits-sheet { position: static; margin-top: var(--gc-s2); max-height: 38vh; padding: var(--gc-s2) 0 0; border: 0; box-shadow: none; background: transparent; }
@media (min-width: 900px) { .gc-more { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 8px; } }

/* the key: words on tall screens, one line of five icon buttons under 700 px */
.gc-key-item { padding: 0; border: 0; min-height: 0; background: transparent; color: var(--gc-muted); font: 400 var(--gc-t-key)/1.3 var(--gc-read); text-align: left; }
.gc-ico-back { width: 14px; height: 10px; background: #FFFFFF; clip-path: polygon(0 50%, 45% 0, 45% 30%, 100% 30%, 100% 70%, 45% 70%, 45% 100%); }

/* the result card sits where the cell and controls were, so nothing overlaps */
.gc-panel { position: relative; }
.result-card { position: absolute; left: 0; right: 0; top: 0; bottom: 0; bottom: 0; transform: none; width: auto; box-shadow: none; z-index: 5; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.result-card::before { top: -2px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gc-s2); }
.result-actions .primary-button { grid-column: 1 / -1; }
.result-actions button { min-width: 0; }
html:not(.gc-playing) .gc-panel:has(#result-screen:not([hidden])) .gc-cell,
html:not(.gc-playing) .gc-panel:has(#result-screen:not([hidden])) .gc-actions { visibility: hidden; }
.gc-playing .result-card { opacity: 0; pointer-events: none; transition: none; }
.result-card[hidden] { display: none; }
.result-card::before { position: absolute; }

@media (max-height: 699px) {
  .gc-panel { gap: 6px; }
  .gc-cell { gap: 2px; padding: 4px var(--gc-s2) var(--gc-s2); }
  #gc-target .plc-target__head { font-size: 18px; }
  #gc-target .plc-target__count { font-size: 22px; }
  .gc-notes { min-height: calc(1.3 * var(--gc-t-body) + 6px); padding-top: 4px; }
  .coach { font-size: var(--gc-t-body); }
  .gc-notes .message { position: absolute; z-index: 2; left: 2px; right: 2px; top: 46px; bottom: 2px; display: flex; align-items: center; padding: 0 8px; font-size: 18px; line-height: 1.25; overflow: hidden; background: var(--gc-cell); }
  .gc-notes { position: static; }
  .gc-notes .message:empty { display: none; }
  .gc-notes .message { border: 0; }
  .gc-notes::before { content: none; }
  .gc-key { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding-top: 0; }
  .gc-key::before { content: none; }
  .gc-key-item { display: flex; align-items: center; justify-content: center; height: 44px; border: 2px solid #4B3C82; background: transparent; }
  .gc-key-item > span:not(.gc-ico) { display: none; }
  .gc-ico-hearts { font-size: 24px; width: auto; }
  .gc-ico-stripes { width: 18px; height: 6px; margin-top: 12px; box-shadow: 0 -9px 0 #9a96a8; }
  .gc-ico-patience { width: 16px; height: 16px; }
  .gc-ico-guestbook { width: 18px; height: 14px; }
  .gc-ico-back { width: 20px; height: 14px; }
  .gc-playing .gc-key { visibility: hidden; }
  .gc-playing .coach { position: absolute; z-index: 2; left: 2px; right: 2px; top: 46px; bottom: 2px; display: flex; align-items: center; padding: 0 8px; background: var(--gc-cell); font-size: var(--gc-t-body); line-height: 1.25; }
  .result-card { padding: 6px var(--gc-s3) 8px; }
  .result-title { font-size: 24px; line-height: 1.1; }
  .result-marks { margin: 2px 0; font-size: 19px; }
  .result-actions { gap: 4px; }
  .result-actions button { min-height: 44px; }
  .share-line { display: none; }
}
@media (max-width: 359px) {
  .gc-badge { font-size: 17px; }
  .gc-badge::before { width: 34px; margin-right: 4px; }
  .gc-badge { padding-right: 4px; }
  .gc-actions .controls { grid-template-columns: auto minmax(0, 1fr) 48px; }
}
@media (max-width: 359px) { .result-actions button { padding-left: 4px; padding-right: 4px; font-size: var(--gc-t-key); } }
