:root {
  --ink: #f4f7f2;
  --muted: #aab3b1;
  --paper: #101314;
  --panel: #191f20;
  --panel-2: #222a2b;
  --line: rgba(218, 255, 66, 0.26);
  --accent: #d8ff3e;
  --accent-2: #19d7ff;
  --danger: #ff4f8b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --page-width: 210mm;
  --page-height: 297mm;
}

* {
  box-sizing: border-box;
}

html {
  background: #070808;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(25, 215, 255, 0.2), transparent 34rem),
    linear-gradient(135deg, rgba(216, 255, 62, 0.08), transparent 34rem),
    #070808;
}

button {
  font: inherit;
}

.screen-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  color: var(--ink);
  background: rgba(7, 8, 8, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.screen-toolbar strong,
.screen-toolbar span {
  display: block;
}

.screen-toolbar span {
  color: var(--muted);
  font-size: 0.86rem;
}

.screen-toolbar button {
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 1px solid rgba(216, 255, 62, 0.55);
  border-radius: 999px;
  color: #071009;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.booklet {
  display: grid;
  gap: 2rem;
  padding: 2rem 1rem 4rem;
}

.page {
  position: relative;
  width: min(var(--page-width), calc(100vw - 2rem));
  min-height: var(--page-height);
  margin: 0 auto;
  padding: 20mm 18mm 18mm;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(145deg, #111617 0%, #0d1011 58%, #161b1c 100%);
  background-size: 12mm 12mm, 12mm 12mm, auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  break-after: page;
  page-break-after: always;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 5mm solid rgba(255, 255, 255, 0.018);
}

.page::after {
  content: "";
  position: absolute;
  right: -34mm;
  bottom: 16mm;
  width: 84mm;
  height: 84mm;
  border: 1px solid rgba(25, 215, 255, 0.24);
  transform: rotate(18deg);
}

.page > * {
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 821px) {
  :root {
    --page-width: 980px;
    --page-height: 1386px;
  }

  .booklet {
    gap: 2.2rem;
    padding: 1.6rem 1rem 4rem;
  }

  .page {
    padding: 5.2rem 4.25rem 4.5rem;
  }

  .uri-page-logo {
    top: 1.55rem;
    right: 3rem;
    width: 13.8rem;
  }

  .cover-page .uri-page-logo {
    width: 15.2rem;
  }

  .page-footer {
    left: 4.25rem;
    right: 4.25rem;
    bottom: 2rem;
  }
}

.uri-page-logo {
  position: absolute;
  top: 8mm;
  right: 12mm;
  z-index: 3;
  width: 56mm;
  height: auto;
  opacity: 0.92;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 7px rgba(25, 215, 255, 0.18));
}

.cover-page .uri-page-logo {
  top: 9mm;
  right: 12mm;
  width: 62mm;
}

.toc-page .page-header {
  max-width: 118mm;
  margin-bottom: 7mm;
}

.toc-page h2 {
  max-width: 15ch;
}

.toc-list {
  display: grid;
  gap: 0;
  margin-top: 4mm;
  border-top: 1px solid rgba(216, 255, 62, 0.26);
}

.toc-list p {
  display: grid;
  grid-template-columns: 13mm 1fr 74mm;
  gap: 4mm;
  align-items: baseline;
  margin: 0;
  padding: 2.4mm 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.toc-list span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.toc-list strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.toc-list em {
  color: #cbd4d0;
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
}

.computing-action-page .page-header,
.checklist-page .page-header {
  max-width: 132mm;
  margin-bottom: 7mm;
}

.computing-flow {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 6mm;
  align-items: start;
}

.computing-main {
  display: grid;
  gap: 3mm;
}

.computing-block,
.tech-card-grid article,
.curiosity-band,
.checklist-flow article,
.decision-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(216, 255, 62, 0.075), rgba(25, 215, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
  break-inside: avoid;
}

.computing-block {
  display: grid;
  gap: 1.6mm;
  padding: 3.4mm;
}

.computing-block.problem {
  border-color: rgba(216, 255, 62, 0.42);
}

.computing-block.benefit {
  background:
    linear-gradient(145deg, rgba(216, 255, 62, 0.12), rgba(25, 215, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
}

.computing-block strong,
.tech-card-grid strong,
.curiosity-band strong,
.checklist-flow strong,
.decision-box strong {
  display: block;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.16;
}

.computing-block p,
.tech-card-grid p,
.curiosity-band p,
.checklist-flow p,
.decision-box p {
  margin: 1.4mm 0 0;
  color: #d8dfdc;
  font-size: 0.78rem;
  line-height: 1.42;
}

.tech-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3mm;
}

.tech-card-grid article {
  min-height: 31mm;
  padding: 3mm;
}

.curiosity-band {
  display: grid;
  grid-template-columns: 32mm 1fr;
  gap: 5mm;
  align-items: start;
  margin-top: 6mm;
  padding: 4mm;
  border-color: rgba(25, 215, 255, 0.28);
}

.curiosity-band strong {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.curiosity-band p {
  margin: 0;
  font-size: 0.86rem;
}

.checklist-flow {
  position: relative;
  display: grid;
  gap: 2.8mm;
  max-width: 154mm;
}

.checklist-flow::before {
  content: "";
  position: absolute;
  left: 6mm;
  top: 8mm;
  bottom: 8mm;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(25, 215, 255, 0.1));
}

.checklist-flow article {
  position: relative;
  display: grid;
  grid-template-columns: 13mm 1fr;
  gap: 3mm;
  align-items: start;
  min-height: 19mm;
  padding: 3mm 4mm 3mm 2mm;
}

.checklist-flow article.priority {
  border-color: rgba(216, 255, 62, 0.42);
  background:
    linear-gradient(145deg, rgba(216, 255, 62, 0.13), rgba(25, 215, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.check-box {
  position: relative;
  z-index: 1;
  display: block;
  width: 7mm;
  height: 7mm;
  margin: 2.2mm auto 0;
  border: 2px solid var(--accent);
  background: #0d1011;
  box-shadow: 0 0 0 3px rgba(13, 16, 17, 0.92);
}

.decision-box {
  display: grid;
  grid-template-columns: 34mm 1fr 1fr;
  gap: 4mm;
  align-items: start;
  max-width: 154mm;
  margin-top: 5mm;
  padding: 4mm;
  border-color: rgba(216, 255, 62, 0.34);
}

.decision-box strong {
  color: var(--accent);
}

.decision-box p {
  margin: 0;
  font-size: 0.82rem;
}

.page-header {
  margin-bottom: 12mm;
}

.page-header.compact {
  margin-bottom: 9mm;
}

.section-label,
.cover-kicker,
.concept-card span,
.flow-title,
.data-block span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  color: var(--accent);
  border: 1px solid var(--line);
  background: rgba(216, 255, 62, 0.055);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 900;
}

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

h1 {
  max-width: 15ch;
  margin: 7mm 0 6mm;
  font-size: clamp(3.7rem, 8vw, 5.9rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 16ch;
  margin: 4mm 0 0;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.16;
}

p {
  color: #d8dfdc;
}

.cover-page {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 10mm;
  align-items: stretch;
  background:
    linear-gradient(125deg, rgba(216, 255, 62, 0.16), transparent 28%),
    linear-gradient(320deg, rgba(25, 215, 255, 0.16), transparent 32%),
    #0b0d0e;
}

.visual-cover {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.cover-photo {
  position: relative;
  height: 226mm;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 62, 0.32);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.cover-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.12) contrast(1.08);
}

.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 8, 0.06), rgba(7, 8, 8, 0.42)),
    linear-gradient(90deg, rgba(216, 255, 62, 0.12), transparent 36%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.image-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 62mm;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 62, 0.34);
  background:
    linear-gradient(135deg, rgba(216, 255, 62, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(25, 215, 255, 0.11), transparent 42%),
    rgba(255, 255, 255, 0.035);
  break-inside: avoid;
  page-break-inside: avoid;
}

.cover-placeholder {
  min-height: 220mm;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.visual-placeholder {
  min-height: 58mm;
}

.placeholder-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 10mm 10mm;
  opacity: 0.7;
}

.placeholder-content {
  position: relative;
  z-index: 1;
  width: min(80%, 52mm);
  padding: 5mm;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 8, 8, 0.68);
}

.cover-placeholder .placeholder-content {
  width: min(76%, 70mm);
}

.placeholder-content span {
  display: inline-flex;
  margin-bottom: 3mm;
  padding: 0.1rem 0.45rem;
  color: #071009;
  background: var(--accent);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.placeholder-content strong {
  display: block;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
}

.placeholder-content p {
  margin: 3mm 0 0;
  color: #cfd9d6;
  font-size: 0.82rem;
  line-height: 1.34;
}

.cover-subtitle {
  max-width: 38ch;
  color: #e6ece9;
  font-size: 1.18rem;
  line-height: 1.35;
}

.cover-meta {
  display: grid;
  gap: 0.5rem;
  margin-top: 12mm;
  padding-top: 5mm;
  border-top: 2px solid var(--accent);
}

.cover-meta p {
  display: grid;
  grid-template-columns: 26mm 1fr;
  gap: 0.6rem;
  margin: 0;
  color: var(--ink);
}

.cover-meta span {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-cover .cover-grid {
  align-self: center;
}

.visual-cover h1 {
  max-width: 9ch;
  font-size: 4.6rem;
  line-height: 0.9;
}

.cover-art {
  position: relative;
  min-height: 210mm;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, transparent 0 40%, rgba(216, 255, 62, 0.18) 40% 43%, transparent 43%),
    linear-gradient(45deg, rgba(25, 215, 255, 0.14), transparent 48%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 14px),
    #161c1d;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.cover-art span {
  position: absolute;
  display: block;
  border: 2px solid rgba(216, 255, 62, 0.46);
  background: rgba(7, 8, 8, 0.78);
}

.cover-art span:nth-child(1) {
  inset: 24mm 17mm auto auto;
  width: 42mm;
  height: 42mm;
}

.cover-art span:nth-child(2) {
  left: 18mm;
  top: 72mm;
  width: 54mm;
  height: 24mm;
  border-color: rgba(25, 215, 255, 0.54);
}

.cover-art span:nth-child(3) {
  right: 23mm;
  bottom: 58mm;
  width: 24mm;
  height: 64mm;
}

.cover-art span:nth-child(4) {
  left: 14mm;
  bottom: 26mm;
  width: 68mm;
  height: 20mm;
  border-color: rgba(255, 79, 139, 0.5);
}

.visual-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 62, 0.28);
  background: rgba(255, 255, 255, 0.04);
  break-inside: avoid;
  page-break-inside: avoid;
}

.visual-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.summary-image img {
  aspect-ratio: 16 / 9;
  object-position: center center;
}

.history-image img {
  aspect-ratio: 4 / 5;
  object-position: center center;
}

.history-image figcaption span {
  display: block;
}

.visual-image figcaption {
  display: grid;
  gap: 1mm;
  padding: 3.5mm 4mm;
  color: #cfd9d6;
  font-size: 0.78rem;
  line-height: 1.32;
}

.visual-image figcaption strong {
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.visual-stats,
.summary-stats,
.myth-fact-panel,
.visual-checklist {
  display: grid;
  gap: 3mm;
  break-inside: avoid;
  page-break-inside: avoid;
}

.visual-stats,
.summary-stats {
  grid-template-columns: repeat(3, 1fr);
}

.visual-stats article,
.summary-stats article,
.myth-fact-panel article,
.visual-checklist p,
.diagram,
.visual-table {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(216, 255, 62, 0.08), rgba(25, 215, 255, 0.045));
}

.visual-stats article,
.summary-stats article {
  padding: 4mm;
}

.visual-stats strong,
.summary-stats strong {
  display: block;
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
}

.visual-stats span,
.summary-stats span {
  display: block;
  margin: 1mm 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-stats p,
.summary-stats p,
.myth-fact-panel p,
.visual-checklist p {
  margin: 0;
  font-size: 0.78rem;
}

.impact-cards article {
  min-height: 34mm;
}

.impact-cards strong {
  font-size: 1.18rem;
}

.impact-cards p {
  font-size: 0.74rem;
  line-height: 1.28;
}

.references-page {
  padding-top: 16mm;
}

.references-page .page-header {
  margin-bottom: 5mm;
}

.references-page h2 {
  max-width: 22ch;
}

.reference-intro {
  max-width: 122mm;
  margin: 3mm 0 0;
  color: #dce4e1;
  font-size: 0.9rem;
  line-height: 1.35;
}

.myth-fact-panel {
  grid-template-columns: repeat(2, 1fr);
}

.myth-fact-panel article {
  padding: 4mm;
}

.myth-fact-panel strong {
  display: inline-flex;
  margin-bottom: 2mm;
  padding: 0.1rem 0.45rem;
  color: #071009;
  background: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.visual-checklist {
  grid-template-columns: repeat(2, 1fr);
}

.visual-checklist p {
  position: relative;
  min-height: 18mm;
  padding: 4mm 4mm 4mm 10mm;
}

.visual-checklist span {
  position: absolute;
  left: 3mm;
  top: 4.8mm;
  width: 4mm;
  height: 4mm;
  border: 1px solid var(--accent);
  background: rgba(216, 255, 62, 0.18);
}

.disposal-flow {
  display: grid;
  gap: 3mm;
  break-inside: avoid;
  page-break-inside: avoid;
}

.disposal-flow article {
  position: relative;
  display: grid;
  grid-template-columns: 8mm 1fr;
  gap: 3mm;
  min-height: 27mm;
  padding: 3.5mm;
  border: 1px solid rgba(25, 215, 255, 0.35);
  background: rgba(7, 8, 8, 0.55);
}

.disposal-flow article:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 6mm;
  bottom: -5mm;
  color: var(--accent);
  font-weight: 900;
}

.disposal-flow b {
  display: grid;
  place-items: center;
  width: 8mm;
  height: 8mm;
  color: #071009;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.disposal-flow strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

.disposal-flow p {
  grid-column: 2;
  margin: -1mm 0 0;
  color: #dce4e1;
  font-size: 0.74rem;
  line-height: 1.28;
}

.warning-box {
  padding: 4mm;
  border: 1px solid rgba(216, 255, 62, 0.45);
  background: rgba(216, 255, 62, 0.08);
  break-inside: avoid;
  page-break-inside: avoid;
}

.warning-box strong {
  display: block;
  margin-bottom: 2mm;
  color: var(--accent);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.warning-box p {
  margin: 0;
  color: #e1e8e5;
  font-size: 0.82rem;
  line-height: 1.34;
}

.cycle-reading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3mm;
}

.cycle-reading article {
  min-height: 34mm;
  padding: 3.5mm;
  border: 1px solid rgba(25, 215, 255, 0.34);
  background: rgba(7, 8, 8, 0.54);
  break-inside: avoid;
  page-break-inside: avoid;
}

.cycle-reading article:last-child {
  border-color: rgba(216, 255, 62, 0.48);
  background: rgba(216, 255, 62, 0.075);
}

.cycle-reading strong {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.cycle-reading p {
  margin: 2mm 0 0;
  color: #e1e8e5;
  font-size: 0.7rem;
  line-height: 1.25;
}

.diagram {
  padding: 4mm;
}

.cycle-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3mm;
}

.cycle-diagram span {
  position: relative;
  min-height: 13mm;
  padding: 3mm;
  color: var(--ink);
  background: rgba(7, 8, 8, 0.5);
  border: 1px solid rgba(25, 215, 255, 0.3);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.timeline-diagram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2mm;
}

.timeline-diagram article {
  padding: 3mm;
  border-top: 2px solid var(--accent);
}

.timeline-diagram time {
  color: var(--accent-2);
  font-weight: 900;
}

.timeline-diagram p {
  margin: 1mm 0 0;
  font-size: 0.72rem;
}

.visual-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 0.74rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.visual-table th,
.visual-table td {
  padding: 2.5mm;
  border: 1px solid rgba(255, 255, 255, 0.13);
  vertical-align: top;
}

.visual-table th {
  color: #071009;
  background: var(--accent);
  text-transform: uppercase;
}

.geek-reference-panel {
  position: relative;
  min-height: 42mm;
  padding: 6mm;
  overflow: hidden;
  border: 1px solid rgba(25, 215, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(216, 255, 62, 0.13), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 9px),
    rgba(255, 255, 255, 0.035);
  break-inside: avoid;
  page-break-inside: avoid;
}

.geek-reference-panel::after {
  content: "";
  position: absolute;
  right: 7mm;
  bottom: 5mm;
  width: 34mm;
  height: 18mm;
  border: 2px solid rgba(216, 255, 62, 0.65);
  box-shadow: -12mm -9mm 0 rgba(25, 215, 255, 0.14);
  transform: skewX(-12deg);
}

.geek-reference-panel strong {
  display: block;
  max-width: 28ch;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.geek-reference-panel p {
  max-width: 55ch;
  margin: 4mm 0 0;
}

.geek-layout {
  grid-template-columns: 0.88fr 1.12fr;
  gap: 6mm;
}

.geek-page .page-header {
  margin-bottom: 6mm;
}

.geek-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 5mm;
  align-items: start;
}

.geek-copy {
  align-self: stretch;
}

.gachiakuta-gallery {
  display: grid;
  gap: 3mm;
}

.gachiakuta-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 62, 0.3);
  background: rgba(7, 8, 8, 0.55);
  break-inside: avoid;
  page-break-inside: avoid;
}

.gachiakuta-gallery img {
  display: block;
  width: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.gachiakuta-main img {
  aspect-ratio: 16 / 8.9;
  object-position: center center;
}

.gachiakuta-pair {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3mm;
}

.gachiakuta-pair img {
  aspect-ratio: 1 / 1.08;
}

.gachiakuta-pair figure:first-child img {
  object-position: center top;
}

.gachiakuta-pair figure:last-child img {
  object-position: center center;
}

.gachiakuta-gallery figcaption {
  padding: 2.5mm 3mm;
  color: #dce4e1;
  font-size: 0.68rem;
  line-height: 1.24;
}

.geek-insight-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4mm;
  margin-top: 1mm;
}

.geek-insight-strip article {
  min-height: 36mm;
  padding: 4mm;
  border: 1px solid rgba(216, 255, 62, 0.3);
  background: linear-gradient(145deg, rgba(216, 255, 62, 0.08), rgba(25, 215, 255, 0.045));
  break-inside: avoid;
  page-break-inside: avoid;
}

.geek-insight-strip span {
  display: inline-flex;
  margin-bottom: 2mm;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.geek-insight-strip strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.geek-insight-strip p {
  margin: 2mm 0 0;
  color: #dce4e1;
  font-size: 0.76rem;
  line-height: 1.3;
}

.didactic-page {
  padding-top: 16mm;
}

.didactic-page .page-header {
  margin-bottom: 7mm;
}

.didactic-page h2 {
  max-width: 18ch;
  font-size: 2.25rem;
}

.didactic-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 7mm;
  align-items: start;
}

.summary-flow {
  display: grid;
  gap: 6mm;
  max-width: 128mm;
}

.summary-layout {
  display: grid;
  gap: 5.5mm;
}

.summary-page {
  padding-top: 18mm;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
}

.summary-top {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 8mm;
  align-items: start;
}

.summary-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 62, 0.32);
}

.summary-page .summary-image img {
  display: block;
  width: 100%;
  height: 47mm;
  object-fit: cover;
  object-position: center center;
}

.summary-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6mm;
  margin-top: 9mm;
  align-items: start;
}

.summary-copy {
  max-width: none;
}

.summary-bottom .summary-copy {
  grid-template-columns: 1fr;
  gap: 3.5mm;
  align-items: start;
}

.summary-bottom .summary-copy p:first-child {
  padding-left: 0;
  border-left: 0;
  color: #e1e8e5;
  font-size: 1rem;
  font-weight: 400;
}

.summary-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4mm;
  max-width: none;
}

.summary-stats article {
  min-height: 34mm;
}

.impact-summary-page {
  padding-top: 18mm;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
}

.impact-summary-page .impact-placeholder {
  min-height: 47mm;
}

.impact-summary-page .placeholder-content {
  width: min(74%, 48mm);
  padding: 4mm;
}

.impact-summary-page .summary-bottom {
  margin-top: 9mm;
}

.impact-summary-page .summary-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 62, 0.32);
}

.impact-summary-page .summary-image img {
  display: block;
  width: 100%;
  height: 47mm;
  object-fit: cover;
}

.impact-image img {
  object-position: center 58%;
  filter: saturate(1.08) contrast(1.08);
}

.didactic-copy {
  display: grid;
  gap: 3mm;
}

.didactic-copy p {
  margin: 0;
  color: #e1e8e5;
  font-size: 0.9rem;
  line-height: 1.42;
}

.didactic-copy p:first-child {
  padding-left: 4mm;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
}

.history-points {
  display: grid;
  gap: 2mm;
  margin: 1mm 0;
}

.history-points div {
  padding: 2.6mm 3mm;
  border: 1px solid rgba(216, 255, 62, 0.28);
  border-left: 3px solid var(--accent);
  border-radius: 3mm;
  color: #dce6e2;
  background: rgba(216, 255, 62, 0.06);
  font-size: 0.82rem;
  line-height: 1.34;
}

.history-points strong {
  color: var(--accent);
}

.didactic-visuals {
  display: grid;
  gap: 4mm;
}

.didactic-visuals .visual-image img {
  aspect-ratio: 16 / 9;
}

.flowchart {
  padding: 4mm;
  border: 1px solid rgba(216, 255, 62, 0.3);
  background: linear-gradient(145deg, rgba(216, 255, 62, 0.08), rgba(25, 215, 255, 0.055));
  break-inside: avoid;
  page-break-inside: avoid;
}

.flowchart-title {
  margin-bottom: 3mm;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flowchart-grid {
  display: grid;
  gap: 2.5mm;
}

.flowchart-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 8mm 1fr;
  gap: 2.5mm;
  padding: 3mm;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 8, 8, 0.48);
}

.flowchart-grid article:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 3.2mm;
  bottom: -4.5mm;
  color: var(--accent);
  font-weight: 900;
}

.flowchart-grid b {
  display: grid;
  place-items: center;
  width: 7mm;
  height: 7mm;
  color: #071009;
  background: var(--accent);
  font-size: 0.75rem;
}

.flowchart-grid strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
}

.flowchart-grid p {
  grid-column: 2;
  margin: -1mm 0 0;
  font-size: 0.72rem;
  line-height: 1.25;
}

.infographic-page {
  padding-top: 14mm;
}

.infographic-page .page-header {
  margin-bottom: 4mm;
}

.infographic-page h2 {
  max-width: 22ch;
  font-size: 1.95rem;
}

.infographic-stack {
  display: grid;
  gap: 4mm;
}

.mini-infographic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4mm;
}

.editorial-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(216, 255, 62, 0.28);
  background:
    linear-gradient(135deg, rgba(216, 255, 62, 0.09), transparent 38%),
    linear-gradient(315deg, rgba(25, 215, 255, 0.09), transparent 44%),
    rgba(255, 255, 255, 0.035);
  break-inside: avoid;
  page-break-inside: avoid;
}

.main-flow-svg {
  min-height: 75mm;
}

.small-svg {
  min-height: 76mm;
}

.svg-kicker {
  fill: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.svg-title {
  fill: var(--ink);
  font-size: 27px;
  font-weight: 900;
}

.svg-note {
  fill: #dce4e1;
  font-size: 16px;
  font-weight: 700;
}

.svg-bottom-band rect {
  fill: rgba(7, 8, 8, 0.62);
  stroke: rgba(216, 255, 62, 0.34);
  stroke-width: 1.5;
}

.svg-bottom-band text:first-of-type {
  fill: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.svg-bottom-band text:last-of-type {
  fill: #dce4e1;
  font-size: 15px;
  font-weight: 700;
}

.svg-node rect,
.impact-lane rect {
  fill: rgba(7, 8, 8, 0.72);
  stroke: rgba(25, 215, 255, 0.42);
  stroke-width: 2;
}

.svg-node.hot rect,
.impact-lane.hot rect {
  stroke: rgba(216, 255, 62, 0.72);
  fill: rgba(216, 255, 62, 0.12);
}

.svg-node text,
.impact-lane text {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.svg-small {
  fill: #b8c6c3;
  font-size: 13px;
  font-weight: 700;
}

.svg-arrow,
.svg-loop {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  marker-end: url(#arrow-lime);
}

.svg-loop {
  stroke: rgba(216, 255, 62, 0.62);
  stroke-dasharray: 8 8;
}

.diagram-reading-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4mm;
}

.diagram-reading-strip article {
  min-height: 28mm;
  padding: 4mm;
  border: 1px solid rgba(216, 255, 62, 0.28);
  background: linear-gradient(145deg, rgba(216, 255, 62, 0.08), rgba(25, 215, 255, 0.045));
  break-inside: avoid;
  page-break-inside: avoid;
}

.diagram-reading-strip strong {
  display: block;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.diagram-reading-strip span {
  display: block;
  margin: 1mm 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.diagram-reading-strip p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.32;
}

.infographic-remix {
  padding-top: 12mm;
}

.infographic-remix .page-header {
  margin-bottom: 4mm;
}

.infographic-remix h2 {
  max-width: 24ch;
  font-size: 1.85rem;
}

.remix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 112mm 86mm;
  gap: 4mm;
}

.remix-panel {
  position: relative;
  overflow: hidden;
  padding: 3.5mm;
  border: 1px solid rgba(216, 255, 62, 0.32);
  background:
    linear-gradient(135deg, rgba(216, 255, 62, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(25, 215, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.03);
  break-inside: avoid;
  page-break-inside: avoid;
}

.remix-panel::after {
  content: "";
  position: absolute;
  right: -18mm;
  bottom: -20mm;
  width: 52mm;
  height: 52mm;
  border: 1px solid rgba(25, 215, 255, 0.28);
  transform: rotate(18deg);
}

.tall-flow {
  grid-row: 1;
}

.timeline-flow {
  grid-column: 2;
}

.decision-matrix-panel {
  grid-column: 1;
}

.chain-panel {
  grid-column: 2;
}

.panel-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1mm;
  margin-bottom: 3mm;
}

.panel-head span {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.panel-use {
  max-width: 96mm;
  margin: 1mm 0 0;
  color: #b8c6c3;
  font-size: 0.72rem;
  line-height: 1.28;
}

.vertical-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.8mm;
}

.vertical-flow article {
  position: relative;
  display: grid;
  grid-template-columns: 8mm 1fr;
  gap: 2.5mm;
  padding: 2.6mm;
  border: 1px solid rgba(25, 215, 255, 0.34);
  background: rgba(7, 8, 8, 0.56);
}

.vertical-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6.5mm;
  bottom: -3.2mm;
  width: 1px;
  height: 3.2mm;
  background: var(--accent);
}

.vertical-flow b {
  display: grid;
  place-items: center;
  width: 7mm;
  height: 7mm;
  color: #071009;
  background: var(--accent);
}

.vertical-flow strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.vertical-flow p {
  grid-column: 2;
  margin: -1mm 0 0;
  font-size: 0.68rem;
  line-height: 1.25;
}

.editorial-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5mm;
  padding: 0 0 0 8mm;
}

.editorial-timeline::before {
  content: "";
  position: absolute;
  left: 2mm;
  right: auto;
  top: 1mm;
  bottom: 1mm;
  width: 2px;
  height: auto;
  background: var(--accent);
}

.editorial-timeline article {
  position: relative;
  min-height: 13mm;
  padding: 1mm 0 1mm 0;
}

.editorial-timeline article::before {
  content: "";
  position: absolute;
  top: 3mm;
  left: -7mm;
  width: 4mm;
  height: 4mm;
  background: var(--accent);
}

.editorial-timeline time {
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 900;
}

.editorial-timeline p {
  margin: 1mm 0 0;
  font-size: 0.72rem;
  line-height: 1.22;
}

.decision-matrix {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2mm;
}

.decision-matrix article {
  min-height: 24mm;
  padding: 3mm;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 8, 8, 0.52);
}

.decision-matrix article:nth-child(1) {
  border-color: rgba(216, 255, 62, 0.66);
}

.decision-matrix strong {
  color: var(--accent);
  font-size: 0.76rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.decision-matrix p {
  margin: 2mm 0 0;
  font-size: 0.72rem;
  line-height: 1.22;
}

.diagonal-chain {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2mm;
  align-items: center;
}

.diagonal-chain article {
  position: relative;
  min-height: 10mm;
  padding: 2.3mm 3mm;
  color: var(--ink);
  border: 1px solid rgba(25, 215, 255, 0.35);
  background: rgba(7, 8, 8, 0.52);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: left;
  transform: none;
}

.diagonal-chain article:nth-child(even) {
  transform: none;
  margin-left: 10mm;
}

.diagonal-chain article:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: auto;
  left: 4mm;
  bottom: -4mm;
  top: auto;
  color: var(--accent);
  transform: none;
}

.chain-note {
  position: relative;
  z-index: 1;
  max-width: 118mm;
  margin: 4mm 0 0;
  color: #dce4e1;
  font-size: 0.78rem;
}

.diagram-showcase-page {
  padding-top: 12mm;
}

.diagram-showcase-page .page-header {
  margin-bottom: 4mm;
}

.diagram-showcase-page h2 {
  max-width: 26ch;
  font-size: 1.85rem;
  line-height: 1.02;
}

.diagram-context {
  max-width: 118mm;
  margin: 3mm 0 0;
  color: #dce4e1;
  font-size: 0.84rem;
  line-height: 1.35;
}

.diagram-showcase {
  display: grid;
  gap: 5mm;
}

.wide-cycle {
  min-height: 91mm;
}

.reading-panel {
  min-height: 74mm;
}

.cycle-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3mm;
}

.cycle-flow article {
  position: relative;
  min-height: 34mm;
  padding: 3.5mm 3mm;
  border: 1px solid rgba(25, 215, 255, 0.42);
  background: linear-gradient(180deg, rgba(7, 8, 8, 0.72), rgba(7, 8, 8, 0.42));
}

.cycle-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -4.1mm;
  top: 50%;
  z-index: 2;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.cycle-flow strong {
  display: block;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.1;
}

.cycle-flow p {
  margin: 2.5mm 0 0;
  color: #dce4e1;
  font-size: 0.68rem;
  line-height: 1.24;
}

.full-flow-panel {
  min-height: 112mm;
}

.timeline-wide-panel {
  min-height: 87mm;
}

.two-panel-showcase {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.two-panel-showcase .remix-panel {
  min-height: 181mm;
}

.wide-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3mm;
}

.wide-flow article {
  position: relative;
  min-height: 62mm;
  padding: 4mm 3mm;
  border: 1px solid rgba(25, 215, 255, 0.42);
  background: linear-gradient(180deg, rgba(7, 8, 8, 0.72), rgba(7, 8, 8, 0.42));
}

.wide-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -4.2mm;
  top: 50%;
  z-index: 2;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.wide-flow b {
  display: grid;
  place-items: center;
  width: 8mm;
  height: 8mm;
  margin-bottom: 5mm;
  color: #071009;
  background: var(--accent);
  font-size: 0.92rem;
}

.wide-flow strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.05;
}

.wide-flow p {
  margin: 3mm 0 0;
  color: #dce4e1;
  font-size: 0.76rem;
  line-height: 1.32;
}

.diagram-note {
  position: relative;
  z-index: 1;
  margin: 5mm 0 0;
  padding: 3.2mm 4mm;
  color: #dce4e1;
  border: 1px solid rgba(216, 255, 62, 0.28);
  background: rgba(7, 8, 8, 0.58);
  font-size: 0.82rem;
  line-height: 1.35;
}

.wide-timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 10mm 0 0;
}

.wide-timeline::before {
  left: 0;
  right: 0;
  top: 3mm;
  bottom: auto;
  width: auto;
  height: 2px;
}

.wide-timeline article {
  min-height: 43mm;
  padding: 5mm 3mm 0 0;
}

.wide-timeline article::before {
  top: -8mm;
  left: 0;
}

.wide-timeline time {
  display: block;
  font-size: 0.92rem;
}

.wide-timeline p {
  font-size: 0.76rem;
  line-height: 1.28;
}

.readable-matrix {
  grid-template-columns: 1fr;
  gap: 3mm;
}

.readable-matrix article {
  min-height: 31mm;
  padding: 4mm;
}

.readable-matrix strong {
  font-size: 0.86rem;
}

.readable-matrix p {
  font-size: 0.78rem;
  line-height: 1.3;
}

.impact-chain-readable {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3mm;
}

.impact-chain-readable article {
  position: relative;
  min-height: 27mm;
  padding: 4mm;
  border: 1px solid rgba(25, 215, 255, 0.38);
  background: rgba(7, 8, 8, 0.54);
}

.impact-chain-readable article:nth-child(odd) {
  border-color: rgba(216, 255, 62, 0.42);
}

.impact-chain-readable article:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 6mm;
  bottom: -5mm;
  z-index: 2;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
}

.impact-chain-readable strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.impact-chain-readable p {
  margin: 2mm 0 0;
  color: #dce4e1;
  font-size: 0.78rem;
  line-height: 1.3;
}

.decision-guide-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 5mm;
  align-items: stretch;
}

.decision-guide-grid .remix-panel {
  min-height: 180mm;
}

.upgrade-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3mm;
}

.upgrade-steps article {
  position: relative;
  display: grid;
  grid-template-columns: 9mm 1fr;
  gap: 3mm;
  min-height: 29mm;
  padding: 3.5mm;
  border: 1px solid rgba(25, 215, 255, 0.35);
  background: rgba(7, 8, 8, 0.55);
}

.upgrade-steps b {
  display: grid;
  place-items: center;
  width: 8mm;
  height: 8mm;
  color: #071009;
  background: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.upgrade-steps strong {
  display: block;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.12;
}

.upgrade-steps p {
  grid-column: 2;
  margin: -1mm 0 0;
  color: #dce4e1;
  font-size: 0.72rem;
  line-height: 1.28;
}

.impact-path {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3mm;
}

.impact-path article {
  position: relative;
  min-height: 30mm;
  padding: 4mm;
  border: 1px solid rgba(25, 215, 255, 0.38);
  background: rgba(7, 8, 8, 0.54);
}

.impact-path article:nth-child(odd) {
  border-color: rgba(216, 255, 62, 0.45);
}

.impact-path article:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 6mm;
  bottom: -5mm;
  z-index: 2;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
}

.impact-path strong,
.impact-reading strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

.impact-path p,
.impact-reading p {
  margin: 2mm 0 0;
  color: #dce4e1;
  font-size: 0.74rem;
  line-height: 1.28;
}

.impact-reading {
  position: relative;
  z-index: 1;
  margin-top: 4mm;
  padding: 3.5mm 4mm;
  border: 1px solid rgba(216, 255, 62, 0.35);
  background: rgba(216, 255, 62, 0.08);
}

.two-column,
.split-panel,
.gamer-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8mm;
  align-items: start;
}

.callout,
.concept-card,
.stats-grid article,
.flow-box,
.data-block,
.impact-grid article,
.checklist-grid article,
.faq-grid article,
.activity-list article,
.quote-panel,
.glossary,
.closing-strip,
.note-strip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  break-inside: avoid;
  page-break-inside: avoid;
}

.callout {
  padding: 7mm;
  border-left: 3px solid var(--accent);
}

.callout.wide {
  margin-top: 8mm;
}

.stats-grid,
.concept-grid,
.impact-grid,
.checklist-grid,
.faq-grid,
.activity-list {
  display: grid;
  gap: 5mm;
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 9mm;
}

.stats-grid article,
.concept-card,
.impact-grid article,
.checklist-grid article,
.faq-grid article,
.activity-list article {
  padding: 6mm;
}

.stats-grid strong {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin: 0.3rem 0 0.5rem;
  color: var(--ink);
  font-weight: 900;
}

.stats-grid p,
.concept-card p,
.impact-grid p {
  margin-bottom: 0;
}

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

.concept-card {
  min-height: 62mm;
}

.concept-card h3 {
  margin-top: 5mm;
  font-size: 1.35rem;
}

.note-strip,
.closing-strip {
  display: grid;
  grid-template-columns: 38mm 1fr;
  gap: 5mm;
  margin-top: 7mm;
  padding: 5mm;
}

.note-strip strong,
.closing-strip strong {
  color: var(--accent);
}

.wide-note {
  min-height: 42mm;
  margin-top: 8mm;
  grid-template-columns: 44mm 1fr;
  align-items: start;
  background:
    linear-gradient(145deg, rgba(216, 255, 62, 0.08), rgba(25, 215, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.wide-note span {
  max-width: 92mm;
  color: #eef7f1;
  font-size: 1.02rem;
  line-height: 1.52;
}

.timeline {
  display: grid;
  gap: 5mm;
  margin-top: 5mm;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 32mm 1fr;
  gap: 6mm;
  padding: 5mm 0 5mm 8mm;
  border-left: 2px solid var(--accent);
  break-inside: avoid;
  page-break-inside: avoid;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -2.8mm;
  top: 8mm;
  width: 4mm;
  height: 4mm;
  background: var(--accent);
}

.timeline time {
  color: var(--accent-2);
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
}

.clean-list,
.checklist-grid ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #d8dfdc;
}

.clean-list li,
.checklist-grid li {
  margin-bottom: 0.55rem;
}

.flow-box {
  padding: 6mm;
  text-align: center;
}

.flow-row {
  padding: 0.75rem;
  color: var(--ink);
  border: 1px solid rgba(25, 215, 255, 0.32);
  background: rgba(25, 215, 255, 0.06);
  font-weight: 800;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.gamer-band {
  margin-bottom: 8mm;
}

.data-block {
  padding: 6mm;
}

.data-block strong {
  display: block;
  margin: 5mm 0 2mm;
  color: var(--accent);
  font-size: 3.8rem;
  line-height: 1;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}

.comparison-table th,
.comparison-table td {
  padding: 4mm;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.comparison-table th {
  color: #071009;
  background: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.comparison-table td {
  color: #d8dfdc;
  background: rgba(255, 255, 255, 0.035);
}

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

.quote-panel {
  margin-top: 10mm;
  padding: 10mm;
  border-color: rgba(25, 215, 255, 0.35);
}

.quote-panel.compact-quote {
  margin-top: 7mm;
  padding: 7mm;
}

.quote-panel p {
  max-width: 22ch;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1.1;
  font-weight: 900;
}

.compact-quote p {
  max-width: 34ch;
  font-size: 1.45rem;
}

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

.checklist-grid.numbered {
  grid-template-columns: repeat(2, 1fr);
}

.checklist-grid.numbered article {
  min-height: 32mm;
}

.activity-list,
.faq-grid {
  grid-template-columns: 1fr;
}

.activity-list p,
.faq-grid p,
.glossary p {
  margin-bottom: 0;
}

.glossary {
  display: grid;
  gap: 3mm;
  margin-top: 6mm;
  padding: 6mm;
}

.glossary strong {
  color: var(--accent);
}

.reflection {
  max-width: 118mm;
}

.reflection p {
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.45;
}

.reference-list {
  display: grid;
  gap: 2.15mm;
  margin-top: 5mm;
}

.reference-list p {
  margin: 0;
  padding: 0 0 2.15mm;
  color: #dce4e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.69rem;
  line-height: 1.24;
}

.reference-list strong {
  color: var(--ink);
}

.reference-url {
  color: #dce4e1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.integral-page {
  padding-top: 16mm;
}

.integral-page .page-header {
  margin-bottom: 6mm;
}

.integral-page h2 {
  max-width: 22ch;
  font-size: 2rem;
  line-height: 1.04;
}

.source-page-kicker {
  display: inline-flex;
  margin-bottom: 4mm;
  padding: 0.18rem 0.5rem;
  color: #071009;
  background: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-text {
  display: grid;
  gap: 3.2mm;
  font-size: 0.88rem;
  line-height: 1.42;
}

.illustrated-text {
  gap: 3mm;
}

.illustrated-page .source-text {
  font-size: 0.84rem;
  line-height: 1.38;
}

.illustrated-page .source-text h3 {
  padding-bottom: 1.5mm;
  border-bottom: 1px solid rgba(216, 255, 62, 0.22);
}

.source-text h3 {
  margin: 1mm 0 0;
  color: var(--accent);
  font-size: 1.15rem;
}

.source-text p {
  margin: 0;
  color: #dce4e1;
}

.source-text p + h3 {
  margin-top: 3mm;
}

.page-footer {
  position: absolute;
  left: 18mm;
  right: 18mm;
  bottom: 8mm;
  display: flex;
  justify-content: space-between;
  color: rgba(244, 247, 242, 0.56);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media screen and (min-width: 821px) {
  .uri-page-logo {
    top: 1.55rem;
    right: 3rem;
    width: 13.8rem;
  }

  .cover-page .uri-page-logo {
    width: 15.2rem;
  }

  .page-footer {
    left: 4.25rem;
    right: 4.25rem;
    bottom: 2rem;
  }
}

@media screen and (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .screen-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0.95rem;
  }

  .screen-toolbar button {
    width: 100%;
  }

  .booklet {
    gap: 1rem;
    padding: 0;
  }

  .page {
    width: 100%;
    min-height: auto;
    padding: 4.6rem 1rem 3.2rem;
    overflow: visible;
    break-after: auto;
    page-break-after: auto;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .page::before {
    border-width: 0.45rem;
  }

  .page::after {
    right: -4.5rem;
    bottom: 1.5rem;
    width: 11rem;
    height: 11rem;
    opacity: 0.5;
  }

  .uri-page-logo,
  .cover-page .uri-page-logo {
    top: 1rem;
    right: 1rem;
    width: min(8.8rem, 44vw);
  }

  .page-footer {
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 3.4rem);
    line-height: 0.9;
  }

  h2 {
    max-width: none;
    font-size: clamp(1.75rem, 9vw, 2.35rem);
    line-height: 0.96;
  }

  h3 {
    font-size: 1.1rem;
  }

  p,
  li {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .cover-page,
  .visual-cover,
  .didactic-layout,
  .two-column,
  .split-panel,
  .gamer-band,
  .stats-grid,
  .concept-grid,
  .impact-grid,
  .checklist-grid.numbered,
  .note-strip,
  .closing-strip {
    grid-template-columns: 1fr;
  }

  .visual-cover {
    gap: 1.4rem;
    align-items: start;
  }

  .visual-cover .cover-grid {
    max-width: none;
  }

  .cover-art {
    min-height: 18rem;
    clip-path: none;
  }

  .cover-photo {
    height: 18rem;
    min-height: 18rem;
    clip-path: none;
  }

  .summary-top {
    grid-template-columns: 1fr;
  }

  .summary-page .summary-image img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .toc-page .page-header,
  .toc-page h2 {
    max-width: none;
  }

  .toc-list p {
    grid-template-columns: 2.2rem 1fr;
    gap: 0.6rem;
    padding: 0.8rem 0;
  }

  .toc-list em {
    grid-column: 2;
    font-size: 0.78rem;
  }

  .cover-placeholder {
    min-height: 18rem;
    clip-path: none;
  }

  .visual-stats,
  .summary-stats,
  .myth-fact-panel,
  .visual-checklist,
  .remix-grid,
  .two-panel-showcase,
  .wide-flow,
  .wide-timeline,
  .editorial-timeline,
  .decision-matrix,
  .diagonal-chain,
  .cycle-diagram,
  .timeline-diagram,
  .diagram-reading-strip,
  .cycle-flow,
  .cycle-reading,
  .flowchart-grid,
  .summary-bottom,
  .didactic-visuals,
  .decision-guide-grid,
  .diagram-showcase,
  .two-panel-showcase,
  .computing-flow,
  .tech-card-grid,
  .checklist-flow,
  .decision-box,
  .geek-grid,
  .gachiakuta-pair,
  .geek-insight-strip,
  .disposal-flow,
  .reference-list {
    grid-template-columns: 1fr;
  }

  .computing-action-page .page-header,
  .checklist-page .page-header,
  .didactic-page .page-header,
  .infographic-page .page-header {
    max-width: none;
    margin-bottom: 1.25rem;
  }

  .computing-block,
  .tech-card-grid article,
  .curiosity-band,
  .checklist-flow article,
  .decision-box,
  .remix-panel,
  .note-strip,
  .warning-box {
    padding: 0.9rem;
  }

  .checklist-page {
    padding-top: 4.4rem;
  }

  .checklist-page .diagram-context {
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .checklist-flow {
    gap: 0.65rem;
    max-width: none;
  }

  .checklist-flow::before {
    display: none;
  }

  .checklist-flow article {
    grid-template-columns: 2rem 1fr;
    gap: 0.7rem;
    min-height: 0;
    padding: 0.82rem;
  }

  .check-box {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.18rem auto 0;
    border-width: 2px;
  }

  .checklist-flow strong {
    font-size: 0.94rem;
  }

  .checklist-flow p {
    margin-top: 0.22rem;
    font-size: 0.8rem;
    line-height: 1.42;
  }

  .decision-box {
    display: grid;
    gap: 0.75rem;
    max-width: none;
    margin-top: 0.9rem;
  }

  .decision-box p {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .visual-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .visual-table table,
  table.visual-table {
    min-width: 34rem;
  }

  .reference-url {
    word-break: break-word;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  :root {
    --page-width: 210mm;
    --page-height: 297mm;
    --shadow: none;
  }

  html,
  body {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    background: #0d1011 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .no-print,
  .screen-toolbar {
    display: none !important;
  }

  .booklet {
    display: block;
    padding: 0;
  }

  .page {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    max-height: 297mm;
    margin: 0;
    padding: 15mm 14mm 14mm;
    overflow: hidden;
    box-shadow: none;
    border: 0;
    break-after: page;
    page-break-after: always;
  }

  h1 {
    font-size: 4.15rem;
  }

  h2 {
    font-size: 2.25rem;
    line-height: 0.98;
  }

  h3 {
    font-size: 1rem;
  }

  p,
  li,
  td,
  th {
    line-height: 1.36;
  }

  .page-header,
  .page-header.compact,
  .didactic-page .page-header,
  .infographic-page .page-header {
    margin-bottom: 5mm;
  }

  .uri-page-logo {
    top: 6mm;
    right: 9mm;
    width: 46mm;
  }

  .cover-page .uri-page-logo {
    width: 54mm;
  }

  .page-footer {
    left: 14mm;
    right: 14mm;
    bottom: 6mm;
  }

  .page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .visual-cover {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
  }

  .cover-photo {
    height: 226mm;
    min-height: 0;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  }

  .visual-cover h1 {
    font-size: 4.25rem;
  }

  .summary-top {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 8mm;
  }

  .summary-page .summary-image img {
    height: 42mm;
    aspect-ratio: auto;
  }

  .didactic-copy p,
  .summary-copy p,
  .diagram-context,
  .panel-use,
  .diagram-note,
  .source-text p {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .summary-bottom,
  .didactic-layout,
  .decision-guide-grid,
  .diagram-showcase,
  .computing-flow,
  .geek-grid {
    gap: 5mm;
  }

  .summary-stats,
  .myth-fact-panel,
  .tech-card-grid,
  .checklist-flow,
  .geek-insight-strip,
  .disposal-flow,
  .flowchart-grid {
    gap: 2.4mm;
  }

  .summary-stats article,
  .myth-fact-panel article,
  .tech-card-grid article,
  .checklist-flow article,
  .computing-block,
  .curiosity-band,
  .decision-box,
  .note-strip,
  .warning-box {
    padding: 2.8mm;
  }

  .computing-block p,
  .tech-card-grid p,
  .curiosity-band p,
  .checklist-flow p,
  .decision-box p,
  .summary-stats p,
  .myth-fact-panel p {
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .toc-list p {
    padding: 1.9mm 0;
  }

  .toc-list strong {
    font-size: 0.84rem;
  }

  .toc-list em {
    font-size: 0.7rem;
  }

  .callout,
  .concept-card,
  .stats-grid article,
  .flow-box,
  .data-block,
  .impact-grid article,
  .checklist-grid article,
  .faq-grid article,
  .activity-list article,
  .quote-panel,
  .glossary,
  .closing-strip,
  .note-strip,
  .timeline article,
  .comparison-table {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .visual-image,
  .image-placeholder,
  .visual-stats,
  .summary-stats,
  .visual-table,
  .diagram,
  .diagram-showcase,
  .flowchart,
  .remix-panel,
  .wide-flow article,
  .wide-timeline article,
  .readable-matrix article,
  .impact-chain-readable article,
  .diagram-reading-strip article,
  .myth-fact-panel,
  .visual-checklist {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .diagram-showcase-page {
    padding-top: 12mm;
  }

  .diagram-showcase-page .page-header {
    margin-bottom: 5mm;
  }

  .diagram-showcase {
    gap: 5mm;
  }

  .full-flow-panel {
    min-height: 108mm;
  }

  .timeline-wide-panel {
    min-height: 78mm;
  }

  .two-panel-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
  }

  .two-panel-showcase .remix-panel {
    min-height: 175mm;
  }

  .wide-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3mm;
  }

  .cycle-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3mm;
  }

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

  .wide-flow article {
    min-height: 58mm;
  }

  .wide-timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .readable-matrix {
    grid-template-columns: 1fr;
  }

  .impact-chain-readable {
    grid-template-columns: 1fr;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
