* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  background-repeat: no-repeat;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.page {
  /* auto margins on a flex item center it on both axes, and unlike
     align-items/justify-content, degrade to normal top-aligned flow
     (never clip into unreachable negative scroll) once content is
     taller than the viewport -- works without needing "safe center"
     support, which some mobile Safari versions still lack. */
  margin: auto;
  padding-bottom: 2rem;
  max-width: 100%;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: min(420px, 90vw);
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@media (max-width: 420px) {
  .card {
    padding: 1.75rem 1.25rem;
  }
}

.seo-info {
  margin: 1.5rem auto 0;
  width: min(420px, 90vw);
  max-width: 100%;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  line-height: 1.5;
}

.seo-info h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.seo-info h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.seo-info dl {
  margin: 0;
}

.seo-info dt {
  font-weight: 600;
  margin-top: 0.6rem;
}

.seo-info dd {
  margin: 0.15rem 0 0;
  opacity: 0.9;
}

.cookie-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  padding: 0 1rem;
}

.cookie-note p {
  margin: 0;
}

.cookie-note p + p {
  margin-top: 0.2rem;
  opacity: 0.85;
}

.title-link {
  display: block;
  text-decoration: none;
}

h1 {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.trademark {
  font-size: 0.4em;
}

.phonetic {
  display: inline-block;
  margin-left: 0.35em;
  vertical-align: middle;
  font-size: 0.4em;
  font-weight: 400;
  letter-spacing: 0;
  /* reset the gradient text-fill and heavy weight inherited from h1 --
     this is a quieter, plain-gray annotation, not a second headline */
  background: none;
  color: #aaa;
  -webkit-text-fill-color: #aaa;
}

.slogan {
  margin: 0 0 1rem;
  text-align: center;
  color: #833ab4;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0 0 1.5rem;
  text-align: center;
  color: #666;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  text-wrap: pretty;
}

#check-form {
  display: flex;
  gap: 0.5rem;
}

#url-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

#url-input:focus {
  outline: 2px solid #833ab4;
  border-color: transparent;
}

button {
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: #833ab4;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover {
  background: #6d2f97;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.result {
  margin-top: 1.5rem;
  text-align: center;
}

.result.hidden {
  display: none;
}

.result img,
.result video {
  max-width: 100%;
  max-height: 260px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.verdict {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.verdict.ai {
  color: #d1272e;
}

.verdict.not-ai {
  color: #1a9c4a;
}

.probability {
  color: #666;
  font-size: 0.9rem;
}

.note {
  margin-top: 0.5rem;
  color: #888;
  font-size: 0.8rem;
  font-style: italic;
}

.error {
  color: #d1272e;
  font-weight: 600;
}

/* --- loading state --- */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 0.25rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #eee;
  border-top-color: #833ab4;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-message {
  color: #555;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 280px;
  line-height: 1.4;
}

/* --- reward block --- */

.reward-card {
  margin-top: 1.5rem;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.4rem;
  background: linear-gradient(135deg, #ffb347, #fd1d1d 55%, #833ab4);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(253, 29, 29, 0.15), 0 12px 30px rgba(131, 58, 180, 0.35);
  animation: reward-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes reward-pop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.reward-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.reward-percentage {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.reward-service {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.reward-code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
  font-family: "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.reward-description {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.95;
}
