/* Play-style quiz (/type/) and type pages (/type/<slug>/). Class prefix .pt-; colours from the
   tokens in style.css. Pole tiles take their ink from --c (set per pole in the HTML). */
.pt-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;
  overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
/* Japanese line breaks: never start a line with a small kana or ー (the card gets screenshotted and shared) */
.pt-page,.pt-quiz{line-break:strict}
.pt-h1{margin-bottom:10px}
.pt-go{font-size:16px;padding:12px 22px;min-height:48px;box-shadow:0 4px 0 var(--pop1);margin-bottom:4px;
  white-space:normal;max-width:100%;text-align:center;line-height:1.35}
.pt-go:active{transform:translateY(2px);box-shadow:0 2px 0 var(--pop1)}
/* 44px tap targets; inline-flex centres the label in links (<a>) as <button> does, so a row of both lines up */
.btn.ghost{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.pt-h3{margin:16px 0 8px;font-size:12.5px;color:var(--muted);font-weight:800}

/* ---------- /type/: intro ---------- */
.pt-hero{position:relative;background:var(--surface);border-radius:22px;box-shadow:var(--shadow);padding:16px;display:grid;gap:12px;overflow:hidden;
  background-image:radial-gradient(circle at 104% -4%,var(--pop1-soft) 0 70px,transparent 71px),
                   radial-gradient(circle at -6% 108%,var(--pop2-soft) 0 60px,transparent 61px)}
.pt-lead{margin:0;font-size:14.5px;line-height:1.75}
.pt-legend-h{margin:0;font-weight:800;font-size:12px;color:var(--muted)}
.pt-legend{list-style:none;margin:-4px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pt-legend li{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:800;min-width:0}
.pt-legend i{font-style:normal;color:var(--muted);flex:none}
.pt-lg{padding:2px 8px;border-radius:999px;background:var(--c);color:#1C1433;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-vs{margin:0;padding:10px 12px;border-radius:14px;background:var(--pop2-soft);font-weight:800;font-size:13.5px}
.pt-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
/* two ways in: the quick version is the wide, big button; the full one sits under it as an outline button */
.pt-actions .pt-main{flex:1 1 100%}
.pt-pick-note{margin:-4px 0 0;font-size:12.5px;font-weight:800;color:var(--muted)}
.pt-last{margin:0;font-size:13px;font-weight:800}
.pt-last a{color:var(--pop1-text)}
.pt-disc{margin:0}

.pt-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pt-tcard{display:grid;gap:4px;align-content:start;min-height:112px;height:100%;padding:10px;border-radius:16px;
  background:var(--surface);box-shadow:var(--shadow);text-decoration:none}
.pt-tc-top{display:flex;align-items:center;justify-content:space-between;gap:4px}
.pt-tc-top img{width:32px;height:32px;object-fit:contain;flex:none}
.pt-tcard b{font-weight:800;font-size:13.5px;line-height:1.3}
.pt-tcard small{font-size:11.5px;color:var(--muted);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pt-mini{display:inline-flex;gap:3px}
.pt-mini span{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--c);color:#1C1433;
  font:400 12px/1 var(--display)}

/* ---------- /type/: questions ---------- */
.pt-run{margin-top:4px}
.pt-top{position:relative;padding:6px 0 10px;display:flex;align-items:center;gap:10px}
.pt-top progress{flex:1;height:12px;border:0;border-radius:999px;overflow:hidden;background:var(--surface2);-webkit-appearance:none;appearance:none}
.pt-top progress::-webkit-progress-bar{background:var(--surface2);border-radius:999px}
.pt-top progress::-webkit-progress-value{background:var(--pop2);border-radius:999px;transition:width .25s ease}
.pt-top progress::-moz-progress-bar{background:var(--pop2);border-radius:999px}
/* the cheer sits just above the bar's right end, out of the row: the bar keeps its width and the question doesn't move
   (bottom:100% would reach into the h1 above) */
.pt-cheer{position:absolute;right:0;bottom:calc(100% - 6px);margin:0;text-align:right;font:400 14px/1 var(--display);color:var(--pop1-text)}
.pt-cheer:not(:empty){animation:pt-pop .5s ease-out}
.pt-q{background:var(--surface);border-radius:22px;box-shadow:var(--shadow);padding:16px 14px 14px;animation:pt-in .22s ease-out}
.pt-q h2{display:block;margin:0 0 14px;font:400 19px/1.45 var(--display);outline:none}
.pt-q h2:focus-visible{outline:3px solid var(--pop1);outline-offset:4px}
.pt-qn{display:inline-block;margin-bottom:6px;font:800 12px/1 var(--body);letter-spacing:.04em;color:var(--muted);background:var(--surface2);
  padding:4px 9px;border-radius:999px}
.pt-qt{display:block;word-break:auto-phrase;overflow-wrap:anywhere}   /* phrase-aware breaks where supported (Chromium; others ignore it), a too-long phrase still wraps */
.pt-ans{display:grid;gap:8px}
.pt-a{display:flex;align-items:center;gap:12px;min-height:50px;width:100%;padding:8px 14px;border:2px solid var(--line);border-radius:16px;
  background:var(--surface);font-weight:800;font-size:15px;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background-color .12s ease,border-color .12s ease,transform .12s ease}
.pt-a i{flex:none;display:grid;place-items:center;width:30px;height:30px}
.pt-a i::before{content:"";display:block;border-radius:50%;border:3px solid var(--dot);width:var(--sz);height:var(--sz)}
.pt-a[data-v="2"]{--dot:var(--pop1);--sz:26px}
.pt-a[data-v="1"]{--dot:var(--pop1);--sz:18px}
.pt-a[data-v="0"]{--dot:var(--muted);--sz:12px}
.pt-a[data-v="-1"]{--dot:var(--pop2);--sz:18px}
.pt-a[data-v="-2"]{--dot:var(--pop2);--sz:26px}
.pt-a[aria-pressed="true"]{border-color:var(--ink);background:var(--surface2);transform:scale(.985)}
.pt-a[aria-pressed="true"] i::before{background:var(--dot)}
.pt-a[aria-pressed="true"]::after{content:"✓";margin-left:auto;font-size:18px;color:var(--ink)}
@media (hover:hover){.pt-a:hover{border-color:var(--muted)}}
.pt-back{display:inline-flex;align-items:center;gap:6px;margin-top:10px;min-height:44px;padding:6px 4px;border:0;background:transparent;
  color:var(--muted);font-weight:800;font-size:13.5px;cursor:pointer}
.pt-back i{font-style:normal}
@keyframes pt-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes pt-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.12);opacity:1}100%{transform:none}}

/* ---------- /type/<slug>/: the shareable card ---------- */
.pt-card{position:relative;margin-top:14px;background:var(--surface);border-radius:24px;box-shadow:var(--shadow);padding:14px 16px 12px;overflow:hidden;
  display:grid;gap:8px;
  background-image:radial-gradient(circle at 100% 0,var(--pop1-soft) 0 64px,transparent 65px),
                   radial-gradient(circle at 0 100%,var(--pop2-soft) 0 54px,transparent 55px)}
.pt-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:24px}
.pt-kicker{font-weight:800;font-size:11.5px;color:var(--muted);letter-spacing:.03em}
.pt-who{font-weight:800;font-size:12px;padding:3px 10px;border-radius:999px;background:var(--pop2-soft);color:var(--ink)}
.pt-who.self{background:var(--pop1-soft)}
.pt-tiles{display:flex;gap:6px;margin:2px 0 0}
.pt-tile{display:grid;place-items:center;width:48px;height:48px;background:var(--c);color:#1C1433;font:400 26px/1 var(--display);
  border-radius:58% 42% 55% 45% / 50% 60% 40% 50%}
.pt-tile:nth-child(odd){border-radius:45% 55% 42% 58% / 55% 45% 60% 40%}
.pt-name{margin:0;font:400 26px/1.25 var(--display)}
.pt-code{margin:-2px 0 0;font:400 15px/1 var(--display);letter-spacing:.08em;color:var(--muted)}
.pt-catch{margin:0;font-weight:800;font-size:14.5px;line-height:1.5;word-break:auto-phrase;overflow-wrap:anywhere}

.pt-axes{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:8px}
.pt-axis{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"p bal m" "t t t";gap:3px 6px;align-items:end}
.pt-pole{font-size:12px;font-weight:800;color:var(--muted);display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.pt-p{grid-area:p}
.pt-m{grid-area:m;justify-content:flex-end;text-align:right}
.pt-pole.on{color:var(--ink);font-size:13px}
.pt-mark{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px var(--ink);flex:none;align-self:center}
.pt-pct{font:400 15px/1 var(--display);color:var(--ink)}
.pt-bal{grid-area:bal;justify-self:center;align-self:center;font-size:10.5px;font-weight:800;padding:1px 7px;border-radius:999px;border:1.5px solid var(--muted);color:var(--muted);white-space:nowrap}
.pt-track{grid-area:t;position:relative;height:12px;border-radius:999px;background:var(--surface2);overflow:hidden}
.pt-track::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--ground)}
.pt-fill{position:absolute;top:0;bottom:0;width:var(--w,50%);background:var(--c);opacity:.5;border-radius:999px;transition:width .5s ease}
.lean-p .pt-fill{left:0}
.lean-m .pt-fill{right:0}
.has-s .pt-fill{opacity:1}

.pt-icons{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.pt-icons li{display:grid;justify-items:center;gap:4px;text-align:center;min-width:0}
.pt-icons img{width:56px;height:56px;object-fit:contain;padding:4px;border-radius:50%;background:var(--surface2)}
.pt-icons span{font-size:11px;font-weight:800;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pt-brand{margin:2px 0 0;text-align:right;font-weight:800;font-size:11.5px;color:var(--muted)}
.pt-brand::before{content:"";display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:50%;background:var(--pop1);vertical-align:-1px}

/* ---------- views, calls to action ---------- */
.pt-rel{margin:12px 0 0;padding:12px 14px;border-radius:16px;background:var(--pop2-soft);display:grid;gap:4px}
.pt-rel b{font:400 18px/1.3 var(--display)}
.pt-rel p{margin:0;font-size:13.5px;line-height:1.6}
.pt-rel .pt-rel-links{display:flex;flex-wrap:wrap;gap:2px 14px;margin-top:2px}
.pt-rel a{font-weight:800;font-size:13px;color:var(--pop2-text)}
.pt-flat{margin-top:12px}
.pt-cta{margin-top:12px;padding:14px;border-radius:18px;background:var(--pop1-soft);display:grid;gap:10px;justify-items:start}
.pt-cta p{margin:0;font-weight:800;font-size:14px}
.pt-cta-plain,.pt-again{margin:14px 0 0}
.pt-card+.share,.pt-cta-plain+.share{margin-top:12px}

/* ---------- weapons ---------- */
.pt-picks .pick{grid-template-columns:44px 40px 1fr}
.pt-role{display:inline-block;margin-bottom:2px;font-size:10.5px;font-weight:800;padding:1px 8px;border-radius:999px;background:var(--pop1-soft);color:var(--pop1-text)}
.pt-role.match{background:var(--pop2-soft);color:var(--pop2-text)}
.pt-add{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:12px}
.pt-add .btn{min-height:44px;padding:10px 18px}
.pt-add-status{font-size:12.5px;font-weight:800;color:var(--pop2-text)}
.pt-add-home{font-size:12.5px;font-weight:800;color:var(--pop1-text)}
#pt-weak,#pt-untiered{margin-top:10px}

/* ---------- description, pairs, other types ---------- */
.pt-desc{margin:0 0 10px;font-size:14.5px;line-height:1.8}
.pt-sw{margin-bottom:10px}
.pt-tip p{margin:4px 0 0}
.pt-pairs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pt-pair{display:grid;gap:5px;align-content:start;padding:12px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow);text-decoration:none}
.pt-pair-rel{justify-self:start;font-size:11px;font-weight:800;padding:2px 9px;border-radius:999px;background:var(--ink);color:var(--ground)}
.pt-pair b{font-weight:800;font-size:14px;line-height:1.3}
.pt-pair small{font-size:11.5px;color:var(--muted);line-height:1.45}
.pt-strip{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pt-strip a{display:flex;flex-direction:column;align-items:flex-start;gap:4px;height:100%;min-height:44px;padding:8px 10px;border-radius:14px;
  background:var(--surface);box-shadow:var(--shadow);font-weight:800;font-size:12.5px;line-height:1.35;text-decoration:none}
.pt-strip .pt-mini span{width:18px;height:18px;font-size:10px;border-radius:6px}

@media (max-width:380px){
  .pt-tile{width:42px;height:42px;font-size:23px}
  .pt-name{font-size:23px}
  .pt-q h2{font-size:17.5px}
  .pt-legend{grid-template-columns:1fr}
}
@media (max-width:430px){.pt-legend{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){
  .pt-q,.pt-cheer:not(:empty){animation:none}
  .pt-a,.pt-fill,.pt-top progress::-webkit-progress-value{transition:none}
  .pt-go:active,.pt-a[aria-pressed="true"]{transform:none}
}

/* ---------- your result's first share row (data-share-main, set by type.js): one big "send to a friend" button ---------- */
/* dark text on the pop colour in both themes: white is about 3.4:1 on #FF3D7F and 2.9:1 on #FF5C93, #1C1433 5.2:1 and 6.0:1 */
.share[data-share-main]{--on-pop:#1C1433}
.share[data-share-main] .is-main{font-size:15px;padding:12px 18px;min-height:48px;width:100%;background:var(--pop1);color:var(--on-pop);
  border-color:transparent;white-space:normal;text-align:center}
.pt-shot{margin:-8px 0 14px;font-size:12.5px;font-weight:800;color:var(--muted)}
/* a quick result's one line (type.js shows it on your own result opened with &q): the link starts the full quiz */
.pt-quick{margin:0;font-size:13.5px;font-weight:800}
.pt-quick a{color:var(--pop1-text)}

/* ---------- a type page before type.js has set its view (.pt-on) ---------- */
/* on a friend's or your own result type.js swaps the take-the-quiz button for a taller box, fills the share rows and
   re-sorts the picks; what sits under the button and was already on screen would move (layout shift, CLS). So it stays
   hidden until then (hidden content that appears is no shift). Without JavaScript it shows at once; if type.js never
   runs, after 1.5 s (!important: style.css turns animations off for reduced motion, and this one moves nothing) */
@media (scripting:enabled){.pt-page:not(.pt-on)>.pt-cta-plain~*{visibility:hidden;animation:pt-show 0s 1.5s forwards!important}}
@keyframes pt-show{to{visibility:visible}}
