@property --disc-glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #c64f716b;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffc1ce;
}

:root {
  color-scheme: dark;
  font-family: system-ui, "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #faf4ff;
  background: #161926;
  --line: #a894ca46;
  --muted: #d0c5db;
  --disc-glow: #c64f716b;
  --accent: #ffc1ce;
  --accent-ink: #262137;
  --released-color: #b6f5d2;
  --in-progress-color: #ffd075;
  transition: --disc-glow .48s ease, --accent .48s ease;
}
:root[data-glow="gold"] { --disc-glow: #ba7f326b; --accent: #ffdb9d; }
:root[data-glow="violet"] { --disc-glow: #a76af09c; --accent: #d7bbff; }
:root[data-glow="teal"] { --disc-glow: #28aaa57a; --accent: #a6f2ea; }
:root[data-glow="blue"] { --disc-glow: #4279e68c; --accent: #b9d1ff; }
* { box-sizing: border-box; }
.secret-watermark { display: none; }
.secret-tiles body { isolation: isolate; }
.secret-tiles .secret-watermark {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  color: #ffffff0e;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: min(105vw, 105svh);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.disco-lights {
  position: fixed;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: calc(.5 + var(--music-pulse, 0) * .5);
}
.disco-beam {
  --beam-color: #ff62d85c;
  position: absolute;
  top: -18vh;
  left: -45vw;
  width: 150vw;
  height: 150vh;
  background: conic-gradient(from 155deg at 50% 0,
    transparent 0deg, var(--beam-color) 17deg 27deg, transparent 50deg);
  transform-origin: 50% 0;
  animation: disco-sweep 7s ease-in-out infinite alternate;
}
.disco-beam:nth-child(2) {
  --beam-color: #4bdcff52;
  left: -5vw;
  animation-duration: 9s;
  animation-delay: -4s;
  animation-direction: alternate-reverse;
}
.disco-beam:nth-child(3) {
  --beam-color: #ffd47738;
  left: -25vw;
  animation-duration: 11s;
  animation-delay: -7s;
}
.disco-lights::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 72%, #ec51db20, transparent 55%),
    radial-gradient(ellipse at 84% 40%, #36dbf72b, transparent 55%);
  animation: disco-glow 5s ease-in-out infinite alternate;
}
@keyframes disco-sweep {
  from { transform: rotate(-26deg); }
  to { transform: rotate(27deg); }
}
@keyframes disco-glow {
  from { opacity: .45; }
  to { opacity: .9; }
}
.disco-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: fit-content;
  max-width: calc(100% - 36px);
  margin-block: 8px 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #191c32de;
  color: #faf4ff;
  font-size: 12px;
}
.disco-track { display: grid; gap: 3px; max-width: 100%; text-align: center; }
.disco-track-title { font-size: 14px; font-weight: 650; }
.disco-controls audio { width: 280px; max-width: 100%; height: 38px; }
.disco-message { flex-basis: 100%; margin: 0; text-align: center; }
:root.secret-mode-active { filter: grayscale(1); }
:root.secret-mode-entering {
  animation: secret-monochrome var(--secret-transition-duration) ease-in-out both;
}
.secret-noise {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 20;
  pointer-events: none;
  animation: secret-noise-fade var(--secret-transition-duration) ease-out both;
}
.secret-noise::before {
  content: "";
  position: absolute;
  inset: -128px;
  background: url("/assets/secret-static.png") repeat;
  opacity: .55;
  animation: secret-grain 180ms steps(1, end) infinite;
}
.secret-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, #1010185c 3px 4px);
}
@keyframes secret-monochrome {
  0%, 22% { filter: grayscale(0); }
  100% { filter: grayscale(1); }
}
@keyframes secret-noise-fade {
  0% { opacity: 0; }
  12%, 38% { opacity: .55; }
  72% { opacity: .28; }
  100% { opacity: 0; }
}
@keyframes secret-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-39px, 47px); }
  50% { transform: translate(58px, -24px); }
  75% { transform: translate(-17px, -63px); }
}
.secret-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.secret-mode p { margin: 0; font-size: 13px; font-weight: 750; }
.secret-mode button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #a6afc5;
  border-radius: 7px;
  background: #22263b;
  color: #faf4ff;
  font-size: 12px;
  cursor: pointer;
}
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse min(80vw, 600px) clamp(270px, 52svh, 400px) at 50% clamp(275px, 47svh, 418px),
      var(--disc-glow), transparent),
    linear-gradient(180deg, #1f243c, #161926);
}
.game-launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}
.game-launch-overlay::before,
.game-launch-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
}
.game-launch-overlay::before {
  background: radial-gradient(ellipse at 50% var(--launch-center-y), var(--accent), var(--disc-glow) 33%, transparent 70%);
  transform-origin: 50% var(--launch-center-y);
  animation: launch-light var(--launch-duration) ease-out both;
}
.game-launch-overlay img {
  position: absolute;
  max-width: none;
  filter: drop-shadow(0 14px 14px #080a10aa);
  animation: launch-zoom var(--launch-duration) cubic-bezier(.5, 0, .72, 1) both;
}
.game-launch-overlay::after {
  background: radial-gradient(ellipse at center, var(--disc-glow), transparent 75%), #161926;
  animation: launch-fade var(--launch-duration) ease-out both;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 64px), 1152px); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px;
  z-index: 2;
  background: #222634;
}
.skip-link:focus { top: 10px; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.05em;
}
.brand-light { color: #d0d5df; font-weight: 550; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 30px;
  padding-bottom: 3px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  line-height: 1;
}
.site-header nav { display: flex; gap: 10px; }
.site-header nav a {
  --status-color: var(--released-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 15px;
  border: 1px solid var(--status-color);
  border-radius: 8px;
  background: #191c32;
  color: var(--status-color);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.site-header nav a[href="#in-development"] { --status-color: var(--in-progress-color); }
.site-header nav a:hover { box-shadow: inset 0 0 0 1px currentColor; }
.site-header nav a[aria-current] {
  background: var(--status-color);
  color: var(--accent-ink);
}

.library-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px 18px;
}
h1 { margin: 0; font-size: clamp(26px, 3vw, 39px); line-height: 1.25; letter-spacing: -.03em; }
.shelf-controls { display: flex; gap: 8px; }
.shelf-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #75678f;
  border-radius: 8px;
  background: #251e3e;
  color: #f5f6f9;
  font-size: 21px;
  cursor: pointer;
}
.shelf-controls button:hover { background: #383054; }
.disc-shelf {
  --disc-width: clamp(290px, 43vw, min(456px, 51svh));
  --selected-disc-scale: 1.1;
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 4vw, 62px);
  padding: 22px max(0px, calc((100% - var(--disc-width)) / 2)) 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  overflow-anchor: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #75678f #1f243c;
}
.disc-shelf[data-enhanced] { scrollbar-width: none; }
.disc-shelf[data-enhanced]::-webkit-scrollbar { display: none; }
.disc-shelf:focus-visible { outline-offset: -3px; }
.disc-card {
  position: relative;
  flex: 0 0 var(--disc-width);
  min-width: 0;
  text-align: center;
  scroll-snap-align: center;
}
.disc-art {
  display: block;
  border-radius: 16px;
}
.disc-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 14px #080a10aa);
  transition: filter .28s ease, transform .28s ease;
}
[data-enhanced] .disc-card.is-current .disc-art img { transform: scale(var(--selected-disc-scale)); }
[data-enhanced] .disc-card:not(.is-current) .disc-art img { transform: scale(.875); filter: brightness(.73) drop-shadow(0 12px 12px #080a10a0); }
[data-enhanced] .disc-card:not(.is-current) .disc-art:hover img { filter: brightness(.93) drop-shadow(0 12px 12px #080a10a0); }
[data-enhanced] .disc-card:not(.is-current) .disc-details { visibility: hidden; }
.disc-card.is-launching .disc-art img { visibility: hidden; }
@keyframes launch-zoom {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(var(--launch-x), var(--launch-y)) scale(var(--launch-scale)); }
}
@keyframes launch-fade {
  0%, 83% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes launch-light {
  0% { transform: scale(.66); opacity: 0; }
  74% { opacity: .65; }
  100% { transform: scale(1); opacity: .44; }
}
.disc-status {
  position: absolute;
  top: 6%;
  left: 6%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #fff9;
  border-radius: 6px;
  background: var(--released-color);
  color: #103a2a;
  font-size: clamp(13px, 2.4vw, 16px);
  font-weight: 850;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 3px 10px #0009;
  pointer-events: none;
}
.disc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.disc-status.in-progress { background: var(--in-progress-color); color: #4a2a08; }
.disc-status.secret-only { background: #f3b8e8; color: #4d153e; }
[data-enhanced] .disc-card:not(.is-current) .disc-status { top: 9.25%; left: 8.25%; }
.disc-details { padding-top: 14px; }
.disc-details h2 {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  min-height: 2.5em;
  margin: 0 0 12px;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.disc-actions { display: grid; gap: 8px; max-width: 290px; margin-inline: auto; }
.disc-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 45px;
  padding: 8px 14px;
  border: 1px solid #505969;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}
.disc-actions .store-link {
  justify-content: flex-start;
  gap: 10px;
  min-height: 49px;
  border-color: #ddd8eb;
  background: #2c2a42;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.disc-actions .store-link:hover { background: #42405e; }
.disc-actions .store-link:active { background: #585375; transform: translateY(1px); }
.store-link img { flex: 0 0 auto; }
.store-link span:last-child { margin-inline-start: auto; }
.disc-actions .play-link { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.play-link:hover { filter: brightness(1.09); }
.disc-positions { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 0; margin-block: 2px 10px; }
.disc-positions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #777e8e;
  cursor: pointer;
}
.disc-positions button::before { content: ""; border-radius: 6px; width: 8px; height: 8px; background: currentColor; }
.disc-positions button:hover, .disc-positions button[aria-current] { color: var(--accent); }
.disc-positions button[aria-current]::before { width: 20px; }
.music-wrap {
  display: grid;
  justify-items: center;
  margin-block: 6px 18px;
}
.music-player {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #191c32;
}
.music-player[open] { width: min(100%, 390px); }
.music-player summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 12px;
  list-style: none;
  border-radius: 8px;
  color: #faf4ff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.music-player summary::-webkit-details-marker { display: none; }
.music-player summary:hover { background: #251e3e; }
.music-player summary img {
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px #080a14b3);
}
.music-player summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-start: auto;
  margin-inline-end: 3px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.music-player[open] summary::after { transform: translateY(2px) rotate(225deg); }
.music-controls {
  display: grid;
  gap: 9px;
  padding: 0 12px 12px;
}
.track-choice {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.track-choice select {
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid #75678f;
  border-radius: 6px;
  background: #141729;
  color: #faf4ff;
  font: inherit;
}
.music-controls audio {
  display: block;
  width: 100%;
  min-width: 0;
}
.site-footer { border-top: 1px solid var(--line); padding-block: 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 62px; gap: 10px; }
  .site-header nav { gap: 7px; }
  .site-header nav a { padding-inline: 9px; font-size: 13px; }
  .brand { font-size: 21px; }
  .library-header { padding-block: 20px 13px; }
  .shelf-controls button { width: 40px; height: 40px; }
  .disc-shelf { --disc-width: min(76vw, 360px); gap: 12px; padding-top: 20px; }
  .disc-details { padding-top: 23px; }
}
.secret-tiles .disc-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 36px), 1152px);
  margin-inline: auto;
  gap: 28px clamp(10px, 3vw, 30px);
  padding: 24px 0;
  overflow: visible;
  scroll-snap-type: none;
}
.secret-tiles .disc-card[aria-hidden="true"] { display: none; }
.secret-tiles .disc-shelf .disc-card .disc-art img {
  transform: none;
  filter: drop-shadow(0 6px 8px #080a1066);
}
.disc-card { --disc-rgb: 255 48 79; }
.disc-card[data-glow="gold"] { --disc-rgb: 255 190 25; }
.disc-card[data-glow="violet"] { --disc-rgb: 191 85 255; }
.disc-card[data-glow="teal"] { --disc-rgb: 38 244 231; }
.disc-card[data-glow="blue"] { --disc-rgb: 42 122 255; }
.disc-card[data-glow="pink"] { --disc-rgb: 255 83 173; }
.disco-playing.secret-tiles .disc-shelf .disc-card .disc-art img {
  filter: brightness(calc(.9 + var(--disc-pulse, 0) * 1.05))
    saturate(calc(1 + var(--disc-pulse, 0) * .55))
    drop-shadow(0 0 calc(2px + var(--disc-pulse, 0) * 16px) rgb(var(--disc-rgb) / var(--disc-pulse, 0)))
    drop-shadow(0 0 calc(5px + var(--disc-pulse, 0) * 42px) rgb(var(--disc-rgb) / calc(var(--disc-pulse, 0) * .95)));
  transition: none;
}
.secret-tiles .disc-shelf .disc-card .disc-details {
  visibility: visible;
  padding-top: 10px;
}
.secret-tiles .disc-shelf .disc-card .disc-status {
  position: static;
  margin-top: 8px;
  padding: 4px 7px;
  gap: 4px;
  font-size: clamp(10px, 1.4vw, 13px);
}
.secret-tiles .disc-status::before { width: 5px; height: 5px; }
.secret-tiles .disc-details h2 {
  min-height: 3.75em;
  font-size: clamp(12px, 2vw, 20px);
  margin-bottom: 8px;
}
.secret-tiles .disc-actions { gap: 6px; }
.secret-tiles .disc-actions a {
  justify-content: center;
  min-height: 44px;
  padding: 7px 4px;
  gap: 4px;
  text-align: center;
  font-size: clamp(11px, 1.4vw, 14px);
}
.secret-tiles .store-link img { width: 14px; height: 14px; }
.secret-tiles .disc-actions a > span[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  :root.secret-mode-entering { animation: none; }
  .secret-noise { display: none; }
  .disco-beam, .disco-lights::after { animation: none; }
  .disc-art img { transition: none; }
  .game-launch-overlay { display: none; }
  .disc-card.is-launching .disc-art img { visibility: visible; }
}
