:root {
  --bg: #f5f1e8;
  --ink: #111111;
  --paper: #ffffff;
  --yellow: #ffd400;
  --red: #e63b2e;
  --green: #218739;
  --shadow: 6px 6px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.wrapper {
  width: 100%;
  max-width: 640px;
  padding: 24px;
}

.view.hidden {
  display: none;
}

#result-view {
  padding: 0 8px 8px 0;
}

.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  text-align: center;
}

.mascot {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.mascot-small {
  width: 84px;
  height: 84px;
}

.mascot-small.software-job-image {
  width: 210px;
  height: 260px;
  object-fit: cover;
  border: 3px solid var(--ink);
  margin-inline: auto;
}

.mascot-small.vibe-job-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 3px solid var(--ink);
  margin-inline: auto;
}

.mascot.hidden {
  display: none;
}

.result-video {
  width: min(100%, 320px);
  max-height: 280px;
  object-fit: cover;
  border: 3px solid var(--ink);
  margin-bottom: 1.25rem;
}

.result-video.hidden {
  display: none;
}

.title {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 2rem;
}

.title-ai {
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 0 0.35em;
  display: inline-block;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.job-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.15rem;
  font-family: "Space Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 0;
  outline: none;
}

.job-input::placeholder {
  color: #8a8a8a;
}

.job-input:focus {
  background: #fffbe6;
}

.btn {
  border: 3px solid var(--ink);
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
  background: var(--yellow);
}

.btn-check {
  min-width: 160px;
}

/* Result view */
.card-result {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.verdict {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: var(--paper);
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: inline-block;
  padding: 0.6em 0.9em;
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 1.5rem;
}

.verdict.verdict-success {
  background: var(--green);
}

.job-label {
  font-family: "Space Mono", monospace;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 2rem;
}

.actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.actions .btn {
  width: 100%;
  padding-inline: 0.65rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .wrapper {
    padding: 16px;
  }

  .card {
    padding: 2rem 1.25rem;
  }

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