/* Tools pages (inc/tools.php). Builds on account.css (.pp-wrap, .pp-card, .pp-btn, .pp-notice). */
.pt-nav { display: flex; gap: 8px; overflow-x: auto; margin: -8px 0 24px; padding-bottom: 4px; scrollbar-width: thin; }
.pt-nav a, .pt-nav span { flex: none; padding: 8px 16px; border-radius: 100px; background: #fff; color: #1b1b1c; font-size: 1.4rem; text-decoration: none; box-shadow: 0 1px 2px rgba(27,27,28,.08); }
.pt-nav a:hover { background: #ecffce; }
.pt-nav span { background: #1c1a28; color: #fff; }

.pt-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chips button { border: 0; padding: 8px 16px; border-radius: 100px; background: #fff; color: #1b1b1c; font: inherit; font-size: 1.4rem; cursor: pointer; box-shadow: inset 0 0 0 1px #e1dbdb; }
.pt-chips button:hover { box-shadow: inset 0 0 0 1px #188454; }
.pt-chips button.is-on { background: #188454; color: #fff; box-shadow: none; }
.pt-sort { font-size: 1.4rem; color: #515156; display: flex; align-items: center; gap: 8px; }
.pt-sort select, .pt-vs select, .pt-calc select { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #e1dbdb; background: #fff; font: inherit; font-size: 1.5rem; color: #1b1b1c; }
.pt-search { flex: 1 1 260px; max-width: 360px; height: 42px; padding: 0 16px; border: 1px solid #e1dbdb; border-radius: 100px; font: inherit; font-size: 1.5rem; }
.pt-count { margin: 0 0 16px; font-size: 1.4rem; color: #8a8a90; }

.pt-rating { display: inline-flex; align-items: baseline; gap: 2px; padding: 2px 10px; border-radius: 100px; background: #f2efec; font-weight: 700; color: #1b1b1c; font-size: 1.4rem; white-space: nowrap; }
.pt-rating > span { color: #fab000; }
.pt-rating small { font-weight: 400; color: #8a8a90; }
.pt-logo { border-radius: 10px; object-fit: cover; flex: none; background: #1b1b1c; }
.pt-visit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: 100px; background: #188454; color: #fff !important; font-weight: 700; font-size: 1.5rem; text-decoration: none; white-space: nowrap; }
.pt-visit:hover { background: #136a43; }
.pt-visit-sm { height: 36px; padding: 0 16px; font-size: 1.4rem; }
.pt-code { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px dashed #188454; border-radius: 8px; background: #fff; color: #1b1b1c; font: inherit; font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.pt-code small { font-weight: 400; color: #8a8a90; font-size: 1.2rem; }
.pt-code-ok { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; border-radius: 8px; background: #188454; color: #fff; }
.pt-code.is-copied .pt-code-ok { display: flex; }
.pt-terms { margin: 12px 0 0; font-size: 1.2rem; line-height: 1.8rem; color: #8a8a90; }
.pt-feats { margin: 0; padding-left: 16px; font-size: 1.4rem; line-height: 2.2rem; }

/* bonus cards */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pt-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 4px -2px rgba(27,27,28,.06), 0 6px 8px -2px rgba(27,27,28,.08); }
.pt-card[hidden], .pt-table tr[hidden] { display: none; }
.pt-badge { position: absolute; top: -10px; right: 16px; padding: 2px 10px; border-radius: 4px; background: #ffc740; color: #1b1b1c; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-card header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.pt-card h3 { margin: 0 0 6px; font-size: 1.8rem; color: #1b1b1c; }
.pt-offer { flex: 1; padding: 16px; border-radius: 10px; background: #f6f9df; border: 1px solid #d4db3a; text-align: center; }
.pt-offer b { display: block; font-size: 1.8rem; line-height: 2.4rem; color: #1b1b1c; }
.pt-offer span { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 100px; background: #ecf2b5; font-size: 1.3rem; font-weight: 600; color: #1b1b1c; }
.pt-card-cta { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 16px; }
.pt-card-cta .pt-visit { flex: 1; }
.pt-tip { margin-top: 32px; }

/* tables */
.pt-table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 4px -2px rgba(27,27,28,.06), 0 6px 8px -2px rgba(27,27,28,.08); }
.pt-table { width: 100% !important; min-width: 760px; table-layout: auto !important; border-collapse: collapse; font-size: 1.5rem; }
.pt-all { min-width: 980px; }
.pt-all th:first-child, .pt-all td:first-child { width: 36px; padding-right: 0; }
.pt-all td:nth-child(5), .pt-all td:nth-child(7) { width: 1%; white-space: nowrap; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt-table th { position: sticky; top: 0; background: #1c1a28; color: #fff; text-align: left; padding: 14px 16px; font-size: 1.4rem; font-weight: 600; white-space: nowrap; }
.pt-table th button { all: unset; cursor: pointer; }
.pt-table th button::after { content: " ↕"; opacity: .5; }
.pt-table th button.is-desc::after { content: " ↓"; opacity: 1; }
.pt-table th button.is-asc::after { content: " ↑"; opacity: 1; }
.pt-table td { padding: 12px 16px; border-bottom: 1px solid #efebe6; vertical-align: middle; color: #1b1b1c; }
.pt-table tr:hover td { background: #fafaf7; }
.pt-table td small { display: block; color: #8a8a90; font-size: 1.3rem; }
.pt-n { color: #8a8a90 !important; width: 32px; }
.pt-game { display: flex; gap: 12px; align-items: center; min-width: 200px; }
.pt-game img { border-radius: 8px; object-fit: cover; flex: none; }
.pt-game small { display: block; }
.pt-rtp { min-width: 110px; }
.pt-rtp b { display: block; color: #188454; }
.pt-rtp i { display: block; height: 6px; border-radius: 3px; margin-top: 4px; background: linear-gradient(90deg, #188454 var(--w), #efebe6 var(--w)); }
.pt-vol { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
.pt-vol-low { background: #e5f6ec; color: #136a43; }
.pt-vol-medium { background: #fff3d6; color: #8a5a00; }
.pt-vol-high { background: #ffe4df; color: #b3261e; }
.pt-all td:nth-child(4) { min-width: 200px; }
.pt-all td:nth-child(6) { min-width: 180px; }
.pt-pickbar { position: sticky; bottom: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; max-width: 520px; margin: 16px auto 0; padding: 10px 10px 10px 24px; border-radius: 100px; background: #1c1a28; color: #fff; box-shadow: 0 12px 32px -4px rgba(27,27,28,.3); }
.pt-pickbar .pp-btn { width: auto; height: 44px; padding: 0 24px; background: #188454; }
.pt-pickbar .pp-btn.is-off { opacity: .4; pointer-events: none; }

/* compare 2 */
.pt-vs-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 20px; }
.pt-vs-pick select { width: 100%; height: 48px; font-weight: 600; }
.pt-vs-mark { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #d4db3a; color: #1b1b1c; font-weight: 800; }
.pt-vs-table { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pt-vs-col { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 4px -2px rgba(27,27,28,.06), 0 6px 8px -2px rgba(27,27,28,.08); display: flex; flex-direction: column; }
.pt-vs-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.pt-vs-head h2 { margin: 0; font-size: 2.2rem; color: #1b1b1c; }
.pt-vs-col dl { margin: 0 0 20px; flex: 1; }
.pt-vs-col dt { margin-top: 16px; padding-top: 16px; border-top: 1px solid #efebe6; font-size: 1.3rem; color: #8a8a90; text-transform: uppercase; letter-spacing: .03em; }
.pt-vs-col dd { margin: 6px 0 0; color: #1b1b1c; }
.pt-vs-col dd small { display: block; margin-top: 4px; color: #515156; }
.pt-vs-col dd.is-win .pt-rating { background: #188454; color: #fff; }
.pt-vs-col dd.is-win .pt-rating small { color: #d5f0e2; }
.pt-vs-col dd.is-win::after { content: var(--pt-win-label); margin-left: 8px; font-size: 1.2rem; font-weight: 700; color: #188454; }
.pt-verdict { margin: 20px 0 0; padding: 16px 20px; border-radius: 10px; background: #ecffce; color: #1b1b1c; }
@media (max-width: 700px) {
  .pt-vs-pick { grid-template-columns: 1fr; } .pt-vs-mark { margin: 0 auto; }
  .pt-vs-table { grid-template-columns: 1fr 1fr; gap: 10px; } .pt-vs-col { padding: 14px; } .pt-vs-head { flex-direction: column; align-items: flex-start; gap: 8px; } .pt-vs-head h2 { font-size: 1.7rem; } .pt-vs-head .pt-logo { width: 48px; height: 48px; }
  .pt-vs-col .pt-visit { padding: 0 12px; }
}

/* quiz */
.pt-quiz-wrap { max-width: 820px; }
.pt-quiz { padding: 32px; }
.pt-progress { height: 6px; border-radius: 3px; background: #efebe6; margin-bottom: 28px; overflow: hidden; }
.pt-progress i { display: block; height: 100%; width: var(--p); background: #188454; transition: width .3s; }
.pt-step { display: none; border: 0; margin: 0; padding: 0; }
.pt-step.is-on { display: block; }
.pt-step legend { font-size: 2.4rem; font-weight: 700; color: #1b1b1c; margin-bottom: 20px; padding: 0; }
.pt-step legend small { display: block; font-size: 1.3rem; font-weight: 600; color: #188454; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.pt-step legend em { font-style: normal; font-size: 1.4rem; font-weight: 400; color: #8a8a90; margin-left: 6px; }
.pt-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pt-options-2 { grid-template-columns: 1fr 1fr; }
.pt-options label { cursor: pointer; }
.pt-options input { position: absolute; opacity: 0; }
.pt-options span { display: flex; gap: 12px; align-items: center; height: 100%; padding: 16px; border-radius: 10px; box-shadow: inset 0 0 0 1px #e1dbdb; font-size: 1.6rem; color: #1b1b1c; background: #fff; box-sizing: border-box; }
.pt-options i { font-style: normal; font-size: 2.2rem; }
.pt-options label:hover span { box-shadow: inset 0 0 0 1px #188454; }
.pt-options input:checked + span { box-shadow: inset 0 0 0 2px #188454; background: #f3fbf6; }
.pt-options input:focus-visible + span { outline: 2px solid #3461f6; }
.pt-options label.is-off { opacity: .35; pointer-events: none; }
.pt-quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pt-quiz-nav .pp-btn { width: auto; padding: 0 32px; margin-left: auto; }
.pt-quiz-nav .pp-btn[disabled] { opacity: .35; cursor: default; }
.pt-quiz-nav [data-back] { margin-left: 0; }
.pt-quiz-nav [hidden], .pt-quiz[hidden], .pt-results[hidden], .pt-pickbar[hidden] { display: none !important; }
.pt-results h2 { color: #1b1b1c; }
.pt-match { display: flex; gap: 16px; align-items: center; padding: 20px; margin-bottom: 14px; border-radius: 12px; background: #fff; box-shadow: 0 4px 4px -2px rgba(27,27,28,.06), 0 6px 8px -2px rgba(27,27,28,.08); }
.pt-match:first-child { box-shadow: inset 0 0 0 2px #d4db3a, 0 6px 8px -2px rgba(27,27,28,.08); }
.pt-match-n { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #1c1a28; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; }
.pt-match-main { flex: 1; min-width: 0; }
.pt-match h3 { margin: 0 0 6px; color: #1b1b1c; }
.pt-offer-line { margin: 8px 0 4px; color: #1b1b1c; }
.pt-why { margin: 0; font-size: 1.3rem; color: #188454; font-weight: 600; }
.pt-link { color: #3461f6; margin-left: 12px; }
@media (max-width: 600px) { .pt-match { flex-wrap: wrap; } .pt-match .pt-visit { width: 100%; } .pt-options-2 { grid-template-columns: 1fr; } .pt-quiz { padding: 20px; } }

/* calculators */
.pt-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid #e1dbdb; margin-bottom: 24px; }
.pt-tabs button { flex: none; border: 0; background: none; padding: 12px 18px; font: inherit; font-size: 1.6rem; font-weight: 600; color: #8a8a90; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.pt-tabs button.is-on { color: #1b1b1c; border-bottom-color: #188454; }
.pt-calc { display: none; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.pt-calc.is-on { display: grid; }
@media (max-width: 800px) { .pt-calc.is-on { grid-template-columns: 1fr; } }
.pt-calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; background: #fff; border-radius: 12px; box-shadow: 0 4px 4px -2px rgba(27,27,28,.06), 0 6px 8px -2px rgba(27,27,28,.08); }
@media (max-width: 500px) { .pt-calc-in { grid-template-columns: 1fr; } }
.pt-calc-in label { font-size: 1.4rem; font-weight: 600; color: #1b1b1c; }
.pt-calc-in input, .pt-calc-in select { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; background: #f3f3f3; font: inherit; font-size: 1.7rem; color: #1b1b1c; }
.pt-calc-in input:focus { outline: none; border-color: #188454; background: #fff; }
.pt-calc-in small { display: block; margin-top: 4px; font-weight: 400; color: #8a8a90; font-size: 1.2rem; }
.pt-calc-out { position: sticky; top: 100px; padding: 28px; border-radius: 12px; background: linear-gradient(135deg, #0b4a32, #1d6b3f 60%, #7b9a33); color: #fff; }
.pt-calc-out p { margin: 0; font-size: 1.5rem; line-height: 2.3rem; color: #e6f2ea; }
.pt-calc-out output { display: block; margin: 6px 0 14px; font-size: 4.4rem; font-weight: 800; line-height: 1.1; color: #fff; }
.pt-calc-out output.is-neg { color: #ffb4a8; }

/* ---- layout on narrow screens ---- */
.pp-wrap:has(.pt-nav) { padding-top: 16px; }
/* tool strip: wraps on wide screens; on phones it scrolls, with a fade showing there is more */
.pt-nav { flex-wrap: wrap; overflow: visible; }
@media (max-width: 767px) {
  .pt-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
}
/* bonus cards: offer keeps its natural height, terms clamped, CTA pinned to the bottom */
.pt-offer { flex: none; }
.pt-card .pt-terms { flex: 1; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-card-cta { margin-top: 12px; flex-wrap: wrap; }
.pt-card-cta .pt-code { height: 44px; max-width: 100%; }
.pt-card-cta .pt-visit { min-width: 120px; }
.pt-badge { white-space: normal; max-width: calc(100% - 32px); line-height: 1.6rem; padding: 3px 10px; text-align: right; }
/* tables: the page never scrolls sideways, the table does — with a hint on phones */
.pt-table-wrap { max-width: 100%; }
@media (max-width: 767px) {
  .pt-table-wrap::before { content: var(--pt-swipe-label); display: block; position: sticky; left: 0; padding: 8px 16px; font-size: 1.3rem; color: #8a8a90; background: #fff; border-bottom: 1px solid #efebe6; }
  .pt-table { min-width: 640px; }
}
.pt-all input[type=checkbox] { width: 18px; height: 18px; accent-color: #188454; cursor: pointer; }
/* compare 2: rows of both columns line up (subgrid), on every width */
.pt-vs-table { grid-template-rows: repeat(12, auto); }
.pt-vs-col { display: grid; grid-row: span 12; grid-template-rows: subgrid; row-gap: 0; }
.pt-vs-col dl { display: contents; }
.pt-vs-col dt { align-self: end; }
.pt-vs-col dd { align-self: start; }
.pt-vs-col .pt-visit { align-self: end; margin-top: 20px; }
.pt-vs-col .pt-feats { list-style: disc; padding-left: 18px; }
@media (max-width: 700px) { .pt-vs-col dd.is-win::after { display: block; margin: 4px 0 0; } .pt-vs-col dd { font-size: 1.4rem; } }
/* quiz: scroll targets clear the fixed header; icons in a fixed-width slot so labels line up */
.pt-quiz, .pt-results { scroll-margin-top: 110px; }
.pt-options i { width: 28px; text-align: center; flex: none; }
/* calculators: big numbers wrap instead of pushing the card off-screen; tabs wrap on phones */
.pt-calc.is-on { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 800px) { .pt-calc.is-on { grid-template-columns: minmax(0, 1fr); } }
.pt-calc-out output { font-size: clamp(2.8rem, 8vw, 4.4rem); overflow-wrap: anywhere; }
.pt-calc-in select { font-size: 1.7rem; }
@media (max-width: 767px) { .pt-tabs { flex-wrap: wrap; overflow: visible; } .pt-tabs button { padding: 10px 12px; font-size: 1.5rem; } }
