/* ColdPlay Reborn — cold-play.win
   One stylesheet, no JavaScript. The look is the client's own Glass Pills UI:
   navy glass, white pills, Outfit. The two product shots (the in-game menu on
   the home page, the injector on /install/) are drawn here from ClickGui.java,
   Hud.java and the injector's gui.cpp, sized in cqw so each scales as one
   picture. */

/* ---- fonts (self-hosted, Latin subset) ---------------------------------- */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---- tokens ------------------------------------------------------------- */
:root {
  --bg: #0b1118;
  --ink: #eef3f7;
  --muted: #9aabba;
  --faint: #73879a;
  --line: rgba(255, 255, 255, .08);
  --ice: #9fd3e9;
  --key: #141e29;
  --pill: rgba(255, 255, 255, .92);
  --pill-ink: #10202e;
  --glass: rgba(20, 30, 44, .45);
  --glass-edge: rgba(255, 255, 255, .28);

  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: dark;
}

/* ---- reset -------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; }
img, svg { display: block; max-width: 100%; }
a { color: var(--muted); text-decoration: none; transition: color .12s ease, background-color .12s ease; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ice); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

kbd {
  font: 400 13px/1 var(--mono);
  color: var(--ink);
  background: var(--key);
  border: 1px solid rgba(255, 255, 255, .14);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 5px 8px;
  white-space: nowrap;
}
code {
  font-family: var(--mono); font-size: 14px;
  color: var(--ink);
  background: var(--key);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  padding: 3px 7px;
  overflow-wrap: anywhere;
}

/* ---- buttons and links -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px;
  border-radius: 12px;
  background: #fff; color: var(--pill-ink);
  font-weight: 600; font-size: 16px; white-space: nowrap;
}
.btn:hover { background: #e3edf4; color: var(--pill-ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { height: 38px; padding: 0 14px; gap: 8px; border-radius: 10px; font-size: 14px; }
.btn-sm svg { width: 18px; height: 18px; }

.link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 16px; }
.link:hover { color: var(--ice); }
.link svg { width: 16px; height: 16px; flex: none; }

/* ---- header ------------------------------------------------------------- */
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.brand-name span { font-weight: 400; color: var(--faint); }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a[aria-current="page"] { color: var(--ink); }

/* ---- home hero ---------------------------------------------------------- */
.hero { padding-top: 88px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.hero h1 {
  flex: 1 1 560px;
  font-size: clamp(50px, 8vw, 116px);
  line-height: .92; letter-spacing: -.045em;
}
.hero h1 span { white-space: nowrap; }
.hero-side { flex: 0 1 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 8px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.lead em { font-style: normal; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.caption { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; font-size: 15px; color: var(--muted); }
.caption li { display: inline-flex; align-items: center; gap: 10px; }

/* ---- the in-game menu (ClickGui.java, Hud.java) -------------------------
   One GUI unit is .15cqw. Panels are 110 units wide with 14-unit rows; the
   glass is #141E2C at 45% with a 28% white edge, enabled modules are white
   pills at 92% with #10202E text. */
.shot {
  position: relative; margin-top: 72px;
  aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden;
  border-radius: 16px;
  background: #1a2a3a url("/assets/img/menu-backdrop.jpg") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 60px 120px -40px rgba(0, 0, 0, .8);
  color: #fff; line-height: 1;
}
/* cqw on .shot itself would measure the viewport, so sizes start one level in */
.hud-mark {
  position: absolute; left: .6cqw; top: .6cqw;
  height: 2.1cqw; padding: 0 .9cqw;
  display: flex; align-items: center; white-space: nowrap;
  border-radius: 1.05cqw; background: var(--glass); box-shadow: inset 0 0 0 .15cqw var(--glass-edge);
  font-weight: 600; font-size: 1.5cqw;
}
.hud-mark span { font-weight: 400; font-size: 1.35cqw; color: rgba(255, 255, 255, .7); white-space: pre; }
.hud-list {
  position: absolute; right: .6cqw; top: .6cqw;
  display: flex; flex-direction: column; align-items: flex-end; gap: .3cqw;
  color: var(--pill-ink); font-weight: 600; font-size: 1.5cqw;
}
.hud-list li { height: 1.95cqw; padding: 0 .9cqw; display: flex; align-items: center; border-radius: .75cqw; background: var(--pill); }
.hud-settings {
  position: absolute; left: .6cqw; bottom: .6cqw;
  height: 2.7cqw; padding: 0 1.2cqw;
  display: flex; align-items: center;
  border-radius: 1.05cqw; background: var(--glass); box-shadow: inset 0 0 0 .15cqw var(--glass-edge);
  font-weight: 600; font-size: 1.5cqw;
}
.gui { position: absolute; left: 15cqw; top: 3.9cqw; display: flex; align-items: flex-start; gap: .9cqw; font-size: 1.35cqw; }
.panel {
  width: 16.5cqw; padding: 0 .45cqw .45cqw;
  border-radius: 1.35cqw; background: var(--glass); box-shadow: inset 0 0 0 .15cqw var(--glass-edge);
}
.panel-title { height: 3cqw; padding-left: .75cqw; display: flex; align-items: center; font-weight: 600; font-size: 1.5cqw; }
.rows { display: flex; flex-direction: column; gap: .3cqw; }
.row { height: 2.1cqw; padding: 0 .75cqw 0 .9cqw; display: flex; align-items: center; justify-content: space-between; }
.row.on { border-radius: .75cqw; background: var(--pill); color: var(--pill-ink); }
.row.on span:first-child { font-weight: 600; font-size: 1.5cqw; }
.settings { padding: .3cqw 0; border-radius: .9cqw; background: rgba(0, 0, 0, .3); }
.group { height: 2.1cqw; padding: .15cqw .3cqw; display: flex; }
.group div {
  flex: 1; padding: 0 .45cqw 0 .6cqw;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: .6cqw; background: rgba(255, 255, 255, .07);
}
.group b { font-weight: 600; font-size: 1.5cqw; }
.set { position: relative; height: 2.1cqw; padding: 0 .9cqw 0 1.8cqw; display: flex; align-items: center; justify-content: space-between; }
.set::before { content: ""; position: absolute; left: .9cqw; top: 0; bottom: 0; width: .15cqw; background: rgba(255, 255, 255, .16); }
.set span:first-child { color: #ccc; }
.set.num { padding-bottom: .45cqw; }
.bar { position: absolute; left: 1.8cqw; right: .9cqw; bottom: .15cqw; height: .3cqw; border-radius: .15cqw; background: rgba(255, 255, 255, .22); }
.bar i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.bar .f22 { width: 21.8%; }
.bar .f33 { width: 33%; }

/* ---- sections ----------------------------------------------------------- */
.section { padding-top: 160px; }
.section-sm { padding-top: 120px; }
.h2 { font-size: 44px; line-height: 1; letter-spacing: -.035em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split-head { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split-head .link { margin-top: 4px; }
.split-body { flex: 999 1 600px; min-width: 0; }
.sub { max-width: 30ch; font-size: 17px; color: var(--muted); }

/* highlights (home) and numbered steps (home, install) */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 40px; }
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 40px; }
.pick, .steps li { border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pick { padding: 24px 0 36px; }
.steps li { padding: 24px 0 8px; }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pick h3, .steps h3 { font-size: 20px; letter-spacing: -.01em; }
.pick p, .steps p { font-size: 16px; color: var(--muted); text-wrap: pretty; }
.pick .pick-cat { font-size: 13px; color: var(--faint); }
.modes { font: 400 12.5px/1.4 var(--mono); color: var(--faint); }
.steps .n { font: 400 13px/1 var(--mono); color: var(--faint); }

/* ---- inner pages -------------------------------------------------------- */
.page-head { padding-top: 88px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.page-head h1 { font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -.045em; }
.page-head .lead { max-width: 34ch; }

/* ---- modules ------------------------------------------------------------ */
.cats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.cats a {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: var(--ink); font-weight: 600; font-size: 15px;
}
.cats a:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }
.count { font: 400 12.5px/1 var(--mono); letter-spacing: 0; color: var(--faint); }
.cat { padding-top: 104px; scroll-margin-top: 24px; }
.cat h2 { display: flex; align-items: baseline; gap: 14px; font-size: 36px; line-height: 1; letter-spacing: -.03em; }
.cat h2 .count { font-size: 14px; }
.mods { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0 48px; }
.mod { border-top: 1px solid var(--line); padding: 22px 0 28px; display: flex; flex-direction: column; gap: 8px; }
.mod-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.mod h3 { font-size: 19px; letter-spacing: -.01em; }
.mod p { font-size: 15.5px; color: var(--muted); text-wrap: pretty; }

/* ---- install ------------------------------------------------------------ */
.needs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 16px; }
.needs li { display: inline-flex; align-items: center; gap: 10px; }
.needs svg { width: 16px; height: 16px; flex: none; color: var(--ice); }

.key-row { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.key-row .k { width: 140px; flex: none; }
.key-row kbd { font-size: 14px; padding: 6px 10px; }
.key-row p { font-size: 16px; color: var(--muted); }
.note { border-top: 1px solid var(--line); padding-top: 20px; font-size: 16px; line-height: 1.7; color: var(--muted); }

.faq-item { border-top: 1px solid var(--line); padding: 22px 0 26px; display: flex; flex-direction: column; gap: 8px; }
.faq-item h3 { font-size: 18px; }
.faq-item p { font-size: 16px; color: var(--muted); text-wrap: pretty; }

/* ---- the injector window (injector/src/gui.cpp) -------------------------
   Its 1000 x 640 client area, one source pixel per .1cqw. */
.inj {
  position: relative; margin-top: 64px;
  aspect-ratio: 1000 / 640; container-type: inline-size; overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle 29.1cqw at 60cqw 6.4cqw, rgba(90, 122, 150, 1), rgba(90, 122, 150, 0)),
    radial-gradient(circle 45.8cqw at 80cqw 44.8cqw, rgba(39, 70, 106, 1), rgba(39, 70, 106, 0)),
    radial-gradient(circle 41.3cqw at 20cqw 19.2cqw, rgba(59, 90, 74, 1), rgba(59, 90, 74, 0)),
    #1a2a3a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 60px 120px -40px rgba(0, 0, 0, .8);
  color: #fff; line-height: 1;
}
.inj > * { position: absolute; font-size: 1.3cqw; }
.inj .dim { color: rgba(255, 255, 255, .62); }
.inj-glass {
  left: 3.2cqw; top: 3.2cqw; width: 93.6cqw; height: 57.6cqw;
  border-radius: .9cqw; background: rgba(20, 30, 44, .55); box-shadow: inset 0 0 0 .1cqw var(--glass-edge);
}
.inj-rule { left: 22.2cqw; top: 3.3cqw; width: .1cqw; height: 57.4cqw; background: rgba(255, 255, 255, .15); }
.inj-flake { left: 4.8cqw; top: 5cqw; width: 2.8cqw; height: 2.8cqw; }
.inj-name { left: 8.6cqw; top: 4.9cqw; height: 2cqw; display: flex; align-items: center; font-weight: 600; font-size: 1.7cqw; }
.inj-sub { left: 8.6cqw; top: 6.9cqw; height: 1cqw; display: flex; align-items: center; font-size: .9cqw; letter-spacing: .25cqw; color: rgba(255, 255, 255, .65); }
.inj-tabs { left: 4.2cqw; top: 9.6cqw; width: 17cqw; display: flex; flex-direction: column; gap: .4cqw; }
.inj-tabs li { height: 3.1cqw; padding: 0 1cqw; display: flex; align-items: center; justify-content: space-between; border-radius: .6cqw; }
.inj-tabs .on { background: var(--pill); color: var(--pill-ink); font-weight: 600; }
.inj-count { height: 1.8cqw; padding: 0 .9cqw; display: flex; align-items: center; border-radius: .9cqw; box-shadow: inset 0 0 0 .1cqw var(--pill-ink); font-weight: 400; font-size: 1.05cqw; }
.inj-title { left: 24.5cqw; top: 5.4cqw; height: 2.8cqw; display: flex; align-items: center; font-weight: 600; font-size: 2.2cqw; }
.inj-hint { left: 24.5cqw; top: 8.2cqw; height: 1.8cqw; display: flex; align-items: center; }
.inj-live {
  right: 5.4cqw; top: 6.4cqw; height: 2.6cqw; padding: 0 1.4cqw 0 1.1cqw;
  display: flex; align-items: center; gap: .5cqw;
  border-radius: 1.3cqw; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 .1cqw rgba(140, 220, 180, .39);
  color: #a8e6c8; font-weight: 600; font-size: 1.2cqw;
}
.inj-live i { width: 1.2cqw; height: 1.2cqw; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(168, 230, 200, .2); }
.inj-live i::after { content: ""; width: .6cqw; height: .6cqw; border-radius: 50%; background: #a8e6c8; }
.inj-row {
  left: 24.5cqw; top: 11.4cqw; width: 70.1cqw; height: 4.9cqw; padding: 0 1.2cqw;
  display: flex; align-items: center;
  border-radius: .7cqw; background: rgba(255, 255, 255, .05);
}
.inj-row > span { flex: none; margin-left: 1.2cqw; }
.inj-row > span:first-child { margin-left: 0; width: 13.47cqw; display: flex; gap: .6cqw; }
.inj-row b { font-weight: 600; }
.inj-row .c1 { width: 8.29cqw; }
.inj-row .c2 { width: 10.36cqw; }
.inj-row .c3 { width: 12.43cqw; }
.inj-row .inj-tag {
  height: 1.8cqw; padding: 0 .9cqw;
  display: flex; align-items: center; gap: .4cqw;
  border-radius: .9cqw; box-shadow: inset 0 0 0 .1cqw rgba(140, 220, 180, .5);
  color: #a8e6c8; font-size: 1.05cqw;
}
.inj-tag svg { width: .8cqw; height: .7cqw; }
.inj-row .inj-btn {
  margin-left: auto; width: 6.8cqw; height: 2.9cqw;
  display: flex; align-items: center; justify-content: center;
  border-radius: .7cqw; background: #fff; color: var(--pill-ink); font-weight: 600;
}
.inj-log {
  left: 24.5cqw; top: 17.7cqw; width: 70.1cqw; height: 40.9cqw; padding-top: 1cqw;
  border-radius: .6cqw; background: rgba(0, 0, 0, .3);
  font: 400 1.15cqw/1 Consolas, "Plex Mono", ui-monospace, monospace;
}
.inj-log p { height: 1.95cqw; display: flex; align-items: center; }
.inj-log .t { width: 8cqw; flex: none; padding-left: 1.2cqw; color: rgba(255, 255, 255, .62); }
.inj-log .info { color: #9fd3ff; }
.inj-log .ok { color: #a8e6c8; }

/* ---- changelog ---------------------------------------------------------- */
.day { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 40px; display: flex; flex-wrap: wrap; gap: 24px 64px; }
.page-head + .day { margin-top: 88px; }
.day h2 { flex: 1 1 240px; font-size: 20px; line-height: 1.4; letter-spacing: -.01em; }
.day-items { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.change { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.change-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pill {
  height: 28px; padding: 0 10px;
  display: inline-flex; align-items: center;
  border-radius: 8px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-weight: 600; font-size: 15px;
}
.pill.on { background: var(--pill); box-shadow: none; color: var(--pill-ink); }
.change-kind { font-size: 14px; color: var(--faint); }
.change p { max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---- footer ------------------------------------------------------------- */
.site-foot { margin-top: 160px; border-top: 1px solid var(--line); }
.foot { padding-block: 96px 40px; display: flex; flex-direction: column; gap: 88px; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; }
.foot-cta h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; }
.foot-cta p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.foot-bottom { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot-row .brand { gap: 10px; }
.foot-row .brand img { width: 26px; height: 26px; }
.foot-row .brand-name { font-size: 16px; letter-spacing: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.legal { font-size: 13px; line-height: 1.6; color: var(--faint); }

/* ---- small screens ------------------------------------------------------ */
@media (max-width: 560px) {
  .nav { order: 3; width: 100%; margin-left: 0; gap: 8px 22px; }
  .site-head .btn-sm { margin-left: auto; }
  .hero, .page-head { padding-top: 56px; }
  .shot { margin-top: 48px; border-radius: 10px; }
  .inj { margin-top: 48px; border-radius: 10px; }
  .section { padding-top: 112px; }
  .section-sm, .cat { padding-top: 88px; }
  .h2 { font-size: 36px; }
  .site-foot { margin-top: 112px; }
  .foot { padding-block: 72px 32px; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
