body {
  background: #101925;
  color: #eee5d7;
}
.gift-shell {
  max-width: 1250px;
  margin: auto;
  padding: 20px 30px 24px;
}
.gift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 8px 12px;
}
.gift-header h1 {
  font:
    400 32px/1.15 Georgia,
    serif;
  letter-spacing: -0.7px;
  margin: 0 0 7px;
}
.gift-header p {
  font-size: 14px;
  color: #b5bac2;
  margin: 0;
  line-height: 1.5;
}
.gift-header .quiet {
  color: #d7dedf;
  border-color: #ffffff28;
  white-space: nowrap;
}
.claw-stage {
  height: clamp(390px, 60dvh, 730px);
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #101925;
  border: 1px solid #ffffff13;
}
#claw-viewport {
  width: 100%;
  height: 100%;
  position: relative;
}
#claw-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#claw-viewport .scene-sound {
  display: none;
}
.claw-loading {
  position: absolute;
  inset: 45% 0;
  text-align: center;
  color: #c4bcae;
}
.claw-views {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 6px;
}
.claw-views button {
  background: #15232edb;
  color: #d9e4e5;
  border: 1px solid #ffffff28;
  padding: 9px 14px;
  border-radius: 22px;
  font-size: 11px;
  min-height: 36px;
}
.claw-views button:hover {
  background: #384b56;
}
#claw-coordinates {
  position: absolute;
  right: 20px;
  top: 28px;
  color: #acbec4;
  font: 11px monospace;
  pointer-events: none;
}
.claw-camera-tip {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #a7b8bd;
  pointer-events: none;
}
.claw-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b152248;
  pointer-events: none;
}
.claw-start[hidden] {
  display: none;
}
.claw-start button {
  pointer-events: auto;
  border-radius: 30px;
  padding: 15px 42px;
  background: #f0d6a2;
  color: #29383d;
  border: 0;
  box-shadow: 0 8px 35px #0007;
}
.claw-console {
  text-align: center;
  padding: 10px 0 0;
}
#machine-status {
  min-height: 24px;
  font:
    13px/1.6 "Trebuchet MS",
    sans-serif;
  color: #dfd3b9;
}
.claw-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 6px 0;
}
.claw-inputs button {
  touch-action: none;
}
#joystick {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b404c, #162734 70%);
  border: 1px solid #72929b6b;
  position: relative;
  touch-action: none;
  box-shadow: inset 0 5px 15px #0004;
  cursor: grab;
  user-select: none;
}
#joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #f6d39f, #a67557);
  border: 2px solid #dcc49a;
  box-shadow: 0 7px 10px #0006;
  pointer-events: none;
}
.joystick-guide {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  color: #667d8a;
  font: 65px monospace;
  opacity: 0.45;
}
.claw-dpad {
  display: grid;
  grid-template-columns: repeat(3, 35px);
  grid-template-rows: repeat(2, 35px);
  gap: 4px;
}
.claw-dpad button {
  border: 1px solid #ffffff2a;
  background: #263c49;
  color: #e1ddd1;
  border-radius: 9px;
  font-size: 19px;
}
.claw-dpad button:first-child {
  grid-column: 2;
}
.claw-dpad button:nth-child(2) {
  grid-column: 1;
}
.claw-dpad button:active {
  background: #506872;
}
.claw-drop {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #c37d87;
  color: #fff1de;
  border: 5px solid #824853;
  font:
    bold 14px "Trebuchet MS",
    sans-serif;
  box-shadow: 0 5px 0 #502f3c;
}
.claw-drop:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #502f3c;
}
.claw-drop:disabled,
.claw-dpad button:disabled {
  opacity: 0.35;
}
.claw-control-tip {
  font-size: 11px;
  color: #92a6af;
  margin: 8px 0 12px;
}
.gift-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid #ffffff19;
  padding-top: 12px;
  gap: 20px;
}
.gift-bottom .collection {
  margin: 0;
  max-width: none;
}
.collection summary {
  cursor: pointer;
  font-size: 12px;
  color: #c7d1d4;
}
.collection summary span {
  margin-left: 18px;
  color: #dcc9a7;
}
.gift-bottom .text-button {
  margin: 0;
  color: #dbc9a5;
  font-size: 12px;
}
.gift-bottom .shelf button {
  background: #273947;
  border-color: #50616b;
}
.gift-bottom .shelf button.collected {
  background: #536864;
}
.gift-bottom #shelf-caption {
  display: block;
  color: #a8b6bd;
  font-size: 11px;
}
dialog {
  color: var(--ink);
}
@media (max-width: 720px) {
  .gift-shell {
    padding: 16px 12px;
  }
  .gift-header {
    padding: 0 3px 14px;
    gap: 8px;
    align-items: flex-start;
  }
  .gift-header h1 {
    font-size: 25px;
    letter-spacing: -0.6px;
  }
  .gift-header p {
    font-size: 12px;
    max-width: 250px;
  }
  .gift-header .quiet {
    font-size: 10px;
    padding: 7px 9px;
  }
  .claw-stage {
    height: max(330px, calc(100dvh - 310px));
    border-radius: 14px;
  }
  .claw-views {
    top: 12px;
    left: 10px;
    right: 10px;
    justify-content: center;
  }
  .claw-views button {
    padding: 7px 11px;
    font-size: 10px;
    min-height: 32px;
  }
  #claw-coordinates {
    top: 57px;
    right: 14px;
    font-size: 9px;
  }
  .claw-inputs {
    gap: 15px;
  }
  #joystick {
    width: 95px;
    height: 95px;
  }
  .claw-drop {
    width: 72px;
    height: 72px;
  }
  .claw-control-tip {
    font-size: 9px;
  }
  .gift-bottom .collection {
    width: auto;
  }
  .gift-bottom .text-button {
    font-size: 11px;
    white-space: nowrap;
  }
  #machine-status {
    font-size: 12px;
  }
  .gift-bottom .shelf {
    gap: 7px;
  }
  .gift-bottom .shelf button {
    width: 38px;
    height: 38px;
  }
  .gift-bottom {
    gap: 10px;
  }
}

html {
  background: #101925;
}
body {
  min-height: 100dvh;
}
.gift-shell {
  font-family: "Trebuchet MS", sans-serif;
}
#joystick {
  overflow: hidden;
}
