/* Home on a computer (2 Nov 2026; docs/plans/2026-11-02-home-page.md, the mock-up Jeff approved:
   media/mock-home-2026-11-02/after-17-full.png). The green top keeps site.css's felt (.hero); this file lays out its
   three layers and the band under it. The phone's Home has its own file, phone-home.css. */

/* --- the green top: headline, the play layer, the learn layer; the rack and the counter on the right --- */
.home-top { padding: 3.2rem 1.5rem 3rem; }
.ht-inner { max-width: var(--page-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; align-items: center; }
.ht-left { min-width: 0; }
.home-top h1 { margin: 0; max-width: 13ch; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.08; text-wrap: balance; }
.ht-play { margin-top: 2.6rem; }
.ht-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0 0 0.9rem;
  font-weight: 700; font-size: 1.12rem; color: var(--g-cream); }
.ht-line[hidden] { display: none; }
.ht-line b { color: var(--g-gold-1, #ffe58a); font-weight: 800; }
.ht-level a { color: var(--g-cream); text-decoration-color: rgba(255, 233, 163, 0.5); text-underline-offset: 4px; }
.ht-coin { flex: none; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #f2c13d 55%, #b37a0c);
  box-shadow: inset 0 0 0 2px rgba(120, 70, 0, 0.45); }
.home-top .ht-buttons { margin: 0; gap: 0.9rem; }
.home-top .ht-buttons .button { white-space: nowrap; }

/* the learn layer: one teal card, the whole card a link to lesson one, with the cap */
.ht-learn { display: flex; align-items: center; gap: 14px; max-width: 34rem; margin-top: 3rem; padding: 12px 20px 12px 16px; border-radius: 16px;
  text-decoration: none; color: var(--g-cream); background: linear-gradient(180deg, #1f6a72, #12474f);
  box-shadow: inset 0 0 0 2px #e9b949, 0 6px 16px rgba(0, 0, 0, 0.25); }
.ht-learn:hover { filter: brightness(1.08); }
.ht-learn-words { display: grid; gap: 2px; min-width: 0; }
.ht-learn-words b { font: 400 1.45rem/1.1 var(--g-font-display); color: #ffd36b; }
.ht-learn-words span { font-weight: 700; font-size: max(1rem, var(--fine-min, 0px)); }

/* the graduation cap: it tips every few seconds and on hover; still for people who turn off motion */
.cap { flex: none; width: 44px; height: 38px; transform-origin: 50% 85%; animation: cap-tip 4.5s ease-in-out 1.2s infinite;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
a:hover > .cap, a:hover .cap, a:focus-visible .cap { animation: cap-tip-now 0.9s ease-in-out; }
@keyframes cap-tip { 0%, 78%, 100% { transform: none; } 84% { transform: translateY(-4px) rotate(-14deg); } 90% { transform: translateY(-2px) rotate(8deg); } 95% { transform: rotate(-3deg); } }
@keyframes cap-tip-now { 0%, 100% { transform: none; } 30% { transform: translateY(-4px) rotate(-14deg); } 60% { transform: translateY(-2px) rotate(8deg); } 80% { transform: rotate(-3deg); } }

/* the right side: the rack (decoration), then the games played at our tables and Watch any of them */
.ht-right { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.ht-right .hero-art { max-width: 100%; }
.ht-count { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.home-top .ht-hands { position: relative; margin: 0; display: grid; justify-items: center; gap: 0.2rem; color: var(--g-cream); }
.home-top .ht-hands .hc-num { font: 400 clamp(3rem, 5vw, 4.4rem)/1 var(--g-font-display); color: #f7e7b4; letter-spacing: 0.01em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28); font-variant-numeric: tabular-nums; transition: text-shadow 0.6s ease, color 0.6s ease; }
.ht-hands .hc-what { font-size: 1.3rem; font-weight: 600; }
.ht-hands .hc-today { font-size: max(0.95rem, var(--fine-min, 0px)); color: rgba(255, 246, 226, 0.8); }
.home-top .ht-watch { white-space: nowrap; }
.ht-apps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.6rem 0.9rem; margin: 0;
  color: rgba(255, 246, 226, 0.92); font-size: max(1.05rem, var(--fine-min, 0px)); text-align: center; }
.ht-apps svg { width: 1.6rem; height: 2.5rem; flex: none; }
.ht-apps svg rect { fill: none; stroke: currentColor; stroke-width: 2; }
.ht-apps svg .fill { fill: currentColor; stroke: none; }

/* the 5 million (home.js): fireworks over the number, or a gold glow for people who turn off motion */
.hc-party { position: relative; }
.hc-fireworks { position: absolute; pointer-events: none; z-index: 3; }
.hc-glow .hc-num { color: #ffe58a !important; text-shadow: 0 0 18px rgba(255, 213, 90, 0.95), 0 0 42px rgba(242, 193, 61, 0.7), 0 3px 0 rgba(0, 0, 0, 0.28) !important; }

@media (min-width: 900px) {
  .ht-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
}

/* the holiday parts, when an event is on, between the green top and the band */
.ht-holiday:empty { display: none; }
.ht-holiday { max-width: var(--page-max); margin: 1.2rem auto 0; }

/* --- under the green top: one soft green band, Today on the left, Coming up on the right --- */
.home-today { max-width: var(--page-max); box-sizing: border-box; margin: 1.6rem auto 0; padding: 20px 24px 24px; border-radius: 22px;
  background: #e2ead6; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 28px; }
.home-today h2 { margin: 0 0 12px; font: 400 1.6rem/1.1 var(--g-font-display); color: #1d3b27; }
.hd-today, .hd-coming { min-width: 0; }
.hd-today-cards { display: grid; gap: 14px; }
.hd-today-cards.hd-two { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.rush-words span, .ht-learn-words span, .want-more li span { text-wrap: pretty; }
.home-today .hd-rush { max-width: none; height: 100%; margin: 0; padding: 14px 18px; }
.hd-rush .rush-words em { font: 400 1.25em/1 var(--g-font-display); font-style: normal; color: #ffd36b; }

/* the move of the day: the tile that was thrown and its name, to /moment */
.hd-move { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; height: 100%; padding: 12px 10px; border-radius: 18px;
  text-decoration: none; color: #1d3b27; background: #fffdf7; box-shadow: 0 2px 10px rgba(30, 50, 30, 0.12); }
.hd-move:hover { box-shadow: 0 4px 14px rgba(30, 50, 30, 0.22); }
.hd-move-words b { font: 400 1.25rem/1.15 var(--g-font-display); white-space: nowrap; }
.hd-rush .rush-words em { white-space: nowrap; }
.hd-tile { flex: none; width: 50px; height: 70px; border-radius: 7px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 16%), radial-gradient(130% 95% at 50% 18%, #fffdf7 0%, var(--tile) 55%, var(--tile-edge) 135%);
  box-shadow: 0 3px 0 var(--tile-shadow), 0 6px 10px rgba(0, 0, 0, 0.22);
  --pip-bam: var(--bam); --pip-crak: var(--crak); --pip-dot: var(--dot); --pip-wind: var(--wind); --tile-ink: var(--ink); --tile-face: var(--tile); }
.hd-tile svg { position: absolute; left: 6%; top: 11%; width: 88%; height: 84%; }
.hd-tile.soap svg { left: 0; top: 0; width: 100%; height: 100%; }
.hd-tile.joker { display: grid; place-items: center; font: 800 12px var(--display); color: var(--joker); }
.hd-tile.flower { display: grid; place-items: center; font: 800 20px var(--display); color: var(--bam); }

/* Coming up: picture cards from the calendar, each to its set in the shop */
.hd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hd-head a { font-weight: 700; color: #1d3b27; text-underline-offset: 3px; white-space: nowrap; }
.hd-events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; }
.hd-events a { display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 12px; border-radius: 18px; text-decoration: none;
  color: #1d3b27; background: #fffdf7; box-shadow: 0 2px 10px rgba(30, 50, 30, 0.12); }
.hd-events a:hover { box-shadow: 0 4px 14px rgba(30, 50, 30, 0.22); }
.hd-pic { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #f4eedf; }
.hd-pic img { width: 100%; height: 100%; object-fit: cover; }
.hd-pic .menorah { width: 56px; height: 47px; }
.hd-date { display: grid; justify-items: center; font: 400 1.6rem/1 var(--g-font-display); color: #1d3b27; }
.hd-date small { font: 700 0.85rem/1.2 var(--g-font-body); text-transform: uppercase; letter-spacing: 0.08em; }
.hd-words { display: grid; gap: 4px; min-width: 0; }
.hd-words b { font: 700 1.05rem/1.2 var(--g-font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-words span { font-size: max(0.95rem, var(--fine-min, 0px)); color: #46584b; white-space: nowrap; }

@media (min-width: 980px) {
  .home-today { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .home-today.hd-alone { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .cap, a:hover .cap, a:focus-visible .cap { animation: none; }
  .home-top .ht-hands .hc-num { transition: none; }
}

/* Teaching beside Learn to play (9 Nov): the same card in burgundy, a board on an easel for its picture */
.ht-learn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 3rem; max-width: 46rem; }
.ht-learn-row .ht-learn { margin-top: 0; flex: 1 1 13rem; max-width: none; padding-right: 14px; }
.ht-teach { background: linear-gradient(180deg, #8a3340, #561c28); }
.ht-learn .board { flex: none; width: 44px; height: 38px; }
.ht-class { margin: 14px 0 0; }

/* the Android app's button, and the iPhone line beside it (9 Nov) */
.ht-apps-soon { display: inline-flex; align-items: center; gap: 0.6rem; }
/* Google's own badge (10 Nov): never recolored or cropped; the picture carries its own clear space */
.ht-play-store { display: inline-block; line-height: 0; border-radius: 10px; }
.ht-play-store img { display: block; height: 72px; width: auto; }
.ht-play-store:focus-visible { outline: 3px solid #ffe3a8; outline-offset: 0; }
