
:root{color-scheme:dark;--bg:#120d13;--surface:#211821;--surface2:#2c1e2a;--ink:#fff5ef;--muted:#d4bbc9;--soft:#a58a9b;--pink:#ffaccb;--accent:#f285a9;--line:#ffffff26;--serif:'Prata',Georgia,serif;--sans:'Manrope',Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse 1000px 760px at 70% -12%,#87395855,transparent 65%),linear-gradient(135deg,#1b1019 0%,var(--bg) 80%);color:var(--ink);font:400 15px/1.65 var(--sans)}
button,input,a{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffe0ed;outline-offset:4px}[hidden]{display:none!important}
.page{width:min(1120px,calc(100% - 36px));margin-inline:auto}.top{min-height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.logo{font-size:12px;letter-spacing:.12em;font-weight:800;color:#ffcbda;white-space:nowrap}.nav{display:flex;align-items:center;gap:22px}.nav a{font-size:12px;color:#e7cbd8;font-weight:700}.nav a:hover,.muted-link:hover{color:#fff}.pill-link{border:1px solid #f6a6c278;padding:9px 15px;border-radius:99px;color:#ffd5e2!important}
main{min-height:70vh}.eyebrow{letter-spacing:.22em;color:#f5adc7;font-size:10px;font-weight:800;text-transform:uppercase}.serif{font-family:var(--serif);font-weight:400;letter-spacing:-.06em;line-height:1.25}.pink{color:#f6a4bf}.hero{position:relative;display:grid;grid-template-columns:1.07fr .93fr;align-items:center;gap:clamp(24px,5vw,70px);padding:82px 0 76px}.hero h1{font:400 clamp(45px,7vw,82px)/1.13 var(--serif);letter-spacing:-.075em;margin:17px 0 23px}.hero p{font-size:16px;color:#e0c7d2;max-width:560px;margin:0 0 26px}.hero-art{min-height:430px;display:grid;place-items:center;position:relative;isolation:isolate}.halo{width:min(360px,85%);aspect-ratio:1;border:1px solid #f7b3cc55;border-radius:50%;background:radial-gradient(circle,#cb648055,transparent 69%);filter:drop-shadow(0 0 50px #c8577a3b);display:grid;place-items:center}.art-heart{font:normal clamp(130px,17vw,230px)/1 Georgia,serif;color:#ffd2df;text-shadow:0 14px 45px #f67b9f9c}.art-note{position:absolute;bottom:20px;font-size:11px;letter-spacing:.18em;color:#f9d4e2}.art-star{position:absolute;right:13%;top:17%;font:45px Georgia,serif;color:#ffc8df}.art-star.two{left:12%;bottom:18%;top:auto;font-size:32px}
.actions{display:flex;flex-wrap:wrap;gap:11px}.btn{border:1px solid #ffd5e2a0;min-height:52px;padding:12px 23px;border-radius:99px;background:linear-gradient(118deg,#ffd0dc,#ef82a8);color:#351925;font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .18s,filter .18s}.btn:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.07)}.btn.secondary{background:#ffffff0b;color:#ffe0eb;border-color:#e8acc071}.btn.ghost{background:transparent;color:#eec1d1;border-color:var(--line)}.btn.dark{background:#402536;color:#ffdfeb}.btn.small{min-height:43px;padding:9px 17px;font-size:12px}.btn.full{width:100%}.subnote{font-size:12px;color:#b8a0b1;margin-top:20px}.stats{display:flex;flex-wrap:wrap;gap:20px;margin-top:32px;font-size:11px;color:#c5aebe;font-weight:800;letter-spacing:.09em}.stats b{color:#ffd1e0;font-size:20px;letter-spacing:0;margin-right:5px}
.section{padding:62px 0}.section-head{margin-bottom:28px}.section-head h2{font:400 clamp(32px,5vw,52px)/1.25 var(--serif);letter-spacing:-.06em;margin:10px 0}.section-head p{color:var(--muted);max-width:660px;margin:0}.rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.rule{background:linear-gradient(150deg,#322130,#1d161f);border:1px solid var(--line);border-radius:20px;padding:22px;min-height:157px}.rule strong{font:400 21px/1.4 var(--serif);letter-spacing:-.05em;display:block;margin:9px 0}.rule p{font-size:12px;color:#d5bdca;margin:0}.rule-emoji{font-size:27px}
.decks-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.deck-card{--tone:#d8b2bc;position:relative;border:1px solid #ffffff65;border-radius:20px;padding:17px 14px;min-height:175px;background:linear-gradient(155deg,#ffffff65,transparent 39%),var(--tone);color:#2d2026;display:flex;flex-direction:column;align-items:flex-start;text-align:left;box-shadow:0 10px 29px #06020b3e;transition:transform .2s,box-shadow .2s}.deck-card:hover{transform:translateY(-4px);box-shadow:0 14px 36px #08020a80}.deck-card.midnight{color:#fff5f7;border-color:#d898b0a8}.deck-card .count{font-size:10px;letter-spacing:.14em;font-weight:800;opacity:.8}.deck-card .emoji{font-size:35px;align-self:center;margin:auto}.deck-card .name{font:400 clamp(17px,2.5vw,21px)/1.22 var(--serif);letter-spacing:-.05em}.deck-card .hint{font-size:10px;opacity:.73;margin-top:5px}.deck-card[disabled]{opacity:.5}.deck-card .ordinal{position:absolute;right:14px;top:13px;font-size:10px;font-weight:800;opacity:.6}
.highlight{background:linear-gradient(130deg,#49283d,#281925);border:1px solid #eca3c666;border-radius:26px;padding:clamp(25px,5vw,50px);display:flex;gap:25px;align-items:center;justify-content:space-between}.highlight h2{margin:8px 0;font:400 clamp(30px,5vw,48px)/1.2 var(--serif);letter-spacing:-.06em}.highlight p{margin:4px 0;color:#e2cad5}.price{font-size:38px;font-weight:800;color:#ffd4e1;margin-bottom:12px;text-align:center}.price-note{font-size:11px;color:#f3cedb;text-align:center}
.site-footer{margin-top:80px;border-top:1px solid var(--line);padding:24px 0 38px;color:#ad98a6;font-size:11px;display:flex;gap:15px;flex-wrap:wrap;justify-content:space-between}
.view{padding:35px 0 65px}.center{text-align:center}.intro{max-width:740px;margin:0 auto 26px}.intro h1{font:400 clamp(34px,6vw,58px)/1.22 var(--serif);letter-spacing:-.065em;margin:12px 0}.intro p{margin:12px auto 0;max-width:650px;color:#d9c0cc}.notice{border:1px solid #ffbdcf45;border-radius:15px;padding:12px 16px;background:#ffffff0a;color:#edd5df;font-size:12px;max-width:700px;margin:16px auto}.panel{background:linear-gradient(149deg,#372333,#201720 90%);border:1px solid #efa8c34e;border-radius:26px;padding:clamp(23px,5vw,40px);box-shadow:0 23px 65px #06020967}.auth-panel{max-width:515px;margin:34px auto;text-align:center}.field{width:100%;border:1px solid #ffcfdf64;background:#110d13;color:#fff1f5;border-radius:14px;min-height:59px;padding:14px;text-align:center;font-weight:800;letter-spacing:.08em;outline:none}.field:focus{border-color:#ffbed5}.field::placeholder{font-weight:500;color:#a68a9c;letter-spacing:.03em}.auth-panel .btn{width:100%;margin-top:14px}.hint{color:#bda6b3;font-size:12px}.feedback{min-height:25px;color:#ffb0b5;font-size:12px;font-weight:700;margin:12px 0}.feedback.ok{color:#cdebd4}
.lobby-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}.modes{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:25px 0 31px}.mode{background:#352332;border:1px solid #edacc66b;color:#ffedf4;border-radius:19px;min-height:150px;padding:20px;text-align:left}.mode span{font-size:29px}.mode strong{display:block;font:400 25px var(--serif);letter-spacing:-.05em;margin-top:7px}.mode small{font-size:12px;color:#e0c4d1}.mode:hover{border-color:#ffc4d8;background:#422c3d}
.utility{padding:17px 20px;margin:25px 0;border:1px solid var(--line);border-radius:19px;background:#ffffff08;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.utility p{margin:0;color:#d8c0cb;font-size:12px}.utility strong{font-size:15px;color:#ffe3ec}
.play-shell{width:min(680px,100%);margin:0 auto}.play-top{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.play-meta{font-size:11px;letter-spacing:.1em;font-weight:800;color:#f0b6cc}.play-turn{margin:20px 0 13px;background:#3b2737;border:1px solid #f0a7c27c;border-radius:18px;display:flex;gap:11px;justify-content:space-between;align-items:center;padding:14px 17px}.play-turn strong{font-size:16px;color:#ffe4ed}.play-turn small{color:#d3b1c2;font-size:11px}.bar{background:#ffffff29;border-radius:12px;overflow:hidden;height:5px;margin:15px 0 20px}.bar span{display:block;background:#ff9dbd;width:0;height:100%;transition:width .25s}
.paper{--tone:#ead2bd;--ink:#291f23;min-height:clamp(370px,57vh,570px);border-radius:26px;border:1px solid #ffffff78;box-shadow:0 8px 0 -3px #ad8799,0 25px 65px #0008;background:linear-gradient(150deg,#fff9,transparent 36%),var(--tone);color:var(--ink);padding:clamp(25px,6vw,44px);display:flex;flex-direction:column;position:relative;overflow:auto}.paper:after{content:'';position:absolute;inset:10px;border:1px solid #2d203128;border-radius:18px;pointer-events:none}.paper-head{font-size:10px;letter-spacing:.11em;display:flex;justify-content:space-between;gap:9px;opacity:.8;font-weight:800}.paper-inner{margin:auto 0;padding:45px 0}.paper h2{font:400 clamp(29px,6vw,49px)/1.22 var(--serif);letter-spacing:-.06em;margin:0 0 24px;overflow-wrap:anywhere}.paper p{font-size:clamp(14px,3.7vw,17px);line-height:1.75;margin:10px 0;white-space:pre-wrap;font-weight:600}.paper-foot{padding-top:16px;border-top:1px solid #261d2738;font-size:10px;letter-spacing:.14em;font-weight:800;opacity:.65}
.play-bottom{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;margin-top:17px}.skip-cards{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0 12px}.skip-card{border:1px dashed #efb0c26e;border-radius:13px;padding:11px 14px;background:#ffffff09;color:#ffe0e8;font-size:12px}.skip-card.off{opacity:.42;text-decoration:line-through}.skip-card.current{border:1px solid #f9b8d2}.skip-btn{width:100%;margin:10px 0 0}.play-tools{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px;justify-content:center}
.handoff{max-width:510px;margin:45px auto;padding:45px 26px;text-align:center}.handoff .big{font:normal 70px/1 Georgia,serif;color:#ffc2d6}.handoff h2{font:400 clamp(32px,6vw,47px)/1.23 var(--serif);letter-spacing:-.06em}.handoff p{color:#d5bbc7}.handoff .btn{width:100%;margin-top:20px}
.private-list{display:grid;gap:11px;margin:23px 0}.private-mission{padding:16px;border:1px solid #f3abc65c;border-radius:15px;background:#4b3045;text-align:left}.private-mission strong{font:400 19px var(--serif);letter-spacing:-.04em;color:#ffe4eb}.private-mission p{font-size:12px;color:#dfc6d0;margin:9px 0}.private-warning{color:#ffd4df;font-weight:800;font-size:12px}
.consent-checks{max-width:440px;margin:20px auto;display:grid;gap:13px}.consent-checks label{display:flex;gap:12px;align-items:center;background:#ffffff08;border:1px solid var(--line);border-radius:14px;padding:14px;text-align:left;font-size:13px}.consent-checks input{width:20px;height:20px;accent-color:#ef93b7}
.end-card{max-width:590px;margin:18px auto}.end-card .paper{min-height:350px}.finish-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:23px 0}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:20;background:#f0bcd0;color:#311a26;border-radius:12px;padding:12px 18px;font-size:12px;font-weight:800;box-shadow:0 10px 30px #0009;max-width:90%}
@media(max-width:840px){.decks-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr}.hero-art{display:none}.nav a[href='#rules'],.nav a[href='#decks']{display:none}}
@media(max-width:560px){.page{width:min(100% - 30px,1120px)}.top{min-height:66px}.nav{gap:9px}.nav a{font-size:11px}.nav .pill-link{padding:8px 10px}.hero{padding:52px 0 47px}.hero h1{font-size:clamp(43px,12vw,65px)}.hero p{font-size:14px}.actions .btn{width:100%}.stats{gap:15px}.rule-grid{grid-template-columns:1fr}.rule{min-height:0}.decks-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.deck-card{min-height:167px;padding:13px}.deck-card .name{font-size:18px}.highlight{display:block;padding:25px}.highlight .price{margin-top:19px}.view{padding-top:23px}.modes{grid-template-columns:1fr;gap:10px}.mode{min-height:114px}.play-turn{margin-top:15px}.paper{min-height:370px;padding:26px 22px}.paper-inner{padding:27px 0}.paper h2{font-size:clamp(28px,8vw,38px)}.paper p{font-size:14px}.play-bottom{grid-template-columns:1fr 1fr}.btn{padding:11px 16px}.play-tools .btn{font-size:11px;padding:9px 12px}.site-footer{margin-top:30px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Soft motion like the original cover: floating heart, layered cards, staggered reveals */
@keyframes heartFloat{0%,100%{transform:translateY(0) rotate(-7deg) scale(.98)}50%{transform:translateY(-16px) rotate(4deg) scale(1.04)}}
@keyframes haloBreathe{0%,100%{box-shadow:0 0 0 0 #f091b213,0 0 50px #c35b8c16;transform:scale(.98)}50%{box-shadow:0 0 0 25px #f091b209,0 0 100px #e27ea44b;transform:scale(1.02)}}
@keyframes starTwinkle{0%,100%{opacity:.45;transform:scale(.86) rotate(-12deg)}50%{opacity:1;transform:scale(1.15) rotate(12deg)}}
@keyframes viewEnter{from{opacity:0;transform:translateY(14px);filter:blur(4px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes cardEnter{from{opacity:.35;transform:translateY(19px) rotate(2deg) scale(.965);filter:blur(6px)}to{opacity:1;transform:translateY(0) rotate(0) scale(1);filter:blur(0)}}
@keyframes cardPulse{0%,100%{box-shadow:0 8px 0 -3px #ad8799,0 25px 65px #0008}50%{box-shadow:0 8px 0 -3px #ad8799,0 31px 74px #ffc0df3b}}
@keyframes arrive{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}
@keyframes softShimmer{0%{background-position:200% center}100%{background-position:-150% center}}
.halo{animation:haloBreathe 7s ease-in-out infinite}
.art-heart{display:block;animation:heartFloat 6.5s ease-in-out infinite}
.art-star{animation:starTwinkle 4s ease-in-out infinite}
.art-star.two{animation-delay:2s}
.hero .eyebrow{animation:arrive .7s both}
.hero h1{animation:arrive .85s .12s both}
.hero p{animation:arrive .85s .25s both}
.hero .actions{animation:arrive .85s .36s both}
.hero .stats{animation:arrive .85s .46s both}
.hero .subnote{animation:arrive .85s .55s both}
.reveal{opacity:0;transform:translateY(22px);transition:opacity .65s ease,transform .65s cubic-bezier(.22,1,.36,1)}
.reveal.in-view{opacity:1;transform:translateY(0)}
.view.enter{animation:viewEnter .45s cubic-bezier(.22,1,.36,1) both}
.paper.switching{animation:cardEnter .52s cubic-bezier(.19,1,.27,1) both}
.paper{animation:cardPulse 5s ease-in-out infinite}
.deck-card{will-change:transform}
.deck-card:before{content:'';position:absolute;top:11px;right:11px;bottom:11px;left:11px;border-radius:14px;border:1px solid #fff5;pointer-events:none}
.deck-card .emoji{filter:drop-shadow(0 4px 5px #0003);transition:transform .35s cubic-bezier(.2,1,.3,1)}
.deck-card:hover .emoji{transform:scale(1.18) rotate(-7deg)}
.mode{transition:transform .25s cubic-bezier(.2,1,.3,1),background .25s,border-color .25s}
.mode:hover{transform:translateY(-3px)}
.btn{background-size:180% 180%;transition:transform .22s ease,box-shadow .22s ease,filter .22s ease}
.btn:hover:not(:disabled){box-shadow:0 8px 24px #ff86b540}
.skip-card.current{box-shadow:0 0 0 2px #f7afce3b}
.ornament-heart{font:normal 75px/1 Georgia,serif;color:#fcb1c9;text-align:center;padding-top:15px;animation:heartFloat 7s ease-in-out infinite}
.text-button{background:transparent;border:0;color:#eac3d3;padding:10px 0;font-size:12px;font-weight:800;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.private-mission{animation:arrive .5s both}
.private-mission:nth-child(2){animation-delay:.07s}.private-mission:nth-child(3){animation-delay:.14s}.private-mission:nth-child(4){animation-delay:.21s}.private-mission:nth-child(5){animation-delay:.28s}.private-mission:nth-child(6){animation-delay:.35s}
@media(prefers-reduced-motion:reduce){
  .halo,.art-heart,.art-star,.hero .eyebrow,.hero h1,.hero p,.hero .actions,.hero .stats,.hero .subnote,.view.enter,.paper.switching,.paper,.ornament-heart,.private-mission{animation:none!important}
  .reveal{opacity:1;transform:none}
  *{scroll-behavior:auto!important;transition:none!important}
}

/* Общий визуальный язык с главной страницей сайта */
.deck-description{border:1px solid #f8b6c88a;border-radius:26px;background:linear-gradient(150deg,#392334,#1d141e);color:#fff3ed;padding:0;box-shadow:0 26px 100px #000c;max-width:min(455px,calc(100vw - 28px));width:100%}
.deck-description::backdrop{background:#0c0710c9;backdrop-filter:blur(7px)}
.deck-description-inner{text-align:center;padding:32px 28px}
.deck-description-symbol{font-size:46px;filter:drop-shadow(0 8px 16px #0006);margin-bottom:12px}
.deck-description h2{font:400 clamp(28px,6vw,39px)/1.2 var(--serif);margin:0 0 15px;color:#fff3e8}
.deck-description p{font-size:15px;line-height:1.7;color:#e8ced9;margin:0 0 12px}
.deck-description small{display:block;color:#f3b7ce;font-size:12px;margin:8px 0 26px}
.deck-description-actions{display:grid;gap:10px}
.deck-description-actions .btn{width:100%}
#lobbyView .intro,#lobbyView .notice{animation:arrive .65s ease both}
#lobbyView .notice{animation-delay:.15s}
#lobbyView .deck-card{box-shadow:0 3px 0 #fff4 inset,0 16px 36px #0005}
#lobbyView .deck-card:hover{transform:translateY(-5px) rotate(-.6deg)}
#playView .play-turn{animation:arrive .55s ease both}
#playView .play-bottom,#playView .play-tools{animation:arrive .6s .1s both}
@media(prefers-reduced-motion:reduce){#lobbyView .intro,#lobbyView .notice,#playView .play-turn,#playView .play-bottom,#playView .play-tools{animation:none!important}}

/* Обновлённая подача правил, колод и будущей физической версии */
#rules .rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
#rules details.rule{min-width:0;padding:0;background:linear-gradient(145deg,#352131,#221923);border:1px solid #ffc2d343;border-radius:22px;overflow:hidden;transition:border-color .2s,background .2s}
#rules details.rule[open]{border-color:#ffc4d59c;background:linear-gradient(145deg,#41283a,#211922)}
#rules details.rule summary{list-style:none;display:flex;align-items:center;gap:15px;padding:20px 22px;cursor:pointer;min-height:78px}
#rules details.rule summary::-webkit-details-marker{display:none}
#rules details.rule summary strong{font-size:15px;flex:1;color:#ffeff4}
#rules details.rule .rule-emoji{margin:0;font-size:26px;line-height:1}
#rules details.rule .rule-chevron{font-size:24px;color:#ffc0d2;transition:transform .2s}
#rules details.rule[open] .rule-chevron{transform:rotate(180deg)}
#rules details.rule>p{margin:0;padding:0 22px 22px;color:#e1c6d3;font-size:14px;line-height:1.7}
#rules details.rule summary:focus-visible{outline:3px solid #ffe0ed;outline-offset:-4px}
.decks-grid .deck-card{transition:transform .3s ease,box-shadow .3s ease;will-change:transform}
.decks-grid .deck-card:nth-child(3n+2){transition-delay:.035s}
.decks-grid .deck-card:nth-child(3n+3){transition-delay:.07s}
.decks-grid .deck-card:hover,.decks-grid .deck-card:focus-visible{transform:translateY(-8px) rotate(-1deg);box-shadow:0 24px 55px #0007}
.decks-grid .deck-card .ordinal{display:none}
.box-preview{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:28px;border-top:1px solid var(--line)}
.box-preview-copy h2{font:400 clamp(34px,5vw,56px)/1.2 var(--serif);letter-spacing:-.06em;margin:12px 0 18px}
.box-preview-copy p{max-width:520px;color:#e4c9d4;font-size:16px}
.box-soon{display:inline-flex;border:1px solid #ffd2e072;border-radius:40px;padding:11px 17px;color:#ffd7e5;font-weight:800;font-size:12px;margin-top:10px}
.box-preview-art{display:grid;place-items:center;min-height:300px;perspective:950px}
.box-preview-cover{width:210px;height:255px;background:linear-gradient(145deg,#eab4cb,#9d557a 62%,#5c3053);border-radius:16px;box-shadow:18px 18px 0 #68384e,20px 36px 50px #0009;transform:rotate(-9deg) rotateY(-13deg);padding:24px 17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;text-align:center;color:#fff7f0;animation:box-drift 6s ease-in-out infinite}
.box-preview-cover>span{font:65px Georgia,serif;line-height:1}.box-preview-cover strong{font:400 26px/1.28 var(--serif)}.box-preview-cover small{font-size:10px;letter-spacing:.15em;text-transform:uppercase}
@keyframes box-drift{50%{transform:translateY(-12px) rotate(-6deg) rotateY(-9deg)}}
@media(max-width:700px){#rules .rule-grid,.box-preview{grid-template-columns:1fr}.box-preview-art{min-height:250px}.box-preview-cover{width:170px;height:210px}.box-preview-cover strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.box-preview-cover{animation:none}.decks-grid .deck-card{will-change:auto;transition:none!important}}

/* Use the original site's logo across the game views */
.top .logo{display:inline-flex;align-items:center;line-height:1;letter-spacing:0;flex-shrink:0}
.top .logo img{display:block;width:130px;height:55px;object-fit:contain;filter:drop-shadow(0 0 13px #ff9cc344)}
@media(max-width:480px){.top .logo img{width:98px;height:44px}}


/* Game rules refresh: visible guidance, no accordion controls */
#rules .rule-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
#rules .static-rule{min-height:0;padding:23px;border:1px solid #ffc2d343;border-radius:20px;background:linear-gradient(145deg,#352131,#221923)}
#rules .static-rule .static-rule-top{display:flex;align-items:center;gap:15px}
#rules .static-rule .rule-emoji{font-size:26px;line-height:1;flex:0 0 37px}
#rules .static-rule strong{display:block;margin:0;color:#ffeff4;font:400 clamp(17px,2vw,22px)/1.3 var(--serif)}
#rules .static-rule p{margin:11px 0 0 52px;color:#dfc3d0;font-size:13px;line-height:1.7}
.game-guide{margin:25px 0 31px;padding:clamp(23px,3.8vw,40px);border:1px solid #efafc34e;border-radius:26px;background:linear-gradient(145deg,#33202f,#1d161f)}
.guide-heading{text-align:left;max-width:730px}
.guide-heading h2{font:400 clamp(30px,4vw,45px)/1.2 var(--serif);margin:8px 0 10px;letter-spacing:-.045em}
.guide-heading p{color:#dfc8d2;max-width:620px;font-size:13px;margin:0}
.guide-steps{list-style:none;padding:0;margin:24px 0 19px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.guide-steps li{padding:20px;display:flex;align-items:flex-start;gap:15px;border-radius:18px;border:1px solid #efb1c234;background:#ffffff07}
.guide-steps .step-num{font-size:12px;font-weight:800;color:#f4abc4;letter-spacing:.08em;padding-top:2px}
.guide-steps strong{font:400 21px/1.3 var(--serif);color:#fff0f1}
.guide-steps p{font-size:12px;color:#d9bfca;line-height:1.7;margin:8px 0 0}
.guide-extras{padding:18px 0;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.guide-extras>div{padding:9px 10px}
.guide-extras span{font-size:22px;display:block;margin-bottom:7px}
.guide-extras strong{font-size:13px;color:#ffe1ec}
.guide-extras p{margin:5px 0 0;color:#cdb3bf;font-size:11px;line-height:1.6}
.guide-note{font-size:11px;color:#c5a7b8;margin:17px 0 0;line-height:1.7}
.play-turn{gap:10px;min-height:68px;padding:12px 15px}
.play-turn strong{font-size:clamp(13px,2.7vw,16px);line-height:1.35;display:block}
.play-turn small{font-size:10px;letter-spacing:.05em}
@media(max-width:700px){
#rules .rule-grid,.guide-steps{grid-template-columns:1fr}
#rules .static-rule{padding:19px}
#rules .static-rule p{margin-left:0;font-size:12.5px}
.game-guide{padding:23px 17px;margin-top:18px}
.guide-steps{gap:9px;margin-top:19px}
.guide-steps li{padding:16px}
.guide-steps strong{font-size:19px}
.guide-extras{grid-template-columns:1fr;gap:6px}
.guide-extras>div{display:grid;grid-template-columns:30px 1fr;gap:2px 10px;align-items:start;padding:8px 0}
.guide-extras span{grid-row:span 2;margin:0;font-size:22px}
.guide-extras p{margin:1px 0 0}
.play-turn{padding:11px 12px;min-width:0}
.play-turn strong{font-size:14px;overflow-wrap:anywhere}
}


/* Exact stacked deck animation and layout from the public homepage */
.decks-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px 18px}
.deck-tile{display:flex;text-align:left;min-width:0;width:100%;font:inherit;cursor:pointer}
.deck-tile .deck-index{font-size:9px;letter-spacing:.07em;font-weight:800}
.deck-tile .deck-mark{margin:auto;align-self:center;font-size:43px;line-height:1;letter-spacing:-.09em}
.deck-tile strong{font:400 clamp(14px,1.7vw,19px)/1.22 var(--serif);letter-spacing:-.04em;min-height:25px}
.deck-tile .deck-hint{font:400 10px/1.4 var(--sans);margin-top:8px;opacity:.7}
.deck-tile{--deal-delay:0ms;isolation:isolate;min-height:225px;margin:6px 5px 4px;padding:0;background:transparent;border:0;box-shadow:none;overflow:visible;color:#291d24;transition:transform .5s cubic-bezier(.22,1,.36,1),filter .5s}
.deck-tile::before{display:none}.deck-tile::after{display:none}
.deck-tile .deck-face{position:relative;z-index:3;overflow:hidden;display:flex;flex-direction:column;min-height:225px;width:100%;height:100%;padding:20px 16px 18px;background:linear-gradient(145deg,#fff4 0%,transparent 38%),var(--deck);border:1px solid #ffffffa0;border-radius:20px;box-shadow:0 16px 36px #06030755,0 1px 0 #fff8 inset;transition:transform .55s cubic-bezier(.22,1,.36,1),box-shadow .55s;transform-origin:center 90%}
.deck-face::before{content:"";position:absolute;inset:7px;border:1px solid #2b162627;border-radius:14px;pointer-events:none}.deck-face::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(112deg,transparent 5%,#fff7 35%,transparent 52%);opacity:.13}
.deck-tile .stack-leaf{position:absolute;z-index:0;inset:0;border-radius:21px;border:1px solid #fff7;background:var(--deck);transform-origin:center 90%;box-shadow:0 15px 30px #07030845;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.deck-tile .stack-leaf-back{transform:translate(4px,-5px) rotate(3deg);filter:brightness(.92)}
.deck-tile .stack-leaf-middle{z-index:1;transform:translate(-3px,-2px) rotate(-2deg);filter:brightness(.97)}
.deck-tile:hover{transform:translateY(-6px);box-shadow:none;filter:drop-shadow(0 15px 12px #0002)}
.deck-tile:hover .deck-face{transform:translateY(-8px) rotate(-1deg);box-shadow:0 25px 55px #06030770}
.deck-tile:hover .stack-leaf-back{transform:translate(9px,-10px) rotate(8deg)}
.deck-tile:hover .stack-leaf-middle{transform:translate(-9px,-6px) rotate(-6deg)}
.deck-tile:nth-child(2n):hover .deck-face{transform:translateY(-8px) rotate(1deg)}
.deck-tile:nth-child(2n):hover .stack-leaf-back{transform:translate(-8px,-8px) rotate(-6deg)}
.deck-tile:nth-child(2n):hover .stack-leaf-middle{transform:translate(8px,-5px) rotate(5deg)}
.deck-tile .deck-index,.deck-tile .deck-mark,.deck-tile strong,.deck-tile .deck-hint{position:relative;z-index:2}
.deck-tile .deck-mark{font-family:var(--serif);font-weight:400;opacity:.78;transition:transform .5s cubic-bezier(.22,1,.36,1)}.deck-tile:hover .deck-mark{transform:translateY(-7px) scale(1.12)}
.deck-tile .deck-hint{line-height:1.4}.deck-night{color:#fff0f3}.deck-night .deck-face{border-color:#e8c0cc66}.deck-night .deck-face::before{border-color:#ffffff42}
@keyframes stack-arrive{0%{opacity:.25;transform:translateY(25px) scale(.97) rotate(-2.5deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
.deck-tile.dealt{animation:stack-arrive .76s both cubic-bezier(.2,.8,.25,1);animation-delay:var(--deal-delay)}
@media(max-width:890px){.decks-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 13px}}
@media(max-width:590px){
 .decks-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
 .deck-tile{min-height:183px;margin:3px 2px 4px}
 .deck-tile .deck-face{min-height:183px;padding:16px 12px;border-radius:17px}
 .deck-tile .stack-leaf{border-radius:17px}
 .deck-tile .deck-mark{font-size:38px}
 .deck-tile strong{font-size:clamp(14px,4vw,18px);line-height:1.2}
 .deck-tile .deck-hint{font-size:9px}
 .deck-tile .deck-index{font-size:8px}
}
@media(max-width:355px){.deck-tile .deck-face{padding:14px 10px}.deck-tile strong{font-size:14px}}
@media(hover:none){.deck-tile:hover,.deck-tile:hover .deck-face{transform:none;filter:none}.deck-tile:hover .stack-leaf-back{transform:translate(4px,-5px) rotate(3deg)}.deck-tile:hover .stack-leaf-middle{transform:translate(-3px,-2px) rotate(-2deg)}}
@media(prefers-reduced-motion:reduce){.deck-tile.dealt{animation:none}.deck-tile,.deck-tile *, .deck-tile:hover{transition:none!important;transform:none!important}}


/* Secret-task handoff: centered emoji, compact card, safe mobile wrapping. */
.panel.handoff{
  width:100%;
  max-width:510px;
  margin:clamp(14px,4vh,36px) auto;
  padding:clamp(24px,5vw,38px) clamp(18px,5vw,32px);
  background:radial-gradient(ellipse at 50% 3%,#76425c36,transparent 64%),linear-gradient(145deg,#30202b,#211821);
  border:1px solid #eea9c45c;
  border-radius:24px;
  overflow:hidden;
  text-align:center;
}
.handoff .eyebrow{width:100%;text-align:center;font-size:10px;line-height:1.6}
.handoff .big{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:92px;
  margin:12px auto 17px;
  font-family:system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;
  font-size:clamp(62px,17vw,84px);
  line-height:1;
  text-align:center;
}
.handoff h2{
  max-width:440px;
  margin:0 auto 15px;
  font:400 clamp(27px,6.5vw,42px)/1.22 var(--serif);
  letter-spacing:-.045em;
  text-wrap:balance;
  overflow-wrap:break-word;
}
.handoff p{
  max-width:395px;
  margin:0 auto;
  color:#dbc3cf;
  font-size:clamp(13px,3vw,15px);
  line-height:1.65;
}
.handoff .btn{
  width:100%;
  max-width:420px;
  margin-top:22px;
  min-height:54px;
  padding:12px 16px;
  border-radius:16px;
  font-size:13px;
  white-space:normal;
}
@media(max-width:520px){
  #handoffView{padding:15px 0 32px}
  .panel.handoff{margin:8px auto;padding:23px 18px 25px;border-radius:20px}
  .handoff .eyebrow{letter-spacing:.12em;font-size:9px}
  .handoff .big{min-height:82px;margin:9px auto 14px}
  .handoff h2{font-size:clamp(25px,7vw,34px);line-height:1.24;margin-bottom:14px}
  .handoff p{font-size:13px}
  .handoff .btn{margin-top:18px;min-height:52px}
}
