:root {
  color-scheme: dark;
  font-family: ui-rounded, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: #f6edf7;
  background: #15111b;
  --panel: #1c1623;
  --border: #372c40;
  --muted: #b7a8c2;
  --accent: #ff2bd6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 85% 0%, #ff2bd609, transparent 48%), #15111b; line-height: 1.6; }
a { color: #f2addd; text-decoration: none; }
a:hover { color: #ffd5ef; }
button, input, select { font: inherit; }
button { min-height: 38px; padding: 9px 16px; border: 1px solid #49374f; border-radius: 12px; background: #241c2c; color: #f6edf7; cursor: pointer; transition: background .15s, border-color .15s; }
button:hover { background: #33243c; border-color: #ce78b9; }
button:disabled { opacity: .45; cursor: default; }
.primary { background: #ff7cda; color: #32112d; border-color: #ff9de4; font-weight: 650; box-shadow: 0 3px 12px #ff2bd610; }
.primary:hover { background: #ff9de4; border-color: #ffb8ec; }
:focus-visible { outline: 2px solid #ff9de4; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; background: #352039; z-index: 20; border: 1px solid #ff9de4; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 250px; padding: 26px 16px 22px; background: #17121d; border-right: 1px solid #33273d; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding-bottom: 24px; color: #f6edf7; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.brand img { flex: 0 0 52px; width: 52px; height: 52px; object-fit: contain; }
.brand small { display: block; font-size: 11px; color: #bca2c6; letter-spacing: 0; margin-top: 4px; font-weight: 400; }
.nav-label { font-size: 11px; color: #b29bbb; letter-spacing: .3px; margin: 26px 10px 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 5px 0; border: 1px solid transparent; border-radius: 12px; color: #c3afcf; font-size: 13px; }
.nav-item > span { width: 20px; text-align: center; font-size: 20px; line-height: 1; }
.nav-item:hover { background: #291e2e; }
.nav-item.active { background: #3a2038; color: #ff93e1; border-color: #6d365d; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-note { margin-top: 26px; background: #211827; border: 1px solid #3e2c45; border-radius: 15px; padding: 15px 12px; }
.sidebar-note p { margin: 8px 0 0; font-size: 12px; color: #cdb7d4; }
.sidebar-footer { margin-top: auto; color: #d2b4d1; font-size: 12px; padding: 30px 8px 0; }
.sidebar-footer small { display: block; color: #b09abd; font-size: 11px; margin: 4px 0 16px; }
.sidebar-footer a { display: block; }
.footer-heart { color: #ff8adb; font-size: 19px; vertical-align: middle; margin-right: 3px; }
main { margin-left: 250px; padding: 0 32px 36px; max-width: 2000px; }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #34273c; color: #c0a9c8; font-size: 12px; }
.topbar strong { color: #e2cfe8; font-weight: 500; }
.breadcrumb-divider { color: #756080; padding: 0 12px; }
.pill { display: inline-block; padding: 5px 10px; border: 1px solid #693554; background: #3b2036; color: #ffa4e7; border-radius: 30px; font-size: 11px; }
.heading { padding: 30px 0 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 27px; font-weight: 700; letter-spacing: -.65px; line-height: 1.25; margin-bottom: 8px; }
h2 { font-size: 18px; letter-spacing: -.25px; line-height: 1.4; margin-bottom: 10px; }
h3 { font-size: 15px; margin-bottom: 8px; }
p { color: var(--muted); }
.heading > p:last-child, .heading > div > p:last-child { margin-bottom: 0; font-size: 13px; }
.eyebrow { color: #ec9ad7; font-size: 10px; letter-spacing: 1.5px; margin: 0 0 10px; }
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 34px; margin-bottom: 24px; min-height: 224px; border: 1px solid #684460; border-radius: 23px; background: radial-gradient(ellipse at 88% 42%, #854a783b, transparent 53%), linear-gradient(120deg, #352039, #261c32); }
.welcome-copy { max-width: 65%; min-width: 0; }
.welcome-copy .pill { border-color: #86576f; background: #59334b66; color: #ffbcdf; }
.welcome-copy h2 { font-size: 28px; letter-spacing: -.8px; margin: 16px 0 10px; overflow-wrap: anywhere; }
.welcome-copy p { font-size: 13px; color: #dcc2df; line-height: 1.8; margin: 0; }
#copy-address { margin-top: 20px; overflow-wrap: anywhere; max-width: 100%; }
#copy-result:not(:empty) { margin-top: 10px; }
.community-art-frame { flex: 0 0 200px; width: 200px; height: 200px; object-fit: contain; border: 1px solid #93637e; background: #ffe9f1; box-shadow: 0 8px 24px #0b061a33; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: 18px; padding: 24px; background: linear-gradient(145deg, #201826, #1b1521); box-shadow: 0 5px 24px #09050e16; }
.network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.card-label .eyebrow { margin: 0; font-size: 9px; letter-spacing: 1px; }
.section-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; background: #382036; border: 1px solid #654057; color: #ff91db; border-radius: 11px; font-size: 20px; }
.event-card h2 { color: #ff9ce2; }
.schedule-card { background: #221925; }
.schedule-card strong { display: block; color: #efc594; font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.health-card { background: #1e1a29; }
.health-card h2 { color: #c6b4ff; }
.network-grid p:not(.eyebrow) { font-size: 12px; margin-bottom: 0; }
.status-grid { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.status { display: flex; align-items: center; gap: 6px; color: #c4afd0; font-size: 11px; }
.dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #88738f; }
.dot.online { background: #ff8cda; }
.content-section { margin-top: 24px; scroll-margin-top: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title p:last-child { margin-bottom: 0; font-size: 12px; }
.filters { display: flex; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; color: #d8c4df; font-size: 12px; min-width: 0; }
input, select { min-width: 0; max-width: 100%; width: 100%; min-height: 42px; border: 1px solid #61496c; border-radius: 10px; background: #18111e; padding: 10px 12px; color: #f8effa; }
input::placeholder { color: #ae96b9; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
th { font-size: 11px; color: #bca4c7; border-bottom: 1px solid #4e3856; font-weight: 500; padding: 12px 10px; }
td { font-size: 12px; border-bottom: 1px solid #38273e; color: #ccb4d8; padding: 14px 10px; }
th:first-child { width: 70px; }
td:nth-child(2) { color: #f0d2ec; font-weight: 600; }
tbody tr:hover { background: #291d31; }
td[colspan] { padding: 44px 16px; text-align: center; color: #d5b8d3; background: #24192a; white-space: normal; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 16px; }
.pagination span { font-size: 12px; color: var(--muted); }
.fine { color: #b6a1c3; font-size: 11px; margin: 16px 0 0; line-height: 1.7; }
.history { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: 20px; }
.history article { padding: 18px; border: 1px solid #56334c; border-radius: 15px; background: #241a2b; }
.history article p { margin: 6px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.history > p { grid-column: 1 / -1; padding: 28px 20px; margin: 0; text-align: center; background: #24192a; border: 1px dashed #79516e; border-radius: 12px; color: #d5b8d3; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#rule-list { padding-left: 22px; margin: 20px 0 0; color: #c5afd0; font-size: 13px; }
#rule-list li { padding-left: 8px; margin: 12px 0; }
#rule-list li::marker { color: #ff9cde; }
.report-note { margin-top: 24px; padding: 18px; border: 1px solid #654057; border-radius: 12px; background: #2b2030; }
.report-note h3 { color: #ffbcdf; }
.report-note p { margin-bottom: 0; font-size: 13px; color: #d8c4df; }
.report-note a { text-decoration: underline; text-underline-offset: 3px; }
#information { font-size: 13px; margin-top: 20px; overflow-wrap: anywhere; }
#information p:last-child { margin-bottom: 0; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; color: #b09abd; font-size: 11px; }
.home-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; font-size: 13px; }
.home-links a { padding: 8px 0; }
.home-links span { margin-left: 8px; }
.reading-panel { max-width: 850px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.events-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.button-link { display: inline-block; padding: 10px 16px; border: 1px solid #79516e; border-radius: 12px; margin-top: 16px; }
.join-panel #copy-address { margin-top: 4px; }
.join-panel .button-link { display: block; text-align: center; }
[data-staff-section] { margin-top: 0; }
[data-staff-section] > .content-section { margin-top: 0; }
#rules-status:empty { display: none; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-heading button { flex-shrink: 0; }
#feedback:empty { display: none; }
#feedback:not(:empty) { padding: 12px 16px; background: #2b2030; border: 1px solid #4c3452; border-radius: 12px; color: #ebd0e8; }
.login-card { background: linear-gradient(145deg, #291c30, #201628); border: 1px solid #593b5d; border-radius: 26px; padding: 34px; max-width: 535px; margin: 26px auto; }
.login-art { display: block; width: 120px; height: 120px; object-fit: contain; margin: 0 0 24px; }
.login-card h2 { font-size: 28px; }
.login-card > p:not(.eyebrow):not(.fine) { font-size: 13px; }
.login-card label { margin: 24px 0 16px; }
.login-card button { width: 100%; }
#panel > .content-section:first-child { margin-top: 0; }
.game-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 20px; }
.game-type { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 16px; border: 1px solid #56334c; border-radius: 12px; background: #241a2b; cursor: pointer; }
.game-type input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; accent-color: #ff7cda; }
.game-type strong { display: block; color: #f0d2ec; font-size: 13px; }
.game-type small { display: block; color: #c5afd0; margin-top: 3px; font-size: 11px; }
#game-types-feedback { margin: 14px 0 0; color: #ffbcdf; }
#game-types-feedback:empty { display: none; }
#whitelist-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
#whitelist-form label { flex: 1 1 220px; }
.whitelist-list { list-style: none; padding: 0; margin: 20px 0 0; }
.whitelist-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.whitelist-list strong { display: block; overflow-wrap: anywhere; }
.whitelist-list small { display: block; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.whitelist-list button { color: #ffb2b7; border-color: #7a434d; }
#whitelist-feedback { color: #ffbcdf; margin: 14px 0 0; }
#whitelist-feedback:empty { display: none; }
#controls { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 14px; margin-top: 24px; }
pre { overflow: auto; min-height: 90px; max-height: 480px; padding: 18px; margin: 18px 0 0; border: 1px solid #47314f; border-radius: 12px; background: #110c17; color: #d8c5e2; font-size: 12px; }
@media (max-width: 1200px) {
  .sidebar { width: 220px; }
  main { margin-left: 220px; padding: 0 22px 35px; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-card { grid-column: 1 / -1; }
  .welcome-card { padding: 24px; }
  .community-art-frame { flex-basis: 180px; width: 180px; height: 180px; }
  #controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .welcome-card { align-items: flex-start; flex-direction: column; }
  .welcome-copy { max-width: 100%; }
  .community-art-frame { align-self: center; flex: 0 0 auto; }
  .info-grid { grid-template-columns: 1fr; gap: 0; }
  .network-grid { grid-template-columns: 1fr; }
  .health-card { grid-column: auto; }
}
@media (max-width: 650px) {
  .sidebar { position: static; width: auto; padding: 16px; border-right: 0; border-bottom: 1px solid #33273d; }
  .brand { padding-bottom: 12px; }
  .nav-label, .sidebar-note, .sidebar-footer { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 4px; }
  .nav-item { flex: 0 0 auto; padding: 9px 10px; margin: 0; font-size: 12px; gap: 7px; }
  .nav-item > span { font-size: 17px; width: 16px; }
  main { margin-left: 0; padding: 0 15px 30px; }
  .topbar { min-height: 65px; gap: 8px; font-size: 11px; flex-wrap: wrap; padding: 12px 0; }
  .breadcrumb-divider { padding: 0 5px; }
  .heading { padding: 26px 0 20px; }
  h1 { font-size: 25px; }
  .welcome-card { padding: 23px; }
  .welcome-copy h2 { font-size: 24px; }
  .panel { padding: 18px; }
  .filters { width: 100%; flex-wrap: wrap; }
  .filters label { flex: 1 1 130px; }
  .pagination { justify-content: center; }
  .login-card { margin: 18px auto; padding: 25px; }
  .admin-heading { align-items: flex-start; }
  #controls { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
