:root{
  --bg: #050814;
  --grid: rgba(170, 210, 255, 0.06);
  --ink: #f4f5ff;

  --turbo-cyan: #34f5ff;
  --turbo-cyan-soft: #5ddfff;
  --turbo-pink: #ff4fbf;
  --turbo-purple: #7d4dff;
  --turbo-yellow: #ffe66d;

  --panel: rgba(6, 12, 30, 0.96);
  --panel2: rgba(11, 20, 48, 0.98);

  --sidebar1: rgba(7, 18, 42, 0.98);
  --sidebar2: rgba(12, 30, 70, 0.98);

  --shadow: 0 26px 70px rgba(0,0,0,0.9);
  --radius: 18px;
  --radius2: 14px;

  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --ui: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

html {
  font-size: 250%;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }

html{
  --vvw: 1vw;
  --vvh: 1vh;
  --vv-top: 0px;
  --vv-left: 0px;
}

body{
  font-family: var(--ui);
  color: var(--ink);
  background: radial-gradient(circle at top, #1a1740 0, #050814 55%, #02030a 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

.bg-grid{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 50% 54%, rgba(255, 46, 166, 0.85) 0%, rgba(255, 46, 166, 0.35) 35%, rgba(255, 46, 166, 0.0) 70%),
    linear-gradient(180deg, #070012 0%, #12002b 22%, #2a0057 42%, #4b0070 52%, #070012 60%, #00050a 100%);
}

.bg-grid::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 5% 10%,  rgba(255,255,255,0.9) 1px, transparent 2px),
    radial-gradient(circle at 18% 7%,  rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 32% 15%, rgba(255,255,255,0.8) 1px, transparent 2px),
    radial-gradient(circle at 48% 9%,  rgba(255,255,255,0.7) 1px, transparent 2px),
    radial-gradient(circle at 63% 18%, rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 80% 8%,  rgba(255,255,255,0.9) 1px, transparent 2px),
    radial-gradient(circle at 12% 28%, rgba(255,255,255,0.7) 1px, transparent 2px),
    radial-gradient(circle at 27% 24%, rgba(255,255,255,0.5) 1px, transparent 2px),
    radial-gradient(circle at 44% 30%, rgba(255,255,255,0.9) 1px, transparent 2px),
    radial-gradient(circle at 61% 25%, rgba(255,255,255,0.7) 1px, transparent 2px),
    radial-gradient(circle at 76% 33%, rgba(255,255,255,0.8) 1px, transparent 2px),
    radial-gradient(circle at 92% 27%, rgba(255,255,255,0.5) 1px, transparent 2px),
    radial-gradient(circle at 8% 42%,  rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 23% 38%, rgba(255,255,255,0.8) 1px, transparent 2px),
    radial-gradient(circle at 39% 44%, rgba(255,255,255,0.5) 1px, transparent 2px),
    radial-gradient(circle at 57% 39%, rgba(255,255,255,0.9) 1px, transparent 2px),
    radial-gradient(circle at 72% 45%, rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 88% 40%, rgba(255,255,255,0.7) 1px, transparent 2px);
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 48%, rgba(0,0,0,0) 58%, rgba(0,0,0,0) 100%);
}

.grid-canvas{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.window{
  position: absolute;
  z-index: 10;
  top: 40px;
  left: 0;
  width: 1200px;
  max-width: 96vw;
  height: 800px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #050814;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px #02030a,
    0 0 0 2px #34f5ff,
    0 0 0 3px #02030a,
    0 26px 70px rgba(0,0,0,0.95);
  overflow: hidden;
}

.titlebar{
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 12px;
  user-select: none;
  cursor: move;
  color: #fdfbff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff4fbf 0%, #ff6fd5 20%, #7d4dff 55%, #34f5ff 100%);
  border-bottom: 2px solid #02061a;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

.titlebar-left{
  display:flex;
  align-items:center;
  gap:8px;
}

.logo{
  width: 22px;
  height: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 4px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #ffe66d 35%, #ff4fbf 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.7),
    0 0 10px rgba(0,0,0,0.8);
}

.title{
  font-weight: 700;
  text-shadow:
    0 0 2px #100c0f,
    0 0 5px #dc078e33,
    0 0 10px #ffffff33;
}

.titlebar-right{
  display:flex;
  gap:4px;
}

#appWindow .titlebar{
  height: 44px;
  min-height: 44px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
}

#appWindow .titlebar-left{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

#appWindow .titlebar-right{
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

#appWindow .title{
  display: block;
  min-width: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-strip{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  background:
    radial-gradient(circle at top left, rgba(52,245,255,0.14), transparent 52%),
    radial-gradient(circle at bottom right, rgba(255,79,191,0.16), transparent 56%),
    linear-gradient(180deg,#06102a 0%, #040918 100%);
  border-bottom:1px solid rgba(144,212,255,0.35);
  box-shadow:
    inset 0 -1px 0 rgba(0,0,0,0.75),
    0 0 18px rgba(52,245,255,0.08);
}

.status-strip-text{
  flex:1 1 auto;
  min-width:0;
  font-family:var(--mono);
  font-size:11px;
  line-height:1.45;
  color:#dff5ff;
  white-space:normal;
  overflow-wrap:anywhere;
  text-shadow:
    0 0 2px #001716,
    0 0 6px rgba(52,245,255,0.18);
}

.status-strip-label{
  color:var(--turbo-yellow);
  text-transform:uppercase;
  letter-spacing:0.12em;
  margin-right:8px;
  text-shadow:
    0 0 2px #3d3300,
    0 0 8px rgba(255,230,109,0.25);
}

#statuscafe-live{
  color:#f4f5ff;
  white-space:normal;
  overflow-wrap:anywhere;
}

.status-history-btn{
  flex:0 0 auto;
  min-height:32px;
  padding:0 12px;
  border-radius:8px;
  border:1px solid rgba(52,245,255,0.7);
  background: linear-gradient(180deg,#0d1d44 0%, #09152f 48%, #050d23 100%);
  color:#e5f3ff;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:
    inset 1px 1px 0 rgba(144,212,255,0.25),
    inset -1px -1px 0 rgba(0,0,0,0.8),
    0 0 14px rgba(52,245,255,0.12);
  transition:transform 80ms ease, border-color 80ms ease, box-shadow 80ms ease, color 80ms ease;
}

.status-history-btn:hover{
  transform:translateY(-1px);
  border-color:var(--turbo-pink);
  color:#fff3fb;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.16),
    inset -1px -1px 0 rgba(0,0,0,0.8),
    0 0 16px rgba(255,79,191,0.22);
}

.status-history-btn.is-open{
  background:linear-gradient(135deg,#34f5ff,#ff4fbf);
  color:#050814;
  border-color:rgba(255,255,255,0.75);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.6),
    inset -1px -1px 0 rgba(0,0,0,0.65),
    0 0 20px rgba(255,79,191,0.28);
}

.winbtn,
.sysbtn{
  min-width: 24px;
  height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  border: 2px solid #020612;
  outline: 1px solid #6edbff;
  background: linear-gradient(180deg, #dde8ff 0%, #9ecbff 40%, #4b6da2 100%);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: #06101f;
  cursor: pointer;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.7),
    inset -1px -1px 0 rgba(0,0,0,0.6);
}
.winbtn:hover,
.sysbtn:hover{
  filter: brightness(1.08);
}
.winbtn:active,
.sysbtn:active{
  box-shadow:
    inset 1px 1px 0 rgba(0,0,0,0.7),
    inset -1px -1px 0 rgba(255,255,255,0.3);
}

.sysbtn-radio.wiggle{
  animation: radio-wiggle 0.6s ease-in-out infinite alternate;
}

@keyframes radio-wiggle{
  0%   { transform: translateX(0) rotate(0deg); }
  25%  { transform: translateX(-2px) rotate(-2deg); }
  75%  { transform: translateX(2px) rotate(2deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

@keyframes barrelRoll {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.window.do-barrel-roll{
  animation: barrelRoll 0.8s ease-in-out;
}

.main{
  flex: 1;
  min-height: 0;
  display:flex;
  background: linear-gradient(180deg, #050814 0%, #02030a 100%);
}

.sidebar{
  width: 190px;
  flex: 0 0 auto;
  padding: 14px 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  background: linear-gradient(180deg,#050d23 0%,#050814 60%,#02030a 100%);
  border-right: 1px solid rgba(144,212,255,0.35);
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.8);
  overflow-y:auto;
}

.navbtn{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 7px 9px;
  border-radius: 6px;
  border: 2px solid #061026;
  background: linear-gradient(180deg,#0b1733 0%,#050d23 40%,#020712 100%);
  cursor: pointer;
  color: #e5f3ff;
  font-family: var(--mono);
  font-size: 11px;
  text-align:left;
  box-shadow:
    inset 1px 1px 0 rgba(144,212,255,0.25),
    inset -1px -1px 0 rgba(0,0,0,0.8);
  transition: transform 80ms ease, box-shadow 80ms ease, border-color 80ms ease;
}
.navbtn:hover{
  transform: translateY(-1px);
  border-color: #34f5ff;
}
.navbtn:active{
  transform: translateY(0);
}
.navbtn.is-active,
.navbtn.is-open{
  background: linear-gradient(135deg,#34f5ff,#ff4fbf);
  color: #050814;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.7),
    inset -1px -1px 0 rgba(0,0,0,0.8);
}

.navtxt{
  font-size: 11px;
}

.content{
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 18px 22px 24px;
  background:
    radial-gradient(circle at top left, rgba(52,245,255,0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255,79,191,0.18), transparent 55%),
    repeating-linear-gradient(0deg, #050814 0px, #050814 2px, #040817 2px, #040817 3px);
  position: relative;
}

h1{
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fdfbff;
  text-shadow:
    0 0 2px #001716,
    0 0 3px #03edf975,
    0 0 5px #03edf975,
    0 0 8px #03edf975;
}

.muted{
  opacity: 0.8;
  margin: 0 0 18px;
  font-size: 12px;
  max-width: 36rem;
}

.panel{ display:none; }
.panel.is-active{ display:block; }

.list{ margin: 0; padding-left: 18px; font-size: 14px; }
.list li{ margin: 8px 0; }
a{ color: var(--turbo-cyan-soft); }
a:hover{ text-decoration: underline; color: var(--turbo-pink); }

.window.is-min{
  height: 64px;
}

@media (max-width: 640px){
  .window{ width: 96vw; height: 78vh; }
  .sidebar{ width: 130px; }
}

.sad-overlay{
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 10px;
  overflow: hidden;
}

.sad-overlay.is-visible{
  opacity: 1;
  pointer-events: auto;
}

.window-fade-shell{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s ease;
}

.window-fade-shell.fade-out{
  opacity: 0;
}

.sad-overlay img{
  width: 80%;
  height: auto;
  max-width: 420px;
  image-rendering: pixelated;
  object-fit: contain;
  display: block;
}

.crt-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.38;
  mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0px,
    rgba(0,0,0,0.55) 1px,
    rgba(0,0,0,0) 1px,
    rgba(0,0,0,0) 3px
  );
  background-size: 100% 3px;
}

.crt-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow: inset 0 0 140px rgba(0,0,0,0.75);
}

.crt-overlay::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.09) 0px, rgba(255,255,255,0.09) 1px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 6px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 5px);
  mix-blend-mode: overlay;
  animation: crt-noise 0.22s steps(2, end) infinite;
}

@keyframes crt-noise{
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-1px,1px); }
  50%  { transform: translate(1px,-1px); }
  75%  { transform: translate(-1px,0); }
  100% { transform: translate(1px,1px); }
}

.window-chat,
.window-badge,
.window-duck,
.window-dance,
.window-more,
.window-links,
.window-about,
.window-statuslog,
.window-onion{
  position: fixed;
  display: none;
}

.window-chat {
  top: 15vh;
  left: 50%;
  width: 520px;
  max-width: 95vw;
  z-index: 20;
  height: 510px;
}

.window-onion{
  top: 15vh;
  left: 50%;
  width: 520px;
  max-width: 95vw;
  height: 510px;
  z-index: 21;
}

.window-badge {
  width: 640px;
  max-width: 95vw;
  height: 600px;
  max-height: 80vh;
  z-index: 20;
}

.window-duck {
  width: 980px;
  max-width: 100vw;
  height: 700px;
  max-height: 90vh;
  z-index: 20;
}

.window-more {
  top: 12vh;
  left: 52%;
  width: 760px;
  max-width: 95vw;
  height: 560px;
  max-height: 82vh;
  z-index: 25;
  resize: both;
  overflow: hidden;
  min-width: 320px;
  min-height: 240px;
}

.window-statuslog{
  top: 14vh;
  left: 52%;
  width: 720px;
  max-width: 95vw;
  height: 560px;
  max-height: 80vh;
  z-index: 26;
}

.window-links{
  top: 10vh;
  left: 50%;
  width: 860px;
  max-width: 95vw;
  height: 760px;
  max-height: 84vh;
  z-index: 27;
}

.window-about{
  top: 16vh;
  left: 50%;
  width: 640px;
  max-width: 95vw;
  height: 340px;
  max-height: 78vh;
  z-index: 27;
}

.window-dance{
  z-index:35;
  width: min(860px, 88vw);
  height: min(620px, 76vh);
  flex-direction: column;
}

.window-chat .titlebar,
.window-badge .titlebar,
.window-duck .titlebar,
.window-more .titlebar,
.window-dance .titlebar,
.window-links .titlebar,
.window-about .titlebar,
.window-statuslog .titlebar,
.window-onion .titlebar{
  cursor: move;
}

.chat-main,
.badge-main,
.duck-main,
.more-main,
.links-main,
.about-main,
.statuslog-main{
  padding: 0;
  height: calc(100% - 44px);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(52,245,255,0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255,79,191,0.16), transparent 58%),
    linear-gradient(180deg,#050814 0%, #02030a 100%);
}

.dance-main{
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(52,245,255,0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255,79,191,0.16), transparent 58%),
    linear-gradient(180deg,#050814 0%, #02030a 100%);
}

.chat-main iframe,
.badge-main iframe,
.duck-main iframe,
.more-main iframe,
.dance-main iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.dance-main iframe {
  border: 0;
  display: block;
  overflow-x: auto;
}

.links-inner,
.about-inner,
.statuslog-inner{
  height: 100%;
  padding: 18px 20px 20px;
  overflow: auto;
}

.window-badge.roll,
.window-chat.roll,
.window-onion.roll,
.window-duck.roll,
.window-dance.roll,
.window-more.roll{
  animation: barrelRoll 0.8s ease-in-out;
}

.muted{
  margin-bottom: 8px;
}

.item-wrapper{
  max-width: 520px;
  margin: 4px auto 0 auto;
}

.rack-wrapper{
  width: 100%;
  margin: 4px auto 0 auto;
  display: flex;
  justify-content: center;
}

.rack-viewport{
  --rack-radius: 520px;
  --rack-tilt: 0deg;
  width: min(980px, 100%);
  height: 560px;
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  overflow: hidden;
  border-radius: 16px;
}

.rack-viewport::before,
.rack-viewport::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  pointer-events: none;
  z-index: 10;
}

.rack-viewport::before{
  left: 0;
  background: linear-gradient(to right, rgba(5,8,20,1), rgba(5,8,20,0));
}

.rack-viewport::after{
  right: 0;
  background: linear-gradient(to left, rgba(5,8,20,1), rgba(5,8,20,0));
}

.rack-ring{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--rack-radius))) rotateX(var(--rack-tilt)) rotateY(var(--rot, 0deg));
  transition: transform 520ms cubic-bezier(.2,.9,.2,1);
}

.rack-card{
  position: absolute;
  left: 50%;
  top: 46%;
  width: 520px;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    rotateY(calc(var(--i) * var(--step)))
    translateZ(var(--rack-radius))
    translateX(var(--pushX, 0px))
    translateZ(var(--pushZ, 0px));
  transition: opacity 520ms cubic-bezier(.2,.9,.2,1), filter 520ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, opacity, filter;
}

.rack-bubble{
  width: 100%;
  transform-origin: 50% 55%;
  transition: transform 520ms cubic-bezier(.2,.9,.2,1);
}

.rack-desc{
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.rack-card.is-front .rack-desc{
  max-width: 62ch;
}

.rack-card.is-front{
  opacity: 1;
  filter: none;
  z-index: 6;
}
.rack-card.is-front .rack-bubble{ transform: scale(1); }

.rack-card.is-left1,
.rack-card.is-right1{
  opacity: 0.55;
  filter: saturate(0.95) brightness(0.9);
  z-index: 4;
}
.rack-card.is-left1 .rack-bubble,
.rack-card.is-right1 .rack-bubble{ transform: scale(0.90); }

.rack-card.is-left2,
.rack-card.is-right2{
  opacity: 0.24;
  filter: blur(0.8px) saturate(0.9) brightness(0.85);
  z-index: 2;
}
.rack-card.is-left2 .rack-bubble,
.rack-card.is-right2 .rack-bubble{ transform: scale(0.82); }

.rack-card.is-back{
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
}

.rack-card.is-left1,
.rack-card.is-right1,
.rack-card.is-left2,
.rack-card.is-right2{ cursor: pointer; }

.rack-hero{ width: 56%; }

.rack-links{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 980px){
  .rack-viewport{ height: 540px; }
  .rack-card{ width: min(520px, 82vw); }
}

@media (max-width: 640px){
  .rack-viewport{
    --rack-radius: 440px;
    height: 520px;
  }
  .rack-viewport::before,
  .rack-viewport::after{ width: 70px; }
}

.item-bubble{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(144,212,255,0.7);
  background:
    radial-gradient(circle at top left, rgba(52,245,255,0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(255,79,191,0.18), transparent 60%),
    rgba(5,13,35,0.96);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.9),
    inset 0 0 0 1px rgba(3,12,36,0.9);
}

.item-title,
#itemTitle{
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: #aee0ff;
  text-shadow: 0 0 4px #000;
}

.item-desc,
#itemDesc{
  font-size: 12px;
  line-height: 1.3;
  max-width: 100%;
  color: #cbe6ff;
  margin-bottom: 6px;
}

.item-hero{
  width: 50%;
  aspect-ratio: 4/3;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
  margin: 0.4rem auto 0.4rem auto;
}

.item-out-link{
  display:inline-block;
  margin-top: 2px;
  font-size: 10px;
  text-decoration:none;
  color:#5ddfff;
}
.item-out-link:hover{
  text-decoration:underline;
  color:#ff4fbf;
}

.item-detail-link{
  display:inline-block;
  margin-top: 2px;
  margin-left: auto;
  text-align: right;
  font-size: 10px;
  text-decoration:none;
  color:#ffe66d;
}
.item-detail-link:hover{
  text-decoration:underline;
  color:#ff4fbf;
}

.item-footer-nav{
  position:absolute;
  left:50%;
  bottom:26px;
  transform:translateX(-50%);
  display:flex;
  gap:24px;
  align-items:flex-start;
  z-index:40;
}

.item-footer-group{
  text-align:center;
  font-family:var(--mono);
}

.item-footer-btn{
  padding:2px 10px;
  height:18px;
  font-size:10px;
  border-radius:6px;
  border:1px solid rgba(155,220,255,0.7);
  background:rgba(15,40,70,0.8);
  color:#9bdcff;
  cursor:pointer;
}
.item-footer-btn:hover{
  background:rgba(80,160,255,0.3);
}

.item-footer-label{
  margin-top:2px;
  font-size:9px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#9bdcff;
  opacity:0.8;
}

#tab-about p,
.about-inner p {
  font-size: 12px;
  line-height: 1.35;
  max-width: 32rem;
  opacity: 0.85;
}

.sidebar-linkback{
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid rgba(120,190,255,0.25);
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  min-height:0;
}

.sidebar-linkback-text{
  margin:0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--turbo-cyan);
  text-shadow: 0 0 6px rgba(3,237,249,0.7);
  text-align: center;
  line-height: 1.2;
  width: 100%;
}

.sidebar-linkback img{
  display:block;
  margin: 2px auto 0;
  width:88px;
  height:31px;
  image-rendering: pixelated;
}

.button-snippet{
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding: 6px;
  background: #050814;
  color: #cfd6ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.35;
  border-radius: 6px;
  border: 1px solid rgba(144,212,255,0.4);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: all .15s ease;
}

.button-snippet:hover{
  border-color: var(--turbo-cyan);
  box-shadow: 0 0 10px rgba(52,245,255,0.6);
}

.right-sidebar {
  width: 260px;
  flex: 0 0 260px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg,#050d23 0%,#050814 60%,#02030a 100%);
  border-left: 1px solid rgba(144,212,255,0.35);
  box-shadow: inset 1px 0 0 rgba(0,0,0,0.8);
  height: 100%;
  overflow: hidden;
}

.guestbook-panel{
  background: var(--panel2);
  border-radius: 14px;
  border: 1px solid rgba(52,245,255,0.4);
  padding: 10px 10px 12px;
  box-shadow: 0 0 22px rgba(52,245,255,0.35);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.guestbook-title{
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--turbo-cyan);
  text-shadow: 0 0 6px rgba(3,237,249,0.7);
  text-align: center;
}

.guestbook-panel iframe{
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  border: none;
  border-radius: 10px;
  background: var(--panel);
}

.webrings-panel{
  background: var(--panel2);
  border-radius: 14px;
  border: 1px solid rgba(52,245,255,0.4);
  padding: 10px 10px 12px;
  box-shadow: 0 0 22px rgba(52,245,255,0.35);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.webrings-panel .webring-title{
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--turbo-cyan);
  text-shadow: 0 0 6px rgba(3,237,249,0.7);
  text-align: center;
}

.webrings-inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: var(--panel);
  border-radius: 10px;
  padding: 18px 10px;
  width: 100%;
  min-height: 100px;
}

.webring-widget{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding:6px 10px;
  border-radius:10px;
  box-shadow:none;
}

.webring-map-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.webring-map-wrap img{
  display: block;
  margin: 0 auto;
}

.null-ring{
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}

.null-ring > *{
  margin-left: auto !important;
  margin-right: auto !important;
}

.null-ring > a{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
}

.null-ring > a:first-of-type{
  margin-right: -6px !important;
}

.null-ring > a:last-of-type{
  margin-left: -6px !important;
}

.null-ring img,
.null-ring iframe,
.null-ring table,
.null-ring div{
  max-width: 100%;
  display: block !important;
  margin: 0 !important;
}

.webmaster-ring{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:auto;
  padding:10px 0;
}

.webmaster-ring a{
  text-decoration:none;
  font-size:22px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  height:31px;
  color: var(--turbo-cyan-soft);
}

.webmaster-ring a:hover{
  text-decoration: none;
  color: var(--turbo-pink);
}

.button-wall{
  display:grid;
  grid-template-columns: repeat(7, 88px);
  grid-auto-rows: 31px;
  gap:10px;
  width:max-content;
  max-width:100%;
  margin:12px auto 8px;
}

.button-slot{
  position:relative;
  width:88px;
  height:31px;
  border-radius:6px;
  background:rgba(5,13,35,0.9);
  box-shadow:0 0 0 1px rgba(0,0,0,0.7);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:box-shadow 0.15s ease, background 0.15s ease;
}

.button-slot::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:78px;
  height:23px;
  transform:translate(-50%,-50%);
  border:1px dashed rgba(144,212,255,0.7);
  border-radius:4px;
  pointer-events:none;
}

.button-slot::after{
  content:attr(data-slot);
  position:absolute;
  bottom:2px;
  right:5px;
  font-family:var(--mono);
  font-size:9px;
  opacity:0.7;
  color:var(--turbo-cyan-soft);
}

.button-slot.is-filled::before,
.button-slot.is-filled::after{
  display:none;
}

.button-slot:hover{
  background:rgba(10,20,45,1);
  box-shadow:0 0 14px rgba(255,79,191,0.75);
}

.button-slot.is-selected{
  box-shadow:0 0 16px rgba(255,230,109,0.85);
}

.button-slot img{
  display:block;
  max-width:100%;
  max-height:100%;
}

.button-slot-helper{
  max-width:520px;
  margin:12px auto 0;
  font-size:11px;
}

.button-slot-helper p{
  margin:0 0 4px;
}

.slot-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px 10px;
  align-items:end;
  margin-top:4px;
}

.slot-field{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.slot-field label{
  font-family:var(--mono);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:rgba(200,220,255,0.8);
}

.slot-field input{
  font-family:var(--mono);
  font-size:10px;
  padding:5px 7px;
  border-radius:8px;
  border:1px solid rgba(144,212,255,0.6);
  background:radial-gradient(circle at top, #050814 0, #02030a 70%);
  color:#e4ebff;
  box-shadow:0 0 0 1px rgba(0,0,0,0.9);
  outline:none;
}

.slot-field input::placeholder{
  color:rgba(180,200,240,0.55);
}

.slot-field input:focus{
  border-color:var(--turbo-cyan);
  box-shadow:0 0 8px rgba(52,245,255,0.7);
}

#copySlotMessage{
  grid-column:1 / -1;
  margin-top:2px;
  padding:5px 12px;
  font-family:var(--mono);
  font-size:10px;
  border-radius:8px;
  border:1px solid rgba(144,212,255,0.8);
  background:linear-gradient(135deg, #0b1736, #162a5a);
  color:#e5f3ff;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(0,0,0,0.9);
}

#copySlotMessage:hover{
  border-color:var(--turbo-cyan);
  box-shadow:0 0 10px rgba(52,245,255,0.7);
}

#slotMessage{
  position:absolute;
  opacity:0;
  pointer-events:none;
  height:0;
  width:0;
  padding:0;
  border:0;
}

#slotMessage.is-fallback-visible{
  position:static;
  opacity:1;
  pointer-events:auto;
  height:4rem;
  width:100%;
  margin-top:8px;
  padding:6px;
  border:1px solid rgba(144,212,255,0.4);
  border-radius:8px;
  background:#050814;
  color:#cfd6ff;
  font-family:var(--mono);
  font-size:10px;
}

.dancefloor-panel{
  background: linear-gradient(180deg, rgba(8,16,38,0.98) 0%, rgba(3,7,18,0.98) 100%);
  border: 1px solid rgba(52,245,255,0.45);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 0 18px rgba(52,245,255,0.18), inset 0 0 18px rgba(125,77,255,0.10);
}

.dancefloor-head{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dancefloor-controls{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  flex-wrap:wrap;
}

.dancefloor-btn{
  width:28px;
  min-width:28px;
  height:28px;
  min-height:28px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  border-radius: 6px;
  border: 1px solid rgba(52,245,255,0.45);
  background: linear-gradient(180deg,#0b1733 0%,#050d23 40%,#020712 100%);
  color: #e5f3ff;
  font-family: var(--mono);
  font-size: 11px;
  cursor:pointer;
}
.dancefloor-btn:hover{ border-color: var(--turbo-pink); }

.dancefloor-count{
  min-width:22px;
  text-align:center;
  font-size:11px;
  min-height: 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 6px;
  border: 1px solid rgba(52,245,255,0.45);
  background: linear-gradient(180deg,#0b1733 0%,#050d23 40%,#020712 100%);
  color: #e5f3ff;
  font-family: var(--mono);
}

.dancefloor-label{
  font-size:11px;
  opacity:0.9;
  margin-left:4px;
  white-space:nowrap;
  line-height:1;
}

.dancefloor-radio-btn{
  width:100%;
  min-height:40px;
  height:40px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  line-height:1;
  white-space:normal;
  text-align:center;
  box-sizing:border-box;
}

#radioToggle.dancefloor-radio-btn{
  min-height:40px !important;
  height:40px !important;
  padding:0 12px !important;
  line-height:1 !important;
}

.dancefloor-stage{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio: 2 / 1;
  padding:0;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(255,79,191,0.45);
  background:
    radial-gradient(circle at 50% 16%, rgba(125,77,255,0.30), transparent 48%),
    radial-gradient(circle at 20% 0%, rgba(52,245,255,0.22), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255,79,191,0.24), transparent 42%),
    linear-gradient(180deg, #090912 0%, #010103 100%);
  box-shadow: inset 0 -12px 30px rgba(0,0,0,0.65), 0 0 24px rgba(255,79,191,0.12);
  isolation:isolate;
}

.dancefloor-stage::before,
.dancefloor-stage::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:22%;
  pointer-events:none;
  opacity:0.9;
  z-index:1;
}

.dancefloor-stage::before{
  left:-4%;
  background: radial-gradient(circle at 50% 0%, rgba(52,245,255,0.55), transparent 55%);
  filter: blur(10px);
}

.dancefloor-stage::after{
  right:-4%;
  background: radial-gradient(circle at 50% 0%, rgba(255,79,191,0.58), transparent 55%);
  filter: blur(10px);
}

.dancefloor-lights{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  overflow:hidden;
}

.dancebeam, .danceglow{
  position:absolute;
  pointer-events:none;
  mix-blend-mode:screen;
}

.dancebeam{
  top:-14%;
  left:50%;
  width:42%;
  height:88%;
  opacity:0.24;
  filter: blur(4px);
  transform-origin: 50% 0%;
  animation: dance-beam-sweep 9s ease-in-out infinite;
}

.dancebeam-a{
  margin-left:-38%;
  background: linear-gradient(180deg, rgba(52,245,255,0.85) 0%, rgba(52,245,255,0.16) 38%, rgba(52,245,255,0) 82%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: rotate(-28deg);
}

.dancebeam-b{
  margin-left:-2%;
  width:34%;
  height:82%;
  background: linear-gradient(180deg, rgba(255,79,191,0.85) 0%, rgba(255,79,191,0.16) 38%, rgba(255,79,191,0) 84%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: rotate(8deg);
  animation-delay:-2.4s;
}

.dancebeam-c{
  margin-left:10%;
  width:46%;
  height:96%;
  background: linear-gradient(180deg, rgba(125,77,255,0.8) 0%, rgba(125,77,255,0.18) 34%, rgba(125,77,255,0) 84%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: rotate(28deg);
  animation-delay:-5.2s;
}

.danceglow-a{
  left:-8%;
  bottom:-18%;
  width:56%;
  height:54%;
  background: radial-gradient(circle at 50% 50%, rgba(52,245,255,0.28), rgba(52,245,255,0) 68%);
  filter: blur(16px);
  opacity:0.65;
}

.danceglow-b{
  right:-10%;
  bottom:-20%;
  width:60%;
  height:58%;
  background: radial-gradient(circle at 50% 50%, rgba(255,79,191,0.30), rgba(255,79,191,0) 70%);
  filter: blur(16px);
  opacity:0.62;
}

.dancefloor-stage iframe{
  position:relative;
  z-index:3;
  display:block;
  width:100%;
  height:100%;
  border:0;
  transform: translateY(19%) scale(1.42);
  transform-origin: center center;
  filter: saturate(1.18) contrast(1.08);
}

.dancefloor-word{
  position:absolute;
  left:50%;
  top:54%;
  transform:translate(-50%,-50%) scale(0.95);
  z-index:4;
  pointer-events:none;
  user-select:none;
  font-family:var(--mono);
  font-size:18px;
  font-weight:700;
  letter-spacing:0.18em;
  text-transform:uppercase;
  white-space:nowrap;
  opacity:0;
  color:rgba(210,245,255,0);
  text-shadow:
    0 0 6px rgba(52,245,255,0),
    0 0 14px rgba(52,245,255,0),
    0 0 26px rgba(255,79,191,0);
  transition:
    opacity 0.35s ease,
    color 0.35s ease,
    text-shadow 0.35s ease,
    transform 0.35s ease;
}

.dancefloor-word.show{
  opacity:1;
  color:rgba(210,245,255,0.95);
  transform:translate(-50%,-50%) scale(1);
  text-shadow:
    0 0 6px rgba(52,245,255,0.95),
    0 0 14px rgba(52,245,255,0.75),
    0 0 26px rgba(255,79,191,0.45);
}

.radio-bar.is-on + .dancefloor-panel .danceglow-a,
.radio-bar.is-on + .dancefloor-panel .danceglow-b{ opacity:0.9; }

@keyframes dance-beam-sweep{
  0%{ transform: rotate(-30deg) scaleY(0.96); }
  25%{ transform: rotate(-12deg) scaleY(1.04); }
  50%{ transform: rotate(8deg) scaleY(1.08); }
  75%{ transform: rotate(26deg) scaleY(0.98); }
  100%{ transform: rotate(-30deg) scaleY(0.96); }
}

body.game-no-scroll{
  overflow: hidden;
}

.statuslog-head{
  margin-bottom: 12px;
}

.statuslog-head .muted{
  margin: 4px 0 0;
}

.statuslog-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.statuslog-item{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(144,212,255,0.55);
  background:
    radial-gradient(circle at top left, rgba(52,245,255,0.10), transparent 60%),
    radial-gradient(circle at bottom right, rgba(255,79,191,0.12), transparent 60%),
    rgba(5,13,35,0.96);
  box-shadow:
    0 8px 22px rgba(0,0,0,0.75),
    inset 0 0 0 1px rgba(3,12,36,0.75);
}

.statuslog-date{
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turbo-yellow);
  opacity: 0.95;
  text-shadow:
    0 0 2px #3d3300,
    0 0 8px rgba(255,230,109,0.22);
}

.statuslog-text{
  font-size: 12px;
  line-height: 1.45;
  color: #d7eaff;
  white-space: normal;
  overflow-wrap: anywhere;
}

.statuslog-empty{
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(144,212,255,0.45);
  background: rgba(5,13,35,0.9);
  color: #cbe6ff;
  font-size: 12px;
}

@media (max-width: 900px), (pointer: coarse) {
  body,
  button,
  a,
  input,
  textarea,
  select,
  label,
  [role="button"]{
    touch-action: manipulation;
  }
}

@media (max-width: 900px) {
  html {
    font-size: 200%;
  }

  #appWindow {
    width: 100%;
    max-width: 100vw;
    left: 0 !important;
    top: 0;
    border-radius: 0;
    height: auto;
    max-height: none;
  }

  .main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex: 0 0 auto;
    padding: 10px 8px;
  }

  .content {
    order: 2;
    padding: 14px 14px 18px;
  }

  .right-sidebar {
    width: 100%;
    flex: 0 0 auto;
    padding: 10px 8px 14px;
    border-left: none;
    border-top: 1px solid rgba(144,212,255,0.35);
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.8);
    height: auto;
    overflow: visible;
  }

  .guestbook-panel {
    height: 320px;
  }

  .guestbook-panel iframe {
    height: 100%;
  }

  .window-duck,
  .window-dance,
  .window-statuslog,
  .window-links,
  .window-about,
  .window-chat,
  .window-more,
  .window-badge,
  .window-onion{
    width:calc(var(--vvw, 1vw) * 100);
    height:calc(var(--vvh, 1vh) * 100);
    flex-direction:column;
    max-width:calc(var(--vvw, 1vw) * 100);
    max-height:calc(var(--vvh, 1vh) * 100);
    left:var(--vv-left, 0px) !important;
    top:var(--vv-top, 0px) !important;
    right:auto !important;
    bottom:auto !important;
    border-radius:0;
  }

  .chat-main,
  .badge-main,
  .duck-main,
  .more-main,
  .links-main,
  .about-main,
  .statuslog-main{
    height:calc(100% - 44px);
    min-height:0;
  }

  .dance-main{
    flex: 1 1 0;
    height: 0;
    min-height: 0;
  }

  .window-dance .dance-toolbar{
    flex-shrink: 0;
  }

  .chat-main iframe,
  .badge-main iframe,
  .duck-main iframe,
  .more-main iframe{
    min-height:100%;
  }

  .dance-main iframe{
    min-height:0;
    height:100%;
  }

  .window-chat{
    height:calc((var(--vvh, 1vh) * 100) - env(safe-area-inset-bottom, 0px));
    max-height:calc((var(--vvh, 1vh) * 100) - env(safe-area-inset-bottom, 0px));
  }

  .sad-overlay{
    position: fixed;
    top: var(--vv-top, 0px);
    left: var(--vv-left, 0px);
    width: calc(var(--vvw, 1vw) * 100);
    height: calc(var(--vvh, 1vh) * 100);
    border-radius: 0;
  }

  .sad-overlay img{
    max-width: min(420px, 82vw);
    max-height: min(420px, 58vh);
  }

  .status-strip{
    flex-direction:column;
    align-items:stretch;
  }

  .status-history-btn{
    width:100%;
    min-height:36px;
  }

  #appWindow .titlebar{
    padding-right: 8px;
    padding-left: 10px;
  }

  #appWindow .titlebar-right{
    align-self: center;
  }

  .dancefloor-stage{
    aspect-ratio: 2 / 1;
  }

  .slot-form{
    grid-template-columns: 1fr;
  }

  .button-wall{
    transform-origin: top center;
    transform: scale(0.92);
    margin-left: auto;
    margin-right: auto;
  }
}

.about-inner{
  position: relative;
}

.about-ok{
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: auto;
  display: block;
  image-rendering: auto;
  pointer-events: none;
}

.window-counterbar{
  flex:0 0 auto;
  padding:10px 12px 12px;
  background:
    linear-gradient(180deg, rgba(2,5,16,0.12) 0%, rgba(2,5,16,0.55) 100%);
  border-top:1px solid rgba(144,212,255,0.22);
}

.window-counterbar-inner{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:9px 14px;
  border-radius:10px;
  border:1px solid rgba(144,212,255,0.34);
  background:
    radial-gradient(circle at top left, rgba(52,245,255,0.14), transparent 52%),
    radial-gradient(circle at bottom right, rgba(255,79,191,0.14), transparent 56%),
    linear-gradient(180deg,#06102a 0%, #040918 100%);
  box-shadow:
    inset 0 -1px 0 rgba(0,0,0,0.72),
    0 0 14px rgba(52,245,255,0.10);
}

.window-counterbar-titlewrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:0 0 auto;
}

.window-counterbar-kicker{
  font-family:var(--mono);
  font-size:9px;
  line-height:1;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--turbo-cyan-soft);
  opacity:0.78;
  white-space:nowrap;
}

.window-counterbar-title{
  font-family:var(--mono);
  font-size:10px;
  line-height:1;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--turbo-yellow);
  white-space:nowrap;
  text-shadow:
    0 0 2px #3d3300,
    0 0 8px rgba(255,230,109,0.18);
}

.window-counterbar-metrics{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-left:0;
  flex:0 0 auto;
}

.window-counterbar-metric{
  display:flex;
  align-items:baseline;
  gap:8px;
}

.window-counterbar-caption{
  font-family:var(--mono);
  font-size:8px;
  line-height:1;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#9bdcff;
  opacity:0.82;
  white-space:nowrap;
}

.window-counterbar-digits{
  font-family:var(--mono);
  font-size:14px;
  line-height:1;
  font-weight:700;
  letter-spacing:0.10em;
  color:#e5f3ff;
  white-space:nowrap;
  text-shadow:
    0 0 2px #001716,
    0 0 7px rgba(52,245,255,0.22);
}

.window-counterbar-digits--small{
  font-size:13px;
}

.window-counterbar-sep{
  width:1px;
  height:18px;
  background:linear-gradient(
    to bottom,
    rgba(52,245,255,0) 0%,
    rgba(52,245,255,0.35) 20%,
    rgba(255,79,191,0.35) 80%,
    rgba(255,79,191,0) 100%
  );
}

.window-counterbar-note{
  display:none;
  margin:0 0 0 10px;
  font-family:var(--mono);
  font-size:8px;
  line-height:1;
  color:#cbe6ff;
  opacity:0.62;
  white-space:nowrap;
}

.window-counterbar-note:not(:empty){
  display:block;
}

@media (max-width: 900px){
  .window-counterbar{
    padding:8px;
  }

  .window-counterbar-inner{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 12px;
  }

  .window-counterbar-titlewrap{
    justify-content:center;
    flex-wrap:wrap;
  }

  .window-counterbar-metrics{
    margin-left:0;
    flex-wrap:wrap;
  }
}

#appWindow.is-1080p-scaled {
  top: 0px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

@media (min-width: 901px) and (max-height: 780px) {
  html,
  body {
    overflow: hidden;
  }

  #appWindow {
    position: fixed !important;
    left: 50% !important;
    top: 8px !important;
    transform: translateX(-50%) !important;
    width: min(1200px, calc(100vw - 16px)) !important;
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }

  .window-fade-shell {
    height: 100%;
    min-height: 0;
  }

  .main {
    min-height: 0;
  }

  .status-strip {
    padding: 7px 12px;
  }

  .status-strip-text {
    font-size: 10px;
    line-height: 1.25;
  }

  .sidebar {
    padding: 10px 8px;
    gap: 8px;
  }

  .navbtn {
    padding: 6px 8px;
  }

  .content {
    padding: 12px 16px 14px;
  }

  .right-sidebar {
    width: 232px;
    flex: 0 0 232px;
    padding: 10px 8px;
    gap: 8px;
  }

  .guestbook-panel,
  .webrings-panel {
    padding: 8px;
  }

  .guestbook-title,
  .webrings-panel .webring-title {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .webrings-inner {
    padding: 10px 8px;
    gap: 8px;
  }

  .rack-wrapper {
    margin-top: 0;
  }

  .rack-viewport {
    height: 430px;
  }

  .rack-card {
    width: 440px;
  }

  .rack-hero {
    width: 30%;
  }

  .rack-desc,
  .rack-card.is-front .rack-desc {
    max-width: 46ch;
  }

  .item-bubble {
    padding: 6px 8px;
  }

  .item-title,
  #itemTitle {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .item-desc,
  #itemDesc {
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 3px;
  }

  .item-hero {
    width: 28%;
    margin: 0.1rem auto 0.15rem auto;
  }

  .item-out-link,
  .item-detail-link {
    margin-top: 0;
    font-size: 9px;
  }

  .item-footer-nav {
    bottom: 10px;
    gap: 14px;
  }

  .item-footer-btn {
    height: 15px;
    padding: 0 7px;
    font-size: 8px;
  }

  .item-footer-label {
    font-size: 7px;
    margin-top: 1px;
  }

  .window-counterbar {
    padding: 6px 8px 8px;
  }

  .window-counterbar-inner {
    min-height: 34px;
    padding: 6px 10px;
    gap: 14px;
  }

  .window-counterbar-kicker {
    font-size: 8px;
  }

  .window-counterbar-title {
    font-size: 9px;
  }

  .window-counterbar-caption {
    font-size: 7px;
  }

  .window-counterbar-digits {
    font-size: 12px;
  }

  .window-counterbar-digits--small {
    font-size: 11px;
  }

  .window-counterbar-sep {
    height: 14px;
  }
}
