/* The GIF Vault (docs/64 §13a): a strongroom — brushed steel, rivets, a neon dial — full of moving pictures. */
.nx-main:has(> .gv) { max-width: 1320px; padding-top: 18px; }
.gv { --gv-steel: linear-gradient(135deg, #3a4266 0%, #59628e 30%, #2a3050 60%, #4b5480 100%); --gv-panel: #0b1033; --gv-line: rgba(95, 223, 246, .2); --gv-dim: #9aa3d6;
  max-width: none; margin: 0 0 30px; color: var(--nx-text, #eef1ff); font-family: var(--nx-font-body, system-ui, sans-serif); }
.gv-head { display: flex; gap: 22px; align-items: center; padding: 18px 20px; margin-bottom: 12px; border-radius: 18px; background: var(--gv-steel); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 40px rgba(2, 1, 12, .6); }
.gv-head h1 { margin: 2px 0 6px; font: 400 clamp(32px, 6vw, 56px)/1 var(--nx-font-display, Impact, sans-serif); letter-spacing: .02em; text-shadow: 0 2px 0 #12162e, 0 0 18px rgba(11, 222, 251, .45); }
.gv-kicker { margin: 0; font: 700 12px var(--nx-font-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #d6ff1f; }
.gv-lede { margin: 0; max-width: 62ch; color: #dfe4ff; }
/* The door: a round steel door with bolts and a dial that spins in. */
.gv-door { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #8d95c0, #3a4266 60%, #1d2240); box-shadow: 0 0 0 6px #1d2240, 0 0 0 8px rgba(11, 222, 251, .5), 0 0 30px rgba(11, 222, 251, .35); }
.gv-ring { position: absolute; inset: 14px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .28); }
.gv-dial { position: absolute; inset: 34px; border-radius: 50%; background: radial-gradient(circle, #f209f3 0 18%, #2a3050 20% 100%); box-shadow: 0 0 14px rgba(242, 9, 243, .6); animation: gvSpin 2.4s cubic-bezier(.3, 1.6, .5, 1) 1 both; }
.gv-dial i { position: absolute; left: 50%; top: 4px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: #d6ff1f; }
.gv-bolts i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8d95c0 50%, #2a3050); }
.gv-bolts i:nth-child(1) { left: 50%; top: 2px; margin-left: -6px; } .gv-bolts i:nth-child(2) { left: 50%; bottom: 2px; margin-left: -6px; } .gv-bolts i:nth-child(3) { top: 50%; left: 2px; margin-top: -6px; } .gv-bolts i:nth-child(4) { top: 50%; right: 2px; margin-top: -6px; }
@keyframes gvSpin { from { transform: rotate(-540deg); } to { transform: rotate(0); } }
.gv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.gv-tabs a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--gv-line); background: var(--gv-panel); color: var(--nx-text, #eef1ff); text-decoration: none; font-weight: 600; font-size: 14px; }
.gv-tabs a[aria-current] { background: linear-gradient(180deg, #e8ff4d, #a7d600); color: #0a0b2e; border-color: #d6ff1f; }
.gv-search { display: flex; gap: 8px; margin: 8px 0 12px; } .gv-search input { flex: 1; min-width: 0; }
.gv input, .gv select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--gv-line); background: #070b24; color: var(--nx-text, #eef1ff); font: inherit; }
.gv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(95, 223, 246, .35); background: #121a46; color: var(--nx-text, #eef1ff) !important; font: 600 14px var(--nx-font-body, sans-serif); text-decoration: none; cursor: pointer; }
.gv-btn.go { background: linear-gradient(180deg, #e8ff4d, #a7d600); border-color: #d6ff1f; color: #0a0b2e !important; } .gv-btn.bad { border-color: rgba(255, 77, 109, .6); color: #ffc2cd !important; } .gv-btn.on { border-color: #ffd23d; color: #ffd23d !important; }
.gv-link { background: none; border: 0; padding: 0; color: var(--gv-dim); text-decoration: underline; cursor: pointer; font: inherit; }
.gv-inline { display: inline; }
.gv-hint { color: var(--gv-dim); } .gv-small { font-size: 13px; } .gv-nothing { padding: 30px 0; text-align: center; }
.gv-flash { padding: 10px 14px; border-radius: 12px; background: rgba(57, 255, 138, .12); border: 1px solid rgba(57, 255, 138, .4); } .gv-flash.bad { background: rgba(255, 77, 109, .12); border-color: rgba(255, 77, 109, .5); }
.gv-upload { margin: 8px 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--gv-panel); border: 1px dashed rgba(214, 255, 31, .4); }
.gv-upload summary { cursor: pointer; font-weight: 700; color: #d6ff1f; }
.gv-upload form { display: grid; gap: 10px; margin-top: 10px; } .gv-upload label { display: grid; gap: 4px; }
.gv-preview img { max-width: 240px; max-height: 180px; image-rendering: pixelated; border-radius: 8px; border: 1px solid var(--gv-line); }
.gv-rules { margin: 0; font-size: 12px; color: var(--gv-dim); }
/* Shelves of GIFs */
.gv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gv-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--gv-panel); border: 1px solid var(--gv-line); transition: transform .12s, box-shadow .12s; }
.gv-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(11, 222, 251, .6), 0 0 22px rgba(11, 222, 251, .25); }
.gv-card a { display: block; color: inherit; text-decoration: none; }
.gv-pic { display: grid; place-items: center; height: 130px; background: repeating-conic-gradient(#0d1336 0 25%, #0a0f2c 0 50%) 0 0 / 16px 16px; }
.gv-pic img { max-width: 100%; max-height: 120px; width: auto; height: auto; image-rendering: pixelated; }
.gv-cap { display: grid; gap: 2px; padding: 7px 9px 9px; } .gv-cap b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gv-cap small { color: var(--gv-dim); font-size: 11px; }
.gv-stars { color: #ffd23d; letter-spacing: .05em; } .gv-unrated { color: var(--gv-dim); }
.gv-fav { position: absolute; right: 8px; top: 6px; color: #ffd23d; text-shadow: 0 0 6px #000; }
.gv-card.is-original .gv-pic { box-shadow: inset 0 0 0 2px rgba(214, 255, 31, .25); }
.gv-out { position: absolute; right: 6px; top: 6px; } .gv-out button { border: 0; border-radius: 8px; background: rgba(255, 77, 109, .85); color: #fff; cursor: pointer; padding: 2px 7px; }
.gv-more { text-align: center; margin: 14px 0; }
/* One GIF */
.gv-crumbs { margin: 6px 0 12px; color: var(--gv-dim); } .gv-crumbs a { color: #5fdff6; }
.gv-show { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gv-big { margin: 0; display: grid; place-items: center; min-height: 240px; padding: 16px; border-radius: 16px; background: repeating-conic-gradient(#0d1336 0 25%, #0a0f2c 0 50%) 0 0 / 20px 20px; border: 1px solid var(--gv-line); }
.gv-big img { max-width: 100%; width: auto; height: auto; min-width: min(100%, 240px); image-rendering: pixelated; }
.gv-info h1 { margin: 0 0 4px; font: 400 36px/1.05 var(--nx-font-display, Impact, sans-serif); }
.gv-by { color: var(--gv-dim); } .gv-by a { color: #5fdff6; }
.gv-tags a { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 999px; background: #121a46; color: #ff9ad5; text-decoration: none; font-size: 13px; }
.gv-rate { display: flex; align-items: center; gap: 2px; margin: 8px 0; } .gv-rate span { margin-right: 6px; color: var(--gv-dim); }
.gv-rate button { border: 0; background: none; font-size: 26px; line-height: 1; color: #3a4266; cursor: pointer; padding: 0 2px; } .gv-rate button.on, .gv-rate button:hover { color: #ffd23d; text-shadow: 0 0 8px rgba(255, 210, 61, .6); }
.gv-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; } .gv-addpack { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gv-comments { margin-top: 18px; padding: 12px 16px; border-radius: 16px; background: var(--gv-panel); border: 1px solid var(--gv-line); }
.gv-comments ul { list-style: none; margin: 0 0 10px; padding: 0; } .gv-comments li { padding: 8px 0; border-bottom: 1px solid var(--gv-line); } .gv-comments li p { margin: 3px 0 0; }
.gv-comments time { color: var(--gv-dim); font-size: 12px; } .gv-comments a { color: #5fdff6; }
.gv-comment { display: flex; gap: 8px; } .gv-comment input { flex: 1; min-width: 0; }
/* Packs */
.gv-packlist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gv-packlist a { display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: var(--gv-panel); border: 1px solid var(--gv-line); color: inherit; text-decoration: none; }
.gv-packlist img, .gv-empty-cover { height: 90px; width: 100%; object-fit: contain; image-rendering: pixelated; display: grid; place-items: center; font-size: 40px; background: #070b24; border-radius: 10px; }
.gv-packlist small { color: var(--gv-dim); }
.gv-newpack { display: flex; gap: 8px; align-items: end; } .gv-newpack label { display: grid; gap: 4px; }
@media (max-width: 760px) { .gv-head { flex-direction: column; text-align: center; } .gv-show { grid-template-columns: 1fr; } .gv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
