/* Palette: Brazil green / blue / gold on a deep night background — glossy,
   glowing panels in the style of the PG Games notice art. */
:root {
  --bg: #04101a;
  --brand: #22c55e;     /* green — primary actions */
  --brand-2: #15803d;
  --brand-3: #4ade80;
  --blue: #2563eb;
  --blue-2: #60a5fa;
  --gold: #facc15;
  --gold-2: #fde047;
  --pink: #f472b6;
  --ink: #f8fafc;
  --muted: #a8bccb;
  --line: rgba(74, 222, 128, 0.3);
  --danger: #f43f5e;
  --card: rgba(5, 20, 30, 0.86);
  --surface-2: rgba(255, 255, 255, 0.06);
  --tint: rgba(34, 197, 94, 0.08);
  --glow: rgba(34, 197, 94, 0.45);
  --display: "Barlow Condensed", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100vh; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(680px 520px at 0% 10%, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0) 70%),
    radial-gradient(640px 520px at 100% 20%, rgba(37, 99, 235, 0.24) 0%, rgba(37, 99, 235, 0) 70%),
    radial-gradient(760px 420px at 50% 112%, rgba(250, 204, 21, 0.16) 0%, rgba(250, 204, 21, 0) 70%),
    var(--bg);
}

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px 24px;
}

/* Glass panel with a glowing green→blue gradient border (padding-box /
   border-box background trick, so the radius stays clean). */
.card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background:
    linear-gradient(165deg, rgba(10, 46, 34, 0.92) 0%, rgba(5, 20, 30, 0.94) 45%, rgba(8, 24, 56, 0.94) 100%) padding-box,
    linear-gradient(135deg, #4ade80 0%, #22c55e 30%, #2563eb 75%, #60a5fa 100%) border-box;
  border: 2px solid transparent;
  border-radius: 26px;
  padding: 40px 30px 34px;
  box-shadow:
    0 30px 70px -25px rgba(0, 0, 0, 0.8),
    -14px 0 60px -26px rgba(34, 197, 94, 0.7),
    14px 0 60px -26px rgba(37, 99, 235, 0.7);
  text-align: center;
  animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both, cardGlow 5s ease-in-out 0.5s infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Slow ambient breathing glow — green on the left, blue on the right. */
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.8), -14px 0 60px -26px rgba(34, 197, 94, 0.7), 14px 0 60px -26px rgba(37, 99, 235, 0.7); }
  50%      { box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.8), -18px 0 80px -22px rgba(34, 197, 94, 0.85), 18px 0 80px -22px rgba(37, 99, 235, 0.85); }
}
@media (prefers-reduced-motion: reduce) { .card { animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; } }

/* Landscape logo (1719×915): size by width, let height follow the aspect ratio. */
.badge {
  width: min(400px, 100%);
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 26px rgba(250, 204, 21, 0.28));
}
.badge picture, .badge img { width: 100%; height: auto; display: block; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 30px rgba(248, 250, 252, 0.12);
}
/* The brand word is a single solid gold, like the highlighted words in the art. */
.brand-word { color: var(--gold); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 22px rgba(250, 204, 21, 0.55); }

.tagline {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---- Search ---- */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search:focus-within {
  border-color: var(--brand);
  animation: searchPulse 1.6s ease-in-out infinite;
}
@keyframes searchPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16), 0 0 20px rgba(34, 197, 94, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.24), 0 0 32px rgba(34, 197, 94, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .search:focus-within { animation: none; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
}
.search .icon {
  color: #0f172a;
  display: grid;
  place-items: center;
  flex: none;
}
.search .icon svg { width: 20px; height: 20px; }

.search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  padding: 12px 6px;
}
.search input::placeholder { color: #64748b; font-weight: 500; }

.search button {
  flex: none;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 11px 28px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  /* glossy pill: top highlight over a green gradient */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #4ade80 0%, #16a34a 55%, #15803d 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 8px 22px -6px rgba(34, 197, 94, 0.75), 0 0 26px -6px rgba(74, 222, 128, 0.6);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.search button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.search button:active { transform: translateY(0); }

/* ---- Telegram CTA ---- */
.tg-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  box-shadow: 0 12px 22px -14px rgba(34, 158, 217, 0.85), 0 0 30px -14px rgba(244, 114, 182, 0.5);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.tg-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 16px 26px -14px rgba(34, 158, 217, 0.95), 0 0 40px -10px rgba(244, 114, 182, 0.65);
}
.tg-cta:active { transform: translateY(0); }

.tg-cta__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}
.tg-cta__icon svg { width: 22px; height: 22px; }

.tg-cta__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}
.tg-cta__title { font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }
.tg-cta__sub { font-size: 0.82rem; opacity: 0.88; margin-top: 2px; }

.tg-cta__arrow {
  flex: none;
  display: grid;
  place-items: center;
  opacity: 0.9;
  transition: transform 0.18s ease;
}
.tg-cta__arrow svg { width: 18px; height: 18px; }
.tg-cta:hover .tg-cta__arrow { transform: translateX(3px); }

/* ---- Instructions ---- */
.info {
  margin-top: 26px;
  background: linear-gradient(160deg, rgba(22, 101, 52, 0.38) 0%, rgba(6, 24, 40, 0.55) 60%, rgba(30, 58, 138, 0.3) 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 30px -12px rgba(74, 222, 128, 0.35);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: left;
}
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.45;
}
.steps li + li { margin-top: 12px; }
/* Glossy numbered badges: 1 green, 2 blue, 3 gold. */
.steps .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: radial-gradient(circle at 35% 28%, #86efac 0%, #22c55e 45%, #15803d 100%);
  box-shadow: 0 0 14px -2px rgba(34, 197, 94, 0.8);
}
.steps li:nth-child(2) .num {
  background: radial-gradient(circle at 35% 28%, #93c5fd 0%, #2563eb 50%, #1e3a8a 100%);
  box-shadow: 0 0 14px -2px rgba(37, 99, 235, 0.85);
}
.steps li:nth-child(3) .num {
  color: #422006;
  background: radial-gradient(circle at 35% 28%, #fef9c3 0%, #facc15 45%, #ca8a04 100%);
  box-shadow: 0 0 14px -2px rgba(250, 204, 21, 0.85);
}
.hl { color: var(--gold); font-weight: 700; }

/* Shimmer sweep for the step-1 example keywords: a light band travels across
   brand-coloured text via a clipped, moving gradient. */
.hl-shine {
  font-weight: 700;
  color: #facc15; /* fallback if background-clip:text is unsupported */
  background-image: linear-gradient(
    100deg,
    #facc15 0%,
    #facc15 38%,
    #fde68a 47%,
    #fffbeb 50%,
    #fde68a 53%,
    #facc15 62%,
    #facc15 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hl-shimmer 3.2s linear infinite;
}
@keyframes hl-shimmer {
  from { background-position: 0% center; }
  to   { background-position: -200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-shine {
    animation: none;
    background: none;
    -webkit-text-fill-color: #facc15;
  }
}

.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

.note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  text-align: center;
}
.note strong { color: var(--danger); }
.note .save { color: var(--danger); font-weight: 800; letter-spacing: 0.01em; }

/* ---- Result pages (404 / 503) ---- */
.result-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(244, 63, 94, 0.14); color: var(--danger);
  box-shadow: 0 0 24px -8px rgba(244, 63, 94, 0.55);
}
.result-icon svg { width: 30px; height: 30px; }
.muted-row { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }
.muted-row a { color: var(--gold); font-weight: 600; text-decoration: none; }
.muted-row a:hover { text-decoration: underline; }

/* ---- Footer ---- */
.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.footer a { color: var(--gold); text-decoration: none; font-weight: 600; }

@media (max-width: 480px) {
  .card { padding: 32px 20px 28px; border-radius: 22px; }
  h1 { font-size: 2.25rem; }
  .search button { padding: 13px 20px; }
  .search { padding-left: 14px; }
}
