/* Tom's Toolbox (tools.php, 12-03): the same pink tiles as the Soundboard and the Purity Test, one card per tool. */
body.tb { color: #1d161b; background: #ff5cb8 url(/assets/soundboard/tile.webp) 50% 0 / 110px; }
.tb .tpt-top { color: #fff; text-shadow: 0 1px 3px #7a0048; }
.tb-head { width: min(1080px, 100%); margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-left)) 26px; text-align: center; color: #fff; }
.tb-kick { display: inline-block; margin: 0 0 12px; padding: 7px 14px; border-radius: 999px; background: #1d161b; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; }
.tb-head h1 { margin: 0; font: 400 clamp(46px, 11vw, 104px)/.92 "Bowlby One", Impact, sans-serif; text-transform: uppercase; letter-spacing: .5px;
  text-shadow: 0 4px 0 #c4007a, 0 8px 0 #8d0058, 0 12px 18px #7a004866; }
.tb-head h1 span { display: block; }
.tb-sub { margin: 18px auto 0; max-width: 34ch; font-size: clamp(17px, 2.6vw, 21px); font-weight: 700; line-height: 1.3; text-shadow: 0 1px 3px #7a0048; }

.tb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: min(1080px, 100%); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 48px; }
.tb-card { display: flex; flex-direction: column; border-radius: 20px; background: #fff; color: inherit; text-decoration: none; overflow: hidden;
  box-shadow: 0 6px 0 #c4007a, 0 14px 26px #7a004855; transition: transform .12s ease, box-shadow .12s ease; }
.tb-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 #c4007a, 0 20px 30px #7a004866; }
.tb-card:active { transform: translateY(3px); box-shadow: 0 3px 0 #c4007a, 0 8px 16px #7a004855; }
.tb-card:focus-visible { outline: 4px solid #1d161b; outline-offset: 4px; }
.tb-img { position: relative; display: block; aspect-ratio: 1200 / 630; background: #1d161b; }
.tb-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-badge { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; background: #ffe14a; color: #1d161b; font: 400 15px/1 "Bowlby One", Impact, sans-serif; font-style: normal; box-shadow: 0 3px 0 #1d161b; }
.tb-stat { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: #1d161be6; color: #fff; font: 700 14px/1 Inter, system-ui, sans-serif; font-style: normal; font-variant-numeric: tabular-nums; }
.tb-stat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 3px #ff3b3b40; }
.tb-txt { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 4px; }
.tb-txt b { font: 400 26px/1.05 "Bowlby One", Impact, sans-serif; text-transform: uppercase; }
.tb-txt span { font-size: 16px; line-height: 1.4; color: #4a3d46; }
.tb-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 14px 20px 20px; padding: 0 20px; border-radius: 14px;
  background: #1d161b; color: #fff; font: 400 16px/1 "Bowlby One", Impact, sans-serif; box-shadow: 0 4px 0 #000, inset 0 2px 0 #ffffff3d; }
.tb-card:hover .tb-go { background: #e0007f; }

@media (max-width: 720px) {
  .tb-grid { grid-template-columns: 1fr; gap: 18px; }
  .tb-head { padding-bottom: 20px; }
  .tb-txt b { font-size: 23px; }
  .tb-go { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tb-card { transition: none; } .tb-card:hover, .tb-card:active { transform: none; } }
