/* Homepage product story; shared game, Challenge and account styles stay in their own files. */
.home-skip-link { position: fixed; top: 10px; left: 16px; z-index: 300; padding: 10px 16px; background: white; color: var(--ink); border-radius: 8px; transform: translateY(-180%); }
.home-skip-link:focus { transform: none; }
.home-page main > section { scroll-margin-top: 90px; }
.home-page #cookbook { scroll-margin-top: 100px; }
.home-page a:focus-visible,
.home-page summary:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid #a66a00;
  outline-offset: 4px;
}
.home-page .home-hero a:focus-visible { outline-color: #f9d47c; }
.home-page main > .section-pad:not(.home-hero) .eyebrow { color: #805608; }

.home-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  padding-top: clamp(44px, 6vw, 82px);
  padding-bottom: clamp(44px, 6vw, 82px);
  gap: clamp(30px, 5vw, 72px);
}
.home-hero h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 5.8vw, 5.5rem);
  line-height: 1.01;
  letter-spacing: -.06em;
}
.home-hero .hero-subtitle { font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.home-hero .hero-actions { gap: 12px; align-items: center; }
.home-hero .tiny-note { max-width: 540px; color: #d3d9e2; font-size: .88rem; }
.home-hero-how { padding: 10px 2px; font-weight: 750; text-underline-offset: 5px; }
.home-hero-how span { margin-left: 4px; }

.home-starter-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #657080;
  border-radius: 24px;
  background: #101c2c;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .22);
}
.home-starter-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f9d47c;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.home-starter-label span { font-size: 1.25rem; }
.home-starter-card h2 { margin: 18px 0 12px; font-size: clamp(1.7rem, 2.9vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; }
.home-starter-card > p { color: #d3d9e2; }
.home-starter-ingredients { list-style: none; padding: 0; margin: 24px 0; }
.home-starter-ingredients li { display: flex; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid #354253; }
.home-starter-ingredients li > span { font-size: .78rem; color: #f9d47c; line-height: 1.8; font-variant-numeric: tabular-nums; }
.home-starter-ingredients strong { font-size: .95rem; }
.home-starter-ingredients p { margin: 2px 0 0; font-size: .88rem; color: #bac5d4; }
.home-starter-note { font-size: .85rem; line-height: 1.65; }
.home-starter-download { display: inline-block; padding: 7px 0; font-size: .86rem; font-weight: 750; color: #f9d47c; text-underline-offset: 4px; overflow-wrap: anywhere; }

.home-workflow .section-heading { max-width: 740px; }
.home-workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-workspace-card {
  min-width: 0;
  padding: 24px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.home-step-number { display: inline-grid; place-items: center; width: 32px; height: 32px; background: #f9e6bb; color: #704c0a; border-radius: 10px; font-weight: 900; font-size: .9rem; }
.home-workspace-card h3 { margin: 18px 0 12px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.home-workspace-card > p { font-size: .94rem; margin: 0; }
.home-workspace-card .home-workspace-tools { color: #5c6470; font-size: .78rem; line-height: 1.7; margin-top: 16px; }
.home-workflow-note { max-width: 800px; margin: 26px auto 0; text-align: center; color: #505a69; font-size: .93rem; }
.home-workflow-note strong { color: var(--ink); }

.home-features { background: #f3e9d5; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 54px); align-items: start; }
.home-feature-intro h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.06; letter-spacing: -.045em; margin: 0 0 18px; }
.home-feature-intro > p:last-child { color: #505a69; margin-bottom: 0; }
.home-feature-grid { display: grid; gap: 22px; }
.home-feature-card { padding: 0 0 20px; border-bottom: 1px solid #cdbf9f; }
.home-feature-card:last-child { border-bottom: 0; padding-bottom: 0; }
.home-feature-card h3 { font-size: 1.2rem; line-height: 1.2; margin: 0 0 9px; }
.home-feature-card p { color: #454f5d; margin: 0; }

.home-page #games > .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page #games > .game-grid .game-card { min-height: 0; padding: 25px 28px; }
.home-page #games > .game-grid .game-card h3 { margin-top: 0; }
.home-page #games > .game-grid .game-card p { margin-bottom: 0; }
.home-page .home-creator-showcase .button-secondary { color: var(--ink); background: white; border-color: #9ca5ad; }
.home-page .home-creator-showcase .button-secondary:hover { background: #f6eacb; }

.home-membership { background: #f3e9d5; }
.home-member-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.home-member-card { min-width: 0; background: #fffdf8; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; }
.home-member-card h3 { margin: 0 0 18px; font-size: 1.6rem; letter-spacing: -.035em; line-height: 1.15; }
.home-member-card p { color: #454f5d; }
.home-member-card .home-member-note { padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; }
.home-member-card .text-link { display: inline-block; padding-top: 8px; color: #805608; text-decoration: underline; text-underline-offset: 4px; }
.home-page .signup-section { background: var(--paper); }
.home-page .signup-section .section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.home-page .signup-form { max-width: 700px; }

.home-feedback { padding-top: 0; padding-bottom: 0; max-width: 1064px; margin: 0 auto; }
.home-feedback-intro { text-align: center; }
.home-feedback-intro h2 { margin: 0; font-size: 1.7rem; line-height: 1.2; letter-spacing: -.03em; }
.home-feedback-intro > p:last-child { color: #505a69; }
.home-report-panel { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; }
.home-report-panel summary { padding: 20px 24px; font-weight: 850; cursor: pointer; }
.home-report-panel[open] summary { border-bottom: 1px solid var(--line); }
.home-report-panel summary:focus-visible { outline-offset: -6px; }
.home-report-panel .bug-form { max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.home-page .support-teaser { padding-top: clamp(56px, 7vw, 86px); }

@media (max-width: 1120px) {
  .home-workspace-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero { gap: 30px; }
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1 { max-width: 700px; }
  .home-starter-card { max-width: 700px; width: 100%; }
  .home-features { grid-template-columns: 1fr; }
  .home-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .home-feature-card { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 640px) {
  .home-workspace-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-workspace-card { padding: 22px; }
  .home-workspace-card h3 { display: inline; margin: 0 0 0 10px; }
  .home-workspace-card > p { margin-top: 13px; }
  .home-workspace-card .home-workspace-tools { margin-top: 10px; }
  .home-feature-grid, .home-member-grid, .home-page #games > .game-grid { grid-template-columns: 1fr; }
  .home-feature-card { padding-bottom: 20px; border-bottom: 1px solid #cdbf9f; }
  .home-hero h1 { font-size: clamp(2.65rem, 10vw, 4rem); }
  .home-hero .hero-actions > .button { flex: 1 1 180px; }
  .home-hero-how { flex-basis: 100%; }
  .home-starter-card { border-radius: 20px; }
  .home-page .site-footer { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page .game-card-link:hover { transform: none; transition: none; }
}
.home-page #nav-signed-out:not([hidden]) { display: inline-flex; align-items: center; gap: 12px; }

.home-fishing-feature { margin-top: 22px; }
.home-fishing-feature .home-challenge-art { aspect-ratio: 2 / 1; }
.home-fishing-feature .home-challenge-art img { object-position: 43% center; }
.home-fishing-feature .home-challenge-copy h3 { font-size: clamp(1.45rem, 2.25vw, 2rem); }
.home-fishing-feature .home-challenge-mini-board.tournament-koth { margin: 0; }
.home-fishing-feature .tournament-koth li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 7px; padding-right: 0; padding-left: 0; font-size: .83rem; }
.home-fishing-feature .tournament-koth .tournament-koth-empty { display: block; padding: 12px 0; font-size: .9rem; }
.home-page .home-fishing-feature .button-secondary { color: var(--ink); background: #fff; border-color: #9ca5ad; }
.home-page .home-fishing-feature .button-secondary:hover { background: #f6eacb; }
.home-page .home-fishing-feature .button-secondary:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.tournament-koth { margin: 20px 0; padding: 18px 20px; border: 1px solid #9ba879; border-radius: 14px; background: linear-gradient(135deg, #152b22, #243b2e); color: #f2f2df; box-shadow: 0 10px 28px #11251c24; }
.tournament-koth h4 { margin: 0; color: #e2c57b; font: 700 1.2rem/1.3 Georgia, serif; }
.tournament-koth .eyebrow { margin: 0 0 4px; color: #bbce9d; }
.tournament-koth ol { list-style: none; padding: 0; margin: 12px 0 0; }
.tournament-koth li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 8px 4px; border-top: 1px solid #ffffff22; }
.tournament-koth .tournament-koth-empty { display: block; padding: 12px 4px; }
.tournament-koth li:first-child .tournament-koth-rank { color: #f0cb67; }
.tournament-koth-rank { color: #bbce9d; font: 700 .85rem/1 monospace; }
.tournament-koth-score { color: #e2c57b; white-space: nowrap; }
@media(max-width:900px) { .home-fishing-feature .home-challenge-mini-board.tournament-koth { margin-top: 0; } }
@media(max-width:640px) { .tournament-koth { padding: 15px 12px; } .tournament-koth li:not(.tournament-koth-empty) { grid-template-columns: 34px 1fr; } .home-fishing-feature .tournament-koth li:not(.tournament-koth-empty) { grid-template-columns: 34px minmax(0, 1fr); } .tournament-koth-score { grid-column: 2; font-size: .9rem; } }
