@import url('assets/fonts/minish/fonts.css');
/* Minish Cap has its own type, layout and surfaces. The 2004–05 instruction
   booklet supplies the green cloth, yellow paper, illustrated banners and folios. */
:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --forest: #426521;
  --forest-deep: #243c17;
  --paper: #f3e4a1;
  --ink: #392b16;
  --green: #327637;
  --ochre: #b0781b;
  --body: 'Barlow Semi Condensed', Arial, sans-serif;
  --display: 'Fondamento', Georgia, serif;
  --rag: polygon(
    0.7% 1%,
    12% 0.5%,
    18% 1.1%,
    18.8% 0.6%,
    39% 0.8%,
    40% 0,
    64% 0.6%,
    76% 0.2%,
    77% 0.8%,
    99.5% 0.6%,
    99% 17%,
    99.8% 19%,
    99.3% 40%,
    100% 42%,
    99.4% 65%,
    100% 78%,
    99.1% 99%,
    87% 99.5%,
    86% 98.9%,
    67% 99.7%,
    65% 99.1%,
    39% 99.4%,
    37% 98.9%,
    16% 99.5%,
    15% 99%,
    0.4% 99.3%,
    1% 81%,
    0.2% 79%,
    0.7% 60%,
    0 58%,
    0.9% 38%,
    0.2% 35%,
    0.9% 16%,
    0.1% 14%
  );
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--forest);
  background-image:
    linear-gradient(90deg, #1c371639, transparent 25% 75%, #1c371652),
    url('assets/minish/manual-paper-4x.webp');
  background-blend-mode: normal, multiply;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #aa3432;
  outline-offset: 6px;
}
::selection {
  background: #c8a047;
  color: #24291b;
}
.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;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 99;
  padding: 12px 20px;
  background: var(--paper);
}
.skip-link:focus {
  top: 10px;
}
.forge-strip {
  min-height: 70px;
  padding: 12px max(28px, calc((100vw - 1260px) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
  background: #243d1def;
  color: #efe9c8;
  border-bottom: 3px solid #adc15b66;
  box-shadow: 0 3px 10px #18301a35;
}
.forge-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.forge-mark img {
  width: 30px;
  height: 30px;
}
.forge-mark > span {
  font-size: 20px;
  letter-spacing: -0.2px;
}
.forge-mark b {
  font-weight: 700;
}
.strip-edition {
  margin: auto;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: #bac696;
}
.forge-strip nav {
  display: flex;
  gap: 25px;
  font-size: 15px;
  font-weight: 600;
}
.forge-strip nav a:hover {
  color: #fff;
}
.theme-toggle {
  border: 1px solid #b8ca8266;
  background: transparent;
  border-radius: 2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
.theme-sun {
  display: none;
}
:root[data-theme='dark'] .theme-sun {
  display: block;
}
:root[data-theme='dark'] .theme-moon {
  display: none;
}
.minish-journal {
  width: min(1280px, calc(100% - 64px));
  margin: 32px auto 0;
}
.folio {
  position: relative;
  padding: 7px 7px 9px;
  background: #503416;
  clip-path: var(--rag);
  margin-bottom: 50px;
  filter: drop-shadow(0 7px 6px #1a290c77);
}
.folio-inner {
  position: relative;
  padding: 42px 51px 24px;
  background-color: var(--paper);
  background-image:
    linear-gradient(#fff3b44d, #f7edb742), url('assets/minish/manual-paper-4x.webp');
  background-size:
    auto,
    650px 320px;
  clip-path: var(--rag);
}
.platform-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #89682665;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #776232;
}
.gba-wordmark {
  font-size: 21px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.6px;
  color: #4b472d;
}
.gba-wordmark b {
  font-size: 0.72em;
  letter-spacing: 1px;
  vertical-align: 2px;
}
.cover-folio .folio-inner {
  padding-top: 25px;
}
.cover-layout {
  position: relative;
  min-height: 618px;
  margin-top: 25px;
}
.cover-link {
  position: absolute;
  width: 29%;
  max-width: 315px;
  left: -5px;
  bottom: 10px;
  z-index: 1;
}
.cover-link img {
  width: 100%;
  filter: drop-shadow(4px 6px 2px #53431d38);
}
.cover-link figcaption {
  font-family: var(--display);
  color: #77602d;
  text-align: center;
  font-size: 17px;
  transform: rotate(-4deg);
  margin-top: 4px;
}
.cover-copy {
  margin-left: 33%;
  position: relative;
  padding-bottom: 10px;
}
.cover-copy h1 {
  width: 345px;
  max-width: 70%;
  margin: 0 0 6px 34px;
}
.cover-copy h1 svg {
  width: 100%;
  aspect-ratio: 816/417;
  filter: drop-shadow(1px 3px 1px #6a592b38);
}
.manual-ribbon {
  position: relative;
  background: #aa781e;
  background-image:
    linear-gradient(#704e2255 0 11%, #c3943288 11% 87%, #704e2255 87%),
    url('assets/minish/manual-paper-4x.webp');
  background-blend-mode: multiply;
  box-shadow: 0 4px 3px #62481340;
  padding: 13px 26px 15px;
  color: #fff3cf;
  border: 2px solid #664419;
  clip-path: polygon(
    0 4%,
    5% 1%,
    15% 3%,
    17% 0,
    36% 3%,
    50% 0,
    68% 3%,
    76% 0,
    96% 3%,
    100% 0,
    99% 17%,
    100% 40%,
    98.5% 61%,
    100% 96%,
    84% 99%,
    80% 96%,
    68% 100%,
    50% 97%,
    37% 100%,
    25% 97%,
    21% 100%,
    0 97%,
    1.2% 76%,
    0 60%,
    1.3% 32%
  );
}
.manual-ribbon h2,
.manual-ribbon p {
  font: 400 clamp(23px, 2.6vw, 34px)/1.2 var(--display);
  color: #fffbed;
  text-shadow:
    -1px -1px #302010,
    1px -1px #302010,
    -1px 1px #302010,
    2px 2px #302010;
  -webkit-text-stroke: 0.25px #392b16;
  text-wrap: balance;
}
.cover-ribbon {
  margin: 12px 0 23px -9px;
  clip-path: none;
  border: 0;
  padding-left: 52px;
  max-width: 560px;
  transform: rotate(-1deg);
}
.cover-ribbon:before,
.cover-ribbon:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-block: 3px solid #5937168c;
  clip-path: polygon(
    0 0,
    100% 0,
    98% 14%,
    100% 42%,
    98% 53%,
    100% 100%,
    0 100%,
    2% 90%,
    0 60%,
    2% 40%
  );
}
.cover-ribbon p {
  font-size: 29px;
}
.ribbon-picori {
  position: absolute;
  width: 70px;
  height: 110px;
  object-fit: contain;
  left: -22px;
  bottom: -12px;
  z-index: 3;
  transform: rotate(-5deg);
}
.cover-copy > h2 {
  font: 400 clamp(36px, 4vw, 54px)/1.1 var(--display);
  color: var(--green);
  letter-spacing: -0.8px;
  max-width: 490px;
  margin-bottom: 17px;
}
.cover-intro {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 500;
  max-width: 390px;
  margin-bottom: 23px;
}
.cover-ezlo {
  width: 170px;
  position: absolute;
  right: -9px;
  bottom: 65px;
  transform: rotate(7deg);
  z-index: 2;
}
.cover-ezlo img {
  width: 100%;
  filter: drop-shadow(3px 5px 2px #5a431a40);
}
.cover-ezlo figcaption {
  font: 400 15px/1.2 var(--display);
  color: #755b25;
  text-align: center;
  transform: rotate(-10deg);
  margin-top: 5px;
}
.manual-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 49px;
  padding: 11px 23px;
  color: #fff6d3;
  background: #366e31;
  border: 2px solid #244c20;
  box-shadow:
    inset 0 0 0 1px #a0ba6088,
    2px 3px 0 #79561d55;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.2;
  clip-path: polygon(2% 0, 98% 2%, 100% 12%, 99% 90%, 97% 100%, 2% 98%, 0 85%, 1% 10%);
  transition:
    background 0.18s,
    transform 0.18s;
}
.manual-button svg {
  width: 20px;
  height: 20px;
}
.manual-button:hover {
  background: #234d22;
  transform: translateY(-2px);
}
.cover-repo {
  display: block;
  width: max-content;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #644822;
}
.cover-repo span {
  margin-left: 14px;
}
.contents {
  position: relative;
  max-width: 1020px;
  margin: 22px auto 0;
  padding: 20px 24px 23px;
  background: #ffface80;
  border-top: 2px solid #ab823a80;
  border-bottom: 1px solid #ab823a66;
  box-shadow: 0 6px 0 -3px #5c3b1521;
}
.contents > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font: 400 24px var(--display);
  color: #76571a;
}
.contents > p svg {
  width: 22px;
  height: 19px;
  color: #b19247;
}
.contents > div {
  display: flex;
  gap: 32px;
  margin-top: 15px;
}
.contents a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  white-space: nowrap;
  font: 400 19px var(--display);
}
.contents a i {
  border-bottom: 3px dotted #b49347;
  flex: 1;
  min-width: 12px;
}
.contents a b {
  font: 400 20px var(--display);
  color: #f9f3cd;
  background: #609435;
  padding: 2px 6px;
  border-radius: 38% 45% 32% 44%;
  outline: 2px solid #c0bd67;
}
.contents a:hover {
  color: var(--green);
}
.chapter-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 -15px 30px;
}
.chapter-heading .manual-ribbon {
  flex: 0 1 auto;
  min-width: 0;
  padding: 15px 30px;
  max-width: 780px;
}
.page-leaf {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #6a9d32;
  filter: drop-shadow(2px 2px #87672552);
}
.page-leaf svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-leaf b {
  font: 400 24px var(--display);
  color: #fffbe0;
  z-index: 1;
  text-shadow: 1px 2px #456323;
  padding-bottom: 7px;
}
.chapter-aside {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #7b6430;
  text-align: right;
  max-width: 100px;
  font-weight: 600;
}
.gallery-intro {
  font: 400 25px/1.35 var(--display);
  text-align: center;
  color: #476228;
  margin: 20px 0 35px;
}
.gallery-intro > span {
  font: 500 18px var(--body);
  color: var(--ink);
}
.hardware-spread {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.gallery-selector {
  border-right: 1px solid #9d7a334f;
  padding-right: 25px;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gallery-thumb {
  display: block;
  position: relative;
  border: 2px solid transparent;
  padding: 5px 5px 8px;
  background: #fff8cf50;
  transition:
    border-color 0.15s,
    background 0.15s;
  width: 100%;
  transform: rotate(-1deg);
}
.gallery-thumb[aria-pressed='true'] {
  background: #fff9d8;
  border-color: #49732e;
  box-shadow: 3px 3px 0 #92702c30;
}
.gallery-thumb:hover {
  background: #fff9d8;
}
.gallery-thumb:nth-child(2) {
  transform: rotate(1.5deg);
}
.gallery-thumb svg {
  width: 100%;
  aspect-ratio: 5/3;
  background: #233b21;
  border: 1px solid #6c7e43;
}
.thumb-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding-top: 9px;
  text-align: left;
}
.thumb-label b {
  color: #926523;
  font-size: 15px;
  font-weight: 500;
}
.hardware-plate {
  position: relative;
  min-width: 0;
}
.gba-console {
  position: relative;
  aspect-ratio: 1200/713;
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 16px 9px #5c4d333a);
}
.gba-photograph {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.gba-display-plane {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.gba-display-plane foreignObject {
  overflow: hidden;
  pointer-events: auto;
}
.gba-display-content {
  width: 400px;
  height: 240px;
  overflow: hidden;
}
.gallery-stage {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  width: 400px;
  height: 240px;
  border: 0;
  background: #172019;
  overflow: hidden;
}
.gallery-screen {
  display: block;
  width: 100%;
  height: 100%;
  background: #152017;
}
.gallery-screen > svg {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.gallery-stage:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, #fff1, transparent 50%, #0f211511);
  box-shadow: inset 0 0 8px #0008;
}
.gallery-preview-marker {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 6px;
  background: #172a20c9;
  color: #fff;
}
.expand-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  font-size: 12px;
  background: #152416e6;
  color: #fff;
}
.ui-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.expand-hint .ui-icon {
  width: 12px;
  height: 12px;
}
.hardware-caption {
  text-align: center;
  font-size: 17px;
  color: #555d3e;
  margin: 18px auto 10px;
  font-weight: 500;
}
.hardware-caption span {
  display: block;
  color: #7c7049;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 3px;
}
.gallery-annotation {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 35px 0 27px;
  background: #fffbd496;
  border-left: 4px solid #719644;
  padding: 17px 20px;
}
.annotation-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #b7801e;
  color: white;
  border-radius: 50%;
  font: 400 25px var(--display);
}
.gallery-annotation h3 {
  font: 400 23px var(--display);
  color: var(--green);
  margin-bottom: 5px;
}
.gallery-annotation p {
  font-size: 17px;
  line-height: 1.45;
  max-width: 530px;
}
.gallery-annotation .preview-note {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid #a9945355;
  font-size: 13px;
  line-height: 1.45;
  color: #766138;
}
.folio-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0 3px;
  border-top: 1px solid #a8853b70;
  color: #7a5f2c;
  font-size: 14px;
}
.folio-bottom > span {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.folio-bottom a:hover {
  color: #2d692d;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.world-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  margin: 75px 0 70px;
}
.forest-window {
  position: relative;
  transform: rotate(-2deg);
  border: 9px solid #b59444;
  outline: 2px solid #3b3016;
  box-shadow: 0 10px 20px #15291a6b;
}
.forest-window > img {
  width: 100%;
  aspect-ratio: 1564/2046;
  object-fit: cover;
}
.forest-window figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 20px 13px;
  background: linear-gradient(transparent, #19382bea);
  color: #f1efbd;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
}
.world-paper {
  margin: 0 0 0 -24px;
  transform: rotate(1deg);
  z-index: 1;
}
.world-paper .folio-inner {
  padding: 44px 44px 38px;
}
.world-paper .page-leaf {
  position: absolute;
  right: 28px;
  top: 23px;
  width: 53px;
  height: 53px;
}
.small-chapter {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #88722f;
}
.world-paper h2 {
  font: 400 clamp(37px, 3.5vw, 49px)/1.16 var(--display);
  color: var(--green);
  margin: 25px 0;
}
.world-paper h2 em {
  font-size: 0.86em;
  color: #9b6b24;
  font-style: normal;
}
.world-opening {
  font: 400 22px/1.5 var(--display);
  margin-bottom: 19px;
}
.world-paper p:not(.small-chapter):not(.world-opening) {
  font-size: 19px;
  line-height: 1.5;
}
.kinstone-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 29px -13px 26px;
  padding: 18px 14px;
  background: #fffbd87d;
  border-block: 1px solid #b9984a77;
}
.kinstone-note > img {
  width: 84px;
  flex-shrink: 0;
  transform: rotate(-10deg);
}
.kinstone-note h3 {
  font: 400 20px/1.2 var(--display);
  color: var(--green);
  margin-bottom: 7px;
}
.kinstone-note p {
  font-size: 16px !important;
  line-height: 1.4 !important;
}
.ink-link {
  font-size: 16px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #654b24;
}
.ink-link > span {
  margin-left: 6px;
}
.port-folio {
  margin-bottom: 26px;
}
.chapter-kinstones {
  width: 82px;
  height: 74px;
  object-fit: contain;
  margin-left: auto;
  transform: rotate(12deg);
}
.port-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 8px 10px 28px;
}
.green-heading {
  font: 400 29px var(--display);
  color: var(--green);
  position: relative;
  border-bottom: 2px solid #4e8b4288;
  padding-bottom: 7px;
  margin-bottom: 15px;
}
.green-heading:after {
  content: '';
  width: 50px;
  height: 5px;
  position: absolute;
  right: 0;
  bottom: -3px;
  background: #588f35;
  clip-path: polygon(0 70%, 100% 0, 88% 50%, 60% 60%);
}
.companion-notes > p {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 445px;
}
.map-inset {
  position: relative;
  width: 340px;
  max-width: 95%;
  margin: 37px auto 0;
  background: #4d7c36;
  padding: 7px 7px 8px;
  box-shadow: 5px 6px 0 #9674403b;
  transform: rotate(-2deg);
}
.map-inset > img {
  width: 100%;
  image-rendering: pixelated;
  border: 2px solid #2d4926;
}
.map-label {
  position: absolute;
  left: -9px;
  top: -20px;
  background: #8b4825;
  border: 2px solid #f6eab1;
  box-shadow: 2px 2px #79531e6b;
  padding: 3px 14px;
  color: #fff6d9;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.map-inset figcaption {
  text-align: center;
  color: #e5eed2;
  font-size: 13px;
  margin-top: 6px;
}
.quest-notes {
  position: relative;
  border-left: 1px dashed #9c7b36;
  padding-left: 48px;
}
.quest-title {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 214px;
}
.quest-title img {
  width: 117px;
  max-height: 195px;
  object-fit: contain;
  order: 2;
  margin-left: auto;
}
.quest-title h3 {
  font: 400 39px/1.12 var(--display);
  color: #426b2c;
  margin-top: 8px;
}
.completion-line {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}
.completion-value {
  font: 400 53px/1 var(--display);
  color: #3e6e28;
  white-space: nowrap;
}
.completion-value span {
  font-size: 27px;
}
.completion-line strong {
  font: 400 22px var(--display);
}
.completion-line p {
  font-size: 17px;
  line-height: 1.4;
  margin-top: 4px;
}
.completion-meter {
  height: 10px;
  padding: 2px;
  border: 1px solid #8c803e;
  margin: 17px 0 26px;
  background: #bbad655e;
}
.completion-meter > span {
  display: block;
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(90deg, #548435 0 17px, #b6cb8059 17px 20px);
}
.status-credit {
  font-size: 12px;
  color: #776237;
  margin-top: 12px;
}
.credits-note {
  margin: 24px 10px;
  padding: 20px 25px;
  border-block: 1px solid #b79a54;
  background: #fff9ce61;
}
.credits-note h3 {
  font: 400 20px var(--display);
  color: #756026;
  margin-bottom: 6px;
}
.credits-note p {
  font-size: 17px;
  line-height: 1.55;
}
.credits-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.journal-footer {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #f0ebc8;
  padding: 15px 8px 35px;
}
.journal-footer .forge-mark > span {
  font-size: 17px;
}
.journal-footer > a:nth-child(2) {
  font: 400 19px var(--display);
}
.journal-footer > a:nth-child(2) span {
  margin-left: 13px;
}
.art-credits {
  flex-basis: 100%;
  font-size: 13px;
  color: #c4d0ad;
  padding-top: 18px;
  border-top: 1px solid #c3cdaa4a;
}
.art-credits summary {
  cursor: pointer;
  width: max-content;
}
.art-credits p {
  max-width: 900px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 15px;
}
.art-credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The original manuscript stays warm in either theme; night mode changes its
   surrounding cloth and lowers the paper luminance without erasing the art. */
:root[data-theme='dark'] {
  color-scheme: dark;
  --forest: #243921;
  --forest-deep: #17281b;
  --paper: #ded09d;
}
:root[data-theme='dark'] .folio-inner {
  background-image:
    linear-gradient(#d7c28f56, #dbc69360), url('assets/minish/manual-paper-4x.webp');
}
:root[data-theme='dark'] .forge-strip {
  background: #172b1b;
}
:root[data-theme='dark'] .contents {
  background: #fff9d236;
}
.lightbox {
  border: 6px double #bea765;
  border-radius: 0;
  background: #f0e3b3 url('assets/minish/manual-paper-4x.webp');
  color: #3b2e1a;
  width: min(1150px, 94vw);
  max-height: 94dvh;
  padding: 19px 23px;
  box-shadow: 0 25px 90px #0009;
  overflow: auto;
}
.lightbox::backdrop {
  background: #152c1bea;
  backdrop-filter: blur(7px);
}
.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 15px;
}
.lightbox-title {
  font: 400 25px var(--display);
  color: #3f642d;
}
.lightbox-close,
.lightbox-arrows button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #375d29;
  background: #47773b;
  color: white;
}
.lightbox-screen {
  height: min(64dvh, 650px);
  display: grid;
  place-items: center;
  background: #152319;
  border: 4px solid #4b7036;
  overflow: hidden;
}
.lightbox-screen svg {
  width: 100%;
  height: 100%;
}
.lightbox-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 15px;
}
.lightbox-controls > p {
  font-size: 14px;
  color: #6a582d;
}
.lightbox-arrows {
  display: flex;
  gap: 10px;
}
.lightbox-close:hover,
.lightbox-arrows button:hover {
  background: #264a26;
}
body:has(.lightbox[open]) {
  overflow: hidden;
}
@media (min-width: 1500px) {
  .cover-layout {
    min-height: 670px;
  }
  .cover-link {
    max-width: 335px;
  }
  .cover-copy > h2 {
    font-size: 57px;
  }
  .cover-intro {
    font-size: 23px;
    max-width: 430px;
  }
  .cover-ezlo {
    right: 2px;
    width: 195px;
    bottom: 77px;
  }
  .cover-copy h1 {
    width: 370px;
  }
  .cover-ribbon {
    max-width: 600px;
  }
  .cover-ribbon p {
    font-size: 32px;
  }
}
@media (max-width: 1100px) {
  .minish-journal {
    width: calc(100% - 40px);
  }
  .folio-inner {
    padding: 32px 34px 23px;
  }
  .cover-layout {
    min-height: 575px;
  }
  .cover-copy h1 {
    width: 300px;
  }
  .cover-copy > h2 {
    font-size: 43px;
    max-width: 350px;
  }
  .cover-intro {
    font-size: 19px;
    max-width: 330px;
  }
  .cover-ribbon {
    margin-bottom: 19px;
    padding-left: 44px;
    padding-right: 15px;
  }
  .cover-ribbon p {
    font-size: 25px;
  }
  .cover-ezlo {
    width: 120px;
    right: -7px;
    bottom: 38px;
  }
  .cover-ezlo figcaption {
    font-size: 13px;
  }
  .cover-link {
    width: 29%;
    bottom: 45px;
  }
  .cover-repo {
    padding-top: 12px;
  }
  .contents > div {
    gap: 18px;
  }
  .contents a {
    font-size: 16px;
    gap: 8px;
  }
  .contents > p {
    font-size: 22px;
  }
  .chapter-heading {
    gap: 13px;
  }
  .chapter-heading .manual-ribbon {
    padding: 14px 22px;
  }
  .chapter-aside {
    display: none;
  }
  .hardware-spread {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 18px;
  }
  .gallery-selector {
    padding-right: 14px;
  }
  .gallery-annotation {
    gap: 14px;
    padding: 15px;
  }
  .gallery-annotation .preview-note {
    max-width: 145px;
    padding-left: 15px;
  }
  .world-paper .folio-inner {
    padding: 35px 30px 29px;
  }
  .world-paper h2 {
    font-size: 38px;
  }
  .world-paper p:not(.small-chapter):not(.world-opening) {
    font-size: 18px;
  }
  .world-opening {
    font-size: 21px;
  }
  .world-paper .page-leaf {
    right: 15px;
    top: 15px;
    width: 45px;
    height: 45px;
  }
  .world-paper .small-chapter {
    max-width: 160px;
    font-size: 10px;
  }
  .kinstone-note {
    margin: 22px -5px;
    padding: 13px 10px;
    gap: 12px;
  }
  .kinstone-note > img {
    width: 62px;
  }
  .port-spread {
    gap: 32px;
    padding-inline: 0;
  }
  .quest-notes {
    padding-left: 30px;
  }
  .quest-title h3 {
    font-size: 34px;
  }
  .quest-title img {
    width: 92px;
  }
  .completion-line {
    gap: 14px;
  }
  .completion-value {
    font-size: 46px;
  }
  .completion-line strong {
    font-size: 21px;
  }
  .companion-notes > p {
    font-size: 19px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 14px;
  }
  .forge-strip {
    min-height: 64px;
    padding: 12px 20px;
    gap: 17px;
  }
  .strip-edition {
    display: none;
  }
  .forge-strip nav {
    margin-left: auto;
    gap: 15px;
    font-size: 14px;
  }
  .forge-mark > span {
    font-size: 18px;
  }
  .forge-mark img {
    width: 26px;
    height: 26px;
  }
  .forge-mark {
    gap: 8px;
  }
  .theme-toggle {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .minish-journal {
    width: calc(100% - 26px);
    margin-top: 19px;
  }
  .folio {
    padding: 5px 5px 7px;
    margin-bottom: 30px;
  }
  .folio-inner {
    padding: 28px 25px 20px;
  }
  .cover-folio .folio-inner {
    padding: 18px 22px 24px;
  }
  .platform-line {
    padding-bottom: 12px;
    gap: 15px;
  }
  .gba-wordmark {
    font-size: 17px;
    white-space: nowrap;
  }
  .platform-line > span:last-child {
    font-size: 9px;
    letter-spacing: 1px;
    max-width: 135px;
    text-align: right;
    line-height: 1.4;
  }
  .cover-layout {
    min-height: 550px;
    margin-top: 15px;
  }
  .cover-copy {
    margin-left: 34%;
  }
  .cover-copy h1 {
    max-width: 100%;
    width: 280px;
    margin-left: 0;
    margin-bottom: 28px;
  }
  .cover-ribbon {
    margin-left: -14px;
    max-width: none;
    padding: 10px 12px 11px 30px;
  }
  .cover-ribbon p {
    font-size: 21px;
  }
  .ribbon-picori {
    width: 46px;
    height: 75px;
    left: -21px;
    bottom: -8px;
  }
  .cover-copy > h2 {
    font-size: 36px;
    margin-top: 21px;
    max-width: 300px;
  }
  .cover-intro {
    font-size: 18px;
    max-width: 295px;
    line-height: 1.45;
  }
  .cover-link {
    width: 34%;
    left: -17px;
    bottom: 80px;
  }
  .cover-ezlo {
    display: none;
  }
  .cover-copy .manual-button {
    font-size: 17px;
    gap: 15px;
    padding: 10px 15px;
    min-height: 46px;
  }
  .cover-repo {
    font-size: 15px;
  }
  .contents {
    padding: 17px 17px 21px;
    margin-top: 5px;
  }
  .contents > div {
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
  }
  .contents a {
    font-size: 20px;
    gap: 13px;
  }
  .contents > p {
    font-size: 21px;
    gap: 12px;
  }
  .contents a b {
    font-size: 20px;
  }
  .contents > p svg {
    width: 17px;
    height: 15px;
  }
  .chapter-heading {
    margin: 0 -9px 22px;
    gap: 8px;
  }
  .page-leaf {
    width: 48px;
    height: 48px;
  }
  .page-leaf b {
    font-size: 21px;
  }
  .chapter-heading .manual-ribbon {
    padding: 12px 19px;
  }
  .manual-ribbon h2 {
    font-size: 25px;
  }
  .gallery-intro {
    font-size: 23px;
    margin: 15px 0 21px;
  }
  .gallery-intro > span {
    font-size: 16px;
    display: inline-block;
    margin-top: 7px;
    max-width: 350px;
  }
  .hardware-spread {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .hardware-plate {
    order: 0;
    width: calc(100% + 32px);
    margin-inline: -16px;
  }
  .gallery-selector {
    order: 1;
    border: 0;
    padding: 0;
    width: 100%;
    max-width: 540px;
  }
  .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
  .gallery-thumb {
    padding: 4px 4px 8px;
  }
  .thumb-label {
    font-size: 14px;
    justify-content: center;
    gap: 6px;
  }
  .thumb-label b {
    font-size: 12px;
  }
  .hardware-caption {
    font-size: 15px;
    margin: 14px auto 0;
  }
  .hardware-caption span {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .gallery-annotation {
    flex-wrap: wrap;
    gap: 13px;
    margin: 23px 0 20px;
    padding: 15px;
  }
  .gallery-annotation > div {
    flex: 1;
    min-width: 0;
  }
  .gallery-annotation h3 {
    font-size: 21px;
  }
  .gallery-annotation p {
    font-size: 16px;
  }
  .annotation-number {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
  .gallery-annotation .preview-note {
    max-width: none;
    flex-basis: 100%;
    border: 0;
    border-top: 1px solid #b19a594a;
    margin: 0;
    padding: 11px 0 0 47px;
    font-size: 12px;
  }
  .gallery-annotation .preview-note br {
    display: none;
  }
  .folio-bottom {
    padding-top: 16px;
    font-size: 13px;
    gap: 12px;
  }
  .folio-bottom > span {
    display: none;
  }
  .world-spread {
    grid-template-columns: 1fr;
    margin: 45px 9px 38px;
    gap: 0;
  }
  .forest-window {
    width: 89%;
    justify-self: start;
    border-width: 7px;
    transform: rotate(-2deg);
  }
  .forest-window > img {
    aspect-ratio: 1/1.12;
    object-position: 50% 76%;
  }
  .forest-window figcaption {
    font-size: 10px;
    bottom: auto;
    top: 0;
    padding: 13px 10px 24px;
    background: linear-gradient(#173722aa, transparent);
  }
  .world-paper {
    width: 92%;
    margin: -40px 0 0;
    justify-self: end;
    transform: rotate(1deg);
  }
  .world-paper .folio-inner {
    padding: 32px 27px 30px;
  }
  .world-paper h2 {
    font-size: 39px;
    margin: 20px 0;
  }
  .world-paper .small-chapter {
    font-size: 10px;
    max-width: 180px;
  }
  .world-paper .page-leaf {
    width: 42px;
    height: 42px;
    right: 18px;
    top: 19px;
  }
  .world-paper p:not(.small-chapter):not(.world-opening) {
    font-size: 18px;
  }
  .world-opening {
    font-size: 21px;
  }
  .kinstone-note > img {
    width: 70px;
  }
  .kinstone-note {
    margin: 24px -7px;
  }
  .ink-link {
    font-size: 16px;
  }
  .chapter-kinstones {
    display: none;
  }
  .port-spread {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 0;
  }
  .green-heading {
    font-size: 27px;
  }
  .companion-notes > p {
    max-width: none;
    font-size: 20px;
  }
  .map-inset {
    width: 350px;
    max-width: 90%;
    margin: 34px auto 5px;
  }
  .quest-notes {
    border-left: 0;
    border-top: 2px solid #9c7b3655;
    padding: 23px 0 0;
  }
  .quest-title {
    min-height: 180px;
    max-width: 450px;
    margin: auto;
  }
  .quest-title img {
    width: 105px;
    height: 175px;
  }
  .quest-title h3 {
    font-size: 40px;
  }
  .completion-line {
    gap: 20px;
    margin-top: 20px;
  }
  .completion-value {
    font-size: 56px;
  }
  .completion-line strong {
    font-size: 22px;
  }
  .completion-line p {
    font-size: 18px;
  }
  .quest-notes > .manual-button {
    width: 100%;
    justify-content: center;
  }
  .status-credit {
    text-align: center;
  }
  .credits-note {
    margin: 30px 0 20px;
    padding: 17px;
  }
  .credits-note p {
    font-size: 16px;
  }
  .journal-footer {
    gap: 19px;
    padding: 6px 12px 25px;
  }
  .journal-footer .forge-mark > span {
    font-size: 16px;
  }
  .journal-footer > a:nth-child(2) {
    font-size: 16px;
  }
  .art-credits {
    padding-top: 17px;
  }
  .lightbox {
    padding: 12px;
    border-width: 5px;
  }
  .lightbox-title {
    font-size: 21px;
  }
  .lightbox-screen {
    height: min(58dvh, 500px);
  }
  .lightbox-controls > p {
    font-size: 13px;
  }
  .lightbox-arrows button,
  .lightbox-close {
    width: 38px;
    height: 38px;
  }
  .lightbox-header {
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .forge-strip {
    padding: 11px 15px;
    gap: 11px;
  }
  .forge-strip nav {
    gap: 13px;
  }
  .forge-strip nav a {
    font-size: 13px;
  }
  .forge-mark > span {
    font-size: 17px;
  }
  .forge-mark img {
    width: 24px;
    height: 24px;
  }
  .forge-strip .forge-mark {
    gap: 6px;
  }
  .minish-journal {
    width: calc(100% - 16px);
    margin-top: 13px;
  }
  .cover-folio .folio-inner {
    padding: 16px 19px 23px;
  }
  .cover-layout {
    min-height: 626px;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
  }
  .cover-copy {
    margin: 0;
    padding-bottom: 0;
  }
  .cover-copy h1 {
    width: 245px;
    max-width: 80%;
    margin: 0 auto 10px;
  }
  .cover-ribbon {
    margin: 10px -2px 19px 24px;
    padding-left: 34px;
    padding-right: 10px;
    transform: rotate(-1deg);
  }
  .cover-ribbon p {
    font-size: 22px;
  }
  .ribbon-picori {
    left: -25px;
    width: 50px;
    height: 80px;
  }
  .cover-copy > h2 {
    font-size: 36px;
    line-height: 1.12;
    margin: 0 0 15px 31%;
    letter-spacing: -0.9px;
  }
  .cover-intro {
    margin-left: 35%;
    font-size: 18px;
    line-height: 1.38;
    max-width: none;
    min-height: 154px;
  }
  .cover-link {
    left: -15px;
    bottom: 77px;
    width: 43%;
    max-width: 155px;
    z-index: 0;
  }
  .cover-link figcaption {
    font-size: 13px;
  }
  .cover-copy .manual-button {
    position: relative;
    margin-left: 34%;
    font-size: 16px;
    padding: 10px 11px;
    gap: 8px;
    width: 66%;
    min-height: 48px;
  }
  .cover-copy .manual-button svg {
    width: 17px;
    flex-shrink: 0;
  }
  .cover-repo {
    position: relative;
    margin-left: 34%;
    font-size: 14px;
    padding: 14px 1px;
    max-width: 66%;
  }
  .cover-repo span {
    margin-left: 7px;
  }
  .platform-line {
    gap: 10px;
  }
  .gba-wordmark {
    font-size: 15px;
  }
  .platform-line > span:last-child {
    font-size: 8px;
    max-width: 105px;
  }
  .contents {
    margin-top: -8px;
    padding: 18px 12px;
  }
  .contents > p {
    font-size: 20px;
    gap: 10px;
  }
  .contents a {
    font-size: 18px;
  }
  .contents > div {
    gap: 13px;
  }
  .folio-inner {
    padding: 25px 18px 17px;
  }
  .chapter-heading {
    gap: 5px;
  }
  .chapter-heading .manual-ribbon {
    padding: 12px 14px;
  }
  .manual-ribbon h2 {
    font-size: 23px;
  }
  .page-leaf {
    width: 42px;
    height: 42px;
  }
  .page-leaf b {
    font-size: 19px;
  }
  .gallery-intro {
    font-size: 21px;
  }
  .gallery-intro > span {
    font-size: 16px;
  }
  .gallery-thumbs {
    gap: 7px;
  }
  .thumb-label {
    display: block;
    font-size: 13px;
    text-align: center;
    padding-top: 7px;
    line-height: 1.2;
  }
  .thumb-label b {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
  }
  .hardware-plate {
    width: calc(100% + 24px);
    margin-inline: -12px;
  }
  .hardware-spread {
    gap: 22px;
  }
  .gallery-annotation {
    padding: 13px 10px;
    gap: 10px;
  }
  .gallery-annotation h3 {
    font-size: 20px;
  }
  .gallery-annotation p {
    font-size: 16px;
  }
  .gallery-annotation .preview-note {
    padding-left: 0;
  }
  .world-spread {
    margin-inline: 5px;
  }
  .world-paper {
    width: 95%;
  }
  .forest-window {
    width: 94%;
  }
  .world-paper .folio-inner {
    padding: 30px 23px 29px;
  }
  .world-paper h2 {
    font-size: 35px;
  }
  .world-opening {
    font-size: 19px;
  }
  .kinstone-note {
    gap: 12px;
    padding: 13px 10px;
  }
  .kinstone-note > img {
    width: 53px;
  }
  .kinstone-note h3 {
    font-size: 20px;
  }
  .port-spread .companion-notes > p {
    font-size: 19px;
  }
  .quest-title h3 {
    font-size: 36px;
  }
  .quest-title img {
    width: 100px;
  }
  .completion-value {
    font-size: 48px;
  }
  .completion-line {
    gap: 18px;
  }
  .completion-line p {
    font-size: 17px;
  }
  .completion-line strong {
    font-size: 21px;
  }
  .journal-footer > a:nth-child(2) {
    font-size: 16px;
  }
  .lightbox-controls {
    gap: 10px;
  }
  .lightbox-controls > p {
    font-size: 12px;
    max-width: 160px;
  }
  .lightbox-arrows {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* The cover keeps the printed manual's Triforce endmark and readable margins. */
.cover-copy:before {
  content: '';
  position: absolute;
  right: 0;
  top: 25px;
  width: 145px;
  height: 40px;
  opacity: 0.25;
  background: url('assets/minish/triforce-border.svg') left center/48px 40px repeat-x;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .cover-copy:before {
    width: 92px;
    background-size: 38px 32px;
    top: 15px;
  }
}
@media (max-width: 760px) {
  .cover-copy:before {
    display: none;
  }
}
@media (max-width: 480px) {
  .cover-link {
    width: 38%;
    max-width: 138px;
    left: -9px;
    bottom: 86px;
  }
  .cover-intro {
    margin-left: 37%;
  }
  .cover-copy .manual-button,
  .cover-repo {
    margin-left: 37%;
    width: 63%;
    max-width: 63%;
  }
}

body {
  background-size:
    auto,
    650px 320px;
}
.folio-inner,
.manual-ribbon,
.lightbox {
  background-size: 650px 320px;
}

/* Two generations of handhelds, within the same illustrated booklet. */
.contents > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 28px;
}
.hardware-comparison {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 38px 0 20px;
}
.device-era {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 23px;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #77602e;
}
.device-era > span {
  font: 400 25px var(--display);
  color: #438035;
  border-bottom: 1px solid #947535;
}
.gba-chapter,
.ds-chapter {
  min-width: 0;
}
.gba-chapter .hardware-plate {
  width: 100%;
  margin: 0;
}
.gba-chapter .gallery-selector {
  border: 0;
  padding: 0;
  max-width: 410px;
  margin: 26px auto 0;
}
.gba-chapter .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.gba-chapter .thumb-label {
  font-size: 14px;
  justify-content: center;
}
.new3ds-photo {
  width: 100%;
  max-width: 380px;
  margin: auto;
  filter: drop-shadow(2px 13px 7px #34271038);
}
.two-screen-note {
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
  color: #696038;
  margin: 16px auto 0;
}
.two-screen-note b {
  font-family: var(--display);
  font-weight: 400;
  color: #3f712e;
  font-size: 20px;
}
.compatibility-spread {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
  align-items: center;
  margin: 20px 0 37px;
}
.family-copy h3 {
  font: 400 49px/1.13 var(--display);
  color: var(--green);
  margin: 18px 0;
}
.family-copy h3 em {
  font-style: normal;
  color: #9b6b24;
  font-size: 0.86em;
}
.family-copy > p:not(.small-chapter) {
  font-size: 21px;
  line-height: 1.5;
}
.family-copy strong {
  font-weight: 600;
}
.family-recommendation {
  margin-top: 25px;
  padding: 15px 18px;
  border-left: 3px solid #7c913e;
  background: #fff9d066;
  font-size: 17px !important;
  line-height: 1.4 !important;
}
.family-recommendation > span {
  display: block;
  letter-spacing: 1.4px;
  font-size: 10px;
  color: #85702b;
}
.family-recommendation > strong {
  display: block;
  font: 400 25px var(--display);
  color: #3c7030;
  margin: 5px 0;
}
.console-family {
  min-width: 0;
}
.family-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.36;
  margin-bottom: 24px;
  isolation: isolate;
}
.family-stage svg {
  position: absolute;
  filter: drop-shadow(5px 12px 7px #3f2c2240);
}
.family-new {
  width: 60%;
  right: 0;
  top: 0;
  z-index: 0;
}
.family-old {
  width: 50.2%;
  left: 0;
  bottom: 0;
  z-index: 1;
}
.console-family figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: #736135;
  text-align: center;
  line-height: 1.35;
}
.console-family figcaption > span {
  max-width: 45%;
}
.family-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-block: 1px solid #a1843866;
  padding: 23px 0;
}
.family-details article {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}
.hardware-generation {
  color: #d9e0a6;
  background: #496c30;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 7px 9px;
  margin-top: 3px;
}
.family-details h4 {
  font: 400 25px var(--display);
  margin: 0 0 7px;
  color: var(--green);
}
.family-details p {
  font-size: 18px;
  line-height: 1.5;
}
.compatibility-footnote {
  font-size: 13px;
  line-height: 1.55;
  color: #7b683b;
  margin: 20px 0 30px;
  max-width: 720px;
}
.compatibility-footnote a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-introduction {
  display: flex;
  align-items: center;
  gap: 25px;
  max-width: 770px;
  margin: 15px auto 27px;
}
.faq-introduction > img {
  width: 84px;
  height: 112px;
  object-fit: contain;
  transform: rotate(-8deg);
}
.faq-introduction h3 {
  font: 400 29px var(--display);
  color: var(--green);
  margin-bottom: 9px;
}
.faq-introduction p {
  font-size: 19px;
  line-height: 1.45;
  max-width: 570px;
}
.faq-list {
  border-top: 2px solid #92713677;
}
.faq-list details {
  border-bottom: 1px solid #aa904f7d;
}
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 22px 14px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary > span {
  font: 400 23px var(--display);
  color: #9b702a;
  min-width: 29px;
}
.faq-list summary h3 {
  font: 400 24px/1.25 var(--display);
  color: #3e6b2d;
  flex: 1;
}
.faq-list summary i {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #81813f;
  background: #f9efbd;
}
.faq-list summary i:before,
.faq-list summary i:after {
  content: '';
  position: absolute;
  inset: 10px 5px;
  background: #597736;
  height: 2px;
}
.faq-list summary i:after {
  transform: rotate(90deg);
}
.faq-list details[open] summary i:after {
  transform: rotate(0);
}
.faq-list details[open] {
  background: #fffbdf44;
}
.faq-list summary:hover {
  background: #fffbdf55;
}
.faq-list summary:focus-visible {
  outline-offset: -3px;
}
.faq-answer {
  padding: 0 62px 28px;
  max-width: 1000px;
  font-size: 19px;
  line-height: 1.6;
}
.faq-answer p + p {
  margin-top: 15px;
}
.faq-answer a {
  color: #396d2d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer b {
  font-weight: 600;
}
.faq-answer code,
.community-help code {
  font: 500 0.9em var(--body);
  background: #c1aa6740;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.faq-answer > .ink-link {
  display: inline-block;
  margin-top: 14px;
}
.community-help {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 34px 0 22px;
  padding: 22px 25px;
  background: #d5dba670;
  border-block: 1px solid #88984088;
}
.community-help > svg {
  width: 35px;
  height: 32px;
  flex-shrink: 0;
  color: #b58a2c;
}
.community-help > div {
  flex: 1;
}
.community-help h3 {
  font: 400 26px var(--display);
  color: #3a642d;
  margin-bottom: 7px;
}
.community-help p {
  font-size: 17px;
  line-height: 1.45;
  max-width: 620px;
}
.community-help p + p {
  margin-top: 10px;
}
.community-help .manual-button {
  font-size: 17px;
  padding: 13px 18px;
  white-space: nowrap;
}
.faq-source {
  font-size: 13px;
  line-height: 1.5;
  color: #7d6639;
  max-width: 770px;
  margin-bottom: 25px;
}
.faq-source a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1000px) {
  .hardware-comparison {
    gap: 30px;
    grid-template-columns: 1.1fr 1fr;
  }
  .new3ds-photo {
    max-width: 310px;
  }
  .gba-chapter .gallery-selector {
    max-width: 310px;
  }
  .gba-chapter .gallery-thumbs {
    gap: 8px;
  }
  .gba-chapter .thumb-label {
    font-size: 12px;
  }
  .family-copy h3 {
    font-size: 41px;
  }
  .family-copy > p:not(.small-chapter) {
    font-size: 19px;
  }
  .family-details {
    gap: 25px;
  }
  .community-help {
    flex-wrap: wrap;
  }
  .community-help > .manual-button {
    margin-left: 57px;
  }
  .compatibility-spread {
    gap: 24px;
  }
  .console-family figcaption {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .contents > div {
    display: flex;
  }
  .hardware-comparison {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 26px;
  }
  .gba-chapter .gallery-selector {
    max-width: 420px;
  }
  .gba-chapter .thumb-label {
    font-size: 14px;
  }
  .ds-chapter {
    border-top: 1px dashed #9f863e90;
    padding-top: 25px;
  }
  .new3ds-photo {
    max-width: 300px;
  }
  .device-era {
    font-size: 10px;
    margin-bottom: 19px;
  }
  .ds-chapter .hardware-caption {
    margin-top: 18px;
  }
  .compatibility-spread {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 25px;
  }
  .family-copy h3 {
    font-size: 44px;
  }
  .family-copy > p:not(.small-chapter) {
    font-size: 20px;
  }
  .family-copy .family-recommendation {
    max-width: 380px;
  }
  .console-family {
    width: 100%;
    max-width: 550px;
    justify-self: center;
  }
  .console-family figcaption {
    font-size: 13px;
  }
  .family-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .family-details h4 {
    font-size: 24px;
  }
  .family-details p {
    font-size: 18px;
  }
  .compatibility-footnote {
    font-size: 12px;
  }
  .faq-introduction {
    gap: 17px;
    margin: 13px 0 26px;
  }
  .faq-introduction > img {
    width: 65px;
    height: 94px;
  }
  .faq-introduction h3 {
    font-size: 25px;
  }
  .faq-introduction p {
    font-size: 18px;
  }
  .faq-list summary {
    padding: 20px 5px;
    gap: 11px;
  }
  .faq-list summary h3 {
    font-size: 22px;
  }
  .faq-list summary > span {
    font-size: 21px;
    min-width: 25px;
  }
  .faq-list summary i {
    width: 22px;
    height: 22px;
  }
  .faq-list summary i:before,
  .faq-list summary i:after {
    inset: 9px 4px;
  }
  .faq-answer {
    padding: 0 9px 23px 41px;
    font-size: 18px;
    line-height: 1.55;
  }
  .community-help {
    padding: 20px 18px;
    gap: 15px;
  }
  .community-help > svg {
    display: none;
  }
  .community-help > div {
    flex-basis: 100%;
  }
  .community-help > .manual-button {
    margin: 3px 0 0;
  }
  .faq-source {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .device-era {
    letter-spacing: 1px;
  }
  .gba-chapter .hardware-plate {
    width: calc(100% + 24px);
    margin-inline: -12px;
  }
  .new3ds-photo {
    width: 85%;
    max-width: 285px;
  }
  .two-screen-note {
    font-size: 16px;
  }
  .two-screen-note b {
    font-size: 20px;
  }
  .family-copy h3 {
    font-size: 41px;
  }
  .console-family figcaption {
    gap: 15px;
    font-size: 12px;
  }
  .family-details article {
    gap: 12px;
  }
  .hardware-generation {
    font-size: 9px;
    padding: 7px;
  }
  .family-details p {
    font-size: 17px;
  }
  .faq-introduction {
    gap: 12px;
  }
  .faq-introduction h3 {
    font-size: 23px;
  }
  .faq-introduction > img {
    width: 53px;
    height: 84px;
  }
  .faq-introduction p {
    font-size: 17px;
  }
  .faq-list summary h3 {
    font-size: 21px;
  }
  .faq-list summary {
    gap: 9px;
  }
  .faq-answer {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 18px;
  }
  .faq-list summary > span {
    min-width: 24px;
  }
  .community-help .manual-button {
    font-size: 16px;
  }
  .family-stage {
    margin-bottom: 18px;
  }
}

/* Quiet, responsive movement follows the printed chapter rhythm. */
.faq-list summary,
.faq-list summary i,
.faq-list summary i:after {
  transition:
    background 0.22s ease,
    transform 0.28s ease,
    color 0.22s ease;
}
.contents a,
.ink-link,
.cover-repo,
.folio-bottom a,
.journal-footer > a {
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
.gallery-thumb {
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    translate 0.2s ease;
}
.gallery-thumb:hover {
  translate: 0 -3px;
}
.gallery-thumb:active,
.manual-button:active {
  translate: 0 1px;
}
.gallery-annotation > div {
  min-height: 99px;
}
.gallery-screen > svg:has(image[href*='period']) {
  image-rendering: auto;
}
.community-help {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: start;
  gap: 15px 22px;
  padding: 28px;
}
.community-help > svg {
  margin-top: 4px;
}
.community-help .help-copy {
  grid-column: 2;
}
.community-help p {
  max-width: 820px;
}
.community-help .help-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 5px;
}
.help-actions .manual-button {
  justify-content: center;
  gap: 12px;
  min-width: 210px;
}
.help-actions svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.help-actions .github-button {
  background: #665126;
  border-color: #4c3e20;
  box-shadow:
    inset 0 0 0 1px #c6ab6866,
    2px 3px 0 #79561d55;
}
.help-actions .github-button:hover {
  background: #4c3c1e;
}
@media (max-width: 760px) {
  .community-help {
    grid-template-columns: 1fr;
    padding: 23px 20px;
  }
  .community-help .help-copy,
  .community-help .help-actions {
    grid-column: 1;
  }
  .gallery-annotation > div {
    min-height: 110px;
  }
}
@media (max-width: 480px) {
  .help-actions .manual-button {
    width: 100%;
    min-width: 0;
  }
  .gallery-annotation > div {
    min-height: 145px;
  }
  .community-help {
    padding: 22px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .gallery-thumb:hover,
  .gallery-thumb:active,
  .manual-button:active {
    translate: none;
  }
  .manual-button:hover {
    transform: none;
  }
}
.reveal-pending {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce), print {
  .reveal-pending {
    opacity: 1;
  }
}

.port-spread > div {
  min-width: 0;
}
@media (max-width: 760px) {
  .port-spread {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-inset {
    width: 90%;
    max-width: 350px;
  }
}
@media (max-width: 360px) {
  .quest-title h3 {
    font-size: 30px;
  }
  .quest-title img {
    width: 80px;
  }
  .completion-line {
    gap: 12px;
  }
  .completion-value {
    font-size: 42px;
  }
  .completion-line strong {
    font-size: 19px;
  }
  .cover-copy > h2 {
    font-size: 31px;
  }
  .cover-intro {
    font-size: 17px;
  }
}

/* Paired hardware: equal columns and aligned captions, with a fixed gallery. */
.gallery-folio .hardware-comparison {
  width: 100%;
  max-width: 920px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
  margin: 32px auto 15px;
}
.gallery-folio .gba-chapter {
  padding: 0;
}
.gallery-folio .gba-chapter .hardware-plate {
  display: grid;
  grid-template-rows: 390px auto;
  width: 100%;
  max-width: 390px;
  margin: auto;
}
.gallery-folio .gba-console {
  align-self: center;
}
.gallery-folio .dual-hardware {
  display: grid;
  grid-template-rows: 390px auto;
}
.gallery-folio .new3ds-photo {
  width: 100%;
  max-width: 360px;
  align-self: center;
  overflow: visible;
}
.gallery-folio .device-era {
  margin-bottom: 18px;
}
.gallery-folio .device-era > span {
  font: 600 16px var(--body);
  letter-spacing: 1px;
  border-bottom: 1px solid #7e8c42;
  padding-bottom: 3px;
}
.gallery-folio .hardware-caption {
  margin: 16px auto 0;
  min-height: 45px;
}
.gallery-folio .two-screen-note {
  margin: 25px auto 0;
}
.gallery-folio > .folio-inner > .gallery-selector {
  max-width: 630px;
  margin: 25px auto 0;
  border: 0;
  padding: 21px 0 0;
  border-top: 1px solid #9d7a334f;
}
.gallery-folio > .folio-inner > .gallery-selector .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gallery-folio .thumb-label {
  justify-content: center;
}
.gallery-folio .gallery-annotation {
  margin-top: 23px;
}
.new3ds-interactive-display {
  pointer-events: auto;
  overflow: hidden;
}
/* Four balanced leaves and a plain, readable number. */
.page-leaf {
  width: 65px;
  height: 65px;
  color: #6d9633;
  filter: drop-shadow(1px 2px 0 #684c252e);
}
.page-leaf svg {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
}
.page-leaf b {
  font: 700 23px/1 var(--body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  color: #fffbe5;
  padding: 0;
  text-shadow: 0 1px 2px #345321;
}
.contents a b {
  font: 700 18px/1.4 var(--body);
}
@media (max-width: 1000px) {
  .gallery-folio .hardware-comparison {
    gap: 35px;
  }
  .gallery-folio .gba-chapter .hardware-plate,
  .gallery-folio .dual-hardware {
    grid-template-rows: 340px auto;
  }
  .gallery-folio .new3ds-photo {
    max-width: 315px;
  }
  .gallery-folio .device-era {
    font-size: 10px;
    letter-spacing: 1px;
  }
}
@media (max-width: 760px) {
  .gallery-folio .hardware-comparison {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .gallery-folio .ds-chapter {
    order: 0;
    border: 0;
    padding: 0;
  }
  .gallery-folio .new3ds-photo {
    max-width: 310px;
    width: 85%;
  }
  .gallery-folio .gba-chapter {
    order: 1;
    padding: 22px 0 0;
    border-top: 1px dashed #9d7a3355;
  }
  .gallery-folio .gba-chapter .hardware-plate {
    width: 78%;
    max-width: 250px;
    margin: auto;
    grid-template-rows: auto auto;
  }
  .gallery-folio .dual-hardware {
    grid-template-rows: auto auto;
  }
  .gallery-folio .device-era {
    margin-bottom: 19px;
  }
  .gallery-folio > .folio-inner > .gallery-selector {
    margin-top: 24px;
    padding-top: 21px;
  }
  .gallery-folio > .folio-inner > .gallery-selector .gallery-thumbs {
    gap: 11px;
  }
  .page-leaf {
    width: 54px;
    height: 54px;
  }
  .page-leaf b {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .gallery-folio .new3ds-photo {
    width: 92%;
    max-width: 300px;
  }
  .gallery-folio .gba-chapter .hardware-plate {
    width: 85%;
    max-width: 235px;
  }
  .gallery-folio .device-era {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .gallery-folio .device-era > span {
    font-size: 14px;
  }
  .gallery-folio .thumb-label {
    font-size: 13px;
  }
  .gallery-folio > .folio-inner > .gallery-selector .gallery-thumbs {
    gap: 7px;
  }
  .page-leaf {
    width: 49px;
    height: 49px;
  }
  .page-leaf b {
    font-size: 19px;
  }
  .chapter-heading {
    gap: 8px;
  }
  .chapter-heading .manual-ribbon {
    padding-inline: 13px;
  }
  .manual-ribbon h2 {
    font-size: 22px;
  }
}
/* Give the contents a generous paper margin before the ragged brown edge. */
.cover-folio .folio-inner {
  padding-bottom: 48px;
}
.minish-display-guide {
  margin: 38px 0 20px;
  padding: 28px 30px 30px;
  border: 1px solid #9d7a3355;
  background: #ffface52;
  box-shadow: 0 5px 0 -2px #5c3b1514;
  color: var(--ink);
}
.display-guide-heading {
  border-bottom: 1px solid #9d7a3345;
  padding-bottom: 19px;
  margin-bottom: 24px;
}
.display-guide-heading h3 {
  font: 400 32px/1.2 var(--display);
  color: var(--green);
  margin: 6px 0 10px;
}
.display-guide-heading > p:not(.small-chapter):not(.display-recommendation) {
  font-size: 18px;
  line-height: 1.5;
}
.display-recommendation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 14px;
  padding: 12px 15px;
  margin-top: 17px;
  border-left: 3px solid var(--green);
  background: #ffface80;
  font: 400 16px/1.4 var(--body);
}
.display-recommendation > span:first-child {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.display-recommendation strong {
  font-weight: 700;
  color: var(--green);
}
.minish-display-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 35px;
  align-items: start;
}
.view-control-label {
  font: 600 10px/1.5 var(--body);
  letter-spacing: 1.6px;
  color: #756039;
  margin: 0 0 11px;
}
.minish-view-buttons {
  display: flex;
  gap: 7px;
}
.minish-view-buttons button {
  flex: 1;
  min-width: 0;
  padding: 10px 7px;
  font: 600 15px/1.3 var(--body);
  border: 1px solid #71813f;
  background: #ffface65;
  color: #3f592e;
  cursor: pointer;
  transition:
    background-color 250ms,
    color 250ms,
    border-color 250ms;
}
.minish-view-buttons button[aria-pressed='true'] {
  background: #476b30;
  color: #fffce5;
  border-color: #476b30;
}
.minish-view-buttons button:hover {
  border-color: #274b21;
}
.minish-view-buttons button:focus-visible {
  outline: 2px solid #4e6d32;
  outline-offset: 3px;
}
.minish-view-description {
  position: relative;
  min-height: 165px;
  margin: 17px 0 24px;
  font-size: 17px;
  line-height: 1.55;
}
.minish-view-description h4 {
  font: 400 24px/1.25 var(--display);
  color: var(--green);
  margin: 0 0 9px;
}
.minish-view-description p {
  margin: 0;
}
.filter-description {
  min-height: 185px;
  margin-bottom: 0;
}
.minish-view-preview {
  margin: 0;
  min-width: 0;
}
.minish-view-screen {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 5/3;
  margin: 0 auto;
  background: #142519;
  border: 4px solid #526b3e;
  box-shadow:
    inset 0 0 0 2px #09190c,
    0 3px 0 #6d542b25;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.minish-view-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition:
    width 550ms cubic-bezier(0.22, 1, 0.36, 1),
    height 550ms cubic-bezier(0.22, 1, 0.36, 1);
}
.minish-view-content svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: blur(0.08px);
  transition: filter 400ms ease;
  image-rendering: auto;
}
.minish-view-preview[data-view='original'] .minish-view-content {
  width: 90%;
}
.minish-view-preview[data-filter='pixel'] .minish-view-content {
  width: 60%;
  height: 66.666667%;
}
.minish-view-preview[data-filter='pixel'] svg {
  image-rendering: pixelated;
  filter: none;
}
.minish-view-preview[data-filter='blur'] svg {
  filter: blur(0.7px);
}
.view-screen-measure {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 320px;
  margin: 10px auto 0;
  font: 600 9px/1.5 var(--body);
  letter-spacing: 0.7px;
  color: #655430;
}
.view-screen-measure b {
  white-space: nowrap;
}
.minish-view-preview figcaption {
  font: 12px/1.5 var(--body);
  color: #79653d;
  max-width: 320px;
  margin: 9px auto 22px;
}
.pixel-note {
  border-top: 1px dashed #9d7a3360;
  padding-top: 17px;
}
.pixel-note strong {
  font: 400 23px/1.25 var(--display);
  color: var(--green);
}
.pixel-note p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
}
.minish-display-guide > .ink-link {
  font-size: 14px;
}
@media (max-width: 760px) {
  .cover-folio .folio-inner {
    padding-bottom: 42px;
  }
  .minish-display-guide {
    padding: 23px 20px;
  }
  .minish-display-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .minish-view-description {
    min-height: 220px;
    margin-bottom: 20px;
  }
  .filter-description {
    min-height: 250px;
    margin-bottom: 0;
  }
  .minish-view-preview {
    max-width: 430px;
    width: 100%;
    margin: auto;
  }
  .minish-view-screen {
    max-width: 350px;
  }
  .pixel-note p {
    font-size: 17px;
  }
  .display-guide-heading h3 {
    font-size: 30px;
  }
  .minish-view-buttons button {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .minish-display-guide {
    padding: 22px 15px;
    margin-top: 27px;
  }
  .display-guide-heading h3 {
    font-size: 27px;
  }
  .display-guide-heading > p:last-child {
    font-size: 17px;
  }
  .minish-view-description {
    font-size: 17px;
    min-height: 225px;
  }
  .minish-view-description h4 {
    font-size: 23px;
  }
  .filter-description {
    min-height: 275px;
  }
  .minish-view-buttons {
    gap: 5px;
  }
  .minish-view-buttons button {
    padding: 10px 5px;
    font-size: 14px;
  }
  .view-screen-measure {
    font-size: 8px;
    letter-spacing: 0.3px;
  }
  .cover-folio .folio-inner {
    padding-bottom: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .minish-view-content,
  .minish-view-content svg,
  .minish-view-buttons button {
    transition: none;
  }
}

/* Compact phone rhythm and comfortable touch targets. */
@media (max-width: 600px) {
  .cover-copy > h2 {
    margin-left: 0;
    text-align: center;
    font-size: 30px;
    max-width: none;
  }
  .cover-layout {
    min-height: 540px;
  }
  .cover-copy h1 {
    max-width: 78%;
    width: 230px;
  }
  .cover-ribbon p {
    font-size: 19px;
  }
  .cover-intro {
    font-size: 16px;
    line-height: 1.5;
    min-height: 0;
  }
  .cover-link {
    bottom: 62px;
  }
  .cover-copy .manual-button {
    font-size: 14px;
    min-height: 44px;
  }
  .cover-repo {
    font-size: 12px;
  }
  .contents a {
    font-size: 16px;
    min-height: 36px;
  }
  .gallery-intro {
    font-size: 20px;
  }
  .family-copy h3,
  .world-paper h2 {
    font-size: 32px;
  }
  .family-copy > p:not(.small-chapter),
  .family-details p,
  .faq-answer {
    font-size: 16px;
  }
  .faq-list summary h3 {
    font-size: 19px;
  }
}
