:root {
  color-scheme: dark;
  --background: #050505;
  --surface: #1818189e;
  --border: #ffffff17;
  --muted: #a3a3a3;
  --discord: #5865f2;
  --secondary: #525252;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: #fafafa; font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.5;
  background: radial-gradient(circle at top, #60606033, transparent 34%),
    radial-gradient(circle at 20% 20%, #94a3b814, transparent 28%),
    linear-gradient(180deg, #121212, #0b0b0b 52%, #050505);
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .6; }
img { display: block; max-width: 100%; object-fit: contain; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; color: #000; background: #fff; transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: 1280px; padding-inline: 16px; margin-inline: auto; }
.glass { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); box-shadow: 0 24px 80px #00000038; }
.site-header { position: fixed; inset: 0 0 auto; height: 64px; z-index: 50; background: #000; transition: background .3s; }
.site-header.scrolled { background: #000e; backdrop-filter: blur(12px); border-bottom: 1px solid #1a1a1a; }
.nav-container { max-width: 1280px; height: 64px; padding: 0 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.global-status { display: inline-flex; align-items: center; gap: 8px; margin-left: 16px; }
.global-status #global-status-text { color: var(--muted); font-size: 14px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.brand img { border-radius: 8px; transition: transform .2s; }
.brand:hover img { transform: scale(1.05); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after { content: ""; position: absolute; width: 20px; height: 2px; background: #fff; bottom: -5px; left: calc(50% - 10px); }
.login-link { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; border-radius: 8px; background: #fff; color: #000; font-size: 14px; font-weight: 500; padding: 8px 16px; }
.login-link:hover { background: #e5e5e5; }
.login-link .icon { width: 16px; height: 16px; }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }
main { padding-top: 64px; min-height: calc(100vh - 338px); }
main:focus { outline: none; }
.view[data-view="/"] { background: radial-gradient(circle at top, #7878781f, transparent 30%), linear-gradient(180deg, #101010e0, #070707f0); }
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #050505; }
.hero-image { position: absolute; inset: 0; background: url("../assets/hero-riverside.jpg") center / cover no-repeat, url("../assets/hero-riverside.png") center / cover no-repeat; transform: scale(1.05); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, #0003, #0006, #050505), #00000073; }
.hero::after { position: absolute; content: ""; height: 160px; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, #050505, transparent); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding: 56px 16px; max-width: 896px; width: 100%; margin-inline: auto; text-align: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 12px; border: 1px solid #ffffff1f; border-radius: 999px; background: #09090999; color: #d4d4d4; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(12px); }
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #818cf8; box-shadow: 0 0 14px #818cf8; }
.hero-logo { width: 128px; height: 128px; margin: 0 auto 32px; }
.hero h1 { font-size: 72px; line-height: 1; font-weight: 800; margin-bottom: 24px; }
.hero p { font-size: 20px; line-height: 28px; color: #d4d4d4; max-width: 672px; margin: 0 auto 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 32px; min-height: 48px; border: 0; border-radius: 12px; font-weight: 600; font-size: 16px; line-height: 24px; transition: background .2s; }
.button .icon { width: 20px; height: 20px; }
.discord { background: var(--discord); color: #fff; }
.discord:hover { background: #4752c4; }
.secondary { background: var(--secondary); color: #fff; }
.secondary:hover { background: #404040; }
.outline { background: transparent; border: 1px solid #444; }
.outline:hover { background: #262626; }
.status-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 48px; padding: 12px 24px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.status-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #737373; }
.status-dot.online { background: #22c55e; }
.status-dot.offline { background: #ef4444; }
.stats { padding-top: 64px; padding-bottom: 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 8px; padding: 20px; min-height: 98px; }
.stat p { font-size: 14px; line-height: 20px; color: var(--muted); }
.stat strong { font-size: 24px; line-height: 32px; font-weight: 700; }
.stat-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #5252520d; }
.green { color: #4ade80; }.blue { color: #60a5fa; }.purple { color: #84cafc; }
.section { padding-top: 80px; padding-bottom: 80px; }
.section-heading { text-align: center; margin-bottom: 64px; }
.section-heading h2, .cta-card h2 { font-size: 36px; line-height: 40px; font-weight: 700; margin-bottom: 16px; }
.section-heading p { max-width: 672px; margin-inline: auto; color: var(--muted); }
.section-kicker { display: inline-block; margin-bottom: 12px; color: #93d2ff; font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.home-story { padding-top: 48px; }
.home-story-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 470px; overflow: hidden; border-radius: 18px; }
.home-story-copy { align-self: center; padding: clamp(32px, 5vw, 64px); }
.home-story-copy h2 { max-width: 520px; margin-bottom: 18px; font-size: clamp(30px, 4vw, 45px); line-height: 1.08; letter-spacing: -.04em; }
.home-story-copy > p { max-width: 570px; color: var(--muted); line-height: 1.75; }
.home-checklist { display: grid; gap: 12px; margin: 27px 0; padding: 0; list-style: none; }
.home-checklist li { display: flex; align-items: center; gap: 11px; color: #dedede; font-size: 14px; }
.home-checklist li span { width: 22px; height: 22px; display: grid; flex: none; place-items: center; border-radius: 50%; background: #22c55e19; color: #5ee991; font-size: 12px; }
.home-story-media { position: relative; min-height: 420px; overflow: hidden; }
.home-story-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #111 0%, transparent 32%), linear-gradient(0deg, #0505058c, transparent 50%); pointer-events: none; }
.home-story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-status { position: absolute; z-index: 1; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 999px; color: #d4d4d4; font-size: 12px; }
.join-section { padding-top: 64px; }
.join-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: steps; }
.join-step { position: relative; min-height: 285px; padding: 28px; overflow: hidden; border-radius: 14px; transition: transform .25s, border-color .25s; }
.join-step:hover { border-color: #78c7ff55; transform: translateY(-4px); }
.join-step::after { content: ""; position: absolute; width: 150px; height: 150px; top: -70px; right: -70px; border-radius: 50%; background: #67b9f318; filter: blur(4px); }
.step-number { position: absolute; top: 22px; right: 24px; color: #ffffff1d; font-size: 42px; font-weight: 800; line-height: 1; }
.join-step h3 { margin: 18px 0 9px; font-size: 20px; }
.join-step p { min-height: 66px; margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.link-button { padding: 0; border: 0; background: transparent; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature { padding: 24px; border-radius: 12px; min-height: 190px; transition: border-color .3s, transform .3s; }
.feature:hover { border-color: #ffffff30; transform: translateY(-4px); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #a3a3a3; background: #52525233; border-radius: 8px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; line-height: 28px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 20px; color: var(--muted); }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; text-align: left; }
.split-heading > div { min-width: 0; }
.split-heading p { margin-inline: 0; }
.split-heading .button { flex: none; }
.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-news-card { min-height: 280px; display: flex; flex-direction: column; padding: 26px; border-radius: 14px; }
.home-news-card h3 { margin-bottom: 11px; font-size: 21px; line-height: 1.3; }
.home-news-card > p { display: -webkit-box; overflow: hidden; margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.65; white-space: pre-wrap; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.home-news-card .muted-link { margin-top: auto; }
.home-news-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home-news-meta time { color: #72777a; font-size: 11px; white-space: nowrap; }
.home-news-empty { grid-column: 1 / -1; min-height: 245px; align-items: center; justify-content: center; text-align: center; }
.home-news-empty > p { max-width: 580px; }
.rules-section { width: 100%; max-width: 896px; margin-inline: auto; padding-inline: 16px; }
.rules-section .section-heading { margin-bottom: 48px; }
.rules-card { padding: 32px; border-radius: 12px; text-align: left; }
.rules-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.rules-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 24px; color: #d4d4d4; text-align: left; }
.rules-list li span:not([class]) { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: #a3a3a3; background: #52525233; font-size: 12px; font-weight: 600; }
.muted-link { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.muted-link:hover { color: #fff; }
.rules-list li span:not([class]) { margin-top: 2px; }
.rules-card > .muted-link { display: block; text-align: center; margin-top: 32px; line-height: 24px; }
.community-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: clamp(28px, 4vw, 48px); overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 0 50%, #5865f22e, transparent 36%), var(--surface); }
.community-icon { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 20px; background: #5865f2; box-shadow: 0 18px 45px #5865f238; }
.community-icon .icon { width: 36px; height: 36px; }
.community-card h2 { margin: 3px 0 8px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.community-card p { max-width: 680px; color: var(--muted); }
.community-card .button { white-space: nowrap; }
.faq-section { max-width: 930px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border-radius: 12px; transition: border-color .2s; }
.faq-list details[open] { border-color: #78c7ff52; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 24px; font-weight: 600; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 28px; height: 28px; display: grid; flex: none; place-items: center; border-radius: 50%; background: #ffffff0b; color: #a3d9ff; font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 750px; padding: 0 72px 23px 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.cta-section { padding-inline: 16px; }
.cta-card { max-width: 896px; padding: 48px; margin-inline: auto; border-radius: 16px; text-align: center; }
.cta-card p { color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.site-footer { background: #111; border-top: 1px solid #1a1a1a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px; }
.footer-about .brand { font-size: 18px; margin-bottom: 16px; gap: 8px; }
.footer-about p { max-width: 448px; color: var(--muted); font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.social-link { display: inline-block; color: var(--muted); }.social-link:hover { color: var(--discord); }.social-link .icon { width: 20px; height: 20px; }
.footer-links h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--muted); }.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; color: #737373; font-size: 14px; }
.footer-bottom button { border: 0; background: transparent; padding: 0; color: var(--muted); font-size: inherit; }
.footer-bottom a { color: var(--muted); }.footer-bottom a:hover,.footer-bottom button:hover { color: #fff; }
.footer-separator { margin: 0 7px; }.heart { color: #ef4444; }
.cookie-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70; width: min(1024px, calc(100% - 32px)); padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 24px; background: #121212f5; }
.cookie-banner h2 { font-size: 18px; line-height: 28px; font-weight: 600; margin-bottom: 8px; }
.cookie-banner p { color: #d4d4d4; font-size: 14px; line-height: 22px; }
.cookie-banner p a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }.cookie-actions .button { padding: 10px 16px; font-size: 14px; line-height: 20px; border-radius: 8px; max-width: 124px; }
.narrow { max-width: 896px; margin-inline: auto; padding-inline: 16px; }
.subpage { min-height: calc(100vh - 64px); padding-top: 64px; padding-bottom: 80px; }
.page-heading { margin-bottom: 48px; text-align: center; }
.page-heading h1 { font-size: 36px; line-height: 40px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.8px; }
.page-heading p { color: var(--muted); }.page-heading .button { margin-top: 24px; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.info-card { border-radius: 12px; padding: 24px; }.info-card p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }.info-card h2 { font-size: 24px; }
.content-card { padding: 32px; border-radius: 12px; margin-bottom: 24px; }
.content-card h2 { font-size: 24px; line-height: 32px; margin-bottom: 16px; }.content-card p { color: var(--muted); margin-bottom: 16px; }
.content-card .button { margin-top: 16px; }
.status-details { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.status-details > div { min-width: 0; }
.status-details .button { flex: none; margin-top: 0; }
.status-updated { font-size: 13px; margin-bottom: 0 !important; }
.notice { padding: 20px 24px; color: #d4d4d4; background: #52525226; border: 1px solid #333; border-radius: 12px; margin-bottom: 24px; font-size: 14px; }
.rule-detail + .rule-detail { border-top: 1px solid #292929; padding-top: 20px; margin-top: 20px; }.rule-detail h3 { font-size: 18px; margin-bottom: 8px; }.rule-detail p { margin: 0; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; color: #c7d2fe; background: #5865f226; font-size: 12px; margin-bottom: 16px; }
.news-card { max-width: 896px; margin-inline: auto; }.centered { text-align: center; }.centered .feature-icon { margin-inline: auto; }
.public-news-list { display: grid; gap: 18px; }
.public-news-list .news-card { width: 100%; }
.public-content-date { display: block; margin-top: 20px; color: #676c70; font-size: 12px; }
.managed-rules h2 { margin-bottom: 22px; }
.managed-rules .rule-category { margin: 46px 0 18px; padding-bottom: 13px; border-bottom: 1px solid #8499d824; color: #f3f6ff; font-size: 26px; letter-spacing: -.035em; }
.managed-rules .rule-category:first-child { margin-top: 0; }
.managed-rules .rule-detail:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
form { display: grid; gap: 20px; margin-top: 24px; }label { display: grid; gap: 8px; font-size: 14px; color: #d4d4d4; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #333; border-radius: 8px; background: #1a1a1a; color: #fff; padding: 12px 16px; }textarea { resize: vertical; }
#message-result { border-top: 1px solid #333; padding-top: 24px; margin-top: 24px; }#copy-feedback { margin-top: 12px; font-size: 14px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; background: #000; }
.login-card { width: min(448px, 100%); padding: 32px; border-radius: 16px; text-align: center; }
.login-card img { width: 96px; height: 96px; margin: 0 auto 24px; }
.login-card h1 { font-size: 24px; line-height: 32px; font-weight: 700; margin-bottom: 8px; }
.login-card > p { color: var(--muted); margin-bottom: 32px; }.login-card .button { width: 100%; padding-inline: 16px; }
.login-card .login-note { color: #737373; font-size: 12px; line-height: 18px; margin: 24px 0 16px; }
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 32px; border-radius: 16px; color: #fff; text-align: center; background: #141414 !important; }
dialog::backdrop { background: #000b; backdrop-filter: blur(6px); }.dialog-icon { width: 40px; height: 40px; color: #a3a3a3; margin: 8px auto 24px; }
dialog h2 { font-size: 24px; margin-bottom: 16px; }dialog p { color: var(--muted); margin-bottom: 24px; }.dialog-close { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; font-size: 28px; color: #a3a3a3; padding: 0 8px; }
@media (max-width: 1023px) {
  .nav-container { padding-inline: 24px; gap: 12px; }.main-nav a { padding-inline: 8px; }.brand { font-size: 18px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-story-card { grid-template-columns: 1fr; }.home-story-media { min-height: 380px; }.home-story-media::after { background: linear-gradient(0deg, #0909098c, transparent 55%); }
  .home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.home-news-empty { grid-column: 1 / -1; }
  .community-card { grid-template-columns: auto 1fr; }.community-card .button { grid-column: 2; justify-self: start; }
  .cookie-banner { gap: 16px; }.cookie-actions { flex-direction: column; }.cookie-actions .button { max-width: none; }
}
@media (max-width: 767px) {
  .nav-container { padding-inline: 16px; }.brand { font-size: 18px; }.global-status { display: none; }.login-link { margin-left: auto; }.menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 12px 16px 20px; background: #090909; border-bottom: 1px solid #262626; flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header.menu-open .main-nav { display: flex; }.main-nav a { padding: 12px 16px; }.main-nav a.active { background: #222; }.main-nav a.active::after { display: none; }
  .hero h1 { font-size: 48px; line-height: 1; letter-spacing: -1.2px; overflow-wrap: anywhere; }.hero-content { padding-block: 48px; }.hero p { font-size: 20px; }
  .section-heading h2,.cta-card h2,.page-heading h1 { font-size: 32px; line-height: 38px; }
  .feature-grid,.join-grid,.home-news-grid { grid-template-columns: 1fr; }.stats-grid { gap: 16px; }.stat { padding: 16px; gap: 8px; }.stat-icon { width: 32px; height: 40px; }.stat-icon .icon { width: 20px; }
  .section { padding-top: 60px; padding-bottom: 60px; }.section-heading { margin-bottom: 42px; }
  .split-heading { align-items: flex-start; flex-direction: column; }.split-heading .button { width: 100%; }
  .home-story { padding-top: 28px; }.home-story-copy { padding: 30px 24px; }.home-story-media { min-height: 300px; }
  .join-step { min-height: 0; }.join-step p { min-height: 0; }
  .community-card { grid-template-columns: 1fr; text-align: center; }.community-icon { margin-inline: auto; }.community-card .button { grid-column: 1; justify-self: stretch; }
  .stat strong { font-size: 22px; }.stat p { font-size: 12px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.footer-about { grid-column: 1 / -1; }.footer-bottom { flex-direction: column; }
  .status-grid,.contact-grid { grid-template-columns: 1fr; }.subpage { padding-top: 48px; }.content-card { padding: 24px; }.status-details { align-items: stretch; flex-direction: column; }.status-details .button { width: 100%; }
  .rules-card { padding: 24px; }.rules-list li { align-items: flex-start; font-size: 14px; }.rules-list li span { margin-top: 1px; }.cta-card { padding: 32px 24px; }
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 16px; }.cookie-banner h2 { font-size: 16px; }.cookie-banner p { font-size: 12px; line-height: 18px; }.cookie-actions { flex-direction: row; }.cookie-actions .button { flex: 1; font-size: 12px; padding: 8px; }
}
@media (max-width: 639px) {
  .actions { flex-direction: column; align-items: stretch; }.hero .actions { max-width: 380px; margin-inline: auto; }.hero-logo { width: 128px; height: 128px; }
  .status-pill { padding: 12px 18px; font-size: 12px; }.login-link { padding: 8px 12px; }.brand { gap: 8px; }.hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
}

/* Focused admin workspace */
.admin-mode { background: #050711; }
.admin-mode .site-footer { display: none; }
.admin-mode .site-header { border-bottom-color: #8da4dc1f; }
.admin-mode .main-nav { display: none; }
.admin-mode .global-status { margin-left: auto; }
.admin-mode main { min-height: 100vh; }

.admin-view {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 48px 28px 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% -10%, #294e9a38, transparent 34rem),
    radial-gradient(circle at 95% 18%, #2d699426, transparent 30rem),
    linear-gradient(180deg, #070a12, #05070d 72%);
}
.admin-view::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image: linear-gradient(#8ca3ff0a 1px, transparent 1px), linear-gradient(90deg, #8ca3ff0a 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}
.admin-container { position: relative; width: min(1480px, 100%); }
.admin-hero {
  position: relative;
  align-items: center;
  min-height: 146px;
  margin-bottom: 20px;
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid #91a7ec24;
  border-radius: 20px;
  background: linear-gradient(110deg, #10182aeb, #0a101deb 64%, #11142aeb);
  box-shadow: 0 24px 70px #0005, inset 0 1px 0 #ffffff0a;
}
.admin-hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  top: -230px;
  right: 6%;
  border: 1px solid #8ca0ff2e;
  border-radius: 50%;
  box-shadow: 0 0 0 46px #6c7dff0c, 0 0 0 92px #6c7dff08;
  pointer-events: none;
}
.admin-eyebrow { color: #93a7ff; }
.admin-hero h1 { font-size: clamp(31px, 3.1vw, 45px); letter-spacing: -.05em; }
.admin-hero h1 span { color: transparent; background: linear-gradient(105deg, #aeb9ff, #72dfff); background-clip: text; -webkit-background-clip: text; }
.admin-hero p { color: #96a3b8; }
.admin-hero .admin-button { position: relative; z-index: 1; }

.admin-button { border-radius: 10px; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
.admin-button:hover { transform: translateY(-2px); }
.admin-button.primary { background: linear-gradient(135deg, #7180ff, #5362e6); box-shadow: 0 12px 30px #5366ef35; }
.admin-button.primary:hover { background: linear-gradient(135deg, #8290ff, #6270ef); box-shadow: 0 16px 38px #5366ef4a; }
.admin-button.secondary { border-color: #91a7e62b; background: #11192a; }
.admin-button.secondary:hover, .admin-button.ghost:hover { border-color: #829bdf55; background: #19243a; }

.admin-metrics { gap: 12px; margin-bottom: 20px; }
.admin-metric {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border-color: #8fa5e51c;
  border-radius: 16px;
  background: linear-gradient(145deg, #101725ec, #090f1bec);
  box-shadow: 0 15px 40px #0003, inset 0 1px 0 #ffffff08;
  transition: transform .2s, border-color .2s;
}
.admin-metric::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, #7180ff, transparent 75%); opacity: .75; }
.admin-metric:nth-child(2)::after { background: linear-gradient(90deg, #42d98a, transparent 75%); }
.admin-metric:nth-child(3)::after { background: linear-gradient(90deg, #43bdff, transparent 75%); }
.admin-metric:nth-child(4)::after { background: linear-gradient(90deg, #7ac8ff, transparent 75%); }
.admin-metric:hover { transform: translateY(-3px); border-color: #8fa5e43d; }
.admin-metric-icon { width: 46px; height: 46px; border: 1px solid #7d8cff21; border-radius: 13px; color: #8795ff; background: #6877ff14; }
.admin-metric-icon.players { border-color: #45db8b20; }
.admin-metric-icon.news { border-color: #51bfff20; }
.admin-metric-icon.rules { border-color: #7dc9ff20; }
.admin-metric p { color: #7f8ca1; }
.admin-metric strong { color: #f1f5ff; font-size: 23px; letter-spacing: -.025em; }
.admin-metric small { color: #647188; }

.admin-layout {
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 650px;
  border-color: #91a7e426;
  border-radius: 20px;
  background: #080d17;
  box-shadow: 0 35px 90px #0007, inset 0 1px 0 #ffffff08;
}
.admin-sidebar { padding: 24px 14px; border-right-color: #90a6df1c; background: linear-gradient(180deg, #0d1422, #090e18); }
.admin-sidebar-title { color: #647188; }
.admin-nav-item { min-height: 46px; border-radius: 10px; color: #8c99ad; }
.admin-nav-item:hover { color: #e6edfa; background: #7286ca0c; }
.admin-nav-item.active { color: #f7f9ff; background: linear-gradient(90deg, #6477ff2b, #6477ff0a); box-shadow: inset 0 0 0 1px #7c8cff17; }
.admin-nav-item.active::before { width: 3px; background: linear-gradient(#8d99ff, #61d9ff); box-shadow: 0 0 12px #7180ff; }
.admin-nav-item b { background: #222c42; color: #b6c3dc; }
.admin-sidebar-divider { background: #90a5de1a; }
.admin-workspace { padding: 36px; background: radial-gradient(circle at 100% 0%, #536cff10, transparent 28%), #080d17; }
.admin-kicker { color: #8295f8; }
.admin-section-heading h2 { font-size: 29px; letter-spacing: -.04em; }
.admin-section-heading p { color: #7e8ba0; }
.admin-section-count, .admin-live { border-color: #8ca2de26; background: #111a2a; color: #8c99ae; }

.admin-overview-grid, .admin-editor-grid { gap: 18px; }
.admin-editor-grid { grid-template-columns: minmax(330px, .78fr) minmax(460px, 1.32fr); }
.admin-panel { border-color: #8da3df20; border-radius: 15px; background: linear-gradient(145deg, #0f1625, #0a101b); box-shadow: 0 14px 35px #0002; }
.admin-panel-heading { padding: 21px 22px 18px; border-bottom-color: #8ca1db18; }
.admin-panel-heading h3 { color: #f0f4fd; font-size: 16px; }
.admin-panel-heading p { margin-top: 3px; color: #6f7c91; }
.admin-activity-item { border-bottom-color: #91a6de14; }
.admin-activity-symbol, .admin-action-icon { border: 1px solid #788bff1d; border-radius: 10px; background: #6e7dff14; }
.admin-quick-panel > button, .admin-quick-panel > a { padding: 13px; border: 1px solid transparent; }
.admin-quick-panel > button:hover, .admin-quick-panel > a:hover { border-color: #8196d927; background: #7488ce0a; }
.admin-quick-panel strong { color: #e4eaf6; }
.admin-quick-panel small { color: #6f7c91; }

.admin-editor form { gap: 20px; padding: 22px; }
.admin-rule-fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
.admin-editor label { color: #bac5d7; }
.admin-editor label b { color: #66738a; }
.admin-editor input, .admin-editor textarea, .admin-search input { border-color: #8ca3e126; background: #070c15; }
.admin-editor input, .admin-editor textarea { padding: 13px 14px; border-radius: 10px; }
.admin-editor input:focus, .admin-editor textarea:focus, .admin-search:focus-within { border-color: #7185ff; outline-color: #7185ff28; box-shadow: 0 0 0 4px #7185ff0b; }
.admin-editor input::placeholder, .admin-editor textarea::placeholder, .admin-search input::placeholder { color: #4d596d; }
.admin-search { margin: 16px; border-color: #8ca3e126; border-radius: 10px; background: #070c15; }
.admin-content-list { padding: 0 16px 18px; }
.admin-content-item {
  margin-top: 10px;
  padding: 17px;
  border: 1px solid #8ca3df1a;
  border-radius: 11px;
  background: #0b111e;
  transition: border-color .18s, background .18s;
}
.admin-content-item:hover { border-color: #8097dc35; background: #0d1524; }
.admin-content-item h4 { color: #edf2fc; }
.admin-content-item p { color: #7c899e; }
.admin-content-index { color: #aeb8ff; background: #6dc2ff1c; }
.admin-icon-button { border-radius: 8px; color: #7f8ba0; }
.admin-icon-button:hover { border-color: #8298dc36; background: #172137; }
.admin-empty-icon { border: 1px solid #8aa0dc1f; background: #121b2b; color: #91a2c1; }
.admin-toast { border-color: #8499da38; background: #111a2af2; }

@media (max-width: 1100px) {
  .admin-editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .admin-mode .global-status { display: none; }
  .admin-view { min-height: calc(100vh - 64px); padding: 18px 12px 54px; }
  .admin-hero { min-height: 0; padding: 22px; border-radius: 16px; }
  .admin-hero::after { width: 190px; height: 190px; top: -150px; right: -35px; }
  .admin-hero h1 { font-size: clamp(27px, 8vw, 36px); }
  .admin-hero .admin-button { align-self: flex-start; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metric { min-height: 110px; align-items: flex-start; flex-direction: column; gap: 9px; padding: 15px; }
  .admin-metric-icon { width: 35px; height: 35px; border-radius: 10px; }
  .admin-metric-icon .icon { width: 17px; height: 17px; }
  .admin-metric strong { font-size: 18px; line-height: 22px; }
  .admin-metric small { display: none; }
  .admin-layout { border-radius: 16px; }
  .admin-sidebar { top: 64px; padding: 8px; background: #0c1321f7; backdrop-filter: blur(18px); }
  .admin-nav-item { min-height: 42px; }
  .admin-workspace { padding: 24px 14px; }
  .admin-section-heading { margin-bottom: 20px; }
  .admin-section-heading h2 { font-size: 27px; }
  .admin-panel { border-radius: 13px; }
}

@media (max-width: 420px) {
  .admin-hero { gap: 19px; }
  .admin-eyebrow { font-size: 9px; }
  .admin-metrics { gap: 8px; }
  .admin-metric { min-height: 104px; }
  .admin-metric p { font-size: 9px; }
  .admin-workspace { padding-inline: 11px; }
  .admin-panel-heading, .admin-editor form { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Admin control center */
.admin-view { min-height: calc(100vh - 64px); padding: 42px 24px 80px; background: radial-gradient(circle at 50% -20%, #5bbbff17, transparent 31%), #070809; }
.admin-container { width: min(1440px, 100%); margin-inline: auto; }
.admin-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.admin-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #86cdff; font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.admin-eyebrow i, .admin-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80aa; }
.admin-hero h1 { margin-bottom: 7px; font-size: clamp(28px, 3vw, 39px); line-height: 1.15; letter-spacing: -.035em; }
.admin-hero h1 span { color: #a3d9ff; }
.admin-hero p { color: #858b8f; }
.admin-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; color: #f5f6f7; font-size: 13px; font-weight: 650; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.admin-button:hover { transform: translateY(-1px); }
.admin-button .icon { width: 16px; height: 16px; }
.admin-button.primary { background: linear-gradient(135deg, #67c0ff, #4ea6e5); box-shadow: 0 10px 30px #58b0ee29; }
.admin-button.primary:hover { background: linear-gradient(135deg, #76c6ff, #58aeec); }
.admin-button.secondary { border-color: #272b2d; background: #111315; }
.admin-button.secondary:hover, .admin-button.ghost:hover { border-color: #3b4043; background: #181b1d; }
.admin-button.ghost { border-color: #292d30; background: transparent; color: #a4a9ad; }
.admin-button:disabled { transform: none; opacity: .55; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-metric { min-width: 0; min-height: 116px; display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid #202325; border-radius: 13px; background: linear-gradient(145deg, #121416, #0d0f10); box-shadow: 0 12px 35px #0004; }
.admin-metric-icon { width: 43px; height: 43px; flex: none; display: grid; place-items: center; border-radius: 11px; color: #86cdff; background: #6cc2ff18; }
.admin-metric-icon.players { color: #52d389; background: #35c87913; }
.admin-metric-icon.news { color: #5eb8ff; background: #4eaef514; }
.admin-metric-icon.rules { color: #94d2ff; background: #60bafa14; }
.admin-metric-icon .icon { width: 20px; height: 20px; }
.admin-metric p { margin-bottom: 2px; color: #777c80; font-size: 11px; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; }
.admin-metric strong { display: block; overflow: hidden; font-size: 21px; line-height: 27px; text-overflow: ellipsis; white-space: nowrap; }
.admin-metric small { display: block; color: #686d71; font-size: 11px; }
.admin-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 580px; overflow: hidden; border: 1px solid #202325; border-radius: 14px; background: #0b0d0e; box-shadow: 0 30px 80px #0006; }
.admin-sidebar { padding: 19px 12px; border-right: 1px solid #202325; background: #0d0f10; }
.admin-sidebar-title { padding: 0 12px 12px; color: #555b5f; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.admin-nav-item { position: relative; width: 100%; min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #858b8f; font-size: 13px; font-weight: 570; text-align: left; transition: color .18s, background .18s; }
.admin-nav-item:hover { color: #d7dadc; background: #ffffff08; }
.admin-nav-item.active { color: #fff; background: linear-gradient(90deg, #69bbf527, #69bbf50c); }
.admin-nav-item.active::before { content: ""; position: absolute; width: 2px; height: 22px; margin-left: -12px; border-radius: 4px; background: #76c6ff; }
.admin-nav-item .icon { width: 17px; height: 17px; }
.admin-nav-item span { flex: 1; }
.admin-nav-item b { min-width: 22px; padding: 2px 6px; border-radius: 99px; background: #202426; color: #999fa3; font-size: 10px; text-align: center; }
.admin-sidebar-divider { height: 1px; margin: 14px 10px; background: #202325; }
.admin-workspace { min-width: 0; padding: 30px; background: radial-gradient(circle at 100% 0%, #5cbbff09, transparent 25%), #0a0c0d; }
.admin-section:not(.active) { display: none; }
.admin-section-heading { min-height: 67px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.admin-kicker { display: block; margin-bottom: 5px; color: #70aeda; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.admin-section-heading h2 { margin-bottom: 4px; font-size: 26px; letter-spacing: -.025em; }
.admin-section-heading p { color: #777c80; font-size: 13px; }
.admin-section-count, .admin-live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #24282a; border-radius: 99px; background: #111315; color: #858a8e; font-size: 11px; }
.admin-section-count b { color: #c2e6ff; }
.admin-live { color: #71d99d; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr); gap: 16px; }
.admin-panel { min-width: 0; border: 1px solid #202426; border-radius: 12px; background: linear-gradient(145deg, #111315, #0e1011); }
.admin-panel-heading { display: flex; justify-content: space-between; padding: 19px 20px 16px; border-bottom: 1px solid #1e2123; }
.admin-panel-heading h3 { margin: 0 0 3px; font-size: 15px; }
.admin-panel-heading p { color: #686d71; font-size: 11px; }
.admin-activity-list { padding: 8px 20px 16px; }
.admin-activity-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #1b1e20; }
.admin-activity-item:last-child { border-bottom: 0; }
.admin-activity-symbol { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; color: #84ccff; background: #69bbf518; }
.admin-activity-symbol.rule { color: #8acbfa; background: #5ab0ee14; }
.admin-activity-symbol .icon { width: 15px; height: 15px; }
.admin-activity-item strong { display: block; overflow: hidden; color: #d7dadc; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-activity-item small { display: block; margin-top: 2px; color: #5f6468; font-size: 10px; }
.admin-activity-time { color: #555a5e; font-size: 10px; }
.admin-quick-panel { padding-bottom: 9px; }
.admin-quick-panel > button, .admin-quick-panel > a { width: calc(100% - 18px); display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 9px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; }
.admin-quick-panel > button:hover, .admin-quick-panel > a:hover { background: #ffffff08; }
.admin-action-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #84ccff; background: #69bbf518; }
.admin-action-icon.purple { color: #8cccf9; background: #5aade814; }
.admin-action-icon.green { color: #52d389; background: #35c87913; }
.admin-action-icon .icon { width: 15px; height: 15px; }
.admin-quick-panel strong { display: block; color: #d4d7d9; font-size: 12px; }
.admin-quick-panel small { display: block; margin-top: 2px; color: #5d6266; font-size: 10px; }
.admin-quick-panel b { color: #555b5f; font-size: 15px; }
.admin-editor-grid { display: grid; grid-template-columns: minmax(290px, .8fr) minmax(420px, 1.4fr); gap: 16px; align-items: start; }
.admin-editor form { gap: 17px; padding: 20px; margin: 0; }
.admin-editor label { gap: 8px; color: #aaafb2; font-size: 12px; font-weight: 570; }
.admin-editor label > span { display: flex; justify-content: space-between; }
.admin-editor label b { color: #555a5e; font-size: 10px; font-weight: 500; }
.admin-editor input, .admin-editor textarea, .admin-search input { border: 1px solid #262a2c; border-radius: 8px; background: #0a0c0d; color: #f5f6f7; box-shadow: inset 0 1px 0 #ffffff05; }
.admin-editor input:focus, .admin-editor textarea:focus, .admin-search:focus-within { border-color: #68a9d8; outline: 2px solid #68a9d822; }
.admin-editor textarea { min-height: 190px; line-height: 1.55; }
.admin-editor input::placeholder, .admin-editor textarea::placeholder, .admin-search input::placeholder { color: #44494d; }
.admin-form-actions { display: flex; gap: 9px; }
.admin-library { overflow: hidden; }
.admin-search { display: flex; align-items: center; gap: 8px; margin: 14px 16px 8px; padding: 0 11px; border: 1px solid #262a2c; border-radius: 8px; background: #0a0c0d; }
.admin-search .icon { width: 15px; height: 15px; color: #555a5e; }
.admin-search input { height: 38px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 12px; }
.admin-search input:focus { outline: 0; }
.admin-content-list { max-height: 525px; overflow: auto; padding: 8px 16px 16px; scrollbar-color: #303538 transparent; scrollbar-width: thin; }
.admin-content-item { position: relative; padding: 15px 14px; border-bottom: 1px solid #1d2022; }
.admin-content-item:last-child { border-bottom: 0; }
.admin-content-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-content-index { display: inline-flex; margin-bottom: 8px; padding: 3px 7px; border-radius: 5px; color: #92cef8; background: #68b3e914; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-content-item h4 { margin: 0 0 7px; color: #e2e4e6; font-size: 14px; line-height: 1.35; }
.admin-content-item p { display: -webkit-box; overflow: hidden; margin: 0; color: #777c80; font-size: 12px; line-height: 1.55; white-space: pre-wrap; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.admin-content-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #505559; font-size: 10px; }
.admin-content-actions { display: flex; flex: none; gap: 4px; }
.admin-icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #777c80; }
.admin-icon-button:hover { border-color: #2b2f31; background: #17191b; color: #dddfe1; }
.admin-icon-button.danger:hover { border-color: #ef44443b; background: #ef444410; color: #ff7070; }
.admin-icon-button .icon { width: 14px; height: 14px; }
.admin-empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 28px; color: #606569; text-align: center; }
.admin-empty.compact { min-height: 190px; }
.admin-empty-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #191c1e; }
.admin-empty-icon .icon { width: 17px; height: 17px; }
.admin-empty p { font-size: 12px; }
.admin-empty small { max-width: 260px; color: #4d5255; font-size: 10px; }
.admin-toast { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: min(390px, calc(100% - 44px)); display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #2c3033; border-left: 3px solid #68b9f2; border-radius: 9px; background: #151719f2; box-shadow: 0 18px 55px #0009; color: #d8dbdd; font-size: 12px; backdrop-filter: blur(16px); }
.admin-toast.success { border-left-color: #4ade80; }
.admin-toast.error { border-left-color: #ef4444; }
.admin-toast span { flex: 1; }
.admin-toast button { border: 0; background: transparent; color: #777c80; font-size: 20px; line-height: 1; }

@media (max-width: 1100px) {
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-editor-grid, .admin-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .admin-view { padding: 27px 14px 60px; }
  .admin-hero { align-items: stretch; flex-direction: column; }
  .admin-hero .admin-button { align-self: flex-start; }
  .admin-metrics { gap: 9px; }
  .admin-metric { min-height: 100px; padding: 14px; }
  .admin-metric-icon { width: 36px; height: 36px; }
  .admin-metric strong { font-size: 17px; }
  .admin-layout { display: block; overflow: visible; }
  .admin-sidebar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 5px; overflow-x: auto; padding: 9px; border-right: 0; border-bottom: 1px solid #202325; }
  .admin-sidebar-title, .admin-sidebar-divider, .admin-sidebar a { display: none; }
  .admin-nav-item { width: auto; flex: 0 0 auto; padding-inline: 12px; }
  .admin-nav-item.active::before { display: none; }
  .admin-nav-item b { display: none; }
  .admin-workspace { padding: 20px 14px; }
  .admin-section-heading { min-height: 0; }
  .admin-content-list { max-height: none; }
}
@media (max-width: 480px) {
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-metric { min-height: 88px; }
  .admin-section-heading { flex-direction: column; }
  .admin-form-actions { flex-direction: column; }
  .admin-form-actions .admin-button { width: 100%; }
}

/* 2026 visual refresh: a clearer Riverside identity for the public website. */
:root {
  --background: #050711;
  --surface: #0d1220cc;
  --border: #aabfff1c;
  --muted: #9da9bd;
  --discord: #5865f2;
  --secondary: #202a3d;
  --accent: #6f7cff;
  --accent-bright: #8fa7ff;
  --cyan: #52d9ff;
}

body {
  background:
    radial-gradient(circle at 12% 4%, #29488635, transparent 28rem),
    radial-gradient(circle at 92% 24%, #3977a41f, transparent 32rem),
    linear-gradient(180deg, #070a12, #050711 48%, #03050a);
}

.glass {
  background: linear-gradient(145deg, #121827db, #0a0e19d1);
  border-color: var(--border);
  box-shadow: 0 26px 80px #0007, inset 0 1px 0 #ffffff0b;
}

.site-header {
  height: 72px;
  background: linear-gradient(180deg, #05070bf2, #05070bd9);
  border-bottom: 1px solid #ffffff0b;
  backdrop-filter: blur(18px) saturate(135%);
}
.site-header.scrolled { background: #05070bf2; border-bottom-color: #8da4dc21; }
.nav-container { height: 72px; }
.brand { letter-spacing: -.025em; }
.brand img { box-shadow: 0 0 24px #6078ff28; }
.main-nav { gap: 8px; }
.main-nav a { padding: 9px 11px; font-weight: 560; }
.main-nav a::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border-radius: 8px;
  background: #8294ff0d;
  opacity: 0;
  transition: opacity .2s;
}
.main-nav a:hover::before, .main-nav a.active::before { opacity: 1; }
.main-nav a.active::after {
  width: 5px;
  height: 5px;
  bottom: -4px;
  left: calc(50% - 2px);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.login-link {
  border: 1px solid #ffffff30;
  background: #f4f7ff;
  box-shadow: 0 8px 24px #0005;
  font-weight: 700;
}

main { padding-top: 72px; }
.view[data-view="/"] {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 34%, #203c7640, transparent 31rem),
    radial-gradient(circle at 95% 66%, #295e8424, transparent 34rem);
}
.hero {
  min-height: min(850px, calc(100svh - 24px));
  align-items: flex-end;
  background: #03050a;
}
.hero-image {
  background-position: center 44%;
  transform: scale(1.025);
  filter: saturate(1.12) contrast(1.04);
}
.hero-shade {
  background:
    linear-gradient(90deg, #02050ada 0%, #0407118c 46%, #0508102b 76%),
    linear-gradient(0deg, #050711 0%, transparent 38%, #02040a38 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 24% 58%, #5865f22b, transparent 26rem);
}
.hero::after { height: 210px; background: linear-gradient(to top, #050711, transparent); }
.hero-content {
  max-width: 1280px;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 32px 92px;
  text-align: left;
}
.hero-kicker {
  margin-bottom: 20px;
  border-color: #a8bcff2e;
  background: #0b1120b8;
  color: #cbd7f0;
}
.hero-logo { width: 104px; height: 104px; margin: 0 0 25px; filter: drop-shadow(0 12px 30px #182f84a8); }
.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(58px, 6.3vw, 88px);
  line-height: .93;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #fff 2%, #a9baff 45%, #66dcff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero p { max-width: 650px; margin: 0 0 30px; color: #c2cad8; font-size: 18px; line-height: 1.65; }
.hero .actions { justify-content: flex-start; }
.button {
  border-radius: 10px;
  box-shadow: 0 10px 25px #0003;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.discord { background: linear-gradient(135deg, #6572ff, #4d59dc); box-shadow: 0 12px 32px #4d5be33d; }
.discord:hover { background: linear-gradient(135deg, #7480ff, #5966e8); box-shadow: 0 16px 38px #4d5be355; }
.secondary { border: 1px solid #ffffff1a; background: #172033d9; backdrop-filter: blur(12px); }
.secondary:hover { border-color: #91a8e347; background: #202c44; }
.status-pill {
  margin-top: 32px;
  border-color: #a8bdff25;
  background: #08101fd4;
  color: #b2bfd2;
  box-shadow: 0 12px 34px #0004;
}
.status-dot.online { box-shadow: 0 0 11px #22c55eaa; }

.stats { position: relative; z-index: 3; margin-top: -42px; padding-top: 0; padding-bottom: 72px; }
.stats-grid { gap: 12px; }
.stat {
  min-height: 112px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, #111827f2, #090e19f2);
  transition: transform .2s, border-color .2s;
}
.stat:hover { transform: translateY(-3px); border-color: #849cff38; }
.stat p { margin-bottom: 4px; color: #8390a5; font-size: 12px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.stat strong { font-size: 26px; letter-spacing: -.025em; }
.stat-icon { border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); background: currentColor; background: color-mix(in srgb, currentColor 9%, transparent); border-radius: 12px; }

.section { padding-top: 88px; padding-bottom: 88px; }
.section-heading { margin-bottom: 48px; }
.section-heading h2, .cta-card h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -.045em; }
.section-heading p { line-height: 1.75; }
.section-kicker { color: #8fa7ff; }
.home-story { padding-top: 36px; }
.home-story-card { min-height: 510px; border-radius: 24px; border-color: #96abdf26; }
.home-story-copy h2 { font-size: clamp(34px, 4vw, 49px); }
.home-story-media::after { background: linear-gradient(90deg, #0d1320 0%, transparent 35%), linear-gradient(0deg, #05071175, transparent 50%); }
.story-status { border-color: #a8bdff25; background: #080e19dd; }
.home-checklist li span { background: #38d99317; color: #68efa5; box-shadow: inset 0 0 0 1px #58e69a20; }
.muted-link { color: #aebeff; }
.muted-link:hover { color: #fff; }

.join-grid { gap: 16px; }
.join-step {
  min-height: 300px;
  border-radius: 18px;
  background: linear-gradient(155deg, #121827e8, #090e18e8);
}
.join-step:hover, .feature:hover { border-color: #8298ff5e; transform: translateY(-5px); }
.step-number { color: #6f7cff1a; font-size: 68px; }
.feature-icon { border: 1px solid #829aff24; border-radius: 12px; background: #758cff12; color: #91a8ff; }
.feature { min-height: 230px; border-radius: 18px; background: linear-gradient(145deg, #101624ca, #090d17c7); transition: transform .25s, border-color .25s; }
.feature h3 { letter-spacing: -.02em; }

.home-news-card, .rules-card, .faq-list details, .cta-card { border-radius: 18px; }
.home-news-empty { background: radial-gradient(circle at 50% 0%, #5865f222, transparent 55%), linear-gradient(145deg, #101624, #090e18); }
.rules-card { background: linear-gradient(145deg, #101725e8, #090e18e8); }
.rules-list li span { background: #6b7dff17; color: #aebaff; box-shadow: inset 0 0 0 1px #8798ff21; }
.community-card {
  border-color: #788bff35;
  border-radius: 24px;
  background: radial-gradient(circle at 0 50%, #5865f24d, transparent 38%), linear-gradient(120deg, #12182b, #0a0f1b);
}
.community-icon { background: linear-gradient(135deg, #7480ff, #4c59e4); box-shadow: 0 18px 50px #5865f25c; }
.faq-list details { background: linear-gradient(145deg, #101624c9, #090e18c9); }
.faq-list details[open] { border-color: #849bff52; background: #11182ad9; }
.faq-list summary span { background: #7f91ff13; color: #9eb0ff; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-color: #8499ff42;
  background: radial-gradient(circle at 50% 110%, #4c6edc4a, transparent 55%), linear-gradient(145deg, #151c30, #090e19);
}
.cta-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -180px;
  right: -50px;
  border-radius: 50%;
  background: #6572ff2c;
  filter: blur(5px);
}
.site-footer { background: #05070c; border-top-color: #8ca3db1a; }
.footer-links h2 { color: #dce5f6; letter-spacing: .06em; }

.subpage { padding-top: 76px; background: radial-gradient(circle at 50% 0%, #273e762b, transparent 35rem); }
.page-heading h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; }
.content-card, .info-card { border-radius: 16px; }

@media (max-width: 767px) {
  .site-header, .nav-container { height: 64px; }
  main { padding-top: 64px; }
  .main-nav { top: 64px; background: #070a12f7; backdrop-filter: blur(18px); }
  .hero { min-height: 700px; align-items: center; }
  .hero-content { min-height: 650px; align-items: center; padding: 52px 20px 76px; text-align: center; }
  .hero-logo { width: 88px; height: 88px; margin: 0 auto 22px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); line-height: .96; }
  .hero p { margin-inline: auto; font-size: 16px; line-height: 1.6; }
  .hero .actions { justify-content: center; }
  .status-pill { margin-top: 25px; }
  .stats { margin-top: -34px; padding-bottom: 48px; }
  .stat { min-height: 96px; border-radius: 12px; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .home-story { padding-top: 24px; }
  .home-story-card, .community-card { border-radius: 18px; }
  .home-story-media { min-height: 270px; }
  .feature { min-height: 0; }
}

@media (max-width: 639px) {
  .hero .actions { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 19px; }
  .stat-icon { width: 34px; height: 34px; }
  .section-heading h2, .cta-card h2 { font-size: 32px; }
}

.rules-list li > span.rule-summary { display: block; place-items: initial; flex: 1 1 auto; width: auto; height: auto; min-width: 0; margin-top: 0; border-radius: 0; background: transparent; box-shadow: none; color: #d4d4d4; font-size: inherit; font-weight: inherit; line-height: inherit; text-align: left; }
.rules-list li > span.rule-summary strong { display: block; margin: 0 0 3px; color: #f4f6ff; font-size: 14px; font-weight: 700; text-align: left; }
.rules-list li > span.rule-number { display: inline-grid; place-items: center; flex: none; width: auto; min-width: 42px; height: 24px; padding: 0 7px; margin-top: 2px; border-radius: 8px; background: #6b7dff17; color: #aebaff; box-shadow: inset 0 0 0 1px #8798ff21; font-size: 12px; font-weight: 600; line-height: 1; }

@media (max-width: 480px) {
  .admin-rule-fields { grid-template-columns: 1fr; }
}

/* Keep the admin overview compact on phones. */
@media (max-width: 480px) {
  .admin-mode .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-mode .admin-metric {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
  }
  .admin-mode .admin-metric-icon { width: 34px; height: 34px; }
  .admin-mode .admin-metric-icon .icon { width: 16px; height: 16px; }
  .admin-mode .admin-metric p { font-size: 9px; }
  .admin-mode .admin-metric strong { font-size: 18px; line-height: 22px; }
  .admin-mode .admin-metric small { display: none; }
}

/* Public rule search */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rule-search-panel {
  position: sticky;
  top: 88px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 16px;
  background: #0c1321ed;
  box-shadow: 0 18px 50px #0007, inset 0 1px 0 #ffffff0a;
}
.rule-search-panel label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #91a7e52b;
  border-radius: 11px;
  background: #070c15;
  transition: border-color .2s, box-shadow .2s;
}
.rule-search-panel label:focus-within { border-color: #7185ff; box-shadow: 0 0 0 4px #7185ff12; }
.rule-search-panel .icon { width: 19px; height: 19px; color: #8295b3; }
.rule-search-panel input { height: 48px; padding: 0; border: 0; background: transparent; outline: 0; }
.rule-search-panel input::placeholder { color: #647188; }
.rule-search-panel p { flex: none; min-width: 108px; padding-right: 10px; color: #8491a6; font-size: 12px; text-align: right; }
.rule-group + .rule-group { margin-top: 52px; }
.managed-rules.no-rule-results { min-height: 220px; }
.managed-rules.no-rule-results::after { content: "Ingen matchende regler"; min-height: 170px; display: grid; place-items: center; color: #7f8ca1; font-size: 14px; }

@media (max-width: 767px) {
  .rule-search-panel { top: 76px; align-items: stretch; flex-direction: column; gap: 8px; }
  .rule-search-panel p { min-width: 0; padding: 0 4px 2px; text-align: left; }
  .rule-group + .rule-group { margin-top: 40px; }
}

/* Changelog */
.public-changelog-list { display: grid; gap: 18px; max-width: 980px; margin-inline: auto; }
.changelog-card { position: relative; overflow: hidden; border-color: #8298df2b; }
.changelog-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(#7180ff, #52d9ff); }
.changelog-card h2 { letter-spacing: -.03em; }
.changelog-card p { white-space: pre-wrap; }
.admin-mode .admin-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-metric-icon.changelog { color: #70d6ff; border-color: #51c8ff20; background: #42bdf514; }
.admin-metric:nth-child(4)::after { background: linear-gradient(90deg, #52d9ff, transparent 75%); }
.admin-metric:nth-child(5)::after { background: linear-gradient(90deg, #7ac8ff, transparent 75%); }

@media (max-width: 1200px) {
  .admin-mode .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-container { gap: 10px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 767px) {
  .admin-mode .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-mode .admin-metric:last-child { grid-column: 1 / -1; align-items: center; flex-direction: row; justify-content: flex-start; }
}

.admin-check { display: flex; grid-template-columns: none; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #8ca3e126; border-radius: 10px; background: #070c15; cursor: pointer; }
.admin-check input { width: 17px; height: 17px; margin: 0; accent-color: #7180ff; }
.admin-check span { color: #aeb9cb; font-size: 12px; }

@media (max-width: 767px) {
}


/* ============================================================
   2026 polish pass: finpudsning af hele den offentlige side
   ============================================================ */

:root {
  --radius-card: 18px;
  --shadow-card: 0 24px 70px #0006, inset 0 1px 0 #ffffff0c;
}

/* --- Typografi --- */
body {
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { text-wrap: balance; }
.section-heading h2, .cta-card h2 {
  color: transparent;
  background: linear-gradient(100deg, #ffffff 8%, #c6d2ff 70%, #9ecffe 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.section-heading p, .page-heading p { max-width: 620px; font-size: 16px; }
.section-kicker {
  position: relative;
  padding-left: 18px;
}
.section-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

/* --- Kort: ens look på tværs af siden --- */
.glass,
.stat,
.join-step,
.feature,
.home-news-card,
.rules-card,
.faq-list details,
.cta-card,
.content-card,
.info-card {
  border-radius: var(--radius-card);
}
.stat, .feature, .join-step, .home-news-card, .content-card, .info-card {
  box-shadow: var(--shadow-card);
}
.stat:hover, .feature:hover, .join-step:hover, .home-news-card:hover,
.faq-list details:hover, .content-card:hover {
  border-color: #8fa5e84a;
}

/* --- Knapper --- */
.button {
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: .01em;
}
.discord { border: 1px solid #ffffff22; }
.outline { border-color: #8fa5e838; color: #d7e0f2; }
.outline:hover { border-color: #8fa5e870; background: #172033b0; }
.muted-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s, color .2s;
}
.muted-link:hover { gap: 10px; }

/* --- Hero: mere ro og luft --- */
.hero-content { padding-inline: clamp(20px, 4vw, 32px); }
.hero-kicker { letter-spacing: .16em; }
.hero-logo { animation: hero-float 7s ease-in-out infinite; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-image { animation: hero-zoom 26s ease-in-out infinite alternate; }
@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.11); }
}

/* --- Stats: finere tal --- */
.stat strong {
  background: linear-gradient(100deg, #fff, #b9c6ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* --- Undersider: pænere sidehovede --- */
.page-heading {
  position: relative;
  margin-bottom: 56px;
}
.page-heading h1 {
  color: transparent;
  background: linear-gradient(100deg, #ffffff 10%, #c6d2ff 75%, #9ecffe 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.page-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 20px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.page-heading .button { margin-top: 28px; }
.page-heading h1, .page-heading::after { margin-inline: auto; }
.page-heading h1 { margin-bottom: 14px; }

.content-card { transition: border-color .25s, transform .25s; }
.content-card:hover { transform: translateY(-2px); }

/* --- FAQ --- */
.faq-list summary {
  padding: 22px 26px;
  font-size: 15.5px;
  transition: color .2s;
}
.faq-list summary:hover { color: #cdd6ee; }
.faq-list details[open] summary { color: #fff; }

/* --- Footer: mere elegant --- */
.site-footer {
  background:
    radial-gradient(circle at 18% 0%, #2948862e, transparent 26rem),
    linear-gradient(180deg, #05070c, #04050a);
}
.footer-grid { padding-block: 56px; }
.footer-about .brand span { letter-spacing: -.02em; }
.footer-links a {
  position: relative;
  transition: color .2s, padding-left .2s;
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1.5px;
  border-radius: 2px;
  transform: translateY(-50%);
  background: var(--accent);
  transition: width .2s;
}
.footer-links a:hover { color: #fff; padding-left: 14px; }
.footer-links a:hover::before { width: 8px; }
.footer-bottom { font-size: 13px; }
.footer-bottom button { border-radius: 6px; }
.heart { animation: heart-beat 1.8s ease-in-out infinite; }
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1); }
}

/* --- Login-kort --- */
.login-card {
  position: relative;
  overflow: hidden;
  padding: 40px 32px;
  border-radius: 22px;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -60px 50% 60%;
  pointer-events: none;
  background: radial-gradient(circle, #5865f22e, transparent 70%);
}
.login-card img { filter: drop-shadow(0 12px 30px #182f84a0); }
.login-card h1 { letter-spacing: -.03em; }

/* --- Logo i header: blødt glow --- */
.brand img { border-radius: 10px; }

/* --- Scrollbars --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: #2a3550; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #3a486b; background-clip: content-box; }

/* --- Fokus og selection --- */
::selection { background: #6f7cff66; }

/* ============================================================
   Layout-fix pass: fjern død luft og stram kortene op
   ============================================================ */

/* Sektioner: tættere rytmе */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-heading { margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 10px; }

/* Join-kort: indhold definerer højden, link sidder i bunden */
.join-step {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}
.join-step p { min-height: 0; margin-bottom: 20px; }
.join-step .muted-link { margin-top: auto; }
.join-step .step-number { top: 20px; right: 22px; font-size: 56px; }

/* Features: lidt mindre fast højde */
.feature { min-height: 0; }
.feature p { line-height: 1.6; }

/* Regelliste: pænere afstande og læsbarhed */
.rules-card { padding: 28px 30px; }
.rules-list { gap: 18px; }
.rules-list li {
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.65;
  color: #c7cfe0;
}
.rules-list li > span.rule-number { margin-top: 3px; }
.rules-list li > span.rule-summary strong { margin-bottom: 3px; font-size: 15px; }

/* Story-kortet: strammere */
.home-story-card { min-height: 0; }
.home-story-copy { padding: clamp(28px, 4vw, 52px); }

/* CTA: mindre tom plads over/under */
.cta-card { padding: 44px 32px; }
.cta-card p { margin-bottom: 28px; }

/* Nyheds-sektion: kort uden fast minimum */
.home-news-card { min-height: 0; }

/* ============================================================
   REDESIGN: "Aurora Night" — helt ny visuel identitet
   Centreret hero · fuchsia/violet glows · solide kort
   ============================================================ */

:root {
  --accent: #46a9ef;
  --accent-bright: #abdafc;
  --cyan: #67e8f9;
  --muted: #9aa4c0;
  --discord: #3aa2ed;
}

/* --- Baggrund: mørk nattetusse med aurora-glow --- */
body, .view[data-view="/"] {
  background:
    radial-gradient(ellipse 60% 40% at 50% -8%, #3aa2ed33, transparent 70%),
    radial-gradient(ellipse 40% 30% at 88% 12%, #46a9ef22, transparent 70%),
    radial-gradient(ellipse 45% 30% at 8% 55%, #22d3ee14, transparent 70%),
    linear-gradient(180deg, #0a0b14, #090a12 60%, #06070d);
}
.subpage {
  background:
    radial-gradient(ellipse 55% 32% at 50% 0%, #3aa2ed2e, transparent 70%),
    linear-gradient(180deg, #0a0b14, #06070d);
}

/* --- Hero: centreret med aurora-ring --- */
.hero { align-items: center; }
.hero-content {
  align-items: center;
  min-height: 640px;
  padding: 72px 24px 96px;
  text-align: center;
  max-width: 960px;
}
.hero-shade {
  background:
    linear-gradient(0deg, #0a0b14 0%, transparent 45%, #0a0b1466 100%),
    radial-gradient(ellipse 70% 55% at 50% 60%, transparent 30%, #0a0b1499 100%);
}
.hero::before {
  background:
    radial-gradient(circle at 50% 55%, #46a9ef2b, transparent 30rem),
    radial-gradient(circle at 38% 45%, #3aa2ed22, transparent 22rem);
}
.hero-logo {
  padding: 10px;
  border: 1px solid #79c4f94d;
  border-radius: 32px;
  background: #08151fd0;
  box-shadow: 0 0 0 6px #46a9ef14, 0 20px 60px #3aa2ed55;
  animation: hero-float 7s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(52px, 7.5vw, 96px);
  letter-spacing: -.055em;
  line-height: .92;
}
.hero h1 span {
  background: linear-gradient(95deg, #abdafc 5%, #84cafc 45%, #67e8f9 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero p { margin-inline: auto; max-width: 560px; color: #aab3d0; }
.hero-kicker {
  border-color: #79c4f94d;
  background: #08151fd0;
  color: #abdafc;
}
.hero-kicker i { background: #79c4f9; box-shadow: 0 0 14px #79c4f9; }
.hero .actions { justify-content: center; }
.status-pill {
  border-color: #79c4f93d;
  background: #08151fd9;
  color: #b5dffd;
}

/* --- Knapper: fuchsia/violet --- */
.button { border-radius: 14px; box-shadow: none; }
.button:hover { transform: translateY(-2px); }
.discord {
  background: linear-gradient(135deg, #55b4f7, #46a9ef);
  box-shadow: 0 10px 34px #55b4f744;
}
.discord:hover {
  background: linear-gradient(135deg, #68bdfa, #5cb4f3);
  box-shadow: 0 14px 40px #46a9ef5c;
}
.secondary {
  border: 1px solid #ffffff1f;
  background: #141828e6;
}
.secondary:hover { border-color: #79c4f95c; background: #142430; }
.outline { border-color: #79c4f94d; color: #abdafc; }
.outline:hover { border-color: #79c4f98c; background: #142430b3; }

/* --- Kort: solide, kantet, glow ved hover --- */
.glass,
.stat, .join-step, .feature, .home-news-card, .rules-card,
.faq-list details, .cta-card, .content-card, .info-card,
.story-status, .login-card {
  background: #10131fd9;
  border: 1px solid #ffffff12;
  box-shadow: 0 18px 50px #0006;
}
.stat:hover, .feature:hover, .join-step:hover, .home-news-card:hover,
.faq-list details:hover, .content-card:hover, .info-card:hover {
  border-color: #79c4f95c;
  box-shadow: 0 22px 60px #3aa2ed33;
}
.stat, .feature, .join-step, .home-news-card, .content-card, .info-card {
  border-radius: 16px;
}

/* --- Overskrifter: hvide med fuchsia-badges --- */
.section-heading h2, .cta-card h2, .page-heading h1, .stat strong {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border: 1px solid #79c4f94d;
  border-radius: 999px;
  background: #0f212ed9;
  color: #abdafc;
  letter-spacing: .1em;
}
.section-kicker::before { display: none; }
.page-heading::after {
  background: linear-gradient(90deg, #46a9ef, #67e8f9);
}

/* --- Header --- */
.site-header {
  background: #0a0b14e8;
  border-bottom: 1px solid #79c4f92b;
}
.site-header.scrolled { background: #0a0b14f2; border-bottom-color: #79c4f93d; }
.main-nav a:hover::before, .main-nav a.active::before { background: #46a9ef14; }
.main-nav a.active::after { background: #79c4f9; box-shadow: 0 0 10px #79c4f9; }
.brand img { box-shadow: 0 0 20px #55b4f755; }
.login-link {
  background: linear-gradient(135deg, #55b4f7, #46a9ef);
  color: #fff;
}
.login-link:hover { background: linear-gradient(135deg, #68bdfa, #5cb4f3); }

/* --- Stats --- */
.stat { min-height: 0; }
.stat-icon {
  border-color: #79c4f93d;
  background: #46a9ef14;
  color: #79c4f9;
}
.stat-icon.blue { color: #67e8f9; background: #22d3ee12; border-color: #22d3ee3d; }
.stat-icon.purple { color: #84cafc; background: #55b4f712; border-color: #55b4f73d; }
.feature-icon {
  border-color: #79c4f93d;
  background: #46a9ef14;
  color: #abdafc;
}
.step-number { color: #46a9ef2e; }

/* --- Særlige sektioner --- */
.community-card {
  border-color: #55b4f74d;
  background:
    radial-gradient(ellipse 50% 90% at 0% 50%, #55b4f733, transparent 60%),
    #10131fd9;
}
.community-icon {
  background: linear-gradient(135deg, #55b4f7, #46a9ef);
  box-shadow: 0 16px 44px #55b4f74d;
}
.cta-card {
  border-color: #55b4f75c;
  background:
    radial-gradient(ellipse 60% 90% at 50% 115%, #55b4f73d, transparent 60%),
    #10131fd9;
}
.cta-card::before { background: #46a9ef2e; }
.home-checklist li span {
  background: #46a9ef1a;
  color: #abdafc;
  box-shadow: inset 0 0 0 1px #79c4f94d;
}
.rules-list li span:not([class]), .rules-list li > span.rule-number {
  background: #46a9ef1a;
  color: #abdafc;
  box-shadow: inset 0 0 0 1px #79c4f94d;
}
.muted-link { color: #79c4f9; }
.muted-link:hover { color: #cfe9fb; }
.notice { background: #46a9ef12; border-color: #79c4f94d; color: #d5eeff; }
.tag { color: #abdafc; background: #46a9ef26; }

/* --- FAQ --- */
.faq-list details { border-radius: 14px; }
.faq-list details[open] {
  border-color: #79c4f95c;
  background: #101f29d9;
}
.faq-list summary span { background: #46a9ef1a; color: #abdafc; }

/* --- Footer --- */
.site-footer {
  background:
    radial-gradient(ellipse 40% 60% at 50% 0%, #3aa2ed26, transparent 70%),
    #08090f;
  border-top-color: #79c4f93d;
}

/* --- Status-dot og login --- */
.status-dot.online { background: #34d399; box-shadow: 0 0 11px #34d399aa; }
.status-pill .status-dot, .story-status .status-dot { background: #79c4f9; }
.login-card { border-radius: 20px; }
.login-card::before { background: radial-gradient(circle, #55b4f72e, transparent 70%); }

/* --- Admin: hold den separat, men match accent --- */
.admin-button.primary { background: linear-gradient(135deg, #55b4f7, #268bd3); }

/* ============================================================
   REBUILD v4: nyt layout
   Tidslinje-steps · feature-rækker · to-kolonne FAQ · stats-strip
   ============================================================ */

/* --- Stats: én samlet strip med skilte adskilt af linjer --- */
.stats { margin-top: -36px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #ffffff14;
  border-radius: 18px;
  background: #10131fd9;
  box-shadow: 0 18px 50px #0006;
  overflow: hidden;
}
.stats-grid .stat {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-left: 1px solid #ffffff10;
  padding: 26px 20px;
  min-height: 0;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.stats-grid .stat:first-child { border-left: 0; }
.stats-grid .stat:hover { border-color: #ffffff10; box-shadow: none; transform: none; }
.stats-grid .stat > div { display: grid; gap: 6px; justify-items: center; }
.stats-grid .stat-icon { margin-inline: auto; }

/* --- Join: tidslinje med forbindende linje og cirkel-numre --- */
.join-grid {
  position: relative;
  gap: 64px;
  padding-top: 34px;
}
.join-grid::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #55b4f7aa 20%, #46a9efaa 80%, transparent);
}
.join-step {
  position: relative;
  padding: 44px 26px 26px;
  background: #10131fd9 !important;
  border: 1px solid #ffffff12 !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 50px #0006 !important;
  overflow: visible;
}
.join-step:hover { border-color: #79c4f95c !important; }
.join-step::after { display: none; }
.join-step .feature-icon {
  position: absolute;
  top: -34px;
  left: 22px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #09161fd9;
  border: 1px solid #79c4f96b;
  box-shadow: 0 0 0 7px #0a0b14, 0 0 26px #46a9ef3d;
  z-index: 1;
}
.join-step .feature-icon .icon { width: 26px; height: 26px; }
.join-step .step-number {
  top: -46px;
  left: 84px;
  right: auto;
  font-size: 30px;
  letter-spacing: .04em;
  color: #46a9ef55;
  font-weight: 800;
}
.join-step h3 { margin: 40px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.join-step p { margin-bottom: 14px; }
.join-step:hover { transform: none; }

/* --- Features: to kolonner, ikon i venstre side --- */
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  min-height: 0;
}
.feature .feature-icon { margin: 0; grid-row: 1 / 3; width: 52px; height: 52px; }
.feature .feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 5px; font-size: 17px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.6; }
.feature:hover { transform: translateY(-2px); }

/* --- Story-kortet: vertikal, tekst øverst --- */
.home-story-card { grid-template-columns: 1fr; }
.home-story-copy { padding: 40px clamp(28px, 5vw, 56px) 0; }
.home-story-copy h2 { margin-bottom: 14px; }
.home-story-media { min-height: 320px; height: clamp(280px, 40vw, 460px); }
.home-story-media::after {
  background:
    linear-gradient(0deg, #0a0b14 0%, transparent 30%),
    linear-gradient(180deg, #0a0b14cc 0%, transparent 25%);
}

/* --- FAQ: to kolonner --- */
.faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-list summary { padding: 18px 20px; }
.faq-list details p { padding: 0 20px 18px; }

/* --- Nyheder: vandrette kort --- */
.home-news-grid { gap: 14px; }
.home-news-card { padding: 24px; }

/* --- Rules: to-kolonne layout i kortet --- */
.rules-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

/* --- CTA: fuld bredde med lodret ryg --- */
.cta-card { max-width: 1080px; padding: 56px 40px; }

@media (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:nth-child(3) { border-left: 0; }
  .stats-grid .stat:nth-child(n+3) { border-top: 1px solid #ffffff10; }
  .feature-grid { grid-template-columns: 1fr; }
  .rules-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .join-grid { gap: 48px; }
  .join-grid::before { display: none; }
  .faq-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat { border-left: 0; border-top: 1px solid #ffffff10; }
  .stats-grid .stat:first-child { border-top: 0; }
  .join-step .feature-icon { top: -30px; width: 60px; height: 60px; }
}

/* ============================================================
   LAYOUT v5: nyt sidestruktur-layout
   Flydende pill-header · bredere container · venstrestillede
   sidehoveder · omstruktureret footer
   ============================================================ */

/* --- Flydende pill-header, detacheret fra kanten --- */
.site-header {
  top: 10px;
  height: 60px;
  background: transparent;
  border-bottom: 0;
}
.nav-container {
  height: 60px;
  max-width: 1320px;
  padding-inline: 10px 18px;
  border: 1px solid #79c4f933;
  border-radius: 999px;
  background: #0c0d17e6;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 14px 44px #0008;
}
.site-header.scrolled .nav-container { background: #0c0d17f5; }
main { padding-top: 84px; }
.view[data-view="/"] main,
main .view[data-view="/"] { margin-top: -20px; }

/* --- Bredere indholdscontainer --- */
.container { max-width: 1400px; padding-inline: 20px; }
.narrow { max-width: 940px; }
.section { padding-top: 72px; padding-bottom: 72px; }

/* --- Undersider: venstrestillet sidehoved med kort-intro --- */
.page-heading {
  text-align: left;
  max-width: 940px;
}
.page-heading h1, .page-heading::after { margin-inline: 0; }
.page-heading p { margin: 0; }
.page-heading::after { margin-top: 16px; }
.subpage { padding-top: 96px; }
.subpage .content-card { max-width: 940px; margin-inline: 0; }
.subpage .public-news-list .news-card { max-width: 940px; }

/* --- Footer: brand i toppen centreret, links i to kolonner --- */
.site-footer {
  margin-top: 40px;
  border-top: 0;
  background:
    radial-gradient(ellipse 50% 70% at 50% 0%, #3aa2ed26, transparent 70%),
    #07080e;
}
.footer-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px 48px;
  text-align: left;
}
.footer-about {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  text-align: left;
  padding-bottom: 40px;
  border-bottom: 1px solid #ffffff10;
}
.footer-about .brand { margin-bottom: 0; }
.footer-about p { max-width: 520px; }
.footer-links h2 { font-size: 12px; letter-spacing: .12em; color: #a6c4d9; }
.footer-bottom {
  justify-content: center;
  text-align: center;
  border-top: 0;
  padding-block: 20px 28px;
}

/* --- Hero: mere luft under den flydende header --- */
.hero { min-height: min(820px, calc(100svh - 40px)); }
.hero-content { padding-top: 120px; }

/* --- CTA: fuld bredde panel --- */
.cta-card { max-width: none; border-radius: 24px; }

@media (max-width: 1023px) {
  .nav-container { max-width: none; margin-inline: 12px; }
}
@media (max-width: 767px) {
  .site-header { top: 8px; }
  .nav-container { height: 56px; margin-inline: 10px; }
  .main-nav { top: 66px; border-radius: 18px; border: 1px solid #79c4f933; background: #0c0d17f7; }
  main { padding-top: 76px; }
  .subpage { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
