@import url('https://fonts.googleapis.com/css2?family=Tilt+Warp&display=swap');

:root {
  --bg: #0b0b0d;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --stroke: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --radius2: 18px;
  --accent: #4aa3ff;
  --danger: #ff5c5c;
  --warning: #ffcc66;
  --success: #38d996;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% 0%, rgba(74, 163, 255, 0.20), rgba(0, 0, 0, 0)) ,
    radial-gradient(900px 500px at 0% 60%, rgba(56, 217, 150, 0.12), rgba(0, 0, 0, 0)) ,
    var(--bg);
}

.shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 32px 20px 16px;
}

.brand {
  max-width: 860px;
  margin: 0 auto;
}

.brand__title {
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.brand__subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.main {
  flex: 1;
  display: flex;
  padding: 10px 20px 20px;
}

.card {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.drop {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.drop.is-active {
  border-color: rgba(74, 163, 255, 0.6);
  box-shadow: 0 0 0 6px rgba(74, 163, 255, 0.12);
}

.drop__inner {
  text-align: center;
  padding: 24px;
}

.drop__inner.is-hidden {
  display: none;
}

.drop__title {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.drop__hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.drop__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop__preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.drop__preview.is-visible {
  display: block;
}

.controls {
  padding-top: 14px;
  display: grid;
  gap: 14px;
}

.controls__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.controls__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 12px;
  color: var(--muted);
}

.field__input {
  width: 140px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.field__input:focus {
  border-color: rgba(74, 163, 255, 0.6);
  box-shadow: 0 0 0 6px rgba(74, 163, 255, 0.10);
}

.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  border-color: rgba(74, 163, 255, 0.45);
  background: rgba(74, 163, 255, 0.18);
}

.btn--primary:hover {
  background: rgba(74, 163, 255, 0.24);
}

.status {
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status__files {
  font-size: 13px;
  color: var(--muted);
}

.status__text {
  font-size: 13px;
  color: var(--muted);
}

.status__text[data-tone="danger"] {
  color: var(--danger);
}

.status__text[data-tone="warning"] {
  color: var(--warning);
}

.status__text[data-tone="success"] {
  color: var(--success);
}

.footer {
  padding: 18px 20px 30px;
}

.footer__note {
  max-width: 860px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

@media (max-width: 720px) {
  .controls {
    align-items: stretch;
  }

  .controls__fields {
    grid-template-columns: 1fr;
  }

  .field__input {
    width: 100%;
  }

  .controls__buttons {
    justify-content: stretch;
  }

  .btn {
    flex: 1;
  }
}

body {
  background: #1baa3f;
  color: #521baa;
  font-family: 'Tilt Warp', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial;
}

.layout {
  min-height: 100vh;
  padding: 68px 51px;
  display: grid;
  grid-template-columns: 380px 696px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "logo drop"
    "controls drop";
  column-gap: 146px;
  align-items: start;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 380px;
  grid-area: controls;
}

.logo {
  font-size: 100px;
  line-height: 1;
  color: #ff5500;
  grid-area: logo;
  text-shadow:
    0 10px 0 #e8b200,
    10px 0 0 #e8b200,
    0 -10px 0 #e8b200,
    -10px 0 0 #e8b200,
    8px 8px 0 #e8b200,
    -8px 8px 0 #e8b200,
    8px -8px 0 #e8b200,
    -8px -8px 0 #e8b200;
}

.pill {
  background: #e8b200;
  height: 88px;
  width: 321px;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill--toggle {
  justify-content: space-between;
}

.pill__check {
  width: 34px;
  height: 34px;
  accent-color: #521baa;
}

.pill__value {
  flex: 1;
  border: 0;
  background: transparent;
  color: #521baa;
  font-size: 50px;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.pill__value::-webkit-outer-spin-button,
.pill__value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pill__value[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.pill__label {
  font-size: 30px;
  color: #521baa;
  text-align: right;
}

.actions {
  display: flex;
  gap: 20px;
  margin-top: 66px;
}

.btn {
  height: 88px;
  border-radius: 40px;
  padding: 10px 30px;
  border: 10px solid #e8b200;
  font-family: inherit;
  font-size: 30px;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--convert {
  background: #ff5500;
  color: #521baa;
}

.btn--download {
  background: #521baa;
  color: #ff5500;
}

.status {
  min-height: 24px;
  font-size: 18px;
  color: #521baa;
}

.status[data-tone="warning"],
.status[data-tone="danger"],
.status[data-tone="success"] {
  color: #521baa;
}

.drop {
  width: 696px;
  height: 696px;
  background: #e8b200;
  padding: 75px;
  border-radius: 0;
  border: 0;
  cursor: pointer;
  grid-area: drop;
}

.drop__stage {
  width: 100%;
  height: 100%;
  background: #dd2f2f;
  display: grid;
  place-items: center;
  position: relative;
}

.drop__inner {
  text-align: center;
  padding: 24px;
}

.drop__title {
  font-size: 100px;
  line-height: 1;
  color: #ff5500;
  text-shadow:
    0 10px 0 #e8b200,
    10px 0 0 #e8b200,
    0 -10px 0 #e8b200,
    -10px 0 0 #e8b200,
    8px 8px 0 #e8b200,
    -8px 8px 0 #e8b200,
    8px -8px 0 #e8b200,
    -8px -8px 0 #e8b200;
}

.drop__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop__preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.drop__preview.is-visible {
  display: block;
}

.drop__inner.is-hidden {
  display: none;
}

@media (max-width: 1200px) {
  .layout {
    padding: 40px 24px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "logo"
      "drop"
      "controls";
    row-gap: 40px;
  }

  .controls {
    width: auto;
  }

  .drop {
    width: min(696px, calc(100vw - 48px));
    height: min(696px, calc(100vw - 48px));
  }
}
