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

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

.wrap {
  display: grid;
  place-items: center;
  gap: 16px;
}

.folder {
  width: 220px;
}

.tab {
  --tab-w: 88px;
  position: relative;
  height: 32px;
  width: 156px;
  clip-path: inset(0 calc(156px - var(--tab-w)) 0 0);
  background: #c93000;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.tabLabel {
  color: #fff7e6;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.body {
  height: 128px;
  border-radius: 0 16px 16px 16px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  display: grid;
  place-items: center;
}

.cardMark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 8px solid rgba(201, 48, 0, 0.55);
}

.switchRow {
  display: flex;
  gap: 8px;
}

.switchRow button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.14);
  color: #fff7e6;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease-out;
}
.switchRow button:hover {
  background: rgba(255, 247, 230, 0.24);
}
.switchRow button:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .folder {
    width: 180px;
  }
  .tab {
    width: 128px;
    clip-path: inset(0 calc(128px - var(--tab-w)) 0 0);
    height: 28px;
  }
  .body {
    height: 100px;
  }
  .cardMark {
    width: 40px;
    height: 40px;
    border-width: 6px;
  }
  .switchRow button {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .switchRow button {
    transition: none;
  }
}
