/* UNMAGIC site. Paper ground, ink text, link blue, hologram foil only on the "magic" side.
   Order: tokens, base, frame (header, tabs, footer), parts (headings, bands, cards, pills), then directories: top, channel, characters, songs, minigame, studio, news, doc, traps. */
:root {
  --paper: #f5f2ea; --paper2: #ebe6d8; --ink: #121216; --mute: #5b5a62; --blue: #2b3cff; --red: #e8382f;
  --holo: linear-gradient(115deg, #ff9bd2 0%, #8fe9ff 50%, #fff08a 100%);
  --afi: #ff5fa8; --caro: #7fd9a8; --mai: #e5332a; --satera: #c6f432; --hikari: #ffc21a;
  --cc: var(--blue);
  --hd: 48px; --tab: 56px;
  --f-ja: "Dela Gothic One", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  --f-en: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--hd) + 12px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--f-body); line-height: 1.75; overflow-x: clip;
       padding: var(--hd) 0 calc(var(--tab) + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
main { min-height: 60vh; padding-bottom: 40px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }


/* ---------- header (PC) / top bar (phone) */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd); display: flex; align-items: center; gap: 12px; padding: 0 12px;
      background: var(--ink); color: #fff; }
.hd-logo { flex: none; display: flex; align-items: center; }
.hd-logo img { display: block; height: 22px; width: auto; filter: brightness(0) invert(1); }
.hd-nav { display: none; }
.hd-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hd-sub { display: none; }
.hunt-chip { display: inline-flex; align-items: center; padding: 2px 12px; border: 2px solid #fff; border-radius: 999px; color: #fff; text-decoration: none;
             font-family: var(--f-en); font-size: .95rem; letter-spacing: .04em; line-height: 1.5; white-space: nowrap; }
.hunt-chip:hover { background: #fff; color: var(--ink); }
.tabs { position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tab) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom); background: var(--ink); color: #aeaeb8; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: 10px; font-weight: 700;
          line-height: 1.2; white-space: nowrap; }
.tabs a[aria-current] { color: #fff; box-shadow: inset 0 3px 0 var(--blue); }
.tabs a[aria-current] svg { stroke: #fff; }
@media (min-width: 960px) {
  :root { --hd: 64px; }
  body { padding-bottom: 0; }
  .tabs { display: none; }
  .hd { padding: 0 max(24px, calc((100vw - 1180px) / 2)); gap: 28px; }
  .hd-logo img { height: 30px; }
  .hd-nav { display: flex; gap: 4px; margin: 0 auto; }
  .hd-nav a { padding: 6px 16px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .95rem; white-space: nowrap; }
  .hd-nav a:hover { background: #2a2a31; }
  .hd-nav a[aria-current] { background: #fff; color: var(--ink); }
  .hd-r { margin-left: 0; }
  .hd-sub { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none;
            font-weight: 900; font-size: .92rem; white-space: nowrap; }
}

/* ---------- footer */
.ft { margin-top: 56px; background: var(--ink); color: #d8d8e0; }
.ft .band { margin-top: -14px; }
.ft-in { display: grid; gap: 22px; padding: 30px 0 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ft-logo { grid-column: 1 / -1; display: flex; flex-direction: column; }
.ft-logo b { font-family: var(--f-en); font-size: 2rem; letter-spacing: .06em; color: #fff; font-weight: 400; }
.ft-logo span { font-size: .85rem; }
.ft-col { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.ft-col h2 { font-family: var(--f-en); font-weight: 400; letter-spacing: .12em; color: #8d8d99; font-size: .9rem; }
.ft-col a { text-decoration: none; }
.ft-col a:hover { text-decoration: underline; }
.ft-c { grid-column: 1 / -1; font-size: .78rem; color: #8d8d99; }
@media (min-width: 960px) { .ft-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .ft-logo { grid-column: auto; } .ft-c { grid-column: 1 / -1; } }

/* ---------- parts */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; font-size: .8rem; font-weight: 700; color: var(--mute); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.lead { margin: 14px 0 22px; font-weight: 700; }
/* section heading: tape (JA), small EN label with struck-through MAGIC, huge outlined number */
.sh { position: relative; display: flex; align-items: flex-end; gap: 14px; margin: 34px 0 20px; }
.sh-n { font-family: var(--f-en); font-size: clamp(4.4rem, 17vw, 7.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: .02em; }
.sh-n.big { display: block; font-size: clamp(5rem, 22vw, 9rem); }
.sh-b { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.sh-en { font-family: var(--f-en); font-size: 1rem; letter-spacing: .14em; color: var(--blue); }
.sh-en s { text-decoration-thickness: 3px; text-decoration-color: var(--red); color: var(--mute); }
.sh-ja { display: inline-block; max-width: 100%; margin: 0; font-family: var(--f-ja); font-weight: 400; font-size: clamp(1.25rem, 5.4vw, 2.1rem); line-height: 1.35; }
.sh-ja span { display: inline; padding: .12em .6em; color: #fff; background: var(--blue); box-decoration-break: clone; -webkit-box-decoration-break: clone;
              border-radius: 3px; overflow-wrap: anywhere; }
.sh-ja { transform: rotate(-1.6deg); transform-origin: left bottom; }
.band { position: relative; height: 34px; margin: 26px 0; overflow: hidden; }
.band i { position: absolute; left: -5%; right: -5%; top: 5px; height: 24px; transform: rotate(-1.2deg); background:
          radial-gradient(circle at 50% 0, var(--paper) 0 4px, transparent 4.5px) 0 0 / 16px 8px repeat-x,
          radial-gradient(circle at 50% 100%, var(--paper) 0 4px, transparent 4.5px) 0 100% / 16px 8px repeat-x,
          repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 16px) 50% 50% / 100% 10px no-repeat,
          var(--ink); }
.ft .band i { background:
          radial-gradient(circle at 50% 0, var(--paper) 0 4px, transparent 4.5px) 0 0 / 16px 8px repeat-x, var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 10px 26px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
        font-weight: 900; text-decoration: none; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.4; transition: transform .15s; }
.pill:hover { transform: translateY(-2px); }
.pill.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 14px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: .9rem; }
.chip.theme { background: var(--paper2); }
.chip a { text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.tag { display: inline-block; align-self: flex-start; padding: 0 10px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; line-height: 1.7; border-radius: 3px; }
.tag.blue { background: var(--blue); }
.cd { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 14px;
      text-decoration: none; color: inherit; box-shadow: 4px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
a.cd:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--cc); }
.cd b { font-family: var(--f-ja); font-weight: 400; font-size: 1.15rem; line-height: 1.4; overflow-wrap: anywhere; }
.cd small { font-size: .85rem; color: var(--mute); font-weight: 600; line-height: 1.55; }
.cd::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; background: var(--cc); border-radius: 0 3px 3px 0; }
.cd > * { position: relative; }
.cards, .list, .char-grid, .game-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.faces { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.note-line { font-size: .88rem; color: var(--mute); margin: 0 0 14px; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters button { font: inherit; font-weight: 800; padding: 6px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; min-height: 40px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.face-i { display: block; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper2); object-fit: cover; }
.face-i.s { width: 40px; height: 40px; } .face-i.m { width: 56px; height: 56px; } .face-i.l { width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; margin: 0 auto; }
.shard { position: fixed; z-index: 99; width: 16px; height: 16px; pointer-events: none; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 16px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); padding: 10px 20px; background: var(--ink); color: #fff; border-radius: 999px; font-weight: 900; white-space: nowrap; }
@media (min-width: 960px) { .toast { bottom: 24px; } .sh { margin-top: 48px; } }
@media (min-width: 640px) { .cards, .list, .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards, .list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .char-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- top */
.ticker { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; background: var(--paper2); border-bottom: 2px solid var(--ink); font-size: .85rem; font-weight: 700; }
.ticker-h { flex: none; padding: 0 10px; background: var(--red); color: #fff; font-family: var(--f-en); font-weight: 400; letter-spacing: .1em; border-radius: 3px; }
.ticker-in { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; padding-left: 16px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px); mask-image: linear-gradient(to right, transparent 0, #000 16px); }
.ticker-track { display: inline-flex; animation: tick 34s linear infinite; }
.tk { display: inline-flex; gap: 40px; padding-right: 40px; }
.tk a { text-decoration: none; }
.tk time { font-family: var(--f-en); color: var(--blue); letter-spacing: .06em; }
.ticker-m { flex: none; font-weight: 800; }
@keyframes tick { to { transform: translateX(-50%); } }
.kv { position: relative; overflow: hidden; background: var(--kv-top, #0458fd); container-type: inline-size; }
.kv-pic { display: block; margin-top: 62px; }@media (min-width: 900px) {
  .kv-pic { margin-top: 0; }}
.show-cd .tag, .song-cd .tag, .game-cd .tag { margin-bottom: 2px; }
.face-cd { align-items: center; text-align: center; padding: 14px 6px; }
.face-cd small { font-size: .7rem; }
.face-cd b { font-size: .95rem; }
@media (max-width: 639px) { .faces { gap: 6px; } .face-cd { padding: 10px 2px; } .face-cd b { font-size: .72rem; } .face-cd small { display: none; } .face-cd::before { display: none; } }
.studio-cd { align-items: flex-start; }

/* ---------- channel */
.show { position: relative; display: block; margin: 0 0 22px; padding: 22px 18px 24px 22px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--cc); overflow: hidden; }
.show[hidden] { display: none; }
.show-n { position: absolute; right: 10px; top: -4px; font-family: var(--f-en); font-size: 6.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--cc); opacity: .9; }
.show-in { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.show-t { font-family: var(--f-ja); font-weight: 400; font-size: clamp(1.3rem, 5.4vw, 2rem); line-height: 1.35; padding-right: 3.5rem; overflow-wrap: anywhere; }
.show-f { font-weight: 800; color: var(--blue); }
.show-s b { display: inline-block; margin-right: 8px; padding: 0 8px; background: var(--paper2); border-radius: 3px; font-size: .78rem; }
.show-b { max-width: 40em; }
.casts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.cast { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .88rem; background: var(--paper); }
.guests { font-size: .88rem; color: var(--mute); font-weight: 700; }
@media (min-width: 960px) { .show { padding: 30px 36px 32px 40px; } .show-n { font-size: 11rem; right: 24px; } }

/* ---------- characters */
.char-cd { align-items: center; text-align: center; padding: 0 0 16px; overflow: hidden; }
.char-cd::before { display: none; }
.char-cd .art { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: color-mix(in srgb, var(--cc) 28%, var(--paper)); }
.char-cd .art img { display: block; width: 100%; height: 165%; object-fit: cover; object-position: top; }
.char-cd .en { font-family: var(--f-en); letter-spacing: .1em; color: var(--cc); -webkit-text-stroke: 1px var(--ink); font-size: 1.6rem; line-height: 1; margin-top: 8px; }
.char { display: grid; gap: 8px; padding-top: 8px; grid-template-columns: minmax(0, 1fr); }
.char-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 320px; margin: 0 -8px; background: color-mix(in srgb, var(--cc) 26%, var(--paper)); border-radius: 14px; overflow: hidden; }
.char-en { position: absolute; left: 4px; top: 0; font-family: var(--f-en); font-size: clamp(5rem, 28vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: .85; letter-spacing: .02em; }
.stand.big { position: relative; display: block; width: min(80%, 380px); max-height: min(70vh, 640px); object-fit: contain; object-position: bottom; }
.char-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.char-name { font-family: var(--f-ja); font-weight: 400; font-size: clamp(2.2rem, 10vw, 3.6rem); line-height: 1.15; }
.char-role .chip { background: var(--cc); }
.char-catch { font-family: var(--f-ja); font-size: 1.2rem; line-height: 1.5; }
.box { width: 100%; padding: 14px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.box p + p { margin-top: 10px; }
.box h2 { margin: 0 0 6px; font-family: var(--f-ja); font-weight: 400; font-size: 1.1rem; }
h2.sec { margin: 22px 0 4px; font-family: var(--f-ja); font-weight: 400; font-size: 1.3rem; }
.rows { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.row-a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; font-weight: 800; text-decoration: none; }
.row-a span { flex: 1; }
.row-a small { color: var(--mute); font-weight: 700; }
.row-a i { font-style: normal; font-size: 1.4rem; line-height: 1; }
.row-a:hover { background: var(--cc); }
.pn { grid-column: 1 / -1; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 26px; }
.pn-a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; text-decoration: none; min-width: 0; }
.pn-a.r { justify-content: flex-end; text-align: right; }
.pn-a small { display: block; font-size: .7rem; color: var(--mute); }
.pn-a b { font-family: var(--f-ja); font-weight: 400; font-size: .95rem; }
@media (min-width: 960px) { .char { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 20px; } .char-art { min-height: 620px; margin: 0; } .stand.big { width: min(86%, 480px); } }

/* ---------- songs */
.jk-wrap { display: block; margin: -16px -16px 6px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--paper2); }
.jk-wrap img, .jk.big { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.song-cd::before { display: none; }
.song-top { display: grid; gap: 14px; margin-top: 8px; }
.song-jk .jk.big { border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--cc); }
.song-main .player { margin-top: 0; }
.song-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.neta-btn { position: relative; display: block; margin: 22px 0 6px; padding: 20px 60px 20px 20px; background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); text-decoration: none; }
.neta-btn small { display: block; font-weight: 800; }
.neta-btn strong { display: block; font-family: var(--f-ja); font-weight: 400; font-size: clamp(1.8rem, 8vw, 3rem); line-height: 1.2; }
.neta-btn i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 2.6rem; }
.song .box { margin-top: 16px; }
.more-a { font-weight: 800; }
.credits ul { list-style: none; font-size: .92rem; }
@media (min-width: 640px) { .song-top { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; } .jk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .jk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .song-top { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; } }
.song-cd small { overflow-wrap: anywhere; }
.ph { padding: 14px 0 8px; }
.ph h1 { font-family: var(--f-ja); font-weight: 400; font-size: clamp(1.9rem, 8.5vw, 3.6rem); line-height: 1.2; overflow-wrap: anywhere; }
.cols { display: grid; gap: 4px; }
.col-a .box, .col-b .box, .col-b .vsec { margin-top: 16px; }
@media (min-width: 960px) { .cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 36px; align-items: start; } }
.player { position: relative; margin: 16px 0 0; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 5px 6px 0 var(--cc); }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.player button span { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--blue); border: 4px solid #fff; }
.player button span::after { content: ""; position: absolute; left: 29px; top: 21px; border-style: solid; border-width: 15px 0 15px 26px; border-color: transparent transparent transparent #fff; }
.col-b .pill { margin-top: 14px; }
.flip { all: unset; display: block; box-sizing: border-box; width: 100%; margin: 16px 0; perspective: 900px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flip:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 16px; }
.flip-in { display: grid; transition: transform .25s; transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; min-height: 9.5rem; padding: 20px 18px; border: 2px solid var(--ink); border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.front { color: var(--ink); font-weight: 900; font-size: 1.3rem; line-height: 1.5; background:
         repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 18px, rgba(255, 255, 255, .45) 22px, rgba(255, 255, 255, 0) 28px), var(--holo); }
.front small, .back small { display: block; font-size: .72rem; letter-spacing: .12em; font-weight: 700; }
.front small { margin-top: 8px; }
.back { transform: rotateY(180deg); background: #fff; font-weight: 700; line-height: 1.8; }
.back small { color: #777; border-bottom: 2px dashed #999; padding-bottom: 6px; margin-bottom: 8px; font-family: ui-monospace, Consolas, monospace; }
.back::after { content: ""; height: 24px; margin-top: 10px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 9px); }
.next-card { display: block; position: relative; margin: 30px 0 8px; padding: 20px 56px 20px 20px; background: var(--cc); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); text-decoration: none; }
.next-card small { display: block; font-weight: 800; }
.next-card strong { display: block; font-family: var(--f-ja); font-weight: 400; font-size: clamp(1.4rem, 6.5vw, 2.2rem); line-height: 1.25; overflow-wrap: anywhere; }
.next-card::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 2.6rem; font-weight: 900; }
.prev-link { display: inline-block; margin-top: 10px; font-weight: 800; }

/* ---------- minigame */
.game-cd .game-count { align-self: flex-start; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--f-en); letter-spacing: .06em; }
.game-cd .pill { align-self: flex-start; margin-top: 6px; background: var(--blue); border-color: var(--blue); color: #fff; }
.game-cd.soon { background: repeating-linear-gradient(135deg, #fff 0 14px, var(--paper2) 14px 28px); min-height: 190px; }
.soon-stamp { position: absolute !important; right: 14px; bottom: 14px; padding: 4px 12px; border: 3px solid var(--red); border-radius: 6px; color: var(--red); font-family: var(--f-en); font-size: 1.4rem; line-height: 1.1; letter-spacing: .08em; text-align: center; transform: rotate(-8deg); opacity: .85; }
.ledger { display: grid; gap: 12px; margin-top: 14px; }
.ledger .cd { flex-direction: row; align-items: center; gap: 14px; padding-left: 22px; }
.ledger .no { font-family: var(--f-en); font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.ledger .nm { font-size: 1.25rem; }
.ledger small { margin-left: auto; text-align: right; }
.ledger .found { background: var(--holo); }
.ledger .found small { display: none; }

/* ---------- studio: the still (hotspots come in Phase 7) */
.studio-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.studio-fig { position: relative; margin: 8px 0 16px; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--paper2); }
.studio-main { display: block; width: 100%; height: auto; }
.studio-sign { position: absolute; left: 4%; bottom: 6%; padding: 8px 18px; background: var(--paper); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); text-align: center; }
.studio-sign span { display: block; font-size: .8rem; font-weight: 800; }
.studio-sign b { font-family: var(--f-ja); font-weight: 400; font-size: clamp(1.2rem, 4.6vw, 2.2rem); line-height: 1.2; }

/* ---------- news and plain documents */
.doc { max-width: 720px; padding: 24px 0 8px; }
.doc h1 { font-family: var(--f-ja); font-weight: 400; font-size: 1.9rem; line-height: 1.3; margin: 0 0 4px; }
.doc h2 { margin: 30px 0 6px; padding-left: 10px; border-left: 6px solid var(--blue); font-family: var(--f-ja); font-weight: 400; font-size: 1.1rem; }
.doc p, .doc li { font-size: .97rem; }
.doc ul { list-style: disc; padding-left: 1.4em; }
.doc .date { color: var(--mute); font-size: .85rem; }

/* ---------- traps */
.pr { position: relative; display: block; container-type: inline-size; margin-top: 22px; overflow: hidden; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; }
.pr img { display: block; width: 100%; height: auto; }
.pr-tag { position: absolute; right: 8px; top: 6px; padding: 0 6px; background: rgba(14, 14, 14, .6); color: #fff; font-size: .6rem; line-height: 1.5; border-radius: 4px; }
.pr-text { position: absolute; left: 4%; top: 8%; width: 68%; white-space: nowrap; display: flex; flex-direction: column; gap: 1cqw; text-align: center; font-weight: 900; line-height: 1.12; color: #e60044; -webkit-text-stroke: .9cqw #fff; paint-order: stroke fill; }
.pr-1 { font-size: 11cqw; transform: rotate(-4deg); } .pr-2 { font-size: 6.2cqw; color: var(--ink); } .pr-3 { font-size: 7cqw; } .pr-3 small { display: block; font-size: 4.6cqw; color: var(--ink); }
@media (min-width: 768px) { .pr-text { left: 8%; top: 24%; width: 52%; } .pr-1 { font-size: 8cqw; } .pr-2 { font-size: 4.2cqw; } .pr-3 { font-size: 5cqw; } .pr-3 small { font-size: 3cqw; } }
.pop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; width: min(360px, 100% - 32px); }
.pop-card { padding: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); text-align: center; }
.pop-card p { margin: 0 0 10px; font-weight: 800; }
.pop-card .big { display: block; width: 100%; padding: 14px 8px; font: inherit; font-size: 1.3rem; font-weight: 900; color: #fff; background: var(--blue); border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; }
.pop-card .small { display: inline-block; margin-top: 12px; font-size: .75rem; color: #555; }
.dp-modal { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: rgba(14, 14, 14, .55); }
.dp { width: min(420px, 100%); margin: 0 auto; }
.sheet { padding: 20px; text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.sheet h2 { margin: 0 0 12px; font-size: 1.2rem; }
.fake-btn { display: block; width: 100%; padding: 22px 10px; font: inherit; font-size: 2rem; font-weight: 900; color: #fff; background: linear-gradient(#ff5aa5, #ff1f83); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 #a10052; cursor: pointer; }
.fake-no { display: block; margin: 16px auto 0; padding: 4px; font: inherit; font-size: .62rem; color: #9a9a9a; background: none; border: 0; cursor: pointer; }
.fake-check { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: .9rem; }
.fake-check i { display: grid; place-items: center; width: 20px; height: 20px; background: #ffe600; border: 2px solid var(--ink); font-style: normal; font-weight: 900; font-size: .8rem; }
.fake-cancel { display: block; margin: 8px auto 0; padding: 2px; font: inherit; font-size: .55rem; color: #d4d4d4; background: none; border: 0; cursor: pointer; }
.note { margin: 10px 0 0; font-size: .62rem; color: #888; }
.reveal { padding: 22px 18px; text-align: center; color: #fff; background: var(--ink); border-radius: 14px; }
.reveal p { margin: 0 0 8px; font-weight: 900; font-size: 1.1rem; }
.reveal .r-big { font-size: 1.6rem; color: #ffe600; }
.reveal ul { margin: 12px 0; font-weight: 700; font-size: .95rem; }
.reveal li::before { content: "✔ "; color: #ffe600; }
.reveal .share { display: inline-block; margin-top: 8px; padding: 10px 18px; background: #ffe600; color: var(--ink); border-radius: 999px; font-weight: 900; text-decoration: none; }
.dp-close { display: block; margin: 12px auto 0; padding: 6px 18px; font: inherit; font-weight: 800; background: #fff; border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; }
.dp-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 120px; padding: 16px; cursor: pointer; background: #ffe600; border: 2px solid var(--ink); border-radius: 14px; text-align: center; }
.vsec { margin: 24px 0; }
.vbox { padding: 14px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.vbox h2 { margin: 0 0 8px; font-size: 1.2rem; }
.vbox h2 b { color: #ff9d00; letter-spacing: .05em; }
.rvs { display: grid; gap: 10px; }
.rv { display: flex; gap: 10px; padding: 10px; background: #fff7fb; border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; }
.rv img { flex: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; object-fit: cover; }
.rv .nm { font-weight: 900; font-size: .88rem; overflow-wrap: anywhere; }
.rv .st { margin-left: 6px; color: #ff9d00; font-size: .8rem; }
.rv p { margin: 2px 0 0; font-size: .92rem; line-height: 1.5; }
.vsec .reveal { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ticker-track { display: flex; flex-wrap: wrap; }
  .tk { flex-wrap: wrap; gap: 4px 24px; padding-right: 0; }
  .tk.dup { display: none; }
  .ticker-in { white-space: normal; }
  .ticker { height: auto; min-height: 38px; padding-block: 6px; }
}
.list.jk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jk-grid .cd { padding: 14px 12px 14px; box-shadow: 3px 4px 0 var(--ink); }
.jk-grid .jk-wrap { margin: -14px -12px 6px; }
.jk-grid .cd b { font-size: 1rem; }
.jk-grid .cd small { font-size: .78rem; }
@media (min-width: 640px) { .list.jk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .list.jk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- broadcasts */
.thumb { display: block; margin: -16px -16px 6px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--ink); }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ep-cd::before { display: none; }
.ep-cd .ext { align-self: flex-start; font-weight: 800; font-size: .85rem; }
.show-eps { position: relative; margin-top: 18px; }
.show-eps .ep-list { gap: 14px; }
.ep-player { margin-top: 8px; }
.more-l { margin-top: 14px; }
@media (min-width: 640px) { .show-eps .ep-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ep-h h1 { font-size: clamp(1.3rem, 5.2vw, 2.3rem); line-height: 1.4; }

/* ---------- shorts: vertical 9:16 cards (a scroll-snap row, or a grid on /channel/shorts/) */
.vrow { display: flex; gap: 12px; margin: 6px -4px 14px; padding: 6px 4px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 4px; list-style: none; -webkit-overflow-scrolling: touch; }
.vrow > li { flex: 0 0 148px; scroll-snap-align: start; }
.vrow-2 { overflow: visible; }
.vgrid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px 0 18px; padding: 0; list-style: none; }
.vgrid > li[hidden] { display: none; }
.vc { height: 100%; padding: 12px 12px 14px; box-shadow: 3px 4px 0 var(--ink); }
.vc::before { display: none; }
.vthumb { display: block; aspect-ratio: 9 / 16; margin: -12px -12px 4px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--ink); }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.vc b { font-size: .95rem; line-height: 1.35; }
.vc small { font-size: .75rem; }
.vc .ext { align-self: flex-start; font-weight: 800; font-size: .72rem; }
.vc .tag { font-size: .66rem; }
.shorts-field { margin: 8px 0 26px; }
@media (min-width: 640px) { .vrow > li { flex-basis: 176px; } .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .vrow > li { flex-basis: 196px; } .vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
/* phone: two characters per row, the last one centred */
@media (max-width: 599px) {
  .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .char-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .char-cd .en { font-size: 1.2rem; }
  .char-cd b { font-size: .95rem; }
  .char-cd small { font-size: .7rem; padding: 0 6px; }
}

/* ---------- top 02: long-form list (left) and two shorts (right) in one block */
.ch-top { display: grid; gap: 14px; grid-template-columns: 1fr; }
.ep-stack { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-auto-rows: 1fr; }
.ep-stack > li { display: flex; }
.ep-row { flex: 1; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; box-shadow: 3px 4px 0 var(--ink); }
.ep-row .thumb { flex: 0 0 44%; margin: 0; border-radius: 8px; }
.ep-row .ep-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.ep-row b { font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vpair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.vpair > li { display: flex; }
.vpair .vc { width: 100%; }
@media (min-width: 900px) { .ch-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; } .ep-row b { font-size: 1rem; } }

/* ---------- character top: the same blocks for all five */
.char > .ch-sec, .char > .pn { grid-column: 1 / -1; }
.ch-sec { margin-top: 18px; }
.ch-sec .sec { margin: 0 0 12px; }
.band-box h2 { font-size: 1rem; margin: 0 0 4px; }
.ch-songs { grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); width: 100%; }
.char-info .ch-sec { width: 100%; }
.ch-eps > li.w { flex: 0 0 280px; }
.faces.f4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (max-width: 639px) { .faces.f4 { gap: 6px; } .faces.f4 .face-cd small { display: none; } }

/* ---------- top v2 (phone first): edge-hugging panels, number tabs, diagonal joins, swipers that bleed off the edge */
.tp { position: relative; overflow-x: clip; }main:has(> .tp) + .ft { margin-top: -24px; clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); }
main:has(> .tp) + .ft .band { display: none; }.side-l .tp-word { right: -60px; } .side-r .tp-word { left: -60px; }.side-l .tp-num { left: 8px; } .side-r .tp-num { right: 8px; }.side-l .tp-h { margin-left: 98px; } .side-r .tp-h { margin-right: 98px; padding-left: 12px; }.side-r .tp-h span { transform: rotate(2.5deg); }.side-l .tp-panel { margin-left: 36px; border-right: 0; border-radius: 18px 0 0 18px; }
.side-r .tp-panel { margin-right: 36px; padding: 18px 12px 18px 12px; border-left: 0; border-radius: 0 18px 18px 0; }.side-l .tp-more { right: 14px; }/* 03 */
.tp-character .tp-panel { padding: 0; background: none; border: 0; box-shadow: none; margin-top: 10px; }.tp-cp { display: none; position: absolute; inset: 0; }
.tp-cp.is-on { display: block; }.tp-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding: 0 8px 0 0; list-style: none; }/* 04 */
.tp-music .tp-panel { padding: 0; background: none; border: 0; box-shadow: none; margin: 18px 0 0; }.jks { display: flex; margin: 0; padding: 20px 14px 26px 44px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.jks li { flex: 0 0 132px; scroll-snap-align: center; margin-right: 8px; }
.jks li:nth-child(1) { transform: rotate(-4deg); margin-top: 14px; }
.jks li:nth-child(2) { transform: rotate(3deg); margin-left: 6px; }
.jks li:nth-child(3) { transform: rotate(-2deg); margin-top: 22px; margin-left: -2px; }
.jks li:nth-child(4) { transform: rotate(4deg); margin-left: 10px; }
.jks li:nth-child(5) { transform: rotate(-3deg); margin-top: 10px; }/* 05 */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }/* 06 */
.tp-studio .tp-panel { padding: 0; background: none; border: 0; box-shadow: none; margin: 18px 0 0; }.tape { position: absolute; width: 70px; height: 22px; background: rgba(255, 226, 120, .88); border: 1px solid rgba(0, 0, 0, .12); }
.tape.t1 { left: -22px; top: -6px; transform: rotate(-35deg); }
.tape.t2 { right: -22px; bottom: -4px; transform: rotate(-35deg); }/* floating subscribe button and the entrance */
.fab { position: fixed; right: 12px; bottom: calc(var(--tab) + 14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 76px; height: 76px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; color: #fff; font-size: .7rem; font-weight: 900; line-height: 1.15; text-align: center; text-decoration: none; box-shadow: 0 4px 0 var(--ink); transition: opacity .25s, transform .25s; }
.fab.off { opacity: 0; transform: scale(.8); pointer-events: none; }
.ent { transition: opacity .6s ease, transform .6s ease; }
.ent0 { opacity: 0; transform: translateX(42px); }
.side-r .ent0 { transform: translateX(-42px); }
.ent0.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ent, .fab { transition: none; } .ent0 { opacity: 1; transform: none; } }
@media (min-width: 900px) {  .side-l .tp-word { right: -40px; } .side-r .tp-word { left: -40px; }  .side-l .tp-num { left: 24px; } .side-r .tp-num { right: 24px; }
  .side-l .tp-h { margin-left: 190px; } .side-r .tp-h { margin-right: 190px; }  .side-l .tp-panel { margin-left: 120px; margin-right: -24px; } .side-r .tp-panel { margin-right: 120px; margin-left: -24px; }  .tp-faces { max-width: 640px; gap: 14px; margin-top: 22px; }  .jks li { flex-basis: 190px; } .jks { padding-left: 120px; }  .fab { bottom: 24px; right: 24px; width: 92px; height: 92px; font-size: .82rem; }
}.side-l .tp-more { right: 14px; }.tp-faces { padding-left: 8px; margin-bottom: 32px; }

/* ---------- top v2 fixes: equal-height channel row, bigger character block, games with pictures */
.tp-channel .vrow { align-items: stretch; }/* 03: tall art breaking out of the panel */
.tp-stage { height: 344px; }/* 05: pictures on the game cards */
.gm-pic { position: relative; display: block; aspect-ratio: 4 / 3; margin: -12px -12px 6px; overflow: hidden; border-radius: 12px 12px 0 0; background: var(--ink); }.mag { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); background: rgba(255, 255, 255, .15); }
.mag::after { content: ""; position: absolute; left: 17px; top: 19px; width: 14px; height: 5px; border-radius: 3px; background: #fff; border: 1px solid var(--ink); transform: rotate(45deg); transform-origin: left center; }

/* ---------- loops: videos in card windows, the pinned music background, the song hero frame */
.loop { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.mv-v { position: absolute; inset: 0; }
.pin-in { position: relative; }.pin-in > .tp-word { z-index: 1; }
.pin-in > .tp-in { z-index: 2; }.pin-on.tp-music { height: 250vh; height: 250svh; }
.pin-on .pin-in { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 74px; }
.pin-on .pin-in > .tp-in { width: 100%; flex: 0 0 auto; }
.pin-on .jks { overflow: visible; scroll-snap-type: none; will-change: transform; }
.pin-on .jks li { scroll-snap-align: none; }
.song-jk.has-loop { position: relative; padding-bottom: 20%; }
.vf { position: relative; width: 94%; margin-left: 6%; aspect-ratio: 16 / 9; transform: rotate(3deg); border: 3px solid var(--ink); border-radius: 6px; background: var(--ink); box-shadow: 5px 6px 0 var(--cc); }
.vf .loop { border-radius: 3px; }
.vf .tape.t1 { left: auto; right: -20px; top: -8px; transform: rotate(35deg); }
.vf .tape.t2 { display: none; }
.song-jk.has-loop .jk.big { position: absolute; left: 0; bottom: 0; width: 50%; height: auto; z-index: 2; transform: rotate(-3deg); }
@media (min-width: 900px) {
  .pin-on .pin-in { padding: 90px 0 40px; }
  .pin-on .jks li { flex-basis: 270px; }
  .pin-on .jks { padding-left: 120px; }
}
