/* AlmanCity Forum */
:root {
  --bg: #0C0C0E;
  --surface: #111114;
  --surface-2: #141417;
  --surface-3: #16161A;
  --field: #0F0F12;
  --line: #1F1F23;
  --line-2: #232328;
  --line-3: #2E2E34;
  --text: #F4F4F5;
  --text-2: #D4D4D8;
  --muted: #8A8A93;
  --muted-2: #A1A1AA;
  --accent: #E11D2E;
  --accent-soft: rgba(225, 29, 46, 0.14);
  --accent-text: #FF6B74;
  --discord: #5865F2;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
img { max-width: 100%; }
hr { border: 0; height: 1px; background: var(--line); margin: 4px 0; width: 100%; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 13px; }
.strong { font-weight: 800; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Header */
.topbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(12, 12, 14, 0.94); backdrop-filter: blur(8px); padding-top: env(safe-area-inset-top, 0px); }
.topbar-inner { height: 76px; display: flex; align-items: center; gap: 40px; }
.logo { font-family: var(--display); font-size: 28px; letter-spacing: 1px; display: flex; gap: 2px; line-height: 1; }
.logo .red, .red { color: var(--accent); }
.logo.small { font-size: 22px; }
.mainnav { display: flex; align-items: center; gap: 28px; flex-grow: 1; font-weight: 600; }
.mainnav > a { color: var(--muted-2); }
.mainnav > a.active, .mainnav > a:hover { color: var(--text); }
.nav-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-user form { margin: 0; }
.who { display: flex; flex-direction: column; line-height: 1.25; }
.who strong { font-size: 14px; }
.who span { font-size: 12px; font-weight: 700; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; background: transparent; border: 1px solid #3A3A40; border-radius: 8px; color: var(--text); padding: 0; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.notice { margin-top: 16px; padding: 14px 18px; border: 1px solid rgba(250, 204, 21, 0.3); background: rgba(250, 204, 21, 0.08); border-radius: 10px; color: #E4D9A6; font-size: 14px; }
.notice a { color: #FACC15; font-weight: 800; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 800; border: 1px solid transparent; cursor: pointer; color: #FFFFFF; white-space: nowrap; }
.btn:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn.primary { background: var(--accent); }
.btn.discord { background: var(--discord); }
.btn.ghost { background: transparent; border-color: #3A3A40; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; font-weight: 700; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.linkbtn:hover { color: var(--accent-text); }

/* Avatare */
.avatar { border-radius: 50%; background: #2A2A30; object-fit: cover; flex-shrink: 0; }
.avatar.xs { width: 32px; height: 32px; }
.avatar.sm { width: 36px; height: 36px; }
.avatar.md { width: 42px; height: 42px; }
.avatar.lg { width: 84px; height: 84px; border: 3px solid transparent; }
.avatar.xl { width: 80px; height: 80px; }
.avatar.ring { border: 2px solid var(--discord); }

/* Kopfbereich der Seiten */
.hero-band { border-bottom: 1px solid var(--line); padding: 44px 0 32px; }
.band-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.display { font-family: var(--display); font-weight: 400; font-size: 72px; line-height: 1; margin: 0 0 12px; text-transform: uppercase; }
.display.md { font-size: 56px; }
.lead { margin: 0; font-size: 16px; color: var(--muted-2); max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs .cur { color: var(--text-2); }
.stats { display: flex; gap: 36px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 24px; font-weight: 800; }
.stats span { font-size: 13px; color: var(--muted); }

/* Layout */
.layout { display: flex; gap: 28px; align-items: flex-start; padding-top: 32px; }
.col-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.layout > .col-main.stack { padding-top: 0; }
.col-side { width: 330px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
main + aside, .wrap.stack { padding-bottom: 8px; }

/* Panels und Karten */
.panel { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); }
.panel-head { margin: 0; height: 50px; padding: 0 22px; display: flex; align-items: center; gap: 12px; background: var(--surface-3); border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.bar { width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.card { padding: 22px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 19px; font-weight: 800; }
.card .card-title { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.card .card-title .small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.card p { margin: 0; }
.card-discord { border-top: 3px solid var(--discord); }
.team-card { border: 1px dashed rgba(225, 29, 46, 0.5); }

/* Forenliste */
.board-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid #1C1C21; }
.board-row:last-child { border-bottom: 0; }
.board-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: #FF4A55; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.board-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.board-title { font-size: 17px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { padding: 3px 10px; border-radius: 6px; background: #1B1B20; border: 1px solid #26262B; font-size: 12px; font-weight: 600; color: #C4C4CC; }
.board-stats { width: 150px; flex-shrink: 0; display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
.board-stats div { display: flex; flex-direction: column; }
.board-stats strong { font-size: 16px; color: var(--text); }
.board-last { width: 230px; flex-shrink: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.last-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.last-text a { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Status-Labels */
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; white-space: nowrap; }
.st-open { background: rgba(161, 161, 170, 0.16); color: #D4D4D8; --c: #D4D4D8; }
.st-review { background: rgba(250, 204, 21, 0.14); color: #FACC15; --c: #FACC15; }
.st-approved { background: rgba(74, 222, 128, 0.14); color: #4ADE80; --c: #4ADE80; }
.st-rejected { background: rgba(255, 74, 85, 0.16); color: #FF6B74; --c: #FF6B74; }
.st-closed { background: rgba(113, 113, 122, 0.2); color: #A1A1AA; --c: #A1A1AA; }
.st-pin { background: var(--accent-soft); color: var(--accent-text); }

/* Seitenleiste */
.latest { display: flex; flex-direction: column; gap: 5px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.latest:last-child { border-bottom: 0; padding-bottom: 0; }
.latest a { font-weight: 700; font-size: 14px; }
.latest-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.online-count { display: inline-flex; align-items: center; gap: 8px; color: #4ADE80; letter-spacing: 0; }
.online-count i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.tips { margin: 0; padding-left: 18px; color: var(--muted-2); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.tips li::marker { color: var(--accent); }

/* Filter */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; flex-wrap: wrap; }
.segmented a { height: 38px; padding: 0 16px; display: flex; align-items: center; border-radius: 7px; font-size: 14px; font-weight: 700; color: var(--muted-2); }
.segmented a.on { background: #26262B; color: #FFFFFF; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { height: 34px; padding: 0 14px; display: flex; align-items: center; border-radius: 17px; font-size: 13px; font-weight: 700; color: var(--muted-2); border: 1px solid var(--line-3); background: transparent; }
.pill.on { color: var(--c, #FFFFFF); border-color: var(--c, #FFFFFF); }
.pill:not(.on) { background: transparent; }

/* Themenliste */
.list-head { height: 44px; padding: 0 22px; display: flex; align-items: center; gap: 16px; background: var(--surface-3); border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.list-head span:first-child { flex-grow: 1; }
.w-rep { width: 100px; flex-shrink: 0; }
.w-last { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.thread-row { display: flex; align-items: center; gap: 16px; padding: 15px 22px; border-bottom: 1px solid #1C1C21; color: var(--text); }
.thread-row:hover { background: #141418; color: var(--text); }
.thread-row.pinned { background: rgba(225, 29, 46, 0.05); }
.thread-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.thread-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.thread-title .t { font-size: 16px; font-weight: 700; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty p { margin: 0; }
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; font-size: 14px; background: var(--surface-2); border: 1px solid #26262B; }
.pager span { background: transparent; border-color: transparent; color: var(--muted); }
.pager a.on { background: var(--accent); border-color: var(--accent); }

/* Thema */
.thread-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.thread-head .tag { font-size: 13px; padding: 6px 12px; }
.thread-h1 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.2; }
.meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.post { display: flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; position: relative; scroll-margin-top: 100px; }
.post.team { border-color: rgba(225, 29, 46, 0.4); }
.post.team::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.post-author { width: 180px; flex-shrink: 0; padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--surface-2); border-right: 1px solid var(--line); }
.post-author strong { font-size: 15px; word-break: break-word; }
.badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.post-body { flex-grow: 1; min-width: 0; padding: 24px 30px; display: flex; flex-direction: column; gap: 18px; }
.post-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.post-meta a { color: var(--muted); }
.post-meta form { margin: 0; }
.fields { margin: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.fields div { display: flex; border-bottom: 1px solid var(--line); }
.fields div:last-child { border-bottom: 0; }
.fields dt { width: 230px; flex-shrink: 0; padding: 13px 16px; background: var(--surface-3); font-size: 13px; font-weight: 700; color: var(--muted-2); }
.fields dd { margin: 0; padding: 13px 16px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.content { font-size: 15px; line-height: 1.7; color: #E4E4E7; word-break: break-word; }
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.content a { color: var(--accent-text); text-decoration: underline; }
.content blockquote { margin: 0; padding: 10px 16px; border-left: 3px solid var(--line-3); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--muted-2); }
.content code { background: var(--surface-3); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.content img { border-radius: 8px; }
.logline { display: flex; align-items: center; gap: 14px; padding: 0 20px; font-size: 13px; color: var(--muted); }
.logline span { flex-grow: 1; height: 1px; background: var(--line-2); }
.logline p { margin: 0; text-align: center; }
.logline strong { color: var(--text-2); }
.reply { display: flex; gap: 18px; padding: 22px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; }
.reply-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.toolbar { display: flex; gap: 4px; }
.toolbar button { height: 34px; min-width: 34px; padding: 0 10px; background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--muted-2); font: inherit; font-size: 13px; cursor: pointer; }
.toolbar button:hover { border-color: var(--line-3); color: #FFFFFF; }
.actions { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.act { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #1B1B20; border: 1px solid #26262B; border-radius: 8px; color: #E4E4E7; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.act i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.act.on { color: var(--c); border-color: var(--c); }
.act[class*="st-"]:not(.on) { background: #1B1B20; color: #E4E4E7; }
.act.danger { color: var(--accent-text); }

/* Formulare */
.form { padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; }
.field small { font-size: 12px; color: var(--muted); }
input[type="text"], textarea { width: 100%; padding: 13px 16px; background: var(--field); border: 1px solid #26262B; border-radius: 10px; color: #FFFFFF; font: inherit; font-size: 15px; }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #5E5E66; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.alert { padding: 16px 20px; border: 1px solid rgba(255, 74, 85, 0.4); background: rgba(255, 74, 85, 0.08); border-radius: 12px; color: #FFC9CD; font-size: 14px; }
.alert ul { margin: 8px 0 0; padding-left: 18px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tpl { padding: 16px; display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; color: var(--muted-2); }
.tpl strong { color: var(--text); font-size: 15px; }
.tpl.on { background: rgba(225, 29, 46, 0.1); border-color: var(--accent); color: #FF4A55; }

/* Login */
.login { flex-grow: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 77px - 110px); }
.login-brand { padding: 64px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); border-right: 1px solid var(--line); background-image: linear-gradient(#18181C 1px, transparent 1px), linear-gradient(90deg, #18181C 1px, transparent 1px); background-size: 48px 48px; }
.login-box { padding: 64px; max-width: 540px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.login-box h2 { margin: 0; font-size: 32px; font-weight: 800; }
.login-box a:not(.btn) { color: var(--text-2); text-decoration: underline; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-item i { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: rgba(74, 222, 128, 0.16); position: relative; }
.check-item i::after { content: ''; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #4ADE80; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check-item div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }

/* Team */
.team-group h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 12px 0 16px; }
.team-group h2 i { width: 12px; height: 12px; border-radius: 3px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.member { padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-top: 3px solid; border-radius: 14px; text-align: center; }

.error-page { padding: 96px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.error-page .display { margin: 0; }

/* Footer */
.footer { margin-top: auto; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
body > .wrap:last-of-type, .layout, .wrap.stack { margin-bottom: 64px; }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer nav a { color: var(--muted-2); }

/* Tablet */
@media (max-width: 1100px) {
  .board-last { display: none; }
  .col-side { width: 290px; }
}

/* Handy */
@media (max-width: 860px) {
  .wrap { padding: 0 18px; }
  .topbar-inner { height: 64px; gap: 16px; }
  .logo { font-size: 24px; }
  .menu-btn { display: flex; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 18px 18px; }
  .mainnav.open { display: flex; }
  .mainnav > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-user { margin: 14px 0 0; flex-wrap: wrap; }
  .hero-band { padding: 28px 0 24px; }
  .band-inner { flex-direction: column; align-items: stretch; }
  .display { font-size: 48px; }
  .display.md { font-size: 40px; }
  .stats { gap: 24px; }
  .layout { flex-direction: column; padding-top: 20px; }
  .col-side { width: 100%; }
  .board-row { padding: 16px; gap: 14px; }
  .board-stats { display: none; }
  .list-head { display: none; }
  .thread-row { padding: 14px 16px; }
  .w-rep { display: none; }
  .w-last { display: none; }
  .thread-h1 { font-size: 26px; }
  .post { flex-direction: column; }
  .post-author { width: auto; flex-direction: row; flex-wrap: wrap; text-align: left; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-author .avatar.lg { width: 44px; height: 44px; border-width: 2px; }
  .post-author .muted.small { display: none; }
  .post-body { padding: 18px 16px; }
  .fields div { flex-direction: column; }
  .fields dt { width: auto; padding-bottom: 6px; }
  .fields dd { padding-top: 6px; }
  .reply { padding: 16px; }
  .reply > .avatar { display: none; }
  .form { padding: 20px; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 40px 20px; }
  .login-box { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn.lg { width: 100%; }
}


/* ---------- Website ---------- */
.btn.dark { background: #0C0C0E; }
.btn.light { background: #FFFFFF; color: #0C0C0E; }
.btn.light:hover { color: #0C0C0E; }
.wrap-row { flex-wrap: wrap; }
.red-text { color: var(--accent); }
code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 13px; background: var(--surface-3); padding: 2px 6px; border-radius: 4px; color: var(--text-2); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--muted-2); }
.eyebrow span { width: 32px; height: 2px; background: var(--accent); }
.eyebrow.red-text { color: var(--accent); }
.lead.lg { font-size: 18px; line-height: 1.6; max-width: 540px; }

.home-hero { padding: 80px 0 40px; }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.home-hero-text { display: flex; flex-direction: column; gap: 28px; }
.home-hero-text .eyebrow { margin: 0; }
.home-h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 6.2vw, 96px); line-height: 0.95; text-transform: uppercase; }
.server-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 20px; background: var(--surface-3); border: 1px solid #26262B; border-radius: 12px; font-size: 14px; color: var(--muted-2); align-self: flex-start; }
.server-status strong { font-size: 19px; color: #FFFFFF; }
.server-status .sep { width: 1px; height: 26px; background: var(--line-3); }
.dot { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.dot.on { color: #4ADE80; }
.dot.on::before { background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.dot.off { color: var(--muted-2); }
.dot.off::before { background: #71717A; }
.home-hero-media { position: relative; }
.frame { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--surface-2); border: 1px solid #26262B; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #71717A; font-size: 14px; font-weight: 600; background-image: linear-gradient(#1C1C21 1px, transparent 1px), linear-gradient(90deg, #1C1C21 1px, transparent 1px); background-size: 48px 48px; }
.corner { position: absolute; width: 90px; height: 90px; border: 0 solid var(--accent); pointer-events: none; }
.corner.tr { top: -14px; right: -14px; border-top-width: 4px; border-right-width: 4px; border-radius: 0 20px 0 0; }
.corner.bl { bottom: -14px; left: -14px; border-bottom-width: 4px; border-left-width: 4px; border-radius: 0 0 0 20px; }

.home-section { padding: 110px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section-head .display { margin: 0; }
.section-head .lead { max-width: 420px; }
.center-head { flex-direction: column; align-items: center; text-align: center; }
.center-head .eyebrow { justify-content: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 30px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { margin: 4px 0 0; font-size: 21px; font-weight: 800; }
.feature p { font-size: 15px; line-height: 1.6; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { padding: 32px 28px 0 0; border-top: 3px solid #26262B; position: relative; display: flex; flex-direction: column; gap: 12px; }
.steps li::before { content: ''; position: absolute; top: -3px; left: 0; width: 64px; height: 3px; background: var(--accent); }
.step-n { font-family: var(--display); font-size: 60px; line-height: 1; }
.steps h3 { margin: 0; font-size: 21px; font-weight: 800; }
.steps p { line-height: 1.6; }
.steps a { color: var(--text-2); text-decoration: underline; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.more .ico { width: 18px; height: 18px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news { padding: 26px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.news:hover { border-color: var(--line-3); color: var(--text); }
.news h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
.news p { font-size: 14px; line-height: 1.6; }
.cta { margin: 110px 0 80px; padding: 56px 64px; border-radius: 20px; background: var(--accent); display: flex; justify-content: space-between; align-items: center; gap: 32px; position: relative; overflow: hidden; }
.cta::after { content: 'AC'; position: absolute; right: -30px; top: -70px; font-family: var(--display); font-size: 340px; line-height: 1; color: rgba(0, 0, 0, 0.12); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta .display { margin: 0 0 10px; }
.cta p { margin: 0; color: #FFE4E6; font-size: 17px; }

.rules { align-items: flex-start; }
.rules-intro p { margin: 0; }
.rules-toc { width: 260px; flex-shrink: 0; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; }
.rules-toc a { padding: 12px 16px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; color: var(--muted-2); font-weight: 700; }
.rules-toc a:hover { background: var(--surface-3); border-left-color: var(--accent); color: #FFFFFF; }
.rules-section { padding: 28px 30px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; scroll-margin-top: 100px; }
.rules-section h2 { margin: 0 0 16px; font-size: 26px; font-weight: 800; }
.rules-section .content p { margin: 0 0 14px; }
.rules-section .content strong { color: #FFFFFF; }
.notice.inline, .rules .notice { margin-top: 0; }
.page-body { max-width: 820px; padding-top: 36px; padding-bottom: 80px; margin-left: 0; }
.page-body .content h2, .page-body .content h3 { margin: 28px 0 10px; }

@media (max-width: 1000px) {
  .feature-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-media { max-width: 560px; }
}
@media (max-width: 860px) {
  .home-hero { padding: 40px 0 20px; }
  .home-hero-media { margin: 20px 10px 0; }
  .frame { aspect-ratio: 16 / 10; }
  .corner { width: 56px; height: 56px; }
  .corner.tr { top: -10px; right: -10px; border-top-width: 3px; border-right-width: 3px; }
  .corner.bl { bottom: -10px; left: -10px; border-bottom-width: 3px; border-left-width: 3px; }
  .home-section { padding-top: 72px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .center-head { align-items: flex-start; text-align: left; }
  .feature-grid, .news-grid, .steps { grid-template-columns: 1fr; }
  .feature { padding: 22px; }
  .cta { margin: 72px 0 56px; padding: 36px 24px; flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; }
  .rules { flex-direction: column; }
  .rules-toc { position: static; width: 100%; flex-direction: row; overflow-x: auto; gap: 6px; }
  .rules-toc a { white-space: nowrap; border-left: 0; border-radius: 8px; background: var(--surface-2); }
  .rules-section { padding: 20px; }
  .server-status { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
