.entrance-page .site-header, .entrance-page .sidebar { display: none; }
.entrance-page .layout { display: block; max-width: none; padding: 0; }

.archive-welcome, .archive-lobby {
  position: relative;
  min-height: 100dvh;
  padding: 12px 8px 32px;
  text-align: center;
  font: 16px/1.45 "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: #000;
}
.archive-welcome { background: #fc9; }
.archive-switch { position: absolute; top: 8px; right: 12px; color: #663300; font-size: 14px; }
.archive-switch a { color: #663300; text-decoration: underline; }
.archive-welcome h1 { margin: 18px 0 58px; font-size: clamp(30px, 7vw, 48px); line-height: 1.15; font-weight: 400; }
.archive-welcome h1 span { color: #ff0; }
.archive-welcome h1 strong { display: block; padding-inline-start: min(20vw, 210px); color: #cfc; }
.archive-welcome p { margin: 10px auto; }
.archive-greeting { color: #363; font-size: 19px; font-weight: 700; font-style: italic; }
.archive-message { color: #c06; font-size: 18px; }
.archive-welcome-crab { width: min(520px, 100%); margin: 0 auto; text-align: right; }
.archive-welcome .archive-staff { margin-top: 22px; color: #c6c; }
.archive-depart { display: grid; justify-items: center; gap: 18px; width: max-content; max-width: 100%; margin: 52px auto 0; color: #f00; font-size: clamp(17px, 5vw, 24px); }
.archive-depart img { display: block; width: min(100%, 289px); height: auto; }
.archive-lobby { padding-top: 8px; }
/* Coordinates measured from the rendered May 2002 lobby table (637 × 511). */
.archive-map { position: relative; isolation: isolate; width: min(637px, 100%); aspect-ratio: 637 / 511; margin: 16px auto 0; }
.archive-map h1 { position: absolute; top: 30.33%; left: 27.16%; width: 45.37%; margin: 0; }
.archive-map img { display: block; width: 100%; height: auto; }
.archive-room { position: absolute; width: 23.86%; }
.archive-room:hover, .archive-menu :is(a, button):hover { outline: 2px dotted #94617b; outline-offset: 2px; }
.archive-turtle { left: 37.99%; top: 0.20%; }
.archive-octopus { left: 12.09%; top: 10.18%; }
.archive-squid { left: 64.05%; top: 9.98%; }
.archive-dolphin { left: 0; top: 29.16%; }
.archive-lobster { left: 75.98%; top: 29.16%; }
.archive-kappa { left: 0; top: 48.73%; }
.archive-whale { left: 75.98%; top: 48.14%; }
.archive-crab { left: 11.93%; top: 69.86%; }
.archive-coral { left: 64.05%; top: 69.28%; }
.archive-shark { left: 37.99%; top: 81.21%; }
.archive-whale, .archive-crab, .archive-shark { width: 24.02%; }
.archive-manners { min-height: 91px; margin: 0; align-content: center; font-weight: bold; }
.archive-manners span { color: #ff0; }
.archive-manners b { color: #f99; }
.archive-menu { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; row-gap: 6px; width: min(708px, 100%); margin: auto; }
.archive-menu > a { justify-self: start; }
.archive-menu > a:nth-child(-n+4) { margin-top: 13px; }
.archive-menu > a:nth-child(8) { margin-top: 5px; }
.archive-menu img { display: block; max-width: 100%; height: auto; }
.archive-menu .archive-new-badge { margin-inline: auto; }
.archive-banners { display: flex; justify-content: center; align-items: center; gap: 13px; margin: 5px auto 0; }
.archive-board-page { background: #eee8aa; color: #000; }
.archive-board-page .site-header, .archive-board-page .sidebar { display: none; }
.archive-board-page .layout { display: block; max-width: 650px; padding: 8px; font: 16px "Times New Roman", "Hiragino Mincho ProN", serif; }
.archive-board-title { margin: 0 auto 16px; color: #ffff55; text-align: center; font-size: 42px; font-style: italic; }
.archive-board-page .panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.archive-board-page .board-panel > header { min-height: 0; justify-content: center; width: max-content; max-width: 100%; margin: auto; padding: 3px; border: 3px outset #aaa; gap: 4px; }
.archive-board-page .board-panel > header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.archive-board-page :is(.board-panel > header a, .button, .archive-reply) {
  display: inline-block; min-height: 0; padding: 2px 7px; border: 2px outset #aaa; border-radius: 0;
  background: #eee; color: #000; font: 13px system-ui, sans-serif;
}
.archive-board-page .board-content { padding: 8px 0; }
.archive-board-page .board-empty { display: block; min-height: 0; padding: 8px; font: inherit; }
.archive-board-page .board-empty :is(.empty-icon, span) { display: none; }
.archive-board-page .thread-panel, .archive-thread { border: 4px ridge #aaa; padding: 6px; }
.archive-thread + .archive-thread { margin-top: 12px; }
.archive-thread h3 { margin: 0 0 5px; font-size: 18px; overflow-wrap: anywhere; }
.archive-thread-meta { font-size: 13px; overflow-wrap: anywhere; }
.archive-thread blockquote { margin: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-board-page:is([data-board="bbs"], [data-board="topics"]) .archive-board-title { font-size: clamp(32px, 8vw, 48px); }
.archive-board-page:is([data-board="bbs"], [data-board="topics"]) .archive-thread { width: min(600px, 100%); margin-inline: auto; }
.resbbs-thread-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px inset #aaa; padding-bottom: 3px; }
.resbbs-thread-heading h3 { margin: 0; }
.board-homepage { color: var(--blue); text-decoration: underline; }
.archive-board-page .board-homepage, .resbbs-credit a { color: #d02090; text-decoration: underline; }
.resbbs-credit { margin: 12px 0 0; border-top: 1px inset #aaa; padding-top: 8px; text-align: right; font-size: 13px; }
.archive-board-page .board-post .avatar { display: none; }
.archive-board-page .back-link { color: #d02090; text-decoration: underline; }

.mobile-home { max-width: 700px; margin: auto; padding: 24px 16px 34px; }
.mobile-home-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mobile-home-header h1 { margin: 2px 0 0; font-size: clamp(23px, 6vw, 32px); }
.mobile-home-header span { color: var(--muted); }
.mobile-home-header a, .mobile-chat-header a { flex: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--blue); font-size: 13px; font-weight: 700; }
.mobile-home-header a { padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mobile-home h2 { margin: 0 0 10px; font-size: 16px; }
.mobile-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-room-grid a, .mobile-board-link { display: flex; align-items: center; gap: 8px; min-height: 65px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mobile-room-grid a > svg, .mobile-board-link > svg:last-child { margin-left: auto; width: 14px; color: var(--blue); }
.mobile-room-grid strong, .mobile-board-link strong { display: block; font-size: 14px; }
.mobile-room-grid small, .mobile-board-link small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.mobile-board-link { margin-top: 16px; padding-inline: 12px; }
.mobile-board-link svg:first-child { width: 25px; color: var(--blue); }
.mobile-room-grid a:hover, .mobile-board-link:hover { border-color: var(--blue); }

.mobile-chat { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; width: min(100%, 720px); height: 100vh; height: var(--mobile-height, 100dvh); margin: auto; background: #fff; }
.mobile-chat-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 5px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.mobile-chat-header h1 { margin: 0; font-size: clamp(15px, 4.5vw, 21px); }
.mobile-chat-header a { gap: 3px; justify-self: start; }
.mobile-chat-header a:last-child { justify-self: end; }
.mobile-chat-header [role=status] { color: var(--muted); font-size: 11px; }
.mobile-members { padding: 0 13px; border-bottom: 1px solid var(--line); background: #f4f8fc; }
.mobile-members summary { min-height: 44px; align-content: center; color: var(--blue); cursor: pointer; font-size: 13px; }
.mobile-members ul { margin: 0 0 9px; padding-left: 20px; max-height: 20dvh; overflow: auto; font-size: 13px; }
.mobile-log { overflow: auto; overscroll-behavior: contain; padding: 0 13px; }
.mobile-notice { color: var(--muted); text-align: center; font-size: 12px; }
.mobile-empty { margin: 24px 0; color: var(--muted); text-align: center; font-size: 14px; }
.mobile-post { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.mobile-post header { display: flex; align-items: baseline; gap: 8px; }
.mobile-post time { color: var(--muted); font-size: 11px; }
.mobile-post p { margin: 3px 0 0; white-space: pre-wrap; }
.mobile-composer { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #f8fbfe; }
.mobile-composer input, .mobile-composer select, .mobile-composer textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 7px 8px; border: 1px solid #c9d9e7;
  border-radius: 8px; background: white; color: var(--ink); font-size: 16px;
}
.mobile-composer textarea { max-height: 24dvh; }
.mobile-composer label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; }
.mobile-composer .button { min-height: 44px; }
#mobile-join { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 6px; }
#mobile-join:has(.mobile-greeting) { grid-template-columns: minmax(0, 1fr) auto; }
.mobile-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.mobile-compose-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.mobile-leave { min-height: 35px; border: 0; background: none; color: var(--blue); font-weight: 700; }
.mobile-board-page .layout { display: block; max-width: 770px; }
.mobile-board-page .sidebar { display: none; }

@media (max-width: 360px) {
  .mobile-chat-header a:first-child span { display: none; }
  .mobile-room-grid .room-icon { width: 32px; height: 32px; }
}

.mobile-room-note { color: var(--muted); font-size: 11px; }
.mobile-composer .mobile-telegram-option { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.mobile-composer .mobile-telegram-option input { min-height: 0; width: 20px; height: 20px; }

/* The archived page references img/bg.gif. The image itself is missing. */
.archive-lobby {
  background-color: #fff;
  background-image: conic-gradient(#e8ffff 0 25%, transparent 0 50%, #e8ffff 0 75%, transparent 0);
  background-size: 24px 24px;
}
.archive-lobby-links { font-size: 24px; line-height: 36px; font-weight: bold; }
.archive-lobby-links p { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1em; margin: 0; }
.archive-lobby-links p + p { margin-top: 16px; }
.archive-lobby-links a { color: #630; text-decoration: underline; }
@media (max-width: 760px) {
  .archive-lobby .archive-switch { position: static; text-align: right; }
  .archive-lobby-links { font-size: clamp(15px, 3.6vw, 24px); line-height: 1.5; }
}
.mobile-home .mobile-board-heading { margin-top: 24px; }
.mobile-boards a > svg:first-child { flex: none; width: 20px; height: 20px; margin: 0; }
.board-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 10px; }
.board-nav a { color: var(--blue); text-decoration: underline; }
.board-directory h1 { text-align: center; }
.board-directory > p { text-align: center; }
.directory-board { max-width: 480px; margin: 14px auto; padding: 10px; border: 1px solid #aaa; background: #fff; text-align: center; }
.directory-board h2 { font-size: 18px; }
.directory-board img { height: auto; }
.archive-board-page .board-directory h1 { margin: 0; font-size: 48px; }
.archive-board-page .board-directory > p:first-of-type { margin-top: 0; color: #300; }
.archive-board-page .directory-board { margin: 16px auto; padding: 22px 4px; border: 4px ridge #aaa; }
.archive-board-page .directory-board h2 { color: #f06; font-weight: normal; }
.archive-board-page .board-directory a { color: #690; text-decoration: underline; }
.board-directory-back { display: inline-block; border: 3px ridge #aaa; padding: 0 2px; }
.archive-board-page[data-board="boards"] { background: #cf9; color: #090; }
.archive-board-page[data-board="topics"] { background: lavender; }
.archive-board-page[data-board="meeting"] { background: #fff; }
.archive-board-page[data-board="meeting"] .archive-board-title { color: #000; font-size: 20px; font-style: normal; }
.archive-board-page[data-board="meeting"] .layout { max-width: none; }
.meeting-table { width: 100%; border-spacing: 0; }
.meeting-table th { background: navy; color: white; padding: 3px 6px; }
.meeting-table th:first-child { width: 65%; text-align: start; }
.meeting-table td { padding: 5px; background: #f4f4ff; overflow-wrap: anywhere; }
.meeting-table a { color: #00f; text-decoration: underline; }
.archive-board-page[data-board="guestbook"] { background: #96c8ff; }
.archive-board-page[data-board="personal"] { background: wheat; color: blue; }
.archive-board-page[data-board="vote"] { min-height: 100dvh; background: #cff; color: #090; }
.archive-board-page.archive-ballot[data-board="vote"] { background: #fed; color: #000; }
.archive-ballot .layout { max-width: none; }
.archive-board-page[data-board="personal"] :is(.special-board h1, .board-nav a) { color: #aa0000; }
.archive-board-page .special-board h1 { text-align: center; }
.archive-board-page .special-form :is(input, textarea, select) {
  min-height: 0; border: 2px inset #aaa; border-radius: 0; background: #fff; color: #000; font-size: 13px;
}
.archive-board-page .special-board button { color: buttontext; }
.special-board, .special-form { overflow-wrap: anywhere; }
.special-form { margin: 10px auto; }
.special-form label { display: block; margin: 6px 0; }
.special-form :is(input, textarea, select) { max-width: 100%; }
.special-form textarea { display: block; width: min(100%, 480px); }
.guest-intro, .guest-count, .guest-order { margin: 5px 0; padding: 6px; }
.archive-board-page .guest-intro, .archive-board-page[data-board="guestbook"] h1 { background: #ffffc8; border: 4px solid #fff; color: #00f; text-align: center; }
.archive-board-page .guest-count { background: #ffdcdc; border: 4px solid #fff; }
.archive-board-page .guest-order, .archive-board-page .guest-form { background: aquamarine; border: 4px solid #fff; padding: 6px; }
.guest-entry { padding: 6px; margin: 8px 0; }
.archive-board-page .guest-entry { background: aquamarine; border: 4px solid #fff; }
.guest-entry header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px; }
.archive-board-page .guest-entry header { background: moccasin; }
.guest-entry header span { font-size: 12px; }
.guest-entry p, .personal-results td span { white-space: pre-wrap; }
.guest-new { color: #b00000; font-family: "Comic Sans MS", sans-serif; }
.personal-results { width: min(100%, 620px); margin: 12px auto; }
.personal-results :is(th, td) { padding: 4px 6px; }
.personal-results td small { display: block; color: #555; }
.personal-results a { color: inherit; text-decoration: underline; }
.archive-board-page .personal-form { width: 90%; }
.archive-board-page .personal-form .personal-question { display: block; color: green; font-size: 18px; }
.archive-board-page .personal-form .personal-tag-note { color: #f40; }
.archive-board-page .personal-results { width: 95%; }
.archive-board-page .personal-results td { text-align: center; }
.archive-board-page .personal-results td:last-child { text-align: start; }
.archive-board-page .personal-results img { max-width: 100%; }
.vote-masthead { max-width: 100%; height: 42px; }
.vote-guide { text-align: center; }
.vote-guide :is(h1, h2, ol) { width: fit-content; max-width: 100%; margin-inline: auto; }
.vote-guide h1 { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.vote-guide-rules, .vote-guide-duties { text-align: start; }
.archive-board-page .vote-guide :is(h1, h2, ol) { border: 3px ridge #aaa; }
.archive-board-page .vote-guide h1 { min-height: 58px; padding: 4px 10px; background: #d9fe81; color: #f09; font-style: italic; }
.archive-board-page .vote-guide h2 { padding: 3px 28px; background: #cf9; }
.archive-board-page .vote-guide ol { padding: 3px 5px 3px 2.2em; background: #cfc; }
.archive-board-page .vote-guide li { padding: 4px; border: 1px inset #aaa; background: #ffc; }
.archive-board-page .vote-guide .vote-guide-duties { background: #fcc; }
.archive-board-page .vote-guide .vote-guide-duties li { background: #fc6; }
.archive-board-page .vote-guide-enter { display: inline-block; border: 3px ridge #aaa; background: #3f6; }
.archive-board-page .vote-guide-enter img { display: block; }
.mobile-board-page .vote-guide-enter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; background: var(--blue); color: #fff; }
.vote-back { color: #295; text-decoration: underline; }
.vote-results { max-width: 100%; }
.vote-results :is(th, td) { padding: 2px 5px; text-align: center; overflow-wrap: anywhere; }
.vote-results meter { width: 120px; max-width: 100%; }
.archive-ballot .special-board h1 { text-align: start; }
.archive-ballot .vote-add label { display: inline-block; margin-inline-end: 6px; }
.mobile-board-page .vote-results { width: 100%; border: 1px solid var(--line); border-collapse: collapse; }
.mobile-board-page .vote-results :is(th, td) { border: 0; border-bottom: 1px solid var(--line); }
.mobile-board-page .vote-results :is(th, td):last-child { display: none; }
.mobile-board-page .vote-results td:nth-child(3) button { white-space: nowrap; }
.mobile-board-page .special-board, .mobile-board-page .board-directory { margin: 0 auto; max-width: 620px; }
.mobile-board-page .board-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-board-page .special-form { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mobile-board-page .special-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.mobile-board-page .special-form :is(input, textarea, select) {
  width: 100%; min-height: 44px; padding: 6px; border: 1px solid #b7cada; border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px;
}
.mobile-board-page .special-board button { min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; background: #eef5fb; color: var(--blue); }
.mobile-board-page .guest-entry { border-bottom: 1px solid var(--line); }
.mobile-board-page .personal-results { border: 0; border-collapse: collapse; text-align: start; }
.mobile-board-page .personal-results :is(th,td) { border: 0; border-bottom: 1px solid var(--line); padding: 10px 6px; }
.mobile-board-page .personal-results a { color: var(--blue); display: inline-flex; align-items: center; min-height: 32px; }
.archive-replies { border-top: 1px solid #888; margin-block: 8px 0; padding-inline-start: 24px; }
.archive-replies li { padding: 5px 0; overflow-wrap: anywhere; }
.archive-replies li + li { border-top: 1px solid #aaa; }
.archive-replies li p { margin: 3px 0; white-space: pre-wrap; }
.archive-replies time { font-size: 12px; }
.vote-masthead { display: block; margin: 0 auto; }

.archive-paper {
  min-height: 100dvh;
  padding: 8px 10px 30px;
  background: #fff;
  color: #090;
  text-align: center;
  font: 16px/1.45 "Times New Roman", "Hiragino Mincho ProN", serif;
}
.archive-paper-content { max-width: 680px; margin: 15px auto; }
.archive-paper p { color: #300; }
.archive-paper p strong { color: #c00; }
.archive-paper a { color: #690; text-decoration: underline; }
.archive-paper img { max-width: 100%; }
.archive-paper:not(.archive-paper-tips) img { height: auto; }
.archive-paper-nav { display: flex; justify-content: space-between; align-items: center; }
.archive-paper-heading {
  width: fit-content;
  margin: 1em auto;
  border: 3px double #999;
  padding-inline: 12px;
  background: #fc9;
  font-size: 1.2em;
}
.archive-paper-rules:not(.archive-paper-mobile) .archive-paper-content p { margin: 14px auto 20px; font-size: 13px; }
.archive-paper-rules:not(.archive-paper-mobile) .archive-paper-heading { padding-inline: 14px; border: 3px double #888; }
.archive-paper-mobile.archive-paper-rules h1 { font-size: 1.6em; }
.archive-paper-helpers { background: #9f3 url('/archive/cook_bg.gif'); color: #000; }
.archive-paper-helpers h1 { margin: 0 0 12px; }
.archive-helpers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 8px;
  max-width: 544px;
  margin: 4px auto 20px;
  padding: 4px;
  border: 1px outset #999;
  list-style: none;
  font-size: 13px;
}
.archive-helpers li { display: flex; flex-direction: column; background: var(--helper-color); border: 1px inset #999; }
.archive-helpers h2 { margin: 0; padding: 3px; border-bottom: 1px inset #999; font: inherit; }
.archive-helpers h2 span { display: block; }
.archive-helpers p { margin: auto 0; padding: 10px 4px 4px; color: inherit; }
.archive-helpers li:nth-child(12) { color: #fff; }
.helper-stars { padding: 0 3px 4px; color: #ff0; text-shadow: 0 1px #554600; }
.archive-paper-mobile .archive-helpers { grid-template-columns: 1fr; border: 0; gap: 8px; font-size: 16px; }
.archive-paper-mobile .archive-helpers li { border: 1px solid var(--line); border-inline-start: 8px solid var(--helper-color); border-radius: 8px; background: #fff; color: var(--ink); }
.archive-paper-mobile .archive-helpers h2 { padding: 6px; border-color: var(--line); font-weight: bold; }
.archive-paper-mobile .helper-stars { color: #715500; text-shadow: none; }
.archive-paper-manager { color: #000; }
.archive-paper-manager h1 { color: #6f0; font-weight: normal; }
.archive-paper-manager p { color: inherit; font-style: italic; }
.manager-election { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25em; }
.archive-paper-mobile.archive-paper-manager h1 { color: var(--ink); }
.archive-paper-tips { background: #f9c; color: #c00; }
.archive-paper-tips:not(.archive-paper-mobile) .archive-paper-content { max-width: none; }
.archive-paper-tips h1, .tips-section h2 { width: fit-content; margin: 0 auto 24px; border: 1px outset #999; padding: 2px 18px; }
.archive-paper-tips h1 { background: #fc9; color: #ff0; }
.tips-section { --heading-color: #cff; --entry-color: #cff; margin: 42px auto; }
.tips-section h2 { background: var(--heading-color); }
.tips-friends h2 { color: #00f; }
.tips-money { --heading-color: #cfc; --entry-color: #9c9; }
.tips-news { --heading-color: #fcc; --entry-color: #fcf; }
.tips-fun { --heading-color: #ff9; }
.tips-useful { --heading-color: #fc9; --entry-color: #fc9; }
.tips-entry { display: grid; grid-template-columns: minmax(0, 144px) 1fr; gap: 2px; max-width: 650px; margin: 2px 0; border: 1px outset #999; padding: 2px; }
.tips-image { display: grid; place-items: center; border: 1px inset #999; }
.archive-paper-tips .tips-entry p { margin: 0; border: 1px inset #999; padding: 8px; background: var(--entry-color); color: inherit; text-align: start; }
.tips-image img { vertical-align: middle; }
.archive-paper-mobile.archive-paper-tips h1 { background: none; border: 0; padding-inline: 0; color: var(--ink); font-size: clamp(21px, 6vw, 28px); }
.archive-paper-mobile .tips-section { margin: 24px auto; }
.archive-paper-mobile .tips-section h2 { margin-bottom: 8px; border: 0; border-radius: 8px; color: var(--ink); }
.archive-paper-mobile .tips-entry { grid-template-columns: 1fr; gap: 0; margin: 6px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.archive-paper-mobile .tips-image { padding: 6px; border: 0; }
.archive-paper-mobile .tips-image img { height: auto; }
.archive-paper-mobile .tips-image:empty { display: none; }
.archive-paper-mobile.archive-paper-tips .tips-entry p { border: 0; background: #fff; }
.archive-paper-banners { background: #cff; color: #39745c; }
.archive-paper-banners h1 { color: #f99; font-size: 1.5em; }
.archive-paper-mobile.archive-paper-banners h1 { color: #b44e65; }
.archive-banner-table { width: min(334px, 100%); border-spacing: 8px; margin: 0 auto 12px; }
.archive-banner-table :is(td, th) { padding: 8px 4px; }
.archive-banner-table td { background: #ff9; }
.archive-banner-table tr:nth-last-child(2) td { background: #fcc; }
.archive-banner-table tr:last-child td { background: #9fc; }
.archive-banner-table th { width: 100px; background: #fff; font: 13px/1.4 monospace; }
.archive-banner-table strong { display: block; color: #36f; }
.archive-banner-table img { vertical-align: middle; }
.archive-paper-friends { background: #fc9; color: #000; }
.archive-friend-registration { background: #fed; }
.archive-paper-friends:not(.archive-paper-mobile) .archive-paper-content { margin-inline: 0; text-align: left; }
.friend-intro { color: #c00; }
.friend-intro span { color: #903; }
.friend-form {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 12px auto;
  padding: 8px;
  background: #ffeedD;
  border: 2px outset #999;
}
.archive-paper-friends:not(.archive-paper-mobile) .friend-form { padding: 0; border: 0; background: none; }
.friend-form :is(input, select) { max-width: 100%; }
.friend-form input { width: 15ch; min-height: 0; border: 2px inset #aaa; border-radius: 0; padding: 1px 3px; }
.friend-register p { margin: 0; text-align: start; }
.friend-register-link img { display: block; margin-bottom: 8px; }
.friend-register-link a { font-size: 1.2em; }
.friend-results { overflow-x: auto; }
.friend-results table { width: 100%; border-collapse: collapse; background: #fff; }
.friend-results :is(th, td) { border: 1px solid #888; padding: 5px; overflow-wrap: anywhere; }
.friend-results td:last-child { min-width: 12ch; }
.friend-results dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 8px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: start; }
.friend-results dt { font-weight: 600; }
.friend-results dd { margin: 0; overflow-wrap: anywhere; }
.archive-paper-mobile { background: #f1f6fb; color: var(--ink); font: 16px/1.45 system-ui, sans-serif; }
.archive-paper-mobile :is(a, summary) { color: var(--blue); }
.archive-paper-mobile .archive-paper-nav { min-height: 44px; }
.archive-paper-mobile .archive-paper-heading, .archive-paper-mobile .friend-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.archive-paper-mobile .friend-form label { display: grid; width: 100%; gap: 3px; text-align: start; }
.archive-paper-mobile .friend-form :is(input, select, button) { min-height: 44px; border: 1px solid #9db6c9; border-radius: 8px; font-size: 16px; }
.archive-paper-mobile .friend-form input { width: 100%; }
.archive-paper-mobile .friend-register-link img { margin-inline: auto; }
.turnstile-box { width: 100%; min-width: 0; margin: 8px 0; }
.archive-board-index { display: inline-block; margin-top: 14px; color: #630; font-size: 13px; text-decoration: underline; }

.forest-lobby {
  min-height: 100dvh;
  padding: 32px 8px 40px;
  background: white;
  color: #555;
  text-align: center;
  font: 16px/1.4 "Times New Roman", "Hiragino Mincho ProN", serif;
}
.forest-lobby h1 { display: flex; align-items: end; justify-content: center; margin: 0; }
.forest-lobby img { max-width: 100%; object-fit: contain; }
.forest-count { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 72px; }
.forest-menus { display: grid; grid-template-columns: 55% 45%; width: min(600px, 100%); margin: auto; }
.forest-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(88px, auto); gap: 8px; }
.forest-menu > * { display: grid; align-content: start; justify-items: center; gap: 6px; }
.forest-menu a:hover img { outline: 2px dotted #96f; }
.forest-boards { min-height: 100dvh; padding: 8px 10px 30px; background: #f8f6e1; color: #c3c; text-align: center; font: 16px/1.45 "Times New Roman", "Hiragino Mincho ProN", serif; }
.forest-boards h1 { margin: 32px auto; }
.forest-board-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; max-width: 400px; margin: auto; }
.forest-board-list a { display: grid; gap: 4px; padding: 12px 4px; color: #0074b8; }
.forest-board-list strong { text-decoration: underline; }
.forest-board-list span { color: #a026a0; }
.forest-boards-mobile { background: var(--canvas); color: var(--ink); font: 16px/1.45 system-ui, sans-serif; }
.forest-boards-mobile .forest-board-list { grid-template-columns: 1fr; gap: 8px; }
.forest-boards-mobile .forest-board-list a { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.forest-board-page .layout { width: min(650px, 100%); padding: 10px; }
.forest-board-title { margin: 12px 0; text-align: center; }
.forest-board-page.archive-board-page { min-height: 100dvh; background: #fff; color: #000; }
.forest-board-page[data-forest-board="teens"].archive-board-page { background: #d9dbf0; color: #4d55a4; }
.forest-board-page[data-forest-board="twenties"].archive-board-page { background: #ffefef; }
.forest-board-page[data-forest-board="thirties"].archive-board-page { background: #ffe8fa; }
.forest-board-page .archive-board-title { color: inherit; font-style: normal; font-size: 32px; }
.forest-board-page .archive-thread { border: 1px solid currentColor; }
.forest-post-form { max-width: 470px; margin: 0 auto; padding: 8px; border: 1px solid currentColor; }
.forest-post-form label:has(input) { grid-template-columns: 4rem minmax(0, 1fr); align-items: center; }
.forest-post-form input { max-width: 260px; }
.forest-post-form :is(input, textarea) { min-height: 0; border: 2px inset #aaa; border-radius: 0; }
@media (max-width: 520px) {
  .forest-menus { grid-template-columns: 1fr; gap: 20px; }
}
.forest-room {
  min-height: 100dvh;
  padding: 8px;
  background: var(--forest-background);
  color: var(--forest-text);
  font: 16px/1.4 "Times New Roman", "Hiragino Mincho ProN", serif;
}
.forest-room a { color: inherit; text-decoration: underline; }
.forest-room :is(input, select) { max-width: 100%; }
.forest-room :is(input, button, select) { font: 13px system-ui, sans-serif; }
.forest-entry h1 { display: inline; margin: 0 6px 0 0; color: green; font-size: 24px; }
.forest-entry-note { margin: 0 0 8px; color: #d00; font-size: 24px; }
.forest-entry { min-height: 220px; padding: 12px 0 8px; }
.forest-entry form > p { margin: 4px 0; }
.forest-name { width: fit-content; padding: 1px 4px; background: skyblue; color: #111; }
.forest-avatars { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 6px 0; padding: 4px; width: fit-content; max-width: 100%; border: 0; }
.forest-avatars legend { padding: 0; }
.forest-avatars img { max-width: 42px; max-height: 42px; vertical-align: middle; }
.forest-chat-log { border-top: 3px ridge #aaa; padding-top: 4px; overflow-wrap: anywhere; }
.forest-chat-log img { max-width: 42px; max-height: 42px; vertical-align: middle; }
.forest-error { color: #111; background: #fff5ab; width: fit-content; }
.mobile-post-icon { width: 24px; height: 24px; object-fit: contain; align-self: center; }
