@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/inter-latin.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;
}
:root {
  color-scheme: light;
  font-family: InterVariable, ui-sans-serif, system-ui, sans-serif;
  --bg: #fff;
  --text: #171717;
  --sub: #5c5c5c;
  --line: #ebebeb;
  --weak: #f7f7f7;
  --primary: #a7d001;
  --shadow: 0 1px 2px rgb(0 0 0 / 5%);
  color: var(--sub);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--text);
  font-weight: 550;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 32px;
  line-height: 40px;
}
h2 {
  font-size: 20px;
  line-height: 28px;
}
h3 {
  font-size: 16px;
  line-height: 24px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #335cff;
  outline-offset: 3px;
}
.site-nav,
main {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: 32px;
}
.site-nav {
  display: flex;
  height: 72px;
  align-items: center;
  gap: 24px;
}
.site-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 3px solid var(--line);
  border-radius: 16px;
  color: var(--sub);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.05em;
}
.site-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 550;
  letter-spacing: -0.035em;
}
.rule-trigger {
  color: var(--sub);
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}
.rule-trigger:hover {
  color: var(--text);
}
.page-title {
  margin-bottom: 16px;
}
.page-title p {
  font-size: 18px;
  line-height: 26px;
}
main {
  padding-bottom: 48px;
}
.btn,
.dialog-close {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--sub);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transition:
    background-color 0.13s ease,
    border-color 0.13s ease;
}
.btn:hover,
.dialog-close:hover {
  background: var(--weak);
  color: var(--text);
}
.btn:active,
.dialog-close:active {
  background: #eee;
}
.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}
.btn.primary:hover {
  background: #9cc300;
}
.btn:disabled {
  opacity: 0.55;
}
.btn.small {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
}
.btn.quiet {
  background: transparent;
  box-shadow: none;
}
.hub-layout {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(0, 2.05fr);
  gap: 16px;
  align-items: start;
}
.entry-card,
.room-directory {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
#entry,
.entry-field,
.opt-field {
  display: grid;
  gap: 6px;
}
#entry {
  gap: 16px;
}
.entry-field,
.opt-field,
.check {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
}
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--text);
  padding: 0 12px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 400;
  box-shadow: var(--shadow);
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #858585;
}
textarea {
  padding-block: 10px;
  resize: vertical;
}
.mode-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--weak);
  border-radius: 12px;
}
.mode-tabs button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sub);
  min-height: 28px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}
.mode-tabs button.active {
  background: white;
  color: var(--text);
  box-shadow: 0 2px 4px rgb(0 0 0 / 9%);
}
#code {
  text-transform: uppercase;
}
#code::placeholder {
  text-transform: none;
}
.directory-title,
.room-listing,
.rules-head,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.directory-title h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
#public-rooms {
  margin-top: 16px;
  color: var(--sub);
  font-size: 14px;
}
.room-listing {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.room-listing strong {
  color: var(--text);
  font-weight: 500;
}
.room-listing span {
  margin-left: auto;
}
dialog {
  color: var(--sub);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  width: min(440px, calc(100% - 28px));
  max-height: 85svh;
  overflow: auto;
  box-shadow: 0 12px 35px rgb(0 0 0 / 12%);
}
dialog::backdrop {
  background: rgb(23 23 23 / 38%);
}
.dialog-close {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 19px;
  border-radius: 8px;
}
.rule-sections {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}
.rule-sections p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 21px;
}
#rules > .btn {
  width: 100%;
}
#notice:not(:empty),
.modal-notice:not(:empty) {
  padding: 10px 14px;
  background: #262626;
  color: white;
  border-radius: 10px;
  font-size: 14px;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  z-index: 10;
}
.modal-notice:not(:empty) {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .site-nav,
  main {
    padding-inline: 16px;
  }
  .hub-layout {
    grid-template-columns: 1fr;
  }
  .page-title h1 {
    font-size: 28px;
    line-height: 35px;
  }
  .page-title p {
    font-size: 16px;
    line-height: 24px;
  }
  .site-nav {
    gap: 18px;
  }
  .rule-trigger {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::after,
  *::before {
    transition: none !important;
    animation: none !important;
  }
}
