@font-face { font-family: "Six Caps"; src: url(../assets/fonts/six-caps-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url(../assets/fonts/archivo-narrow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url(../assets/fonts/archivo-narrow-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(../assets/fonts/space-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #0b1b52;
  --c: #1f5fe0;
  --line: rgba(255, 255, 255, .85);
  --tall: "Six Caps", Impact, sans-serif;
  --narrow: "Archivo Narrow", "Arial Narrow", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.25, 1.5, .5, 1);
  --pearl: #dbe3f6;
  --hole: 12%;
  --hub: 27%;
  --bevel: inset 0 2px 1px #fff, inset 0 -3px 5px rgba(60, 80, 170, .22), 0 0 0 1px rgba(150, 170, 230, .45);
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M17 2 19 15 32 17 19 19 17 32 15 19 2 17 15 15Z' fill='%23fff' stroke='%230b1b52' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 17 17, crosshair;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { overflow: hidden; color: #fff; background: #05060f; font: 500 17px/1.45 var(--narrow); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; cursor: var(--cursor); }
a, button { color: inherit; text-decoration: none; cursor: var(--cursor); font: inherit; -webkit-tap-highlight-color: transparent; }
button { background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
b { font-weight: 700; }
small { font: 400 11px/1.4 var(--mono); letter-spacing: .02em; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 4px var(--ink); }
#panel-title:focus-visible { outline: none; box-shadow: none; }
body.dragging, body.dragging * { cursor: grabbing !important; }
body[data-mode="intro"] #logo, body[data-mode="intro"] #hud, body[data-mode="intro"] #tabs, body[data-mode="intro"] #stage, body[data-mode="intro"] .baseline { opacity: 0; pointer-events: none; }

#nature { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
#tint { position: fixed; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: multiply; transition: opacity 1.2s, background 1.2s; }
body[data-time="sunset"] #tint { opacity: .85; background: linear-gradient(#7a5ad8, #ff9a7a 45%, #ffb36b); }
body[data-time="night"] #tint { opacity: .9; background: linear-gradient(#141a66, #27297a 45%, #1a3a5c); }
#field, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#fx { pointer-events: none; z-index: 40; }

#code { position: fixed; z-index: 1; right: 2vw; top: 0; height: 66vh; width: min(46vw, 560px); overflow: hidden; pointer-events: none; font: 400 11px/1.3 var(--mono); color: #fff; opacity: .55; column-count: 2; column-gap: 40px; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
#spin, #banner { position: fixed; z-index: 1; pointer-events: none; margin: 0; color: #fff; text-shadow: 0 0 3px rgba(0, 20, 5, .95), 0 1px 5px rgba(0, 20, 5, .9); font: 400 11px/1.05 var(--mono); transition: opacity .4s; }
#spin { left: 50%; bottom: 84px; translate: -50% 0; }
#banner { left: 2vw; bottom: 84px; padding: 1px 6px; font-size: 12px; line-height: 1.3; white-space: nowrap; background: rgba(0, 2, 16, .62); }
body[data-mode="intro"] #spin, body[data-mode="intro"] #banner, body[data-mode="page"] #spin, body[data-mode="page"] #banner { opacity: 0; }
.dots { position: fixed; z-index: 1; pointer-events: none; background: radial-gradient(circle, #fff 30%, transparent 33%) 0 0/8px 8px; }
.dots.d1 { left: 4vw; top: 26vh; width: 170px; height: 120px; opacity: .4; -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.dots.d2 { right: 16vw; bottom: 14vh; width: 220px; height: 54px; opacity: .55; -webkit-mask-image: linear-gradient(270deg, #000, transparent); mask-image: linear-gradient(270deg, #000, transparent); }
.baseline { position: fixed; z-index: 2; left: 2vw; right: 2vw; bottom: 74px; height: 3px; pointer-events: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cd { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 0 16px rgba(150, 215, 255, .55), 0 0 34px rgba(255, 170, 235, .35), 0 12px 22px rgba(10, 20, 60, .3);
  transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .3s var(--spring), box-shadow .25s; }
.frame { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: #0b1030;
  -webkit-mask-image: radial-gradient(circle closest-side, transparent var(--hole), #000 calc(var(--hole) + .5%)); mask-image: radial-gradient(circle closest-side, transparent var(--hole), #000 calc(var(--hole) + .5%)); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: cdspin 7s linear infinite paused; }
@keyframes cdspin { to { rotate: 360deg; } }
.frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
    radial-gradient(circle closest-side, transparent 0 calc(var(--hole) + .5%), rgba(255, 255, 255, .9) calc(var(--hole) + 1%) calc(var(--hole) + 2.5%), rgba(214, 232, 255, .62) calc(var(--hole) + 3%) var(--hub), rgba(255, 255, 255, .95) calc(var(--hub) + .5%) calc(var(--hub) + 1.5%), transparent calc(var(--hub) + 2%), transparent 95.5%, rgba(255, 255, 255, .85) 96.5% 100%),
    radial-gradient(circle closest-side, transparent 62%, rgba(8, 10, 50, .3)),
    repeating-linear-gradient(0deg, rgba(5, 8, 40, .2) 0 1px, transparent 1px 3px); }
.frame::after { content: ""; position: absolute; inset: -2%; z-index: 2; pointer-events: none; border-radius: 50%; mix-blend-mode: screen; opacity: .85;
  background: conic-gradient(from 20deg, transparent 0deg, rgba(120, 225, 255, .7) 22deg, rgba(255, 150, 230, .8) 42deg, rgba(255, 245, 190, .75) 58deg, transparent 88deg, transparent 180deg, rgba(160, 255, 225, .65) 202deg, rgba(190, 160, 255, .8) 222deg, rgba(255, 190, 215, .7) 238deg, transparent 268deg);
  transform: rotate(var(--a, 0deg)); transition: transform .35s var(--out); animation: sheen 16s linear infinite; }
@keyframes sheen { to { rotate: 360deg; } }
.stack img { opacity: 0; transition: opacity 1.2s; }
.stack img.on { opacity: 1; }
@media (hover: hover) { .tile:hover .cd, .tile:focus-visible .cd, a.pane:hover .cd, a.pane:focus-visible .cd, .file:hover .cd, .tab:hover .cd {
  box-shadow: -3px 0 0 rgba(255, 60, 150, .5), 3px 0 0 rgba(60, 220, 255, .6), 0 0 22px rgba(170, 225, 255, .95), 0 0 52px rgba(255, 170, 235, .7), 0 16px 26px rgba(10, 20, 60, .35); } }
@media (hover: hover) { .tile:hover .frame img, .tile:focus-visible .frame img, a.pane:hover .frame img, a.pane:focus-visible .frame img, .file:hover .frame img, .tab:hover .frame img { animation-play-state: running; } }
@media (hover: hover) { .tile:hover .frame::after, a.pane:hover .frame::after { opacity: 1; } }

.tile-text, .pane-label { color: #dff6ff; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 40%, #1b2a78, #070b2e 92%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 0 0 3px rgba(11, 27, 82, .35), inset 0 0 12px rgba(120, 190, 255, .4), 0 0 14px rgba(150, 215, 255, .4); border-radius: 12px / 16px; text-shadow: 0 0 6px rgba(130, 220, 255, .9), 0 0 1px #fff; }

#stage { position: fixed; inset: 0; z-index: 3; overflow: hidden; touch-action: none; transition: opacity .5s; }
#row { position: absolute; inset: 0; }
.pane { position: absolute; left: 0; top: 0; display: block; aspect-ratio: 1; color: #fff; will-change: transform; }
.pane .cd { transition: transform .3s var(--spring), box-shadow .25s; }
.pane .frame img { animation-play-state: running; animation-duration: 16s; }
@media (hover: hover) { a.pane:hover .frame img, a.pane:focus-visible .frame img { animation-duration: 16s; } }
@media (hover: hover) { a.pane:hover .cd, a.pane:focus-visible .cd { transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-12px) scale(1.04); } }
a.pane:active .cd { transform: translateY(-3px) scale(.97); }
.pane::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -7%; height: 8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 25, 5, .55), transparent); }
.pane-label { position: absolute; z-index: 2; left: 50%; bottom: -10px; translate: -50% 0; display: flex; align-items: baseline; gap: 10px; width: max-content; padding: 1px 14px 2px; pointer-events: none; transition: transform .28s var(--spring); }
.pane-label b { font: 400 clamp(32px, 5vh, 50px)/1 var(--tall); letter-spacing: .05em; }
.pane-label small { order: 2; font-size: 11px; }
.mini { pointer-events: auto; }
.fog canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; border-radius: 50%; touch-action: none; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); -webkit-mask-image: radial-gradient(circle closest-side, transparent var(--hole), #000 calc(var(--hole) + .5%)); mask-image: radial-gradient(circle closest-side, transparent var(--hole), #000 calc(var(--hole) + .5%)); }
.mini { order: 3; margin-left: 4px; align-self: center; padding: 2px 9px; font: 400 11px var(--mono); border: 1px solid #fff; transition: background .15s, color .15s; }
@media (hover: hover) { .mini:hover { background: #fff; color: var(--ink); } }

.fog.open .stack img { filter: brightness(.38) saturate(.7); }
.offers { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3%; padding: 0 6%; animation: offersIn .45s var(--spring); }
.offer { flex: 1 1 0; min-width: 0; }
.offer .frame img { animation-play-state: paused; animation-duration: 7s; }
@media (hover: hover) { .offer:hover .frame img, .offer:focus-visible .frame img { animation-play-state: running; animation-duration: 7s; } }
.offer .tile-text { margin-top: 7px; padding: 3px 5px 4px; text-align: center; }
.offer .tile-text b { margin: 0; font-size: clamp(10px, 1.45vh, 14px); line-height: 1.1; }
@keyframes offersIn { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }

#coupon { margin: auto; padding: 0; border: 0; color: #dff6ff; background: none; overflow: visible; max-width: min(520px, calc(100vw - 32px)); }
#coupon::backdrop { background: rgba(3, 5, 25, .72); }
.coupon-box { padding: 20px 24px 22px; text-align: center; border-radius: 16px / 20px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 40%, #1b2a78, #070b2e 92%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), inset 0 0 18px rgba(120, 190, 255, .4), 0 0 26px rgba(150, 215, 255, .5); text-shadow: 0 0 6px rgba(130, 220, 255, .9); }
.coupon-box small { font: 400 11px var(--mono); opacity: .85; }
.coupon-box h3 { margin: 2px 0 12px; font: 400 40px/1 var(--tall); letter-spacing: .05em; }
#coupon-code { display: block; padding: 10px 12px; font: 400 15px/1.4 var(--mono); overflow-wrap: anywhere; color: #fff; background: rgba(0, 0, 20, .55); border: 1px dashed rgba(255, 255, 255, .6); -webkit-user-select: all; user-select: all; }
.coupon-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.coupon-actions button, .coupon-actions a { min-width: 96px; padding: 4px 14px; font: 400 13px var(--mono); border: 1px solid #fff; transition: background .15s, color .15s; }
@media (hover: hover) { .coupon-actions button:hover, .coupon-actions a:hover { background: #fff; color: var(--ink); } }

.find { position: absolute; left: 0; top: 0; width: 40px; height: 40px; z-index: 4; }
.find svg { width: 100%; fill: #fff; stroke: rgba(11, 27, 82, .6); stroke-width: 1.5; filter: drop-shadow(0 0 7px rgba(255, 255, 255, .9)); animation: twinkle 2.4s ease-in-out infinite; transition: scale .2s var(--spring); }
@media (hover: hover) { .find:hover svg { scale: 1.6; } }
.find.got svg { animation: gone .42s ease-in forwards; }
@keyframes twinkle { 50% { rotate: 45deg; scale: .78; } }
@keyframes gone { to { scale: 3; rotate: 180deg; opacity: 0; } }

#caption { position: fixed; z-index: 5; display: flex; align-items: center; width: max-content; padding-left: 0; transform: translate(-100%, -100%); font: 400 13px var(--mono); }
#caption i { position: absolute; right: 0; bottom: 0; width: 120px; height: 42px; border-bottom: 1px solid var(--line); background: linear-gradient(to top right, transparent calc(50% - .6px), var(--line) 50%, transparent calc(50% + .6px)) 100% 100%/42px 42px no-repeat; display: none; }
#caption span { padding: 3px 12px; margin: 0 40px 26px 0; border-bottom: 1px solid #fff; background: rgba(0, 2, 16, .62); transition: background .15s, color .15s; text-shadow: 0 1px 6px rgba(0, 30, 80, .7); }
#caption::after { content: ""; position: absolute; right: 0; bottom: 0; width: 40px; height: 27px; background: linear-gradient(to top right, transparent calc(50% - .7px), #fff 50%, transparent calc(50% + .7px)) ; transform: scaleY(-1) scaleX(-1); }
#caption { transition: opacity .25s; }
#caption.away { opacity: 0; pointer-events: none; }
@media (hover: hover) { #caption:hover span { background: #fff; color: var(--ink); text-shadow: none; } }
#caption.in span { animation: capIn .5s var(--out); }
@keyframes capIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

#logo { position: fixed; z-index: 20; left: 2vw; top: 6px; display: flex; align-items: center; gap: 10px; font: 400 clamp(56px, 10vh, 92px)/1 var(--tall); letter-spacing: .05em; text-shadow: 0 2px 16px rgba(0, 30, 90, .4); transition: letter-spacing .35s var(--out), opacity .4s; }
@media (hover: hover) { #logo:hover { letter-spacing: .12em; } }
.bars { display: inline-block; width: 26px; height: .62em; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 6px, transparent 6px 10px); }
#hud { position: fixed; z-index: 20; right: 2vw; top: 14px; display: flex; align-items: center; gap: 6px; transition: opacity .4s; }
#count { padding: 3px 9px; font: 400 12px var(--mono); color: var(--ink); background: #fff; }
#count.all { background: var(--c); color: #fff; }
.toggle { position: relative; overflow: hidden; display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 9px; font: 400 11px var(--mono); border: 1px solid #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(255, 255, 255, .14); transition: background .15s, color .15s, transform .22s var(--spring); }
@media (hover: hover) { .toggle:hover { background: #fff; color: var(--ink); transform: translateY(-2px); } }
.toggle:active { transform: scale(.94); }
.toggle[aria-pressed="false"] { opacity: .65; }

#tabs { position: fixed; z-index: 20; left: 2vw; right: 2vw; bottom: 8px; display: flex; gap: 6px; transition: opacity .4s; }
.tab { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .7); transition: background .15s, color .15s, transform .24s var(--spring); }
.tab .cd { width: 46px; flex: none; }
.tab small { opacity: .8; }
.tab b { margin-left: auto; font: 400 32px/1 var(--tall); letter-spacing: .06em; }
@media (hover: hover) { .tab:hover { background: #fff; color: var(--ink); } }
.tab.on { background: #fff; color: var(--ink); }
@media (hover: hover) { .tab:hover { transform: translateY(-6px); } }
.tab:active { transform: scale(.97); }
.tab.on { box-shadow: inset 0 -3px 0 var(--c); }

#sheet { position: fixed; inset: 0; z-index: 10; display: flex; justify-content: center; padding: clamp(74px, 12vh, 110px) 2vw 86px; }
.panel { position: relative; display: flex; flex-direction: column; width: min(1180px, 100%); min-height: 0; color: var(--ink); background: rgba(246, 250, 255, .84); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 0 0 1px #fff, 0 26px 60px rgba(5, 25, 80, .35); }
.panel.rise-in { animation: panelIn .55s var(--out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(46px) scale(.96); filter: blur(10px); } }
.panel.leaving { animation: panelOut .24s ease-in forwards; }
@keyframes panelOut { to { opacity: 0; transform: translateY(40px) scale(.97); } }
.panel.swap .panel-head h2 { animation: capIn .45s var(--out); }
.panel-head { display: flex; align-items: flex-end; gap: 12px; padding: 8px 12px 6px 18px; min-height: 66px; }
.panel-head h2 { min-width: 0; font: 400 clamp(52px, 8.5vh, 84px)/.92 var(--tall); letter-spacing: .03em; text-transform: uppercase; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.panel-head .no { padding-bottom: 6px; font: 400 12px var(--mono); }
#panel-sub { margin-left: auto; padding-bottom: 6px; font: 400 12px var(--mono); white-space: nowrap; }
.close { align-self: center; color: var(--ink); border-color: var(--ink); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: 34px; }
@media (hover: hover) { .close:hover { background: var(--ink); color: #fff; } }
.reeds { height: 14px; flex: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 2px, rgba(30, 90, 200, .22) 2px 5px, rgba(255, 255, 255, .2) 5px 7px); border-top: 1px solid rgba(11, 27, 82, .4); border-bottom: 1px solid rgba(11, 27, 82, .4); }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 24px; scrollbar-color: var(--c) transparent; scrollbar-width: thin; user-select: text; -webkit-user-select: text; }
.panel-body h3 { margin: 22px 0 8px; font: 400 40px/1 var(--tall); letter-spacing: .05em; color: var(--c); }
.deal { animation: deal .5s var(--out) backwards; animation-delay: var(--d, 0ms); }
@keyframes deal { from { opacity: 0; transform: translateY(18px); filter: blur(5px); } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; padding: 8px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.links { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.grid.music { grid-template-columns: repeat(6, 1fr); gap: 16px 14px; }
.music .tile-text b { font-size: 16px; }
.music .lead { grid-column: span 2; grid-row: span 2; }
.music .lead .tile-text b { font: 400 clamp(48px, 7vw, 76px)/.95 var(--tall); letter-spacing: .03em; }
.tile { position: relative; display: block; width: 100%; padding: 0; color: #fff; text-align: left; }
@media (hover: hover) { .tile:hover .cd, .tile:focus-visible .cd { transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px) scale(1.03); } }
@media (hover: hover) { .tile:hover, .tile:focus-visible { z-index: 2; } }
.tile:active .cd { transform: scale(.96); }
.tile-text { position: relative; display: block; margin-top: 12px; padding: 6px 12px 7px; line-height: 1.2; }
.tile-text b { display: block; font-size: 18px; margin: 1px 0; }
.tile-text small { display: block; opacity: .9; }
.badge { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 1px 9px; border-radius: 99px; font: 400 10px/1.7 var(--mono); color: #fff; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .75); }
.badge.sample { left: auto; right: 8px; color: var(--ink); background: rgba(255, 255, 255, .92); }
.side .badge, .file .badge, .price .badge { position: static; display: inline-block; box-shadow: 0 0 0 1px rgba(11, 27, 82, .4); }

.link .tile-text { text-align: center; }
.link, .file, .offer, .small-hub, .pane[data-pane="links"], .pane[data-pane="diary"], .pane[data-pane="fog"] { --hole: 5%; --hub: 9%; }
.link.off { opacity: .85; }

.ascii { margin-top: 22px; text-align: center; overflow: hidden; }
.ascii pre { display: inline-block; margin: 0; text-align: left; color: var(--c); font: 400 clamp(5.5px, .82vw, 9px)/1.02 var(--mono); transition: color .3s; }
#panel-art { margin: 0 0 0 14px; align-self: center; color: var(--c); font: 400 9px/1.05 var(--mono); transition: color .3s; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.side .chips { margin-bottom: 0; }
.chip { position: relative; display: inline-block; padding: 3px 12px; font: 400 12px/1.5 var(--mono); border: 1px solid var(--ink); transition: background .14s, color .14s, transform .2s var(--spring); }
@media (hover: hover) { .chip:hover { background: var(--ink); color: #fff; transform: translateY(-2px); } }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.pager { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.frame-big { padding: 6px; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #fff, var(--pearl)); box-shadow: var(--bevel), 0 12px 26px rgba(30, 45, 130, .3); line-height: 0; }
.frame-big img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.side { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.side > .badge { align-self: flex-start; }
.price { font: 400 76px/.9 var(--tall); letter-spacing: .03em; color: var(--c); }
.price .badge { vertical-align: top; margin-left: 10px; letter-spacing: 0; }
.action { align-self: flex-start; display: inline-block; padding: 4px 34px; font: 400 40px/1.1 var(--tall); letter-spacing: .07em; color: #fff; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 16px rgba(10, 40, 120, .3); transition: transform .24s var(--spring), filter .15s; }
@media (hover: hover) { .action:hover { transform: translateY(-3px); filter: brightness(1.12); } }
.action:active { transform: scale(.96); }
.action.off { background: #6f7da6; }
.nope { animation: nope .3s; }
@keyframes nope { 25% { translate: -6px 0; } 50% { translate: 6px 0; } 75% { translate: -3px 0; } }
.made { padding: 8px 10px 10px; border: 1px solid rgba(11, 27, 82, .4); }
.row { display: flex; align-items: center; gap: 10px; margin-top: 6px; transition: transform .22s var(--spring), color .14s; }
@media (hover: hover) { .row:hover { transform: translateX(6px); color: var(--c); } }
.row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px #fff, 0 0 8px rgba(150, 215, 255, .8); -webkit-mask-image: radial-gradient(circle closest-side, transparent 13%, #000 14%); mask-image: radial-gradient(circle closest-side, transparent 13%, #000 14%); }
.row i { margin-left: auto; font-style: normal; }
.player { overflow: hidden; line-height: 0; background: var(--ink); }
.player iframe { width: 100%; border: 0; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb { width: 66px; height: 66px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1px #fff, 0 0 10px rgba(150, 215, 255, .7); transition: transform .2s var(--spring); }
@media (hover: hover) { .thumb:hover { transform: translateY(-3px); } }
.thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c), 0 0 12px var(--c); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.entry { max-width: 700px; margin: 0 auto; display: grid; gap: 14px; font-size: 19px; line-height: 1.6; }
.entry h3 { margin: 0; font-size: 58px; }
.entry .wide img { aspect-ratio: 16/10; }
.frame-big video { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 16px; background: #000; }
.entry figure { display: grid; gap: 4px; }
figcaption { font: 400 12px var(--mono); }

.files { display: grid; gap: 8px; }
.file { position: relative; width: 100%; text-align: left; display: grid; grid-template-columns: 84px minmax(0, 1fr) 100px; align-items: center; gap: 14px; padding: 7px 12px 7px 7px; border-radius: 16px; background: linear-gradient(180deg, #fff, #eef2fc); box-shadow: var(--bevel); transform: perspective(900px) rotateX(calc(var(--rx, 0deg) * .3)) rotateY(calc(var(--ry, 0deg) * .3)); transition: transform .24s var(--spring), box-shadow .2s; }
@media (hover: hover) { .file:hover, .file:focus-visible { transform: perspective(900px) rotateX(calc(var(--rx, 0deg) * .3)) rotateY(calc(var(--ry, 0deg) * .3)) translateX(6px); box-shadow: var(--bevel), 0 0 0 2px var(--c), 0 8px 18px rgba(30, 45, 130, .22); } }
.file .cd { width: 84px; }
.file-text b { display: block; font-size: 20px; line-height: 1.15; }
.file-text small { display: block; }
.file-text .meta { opacity: .65; }
.get { position: relative; overflow: hidden; display: grid; place-items: center; height: 42px; border-radius: 99px; font: 400 26px var(--tall); letter-spacing: .08em; color: #fff; background: var(--c); }
.fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: rgba(255, 255, 255, .5); }
.lbl { position: relative; white-space: nowrap; }
.file.busy .fill { transform: scaleX(1); transition: transform 1.22s cubic-bezier(.3, .1, .2, 1); }

#intro { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: opacity .6s, transform .8s var(--out); }
#intro.gone { opacity: 0; transform: scale(1.1); pointer-events: none; }
.intro-mark { display: flex; align-items: center; gap: 20px; font: 400 clamp(150px, 42vh, 380px)/.9 var(--tall); letter-spacing: .05em; text-shadow: 0 4px 34px rgba(0, 30, 100, .4); }
#enter { padding: 4px 56px; font: 400 40px/1.15 var(--tall); letter-spacing: .14em; border: 1px solid #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 255, 255, .16); transition: background .15s, color .15s, letter-spacing .3s var(--out); }
@media (hover: hover) { #enter:hover { background: #fff; color: var(--ink); letter-spacing: .24em; } }
#enter-muted { font: 400 12px var(--mono); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { #enter-muted:hover { opacity: .75; } }

@media (max-width: 820px) {
  #code { width: 74vw; height: 40vh; column-count: 1; opacity: .5; font-size: 10px; }
  .dots.d2 { display: none; }
  #logo { font-size: 58px; }
  .baseline { bottom: 62px; }
  #tabs { overflow-x: auto; gap: 4px; left: 0; right: 0; padding: 0 6px; scrollbar-width: none; touch-action: pan-x; }
  #tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding-right: 8px; }
  .tab .cd { width: 38px; }
  .tab small { display: none; }
  .tab b { font-size: 26px; }
  #sheet { padding: 68px 6px 70px; }
  .panel-body { padding: 12px; }
  .panel-head { padding: 4px 8px 4px 12px; min-height: 54px; }
  #panel-sub { display: none; }
  .close { margin-left: auto; flex: none; }
  .grid, .grid.links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid.wide { grid-template-columns: minmax(0, 1fr); }
  .grid.music { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .music .lead { grid-row: auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .file { grid-template-columns: 60px minmax(0, 1fr) 72px; gap: 10px; }
  .file .cd { width: 60px; }
  #panel-art, #banner { display: none; }
  #spin { bottom: 72px; font-size: 9px; }
  #caption { font-size: 12px; }
}
@media (max-height: 520px) {
  .tab .cd { display: none; } .tab { padding: 2px 8px; }
  #sheet { padding: 6px 6px 48px; } .baseline { bottom: 42px; }
  #logo { font-size: 44px; }
  #spin, #banner { display: none; }
  .intro-mark { font-size: 130px; }
}

@keyframes dealLite { from { opacity: 0; transform: translateY(18px); } }
@keyframes panelInLite { from { opacity: 0; transform: translateY(46px) scale(.96); } }
@media (pointer: coarse) {
  .tab, .toggle, #enter, .fog canvas, .panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .panel { background: rgba(246, 250, 255, .96); }
  .tab { background: rgba(10, 16, 60, .55); }
  .toggle:not(.close) { background: rgba(10, 16, 60, .4); }
  .deal { animation-name: dealLite; }
  .panel.rise-in { animation-name: panelInLite; }
  .tile .frame img, .file .frame img, .tab .frame img { animation: none; }
  .tile .frame::after, .file .frame::after, .tab .frame::after { animation: none; }
  #tint { mix-blend-mode: normal; }
  body[data-time="sunset"] #tint { opacity: .42; }
  body[data-time="night"] #tint { opacity: .76; }
  #spin { contain: content; }
}

.still *, .still *::before, .still *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
