/* Home page only (templates/index.html). Art = original 4.55 client images, built by tools/home_assets.py. */

/* hero */
.h-hero { position: relative; overflow: hidden; min-height: min(92vh, 860px); display: flex; align-items: flex-end; isolation: isolate; }
.h-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: -2; }
.h-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 11, 20, .92) 0%, rgba(7, 11, 20, .72) 38%, rgba(7, 11, 20, .1) 70%),
              linear-gradient(180deg, rgba(7, 11, 20, .3) 0%, transparent 30%, rgba(7, 11, 20, .55) 78%, var(--bg) 100%); }
.h-hero-inner { padding: 96px 0 56px; }
.h-logo { width: min(440px, 80%); height: auto; margin-bottom: 22px; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .7)); }
.h-hero h1 { max-width: 900px; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
.h-lead { font-size: 1.15rem; color: #d3dbea; max-width: 600px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.h-lead strong { color: var(--gold-2); }
.h-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.h-status { list-style: none; margin: 0; padding: 12px 18px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  background: rgba(10, 16, 30, .78); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(6px); font-weight: 500; }
.h-status a { color: var(--text); }
.h-status a:hover { color: var(--gold-2); }
.h-num { color: var(--ok); font: 700 1.2rem var(--head); }
.h-next { color: var(--text); }
.h-next-label { font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: var(--gold);
  border: 1px solid rgba(232, 178, 76, .45); border-radius: 999px; padding: 1px 9px; margin-right: 4px; }
.h-next.live .h-next-label { color: #1b1203; background: var(--gold); }
.h-gift { margin: 14px 0 0; color: #c3cde0; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }

/* AI players */
.h-ai { background: radial-gradient(ellipse at 20% 0%, rgba(232, 178, 76, .08), transparent 60%), var(--bg); }
.h-ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.h-ai-media > img:first-child { aspect-ratio: 1 / 1; object-fit: cover; object-position: 45% 50%; }
.h-ai-media { position: relative; margin: 0; border-radius: var(--radius); overflow: visible; }
.h-ai-media img { height: auto; }
.h-ai-media > img:first-child { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.h-ai-map { position: absolute; right: -18px; bottom: -26px; width: 42%; height: auto; border-radius: 10px; border: 2px solid rgba(232, 178, 76, .55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .7); }
.h-ai-media figcaption { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 8px; background: rgba(7, 11, 20, .78);
  font-size: .85rem; color: #c8d1e3; }
.h-ai-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.h-ai-lead { color: #c3cde0; font-size: 1.05rem; }
.h-armies { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.h-armies li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.h-armies img { grid-row: span 2; width: 48px; height: 48px; object-fit: contain; }
.h-armies strong { font: 700 1.7rem/1 var(--head); }
.h-armies span { color: var(--muted); font-size: .9rem; }
.h-armies .bellato { border-color: rgba(240, 165, 58, .4); } .h-armies .bellato strong { color: var(--bellato); }
.h-armies .cora { border-color: rgba(199, 125, 255, .4); } .h-armies .cora strong { color: var(--cora); }
.h-armies .accretia { border-color: rgba(79, 195, 247, .4); } .h-armies .accretia strong { color: var(--accretia); }
.h-ai-facts { margin: 0 0 14px; display: grid; gap: 14px; }
.h-ai-facts dt { font: 600 1.1rem var(--head); color: var(--gold-2); }
.h-ai-facts dd { margin: 2px 0 0; color: #b9c3d8; }
.h-icons { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.h-ai-facts .h-icons { display: flex; margin-top: 8px; }
.h-icons img { width: 40px; height: 40px; border-radius: 6px; border: 1px solid #2c3d60; background: #05080f; }
.h-icons-lg img { width: 52px; height: 52px; }

.h-sched { list-style: none; padding: 0; margin: 64px 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-sched li { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.h-sched-t { font: 700 2rem/1 var(--head); color: var(--text); }
.h-sched-l { color: var(--muted); }
.h-sched li.next { border-color: rgba(232, 178, 76, .6); box-shadow: 0 0 0 1px rgba(232, 178, 76, .25), 0 10px 30px rgba(232, 178, 76, .08); }
.h-sched li.next .h-sched-t, .h-sched li.live .h-sched-t { color: var(--gold-2); }
.h-sched li.live { border-color: var(--ok); }
.h-sched li .h-sched-in { margin-left: auto; color: var(--gold); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.h-sched li.live .h-sched-in { color: var(--ok); }
.h-sched-note { margin: 0; }

/* races */
.h-races { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.h-race { position: relative; min-height: 520px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel);
  box-shadow: var(--shadow); display: flex; align-items: flex-end; isolation: isolate; }
.h-race-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: -2; transition: transform .5s; }
.h-race:hover .h-race-art { transform: scale(1.04); }
.h-race::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7, 11, 20, .9) 68%, rgba(7, 11, 20, .98)); }
.h-race-body { padding: 24px; }
.h-race-emblem { width: 56px; height: 56px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)); }
.h-race-body p { color: #b9c3d8; margin: 0 0 8px; font-size: .95rem; }
.h-race-body .h-race-tag { margin: 0; font-size: .88rem; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 8px; }
.h-race.bellato { border-color: rgba(240, 165, 58, .35); } .h-race.bellato h3 { color: var(--bellato); }
.h-race.cora { border-color: rgba(199, 125, 255, .35); } .h-race.cora h3 { color: var(--cora); }
.h-race.accretia .h-race-art { object-position: 50% 0; }
.h-race.accretia { border-color: rgba(79, 195, 247, .35); } .h-race.accretia h3 { color: var(--accretia); }

/* new player */
.h-rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.h-rates div { display: grid; padding: 18px 20px; border-radius: 12px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.h-rates strong { font: 700 2.4rem/1 var(--head); color: var(--gold-2); }
.h-rates span { font: 600 1.05rem var(--head); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }
.h-rates small { color: var(--muted); font-size: .85rem; }
.h-gets { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
.h-gets > .card + .card { margin-top: 0; }
.h-get .h-icons { margin-bottom: 14px; }
.h-get p { color: var(--muted); margin: 0; }
.h-get p strong { color: var(--text); }

/* content */
.h-content { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 22px; align-items: stretch; }
.h-tile { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow); }
.h-tile img { width: 100%; height: 0; flex: 1 1 230px; min-height: 230px; object-fit: cover; }
.h-tile-body { padding: 20px 22px 22px; }
.h-tile-body p { color: var(--muted); margin: 0; }
.h-list { display: grid; gap: 12px; }
.h-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.h-item h3 { font-size: 1.1rem; margin-bottom: .25em; }
.h-item p { color: var(--muted); margin: 0; font-size: .93rem; }
.h-item .h-icons { flex: none; flex-direction: column; }

/* links */
.h-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.h-links a { display: grid; align-content: start; gap: 4px; padding: 18px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s, transform .15s; }
.h-links a:hover { border-color: rgba(232, 178, 76, .6); transform: translateY(-2px); color: var(--text); }
.h-links strong { font: 700 1.15rem var(--head); color: var(--gold-2); }
.h-links span { color: var(--muted); font-size: .9rem; }

@media (max-width: 980px) {
  .h-ai-grid { grid-template-columns: 1fr; gap: 56px; }
  .h-ai-map { right: 10px; width: 36%; }
  .h-ai-media > img:first-child { aspect-ratio: 16 / 10; }
  .h-races { grid-template-columns: 1fr 1fr; }
  .h-rates, .h-links { grid-template-columns: 1fr 1fr; }
  .h-gets { grid-template-columns: 1fr 1fr; }
  .h-get-wide { grid-column: 1 / -1; }
  .h-content { grid-template-columns: 1fr 1fr; }
  .h-list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .h-hero { min-height: 0; }
  .h-hero-bg { object-position: 70% 30%; }
  .h-hero::before { background: linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, .7) 45%, rgba(7, 11, 20, .95) 80%, var(--bg) 100%); }
  .h-hero-inner { padding: 56px 0 40px; }
  .h-cta .btn { flex: 1 1 100%; }
  .h-status { display: flex; padding: 12px 14px; gap: 8px 18px; }
  .h-armies { gap: 8px; }
  .h-armies li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; }
  .h-armies img { grid-row: auto; width: 40px; height: 40px; margin-bottom: 4px; }
  .h-sched { grid-template-columns: 1fr; margin-top: 48px; }
  .h-races, .h-gets, .h-content, .h-list, .h-links { grid-template-columns: 1fr; }
  .h-race { min-height: 440px; }
  .h-rates { gap: 10px; }
  .h-rates div { padding: 14px; }
  .h-rates strong { font-size: 2rem; }
}

/* Altar of Genesis: a second war panel under the Chip War schedule (same section, the war story continues) */
.h-altar { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 20px 22px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); }
.h-altar-ico { flex: none; width: 56px; height: 56px; border-radius: 8px; border: 1px solid #2c3d60; background: #05080f; }
.h-altar h3 { margin: 0 0 6px; }
.h-altar p { color: #b9c3d8; margin: 0 0 8px; }

/* events: the current seasonal event leads (wider), the others follow as a list */
.h-events { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.h-event { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--line); color: var(--text); }
.h-event:hover { border-color: rgba(232, 178, 76, .6); color: var(--text); }
.h-event img { flex: none; border-radius: 8px; border: 1px solid #2c3d60; background: #05080f; }
.h-event > span { display: grid; gap: 4px; }
.h-event strong { font: 700 1.15rem var(--head); color: var(--gold-2); }
.h-event > span > span { color: var(--muted); font-size: .92rem; }
.h-event-lead { grid-row: span 3; flex-direction: column; }
.h-event-lead strong { font-size: 1.5rem; }
.h-event-lead > span > span { font-size: 1rem; }

/* cash shop: capsule highlight + generated shop summary (templates/guide/_home_shop.html) */
.h-shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; align-items: start; }
.h-capsule { padding: 22px; border-radius: 12px; border: 1px solid rgba(232, 178, 76, .45); background: var(--panel); }
.h-capsule .h-icons { margin-bottom: 12px; }
.h-capsule p { color: #b9c3d8; }
.h-shop-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
.h-shop-cols h3 { font-size: 1.1rem; margin: 0 0 10px; }
.h-shop-items, .h-shop-cats { list-style: none; padding: 0; margin: 0; }
.h-shop-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; min-height: 44px; color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, .05); }
.h-shop-item:hover { color: var(--gold-2); }
.h-shop-item .ico { width: 44px; height: 44px; border-radius: 6px; border: 1px solid #2c3d60; background: #05080f; }
.h-shop-item span { display: grid; }
.h-shop-item small { color: var(--gold-2); font-weight: 600; }
.h-shop-cats li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05); }
@media (max-width: 980px) {
  .h-events { grid-template-columns: 1fr; }
  .h-event-lead { grid-row: auto; grid-column: 1 / -1; flex-direction: row; }
  .h-shop { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .h-events, .h-shop-cols { grid-template-columns: 1fr; }
  .h-altar { flex-direction: column; }
}
