/* nightfall — game176 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Fredoka:wght@400;600&family=IBM+Plex+Sans:wght@400;600;700&family=Libre+Franklin:wght@400;600;700&family=Merriweather:wght@400;700&family=Nunito:wght@400;600;700&family=Oswald:wght@400;600;700&family=Poppins:wght@400;600;700&family=Press+Start+2P&family=Quicksand:wght@400;600;700&display=swap');
:root {
  --t-bg: #1a1a2e;
  --t-bg2: #16213e;
  --t-card: #0f3460;
  --t-text: #e2e2e2;
  --t-muted: #8892b0;
  --t-accent: #e94560;
  --t-accent2: #ff6b6b;
  --t-header: linear-gradient(180deg,#0f3460,#1a1a2e);
  --t-radius: 10px;
  --t-font: 'IBM Plex Sans', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--t-font); background: var(--t-bg); color: var(--t-text); line-height: 1.55; }
a { color: var(--t-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.nf-master { min-height: 100vh; }
.nf-top-bar { background: var(--t-header); padding: 12px 16px; position: sticky; top: 0; z-index: 200; border-bottom: 1px solid rgba(128,128,128,.18); }
.nf-top-bar-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.nf-brand img { max-height: 46px; max-width: 170px; }
.nf-top-actions { margin-left: auto; display: flex; gap: 8px; }
.nf-activator { background: var(--t-card); border: 1px solid rgba(128,128,128,.2); color: var(--t-text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.nf-activator:hover { background: var(--t-accent); color: #fff; border-color: var(--t-accent); }
.nf-search-drop { display: none; padding: 10px 16px; background: var(--t-bg2); }
.nf-search-drop.is-open { display: block; }
.nf-search-drop form, .nf-search-bar { max-width: 1180px; margin: 0 auto; display: flex; gap: 8px; flex: 1; }
.nf-search-drop input, .nf-search-bar input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(128,128,128,.25); background: var(--t-card); color: var(--t-text); }
.nf-search-drop button, .nf-search-bar button { padding: 10px 16px; background: var(--t-accent); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; }
.nf-cat-nav { background: var(--t-bg2); padding: 8px 16px; overflow-x: auto; }
.nf-cat-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 8px; }
.nf-cat { display: inline-block; padding: 6px 14px; background: var(--t-card); color: var(--t-text); border-radius: 999px; font-size: 13px; white-space: nowrap; }
.nf-cat:hover, .nf-cat.is-active { background: var(--t-accent); color: #fff; }
.nf-drawer { position: fixed; top: 0; left: 0; width: 280px; height: 100vh; background: var(--t-bg2); z-index: 300; transform: translateX(-100%); transition: transform .28s; padding: 20px; overflow-y: auto; }
.nf-drawer.is-open { transform: translateX(0); }
.nf-drawer a { display: block; padding: 12px; color: var(--t-text); border-bottom: 1px solid rgba(128,128,128,.12); }
.nf-screen { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 299; display: none; }
.nf-screen.is-open { display: block; }
.nf-stage { max-width: 1180px; margin: 0 auto; padding: 16px; }
.nf-zone { margin-bottom: 28px; }
.nf-zone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--t-accent); font-size: 1.2rem; font-weight: 700; }
.nf-zone-head a { font-size: 13px; color: var(--t-muted); font-weight: 500; }
.nf-billboard { margin-bottom: 20px; padding: 22px; background: var(--t-card); border-radius: var(--t-radius); }
.nf-billboard h1 { font-size: 1.55rem; margin-bottom: 8px; color: var(--t-accent); }
.nf-lede { color: var(--t-muted); font-size: 15px; }
.nf-prose { background: var(--t-card); padding: 22px; border-radius: var(--t-radius); margin-bottom: 18px; }
.nf-prose h1 { font-size: 1.45rem; margin-bottom: 12px; }
.nf-prose p { margin-bottom: 10px; color: var(--t-muted); }
.ad-content { margin: 12px 0; text-align: center; }
.back-icon { position: fixed; top: 12px; left: 12px; z-index: 9999999999; }
.back-icon img { border-radius: 50%; background: var(--t-card); padding: 4px; }

.nf-game-showcase { text-align: center; margin-bottom: 16px; }
.nf-game-showcase img { max-height: 210px; margin: 0 auto; border-radius: var(--t-radius); }
.nf-launch-btn { display: block; width: 100%; max-width: 300px; margin: 18px auto; padding: 14px 28px; background: linear-gradient(135deg, var(--t-accent), var(--t-accent2)); color: #fff; border: none; border-radius: var(--t-radius); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.nf-game-lead { color: var(--t-muted); margin-bottom: 12px; }
.nf-guide { background: var(--t-card); border: 1px dashed var(--t-accent); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.nf-guide-head { font-weight: 700; color: var(--t-accent); margin-bottom: 8px; font-size: 1rem; }
.nf-guide-body { color: var(--t-muted); font-size: 14px; line-height: 1.65; }
.nf-shell { max-width: 1180px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.nf-aside { background: var(--t-card); border-radius: 12px; padding: 14px; height: fit-content; position: sticky; top: 72px; border: 1px solid rgba(233,69,96,.2); }
.nf-aside-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--t-muted); margin-bottom: 8px; }
.nf-aside .nf-cat-nav { background: transparent; padding: 0; }
.nf-aside .nf-cat-inner { flex-direction: column; }
.nf-aside .nf-cat { border-radius: 8px; }
.nf-main { min-width: 0; }
.nf-collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.nf-tile { background: var(--t-card); border-radius: 10px; overflow: hidden; border: 1px solid rgba(233,69,96,.2); }
.nf-tile-pic { aspect-ratio: 4/3; overflow: hidden; }
.nf-tile-pic img { width: 100%; height: 100%; object-fit: cover; }
.nf-tile-cap { padding: 8px 10px 10px; }
.nf-tile-cap-badge { display: inline-block; background: var(--t-accent); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-bottom: 4px; }
.nf-tile-cap-name { font-size: 14px; font-weight: 600; }
.nf-tile:hover .nf-tile-pic img { transform: scale(1.05); transition: transform .3s; }
@media (max-width: 800px) { .nf-shell { grid-template-columns: 1fr; } .nf-aside { position: static; } }
.nf-site-foot { background: var(--t-bg2); padding: 18px 16px; margin-top: 36px; text-align: center; }
.nf-foot-legal { color: var(--t-muted); font-size: 13px; }
.nf-faq-zone { background: var(--t-card); padding: 24px; border-radius: var(--t-radius); margin: 20px 0 12px; }
.nf-faq-zone h1, .nf-faq-zone h2 { color: var(--t-accent); margin-bottom: 14px; }
.nf-faq-item { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.15); }
.nf-faq-item summary { font-weight: 600; cursor: pointer; color: var(--t-text); padding: 4px 0; }
.nf-faq-item p { padding: 8px 0 4px; color: var(--t-muted); font-size: 14px; }
.nf-hero-band { background: linear-gradient(135deg, var(--t-accent), var(--t-accent2)); color: #fff; padding: 36px 24px; border-radius: var(--t-radius); margin-bottom: 20px; }
.nf-hero-band h1 { font-size: 1.8rem; margin-bottom: 8px; }
.nf-hero-band p { font-size: 15px; opacity: .9; }
.nf-top-bar { padding: 10px 16px; }
.nf-top-bar { color: #fff; }
.nf-activator { color: #fff; }
.nf-cat { color: #fff; }
@media (max-width: 768px) {
  .nf-collection { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
