.elka-claw {
  --claw-cream: #fff0d3;
  --claw-text: #c7d5df;
  --claw-brass: #c89d61;
  --claw-rule: #c89d616b;
  --claw-night: #101e30;
  --claw-wine: #70242d;
  --claw-enamel: #8f1d27;
  --claw-enamel-deep: #4e0d15;
  --claw-gold: #e7bd6c;
  --claw-ok: #ffd36e;
  --claw-warn: #ff9f43;
  --claw-bad: #ff5a4f;
  color: var(--claw-cream);
  max-width: 1420px;
  margin-inline: auto;
  padding: 0 clamp(0px, 2.2vw, 27px) 25px;
}

.elka-claw [hidden] { display: none !important; }
.elka-claw button, .elka-claw select { font: inherit; }
.elka-claw button { cursor: pointer; }
.elka-claw button:disabled { cursor: default; opacity: .53; }
.elka-claw :focus-visible { outline: 2px solid #ffde9d; outline-offset: 3px; }
.claw-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; margin-bottom: 16px; }
.claw-head h1 { margin: 3px 0 0; font: normal clamp(2.55rem, 5.4vw, 5rem)/.99 Georgia, serif; letter-spacing: -.046em; }
.claw-link { min-height: 35px; padding: 4px 0; background: transparent; border: 0; color: #f1c991; text-decoration: underline; text-underline-offset: .22em; }
.claw-link:hover:not(:disabled) { color: white; }
.claw-settings { display: flex; align-items: end; flex-wrap: wrap; gap: 9px 18px; }
.claw-settings label, .claw-settings legend { color: var(--claw-text); font-size: .82rem; }
.claw-settings label { display: grid; gap: 4px; }
.claw-settings select { min-height: 44px; min-width: 9.7rem; padding: 7px 30px 7px 11px; border-radius: 7px; border: 1px solid var(--claw-rule); background: #192a3c; color: var(--claw-cream); }
.claw-settings fieldset { border: 0; padding: 0; margin: 0; }
.claw-settings legend { padding: 0 0 4px; }
.claw-switch { display: inline-flex; gap: 2px; border: 1px solid var(--claw-rule); border-radius: 7px; padding: 2px; background: #122132; }
.claw-switch button { min-height: 38px; padding: 5px 10px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--claw-text); font-size: .92rem; }
.claw-switch button[aria-pressed="true"] { border-color: #b88155; background: #592e35; color: var(--claw-cream); }
.claw-balance { display: flex; min-height: 44px; align-items: center; margin: 0; color: #ffdeaa; font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.claw-cabinets { display: grid; gap: 7px; margin: 0 0 14px; }
.claw-cabinet-row { display: grid; grid-template-columns: minmax(90px, 105px) 1fr; align-items: start; gap: 8px; }
.claw-cabinet-row h2 { margin: 9px 0 0; color: #dec8a8; font: 1.01rem/1.2 Georgia, serif; }
.claw-cabinet-row ul { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; }
.claw-cabinet-row button {
  min-height: 38px; display: inline-flex; gap: 7px; align-items: center; padding: 6px 9px;
  color: #f2e7d4; background: #28212a; border: 1px solid #bc955953; border-radius: 6px; font-size: .79rem;
  transition: background-color 140ms, transform 100ms, box-shadow 100ms;
}
.claw-cabinet-row button[aria-pressed="true"] { border-color: #dbb477; background: #66303a; box-shadow: inset 0 1px #e4b78248; }
.claw-cabinet-row button:hover:not(:disabled) { border-color: #d5ab73; }
.claw-cabinet-row small { color: #efd09d; font-size: .68rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.elka-claw button:not(.claw-stick, .claw-shake, .claw-grab, .claw-orbit, .claw-overhead, .claw-turn):active:not(:disabled) { transform: translateY(2px); filter: brightness(.91); }

.claw-frame { overflow: hidden; border: 1px solid #ba925b; border-radius: 13px; background: #211c26; box-shadow: 0 12px 26px #05111c9c; }
body:has(.elka-claw.is-at-cabinet) { min-height: 0; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
body:has(.elka-claw.is-at-cabinet) > #main-content { position: relative; min-height: 0; isolation: isolate; }
.elka-claw.is-at-cabinet .claw-frame { position: absolute; z-index: 100; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; border: 0; border-radius: 0; }
.elka-claw.is-at-cabinet .claw-stage { height: auto; min-height: 0; }
.elka-claw.is-at-cabinet::before {
  content: ''; position: fixed; inset: 0; z-index: 99;
  background: linear-gradient(90deg, #130b11ef, #291a20df, #130b11ef), url('../art/style/claw-courtyard.webp') center / cover;
}
.elka-claw.is-at-cabinet .claw-frame {
  width: min(100%, 143dvh); margin-inline: auto; box-shadow: 0 0 70px #100a0dd9;
}
.claw-stage { position: relative; isolation: isolate; height: clamp(360px, 62dvh, 700px); overflow: hidden; background: #13223a; }
.claw-stage:not([data-loading])::before { position: absolute; z-index: -1; inset: -9px; content: ''; background: linear-gradient(#14203077, #251c2299), url('../art/style/claw-courtyard.webp') 50% 46% / cover; filter: blur(7px); }
.claw-surface { position: absolute; inset: 0; }
.claw-surface canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.claw-surface canvas:active { cursor: grabbing; }
.claw-badges { position: absolute; inset: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) auto max(12px, env(safe-area-inset-left)); display: flex; align-items: start; gap: 8px; pointer-events: none; }
.claw-badge-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-right: auto; }
.claw-badge-labels > span { padding: 6px 9px; border: 1px solid #c89d615f; border-radius: 6px; background: #0b1928df; color: var(--claw-cream); font-size: .79rem; }
.claw-badges :is(button, .claw-wallet a) { pointer-events: auto; }

.claw-quiet { min-height: 38px; padding: 5px 10px; border: 1px solid var(--claw-rule); border-radius: 6px; background: #17283bf2; color: var(--claw-cream); }
.claw-quiet:hover:not(:disabled) { background: #2e4055; }
.claw-panel { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px clamp(8px, 1.6vw, 22px); min-height: 92px; padding: 12px clamp(12px, 2vw, 28px); border-top: 3px solid var(--claw-gold); background:
  radial-gradient(120% 140% at 50% -40%, #c33a3f80, transparent 60%),
  repeating-linear-gradient(90deg, transparent 0 46px, #f2c4730d 46px 47px),
  linear-gradient(var(--claw-enamel), var(--claw-enamel-deep)); box-shadow: inset 0 1px #ffe3a4a6, inset 0 4px 0 #5a1219, inset 0 5px 0 #e7bd6c59; }
.claw-readout { flex: 1 1 245px; max-width: 320px; min-width: 0; margin-right: auto; }
.claw-readout strong, .claw-readout span { display: block; }
.claw-readout strong { color: #fff3db; font: 1.08rem/1.25 Georgia, serif; }
.claw-readout span { color: #f3d6cf; font-size: .82rem; }
.claw-result { position: absolute; z-index: 4; left: 50%; top: 16%; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 28px); padding: 12px 20px 12px 12px; border: 2px solid var(--claw-bad); border-radius: 16px; background: #120a12eb; box-shadow: 0 12px 30px #000a; transform: translateX(-50%); pointer-events: none; animation: claw-pop .38s cubic-bezier(.2, 1.4, .4, 1) both; }
.claw-result[data-won="true"] { border-color: var(--claw-ok); background: radial-gradient(120% 140% at 20% 0%, #8f1d27f0, #3c0910f2); box-shadow: 0 0 0 4px #ffd36e33, 0 12px 30px #000a; }
.claw-result[data-toy-tier]:not([data-toy-tier=""]) { border-color: var(--toy-tier-edge); background: var(--toy-tier-stage); }
.claw-result [data-result-meta] .game-prize-meta { margin-block: .28rem; }
.claw-result-toy:empty { display: none; }
.claw-result-toy canvas { display: block; width: 92px; height: 92px; }
.claw-result b { display: block; color: #fff; font: 1.45rem/1.1 Georgia, serif; }
.claw-result[data-won="true"] b { color: var(--claw-ok); }
.claw-result [data-result-name] { display: block; margin-top: .2rem; color: #fff; font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; }
.claw-result small { display: block; max-width: 30ch; margin-top: 3px; color: #f1e2d6; font-size: .88rem; }
.claw-result[data-interactive] { cursor: pointer; pointer-events: auto; }
.claw-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: .84rem; }
.claw-result-actions:not(:has(:is(button:not([hidden]), a))) { display: none; }
.claw-result .claw-result-details { min-height: 36px; border: 0; padding: 0; background: transparent; color: #ffe2a0; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.claw-result[data-interactive]:hover .claw-result-details { color: #fff3d4; }
@keyframes claw-pop { from { opacity: 0; transform: translateX(-50%) scale(.8); } }

.claw-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 8px 16px; margin-top: 10px; }
.claw-reward-shelf { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; color: var(--claw-cream); }
.claw-reward-shelf .game-reward-tile { padding: 5px 8px; border: 1px solid var(--claw-rule); border-radius: 6px; background: #182b36; }
.claw-reward-shelf .game-reward-tile strong { font-size: .88rem; }
.claw-reward-shelf .game-reward-tile small { color: var(--claw-text); }
.claw-prize-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(124px, 100%), 1fr)); gap: 5px; padding: 7px 0; }
.claw-prize-list.claw-prize-groups, .claw-prize-subgroups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.claw-prize-subgroups { margin: 6px 0 0 10px; }
.claw-prize-group > summary {
  padding: .65rem .75rem; border: 1px solid #b88d5a80; border-radius: 6px;
  background: #422b24; color: var(--claw-cream); cursor: pointer;
}
.claw-prize-group > summary:hover, .claw-prize-group[open] > summary { background: #5a392b; }
.claw-prize { min-width: 0; display: grid; justify-items: center; gap: 2px; color: var(--claw-cream); background: #163049; border: 1px solid var(--claw-rule); border-radius: 7px; text-align: center; padding: 5px; }
.claw-prize[data-toy-tier] { border-color: var(--toy-tier-edge); background: var(--toy-tier-stage); }
.claw-prize:hover { border-color: #ffdb9f; }
.claw-prize canvas { width: 76px; height: auto; }
.claw-prize > .paint-stencil-sample { width: min(100%, 74px); height: auto; margin-block: 4px; background: #f0debf; border-radius: 4px; }
.claw-prize span { font-size: .81rem; overflow-wrap: anywhere; }
.claw-prize small { color: var(--toy-tier-label, var(--claw-text)); font-size: .69rem; }
.claw-prize .game-prize-meta { justify-content: center; gap: .22rem; }
.claw-prize .game-prize-tag { padding: .18rem .28rem; font-size: .68rem; }
.claw-prize small.claw-prize-effect { padding: .14rem .3rem; border: 1px solid currentColor; border-radius: .25rem; }

@media (max-width: 840px) {
  .claw-panel { flex-wrap: wrap; }
  .claw-readout { flex-basis: 100%; max-width: none; margin-right: 0; text-align: center; }
}
@media (max-width: 600px) {
  .claw-head { gap: 10px 20px; }
  .claw-settings { gap: 6px 11px; }
  .claw-balance { width: 100%; min-height: 28px; }
  .claw-stage { height: clamp(365px, 57dvh, 600px); }
  .claw-panel { padding: 8px 6px; }
  /* Узкий экран: рычаг под левым большим пальцем, купол под правым, поворот и вид посередине. */
  .is-at-cabinet .claw-readout { grid-area: read; text-align: center; }
  .is-at-cabinet .claw-readout strong { font-size: 1rem; }
  .is-at-cabinet .claw-retry, .is-at-cabinet [data-retry] { grid-column: 1 / -1; }
  .claw-result { top: 64px; }
  .claw-result-toy canvas { width: 72px; height: 72px; }
  .claw-result b { font-size: 1.2rem; }
  .claw-badges { flex-wrap: wrap; }
  .claw-badge-labels { flex-basis: 100%; }
}
@media (max-width: 365px) {
  .claw-settings select { min-width: 0; max-width: 100%; }
}


/* The photographed control deck is shared by the moving controls. */
.elka-claw.is-at-cabinet .claw-panel { position: relative; z-index: 4; width: 100%; padding: 0 0 env(safe-area-inset-bottom); min-height: 0; display: block; border: 0; box-shadow: none; background: #510d0c; }
.claw-console {
  --deck: url('../art/style/claw-deck.webp');
  --claw-view-x: 61.2%;
  position: relative;
  height: clamp(80px, min(18.425vw, 26.35dvh), 29dvh);
  width: 100%;
  background: #7d1715 var(--deck) center / 100% 100% no-repeat;
}
.claw-console button { position: absolute; z-index: 1; padding: 0; border: 0; background: transparent; color: inherit; }
.claw-console button:focus-visible { outline: 2px solid #fff3cc; outline-offset: -2px; }
.claw-console button:disabled { opacity: 1; cursor: default; }
.claw-console .claw-grab:disabled:not([data-pressed]) { background: #270c0b27; }
.claw-console-enamel {
  position: absolute; inset: 4.5% 47% 14.5% 28.5%; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.claw-console-enamel::before, .claw-console-enamel::after {
  content: ''; position: absolute; inset-block: 0; width: 57%;
  background: var(--deck) var(--enamel-x) 18.62% / 2190% 129.49% no-repeat;
}
.claw-console-enamel::before { left: 0; --enamel-x: 27%; }
.claw-console-enamel::after {
  right: 0; --enamel-x: 53.9%;
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}
.claw-stick { --claw-x: 0; --claw-z: 0; left: 19.2%; top: -8%; width: 16%; height: 98%; translate: -50% 0; touch-action: none; border-radius: 50%; cursor: grab; }
.claw-stick:active:not(:disabled) { cursor: grabbing; }
.claw-stick-handle {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 49%;
  width: 70%;
  height: 57%;
  background: url('../art/style/claw-joystick.webp') center / 100% 100% no-repeat;
  translate: -50% 3%;
  transform-origin: 50% 97%;
  transform: rotate(calc(var(--claw-x) * 24deg)) scaleY(calc(1 - var(--claw-z) * .19));
  transition: transform 110ms cubic-bezier(.15,.7,.27,1.12);
  filter: drop-shadow(0 2px 2px #25070372);
}
.claw-console .claw-force {
  inset: 52% auto auto 6%; translate: -50% -50%; z-index: 2;
  width: clamp(42px, 9.6%, 112px); aspect-ratio: 306 / 190; min-height: 36px;
  border-radius: 9px; color: #53200e; touch-action: manipulation;
}
.claw-force-dial {
  position: absolute; inset: 50% 0 auto; translate: 0 -50%; aspect-ratio: 306 / 190;
  filter: drop-shadow(0 2px 2px #320906ab);
}
/* The dial and its original nameplate share one crop of the cabinet artwork. */
.claw-force-dial::before, .claw-force-dial::after {
  content: ''; position: absolute; inset: 0;
  background: var(--deck) 38.27% 32.14% / 485.95% 144.21% no-repeat;
}
.claw-force-dial::before {
  clip-path: polygon(1% 60%, 3% 25%, 7% 20%, 17% 12%, 30% 5%, 41% 1.5%, 50% 0%, 61% 1.5%, 73% 5%,
    86% 12%, 95% 20%, 97% 25%, 98.5% 60%, 97% 66%, 93% 70.5%, 7% 70.5%, 3% 68%, 1% 64%);
}
.claw-force-dial::after {
  clip-path: polygon(12% 75.8%, 88% 75.8%, 92% 78%, 94% 83%, 94% 90%, 92% 94%, 88% 97%,
    12% 97%, 8% 94%, 6.5% 90%, 6.5% 83%, 8.5% 78%);
}
.claw-force-dial b {
  position: absolute; z-index: 1; inset: 47% auto auto 50%; translate: -50% -50%;
  font: bold clamp(10px, 1.52vw, 20px)/1 Georgia, serif;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px #ffefb59e;
}
.claw-console .claw-shake {
  inset: 9% auto auto 40.55%; translate: -50% 0;
  display: grid; grid-template-rows: minmax(0, 1fr) max-content; align-items: end; justify-items: center;
  gap: clamp(4px, .82vw, 11px);
  width: clamp(90px, 19%, 162px); height: 74%;
  border-radius: 12px; touch-action: manipulation;
}
.claw-shake-cap {
  position: relative; width: clamp(44px, 65%, 107px); height: min(96%, 91px);
  border: 1px solid #dfa86a; border-radius: 50%;
  background: linear-gradient(155deg, #7a3315 9%, #ffdb98 34%, #b9622a 66%, #4f1b0c 83%, #e8ab59);
  box-shadow: inset 0 1px #ffedbe, 0 3px 4px #3b0d0a;
}
.claw-shake-cap::after {
  content: ''; position: absolute; inset: 4% 10% 18%;
  border-radius: 50%; border: 1px solid #ffdc9fab;
  background: radial-gradient(ellipse 52% 33% at 36% 20%, #fff7dbc7, transparent 76%),
    radial-gradient(ellipse at 37% 21%, #ffefd1, #f8c389 38%, #d28442 67%, #8d401b 94%);
  box-shadow: inset -1px -3px 5px #7336107a, 0 3px 3px #4e1b08a8;
  transition: transform 125ms ease, filter 125ms ease;
}
.claw-shake-label {
  position: relative; display: grid; place-items: center;
  width: 100%; height: clamp(18px, 2.4vw, 35px); border: 1px solid #db9a4f; border-radius: 999px;
  background: linear-gradient(#ffedb9, #ffdb96 22%, #d89c55 75%, #f6c37c 90%, #a45324);
  box-shadow: inset 0 1px #fff7cb, inset 0 -2px #97421777, 0 2px 3px #310607a8;
  color: #4a210d; font: bold clamp(.61rem, 1.21vw, 1.02rem)/1 Georgia, serif;
  letter-spacing: -.015em; text-transform: uppercase; text-shadow: 0 1px #ffdf9a; white-space: nowrap;
}
.claw-shake-label::before, .claw-shake-label::after {
  content: ''; position: absolute; inset-block-start: 50%; translate: 0 -50%;
  width: clamp(3px, .48vw, 7px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 27%, #fff3bc, #d59852 36%, #7e3414 68%, #fcd181);
  box-shadow: 0 1px 1px #7f3a18a6;
}
.claw-shake-label::before { inset-inline-start: 5%; }
.claw-shake-label::after { inset-inline-end: 5%; }
.claw-shake:hover:not(:disabled) .claw-shake-cap::after { filter: brightness(1.09); }
.claw-shake:is([data-pressed], :active:not(:disabled)) .claw-shake-cap::after {
  transform: translateY(8%) scaleY(.93); filter: brightness(.9);
}
.claw-shake:disabled:not([data-pressed]) .claw-shake-cap { filter: saturate(.72) brightness(.84); }
.claw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.claw-camera-tools { display: contents; }
.claw-orbit { inset: 13% auto auto var(--claw-view-x); translate: -50% 0; width: 10.1%; height: max(36px, min(54%, calc(100% - 55px))); border-radius: 47%; }
.claw-orbit > span { display: none; }
.claw-turn-controls { display: contents; }
.claw-turn-caption { display: none; }
.claw-turn[data-turn="-1"] { --claw-turn-x: 53.3%; }
.claw-turn[data-turn="1"] { --claw-turn-x: 68.4%; }
.claw-console .claw-turn {
  inset: 38% auto auto var(--claw-turn-x); translate: -50% -50%;
  display: grid; place-content: center; justify-items: center; gap: 1px;
  width: min(4.1%, 52px); height: clamp(29px, 23%, 51px);
  isolation: isolate; border-radius: 50%; color: #ffe8b7; touch-action: manipulation;
}
.claw-turn::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  border: 1px solid #e6ba76; border-radius: inherit;
  background: linear-gradient(160deg, #792e21, #42150f);
  box-shadow: inset 0 0 0 2px #a86232, inset 0 3px 4px #ffcf7838, 0 3px 4px #3a0c0a;
}
.claw-turn:hover:not(:disabled)::before { filter: brightness(1.17); }
.claw-turn:active:not(:disabled)::before {
  translate: 0 1px; box-shadow: inset 0 1px 5px #34130e, 0 1px 2px #3a0c0a;
}
.claw-console .claw-turn:disabled { opacity: .63; }
.claw-turn kbd { font: bold clamp(8px, .8vw, 11px)/1 Georgia, serif; }
.claw-turn-icon { --turn-stroke: 1.5px; position: relative; width: clamp(12px, 1.6vw, 21px); aspect-ratio: 1; }
.claw-turn-icon::before, .claw-turn-icon::after { content: ''; position: absolute; border: solid var(--turn-stroke) currentColor; }
.claw-turn-icon::before {
  inset: 12% 9% 11%; border-radius: 50%; border-color: currentColor currentColor transparent transparent; rotate: -45deg;
}
.claw-turn-icon::after { inset: 32% auto auto -5%; width: 34%; aspect-ratio: 1; border-width: 0 var(--turn-stroke) var(--turn-stroke) 0; rotate: 45deg; }
.claw-turn[data-turn="1"] .claw-turn-icon { scale: -1 1; }
.claw-grab { inset: 3% auto auto 71%; width: 19.5%; height: 84%; border-radius: 38%; }
.claw-grab-face { position: absolute; inset: 7% 15% 29%; border-radius: 48%; transition: background-color 120ms, box-shadow 120ms; }
.claw-grab:hover:not(:disabled) .claw-grab-face { background-color: #ffe6ad18; }
.claw-grab:active:not(:disabled) .claw-grab-face, .claw-grab[data-pressed] .claw-grab-face { background-color: #61311226; box-shadow: inset 0 5px 9px #5e281844; }
.claw-stick-label, .claw-grab-label { display: none; }
.claw-orbit:is(:hover, [data-pressed]) { outline: 1px solid #f8d69e9c; outline-offset: -2px; }
.claw-console .claw-grab:focus { outline: none; }
.claw-grab:focus-visible:not(:active):not([data-pressed]):not(:disabled) .claw-grab-face { box-shadow: inset 0 0 0 2px #8f5429a8; }
.claw-console .claw-orbit:focus-visible { outline-offset: 0; }
.claw-console .claw-overhead {
  inset: auto auto max(4px, calc(17% - 4px)) var(--claw-view-x); translate: -50% 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center;
  gap: clamp(4px, .7vw, 8px); padding: 3px clamp(4px, .75vw, 9px);
  width: clamp(74px, 17%, 164px); height: clamp(29px, 16%, 34px);
  border: 1px solid #e8ab65; border-radius: 7px;
  background: linear-gradient(#fae3b4, #ddb174);
  box-shadow: inset 0 1px #fff5d8, 0 2px 3px #34090c;
  touch-action: manipulation;
}
.claw-console .claw-overhead:focus-visible { outline: 2px solid #ffd78b; outline-offset: 2px; }
.claw-overhead-label {
  color: #42220f; font: 750 clamp(.68rem, 1.17vw, .92rem)/1.07 Georgia, serif;
  text-align: left;
}
.claw-overhead-switch {
  --track-width: clamp(26px, 4vw, 43px);
  --track-height: clamp(16px, 2.1vw, 24px);
  position: relative; width: var(--track-width); height: var(--track-height);
  border: 1px solid #b97d47; border-radius: 999px;
  background: linear-gradient(#291217, #50252b);
  box-shadow: inset 0 2px 4px #220b0f, 0 1px #f0bc763d;
}
.claw-overhead-switch::after {
  content: ''; position: absolute; inset: 2px auto 2px 2px; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #f3c583;
  background: radial-gradient(circle at 36% 24%, #fff8df, #f8d09d 60%, #be7841);
  box-shadow: 0 1px 3px #2d0b10;
  transition: transform 165ms cubic-bezier(.15,.55,.3,1.3);
}
.claw-console .claw-overhead:hover:not(:disabled) { border-color: #fff1d2; }
.claw-console .claw-overhead[aria-pressed="true"] { background: linear-gradient(#415546, #283a30); }
.claw-overhead[aria-pressed="true"] .claw-overhead-label { color: #fff0cc; }
.claw-overhead[aria-pressed="true"] .claw-overhead-switch {
  border-color: #ffda87; background: linear-gradient(#9b793c, #6a4e28);
  box-shadow: inset 0 1px 3px #3b2b1c;
}
.claw-overhead[aria-pressed="true"] .claw-overhead-switch::after {
  transform: translateX(calc(var(--track-width) - var(--track-height)));
}
.claw-console .claw-overhead:is([data-pressed], :active) {
  box-shadow: inset 0 2px 4px #2c0c13, 0 1px 2px #34090c;
}
.claw-grab-cap {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--deck) center / 100% 100% no-repeat;
}
.claw-console::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  clip-path: ellipse(5.35% 22.8% at 79.55% 28.4%);
  background: radial-gradient(ellipse 5.2% 26% at 79.55% 31%, #9a6b48, #45240e);
  opacity: 0; transition: opacity 115ms;
}
.claw-console:has(.claw-grab:is([data-pressed], :active:not(:disabled)))::before { opacity: 1; transition-duration: 55ms; }
.claw-grab-cap {
  clip-path: ellipse(5.7% 24% at 79.55% 28.4%);
  transform-origin: 79.55% 52.4%;
  transition: transform 165ms cubic-bezier(.15,.55,.3,1.3), filter 155ms;
}
.claw-console:has(.claw-grab:is([data-pressed], :active:not(:disabled))) .claw-grab-cap {
  transform: translateY(2.25%) scaleY(.925);
  filter: brightness(.94);
  transition: transform 75ms ease-out, filter 75ms ease-out;
}

.claw-badges {
  z-index: 5; gap: 7px;
  inset-block-start: max(12px, env(safe-area-inset-top));
}
.claw-badge-labels { align-items: center; gap: 0; }
.claw-badge-labels > :is(span, button) {
  padding: 5px 8px; border: 0; border-radius: 0;
  background: #181113db; color: #f8e6d1; font-size: .73rem;
}
.claw-badge-labels > span:first-child { border-radius: 7px 0 0 7px; }
.claw-badge-labels > :is(button, [data-stage-practice]) { border-left: 1px solid #ebc48b37; border-radius: 0 7px 7px 0; color: #f4cd94; white-space: nowrap; }
.claw-badge-labels > button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.claw-badge-labels > button::after { content: '+'; display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: #e4b9782b; color: #ffe1ab; font-size: .77rem; line-height: 1; }
.claw-badge-labels > button:hover:not(:disabled) { background: #583126; }
.claw-badge-labels > button[data-empty] { background: #633428; color: #ffebc5; }
.claw-badge-labels > span { min-height: 34px; align-content: center; }
.claw-refill {
  width: min(390px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 18px;
  border: 1px solid #b88d5a; border-radius: 12px; background: #291c1a; color: var(--claw-cream);
  box-shadow: 0 15px 50px #10090edb;
}
.claw-refill::backdrop { background: #100b13b8; }
.claw-refill header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.claw-refill h2 { margin: 0; font: 1.65rem/1.1 Georgia, serif; }
.claw-refill .claw-quiet { background: #422b24; }
.claw-refill .claw-quiet:hover:not(:disabled) { background: #5a392b; }
.claw-refill header button { font-size: 1.22rem; width: 38px; }
.claw-refill[open] { position: fixed; inset: 0; margin: auto; overflow: auto; }
.claw-prizes-dialog { width: min(660px, calc(100vw - 28px)); }
.claw-prizes-dialog > p { font-size: .88rem; color: #ead4bb; }
.claw-result-toy > .paint-swatch { display: block; border-radius: .4rem; background: var(--swatch); }
.claw-result-toy > .paint-swatch { width: 3.2rem; height: 2rem; }
.claw-badges :is(.claw-help, .claw-exit, .claw-home) {
  width: max-content; min-height: 34px; padding: 6px 9px; white-space: nowrap;
  border: 1px solid #cfab764c; border-radius: 7px; background: #251817e0;
  color: #fff0d4; font-size: .77rem;
}
.claw-badges .claw-home { border-color: #e9c381; }
.claw-badges :is(.claw-help, .claw-exit, .claw-home):hover { background: #583126; }
.claw-help-dialog dl { display: grid; grid-template-columns: 1fr 1.1fr; gap: 9px; margin: 1rem 0 0; }
.claw-help-dialog dt { font-weight: 650; }
.claw-help-dialog dd { margin: 0; color: #e7d4be; }
.claw-help-dialog p { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid #c89d614f; }

.claw-game-status { position: absolute; z-index: 4; top: calc(46px + env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); width: min(260px,calc(100% - 24px)); pointer-events: none; }
.claw-game-status .claw-readout { margin: 0; padding: 6px 8px; width: fit-content; border: 1px solid #bf986457; border-radius: 7px; background: #251817e8; }
.claw-game-status .claw-readout[data-glass] { border-color: #e6ba82; }
.claw-game-status .claw-readout[data-idle], .claw-stage:has(.claw-result:not([hidden])) .claw-game-status .claw-readout { clip-path: inset(50%); position: absolute; }
.claw-game-status .claw-readout strong { font-size: .85rem; }
.claw-game-status .claw-readout span { font-size: .72rem; color: #efd1ab; margin-top: 2px; }
.claw-game-status .claw-readout span:empty { display: none; }
.claw-game-status [data-retry] { margin-top: 6px; pointer-events: auto; }
.claw-rarity-key {
  position: absolute;
  z-index: 3;
  right: max(8px, env(safe-area-inset-right));
  bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: .28rem .6rem;
  max-width: calc(100% - 16px);
  padding: .3rem .48rem;
  border: 1px solid #bf986457;
  border-radius: 6px;
  background: #251817f2;
  color: #fff3db;
  font-size: .73rem;
  pointer-events: none;
}
.claw-rarity-key span { display: inline-flex; align-items: center; gap: .25rem; }
.claw-rarity-key span::before {
  width: .56rem;
  height: .56rem;
  border: 2px solid var(--toy-tier-label);
  border-radius: 50%;
  content: '';
}
.claw-result { top: calc(48px + env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); transform: none; animation: claw-toast .25s ease both; max-width: min(345px,calc(100vw - 24px)); }
@keyframes claw-toast { from { opacity: 0; transform: translateY(-5px); } }

@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px) {
  .elka-claw.is-at-cabinet .claw-panel {
    --claw-tools-height: 54px;
    padding-top: var(--claw-tools-height);
    background: #2f1211;
  }
  .claw-console { height: clamp(92px, 23vw, 126px); }
  .claw-console-enamel { right: 29.5%; }
  .claw-console .claw-force { left: max(22px, 6%); width: clamp(44px, 9.2%, 53px); min-height: 44px; }
  .claw-force-dial b { font-size: clamp(8px, 2vw, 11px); }
  .claw-stick { left: max(69px, 19.2%); width: max(44px, 15%); }
  .claw-stick-handle { width: 83%; height: 50%; bottom: 43%; }
  .claw-camera-tools {
    position: absolute; inset: auto 0 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center; gap: 5px; height: var(--claw-tools-height); padding: 4px 8px 5px;
    border-bottom: 1px solid #b98151; background: linear-gradient(#491c19, #2f1211);
  }
  .claw-console .claw-camera-tools button {
    position: relative; inset: auto; translate: none;
    display: flex; justify-content: center; align-items: center; gap: 5px;
    width: 100%; height: 44px; padding: 0 4px;
    border: 1px solid #9a6a47; border-radius: 7px; background: linear-gradient(#6c3629, #4a241d);
    box-shadow: inset 0 1px #f4c38a38;
    color: #ffeac3; font: bold clamp(.72rem, 3.28vw, .85rem)/1 Georgia, serif; white-space: nowrap;
  }
  .claw-orbit > span { display: inline; }
  .claw-overhead-label { color: inherit; font: inherit; white-space: nowrap; }
  .claw-overhead-switch { --track-width: 22px; --track-height: 15px; flex: none; }
  .claw-console .claw-overhead[aria-pressed="true"] { border-color: #b88951; }
  .claw-shake-cap { display: none; }
  .claw-shake-label {
    width: auto; height: auto; border: 0; background: none; box-shadow: none; color: inherit;
    font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none;
  }
  .claw-shake-label::before, .claw-shake-label::after { content: none; }
  .claw-console .claw-shake:is([data-pressed], :active:not(:disabled)) { box-shadow: inset 0 2px 4px #2c0c13; }
  .claw-console .claw-shake:disabled:not([data-pressed]) { color: #c4a485; }
  .claw-turn-controls {
    position: absolute; inset: 12% auto auto 45%; translate: -50% 0;
    display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; row-gap: 3px;
    width: clamp(96px, 29%, 138px);
  }
  .claw-console .claw-turn { position: relative; inset: auto; translate: none; width: 44px; height: 44px; }
  .claw-turn::before { inset: 3px; }
  .claw-turn-icon { --turn-stroke: 2px; width: 19px; }
  .claw-turn kbd { display: none; }
  .claw-turn-caption {
    grid-column: 1 / -1; display: block; padding: 3px 7px;
    border: 1px solid #be864d; border-radius: 999px;
    background: linear-gradient(#f7daa3, #d39755);
    color: #47200d; font: bold .64rem/1 Georgia, serif; white-space: nowrap;
  }
  .claw-cabinet-row { grid-template-columns: 1fr; gap: 5px; }
  .claw-cabinet-row h2 { margin-top: 0; }
  .claw-badges { align-items: start; }
  .claw-badge-labels { margin-bottom: 1px; }
  .claw-game-status, .claw-result { top: calc(84px + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) {
  .claw-stick-handle, .claw-shake-cap::after, .claw-grab-face, .claw-grab-cap, .claw-overhead-switch::after, .claw-console::before { transition: none; }
  .claw-result { animation: none; }
}

/* The cabinet's nameplate, selection and payment hardware. */
.claw-badges {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) repeat(5, max-content);
  align-items: start;
  gap: 7px;
}
.claw-carousel {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch;
  min-width: 0; width: min(100%, 430px); justify-self: center; pointer-events: auto;
  border: 1px solid #e8bb7e; border-radius: 9px;
  background: linear-gradient(180deg, #792d38, #461a26 95%);
  box-shadow: inset 0 1px #ffcf9b52, 0 3px 8px #170e17a1;
}
.claw-carousel h2 {
  align-self: center; justify-self: stretch; margin: 0; padding: 5px 4px;
  color: #ffecd2; text-align: center; text-wrap: balance;
  font: normal clamp(1.02rem, 2.45vw, 1.4rem)/1.07 Georgia, serif;
  text-shadow: 0 1px 3px #340d18;
}
.claw-carousel button {
  min-height: 44px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 8px 0 0 8px; border-inline-end: 1px solid #c3956260;
  background: #26111966; color: #f7d39c;
  box-shadow: inset 0 1px #ffd99c30;
}
.claw-carousel button:last-child { border: 0; border-inline-start: 1px solid #c3956260; border-radius: 0 8px 8px 0; }
.claw-carousel button span { font: 1.85rem/.85 Georgia, serif; transform: translateY(-2px); }
.claw-carousel button:hover:not(:disabled) { background: #975343; color: #fff3d4; }
.claw-carousel button:active:not(:disabled) span { transform: translateY(0); }
.claw-badges .claw-exit { min-height: 46px; background: #6a2931; border-color: #d7a76c; }
.claw-badges :is(.claw-home, .claw-help), .claw-badge-labels > :is(button, span), .claw-prizes-open { min-height: 46px; }
.claw-badge-labels > :is(button, span) { border: 1px solid #cfab764c; border-radius: 7px; }
.claw-badge-labels > [data-stage-unlimited] { color: #ffe3a2; border-color: #e3b571; }
.claw-prize > .paint-swatch, .claw-result-toy > .paint-swatch { display: block; width: 3.2rem; height: 2rem; border-radius: .4rem; background: var(--swatch); }
.claw-badge-labels button > span:last-child { display: grid; gap: 1px; text-align: left; }
.claw-badge-labels .ticket-recovery {
  --ticket-recovery-rail: #7f5946;
  justify-content: start;
  gap: .25rem;
  padding: 0 0 .28rem;
  border: 0;
  background: none;
  font-size: .72rem;
}
.claw-badge-labels .ticket-recovery::after { inset: auto 0 .07rem; }
.claw-badge-labels .ticket-recovery .wheel-ticket { display: none; }
.claw-badge-labels .ticket-recovery__time { font-size: .9rem; }
.claw-prizes-open { border-color: #e3b571; background: #573325; color: #ffecd0; }
.claw-badges .claw-stock-refresh {
  display: grid; align-content: center; justify-items: start; gap: 2px; min-height: 46px; padding: 5px 8px;
  white-space: nowrap; border-color: #d7a971; background: #4a2b21; color: #ffe8c7; font-size: .79rem;
}
.claw-badges .claw-stock-refresh:hover:not(:disabled) { background: #65412e; }
.claw-badges .claw-stock-refresh:disabled { opacity: 1; background: #2e211d; color: #ead4b5; }
.claw-refresh-meta { display: flex; gap: .45em; color: #efd0a1; font-size: .66rem; }
.claw-refresh-meta time { font-variant-numeric: tabular-nums; }
.claw-badge-labels > button::after { content: none; }
.claw-stage-tools { display: contents; }
.claw-game-status, .claw-result { top: calc(64px + env(safe-area-inset-top)); }

.claw-hall {
  max-width: 1320px;
  min-height: 86svh;
  padding: clamp(1rem, 3.6vw, 2.65rem);
  background:
    linear-gradient(#21171fc9, #241720f5 54rem, #241720),
    url('../art/style/rooms/courtyard.webp') center top / 100% auto no-repeat #241720;
}
.claw-hall-head, .claw-hall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}
.claw-hall-head { margin-bottom: .85rem; }
.claw-hall-head h1 {
  margin: 0;
  color: #ffeacf;
  font: normal clamp(2.15rem, 5vw, 4.4rem)/1.02 Georgia, serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.claw-hall-balance {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .6rem;
  margin: 0;
  padding: .55rem .8rem;
  border: 1px solid #c6945f;
  border-radius: .55rem;
  background: #422b29;
  color: #fff0cc;
  font-variant-numeric: tabular-nums;
}
.claw-hall-toolbar { margin-bottom: 1rem; }
.claw-hall-toolbar .claw-switch { background: #2e2129; }
.claw-hall-toolbar .claw-switch button[aria-pressed='true'] { background: #6f343c; }
.claw-hall-special, .claw-hall-grid {
  display: grid;
  gap: clamp(.55rem, 1.2vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.claw-hall-special { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.claw-hall-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.claw-hall-collections h2 { margin: 1.35rem 0 .65rem; font: normal clamp(1.5rem, 3vw, 2.1rem)/1.1 Georgia, serif; }
.claw-hall-machine {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  gap: .4rem;
  padding: clamp(.5rem, 1.2vw, 1rem);
  border: 1px solid #a87b596b;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--cabinet-glow) 24%, transparent), transparent 70%),
    linear-gradient(#432938, #2c2029 76%);
  color: #fff1d2;
  text-align: center;
}
.claw-hall-machine:hover:not(:disabled), .claw-hall-machine:focus-visible { border-color: #ffdc93; }
.claw-hall-machine::before {
  position: absolute;
  inset: auto 0 25% 0;
  height: 18%;
  background: radial-gradient(ellipse, #180f19be, transparent 70%);
  content: '';
}
.claw-hall-machine__art {
  position: relative;
  width: min(100%, 5.9rem);
  aspect-ratio: 277 / 500;
  background: url('../art/trees/room-claw.webp') center / contain no-repeat;
  filter: drop-shadow(0 .45rem .35rem #160d16c7);
}
.claw-hall-machine__glass {
  position: absolute;
  inset: 45% 11% 42% 28%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0;
  background: radial-gradient(ellipse at 50% 65%, #25192dcf 36%, transparent 76%);
}
.claw-hall-machine__glass > canvas {
  position: relative;
  width: 37%;
  height: auto;
  margin-inline: -4%;
  filter: drop-shadow(0 2px 3px #20131eac);
}
.claw-hall-machine__glass > canvas:first-child { z-index: 1; order: 1; width: 55%; }
.claw-hall-machine__glass > canvas:last-child { order: 2; }
.claw-hall-machine__copy { position: relative; display: grid; justify-items: center; align-content: end; gap: .32rem; min-width: 0; }
.claw-hall-machine__copy strong { font: 650 clamp(.96rem, 1.35vw, 1.12rem)/1.12 Georgia, serif; text-wrap: balance; }
.claw-hall-machine__stock { color: #f2d5a5; font-size: .75rem; font-weight: 600; }
.claw-hall-machine__style { color: #e9d8d1; font-size: .74rem; line-height: 1.3; }
.claw-hall-machine[data-kind='collection'] {
  border-color: color-mix(in srgb, var(--cabinet-glow) 63%, #3b2630);
  background: radial-gradient(ellipse at 50% 12%, color-mix(in srgb, var(--cabinet-glow) 42%, #1c1825), #271d26 78%);
}
.claw-hall-machine[data-kind='collection'] .claw-hall-machine__art {
  width: 100%; aspect-ratio: auto; height: clamp(5.5rem, 11vw, 8.6rem); background: none;
}
.claw-hall-machine[data-kind='collection'] .claw-hall-machine__glass {
  inset: 0; align-items: center; background: none;
}
.claw-hall-machine[data-kind='collection'] .claw-hall-machine__glass > canvas { width: 38%; max-height: 86%; object-fit: contain; }
.claw-hall-machine[data-kind='collection'] .claw-hall-machine__glass > canvas:first-child { width: 60%; max-height: 100%; }
.claw-hall-machine[data-kind='parcel'] .claw-hall-machine__glass {
  inset: 40% 6.5% 39% 29%;
  background: none;
}
.claw-hall-machine[data-kind='parcel'] .claw-hall-machine__glass::before {
  position: absolute;
  inset: 3% 110% 5% -34%;
  background: url('../art/style/yard-gifts.png') 1% 2% / 535% 228% no-repeat;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 89%);
  filter: brightness(.67);
  content: '';
}
.claw-hall-machine[data-kind='parcel'] .claw-hall-machine__glass .yard-gift-art {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background-size: 300% 270%;
  background-position: 0 7%;
  clip-path: polygon(0 0, 100% 0, 99% 94%, 0 100%);
  box-shadow: inset 0 0 .35rem #261810b3;
}
.claw-hall-machine__play {
  display: inline-grid;
  place-items: center;
  min-width: 5.2rem;
  min-height: 2rem;
  margin-top: .18rem;
  padding: .2rem .65rem;
  border: 1px solid #e5ba7a;
  border-radius: 6px;
  background: #664033;
  color: #ffe9bb;
  font: 750 .82rem/1 system-ui, sans-serif;
}
.claw-hall-machine:is(:hover, :focus-visible) .claw-hall-machine__play,
.claw-hall-machine[data-kind='rare'] .claw-hall-machine__play { background: linear-gradient(#ffe49b, #f8b451); color: #3a230e; }
.claw-hall-machine__last {
  position: absolute;
  inset: .35rem auto auto .38rem;
  padding: .16rem .26rem;
  border: 1px solid #be936483;
  border-radius: 4px;
  background: #261b24f5;
  color: #ffe6b4;
  font-size: .66rem;
}
.claw-hall-special .claw-hall-machine {
  grid-template: auto / minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  text-align: left;
}
.claw-hall-special .claw-hall-machine__art { width: min(100%, 7.3rem); }
.claw-hall-special .claw-hall-machine__copy { justify-self: stretch; justify-items: start; gap: .48rem; }
.claw-hall-special .claw-hall-machine__copy strong { font-size: clamp(1.18rem, 2.1vw, 1.95rem); }
.claw-hall-machine[data-kind='rare'] {
  border-color: #e6b76c;
  background:
    radial-gradient(ellipse at 27% 38%, #eda44f76, transparent 72%),
    linear-gradient(127deg, #652e30, #3e2530 72%);
  box-shadow: inset 0 0 0 1px #ffdb9633, 0 .2rem 1.6rem #ea994327;
}
.claw-hall-machine[data-kind='parcel'] {
  border-color: #ffe298;
  background: radial-gradient(ellipse at 28% 42%, #c78339, #713342 77%);
  box-shadow: inset 0 0 0 1px #ffdc8d9e, 0 0 .9rem #ed9f5447;
}
.claw-hall-machine[data-kind='parcel'] .claw-hall-machine__play { background: #ffe19a; color: #4a2118; }
.claw-hall-machine[data-free] .claw-hall-machine__play {
  min-height: 2.45rem;
  padding-inline: .8rem;
  background: #fff0bc;
  color: #4a2118;
  font-size: .99rem;
  line-height: 1.15;
}
.claw-hall-machine[data-kind='blank'] {
  border-color: #8fcfc3;
  background: radial-gradient(ellipse at 28% 40%, #487873, #233638 77%);
}
.claw-hall-machine[data-kind='blank'] .claw-hall-machine__art { background-image: url('../art/trees/room-claw-blanks.webp'); }
.claw-hall-machine[data-kind='blank'] .claw-hall-machine__stock { color: #d3efde; }
@media (min-width: 860px) {
  .claw-hall-special { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .claw-hall { padding: .8rem; }
  .claw-hall-balance { width: 100%; }
  .claw-hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claw-hall-special .claw-hall-machine { grid-template: auto 1fr / 1fr; text-align: center; }
  .claw-hall-special .claw-hall-machine__art { width: min(100%, 5.8rem); }
  .claw-hall-special .claw-hall-machine__copy { justify-items: center; }
  .claw-hall-special .claw-hall-machine__copy strong { font-size: clamp(.98rem, 3.8vw, 1.32rem); }
  .claw-hall-machine[data-free] .claw-hall-machine__play { padding-inline: .5rem; font-size: .94rem; }
  .claw-hall-special > li:has([data-kind='blank']) { grid-column: 1 / -1; }
  .claw-hall-special .claw-hall-machine[data-kind='blank'] {
    grid-template: auto / minmax(0, 1fr) minmax(0, 2fr);
    text-align: left;
  }
  .claw-hall-machine[data-kind='blank'] .claw-hall-machine__art { width: min(100%, 4.2rem); }
  .claw-hall-machine[data-kind='blank'] .claw-hall-machine__copy { justify-items: start; }
}

.claw-parcel-reveal { position: relative; flex: 0 0 56px; width: 56px; height: 58px; }
.claw-parcel-reveal i { position: absolute; display: block; }
.claw-parcel-reveal i:nth-child(1),
.claw-parcel-reveal i:nth-child(2) {
  left: 7px; right: 7px; bottom: 5px; height: 29px; border-radius: 2px 2px 4px 4px;
  border: 1px solid #ed7778; background: linear-gradient(90deg, transparent 43%, #ffd785 44% 57%, transparent 58%), linear-gradient(120deg, #cf3550, #7d162d);
}
.claw-parcel-reveal i:nth-child(2) { z-index: 1; left: 4px; right: 4px; height: 11px; bottom: 30px; border-radius: 3px; animation: claw-parcel-lid .58s cubic-bezier(.19,.62,.48,1) both; }
.claw-parcel-reveal i:nth-child(2)::before { content: '∞'; position: absolute; left: 0; right: 0; top: -15px; color: #ffda7c; font: 700 24px/1 Georgia, serif; text-align: center; }
.claw-parcel-reveal i:nth-child(3) { top: 23px; left: 27px; width: 4px; height: 5px; border-radius: 1px; background: #ffcf71; box-shadow: -14px 5px #ffb6a1, 11px 1px #ffe5b1, -3px -11px #ffe8ad, 17px -7px #f68c95; animation: claw-parcel-spark .72s .1s ease-out both; }
@keyframes claw-parcel-lid { 0% { transform: none; } 60% { transform: translate(10px, -24px) rotate(24deg); } 100% { transform: translate(15px, -15px) rotate(29deg); } }
@keyframes claw-parcel-spark { from { opacity: 0; transform: translateY(11px) scale(.4); } 40% { opacity: 1; } to { opacity: 0; transform: translateY(-24px) scale(1.4); } }

.is-at-cabinet .claw-stage {
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
  container-type: inline-size;
}
.is-at-cabinet .claw-badges {
  position: relative; inset: auto; grid-area: 1 / 1;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
}
.is-at-cabinet :is(.claw-surface, .claw-game-status, .claw-result, .claw-rarity-key) { grid-area: 2 / 1; }
.is-at-cabinet :is(.claw-game-status, .claw-result) { top: 4px; max-width: calc(100% - 24px); }

@container (max-width: 760px) {
  .claw-badges { grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .claw-carousel { grid-area: 1 / 2; width: 100%; }
  .claw-carousel h2 { overflow-wrap: anywhere; }
  .claw-badges .claw-home { grid-area: 1 / 1; }
  .claw-badges .claw-exit { grid-area: 1 / 3; justify-self: end; }
  .claw-stage-tools { display: flex; grid-area: 2 / 1 / auto / -1; align-items: start; justify-content: space-between; gap: .28rem; }
  .claw-badge-labels { flex-basis: auto; min-width: 0; }
  .claw-badges :is(.claw-home, .claw-exit, .claw-help, .claw-prizes-open, .claw-stock-refresh) { min-width: 44px; min-height: 44px; }
}
@container (max-width: 510px) {
  .claw-stage-tools { display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; }
  .claw-badge-labels .ticket-recovery__lead { display: none; }
  .claw-badges .claw-stock-refresh { grid-column: 1 / -1; justify-self: start; }
}
@container (max-width: 370px) {
  .claw-badges { gap: 4px; }
  .claw-badges :is(.claw-exit, .claw-help), .claw-badge-labels > :is(button, span) { padding-inline: 5px; }
  .claw-badges .claw-home { width: 44px; padding: 0; font-size: 0; }
  .claw-badges .claw-home::before { content: '←'; font-size: 1.15rem; }
  .claw-carousel h2, .claw-badges .claw-help { font-size: .82rem; }
  .claw-badge-labels > button {
    display: grid;
    grid-template-columns: max-content auto;
    align-content: center;
    gap: .15rem .27rem;
    padding-inline: 5px;
  }
  .claw-badge-labels button > .wheel-ticket { width: .88rem; }
  .claw-badge-labels button > span:last-child { display: contents; }
  .claw-badge-labels .ticket-recovery { grid-column: 1 / -1; }
  .claw-badge-labels .ticket-recovery__time { font-size: .83rem; }
}

@media (max-width: 760px), (max-height: 500px) {
  body:has(.elka-claw.is-at-cabinet) { grid-template-rows: minmax(0, 1fr); padding-bottom: 0; }
  body:has(.elka-claw.is-at-cabinet) > .shell-head { display: none; }
  .claw-refill header button { width: 44px; min-height: 44px; }
}

@media (orientation: landscape) and (max-height: 500px),
  (orientation: landscape) and (any-pointer: coarse) and (max-width: 1440px) and (max-height: 760px) {
  .elka-claw.is-at-cabinet .claw-frame {
    width: min(100%, 950px);
    grid-template: minmax(0, 1fr) / minmax(0, 1fr) minmax(168px, 26%);
  }
  .elka-claw.is-at-cabinet .claw-panel {
    display: grid; align-items: center;
    padding: max(.45rem, env(safe-area-inset-top)) max(.45rem, env(safe-area-inset-right))
      max(.45rem, env(safe-area-inset-bottom)) .45rem;
    border-left: 1px solid #bd8a55; background: linear-gradient(#52262a, #351616);
  }
  .claw-console {
    display: grid; gap: .3rem; height: auto;
    grid-template: auto auto auto auto / repeat(2, minmax(0, 1fr));
    grid-template-areas: 'stick grab' 'left right' 'orbit overhead' 'shake force';
    background: none;
  }
  .claw-console :is(.claw-camera-tools, .claw-turn-controls) { display: contents; }
  .claw-console :is(.claw-grab-cap, .claw-console-enamel, .claw-turn-caption, .claw-shake-cap),
  .claw-console::before { display: none; }
  .claw-console button, .claw-console .claw-camera-tools button, .claw-console .claw-turn {
    position: relative; inset: auto; translate: none;
    width: 100%; height: auto; min-height: 44px;
    display: grid; place-content: center; padding: .23rem;
    border: 1px solid #bb8b63; border-radius: 7px;
    background: #522a25; color: #ffecd0;
    font: 700 .73rem/1.15 system-ui, sans-serif;
    white-space: normal;
  }
  .claw-console .claw-stick { grid-area: stick; min-height: 72px; align-content: end; }
  .claw-stick-handle { top: 3px; bottom: auto; height: 44px; width: 34px; }
  .claw-stick-label, .claw-grab-label, .claw-orbit > span { display: inline; }
  .claw-console .claw-grab { grid-area: grab; min-height: 72px; background: #f4d395; color: #4c280f; }
  .claw-console .claw-grab:disabled:not([data-pressed]) { background: #b7a481; }
  .claw-grab-face { inset: 3px; border-radius: 5px; }
  .claw-console .claw-turn[data-turn='-1'] { grid-area: left; }
  .claw-console .claw-turn[data-turn='1'] { grid-area: right; }
  .claw-turn::before, .claw-turn kbd { display: none; }
  .claw-turn-icon { width: 19px; }
  .claw-console .claw-orbit { grid-area: orbit; }
  .claw-console .claw-overhead { grid-area: overhead; }
  .claw-overhead-label { color: inherit; font: inherit; white-space: normal; }
  .claw-overhead-switch { display: none; }
  .claw-console .claw-shake { grid-area: shake; }
  .claw-shake-label { width: auto; height: auto; border: 0; background: none; box-shadow: none; color: inherit; font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; }
  .claw-shake-label::before, .claw-shake-label::after { content: none; }
  .claw-console .claw-force { grid-area: force; inset: auto; translate: none; width: 100%; aspect-ratio: auto; }
  .claw-force-dial { position: relative; inset: auto; translate: none; width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .claw-parcel-reveal i { animation-duration: 1ms; animation-delay: 0ms; }
}

@media (prefers-reduced-motion: no-preference) {
  .claw-result[data-parcel] > :is(.claw-result-toy, span:last-child) { animation: claw-parcel-contents .3s .33s ease-out both; }
}
@keyframes claw-parcel-contents { from { opacity: 0; transform: translate(-6px, 5px); } }

.claw-coach-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(70px, 23vw, 104px);
  gap: 16px 10px;
  width: min(460px, calc(100vw - 28px));
  align-items: center;
  padding: clamp(16px, 4vw, 25px);
  background: #2e201b;
}
.claw-coach-dialog:has(.claw-coach-art:empty) { grid-template-columns: minmax(0, 1fr); }
.claw-coach-art:empty { display: none; }
.claw-coach-copy { grid-area: 1 / 1; }
.claw-coach-copy h2 { color: #ffe3af; font-size: clamp(1.55rem, 5vw, 2rem); }
.claw-coach-copy p { margin: 8px 0 0; color: #f5dfc6; font-size: .91rem; line-height: 1.45; }
.claw-coach-art {
  grid-area: 1 / 2;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, #895631, transparent);
}
.claw-coach-art > * { width: 100%; height: auto; filter: drop-shadow(0 5px 5px #0e0708a0); }
.claw-coach-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.claw-coach-primary {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #ffd798;
  border-radius: 7px;
  background: #f4cb86;
  color: #301c16;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.claw-coach-primary:hover:not(:disabled) { background: #ffdda6; }
.claw-coach-dialog button:focus-visible, .claw-coach-panel button:focus-visible, .claw-coach-primary:focus-visible {
  outline: 2px solid #fff0cc;
  outline-offset: 3px;
}
.claw-coach-actions .claw-coach-primary { flex: 1 1 210px; }
.claw-coach-actions .claw-quiet { min-height: 44px; flex: 1 0 auto; }
.claw-help-dialog [data-coach-open] { margin-top: 12px; }

.claw-coach-overlay {
  --tour-night: #142823;
  --tour-ink: #fff3da;
  --tour-title: Georgia, 'Times New Roman', serif;
  --tour-dim: #0d1113a3;
}
body:has(.elka-claw[data-coach]) > .shell-head { filter: brightness(.46); }
.claw-coach-overlay .claw-coach-panel {
  width: min(292px, calc(100vw - 28px));
  gap: 7px;
  padding: 14px 16px 7px;
  border-color: #ba965e;
  border-radius: 12px;
  box-shadow: 0 8px 24px #0e150dbb, inset 0 0 0 3px #162822bf;
}
.claw-coach-overlay .claw-coach-panel h2 { font-size: clamp(1.35rem, 3.2vw, 1.5rem); text-wrap: pretty; }
.claw-coach-overlay .claw-coach-panel p { font-size: .9rem; text-wrap: pretty; }
.claw-coach-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e2c99d;
  font: 600 .75rem/1.3 system-ui, sans-serif;
}
.elka-claw .claw-coach-panel [data-coach-exit] {
  min-height: 34px;
  padding: 0 0 0 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: #be9e72;
  text-underline-offset: .2em;
}
.claw-coach-panel [data-coach-exit]:disabled { opacity: .46; }
.claw-coach-overlay .tour-outlines {
  fill: none;
  stroke: #ffd35f;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px #3a210ce6) drop-shadow(0 0 5px #ffbd3c70);
}
.elka-claw[data-coach] [data-readout] { clip-path: inset(50%); position: absolute; }
.claw-coach-glass {
  position: absolute;
  grid-area: 2 / 1;
  z-index: 3;
  width: 72px;
  height: 92px;
  translate: -50% -50%;
  pointer-events: none;
}
.claw-coach-pane { stroke: #dcfcf3bf; stroke-width: 1.7; stroke-linecap: round; }
.claw-coach-flash { filter: drop-shadow(0 0 8px #fff3ba) drop-shadow(0 0 17px #e6fff7); opacity: .65; }
.claw-coach-glass span {
  position: absolute;
  top: 9px;
  left: 49px;
  padding: 4px 8px;
  border: 1px solid #97c4bd;
  border-radius: 5px;
  background: #193132;
  box-shadow: 0 3px 8px #081616aa;
  color: #d7f4ed;
  font: 700 .75rem/1.2 system-ui, sans-serif;
}
.claw-coach-glass[data-left] span { right: 49px; left: auto; }
.mobile-layout .elka-claw[data-coach] .claw-overhead[aria-pressed='true'] .claw-overhead-label { color: inherit; }
@media (orientation: landscape) and (max-height: 500px) {
  .claw-coach-overlay .tour-cue[data-gesture='tap'] { width: 3.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .claw-coach-overlay:not([hidden]) > .tour-shade { animation: claw-coach-shade 220ms ease-out both; }
  .claw-coach-overlay .tour-outlines { animation: claw-coach-outline 1.45s ease-in-out 3; }
  .claw-coach-glass:not([hidden]) .claw-coach-flash { animation: claw-coach-flash 620ms ease-out; }
}
@keyframes claw-coach-shade { from { opacity: .28; } to { opacity: 1; } }
@keyframes claw-coach-outline { 0%, 100% { opacity: .82; } 52% { opacity: 1; } }
@keyframes claw-coach-flash {
  from { opacity: 1; }
  to { opacity: .65; }
}
