/* Sheephorn Pop-A-Shot leaderboard. Icy Sheephorn palette:
   night #10201c pine #1f3a34 pine2 #2c4d45 slate #3b4a54 lake #2f6f8f ice #a9e3f5 snow #fbfaf7 cream #f6efe2 gold #c98a3d (#1 only) */
@font-face { font-family: "Sheephorn Pixel"; src: url("/fonts/sheephorn-pixel.woff") format("woff"); font-display: block; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: #10201c; color: #e6f6fb; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: linear-gradient(180deg, #3b4a54 0, #1f3a34 320px, #10201c 900px) #10201c; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; }
.px { font-family: "Sheephorn Pixel", monospace; }
.scr { position: relative; max-width: 430px; margin: 0 auto; padding-bottom: 30px; z-index: 2; }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
[hidden] { display: none !important; }

.marq { position: relative; margin: 20px 12px 0; background: linear-gradient(180deg, #2c4d45, #1f3a34); border: 2px solid rgba(169,227,245,.55); border-radius: 18px 18px 6px 6px; padding: 50px 10px 22px; box-shadow: 0 0 28px rgba(120,210,240,.35), inset 0 0 18px rgba(169,227,245,.15); text-align: center; }
.marq::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -12px; height: 14px; background: linear-gradient(135deg, #fbfaf7 25%, transparent 25%) 0 0/14px 14px, linear-gradient(225deg, #fbfaf7 25%, transparent 25%) 0 0/14px 14px; opacity: .9; }
.marq.sm { padding-top: 46px; padding-bottom: 18px; }
.corner { position: absolute; left: 16px; top: 17px; width: 86px; opacity: .8; }
.lb { font-family: "Sheephorn Pixel", monospace; font-weight: normal; font-size: 31px; line-height: 1.2; letter-spacing: .06em; color: #fbfaf7; text-shadow: 0 0 8px #a9e3f5, 0 0 18px #2f6f8f, 3px 3px 0 #2f6f8f; }
.marq.sm .lb { font-size: 24px; }
.ledt { font-family: "Sheephorn Pixel", monospace; color: #a9e3f5; font-size: 12.5px; letter-spacing: .12em; margin-top: 8px; text-shadow: 0 0 8px #2f6f8f; }
.bulbs { position: absolute; inset: 4px; pointer-events: none; }
.bulb { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #e6f8ff; box-shadow: 0 0 8px #a9e3f5; animation: blink 1.1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

.hoop { position: relative; height: 84px; margin: 0 12px; background: #14272a; border-left: 6px solid #3b4a54; border-right: 6px solid #3b4a54; overflow: hidden; }
.bb { position: absolute; left: 50%; top: 10px; width: 120px; height: 58px; transform: translateX(-50%); border: 3px solid #fbfaf7; border-radius: 4px; box-shadow: 0 0 10px rgba(169,227,245,.5); }
.bb::after { content: ""; position: absolute; left: 38px; top: 22px; width: 38px; height: 26px; border: 3px solid #fbfaf7; border-bottom: 0; }
.rim { position: absolute; left: 50%; top: 64px; width: 56px; height: 8px; transform: translateX(-50%); border: 3px solid #e8743a; border-radius: 50%; z-index: 2; }
.net { position: absolute; left: 50%; top: 68px; width: 48px; height: 26px; transform: translateX(-50%); background: repeating-linear-gradient(60deg, transparent 0 6px, #e6f6fb 6px 7.5px), repeating-linear-gradient(-60deg, transparent 0 6px, #e6f6fb 6px 7.5px); clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); opacity: .85; }
.ball { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a4d, #d4561a); left: 50%; top: 30px; margin-left: -11px; animation: shoot 2.4s ease-in infinite; z-index: 1; }
@keyframes shoot { 0% { transform: translate(-130px, 60px) } 45% { transform: translate(-30px, -28px) } 60% { transform: translate(0, 4px) } 80% { transform: translate(0, 52px) } 100% { transform: translate(0, 52px); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .ball, .bulb { animation: none } .row { transition: none !important } }

.honest { position: relative; display: flex; align-items: center; gap: 10px; margin: 10px 12px; padding: 9px 12px; background: #0b1816; border: 1.5px solid #fbfaf7; border-radius: 14px; }
.honest .pf { flex: none; font-family: "Sheephorn Pixel", monospace; font-size: 12.5px; color: #10201c; background: #a9e3f5; border-radius: 6px; padding: 5px 7px; }
.honest .pt { font-size: 13.5px; font-weight: 700; color: #e6f6fb; line-height: 1.3; }
.devbar { margin: 0 12px 10px; background: #8c2f39; color: #fff; font-weight: 900; font-size: 11px; letter-spacing: .12em; text-align: center; border-radius: 8px; padding: 5px; }

.panel { position: relative; margin: 0 12px; background: #0b1816; border: 6px solid #3b4a54; border-radius: 14px; padding: 8px 0; }
.list { position: relative; }
.row { position: absolute; left: 0; right: 0; height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border-bottom: 1px dashed rgba(169,227,245,.14); transition: top 1.9s cubic-bezier(.55, 0, .25, 1), opacity .6s, transform .4s; }
.row .nm { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: "Sheephorn Pixel", monospace; font-size: 12.5px; color: #fbfaf7; letter-spacing: .04em; text-shadow: 0 0 6px rgba(169,227,245,.55); }
.row.you { background: rgba(169,227,245,.16); box-shadow: inset 0 0 0 2px #a9e3f5, 0 0 18px rgba(169,227,245,.55); border-radius: 8px; z-index: 3; }
.row.moving { background: #173540; }
.row.out { opacity: .25; }
.row.static { position: relative; }
.badge { width: 30px; height: 30px; flex: none; display: grid; place-items: center; font-family: "Sheephorn Pixel", monospace; font-size: 12.5px; color: #a9e3f5; }
.badge.m { border-radius: 50%; color: #10201c; }
.badge.g { background: radial-gradient(circle at 35% 30%, #fff1c9, #e0a84e 55%, #c98a3d); box-shadow: 0 0 12px #e0a84e; }
.badge.s { background: radial-gradient(circle at 35% 30%, #fff, #d7e3ea 55%, #93a6b2); box-shadow: 0 0 10px #d6e2ee; }
.badge.b { background: radial-gradient(circle at 35% 30%, #d8f3fb, #7fbfd6 55%, #2f6f8f); box-shadow: 0 0 10px #7fbfd6; }
.av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid #3b4a54; background: #2c4d45; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
svg.seg { height: 22px; flex: none; filter: drop-shadow(0 0 4px rgba(120,210,240,.85)); }
.empty { text-align: center; padding: 18px; color: #a9e3f5; font-size: 14px; }

.youline { margin: 0 12px 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; background: #0b1816; border: 2px solid #a9e3f5; border-radius: 12px; box-shadow: 0 0 16px rgba(169,227,245,.35); font-family: "Sheephorn Pixel", monospace; font-size: 12px; line-height: 1.7; color: #e6f6fb; }
.youline b { color: #a9e3f5; font-weight: normal; font-size: 16px; }

.cta { position: sticky; bottom: 18px; display: block; margin: 16px 16px 8px; width: calc(100% - 32px); z-index: 6; padding: 15px 10px; text-align: center; background: #a9e3f5; color: #10201c; font-family: "Sheephorn Pixel", monospace; font-size: 17.5px; letter-spacing: .06em; border-radius: 14px; box-shadow: 0 6px 0 #2f6f8f, 0 0 24px rgba(169,227,245,.6); }
.cta small { display: block; font: 700 11.5px/1.3 -apple-system, sans-serif; opacity: .85; letter-spacing: 0; margin-top: 3px; }
.card { position: relative; margin: 0 12px; background: #0b1816; border: 6px solid #3b4a54; border-radius: 14px; padding: 14px; }
.lbl { display: block; font-family: "Sheephorn Pixel", monospace; color: #a9e3f5; font-size: 12.5px; letter-spacing: .08em; margin-bottom: 8px; }
.txt { width: 100%; padding: 12px; outline: none; background: #14272a; border: 2px solid #2f6f8f; border-radius: 10px; color: #fbfaf7; font-family: "Sheephorn Pixel", monospace; font-size: 16px; margin-bottom: 12px; }
.scorebox { display: flex; justify-content: center; padding: 6px 0; }
.scorebox svg.seg { height: 70px; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.keys button { background: #3b4a54; color: #fbfaf7; font-family: "Sheephorn Pixel", monospace; font-size: 18px; padding: 11px 0; border-radius: 10px; box-shadow: 0 4px 0 #1f3a34; }
.keys .wide { grid-column: span 2; }
.photorow { display: flex; gap: 8px; margin-top: 12px; }
.photorow label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; font-weight: 700; font-size: 13px; cursor: pointer; background: #2c4d45; color: #fbfaf7; border-radius: 12px; }
.photorow input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.phnote { font-size: 11.5px; margin-top: 6px; opacity: .85; }
.err { min-height: 18px; font-size: 13.5px; font-weight: 800; margin: 8px 0 0; color: #ffd2c2; }
.big { font-family: "Sheephorn Pixel", monospace; font-size: 25px; line-height: 1.4; color: #fbfaf7; text-align: center; text-shadow: 0 0 10px #a9e3f5; }
.hint { font-size: 13px; font-weight: 700; text-align: center; color: #a9e3f5; margin: 6px 0 10px; }
.prow { position: relative; background: #0b1816; border: 6px solid #3b4a54; border-radius: 12px; padding: 10px 0; }
.sub { font-size: 13px; font-weight: 700; text-align: center; color: #e6f6fb; margin: 10px 0 2px; }
.lock { color: #ffd2c2; text-align: center; font-size: 14px; font-weight: 800; margin: 8px 0; }
.btns { display: flex; gap: 10px; margin-top: 12px; }
.btns button { flex: 1; padding: 15px 8px; font-family: "Sheephorn Pixel", monospace; font-size: 15px; border-radius: 12px; }
.btns .yes { background: #a9e3f5; color: #10201c; box-shadow: 0 5px 0 #2f6f8f; }
.btns .no { background: #3b4a54; color: #fbfaf7; box-shadow: 0 5px 0 #1f3a34; }
.btns .yes:disabled { opacity: .5; }
.ts { display: flex; justify-content: center; margin-top: 12px; min-height: 0; }
.banner { position: absolute; left: 10px; right: 10px; top: 150px; z-index: 8; text-align: center; background: #0b1816; border: 3px solid #a9e3f5; border-radius: 14px; padding: 14px 10px; box-shadow: 0 0 34px rgba(169,227,245,.75); animation: bpop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.banner b { display: block; font-family: "Sheephorn Pixel", monospace; font-weight: normal; font-size: 19px; color: #fbfaf7; text-shadow: 0 0 10px #a9e3f5; line-height: 1.5; animation: blink .45s 6; }
.banner span { display: block; font-family: "Sheephorn Pixel", monospace; font-size: 12.5px; color: #a9e3f5; margin-top: 6px; line-height: 1.6; }
@keyframes bpop { 0% { opacity: 0; transform: scale(.3) rotate(-4deg) } 100% { opacity: 1; transform: none } }
.down { margin: 0 12px 12px; padding: 14px; text-align: center; background: #0b1816; border: 2px dashed #a9e3f5; border-radius: 14px; font-weight: 800; color: #e6f6fb; }
.foot { text-align: center; padding: 18px 0 6px; }
.ownerlink { color: rgba(230,246,251,.35); font-size: 11px; text-decoration: none; }
.row .nm .host { color: #a9e3f5; }
.rankcard { position: relative; margin: 0 12px 10px; padding: 12px 14px; text-align: center; background: #0b1816; border: 2px solid #a9e3f5; border-radius: 14px; box-shadow: 0 0 18px rgba(169,227,245,.45); font-family: "Sheephorn Pixel", monospace; color: #e6f6fb; }
.rankcard .rc1 { font-size: 13px; color: #a9e3f5; letter-spacing: .06em; }
.rankcard .rc2 { font-size: 56px; line-height: 1.1; color: #fbfaf7; text-shadow: 0 0 12px #a9e3f5, 3px 3px 0 #2f6f8f; margin-top: 4px; }
.rankcard .rc3 { font-size: 12px; letter-spacing: .08em; }
.rankcard .bar { position: relative; height: 12px; margin: 14px 6px 6px; background: #1f3a34; border-radius: 7px; border: 1px solid rgba(169,227,245,.4); }
.rankcard .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, #2f6f8f, #a9e3f5); }
.rankcard .bar b { position: absolute; top: -9px; margin-left: -11px; font-size: 20px; line-height: 1; font-weight: normal; }
.rankcard .rc4 { font: 700 12.5px/1.3 -apple-system, sans-serif; color: #e6f6fb; }
.rankcard .rc4 b { color: #a9e3f5; }
.rankcard .rc5 { margin-top: 8px; font-size: 12px; }
.rankcard .rc5 span { color: #10201c; background: #a9e3f5; border-radius: 5px; padding: 2px 6px; }
.cropstage { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 6px auto 0; border-radius: 12px; overflow: hidden; touch-action: none; cursor: grab; background: #0b1816; outline: none; }
.cropstage:focus-visible { box-shadow: 0 0 0 3px #a9e3f5; }
.cropstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cropstage .ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(11,24,22,.72); border: 3px solid #a9e3f5; pointer-events: none; }
.zoomrow { display: flex; align-items: center; gap: 10px; margin: 12px 4px 0; font-family: "Sheephorn Pixel", monospace; color: #a9e3f5; font-size: 18px; }
.zoomrow input { flex: 1; accent-color: #a9e3f5; height: 28px; }
.av.mini { width: 44px; height: 44px; align-self: center; border-color: #a9e3f5; }
.linkbtn { display: block; margin: 6px auto 0; color: #a9e3f5; font-size: 12.5px; font-weight: 700; text-decoration: underline; }
