/* ==========================================================================
   TRYFAUCET4FUN — tryfaucet4.fun DRIP TERMINAL
   Theme lifted from the ch1p.fun glossy Web-2.0 / Frutiger Aero stylesheet
   (teal checkered desktop, glossy window chrome, green category bar,
   dotted rules, glossy pill buttons) + faucet-specific blocks appended.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&display=swap");

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }
body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  background: #45b7db;
}
[hidden] { display: none !important; }

button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── desktop backdrop ─────────────────────────────────────────────────── */
.site-wrap {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 38px 3.5vw;
  background-color: #45b7db;
  background-image:
    linear-gradient(#ffffff26 1px, #0000 1px),
    linear-gradient(90deg, #ffffff26 1px, #0000 1px),
    linear-gradient(45deg, #0069c338 25%, #0000 25% 75%, #0069c338 75%),
    linear-gradient(45deg, #0069c338 25%, #0000 25% 75%, #0069c338 75%);
  background-position: 0 0, 0 0, 0 0, 48px 48px;
  background-size: 24px 24px, 24px 24px, 96px 96px, 96px 96px;
}
.site-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background:
    radial-gradient(circle at 20% 5%, #fff 0 1px, #0000 2px) 0 0 / 71px 63px,
    radial-gradient(circle at 82% 19%, #fff 0 1px, #0000 2px) 0 0 / 89px 95px,
    linear-gradient(110deg, #0000 20%, #ffffff2e 43%, #0000 66%);
}

/* ── window chrome ────────────────────────────────────────────────────── */
.window {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid #ffffffb3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(#eafeffe6, #b9eef4cc);
  box-shadow: inset 0 1px #fff, 0 18px 44px #00476b4d;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  color: #fff;
  text-shadow: 0 1px #0a6076;
  font: 700 10px Tahoma, Verdana, sans-serif;
  background: linear-gradient(#d2f5f9, #84cfd8 44%, #2aa0b2 48%, #14788f);
  border-bottom: 1px solid #0c86a7;
  box-shadow: inset 0 1px #fff;
}
.window-bar em { font: 400 9px "Courier New", monospace; opacity: .9; }
.window-bar .wb-right { margin-left: auto; color: #eaffff; font: 700 9px "Courier New", monospace; white-space: nowrap; }
.window-bar .wb-x {
  margin-left: 8px;
  color: #eaffff;
  text-decoration: none;
  font: 700 9px "Courier New", monospace;
  border-bottom: 1px dotted #eaffff8c;
}
.window-bar .wb-x:hover { color: #c9ff74; border-bottom-color: #c9ff74; }
.wb-dots { display: flex; gap: 4px; }
.wb-dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(#ffffffb3, #ffffff33);
  border: 1px solid #ffffff8c;
}
.window-body { padding: 14px 16px 16px; }

/* ── header ───────────────────────────────────────────────────────────── */
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dotted #5caab4;
}
.portal-head h1 {
  margin: 2px 0 1px;
  color: #fff;
  text-shadow: 0 2px #14678a, 0 3px 4px #004d7038;
  font: 700 30px/1.1 Fredoka, "Trebuchet MS", sans-serif;
  letter-spacing: .5px;
}
.portal-head p { margin: 4px 0 0; color: #287388; font-size: 11px; }
.eyebrow { display: block; color: #2a9c43; letter-spacing: .8px; font: 700 9px "Courier New", monospace; }
.head-logo {
  flex: none;
  color: #2e9032;
  font: 700 26px Fredoka, "Trebuchet MS", sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 1px #fff, 0 3px 6px #1f6b3340;
}
.head-logo span { color: #17879f; }

/* ── intro + orb ──────────────────────────────────────────────────────── */
.chipis-intro {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 14px;
  align-items: center;
  margin-top: 13px;
}
.chipis-intro h2 {
  margin: 4px 0 0;
  color: #075570;
  font: 700 19px/1.25 Fredoka, "Trebuchet MS", sans-serif;
}
.chipis-intro p { margin: 6px 0 0; color: #145e70; font-size: 11px; line-height: 1.55; }
.chipis-orb {
  flex: none;
  display: grid;
  place-items: center;
  width: 150px; height: 150px;
  color: #eaffff;
  font-size: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, #a8eef0 13%, #2bb0c4 45%, #0a6f96 66%, #7ecf6a 69%, #3f8a4a 82%);
  box-shadow: inset 0 2px 6px #ffffff8c, 0 8px 20px #00486b4d;
}

/* ── fact strip ───────────────────────────────────────────────────────── */
.chipis-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.chipis-facts div {
  text-align: center;
  padding: 8px;
  border: 1px solid #4aa5b08c;
  border-radius: 7px;
  background: linear-gradient(#ffffff6b, #b9eef43d);
  box-shadow: inset 0 1px #ffffffe6, 0 3px 8px #003a5c24;
}
.chipis-facts b { display: block; color: #075570; font: 700 13px "Trebuchet MS", sans-serif; }
.chipis-facts span { display: block; margin-top: 3px; color: #287582; font: 700 8px "Courier New", monospace; }

/* ── CA strip ─────────────────────────────────────────────────────────── */
.chip-ca {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px dotted #5caab4;
  border-radius: 7px;
  background: linear-gradient(#ffffff70, #cdf3f659);
}
.chip-ca .ca-lbl { color: #2a9c43; letter-spacing: .8px; font: 700 8px "Courier New", monospace; }
.chip-ca .ca-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #07536c;
  text-decoration: none;
  font: 700 10px "Courier New", monospace;
}
.chip-ca a.ca-val:hover { color: #17879f; text-decoration: underline; }
.chip-ca .ca-tba { color: #7a8b92; font-style: italic; letter-spacing: .4px; }
/* the same chip, promoted to the top nav row */
.chip-nav { margin-top: 0; margin-bottom: 12px; }
.chip-nav .x-follow {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid #5caab4;
  border-radius: 999px;
  background: linear-gradient(#ffffff8c, #cdf3f659);
  box-shadow: inset 0 1px #ffffffe6;
  color: #07536c;
  text-decoration: none;
  white-space: nowrap;
  font: 700 9px "Courier New", monospace;
  letter-spacing: .5px;
}
.chip-nav .x-follow:hover { color: #17879f; background: linear-gradient(#ffffffb3, #b9eef480); }
.foot-x { color: #17879f; text-decoration: none; font-weight: 700; }
.foot-x:hover { text-decoration: underline; }

/* ── WL panel ─────────────────────────────────────────────────────────── */
.join-panel {
  margin-top: 13px;
  padding: 0 12px 12px;
  overflow: hidden;
  border: 1px solid #ffffffb3;
  border-radius: 10px;
  background: linear-gradient(#ffffff8c, #cdf3f680);
  box-shadow: inset 0 1px #fff, 0 3px 9px #00627c2b;
}
.join-panel .category-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 52px;
  margin: 0 -12px 12px;
  padding: 0 11px;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 2px #2e6b3c;
  letter-spacing: 1px;
  font: 800 22px Fredoka, "Trebuchet MS", sans-serif;
  background: linear-gradient(#c8f09e 0, #7cc44e 42%, #4d9a34 46%, #33791f 100%);
  border-bottom: 1px solid #3c7a34;
  box-shadow: inset 0 1px #e6ffcc, inset 0 -3px 6px #1e501947, 0 4px 9px #285f1e52;
}
.join-panel .category-label span { position: relative; z-index: 1; }
.join-panel .category-label i {
  position: absolute;
  top: 3px; left: 8px; right: 8px;
  height: 45%;
  border-radius: 50%;
  background: #f0ffdc80;
}

/* bypass banner */
.wl-bypass {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #6bc060;
  border-radius: 8px;
  background: linear-gradient(#eaf8d8db, #96d77899);
  box-shadow: inset 0 1px #fff, 0 2px 5px #3f8e2e33;
}
.wl-bypass b { color: #2f8f38; font: 700 9px Tahoma, sans-serif; letter-spacing: .4px; }
.wl-bypass span { color: #31742f; font: 700 8px "Courier New", monospace; }
.wl-bypass.warn {
  border-color: #e0c98a;
  background: linear-gradient(#fdf7e3db, #f0dfa899);
  box-shadow: inset 0 1px #fff, 0 2px 5px #8a6a1e33;
}
.wl-bypass.warn b { color: #8a6a1e; }
.wl-bypass.warn span { color: #7a6220; }

/* step */
.wl-step {
  display: grid;
  gap: 9px;
  padding: 6px 4px 2px;
  text-align: left;
}
.wl-step-num { color: #2a9c43; font: 700 11px "Courier New", monospace; }
.wl-step h3 { margin: 0; color: #075570; font: 700 18px Fredoka, "Trebuchet MS", sans-serif; }
.wl-step label {
  display: grid;
  gap: 4px;
  color: #07536c;
  font: 700 9px Tahoma, sans-serif;
}
.wl-step label .opt { color: #4a7a85; font: 700 7px "Courier New", monospace; letter-spacing: .5px; }
.wl-step input {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  color: #053f57;
  border: 1px solid #64adb8;
  border-radius: 6px;
  background: #f5ffffb3;
  box-shadow: inset 0 2px 5px #004b692b;
}
.wl-step input::placeholder { color: #7aa9b3; }
.wl-step input[disabled] { opacity: .55; cursor: not-allowed; background: #e6f0f2b3; }
.wl-step small { color: #8a5733; font: 700 7px "Courier New", monospace; }
.wl-step-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 4px; }

.wl-msg {
  margin: 2px 0 0;
  padding: 7px 9px;
  border: 1px solid #6bc060;
  border-radius: 6px;
  color: #347a2b;
  background: #dcf0d4;
  font: 700 9px "Courier New", monospace;
}
.wl-msg.error { color: #974343; background: #fff0ed; border-color: #c28080; }

/* ── glossy buttons ───────────────────────────────────────────────────── */
.glossy-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 17px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 1px 1px #0a5f78;
  border: 1px solid #0e6f88;
  border-radius: 18px;
  background: linear-gradient(#c9f6fa 0%, #8fdce4 45%, #2fa9bd 48%, #17879f 100%);
  font: 700 10px Tahoma, Verdana, sans-serif;
  box-shadow: inset 0 1px 1px #fff, inset 0 -2px 3px #004c7d47, 0 2px 3px #004c7347;
  transition: filter .16s, transform .16s;
}
.glossy-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2px; left: 5%; right: 5%;
  height: 42%;
  border-radius: 50%;
  background: linear-gradient(#ffffffbf, #ffffff14);
}
.glossy-button:hover { filter: brightness(1.12); transform: scale(1.025); }
.glossy-button:active { transform: translateY(1px) scale(.99); box-shadow: inset 0 3px 6px #004e7973; }
.glossy-button[disabled], .glossy-button.disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.35); }
.glossy-button.mini { min-height: 24px; padding: 0 11px; border-radius: 12px; font-size: 8px; }

/* ── success ──────────────────────────────────────────────────────────── */
.welcome-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding: 12px;
  color: #2a7c33;
  border: 1px solid #6abd58;
  border-radius: 9px;
  background: linear-gradient(110deg, #eaf6d899, #78c86e3d);
  box-shadow: inset 0 1px #fff, 0 3px 7px #3787342b;
}
.welcome-status h2 { margin: 4px 0; color: #2e9032; font: 700 17px Fredoka, "Trebuchet MS", sans-serif; }
.welcome-status h2 b { font: 700 16px "Courier New", monospace; }
.welcome-status p { margin: 0; font: 9px "Courier New", monospace; }
.welcome-status > div:last-child {
  display: grid;
  gap: 4px;
  text-align: right;
  font: 8px "Courier New", monospace;
}
.welcome-status > div:last-child b { color: #2e9032; font: 700 15px "Trebuchet MS", sans-serif; }
.welcome-status > div:last-child strong { color: #34922e; font: 700 11px Tahoma, sans-serif; }
.welcome-status > div:last-child span { color: #648c44; }

/* relay badge — the onchain tx hash / explorer link */
.welcome-status > div:last-child .wl-relay {
  justify-self: end;
  padding: 2px 7px;
  border: 1px solid #a9d9a4;
  border-radius: 999px;
  background: #eafbe6;
  color: inherit;
  text-decoration: none;
  font: 700 8px "Courier New", monospace;
  letter-spacing: .04em;
}
.welcome-status > div:last-child .wl-relay.ok { color: #2c7a2b; border-color: #8fd08a; }
.welcome-status > div:last-child .wl-relay.warn {
  color: #8a6a1e;
  border-color: #e0c98a;
  background: #fdf7e3;
}

/* ── status strip ─────────────────────────────────────────────────────── */
.wl-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  color: #2d6f7c;
  border-top: 1px dotted #5caab4;
  border-bottom: 1px dotted #5caab4;
  font: 9px "Courier New", monospace;
}
.wl-status > span { color: #318e39; font: 700 9px Tahoma, sans-serif; }
.wl-status b { padding-right: 8px; border-right: 1px dotted #69aeb5; }
.wl-status i { color: #359a36; font-style: normal; }
.wl-status strong { margin-left: auto; color: #287184; font: italic 10px "Trebuchet MS", sans-serif; }

/* ── footer ───────────────────────────────────────────────────────────── */
.portal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 12px;
  padding-top: 10px;
  color: #226b7c;
  border-top: 1px dotted #5caab4;
  font: 9px "Courier New", monospace;
}
.portal-foot span:last-child { margin-left: auto; }
.foot-note { margin: 6px 0 0; color: #518692; font: 8px "Courier New", monospace; }
.foot-note .foot-tag { color: #2f7a8a; }

/* ==========================================================================
   FAUCET ADDITIONS
   ========================================================================== */

/* broadcast in flight */
.drip-wait {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #17879f;
  font: 700 9px "Courier New", monospace;
}
.spinner {
  width: 11px; height: 11px;
  border: 2px solid #9fdfe9;
  border-top-color: #17879f;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* today's ledger */
.drip-ledger {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #ffffffb3;
  border-radius: 10px;
  background: linear-gradient(#ffffff7a, #cdf3f666);
  box-shadow: inset 0 1px #fff, 0 3px 9px #00627c24;
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px dotted #5caab4;
}
.ledger-date { color: #287582; font: 700 8px "Courier New", monospace; }
.lrow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 11px;
  border-bottom: 1px dotted #a9d6dc;
  font: 9px "Courier New", monospace;
}
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: #ffffff59; }
.laddr { color: #07536c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ltime { color: #4a8a97; }
.ltx { color: #17879f; text-decoration: none; }
.ltx:hover { text-decoration: underline; }
.ltx.pending { color: #a08a4a; }

/* how it works */
.drip-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 13px;
}
.fstep {
  padding: 10px 11px;
  border: 1px solid #4aa5b08c;
  border-radius: 9px;
  background: linear-gradient(#ffffff6b, #b9eef43d);
  box-shadow: inset 0 1px #ffffffe6, 0 3px 8px #003a5c24;
}
.fstep .f-n {
  display: block;
  color: #2a9c43;
  letter-spacing: .8px;
  font: 700 9px "Courier New", monospace;
}
.fstep h3 { margin: 5px 0 0; color: #075570; font: 700 15px Fredoka, "Trebuchet MS", sans-serif; }
.fstep p { margin: 5px 0 0; color: #145e70; font-size: 10px; line-height: 1.5; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .chipis-intro { grid-template-columns: 1fr 96px; }
  .chipis-orb { width: 96px; height: 96px; font-size: 30px; }
  .chipis-facts { grid-template-columns: 1fr 1fr; }
  .window-body { padding: 12px; }
  .portal-head h1 { font-size: 24px; }
  .drip-steps { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: 1fr auto; }
  .lrow .ltime { display: none; }
  /* nav: let the 42-char CA take a full row instead of being ellipsised */
  .chip-nav { flex-wrap: wrap; row-gap: 6px; }
  .chip-nav .ca-val { flex: 1 0 100%; }
}
@media (max-width: 460px) {
  .site-wrap { padding: 18px 12px; }
  .chipis-intro { grid-template-columns: 1fr; }
  .chipis-orb { margin: 0 auto; }
  .join-panel .category-label { font-size: 16px; height: 42px; }
  .welcome-status { display: grid; }
  .welcome-status > div:last-child { text-align: left; }
  .welcome-status > div:last-child .wl-relay { justify-self: start; }
  .portal-head { flex-direction: column; align-items: flex-start; }
}
