@font-face {
  font-family: Batch Serif;
  src: url(/assets/hestworks/fonts/puzzle-batch-fraunces.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Batch Sans;
  src: url(/assets/hestworks/fonts/puzzle-batch-dmsans.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root,
body {
  --paper:#f5eddf;
  --surface:#fcf7ec;
  --recess:#ece3d3;
  --ink:#21483e;
  --muted:#687067;
  --line:#d6ccba;
  --clay:#ac492f;
  --gold:#d4a347;
  --lilac:#837497;
  --on-primary:#fff9ec;
  --primary:#214c43;
  --primary-dark:#173a32;
  --primary-light:#c8d3b6;
  --accent:#b65337;
  --bg-dark:var(--paper);
  --bg-card:var(--surface);
  --bg-elevated:var(--recess);
  --text-primary:var(--ink);
  --text-secondary:#576258;
  --text-muted:var(--muted);
  --border:var(--line);
  --success:#356848;
  --error:#a13930;
  --warning:#a06d19;
  --font-heading:"Batch Serif",Georgia,serif;
  --font-body:"Batch Sans",Arial,sans-serif;
  color-scheme: light;
}
:root[data-theme=dark],
:root[data-theme=dark] body {
  --paper:#252522;
  --surface:#30302b;
  --recess:#3a3a33;
  --ink:#f5ecd8;
  --muted:#bac3b4;
  --line:#59594d;
  --clay:#e39c7b;
  --gold:#d4b66d;
  --lilac:#beb1d2;
  --on-primary:#152e27;
  --primary:#d5bd7c;
  --primary-dark:#e5cd90;
  --primary-light:#314d3e;
  --accent:#dfa18c;
  --text-secondary:#cbd0be;
  --success:#b7d1a3;
  --error:#f6aca0;
  --warning:#dfbd6e;
  color-scheme: dark;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  background-image:
    radial-gradient(
      ellipse at 10% 0%,
      #e8d4ad22,
      transparent 55%);
}
body::before,
body::after {
  display: none;
}
h1,
h2,
h3,
h4,
.brand-title,
.footer-wordmark {
  font-family: var(--font-heading);
  letter-spacing: -.035em;
}
button,
input,
a {
  touch-action: manipulation;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #c6d0af;
  color: #183b31;
}
.batch-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 5000;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 5px;
}
.batch-skip:focus {
  top: 12px;
}
.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 28px;
}
.navbar {
  position: relative;
  inset: auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  z-index: 50;
}
.nav-container {
  max-width: 1320px;
  min-height: 104px;
  height: auto;
  margin: auto;
  padding: 25px 38px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.batch-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.brand-title {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -1.8px;
}
.brand-tagline {
  font-size: 12px;
  line-height: 1.3;
  max-width: 105px;
  margin-left: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--text-secondary);
}
.nav-links {
  margin-left: auto;
  gap: 8px;
  align-items: center;
}
.nav-link {
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--recess);
  color: var(--ink);
}
.nav-link.active {
  background: var(--clay);
  color: var(--paper);
}
:root[data-theme=dark] .nav-link.active {
  color: #182f27;
  background: var(--gold);
}
.nav-actions {
  gap: 10px;
  flex-shrink: 0;
}
.theme-toggle,
.profile-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}
.theme-toggle:hover,
.profile-btn:hover {
  background: var(--surface);
  border-color: var(--ink);
}
.profile-btn {
  width: auto;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  padding: 0 5px;
}
.profile-btn span {
  font-size: 13px;
}
.profile-wrapper {
  position: relative;
}
.profile-dropdown {
  top: calc(100% + 12px);
  right: 0;
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 35px #182c2420;
  z-index: 100;
  color: var(--ink);
}
.dropdown-header {
  padding: 16px;
}
.dropdown-name {
  font-weight: 600;
}
.dropdown-xp {
  color: var(--muted);
  font-size: 12px;
}
.dropdown-item {
  color: var(--ink);
  padding: 12px 16px;
  font-size: 14px;
}
.dropdown-item:hover {
  background: var(--recess);
  color: var(--ink);
}
.dropdown-divider {
  background: var(--line);
  margin: 4px 12px;
}
.batch-home-main {
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 0 28px;
}
.batch-intro {
  display: grid;
  grid-template-columns: .84fr 1.48fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 30px;
}
.intro-copy .eyebrow,
.batch-eyebrow {
  font: 600 10px/1.4 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--muted);
  margin-bottom: 17px;
}
.intro-copy h1 {
  font-size: clamp(42px, 4.7vw, 65px);
  line-height: 1.04;
  font-weight: 600;
  max-width: 430px;
  color: var(--ink);
  margin: 0 0 20px;
}
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: 400 16px/1.4 var(--font-heading);
  color: var(--text-secondary);
  padding: 5px 0;
  cursor: pointer;
}
.date-badge i {
  font-size: 13px;
}
.date-badge:hover {
  color: var(--clay);
}
.daily-banner.batch-daily {
  margin: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 255px;
  padding: 25px 28px 23px 42px;
  border: 1px solid #8f3c2a;
  border-radius: 7px;
  background: #ae4e35;
  color: #fff3df;
  box-shadow: 0 4px 1px #77372014, 0 9px 19px #5d39271a;
  display: block;
}
.batch-daily::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 15px;
  background:
    repeating-linear-gradient(
      0deg,
      #813d2e 0 2px,
      #b46245 2px 7px);
  opacity: .85;
}
.batch-daily::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at 80% 30%,
      #d6906e44,
      transparent 70%);
  pointer-events: none;
}
.batch-daily .daily-badge {
  position: static;
  display: inline-block;
  border-radius: 3px;
  color: #583720;
  background: #efcc86;
  padding: 4px 9px;
  font: 600 10px/1.6 var(--font-body);
  letter-spacing: 1.4px;
}
.batch-daily .daily-content {
  display: block;
  position: relative;
  z-index: 1;
}
.batch-daily .daily-game-info {
  display: block;
  margin-top: 12px;
  max-width: 65%;
}
.batch-daily h2 {
  font-size: clamp(30px, 3.5vw, 47px);
  line-height: 1.1;
  color: #fff3df;
  margin: 0 0 2px;
  font-weight: 600;
}
.batch-daily .daily-game-details > p {
  color: #f8e5ce;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 12px;
  max-width: 300px;
}
.batch-daily .daily-game-details > #dailyTagline {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 6px;
  color: #ffefd8;
}
.batch-daily .daily-game-details .daily-rewards {
  display: none;
}
.batch-daily .challenge-type-badge {
  font-size: 10px;
  background: #672e262e;
  color: #fff0d8;
  padding: 2px 6px;
  border: 1px solid #f4d4b04d;
  border-radius: 3px;
}
.batch-daily .daily-status {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: none;
}
.batch-daily .daily-progress {
  min-width: 0;
  max-width: 140px;
  flex: 1;
}
.batch-daily .progress-info {
  font-size: 10px;
  color: #f5dfca;
  margin-bottom: 4px;
}
.batch-daily .progress-bar {
  height: 3px;
  background: #713c325e;
}
.batch-daily .progress-fill {
  background: #f5d18a;
}
.batch-daily .play-daily-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: #214c43;
  color: #fff4df;
  border: 1px solid #c5dac488;
  border-radius: 5px;
  padding: 12px 18px;
  font: 500 15px/1.4 var(--font-heading);
  text-decoration: none;
  box-shadow: 0 3px 5px #3c231d25;
  white-space: nowrap;
}
.batch-daily .play-daily-btn:hover {
  transform: translateY(-2px);
  background: #173c32;
  box-shadow: 0 5px 10px #3c231d33;
}
.batch-daily .daily-game-icon {
  display: none;
}
.daily-preview {
  position: absolute;
  right: 22px;
  top: 44px;
  width: 155px;
  pointer-events: none;
  transform: rotate(7deg);
  opacity: .96;
  filter: drop-shadow(0 7px 5px #562b302a);
}
.daily-preview .mini-grid {
  gap: 5px;
}
.daily-preview .mini-tile {
  border: 1px solid #ecdbbf;
  background: #fff1d7;
  color: #21483e;
  font-size: 19px;
  box-shadow: 0 2px 2px #4a23131a;
}
.daily-preview .mini-letters {
  gap: 4px;
}
.daily-preview .mini-letters .mini-tile {
  font-size: 18px;
}
.daily-preview .mini-sum-label,
.daily-preview .mini-targets {
  color: #fff3df;
  font-size: 10px;
}
.batch-daily .daily-completed {
  margin-top: 14px;
  border-top: 1px solid #fff2d04d;
  background: transparent;
  padding: 12px 0 0;
  gap: 10px;
}
.daily-completed h3 {
  font-size: 18px;
  color: #fff4df;
}
.daily-completed p {
  font-size: 12px;
  color: #fff0d8;
}
.daily-completed .completed-icon {
  width: 30px;
  height: 30px;
  background: #efe3c8;
  color: #214c43;
  font-size: 12px;
}
.batch-daily.completed {
  background: #356252;
  border-color: #356252;
}
.week-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #e8ddca66;
  padding: 17px 25px;
  border: 1px solid #dfd2bd70;
  border-radius: 6px;
  margin: 0 0 42px;
}
.week-heading {
  min-width: 140px;
}
.week-heading h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 3px;
}
.week-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.week-days {
  display: flex;
  flex: 1;
  max-width: 520px;
  justify-content: space-between;
  gap: 14px;
}
.week-day {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
  font-size: 11px;
  color: var(--text-secondary);
}
.week-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #9d9d88;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink);
}
.week-day.is-complete .week-mark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.week-day.is-today .week-mark {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  color: var(--clay);
  font-size: 25px;
  font-weight: 700;
}
.week-day.is-today.is-complete .week-mark {
  color: var(--paper);
}
.calendar-link {
  border: 0;
  background: transparent;
  white-space: nowrap;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.week-strip .streak-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
:root[data-theme=dark] .week-strip {
  background: var(--surface);
  border-color: var(--line);
}
.batch-catalogue {
  scroll-margin-top: 24px;
}
.catalogue-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}
.catalogue-heading h2 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.catalogue-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
}
.game-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 235px;
  border: 1px solid var(--line);
  background: #ffffff33;
  border-radius: 5px;
  padding: 0 12px;
  color: var(--muted);
}
.game-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px 0;
  color: var(--ink);
  font-size: 13px;
}
.game-search:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.game-search input:focus-visible {
  outline: 0;
}
.game-search button {
  border: 0;
  background: transparent;
  padding: 4px;
  color: var(--ink);
  cursor: pointer;
}
.game-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.catalogue-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 21px;
}
.game-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter-chip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 13px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.filter-chip:hover {
  background: var(--recess);
  border-color: var(--ink);
}
.filter-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.game-results {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.puzzles-grid.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(245px, 100%), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}
.batch-grid .packet {
  --packet-colour:var(--clay);
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 345px;
  padding: 20px 19px 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 3px 5px #563b2510, 0 12px 15px #563b2505;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}
.packet::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--packet-colour);
  border-right: 1px solid #0000000c;
}
.packet::after {
  display: none;
}
.batch-grid .packet:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px #563b2518;
  border-color: var(--packet-colour);
}
.packet.packet-green {
  --packet-colour:var(--ink);
}
.packet.packet-gold {
  --packet-colour:#a77c21;
}
.packet.packet-lilac {
  --packet-colour:var(--lilac);
}
.packet-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 15px;
}
.packet-number {
  color: var(--packet-colour);
  font-weight: 600;
}
.packet .puzzle-info {
  padding: 0;
  flex: none;
  margin: 0;
}
.packet .puzzle-info h3 {
  color: var(--packet-colour);
  font-size: 31px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 6px;
}
.packet .puzzle-info p.packet-tagline {
  font: 400 16px/1.45 var(--font-heading);
  color: var(--ink);
  margin: 0 0 5px;
}
.packet .packet-description {
  font: 400 11px/1.6 var(--font-body);
  color: var(--text-secondary);
  min-height: 35px;
  margin: 0;
}
.packet-preview {
  margin: 17px 0 18px;
  height: 145px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  max-width: 215px;
  width: 100%;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.mini-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c5bda787;
  border-radius: 4px;
  background: #f4edda;
  color: #213b32;
  font: 500 19px/1 var(--font-heading);
  box-shadow: 0 2px 2px #5942270c;
}
.mini-2048 {
  max-width: 145px;
  gap: 4px;
}
.mini-2048 .mini-tile {
  font-size: 17px;
}
.mini-2048 [data-value="8"] {
  background: #e9b275;
}
.mini-2048 [data-value="16"] {
  background: #df9b70;
}
.mini-2048 [data-value="32"] {
  background: #c87351;
  color: #fff5df;
}
.mini-2048 [data-value="64"] {
  background: #af4d37;
  color: #fff5df;
}
.mini-2048 [data-value="128"],
.mini-2048 [data-value="256"] {
  background: #e5c263;
}
.mini-letters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  width: 185px;
  max-width: 100%;
}
.mini-letters .mini-tile {
  border-radius: 50%;
  font-size: 20px;
}
.mini-tile.chosen {
  background: #285247;
  color: #fff5df;
  border-color: #21483e;
}
.mini-targets {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 10px;
  margin-bottom: 7px;
}
.mini-targets b {
  background: #ecda9d;
  color: #5d461b;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
}
.mini-bingo .mini-tile {
  font-size: 15px;
  aspect-ratio: 1.25;
}
.mini-bingo .mini-tile.chosen {
  background: #d9b357;
  border-color: #bd9642;
  color: #3e351b;
}
.mini-sum-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.mini-sum-label b {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--ink);
}
.mini-sum-label > span {
  margin-left: auto;
}
.mini-sum .mini-tile {
  font-size: 17px;
  aspect-ratio: 1.3;
}
.mini-fallback {
  display: flex;
  gap: 10px;
}
.mini-fallback span {
  font: 36px var(--font-heading);
  background: var(--recess);
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.packet .packet-play {
  background: transparent;
  color: var(--packet-colour);
  margin: auto -19px 0 -19px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  display: flex;
  padding: 13px 19px;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  min-height: 46px;
}
.packet .packet-play:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}
.packet .daily-indicator {
  position: absolute;
  inset: 11px 12px auto auto;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .8px;
  padding: 3px 6px;
  border-radius: 3px;
}
.packet:has(.daily-indicator) .packet-category {
  visibility: hidden;
}
.no-games {
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 6px;
}
.no-games h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.no-games p {
  font-size: 14px;
  color: var(--muted);
}
.no-games button {
  margin-top: 16px;
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.batch-endnote {
  text-align: center;
  margin: 35px 0 40px;
  color: var(--text-secondary);
  font: 400 18px var(--font-heading);
}
.batch-footer {
  max-width: 1184px;
  margin: 35px auto 0;
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  color: var(--text-secondary);
  font-size: 12px;
}
.footer-wordmark {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.footer-wordmark span {
  display: block;
  font: 400 11px var(--font-body);
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 7px;
}
.batch-footer p {
  margin: 0;
}
.batch-footer p > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.batch-footer nav {
  display: flex;
  gap: 20px;
  font-size: 11px;
}
.batch-footer nav a,
.batch-footer p a {
  text-underline-offset: 4px;
}
.batch-footer a:hover {
  color: var(--clay);
}
.game-page {
  min-height: calc(100vh - 250px);
  padding: 26px 24px 32px;
}
.game-container {
  max-width: 560px;
}
.letterflow-container,
.sumup-container {
  max-width: 620px;
}
.bingo-container {
  max-width: 540px;
}
.game-header {
  gap: 15px;
  margin-bottom: 22px;
  align-items: center;
}
.back-btn {
  border: 0;
  width: 34px;
  height: 42px;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 4px;
  flex-shrink: 0;
}
.game-title h1 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
}
.game-score {
  margin-left: auto;
  gap: 20px;
}
.score-box {
  min-width: 55px;
  background: transparent;
  border: 0;
  padding: 0 3px;
  border-radius: 0;
}
.score-box.best {
  background: transparent;
  border-left: 1px solid var(--line);
  padding-left: 19px;
}
.score-label {
  font-size: 10px;
  letter-spacing: .8px;
  color: var(--muted);
  font-weight: 500;
}
.score-value,
.score-box.best .score-value {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--ink);
  font-weight: 600;
}
.score-box.best .score-label {
  color: var(--muted);
}
.xp-stats-bar {
  margin-bottom: 23px;
  padding: 11px 0;
  border-block: 1px solid var(--line);
  gap: 10px;
  display: flex;
}
.xp-stat {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 9px;
  flex: 1;
  gap: 8px;
}
.xp-stat i {
  font-size: 12px;
  color: var(--clay);
}
.xp-stat-info {
  flex-direction: row;
  gap: 7px;
  align-items: baseline;
  flex-wrap: wrap;
}
.xp-stat-value {
  font: 600 13px var(--font-body);
  color: var(--ink);
}
.xp-stat-label {
  font-size: 10px;
  color: var(--muted);
}
.game-area {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 5px 16px #46321e0a;
}
.grid-container {
  background: #daceb7;
  border-radius: 6px;
}
.grid-cell {
  background: #c1b49866;
  border-radius: 5px;
}
.tile {
  border-radius: 5px;
  font-family: var(--font-heading);
  box-shadow: 0 2px 3px #49372412;
}
.tile-2,
.tile-4 {
  color: #314637;
}
.tile-8,
.tile-16,
.tile-32 {
  color: #483022;
}
.tile-64 {
  background: #b95339;
  color: #fff5df;
}
.tile-128,
.tile-256,
.tile-512 {
  color: #4b3d21;
}
.tile-1024,
.tile-2048 {
  background: #d2a640;
  color: #342b18;
  box-shadow: 0 0 12px #d1af5b35;
}
.game-controls {
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.control-btn,
.reset-btn,
.pause-btn,
.start-btn,
.modal-btn.primary,
.prompt-btn.primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 3px #1e342615;
  border-radius: 5px;
  font: 600 14px var(--font-body);
  padding: 12px 20px;
  min-height: 45px;
}
.control-btn:hover,
.reset-btn:hover,
.pause-btn:hover,
.start-btn:hover,
.modal-btn.primary:hover,
.prompt-btn.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 9px #1e34261a;
  transform: translateY(-1px);
}
.control-btn.mode-btn,
.modal-btn.secondary,
.prompt-btn.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 5px;
}
.game-instructions {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}
.game-instructions strong {
  color: var(--ink);
}
.xp-info {
  color: var(--clay);
}
.game-progress {
  background: transparent;
  padding: 12px 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}
.progress-item {
  color: var(--ink);
  font-size: 13px;
}
.progress-item i {
  color: var(--muted);
}
.progress-bar-container,
.target-timer {
  background: var(--recess);
  border-radius: 3px;
}
.progress-bar-fill,
.target-timer-bar {
  background: var(--primary);
  box-shadow: none;
}
.target-section {
  background: transparent;
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 15px 24px;
  gap: 20px;
  margin-bottom: 22px;
  position: relative;
  align-items: center;
}
.target-section .target-info {
  display: block;
}
.target-section .target-label,
.target-section .sum-label {
  font: 400 14px var(--font-heading);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 5px;
}
.target-section .target-number {
  -webkit-text-fill-color: currentColor;
  background: none;
  background-clip: initial;
  color: var(--clay);
  font: 600 66px/1 var(--font-heading);
  padding: 0;
  border: 0;
  min-width: 100px;
}
.target-section .current-sum {
  font: 600 66px/1 var(--font-heading);
  color: var(--ink);
  min-width: 100px;
}
.target-section .target-timer {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: 3px;
}
.target-section .sum-display {
  margin-right: 15px;
}
.sumup-area {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--surface);
  box-shadow: 0 5px 14px #4935240a;
}
.sumup-rows {
  gap: 6px;
}
.sumup-row {
  background: var(--recess);
  border-radius: 4px;
}
.sumup-row::before {
  background:
    linear-gradient(
      to right,
      var(--recess),
      transparent);
}
.sumup-row::after {
  background:
    linear-gradient(
      to left,
      var(--recess),
      transparent);
}
.sumup-row .number-tile {
  background: #fcf2dc;
  color: #24483c;
  border: 1px solid #cabd9f;
  border-radius: 5px;
  font-family: var(--font-heading);
  box-shadow: 0 2px 3px #6b4f291a;
}
.sumup-row .number-tile.selected {
  background: #285548;
  border-color: #194033;
  color: #fff4de;
  box-shadow: 0 3px 5px #193b2e26;
}
.target-numbers {
  background: transparent;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  border-radius: 0;
}
.target-numbers .target-label {
  font: 400 15px var(--font-heading);
  letter-spacing: 0;
  text-transform: none;
}
.target-display {
  gap: 12px;
}
.target-display .target-number {
  font: 600 32px var(--font-heading);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 5px;
  min-width: 85px;
}
.bingo-area {
  background: var(--surface);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.bingo-column {
  background: var(--recess);
  border-radius: 4px;
}
.bingo-column::before {
  background:
    linear-gradient(
      to bottom,
      var(--recess),
      transparent);
}
.bingo-column .number-tile {
  font-family: var(--font-heading);
  background: #fcf2dc;
  color: #24483c;
  border: 1px solid #c9bd9f;
  border-radius: 5px;
  box-shadow: 0 2px 3px #6b4f291a;
}
.bingo-column .number-tile:hover:not(.clicked) {
  background: #efe2c6;
  border-color: #285548;
}
.bingo-column .number-tile.clicked.correct {
  background: #285548;
  color: #fff4de;
  border-color: #285548;
}
.bingo-column .number-tile.clicked.wrong {
  background: #a54031;
  color: #fff4de;
  border-color: #a54031;
}
.letterflow-area {
  background: var(--recess);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px 16px;
}
.letter-tile {
  border-radius: 50%;
  border: 1px solid #c9bd9f;
  background: #fcf2dc;
  color: #24483c;
  font-family: var(--font-heading);
  box-shadow: 0 3px 3px #6b4f2914;
}
.letter-tile.selected {
  background: #285548;
  border-color: #285548;
  color: #fff4de;
  box-shadow: 0 3px 6px #193b2e26;
}
.letter-tile:hover:not(.used):not(.passed) {
  border-color: #285548;
  background: #eee5ce;
}
.stream-fade.left {
  background:
    linear-gradient(
      to right,
      var(--recess),
      transparent);
}
.stream-fade.right {
  background:
    linear-gradient(
      to left,
      var(--recess),
      transparent);
}
.word-builder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
}
.current-word {
  font-family: var(--font-heading);
  color: var(--ink);
}
.word-placeholder {
  font: 400 13px var(--font-body);
  color: var(--muted);
}
.word-btn {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--recess);
  color: var(--ink);
}
.word-btn.submit {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.words-found {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
}
.words-found h3 {
  font-size: 20px;
  color: var(--ink);
}
.word-tag {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 4px;
}
.no-words {
  color: var(--muted);
  font-size: 12px;
}
.start-overlay {
  background: var(--surface);
  border-radius: 7px;
  color: var(--ink);
}
.start-content {
  padding: 24px;
  max-width: 100%;
}
.start-content h2 {
  font: 600 32px var(--font-heading);
  color: var(--ink);
}
.start-content p {
  color: var(--text-secondary);
  font-size: 13px;
}
.start-content > i {
  color: var(--clay);
  font-size: 28px;
}
.pause-overlay {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-radius: 7px;
  color: var(--ink);
}
.pause-overlay i,
.pause-overlay span {
  color: var(--ink);
}
.login-overlay,
.modal,
.calendar-overlay {
  background: #142c25b0;
  backdrop-filter: blur(6px);
}
.login-prompt,
.modal-content,
.calendar-modal {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 20px 80px #071b2640;
}
.login-prompt {
  max-width: 420px;
  padding: 35px;
}
.prompt-icon {
  background: var(--recess);
  border: 1px solid var(--line);
  color: var(--clay);
  border-radius: 7px;
  width: 60px;
  height: 60px;
  font-size: 24px;
}
.login-prompt h2 {
  font: 600 31px var(--font-heading);
}
.login-prompt p {
  font-size: 14px;
}
.prompt-btn {
  border-radius: 5px;
  font-size: 13px;
}
.modal-content h2 {
  font: 600 30px var(--font-heading);
}
.modal-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 29px;
}
.modal-icon.success {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 6px;
}
.modal-btn {
  border-radius: 5px;
}
.calendar-header h3 {
  font-size: 24px;
  color: var(--ink);
}
.calendar-nav,
.calendar-close {
  background: var(--recess);
  color: var(--ink);
  border-radius: 5px;
}
.calendar-day {
  border-radius: 5px;
}
.calendar-day.today {
  border-color: var(--clay);
  color: var(--clay);
}
.calendar-day.completed {
  background: var(--primary);
  color: var(--on-primary);
}
.calendar-day.missed {
  color: var(--muted);
  background: var(--recess);
}
.calendar-legend,
.calendar-weekdays {
  color: var(--text-secondary);
}
.legend-dot.completed {
  background: var(--primary);
}
.legend-dot.missed {
  background: var(--recess);
}
.stats-page,
.leaderboard-page {
  padding: 28px 0 32px;
  min-height: calc(100vh - 250px);
}
.page-header {
  margin: 5px 0 35px;
  text-align: left;
}
.page-header h1 {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 600;
}
.page-header h1 i {
  display: none;
}
.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 9px;
}
.stats-container,
.leaderboard-container {
  max-width: 900px;
  margin-inline: auto;
}
.stats-overview {
  gap: 15px;
}
.overview-card,
.game-stats-card,
.leaderboard-card,
.your-rank-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 3px 8px #40372409;
}
.overview-card.highlight {
  background: var(--ink);
  border-color: var(--ink);
}
.overview-card.highlight .overview-icon,
.overview-card.highlight .overview-value,
.overview-card.highlight .overview-label {
  color: var(--paper);
}
.overview-value {
  font-family: var(--font-heading);
  font-size: 38px;
  color: var(--ink);
}
.overview-icon {
  color: var(--clay);
  font-size: 19px;
}
.overview-label {
  font-size: 11px;
  color: var(--muted);
}
.section-title {
  font-size: 29px;
  color: var(--ink);
  font-weight: 600;
}
.game-stats-card {
  padding: 23px;
  margin-bottom: 20px;
}
.game-stats-header .game-icon {
  background: var(--recess);
  color: var(--clay);
  border-radius: 6px;
}
.game-stats-header .game-icon i {
  color: inherit;
}
.game-info h3 {
  font-size: 27px;
  color: var(--ink);
}
.game-info p {
  color: var(--muted);
}
.game-stat-value {
  font-family: var(--font-heading);
  color: var(--ink);
}
.game-stat-value.xp {
  color: var(--clay);
}
.game-stat-label {
  font-size: 10px;
  color: var(--muted);
}
.overview-card,
.game-stat {
  min-width: 0;
}
.leaderboard-tabs {
  justify-content: flex-start;
  max-width: 900px;
  margin: 0 auto 20px;
}
.tab-btn {
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--line);
  font-size: 12px;
}
.tab-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.leaderboard-header {
  background: var(--recess);
  color: var(--muted);
}
.leaderboard-card > p[role=note] {
  padding: 14px 20px;
  background: var(--recess);
  color: var(--text-secondary);
  font-size: 12px;
}
.leaderboard-row {
  border-color: var(--line);
  color: var(--ink);
}
.leaderboard-row.rank-1,
.leaderboard-row.rank-2,
.leaderboard-row.rank-3 {
  background: transparent;
}
.leaderboard-row.current-user {
  background: var(--recess);
}
.user-avatar {
  border-radius: 5px;
  background: var(--recess);
  color: var(--ink);
}
.user-xp,
.rank {
  color: var(--ink);
}
.leaderboard-row.rank-1 .rank {
  color: var(--clay);
}
.your-rank-card {
  color: var(--ink);
  background: var(--recess);
}
.your-xp-value,
.your-rank-number {
  color: var(--ink);
}
@media (min-width: 1500px) {
  .batch-home-main {
    margin-top: 48px;
  }
  .batch-intro {
    margin-bottom: 36px;
  }
  .daily-banner.batch-daily {
    min-height: 270px;
  }
  .week-strip {
    margin-bottom: 48px;
  }
}
@media (max-width: 1100px) {
  .nav-container {
    gap: 17px;
    padding-inline: 28px;
  }
  .brand-tagline {
    display: none;
  }
  .nav-link {
    padding: 8px 10px;
  }
  .batch-intro {
    gap: 28px;
    grid-template-columns: .8fr 1.4fr;
  }
  .intro-copy h1 {
    font-size: 50px;
  }
  .daily-preview {
    width: 130px;
    right: 15px;
    top: 60px;
  }
  .batch-daily .daily-game-info {
    max-width: 70%;
  }
  .batch-daily .daily-status {
    gap: 9px;
  }
  .batch-daily .play-daily-btn {
    font-size: 13px;
    padding: 11px 13px;
  }
  .batch-footer {
    margin-inline: 28px;
  }
  .puzzles-grid.batch-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(225px, 100%), 1fr));
    gap: 16px;
  }
  .packet .puzzle-info h3 {
    font-size: 28px;
  }
}
@media (max-width: 800px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 13px 20px;
    padding: 18px 24px;
  }
  .nav-logo {
    margin-right: auto;
    gap: 7px;
  }
  .brand-title {
    font-size: 29px;
    letter-spacing: -1.4px;
  }
  .batch-mark {
    width: 43px;
    height: 43px;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .nav-link {
    font-size: 13px;
  }
  .batch-home-main {
    margin-top: 22px;
    padding-inline: 24px;
  }
  .batch-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .intro-copy {
    display: flex;
    flex-direction: column;
  }
  .intro-copy .eyebrow {
    display: none;
  }
  .intro-copy h1 {
    max-width: 520px;
    font-size: 49px;
    margin-bottom: 10px;
  }
  .daily-banner.batch-daily {
    min-height: 245px;
    padding: 23px 25px 21px 38px;
  }
  .batch-daily .daily-game-info {
    max-width: 65%;
  }
  .daily-preview {
    right: 35px;
    top: 35px;
    width: 160px;
  }
  .batch-daily .daily-status {
    max-width: none;
    margin-top: 18px;
  }
  .batch-daily .play-daily-btn {
    font-size: 15px;
    padding: 11px 18px;
  }
  .week-strip {
    gap: 18px;
    padding: 18px;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }
  .week-heading {
    min-width: 0;
    flex: 1;
  }
  .week-days {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .week-heading h2 {
    font-size: 22px;
  }
  .week-heading p {
    max-width: 190px;
  }
  .calendar-link {
    font-size: 11px;
  }
  .catalogue-heading h2 {
    font-size: 31px;
  }
  .catalogue-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .game-search {
    width: 100%;
    max-width: none;
  }
  .packet-preview {
    height: 153px;
  }
  .game-results {
    display: none;
  }
  .batch-footer {
    margin-inline: 24px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .batch-footer nav {
    width: 100%;
    padding-top: 8px;
  }
  .game-page {
    padding-top: 22px;
  }
  .game-title h1 {
    font-size: 33px;
  }
  .stats-page .container,
  .leaderboard-page .container {
    padding-inline: 24px;
  }
  .page-header h1 {
    font-size: 38px;
  }
  .page-header {
    margin-bottom: 25px;
  }
}

@media (max-width: 500px) {
  .nav-container {
    padding: 14px 18px;
    gap: 12px;
  }
  .brand-title {
    font-size: 26px;
  }
  .batch-mark {
    width: 39px;
    height: 39px;
  }
  .profile-btn span {
    display: none;
  }
  .theme-toggle,
  .profile-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-links {
    gap: 18px;
    padding-block: 7px;
  }
  .nav-link {
    padding: 6px 8px;
    font-size: 12px;
  }
  .batch-home-main {
    padding-inline: 18px;
    margin-top: 19px;
  }
  .intro-copy h1 {
    font-size: 44px;
    max-width: 330px;
    line-height: 1.04;
  }
  .date-badge {
    font-size: 15px;
  }
  .daily-banner.batch-daily {
    padding: 20px 18px 19px 31px;
    min-height: 247px;
  }
  .batch-daily h2 {
    font-size: 36px;
  }
  .batch-daily .daily-game-info {
    max-width: 65%;
  }
  .daily-preview {
    width: 105px;
    right: 17px;
    top: 66px;
  }
  .daily-preview .mini-tile {
    font-size: 14px;
  }
  .daily-preview .mini-2048 .mini-tile {
    font-size: 12px;
  }
  .daily-preview .mini-letters .mini-tile {
    font-size: 14px;
  }
  .daily-preview .mini-sum-label {
    font-size: 7px;
    flex-wrap: wrap;
  }
  .daily-preview .mini-targets {
    font-size: 7px;
    gap: 2px;
  }
  .daily-preview .mini-targets b {
    font-size: 8px;
    padding: 2px 4px;
  }
  .batch-daily .daily-game-details > p {
    font-size: 11px;
    max-width: 205px;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    font-size: 17px;
  }
  .batch-daily .play-daily-btn {
    padding: 11px 13px;
    font-size: 13px;
    gap: 9px;
  }
  .batch-daily .daily-progress {
    max-width: 90px;
  }
  .batch-daily .progress-info {
    font-size: 8px;
  }
  .week-strip {
    padding: 16px;
    margin-bottom: 31px;
  }
  .week-heading p {
    font-size: 10px;
  }
  .week-days {
    gap: 7px;
  }
  .week-day {
    font-size: 10px;
  }
  .week-mark {
    width: 21px;
    height: 21px;
  }
  .catalogue-heading h2 {
    font-size: 29px;
  }
  .filter-chip {
    font-size: 10px;
    padding: 7px 9px;
  }
  .game-filters {
    gap: 5px;
  }
  .puzzles-grid.batch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .batch-grid .packet {
    padding: 14px 12px 0 16px;
    min-height: 290px;
  }
  .packet::before {
    width: 3.5px;
  }
  .packet-heading {
    font-size: 7px;
    letter-spacing: .6px;
    gap: 5px;
    margin-bottom: 13px;
  }
  .packet .puzzle-info h3 {
    font-size: 24px;
  }
  .packet .puzzle-info p.packet-tagline {
    font-size: 13px;
    line-height: 1.3;
    min-height: 34px;
  }
  .packet .packet-description {
    font-size: 9px;
    line-height: 1.6;
    min-height: 42px;
  }
  .packet-preview {
    margin: 11px 0 15px;
    height: 112px;
    max-width: 100%;
  }
  .mini-2048 {
    max-width: 112px;
    gap: 3px;
  }
  .mini-2048 .mini-tile {
    font-size: 13px;
  }
  .mini-grid {
    gap: 3px;
  }
  .mini-letters {
    gap: 5px;
  }
  .mini-letters .mini-tile {
    font-size: 14px;
  }
  .mini-bingo .mini-tile {
    font-size: 11px;
  }
  .mini-targets {
    font-size: 8px;
    gap: 3px;
    margin-bottom: 5px;
  }
  .mini-targets b {
    font-size: 9px;
    padding: 2px 5px;
  }
  .mini-sum-label {
    font-size: 8px;
    gap: 3px;
    flex-wrap: wrap;
  }
  .mini-sum-label b {
    font-size: 15px;
  }
  .mini-sum-label > span {
    margin: 0 0 0 auto;
  }
  .mini-sum .mini-tile {
    font-size: 12px;
  }
  .packet .packet-play {
    padding: 11px 10px;
    margin-inline: -10px;
    font-size: 10px;
    min-height: 40px;
  }
  .packet .daily-indicator {
    font-size: 6px;
    padding: 2px 4px;
    right: 7px;
    top: 10px;
  }
  .batch-endnote {
    font-size: 16px;
    margin: 29px 0;
  }
  .batch-footer {
    margin-inline: 18px;
    padding-top: 22px;
  }
  .footer-wordmark {
    font-size: 20px;
  }
  .batch-footer p {
    font-size: 11px;
  }
  .batch-footer nav {
    font-size: 10px;
    gap: 16px;
  }
  .game-page {
    padding: 20px 18px 25px;
  }
  .game-header {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 18px;
  }
  .game-title {
    order: 0;
    width: auto;
    flex: 1;
    text-align: left;
    margin: 0;
  }
  .game-title h1 {
    font-size: 29px;
  }
  .game-score {
    gap: 10px;
  }
  .score-box {
    min-width: 41px;
    padding: 0;
  }
  .score-box.best {
    padding-left: 10px;
  }
  .score-label {
    font-size: 8px;
  }
  .score-value,
  .score-box.best .score-value {
    font-size: 22px;
  }
  .back-btn {
    width: 25px;
    flex-shrink: 0;
    font-size: 12px;
  }
  .xp-stats-bar {
    gap: 5px;
    padding: 9px 0;
    margin-bottom: 17px;
  }
  .xp-stat {
    flex-direction: row;
    justify-content: center;
    padding: 0 4px;
    gap: 5px;
  }
  .xp-stat-info {
    flex-direction: column;
    gap: 1px;
    text-align: left;
  }
  .xp-stat-value {
    font-size: 11px;
  }
  .xp-stat-label {
    font-size: 8px;
  }
  .xp-stat i {
    font-size: 10px;
  }
  .game-area {
    padding: 8px;
  }
  .target-section {
    padding: 15px 12px 19px;
    margin-bottom: 18px;
  }
  .target-section .target-number,
  .target-section .current-sum {
    font-size: 57px;
  }
  .target-section .target-label,
  .target-section .sum-label {
    font-size: 14px;
  }
  .target-display {
    gap: 9px;
  }
  .target-display .target-number {
    min-width: 75px;
    padding: 8px 16px;
    font-size: 29px;
  }
  .control-btn {
    padding: 11px 17px;
    font-size: 12px;
  }
  .game-controls {
    gap: 8px;
  }
  .game-instructions {
    font-size: 10px;
  }
  .letterflow-area {
    padding: 16px 10px;
  }
  .login-prompt {
    padding: 29px;
  }
  .login-prompt h2 {
    font-size: 28px;
  }
  .login-prompt p {
    font-size: 13px;
  }
  .modal-content {
    padding: 29px 24px;
  }
  .modal-content h2 {
    font-size: 27px;
  }
  .stats-page .container,
  .leaderboard-page .container {
    padding-inline: 18px;
  }
  .stats-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .overview-card {
    padding: 17px 10px;
  }
  .overview-value {
    font-size: 33px;
  }
  .page-header h1 {
    font-size: 35px;
  }
  .game-stats-card {
    padding: 17px;
  }
  .game-info h3 {
    font-size: 24px;
  }
  .game-stats-grid {
    gap: 15px 8px;
  }
  .game-stat-value {
    font-size: 21px;
  }
  .game-stat-label {
    font-size: 8px;
  }
  .leaderboard-row {
    padding: 14px 12px;
    font-size: 12px;
  }
  .user-info {
    gap: 10px;
  }
  .user-avatar {
    width: 31px;
    height: 31px;
  }
  .leaderboard-header {
    font-size: 11px;
    padding: 14px 12px;
  }
}
@media (max-width: 360px) {
  .brand-title {
    font-size: 24px;
  }
  .batch-mark {
    width: 33px;
    height: 33px;
  }
  .intro-copy h1 {
    font-size: 39px;
  }
  .nav-links {
    gap: 12px;
  }
  .packet .puzzle-info h3 {
    font-size: 21px;
  }
  .packet .packet-description {
    font-size: 9px;
    min-height: 55px;
  }
  .mini-sum-label {
    font-size: 7px;
  }
  .daily-preview {
    width: 90px;
  }
  .batch-daily .daily-game-info {
    max-width: 67%;
  }
  .batch-daily .daily-game-details > p {
    max-width: 155px;
  }
  .batch-daily .play-daily-btn {
    font-size: 12px;
    padding: 11px;
  }
  .catalogue-heading h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.batch-daily[data-game=letterflow] {
  background: #6a596f;
  border-color: #55465a;
}
.batch-daily[data-game=bingo] {
  background: #80612f;
  border-color: #695025;
}
.batch-daily[data-game=sumup] {
  background: #786174;
  border-color: #614d5d;
}
.batch-daily[data-game=letterflow] .daily-preview {
  transform: rotate(-6deg);
  top: 62px;
}
.batch-daily[data-game=bingo] .daily-preview {
  transform: rotate(3deg);
  top: 66px;
}
.batch-daily[data-game=sumup] .daily-preview {
  transform: rotate(-4deg);
  top: 58px;
}
.batch-daily.completed {
  background: #655d45;
  border-color: #655d45;
}
.batch-sprig {
  width: 68px;
  height: 43px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 13px;
  color: #858a69;
  opacity: .7;
}
.game-page {
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}
.nav-container {
  padding-top: max(18px, env(safe-area-inset-top));
}
.game-page .game-container {
  width: 100%;
  min-width: 0;
}
.game-page .game-area,
.game-page .sumup-area,
.game-page .bingo-area {
  background: var(--surface);
}
@media (pointer: coarse) {
  .theme-toggle,
  .profile-btn {
    min-width: 44px;
    min-height: 44px;
  }
  .control-btn,
  .word-btn,
  .calendar-nav,
  .calendar-close {
    min-height: 44px;
    min-width: 44px;
  }
  .packet .packet-play {
    min-height: 44px;
  }
}
@media (max-width: 500px) {
  .batch-daily[data-game] .daily-preview {
    top: 70px;
  }
  .batch-sprig {
    width: 48px;
    margin-left: 4px;
  }
  .nav-container {
    padding-inline: max(14px, env(safe-area-inset-left));
  }
  .brand-title {
    font-size: 24px;
  }
  .nav-logo {
    gap: 5px;
  }
  .nav-actions {
    gap: 3px;
  }
}
.navbar,
[data-theme] .navbar {
  background: transparent;
}
.nav-links {
  display: flex;
}
.brand-tagline {
  max-width: 160px;
  line-height: 1.6;
}
.batch-grid .packet {
  gap: 0;
  min-height: 330px;
  background-image: url(/assets/hestworks/puzzle-batch-paper.svg);
  background-size: 160px;
}
.packet-heading {
  margin-bottom: 15px;
}
.packet-preview {
  margin-top: 14px;
}
.packet .packet-description {
  min-height: 35px;
}
.batch-daily .daily-badge {
  margin-bottom: 0;
}
.batch-daily .daily-status {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  min-width: 0;
}
.batch-daily .daily-content {
  min-width: 0;
}
.batch-daily .daily-game-details p strong {
  color: inherit;
}
.daily-banner.batch-daily {
  padding-top: 24px;
  min-height: 275px;
  background-image: url(/assets/hestworks/puzzle-batch-paper.svg);
  background-size: 160px;
}
.daily-preview {
  width: 200px;
  top: 58px;
  right: 28px;
  transform: rotate(5deg);
}
.cover-merge,
.cover-sum {
  height: 120px;
  position: relative;
}
.cover-merge span,
.cover-sum span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 79px;
  height: 88px;
  background: #fff3d9;
  color: #593a28;
  border: 1px solid #d8bea1;
  border-radius: 7px;
  box-shadow: 0 6px 8px #46291d40, inset 0 0 0 3px #fff8e4;
  font: 500 53px/1 var(--font-heading);
  transform: rotate(-14deg);
  top: 20px;
  left: 0;
}
.cover-merge span:nth-child(2),
.cover-sum span:nth-child(2) {
  left: 58px;
  top: 0;
  transform: rotate(9deg);
  color: #ac492f;
}
.cover-merge span:nth-child(3),
.cover-sum span:nth-child(3) {
  left: 117px;
  top: 25px;
  transform: rotate(14deg);
  color: #21483e;
}
.cover-word {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 12px 0;
  transform: rotate(-5deg);
}
.cover-word span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid #dfd0b6;
  background: #fff1d5;
  color: #4c3853;
  box-shadow: 0 4px 5px #35233633;
  font: 500 37px var(--font-heading);
}
.cover-word span:nth-child(even) {
  background: #d8c5d2;
}
.cover-match small {
  display: block;
  text-align: center;
  color: #ffedce;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.cover-match > div {
  display: flex;
  gap: 7px;
}
.cover-match span {
  display: grid;
  place-items: center;
  background: #edcf82;
  color: #62451c;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font: 500 30px var(--font-heading);
  box-shadow: 0 4px 5px #49331c40;
  border: 2px solid #f7e2a1;
}
.daily-banner.batch-daily[data-game=letterflow] .daily-preview {
  width: 168px;
  top: 50px;
}
.daily-banner.batch-daily[data-game=bingo] .daily-preview {
  top: 70px;
}
.daily-banner.batch-daily[data-game=sumup] .daily-preview {
  top: 58px;
}
.batch-intro {
  gap: 38px;
  grid-template-columns: .86fr 1.44fr;
}
.batch-daily .daily-progress {
  max-width: 115px;
}
.batch-daily .daily-game-info {
  max-width: 62%;
}
.batch-daily .daily-status {
  margin-top: 17px;
}
.batch-daily .daily-game-details > p {
  font-size: 12px;
}
.batch-daily .daily-game-details > #dailyTagline {
  font-size: 20px;
}
.batch-daily .daily-game-details h2 {
  margin-top: 0;
}
.batch-daily .daily-content {
  margin-top: 14px;
}
.packet .puzzle-info h3 {
  margin-bottom: 6px;
}
.packet .puzzle-info p.packet-tagline {
  margin-bottom: 8px;
}
.batch-home-main {
  margin-top: 26px;
}
.batch-endnote {
  position: relative;
}
.batch-grid .packet:nth-child(4n+2) .packet-preview {
  position: relative;
}
.batch-grid .packet:nth-child(4n+2) .packet-preview::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 25px;
  height: 48px;
  border-left: 1px solid #87916d;
  border-radius: 50%;
  transform: rotate(28deg);
  opacity: .4;
}
.batch-grid .packet:nth-child(4n+2) .packet-preview::before {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 17px;
  width: 18px;
  height: 9px;
  border: 1px solid #87916d;
  border-radius: 100% 0 100% 0;
  transform: rotate(-12deg);
  opacity: .4;
}
@media (min-width: 801px) {
  .daily-banner.batch-daily {
    min-height: 286px;
  }
  .batch-daily .daily-status {
    margin-top: 23px;
  }
  .batch-daily .play-daily-btn {
    padding: 11px 16px;
  }
  .batch-daily .daily-game-info {
    max-width: 60%;
  }
  .batch-daily .daily-game-details > p {
    max-width: 270px;
  }
  .packet-preview {
    height: 147px;
  }
  .batch-grid .packet {
    padding-top: 17px;
  }
  .brand-title {
    font-size: 36px;
  }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .daily-preview {
    width: 165px;
    right: 18px;
  }
  .cover-merge,
  .cover-sum {
    transform: scale(.82);
    transform-origin: left top;
  }
  .daily-banner.batch-daily {
    padding-left: 30px;
  }
  .batch-daily .daily-game-info {
    max-width: 61%;
  }
  .batch-daily .daily-progress {
    max-width: 72px;
  }
}
@media (max-width: 800px) {
  .nav-links {
    display: flex;
  }
  .daily-preview {
    width: 200px;
    right: 28px;
    top: 45px;
  }
  .daily-banner.batch-daily {
    min-height: 268px;
  }
  .batch-daily .daily-game-info {
    max-width: 62%;
  }
  .batch-daily .daily-status {
    margin-top: 20px;
  }
  .batch-grid .packet {
    gap: 0;
  }
}
@media (max-width: 500px) {
  .daily-banner.batch-daily {
    min-height: 263px;
    padding-top: 20px;
  }
  .batch-daily .daily-content {
    margin-top: 12px;
  }
  .batch-daily .daily-game-info {
    margin-top: 0;
    max-width: 70%;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    font-size: 17px;
    max-width: 220px;
  }
  .batch-daily .daily-game-details > p {
    max-width: 195px;
    font-size: 11px;
  }
  .daily-preview {
    width: 110px;
    right: 14px;
    top: 64px;
  }
  .cover-merge,
  .cover-sum {
    transform: scale(.55);
    transform-origin: left top;
    height: 75px;
  }
  .daily-banner.batch-daily[data-game=letterflow] .daily-preview {
    width: 91px;
    top: 70px;
  }
  .cover-word {
    gap: 4px;
  }
  .cover-word span {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
  .daily-banner.batch-daily[data-game=bingo] .daily-preview {
    width: 103px;
    top: 75px;
  }
  .cover-match > div {
    gap: 3px;
  }
  .cover-match span {
    width: 33px;
    height: 33px;
    font-size: 18px;
  }
  .cover-match small {
    font-size: 7px;
    margin-bottom: 6px;
  }
  .batch-daily .daily-progress {
    max-width: 64px;
  }
  .batch-daily .daily-status {
    gap: 9px;
    margin-top: 19px;
  }
  .batch-grid .packet {
    min-height: 302px;
  }
  .packet-heading {
    margin-bottom: 11px;
  }
  .packet-preview {
    margin-top: 10px;
  }
  .packet .packet-description {
    min-height: 42px;
  }
  .packet .packet-play {
    font-size: 10px;
  }
  .batch-grid .packet:nth-child(4n+2) .packet-preview::before,
  .batch-grid .packet:nth-child(4n+2) .packet-preview::after {
    display: none;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-link {
    padding-inline: 6px;
  }
  .nav-container {
    padding-bottom: 10px;
  }
  .brand-title {
    font-size: 24px;
  }
}
body[data-theme] .game-page .score-box,
body[data-theme] .game-page .score-box.best,
body[data-theme] .game-page .score-box.hits {
  background: transparent;
  border: 0;
  box-shadow: none;
}
body[data-theme] .game-page .score-box + .score-box {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
body[data-theme] .game-page .target-section {
  background: transparent;
}
body[data-theme] .game-title h1 {
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: var(--ink);
}
body[data-theme] .game-page .control-btn {
  background: var(--primary);
  color: var(--on-primary);
}
body[data-theme] .game-page .control-btn.mode-btn {
  background: var(--surface);
  color: var(--ink);
}
body[data-theme] .game-page .target-section .target-number {
  color: var(--clay);
  -webkit-text-fill-color: var(--clay);
}
body[data-theme] .game-page .target-section .current-sum {
  color: var(--ink);
}
body[data-theme] .game-page .target-info {
  flex: 1;
}
body[data-theme] .game-page .target-section .target-number {
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: 100px;
  width: 100px;
  min-width: 100px;
  background: var(--clay);
  color: #fff4df;
  -webkit-text-fill-color: #fff4df;
  font-size: 64px;
  margin-top: 6px;
}
body[data-theme] .game-page .target-section .target-label {
  width: 100px;
  text-align: center;
}
body[data-theme] .game-page .sum-display {
  text-align: center;
  margin-right: 20px;
}
body[data-theme] .game-page .target-section {
  padding-block: 16px 20px;
}
body[data-theme] .game-page .number-tile,
body[data-theme] .game-page .letter-tile {
  color: #24483c;
  background: #fcf2dc;
}
body[data-theme] .game-page .number-tile.selected,
body[data-theme] .game-page .letter-tile.selected {
  background: #285548;
  color: #fff4de;
}
body[data-theme] .game-page .start-overlay,
body[data-theme] .game-page .pause-overlay {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
body[data-theme] .game-page .start-btn {
  background: var(--primary);
  color: var(--on-primary);
}
body[data-theme] .game-page .score-value {
  color: var(--ink);
}
.game-page .game-instructions {
  font-size: 13px;
}
.game-page .sumup-container,
.game-page .bingo-container {
  max-width: 560px;
}
.game-page .target-section {
  margin-top: 4px;
}
.sample-period {
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 13px;
}
.leaderboard-card > p[role=note] {
  padding: 16px 24px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.game-stats-card .game-info h3 a {
  text-decoration: none;
}
.game-stats-card .game-info h3 a:hover {
  text-decoration: underline;
}
.game-stats-card .game-info {
  margin: 0;
}
.game-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 500px) {
  body[data-theme] .game-page .target-section .target-number {
    height: 84px;
    width: 84px;
    min-width: 84px;
    font-size: 55px;
  }
  body[data-theme] .game-page .target-section .target-label {
    width: 84px;
  }
  .game-page .game-instructions {
    font-size: 11px;
  }
  .game-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-theme] .game-page .score-box + .score-box {
    padding-left: 10px;
  }
}
body[data-theme] .game-page .sumup-row,
body[data-theme] .game-page .number-column,
body[data-theme] .game-page .bingo-columns,
body[data-theme] .game-page .letterflow-area {
  background: var(--recess);
}
body[data-theme] .game-page .sumup-row::before {
  background:
    linear-gradient(
      to right,
      var(--recess),
      transparent);
}
body[data-theme] .game-page .sumup-row::after {
  background:
    linear-gradient(
      to left,
      var(--recess),
      transparent);
}
body[data-theme] .game-page .target-numbers,
body[data-theme] .game-page .game-timer {
  background: transparent;
}
body[data-theme] .game-page .bingo-columns {
  border-radius: 5px;
}
body[data-theme] .game-page .grid-cell {
  background: #c1b49866;
}
body[data-theme] .game-page .game-area {
  background: var(--surface);
}
body[data-theme] .game-page .grid-container {
  background: #daceb7;
}
.game-area#gameArea:has(.grid-container) {
  touch-action: none;
}
.batch-skip:not(:focus) {
  visibility: hidden;
}
.batch-skip:focus {
  visibility: visible;
}
.batch-daily .daily-badge {
  background: #efcc86;
}
.batch-daily .daily-progress .progress-bar {
  background: #65372955;
}
@media (max-width: 800px) {
  .batch-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .batch-daily .daily-game-info {
    max-width: 62%;
  }
}
@media (max-width: 500px) {
  .intro-copy h1 {
    font-size: 44px;
  }
  .batch-daily .daily-game-info {
    max-width: 70%;
  }
  .batch-daily .play-daily-btn {
    font-size: 13px;
    padding: 11px 12px;
  }
  .batch-daily .daily-preview {
    right: 11px;
  }
  .batch-daily .daily-status {
    gap: 6px;
  }
  .batch-daily .daily-progress {
    max-width: 54px;
  }
  .batch-daily .progress-info {
    font-size: 8px;
  }
  .batch-daily .daily-game-details > p {
    max-width: 180px;
  }
  .brand-title {
    font-size: 24px;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .brand-title {
    font-size: 21px;
  }
  .batch-mark {
    width: 32px;
    height: 32px;
  }
  .nav-container {
    gap: 5px;
  }
  .batch-daily .daily-progress {
    display: none;
  }
  .batch-daily .daily-preview {
    right: 3px;
    opacity: .85;
  }
  .batch-daily .daily-game-info {
    max-width: 72%;
  }
  .batch-daily .play-daily-btn {
    font-size: 12px;
  }
  .packet .puzzle-info h3 {
    font-size: 21px;
  }
  .intro-copy h1 {
    font-size: 40px;
  }
}
.stats-page .game-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.stats-page .game-stats-header {
  padding-bottom: 0;
  border: 0;
  margin-bottom: 20px;
}
.stats-page .game-stat-value {
  font-size: 28px;
}
.stats-page .game-stat-label {
  font-size: 10px;
}
.stats-page .overview-icon {
  background: transparent;
}
.game-page .word-display {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.game-page .word-letter {
  background: var(--recess);
  color: var(--ink);
  border-radius: 4px;
  font-family: var(--font-heading);
}
body[data-theme] .game-page .word-letter {
  background: var(--recess);
  color: var(--ink);
}
body[data-theme] .game-page .target-numbers .target-number {
  color: var(--ink);
  background: var(--surface);
  opacity: 1;
}
body[data-theme] .game-page .start-content h2,
body[data-theme] .game-page .start-content p {
  color: var(--ink);
}
body[data-theme] .game-page .pause-overlay span {
  color: var(--ink);
}
body[data-theme] .game-page .control-btn:disabled {
  opacity: .55;
}
.game-page .pause-btn {
  min-width: 110px;
}
.batch-daily[data-game=sumup] {
  background-color: #aa4c34;
  border-color: #8c3f2c;
}
.packet::before {
  width: 10px;
}
.intro-copy h1 {
  font-weight: 700;
}
.batch-daily::after {
  inset: 45% auto auto -16px;
  width: 32px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  z-index: 2;
  box-shadow: inset -2px 0 2px #623b2520;
}
.batch-daily::before {
  box-shadow: 2px 0 2px #622d2520;
}
.packet.packet-green {
  --packet-colour:#285449;
}
:root[data-theme=dark] .packet.packet-green {
  --packet-colour:#bdcba6;
}
:root[data-theme=dark] .packet.packet-gold {
  --packet-colour:#d2ad58;
}
@media (max-width: 500px) {
  .packet::before {
    width: 5px;
  }
  .batch-daily::after {
    left: -12px;
    width: 24px;
    height: 30px;
  }
}
.mini-tile.empty {
  background: #e4dbc6;
  box-shadow: none;
  border-color: transparent;
}
.mini-flow {
  width: 100%;
  max-width: 215px;
  padding-top: 9px;
}
.mini-flow-track {
  display: flex;
  gap: 5px;
  padding: 10px 5px;
  background: #eae2d0;
  border: 1px solid #d5c9ad;
  border-radius: 5px;
  overflow: hidden;
}
.mini-flow-track .mini-tile {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 18px;
}
.mini-word {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f1de;
  color: #24483c;
  border: 1px solid #d5c9ad;
  border-radius: 4px;
  padding: 8px 10px;
  margin-top: 8px;
  font: 500 18px var(--font-heading);
  letter-spacing: 2px;
}
.mini-submit {
  background: #285548;
  color: #fff2dc;
  border-radius: 3px;
  font: 12px var(--font-body);
  padding: 3px 5px;
}
.mini-motion {
  font: 9px var(--font-body);
  letter-spacing: 0;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.mini-bingo-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 6px;
  background: #e8dfcb;
  border-radius: 4px;
  width: 100%;
  max-width: 190px;
}
.mini-bingo-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  background: #ded4bc;
  padding: 4px;
}
.mini-bingo-column .mini-tile {
  width: 31px;
  height: 25px;
  aspect-ratio: auto;
  font-size: 14px;
  background: #fff1d5;
}
.mini-sum-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #e8dfcb;
  padding: 5px;
  border-radius: 4px;
}
.mini-sum-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 5px;
  background: #ded4bc;
  border-radius: 2px;
}
.mini-sum-row .mini-tile {
  aspect-ratio: 1.3;
  font-size: 15px;
  background: #fff1d5;
}
.mini-sum-row .mini-tile.chosen {
  background: #285548;
  color: #fff4de;
}
.packet-preview {
  height: 163px;
}
.cover-board {
  padding: 11px;
  background: #f8eed9;
  border: 1px solid #dac4a1;
  box-shadow: 0 8px 12px #47261e35;
  border-radius: 7px;
  width: 185px;
  color: #24483c;
}
.cover-board .mini-2048 {
  max-width: none;
}
.cover-board .mini-tile {
  font-size: 17px;
  border: 1px solid #cfbfa0;
}
.cover-board .mini-2048 .mini-tile {
  aspect-ratio: 1.1;
}
.cover-board .mini-motion {
  color: #6b6758;
}
.daily-preview .cover-board .mini-sum-label,
.daily-preview .cover-board .mini-targets {
  color: #5b614e;
  font-size: 9px;
}
.daily-preview .cover-board .mini-sum-label b {
  color: #24483c;
  font-size: 15px;
}
.cover-board .mini-bingo-columns {
  max-width: none;
}
.cover-board .mini-bingo-column .mini-tile {
  width: 30px;
  height: 23px;
  font-size: 13px;
}
.cover-board .mini-flow {
  padding-top: 0;
}
.cover-board .mini-flow-track .mini-tile {
  width: 28px;
  height: 28px;
  font-size: 16px;
}
.daily-preview {
  width: 185px;
  top: 42px;
  right: 27px;
  transform: rotate(5deg);
}
.daily-banner.batch-daily[data-game=letterflow] .daily-preview {
  width: 185px;
  top: 56px;
  transform: rotate(-5deg);
}
.daily-banner.batch-daily[data-game=bingo] .daily-preview {
  top: 38px;
}
.daily-banner.batch-daily[data-game=sumup] .daily-preview {
  top: 42px;
}
.cover-board .mini-sum-row {
  gap: 4px;
  padding: 3px;
}
.cover-board .mini-sum-row .mini-tile {
  font-size: 13px;
}
.cover-board .mini-targets {
  gap: 4px;
}
.cover-board .mini-targets b {
  padding: 2px 5px;
  font-size: 10px;
}
.batch-daily .daily-game-info {
  max-width: 59%;
}
.intro-copy {
  position: relative;
}
.intro-copy::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 58px;
  height: 90px;
  background: url(/assets/hestworks/puzzle-batch-fern.svg) center/contain no-repeat;
  opacity: .65;
  pointer-events: none;
  transform: rotate(12deg);
}
.batch-grid .packet:nth-child(4n+2) .packet-preview::before,
.batch-grid .packet:nth-child(4n+2) .packet-preview::after {
  display: none;
}
.packet .packet-play {
  position: relative;
}
.batch-grid .packet:nth-child(4n+1) .packet-play::after,
.batch-grid .packet:nth-child(4n+4) .packet-play::after {
  content: "";
  position: absolute;
  right: 33px;
  bottom: 4px;
  width: 27px;
  height: 40px;
  background: url(/assets/hestworks/puzzle-batch-fern.svg) center/contain no-repeat;
  opacity: .6;
  transform: rotate(25deg);
  pointer-events: none;
}
.batch-endnote .batch-sprig {
  width: 65px;
  height: 62px;
  background: url(/assets/hestworks/puzzle-batch-fern.svg) center/contain no-repeat;
}
.batch-sprig path {
  display: none;
}
@media (min-width: 1101px) {
  .intro-copy::after {
    right: 15px;
    bottom: -15px;
    width: 67px;
    height: 95px;
  }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .daily-preview,
  .daily-banner.batch-daily[data-game=letterflow] .daily-preview {
    width: 150px;
    right: 17px;
  }
  .cover-board {
    width: 150px;
    padding: 8px;
  }
  .cover-board .mini-flow-track .mini-tile {
    width: 23px;
    height: 23px;
    font-size: 13px;
  }
  .cover-board .mini-bingo-column .mini-tile {
    width: 24px;
  }
  .cover-board .mini-tile {
    font-size: 14px;
  }
  .cover-board .mini-motion {
    font-size: 7px;
  }
}
@media (max-width: 800px) {
  .batch-daily .daily-game-info {
    max-width: 60%;
  }
  .intro-copy::after {
    right: 0;
    bottom: 0;
    width: 60px;
    height: 92px;
  }
}
@media (max-width: 500px) {
  .packet-preview {
    height: 132px;
  }
  .mini-flow {
    padding-top: 5px;
  }
  .mini-flow-track {
    gap: 3px;
    padding: 7px 3px;
  }
  .mini-flow-track .mini-tile {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
  .mini-word {
    font-size: 14px;
    padding: 6px;
    margin-top: 6px;
  }
  .mini-motion {
    font-size: 7px;
    margin-top: 5px;
  }
  .mini-bingo-columns {
    gap: 4px;
    padding: 3px;
  }
  .mini-bingo-column {
    padding: 3px;
    gap: 3px;
  }
  .mini-bingo-column .mini-tile {
    width: 24px;
    height: 21px;
    font-size: 11px;
  }
  .mini-sum-rows {
    gap: 3px;
    padding: 3px;
  }
  .mini-sum-row {
    gap: 3px;
    padding: 3px;
  }
  .mini-sum-row .mini-tile {
    font-size: 12px;
    aspect-ratio: 1.2;
  }
  .cover-board {
    width: 110px;
    padding: 6px;
  }
  .daily-preview,
  .daily-banner.batch-daily[data-game=letterflow] .daily-preview {
    width: 110px;
    right: 12px;
    top: 63px;
  }
  .daily-banner.batch-daily[data-game=bingo] .daily-preview,
  .daily-banner.batch-daily[data-game=sumup] .daily-preview {
    top: 67px;
  }
  .daily-preview .cover-board .mini-tile {
    font-size: 11px;
  }
  .cover-board .mini-flow-track .mini-tile {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .cover-board .mini-flow-track {
    gap: 2px;
    padding: 5px 3px;
  }
  .cover-board .mini-word {
    font-size: 12px;
    padding: 5px;
  }
  .cover-board .mini-submit {
    font-size: 9px;
    padding: 2px 3px;
  }
  .cover-board .mini-motion {
    font-size: 5px;
  }
  .cover-board .mini-bingo-columns {
    gap: 3px;
    padding: 3px;
  }
  .cover-board .mini-bingo-column {
    padding: 2px;
    gap: 3px;
  }
  .cover-board .mini-bingo-column .mini-tile {
    width: 19px;
    height: 17px;
    font-size: 10px;
  }
  .daily-preview .cover-board .mini-targets {
    font-size: 6px;
    gap: 2px;
  }
  .cover-board .mini-targets b {
    font-size: 7px;
    padding: 1px 3px;
  }
  .daily-preview .cover-board .mini-sum-label {
    font-size: 6px;
  }
  .daily-preview .cover-board .mini-sum-label b {
    font-size: 11px;
  }
  .cover-board .mini-sum-row {
    gap: 3px;
    padding: 2px;
  }
  .batch-daily .daily-game-info {
    max-width: 63%;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    max-width: 175px;
  }
  .intro-copy::after {
    width: 49px;
    height: 70px;
    right: 5px;
    bottom: -5px;
  }
  .batch-grid .packet:nth-child(4n+1) .packet-play::after,
  .batch-grid .packet:nth-child(4n+4) .packet-play::after {
    width: 22px;
    height: 30px;
    right: 22px;
    opacity: .55;
  }
  .batch-endnote .batch-sprig {
    width: 40px;
    height: 47px;
  }
}
@media (max-width: 360px) {
  .cover-board {
    width: 91px;
  }
  .daily-preview,
  .daily-banner.batch-daily[data-game=letterflow] .daily-preview {
    width: 91px;
    right: 8px;
  }
  .cover-board .mini-flow-track .mini-tile {
    width: 13px;
    height: 13px;
    font-size: 8px;
  }
  .cover-board .mini-bingo-column .mini-tile {
    width: 16px;
    height: 15px;
  }
  .batch-daily .daily-game-info {
    max-width: 64%;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    max-width: 140px;
  }
  .mini-flow-track .mini-tile {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}
.mini-sum-row .mini-tile {
  height: 25px;
  aspect-ratio: auto;
}
.cover-board .mini-sum-row .mini-tile {
  height: 20px;
}
.cover-board .mini-sum-label {
  margin-bottom: 6px;
}
.intro-copy h1 {
  font-weight: 650;
  font-size: clamp(42px, 4.25vw, 61px);
  max-width: none;
}
.packet-preview .mini-motion {
  flex-shrink: 0;
}
.packet .packet-play {
  flex-shrink: 0;
}
.batch-grid .packet {
  min-height: 350px;
}
@media (max-width: 800px) {
  .intro-copy h1 {
    font-size: 49px;
    max-width: 520px;
  }
}
@media (max-width: 500px) {
  .intro-copy h1 {
    font-size: 44px;
    max-width: 330px;
  }
  .mini-sum-row .mini-tile {
    height: 20px;
  }
  .cover-board .mini-sum-row .mini-tile {
    height: 13px;
  }
  .batch-grid .packet {
    min-height: 327px;
  }
  .packet-preview {
    margin-bottom: 20px;
  }
}
@media (max-width: 360px) {
  .intro-copy h1 {
    font-size: 40px;
  }
  .mini-sum-row .mini-tile {
    height: 17px;
  }
  .packet .packet-description {
    min-height: 47px;
  }
}
.cover-double .mini-flow-track + .mini-flow-track {
  margin-top: 5px;
}
.cover-double .mini-flow-track {
  padding-block: 6px;
}
.cover-double .mini-flow-track .mini-tile {
  height: 23px;
  width: 23px;
  font-size: 14px;
}
@media (max-width: 500px) {
  .cover-double .mini-flow-track {
    padding-block: 4px;
  }
  .cover-double .mini-flow-track .mini-tile {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
}
.batch-sr-only,
#dailyGameDesc,
#challengeTypeBadge,
.batch-daily .daily-progress,
.week-heading p,
.packet-heading {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.batch-home-main {
  max-width: 1280px;
  margin: 21px auto 0;
  padding: 0 36px;
}
.nav-container {
  max-width: 1280px;
  padding: 24px 36px 18px;
  min-height: 100px;
  gap: 24px;
}
.nav-logo {
  display: grid;
  grid-template-columns: 112px auto;
  grid-template-rows: auto auto;
  column-gap: 13px;
  row-gap: 0;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.batch-mark {
  width: 112px;
  height: 72px;
  grid-row: 1/3;
  object-fit: contain;
}
.brand-title {
  font-size: 37px;
  font-weight: 650;
  letter-spacing: -1.4px;
  align-self: end;
}
.brand-tagline {
  display: block !important;
  border: 0;
  margin: 4px 0 0;
  padding: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.3;
  align-self: start;
  white-space: nowrap;
  color: var(--ink);
}
.nav-links {
  gap: 18px;
}
.nav-link {
  font-size: 15px;
  padding: 9px 0;
  border-radius: 0;
  color: var(--ink);
  position: relative;
}
.nav-link.active,
:root[data-theme=dark] .nav-link.active {
  background: transparent;
  color: var(--ink);
  font-weight: 650;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clay);
}
.nav-link:hover {
  background: transparent;
}
.nav-actions {
  gap: 15px;
}
.theme-picker {
  position: relative;
}
.theme-toggle {
  width: auto;
  height: 43px;
  padding: 0 13px;
  border-radius: 12px;
  gap: 9px;
  display: flex;
  font-size: 14px;
}
.theme-toggle i {
  color: #a37029;
  font-size: 20px;
}
.theme-chevron {
  color: var(--muted);
  font-size: 16px;
  margin-left: 6px;
}
.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 200;
  min-width: 130px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 5px;
  border-radius: 9px;
  box-shadow: 0 8px 20px #44332325;
}
.theme-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.theme-menu button[aria-pressed=true] {
  background: var(--recess);
}
.theme-menu button:hover {
  background: var(--recess);
}
.profile-btn {
  height: 43px;
  border-radius: 8px;
  background: #153f32;
  color: #fff3df;
  border: 1px solid #466753;
  padding: 0 23px;
  gap: 8px;
  box-shadow: 0 4px 7px #33402a16;
}
.profile-btn:hover {
  background: #1d4a3c;
  color: #fff3df;
}
.profile-btn span {
  font-size: 14px;
}
.is-guest .profile-btn i {
  display: none;
}
.batch-menu-toggle {
  display: none;
}
.batch-intro {
  grid-template-columns: .83fr 1.8fr;
  align-items: center;
  gap: 36px;
  margin-bottom: 20px;
  position: relative;
  isolation: isolate;
}
.intro-copy h1 {
  font-size: 52px;
  font-weight: 650;
  line-height: .99;
  letter-spacing: -1.9px;
  margin: 0 0 12px;
  max-width: 340px;
}
.intro-copy .date-badge {
  font-size: 24px;
  line-height: 1.25;
  color: #4d5849;
  max-width: none;
  padding: 0;
}
.intro-copy::after {
  display: none;
}
.batch-intro::before {
  content: "";
  position: absolute;
  left: -57px;
  bottom: -66px;
  width: 155px;
  height: 178px;
  background: url(/assets/hestworks/puzzle-batch-left-leaves.png) left bottom/contain no-repeat;
  z-index: -1;
  pointer-events: none;
  opacity: .95;
}
.daily-banner.batch-daily {
  min-height: 222px;
  padding: 22px 34px 21px 82px;
  border-radius: 10px;
  border: 1px solid #a36342;
  background: #ad4d30 url(/assets/hestworks/puzzle-batch-sleeve.png) center/cover no-repeat;
  box-shadow: 0 4px 3px #753b2514, 0 9px 15px #69492a28;
  overflow: hidden;
}
.batch-daily::before,
.batch-daily::after {
  display: none;
}
.batch-daily[data-game] {
  background-color: #ad4d30;
  border-color: #a36342;
}
.batch-daily .daily-badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff2dc;
  font-size: 13px;
  letter-spacing: 1.2px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.batch-daily .daily-content {
  margin-top: 5px;
  position: static;
}
.batch-daily .daily-game-info {
  margin-top: 0;
  max-width: 55%;
}
.batch-daily h2 {
  font-size: 57px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -1.7px;
  margin: 0;
}
.batch-daily .daily-game-details > #dailyTagline {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  max-width: none;
  white-space: normal;
}
.batch-daily .daily-status {
  display: block;
  margin-top: 19px;
}
.batch-daily .play-daily-btn {
  border: 1px solid #7f9a7b;
  border-radius: 9px;
  background: linear-gradient(#1c503f, #113e2e);
  box-shadow: 0 3px 6px #552b1d45;
  padding: 12px 26px;
  font: 600 19px/1.2 var(--font-heading);
  gap: 20px;
  color: #fff4df;
}
.daily-preview,
.daily-banner.batch-daily[data-game] .daily-preview {
  width: 282px;
  top: 40px;
  right: 35px;
  transform: none;
  opacity: 1;
  filter: drop-shadow(0 7px 5px #552b1d42);
}
.challenge-tiles {
  position: relative;
  height: 155px;
}
.challenge-tiles span {
  position: absolute;
  display: grid;
  place-items: center;
  left: 0;
  top: 21px;
  width: 96px;
  height: 110px;
  border-radius: 9px;
  background:
    linear-gradient(
      145deg,
      #fff9e8,
      #eee3ca);
  border: 1px solid #efe1bc;
  box-shadow: inset 0 0 0 3px #fff7e3, 0 4px 4px #4b2c1d25;
  color: #153c31;
  font: 600 62px/1 var(--font-heading);
  transform: rotate(-15deg);
}
.challenge-tiles span:nth-child(2) {
  left: 89px;
  top: 54px;
  z-index: 2;
  transform: rotate(11deg);
}
.challenge-tiles span:nth-child(3) {
  left: 178px;
  top: 17px;
  transform: rotate(12deg);
}
.challenge-merge span:nth-child(1) {
  color: #a84e30;
}
.challenge-merge span:nth-child(2) {
  color: #655224;
}
.challenge-merge span:nth-child(3) {
  color: #214c3b;
}
.challenge-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  padding-top: 20px;
  max-width: 280px;
}
.challenge-letters span {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      #dfebbe,
      #b0c28b);
  box-shadow: inset 0 0 0 2px #f6f0cf99, 0 4px 5px #492a1d25;
  color: #244a33;
  font: 600 31px var(--font-heading);
}
.challenge-targets {
  display: flex;
  gap: 12px;
  padding-top: 40px;
}
.challenge-targets span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      #f4d18a,
      #d7a044);
  border: 2px solid #ffe7ad;
  box-shadow: 0 5px 5px #492a1d35;
  color: #60431b;
  font: 600 33px var(--font-heading);
}
.batch-daily .daily-completed {
  margin: 12px 0 0;
  padding: 8px 0 0;
}
.batch-daily.completed {
  background-image: url(/assets/hestworks/puzzle-batch-sleeve.png);
}
.week-strip {
  position: relative;
  z-index: 1;
  background: linear-gradient(#fff7e9, #f7eddb);
  border: 1px solid #eee2cc;
  padding: 17px 28px;
  border-radius: 13px;
  box-shadow: 0 7px 12px #83613a16;
  gap: 30px;
  margin-bottom: 31px;
  min-height: 82px;
}
.week-heading {
  min-width: 150px;
}
.week-heading h2 {
  font-size: 25px;
  font-weight: 650;
  margin: 0;
}
.week-days {
  max-width: 620px;
  flex: 1;
}
.week-day {
  font-size: 13px;
  gap: 5px;
}
.week-mark {
  width: 27px;
  height: 27px;
  background: #e6deca;
  border: 1px solid #cfc5ac;
}
.week-day.is-today .week-mark {
  background: #a34b30;
  width: 22px;
  height: 22px;
  border: 3px solid #faf0dd;
  outline: 2px solid #a34b30;
  font-size: 0;
}
.week-day.is-complete .week-mark {
  background: #234e3d;
  border-color: #234e3d;
  font-size: 18px;
  color: #fff8e9;
}
.calendar-link {
  border-left: 1px solid var(--line);
  padding: 14px 0 14px 30px;
  text-decoration: none;
  font-size: 13px;
  min-height: 45px;
}
.calendar-link span {
  margin-left: 17px;
}
.catalogue-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}
.catalogue-heading h2 {
  font-size: 35px;
  line-height: 1.1;
  font-weight: 650;
  white-space: nowrap;
  letter-spacing: -1.3px;
  margin: 0 auto 0 0;
}
.game-search {
  width: 240px;
  flex: 1;
  min-width: 170px;
  padding: 0 14px;
  border-radius: 13px;
  background: #ffffff38;
  border-color: #dbceba;
}
.game-search input {
  font-size: 13px;
  padding: 10px 0;
}
.game-filters {
  gap: 9px;
  flex-wrap: nowrap;
}
.filter-chip {
  border-radius: 24px;
  background: #ffffff22;
  padding: 10px 16px;
  font-size: 12px;
  color: #223c32;
}
.filter-chip.active {
  background: #194938;
  color: #fff8e7;
  border-color: #194938;
}
.catalogue-tools {
  display: none;
}
.puzzles-grid.batch-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}
.batch-grid .packet {
  border: 1px solid #e3d5bd;
  border-radius: 7px;
  background: #fff6e4 url(/assets/hestworks/puzzle-batch-paper.svg);
  box-shadow: 0 4px 6px #60422217, 0 9px 14px #60422210;
  padding: 19px 21px 0 25px;
  min-height: 313px;
  gap: 0;
  overflow: hidden;
}
.packet::before {
  width: 10px;
  background: var(--packet-colour);
  box-shadow: inset -2px 0 1px #00000016, inset 2px 0 1px #ffffff30;
}
.packet.packet-clay {
  --packet-colour:#a4482f;
}
.packet.packet-green {
  --packet-colour:#22523d;
}
.packet.packet-gold {
  --packet-colour:#c3983c;
}
.packet.packet-lilac {
  --packet-colour:#a18bad;
}
.packet .puzzle-info h3 {
  color: #122c23;
  font-size: 35px;
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin: 0 0 6px;
}
.packet.packet-clay .puzzle-info h3 {
  color: #a4482f;
}
.packet .packet-description {
  color: #313b31;
  font: 14px/1.3 var(--font-body);
  margin: 0;
  min-height: 37px;
}
.packet-preview {
  height: 159px;
  margin: 13px 0 10px;
  max-width: 100%;
  width: 100%;
}
.packet .packet-play {
  border: 0;
  margin: auto -8px 0;
  padding: 9px 8px 13px;
  background: transparent;
  color: #214a36;
  justify-content: flex-start;
  gap: 13px;
  font: 600 18px var(--font-heading);
  min-height: 41px;
}
.packet.packet-clay .packet-play {
  color: #964029;
}
.packet.packet-gold .packet-play {
  color: #8d5d13;
}
.packet.packet-lilac .packet-play {
  color: #5e426c;
}
.packet .daily-indicator {
  font-size: 8px;
  right: 9px;
  top: 7px;
  padding: 2px 5px;
  opacity: .75;
}
.packet .packet-play::after,
.packet .packet-preview::before,
.packet .packet-preview::after {
  display: none !important;
}
.batch-endnote {
  font: 400 14px/1.4 var(--font-body);
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  color: #5d6255;
  margin: 29px 0 12px;
  gap: 3px;
}
.batch-endnote small {
  font: inherit;
  font-size: 12px;
}
.batch-endnote::before,
.batch-endnote::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 13%;
  max-width: 160px;
  height: 1px;
  background: #d7c9af;
}
.batch-endnote::before {
  right: calc(50% + 150px);
}
.batch-endnote::after {
  left: calc(50% + 150px);
}
.batch-home-main + .batch-footer {
  max-width: 1208px;
  padding: 16px 0 22px;
  margin-top: 8px;
  border: 0;
  justify-content: center;
}
.batch-home-main + .batch-footer > .footer-wordmark,
.batch-home-main + .batch-footer > p {
  display: none;
}
.batch-home-main + .batch-footer nav {
  font-size: 11px;
  gap: 20px;
  justify-content: center;
}
.batch-score-panel {
  display: flex;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 19px 15px;
  margin: 0 0 20px;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  gap: 0;
}
.batch-score {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1px;
  align-items: center;
}
.batch-score + .batch-score {
  border-left: 1px solid var(--line);
}
.batch-score .score-label {
  font: 400 15px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.batch-score > span:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.batch-score i {
  font-size: 24px;
  color: #b18a33;
}
.batch-score strong {
  font: 600 35px/1.2 var(--font-heading);
  color: var(--ink);
}
.game-page .game-header {
  margin-bottom: 18px;
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 42px;
}
.game-page .back-btn {
  position: absolute;
  left: 0;
  width: auto;
  gap: 9px;
  font-size: 16px;
}
.game-page .back-btn::after {
  content: "Back";
  font: 14px var(--font-body);
}
.game-page .game-title {
  flex: none;
  text-align: center;
  margin: 0;
}
.game-page .game-title h1 {
  font-size: 31px;
}
.game-page .xp-stats-bar {
  display: none;
}
.game-page .batch-score-panel.game-score {
  margin-left: 0;
  justify-content: space-evenly;
  gap: 0;
}
.batch-score-panel .score-box {
  flex: 1;
}
.game-page .sumup-container {
  display: flex;
  flex-direction: column;
  max-width: 470px;
}
.game-page .sumup-container .game-controls {
  order: 10;
}
.game-page .sumup-container .game-progress {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
body[data-theme] .game-page .sumup-container .target-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  position: relative;
  flex-wrap: nowrap;
}
body[data-theme] .game-page .sumup-container .target-info,
body[data-theme] .game-page .sumup-container .sum-display {
  padding: 16px 12px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0;
  text-align: center;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
body[data-theme] .game-page .sumup-container .target-section .target-number {
  background: none;
  width: auto;
  height: auto;
  min-width: 0;
  font-size: 76px;
  line-height: 1.1;
  font-weight: 600;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  color: #ab7c2e;
  -webkit-text-fill-color: #ab7c2e;
  margin: 0;
  display: block;
}
body[data-theme] .game-page .sumup-container .target-section .current-sum {
  font-size: 76px;
  line-height: 1.1;
  color: #567044;
  font-weight: 600;
  min-width: 0;
}
body[data-theme] .game-page .sumup-container .target-label,
body[data-theme] .game-page .sumup-container .sum-label {
  width: auto;
  font: 500 20px var(--font-heading);
  margin: 0 0 2px;
  text-align: center;
  color: var(--ink);
}
body[data-theme] .game-page .sumup-container .target-timer {
  bottom: -7px;
  height: 2px;
  opacity: .6;
}
body[data-theme] .game-page .sumup-container .sumup-area {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  margin: 0 0 16px;
}
.sumup-container .sumup-rows {
  height: 292px;
  gap: 12px;
}
.sumup-container .sumup-row,
body[data-theme] .game-page .sumup-container .sumup-row {
  background: transparent;
  border-radius: 0;
}
.sumup-container .sumup-row::before,
.sumup-container .sumup-row::after {
  display: none;
}
body[data-theme] .game-page .sumup-container .number-tile {
  width: 64px;
  height: 64px;
  border: 1px solid #dfceb1;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      #fff8e7,
      #f0e2c9);
  box-shadow: inset 0 0 0 2px #fff9ed, 0 3px 3px #3d2b1e20;
  color: #193e31;
  font: 600 36px var(--font-heading);
}
body[data-theme] .game-page .sumup-container .number-tile.selected {
  background:
    linear-gradient(
      135deg,
      #b7cea0,
      #8db073);
  border-color: #486940;
  color: #1c3926;
  box-shadow: inset 0 0 0 2px #dae4ba, 0 3px 3px #3d2b1e20;
}
.game-page .sumup-container .game-instructions {
  margin: 0 0 19px;
  padding: 0;
  color: var(--ink);
  text-align: center;
  font: 500 17px/1.4 var(--font-heading);
}
.sumup-container .game-instructions i {
  display: none;
}
.batch-rule-detail {
  display: block;
  font: 11px/1.5 var(--font-body);
  color: var(--muted);
  margin-top: 5px;
}
.sumup-container .game-instructions p {
  margin: 0;
}
.sumup-container .game-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin-bottom: 0;
}
body[data-theme] .game-page .sumup-container .pause-btn {
  width: 100%;
  justify-content: center;
  background: #b75a3d;
  border: 1px solid #c18363;
  border-radius: 12px;
  color: #fff6e3;
  padding: 18px;
  font: 600 23px var(--font-heading);
  box-shadow: 0 4px 5px #4e2c1f20;
}
.sumup-container .reset-btn {
  align-self: center;
  font: 12px var(--font-body);
  min-height: 35px;
  padding: 7px 15px;
}
.game-page .sumup-container .start-overlay {
  border: 1px solid var(--line);
  border-radius: 12px;
}
.game-page {
  padding-top: 20px;
}
.batch-score-panel .score-box.best .score-value {
  font-size: 35px;
}
.batch-score-panel .score-box .score-value {
  font-size: 35px;
}
.batch-score-panel .score-label {
  font-size: 13px;
}
:root[data-theme=dark] .week-strip {
  background: var(--surface);
}
:root[data-theme=dark] .intro-copy .date-badge {
  color: var(--text-secondary);
}
:root[data-theme=dark] .game-page .sumup-container .target-section .target-number {
  color: #e1b758;
  -webkit-text-fill-color: #e1b758;
}
:root[data-theme=dark] .game-page .sumup-container .target-section .current-sum {
  color: #c5dba1;
}
@media (max-width: 1100px) and (min-width: 801px) {
  .nav-container {
    padding-inline: 28px;
    gap: 18px;
  }
  .nav-logo {
    grid-template-columns: 82px auto;
    column-gap: 10px;
  }
  .batch-mark {
    width: 82px;
    height: 56px;
  }
  .brand-title {
    font-size: 30px;
  }
  .brand-tagline {
    font-size: 12px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 13px;
  }
  .nav-actions {
    gap: 10px;
  }
  .profile-btn {
    padding-inline: 17px;
  }
  .theme-toggle {
    padding-inline: 10px;
  }
  .batch-home-main {
    padding-inline: 28px;
  }
  .batch-intro {
    gap: 26px;
    grid-template-columns: .87fr 1.8fr;
  }
  .intro-copy h1 {
    font-size: 44px;
    max-width: 300px;
  }
  .intro-copy .date-badge {
    font-size: 20px;
  }
  .daily-banner.batch-daily {
    padding-left: 48px;
    min-height: 215px;
  }
  .batch-daily h2 {
    font-size: 47px;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    font-size: 20px;
  }
  .daily-preview,
  .daily-banner.batch-daily[data-game] .daily-preview {
    width: 215px;
    right: 20px;
    top: 45px;
  }
  .challenge-tiles {
    transform: scale(.75);
    transform-origin: left top;
  }
  .challenge-letters {
    gap: 7px;
    max-width: 210px;
  }
  .challenge-letters span {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .challenge-targets {
    gap: 8px;
  }
  .challenge-targets span {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }
  .batch-daily .play-daily-btn {
    font-size: 17px;
    padding: 11px 20px;
  }
  .catalogue-heading {
    flex-wrap: wrap;
    gap: 14px;
  }
  .catalogue-heading h2 {
    font-size: 33px;
  }
  .game-search {
    max-width: 280px;
  }
  .game-filters {
    width: 100%;
    justify-content: flex-end;
  }
  .week-heading {
    min-width: 120px;
  }
  .week-heading h2 {
    font-size: 22px;
  }
  .calendar-link {
    padding-left: 20px;
  }
  .week-strip {
    gap: 20px;
    padding-inline: 22px;
  }
  .week-day {
    font-size: 12px;
  }
  .packet .puzzle-info h3 {
    font-size: 31px;
  }
}
@media (max-width: 800px) {
  .nav-container {
    padding: 18px 24px;
    min-height: 90px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .nav-logo {
    grid-template-columns: 78px auto;
    column-gap: 11px;
    margin: 0 auto 0 0;
    flex-shrink: 1;
  }
  .batch-mark {
    width: 78px;
    height: 53px;
  }
  .brand-title {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .brand-tagline {
    font-size: 11px;
    margin-top: 3px;
  }
  .batch-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ink);
    border: 0;
    width: 44px;
    height: 44px;
    font-size: 26px;
    cursor: pointer;
    order: 2;
  }
  .nav-container:not(.menu-open) .nav-links,
  .nav-container:not(.menu-open) .nav-actions {
    display: none;
  }
  .nav-container.menu-open .nav-links {
    display: flex;
    order: 3;
    flex-basis: 100%;
    gap: 24px;
    justify-content: center;
    border-block: 1px solid var(--line);
    padding: 12px 0;
  }
  .nav-container.menu-open .nav-actions {
    display: flex;
    order: 4;
    flex-basis: 100%;
    justify-content: space-between;
    padding-top: 5px;
  }
  .nav-link {
    font-size: 14px;
  }
  .nav-actions .profile-btn span {
    display: inline;
  }
  .batch-home-main {
    padding-inline: 24px;
    margin-top: 21px;
  }
  .batch-intro {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-bottom: 19px;
  }
  .intro-copy h1 {
    max-width: 450px;
    font-size: 49px;
    line-height: 1.04;
    margin-bottom: 11px;
  }
  .intro-copy .date-badge {
    font-size: 22px;
  }
  .batch-intro::before {
    left: -30px;
    bottom: auto;
    top: 109px;
    width: 113px;
    height: 165px;
    opacity: .7;
  }
  .intro-copy {
    padding-bottom: 20px;
  }
  .daily-banner.batch-daily {
    padding: 25px 30px 25px 55px;
    min-height: 255px;
  }
  .batch-daily h2 {
    font-size: 53px;
  }
  .batch-daily .daily-game-info {
    max-width: 60%;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    font-size: 22px;
    max-width: 260px;
  }
  .daily-preview,
  .daily-banner.batch-daily[data-game] .daily-preview {
    width: 260px;
    right: 23px;
    top: 42px;
  }
  .challenge-tiles {
    transform: scale(.9);
    transform-origin: left top;
  }
  .batch-daily .daily-status {
    margin-top: 25px;
  }
  .batch-daily .play-daily-btn {
    font-size: 19px;
  }
  .week-strip {
    flex-wrap: wrap;
    gap: 17px;
    padding: 18px 20px;
    min-height: 112px;
    margin-bottom: 30px;
  }
  .week-heading {
    flex: 1;
    min-width: 0;
  }
  .week-heading h2 {
    font-size: 24px;
  }
  .week-days {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    gap: 9px;
  }
  .calendar-link {
    font-size: 12px;
    padding: 0;
    border: 0;
    min-height: 32px;
  }
  .catalogue-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 18px;
  }
  .catalogue-heading h2 {
    font-size: 33px;
    white-space: normal;
    margin: 0;
  }
  .game-search {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .game-filters {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .filter-chip {
    font-size: 12px;
    padding: 9px 15px;
  }
  .puzzles-grid.batch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .batch-grid .packet {
    padding: 19px 19px 0 25px;
    min-height: 318px;
  }
  .packet .puzzle-info h3 {
    font-size: 32px;
  }
  .packet .packet-description {
    font-size: 13px;
    min-height: 36px;
  }
  .packet-preview {
    height: 159px;
    margin: 13px 0 9px;
  }
  .packet .packet-play {
    font-size: 18px;
    padding-bottom: 13px;
    min-height: 43px;
  }
  .batch-home-main + .batch-footer {
    padding: 12px 0 18px;
    margin-inline: 24px;
  }
  .batch-home-main + .batch-footer nav {
    padding-top: 0;
    width: auto;
  }
  .game-page {
    padding-top: 18px;
  }
  .game-page .game-header {
    margin-bottom: 20px;
  }
  .game-page .game-title h1 {
    font-size: 28px;
  }
  .game-page .batch-score-panel {
    padding: 17px 12px;
  }
  .game-page .batch-score-panel .score-value,
  .batch-score strong {
    font-size: 32px;
  }
  .game-page .batch-score-panel .score-label {
    font-size: 14px;
  }
  .game-page + .batch-footer {
    display: none;
  }
  .game-page .sumup-container {
    max-width: 470px;
  }
  .sumup-container .sumup-rows {
    height: 280px;
  }
  .sumup-container .game-instructions {
    font-size: 16px;
  }
  .game-page .sumup-container .game-controls .pause-btn {
    font-size: 22px;
  }
  .game-page .sumup-container .target-section .target-number,
  .game-page .sumup-container .target-section .current-sum {
    font-size: 72px;
  }
}
@media (max-width: 500px) {
  .nav-container {
    padding: 17px 18px;
    min-height: 87px;
    gap: 10px;
  }
  .nav-logo {
    grid-template-columns: 70px auto;
    column-gap: 10px;
  }
  .batch-mark {
    width: 70px;
    height: 48px;
  }
  .brand-title {
    font-size: 26px;
    letter-spacing: -1px;
  }
  .brand-tagline {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .batch-menu-toggle {
    font-size: 25px;
    width: 40px;
    height: 44px;
    flex-shrink: 0;
  }
  .batch-home-main {
    padding-inline: 18px;
    margin-top: 20px;
  }
  .intro-copy {
    padding-bottom: 13px;
  }
  .intro-copy h1 {
    font-size: 44px;
    max-width: 330px;
    line-height: 1.02;
    margin-bottom: 9px;
  }
  .intro-copy .date-badge {
    font-size: 20px;
  }
  .batch-intro {
    gap: 22px;
  }
  .batch-intro::before {
    left: -23px;
    top: 114px;
    width: 86px;
    height: 128px;
    opacity: .7;
  }
  .daily-banner.batch-daily {
    padding: 23px 22px 24px 33px;
    min-height: 235px;
    border-radius: 9px;
    background-size: auto 100%;
    background-position: 55% center;
  }
  .batch-daily .daily-badge {
    font-size: 10px;
    letter-spacing: 1.1px;
  }
  .batch-daily .daily-game-info {
    max-width: 64%;
  }
  .batch-daily .daily-content {
    margin-top: 9px;
  }
  .batch-daily h2 {
    font-size: 39px;
    letter-spacing: -1px;
  }
  .batch-daily[data-game=letterflow] h2,
  .batch-daily[data-game=bingo] h2 {
    font-size: 33px;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    font-size: 18px;
    max-width: 185px;
    margin-top: 3px;
  }
  .daily-preview,
  .daily-banner.batch-daily[data-game] .daily-preview {
    width: 148px;
    top: 49px;
    right: 12px;
    opacity: 1;
  }
  .challenge-tiles {
    transform: scale(.52);
    transform-origin: left top;
    height: 100px;
  }
  .challenge-letters {
    padding-top: 9px;
    gap: 5px;
    max-width: 145px;
  }
  .challenge-letters span {
    width: 31px;
    height: 31px;
    font-size: 20px;
  }
  .challenge-targets {
    padding-top: 20px;
    gap: 5px;
  }
  .challenge-targets span {
    width: 43px;
    height: 43px;
    font-size: 22px;
  }
  .batch-daily .daily-status {
    margin-top: 27px;
  }
  .batch-daily .play-daily-btn {
    font-size: 16px;
    padding: 12px 17px;
    gap: 14px;
    border-radius: 7px;
  }
  .week-strip {
    border-radius: 11px;
    margin-bottom: 29px;
    padding: 16px 18px;
  }
  .week-heading h2 {
    font-size: 23px;
  }
  .week-day {
    font-size: 11px;
  }
  .week-mark {
    width: 25px;
    height: 25px;
  }
  .calendar-link {
    font-size: 11px;
  }
  .calendar-link span {
    margin-left: 6px;
  }
  .catalogue-heading h2 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .catalogue-heading {
    gap: 14px;
    margin-bottom: 18px;
  }
  .game-search {
    border-radius: 11px;
  }
  .game-search input {
    font-size: 13px;
    padding: 11px 0;
  }
  .game-filters {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .filter-chip {
    padding: 8px 10px;
    font-size: 10px;
    flex-shrink: 0;
  }
  .puzzles-grid.batch-grid {
    gap: 13px;
  }
  .batch-grid .packet {
    padding: 16px 12px 0 19px;
    min-height: 293px;
    border-radius: 6px;
  }
  .packet::before {
    width: 6px;
  }
  .packet .puzzle-info h3 {
    font-size: 26px;
    letter-spacing: -1px;
    margin-bottom: 7px;
  }
  .packet .packet-description {
    font-size: 11px;
    line-height: 1.3;
    min-height: 43px;
  }
  .packet-preview {
    height: 134px;
    margin: 9px 0 6px;
  }
  .packet .packet-play {
    font-size: 16px;
    padding: 8px 8px 12px;
    min-height: 40px;
    gap: 10px;
  }
  .packet .daily-indicator {
    font-size: 6px;
    top: 5px;
    right: 6px;
    padding: 1px 3px;
  }
  .mini-2048 {
    max-width: 118px;
  }
  .mini-2048 .mini-tile {
    font-size: 14px;
  }
  .mini-flow-track .mini-tile {
    width: 23px;
    height: 23px;
  }
  .mini-bingo-column .mini-tile {
    width: 23px;
    height: 22px;
  }
  .mini-sum-label {
    font-size: 8px;
  }
  .mini-sum-row .mini-tile {
    height: 20px;
  }
  .mini-motion {
    font-size: 6px;
  }
  .batch-endnote {
    font-size: 12px;
    margin: 26px 0 8px;
  }
  .batch-endnote small {
    font-size: 11px;
  }
  .batch-endnote::before,
  .batch-endnote::after {
    width: 10%;
    top: 8px;
  }
  .batch-endnote::before {
    right: calc(50% + 121px);
  }
  .batch-endnote::after {
    left: calc(50% + 121px);
  }
  .batch-home-main + .batch-footer {
    padding-top: 7px;
    margin-inline: 18px;
  }
  .batch-home-main + .batch-footer nav {
    font-size: 10px;
  }
  .game-page {
    padding: 14px 20px max(25px, env(safe-area-inset-bottom));
  }
  .game-page .game-header {
    margin-bottom: 16px;
    min-height: 37px;
  }
  .game-page .game-title {
    flex: none;
    width: auto;
  }
  .game-page .game-title h1 {
    font-size: 28px;
  }
  .game-page .back-btn {
    font-size: 15px;
    width: auto;
  }
  .game-page .back-btn::after {
    font-size: 13px;
  }
  .batch-score-panel {
    border-radius: 13px;
    padding: 15px 9px;
    margin-bottom: 17px;
  }
  .batch-score i {
    font-size: 21px;
  }
  .batch-score > span:last-child {
    gap: 9px;
  }
  .batch-score strong {
    font-size: 31px;
  }
  .batch-score .score-label {
    font-size: 14px;
  }
  body[data-theme] .game-page .sumup-container .target-section {
    gap: 13px;
    margin-bottom: 17px;
  }
  body[data-theme] .game-page .sumup-container .target-info,
  body[data-theme] .game-page .sumup-container .sum-display {
    padding: 14px 8px;
    min-height: 123px;
    border-radius: 13px;
  }
  body[data-theme] .game-page .sumup-container .target-section .target-number,
  body[data-theme] .game-page .sumup-container .target-section .current-sum {
    font-size: 68px;
  }
  body[data-theme] .game-page .sumup-container .target-label,
  body[data-theme] .game-page .sumup-container .sum-label {
    font-size: 19px;
  }
  .sumup-container .sumup-rows {
    height: 265px;
    gap: 9px;
  }
  body[data-theme] .game-page .sumup-container .number-tile {
    width: 62px;
    height: 62px;
    font-size: 34px;
    border-radius: 10px;
  }
  .game-page .sumup-container .game-instructions {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .batch-rule-detail {
    font-size: 10px;
  }
  .game-page .sumup-container .game-controls .pause-btn {
    padding: 17px;
    font-size: 22px;
    border-radius: 11px;
  }
  .sumup-container .game-controls {
    gap: 7px;
  }
  .game-page .sumup-container .reset-btn {
    font-size: 11px;
    padding: 7px 13px;
    min-height: 32px;
  }
  .batch-score-panel .score-box.best {
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 360px) {
  .nav-container {
    padding-inline: 16px;
    gap: 7px;
  }
  .nav-logo {
    grid-template-columns: 58px auto;
    column-gap: 7px;
  }
  .batch-mark {
    width: 58px;
    height: 43px;
  }
  .brand-title {
    font-size: 23px;
  }
  .brand-tagline {
    font-size: 9px;
  }
  .batch-menu-toggle {
    width: 35px;
    font-size: 23px;
  }
  .intro-copy h1 {
    font-size: 39px;
  }
  .intro-copy .date-badge {
    font-size: 18px;
  }
  .daily-banner.batch-daily {
    padding-left: 28px;
    min-height: 224px;
  }
  .daily-preview,
  .daily-banner.batch-daily[data-game] .daily-preview {
    width: 118px;
    right: 3px;
    top: 55px;
  }
  .challenge-tiles {
    transform: scale(.41);
  }
  .batch-daily h2 {
    font-size: 36px;
  }
  .batch-daily[data-game=letterflow] h2,
  .batch-daily[data-game=bingo] h2 {
    font-size: 29px;
  }
  .batch-daily .daily-game-details > #dailyTagline {
    font-size: 16px;
    max-width: 155px;
  }
  .batch-daily .play-daily-btn {
    font-size: 14px;
    padding-inline: 13px;
  }
  .challenge-letters {
    max-width: 115px;
    gap: 4px;
  }
  .challenge-letters span {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }
  .challenge-targets {
    gap: 3px;
  }
  .challenge-targets span {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .catalogue-heading h2 {
    font-size: 26px;
  }
  .game-filters {
    gap: 4px;
  }
  .filter-chip {
    font-size: 9px;
    padding: 8px 8px;
  }
  .batch-grid .packet {
    padding-left: 15px;
    padding-right: 10px;
    min-height: 279px;
  }
  .packet .puzzle-info h3 {
    font-size: 23px;
  }
  .packet .packet-description {
    font-size: 10px;
    min-height: 43px;
  }
  .mini-flow-track .mini-tile {
    width: 19px;
    height: 19px;
    font-size: 11px;
  }
  .mini-bingo-column .mini-tile {
    width: 18px;
    height: 20px;
    font-size: 10px;
  }
  .mini-sum-row .mini-tile {
    height: 18px;
  }
  .packet .packet-play {
    font-size: 15px;
  }
  .game-page {
    padding-inline: 17px;
  }
  body[data-theme] .game-page .sumup-container .number-tile {
    width: 58px;
    height: 58px;
    font-size: 31px;
  }
  .sumup-container .sumup-rows {
    height: 248px;
  }
  .batch-score strong {
    font-size: 29px;
  }
}
.batch-intro::before {
  left: -90px;
  bottom: -112px;
  width: 155px;
  height: 178px;
}
.daily-banner.batch-daily {
  background: #a95035;
  isolation: isolate;
}
.batch-daily::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: auto;
  border: 0;
  background: url(/assets/hestworks/puzzle-batch-sleeve.png) center/cover no-repeat;
  filter: saturate(.72) brightness(.97);
  opacity: 1;
  z-index: -1;
  box-shadow: none;
}
.batch-home-main + .batch-footer {
  display: none;
}
.mini-2048 {
  width: 100%;
  max-width: 168px;
}
.packet-preview {
  height: 171px;
}
.mini-flow-track .mini-tile {
  width: 36px;
  height: 36px;
  font-size: 21px;
}
.mini-word {
  font-size: 20px;
  padding: 9px 10px;
}
.mini-bingo-column .mini-tile {
  width: 32px;
  height: 30px;
  font-size: 16px;
}
.mini-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 3px 5px;
}
.mini-sum-row .mini-tile {
  width: 34px;
  height: 34px;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.mini-tile.chosen,
.mini-sum-row .mini-tile.chosen {
  background: #a4c187;
  color: #1c3926;
  border-color: #648352;
  box-shadow: inset 0 0 0 1px #dbe6bb;
}
.packet .mini-tile {
  border-radius: 5px;
}
.mini-flow-track .mini-tile {
  border-radius: 50%;
}
body[data-theme] .game-page .letter-tile.selected {
  background:
    linear-gradient(
      135deg,
      #b7cea0,
      #8db073);
  color: #1c3926;
  border-color: #648352;
}
.batch-home-main .packet.packet-green .puzzle-info h3 {
  color: #122c23;
}
@media (max-width: 800px) {
  .batch-intro::before {
    left: -35px;
    bottom: auto;
    top: 125px;
    width: 110px;
    height: 145px;
    opacity: .55;
  }
  .batch-daily::before {
    background-position: 60% center;
    background-size: auto 100%;
  }
  .packet-preview {
    height: 171px;
  }
}
@media (max-width: 500px) {
  .batch-intro::before {
    left: -24px;
    top: 113px;
    width: 83px;
    height: 115px;
    opacity: .6;
  }
  .packet-preview {
    height: 137px;
  }
  .mini-2048 {
    max-width: 118px;
  }
  .mini-flow-track .mini-tile {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
  .mini-word {
    font-size: 14px;
    padding: 6px;
  }
  .mini-bingo-column .mini-tile {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .mini-sum-row .mini-tile {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .mini-sum-row {
    padding: 3px;
    gap: 2px;
  }
  .batch-grid .packet {
    min-height: 291px;
  }
}
@media (max-width: 360px) {
  .mini-flow-track .mini-tile {
    width: 19px;
    height: 19px;
    font-size: 11px;
  }
  .mini-bingo-column .mini-tile {
    width: 19px;
    height: 21px;
  }
  .mini-sum-row .mini-tile {
    width: 19px;
    height: 19px;
    font-size: 11px;
  }
}
body[data-theme] .game-page .sumup-container .number-tile.wrong {
  background: #b5503f;
  border-color: #903829;
  box-shadow: inset 0 0 0 2px #db9d83;
  color: #fff4df;
}
body[data-theme] .game-page .sumup-container .number-tile.correct {
  background: #abc88c;
  border-color: #64804c;
  color: #1f3b29;
}
.nav-logo {
  min-width: 0;
}
.nav-container {
  min-width: 0;
}
.theme-menu button {
  min-height: 40px;
}
.nav-actions .profile-dropdown {
  max-width: calc(100vw - 36px);
}
.game-page .batch-score-panel .score-label {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.game-page .letterflow-container .batch-score-panel .score-box {
  min-width: 0;
}
body[data-theme] .game-page .sumup-container .number-tile.incorrect {
  background: #b5503f;
  border-color: #903829;
  box-shadow: inset 0 0 0 2px #db9d83;
  color: #fff4df;
}
body[data-theme] .game-page .sumup-container #currentSum.correct {
  color: #567044;
}
body[data-theme] .game-page .sumup-container #currentSum.over {
  color: #ac4837;
}
.packet .mini-motion {
  color: #736c5c;
}
.packet .mini-sum-label,
.packet .mini-targets {
  color: #526046;
}
.packet .mini-sum-label b {
  color: #21483e;
}
:root[data-theme=dark] .filter-chip {
  color: var(--ink);
}
:root[data-theme=dark] .filter-chip.active {
  color: #fff8e7;
  background: #28583f;
  border-color: #527b59;
}
.nav-actions .profile-btn i {
  font-size: 13px;
}
.batch-score .score-label {
  color: var(--ink);
}
.daily-banner.batch-daily[data-game=letterflow] {
  border-color: #365d42;
  background-color: #285747;
}
.daily-banner.batch-daily[data-game=bingo] {
  border-color: #8d6a2a;
  background-color: #a47d35;
}
.daily-banner.batch-daily[data-game=sumup] {
  border-color: #826c86;
  background-color: #806985;
}
.batch-daily[data-game=letterflow]::before {
  background-image: url(/assets/hestworks/puzzle-batch-sleeve-letterflow.png);
  filter: saturate(.88) brightness(1.02);
}
.batch-daily[data-game=bingo]::before {
  background-image: url(/assets/hestworks/puzzle-batch-sleeve-bingo.png);
  filter: saturate(.85) brightness(.78);
}
.batch-daily[data-game=sumup]::before {
  background-image: url(/assets/hestworks/puzzle-batch-sleeve-sumup.png);
  filter: saturate(.85) brightness(.94);
}
.batch-daily::before {
  background-image: none;
}
.batch-daily[data-game="2048"]::before {
  background-image: url(/assets/hestworks/puzzle-batch-sleeve.png);
}
@media (max-width: 800px) {
  .nav-container {
    padding-top: max(17px, env(safe-area-inset-top));
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

.packet-preview {height:180px}
.mini-sum-row .mini-tile {width:30px;height:30px}
:root[data-theme=dark] .batch-endnote {color:#c3c5b3}
@media(max-width:500px){
 .packet-preview{height:145px}
 .mini-sum-row .mini-tile{width:23px;height:23px}
 .batch-grid .packet{min-height:300px}
 .batch-daily[data-game=letterflow] h2,.batch-daily[data-game=bingo] h2{font-size:30px}
 .daily-banner.batch-daily[data-game=letterflow] .daily-preview,.daily-banner.batch-daily[data-game=bingo] .daily-preview{width:132px;right:12px;top:53px}
 .challenge-letters{max-width:132px;gap:5px}
 .challenge-letters span{width:28px;height:28px;font-size:19px}
 .challenge-targets span{width:39px;height:39px;font-size:20px}
 .batch-daily[data-game=letterflow] .daily-game-details>#dailyTagline,.batch-daily[data-game=bingo] .daily-game-details>#dailyTagline{font-size:17px;max-width:170px}
}
@media(max-width:360px){
 .batch-daily[data-game=letterflow] h2,.batch-daily[data-game=bingo] h2{font-size:25px}
 .daily-banner.batch-daily[data-game=letterflow] .daily-preview,.daily-banner.batch-daily[data-game=bingo] .daily-preview{width:110px;right:5px;top:54px}
 .challenge-letters{max-width:110px;gap:4px}
 .challenge-letters span{width:24px;height:24px;font-size:17px}
 .challenge-targets span{width:32px;height:32px;font-size:18px}
 .batch-daily[data-game=letterflow] .daily-game-details>#dailyTagline,.batch-daily[data-game=bingo] .daily-game-details>#dailyTagline{font-size:15px;max-width:130px}
 .mini-sum-row .mini-tile{width:19px;height:19px}
}
@media(max-width:360px){.daily-banner.batch-daily[data-game=sumup] .daily-preview{width:110px;right:0;top:54px}.challenge-sum{transform:scale(.38)}}

.batch-intro::before{display:none!important}.intro-copy{position:relative}.intro-botanical{display:block;position:absolute;top:calc(100% + 5px);left:calc(-1 * clamp(18px,(100vw - 1208px)/2,100px));width:clamp(118px,11vw,168px);height:clamp(175px,16vw,225px);object-fit:contain;object-position:top left;pointer-events:none;z-index:-1;max-width:none}.puzzles-grid.batch-grid{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:20px}.batch-grid .packet{padding:20px 22px 0 26px;min-height:355px}.packet .puzzle-info h3{font-size:34px;line-height:1.12;overflow-wrap:normal}.packet .packet-description{font-size:14px;line-height:1.4;min-height:40px;max-width:100%}.packet-preview{width:100%;max-width:215px;height:182px;margin:16px 0 18px}.packet .packet-play{min-height:59px;padding:14px 8px 17px;font-size:18px;position:relative;z-index:3;max-width:calc(100% - 55px)}.packet .packet-botanical{position:absolute;right:10px;bottom:8px;width:57px;height:78px;object-fit:contain;object-position:bottom right;pointer-events:none;z-index:2;opacity:.9}.mini-2048{max-width:168px}.mini-flow-track .mini-tile{width:34px;height:34px;font-size:20px}.mini-word{font-size:19px;padding:8px 10px}.mini-bingo-column .mini-tile{width:32px;height:30px;font-size:16px}.mini-sum-row .mini-tile{width:30px;height:30px;font-size:15px}.mini-motion{font-size:9px}.mini-targets{font-size:10px}.mini-targets b{font-size:11px}.mini-sum-label{font-size:10px}.mini-sum-label b{font-size:18px}
@media(max-width:800px){.intro-botanical{top:calc(100% + 5px);left:-24px;width:122px;height:177px;opacity:.85}.batch-grid .packet{min-height:350px}.packet .puzzle-info h3{font-size:32px}.packet .packet-description{font-size:14px;min-height:40px}.packet-preview{height:182px}.packet .packet-play{min-height:59px;font-size:18px}.packet .packet-botanical{width:59px;height:80px}}
@media(max-width:560px){.intro-botanical{left:-20px;width:119px;height:168px}.puzzles-grid.batch-grid{gap:19px}.batch-grid .packet{padding:21px 24px 0 27px;min-height:350px}.packet .puzzle-info h3{font-size:34px;letter-spacing:-1.1px}.packet .packet-description{font-size:15px;min-height:40px}.packet-preview{max-width:230px;height:183px;margin-top:15px;margin-bottom:17px}.mini-2048{max-width:175px}.mini-2048 .mini-tile{font-size:19px}.mini-flow-track .mini-tile{width:35px;height:35px;font-size:20px}.mini-word{font-size:20px}.mini-bingo-column .mini-tile{width:33px;height:31px;font-size:16px}.mini-sum-row .mini-tile{width:31px;height:31px;font-size:15px}.mini-motion{font-size:9px}.mini-targets{font-size:10px}.mini-targets b{font-size:11px}.mini-sum-label{font-size:10px}.mini-sum-label b{font-size:18px}.packet .packet-play{font-size:19px;min-height:61px}.packet .packet-botanical{right:15px;bottom:9px;width:67px;height:89px}.packet .daily-indicator{top:10px;right:12px;font-size:8px;padding:2px 5px}}
/* Measure the actual catalogue width so the branch reaches the viewport edge
   even when the centred page has a large outer margin. */
.batch-home-main { container-type: inline-size; }
.intro-botanical {
  left: calc((100cqw - 100vw) / 2 - 20px);
  width: clamp(220px, 18vw, 340px);
  height: clamp(300px, 24vw, 450px);
}
.packet .packet-botanical {
  right: -30px;
  bottom: 60px;
  width: 86px;
  height: 110px;
  transform: rotate(-60deg);
  transform-origin: bottom right;
}
.packet .packet-play { position: static; }
.packet .packet-play::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  border-radius: inherit;
}
.packet:has(.packet-play:focus-visible) {
  outline: 3px solid var(--ink, #214a36);
  outline-offset: 4px;
}
@media (max-width: 800px) {
  .intro-botanical { width: 180px; height: 255px; }
}
@media (max-width: 560px) {
  .intro-botanical { width: 160px; height: 230px; }
  .packet .packet-botanical { right: -32px; bottom: 66px; width: 94px; height: 124px; }
}
/* The actual goal belongs on the daily cover, beside its game artwork. */
#dailyBanner #dailyGameDesc {
  position: static !important;
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 9px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  font: 500 14px/1.4 var(--font-body);
  color: #fff4df;
}
#dailyBanner #dailyGameDesc strong { color: inherit; }
.batch-daily .daily-completed {
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}
.batch-daily .daily-completed strong { color: inherit; }
.modal-content.batch-results {
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  text-align: center;
}
.batch-results .modal-icon { width: 44px; height: 44px; margin: 0 auto 12px; font-size: 28px; }
.batch-results h2 { margin: 0 0 22px; font-size: 30px; }
.batch-results .final-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 26px; }
.batch-results .stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.batch-results .stat-item .stat-value { font: 600 30px/1.2 var(--font-heading); color: var(--ink); }
.batch-results .stat-item .stat-label { font: 400 13px/1.4 var(--font-body); color: var(--muted); }
.batch-results .modal-actions { display: flex; flex-direction: row; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.batch-results .modal-actions .modal-btn { flex: 1 1 150px; margin: 0; min-height: 46px; padding: 12px 16px; font: 600 15px/1.3 var(--font-body); }
.batch-results .modal-btn.primary { background: var(--primary); color: var(--on-primary); }
.batch-results .modal-btn.secondary { background: var(--recess); color: var(--ink); border: 1px solid var(--line); }
@media(max-width:560px) {
  #dailyBanner #dailyGameDesc { font-size: 12px; margin-top: 8px !important; }
  .batch-daily .daily-status { margin-top: 18px; }
  .modal-content.batch-results { padding: 24px 18px; }
  .batch-results .final-stats { gap: 8px; }
  .batch-results .stat-item .stat-value { font-size: 27px; }
}
/* Reset the old 300px decoration height so the cover includes its completion. */
.batch-daily::before { height: auto; min-height: 0; max-height: none; inset: 0; }
.batch-daily.completed .daily-content { opacity: 1; }
.batch-daily .daily-completed { position: relative; z-index: 1; padding-top: 12px; margin-top: 16px; }

.modal-stat .result-mode-note {
  font: 500 12px/1.4 var(--font-body);
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
}

.batch-daily .daily-game-details .daily-reward-note {
  margin: 5px 0 0;
  color: #fff4df;
  font: 500 13px/1.4 var(--font-body);
}
.batch-daily .daily-reward-note strong { color: inherit; }
.batch-daily.completed .daily-reward-note { display: none; }
.home-progress {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: -8px 0 25px;
  padding: 0 22px;
  color: var(--ink);
}
.home-progress > div { display: flex; align-items: baseline; gap: 10px; }
.home-progress span { font: 400 13px/1.4 var(--font-body); color: var(--muted); }
.home-progress strong { font: 600 21px/1.3 var(--font-heading); }
@media(max-width:560px) {
  .home-progress { justify-content: space-between; gap: 12px; padding: 0 3px; margin: -4px 0 23px; }
  .home-progress > div { flex-direction: column; gap: 2px; }
  .home-progress span { font-size: 12px; }
  .batch-daily .daily-game-details .daily-reward-note { font-size: 12px; }
}

/* A compact player menu, shared by every Puzzle Batch page. */
.profile-wrapper .profile-dropdown {
  width: 270px; max-width: calc(100vw - 32px); padding: 7px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 12px 35px #40312320; font: 400 14px/1.4 var(--font-body);
}
.profile-dropdown .dropdown-header { display: flex; align-items: center; gap: 11px; padding: 12px 10px 15px; margin: 0 0 5px; border-bottom: 1px solid var(--line); }
.profile-dropdown .dropdown-header > div { min-width: 0; }
.profile-dropdown .dropdown-name { display: block; overflow: hidden; text-overflow: ellipsis; font: 600 15px/1.4 var(--font-body); color: var(--ink); }
.profile-dropdown .dropdown-xp { display: block; margin-top: 3px; font: 400 13px/1.4 var(--font-body); color: var(--muted); }
.account-avatar,.player-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #e3e9d5; color: #285747; font: 600 18px var(--font-heading); }
.profile-dropdown .dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 39px; padding: 9px 11px; margin: 0; background: transparent; border: 0; border-radius: 6px; color: var(--ink); font: 400 14px/1.4 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.profile-dropdown .dropdown-item i { width: 17px; font-size: 13px; opacity: .7; }
.profile-dropdown .dropdown-item:hover,.profile-dropdown .dropdown-item:focus-visible { background: var(--recess); }
.profile-dropdown .dropdown-divider { margin: 6px 4px; height: 1px; background: var(--line); }
.profile-dropdown .account-sign-out { color: #944a35; }
.profile-btn .profile-label { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Account-backed rankings and player profiles. */
.social-page { max-width: 1208px; padding: 28px 28px 55px; margin: 0 auto; color: var(--ink); }
.social-page-heading { max-width: 680px; margin-bottom: 27px; }
.social-page-heading h1 { font: 650 clamp(38px,5vw,56px)/1.06 var(--font-heading); letter-spacing: -1.7px; margin: 8px 0 12px; }
.social-page-heading > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.6; }
.social-eyebrow { font: 600 11px/1.4 var(--font-body); letter-spacing: 1.4px; color: #8c6241; margin: 0 0 7px; }
.social-sign-in,.player-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px; }
.social-sign-in p { flex: 1; font-size: 14px; }
.player-summary .summary-label { font: 500 12px var(--font-body); color: var(--muted); flex-basis: 100%; }
#playerHandle { font: 600 25px var(--font-heading); overflow-wrap: anywhere; }
#playerCountry { color: var(--muted); font-size: 13px; }
#playerXP { margin-left: auto; font: 600 22px var(--font-heading); }
.player-summary > a { color: var(--ink); font-size: 13px; text-underline-offset: 3px; }
.social-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr); align-items: start; gap: 25px; }
.rank-panel,.social-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 12px #5e452b07; }
.rank-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.leaderboard-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.leaderboard-tabs button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 20px; padding: 9px 16px; font: 500 14px var(--font-body); cursor: pointer; }
.leaderboard-tabs button[aria-pressed=true] { background: #285747; color: #fff7e9; }
.social-refresh { width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.social-status { color: var(--muted); font: 400 13px/1.5 var(--font-body); margin: 12px 0; }
.social-status:empty { display: none; }
.rank-panel > .social-status { padding: 0 22px; margin: 17px 0; }
.social-rank-heading,.social-rank-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 17px 22px; }
.social-rank-heading { font: 500 11px var(--font-body); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-block: 1px solid var(--line); }
.social-rank-heading > :last-child { text-align: right; }
.social-rank-row { border-bottom: 1px solid #e9e1d1; }
.social-rank-row:last-child { border-bottom: 0; }
.social-rank-row.is-you { background: #ecf0e2; }
.social-rank { font: 600 21px var(--font-heading); color: #916d37; }
.social-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.social-player > span:not(.player-avatar) { min-width: 0; }
.social-player strong { display: block; overflow-wrap: anywhere; font: 500 14px/1.4 var(--font-body); }
.social-player small { display: block; margin-top: 3px; color: var(--muted); font: 400 11px/1.3 var(--font-body); }
.social-xp { font: 600 21px var(--font-heading); white-space: nowrap; }
.social-xp small { font: 400 11px var(--font-body); color: var(--muted); }
.you-label { border: 1px solid #b9c6ad; color: #285747; padding: 2px 5px; border-radius: 4px; font-size: 10px; }
.country-board-field { display: flex; align-items: center; gap: 12px; padding: 15px 22px 0; font-size: 13px; }
.social-sidebar { display: grid; gap: 24px; }
.social-panel { padding: 23px; scroll-margin-top: 24px; }
.social-panel h2 { font: 600 27px/1.2 var(--font-heading); margin: 0 0 19px; }
.social-panel h3 { font: 600 16px/1.3 var(--font-heading); margin: 25px 0 8px; }
.social-page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.social-page label { display: block; font: 500 13px var(--font-body); margin: 0 0 7px; }
.social-page input,.social-page select { width: 100%; min-width: 0; background: #fffaf0; border: 1px solid var(--line); border-radius: 7px; min-height: 42px; padding: 10px 11px; color: var(--ink); font: 400 14px var(--font-body); }
.social-page fieldset:disabled { opacity: .55; }
.social-help,.social-muted { font: 400 12px/1.5 var(--font-body); color: var(--muted); margin: 8px 0 18px; }
.friend-search-row { display: flex; gap: 7px; }
.social-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #285747; background: #285747; color: #fff7e9; padding: 11px 17px; border-radius: 7px; font: 500 14px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.social-button:disabled { opacity: .6; cursor: wait; }
.social-small-button { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 7px 9px; border-radius: 6px; font: 500 11px/1.3 var(--font-body); cursor: pointer; }
.social-small-button:disabled { opacity: .5; cursor: wait; }
.friend-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.friend-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.friend-row .player-avatar { width: 29px; height: 29px; flex-basis: 29px; font-size: 15px; }
.social-panel details { margin-top: 20px; font-size: 12px; color: var(--muted); }
.social-panel summary { cursor: pointer; }
@media(max-width:850px) { .social-layout { grid-template-columns: 1fr; }.social-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }.social-page { padding: 23px 24px 40px; } }
@media(max-width:560px) {
 .social-page { padding: 18px 18px 35px; }.social-sidebar { grid-template-columns: 1fr; }.social-panel { padding: 20px; }
 .rank-panel-heading { padding: 13px 12px; }.leaderboard-tabs { gap: 2px; }.leaderboard-tabs button { padding: 8px 13px; font-size: 13px; }
 .social-rank-heading,.social-rank-row { grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; padding: 14px 13px; }.social-player { gap: 7px; }.social-player strong { font-size: 12px; }.social-xp { font-size: 19px; }
 .social-rank-row .player-avatar { width: 29px; height: 29px; flex-basis: 29px; font-size: 16px; }.you-label { display: none; }
 .player-summary { padding: 18px; gap: 10px; }#playerHandle { font-size: 23px; }#playerXP { font-size: 20px; }
 .profile-btn .profile-label { max-width: 155px; }
}

/* Account save messages remain reachable on phones and desktop game screens. */
.cloud-save-notice{position:fixed;z-index:10000;bottom:18px;left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 32px));padding:16px 18px;background:#fffaf0;color:#294b40;border:1px solid #d7cdb8;border-radius:12px;box-shadow:0 8px 32px #203d3529;font:14px/1.5 "DM Sans",sans-serif}
.cloud-save-notice p{margin:0 0 10px}.cloud-save-notice button{padding:8px 12px;border:1px solid #c9c1ae;border-radius:7px;background:#f4eedf;color:#294b40;font:inherit;cursor:pointer;margin:0 8px 0 0}.cloud-save-notice button:hover{background:#e9e1ce}.cloud-save-notice button:focus-visible{outline:2px solid #294b40;outline-offset:3px}
