/* The v3 look for every page (loaded after site.css): painted paper ground, a dark page-heading band with a torn edge,
   sharp cards and skewed buttons with hard shadows, the character roster and the character scene hero. */
:root { --torn: polygon(0% 100%, 0.0% 35%, 1.0% 63%, 1.8% 53%, 3.2% 13%, 4.9% 11%, 6.4% 14%, 7.3% 44%, 9.6% 18%, 10.7% 61%, 13.2% 56%, 14.6% 90%, 15.4% 80%, 16.7% 20%, 17.6% 34%, 19.8% 23%, 21.6% 62%, 23.1% 54%, 23.9% 13%, 25.0% 65%, 26.5% 34%, 28.3% 46%, 29.6% 75%, 31.6% 29%, 33.4% 52%, 35.7% 69%, 37.0% 90%, 37.9% 43%, 40.1% 21%, 41.7% 11%, 43.7% 72%, 45.4% 82%, 46.7% 66%, 48.6% 57%, 50.1% 79%, 52.6% 48%, 54.6% 13%, 56.6% 62%, 59.2% 77%, 60.4% 40%, 62.4% 10%, 64.0% 22%, 64.9% 13%, 67.1% 19%, 68.2% 41%, 70.6% 15%, 72.2% 54%, 74.5% 77%, 76.9% 31%, 78.4% 38%, 80.7% 88%, 81.7% 23%, 82.9% 28%, 84.5% 57%, 85.7% 8%, 87.2% 39%, 89.0% 88%, 91.0% 51%, 92.9% 65%, 93.7% 84%, 95.8% 81%, 98.1% 41%, 99.5% 17%, 100% 40%, 100% 100%); --yl: #fff04a; --dk: #141418; }
body { background: #f4efe4; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #f4efe4 url(/assets/img/ground_paper_1536.webp?v=858d814536) center / cover; }
body:has(.t3)::before { display: none; }

/* breadcrumbs: a dark strip under the header */
nav[aria-label="パンくず"] { background: var(--dk); box-shadow: 0 0 0 100vmax var(--dk); clip-path: inset(0 -100vmax); }
.crumbs { margin: 0; padding: 9px 0 7px; color: #a9a8b3; }
.crumbs a { color: #fff; }

/* page heading band */
.pg3 { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(50% - 50vw) 30px; padding: 30px max(16px, calc(50vw - 590px)) 50px; background: var(--dk) url(/assets/img/ground_dark_1536.webp?v=472f7b9ff4) center / cover; color: #fff; }
.pg3::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: #f4efe4; clip-path: var(--torn); }
.pg3-w { position: absolute; z-index: -1; right: -1vw; top: 50%; translate: 0 -50%; font: 400 clamp(6rem, 30vw, 17rem)/0.8 var(--f-en); white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(255, 240, 74, .4); pointer-events: none; }
.pg3-in { display: grid; justify-items: start; gap: 22px; }
.pg3-en { font: 400 1rem/1 var(--f-en); letter-spacing: .34em; color: var(--yl); }
.pg3-ja { margin: 0; font: 400 clamp(1.6rem, 7.4vw, 3.4rem)/1.2 var(--f-ja); transform: rotate(-2.5deg) skewX(-6deg); transform-origin: left bottom; }
.pg3-ja span { display: inline; padding: .1em .5em .16em; background: var(--yl); color: #121216; box-shadow: 7px 7px 0 var(--cc); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pg3 + .lead, .wrap > .lead { font-size: 1.02rem; }

/* section headings inside pages */
.sh-ja span { border-radius: 0; background: var(--ink); box-shadow: 5px 5px 0 var(--cc); }
.sh-ja { transform: rotate(-2deg) skewX(-6deg); }
h2.sec { display: inline-block; margin: 30px 0 12px; padding: 4px 16px 6px; background: var(--ink); color: #fff; font-size: 1.25rem; transform: rotate(-1.5deg) skewX(-6deg); box-shadow: 5px 5px 0 var(--cc); }

/* cards, buttons, chips, boxes */
.cd { border-radius: 4px; border-width: 3px; box-shadow: 6px 6px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
a.cd:hover { transform: translate(-2px, -3px); box-shadow: 9px 10px 0 var(--ink); }
.pill { border-radius: 0; border-width: 2px; transform: skewX(-8deg); box-shadow: 4px 4px 0 var(--ink); font-family: var(--f-ja); font-weight: 400; }
.pill:hover { transform: skewX(-8deg) translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pill.blue { box-shadow: 4px 4px 0 var(--ink); }
.chip { border-radius: 0; transform: skewX(-8deg); }
.box { border-radius: 4px; border-width: 3px; box-shadow: 6px 6px 0 rgba(18, 18, 22, .92); }
.ft { background: var(--dk) url(/assets/img/ground_dark_1536.webp?v=472f7b9ff4) center / cover; }

/* ---------- /characters/: five equal strips, each one the character's own scene */
.roster { display: grid; gap: 5px; margin: 0; padding: 5px 0; background: var(--dk); }
.rs { position: relative; display: block; height: 30svh; min-height: 200px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--ac); }
.rs-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.rs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--ac) 32%, rgba(11, 11, 16, .82)) 0, transparent 62%); }
.rs-en { position: absolute; z-index: 1; right: 2vw; bottom: -2vw; font: 400 26vw/0.8 var(--f-en); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .6); mix-blend-mode: overlay; }
.rs-t { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: grid; justify-items: start; gap: 4px; width: 50vw; }
.rs-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .35)); }
.rs-t small { padding: 2px 10px; background: #121216; color: #fff; font-size: .74rem; font-weight: 800; transform: skewX(-8deg); }
.rs:hover .rs-pic, .rs:focus-visible .rs-pic { transform: scale(1.07); }

/* ---------- /characters/<slug>/: the scene as the page hero */
.chh { position: relative; isolation: isolate; overflow: hidden; height: min(74svh, 520px); min-height: 0; margin: 0; background: var(--ac); color: #fff; }
.chh-pic, .chh-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.chh-pic img { object-fit: cover; object-position: 50% 0; }
.chh::before { content: ""; position: absolute; z-index: 1; inset: 50% 0 0; background: linear-gradient(to top, color-mix(in srgb, var(--ac) 30%, #0b0b10) 20%, color-mix(in srgb, var(--ac) 40%, rgba(11, 11, 16, .6)) 55%, transparent); }
.chh::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; height: 22px; background: #f4efe4; clip-path: var(--torn); }
.chh .char-en { position: absolute; z-index: 1; inset: auto auto 8% -1vw; font: 400 32vw/0.8 var(--f-en); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .5); mix-blend-mode: overlay; white-space: nowrap; }
.chh-t { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 40px; display: grid; justify-items: start; gap: 8px; }
.chh .char-name { margin: 0 0 -4px -6px; width: min(62vw, 420px); font-size: 0; line-height: 0; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); animation: pop3 .6s .2s cubic-bezier(.2, 1.5, .4, 1) both; }
.chh .char-name img { display: block; width: 100%; height: auto; }
.chh .char-role, .chh .char-catch { margin: 0; }
.chh .char-role span { display: inline-block; padding: 2px 12px; background: #121216; color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .06em; transform: skewX(-8deg); }
.chh .char-catch { font: 400 clamp(1.05rem, 5vw, 1.6rem)/1.35 var(--f-ja); color: #121216; }
.chh .char-catch span { padding: 2px 10px 4px; background: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes pop3 { from { opacity: 0; scale: .7; rotate: -6deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
.chh .chh-pic img { animation: zoom3 1.4s cubic-bezier(.2, .7, .2, 1) both, breathe3 14s ease-in-out 1.4s infinite alternate; }
@keyframes zoom3 { from { transform: scale(1.1); } to { transform: none; } }
.char { display: block; padding-top: 26px; }

/* ---------- /songs/<slug>/: the title band */
.song .ph { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw) 28px; padding: 26px max(16px, calc(50vw - 590px)) 46px; background: var(--dk) url(/assets/img/ground_dark_1536.webp?v=472f7b9ff4) center / cover; color: #fff; }
.song .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: #f4efe4; clip-path: var(--torn); }
.song .ph h1 { display: inline-block; margin: 0 0 14px; padding: .06em .4em .12em; background: #fff; color: #121216; font: 400 clamp(2rem, 9vw, 4.4rem)/1.15 var(--f-ja); transform: rotate(-2deg) skewX(-6deg); transform-origin: left bottom; box-shadow: 8px 8px 0 var(--cc); }
.song .ph .chip { background: #121216; color: #fff; border-color: #fff; }
.song .ph .chip a { color: #fff; }
.song .ph .chip.theme { background: var(--yl); color: #121216; border-color: var(--yl); }

@media (min-width: 900px) {
  .pg3 { padding-top: 54px; padding-bottom: 76px; margin-bottom: 40px; }
  .pg3::after, .chh::after, .song .ph::after { height: 34px; }
  .pg3-en { font-size: 1.3rem; }
  .roster { display: flex; gap: 8px; padding: 10px 4vw 10px; height: calc(100svh - var(--hd) - 150px); min-height: 520px; overflow: hidden; }
  .roster li { flex: 1 1 0; min-width: 0; transition: flex-grow .45s cubic-bezier(.2, .7, .2, 1); transform: skewX(-7deg); overflow: hidden; }
  .roster li:hover, .roster li:focus-within { flex-grow: 2.4; }
  .rs { height: 100%; }
  .rs-pic { inset: 0 -22%; width: 144%; transform: skewX(7deg); object-position: 50% 10%; }
  .rs:hover .rs-pic, .rs:focus-visible .rs-pic { transform: skewX(7deg) scale(1.05); }
  .rs::after { background: linear-gradient(to top, color-mix(in srgb, var(--ac) 32%, rgba(11, 11, 16, .86)) 0, transparent 46%); }
  .rs-en { right: auto; left: 6%; bottom: 30%; font-size: 9vw; transform: skewX(7deg) rotate(-90deg); transform-origin: left bottom; translate: 100% 0; }
  .rs-t { left: 12%; right: 8%; bottom: 26px; width: auto; transform: skewX(7deg); }
  .rs-logo { max-width: 260px; }
  .rs-t small { font-size: .8rem; }
  .chh { height: calc(100svh - var(--hd) - 34px); max-height: 860px; min-height: 520px; }
  .chh-pic img { object-position: 50% 22%; }
  .chh::before { inset: 0 45% 0 0; background: linear-gradient(to right, color-mix(in srgb, var(--ac) 28%, rgba(11, 11, 16, .78)) 0, color-mix(in srgb, var(--ac) 30%, rgba(11, 11, 16, .35)) 55%, transparent); }
  .chh .char-en { font-size: 22vw; left: 2vw; bottom: 4%; -webkit-text-stroke-width: 3px; }
  .chh-t { left: max(40px, calc(50vw - 590px)); right: auto; bottom: auto; top: 50%; translate: 0 -46%; width: min(46vw, 640px); gap: 14px; }
  .chh .char-name { width: min(40vw, 580px); margin-left: -12px; }
  .chh .char-role span { font-size: 1.05rem; padding: 4px 16px; }
  .chh .char-catch { font-size: clamp(1.5rem, 2.4vw, 2.4rem); line-height: 1.5; }
  .chh .char-catch span { padding: 4px 14px 6px; }
  .song .ph { padding-top: 44px; padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .chh .char-name, .chh .chh-pic img, .kv3 .kv-pic::after, .cs-pic::after, .chh-pic::after { animation: none; } .fx { display: none; } }

/* ---------- motion illusion on the still scenes: the picture breathes, a light crosses it, pieces drift in front, and on a PC the
   layers shift against each other with the pointer (fx3.js sets --px / --py from -1 to 1 on [data-px]) */
@keyframes breathe3 { from { transform: none; } to { transform: scale(1.055) translate(-.8%, -.6%); } }
[data-px] .kv-pic img, [data-px] .cs-pic img, [data-px] .chh-pic img, .chh[data-px] .chh-pic img { scale: 1.05; translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -11px); transition: translate .3s ease-out; }
[data-px] .cs-en, [data-px] .char-en { translate: calc(var(--px, 0) * 34px) calc(var(--py, 0) * 14px); transition: translate .3s ease-out; }
.kv3 .kv-pic::after, .cs-pic::after, .chh-pic::after { content: ""; position: absolute; inset: -20% -70%; background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .34) 50%, transparent 56%); mix-blend-mode: soft-light; pointer-events: none; animation: shine3 7.5s ease-in-out infinite; }
@keyframes shine3 { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; container-type: size; translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * 20px); transition: translate .3s ease-out; }
.cs:not(.is-on) .fx i { animation-play-state: paused; }
.fx i { position: absolute; left: calc(var(--x) * 1%); width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); background: var(--c); opacity: var(--o); filter: blur(calc(var(--b) * 1px)); animation: calc(var(--d) * 1s) linear calc(var(--t) * -1s) infinite; will-change: transform; }
.fx i.b { border-radius: 50%; }
.fx i.p { height: calc(var(--s) * .62px); border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.fx i.h { clip-path: polygon(50% 100%, 6% 55%, 0 32%, 8% 12%, 26% 4%, 42% 10%, 50% 24%, 58% 10%, 74% 4%, 92% 12%, 100% 32%, 94% 55%); }
.fx-rise i { top: 104%; animation-name: rise3; }
.fx-fall i { top: -12%; animation-name: fall3; }
.fx-fly i { left: 104%; top: calc(var(--x) * 1%); animation-name: fly3; }
@keyframes rise3 { to { transform: translate3d(calc(var(--w) * 1px), -125cqh, 0) rotate(calc(var(--r) * .25deg)); } }
@keyframes fall3 { to { transform: translate3d(calc(var(--w) * 1px), 130cqh, 0) rotateX(calc(var(--r) * 3deg)) rotate(calc(var(--r) * 1deg)); } }
@keyframes fly3 { to { transform: translate3d(-125cqw, calc(var(--w) * 1px), 0) rotateY(calc(var(--r) * 2deg)) rotate(calc(var(--r) * .2deg)); } }

/* ---------- someone keeps watching: the character looks over the bottom edge; three painted glances are swapped (fx3.js) */
.peeks { position: fixed; z-index: 40; right: 8px; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); pointer-events: none; }
body:has(.t3) .peeks { bottom: calc(var(--tab) + 44px + env(safe-area-inset-bottom)); }
.peek { position: relative; display: block; width: 118px; filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, .25)); animation: peek3 .7s 1.4s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.peek img { display: block; width: 100%; height: auto; }
.peek .g-l, .peek .g-r { position: absolute; inset: 0; opacity: 0; }
.peek[data-g="l"] .g-l, .peek[data-g="r"] .g-r { opacity: 1; }
@keyframes peek3 { from { transform: translateY(110%); } }
@media (max-width: 899px) { .stage3 .peeks { display: none; } }
@media (min-width: 900px) {
  .peeks { right: auto; left: 50%; translate: -50% 0; bottom: 0; }
  body:has(.t3) .peeks { bottom: 64px; }
  .peek { width: 230px; pointer-events: auto; transition: transform .2s; }
  .peek:hover { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .peek { animation: none; } }

/* footer: SNS with marks */
.ft-col .sns { display: inline-flex; align-items: center; gap: 10px; padding: 3px 0; color: #fff; font-weight: 800; }
.ft-col .sns svg { flex: none; width: 34px; height: 34px; padding: 6px; background: #fff; color: #141418; transform: skewX(-8deg); box-shadow: 3px 3px 0 var(--yl); transition: transform .15s, box-shadow .15s; }
.ft-col .sns:hover { text-decoration: none; }
.ft-col .sns:hover svg { transform: skewX(-8deg) translate(-2px, -2px); box-shadow: 5px 5px 0 var(--yl); }

/* ---------- article cards (every page but the top): no box. A picture with two cut corners on a block of the character colour, then the date,
   the kind and the title straight on the page (PO 2026-11-20 「ゼンゼロの記事カードっぽく。ブログカード感を消そうぜ」) */
:is(.ep-cd, .song-cd, .vc):not(.t3 *) { --cut: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; align-content: start;
  height: auto; padding: 0; gap: 0 10px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.vc:not(.t3 *) { --cut: 16px; }
:is(.ep-cd, .song-cd, .vc):not(.t3 *)::before { display: none; }
:is(.ep-cd, .song-cd, .vc):not(.t3 *) > :is(.thumb, .jk-wrap, .vthumb) { grid-column: 1 / -1; position: relative; display: block; margin: 0 0 12px; padding: 0 7px 7px 0; aspect-ratio: auto; overflow: visible; background: none; border: 0; border-radius: 0; }
:is(.ep-cd, .song-cd, .vc):not(.t3 *) > :is(.thumb, .jk-wrap, .vthumb)::before { content: ""; position: absolute; inset: 7px 0 0 7px; background: var(--cc);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); transition: inset .2s; }
:is(.ep-cd, .song-cd, .vc):not(.t3 *) > :is(.thumb, .jk-wrap, .vthumb) img { position: relative; display: block; width: 100%; height: auto; object-fit: cover; background: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); transition: transform .2s; }
.vc:not(.t3 *) > .vthumb img { aspect-ratio: 9 / 16; }
/* play mark on a video */
:is(.ep-cd, .vc):not(.t3 *) > :is(.thumb, .vthumb)::after { content: "\25B6\FE0E"; position: absolute; z-index: 1; right: 17px; bottom: 17px; width: 34px; height: 34px; display: grid; place-items: center; padding-left: 3px;
  border-radius: 50%; background: var(--ink); color: var(--yl); font-size: 13px; line-height: 1; transition: transform .2s, background .2s, color .2s; }
.vc:not(.t3 *) > .vthumb::after { right: 14px; bottom: 14px; width: 28px; height: 28px; font-size: 11px; }
/* the date and the kind in one line, then the title */
:is(.ep-cd, .vc):not(.t3 *) > small { grid-row: 2; grid-column: 1; font-family: var(--f-en); font-weight: 400; font-size: 1.05rem; letter-spacing: .06em; line-height: 1.3; color: var(--ink); }
:is(.ep-cd, .vc):not(.t3 *) > .tag { grid-row: 2; grid-column: 2; justify-self: start; }
.song-cd:not(.t3 *) > .tag { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
:is(.ep-cd, .song-cd, .vc):not(.t3 *) > .tag { margin: 0; padding: 1px 18px 2px 12px; border-radius: 999px 0 0 999px; background: var(--ink); color: var(--yl); font-size: .72rem; letter-spacing: .06em; line-height: 1.7;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
:is(.ep-cd, .song-cd, .vc):not(.t3 *) > b { grid-row: 3; grid-column: 1 / -1; margin-top: 8px; font-size: 1.12rem; line-height: 1.45; text-decoration: underline transparent 3px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.song-cd:not(.t3 *) > small { grid-row: 4; grid-column: 1 / -1; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc:not(.t3 *) > small { font-size: .86rem; }
.vc:not(.t3 *) > .tag { font-size: .62rem; padding: 1px 14px 1px 9px; }
.vc:not(.t3 *) > b { font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  a:is(.ep-cd, .song-cd, .vc):not(.t3 *):hover { transform: none; box-shadow: none; }
  a:is(.ep-cd, .song-cd, .vc):not(.t3 *):hover > :is(.thumb, .jk-wrap, .vthumb) img { transform: translate(-5px, -5px); }
  a:is(.ep-cd, .song-cd, .vc):not(.t3 *):hover > :is(.thumb, .jk-wrap, .vthumb)::before { inset: 11px -4px -4px 11px; }
  a:is(.ep-cd, .vc):not(.t3 *):hover > :is(.thumb, .vthumb)::after { transform: scale(1.2); background: var(--yl); color: var(--ink); }
  a:is(.ep-cd, .song-cd, .vc):not(.t3 *):hover > b { text-decoration-color: var(--cc); }
}
a:is(.ep-cd, .song-cd, .vc):not(.t3 *):active > :is(.thumb, .jk-wrap, .vthumb) img { transform: translate(4px, 4px); }
/* the boxes that stay boxes (games, the hunt list, the other characters): the shadow takes the colour */
.cd:not(.t3 *):not(.ep-cd, .song-cd, .vc) { box-shadow: 6px 6px 0 var(--cc, var(--ink)), 6px 6px 0 3px var(--ink); }
/* cards come in one after another (fx3.js adds .fx3 and .in) */
.fx3 .cd:not(.t3 *):not(.in) { opacity: 0; transform: translateY(26px); }
.fx3 .cd:not(.t3 *) { transition: opacity .45s, transform .5s cubic-bezier(.2, 1.3, .4, 1), box-shadow .15s; }
@media (prefers-reduced-motion: reduce) { .fx3 .cd:not(.t3 *):not(.in) { opacity: 1; transform: none; } .cd:not(.t3 *) img { transition: none; } }

/* ---------- /news/: the newest is large, the rest follow in a grid */
.nws { display: grid; gap: 34px 22px; margin: 18px 0 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
.nw-top:not(.t3 *) > small { font-size: 1.5rem; }
.nw-top:not(.t3 *) > b { font-size: 1.45rem; }
.nw .tag.new { grid-row: 2; grid-column: 2; justify-self: start; margin-left: 62px; background: var(--red); color: #fff; }
@media (min-width: 640px) { .nws { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .nws { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
  .nws > li:first-child { grid-column: 1 / -1; }
  .nw-top:not(.t3 *) { --cut: 34px; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 14px; }
  .nw-top:not(.t3 *) > .thumb { grid-column: 1; grid-row: 1 / -1; margin: 0 22px 0 0; }
  .nw-top:not(.t3 *) > small { grid-column: 2; grid-row: 2; font-size: 2.6rem; }
  .nw-top:not(.t3 *) > .tag { grid-column: 3; grid-row: 2; }
  .nw-top:not(.t3 *) > b { grid-column: 2 / -1; grid-row: 3; font-size: 2.1rem; margin-top: 14px; }
}

/* ---------- the player window: a video opens on the page instead of leaving for YouTube (site.js setupWatch) */
.tv { width: min(92vw, 1100px); max-width: none; max-height: none; padding: 0; border: 0; background: none; overflow: visible; color: #fff; }
.tv.v { width: min(84vw, calc(74svh * 9 / 16)); }
.tv::backdrop { background: rgba(10, 10, 14, .9); }
.tv-in { aspect-ratio: 16 / 9; background: #000; border: 3px solid #fff; box-shadow: 8px 8px 0 var(--yl); }
.tv.v .tv-in { aspect-ratio: 9 / 16; }
.tv-in iframe { display: block; width: 100%; height: 100%; border: 0; }
.tv-x { position: absolute; right: 0; top: -52px; width: 44px; height: 44px; padding: 0; border: 0; background: var(--yl); color: #121216; font: 900 1.5rem/1 sans-serif; cursor: pointer; transform: skewX(-8deg); }
.tv-yt { display: inline-block; margin-top: 18px; color: #fff; font-weight: 800; font-size: .9rem; }

/* cards in one row end at the same line */
:is(.cards, .list, .jk-grid, .game-grid, .nws) > li { display: grid; }

/* ---------- header and tabs: the search button, six tabs with home first (PO 2026-11-20) */
.hd-s { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.hd-s:hover { background: #fff; color: var(--ink); }
.hd-logo { padding: 8px 0; }
.tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tabs a { font-size: 9.5px; letter-spacing: 0; }
@media (min-width: 900px) and (max-width: 1099px) { .hd-nav a { padding: 6px 10px; font-size: .88rem; } }

/* ---------- search window (site.js setupSearch): the list is filtered in the browser */
.sr { width: min(94vw, 640px); max-width: none; max-height: none; margin: max(10px, 7svh) auto auto; padding: 0; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--yl); }
.sr::backdrop { background: rgba(10, 10, 14, .82); }
.sr-t { display: flex; gap: 8px; padding: 12px; background: var(--ink); }
.sr-q { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: 0; background: #fff; color: var(--ink); font: 800 1.1rem/1 var(--f-body, inherit); -webkit-appearance: none; appearance: none; }
.sr-q:focus-visible { outline: 3px solid var(--yl); outline-offset: 0; }
.sr-x { flex: none; width: 48px; height: 48px; padding: 0; border: 0; background: var(--yl); color: var(--ink); font: 900 1.5rem/1 sans-serif; cursor: pointer; }
.sr-n { margin: 0; padding: 10px 14px 6px; font-size: .82rem; font-weight: 800; color: var(--mute); }
.sr-l { max-height: min(62svh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 10px; }
.sr-i { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-top: 2px solid var(--paper2); color: inherit; text-decoration: none; }
.sr-i:hover, .sr-i:focus-visible { background: var(--paper2); text-decoration: none; }
.sr-i img, .sr-i i { flex: none; width: 56px; height: 56px; object-fit: cover; background: var(--ink); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.sr-i span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-i small { font-size: .72rem; font-weight: 800; color: var(--mute); }
.sr-i b { font-family: var(--f-ja); font-weight: 400; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }

/* ---------- calmer labels: filters in one line that scrolls sideways, flat chips, no date on the small vertical cards */
.filters { flex-wrap: nowrap; gap: 6px; margin: 0 -16px 16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; min-height: 36px; padding: 3px 14px; font-size: .88rem; white-space: nowrap; }
.chip { transform: none; }
.vc:not(.t3 *) > small { display: none; }
.vc:not(.t3 *) > .tag { grid-column: 1 / -1; }
.show-f { font-size: .92rem; }
