/* The public stage pages (upload, request, receive): the landing-page look with one target. */
body.drop-page { min-height: 100vh; min-height: 100dvh; }
.drop-head { padding: 26px 28px; }
.drop-head img { height: 41px; width: auto; display: block; }
.drop-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.drop-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 40px 0; }
.bubble { background: var(--panel); color: var(--ink); border: 1px solid var(--line); font-size: 16px; font-weight: 600; padding: 14px 20px; border-radius: 14px; position: relative; text-align: center; max-width: 300px; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.bubble-sub { font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 4px; }
.bubble-sub b { color: var(--ink); }
.target { position: relative; width: 200px; height: 200px; border: 0; background: transparent; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.target:focus-visible { outline: 3px solid var(--gold-hover); outline-offset: 10px; border-radius: 50%; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(224, 164, 73, .55); animation: pulse 2.8s ease-out infinite; }
.ring.r2 { animation-delay: .9s; } .ring.r3 { animation-delay: 1.8s; }
.core { position: absolute; inset: 40px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(224, 164, 73, .12), 0 18px 50px rgba(224, 164, 73, .18); transition: transform .15s, background .15s; }
.core img { width: 64px; height: 64px; }
.target:hover .core, .drop-page.dragging .core { transform: scale(1.06); background: var(--gold-hover); }
/* Dot grid behind the page (drop.js draws it) and the target's cursor response: drop.js sets
   --near/--dx/--dy on the target, which warms toward the hover yellow and leans in. Mouse only. */
.dotfield { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.drop-head, .drop-main, .drop-foot { position: relative; z-index: 1; }
.target .core { background: color-mix(in srgb, var(--gold-hover) calc(var(--near, 0) * 100%), var(--gold)); transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(calc(1 + var(--near, 0) * .04)); box-shadow: 0 0 0 8px rgba(224, 164, 73, .12), 0 18px calc(50px + var(--near, 0) * 34px) rgba(255, 196, 73, calc(.18 + var(--near, 0) * .2)); transition: transform .3s ease-out, background .3s ease, box-shadow .3s ease; }
.target .ring { border-color: color-mix(in srgb, var(--gold-hover) calc(var(--near, 0) * 100%), rgba(224, 164, 73, .55)); }
.target:hover .core { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(1.07); background: var(--gold-hover); }
.drop-page.dragging .ring { border-color: var(--gold-hover); }
@keyframes pulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
/* Drop anywhere: full-page state while files are dragged over the window (drop.js adds .dropzone). */
.dropzone { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg); color: var(--ink); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s; }
.dropzone::before { content: ""; position: absolute; inset: 16px; border: 2px dashed var(--gold-hover); border-radius: 24px; }
.drop-page.dragging .dropzone { opacity: 1; visibility: visible; }
.dz-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; transform: scale(.94); transition: transform .22s ease; }
.drop-page.dragging .dz-inner { transform: scale(1); }
.dz-mark { position: relative; width: 240px; height: 240px; animation: bob 1.6s ease-in-out infinite; }
.dz-mark .ring { border-color: var(--gold-hover); animation-duration: 1.5s; }
.dz-mark .ring.r2 { animation-delay: .5s; } .dz-mark .ring.r3 { animation-delay: 1s; }
.dz-mark .core { inset: 50px; background: var(--gold-hover); box-shadow: 0 0 0 10px rgba(255, 196, 73, .14), 0 24px 70px rgba(255, 196, 73, .28); }
.dz-mark .core img { width: 76px; height: 76px; }
.dz-title { font-size: 30px; font-weight: 700; color: var(--ink); background: transparent; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .dz-mark { animation: none; } .dropzone, .dz-inner { transition: none; } }
@media (max-width: 480px) { .dz-mark { width: 190px; height: 190px; } .dz-mark .core { inset: 40px; } .dz-mark .core img { width: 60px; height: 60px; } .dz-title { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; opacity: .5; transform: scale(.75); } .ring.r2 { transform: scale(.95); } .ring.r3 { transform: scale(1.15); } }
.panel { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; width: 100%; max-width: 440px; }
.panel label { color: var(--muted); }
.panel input.plain, .panel textarea.plain { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); color: var(--ink); margin-bottom: 12px; letter-spacing: 0; text-align: left; }
.panel textarea.plain { min-height: 120px; line-height: 1.5; resize: vertical; display: block; }
.panel input:focus, .panel textarea:focus { outline: 2px solid var(--gold-hover); outline-offset: 1px; }
.filehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.plus { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--gold); color: var(--gold-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.plus:hover { background: var(--gold-hover); }
.filelist { border-top: 1px solid var(--line); margin-bottom: 14px; max-height: 190px; overflow: auto; }
.filelist .f { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.filelist .f .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .f .s { color: var(--muted); font-size: 12px; }
.filelist .f .x { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 4px; }
.filelist .f .x:hover { color: var(--gold-hover); }
.filelist .f input[type=checkbox] { width: 18px; height: 18px; accent-color: #E0A449; }
.panel .ptitle { font-size: 22px; margin: 0 0 6px; color: var(--ink); font-weight: 700; }
.panel .psub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.codeboxes { display: flex; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.codeboxes input { width: 48px; height: 58px; font-family: inherit; font-weight: 600; font-size: 24px; line-height: 1; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); color: var(--ink); padding: 0; letter-spacing: 0; margin: 0; }
.codeboxes input:focus { outline: 2px solid var(--gold-hover); outline-offset: 1px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.done-text { text-align: center; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.done-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.drop-page .status { text-align: center; max-width: 440px; }
.drop-foot { color: var(--faint); } .drop-foot b { color: var(--muted); }
@media (max-width: 480px) { .drop-head { padding: 20px 18px; } .target { width: 170px; height: 170px; } .core { inset: 34px; } .core img { width: 56px; height: 56px; } .drop-stage { padding: 24px 0; } .codeboxes input { width: 42px; height: 52px; font-size: 22px; } .codeboxes { gap: 6px; } }
