@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root {
  font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
  color: #173f3e;
  background: #f6f5ef;
  font-synthesis: none;
  font-size: 14px;
  --line: #dcded1;
  --muted: #72817b;
  --green: #173f3e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 6px;
  padding: 9px 14px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #e9ede2;
  border-color: #aab5a6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #bf784b;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button[aria-pressed='true'] {
  background: #e6ebdd;
  border-color: #9aac93;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff9e9;
  min-width: 125px;
}
a {
  color: inherit;
  text-decoration: none;
}
main {
  max-width: 1840px;
  margin: auto;
  padding: 34px 44px 22px;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.brand {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}
.brand span {
  margin-left: 7px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8a907b;
  margin: 28px 0 9px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.5px;
  font-weight: 600;
  margin: 0;
}
h1 span {
  font-weight: 400;
  color: #64766c;
}
.intro {
  word-break: keep-all;
  color: var(--muted);
  font-size: 12px;
  margin: 11px 0 0;
}
.edition {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #88907c;
}
.edition b {
  font-weight: 400;
  font-size: 74px;
  line-height: 1;
  color: #bfc9b2;
  letter-spacing: -5px;
  padding-right: 5px;
}
.transport {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px 22px 14px;
}
.transport-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.playback {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.check input {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
}
.speed {
  display: flex;
  align-items: center;
  gap: 14px;
}
.speed > label {
  font-size: 11px;
  white-space: nowrap;
}
.speed output {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 700;
  min-width: 46px;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.speed > input {
  width: 135px;
}
.speed-presets {
  display: flex;
  gap: 3px;
}
.speed-presets button {
  padding: 6px 10px;
  font-size: 11px;
}
input[type='range'] {
  accent-color: #547362;
  height: 5px;
  cursor: pointer;
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 22px;
}
#time {
  font-size: 12px;
  min-width: 91px;
  align-self: flex-start;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
#time small {
  font-size: 10px;
  color: #889387;
}
.timeline {
  flex: 1;
  min-width: 0;
}
.timeline > input {
  display: block;
  width: 100%;
  margin: 4px 0 0;
}
.phase-buttons {
  position: relative;
  height: 28px;
  padding-top: 8px;
}
.phase-buttons button {
  position: absolute;
  transform: translateX(-50%);
  background: none;
  border: 0;
  font-size: 10px;
  padding: 3px 0;
  color: #899382;
}
.phase-buttons button:first-child {
  transform: none;
}
.phase-buttons button.impact {
  color: #b16c3f;
}
.phase-buttons span {
  font-size: 9px;
  margin-left: 5px;
  opacity: 0.7;
}
.phase {
  color: #607362;
  font-size: 11px;
  text-align: center;
  min-width: 60px;
  padding: 6px 8px;
  background: #edf0e6;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: -5px;
}
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 12px;
}
.views {
  display: flex;
  gap: 5px;
}
.views button {
  font-size: 11px;
  padding: 6px 15px;
  background: transparent;
}
.views button[aria-pressed='true'] {
  background: #e6ebdd;
}
.view-extras {
  display: flex;
  align-items: center;
  gap: 18px;
}
.view-extras button {
  font-size: 11px;
  padding: 6px 12px;
}
.hint {
  font-size: 10px;
  color: #8d9687;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf7;
  overflow: hidden;
  position: relative;
}
.card-heading {
  position: absolute;
  top: 15px;
  left: 17px;
  right: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}
.card-number {
  font-size: 12px;
  color: #788671;
}
.card-code {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #929b88;
}
.stage {
  height: 370px;
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, #fffefa 0%, #f1f0e8 80%);
}
.stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.stage .loading {
  position: absolute;
  inset: 45% 0 auto;
  text-align: center;
  color: #8c967f;
  font-size: 11px;
  letter-spacing: 2px;
  pointer-events: none;
}
.card-content {
  padding: 19px 18px 16px;
  border-top: 1px solid var(--line);
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0;
  font-weight: 600;
}
.color-chips {
  display: flex;
  gap: 4px;
}
.color-chips i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #0000000d;
}
.card-content p {
  font-size: 10px;
  color: #86907c;
  margin: 7px 0 17px;
  white-space: normal;
  line-height: 1.6;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-actions a {
  font-size: 11px;
  border-bottom: 1px solid #9ba995;
  padding: 5px 0;
}
.card-actions a span {
  font-size: 9px;
  color: #8b967e;
  margin-left: 4px;
}
.card-actions button {
  font-size: 10px;
  padding: 6px 10px;
}
.cards.focused {
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: auto;
}
.cards.focused .card:not(.selected) {
  display: none;
}
.cards.focused .stage {
  height: 570px;
}
.cards.focused .card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cards.focused .card-title {
  gap: 25px;
}
.cards.focused .card-content p {
  margin: 0;
  flex: 1;
}
.cards.focused .card-actions button {
  display: none;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #84917b;
  margin-top: 15px;
}
footer p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
footer p:last-child {
  font-size: 9px;
  letter-spacing: 0.4px;
}
.status-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #bba475;
}
.status-dot.ready {
  background: #7d9769;
}
.status-dot.error {
  background: #bf6543;
}
.footnote {
  font-size: 10px;
  color: #909985;
  line-height: 1.6;
  margin-top: 18px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1700px) {
  .stage {
    height: 430px;
  }
}
@media (max-width: 1200px) {
  main {
    padding: 25px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stage {
    height: 410px;
  }
  .speed {
    gap: 9px;
  }
  .speed > input {
    width: 110px;
  }
  .speed-presets button {
    padding: 6px 8px;
  }
  .hint {
    display: none;
  }
}
@media (max-width: 760px) {
  main {
    padding: 21px 15px;
  }
  .masthead {
    margin-bottom: 23px;
  }
  .eyebrow {
    margin-top: 24px;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -1.4px;
  }
  .intro {
    font-size: 11px;
    max-width: 280px;
    line-height: 1.7;
  }
  .edition {
    display: none;
  }
  .transport {
    padding: 14px;
  }
  .transport-top {
    flex-wrap: wrap;
    gap: 18px;
  }
  .playback {
    width: 100%;
    gap: 8px;
  }
  .playback > button {
    font-size: 12px;
    padding: 10px;
  }
  .playback > label {
    margin-left: auto;
  }
  .speed {
    width: 100%;
    gap: 8px;
  }
  .speed > input {
    flex: 1;
    min-width: 38px;
    width: auto;
  }
  .speed > label {
    font-size: 10px;
  }
  .speed output {
    margin-left: 6px;
    font-size: 12px;
    min-width: 40px;
  }
  .speed-presets button {
    padding: 6px 7px;
  }
  .timeline-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  #time {
    font-size: 10px;
    min-width: 76px;
    flex-basis: 100%;
  }
  .phase {
    display: none;
  }
  .phase-buttons span {
    display: none;
  }
  .view-toolbar {
    gap: 8px;
    margin-top: 18px;
  }
  .views {
    gap: 3px;
  }
  .views button {
    padding: 6px 9px;
    font-size: 10px;
  }
  .view-extras {
    gap: 7px;
  }
  .view-extras .check {
    font-size: 10px;
  }
  .view-extras button {
    padding: 6px;
    font-size: 10px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stage {
    height: 410px;
  }
  .card-content {
    padding: 17px;
  }
  .card-content p {
    font-size: 11px;
  }
  .cards.focused .stage {
    height: 450px;
  }
  .cards.focused .card-content {
    display: block;
  }
  .cards.focused .card-content p {
    margin: 8px 0 12px;
  }
  footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .footnote {
    font-size: 10px;
  }
}
