/* Only new shared pages/navigation. Room layout rules remain in their own CSS. */
.common-copy { overflow-wrap: anywhere; }
.common-copy h1, .common-copy h2 { font-family: var(--f-serif, serif); }
.common-copy h2 { margin-top: 2em; }
.common-copy p { margin-block: 1em; }
.room-directory { display: grid; gap: 24px; padding: 0; list-style: none; }
.room-directory li { min-width: 0; padding: 24px; border: 1px solid var(--c-line); }
.room-directory a { display: block; font-size: 1.4em; color: var(--c-gold); }
.room-directory span { display: block; }
.shared-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; list-style: none; }
/* 部屋リンクとストア表記は </footer> の直前、.wrap の外に入る。画面左端に置くと字の左が欠ける。 */
footer > nav[aria-label="部屋の案内"],
footer > .sokmil-api-credit,
p.duga-api-credit {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--maxw, calc(var(--wrap, 75rem) + 2 * var(--gutter, 0px)));
  margin-inline: auto;
  padding-inline: var(--gutter, var(--space-md, 1rem));
}
/* .wrap は既に同じ左右の余白を持つ。中のクレジットへもう一度足すと出典の行より内側へ寄る。 */
.wrap p.duga-api-credit {
  width: auto;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
.room-nav { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding: 6px 12px 9px; border-top: 1px solid currentColor; text-align: center; }
.room-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; max-width: 100%; margin: 0; padding: 0; list-style: none; }
.room-nav li { min-width: 0; }
.room-nav a { display: inline-block; max-width: 100%; padding: 3px 1px; color: inherit; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; text-decoration: none; }
.room-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.room-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.archive-links { padding-block: 24px; }
html.is-gated { overflow: hidden; }
/* Cover the page even before JavaScript opens a dialog. */
html:not(.age-ok) #age-gate,
html:not(.age-ok) #agegate {
  position: fixed; inset: 0; z-index: 2147483647;
  display: grid; place-items: center;
  box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 16px; border: 0; border-radius: 0;
  overflow: auto; background: #100c10; animation: none;
}
html:not(.age-ok) #age-gate::backdrop { background: #100c10; }
html:not(.age-ok) #age-gate > .age-gate__inner,
html:not(.age-ok) #age-gate > .gate { box-sizing: border-box; width: min(100%, 460px); }
html:not(.age-ok) #age-gate > .gate { background: var(--color-panel); border: var(--rule) solid var(--color-rule); border-radius: var(--radius); }
html:not(.age-ok) .t1 #age-gate > .age-gate__inner { background: var(--c-surface); border: 1px solid var(--c-line); }

