﻿:root {
  --sky: #dff7ff;
  --blue: #1477c9;
  --blue-dark: #064b9f;
  --blue-soft: #8fc9ef;
  --panel: rgba(226, 246, 255, .92);
  --panel-strong: #bfe4fb;
  --ink: #073866;
  --muted: #496b86;
  --line: #3e91d3;
  --gold: #ffbd38;
  --orange: #ff7a31;
  --white: #ffffff;
  --shadow-hard: rgba(0, 29, 91, .28);
  --shadow-soft: rgba(0, 69, 120, .22);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, .82), transparent 34rem),
    linear-gradient(180deg, #e9fbff 0, #d7f4ff 42%, #eefaff 100%);
}

body.is-area-community:not(.is-admin) {
  /* Basis-Variablen */
  --ink: #f4f7fb;
  --muted: #b4c8d8;
  --line: #e8621a;
  --panel: rgba(255, 255, 255, .04);
  --panel-strong: rgba(255, 255, 255, .07);
  --shadow-hard: rgba(0, 0, 0, .5);
  --shadow-soft: rgba(0, 0, 0, .36);
  /* Community-Farben */
  --c-orange: #f07030;
  --c-orange-dim: rgba(240, 98, 26, .25);
  --c-orange-glow: rgba(240, 98, 26, .45);
  --c-blue: #74b8e8;
  --c-blue-dim: rgba(74, 184, 240, .25);
  --c-blue-glow: rgba(74, 184, 240, .4);
  --c-glass: rgba(255, 255, 255, .07);
  --c-glass-border: rgba(255, 255, 255, .1);
  color: var(--ink);
  background: #000000;
}


/* â”€â”€ Community Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.community-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0 24px 72px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  box-sizing: border-box;
  background: url("assets/0004.png") center center / cover no-repeat #0a0a0a;
}

.community-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.1) 60%, transparent 80%);
  z-index: 1;
}


.community-hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

.community-hero-copy .eyebrow {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #74d4f8;
  background: rgba(74, 184, 240, .1);
  border: 1px solid rgba(74, 184, 240, .32);
  padding: 5px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 22px;
}

.community-hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .9);
  margin: 0 0 16px;
  line-height: 1.1;
}

.community-hero-copy > p {
  font-size: 1rem;
  color: rgba(180, 210, 230, .75);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.community-hero-copy .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* â”€â”€ Community Quick-Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.community-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.community-quick-grid .quick-card {
  background: var(--c-glass);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--c-glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 16px 40px rgba(0, 0, 0, .4);
  color: #e8eef4;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}

.community-quick-grid .quick-card:hover {
  border-color: rgba(240, 98, 26, .65);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(240, 98, 26, .18);
}

.community-quick-grid .quick-card strong {
  color: var(--c-blue);
  text-shadow: 0 0 18px rgba(74, 184, 240, .35);
}

.community-quick-grid .quick-card span {
  color: rgba(180, 210, 230, .7);
}

/* â”€â”€ Community Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.community-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-cards .card {
  background: transparent;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.community-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(240, 98, 26, .4);
}

.community-cards .card > img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.community-cards .card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--c-glass);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--c-glass-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 1px 0 var(--c-glass-border) inset;
}

.community-cards .card > div > p {
  flex: 1;
  color: rgba(180, 200, 216, .7);
  font-size: .9rem;
  margin: 6px 0 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-cards .card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.community-cards .card h3 a {
  color: #f0f4f8;
  text-decoration: none;
}

.community-cards .card h3 a:hover {
  color: var(--c-orange);
}

@media (max-width: 900px) {
  .community-hero {
    min-height: 60vh;
    padding: 0 16px 48px;
  }

  .community-hero-copy .actions {
    justify-content: center;
  }

  .community-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .community-quick-grid,
  .community-cards {
    grid-template-columns: 1fr;
  }
}

.site-error {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: #e5f7ff;
}

.site-error .panel {
  max-width: 680px;
}

body.has-page-hero::before {
  content: "";
  position: absolute;
  inset: 48px 0 auto;
  height: 260px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(229, 251, 255, .32), rgba(215, 244, 255, .82) 55%, #d7f4ff 100%),
    url("assets/hero-town.png") center 42% / cover no-repeat;
}

body.is-admin.has-page-hero::before {
  background:
    linear-gradient(180deg, rgba(10, 9, 8, .22), rgba(16, 13, 11, .7) 44%, #11100f 100%),
    url("assets/backend-gear.png") center 48% / cover no-repeat;
}

body.is-profile-backend.has-page-hero::before {
  background:
    linear-gradient(180deg, rgba(10, 9, 8, .22), rgba(16, 13, 11, .7) 44%, #11100f 100%),
    url("assets/backend-gear.png") center 48% / cover no-repeat;
}

body.is-admin,
body.is-profile-backend {
  --ink: #2f1809;
  --muted: #6b4b34;
  --line: #c45a12;
  --shadow-hard: rgba(0, 0, 0, .46);
  --shadow-soft: rgba(0, 0, 0, .36);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 159, 69, .2), transparent 33rem),
    linear-gradient(180deg, #171412 0, #0f0e0d 46%, #18110d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  z-index: 1;
  width: min(1190px, 100% - 24px);
  margin: 0 auto;
}

body.has-page-hero main {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 92px;
}

body.is-area-ragnarok.has-page-hero main {
  display: block;
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

/* Forum-Category: overflow zurück auf hidden, negative margins werden weiter unten auf 0 gesetzt */
body.is-area-ragnarok .forum-category {
  overflow: hidden;
}

.page-menu {
  grid-column: 1;
  position: static;
  width: 100%;
  margin-top: var(--page-menu-offset, 0);
}

body.is-admin .page-menu {
  position: sticky;
  top: 58px;
  max-height: calc(100vh - 76px);
  overflow: auto;
}

.page-content {
  grid-column: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border-bottom: 2px solid rgba(62, 145, 211, .32);
  box-shadow: 0 4px 14px var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 900;
  color: #004f99;
  text-shadow: 0 1px 0 #fff;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .3);
}

.nav-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ab8f0, #2a6099);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-profile-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  position: relative;
}

.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 2px solid #fff;
  border-radius: 5px;
  color: #642b00;
  font-weight: 900;
  background: linear-gradient(180deg, #ffd870, #ff8a35);
  box-shadow: 0 3px 0 var(--shadow-hard);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.nav a:hover {
  background: linear-gradient(180deg, #ffe394, #ff9c45);
}

.flash {
  position: fixed;
  top: 54px;
  left: 50%;
  z-index: 40;
  width: min(760px, calc(100% - 28px));
  margin: 0;
  padding: 12px 18px;
  border: 1px solid rgba(240, 112, 48, .55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 22, 35, .96), rgba(20, 35, 53, .94));
  backdrop-filter: blur(14px) saturate(1.4);
  color: #f4f7fb;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: translateX(-50%);
  animation: flashToast 10s ease forwards;
}

@keyframes flashToast {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  6%,
  84% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 calc(50% - 50vw);
  padding: 70px max(28px, calc((100vw - 1190px) / 2)) 110px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(229, 251, 255, .25), rgba(229, 251, 255, .55) 62%, rgba(215, 244, 255, .84)),
    url("assets/hero-town.png") center bottom / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(215, 244, 255, .65) 52%, rgba(215, 244, 255, .88) 100%);
  pointer-events: none;
}

.quest-board {
  position: relative;
  z-index: 2;
  align-self: center;
  border: 4px solid #083d91;
  border-radius: 8px;
  background: #eef8ff;
  box-shadow: 0 8px 0 var(--shadow-hard), 0 18px 38px var(--shadow-soft);
  overflow: hidden;
}

.quest-board.page-menu {
  align-self: start;
  overflow: visible;
}

.quest-board h2 {
  margin: 0;
  padding: 13px 14px;
  color: #fff;
  background: linear-gradient(180deg, #087dd8, #004bb1);
  font-size: 1.05rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.quest-board a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding: 13px 12px;
  border: 1px solid #b6c9dd;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #dce8f4);
  color: #234d9d;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.quest-board a span {
  min-width: 0;
}

.quest-board a b {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #b6c9dd;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, #dce8f4);
  color: #234d9d;
  font-size: .78rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.quest-board a:hover b,
.quest-board a:focus-visible b {
  border-color: #073d94;
  background: linear-gradient(180deg, #dff3ff, #b9d9f0);
  color: #004f99;
  transform: translateY(-1px);
}

.quest-board .menu-subtitle {
  margin-top: 14px;
  border-top: 1px solid rgba(16, 75, 143, .22);
}

.quest-board a.is-disabled-menu-item {
  opacity: .72;
  border-style: dashed;
}

.quest-board a.is-disabled-menu-item b {
  border-style: dashed;
  background: linear-gradient(180deg, #f7fbff, #e8f1fa);
  color: #5577ad;
}

.quest-board a.active-menu {
  border-color: #073d94;
  background: linear-gradient(180deg, #dff3ff, #b9d9f0);
  color: #004f99;
}

body.is-admin .quest-board.page-menu {
  border-color: #f05b24;
  background: #ffffff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .48), 0 18px 38px rgba(0, 0, 0, .36);
  overflow: visible;
}

body.is-admin .quest-board.page-menu h2 {
  color: #fff8ef;
  background: linear-gradient(180deg, #d86422, #9b3710);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .46);
}

body.is-admin .quest-board.page-menu a {
  border-color: #d86422;
  background: linear-gradient(180deg, #fff8ef, #ead0b7);
  color: #4c2108;
}

body.is-admin .quest-board.page-menu a b,
body.is-profile-backend .quest-board.page-menu a b {
  border-color: #d86422;
  background: linear-gradient(180deg, #fff8ef, #ead0b7);
  color: #4c2108;
}

body.is-admin .quest-board.page-menu a:hover b,
body.is-admin .quest-board.page-menu a:focus-visible b,
body.is-profile-backend .quest-board.page-menu a:hover b,
body.is-profile-backend .quest-board.page-menu a:focus-visible b {
  border-color: #ffffff;
  background: linear-gradient(180deg, #ffd276, #f07a2a);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .34), 0 0 0 3px rgba(255, 180, 92, .22);
}

body.is-admin .quest-board.page-menu a.active-menu {
  border-color: #fff;
  background: linear-gradient(180deg, #ffd276, #f07a2a);
  color: #4c2108;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  justify-self: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 28px;
  color: #fff;
  background: linear-gradient(180deg, #2194db, #0767bf);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 6px 0 0 #6ed7ff, -6px 0 0 #6ed7ff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.hero h1 {
  margin: 0;
  color: #0062c9;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 4px 0 #fff,
    0 -4px 0 #fff,
    4px 0 0 #fff,
    -4px 0 0 #fff,
    0 9px 0 #74d9ff,
    0 18px 28px rgba(0, 57, 139, .28);
}

.hero p {
  max-width: 680px;
  margin: 28px auto;
  color: #113c63;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.55;
  text-shadow: 0 1px 0 #fff;
}

.actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.hero .actions {
  justify-content: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #ffd870, #ff8a35);
  color: #642b00;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shadow-hard), 0 0 0 1px rgba(0, 69, 120, .16);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.pixel-button {
  border-color: #fff;
  background: linear-gradient(180deg, #ffd870, #ff8a35);
  color: #642b00;
  box-shadow: 0 4px 0 var(--shadow-hard), 0 0 0 1px rgba(0, 69, 120, .16);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.hero-badges {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 18px;
}

.round-home,
.download-badge {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .38);
  box-shadow: 0 8px 0 var(--shadow-hard);
}

.round-home {
  width: 62px;
  height: 62px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffcf47, #f05b24);
  font-size: 2rem;
}

.download-badge {
  min-width: 180px;
  min-height: 58px;
  border: 4px solid #073d94;
  border-radius: 28px;
  background: linear-gradient(180deg, #4ee1ff, #0363c5 64%, #004198);
}

.quick-grid,
.card-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-grid {
  position: relative;
  z-index: 3;
  margin-top: -78px;
  padding-bottom: 18px;
}

.quick-card,
.card,
.panel,
.story,
.post,
.table-row,
.map-stage,
.profile-head {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 0 var(--shadow-hard), 0 18px 35px var(--shadow-soft);
}

.quick-card {
  padding: 18px;
  color: #07417a;
  background: linear-gradient(180deg, #fff, #cbeeff);
}

.quick-card strong {
  display: block;
  color: #006fc8;
  font-size: 2.15rem;
  text-shadow: 0 2px 0 #fff;
}

.quick-card span,
small,
.page-title p {
  color: var(--muted);
}

.quick-card span small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
}

.completion-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 8px;
  border: 2px solid #0b6fba;
  border-radius: 5px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #e8f8ff, #8ccaf0);
  color: #004f99;
  font-weight: 900;
}

body.is-admin .site-header {
  border-bottom-color: rgba(196, 90, 18, .42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}

body.is-admin .brand {
  color: #4c2108;
}

.admin-top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.admin-top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #3a1a06;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .14s, color .14s;
}

.admin-top-nav a:hover {
  border-color: rgba(196, 90, 18, .28);
  background: rgba(196, 90, 18, .07);
  color: #8a2e05;
}

.admin-top-nav a.active {
  border-color: rgba(196, 90, 18, .55);
  background: linear-gradient(180deg, #c84a00, #7a2800);
  color: #fff0e8;
}

body.is-admin .page-title h1,
body.is-admin .section-head h2 {
  color: #ffb15f;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .46);
}

body.is-admin .page-title p {
  color: #f0d0b3;
}

body.is-admin .quick-card,
body.is-admin .card,
body.is-admin .panel,
body.is-admin .story,
body.is-admin .post,
body.is-admin .table-row,
body.is-admin .map-stage,
body.is-admin .profile-head {
  border-color: #c45a12;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .48), 0 18px 35px rgba(0, 0, 0, .34);
}

body.is-admin .panel,
body.is-admin .card,
body.is-admin .story,
body.is-admin .post,
body.is-admin .table-row,
body.is-admin .profile-head {
  background: #ffffff;
}

body.is-admin .panel h1,
body.is-admin .panel h2,
body.is-admin .card h3,
body.is-admin .story h2,
body.is-admin .detail-list dt,
body.is-admin .profile-public-facts dt,
body.is-admin .forum-author-facts dt,
body.is-admin .admin-row strong,
body.is-admin .table-row strong,
body.is-admin .linked-list a,
body.is-admin .card h3 a,
body.is-admin .detail-list a {
  color: #a43b0f;
}

body.is-admin .admin-dashboard .quick-card {
  border-color: #f05b24;
  background: linear-gradient(180deg, #fff8ef, #ecd0b6);
  color: #4c2108;
}

body.is-admin .admin-dashboard .quick-card strong {
  color: #d94c16;
}

body.is-admin .admin-dashboard .quick-card span {
  color: #5d3217;
}

body.is-admin input,
body.is-admin textarea,
body.is-admin select,
body.is-admin .rich-editor {
  border-color: #d86422;
  background: #fffaf3;
}

body.is-admin input:focus,
body.is-admin textarea:focus,
body.is-admin select:focus,
body.is-admin .rich-editor:focus-within {
  border-color: #168bd3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 139, 211, .24);
}

body.is-admin input[type="radio"],
body.is-admin input[type="checkbox"] {
  accent-color: #c45a12;
}

body.is-admin .rich-editor-toolbar {
  border-bottom-color: rgba(196, 90, 18, .34);
  background: #f3dcc6;
}

body.is-admin .rich-editor-toolbar button,
body.is-admin .category-choice label {
  border-color: #d86422;
  background: linear-gradient(180deg, #fff8ef, #ead0b7);
  color: #4c2108;
}

body.is-admin .admin-row,
body.is-admin .suggestion-row,
body.is-admin .detail-list div,
body.is-admin .forum-row {
  border-color: rgba(196, 90, 18, .26);
}

body.is-admin .empty-state.inline,
body.is-admin .forum-row {
  background: rgba(255, 248, 239, .68);
}

.section-head,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 16px;
}

.team-section-head {
  margin-top: 56px;
}

.team-role-heading {
  margin: 24px 0 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
}

body.is-area-community .team-role-heading {
  color: #74b8e8;
  opacity: 1;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  width: 130px;
  flex-shrink: 0;
}

.team-card:hover {
  transform: translateY(-3px);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.team-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}

.team-name {
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
}

.team-role {
  font-size: .78rem;
  text-align: center;
  opacity: .75;
}

body.is-area-community .team-card {
  background: #0e1c2e;
  border: 1px solid rgba(74, 140, 210, .2);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 4px 16px rgba(0,0,0,.4);
  color: #c8d8f0;
}
body.is-area-community .team-card:hover {
  border-color: rgba(240, 98, 26, .65);
  box-shadow: 0 8px 24px rgba(240, 98, 26, .15);
}
body.is-area-community .team-avatar-placeholder {
  background: #dce8f5;
  color: #004f99;
}

body.is-area-ragnarok .team-card {
  background: rgba(20,30,55,.7);
  border: 1px solid rgba(100,150,220,.2);
  color: #c8d8f0;
}
body.is-area-ragnarok .team-card:hover {
  box-shadow: 0 6px 20px rgba(60,100,200,.2);
}
body.is-area-ragnarok .team-avatar-placeholder {
  background: rgba(60,100,200,.25);
  color: #c8d8f0;
}

body.is-area-dune .team-card {
  background: rgba(40,28,10,.7);
  border: 1px solid rgba(210,160,50,.2);
  color: #f0d890;
}
body.is-area-dune .team-card:hover {
  box-shadow: 0 6px 20px rgba(210,160,50,.15);
}
body.is-area-dune .team-avatar-placeholder {
  background: rgba(210,160,50,.2);
  color: #f0d890;
}

.page-title {
  display: block;
  min-height: 0;
  padding: 0;
  margin-bottom: 18px;
}

.page-title h1,
.section-head h2 {
  margin: 0;
  color: #004f99;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  text-shadow: 0 2px 0 #fff;
}

.section-head a {
  color: #0068b9;
  font-weight: 900;
}

.card,
.story {
  overflow: hidden;
}

.card img,
.story img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #000000;
}

.card div,
.story div,
.panel,
.post,
.profile-head {
  padding: 18px;
}

.card h3,
.story h2,
.panel h1,
.panel h2 {
  color: #004f99;
}

.item-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.item-texture {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #ffffff;
  border: 1px solid rgba(62, 145, 211, .28);
  border-radius: 4px;
}

.page-title .item-texture {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

.item-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  margin: 10px 0 14px;
  background: #ffffff;
  border: 1px solid rgba(62, 145, 211, .28);
  border-radius: 6px;
}

.item-detail .item-art {
  border: 0;
}

.edit-image-preview {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 10px;
  border: 1px solid rgba(196, 90, 18, .28);
  border-radius: 6px;
  background: #fffaf3;
}

.edit-image-preview img {
  display: block;
  width: min(220px, 100%);
  max-height: 180px;
  object-fit: contain;
  image-rendering: auto;
}

.edit-image-preview.small img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.card p,
.story p,
.post p,
.profile-head p {
  color: var(--muted);
  line-height: 1.6;
}

.detail-list {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(150px, max-content) minmax(0, 1fr);
  gap: 18px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(62, 145, 211, .2);
}

.detail-list dt {
  color: #004f99;
  font-weight: 900;
  overflow-wrap: normal;
}

.detail-list dd {
  margin: 0;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-list a,
.card h3 a,
.linked-list a {
  color: #005ca8;
  font-weight: 900;
}

.card-actions,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.card-actions .button,
.share-row .button {
  min-height: 36px;
  padding: 8px 14px;
}

.entity-detail {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 20px;
}

.entity-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(62, 145, 211, .28);
}

.entity-detail > div:only-child {
  grid-column: 1 / -1;
}

.linked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.linked-list a {
  border: 1px solid rgba(62, 145, 211, .35);
  border-radius: 5px;
  background: #ffffff;
  padding: 8px 12px;
}

.card small {
  display: block;
  margin-top: 7px;
}

.database {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list-database {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 6px 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 0 var(--shadow-hard), 0 18px 35px var(--shadow-soft);
}

.list-database .card {
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border-bottom: 1px solid rgba(62, 145, 211, .24);
}

.list-database .card:last-child {
  border-bottom: 0;
}

.list-database .card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.list-database .list-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  min-width: 0;
}

.list-database .item-texture,
.list-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.list-database .item-texture {
  background: #dff7ff;
  border: 1px solid #c45a12;
  border-radius: 4px;
}

.list-icon {
  background: #ffffff;
  border: 0;
  border-radius: 4px;
}

.list-icon.empty {
  background: rgba(62, 145, 211, .12);
}

.list-id {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.list-database .item-art,
.list-database .detail-list,
.list-database .card p,
.list-database .card > div > small {
  display: none;
}

.list-database .card-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.story-list,
.posts,
.table-list,
.link-group h2 {
  margin: 0 0 12px;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}

.link-card:hover {
  border-color: var(--accent);
  background: var(--hover);
}

.link-title {
  font-weight: 600;
  font-size: .9rem;
}

.link-desc {
  font-size: .82rem;
  opacity: .8;
}

.link-url {
  font-size: .75rem;
  opacity: .5;
  margin-top: 2px;
}

.forum-search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
}

.forum-search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
}

.forum-search-results .forum-row {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.forum-search-results .forum-row:hover strong {
  text-decoration: underline;
}

.forum-directory {
  display: grid;
  gap: 12px;
}

.forum-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.forum-box p {
  color: var(--muted);
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-tile {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #004f99;
  text-align: left;
  box-shadow: 0 6px 0 var(--shadow-hard), 0 18px 35px var(--shadow-soft);
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
}

.gallery-tile span {
  font-weight: 900;
}

.gallery-tile small {
  color: var(--muted);
  font-weight: 800;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.filter-tabs .active {
  color: #ffffff;
  background: linear-gradient(180deg, #087dd8, #004bb1);
  border-color: #073d94;
  pointer-events: none;
}

.gallery-tile > button {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #004f99;
  text-align: left;
  box-shadow: none;
  text-shadow: none;
}

.card-image-button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.card-image-button img {
  display: block;
}

.entity-image-button {
  align-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.guestbook-form,
.guestbook-list {
  display: grid;
  gap: 16px;
}

.guestbook-form {
  margin-bottom: 18px;
}

.guestbook-entry {
  display: grid;
  gap: 10px;
}

.guestbook-entry header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(62, 145, 211, .22);
}

.guestbook-entry p {
  margin: 0;
  line-height: 1.6;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(4, 27, 64, .74);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 72vh;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 0 var(--shadow-hard), 0 20px 48px rgba(0, 0, 0, .3);
}

.lightbox h2,
.lightbox p {
  width: min(100%, 1100px);
  margin: 10px 0 0;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

body.modal-open {
  overflow: hidden;
}

.item-rain-layer {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  height: 34vh;
  overflow: hidden;
  pointer-events: none;
}

.poporing-mascot {
  position: absolute;
  right: -18px;
  bottom: 58px;
  z-index: 4;
  width: clamp(92px, 11vw, 156px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 5px 0 rgba(0, 52, 112, .18)) drop-shadow(0 14px 22px rgba(0, 0, 0, .22));
}

.familiar-mascot,
.menu-familiar-mascot {
  z-index: 5;
  width: clamp(76px, 7vw, 108px);
  height: auto;
  pointer-events: none;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 0 rgba(0, 52, 112, .16)) drop-shadow(0 14px 20px rgba(0, 0, 0, .2));
}

.familiar-mascot {
  position: fixed;
  left: calc(max(12px, (100vw - 1190px) / 2) - 46px);
  top: 66px;
}

.menu-familiar-mascot {
  position: absolute;
  left: -44px;
  top: -42px;
}

.discord-page {
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.discord-widget {
  width: 100%;
  display: block;
}

.discord-widget iframe {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 650px;
  border: 0;
  border-radius: 5px;
}

.item-rain-layer img {
  position: absolute;
  top: -32px;
  left: calc(var(--rain-left, 50) * 1%);
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: auto;
  opacity: .86;
  filter: drop-shadow(0 2px 2px rgba(0, 45, 95, .24));
  animation: item-rain-fall var(--rain-duration, 6s) linear forwards;
  animation-delay: var(--rain-delay, 0s);
}

.item-rain-layer img:nth-child(2n) {
  width: 20px;
  height: 20px;
  opacity: .74;
}

.item-rain-layer img:nth-child(3n) {
  width: 18px;
  height: 18px;
  animation-duration: 6.8s;
}

@keyframes item-rain-fall {
  0% {
    transform: translate3d(0, -34px, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(calc(var(--rain-drift, 0) * 1px), 38vh, 0) rotate(260deg);
    opacity: 0;
  }
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 27, 64, .62);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal-box {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(240, 112, 48, .45);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 16, 28, .97), rgba(18, 30, 48, .96));
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, 0 24px 58px rgba(0, 0, 0, .6);
}

.confirm-modal-box h2 {
  margin: 0 0 8px;
  color: #f07030;
}

.confirm-modal-box p {
  margin: 0;
  color: #b4c8d8;
  line-height: 1.55;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

body.is-admin .confirm-modal {
  background: rgba(10, 9, 8, .72);
}

body.is-admin .confirm-modal-box {
  border-color: #c45a12;
}

body.is-admin .confirm-modal-box h2 {
  color: #a43b0f;
}

.story {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.auth-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.panel.compact {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-box {
  display: grid;
  gap: 10px;
  border: 2px solid #f07a24;
  border-radius: 6px;
  padding: 12px;
  background: #fff5e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.captcha-box strong {
  color: #9b3108;
  font-size: 1rem;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 2px solid #6cb1de;
  border-radius: 6px;
  padding: 11px 12px;
  background: #f7fdff;
  color: var(--ink);
  font: inherit;
}

input[type="file"] {
  min-height: 48px;
  padding: 5px 8px;
  background: #f7fdff;
  color: var(--muted);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  min-height: 36px;
  margin: 0 12px 0 0;
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 7px 16px;
  background: linear-gradient(180deg, #ffd870, #ff8a35);
  color: #642b00;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--shadow-hard), 0 0 0 1px rgba(0, 69, 120, .16);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(180deg, #ffe69a, #ff9a42);
}

.form-row > input,
.form-row > select,
.form-row > label,
.field-wrap {
  flex: 1 1 240px;
}

.field-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
}

.field-caption {
  display: block;
  color: #9d3600;
  font-size: .88rem;
  line-height: 1.25;
}

.field-wrap > input,
.field-wrap > textarea,
.field-wrap > select {
  font-weight: 500;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-items-form input::selection,
.admin-items-form textarea::selection,
.admin-items-search input::selection {
  color: #ffffff;
  background: #c45a12;
}

.admin-items-form input:focus,
.admin-items-form textarea:focus,
.admin-items-form select:focus,
.admin-items-search input:focus {
  border-color: #c45a12;
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 90, 18, .18);
}

.admin-items-form input[type="radio"],
.admin-items-form input[type="checkbox"] {
  accent-color: #c45a12;
}

.admin-items-form select option:checked {
  color: #ffffff;
  background: #c45a12;
}

.rich-editor {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 2px solid #6cb1de;
  border-radius: 6px;
  background: #f7fdff;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid rgba(62, 145, 211, .32);
  background: #e6f6ff;
}

.rich-editor-toolbar button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid #6cb1de;
  border-radius: 4px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.rich-editor-surface {
  min-height: 220px;
  padding: 12px;
  line-height: 1.6;
  outline: none;
}

.rich-editor-surface h2,
.rich-editor-surface h3,
.legal-page h3 {
  margin: 12px 0 4px;
}

.rich-editor-surface p,
.rich-editor-surface ul,
.rich-editor-surface ol,
.rich-editor-surface blockquote {
  margin: 0 0 10px;
}

.date-input {
  color-scheme: light;
}

.date-input::-webkit-calendar-picker-indicator {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  padding: 4px;
  background-color: #ffd870;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--shadow-hard);
}

.searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-searchbar {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 0 var(--shadow-hard), 0 18px 35px var(--shadow-soft);
}

.filter-search-row,
.filter-lower-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.filter-search-input {
  min-height: 42px;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.filter-selects label {
  min-width: 140px;
  gap: 4px;
}

.filter-selects span {
  color: #004f99;
  font-size: .86rem;
  font-weight: 900;
}

.filter-selects select {
  min-height: 42px;
  padding-block: 8px;
}

.filter-selects select:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: end;
}

.filter-actions:empty {
  display: none;
}

.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.table-row span {
  display: grid;
  gap: 3px;
}

.forum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(62, 145, 211, .28);
  border-radius: 6px;
  background: rgba(255, 255, 255, .62);
}

.forum-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.forum-row small {
  overflow-wrap: anywhere;
}

.forum-board-list {
  gap: 14px;
}

.forum-category.child-category {
  margin-left: 24px;
}

.board-row b,
.forum-thread-row b {
  display: grid;
  min-width: 76px;
  text-align: right;
  color: var(--accent);
}

.board-row b small,
.forum-thread-row b small {
  color: var(--muted);
  font-size: 0.75rem;
}

.forum-thread-row em {
  color: #a22d00;
  font-style: normal;
}

.forum-moderation-actions .card-actions,
.forum-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.forum-moderation-actions {
  margin-bottom: 18px;
}

.forum-post-actions details {
  width: 100%;
}

.forum-attachments {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(62, 145, 211, 0.22);
}

.forum-attachments a {
  width: fit-content;
}

.bbcode-code {
  overflow: auto;
  padding: 12px;
  border-radius: 6px;
  background: #1f252b;
  color: #f7fdff;
}

.bbcode-image {
  max-width: 100%;
  border-radius: 6px;
}

.bbcode-spoiler {
  border: 1px solid rgba(240, 122, 36, 0.45);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff8ef;
}

.bbcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 -4px;
  padding: 8px;
  border: 1px solid #8ab8df;
  border-radius: 4px;
  background: linear-gradient(#d7eafd, #b8d8f3);
}

.bbcode-toolbar button {
  min-height: 30px;
  padding: 4px 9px;
  border-color: #ffffff;
  border-radius: 3px;
  font-size: .86rem;
  box-shadow: 0 2px 0 #7798b6;
}

/* Old-school forum skin: inspired by classic bulletin boards, but still using our layout. */
.forum-compose,
.forum-category,
.forum-thread-panel {
  margin-bottom: 18px;
  border: 1px solid #1b5da0;
  border-radius: 3px;
  background: #eef6fd;
  box-shadow: 0 2px 0 #8bb4d8;
  overflow: hidden;
}

.forum-compose h2,
.forum-category h2,
.forum-thread-panel h2 {
  margin: -24px -24px 14px;
  padding: 9px 13px;
  border-bottom: 1px solid #174d86;
  background: linear-gradient(#2b7bc2, #074f99);
  color: #fff;
  font-size: 1rem;
  text-shadow: 0 1px 0 #00325f;
}

.forum-compose {
  gap: 8px;
}

.forum-compose input,
.forum-compose select,
.forum-compose textarea {
  border-color: #7ea8cf;
  border-radius: 2px;
  background: #fbfdff;
}

.forum-board-list {
  grid-template-columns: 1fr;
  gap: 18px;
}

.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.forum-category {
  padding-bottom: 0;
}

.forum-category > p {
  margin: 0 0 10px;
  color: #173f68;
}

.forum-subcategory-list {
  display: grid;
  margin: 0 -24px;
}

.forum-subcategory-row strong::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 12px;
  margin-right: 8px;
  border: 1px solid #2e6fa8;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(#ffeaa0, #eeb241);
  box-shadow: inset 4px -7px 0 rgba(255, 255, 255, .34);
}

.forum-category.child-category {
  margin-left: 0;
}

.forum-compose {
  margin-bottom: 18px;
}

.forum-category {
  overflow: hidden;
}

.forum-category-head,
.board-row,
.forum-thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 82px minmax(170px, .72fr);
  align-items: stretch;
  column-gap: 0;
}

.forum-category-head {
  margin: 0 -24px;
  border-top: 1px solid #9dc5e7;
  border-bottom: 1px solid #8ab8df;
  background: linear-gradient(#d7eafd, #b8d8f3);
  color: #104b82;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.forum-category-head span,
.forum-category-head b {
  padding: 7px 12px;
}

.forum-category-head b {
  border-left: 1px solid #8ab8df;
  text-align: center;
}

.forum-row.board-row,
.forum-thread-row {
  margin: 0 -24px;
  padding: 0;
  gap: 0;
  border: 0;
  border-bottom: 1px solid #bdd7ee;
  border-radius: 0;
  background: linear-gradient(90deg, #f8fcff, #e7f2fb);
}

.thread-list {
  gap: 18px;
  margin-bottom: 18px;
}

.thread-list + form.panel,
.thread-list + section.panel {
  margin-top: 18px;
}

.forum-thread-panel .forum-thread-row {
  grid-template-columns: minmax(0, 1fr) 86px minmax(160px, .45fr);
}

.forum-row.board-row:hover,
.forum-thread-row:hover {
  background: linear-gradient(90deg, #fff, #dcecf8);
}

.forum-row.board-row span,
.forum-thread-row span {
  padding: 12px 14px;
}

.forum-row.board-row.forum-subcategory-row > span:first-child {
  padding-left: 14px;
}

.forum-row.board-row.forum-subcategory-row strong {
  display: inline-flex;
  align-items: center;
}

.forum-last-post {
  display: grid;
  align-content: center;
  gap: 4px;
  border-left: 1px solid #bdd7ee;
  color: #104b82;
  font-size: .88rem;
  line-height: 1.25;
}

.forum-last-post a {
  font-weight: 900;
}

.forum-last-post small {
  color: #315f86;
  font-size: .78rem;
}

.forum-row.board-row strong::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 1px solid #2e6fa8;
  border-radius: 2px;
  background: linear-gradient(#fff9b6, #f3a93b);
  vertical-align: -2px;
}

.forum-row.board-row.forum-subcategory-row strong::before {
  flex: 0 0 15px;
  width: 15px;
  height: 12px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(#ffeaa0, #eeb241);
  box-shadow: inset 4px -7px 0 rgba(255, 255, 255, .34);
}

.forum-row.board-row b,
.forum-thread-row b {
  justify-content: center;
  min-width: 0;
  padding: 12px 8px;
  border-left: 1px solid #bdd7ee;
  color: #063f7a;
  text-align: center;
}

.forum-row.board-row b small,
.forum-thread-row b small {
  display: block;
  margin-top: 2px;
  color: #406b91;
}

.forum-thread-panel .empty-state,
.forum-thread-panel .forum-thread-row:last-child,
.forum-category .board-row:last-child {
  border-bottom: 0;
}

.forum-admin-tree {
  gap: 10px;
}

.forum-tree-category {
    display: grid;
    gap: 8px;
    margin: 8px 0;
    padding-left: 16px;
    border-left: 3px solid #df762e;
}

.forum-tree-category.level-0 {
  padding-left: 0;
  border-left: 0;
}

.forum-tree-node,
.forum-tree-forum {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid #e7b37c;
    border-radius: 4px;
    background: #fff8ef;
}

.forum-tree-node {
    background: linear-gradient(90deg, #fff0d8, #ffe0b8);
    box-shadow: inset 0 1px 0 #fff9ef;
}

.forum-tree-forum {
    margin-left: 18px;
    border-color: #ecc8a5;
    background: #fffaf4;
}

.forum-tree-node strong,
.forum-tree-forum strong {
    color: #672b00;
}

.forum-tree-node small,
.forum-tree-forum small {
    color: #7b4b2b;
}

.forum-tree-node > span,
.forum-tree-forum > span {
  min-width: 0;
}

.forum-tree-node .admin-row-actions,
.forum-tree-forum .admin-row-actions {
  display: grid;
  justify-items: stretch;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.forum-tree-node .admin-row-actions .button,
.forum-tree-node .admin-row-actions form,
.forum-tree-node .admin-row-actions button,
.forum-tree-forum .admin-row-actions .button,
.forum-tree-forum .admin-row-actions form,
.forum-tree-forum .admin-row-actions button,
.profile-class-node .admin-row-actions .button,
.profile-class-node .admin-row-actions form,
.profile-class-node .admin-row-actions button {
  width: 100%;
}

.profile-class-tree {
  gap: 14px;
}

.profile-class-game {
  display: grid;
  gap: 8px;
}

.profile-class-game h3 {
  margin: 8px 0 2px;
  color: #9a330c;
}

.profile-class-node {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d9b999;
  border-radius: 4px;
  background: #fffaf4;
}

.profile-class-node.level-1 { margin-left: 18px; }
.profile-class-node.level-2 { margin-left: 36px; }
.profile-class-node.level-3 { margin-left: 54px; }
.profile-class-node.level-4 { margin-left: 72px; }
.profile-class-node.level-5 { margin-left: 90px; }
.profile-class-node.level-6,
.profile-class-node.level-7 { margin-left: 108px; }

.profile-class-node .admin-row-actions {
  display: grid;
  gap: 8px;
}

.event-registration-form {
  margin-top: 18px;
}

.event-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-status-actions .active {
  border-color: #073d94;
  background: linear-gradient(180deg, #087dd8, #004bb1);
  color: #ffffff;
  box-shadow: 0 4px 0 #00345f, 0 0 0 1px rgba(255, 255, 255, .75);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .28);
  pointer-events: none;
}

.event-participants {
  margin-top: 18px;
}

.event-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.event-status-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.event-status-column h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: #004f99;
}

.event-status-column h3 span {
  min-width: 32px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: .9rem;
  text-align: center;
}

.event-participant {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(62, 145, 211, .28);
  border-radius: 6px;
  background: rgba(255, 255, 255, .68);
}

.event-participant img,
.event-participant-empty {
  width: 42px;
  height: 42px;
}

.event-participant span:not(.avatar) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-participant strong,
.event-participant small {
  overflow-wrap: anywhere;
}

.post {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
}

.avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #e8f8ff, #8ccaf0);
  border: 2px solid #2384cc;
  border-radius: 8px;
  font-weight: 900;
}

.avatar {
  width: 54px;
  height: 54px;
}

.avatar img,
.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.profile-head {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 180px;
  margin-top: 42px;
}

.profile-head + .panel,
.profile-head + form.panel,
.page-content > .panel + .panel,
.page-content > .panel + form.panel,
.page-content > form.panel + .panel,
.page-content > form.panel + form.panel {
  margin-top: 18px;
}

.profile-nav-panel {
  margin-top: 18px;
}

.admin-section-nav {
  width: 100%;
  max-width: none;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  aspect-ratio: 1;
  color: #004f99;
  font-size: 4rem;
}

.pill {
  border: 2px solid #2384cc;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #0068b9;
  font-weight: 900;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  justify-content: flex-start;
}

.profile-tabs a,
.profile-tabs span {
  min-height: 42px;
}

.profile-tabs .active {
  color: #ffffff;
  background: linear-gradient(180deg, #087dd8, #004bb1);
  border-color: #073d94;
  pointer-events: none;
}

.profile-panel-list {
  width: 100%;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.profile-public-facts,
.forum-author-facts {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
}

.profile-public-facts div,
.forum-author-facts div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
}

.profile-public-facts dt,
.forum-author-facts dt {
  color: #004f99;
  font-weight: 900;
}

.profile-public-facts dd,
.forum-author-facts dd {
  margin: 0;
  color: var(--muted);
}

/* --- Profile head overhaul --- */
.profile-avatar.role-owner {
  border-color: #e6a817;
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(230, 168, 23, .28), 0 4px 14px rgba(0, 0, 0, .18);
}

.profile-avatar.role-staff {
  border-color: #4a7abf;
  border-width: 3px;
}

.profile-info {
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.profile-name-row h1 {
  margin: 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.7;
  white-space: nowrap;
}

.role-badge-owner {
  background: #e6a817;
  color: #3a2000;
}

.role-badge-staff {
  background: #2a5a9f;
  color: #fff;
}

.role-badge-user {
  background: var(--line);
  color: var(--muted);
}

.profile-tagline {
  color: var(--muted);
  font-size: .85rem;
  margin: 2px 0 10px;
}

.profile-stats {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  background: var(--line);
  border-radius: 6px;
  min-width: 60px;
}

.profile-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.profile-stat-value--sm {
  font-size: .78rem;
  line-height: 1.5;
}

.profile-stat-label {
  font-size: .68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
}

.inline-check input {
  width: auto;
}

.profile-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-gallery-edit {
  display: grid;
  gap: 8px;
}

.profile-gallery-edit textarea {
  min-height: 74px;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 2px solid #2384cc;
  border-radius: 5px;
  padding: 9px 12px;
  background: #f7fdff;
  color: var(--ink);
  font-weight: 800;
}

.account-danger {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(229, 77, 77, .35);
  padding-top: 14px;
}

.account-security,
.account-pending {
  display: grid;
  gap: 10px;
}

.account-danger h3,
.account-danger p,
.account-pending h3,
.account-pending p {
  margin: 0;
}

.message-row {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(62, 145, 211, .28);
}

.message-row span {
  display: grid;
  gap: 4px;
}

.message-row p {
  margin: 0;
}

.message-row form {
  margin: 0;
}

.avatar-cropper {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.avatar-cropper[hidden] {
  display: none;
}

.avatar-crop-stage {
  position: relative;
  width: min(100%, 320px);
  min-width: 280px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #2384cc;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .55) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 105, 190, .14) 25%, transparent 25%),
    #dff7ff;
  background-size: 28px 28px;
  cursor: grab;
}

.avatar-crop-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 999px rgba(0, 63, 126, .08);
  pointer-events: none;
}

.avatar-crop-stage.is-dragging {
  cursor: grabbing;
}

.avatar-crop-stage img {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 0 0;
}

.avatar-zoom {
  accent-color: #ff8a35;
}

.main-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 900;
}

.main-choice input {
  width: auto;
}

.map-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.map-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 6px;
  font-weight: 900;
}

.map-list a.active {
  background: #fff;
  color: #0057a8;
}

.map-stage {
  overflow: hidden;
}

.map-canvas {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .26) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 105, 190, .12) 25%, transparent 25%),
    #a7d9f5;
  background-size: cover, 48px 48px, 48px 48px;
}

.marker {
  position: absolute;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(180deg, #ffcf47, #f05b24);
  color: white;
  border: 4px solid white;
  box-shadow: 0 6px 0 var(--shadow-hard);
}

.map-info {
  padding: 18px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-attention-grid {
  margin-top: 6px;
  margin-bottom: 0;
}

.admin-overview-groups {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-overview-group .admin-dashboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.admin-welcome,
.admin-form {
  width: 100%;
  max-width: none;
}

.admin-section-nav + .admin-two-col,
.admin-section-nav + .panel {
  margin-top: 24px;
}

.admin-list {
  width: 100%;
  max-width: none;
  margin-top: 16px;
}

.admin-item-toolbar {
  width: 100%;
  max-width: none;
  margin-bottom: 16px;
}

.live-search {
  margin-bottom: 12px;
}

.is-filtered-out {
  display: none !important;
}

.thread-list {
  display: grid;
  gap: 16px;
}

.forum-post {
  grid-template-columns: 180px minmax(0, 1fr);
}

.post-author {
  display: grid;
  align-content: start;
  gap: 8px;
}

.post-author img,
.forum-avatar-empty {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid #2384cc;
  border-radius: 8px;
  background: linear-gradient(180deg, #e8f8ff, #8ccaf0);
}

.forum-avatar-empty {
  display: grid;
  place-items: center;
  color: #004f99;
  font-size: 2.4rem;
  font-weight: 900;
}

.post-author a {
  color: #005ca8;
}

.forum-author-facts {
  font-size: .9rem;
}

.forum-author-facts div {
  grid-template-columns: 88px 1fr;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
}

.pagination .button {
  min-width: 42px;
  text-align: center;
}

.pagination-gap {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  color: var(--muted);
  font-weight: 900;
}

.pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.pagination-jump-input {
  width: 72px;
  min-width: 0;
  text-align: center;
  padding: 0 6px;
  height: 42px;
  box-sizing: border-box;
}

.pagination .button.active {
  color: #ffffff;
  background: linear-gradient(180deg, #087dd8, #004bb1);
  border-color: #073d94;
  box-shadow: 0 4px 0 #00345f, 0 0 0 1px rgba(255, 255, 255, .75);
  pointer-events: none;
}

.button.active,
button.active,
.filter-tabs .active,
.profile-tabs .active {
  color: #ffffff;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(62, 145, 211, .28);
}

.suggestion-row {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(62, 145, 211, .28);
}

.suggestion-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.suggestion-compare textarea {
  min-height: 96px;
}

.admin-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-item-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  border: 1px solid rgba(196, 90, 18, .55);
  border-radius: 4px;
  background: #fff7ed;
}

.admin-item-icon.empty {
  border-style: dashed;
  background: rgba(196, 90, 18, .08);
}

.admin-row strong,
.admin-row small {
  overflow-wrap: anywhere;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-row-actions form {
  margin: 0;
}

.admin-database-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
}

.admin-database-row > span {
  min-width: 0;
}

.admin-database-row .admin-row-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: max-content;
}

.admin-database-row .admin-row-actions .button,
.admin-database-row .admin-row-actions button {
  min-width: 104px;
  padding-inline: 14px;
  white-space: nowrap;
}

.admin-database-row .admin-row-actions form:first-child .button,
.admin-database-row .admin-row-actions form:first-child button {
  min-width: 132px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.filter-bar select,
.filter-bar input {
  max-width: 280px;
}

.inline-details {
  margin-top: 6px;
}

.inline-details summary {
  color: #005aa3;
  cursor: pointer;
  font-weight: 900;
}

.helper-title-current {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid rgba(196, 90, 18, .34);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6e8, #edd2b9);
  color: #8f2e05;
  font-weight: 900;
}

.helper-title-next {
  display: inline-block;
  margin-left: 8px;
  color: #5d3a22;
}

.helper-title-details {
  max-width: 620px;
}

.helper-title-details summary {
  width: fit-content;
  margin-top: 8px;
  padding: 3px 0;
}

.helper-title-progress {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px 18px;
  border: 1px solid rgba(196, 90, 18, .24);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #fffaf4, #f1dfca);
  overflow: hidden;
}

.helper-title-progress span,
.helper-title-progress b {
  position: relative;
  z-index: 1;
  font-size: .9rem;
}

.helper-title-progress b {
  color: #a33a08;
}

.helper-title-progress i {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(196, 90, 18, .18);
}

.helper-title-progress i::before {
  content: "";
  display: block;
  width: var(--helper-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffbd5d, #e45016);
}

.mini-list {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(62, 145, 211, .28);
  border-radius: 4px;
  background: rgba(255, 255, 255, .72);
}

.helper-title-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 0;
  padding: 10px;
  border-color: rgba(196, 90, 18, .24);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: rgba(255, 252, 247, .86);
}

.helper-title-step {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid rgba(196, 90, 18, .2);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(244, 226, 205, .78));
}

.helper-title-step strong {
  color: #8f2e05;
  line-height: 1.2;
}

.helper-title-step small {
  color: #6b4a32;
}

.helper-title-step.current {
  border-color: rgba(228, 80, 22, .8);
  background: linear-gradient(180deg, #ffe1a3, #f47b2d);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}

.helper-title-step.current strong,
.helper-title-step.current small {
  color: #3b1704;
}

.helper-title-step.next {
  border-style: dashed;
  border-color: rgba(0, 90, 163, .48);
  background: linear-gradient(180deg, #f5fbff, #dceefa);
}

.helper-title-step.locked {
  opacity: .68;
}

.admin-menu-editor {
  display: grid;
  gap: 12px;
}

.admin-menu-scope-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-menu-scope-checks > .inline-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-menu-scope-label {
  font-size: .78em;
  font-weight: 700;
  opacity: .7;
  margin-bottom: 2px;
}

.admin-menu-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, .8fr) 90px 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(196, 90, 18, .26);
  background: rgba(255, 248, 239, .62);
}

.admin-menu-row small {
  grid-column: 1 / -1;
}

.admin-menu-row .inline-check {
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 90, 18, .42);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff8ef, #ead0b7);
  color: #4c2108;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.admin-menu-row .inline-check:hover,
.admin-menu-row .inline-check:focus-within {
  border-color: #ffffff;
  background: linear-gradient(180deg, #ffd276, #f07a2a);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .34), 0 0 0 3px rgba(255, 180, 92, .22);
  transform: translateY(-1px);
}

.guild-members-panel {
  max-width: 920px;
}

.guild-member-list {
  display: grid;
  gap: 12px;
}

.guild-member-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(62, 145, 211, .28);
  border-radius: 6px;
  background: rgba(255, 255, 255, .72);
}

.guild-member-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid #2384cc;
  border-radius: 8px;
  background: linear-gradient(180deg, #e8f8ff, #8ccaf0);
  color: #004f99;
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
}

.guild-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-member-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.guild-member-body h3,
.guild-member-body p {
  margin: 0;
}

.guild-member-body small {
  color: var(--muted);
  font-weight: 800;
}

.guild-member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.guild-member-actions form {
  margin: 0;
}

.request-row {
  align-items: flex-start;
}

.request-row.is-bug-report {
  border-left: 4px solid #e54d4d;
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(229, 77, 77, .12), rgba(255, 248, 239, .7));
}

.request-row.is-bug-report strong {
  color: #b51f1f;
}

.button.danger,
button.danger {
  border-color: #fff;
  background: linear-gradient(180deg, #ff8f8f, #e54d4d);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px 12px;
  width: min(100%, 560px);
}

.check-list label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 800;
}

.check-list input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  justify-self: start;
  flex: none;
}

.permission-groups {
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
}

.permission-group {
  border: 1px solid rgba(14, 91, 169, .2);
  border-radius: 6px;
  padding: 12px;
}

.permission-group legend {
  padding: 0 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

.category-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #b6c9dd;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff, #dce8f4);
  color: #234d9d;
  font-weight: 900;
}

.empty-state {
  padding: 18px;
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-state.inline {
  text-align: left;
  background: rgba(255, 255, 255, .55);
  border-radius: 6px;
}

.category-choice input {
  width: auto;
}

.admin-role-row {
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-permission-role-row {
  display: block;
  padding: 18px 0;
}

.admin-role-permissions-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.admin-role-permissions-form .permission-groups {
  grid-column: 2;
  width: 100%;
}

.admin-role-permissions-form .admin-row-actions {
  grid-column: 2;
  justify-content: flex-end;
}

.admin-delete-inline {
  display: none;
}

.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.admin-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-status-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 100, 34, .3);
  border-radius: 5px;
  background: #fff8ef;
  color: #4c2108;
  font-weight: 900;
}

.admin-status-list strong {
  color: #d94c16;
  font-size: 1.2rem;
}

.forum-role-matrix {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

.forum-role-head,
.forum-role-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) repeat(4, minmax(44px, 58px));
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.forum-role-head {
  color: #9d3600;
  font-size: .76rem;
}

.forum-role-head b,
.forum-role-row input {
  justify-self: center;
}

.forum-role-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  width: min(1190px, 100% - 24px);
  margin: 54px auto 0;
  padding: 24px 0 36px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  border-top: 2px solid rgba(62, 145, 211, .35);
}

.footer-notice {
  max-width: 560px;
  line-height: 1.45;
}

.footer-links {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 900;
}

.footer-links a {
  color: #0068b9;
}

body.is-area-community .site-footer,
body.is-area-dune .site-footer {
  color: #8aaccc;
  border-top-color: rgba(240, 112, 48, .22);
}

body.is-area-community .footer-links a,
body.is-area-dune .footer-links a {
  color: #74b8e8;
}

.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: min(560px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 0 var(--shadow-hard), 0 18px 44px rgba(0, 45, 95, .22);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
}

.cookie-notice nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-notice a {
  color: #0068b9;
  font-weight: 900;
}

.cookie-notice .button {
  min-width: 126px;
}

.info-page {
  max-width: 760px;
}

.legal-page {
  max-width: 920px;
}

.legal-page h2 {
  margin: 10px 0 0;
}

.legal-page p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.legal-page ul,
.legal-page ol,
.legal-page blockquote {
  line-height: 1.65;
  color: var(--muted);
}

.rich-content {
  line-height: 1.65;
  color: var(--muted);
}

.legal-page a {
  color: #0068b9;
  font-weight: 900;
}

body.is-admin .site-footer {
  border-top-color: rgba(196, 90, 18, .44);
}

body.is-admin .footer-links a,
body.is-admin .legal-page a,
body.is-admin .section-head a {
  color: #d86422;
}

body.is-admin .cookie-notice,
body.is-profile-backend .cookie-notice {
  border-color: #c45a12;
  background: rgba(255, 248, 239, .97);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .28);
}

body.is-admin .cookie-notice strong,
body.is-profile-backend .cookie-notice strong {
  color: #a43b0f;
}

body.is-admin .cookie-notice a,
body.is-profile-backend .cookie-notice a {
  color: #a43b0f;
}

body.is-admin .panel h1,
body.is-admin .panel h2,
body.is-admin .card h3,
body.is-admin .story h2,
body.is-admin .detail-list dt,
body.is-admin .profile-public-facts dt,
body.is-admin .forum-author-facts dt,
body.is-admin .admin-row strong,
body.is-admin .table-row strong,
body.is-admin .linked-list a,
body.is-admin .card h3 a,
body.is-admin .detail-list a,
body.is-admin .post-author a {
  color: #a43b0f;
}

body.is-admin .button,
body.is-admin button,
body.is-admin input[type="file"]::file-selector-button,
body.is-admin .profile-tabs .active {
  border-color: #fff;
  background: linear-gradient(180deg, #ffd276, #f07a2a);
  color: #4c2108;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

body.is-admin .button.primary,
body.is-admin button.primary {
  border-color: #fff;
  background: linear-gradient(180deg, #ffd276, #e65b1c);
}

body.is-admin .pagination .button.active {
  border-color: #ffffff;
  background: linear-gradient(180deg, #168bd3, #005199);
  color: #ffffff;
  box-shadow: 0 4px 0 #00345f, 0 0 0 1px rgba(255, 255, 255, .75);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .28);
}

body.is-admin .button:hover,
body.is-admin button:hover,
body.is-admin input[type="file"]::file-selector-button:hover {
  background: linear-gradient(180deg, #ffe09a, #ff8f38);
}

body.is-admin .button.danger,
body.is-admin button.danger {
  border-color: #fff;
  background: linear-gradient(180deg, #ff8f8f, #e54d4d);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

body.is-admin .download-badge,
body.is-admin .profile-avatar,
body.is-admin .avatar,
body.is-admin .post-author img,
body.is-admin .forum-avatar-empty,
body.is-admin .pill {
  border-color: #c45a12;
  background: linear-gradient(180deg, #fff8ef, #e4c2a4);
  color: #a43b0f;
}

body.is-admin .item-texture,
body.is-admin .item-art {
  border-color: rgba(196, 90, 18, .28);
}

body.is-admin input,
body.is-admin textarea,
body.is-admin select,
body.is-admin .rich-editor {
  border-color: #d86422;
  background: #fffaf3;
}

body.is-admin input:focus,
body.is-admin textarea:focus,
body.is-admin select:focus,
body.is-admin .rich-editor:focus-within {
  border-color: #168bd3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 139, 211, .24);
}

body.is-admin .rich-editor-toolbar {
  border-bottom-color: rgba(196, 90, 18, .34);
  background: #f3dcc6;
}

body.is-admin .rich-editor-toolbar button,
body.is-admin .category-choice label,
body.is-admin .check-list label {
  border-color: #d86422;
  background: linear-gradient(180deg, #fff8ef, #ead0b7);
  color: #4c2108;
}

body.is-admin .permission-group {
  border-color: rgba(216, 100, 34, .38);
  background: rgba(255, 248, 239, .58);
}

body.is-admin .permission-group legend {
  color: #a83d0b;
}

body.is-admin .admin-row,
body.is-admin .suggestion-row,
body.is-admin .detail-list div,
body.is-admin .forum-row,
body.is-admin .event-participant {
  border-color: rgba(196, 90, 18, .26);
}

body.is-profile-backend .site-footer {
  border-top-color: rgba(196, 90, 18, .44);
}

body.is-profile-backend .site-header {
  border-bottom-color: rgba(196, 90, 18, .42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}

body.is-profile-backend .brand {
  color: #4c2108;
}

body.is-profile-backend .nav a {
  border-color: #fff;
  background: linear-gradient(180deg, #ffd276, #f07a2a);
  color: #4c2108;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

body.is-profile-backend .footer-links a,
body.is-profile-backend .legal-page a,
body.is-profile-backend .section-head a,
body.is-profile-backend .panel h1,
body.is-profile-backend .panel h2,
body.is-profile-backend .detail-list dt,
body.is-profile-backend .profile-public-facts dt,
body.is-profile-backend .table-row strong,
body.is-profile-backend .detail-list a {
  color: #a43b0f;
}

body.is-profile-backend .quest-board.page-menu {
  border-color: #f05b24;
  background: #ffffff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .48), 0 18px 38px rgba(0, 0, 0, .36);
  overflow: visible;
}

body.is-profile-backend .quest-board.page-menu h2 {
  color: #fff8ef;
  background: linear-gradient(180deg, #d86422, #9b3710);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .46);
}

body.is-profile-backend .quest-board.page-menu a {
  border-color: #d86422;
  background: linear-gradient(180deg, #fff8ef, #ead0b7);
  color: #4c2108;
}

body.is-profile-backend .quest-board.page-menu a.active-menu {
  border-color: #fff;
  background: linear-gradient(180deg, #ffd276, #f07a2a);
  color: #4c2108;
}

body.is-profile-backend:not(.is-area-community):not(.is-area-dune) .panel,
body.is-profile-backend:not(.is-area-community):not(.is-area-dune) .profile-head,
body.is-profile-backend:not(.is-area-community):not(.is-area-dune) .table-row {
  border-color: #c45a12;
  background: #ffffff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .48), 0 18px 35px rgba(0, 0, 0, .34);
}


body.is-profile-backend .button,
body.is-profile-backend button,
body.is-profile-backend input[type="file"]::file-selector-button,
body.is-profile-backend .profile-tabs .active {
  border-color: #fff;
  background: linear-gradient(180deg, #ffd276, #f07a2a);
  color: #4c2108;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

body.is-profile-backend .button.primary,
body.is-profile-backend button.primary {
  border-color: #fff;
  background: linear-gradient(180deg, #ffd276, #e65b1c);
}

body.is-profile-backend .button:hover,
body.is-profile-backend button:hover,
body.is-profile-backend input[type="file"]::file-selector-button:hover {
  background: linear-gradient(180deg, #ffe09a, #ff8f38);
}

body.is-profile-backend .button.danger,
body.is-profile-backend button.danger {
  border-color: #fff;
  background: linear-gradient(180deg, #ff8f8f, #e54d4d);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

body.is-profile-backend .profile-avatar,
body.is-profile-backend .avatar,
body.is-profile-backend .pill {
  border-color: #c45a12;
  background: linear-gradient(180deg, #fff8ef, #e4c2a4);
  color: #a43b0f;
}

body.is-profile-backend input,
body.is-profile-backend textarea,
body.is-profile-backend select {
  border-color: #d86422;
  background: #fffaf3;
}

body.is-profile-backend input:focus,
body.is-profile-backend textarea:focus,
body.is-profile-backend select:focus {
  border-color: #a43b0f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 90, 18, .2);
}

body.is-profile-backend .detail-list div,
body.is-profile-backend .table-row {
  border-color: rgba(196, 90, 18, .26);
}

@media (max-width: 980px) {
  body.has-page-hero main,
  .hero,
  .story,
  .profile-head,
  .entity-detail,
  .map-layout,
  .forum-post,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .page-content,
  .page-menu {
    grid-column: 1;
  }

  .page-menu {
    position: static;
    margin-top: 18px;
  }

  .quest-board.page-menu {
    max-height: none;
    overflow: hidden;
  }

  .hero {
    padding-top: 34px;
  }

  .quest-board {
    order: 2;
    width: min(100%, 360px);
  }

  .hero-badges {
    display: none;
  }

  .quick-grid,
  .card-grid,
  .database,
  .forum-directory,
  .gallery-grid,
  .admin-dashboard,
  .admin-two-col,
  .check-list,
  .category-choice,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-group .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .suggestion-compare {
    grid-template-columns: 1fr;
  }

  .event-status-grid {
    grid-template-columns: 1fr;
  }

  .profile-head {
    align-items: start;
  }

  .detail-list div {
    grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .poporing-mascot,
  .familiar-mascot,
  .menu-familiar-mascot {
    display: none;
  }

  main {
    width: min(100% - 16px, 1190px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    max-width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding-inline: 8px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4.1rem);
  }

  .searchbar {
    flex-direction: column;
  }

  .filter-search-row,
  .filter-lower-row,
  .filter-selects {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: flex-start;
  }

  .list-database .card > div {
    grid-template-columns: 1fr;
  }

  .list-database .card-actions {
    justify-content: flex-start;
  }

  .admin-row,
  .admin-menu-row,
  .admin-role-row,
  .guild-member-card,
  .table-row,
  .forum-row {
    align-items: stretch;
    flex-direction: column;
  }

  .guild-member-card {
    grid-template-columns: 1fr;
  }

  .admin-row-actions,
  .card-actions,
  .guild-member-actions,
  .share-row {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-row-actions .button,
  .admin-row-actions button,
  .card-actions .button,
  .guild-member-actions .button,
  .guild-member-actions button,
  .share-row .button,
  .share-row button {
    flex: 1 1 160px;
  }

  .admin-database-row {
    display: flex;
  }

  .admin-database-row .admin-row-actions {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-database-row .admin-row-actions .button,
  .admin-database-row .admin-row-actions button,
  .admin-database-row .admin-row-actions form:first-child .button,
  .admin-database-row .admin-row-actions form:first-child button {
    min-width: 0;
  }

  .admin-form,
  .admin-list,
  .panel,
  .compact {
    max-width: 100%;
  }

  .admin-menu-row {
    grid-template-columns: 1fr;
  }

  .admin-role-permissions-form {
    grid-template-columns: 1fr;
  }

  .admin-role-permissions-form .permission-groups,
  .admin-role-permissions-form .admin-row-actions {
    grid-column: 1;
  }

  input,
  select,
  textarea,
  button,
  .button {
    max-width: 100%;
  }

  .map-canvas {
    min-height: 360px;
  }

  .site-footer {
    align-items: flex-start;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
  }

  .cookie-notice nav {
    justify-content: flex-start;
  }

  .cookie-notice .button {
    flex: 1 1 160px;
  }
}
/* Multigaming community area */
.nav a.area-tab {
  background: linear-gradient(#1a2537, #0f1828);
  color: #edf7ff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .42);
}

.nav a.area-tab.active {
  background: linear-gradient(var(--c-orange), #c84a00);
  color: #fff;
}

body.is-area-ragnarok .nav a.area-tab.active {
  background: linear-gradient(#ffd36b, #ff8f2f);
  color: #3c1700;
}



body.is-area-community .quick-card,
body.is-area-community .panel,
body.is-area-community .card,
body.is-area-community .story,
body.is-area-community .gallery-tile,
body.is-area-community .table-row {
  border-color: var(--c-glass-border);
  background: linear-gradient(135deg, rgba(14, 22, 35, .92), rgba(20, 35, 53, .88));
  backdrop-filter: blur(12px) saturate(1.3);
  color: #f4f7fb;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 12px 36px rgba(0, 0, 0, .38);
}

body.is-area-community .card img,
body.is-area-community .story img {
  background: #000;
}

body.is-area-community .card small,
body.is-area-community .story small,
body.is-area-community .card p,
body.is-area-community .table-row span small {
  color: rgba(148, 180, 210, .75);
}

body.is-area-community .gallery-tile span {
  color: #ffffff;
}

body.is-area-community .gallery-tile small {
  color: rgba(148, 180, 210, .75);
}

.gallery-tile .card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.gallery-tile .card-actions .button,
.gallery-tile .card-actions a {
  flex: 1;
  justify-content: center;
}

body.is-area-community .section-head h2,
body.is-area-community .card h3,
body.is-area-community .panel h1,
body.is-area-community .panel h2 {
  color: #ffffff;
}

body.is-area-community .section-head {
  border-bottom-color: rgba(240, 98, 26, .35);
}

body.is-area-community .section-head a {
  color: var(--c-blue);
}

body.is-area-community .filter-tabs .button,
body.is-area-community .filter-tabs a {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .05);
  color: var(--c-blue);
  box-shadow: none;
  text-shadow: none;
}

body.is-area-community .filter-tabs .active {
  border-color: var(--c-orange);
  background: var(--c-orange-dim);
  color: #fff0e8;
}

body.is-area-community .card h3 a:hover {
  color: #ffffff;
}

body.is-area-community .quick-card strong {
  color: var(--c-blue);
  text-shadow: 0 0 18px rgba(74, 184, 240, .35);
}

body.is-area-community .quick-card span {
  color: rgba(180, 210, 230, .7);
}

body.is-area-community .quick-card:hover {
  border-color: rgba(240, 98, 26, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 28px rgba(240, 98, 26, .15);
}

body.is-area-community .footer-notice {
  font-size: 0;
}

body.is-area-community .footer-notice::before {
  content: "Multigaming-Community fuer Gilden, Projekte, Events und gemeinsames Spielen.";
  font-size: .76rem;
}


/* Multigaming refinements */

.top-mega-menu {
  position: relative;
}

.top-mega-menu summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(20, 119, 201, .18);
  border-radius: 6px;
  color: #06121e;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #eef5fb);
  box-shadow: 0 8px 20px rgba(3, 18, 34, .08);
}

.top-mega-menu summary::-webkit-details-marker { display: none; }

.top-mega-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.top-mega-menu > div {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 80;
  min-width: 220px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(7, 11, 18, .96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

.top-mega-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #f8fbff;
  font-weight: 850;
}

.top-mega-menu a:hover {
  background: var(--c-glass-border);
}

.top-inline-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-right: auto;
}

.top-inline-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  color: #0c1a28;
  font-weight: 900;
  background: rgba(255, 255, 255, .72);
}

.top-mega-menu {
  margin-right: auto;
}

.top-mega-menu > div {
  width: min(78vw, 860px);
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 18px;
}

.top-mega-menu section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.top-mega-menu h3 {
  margin: 0 0 4px;
  color: #f3d099;
  font-size: .9rem;
  text-transform: uppercase;
}

.admin-menu-label-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.admin-menu-label-grid fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 122, 49, .32);
  border-radius: 8px;
  background: rgba(255, 248, 240, .72);
}

.admin-menu-label-grid legend {
  padding: 0 8px;
  color: #9d3000;
  font-weight: 900;
}

.role-choice-list {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}


body.is-area-dune:not(.is-admin):not(.is-profile-backend) {
  --ink: #fff7e6;
  --muted: #d4b584;
  --line: #d98d3a;
  --panel: rgba(19, 15, 11, .78);
  --panel-strong: rgba(45, 30, 16, .92);
  --shadow-hard: rgba(0, 0, 0, .55);
  --shadow-soft: rgba(0, 0, 0, .42);
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 12%, rgba(255, 200, 104, .18), transparent 25rem),
    radial-gradient(circle at 18% 22%, rgba(30, 72, 140, .18), transparent 29rem),
    linear-gradient(145deg, #050404 0, #16100a 42%, #2d180b 78%, #0a0705 100%);
}

body.is-area-dune.has-page-hero::before {
  background:
    linear-gradient(180deg, rgba(4, 4, 4, .12), rgba(16, 11, 6, .72) 60%, #120d08 100%),
    radial-gradient(circle at 68% 28%, rgba(255, 183, 77, .34), transparent 20rem),
    linear-gradient(110deg, rgba(14, 94, 118, .2), transparent 38%);
}

body.is-area-dune .site-header {
  background: rgba(255, 250, 239, .94);
  border-bottom-color: rgba(205, 139, 65, .38);
}

body.is-area-dune .brand span {
  color: #004f99;
  text-shadow: 0 1px 0 #fff;
}

body.is-area-dune .top-mega-menu summary {
  border-color: rgba(194, 119, 35, .28);
  background: linear-gradient(180deg, #fff6df, #d89643);
  color: #221003;
}

body.is-area-dune .top-mega-menu > div {
  border-color: rgba(246, 191, 104, .22);
  background:
    linear-gradient(135deg, rgba(11, 9, 8, .98), rgba(41, 25, 12, .98)),
    radial-gradient(circle at 70% 0, rgba(255, 185, 84, .22), transparent 22rem);
}

.dune-hero {
  position: relative;
  min-height: min(700px, calc(100vh - 78px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 34px;
  overflow: hidden;
  padding: 96px 0 46px;
}

.dune-hero::before,
.dune-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dune-hero::before {
  inset: 8% -14% auto 40%;
  height: 58%;
  border: 1px solid rgba(247, 186, 89, .3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 170, 59, .28), transparent 58%);
  filter: blur(.3px);
  animation: dune-pulse 7s ease-in-out infinite;
}

.dune-hero::after {
  inset: auto -10% -14% -8%;
  height: 42%;
  background:
    linear-gradient(165deg, transparent 0 42%, rgba(205, 121, 38, .5) 43% 48%, transparent 49%),
    linear-gradient(178deg, transparent 0 56%, rgba(116, 61, 19, .88) 57% 100%);
  transform: skewY(-4deg);
}

.dune-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dune-sky span {
  position: absolute;
  width: 180px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 219, 152, .72), transparent);
  animation: dune-float 9s linear infinite;
}

.dune-sky span:nth-child(1) { top: 22%; left: 9%; animation-delay: -1s; }
.dune-sky span:nth-child(2) { top: 36%; left: 54%; width: 240px; animation-delay: -4s; }
.dune-sky span:nth-child(3) { top: 58%; left: 16%; width: 300px; animation-delay: -6s; }
.dune-sky span:nth-child(4) { top: 72%; left: 66%; width: 210px; animation-delay: -2s; }

.dune-hero-copy,
.dune-command-panel {
  position: relative;
  z-index: 1;
}

.dune-hero-copy {
  display: grid;
  gap: 18px;
  max-width: 900px;
}

.dune-hero-copy h1 {
  margin: 0;
  max-width: 940px;
  color: #fff6df;
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: .86;
  text-transform: uppercase;
  text-shadow: 0 0 46px rgba(224, 123, 40, .32);
}

.dune-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #ead3aa;
  font-size: 1.14rem;
}

.dune-hero-copy .eyebrow {
  color: #f5d08a;
  font-weight: 950;
  text-transform: uppercase;
  background: none;
  box-shadow: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  padding: 0;
}

.dune-command-panel {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(210, 150, 50, .35);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 12, 14, .82), rgba(66, 36, 12, .72));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform: translateY(0);
  animation: dune-panel-drift 5.8s ease-in-out infinite;
}

.dune-command-panel b,
.dune-command-panel small {
  color: #4a8cc8;
  text-transform: uppercase;
}

.dune-command-panel strong {
  color: #fff5dc;
  font-size: 4rem;
}

.dune-button {
  border: 1px solid rgba(42, 96, 180, .38);
  color: #071116;
  background: linear-gradient(180deg, #4a8cc8, #f4a447);
  box-shadow: 0 4px 0 #5e2d07, 0 18px 36px rgba(0, 0, 0, .34);
}

.dune-button.primary {
  background: linear-gradient(180deg, #fff2bf, #ff9b2f);
}

.dune-button.ghost {
  color: #fff6df;
  background: rgba(255, 255, 255, .08);
}

.dune-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -18px 0 32px;
}

.dune-signal-card {
  min-height: 120px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 1px solid rgba(44, 228, 255, .2);
  border-radius: 8px;
  color: #fff6df;
  background: linear-gradient(145deg, rgba(17, 20, 22, .84), rgba(91, 49, 14, .5));
  box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
}

.dune-signal-card span {
  color: #4a8cc8;
  font-weight: 900;
}

.dune-signal-card strong {
  font-size: 2.3rem;
}

body.is-area-dune .card,
body.is-area-dune .panel,
body.is-area-dune .quick-card {
  border: 1px solid rgba(210, 140, 50, .28);
  border-top: 2px solid rgba(210, 150, 50, .6);
  color: #fff7e6;
  background: linear-gradient(135deg, rgba(22, 14, 7, .96), rgba(48, 26, 10, .94));
  box-shadow: 0 8px 32px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 200, 100, .07);
  backdrop-filter: blur(8px) saturate(1.2);
}

body.is-area-dune .quick-card strong {
  color: #e8a830;
  text-shadow: 0 0 18px rgba(220, 150, 30, .35);
}

body.is-area-dune .quick-card span {
  color: #c8a878;
}

body.is-area-dune .card h3,
body.is-area-dune .panel h1,
body.is-area-dune .panel h2,
body.is-area-dune .section-head h2 {
  color: #f0c870;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

body.is-area-dune .section-head {
  border-bottom-color: rgba(210, 150, 50, .3);
}

body.is-area-dune .section-head a {
  color: #c8943a;
}

body.is-area-dune .section-head a:hover {
  color: #e8b050;
}

body.is-area-dune a {
  color: #c8943a;
}

body.is-area-dune a:hover {
  color: #e8b050;
}

body.is-area-dune .forum-category {
  border: 1px solid rgba(210, 140, 50, .25);
  color: #fff7e6;
  background: linear-gradient(135deg, rgba(22, 14, 7, .96), rgba(48, 26, 10, .94));
  box-shadow: 0 8px 32px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 200, 100, .07);
}

body.is-area-dune .forum-category-head {
  color: #4a8cc8;
  background: linear-gradient(90deg, rgba(44, 228, 255, .12), rgba(241, 143, 44, .18));
}

body.is-area-dune .forum-row.board-row {
  border-color: rgba(255, 205, 128, .18);
  background: rgba(255, 255, 255, .045);
}

body.is-area-dune .forum-row.board-row:hover {
  border-color: rgba(44, 228, 255, .45);
  background: rgba(44, 228, 255, .08);
}

body.is-area-community .forum-category {
  border-color: var(--c-glass-border);
  background: rgba(14, 22, 35, .84);
  color: #f4f7fb;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

body.is-area-community .forum-compose,
body.is-area-community .forum-category,
body.is-area-community .forum-thread-panel,
body.is-area-community .forum-post,
body.is-area-community .forum-moderation-actions,
body.is-area-community .forum-compose.compact,
body.is-area-community .forum-moderation-actions.compact,
body.is-area-community .forum-search-bar {
  width: min(980px, 100%);
  margin-inline: auto;
  margin-bottom: 24px;
  border-color: var(--c-glass-border);
  background: linear-gradient(135deg, rgba(14, 22, 35, .92), rgba(20, 35, 53, .88));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .38);
}

body.is-area-community .forum-compose h2,
body.is-area-community .forum-category h2,
body.is-area-community .forum-thread-panel h2 {
  background: linear-gradient(90deg, #c84a00, #000000);
  border-bottom-color: var(--c-glass-border);
  color: #ffffff;
  text-shadow: none;
}

body.is-area-community .forum-category-head {
  color: rgba(148, 180, 210, .85);
  background: rgba(255, 255, 255, .04);
  border-top-color: var(--c-glass-border);
  border-bottom-color: var(--c-glass-border);
  font-size: .75rem;
  letter-spacing: .04em;
}

body.is-area-community .forum-category-head b {
  border-left-color: var(--c-glass-border);
}

body.is-area-community .forum-row.board-row,
body.is-area-community .forum-thread-row {
  border-bottom-color: var(--c-glass-border);
  background: transparent;
  color: #e8f0f8;
}

body.is-area-community .forum-row.board-row:hover,
body.is-area-community .forum-thread-row:hover {
  background: rgba(116, 184, 232, .06);
}

body.is-area-community .forum-row.board-row strong,
body.is-area-community .forum-thread-row strong {
  color: var(--c-blue);
}

body.is-area-community .forum-last-post {
  border-left-color: var(--c-glass-border);
  color: rgba(148, 180, 210, .8);
}

body.is-area-community .forum-last-post a {
  color: var(--c-blue);
}

body.is-area-community .forum-row.board-row b,
body.is-area-community .forum-thread-row b {
  border-left-color: var(--c-glass-border);
  color: #c8dff0;
}

body.is-area-community .forum-row.board-row strong::before {
  border-color: rgba(240, 112, 48, .4);
  background: linear-gradient(var(--c-orange), #c84a00);
}

body.is-area-community .forum-row.board-row.forum-subcategory-row strong::before {
  background: linear-gradient(var(--c-orange-dim), rgba(240, 98, 26, .15));
  box-shadow: none;
}

body.is-area-community .forum-compose input,
body.is-area-community .forum-compose select,
body.is-area-community .forum-compose textarea,
body.is-area-community .forum-post-actions textarea,
body.is-area-community .forum-post-actions input {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}

body.is-area-community .forum-post-actions textarea::placeholder,
body.is-area-community .forum-compose textarea::placeholder {
  color: rgba(180, 200, 220, .45);
}

body.is-area-community .post-author {
  padding-right: 18px;
  border-right: 1px solid var(--c-glass-border);
}

body.is-area-community .post-author img,
body.is-area-community .forum-avatar-empty {
  border-color: var(--c-blue);
  background: rgba(116, 184, 232, .1);
}

body.is-area-community .forum-avatar-empty {
  color: var(--c-blue);
}

body.is-area-community .post-author a {
  color: var(--c-blue);
}

body.is-area-community .forum-author-facts dt {
  color: var(--c-orange);
}

body.is-area-community .forum-author-facts dd {
  color: #c8d8e8;
}

body.is-area-community .forum-post-body {
  padding-left: 18px;
}

body.is-area-community .forum-moderation-actions {
  margin-top: 18px;
}

body.is-area-community .bbcode-toolbar {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .04);
}

body.is-area-community .bbcode-toolbar button {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
  box-shadow: none;
}

body.is-admin,
body.is-profile-backend {
  --ink: #f4f7fb;
  --muted: #b4c1d4;
  --line: #46d6a8;
  --panel: rgba(14, 22, 35, .9);
  --panel-strong: rgba(28, 42, 64, .96);
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(70, 214, 168, .2), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(255, 189, 56, .14), transparent 25rem),
    linear-gradient(135deg, #0a111d 0, #111827 42%, #172033 100%);
}

body.is-admin.has-page-hero::before,
body.is-profile-backend.has-page-hero::before {
  background:
    linear-gradient(180deg, rgba(9, 15, 27, .1), rgba(11, 18, 30, .72) 56%, #111827 100%),
    linear-gradient(110deg, rgba(70, 214, 168, .22), transparent 42%);
}

body.is-admin .site-header,
body.is-profile-backend .site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: rgba(70, 214, 168, .18);
}

body.is-admin .panel,
body.is-admin .admin-form,
body.is-admin .admin-list,
body.is-profile-backend .panel,
body.is-profile-backend .admin-form,
body.is-profile-backend .admin-list {
  border-color: rgba(85, 226, 181, .24);
  background: rgba(14, 22, 35, .86);
  color: #f4f7fb;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .25), 0 22px 46px rgba(0, 0, 0, .24);
}

body.is-admin .quest-board,
body.is-profile-backend .quest-board {
  border-color: rgba(85, 226, 181, .28);
  background: rgba(14, 22, 35, .9);
}

body.is-admin .quest-board h2,
body.is-profile-backend .quest-board h2 {
  color: #ffffff;
  background: linear-gradient(180deg, #1dba91, #0d6f70);
}

body.is-admin .page-menu {
  top: 72px;
  padding: 14px;
  border: 1px solid rgba(85, 226, 181, .24);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(14, 22, 35, .92), rgba(17, 29, 45, .88)),
    radial-gradient(circle at 0 0, rgba(85, 226, 181, .16), transparent 18rem);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .26);
}

body.is-admin .page-menu::before {
  content: "";
  display: block;
  height: 3px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #55e2b5, #ffbd38);
}

body.is-admin .page-menu h2 {
  margin: 0 0 12px;
  padding: 0;
  color: #ffffff;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  box-shadow: none;
}

body.is-admin .page-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #dbeafe;
  background: rgba(255, 255, 255, .045);
  box-shadow: none;
  text-shadow: none;
}

body.is-admin .page-menu a:hover,
body.is-admin .page-menu a.active-menu {
  border-color: rgba(85, 226, 181, .42);
  color: #06110f;
  background: linear-gradient(180deg, #83f1d1, #3cc29a);
  transform: translateX(2px);
}

body.is-admin .button,
body.is-admin .pagination .button.active,
body.is-profile-backend .button,
body.is-profile-backend .pagination .button.active {
  border-color: rgba(85, 226, 181, .32);
  color: #071017;
  background: linear-gradient(180deg, #79efc9, #32b68f);
  box-shadow: 0 3px 0 #0a5b62;
}

body.is-admin .button.danger,
body.is-profile-backend .button.danger {
  color: #ffffff;
  background: linear-gradient(180deg, #ff7f8c, #d73b4a);
  box-shadow: 0 3px 0 #6d1a24;
}

@keyframes dune-float {
  0% { transform: translate3d(-14vw, 0, 0) scaleX(.7); opacity: 0; }
  18% { opacity: .9; }
  100% { transform: translate3d(34vw, -18px, 0) scaleX(1.4); opacity: 0; }
}

@keyframes dune-panel-drift {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

@keyframes dune-pulse {
  0%, 100% { transform: scale(.98); opacity: .68; }
  50% { transform: scale(1.04); opacity: 1; }
}

@media (max-width: 900px) {
  .top-mega-menu > div,
  .admin-menu-label-grid,
  .dune-hero,
  .dune-signal-grid {
    grid-template-columns: 1fr;
  }

  .top-inline-menu {
    order: 5;
    width: 100%;
  }

  .dune-command-panel {
    max-width: 360px;
  }
}

/* â”€â”€ Header layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  gap: 0;
}

.site-header .brand {
  flex-shrink: 0;
  margin-right: 0;
  justify-self: start;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-header .top-inline-menu,
.site-header .top-mega-menu {
  flex-shrink: 0;
  margin: 0;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-self: end;
}

body.is-area-community:not(.is-area-ragnarok) .site-header,
body.is-area-dune:not(.is-area-ragnarok) .site-header {
  min-height: 48px;
  border-bottom: 1px solid rgba(13, 26, 43, .1);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .14);
}

body.is-area-community .brand,
body.is-area-dune .brand,
body.is-area-community .page-title h1,
body.is-area-dune .page-title h1,
body.is-area-dune .section-head h2,
body.is-area-dune .quick-card strong,
body.is-area-dune .dune-hero-copy h1 {
  text-shadow: none;
}

body.is-area-community.has-page-hero::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .52) 55%, #000000 100%),
    url("assets/0004.png") center 30% / cover no-repeat;
  filter: none;
}

body.is-area-community.has-page-hero main,
body.is-area-dune.has-page-hero main {
  padding-top: 86px;
  display: block;
}

body.is-area-community .page-title,
body.is-area-dune .page-title {
  max-width: 980px;
  min-height: 0;
  display: grid;
  gap: 10px;
  margin: 26px auto 24px;
  padding: 0;
}

body.is-area-community .page-title h1,
body.is-area-dune .page-title h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: .95;
}

body.is-area-community .page-title p {
  color: #b8c7d9;
  font-size: 1.05rem;
}

body.is-area-dune .page-title p {
  color: #e4c896;
  font-size: 1.05rem;
}

body.is-area-community .top-inline-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

body.is-area-community .top-inline-menu a {
  position: relative;
  flex: 0 0 auto;
  padding: 0 14px;
  border: none;
  border-left: 1px solid rgba(240, 98, 26, .35);
  border-radius: 0;
  color: #2a6099;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  font-size: .88rem;
  transition: color .15s ease, background .15s ease;
}

body.is-area-community .top-inline-menu a:first-child {
  border-left: none;
}

body.is-area-community .top-inline-menu a:hover {
  color: #1a4a7a;
  background: rgba(42, 96, 153, .07);
}

body.is-area-community .top-inline-menu a.active-menu {
  color: #e8621a;
  font-weight: 600;
}

body.is-area-community .nav a {
  padding: 0 12px;
  min-height: 30px;
  border: 1px solid rgba(240, 98, 26, .45);
  border-radius: 999px;
  color: #e8f4ff;
  background: linear-gradient(180deg, #2460a0, #163a6a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  text-shadow: none;
  font-size: .82rem;
  font-weight: 700;
  transition: background .15s, border-color .15s, color .15s;
}

body.is-area-community .nav a:hover {
  background: linear-gradient(180deg, #2e74c0, #1a4a82);
  border-color: rgba(240, 98, 26, .7);
  color: #fff;
}


body.is-area-dune .nav a {
  padding: 0 12px;
  min-height: 30px;
  border: 1px solid rgba(240, 98, 26, .45);
  border-radius: 999px;
  color: #e8f4ff;
  background: linear-gradient(180deg, #2460a0, #163a6a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  text-shadow: none;
  font-size: .82rem;
  font-weight: 700;
}

body.is-area-dune .nav a:hover {
  background: linear-gradient(180deg, #2e74c0, #1a4a82);
  border-color: rgba(240, 98, 26, .7);
  color: #fff;
}

body.is-area-dune .top-mega-menu > div {
  left: 50%;
  transform: translateX(-50%);
  border-radius: 14px;
  padding: 20px;
}

body.is-area-dune .top-mega-menu a {
  border: 1px solid rgba(255, 209, 124, .1);
  color: #fff3d4;
  background: rgba(255, 255, 255, .035);
}

body.is-area-dune .top-mega-menu a:hover {
  border-color: rgba(42, 96, 180, .55);
  color: #4a8cc8;
}

body.is-area-community .button,
body.is-area-community button,
body.is-area-community input[type="file"]::file-selector-button {
  border: 1px solid var(--c-blue-glow);
  color: #c8e4f4;
  background: linear-gradient(180deg, rgba(28, 44, 66, .95), rgba(16, 28, 48, .98));
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  text-shadow: none;
}

body.is-area-community .button:hover,
body.is-area-community button:hover {
  border-color: rgba(74, 184, 240, .75);
  color: #e8f4fc;
  box-shadow: 0 6px 20px rgba(74, 184, 240, .22);
}

body.is-area-community .button.primary,
body.is-area-community button.primary {
  border-color: rgba(240, 98, 26, .6);
  color: #fff0e8;
  background: linear-gradient(180deg, #e8621a, #b83e0a);
  box-shadow: 0 6px 22px rgba(240, 98, 26, .3);
}

body.is-area-community .button.primary:hover,
body.is-area-community button.primary:hover {
  background: linear-gradient(180deg, var(--c-orange), #cc4a14);
  box-shadow: 0 8px 28px var(--c-orange-glow);
}

body.is-area-dune .button,
body.is-area-dune button,
body.is-area-dune input[type="file"]::file-selector-button {
  border: 1px solid rgba(210, 150, 50, .45);
  color: #fff4d5;
  background: linear-gradient(180deg, rgba(80, 44, 12, .96), rgba(44, 22, 6, .98));
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 210, 120, .12);
  text-shadow: none;
}

body.is-area-dune .button:hover,
body.is-area-dune button:hover {
  border-color: rgba(230, 170, 60, .7);
  background: linear-gradient(180deg, rgba(110, 60, 14, .98), rgba(60, 30, 8, .98));
  color: #ffe8b0;
}

body.is-area-dune .button.primary,
body.is-area-dune button.primary,
body.is-area-dune .dune-button.primary {
  border-color: rgba(220, 160, 50, .7);
  color: #1a0c02;
  background: linear-gradient(180deg, #e8a830, #b06818);
  box-shadow: 0 6px 22px rgba(180, 100, 20, .4);
}

body.is-area-dune .button.primary:hover,
body.is-area-dune button.primary:hover {
  background: linear-gradient(180deg, #f0b840, #c07820);
}

body.is-area-dune .dune-button {
  border-color: rgba(210, 150, 50, .45);
  color: #fff4d5;
  background: linear-gradient(180deg, rgba(80, 44, 12, .96), rgba(44, 22, 6, .98));
}

body.is-area-dune .dune-button.ghost {
  color: #f0c870;
  border-color: rgba(210, 160, 60, .35);
  background: rgba(20, 12, 4, .72);
}

body.is-area-community input,
body.is-area-community textarea,
body.is-area-community select,
body.is-area-dune input,
body.is-area-dune textarea,
body.is-area-dune select {
  border-width: 1px;
  color: #07121e;
  background: rgba(255, 255, 255, .94);
  text-shadow: none;
}

body.is-area-community label,
body.is-area-dune label {
  color: #dbe8f5;
  text-shadow: none;
}

body.is-area-dune label {
  color: #f0d6a6;
}

body.is-area-community .story-list,
body.is-area-community .guestbook-list,
body.is-area-community .forum-directory,
body.is-area-community .discord-page,
body.is-area-community .info-page,
body.is-area-community .event-participants,
body.is-area-dune .story-list,
body.is-area-dune .guestbook-list,
body.is-area-dune .forum-directory,
body.is-area-dune .discord-page,
body.is-area-dune .info-page,
body.is-area-dune .event-participants {
  width: min(980px, 100%);
  display: grid;
  gap: 16px;
  margin: 0 auto;
}

body.is-area-community .story,
body.is-area-community .card,
body.is-area-community .panel,
body.is-area-community .gallery-tile,
body.is-area-dune .story,
body.is-area-dune .card,
body.is-area-dune .panel,
body.is-area-dune .gallery-tile {
  border-radius: 14px;
  overflow: hidden;
  text-shadow: none;
}

body.is-area-community .story {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  border: 1px solid var(--c-glass-border);
  background: linear-gradient(135deg, rgba(14, 22, 35, .9), rgba(20, 35, 53, .86));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

body.is-area-dune .story {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  border: 1px solid rgba(210, 140, 50, .22);
  background: linear-gradient(135deg, rgba(22, 14, 7, .96), rgba(52, 28, 10, .94));
  box-shadow: 0 8px 32px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 200, 100, .06);
}

body.is-area-community .story h2 a,
body.is-area-community .card h3 a,
body.is-area-community .guestbook-entry a {
  color: var(--c-blue);
}

body.is-area-dune .story h2 a,
body.is-area-dune .card h3 a,
body.is-area-dune .guestbook-entry a {
  color: #4a8cc8;
}

body.is-area-community .story p,
body.is-area-community .card p,
body.is-area-community .panel p,
body.is-area-community .guestbook-entry p {
  color: #c3d0df;
}

body.is-area-dune .story p,
body.is-area-dune .card p,
body.is-area-dune .panel p,
body.is-area-dune .guestbook-entry p {
  color: #e6cfa4;
}

body.is-area-community .card-grid.database,
body.is-area-dune .card-grid.database {
  width: min(980px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
}

body.is-area-community .compact,
body.is-area-community .compact,
body.is-area-dune .compact {
  width: min(760px, 100%);
  margin-inline: auto;
}

body.is-area-community .guestbook-form,
body.is-area-dune .guestbook-form {
  width: min(980px, 100%);
  margin-inline: auto;
  margin-bottom: 24px;
}

body.is-area-community .captcha-box {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}

body.is-area-community .captcha-box strong {
  color: var(--c-blue);
}

body.is-area-community .guestbook-form input,
body.is-area-community .guestbook-form textarea,
body.is-area-community .guestbook-form select {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}

body.is-area-community .guestbook-form input::placeholder,
body.is-area-community .guestbook-form textarea::placeholder {
  color: rgba(180, 200, 220, .5);
}

body.is-area-community .guestbook-form h2 {
  color: #ffffff;
  font-size: 1.1rem;
}

body.is-area-community .guestbook-form > p {
  color: var(--muted);
  margin: 0;
}

body.is-area-community .guestbook-entry {
  border: 1px solid var(--c-glass-border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 22, 35, .9), rgba(20, 35, 53, .86));
  padding: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

body.is-area-community .guestbook-entry header {
  border-bottom-color: var(--c-glass-border);
}

body.is-area-community .guestbook-entry strong {
  color: var(--c-blue);
}

body.is-area-community .guestbook-entry time,
body.is-area-community .guestbook-entry small {
  color: rgba(148, 180, 210, .7);
}

body.is-area-community .entity-detail,
body.is-area-dune .entity-detail {
  width: min(980px, 100%);
  margin-inline: auto;
}

body.is-area-community .forum-toolbar,
body.is-area-dune .forum-toolbar,
body.is-area-community .filter-tabs,
body.is-area-dune .filter-tabs {
  width: min(980px, 100%);
  margin-inline: auto;
}

body.is-area-community .gallery-grid,
body.is-area-dune .gallery-grid {
  width: min(980px, 100%);
  margin: 0 auto;
}

body.is-area-community .forum-category,
body.is-area-dune .forum-category {
  width: min(980px, 100%);
  margin-inline: auto;
}

body.is-area-community .forum-category h2,
body.is-area-dune .forum-category h2 {
  text-shadow: none;
}

body.is-area-dune .forum-category h2,
body.is-area-dune .forum-row.board-row strong,
body.is-area-dune .forum-row.board-row b {
  color: #fff4d5;
}

body.is-area-community .auth-shell .panel,
body.is-area-dune .auth-shell .panel {
  width: min(460px, 100%);
}

@media (max-width: 1050px) {
  .site-header-main {
    gap: 0;
  }

  .brand span {
    max-width: 160px;
  }
}

@media (max-width: 740px) {
  .site-header-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 6px 12px;
    gap: 6px;
  }

  .site-header .brand {
    justify-self: start;
  }

  .header-center {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-header .nav {
    justify-self: start;
  }

  .site-header .top-inline-menu,
  .site-header .top-mega-menu {
    width: 100%;
  }

  body.is-area-community .card-grid.database,
  body.is-area-dune .card-grid.database,
  body.is-area-community .story,
  body.is-area-dune .story {
    grid-template-columns: 1fr;
  }
}

/* ── Community Profil-Overrides (muss zuletzt stehen) ── */
body.is-area-community.is-profile-backend .panel,
body.is-area-community.is-profile-backend .admin-form,
body.is-area-community.is-profile-backend .admin-list,
body.is-area-community.is-profile-backend .profile-head,
body.is-area-community.is-profile-backend .table-row {
  width: min(980px, 100%);
  margin-inline: auto;
  border-color: var(--c-glass-border);
  background: linear-gradient(135deg, rgba(14, 22, 35, .92), rgba(20, 35, 53, .88));
  backdrop-filter: blur(12px) saturate(1.3);
  color: #f4f7fb;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 12px 36px rgba(0, 0, 0, .38);
}

body.is-area-community.is-profile-backend .panel + .panel,
body.is-area-community.is-profile-backend .panel + form.panel,
body.is-area-community.is-profile-backend .profile-head + .panel,
body.is-area-community.is-profile-backend .profile-nav-panel {
  margin-top: 18px;
}

body.is-area-community.is-profile-backend .profile-tabs a,
body.is-area-community.is-profile-backend .profile-tabs span {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .05);
  color: var(--c-blue);
  box-shadow: none;
  text-shadow: none;
}

body.is-area-community.is-profile-backend .profile-tabs .active {
  border-color: var(--c-orange);
  background: var(--c-orange-dim);
  color: #fff0e8;
  pointer-events: none;
}

body.is-area-community.is-profile-backend .button,
body.is-area-community.is-profile-backend button,
body.is-area-community.is-profile-backend input[type="file"]::file-selector-button {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .07);
  color: var(--c-blue);
  box-shadow: none;
  text-shadow: none;
}

body.is-area-community.is-profile-backend .button:hover,
body.is-area-community.is-profile-backend button:hover {
  border-color: var(--c-blue);
  background: rgba(116, 184, 232, .12);
  color: #e8f4fc;
}

body.is-area-community.is-profile-backend .button.primary,
body.is-area-community.is-profile-backend button.primary {
  border-color: rgba(240, 98, 26, .6);
  background: linear-gradient(180deg, #e8621a, #b83e0a);
  color: #fff0e8;
}

body.is-area-community.is-profile-backend .pill {
  border-color: rgba(240, 98, 26, .5);
  background: var(--c-orange-dim);
  color: #ffd0b0;
}

body.is-area-community.is-profile-backend input,
body.is-area-community.is-profile-backend textarea,
body.is-area-community.is-profile-backend select {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}

body.is-area-community.is-profile-backend select option {
  background: #0e1623;
  color: #f4f7fb;
}

body.is-area-community.is-profile-backend select option:checked,
body.is-area-community.is-profile-backend select option:hover {
  background: #c84a00;
  color: #fff0e8;
}

body.is-area-community.is-profile-backend .profile-public-facts dt,
body.is-area-community.is-profile-backend .detail-list dt {
  color: var(--c-orange);
  font-weight: 700;
}

body.is-area-community.is-profile-backend .detail-list dd {
  color: #c8d8e8;
}

body.is-area-community.is-profile-backend .detail-list div {
  border-bottom-color: var(--c-glass-border);
}

body.is-area-community.is-profile-backend .panel h1,
body.is-area-community.is-profile-backend .panel h2 {
  color: #ffffff;
}

body.is-area-community.is-profile-backend label {
  color: var(--muted);
}

body.is-area-community.is-profile-backend .profile-public-facts dd {
  color: #c8d8e8;
}

body.is-area-community.is-profile-backend .brand {
  color: #004f99;
  text-shadow: 0 1px 0 #fff;
}

/* helper-title panel — community dark override */
body.is-area-community input[type="date"] {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}

body.is-area-community input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(60%) sepia(80%) saturate(400%) hue-rotate(340deg) brightness(110%);
  cursor: pointer;
}

body.is-area-community .social-badge {
  border-color: rgba(116, 184, 232, .35);
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
}

body.is-area-community .helper-title-current {
  border-color: rgba(240, 98, 26, .5);
  background: var(--c-orange-dim);
  color: #ffd0b0;
}

body.is-area-community .helper-title-next {
  color: var(--muted);
}

body.is-area-community .helper-title-progress {
  border-color: var(--c-glass-border);
  background: rgba(14, 22, 35, .88);
}

body.is-area-community .helper-title-progress span {
  color: var(--muted);
}

body.is-area-community .helper-title-progress b {
  color: var(--c-orange);
}

body.is-area-community .helper-title-progress i {
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

body.is-area-community .mini-list {
  grid-template-columns: repeat(2, 1fr);
  border-color: var(--c-glass-border);
  background: rgba(14, 22, 35, .82);
}

body.is-area-community .helper-title-step {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .04);
}

body.is-area-community .helper-title-step strong {
  color: var(--c-orange);
}

body.is-area-community .helper-title-step small {
  color: var(--muted);
}

body.is-area-community .helper-title-step.current {
  border-color: rgba(240, 98, 26, .7);
  background: linear-gradient(135deg, rgba(200, 74, 0, .35), rgba(120, 40, 0, .5));
}

body.is-area-community .helper-title-step.current strong,
body.is-area-community .helper-title-step.current small {
  color: #ffe0c8;
}

body.is-area-community .helper-title-step.next {
  border-color: rgba(116, 184, 232, .45);
  background: rgba(116, 184, 232, .06);
}

body.is-area-community .helper-title-step.next strong {
  color: var(--c-blue);
}

/* ── Admin Community Design Override (muss zuletzt stehen) ── */
body.is-admin {
  --ink: #f4f7fb;
  --muted: #b4c8d8;
  --line: #e8621a;
  --c-orange: #f07030;
  --c-orange-dim: rgba(240, 98, 26, .25);
  --c-orange-glow: rgba(240, 98, 26, .45);
  --c-blue: #74b8e8;
  --c-blue-dim: rgba(74, 184, 240, .25);
  --c-blue-glow: rgba(74, 184, 240, .4);
  --c-glass: rgba(255, 255, 255, .07);
  --c-glass-border: rgba(255, 255, 255, .1);
  background: #000000;
  color: var(--ink);
}

body.is-admin .panel,
body.is-admin .admin-form,
body.is-admin .admin-list {
  border-color: var(--c-glass-border);
  background: linear-gradient(135deg, rgba(14, 22, 35, .92), rgba(20, 35, 53, .88));
  backdrop-filter: blur(12px) saturate(1.3);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 12px 36px rgba(0, 0, 0, .38);
}

body.is-admin .panel h2,
body.is-admin .panel h3,
body.is-admin .admin-list h2 {
  color: #ffffff;
  border-bottom-color: var(--c-glass-border);
}

body.is-admin .quick-card,
body.is-admin .admin-dashboard .quick-card {
  border-color: var(--c-glass-border);
  background: linear-gradient(135deg, rgba(14, 22, 35, .92), rgba(20, 35, 53, .88));
  backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  color: var(--ink);
}

body.is-admin .quick-card strong,
body.is-admin .admin-dashboard .quick-card strong {
  color: var(--c-orange);
  text-shadow: none;
}

body.is-admin .quick-card span,
body.is-admin .admin-dashboard .quick-card span {
  color: var(--muted);
}

body.is-admin .quick-card:hover,
body.is-admin .admin-dashboard .quick-card:hover {
  border-color: rgba(240, 98, 26, .4);
  box-shadow: 0 12px 32px rgba(240, 98, 26, .15);
}

body.is-admin .button,
body.is-admin button,
body.is-admin input[type="file"]::file-selector-button {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .07);
  color: var(--c-blue);
  box-shadow: none;
  text-shadow: none;
}

body.is-admin .button:hover,
body.is-admin button:hover {
  border-color: var(--c-blue);
  background: rgba(116, 184, 232, .12);
  color: #e8f4fc;
}

body.is-admin .button.primary,
body.is-admin button.primary {
  border-color: rgba(240, 98, 26, .6);
  background: linear-gradient(180deg, #e8621a, #b83e0a);
  color: #fff0e8;
}

body.is-admin .button.danger,
body.is-admin button.danger {
  border-color: rgba(220, 60, 60, .6);
  background: linear-gradient(180deg, #c03030, #8a1a1a);
  color: #ffe8e8;
}

body.is-admin input,
body.is-admin textarea,
body.is-admin select {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  text-shadow: none;
}

body.is-admin select option {
  background: #0e1623;
  color: #f4f7fb;
}

body.is-admin select option:checked {
  background: #c84a00;
  color: #fff0e8;
}

body.is-admin label {
  color: var(--muted);
  text-shadow: none;
}

body.is-admin .admin-row,
body.is-admin .admin-menu-row {
  border-color: var(--c-glass-border);
}

body.is-admin .pill {
  border-color: rgba(240, 98, 26, .5);
  background: var(--c-orange-dim);
  color: #ffd0b0;
}

body.is-admin .page-title h1 {
  color: #ffffff;
  text-shadow: none;
}

body.is-admin .section-head h2 {
  color: #ffffff;
  text-shadow: none;
}

body.is-admin .brand {
  color: #004f99;
  text-shadow: 0 1px 0 #fff;
}

/* admin top-nav: exakt wie community inline-menu */
body.is-admin .admin-top-nav a {
  border: none;
  border-left: 1px solid rgba(240, 98, 26, .3);
  border-radius: 0;
  background: transparent;
  color: #2a6099;
  font-weight: 600;
}

body.is-admin .admin-top-nav a:first-child {
  border-left: none;
}

body.is-admin .admin-top-nav a:hover {
  border-color: rgba(240, 98, 26, .3);
  background: rgba(42, 96, 153, .07);
  color: #1a4a8a;
}

body.is-admin .admin-top-nav a.active {
  border-left-color: rgba(240, 98, 26, .3);
  background: transparent;
  color: #e8621a;
  font-weight: 700;
}

/* admin-row + admin-menu-row */
body.is-admin .admin-row,
body.is-admin .admin-menu-row {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .03);
}

body.is-admin .admin-menu-row {
  background: rgba(20, 32, 50, .6);
}

/* inline-check Kacheln (Rollen, Scope-Checkboxes) */
body.is-admin .admin-menu-row .inline-check,
body.is-admin .check-list .inline-check,
body.is-admin .role-choice-list .inline-check,
body.is-admin .inline-check-group .inline-check {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--c-blue);
  font-weight: 700;
}

body.is-admin .admin-menu-row .inline-check:hover,
body.is-admin .check-list .inline-check:hover,
body.is-admin .role-choice-list .inline-check:hover,
body.is-admin .inline-check-group .inline-check:hover {
  border-color: rgba(240, 98, 26, .55);
  background: var(--c-orange-dim);
  color: #ffd0b0;
  transform: none;
  box-shadow: none;
}

/* checked state */
body.is-admin .check-list .inline-check:has(input:checked),
body.is-admin .role-choice-list .inline-check:has(input:checked),
body.is-admin .inline-check-group .inline-check:has(input:checked) {
  border-color: rgba(240, 98, 26, .6);
  background: linear-gradient(135deg, rgba(200, 74, 0, .35), rgba(120, 40, 0, .5));
  color: #ffd0b0;
}

/* admin-tabs */
body.is-admin .admin-tabs a,
body.is-admin .admin-tabs span {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .05);
  color: var(--c-blue);
  box-shadow: none;
  text-shadow: none;
}

body.is-admin .admin-tabs .active {
  border-color: var(--c-orange);
  background: var(--c-orange-dim);
  color: #fff0e8;
}

/* info/hint text boxes */
body.is-admin .panel > p:first-of-type,
body.is-admin .admin-list > p {
  color: var(--muted);
}

/* search input */
body.is-admin input[type="search"],
body.is-admin input[type="text"] {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}

body.is-admin input::placeholder,
body.is-admin textarea::placeholder {
  color: rgba(180, 200, 220, .45);
}

/* dividers in lists */
body.is-admin .admin-row + .admin-row {
  border-top-color: var(--c-glass-border);
}

/* compact-width-override: community setzt min(760px) — im Admin alles auf volle Breite */
body.is-admin .compact,
body.is-admin .admin-section-nav {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* check-list label + category-choice label: beige überschreiben */
body.is-admin .check-list label,
body.is-admin .category-choice label,
body.is-admin .role-choice-list label {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--c-blue);
  font-weight: 600;
}

body.is-admin .check-list label:hover,
body.is-admin .category-choice label:hover,
body.is-admin .role-choice-list label:hover {
  border-color: rgba(240, 98, 26, .45);
  background: rgba(240, 98, 26, .08);
  color: #ffd0b0;
  transform: none;
  box-shadow: none;
}

body.is-admin .check-list label:has(input:checked),
body.is-admin .role-choice-list label:has(input:checked) {
  border-color: rgba(240, 98, 26, .6);
  background: linear-gradient(135deg, rgba(200, 74, 0, .35), rgba(120, 40, 0, .5));
  color: #ffd0b0;
}

/* info/warning Boxen im Admin lesbar machen */
body.is-admin .empty-state.inline,
body.is-admin .forum-row {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
}

body.is-admin .empty-state.inline p {
  color: var(--ink);
}

/* profile-class-node tree rows */
body.is-admin .profile-class-node {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}

body.is-admin .profile-class-node strong {
  color: var(--c-blue);
}

body.is-admin .profile-class-node small {
  color: var(--muted);
}

/* forum-tree nodes */
body.is-admin .forum-tree-node,
body.is-admin .forum-tree-forum {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  box-shadow: none;
}

body.is-admin .forum-tree-category {
  border-left-color: rgba(240, 98, 26, .4);
}

body.is-admin .forum-tree-node strong,
body.is-admin .forum-tree-forum strong,
body.is-admin .forum-tree-node a,
body.is-admin .forum-tree-forum a {
  color: var(--c-blue);
}

body.is-admin .forum-tree-node small,
body.is-admin .forum-tree-forum small {
  color: var(--muted);
}

/* permission-group fieldsets */
body.is-admin .permission-group {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .04);
}

body.is-admin .permission-group legend {
  color: var(--c-orange);
}

/* permission-groups container max-width aufheben */
body.is-admin .permission-groups {
  width: 100%;
  max-width: none;
}

/* rich-text editor */
body.is-admin .rich-editor {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}

body.is-admin .rich-editor:focus-within {
  border-color: rgba(116, 184, 232, .55);
  box-shadow: 0 0 0 3px rgba(116, 184, 232, .18);
}

body.is-admin .rich-editor-toolbar {
  border-bottom-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .07);
}

body.is-admin .rich-editor-toolbar button {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
}

body.is-admin .rich-editor-toolbar button:hover {
  border-color: rgba(240, 98, 26, .45);
  background: rgba(240, 98, 26, .12);
  color: #ffd0b0;
}

body.is-admin [data-rich-editor],
body.is-admin .rich-editor [contenteditable],
body.is-admin .rich-editor-surface {
  background: transparent;
  color: var(--ink);
  caret-color: var(--c-orange);
}

/* menu-label-grid fieldsets */
body.is-admin .admin-menu-label-grid fieldset {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .04);
}

body.is-admin .admin-menu-label-grid legend {
  color: var(--c-orange);
}

body.is-admin .admin-menu-label-grid label {
  color: var(--muted);
}

body.is-admin .admin-menu-label-grid input {
  border-color: var(--c-glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}

/* ── Ragnarok per-box hover dropdowns ── */
.top-box-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.top-box-menu {
  position: relative;
}

.top-box-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 30px;
  font-size: .82rem;
  font-weight: 700;
  color: #e8f4ff;
  cursor: default;
  white-space: nowrap;
  border: 1px solid rgba(240, 98, 26, .45);
  border-radius: 999px;
  background: linear-gradient(180deg, #2460a0, #163a6a);
  text-decoration: none;
  user-select: none;
  margin: 0 3px;
  transition: background .15s, border-color .15s;
}

.top-box-summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .7;
  flex-shrink: 0;
}

.top-box-menu:hover .top-box-summary {
  background: linear-gradient(180deg, #2e74c0, #1a4a82);
  border-color: rgba(240, 112, 48, .7);
  color: #fff;
}


.top-box-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  min-width: 160px;
  padding: 16px 8px 8px;
  border: 1px solid rgba(74, 140, 200, .3);
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}

.top-box-menu:hover .top-box-panel {
  display: grid;
  gap: 2px;
}

.top-box-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #1a3a5c;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.top-box-panel a:hover {
  background: rgba(26, 74, 122, .08);
  color: #0e2d52;
}


body.is-area-ragnarok .top-box-panel a {
  font-weight: 850 !important;
  color: #1a3a5c !important;
}

body.is-area-ragnarok .top-box-panel a:hover {
  background: rgba(26, 74, 122, .08);
  color: #0e2d52 !important;
}

/* ── Dune per-box hover dropdowns (gleicher Stil wie Ragnarok/Community) ── */
body.is-area-dune .top-box-summary {
  border: 1px solid rgba(240, 98, 26, .45);
  background: linear-gradient(180deg, #2460a0, #163a6a);
  color: #e8f4ff;
}

body.is-area-dune .top-box-menu:hover .top-box-summary {
  background: linear-gradient(180deg, #2e74c0, #1a4a82);
  border-color: rgba(240, 98, 26, .7);
  color: #fff;
}

body.is-area-dune .top-box-panel {
  border-color: rgba(74, 140, 200, .3);
  background: rgba(255, 255, 255, .97);
}

body.is-area-dune .top-box-panel a {
  color: #1a3a5c;
}

body.is-area-dune .top-box-panel a:hover {
  background: rgba(26, 74, 122, .08);
  color: #0e2d52;
}

/* ── Hero character images (nur Ragnarok) ───────────────────────────────── */
body.is-area-ragnarok .hero-char {
  position: absolute;
  bottom: 0;
  max-height: 520px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

body.is-area-ragnarok .hero-char-left  { left:  2vw; }
body.is-area-ragnarok .hero-char-right { right: 2vw; }

@media (max-width: 1100px) {
  body.is-area-ragnarok .hero-char { max-height: 380px; }
}

@media (max-width: 760px) {
  body.is-area-ragnarok .hero-char { display: none; }
}

/* ── Ragnarok Forum: Zentrierung + negative-margin-Fix ─────────────────── */
body.is-area-ragnarok .forum-directory,
body.is-area-ragnarok .forum-compose,
body.is-area-ragnarok .forum-thread-panel,
body.is-area-ragnarok .forum-post,
body.is-area-ragnarok .forum-moderation-actions,
body.is-area-ragnarok .forum-toolbar,
body.is-area-ragnarok .forum-search-bar {
  width: min(980px, 100%);
  margin-inline: auto;
  margin-bottom: 24px;
}

/* negative margins zurücksetzen damit rows nicht über den Panel-Rand ragen */
body.is-area-ragnarok .forum-category-head,
body.is-area-ragnarok .forum-subcategory-list,
body.is-area-ragnarok .forum-row.board-row,
body.is-area-ragnarok .forum-thread-row {
  margin-left: 0;
  margin-right: 0;
}
