:root {
  --ap-red: #ff003c;
  --ap-bg: #070709;
  --ap-card: #121218;
  --ap-inset: #0c0c10;
  --ap-line: rgba(255, 255, 255, 0.09);
  --ap-muted: #a8a8b8;
  --ap-font: Montserrat, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.ap {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ap-font);
  color: #fff;
  background:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(255, 0, 60, 0.18), transparent 58%),
    var(--ap-bg);
}

.ap a { color: inherit; }

.ap a:focus-visible,
.ap button:focus-visible,
.ap-sheet button:focus-visible {
  outline: 2px solid rgba(255, 0, 60, 0.45);
  outline-offset: 2px;
}

.ap-page { padding: 28px 16px 48px; }

.ap-sheet {
  width: min(880px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--ap-line);
  background: var(--ap-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ap-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 420px;
  padding: 36px 22px 0 28px;
  border-bottom: 1px solid var(--ap-line);
  background:
    radial-gradient(ellipse 48% 78% at 92% 72%, rgba(255, 0, 60, 0.28), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
}

.ap-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 28px 0 48px;
}

.ap-hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 84px);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-shadow: 0 0 28px rgba(255, 0, 60, 0.35);
}

.ap-kicker {
  margin: 12px 0 22px;
  color: var(--ap-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ap-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 6px 6px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 60, 0.45);
  background: var(--ap-red);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

button.ap-pill {
  font-family: inherit;
  cursor: pointer;
}

.ap-pill:hover { box-shadow: 0 0 22px rgba(255, 0, 60, 0.35); }

#alJoin .ap-sheet {
  width: 100%;
  max-width: 1280px;
}

.ap-hero h2 {
  margin: 0;
  font-size: clamp(56px, 8vw, 84px);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-shadow: 0 0 28px rgba(255, 0, 60, 0.35);
}

.ap-pill span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}

.ap-girl {
  position: absolute;
  right: 4%;
  top: 16px;
  bottom: 0;
  width: min(42%, 280px);
  height: calc(100% - 16px);
  object-fit: contain;
  object-position: center bottom;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.ap-cut {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.ap-say {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #16161c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.ap-say--girl { top: 28px; right: 30%; }

.ap-say--girl::after,
.ap-say--boy::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 0;
  transform: rotate(45deg);
}

.ap-say--girl::after { right: 16px; bottom: -6px; }
.ap-say--boy::after { left: 14px; bottom: -6px; }

.ap-why {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 22px;
  padding: 28px 22px 16px;
}

.ap-why h2,
.ap-paths h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.ap-why p,
.ap-paths > p {
  margin: 0 0 18px;
  max-width: 36ch;
  color: var(--ap-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.ap-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ap-card {
  position: relative;
  min-height: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--ap-line);
  background: var(--ap-inset);
  color: #fff;
}

.ap-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 0, 60, 0.14);
  border: 1px solid rgba(255, 0, 60, 0.42);
  color: #fff;
}

.ap-card .ap-ico { margin-bottom: 12px; }

.ap-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ap-card b,
.ap-course b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ap-course b {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.ap-card p,
.ap-course p {
  margin: 0;
  max-width: none;
  color: var(--ap-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.ap-num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 0, 60, 0.16);
  border: 1px solid rgba(255, 0, 60, 0.4);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}

.ap-paths { padding: 8px 22px 20px; }

.ap-paths-row {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 12px;
  align-items: end;
}

.ap-boy-wrap {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

.ap-boy {
  display: block;
  width: min(100%, 420px);
  height: auto;
  border-radius: 0;
  margin-inline: auto;
}

.ap-say--boy {
  right: 8%;
  bottom: 38%;
  left: auto;
}

.ap-courses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.ap-course {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--ap-line);
  background: var(--ap-inset);
  color: #fff;
}

.ap-course--hot {
  background: rgba(255, 0, 60, 0.14);
  border-color: rgba(255, 0, 60, 0.45);
}

.ap-course--hot p { color: #d8d8e4; }

@media (max-width: 760px) {
  .ap-page { padding: 12px 8px 28px; }
  .ap-hero,
  .ap-why,
  .ap-paths-row { grid-template-columns: 1fr; }
  .ap-hero { min-height: 0; padding-bottom: 240px; }
  .ap-hero h1,
  .ap-hero h2 { font-size: 52px; }
  .ap-girl { width: min(70%, 240px); }
  .ap-say--girl { right: 8%; top: 18px; }
  .ap-cards { grid-template-columns: 1fr; }
  .ap-course { grid-template-columns: 1fr; gap: 6px; }
  .ap-say--boy { left: auto; right: 12px; bottom: 16px; }
}

#alJoin {
  position: relative;
}

#alJoin::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 58% at 82% 28%, rgba(255, 0, 60, 0.14), transparent 72%);
}

#alJoin > * { position: relative; z-index: 1; }

#alJoin .al-join-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.78fr);
  gap: 32px 32px;
  align-items: stretch;
}

#alJoin .al-join-copy .al-wiki-text {
  margin-bottom: 24px;
}

#alJoin .ap-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  background: none;
  border: 0;
  overflow: visible;
}

#alJoin .ap-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    radial-gradient(120px 80px at 0 0, rgba(255, 0, 60, 0.18), transparent 70%),
    #121218;
  padding: 20px 16px 16px;
}

#alJoin .ap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-top: 16px solid #ff003c;
  border-right: 16px solid transparent;
}

#alJoin .ap-idx {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(255, 0, 60, 0.72);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

#alJoin .ap-card .ap-ico {
  width: auto;
  height: auto;
  margin-bottom: 16px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #ff003c;
}

#alJoin .ap-card .ap-ico svg { width: 24px; height: 24px; }

#alJoin .ap-card b {
  display: block;
  font-size: 14px;
}

#alJoin .ap-card b::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 8px;
  background: #ff003c;
}

#alJoin .ap-card p {
  margin: 8px 0 0;
  color: #a8a8b8;
  font-size: 13px;
  line-height: 1.5;
}

#alJoin .ap-card:hover { border-color: rgba(255, 0, 60, 0.45); }

#alJoin .ap-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 0, 60, 0.4);
}

#alJoin .ap-courses {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
  border: 0;
  overflow: visible;
  padding-left: 4px;
}

#alJoin .ap-courses::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(#ff003c, rgba(255, 0, 60, 0.15));
}

#alJoin .ap-course {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

#alJoin .ap-mark {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin-top: 12px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #121218;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

#alJoin .ap-course-body {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #121218;
}

#alJoin .ap-course-body b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

#alJoin .ap-course-body p {
  margin: 0;
  color: #a8a8b8;
  font-size: 13px;
  line-height: 1.5;
}

#alJoin .ap-course .ap-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 0, 60, 0.12);
  border: 1px solid rgba(255, 0, 60, 0.35);
  color: #ff003c;
}

#alJoin .ap-course--hot .ap-mark {
  background: #ff003c;
  border-color: #ff003c;
}

#alJoin .ap-course--hot .ap-course-body {
  background: linear-gradient(100deg, rgba(255, 0, 60, 0.22), #121218 58%);
  border-color: rgba(255, 0, 60, 0.5);
}

#alJoin .ap-course-body:hover { border-color: rgba(255, 0, 60, 0.45); }

#alJoin .al-join-cast {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding-top: 8px;
}

#alJoin .al-join-cast::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 78%;
  height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 0, 60, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#alJoin .ap-girl {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 380px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

#alJoin button.al-wiki-link {
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 980px) {
  #alJoin .al-join-board { grid-template-columns: 1fr; }
  #alJoin .al-join-cast { justify-content: center; padding-top: 0; }
  #alJoin .ap-girl { width: min(48%, 240px); }
}

@media (max-width: 640px) {
  #alJoin .ap-cards { grid-template-columns: 1fr; }
  #alJoin .al-join-cast { display: none; }
}
