/* The colours belong to the four rarity levels; the words carry the same information. */
.fg-badge,.fg-note,.fg-trail { --fg-ink:#155e57; --fg-tint:#e6f6e9; }
[data-rarity="2"] { --fg-ink:#125982; --fg-tint:#e4f4fc; }
[data-rarity="3"] { --fg-ink:#62418b; --fg-tint:#f4ecfb; }
[data-rarity="4"] { --fg-ink:#8a461a; --fg-tint:#fff0d4; }
.fg-badge { display:inline-flex; align-items:center; width:fit-content; gap:.45em; padding:3px 8px; border:1px solid var(--fg-ink); border-radius:20px; background:var(--fg-tint); color:var(--fg-ink); font-size:12px; line-height:1.4; font-weight:800; white-space:nowrap; }
.fg-stars { color:var(--fg-ink); letter-spacing:.03em; }
.fg-guide { margin:10px 0 12px; border:1px solid #adcfc8; border-radius:14px; background:#fffdf6; color:#234c51; overflow:hidden; }
.fg-guide summary,.fg-answer summary { list-style:none; cursor:pointer; }
.fg-guide summary::-webkit-details-marker,.fg-answer summary::-webkit-details-marker { display:none; }
.fg-guide > summary { display:flex; align-items:center; gap:9px; padding:5px 14px; min-height:44px; font-size:14px; font-weight:800; }
.fg-guide-mark { display:grid; place-items:center; width:28px; height:28px; color:#ffe081; background:#155d65; border-radius:50%; box-shadow:inset 0 0 0 2px #fff7; }
.fg-chevron { margin-left:auto; font:700 20px/1 sans-serif; color:inherit; }
details[open] > summary > .fg-chevron { transform:rotate(180deg); }
.fg-guide-content { padding:0 14px 14px; }
.fg-guide-content > p { margin:4px 0 12px; font-size:13px; line-height:1.65; }
.fg-trails { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,216px),1fr)); gap:8px; list-style:none; padding:0; margin:0; }
.fg-trail { display:flex; align-items:center; gap:10px; height:100%; padding:9px; border:1px solid #cddbd7; border-radius:10px; background:white; text-decoration:none; color:#264951; }
.fg-trail img,.fg-trail .art { flex:none; width:42px; height:42px; object-fit:contain; }
.fg-trail-copy { display:grid; gap:3px; }
.fg-trail-clue { font-size:12px; line-height:1.55; }
.fg-trail-link { font-size:12px; line-height:1.5; color:var(--fg-ink); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.fg-guide summary:focus-visible,.fg-trail:focus-visible,.fg-answer summary:focus-visible { outline:3px solid #006596; outline-offset:-3px; }
.fg-note { margin:8px 0 14px; padding:12px 16px 7px; border:1px solid #c7d6cf; border-left:4px solid var(--fg-ink); border-radius:12px; background:linear-gradient(110deg,var(--fg-tint),#fffcf4 88%); color:#253f47; text-align:left; }
.fg-note .fg-note-title { display:flex; align-items:center; gap:6px; margin:0 0 4px; color:var(--fg-ink); font-size:13px; font-weight:700; line-height:1.5; }
.fg-note-title .c-icon { width:16px; height:16px; }
.fg-note .fg-question { font-size:16px; line-height:1.65; font-weight:700; margin:0; }
.fg-answer { margin-top:4px; }
.fg-answer summary { display:flex; align-items:center; gap:10px; width:fit-content; max-width:100%; min-height:40px; font-size:13px; font-weight:700; color:var(--fg-ink); text-decoration:underline; text-underline-offset:3px; }
.fg-answer p { border-top:1px dashed #b1c5ba; margin:0; padding:8px 0 4px; line-height:1.75; font-size:14px; }
@media (max-width:360px) { .fg-note { padding-inline:10px; } .fg-badge { gap:4px; padding-inline:6px; } }

.fg-book-ref { display:inline-flex; align-items:center; gap:4px; font-size:12px; line-height:1.5; color:#415957; font-weight:700; }
.fg-book-ref .c-icon { width:15px; height:15px; }

.sht-meta .fg-badge { max-width:100%; min-width:0; box-sizing:border-box; flex-wrap:wrap; gap:2px 5px; }
.sht-meta .fg-badge > span { flex:none; }

.fg-rally-link { display:inline-flex; align-items:center; gap:7px; max-width:100%; min-height:44px; margin:4px 0 6px; padding:7px 12px; border:1px solid #b28637; border-radius:12px; background:#ffedb6; color:#553e18; font:inherit; font-size:14px; font-weight:700; text-align:left; cursor:pointer; }
.fg-rally-link .c-icon { flex:none; width:17px; height:17px; }
.fg-rally-link:focus-visible { outline:3px solid #006596; outline-offset:2px; }
.fg-guide-content > .fg-rally-tip { margin:12px 0 0; }
