/* Event Guide — PRIZES tab in the Gen-3 FRLG window language. Shares the
   guide chrome (.event-guide-nav, status chips, backdrop treatment) defined
   in hackathon-credits.css; this file only styles the podium + asides.
   Panel = gen3-frame1 paper window; podium places = white sticker windows
   with gold/silver/bronze placards; organizer note = Emerald message box. */

.hackathon-prizes button:focus-visible {
  outline: 3px solid #ffcd4c;
  outline-offset: 2px;
}

.hackathon-prizes {
  --u: 2px;
  position: absolute;
  inset: 0;
  z-index: 60;
  padding: clamp(8px, 2vw, 20px);
  overflow: hidden;
  color: #606060;
  font-family: 'PokeDialogue', 'PokeText', "Courier New", monospace;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .05) 3px 4px),
    linear-gradient(180deg,
      #000 0 4%,
      #7a1818 4% 9%,
      #10283A 9% 91%,
      #7a1818 91% 96%,
      #000 96% 100%);
}

.prizes-panel {
  position: relative;
  width: min(100%, 1060px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 20px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #7373AC #DED5DE;
}

.prizes-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 3px double #B8B8B0;
}

.prizes-kicker {
  margin: 0 0 4px;
  color: #C74637;
  font: 800 9px/1.2 'PokeText', ui-monospace, monospace;
  letter-spacing: .18em;
}

.prizes-masthead h2 {
  margin: 0;
  color: #424242;
  font-family: 'PokeText', ui-monospace, monospace;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: .03em;
  text-shadow: 2px 2px 0 #D0D0C8;
}

.prizes-masthead p:last-child {
  margin: 7px 0 0;
  color: #606060;
  font-size: 13px;
  text-shadow: 1px 1px 0 #E8E8E0;
}

.prizes-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  color: #F8F8F8;
  font: 900 26px/28px system-ui, sans-serif;
  background: #E82010;
  border: 2px solid #293131;
  border-radius: 50%;
  box-shadow: 2px 2px 0 #293131;
  cursor: pointer;
}

/* ---- podium: three sticker windows, champion in the middle ----------------- */

.prize-podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: clamp(8px, 1.7vw, 17px);
  padding-top: clamp(22px, 4vw, 38px);
}

.prize-place {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #FFFFFF;
  border: 3px solid #293131;
  border-radius: 9px 9px 5px 5px;
  box-shadow: 4px 5px 0 rgba(41, 49, 49, .2);
}

.prize-place-1 {
  min-height: 410px;
  order: 2;
  box-shadow:
    0 0 0 3px #F8D048,
    5px 7px 0 rgba(41, 49, 49, .22);
}

.prize-place-2 { min-height: 355px; order: 1; }
.prize-place-3 { min-height: 315px; order: 3; }

/* Pixel champion (CSS art) — outlines recolored to the Gen-3 ink #293131. */
.prize-champion {
  position: relative;
  width: 72px;
  height: 77px;
  margin: -19px auto 0;
}

.prize-crown {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  color: #F8D048;
  font: 900 24px/1 serif;
  transform: translateX(-50%);
  filter: drop-shadow(1px 1px 0 #293131);
}

.prize-place-2 .prize-crown { color: #DED5DE; }
.prize-place-3 .prize-crown { color: #D8883C; }

.prize-champion-head {
  position: absolute;
  top: 25px;
  left: 50%;
  width: 30px;
  height: 27px;
  transform: translateX(-50%);
  background: #F8C890;
  border: 3px solid #293131;
  border-radius: 45% 45% 42% 42%;
  box-shadow: inset 0 6px 0 #4A4A6A;
}

.prize-champion-head::before,
.prize-champion-head::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 3px;
  height: 4px;
  background: #293131;
}

.prize-champion-head::before { left: 7px; }
.prize-champion-head::after { right: 7px; }

.prize-champion-body {
  position: absolute;
  top: 51px;
  left: 50%;
  width: 45px;
  height: 25px;
  transform: translateX(-50%);
  background: #E82010;
  border: 3px solid #293131;
  border-radius: 8px 8px 3px 3px;
  box-shadow: inset 0 -8px 0 #F8F8F8;
}

.prize-place-2 .prize-champion-body { background: #7373AC; }
.prize-place-3 .prize-champion-body { background: #D8883C; }

.prize-champion-shadow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 57px;
  height: 10px;
  transform: translateX(-50%);
  background: rgba(41, 49, 49, .18);
  border-radius: 50%;
}

/* Medal placard strip: gold / silver / bronze paper bands. */
.prize-placard {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: #424242;
  background: #F8D048;
  border-top: 3px solid #293131;
  border-bottom: 3px solid #293131;
}

.prize-place-2 .prize-placard { background: #DED5DE; }
.prize-place-3 .prize-placard { background: #E8B078; }

.prize-medal {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-content: center;
  color: #F8F8F8;
  font: 800 14px/1 'PokeText', ui-monospace, monospace;
  background: #E82010;
  border: 2px solid #293131;
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(41, 49, 49, .2);
}

.prize-placard h3 {
  margin: 0;
  font: 800 clamp(14px, 2vw, 19px)/1 'PokeText', ui-monospace, monospace;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .55);
}

.prize-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 13px 15px 16px 30px;
  color: #606060;
  font-size: clamp(11px, 1.4vw, 13px);
  line-height: 1.4;
  text-shadow: 1px 1px 0 #E8E8E0;
}

.prize-list li::marker { color: #E00808; }

.prize-list .prize-vercel {
  margin-top: 3px;
  padding: 7px 8px 7px 4px;
  color: #424242;
  font-weight: 800;
  background: #B8D8F8;
  border-right: 3px solid #3050C8;
}

/* ---- sponsor prize: green sticker strip ------------------------------------ */

.sponsor-prizes {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 15px;
  color: #424242;
  background: #B8ECC0;
  border: 3px solid #293131;
  border-radius: 8px;
  box-shadow: 4px 5px 0 rgba(41, 49, 49, .2);
}

.sponsor-prize-gem {
  color: #205838;
  font-size: 28px;
  text-shadow: 2px 2px 0 rgba(41, 49, 49, .3);
}

.sponsor-prizes p {
  margin: 0 0 3px;
  color: #205838;
  font: 800 9px/1 'PokeText', ui-monospace, monospace;
  letter-spacing: .14em;
}

.sponsor-prizes h3 {
  margin: 0;
  font: 800 14px/1 'PokeText', ui-monospace, monospace;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .55);
}

.sponsor-prizes ul {
  margin: 0;
  padding-left: 21px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
}

.sponsor-prizes li::marker { color: #205838; }

/* ---- organizer note: Emerald message box (gen3-frame-msg) ------------------- */

.prizes-organizer-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 6px 10px 8px;
  color: #606060;
}

.prizes-organizer-note > span {
  color: #E00808;
  font-size: 24px;
  text-shadow: 1px 1px 0 #D0D0C8;
}

.prizes-organizer-note strong {
  color: #424242;
  font: 800 12px/1 'PokeText', ui-monospace, monospace;
  letter-spacing: .06em;
  text-shadow: 1px 1px 0 #D0D0C8;
}

.prizes-organizer-note p {
  margin: 4px 0 2px;
  font-size: 13px;
  text-shadow: 1px 1px 0 #E8E8E0;
}

.prizes-organizer-note small {
  color: #98988C;
  font-size: 10px;
}

@media (max-width: 760px) {
  .hackathon-prizes { --u: 1.5px; padding: 4px; }

  .prizes-panel { padding: 9px 8px 14px; }

  .prize-podium {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .prize-place,
  .prize-place-1,
  .prize-place-2,
  .prize-place-3 {
    min-height: 0;
    order: initial;
  }

  .prize-place-1 { order: 1; }
  .prize-place-2 { order: 2; }
  .prize-place-3 { order: 3; }

  .prize-list { font-size: 12px; }

  .sponsor-prizes { grid-template-columns: auto minmax(0, 1fr); }
  .sponsor-prizes ul { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .hackathon-prizes * {
    scroll-behavior: auto !important;
  }
}
