/* swap reskin B · #kingdom + #team in the app's language. OWNER: worker B. Every rule scoped under #kingdom / #team.
   #team is a new section (swap/sections/team.html): the app's officer poster card ×4 — a hairline-framed cell, mono
   counter, the officer's halftone plate bleeding off the left, the sticker, the giant black name sitting on the bottom
   hairline, the vertical English name, a needle star at the bottom crossing; under it the card's own copy as app chat
   (grey bubble → acid bubble with an ink border). #kingdom keeps its layout; the glass becomes type + hairlines.
   No capsules, no tilt, no wobble, no glass, no glow, no sparkles; text containers radius ≤ 12px. */
:is(#team, #kingdom) {
  --pt-ink: #141414; --pt-ink2: #4b4b4b; --pt-mute: #8a8a8a; --pt-mist: #f1f1f2; --pt-paper: #fff;
  --pt-acid: #eeff2d; --pt-cobalt: #1f2bff; --pt-orange: #ff8200; --pt-pink: #ff4f9a;
  --pt-lw: 1.5px; --pt-line: var(--pt-lw) solid var(--pt-ink);
  --pt-cjk: "PingFang TC", "Noto Sans TC", "Hiragino Sans", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --pt-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --pt-out: cubic-bezier(.2, .9, .2, 1);
}
@media (min-resolution: 2.5dppx) { :is(#team, #kingdom) { --pt-lw: 1.334px; } }
:root[data-theme="dark"] :is(#team, #kingdom) { --pt-ink: #f2f2f5; --pt-ink2: #c9c9d4; --pt-mute: #8b8b99; --pt-mist: #24242c; --pt-paper: #0b0b10; }

/* ───────────────────────────── TEAM ───────────────────────────── */
#team.pt { padding: 40px 0 0; text-align: left; }
#team.pt::after { content: none; }
#team .pt__title {
  position: relative; z-index: 2; margin: 0 var(--gut, 20px); text-align: center; color: var(--pt-ink);
  font: 900 clamp(36px, 10.4vw, 46px)/1.04 var(--pt-cjk); letter-spacing: -.04em;
  -webkit-text-stroke: .018em currentColor; paint-order: stroke fill;
}
#team .pt__title:lang(en) { letter-spacing: -.03em; }
#team .pt__stage { position: relative; z-index: 2; width: auto; margin: 28px 0 0; padding: 0; }
#team .pt__list { margin: 0; padding: 0; list-style: none; border-top: var(--pt-line); }
#team .pt__card { position: relative; border-bottom: var(--pt-line); color: var(--pt-ink); }

/* the poster cell: the app card's proportion; a vertical hairline splits it, the needle sits where it meets the foot */
#team .pt__cell { position: relative; aspect-ratio: 920 / 712; container-type: inline-size; border-bottom: var(--pt-line); }
#team .pt__cell::before { content: ""; position: absolute; z-index: 1; left: calc(50% - var(--pt-lw) / 2); top: 0; bottom: 0; width: var(--pt-lw); background: var(--pt-ink); }
#team .pt__art { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
#team .pt__plate { position: absolute; display: block; max-width: none; height: auto; -webkit-user-drag: none; user-select: none; }
#team .pt__plate--commander { left: -3%; top: -3%; width: 64%; }
#team .pt__plate--strategist { left: 10%; top: 9%; width: 94%; }
#team .pt__plate--scout { left: -9%; top: 1%; width: 66%; }
#team .pt__plate--scientist { left: -5%; top: -4%; width: 68%; }
/* (yellow app eye: no night invert) */

#team .pt__stk { position: absolute; z-index: 3; display: block; height: auto; -webkit-user-drag: none; user-select: none; animation: pt-bob 3.4s cubic-bezier(.65, 0, .35, 1) infinite; }
#team .pt__stk--commander { left: 55%; top: 12%; width: 38%; }
#team .pt__stk--strategist { left: 54%; top: 17%; width: 40%; animation-delay: -.8s; }
#team .pt__stk--scout { left: 53%; top: 19%; width: 40%; animation-delay: -1.6s; }
#team .pt__stk--scientist { left: 55%; top: 15%; width: 38%; animation-delay: -2.4s; }
@keyframes pt-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
:root[data-motion="off"] #team .pt__stk { animation: none; }

#team .pt__count {
  position: absolute; z-index: 5; left: 5.4cqw; top: 4.6cqw; margin: 0; display: flex; align-items: center; gap: .5em;
  font: 500 max(12px, 3.1cqw)/1 var(--pt-mono); letter-spacing: .12em; color: var(--pt-mute);
}
#team .pt__count b { font-weight: 700; color: var(--pt-ink); }
#team .pt__dash {   /* four dashes, this officer's lit in its colour */
  position: relative; display: block; width: max(52px, 13cqw); height: 2px; margin-left: .6em;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--pt-mute) 55%, transparent) 0 19%, transparent 19% 25%);
}
#team .pt__dash::after { content: ""; position: absolute; top: 0; height: 100%; left: calc(var(--n) * 25%); width: 19%; background: var(--c); }

#team .pt__en {
  position: absolute; z-index: 5; right: 3.4cqw; bottom: 4.4cqw; writing-mode: vertical-rl;
  font: 500 max(11px, 2.8cqw)/1 var(--pt-mono); letter-spacing: .32em; color: var(--pt-mute);
}
/* the giant name, its glyphs standing on the cell's foot hairline; it rises from behind that line */
#team .pt__nm {
  position: absolute; z-index: 4; left: -1.2cqw; bottom: 0; margin: 0; overflow: hidden; padding-top: .08em;
  font: 900 min(31cqw, calc(86cqw / var(--k))) / .86 var(--pt-cjk); letter-spacing: -.045em; color: var(--pt-ink);
  -webkit-text-stroke: .018em currentColor; paint-order: stroke fill; white-space: nowrap;
}
#team .pt__nm > span { display: block; margin-bottom: -.035em; }
#team .pt__needle { position: absolute; z-index: 6; left: 50%; bottom: 0; width: max(30px, 8.4cqw); height: auto; translate: -50% 50%; fill: var(--c); overflow: visible; }

/* the copy, as the app's chat */
#team .pt__copy { padding: 22px var(--gut, 20px) 28px; }
#team .pt__job { margin: 0; font: 900 25px/1.2 var(--pt-cjk); letter-spacing: -.03em; color: var(--pt-ink); -webkit-text-stroke: .016em currentColor; paint-order: stroke fill; text-wrap: balance; }
#team .pt__job > span { display: inline-block; }
#team .pt__line { margin: 6px 0 0; font: 600 15px/1.5 var(--pt-cjk); letter-spacing: .02em; color: var(--pt-ink2); }
#team .pt__chat { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; }
#team :is(.pt__them, .pt__me) { max-width: 82%; padding: .5em .8em .52em; border: 2px solid; font: 600 16px/1.45 var(--pt-cjk); letter-spacing: .02em; }
#team .pt__them { align-self: flex-start; background: var(--pt-mist); border-color: var(--pt-mist); color: var(--pt-ink); border-radius: 12px 12px 12px 4px; }
#team .pt__me { align-self: flex-end; background: var(--pt-acid); border-color: #141414; color: #141414; font-weight: 700; border-radius: 12px 12px 4px 12px; }

/* reveal (swap-reskin-b-sections.js arms it; without JS the finished poster stands) */
#team.pt--armed .pt__card :is(.pt__nm > span, .pt__plate, .pt__stk, .pt__them, .pt__me) { transition: translate .8s var(--pt-out), opacity .6s var(--pt-out), scale .9s var(--pt-out); }
#team.pt--armed .pt__card:not(.is-in) .pt__nm > span { translate: 0 105%; }
#team.pt--armed .pt__card:not(.is-in) .pt__plate { opacity: 0; scale: .94; }
#team.pt--armed .pt__card:not(.is-in) .pt__stk { opacity: 0; }
#team.pt--armed .pt__card:not(.is-in) :is(.pt__them, .pt__me) { opacity: 0; translate: 0 10px; }
#team.pt--armed .pt__card .pt__plate { transition-delay: .05s; }
#team.pt--armed .pt__card .pt__nm > span { transition-delay: .18s; }
#team.pt--armed .pt__card .pt__stk { transition-delay: .3s; }
#team.pt--armed .pt__card .pt__them { transition-delay: .45s; }
#team.pt--armed .pt__card .pt__me { transition-delay: .7s; }

@media (min-width: 1024px) {
  #team.pt { padding: 96px var(--frame-x, 56px) 120px; }
  #team .pt__title { margin: 0; font-size: clamp(52px, 4.4vw, 72px); }
  #team .pt__stage { width: auto; max-width: 1240px; margin: 48px auto 0; }
  #team .pt__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: var(--pt-line); }
  #team .pt__card { border-right: var(--pt-line); }
  #team .pt__copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; padding: 26px 30px 32px; }
  #team .pt__job { font-size: clamp(24px, 2vw, 30px); }
  #team .pt__line { grid-column: 1; font-size: 16px; }
  #team .pt__chat { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  #team :is(.pt__them, .pt__me) { max-width: 100%; font-size: 17px; }
}

/* ───────────────────────────── KINGDOM ───────────────────────────── */
#kingdom :is(.kd__glow, .sparkle) { display: none; }
#kingdom .kd__tag {   /* the kicker: a plain mono label, no container, no star */
  display: block; padding: 0; border-radius: 0; background: none; box-shadow: none;
  font: 600 13px/1.2 var(--pt-mono); letter-spacing: .24em; color: var(--pt-ink2);
}
#kingdom .kd__tag::before { content: none; }
#kingdom .kd__title {
  color: var(--pt-ink); font-family: var(--pt-cjk); font-weight: 900; letter-spacing: -.04em; line-height: 1.08;
  -webkit-text-stroke: .018em currentColor; paint-order: stroke fill;
}
#kingdom .kd__title:lang(en) { letter-spacing: -.03em; }
#kingdom .kd__lede { color: var(--pt-ink2); text-shadow: none; font-family: var(--pt-cjk); }

/* the three milestones: straight, square-edged white tags on an ink hairline; the building's name a mono label */
#kingdom .kd__c { --r: 0deg; rotate: none; }
#kingdom .kd__c > :first-child { animation: none; }
#kingdom .kd__chip {
  display: grid; gap: 5px; padding: 10px 14px 11px; border-radius: 0; isolation: auto;
  background: var(--pt-paper); border: var(--pt-line); box-shadow: none; color: var(--pt-ink);
}
#kingdom .kd__chip::before, #kingdom .kd__chip::after { content: none; }
#kingdom .kd__chip .glass__t { gap: 5px; }
#kingdom .kd__chip .glass__t > b { font: 600 11px/1.2 var(--pt-mono); letter-spacing: .16em; color: var(--pt-ink2); }
#kingdom .kd__chip .glass__t > :last-child { font: 800 15px/1.3 var(--pt-cjk); letter-spacing: .01em; color: var(--pt-ink); }
@media (min-width: 1024px) {
  #kingdom .kd__tag { font-size: 14px; }
  #kingdom .kd__chip { padding: 13px 18px 14px; }
  #kingdom .kd__chip .glass__t > b { font-size: 12px; }
  #kingdom .kd__chip .glass__t > :last-child { font-size: 18px; }
}
