:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --accent: #f2b632; --accent-soft: rgba(242,182,50,.2); --line: rgba(255,255,255,.11); --muted: #bbb4c7; }
* { box-sizing: border-box; }
html { background: transparent; }
body { margin: 0; color: #fff; background: #100a1d; }
body[data-range="draft"] { --accent: #b88aff; --accent-soft: rgba(161,99,255,.22); }
.gallery-shell { position: relative; overflow: hidden; min-height: 260px; padding: clamp(24px,4vw,52px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 86% 4%, var(--accent-soft), transparent 31%), linear-gradient(145deg,#181025 0%,#0c0815 72%); box-shadow: 0 24px 70px rgba(13,7,25,.28); }
.gallery-shell::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(115deg,transparent 0 46%,rgba(255,255,255,.08) 47%,transparent 48%); background-size: 160px 160px; }
.gallery-heading { position: relative; z-index: 1; display: grid; grid-template-columns: clamp(74px,9vw,112px) minmax(0,1fr); gap: clamp(18px,3vw,36px); align-items: center; max-width: 900px; }
.gallery-heading > img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 28px rgba(0,0,0,.25)); }
.eyebrow,.group-kicker { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .19em; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(30px,5vw,58px); line-height: .98; letter-spacing: -.045em; }
.gallery-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: clamp(14px,1.7vw,18px); line-height: 1.55; }
.gallery-summary { display: inline-flex; margin: 34px 0 8px; padding: 9px 14px; border: 1px solid color-mix(in srgb,var(--accent) 35%,transparent); border-radius: 999px; color: #eee9f5; background: color-mix(in srgb,var(--accent) 10%,transparent); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.drop-rate-panel { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px 32px; margin-top: 22px; padding: clamp(18px,2.5vw,28px); border: 1px solid color-mix(in srgb,var(--accent) 32%,var(--line)); border-radius: 20px; background: linear-gradient(135deg,color-mix(in srgb,var(--accent) 10%,transparent),rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.drop-rate-panel[hidden] { display: none; }
.drop-rate-panel h2 { margin: 0; font-size: clamp(20px,2.5vw,29px); letter-spacing: -.025em; }
.drop-rate-value { grid-row: 1 / span 2; grid-column: 2; color: var(--accent); font-size: clamp(44px,6vw,76px); line-height: .9; letter-spacing: -.055em; text-shadow: 0 8px 24px var(--accent-soft); }
.drop-rate-note { margin: 14px 0 0; color: #9e96aa; font-size: 11px; line-height: 1.5; }
.hit-group { position: relative; z-index: 1; margin-top: 38px; }
.hit-group.secondary { padding-top: 34px; border-top: 1px solid var(--line); }
.group-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 19px; }
.group-heading h2 { margin: 0; font-size: clamp(23px,3vw,34px); letter-spacing: -.025em; }
.group-heading > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.hit-showcase { display: grid; min-width: 0; gap: 14px; }
.showcase-stage { position: relative; min-width: 0; }
.showcase-viewport { min-width: 0; overflow: hidden; scroll-behavior: smooth; }
.showcase-viewport:focus-visible { outline: 2px solid color-mix(in srgb,var(--accent) 70%,white); outline-offset: 5px; border-radius: 16px; }
.showcase-track { display: flex; gap: 16px; }
.showcase-track > .hit-card { flex: 0 0 calc(25% - 12px); }
.showcase-button { position: absolute; z-index: 3; top: 45%; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid color-mix(in srgb,var(--accent) 46%,var(--line)); border-radius: 50%; color: #fff; background: rgba(16,10,29,.88); box-shadow: 0 8px 24px rgba(0,0,0,.32); backdrop-filter: blur(8px); font: inherit; font-size: 32px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: border-color .2s ease,background .2s ease,transform .2s ease; }
.showcase-previous { left: -22px; }
.showcase-next { right: -22px; }
.showcase-button:hover,.showcase-button:focus-visible { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 24%,#100a1d); outline: none; transform: translateY(-50%) scale(1.05); }
.all-hits { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.all-hits summary { padding: 14px 17px; color: #eee9f5; font-size: 13px; font-weight: 800; cursor: pointer; list-style-position: inside; }
.all-hits[open] summary { border-bottom: 1px solid var(--line); }
.all-hits-grid { max-height: 760px; padding: 16px; overflow-y: auto; scrollbar-color: var(--accent) rgba(255,255,255,.05); }
.hit-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(176px,1fr)); gap: clamp(12px,1.8vw,20px); }
.hit-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); box-shadow: 0 14px 32px rgba(0,0,0,.14); transform: translateY(8px); opacity: 0; transition: transform .38s ease,opacity .38s ease,border-color .25s ease; }
.ready .hit-card { transform: none; opacity: 1; }
.hit-card:hover { border-color: color-mix(in srgb,var(--accent) 55%,transparent); transform: translateY(-3px); }
.hit-visual { position: relative; overflow: hidden; aspect-ratio: 5/7; background: linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.025)); }
.hit-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg,transparent 30%,rgba(255,255,255,.18) 48%,transparent 66%); transform: translateX(-130%); transition: transform .7s ease; }
.hit-card:hover .hit-visual::after { transform: translateX(130%); }
.hit-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; transform: rotate(var(--card-rotation,0deg)) scale(var(--card-rotation-scale,1)); transform-origin:center; }
.history-visual img.rotated-history-card { transform: rotate(var(--card-rotation,0deg)) scale(var(--card-rotation-scale,1)); transform-origin:center; }
.hit-category { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; background: rgba(12,8,21,.8); box-shadow: 0 5px 18px rgba(0,0,0,.22); backdrop-filter: blur(8px); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.hit-category.category-premium { color: #16100a; border-color: color-mix(in srgb,var(--accent) 65%,white); background: var(--accent); }
.hit-category.category-holo { color: #dff7ff; border-color: rgba(156,227,255,.35); background: rgba(32,73,91,.85); }
.hit-category.category-reverse_rare { color: #f0e4ff; border-color: rgba(206,170,255,.4); background: rgba(77,43,111,.88); }
.hit-visual.missing { display: grid; place-items: center; padding: 24%; }
.hit-visual.missing > img { object-fit: contain; opacity: .42; }
.gallery-copy-notice { position: relative; margin: 22px 0 0; max-width: 900px; color: var(--muted); font-size: 14px; line-height: 1.6; }
button.hit-visual { display: block; width: 100%; padding: 0; border: 0; color: inherit; cursor: pointer; font: inherit; perspective: 1100px; touch-action: pan-x pan-y; }
.hit-visual:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.hit-faces { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .35s ease; }
.show-back .hit-faces { transform: rotateY(180deg); }
.hit-face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hit-back { transform: rotateY(180deg); }
.hit-face img { display: block; width: 100%; height: 100%; object-fit: contain; transform: rotate(var(--card-rotation,0deg)) scale(var(--card-rotation-scale,1)); transform-origin: center; user-select: none; -webkit-user-drag: none; }
.hit-category[hidden] { display: none; }
.hit-copy-label { display: block; margin-top: 8px; color: var(--accent); font-size: 12px; font-weight: 700; }
.photo-status { display: block; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.photo-status:empty { display: none; }
.hit-details { padding: 15px 15px 17px; }
.hit-details h3 { margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.hit-details p { min-height: 2.8em; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.public-history { position: relative; z-index: 1; margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.public-history[hidden] { display: none; }
.history-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.history-entry { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 14px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.history-visual { overflow: hidden; aspect-ratio: 5/7; border-radius: 10px; background: rgba(255,255,255,.055); }
.history-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.history-visual.missing { display: grid; place-items: center; padding: 17px; }
.history-visual.missing img { object-fit: contain; opacity: .4; }
.history-copy { display: grid; min-width: 0; align-content: center; }
.history-copy > strong { color: var(--accent); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.history-copy h3 { margin: 5px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.history-copy p { margin: 0 0 7px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.history-copy time { color: #8f879d; font-size: 10px; }
.gallery-note { position: relative; z-index: 1; margin: 28px 0 0; color: #8f879d; font-size: 12px; line-height: 1.5; }
.gallery-state { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; min-height: 180px; padding: 30px; text-align: center; color: var(--muted); }
.gallery-state[hidden],#galleryContent[hidden] { display: none; }
.gallery-state strong { margin-bottom: 8px; color: #fff; font-size: 20px; }
.gallery-state p { margin-bottom: 0; }
.loader { width: 34px; height: 34px; margin-bottom: 15px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-group { grid-column: 1/-1; margin: 0; padding: 22px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width:700px) {
  .gallery-shell { padding: 24px 18px; border-radius: 20px; }
  .gallery-heading { grid-template-columns: 66px minmax(0,1fr); gap: 15px; }
  .group-heading { display: block; }
  .group-heading > p { margin-top: 10px; }
  .drop-rate-panel { grid-template-columns: 1fr; }
  .drop-rate-value { grid-row: auto; grid-column: auto; margin-top: 8px; }
  .hit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .showcase-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
  .showcase-viewport::-webkit-scrollbar { display: none; }
  .showcase-track { gap: 10px; }
  .showcase-track > .hit-card { flex-basis: calc(50% - 5px); scroll-snap-align: start; }
  .showcase-button { display: none; }
  .all-hits-grid { max-height: 620px; padding: 10px; }
  .hit-details { padding: 12px; }
  .hit-details h3 { font-size: 14px; }
  .history-list { grid-template-columns: 1fr; }
}
@media (max-width:390px) { .gallery-heading { grid-template-columns: 1fr; } .gallery-heading > img { width: 72px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
