/* SEO INFRA: game page content (intro, sections, TOC, FAQ), screenshots, reviews, rating card. Uses style.css tokens. */
.game-head .gh-tagline { flex-basis: 100%; margin: -6px 0 0; color: var(--text-dim); font-size: 15px; }
.np-intro { margin-top: 12px; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-1); color: var(--text-dim); font-size: 15px; }
.np-intro p { margin: 0 0 8px; }
.np-intro p:last-of-type { margin-bottom: 4px; }
.np-intro a { color: var(--accent); font-weight: 600; }
.np-intro-more { display: inline-block; font-size: 13.5px; }
body.np-focus .np-intro { display: none; }

.np-seo { display: flex; flex-direction: column; }
.np-seo > .content-card { width: 100%; }
.np-seo-sec + .np-seo-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.np-seo-sec h2, .np-seo .content-card > h2 { font-size: clamp(21px, 2.4vw, 26px); margin-bottom: 12px; }
.np-seo-sec table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14.5px; color: var(--text-dim); }
.np-seo-sec th, .np-seo-sec td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.np-seo-sec th { color: var(--text); font-weight: 650; }
.np-seo-sec .np-tbl, .np-seo-sec .table-wrap { overflow-x: auto; }
.np-seo [id], #np-seo-start { scroll-margin-top: calc(var(--header-h) + 12px); }

.np-toc h2 { font-size: 15px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px !important; }
.np-toc ol { list-style: none; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.np-toc li { margin: 0 !important; }
.np-toc a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; background: var(--bg-panel); color: var(--text) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.np-toc a:hover { background: var(--accent-soft); }

/* screenshots */
.np-shots-row { display: flex; gap: 16px; align-items: flex-start; }
.np-shot { margin: 0; min-width: 0; }
.np-shot-desktop { flex: 1 1 auto; max-width: 720px; }
.np-shot-mobile { flex: 0 0 auto; width: clamp(130px, 22%, 210px); }
.np-shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-panel); }
.np-shot img { display: block; width: 100%; height: auto; }
.np-shot figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

/* stars (display) */
.np-stars { display: inline-block; position: relative; font-size: 20px; line-height: 1; letter-spacing: 2px; white-space: nowrap; vertical-align: middle; }
.np-stars::before { content: "\2605\2605\2605\2605\2605"; background: linear-gradient(90deg, var(--gold, #f5b400) var(--p, 0%), var(--border-strong) var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.np-stars.sm { font-size: 14px; letter-spacing: 1px; }

/* reviews */
.np-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.np-rv-head h2 { margin: 0 !important; }
.np-rv-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.np-rv-sum b { font-size: 22px; font-family: var(--font-display); }
.np-rv-sum span:not(.np-stars) { color: var(--text-muted); font-size: 14px; }
.np-rv-empty { margin-bottom: 4px !important; }
.np-rv-list { list-style: none; margin: 8px 0 0 !important; padding: 0; }
.np-rv-item { padding: 12px 0; border-top: 1px solid var(--border); margin: 0 !important; }
.np-rv-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 4px; }
.np-rv-user { color: var(--text) !important; font-weight: 700; }
.np-rv-meta time { color: var(--text-muted); }
.np-rv-item p { margin: 0 !important; overflow-wrap: anywhere; }
.np-rv-more { margin-top: 8px; }
.np-rv-slot:not(:empty) { margin: 10px 0 6px; }

/* FAQ */
.np-faq-item { border-top: 1px solid var(--border); }
.np-faq-item:last-child { border-bottom: 1px solid var(--border); }
.np-faq-item summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; position: relative; font-weight: 650; font-size: 16px; color: var(--text); }
.np-faq-item summary::-webkit-details-marker { display: none; }
.np-faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.np-faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.np-faq-item p { margin: 0 0 14px !important; }

/* play with friends */
.np-friends { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.np-friends p { margin: 0 !important; }
.np-friends .btn .ico { width: 18px; height: 18px; margin-right: 6px; }

/* more games */
.np-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.np-more-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.np-more-all .ico { width: 16px; height: 16px; }

/* rating card + form */
.np-rate { position: relative; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-panel); border: 1px solid var(--border); text-align: center; color: var(--text); transition: opacity .2s, transform .2s; }
.np-rate.is-out { opacity: 0; transform: translateY(6px); }
.np-rate-inline { text-align: left; background: var(--bg-sunken); }
.np-rate-corner { position: fixed; right: 16px; bottom: 16px; z-index: 4500; width: min(340px, calc(100vw - 32px)); margin: 0; background: var(--bg-card); box-shadow: var(--shadow-3); animation: npRateIn .25s var(--ease) both; }
@keyframes npRateIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.np-rate-q { font-weight: 700; font-size: 15px; padding: 0 22px; }
.np-rate-inline .np-rate-q { padding: 0; }
.np-rate-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; background: none; color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.np-rate-x:hover { background: var(--bg-card); color: var(--text); }
.np-rate-stars { display: inline-flex; gap: 4px; margin: 8px 0 4px; }
.np-rate-star { width: 40px; height: 40px; padding: 4px; border: 0; background: none; cursor: pointer; border-radius: 10px; color: var(--border-strong); transition: color .12s, transform .12s; }
.np-rate-star svg { width: 100%; height: 100%; fill: currentColor; }
.np-rate-star.on { color: var(--gold, #f5b400); }
.np-rate-star:hover { transform: scale(1.08); }
.np-rate-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.np-rate-more { margin-top: 6px; text-align: left; }
.np-rate-lbl { display: block; font-size: 13px; font-weight: 650; color: var(--text-dim); }
.np-rate-lbl span { font-weight: 400; color: var(--text-muted); }
.np-rate textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: inherit; font-size: 14px; resize: vertical; min-height: 70px; }
.np-rate-cnt { text-align: right; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.np-rate-note { font-size: 13px; color: var(--text-dim); margin: 2px 0 6px !important; text-align: center; }
.np-rate-note a { color: var(--accent); font-weight: 600; }
.np-rate-acts { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.np-rate-inline .np-rate-acts { justify-content: flex-start; }
.win-box .np-rate .btn { margin: 0; }
.np-rate-msg { font-size: 13.5px; color: var(--text-dim); min-height: 0; }
.np-rate-msg:not(:empty) { margin-top: 6px; }
.np-rate.is-done .np-rate-star:not(.on) { opacity: .5; }

@media (max-width: 760px) {
    .np-intro { padding: 12px 14px; font-size: 14.5px; }
    .np-shots-row { gap: 10px; }
    .np-shot-mobile { width: 30%; }
    .np-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .np-friends .btn { width: 100%; justify-content: center; }
    .np-rate-star { width: 44px; height: 44px; }
}
/* phones: board first, the intro goes below the board and the online bar */
@media (max-width: 760px), (max-height: 500px) and (max-width: 1000px) {
    .game-main > .np-intro { order: 3; margin-top: 0; }
}
@media (max-height: 500px) and (max-width: 1000px) and (orientation: landscape) {
    .game-main > .np-intro { grid-column: 1 / -1; grid-row: 5; }
}
.np-seo [hidden], .np-rate [hidden] { display: none !important; }
