/* Feed and Grow Fish 3D : page-specific styles (shared styles come from the hub kit) */
#game-root .sim-controls-help { margin-top: 14px; }
#game-root .ak-pick.is-locked { opacity: .55; }
.sim-result[hidden] { display: none; }
.fg-perk { margin: 8px 0 0; font-size: 14px; opacity: .9; }
/* you: species, stage, growth / health / dash bars */
.fg-me { position: absolute; left: 12px; top: 10px; width: 210px; background: rgba(4, 18, 34, .74); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 7px 10px 8px; pointer-events: none; display: flex; flex-direction: column; gap: 4px; }
.fg-me__t { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font: 900 14px system-ui, sans-serif; }
.fg-me__i { font-size: 18px; }
.fg-me__t small { flex-basis: 100%; font: 700 11.5px system-ui, sans-serif; color: #fde047; }
.fg-bar { position: relative; height: 13px; border-radius: 7px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.fg-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; transition: width .25s; }
.fg-bar span { position: absolute; inset: 0; font: 800 9.5px/13px system-ui, sans-serif; text-align: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); letter-spacing: .03em; }
.fg-bar--xp i { background: linear-gradient(90deg, #22d3ee, #a3e635); }
.fg-bar--hp i { background: linear-gradient(90deg, #ef4444, #f97316 40%, #22c55e); }
.fg-bar--hp.is-low { animation: fg-blink .6s steps(2) infinite; }
.fg-bar--st { height: 7px; } .fg-bar--st i { background: #fde047; } .fg-bar--st span { display: none; }
@keyframes fg-blink { 50% { opacity: .5; } }
.fg-info { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); max-width: calc(100% - 380px); background: rgba(4, 18, 34, .74); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 6px 12px; font: 800 13px system-ui, sans-serif; text-align: center; pointer-events: none; }
.fg-info b { color: #fde047; font-variant-numeric: tabular-nums; }
.fg-boss { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); width: min(340px, 60%); text-align: center; pointer-events: none; font: 900 13px system-ui, sans-serif; text-shadow: 0 1px 3px #000; }
.fg-boss[hidden] { display: none; }
.fg-bar--boss { height: 10px; margin-top: 3px; border: 1px solid rgba(255, 255, 255, .4); } .fg-bar--boss i { background: linear-gradient(90deg, #7f1d1d, #ef4444); }
/* food / danger tags over the creatures */
.fg-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fg-tag { position: absolute; left: -7px; top: -7px; min-width: 14px; height: 14px; border-radius: 7px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); font: 900 9px/10px system-ui, sans-serif; color: #111; text-align: center; padding: 0 2px; will-change: transform; }
.fg-tag[hidden] { display: none; }
.fg-tag--food { background: #4ade80; }
.fg-tag--bite { background: #facc15; }
.fg-tag--danger { background: #ef4444; color: #fff; }
.fg-tag--danger.is-chase { animation: fg-pulse .45s ease-in-out infinite alternate; }
.fg-tag--boss { background: #7f1d1d; border-color: #fca5a5; font-size: 11px; line-height: 12px; height: 18px; min-width: 18px; border-radius: 9px; }
@keyframes fg-pulse { to { box-shadow: 0 0 0 5px rgba(239, 68, 68, .45); } }
.fg-hint { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); max-width: min(620px, calc(100% - 24px)); background: rgba(4, 18, 34, .78); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 6px 12px; font: 800 13px system-ui, sans-serif; text-align: center; pointer-events: none; }
.fg-hint[hidden] { display: none; }
.fg-pop { top: 30%; font-size: clamp(16px, 2.4vw, 24px); }
.fg-hurt { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 90px 30px rgba(239, 68, 68, .75); }
.fg-hurt.is-on { animation: fg-hurt .5s ease-out; }
@keyframes fg-hurt { from { opacity: 1; } to { opacity: 0; } }
/* touch: stick on the left, a big dash button on the right */
.fg-touch .sim-tbtns { left: auto; right: 16px; bottom: 18px; }
.fg-touch .sim-tbtn[data-id="dash"] { width: 70px; height: 70px; border-radius: 50%; font-size: 28px; background: rgba(202, 138, 4, .8); }
.sim-has-touch .fg-hint { bottom: 140px; }
/* ocean guide on the setup screen */
.fg-log { margin-top: 14px; }
.fg-log h3 { margin: 0 0 8px; } .fg-log h3 small { font-size: .7em; opacity: .75; font-weight: 700; margin-left: 6px; }
.fg-log__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fg-log__item { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.fg-log__item span { font-size: 22px; } .fg-log__item b { font-size: 14px; } .fg-log__item small { font-size: 11.5px; opacity: .75; }
.fg-log__item.is-got { border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .07); }
@container (max-width: 720px) { .fg-info { max-width: calc(100% - 250px); left: auto; right: 140px; transform: none; font-size: 12px; } }
@container (max-width: 480px) {
  .fg-me { top: 92px; left: 8px; width: 150px; padding: 5px 7px 6px; gap: 3px; }
  .fg-me__t { font-size: 12px; } .fg-me__i { font-size: 15px; } .fg-me__t small { font-size: 10.5px; }
  .fg-bar { height: 11px; } .fg-bar span { font-size: 8.5px; line-height: 11px; }
  .fg-info { top: auto; bottom: 8px; left: 50%; right: auto; transform: translateX(-50%); max-width: calc(100% - 210px); font-size: 10.5px; padding: 4px 7px; }
  .fg-boss { top: 92px; left: auto; right: 8px; transform: none; width: 150px; font-size: 11px; }
  .fg-hint { font-size: 11px; padding: 5px 8px; }
  .fg-pop { top: 40%; }
  .sim-banner { top: 66%; }
}
@media (prefers-reduced-motion: reduce) { .fg-tag--danger.is-chase, .fg-bar--hp.is-low, .fg-hurt.is-on { animation: none; } }
