:root {
  --lime: #b6ff3b;
  --leaf: #7cff4a;
  --eco: #22c55e;
  --deep: #0b7a32;
  --glass: rgba(190, 255, 160, 0.42);
  --wood-dark: #5a3a1a;
  --wood: #c48a48;
  --wood-mid: #a66a2e;
  --wood-light: #e2b56a;
  --danger: #e11d2e;
  --ui-font: "Microsoft Sans Serif", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #04140c;
  color: #063318;
  font-family: var(--ui-font);
  overflow: hidden;
}

body.booting {
  cursor: progress;
}

button,
a,
.bubble {
  font-family: inherit;
}

.office-titlebar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 8px;
  background:
    linear-gradient(180deg, rgba(180, 255, 210, 0.18), rgba(8, 40, 22, 0.55)),
    rgba(6, 28, 16, 0.72);
  border-bottom: 1px solid rgba(180, 255, 120, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 24px rgba(80, 255, 140, 0.18);
  color: #d9ffc4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  user-select: none;
  backdrop-filter: blur(16px) saturate(1.4);
  transition: opacity 0.55s ease;
}

body.booting .office-titlebar,
body.booting .office-statusbar {
  opacity: 0;
  pointer-events: none;
}

.office-titlebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b6ff3b 20%, #7dffd2 50%, #b6ff3b 80%, transparent);
  box-shadow: 0 0 12px #7cff4a;
}

.file-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b6ff3b;
  box-shadow: 0 0 8px #7cff4a;
  animation: hud-pulse 1.6s ease-in-out infinite;
}

@keyframes hud-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.office-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 -2px 0 rgba(0, 60, 0, 0.25), 0 0 10px rgba(140, 255, 60, 0.8);
}

.office-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.msftx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(220, 255, 180, 0.35), rgba(20, 80, 40, 0.55));
  color: #eaffd4;
  border: 1px solid rgba(180, 255, 120, 0.55);
  border-radius: 999px;
  padding: 3px 12px 3px 4px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(120, 255, 80, 0.28);
  backdrop-filter: blur(8px);
}

.msftx-chip span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d9ff7a, #16a34a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.office-statusbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background:
    linear-gradient(180deg, rgba(40, 90, 50, 0.35), rgba(4, 20, 12, 0.82));
  color: #d9ffc4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(140, 255, 80, 0.45);
  user-select: none;
  border-top: 1px solid rgba(180, 255, 120, 0.35);
  box-shadow: 0 -8px 24px rgba(80, 255, 140, 0.12);
  transition: opacity 0.55s ease;
}

.office-statusbar .pair {
  margin-left: auto;
  letter-spacing: 0.02em;
}

.eco {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    url("../assets/field.png") center / cover no-repeat,
    linear-gradient(180deg, #4db7ff 0%, #7dff6a 55%, #1f9a32 100%);
  transition: filter 0.7s ease, transform 0.7s ease;
}

body.booting .eco {
  filter: blur(14px) saturate(1.35) brightness(1.12);
  transform: scale(1.05);
}

.eco::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 230, 0.35), transparent 22%),
    linear-gradient(180deg, rgba(80, 180, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.sunburst {
  position: absolute;
  left: 12%;
  top: -6%;
  width: 380px;
  height: 52%;
  transform: none;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.85), rgba(255, 240, 160, 0.2) 34%, transparent 68%);
  clip-path: none;
  filter: blur(0.4px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.45) 0 18px, transparent 19px),
    radial-gradient(circle at 80% 22%, rgba(210, 255, 90, 0.4) 0 28px, transparent 29px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.28) 0 14px, transparent 15px),
    radial-gradient(circle at 22% 78%, rgba(160, 255, 80, 0.35) 0 22px, transparent 23px),
    radial-gradient(circle at 90% 60%, rgba(255, 255, 180, 0.3) 0 16px, transparent 17px);
}

.brand {
  position: absolute;
  left: 50%;
  top: 48px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

.win-flag {
  width: 118px;
  height: 74px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.logo-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-ms {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.logo-ms sup {
  font-size: 0.45em;
  top: -0.6em;
}

.logo {
  margin: 0;
  line-height: 0.82;
  font-family: Arial Black, "Arial Bold", Impact, sans-serif;
  font-size: clamp(42px, 8.6vw, 104px);
  font-weight: 900;
  letter-spacing: 0.02em;
  word-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 28px rgba(180, 255, 80, 0.35);
}

.win95-window {
  position: absolute;
  right: 3%;
  bottom: 52px;
  z-index: 12;
  width: 280px;
  background: #c0c0c0;
  color: #000;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: 2px 2px 0 #000;
  font-family: "Microsoft Sans Serif", Tahoma, sans-serif;
  transform-style: preserve-3d;
  will-change: transform;
}

.win95-title {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 3px 0 4px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.win95-ico {
  width: 14px;
  height: 12px;
  background:
    linear-gradient(#f25022, #f25022) 0 0 / 6px 5px no-repeat,
    linear-gradient(#7fba00, #7fba00) 8px 0 / 6px 5px no-repeat,
    linear-gradient(#00a4ef, #00a4ef) 0 7px / 6px 5px no-repeat,
    linear-gradient(#ffb900, #ffb900) 8px 7px / 6px 5px no-repeat;
}

.win95-controls {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.win95-controls i {
  width: 14px;
  height: 12px;
  display: grid;
  place-items: center;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
  color: #000;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.win95-body {
  display: flex;
  gap: 10px;
  padding: 12px 10px 10px;
}

.win95-pfp {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #808080;
  background: #fff;
  flex-shrink: 0;
}

.win95-copy {
  font-size: 11px;
  line-height: 1.35;
}

.win95-copy p {
  margin: 0 0 6px;
}

.win95-msftx {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 8px !important;
}

.win95-btn {
  display: inline-block;
  min-width: 74px;
  text-align: center;
  padding: 3px 12px;
  margin-top: 4px;
  color: #000;
  text-decoration: none;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf;
}

.win95-btn:hover {
  background: #d4d4d4;
}

.win95-btn:active {
  border-color: #000 #fff #fff #000;
}

.sparkle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.2); }
}

.grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(30, 120, 40, 0.18));
  pointer-events: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 8;
}

.bubble {
  position: absolute;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.92), rgba(220, 255, 255, 0.18) 38%, rgba(180, 255, 220, 0.08) 68%, rgba(255, 255, 255, 0.04) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset -4px -8px 14px rgba(255, 255, 255, 0.28),
    inset 3px 3px 8px rgba(255, 255, 255, 0.45),
    0 10px 18px rgba(20, 80, 40, 0.12);
  animation: bubble-up linear infinite;
  pointer-events: auto;
  cursor: pointer;
}

.bubble-lg {
  display: grid;
  place-items: center;
  z-index: 9;
}

.bubble-pin {
  animation: bubble-bob 3.8s ease-in-out infinite;
  opacity: 1;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.98), rgba(210, 255, 245, 0.82) 36%, rgba(120, 220, 190, 0.78) 72%, rgba(70, 170, 140, 0.7) 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset -6px -10px 16px rgba(255, 255, 255, 0.55),
    inset 4px 4px 10px rgba(255, 255, 255, 0.7),
    0 12px 28px rgba(20, 80, 40, 0.28),
    0 0 22px rgba(140, 255, 200, 0.4);
}

.bubble-x .x-mark,
.bubble-stonk .stonk-btn {
  opacity: 1;
}

@keyframes bubble-bob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -10px, 0) scale(1.03); }
}

.x-mark {
  width: 42%;
  height: 42%;
  fill: #111;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.7));
}

.stonk-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #b8ff7a, #22c55e 58%, #15803d);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 0 #0f7a32, inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #063318;
  font-family: "Microsoft Sans Serif", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bubble.popping {
  animation: none;
  pointer-events: none;
}

@keyframes bubble-pop {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.25); opacity: 0.8; }
  100% { transform: scale(0.2); opacity: 0; }
}

@keyframes bubble-up {
  0% { transform: translate3d(0, 20px, 0) scale(0.9); opacity: 0; }
  8% { opacity: 0.9; }
  50% { transform: translate3d(22px, -55vh, 0) scale(1); }
  100% { transform: translate3d(-16px, -118vh, 0) scale(1.06); opacity: 0; }
}

.facts-layer {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.fact {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: min(280px, 38vw);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #f4ffe4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow:
    0 0 8px rgba(120, 255, 40, 0.95),
    0 0 18px rgba(40, 180, 40, 0.7),
    0 2px 4px rgba(0, 50, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: fact-fly var(--life, 4s) ease-out forwards;
  will-change: transform, opacity;
}

.fact.num {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: #eaff6a;
  letter-spacing: 0.02em;
  max-width: none;
  white-space: nowrap;
}

@keyframes fact-fly {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x1)), calc(-50% + var(--y1))) rotate(var(--rot));
  }
  10% { opacity: 1; }
  74% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x2)), calc(-50% + var(--y2))) rotate(var(--rot));
  }
}

.scene {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 720px;
  height: 420px;
  transform: translate(-50%, -50%);
  z-index: 6;
  overflow: visible;
}

.monitor {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.bezel {
  background: linear-gradient(160deg, #e8ffd2, #9ad46a 40%, #3d8f3a);
  border-radius: 12px;
  padding: 10px 10px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(180, 255, 140, 0.45),
    0 0 24px rgba(80, 255, 140, 0.22),
    0 18px 30px rgba(0, 50, 10, 0.35);
}

.monitor-bar {
  height: 14px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5ffe8, #8edc5c);
  color: #14532d;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  padding: 0 6px;
}

.mon-left {
  left: 0.5%;
  top: 22%;
  width: 300px;
}

.mon-right {
  right: 0%;
  top: 20%;
  width: 320px;
}

.mon-back {
  left: 61%;
  top: 34%;
  width: 240px;
  z-index: 3;
}

.mon-far {
  left: 5%;
  bottom: 10%;
  width: 260px;
  z-index: 4;
}

.sheet.dense {
  height: 210px;
}

.sheet {
  display: grid;
  grid-template-columns: 16px repeat(4, 1fr);
  font-size: 7px;
  color: #14532d;
  background: #f4ffe8;
  overflow: hidden;
}

.sheet.dense {
  height: 150px;
}

.sheet div {
  border: 0.5px solid #b7e4a8;
  padding: 2px 2px;
  white-space: nowrap;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.sheet .h {
  background: #3cb54a;
  color: #f7ffe8;
  font-weight: 700;
}

.chair {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 118px;
  height: 132px;
  transform: translateX(-58%);
}

.chair-back {
  position: absolute;
  left: 14px;
  top: 0;
  width: 90px;
  height: 92px;
  background:
    repeating-linear-gradient(90deg, var(--wood-dark) 0 8px, var(--wood) 8px 16px),
    linear-gradient(180deg, var(--wood-light), var(--wood-dark));
  background-blend-mode: multiply;
  border-radius: 8px 8px 2px 2px;
  box-shadow: inset 0 0 0 2px rgba(40, 20, 8, 0.35), 0 10px 18px rgba(0, 40, 10, 0.25);
}

.chair-seat {
  position: absolute;
  left: 6px;
  top: 72px;
  width: 106px;
  height: 18px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood-dark));
  border-radius: 4px;
}

.chair-leg {
  position: absolute;
  bottom: 8px;
  width: 10px;
  height: 46px;
  background: linear-gradient(90deg, var(--wood-dark), var(--wood-mid));
  border-radius: 2px;
}

.chair-leg.l { left: 18px; }
.chair-leg.r { right: 18px; }

.cat {
  position: absolute;
  left: 50%;
  bottom: 132px;
  width: 220px;
  height: 230px;
  transform: translateX(-52%);
  transform-origin: 70% 90%;
  z-index: 5;
}

.cat.fallen,
.cat.popped {
  z-index: 14;
}

.cat.popped .cat-body,
.cat.popped .cat-leg,
.cat.popped .face-glow {
  visibility: hidden;
}

.body-sprite {
  position: absolute;
  left: 48%;
  bottom: 92px;
  width: 168px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-30%) rotate(-6deg) scale(0.9);
  filter: drop-shadow(0 10px 8px rgba(0, 40, 10, 0.28));
  z-index: 16;
}

.body-sprite.show {
  opacity: 1;
}

.body-sprite.down {
  bottom: 20px !important;
  left: 64% !important;
  width: 176px;
  transform: rotate(-16deg) !important;
}

.puddle {
  position: absolute;
  left: 82%;
  bottom: 22px;
  width: 0;
  height: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 40% 40%, #ff7a7a, #c41e3a 48%, #7a0b14 78%, transparent 81%);
  box-shadow:
    0 0 18px rgba(180, 20, 30, 0.45),
    inset 0 4px 8px rgba(255, 200, 200, 0.35);
  transform: translateX(-40%) scale(0.2);
  opacity: 0;
  z-index: 15;
  pointer-events: none;
  transition: width 0.7s ease, height 0.7s ease, opacity 0.4s ease 0.15s, transform 0.7s ease;
}

.puddle.show {
  width: 118px !important;
  height: 36px !important;
  opacity: 0.92 !important;
  transform: translateX(-40%) scale(1) !important;
}

.cat-body {
  position: absolute;
  left: 62px;
  bottom: 10px;
  width: 88px;
  height: 64px;
  background: linear-gradient(180deg, #f2ece6, #9a9086 58%, #5e5752);
  border-radius: 40px 40px 22px 22px;
}

.cat-body::before {
  content: "";
  position: absolute;
  right: -38px;
  bottom: 12px;
  width: 46px;
  height: 12px;
  background: #8d847c;
  border-radius: 20px;
  transform: rotate(-28deg);
}

.cat.popped .cat-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 28px;
  height: 18px;
  transform: translateX(-50%);
  background: #c9b8a8;
  border-radius: 40%;
}

.cat-leg {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 36px;
  background: #6e655d;
  border-radius: 12px 12px 8px 8px;
}

.cat-leg.l { left: 64px; }
.cat-leg.r { left: 118px; }

.cat-head {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 250px;
  transform: translateX(-50%) scale(1);
  transform-origin: 50% 86%;
  filter: drop-shadow(0 12px 18px rgba(0, 40, 10, 0.4));
  z-index: 4;
  transition: transform 1.35s cubic-bezier(0.2, 0.8, 0.3, 1), filter 1.35s ease;
}

.cat-head img {
  display: block;
  width: 250px;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.cat.typing .cat-head {
  animation: type-bob 0.28s ease-in-out infinite;
}

.cat.inflating .cat-head {
  animation: none;
  transform: translateX(-50%) scale(2.4);
  filter: drop-shadow(0 0 24px rgba(180, 255, 80, 0.75)) saturate(1.4);
}

@keyframes type-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(2px) rotate(-0.4deg); }
}

.cat.popped .cat-head {
  visibility: hidden;
}

.face-glow {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 78px;
  width: 190px;
  height: 110px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(190, 255, 120, 0.35), transparent 70%);
  z-index: 3;
}

.desk {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 390px;
  height: 22px;
  transform: translateX(-50%) perspective(500px) rotateX(18deg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(190, 255, 150, 0.45) 38%, rgba(40, 150, 70, 0.85));
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 24px rgba(0, 50, 10, 0.28),
    0 0 24px rgba(140, 255, 80, 0.22);
  z-index: 6;
}

.desk::before,
.desk::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 12px;
  height: 58px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45), #9ad46a 30%, #2f7a38);
  border-radius: 0 0 4px 4px;
}

.desk::before { left: 42px; }
.desk::after { right: 42px; }

.laptop {
  position: absolute;
  left: 50%;
  bottom: 68px;
  width: 240px;
  height: 148px;
  transform: translateX(-50%) perspective(520px) rotateX(10deg);
  transform-origin: 50% 100%;
  z-index: 8;
}

.laptop-lid {
  position: absolute;
  left: 10px;
  bottom: 14px;
  width: 220px;
  height: 132px;
  transform: rotateX(-6deg);
  transform-origin: 50% 100%;
}

.lid-back {
  width: 100%;
  height: 100%;
  border-radius: 14px 14px 6px 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(160deg, #e8ffe0, #8fd86a 42%, #3aa24a 78%, #1f6b32);
  box-shadow:
    0 0 32px rgba(140, 255, 80, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
}

.lid-back span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #f4ffb0, #7cff3a 46%, #128a32);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(140, 255, 40, 0.9);
}

.lid-edge {
  position: absolute;
  left: 10px;
  right: 10px;
  top: -7px;
  height: 10px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #9dff6a, #f7ffe0 50%, #9dff6a);
  box-shadow: 0 -10px 22px rgba(180, 255, 80, 0.85);
}

.laptop-hinge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), #7cbf55 55%, #2f7a38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hazard {
  position: absolute;
  left: 10px;
  bottom: 30px;
  width: 168px;
  height: 292px;
  z-index: 9;
}

.post {
  position: absolute;
  left: 68px;
  bottom: 18px;
  width: 16px;
  height: 176px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, #d8ffe8, #3ad07a 28%, #0d5c38 88%, #08301c);
  box-shadow:
    0 0 18px rgba(120, 255, 160, 0.55),
    inset 0 0 8px rgba(255, 255, 255, 0.35);
}

.post-core {
  position: absolute;
  inset: 8px 5px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 220, 0.9), rgba(80, 255, 140, 0.15) 40%, transparent);
  box-shadow: 0 0 16px rgba(180, 255, 80, 0.7);
}

.pad {
  position: absolute;
  left: 36px;
  top: 112px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 80, 80, 0.18), transparent 62%),
    conic-gradient(from 0deg, rgba(255, 255, 255, 0.08), rgba(180, 255, 120, 0.45), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 0 0 2px rgba(180, 255, 160, 0.45),
    0 0 22px rgba(255, 60, 80, 0.35),
    inset 0 0 18px rgba(0, 40, 20, 0.35);
}

.pad::before,
.pad::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(180, 255, 140, 0.35);
}

.pad::after {
  inset: 18px;
  border-color: rgba(255, 90, 90, 0.45);
}

.sign {
  position: absolute;
  left: 6px;
  top: 10px;
  width: 132px;
  height: 68px;
  background:
    linear-gradient(180deg, rgba(20, 40, 28, 0.2), rgba(6, 20, 12, 0.12)),
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(120, 255, 160, 0.08) 8px 9px),
    linear-gradient(180deg, rgba(40, 255, 140, 0.22), rgba(8, 40, 24, 0.55));
  border: 1px solid rgba(180, 255, 140, 0.7);
  clip-path: polygon(8% 0, 92% 0, 100% 18%, 100% 82%, 92% 100%, 8% 100%, 0 82%, 0 18%);
  transform: rotate(-4deg);
  display: grid;
  place-items: center;
  text-align: center;
  color: #eaffd4;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-shadow: 0 0 10px rgba(140, 255, 80, 0.9);
  box-shadow:
    0 0 22px rgba(80, 255, 140, 0.35),
    inset 0 0 18px rgba(140, 255, 120, 0.18);
  backdrop-filter: blur(6px);
}

.big-red {
  position: absolute;
  left: 50px;
  top: 126px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffb0b0, var(--danger) 52%, #5b0710);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 40, 70, 0.7),
    0 8px 0 #4a0810,
    inset 0 3px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  z-index: 2;
}

.big-red:hover { filter: brightness(1.08); }

.big-red:active,
.big-red.pressed {
  transform: translateY(6px);
  box-shadow:
    0 2px 0 #5b0a10,
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 3px 0 rgba(255, 255, 255, 0.18);
}

.big-red:disabled { cursor: default; }

.cable-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}

.cable-line {
  fill: none;
  stroke: #7dffb0;
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(120, 255, 160, 0.7));
}

.cable-line.live {
  stroke: #b6ff3b;
  filter: drop-shadow(0 0 6px #7cff4a);
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fffbe6;
  box-shadow: 0 0 10px 4px #c8ff4a, 0 0 18px 8px rgba(80, 255, 120, 0.55);
  pointer-events: none;
  z-index: 12;
  opacity: 0;
}

.boom-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}

.boom-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blast-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--bx, 50%) var(--by, 46%),
    rgba(255, 255, 245, 0.95) 0%,
    rgba(255, 200, 80, 0.55) 12%,
    rgba(255, 80, 20, 0.22) 28%,
    transparent 58%
  );
  mix-blend-mode: screen;
  animation: blast-fade 0.55s ease-out forwards;
}

@keyframes blast-fade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.shockwave {
  position: absolute;
  left: var(--bx, 50%);
  top: var(--by, 46%);
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 4px solid rgba(255, 240, 200, 0.85);
  box-shadow: 0 0 24px rgba(255, 140, 40, 0.7), inset 0 0 18px rgba(255, 255, 255, 0.45);
  animation: shock-expand 0.7s cubic-bezier(0.12, 0.7, 0.3, 1) forwards;
}

@keyframes shock-expand {
  to {
    transform: scale(28);
    opacity: 0;
    border-width: 1px;
  }
}

.eco.shake {
  animation: boom-shake 0.62s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes boom-shake {
  10%, 90% { transform: translate3d(-12px, 6px, 0); }
  20%, 80% { transform: translate3d(14px, -8px, 0); }
  30%, 70% { transform: translate3d(-10px, 10px, 0); }
  40%, 60% { transform: translate3d(8px, -4px, 0); }
  50% { transform: translate3d(-4px, 5px, 0); }
  100% { transform: none; }
}

.pop-flash {
  display: none;
}

.shard {
  position: absolute;
  left: 50%;
  top: 46%;
  padding: 0;
  background: none;
  border: 0;
  color: #fff6c8;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 0 10px #ffb347, 0 2px 4px rgba(80, 20, 0, 0.5);
  white-space: nowrap;
  will-change: transform, opacity;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  pointer-events: auto;
}

.boot-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(230, 255, 180, 0.42), rgba(8, 50, 24, 0.55) 42%, rgba(2, 18, 10, 0.78));
  transition: opacity 0.65s ease;
}

.boot-rush {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.boot-bubble {
  position: absolute;
  left: 50%;
  top: 48%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(200, 255, 240, 0.45) 40%, rgba(140, 255, 200, 0.18) 70%, rgba(255, 255, 255, 0.08));
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset -4px -8px 12px rgba(255, 255, 255, 0.35), 0 8px 16px rgba(20, 80, 40, 0.15);
  animation: boot-surge 1.85s cubic-bezier(0.12, 0.7, 0.2, 1) forwards;
  will-change: transform, opacity;
}

.boot-num {
  position: absolute;
  left: 50%;
  top: 48%;
  color: #f4ffe4;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(140, 255, 60, 0.95), 0 0 22px rgba(40, 180, 40, 0.7);
  animation: boot-surge 1.7s cubic-bezier(0.1, 0.65, 0.2, 1) forwards;
  will-change: transform, opacity;
}

.boot-mark {
  position: absolute;
  left: 50%;
  top: 46%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: Arial Black, Impact, sans-serif;
  font-size: clamp(36px, 7.4vw, 92px);
  letter-spacing: 0.06em;
  word-spacing: 0.18em;
  white-space: nowrap;
  width: max-content;
  color: #111;
  text-shadow: 0 0 28px rgba(180, 255, 80, 0.8), 0 2px 0 rgba(255, 255, 255, 0.4);
  animation: boot-title 2s ease forwards;
  pointer-events: none;
}

@keyframes boot-surge {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
  14% { opacity: 1; }
  100% {
    opacity: 0.92;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--s, 1));
  }
}

@keyframes boot-title {
  0% { opacity: 0; letter-spacing: 0.22em; filter: blur(12px); }
  28% { opacity: 1; filter: blur(0); }
  78% { opacity: 1; }
  100% { opacity: 0; filter: blur(8px); }
}

.boot.out {
  pointer-events: none;
}

.boot.out .boot-veil {
  opacity: 0;
}

.boot.out .boot-rush {
  transform-origin: 50% 48%;
  animation: boot-clear 0.65s ease-in forwards;
}

.boot.out .boot-mark {
  opacity: 0;
}

@keyframes boot-clear {
  to {
    opacity: 0;
    transform: scale(1.28);
    filter: blur(10px);
  }
}

@media (max-width: 900px) {
  .mon-left, .mon-far { display: none; }
  .scene { transform: translate(-50%, -50%) scale(0.78); }
  .logo { font-size: 40px; }
  .win-flag { width: 72px; height: 46px; }
  .win95-window { right: 8px; width: 240px; }
}
