/* ---------- Warp Portal Button ---------- */
.warp-portal-btn {
  background: radial-gradient(circle at 60% 40%, #6C63FF 0%, #00C9A7 60%, #08080f 100%);
  color: #fff;
  border: 2.5px solid #FFD700;
  border-radius: 50px;
  padding: 0.6rem 2.2rem 0.6rem 2.2rem;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: 0 0 16px 4px #6C63FF88, 0 0 32px 8px #FFD70044, 0 2px 16px #00C9A755;
  cursor: pointer;
  position: relative;
  z-index: 2;
  margin-left: 1.2rem;
  transition: background .22s, color .18s, box-shadow .22s, transform .16s, border .18s;
  animation: warp-glow 2.2s infinite alternate;
}
.warp-portal-btn:hover, .warp-portal-btn:focus {
  background: radial-gradient(circle at 40% 60%, #FFD700 0%, #6C63FF 60%, #00C9A7 100%);
  color: #222;
  border-color: #6C63FF;
  box-shadow: 0 0 32px 8px #FFD700cc, 0 0 48px 12px #6C63FF99;
  transform: scale(1.08) rotate(-2deg);
}
@keyframes warp-glow {
  0% { box-shadow: 0 0 16px 4px #6C63FF88, 0 0 32px 8px #FFD70044, 0 2px 16px #00C9A755; }
  100% { box-shadow: 0 0 32px 12px #FFD700cc, 0 0 48px 16px #6C63FF99; }
}
/* ---------- Category Switcher ---------- */
.category-switcher {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.category-btn {
  background: var(--bg-card);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s, border .18s;
}
.category-btn.active, .category-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-secondary);
}
.list-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

#list-view {
  display: none;
  animation: fadeUp .5s ease both;
}
#list-view.active {
  display: block;
}

.disc-list-item {
  /* ...既存... */
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s;
}
.disc-list-item:hover {
  transform: translateY(-6px) scale(1.025) rotate(-1deg);
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}
/* ---------- List View ---------- */
.btn-list-view, .btn-back-shelf {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .5rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, opacity .3s;
  margin-left: 1rem;
}

.btn-back-shelf {
  display: block;
  margin: 2.5rem auto 0 auto;
  padding: 0.85rem 2.8rem;
  font-size: 1.18rem;
  font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  letter-spacing: 2.2px;
  border-radius: 18px;
  background: linear-gradient(90deg, #111 60%, #222 100%);
  color: #FFD700;
  border: 2.5px solid #FFD700;
  box-shadow: 0 0 16px 2px #FFD70055, 0 2px 24px #000 inset;
  text-shadow: 0 0 8px #FFD70099, 0 1px 0 #fff2, 0 0 2px #fff8;
  cursor: pointer;
  transition: background .18s, color .18s, border .18s, transform .16s, box-shadow .18s;
  position: relative;
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
}
.btn-back-shelf:hover {
  background: linear-gradient(90deg, #222 0%, #111 100%);
  color: #fffbe6;
  border-color: #FFD700;
  box-shadow: 0 0 32px 6px #FFD700cc, 0 2px 32px #000 inset;
  transform: translateY(-2px) scale(1.06) skewX(-6deg);
  text-shadow: 0 0 16px #FFD700cc, 0 2px 8px #fff8;
}
.btn-list-view:hover, .btn-back-shelf:hover {
  background: var(--accent-secondary);
}

.disc-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0 auto;
  max-width: 600px;
}
.disc-list-item {
  background: var(--bg-card);
  margin-bottom: 1.2rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  border-left: 8px solid var(--accent);
}
.disc-list-main {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.disc-list-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.disc-list-desc {
  font-size: .92rem;
  color: var(--text-secondary);
}
.disc-list-links {
  display: flex;
  gap: 1.2rem;
}
.disc-list-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 700;
  font-size: .98rem;
  transition: color .2s;
}
.disc-list-link:hover {
  color: var(--accent-secondary);
}
/* ============================================
   DISC SHELF — Portal Stylesheet
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #08080f;
  --bg-surface: #10101c;
  --bg-card: #16162a;
  --bg-card-hover: #1e1e38;
  --text-primary: #eaeaff;
  --text-secondary: #9595b8;
  --text-muted: #5c5c7a;
  --accent: #6C63FF;
  --accent-glow: rgba(108,99,255,.45);
  --accent-secondary: #FF6584;
  --border: rgba(255,255,255,.06);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
  --shadow-card: 0 8px 32px rgba(0,0,0,.55);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Aurora Background ---------- */
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
}
.aurora-bg::before,
.aurora-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .18;
  animation: auroraFloat 12s ease-in-out infinite alternate;
}
.aurora-bg::before {
  width: 60vw; height: 50vh;
  top: -10%; left: -10%;
  background: radial-gradient(circle, #6C63FF 0%, #00C9A7 40%, transparent 70%);
}
.aurora-bg::after {
  width: 55vw; height: 45vh;
  bottom: -5%; right: -8%;
  background: radial-gradient(circle, #FF6584 0%, #6C63FF 50%, transparent 70%);
  animation-delay: -6s;
  animation-duration: 15s;
}
@keyframes auroraFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: .15; }
  50%  { transform: translate(5vw, 3vh) scale(1.15); opacity: .22; }
  100% { transform: translate(-3vw, -2vh) scale(1.05); opacity: .18; }
}

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
    background: rgba(8,8,15,.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  position: relative;
}
.btn-list-view {
  display: inline-block;
  margin: 0 auto 1.2rem auto;
  padding: 0.85rem 2.8rem;
  font-size: 1.18rem;
  font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  letter-spacing: 2.2px;
  border-radius: 18px;
  background: linear-gradient(90deg, #111 60%, #222 100%);
  color: #FFD700;
  border: 2.5px solid #FFD700;
  box-shadow: 0 0 16px 2px #FFD70055, 0 2px 24px #000 inset;
  text-shadow: 0 0 8px #FFD70099, 0 1px 0 #fff2, 0 0 2px #fff8;
  cursor: pointer;
  transition: background .18s, color .18s, border .18s, transform .16s, box-shadow .18s;
  position: relative;
  z-index: 10;
}
.btn-list-view:hover {
  background: linear-gradient(90deg, #222 0%, #111 100%);
  color: #fffbe6;
  border-color: #FFD700;
  box-shadow: 0 0 32px 6px #FFD700cc, 0 2px 32px #000 inset;
  transform: translateY(-2px) scale(1.06) skewX(-6deg);
  text-shadow: 0 0 16px #FFD700cc, 0 2px 8px #fff8;
}

.logo {
  display: flex; align-items: center; gap: .6rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.logo-icon {
  font-size: 1.6rem; color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
  animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900; font-size: 1.15rem; letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline { font-size: .8rem; color: var(--text-muted); letter-spacing: 1px; }

/* ---------- Main ---------- */
#app {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 2rem;
  min-height: calc(100vh - 64px - 60px);
}

/* ---------- Views ---------- */
.view { display: none; animation: fadeUp .5s ease both; }
.view.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Section Titles ---------- */
.shelf-header { text-align: center; margin-bottom: 1.5rem; }
.section-title-large {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: 2px; margin-bottom: .5rem;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub { color: var(--text-secondary); font-size: .9rem; margin-bottom: 1.5rem; }

/* ---------- 3D Shelf Container ---------- */
#shelf-3d-container {
  position: relative; width: 100%; height: 520px;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 80%, rgba(108,99,255,.12) 0%, rgba(0,201,167,.04) 40%, transparent 70%);
}

#shelf-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
#shelf-canvas:active { cursor: grabbing; }

/* ---------- Tooltip ---------- */
.disc-tooltip {
  position: absolute; pointer-events: none;
  background: rgba(10,10,20,.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px; padding: .7rem 1.1rem;
  z-index: 50; transition: opacity .2s ease;
  max-width: 240px;
}
.disc-tooltip.hidden { opacity: 0; }

.disc-tooltip .tt-name {
  font-family: 'Orbitron', sans-serif;
  font-size: .8rem; font-weight: 700;
  margin-bottom: .2rem; letter-spacing: .5px;
}
.disc-tooltip .tt-desc {
  font-size: .7rem; color: var(--text-secondary);
  line-height: 1.4; margin-bottom: .3rem;
}
.disc-tooltip .tt-hint {
  font-size: .65rem; color: var(--text-muted);
}

/* ---------- Launch Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal-overlay.open {
  opacity: 1; visibility: visible;
}

.modal-launch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  width: 90%; max-width: 420px;
  text-align: center;
  position: relative;
  transform: translateY(24px) scale(.94);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 16px 64px rgba(0,0,0,.6);
}
.modal-overlay.open .modal-launch-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.2rem;
  cursor: pointer; transition: var(--transition);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.modal-close:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }

/* Disc visual in modal */
.modal-launch-disc {
  margin: 0 auto 1.5rem;
  width: 100px; height: 100px;
}

.modal-disc-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #111, #222, #111, #222, #111, #222, #111);
  display: flex; align-items: center; justify-content: center;
  animation: modalDiscSpin 4s linear infinite;
  box-shadow: 0 0 0 3px rgba(255,255,255,.06), 0 0 30px rgba(0,0,0,.5);
  position: relative;
}

@keyframes modalDiscSpin {
  to { transform: rotate(360deg); }
}

.modal-disc-inner {
  width: 38%; height: 38%;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: modalDiscSpinReverse 4s linear infinite;
}

@keyframes modalDiscSpinReverse {
  to { transform: rotate(-360deg); }
}

.modal-disc-icon {
  font-size: 1.2rem; color: #fff;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.4));
}

.modal-launch-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: 2px; margin-bottom: .6rem;
}

.modal-launch-desc {
  color: var(--text-secondary);
  font-size: .88rem; line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-launch-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  justify-content: center; margin-bottom: 1.5rem;
}

.meta-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .7rem; border-radius: 50px;
  font-size: .7rem; font-weight: 600;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.meta-tag .meta-icon { font-size: .75rem; }

.modal-launch-actions {
  display: flex; flex-direction: column; gap: .8rem;
}

/* ---------- Action Buttons ---------- */
.disc-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

.btn-launch {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px var(--accent-glow);
  position: relative; overflow: hidden;
}

.btn-launch::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent);
  opacity: 0; transition: var(--transition);
}
.btn-launch:hover { transform: translateY(-2px); box-shadow: 0 8px 36px var(--accent-glow); }
.btn-launch:hover::before { opacity: 1; }
.btn-launch:active { transform: scale(.97); }

.launch-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.5));
}

.btn-repo {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 50px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .9rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: var(--transition);
}
.btn-repo:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(108,99,255,.08);
}

.repo-icon { font-family: monospace; font-size: 1rem; }



/* ---------- Footer ---------- */
#site-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 1.5rem;
  color: var(--text-muted);
  font-size: .75rem; letter-spacing: .5px;
  border-top: 1px solid var(--border);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(108,99,255,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(108,99,255,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  #app { padding: 1rem; }
  #shelf-3d-container { height: 400px; }
  .tagline { display: none; }
}
