@font-face {
  font-family: "Scania Office";
  src: url("assets/fonts/ScaniaOffice-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Scania Office";
  src: url("assets/fonts/ScaniaOffice-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Scania Headline";
  src: url("assets/fonts/ScaniaOfficeHeadline-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Scania Condensed";
  src: url("assets/fonts/ScaniaOfficeCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #041e42;
  --blue-active: #0b3a7a;
  --white: #fafafa;
  --surface: #ffffff;
  --pale: #f2f5f9;
  --line: #c8c9c7;
  --muted: #53565a;
  --mid: #74777a;
  --orange: #e35205;
  --green: #2c5234;
  --red: #d6001c;
  --shadow: 0 18px 48px rgba(4, 30, 66, 0.12);
  --max: 1280px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--blue);
  background: var(--white);
  font-family: "Scania Office", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(4, 30, 66, 0.16);
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: block;
  width: 154px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.header-copy {
  display: flex;
  align-items: baseline;
  gap: 20px;
  text-align: right;
}

.header-copy span {
  color: var(--muted);
}

.header-copy strong {
  font-family: "Scania Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.view-home {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(32px, 5vw, 80px);
  min-height: calc(100dvh - 76px);
  padding-block: clamp(48px, 7vh, 84px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-left: clamp(0px, 3vw, 44px);
}

.eyebrow,
.game-label,
.dialog-label {
  margin: 0 0 18px;
  color: var(--orange);
  font-family: "Scania Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Scania Headline", "Scania Office", sans-serif;
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(52px, 5vw, 72px);
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
}

.hero-actions,
.dialog-actions,
.share-actions,
.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.text-button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  white-space: nowrap;
}

.button img,
.text-button img,
.game-meta img {
  width: 22px;
  height: 22px;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary img {
  filter: brightness(0) invert(1);
}

.button-primary:hover {
  background: var(--blue-active);
}

.button-secondary {
  color: var(--blue);
  border: 1px solid var(--blue);
  background: transparent;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--blue);
}

.button-quiet {
  color: var(--blue);
  border: 1px solid var(--line);
  background: var(--pale);
}

.button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.button:active,
.text-button:active {
  transform: translateY(1px) scale(0.99);
}

.hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -20px 34% 42% -22px;
  z-index: -1;
  background: var(--orange);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 54% center;
}

.hero-media figcaption {
  position: absolute;
  right: -1px;
  bottom: -1px;
  max-width: 360px;
  padding: 20px 24px;
  color: var(--white);
  background: var(--blue);
  font-weight: 700;
}

.how {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(36px, 6vw, 96px);
  padding-block: 92px;
  border-top: 1px solid var(--line);
}

.how-intro h2,
.section-title h2 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(38px, 4.5vw, 66px);
}

.how-intro .how-title {
  font-size: clamp(38px, 4.1vw, 58px);
}

.how-intro p,
.section-title p {
  color: var(--muted);
  font-size: 18px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.how-grid article {
  min-height: 180px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.how-grid article:first-child {
  border-left-color: var(--orange);
  border-left-width: 4px;
}

.how-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: "Scania Headline", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
}

.how-grid p {
  color: var(--muted);
}

.how-title span {
  display: block;
  white-space: nowrap;
}

.puzzle-library {
  padding-block: 56px 120px;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 42px;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 20px;
}

.puzzle-card {
  grid-column: span 4;
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.puzzle-card:nth-child(1),
.puzzle-card:nth-child(6) {
  grid-column: span 8;
}

.puzzle-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.puzzle-card button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.puzzle-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pale);
}

.puzzle-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.puzzle-card:hover .puzzle-card-media img {
  transform: scale(1.025);
}

.card-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--blue);
  font-family: "Scania Condensed", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.puzzle-card.is-complete .card-status {
  background: var(--green);
}

.puzzle-card-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
}

.puzzle-card h3 {
  margin: 0 0 6px;
  font-size: 25px;
}

.puzzle-card p {
  margin: 0;
  color: var(--muted);
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.view-game {
  min-height: calc(100dvh - 76px);
  padding-block: 20px 48px;
  background: var(--pale);
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--blue);
  background: transparent;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-family: "Scania Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
  gap: 32px;
  align-items: start;
}

.game-main {
  min-width: 0;
}

.game-difficulty {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 14px 16px 14px 18px;
  border-left: 4px solid var(--orange);
  background: var(--surface);
}

.game-difficulty-copy {
  min-width: 0;
}

.game-difficulty-copy p {
  margin: 0 0 2px;
  color: var(--orange);
  font-family: "Scania Condensed", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-difficulty-copy h2 {
  margin: 0;
  font-family: "Scania Headline", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  white-space: nowrap;
}

.puzzle-board {
  --size: 3;
  display: grid;
  grid-template-columns: repeat(var(--size), minmax(0, 1fr));
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: transparent;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.puzzle-tile {
  position: relative;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(250, 250, 250, 0.78);
  border-radius: 0;
  background-repeat: no-repeat;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.puzzle-tile:hover {
  z-index: 2;
  box-shadow: inset 0 0 0 3px var(--orange);
}

.puzzle-tile.is-selected {
  z-index: 3;
  box-shadow: inset 0 0 0 5px var(--orange);
  transform: scale(0.96);
}

.puzzle-tile.is-correct::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid rgba(44, 82, 52, 0.72);
  pointer-events: none;
}

.puzzle-tile.is-pointer-dragging {
  z-index: 20;
  opacity: 0.88;
  cursor: grabbing;
  transform: translate(var(--drag-x, 0), var(--drag-y, 0)) scale(1.04);
  box-shadow: 0 14px 30px rgba(2, 15, 33, 0.32);
  transition: none;
  will-change: transform;
}

.puzzle-tile.is-drop-target {
  z-index: 4;
  box-shadow: inset 0 0 0 5px var(--orange);
}

.puzzle-board.is-complete .puzzle-tile {
  border-color: transparent;
}

.game-panel {
  position: sticky;
  top: 108px;
  padding: 24px;
  border-top: 4px solid var(--orange);
  background: var(--surface);
}

.game-panel-image {
  position: relative;
  margin: -24px -24px 26px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue);
}

.game-panel-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;
  padding: 18px;
  color: var(--white);
  background: rgba(4, 30, 66, 0.34);
  font-weight: 700;
}

.game-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 3vw, 48px);
}

.game-panel > p:not(.game-label):not(.interaction-tip) {
  color: var(--muted);
}

.difficulty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 28px 0;
  padding: 0;
  border: 0;
}

.difficulty legend {
  padding: 0;
}

.difficulty-desktop legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-weight: 700;
}

.difficulty label {
  position: relative;
  display: grid;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.difficulty input {
  position: absolute;
  opacity: 0;
}

.difficulty label:has(input:checked) {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.difficulty span {
  font-family: "Scania Headline", sans-serif;
  font-size: 24px;
}

.difficulty small {
  align-self: end;
}

.game-difficulty .difficulty {
  flex: 0 1 360px;
  margin: 0;
}

.game-difficulty .difficulty label {
  min-height: 64px;
  padding: 9px 12px;
}

.game-difficulty .difficulty span {
  font-size: 21px;
  line-height: 1;
}

.game-difficulty .difficulty small {
  font-size: 12px;
}

.game-controls .button {
  flex: 1;
}

.interaction-tip {
  margin: 20px 0 0;
  color: var(--mid);
  font-size: 14px;
}

.site-footer {
  padding-block: 42px;
  color: var(--white);
  background: var(--blue);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 28px 48px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand > img {
  display: block;
  width: 150px;
  height: auto;
  flex: 0 0 auto;
}

.footer-inner p {
  margin: 0;
  color: rgba(250, 250, 250, 0.78);
  font-size: 14px;
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.partner-logos img {
  display: block;
  width: auto;
  height: 20px;
  max-width: none;
  object-fit: contain;
}

.privacy-note {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 250, 250, 0.18);
  text-align: right;
}

dialog {
  width: min(calc(100% - 32px), 980px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(4, 30, 66, 0.34);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(2, 15, 33, 0.78);
  backdrop-filter: blur(4px);
}

.complete-dialog[open] {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.dialog-art {
  position: relative;
  min-height: 520px;
  background: var(--blue);
}

.dialog-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-check {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--green);
}

.dialog-check img {
  width: 34px;
  filter: brightness(0) invert(1);
}

.dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px);
}

.dialog-copy h2,
.share-options h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 4vw, 62px);
}

.dialog-copy > p:not(.dialog-label) {
  color: var(--muted);
  font-size: 18px;
}

.dialog-actions {
  margin-top: 18px;
}

.share-dialog {
  width: min(calc(100% - 32px), 1120px);
}

.dialog-close {
  position: sticky;
  top: 12px;
  z-index: 5;
  float: right;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 12px 12px -60px 0;
  border: 1px solid var(--line);
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.share-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(360px, 1.28fr);
  min-height: 680px;
}

.share-preview-wrap {
  display: grid;
  place-items: center;
  padding: 36px;
  background: var(--blue);
}

#share-canvas {
  width: min(100%, 330px);
  height: auto;
  aspect-ratio: 9 / 16;
  background: var(--white);
  box-shadow: 0 20px 54px rgba(2, 15, 33, 0.32);
}

.share-options {
  padding: clamp(32px, 5vw, 64px);
}

.template-list {
  display: grid;
  gap: 8px;
  margin: 26px 0;
}

.template-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.template-option:hover,
.template-option.is-active {
  border-color: var(--blue);
  background: var(--pale);
}

.template-option.is-active {
  box-shadow: inset 4px 0 0 var(--orange);
}

.template-number {
  font-family: "Scania Headline", sans-serif;
  font-size: 28px;
}

.template-option span:last-child {
  font-weight: 700;
}

.share-note {
  margin: 18px 0 0;
  color: var(--mid);
  font-size: 14px;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 50;
  padding: 16px;
  color: var(--white);
  background: var(--red);
}

.shake {
  animation: shake 260ms ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-media {
    animation: enter 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-media {
    animation-delay: 100ms;
  }

  .puzzle-card {
    animation: enter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--card-index, 0) * 45ms);
  }

  dialog[open] {
    animation: dialog-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 1001px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
    gap: 28px;
  }

  .game-panel {
    padding: 20px;
  }

  .game-panel-image {
    margin: -20px -20px 20px;
  }

  .game-panel h2 {
    font-size: clamp(34px, 3vw, 42px);
  }

  .difficulty {
    margin-block: 20px;
  }

  .difficulty label {
    min-height: 76px;
  }

  .interaction-tip {
    margin-top: 14px;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
    padding-left: 0;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
    padding-left: 0;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

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

  .game-difficulty {
    display: flex;
  }

  .difficulty-desktop {
    display: none;
  }

  .how-intro .how-title {
    font-size: clamp(38px, 7vw, 58px);
  }

  .puzzle-card,
  .puzzle-card:nth-child(1),
  .puzzle-card:nth-child(6) {
    grid-column: span 6;
  }

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

  .game-panel {
    position: static;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
  }

  .game-panel-image {
    grid-row: 1 / span 6;
    margin: -24px 0 -24px -24px;
    aspect-ratio: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand {
    width: 126px;
  }

  .header-copy span {
    display: none;
  }

  .header-copy strong {
    font-size: 13px;
  }

  .hero {
    padding-block: 40px 70px;
  }

  h1 {
    font-size: clamp(42px, 10vw, 56px);
  }

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

  .hero-media::before {
    inset: -12px 30% 60% -12px;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .hero-media figcaption {
    position: static;
    max-width: none;
  }

  .how {
    padding-block: 64px;
  }

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

  .how-grid article {
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .how-grid article:first-child {
    border-top: 4px solid var(--orange);
    border-left: 0;
  }

  .puzzle-library {
    padding-bottom: 80px;
  }

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

  .puzzle-card,
  .puzzle-card:nth-child(1),
  .puzzle-card:nth-child(6) {
    grid-column: auto;
  }

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

  .game-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
  }

  .game-difficulty {
    display: block;
    margin-bottom: 10px;
    padding: 14px;
  }

  .game-difficulty-copy h2 {
    font-size: 24px;
    white-space: normal;
  }

  .game-difficulty .difficulty {
    width: 100%;
    margin-top: 12px;
  }

  .game-difficulty .difficulty label {
    min-height: 62px;
  }

  .puzzle-board {
    border-width: 4px;
  }

  .game-panel {
    display: block;
  }

  .game-panel-image {
    margin: -24px -24px 24px;
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    display: grid;
    gap: 18px;
  }

  .partner-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .partner-logos img {
    width: auto;
    height: 18px;
    max-width: 100%;
  }

  .privacy-note {
    grid-column: auto;
    text-align: left;
  }

  .complete-dialog[open] {
    display: block;
  }

  .dialog-art {
    min-height: 240px;
    max-height: 36vh;
  }

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

  .share-preview-wrap {
    padding: 28px;
  }

  #share-canvas {
    width: min(100%, 230px);
  }

  .share-actions .button,
  .dialog-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .puzzle-card-copy {
    padding: 16px;
  }

  .puzzle-card h3 {
    font-size: 22px;
  }

  .game-topbar {
    display: block;
  }

  .game-meta {
    align-items: flex-start;
    margin-top: 8px;
  }

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

@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;
  }
}
