/* pk-plugin.mcsv.me: voxel night. Deep indigo sky, the cyan and violet glow of the plugin art,
   and pumpkin orange as the one sharp accent. */
@font-face { font-family: 'Playpen Sans Thai'; font-weight: 500; font-display: swap; src: url('fonts/playpen-sans-thai-500-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Playpen Sans Thai'; font-weight: 500; font-display: swap; src: url('fonts/playpen-sans-thai-500-latin.woff2') format('woff2'); 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: 'Playpen Sans Thai'; font-weight: 600; font-display: swap; src: url('fonts/playpen-sans-thai-600-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Playpen Sans Thai'; font-weight: 600; font-display: swap; src: url('fonts/playpen-sans-thai-600-latin.woff2') format('woff2'); 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: 'Playpen Sans Thai'; font-weight: 700; font-display: swap; src: url('fonts/playpen-sans-thai-700-thai.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Playpen Sans Thai'; font-weight: 700; font-display: swap; src: url('fonts/playpen-sans-thai-700-latin.woff2') format('woff2'); 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; }

:root {
  --bg: #0a0b1e;
  --bg-2: #11132e;
  --ink: #eef0ff;
  --dim: #a3a8d6;
  --line: rgba(160, 170, 255, .16);
  --pumpkin: #ff8a1f;
  --pumpkin-2: #ffb347;
  --cyan: #5ee6ff;
  --violet: #9b7bff;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
  font: 500 17px/1.7 'Playpen Sans Thai', 'Leelawadee UI', Tahoma, sans-serif;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(155, 123, 255, .22), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(94, 230, 255, .12), transparent 60%),
    radial-gradient(800px 500px at 60% 110%, rgba(255, 138, 31, .12), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* a faint block grid, like a build plate */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 72%);
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pumpkin); outline-offset: 3px; border-radius: 6px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(10, 11, 30, .62); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: .01em; }
.brand b { color: var(--pumpkin); font-weight: 700; }
.brand-cube { width: 18px; height: 18px; background: linear-gradient(135deg, var(--pumpkin-2), var(--pumpkin)); box-shadow: 4px 4px 0 rgba(255, 138, 31, .35), 0 0 18px rgba(255, 138, 31, .6); animation: spin 9s linear infinite; }
.top-links { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); font-size: 15px; }
.top-links a { text-decoration: none; color: var(--dim); transition: color .2s; }
.top-links a:hover { color: var(--ink); }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.lang button { padding: 3px 11px; border: 0; border-radius: 999px; background: transparent; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--dim); transition: color .2s, background .2s, box-shadow .2s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed='true'] { color: #1a0d00; background: linear-gradient(135deg, var(--pumpkin-2), var(--pumpkin)); box-shadow: 0 4px 14px rgba(255, 138, 31, .35); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 8vw, 104px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--dim); background: rgba(255, 255, 255, .03); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5dff9b; box-shadow: 0 0 10px #5dff9b; animation: pulse 1.8s ease-in-out infinite; }
/* Thai stacks vowels and tone marks above and below the line: the heading needs tall lines, and
   nothing may be drawn in the gap between them. */
h1 { margin: 20px 0 16px; font-size: clamp(30px, 4.3vw, 54px); line-height: 1.45; font-weight: 700; }
.h1-top { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .26em; }
.h1-line { display: block; }
.count { flex: none; padding: 0 .04em .06em 0; font-size: 2.1em; line-height: 1.15; color: transparent; background: linear-gradient(170deg, #fff 10%, var(--pumpkin-2) 45%, var(--pumpkin) 80%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 8px 28px rgba(255, 138, 31, .45)); font-variant-numeric: tabular-nums; }
h1 em { font-style: normal; color: var(--pumpkin); white-space: nowrap; padding: 0 .12em; border-radius: .18em; background: linear-gradient(90deg, rgba(255, 138, 31, .2), rgba(255, 138, 31, .06)); box-shadow: inset 0 -.09em 0 rgba(255, 138, 31, .55); }
h1 em.rust { color: var(--cyan); background: linear-gradient(90deg, rgba(94, 230, 255, .18), rgba(94, 230, 255, .05)); box-shadow: inset 0 -.09em 0 rgba(94, 230, 255, .55); }
.lede { max-width: 34em; color: var(--dim); font-size: clamp(16px, 1.5vw, 18px); }

.finder { margin-top: 30px; }
.finder label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--cyan); }
.finder-row { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; }
.finder input { display: block; width: 100%; max-width: 520px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .05); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.finder input::placeholder { color: #6f75a8; }
.finder input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(94, 230, 255, .14); }
.finder-arrow { font-size: 22px; color: var(--pumpkin); animation: nudge 1.4s ease-in-out infinite; }
.finder output { flex: 1; min-width: 0; font-size: 15px; color: var(--dim); }
.finder output button { padding: 8px 16px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--pumpkin-2), var(--pumpkin)); color: #1a0d00; font-weight: 700; box-shadow: 0 8px 24px rgba(255, 138, 31, .35); animation: pop .35s var(--ease); }
.finder output button + button { margin-left: 8px; }

/* console */
.console { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(20, 22, 52, .92), rgba(10, 11, 30, .92)); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 60px rgba(155, 123, 255, .14); transform: perspective(1200px) rotateY(-7deg) rotateX(3deg); transition: transform .6s var(--ease); overflow: hidden; }
.console:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.console-bar i:nth-child(2) { background: #febc2e; }
.console-bar i:nth-child(3) { background: #28c840; }
.console-bar span { margin-left: 8px; }
#log { margin: 0; padding: 16px 18px 20px; height: 330px; overflow: hidden; font: 13px/1.75 var(--mono); color: #c9cdf5; white-space: pre-wrap; display: flex; flex-direction: column; justify-content: flex-end; }
#log .t { color: #6f75a8; }
#log .ok { color: #5dff9b; }
#log .n { color: var(--pumpkin-2); font-weight: 700; }
#log .v { color: var(--cyan); }
#log div { animation: line .35s var(--ease); }

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
/* every item has a right margin instead of a flex gap, so the two halves are the same width and
   translateX(-50%) lands exactly on the start of the second half */
.ticker-run { display: flex; width: max-content; padding: 12px 0; font-size: 16px; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.tick { display: flex; align-items: center; gap: 10px; margin-right: 40px; white-space: nowrap; }
.tick img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.tick b { font-weight: 700; color: var(--ink); }

/* shelf */
.shelf, .releases, .install { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px) 0; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; color: var(--dim); transition: all .2s; }
.chip:hover { color: var(--ink); border-color: var(--violet); }
.chip[aria-selected='true'] { color: #1a0d00; background: linear-gradient(135deg, var(--pumpkin-2), var(--pumpkin)); border-color: transparent; font-weight: 700; }
.chip small { margin-left: 6px; opacity: .7; font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); text-align: left; overflow: hidden; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, opacity .3s; will-change: transform; }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(94, 230, 255, .2), transparent 60%); }
.card:hover, .card:focus-visible { border-color: rgba(94, 230, 255, .55); box-shadow: 0 22px 50px rgba(0, 0, 0, .45), 0 0 34px rgba(94, 230, 255, .14); }
.card:hover::before { opacity: 1; }
.card img { width: 84px; height: 84px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .45s var(--ease); }
.card:hover img { transform: translateY(-6px) rotate(-5deg) scale(1.08); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.badge { padding: 3px 10px; border-radius: 999px; font: 700 11px var(--mono); letter-spacing: .06em; color: var(--cyan); border: 1px solid rgba(94, 230, 255, .35); background: rgba(94, 230, 255, .08); }
.badge.native { color: var(--pumpkin-2); border-color: rgba(255, 138, 31, .45); background: rgba(255, 138, 31, .1); }
.card h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.card .rep { font-size: 13px; color: var(--dim); }
.card .rep b { font-weight: 700; color: var(--pumpkin-2); }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--dim); }
.card .more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--cyan); opacity: 0; transform: translateX(-6px); transition: all .25s; }
.card:hover .more, .card:focus-visible .more { opacity: 1; transform: none; }
.card.hit { border-color: var(--pumpkin); box-shadow: 0 0 0 3px rgba(255, 138, 31, .3), 0 22px 50px rgba(0, 0, 0, .45); animation: hit .9s var(--ease); }
.card.gone { display: none; }
.none { padding: 40px 0; text-align: center; color: var(--dim); }

/* install */
.install { padding-bottom: clamp(56px, 8vw, 110px); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.way { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .03); }
.way-mcsv { border-color: rgba(255, 138, 31, .5); background: linear-gradient(160deg, rgba(255, 138, 31, .13), rgba(255, 255, 255, .02) 55%); }
.way-tag { font-size: 13px; font-weight: 700; color: var(--pumpkin-2); }
.way h3 { margin: 4px 0 14px; font-size: 26px; }
.way ol { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.way li { position: relative; padding-left: 44px; color: var(--dim); font-size: 15.5px; counter-increment: step; }
.way li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font: 700 14px var(--mono); color: var(--ink); background: rgba(155, 123, 255, .22); border: 1px solid rgba(155, 123, 255, .45); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; color: #1a0d00; background: linear-gradient(135deg, var(--pumpkin-2), var(--pumpkin)); box-shadow: 0 10px 30px rgba(255, 138, 31, .35); transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 138, 31, .5); }
.btn-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 30px rgba(94, 230, 255, .2); }

/* "new release" notice: a bar under the top bar until the visitor has seen this release */
.news { position: relative; z-index: 19; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 52px 9px 16px; font-size: 14.5px; background: linear-gradient(90deg, rgba(94, 230, 255, .14), rgba(155, 123, 255, .18), rgba(255, 138, 31, .14)); border-bottom: 1px solid rgba(94, 230, 255, .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: news-in .6s var(--ease) both; }
.news[hidden] { display: none; }
.news.out { animation: news-out .35s var(--ease) forwards; }
.news-badge { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #04121a; background: var(--cyan); box-shadow: 0 0 16px rgba(94, 230, 255, .6); animation: pulse-glow 2.4s ease-in-out infinite; }
.news-text { min-width: 0; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-text b { font-family: var(--mono); color: var(--ink); }
.news-link { flex: none; font-weight: 700; color: var(--pumpkin-2); text-decoration: none; }
.news-link:hover { text-decoration: underline; }
.news-close { position: absolute; right: 12px; top: 50%; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 0; transition: background .2s; }
.news-close:hover { background: rgba(255, 255, 255, .08); }
.news-close::before, .news-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--dim); transform: rotate(45deg); }
.news-close::after { transform: rotate(-45deg); }
#nav-dl { position: relative; }
.new-dot { display: none; position: absolute; top: 1px; right: -9px; width: 7px; height: 7px; border-radius: 50%; background: var(--pumpkin); box-shadow: 0 0 0 0 rgba(255, 138, 31, .7); animation: ping 1.8s ease-out infinite; }
.unseen .new-dot { display: block; }
.latest.flash { animation: flash 1.4s var(--ease); }
.follow { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 14px; color: var(--dim); }
.follow a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.follow a:hover { text-decoration: underline; }
/* a bell: a rounded cup over a clapper */
.follow-bell { position: relative; width: 14px; height: 15px; margin-right: 4px; }
.follow-bell::before { content: ''; position: absolute; left: 1px; right: 1px; top: 0; bottom: 4px; border: 2px solid var(--pumpkin-2); border-radius: 7px 7px 2px 2px; }
.follow-bell::after { content: ''; position: absolute; left: 5px; bottom: 0; width: 4px; height: 3px; border-radius: 0 0 3px 3px; background: var(--pumpkin-2); }
.follow:hover .follow-bell { animation: ring .8s ease-in-out; }

/* downloads */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-dl { display: inline-flex; align-items: center; gap: 10px; }
.btn-dl .ver { font: 700 13px var(--mono); padding: 2px 8px; border-radius: 8px; background: rgba(26, 13, 0, .16); }
.btn-dl .size { font: 600 12px var(--mono); opacity: .75; }
/* a down arrow into a tray, drawn so it needs no icon font */
.dl-icon { position: relative; flex: none; width: 16px; height: 16px; }
.dl-icon::before { content: ''; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(3px) rotate(45deg); }
.dl-icon::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; }
.btn-dl:hover .dl-icon::before { animation: drop .7s var(--ease) infinite; }

.rel-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 28px; }
.latest { position: relative; padding: 28px; border: 1px solid rgba(94, 230, 255, .4); border-radius: 24px; background: linear-gradient(160deg, rgba(94, 230, 255, .12), rgba(155, 123, 255, .06) 50%, rgba(255, 255, 255, .02)); overflow: hidden; }
.latest::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pumpkin), var(--cyan)); filter: blur(60px); opacity: .22; animation: spin 16s linear infinite; pointer-events: none; }
.latest-head { display: flex; align-items: center; gap: 12px; }
.latest-tag { padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #04121a; background: var(--cyan); box-shadow: 0 0 20px rgba(94, 230, 255, .5); }
.latest-date { font-size: 14px; color: var(--dim); }
.latest-ver { margin: 10px 0 6px; font: 700 clamp(40px, 5vw, 60px)/1.1 var(--mono); letter-spacing: -.02em; color: transparent; background: linear-gradient(120deg, #fff, var(--cyan) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; }
.latest-text { color: var(--dim); }
.latest-btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.latest-note { font-size: 13px; line-height: 1.65; color: var(--dim); }

.timeline { position: relative; margin: 0; padding: 4px 0 0 28px; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(var(--cyan), var(--violet) 50%, rgba(155, 123, 255, .1)); }
.rel { position: relative; padding: 0 0 20px; }
.rel::before { content: ''; position: absolute; left: -26px; top: 8px; width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: var(--bg); border: 2px solid var(--violet); transition: background .2s, box-shadow .2s; }
.rel:first-child::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.rel:hover::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.rel-top { display: flex; align-items: baseline; gap: 12px; }
.rel-v { font: 700 17px var(--mono); color: var(--ink); }
.rel-d { font-size: 13px; color: var(--dim); }
.rel p { font-size: 14.5px; line-height: 1.6; color: var(--dim); }
.rel.older { display: none; }
.timeline.all .rel.older { display: block; animation: line .35s var(--ease); }
.more-rel { display: block; margin: 4px auto 0; padding: 9px 22px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; color: var(--dim); transition: all .2s; }
.more-rel:hover { color: var(--ink); border-color: var(--violet); }

.sheet-dl { margin-top: 22px; }
.sheet-dl[hidden] { display: none; }

.foot { padding: 28px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: 14px; }
.foot a { color: var(--ink); }
.foot-small { margin-top: 8px; font-size: 12.5px; opacity: .75; }

/* detail sheet */
dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid rgba(94, 230, 255, .35); border-radius: 28px; color: var(--ink); background: linear-gradient(160deg, #171a40, #0b0c22 70%); box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 80px rgba(155, 123, 255, .2); overflow: auto; }
dialog[open] { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; animation: sheet .4s var(--ease); }
dialog::backdrop { background: rgba(5, 6, 18, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* The cross is drawn with two bars, not the × glyph: a font's glyph sits off its box's centre. */
.sheet-close { position: absolute; top: 20px; right: 20px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 0; transition: border-color .2s, background .2s, transform .3s var(--ease); }
.sheet-close::before, .sheet-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.sheet-close::after { transform: rotate(-45deg); }
.sheet-close:hover { border-color: var(--pumpkin); background: rgba(255, 138, 31, .12); transform: rotate(90deg); }
.sheet-art { position: relative; display: grid; place-items: center; padding: 36px 20px; background: radial-gradient(closest-side, rgba(94, 230, 255, .16), transparent 75%); }
.sheet-art img { position: relative; z-index: 1; width: min(176px, 60%); height: auto; border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: float 4.5s ease-in-out infinite; }
.sheet-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pumpkin), var(--cyan)); filter: blur(46px); opacity: .34; animation: spin 14s linear infinite; }
.sheet-body { padding: 34px 34px 30px 10px; min-width: 0; }
.sheet-rep { font-size: 14px; color: var(--dim); }
.sheet-rep b { color: var(--pumpkin-2); }
.sheet-body h2 { margin: 2px 0 10px; font-size: clamp(30px, 4vw, 44px); }
.sheet-text { color: var(--dim); }
.sheet-body h3 { margin: 22px 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--cyan); }
.cmds { display: flex; flex-wrap: wrap; gap: 8px; }
.cmd { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .04); font: 13px var(--mono); color: var(--ink); transition: all .15s; }
.cmd:hover { border-color: var(--pumpkin); background: rgba(255, 138, 31, .12); transform: translateY(-2px); }
.toml { display: block; width: 100%; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(0, 0, 0, .3); text-align: left; transition: border-color .2s; }
.toml:hover { border-color: var(--cyan); }
.toml code { display: block; font: 13px/1.7 var(--mono); color: #c9cdf5; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }
.sheet-meta { margin-top: 18px; font-size: 13px; color: var(--dim); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #1a0d00; background: linear-gradient(135deg, var(--pumpkin-2), var(--pumpkin)); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); transform: translate(-50%, 80px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* entrances */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s var(--ease) forwards; }
.hero-copy .reveal:nth-child(2) { animation-delay: .08s; }
.hero-copy .reveal:nth-child(3) { animation-delay: .18s; }
.hero-copy .reveal:nth-child(4) { animation-delay: .28s; }
.console.reveal { animation-name: rise-tilt; animation-delay: .3s; }
.in-view { opacity: 0; transform: translateY(26px) scale(.97); }
.in-view.seen { opacity: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .25s, box-shadow .25s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s; }
.in-view.seen.live { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, opacity .3s; transition-delay: 0s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-tilt { to { opacity: 1; transform: perspective(1200px) rotateY(-7deg) rotateX(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes nudge { 50% { transform: translateX(6px); } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@keyframes line { from { opacity: 0; transform: translateY(8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes sheet { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes hit { 0%, 60% { transform: scale(1.04); } }
@keyframes news-in { from { opacity: 0; transform: translateY(-100%); } }
@keyframes news-out { to { opacity: 0; transform: translateY(-100%); } }
@keyframes pulse-glow { 50% { box-shadow: 0 0 4px rgba(94, 230, 255, .3); } }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 138, 31, 0); } }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--cyan), 0 0 60px rgba(94, 230, 255, .45); } }
@keyframes ring { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes drop { 50% { transform: translateY(6px) rotate(45deg); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .console, .console:hover { transform: none; }
  .console.reveal { animation-name: rise; }
  #log { height: 220px; }
  dialog[open] { grid-template-columns: 1fr; }
  .sheet-art { padding: 28px 20px 0; }
  .sheet-art img { width: 120px; }
  .sheet-body { padding: 18px 22px 26px; }
  .top-links a[href='#install'] { display: none; }
  .rel-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .top-links a[href='#plugins'] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-run { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 10px; padding-inline: 16px; }
  .tick:nth-child(n + 19) { display: none; }
}
