@font-face {
  font-family: "TmoneyRoundWindRegular";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/TmoneyRoundWindRegular.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "Eutman";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2206-02@1.0/OKCHAN.woff2") format("woff2");
  font-weight: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #140904;
  --card: #1d0f07;
  --ink: #fff5eb;
  --muted: #f0c9b2;
  --line: #3a1b0f;
  --accent: #ff6a2b;
  --accent-dark: #e5521f;
  --glow: rgba(255, 106, 43, 0.45);
  --shadow: 0 18px 40px rgba(10, 6, 4, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Eutman", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 400;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(255, 123, 48, 0.35) 0%, rgba(255, 123, 48, 0) 60%),
    radial-gradient(800px 460px at 85% 0%, rgba(255, 74, 36, 0.28) 0%, rgba(255, 74, 36, 0) 58%),
    radial-gradient(600px 400px at 50% 100%, rgba(255, 193, 124, 0.18) 0%, rgba(255, 193, 124, 0) 65%),
    linear-gradient(180deg, #120703 0%, #2a1308 100%);
  color: var(--ink);
  min-height: 100vh;
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.byline {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}

.byline-link {
  font-family: "TmoneyRoundWindRegular", "Eutman", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.byline-link:hover {
  color: #ffd2b8;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0.01em;
  max-width: 560px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 142, 84, 0.12) 0%, rgba(255, 142, 84, 0.02) 40%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 200px;
  background: radial-gradient(closest-side, rgba(255, 126, 58, 0.35), rgba(255, 126, 58, 0));
  opacity: 0.45;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.slider-value {
  min-width: 56px;
  text-align: right;
  font-weight: 600;
  color: var(--muted);
}

label {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}

input[type="file"] {
  padding: 12px;
  border: 1px dashed rgba(255, 143, 78, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 240, 226, 0.08) 0%, rgba(255, 186, 134, 0.05) 100%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  font-weight: 500;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 26px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.primary:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 143, 78, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.progress {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

progress {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #2a140a;
}

progress::-webkit-progress-bar {
  background: #2a140a;
  border-radius: 999px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, #ff9a68, #ff5a2b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, #ff9a68, #ff5a2b);
}

.status {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 143, 78, 0.08), rgba(0, 0, 0, 0));
  border: 1px solid rgba(255, 143, 78, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
}

.status {
  display: none;
}

.output a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 167, 112, 0.22) 0%, rgba(255, 116, 74, 0.2) 100%);
  color: #ffd7bf;
  text-decoration: none;
  border: 1px solid rgba(255, 143, 78, 0.35);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.output audio {
  width: 100%;
  margin-top: 12px;
}

.credit {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.credit-text {
  color: var(--ink);
  font-family: "TmoneyRoundWindRegular", "Eutman", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.credit-name {
  font-family: "TmoneyRoundWindRegular", "Eutman", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  .app {
    padding: 40px 16px 56px;
  }

  .actions {
    width: 100%;
  }

  .actions button {
    flex: 1;
  }

  .status {
    grid-template-columns: 1fr;
  }
}

