.tool-page { padding: 120px 0 80px; min-height: 100vh; }
.tool-header { margin-bottom: 40px; }
.back-link { display:inline-flex; align-items:center; gap:8px; color:var(--text-muted); font-size:13px; font-family:var(--font-head); margin-bottom:24px; transition:color var(--transition); }
.back-link:hover { color:var(--cyan); }
.tool-title { font-family:var(--font-head); font-size:clamp(28px,5vw,44px); font-weight:700; margin:12px 0 16px; }
.tool-desc { color:var(--text-muted); font-size:16px; max-width:580px; }

.holdem-layout { display:grid; grid-template-columns:1fr 300px; gap:24px; align-items:start; }
@media(max-width:860px) { .holdem-layout { grid-template-columns:1fr; } }

.calc-card { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px; margin-bottom:24px; }
.calc-card:last-child { margin-bottom:0; }
.calc-card h3 { font-family:var(--font-head); font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); margin-bottom:20px; }

/* Card slots */
.card-slots { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.card-slot {
  width:60px; height:84px; border-radius:8px;
  border:2px dashed var(--border); background:var(--bg-3);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all var(--transition); position:relative;
  flex-shrink:0;
}
.card-slot:hover { border-color:var(--cyan); }
.card-slot.active { border-color:var(--cyan); border-style:solid; box-shadow:0 0 12px rgba(0,255,209,.3); }
.card-slot.filled { border-style:solid; border-color:rgba(255,255,255,.15); cursor:pointer; padding:0; }
.card-slot__plus { font-size:20px; color:var(--text-muted); }
.card-slot__label { font-size:9px; color:var(--text-muted); font-family:'Press Start 2P',monospace; margin-top:4px; text-align:center; line-height:1.4; }
.card-slot__wrap { display:flex; flex-direction:column; align-items:center; gap:4px; }

/* Playing card face */
.pcard {
  width:100%; height:100%; border-radius:7px; background:#fff;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:5px; font-family:'Space Grotesk',sans-serif; font-weight:700;
}
.pcard.red { color:#cc0000; }
.pcard.black { color:#111; }
.pcard__top { font-size:13px; line-height:1.1; }
.pcard__center { font-size:22px; text-align:center; line-height:1; }
.pcard__bot { font-size:13px; line-height:1.1; transform:rotate(180deg); align-self:flex-end; }

.card-slot .remove-x {
  position:absolute; top:-7px; right:-7px; width:18px; height:18px;
  background:var(--pink); border-radius:50%; font-size:10px; color:#fff;
  display:flex; align-items:center; justify-content:center; z-index:2;
  opacity:0; transition:opacity .2s;
}
.card-slot.filled:hover .remove-x { opacity:1; }

/* 52-card picker */
.picker-section { margin-top:20px; }
.picker-label { font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:12px; }
.picker-active-hint { font-size:13px; color:var(--cyan); margin-bottom:12px; min-height:18px; }

.card-picker { display:grid; grid-template-columns:repeat(13,1fr); gap:4px; }
@media(max-width:600px) { .card-picker { grid-template-columns:repeat(10,1fr); gap:3px; } }

.picker-card {
  aspect-ratio:2/3; border-radius:4px; background:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  cursor:pointer; font-family:'Space Grotesk',sans-serif; font-weight:700;
  font-size:10px; line-height:1.2; padding:2px; text-align:center;
  border:1.5px solid transparent; transition:all .15s;
}
.picker-card.red { color:#cc0000; }
.picker-card.black { color:#111; }
.picker-card:hover:not(.used) { transform:translateY(-2px); box-shadow:0 0 8px rgba(0,255,209,.4); border-color:var(--cyan); }
.picker-card.used { opacity:.2; cursor:not-allowed; pointer-events:none; }
.picker-card__suit { font-size:11px; }

/* Suit section headers */
.picker-suit-row { display:contents; }

/* Opponents control */
.opp-row { display:flex; align-items:center; gap:12px; }
.opp-btn {
  width:34px; height:34px; border:1px solid var(--border); background:var(--bg-3);
  color:var(--text); font-family:var(--font-head); font-size:16px; border-radius:var(--radius);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:all var(--transition);
}
.opp-btn:hover { border-color:var(--cyan); color:var(--cyan); }
.opp-display { font-family:'Press Start 2P',monospace; font-size:14px; color:var(--cyan); min-width:20px; text-align:center; }

/* Results */
.result-sticky { position:sticky; top:100px; }
.equity-bar-wrap { margin-bottom:20px; }
.equity-bars { height:24px; border-radius:6px; overflow:hidden; display:flex; }
.equity-bar-win  { background:linear-gradient(90deg,var(--green),#1aad00); transition:width .5s ease; }
.equity-bar-tie  { background:linear-gradient(90deg,#FF9D00,#cc7700); transition:width .5s ease; }
.equity-bar-loss { background:linear-gradient(90deg,var(--pink),#cc0030); transition:width .5s ease; }
.equity-legend { display:flex; gap:16px; margin-top:10px; }
.eq-leg { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); }
.eq-dot { width:10px; height:10px; border-radius:2px; }

.result-num { font-family:var(--font-head); font-size:28px; font-weight:700; }
.result-num.win { color:var(--green); }
.result-num.tie { color:#FF9D00; }
.result-num.loss { color:var(--pink); }

.result-row { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--border); }
.result-row:last-child { border-bottom:none; }
.result-row__label { font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; }

.hand-name-display {
  padding:16px; background:var(--bg-3); border-radius:var(--radius);
  text-align:center; margin-bottom:16px;
}
.hand-name-display__label { font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.hand-name-display__val { font-family:'Press Start 2P',monospace; font-size:12px; color:var(--cyan); line-height:1.6; }

.calc-btn-wrap { margin-top:4px; }
.sim-status { font-size:12px; color:var(--text-muted); margin-top:10px; min-height:16px; }

.preflop-strength { margin-top:16px; padding:14px; background:var(--bg-3); border-radius:var(--radius); }
.preflop-strength__label { font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px; }
.preflop-bar { height:6px; background:rgba(255,255,255,.08); border-radius:3px; overflow:hidden; }
.preflop-bar__fill { height:100%; border-radius:3px; background:linear-gradient(90deg,var(--cyan),var(--green)); transition:width .4s ease; }
.preflop-bar__label { font-size:12px; color:var(--text); margin-top:6px; font-family:var(--font-head); font-weight:600; }

/* ── Content / Tips / FAQ section ───────────────────── */
.tool-content-section {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}
.tool-content-section h2 {
  font-family: var(--font-head); font-size: clamp(18px, 3vw, 26px); font-weight: 700;
  margin: 40px 0 12px;
}
.tool-content-section h2:first-child { margin-top: 0; }
.tool-content-section p {
  color: var(--text-muted); font-size: 15px; line-height: 1.75; max-width: 1200px;
  margin-bottom: 12px;
}

.content-table-wrap { overflow-x: auto; margin: 20px 0 32px; max-width: 1200px; }
.content-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.content-table th {
  font-family: var(--font-head); font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); text-align: left;
  padding: 10px 16px; border-bottom: 1px solid var(--border-bright);
}
.content-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px;
}
.content-table td:first-child { font-family: var(--font-head); font-weight: 700; color: var(--pink); }
.content-table tbody tr:last-child td { border-bottom: none; }
.content-table tbody tr:hover td { background: var(--bg-2); }

.tips-list { display: flex; flex-direction: column; gap: 2px; margin: 20px 0 32px; max-width: 1200px; }
.tip-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  border-left: 3px solid var(--pink);
  transition: border-color var(--transition), background var(--transition);
}
.tip-item:hover { background: rgba(255,46,99,0.03); }
.tip-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--pink); margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255,46,99,0.3);
}
.tip-item p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0; max-width: none; }

.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; max-width: 1200px; }
.faq-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-family: var(--font-head); font-size: 14px; font-weight: 600;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 18px; color: var(--pink); transition: transform var(--transition);
  flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--pink); }
.faq-item p { padding: 0 20px 16px; margin: 0; border-top: 1px solid var(--border); }
