/* Presentation only. Navigation, panel switching and game links use the original site. */
:root {
  --accent: #edd9a1;
  --blue: #a8d6e3;
  --text: #edf1fa;
  --muted: #b2bfd5;
  --line: #35445b;
}

body { background-color: #121b2a; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #edd9a1; color: #121b2a; }

/* Independent entrance: the same entry button, quote and lunar phase. */
body.entrance { isolation: isolate; background: #121b2a; }
.night-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  pointer-events: none;
}
body.entrance::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #121b2afa 0%, #121b2ae8 24%, #121b2a8a 48%, #121b2a00 75%),
              linear-gradient(0deg, #121b2a 0%, #121b2a70 13%, #121b2a00 37%);
}
.entrance #pixel-stars { z-index: 2; opacity: .3; pointer-events: none; }
.entrance .entrance-content,
.entrance .entrance-footer { z-index: 3; width: min(1184px, calc(100% - 96px)); }
.entrance .entrance-content { padding: 76px 0 60px; }
.entrance .club-mark { width: 38px; height: 38px; margin-bottom: 28px; }
.entrance h1 { color: var(--accent); font-size: clamp(60px, 5.5vw, 92px); line-height: 1.18; }
.entrance .english-title { font-size: 16px; letter-spacing: .2em; color: #c0c4da; }
.entrance .title-rule { margin-top: 30px; width: 88px; }
.entrance .enter-link {
  min-width: 258px;
  min-height: 62px;
  margin-top: 36px;
  padding: 16px 24px;
  gap: 28px;
  font-size: 22px;
  color: #121b2a;
  background: #edd9a1;
  border-color: #edd9a1;
}
.entrance .enter-link:hover { background: #f7e8ba; color: #121b2a; }
.entrance .enter-link:active { background: #d9c48d; }
.entrance .entrance-footer {
  padding: 18px 0 24px;
  border-top-color: #73829b50;
}
.entrance .entrance-footer p { font-size: 17px; color: #d9dfec; }
.entrance .entrance-footer .moon-info { color: #c4cde0; font-size: 15px; }

/* The original three panels stay separate and retain their existing content. */
body[data-page="main"] .site-wrap { width: min(1184px, calc(100% - 96px)); }
.site-header { min-height: 88px; gap: 32px; border-bottom: 1px solid #45587480; }
.site-header::after { width: 5px; height: 5px; bottom: -3px; }
.site-header .brand { gap: 14px; }
.site-header .brand svg { width: 30px; height: 30px; }
.site-header .brand h1 { font-size: 28px; line-height: 1.3; color: var(--accent); }
.site-header nav { gap: 4px; font-size: 18px; }
.site-header nav a { min-width: 62px; min-height: 44px; padding: 9px 12px; }
.site-header nav a[aria-current="page"] { border-color: #847858; background: #202b3a; }
.club-panels { padding: 36px 0 48px; min-height: calc(100svh - 190px); }
[data-club-panel][hidden] { display: none; }
.club-panels .section-heading h2 { font-size: 36px; }
.members-scene {
  height: clamp(240px, 27vw, 340px);
  margin-bottom: 30px;
  background: linear-gradient(0deg, #121b2a50, #121b2a00 30%), url('night-sky.webp') center 61% / cover;
  border-bottom: 1px solid #45587480;
}
#members .member-list {
  gap: 48px;
  padding: 26px 0 30px;
  border-top: 1px solid #45587480;
  border-bottom: 1px solid #45587480;
}
#members .member-list dt { font-size: 26px; }
#members .member-list dd { margin-top: 8px; font-size: 18px; }
#members .club-data {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 48px;
  padding-top: 28px;
  margin-top: 0;
  font-size: 18px;
}
#members .club-data > div { flex-direction: column; gap: 6px; }
#members .club-data dt { font-size: 16px; }
.site-footer { font-size: 16px; border-top-color: #45587480; }

@media (max-width: 1040px) {
  .entrance .entrance-content,
  .entrance .entrance-footer,
  body[data-page="main"] .site-wrap { width: calc(100% - 48px); }
  .site-header { gap: 20px; }
  .site-header .brand h1 { font-size: 24px; }
  .site-header nav { font-size: 16px; }
  .site-header nav a { min-width: 52px; padding-inline: 10px; }
}

@media (max-width: 720px) {
  body.entrance { min-height: 100svh; }
  .night-illustration { height: 60svh; min-height: 380px; object-position: 80% center; }
  body.entrance::before {
    background: linear-gradient(0deg, #121b2a 0%, #121b2a 31%, #121b2ac0 45%, #121b2a00 72%);
  }
  .entrance .entrance-content {
    width: calc(100% - 40px);
    flex: 1 0 auto;
    padding: 43svh 0 28px;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
  }
  .entrance .club-mark { display: none; }
  .entrance h1 { font-size: clamp(40px, 11.5vw, 58px); }
  .entrance .english-title { margin-top: 10px; font-size: 14px; letter-spacing: .12em; }
  .entrance .title-rule { width: 72px; margin-top: 20px; }
  .entrance .enter-link { min-width: 236px; min-height: 58px; margin-top: 24px; padding: 14px 22px; font-size: 20px; }
  .entrance .entrance-footer { width: calc(100% - 40px); gap: 12px; padding: 16px 0 22px; }
  .entrance .entrance-footer p { font-size: 15px; min-height: 3.4em; }
  .entrance .entrance-footer .moon-info { font-size: 14px; }
  body[data-page="main"] .site-wrap { width: calc(100% - 40px); }
  .site-header { padding: 22px 0 18px; gap: 18px; }
  .site-header nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .site-header nav a { min-width: 0; padding: 8px 12px; font-size: 17px; }
  .club-panels { padding-top: 24px; }
  .club-panels .section-heading h2 { font-size: 30px; }
  .members-scene { height: 218px; margin-bottom: 26px; background-position: 65% center; }
  #members .member-list { grid-template-columns: 1fr; gap: 24px; padding: 22px 0; }
  #members .member-list dt { font-size: 24px; }
  #members .member-list dd { font-size: 17px; }
  #members .club-data { grid-template-columns: 1fr; gap: 18px; font-size: 17px; }
  #members .club-data > div { display: grid; grid-template-columns: 3em 1fr; gap: 20px; align-items: baseline; }
  #members .club-data dt { font-size: 15px; }
}

@media (max-height: 620px) and (min-width: 721px) {
  .entrance .entrance-content { padding: 48px 0 28px; }
  .entrance .club-mark { width: 28px; height: 28px; margin-bottom: 16px; }
  .entrance h1 { font-size: 60px; }
  .entrance .enter-link { margin-top: 24px; }
  .entrance .entrance-footer { padding-bottom: 12px; }
}
