/* Theme layer only. Does not change escrow, routing, or state. */

:root {
  --lily-mist: rgba(248, 236, 228, 0.78);
  --lily-ink: #2c3a42;
  --dawn-gold: #e8c98a;
  --star-navy: #0b1c3a;
  --star-gold: #f2c14e;
  --impasto: #1a3a6b;
}

html,
body {
  background:
    linear-gradient(180deg, rgba(18, 32, 48, 0.42) 0%, rgba(28, 42, 52, 0.55) 100%),
    url("./monet-pond.png") center / cover fixed no-repeat;
  color: #f4efe6;
}

.grain {
  opacity: 0.045;
}

.lily-wash,
.star-wash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.lily-wash {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(255, 214, 196, 0.28), transparent 60%),
    url("./monet-pond.png") center top / cover no-repeat;
  opacity: 0.38;
  filter: blur(0.4px);
}

.star-wash {
  background: url("./vangogh-swirl.png") center / cover no-repeat;
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity 0.45s ease;
}

body[data-page="home"] .star-wash {
  opacity: 0.22;
}

body[data-page="home"] main {
  max-width: 1120px;
}

body[data-page="home"] .home-kicker {
  color: var(--dawn-gold);
}

body[data-page="home"] .home-tile {
  border-color: rgba(232, 201, 138, 0.38);
  box-shadow: 0 12px 32px rgba(8, 20, 36, 0.35);
}

body[data-page="redeem"] .star-wash {
  opacity: 0.55;
}

body[data-page="redeem"] .lily-wash {
  opacity: 0.12;
}

main,
.site-foot {
  position: relative;
  z-index: 1;
}

.top {
  z-index: 400;
  isolation: isolate;
  overflow: visible;
  border-bottom: 1px solid rgba(232, 201, 138, 0.28);
  background:
    linear-gradient(180deg, rgba(250, 242, 232, 0.55), rgba(214, 228, 232, 0.42)),
    url("./monet-header.png") center / cover no-repeat;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(40, 70, 80, 0.18);
}

.top .mark,
.top nav a,
.top .wallet,
.top .bal {
  color: #1a2830;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.top nav a {
  opacity: 0.92;
  font-weight: 600;
}

.top nav a:hover,
.top nav a:focus {
  opacity: 1;
}

.top .nav-market-link {
  color: #102018;
}

.mega {
  z-index: 10001;
  isolation: isolate;
  background-color: #f4efe6;
  background-image:
    linear-gradient(180deg, #faf6f0, #e4f0ea),
    url("./monet-header.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-color: #1a2830;
  box-shadow: 8px 10px 0 rgba(18, 32, 40, 0.35);
}

.mega-cat {
  background:
    linear-gradient(180deg, rgba(20, 48, 96, 0.55), rgba(8, 20, 48, 0.72)),
    url("./vangogh-impasto.png") center / 220px repeat;
  color: #f6e7a8 !important;
  border-color: rgba(242, 193, 78, 0.65);
}

.mega-cat:hover,
.mega-cat:focus {
  background:
    linear-gradient(180deg, rgba(40, 70, 120, 0.7), rgba(12, 28, 64, 0.8)),
    url("./vangogh-impasto.png") center / 220px repeat;
}

.mega-all {
  background:
    linear-gradient(180deg, rgba(20, 48, 96, 0.55), rgba(8, 20, 48, 0.72)),
    url("./vangogh-impasto.png") center / 220px repeat;
}

.dist {
  color: #1a2830;
}

.lock {
  border-color: rgba(44, 58, 66, 0.45);
  background: rgba(255, 255, 255, 0.35);
  color: var(--lily-ink);
}

.wallet select {
  background: rgba(255, 252, 247, 0.92);
  color: #1a2830;
  border-color: rgba(90, 120, 110, 0.45);
}

.sybil-chip {
  background: rgba(255, 255, 255, 0.4);
  color: var(--lily-ink);
}

.sybil-chip.pass {
  color: #1b5e3a;
  border-color: #3d8b62;
}

.lede,
.filters label {
  color: #f7f3ea;
  text-shadow: 0 1px 2px rgba(20, 36, 44, 0.55);
}

.site-foot {
  color: #dce8e4;
}

.card {
  background: linear-gradient(165deg, rgba(255, 250, 244, 0.92), rgba(232, 242, 236, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 8px 12px 0 rgba(18, 32, 40, 0.28);
  backdrop-filter: blur(8px);
}

body[data-page="reserves"] .card,
body[data-page="reserves"] .math {
  border-radius: 10px;
}

body[data-page="reserves"] .card {
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.82), rgba(220, 236, 230, 0.78)),
    url("./monet-header.png") center / cover no-repeat;
}

body[data-page="reserves"] .math {
  background: rgba(36, 58, 64, 0.55);
  border-left-color: #b7d6c6;
  color: #f3efe4;
}

body[data-page="redeem"] .card:last-of-type,
body[data-page="redeem"] main .proof > .card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(12, 28, 58, 0.72), rgba(18, 40, 78, 0.78)),
    url("./vangogh-swirl.png") center / cover no-repeat;
  color: #f6ecd0;
  border-color: rgba(242, 193, 78, 0.45);
  box-shadow: 6px 8px 0 #0a1630;
}

body[data-page="redeem"] main .proof > .card:nth-child(2) .muted,
body[data-page="redeem"] main .proof > .card:nth-child(2) label {
  color: #d9c98a;
}

body[data-page="redeem"] .quote-break {
  background:
    linear-gradient(135deg, rgba(11, 28, 58, 0.88), rgba(20, 48, 90, 0.82)),
    url("./vangogh-impasto.png") center / cover;
  color: #f7e7b0;
  border: 1px solid rgba(242, 193, 78, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 120, 0.12);
}

button,
.btn {
  background:
    linear-gradient(180deg, rgba(20, 48, 96, 0.55), rgba(8, 20, 48, 0.72)),
    url("./vangogh-impasto.png") center / 220px repeat;
  color: #f6e7a8;
  border: 1px solid rgba(242, 193, 78, 0.55);
  box-shadow: 3px 3px 0 #c9a227;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

button:hover:not(:disabled),
.btn:hover {
  filter: brightness(1.08);
}

button.ghost,
.ghost {
  background: rgba(255, 248, 236, 0.12);
  color: inherit;
  border: 1px solid currentColor;
  box-shadow: none;
}

button.danger {
  background:
    linear-gradient(180deg, rgba(140, 32, 28, 0.85), rgba(70, 12, 10, 0.9)),
    url("./vangogh-impasto.png") center / 180px;
  box-shadow: 3px 3px 0 #4a100c;
}

.meter {
  background: rgba(12, 24, 48, 0.65);
  box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.25);
}

.meter span {
  background:
    linear-gradient(90deg, #1d4e89, #f2c14e);
  box-shadow: 0 0 12px rgba(242, 193, 78, 0.45);
}

.twap {
  padding: 0.4rem;
  background:
    linear-gradient(180deg, rgba(8, 18, 42, 0.55), rgba(8, 18, 42, 0.35)),
    url("./vangogh-swirl.png") center / cover;
  border: 1px solid rgba(242, 193, 78, 0.28);
}

.twap i {
  background:
    linear-gradient(180deg, #f2c14e 0%, #2a5aa0 70%, #0b1c3a 100%);
  box-shadow: 0 0 0 1px rgba(246, 220, 140, 0.25);
}

.math {
  background: rgba(18, 32, 48, 0.72);
  color: #f0e4c0;
  border-left: 3px solid var(--star-gold);
}

.step.on {
  background: #2f6b4a;
}

.peg-band {
  outline: 1px solid rgba(183, 214, 198, 0.4);
}
