:root {
  --ink: #282532;
  --paper: #faf5e5;
  --card: #fffaf0;
  --cream: #fff2d0;
  --red: #db4a40;
  --yellow: #ffcf53;
  --muted: #665e59;
  --mono: "Space Mono", monospace;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --edge: 2px solid var(--ink);
  --shadow: 3px 3px 0 var(--ink);
  color-scheme: light;
  font-family: Barlow, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { min-width: 300px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--paper);
  background-image: radial-gradient(#bca88940 .7px, transparent .85px);
  background-size: 7px 7px;
}
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #276dbd; outline-offset: 4px;
}
.wrap { width: min(1272px, calc(100% - clamp(40px, 9vw, 144px))); margin-inline: auto; }
.icon { flex-shrink: 0; vertical-align: middle; }
[data-icon] { display: inline-flex; align-items: center; }
.piece { display: inline-block; width: var(--piece-size); height: var(--piece-size); background: url('./art/workshop-sprites.png') no-repeat; background-size: 800% 400%; image-rendering: pixelated; flex: 0 0 auto; }
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 15; padding: 10px; background: white; }
.skip-link:focus { top: 8px; }
.masthead { background: #fff9e9; border-bottom: 2px solid var(--ink); }
.masthead-inner { min-height: 76px; display: flex; align-items: center; gap: clamp(20px, 5.2vw, 84px); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.wordmark img, .footer-brand img { image-rendering: pixelated; }
.wordmark img { width: 46px; height: 46px; }
.wordmark-type { display: grid; align-content: center; }
.wordmark-type strong { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.04; letter-spacing: -1.3px; }
.wordmark-type > span { font: 700 11px/1.45 var(--mono); color: #a83130; letter-spacing: 4.1px; }
.main-nav, .header-tools { display: flex; align-items: center; }
.main-nav { gap: clamp(5px, 1.35vw, 24px); }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1.5px solid transparent; border-radius: 5px; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-nav a[aria-current="page"] { border-color: #e4b6a0; color: #a82e2a; background: #f9e3cc; }
.main-nav a:hover { background: #f4e8ce; }
.main-nav .icon { width: 18px; height: 18px; }
.header-tools { gap: 14px; margin-left: auto; }
.sound-button, .parent-link, .paper-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: var(--edge); border-radius: 6px; background: #fff8e6; box-shadow: 2px 2px 0 var(--ink); text-decoration: none; font-weight: 700; }
.sound-button { width: 36px; height: 35px; padding: 0; }
.sound-button[aria-pressed="true"] { background: #ffdb7e; }
.parent-link { min-height: 35px; padding: 5px 11px; font-size: 14px; }
.parent-link .icon { width: 14px; height: 14px; }
.sound-button:hover, .parent-link:hover, .paper-button:hover { background: #ffe9af; }
#main-content { flex: 1 0 auto; padding-top: 26px; padding-bottom: 64px; }
#main-content:focus { outline: none; }
.hero { position: relative; display: grid; grid-template-columns: minmax(270px,.85fr) minmax(0,1.45fr); isolation: isolate; min-height: 345px; height: clamp(345px, 27vw, 384px); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; background: #28213d; color: #fff7e5; }
.hero-copy { grid-column: 1; grid-row: 1; min-width: 0; position: relative; height: 100%; padding: 27px clamp(25px, 3.6vw, 52px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-label { display: inline-flex; align-items: center; gap: 8px; color: #ffda71; font: 700 11px/1 var(--mono); letter-spacing: 1.55px; }
.feature-label .icon { width: 14px; height: 14px; }
.hero h1 { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 18px 0 15px; }
.hero-copy > p { font-size: clamp(16px, 1.28vw, 19px); font-weight: 500; line-height: 1.4; max-width: 380px; margin: 0; text-shadow: 1px 1px 2px #211b32; }
.hero-actions { margin-top: 20px; display: flex; align-items: center; gap: 17px; }
.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 19px; border: 2px solid #262233; border-radius: 6px; background: var(--yellow); color: #25212d; box-shadow: 3px 3px 0 #171423; text-decoration: none; font-size: 17px; font-weight: 800; line-height: 1.25; }
.play-button:hover { background: #ffe283; }
.play-button .icon { width: 14px; height: 14px; }
.hero-meta { display: inline-flex; align-items: center; gap: 6px; color: #f8eacb; font-size: 13px; font-weight: 600; }
.hero-meta .icon { width: 15px; height: 15px; }
.carousel { position: static; display: flex; align-items: center; padding: 2px; border: 1.5px solid #ffefc5b3; border-radius: 5px; background: #231f34ed; color: var(--cream); }
.carousel button { display: grid; place-items: center; background: transparent; color: inherit; border: 0; width: 29px; height: 29px; padding: 0; }
.carousel button:hover { color: var(--yellow); }
.carousel-dots { display: flex; align-items: center; gap: 5px; padding: 0 3px; }
.carousel-dots i { display: block; width: 6px; height: 6px; background: #e9ddc4; }
.carousel-dots i.on { width: 15px; background: var(--yellow); }
.feature-screen { grid-column: 2; grid-row: 1; min-height: 0; min-width: 0; height: 100%; padding: 12px; border-left: 3px solid #151e2b; display: grid; place-items: center; overflow: hidden; background: repeating-linear-gradient(135deg,#25353d 0 5px,#293c44 5px 10px); }
.feature-screen img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 365px; }
.game-feature { background: linear-gradient(120deg,#152f38,#263749 58%,#172a39); }
.feature-echo-shift { background: linear-gradient(120deg,#28233c,#33324b); }
.feature-printshop-beat { background: linear-gradient(120deg,#3a223a,#4b2c43); }
.feature-commune-builder { background: linear-gradient(120deg,#233835,#2e4239); }
.game-feature h1 { gap: 0; }
.feature-word { font: 900 clamp(37px,4.6vw,68px)/.93 var(--display); letter-spacing: -.055em; color: #ffdc80; text-shadow: 0 3px #ad692e, 3px 5px #131e2c; }
.feature-word:last-child { color: #fff4d8; text-shadow: 0 3px #96928a, 3px 5px #131e2c; }
@media(max-width:760px) and (min-width:541px) { .hero-copy { padding-inline: 20px; } .feature-screen { padding: 7px; } }
@media(max-width:540px) {
  .feature-screen { width: 100%; height: auto; aspect-ratio: 16/9; padding: 5px; border-left: 0; border-bottom: 2px solid #151e2b; }
  .feature-top { max-width: none; }
  .game-feature h1 { flex-direction: row; flex-wrap: wrap; gap: 3px 8px; }
  .feature-word { font-size: clamp(29px,8.2vw,42px); }
}
.library { margin-top: 37px; scroll-margin-top: 18px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.section-heading h1, .section-heading h2, .page-title { font: 400 clamp(29px, 2.65vw, 40px)/1.13 var(--display); letter-spacing: -1.65px; margin: 0; }
.shelf-mark { display: flex; align-items: center; color: #302936; }
.shelf-mark svg { width: 43px; height: 38px; shape-rendering: crispEdges; }
.count { border: 1.5px solid #cbbd9f; border-radius: 4px; background: #efe6cf; color: #5f5547; padding: 2px 6px; font: 700 11px/1.45 var(--mono); }
.paper-button { padding: 8px 13px; font-size: 14px; line-height: 1.25; }
.paper-button.small { padding: 6px 10px; }
.paper-button .icon { width: 17px; height: 17px; }
.shuffle .icon { transform: rotate(-10deg); }
.shelf-intro { margin: 6px 0 0; color: #5b524f; font-size: 16px; line-height: 1.35; }
.library-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 15px 0 18px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid #a49882; border-radius: 5px; background: #fff9e9; padding: 7px 12px; font-size: 14px; font-weight: 700; line-height: 1.15; }
.filter-chip .icon { width: 15px; height: 15px; }
.filter-chip:hover { border-color: var(--ink); background: #f4e7c8; }
.filter-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff4d6; box-shadow: 1px 2px 0 #a09179; }
.search-box { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1.5px solid #b2a58d; border-radius: 5px; background: #fffbf0; color: #736b60; }
.search-box .icon { width: 16px; height: 16px; }
.search-box input { width: clamp(95px,10vw,154px); min-width: 0; background: transparent; border: 0; font-size: 14px; line-height: 1.25; }
.search-box input:focus { outline: none; }
.search-box:focus-within { outline: 2px solid #336cab; outline-offset: 2px; }
.search-box kbd { border: 1px solid #cfbf9f; border-radius: 2px; color: #8a7f6b; font: 700 10px var(--mono); padding: 0 4px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.game-card { min-width: 0; position: relative; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--card); box-shadow: 4px 4px 0 var(--ink); transition: transform .14s, box-shadow .14s; }
@media (hover:hover) { .game-card:hover { transform: translate(-1px,-3px); box-shadow: 5px 7px 0 var(--ink); } }
.card-link { height: 100%; display: block; overflow: hidden; border-radius: 6px; text-decoration: none; }
.card-art { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; border-bottom: 2px solid var(--ink); background: #52405b; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.favorite-toggle { display: grid; place-items: center; border: var(--edge); background: #fff4dceF; border-radius: 5px; padding: 0; width: 33px; height: 32px; box-shadow: 2px 2px 0 #282532; }
.favorite-toggle:hover { background: #ffdbbd; }
.game-card > .favorite-toggle { position: absolute; right: 10px; top: 10px; }
.favorite-toggle .icon { width: 17px; height: 17px; }
.genre { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 1px 1px 0 var(--ink); color: #26212f; font: 700 10px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .4px; }
.genre .icon { width: 12px; height: 12px; }
.genre-arcade { background: #ffcd65; }
.genre-puzzle { background: #d1b6ee; }
.genre-history { background: #a8d6ed; }
.genre-strategy { background: #a6d3a3; }
.card-art .genre { position: absolute; left: 12px; bottom: 10px; }
.card-info { display: block; padding: 15px 16px 14px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-title { font: 400 clamp(19px, 1.57vw, 25px)/1.18 var(--display); letter-spacing: -.9px; }
.card-play { display: grid; place-items: center; flex: 0 0 auto; color: #9d332c; }
.card-blurb { display: block; margin-top: 6px; color: #514a4c; font-size: 15.5px; line-height: 1.35; }
.card-detail { margin-top: 13px; display: flex; align-items: center; gap: 5px; color: #645b5c; font-size: 12px; font-weight: 600; }
.card-detail .best { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #795b24; }
.card-length { padding-left: 7px; margin-left: 3px; border-left: 1px solid #bdaf92; }
.continue-mark { display: inline-flex; gap: 4px; align-items: center; color: #356448; }
.site-footer { background: #f3ead4; border-top: var(--edge); font-size: 14px; }
.footer-inner { padding-block: 21px; display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.footer-brand, .footer-reading { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; }
.footer-brand { font-family: var(--display); letter-spacing: -.5px; }
.footer-credit { color: #60574d; }
.footer-reading { margin-left: auto; }
.footer-reading .icon { width: 16px; height: 16px; }
.notice { opacity: 0; position: fixed; z-index: 8; pointer-events: none; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 10px 16px; max-width: 90vw; border-radius: 5px; color: var(--paper); background: var(--ink); box-shadow: 2px 2px #ab8a69; font-weight: 600; text-align: center; transition: opacity .12s; }
.notice.on { opacity: 1; }
.empty-state { grid-column: 1/-1; border: 2px dashed #b0a178; border-radius: 9px; padding: 40px 20px; text-align: center; background: #fff8e9; }
.empty-state > .icon { color: #c1423b; }
.empty-state h2, .empty-state h3 { margin: 12px 0 5px; font: 400 24px var(--display); letter-spacing: -1px; }
.empty-state p { margin: 5px auto 18px; }
.page-lead { margin: 6px 0 23px; line-height: 1.5; font-size: 17px; }
.standalone { margin-block: 10px 25px; }
.back-link { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; text-decoration: none; color: #60545a; }
.back-link:hover { text-decoration: underline; }
.guide-layout { display: grid; grid-template-columns: minmax(178px, .35fr) minmax(0,1fr); gap: 23px; }
.guide-sections { display: flex; flex-direction: column; gap: 7px; }
.guide-sections a { display: flex; gap: 9px; align-items: center; padding: 12px 13px; border: 1.5px solid #c1af93; border-radius: 5px; background: #fff9e9; text-decoration: none; font-size: 15px; font-weight: 700; }
.guide-sections a[aria-current="page"] { border-color: var(--ink); background: #ffda77; box-shadow: 2px 2px 0 var(--ink); }
.guide-body { border: var(--edge); background: #fffaf0; box-shadow: var(--shadow); border-radius: 8px; padding: clamp(21px, 3vw, 43px); align-self: start; }
.guide-body h2 { font: 400 clamp(23px,2.5vw,34px)/1.2 var(--display); letter-spacing: -1.15px; margin: 0 0 13px; }
.guide-body h3 { font-size: 21px; margin: 1.15em 0 .25em; }
.guide-body p { font-size: 17px; line-height: 1.6; max-width: 72ch; margin: .35em 0 1em; }
.guide-example { border-left: 4px solid #8eaa84; padding: 12px 17px; margin: 20px 0; background: #eaf0dc; }
.guide-example strong, .guide-question strong { display: block; margin-bottom: 4px; font: 700 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.guide-example p, .guide-question p { margin: 0; }
.guide-question { padding: 13px 16px; background: #f8ebc6; border: 1px dashed #b79b60; border-radius: 5px; margin: 17px 0; }
.reading-links { padding-top: 15px; margin-top: 18px; border-top: 1px solid #d8cbb4; font-size: 14px; display: grid; gap: 6px; color: #5e5150; }
.guide-source-list { padding-left: 20px; }
.guide-source-list li { margin: 10px 0; }
.play-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#main-content:has(#game-room) { width: min(1480px, calc(100% - clamp(26px,7vw,112px))); }
.room-toolbar, .room-actions, .save-line, .save-status { display: flex; align-items: center; }
.room-toolbar { justify-content: space-between; gap: 8px; }
.room-actions { gap: 10px; }
.room-actions .paper-button { min-height: 34px; }
.game-controls { border-left: 4px solid #9d8351; background: #f6eac9; padding: 10px 14px; margin: 0 0 14px; border-radius: 3px; }
.game-controls strong { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .8px; }
.game-controls p { margin: 3px 0 0; line-height: 1.4; }
.save-line { justify-content: space-between; flex-wrap: wrap; gap: 7px; margin: 12px 2px 0; min-height: 28px; font-size: 13px; color: #534b46; }
.save-status { gap: 7px; }
.text-action { border: 0; padding: 5px; background: transparent; color: #655051; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.restart-choice { padding: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.save-line [hidden] { display: none; }
.game-expanded { overflow: hidden; }
#game-room.expanded, #game-room:fullscreen { position: fixed; inset: 0; z-index: 12; overflow: auto; overscroll-behavior: contain; width: 100%; height: 100dvh; padding: 0 clamp(8px,2vw,30px) 18px; border: 0; background: var(--paper); }
#game-room.expanded .room-toolbar { position: sticky; top: 0; z-index: 7; background: var(--paper); padding: 7px 0; border-bottom: 1px solid #c3b59a; }
#game-room.expanded .play-heading { margin-block: 8px; }
#game-room.expanded .play-heading h1 { font-size: clamp(18px,2.2vw,27px); }
#game-room.expanded .play-guide { display: none; }
.play-heading-meta > span:not(.genre) { font-size: 14px; line-height: 1.2; color: #62564c; font-weight: 600; }
.play-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.play-heading h1 { font: 400 clamp(26px,3vw,42px)/1.1 var(--display); letter-spacing: -1.4px; margin: 0; }
.play-heading-meta { display: flex; align-items: center; gap: 12px; }
.play-stage { position: relative; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff9e7; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.play-stage:is([data-playing="solidarity-rails"],[data-playing="history-hop"],[data-playing="breadline-bakery"]) #cartridge { padding: clamp(10px,2.4vw,27px); }
.play-stage[data-playing="solidarity-rails"] { background: #e9eddb; }
.play-stage[data-playing="history-hop"] { background: #e9e2ec; }
.play-stage[data-playing="breadline-bakery"] { background: #f3e4ca; }
#cartridge .rsr-game { max-width: 1280px; margin-inline: auto; }
#cartridge .history-hop { max-width: 1180px; margin-inline: auto; }
#cartridge .history-hop .hh-stage { width: 100%; max-height: none; }
#game-room.expanded #cartridge .history-hop { max-width: min(1500px, max(700px, 147vh)); }
#game-room.expanded #cartridge .rsr-game { max-width: 1450px; }
@media (max-width:570px) { #main-content:has(#game-room) { width: calc(100% - 18px); } .room-toolbar .back-link { padding-block: 7px; } .play-heading-meta .genre { display:none; } }
@media (max-width:480px) { .help-button span { display:none; } .room-actions { gap: 6px; } .room-actions .help-button { width: 34px; padding: 0; } }
.play-guide { display: flex; align-items: flex-start; gap: 13px; margin-top: 19px; padding: 17px 20px; border: 1.5px solid #c0af8e; background: #fff9e9; border-radius: 7px; }
.play-guide strong { display: block; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.play-guide p { margin: 0; line-height: 1.42; }
.play-guide a { font-weight: 700; white-space: nowrap; }
.result-layer { position: absolute; inset: 0; z-index: 5; padding: 15px; display: grid; place-items: center; background: #201b33ba; overflow: auto; }
.result-box { width: min(425px,100%); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 #201b33; background: #fff4d8; padding: 22px; text-align: center; }
.result-box .result-icon { color: #96701e; }
.result-box h2 { font: 400 27px/1.12 var(--display); margin: 9px 0; letter-spacing: -1.2px; }
.result-box p { line-height: 1.38; margin: 8px 0; }
.result-score { display: inline-block; font: 700 13px var(--mono); padding: 4px 9px; border: 1px solid #b79f63; background: #ffdf8b; border-radius: 3px; }
.result-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.result-actions .play-button { font-size: 15px; padding: 8px 14px; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .masthead-inner { gap: 28px; }
  .main-nav { gap: 3px; }
  .main-nav a { padding-inline: 8px; }
  .hero { height: 332px; min-height: 332px; }
  .hero-copy > p { max-width: 345px; }
  .game-grid { gap: 16px; }
  .card-info { padding: 12px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { flex-wrap: wrap; gap: 0; padding: 9px 0 0; }
  .wordmark img { width: 38px; height: 38px; }
  .wordmark-type strong { font-size: 20px; }
  .wordmark-type > span { font-size: 9px; letter-spacing: 3.8px; }
  .main-nav { order: 3; width: 100%; margin-top: 9px; gap: 5px; padding-bottom: 7px; }
  .main-nav a { font-size: 14px; padding: 5px 10px; gap: 5px; }
  .main-nav .icon { width: 16px; height: 16px; }
  .header-tools { gap: 9px; }
  #main-content { padding-top: 17px; padding-bottom: 43px; }
  .hero { min-height: 328px; }
  .hero-copy > p { max-width: 290px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .library { margin-top: 29px; }
  .library-tools { gap: 10px; margin: 14px 0 16px; }
  .search-box { flex: 0 1 auto; }
  .filter-bar { gap: 6px; }
  .filter-chip { padding: 6px 9px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sections { flex-direction: row; flex-wrap: wrap; }
  .guide-sections a { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 26px); }
  .parent-link { padding: 5px 8px; font-size: 13px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; height: auto; min-height: 0; border-radius: 9px; }
  .hero-copy { height: auto; width: 100%; padding: 18px 17px 20px; }
  .feature-label { font-size: 10px; letter-spacing: 1px; }
  .hero h1 { gap: 5px; margin: 11px 0 8px; }
  .hero-copy > p { font-size: 16px; line-height: 1.33; max-width: 30ch; }
  .hero-actions { margin-top: 14px; gap: 11px; }
  .hero-meta { font-size: 12px; }
  .play-button { padding: 9px 13px; font-size: 16px; }
  .carousel button { width: 27px; height: 27px; }
  .section-heading { gap: 7px; }
  .shelf-mark svg { width: 32px; height: 28px; }
  .section-heading h1, .section-heading h2, .page-title { font-size: 26px; letter-spacing: -1.1px; }
  .count { padding: 0 4px; font-size: 10px; }
  .shuffle { padding: 7px 8px; font-size: 12px; gap: 5px; }
  .shuffle .icon { width: 15px; height: 15px; }
  .library-tools { align-items: stretch; }
  .search-box { width: 100%; padding: 7px 8px; }
  .search-box input { flex: 1; }
  .search-box kbd { display: none; }
  .filter-bar { width: 100%; display: grid; grid-template-columns: 1.1fr 1.08fr .94fr .94fr .94fr; gap: 4px; }
  .filter-chip { padding: 7px 2px; gap: 3px; font-size: 13px; }
  .filter-chip .icon { display: none; }
  .game-grid { grid-template-columns: 1fr; gap: 17px; }
  .card-info { padding: 13px 15px; }
  .card-title { font-size: 22px; }
  .footer-inner { gap: 7px 15px; padding-block: 17px; }
  .footer-brand { width: 100%; }
  .footer-reading { margin-left: 0; }
  .play-heading { align-items: flex-start; }
  .result-box { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
@media (max-width: 360px) {
  .wordmark { gap: 5px; }
  .wordmark img { width: 31px; height: 31px; }
  .wordmark-type strong { font-size: 18px; }
  .wordmark-type > span { font-size: 8px; }
  .header-tools { gap: 6px; }
  .sound-button { width: 30px; height: 31px; }
  .parent-link { font-size: 12px; min-height: 31px; padding: 4px 6px; gap: 4px; }
  .main-nav { justify-content: space-between; gap: 0; }
  .main-nav a { padding-inline: 5px; }
  .section-heading { gap: 5px; }
  .section-heading h2 { font-size: 23px; }
  .shuffle { padding-inline: 5px; }
}
