/* e-QSL (/qsl/) — additions to app.css. No inline styles anywhere: the CSP is style-src 'self'. */
.samples{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 10px}
.samples figure{margin:0;min-width:0}
.samples img,.reveal img,.vcard img,.photo img{display:block;width:100%;height:auto;border-radius:8px;border:1px solid var(--line);background:var(--seg)}
.samples img{aspect-ratio:1587/1020}
.samples figcaption{font-size:.82rem;color:var(--muted);text-align:center;margin-top:4px}
.samples figure.got figcaption{color:var(--ok);font-weight:600}
.samples figure.got img{border-color:var(--ok);box-shadow:0 0 0 2px var(--ok)}
.samples figcaption{font-size:.78rem;line-height:1.25}
@media (max-width:720px){.samples{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.samples{gap:6px}.samples figcaption{font-size:.74rem}}
.samples figure.sp figcaption{color:var(--gold)}
.samples figure.sp img{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
/* a design outside the draw, announced above it. Its colours are the card's own, in light and dark alike. */
.special{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:16px;align-items:center;color:#f3ecd8;border-color:#c9a13b;
  background:linear-gradient(160deg,#070b24,#0f1a4d 55%,#1c2f72)}
.special .sp-img{display:block;width:100%;height:auto;aspect-ratio:1587/1020;border-radius:8px;border:1px solid rgba(255,233,168,.45);
  background:#0f1a4d;box-shadow:0 0 0 1px rgba(0,0,0,.3),0 8px 22px rgba(0,0,0,.4)}
.special h2{margin:0 0 6px;color:#ffe9a8}
.special p{margin:0 0 8px}
.special .dim{color:#b9c0dc}
.special b{color:#ffe9a8}
.sp-eye{font-size:.8rem;font-weight:700;letter-spacing:.06em;color:#e6cf8f}
.special .sp-when{display:inline-block;margin-left:6px;padding:1px 10px;border-radius:999px;background:#ffe9a8;color:#1d1400;letter-spacing:0;white-space:nowrap}
.special.sp-phor{color:#111f44;border-color:#c9a13b;background:linear-gradient(160deg,#fff8dc,#fbe08a 55%,#f1c24a)}
.special.sp-phor .sp-img{background:#fbe08a;border-color:rgba(27,47,94,.35)}
.special.sp-phor h2,.special.sp-phor b{color:#1b2f5e}
.special.sp-phor .sp-eye{color:#7a5200}
.special.sp-phor .dim{color:#3d4a6e}
.special.sp-phor .sp-when{background:#1b2f5e;color:#fff8dc}
.special.sp-constitution{background:linear-gradient(160deg,#111f44,#1b2f5e 55%,#3d5a94);border-top:4px solid #a51931}
.special.sp-constitution .dim{color:#c9d2ea}
.special.sp-christmas{background:linear-gradient(160deg,#071d16,#0f3b2e 55%,#1d5c45)}
.special.sp-christmas .sp-img{background:#0f3b2e}
.special.sp-christmas .dim{color:#c9dcd2}
.special.sp-mamae{background:linear-gradient(160deg,#3d070d,#8a1c1f 55%,#a32422)}
.special.sp-mamae .sp-img{background:#8a1c1f}
.special.sp-mamae .dim{color:#ecd3c0}
@media (max-width:640px){.special{grid-template-columns:minmax(0,1fr)}}
.count{margin:10px 0 0;font-size:.95rem}
.count b{font-size:1.15rem;color:var(--gold);padding:0 4px;font-variant-numeric:tabular-nums}
/* paired fields keep their inputs on one line even when one label wraps (phones) */
@supports (grid-template-rows:subgrid){
  #form .fgrid>.f{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:span 3;gap:0}
  #form .fgrid>.f>span{align-self:end}
}
.rfonly{visibility:hidden}
form.rf .rfonly{visibility:visible}
.photo{display:flex;gap:10px;align-items:flex-end;margin-top:8px}
.photo img{width:160px}
.reveal{max-width:640px;margin:0 auto 10px;position:relative}
.reveal img{aspect-ratio:1587/1020;box-shadow:var(--shadow)}
.reveal.shuffling img{filter:blur(2px) saturate(.8);opacity:.75}
.reveal.pop img{animation:qslpop .55s cubic-bezier(.2,1.4,.4,1)}
@keyframes qslpop{from{transform:scale(.9) rotate(-1.5deg);opacity:.2}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.reveal.pop img{animation:none}.reveal.shuffling img{filter:none}}
.got{text-align:center;font-size:1.02rem;margin:0}
.got b{color:var(--gold)}
#result h2{font-size:1.2rem}
/* verification page */
.vcard{max-width:640px;margin:0 auto 12px}
.vstate{font-weight:700;font-size:1.05rem;margin:0 0 10px}
.vstate.good{color:var(--ok)}
.vstate.bad{color:var(--down)}
.vtbl{width:100%;border-collapse:collapse;margin:0 0 12px}
.vtbl th,.vtbl td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.vtbl th{font-weight:600;color:var(--muted);width:42%;font-size:.9rem}
.lookup{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}
.lookup .f{flex:1 1 200px;margin:0}
.walljump{margin:10px 0 0}
.photook{margin:8px 0 0}
.awardnote{max-width:640px;margin:8px auto 14px;text-align:center;color:var(--muted)}
.awardnote.yes{color:var(--text);border:1px solid var(--worked);border-radius:10px;padding:6px 10px}
/* ---- QSL wall. Card faces keep the colours of the printed designs (qslcard.py), in light and dark alike. ---- */
.wstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.wstat{background:var(--seg);border:1px solid var(--line);border-radius:10px;padding:8px 6px;text-align:center;min-width:0}
.wstat b{display:block;font-size:1.5rem;line-height:1.2;color:var(--gold);font-variant-numeric:tabular-nums}
.wstat span{display:block;font-size:.8rem;color:var(--muted)}
.wtools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0 8px}
.wtools input{flex:1 1 180px;width:auto;min-height:36px;padding:5px 12px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:.86rem;border-radius:999px;min-height:34px;padding:0 12px;cursor:pointer}
.chip b{color:var(--muted);font-weight:600;margin-left:2px;font-variant-numeric:tabular-nums}
.chip:hover{border-color:var(--accent)}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.chip[aria-pressed="true"] b{color:inherit}
.chip:focus-visible,.qt:focus-visible,.flip:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.wgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:20px 16px;margin:18px 0 14px;padding:0 2px}
.wgrid.few{grid-template-columns:repeat(auto-fit,minmax(165px,250px));justify-content:center}
.wmore{justify-content:center;margin:0 0 10px}
.qt{position:relative;display:block;aspect-ratio:1587/1020;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;
  cursor:pointer;border-radius:8px;container-type:inline-size;box-shadow:0 1px 2px rgba(8,14,30,.25),0 6px 14px rgba(8,14,30,.18);
  transition:transform .18s ease,box-shadow .18s ease}
.qt::before{content:"";position:absolute;z-index:3;left:50%;top:-5px;width:11px;height:11px;margin-left:-5px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#f08a80,#b5352c 60%,#7c1f18);box-shadow:0 2px 3px rgba(0,0,0,.35)}
.qt.r0{transform:rotate(-1.6deg)}.qt.r1{transform:rotate(.9deg)}.qt.r2{transform:rotate(-.6deg)}
.qt.r3{transform:rotate(1.5deg)}.qt.r4{transform:none}.qt.r5{transform:rotate(-1.1deg)}
.qt:hover,.qt:focus-visible{transform:translateY(-4px) scale(1.04);z-index:2;box-shadow:0 2px 4px rgba(8,14,30,.3),0 12px 24px rgba(8,14,30,.28)}
.qt.hot{transform:scale(1.07);z-index:2;outline:3px solid var(--worked);outline-offset:2px}
.qt.mine{outline:2px solid var(--worked);outline-offset:3px}
.qt.deal{animation:wdeal .45s cubic-bezier(.2,1.2,.4,1) backwards}
@keyframes wdeal{from{opacity:0;transform:translateY(18px) rotate(-7deg) scale(.88)}}
.qt-flag{position:absolute;z-index:3;right:-5px;top:-8px;background:var(--worked);color:#1d1400;font-size:.7rem;font-weight:700;line-height:1.5;
  padding:0 8px;border-radius:999px;box-shadow:0 1px 2px rgba(0,0,0,.3)}
.qt.fresh .qt-flag{background:#b5352c;color:#fff}
.qt.ghost{display:grid;place-items:center;text-align:center;border:2px dashed var(--line);box-shadow:none;color:var(--muted);font-size:.84rem;line-height:1.45;padding:6px}
.qt.ghost::before{content:none}
.qt.ghost:hover{border-color:var(--accent);color:var(--text);transform:none}
/* one card face — every size inside is an em of 7% of the container's width, so a tile and the spotlight draw the same card */
.qf{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;border-radius:.55em;padding:.7em .95em;
  font-size:11px;font-size:7cqw;line-height:1.2;color:#f7f0e0;background:#1b2f5e}
.qf>span{position:relative;z-index:1}
.qf-top{display:flex;justify-content:space-between;align-items:center;gap:.5em;font-size:.6em;font-weight:700;letter-spacing:.08em;white-space:nowrap}
.qf-via{border:.12em solid currentColor;border-radius:.4em;padding:.05em .45em;letter-spacing:.06em}
.qf-call{margin-top:auto;font-size:1.9em;font-weight:800;line-height:1.05;white-space:nowrap}
.qf-call.long{font-size:1.45em}.qf-call.xlong{font-size:1.08em}
.qf-sub{margin-top:.2em;font-size:.8em;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qf-date{margin:.2em 0 auto;font-size:.62em;opacity:.82}
.qf>.qf-star{position:absolute;right:.65em;bottom:.4em;font-size:1.15em;line-height:1;color:#c9a13b}
.qf.t-kram{background:linear-gradient(135deg,#1b2f5e,#111f44)}
.qf.t-kram::before{content:"";position:absolute;inset:.3em;border:.08em solid rgba(201,161,59,.6);border-radius:.35em}
.qf.t-kram .qf-call{color:#e6cf8f}
.qf.t-krungthep{color:#1a2440;padding-left:1.3em;background:#f7f0e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 30' preserveAspectRatio='none'%3E%3Cpath fill='%231b2f5e' fill-opacity='.14' d='M0 30V20h8v-6h6v6h6V8h8v12h5v-9l4-6 4 6v9h7V12h9v8h6V4h5v16h8v-7h8v7h6V10l5-5 5 5v10h8v-8h7v8h6V6h8v14h7v-5h9v5h6V12h7v8h6v10z'/%3E%3C/svg%3E") bottom/100% 34% no-repeat}
.qf.t-krungthep::before{content:"";position:absolute;left:0;top:0;bottom:0;width:.45em;background:#b5352c}
.qf.t-krungthep .qf-call{color:#1b2f5e}
.qf.t-krungthep .qf-via{color:#b5352c}
.qf.t-khluen{color:#fffdf7;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q5-6 10 0t10 0 10 0 10 0' fill='none' stroke='%23fff' stroke-opacity='.24' stroke-width='1.2'/%3E%3C/svg%3E") left bottom .35em/20% auto repeat-x,linear-gradient(160deg,#1f7a72,#125750)}
.qf.t-khluen>.qf-star{color:#e6cf8f}
.qf.t-ratri{color:#fff;background:radial-gradient(circle at 82% 30%,#f4e6b8 0 .55em,rgba(244,230,184,.18) .6em 1em,rgba(0,0,0,0) 1.05em),linear-gradient(180deg,#12122e,#2a1f52 55%,#6f437c)}
.qf.t-ratri .qf-call,.qf.t-ratri>.qf-star{color:#f4e6b8}
.qf.t-khemthit{color:#fff;background:repeating-radial-gradient(circle at 50% 120%,rgba(255,255,255,0) 0 1.1em,rgba(255,255,255,.22) 1.1em 1.18em),radial-gradient(130% 130% at 50% 100%,#3d8fc4,#1f5f96 60%,#174a7a)}
.qf.t-khemthit .qf-via,.qf.t-khemthit>.qf-star{color:#ffe9a8}
.qf.t-benjarong{color:#1b2f5e;background:#fbf8f0;border-top:.4em solid #111f44;border-bottom:.4em solid #111f44;box-shadow:inset 0 .12em 0 #c9a13b,inset 0 -.12em 0 #b5352c}
.qf.t-benjarong .qf-via{color:#b5352c}
.qf.t-phasin{color:#fff;background:linear-gradient(180deg,rgba(0,0,0,0) 0 78%,#c9a13b 78% 81%,#111f44 81% 100%),repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 .08em,rgba(0,0,0,0) .08em .32em),#8f2a25}
.qf.t-phasin .qf-call,.qf.t-phasin .qf-via{color:#e6cf8f}
.qf.t-wao{color:#1b2f5e;background:linear-gradient(180deg,#b9dff2,#dff0ee 70%,#f7f0e0)}
.qf.t-wao .qf-via,.qf.t-wao>.qf-star{color:#b5352c}
.qf.t-morse{color:#111f44;background:radial-gradient(120% 120% at 0 100%,#f7d476,#f1c24a 55%,#e9b23a)}
.qf.t-morse .qf-via,.qf.t-morse>.qf-star{color:#8f2a25}
.qf.t-bua{color:#125750;background:linear-gradient(180deg,#fdf1ec 0 80%,#125750 80% 100%)}
.qf.t-bua .qf-call,.qf.t-bua .qf-via,.qf.t-bua>.qf-star{color:#b0456a}
/* special edition (not in the draw): full moon over the river, krathong lights on the water */
.qf.t-krathong{color:#f3ecd8;background:radial-gradient(circle at 81% 50%,#ffe9a8 0 .62em,rgba(255,233,168,.2) .67em 1.25em,rgba(0,0,0,0) 1.3em),
  radial-gradient(circle at 58% 90%,#ffe9a8 0 .1em,rgba(255,200,90,.5) .14em,rgba(255,200,90,0) .46em),
  radial-gradient(circle at 73% 94%,#ffe9a8 0 .08em,rgba(255,200,90,.45) .11em,rgba(255,200,90,0) .38em),
  radial-gradient(circle at 44% 95%,#ffe9a8 0 .07em,rgba(255,200,90,.4) .1em,rgba(255,200,90,0) .32em),
  linear-gradient(180deg,rgba(0,0,0,0) 0 80%,rgba(255,233,168,.3) 80% 81%,rgba(9,14,44,.5) 81% 100%),
  linear-gradient(180deg,#070b24,#0f1a4d 46%,#1c2f72 80%)}
.qf.t-krathong .qf-call,.qf.t-krathong .qf-via,.qf.t-krathong>.qf-star{color:#ffe9a8}
/* special edition (not in the draw): Father's Day, 5 December, in remembrance of VR009 / HS1A. Monday yellow, a navy disc that transmits */
.qf.t-phor{color:#111f44;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='%231b2f5e' stroke='%23c9a13b' stroke-width='4'/%3E%3Cpath d='M34 52a16 16 0 0 1 32 0M24 52a26 26 0 0 1 52 0' fill='none' stroke='%23f6d98a' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='50' cy='52' r='5' fill='%23f6d98a'/%3E%3C/svg%3E") right .55em top 46%/2.3em 2.3em no-repeat,
  linear-gradient(160deg,#fff8dc,#fbe08a 55%,#f1c24a)}
.qf.t-phor::before{content:"";position:absolute;inset:.28em;border:.07em solid rgba(27,47,94,.35);border-radius:.38em}
.qf.t-phor .qf-call,.qf.t-phor .qf-via,.qf.t-phor>.qf-star{color:#1b2f5e}
/* special edition (not in the draw): Constitution Day, 10 December. The book on its two-tier tray, the flag along the top */
.qf.t-constitution{color:#f3ecd8;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='142 116 216 274'%3E%3Cg transform='translate(0 2.19)' stroke='%235c3d00' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath fill='%23e2bd5c' d='m 167.7344,137.67188 c 0.73844,0.51639 6.5635,4.97803 11.29882,19.53515 l 2.33985,8.12305 c 4.28606,15.78097 9.63019,35.38186 32.1914,35.65039 0.0155,-0.005 0.0255,0.0169 0.041,0.0117 0.0103,0 0.0112,-0.0117 0.0215,-0.0117 0.13427,0 0.2466,0.0215 0.38086,0.0215 l 7.72071,0 c -0.23755,0.46476 -0.42798,0.98666 -0.53125,1.55469 -1.2032,-0.35115 -2.62982,-0.45377 -4.17383,0.45508 l -8.11133,5.32226 c -0.35631,0.23755 -0.57392,0.60977 -0.61523,1.03321 -0.031,0.4286 0.13938,0.83191 0.44921,1.12109 l 6.82618,6.37305 c 1.4304,1.29614 3.68229,1.9145 5.5,1.51172 0.0671,1.12573 0.22776,2.36115 1.04882,3.47656 0.86238,1.1877 2.53105,2.07517 4.40039,2.48828 -1.35811,0.91402 -2.67667,1.80203 -3.23437,2.17383 -1.30648,-1.01213 -7.91992,-6.125 -7.91992,-6.125 -0.53705,-0.40279 -1.28035,-0.377 -1.78125,0.0723 0,0 -5.82128,5.27265 -7.22071,6.54297 -1.49237,-1.20836 -8.10742,-6.58789 -8.10742,-6.58789 -0.53705,-0.43893 -1.31689,-0.41384 -1.82812,0.0664 0,0 -5.78374,5.45816 -7.20899,6.80078 -1.5027,-1.26516 -7.77148,-6.54688 -7.77148,-6.54687 -0.53189,-0.4441 -1.30518,-0.43546 -1.81641,0.0293 0,0 -5.01418,4.50434 -6.51172,5.8418 -2.33409,-2.24115 -8.99675,-7.33818 -20.05273,-5.25195 -0.65066,0.11877 -1.11467,0.68667 -1.125,1.34765 0,0.66099 0.46388,1.23879 1.10937,1.37305 0.29435,0.062 7.19389,1.63287 8.9961,13.83008 1.77639,12.0113 5.92819,40.12885 18.17187,56.02343 6.41877,8.33459 13.74121,11.63788 19.91211,12.90821 l -5.13867,5.49023 c -0.48541,0.52156 -0.5006,1.31647 -0.041,1.85352 l 5.42774,6.31054 c -2.54582,1.75574 -8.56641,7.01759 -8.56641,17.61915 0,0.4286 -0.0312,0.79461 -0.0312,1.21289 0.0103,0.0723 -0.0265,0.12943 -0.006,0.1914 -0.19106,19.61778 -4.23954,31.45361 -12.10937,35.06836 -0.0826,0.0362 -0.0983,0.13391 -0.17578,0.18555 -0.14976,0.10328 -0.24173,0.21813 -0.33985,0.37304 -0.093,0.16009 -0.16111,0.28285 -0.19726,0.46876 -0.0155,0.0826 -0.0918,0.13947 -0.0918,0.23242 l 0,4.89648 c 0,0.76426 0.61925,1.38281 1.38867,1.38281 l 138.89844,0 c 0.76943,0 1.39063,-0.61855 1.39063,-1.38281 l 0,-4.89648 c 0,-0.0826 -0.0783,-0.14325 -0.0937,-0.22071 -0.031,-0.19106 -0.0979,-0.32038 -0.20118,-0.48047 -0.0981,-0.15491 -0.19204,-0.26976 -0.34179,-0.37304 -0.0723,-0.0516 -0.0912,-0.1494 -0.17383,-0.18555 -7.8595,-3.61991 -11.9144,-15.44989 -12.10547,-35.0625 0.0207,-0.0826 -0.0208,-0.1544 -0.0156,-0.24219 0,-0.39762 -0.0254,-0.75485 -0.0254,-1.16796 0,-10.60672 -6.02184,-15.8641 -8.5625,-17.625 l 5.42774,-6.30469 c 0.45959,-0.53705 0.44439,-1.33196 -0.041,-1.85352 l -5.14258,-5.49023 c 6.17607,-1.27033 13.49725,-4.57362 19.91602,-12.90821 12.24368,-15.89458 16.39548,-44.01213 18.17188,-56.02343 1.80221,-12.19721 8.70105,-13.76811 8.99023,-13.83008 0.65066,-0.13426 1.11523,-0.71206 1.11523,-1.37305 -0.005,-0.66098 -0.46848,-1.22888 -1.11914,-1.34765 -11.06114,-2.08623 -17.72254,3.0108 -20.05664,5.25195 -1.49237,-1.33746 -6.51172,-5.8418 -6.51172,-5.8418 -0.51122,-0.46475 -1.28647,-0.47339 -1.81836,-0.0293 0,0 -6.26361,5.28171 -7.77148,6.54687 -1.42524,-1.34262 -7.20898,-6.80078 -7.20898,-6.80078 -0.51123,-0.48025 -1.29108,-0.50534 -1.82813,-0.0664 0,0 -6.61435,5.37953 -8.10156,6.58789 -1.39943,-1.27032 -7.22461,-6.54297 -7.22461,-6.54297 -0.49574,-0.44926 -1.24546,-0.47505 -1.77734,-0.0723 0,0 -6.62001,5.11287 -7.93164,6.125 -0.55255,-0.3718 -1.86845,-1.25981 -3.22657,-2.17383 1.86935,-0.41311 3.5309,-1.30058 4.39844,-2.48828 0.82107,-1.11541 0.9817,-2.35083 1.04883,-3.47656 1.81254,0.40278 4.06959,-0.21558 5.5,-1.51172 l 6.82617,-6.37305 c 0.30984,-0.28918 0.48146,-0.69249 0.44531,-1.12109 -0.0362,-0.42344 -0.25306,-0.79566 -0.60937,-1.03321 l -8.11328,-5.32226 c -1.54402,-0.90885 -2.96994,-0.80623 -4.16797,-0.45508 -0.11361,-0.56803 -0.29957,-1.08993 -0.53711,-1.55469 l 7.71484,0 c 0.13943,0 0.25372,-0.0215 0.38281,-0.0215 0.0155,0 0.0151,0.0117 0.0254,0.0117 0.0155,0.005 0.0255,-0.0169 0.041,-0.0117 22.56638,-0.26853 27.91637,-19.87471 32.19727,-35.66602 l 2.33398,-8.10742 c 4.73016,-14.55712 10.56039,-19.01876 11.29883,-19.53515 z'/%3E%3Cpath fill='%23fbe7a6' d='m 146.93933,131.14946 c 0,0.0981 0.0826,0.16009 0.10328,0.25304 l 0,3.52696 c 0,0.76943 0.61967,1.3891 1.3891,1.3891 l 202.53971,0 c 0.76426,0 1.38393,-0.61967 1.38393,-1.3891 l 0,-15.30073 c 0,-0.76942 -0.61967,-1.3891 -1.38393,-1.3891 l -202.53972,0 c -0.76943,0 -1.3891,0.61968 -1.3891,1.3891 l 0,3.5218 c -0.0207,0.093 -0.10328,0.15492 -0.10328,0.25304 0,0.0981 0.0826,0.16008 0.10328,0.24786 l 0,3.37722 c -0.0207,0.0878 -0.10328,0.14975 -0.10328,0.24786 0,0.0981 0.0826,0.16009 0.10328,0.24787 l 0,3.38238 c -0.0207,0.0878 -0.10328,0.14975 -0.10328,0.2427 m 2.88163,-10.13159 199.76669,0 0,0.99664 -199.76669,0 z m 0,3.76967 199.76669,0 0,1.09992 -199.76669,0 z m 0,3.87811 199.76669,0 0,1.09992 -199.76669,0 z m 0,3.87811 199.76669,0 0,0.99664 -52.28481,0 c -0.315,-0.11877 -0.63516,-0.1136 -0.945,0 l -93.31224,0 c -0.315,-0.1136 -0.63,-0.11877 -0.945,0 l -52.27964,0 z'/%3E%3C/g%3E%3C/svg%3E") right .5em top 46%/2.4em 2.4em no-repeat,
  linear-gradient(180deg,#a51931 0 .18em,#f4f5f8 .18em .36em,#2d2a4a .36em .72em,#f4f5f8 .72em .9em,#a51931 .9em 1.08em,rgba(0,0,0,0) 1.08em),
  radial-gradient(120% 120% at 70% 90%,#3d5a94,#1b2f5e 55%,#111f44)}
.qf.t-constitution .qf-call,.qf.t-constitution .qf-via,.qf.t-constitution>.qf-star{color:#ffe9a8}
.qf.t-constitution .qf-top{margin-top:.5em}
/* special edition (not in the draw): Christmas 2569, an evergreen whose star transmits */
.qf.t-christmas{color:#eaf4ef;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cpath d='M50 22L30 52h10L22 80h12L14 108h72L66 80h12L60 52h10Z' fill='%231f6b4a' stroke='%23e6cf8f' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='44' y='108' width='12' height='10' fill='%235b3a22'/%3E%3Cpath d='M50 4l3.5 8 8.5.6-6.6 5.4 2.2 8.4L50 22l-7.6 4.4 2.2-8.4L38 12.6l8.5-.6Z' fill='%23f6d98a'/%3E%3Ccircle cx='40' cy='70' r='3.4' fill='%23b5352c'/%3E%3Ccircle cx='60' cy='92' r='3.4' fill='%23b5352c'/%3E%3Ccircle cx='56' cy='62' r='3' fill='%23f6d98a'/%3E%3Ccircle cx='38' cy='98' r='3' fill='%23f6d98a'/%3E%3C/svg%3E") right .5em top 42%/2.2em 2.64em no-repeat,
  radial-gradient(circle at 18% 22%,rgba(234,244,239,.5) 0 .05em,rgba(234,244,239,0) .12em),
  radial-gradient(circle at 46% 70%,rgba(234,244,239,.45) 0 .05em,rgba(234,244,239,0) .12em),
  radial-gradient(circle at 70% 14%,rgba(234,244,239,.4) 0 .04em,rgba(234,244,239,0) .1em),
  linear-gradient(160deg,#1d5c45,#0f3b2e 52%,#071d16)}
.qf.t-christmas::before{content:"";position:absolute;inset:.28em;border:.07em solid rgba(230,207,143,.5);border-radius:.38em}
.qf.t-christmas .qf-call,.qf.t-christmas .qf-via,.qf.t-christmas>.qf-star{color:#ffe9a8}
/* special edition (not in the draw): New Year 2570, the Year of the Goat. Gold leaf on red lacquer */
.qf.t-mamae{color:#f7ecd0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Ccircle cx='150' cy='150' r='141' fill='%232a0409' stroke='%23e6cf8f' stroke-width='9'/%3E%3Cpath transform='translate(150 150) scale(-.78 .78) translate(-158 -156)' fill='%23f0d58a' d='M116 188C122 206 128 222 124 240L119 268H135L139 242C145 226 150 210 150 192ZM198 164C220 164 244 176 256 191C261 198 259 205 256 212L246 250L230 245L239 208C227 199 212 195 197 193ZM92 136C76 130 66 114 70 94C76 109 87 114 97 126ZM88 141C72 144 60 136 56 122C65 131 76 132 87 131ZM92 132C110 116 152 111 188 116C206 119 217 131 217 151C217 173 204 190 184 196C160 204 136 201 118 197C96 196 80 180 80 158C80 146 84 138 92 132ZM83 158C77 184 93 204 91 226L92 281H116L109 234C113 216 131 205 135 186ZM185 184C185 204 193 220 191 236L184 281H208L205 240C209 222 213 204 213 180ZM186 122C196 100 204 82 214 66C220 56 232 54 240 60L269 88C275 94 275 102 269 106C263 110 255 108 249 106C243 108 239 112 237 118C233 136 227 152 214 170ZM248 106C255 119 253 134 241 148C243 134 237 123 239 110ZM229 60C222 32 194 17 160 27C185 32 201 45 209 67ZM214 73C199 70 189 78 185 91C198 91 209 86 217 79Z'/%3E%3C/svg%3E") right .55em top 46%/2.5em 2.5em no-repeat,
  radial-gradient(circle at 60% 22%,rgba(246,217,138,.55) 0 .05em,rgba(246,217,138,0) .3em),
  radial-gradient(circle at 52% 82%,rgba(246,217,138,.45) 0 .04em,rgba(246,217,138,0) .24em),
  linear-gradient(160deg,#a32422,#8a1c1f 52%,#3d070d)}
.qf.t-mamae::before{content:"";position:absolute;inset:.28em;border:.07em solid rgba(230,207,143,.55);border-radius:.38em}
.qf.t-mamae .qf-call,.qf.t-mamae .qf-via,.qf.t-mamae>.qf-star{color:#ffe9a8}
/* a sender's own card (shown with permission): the picture is the face, the callsign rides on a ribbon */
.qf-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0b1226}
.qf.has-img{color:#fff;background:#0b1226;padding-left:.95em}
.qf.has-img::before{content:none}
.qf.has-img::after{content:"";position:absolute;left:0;right:0;bottom:0;height:62%;background:linear-gradient(transparent,rgba(8,14,30,.88))}
.qf.has-img .qf-top{visibility:hidden}
.qf.has-img .qf-call,.qf.has-img .qf-call.long{color:#fff;font-size:1.15em}
.qf.has-img .qf-sub{font-size:.66em}
.qf.has-img .qf-date{margin-bottom:0}
.qf.has-img>.qf-star{color:#e6cf8f}
/* spotlight */
dialog.spot{width:min(660px,calc(100vw - 20px));max-width:none;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:10px 14px 16px;overflow:auto}
.spotbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}
.flip{position:relative;display:block;width:100%;max-width:calc((100vh - 230px)*1.556);max-width:calc((100dvh - 230px)*1.556);min-width:220px;aspect-ratio:1587/1020;
  margin:0 auto;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:12px;perspective:1400px;container-type:inline-size}
.flipin{position:absolute;inset:0;display:block;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.3,.9,.3,1)}
.flip.flipped .flipin{transform:rotateY(180deg)}
.side{position:absolute;inset:0;display:block;overflow:hidden;border-radius:12px;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  box-shadow:0 2px 6px rgba(8,14,30,.3),0 14px 34px rgba(8,14,30,.3)}
.side.back{transform:rotateY(180deg)}
.side .qf{border-radius:0}
.side .qf-img{object-fit:contain}
/* opened up, a sender's own card is shown clean: the caption under it already names the QSO */
.side .qf.has-img::after{content:none}
.side .qf.has-img .qf-call,.side .qf.has-img .qf-sub,.side .qf.has-img .qf-date,.side .qf.has-img>.qf-star{display:none}
.flip.swap .flipin{animation:wswap .32s ease}
@keyframes wswap{from{opacity:.15;transform:scale(.93) rotate(-2deg)}}
.bk{position:absolute;inset:0;display:flex;flex-direction:column;gap:.55em;padding:1em 1.3em;background:#fffdf7;color:#1a2440;
  font-size:13px;font-size:clamp(11px,2.8cqw,17px);line-height:1.3;border-top:.5em solid #1b2f5e}
.bk-h{font-size:1.2em;font-weight:800;color:#1b2f5e;padding-bottom:.25em;border-bottom:.12em solid #c9a13b}
.bk-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.45em 1em}
.bk-c{display:block;min-width:0}
.bk-c>span{display:block;font-size:.82em;color:#6b7390}
.bk-c>b{display:block;overflow-wrap:anywhere}
.bk-aw{margin-top:auto;align-self:flex-start;background:#f3e6bd;color:#5a4300;border-radius:999px;padding:.15em .8em;font-size:.9em;font-weight:600}
.spotcap{margin:12px 0 10px;text-align:center;font-weight:600}
.spotnav{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
@media (max-width:520px){
  .wstats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wgrid,.wgrid.few{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
}
@media (prefers-reduced-motion:reduce){
  .qt,.flipin{transition:none}
  .qt.deal,.flip.swap .flipin{animation:none}
  .qt:hover,.qt:focus-visible{transform:none}
}
