/* NOBK Online home page (/, /tr/, /es/, /pt/). Uses the site.css tokens; every class starts with hm-.
   Layout: wordmark + slogan + network totals, then game columns (left) and the live activity feed (right). */
.hm { --hm-ok: #22c55e; --hm-soon: #ef4444; --hm-gap: 18px; }

/* ---------- hero ---------- */
.hm-hero { position: relative; padding-block: 56px 34px; text-align: center; overflow: hidden; }
.hm-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.hm-hero > * { position: relative; }
.hm-mark { margin: 0; font: 800 clamp(54px, 10.5vw, 128px)/.86 var(--head); letter-spacing: .01em; text-transform: uppercase; }
.hm-mark b { color: var(--accent); }
.hm-tag { margin: 14px 0 0; font: 700 clamp(22px, 3.4vw, 34px)/1.1 var(--head); letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.hm-sub { margin: 10px auto 0; max-width: 56ch; color: var(--muted); font-size: 15.5px; text-wrap: balance; }
.hm-totals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.hm-totals li { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hm-totals b { font: 800 30px/1 var(--head); color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hm-totals .live b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; vertical-align: 6px;
  border-radius: 50%; background: var(--hm-ok); box-shadow: 0 0 8px var(--hm-ok); animation: hm-pulse 1.8s ease-in-out infinite; }
.hm-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hm-cta a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 10px; text-decoration: none;
  font: 700 17px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line); background: var(--panel); }
.hm-cta a.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hm-cta a:hover { filter: brightness(1.12); }
.hm-cta a:focus-visible, .hm-card a:focus-visible, .hm-chip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- main grid ---------- */
.hm-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 56px; }
.hm-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 800 22px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; }
.hm-h small { margin-left: auto; font: 600 12px/1 var(--body); letter-spacing: .04em; color: var(--muted); text-transform: none; }

/* live games: tall columns */
.hm-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hm-gap); }
.hm-card { --g: var(--accent); position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s; }
.hm-card:hover { border-color: color-mix(in srgb, var(--g) 60%, var(--line)); transform: translateY(-2px); }
.hm-card[data-g="fifa09"] { --g: #e4202a; } .hm-card[data-g="motogp"] { --g: #ff6a13; } .hm-card[data-g="svr09"] { --g: #d4a82a; }
.hm-card[data-g="pes13"] { --g: #2f7bf0; } .hm-card[data-g="nascar09"] { --g: #ffc400; } .hm-card[data-g="blur"] { --g: #1fa8ff; }
.hm-card[data-g="f1-2010"] { --g: #e10600; }
a.hm-art { display: block; text-decoration: none; color: inherit; }
.hm-art { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--panel); overflow: hidden; isolation: isolate; }
.hm-art > img.bg { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 35%; transition: transform .6s ease;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 97%); mask-image: linear-gradient(180deg, #000 55%, transparent 97%); }
.hm-card:hover .hm-art > img.bg { transform: scale(1.05); }
.hm-art::after { content: ""; position: absolute; inset: 0 0 -1px;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--panel) 70%, transparent) 70%, var(--panel) 100%); }
.hm-logo { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: center; }
.hm-logo img { max-height: 64px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .7)); }
.hm-logo.light img { background: #fff; padding: 6px 10px; border-radius: 8px; }
.hm-state { position: absolute; z-index: 1; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px;
  border-radius: 99px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hm-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-ok); box-shadow: 0 0 8px var(--hm-ok); }
.hm-state.off i { background: var(--muted); box-shadow: none; }
.hm-state.soon i { background: var(--hm-soon); box-shadow: none; }
.hm-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 16px 16px; flex: 1; }
.hm-name { margin: 0; font: 800 26px/1 var(--head); letter-spacing: .02em; text-transform: uppercase; }
.hm-now { margin: -8px 0 0; min-height: 20px; color: var(--muted); font-size: 13px; }
.hm-now b { color: var(--g); font-weight: 700; }
.hm-stats { display: flex; flex-direction: column; margin: 0; border-top: 1px solid var(--line); }
.hm-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0 7px; border-bottom: 1px solid var(--line); min-width: 0; }
.hm-stats dt { font: 600 11.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.hm-stats dd { margin: 0; font: 800 26px/1 var(--head); font-variant-numeric: tabular-nums; }
.hm-stats div:first-child dd { color: var(--g); }
.hm-links { display: flex; gap: 8px; margin-top: auto; }
.hm-links a { flex: none; white-space: nowrap; padding: 0 12px; display: inline-flex; justify-content: center; align-items: center; min-height: 38px; border-radius: 9px; text-decoration: none;
  font: 700 15px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line); }
.hm-links a.go { flex: 1 1 0; background: var(--g); border-color: var(--g); color: #fff; }
.hm-card[data-g="svr09"] .hm-links a.go, .hm-card[data-g="nascar09"] .hm-links a.go { color: #111; }
.hm-links a:hover { filter: brightness(1.12); }

/* coming soon: short row */
.hm-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-top: 28px; }
.hm-soon .hm-card { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; color: inherit; }
.hm-soon .hm-card img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; }
.hm-soon .hm-card span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-soon .hm-card b { font: 800 18px/1.05 var(--head); letter-spacing: .03em; text-transform: uppercase; }
.hm-soon .hm-card small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.hm-soon .hm-card small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f5b84b; }
.hm-soon .hm-card.plan small::before { background: #6b6b75; }
.hm-vote { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.hm-vote a { color: var(--accent-2); font-weight: 600; }

/* ---------- live activity feed ---------- */
.hm-feed { position: sticky; top: 118px; display: flex; flex-direction: column; max-height: calc(100vh - 136px); min-height: 420px; min-width: 0;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.hm-feed .hm-h { margin: 0; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.hm-feed .hm-h i { width: 9px; height: 9px; border-radius: 50%; background: var(--hm-ok); box-shadow: 0 0 9px var(--hm-ok); animation: hm-pulse 1.8s ease-in-out infinite; }
.hm-feed.down .hm-h i { background: var(--muted); box-shadow: none; animation: none; }
.hm-chips { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.hm-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 12.5px/1 var(--body); }
.hm-chip img { width: 16px; height: 16px; border-radius: 4px; }
.hm-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.hm-list { flex: 1; margin: 0; padding: 4px 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.hm-ev { --g: var(--accent); position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 11px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.hm-ev[data-g="nobk"] { --g: #ff4b4f; } .hm-ev[data-g="fifa09"] { --g: #e4202a; } .hm-ev[data-g="motogp"] { --g: #ff6a13; } .hm-ev[data-g="svr09"] { --g: #d4a82a; } .hm-ev[data-g="pes13"] { --g: #2f7bf0; }
.hm-ev > img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.hm-ev p { margin: 0; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.hm-ev p a { color: var(--text); font-weight: 700; text-decoration: none; }
.hm-ev p a:hover { text-decoration: underline; }
.hm-ev .k { display: inline-block; margin-right: 6px; padding: 2px 6px 1px; border-radius: 5px; vertical-align: 1px;
  background: color-mix(in srgb, var(--g) 18%, transparent); color: var(--g); font: 700 10.5px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.hm-ev .k.goal { background: var(--g); color: #fff; }
.hm-ev .d a { color: inherit; text-decoration: none; } .hm-ev .d a:hover { color: var(--text); }
.hm-ev .d { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.hm-ev .m { display: flex; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.hm-ev .m span + span::before { content: "·"; margin-right: 6px; }
.hm-ev .m a { color: var(--g); font-weight: 600; text-decoration: none; }
.hm-ev .m a:hover { text-decoration: underline; }
.hm-ev .up { color: #4ade80; font-weight: 700; } .hm-ev .dn { color: #f87171; font-weight: 700; }
.hm-ev.new { animation: hm-in .5s ease-out; }
.hm-ev.new::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--g); animation: hm-fade 6s forwards; }
.hm-empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13.5px; }
.hm-skel { height: 54px; margin: 8px 16px; border-radius: 8px; background: linear-gradient(90deg, var(--panel-2), var(--line), var(--panel-2)); background-size: 200% 100%; animation: hm-sh 1.4s linear infinite; }

@keyframes hm-pulse { 50% { opacity: .35; } }
@keyframes hm-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes hm-fade { 70% { opacity: 1; } to { opacity: 0; } }
@keyframes hm-sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; } }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .hm-main { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .hm-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hm-main { grid-template-columns: minmax(0, 1fr); }
  .hm-feed { position: static; max-height: 560px; }
  .hm-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hm-hero { padding-block: 36px 24px; }
  .hm-games { grid-template-columns: minmax(0, 1fr); }
  .hm-art { aspect-ratio: 16 / 9; }
  .hm-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-h small { display: none; }
  .hm-feed { max-height: 460px; }
}
