@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/montserrat-latin.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/montserrat-latin-ext.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --black: #000; --white: #fff; --soft: #DBDBDB; --dim: #9a9a9a; --bar: #232323;
  --pink: #B4485C; --line: #62ABB2; --teal: #22B9C1; --teal-hover: #1FA4AB; --teal-active: #1B8C92; --off: #CECECE;
  --wallpaper: url('/wallpapers/1.jpg');
}
*, *::before, *::after { box-sizing: border-box; }
html { font-family: 'Montserrat', system-ui, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: #000; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; color: var(--white); position: relative; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: #000 var(--wallpaper) 50% 50% / cover no-repeat; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The card */
.stage { display: grid; place-items: center; padding: 24px 16px; min-width: 0; }
.card { background: var(--black); color: var(--white); width: min(260px, 100%); position: relative; transition: width .2s ease, opacity .2s ease-in-out; }
.drop-area { display: block; background: var(--white); color: var(--pink); margin: 10px; padding: 10px; position: relative; cursor: pointer; }
.drop-area .instructions { display: block; margin: 0; padding: 40px 10px; border: 2px dotted var(--line); text-align: center; text-transform: uppercase; line-height: 1.2; transition: border-color .15s; }
.drop-area:hover .instructions, .drop-area:focus-within .instructions { border-style: dashed; border-color: var(--teal-active); }
.drop-area input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.limit-line { margin: -2px 10px 0; font-size: 11px; letter-spacing: .04em; color: var(--dim); text-align: center; text-transform: uppercase; }
.details { padding: 10px 20px; font-size: 13px; font-weight: 400; }
.details h1 { margin: 0; font-weight: 700; font-size: 18px; text-transform: uppercase; }
.details p { color: var(--soft); margin: 10px 0 16px; line-height: 1.25; }
.details p:last-child { margin-bottom: 8px; }
.main-button { display: block; width: 100%; min-height: 60px; line-height: 1.2; padding: 10px 16px; background: var(--teal); color: var(--white); border: 0; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .12s; }
.main-button:hover { background: var(--teal-hover); }
.main-button:active { background: var(--teal-active); }
.main-button[disabled] { background: var(--off); cursor: default; }
.nojs-field { display: flex; gap: 8px; align-items: flex-start; padding: 0 20px 14px; font-size: 12px; color: var(--soft); line-height: 1.3; }
.nojs-field input { margin: 1px 0 0; accent-color: var(--teal); }

/* Footer */
footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; min-height: 100px; padding: 40px 20px 6px; font-size: 13px; text-shadow: 1px 1px 1px #000; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.38) 100%); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
footer a, footer a:visited { display: inline-block; line-height: 30px; color: var(--white); text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }
.wp-light footer { background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 100%); text-shadow: 1px 1px 1px #fff; }
.wp-light footer a, .wp-light footer a:visited { color: #000; }

/* Peek at the wallpaper: fades the page away while pointing at or focused on the link */
.stage, footer .right { transition: opacity .2s ease-in-out; }
body:has(footer a.wallpaper:hover) .stage, body:has(footer a.wallpaper:hover) footer .right,
body:has(footer a.wallpaper:focus-visible) .stage, body:has(footer a.wallpaper:focus-visible) footer .right { opacity: 0; transition: opacity 2s ease-out; }

/* Text pages */
.text-page .panel { margin: clamp(16px, 4vw, 30px); padding: clamp(20px, 4vw, 30px); background: rgba(0,0,0,.55); color: var(--white); font-size: 14px; line-height: 1.5; text-shadow: 1px 1px 1px #000; align-self: start; min-width: 0; }
.text-page .panel h1 { font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 0 0 14px; }
.text-page .panel h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin: 22px 0 6px; }
.text-page .panel p, .text-page .panel ol, .text-page .panel ul { max-width: 68ch; margin: 0 0 12px; }
.text-page .panel ol, .text-page .panel ul { padding-left: 20px; }
.text-page .panel li { margin-bottom: 6px; }
.back { color: var(--white); display: inline-block; margin-top: 8px; }
.wallpaper-info .current { font-weight: 700; }
.not-found .big { font-size: clamp(48px, 12vw, 96px); font-weight: 700; line-height: 1; margin: 0 0 10px; }

/* Result */
.uploaded { display: grid; place-items: center; grid-template-rows: 1fr; }
.uploaded::before { display: none; }
.result-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.result-bar { width: 100%; background: var(--bar); color: var(--white); padding: 20px clamp(16px, 3vw, 35px); }
.result-bar > p { margin: 0 0 14px; font-size: 14px; }
.url { display: flex; background: var(--white); color: #000; position: relative; min-height: 60px; }
.url::after { content: ''; position: absolute; top: 16px; left: -18px; border-style: solid; border-width: 0 18px 14px 0; border-color: transparent var(--white); }
.url input { flex: 1; min-width: 0; padding: 0 clamp(12px, 2vw, 30px); border: 0; background: transparent; color: #000; font-size: 15px; }
.url input:focus { outline: none; }
.url .button, .url button { flex: none; min-width: 120px; display: grid; place-items: center; padding: 0 20px; background: var(--teal); color: var(--white); border: 0; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.url .button:hover, .url button:hover { background: var(--teal-hover); }
.url button:active { background: var(--teal-active); }
.result-more { margin: 12px 0 0 !important; font-size: 13px !important; color: var(--soft); }

/* Login */
.login-page { display: grid; place-items: center; grid-template-rows: 1fr; background: #141518; }
.login-page::before { display: none; }
.login { padding: 0; width: min(320px, calc(100vw - 32px)); }
.login h1 { margin: 0; padding: 22px 20px 10px; font-size: 18px; text-transform: uppercase; }
.login label { display: block; padding: 6px 20px 4px; font-size: 13px; color: var(--soft); }
.login input { display: block; width: calc(100% - 40px); margin: 0 20px 22px; padding: 12px; background: var(--white); color: #000; border: 0; }
.login-error { margin: 0; padding: 4px 20px 8px; font-size: 13px; color: #ff8fa3; }

@media (max-width: 480px) {
  footer { padding: 30px 14px 6px; }
  footer ul { gap: 0 16px; }
  .url { flex-wrap: wrap; }
  .url::after { display: none; }
  .url input { width: 100%; flex-basis: 100%; min-height: 54px; }
  .url .button, .url button { flex: 1; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }
