/* Public reading pages extend the legal documents' Candy Night palette. */
body { font-weight: 500; }
header, main, footer {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.public-header { padding-top: max(16px, env(safe-area-inset-top)); }
.public-nav, .languages, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.public-nav, .languages { margin: 0; }
.public-nav { justify-content: space-between; }
.public-nav a, .languages a, .actions a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
.languages { margin-top: 16px; gap: 8px; }
.languages a { padding: 0 4px; color: #c4bfd2; }
.languages [aria-current] { color: #f6f3ee; text-decoration-thickness: 3px; }
.wordmark { font-family: "Mochiy Pop One", "M PLUS Rounded 1c", system-ui, sans-serif; font-size: 1.22rem; color: #b7bdf9; text-decoration: none; }
a.play { background: #f57868; color: #170d0d; padding: 8px 24px; min-height: 44px; box-sizing: border-box; border-radius: 22px; text-decoration: none; font-weight: 800; }
a:hover { text-decoration-thickness: 3px; }
a.play:hover { background: #ffb4a4; }
.skip { position: absolute; top: -100px; left: 24px; padding: 12px; background: #131426; }
.skip:focus { top: 16px; }
h1, h2 { font-family: "Mochiy Pop One", "M PLUS Rounded 1c", system-ui, sans-serif; font-weight: 400; text-wrap: balance; }
/* A word longer than the column (a German compound at 320 px) breaks at a
   syllable where the browser knows the language, never past the edge (V3-21). */
h1, h2, h3 { overflow-wrap: break-word; }
h1:lang(de), h2:lang(de), h3:lang(de) { hyphens: auto; }
h1 { margin-top: 32px; }
h3 { font-size: 1.22rem; margin: 32px 0 8px; line-height: 1.5; }
.introduction { padding-top: 32px; }
.mascot { display: block; float: right; margin: 0 0 24px 24px; width: 144px; height: 144px; }
.mascot img { display: block; width: 100%; height: 100%; }
.introduction h1 { margin-top: 0; }
.introduction > p { font-size: 1rem; line-height: 1.6; }
.actions { clear: both; margin-top: 24px; }
ol { padding-left: 24px; }
ol li { margin: 16px 0; }
.rarities { display: flex; flex-wrap: wrap; list-style: none; gap: 8px 24px; padding: 0; font-weight: 800; }
table { width: 100%; border-collapse: collapse; margin-top: 24px; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: #c4bfd2; margin-bottom: 16px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #aeacbf; }
td { text-align: right; }
footer { margin-top: 40px; padding-bottom: max(48px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .mascot { width: 80px; height: 80px; margin: 0 0 16px 16px; }
  .public-nav { gap: 8px 16px; justify-content: flex-start; }
  .public-nav .wordmark { flex-basis: 100%; }
}
@media (max-width: 380px) {
  header, main, footer { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .mascot { float: none; margin: 0 0 24px; }
}
@media print {
  .actions { display: none; }
  .mascot { float: none; }
}

:lang(ja) { line-break: strict; }
h1:lang(ja), h2:lang(ja) { word-break: auto-phrase; }
.contents a { padding: 8px 0; }
thead th:last-child { text-align: right; }
