.home-page {
  background: #fff8eb;
  min-height: 100dvh;
}
.home-page header {
  max-width: 1160px;
  padding: 24px 32px;
}
.home-page a {
  color: inherit;
  text-decoration: none;
}
.home-page .logo {
  color: #685078;
}
.home-tag {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.home-main {
  max-width: 1100px;
  padding: 36px 32px 50px;
}
.home-intro {
  text-align: center;
  margin-bottom: 30px;
}
.home-intro .eyebrow {
  margin-bottom: 12px;
}
.home-intro h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}
.home-intro > p:last-child {
  font-size: 18px;
  margin: 0;
  color: #786577;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.mode-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 25px;
  padding: 23px 26px;
  box-shadow: 4px 5px 0 var(--line);
  min-height: 252px;
}
.mode-card h2 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  margin: 12px 0 10px;
}
.mode-card p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mode-symbol {
  font-family: "Fredoka";
  font-size: 34px;
  line-height: 1;
}
.mode-badge {
  background: #fff8ebbb;
  border: 1px solid #66556955;
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
}
.coming-soon {
  text-transform: none;
  font-size: 12px;
  letter-spacing: 0;
}
.free-card {
  background: var(--pink);
}
.shelf-mode {
  background: var(--mint);
}
.daily-card {
  background: var(--yellow);
}
.multiplayer-card {
  background: var(--lilac);
}
.mode-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
  border-top: 1.5px solid #66556944;
  padding-top: 12px;
  margin-top: auto;
}
.mode-action span {
  font-size: 23px;
}
.mode-note {
  font-size: 14px;
  color: #715d70;
  margin-top: auto;
}
.mode-grid > a:hover,
.shelf-mode:hover {
  transform: translateY(-3px);
  box-shadow: 4px 8px 0 var(--line);
}
.mode-grid > a {
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.mode-grid a:focus-visible,
.home-page a:focus-visible {
  outline: 3px solid #806499;
  outline-offset: 5px;
}
.continue-draft {
  display: block;
  text-align: center;
  margin-top: 28px;
  text-decoration: underline !important;
  font-weight: 800;
  font-size: 14px;
}
.continue-draft[hidden] {
  display: none;
}
.home-page .shelf-card {
  color: inherit;
  text-decoration: none;
}
.shelf-import {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 800;
}
.empty-shelf {
  grid-column: 1/-1;
  padding: 22px;
  background: var(--lilac);
  border-radius: 18px;
}
.empty-shelf h3 {
  font-size: 25px;
  font-weight: 500;
}
.empty-shelf a {
  text-decoration: underline;
  font-weight: 800;
}
#legacyPictures h3 {
  margin-top: 26px;
  font-size: 24px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .home-page header {
    padding: 18px 20px;
  }
  .home-page .logo {
    font-size: 35px;
  }
  .home-tag {
    font-size: 10px;
    max-width: 90px;
    line-height: 1.5;
    text-align: right;
  }
  .home-main {
    padding: 25px 20px 30px;
  }
  .home-intro {
    margin-bottom: 24px;
  }
  .home-intro h1 {
    font-size: 39px;
  }
  .home-intro .eyebrow {
    font-size: 10px;
  }
  .mode-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .mode-card {
    padding: 17px 20px;
    min-height: 0;
    border-radius: 20px;
    position: relative;
  }
  .mode-card h2 {
    font-size: 29px;
    margin: 10px 0 8px;
  }
  .mode-card p {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 14px;
  }
  .mode-symbol {
    font-size: 26px;
  }
  .mode-action {
    font-size: 14px;
    padding-top: 8px;
  }
  .mode-note {
    font-size: 13px;
  }
  .home-page dialog {
    padding: 22px;
  }
  .home-page .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mode-badge {
    font-size: 10px;
  }
  .coming-soon {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mode-grid > a {
    transition: none;
  }
}
