/* Gemeinsame Gestaltung für die vorhandenen Cirlix-Unterseiten. */
:root {
  color-scheme: dark;
  --cirlix-ink: #050711;
  --cirlix-surface: #0d1020;
  --cirlix-text: #f8f5ff;
  --cirlix-muted: #c6c0d9;
  --cirlix-cyan: #62e9ff;
  --cirlix-magenta: #fa5cef;
  --cirlix-violet: #b864ff;
  --cirlix-line: #ac54e992;
  --cirlix-fill: linear-gradient(145deg, #111427, #080a15 76%);
  --cirlix-action: linear-gradient(112deg, #7629d4, #9c27d4);
  --cirlix-shadow: 0 0 22px #b52cf025, inset 0 1px #ffdbff0e;
  --ink: var(--cirlix-ink);
  --bg: var(--cirlix-ink);
  --text: var(--cirlix-text);
  --muted: var(--cirlix-muted);
  --cyan: var(--cirlix-cyan);
  --violet: var(--cirlix-violet);
  --line: #9c52c455;
  --line-strong: #c371fa8c;
  --panel-strong: #111427;
}

body {
  background:
    radial-gradient(ellipse at 10% 5%, #0d597b40, transparent 38rem),
    radial-gradient(ellipse at 95% 10%, #6b168949, transparent 38rem),
    var(--cirlix-ink);
  color: var(--cirlix-text);
}

:where(a, button, input, textarea, select, summary, [contenteditable]):focus-visible {
  outline: 2px solid var(--cirlix-cyan);
  outline-offset: 3px;
}

.forum-header, .site-header, .shell > .top, .demo-top {
  border-bottom: 1px solid var(--cirlix-line);
  background: #080a18f5;
  box-shadow: 0 3px 18px #b344f02b;
}

.forum-brand, .site-header .brand, .shell > .top .brand, .demo-brand {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 164px;
  height: 53px;
  border-radius: 5px;
  background: url("/cirlix-home-assets/dashboard-75c486d4fb2a.png") no-repeat -79px -6px / 1460px auto;
}

.forum-brand > *, .site-header .brand > *, .shell > .top .brand > *, .demo-brand > * {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.forum-nav a, .site-header nav a { border-radius: 9px; }
.forum-nav a[aria-current="page"], .demo-top nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(120deg, #4b1a72, #851caa);
  box-shadow: 0 0 13px #c437ff66;
}

.forum-hero, .board-heading, .topic-heading, .admin-heading, .profile-hero,
.shell > .hero, .subpage-hero, .rp-page-hero, .wrap > .hero {
  border: 1px solid var(--cirlix-line);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at left top, #16788e4d, transparent 55%),
    radial-gradient(ellipse at right bottom, #951aa04d, transparent 53%),
    var(--cirlix-fill);
  box-shadow: var(--cirlix-shadow);
}

.shell > .top { padding: .65rem .8rem; border-radius: 12px; }
.shell > .hero { padding: clamp(1rem, 4vw, 2rem); }
.subpage-hero.legal-hero { min-height: 0; margin: 1.25rem auto; width: min(1200px, calc(100% - 2rem)); padding: clamp(1.3rem, 5vw, 3.25rem); }
.section-kicker, .eyebrow { color: var(--cirlix-cyan); }
.outline { -webkit-text-stroke-color: var(--cirlix-cyan); text-shadow: 0 0 25px #3cdaf34d; }

.live-chat, .forum-category, .recent-activity, .online-statistics,
.topic-list, .forum-post, .form-card, .composer, .document-page,
.profile-bio, .profile-grid > *, .team-card, .admin-panel, .report-card,
.recent-post-card, .online-stat-grid > *, .online-rank-legend,
.shell .card, body > .box, body > main.card,
.legal-copy > section, .not-found-inner,
.info-card, .rule-card, .application-panel, .server-state, .split-cta,
.wrap .card, .wrap .step, .wrap .faq {
  border: 1px solid var(--cirlix-line);
  border-radius: 13px;
  background: var(--cirlix-fill);
  box-shadow: var(--cirlix-shadow);
}

.live-chat, .shell .grid > .card:first-child, .legal-copy > section:nth-of-type(even) {
  border-color: #61dffc78;
  box-shadow: 0 0 20px #1baeca25;
}

.board-row:hover, .topic-row:hover, .recent-post-card:hover { background-color: #291749; }
.legal-copy > section { padding: clamp(1rem, 3vw, 1.65rem); margin-block-end: 1rem; }
.legal-copy a, .post-link { color: #eec2ff; }
.not-found-inner { padding: clamp(1.25rem, 4vw, 2.5rem); }
.not-found-code { text-shadow: 0 0 26px #c43fff77; }

.primary-button, .small-button, .button-primary, .header-action,
.shell form button:not(.secondary, .danger), .shell .button-link:not(.secondary),
.shell .nav-forum, .box .btn:not(.ghost), main.card .approve, .wrap .btn.primary {
  color: #fff;
  border: 1px solid #d780ff;
  background: var(--cirlix-action);
  box-shadow: 0 0 15px #c748fe55;
}

.ghost-button, .button-ghost { border-color: var(--cirlix-line); }
.form-card :is(input, textarea, select), .shell input, .box input, .chat-composer input {
  border-color: #8c53b87a;
  background-color: #080b19;
}

.forum-footer, .site-footer { border-top: 1px solid var(--cirlix-line); }

@media (max-width: 620px) {
  .forum-brand, .site-header .brand, .shell > .top .brand, .demo-brand {
    width: 124px;
    height: 43px;
    background-size: 1100px auto;
    background-position: -60px -3px;
  }
  .shell > .top .top-nav { flex-wrap: wrap; justify-content: flex-end; gap: .45rem .65rem; }
  .shell > .top .nav-forum { padding: .4rem .65rem; }
}

.cirlix-mainbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #080917;
  border-bottom: 1px solid #a241d8;
  box-shadow: 0 4px 20px #9d2bea2a;
}

.cirlix-mainbar-inner {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, 1.1vw, 1.1rem);
  width: min(100%, 1672px);
  min-height: 70px;
  margin-inline: auto;
  padding: .38rem clamp(.75rem, 3vw, 3rem);
}

.cirlix-mainbar .forum-brand { flex-shrink: 0; }
.cirlix-mainnav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: clamp(.2rem, .6vw, .65rem);
  min-width: 0;
}

.cirlix-mainnav a, .cirlix-guest a {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  justify-content: center;
  padding: .48rem clamp(.3rem, .57vw, .7rem);
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fbf7ff;
  font-weight: 750;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
}

.cirlix-mainnav a:hover, .cirlix-mainnav a[aria-current="page"],
.cirlix-guest .cirlix-register {
  border-color: #cb58f5;
  background: linear-gradient(125deg, #5d0a98, #a621c2 77%, #c140eb);
  box-shadow: 0 0 14px #c83cff69, inset 0 -2px 7px #f2b7ff48;
}

.cirlix-guest {
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}

.cirlix-bar-search { display: flex; align-items: stretch; gap: .25rem; flex: 0 1 10.75rem; margin: 0; }
.cirlix-bar-search input {
  width: 100%;
  min-width: 5rem;
  padding: .45rem .65rem;
  border: 1px solid #70608a;
  border-radius: 8px;
  background: #101324;
  color: #fff;
  font: inherit;
  font-size: .84rem;
}

.cirlix-bar-search button {
  padding: .3rem .48rem;
  border: 1px solid #70608a;
  border-radius: 8px;
  background: #101324;
  color: #fff;
  cursor: pointer;
}

.cirlix-profile {
  position: relative;
  flex: 0 0 auto;
  max-width: 15rem;
  margin: 0;
  color: #fbf7ff;
}

.cirlix-profile > summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: .55rem;
  padding: .23rem .62rem .23rem .27rem;
  border: 1px solid #cb58f5;
  border-radius: 9px;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(125deg, #19112f, #2e1450);
  box-shadow: 0 0 13px #be36f657;
  white-space: nowrap;
}

.cirlix-profile > summary::-webkit-details-marker { display: none; }
.cirlix-profile > summary::after { content: "▾"; margin-left: auto; color: #fa86f5; }
.cirlix-profile[open] > summary::after { content: "▴"; }
.cirlix-profile > summary:focus-visible { outline: 2px solid #77f0ff; outline-offset: 2px; }
.cirlix-profile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .84rem; font-weight: 800; }
.cirlix-profile-avatar {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #9ae9ff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #15447a, #8c24b0);
  font-size: .82rem;
  font-weight: 850;
}

.cirlix-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cirlix-profile-avatar [hidden], .cirlix-profile[hidden] { display: none; }
.cirlix-profile-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + .4rem);
  right: 0;
  width: min(16rem, calc(100vw - 1.5rem));
  padding: .45rem;
  border: 1px solid #c25ded;
  border-radius: .7rem;
  background: #111225;
  box-shadow: 0 10px 26px #05030dd9, 0 0 15px #b82dec42;
}

.cirlix-profile-panel a, .cirlix-profile-panel button {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  padding: .55rem .65rem;
  border: 0;
  border-radius: .36rem;
  background: transparent;
  color: #fbf7ff;
  font: inherit;
  font-size: .85rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.cirlix-profile-panel a:hover, .cirlix-profile-panel button:hover,
.cirlix-profile-panel a:focus-visible, .cirlix-profile-panel button:focus-visible { background: #382252; }
.cirlix-profile-panel form { margin: 0; }

.cirlix-home-profile {
  position: absolute;
  inset: 0 0 auto auto;
  z-index: 4;
  width: 17.8%;
  height: 7.39%;
  max-width: none;
  padding-inline: .75rem;
  background: #080917;
  pointer-events: auto;
}

.cirlix-home-profile > summary {
  position: absolute;
  top: 50%;
  right: .7rem;
  left: .7rem;
  transform: translateY(-50%);
  min-height: 0;
  height: min(77%, 47px);
}

.cirlix-home-profile .cirlix-profile-avatar {
  width: clamp(22px, 2.3vw, 34px);
  height: clamp(22px, 2.3vw, 34px);
  flex-basis: auto;
  aspect-ratio: 1;
}

.cirlix-home-profile .cirlix-profile-panel { right: .7rem; }
.scene-scroll:has(.cirlix-home-profile[open]) .header-layer { z-index: 10; }

@media (max-width: 1240px) {
  .cirlix-mainbar-inner { flex-wrap: wrap; }
  .cirlix-mainnav { order: 4; flex: 1 0 100%; overflow-x: auto; padding-bottom: .15rem; }
  .cirlix-mainbar .cirlix-bar-search { margin-left: auto; }
}

@media (max-width: 580px) {
  .cirlix-mainbar .cirlix-bar-search { display: none; }
  .cirlix-mainbar .cirlix-guest, .cirlix-mainbar .cirlix-profile { margin-left: auto; }
  .cirlix-mainbar .cirlix-profile { max-width: 52%; }
}

.cirlix-forum-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  width: min(1200px, calc(100% - 2rem));
  margin: .85rem auto 0;
  padding: .28rem .42rem;
  border: 1px solid #8744b068;
  border-radius: 10px;
  background: #0b0d1b;
}

.cirlix-forum-subnav a { padding: .42rem .73rem; border-radius: 7px; color: #ddd5ee; font-weight: 700; font-size: .85rem; }
.cirlix-forum-subnav a:hover, .cirlix-forum-subnav a[aria-current="page"] { background: #382050; color: #fff; }
.cirlix-forum-subnav a[aria-current="page"] { box-shadow: inset 0 -1px #f25ce9; }
.cirlix-forum-subnav + .forum-shell { margin-top: 1rem; gap: 1.1rem; }
.forum-hero { gap: clamp(1rem, 3vw, 2rem); border-color: #b857efb0; }
.forum-hero h1 .outline { color: #eea9ff; -webkit-text-stroke: 0; text-shadow: 0 0 23px #c241f49c; }
.live-chat > header, .recent-activity > header, .forum-category > header, .topic-list > header {
  border-bottom-color: #ab54d678;
  background: linear-gradient(100deg, #15203c66, #27133955);
  border-radius: 12px 12px 0 0;
}
.board-icon, .heading-icon { color: #f2b0ff; background: linear-gradient(145deg, #251544, #12253c); box-shadow: 0 0 11px #a84cff26; }
.forum-post .post-author { background: #120e2354; }
.post-body a, .breadcrumbs a { color: #e6beff; }
.forum-shell .notice { border-color: #9952c17a; }
