@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* One variable latin file covers Cinzel 500, 600 and 700. */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pinyon-script-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F7F0E3;
  --ink: #2E1B0E;
  --text: #4A3423;
  --text-2: #5A4330;
  --muted: #6E5843;
  --ochre: #8A5A14;
  --amp: #A8742A;
  --accent: #C8922E;
  --surface: #FFFDF8;
  --input-border: #CDB58A;
  --card-border: #E3D2B0;
  --divider: #E8DAC0;
  --track: #EADCC2;
  --placeholder: #E9D9B8;
  --icon-soft-bg: #F1E4C8;
  --waiting: #8C7660;
  --error: #8E2F1F;
  --font-body: "Barlow", "Bahnschrift", system-ui, sans-serif;
  --font-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
}

p,
h1 {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #8A5A14;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

.band {
  height: 20px;
  flex: none;
  background: url("assets/band-tile.svg") repeat-x;
  background-size: auto 20px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.icon {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-play {
  fill: #F7F0E3;
  stroke: none;
}

.names {
  max-width: 100%;
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.amp {
  color: var(--amp);
}

.caps {
  font-family: var(--font-caps);
  font-weight: 600;
  font-synthesis: none;
}

.kicker {
  display: flex;
  align-items: center;
  max-width: 100%;
}

.kicker-phone {
  gap: 10px;
}

.kicker-desktop {
  gap: 12px;
}

.kicker-line {
  flex: none;
  background: var(--accent);
}

.kicker-phone .kicker-line {
  width: 28px;
  height: 1.5px;
}

.kicker-desktop .kicker-line {
  width: 40px;
  height: 1.5px;
}

.kicker-text {
  font-family: var(--font-caps);
  font-weight: 600;
  font-synthesis: none;
  color: var(--ochre);
}

.kicker-phone .kicker-text {
  font-size: 12px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}

.kicker-desktop .kicker-text {
  font-size: 14px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
}

.diamond {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg);
}

.rule {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-line {
  width: 36px;
  height: 1.5px;
  background: var(--accent);
}

.arch-phone {
  width: 184px;
  height: 220px;
  flex: none;
  border: 1.5px solid var(--accent);
  border-radius: 92px 92px 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-phone .arch-inner {
  width: 168px;
  height: 204px;
  border-radius: 84px 84px 3px 3px;
  overflow: hidden;
  background: var(--placeholder);
}

.arch-desktop {
  width: min(344px, 100%);
  aspect-ratio: 344 / 414;
  border: 1.5px solid var(--accent);
  border-radius: 172px 172px 8px 8px;
  padding: 10.5px;
}

.arch-desktop .arch-inner {
  width: 100%;
  height: 100%;
  border-radius: 160px 160px 4px 4px;
  overflow: hidden;
  background: var(--placeholder);
}

.arch-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.name-field label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.name-field input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 16px;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

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

.btn-primary {
  height: 56px;
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #F7F0E3;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-secondary {
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add {
  width: 100%;
  height: 48px;
  padding: 0;
  font-size: 16px;
  gap: 8px;
}

.btn-retry {
  flex: none;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  gap: 6px;
}

.btn-choose {
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #F7F0E3;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 13px;
  color: var(--text-2);
}

.privacy span {
  min-width: 0;
}

.welcome-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  /* Artboard padding is 40px from the screen top; the 20px band is overlaid there. */
  margin-top: -20px;
  padding: 40px 24px 0;
}

.welcome-phone > * {
  min-width: 0;
  max-width: 100%;
}

.title-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.names-phone {
  font-size: 44px;
}

.welcome-phone h1 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  padding-left: 0.06em;
  color: var(--ink);
}

.intro-phone {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  text-wrap: balance;
}

.welcome-phone .name-field,
.welcome-phone .btn-primary {
  align-self: stretch;
}

.helper-phone {
  margin-top: -6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
  text-align: center;
  text-wrap: balance;
}

.welcome-desktop {
  display: none;
}

.screen-uploading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  /* Artboard padding is 28px from the screen top; the 20px band is overlaid there. */
  margin-top: -20px;
  padding: 28px 20px 0;
}

.upload-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.names-upload {
  font-size: 30px;
}

.upload-mark {
  font-size: 12px;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: var(--ochre);
}

.status {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.status h1 {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
}

.status-pct {
  font-size: 16px;
  font-weight: 600;
  color: var(--ochre);
}

.bar {
  height: 8px;
  border-radius: 4px;
  background: var(--track);
  overflow: hidden;
}

.bar-fill,
.mini-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 150ms linear;
}

.info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-2);
}

.info span {
  min-width: 0;
}

.queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.queue li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}

.thumb {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--placeholder);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.file-main.has-bar {
  gap: 5px;
}

.file-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.file-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-pct {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ochre);
}

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

.meta-error {
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
}

.mini-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}

.done-badge {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #F7F0E3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock {
  margin-right: 3px;
  color: var(--waiting);
}

.screen-done {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.done-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 0 28px 40px;
}

.emblem {
  width: 96px;
  height: 96px;
  flex: none;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: #F7F0E3;
  box-shadow: 0 0 0 8px #F7F0E3, 0 0 0 9.5px var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-done h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.05;
  color: var(--ink);
}

.done-body {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
}

.done-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.done-center .btn-primary {
  align-self: stretch;
  margin-top: 14px;
}

.done-kicker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  margin: 0;
  text-align: center;
  font-family: var(--font-caps);
  font-weight: 600;
  font-synthesis: none;
  font-size: 12px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--ochre);
}

.screen-closed {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 0 28px 24px;
  text-align: center;
}

.screen-closed > * {
  min-width: 0;
  max-width: 100%;
}

.names-closed {
  font-size: 44px;
}

.closed-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.screen-closed h1 {
  max-width: 100%;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  padding-left: 0.05em;
  color: var(--ink);
}

.closed-body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  text-wrap: balance;
}

.closed-end {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: balance;
}

.desk-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  min-width: 0;
}

.desk-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.names-desk {
  font-size: 56px;
  text-wrap: balance;
}

.title-desk {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-desktop h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.intro-desk {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

.welcome-desktop .name-field {
  max-width: 420px;
}

.welcome-desktop .name-field input {
  height: 50px;
}

.dropzone {
  border: 2px dashed var(--accent);
  border-radius: 16px;
  background: var(--surface);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.dropzone.is-dragover {
  border-style: solid;
  background: #FBF3E2;
}

.drop-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--icon-soft-bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.drop-or {
  font-size: 14px;
  color: var(--muted);
}

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

.desk-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.helper-desk {
  font-size: 14px;
  color: var(--text-2);
}

@media (min-width: 768px) {
  .welcome-phone {
    display: none;
  }

  .welcome-desktop {
    display: grid;
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 32px 64px;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 56px 72px;
    align-items: center;
  }

  .screen-uploading,
  .screen-done,
  .screen-closed {
    width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
