:root {
  --bg-top: #dcefff;
  --bg-bottom: #f8fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: rgba(240, 246, 255, 0.92);
  --line: rgba(70, 98, 137, 0.14);
  --line-strong: rgba(70, 98, 137, 0.28);
  --text: #17304c;
  --muted: #6481a0;
  --accent: #37a7ff;
  --accent-soft: rgba(55, 167, 255, 0.12);
  --success: #25ae65;
  --success-soft: rgba(37, 174, 101, 0.16);
  --warning: #ff9f43;
  --warning-soft: rgba(255, 159, 67, 0.16);
  --danger: #ff5e73;
  --danger-soft: rgba(255, 94, 115, 0.16);
  --gold: #f8c948;
  --gold-soft: rgba(248, 201, 72, 0.16);
  --shadow: 0 26px 60px rgba(28, 78, 127, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-height: 78px;
  --nav-height: 86px;
}

* {
  box-sizing: border-box;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Trebuchet MS", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: #000;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

button:not(:disabled) {
  transition: filter 80ms ease;
}

button:not(:disabled):active {
  filter: brightness(0.84) saturate(0.96);
}

#root {
  min-height: 100vh;
  background: #000;
}

.game-loader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
}

.game-loader__scene {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 28px;
  color: #fff;
}

.game-loader__row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.game-loader__bar {
  position: relative;
  flex: 1;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.58);
  overflow: visible;
}

.game-loader__fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6c44d 0%, #75c94e 100%);
  transition: width 90ms linear;
}

.game-loader__chicken {
  position: absolute;
  left: 0%;
  bottom: 16px;
  width: clamp(58px, 16vw, 88px);
  height: auto;
  transform: translateX(-50%);
  image-rendering: auto;
  transition: left 90ms linear;
  filter: drop-shadow(0 8px 7px rgba(255, 255, 255, 0.18));
}

.game-loader__row strong {
  min-width: 54px;
  text-align: right;
  font-weight: 800;
  font-size: 16px;
}

.game-loader__error {
  min-height: 24px;
  color: #ff7a7a;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
}

.game-loader__skip {
  position: relative;
  width: min(360px, 92vw);
  aspect-ratio: 4.2;
  padding: 0;
  border: 0;
  background: none;
}

.game-loader__skip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.game-loader__skip span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 1.6em 0.08em;
  color: #ffffff;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(0.74rem, 3.2vw, 1.05rem);
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0.045em 0 #8c1019,
    -0.045em 0 #8c1019,
    0 0.045em #8c1019,
    0 -0.045em #8c1019;
  pointer-events: none;
}

@media (max-width: 560px) and (pointer: coarse) {
  .game-loader__skip {
    width: min(240px, 92vw);
  }

  .game-loader__skip span {
    padding-inline: 0.8em;
  }
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.app-frame {
  max-width: 1380px;
  margin: 0 auto;
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.topbar,
.bottom-nav,
.screen-card,
.modal-card,
.tutorial-card,
.admin-panel,
.section-card,
.mini-card,
.item-card,
.list-card,
.player-card,
.visitor-card,
.status-pill,
.info-chip {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar,
.bottom-nav,
.screen-card,
.modal-card,
.tutorial-card,
.admin-panel,
.section-card,
.mini-card,
.item-card,
.list-card,
.player-card,
.visitor-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent),
    linear-gradient(135deg, #ffdf88, #ffbf40);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #7f4b00;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.15;
}

.brand-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.82);
}

.status-pill strong {
  color: var(--text);
}

.screen-card {
  border-radius: 34px;
  padding: 22px;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.screen-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.screen-header .screen-title .ghost-button {
  height: 80px !important;
  padding: 12px 18px !important;
  min-height: 80px !important;
  display: flex !important;
  align-items: center !important;
}

.screen-title h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.screen-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.ghost-button,
.primary-button,
.secondary-button,
.danger-button,
.tab-button,
.pay-button,
.mini-button,
.nav-button {
  border-radius: 999px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.ghost-button,
.mini-button,
.tab-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.tab-button:hover,
.pay-button:hover,
.mini-button:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.ghost-button,
.primary-button,
.secondary-button,
.danger-button,
.pay-button,
.nav-button {
  padding: 12px 18px;
  font-weight: 700;
}

.mini-button {
  padding: 9px 12px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #37a7ff, #0077e6);
}

.secondary-button {
  color: #1e5f96;
  background: rgba(55, 167, 255, 0.12);
}

.danger-button {
  color: #a9244c;
  background: rgba(255, 94, 115, 0.14);
}

.pay-button {
  color: #fff;
  background: linear-gradient(135deg, #25ae65, #158b4b);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
}

.nav-button.is-active {
  background: rgba(55, 167, 255, 0.12);
  color: #1f72b6;
}

.farm-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.7fr) minmax(260px, 1fr);
  gap: 18px;
  min-height: 100%;
}

.farm-side,
.farm-center {
  display: grid;
  gap: 18px;
}

.farm-center {
  grid-template-rows: auto 1fr auto;
}

.mini-card,
.section-card,
.item-card,
.player-card,
.visitor-card,
.admin-panel,
.list-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.mini-card h3,
.section-card h3,
.item-card h3,
.player-card h3,
.visitor-card h3,
.admin-panel h3,
.list-card h3 {
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.metric-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
}

.farm-stage {
  min-height: 440px;
  position: relative;
  border-radius: 30px;
  border: 1px solid rgba(70, 98, 137, 0.18);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.85), transparent 30%),
    linear-gradient(180deg, rgba(114, 204, 255, 0.28), rgba(114, 204, 255, 0.06) 30%, rgba(108, 199, 118, 0.2) 30%, rgba(108, 199, 118, 0.34) 100%);
  overflow: hidden;
}

.farm-stage::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.28), transparent 0 18%),
    radial-gradient(circle at 58% 32%, rgba(255, 255, 255, 0.22), transparent 0 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(84, 160, 92, 0.2));
  opacity: 0.7;
}

.farm-overlay-grid {
  position: relative;
  min-height: 440px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  padding: 24px;
  gap: 16px;
}

.field-group {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
}

.character,
.farm-object,
.egg-token,
.merchant-card,
.doghouse,
.feeder-core,
.feed-bag,
.tray-egg {
  user-select: none;
}

.character-stack {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 170px;
}

.chicken-token {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9), transparent 0 24%),
    linear-gradient(180deg, #fff4da, #ffd66d);
  box-shadow: 0 18px 34px rgba(140, 109, 29, 0.18);
  position: relative;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #8f6100;
  animation: chickenBob 2.8s ease-in-out infinite;
}

.chicken-token::after {
  content: "";
  position: absolute;
  inset: auto 10px 12px auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 128, 0, 0.5);
}

.chicken-token.is-super {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95), transparent 0 24%),
    linear-gradient(180deg, #fff5bf, #ffc446);
}

@keyframes chickenBob {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.feeder-card {
  display: grid;
  gap: 16px;
}

.feeder-visual {
  display: grid;
  gap: 12px;
}

.feeder-core {
  min-height: 154px;
  border-radius: 24px;
  border: 1px solid rgba(70, 98, 137, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(220, 237, 249, 0.55)),
    linear-gradient(180deg, #9cc6df 0%, #7da8c2 100%);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.feeder-core::before {
  content: "";
  position: absolute;
  inset: auto 15% 16px;
  height: 20px;
  border-radius: 999px;
  background: rgba(128, 97, 53, 0.16);
}

.feed-fill {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 34px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      -20deg,
      rgba(255, 215, 126, 0.95),
      rgba(255, 215, 126, 0.95) 12px,
      rgba(240, 181, 74, 0.95) 12px,
      rgba(240, 181, 74, 0.95) 24px
    );
  transition: height 220ms ease;
}

.feed-progress {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(55, 167, 255, 0.12);
}

.feed-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #37a7ff, #72d0ff);
}

.auto-feeder-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(37, 174, 101, 0.16);
  color: #167745;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.farm-object {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(70, 98, 137, 0.16);
  background: rgba(255, 255, 255, 0.66);
}

.farm-object-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-bag-stack,
.egg-tray-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-bag,
.tray-egg {
  min-width: 58px;
  height: 62px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), transparent),
    linear-gradient(180deg, #e6d0a2, #c7a56d);
  border: 1px solid rgba(117, 86, 42, 0.18);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #74521f;
}

.tray-egg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.88), transparent 0 24%),
    linear-gradient(180deg, #ffe58b, #f6ba29);
  color: #815600;
  position: relative;
}

.tray-egg::after {
  content: "TON";
  position: absolute;
  inset: auto 0 8px;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.merchant-card {
  align-self: flex-start;
  justify-self: end;
  width: min(240px, 100%);
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 244, 214, 0.7));
  border: 1px solid rgba(248, 201, 72, 0.35);
  display: grid;
  gap: 10px;
}

.merchant-card strong {
  font-size: 1.04rem;
}

.doghouse {
  min-height: 148px;
  border-radius: 24px;
  border: 1px solid rgba(70, 98, 137, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 239, 227, 0.7)),
    linear-gradient(180deg, #d68445, #b9672e);
  position: relative;
  overflow: hidden;
}

.doghouse::before {
  content: "";
  position: absolute;
  inset: 24px 20px auto;
  height: 70px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(128, 61, 21, 0.7);
}

.doghouse::after {
  content: "";
  position: absolute;
  inset: auto 28px 20px;
  height: 64px;
  border-radius: 20px;
  background: rgba(120, 67, 32, 0.86);
}

.tray-card {
  display: grid;
  gap: 16px;
}

.tray-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tray-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tray-count strong {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.item-card {
  display: grid;
  gap: 14px;
  position: relative;
}

.item-visual {
  min-height: 150px;
  border-radius: 22px;
  border: 1px solid rgba(70, 98, 137, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), transparent 32%),
    linear-gradient(180deg, rgba(214, 239, 255, 0.84), rgba(245, 249, 255, 0.78));
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #5e7d9a;
}

.item-card.is-selected {
  border-color: rgba(55, 167, 255, 0.34);
  box-shadow: 0 26px 60px rgba(55, 167, 255, 0.16);
}

.purchase-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 174, 101, 0.16);
  color: #177645;
  font-size: 0.8rem;
  font-weight: 800;
}

.price-row,
.action-row,
.inline-row,
.admin-toolbar,
.detail-grid,
.checkout-summary,
.settings-grid,
.two-column,
.three-column {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.two-column,
.three-column {
  display: grid;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-tag,
.info-chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
}

.price-tag {
  background: rgba(55, 167, 255, 0.12);
  color: #196fb0;
}

.info-chip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.checkout-layout,
.settings-layout,
.leaderboard-layout,
.visitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.list-table,
.translation-table,
.finance-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-panel,
.metric-card,
.history-item,
.summary-row,
.notification-item,
.field-label,
.action-row,
.admin-toolbar,
.two-column,
.three-column {
  min-width: 0;
}

.admin-panel :is(h3, p, span, strong, button, label, input, textarea, select, th, td),
.screen-card :is(h2, h3, p, span, strong, button, label, input, textarea, select) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.list-table th,
.list-table td,
.translation-table th,
.translation-table td,
.finance-table th,
.finance-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.list-table th,
.translation-table th,
.finance-table th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.translation-table textarea,
.field,
.field-select,
.field-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 14px;
  color: var(--text);
}

.translation-table textarea {
  min-height: 88px;
  resize: vertical;
}

.translation-table td.is-missing textarea {
  border-color: rgba(255, 94, 115, 0.5);
  background: rgba(255, 94, 115, 0.06);
}

.field-label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-label span {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-xl);
}

.bottom-nav-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hint {
  font-size: 0.84rem;
  color: var(--muted);
}

.modal-layer,
.tutorial-layer {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.tutorial-layer.scene-overlay-layer {
  z-index: auto;
}

.modal-backdrop,
.tutorial-backdrop {
  position: fixed;
  inset: -200vmax;
  background: rgba(7, 25, 41, 0.7);
  cursor: pointer;
  pointer-events: auto;
  z-index: 99;
}

.tutorial-layer .tutorial-backdrop,
.tutorial-layer .scene-menu-advice,
.tutorial-layer .scene-helper-man {
  pointer-events: auto;
}

.tutorial-layer .tutorial-hand {
  pointer-events: none;
}

.tutorial-layer .tutorial-backdrop {
  z-index: 1310;
}

.tutorial-layer .tutorial-backdrop.tutorial-backdrop--pass-through {
  pointer-events: none;
}

.tutorial-layer .scene-menu-advice {
  z-index: 1325;
}

.tutorial-layer .scene-helper-man {
  z-index: 1324;
}

.tutorial-layer .tutorial-hand {
  z-index: 1326;
}

.tutorial-click-catcher {
  position: absolute;
  inset: 0;
  z-index: 1323;
  pointer-events: auto;
  background: transparent;
}

.tutorial-layer[data-tutorial-target="merchant-status"] .tutorial-hand {
  display: none !important;
}

.modal-wrap,
.tutorial-wrap {
  position: fixed;
  width: min(720px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  z-index: 100;
  pointer-events: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 90vh;
  overflow-y: auto;
}

.tutorial-wrap {
  justify-content: flex-end;
  align-items: flex-end;
}

.modal-card {
  width: min(720px, 100%);
  border-radius: 30px;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.modal-card h3,
.tutorial-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.modal-card p,
.tutorial-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.theft-alert-layer {
  z-index: 140;
}

.theft-alert-backdrop {
  background: transparent;
}

.theft-alert-wrap {
  width: min(520px, calc(100vw - 28px));
  max-height: none;
  overflow: visible;
  padding: 0;
  top: 35%;
}

.theft-alert-card {
  position: relative;
  width: 100%;
  color: #0e0a07;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.theft-alert-card--small {
  width: min(430px, 78vw);
  aspect-ratio: 2.14;
}

.theft-alert-card--large {
  width: min(470px, 82vw);
  aspect-ratio: 1.45;
}

.theft-alert-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.theft-alert-card__copy {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 23%;
  text-align: center;
  font-size: clamp(1.35rem, 4.2vw, 2.05rem);
  line-height: 1.12;
  z-index: 2;
}

.theft-alert-card--large .theft-alert-card__copy {
  top: 20%;
  font-size: clamp(1.1rem, 3.6vw, 1.75rem);
  line-height: 1.18;
}

.theft-alert-card__yes {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 7.4em;
  height: 3.15em;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 3;
}

.theft-alert-card--small .theft-alert-card__yes {
  bottom: 17%;
  transform: translateX(-16%);
}

.theft-alert-card--dog .theft-alert-card__yes {
  bottom: 10%;
}

.theft-alert-card__yes-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.theft-alert-card__yes span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 0.08em;
  color: #ffffff;
  font-size: 1.6em;
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    0.045em 0 #8c1019,
    -0.045em 0 #8c1019,
    0 0.045em #8c1019,
    0 -0.045em #8c1019;
}

.theft-alert-card__glove {
  position: absolute;
  left: 13%;
  bottom: 14%;
  width: 24%;
  z-index: 4;
  transform: rotate(-8deg);
  pointer-events: none;
}

.theft-alert-card__dog-head {
  position: absolute;
  left: -3%;
  top: -18%;
  width: 31%;
  z-index: 4;
  pointer-events: none;
}

.merchant-choice-layer .modal-backdrop {
  background: rgba(5, 20, 32, 0.76);
}

.withdraw-merchant-layer {
  z-index: 145;
}

.withdraw-merchant-backdrop {
  background: rgba(5, 20, 32, 0.34);
}

.withdraw-merchant-wrap {
  width: min(430px, calc(100vw - 22px));
  max-height: none;
  overflow: visible;
  justify-content: flex-start;
  transform: translate(-50%, -50%);
}

.withdraw-merchant-man {
  position: relative;
  width: 30%;
  min-width: 94px;
  height: auto;
  z-index: 2;
  flex: 0 0 auto;
  margin-right: -5%;
  align-self: flex-end;
  pointer-events: none;
}

.withdraw-merchant-bubble {
  position: relative;
  width: min(275px, 66vw);
  min-height: 96px;
  padding: 14px 16px 44px;
  border: 3px solid #2b1a12;
  border-radius: 18px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 4px 0 rgba(43, 26, 18, 0.22);
  z-index: 3;
}

.withdraw-merchant-bubble::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 34px;
  width: 25px;
  height: 25px;
  background: #ffffff;
  border-left: 3px solid #2b1a12;
  border-bottom: 3px solid #2b1a12;
  transform: rotate(45deg);
}

.withdraw-merchant-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.12;
}

.withdraw-merchant-actions {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.withdraw-merchant-action,
.withdraw-merchant-settings {
  border: 2px solid #2b1a12;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(43, 26, 18, 0.28);
}

.withdraw-merchant-action {
  min-width: 52px;
  min-height: 24px;
  padding: 2px 10px 3px;
  font-size: 14px;
}

.withdraw-merchant-action--yes,
.withdraw-merchant-settings {
  background: linear-gradient(180deg, #99d951 0%, #5baa1f 100%);
}

.withdraw-merchant-action--no {
  background: linear-gradient(180deg, #f56b62 0%, #d7232d 100%);
}

.withdraw-merchant-settings {
  position: absolute;
  left: 50%;
  bottom: 10px;
  min-width: 136px;
  min-height: 28px;
  padding: 4px 14px 5px;
  font-size: 16px;
  transform: translateX(-50%);
  text-transform: uppercase;
}

.withdraw-paid-layer {
  z-index: 1460;
}

.withdraw-paid-backdrop {
  background: rgba(5, 18, 22, 0.58);
}

.withdraw-paid-wrap {
  width: min(560px, calc(100vw - 28px));
  max-height: none;
  overflow: visible;
}

.withdraw-paid-card {
  position: relative;
  width: 100%;
  aspect-ratio: 523 / 388;
  color: #3b1d12;
  text-align: center;
  font-weight: 1000;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.18));
}

.withdraw-paid-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.withdraw-paid-card__title {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 5.5%;
  color: #ffffff;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 1;
  -webkit-text-stroke: 4px #3b1d12;
  text-shadow: 0 4px 0 #3b1d12;
}

.withdraw-paid-card__body {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 45%;
  font-size: clamp(22px, 5.4vw, 36px);
  line-height: 1.22;
}

.withdraw-paid-card__amount {
  position: absolute;
  left: 50%;
  bottom: 4.5%;
  min-width: 30%;
  height: 19%;
  padding: 0 16px;
  border: 4px solid #3b1d12;
  border-radius: 22px;
  background: linear-gradient(180deg, #bfe05b 0%, #99c536 52%, #78a524 100%);
  color: #ffffff;
  font-size: clamp(31px, 8vw, 56px);
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  transform: translateX(-50%);
  -webkit-text-stroke: 2px #3b1d12;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.2), 0 4px 0 rgba(43, 26, 18, 0.28);
}

.withdraw-merchant-bubble--settings {
  min-height: 108px;
  padding-bottom: 48px;
}

.withdraw-merchant-layer--settings .withdraw-merchant-wrap {
  justify-content: center;
}

.withdraw-merchant-layer--settings .withdraw-merchant-bubble::before {
  display: none;
}

.merchant-choice-wrap {
  position: relative;
  width: min(543px, calc(100vw - 24px));
  max-height: none;
  overflow: visible;
  padding: 0;
}

.merchant-choice-merchant {
  position: absolute;
  left: -13%;
  top: -43%;
  width: 43%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.merchant-choice-card {
  position: relative;
  width: min(543px, 100%);
  aspect-ratio: 766 / 670;
  margin: 0 auto;
  z-index: 2;
}

.merchant-choice-card--message {
  aspect-ratio: 766 / 670;
}

.merchant-choice-card__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merchant-choice-close {
  position: absolute;
  top: 4.2%;
  right: 3.1%;
  width: 7.5%;
  height: 11%;
  border: 0;
  background: transparent;
  z-index: 5;
}

.merchant-choice-copy {
  position: absolute;
  z-index: 4;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  line-height: 1.05;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  text-shadow:
    0.06em 0 #000000,
    -0.06em 0 #000000,
    0 0.06em #000000,
    0 -0.06em #000000,
    0.045em 0.045em #000000,
    -0.045em 0.045em #000000,
    0.045em -0.045em #000000,
    -0.045em -0.045em #000000;
}

.merchant-choice-copy--discount,
.merchant-choice-copy--withdraw {
  top: calc(12% + 30px);
  width: 31%;
  font-size: 1.5rem;
}

.merchant-choice-copy--discount {
  left: 9%;
}

.merchant-choice-copy--withdraw {
  right: 7%;
}

.merchant-choice-copy--or {
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  font-size: 1.7rem;
}

.merchant-choice-option {
  position: absolute;
  border: 0;
  background: transparent;
  padding: 0;
  z-index: 3;
  cursor: pointer;
  border-radius: 26px;
}

.merchant-choice-option--discount {
  left: 10%;
  top: 24%;
  width: 31%;
  height: 48%;
}

.merchant-choice-option--withdraw {
  right: 9%;
  top: 24%;
  width: 27%;
  height: 48%;
}

.merchant-choice-option:hover,
.merchant-choice-option:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28);
  outline: none;
}

.merchant-choice-speech {
  position: absolute;
  left: 25%;
  top: -16%;
  width: min(258px, 58vw);
  min-height: 0;
  aspect-ratio: 344 / 194;
  padding: 11% 10% 18%;
  border: 0;
  border-radius: 0;
  background: var(--dialog-image) center/100% 100% no-repeat;
  color: #111111;
  filter: drop-shadow(0 6px 6px rgba(43, 26, 18, 0.18));
  z-index: 4;
}

.merchant-choice-speech::before {
  display: none;
}

.merchant-choice-speech-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  font-size: clamp(0.78rem, 2.25vw, 1.02rem);
  font-weight: 900;
  line-height: 1.05;
}

.merchant-choice-speech-actions {
  position: absolute;
  left: 50%;
  bottom: 13%;
  z-index: 4;
  display: flex;
  gap: 0.45em;
  transform: translateX(-50%);
}

.merchant-choice-speech-button {
  border: 0.12em solid #2b1a12;
  border-radius: 0.45em;
  color: #ffffff;
  font-size: clamp(0.86rem, 2.25vw, 1.06rem);
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0.12em 0 rgba(43, 26, 18, 0.28);
  transform: none;
}

.merchant-choice-speech-button--yes,
.merchant-choice-speech-button--settings {
  background: linear-gradient(180deg, #99d951 0%, #5baa1f 100%);
}

.merchant-choice-speech-button--no {
  background: linear-gradient(180deg, #f56b62 0%, #d7232d 100%);
}

.merchant-choice-speech-button--yes,
.merchant-choice-speech-button--no {
  min-width: 4.6em;
  min-height: 1.75em;
  padding: 0.2em 0.86em 0.28em;
}

.merchant-choice-speech-button--settings {
  position: absolute;
  left: 50%;
  bottom: 11%;
  z-index: 4;
  min-width: 8.6em;
  min-height: 1.75em;
  padding: 0.18em 0.8em 0.28em;
  transform: translateX(-50%);
  text-transform: uppercase;
}

.merchant-choice-speech-button--inline-settings {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
}

@media (max-width: 560px) {
  .merchant-choice-merchant {
    left: -8%;
    top: -36%;
    width: 40%;
  }

  .merchant-choice-speech {
    left: 20%;
    top: -28%;
    width: min(250px, 66vw);
    min-height: 82px;
    padding: 10px 12px 40px;
  }

  .merchant-choice-copy--discount,
  .merchant-choice-copy--withdraw {
    font-size: 1rem;
  }

  .merchant-choice-copy--or {
    font-size: 1.12rem;
  }
}

.auth-menu-layer .modal-backdrop {
  background: rgba(10, 22, 34, 0.76);
}

.auth-menu-wrap {
  width: min(700px, calc(100vw - 24px));
  max-height: none;
  overflow: visible;
  padding: 0;
}

.auth-menu-card {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 887 / 625;
  margin: 0 auto;
}

.auth-menu-card__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-menu-card__title,
.auth-menu-card__prompt {
  position: absolute;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50px);
  text-align: center;
  font-weight: 900;
  line-height: 1.08;
}

.auth-menu-card__title {
  top: 15.5%;
  width: 44%;
  color: #1f150f;
  font-size: clamp(20px, 2.4vw, 32px);
}

.auth-menu-card__prompt {
  top: 54%;
  width: 62%;
  color: #ffffff;
  font-size: clamp(20px, 2.7vw, 34px);
  text-shadow:
    0.06em 0 #000000,
    -0.06em 0 #000000,
    0 0.06em #000000,
    0 -0.06em #000000,
    0.045em 0.045em #000000,
    -0.045em 0.045em #000000,
    0.045em -0.045em #000000,
    -0.045em -0.045em #000000;
}

.auth-menu-card__telegram-button {
  position: absolute;
  left: 50%;
  top: calc(70.5% - 10px);
  width: 16%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.tutorial-card {
  width: min(420px, calc(100vw - 28px));
  border-radius: 28px;
  padding: 20px;
  position: relative;
  z-index: 110;
  margin: 0 18px 20px auto;
}

.tutorial-card .action-row {
  margin-top: 16px;
}

.tutorial-hand {
  position: absolute;
  z-index: 109;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 34px rgba(7, 25, 41, 0.18);
}

@keyframes handPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

.tutorial-hand img {
  animation: handPulse 1.2s ease-in-out infinite;
  transform-origin: center;
}

.spotlight-target {
  box-shadow: none;
}

.tutorial-focus-context {
  z-index: 1315 !important;
}

.tutorial-focus-target {
  z-index: 1316 !important;
}

.scene-top-panel__day.tutorial-focus-target {
  position: relative;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge.success {
  background: var(--success-soft);
  color: #197245;
}

.badge.warning {
  background: var(--warning-soft);
  color: #ad6202;
}

.badge.danger {
  background: var(--danger-soft);
  color: #ad2d51;
}

.badge.neutral {
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  border: 1px solid var(--line);
}

.history-list,
.leaderboard-list,
.stats-bars,
.summary-list,
.notification-list {
  display: grid;
  gap: 12px;
}

.history-item,
.leader-row,
.summary-row,
.notification-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.leader-row {
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
}

.rank-badge {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(248, 201, 72, 0.16);
  color: #8b6100;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 12px;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(55, 167, 255, 0.12);
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #37a7ff, #72d0ff);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button.is-active {
  background: rgba(55, 167, 255, 0.12);
  color: #1869ab;
}

.admin-layout {
  display: grid;
  gap: 18px;
}

.footer-note {
  text-align: right;
  color: var(--muted);
  font-size: 0.84rem;
}

.inline-link {
  color: #1774bb;
  font-weight: 700;
  background: transparent;
  padding: 0;
}

@media (max-width: 1180px) {
  .farm-layout,
  .checkout-layout,
  .settings-layout,
  .leaderboard-layout,
  .visitor-layout {
    grid-template-columns: 1fr;
  }

  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 10px;
  }

  .app-frame {
    min-height: calc(100vh - 20px);
  }

  .topbar,
  .screen-card,
  .bottom-nav {
    border-radius: 24px;
  }

  .screen-card {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-grid,
  .two-column,
  .three-column,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .farm-layout {
    grid-template-columns: 1fr;
  }

  .farm-overlay-grid {
    grid-template-columns: 1fr;
    min-height: 580px;
  }

  .leader-row {
    grid-template-columns: auto 1fr;
  }

  .bottom-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .bottom-nav-buttons {
    justify-content: space-between;
  }

  .nav-button {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

.farm-screen-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.textured-brand {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.textured-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(22, 60, 97, 0.2));
}

.textured-pill {
  min-width: 152px;
  min-height: 68px;
  padding: 10px 18px 14px;
  border: 0;
  border-radius: 0;
  background: url("texturies/UI/button pad for days and $.png") center/100% 100% no-repeat;
  box-shadow: none;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.textured-pill span {
  font-size: 0.78rem;
  color: #4a6784;
}

.textured-pill strong {
  font-size: 1rem;
  color: #1c344f;
}

.texture-card {
  position: relative;
  border: 0;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 56px rgba(19, 55, 92, 0.12);
  overflow: hidden;
}

.texture-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("texturies/dialogues/dialog boxes/dialogBoxS.png") center/100% 100% no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.texture-card > * {
  position: relative;
  z-index: 1;
}

.texture-card-title {
  margin-bottom: 10px;
}

.textured-scene {
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
    var(--screen-background) center/100% 100% no-repeat;
  box-shadow: 0 28px 64px rgba(17, 52, 88, 0.18);
}

.textured-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 20%, rgba(10, 31, 51, 0.04));
  pointer-events: none;
}

.textured-scene > * {
  position: relative;
  z-index: 1;
}

.textured-scene .screen-header {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.textured-scene .screen-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: url("texturies/UI/line.png") center/contain no-repeat;
  opacity: 0.9;
}

.textured-farm-layout {
  grid-template-columns: minmax(220px, 0.82fr) minmax(360px, 1.95fr) minmax(220px, 0.92fr);
  align-items: start;
}

.textured-farm-stage {
  min-height: 780px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--farm-background) center top/100% 100% no-repeat;
  box-shadow: 0 30px 70px rgba(19, 55, 92, 0.18);
}

.textured-farm-stage::before {
  display: none;
}

.farm-overlay-grid {
  min-height: 780px;
  padding: 18px;
  display: block;
}

.scene-hud {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scene-hud-left {
  top: 14px;
  left: 14px;
}

.scene-hud-right {
  top: 14px;
  right: 14px;
  justify-content: flex-end;
}

.hud-pad {
  min-width: 142px;
  min-height: 74px;
  padding: 12px 16px 14px;
  border: 0;
  background: var(--hud-pad-image) center/100% 100% no-repeat;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.hud-pad span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4f6882;
}

.hud-pad strong {
  font-size: 1rem;
  color: #18324d;
}

.hud-pad-bags {
  min-width: 156px;
}

.status-pads-grid,
.settings-pads-grid {
  display: grid;
  gap: 12px;
}

.scene-object {
  position: absolute;
  z-index: 2;
  user-select: none;
}

.scene-storage,
.scene-market {
  cursor: pointer;
}

.scene-storage {
  left: 1.5%;
  bottom: 17%;
  width: 20%;
  min-width: 140px;
}

.scene-market {
  left: 25%;
  top: 18%;
  width: 18%;
  min-width: 140px;
  text-align: center;
}

.scene-feeder {
  top: 18%;
  right: 5.5%;
  width: 28%;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
}

.scene-feeder .info-chip {
  background: rgba(255, 255, 255, 0.8);
}

.scene-chickens {
  left: 29%;
  bottom: 14%;
  width: 42%;
  min-height: 250px;
}

.scene-doghouse {
  right: 2%;
  bottom: 10%;
  width: 17%;
  min-width: 128px;
}

.scene-merchant {
  top: 7%;
  left: 45%;
  width: 35%;
  min-width: 250px;
  z-index: 6;
}

.scene-object img,
.feature-illustration,
.storage-illustration,
.tray-base-image {
  display: block;
  width: 100%;
  height: auto;
}

.scene-object-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 4px;
  padding: 8px 16px 12px;
  background: url("texturies/UI/button pad for days and $.png") center/100% 100% no-repeat;
  font-size: 0.84rem;
  font-weight: 700;
  color: #24445f;
}

.feeder-image {
  width: 100%;
  filter: drop-shadow(0 14px 22px rgba(46, 60, 82, 0.16));
}

.feeder-scale-image {
  width: 78%;
  margin-top: -8%;
}

.feeder-scale-image.is-auto {
  position: absolute;
  top: 32%;
  right: 2%;
  width: 34%;
  margin-top: 0;
}

.feed-now-button {
  min-width: 190px;
}

.feeder-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.real-character-stack {
  position: relative;
  width: 100%;
  min-height: 260px;
}

.chicken-actor {
  position: absolute;
  width: clamp(108px, 16.5vw, 180px);
}

.chicken-actor.is-super {
  width: clamp(137.25px, 19.575vw, 207px);
}

.chicken-actor-1 {
  left: 4%;
  bottom: 0;
}

.chicken-actor-2 {
  left: 24%;
  bottom: 10%;
}

.chicken-actor-3 {
  left: 44%;
  bottom: 2%;
}

.chicken-actor-4 {
  left: 62%;
  bottom: 14%;
}

.chicken-actor-5 {
  left: 77%;
  bottom: 0;
}

.chicken-shadow {
  position: absolute;
  left: 7%;
  bottom: 2%;
  width: 84%;
  opacity: 0.48;
}

.chicken-sprite {
  position: relative;
  z-index: 1;
  width: 100%;
}

.doghouse-real {
  position: relative;
  width: min(240px, 100%);
  margin: 0 auto;
}

.doghouse-base {
  width: 100%;
}

.doghouse-dog {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 18%;
  width: 58%;
}

.dog-scene-house {
  width: 100%;
}

.dog-scene-dog {
  position: absolute;
  left: 20%;
  bottom: 16%;
  width: 50%;
}

.merchant-car {
  width: 68%;
  margin-left: auto;
}

.merchant-man {
  position: absolute;
  left: 8%;
  bottom: 10%;
  width: 22%;
}

.merchant-bubble {
  position: absolute;
  top: 0;
  right: 0;
  width: 66%;
  min-height: 126px;
  padding: 18px 18px 22px;
  background: url("texturies/dialogues/dialog boxes/dialogBoxM.png") center/100% 100% no-repeat;
  display: grid;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.merchant-bubble strong {
  color: #1f3c58;
}

.storage-illustration {
  max-width: 82%;
  margin: 0 auto 8px;
}

.real-bag-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tray-card {
  padding-bottom: 22px;
}

.tray-total {
  align-items: flex-start;
}

.tray-image-wrap {
  position: relative;
  min-height: 180px;
}

.real-egg-tray {
  position: absolute;
  inset: 14% 6% calc(18% + 20px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.egg-token-real {
  position: relative;
  width: clamp(50px, 6vw, 72px);
  flex: 0 0 auto;
}

.egg-token-real img {
  width: 100%;
  height: auto;
}

.egg-token-real span {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #0b6ebf;
}

.market-card-preview .feature-illustration {
  max-width: 82%;
  margin: 0 auto 12px;
}

.textured-item-card {
  min-height: 394px;
  padding: 16px 16px 20px;
  border: 0;
  background: var(--store-cell-image) center/100% 100% no-repeat;
  box-shadow: none;
}

.textured-item-card::before {
  display: none;
}

.textured-item-card.is-selected {
  filter: drop-shadow(0 18px 34px rgba(21, 77, 128, 0.18));
}

.textured-item-visual {
  position: relative;
  min-height: 190px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.item-art {
  width: min(82%, 240px);
  margin: 0 auto;
}

.item-anim {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 42%;
  max-width: 110px;
}

.purchase-badge {
  top: 10px;
  right: 8px;
  min-height: 38px;
  padding: 8px 14px 12px;
  border-radius: 0;
  border: 0;
  background: url("texturies/UI/buttons/S.png") center/100% 100% no-repeat;
  color: #215e40;
}

.textured-price-tag {
  min-height: 42px;
  padding: 8px 16px 10px;
  border: 0;
  border-radius: 0;
  background: var(--price-pad-image) center/100% 100% no-repeat;
  box-shadow: none;
  color: #214059;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
}

.icon-button img {
  width: 100%;
  height: auto;
}

.textured-quantity-pill {
  min-width: 64px;
  min-height: 42px;
  padding: 8px 14px 10px;
  border: 0;
  border-radius: 0;
  background: var(--quantity-pill-image) center/100% 100% no-repeat;
  box-shadow: none;
  display: inline-grid;
  place-items: center;
  color: #1a3651;
}

.checkout-card {
  border: 0;
  background: rgba(255, 255, 255, 0.78);
}

.leaderboard-textured-list {
  max-width: 860px;
}

.textured-leader-row {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 34px rgba(17, 52, 88, 0.08);
}

.leader-player-copy strong {
  display: block;
  margin-bottom: 4px;
}

.leader-reward-chip {
  min-width: 150px;
  min-height: 46px;
  padding: 8px 16px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: url("texturies/UI/button pad for days and $.png") center/100% 100% no-repeat;
  color: #21425e;
  font-weight: 800;
}

.leader-reward-chip img {
  width: 28px;
  height: 28px;
}

.settings-layout {
  align-items: start;
}

.settings-pads-grid .hud-pad {
  min-width: 0;
}

.primary-button,
.secondary-button,
.danger-button,
.pay-button,
.ghost-button,
.mini-button,
.tab-button,
.nav-button {
  min-height: 46px;
  padding: 8px 16px 12px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
  color: #1e4767;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.primary-button,
.pay-button {
  background-image: url("texturies/UI/buttons/L.png");
}

.secondary-button,
.ghost-button {
  background-image: url("texturies/UI/buttons/S.png");
}

.mini-button,
.tab-button,
.nav-button {
  min-height: 40px;
  padding: 7px 14px 10px;
  background-image: url("texturies/UI/buttons/XS.png");
}

.danger-button {
  background-image: url("texturies/UI/buttons/Red M.png");
  color: #842441;
}

.tab-button.is-active,
.nav-button.is-active {
  background-image: url("texturies/UI/buttons/M.png");
  color: #19496b;
}

.textured-bottom-nav {
  position: relative;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
}

.textured-bottom-nav::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 6px;
  height: 12px;
  background: url("texturies/UI/line.png") center/contain no-repeat;
  opacity: 0.86;
}

.textured-bottom-nav .bottom-nav-buttons {
  width: 100%;
  justify-content: space-between;
  padding-top: 8px;
}

.textured-bottom-nav .hint {
  width: 100%;
  text-align: center;
}

.textured-dialog-card {
  border: 0;
  background: var(--dialog-image) center/100% 100% no-repeat;
  box-shadow: 0 28px 70px rgba(7, 25, 41, 0.28);
  backdrop-filter: none;
}

.item-dialog-card {
  max-width: 580px;
}

.modal-item-visual {
  position: relative;
  min-height: 180px;
  margin-bottom: 10px;
}

.modal-item-art {
  display: block;
  width: min(76%, 260px);
  margin: 0 auto;
}

.modal-item-anim {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 34%;
  max-width: 120px;
}

.scene-item-detail-layer {
  z-index: 155;
}

.scene-item-detail-backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.scene-item-detail-wrap {
  width: min(430px, calc(100vw - 42px));
  overflow: visible;
  padding: 0;
}

.scene-item-detail-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.12;
  color: #20140d;
  text-align: center;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
}

.scene-item-detail-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
  filter: drop-shadow(0 0.45em 0 rgba(67, 38, 16, 0.42));
}

.scene-item-detail-card__close {
  position: absolute;
  right: -3%;
  top: -7%;
  width: 20%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  z-index: 3;
}

.scene-item-detail-card__close img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-item-detail-card__art {
  position: absolute;
  left: 50%;
  top: 11%;
  width: 42%;
  height: 38%;
  object-fit: contain;
  transform: translate(-50%, 25px);
  transform-origin: center center;
}

.scene-item-detail-card__copy {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 58%;
  display: grid;
  justify-items: center;
  gap: 0.08em;
}

.scene-item-detail-card__copy strong {
  color: #2f92d5;
  font-size: 2rem;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.scene-item-detail-card__copy span {
  color: #2a1b12;
  font-size: 1.62rem;
  line-height: 1.04;
  font-weight: 800;
  max-width: 10.4em;
}

.scene-item-detail-card--auto .scene-item-detail-card__copy strong {
  font-size: 1.54rem;
}

.scene-item-detail-card--auto .scene-item-detail-card__copy span {
  font-size: 1.28rem;
  line-height: 1.02;
  max-width: 11.4em;
}

@media (max-width: 480px) {
  .scene-item-detail-card__copy strong {
    font-size: 1.42rem;
  }

  .scene-item-detail-card__copy span {
    font-size: 1.12rem;
  }

  .scene-item-detail-card--auto .scene-item-detail-card__copy strong {
    font-size: 1.12rem;
  }

  .scene-item-detail-card--auto .scene-item-detail-card__copy span {
    font-size: 0.98rem;
  }
}

.tutorial-dialog-card {
  width: min(480px, calc(100vw - 24px));
}

.tutorial-hand {
  width: 63.33px;
  height: 63.33px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tutorial-hand img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-card p,
.tutorial-card p {
  max-width: 46ch;
}

@media (max-width: 1180px) {
  .textured-farm-layout {
    grid-template-columns: 1fr;
  }

  .textured-farm-stage,
  .farm-overlay-grid {
    min-height: 720px;
  }

  .scene-storage {
    left: 3%;
    width: 23%;
  }

  .scene-market {
    left: 27%;
    width: 22%;
  }

  .scene-feeder {
    right: 4%;
    width: 30%;
  }

  .scene-chickens {
    left: 24%;
    width: 50%;
  }

  .scene-doghouse {
    width: 18%;
  }

  .scene-merchant {
    left: 40%;
    width: 40%;
  }
}

@media (max-width: 820px) {
  .textured-pill {
    min-width: 136px;
  }

  .textured-farm-stage,
  .farm-overlay-grid {
    min-height: 620px;
  }

  .scene-hud-left,
  .scene-hud-right {
    top: 8px;
  }

  .scene-hud-right {
    right: 8px;
  }

  .scene-hud-left {
    left: 8px;
  }

  .hud-pad {
    min-width: 118px;
    min-height: 66px;
    padding: 10px 12px 12px;
  }

  .scene-storage {
    left: 2%;
    bottom: 18%;
    width: 25%;
    min-width: 112px;
  }

  .scene-market {
    top: 19%;
    left: 26%;
    width: 23%;
    min-width: 118px;
  }

  .scene-feeder {
    top: 18%;
    right: 2%;
    width: 34%;
    min-width: 128px;
  }

  .scene-chickens {
    left: 20%;
    bottom: 14%;
    width: 56%;
    min-height: 200px;
  }

  .scene-doghouse {
    right: 1%;
    bottom: 10%;
    width: 20%;
    min-width: 98px;
  }

  .scene-merchant {
    top: 8%;
    left: 35%;
    width: 46%;
    min-width: 180px;
  }

  .merchant-bubble {
    min-height: 104px;
    padding: 14px 14px 18px;
  }

  .real-character-stack {
    min-height: 200px;
  }

  .chicken-actor {
    width: clamp(87px, 24vw, 141px);
  }

  .chicken-actor.is-super {
    width: clamp(108px, 27vw, 162px);
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .leader-row {
    grid-template-columns: auto 1fr;
  }

  .leader-reward-chip {
    min-width: 132px;
  }
}

.app-shell--game {
  min-height: 100vh;
  padding: 10px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(180deg, #d8ebff 0%, #eef6ff 100%);
}

.app-frame--game {
  max-width: 520px;
  min-height: calc(100vh - 20px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
}

.app-frame--game .screen-card {
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  border-radius: 30px 30px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.game-screen,
.farm-game-screen {
  min-height: 0;
}

.farm-game-screen {
  display: flex;
  justify-content: center;
}

.farm-phone-frame {
  width: min(100%, 500px);
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
}

.scene-top-hud {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 132px;
  align-items: center;
  gap: 10px;
}

.hud-counter,
.hud-day-card,
.hud-resource-ribbon,
.merchant-status-pill,
.object-nameplate,
.feeder-clock-badge,
.feeder-state-label,
.scene-cta,
.game-nav-tab {
  border: 4px solid #422617;
  box-shadow:
    0 4px 0 #9e6c2e,
    0 12px 24px rgba(44, 23, 10, 0.16);
}

.hud-counter,
.hud-day-card,
.hud-resource-ribbon,
.merchant-status-pill,
.object-nameplate,
.feeder-clock-badge,
.feeder-state-label,
.scene-cta {
  background:
    linear-gradient(180deg, #fff4dc 0%, #ffe3ae 100%);
  color: #1f150f;
}

.hud-counter,
.hud-day-card {
  min-height: 76px;
  border-radius: 24px;
  padding: 8px 12px;
}

.hud-counter {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
}

.hud-counter img {
  width: 44px;
  height: auto;
}

.hud-counter strong {
  display: block;
  min-width: 2.75em;
  max-width: 2.75em;
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.hud-resource-ribbon {
  min-height: 78px;
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
}

.hud-plus-button {
  width: 58px;
  border: 0;
  border-right: 4px solid #422617;
  background: linear-gradient(180deg, #c7eb6a 0%, #8bbb2d 100%);
  display: grid;
  place-items: center;
}

.hud-plus-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hud-resource-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-right: 4px solid #422617;
  font-size: 1.05rem;
  font-weight: 800;
  min-width: 0;
  white-space: nowrap;
}

.hud-resource-segment strong,
.hud-day-card strong,
.hud-day-card span,
.hud-pad strong,
.hud-pad span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.hud-resource-segment strong {
  min-width: 3em;
  max-width: 3em;
  text-align: center;
}

.hud-resource-segment:last-child {
  border-right: 0;
}

.hud-resource-segment img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hud-resource-segment .is-super-icon {
  filter: saturate(1.1) hue-rotate(-18deg);
}

.hud-day-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.hud-day-card span {
  width: 100%;
  min-height: 1.05em;
  font-size: 0.95rem;
  font-weight: 700;
}

.hud-day-card strong {
  width: 100%;
  min-height: 1.05em;
  font-size: 1.8rem;
  line-height: 1;
}

.merchant-status-pill {
  min-height: 48px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.merchant-status-pill.is-active {
  background: linear-gradient(180deg, #fff1c8 0%, #ffd76f 100%);
}

.farm-scene-stage {
  position: relative;
  min-height: 0;
  border-radius: 34px;
  overflow: hidden;
  background: #a5d76e;
  box-shadow: 0 22px 44px rgba(22, 53, 87, 0.18);
}

.scene-background-layer,
.scene-world-layer {
  position: absolute;
  inset: 0;
}

.scene-background-layer {
  background: var(--scene-background) center top / cover no-repeat;
}

.scene-world-layer {
  position: relative;
}

.scene-object {
  position: absolute;
}

.scene-object button {
  cursor: pointer;
}

.object-image,
.egg-token-real img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.object-storage {
  left: 3%;
  top: 17%;
  width: 34%;
  max-width: 166px;
}

.object-market {
  top: 12%;
  right: 4%;
  width: 48%;
  max-width: 230px;
  padding: 0;
  border: 0;
  background: transparent;
}

.object-nameplate {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  min-height: 36px;
  padding: 5px 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    0.06em 0 #000000,
    -0.06em 0 #000000,
    0 0.06em #000000,
    0 -0.06em #000000,
    0.045em 0.045em #000000,
    -0.045em 0.045em #000000,
    0.045em -0.045em #000000,
    -0.045em -0.045em #000000;
}

.object-feeder {
  left: 3%;
  bottom: 18%;
  width: 27%;
  max-width: 134px;
  z-index: 23;
}

.object-feeder--auto {
  overflow: visible;
}

.object-feeder--auto .feeder-asset {
  width: 130%;
  max-width: none;
  transform: translate(-12%, -10%);
  position: relative;
  z-index: 1;
}

.object-feeder--auto .feeder-auto-addon {
  width: 54.6%;
  z-index: 2;
}

.object-feeder--auto .feeder-clock-badge {
  top: calc(-6% - 5px + 42px);
  left: calc(52% + 2px);
}

.feeder-asset {
  width: 100%;
}

.feeder-auto-addon {
  position: absolute;
  left: 54%;
  top: 8%;
  width: 42%;
}

.feeder-clock-badge {
  position: absolute;
  top: calc(-6% - 7px);
  left: calc(52% - 2px);
  width: 97px;
  height: 36px;
  padding: 0 10px 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.79rem;
  font-weight: 900;
  color: #1f150f;
  text-indent: -13px;
  transform: rotate(-10deg) scale(1.2);
  z-index: 4;
}

.feeder-meter-shell {
  position: absolute;
  left: 34%;
  bottom: 12%;
  width: 12%;
  height: 22%;
  border-radius: 999px;
  border: 2px solid #422617;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.feeder-meter-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #ff7044 0%, #e63c16 100%);
  border-radius: inherit;
}

.feeder-state-label {
  position: absolute;
  left: 50%;
  bottom: -12%;
  transform: translateX(-50%);
  min-width: 82px;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  z-index: 4;
}

.object-doghouse {
  right: -5%;
  bottom: 30%;
  width: 28%;
  max-width: 148px;
  z-index: 21;
}

.doghouse-asset {
  position: relative;
  width: 100%;
  z-index: 1;
}

.dog-guard-asset {
  position: absolute;
  left: 16%;
  bottom: 10%;
  width: 55%;
  z-index: 1;
}

.scene-action-marker {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 3px solid #422617;
  border-radius: 16px;
  background: linear-gradient(180deg, #c7eb6a 0%, #8bbb2d 100%);
  box-shadow: 0 4px 0 #669020;
  display: grid;
  place-items: center;
}

.scene-action-marker img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.marker-storage {
  right: -8px;
  top: -6px;
}

.marker-feed {
  left: -8px;
  top: 10px;
}

.marker-dog {
  left: 28%;
  top: -8px;
  z-index: 4;
}

.scene-chicken-layer {
  position: absolute;
  inset: 24% 2% 10% 2%;
  z-index: auto;
  isolation: auto;
}

.chicken-actor {
  position: absolute;
  --chicken-size-shrink: 0px;
  --chicken-shadow-lift: 0px;
  width: max(1px, calc(clamp(108px, 19vw, 116px) - var(--chicken-size-shrink)));
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.chicken-actor.is-vertical-walk {
  --chicken-shadow-lift: -5px;
}

.chicken-actor.is-super {
  width: max(1px, calc(clamp(128.25px, 22.05vw, 132px) - var(--chicken-size-shrink)));
}

.chicken-actor.is-dead {
  width: max(1px, calc(clamp(117px, 21vw, 124px) - var(--chicken-size-shrink)));
}

.chicken-shadow {
  position: absolute;
  left: 10%;
  bottom: -2%;
  width: 78%;
  opacity: 0.56;
  transform: translateY(var(--chicken-shadow-lift));
}

.chicken-sprite {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.chicken-actor.is-flipped .chicken-sprite {
  transform: scaleX(-1);
}

.object-merchant {
  top: calc(14% - 15px);
  left: 39%;
  width: 34%;
  max-width: 160px;
  z-index: 19;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.merchant-car-asset {
  width: 150%;
  max-width: none;
  margin-left: -25%;
}

.merchant-man-asset {
  position: absolute;
  left: 1.5%;
  bottom: 2%;
  width: 42%;
}

.merchant-finger-button {
  position: absolute;
  width: 63px;
  height: 63px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 4;
}

.merchant-finger-button--legacy {
  left: calc(12% - 10px);
  top: -23%;
}

.merchant-finger-button img {
  width: 100%;
  height: auto;
  display: block;
  animation: handPulse 1.2s ease-in-out infinite;
  transform-origin: center;
}

.egg-tray-zone {
  position: relative;
  z-index: 24;
  padding-bottom: 2px;
}

.egg-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.egg-tray-copy span {
  display: block;
  font-size: 0.82rem;
  color: #3f5870;
}

.egg-tray-copy strong {
  display: block;
  margin-top: 2px;
  font-size: 2rem;
  line-height: 1;
  color: #203d5a;
}

.scene-cta {
  min-height: 50px;
  padding: 8px 18px;
  border-radius: 18px;
  font-weight: 800;
}

.scene-cta.is-primary {
  background: linear-gradient(180deg, #c7eb6a 0%, #8bbb2d 100%);
}

.scene-cta.is-danger {
  background: linear-gradient(180deg, #ffb0a8 0%, #ff6f61 100%);
}

.egg-tray-body {
  position: relative;
}

.tray-asset {
  width: 100%;
  height: auto;
}

.egg-tray-eggs {
  position: absolute;
  inset: 8% 4% 10%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.egg-token-real {
  position: relative;
  width: clamp(48px, 9vw, 76px);
}

.egg-token-real span {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 800;
  color: #1086d6;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.game-bottom-nav {
  padding: 10px 0 6px;
}

.game-bottom-nav__frame {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 30px;
  background: rgba(255, 248, 235, 0.96);
  border: 4px solid #422617;
  box-shadow: 0 16px 28px rgba(44, 23, 10, 0.14);
}

.game-nav-tab {
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 18px;
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: #fff8ea;
  text-shadow: 0 2px 0 rgba(40, 22, 14, 0.3);
}

.game-nav-tab span {
  display: block;
  width: 100%;
}

.game-nav-tab:nth-child(1) {
  background: linear-gradient(180deg, #4aa7f5 0%, #2f78b7 100%);
}

.game-nav-tab:nth-child(2) {
  background: linear-gradient(180deg, #4aa7f5 0%, #2f78b7 100%);
  position: relative;
  top: -10px;
}

.game-nav-tab:nth-child(3) {
  background: linear-gradient(180deg, #d8614c 0%, #a23828 100%);
  position: relative;
  top: -10px;
}

.game-nav-tab:nth-child(4) {
  background: linear-gradient(180deg, #eeaf3f 0%, #c47c1d 100%);
  position: relative;
  top: -10px;
}

.game-nav-tab:nth-child(5) {
  background: linear-gradient(180deg, #76b857 0%, #4e8c37 100%);
}

.game-nav-tab.is-active {
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(1.02);
}

.game-nav-tab.is-active:nth-child(2),
.game-nav-tab.is-active:nth-child(3),
.game-nav-tab.is-active:nth-child(4) {
  transform: translateY(-3px);
  top: -10px;
}

.visitor-scene-shell {
  width: 100%;
}

.visitor-scene-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.visitor-scene-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.visitor-scene-copy strong {
  font-size: 1rem;
  color: #1d3854;
}

.visitor-scene-copy span {
  font-size: 0.82rem;
  color: #58738f;
}

.app-frame--game .screen-card {
  background: rgba(255, 255, 255, 0.9);
  border: 4px solid #422617;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 18px 30px rgba(22, 53, 87, 0.12);
  padding: 16px;
  overflow: auto;
}

.app-frame--game .screen-card.textured-scene {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08)),
    var(--screen-background) center top / cover no-repeat;
}

.app-frame--game .screen-card.textured-scene::before {
  display: none;
}

.app-frame--game .screen-header {
  margin-bottom: 14px;
}

.app-frame--game .screen-title {
  align-items: flex-start;
}

.app-frame--game .market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-frame--game .textured-item-card {
  min-height: 320px;
}

@media (max-width: 560px) {
  .app-shell--game {
    padding: 0;
  }

  .app-frame--game {
    min-height: 100vh;
    max-width: 100%;
  }

  .farm-phone-frame {
    width: 100%;
    padding: 10px 10px 0;
  }

  .scene-top-hud {
    grid-template-columns: 84px minmax(0, 1fr) 118px;
    gap: 8px;
  }

  .hud-counter,
  .hud-day-card {
    min-height: 70px;
  }

  .hud-counter strong {
    font-size: 1.8rem;
  }

  .hud-day-card strong {
    font-size: 1.6rem;
  }

  .merchant-status-pill {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .farm-scene-stage {
    min-height: 0;
  }

  .object-storage {
    width: 33%;
  }

  .object-market {
    width: 46%;
  }

  .object-feeder {
    width: 29%;
  }

  .object-doghouse {
    width: 30%;
  }

  .chicken-actor {
    width: clamp(68px, 20vw, 98px);
  }

  .game-bottom-nav__frame {
    gap: 6px;
    padding: 8px;
  }

  .game-nav-tab {
    min-height: 54px;
    font-size: 0.74rem;
    padding: 8px 4px;
  }

  .app-frame--game .market-grid {
    grid-template-columns: 1fr;
  }
}

/* Scene Rebuild */

.app-shell--game {
  padding: 0;
  background:
    linear-gradient(180deg, #d8eeff 0%, #eef7ff 100%);
}

.app-frame--game {
  max-width: 600px;
  min-height: 100vh;
  margin: 0 auto;
}

.app-frame--game .screen-card.game-design-screen {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.scene-canvas {
  position: relative;
  width: min(100vw, 600px);
  aspect-ratio: 1080 / 1920;
  margin: 0 auto;
  overflow: hidden;
  font-size: clamp(10px, 1.75vw, 15px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.scene-canvas,
.scene-canvas * {
  box-sizing: border-box;
}

.scene-canvas :is(strong, span, button, input, textarea, select) {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.scene-canvas :is(
  .scene-top-panel__bags-copy strong,
  .scene-top-panel__resource-segment strong,
  .scene-top-panel__day-copy strong,
  .scene-top-panel__day-copy span,
  .scene-market-caption,
  .scene-market-window__title,
  .scene-market-pane__copy strong,
  .scene-market-pane__label,
  .scene-market-card__quantity,
  .scene-market-card__prices,
  .scene-market-card__purchased > span,
  .scene-market-payment__button > span,
  .scene-nav-button span,
  .scene-menu-row__reward span,
  .scene-menu-row__action,
  .scene-menu-row__self,
  .scene-leaders-row__score,
  .scene-settings-stat strong,
  .scene-settings-menu__amount,
  .scene-settings-menu__count,
  .scene-settings-menu__history-row strong,
  .scene-settings-menu__auth-button-label,
  .scene-settings-menu__withdraw-button-label
) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  contain: layout paint;
}

.scene-canvas :is(
  strong,
  span,
  button,
  input,
  textarea,
  select,
  label,
  .scene-menu-advice__copy,
  .scene-market-card__copy,
  .scene-settings-menu__block-title,
  .scene-settings-menu__label,
  .scene-leaders-row__name,
  .scene-settings-menu__history-row
) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.scene-canvas :is(
  button,
  .scene-menu-row,
  .scene-settings-menu__auth-button,
  .scene-settings-menu__withdraw-button,
  .scene-market-payment__button,
  .scene-market-card,
  .scene-leaders-row,
  .scene-settings-menu__history-row,
  .scene-menu-advice__texture-button
) {
  min-width: 0;
}

.scene-canvas :is(
  .scene-market-payment__button > span,
  .scene-menu-row__action,
  .scene-settings-menu__auth-button-label,
  .scene-settings-menu__withdraw-button-label,
  .scene-menu-advice__texture-button-content
) {
  white-space: normal;
  line-height: 1.05;
  overflow: hidden;
}

@media (pointer: fine) {
  .app-frame--game {
    min-width: 600px;
  }

  .scene-canvas {
    width: 600px;
    font-size: 15px;
  }
}

.scene-canvas__bg,
.scene-canvas__bg--soft {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.scene-canvas__bg--soft {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(180deg, #cfe7ff 0%, #eef7ff 100%);
}

.scene-world {
  position: absolute;
  inset: 0;
}

.scene-top-panel {
  position: absolute;
  left: 4.1667%;
  top: 1.0938%;
  width: 91.6667%;
  height: 5.3646%;
  z-index: 1305;
  display: grid;
  grid-template-columns: 20% 52% 24%;
  gap: 2%;
  align-items: center;
}

.scene-top-panel button,
.scene-top-panel div {
  min-width: 0;
}

.scene-top-panel__bags,
.scene-top-panel__day,
.scene-top-panel__resources,
.scene-back-button,
.scene-market-payment__button,
.scene-nav-button {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
}

.scene-market-payment__button.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.scene-top-panel__bags > img,
.scene-top-panel__day > img,
.scene-top-panel__resources-bg,
.scene-back-button > img,
.scene-market-payment__button > img,
.scene-nav-button > img,
.scene-bottom-panel__bg,
.scene-market-window__bg,
.scene-menu-window__bg,
.scene-menu-advice__bg,
.scene-market-pane__bg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.scene-market-payment__button > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 1000;
  font-size: calc(1.82em * var(--market-payment-text-scale, 1));
  letter-spacing: 0;
  color: #ffffff;
  white-space: nowrap;
  max-width: 86%;
  overflow: hidden;
  text-overflow: clip;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  text-shadow:
    0.045em 0 #000000,
    -0.045em 0 #000000,
    0 0.045em #000000,
    0 -0.045em #000000,
    0.032em 0.032em #000000,
    -0.032em 0.032em #000000,
    0.032em -0.032em #000000,
    -0.032em -0.032em #000000,
    0 0 0.08em rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.scene-top-panel__bags-copy,
.scene-top-panel__day-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 0 1em;
  color: #1f150f;
  font-weight: 900;
}

.scene-top-panel__bags-copy img {
  width: 2.7em;
  height: auto;
  flex: 0 0 auto;
  transform: translateX(28px);
}

.scene-top-panel__bags-copy strong {
  display: block;
  flex: 0 0 2.75em;
  min-width: 2.75em;
  max-width: 2.75em;
  text-align: center;
  font-size: 2.2em;
  line-height: 1;
}

.scene-top-panel__resources {
  position: relative;
  height: 100%;
}

.scene-top-panel__resources-track {
  position: absolute;
  left: 9%;
  right: -6%;
  top: -16%;
  bottom: -16%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.scene-top-panel__resources-bg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 60%;
}

.scene-top-panel__resources-bg--left {
  left: 0;
}

.scene-top-panel__resources-bg--right {
  left: 30%;
}

.scene-top-panel__plus {
  position: absolute;
  left: -2.4%;
  top: 50%;
  width: 10%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  transform: translateY(-50%);
  margin-left: 20px;
  z-index: 2;
}

.scene-top-panel__plus img {
  width: 100%;
  height: auto;
  display: block;
}

.scene-top-panel__resource-segment {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.36em;
  color: #1f150f;
  font-size: 1.56em;
  font-weight: 900;
  height: 100%;
  padding: 0 0.1em;
}

.scene-top-panel__resource-segment img {
  flex: 0 0 auto;
  width: 1.4em;
  height: 1.4em;
  object-fit: contain;
  transform: translateX(20px);
}

.scene-top-panel__resource-segment img[src*="egg"] {
  width: 1.76em;
  height: 1.76em;
  transform: translateX(10px);
}

.scene-top-panel__resource-segment .is-super-icon {
  filter: saturate(1.04) hue-rotate(-6deg);
}

.scene-top-panel__resource-segment strong {
  display: block;
  flex: 0 0 2.85em;
  min-width: 2.85em;
  max-width: 2.85em;
  text-align: center;
  font-size: 0.8533em;
  line-height: 1;
}

.scene-top-panel__resource-segment:nth-child(4) {
  transform: translateX(-10px);
}

.scene-top-panel__resource-segment:last-child {
  transform: translateX(-25px);
}

.scene-top-panel__day-copy {
  flex-direction: column;
  gap: 0.1em;
  text-align: center;
  padding: 0.45em 1em 0.3em;
}

.scene-top-panel__day-copy strong {
  display: block;
  width: 100%;
  min-height: 1.08em;
  font-size: 1.25em;
  font-weight: 1000;
  line-height: 1.05;
}

.scene-top-panel__day-copy span {
  display: block;
  width: 100%;
  min-height: 0.98em;
  font-size: 1.9em;
  line-height: 0.94;
  transform: translateY(calc(-0.04em + 3px));
}

.scene-back-button {
  position: absolute;
  left: 2.037%;
  top: calc(7.2% + 10px);
  width: 21%;
  z-index: 26;
}

.scene-back-button span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff8ea;
  font-size: 1.35em;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(40, 22, 14, 0.32);
}

.scene-merchant-status {
  position: absolute;
  left: 20.4%;
  top: 7.2396%;
  width: 59.2%;
  min-height: 3.8em;
  padding: 0.75em 1.2em;
  border: 0.28em solid #422617;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4dc 0%, #ffe3ae 100%);
  box-shadow: 0 0.28em 0 #9e6c2e;
  color: #1f150f;
  font-size: 0.96em;
  font-weight: 800;
  text-align: center;
  z-index: 22;
}

.scene-merchant-status.is-active {
  background: linear-gradient(180deg, #fff1c8 0%, #ffd76f 100%);
}

.scene-layout-object {
  position: absolute;
}

button.scene-layout-object,
.scene-layout-object--market,
.scene-layout-object--feeder {
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.scene-layout-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.scene-layout-object--warehouse {
  left: -8.8889%;
  top: 25.0521%;
  width: 44.6519%;
  height: 20.0911%;
  z-index: 11;
}

.scene-layout-object--market {
  left: 49.3519%;
  top: 14.1146%;
  width: 51.6148%;
  height: 21.1323%;
  z-index: 11;
}

.scene-layout-object--feeder {
  left: 2.037%;
  top: 47.0833%;
  width: 28.8889%;
  height: 25.6771%;
  z-index: 23;
}

.scene-layout-object--feeder-auto {
  overflow: visible;
  transform: translate(-5px, -40px);
}

.scene-layout-object--feeder-auto .scene-layout-image {
  width: 130%;
  height: 130%;
  max-width: none;
  transform: translate(-12%, -10%);
  transform-origin: left bottom;
  position: relative;
  z-index: 1;
}

.scene-layout-object--feeder-auto.scene-layout-object--feeder-p10 .scene-layout-image {
  width: 130%;
  height: 130%;
  transform: translate(-12%, -10%);
}

.scene-layout-object--feeder-auto .scene-feeder-clock {
  left: calc(53.13% - 20px);
  top: calc(27.48% - 3px);
}

.scene-layout-object--feeder-auto.scene-layout-object--feeder-p100 .scene-feeder-clock,
.scene-layout-object--feeder-auto.scene-layout-object--feeder-p75 .scene-feeder-clock,
.scene-layout-object--feeder-auto.scene-layout-object--feeder-p50 .scene-feeder-clock,
.scene-layout-object--feeder-auto.scene-layout-object--feeder-p25 .scene-feeder-clock {
  top: calc(27.48% - 3px);
}

.scene-layout-object--feeder-auto.scene-layout-object--feeder-p10 .scene-feeder-clock {
  top: calc(27.48% - 11px);
}

.scene-layout-object--feeder.is-clickable {
  cursor: pointer;
}

.scene-layout-object--coop {
  left: 77.037%;
  top: 42.083%;
  width: 35.365%;
  height: 18.8818%;
  z-index: 21;
}

.scene-layout-image--coop {
  position: relative;
  z-index: 1;
}

.scene-layout-image--coop.is-clickable {
  cursor: pointer;
}

.scene-layout-object--chicken {
  left: 12%;
  top: 34%;
  width: 76%;
  height: 42%;
  z-index: auto;
  isolation: auto;
}

.scene-layout-object--merchant {
  left: 33%;
  top: calc(46% - 115px);
  width: 34%;
  height: 21%;
  z-index: 19;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.scene-layout-object--merchant > .scene-layout-image:first-child {
  position: absolute;
  left: -34%;
  bottom: -6.4%;
  width: 180%;
  height: auto;
  max-width: none;
}

.scene-layout-object--tray {
  left: 0;
  top: 67.5%;
  width: 100%;
  height: 22%;
  z-index: 24;
}

.scene-object-plus {
  position: absolute;
  z-index: 4;
  width: 18%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
}

.scene-object-plus img {
  display: block;
  width: 100%;
  height: auto;
}

.scene-object-plus--warehouse {
  right: 12%;
  top: 8%;
}

.scene-object-plus--feeder {
  left: 8%;
  top: 2%;
  width: 22%;
}

.scene-object-plus--coop {
  left: -4%;
  top: 2%;
  width: 18%;
  z-index: 4;
}

.scene-market-caption {
  position: absolute;
  left: calc(49% - 10px);
  top: calc(41% - 12px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  color: #ffffff;
  font-size: 1.5em;
  font-weight: 900;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    0.06em 0 #000000,
    -0.06em 0 #000000,
    0 0.06em #000000,
    0 -0.06em #000000,
    0.045em 0.045em #000000,
    -0.045em 0.045em #000000,
    0.045em -0.045em #000000,
    -0.045em -0.045em #000000;
}

.scene-feeder-clock {
  position: absolute;
  left: calc(39% + 1px);
  top: calc(8% - 7px);
  width: 6.04em;
  height: 2.24em;
  padding: 0 0.625em 0.18em;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f150f;
  font-size: 0.83em;
  font-weight: 900;
  text-indent: -13px;
  text-shadow: 0 2px 0 rgba(255, 248, 234, 0.45);
  transform: rotate(-10deg) scale(1.2);
  z-index: 4;
}

.scene-feeder-state {
  position: absolute;
  left: 4%;
  bottom: -2%;
  min-width: 5.4em;
  min-height: 2em;
  padding: 0.25em 0.8em;
  border: 0.18em solid #422617;
  border-radius: 0.9em;
  background: linear-gradient(180deg, #fff4dc 0%, #ffe3ae 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f150f;
  z-index: 4;
  font-size: 0.84em;
  font-weight: 800;
  box-shadow: 0 0.18em 0 #9e6c2e;
}

.scene-canvas .scene-chicken-layer {
  overflow: visible;
}

.scene-canvas .scene-chicken-layer .chicken-actor {
  width: max(1px, calc(12.16% - var(--chicken-size-shrink)));
}

.scene-canvas .scene-chicken-layer .chicken-actor.is-super {
  width: max(1px, calc(22.14% - var(--chicken-size-shrink)));
}

.scene-canvas .scene-chicken-layer .chicken-actor.is-dead {
  width: max(1px, calc(14.76% - var(--chicken-size-shrink)));
}

.scene-canvas .scene-chicken-layer .chicken-shadow {
  left: 14%;
  bottom: calc(3% - 20px);
  width: 108%;
  transform: translateX(-16.6667%) translateY(var(--chicken-shadow-lift));
}

.scene-layout-image--merchant-man {
  position: absolute;
  left: -27.84%;
  bottom: -3.68%;
  width: 64.8%;
  height: auto;
}

.scene-merchant-finger {
  position: absolute;
  left: calc(8% - 10px);
  top: -18%;
  width: 4.25em;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 4;
}

.scene-merchant-finger img {
  width: 100%;
  height: auto;
  display: block;
  animation: handPulse 1.2s ease-in-out infinite;
  transform-origin: center;
}

.scene-tray-header {
  position: absolute;
  left: 4%;
  right: 4%;
  top: -10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  z-index: 2;
}

.scene-tray-copy {
  display: grid;
  gap: 0.18em;
  color: #203d5a;
}

.scene-tray-copy span {
  font-size: 0.95em;
}

.scene-tray-copy strong {
  font-size: 2.2em;
  line-height: 1;
}

.scene-cta {
  min-height: 3.1em;
  padding: 0.65em 1.2em;
  border: 0.2em solid #422617;
  border-radius: 1.1em;
  color: #1f150f;
  font-size: 1em;
  font-weight: 900;
  box-shadow: 0 0.22em 0 #9e6c2e;
}

.scene-cta--primary {
  background: linear-gradient(180deg, #c7eb6a 0%, #8bbb2d 100%);
}

.scene-cta--danger {
  background: linear-gradient(180deg, #ffb0a8 0%, #ff6f61 100%);
}

.scene-tray-body {
  position: absolute;
  inset: 0;
}

.scene-tray-eggs {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 4%;
  bottom: 6%;
  overflow: hidden;
  z-index: 24;
}

.scene-canvas .egg-token-real {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
  transform-origin: center center;
  z-index: 2;
}

.scene-canvas .egg-token-real img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.scene-helper-man {
  position: absolute;
  left: 0;
  bottom: -8.9063%;
  width: 36.0185%;
  height: 41.4583%;
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.scene-helper-man img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  display: block;
}

.scene-overlay-dim {
  position: absolute;
  inset: 0;
  background: rgba(23, 16, 11, 0.28);
  z-index: 23;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scene-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 1300;
}

.scene-overlay-layer--menu {
  pointer-events: auto;
}

.scene-overlay-dismiss {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.scene-overlay-layer--menu .scene-menu-window,
.scene-overlay-layer--market .scene-market-window {
  pointer-events: none;
}

.scene-overlay-layer--menu .scene-menu-advice {
  pointer-events: auto;
}

.scene-overlay-layer--menu .scene-menu-window__bg,
.scene-overlay-layer--market .scene-market-window__bg,
.scene-overlay-layer--market .scene-market-window__title {
  pointer-events: none;
}

.scene-overlay-layer--menu .scene-menu-window__content,
.scene-overlay-layer--menu .scene-close-hotspot,
.scene-overlay-layer--market .scene-close-hotspot,
.scene-overlay-layer--market .scene-market-card,
.scene-overlay-layer--market .scene-market-pane,
.scene-overlay-layer--market .scene-market-payment {
  pointer-events: auto;
}

.scene-overlay-dim {
  position: absolute;
  inset: 0;
  background: rgba(23, 16, 11, 0.28);
  z-index: 23;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scene-helper-man--menu {
  left: 1.6%;
  bottom: 11.8%;
  width: 31%;
  height: 34%;
  z-index: 21;
}

.scene-helper-man--market {
  left: 1.6%;
  bottom: 10.8%;
  width: 28%;
  height: 30%;
}

.scene-bottom-panel {
  position: absolute;
  left: 0.0926%;
  top: 87.9167%;
  width: 99.9074%;
  height: 12.0833%;
  z-index: 30;
}

.scene-canvas > .scene-overlay-layer--menu ~ .scene-bottom-panel,
.scene-canvas > .scene-overlay-layer--market ~ .scene-bottom-panel {
  z-index: 1401;
}

.scene-bottom-panel__bg {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  transform: translateX(-50%);
}

.scene-bottom-panel__buttons {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: calc(12% + 10px);
  height: 76%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.2%;
  align-items: stretch;
}

.scene-bottom-panel__buttons--compact {
  left: 7%;
  right: 7%;
  bottom: calc(12% + 10px);
  height: 76%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.2%;
}

.scene-nav-button {
  position: relative;
  height: 100%;
  align-self: stretch;
  display: block;
  transition: transform 120ms ease;
}

.scene-nav-button > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-nav-button.is-active {
  transform: none;
}

.scene-nav-button span {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%) translateY(-10px);
  width: 96%;
  text-align: center;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  color: #fff8ea;
  font-size: 1.51em;
  font-weight: 900;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    0.06em 0 #000000,
    -0.06em 0 #000000,
    0 0.06em #000000,
    0 -0.06em #000000,
    0.045em 0.045em #000000,
    -0.045em 0.045em #000000,
    0.045em -0.045em #000000,
    -0.045em -0.045em #000000;
}

.scene-bottom-panel__buttons--compact .scene-nav-button span {
  width: 96%;
  bottom: 12%;
  font-size: 1.66em;
}

.scene-nav-button--market span,
.scene-nav-button--leaders span {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
  bottom: 11%;
  font-size: 1.45em;
}

.scene-nav-button--settings span {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
  bottom: 11%;
  font-size: 1.6em;
}

.scene-bottom-panel[data-language="en"] .scene-nav-button--market span,
.scene-bottom-panel[data-language="en"] .scene-nav-button--leaders span {
  font-size: 1.89em;
}

.scene-bottom-panel[data-language="en"] .scene-nav-button--settings span {
  font-size: 2.08em;
}

.scene-bottom-panel[data-language="es"] .scene-nav-button--market span,
.scene-bottom-panel[data-language="es"] .scene-nav-button--leaders span,
.scene-bottom-panel[data-language="ur"] .scene-nav-button--market span,
.scene-bottom-panel[data-language="ur"] .scene-nav-button--leaders span {
  font-size: 1.74em;
}

.scene-bottom-panel[data-language="es"] .scene-nav-button--settings span,
.scene-bottom-panel[data-language="ur"] .scene-nav-button--settings span {
  font-size: 1.92em;
}

.scene-bottom-panel[data-language="ar"] .scene-nav-button--market span,
.scene-bottom-panel[data-language="ar"] .scene-nav-button--leaders span {
  font-size: 1.595em;
  transform: translateX(-50%) translateY(-7px);
}

.scene-bottom-panel[data-language="ar"] .scene-nav-button--settings span {
  font-size: 1.76em;
  transform: translateX(-50%) translateY(-7px);
}

.scene-bottom-panel[data-language="ur"] .scene-nav-button--market span,
.scene-bottom-panel[data-language="ur"] .scene-nav-button--leaders span,
.scene-bottom-panel[data-language="ur"] .scene-nav-button--settings span {
  transform: translateX(-50%) translateY(-7px);
}

.scene-canvas--market .scene-market-window,
.scene-overlay-layer--market .scene-market-window {
  position: absolute;
  left: 0.6759%;
  top: 5%;
  width: 98.6509%;
  height: 79.6887%;
  z-index: 18;
  overflow: hidden;
}

.scene-market-window__bg,
.scene-menu-window__bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-overlay-layer--leaders .scene-menu-window__bg {
  object-fit: fill;
}

.scene-market-window__title {
  position: absolute;
  left: 0;
  top: calc(17.2917% + 4px);
  width: 100%;
  z-index: 6;
  pointer-events: none;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  font-weight: 900;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    0.06em 0 #000000,
    -0.06em 0 #000000,
    0 0.06em #000000,
    0 -0.06em #000000,
    0.045em 0.045em #000000,
    -0.045em 0.045em #000000,
    0.045em -0.045em #000000,
    -0.045em -0.045em #000000;
}

.scene-close-hotspot {
  position: absolute;
  top: 1.1%;
  right: 0.8%;
  width: 8%;
  height: 5.5%;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 5;
  transform: translate(-5px, 75px);
}

.scene-close-hotspot--market {
  transform: translate(-11px, 59px);
}

.scene-close-hotspot--leaders {
  transform: translate(-15px, 67px);
}

.scene-close-hotspot--settings {
  transform: translate(0, 30px);
}

.scene-market-card {
  position: absolute;
  width: 25.9%;
  height: 22.3%;
  z-index: 3;
  --market-card-title-scale: 1;
}

.scene-market-card[data-language="en"] {
  --market-card-title-scale: 1.5;
}

.scene-market-card--chicken {
  left: 9.76%;
  top: calc(27.78% - 10px);
}

.scene-market-card--glove {
  left: 37.64%;
  top: calc(27.78% - 10px);
}

.scene-market-card--super {
  left: 65.51%;
  top: calc(27.78% - 10px);
}

.scene-market-card--dog {
  left: 9.76%;
  top: calc(50.36% + 20px);
}

.scene-market-card--feed {
  left: 37.64%;
  top: calc(50.36% + 20px);
}

.scene-market-card--auto {
  left: 65.51%;
  top: calc(50.36% + 20px);
}

.scene-market-card__bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.76923);
  transform-origin: center;
}

.scene-market-card__content {
  position: absolute;
  inset: 4% 7% 18%;
  display: grid;
  grid-template-rows: 54% auto;
  gap: 0.45em;
  transform: scale(0.76923);
  transform-origin: center;
}

.scene-market-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  transform: translateY(30px);
}

.scene-market-card__art,
.scene-market-card__anim {
  position: absolute;
  max-width: 82%;
  max-height: 88%;
  object-fit: contain;
}

.scene-market-card__anim {
  opacity: 0.95;
}

.scene-market-card__copy {
  display: grid;
  gap: 0.2em;
  color: #1f150f;
  justify-items: center;
  transform: translateY(30px);
}

.scene-market-card__copy strong {
  width: 100%;
  min-height: 1.08em;
  font-size: calc(0.92em * var(--market-card-title-scale));
  text-align: center;
  font-weight: 900;
}

.scene-market-card--super .scene-market-card__copy strong,
.scene-market-card--auto .scene-market-card__copy strong {
  transform: translateY(-5px);
}

.scene-market-card__copy span,
.scene-market-card__prices {
  font-size: 0.72em;
  line-height: 1.18;
}

.scene-market-card__prices {
  display: none;
  min-height: 1.25em;
  max-width: 100%;
  text-align: center;
}

.scene-market-card__controls {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
  transform: translateY(12px);
}

.scene-market-card__purchased {
  position: relative;
  width: 100%;
  transform: translateY(35px);
}

.scene-market-card__purchased-bg {
  display: block;
  width: 100%;
  height: auto;
}

.scene-market-card__purchased > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 1000;
  font-size: 1.22em;
  letter-spacing: 0.01em;
  color: #ffffff;
  white-space: nowrap;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  text-shadow:
    0.045em 0 #000000,
    -0.045em 0 #000000,
    0 0.045em #000000,
    0 -0.045em #000000,
    0.032em 0.032em #000000,
    -0.032em 0.032em #000000,
    0.032em -0.032em #000000,
    -0.032em -0.032em #000000,
    0 0 0.08em rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.scene-market-card__icon {
  width: 22%;
  padding: 0;
  border: 0;
  background: none;
}

.scene-market-card__icon img {
  width: 100%;
  height: auto;
  display: block;
}

.scene-market-card__quantity {
  width: calc(2.88em - 6px);
  min-width: calc(2.88em - 6px);
  max-width: calc(2.88em - 6px);
  min-height: 2.16em;
  box-sizing: border-box;
  padding: 0.15em 0.45em;
  border: 0;
  border-radius: 0;
  background: var(--quantity-icon-image) center/100% 100% no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f150f;
  font-size: 0.92em;
  font-weight: 900;
  box-shadow: none;
}

.scene-market-card__badge,
.scene-market-card__disabled {
  position: absolute;
  top: 4%;
  right: 8%;
  min-height: 1.9em;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  background: rgba(23, 118, 69, 0.16);
  color: #177645;
  font-size: 0.72em;
  font-weight: 900;
}

.scene-market-card__disabled {
  background: rgba(255, 94, 115, 0.16);
  color: #b03048;
}

.scene-market-pane {
  position: absolute;
  left: 35.69%;
  top: 81.5%;
  width: 28.67%;
  height: 4.84%;
  z-index: 4;
}

.scene-market-pane__copy {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #1f150f;
  text-align: center;
}

.scene-market-pane__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.12em + 10px);
  color: #1f150f;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.62em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.scene-market-pane__copy strong {
  display: block;
  width: 100%;
  min-height: 1.12em;
  font-size: 1.12em;
  font-weight: 900;
}

.scene-market-pane__copy span,
.scene-market-pane__copy em {
  font-size: 0.68em;
  font-style: normal;
  font-weight: 700;
}

.scene-market-card__discount-badge {
  position: absolute;
  right: calc(-6% + 10px);
  top: calc(-11% + 30px);
  width: 39%;
  aspect-ratio: 1;
  z-index: 5;
  transform: scale(0.76923);
  transform-origin: center;
}

.scene-market-card--chicken .scene-market-card__discount-badge,
.scene-market-card--glove .scene-market-card__discount-badge,
.scene-market-card--super .scene-market-card__discount-badge,
.scene-market-card--dog .scene-market-card__discount-badge,
.scene-market-card--auto .scene-market-card__discount-badge {
  top: calc(-11% + 30px);
}

.scene-market-card__discount-badge-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-market-card__discount-badge-text {
  position: absolute;
  left: 50%;
  top: calc(49% - 3px);
  transform: translate(-50%, -50%) rotate(17deg);
  font-size: 1.2em;
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    0.05em 0 #000000,
    -0.05em 0 #000000,
    0 0.05em #000000,
    0 -0.05em #000000,
    0.03em 0.03em #000000,
    -0.03em 0.03em #000000,
    0.03em -0.03em #000000,
    -0.03em -0.03em #000000;
  white-space: nowrap;
  pointer-events: none;
}

.scene-market-payment {
  position: absolute;
  left: 29.85%;
  top: 88.04%;
  width: 40.31%;
  height: 5.1%;
  z-index: 4;
  display: grid;
  align-items: center;
}

.scene-market-payment[data-language="bn"] .scene-market-payment__button > span,
.scene-market-payment[data-language="hi"] .scene-market-payment__button > span,
.scene-market-payment[data-language="ur"] .scene-market-payment__button > span {
  --market-payment-text-scale: 0.68;
}

.scene-market-payment[data-language="ar"] .scene-market-payment__button > span,
.scene-market-payment[data-language="fr"] .scene-market-payment__button > span {
  --market-payment-text-scale: 0.78;
}

.scene-canvas--menu .scene-menu-window,
.scene-overlay-layer--menu .scene-menu-window {
  position: absolute;
  left: 4.4444%;
  top: 8.8021%;
  width: 92.3611%;
  height: 77.474%;
  z-index: 18;
  overflow: hidden;
}

.scene-menu-window__title {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 3.8%;
  text-align: center;
  color: #1f150f;
}

.scene-menu-window__title h2 {
  margin: 0;
  font-size: 1.5em;
}

.scene-menu-window__title--settings {
  left: 0;
  right: 0;
  top: 1.6667%;
  z-index: 6;
  pointer-events: none;
}

.scene-menu-window__title--settings h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  font-weight: 900;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    0.06em 0 #000000,
    -0.06em 0 #000000,
    0 0.06em #000000,
    0 -0.06em #000000,
    0.045em 0.045em #000000,
    -0.045em 0.045em #000000,
    0.045em -0.045em #000000,
    -0.045em -0.045em #000000;
}

.scene-menu-window__content {
  position: absolute;
  left: 9%;
  top: 14%;
  width: 82%;
  height: 68%;
  overflow: auto;
  padding-right: 0.6em;
}

.scene-menu-advice {
  position: absolute;
  left: 27.6852%;
  top: 66.1719%;
  width: 57.2852%;
  height: 12.4875%;
  z-index: 22;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.scene-menu-advice--market {
  left: 28.5%;
  top: 75.8%;
  width: 50.5%;
  height: 9.6%;
}

.scene-menu-advice--welcome {
  left: 29%;
  top: 65%;
  width: 50%;
  height: 11.5%;
  z-index: 24;
}

.scene-overlay-layer--helper {
  z-index: 1310;
  pointer-events: none;
}

.scene-overlay-layer--helper .scene-menu-advice,
.scene-overlay-layer--helper .scene-helper-man {
  pointer-events: auto;
}

.scene-overlay-layer--dismissible {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.scene-menu-advice--helper {
  left: 25.5%;
  top: 57%;
  width: 58%;
  height: 18%;
  z-index: 27;
  cursor: default;
}

.scene-menu-advice--helper-low-food {
  height: 18.6%;
}

.scene-menu-advice--helper-ton-pay {
  height: 18.6%;
}

.scene-menu-advice--helper-withdraw-sent {
  height: 17.2%;
}

.scene-menu-advice--helper-death {
  top: 60%;
  height: 15.2%;
}

.scene-menu-advice--tutorial {
  z-index: 101;
}

.scene-helper-man--tutorial {
  z-index: 100;
}

.scene-menu-advice__tutorial-actions {
  position: absolute;
  right: 4%;
  bottom: 16%;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.scene-menu-advice__secondary {
  min-width: 5.2em;
  min-height: 2.2em;
  padding: 0.32em 0.78em;
  border: 0.14em solid rgba(66, 38, 23, 0.7);
  border-radius: 0.95em;
  background: rgba(255, 248, 226, 0.94);
  color: #422617;
  font-size: 0.76em;
  font-weight: 900;
  box-shadow: 0 0.14em 0 rgba(158, 108, 46, 0.75);
}

.scene-menu-advice__action {
  position: absolute;
  right: 4%;
  bottom: 16%;
  min-width: 5.8em;
  min-height: 2.3em;
  padding: 0.35em 0.9em;
  border: 0.16em solid #422617;
  border-radius: 0.95em;
  background: linear-gradient(180deg, #fff4dc 0%, #ffe3ae 100%);
  color: #1f150f;
  font-size: 0.82em;
  font-weight: 900;
  box-shadow: 0 0.18em 0 #9e6c2e;
}

.scene-menu-advice__actions {
  position: absolute;
  left: 9%;
  right: 8%;
  bottom: 14%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55em;
  justify-content: flex-start;
}

.scene-menu-advice__actions--single {
  justify-content: center;
}

.scene-menu-advice__texture-button {
  position: relative;
  width: 7.6em;
  height: 2.4em;
  padding: 0;
  border: 0;
  background: transparent;
  flex: 0 0 auto;
  transform: translate(10px, -10px);
}

.scene-menu-advice__texture-button-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.scene-menu-advice__texture-button-content {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38em;
  padding: 0 0.75em 0.18em;
  color: #fff;
  font-size: 0.884em;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: none;
}

.scene-menu-advice__texture-button-icon {
  width: 1.65em;
  height: 1.65em;
  object-fit: contain;
  flex: 0 0 auto;
}

.scene-menu-advice__texture-button--secondary .scene-menu-advice__texture-button-content {
  padding-left: 0.95em;
  padding-right: 0.95em;
}

.scene-menu-advice__texture-button--telegram {
  width: 9.2em;
}

.scene-menu-advice__ton-word {
  color: #4ec8ff;
  font-weight: 900;
  text-shadow: 0 0.06em 0 rgba(20, 78, 116, 0.35);
}

.scene-menu-advice__helper-button {
  flex: 1 1 7.2em;
  min-width: 6.4em;
  min-height: 2.3em;
  padding: 0.34em 0.84em;
  border: 0.15em solid #496513;
  border-radius: 0.95em;
  background: linear-gradient(180deg, #d8f48a 0%, #8fbd2d 100%);
  color: #fffef7;
  font-size: 0.76em;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 0.08em 0 rgba(74, 55, 16, 0.35);
  box-shadow: 0 0.18em 0 #587718;
}

.scene-menu-advice__helper-button.is-secondary {
  border-color: #7a962b;
  background: linear-gradient(180deg, #f1ffba 0%, #abc94a 100%);
}

.scene-menu-advice__restart-button {
  position: relative;
  width: 11.4em;
  height: 3.6em;
  padding: 0;
  border: 0;
  background: transparent;
  flex: 0 0 auto;
}

.scene-menu-advice__restart-button-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.scene-menu-advice__restart-button-label {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%) translateY(-10px);
  width: 96%;
  text-align: center;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  color: #fff8ea;
  font-size: 1.88em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    0.06em 0 #000000,
    -0.06em 0 #000000,
    0 0.06em #000000,
    0 -0.06em #000000,
    0.045em 0.045em #000000,
    -0.045em 0.045em #000000,
    0.045em -0.045em #000000,
    -0.045em -0.045em #000000;
}

.scene-helper-man--welcome {
  left: 2%;
  bottom: 10.5%;
  width: 29%;
  height: 31%;
  z-index: 23;
}

.scene-helper-man--helper {
  left: 2%;
  bottom: 10.5%;
  width: 29%;
  height: 31%;
  z-index: 26;
}

.scene-menu-advice__copy {
  position: absolute;
  inset: 15% 8% 15% 10%;
  display: block;
  color: #1f150f;
  font-size: 0.98em;
  font-weight: 700;
  line-height: 1.22;
  align-content: center;
}

.tutorial-inline-house {
  display: inline;
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: -0.14em;
  margin: 0 0.04em;
}

.tutorial-layer[data-tutorial-target="market-entry"] .scene-menu-advice__copy {
  inset: 13% 8% 13% 10%;
  font-size: 0.88em;
  line-height: 1.12;
}

.scene-menu-advice--helper .scene-menu-advice__copy {
  inset: 14% 8% 35% 10%;
  align-items: flex-start;
  font-size: 0.93em;
  line-height: 1.16;
}

.scene-menu-advice--helper-death .scene-menu-advice__copy {
  inset: 17% 10% 37% 11%;
  justify-content: center;
  text-align: center;
}

.scene-menu-advice--helper-withdraw-sent .scene-menu-advice__copy {
  inset: 16% 10% 39% 11%;
  justify-content: center;
  text-align: center;
  font-size: 0.9em;
}

.scene-menu-advice:focus-visible,
.scene-helper-man:focus-visible {
  outline: 0.22em solid rgba(255, 240, 184, 0.98);
  outline-offset: 0.14em;
}

.scene-menu-list {
  display: grid;
  gap: 0.85em;
}

.scene-leaderboard-panel {
  position: relative;
  margin-top: 24px;
  padding: 1.2em 0.95em 1em;
  border-radius: 1.8em;
  overflow: hidden;
}

.scene-leaderboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 250, 234, 0.96) 0%, rgba(255, 236, 191, 0.88) 100%),
    var(--leaderboard-pad-image) center/100% 100% no-repeat;
  box-shadow:
    inset 0 0 0 0.14em rgba(114, 73, 20, 0.18),
    0 0.8em 1.6em rgba(53, 32, 14, 0.16);
  opacity: 0.96;
}

.scene-leaderboard-panel > * {
  position: relative;
  z-index: 1;
}

.scene-menu-list--leaders {
  margin-top: 0;
}

.scene-menu-list__gap {
  height: 18px;
}

.scene-overlay-layer--leaders .scene-menu-window__content {
  left: 18.2%;
  top: 20.6%;
  width: 63.8%;
  height: 56.8%;
  overflow: visible;
  padding: 0;
}

.scene-overlay-layer--settings .scene-menu-window__content {
  overflow: hidden;
}

.scene-leaders-board {
  width: 100%;
  transform: translateY(20px);
  color: #050505;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
}

.scene-leaders-board__title {
  margin: 0 0 0.54em;
  text-align: center;
  font-size: clamp(1.35rem, 2.05vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.scene-leaders-board__title--players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  margin-top: 1em;
  margin-bottom: 0.52em;
}

.scene-leaders-board__refresh {
  width: 1.38em;
  height: 1.17em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.scene-leaders-board__refresh:disabled {
  cursor: default;
}

.scene-leaders-board__refresh img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.scene-leaders-board__refresh.is-refreshing img {
  animation: leaderRefreshSpin 0.72s linear infinite;
}

@keyframes leaderRefreshSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.scene-leaders-board__rows {
  display: grid;
  gap: 0.56em;
}

.scene-leaders-row {
  min-height: 2.78em;
  border-radius: 0.38em;
  background: rgba(218, 187, 140, 0.72);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.4em;
  padding-right: 0.34em;
}

.scene-leaders-row__button {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.2em;
  align-items: center;
  gap: 1em;
  padding: 0 1.08em;
  border: 0;
  background: transparent;
  color: #050505;
  font: inherit;
  text-align: left;
}

.scene-leaders-row__button[data-action] {
  cursor: pointer;
}

.scene-leaders-row__button.is-current-player {
  padding-right: 0.88em;
}

.scene-leaders-row__farm-button {
  position: relative;
  align-self: center;
  width: 3.1em;
  height: 2.7em;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.scene-leaders-row__farm-button-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.scene-leaders-row__name,
.scene-leaders-row__score {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1;
}

.scene-leaders-row__name {
  font-size: clamp(1.05rem, 1.85vw, 1.72rem);
}

.scene-leaders-row__score {
  min-width: 4.8em;
  max-width: 4.8em;
  text-align: center;
  justify-self: center;
  font-size: clamp(1.12rem, 1.95vw, 1.82rem);
}

.scene-leader-line {
  position: relative;
  width: 100%;
  min-height: 5.2em;
  padding: 0;
  border: 0;
  background: none;
}

.scene-leader-line__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.scene-leader-line__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 2.2em;
  color: #1f150f;
  font-size: 1.04em;
  font-weight: 900;
  text-align: left;
}

.scene-menu-row {
  display: grid;
  grid-template-columns: 3.6em minmax(0, 1fr) 8.4em 6.8em;
  align-items: center;
  gap: 0.75em;
  padding: 0.38em 0.42em;
}

.scene-menu-row--leader {
  min-height: 5.1em;
  border-radius: 1.4em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(254, 242, 212, 0.94) 100%);
  box-shadow:
    inset 0 0 0 0.12em rgba(158, 108, 46, 0.22),
    0 0.35em 0.8em rgba(84, 53, 16, 0.12);
}

.scene-menu-row__main {
  position: relative;
  min-height: 5.2em;
}

.scene-menu-row__main-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.scene-menu-row__rank {
  min-width: 0;
  text-align: center;
  font-weight: 900;
  font-size: 1.02em;
  color: #7b4b1f;
  letter-spacing: 0.02em;
}

.scene-menu-row__copy {
  display: grid;
  gap: 0.2em;
  min-width: 0;
}

.scene-menu-row__copy strong {
  font-size: 0.98em;
  color: #1f150f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-menu-row__copy span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.78em;
  color: #556f89;
}

.scene-menu-row__reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  min-width: 7.9em;
  padding: 0.5em 0.8em 0.46em;
  border-radius: 999px;
  background: rgba(255, 248, 226, 0.9);
  box-shadow: inset 0 0 0 0.1em rgba(158, 108, 46, 0.18);
  font-size: 0.82em;
  font-weight: 800;
  justify-self: end;
}

.scene-menu-row__reward img {
  width: 1.18em;
  height: 1.18em;
  object-fit: contain;
  flex: 0 0 auto;
}

.scene-menu-row__reward span {
  display: block;
  flex: 0 0 5.2em;
  min-width: 5.2em;
  max-width: 5.2em;
  text-align: center;
  line-height: 1;
  transform: translateY(0.03em);
}

.scene-menu-row__action,
.scene-menu-row__self,
.scene-language-chip {
  min-height: 2.4em;
  padding: 0.35em 0.9em;
  border: 0.16em solid #422617;
  border-radius: 0.95em;
  background: linear-gradient(180deg, #fff4dc 0%, #ffe3ae 100%);
  color: #1f150f;
  font-size: 0.82em;
  font-weight: 900;
  box-shadow: 0 0.18em 0 #9e6c2e;
}

.scene-menu-row__action,
.scene-menu-row__self {
  width: 100%;
  min-width: 0;
  justify-self: end;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-align: center;
}

.scene-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9em;
}

.scene-settings-layout {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  min-height: 430px;
}

.scene-settings-language {
  position: relative;
  align-self: flex-end;
  width: 128px;
  display: block;
  justify-items: end;
  z-index: 25;
}

.scene-settings-language__toggle {
  min-width: 88px;
  min-height: 28px;
  padding: 0.2em 0.45em;
  border: 0.16em solid #422617;
  border-radius: 0.52em;
  background: linear-gradient(180deg, #fff4dc 0%, #ffe3ae 100%);
  color: #1f150f;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35em;
  font-size: 0.48em;
  font-weight: 900;
  box-shadow: 0 0.14em 0 #9e6c2e;
}

.scene-settings-language__toggle span {
  font-size: 2em;
  line-height: 1;
}

.scene-settings-language__toggle strong {
  font-size: 1.2em;
  line-height: 1;
}

.scene-settings-language__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.16em);
  right: 0;
  width: 140px;
  padding: 0.28em;
  border-radius: 0.64em;
  background: rgba(255, 248, 234, 0.97);
  border: 0.14em solid rgba(66, 38, 23, 0.24);
  box-shadow: 0 0.4em 1em rgba(31, 21, 15, 0.24);
  grid-template-columns: 1fr;
  gap: 0.18em;
}

.scene-settings-language.is-open .scene-settings-language__menu {
  display: grid;
}

.scene-settings-line--nickname {
  width: 360px;
}

.scene-settings-line--wallet {
  width: 360px;
}

.scene-settings-line,
.scene-settings-meta {
  width: 360px;
  align-self: center;
}

.scene-settings-line__label {
  color: #1f150f;
  font-size: 0.58em;
  font-weight: 900;
}

.scene-settings-line__input {
  width: 100%;
  height: 32px;
  border: 0.14em solid rgba(66, 38, 23, 0.18);
  border-radius: 0.52em;
  background: rgba(255, 255, 255, 0.9);
  color: #1f150f;
  font-size: 0.62em;
  font-weight: 800;
  padding: 0 0.8em;
}

.scene-settings-meta {
  display: grid;
  gap: 0.32em;
}

.scene-settings-grid__full {
  grid-column: 1 / -1;
}

.scene-settings-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7em;
}

.scene-settings-stat {
  padding: 0.9em 0.8em;
  border-radius: 1.1em;
  background: rgba(255, 255, 255, 0.76);
  border: 0.14em solid rgba(66, 38, 23, 0.18);
  text-align: center;
}

.scene-settings-stat strong {
  display: block;
  width: 100%;
  min-height: 1.08em;
  text-align: center;
  font-size: 1em;
}

.scene-settings-stat span {
  display: block;
  margin-top: 0.25em;
  font-size: 0.76em;
  color: #556f89;
}

.scene-settings-actions,
.scene-settings-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
}

.scene-settings-language .scene-language-chip {
  width: 100%;
  min-height: 2em;
  padding: 0.25em 0.55em;
  font-size: 0.54em;
  border-radius: 0.6em;
  justify-content: center;
}

.scene-language-chip.is-active {
  background: linear-gradient(180deg, #c7eb6a 0%, #8bbb2d 100%);
}

.scene-settings-note {
  padding: 0.4em 0.48em;
  border-radius: 0.52em;
  background: rgba(255, 255, 255, 0.76);
  border: 0.14em solid rgba(66, 38, 23, 0.18);
  display: grid;
  gap: 0.1em;
}

.scene-settings-note strong {
  font-size: 0.5em;
}

.scene-settings-note span {
  font-size: 0.42em;
  color: #556f89;
}

.scene-settings-menu {
  width: min(100%, 470px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  color: #1f150f;
}

.scene-settings-menu__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9em;
}

.scene-settings-menu__auth-button,
.scene-settings-menu__withdraw-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.scene-settings-menu__auth-button {
  width: 12.8em;
  min-height: 3.2em;
  transform: translate(125px, 5px);
}

.scene-settings-menu__auth-button.is-logout {
  width: 7.07em;
  min-height: 1.07em;
  transform: translate(156px, 5px);
}

.scene-settings-menu__auth-button-bg,
.scene-settings-menu__withdraw-button-bg {
  display: block;
  width: 100%;
  height: auto;
}

.scene-settings-menu__auth-button-label,
.scene-settings-menu__withdraw-button-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-weight: 900;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  white-space: nowrap;
  overflow: hidden;
}

.scene-settings-menu__auth-button-label {
  font-size: 1.225em;
  transform: translateY(-5px);
}

.scene-settings-menu__auth-button.is-logout .scene-settings-menu__auth-button-label {
  color: #ffffff;
  font-size: 1.18em;
  font-weight: 1000;
  transform: translateY(-3px);
  line-height: 1;
  text-align: center;
  padding: 0 0.55em;
}

.scene-settings-language--menu {
  width: auto;
  justify-self: end;
  transform: translateY(-5px);
}

.scene-settings-language--menu .scene-settings-language__toggle {
  min-width: 7.8em;
  min-height: 2.3em;
  padding: 0.34em 0.72em;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.84em;
}

.scene-settings-language--menu .scene-settings-language__toggle span {
  font-size: 1.18em;
  font-weight: 900;
}

.scene-settings-menu__nickname,
.scene-settings-menu__block {
  display: grid;
  gap: 0.35em;
}

.scene-settings-menu__label,
.scene-settings-menu__block-title,
.scene-settings-menu__count,
.scene-settings-menu__history-title {
  font-size: 0.92em;
  font-weight: 900;
  line-height: 1.1;
}

.scene-settings-menu__ton-accent {
  color: rgb(53, 137, 206);
}

.scene-settings-menu__nickname-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.scene-settings-menu__label {
  min-height: 1.65em;
  padding: 0.22em 0.4em;
  border-radius: 0.38em;
  background: rgba(231, 197, 145, 0.78);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scene-settings-menu__input,
.scene-settings-menu__amount {
  min-height: 2.35em;
  border: 0.16em solid #422617;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f150f;
  font-size: 0.8em;
  font-weight: 800;
  min-width: 0;
}

.scene-settings-menu__input {
  width: 100%;
  padding: 0 1.1em;
}

.scene-settings-menu__input::placeholder {
  color: rgba(31, 21, 15, 0.28);
  letter-spacing: 0.04em;
}

.scene-settings-menu__input.is-invalid {
  border-color: #cb2b33;
  box-shadow: 0 0 0 0.12em rgba(203, 43, 51, 0.18);
  color: #cb2b33;
}

.scene-settings-menu__input.is-invalid::placeholder {
  color: #cb2b33;
  letter-spacing: 0;
}

.scene-settings-menu__withdraw-row,
.scene-settings-menu__invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8em;
  align-items: center;
}

.scene-settings-menu__admin-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7em;
}

.scene-settings-menu__admin-button {
  min-height: 2.5em;
  border: 0.16em solid #422617;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4dc 0%, #ffe3ae 100%);
  color: #1f150f;
  font-size: 0.8em;
  font-weight: 900;
  box-shadow: 0 0.18em 0 #9e6c2e;
}

.scene-settings-menu__admin-button--secondary {
  background: rgba(255, 255, 255, 0.92);
}

.scene-settings-menu__amount {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1em;
  font-size: 0.94em;
  font-weight: 900;
  width: 100%;
  text-align: center;
}

.scene-settings-menu__withdraw-button {
  width: 7.2em;
  min-height: 2.8em;
  transform: translateY(-10px);
}

.scene-settings-menu__withdraw-button-label {
  color: #ffffff;
  font-size: 1.75em;
  transform: translateY(-5px);
}

.scene-settings-menu__copy {
  position: relative;
  width: 2.5em;
  min-height: 2.35em;
  border: 0.16em solid #422617;
  border-radius: 0.72em;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.18em 0 #9e6c2e;
}

.scene-settings-menu__copy span,
.scene-settings-menu__copy span::before {
  position: absolute;
  width: 0.78em;
  height: 0.9em;
  border: 0.12em solid #1f150f;
  border-radius: 0.01em;
  content: "";
  box-sizing: border-box;
}

.scene-settings-menu__copy span {
  left: 50%;
  top: 50%;
  transform: translate(-34%, -46%);
}

.scene-settings-menu__copy span::before {
  left: -0.26em;
  top: 0.22em;
  background: rgba(255, 255, 255, 0.9);
}

.scene-settings-menu__copy.is-copied span {
  width: 1.08em;
  height: 0.62em;
  border-top: 0;
  border-right: 0;
  border-radius: 0;
  transform: translate(-50%, -62%) rotate(-45deg);
}

.scene-settings-menu__copy.is-copied span::before {
  display: none;
}

.scene-settings-menu__count {
  font-size: 0.9em;
}

.scene-settings-menu__history-title {
  margin-top: 0.1em;
  text-align: center;
  font-size: 1.02em;
}

.scene-settings-menu__history-list {
  display: grid;
  gap: 0.52em;
}

.scene-settings-menu__history-row {
  min-height: 2.15em;
  padding: 0.28em 0.7em;
  border-radius: 0.5em;
  background: rgba(231, 197, 145, 0.78);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  font-size: 0.88em;
  font-weight: 800;
}

.scene-settings-menu__history-row.is-empty {
  color: transparent;
}

.scene-settings-menu__history-row strong {
  flex: 0 0 6.4em;
  min-width: 6.4em;
  max-width: 6.4em;
  text-align: right;
  font-size: 1em;
}

.admin-access-form {
  display: grid;
  gap: 0.9em;
  margin-top: 1em;
}

.admin-access-actions {
  justify-content: space-between;
}

.credits-modal-layer {
  z-index: 1500;
}

.credits-modal-wrap {
  align-items: center;
  justify-content: center;
}

.credits-card {
  position: relative;
  width: min(92vw, 520px);
  height: min(88vh, 720px);
  overflow: hidden;
  padding: 28px 28px 24px;
  border: 4px solid #3b2416;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 211, 0.96), rgba(247, 209, 116, 0.96)),
    url("texturies/static/background/menu.png") center/cover no-repeat;
  box-shadow: 0 14px 0 rgba(70, 38, 17, 0.35), 0 28px 60px rgba(0, 0, 0, 0.38);
  color: #2b170d;
}

.credits-card::before,
.credits-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 82px;
  z-index: 3;
  pointer-events: none;
}

.credits-card::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 239, 183, 0.98), rgba(255, 239, 183, 0));
}

.credits-card::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(239, 187, 82, 0.98), rgba(239, 187, 82, 0));
}

.credits-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 3px solid #3b2416;
  border-radius: 50%;
  background: #ffefbc;
  color: #3b2416;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}

.credits-roll {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  padding: 0 0 120px;
  animation: creditsRoll 18s linear infinite;
}

.credits-title {
  margin: 92px 42px 22px;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 2px 0 #fff3c5;
}

.credits-line {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  margin: 14px 0;
  padding: 10px 14px;
  border: 3px solid #4a2b18;
  border-radius: 8px;
  background: rgba(255, 248, 220, 0.82);
  box-shadow: inset 0 -4px 0 rgba(123, 75, 28, 0.16);
}

.credits-line span {
  font-size: 15px;
  font-weight: 800;
  color: #70441d;
}

.credits-line strong {
  font-size: 18px;
  font-weight: 900;
  color: #241208;
}

.credits-scene {
  position: relative;
  height: 96px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(165, 217, 105, 0.72), rgba(112, 159, 65, 0.72));
}

.credits-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: rgba(92, 126, 48, 0.32);
}

.credits-chicken,
.credits-egg {
  position: absolute;
  z-index: 2;
  height: 72px;
  width: auto;
  object-fit: contain;
  image-rendering: auto;
}

.credits-egg {
  height: 32px;
  bottom: 14px;
}

@keyframes creditsRoll {
  from { transform: translateY(42%); }
  to { transform: translateY(-100%); }
}

.credits-egg--intro {
  left: 46%;
  animation: creditsEggHop 1.1s ease-in-out infinite;
}

.credits-chicken--intro-a {
  left: -20%;
  bottom: 10px;
  animation: creditsWalkToEgg 5.6s ease-in-out infinite;
}

.credits-chicken--intro-b {
  right: -22%;
  bottom: 10px;
  transform: scaleX(-1);
  animation: creditsWalkToEggRight 5.6s ease-in-out infinite;
}

.credits-chicken--guard {
  left: 17%;
  bottom: 8px;
  animation: creditsGuardChase 5.4s linear infinite;
}

.credits-egg--steal {
  left: 35%;
  animation: creditsEggStolen 5.4s linear infinite;
}

.credits-chicken--thief-peck {
  left: 35%;
  bottom: 8px;
  animation: creditsThiefPeck 5.4s linear infinite;
}

.credits-chicken--thief-run {
  left: -24%;
  bottom: 10px;
  animation: creditsThiefRun 5.4s linear infinite;
}

.credits-chicken--idea-a {
  left: 18%;
  bottom: 8px;
  animation: creditsPeckThink 1.4s ease-in-out infinite;
}

.credits-chicken--idea-b {
  right: 13%;
  bottom: 0;
  height: 88px;
  animation: creditsSuperPop 2.2s ease-in-out infinite;
}

.credits-egg--idea {
  left: 48%;
  animation: creditsEggSpark 1.6s ease-in-out infinite;
}

.credits-chicken--bow-a {
  left: 18%;
  bottom: 8px;
  animation: creditsBowPeckLeft 1.2s ease-in-out infinite;
}

.credits-chicken--bow-b {
  left: 42%;
  bottom: 0;
  height: 86px;
  animation: creditsBow 1.7s ease-in-out infinite 0.2s;
}

.credits-chicken--bow-c {
  right: 18%;
  bottom: 8px;
  transform: scaleX(-1);
  animation: creditsBowPeckRight 1.2s ease-in-out infinite 0.25s;
}

@keyframes creditsEggHop {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-10px) rotate(7deg); }
}

@keyframes creditsWalkToEgg {
  0% { left: -20%; transform: scaleX(1); }
  38%, 62% { left: 25%; transform: scaleX(1); }
  72% { left: 25%; transform: scaleX(-1); }
  100% { left: -20%; transform: scaleX(-1); }
}

@keyframes creditsWalkToEggRight {
  0% { right: -22%; transform: scaleX(-1); }
  38%, 62% { right: 24%; transform: scaleX(-1); }
  72% { right: 24%; transform: scaleX(1); }
  100% { right: -22%; transform: scaleX(1); }
}

@keyframes creditsThiefRun {
  0%, 54% { left: 35%; transform: scaleX(1); opacity: 0; }
  55% { left: 35%; transform: scaleX(1); opacity: 1; }
  100% { left: 112%; transform: scaleX(1); }
}

@keyframes creditsThiefPeck {
  0%, 54% { left: 35%; opacity: 1; transform: translateY(0); }
  55%, 100% { left: 35%; opacity: 0; transform: translateY(0); }
}

@keyframes creditsEggStolen {
  0%, 54% { left: 35%; transform: translateY(0) scale(1); opacity: 1; }
  100% { left: 112%; transform: translateY(-4px) scale(0.92); opacity: 0; }
}

@keyframes creditsGuardChase {
  0%, 72% { left: 17%; transform: scaleX(1); }
  100% { left: 96%; transform: scaleX(1); }
}

@keyframes creditsPeckThink {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(6px); }
}

@keyframes creditsSuperPop {
  0%, 100% { transform: translateY(6px) scale(0.95); }
  45% { transform: translateY(-7px) scale(1.05); }
}

@keyframes creditsEggSpark {
  0%, 100% { transform: scale(1) rotate(-9deg); filter: brightness(1); }
  50% { transform: scale(1.18) rotate(9deg); filter: brightness(1.35); }
}

@keyframes creditsBow {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(6px) scaleY(0.88); }
}

@keyframes creditsBowPeckLeft {
  0%, 100% { transform: scaleX(1) translateY(0); }
  50% { transform: scaleX(1) translateY(6px); }
}

@keyframes creditsBowPeckRight {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(6px); }
}

@media (max-width: 560px) {
  .credits-card {
    width: 94vw;
    height: 84vh;
    padding: 22px 16px 18px;
  }

  .credits-roll {
    left: 16px;
    right: 16px;
  }

  .credits-title {
    font-size: 22px;
  }

  .credits-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .credits-line strong {
    font-size: 16px;
  }
}

.app-shell--game,
.app-shell--game * {
  user-select: none;
  -webkit-user-select: none;
}

.app-shell--game input,
.app-shell--game textarea,
.app-shell--game select,
.app-shell--game option {
  user-select: text;
  -webkit-user-select: text;
}

.auth-launch-screen {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 239, 0.96), rgba(224, 245, 255, 0.96)),
    #f5fbff;
}

.auth-launch-panel {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  color: #17324d;
}

.auth-launch-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #2aabee;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}

.auth-launch-panel h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.14;
}

.auth-launch-panel p {
  margin: 0;
  max-width: 340px;
  font-size: 16px;
  line-height: 1.5;
  color: #486274;
}

.auth-launch-button {
  min-width: 190px;
  justify-content: center;
}

@media (max-width: 560px) and (pointer: coarse) {
  .scene-canvas {
    width: 100vw;
    font-size: clamp(8.4px, 2.45vw, 10px);
  }

  .scene-top-panel {
    left: 2.2%;
    top: 1.28%;
    width: 95.6%;
    height: 5.1%;
    grid-template-columns: 22% 49% 25%;
    gap: 1.35%;
  }

  .scene-top-panel__bags-copy,
  .scene-top-panel__day-copy {
    padding-inline: 0.55em;
  }

  .scene-top-panel__bags-copy {
    gap: 0.3em;
  }

  .scene-top-panel__bags-copy img {
    width: 2em;
    transform: translateX(13px);
  }

  .scene-top-panel__bags-copy strong {
    font-size: 1.72em;
  }

  .scene-top-panel__day-copy {
    padding: 0.35em 0.55em 0.25em;
  }

  .scene-top-panel__day-copy strong {
    font-size: 1em;
    transform: translateY(-5px);
  }

  .scene-top-panel__day-copy span {
    font-size: 1.47em;
    transform: translateY(5px);
  }

  .scene-top-panel__resources-track {
    left: 6%;
    right: 0;
    top: -8%;
    bottom: -8%;
  }

  .scene-top-panel__plus {
    left: -1.2%;
    width: 11%;
    margin-left: 0;
  }

  .scene-top-panel__resource-segment {
    gap: 0.18em;
    font-size: 1.2em;
    padding: 0;
    transform: translateX(-5px) scale(1.2);
    transform-origin: center center;
  }

  .scene-top-panel__resource-segment img {
    width: 1.16em;
    height: 1.16em;
    transform: translateX(10px);
  }

  .scene-top-panel__resource-segment img[src*="egg"] {
    width: 1.656em;
    height: 1.656em;
  }

  .scene-top-panel__resource-segment strong {
    font-size: 0.88em;
  }

  .scene-top-panel__resource-segment:nth-child(4) {
    transform: translateX(-5px) translateX(-0.24em) scale(1.2);
  }

  .scene-top-panel__resource-segment:last-child {
    transform: translateX(-10px) translateX(-0.56em) scale(1.2);
  }

  .scene-nav-button span {
    bottom: 13%;
    font-size: 1.12em;
    line-height: 1;
    transform: translateX(-50%) translateY(calc(-0.34em - 5px));
  }

  .scene-nav-button--market span,
  .scene-nav-button--leaders span,
  .scene-bottom-panel__buttons--compact .scene-nav-button span {
    font-size: 1.4em;
  }

  .scene-nav-button--settings span {
    font-size: 1.54em;
  }

  .scene-market-caption {
    top: calc(41% - 7px);
  }

  .scene-market-window__title {
    top: calc(17.2917% + 4px);
  }

  .scene-market-pane__label {
    bottom: calc(100% + 0.12em + 6px);
  }

  .scene-market-card__visual,
  .scene-market-card__copy {
    transform: translateY(1.2em);
  }

  .scene-market-card__content {
    inset: 4% 7% 20%;
    gap: 0.18em;
  }

  .scene-market-card__copy strong {
    font-size: calc(1.1232em * var(--market-card-title-scale));
    line-height: 1.06;
    max-width: 100%;
    transform: translateY(20px);
  }

  .scene-market-card--super .scene-market-card__copy strong,
  .scene-market-card--auto .scene-market-card__copy strong {
    transform: translateY(15px);
  }

  .scene-market-card__controls {
    left: 8%;
    right: 8%;
    bottom: 4%;
    gap: 0.22em;
  }

  .scene-market-card__quantity {
    width: calc(2.4em - 6px);
    min-width: 0;
    min-height: 1.8em;
    font-size: 0.82em;
    padding: 0.06em 0.32em;
  }

  .scene-market-card__discount-badge {
    top: calc(-5% + 15px);
    width: 35%;
  }

  .scene-market-card--chicken .scene-market-card__discount-badge,
  .scene-market-card--glove .scene-market-card__discount-badge,
  .scene-market-card--super .scene-market-card__discount-badge,
  .scene-market-card--dog .scene-market-card__discount-badge,
  .scene-market-card--auto .scene-market-card__discount-badge {
    top: calc(-11% + 20px);
  }

  .scene-market-card__discount-badge-text {
    font-size: 1em;
  }

  .scene-market-card__purchased {
    transform: translateY(calc(3.1em - 15px));
  }

  .scene-market-card__purchased > span {
    font-size: 1.04em;
  }

  .scene-market-payment__button > span {
    font-size: calc(1.56em * var(--market-payment-text-scale, 1));
    transform: translate(-50%, -50%);
  }

  .scene-settings-menu {
    width: 100%;
    gap: 0.62em;
  }

  .scene-settings-menu__top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.08em;
    margin-bottom: 0.15em;
  }

  .scene-settings-menu__auth-button,
  .scene-settings-menu__auth-button.is-logout {
    width: 12em;
    min-height: 2.85em;
    transform: translateY(15px);
  }

  .scene-settings-menu__auth-button.is-logout {
    width: 5.65em;
    min-height: 0.85em;
  }

  .scene-settings-menu__auth-button-label,
  .scene-settings-menu__auth-button.is-logout .scene-settings-menu__auth-button-label {
    font-size: 1.05em;
    transform: translateY(-0.18em);
  }

  .scene-settings-language--menu {
    justify-self: center;
    transform: translate(95px, -10px) scale(1.3);
    transform-origin: center center;
  }

  .scene-settings-language--menu .scene-settings-language__toggle {
    min-width: auto;
    min-height: 1.9em;
    padding: 0.16em 0.45em;
    font-size: 0.75em;
  }

  .scene-settings-menu__label,
  .scene-settings-menu__block-title,
  .scene-settings-menu__count {
    font-size: 0.78em;
  }

  .scene-settings-menu__input,
  .scene-settings-menu__amount {
    min-height: 2.1em;
    font-size: 0.7em;
  }

  .scene-settings-menu__withdraw-row,
  .scene-settings-menu__invite-row {
    gap: 0.5em;
  }

  .scene-settings-menu__withdraw-button {
    width: 5.8em;
    min-height: 2.3em;
    transform: none;
  }

  .scene-settings-menu__withdraw-button-label {
    font-size: 1.35em;
    transform: translateY(-0.15em);
  }

  .scene-settings-menu__copy {
    width: 2.1em;
    min-height: 2.1em;
  }

  .scene-settings-menu__history-title {
    font-size: 0.86em;
  }

  .scene-settings-menu__history-list {
    gap: 0.36em;
  }

  .scene-settings-menu__history-row {
    min-height: 1.85em;
    font-size: 0.75em;
    padding: 0.18em 0.55em;
  }

  .scene-layout-object--feeder:not(.scene-layout-object--feeder-auto) .scene-feeder-clock {
    left: calc(39% - 14px) !important;
    top: calc(8% - 38px) !important;
    transform: translate(18px, 33px) rotate(-8deg) scale(1) !important;
  }

  .scene-layout-object--feeder-auto .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p100 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p75 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p50 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p25 .scene-feeder-clock {
    left: calc(53.13% - 12px) !important;
    top: calc(27.48% - 1px) !important;
    transform: rotate(-8deg) scale(1) !important;
  }

  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p100 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p75 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p50 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p25 .scene-feeder-clock {
    top: calc(27.48% - 1px) !important;
  }

  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p10 .scene-feeder-clock {
    top: calc(27.48% - 11px) !important;
  }

  .feeder-clock-badge {
    left: calc(52% + 3px) !important;
    top: calc(-6% + 0px) !important;
    transform: translate(-12px, 23px) rotate(-8deg) scale(1) !important;
  }

  .object-feeder--auto .feeder-clock-badge {
    left: calc(52% + 8px) !important;
    top: calc(-6% - 5px + 42px) !important;
    transform: rotate(-8deg) scale(1) !important;
  }

  .scene-menu-window__content {
    height: 66%;
  }

  .scene-leaderboard-panel {
    padding: 0.9em 0.72em 0.82em;
    border-radius: 1.45em;
  }

  .scene-menu-row--leader {
    grid-template-columns: 3.1em minmax(0, 1fr);
    gap: 0.48em 0.56em;
    padding: 0.52em 0.58em;
  }

  .scene-menu-row__rank {
    grid-row: span 2;
    align-self: center;
  }

  .scene-menu-row__reward,
  .scene-menu-row__action,
  .scene-menu-row__self {
    justify-self: start;
  }

  .scene-menu-row__reward {
    width: 8.4em;
    min-width: 8.4em;
    max-width: 8.4em;
    padding-inline: 0.72em;
  }
}

@media (max-width: 560px) {
  .auth-menu-card__title {
    top: calc(15.5% + 25px);
  }

  .theft-alert-card--dog .theft-alert-card__yes {
    transform: translate(-50%, 10px);
  }

  .scene-layout-object--feeder-auto .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p100 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p75 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p50 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p25 .scene-feeder-clock {
    left: calc(53.13% - 12px) !important;
    top: calc(27.48% - 1px) !important;
    transform: rotate(-8deg) scale(1) !important;
  }

  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p100 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p75 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p50 .scene-feeder-clock,
  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p25 .scene-feeder-clock {
    top: calc(27.48% - 1px) !important;
  }

  .scene-layout-object--feeder-auto.scene-layout-object--feeder-p10 .scene-feeder-clock {
    top: calc(27.48% - 11px) !important;
  }

  .object-feeder--auto .feeder-clock-badge {
    left: calc(52% + 8px) !important;
    top: calc(-6% - 5px + 42px) !important;
    transform: rotate(-8deg) scale(1) !important;
  }
}
