/* Photo Contest panel (owner 11/6): Open → Hunts, card-contest.js. v2 (11/6 "make it more enticing"): what you win up
   front (two example cards in the real card frame), prize tiles in their finish, a 3-step how-to, a big countdown and empty
   "Your shot here" frames. Classes .phc-* only. */
.phc-sec { --phc-gold: #f2c14e; position: relative; margin: 18px 0; padding: 26px; border-radius: 20px; overflow: hidden; isolation: isolate;
    background: radial-gradient(90% 120% at 82% 18%, rgba(242,193,78,.16), transparent 60%), linear-gradient(160deg, #18130b 0%, #0f0c11 50%, #0a090e 100%);
    border: 1px solid rgba(242,193,78,.32); box-shadow: 0 22px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,236,190,.1); }
.phc-sec::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(242,193,78,.13); border-radius: 14px; pointer-events: none; z-index: 1; }
/* a real DayZ screenshot behind the right side, fading into the panel */
.phc-bg { position: absolute; inset: 0 0 0 38%; z-index: -1; background: url("/assets/cards/art/hd_shipwreck.webp") center 30% / cover no-repeat; opacity: .26;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.phc-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,14,.2), rgba(10,9,14,.85)); }

.phc-main { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 30px; align-items: center; }
.phc-txt { min-width: 0; }
.phc-eye { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--phc-gold); font-weight: 800; }
.phc-live { width: 8px; height: 8px; border-radius: 50%; background: #5fe08a; box-shadow: 0 0 0 0 rgba(95,224,138,.55); animation: phcPulse 2s ease-out infinite; }
@keyframes phcPulse { 0% { box-shadow: 0 0 0 0 rgba(95,224,138,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(95,224,138,0); } }
.phc-title { display: block; margin: 8px 0 8px; font-size: clamp(32px, 4.2vw, 54px); line-height: .98; font-weight: 900; color: #fff; letter-spacing: .005em; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.phc-title span { background: linear-gradient(100deg, #fff1c4 0%, #f2c14e 40%, #d99a1e 70%, #ffe7a3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phc-sub { margin: 0 0 18px; max-width: 620px; color: #d4cddc; font-size: 15px; line-height: 1.5; }
.phc-sub b { color: #fff; }

/* prize tiles: each one wears its finish (pearl Genesis, holographic card, gold title) */
.phc-pzs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.phc-pz { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.phc-pz::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.1) 48%, transparent 60%); background-size: 260% 100%; animation: phcSheen 6s ease-in-out infinite; }
.phc-pz.c::after { animation-delay: 1.2s; } .phc-pz.t::after { animation-delay: 2.4s; }
@keyframes phcSheen { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.phc-pz-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; font-weight: 900; font-size: 15px; letter-spacing: .02em; color: #241b0b; line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 4px rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.35); }
.phc-pz-mark small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; margin: 1px 0; }
.phc-pz em { display: block; font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b9b0c4; font-weight: 800; }
.phc-pz b { display: block; margin: 2px 0 1px; font-size: 21px; font-weight: 900; color: #fff; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phc-pz small { display: block; font-size: 12px; color: #a9a1b4; line-height: 1.25; }
.phc-pz.g { border-color: rgba(246,234,206,.42); background: linear-gradient(160deg, rgba(246,234,206,.14), rgba(255,255,255,.02)); }
.phc-pz.g .phc-pz-mark { grid-auto-flow: row; font-size: 17px; background: linear-gradient(135deg, #fffaf0 0%, #efe3c6 28%, #d6c18e 52%, #fbf4e3 70%, #c4a96f 100%); }
.phc-pz.g b { background: linear-gradient(100deg, #fffaf0, #e8d7ac 50%, #fff6df); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phc-pz.c { border-color: rgba(160,210,255,.38); background: linear-gradient(160deg, rgba(150,120,255,.12), rgba(90,220,255,.06) 60%, rgba(255,255,255,.02)); }
.phc-pz.c .phc-pz-mark { font-size: 12px; letter-spacing: .1em; color: #1b1630; background: conic-gradient(from 210deg, #ffd1f4, #c7b8ff, #a6e9ff, #b9ffd8, #fff3b0, #ffc9c9, #ffd1f4); }
.phc-pz.t { border-color: rgba(242,193,78,.4); background: linear-gradient(160deg, rgba(242,193,78,.13), rgba(255,255,255,.02)); }
.phc-pz.t .phc-pz-mark { font-size: 19px; background: linear-gradient(135deg, #fff1c4 0%, #f2c14e 40%, #b9821c 75%, #f6d88a 100%); }
.phc-pz.t b { font-size: 17px; color: #ffe7a3; white-space: normal; }

/* how to enter */
.phc-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.phc-steps li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07); }
.phc-steps li > b { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 900; color: var(--phc-gold);
    border: 1.5px solid rgba(242,193,78,.55); background: rgba(242,193,78,.08); font-variant-numeric: tabular-nums; }
.phc-steps strong { display: block; font-size: 14px; color: #fff; line-height: 1.15; }
.phc-steps small { display: block; font-size: 12px; color: #a9a1b4; line-height: 1.3; margin-top: 2px; }

/* right side: example cards, countdown, Enter button */
.phc-side { display: flex; flex-direction: column; gap: 14px; align-items: stretch; min-width: 0; }
.phc-fan { position: relative; height: 270px; margin: 0 auto; width: 100%; max-width: 350px; }
.phc-fc { position: absolute; top: 18px; left: 50%; width: 160px; transition: transform .3s ease; }
.phc-fc .tc-card { width: 100%; }
.phc-fc.back { transform: translateX(-100%) rotate(-7deg); filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.phc-fc.front { transform: translateX(-4%) translateY(10px) rotate(6deg); filter: drop-shadow(0 18px 28px rgba(0,0,0,.6)); z-index: 2; }
.phc-fan:hover .phc-fc.back { transform: translateX(-106%) rotate(-10deg); }
.phc-fan:hover .phc-fc.front { transform: translateX(2%) translateY(6px) rotate(8deg); }
.phc-ex { position: absolute; right: 4px; top: 0; z-index: 3; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: #f6d68a; background: rgba(10,9,14,.78); border: 1px solid rgba(242,193,78,.45); }
.phc-clock { padding: 12px 12px 10px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.32)); border: 1px solid rgba(242,193,78,.26); }
.phc-clock > small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #b8ad95; font-weight: 800; }
.phc-cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 6px; }
.phc-cd span { padding: 7px 0 5px; border-radius: 10px; background: linear-gradient(180deg, #1d1912, #120f0b); border: 1px solid rgba(242,193,78,.18); box-shadow: inset 0 1px 0 rgba(255,236,190,.06); }
.phc-cd b { display: block; font-size: 28px; font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.phc-cd i { display: block; margin-top: 3px; font-style: normal; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #a79e8a; font-weight: 800; }
.phc-clock > span { font-size: 12.5px; color: #cfc8d8; }
.phc-cta { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; border-radius: 14px; text-decoration: none;
    font-size: 15px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #241805;
    background: linear-gradient(180deg, #ffe08a 0%, #f2c14e 45%, #d79b22 100%); border: 1px solid #ffe7a3;
    box-shadow: 0 10px 26px rgba(242,193,78,.28), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(120,70,0,.35); transition: transform .15s ease, box-shadow .15s ease; }
.phc-cta i { font-style: normal; font-size: 18px; transition: transform .15s ease; }
.phc-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 48%, transparent 60%); background-size: 260% 100%; animation: phcSheen 4.5s ease-in-out infinite; }
.phc-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(242,193,78,.38), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(120,70,0,.35); }
.phc-cta:hover i { transform: translateX(3px); }
.phc-soon { text-align: center; font-size: 12.5px; color: #a79e8a; }

/* entries: the top shots, topped up with empty "Your shot here" frames */
.phc-entries { position: relative; z-index: 2; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(242,193,78,.14); }
.phc-eh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.phc-eh b { font-size: 15px; color: #fff; letter-spacing: .02em; }
.phc-eh span { font-size: 12.5px; color: #a9a1b4; }
.phc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phc-shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.1);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.phc-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.phc-shot:hover { transform: translateY(-2px); border-color: rgba(242,193,78,.55); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.phc-shot:hover img { transform: scale(1.04); }
.phc-shot.is-lead { border-color: rgba(242,193,78,.7); box-shadow: 0 0 0 1px rgba(242,193,78,.35), 0 10px 26px rgba(242,193,78,.12); }
.phc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 28%, transparent 55%, rgba(0,0,0,.82) 100%); }
.phc-num { position: absolute; left: 10px; top: 9px; font-size: 12px; font-weight: 900; color: #fff; letter-spacing: .04em; }
.phc-badge { position: absolute; right: 9px; top: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #1a1205; background: var(--phc-gold); }
.phc-badge.lead { background: rgba(0,0,0,.6); color: #f6d68a; border: 1px solid rgba(242,193,78,.6); }
.phc-meta { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.phc-meta b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: #fff; }
.phc-meta i { font-style: normal; font-size: 12.5px; font-weight: 800; color: #f6d68a; white-space: nowrap; }
.phc-slot { position: relative; aspect-ratio: 21 / 9; min-width: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center;
    background: radial-gradient(80% 90% at 50% 40%, rgba(242,193,78,.07), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.07); }
.phc-slot b { font-size: 14px; color: #e9e2d0; letter-spacing: .04em; }
.phc-slot small { font-size: 11.5px; color: #8f879a; }
/* camera viewfinder corners */
.phc-vf { position: absolute; inset: 12px; pointer-events: none; --c: rgba(242,193,78,.55); --l: 16px;
    background: linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 0 0 / 1.5px var(--l),
        linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px var(--l),
        linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 0 100% / 1.5px var(--l),
        linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 100% 100% / 1.5px var(--l);
    background-repeat: no-repeat; }
.phc-vf::after { content: ""; position: absolute; left: 50%; top: calc(50% - 18px); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 1.5px solid rgba(242,193,78,.35); }
.phc-slot b, .phc-slot small { position: relative; transform: translateY(10px); }
.phc-prev { position: relative; z-index: 2; display: block; margin-top: 14px; font-size: 12px; color: #a79e8a; }

@media (max-width: 1100px) { .phc-main { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; } .phc-steps { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
    .phc-sec { padding: 20px 16px; border-radius: 16px; }
    .phc-bg { inset: 0; opacity: .16; -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
    /* one column: title, sub, then the cards + countdown + button, then the prizes and steps */
    .phc-main { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
    .phc-txt { display: contents; }
    .phc-eye { order: 1; } .phc-title { order: 2; margin: 0; } .phc-sub { order: 3; margin: 0; } .phc-side { order: 4; } .phc-pzs { order: 5; } .phc-steps { order: 6; margin: 0; }
    .phc-pzs { grid-template-columns: 1fr; gap: 8px; }
    .phc-pz b { font-size: 19px; }
    .phc-steps { grid-template-columns: 1fr; gap: 6px; }
    .phc-fan { height: 248px; }
    .phc-fc { width: 150px; }
    .phc-cd b { font-size: 26px; }
    .phc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .phc-slot { aspect-ratio: auto; min-height: 0; height: 104px; }
    .phc-vf { inset: 9px; --l: 12px; }
    .phc-slot b { font-size: 13px; }
    .phc-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .phc-grid > .phc-shot:last-child:nth-child(odd) { aspect-ratio: 32 / 9; }
    .phc-steps li { padding: 8px 10px; }
    .phc-steps li > b { width: 30px; height: 30px; font-size: 12px; }
    .phc-eh { flex-direction: column; gap: 2px; }
}
@media (max-width: 420px) { .phc-meta b { font-size: 12.5px; } .phc-fc { width: 138px; } .phc-fan { height: 230px; } }
@media (prefers-reduced-motion: reduce) {
    .phc-shot, .phc-shot img, .phc-fc, .phc-cta, .phc-cta i { transition: none; } .phc-shot:hover img { transform: none; }
    .phc-live, .phc-pz::after, .phc-cta::after { animation: none; }
}
