:root {
  color-scheme: dark;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #050509;
  --ink: #fff4d8;
  --muted: #d8cfae;
  --panel: #161821;
  --paper: #fff4d8;
  --paper-ink: #17130c;
  --line: #050509;
  --accent: #ffb627;
  --accent-2: #00f0ff;
  --danger: #ff4f4f;
  --shadow: #000;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100vw;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
}

button,
input,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.screen {
  position: fixed;
  inset: 0;
  display: none;
  overflow: hidden;
  background: var(--bg);
}

.screen.is-active {
  display: block;
}

.pixel-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 9, 0.18), rgba(5, 5, 9, 0.76)),
    url("./assets/background/Menu-fond.svg") center bottom / cover no-repeat,
    #050509;
}

.shell-panel {
  border: 4px solid var(--line);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--shadow);
}

.main-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(47.5rem, calc(100vw - 2rem));
  min-height: min(35rem, calc(100dvh - 7.5rem));
  max-height: calc(100dvh - 6rem);
  padding: clamp(2rem, 5vh, 4rem);
  text-align: center;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.menu-card {
  width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: clamp(0.8rem, 4vh, 3rem) auto 0;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
}

.menu-signature {
  position: absolute;
  left: 50%;
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: min(56rem, calc(100vw - 2rem));
  margin: 0;
  border: 3px solid var(--line);
  padding: 0.45rem 0.6rem;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--shadow);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 1.6;
  text-align: center;
  transform: translateX(-50%);
}

.menu-signature img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--accent-2);
  font-family: var(--font-pixel);
  font-size: clamp(0.56rem, 1.2vw, 0.72rem);
  line-height: 1.8;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-pixel);
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--accent);
  text-shadow: 5px 5px 0 #000;
  animation: titlePulse 2s steps(2) infinite;
}

@keyframes titlePulse {
  0%,
  100% {
    text-shadow: 5px 5px 0 #000;
  }

  50% {
    text-shadow: 7px 7px 0 #000;
  }
}

h2 {
  font-size: clamp(1.25rem, 4vw, 2.6rem);
}

p {
  line-height: 1.7;
}

.tagline,
.setting-note,
.credits-screen p,
.rules-screen p,
.final-card p {
  color: var(--muted);
  font-weight: 800;
}

.main-menu .tagline {
  font-size: clamp(0.95rem, 1.55vw, 1.25rem);
  line-height: 1.75;
}

.intro-screen {
  background:
    linear-gradient(180deg, rgba(5, 5, 9, 0.2), rgba(5, 5, 9, 0.82)),
    url("./assets/background/Menu-fond.svg") center bottom / cover no-repeat,
    var(--bg);
}

.intro-card {
  display: grid;
  justify-items: center;
  gap: clamp(0.75rem, 2vh, 1.1rem);
  text-align: center;
}

.intro-card p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.intro-lines {
  width: min(50rem, 100%);
  display: grid;
  gap: 0.35rem;
  border: 3px solid var(--line);
  padding: 0.75rem;
  background: rgba(255, 244, 216, 0.95);
  color: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--shadow);
  text-align: left;
}

.intro-lines p,
.intro-objective {
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  line-height: 1.55;
}

.intro-lines p {
  color: var(--paper-ink);
}

.intro-lines strong {
  color: #0b4f3a;
}

.intro-card .intro-objective {
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  line-height: 1.7;
  text-transform: uppercase;
}

.intro-hero {
  width: clamp(5.5rem, 14vh, 8rem);
  height: clamp(5.5rem, 14vh, 8rem);
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(7px 8px 0 rgba(0, 0, 0, 0.55));
}

.menu-stack,
.menu-actions,
.credit-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.menu-stack {
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.4vh, 0.9rem);
}

.arcade-button,
.credit-links a {
  min-width: 10.6rem;
  min-height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--line);
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 5px 5px 0 var(--shadow);
  font-family: var(--font-pixel);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 80ms linear, box-shadow 80ms linear, background 120ms linear;
}

.arcade-button:hover,
.credit-links a:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--shadow);
}

.arcade-button:active,
.credit-links a:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--shadow);
}

.arcade-button.is-primary {
  background: var(--accent);
}

.arcade-button.is-danger {
  background: var(--danger);
  color: #fff;
}

.arcade-button.is-small {
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.45rem 0.62rem;
  font-size: 0.54rem;
}

.setting-row {
  display: grid;
  grid-template-columns: 1fr minmax(10rem, 16rem) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  line-height: 1.6;
}

.setting-row input {
  accent-color: var(--accent);
}

.setting-row strong {
  min-width: 2.5rem;
  color: var(--accent);
  text-align: right;
}

.world-topbar {
  position: absolute;
  z-index: 5;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.world-topbar > * {
  pointer-events: auto;
}

.save-chip,
.world-status {
  border: 4px solid var(--line);
  padding: 0.5rem 0.65rem;
  background: var(--accent-2);
  color: #061015;
  box-shadow: 5px 5px 0 var(--shadow);
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.world-select-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: auto minmax(20rem, min(45rem, 72vw)) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  padding: 4.75rem clamp(1rem, 4vw, 3rem) 1.3rem;
}

.world-slide {
  position: relative;
  width: min(45rem, 72vw);
  max-height: calc(100dvh - 7.2rem);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(0.45rem, 1.05vh, 0.8rem);
  padding: clamp(1rem, 2.2vh, 1.55rem) clamp(1rem, 2.3vw, 1.7rem);
  overflow: hidden;
  text-align: center;
}

.world-notebook-state {
  margin: -0.25rem 0 0;
  border: 3px solid var(--line);
  padding: 0.35rem 0.55rem;
  background: var(--accent-2);
  color: #061015;
  box-shadow: 4px 4px 0 var(--shadow);
  font-family: var(--font-pixel);
  font-size: 0.54rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.world-preview-button {
  position: relative;
  width: min(26.25rem, 42vw);
  min-height: 0;
  height: min(22.5rem, 38vh);
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.world-preview-button > img:first-child {
  width: min(100%, 26.25rem);
  max-height: min(36vh, 22.5rem);
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(10px 12px 0 rgba(0, 0, 0, 0.55));
}

.world-preview-button.is-completed {
  border: 4px solid #00c875;
  filter: brightness(0.7);
}

.world-preview-button.is-locked {
  filter: grayscale(0.8) opacity(0.5);
}

.world-preview-button.is-current {
  box-shadow: 0 0 0 4px var(--accent), 0 0 20px rgba(255, 182, 39, 0.4);
}

.world-check {
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  width: clamp(2rem, 3vw, 2.6rem);
  height: clamp(2rem, 3vw, 2.6rem);
  display: none;
  image-rendering: pixelated;
}

.world-check.is-visible {
  display: block;
}

.slider-arrow {
  min-width: 0;
  width: clamp(3rem, 5vw, 4.5rem);
  height: clamp(3rem, 5vw, 4.5rem);
  padding: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
}

#worldTitle {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

#worldPeriod {
  max-width: min(42rem, 100%);
  margin: 0.15rem 0 0;
  color: var(--paper);
  font-size: clamp(0.88rem, 1.7vw, 1.25rem);
  font-weight: 800;
  line-height: 1.55;
}

#startWorldButton {
  min-width: min(15.5rem, 78%);
}

.game-screen {
  background: #050509;
}

#gameCanvas {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 100vw;
  height: 100dvh;
  border: 0;
  background: #0b1320;
  transform: translate(-50%, -50%);
}

.game-hud {
  position: absolute;
  z-index: 20;
  left: 0.75rem;
  right: 0.75rem;
  top: 0.75rem;
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  align-items: start;
  gap: 1rem;
  pointer-events: none;
}

.game-hud > * {
  pointer-events: auto;
}

.hud-block,
.hud-stats,
.game-help,
.interaction-hint,
.reward-toast {
  border: 3px solid var(--line);
  background: rgba(255, 244, 216, 0.94);
  color: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--shadow);
}

.hud-block {
  justify-self: center;
  min-width: min(20rem, 42vw);
  padding: 0.45rem 0.6rem;
  text-align: center;
}

.hud-block strong,
.hud-block span,
.hud-stats span {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  line-height: 1.65;
  text-transform: uppercase;
}

.hud-block span {
  color: #4e442a;
}

.hud-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.55rem;
}

.hud-carnet {
  width: 54px;
  height: 42px;
  grid-row: span 2;
  object-fit: contain;
  image-rendering: pixelated;
}

#lifeHud {
  display: flex;
  gap: 0.28rem;
  align-items: center;
  min-height: 2rem;
}

.life-hearts img {
  width: 36px;
  height: 36px;
  display: block;
  image-rendering: pixelated;
}

.game-help {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  z-index: 14;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: calc(100vw - 2rem);
  padding: 0.45rem 0.6rem;
  transform: translateX(-50%);
}

.game-help span {
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  line-height: 1.6;
  white-space: nowrap;
}

.interaction-hint {
  position: absolute;
  left: 50%;
  bottom: 3.8rem;
  z-index: 18;
  display: none;
  padding: 0.5rem 0.68rem;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  line-height: 1.6;
  transform: translateX(-50%);
}

.interaction-hint.is-visible {
  display: block;
}

.source-panel {
  display: none;
}

.reward-toast {
  position: absolute;
  left: 50%;
  top: 4.8rem;
  z-index: 50;
  display: none;
  min-width: min(28rem, calc(100vw - 2rem));
  padding: 0.55rem 0.7rem;
  transform: translateX(-50%);
}

.null-taunt {
  position: absolute;
  right: 0.9rem;
  bottom: 4.25rem;
  z-index: 19;
  width: min(27rem, calc(100vw - 2rem));
  display: none;
  align-items: center;
  gap: 0.65rem;
  border: 3px solid var(--line);
  padding: 0.55rem 0.65rem;
  background: rgba(255, 244, 216, 0.96);
  color: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--shadow);
  transform: translateY(0);
  animation: tauntPop 0.28s steps(2) both;
}

.null-taunt.is-visible {
  display: flex;
}

.null-taunt img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.null-taunt span {
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.reward-toast.is-visible {
  display: grid;
  gap: 0.2rem;
}

.reward-toast strong,
.reward-toast span {
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  line-height: 1.6;
  text-transform: uppercase;
}

.final-screen {
  display: none;
}

.final-screen.is-active {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.final-card {
  width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.45rem, 1.2vh, 0.9rem);
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
  overflow: hidden;
}

.rules-card,
.complete-card,
.transition-card {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: clamp(0.75rem, 4vh, 3rem) auto 0;
  padding: clamp(1rem, 2.4vw, 1.7rem);
  text-align: center;
  overflow: hidden;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
}

.rule-box {
  min-height: 15rem;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.45rem;
  border: 3px solid var(--line);
  padding: 0.75rem;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 0.82rem;
  line-height: 1.45;
}

.rule-box img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.rule-box strong,
.rule-box kbd {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  line-height: 1.6;
}

.rule-box span {
  display: block;
}

.rule-box kbd {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  border: 2px solid var(--line);
  padding: 0.12rem 0.25rem;
  background: #fff;
  box-shadow: 2px 2px 0 var(--shadow);
}

.progress-track {
  display: flex;
  justify-content: center;
  gap: 0.42rem;
  margin-top: 0.4rem;
}

.track-node {
  position: relative;
  min-width: 2rem;
  display: grid;
  place-items: center;
  opacity: 0.42;
}

.track-node.is-done,
.track-node.is-current {
  opacity: 1;
}

.track-node img {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.track-pages {
  margin-top: 0.1rem;
  color: var(--paper);
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  line-height: 1;
}

.track-label {
  position: absolute;
  top: 2rem;
  width: 5.5rem;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  line-height: 1.35;
  text-align: center;
}

.progress-track.is-large {
  gap: clamp(0.4rem, 1.4vw, 1rem);
  margin: 1.2rem 0 2.5rem;
}

.progress-track.is-large .track-node img {
  width: 2.7rem;
  height: 2.7rem;
}

.transition-screen,
.complete-screen,
.rules-screen,
.pause-screen {
  background:
    linear-gradient(180deg, rgba(5, 5, 9, 0.24), rgba(5, 5, 9, 0.84)),
    url("./assets/background/Menu-fond.svg") center bottom / cover no-repeat,
    var(--bg);
}

.transition-card {
  position: relative;
  overflow: hidden;
}

.transition-card .transition-progress {
  margin:
    clamp(0.65rem, 1.4vh, 1rem)
    auto
    clamp(1.7rem, 3.5vh, 2.5rem);
}

.transition-map {
  width: min(34rem, 72vw);
  max-height: min(18rem, 31vh);
  display: block;
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.75;
  image-rendering: pixelated;
}

.transition-anis {
  width: clamp(3.6rem, 8vh, 5rem);
  display: block;
  margin: 0.4rem auto;
  image-rendering: pixelated;
  animation: travelBob 0.55s steps(2) infinite;
}

.transition-preview {
  width: min(16rem, 42vw);
  max-height: min(12rem, 22vh);
  display: block;
  margin: 0.7rem auto 0;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.45));
}

.complete-card p {
  color: var(--muted);
  font-weight: 800;
}

.complete-card {
  animation: completePop 0.5s ease-out both;
}

@keyframes completePop {
  0% {
    transform: scale(0.8);
  }

  55% {
    transform: scale(1.05);
  }

  80% {
    transform: scale(0.97);
  }

  100% {
    transform: scale(1);
  }
}

.story-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.75rem;
  margin: 0.8rem auto;
}

.transition-story {
  width: min(58rem, 100%);
}

.story-speaker,
.story-outro {
  border: 3px solid var(--line);
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--shadow);
}

.story-speaker *,
.story-outro,
.story-outro * {
  color: var(--paper-ink);
}

.story-speaker {
  min-height: 6.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.65rem;
  text-align: left;
}

.story-speaker img,
.story-outro img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.story-speaker figcaption,
.story-outro p {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 1.7;
}

.story-speaker figcaption {
  display: grid;
  gap: 0.32rem;
}

.character-name {
  display: block;
  color: #0b4f3a;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.story-speaker.is-null {
  background: #fff0d1;
}

.story-outro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  width: min(48rem, 100%);
  margin: 0.75rem auto;
  padding: 0.65rem;
  text-align: left;
}

@keyframes travelBob {
  0%,
  100% {
    transform: translateX(-0.4rem) translateY(0);
  }
  50% {
    transform: translateX(0.4rem) translateY(-0.35rem);
  }
}

@keyframes tauntPop {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.final-sun {
  width: clamp(4.5rem, 13vh, 8rem);
  display: block;
  margin: 0 auto -0.8rem;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.6));
}

.final-book {
  width: min(16rem, 50vw);
  max-height: min(24vh, 15rem);
  display: block;
  margin: 0 auto 1rem;
  image-rendering: pixelated;
  filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.5));
}

@media (max-width: 900px) {
  .world-select-layout {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
  }

  .slider-arrow {
    width: clamp(3rem, 18vw, 4rem);
    height: clamp(3rem, 18vw, 4rem);
  }

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

  .hud-stats {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .story-duo:not(.transition-story) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .transition-card {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    margin-top: 0.5rem;
    overflow-y: auto;
  }

  .transition-map {
    max-height: 12rem;
  }

  .transition-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-menu,
  .menu-card {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .main-menu {
    transform: translateY(-50%);
  }

  .setting-row {
    grid-template-columns: 1fr;
  }

  .arcade-button {
    width: 100%;
  }

  .world-preview-button {
    min-height: 14rem;
  }

  .hud-block {
    min-width: 0;
  }

  .hud-stats span,
  .hud-block strong,
  .hud-block span {
    font-size: 0.48rem;
  }

  .game-help {
    display: none;
  }

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

  .null-taunt {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

@media (max-height: 780px) {
  .main-menu {
    min-height: min(30rem, calc(100dvh - 6rem));
    padding: 1.45rem;
  }

  h1 {
    font-size: clamp(3.2rem, 8vh, 5rem);
  }

  h2 {
    font-size: clamp(1.05rem, 3.4vh, 1.9rem);
  }

  p,
  .tagline {
    line-height: 1.45;
  }

  .rules-grid {
    gap: 0.55rem;
  }

  .rule-box {
    min-height: auto;
    gap: 0.28rem;
    padding: 0.55rem;
    font-size: 0.72rem;
  }

  .rule-box img {
    width: 3.4rem;
    height: 3.4rem;
  }

  .main-menu .tagline {
    font-size: 0.86rem;
  }

  .arcade-button,
  .credit-links a {
    min-height: 3.25rem;
    font-size: 0.7rem;
    padding: 0.78rem 0.9rem;
  }

  .progress-track.is-large {
    margin: 0.7rem 0 1.3rem;
  }

  .final-card {
    padding: 0.8rem;
  }

  .final-book {
    width: min(12rem, 42vw);
  }
}
