:root {
  --bg-a: #eef2ff;
  --bg-b: #dde6ff;
  --panel: #fafcff;
  --panel-strong: #edf2ff;
  --line: #6f8ef4;
  --line-strong: #5574df;
  --ink: #4352a7;
  --ink-soft: #7a87be;
  --pink: #ffb8df;
  --pink-strong: #ef88bf;
  --white: #fffdfd;
  --yellow: #fff5da;
  --shadow: 0 24px 46px rgba(98, 117, 198, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Gaegu", cursive;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 14%, rgba(255, 211, 234, 0.65) 0 3px, transparent 4px),
    radial-gradient(circle at 34% 72%, rgba(255, 255, 255, 0.82) 0 4px, transparent 5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.18) 50%, transparent 50%),
    linear-gradient(180deg, var(--bg-a), var(--bg-b));
  background-size: 180px 180px, 240px 240px, 220px 220px, 72px 72px, 72px 72px, auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-decor {
  position: fixed;
  inset: auto auto 12% 5%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  filter: blur(4px);
  pointer-events: none;
}

.decor-right {
  inset: 8% 6% auto auto;
  width: 180px;
  height: 180px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
  padding: 16px;
}

.window {
  border: 3px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 255, 0.98));
  box-shadow: 0 0 0 4px rgba(255, 188, 223, 0.78), var(--shadow);
  overflow: hidden;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #aebfff, #7f99f6);
  border-bottom: 2px solid var(--line-strong);
  color: var(--white);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(73, 97, 177, 0.78);
  background: linear-gradient(180deg, #fff8fc, #ffd0e8);
}

.window-title {
  margin: 0;
  font-family: "VT323", monospace;
  font-size: clamp(1.6rem, 2vw, 2rem);
  letter-spacing: 0.08em;
}

.window-status {
  padding: 2px 10px;
  border-radius: 999px;
  border: 2px solid rgba(73, 97, 177, 0.65);
  background: rgba(255, 255, 255, 0.9);
  color: var(--line-strong);
  font-size: 1rem;
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #97acff, #7390f3);
  color: #f8fbff;
}

.menu-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1.2rem;
}

.menu-items a:hover {
  text-decoration: underline;
}

.address-bar {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 196, 227, 0.95);
  background: rgba(255, 255, 255, 0.98);
  color: #8190cc;
  font-size: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 290px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.window-panel {
  border: 2px solid rgba(111, 142, 244, 0.85);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 255, 0.98));
  box-shadow: 0 0 0 3px rgba(255, 188, 223, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(180deg, #dbe5ff, #d6e0ff 38%, #eef3ff 100%);
}

.sidebar-card {
  padding: 14px;
  border: 2px solid rgba(129, 156, 242, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 2px rgba(255, 188, 223, 0.38);
}

.sidebar-card + .sidebar-card {
  margin-top: 14px;
}

.sidebar-label,
.subtitle,
.eyebrow,
.badge-label,
.downloads-caption {
  margin: 0;
}

.intro-card h1 {
  margin: 4px 0 2px;
  font-family: "VT323", monospace;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
}

.sidebar-label {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.subtitle {
  color: #89a1ef;
  font-size: 1.35rem;
}

.mascot-frame {
  margin-top: 12px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(111, 142, 244, 0.7);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.88), rgba(238, 244, 255, 0.95)),
    linear-gradient(135deg, #fff7e8, #e6efff);
  display: grid;
  place-items: center;
  padding: 16px;
  box-shadow: 0 0 0 3px rgba(255, 188, 223, 0.5);
}

.mascot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.status-card {
  display: grid;
  gap: 12px;
}

.mini-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.mini-row strong {
  display: block;
  font-size: 1.15rem;
}

.mini-row p {
  margin: 2px 0 0;
  line-height: 1.2;
  color: var(--ink-soft);
}

.mini-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(118, 160, 214, 0.9);
  background: linear-gradient(180deg, #ffffff, #dbf2ff);
}

.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
}

.mini-icon.mail::before {
  inset: 10px 8px 12px;
  border: 2px solid #7aa7da;
  border-radius: 4px;
}

.mini-icon.mail::after {
  left: 10px;
  right: 10px;
  top: 14px;
  height: 2px;
  background: #7aa7da;
  transform: skewY(-24deg);
  box-shadow: 0 0 0 1px #7aa7da inset;
}

.mini-icon.box::before {
  inset: 9px;
  border: 2px solid #7aa7da;
  border-radius: 6px;
}

.mini-icon.box::after {
  left: 11px;
  right: 11px;
  top: 18px;
  height: 2px;
  background: #7aa7da;
}

.mini-icon.star::before {
  inset: 9px;
  background: #7aa7da;
  clip-path: polygon(50% 0%, 61% 36%, 98% 36%, 67% 58%, 79% 95%, 50% 72%, 21% 95%, 33% 58%, 2% 36%, 39% 36%);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 2px solid rgba(93, 117, 214, 0.95);
  background: linear-gradient(180deg, #90a6ff, #7892ef);
  color: var(--white);
  font-size: 1.1rem;
  box-shadow: 0 0 0 3px rgba(255, 188, 223, 0.32);
}

.music-pill {
  min-width: 72px;
  padding: 6px 14px;
  border: 2px solid rgba(93, 117, 214, 0.95);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 248, 0.98));
  color: var(--line-strong);
  cursor: default;
}

.main-panel {
  display: grid;
  gap: 18px;
}

.hero,
.folders,
.downloads {
  padding: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.96), transparent 30%),
    radial-gradient(circle at 82% 34%, rgba(255, 226, 240, 0.55), transparent 24%),
    linear-gradient(135deg, rgba(255, 228, 242, 0.65), rgba(230, 237, 255, 0.98));
}

.hero-copy h2,
.folders h3,
.downloads h3 {
  margin: 6px 0 10px;
  font-family: "VT323", monospace;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.eyebrow {
  color: #8a97d6;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-aa {
  margin: 0;
  color: var(--line-strong);
  font-family: "MS Gothic", "Courier New", monospace;
  font-size: clamp(0.88rem, 1.55vw, 1.2rem);
  line-height: 1.25;
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-aa::-webkit-scrollbar {
  display: none;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.folders {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(232, 238, 255, 0.98));
}

.folders::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.92) 0 6px, transparent 7px),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    radial-gradient(circle at 44% 78%, rgba(255, 229, 241, 0.75) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 64%, rgba(255, 255, 255, 0.88) 0 5px, transparent 6px);
  opacity: 0.85;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.folder-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 168px;
  padding: 2px 8px 8px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 120ms ease, opacity 120ms ease;
}

.folder-button::before {
  content: none;
}

.folder-button:hover,
.folder-button:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.folder-button.is-active {
  background: transparent;
}

.folder-visual,
.folder-copy {
  position: relative;
  z-index: 1;
}

.folder-visual {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0;
}

.folder-pixel {
  width: min(132px, 100%);
  image-rendering: pixelated;
  filter: drop-shadow(6px 6px 0 rgba(111, 142, 244, 0.14));
  transition: transform 120ms ease;
}

.folder-button:hover .folder-pixel,
.folder-button:focus-visible .folder-pixel,
.folder-button.is-active .folder-pixel {
  transform: translateY(-2px);
}

.folder-name {
  display: block;
  font-family: "VT323", monospace;
  color: var(--line-strong);
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.folder-button.is-active .folder-name {
  color: #d776b2;
}

.folder-copy {
  width: 100%;
  text-align: center;
}

.folder-note {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.1;
}

.folder-sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 1;
  opacity: 0.85;
}

.folder-sparkle::before,
.folder-sparkle::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.folder-sparkle::before {
  inset: 0 7px;
}

.folder-sparkle::after {
  inset: 7px 0;
}

.folder-sparkle-a {
  right: 46px;
  bottom: 30px;
}

.folder-sparkle-b {
  left: 50%;
  top: 52px;
  width: 14px;
  height: 14px;
  transform: translateX(36px);
}

.downloads {
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(238, 243, 255, 0.99));
}

.downloads-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.downloads-caption {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 20rem;
  text-align: right;
}

.asset-list {
  display: grid;
  gap: 12px;
}

.asset-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 2px solid rgba(111, 142, 244, 0.82);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 247, 255, 0.99));
  box-shadow: 0 0 0 2px rgba(255, 188, 223, 0.34);
}

.asset-card h4 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid rgba(111, 142, 244, 0.72);
  background: rgba(255, 241, 247, 0.92);
  color: var(--line-strong);
  font-size: 1rem;
}

.asset-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.15;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 11px 20px;
  border: 2px solid rgba(111, 142, 244, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 235, 246, 0.98));
  color: var(--line-strong);
  box-shadow: 0 0 0 2px rgba(255, 188, 223, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(106, 154, 210, 0.15);
  outline: none;
}

.download-button.is-disabled,
.download-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: 0 0 0 2px rgba(255, 188, 223, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 16px;
  border-top: 2px solid rgba(111, 142, 244, 0.28);
  background: linear-gradient(180deg, rgba(255, 228, 241, 0.62), rgba(245, 248, 255, 0.95));
  color: var(--ink-soft);
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .downloads-header,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .downloads-caption {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 16px, 1200px);
    margin: 8px auto;
    padding: 8px;
  }

  .window-titlebar,
  .menu-row,
  .content-grid,
  .footer-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .folder-grid {
    grid-template-columns: 1fr;
  }

  .asset-card {
    grid-template-columns: 1fr;
  }

  .download-actions {
    width: 100%;
    min-width: 0;
  }

  .download-button {
    width: 100%;
  }

  .footer-bar {
    flex-direction: column;
  }
}
