/* WL application page (wl.html): loud setup wizard over a 20 fps rain of trash (wl.js). */
.wl-page { min-height: 100vh; overflow-x: hidden; background: #4e5a2c; }
#rain { position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none; image-rendering: pixelated; }

.wl-main { position: relative; z-index: 3; max-width: 860px; margin: 0 auto; padding: 46px 16px 120px; display: flex; flex-direction: column; align-items: center; }
.wl-h { position: relative; font: 40px/1.15 'Press Start 2P', monospace; color: var(--yellow); text-align: center; margin: 0 0 14px;
  text-shadow: 4px 4px 0 #000, -4px 0 0 var(--pink), 4px 0 0 var(--cyan); animation: shout .8s steps(1) infinite; }
@keyframes shout { 50% { color: #fff; } 75% { color: var(--stink); } }
.wl-h.glitch::before, .wl-h.glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; opacity: 0; text-shadow: none; }
.wl-h.glitch::before { color: var(--pink); } .wl-h.glitch::after { color: var(--cyan); }
.wl-h.glitch.on::before { opacity: 1; transform: translate(-6px, 0); clip-path: inset(0 0 55% 0); }
.wl-h.glitch.on::after { opacity: 1; transform: translate(6px, 0); clip-path: inset(50% 0 0 0); }
.wl-sub { font: 12px/1.6 'Press Start 2P', monospace; color: #fff; background: #000; padding: 8px 12px; margin: 0 0 30px; text-align: center; border: 2px solid var(--yellow); }
.wl-sub .blink { color: #ff3a3a; }

.wl-win { width: 100%; box-shadow: 10px 10px 0 rgba(0,0,0,.55), 0 0 0 4px #000; }
.wl-win .title { background: linear-gradient(#ff8ad0 0 4px, #ff3fa4 4px 10px, #e8208a 10px 26px, #c8106f 26px 30px, #a00a58 30px); text-shadow: 2px 2px 0 #5a0030; }
.wl-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); background: var(--xp-face); }
.wl-side { background: linear-gradient(#0a4fb0, #17122a); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.wl-pile { width: 96px; height: 96px; border: 3px solid #fff; box-shadow: 4px 4px 0 #000; }
.wl-steps { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; font: 12px 'Silkscreen', monospace; }
.wl-steps li { padding: 6px 8px; border: 2px solid transparent; color: #9fb5e0; }
.wl-steps li::before { content: "\25A1  "; }
.wl-steps li.on { color: #000; background: var(--yellow); border-color: #000; }
.wl-steps li.ok { color: var(--stink); }
.wl-steps li.ok::before { content: "\25A0  "; }
.wl-count { margin-top: auto; text-align: center; background: #000; border: 2px solid var(--stink); padding: 8px 6px; width: 100%; }
.wl-count b { display: block; font: 20px 'Press Start 2P', monospace; color: var(--stink); }
.wl-count span { font: 9px 'Press Start 2P', monospace; color: #aaa; }

/* the form = a crumpled pixel paper sheet (texture drawn by wl.js into --paper, 3 css px per pixel),
   floating in the middle of the window with margin all round, never touching the frame */
.wl-paperbox { display: grid; place-items: center; padding: 26px 22px 30px; min-width: 0;
  background: repeating-linear-gradient(45deg, #d9d4bf 0 2px, var(--xp-face) 2px 6px); }
.wl-form { position: relative; isolation: isolate; width: 100%; max-width: 540px; padding: 36px 34px 32px; color: #000; min-width: 0; }
.wl-form::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--paper, #f1ecdd) 0 0 / var(--paper-size, 100% 100%) no-repeat; image-rendering: pixelated;
  filter: drop-shadow(6px 6px 0 rgba(0,0,0,.28)); }
.wl-step h2 { font: 15px/1.4 'Press Start 2P', monospace; margin: 0 0 6px; color: #0a246a; }
.wl-note { font: 20px/1.2 'VT323', monospace; margin: 0 0 18px; color: #333; }
.wl-f { display: block; margin: 0 0 18px; }
.wl-l { display: block; font: 700 13px 'Silkscreen', monospace; margin-bottom: 6px; }
.wl-form input[type=text], .wl-form input[type=url] {
  width: 100%; font: 22px 'VT323', monospace; padding: 6px 8px; color: #000; background: #fff;
  border: 2px solid #7f9db9; box-shadow: inset 2px 2px 0 #c9c5b2; border-radius: 0; outline: none; }
.wl-form input:focus { border-color: var(--pink); box-shadow: inset 2px 2px 0 #c9c5b2, 0 0 0 3px var(--yellow); }
.wl-form input.bad { border-color: #d63a1a; background: #fff0ec; animation: shake .2s steps(2) 2; }
@keyframes shake { 50% { transform: translateX(4px); } }
.opt { font: 400 11px 'Silkscreen', monospace; color: #666; }
.mint-note { font: 700 11px 'Silkscreen', monospace; color: #d63a1a; white-space: nowrap; }
.wl-err { display: block; min-height: 14px; font: 11px 'Silkscreen', monospace; color: #d63a1a; margin-top: 4px; }
.at { display: flex; align-items: stretch; }
.at i { font: 700 16px 'Silkscreen', monospace; font-style: normal; display: grid; place-items: center; padding: 0 10px; background: #000; color: var(--yellow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* floor slider: chunky pixel track */
.floor-read { font: 22px 'VT323', monospace; margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.floor-v { font: 20px 'Press Start 2P', monospace; color: #0a246a; }
.floor-tag { font: 10px 'Press Start 2P', monospace; color: #fff; background: var(--c, #3c9c3c); padding: 4px 6px; border: 2px solid #000; }
.wl-form input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; }
.wl-form input[type=range]::-webkit-slider-runnable-track { height: 14px; border: 2px solid #000;
  background: linear-gradient(90deg, #3c9c3c, #ffe14a 45%, #f7a46a 70%, #ff3fa4); }
.wl-form input[type=range]::-moz-range-track { height: 10px; border: 2px solid #000; background: linear-gradient(90deg, #3c9c3c, #ffe14a 45%, #f7a46a 70%, #ff3fa4); }
.wl-form input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 26px; margin-top: -8px; background: #fff; border: 3px solid #000; box-shadow: 3px 3px 0 #000; border-radius: 0; }
.wl-form input[type=range]::-moz-range-thumb { width: 14px; height: 22px; background: #fff; border: 3px solid #000; box-shadow: 3px 3px 0 #000; border-radius: 0; }
.wl-form input[type=range]:focus-visible { outline: 3px dashed var(--pink); outline-offset: 2px; }
.floor-ends { display: flex; justify-content: space-between; font: 10px 'Press Start 2P', monospace; color: #555; margin-top: 4px; }

/* step 2 tasks */
.task { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; padding: 14px 12px; margin-bottom: 14px; background: rgba(255,255,255,.45); border: 2px dashed #8f7650; cursor: pointer; position: relative; }
.task input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.task:has(input:focus-visible) { outline: 3px dashed var(--pink); outline-offset: 2px; }
.task .chk { display: grid; place-items: center; font: 16px/1 'Press Start 2P', monospace; color: #fff; }
.task:has(input:checked) { border-style: solid; border-color: #3c9c3c; background: #f1fbe8; }
.task:has(input:checked) .chk { background: #3c9c3c; }
.task:has(input:checked) .chk::after { content: "\2713"; font-family: 'VT323', monospace; font-size: 26px; }
.wl-form input[type=text], .wl-form input[type=url] { background: rgba(255,255,255,.7); border-color: #3b3427; box-shadow: inset 2px 2px 0 rgba(0,0,0,.12); }
.task b { font: 700 13px 'Silkscreen', monospace; display: block; }
.task small { font: 18px 'VT323', monospace; color: #666; }
.chk { width: 22px; height: 22px; border: 3px solid #000; background: #fff; }
.task.done { border-color: #3c9c3c; background: #f1fbe8; }
.task.done .chk { background: #3c9c3c; box-shadow: inset 0 0 0 3px #fff; }
.task.nag { animation: nag .5s steps(1) 3; }
@keyframes nag { 50% { border-color: var(--pink); background: #ffe4f3; } }
.tag-in { min-width: 0; }
/* hover / tap on 'announcement' -> black chip, white pixel text */
.tip { position: relative; cursor: help; outline: none; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  z-index: 20; pointer-events: none; opacity: 0; white-space: nowrap;
  font: 9px/1 'Press Start 2P', monospace; color: #fff; text-shadow: none; letter-spacing: 0;
  background: #000; padding: 7px 8px; border: 2px solid #fff; box-shadow: 3px 3px 0 #000; animation: none; }
.tip:hover::after, .tip:focus::after { opacity: 1; }
/* the word 'announcement': RGB split + cycling red/green/blue */
.rgb { font-weight: 700; color: #ff2a2a; text-shadow: -2px 0 0 var(--cyan), 2px 0 0 var(--pink), 0 2px 0 #000;
  animation: rgb .45s steps(1) infinite; }
@keyframes rgb { 33% { color: #19d43c; text-shadow: 2px 0 0 var(--pink), -2px 0 0 var(--yellow), 0 2px 0 #000; }
  66% { color: #2a5cff; text-shadow: -2px 0 0 var(--yellow), 2px 0 0 var(--cyan), 0 2px 0 #000; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

.wl-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.wl-nav .xp-btn { font-size: 14px; padding: 12px 20px; }
.wl-form button[disabled] { opacity: .6; cursor: wait; }

.done h2 { font-size: 22px; color: #d63a1a; }
.big-no { font: 14px 'Press Start 2P', monospace; margin: 14px 0 16px; }
.big-no b { font-size: 26px; color: var(--pink); text-shadow: 3px 3px 0 #000; }
.fine { font: 11px/1.6 'Silkscreen', monospace; color: #666; margin: 0 0 16px; }

.status .st-msg.err { color: #d63a1a; }


@media (max-width: 760px) {
  .wl-h { font-size: 19px; }
  .wl-sub { font-size: 9px; }
  .wl-win { min-width: 0; }
  .wl-body { grid-template-columns: minmax(0, 1fr); }
  .wl-step h2 { font-size: 12px; }
  .floor-v { font-size: 16px; }
  /* phones: the sidebar shrinks to one thin strip (steps as chips + counter) so the paper form comes first */
  .wl-main { padding-top: 28px; }
  .wl-sub { margin-bottom: 20px; }
  .wl-side { flex-direction: row; align-items: stretch; padding: 8px; gap: 8px; }
  .wl-pile { display: none; }
  .wl-steps { display: flex; flex: 1; gap: 4px; font-size: 9px; }
  .wl-steps li { flex: 1; padding: 5px 4px; text-align: center; display: grid; place-items: center; }
  .wl-steps li::before, .wl-steps li.ok::before { content: none; }
  .wl-count { margin-top: 0; width: auto; padding: 4px 8px; display: grid; place-items: center; }
  .wl-count b { font-size: 14px; }
  .wl-count span { font-size: 7px; }
  .wl-paperbox { padding: 16px 12px 20px; }
  .wl-form { padding: 28px 18px 24px; }
  .task { grid-template-columns: 22px 1fr; }
  .task .xp-btn { grid-column: 1 / -1; text-align: center; }
  .pair { grid-template-columns: 1fr; }
  .wl-tab { padding: 0 8px; }
}

/* landfill holders (landfill.json): wallet holds an NFT whose art is in the piles -> spot secured when they apply */
.wl-holds { margin: -8px 0 18px; padding: 10px 12px; background: var(--yellow); border: 3px solid #000; box-shadow: 4px 4px 0 #000; font: 20px/1.15 'VT323', monospace; color: #000; }
.wl-holds[hidden] { display: none; }
.wl-holds b { display: block; font: 10px/1.6 'Press Start 2P', monospace; color: #d63a1a; }
.wl-holds.wait { background: #000; color: #ccc; box-shadow: none; border-color: #555; }
/* Cloudflare Turnstile box (step 2) */
.wl-captcha { display: block; margin: 10px 0 4px; }
.wl-captcha[hidden] { display: none; }
.wl-captcha .cf-box { margin-top: 6px; max-width: 320px; min-height: 65px; }
