@import"https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Literata:ital,wght@0,400;0,500;1,400;1,500&display=swap";:root{--paper:#faf7f0;--ink:#34453c;--muted:#85877e;--coral:#d97965;--line:#e6e4da}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:Golos Text,sans-serif;font-size:14px}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:10px;padding:15px 22px;background:var(--ink);color:#fff;font-weight:500;transition:transform .2s,background .2s}button:hover{background:#496052;transform:translateY(-1px)}button:disabled{opacity:.5;cursor:default;transform:none}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #d9ac58;outline-offset:4px}header{position:relative;z-index:2;max-width:1280px;margin:auto;padding:35px 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:29px;letter-spacing:-1.4px;font-weight:600}.brand>span{color:var(--ink)}.brand,.brand-dot{color:var(--coral)}.header-note{font-size:9px;letter-spacing:1.7px;color:var(--muted)}.tag{border:1px solid #e1dfd2;border-radius:30px;padding:9px 14px;font-size:11px;color:#737a69;background:#f5f3e8}.welcome{max-width:1184px;min-height:730px;margin:auto;display:grid;grid-template-columns:1.22fr 1fr;gap:80px;align-items:center;padding:62px 0 52px;position:relative;z-index:1}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:500;color:#8c8b75}h1,h2,h3{font-family:Literata,Georgia,serif;font-weight:400}h1{font-size:58px;line-height:1.18;letter-spacing:-2.3px;margin:22px 0}h1 em{color:var(--coral);font-weight:400}p{line-height:1.8;color:var(--muted)}.hero>p{font-size:14px}.login-card{background:#ffffffd9;border:1px solid #eeebe3;border-radius:20px;padding:36px 39px;box-shadow:0 15px 50px #58533808;text-align:center}.mini-star{font-size:31px;color:var(--coral)}h2{font-size:29px;letter-spacing:-.7px;margin:13px 0}.login-card>p{font-size:12px;margin:0 0 25px}.switch{display:flex;background:#f4f3ee;padding:4px;border-radius:10px;margin-bottom:25px}.switch button{width:50%;padding:11px;background:none;color:var(--muted);font-size:12px}.switch button.active{color:var(--ink);background:#fff;box-shadow:0 2px 5px #00000008}label{display:block;text-align:left;font-size:12px;font-weight:500;margin-bottom:18px}input,textarea{display:block;width:100%;padding:14px 15px;margin-top:9px;border:1px solid #e6e5dd;background:#fdfcf9;color:var(--ink);border-radius:8px;outline:none;font-weight:400;font-size:13px}input:focus,textarea:focus{border-color:#aab9a3;box-shadow:0 0 0 3px #aab9a31a}input::placeholder,textarea::placeholder{color:#aaa99f}textarea{min-height:90px;resize:vertical}.primary{width:100%;margin-top:4px}.privacy{margin-top:27px;padding-top:22px;border-top:1px solid #eeece5;display:flex;align-items:center;justify-content:center;gap:12px;text-align:left}.privacy>span{font-size:27px;color:#939e84}.privacy p{margin:0;line-height:1.6;font-size:11px;color:#707965}.privacy small{font-size:9px;color:#999d91}.party-art{position:relative;height:275px;width:400px;margin:12px auto 0}.balloon{position:absolute;width:104px;height:133px;border-radius:50% 50% 47% 47%;box-shadow:inset -12px -15px 25px #0000000a;animation:float 5s ease-in-out infinite}.balloon:before{content:"";position:absolute;background:#ffffff65;width:15px;height:38px;border-radius:60%;left:22px;top:18px;transform:rotate(25deg);filter:blur(2px)}.balloon:after{content:"";position:absolute;width:35px;height:150px;border-left:1px solid #c2bba9;border-radius:50%;left:50%;top:100%}.pink{background:radial-gradient(circle at 35% 30%,#f4d4c8,#df9e90);left:35px;top:25px;transform:rotate(-17deg)}.gold{background:radial-gradient(circle at 35% 30%,#f1e2ab,#d8bf78);left:150px;top:0;width:90px;height:115px;animation-delay:-1s}.sage{background:radial-gradient(circle at 35% 30%,#d8dfcc,#a4b79c);left:255px;top:35px;width:85px;height:111px;animation-delay:-2s}.present{position:absolute;width:109px;height:83px;left:162px;top:172px;background:linear-gradient(100deg,#e5b5a0,#dca48e);border-radius:3px;transform:rotate(-7deg);box-shadow:10px 16px 18px #423c2c0c}.lid{position:absolute;top:-3px;left:-5px;right:-5px;height:18px;background:#eec1ab;border-radius:3px;box-shadow:0 3px 2px #ab6c5420}.ribbon{position:absolute;width:20px;height:100%;left:44px;background:#f8e9cc}.bow{font-size:64px;position:absolute;color:#e4c690;top:-57px;left:18px;line-height:1}.spark{position:absolute;color:#c9a965;font-size:38px}.s1{left:5px;top:170px}.s2{right:9px;top:20px;font-size:25px}.art-note{position:absolute;right:0;bottom:1px;font-family:Georgia,serif;font-style:italic;font-size:15px;color:#a6a08b;transform:rotate(-9deg)}.little-steps{display:flex;justify-content:space-between;max-width:390px;border-top:1px solid var(--line);padding-top:22px;margin:23px 0 0}.little-steps span{font-size:10px;color:#bd9d7f}.little-steps b{margin-left:9px;font-weight:400;color:#7b8277;font-size:11px}footer{position:relative;max-width:1184px;margin:auto;display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:25px 0 28px;color:#a09f91;font-size:10px}.confetti{position:absolute;inset:0 0 auto;height:850px;pointer-events:none;overflow:hidden;opacity:.5}.confetti i{position:absolute;width:5px;height:10px;border-radius:1px}.confetti i:nth-child(3n){border-radius:50%;width:5px;height:5px}.quiet{color:var(--muted);background:transparent;padding:10px}.quiet:hover{background:#efeee6;color:var(--ink)}.dashboard{max-width:1184px;padding:45px 0 70px;margin:auto;position:relative;min-height:75vh}.dash-top{display:flex;justify-content:space-between;align-items:center}.dash-top h1{font-size:43px;margin:17px 0 7px}.dash-top p{margin:0}.dashboard nav{display:flex;gap:9px;border-bottom:1px solid var(--line);margin:32px 0;padding-bottom:15px;flex-wrap:wrap}.dashboard nav button{background:transparent;color:#8a8e81;padding:12px 18px}.dashboard nav button.active{background:#e9eee2;color:#435843}.dashboard nav b{background:#dfac99;border-radius:20px;padding:2px 6px;color:#fff;font-size:11px;margin-left:4px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.section-title p{margin:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.quest-card{border:1px solid var(--line);background:#fff;border-radius:17px;overflow:hidden}.quest-art{height:155px;display:flex;align-items:center;justify-content:center;position:relative;background:#e8eddf}.quest-art>span{font-size:90px;color:#879d7d;font-family:Georgia;transform:rotate(-12deg)}.quest-art small{position:absolute;top:14px;left:14px;background:#ffffffa0;padding:5px 8px;border-radius:20px;font-size:8px;letter-spacing:1px}.color1{background:#f1dfd5}.color1>span{color:#c98972}.color2{background:#efe8d2}.color2>span{color:#c3aa65}.quest-content{padding:25px}.quest-content h2{font-size:25px}.quest-content .eyebrow{font-size:8px;letter-spacing:1px}.quest-content p{min-height:45px}.quest-content button{width:100%;margin-top:20px}.quest-content small{font-size:10px;color:var(--muted)}.progress{height:4px;background:#f0efe8;border-radius:5px;overflow:hidden;margin:15px 0 8px}.progress i{display:block;height:100%;background:#b3c0a2}.empty{text-align:center;background:#ffffff65;border:1px dashed #dcded2;border-radius:15px;padding:45px;color:#919784;line-height:1.7}.empty>span{display:block;font-size:45px;color:#c4ab79}.empty h3{font-size:25px;color:var(--ink);margin:10px}.empty button{display:block;margin:20px auto 0}.notice{background:#f4ebd7;color:#756039;border:1px solid #e7d9b8;padding:14px 18px;border-radius:9px;margin:15px 0;font-size:12px;text-align:left;line-height:1.6}.panel{max-width:750px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:17px;padding:32px}.play>.eyebrow{display:block;margin-top:28px}.question{white-space:pre-wrap;font-size:19px;color:var(--ink);margin:30px 0}.play small{color:var(--muted)}.play form button{width:100%}.gift-card{background:#fffdf7;border:1px solid #e7dfcd;padding:28px;border-radius:16px}.gift-card h2{font-size:25px}.gift-text{line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#747b6c}.gift-card .eyebrow{font-size:8px}.person{background:#fff;padding:22px;border:1px solid var(--line);border-radius:13px;display:flex;justify-content:space-between;align-items:center;margin-top:14px}.person small{display:block;margin-top:8px;color:var(--muted)}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.secondary{background:#e9ede3;color:var(--ink)}.check{display:flex;gap:10px;align-items:center}.check input{width:18px;margin:0;accent-color:#708769}fieldset{border:1px solid var(--line);border-radius:12px;padding:22px;margin:28px 0}legend{font-size:10px;letter-spacing:2px;padding:0 10px;color:#939a86}@keyframes float{50%{translate:0 -9px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:1250px){.welcome,.dashboard,footer{margin-left:40px;margin-right:40px}.welcome{gap:45px}h1{font-size:50px}}@media(max-width:800px){header{padding:22px 24px}.header-note{display:none}.welcome{gap:30px;grid-template-columns:1fr;margin:0;padding:35px 24px}.hero{text-align:center}h1{font-size:45px}.hero>p{font-size:12px}.party-art{height:230px;scale:.85;transform-origin:top center;margin-bottom:-30px;max-width:100%}.little-steps{margin:20px auto 0}.login-card{max-width:480px;width:100%;margin:auto;padding:28px}.dashboard{margin:0;padding:30px 20px}.dash-top{align-items:start}.dash-top h1{font-size:30px;letter-spacing:-1px}.dash-top .tag{display:none}.grid{grid-template-columns:1fr 1fr}.section-title{align-items:start;flex-direction:column}.dashboard h2{font-size:25px}.panel{padding:22px}.person{align-items:start;gap:16px;flex-direction:column}footer{margin:0 24px;font-size:8px;gap:15px}.brand{font-size:26px}.tag{font-size:9px}.empty{padding:30px 20px}}@media(max-width:480px){.grid{grid-template-columns:1fr}.hero h1{font-size:39px}.party-art{width:340px;margin-left:auto;margin-right:auto}.sage{left:240px}.art-note{right:-5px}.dashboard nav{gap:0}.dashboard nav button{font-size:11px;padding:10px}.section-title>button{width:100%}.eyebrow{font-size:8px}.privacy small{font-size:9px}.actions>button{flex:1}.login-card h2{font-size:26px}}.quest-art{height:205px}.quest-art>img{width:100%;height:100%;object-fit:cover}.quest-art small{z-index:1}.photo-field{padding:18px;background:#f8f7f1;border:1px dashed #d6dbcb;border-radius:12px;margin:18px 0 22px}.photo-label{font-size:12px;font-weight:500;margin-bottom:12px}.photo-preview{width:100%;max-height:250px;object-fit:contain;border-radius:8px;background:#eeeee7;margin-bottom:12px}.photo-picker{display:block;background:#e6ebdf;border-radius:8px;padding:12px 15px;color:#52664a;cursor:pointer;margin-bottom:10px}.photo-picker input{margin-top:8px;background:transparent;border:0;padding:0;font-size:11px}.photo-field small,.editor label small{display:block;font-size:10px;color:#939789;font-weight:400;line-height:1.7;margin-top:7px}.task-photo{width:100%;max-height:520px;object-fit:contain;background:#f7f6ef;border-radius:12px;margin:0 0 25px}.gift-photo{width:100%;max-height:350px;object-fit:contain;border-radius:10px;margin:10px 0 18px}.count-box{display:flex;align-items:end;gap:15px;background:#f4f0e5;padding:20px;border-radius:12px}.count-box label{margin:0;flex:1}.count-box input{max-width:200px}.count-box button{margin-bottom:0}.editor-hint{font-size:11px;color:#939781;text-align:center;padding:20px 0 0}.reward-editor{background:#fcf6ec;padding:20px;border-radius:12px;margin-bottom:16px}.reward-editor>.eyebrow{display:block;margin-bottom:18px}.editor-bottom{position:sticky;bottom:10px;padding:15px;background:#fffffff2;border:1px solid #e7e6da;border-radius:13px;box-shadow:0 6px 20px #00000009;z-index:2}.sequence{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0 28px;max-height:150px;overflow-y:auto}.sequence span{display:grid;place-items:center;min-width:28px;height:28px;background:#f1f0e9;color:#a0a294;border-radius:50%;font-size:10px}.sequence .complete{background:#e6ecdf;color:#70825d}.sequence .current{background:#db9980;color:#fff}@media(max-width:480px){.count-box{padding:14px;gap:10px}.count-box button{padding:14px 12px}.reward-editor{padding:14px}.photo-field{padding:12px}.editor fieldset{padding:14px}.editor-bottom{padding:10px;bottom:5px}.editor-bottom button{font-size:11px;padding:14px 10px}}.secondary:hover{background:#dce5d2;color:#34453c}.photo-picker{position:relative}.photo-picker input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;padding:0;margin:0}.photo-picker:focus-within{outline:3px solid #b2c19b;outline-offset:3px}
/* Дополнения PHP-версии: редактор таймеров, доступы и чаты */
body{overflow-x:hidden}.tiny{font-size:11px;margin-top:20px}.tiny a{color:var(--coral)}.hint{font-size:11px;color:#8b9386;line-height:1.7}.timer-editor{padding:18px;border:1px solid #dce5d7;background:#f4f7ef;border-radius:12px;margin:18px 0}.timer-editor select{width:100%;padding:13px 14px;margin-top:9px;background:#fdfcf9;border:1px solid #dfe5d8;border-radius:8px;color:var(--ink);font:inherit;font-size:12px}.step-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.step-heading h3{font-size:22px}.step-heading .actions{gap:2px}.step-heading button{padding:8px 12px}.user-search{max-width:440px}.users-layout,.messages-layout{display:grid;grid-template-columns:minmax(210px,300px) 1fr;gap:22px;align-items:start}.user-list{max-height:620px;overflow-y:auto;background:#f3f2ec;border:1px solid var(--line);border-radius:13px;padding:8px}.user-item{display:block;text-align:left;width:100%;color:var(--ink);background:transparent;border-radius:9px;padding:14px}.user-item:hover,.user-item.selected{background:#fff;color:var(--ink)}.user-item small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.user-item[hidden]{display:none}.user-detail{max-width:none;margin:0}.user-actions{margin:20px 0}.divider{height:1px;background:var(--line);margin:28px 0}.grant-quest{padding:18px;margin:15px 0;background:#fbfaf5;border:1px solid #ebe7d8;border-radius:13px}.grant-quest>.check{margin-bottom:6px}.grant-quest>small{display:block;color:var(--muted);font-size:10px;margin-left:27px}.grant-tasks{padding:12px 0 0 22px;display:grid;gap:6px}.grant-tasks .check{font-size:11px;font-weight:400;margin-bottom:7px}.grant-tasks input{flex:none}.chat-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;min-height:420px}.chat-feed{display:flex;flex-direction:column;gap:15px;margin:20px 0 30px;max-height:600px;overflow-y:auto;padding-right:7px}.chat-message{max-width:86%;padding:18px 20px;background:#f0f3ec;border-radius:14px;align-self:flex-start}.chat-message.own{background:#f7ebe4;align-self:flex-end}.chat-message .chat-from{display:block;font-size:9px;letter-spacing:.4px;color:#798775;margin-bottom:9px}.chat-text{white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}.chat-feed .gift-card{max-width:95%;align-self:center;width:100%;background:#fff9ed;border:1px solid #e7d9b6}.chat-feed .gift-card small{font-size:10px;color:#a69c81;display:block;margin-top:14px}.chat-panel form,.compose{margin-top:22px}.compose{max-width:100%;padding:28px}.compose h3{font-size:24px}.danger{color:#bb635b}.danger:hover{background:#f7e9e6;color:#a94c44}#notice[hidden]{display:none}.photo-picker input{position:absolute;opacity:0;width:1px;height:1px}.photo-picker{cursor:pointer}.quest-art>img{width:100%;height:100%;object-fit:cover}@media(max-width:780px){.users-layout,.messages-layout{grid-template-columns:1fr}.user-list{max-height:240px}.chat-panel{padding:18px}.chat-feed{max-height:none}.user-actions{gap:6px}.user-actions button{font-size:11px;padding:12px}.step-heading{flex-wrap:wrap}.welcome{min-height:0}}

/* Конфетти standalone: таймеры и настройки */
.countdown{display:inline-block;background:#f0f1e5;border:1px solid #dedfcf;border-radius:10px;padding:13px 19px;font-weight:600;color:#486356;margin:12px 0 20px;font-variant-numeric:tabular-nums}
.settings-panel{max-width:620px;margin:0 auto}.settings-panel form{display:grid;gap:12px;margin-top:20px}
@media(max-width:640px){.settings-panel{padding:22px}.countdown{max-width:100%}}


/* Fix: красивый замок для закрытого квеста */
.lock-stage{display:grid;justify-items:center;gap:16px;padding:18px 0 8px}
.lock-art{position:relative;width:170px;height:170px;display:grid;place-items:center;filter:drop-shadow(0 18px 22px rgba(44,62,80,.10))}
.lock-body{position:absolute;bottom:24px;width:118px;height:92px;border-radius:22px;background:linear-gradient(180deg,#f6d9bf 0%,#e4aa86 100%);border:1px solid #d89c79;box-shadow:inset 0 10px 14px rgba(255,255,255,.35)}
.lock-body:before{content:'';position:absolute;left:16px;right:16px;top:14px;height:14px;border-radius:999px;background:rgba(255,255,255,.18)}
.lock-shackle{position:absolute;top:10px;width:78px;height:72px;border:13px solid #efcf72;border-bottom:0;border-radius:48px 48px 0 0;box-sizing:border-box;box-shadow:inset 0 8px 10px rgba(255,255,255,.18)}
.lock-heart{position:absolute;bottom:56px;font-size:26px;color:#fff7ef;text-shadow:0 1px 0 rgba(0,0,0,.05)}
.countdown.big{font-size:24px;letter-spacing:1px;padding:14px 22px;border-radius:14px;background:#f7f0e2;border-color:#eadcc0;color:#4c6353;min-width:190px;text-align:center}
@media(max-width:480px){.lock-art{width:140px;height:140px}.lock-body{width:100px;height:78px;bottom:18px}.lock-shackle{width:68px;height:62px;border-width:11px}.countdown.big{font-size:20px;min-width:170px}}

/* Коллекция подарков — линейки, карточки, отдельные подарки */
.gifts-collection{max-width:980px;margin:0 auto}.gifts-collection .section-title{margin-bottom:30px}.gifts-collection .section-title p{color:var(--muted)}
.gift-lines{display:grid;gap:16px}.gift-line{width:100%;text-align:left;display:flex;align-items:center;gap:22px;background:#fff;border:1px solid #e7e3d7;border-radius:19px;padding:14px 20px 14px 14px;box-shadow:0 8px 26px rgba(57,69,59,.035);color:var(--ink);transition:transform .18s,border-color .18s,box-shadow .18s;cursor:pointer}
.gift-line:hover{transform:translateY(-2px);border-color:#d4bb9e;box-shadow:0 12px 28px rgba(57,69,59,.075);color:var(--ink)}
.gift-line-art{width:120px;height:103px;border-radius:14px;flex-shrink:0;background:#f2e1d2;display:grid;place-items:center;overflow:hidden;font-size:43px}.gift-shade-1{background:#e7eddc}.gift-shade-2{background:#efe9d3}.gift-line-art img{width:100%;height:100%;object-fit:cover}
.gift-line-copy{flex:1;min-width:0}.gift-line-copy .eyebrow{font-size:9px;letter-spacing:1.6px;color:#ac9b80}.gift-line-copy h3{font-family:Literata,Georgia,serif;font-weight:400;font-size:23px;margin:6px 0 10px;line-height:1.3;overflow-wrap:anywhere}.gift-line-count{display:inline-flex;border-radius:30px;background:#f2f3ec;padding:7px 13px;font-size:11px;color:#6f8571}.gift-line-arrow{font-size:24px;color:#bd9876;padding:0 8px}
.gift-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:19px}.gift-tile{text-align:left;display:flex;flex-direction:column;overflow:hidden;width:100%;padding:0;background:#fff;color:var(--ink);border:1px solid #e7e3d7;border-radius:18px;cursor:pointer;transition:transform .18s,box-shadow .18s}
.gift-tile:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(57,69,59,.08);color:var(--ink)}.gift-tile-art{height:180px;width:100%;display:grid;place-items:center;background:linear-gradient(140deg,#f5e7d5,#eff2e6);overflow:hidden}.gift-tile-art img{width:100%;height:100%;object-fit:cover}.gift-box-icon{font-size:75px;filter:drop-shadow(0 9px 8px rgba(80,75,57,.1))}
.gift-tile-info{padding:20px;display:flex;flex-direction:column;align-items:start;flex:1}.gift-tile-info .eyebrow{font-size:9px;color:#bd9876}.gift-tile-info h3{font-size:21px;font-family:Literata,Georgia,serif;font-weight:400;margin:11px 0;overflow-wrap:anywhere}.gift-tile-info small{color:#8d958c;font-size:11px}.tile-link{font-size:11px;color:#778e76;margin-top:auto;padding-top:20px;font-weight:600}.gifts-back{margin:0 0 22px}.gift-detail-panel{max-width:680px;margin:0 auto;padding:30px}.gift-detail-panel .gift-card{border:0;background:#fff;padding:12px 0 20px}.gift-detail-panel .gift-detail h2{font-size:31px;margin:13px 0 20px}.gift-detail-panel .gift-photo{max-height:480px;width:auto;max-width:100%}.gift-detail-panel .gift-text{font-size:14px}.gift-secondary{margin-top:25px}
@media(max-width:640px){.gift-line{gap:12px;padding:10px 12px 10px 10px}.gift-line-art{height:85px;width:85px}.gift-line-copy h3{font-size:18px}.gift-line-arrow{font-size:20px;padding:0}.gift-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.gift-tile-art{height:150px}.gift-tile-info{padding:15px}.gift-tile-info h3{font-size:18px}.gift-detail-panel{padding:18px}}
