/* Keep every denomination readable, including upcoming notes. */
.tier-progress > span {
  filter: none !important;
  opacity: 1 !important;
  flex: 0 0 auto;
}
.tier-progress > span.has-note i {
  background-size: contain !important;
  background-color: #163f6e !important;
}
.tier-progress > span.has-note:not(.reached) i {
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35) !important;
}
/* The fill and the riding banknote use the exact same geometry and no
   transition, so the note stays glued to the end of the bar every frame. */
.tier-progress:after {
  left: 27px !important;
  width: calc((100% - 54px) * var(--p, 0)) !important;
  max-width: calc(100% - 54px) !important;
  transition: none !important;
}
.tier-progress .jet-head {
  left: calc(27px + (100% - 54px) * var(--p, 0)) !important;
  transition: opacity .25s !important;
}
#play-button {
  touch-action: manipulation;
}
#play-button[aria-busy="true"] {
  cursor: progress;
}
/* toast with its own game-style icon (e.g. the lock on locked axes) */
.toast.has-icon {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.toast .toast-icon {
  width: 1.5em;
  height: 1.5em;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
.toast[hidden] {
  display: none !important;
}
/* Performance: a live blur behind HUD panels has to be recomputed every frame
   because the 3D scene behind them never stops moving. Opaque panels lose
   nothing; see-through panels get a slightly denser tint instead. */
.game-brand, .round-status, .wallet, .icon-control, .control-deck, .recent-strip,
.tier-progress, .stage-clock, .banked-hud, .tree-label, .toast, .tree-chip, .axe-progress {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.wallet { background: rgba(8, 26, 70, .7) !important; }
.recent-strip { background: rgba(8, 26, 70, .72) !important; }
.tree-chip { background: rgba(8, 26, 70, .6) !important; }
.axe-progress { background: rgba(12, 36, 99, .7) !important; }
/* Level bar: notes without an outline or the brown pin dot, and no gold rivets at the bar ends. */
.tier-progress > span.has-note i { border: 0 !important; }
.tier-progress > span.has-note i::after { display: none !important; }
.tier-progress { background-image: none !important; }
/* Notifications (toasts) in the same style as the bet panel: sky-blue box with the diagonal stripes,
   gloss, navy outline, rounded corners instead of a red pill, and yellow text. */
.toast:not(.strike) {
  border-radius: 8.5px !important;
  background: var(--gloss), var(--weave), linear-gradient(180deg, var(--sky-1), var(--sky-2)) !important;
  border: 2.25px solid var(--navy) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), inset 0 3px 0 rgba(255, 255, 255, .5),
    inset 0 -4px 0 rgba(0, 40, 120, .28), 0 4px 0 var(--navy), 0 10px 20px rgba(0, 20, 60, .3) !important;
  color: var(--sun-1) !important;
  text-shadow: var(--stroke-s) !important;
}
/* Axe rail on the left: same panel look (it was a flat dark-blue strip). */
.axe-progress {
  background: var(--gloss), var(--weave), linear-gradient(180deg, var(--sky-1), var(--sky-2)) !important;
  border: 2.25px solid var(--navy) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), inset 0 3px 0 rgba(255, 255, 255, .5),
    inset 0 -5px 0 rgba(0, 40, 120, .28), 0 4px 0 var(--navy), 0 10px 20px rgba(0, 20, 60, .3) !important;
}
/* each axe sits in a dark inset tile like the bet field; the selected one is the yellow button colour */
.axe-slot i,
.axe-slot[data-tier].owned:not(.current) i {
  background: var(--weave), rgba(8, 26, 70, .55) !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .35) !important;
  border: 1.5px solid var(--navy) !important;
}
.axe-slot.current i {
  background: var(--gloss), linear-gradient(180deg, var(--sun-1), var(--sun-2)) !important;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(190, 110, 0, .35), 0 3px 0 var(--navy), 0 0 10px 2px rgba(255, 200, 40, .7) !important;
  border-color: var(--navy) !important;
}
.axe-slot b { color: #fff !important; text-shadow: var(--stroke-s) !important; }
.axe-slot.current b { color: var(--sun-1) !important; }
/* Split icon: a golden acorn cracking open into two halves with a fresh two-leaf sprout growing out of the
   crack, in the same illustrated style as the boost rocket (bright fills, dark-brown outline, white shine).
   The halves rock apart while the sprout pops up. */
.chip-split .btn-ic.sp { border-radius: 6px !important; background: rgba(255, 255, 255, .92) !important; }
.chip-split .btn-ic.sp svg { width: 22px; height: 22px; overflow: visible; }
.btn-ic.sp .sp-nut { fill: #ffc23a; stroke: #3a2414; stroke-width: 1.3; stroke-linejoin: round; }
.btn-ic.sp .sp-shine { fill: none; stroke: #fff6c4; stroke-width: 1.2; stroke-linecap: round; }
.btn-ic.sp .sp-cap { fill: #b8692c; stroke: #3a2414; stroke-width: 1.3; stroke-linejoin: round; }
.btn-ic.sp .sp-hatch { fill: none; stroke: #7a3e14; stroke-width: .9; stroke-linecap: round; }
.btn-ic.sp .sp-stem { fill: none; stroke: #3a2414; stroke-width: 1.6; stroke-linecap: round; }
.btn-ic.sp .sp-leaf { fill: #4fd65a; stroke: #3a2414; stroke-width: 1.1; stroke-linejoin: round; }
.btn-ic.sp .sp-vein { fill: none; stroke: #b9f59a; stroke-width: .8; stroke-linecap: round; }
.btn-ic.sp .sp-l { transform-origin: 12px 22.6px; transform-box: view-box; animation: sp-l 2.2s ease-in-out infinite; }
.btn-ic.sp .sp-r { transform-origin: 12px 22.6px; transform-box: view-box; animation: sp-r 2.2s ease-in-out infinite; }
.btn-ic.sp .sp-sprout { transform-origin: 12px 11px; transform-box: view-box; animation: sp-sprout 2.2s ease-in-out infinite; }
@keyframes sp-l { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(-10deg); } }
@keyframes sp-r { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(10deg); } }
@keyframes sp-sprout { 0%, 100% { transform: translateY(1.2px) scale(.88); } 50% { transform: translateY(-.8px) scale(1.08); } }
.chip-split:disabled .btn-ic.sp { filter: grayscale(.7); opacity: .7; }
.chip-split:disabled .btn-ic.sp * { animation-play-state: paused; }

/* Every button icon breathes a little (subtle idle motion, staggered so they never move in sync). */
.icon-control > svg, .play-button .play-icon svg, .auto-chip .auto-ic svg, .merge-button .btn-ic svg {
  animation: ic-idle 2.8s ease-in-out infinite; transform-origin: 50% 60%; }
.sound-toggle > svg { animation-delay: -.7s; }
#fullscreen-button > svg { animation-name: ic-pulse; animation-delay: -1.4s; }
.autoplay-chip .auto-ic svg { animation-name: ic-spin-nudge; animation-delay: -1.1s; }
.auto-chip:not(.autoplay-chip) .auto-ic svg { animation-delay: -2s; }
.play-button .play-icon svg { animation-name: ic-pulse; animation-duration: 1.9s; }
.merge-button .btn-ic svg { animation-name: ic-hover; animation-delay: -.4s; }
.axe-slot.owned img { animation: ax-idle 3.4s ease-in-out infinite; }
.axe-slot.owned:nth-child(2) img { animation-delay: -.8s; } .axe-slot.owned:nth-child(3) img { animation-delay: -1.6s; }
.axe-slot.owned:nth-child(4) img { animation-delay: -2.4s; } .axe-slot.owned:nth-child(5) img { animation-delay: -3s; }
@keyframes ic-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1px) rotate(-4deg); } }
@keyframes ax-idle { 0%, 100% { transform: scale(1.25) translateY(0) rotate(0); } 50% { transform: scale(1.25) translateY(-1px) rotate(-4deg); } }
@keyframes ic-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes ic-hover { 0%, 100% { transform: translateY(.5px) rotate(-2deg); } 50% { transform: translateY(-1.5px) rotate(3deg); } }
@keyframes ic-spin-nudge { 0%, 70%, 100% { transform: rotate(0); } 85% { transform: rotate(40deg); } }
.axe-slot.owned img { transform-origin: 50% 70%; }
button:disabled > svg, button:disabled .play-icon svg, button:disabled .btn-ic svg { animation-play-state: paused; }
html.lite .btn-ic.sp *, html.lite .icon-control > svg, html.lite .play-button .play-icon svg, html.lite .auto-chip .auto-ic svg,
html.lite .merge-button .btn-ic svg, html.lite .axe-slot img { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .btn-ic.sp *, .icon-control > svg, .play-button .play-icon svg, .auto-chip .auto-ic svg, .merge-button .btn-ic svg, .axe-slot img { animation: none !important; }
}
/* Locked axes: the game's own lock (same drawing as the lock in the notifications) instead of the 🔒 emoji. */
.axe-slot:not(.owned) i:before {
  content: "" !important; position: absolute !important; width: 15px; height: 15px; right: 1px !important; bottom: 1px !important; font-size: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 14v-4a6 6 0 0 1 12 0v4' fill='none' stroke='%2314325a' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M10 14v-4a6 6 0 0 1 12 0v4' fill='none' stroke='%23d9e4ee' stroke-width='2.6' stroke-linecap='round'/%3E%3Crect x='5' y='13' width='22' height='17' rx='5' fill='%23ffc93c' stroke='%2314325a' stroke-width='2.6'/%3E%3Cpath d='M8 16.5h16' stroke='%23fff3b0' stroke-width='2' stroke-linecap='round' opacity='.9'/%3E%3Ccircle cx='16' cy='21' r='2.6' fill='%2314325a'/%3E%3Cpath d='M16 22v4' stroke='%2314325a' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  filter: drop-shadow(0 1px 0 rgba(12, 36, 99, .6)) !important; z-index: 3;
}
.axe-slot:not(.owned) i img { position: relative; z-index: 1; }
/* Level-bar notes: no white ring / dark edge around them (reached notes keep only their green glow). */
.tier-progress > span.has-note i,
.tier-progress > span.has-note:not(.reached) i { box-shadow: none !important; outline: 0 !important; }
.tier-progress > span.has-note.reached i { box-shadow: 0 0 16px rgba(140, 255, 58, .85) !important; }
/* Result card when the chop paid back less than the bet ("CHOPPED"): same build as the win card —
   amount in the game's outlined display style (white-to-sky instead of gold, so a win still stands out),
   the yellow multiplier chip (e.g. 0.59×) and no "−€x net" text line. */
.round-result:not(.profit) > strong {
  font-family: var(--display) !important; font-style: italic !important; font-weight: 400 !important;
  background: linear-gradient(180deg, #ffffff 0%, #eaf8ff 45%, #9fdcff 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  filter: drop-shadow(0 4px 0 var(--navy)) drop-shadow(3px 0 0 var(--navy)) drop-shadow(-3px 0 0 var(--navy)) drop-shadow(0 -3px 0 var(--navy)) !important;
}
.round-result.secured:not(.profit) .result-mult { display: inline-block !important; }
.round-result > p { display: none !important; }
/* Mobile: the game surface behaves like an app — no text selection, callouts or tap flashes, no pull-to-refresh bounce. */
html, body { touch-action: manipulation; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body, .game-window, canvas { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea { -webkit-user-select: text; user-select: text; }
/* Green jet flame on the level bar: room to rise and to throw sparks sideways (no hard cut lines), soft top edge as a safety net. */
.tier-progress .jet-fire {
  left: -40px !important; right: -40px !important; width: calc(100% + 80px) !important; height: 170px !important;
  -webkit-mask-image: linear-gradient(to top, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to top, #000 0, #000 55%, transparent 100%);
}
/* All messages in the house style of the bet panel: sky-blue box with diagonal stripes and gloss, navy outline,
   yellow text with the navy stroke. Covers the bet error ("Choose a bet from …"), connection/server messages
   (they use the same element) and the loading-error button. */
.inline-error:not(:empty) {
  font-family: var(--display) !important; font-weight: 400 !important; font-style: italic; letter-spacing: .4px;
  color: var(--sun-1) !important; text-shadow: var(--stroke-s) !important;
  background: var(--gloss), var(--weave), linear-gradient(180deg, var(--sky-1), var(--sky-2)) !important;
  border: 2.25px solid var(--navy) !important; border-radius: 9px !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 40, 120, .28),
    0 4px 0 var(--navy), 0 10px 20px rgba(0, 20, 60, .3) !important;
  padding: 9px 16px 10px !important; display: flex !important; align-items: center; gap: 8px;
}
/* a small yellow warning badge in front of every error, drawn like our other icons */
.inline-error:not(:empty)::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6 22.4 20.6H1.6Z' fill='%23ffc93c' stroke='%230c2463' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M12 9v5.4' stroke='%230c2463' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.4' r='1.5' fill='%230c2463'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(12, 36, 99, .5));
}
#boot-retry {
  font-family: var(--display) !important; font-weight: 400 !important; font-style: italic; font-size: 18px !important; letter-spacing: .6px;
  color: var(--navy) !important; text-shadow: none !important;
  background: var(--gloss), linear-gradient(180deg, var(--sun-1), var(--sun-2)) !important;
  border: 2.25px solid var(--navy) !important; border-radius: 9px !important; padding: 10px 26px !important;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(190, 110, 0, .35), 0 4px 0 var(--navy) !important;
}

/* Menu (i) row icons: all in the theme yellow, like the top-bar buttons, with a navy symbol. */
.row-ic, dialog.sheet .row-ic {
  background: linear-gradient(180deg, var(--sun-1, #fff27a), var(--sun-2, #ffbf1a)) !important;
  color: var(--navy, #0c2463) !important; text-shadow: none !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(190, 110, 0, .35), 0 2px 0 var(--navy, #0c2463) !important;
}
/* Exception: the reset row keeps a red icon so the destructive action stands out. */
.info-row.danger .row-ic, dialog.sheet .info-row.danger .row-ic {
  background: linear-gradient(180deg, #ff7a86, #e2394b) !important; color: #fff !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(120, 10, 20, .3), 0 2px 0 var(--navy, #0c2463) !important;
}
