/* Black, always. Text is white, everything else is a grey mixed from the two. */
:root {
  --bg: #000;
  --text: #fff;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --card: #0d0d0d;
  --hover: #161616;
  --border: #242424;
  --strong: #fff;
  --on-strong: #000;
  --font: "Google Sans Flex", system-ui, sans-serif;
  --font-code: "Google Sans Code", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
}
a { color: var(--text); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--strong); outline-offset: 3px; }
img[src="/pwnctual-logo.png"] { filter: grayscale(1) contrast(1.1); }

.wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 40px; }
@media (min-width: 1024px) {
  .wrap, .wrap.wide { max-width: 1080px; }
  body { font-size: 19px; }
}

/* Site header */
.site-head { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 10px 20px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-code); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.site-brand img { width: 28px; height: 28px; image-rendering: pixelated; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-family: var(--font-code); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: var(--hover); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--hover); }
.home .site-brand { display: none; }
.home .site-head-in { justify-content: center; }

/* Homepage */
.brand { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 24px 0 40px; text-decoration: none; color: var(--text); }
.brand img { width: 104px; height: 104px; image-rendering: pixelated; }
.brand h1 { position: relative; margin: 0; font-family: var(--font-code); font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.home .brand h1::after { content: ""; position: absolute; left: 100%; bottom: .2em; width: .55em; height: .12em; margin-left: .08em; background: currentColor; animation: cursor 1.1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }

.note { position: relative; margin: 0 0 32px; padding: 16px 20px 16px 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-size: 16px; line-height: 1.6; }
.note::before { content: "!"; position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--strong); color: var(--on-strong); font-family: var(--font-code); font-size: 13px; font-weight: 700; line-height: 1; }
.note p { margin: 0; }
.note ol { margin: 8px 0 0; }

.video { max-width: 800px; margin: 0 auto 32px; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.cta { display: flex; justify-content: center; margin: 0 0 40px; }
.home main { padding-top: 32px; border-top: 1px solid var(--border); }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px; border: 1px solid var(--strong); border-radius: 10px;
  background: var(--strong); color: var(--on-strong);
  font-family: var(--font-code); font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.button:hover { background: transparent; color: var(--text); }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
footer .discord { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); text-decoration: none; transition: color .15s ease, border-color .15s ease; }
footer .discord:hover { color: var(--text); border-color: var(--text); }
footer .discord i { width: 18px; height: 18px; background: currentColor; -webkit-mask: url(/discord.svg) center / contain no-repeat; mask: url(/discord.svg) center / contain no-repeat; }

/* About */
.contacts { list-style: none; margin: 0; padding: 0; }
.contacts li { margin: 0 0 .4em; }
.contacts span { color: var(--muted); }
.purposes { margin: 0 0 1.2em; padding-left: 1.4em; }
.purposes li { margin: 0 0 .3em; }
.purposes li::marker { font-family: var(--font-code); color: var(--muted); }

/* Back + breadcrumbs */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 40px; }
.back { flex: none; padding: 5px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--font-code); font-size: 14px; text-decoration: none; }
.back:hover { border-color: var(--text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0; padding: 0; font-family: var(--font-code); font-size: 13px; line-height: 1.5; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin: 0 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

/* Page titles: monospace, with a block cursor */
.eyebrow { margin: 0 0 10px; color: var(--muted); font-family: var(--font-code); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.page-head { margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.page-head h1, .hero h1 { margin: 0; font-family: var(--font-code); font-size: 44px; font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.hero h1::after, .page-head h1::after { content: ""; display: inline-block; width: .5em; height: .85em; margin-left: .12em; vertical-align: -0.06em; background: currentColor; }
.hero { margin: 0 0 48px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.hero .desc { max-width: 640px; margin: 16px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.hero .stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 28px; }
.hero .stats .progress { flex: 1 1 260px; max-width: 420px; }
.meta { margin: 0; color: var(--muted); font-family: var(--font-code); font-size: 14px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; font-family: var(--font-code); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.section-title .meta { font-size: 13px; font-weight: 400; }

/* Progress */
.progress { display: flex; align-items: center; gap: 14px; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--strong); transition: width .3s ease; }
.pct { flex: none; min-width: 3em; text-align: right; font-family: var(--font-code); font-size: 14px; font-weight: 600; }

/* Chapter and module cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 26px 26px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.card:hover { border-color: var(--text); background: var(--hover); }
.card .num { position: absolute; top: 18px; right: 22px; font-family: var(--font-code); font-size: 13px; color: var(--faint); }
.card .eyebrow { margin: 0; }
.card h2, .card h3 { margin: 0; font-family: var(--font-code); font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.card .foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 14px; }
.card.big { grid-column: 1 / -1; min-height: 0; padding: 36px; }
.card.big h2 { font-size: 34px; }
.card.big p { font-size: 18px; max-width: 620px; }
.card.big .foot { max-width: 520px; }

/* Lessons: rows that open in place, like pwn.college's module page */
.items { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.item { border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
.item.open { border-color: color-mix(in srgb, var(--text) 40%, var(--border)); }
.item-head { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 22px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.item-head:hover { background: var(--hover); }
.item-head:focus-visible { outline-offset: -2px; }
.icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); }
.icon svg { width: 20px; height: 20px; }
.item-name { flex: 1; min-width: 0; font-family: var(--font-code); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.item-no { flex: none; font-family: var(--font-code); font-size: 13px; color: var(--faint); }
.status { flex: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-code); font-size: 13px; color: var(--faint); }
.status.done { color: var(--text); }
.status.done::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--strong); color: var(--on-strong); font-size: 11px; font-weight: 700; }
.chev { flex: none; color: var(--faint); transition: transform .2s ease; }
.item.open .chev { transform: rotate(90deg); }
.item.done .icon { color: var(--text); }
.item-body { padding: 8px 28px 28px; border-top: 1px solid var(--border); background: var(--bg); }
.item-body > main { padding-top: 24px; }
.item-body .open-page { display: inline-block; margin-top: 24px; font-family: var(--font-code); font-size: 14px; color: var(--muted); }
.item-body .loading { margin: 24px 0 0; color: var(--muted); font-family: var(--font-code); font-size: 14px; }
@media (min-width: 1024px) { .item-body { padding: 8px 48px 36px; } }

/* Lesson text */
main p { margin: 0 0 1.2em; }
main p:last-child { margin-bottom: 0; }
main h2 { margin: 48px 0 18px; font-family: var(--font-code); font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
main > h2:first-child { margin-top: 0; }
main h3 { margin: 40px 0 14px; font-family: var(--font-code); font-size: 21px; font-weight: 600; line-height: 1.35; }
main hr { margin: 48px 0 32px; border: 0; border-top: 1px solid var(--border); }
main ol { margin: 0 0 1.2em; padding-left: 1.4em; }
main ol li { margin: 0 0 .5em; padding-left: .2em; }
main ul.terms { margin: 0 0 1.2em; padding-left: 1.2em; }
main ul.terms li { margin: 0 0 .6em; padding-left: .2em; }
main ul.terms li::marker { color: var(--muted); }
main ol li::marker { color: var(--muted); font-family: var(--font-code); font-weight: 600; }
main blockquote { margin: 1.2em 0 0; padding: 16px 20px; border-left: 3px solid var(--strong); background: var(--card); }
main p code, main li code, main td code { padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); font-family: var(--font-code); font-size: .88em; }
pre.pseudo { margin: 0 0 1.5em; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-family: var(--font-code); font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.code { margin: 0 0 1.5em; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-family: var(--font-code); font-size: 15px; line-height: 1.75; white-space: pre; overflow-x: auto; tab-size: 4; }

/* Switch diagram */
.switches { margin: 32px 0; }
.switches svg { display: block; width: 100%; max-width: 400px; margin: 0 auto; height: auto; }
.switches .track.on { fill: var(--strong); }
.switches .track.off { fill: var(--border); }
.switches .knob { fill: var(--bg); stroke: var(--bg); stroke-width: 2; }
.switches .track.off + .knob { fill: var(--muted); }
.switches .state { fill: var(--muted); font-family: var(--font-code); font-size: 16px; font-weight: 600; letter-spacing: .08em; }
.switches .bit { fill: var(--text); font-family: var(--font-code); font-size: 28px; font-weight: 600; }

/* Place value tables */
.place { margin: 28px 0 32px; overflow-x: auto; }
.place table { margin: 0 auto; border-collapse: separate; border-spacing: 6px; }
.place th { padding-right: 14px; text-align: right; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.place td { min-width: 3.6em; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; text-align: center; font-family: var(--font-code); font-size: 22px; font-weight: 600; background: var(--card); }
.place td:empty { border: 0; background: none; }
.place td.x { min-width: 0; padding: 10px 2px; border: 0; background: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.place tr + tr td:not(.x):not(:empty) { border-color: var(--strong); background: var(--strong); color: var(--on-strong); }
.place tr.plain td:not(.x):not(:empty) { border-color: var(--border); background: var(--card); color: var(--text); }
.place .sum { margin: 18px 0 0; text-align: center; font-family: var(--font-code); font-size: 18px; font-weight: 600; }
table.states { margin: 28px auto; border-collapse: collapse; }
table.states th, table.states td { padding: 10px 28px; border: 1px solid var(--border); text-align: left; }
table.states th { background: var(--card); font-size: 15px; }

/* Side by side */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 32px; }
.compare section { padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.compare section:last-child { border-color: var(--strong); }
main .compare h3 { margin: 0 0 14px; font-size: 17px; }
main .compare ol { margin: 0; }
main .compare li:last-child { margin-bottom: 0; }

/* Challenge: commands, flag, completion */
.challenge { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.challenge-title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-code); font-size: 17px; font-weight: 600; }
.challenge-title .flag-icon { display: grid; place-items: center; }
.challenge-title svg { width: 20px; height: 20px; }
.challenge-desc { margin: 0; }
.challenge-desc code { padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); font-family: var(--font-code); font-size: .88em; }
.chev { display: grid; place-items: center; }
.cmd-group { display: flex; flex-direction: column; gap: 8px; }
.command { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.command::before { content: "$"; flex: none; color: var(--faint); font-family: var(--font-code); font-size: 15px; }
.command code { flex: 1; min-width: 0; font-family: var(--font-code); font-size: 15px; overflow-wrap: anywhere; }
.copy { flex: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font-family: var(--font-code); font-size: 13px; font-weight: 600; cursor: pointer; }
.copy:hover { border-color: var(--text); }
.cmd-note { margin: 0; font-size: 15px; color: var(--muted); }
.flag-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.flag-form[hidden], .complete[hidden] { display: none; }
.flag-input { flex: 1 1 260px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font-family: var(--font-code); font-size: 16px; }
.flag-input:focus { outline: none; border-color: var(--text); }
.flag-msg { margin: 0; font-family: var(--font-code); font-size: 14px; font-weight: 600; }
.flag-msg:empty { display: none; }

.complete-row { display: flex; margin-top: 40px; }
.complete { align-self: flex-start; padding: 12px 24px; border: 1px solid var(--strong); border-radius: 10px; background: transparent; color: var(--text); font-family: var(--font-code); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
.complete:hover, .complete.done { background: var(--strong); color: var(--on-strong); }
.complete.static { cursor: default; }

.lesson-nav { display: flex; gap: 14px; margin-top: 40px; }
.lesson-nav-btn { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 22px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; }
.lesson-nav-btn.next { text-align: right; }
.lesson-nav-btn .dir { font-family: var(--font-code); font-size: 13px; color: var(--muted); }
.lesson-nav-btn .to { font-family: var(--font-code); font-size: 16px; font-weight: 600; }
a.lesson-nav-btn:hover { border-color: var(--text); background: var(--card); }
.lesson-nav-btn[aria-disabled="true"] { opacity: .35; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding-top: 28px; }
  .page-head h1, .hero h1 { font-size: 32px; }
  .brand h1 { font-size: 36px; }
  .hero .desc { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .card, .card.big { min-height: 0; padding: 22px; }
  .card.big h2 { font-size: 26px; }
  .item-head { gap: 12px; padding: 14px 16px; }
  .item-name { font-size: 16px; }
  .item-no { display: none; }
  .item-body { padding: 4px 16px 20px; }
  .challenge { padding: 20px; }
  .lesson-nav { flex-direction: column; }
  .lesson-nav-btn.next { text-align: left; }
  .site-nav a { padding: 6px 10px; }
  .place th { font-size: 12px; padding-right: 6px; }
  .place td { min-width: 0; padding: 8px 10px; font-size: 18px; }
  .place .sum { font-size: 15px; }
}

/* Sign in / signed-in user in the top bar */
.site-nav .nav-signin { border: 1px solid var(--border); color: var(--text); }
.site-nav .nav-signin:hover { border-color: var(--text); background: none; }
.site-nav .nav-user { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.nav-user img { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); }

/* Profile: /u/<login> */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.profile-head .avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--border); }
.profile-head h1 { overflow-wrap: anywhere; }
.profile-name { margin: 8px 0 0; color: var(--muted); font-size: 19px; }
.profile-head .meta { margin-top: 10px; }
.profile-head .meta a { color: var(--muted); }
.profile-section { margin: 0 0 48px; }
.profile-chapters, .solved { list-style: none; margin: 24px 0 0; padding: 0; }
.profile-chapters li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--border); }
.profile-chapters li > a { flex: 1 1 260px; font-family: var(--font-code); font-size: 16px; text-decoration: none; }
.profile-chapters li > a:hover { text-decoration: underline; }
.profile-chapters .progress { flex: 1 1 220px; }
.solved li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.solved li:first-child { border-top: 0; }
.solved a { font-family: var(--font-code); font-size: 17px; font-weight: 600; text-decoration: none; }
.solved a:hover { text-decoration: underline; }
.signout { background: transparent; color: var(--text); border-color: var(--border); }
.signout:hover { border-color: var(--text); }
@media (max-width: 640px) {
  .site-nav .nav-user { font-size: 0; gap: 0; }
  .profile-head .avatar { width: 72px; height: 72px; }
}

/* ---- Badges ----
   Proof you finished something. 1-bit pixel art, black and white like everything else. Badges stay still. */
.emblem { display: block; width: 100%; height: 100%; }
.emblem .px-ink { fill: var(--text); }
.emblem .px-paper { fill: var(--bg); }
.badges { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 18px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--card); text-align: center; }
.badge .badge-art { width: 110px; height: 147px; margin-bottom: 14px; }
.badge b { font-family: var(--font-code); font-size: 19px; font-weight: 600; }
.badge span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.badge time { margin-top: 4px; color: var(--faint); font-family: var(--font-code); font-size: 13px; }
.badge-hint { margin: 0 0 12px; color: var(--muted); }

/* Badge unlocked! The full screen reveal: always white on black */
body.unlock-open { overflow: hidden; }
.unlock { --text: #fff; --bg: #000; position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; background: #000; color: #fff; cursor: pointer; outline: none; animation: ul-in .3s ease-out; -webkit-tap-highlight-color: transparent; }
.unlock.closing { animation: ul-out .35s ease-in forwards; }
.ul-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 14px 14px; }
.ul-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px; text-align: center; font-family: var(--font-code); }
.ul-drop { position: relative; width: min(176px, 42vw); aspect-ratio: 33 / 44; padding: 0; border: 0; background: none; cursor: pointer; animation: ul-drop .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.ul-drop > span { position: absolute; inset: 0; }
.ul-mystery { animation: ul-charge .9s steps(2) infinite; }
.unlock[data-taps="1"] .ul-mystery { animation-duration: .5s; }
.unlock[data-taps="2"] .ul-mystery { animation-duration: .22s; }
.ul-drop.hit .ul-mystery { animation: ul-hit .2s steps(3), ul-charge .3s steps(2) .2s infinite; }
.ul-emblem { opacity: 0; }
.ul-hint { margin: 22px 0 0; font-size: 18px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; animation: ul-blink 1s steps(1) infinite; }
.ul-kicker, .ul-name, .ul-for, .ul-tap { margin: 0; opacity: 0; }
.ul-kicker { margin-top: 22px; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #a3a3a3; }
.ul-name { margin-top: 6px; font-size: clamp(36px, 10vw, 76px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.ul-name::after { content: ""; display: inline-block; width: .5em; height: .85em; margin-left: .12em; vertical-align: -.08em; background: #fff; animation: ul-blink 1s steps(1) infinite; }
.ul-for { margin-top: 14px; max-width: 32ch; color: #a3a3a3; font-family: var(--font); font-size: 17px; line-height: 1.45; }
.ul-tap { margin-top: 26px; font-size: 13px; color: #6b6b6b; }
.ul-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ul-confetti { position: absolute; left: 50%; top: 40%; }
.ul-confetti i { position: absolute; width: var(--s); height: var(--s); opacity: 0; }
.unlock.opened .ul-mystery { animation: ul-gone .15s steps(1) forwards; }
.unlock.opened .ul-emblem { animation: ul-pixel .5s steps(5) .1s forwards; }
.unlock.opened .ul-hint { display: none; }
.unlock.opened .ul-flash { animation: ul-flash .5s steps(4); }
.unlock.opened .ul-confetti i { animation: ul-burst 1.3s cubic-bezier(.1, .8, .3, 1) var(--d) forwards; }
.unlock.opened .ul-kicker { animation: ul-in .01s .6s forwards; }
.unlock.opened .ul-name { animation: ul-type .7s steps(12) .75s forwards; }
.unlock.opened .ul-for { animation: ul-in .4s ease-out 1.4s forwards; }
.unlock.opened.done .ul-tap { animation: ul-in .4s ease-out forwards; }
.unlock.opened .ul-stage { animation: ul-shake .4s steps(4) .1s; }
@keyframes ul-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ul-out { to { opacity: 0; } }
@keyframes ul-drop { from { transform: translateY(-80vh); } to { transform: none; } }
@keyframes ul-charge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@keyframes ul-hit { 0% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes ul-gone { to { opacity: 0; } }
@keyframes ul-pixel { 0% { opacity: 0; transform: scale(.6); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes ul-type { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes ul-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes ul-burst { 0% { opacity: 1; transform: translate(0, 0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 120px)); } }
@keyframes ul-shake { 0%, 100% { transform: none; } 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -4px); } 75% { transform: translate(-3px, 2px); } }
@keyframes ul-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ul-mystery, .ul-hint, .ul-name::after { animation: none !important; }
  .unlock.opened .ul-emblem, .unlock.opened .ul-name { animation: ul-in .3s ease-out forwards; }
  .ul-confetti, .ul-flash { display: none; }
  .unlock.opened .ul-stage, .ul-drop { animation: none; }
}
