/* Raised play at centre, utilities left, and a stake integrated into the footer. */
#shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#shell > .game {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: 620px;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}
#controls {
  --play-size: 84px;
  --option-size: 46px;
  --play-rise: 36px;
  --side-rise: 12px;
  --raft-brass: #b59766;
  --raft-wood-light: #715033;
  --raft-wood-dark: #443222;
  position: relative;
  z-index: 5;
  display: block;
  flex: 0 0 auto;
  padding: 0 24px 10px;
  overflow: visible;
  border: 1px solid #756344;
  border-top: 2px solid #a98a5c;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, #1b383b 0%, #142e34 55%, #10282f 100%);
  box-shadow: inset 0 1px #eed5a448, inset 0 10px 18px #061d2480;
}
#controls::before {
  content: "";
  position: absolute;
  inset: -28px 0 auto;
  height: 28px;
  background: linear-gradient(transparent, #1b383b);
  pointer-events: none;
}
#controls .action-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--play-size) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
#controls .cast-actions {
  grid-area: 1 / 1;
  justify-self: start;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: calc(-1 * var(--side-rise));
}
#controls .cast-button {
  grid-area: 1 / 2;
  justify-self: center;
  display: grid;
  place-items: center;
  flex: 0 0 var(--play-size);
  width: var(--play-size);
  height: var(--play-size);
  min-height: 0;
  margin-top: calc(-1 * var(--play-rise));
  padding: 0;
  border: 1px solid var(--raft-brass);
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, #ffffff0a 0 1px, transparent 1px 6px),
    linear-gradient(145deg, var(--raft-wood-light), var(--raft-wood-dark));
  color: #fff0d1;
  box-shadow: inset 0 1px #efd3a276, inset 0 -2px #281e17, 0 4px 11px #00161b99;
}
#controls .cast-button svg {
  display: block;
  width: calc(var(--play-size) * .68);
  height: calc(var(--play-size) * .68);
}
#controls .cast-button:disabled {
  background: #3d3c31;
  color: #afada0;
  border-color: #7d775e;
  box-shadow: inset 0 1px #ffffff14;
}
#controls .cast-button:disabled svg { opacity: .65; }
#controls .bonus-widget {
  grid-area: 1 / 2;
  justify-self: center;
  width: clamp(104px, 15vw, 142px);
  max-width: 100%;
  margin-top: calc(-1 * var(--side-rise));
}
#controls .buy-feast-button {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  height: var(--option-size);
  min-height: var(--option-size);
  padding: 0 9px;
  border: 1px solid var(--raft-brass);
  border-radius: 9px;
  background:
    repeating-linear-gradient(0deg, #f1d39b0b 0 1px, transparent 1px 5px),
    linear-gradient(165deg, #745234, #4d3828 72%);
  color: #fff0d1;
  box-shadow: inset 0 1px #f5d9a47a, inset 0 -2px #302318, 0 3px 7px #00161b8c;
  text-align: center;
  transition: filter .16s ease, border-color .16s ease,
    box-shadow .16s ease, transform .16s ease;
}
#controls .buy-feast-button::before,
#controls .buy-feast-button::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-inline: 1px solid #f1d2a0;
  background: #af9067;
  opacity: .9;
  pointer-events: none;
}
#controls .buy-feast-button::before { left: 8px; }
#controls .buy-feast-button::after { right: 8px; }
#controls .buy-feast-button:hover:not(:disabled) {
  filter: brightness(1.12);
  border-color: #f5d79c;
}
#controls .buy-feast-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 2px 5px #20150caa;
}
#controls .buy-feast-button:disabled {
  opacity: .62;
}
#controls .buy-feast-button strong {
  font: 800 19px/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: .1em;
  white-space: nowrap;
}
#controls .buy-feast-button:is([aria-expanded="true"], .is-running) {
  opacity: 1;
  border-color: #ffe09b;
  background:
    radial-gradient(ellipse at 50% 0, #68cabb9c, transparent 75%),
    linear-gradient(160deg, #297883, #16454f 72%);
  color: #fff8e5;
  box-shadow: inset 0 1px #f4fff5a3, inset 0 -2px #072c35,
    0 0 0 2px #eec47e8c, 0 0 17px #39c9ba99, 0 4px 9px #00161b99;
}
#controls .buy-feast-button:is([aria-expanded="true"], .is-running) strong {
  text-shadow: 0 0 9px #c1fff2aa;
}
#controls :is(.bonus-panel, .autoplay-panel) {
  position: fixed;
  z-index: 20;
  box-sizing: border-box;
  width: min(290px, calc(100vw - 20px));
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #bb9b6b;
  border-radius: 11px;
  background: linear-gradient(180deg, #715234 0 4px, #413226 4px, #292c29 100%);
  color: #f7ead1;
  box-shadow: 0 18px 32px #00151bd1, inset 0 1px #f5d9a26e, inset 0 0 0 4px #101a1930;
  animation: autoplay-open .16s ease-out both;
}
#controls :is(.bonus-panel, .autoplay-panel)::before,
#controls :is(.bonus-panel, .autoplay-panel)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 14px;
  width: 6px;
  height: 6px;
  border: 1px solid #edcf9780;
  border-radius: 50%;
  background: #aa8551;
  box-shadow: inset 0 1px #ffe8af7a;
  pointer-events: none;
}
#controls :is(.bonus-panel, .autoplay-panel)::before { left: 14px; }
#controls :is(.bonus-panel, .autoplay-panel)::after { right: 14px; }
#controls .bonus-panel {
  display: grid;
  gap: 12px;
  padding: 19px 18px 17px;
}
#controls .bonus-kicker,
#controls .autoplay-choice-label {
  display: block;
  color: #cfac72;
  font: 800 10px/1 "DM Sans", sans-serif;
  letter-spacing: .14em;
  text-align: center;
}
#controls .bonus-panel p {
  margin: 0;
  color: #d5d0bd;
  font: 500 14px/1.35 "DM Sans", sans-serif;
  text-align: center;
}
#controls .bonus-panel p strong {
  display: block;
  margin-top: 5px;
  color: #ffe7b6;
  font: 800 27px/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: .025em;
}
#controls :is(#bonus-buy, #autoplay-start) {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 8px 26px;
  border: 1px solid #e4c38a;
  border-radius: 8px;
  background: linear-gradient(165deg, #ac8350, #765331);
  color: #fff4da;
  font: 800 13px/1.2 "DM Sans", sans-serif;
  letter-spacing: .025em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px #ffe5b284, inset 0 -2px #523b28, 0 3px 8px #08181999;
}
#controls :is(#bonus-buy, #autoplay-start)::before,
#controls :is(#bonus-buy, #autoplay-start)::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-inline: 1px solid #f4d6a5;
  background: #b39369;
  pointer-events: none;
}
#controls :is(#bonus-buy, #autoplay-start)::before { left: 8px; }
#controls :is(#bonus-buy, #autoplay-start)::after { right: 8px; }
#controls :is(#bonus-buy, #autoplay-start):hover:not(:disabled) { filter: brightness(1.1); }
#controls :is(#bonus-buy, #autoplay-start):active:not(:disabled) { transform: translateY(1px); }
#controls :is(#bonus-buy, #autoplay-start):disabled { opacity: .5; box-shadow: none; }
#controls #buy-feast-price { white-space: nowrap; }
#controls :is(.turbo-button, .autoplay-button) {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 var(--option-size);
  width: var(--option-size);
  height: var(--option-size);
  min-height: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--raft-brass);
  background:
    repeating-linear-gradient(0deg, #f1d39b0b 0 1px, transparent 1px 5px),
    linear-gradient(165deg, #715033, #4b3627 72%);
  color: #fff0d1;
  box-shadow: inset 0 1px #efd3a27b, inset 0 -2px #2b2119, 0 3px 7px #04161b99;
  transition: filter .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#controls :is(.turbo-button, .autoplay-button) svg {
  width: 22px;
  height: 22px;
}
#controls :is(.turbo-button[aria-pressed="true"], .autoplay-button.active) {
  background:
    radial-gradient(ellipse at 50% 0, #68cabb9c, transparent 78%),
    linear-gradient(160deg, #297883, #16454f 72%);
  color: #f0fff7;
  border-color: #ffe09b;
  box-shadow: inset 0 1px #f4fff5a3, inset 0 -2px #072c35,
    0 0 0 2px #eec47e8c, 0 0 15px #39c9ba99, 0 3px 7px #00161b99;
}
#controls :is(.turbo-button[aria-pressed="true"], .autoplay-button.active) svg {
  filter: drop-shadow(0 0 5px #baffebba);
}
#controls .turbo-button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff4bb;
  box-shadow: 0 0 6px #f8ecb9;
}
#controls :is(.turbo-button, .autoplay-button):hover:not(:disabled):where(:not([aria-pressed="true"])) {
  filter: brightness(1.13);
  border-color: #f5d79c;
}
#controls .autoplay-widget {
  display: flex;
  align-self: center;
  flex: 0 0 var(--option-size);
  width: var(--option-size);
}
#controls .autoplay-button {
  position: relative;
  overflow: visible;
}
#controls .autoplay-remaining {
  position: absolute;
  top: -7px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border: 2px solid #173238;
  border-radius: 999px;
  background: #f4ca80;
  color: #17333a;
  font: 800 11px/1 "DM Sans", sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
#controls .autoplay-panel {
  right: auto;
  padding: 0;
  transform-origin: bottom center;
}
#controls .autoplay-widget .autoplay-button[aria-expanded="true"] {
  position: relative;
  z-index: 11;
  border-color: #ffe09b;
  background:
    radial-gradient(ellipse at 50% 0, #68cabb9c, transparent 78%),
    linear-gradient(160deg, #297883, #16454f 72%);
  color: #f0fff7;
  box-shadow: inset 0 1px #f4fff5a3, inset 0 -2px #072c35,
    0 0 0 2px #eec47e8c, 0 0 15px #39c9ba99;
}
#controls #autoplay-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  max-height: inherit;
  padding: 16px 16px 15px;
}
#controls .autoplay-title {
  flex: 0 0 auto;
  margin: 0 0 2px;
  color: #ffe7b6;
  font: 800 23px/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: .045em;
  text-align: center;
  text-transform: uppercase;
}
#controls .autoplay-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin: 0;
}
#controls .autoplay-presets button {
  min-height: 39px;
  padding: 4px;
  border: 1px solid #8e7859;
  border-radius: 7px;
  background: #282b29;
  color: #e4dcc7;
  font: 800 21px/1 "Barlow Condensed", Impact, sans-serif;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px #edd3a92b;
}
#controls .autoplay-presets button[aria-pressed="true"] {
  border-color: #f4d798;
  background: linear-gradient(165deg, #9b7547, #62462f);
  color: #fff3d7;
  box-shadow: inset 0 1px #fff0bc94, 0 0 0 1px #d8ac68a8;
}
#controls #autoplay-start {
  flex: 0 0 auto;
  min-height: 42px;
  margin-top: 2px;
}
#controls .bet {
  grid-area: 1 / 3;
  justify-self: end;
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: var(--option-size);
  margin-top: calc(-1 * var(--side-rise));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#controls .bet-amount {
  flex: 0 1 auto;
  min-width: 0;
  min-height: var(--option-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid #a78554;
  border-radius: 8px;
  background: linear-gradient(180deg, #3b342b, #282f2d);
  box-shadow: inset 0 2px 7px #100f0d, inset 0 1px #f1d8a33b;
  text-align: center;
}
#controls .bet .eyebrow {
  margin-bottom: 2px;
  color: #dac394;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-align: center;
}
#controls #bet {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 4px;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
#controls #bet-value { min-width: 0; max-width: 100%; }
#controls #bet-currency { font-size: 10px; color: #dac394; }
#controls :is(#less, #more) {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: var(--option-size);
  padding: 0;
  border: 1px solid #a78554;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, #f1d39b0b 0 1px, transparent 1px 5px),
    linear-gradient(165deg, #715033, #4b3627 72%);
  color: #fff0d1;
  font: 400 24px/1 "DM Sans", sans-serif;
  box-shadow: inset 0 1px #efd3a27b, inset 0 -2px #2b2119, 0 3px 7px #04161b99;
}
#controls :is(#less, #more):hover:not(:disabled) { filter: brightness(1.13); border-color: #f5d79c; }
#controls :is(#less, #more):disabled { opacity: .3; }

#game .catch-ticker { bottom: 48px; }

#game .buy-run-hud {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 7px;
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2cqi, 18px);
  width: min(405px, calc(100% - 24px));
  min-height: 40px;
  padding: 5px 13px 6px;
  border: 1px solid #ddbe8659;
  border-radius: 10px;
  background: #062834dc;
  color: #f5e3b9;
  box-shadow: 0 4px 18px #00151cb3, inset 0 1px #fff1ce29;
  pointer-events: none;
  transform: translateX(-50%);
  animation: buy-run-hud-arrive .22s ease-out both;
}
#game .buy-run-hud.is-fading {
  animation: none;
  opacity: 0;
  translate: 0 7px;
  transition: opacity .6s ease, translate .6s ease;
}
@keyframes buy-run-hud-arrive {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}
#game .buy-run-stat { display: grid; gap: 1px; min-width: 0; }
#game .buy-run-stat span {
  color: #a6c1bd;
  font: 800 8px/1 "DM Sans", sans-serif;
  letter-spacing: .1em;
}
#game .buy-run-stat strong {
  color: #fff0c9;
  font: 800 15px/1 "Barlow Condensed", Impact, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#game .buy-run-winnings { text-align: right; }
#game .buy-run-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 18px;
  padding-inline: 4px;
}
#game .buy-run-track::before {
  content: "";
  position: absolute;
  inset: 8px 4px auto;
  height: 1px;
  background: #82aba078;
}
#game .buy-run-track i {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid #96b4a9;
  background: #0d3540;
  transform: rotate(45deg);
  transition: background .18s ease, border-color .18s ease,
    box-shadow .18s ease, scale .18s ease;
}
#game .buy-run-track i[data-state="active"] {
  border-color: #ffe1a6;
  background: #ffd27e;
  box-shadow: 0 0 9px #ffd27ea8;
  scale: 1.22;
}
#game .buy-run-track i[data-state="win"] {
  border-color: #b0efdb;
  background: #64ceb1;
}
#game .buy-run-track i[data-state="miss"] {
  border-color: #98a7a5;
  background: #45646b;
  opacity: .7;
}

@media (max-width: 600px) {
  #controls { --play-size: 72px; --option-size: 40px; --play-rise: 28px; --side-rise: 10px; padding: 0 10px 10px; }
  #controls .action-row { gap: 10px; }
  #controls .cast-actions { gap: 8px; }
  #controls .bet { min-height: var(--option-size); }
  #controls #bet { font-size: 17px; }
  #controls :is(#less, #more) { flex-basis: 32px; width: 32px; height: var(--option-size); font-size: 21px; }
  #game .catch-ticker { bottom: 40px; }
  #controls .buy-feast-button { padding-inline: 4px; }
  #controls .buy-feast-button strong { font-size: 16px; }
}
@media (max-width: 360px) {
  #controls { --play-size: 64px; --option-size: 38px; --play-rise: 26px; padding: 0 8px 10px; }
  #controls .action-row { gap: 8px; }
  #controls .cast-actions { gap: 4px; }
  #controls .bet { max-width: 100%; }
  #controls .bet-amount { flex: 0 0 52px; min-width: 52px; padding-inline: 2px; }
  #controls .bet .eyebrow { font-size: 8px; letter-spacing: .4px; }
  #controls #bet { flex-wrap: nowrap; font-size: 13.5px; white-space: nowrap; overflow-wrap: normal; }
  #controls #bet-value { white-space: nowrap; }
  #controls :is(#less, #more) { flex-basis: 22px; width: 22px; }
  #controls :is(#less, #more)::before { content: ""; position: absolute; inset: 0 -4px; }
}
@media (max-height: 500px) {
  #shell { padding: 4px; }
  #controls { --play-size: 56px; --option-size: 36px; --play-rise: 22px; --side-rise: 8px; padding: 0 12px 6px; }
  #controls::before { top: -20px; height: 20px; }
  #controls .cast-actions { gap: 8px; }
  #controls .bet { min-height: var(--option-size); }
  #controls #bet { font-size: 16px; }
  #controls .bet .eyebrow { font-size: 8px; margin-bottom: 1px; }
  #controls .bet-amount { padding-block: 2px; }
  #controls #autoplay-form { gap: 8px; padding: 8px 10px 12px; }
  #controls .autoplay-presets { gap: 5px; }
  #controls .autoplay-presets button { min-height: 34px; font-size: 14px; }
  #controls #autoplay-start { min-height: 40px; }
  #game .catch-ticker { bottom: 30px; }
  #game .buy-run-hud { bottom: 4px; min-height: 34px; padding-block: 3px; }
}
@media (max-height: 300px) {
  #shell:has(.bet[hidden]) .equipment { display: none; }
  #controls #autoplay-form { gap: 4px; padding: 5px 8px 7px; }
  #controls .autoplay-title { margin: 0; font-size: 11px; }
  #controls .autoplay-presets { grid-template-columns: repeat(4, 1fr); gap: 3px; }
  #controls .autoplay-presets button { min-height: 24px; padding: 2px; font-size: 12px; }
  #controls #autoplay-start { min-height: 36px; padding-block: 5px; margin-top: 0; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #controls :is(.bonus-panel, .autoplay-panel) { animation: none; }
}
@media (max-width: 360px) and (max-height: 500px) {
  #controls { padding-inline: 8px; }
  #controls .cast-actions { gap: 6px; }
}

/* The outlined lagoon is the spear game's bet surface. */
#game[data-expert-hunter-active] + #controls .action-row {
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto) minmax(0, 1fr);
}
#game[data-expert-hunter-active] + #controls #cast { display: none; }
#game[data-expert-hunter-active] + #controls .bet { grid-area: 1 / 3; }

@media (min-height: 301px) {
  #game[data-expert-hunter-active] {
    border-bottom: 1px solid #46666a;
    border-radius: 20px;
  }
  #game[data-expert-hunter-active] .buy-run-hud {
    bottom: 80px;
  }
  #game[data-expert-hunter-active] + #controls {
    height: calc(var(--option-size) + 20px);
    margin-top: calc(-1 * (var(--option-size) + 20px));
    padding-top: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #game[data-expert-hunter-active] + #controls::before { display: none; }
  #game[data-expert-hunter-active] + #controls :is(.cast-actions, .bonus-widget, .bet) {
    margin-top: 0;
  }
}

@media (max-width: 600px) and (min-height: 301px) {
  #game[data-expert-hunter-active] .buy-run-hud {
    bottom: 72px;
  }
}

@media (max-width: 600px) {
  #game[data-expert-hunter-active] + #controls .action-row {
    grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
    gap: 6px;
  }
  #game[data-expert-hunter-active] + #controls .bonus-widget { width: 100%; }
}

@media (max-width: 360px) {
  #game[data-expert-hunter-active] + #controls { --option-size: 38px; }
  #game[data-expert-hunter-active] + #controls .cast-actions { gap: 4px; }
  #game[data-expert-hunter-active] + #controls .action-row {
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    gap: 3px;
  }
  #game[data-expert-hunter-active] + #controls .buy-feast-button strong { font-size: 13px; }
}

@media (max-width: 300px) {
  #game[data-expert-hunter-active] + #controls { --option-size: 34px; }
  #game[data-expert-hunter-active] + #controls .action-row {
    grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  }
  #game[data-expert-hunter-active] + #controls :is(#less, #more) {
    flex-basis: 22px;
    width: 22px;
  }
  #game[data-expert-hunter-active] + #controls #bet { font-size: 13px; }
}

@media (max-height: 300px) {
  #game[data-expert-hunter-active] + #controls .action-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  #game[data-expert-hunter-active] + #controls .cast-actions {
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }
  #game[data-expert-hunter-active] + #controls .bonus-widget {
    width: 100%;
    margin-top: 0;
  }
  #game[data-expert-hunter-active] + #controls .buy-feast-button {
    padding: 0 2px;
  }
  #game[data-expert-hunter-active] + #controls .buy-feast-button strong {
    font-size: 14px;
  }
  #game[data-expert-hunter-active] + #controls .bet {
    justify-content: center;
    width: 100%;
    min-height: 38px;
    margin-top: 0;
  }
  #game[data-expert-hunter-active] + #controls .bet-amount {
    padding-inline: 3px;
  }
  #game[data-expert-hunter-active] + #controls :is(#less, #more) {
    flex-basis: 19px;
    width: 19px;
    height: 38px;
    font-size: 18px;
  }
  #game[data-expert-hunter-active] + #controls #bet {
    flex-wrap: nowrap;
    font-size: 13px;
    white-space: nowrap;
  }
  #game[data-expert-hunter-active] + #controls #bet-value {
    white-space: nowrap;
  }
}

@media (max-width: 600px) and (max-height: 300px) {
  #shell:has(#game[data-expert-hunter-active]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 4px;
    padding: 4px;
  }
  #shell:has(#game[data-expert-hunter-active]) > #game {
    grid-area: 1 / 1;
    height: 100%;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  #shell:has(#game[data-expert-hunter-active]) > #controls {
    grid-area: 1 / 2;
    display: grid;
    align-items: center;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  #shell:has(#game[data-expert-hunter-active]) > #controls::before {
    display: none;
  }
}
@container (max-height: 190px) {
  .equipment { top: 38px; gap: 2px; }
  .equipment-choice { min-height: 32px; padding-block: 2px; }
  .equipment-icon { height: 24px; }
  .equipment-copy strong { font-size: 12px; }
  .equipment-copy small { margin-top: 1px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #game .buy-run-hud { animation: none; }
  #game .buy-run-hud.is-fading { transition: none; }
  #game .buy-run-track i,
  #controls .buy-feast-button { transition: none; }
}
