/* Story quest card (js/questhelper.js) + the Battle Basics tutorial card (main.js), stacked in #quests.
   Desktop: a clean card with the current step and a progress bar. Touch: a compact chip (mobile.css). */
.sq {
  position: relative; overflow: hidden; color: var(--text, #f2f5ff); font-family: Nunito, system-ui, sans-serif;
  background: var(--panel, rgba(13, 21, 44, .86)); border: 1px solid var(--line-2, rgba(170, 195, 255, .26)); border-radius: 16px;
  box-shadow: 0 3px 10px rgba(2, 6, 20, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sq-head {
  width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 12px 9px; text-align: left;
  color: inherit; font: inherit; cursor: pointer;
}
.sq-ic { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 10px; color: #3a2400; background: linear-gradient(#ffe07a, #f0a51c); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(0,0,0,.25); }
.sq-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sq-act { font-size: 10.5px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--muted, #a3b3d9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-title { color: var(--gold, #ffcf4a); font-weight: 900; font-size: 15px; line-height: 1.2; }
.sq-count { font-size: 12px; font-weight: 900; color: var(--muted, #a3b3d9); font-variant-numeric: tabular-nums; }
.sq-chev { width: 20px; height: 20px; flex: none; color: var(--muted, #a3b3d9); transition: transform .18s; transform: rotate(180deg); }
.sq.collapsed .sq-chev { transform: none; }
.sq-body { padding: 0 12px 10px 52px; }
.sq.collapsed .sq-body { display: none; }
.sq-desc { font-size: 13px; font-weight: 700; line-height: 1.4; color: #dde5ff; }
.sq-reward { font-size: 12px; color: #ffd98a; margin-top: 5px; font-weight: 800; }
.sq-side { font-size: 12px; font-weight: 800; color: var(--muted, #a3b3d9); margin-top: 4px; }
.sq-side span { color: #ffd98a; font-weight: 700; }
.sq-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sq-where { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: #c8e7ff; }
.sq-where svg { width: 15px; height: 15px; flex: none; }
.sq-log { flex: none; border: 1px solid var(--line-2, rgba(170,195,255,.26)); background: rgba(255,255,255,.07); color: #fff; font: 800 12px Nunito, sans-serif; padding: 5px 10px; border-radius: 9px; cursor: pointer; min-height: 30px; }
.sq-log:hover { background: rgba(255,255,255,.14); }
.sq-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .35); }
.sq-bar > div { height: 100%; background: linear-gradient(90deg, #ffd85e, #f3a51e); transition: width .4s; }

/* tutorial: a second, smaller card under the story card (never over the player) */
.tut {
  padding: 9px 12px 10px; font-size: 12.5px; cursor: pointer; color: var(--text, #f2f5ff);
  background: var(--panel, rgba(13, 21, 44, .86)); border: 1px solid rgba(255, 207, 74, .45); border-radius: 16px;
  box-shadow: 0 3px 10px rgba(2, 6, 20, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tut[hidden] { display: none; }
.tut-head { display: flex; align-items: center; gap: 8px; }
.tut-head b { flex: 1; font-size: 13.5px; color: var(--gold, #ffcf4a); }
.tut-badge { font-size: 9.5px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: #3a2400; background: var(--gold, #ffcf4a); border-radius: 6px; padding: 1px 6px; }
.tut-n { font-size: 12px; font-weight: 900; color: var(--muted, #a3b3d9); }
.tut-bar { height: 3px; border-radius: 2px; background: rgba(0,0,0,.35); margin: 7px 0 6px; overflow: hidden; }
.tut-bar > div { height: 100%; background: linear-gradient(90deg, #ffd85e, #f3a51e); transition: width .4s; }
.tut-step { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--muted, #a3b3d9); padding: 2px 0; }
.tut-step i { width: 14px; height: 14px; flex: none; margin-top: 2px; border-radius: 50%; border: 2px solid currentColor; }
.tut-step small { display: block; font-weight: 700; color: #c8e7ff; }
.tut-step.now { color: #fff; }
.tut-step.now i { border-color: var(--gold, #ffcf4a); box-shadow: inset 0 0 0 3px var(--panel-solid, #121c3a); background: var(--gold, #ffcf4a); }
.tut-step.done { opacity: .6; }
.tut-step.done i { background: #3ee07a; border-color: #3ee07a; }
.tut-reward { margin-top: 5px; color: #ffd25a; font-weight: 800; font-size: 12px; }
