.arena-page {
  --ink-soft: #bcc4c3;
  --line-soft: #34403b;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}
.arena-page .topbar nav a { display: inline-flex; }
.arena-page nav a:hover, .arena-page footer a:hover { color: var(--accent); }
.arena-page main { max-width: 1340px; }
.crumb { display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0; color: var(--muted); font-size: .8rem; }
.crumb a { text-decoration: underline; text-underline-offset: .2rem; }
.feature { position: relative; isolation: isolate; display: grid; align-content: end; min-height: 325px; padding: clamp(24px, 4vw, 60px); overflow: hidden; background: #16231e; border: 1px solid var(--line-soft); border-radius: 7px; }
.feature-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 70%; height: 100%; object-fit: cover; object-position: center 35%; }
.feature::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#14201b 15%,rgba(20,32,27,.97) 34%,rgba(20,32,27,.86) 51%,rgba(20,32,27,.12) 79%),linear-gradient(0deg,#0f1715a6,transparent 38%); }
.feature .format { margin: 0; color: var(--accent); font-size: .84rem; font-weight: 700; }
.feature h1 { max-width: 21ch; margin: .6rem 0 .8rem; font: 700 clamp(2.1rem,4.1vw,3.7rem)/1.26 var(--serif); color: #f7f7ea; letter-spacing: .015em; }
.feature .lead { max-width: 41ch; margin: 0; color: #e2e9df; line-height: 1.85; }
.art-credit { justify-self: end; margin: .24rem 0 0; text-align: right; color: var(--muted); font-size: .70rem; }
.reading-grid { display: grid; grid-template-columns: minmax(175px, .72fr) minmax(0,2.7fr); align-items: start; gap: clamp(26px,5vw,80px); margin: 2.8rem 0 4rem; }
.contents { position: sticky; top: 24px; border-top: 2px solid var(--accent); padding-top: .9rem; }
.contents h2 { font-size: 1rem; margin: 0 0 .6rem; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; color: var(--ink-soft); }
.contents a:hover { color: var(--accent); }
.contents .rank-jump { color: var(--accent); font-weight: 700; }
.contents-subhead { margin: 1.1rem 0 .15rem; color: var(--muted); font-size: .77rem; }
.section-title { margin: 0 0 .2rem; font-size: clamp(1.4rem,2.5vw,2rem); line-height: 1.4; }
.group-note { margin: .5rem 0 1.1rem; color: var(--ink-soft); font-size: .93rem; }
.ranking { margin-bottom: 3rem; scroll-margin-top: 1rem; }
.rank-disclosure { margin: .8rem 0 1rem; color: var(--muted); font-size: .82rem; }
.rank-disclosure strong { margin-right: .4rem; color: var(--text); }
.rank-price-note { display: block; margin-top: .2rem; }
.rank-views { min-width: 0; margin: 0; padding: 0; border: 0; }
.rank-views label { display: inline-block; padding: .45rem .85rem; margin: 0 .25rem .8rem 0; border: 1px solid var(--line-soft); border-radius: 4px; color: var(--ink-soft); font-weight: 600; font-size: .84rem; cursor: pointer; }
.rank-views input:checked + label { border-color: var(--accent); background: var(--accent); color: #14201b; }
.rank-views input:focus-visible + label, .rank-views label:hover { outline: 2px solid var(--accent); outline-offset: 2px; }
#rank-all:checked ~ #rank-nonland-table, #rank-nonland:checked ~ #rank-all-table { display: none; }
.rank-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank-table th, .rank-table td { padding: .43rem .65rem; border-bottom: 1px solid var(--line-soft); text-align: end; }
.rank-table thead th { border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .76rem; font-weight: 500; white-space: nowrap; }
.rank-table :is(th, td):first-child { width: 3rem; text-align: center; }
.rank-table :is(th, td):nth-child(2) { text-align: start; }
.rank-table tbody td:first-child { color: var(--ink-soft); font: 600 1.13rem var(--serif); }
.rank-table tbody tr:first-child td:first-child { color: var(--accent); }
.rank-table tbody th { font-weight: 600; }
.rank-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 .85rem; }
.rank-card > a:first-child { display: block; padding: .1rem .15rem; }
.rank-card img { display: block; width: 31px; height: auto; aspect-ratio: 146 / 204; object-fit: contain; border-radius: 2px; }
.rank-card a:hover img { outline: 1px solid var(--accent); }
.rank-card form { margin: 0; }
.rank-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; }
.rank-price { color: var(--text); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.rank-price[data-sold-out] { color: var(--ink-soft); font-weight: 400; }
.rank-offer:has(.rank-alternative:not([hidden])) { flex-wrap: wrap; }
.rank-alternative { flex-basis: 100%; min-width: 0; }
.rank-alternative button { display: inline-flex; align-items: baseline; gap: .35em; max-width: 100%; min-height: 32px; padding: .25rem .3rem; background: transparent; border: 0; color: var(--accent); font: inherit; font-size: .8rem; line-height: 1.45; text-align: start; text-decoration: underline; text-underline-offset: .22em; overflow-wrap: anywhere; }
.rank-alternative small { color: var(--ink-soft); font-size: .67rem; }
.rank-shop { display: inline-flex; align-items: center; gap: .25em; min-height: 36px; padding: .15rem .3rem; border-radius: 2px; background: transparent; color: var(--accent); font-size: .8rem; font-weight: 500; text-decoration: underline; text-underline-offset: .22em; white-space: nowrap; }
.rank-shop:hover { text-decoration-thickness: 2px; }
.rank-shop:has(.rank-language) { flex-direction: column; align-items: start; justify-content: center; gap: 0; }
.rank-language { color: var(--ink-soft); font-size: .72rem; }
.rank-stock { display: grid; justify-items: start; }
.rank-stock button { color: var(--ink-soft); }
.rank-card .rank-english, .rank-pct { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.5; }
.rank-play-toggle { display: flex; align-items: center; gap: .4em; width: fit-content; min-height: 32px; padding: 0 .15em; background: transparent; color: var(--accent); font-size: .83rem; font-weight: 600; white-space: nowrap; }
.rank-play-toggle::before { content: ''; width: .44em; height: .44em; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg); }
.rank-play-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.rank-play-toggle:hover { text-decoration: underline; text-underline-offset: .2em; }
.rank-play-toggle:focus-visible { outline-offset: 2px; }
.rank-table tbody .rank-play-row > td { width: auto; padding: .85rem clamp(.65rem, 2.2vw, 1.35rem); text-align: start; background: #19231f; color: var(--ink-soft); font: inherit; }
.rank-play-row p { max-width: 50em; margin: 0; font-size: .94rem; line-height: 1.85; }
.rank-play-row .rank-play-tip { margin-bottom: .4rem; color: var(--text); font-weight: 600; }
.rank-count { color: var(--accent); font-weight: 700; }
.rank-copies { color: var(--ink-soft); font-size: .87rem; }
.ranking-source { display: inline-block; margin-top: .8rem; color: var(--ink-soft); font-size: .83rem; text-decoration: underline; text-underline-offset: .22rem; }
.entries + .entries { margin-top: 2.6rem; }
.arena-card { display: grid; grid-template-columns: clamp(92px,15vw,160px) minmax(0,1fr); align-items: start; gap: clamp(18px,3vw,36px); padding: 1.75rem 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 20px; }
.card-print { display: block; }
.card-print img { display: block; width: 100%; height: auto; aspect-ratio: 488/680; object-fit: contain; border-radius: 7px; }
.card-print:hover img { outline: 1px solid var(--accent); }
.card-body { min-width: 0; }
.card-body h3 { margin: .1rem 0 .24rem; font: 700 clamp(1.25rem,2.3vw,1.85rem)/1.45 var(--serif); }
.card-meta { margin: 0; color: var(--muted); font-size: .79rem; }
.adoption { margin: .65rem 0; color: var(--accent); font-size: .90rem; font-weight: 700; }
.tactic { margin: .65rem 0; }
.scenario { margin: .8rem 0; padding: .75rem 1rem; background: #19231f; border-left: 2px solid #94ac75; border-radius: 0 3px 3px 0; }
.scenario strong { display: block; margin-bottom: .18rem; color: #c7d7bd; font-size: .78rem; }
.scenario p { margin: 0; }
.scenario p + p { margin-top: .6em; }
.practice { margin: 3rem 0; scroll-margin-top: 1.25rem; }
.practice-case { border-top: 1px solid var(--line-soft); padding: 1.1rem 0 1.5rem; }
.practice-head { display: flex; align-items: center; gap: 1rem; }
.practice-head img { width: 3.3rem; height: auto; border-radius: 4px; }
.practice-head p { margin: 0 0 .2rem; color: var(--accent); font-size: .83rem; }
.practice-head h3 { margin: 0; font: 700 clamp(1.05rem,2vw,1.45rem)/1.5 var(--serif); }
.practice-case > p { margin: .75rem 0; line-height: 1.8; }
.practice-case details { border: 1px solid var(--line-soft); border-radius: 4px; margin-top: .45rem; }
.practice-case summary { padding: .65rem .9rem; min-height: 44px; cursor: pointer; color: var(--text); }
.practice-case summary::marker { color: var(--accent); }
.practice-case summary:hover, .practice-case details[open] summary { background: #1b2924; }
.practice-case summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.practice-case details p { margin: 0; border-top: 1px solid var(--line-soft); padding: .7rem .9rem; line-height: 1.8; color: var(--ink-soft); }
.practice-case details strong { color: var(--text); }
.detail-action, .references a, .arena-page footer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: .22rem; }
.detail-action { display: inline-block; font-size: .85rem; padding: .25rem 0; }
.references { border-top: 1px solid var(--line-soft); margin-top: 1.4rem; padding-top: 1.1rem; color: var(--ink-soft); font-size: .88rem; }
.references h2 { margin: 0 0 .45rem; font-size: 1.1rem; color: var(--text); }
.references p { margin: .6rem 0; }
.references ul { padding-left: 1.3rem; margin: .4rem 0; }
@media(max-width:820px) {
  .reading-grid { display: block; margin-top: 1.5rem; }
  .contents { position: static; margin-bottom: 2rem; }
  .contents ol { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
  .contents a { padding: .3rem 0; }
}
@media(max-width:570px) {
  .rank-table th, .rank-table td { padding: .42rem .25rem; }
  .rank-table thead th { font-size: .7rem; }
  .rank-table :is(th, td):first-child { width: 1.9rem; }
  .rank-card { grid-template-columns: auto minmax(0, 1fr); gap: 0 .5rem; }
  .rank-card > a:first-child { grid-row: span 2; }
  .rank-card > :last-child { grid-column: 2; justify-self: start; }
  .rank-shop { min-height: 32px; padding: .1rem 0; }
  .rank-card .rank-english { display: none; }
  .rank-card { font-size: .86rem; }
  .feature { min-height: 275px; padding: 1.15rem; }
  .feature-art { width: 100%; }
  .feature::before { background: linear-gradient(0deg,#101a16 1%,rgba(16,26,22,.95) 24%,rgba(16,26,22,.74) 52%,rgba(16,26,22,.09) 100%); }
  .feature h1 { font-size: clamp(1.75rem,7.6vw,2.5rem); }
  .feature .lead { font-size: .88rem; }
  .arena-card { grid-template-columns: 84px minmax(0,1fr); gap: .35rem 1rem; padding: 1.3rem 0; }
  .card-body { display: contents; }
  .card-head { align-self: center; }
  .card-body > :not(.card-head) { grid-column: 1/-1; }
  .adoption { font-size: .8rem; }
  .scenario { margin: .2rem 0 .45rem; }
}
@media(max-width:440px) {
  .rank-card > a:first-child { grid-row: 1; }
  .rank-card > :last-child { grid-column: 1 / -1; justify-self: stretch; }
  .rank-offer { flex-wrap: nowrap; column-gap: .3rem; }
  .rank-price { font-size: .8rem; white-space: normal; min-width: 0; overflow-wrap: break-word; }
}
@media(max-width:345px) {
  .rank-offer { flex-wrap: wrap; }
}
