.home-main { overflow: clip; }

.home-lobby {
  padding: 34px 0 30px;
  background:
    radial-gradient(circle at 12% 0, rgba(221, 170, 78, .2), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(73, 112, 76, .12), transparent 24rem);
}

.lobby-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  gap: 22px;
  min-height: 540px;
  padding: 14px;
  border: 1px solid rgba(110, 76, 59, .15);
  border-radius: 30px;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 24px 70px rgba(74, 38, 35, .1);
}

.lobby-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
}

.lobby-kicker {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #f8e8d5;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.lobby-copy h1 {
  margin: 20px 0 14px;
  color: var(--primary-dark);
  font-family: STKaiti, KaiTi, serif;
  font-size: clamp(4.2rem, 8vw, 7.8rem);
  line-height: .88;
  letter-spacing: -.1em;
}

.lobby-copy > p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.lobby-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: .78rem;
}

.lobby-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.lobby-progress-card {
  display: grid;
  gap: 9px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.74);
  text-decoration: none;
}

.lobby-progress-card:hover { color: var(--primary-dark); border-color: rgba(140,47,57,.35); }
.lobby-progress-card > span:first-child { display: flex; justify-content: space-between; gap: 12px; }
.lobby-progress-card small { color: var(--muted); }
.lobby-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #eadfce; }
.lobby-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #d18852); transition: width .25s ease; }

.lobby-visual {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 22px;
  background: #ded4c5;
}

.lobby-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.lobby-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(37,25,23,.78)); }

.lobby-visual-caption {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 170px;
  bottom: 26px;
  color: white;
}

.lobby-visual-caption strong { display: block; font-size: clamp(1.2rem, 2.3vw, 2rem); line-height: 1.25; }
.lobby-visual-caption span { display: block; margin-top: 7px; color: rgba(255,255,255,.78); font-size: .8rem; }

.lobby-photo-chip {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  width: 132px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  background: rgba(255,253,248,.92);
  box-shadow: 0 14px 30px rgba(34,24,21,.24);
}

.lobby-photo-chip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
.lobby-photo-chip span { display: block; padding: 5px 4px 1px; color: var(--primary-dark); font-size: .72rem; font-weight: 900; }

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.home-quick-grid a {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 108px;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255,253,248,.88);
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-quick-grid a:hover { transform: translateY(-4px); border-color: rgba(140,47,57,.35); box-shadow: 0 12px 24px rgba(94,23,32,.09); }
.home-quick-grid b { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 7px; border-radius: 13px; color: var(--primary-dark); background: #f5e6d3; font-family: STKaiti, KaiTi, serif; font-size: 1.15rem; }
.home-quick-grid span { font-size: .82rem; font-weight: 900; white-space: nowrap; }
.home-quick-grid small { margin-top: 2px; color: var(--muted); font-size: .66rem; white-space: nowrap; }

.stage-strip, .home-section { padding: 58px 0; }
.stage-strip { padding-top: 44px; }

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.home-section-head h2 { margin: 2px 0 0; font-family: STKaiti, KaiTi, serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.home-section-head > a { font-size: .88rem; font-weight: 800; }

.stage-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stage-item {
  position: relative;
  min-height: 142px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.stage-item b { display: block; color: #d7c8b8; font-size: 2rem; line-height: 1; }
.stage-item strong { display: block; margin-top: 17px; font-size: 1.02rem; }
.stage-item span { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }
.stage-item.current { color: white; border-color: var(--primary-dark); background: linear-gradient(140deg, #7b202b, #4d141b); }
.stage-item.current b { color: #f0c77a; }
.stage-item.current span { color: rgba(255,255,255,.72); }

.home-story-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.home-story-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  color: white;
  background: #5a4c42;
  text-decoration: none;
}

.home-story-card.feature { grid-row: 1 / 3; min-height: 454px; }
.home-story-card:last-child { grid-column: 2 / 4; }
.home-story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-story-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(32,22,20,.84)); }
.home-story-card:hover { color: white; }
.home-story-card:hover img { transform: scale(1.035); }
.home-story-card > span { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; }
.home-story-card small, .home-story-card strong, .home-story-card em { display: block; }
.home-story-card small { color: #f0cb89; font-weight: 900; }
.home-story-card strong { margin-top: 3px; font-size: 1.15rem; }
.home-story-card em { margin-top: 3px; color: rgba(255,255,255,.75); font-size: .76rem; font-style: normal; }
.home-story-card.feature strong { font-size: clamp(1.35rem, 2.6vw, 2rem); }

.home-status-section { padding-top: 36px; padding-bottom: 84px; }
.home-notice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.notice-card { display: flex; gap: 16px; align-items: start; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,253,248,.92); }
.notice-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--primary-dark); background: #f4dfb4; font-family: STKaiti, KaiTi, serif; font-size: 1.15rem; font-weight: 900; }
.notice-card h3 { margin: 9px 0 5px; }
.notice-card p { margin: 0 0 7px; color: var(--muted); }

@media (max-width: 1080px) {
  .lobby-shell { grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); }
  .home-quick-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 820px) {
  .lobby-shell { grid-template-columns: 1fr; min-height: 0; }
  .lobby-copy { padding: 28px 24px 16px; }
  .lobby-visual { min-height: 390px; }
  .home-story-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 330px 220px 220px; }
  .home-story-card.feature { grid-column: 1 / 3; grid-row: auto; min-height: 330px; }
  .home-story-card:last-child { grid-column: 1 / 3; }
}

@media (max-width: 680px) {
  .home-lobby {
    padding: 12px 0 14px;
    background:
      radial-gradient(circle at 8% 0, rgba(221,170,78,.22), transparent 17rem),
      radial-gradient(circle at 100% 32%, rgba(73,112,76,.11), transparent 17rem);
  }

  .lobby-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: rgba(255,253,248,.94);
    box-shadow: 0 14px 40px rgba(74,38,35,.11);
  }

  .lobby-copy {
    order: 2;
    padding: 17px 16px 16px;
  }

  .lobby-kicker {
    padding: 6px 10px;
    font-size: .65rem;
    letter-spacing: .08em;
  }

  .lobby-copy h1 {
    margin: 11px 0 7px;
    font-family: inherit;
    font-size: clamp(2.65rem, 13vw, 3.35rem);
    font-weight: 950;
    letter-spacing: -.07em;
    line-height: .98;
  }

  .lobby-copy > p {
    font-size: .83rem;
    line-height: 1.58;
  }

  .lobby-status {
    align-items: center;
    flex-direction: row;
    gap: 7px 9px;
    margin-top: 11px;
    font-size: .67rem;
  }

  .lobby-status .status { padding: 4px 8px; }

  .lobby-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 13px;
  }

  .lobby-actions .button {
    min-width: 0;
    min-height: 40px;
    padding: 8px 7px;
    border-radius: 12px;
    font-size: .79rem;
    box-shadow: none;
  }

  .lobby-progress-card {
    gap: 7px;
    margin-top: 11px;
    padding: 11px 12px;
    border-radius: 14px;
    font-size: .8rem;
  }

  .lobby-progress-track { height: 6px; }

  .lobby-visual {
    order: 1;
    min-height: 0;
    height: 176px;
    border-radius: 0;
  }

  .lobby-visual::after { background: linear-gradient(180deg, transparent 30%, rgba(37,25,23,.78)); }
  .lobby-visual-caption { left: 16px; right: 16px; bottom: 14px; }
  .lobby-visual-caption strong { font-size: 1rem; }
  .lobby-visual-caption span { margin-top: 3px; font-size: .66rem; }
  .lobby-photo-chip { display: none; }

  .home-quick-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 11px;
    padding: 9px 6px;
    border: 1px solid rgba(110,76,59,.1);
    border-radius: 20px;
    background: rgba(255,253,248,.86);
    box-shadow: 0 10px 28px rgba(74,38,35,.07);
  }

  .home-quick-grid a {
    min-height: 70px;
    padding: 7px 1px;
    border: 0;
    border-radius: 12px;
    background: transparent;
  }

  .home-quick-grid a:active { background: #f4eadf; }
  .home-quick-grid b { width: 30px; height: 30px; margin-bottom: 5px; border-radius: 10px; font-size: .95rem; }
  .home-quick-grid a:nth-child(3n+1) b { color: #7b202b; background: #f4e1e0; }
  .home-quick-grid a:nth-child(3n+2) b { color: #9a5d12; background: #f7ead0; }
  .home-quick-grid a:nth-child(3n) b { color: #356b49; background: #e3f0e6; }
  .home-quick-grid span { font-size: .66rem; }
  .home-quick-grid small { display: none; }

  .stage-strip, .home-section { padding: 29px 0; }
  .stage-strip { border-block: 1px solid rgba(110,76,59,.08); background: rgba(255,251,244,.58); }

  .home-section-head {
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .home-section-head h2 {
    margin-top: 4px;
    font-family: inherit;
    font-size: 1.48rem;
    font-weight: 950;
    letter-spacing: -.04em;
  }

  .home-section-head .eyebrow { font-size: .65rem; }
  .home-section-head > a { display: inline-flex; flex: 0 0 auto; font-size: .68rem; }

  .stage-rail { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .stage-item {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    grid-template-rows: auto auto;
    gap: 2px 9px;
    align-content: center;
    min-height: 86px;
    padding: 11px;
    border: 0;
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px rgba(110,76,59,.11);
  }

  .stage-item b {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    align-self: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #9e8c7b;
    background: #f1e9dd;
    font-size: .72rem;
  }

  .stage-item strong { margin-top: 0; font-size: .86rem; }
  .stage-item span { margin-top: 0; font-size: .65rem; line-height: 1.35; }
  .stage-item.current { box-shadow: 0 9px 20px rgba(94,23,32,.16); }
  .stage-item.current b { color: #67202a; background: #f2cc80; }

  .home-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 210px 166px 150px;
    gap: 9px;
  }

  .home-story-card { min-height: 0; border-radius: 17px; }
  .home-story-card.feature { grid-column: 1 / 3; grid-row: auto; min-height: 0; }
  .home-story-card:last-child { grid-column: 1 / 3; }
  .home-story-card > span { left: 13px; right: 13px; bottom: 12px; }
  .home-story-card small { font-size: .66rem; }
  .home-story-card strong { font-size: .82rem; line-height: 1.25; }
  .home-story-card em { margin-top: 2px; font-size: .62rem; line-height: 1.35; }
  .home-story-card.feature strong { font-size: 1.12rem; }

  .home-status-section { padding-top: 24px; padding-bottom: 34px; }
  .home-notice { grid-template-columns: 1fr; gap: 9px; }

  .notice-card {
    gap: 11px;
    padding: 13px;
    border: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(110,76,59,.11);
  }

  .notice-icon { flex-basis: 36px; height: 36px; border-radius: 11px; font-size: .95rem; }
  .notice-card .status { padding: 4px 7px; font-size: .62rem; }
  .notice-card h3 { margin: 6px 0 3px; font-size: .9rem; }
  .notice-card p { margin-bottom: 4px; font-size: .72rem; line-height: 1.5; }
  .notice-card a { font-size: .72rem; }
}

@media (max-width: 390px) {
  .lobby-copy { padding-inline: 14px; }
  .lobby-copy h1 { font-size: 2.72rem; }
  .lobby-visual { height: 164px; }
  .home-quick-grid { gap: 5px; }
  .home-quick-grid a { min-height: 68px; }
  .home-quick-grid span { font-size: .63rem; }
  .home-section-head h2 { font-size: 1.38rem; }
}
