:root {
  --paper: #f5f1e7;
  --sheet: #fffcf6;
  --ink: #292f29;
  --quiet: #62685c;
  --line: #dcd5c7;
  --leaf: #466752;
  --leaf-pale: #e8eedf;
  --tomato: #b94e3c;
  --wood: #a6815b;
  --receipt: #fffef9;
  --focus: #be742f;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Malgun Gothic",
    "Apple SD Gothic Neo",
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 44px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet);
  padding: 12px 20px;
  color: var(--ink);
  font-weight: 650;
  touch-action: manipulation;
}
button:hover {
  border-color: var(--leaf);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button.primary {
  background: var(--leaf);
  border-color: var(--leaf);
  color: white;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: var(--sheet);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.site-header {
  max-width: 1060px;
  margin: auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.back {
  font-size: 12px;
  color: var(--quiet);
}
main {
  max-width: 1060px;
  padding: 28px;
  margin: auto;
}
.game-nav {
  display: flex;
  gap: 7px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.game-nav a {
  font-size: 13px;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 30px;
  border: 1px solid transparent;
  color: var(--quiet);
}
.game-nav a[aria-current="page"] {
  background: var(--leaf-pale);
  color: var(--leaf);
  border-color: #cbd6c1;
  font-weight: 700;
}
.page-title {
  margin: 0 0 7px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.05em;
}
.page-copy {
  color: var(--quiet);
  margin: 0 0 25px;
  font-size: 14px;
}
.game-panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  scroll-margin-top: 18px;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--quiet);
}
.panel-top b {
  font-variant-numeric: tabular-nums;
  color: var(--leaf);
  font-size: 13px;
}
.start-view {
  min-height: 370px;
  display: grid;
  grid-template-columns: 1fr 42%;
  align-items: center;
  gap: 30px;
  padding: 38px 48px;
}
.start-view h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.4;
  margin: 0 0 12px;
}
.start-view p {
  color: var(--quiet);
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 370px;
}
.start-art {
  width: 100%;
  max-height: 270px;
  object-fit: contain;
}
.start-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.start-buttons button {
  font-size: 14px;
}
.subtle-note {
  font-size: 11px;
  color: var(--quiet);
  display: block;
  margin-top: 15px;
}
.round-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}
.round-head h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.04em;
}
.round-head p {
  font-size: 12px;
  color: var(--quiet);
  margin: 4px 0 0;
}
.round-label {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 12px;
  color: var(--leaf);
  font-weight: 700;
  padding-top: 5px;
}
.dots {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 6px;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd8c9;
}
.dots i.done {
  background: var(--leaf);
}
.dots i.active {
  background: var(--wood);
}
.comparison-stage {
  height: 300px;
  margin: 12px 24px 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: end;
  padding: 14px 35px 28px;
  background: #f1f0e5;
  border-bottom: 2px solid var(--wood);
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.comparison-stage:before {
  content: "";
  position: absolute;
  inset: 15px auto 0 18px;
  width: 9px;
  background: repeating-linear-gradient(
    to top,
    transparent 0 19px,
    #a2957d66 19px 20px
  );
  border-left: 1px solid #a2957d66;
  pointer-events: none;
}
.size-object {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  height: 245px;
  min-width: 0;
}
.size-object img {
  object-fit: contain;
  max-width: 100%;
  width: auto;
  max-height: 245px;
  filter: drop-shadow(0 3px 2px #6251321a);
  transition: height 0.16s ease-out;
  display: block;
}
.size-object .truth-ghost {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  opacity: 0.55;
  filter: grayscale(1);
  z-index: 2;
  outline: 2px dashed var(--leaf);
  outline-offset: 3px;
}
.size-object .truth-ghost[hidden] {
  display: none;
}
.object-captions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  margin: 10px 24px 0;
  gap: 15px;
  font-size: 13px;
}
.object-captions small {
  display: block;
  color: var(--quiet);
  font-size: 11px;
}
.controls {
  padding: 22px 30px 24px;
}
.guess-readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--quiet);
}
.guess-readout output {
  font-size: 22px;
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slider-row button {
  padding: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 20px;
}
.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--leaf);
  height: 32px;
  cursor: ew-resize;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--quiet);
  margin: 0 50px;
}
.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
}
.submit-row .tip {
  font-size: 12px;
  color: var(--quiet);
  max-width: 65%;
}
.submit-row button {
  min-width: 155px;
}
.feedback {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--leaf-pale);
  border-top: 1px solid #d4ddc8;
}
.feedback.bad {
  background: #f8e9e2;
  border-color: #e6cbbd;
}
.feedback h3 {
  font-size: 18px;
  margin: 0 0 3px;
  line-height: 1.4;
}
.feedback p {
  font-size: 12px;
  margin: 0;
  color: #5f6758;
}
.feedback strong.points {
  white-space: nowrap;
  font-size: 25px;
  color: var(--leaf);
  font-variant-numeric: tabular-nums;
}
.review-actions {
  display: flex;
  justify-content: flex-end;
  padding: 15px 24px;
  gap: 10px;
}
.truth-legend {
  color: var(--leaf);
  font-size: 11px;
  text-align: center;
  margin: 7px 10px;
}
.weigh-stage {
  margin: 10px 24px 0;
  height: 300px;
  position: relative;
  background: #f1f0e5;
  border-radius: 10px;
  overflow: hidden;
}
.scale-rig {
  position: absolute;
  inset: 25px 8% 44px;
}
.scale-post {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 85px;
  width: 13px;
  translate: -50%;
  background: var(--wood);
  border-radius: 5px;
}
.scale-post:after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  translate: -50%;
  width: 110px;
  height: 14px;
  background: var(--wood);
  border-radius: 10px 10px 4px 4px;
}
.scale-beam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 65px;
  height: 9px;
  border-radius: 5px;
  background: var(--wood);
  transform: rotate(var(--tilt, 0deg));
  transform-origin: center;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.scale-pan {
  position: absolute;
  bottom: 0;
  width: 40%;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 7px solid var(--wood);
  border-radius: 0 0 40% 40%;
  padding: 0 15px 10px;
  height: 130px;
  transform: rotate(calc(-1 * var(--tilt, 0deg)));
  transform-origin: center bottom;
  transition: transform 0.65s;
}
.scale-pan.left {
  left: 0;
}
.scale-pan.right {
  right: 0;
}
.scale-pan img {
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #6251321a);
}
.scale-pan.right img {
  max-width: 56%;
  height: 80px;
}
.scale-pan .count-bubble {
  position: absolute;
  right: 0;
  top: 12px;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}
.scale-pan.right .count-bubble,
.mass-badge {
  position: absolute;
  top: auto;
  bottom: -34px;
  left: 50%;
  right: auto;
  translate: -50%;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2px 9px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 700;
}
.weight-items {
  display: grid;
  grid-template-columns: repeat(var(--columns, 1), minmax(0, 1fr));
  gap: 2px;
  align-items: end;
  justify-items: center;
  width: 100%;
  max-width: 240px;
  max-height: 116px;
}
.scale-pan.right .weight-items img {
  display: block;
  height: var(--item-height, 70px);
  width: 100%;
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px #62513218);
}
.weight-source {
  font-size: 11px;
  color: var(--quiet);
  line-height: 1.7;
  padding: 12px 24px 0;
  margin: 0;
}
.weight-source a {
  color: var(--leaf);
}
.scale-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--quiet);
  font-size: 11px;
}
.number-guess {
  display: flex;
  align-items: center;
  gap: 5px;
}
.number-guess input {
  width: 105px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 7px 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}
.receipt-clock {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.receipt-clock b {
  font-size: 22px;
  min-width: 42px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.receipt-clock.urgent b {
  color: var(--tomato);
}
.receipt-clock progress {
  width: 90px;
  height: 5px;
  accent-color: var(--leaf);
}
.receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  padding: 20px 24px;
}
.cart-area {
  background: #efeee4;
  border: 1px solid #e1dece;
  border-radius: 12px;
  padding: 15px 14px;
  position: relative;
}
.cart-head {
  font-size: 11px;
  color: var(--quiet);
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}
.cart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.product {
  background: #fffcf680;
  border: 1px solid #e0ddce;
  border-radius: 8px;
  padding: 9px 5px;
  text-align: center;
  position: relative;
  min-width: 0;
}
.product img {
  width: 100%;
  height: 75px;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
}
.product strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.product .qty {
  position: absolute;
  right: 4px;
  top: 4px;
  background: var(--leaf);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  min-width: 24px;
  padding: 0 4px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.paper-receipt {
  background: var(--receipt);
  padding: 19px 16px;
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 5px 10px #635b4010;
  position: relative;
  align-self: start;
}
.paper-receipt:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--receipt) 0 8px,
    transparent 8px 12px
  );
}
.paper-receipt h3 {
  font-size: 16px;
  margin: 0;
  text-align: center;
  letter-spacing: 0.1em;
}
.receipt-sub {
  text-align: center;
  font-size: 10px;
  color: var(--quiet);
  margin: 0 0 13px;
}
.paper-receipt table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
.paper-receipt th {
  text-align: left;
  font-weight: 400;
  color: var(--quiet);
  padding: 7px 0;
  border-block: 1px dashed var(--line);
}
.paper-receipt td {
  padding: 6px 0;
  line-height: 1.4;
}
.paper-receipt td:nth-child(2),
.paper-receipt th:nth-child(2) {
  text-align: center;
  width: 32px;
}
.paper-receipt td:last-child,
.paper-receipt th:last-child {
  text-align: right;
  white-space: nowrap;
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  margin-top: 10px;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 700;
}
.receipt-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 24px 22px;
}
.receipt-actions button {
  flex: 1;
  max-width: 240px;
}
.reject {
  border-color: #c8a998;
  color: var(--tomato);
}
.pause-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #f5f1e7f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
}
.pause-layer h3 {
  margin-bottom: 8px;
}
.pause-layer p {
  font-size: 13px;
  color: var(--quiet);
}
.game-content {
  position: relative;
}
.result-view {
  padding: 28px 35px;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.result-heading img {
  width: 130px;
  height: 140px;
  object-fit: contain;
}
.result-heading p {
  color: var(--quiet);
  font-size: 12px;
  margin: 0 0 5px;
}
.result-heading h2 {
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1.4;
  margin: 0 0 7px;
}
.result-score {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.3;
  color: var(--leaf);
}
.result-score small {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--quiet);
  font-weight: 500;
}
.best-result {
  font-size: 12px;
  color: var(--quiet);
  margin: 12px 0 20px;
}
.round-results {
  padding: 0;
  list-style: none;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}
.round-results li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 12px;
}
.round-results li small {
  color: var(--quiet);
}
.round-results li b {
  color: var(--leaf);
  grid-column: 2;
  grid-row: span 2;
  align-self: center;
}
.share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-actions button {
  font-size: 13px;
  flex: 1;
  white-space: nowrap;
}
.retry-actions {
  margin-top: 18px;
  display: flex;
  gap: 20px;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--quiet);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.share-status {
  font-size: 12px;
  color: var(--leaf);
  min-height: 20px;
  margin-top: 10px;
}
.share-status textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  font: inherit;
}
.how-to {
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin: 28px 4px;
  color: var(--quiet);
}
.how-to h2 {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 9px;
}
.how-to p {
  margin: 0 0 8px;
}
.how-to ol {
  padding-left: 20px;
  margin: 0;
}
.how-to li {
  margin-bottom: 5px;
}
.how-to details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.how-to summary {
  cursor: pointer;
  color: var(--ink);
}
.how-to details p {
  margin: 8px 0 0;
  font-size: 12px;
}
.ad-zone {
  margin: 36px 0;
  min-height: 100px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  overflow: hidden;
}
.ad-zone > small {
  font-size: 10px;
  color: var(--quiet);
  display: block;
  text-align: center;
  margin-bottom: 10px;
}
.more-games {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.more-games h2 {
  font-size: 16px;
}
.more-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.more-links a {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  padding: 12px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.more-links img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.more-links small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--quiet);
  margin-top: 3px;
}
footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 28px 30px;
  font-size: 11px;
  color: var(--quiet);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.noscript {
  padding: 30px;
  text-align: center;
}
body[data-phase="playing"] .page-copy,
body[data-phase="review"] .page-copy,
body[data-phase="paused"] .page-copy {
  margin-bottom: 15px;
}
.receipt-review {
  padding: 0 24px 18px;
  color: var(--quiet);
  font-size: 12px;
}
.flash-in {
  animation: arrive 0.28s ease-out;
}
@keyframes arrive {
  from {
    opacity: 0.4;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 700px) {
  .site-header {
    padding: 12px 16px;
  }
  main {
    padding: 20px 16px;
  }
  .game-nav {
    gap: 1px;
    margin-bottom: 19px;
  }
  .game-nav a {
    font-size: 12px;
    padding: 6px 11px;
  }
  .page-copy {
    font-size: 12px;
    margin-bottom: 19px;
  }
  .panel-top {
    padding: 11px 15px;
    font-size: 10px;
  }
  .panel-top b {
    font-size: 11px;
  }
  .start-view {
    min-height: 390px;
    gap: 10px;
    padding: 24px;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .start-art {
    grid-row: 1;
    height: 175px;
  }
  .start-view h2 {
    font-size: 23px;
  }
  .start-view p {
    font-size: 12px;
    margin: 0 auto 17px;
  }
  .start-buttons {
    justify-content: center;
  }
  .start-buttons button {
    padding: 11px 15px;
    font-size: 13px;
  }
  .subtle-note {
    font-size: 10px;
    margin-top: 11px;
  }
  .round-head {
    padding: 16px 15px 0;
  }
  .round-head h2 {
    font-size: 17px;
  }
  .round-head p {
    font-size: 11px;
  }
  .round-label {
    font-size: 10px;
  }
  .comparison-stage {
    height: 245px;
    margin: 12px 15px 0;
    gap: 15px;
    padding: 10px 15px 20px;
  }
  .size-object {
    height: 210px;
  }
  .size-object img {
    max-height: 210px;
  }
  .comparison-stage:before {
    left: 9px;
  }
  .object-captions {
    margin: 9px 15px 0;
    font-size: 12px;
  }
  .object-captions small {
    font-size: 10px;
  }
  .controls {
    padding: 17px 15px 18px;
  }
  .guess-readout {
    font-size: 12px;
  }
  .guess-readout output {
    font-size: 19px;
  }
  .submit-row {
    margin-top: 15px;
    gap: 10px;
  }
  .submit-row button {
    min-width: 120px;
    padding: 11px 15px;
    font-size: 13px;
  }
  .submit-row .tip {
    font-size: 10px;
    max-width: 55%;
  }
  .range-ends {
    margin-inline: 45px;
    font-size: 9px;
  }
  .feedback {
    padding: 15px;
    gap: 10px;
  }
  .feedback h3 {
    font-size: 16px;
  }
  .feedback p {
    font-size: 11px;
  }
  .feedback strong.points {
    font-size: 23px;
  }
  .review-actions {
    padding: 12px 15px;
  }
  .review-actions button {
    font-size: 13px;
    padding: 10px 20px;
  }
  .weigh-stage {
    margin: 12px 15px 0;
    height: 250px;
  }
  .scale-rig {
    inset: 20px 7% 38px;
  }
  .scale-post {
    height: 75px;
  }
  .scale-beam {
    bottom: 60px;
  }
  .scale-pan {
    height: 110px;
    padding-inline: 7px;
  }
  .scale-pan img {
    max-height: 80px;
  }
  .scale-pan.right img {
    height: 75px;
  }
  .scale-pan .count-bubble {
    font-size: 12px;
    top: 9px;
    padding: 2px 6px;
  }
  .scale-pan.right .count-bubble,
  .mass-badge {
    top: auto;
    bottom: -32px;
    padding: 2px 7px;
    font-size: 11px;
  }
  .weight-source {
    padding: 10px 15px 0;
    font-size: 10px;
  }
  .scale-caption {
    font-size: 10px;
    bottom: 8px;
  }
  .number-guess input {
    font-size: 17px;
    width: 84px;
  }
  .receipt-layout {
    padding: 14px 15px;
    gap: 14px;
    grid-template-columns: 1fr;
  }
  .cart-area {
    padding: 10px;
  }
  .cart-grid {
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product {
    padding: 7px 3px;
  }
  .product img {
    height: 52px;
    margin-bottom: 3px;
  }
  .product strong {
    font-size: 9px;
  }
  .product .qty {
    font-size: 10px;
    line-height: 17px;
    min-width: 21px;
    top: 2px;
    right: 2px;
  }
  .cart-head {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .paper-receipt {
    padding: 12px 14px;
    width: 100%;
  }
  .paper-receipt h3 {
    font-size: 13px;
  }
  .receipt-sub {
    margin: 0 0 5px;
    font-size: 9px;
  }
  .paper-receipt td {
    padding: 3px 0;
  }
  .paper-receipt th {
    padding: 4px 0;
  }
  .receipt-total {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 11px;
  }
  .receipt-clock b {
    font-size: 18px;
  }
  .receipt-clock progress {
    width: 45px;
  }
  .receipt-actions {
    padding: 2px 15px 16px;
    gap: 8px;
    position: sticky;
    bottom: 0;
    background: var(--sheet);
    z-index: 2;
  }
  .receipt-actions button {
    padding: 11px 12px;
    font-size: 13px;
  }
  .receipt-review {
    padding: 0 15px 14px;
    font-size: 11px;
  }
  .result-view {
    padding: 23px 18px;
  }
  .result-heading h2 {
    font-size: 21px;
  }
  .result-heading img {
    width: 98px;
    height: 110px;
  }
  .result-score {
    font-size: 37px;
  }
  .result-score small {
    font-size: 12px;
  }
  .result-heading p {
    font-size: 11px;
  }
  .round-results li {
    font-size: 11px;
    gap: 3px 12px;
  }
  .share-actions {
    gap: 6px;
  }
  .share-actions button {
    font-size: 11px;
    padding: 11px 10px;
  }
  .how-to {
    grid-template-columns: 1fr;
    gap: 20px;
    font-size: 12px;
    margin: 24px 0;
  }
  .more-links {
    grid-template-columns: 1fr;
  }
  .more-links a {
    font-size: 12px;
  }
  .more-links img {
    width: 50px;
    height: 50px;
  }
  footer {
    padding: 17px 16px;
    font-size: 10px;
  }
  .ad-zone {
    margin-top: 28px;
  }
  body[data-phase="playing"] .game-nav,
  body[data-phase="review"] .game-nav,
  body[data-phase="paused"] .game-nav {
    margin-bottom: 12px;
  }
  body[data-phase="playing"] .page-copy,
  body[data-phase="review"] .page-copy,
  body[data-phase="paused"] .page-copy {
    display: none;
  }
  body[data-phase="playing"] .page-title,
  body[data-phase="review"] .page-title,
  body[data-phase="paused"] .page-title {
    font-size: 23px;
    margin-bottom: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
