:root {
  color-scheme: light;
  font-family: -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  color: #302d28;
  background: #faf8f3;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,input,select {
  font: inherit;
}

button,select {
  color: inherit;
}

button,select {
  min-height: 44px;
  border: 1px solid #d9d5ca;
  border-radius: 12px;
  background: #fffdf8;
  padding: 9px 16px;
}

button {
  cursor: pointer;
  transition: background .15s,border-color .15s;
}

button:hover {
  border-color: #8b7a60;
}

button[aria-pressed=true] {
  background: #3e493c;
  color: #fffdf8;
  border-color: #3e493c;
}

button:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #7c9474;
  outline-offset: 3px;
}

button:disabled,fieldset:disabled {
  cursor: wait;
}

main {
  max-width: 1120px;
  margin: 0 auto;
}

.viewer {
  height: 58vh;
  height: 58svh;
  min-height: 310px;
  max-height: 720px;
  background: #e9eeea;
  position: relative;
  overflow: hidden;
}

#canvas-host {
  height: 100%;
  width: 100%;
}

#canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.notice {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #e9eeea;
  color: #4d594b;
}

.loader {
  height: 20px;
  width: 20px;
  border: 2px solid #bdc8ba;
  border-top-color: #4d594b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  background: #e9eeea;
}

.fallback img {
  width: 100%;
  height: calc(100% - 60px);
  object-fit: contain;
  min-height: 0;
}

.fallback p {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
  margin: 12px 0 0;
}

.content {
  padding: 24px 22px 32px;
}

.intro {
  max-width: 850px;
  margin-bottom: 24px;
}

.intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.intro .honest {
  margin-top: 8px;
  font-size: 12px;
  color: #787266;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset:disabled {
  opacity: .55;
}

.control-block {
  border-top: 1px solid #e4e0d6;
  padding: 18px 0;
}

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

.row>label {
  font-size: 14px;
  font-weight: 600;
}

.motion button {
  min-width: 76px;
}

input[type=range] {
  width: 100%;
  height: 32px;
  margin: 12px 0 0;
  accent-color: #4d5f45;
  cursor: ew-resize;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: #878071;
  font-size: 12px;
}

.leathers {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin-top: 16px;
}

.leather-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}

.swatch {
  display: inline-block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #0002;
  background: #80563e;
}

.leather-status {
  font-size: 12px;
  line-height: 1.6;
  min-height: 20px;
  margin: 12px 0 0;
  color: #726955;
}

.views {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.views button {
  font-size: 13px;
  padding: 9px 14px;
}

.outline {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.outline input {
  width: 18px;
  height: 18px;
  accent-color: #4d5f45;
  margin: 0;
}

.bottom-row {
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none!important;
}

@media(min-width:700px) {
  main {
    padding: 26px 24px;
  }
  .viewer {
    border-radius: 24px;
    height: 59vh;
    height: 59svh;
  }
  .content {
    padding: 24px 10px;
  }
  .leathers {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .intro p {
    font-size: 16px;
  }
  .intro .honest {
    font-size: 13px;
  }
}

@media(max-width:360px) {
  .content {
    padding-inline: 15px;
  }
  .views {
    gap: 4px;
  }
  .views button {
    padding-inline: 10px;
  }
  .bottom-row {
    gap: 8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .loader {
    animation: none;
  }
  button {
    transition: none;
  }
}
