.desktop-story,
.desktop-error-story {
  overflow: hidden;
  background: #07141d;
  isolation: isolate;
}

.desktop-wallpaper {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 72% 24%, rgba(30, 220, 183, .34), transparent 26%),
    radial-gradient(circle at 17% 82%, rgba(45, 116, 190, .3), transparent 31%),
    linear-gradient(145deg, #0d2934, #041017 62%, #092431);
  animation: desktop-wallpaper-drift 3.4s ease-out both;
}

.desktop-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 32px, rgba(255,255,255,.025) 33px 34px);
}

.desktop-icon-stack {
  position: absolute;
  z-index: -1;
  top: 11%;
  left: 3%;
  display: grid;
  gap: 12px;
}

.desktop-icon-stack i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px;
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 0 4px rgba(0,0,0,.1);
}

.story-browser {
  position: absolute;
  z-index: 2;
  inset: 7% 5% 10%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 13px;
  background: #f3f7f6;
  box-shadow: 0 24px 65px rgba(0,0,0,.58), 0 0 0 1px rgba(54,233,202,.36);
  animation: desktop-browser-open 3.4s cubic-bezier(.18,.86,.2,1) both;
}

.story-browser-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid #c6d4d2;
  background: #e7eeee;
  color: #526267;
  font: 700 8px/1 ui-monospace, monospace;
}

.story-browser-bar > i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff5e6c;
}

.story-browser-bar > i:nth-child(2) { background: #f7bf4d; }
.story-browser-bar > i:nth-child(3) { background: #3ad49c; }

.story-browser-bar > span {
  min-width: 0;
  flex: 1;
  margin-left: 3px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid #cbd6d5;
  border-radius: 6px;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-browser-bar > b {
  color: #168d78;
  white-space: nowrap;
  letter-spacing: .05em;
}

.green-site {
  height: calc(100% - 38px);
  overflow: hidden;
  background: linear-gradient(145deg, #f4fbf8, #d9ece6);
  color: #102a2c;
}

.green-site nav {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 5%;
  background: #087e68;
  color: #fff;
}

.green-site nav > strong {
  font: 1000 10px/1 sans-serif;
  letter-spacing: -.03em;
}

.green-site nav > strong span { color: #9ff4d8; }

.green-site nav > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.green-site nav em,
.green-site nav button {
  padding: 7px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #dcfff4;
  font: 800 8px/1 sans-serif;
  font-style: normal;
}

.green-site nav button {
  position: relative;
  background: #fff;
  color: #08715f;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18);
  animation: store-link-ready 3.4s ease both;
}

.green-site > section { padding: 15px 6%; }
.green-site > section > small { color: #148a73; font: 900 7px/1 monospace; letter-spacing: .13em; }
.green-site h3 { margin: 6px 0 11px; font-size: 18px; line-height: 1; }

.site-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.site-stats article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #cce3db;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 6px 16px rgba(4,76,63,.08);
}

.site-stats b,
.site-stats span { display: block; }
.site-stats b { margin-bottom: 4px; color: #087e68; font-size: 17px; }
.site-stats span { overflow: hidden; color: #607773; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }

.site-chart {
  height: 56px;
  display: flex;
  align-items: end;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.7);
}

.site-chart i { width: 14%; border-radius: 3px 3px 0 0; background: linear-gradient(#43d3a9, #087e68); }
.site-chart i:nth-child(1) { height: 34%; }
.site-chart i:nth-child(2) { height: 62%; }
.site-chart i:nth-child(3) { height: 45%; }
.site-chart i:nth-child(4) { height: 83%; }
.site-chart i:nth-child(5) { height: 70%; }

.store-cursor {
  position: absolute;
  z-index: 8;
  top: 15.5%;
  right: 10%;
  width: 25px;
  height: 31px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M2.5 1.5v22.8l6.2-5.7 4.3 9.7 4.1-1.9-4.3-9.4h8.7z' fill='%23fff' stroke='%23071118' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,.7));
  animation: store-cursor-travel 3.4s cubic-bezier(.22,.8,.2,1) both;
}

.store-cursor::before {
  content: none;
}

.store-cursor i {
  display: none;
}

.store-click-ring {
  position: absolute;
  z-index: 7;
  top: 17.5%;
  right: 11%;
  width: 10px;
  height: 10px;
  border: 2px solid #ff5364;
  border-radius: 50%;
  opacity: 0;
  animation: store-click 3.4s ease-out both;
}

.desktop-dock {
  position: absolute;
  z-index: 3;
  bottom: 2%;
  left: 50%;
  display: flex;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px;
  background: rgba(2,12,18,.55);
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
}

.desktop-dock i { width: 11px; height: 11px; border-radius: 3px; background: #50e3c2; }
.desktop-dock i:nth-child(2) { background: #f3bd56; }
.desktop-dock i:nth-child(3) { background: #e75b74; }
.desktop-dock i:nth-child(4) { background: #77a9e9; }

.desktop-error-story .story-browser { animation-duration: 4.2s; }
.error-browser .story-browser-bar > b { color: #fff; }
.route-error { padding: 6px 8px; border-radius: 5px; background: #c9283d; }
.error-browser .page-loading,
.error-browser .full-error-page { top: 38px; }
.error-browser .full-error-page { height: calc(100% - 38px); }
.error-browser .full-error-page main { padding-top: 14px; }

.store-realization {
  position: absolute;
  z-index: 10;
  bottom: 4%;
  left: 4%;
  width: min(60%, 330px);
  padding: 9px 11px 10px;
  border: 2px solid #d52d44;
  border-radius: 10px;
  background: #fff2e8;
  color: #29070d;
  box-shadow: 0 14px 34px rgba(72,0,12,.3);
  opacity: 0;
  animation: store-realization-in 4.2s 1.1s both;
}

.store-realization small,
.store-realization strong { display: block; }
.store-realization small { margin-bottom: 4px; color: #a11d32; font: 900 6px/1.2 monospace; }
.store-realization strong { font-size: 11px; line-height: 1.14; }

@keyframes desktop-wallpaper-drift {
  from { transform: scale(1.04); filter: saturate(.82); }
  to { transform: scale(1.1) translateX(-1%); filter: saturate(1.1); }
}

@keyframes desktop-browser-open {
  0% { opacity: 0; transform: translateY(24px) scale(.9); filter: blur(4px); }
  20%, 100% { opacity: 1; transform: none; filter: none; }
}

@keyframes store-link-ready {
  0%, 50% { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
  72%, 100% { box-shadow: 0 0 0 2px #ffcf69, 0 0 18px rgba(255,207,105,.7); }
}

@keyframes store-cursor-travel {
  0%, 24% { opacity: 0; transform: translate(-150px, 120px); }
  34% { opacity: 1; }
  72%, 100% { opacity: 1; transform: none; }
}

@keyframes store-click {
  0%, 70% { opacity: 0; transform: scale(.25); }
  76% { opacity: 1; }
  100% { opacity: 0; transform: scale(5); }
}

@keyframes store-realization-in {
  0%, 26% { opacity: 0; transform: translateY(12px) scale(.95); }
  42%, 100% { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .story-browser { inset: 6% 3% 9%; border-radius: 10px; }
  .story-browser-bar { height: 32px; padding: 0 7px; }
  .story-browser-bar > i { width: 5px; height: 5px; }
  .story-browser-bar > span { padding: 6px 7px; }
  .green-site { height: calc(100% - 32px); }
  .green-site nav { height: 39px; padding: 0 4%; }
  .green-site nav > strong { font-size: 8px; }
  .green-site nav em { display: none; }
  .green-site nav button { padding: 7px 11px; }
  .green-site > section { padding: 12px 5%; }
  .green-site h3 { font-size: 15px; }
  .site-stats article { padding: 8px; }
  .site-chart { height: 48px; }
  .store-cursor { top: 22%; right: 15%; transform: scale(.85); }
  .store-click-ring { top: 20%; right: 13%; }
  .error-browser .page-loading,
  .error-browser .full-error-page { top: 32px; }
  .error-browser .full-error-page { height: calc(100% - 32px); }
  .store-realization { bottom: 3%; left: 3%; width: 62%; padding: 7px 8px; }
  .store-realization strong { font-size: 9px; }
}
