:root {
  --ink: #304f49;
  --muted: #70857f;
  --paper: #fffdf7;
  --cream: #fff5dc;
  --line: #ead8b5;
  --coral: #f37766;
  --coral-dark: #c8564c;
  --violet: #8d70bd;
  --violet-dark: #664c92;
  --mint: #dff3e0;
  --mint-dark: #58a47d;
  --blue: #dff2fb;
  --yellow: #f7cf58;
  --shadow: 0 20px 52px rgba(71, 73, 84, 0.14);
  --soft-shadow: 0 10px 26px rgba(71, 73, 84, 0.12);
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 11% 7%, rgba(255, 255, 255, .95) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 24%, rgba(255, 255, 255, .82) 0 4px, transparent 5px),
    linear-gradient(145deg, #fff3d5 0%, #fffaff 50%, #edf8ed 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(91deg, rgba(113, 82, 55, .018) 0 1px, transparent 1px 7px);
  content: "";
  pointer-events: none;
}

button {
  color: inherit;
  font: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible,
.paint-zone:focus-visible {
  outline: 4px solid rgba(83, 137, 194, .42);
  outline-offset: 4px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 69px);
  letter-spacing: -.05em;
  line-height: .98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 43px);
  letter-spacing: -.035em;
}

.app {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 54px;
}

.loading-card {
  width: min(430px, 100%);
  margin: 25vh auto 0;
  padding: 42px 28px;
  border: 2px solid var(--line);
  border-radius: 37px 28px 41px 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-card span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 58px;
  animation: bob 1.4s ease-in-out infinite;
}

.loading-card p {
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 900;
}

.topbar,
.topbar-actions,
.brand,
.album-heading,
.game-heading,
.palette-heading,
.result-actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 61px;
  height: 61px;
  place-items: center;
  border: 2px solid #e7c9b8;
  border-radius: 20px 15px 22px 17px;
  background: #fff0e6;
  box-shadow: 0 6px 0 rgba(126, 81, 65, .1);
  font-size: 32px;
  transform: rotate(-3deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: clamp(21px, 3vw, 29px);
  letter-spacing: -.035em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.topbar-actions {
  gap: 10px;
}

.top-spark {
  color: var(--coral);
  font-size: 31px;
}

.sound-button,
.back-button {
  min-height: 50px;
  border: 2px solid #d9e6da;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 5px 0 rgba(86, 120, 86, .1);
  font-weight: 900;
}

.sound-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 17px 13px 19px 14px;
}

.back-button {
  width: 50px;
  padding: 0;
  border-radius: 50%;
  font-size: 25px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--mint-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 460px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.07fr) minmax(330px, .93fr);
  align-items: center;
  padding: clamp(34px, 5.5vw, 68px);
  border: 2px solid #dfcfad;
  border-radius: 44px 33px 49px 35px;
  background:
    linear-gradient(111deg, rgba(255, 252, 243, .98) 0 57%, rgba(241, 228, 255, .94) 57%),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 2px dashed rgba(103, 78, 147, .18);
  border-radius: 50%;
  content: "";
}

.hero::before {
  right: -70px;
  bottom: -160px;
  width: 440px;
  height: 440px;
}

.hero::after {
  top: -50px;
  right: 31%;
  width: 120px;
  height: 120px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.48;
}

.primary-button,
.secondary-button,
.hint-button {
  min-height: 55px;
  padding: 13px 21px;
  border: 0;
  border-radius: 18px 13px 20px 15px;
  font-size: 16px;
  font-weight: 900;
}

.primary-button {
  color: white;
  background: var(--coral);
  box-shadow: 0 7px 0 var(--coral-dark), 0 14px 25px rgba(197, 80, 69, .18);
}

.primary-button:hover {
  transform: translateY(-2px);
}

.primary-button:active {
  box-shadow: 0 3px 0 var(--coral-dark);
  transform: translateY(4px);
}

.secondary-button,
.hint-button {
  border: 2px solid #dacdec;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 0 rgba(103, 81, 139, .12);
}

.hero-art {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  height: 340px;
  justify-self: center;
}

.hero-art::before {
  position: absolute;
  inset: 22px 13px 15px;
  border: 3px solid rgba(255, 255, 255, .8);
  border-radius: 48% 52% 45% 55%;
  background: rgba(255, 255, 255, .48);
  content: "";
  transform: rotate(-4deg);
}

.hero-palette,
.hero-brush {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 13px 10px rgba(59, 60, 71, .15));
}

.hero-palette {
  top: 68px;
  left: 65px;
  font-size: 145px;
  transform: rotate(-11deg);
}

.hero-brush {
  right: 44px;
  bottom: 53px;
  font-size: 105px;
  transform: rotate(-30deg);
}

.paint-blob {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 72px;
  border: 8px solid rgba(255, 255, 255, .76);
  border-radius: 44% 56% 46% 54%;
  box-shadow: var(--soft-shadow);
}

.paint-blob.red { top: 24px; right: 55px; background: #f36f62; transform: rotate(15deg); }
.paint-blob.yellow { right: 4px; bottom: 31px; background: #f7cf58; transform: rotate(-9deg); }
.paint-blob.blue { bottom: 1px; left: 25px; background: #5ba9dc; transform: rotate(8deg); }

.album-heading,
.game-heading {
  justify-content: space-between;
  gap: 18px;
  margin: 37px 0 18px;
}

.album-progress,
.zone-progress {
  display: grid;
  min-width: 116px;
  padding: 12px 17px;
  border: 2px solid #d8e7d8;
  border-radius: 18px 14px 20px 15px;
  background: rgba(255, 255, 255, .82);
  text-align: center;
}

.album-progress strong,
.zone-progress strong {
  font-size: 23px;
}

.album-progress span,
.zone-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.picture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.picture-card {
  position: relative;
  display: grid;
  min-height: 185px;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
  padding: 20px 17px 16px;
  overflow: hidden;
  border: 2px solid #e4dac7;
  border-radius: 29px 22px 32px 24px;
  background: rgba(255, 252, 245, .92);
  box-shadow: var(--soft-shadow);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.picture-card:nth-child(3n + 2) { background: rgba(239, 248, 255, .94); }
.picture-card:nth-child(3n) { background: rgba(242, 238, 255, .94); }

.picture-card:hover {
  border-color: #c7b9df;
  box-shadow: 0 17px 34px rgba(64, 72, 77, .16);
  transform: translateY(-5px);
}

.picture-card.completed {
  border-color: #9fcdb3;
}

.picture-number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.picture-icon {
  display: grid;
  min-height: 73px;
  place-items: center;
  font-size: 61px;
  filter: drop-shadow(0 7px 6px rgba(61, 70, 69, .11));
}

.picture-copy strong,
.picture-copy small {
  display: block;
}

.picture-copy strong {
  margin-bottom: 2px;
  font-size: 19px;
}

.picture-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.picture-stars {
  color: #d79a2c;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .03em;
}

.parent-tip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 19px;
  padding: 16px 19px;
  border: 2px dashed #e8d6ac;
  border-radius: 20px 15px 22px 17px;
  background: rgba(255, 251, 237, .8);
}

.parent-tip > span {
  font-size: 28px;
}

.parent-tip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.parent-tip strong {
  display: block;
  color: var(--ink);
}

.game-heading {
  align-items: flex-end;
  margin-top: 28px;
}

.game-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(37px, 4.8vw, 56px);
}

.game-heading > div:first-child > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(490px, 1.1fr) minmax(390px, .9fr);
  align-items: start;
  gap: 21px;
}

.canvas-card,
.palette-card {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(74, 87, 80, .16);
  box-shadow: var(--shadow);
}

.canvas-card {
  min-height: 690px;
  padding: 35px 30px 60px;
  border-radius: 39px 29px 44px 32px;
  background:
    repeating-linear-gradient(91deg, rgba(95, 74, 52, .018) 0 1px, transparent 1px 6px),
    #fffdf8;
}

.canvas-card::before,
.canvas-card::after {
  position: absolute;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: rgba(101, 185, 135, .1);
  content: "";
}

.canvas-card::before { top: -33px; right: -24px; }
.canvas-card::after { bottom: -40px; left: -28px; background: rgba(91, 169, 220, .1); }

.paper-tape {
  position: absolute;
  top: 4px;
  left: calc(50% - 58px);
  z-index: 4;
  width: 116px;
  height: 31px;
  background: rgba(246, 211, 126, .58);
  clip-path: polygon(5% 6%, 98% 0, 94% 94%, 0 100%);
  transform: rotate(-2deg);
}

.coloring-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 555px;
  overflow: visible;
  touch-action: manipulation;
}

.paint-zone {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
}

.paint-zone [data-paint] {
  fill: var(--zone-color);
  stroke: #46615a;
  stroke-width: 8;
  stroke-linejoin: round;
  transition: fill 220ms ease, transform 160ms ease;
}

.paint-zone:hover [data-paint] {
  filter: brightness(1.035);
}

.paint-zone.painted {
  animation: paint-pop 330ms ease;
}

.paint-zone.wrong {
  animation: shake 390ms ease;
}

.paint-zone.hinted [data-paint] {
  filter: drop-shadow(0 0 9px rgba(242, 168, 55, .82));
}

.target-dot {
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(65, 70, 70, .2));
  animation: target-pulse 1.2s ease-in-out infinite;
}

.fixed-line {
  fill: none;
  stroke: #46615a;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fixed-line.thick {
  stroke-width: 23;
}

.highlight-line {
  fill: none;
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 10;
  stroke-linecap: round;
  pointer-events: none;
}

.detail-fill {
  fill: #405952;
  pointer-events: none;
}

.window-fill,
.fixed-fill {
  fill: #daf2f9;
  stroke: #46615a;
  stroke-width: 8;
  stroke-linejoin: round;
  pointer-events: none;
}

.window-highlight {
  fill: rgba(255, 255, 255, .72);
  pointer-events: none;
}

.canvas-help {
  position: absolute;
  right: 35px;
  bottom: 20px;
  left: 35px;
  z-index: 3;
  margin-bottom: 0;
  padding: 10px 15px;
  border-radius: 17px;
  color: var(--muted);
  background: #f3f0e9;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.palette-card {
  padding: 25px;
  border-radius: 36px 27px 40px 29px;
  background: rgba(255, 251, 244, .98);
}

.palette-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, #f36f62 0 28px, #f7cf58 28px 56px, #5ba9dc 56px 84px, #65b987 84px 112px, #9a7bc7 112px 140px);
  content: "";
}

.palette-heading {
  justify-content: space-between;
  margin: 5px 0 16px;
}

.palette-heading h2 {
  font-size: 34px;
}

.palette-heading > span {
  font-size: 43px;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 15px;
  padding: 6px;
  border: 2px solid #e4dbc8;
  border-radius: 19px 15px 21px 16px;
  background: #f5f0e8;
}

.mode-chip {
  min-height: 46px;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px 11px 16px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.mode-chip.active {
  color: var(--violet-dark);
  background: white;
  box-shadow: 0 4px 0 rgba(96, 74, 126, .1);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.color-button {
  position: relative;
  display: grid;
  min-height: 83px;
  grid-template-columns: 51px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 3px solid #e7ddcb;
  border-radius: 20px 15px 22px 16px;
  background: #fffdf8;
  text-align: left;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease;
}

.color-button:hover {
  border-color: color-mix(in srgb, var(--paint), #6a6a6a 20%);
  transform: translateY(-2px);
}

.color-button.selected {
  border-color: var(--paint-dark);
  background: color-mix(in srgb, var(--paint), white 82%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .82);
}

.color-button strong {
  font-size: 14px;
}

.color-swatch {
  display: block;
  width: 51px;
  height: 51px;
  border: 4px solid rgba(255, 255, 255, .85);
  border-radius: 46% 54% 43% 57%;
  background: var(--paint);
  box-shadow: 0 5px 0 var(--paint-dark), 0 8px 14px rgba(71, 67, 67, .12);
  transform: rotate(-4deg);
}

.color-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #cabfaf;
  font-weight: 900;
}

.color-button.selected .color-check {
  background: var(--paint-dark);
}

.feedback {
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 18px 13px 20px 15px;
  background: #f4f0e9;
}

.feedback > span {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #a892c8;
  font-weight: 900;
}

.feedback p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.feedback.good { background: #eaf6e7; }
.feedback.good > span { background: var(--mint-dark); }
.feedback.try { background: #fff0eb; }
.feedback.try > span { background: var(--coral); }

.palette-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
}

.result-card {
  position: relative;
  display: grid;
  min-height: 680px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .96fr);
  align-items: center;
  gap: 28px;
  padding: clamp(32px, 6vw, 72px);
  border: 2px solid #ddceb0;
  border-radius: 44px 33px 49px 36px;
  background: linear-gradient(121deg, #fffaf0 0 56%, #eee5ff 56%);
  box-shadow: var(--shadow);
}

.result-copy {
  position: relative;
  z-index: 3;
}

.result-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.result-stars {
  margin: 15px 0 24px;
  color: #e7a82c;
  font-size: 43px;
  letter-spacing: .08em;
  filter: drop-shadow(0 4px 0 rgba(161, 112, 24, .12));
}

.result-actions {
  flex-wrap: wrap;
  gap: 11px;
}

.result-art {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  min-height: 500px;
  padding: 22px;
  border: 2px solid #e4d9c4;
  border-radius: 26px 19px 30px 21px;
  background: #fffdf7;
  box-shadow: 0 18px 38px rgba(61, 61, 72, .15);
  transform: rotate(2deg);
}

.result-art .coloring-svg {
  height: 455px;
}

.result-art .paint-zone {
  cursor: default;
}

.result-pin {
  position: absolute;
  top: -13px;
  left: calc(50% - 13px);
  z-index: 4;
  width: 27px;
  height: 27px;
  border: 5px solid #fff2bc;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 5px 7px rgba(73, 57, 50, .18);
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -28px;
  left: calc(2% + var(--i) * 5.65%);
  width: 12px;
  height: 19px;
  border-radius: 8px 3px 7px 4px;
  background: hsl(calc(var(--i) * 47deg) 78% 65%);
  animation: confetti calc(2.5s + (var(--i) % 4) * .25s) ease-in infinite;
  animation-delay: calc((var(--i) % 6) * -.32s);
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes paint-pop {
  0% { transform: scale(.93); }
  65% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@keyframes target-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: .76; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes confetti {
  from { transform: translateY(-30px) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  to { transform: translateY(760px) rotate(620deg); opacity: .85; }
}

@media (max-width: 1000px) {
  .picture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-layout {
    grid-template-columns: 1fr;
  }

  .canvas-card,
  .palette-card {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
  }

  .palette-card {
    max-width: 700px;
  }

  .color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-art {
    grid-row: 1;
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .app {
    width: min(100% - 18px, 1120px);
    padding-top: 11px;
  }

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

  .brand-mark {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .brand small,
  .sound-button span:last-child,
  .top-spark {
    display: none;
  }

  .sound-button {
    min-width: 50px;
    justify-content: center;
    padding-inline: 10px;
  }

  .hero {
    min-height: 610px;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 30px 23px;
  }

  .hero-copy {
    z-index: 4;
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 430px;
  }

  .hero-art {
    position: absolute;
    right: -28px;
    bottom: -25px;
    width: 330px;
    height: 325px;
    opacity: .78;
  }

  .album-heading,
  .game-heading {
    align-items: flex-end;
  }

  .album-progress,
  .zone-progress {
    min-width: 92px;
    padding-inline: 11px;
  }

  .picture-grid {
    grid-template-columns: 1fr;
  }

  .picture-card {
    min-height: 126px;
    grid-template-columns: 82px 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
  }

  .picture-icon {
    grid-row: 1 / 3;
    min-height: 72px;
    font-size: 51px;
  }

  .picture-stars {
    grid-column: 2;
  }

  .game-heading h1 {
    font-size: 36px;
  }

  .game-heading > div:first-child > p:last-child {
    display: none;
  }

  .canvas-card {
    min-height: 530px;
    padding: 28px 9px 55px;
  }

  .coloring-svg {
    height: 430px;
  }

  .canvas-help {
    right: 15px;
    left: 15px;
  }

  .palette-card {
    padding: 20px 13px;
  }

  .palette-heading h2 {
    font-size: 29px;
  }

  .color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .color-button {
    min-height: 72px;
    grid-template-columns: 44px 1fr 22px;
    padding: 8px;
  }

  .color-swatch {
    width: 44px;
    height: 44px;
  }

  .palette-actions {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 27px 19px 34px;
  }

  .result-art {
    min-height: 390px;
    padding: 10px;
  }

  .result-art .coloring-svg {
    height: 360px;
  }

  .result-actions {
    display: grid;
  }

  .result-actions button {
    width: 100%;
  }
}

@media (max-width: 410px) {
  .brand strong {
    font-size: 18px;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .color-button strong {
    font-size: 12px;
  }
}

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

.print-sheet { display: none; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body > * { display: none !important; }
  body > .print-sheet { display: grid !important; width: 100%; height: 100%; place-items: center; background: #fff; }
  .print-sheet__art { width: min(235mm, 100%); }
  .print-sheet .result-art { width: 100%; margin: 0; padding: 8mm; transform: none; box-shadow: none; }
  .print-sheet .result-pin { display: none; }
  .print-sheet .coloring-svg { display: block; width: 100%; max-height: 160mm; }
}
