#home-view { max-width: 1120px; margin: 0 auto; }
#home-view .hero { min-height: 0; }
#home-view .hero-content { max-width: 650px; padding: 43px clamp(25px, 4vw, 54px) 44px; }
#home-view .hero h1 { margin: 17px 0 10px; font-size: clamp(36px, 4vw, 57px); }
#home-view .hero-lead { max-width: 510px; margin: 0; font-size: 15px; line-height: 1.65; }
#home-view .hero-kicker { font-size: 10px; letter-spacing: .12em; }
#home-view .hero-image { background-position: center right; }
.home-quest {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 520px;
  margin-top: 22px;
  padding: 18px 20px 17px;
  border: 1px solid #b8d795;
  border-radius: 15px;
  background: linear-gradient(145deg, #0b2532f2, #103d42e8);
  box-shadow: 0 12px 26px #02111cc9, inset 0 1px #ffffff42, 0 0 24px #c8ff8c24;
}
.home-quest-label { color: #ccf4aa; font-size: 11px; font-weight: 900; letter-spacing: .09em; }
.home-stage-name { color: #fff; font-size: clamp(22px, 2.3vw, 29px); line-height: 1.35; }
.home-stage-chapter { color: #bfe3de; font-size: 12px; font-weight: 750; }
.home-level-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding-top: 13px; border-top: 1px solid #a9cab763; }
.home-level-row label { flex: 0 0 auto; color: #fff7cf; font-size: 13px; font-weight: 850; }
.home-level-row label small { display: block; margin-top: 3px; color: #b1cbc6; font-size: 10px; font-weight: 600; }
.home-level-row select {
  min-width: 0;
  width: 61%;
  min-height: 43px;
  padding: 8px 30px 8px 11px;
  border: 1px solid #a3e2b8;
  border-radius: 9px;
  background: #193e45;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.home-level-row select:focus-visible, .home-more summary:focus-visible, .home-path:focus-visible, .home-more-actions button:focus-visible { outline: 3px solid #ddff9d; outline-offset: 3px; }
.home-play-button { width: 100%; min-height: 53px; margin-top: 12px; font-size: 17px; }
.home-play-note { color: #c8dcd2; font-size: 11px; text-align: center; }
.home-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 23px; }
.home-path {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 108px;
  padding: 18px 20px;
  border: 1px solid #699e9b;
  border-radius: 15px;
  background: linear-gradient(145deg, #1c4951, #102d3d);
  color: #fff;
  text-align: left;
  box-shadow: 0 9px 21px #0414219e, inset 0 1px #ffffff2e;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.home-path:hover { transform: translateY(-3px); border-color: #caf4b1; background: linear-gradient(145deg, #285d5b, #133d47); }
.home-path-icon { display: grid; flex: 0 0 49px; width: 49px; height: 49px; place-items: center; border: 1px solid #b4dfb0; border-radius: 13px; background: #d5ffae1b; color: #d7ff9f; font-size: 27px; }
.home-path > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.home-path strong { font-size: 20px; }
.home-path small { color: #c6dedc; font-size: 12px; line-height: 1.5; }
.home-path-arrow { margin-left: auto; color: #d7ff9f; font-size: 22px; }
.home-more { margin: 18px 0 0; border: 1px solid #4f7a7c; border-radius: 12px; background: #0b2936b8; }
.home-more summary { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 45px 14px 20px; color: #e7f5ee; font-size: 14px; font-weight: 850; cursor: pointer; list-style: none; }
.home-more summary::-webkit-details-marker { display: none; }
.home-more summary::after { content: "⌄"; position: absolute; right: 18px; top: 14px; color: #d7ff9f; font-size: 24px; transition: transform .2s; }
.home-more[open] summary::after { transform: rotate(180deg); }
.home-more summary span { color: #9ebcba; font-size: 11px; font-weight: 600; }
.home-more-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 0 15px 16px; }
.home-more-actions button { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 45px; padding: 9px 12px; border: 1px solid #668e8c; border-radius: 8px; background: #1a414b; color: #e9faf3; font: inherit; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer; }
.home-more-actions button:hover { border-color: #d7ff9f; background: #27595c; }
.map-difficulty { margin-bottom: 24px; border: 1px solid #6b9b93; border-radius: 12px; background: #143744; box-shadow: inset 0 1px #ffffff26; }
.map-difficulty summary { display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 10px 18px; color: #dceee7; font-size: 13px; font-weight: 800; list-style: none; cursor: pointer; }
.map-difficulty summary::-webkit-details-marker { display: none; }
.map-difficulty summary strong { color: #e6ffa3; font-size: 16px; }
.map-difficulty summary #map-current-level-count { color: #b9d4ca; font-size: 11px; }
.map-difficulty-change { margin-left: auto; color: #e2ffb1; font-size: 12px; }
.map-difficulty-change::after { content: " ▾"; }
.map-difficulty[open] .map-difficulty-change::after { content: " ▴"; }
.map-difficulty summary:focus-visible { outline: 3px solid #ddff9d; outline-offset: 3px; }
.map-difficulty .difficulty-panel { margin: 0 9px 9px; }
@media (max-width: 850px) {
  #home-view .hero-content { max-width: 580px; padding: 36px 30px; }
  #home-view .hero h1 { font-size: clamp(34px, 5vw, 50px); }
  .home-path strong { font-size: 17px; }
  .home-paths { gap: 10px; }
  .home-more-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-nav .nav-item[data-view="review"], .side-nav .nav-item[data-view="stats"] { display: none; }
  #home-view .hero-image { background-size: auto 230px; background-position: 71% top; }
  #home-view .hero::after { background: linear-gradient(180deg, transparent 0, #0818258a 95px, #081825 185px, #081825 100%); }
  #home-view .hero-content { padding: 137px 17px 21px; }
  #home-view .hero h1 { margin: 10px 0 9px; font-size: clamp(28px, 8.2vw, 38px); }
  #home-view .hero-lead { font-size: 13px; line-height: 1.55; }
  .home-quest { margin-top: 15px; padding: 15px; }
  .home-stage-name { font-size: 21px; }
  .home-play-button { min-height: 50px; font-size: 15px; }
  .home-paths { grid-template-columns: 1fr; margin-top: 14px; }
  .home-path { min-height: 78px; padding: 12px 14px; }
  .home-path-icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 23px; }
  .home-path strong { font-size: 17px; }
  .home-path small { font-size: 11px; }
  .home-more { margin-top: 12px; }
  .home-more summary { display: block; min-height: 0; padding: 12px 42px 12px 14px; font-size: 13px; }
  .home-more summary span { display: block; margin-top: 3px; font-size: 10px; }
  .home-more-actions { grid-template-columns: 1fr 1fr; }
  .map-difficulty { margin-bottom: 17px; }
  .map-difficulty summary { flex-wrap: wrap; min-height: 51px; padding: 10px 12px; gap: 4px 6px; font-size: 12px; }
  .map-difficulty summary strong { font-size: 14px; }
  .map-difficulty summary #map-current-level-count { font-size: 10px; }
  #map-view .chapter-jumps { display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; padding: 3px 2px 10px; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  #map-view .chapter-jumps a { flex: 0 0 auto; white-space: nowrap; }
  #map-view .chapter-jumps::-webkit-scrollbar { height: 4px; }
  #map-view .chapter-jumps::-webkit-scrollbar-track { background: #173b43; border-radius: 99px; }
  #map-view .chapter-jumps::-webkit-scrollbar-thumb { background: #83c9a8; border-radius: 99px; }
}
@media (max-width: 360px) {
  #home-view .hero-content { padding-top: 119px; }
  #home-view .hero h1 { font-size: 27px; }
  .home-quest { padding: 12px; }
  .home-stage-name { font-size: 19px; }
  .home-level-row { align-items: stretch; flex-direction: column; gap: 7px; }
  .home-level-row label small { display: inline; margin-left: 5px; }
  .home-level-row select { width: 100%; }
  .home-more-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home-path, .home-more summary::after { transition: none; }
}
