/* Party Tools: shared styles for the hub (/party-tools/) and every tool page.
   Pages are generated by scripts/build_party_tools.py. Each tool sets --pt-accent,
   --pt-accent-dark and --pt-soft on <body>. */
:root {
  --pt-ink: #231815;
  --pt-text: #40332e;
  --pt-muted: #7a6b65;
  --pt-line: #eadfd8;
  --pt-bg: #fffaf6;
  --pt-card: #ffffff;
  --pt-accent: #e4572e;
  --pt-accent-dark: #b93a17;
  --pt-soft: #fff1ea;
  --pt-radius: 18px;
  --pt-shadow: 0 14px 40px rgba(60, 30, 15, 0.08);
  --pt-font-display: 'Fredoka', 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pt-bg);
  color: var(--pt-text);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main { width: 100%; }
.pt-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.pt-narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--pt-font-display); color: var(--pt-ink); line-height: 1.2; margin: 0; }
a { color: var(--pt-accent-dark); }
button { font: inherit; color: inherit; }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.pt-hero { padding: 28px 0 14px; text-align: center; }
.pt-crumbs { font-size: 0.88rem; color: var(--pt-muted); margin: 0 0 12px; }
.pt-crumbs a { color: var(--pt-muted); text-decoration: none; }
.pt-crumbs a:hover { text-decoration: underline; }
.pt-hero h1 { font-size: clamp(1.9rem, 5.6vw, 2.9rem); font-weight: 700; }
.pt-hero-lead { max-width: 620px; margin: 10px auto 0; font-size: 1.06rem; }

/* ---------- Tool switcher (chips under the hero) ---------- */
.pt-switch { display: flex; gap: 8px; overflow-x: auto; padding: 4px 20px 10px; margin: 6px auto 0; max-width: 1040px; scrollbar-width: none; justify-content: safe center; }
.pt-switch::-webkit-scrollbar { display: none; }
.pt-switch a {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 8px;
  border-radius: 999px; border: 1px solid var(--pt-line); background: var(--pt-card);
  color: var(--pt-ink); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: border-color .15s, background .15s;
}
.pt-switch a img { width: 24px; height: 24px; border-radius: 7px; }
.pt-switch a:hover { border-color: var(--pt-accent); }
.pt-switch a[aria-current="page"] { background: var(--pt-ink); border-color: var(--pt-ink); color: #fff; }

/* ---------- Stage / app card ---------- */
.pt-stage { padding: 8px 0 34px; }
.pt-app {
  position: relative; background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: 26px;
  box-shadow: var(--pt-shadow); padding: 26px 24px; max-width: 720px; margin: 0 auto; min-height: 380px;
}
.pt-noscript { text-align: center; color: var(--pt-muted); }

.pt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pt-toolbar-end { display: flex; gap: 6px; margin-left: auto; }

.pt-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--pt-line); background: var(--pt-card);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--pt-muted); transition: color .15s, border-color .15s, background .15s;
}
.pt-icon-btn:hover { color: var(--pt-ink); border-color: var(--pt-ink); }
.pt-icon-btn[aria-pressed="true"] { color: var(--pt-accent-dark); background: var(--pt-soft); border-color: transparent; }

.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 999px; font-weight: 800; padding: 11px 22px; background: var(--pt-soft); color: var(--pt-accent-dark);
  transition: transform .12s, background .15s, box-shadow .15s; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.pt-btn:hover { transform: translateY(-1px); }
.pt-btn:active { transform: translateY(1px) scale(.98); }
.pt-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pt-btn--primary {
  background: var(--pt-accent); color: #fff; font-family: var(--pt-font-display); font-weight: 600;
  font-size: 1.25rem; letter-spacing: .01em; padding: 14px 40px; box-shadow: 0 6px 0 var(--pt-accent-dark);
}
.pt-btn--primary:hover { box-shadow: 0 7px 0 var(--pt-accent-dark); }
.pt-btn--primary:active { box-shadow: 0 2px 0 var(--pt-accent-dark); transform: translateY(4px); }
.pt-btn--ghost { background: transparent; border: 1px solid var(--pt-line); color: var(--pt-ink); }
.pt-btn--ghost:hover { border-color: var(--pt-ink); }
.pt-btn--sm { padding: 7px 14px; font-size: 0.9rem; }
.pt-btn:focus-visible, .pt-icon-btn:focus-visible, .pt-seg button:focus-visible, .pt-switch a:focus-visible { outline: 3px solid var(--pt-accent); outline-offset: 2px; }

.pt-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pt-hint { text-align: center; color: var(--pt-muted); font-size: 0.88rem; margin: 12px 0 0; }
.pt-hint kbd { font-family: inherit; font-size: 0.8rem; border: 1px solid var(--pt-line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; background: var(--pt-bg); }

/* Segmented control */
.pt-seg { display: inline-flex; background: var(--pt-bg); border: 1px solid var(--pt-line); border-radius: 14px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.pt-seg button { border: 0; background: transparent; border-radius: 11px; padding: 6px 12px; font-weight: 800; font-size: 0.92rem; color: var(--pt-muted); cursor: pointer; min-width: 44px; }
.pt-seg button[aria-pressed="true"] { background: var(--pt-card); color: var(--pt-ink); box-shadow: 0 1px 4px rgba(60, 30, 15, .14); }

/* Stepper */
.pt-stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--pt-bg); border: 1px solid var(--pt-line); border-radius: 14px; padding: 3px; }
.pt-stepper button { width: 34px; height: 34px; border: 0; border-radius: 11px; background: var(--pt-card); cursor: pointer; font-weight: 800; font-size: 1.1rem; box-shadow: 0 1px 3px rgba(60, 30, 15, .1); }
.pt-stepper button:disabled { opacity: .35; cursor: default; }
.pt-stepper output { min-width: 64px; text-align: center; font-weight: 800; color: var(--pt-ink); font-size: 0.95rem; }

.pt-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pt-muted); display: block; margin-bottom: 6px; }
.pt-field { display: flex; flex-direction: column; }
.pt-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 20px; margin-bottom: 8px; }

.pt-input, .pt-textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px; border: 2px solid var(--pt-line);
  border-radius: 14px; background: var(--pt-card); color: var(--pt-ink); transition: border-color .15s;
}
.pt-input:focus, .pt-textarea:focus { outline: none; border-color: var(--pt-accent); }
.pt-textarea { resize: vertical; min-height: 150px; line-height: 1.5; }

/* History */
.pt-history { margin-top: 22px; border-top: 1px dashed var(--pt-line); padding-top: 14px; }
.pt-history-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pt-history-head h2 { font-size: 1rem; font-family: inherit; font-weight: 800; color: var(--pt-muted); }
.pt-history ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pt-history li { background: var(--pt-bg); border: 1px solid var(--pt-line); border-radius: 10px; padding: 3px 10px; font-size: 0.88rem; font-weight: 700; }
.pt-history li:first-child { background: var(--pt-soft); border-color: transparent; color: var(--pt-accent-dark); }
.pt-history-empty { color: var(--pt-muted); font-size: 0.9rem; margin: 0; }
.pt-link-btn { border: 0; background: none; color: var(--pt-muted); font-weight: 700; font-size: 0.85rem; cursor: pointer; text-decoration: underline; padding: 4px; }
.pt-link-btn:hover { color: var(--pt-ink); }

/* Big result readout */
.pt-readout { text-align: center; min-height: 84px; margin-top: 10px; }
.pt-readout-big { font-family: var(--pt-font-display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 3.6rem); color: var(--pt-ink); line-height: 1.05; }
.pt-readout-small { color: var(--pt-muted); font-weight: 700; font-size: 0.95rem; min-height: 1.5em; }
.pt-pop { animation: pt-pop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pt-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===================== Dice ===================== */
.pt-dice-tray {
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 18px; min-height: 190px;
  padding: 26px 12px; margin: 10px 0 0; border-radius: 22px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(120% 90% at 50% 20%, #2f7d5b 0%, #1f5c42 70%, #194b36 100%);
  box-shadow: inset 0 3px 14px rgba(0, 0, 0, .35);
}
.pt-die {
  --size: 84px; position: relative; width: var(--size); height: var(--size); border: 0; padding: 0; cursor: pointer;
  background: none; display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.pt-die-face {
  width: 100%; height: 100%; border-radius: 20%; background: linear-gradient(145deg, #ffffff 0%, #f1ebe6 100%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08), 0 6px 0 #c9bdb4, 0 10px 18px rgba(0, 0, 0, .35);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 15%;
}
.pt-pip { width: 72%; height: 72%; margin: auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a3a35, #1e1412 70%); visibility: hidden; }
.pt-pip.on { visibility: visible; }
.pt-die[data-value="1"] .pt-pip.on { background: radial-gradient(circle at 35% 30%, #f06b4a, #b32e12 70%); width: 90%; height: 90%; }
.pt-die-poly { width: 100%; height: 100%; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .22)) drop-shadow(0 10px 12px rgba(0, 0, 0, .3)); }
.pt-die-poly text { font-family: var(--pt-font-display); font-weight: 700; }
.pt-die.rolling { animation: pt-tumble .6s cubic-bezier(.3, .7, .4, 1); }
.pt-die.rolling:nth-child(2n) { animation-duration: .68s; animation-direction: reverse; }
.pt-die.rolling:nth-child(3n) { animation-duration: .74s; }
@keyframes pt-tumble {
  0% { transform: translateY(-40px) rotate(0) scale(.7); }
  35% { transform: translateY(6px) rotate(240deg) scale(1.08); }
  60% { transform: translateY(-10px) rotate(320deg) scale(.96); }
  80% { transform: translateY(2px) rotate(350deg); }
  100% { transform: none; }
}
.pt-die.held .pt-die-face, .pt-die.held .pt-die-poly { opacity: .55; }
.pt-die.held::after {
  content: '\f023'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: -8px; right: -8px;
  width: 26px; height: 26px; border-radius: 50%; background: #ffd24a; color: #3a2a00; font-size: 12px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
@media (max-width: 480px) { .pt-die { --size: 66px; } .pt-dice-tray { gap: 14px; min-height: 160px; } }

/* ===================== Wheel ===================== */
.pt-wheel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
@media (max-width: 700px) { .pt-wheel-layout { grid-template-columns: 1fr; } }
.pt-wheel-box { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1; }
.pt-wheel-box canvas { width: 100%; height: 100%; display: block; border-radius: 50%; cursor: pointer; }
.pt-wheel-pointer {
  position: absolute; top: -6px; left: 50%; width: 36px; height: 44px; transform: translateX(-50%); z-index: 2;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); transform-origin: 50% 20%;
}
.pt-wheel-pointer.tick { animation: pt-tick .12s ease-out; }
@keyframes pt-tick { 50% { transform: translateX(-50%) rotate(-14deg); } }
.pt-wheel-hub {
  position: absolute; top: 50%; left: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0;
  border-radius: 50%; background: var(--pt-card); box-shadow: 0 4px 14px rgba(0, 0, 0, .25), inset 0 0 0 5px var(--pt-ink);
  font-family: var(--pt-font-display); font-weight: 700; font-size: clamp(.8rem, 3.4vw, 1.1rem); color: var(--pt-ink); cursor: pointer;
}
.pt-wheel-hub:disabled { cursor: default; }
.pt-wheel-side h2 { font-size: 1rem; font-family: inherit; font-weight: 800; color: var(--pt-muted); margin-bottom: 8px; }
.pt-wheel-side .pt-textarea { min-height: 220px; }
.pt-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pt-check { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 700; margin-top: 8px; cursor: pointer; }
.pt-check input { width: 18px; height: 18px; accent-color: var(--pt-accent); }

.pt-winner {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 5;
  background: rgba(255, 250, 246, .82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-radius: 26px;
}
.pt-winner.show { display: flex; }
.pt-winner-card {
  background: var(--pt-card); border-radius: 24px; padding: 28px 30px; text-align: center; max-width: 86%;
  box-shadow: 0 20px 60px rgba(60, 30, 15, .25); border: 1px solid var(--pt-line); animation: pt-pop .4s cubic-bezier(.2, 1.6, .4, 1);
}
.pt-winner-card p { margin: 0; color: var(--pt-muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.pt-winner-card strong { display: block; font-family: var(--pt-font-display); font-size: clamp(2rem, 8vw, 3rem); color: var(--pt-ink); line-height: 1.15; margin: 6px 0 16px; word-break: break-word; }
.pt-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 26px; z-index: 6; }
.pt-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: pt-fall 1.6s cubic-bezier(.25, .6, .5, 1) forwards; }
@keyframes pt-fall { to { transform: translate(var(--dx), 520px) rotate(var(--rot)); opacity: 0; } }

/* ===================== Coin ===================== */
.pt-coin-scene { perspective: 900px; display: grid; place-items: center; height: 250px; margin-top: 4px; }
.pt-coin {
  position: relative; width: 190px; height: 190px; border: 0; padding: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; transition: transform 1.6s cubic-bezier(.2, .75, .25, 1); -webkit-tap-highlight-color: transparent;
}
.pt-coin.toss { animation: pt-toss 1.6s cubic-bezier(.3, .6, .35, 1); }
@keyframes pt-toss { 0% { translate: 0 0; } 45% { translate: 0 -90px; } 100% { translate: 0 0; } }
.pt-coin-face {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; place-items: center; font-family: var(--pt-font-display); font-weight: 700;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .35), inset 0 0 0 14px rgba(120, 70, 0, .25), 0 12px 24px rgba(80, 40, 0, .28);
}
.pt-coin-face span { display: grid; place-items: center; width: 64%; height: 64%; border-radius: 50%; border: 3px dashed rgba(110, 60, 0, .35); font-size: 3.4rem; color: rgba(90, 45, 0, .82); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.pt-coin-face small { display: block; font-size: .8rem; letter-spacing: .14em; margin-top: -10px; }
.pt-coin-heads { background: radial-gradient(circle at 35% 30%, #ffe9a3, #f3c442 45%, #d39b16 100%); }
.pt-coin-tails { background: radial-gradient(circle at 35% 30%, #f3f3f3, #c9ced6 45%, #959ca8 100%); transform: rotateX(180deg); }
.pt-coin-tails span { color: rgba(40, 46, 58, .78); border-color: rgba(40, 46, 58, .3); }
.pt-coin-shadow { width: 140px; height: 16px; border-radius: 50%; background: rgba(60, 30, 15, .16); filter: blur(4px); margin: -8px auto 0; }
.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.pt-stat { background: var(--pt-bg); border: 1px solid var(--pt-line); border-radius: 16px; padding: 10px; text-align: center; }
.pt-stat b { display: block; font-family: var(--pt-font-display); font-size: 1.6rem; color: var(--pt-ink); line-height: 1.2; }
.pt-stat span { font-size: .8rem; font-weight: 800; color: var(--pt-muted); text-transform: uppercase; letter-spacing: .05em; }
.pt-dots { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 14px; min-height: 26px; }
.pt-dots i { width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.pt-dots .h { background: #f3c442; color: #5a2d00; }
.pt-dots .t { background: #c9ced6; color: #28303a; }

/* ===================== Timer ===================== */
.pt-timer { display: grid; place-items: center; position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 6px auto 0; }
.pt-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pt-timer-track { fill: none; stroke: var(--pt-soft); stroke-width: 10; }
.pt-timer-bar { fill: none; stroke: var(--pt-accent); stroke-width: 10; stroke-linecap: round; transition: stroke .3s; }
.pt-timer.urgent .pt-timer-bar { stroke: #e0322b; }
.pt-timer-time { font-family: var(--pt-font-display); font-weight: 700; font-size: clamp(3rem, 15vw, 4.6rem); color: var(--pt-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pt-timer-sub { position: absolute; bottom: 26%; font-weight: 800; font-size: .85rem; color: var(--pt-muted); text-transform: uppercase; letter-spacing: .08em; }
.pt-timer.urgent .pt-timer-time { color: #e0322b; animation: pt-beat 1s infinite; }
@keyframes pt-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } }
.pt-timer.done .pt-timer-time { animation: pt-blink .5s steps(2) infinite; color: #e0322b; }
@keyframes pt-blink { 50% { opacity: .2; } }
.pt-app.flash { animation: pt-flash .5s 4; }
@keyframes pt-flash { 50% { background: #ffe1da; } }
.pt-custom-time { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pt-custom-time .pt-input { width: 76px; text-align: center; padding: 8px; font-weight: 800; }

.pt-fs-btn { position: absolute; top: 14px; right: 14px; }
.pt-app:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; max-width: none; }
.pt-app:fullscreen .pt-timer { width: min(70vh, 80vw); }

/* ===================== Score keeper ===================== */
.pt-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pt-player {
  position: relative; border-radius: 20px; padding: 14px 14px 12px; background: var(--pt-bg); border: 2px solid var(--pt-line);
  display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s;
}
.pt-player::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: var(--c); }
.pt-player.leader { border-color: var(--c); box-shadow: 0 8px 24px rgba(60, 30, 15, .1); }
.pt-player-name { border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 1.02rem; color: var(--pt-ink); padding: 4px 6px; border-radius: 8px; width: 100%; min-width: 0; }
.pt-player-name:focus { outline: 2px solid var(--c); background: #fff; }
.pt-player-top { display: flex; align-items: center; gap: 4px; padding-right: 26px; }
.pt-crown { color: #e3a008; font-size: 1rem; visibility: hidden; }
.pt-player.leader .pt-crown { visibility: visible; }
.pt-player-del { position: absolute; top: 10px; right: 8px; border: 0; background: none; color: var(--pt-muted); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; }
.pt-player-del:hover { background: #fff; color: #c0392b; }
.pt-score { font-family: var(--pt-font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; text-align: center; color: var(--pt-ink); font-variant-numeric: tabular-nums; padding: 4px 0; }
.pt-score.bump { animation: pt-bump .25s ease-out; }
@keyframes pt-bump { 50% { transform: scale(1.18); color: var(--c); } }
.pt-score-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pt-score-btns button {
  border: 0; border-radius: 12px; padding: 10px 0; font-weight: 800; font-size: 1.05rem; cursor: pointer; background: #fff;
  box-shadow: 0 2px 0 var(--pt-line); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pt-score-btns button:active { transform: translateY(2px); box-shadow: none; }
.pt-score-btns .plus { background: var(--c); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.pt-add-player { border: 2px dashed var(--pt-line); border-radius: 20px; background: transparent; min-height: 170px; cursor: pointer; color: var(--pt-muted); font-weight: 800; display: grid; place-content: center; gap: 6px; transition: border-color .15s, color .15s; }
.pt-add-player i { font-size: 1.5rem; }
.pt-add-player:hover { border-color: var(--pt-accent); color: var(--pt-accent-dark); }

/* ===================== Teams ===================== */
.pt-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 20px; }
.pt-team { border-radius: 18px; overflow: hidden; border: 1px solid var(--pt-line); background: var(--pt-card); animation: pt-pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.pt-team h3 { background: var(--c); color: #fff; font-size: 1.05rem; padding: 10px 14px; display: flex; justify-content: space-between; }
.pt-team h3 small { font-family: 'Nunito', sans-serif; font-weight: 800; opacity: .85; font-size: .8rem; }
.pt-team ul { list-style: none; margin: 0; padding: 8px 14px 12px; }
.pt-team li { padding: 5px 0; border-bottom: 1px dashed var(--pt-line); font-weight: 700; }
.pt-team li:last-child { border-bottom: 0; }
.pt-count { color: var(--pt-muted); font-size: .85rem; font-weight: 700; margin: 6px 0 0; }

/* ===================== Finger picker ===================== */
.pt-finger-zone {
  position: relative; height: min(62vh, 520px); min-height: 340px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #2b2140, #15101f); touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; cursor: crosshair;
}
.pt-finger-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: rgba(255, 255, 255, .78); padding: 20px; pointer-events: none; gap: 10px; }
.pt-finger-msg i { font-size: 2.6rem; color: rgba(255, 255, 255, .5); }
.pt-finger-msg strong { font-family: var(--pt-font-display); font-size: 1.4rem; color: #fff; font-weight: 600; }
.pt-finger-msg span { font-size: .92rem; }
.pt-finger { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; pointer-events: none; transition: transform .35s, opacity .35s; }
.pt-finger::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 30px var(--c); animation: pt-breathe 1.1s ease-in-out infinite; }
.pt-finger::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 4px solid var(--c); opacity: .55; }
@keyframes pt-breathe { 50% { transform: scale(.86); } }
.pt-finger.lose { opacity: .12; transform: scale(.6); }
.pt-finger.win { transform: scale(1.35); }
.pt-finger.win::after { animation: pt-ring 1s ease-out infinite; opacity: 1; }
@keyframes pt-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.pt-finger-count { position: absolute; top: 14px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 800; font-size: .95rem; pointer-events: none; }
.pt-finger-bar { position: absolute; left: 0; bottom: 0; height: 6px; width: 0; background: linear-gradient(90deg, #ffd24a, #ff6b6b); }

/* ===================== Hub cards ===================== */
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pt-card {
  display: flex; gap: 14px; align-items: flex-start; background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: 22px;
  padding: 18px; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pt-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 30, 15, .12); border-color: transparent; }
.pt-card img { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.pt-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.pt-card p { margin: 0; font-size: .92rem; color: var(--pt-muted); line-height: 1.5; }

/* ===================== Content sections ===================== */
.pt-section { padding: 34px 0; }
.pt-section + .pt-section { border-top: 1px solid var(--pt-line); }
.pt-section h2 { font-size: clamp(1.45rem, 4.4vw, 1.9rem); margin-bottom: 14px; }
.pt-section h3 { font-size: 1.12rem; margin: 18px 0 6px; }
.pt-steps { padding-left: 1.3em; }
.pt-steps li { margin-bottom: 8px; }
.pt-steps li::marker { color: var(--pt-accent); font-weight: 800; }
.pt-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.pt-ideas li { background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: 16px; padding: 14px 16px; font-size: .95rem; }
.pt-ideas li b { display: block; color: var(--pt-ink); margin-bottom: 2px; }
.pt-faq details { border-bottom: 1px solid var(--pt-line); }
.pt-faq summary { cursor: pointer; font-weight: 800; color: var(--pt-ink); padding: 14px 0; }
.pt-faq summary h3 { display: inline; font: inherit; color: inherit; margin: 0; }
.pt-faq details p { margin: 0; padding: 0 0 16px; }
.pt-byline { color: var(--pt-muted); font-size: .88rem; margin-top: 20px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .pt-app { padding: 20px 14px; border-radius: 22px; }
  .pt-btn--primary { padding: 13px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
