/* คุณเป็นสายบอร์ดเกมแบบไหน? — loaded after the shared STAYGO skin and tool layout */
.pt-emojis {
  font-size: clamp(26px, 7vw, 38px);
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.pt-big {
  font-size: 20px;
  min-height: 56px;
}
.center {
  text-align: center;
}

/* friend's result, on /r/<type>/ pages */
.pt-friend {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 3px solid var(--sg-ink);
  border-left: 12px solid var(--c);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--sg-ink);
  padding: 12px 16px;
}
.pt-friend-emoji {
  font-size: 44px;
  line-height: 1;
}
.pt-friend small {
  display: block;
  color: var(--sk-muted);
  font-size: 14px;
}
.pt-friend b {
  display: block;
  font-size: 22px;
  line-height: 1.3;
}
.pt-friend span:last-child {
  font-size: 15px;
}

/* quiz */
.pt-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}
.pt-back {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--sg-ink);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
.pt-bar {
  flex: 1;
  height: 14px;
  border: 3px solid var(--sg-ink);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.pt-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sg-yellow);
  transition: width 0.3s ease-out;
}
.pt-count {
  font-weight: 600;
  min-width: 56px;
  text-align: right;
}
.pt-q h2 {
  font-size: clamp(22px, 5.6vw, 28px);
  line-height: 1.4;
  margin: 4px 0 16px;
  text-align: center;
}
.pt-in {
  animation: pt-slide 0.3s ease-out;
}
@keyframes pt-slide {
  from { transform: translateX(24px); opacity: 0; }
}
.pt-answers {
  display: grid;
  gap: 10px;
}
.pt-answer {
  font: 500 17px/1.45 var(--sg-font-th);
  text-align: left;
  padding: 14px 16px;
  min-height: 56px;
  border: 3px solid var(--sg-ink);
  border-radius: 14px;
  background: #fff;
  color: var(--sg-ink);
  box-shadow: 0 3px 0 var(--sg-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
/* only real mouse hover: on phones :hover sticks to whatever button ends up under the finger,
   which made the next question look like it had an answer picked already */
@media (hover: hover) {
  .pt-answer:hover {
    background: var(--sk-cream);
  }
}
.pt-answer:focus {
  outline: none;
}
.pt-answer:focus-visible {
  outline: 3px solid var(--sg-blue);
  outline-offset: 2px;
}
.pt-answer:active,
.pt-answer.picked {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--sg-ink);
}
.pt-answer.picked {
  background: var(--sg-yellow);
}

/* result card */
.pt-card {
  position: relative;
  background: #fff;
  border: 3px solid var(--sg-ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--sg-ink);
  overflow: hidden;
  text-align: center;
  padding: 0 18px 18px;
}
.pt-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  background: var(--c);
  border-bottom: 3px solid var(--sg-ink);
}
.pt-card > * {
  position: relative;
}
.pt-pop {
  animation: pt-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pt-pop {
  from { transform: scale(0.85); opacity: 0; }
}
.pt-eyebrow {
  color: #fff;
  margin: 14px 0 6px;
  font-size: 17px;
}
.pt-emoji {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sg-ink);
  font-size: 64px;
  line-height: 106px;
}
.pt-name {
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.2;
  margin: 12px 0 4px;
}
.pt-quote {
  color: var(--c);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 12px;
  filter: brightness(0.85);
}
.pt-desc {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  text-align: left;
}
.pt-traits {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
  text-align: left;
}
.pt-traits li {
  background: var(--sk-paper);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.5;
}
.pt-traits b {
  display: block;
  font-size: 13px;
  color: var(--sk-muted);
  font-weight: 500;
}
.pt-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pt-pair > div {
  border: 2px solid var(--sg-ink);
  border-radius: 14px;
  padding: 8px;
  background: #fff3d6;
}
.pt-pair > div + div {
  background: #ffe3e0;
}
.pt-pair small {
  display: block;
  color: var(--sk-muted);
  font-size: 13px;
}
.pt-pair b {
  font-size: 16px;
}

.pt-share-row > .sg-btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}
.pt-h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

/* percentage bars */
.pt-bars {
  display: grid;
  gap: 6px;
}
.pt-barrow {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.pt-barrow.me {
  font-weight: 700;
}
.pt-barlabel {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-bartrack {
  height: 12px;
  border-radius: 999px;
  background: var(--sk-soft);
  overflow: hidden;
}
.pt-bartrack i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--c);
  border-radius: 999px;
  transition: width 0.7s ease-out;
}
.pt-barrow b {
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .pt-in,
  .pt-pop {
    animation: none;
  }
}

/* full-screen result image, long-press to save (in-app browsers, phones that can't share files) */
.pt-viewer {
  position: fixed;
  inset: 0;
  z-index: 9500; /* above the sound and language toggles */
  background: rgba(20, 17, 18, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  color: #fff;
  text-align: center;
}
.pt-viewer[hidden] {
  display: none;
}
.pt-viewer img {
  max-width: 100%;
  max-height: calc(100% - 170px);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  /* let the phone's own long-press menu appear on the image */
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}
.pt-viewer-hint {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  background: var(--sg-yellow);
  color: var(--sg-ink);
  border-radius: 999px;
  padding: 6px 16px;
}
.pt-viewer-sub {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}
.pt-viewer .sg-btn {
  min-width: 120px;
}
