@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --xp-blue: #245edb;
  --xp-blue-deep: #0f2f86;
  --xp-title-a: #000080;
  --xp-title-b: #1084d0;
  --xp-grass: #4c9a2e;
  --xp-grass-deep: #1f5c14;
  --xp-chrome: #d6d3ce;
  --xp-chrome-hi: #ece9d8;
  --xp-ink: #1a1a1a;
  --xp-orange: #f2a93b;
  --font-pixel: "Press Start 2P", monospace;
  --font-term: "VT323", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font-term);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--xp-ink);
  overflow-x: hidden;
  background: var(--xp-blue-deep);
}

button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }

/* --- Bliss background --- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bliss { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- Ticker --- */
.ticker {
  position: relative; z-index: 2; overflow: hidden;
  background: linear-gradient(90deg, var(--xp-title-a) 0%, #1032a0 55%, var(--xp-title-b) 100%);
  border-bottom: 3px solid #7fc34f; color: #ffffff;
  font-family: var(--font-pixel); font-size: 0.6rem; letter-spacing: 0.08em; white-space: nowrap;
}
.ticker-track { display: inline-block; padding: 0.6rem 0; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Page / hero --- */
.page { position: relative; z-index: 1; max-width: 52rem; margin: 0 auto; padding: 1.6rem 1rem 7rem; }
.hero { text-align: center; padding: 1.6rem 0 2rem; }
.kicker { margin: 0 0 0.7rem; font-family: var(--font-pixel); font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; text-shadow: 1px 1px 0 rgba(15,47,134,0.9); }
.title {
  margin: 0; font-family: var(--font-pixel); font-size: clamp(1.9rem, 8vw, 4.6rem); font-weight: 400; line-height: 1.1; letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 2px 0 #dceeff, 0 4px 0 #94c0ea, 0 6px 0 #4a90d9, 0 9px 0 #0f2f86, 0 11px 22px rgba(0,0,0,0.45);
  animation: title-float 4s ease-in-out infinite; text-wrap: balance;
}
@keyframes title-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.subtitle { margin: 1.1rem 0 0; font-family: var(--font-pixel); font-size: 0.56rem; letter-spacing: 0.08em; color: #f6fbff; text-shadow: 1px 1px 0 rgba(15,47,134,0.9); }
.status-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.1rem; margin-top: 1.2rem; font-size: 1.05rem; color: #fff; text-shadow: 1px 1px 0 rgba(15,47,134,0.85); }
.status-row b { font-variant-numeric: tabular-nums; color: #ffd98a; }
.tray-label { font-family: var(--font-pixel); font-size: 0.5rem; }

/* --- Windows --- */
.win { margin: 0 auto 1.6rem; background: var(--xp-chrome); color: var(--xp-ink); border: 1px solid #7a7a7a; box-shadow: inset 1px 1px 0 #ffffff, 3px 3px 0 rgba(0,0,0,0.25); }
.win-bar {
  display: flex; align-items: center; gap: 0.45rem; padding: 0.34rem 0.4rem 0.34rem 0.5rem;
  background: linear-gradient(90deg, var(--xp-title-a) 0%, #1032a0 55%, var(--xp-title-b) 100%);
  color: #fff; font-family: var(--font-pixel); font-size: 0.5rem; letter-spacing: 0.06em;
}
.win-icon { display: grid; place-items: center; flex-shrink: 0; }
.win-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-controls { display: flex; gap: 0.2rem; }
.win-btn { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; font-style: normal; font-size: 0.75rem; line-height: 1; color: #000; background: var(--xp-chrome-hi); border: 1px solid #7a7a7a; box-shadow: inset 1px 1px 0 #fff; }
.win-btn-x { color: #fff; background: linear-gradient(180deg, #f08a66 0%, #d3421f 100%); }
.win-body { padding: 1rem 1rem 1.15rem; background: var(--xp-chrome-hi); color: var(--xp-ink); }
.win-body p { margin: 0 0 0.7rem; text-wrap: pretty; }
.win-body p:last-child { margin-bottom: 0; }
.sys { font-family: var(--font-pixel); font-size: 0.56rem; letter-spacing: 0.08em; color: #1f5c14; }
.term { margin: 0 0 1rem; padding: 0.7rem 0.75rem; background: #0a0a0a; color: #b8f1a8; font-family: var(--font-term); font-size: 1.1rem; line-height: 1.35; overflow-x: auto; border: 2px inset #c0c0c0; }
.club-head { margin: 1.1rem 0 0.6rem; font-family: var(--font-pixel); font-size: clamp(0.8rem, 3.5vw, 1.1rem); letter-spacing: 0.08em; text-align: center; color: #13468f; text-shadow: 1px 1px 0 rgba(255,255,255,0.7); animation: blink 1.6s step-end infinite; text-wrap: balance; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.55; } }
.split { text-align: center; }
.tagline { font-family: var(--font-pixel); font-size: 0.7rem; color: var(--xp-grass-deep); text-align: center; }
.rainbow { height: 4px; border: 0; margin: 1.1rem 0; background: linear-gradient(90deg, #f2a93b, #7fc34f, #245edb, #7fc34f, #f2a93b); }
.win-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.35rem 0.75rem;
  font-family: var(--font-term); font-size: 1.1rem; color: var(--xp-ink); text-decoration: none;
  background: var(--xp-chrome); border: 1px solid #7a7a7a; box-shadow: inset 1px 1px 0 #fff; cursor: pointer; transition: filter 120ms ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { box-shadow: inset 1px 1px 0 #7a7a7a; transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--xp-orange); outline-offset: 2px; }
.btn-blue { color: #fff; background: linear-gradient(180deg, #4a90d9 0%, #245edb 100%); }
.btn-green { background: linear-gradient(180deg, #a5e074 0%, #6ab83c 100%); }
.lyrics { margin: 0; white-space: pre-wrap; font-family: var(--font-term); font-size: 1.12rem; line-height: 1.45; color: #1a1a1a; text-align: center; }
.player { display: grid; gap: 0.7rem; }
.player-row { display: flex; align-items: center; gap: 0.75rem; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 28px; flex-shrink: 0; }
.eq i { display: block; width: 4px; height: 40%; background: linear-gradient(180deg, var(--xp-grass), var(--xp-blue)); animation: eq 0.7s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: 0.08s; } .eq i:nth-child(3) { animation-delay: 0.16s; } .eq i:nth-child(4) { animation-delay: 0.24s; }
.eq i:nth-child(5) { animation-delay: 0.1s; } .eq i:nth-child(6) { animation-delay: 0.3s; } .eq i:nth-child(7) { animation-delay: 0.18s; }
@keyframes eq { from { height: 18%; } to { height: 100%; } }
.track-name { margin: 0; font-family: var(--font-pixel); font-size: 0.65rem; color: #13468f; }
.track-sub { margin: 0.2rem 0 0; color: #4a5550; }
.seek { height: 10px; border: 2px inset #c0c0c0; background: #0a0a0a; overflow: hidden; }
.seek > span { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--xp-grass-deep), var(--xp-grass), var(--xp-blue)); }

/* --- Gallery --- */
.section-label { margin: 0.4rem 0 0.9rem; text-align: center; font-family: var(--font-pixel); font-size: 0.56rem; letter-spacing: 0.18em; color: #fff; text-shadow: 1px 1px 0 rgba(15,47,134,0.9); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1.6rem; }
.frame {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; width: 100%; min-height: 44px; padding: 0;
  color: #fff; background: #0f2f86; border: 2px solid #cfe7f5; box-shadow: inset 0 0 0 2px var(--xp-blue), 3px 3px 0 rgba(0,0,0,0.28); cursor: zoom-in; overflow: hidden;
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame:hover { filter: brightness(1.1); }

/* --- Inline gifs --- */
.inline-gif { display: block; width: 5.5rem; height: 5.5rem; object-fit: cover; background: #ffffff; border: 2px solid var(--xp-grass); box-shadow: 2px 2px 0 #000, inset 0 0 0 2px var(--xp-blue); }
.inline-gif.right { float: right; margin: 0.1rem 0 0.55rem 0.8rem; }
.inline-gif.left { float: left; margin: 0.1rem 0.8rem 0.55rem 0; }
.bio-clear { clear: both; }

/* --- Tiers --- */
.tiers { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin: 1.1rem 0 1.2rem; }
.tier { background: #fff; border: 1px solid #7a7a7a; box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 rgba(0,0,0,0.18); padding: 0.75rem 0.85rem; }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid #d6d3ce; padding-bottom: 0.55rem; margin-bottom: 0.6rem; }
.tier-name { font-family: var(--font-pixel); font-size: 0.72rem; color: #0f2f86; }
.tier-price {
  font-family: var(--font-pixel); font-size: 0.78rem; color: #ffffff;
  background: linear-gradient(180deg, #7ecf4a 0%, #2f7d1d 100%);
  padding: 0.28rem 0.55rem; border: 1px solid #1b4a11;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 1px 2px rgba(0,0,0,0.3);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.35); white-space: nowrap;
}
.tier-sub { margin: 0 0 0.5rem; font-weight: 700; }
.tier-list { margin: 0; padding: 0; list-style: none; }
.tier-list li { margin: 0.12rem 0; font-size: 1.05rem; }
.tier-text { margin: 0; }
.tier-note { font-style: italic; color: #1f5c14; text-align: center; }

/* --- X relic --- */
.x-relic {
  display: block; position: relative; margin: 1.3rem 0 0.6rem; padding: 1.5rem 1rem 1.3rem; text-align: center; text-decoration: none; color: #fff;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255,255,255,0.22), transparent 58%), linear-gradient(180deg, #1a4aa8 0%, #0f2f86 60%, #0b2f74 100%);
  border: 2px solid #cfe7f5; box-shadow: inset 0 0 0 3px #245edb, inset 0 0 0 4px #7fc34f, 0 0 22px rgba(15,47,134,0.4); overflow: hidden; transition: transform 180ms ease, filter 180ms ease;
}
.x-relic::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,0.3); pointer-events: none; }
.x-relic:hover, .x-relic:focus-visible { transform: translateY(-3px) scale(1.01); filter: brightness(1.08); }
.x-relic:active { transform: scale(0.98); }
.x-eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 42px; margin: 0 auto 0.55rem; }
.x-eq i { display: block; width: 5px; height: 40%; background: #7fc34f; box-shadow: 0 0 8px rgba(127,195,79,0.9); animation: eq 0.7s ease-in-out infinite alternate; }
.x-eq i:nth-child(2) { animation-delay: 0.1s; } .x-eq i:nth-child(3) { animation-delay: 0.2s; } .x-eq i:nth-child(4) { animation-delay: 0.05s; } .x-eq i:nth-child(5) { animation-delay: 0.18s; }
.x-kicker { display: block; font-family: var(--font-pixel); font-size: 0.5rem; letter-spacing: 0.28em; color: #d9ecff; }
.x-title { display: block; margin-top: 0.4rem; font-family: var(--font-pixel); font-size: clamp(0.7rem, 3vw, 0.95rem); letter-spacing: 0.06em; color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.6); }
.x-handle { display: block; margin-top: 0.3rem; font-size: 1.2rem; color: #d9ecff; }
.x-verse { display: block; margin: 0.55rem auto 0.7rem; max-width: 22rem; font-style: italic; font-size: 1.05rem; color: #cfe7f5; text-wrap: balance; }
.x-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.2rem 0.9rem;
  font-family: var(--font-pixel); font-size: 0.55rem; letter-spacing: 0.08em; color: #fff;
  background: linear-gradient(180deg, #a5e074 0%, #6ab83c 100%); border: 1px solid #7a7a7a; box-shadow: inset 1px 1px 0 #e8ffd8;
}

/* --- Footer --- */
.foot { text-align: center; color: #eaf3ff; font-size: 1.05rem; padding: 0.5rem 0 1rem; text-shadow: 1px 1px 0 rgba(15,47,134,0.85); }
.fine { font-size: 1rem; color: #5a5a5a; font-style: italic; }
.foot .fine { color: #cfe7f5; }

/* --- Dialog --- */
.dialog { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,30,0.55); }
.dialog[hidden] { display: none; }
.dialog-win { width: min(92vw, 22rem); margin: 0; }
.dialog-x { background: transparent; border: none; color: #fff; }

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,30,0.8); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox-close { position: absolute; top: 0.6rem; right: 0.8rem; min-width: 44px; min-height: 44px; border: 1px solid #7a7a7a; background: var(--xp-chrome); color: #1a1a1a; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-img { display: block; max-width: min(94vw, 40rem); max-height: 82vh; width: auto; height: auto; object-fit: contain; border: 3px solid #cfe7f5; box-shadow: 0 0 0 3px var(--xp-grass), 0 0 40px rgba(127,195,79,0.5); cursor: default; }

/* --- Taskbar --- */
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; align-items: center; gap: 0.6rem; height: 42px; padding: 0 0.5rem; background: linear-gradient(180deg, #3a6ea5 0%, #245edb 45%, #1a47a8 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.start { display: flex; align-items: center; gap: 0.4rem; height: 30px; padding: 0 0.6rem 0 0.4rem; font-family: var(--font-pixel); font-size: 0.6rem; font-style: italic; color: #fff; background: linear-gradient(180deg, #6ab83c 0%, #2e7d1f 100%); border: 1px solid #1b4a11; border-radius: 0 8px 8px 0; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5); cursor: pointer; }
.start:hover { filter: brightness(1.08); }
.start-flag { width: 18px; height: 18px; color: #fff; }
.task-items { flex: 1; display: flex; gap: 0.4rem; overflow: hidden; }
.task-item { display: flex; align-items: center; max-width: 16rem; padding: 0 0.7rem; height: 30px; font-size: 1rem; color: #fff; background: linear-gradient(180deg, #4a90d9 0%, #245edb 100%); border: 1px solid #103a86; border-radius: 4px; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.35); }
.tray { display: flex; align-items: center; gap: 0.5rem; height: 30px; padding: 0 0.6rem; color: #fff; background: rgba(20,60,130,0.55); border: 1px solid #103a86; border-radius: 4px; }
.tray-icon { width: 16px; height: 16px; }
.tray-clock { font-size: 1rem; font-variant-numeric: tabular-nums; }

@media (max-width: 599px) {
  .page { padding: 1rem 0.7rem 6.5rem; }
  .gallery { gap: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .title, .club-head, .eq i, .x-eq i { animation: none; }
  .btn, .x-relic, .start { transition: none; }
}
