/* NerdZap Games promo blocks (Not Recommended): Free Games sidebar card + strip, home page card, /games/ hub.
   Styled like the game's share image: Steam-review navy, an orange thumbs-down tile, and a sample review so people
   can see what the game is before they click. Orange is the NerdZap accent (the Free Games blocks use green). */
:root { --nr-accent: var(--accent-primary, #f97316); --nr-ink: #1c0a00; --nr-tile: #2a1a1d; --nr-thumb: #e0602f; --nr-navy: #16202d; --nr-navy-hi: #1d3550; --nr-steam: #66c0f4; --nr-line: rgba(102, 192, 244, 0.32); --nr-bg: linear-gradient(165deg, var(--nr-navy-hi), #0f1823 62%); }
.nr-pill, .nr-widget-pill { display: inline-block; flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--nr-accent); color: var(--nr-ink); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.6px; line-height: 1.2; text-transform: uppercase; }
.nr-btn { flex: none; align-self: center; background: var(--nr-accent); color: var(--nr-ink); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 9px 14px; border-radius: 8px; white-space: nowrap; transition: filter 0.15s; }

/* Mini Steam review (as in the share image): tile + title + hours, then the quote */
.nr-review { display: block; background: rgba(8, 14, 22, 0.55); border: 1px solid rgba(102, 192, 244, 0.18); border-radius: 8px; overflow: hidden; }
.nr-review-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(8, 14, 22, 0.6); }
.nr-review-ico { flex: none; width: 34px; height: 34px; border-radius: 5px; background: var(--nr-tile); display: flex; align-items: center; justify-content: center; }
.nr-review-ico svg { width: 20px; height: 20px; color: var(--nr-thumb); }
.nr-review-name { display: block; font-size: 0.9rem; font-weight: 700; color: #f1f5f9; line-height: 1.2; }
.nr-review-hrs { display: block; font-size: 0.7rem; color: #8fa3b8; line-height: 1.3; }
.nr-review-q { display: block; margin: 0; padding: 9px 11px 10px; font-size: 0.8rem; line-height: 1.45; color: #d7e3f0; }
.nr-review-foot { display: block; padding: 0 11px 9px; font-size: 0.68rem; color: #6f8499; }

/* Sidebar card on the Free Games page: laid out like the Free Games Right Now widget */
.sidebar-widget.nr-widget { border-color: var(--nr-line); background: var(--nr-bg); box-shadow: 0 6px 22px rgba(15, 24, 35, 0.5); }
.nr-widget .sidebar-widget-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #f8fafc; }
.nr-widget-head { color: inherit; text-decoration: none; }
.nr-widget-head:hover { color: var(--nr-accent); }
.nr-widget-intro { margin: -4px 0 12px; font-size: 0.78rem; line-height: 1.35; color: #cbd5e1; }
.nr-widget-item { display: block; text-decoration: none; }
.nr-widget-item:hover .nr-review-name { color: var(--nr-accent); }
.nr-widget .nr-review-q { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nr-widget-sub { display: block; margin-top: 8px; font-size: 0.72rem; color: var(--nr-steam); font-weight: 700; }
.nr-widget-all { display: block; margin-top: 14px; font-size: 0.8rem; font-weight: 800; color: var(--nr-accent); text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; }
.nr-widget-all:hover { text-decoration: underline; }
/* Whole card is clickable: the "Play today's Daily" link stretches over the widget (still one link, same ?s=fg tracking) */
.sidebar-widget.nr-widget { position: relative; cursor: pointer; transition: border-color 0.15s; }
.nr-widget-all::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.sidebar-widget.nr-widget:hover { border-color: var(--nr-steam); }
.nr-widget:hover .nr-review-name, .nr-widget:hover .nr-widget-all { color: var(--nr-accent); }
.nr-widget:has(.nr-widget-all:focus-visible) { outline: 3px solid var(--nr-accent); outline-offset: 2px; }
.nr-widget-all:focus-visible { outline: none; }

/* Keyboard focus */
.nr-strip:focus-visible, .nr-widget-item:focus-visible { outline: 3px solid var(--nr-accent); outline-offset: 2px; }

/* Strip above the Free Games grid: only where the sidebar is hidden (1000px and narrower) */
.nr-strip { display: none; }
@media (max-width: 1000px) {
    .nr-strip { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; text-decoration: none; color: #e2e8f0; background: var(--nr-bg); border: 1px solid var(--nr-line); border-radius: 12px; box-shadow: 0 6px 22px rgba(15, 24, 35, 0.5); }
    .nr-strip-icon { flex: none; width: 56px; height: 56px; border-radius: 8px; background: var(--nr-tile); display: flex; align-items: center; justify-content: center; }
    .nr-strip-icon svg { width: 30px; height: 30px; color: var(--nr-thumb); }
    .nr-strip-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
    .nr-strip-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .nr-strip-title { font-size: 1rem; line-height: 1.2; color: #f8fafc; }
    .nr-strip-quote { font-size: 0.8rem; font-style: italic; color: #cfdceb; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .nr-strip-live { font-size: 0.72rem; font-weight: 700; color: var(--nr-steam); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nr-strip:hover { border-color: var(--nr-steam); }
}
@media (max-width: 520px) {
    .nr-strip { flex-wrap: wrap; gap: 10px; padding: 12px; margin-bottom: 14px; }
    .nr-strip-icon { display: none; }
    .nr-strip-text { flex: 1 1 100%; }
    .nr-strip-quote { -webkit-line-clamp: 3; }
    .nr-strip-live { white-space: normal; }
    .nr-btn { flex: 1 1 100%; text-align: center; padding: 10px 12px; font-size: 0.8rem; }
}

/* Home page "Latest From NerdZap" card, in the same row as the news cards */
/* Home news row: the NerdZap game card is pinned on the left, outside the scrolling news cards (nothing slides under it) */
.nr-reel-row { display: flex; align-items: flex-start; gap: 16px; }
.nr-reel-row > .video-grid { flex: 1 1 0; min-width: 0; }
.nr-reel-card { flex: 0 0 auto; border: 1px solid var(--nr-line) !important; box-shadow: 0 6px 22px rgba(15, 24, 35, 0.5) !important; }
.nr-reel-card .thumb-container { aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; }
.nr-reel-thumb { position: static; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px 9px 9px; background: var(--nr-bg); }
.nr-reel-head { display: flex; align-items: center; gap: 8px; }
.nr-reel-head .nr-review-ico { width: 28px; height: 28px; }
.nr-reel-head .nr-review-ico svg { width: 17px; height: 17px; }
.nr-reel-head .nr-review-name { font-size: 0.8rem; }
.nr-reel-head .nr-review-hrs { font-size: 0.62rem; }
.nr-reel-quote { align-self: stretch; margin: 0; padding: 5px 7px; background: rgba(8, 14, 22, 0.55); border-radius: 6px; font-size: 0.68rem; line-height: 1.3; color: #d7e3f0; }
.nr-reel-cta { display: block; margin-top: 6px; background: var(--nr-accent); color: var(--nr-ink); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; text-align: center; padding: 7px 8px; border-radius: 8px; }
.nr-reel-card .card-title { font-size: 0.85rem !important; }
.nr-reel-card:hover .nr-reel-cta { filter: brightness(1.1); }
.nr-reel-card .card-date { color: var(--nr-steam) !important; font-weight: 700; }

/* /games/ hub: play first */
.nr-play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 26px; align-items: center; margin: 0; padding: 26px; background: var(--nr-bg); border: 1px solid var(--nr-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 24, 35, 0.55); color: #e2e8f0; }
.nr-play h2 { margin: 8px 0 6px; font-size: 1.9rem; line-height: 1.1; color: #f8fafc; }
.nr-play p { margin: 0 0 10px; color: #cbd5e1; font-size: 1rem; line-height: 1.55; }
.nr-play .nr-live { display: block; margin: 0 0 14px; font-size: 0.9rem; font-weight: 700; color: var(--nr-steam); }
.nr-play .nr-review { background: rgba(8, 14, 22, 0.6); }
.nr-play .nr-review-ico { width: 42px; height: 42px; }
.nr-play .nr-review-ico svg { width: 25px; height: 25px; }
.nr-play .nr-review-q { font-size: 0.95rem; line-height: 1.5; }
.nr-play-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nr-play-btn { display: inline-block; background: var(--nr-accent); color: var(--nr-ink); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 13px 24px; border-radius: 10px; text-decoration: none; transition: background-color 0.15s; }
/* No filter/transform on this link: either would make the stretched ::after below shrink to the button on hover */
.nr-play-btn:hover { background-color: #fb923c; color: var(--nr-ink); }
/* Whole card is clickable: the Play button stretches over the card (still one link, same ?s=hub tracking) */
.nr-play { position: relative; cursor: pointer; transition: border-color 0.15s; }
.nr-play-btn::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.nr-play:hover { border-color: var(--nr-steam); }
.nr-play:hover .nr-play-btn { background-color: #fb923c; }
.nr-play:has(.nr-play-btn:focus-visible) { outline: 3px solid var(--nr-accent); outline-offset: 2px; }
.nr-play-btn:focus-visible { outline: none; }
.nr-play-note { font-size: 0.85rem; color: var(--text-muted, #94a3b8); }
@media (max-width: 760px) {
    .nr-play { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
    .nr-play h2 { font-size: 1.5rem; }
    .nr-play-btn { display: block; text-align: center; width: 100%; box-sizing: border-box; }
}
@media (max-width: 560px) {
    .nr-reel-row { gap: 10px; }
    .home-new-news-reel .nr-reel-row .nr-reel-card { min-width: 160px !important; max-width: 160px !important; }
    .nr-reel-card .card-body { padding: 10px !important; }
    .nr-reel-quote { font-size: 0.64rem; }
    .nr-reel-card .card-title { font-size: 0.78rem !important; }
}
