/* 日本の1億2千万分の1：ゲーム固有のスタイル（色は common.css の変数のみ） */
.ng-friend { border-color: var(--accent); background: var(--accent-soft); }
.ng-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: center; padding: 8px 0 6px; }
.ng-hero h1 em { font-style: normal; color: var(--accent); }
.ng-hero .lead { font-size: 15px; margin: 0; }
.ng-hero-map { min-width: 0; }
@media (max-width: 480px) {
  .ng-hero { grid-template-columns: 1fr; }
  .ng-hero-map { max-width: 220px; margin: 0 auto; }
}
.ng-list { margin: 6px 0 0; padding-left: 1.2em; }
.ng-list li + li { margin-top: 4px; }
.ng-disclaimer { font-size: 11px; color: var(--text-sub); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; margin: 16px 0 0; line-height: 1.6; }
.ng-gender { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.ng-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.ng-seg-btn { border: 0; background: transparent; padding: 8px 14px; min-height: 40px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text-sub); }
.ng-seg-btn.on { background: var(--accent); color: var(--accent-ink); }
.ng-start { margin-bottom: 14px; }
.ng-daily .btn { white-space: normal; }
.ng-zukan-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.ng-zukan-btns .btn { padding: 8px 10px; font-size: 14px; min-width: 0; }

/* タイルマップ */
.ng-map { width: 100%; height: auto; display: block; }
.ng-tile { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; transition: fill .2s; }
.ng-tile.is-shade { fill: var(--accent); stroke: var(--surface); }
.ng-tile.is-hit { fill: var(--info); fill-opacity: 1 !important; }
.ng-tile.is-born { fill: var(--accent); fill-opacity: 1 !important; stroke: var(--text); stroke-width: 2; }
.ng-tile.is-cur { fill: var(--info); fill-opacity: 1 !important; stroke: var(--text); stroke-width: 2; }
.ng-tile.is-lived { fill: var(--info-soft); fill-opacity: 1 !important; }
.ng-tile-label { font-size: 10px; font-weight: 700; fill: var(--text); pointer-events: none; opacity: .75; }
.ng-map.is-roll .ng-tile.is-shade { fill-opacity: .25 !important; }
.ng-map.is-mini .ng-tile-label { display: none; }
.ng-gacha-map { max-width: 260px; margin: 0 auto 10px; }

/* ガチャ */
.ng-slots { padding: 6px 14px; }
.ng-slot { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px 2px; border-bottom: 1px dashed var(--line); min-height: 54px; }
.ng-slot:last-child { border-bottom: 0; }
.ng-slot-label { font-size: 12px; color: var(--text-sub); font-weight: 700; }
.ng-slot-val { display: block; font-weight: 800; font-size: 17px; line-height: 1.35; }
.ng-slot-note { display: block; font-size: 12px; color: var(--text-sub); line-height: 1.4; }
.ng-slot.is-spinning .ng-slot-val { color: var(--text-sub); }
.ng-gacha-note { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-weight: 700; }

/* プレイ */
.ng-status { position: sticky; top: 54px; z-index: 5; }
.ng-status-row { display: flex; gap: 10px; align-items: flex-start; }
.ng-age { font-size: clamp(30px, 9vw, 40px); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ng-where { font-weight: 700; font-size: 14px; margin-top: 2px; }
.ng-mini { width: 92px; flex: none; }
.ng-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ng-chips .tag { font-size: 11px; padding: 1px 8px; }
.ng-life { margin-top: 10px; }
.ng-speed { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.ng-speed-btn { border: 0; background: var(--surface); padding: 4px 10px; min-height: 32px; font-size: 12px; font-weight: 700; color: var(--text-sub); cursor: pointer; }
.ng-speed-btn.on { background: var(--text); color: var(--bg); }
.ng-qcard { border: 2px solid var(--accent); }
.ng-q { font-size: 19px; margin: 4px 0 10px; }
.ng-facts { margin: 0 0 12px; padding: 10px 12px 10px 28px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.6; }
.ng-facts li + li { margin-top: 4px; }
.ng-feed { list-style: none; margin: 6px 0 0; padding: 0; }
.ng-ev { display: grid; grid-template-columns: 3.2em 1.6em minmax(0, 1fr); gap: 2px 6px; font-size: 14px; line-height: 1.55; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ng-ev:last-child { border-bottom: 0; }
.ng-ev-age { color: var(--text-sub); font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.ng-ev-good .ng-ev-t { font-weight: 700; }
.ng-ev-bad .ng-ev-t { color: var(--bad); }
.ng-ev-stat .ng-ev-t { color: var(--info); font-weight: 700; }
.ng-ev-fact .ng-ev-t { color: var(--text-sub); font-style: normal; }
.ng-ev-move .ng-ev-t { color: var(--accent); font-weight: 700; }
.ng-ev-end .ng-ev-t { font-weight: 800; }
.ng-ev-choice .ng-ev-t { color: var(--text-sub); }
.ng-endcard b { font-size: 20px; }
.ng-end-emoji { font-size: 52px; line-height: 1.2; }

/* 結果 */
.ng-result-card { padding-top: 20px; }
.ng-result-map { max-width: 200px; margin: 6px auto 4px; }
.ng-result-big { color: var(--accent); }
.ng-result-line { font-weight: 800; font-size: 18px; line-height: 1.5; margin: 6px 0 0; }
.ng-title-badge { display: flex; align-items: center; gap: 10px; text-align: left; margin: 14px auto 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); max-width: 340px; }
.ng-title-badge b { font-size: 18px; }
.ng-title-emoji { font-size: 32px; }
.ng-new { color: var(--good); font-weight: 700; margin: 6px 0 0; }
.ng-share-btn { margin-bottom: 10px; }
.ng-again { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.ng-again .btn { padding: 10px 12px; font-size: 14px; white-space: normal; line-height: 1.35; min-width: 0; }
.ng-compare-stats .stat span { line-height: 1.45; display: block; }
.ng-bars { display: grid; gap: 6px; }
.ng-bar-row { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) 3.4em; gap: 6px; align-items: center; font-size: 12px; }
.ng-bar-row.is-me .ng-bar-label { color: var(--accent); font-weight: 800; }
.ng-bar-track { position: relative; height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ng-bar-stat { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); }
.ng-bar-play { position: absolute; left: 0; top: 4px; bottom: 4px; background: var(--accent); border-radius: 999px; }
.ng-bar-val { text-align: right; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.ng-timeline summary, .ng-sources summary { font-weight: 700; }
.ng-sources ul { padding-left: 1.2em; margin: 8px 0; }
.ng-sources li + li { margin-top: 6px; }

/* 図鑑 */
.ng-zukan-map { max-width: 260px; margin: 0 auto; }
.ng-pref-list { display: flex; flex-wrap: wrap; gap: 4px; }
.ng-pref-chip { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-sub); min-width: 2.4em; text-align: center; }
.ng-pref-chip.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ng-zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.ng-zukan-item { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 6px; text-align: center; font-size: 12px; line-height: 1.35; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .6; }
.ng-zukan-item.on { opacity: 1; background: var(--surface); border: 1px solid var(--line); }
.ng-zukan-emoji { font-size: 26px; }

/* 解説 */
.ng-about h2 { font-size: 18px; margin-top: 8px; }
.ng-about p, .ng-about li { font-size: 14px; }
.ng-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ng-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ng-table th, .ng-table td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.ng-table th { color: var(--text-sub); white-space: nowrap; }
.ng-table a { word-break: break-all; }
