
body {
  font-family: system-ui, sans-serif;
  background: #fdfdfd;
  color: #222;
  padding: 2rem;
  margin: 0;
}
h1, h2 {
  text-align: center;
}

/* --- mini-nav --- */
.ff-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.5rem 1rem;
  border-bottom:1px solid #e5e7eb;
  font-family:system-ui,sans-serif;

  /* sticky refinement */
  position:sticky;
  top:0;                 /* stick to viewport top */
  background:#fff;       /* prevents underlying content bleed-through */
  z-index:5;             /* keep bar above long lists */
}

.ff-brand{
  font-weight:700;
  color:#2d2d2d;
  text-decoration:none;
  font-size:1rem;
}

.ff-pill{
  font-size:.8rem;
  font-weight:600;
  padding:.35rem .9rem;
  border:1px solid #646cff;
  border-radius:999px;
  color:#646cff;
  text-decoration:none;
}

/* put this just below the .ff-pill rule */
.ff-link{
  text-decoration:none;
  font-weight:600;
  color:#646cff;          /* same violet you use on .ff-pill */
}
.ff-link:hover{color:#3e4bd3;}

.ff-pill:hover{background:#f1f3ff}

button {
  font-size: 1.05rem;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 5px;
  background: #5562f7;
  color: white;
  cursor: pointer;
}
button:hover {
  background: #3e4bd3;
}
#suggestButton {
  width: 100%;
  margin: 1em auto;
  display: block;
}
#suggestionDisplay {
  text-align: center;
  margin: 1em 0;
}
#suggestedTopicLink {
  display: inline-block;
  font-size: 1.75rem;     /* Increased size */
  font-weight: bold;
  text-decoration: underline;
  color: #1064c4;
  margin: 1em 0 1.5em 0;  /* More breathing room */
}
.hint {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}
.gear {
  display: block;
  margin: 2em auto 0 auto;
  background: #ddd;
  color: #333;
  font-size: 1.5rem;
}

#itemList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  padding: 0.5em;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

#itemList li button {
  background-color: #e63946;
  border: none;
  color: white;
  border-radius: 6px;
  padding: 0.3em 0.7em;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

#itemList li button {
  background-color: #eee;
  color: #e63946;
  font-size: 1.2rem;
  font-weight: bold;
  border: 2px solid #e63946;
  border-radius: 6px;
  padding: 0.2em 0.6em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

#itemList li button:hover {
  background-color: #e63946;
  color: white;
}
select {
  font-size: 1.25rem;
  padding: 0.5em 0.75em;
}

/* ——— Floating “?” button ——— */
#helpBtn{
  position:fixed;
  bottom:1rem; right:1rem;
  width:44px; height:44px;
  border-radius:50%; border:none;
  background:#e7e7e7; color:#333;
  font-weight:700; font-size:1.25rem;
  /* NEW ↓ – keeps the glyph dead-center on every OS/font */
  display:flex; align-items:center; justify-content:center;

  box-shadow:0 2px 6px rgba(0,0,0,.15);
  cursor:pointer; z-index:1000;
}
#helpBtn:hover{ background:#d0d0d0; }

/* ——— Half-sheet dialog ——— */
#helpSheet{
  width:100%; max-width:500px;
  border:none; border-radius:16px 16px 0 0;
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  padding:1.2rem 1.5rem 2rem;
  box-shadow:0 -4px 20px rgba(0,0,0,.25);
}
#helpSheet::backdrop{background:rgba(0,0,0,.4);}
#helpSheet h2{margin-top:0;}
#closeHelp{
  position:absolute; top:.5rem; right:.75rem;
  background:none; border:none; font-size:1.25rem; cursor:pointer;
}

/* ——— First-run toast ——— */
#ffmToast{
  position:fixed;
  bottom:6rem; left:50%; transform:translateX(-50%);
  background:#333; color:#fff;
  padding:.6rem 1rem; border-radius:5px;
  font-size:.9rem; box-shadow:0 2px 6px rgba(0,0,0,.2);
  z-index:1000;
  animation:fadein .4s;
}
@keyframes fadein{from{opacity:0;transform:translate(-50%,1rem);}to{opacity:1;}}

/* Small devices: bump the help button up if it collides with system bars */
@media (min-width:600px){
  #helpBtn{bottom:1.5rem; right:1.5rem;}
}

.screenshot{
  border:1px solid #e0e0e0;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}

