:root {
  color-scheme: dark;
  --night: #071925;
  --night-soft: #0b2231;
  --blue-ash: #17374a;
  --ice: #d2f2f4;
  --frost: #b1dfe5;
  --glacier: #7db9c8;
  --aqua: #61c6d5;
  --muted: #92b0bc;
  --line: rgba(181, 226, 232, .19);
  --glass: rgba(13, 35, 50, .62);
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ice);
  background:
    radial-gradient(ellipse at 52% 0%, rgba(52, 105, 126, .34), transparent 38%),
    radial-gradient(ellipse at 8% 80%, rgba(33, 93, 113, .18), transparent 34%),
    linear-gradient(145deg, #06131e 0%, var(--night) 48%, #091c2c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body::before {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  inset: 0;
  content: "";
  opacity: .2;
  background: radial-gradient(430px circle at var(--pointer-x) var(--pointer-y), rgba(125, 205, 216, .13), transparent 72%);
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
#snow-canvas { position: fixed; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.aurora { position: fixed; z-index: 0; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(96px); opacity: .13; pointer-events: none; }
.aurora-a { top: 27%; left: -23rem; background: #428ea4; }
.aurora-b { right: -22rem; bottom: 2%; background: #6686b1; }
.topbar, .shell, .footer { position: relative; z-index: 2; }
.topbar { max-width: 1160px; margin: 0 auto; padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(178, 225, 232, .1); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.brand em { color: var(--aqua); font-style: normal; font-weight: 500; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(173, 224, 231, .48); border-radius: 50%; color: var(--aqua); box-shadow: 0 0 23px rgba(97, 198, 213, .17), inset 0 0 12px rgba(97, 198, 213, .08); }
.back-link { color: var(--muted); font-size: 11px; transition: color .2s ease; }
.back-link:hover { color: var(--ice); }
.back-link span { margin-left: 5px; color: var(--aqua); }
.shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 50px; }
.hero { min-height: 390px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 54px 28px 35px; }
.hero-copy { max-width: 570px; }
.eyebrow, .upload-overline { margin: 0 0 16px; color: var(--aqua); font-size: 9px; font-weight: 800; letter-spacing: .23em; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #89d9c4; box-shadow: 0 0 14px rgba(137, 217, 196, .8); animation: pulse 2s ease infinite; }
h1 { margin: 0; font-size: clamp(3.8rem, 8vw, 6.8rem); font-weight: 300; letter-spacing: -.085em; line-height: .91; }
h1 span { color: var(--frost); font-weight: 680; text-shadow: 0 0 36px rgba(97, 198, 213, .22); }
.intro { max-width: 470px; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: #9bb9c1; font-size: 10px; letter-spacing: .04em; }
.hero-notes i { margin-right: 6px; color: var(--aqua); font-size: 9px; font-style: normal; }
.ice-core { position: relative; width: 255px; height: 255px; flex: none; display: grid; place-items: center; }
.core-glow { position: absolute; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(226, 251, 252, .9), rgba(97, 198, 213, .33) 36%, rgba(43, 100, 121, .04) 74%); filter: blur(2px); box-shadow: 0 0 80px rgba(97, 198, 213, .13); animation: core-breathe 5s ease-in-out infinite; }
.core-ring { position: absolute; width: 190px; height: 190px; border: 1px solid rgba(183, 232, 237, .3); border-radius: 43% 57% 58% 42%; transform: rotate(29deg); box-shadow: inset 0 0 32px rgba(113, 190, 205, .07), 0 0 24px rgba(113, 190, 205, .06); }
.ring-one { animation: orbit 18s linear infinite; }
.ring-two { width: 226px; height: 226px; border-color: rgba(159, 203, 219, .15); transform: rotate(-24deg); animation: orbit-reverse 26s linear infinite; }
.core-star { position: relative; z-index: 1; color: #ebfbfb; font-size: 37px; text-shadow: 0 0 24px rgba(210, 242, 244, .9); }
.core-label { position: absolute; color: #7297a3; font-size: 8px; letter-spacing: .19em; }
.label-top { top: 12px; right: -2px; }
.label-bottom { left: -1px; bottom: 18px; }
.upload-card, .result-card, .trust-row > div {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(24, 57, 75, .56), rgba(9, 27, 41, .67));
  box-shadow: 0 24px 70px rgba(1, 9, 17, .24), inset 0 1px 0 rgba(226, 248, 250, .045);
  backdrop-filter: blur(23px) saturate(135%);
  -webkit-backdrop-filter: blur(23px) saturate(135%);
}
.upload-card { min-height: 286px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-style: dashed; border-color: rgba(159, 218, 228, .32); border-radius: 22px; cursor: pointer; transition: transform .26s ease, border-color .26s ease, background .26s ease, box-shadow .26s ease; }
.upload-card:hover, .upload-card:focus-visible, .upload-card.is-dragging { outline: none; transform: translateY(-3px); border-color: rgba(155, 231, 238, .7); background: linear-gradient(135deg, rgba(36, 84, 105, .62), rgba(10, 32, 47, .74)); box-shadow: 0 24px 80px rgba(1, 10, 18, .3), 0 0 38px rgba(97, 198, 213, .1), inset 0 0 38px rgba(97, 198, 213, .055); }
.upload-card.is-uploading { cursor: progress; }
.upload-orbit { width: 57px; height: 57px; display: grid; place-items: center; margin-bottom: 15px; border: 1px solid rgba(175, 230, 236, .38); border-radius: 50%; color: var(--ice); background: rgba(104, 187, 203, .1); box-shadow: 0 0 27px rgba(97, 198, 213, .14), inset 0 0 18px rgba(164, 224, 231, .08); font-size: 25px; transition: transform .28s ease, box-shadow .28s ease; }
.upload-card:hover .upload-orbit, .upload-card.is-dragging .upload-orbit { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 38px rgba(97, 198, 213, .28), inset 0 0 18px rgba(164, 224, 231, .12); }
.upload-overline { margin: 0 0 7px; font-size: 8px; }
.upload-card h2 { margin: 0; color: #d5eef1; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 600; letter-spacing: -.045em; }
.upload-copy { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.upload-copy button { padding: 0; border: 0; border-bottom: 1px solid rgba(115, 204, 217, .5); color: var(--aqua); background: transparent; }
.upload-copy button:hover { color: var(--ice); }
.drop-hint { margin: 22px 0 0; color: #7895a1; font-size: 9px; letter-spacing: .025em; }
.drop-hint span { padding: 0 6px; color: var(--aqua); }
.progress-wrap { width: min(390px, 100%); margin-top: 24px; text-align: left; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(185, 222, 228, .12); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #65b5c6, #c2ebed); box-shadow: 0 0 15px rgba(120, 219, 227, .7); transition: width .18s ease; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 15px; }
.trust-row > div { min-height: 75px; display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-radius: 14px; }
.trust-icon { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border: 1px solid rgba(161, 221, 228, .19); border-radius: 10px; color: var(--aqua); background: rgba(99, 182, 198, .08); font-size: 16px; }
.trust-row p { margin: 0; }
.trust-row strong, .trust-row small { display: block; }
.trust-row strong { color: #c7e8ec; font-size: 11px; font-weight: 650; }
.trust-row small { margin-top: 2px; color: #7895a1; font-size: 8px; }
.result-card { margin-top: 18px; padding: 22px; border-radius: 18px; animation: rise-in .36s ease both; }
.result-head { display: flex; align-items: center; gap: 12px; }
.result-check { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(120, 225, 190, .38); border-radius: 50%; color: #8adfc1; background: rgba(88, 202, 158, .1); }
.result-kicker { margin: 0 0 2px; color: #83ceb6; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.result-title h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.035em; }
.file-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 13px; padding: 12px; border: 1px solid rgba(175, 219, 227, .12); border-radius: 12px; background: rgba(5, 20, 31, .34); }
.file-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: var(--aqua); background: rgba(89, 165, 183, .12); font-size: 18px; }
.file-info { min-width: 0; }
.file-info strong, .file-info small { display: block; }
.file-info strong { overflow: hidden; color: #cbe9ec; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-info small { margin-top: 3px; color: #7895a1; font-size: 8px; }
.link-row { display: flex; gap: 9px; }
.share-link { min-width: 0; flex: 1; overflow: hidden; padding: 11px 12px; border: 1px solid rgba(147, 203, 213, .15); border-radius: 9px; color: #a9d7df; background: rgba(5, 18, 29, .45); font: 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.copy-button, .delete-button { border: 1px solid rgba(159, 221, 229, .28); border-radius: 9px; color: var(--ice); background: rgba(104, 187, 203, .12); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.copy-button { flex: none; padding: 0 15px; font-size: 9px; font-weight: 700; }
.copy-button:hover, .delete-button:hover { transform: translateY(-1px); border-color: rgba(177, 236, 241, .6); background: rgba(104, 187, 203, .22); }
.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; }
.expiry-note { color: #7895a1; font-size: 8px; }
.delete-button { padding: 7px 10px; color: #e7aeb5; border-color: rgba(217, 148, 160, .2); background: rgba(123, 47, 62, .12); font-size: 8px; }
.delete-button:disabled { cursor: wait; opacity: .55; }
.status-message { min-height: 18px; margin: 10px 3px 0; color: #89a8b2; font-size: 9px; text-align: center; }
.status-message.success { color: #8adfc1; }
.status-message.warning { color: #e8c789; }
.status-message.error { color: #e8a6b0; }
.footer { width: min(1080px, calc(100% - 48px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 18px 4px 25px; border-top: 1px solid rgba(178, 225, 232, .1); color: #6e8a95; font-size: 8px; letter-spacing: .04em; }

@keyframes pulse { 50% { opacity: .48; box-shadow: 0 0 5px rgba(137, 217, 196, .4); } }
@keyframes orbit { to { transform: rotate(389deg); } }
@keyframes orbit-reverse { to { transform: rotate(-384deg); } }
@keyframes core-breathe { 50% { transform: scale(1.1); filter: brightness(1.06); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .topbar { padding: 18px 21px; }
  .shell, .footer { width: min(100% - 34px, 650px); }
  .hero { min-height: 335px; padding: 52px 8px 32px; }
  .ice-core { width: 185px; height: 190px; transform: scale(.83); transform-origin: center right; margin-left: -30px; }
  .core-ring { width: 160px; height: 160px; }
  .ring-two { width: 193px; height: 193px; }
}
@media (max-width: 560px) {
  .topbar { padding: 16px 17px; }
  .brand { font-size: 11px; }
  .brand-mark { width: 27px; height: 27px; }
  .back-link { font-size: 9px; }
  .shell, .footer { width: min(100% - 30px, 480px); }
  .hero { min-height: auto; padding: 49px 4px 27px; }
  .hero-copy { max-width: 100%; }
  .hero-notes { gap: 13px; margin-top: 20px; font-size: 8px; }
  .ice-core { display: none; }
  .intro { max-width: 350px; font-size: 12px; }
  .upload-card { min-height: 260px; padding: 25px 17px; border-radius: 18px; }
  .drop-hint { max-width: 270px; line-height: 1.8; }
  .trust-row { grid-template-columns: 1fr; gap: 8px; }
  .trust-row > div { min-height: 62px; }
  .result-card { padding: 16px; }
  .link-row { flex-direction: column; }
  .copy-button { min-height: 38px; }
  .result-actions { align-items: flex-start; flex-direction: column; }
  .footer { padding-bottom: 18px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Cloudflare Turnstile access gate */
.turnstile-gate{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:18px;background:rgba(2,12,20,.8);backdrop-filter:blur(12px)}
.turnstile-panel{width:min(100%,430px);padding:28px;border:1px solid rgba(159,218,228,.4);border-radius:18px;color:var(--ice);background:rgba(7,25,37,.96);box-shadow:0 24px 80px rgba(1,9,17,.7);text-align:center}.turnstile-kicker{margin:0 0 8px;color:var(--aqua);font-size:9px;font-weight:800;letter-spacing:.2em}.turnstile-panel h2{margin:0;font-size:26px}.turnstile-panel>p:not(.turnstile-kicker):not(.turnstile-status){margin:10px auto 20px;color:var(--muted);font-size:12px}.turnstile-widget{display:flex;justify-content:center;min-height:65px}.turnstile-status{min-height:18px;margin:14px 0 0;color:var(--muted);font-size:11px}.turnstile-status.is-error{color:#e8a6b0}.turnstile-status.is-busy{color:var(--aqua)}.turnstile-gate[hidden]{display:none!important}
@media(max-width:480px){.turnstile-panel{padding:24px 16px}.turnstile-widget{overflow-x:auto}}
