:root {
  --page: #0d0d0d;
  --surface: #171717;
  --surface-soft: #212121;
  --text: #ececec;
  --muted: #b4b4b4;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #7482ff;
  --accent-light: #b2baff;
  --input-bg: #101010;
}

body[data-theme="light"] {
  --page: #f6f7fc;
  --surface: #ffffff;
  --surface-soft: #edf0fb;
  --text: #1c2140;
  --muted: #5b6381;
  --line: rgba(34, 43, 89, 0.14);
  --accent: #5865f2;
  --accent-light: #4c59ce;
  --input-bg: #ffffff;
}

body[data-theme="sunset"] {
  --page: #17132f;
  --surface: rgba(39, 29, 62, 0.88);
  --surface-soft: rgba(68, 42, 76, 0.82);
  --text: #fff7f1;
  --muted: #dec8d3;
  --line: rgba(255, 220, 205, 0.18);
  --accent: #f47b70;
  --accent-light: #ffc0a4;
  --input-bg: rgba(23, 19, 47, 0.8);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page);
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}
body[data-theme="sunset"] {
  background:
    radial-gradient(
      circle at 76% 72%,
      rgba(255, 160, 108, 0.28),
      transparent 28rem
    ),
    linear-gradient(165deg, #182447 0%, #3a285b 42%, #884568 72%, #d77969 100%);
  background-attachment: fixed;
}
body[data-theme="sunset"] .primary {
  box-shadow: 0 12px 30px rgba(244, 123, 112, 0.28);
}
body[data-theme="sunset"] .secondary {
  background: rgba(255, 244, 238, 0.06);
}
body[data-theme="sunset"] .dashboard-callout {
  border-color: rgba(255, 192, 164, 0.3);
  background: linear-gradient(
    115deg,
    rgba(69, 38, 82, 0.94),
    rgba(118, 58, 83, 0.82)
  );
}
a {
  color: inherit;
}

.hero {
  width: min(1720px, calc(100% - clamp(40px, 5vw, 160px)));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  align-items: center;
  gap: 42px;
}
.hero-copy {
  max-width: 940px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.lead,
.intro > p,
.feature-card p,
.dashboard-callout p {
  color: var(--muted);
}
.lead {
  max-width: 580px;
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 30px;
}
.hero-primary {
  min-height: 62px;
  padding: 16px 30px;
  font-size: 1.08rem;
}
.hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 22px;
}
.hero-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}
.hero-action-label {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.25);
}
.primary:hover {
  background: #7b88ff;
  box-shadow: 0 16px 34px rgba(88, 101, 242, 0.36);
}
.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hero-art {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.hero-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
}
.art-glow {
  display: none;
}

.section {
  width: min(1720px, calc(100% - clamp(40px, 5vw, 160px)));
  margin: 0 auto;
  padding: 105px 0;
}
.intro {
  max-width: 800px;
  text-align: center;
}
.intro > p:last-child {
  max-width: 640px;
  margin: 0 auto;
}
.recruiting-tournaments {
  border-top: 1px solid var(--line);
}
.recruiting-tournaments .section-heading > p:last-child,
.recruiting-status {
  color: var(--muted);
}
.recruiting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.recruiting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 120px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.recruiting-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.recruiting-card h3 {
  margin: 0;
  font-size: 1.08rem;
}
.participant-count {
  flex: 0 0 auto;
  color: var(--accent-light);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}
.participant-count small {
  margin-left: 3px;
  font-size: 0.78rem;
}
.recruiting-status {
  grid-column: 1 / -1;
  margin: 0;
}
.recruitment-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.recruitment-heading-row > div > p:last-child {
  margin-bottom: 0;
}
.recruitment-card-home h3 {
  margin-bottom: 6px;
}
.recruitment-deadline {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.features {
  border-top: 1px solid var(--line);
}
.member-videos {
  border-top: 1px solid var(--line);
}
.member-videos .section-heading > p:last-child {
  color: var(--muted);
}
.video-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.video-heading-row .section-heading {
  margin-bottom: 0;
}
.section-heading {
  margin-bottom: 30px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.card-number {
  display: block;
  margin-bottom: 34px;
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.feature-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.dashboard-callout {
  width: min(1720px, calc(100% - clamp(40px, 5vw, 160px)));
  margin: 0 auto 105px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(125, 137, 255, 0.3);
  border-radius: 18px;
  background: linear-gradient(115deg, #1d2450, #13182f 58%);
}
.dashboard-callout h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}
.dashboard-callout p:last-child {
  margin-bottom: 0;
}
.dashboard-callout .button {
  flex: 0 0 auto;
}
body[data-theme="light"] .dashboard-callout {
  color: var(--text);
  border-color: rgba(88, 101, 242, 0.25);
  background: linear-gradient(115deg, #e7eaff, #f6f7fc 58%);
}
body[data-theme="light"] .dashboard-callout p {
  color: var(--muted);
}
@media (max-width: 800px) {
  .theme-label {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 58px 0 75px;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-art {
    min-height: 250px;
    order: -1;
  }
  .hero-art img {
    width: min(100%, 460px);
  }
  .hero-actions,
  .hero-primary {
    width: 100%;
  }
  .hero-secondary-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-action-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .hero-action-label {
    grid-column: 1 / -1;
  }
  .hero-secondary-actions .button {
    padding-inline: 10px;
  }
  .section {
    padding: 72px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .video-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .recruitment-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .feature-card {
    min-height: auto;
  }
  .dashboard-callout {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-callout {
    padding: 30px;
    margin-bottom: 70px;
  }
}
