@font-face {
  font-family: Lexend;
  src: url("assets/fonts/lexend-light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Lexend;
  src: url("assets/fonts/lexend-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lexend;
  src: url("assets/fonts/lexend-bold.ttf") format("truetype");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: Lexend;
  src: url("assets/fonts/lexend-black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
:root {
  font-family: Lexend, sans-serif;
  color: #010101;
  background: #fff;
  font-synthesis: none;
  --muted: #8c8c8c;
  --bank: #41c858;
  --score: #c8416e;
  --zero: #e34058;
  --one: #e38140;
  --two: #e9ec35;
  --three: #81e340;
  --four: #40e3c8;
  --five: #40b8e3;
  --six: #405be3;
  --seven: #7e40e3;
  --eight: #d040e3;
  --nine: #e3409f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #405be3;
  outline-offset: 5px;
}
button {
  touch-action: manipulation;
}
p,
h1,
h2 {
  margin: 0;
}
img {
  display: block;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
button {
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: #e8defb;
}
#app {
  min-height: 100svh;
}
.game-promo {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 280px;
  max-width: 100%;
  z-index: 20;
  top: 24px;
  right: 24px;
  padding: 16px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px #0000001a;
}
.game-promo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.game-promo h2 {
  margin-bottom: 4px;
  color: #343434;
  font-size: 15px;
  font-weight: 700;
}
.game-promo a {
  color: #405be3;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
img#game-promo-logo {
  flex: 0 0 auto;
  width: 64px;
  height: auto;
}
.record-player {
  position: absolute;
  z-index: 20;
  top: 24px;
  left: 30px;
  width: 88px;
  height: 136px;
}
.record-player-toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.record-player-toggle img {
  width: 74px;
  height: 74px;
}
.record-player.playing .record-player-toggle img {
  animation: record-spin 2.5s linear infinite;
}
.record-player-arm {
  position: absolute;
  top: 6px;
  left: 78px;
  width: 10px;
  height: 59px;
  pointer-events: none;
  transform-origin: 5px 3px;
  transform: rotate(0deg);
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.record-player.playing .record-player-arm {
  transform: rotate(35deg);
}
.record-player-notes {
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 74px;
  pointer-events: none;
}
.record-player-notes img {
  position: absolute;
  left: 32px;
  top: 12px;
  width: 22px;
  height: 22px;
  opacity: 0;
}
.record-player.playing .record-player-notes img {
  animation: record-note 2.7s ease-out infinite;
}
.record-player.playing .record-player-notes img:nth-child(2) {
  animation-delay: 0.9s;
}
.record-player.playing .record-player-notes img:nth-child(3) {
  animation-delay: 1.8s;
}
.record-player-volume {
  position: absolute;
  top: 86px;
  left: 0;
  width: 88px;
  color: #565656;
  font-size: 10px;
  text-align: center;
}
.record-player-volume span {
  display: block;
  margin-bottom: 5px;
}
.record-player-volume input {
  appearance: none;
  display: block;
  width: 88px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(#dedede, #dedede) center / 100% 6px no-repeat;
  cursor: pointer;
}
.record-player-volume input::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ee5060;
  box-shadow: 0 0 0 1px #383838;
}
.record-player-volume input::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ee5060;
  box-shadow: 0 0 0 1px #383838;
}
.record-player-volume input:focus-visible {
  outline: 3px solid #405be3;
  outline-offset: 6px;
}
@keyframes record-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes record-note {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.7);
  }
  15%,
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(26px, -65px) scale(1.1);
  }
}
.screen {
  animation: screen-in 0.28s ease-out;
}
.brand {
  width: max-content;
  margin: auto;
  line-height: 1.25;
}
.brand h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 15.84px;
  text-shadow: 6px 7px #0004;
  padding-left: 15.84px;
}
.brand .like {
  text-align: right;
  color: #7d7d7d;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3.04px;
  margin-top: 4px;
  padding-right: 4px;
}
.game-header {
  padding: 28px 20px 18px;
}
.menu {
  text-align: center;
  max-width: 760px;
  margin: auto;
  padding: 96px 24px 40px;
}
.menu .brand h1 {
  font-size: 54px;
  letter-spacing: 23.76px;
  padding-left: 23.76px;
}
.menu .brand-letter {
  animation: brand-reel-colors 3.2s linear;
  animation-delay: calc(var(--letter-index) * -0.32s);
}
.menu .brand .like {
  font-size: 28px;
  letter-spacing: 5.32px;
  margin-top: 3px;
  padding-right: 20px;
}
.tagline {
  font-size: 18px;
  letter-spacing: 0.54px;
  color: #565656;
  margin-top: 28px;
}
.author {
  font-size: 16px;
  color: #8c8c8c;
  margin-top: 12px;
}
.intro {
  font-size: 24px;
  letter-spacing: 0.72px;
  line-height: 1.2;
  max-width: 590px;
  margin: 80px auto 0;
}
.ready {
  font-size: 36px;
  letter-spacing: 1.08px;
  margin-top: 28px;
  font-weight: 400;
}
.menu-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 38px;
}
.seed-form {
  max-width: 420px;
  margin: 30px auto 0;
}
.seed-form label {
  display: block;
  margin-bottom: 10px;
}
.seed-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.seed-controls input {
  flex: 1 1 160px;
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  background: #fff;
  color: #565656;
  font: inherit;
}
.seed-controls .button {
  min-width: 0;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 16px;
}
#seed-help {
  margin-top: 8px;
  color: #6b6b6b;
  font-size: 13px;
}
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  background: #eee;
  color: #6b6b6b;
  box-shadow:
    inset 0 4px 6px #ffffff40,
    inset 0 -2px 6px #74747440;
  min-height: 87px;
  padding: 16px 42px;
  font-size: 36px;
  letter-spacing: 1.08px;
  transition:
    background 0.2s,
    transform 0.12s,
    box-shadow 0.2s,
    color 0.2s;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, #fff9, transparent);
  transition: transform 0.5s;
}
.button:hover:not(:disabled) {
  background: #e5e5e5;
  color: #444;
  box-shadow:
    inset 0 4px 6px #ffffff80,
    inset 0 -2px 6px #74747440,
    0 3px 8px #0000000a;
}
.button:hover:not(:disabled)::after {
  transform: translateX(120%) skewX(-20deg);
}
.button:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: inset 0 3px 6px #0003;
}
.button:disabled {
  opacity: 0.48;
}
.play {
  min-width: 207px;
  margin-bottom: 4px;
}
.daily {
  margin-top: 8px;
  min-width: 328px;
}
.daily-date {
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.54px;
  margin-top: 11px;
}
.daily-zone {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.menu-footer {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.text-button {
  border: 0;
  background: none;
  color: #777;
  font-size: 13px;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.25s;
}
.text-button:hover {
  color: var(--muted);
  transform: scale(1.2);
}
.resume {
  font-size: 15px;
  margin-bottom: 18px;
}
.panel {
  width: calc(100% - 48px);
  max-width: 1019px;
  min-height: 661px;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  box-shadow: inset 0 -2px 8px #00000030;
  margin: 0 auto;
  padding: 36px 95px 40px;
}
.stats {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  text-align: center;
  align-items: start;
  min-height: 153px;
}
.stat {
  justify-self: start;
}
.stat.total {
  justify-self: end;
}
.pill {
  border-radius: 9px;
  color: #fff;
  background: var(--bank);
  padding: 9px 17px;
  min-width: 138px;
  font-size: 28px;
  line-height: 36px;
  white-space: nowrap;
  -webkit-text-stroke: 3px #0007;
  paint-order: stroke fill;
}
.total .pill {
  background: var(--score);
  min-width: 170px;
}
.stat-caption {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 12px;
}
.round {
  font-size: 24px;
  color: var(--muted);
  line-height: 31px;
}
.points {
  font-size: 28px;
  line-height: 35px;
  margin-top: 18px;
  white-space: nowrap;
}
.bonus {
  font-size: 18px;
  color: var(--muted);
  margin-top: 13px;
  white-space: nowrap;
}
.allowance {
  display: block;
  margin-top: 4px;
  font-size: 0.78em;
}
.stats-center {
  justify-self: center;
  z-index: 1;
}
.reels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.reel-shell {
  position: relative;
  min-width: 0;
}
.reel-shell .reel {
  display: block;
  width: 100%;
}
.reel-toast {
  position: absolute;
  z-index: 5;
  left: 3px;
  right: 3px;
  bottom: 8px;
  padding: 5px 3px;
  border: 2px solid #fff;
  border-radius: 7px;
  background: #202744;
  color: #fff;
  font-size: clamp(9px, 1.4vw, 12px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  box-shadow: 0 3px 8px #0008;
  animation: seen-toast 1.9s ease-out forwards;
}
.bomb-toast {
  background: #6d2634;
}
@keyframes seen-toast {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
  14%,
  68% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1);
  }
}
.reel-inspect {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.reel-inspect:hover,
.reel-inspect:focus-visible {
  background: #0002;
}
#tooltip.pool-tooltip {
  width: 466px;
  max-width: calc(100vw - 20px);
  max-height: calc(100svh - 20px);
  overflow-y: auto;
  pointer-events: auto;
  padding: 46px clamp(16px, 5vw, 58px);
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  box-shadow: 0 4px 4px #0004;
  animation: pool-fade-in 160ms ease-out;
}
.pool-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.pool-slot {
  display: grid;
  place-items: center;
  min-height: 64px;
  border: 3px solid #999;
  border-radius: 6px;
  background: var(--digit-color);
  color: #fefefe;
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 700;
  line-height: 1;
}
.pool-slot > span {
  position: relative;
  display: grid;
  place-items: center;
}
.pool-slot .reel-pool-icon {
  width: 28px;
  height: 28px;
  margin: 0;
}
.pool-note {
  display: block;
  margin-top: 12px;
  text-align: center;
}
@keyframes pool-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.reel {
  position: relative;
  padding: 0;
  height: 153px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  box-shadow: inset 0 4px 4px #0004;
  background: var(--digit-color);
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.15s;
  color: #fefefe;
  font-size: 96px;
  font-weight: 700;
  line-height: 153px;
  -webkit-text-stroke: 4px #0007;
  paint-order: stroke fill;
}
.reel:disabled {
  opacity: 1;
}
.reel .digit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.reel-bomb-icon {
  position: absolute;
  inset: 8%;
  z-index: 0;
  width: 84%;
  height: 84%;
  object-fit: contain;
  opacity: 0.42;
}
.reel-lock-icon {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 3;
  width: clamp(18px, 2.7vw, 32px);
  height: clamp(18px, 2.7vw, 32px);
  filter: drop-shadow(0 2px 2px #0008);
}
.reel-symbol {
  width: min(80%, 112px);
  height: clamp(42px, 8vw, 112px);
  object-fit: contain;
  vertical-align: middle;
}
.reel-pool-icon {
  width: 1.25em;
  height: 1.25em;
  margin-right: 2px;
  vertical-align: -0.3em;
}
.reel.targetable {
  cursor: pointer;
  box-shadow:
    inset 0 4px 4px #0004,
    0 0 0 3px #333;
}
.reel.targetable:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 4px 4px #0004,
    0 0 0 4px #405be3;
}
.reel.source {
  box-shadow:
    inset 0 4px 4px #0004,
    0 0 0 5px #405be3;
  transform: translateY(-5px);
}
.reel-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
}
.reel-strip span {
  display: block;
  height: 153px;
  line-height: 153px;
}
.reel.scoring-hit {
  animation: scoring-reel 420ms ease-out;
  outline: 3px solid var(--digit-color);
  outline-offset: 4px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--digit-color) 45%, transparent);
}
@keyframes scoring-reel {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-8px) scale(1.06);
  }
}
.log-row.scoring-active {
  background: #fff7d6;
  border-radius: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;
  padding-right: 16px;
}
.log-points,
#points,
#total,
#bank {
  font-variant-numeric: tabular-nums;
}
.log-row .log-note[hidden] {
  display: none;
}
.reel.landed {
  animation: land 0.28s ease-out;
}
.inventory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
  min-width: 0;
}
.inventory-section {
  min-width: 0;
}
.inventory-label {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 7px;
}
.inventory-section:last-child .inventory-label {
  text-align: right;
}
.bin {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 111px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 7px 14px;
  background: #f6f6f6;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  box-shadow: inset 0 4px 6px #00000026;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  scroll-behavior: smooth;
}
.item {
  position: relative;
  flex: 0 0 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: none;
  border: 2px solid transparent;
  border-radius: 7px;
  padding: 0 3px;
  color: #343434;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  pointer-events: none;
}
.item-name {
  font-size: 11px;
  letter-spacing: 0.33px;
  text-transform: uppercase;
  white-space: nowrap;
}
.item:hover {
  background: #e8e8e8;
}
.item.selected {
  background: #e8e2fb;
  border-color: #7e40e3;
}
.item.exhausted img {
  opacity: 0.4;
}
.item.selected img {
  animation: tool-lift 0.25s ease-out;
}
.uses {
  position: absolute;
  right: 3px;
  top: 0;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: url("assets/uses.svg") center/29px 29px no-repeat;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  animation: badge-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.uses.empty {
  filter: grayscale(1);
  opacity: 0.6;
}
.action-area {
  text-align: center;
  margin-top: 28px;
}
.tool-hint {
  font-size: 13px;
  color: #777;
  text-align: center;
  min-height: 20px;
  margin-top: 10px;
}
.tool-hint:empty {
  display: none;
}
.tool-hint button {
  border: 0;
  background: none;
  color: #6740aa;
  font-size: inherit;
  text-decoration: underline;
}
.game-footer {
  max-width: 1019px;
  margin: 12px auto 24px;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: #999;
  font-size: 11px;
}
.game-footer .text-button {
  font-size: 11px;
}
.shop-shelf {
  display: grid;
  grid-template-columns: repeat(var(--offer-count), minmax(0, 1fr)) 135px;
  gap: 8px;
  min-height: 173px;
  align-items: center;
  margin-top: -8px;
}
.offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 4px 2px 8px;
  min-width: 0;
  transition:
    background 0.2s,
    transform 0.15s,
    border-color 0.2s;
  color: #111;
}
.offer:hover:not(:disabled) {
  background: #f6f6f6;
  border-color: #ddd;
  transform: translateY(-3px);
}
.offer:active:not(:disabled) {
  transform: translateY(1px);
}
.offer.legendary-spawn {
  animation: legendary-spawn 0.72s cubic-bezier(0.2, 0.9, 0.3, 1.25)
    calc(var(--offer-index) * 0.08s) both;
}
.offer-kind {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}
.rarity {
  font-size: 10px;
  text-transform: uppercase;
  margin-top: 3px;
  color: #888;
}
.uncommon {
  color: #398646;
}
.rare {
  color: #4769bb;
}
.legendary {
  color: #a47714;
}
.offer img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.offer-name {
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}
.price {
  font-size: 24px;
  margin-top: 6px;
}
.offer:disabled,
.offer.unaffordable {
  opacity: 0.42;
}
.offer.sold {
  opacity: 0.5;
}
.offer .sold-label {
  color: #398646;
}
.reroll-control {
  text-align: center;
}
.small {
  font-size: 18px;
  letter-spacing: 0.54px;
  min-height: 51px;
  padding: 10px 20px;
}
.reroll-control .price {
  margin-top: 10px;
}
.shop .inventory {
  margin-top: 22px;
}
.score-log {
  border: 0;
  background: none;
  width: 100%;
  height: 160px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0 8px;
  color: #111;
  border-radius: 8px;
  scrollbar-width: thin;
}
.score-log.running {
  cursor: pointer;
}
.log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  animation: log-in 0.25s ease-out;
  font-size: 23px;
}
.log-row img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.log-name {
  color: var(--muted);
}
.log-row small {
  display: block;
  font-size: 11px;
  color: #888;
  text-align: left;
  margin-top: 3px;
}
.log-row.missed {
  font-size: 16px;
  opacity: 0.55;
}
.log-row.missed img {
  width: 36px;
  height: 36px;
}
.log-empty {
  font-size: 14px;
  color: #888;
  margin: auto;
}
.log-footer {
  font-size: 11px;
  color: #999;
  text-align: center;
  min-height: 14px;
  margin-top: 4px;
}
.scoring .action-area,
.scored .action-area {
  margin-top: 15px;
}
.bonus-award {
  color: #329344 !important;
  animation: bonus-pop 0.5s ease-out;
}
.points.goal-reached {
  color: #329344;
  animation: goal-reached 0.75s ease-out;
}
.goal-confetti {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}
.goal-confetti-particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #0003);
  will-change: transform, opacity;
  animation: goal-confetti var(--duration) cubic-bezier(0.18, 0.7, 0.3, 1)
    var(--delay) both;
}
.bank-bump {
  animation: bonus-pop 0.5s ease-out;
}
.finished .stats {
  min-height: 180px;
}
.final-label {
  font-size: 28px;
  margin-top: 18px;
}
.final-score {
  background: var(--score);
  border-radius: 9px;
  color: white;
  font-size: 42px;
  line-height: 1.2;
  min-width: 274px;
  padding: 18px;
  margin-top: 20px;
  -webkit-text-stroke: 4px #0007;
  paint-order: stroke fill;
  animation: badge-pop 0.5s ease-out;
}
.finished .inventory {
  margin-top: 10px;
}
.finished .action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
  margin-top: 38px;
}
.finished .button {
  min-width: 335px;
}
.run-summary {
  font-size: 12px;
  color: #888;
  margin-top: 18px;
  text-align: center;
}
.new-item {
  animation: new-item 0.7s ease-out;
}
.purchase-result {
  margin-top: 12px;
  color: #565656;
  font-size: 14px;
  text-align: center;
}
#tooltip {
  position: fixed;
  z-index: 20;
  max-width: 280px;
  width: max-content;
  pointer-events: none;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 7px 24px #0002;
  font-size: 13px;
  line-height: 1.6;
  animation: screen-in 0.12s ease-out;
}
#tooltip strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
#tooltip .rarity {
  display: block;
  margin: 0 0 5px;
}
#tooltip .tooltip-description {
  display: block;
  white-space: pre-line;
}
dialog {
  width: min(520px, calc(100% - 36px));
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 32px;
  color: #333;
  box-shadow: 0 16px 64px #0002;
}
dialog::backdrop {
  background: #ffffffb8;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
dialog p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
dialog li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}
dialog form {
  text-align: center;
  margin-top: 24px;
}
.info-dialog[open] {
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  animation: info-dialog-in 280ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.info-dialog[open]::backdrop {
  animation: info-backdrop-in 280ms ease-out both;
}
.info-dialog.closing {
  animation: info-dialog-out 180ms ease-in both;
}
.info-dialog.closing::backdrop {
  animation: info-backdrop-out 180ms ease-in both;
}
.info-dialog a {
  color: #405be3;
  text-underline-offset: 3px;
}
#changelog summary {
  cursor: pointer;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
@keyframes info-dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes info-dialog-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}
@keyframes info-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes info-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.share-fallback {
  width: 100%;
  height: 180px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 12px;
}
@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes brand-reel-colors {
  0% {
    color: var(--zero);
  }
  10% {
    color: var(--one);
  }
  20% {
    color: var(--two);
  }
  30% {
    color: var(--three);
  }
  40% {
    color: var(--four);
  }
  50% {
    color: var(--five);
  }
  60% {
    color: var(--six);
  }
  70% {
    color: var(--seven);
  }
  80% {
    color: var(--eight);
  }
  90% {
    color: var(--nine);
  }
  100% {
    color: var(--color);
  }
}
@keyframes badge-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes land {
  0% {
    transform: scale(1.05) translateY(-10px);
  }
  55% {
    transform: translateY(4px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
@keyframes log-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bonus-pop {
  50% {
    transform: scale(1.5);
  }
}
@keyframes goal-reached {
  0%,
  100% {
    transform: scale(1);
    text-shadow: none;
  }
  35% {
    transform: scale(1.8) rotate(-10deg);
    text-shadow: 0 0 18px #63cc75;
  }
  45% {
    transform: rotate(5deg);
  }
  55% {
    transform: rotate(-3deg);
  }
  65% {
    transform: scale(0.96) rotate(1deg);
  }
}
@keyframes goal-confetti {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  40% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x-mid)), calc(-50% - var(--rise)))
      scale(1) rotate(var(--spin-mid));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x-mid)), calc(-50% - var(--fall)))
      scale(0.75) rotate(var(--spin));
  }
}
@keyframes tool-lift {
  50% {
    transform: translateY(-5px);
  }
}
@keyframes new-item {
  0%,
  50% {
    background: #ddf5df;
    transform: scale(0.9);
  }
  100% {
    background: transparent;
    transform: scale(1);
  }
}
@keyframes legendary-spawn {
  0% {
    opacity: 0;
    transform: scale(0.3);
    filter: drop-shadow(0 0 0 transparent);
  }
  58% {
    opacity: 1;
    transform: scale(1.5);
    filter: drop-shadow(0 0 14px #e9b949);
  }
  78% {
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: drop-shadow(0 0 0 transparent);
  }
}
@media (min-width: 1400px) {
  .game-header {
    padding-top: 36px;
  }
  .panel {
    margin-top: 8px;
  }
  .menu {
    padding-top: clamp(24px, 6vh, 150px);
  }
}
@media (max-width: 1050px) {
  .panel {
    padding: 32px 42px 38px;
  }
  .stats {
    grid-template-columns: 140px 1fr 140px;
  }
  .pill {
    font-size: 24px;
    min-width: 120px;
  }
  .total .pill {
    min-width: 140px;
  }
  .points {
    font-size: 25px;
  }
  .bonus {
    font-size: 15px;
  }
  .reel {
    font-size: 80px;
  }
  .shop-shelf {
    grid-template-columns: repeat(var(--offer-count), minmax(0, 1fr)) 112px;
  }
  .reroll-control .button {
    padding: 10px 12px;
    font-size: 16px;
  }
  .offer img {
    width: 76px;
    height: 76px;
  }
}
@media (max-width: 760px) {
  .game-header {
    padding: 22px 16px 20px;
  }
  .brand h1 {
    font-size: 28px;
    letter-spacing: 12px;
    padding-left: 12px;
  }
  .brand .like {
    font-size: 13px;
    margin-top: 2px;
  }
  .panel {
    width: calc(100% - 24px);
    padding: 24px 20px 32px;
    min-height: 0;
  }
  .stats {
    grid-template-columns: 95px 1fr 95px;
    min-height: 155px;
  }
  .pill {
    min-width: 90px;
    font-size: 19px;
    padding: 6px 9px;
    line-height: 29px;
  }
  .total .pill {
    min-width: 95px;
  }
  .stat-caption {
    font-size: 9px;
    margin-top: 8px;
  }
  .round {
    font-size: 17px;
    line-height: 26px;
  }
  .points {
    font-size: 20px;
    margin-top: 24px;
  }
  .bonus {
    font-size: 12px;
    white-space: normal;
    position: absolute;
    left: 0;
    right: 0;
    top: 95px;
    margin: 0;
  }
  .reels {
    gap: 10px;
  }
  .reel {
    height: 110px;
    line-height: 110px;
    font-size: 64px;
    border-radius: 8px;
  }
  .reel-strip span {
    height: 110px;
    line-height: 110px;
  }
  .inventory {
    gap: 12px;
    margin-top: 24px;
  }
  .inventory-label {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .bin {
    height: 104px;
    padding: 7px 8px;
    gap: 3px;
  }
  .item {
    flex-basis: 84px;
  }
  .item img {
    width: 62px;
    height: 62px;
  }
  .item-name {
    font-size: 9px;
  }
  .uses {
    right: 0;
    top: 1px;
  }
  .button {
    min-height: 68px;
    font-size: 27px;
    padding: 14px 28px;
  }
  .action-area {
    margin-top: 26px;
  }
  .shop-shelf {
    grid-template-columns: repeat(var(--offer-count), minmax(0, 1fr));
    gap: 6px;
    min-height: 190px;
  }
  .offer-kind {
    font-size: 9px;
  }
  .offer img {
    width: 65px;
    height: 65px;
  }
  .offer-name {
    font-size: 9px;
    white-space: normal;
    min-height: 22px;
  }
  .offer .price {
    font-size: 19px;
  }
  .reroll-control {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
  }
  .reroll-control .price {
    font-size: 18px;
    margin: 0;
  }
  .small {
    font-size: 16px;
    min-height: 42px;
    padding: 10px 16px;
  }
  .shop .inventory {
    margin-top: 24px;
  }
  .final-label {
    font-size: 23px;
    margin-top: 20px;
  }
  .final-score {
    min-width: 200px;
    font-size: 34px;
    margin-top: 18px;
    padding: 14px;
  }
  .finished .stats {
    min-height: 192px;
  }
  .finished .button {
    min-width: 270px;
  }
  .finished .action-area {
    gap: 24px;
    margin-top: 30px;
  }
  .log-row {
    font-size: 18px;
  }
  .log-row img {
    width: 44px;
    height: 44px;
  }
  .score-log {
    height: 150px;
  }
  .game-footer {
    margin-top: 12px;
    padding: 0 20px;
  }
  .menu {
    padding-top: 70px;
  }
  .menu .brand h1 {
    font-size: 44px;
    letter-spacing: 17px;
    padding-left: 17px;
  }
  .menu .brand .like {
    font-size: 23px;
  }
  .tagline {
    font-size: 15px;
    margin-top: 28px;
  }
  .intro {
    font-size: 21px;
    margin-top: 64px;
  }
  .ready {
    font-size: 30px;
    margin-top: 25px;
  }
  .menu-actions {
    margin-top: 32px;
  }
  .daily {
    min-width: 280px;
  }
  .daily-date {
    font-size: 15px;
  }
}
@media (max-width: 430px) {
  .menu {
    padding-top: 165px;
  }
  .game-header {
    padding-top: 165px;
  }
  .panel {
    padding: 22px 13px 28px;
  }
  .stats {
    grid-template-columns: 78px 1fr 78px;
    min-height: 151px;
  }
  .pill {
    font-size: 17px;
    min-width: 76px;
    padding: 6px;
  }
  .total .pill {
    min-width: 78px;
  }
  .stat-caption {
    font-size: 8px;
  }
  .round {
    font-size: 14px;
  }
  .points {
    font-size: 18px;
  }
  .reels {
    gap: 7px;
  }
  .reel {
    height: 84px;
    line-height: 84px;
    font-size: 47px;
    -webkit-text-stroke: 3px #0007;
  }
  .reel-strip span {
    height: 84px;
    line-height: 84px;
  }
  .inventory {
    gap: 9px;
  }
  .bin {
    padding: 7px 5px;
  }
  .item {
    flex-basis: 76px;
  }
  .item img {
    width: 58px;
    height: 58px;
  }
  .item-name {
    font-size: 8px;
  }
  .uses {
    width: 24px;
    height: 24px;
    background-size: 24px;
    font-size: 13px;
    right: 1px;
    top: 4px;
  }
  .inventory-label {
    font-size: 11px;
  }
  .offer img {
    width: 58px;
    height: 58px;
  }
  .offer-kind {
    font-size: 8px;
  }
  .offer-name {
    font-size: 9px;
  }
  .final-score {
    font-size: clamp(16px, 2.5vw, 29px);
    min-width: 175px;
  }
  .final-label {
    font-size: 20px;
  }
  .finished .stats {
    min-height: 186px;
  }
  .menu {
    padding: 54px 18px 28px;
  }
  .menu .brand h1 {
    font-size: 38px;
    letter-spacing: 14px;
    padding-left: 14px;
  }
  .menu .brand .like {
    font-size: 21px;
    margin-top: 4px;
  }
  .tagline {
    font-size: 13px;
  }
  .intro {
    font-size: 19px;
    max-width: 330px;
    margin-top: 53px;
  }
  .menu-footer {
    margin-top: 21px;
  }
  .button {
    font-size: 25px;
  }
  .log-row {
    font-size: 16px;
  }
  .game-footer {
    font-size: 9px;
    padding: 0 16px;
  }
}
@media (max-width: 1100px) {
  .page-extras {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 16px 0;
  }
  .record-player {
    position: relative;
    inset: auto;
    flex: 0 0 88px;
  }
  .game-promo {
    position: static;
    flex: 0 1 280px;
    width: auto;
    min-width: 180px;
    margin-left: auto;
  }
  #app {
    min-height: auto;
  }
  .menu,
  .game-header {
    padding-top: 24px;
  }
}
@media (max-width: 430px) {
  .page-extras {
    gap: 12px;
    padding-inline: 12px;
  }
  .game-promo {
    flex-basis: calc(100% - 100px);
    gap: 8px;
    padding: 10px;
  }
  img#game-promo-logo {
    width: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reel-strip {
    will-change: auto;
  }
  .reel-toast {
    animation: none;
  }
  .info-dialog[open],
  .info-dialog[open]::backdrop {
    animation: none;
  }
  .menu .brand-letter {
    animation: none;
  }
  .record-player.playing .record-player-toggle img,
  .record-player.playing .record-player-notes img {
    animation: none;
  }
}

.reel {
  position: relative;
}
.reel-detail {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  font-size: 12px;
  z-index: 2;
}

/* Live divisibility feedback is textual as well as color-coded. */
#tooltip .divisibility-status {
  display: block;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #aeb9c4;
  border-radius: 8px;
  background: #f3f5f7;
  color: #364352;
  font-size: 12px;
}
#tooltip .divisibility-status strong { font-size: 13px; }
#tooltip .divisibility-status span { display: block; margin-top: 3px; }
#tooltip .divisibility-status.will-trigger {
  background: #e7f5eb;
  border-color: #80b791;
  color: #245b35;
}
.item .camera-feedback {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 4px;
  border: 1px solid #80b791;
  border-radius: 5px;
  background: #e7f5eb;
  pointer-events: none;
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #245b35;
  white-space: normal;
  animation: camera-feedback-in 250ms ease-out;
}
@keyframes camera-feedback-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .item .camera-feedback { animation: none; }
}
