@font-face {
  font-family: 'Google Sans Flex';
  src: url('GoogleSansFlex.ttf') format('truetype');
  font-weight: normal; font-style: normal;
}

:root {
  --panel-w:   380px;
  --accent:    #30bf16;
  --accent-d:  rgba(48, 191, 22, 0.25);

  --lg:        rgba(255, 255, 255, 0.07);
  --lg-md:     rgba(255, 255, 255, 0.12);
  --lg-hi:     rgba(255, 255, 255, 0.20);
  --lg-border: rgba(255, 255, 255, 0.20);
  --lg-shine:  rgba(255, 255, 255, 0.28);
  --lg-blur:   blur(10px) saturate(150%);
  --lg-blur-x: blur(20px) saturate(170%);

  --panel-head-h: 96px;
  --panel-foot-h: 72px;

  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --t-lay: 0.65s;
  --t-fad: 0.50s;
  --t-q:   0.15s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }

body {
  font-family: 'Google Sans Flex', sans-serif;
  font-size: 15px;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a      { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; padding: 0; }
img    { max-width: 100%; display: block; }
ul, ol { list-style: none; }

body.is-loading *,
body.is-loading *::before,
body.is-loading *::after {
  transition: none !important;
  animation: none !important;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #080d12;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

#bg-a { z-index: 1; opacity: 1; }
#bg-b { z-index: 2; opacity: 0; }

#curtain {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.9s ease-in-out;
}

#curtain.lifted { opacity: 0; }

#viewer {
  position: fixed;
  inset: 0;
  right: var(--panel-w);
  z-index: 10;
  opacity: 0;
  transition: opacity var(--t-lay) var(--ease), right var(--t-lay) var(--ease);
}

body.is-ready #viewer              { opacity: 1; }
body.is-ready.panel-hidden #viewer { right: 0; }

#viewer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 75% at 50% 50%,
    transparent 35%,
    rgba(0,0,0,0.38) 100%
  );
}

#viewer::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.50) 0%, transparent 100%);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--lg);
  border: 1px solid var(--lg-border);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: inset 0 1px 0 var(--lg-shine), 0 4px 20px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  opacity: 0.65;
  transition: opacity var(--t-q), background var(--t-q), transform var(--t-q);
}

.nav-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.nav-btn:hover {
  background: var(--lg-hi);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.nav-btn:active { transform: translateY(-50%) scale(0.93); }

#nav-prev { left: 1.5rem; }
#nav-next { right: 1.5rem; }

#caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
  max-width: 22rem;
  background: var(--lg);
  border: 1px solid var(--lg-border);
  -webkit-backdrop-filter: var(--lg-blur-x);
  backdrop-filter: var(--lg-blur-x);
  border-radius: 18px;
  padding: 1.1rem 1.4rem 1.3rem;
  box-shadow: inset 0 1px 0 var(--lg-shine), 0 8px 32px rgba(0,0,0,0.28);
  transition: opacity var(--t-q) ease;
}

#cap-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

#cap-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.45;
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  background: var(--lg);
  border: 1px solid var(--lg-border);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: inset 0 1px 0 var(--lg-shine);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.025em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
  transition: background var(--t-q), transform var(--t-q);
}

.pill-btn:hover {
  background: var(--lg-hi);
  transform: scale(1.05);
}

#panel-toggle {
  position: fixed;
  top: 1.2rem;
  right: calc(var(--panel-w) + 1.2rem);
  z-index: 300;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--lg);
  border: 1px solid var(--lg-border);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: inset 0 1px 0 var(--lg-shine), 0 4px 16px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: right var(--t-lay) var(--ease), opacity var(--t-lay) var(--ease), background var(--t-q);
}

body.is-ready #panel-toggle { opacity: 1; }

body.is-ready.panel-hidden #panel-toggle,
body.is-ready.panel-open #panel-toggle {
  right: 1.2rem;
}

#panel-toggle:hover { background: var(--lg-hi); }

#panel-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(255,255,255,0.82);
  position: absolute;
  transition: opacity var(--t-q), transform var(--t-q);
}

.ico-close { opacity: 1; transform: scale(1); }
.ico-menu  { opacity: 0; transform: scale(0.75); }

body.panel-hidden .ico-close { opacity: 0; transform: scale(0.75); }
body.panel-hidden .ico-menu  { opacity: 1; transform: scale(1); }

#panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--panel-w);
  height: 100%;
  z-index: 200;
  background: rgba(16, 20, 28, 0.34);
  border-left: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.06), -8px 0 28px rgba(0,0,0,0.22);
  overflow: hidden;
  opacity: 0;
  transition: transform var(--t-lay) var(--ease), opacity var(--t-lay) var(--ease);
}

#panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.05) 0%,
      rgba(255,255,255,0.02) 20%,
      rgba(255,255,255,0.00) 42%,
      rgba(0,0,0,0.16) 100%
    );
}

body.is-ready #panel { opacity: 1; }
body.is-ready.panel-hidden #panel {
  transform: translateX(calc(var(--panel-w) + 10px));
  opacity: 0;
  pointer-events: none;
}

#panel-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow: hidden;
}

#panel-head,
#panel-foot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.11) 18%, rgba(255,255,255,0.07) 42%, rgba(18,22,30,0.30) 100%),
    rgba(232, 238, 246, 0.22);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 8px 22px rgba(0,0,0,0.14);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #panel-head,
  #panel-foot {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.12) 18%, rgba(255,255,255,0.08) 42%, rgba(18,22,30,0.26) 100%),
      rgba(232, 238, 246, 0.18);
    -webkit-backdrop-filter: blur(12px) saturate(115%);
    backdrop-filter: blur(12px) saturate(115%);
  }
}

#panel-head::before,
#panel-foot::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(130% 95% at 0% 0%, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.08) 22%, transparent 58%),
    radial-gradient(100% 70% at 100% 0%, rgba(255,255,255,0.10) 0%, transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 48%);
  opacity: 0.95;
}

#panel-head::after,
#panel-foot::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  pointer-events: none;
  z-index: 2;
}

#panel-head > *,
#panel-foot > * {
  position: relative;
  z-index: 3;
}

#panel-head {
  top: 0;
  padding: 2.25rem 1.5rem 1.15rem;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  border-bottom-left-radius: 24px;
}

#site-logo {
  margin-left: auto;
  max-height: 2.75rem;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(48,191,22,0.18));
  margin-bottom: 0.5rem;
}

#panel-head p {
  font-size: 0.78rem;
  color: #fff;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(0,0,0,0.30);
}

#thumbs-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.10) transparent;
  padding-top: calc(var(--panel-head-h, 96px) + 0.45rem);
  padding-bottom: calc(var(--panel-foot-h, 72px) + 0.45rem);
  background:
    linear-gradient(
      180deg,
      rgba(26,32,42,0.42) 0%,
      rgba(24,30,40,0.36) 18%,
      rgba(22,28,38,0.32) 50%,
      rgba(14,18,26,0.44) 100%
    );
}

#thumbs {
  padding: 0.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
  align-content: start;
}

#thumbs-wrap::-webkit-scrollbar       { width: 3px; }
#thumbs-wrap::-webkit-scrollbar-track { background: transparent; }
#thumbs-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 2px; }

.thumb {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  outline: none;
  background: rgba(255,255,255,0.04);
  transition: transform var(--t-q);
}

.thumb:hover { transform: scale(1.04); }

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9px;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color var(--t-q), box-shadow var(--t-q);
}

.thumb.active::after {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-d), 0 0 12px var(--accent-d);
}

.thumb:focus-visible::after { border-color: var(--accent); }

#thumbs-glass-top,
#thumbs-glass-bot {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

#thumbs-glass-top {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.03) 35%,
    rgba(255,255,255,0.00) 100%
  );
}

#thumbs-glass-bot {
  display: none;
}

#panel-foot {
  bottom: 0;
  padding: 0.85rem 1.5rem;
  text-align: right;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-top-right-radius: 24px;
  display: flex;
  gap: 0.15rem;
  flex-direction: column;
}

#panel-foot span,
#panel-foot a {
  font-size: 0.7rem;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.30);
  transition: color var(--t-q);
}

#panel-foot a {
  pointer-events: auto;
}

#panel-foot a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  :root { --panel-w: 320px; }
}

@media (max-width: 980px) {
  #viewer { right: 0 !important; }

  #panel {
    width: min(88vw, 360px);
    transform: translateX(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.panel-open #panel {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #panel-toggle { right: 1.2rem !important; }

  .ico-close { opacity: 0 !important; transform: scale(0.75) !important; }
  .ico-menu  { opacity: 1 !important; transform: scale(1) !important; }

  body.panel-open .ico-close { opacity: 1 !important; transform: scale(1) !important; }
  body.panel-open .ico-menu  { opacity: 0 !important; transform: scale(0.75) !important; }
}

@media (max-width: 736px) {
  #caption {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    max-width: none;
  }

  #nav-prev { left: 0.6rem; }
  #nav-next { right: 0.6rem; }

  .nav-btn {
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ver. 2026.0 */
/* © PiggyMcPig Studios | 2026. All rights reserved, unless otherwise noted. */