:root {
  color-scheme: light;
  --bg: #f7f6fb;
  --surface: #ffffff;
  --surface-soft: #fbfaff;
  --surface-muted: #f0eef7;
  --line: #e6e3ef;
  --line-strong: #d7d2e5;
  --text: #29263a;
  --muted: #706c80;
  --subtle: #918da0;
  --accent: #7057d8;
  --accent-strong: #5942bd;
  --accent-soft: #eeeaff;
  --accent-pale: #f7f5ff;
  --warning: #8b651c;
  --warning-soft: #fff7e8;
  --danger: #a7445a;
  --danger-soft: #fff1f3;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(43, 34, 76, .055);
  --max-width: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 8% 0, rgba(222, 214, 255, .38), transparent 34%), var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: #3f2b9c; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #dcd4ff; color: #211942; }
.wrap { width: min(100% - 40px, var(--max-width)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 30; top: 10px; left: 10px; transform: translateY(-160%);
  padding: 10px 14px; border: 1px solid var(--accent); border-radius: 10px;
  background: var(--surface); color: var(--text); font-weight: 800; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #9d8af1; outline-offset: 3px; }

/* Header, Wortmarke und Navigation */
.top {
  position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94); box-shadow: 0 3px 14px rgba(42, 34, 68, .035);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 10px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: white; font-size: 17px; font-weight: 900; letter-spacing: -.5px; }
.brand-name { font-size: 21px; font-weight: 850; letter-spacing: -.7px; }
.brand-name strong { color: var(--accent); }
.toolbar { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; max-width: 760px; }
.search { display: flex; flex: 1 1 220px; align-items: center; gap: 7px; min-width: 0; }
.search input { min-width: 0; }
.search button { flex: 0 0 auto; min-width: 42px; font-size: 18px; }
.tabs { display: flex; flex: 0 0 auto; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); white-space: nowrap; }
.tabs a { flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 730; text-decoration: none; transition: background .15s ease, color .15s ease; }
.tabs a:hover, .tabs a.active { background: var(--accent-soft); color: var(--accent-strong); }
.userline { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 12px; }
.user-name { color: var(--text); font-weight: 750; }
.inline { display: inline-flex; margin: 0; }

/* Buttons, forms and feedback */
.btn {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 15px; border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: #fff; box-shadow: none; font-size: 13px; font-weight: 750;
  line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); background: var(--accent-strong); color: #fff; }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.btn.secondary:hover:not(:disabled) { border-color: #b9aedf; background: var(--accent-pale); color: var(--accent-strong); }
.btn.danger { border-color: #f0cbd2; background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover:not(:disabled) { border-color: #dfaab5; background: #fde5e9; color: #8f3046; }
.btn.small { min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: 12px; }
input, select, textarea {
  width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  outline: none; background: #fff; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #9893a5; }
input:focus, select:focus, textarea:focus { border-color: #9787e4; box-shadow: 0 0 0 3px rgba(112, 87, 216, .12); }
input[type="file"] { min-height: 50px; padding: 7px; border-style: dashed; background: var(--surface-soft); }
input[type="file"]::file-selector-button { margin-right: 11px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font: inherit; font-weight: 700; cursor: pointer; }
input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--accent); }
textarea { min-height: 100px; resize: vertical; }
.field { margin: 14px 0; }
.field > label:not(.checkline) { display: block; margin: 0 0 6px; color: var(--text); font-size: 13px; font-weight: 700; }
.hint, .meta { color: var(--muted); font-size: 12px; }
.hint { margin-top: 5px; font-size: 11px; line-height: 1.5; }
.checkline { display: flex !important; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text) !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.45; cursor: pointer; }
.checkline input { flex: 0 0 18px; margin: 2px 0 0; }
.checkline span { flex: 1; }
.flash, .notice { margin: 16px 0; padding: 12px 14px; border: 1px solid #d8d0f4; border-radius: 11px; background: var(--accent-pale); color: #4d4084; font-size: 12px; }
.flash { box-shadow: 0 3px 10px rgba(43,34,76,.035); }
.flash.error { border-color: #ecc9d0; background: var(--danger-soft); color: #8f3046; }
.notice { border-color: #eadbb8; background: var(--warning-soft); color: #75541a; }

/* App-Layoutrahmen und Spielnavigation */
main.wrap { padding-top: 22px; }
.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 22px; min-height: 68vh; }
.app-shell.wide-shell { display: block; }
.portal-main { min-width: 0; max-width: 100%; }
.sidebar { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding: 13px 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); scrollbar-color: #c9c4d8 transparent; scrollbar-width: thin; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 5px 7px 13px; border-bottom: 1px solid var(--line); }
.sidebar-mark { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 900; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { color: var(--text); font-size: 10px; letter-spacing: 1px; }
.sidebar-brand small { margin-top: 2px; color: var(--subtle); font-size: 10px; }
.sidebar-heading { padding: 15px 8px 7px; color: var(--subtle); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.sidebar-games { display: grid; gap: 3px; }
.sidebar-game { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; color: var(--text); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.sidebar-game:hover { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
.sidebar-game.active { border-color: #ded7f8; background: var(--accent-pale); color: var(--accent-strong); }
.sidebar-game-icon { width: 31px; height: 31px; display: grid; flex: 0 0 31px; place-items: center; border: 1px solid rgba(54,45,83,.08); border-radius: 9px; background: color-mix(in srgb, var(--game-glow, #8776cc) 14%, white); font-size: 16px; }
.sidebar-game-copy { display: block; flex: 1; min-width: 0; }
.sidebar-game-copy > span, .sidebar-game-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-game-copy > span { font-size: 11px; font-weight: 700; }
.sidebar-game-copy small { margin-top: 1px; color: var(--subtle); font-size: 9px; }
.sidebar-active-dot, .sidebar-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--accent); }
.sidebar-divider { height: 1px; margin: 10px 5px 2px; background: var(--line); }
.sidebar-current-heading { overflow-wrap: anywhere; padding-top: 11px; color: var(--muted); font-size: 9px; letter-spacing: .3px; }
.sidebar-sections { display: grid; gap: 2px; padding: 0 2px; }
.sidebar-section { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; transition: background .15s ease, color .15s ease; }
.sidebar-section > span { width: 18px; color: #8e82c2; font-size: 15px; text-align: center; }
.sidebar-section:hover, .sidebar-section.active { background: var(--accent-pale); color: var(--accent-strong); }
.sidebar-section.active { box-shadow: inset 2px 0 var(--accent); }
.sidebar-tip { display: grid; gap: 5px; margin: 13px 4px 3px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.sidebar-tip > span { color: var(--accent); font-size: 16px; }
.sidebar-tip strong { color: var(--text); font-size: 11px; }
.sidebar-tip small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.sidebar-bottom { display: flex; align-items: center; gap: 7px; margin: 12px 5px 0; padding: 10px 3px 0; border-top: 1px solid var(--line); color: var(--subtle); font-size: 9px; }

/* Startseite und Kontoseiten */
.hero { padding: 40px 0 20px; }
.eyebrow { color: var(--accent-strong); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.hero h1 { margin: 9px 0 11px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -1.4px; }
.hero p { max-width: 680px; margin: 0; color: var(--muted); }
.panel, .card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel { padding: 21px; }
.panel h2, .section-title { margin: 0 0 14px; font-size: 20px; letter-spacing: -.3px; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; margin: 20px 0 38px; }
.auth-card { padding: 23px; background: var(--surface); transition: border-color .15s ease; }
.auth-card:hover { border-color: #cfc7e9; }
.auth-card h2 { margin: 5px 0 16px; font-size: 22px; }
.auth-kicker { color: var(--accent-strong); font-size: 9px; font-weight: 850; letter-spacing: 1.3px; }
.auth-card .btn { margin-top: 4px; }
.intro-hero { position: relative; overflow: hidden; margin: 22px 0 18px; padding: 30px; border: 1px solid #e2def1; border-radius: 18px; background: linear-gradient(120deg, #fff 0%, #f6f3ff 100%); }
.intro-hero::after { position: absolute; top: 50%; right: 7%; transform: translateY(-50%); color: rgba(112,87,216,.08); content: "✦"; font-size: clamp(95px, 16vw, 170px); pointer-events: none; }
.intro-hero h1, .intro-hero p { position: relative; z-index: 1; }
.intro-hero h1 span, .portal-copy h1 span { color: var(--accent); }
.intro-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.intro-tags span { padding: 5px 9px; border: 1px solid #e2def1; border-radius: 999px; background: #fff; color: #605a79; font-size: 10px; font-weight: 700; }
.portal-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr); align-items: center; min-height: 286px; margin: 3px 0 34px; padding: 34px 42px; border: 1px solid #e1dcf0; border-radius: 19px; background: linear-gradient(115deg, #fff, #f3f0ff); }
.portal-hero::before { position: absolute; z-index: -1; inset: 0; opacity: .42; background-image: linear-gradient(rgba(112,87,216,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(112,87,216,.06) 1px, transparent 1px); background-size: 34px 34px; content: ""; mask-image: linear-gradient(90deg, transparent, #000 100%); }
.portal-copy { position: relative; z-index: 1; max-width: 640px; }
.portal-copy h1 { margin: 12px 0 13px; font-size: clamp(36px, 5vw, 60px); line-height: 1.03; letter-spacing: -2px; }
.portal-copy p { max-width: 530px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.live-dot { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--accent); }
.hero-cta { gap: 12px; padding: 11px 16px; }
.portal-art { position: relative; display: grid; place-items: center; min-height: 210px; }
.art-orbit { position: absolute; width: 170px; height: 170px; transform: rotate(28deg); border: 1px solid rgba(112,87,216,.2); border-radius: 35px; }
.orbit-two { width: 130px; height: 130px; transform: rotate(-26deg); border-color: rgba(112,87,216,.14); border-radius: 29px; }
.art-core { width: 82px; height: 82px; display: grid; place-items: center; transform: rotate(-5deg); border: 1px solid #ded8f4; border-radius: 22px; background: #fff; color: var(--accent); font-size: 42px; box-shadow: 0 10px 24px rgba(43,34,76,.08); }
.art-chip { position: absolute; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.chip-top { top: 18px; right: 4px; }
.chip-bottom { bottom: 15px; left: 2px; }
.art-spark { position: absolute; color: #8d7add; font-size: 20px; }
.spark-one { top: 44px; left: 24px; }
.spark-two { right: 26px; bottom: 40px; color: #b0a4e2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 10px 0; }
.section-heading .section-title { margin: 5px 0 0; }
.section-note { padding-bottom: 3px; color: var(--muted); font-size: 12px; }
.section-title { margin-top: 25px; }
#games { scroll-margin-top: 90px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin: 13px 0 48px; }
.game-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 185px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.game-card:hover { transform: translateY(-2px); border-color: #cbc3e8; box-shadow: 0 9px 20px rgba(43,34,76,.08); color: var(--text); }
.game-card::after { position: absolute; inset: auto 0 0; height: 2px; opacity: 0; background: var(--accent); content: ""; transition: opacity .15s ease; }
.game-card:hover::after { opacity: 1; }
.game-icon { height: 96px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 10px; background: color-mix(in srgb, var(--game-glow, #8776cc) 13%, white); font-size: 44px; }
.game-card strong { font-size: 14px; line-height: 1.3; }
.game-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }

/* Spielbereich, Kategorien und Projektkarten */
.backline { margin: 12px 0 0; }
.backline a { color: var(--accent-strong); font-size: 12px; text-decoration: none; }
.game-title { display: flex; align-items: center; gap: 14px; margin: 5px 0 25px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.game-title .mini-icon { width: 58px; height: 58px; display: grid; flex: 0 0 58px; place-items: center; border: 1px solid #e4e0f0; border-radius: 13px; background: var(--accent-pale); font-size: 34px; }
.game-title h1 { margin: 0; font-size: clamp(25px, 3.8vw, 38px); letter-spacing: -1px; line-height: 1.15; }
.game-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 44px; }
.category-card { min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.category-card:hover { border-color: #cbc3e8; box-shadow: var(--shadow); color: var(--text); }
.category-emoji { color: var(--accent); font-size: 32px; font-weight: 800; }
.category-card h2 { margin: 8px 0 4px; font-size: 20px; }
.category-card p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; }
.category-card .btn { align-self: flex-start; margin-top: 14px; }
.listing-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 24px 0 10px; }
.listing-head h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.listing-head .meta { margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin: 13px 0 48px; }
.card { overflow: hidden; padding: 13px; border-radius: 14px; box-shadow: 0 4px 14px rgba(43,34,76,.04); transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: #d3ccec; box-shadow: 0 9px 20px rgba(43,34,76,.075); }
.project-art { position: relative; overflow: hidden; height: 106px; display: flex; align-items: center; justify-content: center; margin: -13px -13px 12px; background: color-mix(in srgb, var(--project-glow, #8776cc) 14%, white); }
.project-art::before, .project-art::after { position: absolute; transform: rotate(35deg); border: 1px solid rgba(75,61,124,.1); border-radius: 21px; content: ""; }
.project-art::before { width: 125px; height: 125px; }
.project-art::after { width: 90px; height: 90px; transform: rotate(-28deg); border-color: rgba(75,61,124,.12); }
.project-icon { position: relative; z-index: 1; font-size: 42px; }
.project-kind { position: absolute; z-index: 2; bottom: 8px; left: 9px; padding: 4px 7px; border: 1px solid rgba(55,48,81,.09); border-radius: 6px; background: rgba(255,255,255,.88); color: #514b66; font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.tag, .status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.tag { background: var(--accent-pale); color: var(--accent-strong); }
.status.approved { border: 1px solid #ded8f4; background: #f2efff; color: #5946a2; }
.status.pending { border: 1px solid #eadbb8; background: var(--warning-soft); color: var(--warning); }
.status.rejected { border: 1px solid #ecc9d0; background: var(--danger-soft); color: var(--danger); }
.card h3 { margin: 9px 0 4px; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.card .description { min-height: 44px; margin: 10px 0; color: #5e5a6d; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.file { overflow-wrap: anywhere; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.card details { margin-top: 9px; color: var(--muted); font-size: 11px; }
.card summary { width: fit-content; color: var(--accent-strong); cursor: pointer; }
.card code, .notice code { overflow-wrap: anywhere; }
.review { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.review form { display: grid; gap: 8px; }
.review textarea { min-height: 52px; }
.empty { margin: 16px 0 44px; padding: 26px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--muted); text-align: center; }

/* Upload, Konto, Admin und Community */
.content-panel { margin: 20px 0; }
.content-panel .panel { max-width: 900px; }
.content-panel .notice { line-height: 1.55; }
.content-panel .field:last-of-type { margin-bottom: 17px; }
.settings-card { max-width: 760px; padding: 23px; }
.settings-card h2 { margin-top: 5px; }
.settings-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid #ddd7f2; border-radius: 12px; background: var(--accent-pale); color: var(--accent); font-size: 20px; }
.settings-check { margin: 16px 0 9px; }
.settings-card .btn { margin: 7px 7px 0 0; }
.foot { padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }
.admin-users { max-width: none !important; }
.account-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.account-section-heading h2 { margin: 5px 0; }
.account-section-heading .meta { max-width: 820px; margin: 0; line-height: 1.5; }
.account-count { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #ded8f4; border-radius: 999px; background: var(--accent-pale); color: var(--accent-strong); font-size: 11px; font-weight: 750; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.account-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.account-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.account-header h3 { margin: 0; overflow-wrap: anywhere; font-size: 15px; }
.account-header p { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.account-meta { margin-top: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 11px; }
.account-reason { margin: 9px 0; padding: 8px 9px; border-left: 2px solid #d3ad5e; background: var(--warning-soft); color: #6a511f; font-size: 11px; overflow-wrap: anywhere; }
.account-protected { margin: 10px 0 0; color: var(--accent-strong); font-size: 11px; }
.account-actions { display: grid; gap: 10px; margin-top: 10px; }
.account-action-form { display: grid; gap: 6px; min-width: 0; }
.account-action-form input { min-height: 36px; font-size: 12px; }
.account-action-form .btn { justify-self: start; }
.delete-user-form { padding-top: 10px; border-top: 1px solid var(--line); }
.delete-user-form label { color: var(--muted); font-size: 11px; line-height: 1.45; }
.delete-user-form label strong { color: var(--danger); overflow-wrap: anywhere; }
.danger-zone { margin-top: 24px; padding: 17px; border: 1px solid #eccbd2; border-radius: 13px; background: #fff8f9; }
.danger-zone .eyebrow { color: var(--danger); }
.danger-zone h2 { margin: 5px 0 7px; color: #542c38; font-size: 19px; }
.danger-zone > p { max-width: 760px; margin: 0 0 12px; color: #70545c; font-size: 12px; }
.delete-account-form { max-width: 560px; }
.delete-account-form .field { margin: 11px 0; }
.delete-account-form .btn { margin-top: 2px; }
.account-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.account-count { display: inline-flex; align-items: center; gap: 6px; }
.account-count strong { color: var(--text); font-size: 13px; }
.account-count.active-count { border-color: var(--line); background: var(--surface-soft); color: var(--muted); }
.account-count.banned-count { border-color: #ecc9d0; background: var(--danger-soft); color: var(--danger); }
.account-toolbar { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(160px, .7fr) auto; align-items: end; gap: 11px; margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.account-filter-field { display: grid; gap: 5px; min-width: 0; }
.account-filter-field label { color: var(--text); font-size: 11px; font-weight: 700; }
.account-filter-field input, .account-filter-field select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); }
.account-toolbar > .meta { margin: 0 0 9px; text-align: right; white-space: nowrap; }
.account-card[hidden], #admin-user-empty[hidden] { display: none !important; }

/* Mod-Detailseiten, Bewertungen und Kommentare */
.project-detail { display: grid; gap: 17px; }
.project-detail > .backline { margin: 0; }
.project-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.project-detail-head h1 { margin: 5px 0; font-size: clamp(25px, 3.8vw, 36px); letter-spacing: -.7px; }
.project-detail-head .meta { margin: 6px 0 0; }
.project-detail-actions, .project-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.project-detail-actions .inline, .project-card-actions .inline { margin: 0; }
.project-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.project-meta-grid > div { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.project-meta-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.project-meta-grid strong { color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.project-copy { padding-top: 3px; }
.project-copy h2 { margin: 0 0 9px; color: var(--text); font-size: 17px; }
.project-description { white-space: pre-wrap; line-height: 1.7; }
.changelog-text { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: #514d60; font: inherit; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.edit-project { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.edit-project summary { color: var(--accent-strong); font-weight: 700; cursor: pointer; }
.project-edit-form { max-width: 780px; padding-top: 11px; }
.project-edit-form .field { margin: 11px 0; }
.rating-box, .comments-section { padding-top: 16px; border-top: 1px solid var(--line); }
.rating-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.rating-form label { flex-basis: 100%; color: var(--text); font-size: 12px; }
.rating-form select { min-width: 180px; min-height: 39px; }
.comment-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; margin-left: 5px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-soft); color: var(--accent-strong); font-size: 11px; vertical-align: middle; }
.comment-list { display: grid; gap: 8px; max-height: 560px; overflow: auto; }
.comment { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.comment-heading { display: flex; justify-content: space-between; gap: 10px; color: var(--text); font-size: 12px; }
.comment-heading time { color: var(--subtle); font-size: 10px; }
.comment > p { margin: 7px 0 0; color: #514d60; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.comment-form { display: grid; gap: 8px; margin-top: 14px; }
.comment-form label { color: var(--text); font-size: 12px; font-weight: 700; }
.comment-form textarea { min-height: 95px; }
.project-card-social { display: grid; gap: 9px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.project-stats { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 11px; }
.project-title-link { color: inherit; text-decoration: none; }
.project-title-link:hover { color: var(--accent-strong); }
.project-not-found { margin-top: 18px; }

/* Sortierung */
.listing-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.sort-form { display: flex; align-items: center; gap: 7px; margin: 0; }
.sort-form label { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sort-form select { width: auto; min-width: 175px; min-height: 37px; padding: 7px 9px; border-color: var(--line); background: #fff; font-size: 12px; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
  .sidebar { top: 110px; max-height: calc(100vh - 125px); }
  .wrap { width: min(100% - 36px, var(--max-width)); }
  .toolbar { gap: 7px; }
  .tabs a { padding-inline: 8px; font-size: 11px; }
}
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .toolbar { order: 3; flex: 1 1 100%; max-width: none; }
  .userline { margin-left: auto; }
  .portal-hero { padding-inline: 30px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  .wrap { width: min(100% - 28px, var(--max-width)); }
  main.wrap { padding-top: 12px; }
  .nav { gap: 9px 12px; padding-block: 10px; }
  .brand-name { font-size: 20px; }
  .userline { flex-wrap: wrap; gap: 6px; }
  .userline .user-name { margin-right: auto; }
  .toolbar { display: grid; gap: 7px; }
  .search { width: 100%; }
  .tabs { width: 100%; justify-content: space-around; }
  .tabs a { flex: 1; text-align: center; }
  .app-shell { display: flex; flex-direction: column; gap: 12px; }
  .app-shell.wide-shell { display: block; }
  .sidebar { position: static; width: 100%; max-height: none; overflow: hidden; padding: 10px; border-radius: 13px; }
  .sidebar-brand { padding: 2px 5px 9px; }
  .sidebar-brand small { display: none; }
  .sidebar-heading { padding: 10px 5px 6px; }
  .sidebar-games { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 1px 6px; scroll-snap-type: x proximity; }
  .sidebar-game { flex: 0 0 168px; min-height: 50px; padding: 6px; scroll-snap-align: start; }
  .sidebar-game-copy > span { font-size: 10px; }
  .sidebar-game-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .sidebar-divider { margin: 5px 3px 0; }
  .sidebar-current-heading { padding-top: 8px; }
  .sidebar-sections { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0; }
  .sidebar-section { min-height: 51px; flex-direction: column; justify-content: center; gap: 2px; padding: 5px 3px; font-size: 9px; text-align: center; }
  .sidebar-section > span { font-size: 15px; }
  .sidebar-section.active { box-shadow: inset 0 -2px var(--accent); }
  .sidebar-tip, .sidebar-bottom { display: none; }
  .portal-main { width: 100%; }
  .portal-hero { grid-template-columns: 1fr; min-height: 0; margin: 15px 0 26px; padding: 25px 21px; }
  .portal-copy h1 { font-size: clamp(36px, 9vw, 52px); }
  .portal-art { min-height: 160px; margin-top: 1px; }
  .art-orbit { width: 135px; height: 135px; }
  .orbit-two { width: 105px; height: 105px; }
  .art-core { width: 68px; height: 68px; border-radius: 18px; font-size: 34px; }
  .chip-top { right: 8%; }
  .chip-bottom { left: 7%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-note { padding: 0; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .game-card { min-height: 160px; }
  .game-icon { height: 79px; }
  .auth-grid, .category-grid { grid-template-columns: 1fr; }
  .listing-head { align-items: flex-start; flex-direction: column; }
  .cards { grid-template-columns: 1fr; }
  .project-art { height: 116px; }
  .hero { padding-top: 28px; }
  .foot { line-height: 1.6; }
  .project-detail-head { display: grid; }
  .project-detail-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .project-detail-actions > *, .project-detail-actions .inline, .project-detail-actions .inline .btn { width: 100%; }
  .project-detail-actions > .btn:first-child { grid-column: 1 / -1; }
  .project-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card-actions > *, .project-card-actions .inline, .project-card-actions .inline .btn { flex: 1 1 auto; }
  .listing-controls { width: 100%; justify-content: flex-start; }
  .sort-form { flex: 1 1 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .sort-form select { min-width: 0; }
  .account-section-heading { flex-direction: column; }
  .account-summary { justify-content: flex-start; }
  .account-toolbar { grid-template-columns: 1fr; }
  .account-toolbar > .meta { margin: 0; text-align: left; }
}
@media (max-width: 480px) {
  .wrap { width: min(100% - 22px, var(--max-width)); }
  .nav { align-items: center; }
  .userline { width: 100%; justify-content: flex-start; }
  .userline > span:not(.user-name) { margin-left: auto; }
  .userline .btn.small { min-height: 32px; padding: 6px 8px; font-size: 11px; }
  .intro-hero { margin-top: 13px; padding: 22px 17px; }
  .intro-hero::after { right: -2%; opacity: .65; }
  .portal-hero { padding: 22px 17px; border-radius: 15px; }
  .portal-copy p { font-size: 13px; }
  .game-grid { gap: 8px; }
  .game-card { min-height: 150px; padding: 10px; }
  .game-card strong { font-size: 12px; }
  .game-icon { height: 70px; margin-bottom: 8px; font-size: 38px; }
  .game-title { align-items: flex-start; gap: 10px; padding: 13px; }
  .game-title .mini-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 11px; font-size: 28px; }
  .game-title p { font-size: 11px; }
  .panel, .auth-card, .settings-card { padding: 16px; }
  .category-card { min-height: 175px; padding: 18px; }
  .card { padding: 11px; }
  .project-art { margin: -11px -11px 12px; }
  .sort-form { grid-template-columns: 1fr; }
  .sort-form select, .sort-form .btn { width: 100%; }
  .listing-controls > .btn { align-self: flex-start; }
  .account-grid { grid-template-columns: 1fr; }
  .account-card { padding: 12px; }
  .account-action-form .btn { width: 100%; }
  .danger-zone { margin-inline: -1px; padding: 14px; }
  .foot { padding-top: 16px; }
}
@media (max-width: 370px) {
  .wrap { width: min(100% - 18px, var(--max-width)); }
  .sidebar-game { flex-basis: 150px; }
  .sidebar-section { font-size: 8px; }
  .userline { gap: 4px; }
  .userline .btn.small { padding-inline: 6px; font-size: 10px; }
  .game-card { min-height: 142px; }
  .game-icon { height: 64px; font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  :focus-visible { outline: 2px solid CanvasText; }
  .btn { border: 1px solid ButtonText; }
}
