@font-face{font-family:"Covered By Your Grace";src:url(/fonts/cbyg.woff2) format("woff2");font-display:swap}
:root{--blue:#1e3ccd;--navy:#0d1d6e;--ink:#18181a;--muted:#5f5c55;--paper:#e5e3dd;--hand:"Covered By Your Grace","Comic Sans MS",cursive}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;background:var(--paper) url(/img/paper.webp) center top/cover;font-family:var(--hand);color:var(--ink);overflow-x:hidden}
body::after{content:"";position:fixed;inset:0;background:url(/img/grain.webp) 0 0/540px auto repeat;mix-blend-mode:multiply;opacity:.7;pointer-events:none;z-index:50}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
img{display:block}
a{color:var(--blue)}
p{margin:0}

/* ---------- textures ---------- */
.tx{-webkit-mask-image:url(/img/txmask.webp);mask-image:url(/img/txmask.webp);-webkit-mask-size:300px 300px;mask-size:300px 300px}
.card{background:url(/img/card.webp) center/100% 100% no-repeat;filter:drop-shadow(0 6px 8px rgba(0,0,0,.22))}
.strip{background:url(/img/strip.webp) center/100% 100% no-repeat;filter:drop-shadow(0 6px 8px rgba(0,0,0,.22))}
.inp{background:url(/img/input.webp) center/100% 100% no-repeat;filter:drop-shadow(0 3px 4px rgba(0,0,0,.15))}
.lin{background:url(/img/lined.webp) center/100% 100% no-repeat;filter:drop-shadow(0 3px 4px rgba(0,0,0,.15))}

/* ---------- buttons ---------- */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;text-decoration:none;color:inherit;border:0;font-family:inherit;line-height:1;padding:6px 10px 0;cursor:pointer;-webkit-tap-highlight-color:transparent;background-color:transparent;transition:scale .08s steps(1)}
.btn:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.btn svg{flex:none}
.bb{background:url(/img/btn_blue.webp) center/100% 100% no-repeat;color:#fffdf6;filter:drop-shadow(0 6px 0 var(--navy))}
.bp{background:url(/img/btn_paper.webp) center/100% 100% no-repeat;filter:drop-shadow(1.6px 0 0 var(--ink)) drop-shadow(-1.6px 0 0 var(--ink)) drop-shadow(0 1.6px 0 var(--ink)) drop-shadow(0 -1.6px 0 var(--ink)) drop-shadow(0 5px 0 var(--ink))}
.bb:hover,.bp:hover{scale:1.03}
.bb:active{translate:0 5px;filter:drop-shadow(0 1px 0 var(--navy))}
.bp:active{translate:0 4px;filter:drop-shadow(1.6px 0 0 var(--ink)) drop-shadow(-1.6px 0 0 var(--ink)) drop-shadow(0 1.6px 0 var(--ink)) drop-shadow(0 -1.6px 0 var(--ink)) drop-shadow(0 1px 0 var(--ink))}
.btn:disabled{background:url(/img/btn_off.webp) center/100% 100% no-repeat;color:#86837b;filter:none;cursor:not-allowed;scale:1;translate:0 0;animation:none}
.btn.busy{opacity:.7;pointer-events:none}
.link{display:block;margin:0 auto;background:none;border:0;font-family:inherit;color:var(--blue);text-decoration:underline;cursor:pointer;padding:8px 12px;font-size:25px}
.link.mute{color:var(--muted);font-size:23px}

/* ---------- fields ---------- */
.field{font-family:inherit;color:var(--ink);border:0;outline:0;background:transparent;width:100%;padding:8px 0 0}
.field::placeholder{color:#9b978d}
.field:focus{color:#0f1f80}
.inp:focus-within,.lin:focus-within{filter:drop-shadow(0 0 0 var(--blue)) drop-shadow(0 3px 0 var(--blue))}

/* ---------- layout ---------- */
.screen{max-width:430px;margin:0 auto;padding:10px 10px 30px;display:flex;flex-direction:column;align-items:stretch}
.art,.panel{display:flex;flex-direction:column;align-items:stretch}
.panel{gap:12px}
.kicker{position:relative;z-index:3;text-align:center;font-size:36px;line-height:1;margin:2px 0 0;font-weight:400}
.kicker+.stage{margin-top:-12.8%}
.kicker img{width:134px;margin:-2px auto 0}
.title{text-align:center;font-size:54px;line-height:1;margin:0;font-weight:400}
.sub{text-align:center;font-size:25px;line-height:1.15;color:#3a3a3f}
.stage{position:relative;width:100%;container-type:inline-size}
.stage>*{position:absolute}
.datestrip{display:flex;align-items:center;justify-content:center;height:74px;font-size:46px;line-height:1;padding-top:6px;rotate:-1.5deg;margin:-14px 8px 0;position:relative;z-index:2}
.where{display:flex;align-items:center;justify-content:center;gap:8px;font-size:27px;line-height:1}
.where .pin,.pin{width:20px;height:29px;flex:none}
.where .addr{display:none}
.blue{color:var(--blue)}
form.card,.card.pad{padding:28px 28px 26px;display:flex;flex-direction:column;gap:11px;margin:0}
.labelrow{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.labelrow label{font-size:31px;line-height:1;white-space:nowrap}
.labelrow span{font-size:21px;color:var(--muted);white-space:nowrap}
.inp{height:62px;padding:0 16px 0 34px;display:flex;align-items:center}
.inp .field{font-size:30px;height:56px}
.hint{font-size:21px;line-height:1.1;color:#6a675f;min-height:23px}
.hint.ok{color:var(--blue)}
.go{height:74px;font-size:48px}
.no{height:60px;font-size:29px}
.err{font-size:22px;color:#a3261c;text-align:center;min-height:0}
.err:empty{display:none}
.btnrow{display:flex;flex-direction:column;gap:11px}

/* event card */
.event{position:relative;padding:22px 20px 20px 22px;display:flex;gap:16px;align-items:center;min-height:172px}
.cal{width:104px;flex:none;background:#fffdf6;border:2.5px solid var(--ink);border-radius:8px;overflow:hidden;rotate:-3deg;box-shadow:3px 4px 0 rgba(24,24,26,.85);text-align:center}
.cal .m{position:relative;background:var(--blue);color:#fffdf6;font-size:24px;line-height:1;padding:8px 0 3px}
.cal .m::before,.cal .m::after{content:"";position:absolute;top:-5px;width:9px;height:14px;border-radius:5px;background:var(--ink)}
.cal .m::before{left:18px}.cal .m::after{right:18px}
.cal .d{font-size:66px;line-height:.9;padding-top:10px}
.cal .w{font-size:20px;line-height:1;padding:2px 0 8px}
.event .info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.event .hour{font-size:46px;line-height:.95}
.event .loc{display:flex;gap:7px;align-items:flex-start;font-size:19px;line-height:1.15}
.event .loc b{font-weight:400;font-size:25px;color:var(--blue)}
.actions{display:flex;gap:10px}
.actions .btn{height:62px;font-size:24px;padding-top:4px}

/* not going */
.note{font-size:30px;line-height:1}
.lin{height:136px;padding:4px 14px 0 34px}
.lin textarea{font-size:25px;line-height:34px;height:128px;resize:none;padding-top:6px}
.send{height:64px;font-size:36px}

/* returning */
.answer{align-items:center;gap:6px}
.answer .q{align-self:flex-start;font-size:26px;line-height:1}
.answer img{width:168px;rotate:-10deg;mix-blend-mode:multiply;margin:-4px 0 -2px}
.answer .when{font-size:21px;line-height:1.1;color:var(--muted)}
.answer .btn{height:58px;font-size:28px;margin-top:6px}
.answer .no-txt{font-size:34px;line-height:1;margin:14px 0 6px;color:var(--ink)}

/* confetti */
.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:40}
.cf{position:absolute;top:0;animation:conf linear infinite;animation-timing-function:steps(16);box-shadow:0 1px 1px rgba(0,0,0,.15)}

/* ---------- stop-motion ---------- */
@keyframes boil{0%{rotate:-.6deg}33%{rotate:.5deg}66%{rotate:-.2deg}}
@keyframes pop{0%{scale:.5;opacity:0}40%{scale:1.14;opacity:1}70%{scale:.95}100%{scale:1}}
@keyframes drop{0%{translate:0 -40cqw;opacity:0}25%{opacity:1}100%{translate:0 0}}
@keyframes hop{0%,100%{translate:0 0}50%{translate:0 -6cqw}}
@keyframes stamp{0%{scale:3.2;opacity:0}45%{scale:3.2;opacity:0}75%{scale:.86;opacity:1}88%{scale:1.04}100%{scale:1;opacity:1}}
@keyframes shake{0%,100%{translate:0 0}25%{translate:-6px 3px}50%{translate:5px -4px}75%{translate:-3px 2px}}
@keyframes nudge{0%,78%{rotate:0deg}82%{rotate:-3deg}86%{rotate:3deg}90%{rotate:-2deg}94%{rotate:1deg}}
@keyframes wake{0%{scale:.92}40%{scale:1.1}70%{scale:.97}100%{scale:1}}
@keyframes hatfall{0%{translate:0 0;rotate:0deg}12%{translate:-.5cqw -3.6cqw;rotate:-8deg}30%{translate:9.7cqw -4.6cqw;rotate:120deg}48%{translate:21.5cqw 15.4cqw;rotate:250deg}62%{translate:33.8cqw 59.5cqw;rotate:372deg}70%{translate:34.4cqw 54.9cqw;rotate:388deg}78%{translate:34.6cqw 59.5cqw;rotate:374deg}86%{translate:34.9cqw 57.9cqw;rotate:382deg}100%{translate:34.9cqw 59.5cqw;rotate:380deg}}
@keyframes poof{0%,55%{opacity:0;scale:.6}62%{opacity:1;scale:1}85%{opacity:1;scale:1.15}100%{opacity:0;scale:1.3}}
@keyframes conf{0%{translate:0 -60px;rotate:0deg}100%{translate:0 110vh;rotate:640deg}}
.boil{animation:boil .42s steps(1) infinite}
.pb{animation:pop .5s steps(4) both,boil .42s steps(1) .5s infinite}
.db{animation:drop .6s steps(5) both,boil .42s steps(1) .6s infinite}
.st{animation:stamp .9s steps(6) .3s both}
.shake{animation:shake .32s steps(4) 1s 1}
.hop{animation:hop .5s steps(2) .6s 6}
.nudge{animation:wake .4s steps(3) both,nudge 2.6s steps(1) .6s infinite}
.hf{animation:hatfall 2s steps(16) .6s both}
.poof{animation:poof 2s steps(8) .6s both}

/* ---------- desktop / tablet ---------- */
@media (min-width:700px){
  .screen{max-width:560px;padding-top:24px}
}
@media (min-width:960px){
  .screen{max-width:1180px;min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) 520px;gap:56px;align-items:center;padding:32px 40px}
  .art{max-width:600px;width:100%;justify-self:center}
  .kicker{font-size:50px}.kicker img{width:188px}
  .datestrip{height:104px;font-size:60px;margin:0;padding-top:8px}
  .datestrip .short{display:none}
  .where{font-size:32px;align-items:flex-start;line-height:1.1}
  .where .addr{display:block;font-size:24px;color:#4a4a4f}
  form.card{padding:34px 36px 36px}
  .btnrow{display:flex;flex-direction:row;gap:12px}
  .btnrow .go{flex:1;height:72px;font-size:46px}
  .btnrow .no{flex:1.15;height:72px;font-size:27px;white-space:nowrap}
}
@media (max-width:959px){ .datestrip .long{display:none} }
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ================= admin ================= */
.adm{max-width:430px;margin:0 auto;padding:20px 14px 48px;display:grid;gap:18px;grid-template-areas:"head" "counts" "filters" "list" "paste" "links"}
.adm[hidden],.adm-login[hidden]{display:none}
.a-head{grid-area:head}.a-counts{grid-area:counts}.a-filters{grid-area:filters}.a-list{grid-area:list}.a-paste{grid-area:paste}.a-links{grid-area:links}
.a-head .t{display:flex;align-items:center;gap:10px}
.a-head h1{margin:0;font-weight:400;font-size:50px;line-height:1;padding-top:6px}
.a-head img{width:40px}
.a-head .s{display:flex;justify-content:space-between;align-items:baseline;font-size:21px;color:var(--muted);margin-top:-2px}
.a-head .s button{font-size:21px;padding:4px 0;color:var(--muted)}
.a-counts{display:flex;gap:8px}
.a-counts .c{flex:1;min-width:0;height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:url(/img/btn_paper.webp) center/100% 100% no-repeat;filter:drop-shadow(0 4px 5px rgba(0,0,0,.15))}
.a-counts .n{font-size:54px;line-height:1;padding-top:6px}
.a-counts .l{font-size:21px;line-height:1}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip-f{font-family:inherit;font-size:22px;line-height:1;padding:8px 14px 4px;border-radius:99px;border:2.5px solid var(--ink);background:transparent;color:var(--ink);cursor:pointer}
.chip-f[aria-pressed="true"]{background:var(--ink);color:#fffdf6}
.search{display:flex;align-items:center;gap:8px;border-bottom:2.5px solid var(--ink);padding:4px 2px;margin-top:12px}
.search input{flex:1;min-width:0;font-family:inherit;font-size:26px;border:0;background:transparent;padding:6px 0 2px;outline:0}
.rows{display:flex;flex-direction:column}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 0 10px;border-bottom:2px dashed #b9b5ab}
.row .who{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.row .nm{font-size:28px;line-height:1;overflow-wrap:anywhere}
.row .meta{font-size:19px;line-height:1.15;color:var(--muted)}
.row .msg{font-size:21px;line-height:1.15;color:var(--blue);overflow-wrap:anywhere}
.tag-novo{border:2px solid var(--blue);color:var(--blue);border-radius:6px;padding:2px 7px 0;font-size:18px;line-height:1;margin-left:6px;vertical-align:3px}
.st-vai,.st-nao,.st-sem{border-radius:99px;font-size:22px;line-height:1;white-space:nowrap;padding:3px 12px 0}
.st-vai{background:var(--blue);color:#fffdf6;padding:5px 14px 1px}
.st-nao{border:2.5px solid var(--ink)}
.st-sem{border:2.5px dashed #8a877f;color:var(--muted)}
.ed-btn{width:44px;height:44px;flex:none;border:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:8px}
.ed-btn[aria-expanded="true"]{background:rgba(30,60,205,.12)}
.edit{flex:1 0 100%;background:rgba(255,255,255,.75);border:2.5px solid var(--ink);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px;margin:8px 0 4px}
.edit label{font-size:21px;line-height:1;color:var(--muted)}
.edit input,.edit select{font-family:inherit;font-size:24px;height:46px;padding:4px 10px 0;border:2px solid var(--ink);border-radius:6px;background:#fffdf6;color:var(--ink);width:100%}
.seg{display:flex}
.seg button{flex:1;font-family:inherit;font-size:21px;line-height:1;padding:10px 4px 6px;border:2.5px solid var(--ink);background:transparent;color:var(--ink);cursor:pointer}
.seg button+button{border-left:0}
.seg button:first-child{border-radius:8px 0 0 8px}.seg button:last-child{border-radius:0 8px 8px 0}
.seg button[aria-pressed="true"]{background:var(--blue);color:#fffdf6}
.edit .line{display:flex;gap:8px;align-items:center}
.small-btn{font-family:inherit;font-size:21px;padding:9px 12px 5px;border:2px solid var(--ink);border-radius:8px;background:#fffdf6;cursor:pointer;white-space:nowrap}
.small-btn.blue-b{border:2px dashed var(--blue);color:var(--blue);background:transparent}
.small-btn.danger{border:0;background:transparent;color:#a3261c;text-decoration:underline}
.small-btn.danger.sure{background:#a3261c;color:#fff;text-decoration:none;border-radius:8px}
.a-paste,.a-links{padding:26px 24px 24px;display:flex;flex-direction:column;gap:10px}
.a-paste label,.a-links .h{font-size:30px;line-height:1}
.a-paste .tip{font-size:20px;line-height:1.15;color:var(--muted)}
.a-paste textarea{font-family:inherit;font-size:24px;line-height:1.15;padding:8px 12px;border:2.5px solid var(--ink);border-radius:6px;background:rgba(255,255,255,.7);resize:vertical;min-height:130px}
.a-paste .btn,.a-links .btn{height:56px;font-size:26px}
.a-links .btn.bp{font-size:25px}
.a-links .btn.bb{font-size:23px}
.done{font-size:21px;color:var(--blue);min-height:0}
.done:empty{display:none}
.empty{font-size:24px;color:var(--muted);padding:18px 0;text-align:center}
.adm-login{max-width:420px;margin:0 auto;padding:60px 14px}
.adm-login form{padding:34px 30px 30px}
.adm-login h1{display:flex;align-items:center;gap:10px;margin:0 0 6px;font-weight:400;font-size:46px;line-height:1}
.adm-login h1 img{width:38px}
.adm-login .go{height:66px;font-size:38px;margin-top:6px}
.toast{position:fixed;left:50%;bottom:24px;translate:-50% 0;background:var(--ink);color:#fffdf6;font-size:24px;padding:10px 18px 6px;border-radius:10px;z-index:60;opacity:0;transition:opacity .15s}
.toast.on{opacity:1}
@media (min-width:960px){
  .adm{max-width:1280px;padding:36px 40px;grid-template-columns:380px minmax(0,1fr);column-gap:36px;row-gap:18px;align-items:start;
    grid-template-areas:"head filters" "counts list" "links list" "paste list"}
  .a-list{grid-row:2 / span 3}
  .a-filters{display:flex;justify-content:space-between;align-items:center;gap:16px}
  .a-filters .search{width:280px;margin-top:0}
  .rows.card{padding:26px 26px 30px}
  .row{display:grid;grid-template-columns:2.4fr 1.2fr 1.5fr 2.6fr 48px;gap:12px}
  .row .who{display:contents}
  .row .meta{grid-column:3;grid-row:1}
  .row .msg{grid-column:4;grid-row:1}
  .row .nm{grid-column:1;grid-row:1}
  .row .stc{grid-column:2;grid-row:1}
  .row .ed-btn{grid-column:5;grid-row:1}
  .edit{grid-column:1 / -1}
}
