/* DUSTLIGHT site — shares the product's palette: T orange, CT blue, "you" pink on match-night ink. */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap;
  src: url(/fonts/big-shoulders-display-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap;
  src: url(/fonts/big-shoulders-display-latin-900-normal.woff2) format('woff2'); }

:root {
  --ink: #080b10; --ink-2: #0f141c; --line: rgba(150, 170, 200, .16);
  --fg: #e7ecf3; --mute: #8794a8; --dim: #5b667a;
  --t: #e9a23b; --ct: #5d8ff0; --me: #ff5d7a;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px); --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--fg); font: 400 17px/1.7 var(--body); }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--t); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { font: 900 26px/1 var(--display); letter-spacing: .04em; text-decoration: none; }
.brand b { color: var(--t); font-weight: 900; }
.top nav a { color: var(--mute); text-decoration: none; margin-left: 22px; font-size: 15px; }
.top nav a:hover { color: var(--fg); }

/* hero */
.hero { padding: clamp(40px, 9vw, 110px) 0 56px; }
.hero h1 { font: 900 clamp(48px, 10vw, 112px)/1.02 var(--body); margin: 0; letter-spacing: -.01em; }
.hero .lede { max-width: 34em; color: #c6cfdb; font-size: clamp(17px, 2.1vw, 20px); margin: 26px 0 0; }

/* the round clock: one CS2 round, 0–115 s after freeze time */
.clock { margin: 64px 0 0; }
.clock-track { position: relative; height: 150px; }
.clock-bar { position: absolute; left: 0; right: 0; bottom: 34px; height: 6px; background: var(--line); border-radius: 3px; }
.clock-bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(25 / 115 * 100%); border-radius: 3px 0 0 3px;
  background: repeating-linear-gradient(135deg, rgba(255,93,122,.55) 0 6px, rgba(255,93,122,.18) 6px 12px); }
.tick { position: absolute; bottom: 0; font: 800 14px/1 var(--display); color: var(--dim); transform: translateX(-50%); }
.tick:first-child { transform: none; }
.tick:last-child { transform: translateX(-100%); }
.pin { position: absolute; bottom: 31px; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.pin::after { content: ''; display: block; width: 3px; height: 34px; margin: 6px auto 0; background: currentColor; border-radius: 2px; }
.pin b { display: block; font: 900 clamp(34px, 5.4vw, 56px)/.9 var(--display); }
.pin span { font-size: 13px; color: var(--mute); }
.pin.me { color: var(--me); } .pin.fc { color: #aab4c4; } .pin.pro { color: var(--t); }
.pin.fc b { font-size: clamp(24px, 3.4vw, 34px); }
.pin.r { transform: translateX(-100%); text-align: right; }   /* label grows left of its pin */
.pin.r::after { margin: 6px -1.5px 0 auto; }
.pin.l { transform: none; text-align: left; }                   /* label grows right of its pin */
.pin.l::after { margin: 6px 0 0 -1.5px; }
.clock-note { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--mute); font-size: 14px; margin-top: 14px; }
.clock-note i { display: inline-block; width: 18px; height: 6px; margin-right: 8px; vertical-align: middle; border-radius: 3px;
  background: repeating-linear-gradient(135deg, rgba(255,93,122,.55) 0 4px, rgba(255,93,122,.18) 4px 8px); }
@media (prefers-reduced-motion: no-preference) {
  .pin { animation: drop .7s cubic-bezier(.2, .9, .2, 1) both; }
  .pin.fc { animation-delay: .25s; } .pin.pro { animation-delay: .5s; }
  @keyframes drop { from { opacity: 0; translate: 0 -18px; } }
}

/* sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font: 800 clamp(26px, 3.6vw, 36px)/1.25 var(--body); margin: 0 0 14px; }
.sub { color: var(--mute); max-width: 36em; margin: 0 0 40px; }

.radar { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.radar figure { margin: 0; }
.radar img { border-radius: 6px; border: 1px solid var(--line); }
.radar figcaption { color: var(--dim); font-size: 13px; margin-top: 10px; }
.features { list-style: none; margin: 0; padding: 0; }
.features li { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.features li:last-child { border: 0; margin: 0; }
.features strong { display: block; font-size: 18px; }
.features strong em { font: 800 15px/1 var(--display); font-style: normal; color: var(--t); letter-spacing: .04em; margin-left: 8px; }
.features p { margin: 4px 0 0; color: #b6c0ce; font-size: 15px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 900 64px/1 var(--display); color: var(--ct); margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: #b6c0ce; font-size: 15px; }
.status { margin-top: 36px; color: var(--mute); font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; }
.facts div { border-left: 3px solid var(--ct); padding-left: 14px; }
.facts b { display: block; font: 900 clamp(34px, 5vw, 48px)/1 var(--display); }
.facts span { color: var(--mute); font-size: 14px; }

.cta { display: inline-block; margin-top: 8px; padding: 14px 26px; background: var(--t); color: #1a1206; font-weight: 700;
  text-decoration: none; border-radius: 4px; }
.cta:hover { background: #f3b55a; }

.en { color: #b6c0ce; font-size: 15px; max-width: 46em; }
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--dim); font-size: 13px; }
footer nav a { margin-right: 18px; color: var(--mute); }
footer p { margin: 12px 0 0; max-width: 60em; }

/* legal pages */
.doc { max-width: 46em; padding: 40px 0 72px; }
.doc h1 { font: 800 clamp(30px, 5vw, 44px)/1.2 var(--body); margin: 0 0 6px; }
.doc .meta { color: var(--dim); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: #c6cfdb; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }

@media (max-width: 760px) {
  .radar, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav a { margin-left: 14px; }
}

/* my stats page (/me) */
.me-loading { color: var(--mute); padding: 80px 0; }
.me-signin { border: 0; padding: clamp(48px, 10vw, 120px) 0 80px; max-width: 40em; }
.me-signin h1 { font: 900 clamp(40px, 8vw, 84px)/1.05 var(--body); margin: 0; }
.me-signin .lede { color: #c6cfdb; font-size: clamp(17px, 2.1vw, 20px); margin: 22px 0 28px; }
.fine { color: var(--dim); font-size: 13px; max-width: 42em; margin-top: 14px; }
.me-hero { padding-top: 32px; }
.me-hero h1 { font-size: clamp(36px, 7vw, 76px); }
.me-num { color: var(--me); }
.who { display: flex; align-items: center; gap: 12px; color: var(--mute); margin-bottom: 18px; }
.who img { width: 40px; height: 40px; border-radius: 4px; }
.sync { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 0; border-top: 1px solid var(--line);
  color: #c6cfdb; font-size: 15px; }
.sync i { width: 9px; height: 9px; border-radius: 50%; background: #46c47e; flex: none; }
.sync i.busy { background: var(--t); }
@media (prefers-reduced-motion: no-preference) { .sync i.busy { animation: blink 1.2s ease-in-out infinite; } @keyframes blink { 50% { opacity: .3; } } }
.sync > span + span { color: var(--mute); }
.linkish { margin-left: auto; background: none; border: 0; padding: 0; color: var(--mute); font: inherit; font-size: 14px; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.link-steps { padding-left: 1.2em; color: #c6cfdb; max-width: 44em; }
.link-steps li { margin-bottom: 8px; }
.link-steps a { color: var(--t); }
.link-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 16px; align-items: end; margin-top: 24px; max-width: 900px; }
.link-form label { display: grid; gap: 6px; color: var(--mute); font-size: 14px; }
.link-form input { background: var(--ink-2); border: 1px solid var(--line); color: var(--fg); border-radius: 4px; padding: 12px 14px;
  font: 500 16px/1.2 ui-monospace, 'SF Mono', Menlo, monospace; min-width: 0; }
.link-form input:focus { outline: 2px solid var(--t); outline-offset: 1px; }
.link-form .cta { margin: 0; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.link-form .cta:disabled { opacity: .6; cursor: progress; }
.form-msg { grid-column: 1 / -1; margin: 0; color: #c6cfdb; min-height: 1.7em; }
.form-err { color: var(--me); }
.cta.steam { background: #e7ecf3; color: #0b1018; }
.cta.steam:hover { background: #fff; }
.me-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
.me-facts b small { font-size: .5em; margin-left: 2px; color: var(--mute); }
.me-facts em { display: block; font-style: normal; font-size: 13px; margin-top: 2px; }
.me-facts em.up { color: #46c47e; } .me-facts em.down { color: var(--me); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.me-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.me-table th { text-align: left; color: var(--dim); font-weight: 500; font-size: 13px; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.me-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.me-table td small { display: block; color: var(--dim); font-size: 12px; }
.me-table .num { font-variant-numeric: tabular-nums; }
.me-table .me-col { color: var(--me); font-weight: 700; }
.res { font-weight: 700; } .res.w { color: #46c47e; } .res.l { color: var(--me); } .res.d { color: var(--mute); }
.cloud img { border-radius: 6px; border: 1px solid var(--line); background: var(--ink-2); max-width: 680px; width: 100%; }
@media (max-width: 760px) {
  .link-form { grid-template-columns: 1fr; }
  .me-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; color: var(--mute); font-size: 15px; }
.share-row .cta { margin: 0; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.share-row .linkish { margin-left: 0; }
.share-page { padding: 32px 0 72px; }
.share-page h1 { font: 800 clamp(30px, 5vw, 48px)/1.2 var(--body); margin: 0 0 8px; }
.share-card { width: 100%; max-width: 900px; height: auto; border-radius: 8px; border: 1px solid var(--line); margin: 8px 0 28px; }
.iou-list { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.iou-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 8px 24px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line); }
.iou-who span { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iou-who small { color: var(--dim); font-size: 13px; }
.iou-nums { display: flex; flex-wrap: wrap; gap: 4px 20px; color: #b6c0ce; font-size: 15px; }
.iou-nums b { font: 900 22px/1 var(--display); color: var(--fg); margin: 0 2px; }
.iou-list .owe { color: var(--me); } .iou-list .owed { color: #46c47e; } .iou-list .even { color: var(--mute); }
@media (max-width: 760px) { .iou-list li { grid-template-columns: 1fr auto; } .iou-nums { grid-column: 1 / -1; grid-row: 2; } }
.drop { display: block; border: 1.5px dashed rgba(150, 170, 200, .35); border-radius: 6px; padding: 28px; text-align: center; color: var(--mute);
  cursor: pointer; max-width: 680px; }
.drop:hover, .drop.over { border-color: var(--t); color: var(--fg); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--t); outline-offset: 3px; }
.up-list { list-style: none; padding: 0; margin: 16px 0 0; max-width: 680px; }
.up-list li { display: grid; grid-template-columns: minmax(0, 1fr) 160px 150px; gap: 12px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-list progress { width: 100%; accent-color: var(--t); }
.up-list .ok .up-state { color: #46c47e; } .up-list .bad .up-state { color: var(--me); }
@media (max-width: 760px) { .up-list li { grid-template-columns: 1fr; gap: 4px; } }
.me-twin { margin: 0 0 36px; padding: 26px 28px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; max-width: 760px; }
.me-twin .tw-k { color: var(--mute); font-size: 15px; }
.tw-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 4px; }
.tw-n { font: 900 clamp(40px, 7vw, 72px)/1 var(--display); letter-spacing: .01em; overflow-wrap: anywhere; }
.tw-t { color: var(--t); font-weight: 700; }
.tw-s { margin-left: auto; font: 900 clamp(44px, 7vw, 72px)/1 var(--display); color: var(--me); }
.tw-s small { font-size: .45em; }
.tw-tr { color: #c6cfdb; margin: 12px 0 0; }
.tw-alt { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: #c6cfdb; font-size: 15px; }
.tw-alt span { color: var(--mute); } .tw-alt b { font: 900 18px/1 var(--display); }
.me-hero h1.me-h1-sm { font-size: clamp(30px, 5vw, 52px); }
.link-form.one { grid-template-columns: minmax(0, 1fr) auto; }
.link-form textarea { background: var(--ink-2); border: 1px solid var(--line); color: var(--fg); border-radius: 4px; padding: 12px 14px;
  font: 500 15px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; min-width: 0; resize: vertical; }
.link-form textarea:focus { outline: 2px solid var(--t); outline-offset: 1px; }
@media (max-width: 760px) { .link-form.one { grid-template-columns: 1fr; } }
/* skills, places, mistakes */
.sk-list { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.sk-list li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.6em 2.6em; gap: 14px; align-items: center; padding: 9px 0; }
.sk-n { font-weight: 700; }
.sk-tr { position: relative; height: 10px; background: rgba(150,170,200,.1); border-radius: 5px; }
.sk-tr i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: linear-gradient(90deg, rgba(93,143,240,.4), var(--ct)); }
.sk-tr em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--mute); transform: translateX(-1px); }
.sk-list b { font: 900 24px/1 var(--display); text-align: right; }
.sk-list small { font-size: 13px; color: var(--mute); } .sk-list small.up { color: #46c47e; } .sk-list small.down { color: var(--me); }
.pl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.pl-cols h3 { font-size: 16px; margin: 0 0 8px; } .pl-cols h3.good { color: #46c47e; } .pl-cols h3.bad { color: var(--me); }
.pl-list { list-style: none; padding: 0; margin: 0; }
.pl-list li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto 3em 3.6em; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.side { font: 800 12px/1 var(--display); letter-spacing: .04em; padding: 3px 0; text-align: center; border-radius: 3px; }
.side.t { color: #1a1206; background: var(--t); } .side.ct { color: #0b1018; background: var(--ct); }
.pl-list .pr { color: var(--mute); font-size: 13px; } .pl-list b { font: 900 20px/1 var(--display); text-align: right; } .pl-list small { color: var(--dim); text-align: right; }
.pl-list .pl small { display: block; text-align: left; font-size: 12px; color: var(--mute); margin-top: 2px; }
.mk-rates { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--mute); font-size: 14px; }
.mk-rates b { color: var(--fg); }
.mk-match { border-top: 1px solid var(--line); padding: 12px 0; max-width: 860px; }
.mk-match summary { cursor: pointer; font-weight: 700; } .mk-match summary small { color: var(--mute); font-weight: 400; margin-left: 10px; }
.mk-list { list-style: none; padding: 0; margin: 10px 0 0; }
.mk-list li { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 16px; padding: 6px 0; color: #c6cfdb; font-size: 15px; }
.mk-r { color: var(--dim); white-space: nowrap; min-width: 9em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .pl-cols { grid-template-columns: 1fr; gap: 20px; } .sk-list li { grid-template-columns: 6em minmax(0, 1fr) 2.4em 2.4em; } .mk-list li { grid-template-columns: 1fr; gap: 2px; } }
