@font-face {
  font-family: Outfit;
  src: url("./outfit.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #202238;
  --muted: #60657c;
  --paper: #f7f8fc;
  --line: #e2e5ee;
  --blue: #2345eb;
  --radius: 24px;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
canvas:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #e07517;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.1;
}
button[hidden],
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  background: white;
  padding: 15px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.container {
  max-width: 1240px;
  margin: auto;
  padding: 0 36px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  letter-spacing: -1.1px;
  font-size: 29px;
  font-weight: 800;
}
.logo small {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 500;
  display: block;
  line-height: 1.3;
}
.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  transform: rotate(-8deg);
}
.brand-mark i {
  display: block;
  background: var(--blue);
  border-radius: 5px;
}
.brand-mark i:nth-child(2) {
  background: #ff8059;
  border-radius: 50%;
}
.brand-mark i:nth-child(3) {
  background: #cee747;
}
.brand-mark i:nth-child(4) {
  background: #ad98e4;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.header-links a {
  text-decoration: none;
}
.header-links a:hover {
  color: var(--blue);
}
.availability {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
}
.availability span {
  font-size: 18px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 41%;
  align-items: center;
  gap: 50px;
  padding: 38px 0 32px;
}
.eyebrow,
.tiny-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: var(--blue);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 65px);
  font-weight: 750;
  letter-spacing: -2.8px;
  line-height: 1.04;
  max-width: 680px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero p.description {
  font-size: 18px;
  color: var(--muted);
  max-width: 490px;
  margin: 18px 0 20px;
}
.hero img {
  width: 100%;
  height: 262px;
  object-fit: cover;
  border-radius: 36px;
  display: block;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.hero-actions small {
  font-size: 13px;
  color: var(--muted);
}
.btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  min-height: 44px;
  font-weight: 500;
  transition:
    background 0.15s,
    transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover {
  background: #eef0f7;
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 4px 0 #15172c20;
}
.btn.primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.icon-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  height: 46px;
  width: 46px;
  font-size: 24px;
  flex-shrink: 0;
}
.collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0 20px;
}
.collection-heading h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
}
.collection-heading span {
  font-size: 14px;
  color: var(--muted);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 44px;
}
.game-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px #252d4310;
}
.card-art {
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.card-copy {
  padding: 19px 21px 21px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.new-tag {
  background: #e8edfb;
  color: var(--blue);
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-title h3 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.card-title span {
  font-size: 20px;
}
.card-copy p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.game-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 46% 54%;
  background: #fff3e9;
  border: 1px solid #efddd0;
}
.featured .card-art {
  height: 100%;
  min-height: 269px;
  background: #ffceaf;
}
.featured .card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
}
.featured .card-title h3 {
  font-size: 42px;
  letter-spacing: -1.7px;
}
.featured .card-copy p {
  font-size: 16px;
}
.mini-tiles {
  display: grid;
  grid-template-columns: repeat(2, 65px);
  gap: 8px;
  transform: rotate(-10deg);
}
.mini-tiles b {
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff4df;
  font-size: 29px;
  box-shadow: 0 4px 0 #00000010;
}
.mini-tiles b:nth-child(2) {
  background: #ff8a54;
}
.mini-tiles b:nth-child(3) {
  background: #ffb069;
}
.mini-tiles b:nth-child(4) {
  background: #ee6049;
  color: white;
}
.mini-chess {
  display: grid;
  grid-template-columns: repeat(3, 43px);
  transform: rotate(-8deg);
  border: 5px solid #a3b4ff;
  border-radius: 10px;
  overflow: hidden;
}
.mini-chess span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #e2e7ff;
  color: #294084;
  font-size: 36px;
  line-height: 1;
}
.mini-chess span:nth-child(odd) {
  background: #a0b5fb;
}
.mini-numbers {
  display: grid;
  grid-template-columns: repeat(3, 39px);
  gap: 2px;
  border: 4px solid #475d25;
  transform: rotate(8deg);
  border-radius: 8px;
  overflow: hidden;
}
.mini-numbers b {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #f6ffe0;
  font-size: 25px;
  font-weight: 500;
}
.mini-mine {
  display: grid;
  grid-template-columns: repeat(4, 31px);
  gap: 3px;
  transform: rotate(-8deg);
}
.mini-mine b {
  width: 31px;
  height: 31px;
  background: #dcf6f5;
  box-shadow: 0 3px #4ca8b2;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #1e6771;
  font-size: 21px;
}
.mini-blocks {
  display: grid;
  grid-template-columns: repeat(5, 23px);
  grid-template-rows: repeat(4, 23px);
  gap: 4px;
  transform: rotate(8deg);
}
.mini-blocks i {
  border-radius: 4px;
  background: transparent;
}
.mini-blocks i.on {
  background: #d7ee6e;
  box-shadow: 0 3px #58467944;
}
.mini-blocks i.pink {
  background: #ff95ba;
  box-shadow: 0 3px #58467944;
}
.mini-nonogram {
  display: grid;
  grid-template-columns: repeat(5, 20px);
  gap: 3px;
  transform: rotate(-8deg);
  border: 6px solid #fff2fa;
  border-radius: 9px;
  background: #fff2fa;
}
.mini-nonogram i {
  width: 20px;
  height: 20px;
  background: #efdaea;
  border-radius: 2px;
}
.mini-nonogram i.on {
  background: #773d70;
}
.puzzle-glyph {
  font-family: "Segoe UI Symbol", serif;
  color: #402579;
  font-size: 120px;
  line-height: 1;
  transform: rotate(-10deg);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 27px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer strong {
  color: var(--ink);
}
.footer-links {
  display: flex;
  gap: 25px;
}
.site-footer a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.storage-warning {
  background: #fff0ce;
  padding: 10px 20px;
  color: #563d0b;
  font-size: 14px;
}
/* The game is the main surface, with instructions kept alongside it. */
.game-page {
  padding: 28px 0 55px;
}
.back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 23px;
}
.back:hover {
  color: var(--blue);
}
.game-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.game-heading .eyebrow {
  color: var(--muted);
  margin-bottom: 9px;
}
.game-heading h1 {
  font-size: 46px;
  letter-spacing: -1.8px;
}
.game-heading p:last-child {
  color: var(--muted);
  margin-top: 10px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(250px, 1fr);
  gap: 48px;
  align-items: start;
}
.play-panel {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: 0 8px 35px #252d4304;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.toolbar label {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 5px;
  letter-spacing: 0.3px;
  flex: 1;
  min-width: 0;
}
.toolbar select {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 32px 10px 12px;
  width: 100%;
  font-size: 15px;
  min-height: 44px;
}
.chess-options {
  gap: 9px;
}
.stats {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.stats > div {
  flex: 1;
  border-radius: 14px;
  background: var(--paper);
  padding: 11px 16px;
  min-width: 0;
}
.stats span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.stats strong {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.game-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 7px;
}
.game-aside h2 {
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin: 12px 0;
}
.howto .tiny-label {
  color: var(--muted);
}
.howto ol {
  padding-left: 21px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.howto li {
  padding-left: 5px;
  margin: 0 0 14px;
}
.howto li::marker {
  color: var(--ink);
  font-weight: 650;
}
.tip {
  background: color-mix(in srgb, var(--accent) 16%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  padding: 23px;
  border-radius: 20px;
}
.tip p {
  font-size: 15px;
  line-height: 1.6;
  color: #424960;
  margin-top: 12px;
}
.text-link {
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  margin-top: 16px;
}
.local-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
}
.actions.wrap {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.actions .btn {
  font-size: 14px;
}
.status {
  font-size: 14px;
  min-height: 42px;
  color: var(--muted);
  margin-top: 17px;
  line-height: 1.5;
}
.tile-board {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 10px;
  background: #dfe2ee;
  border-radius: 17px;
  padding: 10px;
  touch-action: none;
  aspect-ratio: 1;
}
.tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--tile-color);
  border-radius: 11px;
  min-width: 0;
  overflow: hidden;
}
.tile span {
  font-size: clamp(19px, 3.4vw, 40px);
  font-weight: 650;
  letter-spacing: -1px;
}
.tile[data-value="128"],
.tile[data-value="256"],
.tile[data-value="512"],
.tile[data-value="1024"],
.tile[data-value="2048"],
.tile[data-value="4096"],
.tile[data-value="8192"] {
  color: white;
}
.tile.occupied {
  box-shadow: inset 0 -4px #00000007;
  animation: appear 0.13s ease-out;
}
.dpad {
  display: flex;
  gap: 5px;
}
.dpad .btn {
  font-size: 21px;
  padding: 6px 11px;
}
.sudoku-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border: 2px solid #414b40;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 1;
}
.sudoku-cell {
  aspect-ratio: 1;
  background: white;
  border: 0;
  border-right: 1px solid #dce2d7;
  border-bottom: 1px solid #dce2d7;
  padding: 0;
  min-width: 0;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 500;
  color: #2345be;
  display: grid;
  place-items: center;
}
.sudoku-cell.given {
  font-weight: 650;
  color: var(--ink);
  background: #f4f7ee;
}
.sudoku-cell.peer {
  background: #f0f4e6;
}
.sudoku-cell.same {
  background: #e3ecbc;
}
.sudoku-cell.selected {
  background: #d6ee53;
  box-shadow: inset 0 0 0 2px #748b13;
}
.sudoku-cell:focus-visible {
  outline-offset: -4px;
}
.pencil {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 90%;
  height: 90%;
  font-size: clamp(8px, 1.1vw, 11px);
  line-height: 1;
  font-weight: 400;
  color: var(--muted);
}
.pencil span {
  display: grid;
  place-items: center;
}
.number-pad {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  margin-top: 18px;
}
.number-pad .btn {
  padding: 6px 0;
  font-size: 21px;
  background: #f0f4e6;
  border-color: #dce2d1;
}
.btn[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.mines-tools {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.mines-scroll {
  overflow-x: auto;
  padding-bottom: 7px;
}
.mines-board {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 4px;
  background: #b3dadd;
  padding: 6px;
  border-radius: 12px;
}
.mines-board.wide {
  grid-template-columns: repeat(var(--n), 30px);
  width: max-content;
  min-width: 100%;
}
.mine-cell {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #a4cacd;
  border-bottom: 3px solid #8fc1c5;
  background: #e6f7f6;
  border-radius: 5px;
  font-size: clamp(17px, 3vw, 28px);
  padding: 0;
  font-weight: 650;
  color: #1c566b;
  min-height: 28px;
  user-select: none;
}
.mine-cell:hover {
  background: white;
}
.mine-cell.open {
  background: #edf3f4;
  border-color: #d5e2e4;
  border-bottom-width: 1px;
}
.mine-cell[data-number="1"] {
  color: #2853c3;
}
.mine-cell[data-number="2"] {
  color: #278154;
}
.mine-cell[data-number="3"] {
  color: #c04436;
}
.mine-cell.bomb {
  color: #762d2e;
  background: #f5c4bb;
}
.mine-cell.hit {
  background: #fc6f57;
  color: #201b2d;
}
.wide .mine-cell {
  font-size: 17px;
}
.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  outline: 5px solid #e6eaf6;
}
.chess-cell {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
}
.chess-cell.light {
  background: #e7ecf8;
}
.chess-cell.dark {
  background: #718bd2;
}
.chess-cell.last {
  background: #cdd884;
}
.chess-cell.dark.last {
  background: #90a253;
}
.chess-cell.selected {
  box-shadow: inset 0 0 0 4px #e4a92b;
}
.chess-cell.legal::after {
  content: "";
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: #13223d45;
  position: absolute;
  pointer-events: none;
}
.chess-cell.legal:has(.piece)::after {
  width: 88%;
  height: 88%;
  background: none;
  border: 4px solid #19223865;
}
.piece {
  font-family: "Segoe UI Symbol", "DejaVu Sans", serif;
  font-size: clamp(25px, 4.2vw, 49px);
  line-height: 1;
  z-index: 1;
  filter: drop-shadow(0 2px 1px #1b235344);
  pointer-events: none;
}
.piece.white {
  color: #fffaf0;
  text-shadow:
    -1px -1px 0 #303858,
    1px 1px 0 #303858,
    1px -1px 0 #303858,
    -1px 1px 0 #303858;
}
.piece.black {
  color: #202a4b;
  text-shadow: 0 1px #c1cef0;
}
.chess-cell small {
  font-size: 10px;
  color: #20315f;
  font-weight: 600;
  position: absolute;
  line-height: 1;
}
.chess-cell .rank {
  left: 3px;
  top: 3px;
}
.chess-cell .file {
  right: 3px;
  bottom: 3px;
}
.history {
  font-size: 14px;
}
.history #history {
  color: var(--muted);
  line-height: 1.9;
  max-height: 200px;
  overflow: auto;
  word-spacing: 5px;
}
.puzzle-info {
  background: #f0eafc;
  padding: 23px;
  border-radius: 20px;
}
.puzzle-info p {
  color: #544968;
  font-size: 15px;
  margin: 14px 0;
}
.puzzle-info a {
  font-size: 13px;
}
.puzzle-info .btn {
  font-size: 14px;
}
.nonogram-board {
  display: grid;
  grid-template-columns: minmax(55px, auto) repeat(var(--n), minmax(0, 1fr));
  gap: 1px;
  background: #d2bfce;
  border: 1px solid #d2bfce;
  border-radius: 7px;
  overflow: hidden;
}
.column-clue,
.row-clue,
.nono-corner {
  background: #f8edf4;
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.column-clue {
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 0 7px;
  line-height: 1.4;
}
.row-clue {
  justify-content: flex-end;
  padding: 0 9px;
  word-spacing: 5px;
}
.nono-corner {
  font-size: 11px;
  color: #816b7b;
}
.nono-cell {
  aspect-ratio: 1;
  border: 0;
  background: white;
  color: #8b6b7f;
  padding: 0;
  min-width: 0;
  font-size: 22px;
}
.nono-cell.painted {
  background: #583e66;
}
.nono-cell:hover {
  box-shadow: inset 0 0 0 3px #d494bb;
}
.invalid {
  background: #ffd5d4 !important;
  color: #9e243b !important;
  box-shadow: inset 0 0 0 2px #d85663 !important;
}
.clue-example {
  display: flex;
  gap: 5px;
  margin: 17px 0;
}
.clue-example b,
.clue-example span {
  width: 28px;
  height: 28px;
  border: 1px solid #c69cbe;
  border-radius: 4px;
  background: white;
  text-align: center;
}
.clue-example b {
  background: #583e66;
}
.blocks-layout {
  display: flex;
  gap: 19px;
  justify-content: center;
  align-items: flex-start;
}
.blocks-canvas-wrap {
  position: relative;
  width: 300px;
  max-width: calc(100% - 115px);
  border-radius: 11px;
  overflow: hidden;
}
.blocks-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}
.blocks-side {
  width: 92px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.blocks-side canvas {
  width: 90px;
  height: 90px;
  background: #f1edf8;
  border-radius: 9px;
  padding: 8px;
}
.blocks-side .tiny-label {
  font-size: 10px;
  letter-spacing: 1px;
}
.blocks-side .btn {
  font-size: 13px;
  min-height: 39px;
  padding: 8px;
}
.level-label span {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.level-label strong {
  font-size: 27px;
}
.blocks-overlay {
  position: absolute;
  inset: 0;
  background: #192342d9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 25px;
  text-align: center;
  padding: 20px;
}
.blocks-overlay strong {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
}
.blocks-overlay .btn.primary {
  background: #d6ee53;
  color: var(--ink);
  border: 0;
}
.block-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.block-controls .btn {
  font-size: 14px;
  padding: 8px 12px;
}
.confirm-dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  max-width: calc(100vw - 32px);
  width: 470px;
  box-shadow: 0 20px 100px #20223840;
}
.confirm-dialog::backdrop {
  background: #171a3459;
  backdrop-filter: blur(3px);
}
.confirm-dialog h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.confirm-dialog p {
  margin: 16px 0;
  color: var(--muted);
}
.confirm-dialog .actions {
  flex-wrap: wrap;
}
.game-page:fullscreen {
  background: var(--paper);
  padding: 25px;
  overflow: auto;
}
.prose {
  max-width: 760px;
  margin: 45px auto 65px;
}
.prose h1 {
  font-size: 45px;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.prose h2 {
  font-size: 24px;
  margin: 32px 0 16px;
}
.prose p {
  line-height: 1.75;
  margin: 16px 0;
  color: #545970;
}
.prose li {
  margin-bottom: 10px;
}
.error-state {
  text-align: center;
  padding: 100px 15px;
}
.error-state p {
  margin: 25px 0;
}
@keyframes appear {
  from {
    opacity: 0.55;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (min-width: 1400px) {
  .hero h1 {
    font-size: 65px;
  }
}
@media (max-width: 1050px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .game-card.featured {
    grid-column: span 1;
    display: block;
  }
  .featured .card-art {
    height: 158px;
    min-height: 0;
  }
  .featured .card-copy {
    padding: 19px 21px 21px;
  }
  .featured .card-title h3 {
    font-size: 24px;
    letter-spacing: -0.7px;
  }
  .featured .card-copy p {
    font-size: 14px;
  }
  .mini-tiles {
    grid-template-columns: repeat(2, 51px);
    gap: 6px;
  }
  .mini-tiles b {
    height: 51px;
    font-size: 24px;
  }
  .game-layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  }
  .hero {
    gap: 30px;
  }
  .hero img {
    height: 245px;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .play-panel {
    padding: 19px;
  }
  .header-links {
    gap: 18px;
  }
  .availability {
    display: none;
  }
  .game-heading h1 {
    font-size: 42px;
  }
}
@media (max-width: 760px) {
  .container {
    padding: 0 20px;
  }
  .site-header {
    min-height: 80px;
  }
  .logo {
    font-size: 26px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .header-links a:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr 35%;
    gap: 18px;
    padding: 30px 0 20px;
  }
  .hero h1 {
    font-size: 40px;
    letter-spacing: -1.8px;
  }
  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .hero p.description {
    font-size: 15px;
    margin: 15px 0;
  }
  .hero img {
    height: 230px;
    border-radius: 23px;
    object-position: 48%;
  }
  .hero-actions small {
    display: none;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .card-art,
  .featured .card-art {
    height: 142px;
  }
  .card-copy,
  .featured .card-copy {
    padding: 17px;
  }
  .card-title h3,
  .featured .card-title h3 {
    font-size: 22px;
  }
  .card-copy p,
  .featured .card-copy p {
    font-size: 13px;
  }
  .card-meta {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .game-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 630px;
    margin: auto;
  }
  .game-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .local-note {
    grid-column: 1/-1;
  }
  .game-heading {
    max-width: 630px;
    margin: 0 auto 24px;
  }
  .back {
    margin-bottom: 20px;
  }
  .game-heading h1 {
    font-size: 38px;
  }
  .game-heading p:last-child {
    font-size: 15px;
  }
  .game-heading .eyebrow {
    font-size: 10px;
  }
  .game-page {
    padding-top: 20px;
  }
  .play-panel {
    padding: 22px;
  }
  .tile span {
    font-size: clamp(27px, 7vw, 48px);
  }
  .piece {
    font-size: clamp(30px, 7.1vw, 49px);
  }
  .sudoku-cell {
    font-size: clamp(21px, 4.5vw, 30px);
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .pencil {
    font-size: 10px;
  }
  .tip {
    padding: 20px;
  }
  .game-aside h2 {
    font-size: 23px;
  }
  .chess-cell small {
    font-size: 10px;
  }
  .stats strong {
    font-size: 25px;
  }
  .prose h1 {
    font-size: 35px;
  }
}
@media (max-width: 430px) {
  .container {
    padding: 0 16px;
  }
  .site-header {
    min-height: 78px;
  }
  .header-links {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 25px;
    gap: 20px;
  }
  .hero h1 {
    font-size: 47px;
    max-width: 360px;
  }
  .hero img {
    display: none;
  }
  .hero p.description {
    max-width: 330px;
  }
  .hero .eyebrow {
    font-size: 11px;
  }
  .collection-heading {
    padding-top: 20px;
  }
  .collection-heading h2 {
    font-size: 23px;
  }
  .collection-heading span {
    font-size: 12px;
  }
  .card-art,
  .featured .card-art {
    height: 126px;
  }
  .card-copy,
  .featured .card-copy {
    padding: 14px;
  }
  .card-title h3,
  .featured .card-title h3 {
    font-size: 22px;
  }
  .card-copy p,
  .featured .card-copy p {
    font-size: 13px;
    line-height: 1.4;
  }
  .card-meta {
    font-size: 9px;
  }
  .card-title span {
    font-size: 17px;
  }
  .new-tag {
    font-size: 9px;
  }
  .mini-chess {
    grid-template-columns: repeat(3, 33px);
  }
  .mini-chess span {
    height: 33px;
    width: 33px;
    font-size: 29px;
  }
  .mini-numbers {
    grid-template-columns: repeat(3, 30px);
  }
  .mini-numbers b {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }
  .mini-mine {
    grid-template-columns: repeat(4, 24px);
  }
  .mini-mine b {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }
  .mini-nonogram {
    grid-template-columns: repeat(5, 16px);
  }
  .mini-nonogram i {
    height: 16px;
    width: 16px;
  }
  .mini-blocks {
    transform: scale(0.85) rotate(8deg);
  }
  .puzzle-glyph {
    font-size: 98px;
  }
  .play-panel {
    padding: 15px;
    border-radius: 19px;
  }
  .game-aside {
    grid-template-columns: 1fr;
  }
  .stats > div {
    padding: 10px 12px;
  }
  .stats strong {
    font-size: 22px;
  }
  .stats span {
    font-size: 11px;
  }
  .tile-board {
    gap: 7px;
    padding: 7px;
  }
  .tile {
    border-radius: 8px;
  }
  .tile span {
    font-size: clamp(21px, 7.3vw, 30px);
  }
  .dpad .btn {
    padding: 5px 9px;
  }
  .actions {
    gap: 6px;
  }
  .actions .btn {
    font-size: 12px;
    padding: 9px 11px;
  }
  .toolbar .btn {
    font-size: 12px;
    padding: 10px;
  }
  .toolbar select {
    font-size: 13px;
    padding-left: 8px;
  }
  .game-heading h1 {
    font-size: 35px;
  }
  .game-heading p:last-child {
    font-size: 14px;
  }
  .chess-options {
    flex-wrap: wrap;
  }
  .chess-options label {
    min-width: 85px;
  }
  .mines-tools .btn {
    font-size: 13px;
  }
  .number-pad {
    gap: 3px;
  }
  .number-pad .btn {
    font-size: 19px;
    min-height: 40px;
  }
  .sudoku-cell {
    font-size: 21px;
  }
  .pencil {
    font-size: 8px;
  }
  .blocks-layout {
    gap: 12px;
  }
  .blocks-side {
    width: 77px;
  }
  .blocks-side canvas {
    width: 76px;
    height: 76px;
  }
  .blocks-canvas-wrap {
    max-width: calc(100% - 89px);
  }
  .blocks-overlay strong {
    font-size: 24px;
  }
  .block-controls {
    gap: 5px;
  }
  .block-controls .btn {
    font-size: 12px;
    padding: 8px 11px;
  }
  .column-clue,
  .row-clue {
    font-size: 12px;
  }
  .nonogram-board {
    grid-template-columns: minmax(42px, auto) repeat(var(--n), minmax(0, 1fr));
  }
  .row-clue {
    padding: 0 5px;
  }
  .nono-cell {
    font-size: 17px;
  }
  .local-note {
    grid-column: auto;
  }
  .site-footer {
    font-size: 12px;
  }
  .footer-links {
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
