@font-face{font-family:Dopis;src:url('../fonts/dopis-serif.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:Dopis;src:url('../fonts/dopis-serif-bold.woff') format('woff');font-weight:700;font-display:swap}
:root{color-scheme:dark;font-family:Dopis,Palatino,'Palatino Linotype',Georgia,serif;background:#100c0a;color:#d8cbbd;--ink:#201910}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100svh;isolation:isolate}button,input{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid #7c3430;outline-offset:4px}
.backdrop{position:fixed;inset:0;z-index:-3;background:linear-gradient(#00000045,#00000010 65%,#00000075),url('../images/dopis-pokoj-fotky-v2.webp') center/cover}.backdrop:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 55%,transparent 20%,#080605b0 95%)}
.smoke{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none}.smoke i{position:absolute;width:100vw;height:70vh;left:-40vw;top:-15vh;background:radial-gradient(ellipse at 40% 60%,#c1b6a912,transparent 50%);filter:blur(25px);animation:drift 28s ease-in-out infinite alternate}.smoke i:nth-child(2){left:20vw;top:30vh;opacity:.6;animation-delay:-16s}@keyframes drift{to{transform:translate(30vw,8vh) scale(1.2)}}
.top{padding:26px clamp(22px,4vw,60px);display:flex;justify-content:space-between;gap:20px;align-items:center}.brand{font-size:25px;letter-spacing:-.04em;text-decoration:none}.back{font:12px/1.5 system-ui,sans-serif;text-decoration:none;color:#c3b7aa}.preview-label{position:absolute;left:50%;top:14px;transform:translateX(-50%);font:10px/1.5 system-ui,sans-serif;color:#cfbda9;text-align:center;white-space:nowrap;padding:6px 10px;background:#160f0be6;border:1px solid #8b6b4a33;pointer-events:none;margin:0}
.portal{width:min(720px,calc(100% - 36px));margin:20px auto 35px}.correspondence{position:relative;width:100%;height:740px;--envelope-h:460px;--envelope-bottom:42px;filter:drop-shadow(0 24px 24px #0008);transition:none}
.desk-book{position:absolute;z-index:0;pointer-events:none;left:50%;bottom:-8px;width:132%;height:290px;transform:translateX(-50%);background:url('../images/dopis-kniha-v1.webp') center/100% 100% no-repeat;filter:brightness(.76) drop-shadow(0 14px 15px #0009)}
.envelope-back,.envelope-front,.flap{position:absolute;left:0;right:0;height:var(--envelope-h);bottom:var(--envelope-bottom);background:url('../images/dopis-obalka-spina-v3.webp') center/100% 100% no-repeat;pointer-events:none}
.envelope-back{z-index:1;clip-path:polygon(0 43%,100% 43%,100% 100%,0 100%);transition:clip-path .55s cubic-bezier(.25,.7,.25,1)}.unsealed .envelope-back,.opened .envelope-back{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}
.envelope-front{z-index:5;clip-path:polygon(0 44%,50% 65%,100% 44%,100% 100%,0 100%)}
.flap{z-index:7;clip-path:polygon(5% 43%,95% 43%,50% 68%);opacity:1;transition:opacity .22s}.unsealed .flap,.opened .flap{opacity:0}.fold-left,.fold-right,.fold-bottom,.paper-stains{display:none}
.letter{position:absolute;left:8%;width:84%;bottom:100px;z-index:3;color:var(--ink);color-scheme:light;background:url('../images/dopis-papir-zniceny-v2.webp') center/100% 100% no-repeat;padding:54px 68px 142px;opacity:0;visibility:hidden;transform:translateY(100px);transition:transform .8s cubic-bezier(.2,.65,.22,1),opacity .4s,visibility 0s .8s;pointer-events:none;overflow-wrap:anywhere}
.opened .letter{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:transform .8s cubic-bezier(.2,.65,.22,1),opacity .5s,visibility 0s}
.eyebrow{text-transform:uppercase;letter-spacing:.17em;font:11px/1.7 Dopis,serif;text-align:center;margin:0 0 24px;color:#453424}.letter h1{font-weight:400;font-size:49px;letter-spacing:-.025em;line-height:1.07;margin:0 0 28px;text-align:center;color:#231a11;text-wrap:balance}.field{margin:0 0 21px;min-width:0}label{display:block;font-size:17px;font-weight:700;margin-bottom:5px;line-height:1.4;color:#342214}
input{display:block;width:100%;min-width:0;max-width:100%;padding:9px 9px 10px;min-height:46px;border:0;border-bottom:1px solid #6c493f;border-radius:2px 2px 0 0;background:#fff6de5c;color:#21180f;outline:none;font-size:18px;line-height:1.4;transition:background .2s,border-color .2s;box-shadow:none}input::placeholder{color:#554233;opacity:1;font-size:16px}input:focus{border-color:#6c292c;background:#fff7e5b0;box-shadow:0 1px 0 #6c292c}input:-webkit-autofill{-webkit-text-fill-color:#21180f;box-shadow:0 0 0 1000px #e5d7bd inset}
small{display:block;font-size:13px;line-height:1.5;margin-top:7px;color:#453525}.password-field{position:relative}.password-field input{padding-right:46px}.reveal{position:absolute;right:0;bottom:0;width:44px;height:46px;border:0;background:none;color:#473223;font-size:19px}
.submit{display:flex;align-items:center;justify-content:center;gap:24px;width:min(240px,100%);min-height:49px;margin:24px auto 0;padding:11px 18px;background:linear-gradient(115deg,#64262c,#3d1117);border:1px solid #8e53503b;border-radius:2px;box-shadow:0 3px 7px #2d160f25,inset 0 1px #b779713b;color:#fff1dc;font-size:18px;transition:background .2s}.submit:hover:not(:disabled){background:#6b2930}.submit:disabled{opacity:.65}.submit span{color:#ddbf9f}.switch{display:block;padding:10px 4px;margin:9px auto 0;border:0;background:transparent;color:#43271c;font-size:15px;line-height:1.5;text-decoration:underline;text-underline-offset:4px;min-height:44px}.switch:hover{color:#63262b}
.request-hint{font-size:15px;line-height:1.5;color:#453325;text-align:center;margin:0 0 19px;text-wrap:balance}.password-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.password-pair label{font-size:15px}.password-pair input::placeholder{font-size:14px}.registering h1{font-size:45px;margin-bottom:17px}.registering .field{margin-bottom:16px}.registering .eyebrow{margin-bottom:22px}.registering .submit{margin-top:18px}
.status{font:14px/1.5 Dopis,serif;text-align:center;color:#332519;margin:10px 0 0}.status:empty{display:none}.status.error{color:#741d22;font-weight:700}
.seal{position:absolute;z-index:10;left:50%;bottom:calc(var(--envelope-bottom) + 90px);width:122px;height:122px;transform:translateX(-50%) rotate(-5deg);background:none;border:0;padding:0;filter:drop-shadow(2px 6px 3px #442615aa)}.wax-half{position:absolute;inset:0;background:url('../images/dopis-pecet-vosk.webp') center/contain no-repeat;transition:transform .48s cubic-bezier(.3,.1,.75,1),opacity .35s .13s}.wax-left{clip-path:polygon(0 0,52% 0,48% 23%,55% 41%,46% 55%,53% 67%,46% 83%,50% 100%,0 100%)}.wax-right{clip-path:polygon(52% 0,100% 0,100% 100%,50% 100%,46% 83%,53% 67%,46% 55%,55% 41%,48% 23%)}.breaking .wax-left,.opened .wax-left{transform:translate(-24px,43px) rotate(-22deg);opacity:0}.breaking .wax-right,.opened .wax-right{transform:translate(29px,51px) rotate(26deg);opacity:0}.breaking .seal,.opened .seal{pointer-events:none}
.envelope-caption{position:absolute;left:50%;bottom:-4px;transform:translateX(-50%);z-index:12;border:0;background:#140f0dbf;padding:8px 12px;color:#eadac5;white-space:nowrap;font-size:17px;line-height:1.5;transition:opacity .2s;min-height:44px}.envelope-caption span{font-size:13px;margin-left:17px;color:#ceb298}.breaking .envelope-caption,.opened .envelope-caption{opacity:0;pointer-events:none}
.account{margin:90px auto 40px;padding:42px 38px;max-width:470px;background:linear-gradient(115deg,#c9bcab,#b2a493);color:#29221c;box-shadow:0 25px 60px #0008;text-align:center}.account .eyebrow{margin:16px 0}.account h2{font-size:36px;font-weight:400;line-height:1.1;overflow-wrap:anywhere}.account-mark{width:66px;height:66px;margin:auto;border-radius:50%;background:#5a2026;color:#d7bca3;display:grid;place-items:center;font-size:22px}.badge{font:11px/1.5 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#60242a}.account p:not(.eyebrow){font-size:16px;line-height:1.7}.account-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:24px}.account-actions button{padding:10px 14px;min-height:44px;background:none;border:1px solid #624b3b66;color:#3e2b21;font-size:15px}.consumed{animation:arrive .5s both}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#burn-canvas{position:fixed;inset:0;width:100%;height:100%;z-index:30;pointer-events:none}.burning .letter{transition:none;pointer-events:none}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){.top{padding:22px 18px}.brand{font-size:23px}.back{font-size:11px}.preview-label{top:66px;font-size:9px}.portal{width:calc(100% - 24px);margin-top:32px}.correspondence{--envelope-h:305px;--envelope-bottom:28px}.letter{left:4%;width:92%;bottom:68px;padding:44px 32px 110px}.letter h1{font-size:37px;margin-bottom:23px}.eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:21px}.field{margin-bottom:17px}label{font-size:16px}input{font-size:17px}.password-pair{grid-template-columns:1fr;gap:0}.password-pair label{font-size:16px}.password-pair input::placeholder{font-size:16px}.registering h1{font-size:35px}.registering .field{margin-bottom:12px}.request-hint{font-size:14px;margin-bottom:14px}small{font-size:12px}.submit{font-size:17px;margin-top:19px;min-height:47px}.switch{font-size:14px}.desk-book{width:108%;height:188px;bottom:0}.seal{width:92px;height:92px;bottom:calc(var(--envelope-bottom) + 57px)}.account{margin-top:50px;padding:32px 22px}.backdrop{background-position:43% center}.envelope-caption{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.smoke{display:none}.opened .wax-half{opacity:0;transform:none}}
.desk-book{max-width:calc(100vw - 12px)}
@media(max-width:600px){.letter .eyebrow{font-size:9px;letter-spacing:.08em}}
.messenger-layer{position:fixed;inset:0;z-index:-2;background:url('../images/posel-svitek-v1.webp') center/cover;opacity:0;transition:opacity .9s,filter .7s;pointer-events:none}.rite-active .messenger-layer{opacity:1}.scroll-open .messenger-layer{filter:blur(2px) brightness(.65)}.rite-active .back{visibility:hidden}.sending .letter{opacity:0;transform:translateY(85px) scale(.95);transition:opacity .5s,transform .65s;pointer-events:none}.sending .envelope-front,.sending .envelope-back,.sending .flap,.sending .desk-book{opacity:0;transition:opacity .65s .05s}
.ritual{width:100%;min-height:calc(100svh - 120px)}.ritual-intro{position:fixed;top:95px;left:20px;right:20px;margin:0;text-align:center;color:#f1dfc5;text-shadow:0 2px 7px #000;font-size:22px;animation:arrive 1s both}.ritual-intro span{display:block;font-size:16px;color:#d3bba2;margin-top:9px}.take-scroll{position:fixed;z-index:8;border:0;border-radius:40%;background:transparent;color:#fff1d9;animation:arrive 1s both}.take-scroll:after{content:'';position:absolute;inset:10%;border-radius:50%;box-shadow:0 0 32px #f4b25733;pointer-events:none}.take-scroll:hover:after{box-shadow:0 0 38px #f4b25766}.take-scroll>span{position:absolute;left:50%;bottom:-39px;transform:translateX(-50%);white-space:nowrap;padding:8px 14px;background:#130d08c9;border-bottom:1px solid #ad7b4d;color:#f6e2c6;font-size:18px}.take-scroll:focus-visible{outline:2px solid #ebc384;outline-offset:4px}.ritual-logout{position:fixed;right:24px;bottom:24px;border:1px solid #b2967355;padding:10px 16px;background:#130d09ca;color:#e4c9a7;font-size:15px}
.choice-scroll{position:relative;z-index:9;width:min(760px,100%);margin:20px auto 30px;background:url('../images/svitek-prazdny-v1.webp') center/100% 100% no-repeat;color:#28170e;filter:drop-shadow(0 25px 25px #0008);transform-origin:50% 15%;animation:unroll-scroll .7s cubic-bezier(.16,.65,.3,1) both}.scroll-content{padding:76px 72px 88px}.choice-scroll h2{font-size:48px;font-weight:400;text-align:center;line-height:1.1;margin:0 0 13px;text-wrap:balance}.choice-scroll .eyebrow{margin-bottom:12px;font-size:12px;color:#4e3521}.scroll-rule{text-align:center;font-size:18px;color:#563b22;border-bottom:1px solid #7452336b;margin:0 10% 16px;padding-bottom:7px}.faction-options{display:grid;grid-template-columns:1fr 1fr;gap:18px}.faction-choice{border:0;background:transparent;color:#28170e;display:flex;align-items:center;flex-direction:column;gap:6px;font-size:32px;padding:8px 5px 10px;line-height:1.1}.faction-seal{display:block;width:165px;max-width:100%;aspect-ratio:1;background:url('../images/sliby-pecete-v1.webp') left center/200% 100% no-repeat;filter:drop-shadow(0 5px 4px #4b261966);transition:transform .25s,filter .25s}.traitor .faction-seal{background-position:right center}.faction-choice:hover .faction-seal,.faction-choice[aria-pressed=true] .faction-seal{transform:scale(1.055);filter:drop-shadow(0 5px 7px #6e2b2390)}.faction-choice[aria-pressed=true]{text-decoration:underline;text-underline-offset:8px}.oath-warning{font-size:19px;text-align:center;margin:19px 0 0}.approval-note{font-size:14px;line-height:1.5;text-align:center;color:#523a29;margin:16px 0 0}.oath-status{font-size:16px;color:#6b2020;text-align:center;line-height:1.5;margin:13px 0 0;overflow-wrap:anywhere}.oath-status:empty{display:none}.oath-confirmation{border-top:1px solid #75563d70;margin-top:20px;padding-top:12px;text-align:center}.oath-confirmation p{font-size:17px;line-height:1.5;margin:0}.oath-confirmation .submit{margin-top:12px}.oath-confirmation .switch{margin-top:5px}.oath-sealed{animation:seal-oath .65s both}@keyframes unroll-scroll{from{opacity:0;transform:translateY(28px) scaleY(.8)}to{opacity:1;transform:none}}@keyframes seal-oath{0%{opacity:1;transform:none}40%{filter:drop-shadow(0 0 25px #9b381a99);transform:scale(.99)}100%{opacity:0;transform:translateY(24px) scale(.97)}}
@media(max-width:600px){.ritual-intro{top:102px;font-size:19px}.ritual-intro span{font-size:14px}.choice-scroll{width:100%;margin:16px auto 25px}.scroll-content{padding:60px 27px 65px}.choice-scroll h2{font-size:34px}.choice-scroll .eyebrow{font-size:10px}.faction-options{gap:10px}.faction-seal{width:115px}.faction-choice{font-size:25px;padding:8px 0}.oath-warning{font-size:16px;margin-top:14px}.approval-note{font-size:13px}.oath-confirmation p{font-size:15px}.take-scroll>span{font-size:16px;bottom:-35px}.ritual-logout{bottom:15px;right:15px}.scroll-rule{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.choice-scroll,.oath-sealed,.take-scroll{animation:none}.messenger-layer,.sending .letter,.sending .envelope-front,.sending .envelope-back,.sending .desk-book{transition:none}}
.scroll-content{padding-top:118px;padding-bottom:120px}
@media(max-width:600px){.scroll-content{padding:112px 36px 120px}.choice-scroll h2{font-size:30px;line-height:1.15}.faction-seal{width:105px}.faction-choice{font-size:23px}.oath-confirmation p{font-size:14px}.approval-note{font-size:12px}}
.messenger-layer:after{content:'';position:absolute;width:1px;height:1px;opacity:0;background-image:url('../images/svitek-prazdny-v1.webp'),url('../images/sliby-pecete-v1.webp');pointer-events:none}
/* Převzetí svitku: obrys, přiblížení a samostatné rozvinutí pergamenu. */
.take-scroll:after{display:none}.take-scroll:focus-visible{outline:none}.take-scroll{border-radius:0;animation:none}.offered-outline{position:fixed;inset:0;width:100%;height:100%;z-index:7;pointer-events:none;opacity:.65;transition:opacity .25s}.offered-outline path{fill:none;stroke:#f0c889;stroke-width:1.8;stroke-linejoin:round;filter:drop-shadow(0 0 5px #ffc46c);animation:outline-breathe 2.6s ease-in-out infinite}.scroll-offer:has(.take-scroll:hover) .offered-outline,.scroll-offer:has(.take-scroll:focus-visible) .offered-outline{opacity:1}.scroll-offer:has(.take-scroll:hover) .offered-outline path,.scroll-offer:has(.take-scroll:focus-visible) .offered-outline path{stroke-width:2.6}.scroll-taking .offered-outline{opacity:1}.scroll-taking .offered-outline path{animation:none;stroke:#fff1c9;stroke-width:3;filter:drop-shadow(0 0 9px #ffd07c)}.scroll-taking .take-scroll>span,.scroll-taking .ritual-intro{opacity:0;transition:opacity .2s}
.messenger-empty{position:fixed;inset:0;z-index:-2;background:url('../images/posel-prazdna-ruka-v2.webp') center/cover;pointer-events:none;opacity:0;transition:opacity .6s,filter .7s}.scroll-taking .messenger-empty,.scroll-received .messenger-empty{opacity:1}.scroll-open .messenger-empty{filter:blur(2px) brightness(.65)}.scroll-in-flight{position:fixed;z-index:25;pointer-events:none;overflow:visible;transform-origin:0 0;filter:drop-shadow(0 9px 9px #0009) drop-shadow(0 0 5px #e3b96866);transition:opacity .18s}.choice-scroll{animation:none}.choice-scroll.scroll-unfolding{animation:unroll-sheet .94s cubic-bezier(.25,.55,.2,1) both}.scroll-unfolding .scroll-content{opacity:0}.scroll-content{transition:opacity .25s}.scroll-unfolding:before,.scroll-unfolding:after{content:'';position:absolute;left:0;width:100%;height:16%;background:url('../images/svitek-prazdny-v1.webp') center top/100% 625% no-repeat;z-index:3;pointer-events:none;filter:drop-shadow(0 6px 5px #41271966)}.scroll-unfolding:before{top:0;animation:top-roller .94s cubic-bezier(.25,.55,.2,1) both}.scroll-unfolding:after{bottom:0;background-position:center bottom;animation:bottom-roller .94s cubic-bezier(.25,.55,.2,1) both}
@keyframes outline-breathe{0%,100%{stroke-opacity:.55}50%{stroke-opacity:1}}@keyframes unroll-sheet{0%{clip-path:inset(43% 0 43% 0);opacity:0}12%{opacity:1}100%{clip-path:inset(0);opacity:1}}@keyframes top-roller{from{transform:translateY(var(--roll-travel,180px))}to{transform:none}}@keyframes bottom-roller{from{transform:translateY(calc(-1*var(--roll-travel,180px)))}to{transform:none}}
@media(prefers-reduced-motion:reduce){.offered-outline path{animation:none}.scroll-in-flight{display:none!important}.choice-scroll.scroll-unfolding{animation:none;clip-path:none}.messenger-empty{transition:none}}
.choice-scroll{background:none}.scroll-sheet{position:absolute;inset:0;background:url('../images/svitek-prazdny-v1.webp') center/100% 100% no-repeat;z-index:0;pointer-events:none}.scroll-content{position:relative;z-index:1}.choice-scroll.scroll-unfolding{animation:none}.scroll-unfolding .scroll-sheet{animation:unroll-sheet .94s cubic-bezier(.25,.55,.2,1) both}.scroll-unfolding:before,.scroll-unfolding:after{z-index:3}.oath-sealed{animation:seal-oath .65s both}
@keyframes unroll-sheet{from{clip-path:inset(45% 0 45% 0);opacity:1}to{clip-path:inset(3% 0 3% 0);opacity:1}}
