/* /c/<id>: one person's share card, and the way in. */
@font-face { font-family: "Silkscreen"; src: url("/fonts/silkscreen-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0B0B0C; color: #EDEDED; }
body { display: grid; place-items: center; min-height: 100vh; padding: 28px 16px; background: radial-gradient(ellipse at 50% 40%, #1c130c, #0B0B0C 62%); }
.cp { display: grid; justify-items: center; gap: 22px; width: 100%; max-width: 920px; }
.cp-mark img { display: block; width: 244px; height: auto; image-rendering: pixelated; }
.cp-card { display: block; width: 100%; height: auto; border: 1px solid #2B2B32; box-shadow: 0 0 80px -20px rgba(247, 147, 26, .45); animation: cp-in .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.cp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; background: #F7931A; color: #0B0B0C; font: 700 15px/1 "Silkscreen", monospace; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 4px 4px 0 #7A420C; transition: transform .12s, box-shadow .12s; }
.cp-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #7A420C; }
.cp-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #7A420C; }
.cp-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.cp-alt { padding: 14px 18px; border: 1px solid #FFD08A; color: #FFD08A; font: 700 13px/1 "Silkscreen", monospace; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .12s, color .12s; }
.cp-alt:hover { background: #FFD08A; color: #0B0B0C; }
.cp-fine { margin: 0; text-align: center; line-height: 1.6; color: #6E6E78; font: 700 11px/1 "Silkscreen", monospace; letter-spacing: .14em; text-transform: uppercase; }
.cp-btn, .cp-alt { white-space: nowrap; }
@media (max-width: 480px) { .cp-btn { padding: 14px 18px; font-size: 12px; } .cp-alt { font-size: 11px; } }
@keyframes cp-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .cp-card { animation: none; } }

/* selected: a popup over the card, no script. The close link targets #ok, which hides it. */
#ok { position: absolute; top: 0; }
.cp-pop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(8, 8, 9, .84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cp-fade .35s ease both; }
#ok:target + .cp-pop { display: none; }
.cp-pop-in { position: relative; width: 100%; max-width: 520px; padding: 38px 26px 30px; text-align: center; background: #121215; border: 2px solid #FFD08A; box-shadow: 0 0 0 6px #0B0B0C, 0 0 120px -10px rgba(255, 208, 138, .5); animation: cp-stamp .6s .15s cubic-bezier(.2, 1.6, .4, 1) both, cp-glow 2.4s .8s ease-in-out infinite; }
.cp-x { position: absolute; top: 6px; right: 12px; color: #6E6E78; font: 400 30px/1 monospace; text-decoration: none; }
.cp-x:hover { color: #EDEDED; }
.cp-kick { margin: 0; color: #6EE7A8; font: 700 13px/1 "Silkscreen", monospace; letter-spacing: .16em; text-transform: uppercase; animation: cp-blink 1.4s steps(2) infinite; }
.cp-big { margin: 16px 0 10px; color: #FFD08A; font: 700 clamp(19px, 5.2vw, 34px)/1 "Silkscreen", monospace; letter-spacing: .02em; text-transform: uppercase; text-shadow: 3px 3px 0 #7A420C; }
.cp-who { margin: 0 0 24px; color: #EDEDED; font: 400 17px/1.45 system-ui, sans-serif; }
.cp-who b { color: #F7931A; }
.cp-fall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cp-fall i { position: absolute; top: -20px; width: 10px; height: 10px; background: #F7931A; animation: cp-drop 2.6s linear infinite; }
.cp-fall i:nth-child(3n) { background: #FFD08A; width: 8px; height: 8px; }
.cp-fall i:nth-child(3n + 1) { background: #6EE7A8; width: 6px; height: 10px; }
.cp-fall i:nth-child(4n) { background: #EDEDED; width: 6px; height: 6px; }
.cp-fall i:nth-child(1) { left: 4%; animation-delay: 0s; } .cp-fall i:nth-child(2) { left: 10%; animation-delay: 1.1s; }
.cp-fall i:nth-child(3) { left: 16%; animation-delay: .4s; } .cp-fall i:nth-child(4) { left: 22%; animation-delay: 1.8s; }
.cp-fall i:nth-child(5) { left: 28%; animation-delay: .9s; } .cp-fall i:nth-child(6) { left: 34%; animation-delay: 2.2s; }
.cp-fall i:nth-child(7) { left: 40%; animation-delay: .2s; } .cp-fall i:nth-child(8) { left: 46%; animation-delay: 1.5s; }
.cp-fall i:nth-child(9) { left: 52%; animation-delay: .7s; } .cp-fall i:nth-child(10) { left: 58%; animation-delay: 2s; }
.cp-fall i:nth-child(11) { left: 64%; animation-delay: .1s; } .cp-fall i:nth-child(12) { left: 70%; animation-delay: 1.3s; }
.cp-fall i:nth-child(13) { left: 76%; animation-delay: .6s; } .cp-fall i:nth-child(14) { left: 82%; animation-delay: 1.9s; }
.cp-fall i:nth-child(15) { left: 88%; animation-delay: .3s; } .cp-fall i:nth-child(16) { left: 94%; animation-delay: 1.6s; }
.cp-fall i:nth-child(17) { left: 7%; animation-delay: 2.4s; } .cp-fall i:nth-child(18) { left: 67%; animation-delay: 2.5s; }
@keyframes cp-fade { from { opacity: 0; } }
@keyframes cp-stamp { from { opacity: 0; transform: scale(1.35) rotate(-3deg); } }
@keyframes cp-glow { 50% { box-shadow: 0 0 0 6px #0B0B0C, 0 0 160px 0 rgba(255, 208, 138, .7); } }
@keyframes cp-blink { 50% { opacity: .35; } }
@keyframes cp-drop { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(540deg); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .cp-pop, .cp-pop-in, .cp-kick { animation: none; } .cp-fall { display: none; } }
