/* public site. dark theme, one accent, noto sans for text (roboto as backup) and jost for headings/names. everything is self hosted,
   no other host ever gets asked for a file. one ordered file: fonts, tokens, base, layout, buttons, shell,
   components, pages, smaller screens */

@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/notosans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/notosans-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/roboto.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/roboto-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/jost.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/jost-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 1. tokens */

:root {
  color-scheme: dark;
  --bg: rgb(29, 29, 29);
  --band: rgb(66, 66, 66);
  --panel: rgb(48, 48, 48);
  --panel-2: rgb(38, 38, 38);
  --line: rgb(97, 97, 97);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.55);
  --sub: rgb(189, 189, 189);
  --accent: rgb(241, 110, 70);
  --accent-text: rgb(241, 110, 70);
  --link: rgb(47, 142, 244);
  --accent-line: rgba(241, 110, 70, 0.5);
  --accent-soft: rgba(241, 110, 70, 0.12);
  --on-accent: #fff;
  --notice: rgb(160, 80, 80);
  --good: rgb(98, 201, 122);
  --warn: rgb(240, 190, 80);
  --bad: rgb(255, 122, 122);
  --logo-a: #f8098f;
  --logo-b: #fba61a;
  --head: "Jost", "Roboto", system-ui, "Segoe UI", Arial, sans-serif;
  --body: "Noto Sans", "Roboto", system-ui, "Segoe UI", Arial, sans-serif;
  --r-sm: 8px;
  --r: 8px;
  --r-lg: 16px;
  --radius: 8px;
  --t-hero: clamp(26px, 4.2vw, 44px);
  --t-h1: clamp(28px, 3vw, 36px);
  /* one centred content width on every page */
  --wrap: 1518px;
  --gutter: 32px;
  --narrow: 760px;
  --top: 64px;
}
@media (max-width: 1099px) { :root { --gutter: 24px; } }
@media (max-width: 599px) { :root { --gutter: 16px; --top: 56px; } }

/* 2. base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body); padding-top: var(--top); min-height: 100vh;
  display: flex; flex-direction: column; overflow-wrap: anywhere; }
main { flex: 1 0 auto; width: 100%; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.92em; }
strong, b { font-weight: 700; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 8px; }
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.icon--sm { width: 18px; height: 18px; }

/* 3. layout */

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.wrap--post { max-width: calc(1100px + 2 * var(--gutter)); }
.page { padding-block: 40px 64px; }
.page > h1, .pagehead > h1 { font: 700 var(--t-h1)/1.2 var(--head); margin-bottom: 16px; }
.page__lead { color: var(--muted); margin: -6px 0 24px; max-width: 70ch; }
.pagehead { margin-bottom: 24px; }
.pagehead .page__lead { margin-bottom: 8px; }
.pagehead--logo picture img { width: 240px; margin: 0 auto 12px; }
.sec { margin-top: 20px; }
.sec .card__body > * + * { margin-top: 12px; }
.more { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.center .actions { justify-content: center; }
/* long player names in buttons wrap instead of pushing the page sideways */
.actions .btn, .more .btn { white-space: normal; text-align: center; max-width: 100%; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }

/* 4. buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--accent-line); background: transparent; color: var(--accent-text); font: 600 14px/1.2 var(--body); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease; }
.btn:hover { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }
.btn--fill, .btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--fill:hover, .btn--primary:hover { background: rgb(168, 77, 49); border-color: rgb(168, 77, 49); }
.btn--quiet { border-color: var(--line); color: var(--muted); }
.btn--quiet:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--muted); color: var(--text); }
.btn--big { min-height: 40px; padding: 6px 22px; font: 500 15px/1.75 var(--body); }
.btn--big .icon { width: 20px; height: 20px; }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; pointer-events: none; }
.btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text); flex: none; }
.iconbtn:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

/* 5. shell: top bar, band, search, notice, footer, phone bottom bar */

.top { position: fixed; inset: 0 0 auto 0; height: var(--top); background: var(--bg); z-index: 50; }
.top__in { height: 100%; display: flex; align-items: center; gap: 8px; max-width: none; padding-inline: 24px; }
.logo { align-self: flex-start; display: flex; align-items: center; justify-content: center; height: 84px; padding: 0 12px; margin-left: -12px;
  background: var(--bg); border-radius: var(--r-sm); flex: none; }
.logo:hover { text-decoration: none; }
.logo__full img { width: 96px; height: 64px; }
.logo__icon { display: none; width: 36px; height: 36px; }
.top__links { display: flex; align-items: center; gap: 2px; margin-left: 12px; min-width: 0; }
.top__links a { color: var(--text); font: 700 16px/20px var(--head); padding: 12px 8px; white-space: nowrap; }
.top__links a:hover { color: var(--accent-text); text-decoration: none; }
.top__links a[aria-current="page"] { color: var(--accent-text); }
.top__space { flex: 1; }
.top__tools { display: flex; align-items: center; gap: 16px; flex: none; }
.top .btn { min-height: 32px; padding: 5px 15px; }
.top .btn--fill { padding: 6px 12px; }
.top__dlicon { display: none; }
.gear .menu { min-width: 180px; }
.top__me { display: flex; }
.me { position: relative; }
.me__btn { display: flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 22px; padding: 3px 12px 3px 3px; max-width: 220px; }
.me__btn:hover { border-color: var(--accent-line); }
.me__name { font: 600 15px/1 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 0; z-index: 60; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 9px 10px; border: 0; background: transparent; border-radius: 0; color: var(--text); text-align: left; font-size: 15px; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.band { height: 32px; background: var(--band); }

.search { position: fixed; inset: var(--top) 0 auto 0; background: var(--panel-2); border-bottom: 1px solid var(--line); z-index: 49; }
.search__in { padding-block: 14px 16px; }
.search__row { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 0 2px 0 14px; }
.search__row:focus-within { border-color: var(--accent); }
.search__row input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; outline: none; }
.search__res { margin-top: 10px; max-height: min(60vh, 520px); overflow-y: auto; }
.search__group { font: 600 13px/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 12px 6px 6px; }
.search__item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 8px; border-radius: 10px; color: var(--text); }
.search__item:hover, .search__item:focus-visible { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.search__item img.room-thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; }
.search__sub { display: block; font-size: 13px; color: var(--muted); }

/* the warning bar: a red box on the grey band inside the page width, our mark on the left, text that wraps, x on the right */
#notice:not(:empty) { background: var(--band); padding: 0 var(--gutter) 32px; }
.notice { max-width: var(--wrap); margin: 0 auto; }
.notice__in { display: flex; align-items: center; gap: 8px; min-height: 113px; padding: 8px 16px; background: var(--notice); color: #fff; border-radius: var(--r-sm); }
.notice__icon { width: 56px; height: 56px; flex: none; margin: 7px 8px 7px 0; }
.notice__text { flex: 1; min-width: 0; padding: 8px 0; font-size: 16px; line-height: 24px; }
.notice__text a { color: #fff; text-decoration: underline; }
.notice .iconbtn { color: #fff; margin-left: 8px; }

.foot { margin-top: auto; border-top: 1px solid var(--line-soft); }
.foot__in { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding-block: 16px 20px; font-size: 13px; color: var(--sub); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot__links a { color: var(--sub); }
.foot__links a:hover { color: var(--text); }
.foot__status { display: inline-flex; align-items: center; gap: 6px; }
.foot__status strong { color: var(--text); font-weight: 500; }
.foot__legal { flex-basis: 100%; color: var(--faint); }
.tabbar { display: none; }

/* 6. components */

.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none;
  background: rgb(200, 78, 40); color: #fff; font: 600 18px/1 var(--head); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; font-size: 14px; }
.avatar--md { width: 56px; height: 56px; font-size: 24px; }
.avatar--xl { width: 158px; height: 158px; font-size: 64px; border: 4px solid var(--bg); }
.av-0 { background: rgb(200, 78, 40); } .av-1 { background: rgb(52, 112, 168); } .av-2 { background: rgb(62, 122, 62); }
.av-3 { background: rgb(150, 88, 172); } .av-4 { background: rgb(150, 106, 20); } .av-5 { background: rgb(40, 120, 120); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot--on { background: var(--good); }
.live { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* live server status: pill on home, line in the footer */
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font: 500 14px/20px var(--body); color: var(--muted); min-height: 34px; }
.status strong, .foot__status strong { color: var(--text); }
[data-state="up"] .dot { background: var(--good); }
[data-state="maintenance"] .dot { background: var(--warn); }
[data-state="offline"] .dot { background: var(--bad); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card + .card { margin-top: 16px; }
.cols > .card, .rooms > .card, .ngrid > .card, .two > .card { margin-top: 0; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.card__head h2, .card__head h3 { font-size: 19px; font-weight: 600; }
.card__head span { color: var(--muted); font-size: 13.5px; }
.card__body { padding: 16px; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; margin-top: 20px; }
.panel > h2 { font-size: 24px; padding: 6px 8px 12px; border-bottom: 1px solid var(--line); }
.title { font: 700 24px/28px var(--head); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* photo / activity card */
.pc { border-radius: var(--r-lg); }
.pc__head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 24px; min-height: 72px; }
.pc__who { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.pc__name { color: var(--text); font-weight: 700; }
.pc__user { color: var(--muted); }
.pc__room { display: block; color: var(--sub); font-weight: 700; font-size: 14px; width: fit-content; }
a.pc__room:hover { color: var(--accent-text); }
.pc__pic { display: block; position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.pc__pic img { width: 100%; height: 100%; object-fit: cover; }
.pc__pic--contain img { object-fit: contain; }
.pc__pic--dim img { filter: brightness(0.75); }
.pc__badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 14px;
  background: rgba(40, 40, 40, 0.88); color: #fff; font-size: 13px; }
.pc__foot { padding: 16px 24px; }
.pc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.pc__date { color: var(--text); }
.pc__when { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc__caption { margin-top: 12px; font-size: 15px; }
.pc__line { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.cheer { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: 0; background: transparent; padding: 4px 8px; margin: -4px -8px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; color: var(--text); }
button.cheer:hover { background: rgba(255, 255, 255, 0.08); }
.cheer[aria-pressed="true"] { color: var(--accent-text); }
.cheer[aria-pressed="true"] .icon { fill: currentColor; }
.act__text { padding: 4px 24px 18px; font-size: 16px; }
.act__text strong { font-family: var(--head); font-weight: 600; }
.act__time { font: 700 34px/1 var(--head); color: #fff; position: absolute; left: 0; bottom: 0; padding: 12px 20px; background: rgba(0, 0, 0, 0.54); }

/* pills (home tabs, news filter) */
.pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; padding-block: 16px 32px; }
.pill .icon { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--accent-line); background: transparent; color: var(--accent-text); font: 600 14px/1 var(--body); }
.pill:hover { background: var(--accent-soft); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pagehead .pills { padding-block: 16px 0; gap: 10px; }

/* tabs */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 0 12px; }
.tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px; margin-right: 8px; border: 0; background: transparent; color: var(--sub); font: 600 16px/24px var(--body); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent-text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.tabs--wide .tab { flex: 1; margin: 0; padding: 20px 8px; font: 500 16px/1 var(--body); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.tabs--wide .tab[aria-selected="true"] { color: var(--accent-text); }
.tabs--sub .tab { flex: 0 1 270px; margin: 0; padding: 14px 8px; text-transform: uppercase; font: 500 15px/1 var(--body); }
.tabs--scroll { overflow-x: auto; scrollbar-width: none; }
.tabs--scroll .tab { white-space: nowrap; }

/* chips, tags */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(255, 255, 255, 0.12); color: var(--text); font-size: 13px; font-weight: 700; }
a.chip:hover { background: var(--accent-soft); color: var(--accent-text); text-decoration: none; }
.chip--line { min-height: 36px; border-radius: 18px; background: transparent; border: 1px solid var(--line); padding: 0 12px 0 4px; font-size: 14px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, 0.12); white-space: nowrap; }
.tag--good { background: rgba(98, 201, 122, 0.2); color: var(--good); }
.tag--accent { background: var(--accent-soft); color: var(--accent-text); }
.tag--legacy { background: rgba(255, 255, 255, 0.14); color: var(--muted); letter-spacing: 0.02em; }

/* tables, boards */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table thead th { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.plus { color: var(--good); }
.board { padding: 6px 0; }
.board__row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; color: var(--text); border-bottom: 1px solid var(--line-soft); }
.board li:last-child .board__row { border-bottom: 0; }
a.board__row:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.board__rank { width: 28px; text-align: center; font: 700 17px/1 var(--head); color: var(--muted); flex: none; }
.rank-1 { color: rgb(255, 205, 80); } .rank-2 { color: rgb(205, 213, 222); } .rank-3 { color: rgb(222, 150, 96); }
.board__who { flex: 1; min-width: 0; line-height: 1.3; }
.board__name { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__user { display: block; color: var(--muted); font-size: 13px; }
.board__val { font: 600 17px/1 var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board__val small { font: 400 12.5px/1 var(--body); color: var(--muted); margin-left: 4px; }
.record { padding: 12px 16px 4px; }
.record strong { font: 700 30px/1 var(--head); }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* forms, messages, dialogs */
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input[disabled] { opacity: 0.6; }
.field__help { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.field__error { color: var(--bad); font-size: 13.5px; margin-top: 5px; }
.field__error:empty { display: none; }
.msg { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14.5px; }
.msg--bad { border-color: rgba(255, 122, 122, 0.6); color: var(--bad); }
.msg--ok { border-color: rgba(98, 201, 122, 0.6); color: var(--good); }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; width: min(480px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog h2 { font-size: 22px; margin-bottom: 12px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: rgb(50, 50, 50); color: #fff; border: 1px solid var(--line); padding: 10px 16px; border-radius: 4px; font-size: 14.5px; z-index: 90; max-width: calc(100vw - 32px); }
details { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 500; min-height: 40px; display: flex; align-items: center; }
details p { color: var(--muted); margin: 4px 0 10px; }

/* 7. pages */

/* home: promo cards on the grey row */
.promos-band { background: var(--band); padding-block: 0 8px; }
.promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: center; gap: 16px; }
.promos[data-n="1"] { grid-template-columns: minmax(0, 500px); }
.promos[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 500px)); }
.promo { display: block; min-width: 0; color: var(--text); }
.promo:hover { text-decoration: none; }
.promo__pic { display: block; aspect-ratio: 500 / 287; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.promo__pic img { width: 100%; height: 100%; object-fit: cover; }
.promo__cap { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding-bottom: 8px; font: 600 16px/24px var(--body); letter-spacing: 0.5px; }
.promo__cap .icon { width: 20px; height: 20px; }

/* home: featured rooms + feed */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px; align-items: start; padding-bottom: 64px; }
.side { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; scrollbar-width: thin;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.side h2 { font-size: 24px; line-height: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.froom { display: block; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; color: var(--text); margin-top: 12px; }
.froom:hover { border-color: var(--accent-line); text-decoration: none; }
.froom img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.froom__txt { display: block; padding: 8px 12px 10px; font-size: 14.5px; line-height: 1.5; font-weight: 600; }
.froom__meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-weight: 400; }
.maincol { min-width: 0; }

/* news */
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.ncard { display: flex; flex-direction: column; color: var(--text); background: transparent; border: 0; border-radius: 0; overflow: visible; }
.ncard:hover { text-decoration: none; }
.ncard .npic { border-radius: var(--r-lg); }
.ncard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0 8px; }
.ncard__title { font: 600 20px/28px var(--body); }
.ncard__more { display: inline-flex; align-items: center; color: var(--link); font: 600 16px/24px var(--body); }
.ncard__more .icon { width: 20px; height: 20px; }
.ncard:hover .ncard__title { text-decoration: underline; }
.ncard time, .ndate { color: var(--faint); font-size: 14px; }
.ncard__sum { color: var(--text); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.npic { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.npic img { width: 100%; height: 100%; object-fit: cover; }
.npic--plain { display: flex; align-items: center; justify-content: center; background: var(--band); }
.npic--patch { background: var(--accent); }
.npic--plain span { font: 700 clamp(30px, 5vw, 56px)/1 var(--head); color: #fff; padding: 0 16px; text-align: center; }
.ncard .npic--plain span { font-size: 36px; }
.ntag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 12px; font: 700 12.5px/1 var(--body); background: rgba(255, 255, 255, 0.16); color: var(--text); }
.ntag--patch { background: rgba(255, 255, 255, 0.16); }
.nfeat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 24px 0 40px; }
.nfeat__pic { display: block; border-radius: var(--r-lg); overflow: hidden; }
.nfeat__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nfeat h2 { font: 700 32px/40px var(--head); }
.nfeat h2 a { color: var(--text); }
.nfeat__sum { font-size: 18px; line-height: 28px; color: var(--text); margin: 4px 0 10px; }
.ngrid--home { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.nhead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.nhead__title { font: 700 24px/28px var(--head); }
.nhead .pills { padding: 0; gap: 8px; }
.back a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-weight: 500; }
.post { padding-bottom: 8px; }
.post > .ntag { margin-top: 12px; }
.post__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; background: var(--panel); margin-top: 8px; }
.post__hero--plain { grid-template-columns: minmax(0, 1fr); }
.post__head { padding: 32px; }
.post h1 { font: 700 32px/1.25 var(--head); }
.post__meta { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 10px; color: var(--sub); font-size: 15px; }
.post__meta .ndate { color: var(--sub); }
.post__body { max-width: 860px; margin: 40px auto 0; font-size: 18px; line-height: 28px; }
.post__body > * + * { margin-top: 16px; }
.post__body p { white-space: pre-line; }
.post__body h2 { font: 700 24px/1.25 var(--head); margin-top: 36px; }
.post__body ul { list-style: disc; padding-left: 1.3em; }
.post__body li + li { margin-top: 6px; }
.post__body li::marker { color: var(--text); }

/* download: platform page on orange, like the platform pages of the archive */
body[data-page="download"] { padding-top: 0; padding-bottom: 0; }
body[data-page="download"] .top, body[data-page="download"] .band, body[data-page="download"] #notice, body[data-page="download"] .tabbar { display: none; }
.plat { display: flex; flex-direction: column; min-height: 100vh; color: rgb(47, 52, 117);
  background: url("/img/banner/pattern.png") 0 0 / 260px auto repeat, linear-gradient(169deg, rgb(255, 176, 74) 27%, rgb(247, 137, 66) 96%); }
.plat__tabs { display: flex; flex-wrap: wrap; justify-content: center; padding: 3px 8px 0; }
.plat__tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 150px; height: 79px; margin-top: 16px; padding: 6px 8px; border-radius: 8px; color: #fff; font: 700 15px/26px var(--body); }
.plat__tab:hover { color: #fff; }
.plat__tab .icon { width: 40px; height: 40px; }
.plat__tab:hover { text-decoration: none; background: rgba(210, 105, 30, 0.45); }
.plat__tab[aria-current="page"] { background: rgb(210, 105, 30); }
.plat__in { flex: 1; display: flex; flex-direction: row-reverse; align-items: center; gap: 32px; width: 100%; max-width: 1140px; margin: 0 auto; padding: 16px 16px 40px; }
.plat__pic { flex: 0 0 369px; display: flex; justify-content: center; }
.plat__pic img { width: 450px; max-width: none; height: auto; }
.plat__txt { flex: 1; min-width: 0; }
.plat h1 { font: 700 66px/100px var(--head); color: rgb(47, 52, 117); margin-bottom: 8px; }
.plat h1 > span { display: block; }
.plat__text { max-width: 420px; font: 400 16px/24px var(--body); margin-bottom: 32px; }
.plat__act { display: flex; flex-wrap: wrap; gap: 12px; }
.plat .btn { color: rgb(47, 52, 117); border-color: rgba(47, 52, 117, 0.5); }
.plat .btn:hover { background: rgba(47, 52, 117, 0.08); }
.plat .btn--fill { background: rgb(47, 52, 117); border-color: rgb(47, 52, 117); color: #fff; }
.plat .btn--fill:hover { background: rgb(33, 37, 89); }
.plat__req { margin-top: 24px; font: italic 400 16px/24px var(--body); }
.plat__foot { min-height: 100px; background: rgba(0, 0, 0, 0.54); }
.page--faq { padding-top: 8px; }
.page--faq .set { max-width: 760px; }

/* rooms */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.rcard { color: var(--text); display: flex; flex-direction: column; border-radius: var(--r-lg); }
.rcard:hover { border-color: var(--accent-line); text-decoration: none; }
.rcard .pc__head { padding: 12px 16px; min-height: 64px; }
.rcard img.rcard__pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rcard__foot { display: flex; align-items: center; gap: 18px; padding: 14px 16px; font-size: 15px; font-weight: 500; }
.rcard__foot span { display: inline-flex; align-items: center; gap: 7px; }
.rcard--locked img.rcard__pic { filter: grayscale(0.7) brightness(0.6); }
.statusline { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--muted); margin: -6px 0 20px; font-size: 15px; }

/* room */
.page--room { padding-top: 24px; }
.room { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.room__pic { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); }
.room__pic img { width: 100%; height: 100%; object-fit: cover; }
.room__info h1 { font-size: 36px; line-height: 1.15; }
.room__by { color: var(--sub); font-weight: 600; margin-top: 2px; }
.room__desc { margin: 16px 0; color: var(--muted); }
.room__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.room__row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; border-block: 1px solid var(--line); padding-block: 12px; margin: 28px 0 8px; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font: 600 20px/1.3 var(--head); }
.stats dd { margin: 0; font-size: 14.5px; color: var(--muted); }
.viewer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 16px; margin: 8px 0 24px; }
.viewer__pic { display: block; border-radius: var(--r-sm); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.viewer__pic img { width: 100%; height: 100%; object-fit: cover; }
.viewer__who { display: flex; align-items: center; gap: 14px; padding: 8px 4px 14px; border-bottom: 1px solid var(--line); }
.viewer__who .pc__who { font-size: 16px; }
.viewer__name { display: block; font: 600 20px/1.2 var(--head); color: var(--text); }
.viewer h3 { font-size: 16px; font-weight: 600; margin: 10px 0; }
.viewer__sec { padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.viewer__cheers { padding: 12px 0; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: block; border-radius: var(--r-sm); overflow: hidden; background: #000; aspect-ratio: 16 / 11.3; border: 0; padding: 0; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover img { filter: brightness(1.12); }
.tile[aria-current="true"] { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile__meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 8px; padding: 22px 12px 8px; font-size: 14.5px; font-weight: 500;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }
.tile__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tile__meta .tag { height: 20px; padding: 0 7px; font-size: 11.5px; }

/* profile */
/* orange banner with the logo pattern, our own svg tile */
.banner { position: relative; height: 320px; overflow: hidden; background: url("/img/banner/pattern.png") 0 0 / 260px auto repeat, linear-gradient(90deg, rgb(243, 154, 74), rgb(247, 128, 72)); }
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding-bottom: 64px; }
.profile__side { min-width: 0; }
.profile__side .avatar--xl { margin-top: -144px; margin-bottom: 16px; margin-left: 9px; outline: 8px solid var(--panel); box-shadow: 0 0 0 9px var(--line); }
.profile__side h1 { font: 500 20px/28px var(--body); }
.profile__user { color: var(--text); font-size: 12px; font-weight: 500; }
.profile__bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; min-height: 48px; }
.profile__facts { margin-top: 20px; display: grid; gap: 12px; font-size: 14.5px; }
.profile__facts li { display: flex; align-items: center; gap: 8px; }
.profile__main { padding-top: 16px; min-width: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kv div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 2px 0 0; font: 600 22px/1.2 var(--head); }
.xp { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; margin-top: 8px; }
.xp span { display: block; height: 100%; background: var(--accent); width: 0; }

/* photo */
.photo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.photo__pic { display: flex; justify-content: center; background: #000; border-radius: var(--r); overflow: hidden; }
.photo__pic img { width: 100%; max-height: calc(100vh - var(--top) - 96px); object-fit: contain; }
.photo__info { border-radius: var(--r-lg); }
.photo__info .pc__head { min-height: 88px; padding: 16px 12px 16px 20px; border-bottom: 1px solid var(--line-soft); }
.photo__info .pc__who { font-size: 15px; }
.photo__info .pc__foot { padding: 16px 20px 20px; }
.photo__info .pc__row { font-size: 15px; }
.photo__tags h2 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }

/* account, login, 404 */
/* settings (account): title, tabs, plain blocks */
.page--set h1 { font: 700 32px/40px var(--head); margin-bottom: 4px; }
.page--set .page__lead { margin: 0 0 16px; color: var(--sub); }
.tabs--set { margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs--set .tab { white-space: nowrap; }
.set-panel { max-width: 960px; }
.set { margin-top: 32px; }
.set__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.set__head h2 { font: 700 20px/28px var(--head); }
.set .form { max-width: 480px; }
.me-row { display: flex; align-items: center; gap: 16px; }
.me-row__name { font: 500 20px/28px var(--body); }
.me-row__user { font-size: 14px; color: var(--sub); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 24px; margin: 0; }
.facts dt { color: var(--sub); font-size: 14px; }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; }
.balance { font: 700 32px/40px var(--head); display: flex; align-items: center; gap: 10px; }
.balance .muted { font: 400 16px/1 var(--body); }
.chal { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.chal:last-child { border-bottom: 0; }
.chal__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-weight: 500; }
.myphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.myphoto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); background: #000; }
.myphoto .tag { margin-top: 6px; }
.myphoto select { width: 100%; margin-top: 6px; min-height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); padding: 4px 8px; font-size: 14px; }
/* login: white sign-in page without the site frame, like the old sign-in site */
body[data-page="login"] { background: #fff; color: #333; padding: 0; font: 14px/1.42857 Arial, Helvetica, sans-serif; color-scheme: light; }
body[data-page="login"] .top, body[data-page="login"] .band, body[data-page="login"] #notice, body[data-page="login"] .foot, body[data-page="login"] .tabbar, body[data-page="login"] .search { display: none; }
.auth { width: 100%; max-width: 410px; margin: 0 auto; padding: 20px 15px 24px; }
.auth__logo { display: block; width: 260px; margin: 0 auto 14px; }
.auth hr { border: 0; border-top: 1px solid #eee; margin: 0 0 16px; }
.auth .msg { border-radius: 4px; padding: 15px; margin-bottom: 18px; font-size: 14px; border: 1px solid #bce8f1; background: #d9edf7; color: #31708f; }
.auth .msg--bad { border-color: #ebccd1; background: #f2dede; color: #a94442; }
.auth .msg--ok { border-color: #d6e9c6; background: #dff0d8; color: #3c763d; }
.auth__intro { font: 400 14px/1.42857 Arial, Helvetica, sans-serif; text-align: center; margin: 0 0 12px; }
.auth__form .field { margin-bottom: 15px; }
.auth__form .field label { font-weight: 400; font-size: 14px; color: #333; margin-bottom: 5px; }
.auth__form .field input { height: 34px; min-height: 34px; padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #555; font-size: 14px; }
.auth__form .field input:focus { border-color: #66afe9; outline: 0; }
.auth__form .field input::placeholder { color: #999; }
.auth__form .field__error { color: #a94442; }
.auth__row { display: flex; justify-content: flex-end; margin: 4px 0 18px; }
.auth__btn { min-height: 34px; padding: 6px 12px; border: 1px solid rgb(232, 90, 48); border-radius: 4px; background: rgb(241, 110, 70); color: #fff; font: 400 14px/1.42857 Arial, Helvetica, sans-serif; }
.auth__btn:hover { background: rgb(222, 88, 48); }
.auth__btn[disabled] { opacity: 0.65; }
.auth__links { margin: 0 0 10px; }
.auth__links .icon { display: none; }
.auth a { color: #337ab7; }
.auth a:hover { color: #23527c; text-decoration: underline; }
.notfound picture img { width: 200px; margin: 0 auto 20px; }
.notfound h1 { font-size: 40px; margin-bottom: 12px; }
.notfound .page__lead { margin: 0 auto 8px; }
.notfound .actions { justify-content: center; }

/* 8. smaller screens */

@media (max-width: 1099px) {
  .top__label, .me__name { display: none; }
  .me__btn { padding: 3px; }
  .top__links { margin-left: 8px; }
  .top__links a { padding: 12px 8px; font-size: 15px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  body { padding-bottom: 56px; }
  .top__links { display: none; }
  .tabbar { display: flex; position: fixed; inset: auto 0 0 0; height: 56px; background: var(--bg); border-top: 1px solid var(--line-soft); z-index: 50; }
  .tabbar a { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; color: var(--text); }
  .tabbar a:hover { text-decoration: none; color: var(--text); }
  .tabbar a[aria-current="page"] { color: var(--accent-text); }
  .tabbar .icon { width: 24px; height: 24px; }
  .toast { bottom: 72px; }
  /* promo row scrolls sideways inside the page, edge to edge */
  .promos, .promos[data-n] { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); justify-content: flex-start; }
  .promo { flex: 0 0 min(46%, 420px); scroll-snap-align: start; }
  .promos[data-n="1"] .promo { flex-basis: 100%; }
  .home { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; position: static; max-height: none; }
  .home.show-rooms .side { display: block; }
  .maincol { max-width: none; }
  .nfeat { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .two, .room, .viewer, .photo, .profile { grid-template-columns: minmax(0, 1fr); }
  .profile { gap: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .band, .top__dl { display: none; }
  .top__in { padding-inline: var(--gutter); }
  .top__dlicon { display: inline-flex; }
  .logo { align-self: center; height: auto; padding: 0; margin-left: 0; background: none; box-shadow: none; border-radius: 8px; }
  .logo__full { display: none; }
  .logo__icon { display: block; }
  .logo { min-width: 40px; min-height: 40px; }
  .cheer { min-height: 40px; }
  .top__tools { gap: 4px; }
  .top__me .btn { min-height: 40px; }
  .btn { min-height: 40px; }
  .pill { min-height: 40px; }
  /* bigger tap area for the name, @user and ^room links */
  .pc__who a, .viewer__who a { display: inline-flex; align-items: center; min-height: 40px; }
  a.pc__room { display: flex; }
  .pc__head { padding-block: 8px; }
  #notice:not(:empty) { padding-top: 16px; padding-bottom: 16px; }
  .notice__in { min-height: 0; padding: 8px 4px 8px 12px; }
  .notice__icon { width: 40px; height: 40px; margin: 4px 4px 4px 0; }
  .notice__text { font-size: 14.5px; line-height: 21px; }
  .page { padding-block: 24px 40px; }
  .promos-band { padding-block: 16px 8px; }
  .promo { flex-basis: 85%; }
  .pills { gap: 10px; padding-block: 16px 20px; }
  .title { font-size: 21px; line-height: 26px; }
  .pc__head { padding: 12px 8px 12px 14px; }
  .pc__foot { padding: 12px 14px 14px; }
  .act__text { padding: 4px 14px 14px; }
  .nfeat h2 { font-size: 26px; }
  .nfeat__sum { font-size: 16px; line-height: 24px; }
  .post h1 { font-size: 26px; }
  .post__hero { grid-template-columns: minmax(0, 1fr); }
  .post__hero .npic { order: -1; }
  .post__head { padding: 20px 16px; }
  .post__body { font-size: 17px; line-height: 28px; }
  .plat__tabs { padding-top: 0; }
  .plat__tab { width: 96px; height: 64px; font-size: 13px; }
  .plat__tab .icon { width: 28px; height: 28px; }
  .plat__in { flex-direction: column; gap: 8px; text-align: center; }
  .plat__pic { flex: none; }
  .plat__pic img { width: 260px; }
  .plat h1 { font-size: 34px; line-height: 44px; }
  .plat__text { margin-inline: auto; }
  .plat__act { justify-content: center; }
  .pagehead--logo picture img { width: 180px; }
  .room__info h1 { font-size: 30px; }
  .tabs--wide .tab { padding: 16px 4px; font-size: 14.5px; }
  .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { height: 200px; }
  .profile__side { text-align: center; }
  .profile__side .avatar--xl { display: flex; margin-inline: auto; }
  .profile__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .photo__info .pc__head { padding: 12px 8px 12px 14px; min-height: 72px; }
  .photo__info .pc__foot { padding: 14px; }
  .notfound h1 { font-size: 32px; }
  .foot__in { padding-block: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
