/* garlicoin.org: the home page.
   Loaded after /assets/site.css by the pages that need it (their <head> links it). Split out of site.css on
   2026-10-21: keep a rule here only if just these pages use it; anything shared goes in site.css. */

/* ---------- home ---------- */
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 24px;
  background: var(--hero-bg);
}
.hero-band .eyebrow { font-weight: 700; color: var(--gold-text); margin-bottom: 10px; }
.hero-band h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.hero-band p.lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.hero-logo { width: 200px; height: 200px; }
.community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.community h2 { font-size: 1.15rem; margin-bottom: 4px; }
.community p { color: var(--muted); }
.community .hero-actions { flex: none; }
@media (max-width: 640px) {
  .hero-band { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; text-align: center; gap: 18px; border-radius: 20px; }
  .hero-band .hero-logo { display: none; }
  .hero-band p.lead { margin-left: auto; margin-right: auto; }
  .community { flex-direction: column; align-items: stretch; text-align: center; }
}
/* hero */
.hero-band {
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
  border: 2px solid rgba(184, 122, 12, .25);
}
.hero-band::before, .hero-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  pointer-events: none;
}
.hero-band::before { width: 320px; height: 320px; right: -70px; top: -90px; }
.hero-band::after { width: 160px; height: 160px; right: 230px; bottom: -80px; background: rgba(255, 255, 255, .18); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-band::before, :root:not([data-theme="light"]) .hero-band::after { background: rgba(255, 210, 100, .06); }
}
.hero-band > * { position: relative; z-index: 1; }
.hero-band .eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-band .eyebrow { background: rgba(255, 207, 92, .12); color: var(--gold-text); }
}
.hero-band p.lead { color: var(--ink); opacity: .78; }
.hero-logo {
  filter: drop-shadow(0 14px 18px rgba(120, 75, 0, .28));
  animation: bob 5s ease-in-out infinite;
}
@media (max-width: 640px) {
  .hero-band::after { display: none; }
}
/* ---------- home: live block line ---------- */
.live-strip {
  display: inline-block;
  max-width: 100%;
  margin-top: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.live-strip[hidden] { display: none; }
.live-strip:hover { color: var(--ink); background: rgba(255, 255, 255, .8); }
.live-dot { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 138, 76, .5); animation: pulse 2s ease-out infinite; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .live-strip { background: rgba(255, 207, 92, .12); }
  :root:not([data-theme="light"]) .live-strip:hover { background: rgba(255, 207, 92, .2); }
}
/* home hero: paste an address, go to the faucet */
.hero-band p.lead { margin-bottom: 18px; }
.hero-faucet { display: flex; gap: 10px; max-width: 560px; }
.hero-faucet input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem;
  padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); outline: none;
}
.hero-faucet input:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
.hero-faucet .btn { flex: none; }
.hero-faucet-note { margin-top: 10px; font-size: .92rem; font-weight: 600; color: var(--ink); opacity: .8; }
.hero-faucet-note .bad { color: var(--bad); opacity: 1; }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-weight: 700; }
.hero-links a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.hero-band .live-strip { margin-top: 18px; }
@media (max-width: 640px) {
  .hero-faucet { flex-direction: column; margin: 0 auto; }
  .hero-faucet input { text-align: center; }
  .hero-faucet .btn { width: 100%; }
  .hero-links { justify-content: center; }
  /* home services: icon + title tiles, two per row on phones */
  .services.services-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .services-4 .service { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; padding: 18px 10px 16px; }
  .services-4 .service p, .services-4 .service .more { display: none; }
  .services-4 .service h2 { font-size: 1rem; margin: 0; line-height: 1.25; }
  .services-4 .service .icon { width: 44px; height: 44px; border-radius: 12px; }
  .services-4 .service .icon svg { width: 22px; height: 22px; }
}
.fun-tile .icon {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #f7d26a); color: #2b2416; box-shadow: 0 3px 0 var(--edge-gold); transform: rotate(-6deg);
}
.fun-tile .icon svg { width: 20px; height: 20px; }
:root[data-theme="dark"] .hero-band::before, :root[data-theme="dark"] .hero-band::after { background: rgba(255, 210, 100, .06); }
:root[data-theme="dark"] .hero-band .eyebrow { background: rgba(255, 207, 92, .12); color: var(--gold-text); }
:root[data-theme="dark"] .live-strip { background: rgba(255, 207, 92, .12); }
:root[data-theme="dark"] .live-strip:hover { background: rgba(255, 207, 92, .2); }
.game-tile .icon { background: rgba(255, 255, 255, .55); color: #2b2416; }
.game-tile .fun-text span { color: #4a3a1c; }
.game-tile.g2 { --g1: #ffd2c2; --g2: #f08a5d; }
.game-tile.g3 { --g1: #d9f2c4; --g2: #8ccf6a; }
.game-tile.g4 { --g1: #cfe3ff; --g2: #7aa7f0; }
.game-tile.g5 { --g1: #e4dcff; --g2: #a993ef; }
.game-tile.g6 { --g1: #fff1b8; --g2: #e9c14a; }
.game-tile.g7 { --g1: #dcd6ff; --g2: #8f86e0; }
.game-tile.g8 { --g1: #cdeee6; --g2: #5fc2ac; }
/* home: the line under "Get free GRLC" gains "· 5,567 GRLC left in the faucet" when faucet.json arrives; keep a line for it */
.hero-faucet-note { min-height: 2lh; }
@media (max-width: 600px) {
  .hero-faucet-note { min-height: 3lh; }
}
.hero-band .live-strip[hidden] { display: inline-block !important; visibility: hidden; }
/* home: the latest Block Lotto winner, under the Play tiles */
.lotto-latest { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .95rem; }
.lotto-latest a { font-weight: 800; white-space: nowrap; }
.lotto-latest .nowrap { white-space: nowrap; }
.home-hero .lead { max-width: 54ch; }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 22px; }
.home-cta .btn { padding: 14px 28px; font-size: 1.08rem; }
.home-cta-note { margin: 0; max-width: 32ch; font-size: .92rem; font-weight: 600; opacity: .8; }
.home-cta-note .pill, .door-links .pill { font-size: .7rem; padding: 1px 7px; vertical-align: 1px; }
.home-faucet-label { display: block; margin-bottom: 8px; font-size: .95rem; font-weight: 700; }
.home-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hl-cell { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.hl-cell:hover { color: var(--ink); border-color: var(--gold); }
.hl-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.hl-val { font-family: var(--font-fun); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.hl-sub { min-height: 1.3em; font-size: .82rem; color: var(--muted); }
.hl-cell [data-p="chg"]:empty + .hl-24 { display: none; }
.home-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door h2 .icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--gold), #f7d26a); color: #2b2416; box-shadow: 0 3px 0 var(--edge-gold); transform: rotate(-6deg); }
.door h2 .icon svg { width: 18px; height: 18px; }
.door-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.door-links li[hidden] { display: none; }
.door-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.door-links a:hover { color: var(--ink); border-color: var(--gold); }
.door-links a.go { background: var(--gold); border-color: transparent; color: var(--on-gold); }
.door-links a.go:hover { background: var(--gold-deep); color: var(--on-gold); }
.door-links a.go .pill { background: rgba(255, 255, 255, .6); color: #2b2416; }
@media (min-width: 861px) {
  /* side by side, each door is a column of full-width rows; stacked on phones, a wrap of chips */
  .door-links { flex-direction: column; gap: 6px; }
  .door-links a { display: flex; border-radius: 10px; padding: 8px 12px; }
  .door-links a::after { content: "→"; margin-left: auto; padding-left: 8px; color: var(--gold-text); }
  .door-links a.go::after { color: inherit; }
}
@media (max-width: 860px) {
  .home-doors { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .home-hero { padding: 24px 18px; gap: 0; }
  .home-hero .eyebrow { margin-bottom: 8px; font-size: .85rem; }
  .home-hero h1 { margin-bottom: 10px; }
  .home-hero p.lead { margin-bottom: 16px; font-size: 1rem; }
  .home-cta { flex-direction: column; gap: 6px; margin-bottom: 18px; }
  .home-cta .btn { width: 100%; }
  .home-cta-note { max-width: none; font-size: .86rem; }
  .home-faucet-label { font-size: .9rem; }
  .home-hero .hero-links { margin-top: 10px; gap: 4px 12px; font-size: .84rem; }
  .home-live { gap: 8px; }
  .hl-cell { padding: 10px 8px; text-align: center; }
  .hl-label, .hl-sub { font-size: .74rem; }
  .hl-val { font-size: 1.05rem; }
  .door-links { gap: 6px; }
  .door-links a { padding: 6px 11px; font-size: .86rem; }
  /* Play: the same eight tiles in the same order, as short rows instead of tall squares */
  .home .game-grid { gap: 8px; }
  .home .game-tile { flex-direction: row; text-align: left; gap: 10px; padding: 9px 10px; }
  .home .game-tile .icon { width: 32px; height: 32px; border-radius: 9px; }
  .home .game-tile .icon svg { width: 17px; height: 17px; }
  .home .game-tile .fun-text strong { font-size: .9rem; line-height: 1.2; }
  .home .wall-latest-list li:nth-child(n+2) { display: none; }
  .home .wall-latest .fun-row-head .card-title { margin-bottom: 4px; }
  .home .wall-latest .btn { width: 100%; }
  .home .community { gap: 12px; padding: 18px; }
  .home .community .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home .community .btn { padding: 11px 6px; gap: 6px; font-size: .88rem; }
}
