html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.rv {
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  width: min(320px, 92vw);
  padding: 8px;
  border: 1px solid rgb(100%, 46.1960784314%, 30.8862745098%);
  border-radius: 16px;
  background: #ff4d1f;
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.rv__h {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #17141a;
}

.rv__g {
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid rgb(100%, 46.1960784314%, 30.8862745098%);
  border-radius: 8px;
  background: transparent;
  transition: border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rv__g.is-edit {
  border-color: #fff7e6;
  background: rgb(100%, 36.862745098%, 19.9607843137%);
  animation-name: rv-lift;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
}

@keyframes rv-lift {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
.rv__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
}

.rv__name {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #17141a;
}

.rv__pen {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(100%, 46.1960784314%, 30.8862745098%);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 247, 230, 0.72);
  cursor: pointer;
  transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rv__pen svg {
  width: 12px;
  height: 12px;
}

.rv__pen:hover {
  border-color: #fff7e6;
  color: #fff7e6;
}

.rv__pen:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 1px;
}

.rv__g.is-edit .rv__pen {
  background: #fff7e6;
  border-color: #fff7e6;
  color: #ff4d1f;
}

.rv__kv {
  display: grid;
  margin: 0;
}

.rv__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: baseline;
}

.rv__k {
  font-size: 11px;
  color: #17141a;
}

.rv__dd {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  color: #fff7e6;
}

.rv__val {
  color: #17141a;
  border-radius: 4px;
  transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rv__inp {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid #fff7e6;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 247, 230, 0.14);
  color: #17141a;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.4;
}

.rv__inp:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 1px;
}

@keyframes rv-lift-1 {
  0%, 4% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.04);
  }
  16%, 100% {
    transform: scale(1);
  }
}
@keyframes rv-lift-2 {
  0%, 32% {
    transform: scale(1);
  }
  38% {
    transform: scale(1.04);
  }
  44%, 100% {
    transform: scale(1);
  }
}
@keyframes rv-lift-3 {
  0%, 60% {
    transform: scale(1);
  }
  66% {
    transform: scale(1.04);
  }
  72%, 100% {
    transform: scale(1);
  }
}
@keyframes rv-edit-1 {
  0%, 18% {
    border-color: rgb(100%, 46.1960784314%, 30.8862745098%);
    background: transparent;
  }
  19%, 100% {
    border-color: #fff7e6;
    background: rgb(100%, 36.862745098%, 19.9607843137%);
  }
}
@keyframes rv-edit-2 {
  0%, 48% {
    border-color: rgb(100%, 46.1960784314%, 30.8862745098%);
    background: transparent;
  }
  49%, 100% {
    border-color: #fff7e6;
    background: rgb(100%, 36.862745098%, 19.9607843137%);
  }
}
@keyframes rv-edit-3 {
  0%, 78% {
    border-color: rgb(100%, 46.1960784314%, 30.8862745098%);
    background: transparent;
  }
  79%, 100% {
    border-color: #fff7e6;
    background: rgb(100%, 36.862745098%, 19.9607843137%);
  }
}
@keyframes rv-pen-1 {
  0%, 18% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  19%, 100% {
    background: #fff7e6;
    color: #ff4d1f;
  }
}
@keyframes rv-pen-2 {
  0%, 48% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  49%, 100% {
    background: #fff7e6;
    color: #ff4d1f;
  }
}
@keyframes rv-pen-3 {
  0%, 78% {
    background: transparent;
    color: rgba(255, 247, 230, 0.72);
  }
  79%, 100% {
    background: #fff7e6;
    color: #ff4d1f;
  }
}
@keyframes rv-field-1 {
  0%, 18% {
    background: transparent;
    box-shadow: none;
  }
  19%, 100% {
    background: rgba(255, 247, 230, 0.14);
    box-shadow: 0 1px 0 #fff7e6;
  }
}
@keyframes rv-field-2 {
  0%, 48% {
    background: transparent;
    box-shadow: none;
  }
  49%, 100% {
    background: rgba(255, 247, 230, 0.14);
    box-shadow: 0 1px 0 #fff7e6;
  }
}
@keyframes rv-field-3 {
  0%, 78% {
    background: transparent;
    box-shadow: none;
  }
  79%, 100% {
    background: rgba(255, 247, 230, 0.14);
    box-shadow: 0 1px 0 #fff7e6;
  }
}
.rv.is-demo .rv__g[data-g="1"] {
  animation-name: rv-lift-1, rv-edit-1;
}
.rv.is-demo .rv__g[data-g="2"] {
  animation-name: rv-lift-2, rv-edit-2;
}
.rv.is-demo .rv__g[data-g="3"] {
  animation-name: rv-lift-3, rv-edit-3;
}
.rv.is-demo .rv__g {
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), steps(1, end);
  animation-iteration-count: infinite, infinite;
}
.rv.is-demo .rv__g[data-g="1"] .rv__pen {
  animation-name: rv-pen-1;
}
.rv.is-demo .rv__g[data-g="2"] .rv__pen {
  animation-name: rv-pen-2;
}
.rv.is-demo .rv__g[data-g="3"] .rv__pen {
  animation-name: rv-pen-3;
}
.rv.is-demo .rv__pen {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.rv.is-demo .rv__g[data-g="1"] .rv__val {
  animation-name: rv-field-1;
}
.rv.is-demo .rv__g[data-g="2"] .rv__val {
  animation-name: rv-field-2;
}
.rv.is-demo .rv__g[data-g="3"] .rv__val {
  animation-name: rv-field-3;
}
.rv.is-demo .rv__val {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .rv {
    padding: 8px;
    gap: 4px;
  }
  .rv__g {
    padding: 4px;
  }
  .rv__top {
    margin-bottom: 4px;
  }
  .rv__pen {
    width: 16px;
    height: 16px;
  }
  .rv__pen svg {
    width: 10px;
    height: 10px;
  }
  .rv__row {
    grid-template-columns: 52px 1fr;
    gap: 4px;
  }
  .rv__name, .rv__k, .rv__dd, .rv__inp {
    font-size: 10px;
  }
  .rv__kv .rv__row:nth-child(2) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rv.is-demo .rv__g,
  .rv.is-demo .rv__pen,
  .rv.is-demo .rv__val {
    animation: none !important;
    transform: none !important;
  }
  .rv.is-demo .rv__g[data-g="1"] {
    border-color: #fff7e6 !important;
    background: rgb(100%, 36.862745098%, 19.9607843137%) !important;
  }
  .rv.is-demo .rv__g[data-g="1"] .rv__pen {
    background: #fff7e6 !important;
    border-color: #fff7e6 !important;
    color: #ff4d1f !important;
  }
  .rv.is-demo .rv__g[data-g="1"] .rv__val {
    background: rgba(255, 247, 230, 0.14) !important;
    box-shadow: 0 1px 0 #fff7e6 !important;
  }
}
