/* GOX mini igra pecanja — widget za dodatni popust na prvu kupovinu */

.gfg {
  --gfg-red: #ff5a4f;
  --gfg-yellow: #f4c95d;
  --gfg-panel: #0d1419;
  font-family: var(--font-body, "Outfit", system-ui, sans-serif);
  color: #fff;
}

.gfg [hidden] {
  display: none !important;
}

.gfg button:not(.gfg-launch) {
  border-radius: 0;
}

html.gfg-lock,
html.gfg-lock body {
  overflow: hidden;
}

/* ---------- launcher ---------- */

.gfg-launch {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 69;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  max-width: calc(100vw - 6.5rem);
  padding: 0.35rem 1.1rem 0.35rem 0.35rem;
  border: 1px solid rgba(108, 212, 164, 0.45);
  border-radius: 999px;
  background: rgba(11, 17, 22, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gfg-launch:hover {
  transform: translateY(-2px);
  border-color: var(--gox-mint);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(108, 212, 164, 0.12);
}

.gfg-launch:focus-visible,
.gfg-x:focus-visible,
.gfg-action:focus-visible,
.gfg-lure:focus-visible,
.gfg-use:focus-visible,
.gfg-link-btn:focus-visible,
.gfg-links a:focus-visible {
  outline: 2px solid var(--gox-mint);
  outline-offset: 3px;
}

.gfg-launch__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--gox-mint);
  color: var(--gox-ink);
  animation: gfg-bob 2.6s ease-in-out infinite;
}

.gfg-launch__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gfg-launch__text strong {
  font-family: var(--font-display, "Teko", sans-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gfg-launch__text small {
  margin-top: 0.15rem;
  color: var(--gox-mint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- modal ---------- */

.gfg-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}

.gfg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 11, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: gfg-fade 0.3s ease both;
}

.gfg-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(940px, 100%);
  height: min(680px, 100%);
  overflow: hidden;
  border: 1px solid var(--gox-line);
  background: var(--gfg-panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: gfg-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gfg-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.85rem 0.85rem 1.25rem;
  border-bottom: 1px solid var(--gox-line);
}

.gfg-head__copy {
  flex: 1;
  min-width: 0;
}

.gfg-kicker {
  margin: 0;
  color: var(--gox-mint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gfg-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display, "Teko", sans-serif);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gfg-casts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  color: var(--gox-fog);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gfg-casts__dots {
  display: flex;
  gap: 0.4rem;
}

.gfg-casts__dots i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gox-mint);
  box-shadow: 0 0 0 3px rgba(108, 212, 164, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.gfg-casts__dots i.is-used {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

.gfg-x {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--gox-line);
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gfg-x:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.gfg-sound {
  color: var(--gox-mint);
}

.gfg-sound .gfg-sound__off,
.gfg-sound.is-muted .gfg-sound__on {
  display: none;
}

.gfg-sound.is-muted {
  color: var(--gox-fog);
}

.gfg-sound.is-muted .gfg-sound__off {
  display: inline;
}

/* ---------- stage ---------- */

.gfg-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0b2226;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gfg-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.gfg-stage.is-shake {
  animation: gfg-shake 0.35s linear;
}

.gfg-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 120px rgba(255, 90, 79, 0.6);
  transition: opacity 0.2s ease;
}

.gfg-stage.is-danger::after {
  opacity: 1;
  animation: gfg-pulse 0.45s ease-in-out infinite alternate;
}

/* ---------- HUD ---------- */

.gfg-hud {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: min(460px, calc(100% - 2rem));
  padding: 0.75rem 0.9rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 18, 21, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(-50%);
  pointer-events: none;
}

.gfg-hud--tension,
.gfg-hud--power,
.gfg-hud--action {
  top: 0.9rem;
}

.gfg-power--action .gfg-power__fill {
  background: linear-gradient(90deg, var(--gox-mint-deep), var(--gox-mint));
  transition: transform 0.15s linear;
}

.gfg-rhythm {
  min-height: 1em;
  color: var(--gox-fog);
  transition: color 0.2s ease;
}

.gfg-rhythm.is-good {
  color: var(--gox-mint);
}

.gfg-rhythm.is-warn {
  color: var(--gfg-yellow);
}

.gfg-meter__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  color: var(--gox-fog);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.gfg-meter__head--sub {
  margin: 0.65rem 0 0.35rem;
}

.gfg-meter {
  position: relative;
  display: block;
  height: 0.9rem;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(108, 212, 164, 0.22) 0 65%,
    rgba(244, 201, 93, 0.28) 65% 85%,
    rgba(255, 90, 79, 0.34) 85% 100%
  );
}

.gfg-meter::before,
.gfg-meter::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 2px;
  background: rgba(11, 17, 22, 0.85);
}

.gfg-meter::before {
  left: 65%;
}

.gfg-meter::after {
  left: 85%;
}

.gfg-meter__fill,
.gfg-progress__fill,
.gfg-power__fill {
  position: absolute;
  inset: 0;
  display: block;
  transform: scaleX(0);
  transform-origin: left center;
}

.gfg-meter__fill {
  background: linear-gradient(90deg, var(--gox-mint-deep), var(--gox-mint));
}

.gfg-meter.is-warn .gfg-meter__fill {
  background: linear-gradient(90deg, var(--gox-mint), var(--gfg-yellow));
}

.gfg-meter.is-danger .gfg-meter__fill {
  background: linear-gradient(90deg, var(--gfg-yellow), var(--gfg-red));
}

.gfg-meter.is-danger {
  animation: gfg-jitter 0.12s linear infinite;
}

.gfg-progress {
  position: relative;
  display: block;
  height: 0.35rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.gfg-progress__fill {
  background: #fff;
}

.gfg-power {
  position: relative;
  display: block;
  height: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.gfg-power__sweet {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70%;
  z-index: 1;
  width: 20%;
  background: rgba(108, 212, 164, 0.18);
  box-shadow: inset 0 0 0 1.5px var(--gox-mint);
}

.gfg-power__fill {
  background: linear-gradient(90deg, rgba(244, 201, 93, 0.85), var(--gox-mint));
}

.gfg-sweet {
  color: var(--gox-mint);
}

/* ---------- messages ---------- */

.gfg-msg {
  position: absolute;
  top: 40%;
  left: 0;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  color: #fff;
  font-family: var(--font-display, "Teko", sans-serif);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.gfg-msg.is-show {
  animation: gfg-pop 1.5s ease forwards;
}

.gfg-msg.is-good {
  color: var(--gox-mint);
}

.gfg-msg.is-bad {
  color: var(--gfg-red);
}

.gfg-msg.is-small {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
}

.gfg-msg.is-alert {
  left: 50%;
  width: auto;
  max-width: calc(100% - 2rem);
  padding: 0.35rem 1rem 0.15rem;
  border: 1px solid var(--gfg-yellow);
  background: rgba(20, 16, 6, 0.72);
  color: var(--gfg-yellow);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  transform: translateX(-50%);
}

.gfg-msg.is-alert.is-show {
  animation: gfg-alert 2.4s ease forwards;
}

.gfg-stage.is-bigfish {
  box-shadow: inset 0 0 0 2px rgba(244, 201, 93, 0.45);
}

@keyframes gfg-alert {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(1.25);
  }
  12%,
  80% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1);
  }
}

/* ---------- screens ---------- */

.gfg-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(7, 18, 21, 0.5), rgba(7, 18, 21, 0.9));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
  touch-action: auto;
  user-select: text;
  -webkit-user-select: text;
  animation: gfg-fade 0.35s ease both;
}

.gfg-screen h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display, "Teko", sans-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gfg-screen p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--gox-fog);
  line-height: 1.5;
}

.gfg-screen .gfg-kicker {
  margin-bottom: 0.35rem;
  color: var(--gox-mint);
}

.gfg-lures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 800px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.gfg-lures li {
  flex: 0 0 calc((100% - 3rem) / 5);
  min-width: 0;
}

.gfg-lure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 8.5rem;
  padding: 1rem 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s ease;
}

.gfg-lure:hover:not(:disabled) {
  border-color: var(--gox-mint);
  background: rgba(108, 212, 164, 0.08);
  transform: translateY(-3px);
}

.gfg-lure.is-picked {
  border-color: var(--gox-mint);
  background: rgba(108, 212, 164, 0.16);
  box-shadow: 0 0 0 3px rgba(108, 212, 164, 0.2);
}

.gfg-lure:disabled:not(.is-picked) {
  opacity: 0.45;
  cursor: default;
}

.gfg-lure__img {
  display: block;
  width: 100%;
  max-width: 7.2rem;
  height: auto;
  aspect-ratio: 360 / 188;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.gfg-lure:hover:not(:disabled) .gfg-lure__img,
.gfg-lure.is-picked .gfg-lure__img {
  transform: rotate(-7deg) scale(1.04);
}

.gfg-lure__name {
  font-family: var(--font-display, "Teko", sans-serif);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- measure ---------- */

.gfg-board {
  position: relative;
  width: min(540px, 100%);
  margin: 1rem auto 1.1rem;
  padding: 1.1rem 1rem 2.5rem;
  border: 1px solid rgba(108, 212, 164, 0.25);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(108, 212, 164, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.gfg-board__fish {
  width: var(--gfg-len, 60%);
  transform-origin: left center;
}

.gfg-board__fish.is-in {
  animation: gfg-fish-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gfg-board__fish svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.gfg-ruler {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  left: 1rem;
  height: 1.1rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px calc(100% / 13)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px calc(100% / 65));
  background-size: 100% 100%, 100% 55%;
  background-repeat: no-repeat;
  background-position: left bottom, left bottom;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.gfg-ruler__mark {
  position: absolute;
  bottom: -0.2rem;
  left: 0;
  width: 2px;
  height: 1.8rem;
  background: var(--gox-mint);
  box-shadow: 0 0 12px rgba(108, 212, 164, 0.8);
  transition: left 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gfg-readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: min(420px, 100%);
}

.gfg-readout {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--gox-line);
  background: rgba(255, 255, 255, 0.04);
}

.gfg-readout span {
  color: var(--gox-fog);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gfg-readout strong {
  color: var(--gox-mint);
  font-family: var(--font-display, "Teko", sans-serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- result ---------- */

.gfg-screen--result {
  background:
    radial-gradient(70% 50% at 50% 20%, rgba(108, 212, 164, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(7, 18, 21, 0.72), rgba(7, 18, 21, 0.95));
}

.gfg-rarity {
  display: inline-block;
  margin-bottom: 0.6rem !important;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(108, 212, 164, 0.5);
  color: var(--gox-mint) !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gfg-rarity--rare {
  border-color: rgba(244, 201, 93, 0.6);
  color: var(--gfg-yellow) !important;
}

.gfg-rarity--trophy {
  border-color: transparent;
  background: linear-gradient(90deg, #f4c95d, #ffe9a6, #f4c95d);
  color: var(--gox-ink) !important;
}

.gfg-pct {
  margin: 0 !important;
  color: var(--gox-mint) !important;
  font-family: var(--font-display, "Teko", sans-serif);
  font-size: clamp(5rem, 17vw, 8.5rem);
  font-weight: 600;
  line-height: 0.85 !important;
  text-shadow: 0 0 40px rgba(108, 212, 164, 0.35);
  animation: gfg-zoom 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.gfg-catch {
  margin: 0 auto 0.35rem !important;
  color: #fff !important;
  font-weight: 600;
}

.gfg-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(420px, 100%);
  margin: 1.1rem auto 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(108, 212, 164, 0.6);
  background: rgba(108, 212, 164, 0.06);
}

.gfg-code span {
  color: var(--gox-fog);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gfg-code strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  word-break: break-all;
  user-select: all;
}

.gfg-use,
.gfg-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--gox-mint);
  color: var(--gox-ink);
  font-family: var(--font-display, "Teko", sans-serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

.gfg-use {
  width: min(420px, 100%);
  min-height: 3.6rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.5rem;
}

.gfg-use[hidden] {
  display: none;
}

a.gfg-use {
  text-decoration: none;
}

.gfg-use:hover:not(:disabled),
.gfg-action:hover:not(:disabled) {
  background: #7fe0b3;
}

.gfg-use:active:not(:disabled) {
  transform: scale(0.98);
}

.gfg-use:disabled {
  opacity: 0.6;
  cursor: progress;
}

.gfg-use--ghost {
  width: auto;
  min-width: 14rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  text-decoration: none;
}

.gfg-use--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06) !important;
}

.gfg-status {
  min-height: 1.5em;
  margin-top: 0.7rem !important;
  color: var(--gox-mint) !important;
  font-size: 0.92rem;
}

.gfg-status.is-bad {
  color: var(--gfg-yellow) !important;
}

.gfg-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.9rem;
}

.gfg-screen[data-gfg-screen="end"] .gfg-links {
  margin-top: 1.4rem;
}

.gfg-links a:not(.gfg-use),
.gfg-link-btn {
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-color: var(--gox-mint);
  text-underline-offset: 4px;
  text-transform: uppercase;
  cursor: pointer;
}

.gfg-link-btn {
  color: var(--gox-fog);
}

/* ---------- footer ---------- */

.gfg-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.6rem;
  padding: 0.8rem 0.85rem calc(0.8rem + env(safe-area-inset-bottom)) 1.25rem;
  border-top: 1px solid var(--gox-line);
  background: var(--gox-ink-soft);
}

.gfg-hint {
  flex: 1;
  margin: 0;
  color: var(--gox-fog);
  font-size: 0.92rem;
  line-height: 1.35;
}

.gfg-action {
  flex: none;
  min-width: 13rem;
  min-height: 3.4rem;
  padding: 0.6rem 1.4rem;
  font-size: 1.5rem;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.gfg-action.is-pressed {
  background: var(--gox-mint-deep);
  transform: scale(0.97);
}

.gfg-action:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .gfg-lures li {
    flex-basis: calc((100% - 1.5rem) / 3);
  }
}

@media (max-width: 720px) {
  .gfg-modal {
    padding: 0;
  }

  .gfg-panel {
    width: 100%;
    height: 100%;
    height: 100dvh;
    border: 0;
  }

  .gfg-head {
    padding: calc(0.7rem + env(safe-area-inset-top)) 0.7rem 0.7rem 1rem;
    gap: 0.5rem;
  }

  .gfg-title {
    font-size: clamp(1.2rem, 5.3vw, 1.55rem);
  }

  .gfg-x {
    width: 2.6rem;
    height: 2.6rem;
  }

  .gfg-casts > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .gfg-kicker {
    font-size: 0.66rem;
  }

  .gfg-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  }

  .gfg-hint {
    font-size: 0.86rem;
    text-align: center;
  }

  .gfg-action {
    width: 100%;
    min-width: 0;
    min-height: 3.6rem;
  }

  .gfg-lures {
    gap: 0.6rem;
    margin-top: 1.1rem;
  }

  .gfg-lures li {
    flex-basis: calc((100% - 1.2rem) / 3);
  }

  .gfg-lure {
    min-height: 7rem;
    padding: 0.75rem 0.35rem 0.7rem;
  }

  .gfg-lure__name {
    font-size: 1.05rem;
  }

  .gfg-readout strong {
    font-size: 2rem;
  }

  .gfg-launch {
    padding-right: 0.95rem;
  }

  .gfg-launch__text strong {
    font-size: 1.15rem;
  }
}

@media (max-width: 380px) {
  .gfg-head .gfg-kicker {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .gfg-lures li {
    flex-basis: calc((100% - 0.6rem) / 2);
  }

  .gfg-launch__text small {
    display: none;
  }
}

/* ---------- motion ---------- */

@keyframes gfg-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-2px) rotate(-8deg);
  }
}

@keyframes gfg-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gfg-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gfg-pop {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  14% {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }
  24% {
    transform: translateY(-50%) scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-58%) scale(1);
  }
}

@keyframes gfg-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-5px, 2px);
  }
  40% {
    transform: translate(5px, -2px);
  }
  60% {
    transform: translate(-3px, 1px);
  }
  80% {
    transform: translate(3px, -1px);
  }
}

@keyframes gfg-jitter {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1.5px);
  }
}

@keyframes gfg-pulse {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@keyframes gfg-fish-in {
  from {
    opacity: 0;
    transform: translateX(-12%) scaleX(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gfg-zoom {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gfg-launch__icon,
  .gfg-stage.is-shake,
  .gfg-meter.is-danger,
  .gfg-stage.is-danger::after {
    animation: none;
  }

  .gfg-panel,
  .gfg-screen,
  .gfg-pct,
  .gfg-board__fish.is-in {
    animation-duration: 0.01ms;
  }
}
