:root {
  --ink: #211910;
  --ink-soft: #34271b;
  --paper: #f5eddd;
  --paper-deep: #eadcc4;
  --desk: #cdb88f;
  --desk-dark: #9e7c53;
  --muted: #6f5945;
  --faint: #705b44;
  --dough: #d88b3d;
  --dough-light: #f0b866;
  --dough-dark: #9d5424;
  --red: #bc3d30;
  --green: #355b42;
  --line: rgba(33, 25, 16, 0.28);
  --shadow: 7px 8px 0 var(--ink);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --display: "Arial Black", Impact, Haettenschweiler, sans-serif;
  --mono: "Courier New", Courier, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--desk);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 247, 222, 0.65), transparent 26rem),
    repeating-linear-gradient(105deg, rgba(71, 45, 24, 0.035) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #dbc9a6, #b99a6d);
  font-family: var(--serif);
  line-height: 1.45;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Login */

.login-screen {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 42px 24px 58px;
}

.login-card {
  width: min(940px, 100%);
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.08fr);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 12px 14px 0 var(--ink);
  transform: rotate(-0.25deg);
}

.login-poster {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 26px 28px 30px;
  color: var(--paper);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--ink-soft);
  background-size: 22px 22px;
  border-right: 2px solid var(--ink);
}

.login-poster::after {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  border: 1px solid rgba(245, 237, 221, 0.32);
}

.poster-number,
.poster-copy {
  z-index: 1;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.poster-cookie {
  z-index: 1;
  width: min(285px, 78%);
  transform: rotate(6deg);
  filter: drop-shadow(13px 16px 0 rgba(0, 0, 0, 0.28));
  animation: poster-float 4s ease-in-out infinite;
}

.poster-copy {
  max-width: 20rem;
  line-height: 1.7;
}

.poster-cookie .cookie-shadow {
  fill: #120d09;
  transform: translate(8px, 9px);
}

.poster-cookie .cookie-body,
.cookie-button .cookie-body {
  fill: var(--dough);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.poster-cookie .cookie-shine,
.cookie-button .cookie-shine {
  fill: var(--dough-light);
}

.poster-cookie .chips ellipse,
.cookie-button .chips ellipse {
  fill: #3d291c;
}

.poster-cookie .chip-crack,
.cookie-button .chip-crack {
  fill: none;
  stroke: #a86830;
  stroke-width: 2;
  stroke-linecap: round;
}

.poster-cookie .bite,
.cookie-button .bite {
  fill: var(--paper-soft, #e4d3b4);
}

.poster-poster-bite,
.poster-cookie .bite {
  fill: var(--ink-soft);
}

.poster-cookie .bite-edge,
.cookie-button .bite-edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 7vw, 76px);
}

.login-panel h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-transform: uppercase;
}

.login-panel h1 span {
  color: var(--red);
}

.login-intro {
  max-width: 36rem;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 1.04rem;
}

#login-form {
  display: grid;
  gap: 9px;
}

#login-form label {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
}

.input-wrap > span {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 50px;
  padding: 10px 14px 10px 38px;
  color: var(--ink);
  background: rgba(255, 251, 240, 0.54);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  box-shadow: inset 0 -2px 0 rgba(33, 25, 16, 0.09);
}

.input-wrap input::placeholder {
  color: #a18c77;
}

.input-wrap input:focus {
  border-color: var(--red);
  background: #fff9eb;
}

.input-wrap:has(.reveal-button) input {
  padding-right: 70px;
}

.reveal-button {
  position: absolute;
  top: 50%;
  right: 11px;
  padding: 5px 7px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-50%);
  cursor: pointer;
}

.reveal-button:hover {
  color: var(--red);
}

.form-error {
  margin: 6px 0 2px;
  padding: 9px 11px;
  color: #7b241a;
  background: #f2d2c9;
  border-left: 4px solid var(--red);
  font-size: 0.88rem;
}

.primary-button {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 12px 17px;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--red);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease, background 100ms ease;
}

@media (hover: hover) {
  .primary-button:hover:not(:disabled) {
    background: #3b2b1c;
    box-shadow: 2px 2px 0 var(--red);
    transform: translate(2px, 2px);
  }
}

.primary-button:active:not(:disabled) {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.roster-note {
  margin: 24px 0 0;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
}

.roster-note code {
  padding: 1px 4px;
  color: var(--ink);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.9em;
}

.login-footer {
  position: absolute;
  bottom: 19px;
  margin: 0;
  color: rgba(33, 25, 16, 0.72);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Game frame */

.sheet {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 36px);
  margin: 18px auto;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.masthead {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 24px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 50%),
    var(--ink);
  border-bottom: 2px solid var(--ink);
}

.masthead-title {
  min-width: 0;
}

.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 0 0 9px;
  color: #cdbca1;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.masthead-meta span + span::before {
  content: "•";
  margin-right: 18px;
  color: var(--red);
}

.masthead h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-transform: uppercase;
}

.masthead h1 span {
  color: #df5b49;
}

.masthead-title > p:last-child {
  margin: 10px 0 0;
  color: #d8c8af;
  font-style: italic;
}

.account-strip {
  display: grid;
  grid-template-columns: auto auto;
  align-content: space-between;
  justify-items: end;
  gap: 11px 18px;
  min-width: 255px;
}

.connection-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cdbca1;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-state > span,
.live-badge > span {
  width: 7px;
  height: 7px;
  background: #74b889;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(116, 184, 137, 0.16);
}

.connection-state.saving > span {
  background: #e5b761;
  animation: pulse 800ms ease infinite;
}

.connection-state.error > span {
  background: #df5b49;
}

.account-chip {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: right;
}

.account-chip small,
.account-chip strong {
  display: block;
}

.account-chip small {
  color: #a9977c;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-chip strong {
  max-width: 140px;
  overflow: hidden;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--dough-light);
  border: 1px solid var(--paper);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.text-button,
.mini-button {
  padding: 5px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* "Log out" sits on the dark masthead. */
.text-button {
  color: #cdbca1;
}

/* "Refresh" sits on paper, so it needs ink instead of parchment. */
.mini-button {
  color: var(--muted);
}

@media (hover: hover) {
  .text-button:hover {
    color: var(--paper);
    border-bottom-color: var(--red);
  }

  .mini-button:hover {
    color: var(--red);
    border-bottom-color: var(--red);
  }
}

.game-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 240px minmax(340px, 1fr) 345px;
}

.panel,
.click-stage {
  min-width: 0;
  padding: 24px 21px;
}

.counter-panel {
  display: flex;
  flex-direction: column;
  border-right: 2px solid var(--ink);
}

.section-heading,
.store-heading,
.secret-heading,
.stage-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2,
.store-heading h2,
.secret-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  color: var(--green);
  border: 1px solid rgba(53, 91, 66, 0.45);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-count {
  margin: 34px 0 0;
  font-family: var(--mono);
  font-size: clamp(2.8rem, 5.5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.86;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.cookie-unit {
  margin: 6px 0 27px;
  color: var(--muted);
  font-style: italic;
}

.ledger-list {
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ledger-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
}

.ledger-list div + div {
  border-top: 1px solid var(--line);
}

.ledger-list dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.ledger-list dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flavor-card {
  position: relative;
  margin-top: 23px;
  padding: 16px 14px 14px 32px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--red);
}

.flavor-card > span {
  position: absolute;
  top: 14px;
  left: 11px;
  color: var(--red);
}

.flavor-card p {
  min-height: 4.7em;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1.55;
}

.save-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: auto 0 0;
  padding-top: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.save-note > span {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

.save-note.pending > span {
  background: #c68b35;
  animation: pulse 700ms ease infinite;
}

.save-note.error {
  color: var(--red);
}

.save-note.error > span {
  background: var(--red);
}

.click-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: 28px;
  background:
    radial-gradient(circle at center, rgba(218, 143, 65, 0.14), transparent 42%),
    linear-gradient(rgba(33, 25, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 25, 16, 0.035) 1px, transparent 1px);
  background-size: auto, 25px 25px, 25px 25px;
}

.click-stage::before,
.click-stage::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  opacity: 0.28;
  pointer-events: none;
}

.click-stage::before {
  top: 24px;
  left: 24px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.click-stage::after {
  right: 24px;
  bottom: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stage-topline {
  width: 100%;
  align-items: center;
  margin-bottom: 18px;
}

.stage-topline .eyebrow,
.stage-topline p {
  margin: 0;
}

.session-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.press-label {
  position: relative;
  z-index: 2;
  margin: 0 0 -12px;
  font-size: 1.2rem;
  font-style: italic;
}

.press-label span {
  color: var(--red);
}

.cookie-button {
  position: relative;
  z-index: 2;
  width: min(315px, 70vw, 48vh);
  aspect-ratio: 236 / 244;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 70ms ease, filter 160ms ease;
}

.cookie-button svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(8px 12px 0 rgba(33, 25, 16, 0.15));
  transition: filter 120ms ease;
}

.cookie-button .cookie-shadow {
  fill: var(--ink);
  transform: translate(8px, 9px);
}

@media (hover: hover) {
  .cookie-button:hover {
    transform: translateY(-5px) rotate(-1.5deg);
    filter: saturate(1.08);
  }

  .cookie-button:hover svg {
    filter: drop-shadow(9px 18px 0 rgba(33, 25, 16, 0.16));
  }
}

.cookie-button:active {
  transform: translate(7px, 10px) scale(0.985);
}

button.cookie-button:focus-visible {
  outline: 3px solid var(--ink) !important;
  outline-offset: 4px;
  border-radius: 16px;
}

button.cookie-button:focus-visible .cookie-aura {
  opacity: 1;
  box-shadow: none;
}

.cookie-aura {
  position: absolute;
  inset: 8%;
  z-index: 0;
  border-radius: 50%;
  background: rgba(240, 184, 102, 0.32);
  filter: blur(24px);
  transition: transform 180ms ease, opacity 180ms ease;
}

@media (hover: hover) {
  .cookie-button:hover .cookie-aura {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

.cookie-shadow-ground {
  position: absolute;
  z-index: 0;
  left: 18%;
  right: 11%;
  bottom: 1%;
  height: 12%;
  background: rgba(33, 25, 16, 0.15);
  border-radius: 50%;
  filter: blur(8px);
}

.next-signal {
  position: relative;
  z-index: 3;
  width: min(330px, 90%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(245, 237, 221, 0.84);
  border: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.next-signal > span {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.2s ease infinite;
}

.next-signal strong {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-signal em {
  color: var(--faint);
  font-style: normal;
}

.desktop-hint {
  margin: 10px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.shop-panel {
  padding: 0;
  border-left: 2px solid var(--ink);
  overflow: hidden;
}

.panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--ink);
}

.panel-tab {
  min-height: 49px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--paper-deep);
  border: 0;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
}

.panel-tab + .panel-tab {
  border-left: 1px solid var(--ink);
}

.panel-tab.active {
  color: var(--paper);
  background: var(--ink);
}

.panel-tab span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  margin-left: 4px;
  color: var(--ink);
  background: var(--dough-light);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.57rem;
}

#store-view,
#scores-view {
  padding: 20px 20px 24px;
}

.store-heading,
.secret-heading {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.price-note {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
}

.shop-list,
.egg-list {
  display: grid;
}

.shop-row,
.egg-row {
  position: relative;
  width: 100%;
  display: block;
  padding: 10px 8px 9px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color 100ms ease, background 100ms ease, padding 100ms ease;
}

@media (hover: hover) {
  .shop-row:hover:not(:disabled),
  .egg-row:hover:not(:disabled) {
    padding-inline: 12px 4px;
    color: var(--paper);
    background: var(--ink);
  }
}

.shop-row:disabled,
.egg-row:disabled {
  cursor: not-allowed;
}

.shop-row.locked .name,
.shop-row.locked .meta {
  color: var(--faint);
}

.row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 9px;
}

.name {
  min-width: 0;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

.shop-row .tag {
  display: inline-block;
  margin-left: 5px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.05em;
  vertical-align: 1px;
}

.shop-row.bloat .name {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.shop-row.doas:not(:disabled) {
  box-shadow: inset 4px 0 0 var(--red);
  padding-left: 12px;
}

.meta {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.owned {
  margin-right: 7px;
  color: var(--faint);
  font-weight: 400;
}

.desc {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

@media (hover: hover) {
  .shop-row:hover:not(:disabled) .desc,
  .shop-row:hover:not(:disabled) .owned,
  .egg-row:hover:not(:disabled) .desc,
  .egg-row:hover:not(:disabled) .owned {
    color: #d9c4a6;
  }
}

.secret-heading {
  margin-top: 24px;
  border-bottom-color: var(--red);
}

.secret-heading > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--red);
  font-family: var(--display);
}

.empty-eggs {
  margin: 0;
  padding: 15px 4px;
  color: var(--faint);
  font-size: 0.75rem;
  font-style: italic;
}

.egg-row {
  overflow: hidden;
  background: #eee1c8;
  border: 0;
  box-shadow: inset 4px 0 0 var(--red);
}

.egg-row + .egg-row {
  margin-top: 6px;
}

.egg-row.claimed {
  background: transparent;
  box-shadow: inset 4px 0 0 var(--green);
  cursor: default;
}

.egg-row .name::after {
  content: "NEW";
  margin-left: 6px;
  padding: 2px 4px;
  color: var(--paper);
  background: var(--red);
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

.egg-row.claimed .name::after {
  content: "FOUND";
  background: var(--green);
}

.egg-effect {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 5px;
  color: #71300d;
  background: var(--dough-light);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
}

.score-heading {
  align-items: center;
}

.leaderboard {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ranking;
}

.leader-row {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

.leader-row.current {
  margin-inline: -9px;
  padding-inline: 9px;
  background: var(--paper-deep);
  box-shadow: inset 4px 0 0 var(--red);
}

.rank {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.leader-name {
  min-width: 0;
}

.leader-name strong,
.leader-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-name strong {
  font-size: 0.85rem;
}

.leader-name small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.leader-score {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.score-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.5;
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 14px 22px 15px;
  color: #cbbb9f;
  background: var(--ink);
  font-size: 0.78rem;
}

.game-footer p {
  margin: 0;
}

.game-footer p:first-child strong,
.game-footer p:first-child span {
  display: block;
}

.game-footer p:first-child strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.game-footer p:first-child span {
  margin-top: 2px;
  font-style: italic;
}

.game-footer p:last-child {
  font-family: var(--mono);
  font-size: 0.61rem;
  text-align: right;
  text-transform: uppercase;
}

.mobile-nav {
  display: none;
}

/* Single-view helpers (visible only when the bottom nav is active). */

.mobile-balance,
.bake-balance,
.bake-hint {
  display: none;
}

/* Effects and dialogs */

.floating-number,
.crumb {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  user-select: none;
}

.floating-number {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.08rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 var(--paper);
  animation: float-up 700ms cubic-bezier(.2, .7, .3, 1) forwards;
}

.crumb {
  width: 7px;
  height: 5px;
  background: #3d291c;
  border-radius: 45% 55% 40% 60%;
  animation: crumb-drop 900ms cubic-bezier(.3, .7, .5, 1) forwards;
}

.egg-dialog {
  position: fixed;
  width: min(480px, calc(100% - 32px));
  margin: auto;
  padding: 42px 38px 34px;
  color: var(--ink);
  background:
    linear-gradient(rgba(33, 25, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 25, 16, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 20px 20px, 20px 20px, auto;
  border: 3px solid var(--red);
  box-shadow: 9px 11px 0 var(--ink);
  text-align: center;
}

.egg-dialog[open] {
  animation: stamp-in 360ms cubic-bezier(.15, 1.25, .35, 1);
}

.egg-dialog::backdrop {
  background: rgba(23, 16, 10, 0.72);
  backdrop-filter: blur(3px);
}

.dialog-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 25px;
  background: rgba(226, 197, 126, 0.78);
  border: 1px solid rgba(95, 65, 33, 0.32);
  transform: translateX(-50%) rotate(-3deg);
}

.dialog-close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 1.5rem;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--red);
}

.egg-dialog h2 {
  margin: 0;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.dialog-message {
  margin: 19px auto 0;
  max-width: 30rem;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
}

.dialog-effect {
  display: inline-block;
  margin: 18px 0 0;
  padding: 6px 10px;
  color: #71300d;
  background: var(--dough-light);
  border: 1px solid var(--dough-dark);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-button {
  width: 100%;
  margin-top: 24px;
  justify-content: center;
}

.toast {
  position: fixed;
  z-index: 120;
  top: 22px;
  left: 50%;
  max-width: min(470px, calc(100% - 30px));
  padding: 11px 16px;
  color: var(--paper);
  background: var(--ink);
  border-left: 5px solid var(--red);
  box-shadow: 6px 7px 0 rgba(33, 25, 16, 0.3);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  border-left-color: #e06858;
}

.sr-only {
  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;
}

@keyframes poster-float {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.36; }
}

@keyframes float-up {
  to { opacity: 0; transform: translateY(-62px) rotate(-3deg); }
}

@keyframes crumb-drop {
  to { opacity: 0; transform: translateY(34vh) rotate(170deg); }
}

@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.28) rotate(2deg); }
  to { opacity: 1; transform: scale(1) rotate(-0.5deg); }
}

/* Responsive */

@media (max-width: 1020px) {
  .game-grid {
    grid-template-columns: 220px minmax(320px, 1fr) 310px;
  }

  /* The shop panel is edge-to-edge (tabs + views carry their own padding). */
  .counter-panel,
  .click-stage {
    padding-inline: 17px;
  }

  .masthead {
    padding-inline: 20px;
  }

  .account-strip {
    min-width: 220px;
  }
}

@media (max-width: 900px) {
  .sheet {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-width: 0 0 2px;
    box-shadow: none;
  }

  .masthead {
    align-items: flex-start;
  }

  .account-strip {
    min-width: auto;
  }

  .connection-state {
    justify-self: end;
  }

  .game-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .click-stage {
    grid-column: 1;
    grid-row: 1;
    min-height: 620px;
    border-right: 2px solid var(--ink);
  }

  .counter-panel {
    grid-column: 1;
    border-top: 2px solid var(--ink);
    border-right: 0;
  }

  .counter-panel .flavor-card {
    min-height: auto;
  }

  .counter-panel .flavor-card p {
    min-height: 0;
  }

  .shop-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 740px) {
  .login-screen {
    padding: 24px 15px 48px;
  }

  .login-card {
    display: block;
    min-height: 0;
    transform: none;
  }

  .login-poster {
    min-height: 215px;
    padding: 20px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .poster-cookie {
    position: absolute;
    top: 28px;
    right: 25px;
    width: 145px;
    transform: rotate(6deg);
  }

  .poster-copy {
    max-width: 12rem;
    text-align: left;
  }

  .login-panel {
    padding: 36px 27px 32px;
  }

  .login-footer {
    position: static;
    margin-top: 20px;
    text-align: center;
  }

  .sheet {
    width: 100%;
  }

  .masthead {
    display: block;
    padding: 17px 16px;
  }

  .masthead-meta span:nth-child(2),
  .masthead-meta span:nth-child(3) {
    display: none;
  }

  .masthead-title > p:last-child {
    max-width: 32rem;
  }

  .account-strip {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 237, 221, 0.22);
  }

  .account-chip {
    grid-column: auto;
    grid-row: 1;
    text-align: left;
  }

  .text-button {
    grid-column: 2;
    grid-row: 1;
  }

  .connection-state {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .game-grid {
    display: flex;
    flex-direction: column;
  }

  .click-stage {
    min-height: 500px;
    order: 1;
    border-right: 0;
  }

  .cookie-button {
    width: min(285px, 76vw);
  }

  .counter-panel {
    order: 2;
  }

  .shop-panel {
    order: 3;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .game-footer {
    align-items: flex-start;
  }

  .game-footer p:last-child {
    display: none;
  }

  .egg-dialog {
    padding-inline: 26px;
  }
}

@media (max-width: 410px) {
  .login-poster {
    min-height: 190px;
  }

  .login-panel {
    padding-inline: 21px;
  }

  .login-panel h1 {
    font-size: 3.1rem;
  }

  .click-stage {
    min-height: 450px;
  }

  .desktop-hint {
    display: none;
  }

  #store-view,
  #scores-view {
    padding-inline: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Single-view (mobile) interface.
 *
 * Active whenever `html[data-mobile-view]` exists (phones, narrow
 * viewports). One panel is shown at a time and the bottom nav switches
 * between Bake / Stats / Store / Scores. Desktop is unchanged: without
 * the attribute the multi-column layout applies.
 */

html[data-mobile-view] {
  --mobile-nav-h: 70px;
  background: var(--desk);
}

/* Login: stack without overlapping the cookie illustration. */

html[data-mobile-view] .login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px 14px calc(24px + env(safe-area-inset-bottom));
}

html[data-mobile-view] .login-card {
  width: min(560px, 100%);
  min-height: 0;
  display: block;
  transform: none;
  box-shadow: 7px 8px 0 var(--ink);
}

html[data-mobile-view] .login-poster {
  min-height: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-right: 0;
  border-bottom: 2px solid var(--ink);
  text-align: center;
}

html[data-mobile-view] .poster-cookie {
  position: static;
  width: min(128px, 40vw);
  transform: rotate(6deg);
}

html[data-mobile-view] .poster-copy {
  max-width: 26rem;
  text-align: center;
}

html[data-mobile-view] .login-panel {
  padding: 30px 22px 26px;
}

html[data-mobile-view] .login-panel h1 {
  font-size: clamp(2.6rem, 13vw, 4rem);
}

html[data-mobile-view] .input-wrap input {
  font-size: 16px;
}

/* Frame: room for the fixed nav, no double padding elsewhere. */

html[data-mobile-view] .sheet {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
  border-width: 0;
  box-shadow: none;
}

/* Masthead: compact stacked header with an always-visible balance.
 * The base flex rule's `justify-content: space-between` would shrink the
 * grid track to max-content, so pin the single column to full width. */

html[data-mobile-view] .masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px 12px;
}

html[data-mobile-view] .masthead h1 {
  font-size: clamp(1.9rem, 9vw, 2.9rem);
  line-height: 0.9;
}

html[data-mobile-view] .mobile-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 8px 0 0;
  padding: 7px 10px;
  color: var(--paper);
  background: rgba(245, 237, 221, 0.08);
  border: 1px solid rgba(245, 237, 221, 0.28);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

html[data-mobile-view] .mobile-balance strong {
  font-size: 1.02rem;
}

html[data-mobile-view] .mobile-balance-unit {
  color: #d8c8af;
}

html[data-mobile-view] .mobile-balance-sep {
  color: rgba(245, 237, 221, 0.45);
}

html[data-mobile-view] .mobile-balance #mobile-balance-cps {
  color: #e8d9bd;
}

html[data-mobile-view] .account-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 237, 221, 0.22);
}

html[data-mobile-view] .text-button,
html[data-mobile-view] .mini-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
}

html[data-mobile-view] .account-chip {
  min-width: 0;
  text-align: left;
}

html[data-mobile-view] .account-chip strong {
  max-width: 32vw;
}

html[data-mobile-view] .account-chip small {
  display: none;
}

html[data-mobile-view] .connection-state {
  order: 3;
  flex-basis: 100%;
  font-size: 0.6rem;
}

/* View switching: exactly one panel is visible. */

html[data-mobile-view] .game-grid {
  display: block;
}

html[data-mobile-view] .counter-panel,
html[data-mobile-view] .click-stage,
html[data-mobile-view] .shop-panel {
  display: none;
  border: 0;
}

html[data-mobile-view][data-mobile-view="bake"] .click-stage {
  display: flex;
}

html[data-mobile-view][data-mobile-view="stats"] .counter-panel {
  display: flex;
}

html[data-mobile-view][data-mobile-view="store"] .shop-panel,
html[data-mobile-view][data-mobile-view="scores"] .shop-panel {
  display: block;
}

/* Bake: balance on top so tapping is never blind. */

html[data-mobile-view] .click-stage {
  min-height: calc(100vh - 260px);
  min-height: calc(100dvh - 260px);
  justify-content: flex-start;
  gap: 6px;
  padding: 22px 16px 28px;
  overscroll-behavior: contain;
}

html[data-mobile-view] .click-stage::before,
html[data-mobile-view] .click-stage::after {
  display: none;
}

html[data-mobile-view] .bake-balance {
  display: block;
  text-align: center;
}

html[data-mobile-view] .bake-count {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2.6rem, 14vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

html[data-mobile-view] .bake-unit {
  margin: 4px 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}

html[data-mobile-view] .bake-meta {
  display: inline-block;
  margin: 10px 0 0;
  padding: 5px 10px;
  color: var(--muted);
  background: rgba(245, 237, 221, 0.84);
  border: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

html[data-mobile-view] .cookie-button {
  width: min(66vw, 300px);
  margin-top: 10px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html[data-mobile-view] .cookie-button:active {
  transform: translate(4px, 6px) scale(0.98);
}

html[data-mobile-view] .bake-hint {
  display: block;
  margin: 12px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Stats: compact two-column ledger cards. */

html[data-mobile-view] .counter-panel {
  min-height: calc(100vh - 260px);
  min-height: calc(100dvh - 260px);
  padding: 22px 16px 28px;
}

html[data-mobile-view] .cookie-count {
  margin-top: 20px;
  font-size: clamp(2.8rem, 14vw, 4.4rem);
}

html[data-mobile-view] .cookie-unit {
  margin-bottom: 18px;
}

html[data-mobile-view] .ledger-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--ink);
}

html[data-mobile-view] .ledger-list div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px;
  border-top: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-mobile-view] .ledger-list div:nth-child(even) {
  border-right: 0;
}

html[data-mobile-view] .ledger-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

html[data-mobile-view] .ledger-list dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

html[data-mobile-view] .ledger-list dd {
  font-size: 1.2rem;
}

/* Store / scores: sticky tabs that actually stick. */

html[data-mobile-view] .shop-panel {
  min-height: calc(100vh - 260px);
  min-height: calc(100dvh - 260px);
  padding: 0;
  overflow: visible;
  border-left: 0;
  border-top: 0;
}

html[data-mobile-view] .panel-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper-deep);
}

html[data-mobile-view] .panel-tab {
  min-height: 52px;
}

html[data-mobile-view] #store-view,
html[data-mobile-view] #scores-view {
  padding: 16px 14px 28px;
}

html[data-mobile-view] .shop-row,
html[data-mobile-view] .egg-row {
  min-height: 64px;
  padding: 14px 12px;
  touch-action: manipulation;
}

html[data-mobile-view] .shop-row:active:not(:disabled),
html[data-mobile-view] .egg-row:active:not(:disabled) {
  color: var(--paper);
  background: var(--ink);
}

html[data-mobile-view] .shop-row:disabled,
html[data-mobile-view] .egg-row:disabled {
  opacity: 0.75;
}

html[data-mobile-view] .name {
  font-size: 0.84rem;
}

html[data-mobile-view] .desc {
  font-size: 0.78rem;
}

/* Bottom nav: thumb-sized targets with a clear active state. */

html[data-mobile-view] .mobile-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-height: var(--mobile-nav-h);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  padding-left: calc(8px + env(safe-area-inset-left));
  padding-right: calc(8px + env(safe-area-inset-right));
  background: var(--ink);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -7px 0 rgba(33, 25, 16, 0.14);
}

html[data-mobile-view] .mobile-nav-button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: #cdbca1;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

html[data-mobile-view] .mobile-nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}

html[data-mobile-view] .mobile-nav-button:active {
  transform: scale(0.97);
}

html[data-mobile-view] .mobile-nav-button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -2px;
}

html[data-mobile-view] .mobile-nav-button.active {
  color: var(--ink);
  background: var(--dough-light);
  border-color: var(--paper);
  box-shadow: inset 0 3px 0 var(--red);
}

html[data-mobile-view] .egg-dialog {
  width: calc(100% - 24px);
  min-height: min(62vh, 460px);
  padding: 52px 22px 44px;
  box-shadow: 6px 7px 0 var(--ink);
}

/* Keep the closed dialog hidden: the flex display must only apply while open. */
html[data-mobile-view] .egg-dialog[open] {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html[data-mobile-view] .egg-dialog .dialog-message {
  margin-top: 26px;
  font-size: 1.14rem;
  line-height: 1.8;
}

html[data-mobile-view] .egg-dialog[open] .dialog-effect {
  align-self: center;
}

html[data-mobile-view] .dialog-close {
  width: 44px;
  height: 44px;
  top: 4px;
  right: 4px;
}

html[data-mobile-view] .dialog-button {
  margin-top: 20px;
}

html[data-mobile-view] .toast {
  top: auto;
  bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 12px);
  max-width: calc(100% - 24px);
}

/* Short landscape phones: keep the cookie tappable without scrolling far. */

@media (max-height: 540px) {
  html[data-mobile-view] .click-stage {
    min-height: 0;
    padding-block: 16px;
  }

  html[data-mobile-view] .bake-count {
    font-size: clamp(2rem, 9vh, 2.8rem);
  }

  html[data-mobile-view] .cookie-button {
    width: min(46vw, 220px, 44vh);
  }

  html[data-mobile-view] .counter-panel,
  html[data-mobile-view] .shop-panel {
    min-height: 0;
  }
}

@media (max-width: 360px) {
  html[data-mobile-view] .masthead {
    padding: 12px 12px 10px;
  }

  html[data-mobile-view] .account-chip strong {
    max-width: 40vw;
    font-size: 0.88rem;
  }

  html[data-mobile-view] .ledger-list div {
    padding: 10px;
  }

  html[data-mobile-view] #store-view,
  html[data-mobile-view] #scores-view {
    padding-inline: 10px;
  }

  html[data-mobile-view] .mobile-nav {
    gap: 2px;
  }
}
