* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #d2c6b2;
  background-image:
    radial-gradient(ellipse at 30% 20%, #ddd3c1 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, #c4b89e 0%, transparent 60%);
  color: #2a2520;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  max-width: 600px;
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Retro Mac ─────────────────────────────── */

.mac {
  width: 320px;
  background: #e8e4d8;
  border-radius: 12px 12px 4px 4px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.mac-top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f5f1e8;
  border-bottom: 1px solid #ccc5b3;
}

.mac-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #2a2520;
}

.mac-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mac-lines span {
  display: block;
  height: 1px;
  background: #2a2520;
}

.mac-screen {
  margin: 14px 18px 0;
  padding: 2rem 1.5rem;
  background: #f5f2e8;
  border: 2px solid #b8b0a0;
  border-radius: 2px;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.screen-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2a2520;
  letter-spacing: -0.01em;
}

.screen-tagline {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #7a7060;
  font-style: italic;
}

.mac-chin {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mac-logo {
  width: 16px;
  height: 20px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(
    to bottom,
    #61bb46 0% 16.6%,
    #fdb827 16.6% 33.2%,
    #f5821f 33.2% 49.8%,
    #e03a3e 49.8% 66.4%,
    #963d97 66.4% 83%,
    #009ddc 83% 100%
  );
  opacity: 0.5;
}

/* ── Floppy Disks ──────────────────────────── */

.disks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin: 2.5rem 0 2rem;
}

.floppy {
  width: 130px;
  height: 134px;
  background: #1a1a2e;
  border-radius: 4px 4px 4px 4px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
  cursor: pointer;
}

.floppy:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.floppy-top {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floppy-slider {
  width: 40px;
  height: 24px;
  background: #c0bdb5;
  border-radius: 2px;
  position: relative;
  margin-top: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.floppy-slider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 10px;
  height: 16px;
  background: #1a1a2e;
  border-radius: 1px;
}

.floppy-label {
  flex: 1;
  margin: 8px 8px 8px;
  padding: 8px 6px;
  background: #f5f1e8;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.floppy-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #2a2520;
}

.floppy-desc {
  font-size: 0.65rem;
  color: #7a7060;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.floppy-empty {
  background: #3a3a4e;
  opacity: 0.7;
}

.floppy-empty .floppy-label {
  border: 1px dashed #bbb5a5;
  background: transparent;
}

.floppy-empty .floppy-name,
.floppy-empty .floppy-desc {
  color: #ccc5b8;
}

/* ── About ─────────────────────────────────── */

.about {
  max-width: 380px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #5a5045;
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 480px) {
  .mac {
    width: 280px;
  }

  .mac-screen {
    margin: 10px 12px 0;
    padding: 1.5rem 1rem;
  }

  .screen-text {
    font-size: 1.2rem;
  }
}
