/* Liquid-glass layer over styles.css (25 Nov 2026). Behaviour: glass.js. Remove both links in index.html to go back. */
:root { --g-spec: rgba(255, 255, 255, .75); --g-glow: rgba(255, 255, 255, .55); --g-edge: rgba(168, 123, 34, .9); --g-pill: rgba(255, 255, 255, .62); --g-drop: #e4c98e; }
:root[data-theme="light"] { --card: rgba(255, 255, 255, .46); --glass: rgba(255, 255, 255, .46); --glass-strong: rgba(255, 255, 255, .58); }
:root[data-theme="dark"] { --g-spec: rgba(255, 255, 255, .14); --g-glow: rgba(255, 255, 255, .09); --g-edge: rgba(246, 210, 122, .85); --g-pill: rgba(255, 255, 255, .1); --g-drop: #5b4b26;
  --card: rgba(52, 52, 56, .42); --glass: rgba(52, 52, 56, .42); --glass-strong: rgba(66, 66, 70, .48); }

/* 6 one soft base; no filter or transform on .shell, or the fixed dock would be trapped inside it */
.shell { background:
    radial-gradient(760px 520px at 88% -6%, rgba(233, 201, 130, .34), transparent 64%),
    radial-gradient(820px 600px at -4% 104%, rgba(176, 184, 198, .55), transparent 62%),
    radial-gradient(560px 460px at 58% 62%, rgba(255, 255, 255, .5), transparent 66%),
    linear-gradient(155deg, #f1f0ee 0%, #dfdedd 52%, #d3d2d0 100%); }
:root[data-theme="dark"] .shell { background:
    radial-gradient(760px 520px at 88% -6%, rgba(233, 185, 73, .15), transparent 64%),
    radial-gradient(820px 600px at -4% 104%, rgba(150, 156, 170, .16), transparent 62%),
    radial-gradient(560px 460px at 58% 62%, rgba(255, 255, 255, .045), transparent 66%),
    linear-gradient(155deg, #29292b 0%, #1c1c1e 52%, #151516 100%); }
.glass, .pricebar > div, .sbox, .seg-card, .nbox, .stat { backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); background: var(--card);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--g-spec), 0 14px 34px rgba(0, 0, 0, .09); }
.glass { border-radius: 26px; }
input, select { border-color: var(--line); }

/* 1 menu pill */
#nav, .tabs { position: relative; isolation: isolate; }
.tabs { position: sticky; }
.has-pill > .on, :root[data-theme] .has-pill > .on { background: none !important; box-shadow: none !important; color: var(--ink) !important; font-weight: 600; }
:root[data-theme="dark"] .has-pill > .on { color: var(--accent) !important; }
.g-pill { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 16px; pointer-events: none; background: var(--g-pill);
  box-shadow: inset 0 1px 0 var(--g-spec), inset 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .12); backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%); }

/* 2 light that follows the cursor; tilt on small cards */
.g-lit { position: relative; }
.g-lit::before, .g-lit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 1; }
.g-lit::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--g-glow), transparent 70%); }
.g-lit::after { padding: 1.5px; background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), var(--g-edge), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.g-lit.g-in::before, .g-lit.g-in::after { opacity: 1; }
.g-tilt { transition: transform .5s cubic-bezier(.2, .9, .25, 1); }
.g-tilt.g-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition-duration: .12s; }

/* 4 liquid filter chips */
.chipsel { position: relative; isolation: isolate; }
.g-goo { position: absolute; inset: -14px; z-index: -1; pointer-events: none; filter: url(#g-goo); }
.g-goo i { position: absolute; border-radius: 999px; background: var(--g-drop); }
.chipsel.has-goo > button.on, :root[data-theme] .chipsel.has-goo > button.on { background: transparent; color: var(--ink); box-shadow: inset 0 1px 0 var(--g-spec), inset 0 0 0 1px var(--g-edge); font-weight: 600; }

/* 3 overview cards: open in place, the rest become thumbnails */
.story { cursor: pointer; scroll-margin-top: 76px; }
.story:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stories.g-open { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); overflow: visible; }
.stories.g-open .story { min-height: 92px; padding: 10px; order: 1; }
.stories.g-open .story:not(.g-sel) .s-body, .stories.g-open .story:not(.g-sel) .s-aib { display: none; }
.stories.g-open .story:not(.g-sel) .s-tag { font-size: 9.5px; padding: 4px 7px; white-space: normal; }
.stories.g-open .g-sel { grid-column: 1 / -1; order: 0; min-height: min(460px, 62vh); padding: 26px; cursor: default; }
.stories.g-open .g-sel .s-num { font-size: 58px; } .stories.g-open .g-sel .s-body b { font-size: 20px; } .stories.g-open .g-sel .s-body small { font-size: 14.5px; max-width: 640px; }
.stories.g-open .g-sel .s-aib { right: 70px; }
.stories.g-open + .story-nav { display: none; }
.g-x, .g-more { display: none; position: absolute; z-index: 3; border: 1px solid rgba(255, 255, 255, .35); color: #fff; background: rgba(20, 20, 22, .5); font: inherit; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.g-x { right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; } .g-more { right: 20px; bottom: 20px; border-radius: 999px; padding: 11px 18px; font-weight: 600; }
.g-sel .g-x, .g-sel .g-more { display: block; }
.story .s-tag, .story .s-aib, .story .s-body { z-index: 2; }
@media (max-width: 800px) { .stories.g-open { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stories.g-open .g-sel { padding-bottom: 78px; } .stories.g-open .g-sel .s-num { font-size: 40px; } }

/* 5 floating dock on phones: icons only (the names stay readable to screen readers) */
@media (max-width: 800px) {
  .shell { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  #nav { position: fixed; z-index: 25; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); flex-wrap: nowrap; gap: 2px; padding: 6px; border-radius: 26px;
    background: color-mix(in srgb, var(--glass-strong) 70%, transparent); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--g-spec), 0 14px 36px rgba(0, 0, 0, .28);
    backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
  #nav a { width: min(48px, calc((100vw - 54px) / 7)); height: 46px; padding: 0; margin: 0; justify-content: center; gap: 0; font-size: 0; border-radius: 18px; }
  #nav a:hover { background: none; }
  #nav a svg { width: 22px; height: 22px; transition: transform .28s cubic-bezier(.3, 1.7, .5, 1); }
  #nav a:hover svg, #nav a:focus-visible svg { transform: translateY(-4px) scale(1.12); }
  .side { justify-content: space-between; } .brand { padding-bottom: 8px; } .theme-sw { width: auto; }
}

@media (prefers-reduced-motion: reduce) { .g-tilt, .g-tilt.g-in { transform: none; transition: none; } #nav a svg { transition: none; } #nav a:hover svg { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .glass, .pricebar > div, .sbox, .seg-card, .nbox, .stat, #nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  :root[data-theme="light"] { --card: #f7f7f6; --glass-strong: #fff; } :root[data-theme="dark"] { --card: #2a2a2c; --glass-strong: #333336; } }
