.rensa-intro {
  color-scheme: dark;
  --bg: #0d0f1a;
  --bg-gradient-start: #0d0f1a;
  --bg-gradient-end: #111727;
  --fg: #f0efff;
  --muted: #aeb2cd;
  --card: #161a2e;
  --line: #353954;
  --accent: #b1a1ff;
  --accent-pale: #1c2036;
  --color-accent: #82ebe8;
  --color-link: #c0b4ff;
  --color-link-hover: #e5deff;
  --shadow: 0 10px 30px #05061266;
  --shadow-hover: 0 12px 34px #05061299;
  background: radial-gradient(ellipse at 74% 250px, #221c45 0, transparent 630px), var(--bg);
}

.rensa-intro::before,
.rensa-intro::after {
  content: none;
}

.rensa-intro main,
.rensa-intro .site-header,
.rensa-intro .site-footer {
  max-width: 1184px;
}

.rensa-intro .site-header {
  margin-bottom: 0;
}

.rensa-intro .work-page {
  padding: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.rensa-intro .work-page :where(p) {
  margin-top: 0;
}

.rensa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(30px, 6vw, 84px);
  padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 90px);
}

.rensa-hero h1 {
  margin: 0 0 14px;
  font: 700 clamp(4.2rem, 10vw, 8.3rem)/.94 var(--font-en);
  letter-spacing: -.05em;
  text-shadow: 0 0 40px #7b5cff55;
}

.rensa-hero h1 span {
  display: block;
  margin-top: 15px;
  color: #95eeea;
  font: 700 1rem/1.35 var(--font-jp);
  letter-spacing: .18em;
}

.rensa-intro .rensa-subtitle {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.4;
}

.rensa-lead {
  max-width: 33em;
  color: #d0d2e7;
}

.rensa-hero .work-status {
  margin: 22px 0 18px;
}

.rensa-hero .work-pill {
  background: #1b1b32;
  font-size: .82rem;
}

.rensa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.rensa-intro .work-launch {
  width: auto;
  max-width: 100%;
  margin: 0;
}

.rensa-intro .work-launch-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 13px 24px;
  border: 1px solid #d4caff;
  border-radius: 8px;
  background: #b9a8ff;
  color: #18112d;
}

.rensa-intro .work-launch-button:hover {
  background: #d0c3ff;
  color: #18112d;
}

.rensa-text-link {
  padding: 8px 0;
  font-size: .93rem;
  font-weight: 700;
}

.rensa-intro .rensa-save-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.rensa-save-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.rensa-preview {
  width: min(100%, 440px);
  margin: 0 auto;
}

.rensa-preview-board {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #504575;
  border-radius: clamp(12px, 2vw, 22px);
  background: #161a2e;
  box-shadow: 0 0 56px #7b5cff32, 0 16px 40px #050612a0;
}

/* 1200×630の共通画像から、盤面を含む514×514の領域を表示する。 */
.rensa-preview-board img {
  position: absolute;
  top: -11.67%;
  left: -128.4%;
  width: 233.46%;
  max-width: none;
  height: auto;
}

.rensa-preview figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .84rem;
  text-align: center;
}

.rensa-intro .rensa-block {
  margin: 0;
  padding: clamp(32px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.rensa-intro .rensa-block h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.4;
}

.rensa-section-intro {
  max-width: 46em;
  color: #d0d2e7;
}

.rensa-chain,
.rensa-courses,
.rensa-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0;
}

.rensa-chain {
  padding: 0;
  list-style: none;
}

.rensa-chain > li,
.rensa-course,
.rensa-controls > div {
  padding: clamp(15px, 2.2vw, 25px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.rensa-chain-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 188px;
  margin-bottom: 15px;
}

.rensa-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #2e334d;
  border-radius: 8px;
  background: #20243a;
  font: 700 1.55rem/1 var(--font-en);
}

.rensa-tile--two {
  border-color: #3d888e;
  background: #113637;
  color: #95eeea;
}

.rensa-tile--four {
  border-color: #515cb0;
  background: #1d294d;
  color: #b9caff;
}

.rensa-tile--eight {
  border-color: #8667c9;
  background: #2c1d52;
  color: #dec8ff;
}

.rensa-tile--new {
  box-shadow: 0 0 14px #9781f066;
}

.rensa-block h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.45;
}

.rensa-intro .rensa-chain p,
.rensa-intro .rensa-course p:last-child,
.rensa-intro .rensa-details p:last-child {
  margin-bottom: 0;
}

.rensa-course {
  border-top: 3px solid var(--course-color);
}

.rensa-course--beginner { --course-color: #95eeea; }
.rensa-course--standard { --course-color: #c0afff; }
.rensa-course--advanced { --course-color: #ffb1cf; }

.rensa-intro .rensa-course-level {
  margin-bottom: 8px;
  color: var(--course-color);
  font-size: .86rem;
  font-weight: 700;
}

.rensa-course-rules,
.rensa-course-note {
  color: var(--muted);
  font-size: .9rem;
}

.rensa-intro .rensa-course-note {
  margin-top: 14px;
}

.rensa-controls dt {
  font-weight: 700;
}

.rensa-controls dd {
  margin: 4px 0 0;
  color: #d0d2e7;
}

.rensa-controls kbd {
  display: inline-block;
  min-width: 1.4em;
  border: 1px solid #565d80;
  border-radius: 4px;
  font-size: .92em;
  text-align: center;
}

.rensa-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: 22px;
}

.rensa-details section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.rensa-details a {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.rensa-details .work-note--warning {
  border-left-color: #d7a463;
  background: #2c242b;
  color: #ffdfbf;
}

.rensa-play-end {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(32px, 5vw, 60px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1d1a35;
}

.rensa-intro .rensa-history {
  padding-bottom: 0;
}

@media (max-width: 740px) {
  .rensa-intro {
    background: radial-gradient(ellipse at 65% 270px, #221c45 0, transparent 590px), var(--bg);
  }

  .rensa-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 16px;
  }

  .rensa-hero h1 {
    font-size: clamp(3.9rem, 14vw, 6.75rem);
  }

  .rensa-hero .work-status {
    margin-top: 14px;
  }

  .rensa-preview {
    width: min(100%, 290px);
  }

  .rensa-chain,
  .rensa-courses,
  .rensa-controls,
  .rensa-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rensa-chain-tiles {
    max-width: 146px;
  }
}

@media (max-width: 390px) {
  .rensa-hero-actions {
    gap: 4px 14px;
  }

  .rensa-hero-actions .work-launch-button {
    padding-inline: 15px;
    gap: 9px;
  }
}
