:root {
  --bg: #f4f1eb;
  --card: #fffdf9;
  --text: #243038;
  --sub: #728087;
  --line: #dfe5e7;
  --main: #345d70;
  --main-soft: #e8f0f3;
  --success: #416e5a;
  --error: #9a4d48;
  --shadow:
    0 20px 50px rgba(46, 58, 64, .10);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    linear-gradient(
      180deg,
      #f7f5f0 0%,
      var(--bg) 100%
    );
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.entrance-app {
  width: min(
    calc(100% - 32px),
    760px
  );
  margin: 0 auto;
  padding: 40px 0 24px;
}

.brand {
  margin-bottom: 24px;
  text-align: center;
}

.brand-label {
  margin: 0 0 8px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.brand h1 {
  margin: 0;
  font-size: clamp(
    28px,
    5vw,
    44px
  );
  font-weight: 700;
  letter-spacing: .04em;
}

.screen {
  min-height: 430px;
  padding: 54px 32px;
  border: 1px solid
    rgba(255, 255, 255, .72);
  border-radius: 34px;
  background:
    rgba(255, 253, 249, .94);
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.status-icon {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  background: var(--main-soft);
  color: var(--main);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
}

.status-label {
  margin: 26px 0 10px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.screen h2 {
  margin: 0;
  font-size: clamp(
    26px,
    5vw,
    42px
  );
  line-height: 1.35;
}

.status-message {
  margin: 18px 0 0;
  color: var(--sub);
  font-size: clamp(
    16px,
    3vw,
    21px
  );
  line-height: 1.8;
}

.action-area {
  width: min(100%, 440px);
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-height: 58px;
  padding: 14px 20px;
  border-radius: 18px;
  font-weight: 700;
}

.primary-button {
  border: 0;
  background: var(--main);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.test-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(
    255,
    255,
    255,
    .72
  );
}

.test-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.test-panel p {
  margin: 0 0 18px;
  color: var(--sub);
  line-height: 1.7;
}

.test-panel label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.tag-input-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 10px;
}

.tag-input-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}

.footer {
  padding: 18px 8px 0;
  color: var(--sub);
  font-size: 13px;
  text-align: center;
}

.screen.is-success
.status-icon {
  background: #e9f2ed;
  color: var(--success);
}

.screen.is-error
.status-icon {
  background: #f7eaea;
  color: var(--error);
}

.screen.is-processing
.status-icon {
  animation:
    pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(.94);
    opacity: .62;
  }
}

@media (max-width: 560px) {
  .entrance-app {
    width: min(
      calc(100% - 20px),
      760px
    );
    padding-top: 24px;
  }

  .screen {
    min-height: 390px;
    padding: 42px 20px;
    border-radius: 26px;
  }

  .tag-input-row {
    grid-template-columns: 1fr;
  }
}