@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url("assets/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf9f4;
  --white: #fffefa;
  --stock: #eeeae0;
  --line: #c8c7bd;
  --ink: #111a27;
  --muted: #4e555b;
  --blue: #263fe8;
  --blue-dark: #2335af;
  --error: #913d2b;
  --error-bg: #f4cec4;
  --role-success: #2d563d;
  --role-warning: #69501c;
  --role-danger: var(--error);
  --surface: var(--white);
  --surface-soft: var(--stock);
  --ink-muted: var(--muted);
  --border: var(--line);
  --focus-ring: var(--blue);
  --radius: .45rem;
  --action-bg: var(--ink);
  --action-fg: var(--white);
  --spot: var(--blue-dark);
  --cover: var(--stock);
  --display: Bricolage, Arial, sans-serif;
  --body: Jakarta, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
}
[data-game="stamp-trot"] { --cover: #f4ddbf; --spot: #913d2b; }
[data-game="pocket-a-spark"] { --cover: #dcebd6; --spot: #2d563d; }
[data-game="street-tangle"] { --cover: #f4cec4; --spot: #913d2b; }
[data-game="find-this-frame"] { --cover: #d9e7e8; --spot: #275565; }
[data-game="loop-barons"] { --cover: #e4ddeb; --spot: #544073; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); font: 500 100%/1.55 var(--body); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; padding-block-end: env(safe-area-inset-bottom, 0px); }
main, .mast-inner {
  width: min(100%, 59rem);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
main { padding-block: clamp(1.1rem, 3.6vw, 2.8rem) 4rem; }
.field-skip {
  position: fixed;
  z-index: 10;
  inset: .5rem auto auto .5rem;
  transform: translateY(-160%);
  padding: .6rem 1rem;
  background: var(--surface);
  color: var(--ink);
}
.field-skip:focus { transform: translateY(0); }
.mast { border-block-end: 1px solid var(--ink); background: var(--paper); }
.mast-inner, .mast nav, .brand, .actions { display: flex; align-items: center; flex-wrap: wrap; }
.mast-inner { justify-content: space-between; gap: .25rem 1rem; min-height: 3.75rem; }
.brand {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 44px;
  gap: .4rem;
  color: var(--ink);
  font: 800 1.45rem/1 var(--display);
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand img { flex-shrink: 0; }
.mast nav { gap: .15rem clamp(.55rem, 2vw, 1.25rem); }
.mast nav a, .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 700;
}
.mast nav a { text-decoration: none; color: var(--ink-muted); }
.mast nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.mast nav a:hover { color: var(--blue-dark); text-decoration: underline; }
.actions { gap: .6rem; }
a { color: var(--blue-dark); text-underline-offset: .22em; }
h1, h2, h3, h4, legend { font-family: var(--display); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 6vw, 4.15rem); margin: .18em 0 .25em; max-width: 22ch; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin: 1.15em 0 .45em; }
h3, legend { font-size: 1.22rem; }
p { max-width: 66ch; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
button, input, select, textarea { font: inherit; max-width: 100%; color: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .55rem 1.05rem;
  border: 1px solid var(--action-bg);
  border-radius: var(--radius);
  background: var(--action-bg);
  color: var(--action-fg);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}
@media (hover: hover) {
  button:enabled:hover, .button:hover { background: var(--spot); color: var(--white); }
}
button:disabled { opacity: .62; cursor: default; }
[aria-busy="true"] button:disabled { cursor: progress; }
button, summary, a { touch-action: manipulation; }
button + button { margin-inline-start: .35rem; }
.actions > button { margin-inline-start: 0; }
label { display: block; margin: .65rem 0; font-weight: 650; }
input:not([type="checkbox"],[type="radio"],[type="range"]), textarea, select {
  display: block;
  width: min(100%, 40rem);
  min-height: 46px;
  margin-block: .28rem;
  padding: .6rem .7rem;
  border: 1px solid var(--ink-muted);
  border-radius: .35rem;
  background: var(--surface);
}
input[type="checkbox"], input[type="radio"] { width: 1.35rem; height: 1.35rem; accent-color: var(--blue-dark); vertical-align: middle; }
input, output, time, table, .result { font-variant-numeric: tabular-nums lining-nums; }
fieldset, details { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); margin: 1rem 0; padding: .85rem 1rem; }
summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 700; }
img, canvas, video, svg { max-width: 100%; height: auto; }
.notice, #message, .panel {
  padding: 1rem 1.15rem;
  margin: .7rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
#message { border-inline-start: 4px solid var(--role-danger); background: var(--error-bg); color: var(--ink); }
#recovery:not(:empty) { padding-block-end: 1rem; }
.kicker { margin: 0; color: var(--spot); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.intro { max-width: 55ch; font-size: 1.1rem; color: var(--ink-muted); }
.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(8rem, 1fr);
  overflow: hidden;
  position: relative;
  min-height: 12rem;
  background: var(--cover);
  border-block: 1px solid var(--border);
}
.cover > div { align-self: center; padding: clamp(1rem, 4vw, 2rem); }
.cover > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/12; }
.fold { margin: 1.35rem 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-block-start: 1px solid var(--border); padding-block: .75rem; }
.list li:last-child { border-block-end: 1px solid var(--border); }
.list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  gap: .2rem;
}
.list a strong { text-decoration: underline; text-underline-offset: .18em; }
small, .muted { color: var(--ink-muted); }
.card-link {
  display: grid;
  grid-template-columns: clamp(5.6rem, 15vw, 8rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: .9rem 0;
  color: var(--ink);
  border-block-start: 1px solid var(--border);
  text-decoration: none;
}
.card-link img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: .2rem; }
.card-link strong { display: block; font: 750 clamp(1.3rem, 4vw, 1.9rem)/1.15 var(--display); letter-spacing: -.035em; }
#gameplay { margin-block: 1rem; }
#gameplay section { margin-block: 1rem; }
#gameplay table { border-collapse: collapse; width: 100%; }
th, td { padding: .5rem; text-align: start; border-block-end: 1px solid var(--border); }
@media (max-width: 38rem) {
  .cover { grid-template-columns: 1fr; }
  .cover > img { height: 8rem; object-position: center; }
  .mast-inner { min-height: 3.5rem; gap: 0 .45rem; }
  .mast nav { gap: .45rem; }
  .mast nav a { font-size: .805rem; }
}
@media (max-width: 23.5rem) {
  .brand { font-size: 1.2rem; gap: .25rem; }
  .brand img { width: 23px; }
  .mast nav { gap: .4rem; }
}
@media (forced-colors: active) {
  button, .button { border-color: ButtonText; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .mast, .back, #message, #recovery, .actions, #consent, #edition-sharing, .field-skip, button { display: none !important; }
  main { padding: 0; }
  .cover { display: block; min-height: 0; }
  .cover > img { display: none; }
  details { border: 0; }
  body { background: var(--white); }
}
