/* 競馬予想GAME Flex — トップ以外の全ページ(2026-10-25 round7)
   トップの競馬場と同じ世界: ページごとの景色(トレセン・厩舎・クラブハウス・セーブルーム・図書室・記者席・案内所・G1の競馬場)、
   その景色に立つ案内役、窓の質感の統一、長い文章の読みやすい組み方。
   色の意味は style.css と同じ: 赤＝★★だけ／金＝💣だけ／緑＝的中だけ／ボタンは紫。景色は赤・金を主役にしない。
   画像はすべて自作ドット絵(assets/px/*.svg)。外部CDN・WebGLなし。動きは reduced-motion のとき全部止まる(style.css 末尾の共通指定)。 */

/* 景色は 40 ドットの高さ。1ドット = --s px(スマホ3px・PC4px)。ドット絵がにじまないよう整数倍だけ使う */
:root { --s: 3; }
@media (min-width: 700px) { :root { --s: 4; } }

/* ================= ページの景色(ヒーロー窓 .pscene) ================= */
:where(.pscene) { --scene: url(px/bg-generic.svg); --sky0: #0b1a4a; --va: var(--accent); }
.ps-training { --ps: url(px/ps-training.svg); --sky0: #8fd8ff; }
.ps-stable { --ps: url(px/ps-stable.svg); --sky0: #4a3a92; }
.ps-clubhouse { --ps: url(px/ps-clubhouse.svg); --sky0: #14286f; }
.ps-saveroom { --ps: url(px/ps-saveroom.svg); --sky0: #070f33; }
.ps-library { --ps: url(px/ps-library.svg); --sky0: #1a1450; }
.ps-press { --ps: url(px/ps-press.svg); --sky0: #4a5fb4; }
.ps-info { --ps: url(px/ps-info.svg); --sky0: #2a3f94; }
.ps-g1 { --ps: url(px/ps-g1.svg); --sky0: #050c2a; }
.ps-odds { --ps: url(px/ps-odds.svg); --sky0: #0e1d57; }
.ps-picnic { --ps: url(px/ps-picnic.svg); --sky0: #5cc0ff; }
.ps-tavern { --ps: url(px/ps-tavern.svg); --sky0: #2a1f3e; }

.card.pscene { --pt: 0px; --px: 0px; padding: 0; margin-bottom: 28px; }
.ps-art { position: relative; height: calc(var(--s) * 40px); overflow: hidden; image-rendering: pixelated; border-bottom: 2px solid var(--bg-deep);
          background: var(--ps, none) 50% 100% / calc(var(--s) * 320px) calc(var(--s) * 40px) no-repeat, var(--sky0); }
/* 競馬場の景色(日別の WORLD と同じ絵を横につなげてゆっくり流す) */
.ps-venue .ps-art { background: var(--scene) 0 0 / calc(var(--s) * 128px) calc(var(--s) * 40px) repeat-x, var(--sky0); }
.fx .ps-venue .ps-art { animation: pspan 60s steps(128) infinite; }
@keyframes pspan { to { background-position: calc(var(--s) * -128px) 0, 0 0; } }
/* 複数の競馬場を並べる(日別: その日に開催する場)。1場ずつ景色を切り出す */
.ps-segs { position: absolute; inset: 0; display: flex; }
.ps-seg { flex: 1 1 0; min-width: 0; image-rendering: pixelated; background: var(--scene) 50% 100% / calc(var(--s) * 128px) calc(var(--s) * 40px) repeat-x, var(--sky0); }
.ch-head.ps-venue, .ch-head .ps-seg { background-position: 0 100%; }
.ps-seg + .ps-seg { border-left: 2px solid var(--bg-deep); box-shadow: inset 2px 0 0 rgba(255,255,255,.18); }
/* 夜の景色: 星がまたたく(飾り) */
.ps-stable .ps-art::after, .ps-saveroom .ps-art::after, .ps-library .ps-art::after, .ps-g1 .ps-art::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 3px; pointer-events: none;
  box-shadow: 46px 8px #fff, 124px 22px #9fe3ff, 212px 6px #fff, 296px 16px #dfe6ff, 76px 40px #9fe3ff, 170px 34px #fff, 330px 40px #fff;
  animation: twk 3.2s steps(1) infinite; }
.ps-g1 .ps-art::after, .ps-saveroom .ps-art::after { animation-delay: -1.1s; }
@keyframes twk { 50% { box-shadow: 56px 14px #fff, 100px 30px #9fe3ff, 232px 12px #fff, 276px 8px #dfe6ff, 60px 22px #9fe3ff, 190px 40px #fff, 310px 28px #fff; } }

/* 景色の手前の札(タイトル・ひとこと)。不透明な窓の上に文字を置く */
.ps-plate { position: relative; margin: -24px 10px 12px; padding: 10px 14px 14px; z-index: 1;
            background: var(--dither) 0 0 / 4px 4px, var(--bg-deep); border: 2px solid; border-color: #fff #9fb0ee #9fb0ee #fff;
            box-shadow: 0 0 0 2px var(--bg-deep), 4px 4px 0 2px rgba(0,0,0,.45); }
.ps-plate h1 { margin: 6px 0 6px; }
.ps-plate .screen-tag { margin-top: 2px; }
.ps-lead { margin: 0 0 8px; color: var(--muted); font-size: var(--fs-s); }
.ps-plate > :last-child { margin-bottom: 0; }
/* 景色に立つ案内役: 札の上の縁に立つ(4コマ待機) */
.ps-npc { position: absolute; right: 14px; bottom: calc(100% + 2px); width: calc(var(--nw, 24) * var(--s) * 1px); height: calc(var(--nh, 16) * var(--s) * 1px);
          image-rendering: pixelated; background: url(px/horse_idle.svg) 0 0 / 400% 100% no-repeat;
          animation: npc4 1.6s steps(4) infinite; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); pointer-events: none; }
@keyframes npc4 { to { background-position: 133.3334% 0; } }
.npc-coach { --nw: 14; --nh: 22; background-image: url(px/npc_coach.svg); }
.npc-owl { --nw: 10; --nh: 12; background-image: url(px/npc_owl.svg); }
.npc-crystal { --nw: 16; --nh: 14; background-image: url(px/npc_crystal.svg); }
.npc-horse { --nw: 24; --nh: 16; background-image: url(px/horse_idle.svg); }
/* ひとこと(白いふきだし。トップの案内役と同じ) */
.ps-say { position: relative; margin: 10px 0 0; padding: 8px 12px; color: #0b1645; background: #fff; border: 3px solid #0b1645;
          box-shadow: 3px 3px 0 rgba(0,0,0,.4); font-size: 16px; line-height: 1.7; }
.ps-say::before { content: ""; position: absolute; right: 22px; top: -12px; border: 8px solid transparent; border-bottom-color: #0b1645; border-top: 0; }
.ps-say::after { content: ""; position: absolute; right: 25px; top: -7px; border: 5px solid transparent; border-bottom-color: #fff; border-top: 0; }
.ps-say a { color: #2a3fd0; }
.ps-extra { margin: 10px 0 0; }
.ps-extra .chip { margin-bottom: 4px; }
.ps-plate h1 { text-wrap: balance; }

@media (min-width: 700px) {
  .ps-plate { margin: -36px 20px 20px; padding: 14px 24px 18px; }
  .ps-plate.has-say { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24em); column-gap: 28px; align-items: center; }
  .ps-plate.has-say > * { grid-column: 1; }
  .ps-plate.has-say > .ps-npc { grid-column: auto; }
  .ps-plate.has-say > .ps-say { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: center; }
  .ps-plate > .ps-say::before { right: auto; left: 28px; top: -12px; }
  .ps-plate > .ps-say::after { right: auto; left: 31px; top: -7px; }
  .ps-plate.has-say > .ps-extra { grid-column: 1 / -1; }
  .ps-npc { right: 28px; }
}
@media (min-width: 700px) and (max-width: 899.98px) {
  .ps-plate.has-say { grid-template-columns: minmax(0, 1fr); }
  .ps-plate.has-say > .ps-say { grid-column: 1; grid-row: auto; margin-top: 10px; }
}
.fx .ps-art { animation: psopen .5s steps(8) both; }
.fx .ps-venue .ps-art { animation: psopen .5s steps(8) both, pspan 60s steps(128) .5s infinite; }
.fx .ps-plate { animation: psup .35s steps(4) .25s both; }
@keyframes psopen { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0); } }
@keyframes psup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ページの入場(ドットのワイプで入ったあと、本文がすっと入る) */
.fx main { animation: pgin .28s steps(4); }
@keyframes pgin { from { opacity: 0; } to { opacity: 1; } }

/* 窓の「出る」演出を新しい部品にも */
.fx .prose h2:not(.in), .fx .prose .table-wrap:not(.in), .fx .pcards > li:not(.in), .fx .books > li:not(.in), .fx .nq > li:not(.in),
.fx .tmenu > li:not(.in), .fx .qnav > li:not(.in), .fx .dstats > li:not(.in), .fx .rstats > li:not(.in), .fx .disk > li:not(.in) { opacity: 0; }
.fx .prose h2.in, .fx .prose .table-wrap.in, .fx .pcards > li.in, .fx .books > li.in, .fx .nq > li.in,
.fx .tmenu > li.in, .fx .qnav > li.in, .fx .dstats > li.in, .fx .rstats > li.in, .fx .disk > li.in { animation: rvup .28s steps(4) both; }
@keyframes rvup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ================= guide: トレセン ================= */
/* 2026-11-21 読みやすさの見直し: もくじは「まずはここから(1〜3。ひとこと付き)」「必要なときに(4〜7。小さいタイル)」の2段で、
   STEPの番号は大きく。各STEPは「短い一文(talk-lead) → 見本の窓(.ex) → ひとこと(talk-note)」。広い画面は見本を右に並べて縦を詰める。
   タイプライター・▼の点滅・各STEPの「つぎへ」ボタンはやめた(▼は動かない飾りだけ) */
.card.tmenu-card { padding-top: 24px; }
.tmenu-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin: 0 0 8px; font-size: var(--fs-s); color: var(--muted); }
.tmenu-h b { font-family: var(--f-dot); font-weight: 400; font-size: 16px; color: var(--accent); }
.tmenu + .tmenu-h { margin-top: 16px; }
.toc .tmenu { list-style: none; margin: 0; padding: 0; columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.toc .tmenu.sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .toc .tmenu.sub { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tmenu li { padding: 0; }
.tmenu a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 5px 10px 5px 6px; color: var(--text); text-decoration: none;
           background: var(--bg-deep); border: 2px solid var(--edge2);
           box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), 0 3px 0 rgba(0,0,0,.4); }
.tmenu.sub a { gap: 8px; min-height: 48px; padding: 4px 8px 4px 4px; }
.tmenu a:hover, .tmenu a:focus-visible { color: #fff; border-color: #fff; box-shadow: var(--glow), 0 3px 0 rgba(0,0,0,.4); transform: translateY(-1px); }
.tmenu a:active { transform: translateY(2px); }
.tm-no { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 44px; height: 44px;
         font-family: var(--f-px); font-size: 16px; line-height: 1; color: var(--bg-deep); background: var(--accent);
         box-shadow: inset -3px -3px 0 rgba(5,12,42,.25), inset 3px 3px 0 rgba(255,255,255,.55); }
.tmenu.sub .tm-no { width: 38px; height: 38px; gap: 3px; }
.tm-no small { font-size: 8px; }
.tm-b { display: flex; flex-direction: column; min-width: 0; }
.tm-t { min-width: 0; font-family: var(--f-dot); font-size: 16px; line-height: 1.4; }
.tm-t .px, .tm-t .mark { margin-right: 6px; }
.tm-t .mark { min-width: 0; }
.tm-s { font-size: var(--fs-s); line-height: 1.5; color: var(--muted); }
.tmenu a:hover .tm-s, .tmenu a:focus-visible .tm-s { color: #dfe6ff; }

.talk { margin-bottom: 16px; }
.talk .card { box-shadow: inset 0 0 0 2px var(--bg-deep), inset 4px 4px 0 var(--b-hi), inset -4px -4px 0 var(--b-lo), 0 0 0 2px var(--bg-deep), var(--drop); }
.talk .card.more::after { content: "▼"; position: absolute; right: 12px; bottom: 3px; font-family: var(--f-dot); font-size: 12px; line-height: 1; color: #fff; opacity: .8; }
.talk h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding-left: 0; background: none; font-size: 20px; line-height: 1.35; }
@media (min-width: 700px) { .talk h2 { font-size: 24px; } }
.step-no { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 48px; height: 44px;
           padding: 0 6px; margin: 0; font-family: var(--f-px); font-size: 16px; line-height: 1; color: var(--bg-deep); background: var(--edge);
           text-shadow: none; box-shadow: inset -3px -3px 0 #9fb0ee, inset 3px 3px 0 #fff, 2px 2px 0 rgba(0,0,0,.4); }
.step-no small { font-size: 8px; }
.step-t { min-width: 0; }
.talk-lead { margin: 0; font-size: 17px; line-height: 1.75; color: #fff; }
.talk-lead b { font-weight: 700; background: linear-gradient(transparent 62%, rgba(159,227,255,.3) 62%); }
.talk-note { margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
.talk-list { margin: 0 0 10px; padding-left: 1.3em; line-height: 1.7; }
.talk-list li { margin: 4px 0; }
.talk-go { margin: 10px 0 0; text-align: right; }
.talk-go a { display: inline-block; padding: 6px 0; font-size: 15px; text-underline-offset: 3px; }
/* 見本の窓(サイトの表示と同じ部品を小さく並べる) */
.ex { position: relative; margin: 20px 0 10px; padding: 16px 14px 10px; background: var(--bg-deep); border: 2px solid var(--edge2);
      box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), 3px 3px 0 rgba(0,0,0,.35); }
.ex-tag { position: absolute; left: 10px; top: -13px; margin: 0; padding: 0 8px; font-family: var(--f-dot); font-size: 16px; line-height: 22px;
          color: var(--bg-deep); background: var(--accent); box-shadow: 0 0 0 2px var(--bg-deep); }
.ex-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 14px; align-items: baseline; margin: 0; }
.ex-dl > div { display: contents; }
.ex-dl dt { font-family: var(--f-dot); font-size: 16px; color: #fff; white-space: nowrap; }
.ex-dl dd { margin: 0; line-height: 1.6; }
.ex-dl .mark { min-width: 1.7em; margin-right: 6px; background: var(--win); border: 2px solid var(--edge2); box-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.ex-dl dt .hit, .ex-dl dt .miss { font-size: 16px; }
.ex-boss { display: inline-block; margin-right: 6px; padding: 3px 5px; font-family: var(--f-px); font-size: 8px; line-height: 1; color: #fff;
           background: var(--red2); border: 2px solid var(--red); vertical-align: .15em; }
.ex-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.ex-line + .ex-line { margin-top: 10px; }
.ex-line .chip { margin: 0; font-size: 16px; }
.ex-line .hit, .ex-line .miss { min-width: 3.5em; font-size: 16px; }
.ex-combo { font-family: var(--f-dot); font-size: 16px; color: #fff; white-space: nowrap; }
.ex-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ex-flow li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 0 14px; align-items: baseline; line-height: 1.6; }
.ex-flow b { font-family: var(--f-dot); font-weight: 400; font-size: 16px; color: var(--accent); }
/* 広い画面: 見出しの下を2列にして、左に一文とひとこと、右に見本 */
@media (min-width: 900px) {
  /* 最後の 1fr の行が見本の高さの余りを受け持つ(左の行のあいだが空かないように) */
  .talk .card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 32px; }
  .talk .card > * { grid-column: 1; }
  .talk .card > h2 { grid-column: 1 / -1; grid-row: 1; }
  .talk .card > .ex { grid-column: 2; grid-row: 2 / 6; align-self: start; margin: 14px 0 0; }
  .talk-note { margin-top: 8px; }
}
/* スマホ: 案内役の顔を窓の左上に入れて、縦の長さを詰める */
@media (max-width: 520px) {
  .talk { display: block; position: relative; }
  .talk > .talk-face { position: absolute; z-index: 2; left: 12px; top: 12px; width: 52px; height: 52px; margin: 0; border-width: 3px;
                       background-size: 184px auto; background-position: 0 50%; animation-name: faceidle-g; }
  .talk .card::before { content: none; }
  .talk h2 { min-height: 46px; margin-left: 52px; }
}
@keyframes faceidle-g { to { background-position: -184px 50%; } }
.grad { text-align: center; }
.grad-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: 16px 0 8px; }
.grad-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 0 0 4px; font-size: 15px; }
.grad-links a { display: inline-block; padding: 6px 0; text-underline-offset: 3px; }
.grad .next { margin-top: 12px; }

/* ================= picks: 厩舎の掲示板 ================= */
.qnav { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .qnav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qnav a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic no" "ic t" "n n"; gap: 0 8px; align-items: center; min-height: 44px; padding: 8px 10px;
          color: var(--text); text-decoration: none; background: var(--dither) 0 0 / 4px 4px, var(--bg-deep); border: 2px solid var(--edge2);
          box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), inset -2px -2px 0 rgba(0,0,0,.4), 0 4px 0 rgba(0,0,0,.4); }
.qnav a:hover, .qnav a:focus-visible { color: #fff; border-color: #fff; box-shadow: var(--glow), 0 4px 0 rgba(0,0,0,.4); transform: translateY(-2px); }
.qnav a:active { transform: translateY(2px); }
.qn-ic { grid-area: ic; font-size: 24px; }
.qn-no { grid-area: no; font-family: var(--f-px); font-size: 8px; color: var(--accent); }
.qn-t { grid-area: t; font-family: var(--f-dot); font-size: 16px; line-height: 1.35; }
.qn-n { grid-area: n; margin-top: 4px; font-family: var(--f-px); font-size: 16px; color: #fff; text-align: right; }
.qn-n small { font-family: var(--f-body); font-size: var(--fs-s); color: var(--muted); margin-left: 4px; }
.quest { scroll-margin-top: 84px; }
.qday { margin: 14px 0 0; }
.qday > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-dot); font-size: 16px; color: var(--accent); }
.qday > summary::-webkit-details-marker { display: none; }
.qday > summary::marker { content: ""; }
.qday > summary::before { content: "▶"; font-size: .75rem; color: var(--muted); display: inline-block; }
.qday[open] > summary::before { transform: rotate(90deg); }
.qday > summary:hover { color: #fff; }
.qday > summary small { font-family: var(--f-body); font-size: var(--fs-s); color: var(--muted); }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 760px) { .qlist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.qrow { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "no name" "rw rw"; gap: 2px 10px; align-items: center; height: 100%;
        padding: 8px 10px; color: var(--text); text-decoration: none; background: rgba(5,12,42,.62); border: 2px solid rgba(238,241,255,.4);
        box-shadow: inset 2px 2px 0 rgba(255,255,255,.07), 0 3px 0 rgba(0,0,0,.4); }
.qrow:hover, .qrow:focus-visible { color: #fff; border-color: #fff; box-shadow: var(--glow), 0 3px 0 rgba(0,0,0,.4); transform: translateY(-1px); }
.qrow:active { transform: translateY(2px); }
.q-no { grid-area: no; font-family: var(--f-dot); font-size: 14px; line-height: 1.5; padding: 0 6px; color: #fff; background: var(--bg-deep); border: 2px solid var(--edge2); white-space: nowrap; }
.q-name { grid-area: name; font-family: var(--f-dot); font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.q-rw { grid-area: rw; font-family: var(--f-body); font-weight: 700; font-size: 15px; padding-left: 4px; overflow-wrap: anywhere; }
.q-rw .q-um { display: inline-block; min-width: 1.8em; text-align: center; margin-right: 6px; font-family: var(--f-px); font-size: 8px; line-height: 16px; color: var(--bg-deep); background: var(--accent); padding: 0 3px; }
.q-rw .muted { font-weight: 400; }
.quest.r-bomb .q-um { background: var(--gold); }
.quest.r-bomb .q-rw { color: var(--gold); }
.quest.r-boss .q-um { background: #ff7a6e; }
.quest .qday > summary { color: #dfe6ff; }

/* ================= days: ステージ選択 ================= */
.dstats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dstat { padding: 6px 8px; text-align: center; background: var(--bg-deep); border: 2px solid var(--edge2); box-shadow: inset 2px 2px 0 rgba(255,255,255,.06); }
.dstat b { display: block; font-family: var(--f-px); font-size: 16px; font-weight: 400; line-height: 1.5; color: #fff; }
.dstat span { font-family: var(--f-dot); font-size: 14px; color: var(--muted); }
.dstat.boss b { color: #ff8a7a; }
.ps-extra .day-pick { margin: 10px 0 0; }
@media (min-width: 700px) { .dstat b { font-size: 24px; } }
/* 2026-11-21 スマホの見直し: 最初のレースまでを短く。ふきだし(説明)と日本地図はスマホでは出さない(場の一覧は残して、押すとその場へ)。
   レースは1レース1枚の押せる札(style.css の .rc) */
@media (max-width: 699.98px) {
  .ps-day .ps-say { display: none; }
  .ps-day .ps-art { height: calc(var(--s) * 28px); }
  .wsel-card { padding-top: 10px; padding-bottom: 10px; }
  .wsel-card .wmap { display: none; }
  .wsel-card .wsel-h { margin-bottom: 6px; }
  .day-stages { gap: 10px; }
  .day-stages > li.is-boss { margin: 8px 0 4px; }
}

/* ================= races: 作戦画面 ================= */
.rplate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: start; }
.rp-no { grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 8px 8px 6px; text-align: center;
         background: var(--dither) 0 0 / 4px 4px, var(--bg-deep); border: 3px solid var(--va); box-shadow: inset 2px 2px 0 rgba(255,255,255,.1), 3px 3px 0 rgba(0,0,0,.4); }
.rp-no b { font-family: var(--f-px); font-weight: 400; font-size: 24px; line-height: 1.1; color: #fff; }
.rp-no b small { font-size: 16px; }
.rp-no span { font-family: var(--f-dot); font-size: 14px; color: var(--va); }
.boss-card .rp-no { border-color: #ff7a6e; }
.rplate > :not(.rp-no) { grid-column: 2; }
@media (max-width: 519.98px) { .rplate { grid-template-columns: minmax(0, 1fr); } .rplate > :not(.rp-no) { grid-column: 1; } .rp-no { grid-row: auto; flex-direction: row; justify-content: center; gap: 10px; justify-self: start; margin-bottom: 8px; min-width: 0; } }
.cmd.mk > li { padding-left: 52px; min-height: 40px; }
.cmd.mk > li::before { display: none; }
.mk-spr { position: absolute; left: 0; top: 50%; width: 36px; height: 24px; margin-top: -11px; overflow: hidden; }
.mk-spr svg { display: block; width: 144px; height: 24px; }
.cmd.mk > li:hover .mk-spr svg { animation: mkrun .8s steps(4) infinite; }
@keyframes mkrun { to { transform: translateX(-144px); } }
/* 評価のくわしい中身(table.eval)は本文を16pxにする前と同じ15pxのまま(5列あるのでスマホで詰まらないように。2026-11-21) */
table.eval { font-size: 15px; }
.rnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.rnav .btn { font-size: 16px; padding: 8px 14px; }
.rnav .btn small { display: block; font-size: var(--fs-s); line-height: 1.3; color: #e8defa; }
.rnav .rn-mid { flex: 1 1 100%; text-align: center; order: 3; }
@media (min-width: 640px) { .rnav .rn-mid { flex: 0 0 auto; order: 0; } }

/* ---------- 2026-11-21 レースページの見直し(的中バナー・まとめ・表。スマホ優先) ---------- */
/* 的中！(一番上の大きな帯)。緑＝的中。きらきら・紙ふぶきは reduced-motion で止まる。小さい「当たり!」はこの帯に置き換え */
.battle-head h1 .badge-hit { display: none; }
.hitbnr { position: relative; overflow: hidden; margin: 8px 0 18px; padding: 14px 12px 12px; text-align: center;
          background: var(--dither) 0 0 / 4px 4px, linear-gradient(180deg, #13602b, #072812);
          border: 4px solid; border-color: #8dff98 #2f9e3a #2f9e3a #8dff98;
          box-shadow: inset 0 0 0 2px var(--bg-deep), inset 0 0 28px rgba(109,255,124,.28), 0 0 0 2px var(--bg-deep), var(--drop); }
.hb-fx { position: absolute; inset: 0; pointer-events: none; }
.hb-big { position: relative; margin: 0; font-family: var(--f-dot); font-size: 48px; line-height: 1.2; letter-spacing: 6px; color: #fff;
          text-shadow: 3px 3px 0 #1f7a2c, 6px 6px 0 #050c2a, 0 0 18px rgba(109,255,124,.55); }
.hb-word { position: relative; display: inline-block; }
.hb-word::before, .hb-word::after { content: ""; position: absolute; left: -14px; top: 10px; width: 6px; height: 6px; animation: burst 1.8s step-end infinite; }
.hb-word::after { left: auto; top: auto; right: -12px; bottom: 10px; animation-delay: .9s; }
.hb-sub { position: relative; margin: 4px 0 0; font-family: var(--f-dot); font-size: 16px; color: #c8ffd0; }
.fx .hitbnr { animation: hbin .36s steps(4) both; }
.fx .hb-big { animation: slam .45s steps(4) .2s both; }
@keyframes hbin { from { clip-path: inset(50% 0 50% 0); } }
@media (min-width: 700px) { .hb-big { font-size: 64px; } .hb-sub { font-size: 24px; } .hitbnr { padding: 18px 16px 16px; } }

/* 予想のまとめ: ◎・💣・買い目を大きく、下の項目へのジャンプ(押せる高さ44px) */
.rsum { --pt: 12px; padding-bottom: 12px; }
.rs-list { margin: 0; display: grid; }
.rs-i { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 0 10px; align-items: baseline; padding: 6px 0; border-top: 2px dashed rgba(170,182,230,.28); }
.rs-i:first-child { border-top: 0; padding-top: 0; }
.rs-i dt { font-family: var(--f-dot); font-size: 14px; color: var(--muted); }
.rs-i dd { margin: 0; min-width: 0; font-family: var(--f-dot); font-size: 24px; line-height: 1.4; color: #fff; overflow-wrap: anywhere; text-shadow: 2px 2px 0 var(--bg-deep); }
.rs-i dd > b { font-family: var(--f-px); font-weight: 400; font-size: 16px; margin: 0 8px 0 4px; }
.rs-i dd > .mark { min-width: 0; }
.rs-i dd > .px { margin-left: 2px; }
.rs-i.is-bomb dd { color: var(--gold); text-shadow: 2px 2px 0 #4a2200; }
.rs-f { display: inline-block; margin-left: 10px; padding: 0 6px; font-size: 16px; line-height: 1.5; color: #fff; vertical-align: .2em; text-shadow: none;
        background: var(--bg-deep); border: 2px solid var(--edge2); }
.rs-bets dd { display: grid; gap: 4px; font-size: 16px; line-height: 1.6; text-shadow: none; }
.rs-bet .chip { margin-right: 6px; }
.rs-bet .hit { margin-left: 8px; }
.rs-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding-top: 10px; border-top: 2px solid rgba(170,182,230,.35); }
.rs-jump a { flex: 1 1 0; min-width: 52px; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 2px 4px; font-family: var(--f-dot); font-size: 16px; white-space: nowrap;
             color: #fff; text-decoration: none; background: var(--bg-deep); border: 2px solid var(--edge2); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.rs-jump a::before { content: "▼"; font-size: 10px; color: var(--accent); }
@media (max-width: 419.98px) { .rs-jump a::before { display: none; } .rs-i { grid-template-columns: minmax(0, 1fr); } .rs-i dt { line-height: 1.4; } }
.rs-jump a:hover, .rs-jump a:focus-visible { color: #fff; border-color: #fff; }
.rs-jump a:active { transform: translateY(2px); box-shadow: none; }
.boss-card .rs-jump a { border-color: rgba(255,122,110,.75); }
/* ★★のレース名・◎/💣の名前を強く(バトル画面) */
.battle-head.boss-card h1 { text-shadow: 2px 2px 0 #b81e1e, 4px 4px 0 #12030f; }
.bt-chal .u-name { color: var(--gold); font-size: 16px; }
@media (min-width: 640px) { .bt-chal .u-name, .unit.big.is-hon .u-name { font-size: 24px; } }
/* スマホ: まとめまでを先に出し、バトル画面(飾り)はその下へ。VS の帯は上の札と同じ内容なので出さない */
@media (max-width: 699.98px) {
  main.wrap:has(> .rsum) { display: flex; flex-direction: column; }
  main.wrap:has(> .rsum) > .battle { order: 1; }
  main.wrap > .rsum ~ * { order: 2; }
  .battle .bt-vs { display: none; }
  .battle-head .rplate h1 { font-size: 24px; line-height: 1.35; margin: 2px 0 6px; }
}


/* ================= record: クラブハウス ================= */
.rstats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rs { padding: 8px 6px; text-align: center; background: var(--dither) 0 0 / 4px 4px, var(--bg-deep); border: 2px solid var(--edge2);
      box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), inset -2px -2px 0 rgba(0,0,0,.4), 3px 3px 0 rgba(0,0,0,.35); }
.rs-l { display: block; font-family: var(--f-dot); font-size: 14px; line-height: 1.35; color: var(--muted); }
.rs-v { display: block; margin: 4px 0 0; font-family: var(--f-px); font-size: 16px; line-height: 1.4; color: #fff; text-shadow: 2px 2px 0 #6a3fd0; }
.rs-s { display: block; font-size: var(--fs-s); color: var(--muted); }
@media (min-width: 700px) { .rs-v { font-size: 24px; } .rs { padding: 10px 8px; } }
.trophies { padding: 6px 0 0; }
.tro { box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), inset -2px -2px 0 rgba(0,0,0,.4), 0 6px 0 #3a2418, 0 8px 0 rgba(0,0,0,.4); }
.tro.locked { box-shadow: 0 6px 0 #2a1a10, 0 8px 0 rgba(0,0,0,.4); }

/* ================= archive: セーブルーム ================= */
.disk-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 20px 0 10px; font-family: var(--f-dot); font-size: 16px; color: var(--accent); }
.disk-h:first-of-type { margin-top: 4px; }
.disk-h b { font-family: var(--f-px); font-size: 8px; font-weight: 400; color: var(--bg-deep); background: var(--accent); padding: 4px 6px; }
.disk-h small { font-family: var(--f-body); font-size: var(--fs-s); color: var(--muted); }
.saves.disk { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.disk .save { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic no" "ic day" "meta meta"; gap: 0 10px; padding: 8px 10px 8px; position: relative; min-height: 64px;
              background-image: var(--dither), linear-gradient(180deg, #14286f, #0b1645); background-size: 4px 4px, auto; }
.disk .save::before { content: ""; position: absolute; right: 8px; top: 8px; width: 14px; height: 18px; background: #c8ccd8; border: 2px solid var(--bg-deep); box-shadow: inset 0 -6px 0 #5b7cf0; }
.disk .save .i-horse { grid-area: ic; }
.disk .save-no { grid-area: no; }
.disk .save-day { grid-area: day; font-size: 16px; }
.save-meta { grid-area: meta; margin-top: 6px; font-size: var(--fs-s); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 10px; }
.save-meta .sm-boss { color: #ff8a7a; }
.save-meta .sm-v { color: #dfe6ff; }

/* ================= blog: 図書室 ================= */
.books { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 640px) { .books { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.books li { padding: 0; }
.book { --bk: #2a6cf0; --bk2: #173f9a; --bt: #fff; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 148px; height: 100%;
        padding: 10px 10px 10px 20px; color: var(--bt); text-decoration: none; overflow: hidden;
        background: var(--dither) 0 0 / 4px 4px, linear-gradient(90deg, var(--bk2) 0 10px, rgba(255,255,255,.25) 10px 12px, var(--bk) 12px);
        border: 3px solid var(--bg-deep); border-right-width: 6px; border-right-color: #eef1ff;
        box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 6px 0 #6b4a2c, 0 9px 0 #3a2418, 5px 9px 0 rgba(0,0,0,.35); }
.book:hover, .book:focus-visible { color: var(--bt); transform: translateY(-4px); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), var(--glow), 0 10px 0 #6b4a2c, 0 13px 0 #3a2418; }
.book:active { transform: translateY(2px); }
.bk-no { font-family: var(--f-px); font-size: 8px; line-height: 1; padding: 3px 4px; color: var(--bk2); background: #fff; }
.bk-ic { font-size: 32px; line-height: 1; margin: 4px 0 2px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.35)); }
.bk-t { font-family: var(--f-dot); font-size: 16px; line-height: 1.35; }
.bk-n { margin-top: auto; font-family: var(--f-px); font-size: 8px; padding: 3px 5px; color: #fff; background: rgba(5,12,42,.7); }
.book.off { --bk: #232850; --bk2: #14183a; color: #8a93bd; border-style: dashed; border-right-color: #3a4270; box-shadow: 0 6px 0 #2a1a10, 0 9px 0 rgba(0,0,0,.4); background: var(--dither) 0 0 / 4px 4px, #1d2148; }
.book.off .bk-no { color: #14183a; background: #8a93bd; }
.book.off .bk-ic { filter: grayscale(1) brightness(.7); }
.book.off .bk-n { color: #8a93bd; background: transparent; font-family: var(--f-dot); font-size: 14px; padding: 0; }
.bk-nyumon { --bk: #2a6cf0; --bk2: #173f9a; }
.bk-yosou { --bk: #7a4ad8; --bk2: #4a2a9a; }
.bk-bakenjutsu { --bk: #1f7aa6; --bk2: #124e6e; }
.bk-keibajo { --bk: #4a62c8; --bk2: #2a3a8a; }
.bk-g1 { --bk: #c8ccd8; --bk2: #7d8396; --bt: #0b1645; }
.bk-g1 .bk-n { color: #fff; }
.bk-g1 .bk-no { color: #363958; }
.bk-tanoshimi { --bk: #a98bff; --bk2: #6a4ad0; --bt: #0b1645; }
.bk-zatsudan { --bk: #5b5f86; --bk2: #363958; }
.shelf-card { padding-bottom: 30px; }

.ch-head { position: relative; margin: calc(4px - var(--pt)) calc(4px - var(--px)) 0; height: calc(var(--s) * 24px); overflow: hidden; image-rendering: pixelated; border-bottom: 2px solid var(--bg-deep);
           background: var(--ps, none) 50% 100% / calc(var(--s) * 320px) calc(var(--s) * 40px) no-repeat, var(--sky0, #0b1a4a); }
.ch-head.ps-venue { background: var(--scene) 0 100% / calc(var(--s) * 128px) calc(var(--s) * 40px) repeat-x, var(--sky0); }
.ch-head .ps-seg { background-size: calc(var(--s) * 128px) calc(var(--s) * 40px); }
.ch-title { position: relative; z-index: 1; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; max-width: calc(100% - 8px); margin: -22px 0 12px -4px; padding: 6px 14px 6px 10px;
            background: var(--dither) 0 0 / 4px 4px, var(--bg-deep); border: 2px solid; border-color: #fff #9fb0ee #9fb0ee #fff; box-shadow: 0 0 0 2px var(--bg-deep), 4px 4px 0 2px rgba(0,0,0,.45); }
.ch-title h2 { margin: 0; padding-left: 0; background: none; }
.ch-title .ch-ic { font-size: 24px; }
.card.chapter { --px: 16px; }
@media (min-width: 700px) {
  .ch-title { margin-top: -28px; }
  .card.chapter { --px: 24px; }
}
.ch-more { margin: 12px 0 0; text-align: right; }
.bookmarks { margin: 0 0 28px; }
.bookmarks .chip { position: relative; padding-left: 12px; border-left-width: 6px; }
.ch-chips { margin: 0 0 20px; }
.ch-chips .chip { display: inline-flex; align-items: center; gap: 4px; }

/* 記事の一覧(貼り紙のカード): 日付のタイル＋題名＋章・読む時間＋紹介文 */
.pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.pcards > li { padding: 0; border: 0; display: block; }
.pcards > li::before { content: none; }
.pcard { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0 12px; align-items: start; height: 100%; padding: 10px 12px 10px 10px; color: var(--text); text-decoration: none;
         background: var(--dither) 0 0 / 4px 4px, rgba(5,12,42,.7); border: 2px solid var(--edge2);
         box-shadow: inset 2px 2px 0 rgba(255,255,255,.07), inset -2px -2px 0 rgba(0,0,0,.4), 0 4px 0 rgba(0,0,0,.4); }
.pcard:hover, .pcard:focus-visible { color: #fff; border-color: #fff; box-shadow: var(--glow), 0 5px 0 rgba(0,0,0,.45); transform: translateY(-2px); }
.pcard:active { transform: translateY(2px); }
.pc-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 4px 2px; text-align: center; color: var(--bg-deep);
           background: #eef1ff; border: 2px solid var(--bg-deep); box-shadow: 0 0 0 2px #9fb0ee, 3px 3px 0 2px rgba(0,0,0,.35); font-family: var(--f-dot); }
.pc-date small { font-size: 14px; line-height: 1.1; letter-spacing: 0; color: #2a3fd0; }
.pc-date b { font-family: var(--f-px); font-size: 16px; font-weight: 400; line-height: 1.4; }
.pc-t { display: block; font-family: var(--f-dot); font-weight: 400; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.pc-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 2px 0; font-size: var(--fs-s); color: var(--muted); }
.pc-cat { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border: 2px solid var(--edge2); color: #dfe6ff; background: var(--bg-deep); white-space: nowrap; }
.pc-cat .px { font-size: 14px; }
.pc-new { font-family: var(--f-px); font-size: 8px; line-height: 14px; padding: 1px 4px; color: var(--bg-deep); background: var(--accent); }
.pc-s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.65; color: #cfd8f7; }
@media (min-width: 700px) { .pcards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= 記事ページ: 長い文章の組み方 ================= */
main.wide { max-width: 960px; }
.post-grid { display: block; }
.post-side { margin: 0 0 20px; }
.map { position: relative; margin: 0; padding: 22px 14px 10px; }
.map .win-tag { left: 10px; }
.map ol { list-style: none; margin: 0; padding: 0; counter-reset: map; }
.map li { counter-increment: map; border-top: 2px dashed rgba(170,182,230,.28); }
.map li:first-child { border-top: 0; }
.map a { position: relative; display: block; min-height: 40px; padding: 8px 6px 8px 34px; color: var(--text); text-decoration: none; font-family: var(--f-body); font-size: 16px; line-height: 1.5; }
.map a::before { content: counter(map); position: absolute; left: 4px; top: 50%; margin-top: -9px; width: 22px; height: 18px; text-align: center; font-family: var(--f-px); font-size: 8px; line-height: 18px;
                 color: var(--bg-deep); background: var(--accent); }
.map a:hover, .map a:focus-visible { color: #fff; background: rgba(159,227,255,.08); }
.map a.cur { color: #fff; background: rgba(159,227,255,.14); box-shadow: inset 4px 0 0 var(--accent); }
.map a.cur::before { background: #fff; }
.map-flag { margin: 6px 0 4px; font-size: var(--fs-s); color: var(--muted); }
@media (min-width: 1100px) {
  main.wide { max-width: 1100px; }
  .post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 0 28px; align-items: start; }
  .post-side { order: 2; position: sticky; top: 104px; margin: 0; padding-top: 16px; }
  .map ol { max-height: calc(100vh - 220px); overflow-y: auto; scrollbar-width: thin; }
  .post-main { order: 1; min-width: 0; }
  .pscene.wide-hero { margin-bottom: 28px; }
}
.post-meta { margin: 2px 0 8px; }
.post-chips { margin: 0; }

.prose { max-width: 42em; margin: 0 auto; font-family: var(--f-body); font-size: 16px; line-height: 2; letter-spacing: .01em; color: #eef1ff; font-feature-settings: "palt" 0; }
.card.article { --px: 18px; }
@media (min-width: 700px) { .card.article { --px: 32px; } }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose > p:first-child { font-size: 1.06em; }
.prose a { color: #8fd3ff; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; font-weight: 700; background: linear-gradient(transparent 62%, rgba(159,227,255,.28) 62%); }
.prose em { font-style: normal; color: #cfe0ff; border-bottom: 2px dotted var(--edge2); }
.prose h2 { position: relative; margin: 2.4em 0 1em; padding: 12px 12px 12px 58px; font-size: 24px; line-height: 1.4; color: #fff; text-shadow: 2px 2px 0 var(--bg-deep);
            background: var(--dither) 0 0 / 4px 4px, var(--bg-deep); border: 2px solid; border-color: #fff #9fb0ee #9fb0ee #fff;
            box-shadow: 0 0 0 2px var(--bg-deep), 4px 4px 0 2px rgba(0,0,0,.4); scroll-margin-top: 112px; }
.prose h2::before { content: ""; position: absolute; left: 12px; top: 50%; width: 34px; height: 34px; margin-top: -17px; image-rendering: pixelated;
                    background: url(px/shoe.svg) center / 24px 24px no-repeat, var(--win); border: 2px solid var(--edge2); box-shadow: inset 2px 2px 0 rgba(255,255,255,.12); }
.prose h2::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -10px; height: 4px; opacity: .8;
                   background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); }
@media (max-width: 699.98px) { .prose h2 { font-size: 20px; padding: 10px 10px 10px 52px; } .prose h2::before { left: 10px; width: 30px; height: 30px; margin-top: -15px; } }
.prose h3 { position: relative; margin: 2em 0 .7em; padding: 2px 0 2px 24px; font-size: 16px; line-height: 1.6; color: #fff; }
.prose h3::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--accent); box-shadow: 4px 4px 0 var(--edge2), 6px 6px 0 var(--bg-deep); }
.prose h4 { margin: 1.6em 0 .5em; font-size: 16px; color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.prose li { position: relative; margin: .35em 0; padding-left: 1.7em; }
.prose ul li::before { content: ""; position: absolute; left: .25em; top: .85em; width: 8px; height: 8px; background: var(--accent); box-shadow: 2px 2px 0 var(--bg-deep); }
.prose ol { counter-reset: ol; }
.prose ol > li { counter-increment: ol; padding-left: 2.4em; }
.prose ol > li::before { content: counter(ol); position: absolute; left: 0; top: .55em; width: 22px; height: 20px; text-align: center; font-family: var(--f-px); font-size: 8px; line-height: 20px; color: var(--bg-deep); background: var(--accent); }
.prose li > ul, .prose li > ol { margin: .4em 0 .2em; }
.prose blockquote { position: relative; margin: 1.6em 0 1.8em; padding: 12px 16px; color: #0b1645; background: #fff; border: 3px solid #0b1645; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }
.prose blockquote::before { content: ""; position: absolute; left: 24px; bottom: -14px; border: 8px solid transparent; border-top-color: #0b1645; border-bottom: 0; }
.prose blockquote::after { content: ""; position: absolute; left: 27px; bottom: -8px; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.prose blockquote p { margin: .3em 0; }
.prose blockquote a { color: #2a3fd0; }
.prose blockquote strong { color: #0b1645; background: linear-gradient(transparent 62%, rgba(91,124,240,.3) 62%); }
.prose hr { position: relative; height: 24px; margin: 2.2em 0; border: 0; background: repeating-linear-gradient(90deg, rgba(170,182,230,.45) 0 6px, transparent 6px 12px) 0 50% / 100% 2px no-repeat; }
.prose hr::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 28px; transform: translate(-50%, -50%); image-rendering: pixelated; background: url(px/horse.svg) center / 36px auto no-repeat, #112176; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; padding: 4px; background: var(--bg-deep); border: 2px solid var(--edge2); box-shadow: 4px 4px 0 rgba(0,0,0,.4); image-rendering: auto; }
.prose code { padding: 1px 6px; font-size: .9em; background: var(--bg-deep); border: 1px solid var(--edge2); }
.prose pre { margin: 1.4em 0; }
.prose .table-wrap { position: relative; margin: 1.6em 0; border: 2px solid var(--edge2); background: rgba(5,12,42,.5); box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.prose table { display: table; width: 100%; min-width: 440px; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.prose th { padding: 8px 12px; text-align: left; white-space: nowrap; font-family: var(--f-dot); font-weight: 400; color: var(--accent); background: #0b1645; border: 0; border-bottom: 2px solid var(--edge2); }
.prose td { padding: 8px 12px; vertical-align: top; border: 0; border-top: 1px dashed rgba(170,182,230,.3); }
.prose tbody tr:first-child td { border-top: 0; }
.prose tbody tr:nth-child(even) td { background: rgba(255,255,255,.045); }
.prose td:first-child { font-weight: 700; color: #fff; }
.prose .table-wrap:focus-visible { outline: 3px dashed #fff; outline-offset: 3px; }
.prose figure { margin: 1.4em 0; }
.post-end { margin: 2em 0 0; padding-top: 1.2em; text-align: center; font-family: var(--f-px); font-size: 8px; color: var(--muted); border-top: 2px dashed rgba(170,182,230,.3); }
.post-end i { margin-right: 6px; }

/* 次のクエスト(あわせて読みたい) */
.nq-card { padding-top: 28px; }
.nq { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: nq; }
@media (min-width: 760px) { .nq { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nq li { counter-increment: nq; padding: 0; }
.nq a { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px 12px 12px; color: var(--text); text-decoration: none;
        background: var(--dither) 0 0 / 4px 4px, rgba(5,12,42,.7); border: 2px solid var(--edge2); box-shadow: inset 2px 2px 0 rgba(255,255,255,.07), 0 4px 0 rgba(0,0,0,.4); }
.nq a::before { content: "QUEST " counter(nq); position: absolute; left: 8px; top: -2px; padding: 3px 6px; font-family: var(--f-px); font-size: 8px; line-height: 1; color: var(--bg-deep); background: var(--accent); }
.nq a:hover, .nq a:focus-visible { color: #fff; border-color: #fff; box-shadow: var(--glow), 0 4px 0 rgba(0,0,0,.4); transform: translateY(-2px); }
.nq a:active { transform: translateY(2px); }
.nq-t { font-family: var(--f-dot); font-size: 16px; line-height: 1.5; }
.nq-m { font-size: var(--fs-s); color: var(--muted); }
.nq-s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.6; color: #cfd8f7; }
.post-nav { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 8px; }

/* ================= about / privacy: 案内所 ================= */
.info-sec h2 { display: flex; align-items: center; gap: 8px; }

/* ================= round7 追加: アイコン(章・貼り紙)・タグのしおり ================= */
.i-sprout { background-image: url(px/sprout.svg); } .i-bulb { background-image: url(px/bulb.svg); } .i-ticket { background-image: url(px/ticket.svg); width: 1.1em; }
.i-stand { background-image: url(px/stand.svg); width: 1.1em; } .i-balloon { background-image: url(px/balloon.svg); } .i-pin { background-image: url(px/pin.svg); }
.i-check { background-image: url(px/check.svg); width: 1.1em; } .i-trophy { background-image: url(px/trophy.svg); }
.tag-more { margin: -16px 0 28px; }
.tag-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font-family: var(--f-dot); font-size: var(--fs-s);
                      color: #dfe6ff; background: var(--bg-deep); border: 2px dashed var(--edge2); }
.tag-more > summary::-webkit-details-marker { display: none; }
.tag-more > summary::before { content: "▶"; font-size: .75rem; }
.tag-more[open] > summary::before { transform: rotate(90deg); }
.tag-more > summary:hover, .tag-more > summary:focus-visible { color: #fff; border-color: #fff; }
.tag-more .tag-cloud { margin: 12px 0 0; }
.tag-wrap { margin-top: 28px; }

/* ================= 404: 夜の景色の上に GAME OVER ================= */
.go-art { height: calc(var(--s) * 40px); margin: 0 0 -8px; image-rendering: pixelated; border: 4px solid #fff; border-color: #fff #9fb0ee #9fb0ee #fff; box-shadow: 0 0 0 2px var(--bg-deep), var(--drop);
          background: var(--scene) 0 0 / calc(var(--s) * 128px) calc(var(--s) * 40px) repeat-x, var(--sky0); }
.fx .go-art { animation: pspan 60s steps(128) infinite; }
