﻿/* squizzy os */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'DM Mono', 'Courier New', monospace;
  background: #0d0a14;
  color: #c8c0d0;
  overflow-x: hidden;
  font-size: 16px;
}

/* background image */
body {
  background: #0d0a14;
  background-image: url(https://images.steamusercontent.com/ugc/59210475760250521/C67E359207E790B3DCE81C6B3C14F1775CE65A52/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(13, 10, 20, 0.30);
  z-index: -1;
}

::selection { background: #6644aa55; color: #fff; }

/* top bar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(22, 16, 32, 0.55);
  border-bottom: 1px solid #2a1a3e;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.tb-left, .tb-center, .tb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-logo {
  font-weight: 700;
  color: #9966dd;
  font-size: 0.95rem;
}

.tb-online { color: #55aa77; }
.tb-idle { color: #ccaa55; }
.tb-dnd { color: #cc5555; }
.tb-offline { color: #666680; }

.tb-clock {
  color: #8880a0;
  font-size: 0.8rem;
}

/* desktop immitation */
.desktop {
  padding: 56px 16px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* windows */
.win {
  border: 1px solid #2a1a3e;
  background: rgba(15, 12, 26, 0.45);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  isolation: isolate;
}

/* stopping the first window from having blur, as lanyards refreshing does something to it */
.desktop .win:first-child {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.win-wide {
  grid-column: span 2;
}

.win-full {
  grid-column: 1 / -1;
}

.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: rgba(26, 14, 40, 0.45);
  border-bottom: 1px solid #2a1a3e;
  user-select: none;
}

.win-title {
  font-size: 0.85rem;
  color: #9966dd;
  font-weight: 500;
}

.win-ctrl {
  display: flex;
  gap: 5px;
}

.ctrl-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 16px;
  font-size: 0.65rem;
  color: #666080;
  border: 1px solid #2a1a3e;
  cursor: default;
  transition: background 0.15s;
}

.ctrl-dot:hover {
  background: #2a1a3e;
  color: #c8c0d0;
}

.ctrl-dot.close:hover {
  background: #661122;
  color: #ff8888;
}

.win-body {
  padding: 14px;
  flex: 1;
}

.win-body-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* centered profile */
.profile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
    padding: 24px 0;  
}

.pfp {
  width: 110px;
  height: 110px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #2a1a3e;
  display: block;
}

.pfp-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c8c0d0;
  margin-top: 4px;
}

.pfp-bio {
  font-size: 0.7rem;
  color: #c8c0d0;
  line-height: 1.4;
  max-width: 220px;
  margin-top: 8px;
}

.info-center {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.info-line-c {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
}

.info-k {
  color: #9461f8;
  font-weight: 500;
}

.info-v {
  color: #c8c0d0;
}

.info-v.purple {
  color: #c8c0d0;
  font-style: italic;
}

.muted {
  color: #8880a0;
}

/* now playing window */
.np-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 31px 0;
}

.np-album {
  width: 150px;
  height: 150px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid #2a1a3e;
  display: block;
}

.np-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.np-song {
  font-size: 0.85rem;
  color: #c8c0d0;
  font-weight: 600;
}

.np-artist {
  font-size: 0.75rem;
}

.np-empty {
  font-size: 0.75rem;
  text-align: center;
  padding: 20px 0;
}

/* clock window */
.clock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 105.5px 0;
}

.clock-time {
  font-size: 3.2rem;
  font-weight: 700;
  color: #c8c0d0;
  letter-spacing: 0.05em;
}

.clock-date {
  font-size: 0.85rem;
  color: #8880a0;
  text-align: center;
}

/* game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gthumb {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #1a1528;
  transition: border-color 0.15s, transform 0.15s;
}

.gthumb:hover {
  border-color: #6644aa;
  transform: translateY(-2px);
}

/* scroll through artists */
.artist-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin-bottom: 12px;
  scrollbar-width: auto;
  scrollbar-color: #2a1a3e transparent;
}

.artist-scroll::-webkit-scrollbar { height: 8px; }
.artist-scroll::-webkit-scrollbar-track { background: transparent; }
.artist-scroll::-webkit-scrollbar-thumb { background: #2a1a3e; }

.artist-box {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  width: 110px;
  transition: transform 0.15s;
}

.artist-box:hover {
  transform: translateY(-2px);
}

.artist-pic {
  width: 110px;
  height: 110px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #2a1a3e;
  background: #0f0c1a;
}

.artist-box:hover .artist-pic {
  border-color: #6644aa;
}

.artist-label {
  font-size: 0.75rem;
  color: #8880a0;
  text-align: center;
  line-height: 1.2;
}

/* links */
.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
   padding: 93.5px 0;
}

.link-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #1a1528;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.link-entry:hover {
  border-color: #6644aa;
  background: rgba(26, 14, 40, 0.6);
}

.link-ico { font-size: 1.2rem; flex-shrink: 0; }
.link-txt { font-size: 0.85rem; font-weight: 600; color: #c8c0d0; }
.link-usr { font-size: 0.75rem; color: #666080; margin-left: auto; }

/* about window */
.about-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 1px solid #1a1528;
}

.about-line:last-child {
  border-bottom: none;
}

.about-key {
  color: #9461f8;
  font-weight: 500;
}

.about-val {
  color: #c8c0d0;
  text-align: right;
}

/* bottom bar */
.bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 34px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(22, 16, 32, 0.55);
  border-top: 1px solid #2a1a3e;
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
}

.bb-left, .bb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb-active {
  color: #8880a0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.bb-item {
  color: #666080;
}

/* blog window */
.blog-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

.blog-entry {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #1a1528;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.blog-entry:hover {
  border-color: #3d1c7e;
  background: rgba(26, 14, 40, 0.6);
}

.blog-date {
  font-size: 0.7rem;
  color: #666080;
  flex-shrink: 0;
}

.blog-title {
  font-size: 0.8rem;
  color: #c8c0d0;
  font-weight: 600;
}

.blog-viewall {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #5016d6;
  text-decoration: none;
  padding: 8px 0;
  margin-top: 4px;
  transition: color 0.15s;
}

.blog-viewall:hover {
  color: #9461f8;
}

/* responsive part */
@media (max-width: 900px) {
  .desktop {
    grid-template-columns: 1fr 1fr;
  }
  .win-wide {
    grid-column: span 2;
  }
  .win-full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .desktop {
    grid-template-columns: 1fr;
    padding: 50px 8px 38px;
    gap: 8px;
  }
  .win-wide, .win-full {
    grid-column: 1;
  }
  .topbar { padding: 0 8px; font-size: 0.8rem; }
  .win-body { padding: 10px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .clock-time { font-size: 1.8rem; }
}

