/* FE: new-player help (fe-onboarding.js) and the folded "More options" in game setup.
   Colours follow the game's own panels in style.css. */

/* "How to win" card, top of the pre-match column beside Your purchases. */
#fe-how-to{pointer-events:auto;padding:10px 12px;background:#102126f0;border:1px solid #edc18a;border-radius:6px;color:#fff3d5;text-shadow:none;max-height:calc(100dvh - 400px);min-height:0;overflow-y:auto}
#fe-how-to summary{list-style:none;cursor:pointer;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#edc18a}
#fe-how-to summary::-webkit-details-marker{display:none}
#fe-how-to summary:focus-visible{outline:2px solid #ffd99a;outline-offset:3px}
#fe-how-to .fe-how-to-open{display:none;justify-content:space-between;align-items:baseline}
#fe-how-to[open] .fe-how-to-open{display:flex}
#fe-how-to[open] .fe-how-to-closed{display:none}
#fe-how-to .fe-how-to-closed::before{content:'?';display:inline-grid;place-items:center;width:18px;height:18px;margin-right:8px;border-radius:50%;background:#edc18a;color:#14272b;font-size:12px}
#fe-how-to .fe-how-to-open small{font-size:11px;font-weight:600;color:#ced5cc;letter-spacing:.04em}
#fe-how-to:not([open]){padding:9px 12px;background:#102126e8;border-color:#c6ad7870}
#fe-how-to:not([open]):hover{border-color:#edc18a}
#fe-how-to ol{margin:8px 0 0;padding-left:18px;font-size:13.5px;line-height:1.4}
#fe-how-to li{margin-bottom:6px;padding-left:2px}
#fe-how-to li::marker{color:#edc18a;font-weight:700}
#fe-how-to strong{color:#ffe1a5}
#fe-how-to p{margin:8px 0 0;padding-top:8px;border-top:1px solid #c6ad7855;font-size:13px;line-height:1.4;color:#e3e6dc}
#fe-how-to kbd,#fe-hint kbd{display:inline;padding:0 4px;border:1px solid #fff3d5;border-bottom-width:2px;border-radius:3px;background:#ffdf9d;color:#14272b;font:700 11px/1.25 Barlow,Arial,sans-serif;text-align:center}
@media(max-height:820px){#fe-how-to{max-height:calc(100dvh - 420px)}#fe-how-to ol{font-size:12.5px;line-height:1.3}#fe-how-to li{margin-bottom:3px}#fe-how-to p{font-size:12px;line-height:1.3;padding-top:6px;margin-top:6px}}
@media(min-width:1100px){#prematch{width:310px}}
@media(max-width:600px){#fe-how-to ol{font-size:11px}#fe-how-to p{font-size:11px}}

/* One-time hints during the first battle. */
#fe-hint{position:fixed;left:50%;bottom:250px;transform:translateX(-50%);z-index:3;width:max-content;max-width:min(460px,90vw);padding:12px 18px;background:#102126f2;border:1px solid #edc18a;border-radius:6px;color:#fff3d5;font-size:17px;font-weight:600;line-height:1.35;text-align:center;pointer-events:none;box-shadow:0 8px 28px #071213a6;animation:fe-hint-in .25s ease-out}
#fe-hint[hidden]{display:none}
@keyframes fe-hint-in{from{opacity:0;transform:translate(-50%,8px)}}
@media(prefers-reduced-motion:reduce){#fe-hint{animation:none}}
@media(max-height:600px){#fe-hint{bottom:200px;font-size:15px}}

/* Game setup: Handicap, Catch-up and Unlimited ammo fold away under "More options". */
.fe-more-options{margin:12px 0 8px}
.fe-more-options summary{cursor:pointer;display:flex;align-items:baseline;gap:10px;padding:9px 14px;border:1px solid #dce4d242;background:#142126a6;font-size:14px;letter-spacing:.08em}
.fe-more-options summary small{font-size:12px;letter-spacing:.02em;color:#ced5cc}
.fe-more-options[open] summary{border-color:#edc18a}
.fe-more-options .balance-options{margin:10px 0 0!important}
@media(min-width:900px){#game-setup>.fe-more-options{grid-column:2}}
