:root {
  color-scheme: dark;
  --bg: #1b1023;
  --ink: #fff3f7;
  --muted: #d6c5dc;
  --lilac: #dfaaf0;
  --orange: #ffb55e;
  --line: #543863;
  font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 2 * clamp(24px, 6vw, 82px))); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.wordmark { font-size: 1.65rem; font-weight: 800; letter-spacing: -.075em; text-decoration: none; white-space: nowrap; }
.wordmark > span:first-child { color: var(--lilac); }
.dot { color: var(--orange); }
nav { display: flex; gap: clamp(18px, 4vw, 43px); font-size: .95rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover { color: var(--lilac); }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(28px, 6vw, 82px); padding-block: clamp(58px, 8vw, 110px); }
.label { display: flex; align-items: center; gap: .68rem; margin: 0 0 1.3rem; font-size: .875rem; color: var(--lilac); text-transform: uppercase; letter-spacing: .14em; font-weight: 750; }
.label span { display: inline-block; width: 21px; height: 3px; background: var(--orange); }
h1, h2, h3 { margin: 0; line-height: .98; font-weight: 850; letter-spacing: -.065em; }
h1 { font-size: clamp(3.45rem, 6.8vw, 6.75rem); }
h1 em { color: var(--lilac); font-style: normal; }
.intro { color: var(--muted); max-width: 38ch; line-height: 1.62; font-size: clamp(1rem, 1.5vw, 1.14rem); margin: 1.55rem 0 1.75rem; }
.button { display: inline-flex; align-items: center; min-height: 49px; padding: 0 1.2rem; background: var(--orange); color: #291420; border: 1px solid var(--orange); border-radius: 7px; text-decoration: none; font-weight: 800; }
.button:hover { background: #ffcb8b; }
.art { margin: 0; padding: 10px; border: 1px solid #9466a6; border-radius: 24px; background: #35243e; box-shadow: 13px 13px 0 #30203a; transform: rotate(2deg); }
.art img { display: block; width: 100%; height: auto; border-radius: 15px; }
.lines { background: #24142e; border-block: 1px solid var(--line); padding-block: clamp(52px, 8vw, 96px); }
h2 { font-size: clamp(2.7rem, 5.5vw, 5rem); }
.line-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.camps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; }
.camp-card { display: grid; align-content: start; gap: 8px; overflow-wrap: anywhere; }
.camp-card h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.2; }
.camp-card p { margin: 0; color: var(--lilac); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; }
.camp-card time { color: var(--muted); font-size: .9rem; }
[hidden] { display: none !important; }
.line { padding: clamp(18px, 3.5vw, 35px); background: #392345; border: 1px solid #6e4a7d; border-radius: 14px; }
.line.pesadelo { background: #331b39; border-color: #744467; }
.line-header { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.line-logo { width: clamp(58px, 8vw, 80px); height: auto; aspect-ratio: 1; object-fit: contain; flex: none; }
.line-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; }
.line-roster div { padding: 10px 12px; background: #2b1a34; border-left: 2px solid var(--orange); border-radius: 5px; }
.line-roster dt { color: var(--lilac); font-size: .875rem; }
.line-roster dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.line-reserves, .line-pending { color: var(--muted); line-height: 1.5; margin: 18px 0 0; }
h3 { font-size: clamp(1.9rem, 4vw, 3.5rem); }
.lines-note, .footer > span:last-child { color: var(--muted); line-height: 1.5; }
.lines-note { margin: 22px 0 0; }
.community { padding-block: clamp(48px, 7vw, 86px); }
.community-panel {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  align-items: center; gap: clamp(26px, 6vw, 80px); overflow: hidden;
  padding: clamp(24px, 5vw, 62px); border: 1px solid #644873; border-radius: 23px;
  background: radial-gradient(ellipse at 15% 15%, #35213f, #271832 46%, #1b1123 90%);
}
.community h2 { max-width: 13ch; font-size: clamp(2.7rem, 5vw, 5rem); }
.community h2 em { display: block; font-family: Georgia, serif; font-weight: 500; color: var(--lilac); }
.community-intro { margin: 22px 0; max-width: 39ch; line-height: 1.6; color: var(--muted); }
.community-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.community-count { display: flex; align-items: center; gap: 9px; min-height: 49px; padding: 7px 12px; border: 1px solid #644873; border-radius: 8px; color: var(--muted); font-size: .875rem; }
.community-count strong { font-size: 1.2rem; color: var(--lilac); }
.community-preview { position: relative; isolation: isolate; min-width: 0; }
.community-preview::before {
  content: ''; position: absolute; inset: -10% -15%; z-index: -1;
  background: radial-gradient(circle, #af75cc1d 0 47%, #bb93d522 47.3% 47.7%, #af75cc12 48% 62%, transparent 63%);
  pointer-events: none;
}
.discord-card { background: #1f1528; border: 1px solid #644873; border-radius: 16px; padding: 17px; box-shadow: 8px 11px 0 #150c1bb0; transform: rotate(1.5deg); }
.discord-card-header { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.discord-card-header img { border-radius: 9px; object-fit: cover; }
.discord-card-header h3 { font-size: 1.15rem; letter-spacing: -.025em; line-height: 1.2; }
.discord-card-header p, .community-status { color: var(--muted); margin: 4px 0 0; font-size: .875rem; }
.community-status { margin: 14px 0 0; }
.discord-channels { max-height: 268px; overflow: auto; scrollbar-color: #77588a #24192c; outline-offset: 3px; }
.channel-group { margin-top: 12px; }
.channel-group h4 { margin: 0 0 4px; color: var(--lilac); font-size: .875rem; font-weight: 700; overflow-wrap: anywhere; }
.channel-list { list-style: none; margin: 0; padding: 0 6px 0 0; }
.channel-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; padding: 5px 6px; border-radius: 5px; overflow-wrap: anywhere; color: var(--ink); font-size: .875rem; }
.channel-list li:nth-child(odd) { background: #392545; }
.channel-icon { color: var(--orange); }
@media (max-width: 760px) {
  .community-panel { grid-template-columns: 1fr; }
  .discord-card { transform: none; }
}
.footer { border-top: 1px solid var(--line); }

.history { padding-block: clamp(48px, 7vw, 88px) 24px; }
.signup-notice { position: fixed; z-index: 2; right: 16px; bottom: 16px; }
.signup-notice summary, .signup-card, #feedback-dialog {
  border: 1px solid var(--line);
  background: #2b1a34;
  color: var(--ink);
}
.signup-notice summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding-inline: 14px;
  cursor: pointer;
  font-weight: 700;
}
.signup-card {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: min(18rem, calc(100vw - 32px));
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 30px #100917a8;
}
.signup-card p { color: var(--muted); line-height: 1.5; }
.signup-card a, .feedback-link { color: var(--lilac); }
.feedback-link { background: transparent; border: 0; padding: 10px 0; font: inherit; cursor: pointer; }
.footer { padding-right: min(50px, 10vw); }
#feedback-dialog { width: min(30rem, calc(100% - 32px)); padding: 22px; border-radius: 16px; }
#feedback-dialog::backdrop { background: #100917b8; }
#feedback-dialog h2 { font-size: 1.6rem; margin-bottom: 16px; }
.feedback-topics { border: 0; padding: 0; margin: 0 0 18px; min-inline-size: 0; }
.feedback-topics legend { padding: 0; margin-bottom: 8px; }
.feedback-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feedback-options label { position: relative; cursor: pointer; }
.feedback-options input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.feedback-options label > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
}
.feedback-options label:hover > span { border-color: var(--lilac); }
.feedback-options input:checked + span { border-color: var(--lilac); background: #4b2b5a; color: var(--ink); }
.feedback-options input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
#feedback-dialog textarea { width: 100%; display: block; margin-top: 6px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; resize: vertical; }
.feedback-actions { display: flex; justify-content: space-between; }
.feedback-actions .button { cursor: pointer; }
#feedback-status { color: var(--lilac); }
@media (max-width: 600px) { .signup-label { display: none; } }
.history-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-block: 24px; }
.history-toggle {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #24142e;
}
.history-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: inherit;
  background: var(--lilac);
  transition: transform 180ms ease;
}
.history-toggle.show-training::before { transform: translateX(100%); }
.history-toggle button {
  min-height: 40px;
  padding-inline: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.history-toggle button[aria-pressed="true"] { color: var(--bg); }
.history-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.history-filter button {
  min-height: 42px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #24142e;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.history-filter button:hover { border-color: var(--lilac); color: var(--ink); }
.history-filter button[aria-pressed="true"] { border-color: var(--lilac); background: #4b2b5a; color: var(--ink); }
.history-controls :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.history-events { display: grid; gap: 12px; list-style: none; padding: 0; }
.history-events li { background: #24142e; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.history-events h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.history-events time, #history-status { color: var(--muted); }
.history-events p { color: var(--lilac); font-weight: 700; margin: 8px 0 0; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .history-toggle::before { transition: none; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .art { width: min(100%, 470px); margin-inline: auto; transform: none; box-shadow: 7px 7px 0 #30203a; }
}
@media (max-width: 520px) {
  .line-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 64px; flex-wrap: wrap; padding-block: 12px; }
  nav { flex-wrap: wrap; }
  .header-inner, nav { gap: 12px; }
}
@media (max-width: 360px) { .line-roster { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
