.case-shell {
  overflow: hidden;
  background: var(--site-panel-soft);
  border: 1px solid var(--site-border);
  box-shadow: 6px 6px 0 var(--site-shadow);
}

.case-hero {
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--site-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--site-panel);
}

.case-hero h2,
.case-hero p {
  margin: 0;
}

.case-hero h2 {
  font-size: 1.45rem;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.case-hero p {
  margin-top: 0.45rem;
  max-width: 56ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--site-muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 0.8rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    var(--site-panel-soft);
}

.case-slot {
  position: relative;
  min-height: 240px;
  padding: 0.4rem 0.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  outline: none;
}

.case-slot::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.25rem;
  height: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    #8a5b39;
  box-shadow:
    0 4px 0 #5d3820,
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.trophy {
  --metal: #d0a63d;
  --metal-shadow: #9b7621;
  --metal-highlight: #f6de84;
  position: relative;
  width: 92px;
  height: 116px;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.14));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-slot:hover .trophy,
.case-slot:focus-within .trophy {
  transform: translateY(-12px);
}

.trophy.nvidia {
  --metal: #76b900;
  --metal-shadow: #4f7b00;
  --metal-highlight: #c9ef7a;
}

.trophy.roblox {
  --metal: #e2231a;
  --metal-shadow: #9e1812;
  --metal-highlight: #ff9f99;
}

.trophy.adtran {
  --metal: #1f74c9;
  --metal-shadow: #154d86;
  --metal-highlight: #a8d0fb;
}

.trophy.swamp {
  --metal: #ff8c2a;
  --metal-shadow: #a75814;
  --metal-highlight: #ffd2ab;
}

.trophy.shpe {
  --metal: #6b5dd3;
  --metal-shadow: #43388b;
  --metal-highlight: #d1c8ff;
}

.trophy.usf {
  --metal: #0b8a55;
  --metal-shadow: #065534;
  --metal-highlight: #8fe0bc;
}

.trophy.anthropic {
  --metal: #c9783c;
  --metal-shadow: #7d4922;
  --metal-highlight: #efc3a2;
}

.trophy.sase {
  --metal: #f2a531;
  --metal-shadow: #a96a12;
  --metal-highlight: #ffe0a6;
}

.trophy.rl {
  --metal: #3f7cff;
  --metal-shadow: #274d9b;
  --metal-highlight: #bad0ff;
}

.trophy.swim {
  --metal: #3cb6c9;
  --metal-shadow: #237380;
  --metal-highlight: #b8eef6;
}

.trophy.climb {
  --metal: #7a8f54;
  --metal-shadow: #4c5c33;
  --metal-highlight: #d4e4b3;
}

.trophy-bowl {
  position: absolute;
  left: 24px;
  top: 8px;
  width: 44px;
  height: 34px;
  background: var(--metal);
  border: 2px solid var(--metal-shadow);
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 3px 0 var(--metal-highlight);
}

.trophy-bowl::before,
.trophy-bowl::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--metal-shadow);
  border-radius: 999px;
}

.trophy-bowl::before {
  left: -16px;
  border-right: none;
}

.trophy-bowl::after {
  right: -16px;
  border-left: none;
}

.trophy-stem {
  position: absolute;
  left: 41px;
  top: 46px;
  width: 10px;
  height: 22px;
  background: var(--metal);
  border-left: 2px solid var(--metal-shadow);
  border-right: 2px solid var(--metal-shadow);
}

.trophy-foot {
  position: absolute;
  left: 32px;
  top: 68px;
  width: 28px;
  height: 10px;
  background: var(--metal);
  border: 2px solid var(--metal-shadow);
  box-shadow: inset 0 2px 0 var(--metal-highlight);
}

.trophy-base {
  position: absolute;
  left: 22px;
  top: 84px;
  width: 48px;
  height: 18px;
  background: #3f2b1e;
  border: 2px solid #24170f;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

.trophy-plaque {
  width: 100%;
  max-width: 168px;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--site-panel) 82%, transparent);
  box-shadow: 4px 4px 0 var(--site-shadow);
}

.trophy-plaque p {
  margin: 0;
}

.trophy-title {
  font-size: 0.98rem;
  line-height: 1.18;
  text-transform: lowercase;
}

.trophy-meta {
  margin-top: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--site-muted);
}

.trophy-tooltip {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  width: min(220px, calc(100vw - 3rem));
  transform: translate(-50%, -100%);
  border: 1px solid var(--site-border);
  background: var(--site-panel);
  box-shadow: 4px 4px 0 var(--site-shadow);
  padding: 0.7rem 0.75rem;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 5;
}

.case-slot:hover .trophy-tooltip,
.case-slot:focus-within .trophy-tooltip {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 0.35rem));
}

.trophy-tooltip p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--site-muted);
}

@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .case-hero {
    padding: 0.8rem 0.8rem 0.7rem;
  }

  .case-hero h2 {
    font-size: 1.18rem;
  }

  .case-hero p {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.55rem;
    padding: 0.75rem;
  }

  .case-slot {
    min-height: 184px;
    padding: 0.2rem 0.15rem 1rem;
  }

  .trophy {
    width: 76px;
    height: 96px;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.12));
  }

  .trophy-plaque {
    max-width: 100%;
    padding: 0.45rem 0.48rem;
    box-shadow: 3px 3px 0 var(--site-shadow);
  }

  .trophy-title {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .trophy-meta {
    margin-top: 0.25rem;
    font-size: 0.6rem;
    line-height: 1.3;
  }

  .trophy-tooltip {
    width: min(180px, calc(100vw - 2rem));
    padding: 0.55rem 0.6rem;
  }

  .trophy-tooltip p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .trophy-bowl {
    left: 20px;
    top: 8px;
    width: 36px;
    height: 28px;
  }

  .trophy-bowl::before,
  .trophy-bowl::after {
    top: 6px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }

  .trophy-bowl::before {
    left: -14px;
  }

  .trophy-bowl::after {
    right: -14px;
  }

  .trophy-stem {
    left: 34px;
    top: 39px;
    width: 8px;
    height: 18px;
  }

  .trophy-foot {
    left: 27px;
    top: 57px;
    width: 22px;
    height: 8px;
  }

  .trophy-base {
    left: 18px;
    top: 71px;
    width: 40px;
    height: 15px;
  }
}
