/* 101 Thing tools. Brand: orange #FF7A18, Bricolage Grotesque + Inter, hard 2px #222 borders and offset shadows. */
.bt-tool, .bt-tool * { box-sizing: border-box; }
.bt-tool {
  --bt-pri: var(--pri-color, #FF7A18);
  --bt-grad: linear-gradient(135deg, #FF7A18 0%, #FFB347 100%);
  --bt-ink: #171717;
  --bt-line: #222;
  --bt-cream: #FFFBE8;
  --bt-head: var(--headFont, 'Bricolage Grotesque', sans-serif);
  --bt-body: var(--bodyFont, 'Inter', sans-serif);
  position: relative;
  margin: 28px 8px 36px 0;
  padding: clamp(16px, 4vw, 32px);
  background: #fff;
  color: var(--bt-ink);
  border: 2px solid var(--bt-line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--bt-line);
  font-family: var(--bt-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) { .bt-tool { box-shadow: 8px 8px 0 var(--bt-line); } }
.bt-tool > * + * { margin-top: 18px; }
.bt-tool .bt-sr { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* labels, chips */
.bt-tool .bt-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #343434; }
.bt-tool .bt-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -4px; padding: 4px 4px 10px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bt-tool .bt-chips::-webkit-scrollbar { display: none; }
.bt-tool .bt-chip {
  flex: 0 0 auto; scroll-snap-align: start; min-height: 44px; padding: 8px 18px;
  border: 2px solid var(--bt-line); border-radius: 999px; background: #fff; color: var(--bt-ink);
  font: 600 15px/1.2 var(--bt-body); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: background .12s, box-shadow .12s, transform .12s;
}
.bt-tool .bt-chip[aria-pressed="true"] { background: var(--bt-pri); box-shadow: 3px 3px 0 var(--bt-line); font-weight: 800; }
.bt-tool .bt-chip:active { transform: translate(2px, 2px); }
@media (min-width: 768px) { .bt-tool .bt-chips { flex-wrap: wrap; overflow: visible; padding-bottom: 8px; } }

/* stage: the big card */
.bt-tool .bt-stage, .bt-tool .bt-result {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  min-height: clamp(180px, 34vw, 240px); padding: clamp(22px, 5vw, 40px);
  background: var(--bt-cream); border: 2px solid var(--bt-line); border-radius: 8px; box-shadow: 4px 4px 0 var(--bt-line);
}
.bt-tool .bt-tag { display: inline-block; padding: 4px 12px; background: var(--bt-grad); border: 2px solid var(--bt-line); border-radius: 999px; font: 700 13px/1.4 var(--bt-body); color: var(--bt-ink); }
.bt-tool .bt-q { margin: 0; font-family: var(--bt-head); font-weight: 800; font-size: clamp(1.55rem, 5.4vw, 2.5rem); line-height: 1.16; letter-spacing: -.01em; color: var(--bt-ink); text-wrap: balance; overflow-wrap: anywhere; }
.bt-tool .bt-q--sm { font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 700; }
.bt-tool .bt-pop { animation: bt-pop .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes bt-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* buttons */
.bt-tool .bt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 2px solid var(--bt-line); border-radius: 8px; box-shadow: 4px 4px 0 var(--bt-line); color: var(--bt-ink);
  font: 700 16px/1 var(--bt-body); cursor: pointer; text-decoration: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .1s ease-out, box-shadow .1s ease-out, background .1s;
}
.bt-tool .bt-btn--primary { background: var(--bt-grad); font-weight: 800; font-size: 17px; width: 100%; }
.bt-tool .bt-btn--ghost { background: #fff; }
.bt-tool .bt-btn[aria-pressed="true"] { background: var(--bt-pri); }
.bt-tool .bt-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--bt-line); }
.bt-tool .bt-ico { display: inline-flex; }
.bt-tool .bt-actions { display: grid; gap: 14px; }
.bt-tool .bt-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bt-tool .bt-sub--2 { grid-template-columns: repeat(2, 1fr); }
.bt-tool .bt-sub .bt-btn { padding: 0 10px; font-size: 15px; }
@media (min-width: 640px) {
  .bt-tool .bt-actions { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr); align-items: start; }
}

/* this or that */
.bt-tool .bt-duel { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bt-tool .bt-opt {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 170px; padding: 22px 18px; text-align: center;
  background: #fff; color: var(--bt-ink); border: 2px solid var(--bt-line); border-radius: 8px; box-shadow: 4px 4px 0 var(--bt-line);
  font: 800 clamp(1.3rem, 4.4vw, 2rem)/1.15 var(--bt-head); overflow-wrap: anywhere; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform .1s ease-out, box-shadow .1s ease-out, background .15s, opacity .15s;
}
.bt-tool .bt-opt:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--bt-line); }
.bt-tool .bt-opt.is-picked { background: var(--bt-grad); }
.bt-tool .bt-opt.is-picked::after { content: '\2713'; position: absolute; top: 10px; right: 14px; font: 800 20px/1 var(--bt-body); }
.bt-tool .bt-opt.is-dim { opacity: .55; background: var(--bt-cream); }
.bt-tool .bt-or { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; transform: translate(-50%, -50%); background: var(--bt-ink); color: #fff; border: 3px solid #fff; border-radius: 50%; font: 800 15px/1 var(--bt-head); pointer-events: none; }
.bt-tool .bt-status { margin: 0; text-align: center; font-weight: 600; color: #343434; min-height: 1.5em; }
@media (max-width: 639px) { .bt-tool .bt-duel { grid-template-columns: 1fr; } .bt-tool .bt-opt { min-height: 112px; } }

/* inputs */
.bt-tool .bt-input { width: 100%; min-height: 52px; padding: 0 16px; background: #fff; color: var(--bt-ink); border: 2px solid var(--bt-line); border-radius: 8px; font: 500 16px/1.2 var(--bt-body); box-shadow: 3px 3px 0 var(--bt-line); }
.bt-tool .bt-input:focus { outline: 3px solid var(--bt-pri); outline-offset: 2px; }
.bt-tool .bt-input::placeholder { color: #767676; }

/* links, saved */
.bt-tool .bt-more { display: inline-block; font-weight: 700; color: var(--bt-ink); text-decoration: underline; text-decoration-color: var(--bt-pri); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.bt-tool .bt-saved { border: 2px solid var(--bt-line); border-radius: 8px; background: #fff; }
.bt-tool .bt-saved summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.bt-tool .bt-saved ul { margin: 0; padding: 0 16px 8px; list-style: none; }
.bt-tool .bt-saved li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 2px solid #eee; }
.bt-tool .bt-x { flex: 0 0 auto; width: 44px; height: 44px; margin: -8px -10px -8px 0; background: transparent; border: 0; font-size: 26px; line-height: 1; color: #343434; cursor: pointer; touch-action: manipulation; }

/* quiz */
.bt-tool .bt-qhead { display: flex; align-items: center; justify-content: space-between; }
.bt-tool .bt-back { min-height: 44px; padding: 0 8px; background: none; border: 0; font: 700 15px var(--bt-body); color: var(--bt-ink); text-decoration: underline; text-decoration-color: var(--bt-pri); text-decoration-thickness: 3px; cursor: pointer; touch-action: manipulation; }
.bt-tool .bt-progress { height: 14px; margin: 4px 0 20px; background: #fff; border: 2px solid var(--bt-line); border-radius: 999px; overflow: hidden; }
.bt-tool .bt-progress span { display: block; height: 100%; background: var(--bt-grad); border-right: 2px solid var(--bt-line); transition: width .25s ease-out; }
.bt-tool .bt-qq { margin: 0 0 18px; font: 800 clamp(1.4rem, 5vw, 2.1rem)/1.18 var(--bt-head); letter-spacing: -.01em; color: var(--bt-ink); text-wrap: balance; }
.bt-tool .bt-qq:focus { outline: none; }
.bt-tool .bt-choices { display: grid; gap: 12px; }
.bt-tool .bt-choice {
  width: 100%; min-height: 58px; padding: 14px 18px; text-align: left; background: #fff; color: var(--bt-ink); border: 2px solid var(--bt-line); border-radius: 8px; box-shadow: 3px 3px 0 var(--bt-line);
  font: 600 16px/1.35 var(--bt-body); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .1s ease-out, box-shadow .1s ease-out, background .1s;
}
.bt-tool .bt-choice:active, .bt-tool .bt-choice.is-picked { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--bt-line); }
.bt-tool .bt-choice.is-picked { background: var(--bt-grad); }
.bt-tool .bt-result { align-items: stretch; gap: 16px; }
.bt-tool .bt-result .bt-tag { align-self: flex-start; }
.bt-tool .bt-rtitle { margin: 0; font: 800 clamp(2rem, 8vw, 3.2rem)/1.05 var(--bt-head); letter-spacing: -.02em; }
.bt-tool .bt-rtitle:focus { outline: none; }
.bt-tool .bt-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bt-tool .bt-checks li { position: relative; padding-left: 30px; font-weight: 600; }
.bt-tool .bt-checks li::before { content: '\2713'; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; background: var(--bt-pri); border: 2px solid var(--bt-line); border-radius: 50%; font: 800 12px/1 var(--bt-body); }
.bt-tool .bt-two { display: grid; gap: 12px; }
.bt-tool .bt-note { padding: 14px 16px; background: #fff; border: 2px solid var(--bt-line); border-radius: 8px; }
.bt-tool .bt-note--go { background: #fff3e6; }
.bt-tool .bt-note p { margin: 4px 0 0; }
@media (min-width: 640px) { .bt-tool .bt-two { grid-template-columns: 1fr 1fr; } }

/* fallback before JS runs */
.bt-tool .bt-fallback ul { margin: 8px 0 0; padding-left: 20px; }
.bt-tool .bt-fallback li { margin: 6px 0; }

/* toast */
.bt-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 99999; max-width: calc(100vw - 32px); padding: 12px 20px; transform: translate(-50%, 16px); background: #171717; color: #fff; border: 2px solid #fff; border-radius: 8px; font: 700 15px/1.2 var(--bodyFont, 'Inter', sans-serif); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.bt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* about + FAQ under each tool */
.bt-about { margin: 8px 0 32px; }
.bt-about h2 { margin: 28px 0 10px; font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
.bt-about p { margin: 0 0 12px; }
.bt-faq { margin: 0 0 12px; border: 2px solid #222; border-radius: 8px; background: #fff; }
.bt-faq summary { display: flex; align-items: center; min-height: 52px; padding: 10px 16px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.bt-faq[open] { background: #FFFBE8; box-shadow: 4px 4px 0 #222; }
.bt-faq p { margin: 0; padding: 0 16px 16px; }

/* focus + hover + motion */
.bt-tool button:focus-visible, .bt-tool a:focus-visible, .bt-tool summary:focus-visible, .bt-about summary:focus-visible { outline: 3px solid var(--bt-ink, #171717); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .bt-tool .bt-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bt-line); }
  .bt-tool .bt-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--bt-line); }
  .bt-tool .bt-chip:hover { background: #fff3e6; }
  .bt-tool .bt-chip[aria-pressed="true"]:hover { background: var(--bt-pri); }
  .bt-tool .bt-opt:hover:not(.is-picked) { background: var(--bt-cream); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bt-line); }
  .bt-tool .bt-choice:hover { background: var(--bt-cream); }
}
@media (prefers-reduced-motion: reduce) {
  .bt-tool *, .bt-toast { animation: none !important; transition: none !important; }
}
