/* The "ERA baru" homepage, on top of style.css: same flat fills, ink outlines and hard shadows,
   with night sections for the war. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- header ------------------------------------------------------------ */

.home .top { gap: 14px; flex-wrap: nowrap; }
.home .nav { position: static; }

.online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.online i { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: #cfc6b5; }
.online[data-state="up"] i { background: var(--green); }
.online[data-state="down"] i { background: var(--red); }

.home .top-cta { padding: 8px 16px; font-size: 15px; white-space: nowrap; }

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* ---- hero -------------------------------------------------------------- */

.era-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(calc(100svh - 72px), 900px);
  overflow: hidden;
  background: #0e1622;
  border-bottom: var(--outline);
  color: #fff;
  text-align: center;
}

.era-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.era-video { opacity: 0; transition: opacity .6s; }
.era-video.on { opacity: 1; }

.era-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(9, 14, 24, .72) 0, rgba(9, 14, 24, .5) 55%, rgba(9, 14, 24, .3) 100%),
    linear-gradient(180deg, rgba(9, 14, 24, .1) 60%, rgba(9, 14, 24, .75));
}

.era-hero-body { position: relative; z-index: 1; width: 100%; max-width: 880px; padding: 48px 16px; }

.era-logo { display: block; width: min(300px, 62vw); height: auto; margin: 0 auto 18px; }

.era-hero h1 { font-size: clamp(40px, 7.4vw, 88px); text-shadow: 0 5px 0 var(--ink); }
.era-hero h1::after { margin: 22px auto 0; }

.era-lead { max-width: 34em; margin: 20px auto 26px; color: #eef3f7; font-size: clamp(17px, 2vw, 21px); }

.era-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.era-cta { padding: 16px 28px; font-size: 19px; }

.era-play {
  padding: 13px 20px;
  border: 3px solid #fff;
  border-radius: 14px;
  background: rgba(9, 14, 24, .4);
  color: #fff;
  font: 800 16px/1.2 var(--display);
  cursor: pointer;
}

.era-play:hover, .era-play:focus-visible { background: #fff; color: var(--ink); }

.era-platforms {
  display: inline-block;
  margin-top: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(9, 14, 24, .55);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.era-platforms b { color: var(--yellow); }
.era-platforms:hover { text-decoration: underline; }

.era-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 14px 0 0; color: #cfd9e2; font-size: 14px; }
.era-meta b { color: #fff; font-variant-numeric: tabular-nums; }

/* ---- manifesto --------------------------------------------------------- */

.era-manifesto {
  padding: clamp(44px, 7vw, 76px) 0;
  background: var(--ink);
  border-bottom: var(--outline);
  color: #fff;
  text-align: center;
}

.era-lines { max-width: 24em; margin: 0 auto; color: #d9d3c6; font: 800 clamp(20px, 2.8vw, 30px)/1.35 var(--display); }
.era-lines span { display: inline-block; }
.era-turn { margin: 18px 0 30px; color: var(--yellow); font: 900 clamp(26px, 4vw, 44px)/1.1 var(--display); }

.era-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }

.era-pillars a {
  display: block;
  height: 100%;
  padding: 18px 16px;
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 #000;
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s;
}

.era-pillars a:hover, .era-pillars a:focus-visible { transform: translate(-2px, -2px); }
.era-pillars [data-tone="sky"] a { background: var(--sky); }
.era-pillars [data-tone="red"] a { background: var(--orange); }
.era-pillars [data-tone="pink"] a { background: var(--pink); }
.era-pillars b { display: block; font: 900 22px/1.15 var(--display); }
.era-pillars span { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; }

/* ---- PC and Android ----------------------------------------------------- */

.era-main { background: var(--sky-pale); }
.era-main h2 { font-size: clamp(34px, 5vw, 58px); }

.devices { position: relative; max-width: 960px; margin: 0 auto 64px; }

.device { border: 4px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.device img { display: block; width: 100%; height: auto; }
.device.pc { width: 82%; padding: 10px 10px 26px; border-radius: 14px; }
.device.pc img { border-radius: 4px; }

.device.hp {
  position: absolute;
  right: 0;
  bottom: -34px;
  width: 50%;
  padding: 10px 26px;
  border-radius: 24px;
}

.device.hp img { border-radius: 6px; }

.era-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 22px; padding: 0; list-style: none; }

.era-cards li { padding: 18px 20px; border: var(--outline); border-radius: var(--radius); background: var(--white); }
.era-cards h3 { margin: 0 0 4px; font-size: 20px; }
.era-cards p { margin: 0; font-size: 15px; }

.era-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.era-platform { position: relative; padding: 20px 22px; border: var(--outline); border-radius: var(--radius); background: var(--white); }
.era-platform.mine { box-shadow: var(--shadow); }
.era-platform h3 { margin: 0; font-size: 26px; }
.era-platform p { margin: 4px 0 14px; font-size: 14px; }

.era-note { margin: 18px 0 0; font-size: 14px; font-weight: 700; }
.era-note a { color: var(--ink); }

/* ---- Siege -------------------------------------------------------------- */

.era-siege { background: var(--night); border-bottom: var(--outline); color: #fff; }
.era-siege-photo { display: block; width: 100%; height: clamp(220px, 40vw, 520px); object-fit: cover; object-position: center 62%; border-bottom: var(--outline); }
.era-siege .wrap { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(44px, 7vw, 76px); }

.era-siege-head, .era-love-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.era-siege-head .eyebrow { margin: 0; color: var(--yellow); }

.era-badge, .era-age {
  padding: 3px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: 900 13px/1.4 var(--display);
}

.era-siege h2 { max-width: 20em; margin: 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; }

.era-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 30px; padding: 0; list-style: none; }
.era-facts li { padding: 6px 14px; border: 2px solid #5c7486; border-radius: 999px; font-size: 15px; font-weight: 700; }

.era-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }
.era-steps li { counter-increment: step; }
.era-steps img { display: block; width: 100%; height: auto; border: 3px solid #000; border-radius: 12px; }
.era-steps h3 { margin: 12px 0 2px; font-size: 19px; }
.era-steps h3::before { content: counter(step) ". "; color: var(--yellow); }
.era-steps p { margin: 0; color: #c9d3dc; font-size: 14px; }

.era-siege-foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 22px; }
.era-reward { flex: 1 1 100%; margin: 0; color: #e8eef3; font-size: 16px; }
.era-reward b { margin-right: 8px; color: var(--yellow); }
.era-countdown { flex: 1 1 100%; margin: 0; color: var(--yellow); font: 900 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }

.era-rules { flex: 1 1 320px; }
.era-rules summary { padding: 12px 0; font-weight: 800; cursor: pointer; }
.era-rules ul { margin: 0; padding-left: 20px; color: #c9d3dc; font-size: 14px; }

/* ---- Love Match --------------------------------------------------------- */

.era-love { background: #ffd9e8; }
.era-love-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.era-love-shot { margin: 0; }
.era-love-shot img { display: block; width: 100%; height: auto; border: var(--outline); border-radius: var(--radius); box-shadow: var(--shadow); }
.era-love-shot figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 13px; }
.era-love-head .eyebrow { margin: 0; color: #a3245f; }
.era-age { background: var(--red); color: #fff; }
.era-love h2 { line-height: 1.08; }
.era-love-points { margin: 18px 0 20px; padding: 0; list-style: none; }
.era-love-points li { padding: 7px 0; border-bottom: 2px dashed rgba(23, 20, 18, .2); }
.era-love-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.era-love-links a:not(.link) { color: var(--ink); font-size: 14px; font-weight: 700; }

/* ---- what stays --------------------------------------------------------- */

.era-still h2 { margin-bottom: 26px; }
.era-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }

.era-tiles li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
.era-tiles img { flex: none; width: 60px; height: 60px; object-fit: contain; }
.era-tiles h3 { margin: 0; font-size: 17px; }
.band .era-tiles p { margin: 0; font-size: 13px; }

.era-heart { flex: none; width: 60px; color: var(--pink); font-size: 46px; line-height: 60px; text-align: center; }

.era-shout { width: fit-content; max-width: 100%; margin: 26px auto 0; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--red) !important; font-size: 15px; font-weight: 700; }

/* ---- event, join --------------------------------------------------------- */

.era-event { padding: 22px 0; background: var(--yellow); border-bottom: var(--outline); }
.era-event .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.era-event h2 { margin: 0; font-size: 26px; }
.era-event p { flex: 1 1 240px; margin: 0; font-weight: 700; }

.era-join { background: var(--paper-deep); }
.era-join h2 { margin-bottom: 26px; text-align: center; font-size: clamp(30px, 4.6vw, 52px); }
.era-join-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.era-step-label { margin: 0 0 22px; color: var(--ink-soft); font: 900 15px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.era-join-card { padding: clamp(20px, 3vw, 28px); border: var(--outline); border-radius: var(--radius); background: var(--white); }
.era-join-card h3 { margin: 0 0 4px; font-size: 24px; }
.era-join-card p { margin: 0 0 14px; }
.era-join-buttons { display: grid; gap: 10px; }
.era-join-buttons .link { width: 100%; text-align: center; }
.era-join-card .era-note { margin: 14px 0 0; }

/* ---- guides -------------------------------------------------------------- */

.era-guide h2 { margin-bottom: 18px; font-size: 30px; }
.era-guide details { border: var(--outline); border-radius: 14px; background: var(--white); margin-bottom: 10px; }
.era-guide summary { padding: 14px 18px; font: 900 19px/1.2 var(--display); cursor: pointer; }
.era-guide-body { padding: 4px 18px 22px; }
.era-guide-body.stats { max-width: none; margin: 0; }
.era-guide .bestiary li { color: var(--ink); }

/* ---- footer, sticky, trailer ---------------------------------------------- */

.era-foot { flex-wrap: wrap; gap: 10px 18px; }
.era-foot nav { display: flex; gap: 14px; }
.era-foot nav a { color: inherit; font-size: 14px; font-weight: 700; }
.era-foot .status { color: var(--ink); }

.era-sticky { display: none; }

.era-dialog { width: min(1120px, 94vw); padding: 0; overflow: visible; border: var(--outline); border-radius: 12px; background: #000; }
.era-dialog::backdrop { background: rgba(5, 8, 14, .86); }
.era-dialog video { display: block; width: 100%; height: auto; border-radius: 9px; }

.era-close {
  position: absolute;
  top: -18px;
  right: -14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: var(--outline);
  border-radius: 50%;
  background: var(--yellow);
  font: 900 24px/1 var(--display);
  cursor: pointer;
}

/* ---- narrow screens -------------------------------------------------------- */

@media (max-width: 1020px) {
  .menu { display: block; }
  .home .nav { display: none; }

  .home .nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 8px 12px 12px;
    background: var(--paper);
    border-bottom: var(--outline);
  }
}

@media (max-width: 860px) {
  .era-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .era-love-grid, .era-join-grid { grid-template-columns: minmax(0, 1fr); }
  .era-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .home .brand-tag, .online { display: none; }
  .home .top-cta { margin-left: auto; }
  .era-pillars, .era-cards, .era-platform-grid, .era-tiles { grid-template-columns: minmax(0, 1fr); }
  .era-hero { min-height: 560px; }
  .era-actions .era-cta { width: 100%; }
  .era-hero h1 { text-shadow: 0 3px 0 var(--ink); }
  .era-steps { grid-template-columns: minmax(0, 1fr); }

  .devices { margin-bottom: 44px; }
  .device.pc { width: 92%; padding: 6px 6px 14px; }
  .device.hp { bottom: -26px; width: 60%; padding: 6px 14px; border-radius: 14px; }

  .era-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: var(--outline);
    transform: translateY(110%);
    transition: transform .2s;
    display: block;
  }

  .era-sticky.on { transform: none; }
  .era-sticky .link { display: block; width: 100%; text-align: center; }
  .home .foot { padding-bottom: 84px; }
  .era-close { top: -52px; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .era-video, .era-sticky, .era-pillars a { transition: none; }
}

/* The monster cards and filter chips were drawn for a night band. */
.era-guide #monster .era-guide-body { border-radius: 0 0 11px 11px; background: var(--night); color: #fff; padding-top: 18px; }
.era-guide #monster .section-lead { color: #c9d3dc; }
