:root {
  --bg: #07090b;
  --surface: #0e1115;
  --surface-2: #15191e;
  --ink: #f5f3e8;
  --muted: #98a0a9;
  --yellow: #fcee0a;
  --cyan: #00f0ff;
  --pink: #ff164f;
  --line: #29313a;
  --line-strong: #53606d;
  --radius: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background-image:
    linear-gradient(#11182066 1px, transparent 1px),
    linear-gradient(90deg, #11182055 1px, transparent 1px);
  background-size: 54px 54px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .11;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #000 3px 4px);
  mix-blend-mode: multiply;
}
.signal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0 8%, #00f0ff75 8% 11%, transparent 11% 72%, #ff164f66 72% 76%, transparent 76%),
    linear-gradient(0deg, transparent 0 48%, #fcee0a22 48% 52%, transparent 52%);
  animation: signal-break 9s infinite steps(1, end);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.hero {
  min-height: 520px;
  padding: 28px clamp(24px, 6vw, 90px) 70px;
  position: relative;
  overflow: hidden;
  color: #080a0c;
  background: var(--yellow);
  border-bottom: 10px solid #080a0c;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    linear-gradient(115deg, transparent 0 60%, #00a9ad44 60% 60.4%, transparent 60.4%),
    repeating-linear-gradient(90deg, #080a0c18 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, #080a0c12 0 1px, transparent 1px 46px);
  animation: hero-grid-drift 16s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  top: -20%;
  width: min(44vw, 650px);
  height: 142%;
  background:
    linear-gradient(135deg, transparent 0 12%, #080a0c 12% 79%, transparent 79%),
    repeating-linear-gradient(0deg, transparent 0 24px, #00f0ff55 24px 26px);
  transform: skewX(-8deg);
  animation: hero-slab 8s infinite steps(1, end);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.nav-actions { display: flex; gap: 8px; }
.nav-highlight { display: inline-flex; align-items: center; margin: 0; text-decoration: none; }
.guest-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
}
#guestbookForm { width: min(360px, calc(100% - 54px)); }
#guestbookForm input[name="message"] {
  width: 100%;
  height: 34px;
  padding: 6px 11px;
  border: 1px solid #080a0c;
  border-radius: 0;
  color: #080a0c;
  background: #fff65d;
  outline: none;
  font-size: 11px;
  font-weight: 700;
}
#guestbookForm input[name="message"]::placeholder { color: #565315; opacity: .9; }
#guestbookForm input[name="message"]:focus { box-shadow: inset 0 -3px 0 var(--cyan); }
.guestbook-submit-sr, .guestbook-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.site-like {
  min-width: 47px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #080a0c;
  border-radius: 0;
  color: var(--ink);
  background: #080a0c;
  font-weight: 900;
  white-space: nowrap;
}
.site-like:hover { color: #080a0c; background: var(--pink); }
.site-like strong { color: var(--ink); font-family: "Rajdhani", monospace; font-size: 14px; }
.site-like:hover strong { color: #080a0c; }
.like-symbol { color: var(--pink); font-size: 15px; line-height: 1; }
.site-like:hover .like-symbol { color: #080a0c; }
.site-like.is-liked .like-symbol { animation: like-impact 260ms ease-out; }
.danmaku-stage {
  position: relative;
  z-index: 2;
  height: 58px;
  margin-top: 6px;
  overflow: hidden;
  pointer-events: none;
}
.danmaku-stage::before, .danmaku-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 32px;
  pointer-events: none;
}
.danmaku-stage::before { left: 0; background: linear-gradient(90deg, var(--yellow), transparent); }
.danmaku-stage::after { right: 0; background: linear-gradient(-90deg, var(--yellow), transparent); }
.danmaku-lane {
  --lane: 0;
  position: absolute;
  inset: calc(2px + var(--lane) * 27px) 0 auto;
  height: 24px;
  overflow: hidden;
}
.danmaku-track {
  --duration: 18s;
  --delay: 0s;
  position: absolute;
  left: 100%;
  top: 0;
  width: max-content;
  display: flex;
  gap: 46px;
  will-change: transform;
  animation: danmaku-run var(--duration) linear var(--delay) infinite;
}
.danmaku-item {
  display: inline-flex;
  align-items: baseline;
  padding: 2px 9px 3px;
  color: #f4f1e4;
  background: #101419e8;
  border-left: 3px solid var(--cyan);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}
.danmaku-item:nth-child(3n) { border-color: var(--yellow); }
.danmaku-item:nth-child(3n + 1) { border-color: var(--pink); }
.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  color: #080a0c;
  font-family: "Rajdhani", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
}
.brand::before {
  content: "";
  grid-row: 1 / span 2;
  width: 8px;
  height: 30px;
  background: #080a0c;
}
.brand b { grid-column: 2; width: max-content; padding: 2px 5px; color: var(--yellow); background: #080a0c; }
.brand small {
  grid-column: 2;
  display: block;
  margin-top: 3px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .28em;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-top: 48px;
}
.hero-kicker {
  display: block;
  margin-bottom: 12px;
  color: #080a0c;
  font-family: "Rajdhani", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
}
h1 {
  max-width: 6.4em;
  margin: 0 0 22px;
  position: relative;
  color: #080a0c;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-sequence-trigger {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 1.08em;
  padding: .1em .34em .14em;
  border: 0;
  color: var(--yellow);
  background: #080a0c;
  font: inherit;
  line-height: 1;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - .22em) 0, 100% .22em, 100% 100%, .16em 100%, 0 calc(100% - .16em));
  transition: color .12s ease, background .12s ease, transform .12s ease;
}
.hero-sequence-trigger::after {
  content: "▶";
  margin-left: .7em;
  font-size: .28em;
  letter-spacing: 0;
  transform: translateY(.05em);
}
.hero-sequence-title[data-state="idle"] .hero-sequence-trigger:hover {
  color: #080a0c;
  background: var(--cyan);
  transform: translate(5px, -3px);
}
.hero-sequence-trigger:disabled { cursor: default; opacity: 1; }
.hero-sequence-trigger:disabled::after { display: none; }
.hero-sequence-trigger:focus-visible { outline: 4px solid var(--cyan); outline-offset: 7px; }
.hero-sequence-text { display: inline-block; position: relative; }
.hero-sequence-text::before, .hero-sequence-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.hero-sequence-title[data-state="idle"] .hero-sequence-text::before { color: var(--cyan); animation: title-glitch-a 5.8s infinite steps(1, end); }
.hero-sequence-title[data-state="idle"] .hero-sequence-text::after { color: var(--pink); animation: title-glitch-b 5.8s infinite steps(1, end); }
.hero-sequence-title.is-glitching .hero-sequence-text::before { color: var(--cyan); animation: hero-sequence-glitch-a .64s steps(1, end); }
.hero-sequence-title.is-glitching .hero-sequence-text::after { color: var(--pink); animation: hero-sequence-glitch-b .64s steps(1, end); }
.hero-sequence-title[data-state="connected"] {
  max-width: none;
  font-size: clamp(46px, 5.4vw, 74px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.hero-sequence-title[data-state="connected"] .hero-sequence-trigger {
  padding-top: .15em;
  padding-bottom: .2em;
}
.hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: #242527;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.friend-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(108px, 1fr));
  gap: 9px;
  width: min(590px, 70vw);
  margin-top: 26px;
  color: #f7f7f2;
}
.friend-links-label {
  grid-column: 1 / -1;
  padding: 0 0 2px;
  color: #080a0c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.friend-link {
  --platform-accent: var(--yellow);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 10px 10px;
  border: 1px solid #080a0c;
  border-top: 4px solid var(--platform-accent);
  color: inherit;
  background: #080a0c;
  text-align: left;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: color 150ms ease, background-color 150ms ease;
}
.friend-link:hover, .friend-link:focus-visible { color: #080a0c; background: var(--yellow); outline: none; }
.friend-link > span:last-child { min-width: 0; display: grid; }
.friend-link .platform-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.friend-link strong { font-size: 12px; line-height: 1.1; }
.friend-link small {
  overflow: hidden;
  color: #aeb4bd;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-link:hover small, .friend-link:focus-visible small { color: #242527; }
.friend-link.platform-xbox { --platform-accent: #107c10; }
.friend-link.platform-playstation { --platform-accent: #2f7edb; }
.friend-link.platform-nintendo { --platform-accent: #e60012; }
.friend-link.platform-steam { --platform-accent: #66c0f4; }
.friend-link.platform-xbox .platform-icon { color: #107c10; }
.friend-link.platform-playstation .platform-icon { color: #2f7edb; }
.friend-link.platform-nintendo .platform-icon { color: #e60012; }
.friend-link.platform-steam .platform-icon { color: #66c0f4; }
.primary, .ghost, .small-button, .month-nav button, .calendar-toggle {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 14px 22px;
  border: 1px solid var(--yellow);
  color: #101114;
  background: var(--yellow);
  font-weight: 900;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.primary:hover { background: #fff36c; border-color: #fff36c; }
.hero .primary {
  border-color: #080a0c;
  color: var(--yellow);
  background: #080a0c;
  box-shadow: 8px 8px 0 #00a9ad;
}
.hero .primary:hover { color: #fff; background: #17191b; border-color: #17191b; }
.hero .ghost { border-color: var(--yellow); color: var(--yellow); background: #080a0c; }
.hero .ghost:hover { border-color: var(--cyan); color: #080a0c; background: var(--cyan); }
.hero-telemetry {
  position: absolute;
  left: clamp(24px, 6vw, 90px);
  right: clamp(24px, 6vw, 90px);
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-top: 9px;
  border-top: 2px solid #080a0c;
  color: #080a0c;
  font-family: "Rajdhani", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.ghost, .small-button, .month-nav button, .calendar-toggle {
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.ghost:hover, .small-button:hover, .month-nav button:hover, .calendar-toggle:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: #f4df1908;
}

main {
  max-width: 1540px;
  margin: auto;
  padding: 0 clamp(20px, 5vw, 76px) 100px;
}
.stats {
  display: grid;
  grid-template-columns: 1.7fr repeat(5, 1fr);
  margin-top: -42px;
  position: relative;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--cyan);
  box-shadow: 10px 10px 0 #000;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.stat {
  min-width: 0;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 4px solid var(--yellow); }
.stat-label {
  display: block;
  color: var(--muted);
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .045em;
  white-space: nowrap;
}
.stat-value {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  position: relative;
  color: var(--ink);
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: clamp(25px, 2.3vw, 38px);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}
.stat-primary .stat-value { color: var(--yellow); font-size: clamp(36px, 3.4vw, 54px); }
.stat-primary .stat-value::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--cyan);
  opacity: 0;
  pointer-events: none;
  animation: measured-glitch 6s infinite steps(1, end);
}

.highlights-section {
  margin-top: 86px;
  padding: 34px 0 30px;
  border-top: 5px solid var(--yellow);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.highlight-heading-tools { display: flex; align-items: center; gap: 12px; }
.highlight-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  overflow: hidden;
  border: 1px solid #59616c;
  background: #080a0d;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.highlight-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-right: 1px solid #59616c;
  color: var(--muted);
  background: transparent;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.highlight-filter:last-child { border-right: 0; }
.highlight-filter strong { min-width: 20px; font-size: 11px; text-align: right; }
.highlight-filter:hover, .highlight-filter:focus-visible { color: var(--ink); background: #15191e; }
.highlight-filter.active { color: #090b0e; background: var(--cyan); }
.highlight-filter[data-highlight-filter="image"].active { background: var(--yellow); }
.highlight-count {
  padding: 7px 10px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: "Rajdhani", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
}
.highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.highlight-card {
  min-width: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.highlight-card:nth-child(3n + 2) { border-top-color: var(--yellow); }
.highlight-card:nth-child(3n) { border-top-color: var(--pink); }
.highlight-card:hover { border-right-color: var(--yellow); border-bottom-color: var(--yellow); border-left-color: var(--yellow); }
.highlight-open {
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.highlight-open:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.highlight-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  display: block;
  background: #080a0d;
}
.highlight-media img, .highlight-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.highlight-remote-preview { width: 100%; height: 100%; display: grid; place-items: center; color: #6b7681; background: repeating-linear-gradient(0deg, #07090c 0 3px, #0b0e12 3px 4px); font-family: "Rajdhani", ui-monospace, monospace; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.highlight-card:hover .highlight-media img, .highlight-card:hover .highlight-media video { animation: poster-signal .42s steps(2, end); }
.highlight-play {
  width: 48px;
  height: 48px;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #080a0c;
  background: var(--yellow);
  font-size: 17px;
  box-shadow: 7px 7px 0 #000a;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.highlight-meta { min-width: 0; display: grid; gap: 6px; padding: 15px 16px 17px; }
.highlight-meta strong { overflow: hidden; font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.highlight-meta small { color: var(--muted); font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 11px; letter-spacing: .035em; }
.highlight-cloud { margin-left: 5px; color: var(--cyan); font-style: normal; font-weight: 900; }
.highlight-more-wrap { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.highlight-more {
  width: min(360px, 100%);
  min-width: 0;
  flex: 0 1 360px;
  padding: 14px 24px;
  border: 1px solid var(--cyan);
  color: var(--ink);
  background: #0a0d11;
  font-size: 14px;
  font-weight: 800;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.highlight-more:hover, .highlight-more:focus-visible { border-color: var(--yellow); color: var(--yellow); background: #11130d; }
.highlight-collapse { border-color: #59616c; color: var(--muted); }
.highlight-empty {
  padding: 52px 24px;
  border: 1px dashed #3d4650;
  color: var(--muted);
  background: #0b0e12;
  text-align: center;
}
.highlight-empty strong { display: block; color: var(--ink); font-size: 19px; }
.highlight-empty p { margin: 9px 0 0; line-height: 1.7; }
.highlight-empty code { color: var(--yellow); }

.recent-activity {
  margin-top: 86px;
  padding: 34px 0 30px;
  border-top: 5px solid var(--cyan);
  border-bottom: 1px solid var(--line);
}
.recent-heading { align-items: center; }
.recent-total {
  min-width: 180px;
  padding: 13px 16px;
  border: 1px solid var(--yellow);
  background: #0b0d10;
  text-align: right;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.recent-total small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.recent-total strong { display: block; margin-top: 3px; color: var(--yellow); font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 25px; line-height: 1; }
.recent-chart-shell { overflow-x: auto; padding-bottom: 7px; scrollbar-color: var(--yellow) #171a1e; scrollbar-width: thin; }
.recent-chart {
  min-width: 920px;
  height: 252px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(54px, 1fr));
  gap: 7px;
  padding: 0 7px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 49px, #242b333d 49px 50px);
}
.recent-day {
  min-width: 0;
  height: 251px;
  display: grid;
  grid-template-rows: 28px 1fr 40px;
  align-items: end;
  position: relative;
}
.recent-day-total { align-self: center; color: #8e969f; font-family: "Rajdhani", ui-monospace, monospace; font-size: 10px; font-weight: 800; text-align: center; }
.recent-bar-track { height: 100%; min-height: 0; border-bottom: 1px solid #59616a; background: #090b0d66; }
.recent-bar-svg { width: 100%; height: 100%; display: block; }
.recent-xbox { --recent-color: #107c10; }
.recent-playstation { --recent-color: #3689e6; }
.recent-nintendo { --recent-color: #e60012; }
.recent-steam { --recent-color: #66c0f4; }
.recent-bar-svg .recent-xbox, .recent-bar-svg .recent-playstation, .recent-bar-svg .recent-nintendo, .recent-bar-svg .recent-steam { fill: var(--recent-color); stroke: #07090b; stroke-width: .8; vector-effect: non-scaling-stroke; }
.recent-date { align-self: stretch; display: grid; place-content: center; gap: 1px; color: #858d96; text-align: center; }
.recent-date b { font-family: "Rajdhani", ui-monospace, monospace; font-size: 12px; }
.recent-date small { font-size: 9px; }
.recent-day.is-today .recent-date { color: var(--yellow); border-bottom: 3px solid var(--yellow); }
.recent-day.is-today .recent-day-total { color: var(--yellow); }
.recent-legend { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; margin-top: 17px; }
.recent-legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.recent-legend-item .platform-icon { width: 15px; height: 15px; color: var(--recent-color); }
@keyframes measured-glitch {
  0%, 91%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
  92% { opacity: .75; clip-path: inset(18% 0 55% 0); transform: translateX(-3px); }
  93% { opacity: .55; clip-path: inset(64% 0 12% 0); transform: translateX(3px); }
  94% { opacity: 0; }
}

.activity-section {
  margin-top: 86px;
  padding: 34px 0 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
}
.section-heading h2, .providers h2 {
  margin: 0 0 9px;
  position: relative;
  width: max-content;
  max-width: 100%;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
}
.section-heading h2::before, .providers h2::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--cyan);
  opacity: 0;
  pointer-events: none;
  animation: section-glitch 7.5s infinite steps(1, end);
}
.section-heading h2::after, .providers h2::after {
  content: "// DATA MODULE";
  display: block;
  margin-top: 10px;
  color: var(--yellow);
  font-family: "Rajdhani", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.section-note { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.65; }
.section-note cite { margin-left: .55em; color: #68717c; font-style: normal; white-space: nowrap; }
.calendar-controls { display: flex; align-items: center; gap: 16px; }
.calendar-toggle { color: var(--yellow); border-color: #5a5320; font-size: 12px; }
.month-nav { display: flex; align-items: center; gap: 12px; }
.month-nav strong {
  min-width: 108px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  text-align: center;
}
.month-nav button { width: 40px; height: 38px; padding: 0; }
.calendar-weekdays, .calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-bottom: 6px; }
.calendar-weekdays span { padding: 7px; color: #707782; font-size: 11px; font-weight: 700; text-align: right; }
.calendar-day {
  min-height: 78px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #29323b;
  color: #7e858f;
  background: #0e1013;
  text-align: left;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.calendar-day:hover { border-color: var(--yellow); color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); }
.calendar-day span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }
.calendar-day strong { font-size: 11px; font-weight: 700; }
.calendar-spacer { min-height: 78px; }
.calendar-day.heat-1, .heat-legend .heat-1 { background: #2a2918; color: #d6cc7c; }
.calendar-day.heat-2, .heat-legend .heat-2 { background: #565020; color: #fff5a2; }
.calendar-day.heat-3, .heat-legend .heat-3 { background: #a89618; color: #111; }
.calendar-day.heat-4, .heat-legend .heat-4 { background: var(--yellow); color: #101114; }
.calendar-day.has-history { color: #ff9bb1; border-color: var(--pink); background: #211318; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.activity-coverage { margin: 10px 0 0; color: #737b86; font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 11px; letter-spacing: .04em; text-align: right; }
.heat-legend i { display: block; width: 18px; height: 11px; border: 1px solid #353a41; }
.heat-legend .heat-0 { background: #0e1013; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 68px 0 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--yellow);
}
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}
.tabs button:hover { color: var(--ink); border-color: var(--line-strong); }
.tabs .active { color: #101114; background: var(--yellow); }
#search {
  width: 250px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  outline: none;
  color: var(--ink);
  background: transparent;
}
#search:focus { border-color: var(--yellow); }
#search::placeholder { color: #6f7680; }

.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.game {
  min-width: 0;
  overflow: hidden;
  position: relative;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.game::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0 8%, #00f0ff33 8% 10%, transparent 10% 72%, #ff164f2e 72% 75%, transparent 75%);
}
.game:hover { border-color: var(--yellow); background: var(--surface-2); }
.game:hover::after { animation: card-scan .45s steps(2, end); }
.poster-link { display: block; color: inherit; text-decoration: none; }
.poster-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.game-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #686e77;
  background: #191c21;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}
.game-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game:hover .game-poster img { animation: poster-signal .42s steps(2, end); }
.store-hint {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 9px;
  padding: 5px 7px;
  color: #101114;
  background: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  transition: opacity 150ms ease;
}
.poster-link:hover .store-hint, .poster-link:focus-visible .store-hint { opacity: 1; }
.game-content { min-height: 210px; padding: 18px 19px 21px; display: flex; flex-direction: column; }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 900; }
.platform-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.platform-xbox .platform-icon, .tabs button[data-platform="xbox"] .platform-icon { color: #107c10; }
.platform-playstation .platform-icon, .tabs button[data-platform="playstation"] .platform-icon { color: #3689e6; }
.platform-nintendo .platform-icon, .tabs button[data-platform="nintendo"] .platform-icon { color: #e60012; }
.platform-steam .platform-icon, .tabs button[data-platform="steam"] .platform-icon { color: #66c0f4; }
.tabs .active .platform-icon { color: #101114 !important; }
.source { color: #727984; font-size: 10px; font-weight: 700; }
.game h3 { margin: 22px 0 auto; font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 23px; font-weight: 800; line-height: 1.18; }
.hours { color: var(--ink); font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 31px; font-weight: 900; }
.hours-unknown { color: var(--muted); font-size: 23px; letter-spacing: .04em; }
.hours span { margin-left: 4px; color: var(--muted); font-size: 12px; }
.game-foot { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: 22px; }
.game-foot small { display: block; color: var(--muted); }
.achievement-line { margin-top: 7px; color: var(--yellow) !important; font-size: 11px; font-weight: 800; }
.mc-score {
  width: 58px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid currentColor;
  color: #090a0b;
  background: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}
.mc-score strong { font-size: 20px; line-height: 1; }
.mc-high { background: #63e56f; }
.mc-mid { background: var(--yellow); }
.mc-low { background: var(--pink); }
.mc-empty { color: #858c96; background: #16191d; border-color: #42474f; }
.mc-score[href]:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.score-attribution { margin: 16px 0 0; color: #737b86; font-size: 11px; text-align: right; }
.score-attribution a { color: var(--cyan); }
.platform-xbox { border-top: 3px solid #3f9d35; }
.platform-playstation { border-top: 3px solid #3689e6; }
.platform-nintendo { border-top: 3px solid #e60012; }
.platform-steam { border-top: 3px solid #66c0f4; }

.providers {
  margin-top: 96px;
  padding-top: 48px;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 2fr);
  gap: 56px;
  border-top: 8px solid var(--yellow);
  position: relative;
}
.providers::before {
  content: "CONNECTION MATRIX";
  position: absolute;
  top: -26px;
  right: 0;
  padding: 4px 9px;
  color: #0a0b0d;
  background: var(--yellow);
  font-family: "Rajdhani", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.provider {
  display: grid;
  grid-template-columns: 120px 80px minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.provider > strong { font-size: 17px; }
.provider p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.status { width: max-content; padding: 3px 0; color: #858c96; font-size: 11px; font-weight: 800; }
.status.connected { color: var(--yellow); }
.provider-actions { display: flex; gap: 7px; justify-content: flex-end; }
.visitor-note { color: #737b86; font-family: "Rajdhani", ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.small-button { padding: 7px 10px; font-size: 11px; }
.small-button.danger { color: #f08aa0; border-color: #6c3542; }
.connection-meta { display: block; margin-top: 6px; color: #737b86; font-size: 11px; }
.error-meta { color: #f08aa0; }
.empty { padding: 70px 0; color: var(--muted); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hidden { display: none; }

dialog {
  width: min(580px, calc(100% - 28px));
  max-height: min(85vh, 850px);
  overflow: auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 7px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 #000b;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
dialog::backdrop { background: #050608dc; }
dialog form, .activity-dialog-body { padding: 28px; }
.highlight-dialog { width: min(1180px, calc(100% - 28px)); }
.highlight-dialog-body { padding: 22px; }
.highlight-dialog .dialog-head { margin-bottom: 14px; }
.highlight-dialog .dialog-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.highlight-viewer { overflow: hidden; position: relative; display: grid; place-items: center; min-height: 240px; background: #050608; }
.highlight-viewer img, .highlight-viewer video { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; }
.highlight-loading { display: grid; gap: 7px; padding: 48px 20px; color: var(--cyan); text-align: center; }
.highlight-loading strong { font-family: "Rajdhani", "Noto Sans SC", sans-serif; font-size: 20px; letter-spacing: .04em; }
.highlight-loading span { color: var(--muted); font-size: 12px; }
.highlight-loading.is-error strong { color: var(--pink); }
.highlight-playback-source { position: absolute; right: 12px; top: 12px; padding: 7px 10px; border: 1px solid currentColor; color: var(--yellow); background: #080a0de8; font-size: 11px; font-weight: 900; pointer-events: none; }
.highlight-playback-source.is-remote { color: var(--cyan); }
.highlight-buffer-panel { width: 100%; padding: 15px 17px 17px; border-top: 1px solid #27313a; background: #090c10; box-sizing: border-box; }
.highlight-buffer-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; text-align: left; }
.highlight-buffer-copy strong { color: var(--yellow); font-size: 13px; letter-spacing: .05em; }
.highlight-buffer-copy span { color: #a0a8b2; font-size: 12px; }
.highlight-buffer-track { position: relative; height: 7px; overflow: hidden; border: 1px solid #38414b; background: #020304; }
.highlight-buffer-track::after { position: absolute; left: var(--buffer-target, 100%); top: -3px; bottom: -3px; width: 2px; content: ""; background: var(--yellow); box-shadow: 0 0 8px #fcee0a; }
.highlight-buffer-track i { display: block; width: 0; height: 100%; background: var(--cyan); transition: width .3s linear; }
.highlight-buffer-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.highlight-buffer-actions button { padding: 10px 14px; border: 1px solid var(--cyan); color: var(--cyan); background: #06090c; font-size: 12px; font-weight: 900; }
.highlight-buffer-actions button:hover:not(:disabled) { color: #050608; background: var(--cyan); }
.highlight-buffer-actions .highlight-play-now { border-color: #5d6670; color: #c0c6cc; }
.highlight-buffer-actions button:disabled { cursor: wait; opacity: .55; }
.highlight-buffer-panel.is-error { border-top-color: var(--pink); }
.highlight-buffer-panel.is-error .highlight-buffer-copy strong { color: var(--pink); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 22px; }
.dialog-head h2 { margin: 4px 0; font-size: 30px; }
.close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line-strong); color: var(--muted); background: transparent; font-size: 27px; line-height: 1; }
.close:hover { color: var(--ink); border-color: var(--yellow); }
label { display: grid; gap: 8px; margin-top: 17px; color: #d8d9d5; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #383d45; border-radius: var(--radius); outline: none; color: var(--ink); background: #0c0e11; }
input:focus, select:focus, textarea:focus { border-color: var(--yellow); }
.wide { width: 100%; }
.form-error { min-height: 20px; color: #f08aa0; font-size: 12px; }
.dropzone { padding: 18px; border: 1px dashed var(--line-strong); }
.dropzone input { padding: 0; border: 0; }
.dropzone span, .hint { color: var(--muted); font-weight: 400; }
.steps { padding-left: 20px; color: #b0b4bb; font-size: 13px; line-height: 1.8; }
.steps a { color: var(--cyan); }
.warning, .activity-explainer { padding: 12px 0; color: #c8c2a1; border-top: 1px solid #484329; border-bottom: 1px solid #484329; font-size: 12px; line-height: 1.65; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; padding: 13px 18px; color: #101114; background: var(--yellow); border: 1px solid #756c12; font-weight: 900; opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
.toast.show { opacity: 1; }

.activity-platform { margin-top: 22px; border-top: 1px solid var(--line); }
.activity-platform-head { display: flex; justify-content: space-between; padding: 14px 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.activity-platform-head strong { display: flex; align-items: center; gap: 7px; }
.activity-game { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(118px, auto); gap: 13px; align-items: center; padding: 11px 0; border-top: 1px solid #252930; }
.activity-game > div:not(.game-poster) { min-width: 0; }
.activity-game strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-game small { color: var(--muted); }
.activity-time { text-align: right; }
.activity-time b { display: block; color: var(--yellow); font-size: 12px; }
.activity-time small { display: block; margin-top: 5px; font-size: 10px; }
.activity-time.history-label b { color: var(--pink); }
.activity-poster { width: 52px; height: 68px; aspect-ratio: auto; }
.no-activity { padding: 45px 15px; color: var(--muted); text-align: center; }
.no-activity span { color: #343941; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 64px; font-weight: 900; }
.no-activity p { max-width: 360px; margin: 10px auto; line-height: 1.6; }

.page-end {
  margin-top: 82px;
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 5px solid var(--yellow);
  color: #737b85;
  font-family: "Rajdhani", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}
.page-end-status { display: grid; gap: 5px; }
.page-end-status small { color: #a2a8b0; font-family: "Noto Sans SC", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.page-end-actions { display: flex; gap: 10px; }
.back-top-footer, .sync-all-footer {
  padding: 13px 19px;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  background: #0a0c0f;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}
.sync-all-footer { border-color: var(--cyan); color: var(--cyan); }
.back-top-footer:hover, .sync-all-footer:hover { color: #090a0c; background: var(--yellow); }
.sync-all-footer:hover { background: var(--cyan); }
.back-top-footer:disabled, .sync-all-footer:disabled { cursor: wait; opacity: .55; }
.site-nodes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  font-family: "Rajdhani", ui-monospace, monospace;
  text-transform: uppercase;
}
.site-nodes-label {
  display: grid;
  place-items: center;
  padding: 14px 18px;
  color: #080a0c;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}
.site-node {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 13px 16px;
  border-left: 1px solid var(--line);
  color: #d9dde1;
  background: #0a0c0f;
  text-decoration: none;
}
.site-node small { color: var(--muted); font-family: "Noto Sans SC", sans-serif; font-size: 10px; font-weight: 800; }
.site-node strong { overflow: hidden; font-size: 14px; letter-spacing: .05em; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.site-node > span { color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.site-node-backup > span { color: var(--pink); }
.site-node:hover, .site-node:focus-visible { color: #080a0c; background: var(--cyan); outline: 0; }
.site-node-backup:hover, .site-node-backup:focus-visible { background: var(--pink); }
.site-node:hover small, .site-node:hover > span, .site-node:focus-visible small, .site-node:focus-visible > span { color: #080a0c; }
.quick-top {
  position: fixed;
  right: 22px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 110;
  padding: 10px 13px;
  border: 1px solid var(--cyan);
  color: #090a0c;
  background: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 140ms ease, transform 140ms ease;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  box-shadow: 6px 6px 0 #000a;
}
.quick-top span { margin-right: 4px; font-size: 16px; }
.quick-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.quick-top:hover { color: var(--yellow); background: #090a0c; border-color: var(--yellow); }

@keyframes signal-break {
  0%, 89%, 92%, 100% { opacity: 0; transform: translateX(0); clip-path: inset(0); }
  90% { opacity: .55; transform: translateX(-6px); clip-path: inset(18% 0 69% 0); }
  91% { opacity: .35; transform: translateX(7px); clip-path: inset(63% 0 18% 0); }
}
@keyframes hero-grid-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 40px 0, 92px 0, 0 46px; }
}
@keyframes hero-slab {
  0%, 93%, 100% { transform: skewX(-8deg) translateX(0); filter: none; }
  94% { transform: skewX(-8deg) translateX(-9px); filter: drop-shadow(8px 0 var(--pink)); }
  95% { transform: skewX(-8deg) translateX(6px); filter: drop-shadow(-7px 0 var(--cyan)); }
  96% { transform: skewX(-8deg) translateX(0); filter: none; }
}
@keyframes title-glitch-a {
  0%, 84%, 89%, 100% { opacity: 0; clip-path: inset(0); transform: none; }
  85% { opacity: .82; clip-path: inset(12% 0 66% 0); transform: translate(-7px, 1px); }
  86% { opacity: .72; clip-path: inset(59% 0 18% 0); transform: translate(5px, -1px); }
  87% { opacity: .55; clip-path: inset(38% 0 40% 0); transform: translate(-3px, 0); }
  88% { opacity: 0; }
}
@keyframes title-glitch-b {
  0%, 84%, 89%, 100% { opacity: 0; clip-path: inset(0); transform: none; }
  85% { opacity: .68; clip-path: inset(66% 0 8% 0); transform: translate(7px, 0); }
  86% { opacity: .5; clip-path: inset(25% 0 57% 0); transform: translate(-5px, 1px); }
  87% { opacity: .7; clip-path: inset(48% 0 28% 0); transform: translate(3px, -1px); }
  88% { opacity: 0; }
}
@keyframes hero-sequence-glitch-a {
  0%, 100% { opacity: 0; clip-path: inset(0); transform: none; }
  8% { opacity: .95; clip-path: inset(4% 0 71% 0); transform: translate(-12px, 1px); }
  22% { opacity: .76; clip-path: inset(61% 0 12% 0); transform: translate(9px, -2px); }
  37% { opacity: 0; }
  49% { opacity: .84; clip-path: inset(32% 0 46% 0); transform: translate(-6px, 2px); }
  66% { opacity: .7; clip-path: inset(73% 0 5% 0); transform: translate(7px, -1px); }
  82% { opacity: 0; }
}
@keyframes hero-sequence-glitch-b {
  0%, 100% { opacity: 0; clip-path: inset(0); transform: none; }
  5% { opacity: .82; clip-path: inset(67% 0 7% 0); transform: translate(11px, -1px); }
  18% { opacity: .66; clip-path: inset(21% 0 58% 0); transform: translate(-8px, 2px); }
  34% { opacity: 0; }
  46% { opacity: .9; clip-path: inset(9% 0 72% 0); transform: translate(7px, -2px); }
  63% { opacity: .64; clip-path: inset(52% 0 24% 0); transform: translate(-5px, 1px); }
  79% { opacity: 0; }
}
@keyframes section-glitch {
  0%, 94%, 97%, 100% { opacity: 0; clip-path: inset(0); transform: none; }
  95% { opacity: .7; clip-path: inset(18% 0 55% 0); transform: translateX(-4px); }
  96% { opacity: .55; clip-path: inset(61% 0 12% 0); transform: translateX(4px); }
}
@keyframes card-scan {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  35% { opacity: .8; clip-path: inset(12% 0 63% 0); transform: translateX(-5px); }
  70% { opacity: .5; clip-path: inset(64% 0 12% 0); transform: translateX(5px); }
  100% { opacity: 0; clip-path: inset(0); transform: translateX(0); }
}
@keyframes poster-signal {
  0%, 100% { filter: none; transform: translateX(0); }
  35% { filter: saturate(1.45) contrast(1.12); transform: translateX(-2px); }
  70% { filter: hue-rotate(8deg) contrast(1.08); transform: translateX(2px); }
}
@keyframes danmaku-run {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100vw - 100% - 120px)); }
}
@keyframes like-impact {
  0% { transform: scale(.78) rotate(-8deg); }
  58% { transform: scale(1.42) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal-overlay, .hero::before, .hero::after, .hero-sequence-text::before, .hero-sequence-text::after,
  .stat-primary .stat-value::before, .section-heading h2::before, .providers h2::before,
  .game:hover::after, .game:hover .game-poster img, .highlight-card:hover .highlight-media img, .highlight-card:hover .highlight-media video { animation: none !important; }
  .signal-overlay, .hero-sequence-text::before, .hero-sequence-text::after, .section-heading h2::before, .providers h2::before { display: none; }
  .quick-top { transition: none; }
  .danmaku-stage { height: auto; min-height: 58px; display: flex; gap: 7px; overflow-x: auto; padding: 10px; }
  .danmaku-stage::before, .danmaku-stage::after { display: none; }
  .danmaku-lane { position: static; height: auto; flex: 0 0 auto; overflow: visible; }
  .danmaku-track { position: static; animation: none !important; transform: none; }
  .danmaku-item { flex: 0 0 auto; }
  .site-like.is-liked .like-symbol { animation: none; }
}
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 4px solid var(--line); }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider { grid-template-columns: 110px 75px 1fr; }
  .provider-actions { grid-column: 3; justify-content: flex-start; }
}
@media (max-width: 800px) {
  .hero { min-height: 560px; }
  .hero::after { opacity: .45; }
  .hero-copy { margin-top: 42px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 0; }
  .friend-links { width: min(590px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .highlight-heading-tools { width: 100%; }
  .highlight-switch { flex: 1; }
  .recent-total { width: 100%; text-align: left; }
  .calendar-controls { width: 100%; justify-content: space-between; }
  .calendar-day, .calendar-spacer { min-height: 66px; }
  .providers { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { min-height: 650px; padding-top: 20px; }
  .brand { column-gap: 7px; font-size: 13px; }
  .brand::before { width: 6px; height: 25px; }
  .brand small { font-size: 8px; letter-spacing: .22em; }
  .ghost { padding: 8px 9px; font-size: 11px; }
  .nav-actions { gap: 5px; }
  .nav-highlight { font-size: 10px; }
  .guest-actions { margin-top: 9px; }
  #guestbookForm { width: calc(100% - 51px); }
  #guestbookForm input[name="message"] { height: 32px; }
  .site-like { min-width: 44px; height: 32px; padding-inline: 7px; }
  .danmaku-stage { height: 31px; margin-top: 3px; }
  .danmaku-item { font-size: 10px; }
  h1 { font-size: 46px; }
  .hero-sequence-title[data-state="connected"] { font-size: 32px; }
  .stat { padding: 17px 14px; }
  .stat-value, .stat-primary .stat-value { font-size: 27px; }
  .activity-section { margin-top: 52px; padding-top: 26px; }
  .recent-activity { margin-top: 52px; padding-top: 26px; }
  .recent-chart { min-width: 790px; }
  .highlights-section { margin-top: 52px; padding-top: 26px; }
  .highlight-heading-tools { align-items: stretch; flex-direction: column; }
  .highlight-count { align-self: flex-start; }
  .highlight-grid { grid-template-columns: 1fr; }
  .highlight-dialog-body { padding: 14px; }
  .highlight-viewer { min-height: 160px; }
  .highlight-buffer-copy { display: grid; gap: 5px; }
  .highlight-buffer-actions { justify-content: stretch; }
  .highlight-buffer-actions button { flex: 1; }
  .calendar-weekdays, .calendar { gap: 3px; }
  .calendar-day, .calendar-spacer { min-height: 52px; }
  .calendar-day { padding: 6px; }
  .calendar-day strong { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .games { grid-template-columns: 1fr; gap: 12px; }
  .game-content { min-height: 180px; padding: 16px; }
  .source { display: none; }
  .provider { grid-template-columns: 1fr auto; }
  .provider p, .provider-actions { grid-column: 1 / -1; }
  .activity-game { grid-template-columns: 46px minmax(0, 1fr); }
  .activity-time { grid-column: 2; text-align: left; }
  .page-end { align-items: stretch; flex-direction: column; }
  .page-end-actions { display: grid; }
  .back-top-footer, .sync-all-footer { width: 100%; }
  .site-nodes { grid-template-columns: 1fr; }
  .site-nodes-label { justify-items: start; }
  .site-node { border-top: 1px solid var(--line); border-left: 0; }
  .quick-top { right: 14px; }
}
