:root {
  color-scheme: light;
  --ink: #1c1630;
  --muted: #777287;
  --pink: #e83da9;
  --blue: #65bffc;
  --lavender: #aa83fa;
  --line: #0a0a0a;
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #fbfaff; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
a { color: inherit; }
.site-header { display: flex; height: 78px; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 30px;  }
.header-actions { display: flex; align-items: center; gap: 20px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid #7548ce; border-radius: 8px; background: #fff; color: #686276; cursor: pointer; font-size: 11px; font-weight: 700; transition: .18s ease; }
.theme-toggle:hover { border-color: #a5c7de; color: #34749b; }
.theme-toggle-icon { font-size: 15px; line-height: 1; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 15px "Space Grotesk", sans-serif; letter-spacing: .04em; text-decoration: none; }
.brand-dot { color: var(--pink); }
.back-link { color: #6f687d; font-size: 12px; text-decoration: none; }
.back-link:hover, .site-footer a:hover { color: var(--pink); }
.back-link span { margin-left: 5px; color: var(--pink); }
.page-shell { max-width: 1000px; min-height: calc(100vh - 142px); margin: 0 auto; padding: 75px 30px 90px; border: 2px solid var(--pink); border-radius: 45px; background: linear-gradient(160deg, #f0edf8, #edf4fa); box-shadow: 0 18px 55px rgba(44, 29, 74, .05), 0 0 20px rgba(232, 61, 169, .22); }
.intro { max-width: 690px; margin-bottom: 52px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: #777287; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.eyebrow > span { width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--lavender)); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 { margin: 20px 0 14px; font-size: clamp(42px, 7vw, 68px); font-weight: 600; line-height: 1.04; letter-spacing: -.06em; }
h1 span { color: transparent; background: linear-gradient(95deg, var(--pink), #a64ed3 55%, #63b6ee); background-clip: text; -webkit-background-clip: text; }
.intro-copy { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.changelog { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 22px 65px rgba(44, 29, 74, .06); }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fdfcff; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tab { min-height: 38px; padding: 0 15px; border: 1px solid #e9e5f1; border-radius: 8px; background: #fff; color: #686276; cursor: pointer; font-size: 11px; font-weight: 700; transition: .18s ease; }
.category-tab:hover { border-color: #d8b4ed; color: #a83d9d; }
.category-tab[aria-pressed="true"] { border-color: transparent; background: linear-gradient(105deg, #e546a5, #a45edb 58%, #6baeea); color: white; box-shadow: 0 5px 14px rgba(190, 73, 177, .17); }
.product-filter-wrap select { min-width: 174px; height: 38px; padding: 0 30px 0 11px; border: 1px solid #e9e5f1; border-radius: 8px; background: white; color: #514b60; font-size: 11px; }
.product-filter-wrap select:disabled { color: #a09baa; background: #f8f7fa; }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding: 25px 24px 14px; }
.results-heading .eyebrow { color: #9993a5; font-size: 8px; }
.results-heading h2 { margin: 8px 0 0; font-size: 21px; letter-spacing: -.035em; }
.entry-count { color: #898394; font-size: 10px; white-space: nowrap; }
.entry-list { display: grid; gap: 11px; padding: 8px 18px 22px; }
.entry-card { padding: 18px 19px; border: 1px solid #efedf4; border-radius: 12px; background: linear-gradient(120deg, #fff, #fdfcff); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.entry-card:hover, .entry-card:focus-visible { transform: translateY(-2px); border-color: #d9c5ed; box-shadow: 0 12px 28px rgba(59, 39, 87, .08); outline: none; }
.entry-card[hidden] { display: none; }
.entry-meta, .entry-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.entry-meta { color: #918b9d; font-size: 9px; }
.entry-meta time { margin-left: auto; }
.entry-category, .entry-product, .version-tag, .price-tag, .update-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.update-badge { letter-spacing: .035em; }
.update-badge[hidden] { display: none; }
.update-major { background: #fff0f1; color: #c53a58; }
.update-feature { background: #e9f5ff; color: #2879af; }
.update-improvement { background: #f2ecff; color: #7752b1; }
.update-fix { background: #fff3df; color: #a66a16; }
.entry-category { background: #f7eaf4; color: #b34398; }
.entry-product { background: #edf5ff; color: #4d86b8; }
.entry-heading { justify-content: space-between; margin-top: 12px; }
.entry-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.version-tag { border: 1px solid #ece8f3; color: #746a85; font-weight: 600; }
.entry-description { margin: 10px 0 13px; color: #6f6a7b; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.price-tag.free { background: #e9f8f0; color: #27805d; }
.price-tag.paid { background: #fff3df; color: #a66a16; }
.state-message { margin: 8px 24px 24px; padding: 20px; border: 1px dashed #e5e0ec; border-radius: 10px; color: #80798d; font-size: 12px; text-align: center; }
.error-state { border-color: #f1cdd2; background: #fff8f8; color: #a13e50; }
.modal-open { overflow: hidden; }
.entry-modal[hidden] { display: none; }
.entry-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(23, 16, 38, .62); cursor: default; backdrop-filter: blur(9px); animation: modal-fade-in .18s ease-out; }
.modal-panel { position: relative; width: min(620px, 100%); max-height: min(82vh, 760px); overflow: auto; padding: clamp(24px, 5vw, 42px); border: 1px solid rgba(255,255,255,.85); border-radius: 22px; background: radial-gradient(ellipse at 10% 0, rgba(236,216,246,.7), transparent 40%), linear-gradient(145deg, #fff, #fbfaff); box-shadow: 0 32px 100px rgba(16,9,31,.28); animation: modal-rise-in .22s ease-out; }
.modal-close { position: absolute; top: 15px; right: 17px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #ece8f1; border-radius: 50%; background: rgba(255,255,255,.85); color: #746a80; cursor: pointer; font-size: 24px; line-height: 1; transition: .18s ease; }
.modal-close:hover { border-color: #d8c3e8; color: #b34398; transform: rotate(90deg); }
.modal-brand-row { display: flex; align-items: center; gap: 15px; padding-right: 40px; }
.modal-emblem { display: grid; width: 62px; height: 62px; flex: 0 0 62px; place-items: center; overflow: hidden; border: 1px solid rgba(123,98,150,.11); border-radius: 17px; background: linear-gradient(145deg, #fff, #f4effa); color: #8b61bc; font: 700 18px "Space Grotesk", sans-serif; }
.modal-emblem svg { width: 36px; height: 36px; }
.modal-emblem img { display: block; width: 100%; height: 100%; padding: 7px; object-fit: contain; }
.modal-emblem.has-image { background: #fff; }
.category-gaming { color: #bb6b3d; background: linear-gradient(145deg, #fff8ef, #fff0e3); }
.category-ai { color: #9858c2; background: linear-gradient(145deg, #fbf1ff, #f4e8ff); }
.category-community { color: #4e93a1; background: linear-gradient(145deg, #effcff, #e9f6ff); }
.project-emblem { width: 72px; height: 72px; flex-basis: 72px; border-radius: 20px; color: #7f5da9; font-size: 15px; }
.project-emblem img { padding: 6px; }
.modal-project-emblems { display: flex; flex-wrap: wrap; gap: 7px; }
.modal-brand-divider { width: 1px; height: 42px; background: #e9e3ef; }
.modal-brand-copy { display: grid; gap: 5px; min-width: 0; }
.modal-kicker { color: #91889d; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.modal-project { color: #3b3049; font: 600 17px "Space Grotesk", sans-serif; overflow-wrap: anywhere; }
.modal-meta { display: flex; align-items: center; gap: 9px; margin-top: 31px; color: #918b9d; font-size: 11px; }
.modal-meta time { margin-right: auto; }
.modal-panel h2 { margin: 14px 0 13px; color: #241a34; font-size: clamp(25px, 5vw, 36px); line-height: 1.15; letter-spacing: -.045em; }
.modal-description { margin: 0; color: #625b70; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.modal-links { margin-top: 24px; }
.modal-links[hidden] { display: none; }
.modal-links h3 { margin: 0 0 10px; color: #746a85; font-size: 11px; }
.modal-link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-link-list a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid #e7dcef; border-radius: 8px; background: #fff; color: #8551a6; font-size: 11px; font-weight: 700; text-decoration: none; transition: .18s ease; }
.modal-link-list a:hover { border-color: #cbb0df; background: #faf5ff; transform: translateY(-1px); }
.modal-footer { display: flex; justify-content: flex-end; margin-top: 28px; padding-top: 18px; border-top: 1px solid #eeeaf3; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; max-width: 1000px; margin: 0 auto; padding: 20px 30px 25px; color: #9993a5; font-size: 10px; }
.site-footer a { color: #716a80; text-decoration: none; }

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 18px; }
  .header-actions { gap: 9px; }
  .theme-toggle { min-height: 34px; padding: 0 8px; font-size: 10px; }
  .back-link { font-size: 0; }
  .back-link span { font-size: 12px; }
  .page-shell { padding: 52px 16px 65px; }
  .intro { margin-bottom: 35px; }
  .intro-copy { font-size: 12px; }
  .filters { align-items: stretch; flex-direction: column; padding: 14px; }
  .category-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .category-tab { padding: 0 8px; }
  .product-filter-wrap select { width: 100%; }
  .results-heading { padding: 22px 16px 12px; }
  .entry-list { padding: 8px 12px 16px; }
  .entry-card { padding: 15px; }
  .entry-meta time { margin-left: 0; }
  .entry-modal { padding: 12px; }
  .modal-panel { max-height: 88vh; padding: 27px 20px 22px; border-radius: 18px; }
  .modal-brand-row { gap: 10px; padding-right: 28px; }
  .modal-emblem { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
  .modal-emblem svg { width: 29px; height: 29px; }
  .project-emblem { width: 56px; height: 56px; flex-basis: 56px; }
  .modal-project { font-size: 14px; }
  .modal-meta { margin-top: 24px; }
  .modal-description { font-size: 13px; }
  .site-footer { padding-right: 18px; padding-left: 18px; }
}

body:not([data-theme="dark"]) .page-shell { border-color: var(--pink); }
body:not([data-theme="dark"]) .page-shell .changelog,
body:not([data-theme="dark"]) .page-shell .entry-card,
body:not([data-theme="dark"]) .page-shell .category-tab:not([aria-pressed="true"]),
body:not([data-theme="dark"]) .page-shell .theme-toggle,
body:not([data-theme="dark"]) .page-shell .product-filter-wrap select { border-color: #5428a7; }
body:not([data-theme="dark"]) .page-shell .filters { border-bottom-color: #621486; }

body[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5f2fc;
  --muted: #a7bfd2;
  --line: #1d3c58;
  background: #071a2d;
  color: var(--ink);
}
body[data-theme="dark"] .site-header,
body[data-theme="dark"] .site-footer { border-color: #1d3c58; }
body[data-theme="dark"] .page-shell { border-color: #65bffc; background: linear-gradient(160deg, #0b243b, #0e2d47); box-shadow: 0 18px 55px rgba(0, 0, 0, .16), 0 0 20px rgba(101, 191, 252, .24); }
body[data-theme="dark"] .back-link,
body[data-theme="dark"] .site-footer a { color: #b8ccdd; }
body[data-theme="dark"] .intro-copy { color: #a7bfd2; }
body[data-theme="dark"] .changelog { border-color: #1d3c58; background: #0b2239; box-shadow: 0 22px 65px rgba(0, 0, 0, .2); }
body[data-theme="dark"] .filters { border-color: #1d3c58; background: #0c2741; }
body[data-theme="dark"] .category-tab,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .product-filter-wrap select { border-color: #294a66; background: #102e49; color: #c6d9e8; }
body[data-theme="dark"] .category-tab:hover,
body[data-theme="dark"] .theme-toggle:hover { border-color: #5d9bb8; color: #a9e2f7; }
body[data-theme="dark"] .category-tab[aria-pressed="true"] { border-color: transparent; background: linear-gradient(105deg, #1689a4, #236e9f 58%, #465d9b); color: #fff; box-shadow: 0 5px 14px rgba(14, 116, 152, .25); }
body[data-theme="dark"] .product-filter-wrap select:disabled { background: #10263b; color: #8098aa; }
body[data-theme="dark"] .results-heading h2,
body[data-theme="dark"] .entry-heading h3 { color: #e6f3fc; }
body[data-theme="dark"] .results-heading .eyebrow,
body[data-theme="dark"] .entry-count { color: #9bb4c8; }
body[data-theme="dark"] .entry-card { border-color: #1c3b56; background: linear-gradient(120deg, #102b45, #0d263f); }
body[data-theme="dark"] .entry-card:hover,
body[data-theme="dark"] .entry-card:focus-visible { border-color: #4b84a5; box-shadow: 0 12px 28px rgba(0, 0, 0, .2); }
body[data-theme="dark"] .entry-meta,
body[data-theme="dark"] .entry-description { color: #aec2d2; }
body[data-theme="dark"] .entry-category { background: #452d50; color: #f0b3e1; }
body[data-theme="dark"] .entry-product { background: #183d58; color: #a8d7f3; }
body[data-theme="dark"] .version-tag { border-color: #31506b; color: #c0ccda; }
body[data-theme="dark"] .update-major { background: #512a3d; color: #ffadc0; }
body[data-theme="dark"] .update-feature { background: #173b56; color: #9ed8ff; }
body[data-theme="dark"] .update-improvement { background: #392d57; color: #c9b0ff; }
body[data-theme="dark"] .update-fix { background: #4a3925; color: #ffd18a; }
body[data-theme="dark"] .state-message { border-color: #294a66; color: #aec2d2; }
body[data-theme="dark"] .error-state { border-color: #713d50; background: #351f31; color: #ffc0c9; }
body[data-theme="dark"] .modal-backdrop { background: rgba(2, 10, 20, .78); }
body[data-theme="dark"] .modal-panel { border-color: #284760; background: radial-gradient(ellipse at 10% 0, rgba(27, 83, 112, .52), transparent 40%), linear-gradient(145deg, #102b45, #0a2036); }
body[data-theme="dark"] .modal-close { border-color: #31506b; background: #17334d; color: #c7d8e6; }
body[data-theme="dark"] .modal-close:hover { border-color: #5d9bb8; color: #a9e2f7; }
body[data-theme="dark"] .modal-brand-divider { background: #31506b; }
body[data-theme="dark"] .modal-kicker,
body[data-theme="dark"] .modal-meta { color: #a6bbcd; }
body[data-theme="dark"] .modal-project { color: #e0eff9; }
body[data-theme="dark"] .modal-panel h2 { color: #eef7fd; }
body[data-theme="dark"] .modal-description { color: #c1d1df; }
body[data-theme="dark"] .modal-links h3 { color: #b6cadb; }
body[data-theme="dark"] .modal-link-list a { border-color: #315875; background: #163550; color: #a9d9f2; }
body[data-theme="dark"] .modal-link-list a:hover { border-color: #5d9bb8; background: #1b4563; }
body[data-theme="dark"] .modal-footer { border-color: #294761; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
