/* ============================================================
   XÓTIKA · winners-results (dedicated contest results page)
   EAPLC-inspired layout (special awards + ranked winning works)
   rendered with the XÓTIKA identity. Reuses tokens from xotika_v5.css.
   ============================================================ */

html { background: #0d0c12; }
.wr-body {
  background-color: #0d0c12;
  background-color: var(--dark, #0d0c12);
  background-image: radial-gradient(circle at 50% -10%, rgba(215, 118, 67, .18), transparent 60%);
  background-image: radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent, #d77643) 22%, transparent), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--cream, #fff8f0);
  font-family: "Space Mono", monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- top bar ---- */
.wr-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(13, 12, 18, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 248, 240, .08);
}
.wr-logo img { height: 42px; width: auto; display: block; }
.wr-lang { display: flex; gap: 6px; }
.wr-lang a {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .12em;
  font-size: .95rem;
  text-decoration: none;
  color: rgba(255, 248, 240, .55);
  padding: 5px 12px;
  border: 1px solid rgba(255, 248, 240, .15);
  border-radius: 999px;
  transition: .2s;
}
.wr-lang a:hover { color: var(--cream); border-color: rgba(255, 248, 240, .4); }
.wr-lang a.active { color: var(--dark); background: var(--accent, #d77643); border-color: var(--accent, #d77643); }

/* ---- layout ---- */
.wr-main { max-width: 1200px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) 80px; }

/* ---- hero ---- */
.wr-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wr-badge {
  width: clamp(150px, 26vw, 230px);
  height: clamp(150px, 26vw, 230px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .55));
  animation: wr-float 6s ease-in-out infinite;
}
@keyframes wr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.wr-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--cream);
}
.wr-subtitle {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(1rem, 2.6vw, 1.7rem);
  color: var(--accent, #d77643);
}
.wr-intro {
  max-width: 720px;
  font-size: .82rem;
  line-height: 1.9;
  color: rgba(255, 248, 240, .55);
  margin-top: 6px;
}

/* contest switch */
.wr-switch { display: inline-flex; gap: 8px; margin-top: 18px; }
.wr-switch a {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .16em;
  font-size: 1.05rem;
  text-decoration: none;
  color: rgba(255, 248, 240, .6);
  padding: 8px 22px;
  border: 1px solid rgba(255, 248, 240, .18);
  border-radius: 999px;
  transition: .2s;
}
.wr-switch a:hover { color: var(--cream); border-color: var(--accent); }
.wr-switch a.active { color: var(--dark); background: var(--accent, #d77643); border-color: var(--accent, #d77643); }

/* ---- sections ---- */
.wr-section { margin-top: clamp(48px, 8vw, 84px); }
.wr-h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  letter-spacing: .14em;
  color: var(--cream);
  padding-bottom: 12px;
  margin-bottom: 26px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent, #d77643) 55%, transparent);
}
.wr-empty { color: rgba(255, 248, 240, .4); }

/* ---- special awards ---- */
.wr-awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.wr-award {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(255, 248, 240, .04);
  border: 1px solid rgba(255, 248, 240, .09);
  border-top: 3px solid var(--award, var(--accent));
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.wr-award:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.wr-award-tag {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .18em;
  font-size: .82rem;
  color: var(--award, var(--accent));
  padding: 12px 14px 0;
}
.wr-award-photo { margin: 10px 14px 0; border-radius: 10px; overflow: hidden; background: #060608; aspect-ratio: 4 / 3; }
.wr-award-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wr-award-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--cream);
  padding: 12px 14px 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wr-award-meta {
  font-size: .72rem;
  color: rgba(255, 248, 240, .55);
  padding: 2px 14px 14px;
}

/* ---- special awards (big images) ---- */
.wr-bigs { display: flex; flex-direction: column; gap: 30px; }
.wr-big {
  position: relative;
  background: rgba(255, 248, 240, .035);
  border: 1px solid rgba(255, 248, 240, .09);
  border-radius: 16px;
  overflow: hidden;
}
.wr-big-photo { background: #060608; }
.wr-big-photo img { width: 100%; height: auto; display: block; }
.wr-big-cap {
  padding: 16px 22px 20px;
  border-top: 3px solid var(--award, var(--accent));
}
.wr-big-tag {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .18em;
  font-size: .9rem;
  color: var(--award, var(--accent));
}
.wr-big-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .03em;
  color: var(--cream);
  line-height: 1.05;
  margin-top: 4px;
}
.wr-big-meta { font-size: .75rem; color: rgba(255, 248, 240, .55); margin-top: 4px; }

/* localized ordinal emblem: gold / silver / bronze medal (1º/1st, 2º/2nd, 3º/3rd) */
.wr-emblem {
  position: absolute;
  top: 18px; left: 18px; z-index: 3;
  width: clamp(82px, 10vw, 118px);
  height: clamp(82px, 10vw, 118px);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 32%, #18271d, #0a120c 72%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .6), inset 0 0 20px rgba(0, 0, 0, .65);
}
.wr-emblem-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)) drop-shadow(0 0 12px color-mix(in srgb, var(--medal-mid, #d4af37) 45%, transparent));
}
.wr-emblem-num {
  position: relative; z-index: 1;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: .9;
  color: var(--medal-hi, #fff);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}
.wr-emblem-lbl {
  position: relative; z-index: 1;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .2em;
  font-size: clamp(.52rem, .95vw, .72rem);
  color: var(--medal-mid, #d4af37);
}

/* ---- public selection gallery (small, 5 per line) ---- */
.wr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.wr-card {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(255, 248, 240, .04);
  border: 1px solid rgba(255, 248, 240, .08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.wr-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .5); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.wr-card.top { border-color: var(--accent, #d77643); box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 40%, transparent); }
.wr-rank {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 10px;
  background: rgba(13, 12, 18, .85);
  color: var(--cream);
  border-bottom-right-radius: 10px;
}
.wr-card.top .wr-rank { background: var(--accent, #d77643); color: var(--dark); }
.wr-photo { aspect-ratio: 4 / 3; background: #060608; }
.wr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wr-cap { padding: 9px 10px 11px; }
.wr-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: .95rem;
  letter-spacing: .03em;
  color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wr-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; margin-top: 5px; align-items: center; }
.wr-votes { font-size: .66rem; color: var(--accent, #d77643); }
.wr-jury {
  font-size: .56rem; letter-spacing: .06em;
  color: var(--lime);
  border: 1px solid color-mix(in srgb, var(--lime) 50%, transparent);
  border-radius: 999px;
  padding: 1px 7px;
}
.wr-honor {
  font-size: .56rem; letter-spacing: .06em;
  color: var(--sky);
  border: 1px solid color-mix(in srgb, var(--sky) 50%, transparent);
  border-radius: 999px;
  padding: 1px 7px;
}

/* ---- jury panel ---- */
.wr-jmembers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wr-jmember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 248, 240, .04);
  border: 1px solid rgba(255, 248, 240, .12);
  border-radius: 999px;
  transition: border-color .25s, transform .25s;
}
.wr-jmember:hover { border-color: var(--accent, #d77643); transform: translateY(-2px); }
.wr-jflag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 248, 240, .18);
  display: block;
  flex: 0 0 auto;
}
.wr-jname {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .06em;
  font-size: 1.15rem;
  color: var(--cream);
}

/* ---- jury comments ---- */
.wr-comments {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wr-comment {
  background: rgba(255, 248, 240, .035);
  border: 1px solid rgba(255, 248, 240, .09);
  border-left: 3px solid var(--accent, #d77643);
  border-radius: 12px;
  padding: 22px 24px;
}
.wr-comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 248, 240, .08);
}
.wr-comment-head .wr-jname { font-size: 1.45rem; }
.wr-comment-entry { margin-bottom: 14px; }
.wr-comment-entry:last-child { margin-bottom: 0; }
.wr-who {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .1em;
  font-size: 1rem;
  color: var(--accent, #d77643);
  margin-bottom: 4px;
}
.wr-ctext {
  font-size: .78rem;
  line-height: 1.9;
  color: rgba(255, 248, 240, .72);
}
.wr-cclosing {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 248, 240, .14);
  font-size: .78rem;
  line-height: 1.9;
  font-style: italic;
  color: rgba(255, 248, 240, .55);
}

/* ---- sponsors ---- */
.wr-sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.wr-sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 22px 18px;
  background: rgba(255, 248, 240, .03);
  border: 1px solid rgba(255, 248, 240, .07);
  border-radius: 12px;
  transition: border-color .25s, background .25s;
}
.wr-sponsor:hover { border-color: color-mix(in srgb, var(--accent, #d77643) 45%, transparent); background: rgba(255, 248, 240, .05); }
.wr-sponsor img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: .85;
  transition: opacity .25s, transform .25s;
}
.wr-sponsor:hover img { opacity: 1; transform: scale(1.05); }

/* ---- image lightbox ---- */
.wr-card .wr-photo { cursor: zoom-in; }
.wr-lightbox {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 6, 8, .93);
  padding: 4vmin;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}
.wr-lightbox.open { display: flex; }
.wr-lightbox img {
  max-width: 96vw; max-height: 92vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  cursor: default;
}
.wr-lightbox-close {
  position: absolute; top: 14px; right: 20px;
  font-family: "Bebas Neue", sans-serif; font-size: 2.4rem; line-height: 1;
  color: var(--cream, #fff8f0); background: none; border: 0; cursor: pointer;
  opacity: .8;
}
.wr-lightbox-close:hover { opacity: 1; }

/* ---- footer ---- */
.wr-foot { margin-top: clamp(48px, 8vw, 90px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.wr-lead { max-width: 620px; font-size: .78rem; line-height: 1.9; color: rgba(255, 248, 240, .5); }
.wr-home {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .16em;
  font-size: 1rem;
  text-decoration: none;
  color: var(--dark);
  background: var(--accent, #d77643);
  padding: 12px 30px;
  border-radius: 999px;
  transition: .2s;
}
.wr-home:hover { filter: brightness(1.1); transform: translateY(-2px); }

@media (max-width: 1100px) { .wr-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .wr-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .wr-grid { grid-template-columns: repeat(2, 1fr); }
  .wr-emblem { top: 12px; left: 12px; }
  .wr-logo img { height: 34px; }
}
