/* ---------- gobwin archives · 3d sphere ---------- */

.main--archive {
  padding: 0;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 0px);
  display: flex;
  flex-direction: column;
}

@media (max-width: 880px) {
  .main--archive { height: calc(100vh - 56px); }
}

/* header */
.arc-header {
  position: absolute;
  top: 22px;
  left: 0; right: 0;
  text-align: center;
  z-index: 12;
  pointer-events: none;
  padding: 0 16px;
}
.arc-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 15px;
  color: var(--pink);
  letter-spacing: 0.18em;
  text-shadow: 0 0 12px rgba(255, 141, 199, 0.55);
}
.arc-sub {
  margin-top: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
}
.arc-meta {
  margin-top: 6px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--green-dd);
  letter-spacing: 0.1em;
}
.arc-meta b { color: var(--pink-2); }
.arc-clear { color: var(--pink); letter-spacing: 0.05em; }

/* stage */
.arc-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1300px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  touch-action: none;
  overflow: hidden;
}
.arc-stage.is-grabbing { cursor: grabbing; }

/* orbits */
.arc-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  margin-top: -280px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 141, 199, 0.18);
  pointer-events: none;
  animation: spin1 50s linear infinite;
}
.arc-ring-2 {
  width: 700px;
  height: 700px;
  margin-left: -350px;
  margin-top: -350px;
  border-color: rgba(197, 163, 255, 0.16);
  animation: spin2 70s linear infinite reverse;
}
@keyframes spin1 { from { transform: rotateZ(0); } to { transform: rotateZ(360deg); } }
@keyframes spin2 { from { transform: rotateZ(0); } to { transform: rotateZ(360deg); } }
.orbit-tag {
  position: absolute;
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: rgba(255, 141, 199, 0.6);
  letter-spacing: 0.18em;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(255, 141, 199, 0.35);
}

/* sphere */
.arc-sphere {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  transform: rotateX(-8deg) rotateY(0deg);
  will-change: transform;
}

/* cards */
.arc-card {
  position: absolute;
  width: 168px;
  height: 192px;
  left: 50%; top: 50%;
  margin-left: -84px;
  margin-top: -96px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 141, 199, 0.45);
  background: linear-gradient(180deg, rgba(15, 42, 15, 0.85), rgba(5, 15, 2, 0.95));
  box-shadow:
    0 0 14px rgba(255, 141, 199, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  will-change: transform;
}
.arc-card:hover,
.arc-card:focus-visible {
  border-color: var(--pink);
  box-shadow:
    0 0 22px rgba(255, 141, 199, 0.55),
    0 0 44px rgba(255, 141, 199, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  outline: none;
}
.arc-card__img {
  width: 100%;
  height: 70%;
  object-fit: contain;
  display: block;
  background: #020602;
  padding: 6px;
  transition: filter 0.3s ease;
}
.arc-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 9px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 45%);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--pink-2);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 0 6px rgba(255, 141, 199, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arc-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: 'VT323', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid currentColor;
  color: var(--green);
  text-shadow: 0 0 4px currentColor;
}
.arc-card__badge.b-pink     { color: var(--pink); }
.arc-card__badge.b-candy    { color: var(--candy); }
.arc-card__badge.b-lavender { color: var(--lavender); }
.arc-card__badge.b-cream    { color: var(--cream); }

/* per-card tint variants (because all images are the same logo) */
.tint-pink     .arc-card__img { filter: hue-rotate(-110deg) saturate(1.1); }
.tint-candy    .arc-card__img { filter: hue-rotate(40deg)   saturate(1.2) brightness(1.05); }
.tint-lavender .arc-card__img { filter: hue-rotate(80deg)   saturate(0.9); }
.tint-cream    .arc-card__img { filter: sepia(0.35)         saturate(0.8) brightness(1.05); }
.tint-mint     .arc-card__img { filter: hue-rotate(-12deg)  saturate(0.95); }
.tint-rose     .arc-card__img { filter: hue-rotate(-150deg) saturate(1.15); }
.tint-cyan     .arc-card__img { filter: hue-rotate(170deg)  saturate(0.85); }
.tint-default  .arc-card__img { filter: none; }

/* hint */
.arc-hint {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--pink-2);
  letter-spacing: 0.14em;
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(255, 141, 199, 0.4);
}

/* peek modal */
.peek {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.peek[hidden] { display: none; }
.peek__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.92) 75%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.peek__card {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--pink);
  border-radius: 20px;
  padding: 22px 22px 20px;
  box-shadow:
    0 0 0 1px rgba(255, 141, 199, 0.1),
    0 0 40px rgba(255, 141, 199, 0.35),
    0 0 80px rgba(255, 141, 199, 0.15);
  animation: peekIn 0.28s ease;
}
@keyframes peekIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.peek__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
  color: var(--pink-2);
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.peek__close:hover { color: #fff; border-color: var(--pink); }

.peek__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #020602;
  border-radius: 14px;
  border: 1px solid var(--pink-d);
  box-shadow: 0 0 24px rgba(255, 141, 199, 0.3);
  padding: 12px;
  margin-bottom: 14px;
  display: block;
}
.peek__label {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--pink);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 141, 199, 0.5);
  line-height: 1.5;
}
.peek__meta {
  background: rgba(5, 15, 2, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.peek__row {
  display: flex;
  justify-content: space-between;
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--green-dd);
  letter-spacing: 0.1em;
  padding: 4px 0;
}
.peek__row b {
  color: var(--green);
  font-weight: 400;
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
}
.peek__note {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  color: var(--pink-2);
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-align: center;
}

/* responsive */
@media (max-width: 880px) {
  .arc-title { font-size: 12px; letter-spacing: 0.14em; }
  .arc-sub { font-size: 12px; }
  .arc-meta { font-size: 12px; }
  .arc-ring { display: none; }
  .arc-card {
    width: 124px;
    height: 142px;
    margin-left: -62px;
    margin-top: -71px;
    border-radius: 10px;
  }
  .arc-card__label { font-size: 10px; padding: 7px 8px 8px; }
  .arc-card__badge { font-size: 9px; padding: 2px 6px; }
  .arc-stage { perspective: 800px; }
}

@media (max-width: 480px) {
  .arc-card {
    width: 100px;
    height: 116px;
    margin-left: -50px;
    margin-top: -58px;
  }
  .arc-card__label { font-size: 9px; }
  .arc-hint { font-size: 12px; bottom: 14px; }
  .arc-header { top: 14px; }
}
