/* Storage Hub — Bruno's gem quest. */
.gq-score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 4px; padding: 10px 14px; border-radius: 10px; background: linear-gradient(90deg, #0034a7, #1d4fc4); color: #fff; }
.gq-total { font-size: 15px; }
.gq-total b { font-size: 20px; color: #ffd76a; letter-spacing: .02em; }
.gq-rank { font-weight: 800; font-size: 15px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.gq-next { margin-left: auto; font-size: 13px; color: #cbd9f3; }

.gq-tile-stars { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .08em; color: #e2a51b; }
.gq-tile-stars.is-potential { color: #b7c1d3; }

.gq-clue { margin: 14px 0 6px; padding: 14px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f1d58c; color: #172847; }
.gq-clue-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.gq-clue-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #8a5a00; }
.gq-clue-worth { font-size: 13px; color: #6b5a33; }
.gq-clue-worth b { color: #e2a51b; letter-spacing: .06em; }
.gq-steps { list-style: none; margin: 8px 0 10px; padding: 0; }
.gq-step { margin: 4px 0; font-size: 15px; line-height: 1.45; }
.gq-riddle { font-style: italic; font-weight: 600; }
.gq-shelf { padding-left: 22px; position: relative; color: #4f5c6e; }
.gq-shelf::before { content: "🐾"; position: absolute; left: 0; top: 0; font-size: 14px; }
.gq-clue-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gq-clue-actions button { font: inherit; font-size: 14px; font-weight: 700; border-radius: 8px; padding: 8px 12px; cursor: pointer; border: 1px solid #d9c27f; background: #fff; color: #172847; }
.gq-clue-actions .gq-go { background: #0034a7; border-color: #0034a7; color: #fff; }
.gq-clue-actions button:hover { border-color: #0034a7; }
.gq-clue-actions button:focus-visible { outline: 3px solid #0034a7; outline-offset: 2px; }

/* the original clue panel is replaced by the ladder above */
.gem-cabinet .gem-clue-panel { display: none !important; }

.gq-challenges { margin: 16px 0 8px; padding: 14px 16px; border-radius: 12px; background: #f1f5fc; border: 1px solid #d1daef; }
.gq-ch-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gq-ch-head h5 { margin: 0; font-size: 17px; color: #0034a7; }
.gq-ch-count { font-size: 13px; font-weight: 700; color: #4f5c6e; }
.gq-ch-intro { margin: 4px 0 10px; font-size: 13.5px; color: #4f5c6e; }
.gq-ch-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gq-ch { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #e1e7f3; }
.gq-ch b { display: block; font-size: 14px; color: #172847; }
.gq-ch small { display: block; font-size: 12.5px; line-height: 1.4; color: #4f5c6e; }
.gq-ch-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #c3cde0; margin-top: 1px; }
.gq-ch.is-done { border-color: #9fc2ff; background: #f6f9ff; }
.gq-ch.is-done .gq-ch-mark { border-color: #0034a7; background: #0034a7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l2.9 2.9 6.1-6.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.gq-toast { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 10px 14px; border-radius: 10px; background: #0034a7; color: #fff; font-size: 14.5px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.gq-toast-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ffd76a; color: #0034a7; font-weight: 900; }
.gq-toast b { margin-right: 6px; }

@media (max-width: 760px) {
  .gq-ch-list { grid-template-columns: 1fr; }
  .gq-next { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .gq-toast { animation: gq-pop .35s ease-out; }
  @keyframes gq-pop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Pack the unit launcher (version 4.1) */
.gq-pack { display: flex; align-items: center; gap: 16px; margin: 16px 0 8px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #c9d6f0; box-shadow: 0 8px 20px -16px rgba(0,52,167,.6); }
.gq-pack-art { flex: none; display: grid; grid-template-columns: repeat(3, 18px); grid-template-rows: repeat(2, 18px); gap: 3px; padding: 6px; border: 2px solid #7a8798; border-radius: 4px; background: #eef2f7; }
.gq-pack-art i { border-radius: 2px; background: #2f6bff; }
.gq-pack-art i:nth-child(2) { background: #e9873a; } .gq-pack-art i:nth-child(3) { background: #3fa36a; grid-row: span 2; }
.gq-pack-art i:nth-child(4) { background: #c8473d; } .gq-pack-art i:nth-child(5) { background: #d6a419; } .gq-pack-art i:nth-child(6) { display: none; }
.gq-pack-copy { flex: 1 1 auto; min-width: 0; }
.gq-pack-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #4f5c6e; }
.gq-pack-copy h5 { margin: 2px 0 4px; font-size: 17px; color: #0034a7; }
.gq-pack-copy p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #4f5c6e; }
.gq-pack-side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gq-pack-stars { font-size: 13px; color: #4f5c6e; white-space: nowrap; }
.gq-pack-stars b { font-size: 18px; color: #e2a51b; }
.gq-pack-play { font: inherit; font-size: 14px; font-weight: 700; min-height: 42px; padding: 8px 18px; border: 0; border-radius: 8px; background: #0034a7; color: #fff; cursor: pointer; }
.gq-pack-play:hover { background: #00287f; }
.gq-pack-play:focus-visible { outline: 3px solid #e2a51b; outline-offset: 2px; }
@media (max-width: 560px) {
  .gq-pack { flex-wrap: wrap; gap: 10px 12px; }
  .gq-pack-copy { flex-basis: calc(100% - 90px); }
  .gq-pack-side { flex-direction: row; width: 100%; justify-content: space-between; }
}
