/* Shared refinements. Deliberately not loaded by /hbt_zzy. */
body {
  --muted: #586474;
  --accent: #087d8b;
  --ok: #13794d;
  --danger: #bc303a;
}
.topbar__inner { max-width: 1160px; gap: 14px; flex-wrap: wrap; }
.brand__text { white-space: nowrap; }
.nav { gap: 2px; align-items: center; }
.nav__link { padding: 8px 10px; white-space: nowrap; line-height: 1.5; }
.nav__link[aria-current="page"] { background: var(--accent-soft); color: #076b77; font-weight: 650; }
.topbar__account { margin-left: auto; gap: 7px; }
.topbar__account .btn, .game-btn { min-height: 38px; }
.main { padding-top: 32px; }
.hero { padding: 36px 0 42px; }
.hero__eyebrow { letter-spacing: .08em; text-transform: none; margin-bottom: 16px; }
.hero__title {
  color: transparent;
  background: linear-gradient(96deg, #171a20 8%, #0d9aaa 46%, #34d3c0 72%, #171a20 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sheen 12s ease-in-out infinite;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.hero__note { margin-top: 18px; padding-top: 0; font-size: 15px; max-width: 48ch; }
.hero__note::before { display: none; }
body .main .hero__title.reveal { animation: sheen 12s ease-in-out infinite; }
.footer__compact { gap: 8px 18px; padding-inline: 12px; font-size: 12px; }
.footer__compact-filing { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.footer__compact .filing__link { white-space: nowrap; }
.footer__separator {
  color: #79919a;
  flex: 0 0 auto;
  line-height: inherit;
}
.fun-head { margin: 8px 0 24px; }
.fun-head h1 { margin: 0 0 18px; font-size: clamp(1.8rem, 5vw, 2.5rem); }
.fun-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.fun-tabs a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; color: var(--ink-2); background: var(--panel); }
.fun-tabs a:hover { background: var(--accent-soft); color: #076b77; text-decoration: none; }
.fun-section { scroll-margin-top: 155px; }
.fun-game { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fun-game h2 { margin: 0; }
@media (max-width: 560px) {
  .footer__compact { gap: 6px 12px; font-size: 11px; }
  .fun-game { align-items: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body .main .hero__title.reveal { animation: none; }
}
.panel { box-shadow: 0 2px 12px -6px rgba(16, 24, 40, .16); }
body .main .reveal { animation: none; animation-timeline: auto; opacity: 1; transform: none; }
.grid > *, .mini-list, .mini-list__item, .mini-list__what { min-width: 0; }
.mini-list__what { overflow: hidden; text-overflow: ellipsis; }
.mini-list__who { overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.grid > .panel { margin-bottom: 0; }
.main > .grid, .admin__main > .grid { margin-bottom: 26px; }
.panel:hover { transform: none; box-shadow: 0 2px 12px -6px rgba(16, 24, 40, .16); }
.panel__head { gap: 12px; align-items: baseline; }
.panel__title { line-height: 1.4; }
.panel__note:empty { display: none; }
.panel__sub, .field__label .muted, .tag { line-height: 1.6; }
.btn { background: #087d8b; box-shadow: none; min-height: 42px; }
.btn:hover { background: #066977; }
.btn--ghost { color: var(--ink-2); background: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; }
.btn--danger { background: #b52d39; color: #fff; }
.btn--danger.btn--icon, .btn--danger.btn--ghost { color: #a92732; background: #fff3f4; }
.btn--icon { min-height: 38px; min-width: 38px; }
.btn--small { min-height: 38px; }
.input { min-height: 44px; }
.input::placeholder { color: #697484; opacity: 1; }
.field { min-width: 0; }
.field__label { line-height: 1.6; }
.field__label .muted { display: inline; font-size: 12px; }
.check { align-items: flex-start; }
.check input { flex: 0 0 auto; margin-top: 5px; }
.check > span { min-width: 0; overflow-wrap: anywhere; }
.gb-form__foot { justify-content: flex-end; }
.gb-item__time, .track-list__artist, .post-list__date { color: #626d7d; }
.gb-item__body, .gb-item__reply, .prose, .daily-paper__title, .daily-news__title { overflow-wrap: anywhere; }
.gb-item__reply { border-left-color: #087d8b; }
.auth-alt__btn { min-width: 0; }
.pill-set__row { flex-wrap: wrap; }
.notice { cursor: default; }
.study-break { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.study-break .panel__note { margin-bottom: 0; }
.museum__halls { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.hall { min-height: 156px; }
.museum__sub { max-width: 48ch; }
.museum__eyebrow { letter-spacing: .08em; }
.game__panel { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.game__bar { flex-wrap: wrap; gap: 10px; }
.game__hint, .game__foot { color: #545f6d; }
.game__close { min-width: 44px; min-height: 44px; }
.game__speed button { min-width: 38px; min-height: 38px; }
.game-btn { color: #096b76; }
.pet-restore__btn { display: inline-flex; align-items: center; justify-content: center; }
.pet-restore__btn img { display: block; object-fit: contain; }
.admin { grid-template-columns: 170px minmax(0, 1fr); gap: 26px; }
.admin__main { min-width: 0; }
.admin__head { margin-bottom: 22px; gap: 16px; }
.admin__title { font-size: clamp(1.6rem, 4vw, 2rem); }
.admin__main > .panel { margin-bottom: 22px; }
.admin__nav-link { min-height: 42px; padding: 9px 12px; }
.admin-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.stat-grid { gap: 10px; margin-bottom: 24px; }
.stat { padding: 16px 12px; }
.stat__note { color: #626d7d; }
.admin-projects, .editor-options { border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; }
.admin-projects { margin-bottom: 24px; }
.admin-projects > summary, .editor-options > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.admin-projects .card-grid { margin-top: 16px; }
.editor-options__fields { margin-top: 18px; gap: 18px; }
.home-copy-form > .btn { justify-self: start; }
.history > p { max-width: 65ch; }
.edit-list__form, .inline-add { min-width: 0; }
.table-wrap { max-width: 100%; }
.card__link { overflow-wrap: anywhere; }
.daily-head__title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.25; }
.daily-head__eyebrow { letter-spacing: .08em; }
.daily-head__note { max-width: 62ch; }
.daily-paper__num, .daily-news__idx, .daily-hot__rank { color: #08717e; }
.daily-paper__body, .daily-news__body { min-width: 0; }
@media (max-width: 1100px) {
  .nav { order: 3; flex: 1 0 100%; margin-left: 0; justify-content: center; }
  .topbar__inner { gap: 8px 12px; }
}
@media (max-width: 900px) {
  .admin { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .admin__side { position: static; min-width: 0; }
  .admin__nav { display: flex; flex-wrap: wrap; overflow: visible; gap: 4px; padding: 8px; }
  .admin__nav-link { flex: 0 0 auto; font-size: 13px; }
}
@media (max-width: 720px) {
  .topbar__inner { padding: 10px 16px; }
  .brand__text { display: inline; font-size: 13px; }
  .brand { gap: 6px; }
  .brand__fish { width: 28px; height: 28px; }
  .topbar__account { gap: 5px; }
  .topbar__account .btn { padding: 6px 9px; font-size: 12px; }
  .game-btn { padding: 6px 8px; gap: 4px; font-size: 12px; }
  .game-btn__label { display: inline; }
  .nav { justify-content: flex-start; flex-wrap: wrap; }
  .nav__link { font-size: 13px; padding: 7px 9px; }
  .main { padding: 22px 16px 64px; }
  .hero { padding: 26px 0 32px; }
  .hero__note { font-size: 14px; }
  .panel { padding: 20px; }
  .study-break { align-items: flex-start; }
  .game__panel { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 16px; }
  .game__hint, .game__foot { font-size: 12px; }
  .admin__nav-icon { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-options__fields { grid-template-columns: minmax(0, 1fr); }
  .daily-head { margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .nav__link { text-align: center; border-radius: 10px; }
  .pet-restore { right: 10px; bottom: 10px; }
  .pet-restore__btn { width: 40px; height: 40px; font-size: 20px; }
}
@media (max-width: 380px) {
  .topbar__inner { padding-inline: 10px; }
  .brand__text { font-size: 13px; }
  .brand__fish { width: 24px; height: 24px; }
  .topbar__account { gap: 4px; }
  .topbar__account .btn, .game-btn { padding: 6px; font-size: 11px; }
  .game-btn__paddle { display: none; }
  .panel { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .main .reveal { animation: none; opacity: 1; transform: none; }
  .hero__title { animation: none; }
}
