/* ===============================
   POW FAUCET PAGE FOUNDATION
=============================== */

body {
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(250, 204, 21, 0.12),
      transparent 30rem
    ),
    #000;
}

main {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===============================
   FAUCET HERO
=============================== */

.back-link {
  display: inline-block;
  margin-top: 54px;
  color: #9ca3af;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
}

.network-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.back-link:hover {
  color: var(--accent);
}

.hero {
  width: min(100%, 760px);
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  padding: 34px 0 30px;
  text-align: center;
}

.hero .eyebrow {
  color: #facc15;
}

.hero h1 {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  font-size: clamp(40px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.hero .lede {
  max-width: 620px;
  margin: 18px auto;
}

.claim-policy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #302d20;
  border-radius: 10px;
  background: #302d20;
}

.claim-policy > div {
  padding: 12px 14px;
  background: #10100d;
}

.claim-policy span,
.claim-policy strong {
  display: block;
}

.claim-policy span {
  color: #9ca3af;
  font-size: 11px;
}

.claim-policy strong {
  margin-top: 4px;
  color: #facc15;
  font-size: 14px;
}

.hero-policy {
  width: min(100%, 368px);
  margin: 22px auto 0;
}

.active-policy {
  margin: 0 0 18px;
}

/* ===============================
   WORK SESSION CARD
=============================== */

.faucet-card {
  width: min(100%, 368px);
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #39351f;
  border-radius: 18px;
  background: linear-gradient(145deg, #15150e, #0d0d0b);
  box-shadow:
    0 30px 80px #000b,
    inset 0 1px #ffffff0d;
  text-align: center;
}

/* A completed share updates its values frequently. Keep the active card's
   dimensions stable so those updates never look like the card is pulsing. */
.faucet-card:has(#active:not([hidden])) {
  min-height: 468px;
}

.faucet-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #facc15, transparent);
  content: "";
}

.faucet-card input {
  width: 100%;
  padding: 17px;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #000;
  font:
    500 14px Poppins,
    sans-serif;
  text-align: center;
}

.faucet-card input::placeholder {
  color: #888;
  text-align: center;
}

.faucet-card input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px #f6c94524;
}

.faucet-card input:read-only {
  cursor: not-allowed;
  opacity: 0.75;
}

/* ===============================
   WORKER AND CAPTCHA CONTROLS
=============================== */

.worker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  padding: 12px 0;
  border-bottom: 1px solid #29271e;
  color: var(--muted);
  font-size: 13px;
}

.step {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 7px;
  background: #292820;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.step:hover {
  background: #3b392f;
}

output {
  display: inline-block;
  width: 29px;
  color: #fff;
  font:
    500 13px Poppins,
    sans-serif;
  text-align: center;
}

.captcha-note {
  display: flex;
  min-height: 54px;
  align-items: center;
  margin-bottom: 17px;
  padding: 11px 13px;
  border: 1px solid #39351f;
  border-radius: 8px;
  background: #0d0d0a;
  color: #d5d3c9;
  font-size: 12px;
}

.captcha-box {
  min-height: 0;
  margin-bottom: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: center;
  text-align: center;
}

.captcha-box .h-captcha {
  margin: 0 auto;
}

/* ===============================
   BUTTONS AND MESSAGES
=============================== */

.primary,
.secondary {
  padding: 14px 17px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font:
    700 13px Poppins,
    sans-serif;
}

.primary {
  position: relative;
  width: 100%;
  min-height: 50px;
  background: linear-gradient(135deg, #f8d458, var(--accent));
  color: #161306;
  box-shadow: 0 8px 24px #f6c9451c;
}

.primary:hover {
  background: #ffe37b;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.primary span {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
}

.secondary {
  min-width: 108px;
  background: #292820;
  color: #fff;
}

.secondary:hover {
  background: #3b392f;
}

.message {
  min-height: 16px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Reserve a fixed status row during work so changing proof text can never
   reflow or shift the session card. */
#active .message {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 13px 0;
  overflow: hidden;
}

/* Do not reserve a blank error row below the button before validation runs. */
.message:empty {
  display: none;
}

.error {
  color: #f87171;
}

/* ===============================
   ACTIVE POW SESSION
=============================== */

.working-label {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;
}

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.reward {
  margin: 24px 0 22px;
}

.reward strong {
  display: block;
  color: #f8f7f2;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.reward span,
.stats span {
  color: var(--muted);
  font-size: 13px;
}

.stats {
  display: flex;
  justify-content: space-evenly;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.stats > div {
  min-width: 92px;
  text-align: center;
}

.stats b {
  display: block;
  font:
    500 14px Poppins,
    sans-serif;
  font-variant-numeric: tabular-nums;
}

.stats span {
  font-size: 11px;
}

.progress {
  height: 6px;
  overflow: hidden;
  border-radius: 10px;
  background: #29271e;
}

.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: none;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.actions .primary {
  flex: 1;
}

#sent:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#sent .eyebrow,
#sent .reward {
  order: 0;
}

.claim-cooldown {
  order: 1;
}

/* Internal network links, matching the EVM faucet page structure. */
.faucet-links {
  margin-top: 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  text-align: center;
}

.faucet-links a {
  color: var(--accent);
  text-decoration: none;
}

.faucet-links a:hover {
  color: #ffe37b;
  text-decoration: underline;
}

.sent-success {
  order: 2;
}

.explorer {
  order: 3;
  display: block;
  width: fit-content;
  margin: 18px auto 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid #1a73e8;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 600;
}

#again {
  order: 4;
}

.sent-success {
  margin: 0;
  color: #22c55e;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.claim-cooldown {
  min-height: 0;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ===============================
   EXPLANATION CARDS
=============================== */

.explain {
  width: 100%;
  display: grid;
  max-width: 980px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 64px 0 70px;
}

.explain article {
  min-height: 192px;
  padding: 24px;
  border: 1px solid #2f2d24;
  border-radius: 14px;
  background: linear-gradient(145deg, #12120e, #0b0b09);
  text-align: center;
}

.explain article span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

.explain h2 {
  margin: 12px 0 8px;
  font-size: 19px;
}

.explain p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ===============================
   SEO GUIDE
=============================== */

.seo-content {
  width: min(100%, 760px);
  padding: 42px 0 70px;
  color: #c4c2b7;
}

.seo-content h2 {
  margin: 48px 0 12px;
  color: var(--white);
  font-size: clamp(23px, 3vw, 31px);
  letter-spacing: -0.04em;
  text-align: center;
}

.seo-content > section {
  margin: 0 0 42px;
}

.seo-content .rules-card {
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 24px;
  border: 1px solid #39351f;
  border-radius: 14px;
  background: linear-gradient(145deg, #15150e, #0d0d0b);
}

.seo-content .rules-card h2 {
  margin-top: 0;
}

.seo-content .rules-card ul {
  margin: 0;
  padding-left: 20px;
}

.seo-content .rules-card li {
  margin: 9px 0;
  color: #c4c2b7;
  font-size: 14px;
  line-height: 1.7;
}

.seo-content p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
}

.faq-section {
  display: block;
}

.faq-section > h2 {
  margin-bottom: 12px;
}

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid #222;
}

.faq-item:first-of-type {
  border-top: 1px solid #222;
}

.faq-item h3,
.faq-item .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.faq-item h3::after,
.faq-item .faq-question::after {
  color: var(--white);
  content: "+";
  font-size: 18px;
  font-weight: 600;
}

.faq-item.active h3::after,
.faq-item.active .faq-question::after {
  color: var(--accent);
  content: "−";
}

.faq-item > p,
.faq-item .faq-answer {
  margin: 0;
  display: none;
}

.faq-item.active > p,
.faq-item.active .faq-answer {
  display: block;
  margin-top: 10px;
}

.faq-item .faq-answer p {
  display: block;
  margin: 0;
}

/* ===============================
   MOBILE
=============================== */

@media (max-width: 600px) {
  .back-link {
    margin-top: 36px;
  }

  .hero {
    padding: 28px 0 26px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .faucet-card {
    width: min(100%, 368px);
    padding: 24px;
    border-radius: 14px;
  }

  .claim-policy > div {
    padding: 10px;
  }

  .stats {
    gap: 10px;
  }

  .stats > div {
    min-width: 0;
  }

  .reward strong {
    font-size: 36px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .primary {
    min-height: 45px;
  }


  .explain {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 72px 0 52px;
  }

  .network-logo {
    width: 62px;
    height: 62px;
  }

  .seo-content {
    padding-bottom: 44px;
  }

  .seo-content .rules-card {
    padding: 18px;
  }
}
