:root {
  --ink: #241d19;
  --muted: #765f51;
  --paper: #fff3de;
  --cream: #ffe8bd;
  --toast: #d17a35;
  --crust: #8f431f;
  --red: #e74538;
  --blue: #1c9ed8;
  --mint: #80cbb4;
  --shadow: rgba(57, 31, 18, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(231, 69, 56, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(231, 69, 56, 0.08) 1px, transparent 1px),
    #ffe4c0;
  background-size: 34px 34px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.icon-button,
.round-button,
.primary-button,
.secondary-button {
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.icon-button:hover,
.round-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

button:disabled:hover {
  transform: none;
  box-shadow: 0 5px 0 var(--ink);
}

.icon-button {
  min-width: 116px;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--paper);
  font-weight: 800;
}

.wallet-control {
  position: relative;
}

.wallet-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 10px;
  background: #fff9ec;
  box-shadow: 6px 6px 0 var(--shadow);
}

.wallet-menu strong {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.wallet-menu button {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.wallet-menu button:last-child {
  background: #ffe1d5;
}

.launch-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 18px;
}

.collection-links {
  min-width: 245px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.collection-links a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff9ec;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--shadow);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.collection-links a:not(.is-disabled-link):hover {
  transform: translateY(2px);
  box-shadow: 4px 4px 0 var(--shadow);
}

.collection-links .is-disabled-link {
  color: var(--muted);
  opacity: 0.7;
  cursor: default;
}

.bakehouse {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1fr) minmax(320px, 0.95fr);
  align-items: stretch;
  gap: 18px;
}

.machine,
.timer-panel,
.mint-panel {
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--shadow);
}

.machine {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fff7e8, #f8bf96);
  padding: 24px;
}

.machine::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(36, 29, 25, 0.14);
  border-radius: 6px;
  pointer-events: none;
}

.machine-top {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.machine-top span {
  width: 44px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
}

.machine-window {
  position: relative;
  overflow: hidden;
  height: 310px;
  margin: 42px auto 24px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.78) 0 35%, transparent 36%),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.8), transparent 26%),
    linear-gradient(145deg, rgba(128, 203, 180, 0.5), rgba(28, 158, 216, 0.18)),
    #fff8e9;
  display: grid;
  place-items: center;
  padding: 18px;
}

.machine-window::before,
.machine-window::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.machine-window::before {
  width: 72%;
  height: 32px;
  top: 28px;
  left: 8%;
  transform: rotate(-18deg);
}

.machine-window::after {
  width: 48%;
  height: 18px;
  right: 11%;
  bottom: 44px;
  transform: rotate(-18deg);
}

.capsule-shine {
  position: absolute;
  width: min(210px, 78%);
  aspect-ratio: 1;
  border: 4px solid rgba(28, 158, 216, 0.42);
  border-radius: 50%;
  box-shadow:
    inset 12px 10px 0 rgba(255, 255, 255, 0.4),
    0 0 0 12px rgba(255, 255, 255, 0.14);
}

.shelf {
  display: none;
}

.prize-pack {
  position: relative;
  z-index: 2;
  width: min(218px, 82%);
  aspect-ratio: 0.82;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 20px 20px 14px 14px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(231, 69, 56, 0.16) 12% 17%, transparent 17% 83%, rgba(231, 69, 56, 0.16) 83% 88%, transparent 88%),
    linear-gradient(#fff8e8 0 18%, #e74538 18% 26%, #fff6e8 26%);
  box-shadow:
    0 12px 0 rgba(36, 29, 25, 0.16),
    inset 0 0 0 8px rgba(255, 255, 255, 0.52);
}

.prize-pack::before {
  content: "";
  position: absolute;
  top: 13px;
  width: 72%;
  height: 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 50%, #ffe8ae 0 4px, transparent 5px),
    radial-gradient(circle at 78% 50%, #ffe8ae 0 4px, transparent 5px),
    var(--red);
}

.prize-pack::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 32px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background:
    linear-gradient(#1c9ed8 0 24%, transparent 24% 32%, #80cbb4 32% 56%, transparent 56% 64%, #f2a344 64%),
    #fff8e8;
}

.pack-panel {
  position: absolute;
  left: 18px;
  right: 58px;
  bottom: 18px;
  height: 40px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffe8ae;
}

.pack-panel span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.pack-panel span:nth-child(1) {
  background: var(--red);
}

.pack-panel span:nth-child(2) {
  background: var(--blue);
}

.pack-panel span:nth-child(3) {
  background: var(--mint);
}

.breadling {
  width: min(150px, 66%);
  aspect-ratio: 1;
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 43% 47% 40% 43%;
  background:
    radial-gradient(circle at 29% 28%, rgba(255, 255, 255, 0.45) 0 15px, transparent 16px),
    radial-gradient(circle at 62% 20%, rgba(143, 67, 31, 0.14) 0 5px, transparent 6px),
    radial-gradient(circle at 48% 18%, rgba(143, 67, 31, 0.14) 0 4px, transparent 5px),
    radial-gradient(circle at 38% 22%, rgba(143, 67, 31, 0.14) 0 4px, transparent 5px),
    linear-gradient(#f0a348 0 41%, #ffe2a4 42%);
  box-shadow:
    inset 0 -10px 0 rgba(143, 67, 31, 0.14),
    0 12px 0 rgba(36, 29, 25, 0.1);
  animation: bob 2.6s ease-in-out infinite;
  z-index: 3;
  margin-bottom: 18px;
}

.eye {
  position: absolute;
  top: 53%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}

.eye.left {
  left: 33%;
}

.eye.right {
  right: 33%;
}

.mouth {
  position: absolute;
  left: 50%;
  top: 63%;
  width: 25px;
  height: 14px;
  transform: translateX(-50%);
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 999px 999px;
}

.arm {
  position: absolute;
  top: 68%;
  width: 18px;
  height: 24px;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: #ffe2a4;
}

.arm.left {
  left: 14px;
  transform: rotate(20deg);
}

.arm.right {
  right: 14px;
  transform: rotate(-20deg);
}

.machine-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.machine-controls span {
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
}

.machine-controls span:nth-child(2) {
  background: var(--blue);
}

.ticket-slot {
  width: 62%;
  height: 28px;
  margin: 32px auto 0;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--crust);
}

.timer-panel,
.mint-panel {
  background: rgba(255, 247, 232, 0.92);
  padding: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timer-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.round-callout {
  margin-top: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: #fff9ec;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.timer-ring {
  position: relative;
  width: min(330px, 100%);
  aspect-ratio: 1;
  margin: 16px auto 22px;
}

.timer-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-track,
.timer-progress {
  fill: none;
  stroke-width: 16;
}

.timer-track {
  stroke: #f2ca9b;
}

.timer-progress {
  stroke: var(--red);
  stroke-linecap: round;
  stroke-dasharray: 597;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 350ms ease;
}

.timer-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.timer-copy strong {
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1;
  font-weight: 950;
}

.timer-copy span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 900;
}

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

.stats-grid div {
  min-height: 82px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: #fff9ec;
}

.stats-grid span,
.field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.mechanics {
  margin-top: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px;
  background: #fff9ec;
}

.mechanics p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 750;
}

.mint-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.is-hidden {
  display: none !important;
}

.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.panel-head strong {
  font-size: 18px;
}

.ticket-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  min-height: 124px;
}

.ticket-preview img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--shadow);
}

.ticket-preview img:first-child {
  object-position: center;
}

.ticket-preview img:last-child {
  object-position: center;
  filter: saturate(0.94) contrast(1.04);
}

.phase-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 24%, rgba(231, 69, 56, 0.18) 0 18px, transparent 19px),
    #fff9ec;
}

.phase-card span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phase-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.phase-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 760;
}

.bake-action {
  display: grid;
  gap: 10px;
}

.bake-action .primary-button {
  width: 100%;
  margin-top: 2px;
}

#liveMintControls {
  display: contents;
}

.discount-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: #fff9ec;
}

.discount-card span,
.entry-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.discount-card strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.entry-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.entry-summary div {
  min-height: 74px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: #fff9ec;
}

.entry-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
}

.quantity-row {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 10px;
}

.round-button {
  height: 52px;
  border-radius: 8px;
  background: var(--paper);
  font-size: 26px;
  font-weight: 900;
}

output {
  height: 62px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  font-size: 34px;
  font-weight: 950;
}

.field {
  display: grid;
  gap: 7px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffaf0;
  color: var(--ink);
  outline: none;
}

input:focus {
  box-shadow: 0 0 0 4px rgba(28, 158, 216, 0.2);
}

.primary-button,
.secondary-button {
  min-height: 52px;
  border-radius: 8px;
  font-weight: 950;
}

.primary-button {
  background: var(--red);
  color: #fffaf0;
}

.secondary-button {
  background: var(--mint);
}

.tiny {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.divider {
  height: 2px;
  background: rgba(36, 29, 25, 0.16);
  margin: 2px 0;
}

.conveyor {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
  overflow: hidden;
}

.conveyor span {
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 52%, var(--red) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 48%, var(--blue) 0 7px, transparent 8px),
    radial-gradient(circle at 72% 52%, var(--mint) 0 7px, transparent 8px),
    #fff8e8;
  box-shadow: 0 5px 0 var(--shadow);
  animation: slide 3s ease-in-out infinite alternate;
}

.conveyor span:nth-child(even) {
  animation-delay: 350ms;
}

.rules-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rules-strip div,
.bakery-log {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.94);
  box-shadow: 7px 7px 0 var(--shadow);
}

.rules-strip div {
  min-height: 130px;
  padding: 16px;
}

.rules-strip span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 950;
}

.rules-strip strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.rules-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
}

.bakery-log {
  margin-top: 18px;
  padding: 14px;
  overflow: hidden;
}

.launch-strip .bakery-log {
  margin-top: 0;
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.log-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.log-rail {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  animation: logDrift 15s linear infinite;
}

.log-rail span {
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff9ec;
  font-size: 14px;
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fffaf0;
  box-shadow: 7px 7px 0 var(--shadow);
  font-weight: 800;
}

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

@keyframes slide {
  from {
    transform: translateX(-10px);
  }
  to {
    transform: translateX(10px);
  }
}

@keyframes logDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-260px);
  }
}

@media (max-width: 980px) {
  .launch-strip {
    grid-template-columns: 1fr;
  }

  .collection-links {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .machine {
    min-height: 420px;
  }

  .machine-window {
    height: 220px;
    margin-top: 28px;
  }

  .prize-pack {
    width: min(190px, 72%);
  }

  .breadling {
    width: min(122px, 62%);
  }

  .shelf {
    transform: scale(0.86);
  }

  .rules-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 18px, 1180px);
    padding-top: 10px;
  }

  .topbar {
    gap: 10px;
    padding: 6px 0 10px;
  }

  .brand {
    min-width: 0;
    font-size: 16px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .icon-button {
    min-width: 112px;
    max-width: 138px;
    padding: 9px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wallet-menu {
    right: 0;
    width: min(250px, calc(100vw - 26px));
  }

  .launch-strip {
    gap: 8px;
    margin-bottom: 10px;
  }

  .launch-strip .bakery-log {
    padding: 10px 12px;
    box-shadow: 4px 4px 0 var(--shadow);
  }

  .log-head {
    align-items: start;
  }

  .log-head span {
    text-align: right;
  }

  .log-rail {
    display: none;
  }

  .collection-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .collection-links a {
    min-height: 42px;
    box-shadow: 4px 4px 0 var(--shadow);
    font-size: 12px;
  }

  .bakehouse {
    gap: 12px;
  }

  .mint-panel {
    order: 1;
  }

  .timer-panel {
    order: 2;
  }

  .machine {
    order: 3;
  }

  .timer-panel,
  .mint-panel,
  .machine,
  .rules-strip div,
  .bakery-log {
    box-shadow: 5px 5px 0 var(--shadow);
  }

  .timer-panel,
  .mint-panel,
  .machine {
    padding: 14px;
  }

  .panel-head {
    align-items: center;
  }

  .ticket-preview {
    grid-template-columns: 1fr 0.75fr;
    min-height: 74px;
  }

  .ticket-preview img {
    height: 74px;
  }

  .phase-card,
  .mechanics,
  .round-callout,
  .discount-card,
  .entry-summary div,
  .stats-grid div {
    padding: 10px;
  }

  .phase-card p,
  .mechanics p:last-child,
  .rules-strip p,
  .tiny {
    font-size: 13px;
    line-height: 1.35;
  }

  .quantity-row {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }

  .round-button {
    min-height: 46px;
  }

  .primary-button,
  .secondary-button {
    min-height: 50px;
  }

  .timer-ring {
    width: min(235px, 82vw);
    margin: 14px auto 16px;
  }

  .timer-copy strong {
    font-size: 42px;
  }

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

  .stats-grid div {
    min-height: 68px;
  }

  .stats-grid strong {
    font-size: 20px;
  }

  .entry-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .machine {
    min-height: 300px;
  }

  .machine::before {
    inset: 10px;
  }

  .machine-top span {
    width: 40px;
    height: 16px;
  }

  .machine-window {
    height: 180px;
    margin: 26px auto 18px;
    border-width: 3px;
    border-radius: 12px;
  }

  .prize-pack {
    width: min(142px, 58%);
    border-width: 3px;
    border-radius: 16px 16px 12px 12px;
  }

  .breadling {
    width: min(92px, 60%);
    border-width: 3px;
  }

  .eye {
    width: 9px;
    height: 9px;
  }

  .mouth {
    width: 20px;
    border-bottom-width: 3px;
  }

  .arm {
    width: 14px;
    height: 19px;
    border-width: 2px;
    border-top: 0;
  }

  .pack-panel {
    left: 12px;
    right: 44px;
    bottom: 12px;
    height: 30px;
    gap: 4px;
    padding: 4px;
  }

  .pack-panel span {
    width: 14px;
    height: 14px;
  }

  .prize-pack::after {
    right: 9px;
    bottom: 12px;
    width: 24px;
    height: 34px;
  }

  .machine-controls {
    gap: 8px;
  }

  .machine-controls span {
    height: 34px;
  }

  .ticket-slot {
    height: 22px;
    margin-top: 20px;
  }

  .conveyor {
    display: none;
  }

  .rules-strip {
    gap: 10px;
    margin-top: 12px;
  }

  .rules-strip div {
    min-height: auto;
    padding: 12px;
  }

  .rules-strip strong {
    margin-top: 8px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 15px;
  }

  .icon-button {
    min-width: 104px;
    max-width: 126px;
  }

  .ticket-preview,
  .entry-summary,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
