/* DexHaul partner quiz (/which-pokemon-do-you-choose). Uses the site's tokens (blog.css) and the Pokédex type colours
   (pokedex.css: .t-<type> sets --tc). Square panels with cut corners, like the rest of the theme. */
.pq-head { max-width: 780px; }
.pq-head p { margin: 0 0 12px; }
.pq { --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  margin: 18px 0 34px; max-width: 780px; }
.pq-intro, .pq-stage > div { background: #fff; border-top: 5px solid var(--yellow); padding: clamp(18px, 4vw, 30px);
  clip-path: var(--cut); box-shadow: 0 10px 30px -22px rgba(16, 25, 79, .55); }
.pq-intro { background: var(--navy) linear-gradient(135deg, #10194f 0%, #1a2566 100%); color: #fff; }
.pq-intro p { margin: 0 0 14px; font-size: 17px; }
.pq-meta { color: #c8cdea; font-size: 14px !important; margin: 12px 0 0 !important; }
.pq-vs { background: var(--yellow); color: var(--navy); padding: 10px 14px; font-weight: 700; }

/* buttons: square, cut, uppercase (the theme's look) */
.pq-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--yellow); color: var(--navy) !important; border: 0; cursor: pointer; text-decoration: none;
  font: 800 15px/1 var(--disp, system-ui); font-stretch: 110%; text-transform: uppercase; letter-spacing: .04em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.pq-btn:hover { background: #ffd83d; }
.pq-btn:focus-visible, .pq-opt:focus-visible, .pq-ball:focus-visible, .pq-link:focus-visible, .pq-back:focus-visible {
  outline: 3px solid var(--red); outline-offset: 3px; }
.pq-btn[disabled] { opacity: .7; cursor: progress; }
.pq-btn.pq-alt { background: var(--navy); color: #fff !important; }
.pq-btn.pq-alt:hover { background: var(--navy-2); }
.pq-link, .pq-back { background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer; color: var(--navy);
  font: 700 15px/1.2 var(--body); text-decoration: underline; text-underline-offset: 3px; }
.pq-back { margin-top: 10px; color: var(--slate); }
.pq-back::before { content: "← "; }

/* questions */
.pq-prog { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--slate); font-size: 14px; font-weight: 700; }
.pq-bar { flex: 1; height: 8px; background: var(--bg, #f5f7fc); overflow: hidden; }
.pq-bar i { display: block; height: 100%; background: var(--red); transition: width .3s ease; }
.pq-qt { font-size: clamp(22px, 3.4vw, 30px) !important; margin: 0 0 18px; text-transform: none !important; font-stretch: 100% !important;
  letter-spacing: 0 !important; line-height: 1.15 !important; }
.pq-qt:focus { outline: none; }
.pq-opts { display: grid; gap: 10px; }
.pq-opts.pq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pq-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left;
  background: #fff; border: 2px solid var(--line); color: var(--ink); cursor: pointer; font: 700 16px/1.3 var(--body);
  transition: border-color .15s, background .15s, transform .15s; }
.pq-opt:hover { border-color: var(--navy); background: var(--bg, #f5f7fc); }
.pq-opt.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.pq-opt[disabled] { cursor: default; }
.pq-oi { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px;
  border-radius: 50%; background: var(--tc, var(--navy)); }
.pq-oi .ti { width: 20px; height: 20px; color: var(--tink, #fff); }

/* the lab */
.pq-lab h2, .pq-res h2 { font-size: clamp(22px, 3.4vw, 30px) !important; margin: 0 0 10px; }
.pq-lab h2:focus, .pq-res h2:focus { outline: none; }
.pq-lab > p { margin: 0 0 16px; }
.pq-balls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 4px; }
.pq-ball { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 6px 12px; background: var(--bg, #f5f7fc);
  border: 2px solid transparent; cursor: pointer; color: var(--ink); font: 800 14px/1.2 var(--body); min-height: 44px; }
.pq-ball:hover .pq-pb { transform: rotate(-12deg); }
.pq-ball.cur { border-color: var(--navy); background: #fff; }
.pq-pb { position: relative; width: clamp(64px, 18vw, 92px); aspect-ratio: 1; border-radius: 50%; box-sizing: border-box;
  border: 4px solid var(--ink); background: linear-gradient(var(--red) 0 46%, var(--ink) 46% 54%, #fff 54%);
  transition: transform .25s ease; }
.pq-pb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; box-sizing: border-box; background: #fff; border: 4px solid var(--ink); }
.pq-ball.open .pq-pb { background: linear-gradient(var(--tc) 0 46%, var(--ink) 46% 54%, #fff 54%); }
.pq-ball:not(.open) .pq-pb { animation: pq-wob 2.6s ease-in-out infinite; }
.pq-ball:nth-child(2):not(.open) .pq-pb { animation-delay: .4s; }
.pq-ball:nth-child(3):not(.open) .pq-pb { animation-delay: .8s; }
@keyframes pq-wob { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
.pq-peek:empty { display: none; }
.pq-card { margin: 14px 0 0; padding: 16px; border-left: 6px solid var(--tc); background: #fff; box-shadow: 0 6px 20px -16px rgba(16, 25, 79, .6); }
.pq-ch { display: flex; gap: 14px; align-items: center; }
.pq-ch h3 { margin: 0; font-size: 22px; }
.pq-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px;
  border-radius: 50%; background: var(--tc); }
.pq-tile .pq-ti { width: 36px; height: 36px; color: var(--tink, #fff); }
.pq-tile.big { width: 150px; height: 150px; }
.pq-tile.big .pq-ti { width: 84px; height: 84px; }
.pq-sub { margin: 2px 0 6px; color: var(--slate); font-size: 14px; }
.pq-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.pq-badges .pdx-type { padding: 0 12px 0 9px; height: 32px; }
.pq-badges .pdx-type .tl { max-width: 110px; opacity: 1; margin-left: 7px; }
.pq-why { margin: 12px 0 14px; }
.pq-quote { font-style: italic; font-size: 18px; border-left: 4px solid var(--yellow); padding-left: 12px; }

/* the result */
.pq-kicker { margin: 0 0 4px; color: var(--red-dark); font: 800 13px/1.2 var(--disp, system-ui); text-transform: uppercase; letter-spacing: .08em; }
.pq-res h2 { color: var(--navy); font-size: clamp(30px, 6vw, 46px) !important; }
.pq-rm { display: grid; grid-template-columns: minmax(150px, 245px) 1fr; gap: 22px; align-items: start; margin: 8px 0 14px; }
.pq-art { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pq-cardimg img { display: block; width: 100%; max-width: 245px; height: auto; border-radius: 10px; box-shadow: 0 12px 26px -14px rgba(16, 25, 79, .7); }
.pq-cap { font-size: 13px; color: var(--slate); text-align: center; }
.pq-facts h3 { margin: 14px 0 4px; font-size: 18px; }
.pq-facts p { margin: 0 0 8px; }
.pq-style { margin-top: 12px !important; }
.pq-rival, .pq-vsres { margin: 0 0 12px; padding: 12px 14px; background: var(--bg, #f5f7fc); border-left: 4px solid var(--navy); }
.pq-vsres { border-left-color: var(--yellow); background: #fffbe6; }
.pq-vsres p { margin: 0 0 4px; }
.pq-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 6px; }
.pq-copied { min-height: 1.2em; margin: 0 0 6px; color: var(--navy); font-weight: 700; word-break: break-all; }
.pq-more { color: var(--slate); }
.pq-shop h3 { font-size: 20px; margin: 18px 0 12px; }
.pq-all { display: inline-block; margin-top: 12px; font-weight: 700; }
.pq-note { font-size: 13px; color: var(--slate); margin: 8px 0 0; }
.pq-sk { pointer-events: none; }
.pq-sk .sk-img { display: block; width: 100%; aspect-ratio: 1; margin: 0 0 4px; background: #eef0f6; }
.pq-sk .pp-title, .pq-sk .pp-price, .pq-sk .pp-seller { color: transparent; background: #eef0f6; }
.pq-sk .pp-buy { color: transparent; background: #e3e6ef; }

/* how it works */
.pq-how { max-width: 780px; margin: 10px 0 30px; }
.pq-how h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 26px 0 8px; }
.pq-how p { margin: 0 0 12px; }

@media (max-width: 560px) {
  .pq-opts.pq-grid { grid-template-columns: 1fr; }
  .pq-rm { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pq-rm .pq-badges { justify-content: center; }
  .pq-acts .pq-btn { flex: 1 1 100%; }
  .pq-ball { padding: 12px 2px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pq-ball .pq-pb, .pq-ball:not(.open) .pq-pb { animation: none; transition: none; }
  .pq-bar i, .pq-opt { transition: none; }
}

/* the game console sits where the intro was; the plain quiz is one link away */
.pq-plainrow { margin: 34px 0 0; text-align: center; }
.pq-plush { width: 168px; height: 168px; image-rendering: pixelated; image-rendering: crisp-edges; }
.pq-sharebox:empty { display: none; }
.pq-sharebox { margin: 14px 0 6px; }
.pq-stage { scroll-margin-top: 130px; }
.dxp { scroll-margin-top: 100px; }

/* the console is centred on wide screens; the plain-text link and the result sit under it */
@media (min-width: 641px) {
  .pq { max-width: none; }
  .pq-stage { max-width: 780px; margin-inline: auto; }
}

.pq-stage .pq-nl { margin: 22px 0 6px; }
