/* hackathon wins: a timeline window that pops up on the SummerOS desktop,
   plus a README and photo pop-ups per project. Windows use the page's own
   window styles; the photo and viewer styles come from dreu-world.css. */

/* every sticker gets a white die-cut border */
.st {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px;
  border: 5px solid #ffffff;
  border-radius: 16px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.05;
}
.st b { font-weight: 900; }
.st i { font-style: normal; font-size: 11px; letter-spacing: 0.04em; opacity: 0.9; }

.st-duq { width: 130px; height: 130px; border-radius: 50%; color: #ffffff; background: radial-gradient(circle at 35% 30%, #8a5cd6, #3d1d73); font: 18px "Times New Roman", serif; }
.st-duq i { font-family: "Courier New", monospace; }
.st-agri { color: #ffffff; background: #2f6b2f; border-radius: 999px; padding: 10px 22px; font: 22px Georgia, serif; }
.st-agri b::before { content: "\2766  "; color: #b9e58a; }
.st-cor { color: #e3342f; background: #0b0b0b; border-radius: 6px; font: 22px "Courier New", monospace; letter-spacing: 0.08em; }
.st-cor i { margin-top: 4px; padding: 2px 6px; color: #0b0b0b; background: linear-gradient(90deg, #9945ff, #14f195); border-radius: 3px; font-weight: bold; }
.st-bio { color: #ff6b8b; background: #121a33; border-radius: 999px; padding: 10px 22px; font: 22px Arial, Helvetica, sans-serif; letter-spacing: 0.16em; text-shadow: 0 0 10px rgba(255, 90, 130, 0.8); }
.st-bio i { color: #f2c14e; text-shadow: none; }
.st-pac { color: #ffffff; background: #12a39a; border-radius: 40px 60px 60px 40px; font: 20px "Trebuchet MS", sans-serif; }
.st-pac i { font-family: "Courier New", monospace; font-size: 14px; }
.st-syn { width: 110px; height: 110px; color: #a78bfa; background: #0a0a12; font: 34px Arial, Helvetica, sans-serif; }
.st-syn i { color: #ef4444; letter-spacing: 0.1em; }
.st-bin { color: #ffffff; background: #1f8a4c; border-radius: 22px; font: 19px Verdana, sans-serif; }
.st-bin b::before { content: "\267B  "; }

/* ---------- photo tiles ---------- */
.hk-win.dw-qwsnap img.hk-fig { object-fit: contain; background: #ffffff; }
.hk-win.dw-qwsnap img.hk-tall { aspect-ratio: 9 / 16 !important; object-fit: contain; background: #111111; }

/* ---------- the timeline ---------- */
.hk-tl-pane { padding: 18px 20px 26px !important; background: #ffffff !important; container-type: inline-size; }
.hk-tl-head { margin: 0 0 6px; color: #555555; font: 13px Tahoma, Verdana, sans-serif; }
.hk-tl-head b { margin-right: 8px; color: #111111; font: bold 22px "Times New Roman", Times, serif; }
.hk-tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* the line runs through the dots */
.hk-tl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 186px;
  height: 4px;
  background: linear-gradient(90deg, #1515ff, #ff00a8);
  border-radius: 2px;
}
.hk-tl button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  color: #111111;
  background: none;
  border: 0;
  text-align: center;
  cursor: pointer;
}
.hk-tl-when { height: 22px; color: #777777; font: bold 12px "Courier New", monospace; text-transform: uppercase; }
.hk-tl-st { display: grid; place-items: center; height: 150px; scale: 0.72; transition: scale 0.15s ease, rotate 0.15s ease; filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.35)); }
.hk-tl li:nth-child(odd) .hk-tl-st { rotate: -5deg; }
.hk-tl li:nth-child(even) .hk-tl-st { rotate: 4deg; }
.hk-tl-dot { width: 18px; height: 18px; margin: 4px 0 12px; background: #ffffff; border: 4px solid #111111; border-radius: 50%; transition: background 0.15s ease; }
.hk-tl-card { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 8px; background: #f6f6f2; border: 2px solid #111111; box-shadow: 4px 4px 0 #ccff00; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.hk-tl-card b { font: bold 19px/1.05 "Times New Roman", Times, serif; }
.hk-tl-card span { color: #555555; font: 12px/1.3 Tahoma, Verdana, sans-serif; }
.hk-tl-card em { color: #8a6400; font: bold 12px/1.3 Tahoma, Verdana, sans-serif; font-style: normal; }
.hk-tl button:hover .hk-tl-st, .hk-tl button:focus-visible .hk-tl-st { scale: 0.8; rotate: 0deg; }
.hk-tl button:hover .hk-tl-dot, .hk-tl button:focus-visible .hk-tl-dot { background: #ff00a8; }
.hk-tl button:hover .hk-tl-card, .hk-tl button:focus-visible .hk-tl-card { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #ff00a8; }
.hk-tl button:focus-visible { outline: none; }
.hk-tl-in .hk-tl li { animation: hk-tl-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
.hk-tl-in .hk-tl li:nth-child(1) { animation-delay: 0.17s; }
.hk-tl-in .hk-tl li:nth-child(2) { animation-delay: 0.26s; }
.hk-tl-in .hk-tl li:nth-child(3) { animation-delay: 0.35s; }
.hk-tl-in .hk-tl li:nth-child(4) { animation-delay: 0.44s; }
.hk-tl-in .hk-tl li:nth-child(5) { animation-delay: 0.53s; }
.hk-tl-in .hk-tl li:nth-child(6) { animation-delay: 0.62s; }
.hk-tl-in .hk-tl li:nth-child(7) { animation-delay: 0.71s; }
@keyframes hk-tl-pop { from { opacity: 0; transform: translateY(24px) scale(0.7); } to { opacity: 1; transform: none; } }
/* stickers shrink with the window so they never bump into each other */
@container (max-width: 960px) { .hk-tl-st { scale: 0.6; } .hk-tl button:hover .hk-tl-st, .hk-tl button:focus-visible .hk-tl-st { scale: 0.66; } }
@container (max-width: 820px) { .hk-tl-st { scale: 0.5; } .hk-tl button:hover .hk-tl-st, .hk-tl button:focus-visible .hk-tl-st { scale: 0.55; } }
@container (max-width: 700px) { .hk-tl-st { scale: 0.42; } .hk-tl button:hover .hk-tl-st, .hk-tl button:focus-visible .hk-tl-st { scale: 0.46; } }

/* ---------- README write-ups ---------- */
.hk-readme .hk-doc { overflow: auto; padding: 18px 20px 22px !important; color: #1b1b1f; background: #ffffff !important; font: 14.5px/1.55 Georgia, "Times New Roman", serif; }
.hk-event { margin: 0 0 4px; color: #6b6b6b; font: bold 11px Tahoma, Verdana, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.hk-doc h3 { margin: 0; font: bold 34px/1 "Times New Roman", Times, serif; }
.hk-tag { margin: 6px 0 12px; font-size: 16px; font-style: italic; }
.hk-awards { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.hk-awards li { padding: 3px 9px; color: #3b2a00; background: linear-gradient(135deg, #ffe58a, #f2c14e); border: 1px solid #c99a1e; border-radius: 999px; font: bold 12px Tahoma, Verdana, sans-serif; }
.hk-awards li::before { content: "\2605  "; }
.hk-doc blockquote { margin: 0 0 16px; padding: 8px 12px; background: #f4f4f0; border-left: 4px solid #ccff00; font-size: 14px; }
.hk-doc h4 { margin: 16px 0 4px; color: #6b6b6b; font: bold 11px Tahoma, Verdana, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.hk-doc p { margin: 0 0 6px; }
.hk-points { margin: 0; padding-left: 18px; }
.hk-points li { margin-bottom: 5px; }
.hk-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.hk-stack span { padding: 2px 7px; background: #eeeeee; border: 1px solid #d0d0d0; font: 12px "Courier New", monospace; }
.hk-team { margin-top: 14px !important; color: #555555; font-size: 13px; font-style: italic; }
.hk-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }
.hk-links .btn { border: 0; font-size: 12px; text-decoration: none; cursor: pointer; }

@media (max-width: 899px) {
  .hk-tl { grid-template-columns: 1fr; gap: 18px; }
  .hk-tl::before { top: 0; bottom: 0; left: 14px; right: auto; width: 4px; height: auto; background: linear-gradient(#1515ff, #ff00a8); }
  .hk-tl button { display: grid; grid-template-columns: 32px 1fr; align-items: center; text-align: left; }
  .hk-tl-when { grid-column: 2; height: auto; }
  .hk-tl-st { display: none; }
  .hk-tl-dot { grid-column: 1; grid-row: 1 / span 2; margin: 0 0 0 4px; }
  .hk-tl-card { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .hk-tl-in .hk-tl li, .hk-win.dw-popin { animation: none; } }
