/* Compact teacher showcase: many achievements visible without scrolling. */
.showcase-page {
  width:calc(100% - 36px);
  max-width:1520px;
  margin:14px auto 28px;
  padding-bottom:16px;
}
.showcase-toolbar {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px 18px;
  margin:0 0 14px;
  padding:3px 2px 12px;
  border-bottom:1px solid #dacdb0;
}
.showcase-toolbar h2 {
  margin:0;
  color:#964536;
  font-size:clamp(23px,2.3vw,30px);
  font-weight:400;
  letter-spacing:2px;
}
.showcase-toolbar h2 small {
  color:#88785c;
  font-size:14px;
  font-weight:400;
  letter-spacing:0;
}
#recent-status {
  color:#796f5b;
  font-size:13px;
  margin:0;
}
#recent-status.error {color:#963a30;}
.recent-list {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));
  gap:10px;
}
.recent-card {
  min-width:0;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 68px;
  align-items:center;
  gap:9px;
  padding:10px;
  min-height:108px;
  background:#fffaf0;
  border:1px solid #dacdb0;
  border-radius:7px;
}
.recent-portrait {
  width:54px;
  height:54px;
}
.recent-portrait svg {display:block;width:100%;height:100%;}
.recent-info {min-width:0;overflow:hidden;}
.recent-info h3 {
  color:#304b3e;
  font-weight:400;
  font-size:20px;
  line-height:1.35;
  margin:0 0 5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.recent-medal-name {
  display:block;
  font-weight:500;
  font-size:15px;
  line-height:1.35;
  color:#a3432a;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.recent-meta {
  font-size:12px;
  line-height:1.4;
  color:#916e42;
  margin-top:4px;
}
/* Keep the medal itself clean. Only the center icon in a game award glows. */
.recent-award {
  width:68px;
  height:68px;
  display:grid;
  place-items:center;
}
.recent-award .medal-art {
  display:block;
  width:68px;
  height:68px;
  max-width:none;
  margin:0;
  overflow:visible;
}
/* Game badges show their real activity artwork, without an academic medal frame. */
.recent-award.game-award {
  background:none;
  border:0;
  overflow:visible;
}
.recent-award .game-activity-icon {
  display:block;
  width:66px;
  height:66px;
  max-width:100%;
  object-fit:contain;
  overflow:visible;
  background:none;
  border:0;
  color:#8b6936;
  /* Glow follows the transparent artwork itself; no background, ring or medal frame. */
  filter:drop-shadow(0 0 4px #f9d977ad) drop-shadow(0 0 8px #f0b8457a);
  animation:game-activity-glimmer 3.8s ease-in-out infinite;
  transform-origin:center;
  will-change:filter;
}
@keyframes game-activity-glimmer {
  0%,100% {
    filter:drop-shadow(0 0 4px #f9d977ad) drop-shadow(0 0 8px #f0b8457a);
  }
  50% {
    filter:drop-shadow(0 0 8px #fff0abf2) drop-shadow(0 0 15px #f2bb49cf);
  }
}
@media(prefers-reduced-motion:reduce) {
  .recent-award .game-activity-icon {
    animation:none;
    filter:drop-shadow(0 0 6px #f9d977b0) drop-shadow(0 0 10px #f0b84585);
    will-change:auto;
  }
}
.showcase-footnote {
  text-align:center;
  font-size:12px;
  color:#81745c;
  margin:18px 0;
}
.showcase-login {grid-column:1/-1;padding:20px;background:#fffaf0;}
.showcase-login a {color:#3e654d;}
@media(max-width:600px) {
  .showcase-page {width:calc(100% - 20px);margin:10px auto;}
  .showcase-toolbar {margin-bottom:10px;padding-bottom:9px;}
  .showcase-toolbar h2 {font-size:23px;}
  .showcase-toolbar h2 small {font-size:12px;}
  .recent-list {gap:8px;}
  .recent-card {min-height:96px;padding:8px;grid-template-columns:52px minmax(0,1fr) 62px;}
  .recent-portrait {width:52px;height:52px;}
  .recent-award {width:62px;height:62px;}
  .recent-award .medal-art,.recent-award .game-activity-icon {width:62px;height:62px;}
  .recent-info h3 {font-size:19px;}
}


/* Tiny soft-focus cameo for opaque game covers; existing transparent PNG/WebP stays crisp. */
.recent-award .recent-game-art {
  display:grid; place-items:center; position:relative; isolation:isolate;
  width:68px; height:68px; flex:none;
}
.recent-award .recent-game-art .game-activity-icon {
  width:100%; height:100%; max-width:100%; max-height:100%;
}
.recent-award .recent-game-art--soft {
  border-radius:50%;
  background:radial-gradient(circle at 46% 36%,#fffcf3 8%,#fff2d6 70%,#f3dbac55 100%);
  box-shadow:0 2px 7px #9a7a4f34;
}
.recent-award .recent-game-art--soft::before {
  content:""; position:absolute; inset:2px; border-radius:50%;
  border:1px solid #d5b77885; pointer-events:none;
}
.recent-award .recent-game-art--soft img.game-activity-icon {
  width:calc(100% - 4px); height:calc(100% - 4px); object-fit:cover;
  -webkit-mask-image:radial-gradient(circle farthest-corner at center,#000 56%,#000e 62%,transparent 74%);
  mask-image:radial-gradient(circle farthest-corner at center,#000 56%,#000e 62%,transparent 74%);
}
@media(max-width:600px) {
  .recent-award .recent-game-art {width:62px;height:62px;}
}
