/* 特集「最強AIの考え方」（pages-strongest.js）だけの見た目。色は wiki.css の変数を使う。 */
.ai-hero .chap-img { width: 96px; }
.ai-orb { position: relative; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6c9, var(--gold) 30%, var(--gold3) 72%, #000 100%); box-shadow: 0 0 22px #f2c14e88; }
.ai-orb i { position: absolute; inset: -6px; border: 2px solid var(--soul); border-radius: 50%; opacity: .55; animation: ai-ring 3.2s linear infinite; }
.ai-orb i:nth-child(2) { inset: -14px; animation-delay: -1.1s; opacity: .35; }
.ai-orb i:nth-child(3) { inset: -22px; animation-delay: -2.2s; opacity: .2; }
@keyframes ai-ring { from { transform: rotate(0) scaleX(.6); } to { transform: rotate(360deg) scaleX(.6); } }
@media (prefers-reduced-motion: reduce) { .ai-orb i { animation: none; } }

.ai-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.ai-tile { background: var(--win2); border: 2px solid var(--edge); border-radius: 8px; padding: 8px; text-align: center; min-width: 0; }
.ai-tile span, .ai-tile em { display: block; font-size: 11.5px; color: var(--dim); font-style: normal; line-height: 1.4; }
.ai-tile b { display: block; font-family: var(--head); font-size: 20px; color: var(--gold); margin: 2px 0; line-height: 1.25; }
.ai-tiles.small .ai-tile b { font-size: 17px; }
@media (max-width: 520px) { .ai-tiles { grid-template-columns: 1fr; } .ai-tile { display: grid; grid-template-columns: 1fr auto; text-align: left; align-items: center; gap: 0 8px; } .ai-tile span { grid-column: 1; } .ai-tile b { grid-column: 2; grid-row: 1 / span 2; } .ai-tile em { grid-column: 1; } }

.ai-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-two .win { margin: 0; }
.ai-two h3 { margin: 0 0 6px; font-family: var(--head); font-size: 16px; }
.ai-two ul { margin: 0; padding-left: 1.2em; font-size: 13.5px; line-height: 1.7; }
.ai-yes h3 { color: var(--green); }
.ai-no h3 { color: var(--red); }
.ai-no li::marker { content: '× '; color: var(--red); }
@media (max-width: 520px) { .ai-two { grid-template-columns: 1fr; } }

.ai-flow { list-style: none; counter-reset: f; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ai-flow li { counter-increment: f; position: relative; background: var(--win2); border: 2px solid var(--edge); border-radius: 8px; padding: 26px 8px 8px; min-width: 0; }
.ai-flow li::before { content: counter(f); position: absolute; top: 4px; left: 8px; font-family: var(--head); color: var(--win); background: var(--gold); border-radius: 50%; width: 18px; height: 18px; text-align: center; line-height: 18px; font-size: 12px; }
.ai-flow li:not(:last-child)::after { content: '▶'; position: absolute; right: -9px; top: 40%; color: var(--gold); font-size: 11px; }
.ai-flow b { display: block; font-family: var(--head); color: #fff; font-size: 14px; }
.ai-flow span { display: block; font-size: 12px; color: var(--dim); line-height: 1.55; margin-top: 4px; }
@media (max-width: 620px) { .ai-flow { grid-template-columns: 1fr; } .ai-flow li:not(:last-child)::after { content: '▼'; right: 50%; top: auto; bottom: -12px; } }

.ai-faces { display: inline-flex; gap: 2px; flex-wrap: nowrap; }
.ai-faces img, .ai-faces > * { flex: none; }
.ai-cand { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; flex-wrap: wrap; }
.ai-cand + .ai-cand { border-top: 1px solid var(--edge); }
.ai-cand.best { background: #f2c14e22; outline: 2px solid var(--gold); }
.ai-cand > span { font-size: 13px; margin-left: auto; text-align: right; }
.ai-cand > span b { margin-left: 6px; color: var(--win); background: var(--gold); border-radius: 4px; padding: 0 5px; font-size: 11.5px; }
.ai-cand small { display: block; color: var(--dim); font-size: 11px; }
.ai-wins { display: inline-flex; gap: 3px; }
.ai-wins i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--green); }
.ai-wins i.w { background: var(--green); }
.ai-wins i.l { border-color: var(--red); }
.ai-why { margin: 10px 0 4px; padding: 8px 10px; background: #111a38; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; font-size: 13.5px; line-height: 1.6; }

.ai-bar { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 7.5em; align-items: center; gap: 8px; margin: 5px 0; font-size: 12.5px; }
.ai-bar .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-bar .v { text-align: right; line-height: 1.3; }
.ai-bar .v small { display: block; color: var(--dim); font-size: 11px; }
.ai-bar .tr { position: relative; height: 14px; background: var(--win2); border-radius: 4px; overflow: hidden; }
.ai-bar .tr i { position: absolute; left: var(--l, 0); top: 0; bottom: 0; width: var(--w); border-radius: 3px; }
.ai-bar .tr i.ai { background: var(--gold); z-index: 1; height: 8px; top: 0; }
.ai-bar .tr i.base { background: var(--dim); opacity: .55; top: 8px; height: 6px; }
.ai-bar .tr i.lose { background: var(--red); }
.ai-bar .tr i.farm { background: var(--soul); }
.ai-bars .ai-bar .tr i.ai { height: 8px; }
.ai-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin: 0 2px 0 6px; }
.ai-key.ai { background: var(--gold); } .ai-key.base { background: var(--dim); } .ai-key.lose { background: var(--red); } .ai-key.farm { background: var(--soul); }
@media (max-width: 420px) { .ai-bar { grid-template-columns: 6em minmax(0, 1fr) 6.5em; font-size: 12px; } }

.ai-pick { border-top: 1px solid var(--edge); }
.ai-pick summary { display: flex; align-items: center; gap: 6px; padding: 5px 0; cursor: pointer; flex-wrap: wrap; list-style: none; }
.ai-pick summary::-webkit-details-marker { display: none; }
.ai-pick summary .no { font-family: var(--head); color: var(--win); background: var(--gold); border-radius: 4px; min-width: 22px; text-align: center; font-size: 12px; }
.ai-pick summary b { font-size: 13px; min-width: 6.5em; }
.ai-pick summary em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--dim); }
.ai-pick p { margin: 0 0 8px; font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.ai-story h3 { margin: 0 0 4px; font-size: 14px; color: var(--gold); }

.ai-board .side b { display: block; font-size: 12.5px; margin: 4px 0; }
.ai-board .them b { color: var(--red); } .ai-board .me b { color: var(--soul); }
.ai-grid { display: grid; grid-template-columns: repeat(5, 40px); gap: 3px; justify-content: center; }
.ai-grid .cell { position: relative; width: 40px; height: 40px; background: var(--win2); border: 1px solid var(--edge); border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.ai-grid .cell em { position: absolute; bottom: 0; left: 0; right: 0; font-size: 9px; font-style: normal; background: #000a; color: var(--gold); text-align: center; line-height: 1.2; }
.ai-mid { text-align: center; font-size: 11.5px; color: var(--dim); margin: 6px 0; border-top: 2px dashed var(--edge); border-bottom: 2px dashed var(--edge); padding: 3px 0; }
.ai-pred { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 10px 0 4px; font-size: 12.5px; }
.ai-pred i { font-style: normal; background: var(--win3); border: 1px solid var(--edge); border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.ai-top .ai-cand > span { min-width: 4.5em; }
.ai-tbl td:last-child { font-size: 12px; }
