/* Build Contest Winners (/contest-winners/): archive of every build contest, top three per server plus People's Choice. */
.cw-page { --cw-gold: #ffcf6b; --cw-card: #141824; --cw-line: rgba(255, 255, 255, 0.09); --cw-dim: #aab4ca; }
.cw { padding-bottom: 3rem; }
.cw-hero { position: relative; min-height: clamp(220px, 25vw, 400px); display: flex; align-items: center; background: #0b1020 url("/images/contest/winners-header.webp") right center / cover no-repeat; border-bottom: 1px solid var(--cw-line); }
.cw-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 18, 0.92) 0%, rgba(8, 10, 18, 0.7) 40%, rgba(8, 10, 18, 0) 70%); pointer-events: none; }
.cw-hero-in { position: relative; padding: 2rem 0; }
.cw-hero h1 { margin: 0.3rem 0 0.5rem; max-width: 18ch; font: 900 clamp(2rem, 4.4vw, 3.4rem)/1.05 "Cinzel", serif; color: var(--cw-gold); text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7); }
.cw-hero p { margin: 0; max-width: 34rem; color: #e3e8f4; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.cw-crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--cw-dim); }
.cw-crumbs a { color: var(--cw-dim); text-decoration: none; } .cw-crumbs a:hover { color: #fff; }
.cw-body { padding-top: 1.6rem; }
.cw-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 2rem; }
.cw-how div { padding: 0.9rem 1rem; border: 1px solid var(--cw-line); border-radius: 12px; background: var(--cw-card); }
.cw-how b { display: block; color: var(--cw-gold); font-size: 0.95rem; }
.cw-how span { color: var(--cw-dim); font-size: 0.9rem; line-height: 1.45; }
.cw-loading, .cw-empty { color: var(--cw-dim); }
.cw-err { padding: 1rem 1.2rem; border: 1px solid rgba(255, 107, 129, 0.4); border-radius: 12px; background: rgba(255, 107, 129, 0.08); }
.cw-err button { margin-top: 0.5rem; }
.cw-contest { margin: 0 0 2.4rem; }
.cw-ch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--cw-line); }
.cw-ch h2 { margin: 0; font: 800 clamp(1.35rem, 2.4vw, 1.8rem)/1.2 "Cinzel", serif; color: #fff; }
.cw-ch .cw-when { color: var(--cw-dim); font-size: 0.92rem; }
.cw-ch .cw-open { margin-left: auto; color: var(--cw-gold); font-weight: 700; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.cw-ch .cw-open:hover { text-decoration: underline; }
.cw-live { padding: 1rem 1.2rem; border: 1px dashed rgba(255, 207, 107, 0.4); border-radius: 12px; background: rgba(255, 207, 107, 0.05); color: #e3e8f4; }
.cw-live b { color: var(--cw-gold); }
.cw-srvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.cw-srv { min-width: 0; padding: 0.9rem; border: 1px solid var(--cw-line); border-radius: 14px; background: var(--cw-card); }
.cw-srv h3 { margin: 0 0 0.7rem; font: 700 1.05rem/1.2 Inter, sans-serif; color: #fff; }
.cw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.cw-w { display: grid; grid-template-columns: 2.2rem 96px minmax(0, 1fr); gap: 0.7rem; align-items: center; padding: 0.45rem; border-radius: 10px; text-decoration: none; color: inherit; background: rgba(255, 255, 255, 0.02); border: 1px solid transparent; }
a.cw-w:hover, a.cw-w:focus-visible { border-color: rgba(255, 207, 107, 0.45); background: rgba(255, 207, 107, 0.05); outline: none; }
.cw-place { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font: 800 0.95rem/1 Inter, sans-serif; color: #1b1406; background: #c9ced8; }
.cw-place.is-1 { background: linear-gradient(145deg, #ffe39a, #e2a92a); }
.cw-place.is-2 { background: linear-gradient(145deg, #eef1f6, #a9b1bf); }
.cw-place.is-3 { background: linear-gradient(145deg, #f2c08f, #b5703a); }
.cw-place.is-pc { background: linear-gradient(145deg, #ff8a94, #e63946); color: #fff; }
.cw-place svg { width: 1.1rem; height: 1.1rem; }
.cw-thumb { width: 96px; aspect-ratio: 16 / 10; border-radius: 7px; object-fit: cover; background: #0b0e16; display: block; }
.cw-thumb.is-none { display: grid; place-items: center; color: #4d5568; font-size: 0.75rem; }
.cw-txt { min-width: 0; }
.cw-txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.cw-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cw-dim); font-size: 0.82rem; }
.cw-txt em { font-style: normal; color: var(--cw-gold); font-size: 0.8rem; font-weight: 700; }
.cw-pc { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--cw-line); }
.cw-pc > span { display: block; margin-bottom: 0.4rem; color: #ff8a94; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cw-none { color: var(--cw-dim); font-size: 0.9rem; margin: 0; }
@media (max-width: 760px) {
  .cw-how { grid-template-columns: 1fr; }
  .cw-hero { background-position: 70% center; }
  .cw-hero::before { background: linear-gradient(90deg, rgba(8, 10, 18, 0.92) 0%, rgba(8, 10, 18, 0.75) 60%, rgba(8, 10, 18, 0.35) 100%); }
  .cw-srvs { grid-template-columns: 1fr; }
  .cw-ch .cw-open { margin-left: 0; }
  .cw-w { grid-template-columns: 2.2rem 76px minmax(0, 1fr); }
  .cw-thumb { width: 76px; }
}
