/* Readability pass: keep the compact room layout, give actual content readable type. */
:root {
  --sans: "BIZ UDPGothic", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  --serif: var(--sans);
  --ink: #29483d;
  --muted: #506658;
}
body { font-family: var(--sans); font-size: 16px; line-height: 1.75; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }
.nav a { font-size: 15px; }
.preview-note { font-size: 10px; letter-spacing: .02em; }
.shelf-heading h2 { font-size: 22px; }
.shelf-kicker, .shelf-count, .shelf-bottom, .sample-label { font-size: 11px; color: #506658; }
.track-row { min-height: 94px; }
.track-name { font-family: var(--sans); font-size: 16px; line-height: 1.6; }
.track-meta, .playing-label { font-size: 12px; line-height: 1.5; color: #506658; }
.track-index { font-family: var(--sans); font-size: 10px; color: #566b4c; }
.portal-copy { max-width: 75%; }
.portal-copy .portal-message { font-size: clamp(26px, 2.1vw, 34px); line-height: 1.65; text-shadow: none; color: #285443; }
.portal-copy .portal-message-detail { font-size: 16px; font-weight: 400; line-height: 1.9; color: #344e40; }
.portal-hero:after { background: linear-gradient(90deg, #fff5d8 5%, #fff5d8 27%, #fff5d8ed 42%, #fff5d87a 60%, transparent 78%); }
.village-badge { font-size: 12px; color: #435b39; }
.portal-top { grid-template-rows: minmax(0, 1fr) 244px; }
.guild-panel>h2, .portal-panel>h2 { font-size: 18px; line-height: 1.5; padding: 12px 17px; }
.portal-panel h2 small { font-family: var(--sans); font-size: 10px; color: #506658; }
.guild-scroll { font-size: 15px; line-height: 1.85; padding: 12px 17px; }
.guild-scroll p+p { margin-top: 7px; }
.guild-total { color: #385d3a; }
.news-row { grid-template-columns: 86px 72px minmax(0, 1fr); gap: 7px 10px; padding: 12px 0; }
.news-date, .news-type { font-size: 12px; color: #506658; }
.news-title { font-size: 15px; line-height: 1.7; }
.news-body, .news-more { font-size: 13px; line-height: 1.8; color: #506658; }
.app-footer, .app-footer button, .app-footer a { font-size: 11px; color: #465e3c; }
.mini-name span { font-size: 15px; }
.mini-name small, .mini-time { font-size: 12px; color: #506658; }
.page-top h1 { font-size: 28px; }
.breadcrumb, .playlist-top p, .page-top .eyebrow { font-size: 13px; }
.scene-title { font-family: var(--sans); font-size: 27px; font-weight: 700; letter-spacing: .02em; }
.scene-label, .scene-subtitle { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; }
.player-intro, .player-status, .mode-select, .vis-toggle { font-size: 14px; }
.time-row { font-size: 12px; }
.btn { font-size: 15px; }
.mml-meta, .mml-panel .usage-link, .social-action { font-size: 13px; }
.mml-meta strong { font-size: 17px; }
.usage-lead, .usage-step p, .usage-terms p, .dialog-content .intro-text { font-size: 16px; line-height: 1.9; }
.usage-step h2 { font-size: 21px; }
.dialog-content .guild-note { font-size: 14px; line-height: 1.8; }
.toast { font-size: 14px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .nav a { font-size: 14px; padding: 10px 12px; }
  .track-name { font-size: 15px; }
  .track-meta { gap: 4px; }
  .portal-copy { max-width: 90%; }
  .portal-copy .portal-message { font-size: 26px; }
  .guild-panel>h2, .portal-panel>h2 { font-size: 16px; padding: 10px 12px; }
  .guild-scroll { font-size: 14px; padding: 10px 12px; }
  .news-row { grid-template-columns: 86px 72px; }
  .news-title { grid-column: 1 / -1; font-size: 14px; }
  .news-body { display: block; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .nav a { font-size: 15px; }
  .preview-note { font-size: 10px; }
  .shelf-heading h2 { font-size: 15px; }
  .shelf-count { font-size: 11px; }
  .track-row { min-height: 70px; padding: 8px 9px; }
  .track-name { font-size: 14px; line-height: 1.5; }
  .track-meta { font-size: 12px; margin-top: 4px; }
  .playing-label { font-size: 10px; }
  .track-index { font-size: 10px; }
  .portal-top { grid-template-rows: minmax(0, 1fr) 234px; }
  .portal-copy { max-width: 100%; padding: 14px; }
  .portal-copy .portal-message { font-size: 22px; line-height: 1.6; margin-bottom: 12px; }
  .portal-copy .portal-message-detail { font-size: 14px; line-height: 1.8; }
  .portal-hero:after { background: linear-gradient(90deg, #fff5d8fa, #fff5d8f0 38%, #fff5d8b3 76%, #fff5d84d); }
  .top-panels { grid-template-rows: 34px minmax(0, 1fr); }
  .panel-tabs button { font-size: 14px; }
  .guild-panel>h2 { font-size: 15px; padding: 7px 11px; line-height: 1.5; }
  .guild-scroll { font-size: 14px; line-height: 1.75; padding: 8px 11px; }
  .guild-scroll p+p { margin-top: 6px; }
  .news-row { grid-template-columns: 83px 68px; padding: 9px 0; gap: 5px 8px; }
  .news-title { grid-column: 1 / -1; font-size: 14px; }
  .news-body, .news-more { font-size: 12px; }
  .mini-inner { height: 54px; }
  .mini-name span { font-size: 14px; }
  .mini-name small { font-size: 11px; }
  .app-footer { gap: 8px; }
  .app-footer button, .app-footer a { font-size: 10px; }
  .app-footer>span { font-size: 9px; }
  .page-top h1 { font-size: 22px; }
  .breadcrumb { font-size: 12px; }
  .scene-title { font-size: 20px; }
  .scene-label, .scene-subtitle { font-size: 10px; }
  .player-intro { font-size: 13px; }
  .mode-select, .vis-toggle { font-size: 12px; }
  .mode-select { max-width: 120px; }
  .player-preferences { flex-wrap: wrap; }
  .time-row { font-size: 12px; }
  .mml-copy { font-size: 14px; min-height: 40px; }
  .mml-meta, .mml-panel .usage-link, .social-action { font-size: 12px; }
  .mml-meta strong { font-size: 15px; }
  .social-row { flex-wrap: wrap; }
  .social-right { gap: 12px; }
  .usage-lead, .usage-step p, .usage-terms p, .dialog-content .intro-text { font-size: 14px; }
  .usage-step h2 { font-size: 18px; }
  .usage-terms h2 { font-size: 21px; }
  .dialog-content .guild-note { font-size: 13px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .portal-top { grid-template-rows: minmax(0, 1fr) 192px; }
  .portal-copy { padding: 10px 12px; }
  .portal-copy .portal-message { font-size: 20px; margin-bottom: 8px; }
}
@media (max-width: 760px) and (max-height: 680px) {
  body[data-page=top] #main { overflow: auto; }
  .portal-top { min-height: 370px; grid-template-rows: minmax(164px, 1fr) 192px; }
}
