/* Encaja Studio: visual identity for discovery and setup, scoped away from the board. */
body:has(#home:not([hidden])){background:#f6f7fc;background-image:radial-gradient(ellipse at 90% 0%,#e8e3ff66,transparent 50%);color:#20233e}
#home{--ink:#20233e;--muted:#6d7290;--green:#6550dc;--green-pale:#eeebff;--line:#e4e6f2;--white:#fff;--serif:var(--sans);color:var(--ink)}
#home .shell{width:min(1220px,calc(100% - 64px))}#home .site-header{background:#ffffffdb;backdrop-filter:blur(16px);border-color:#e8eaf4}
#home .header-inner{min-height:96px;grid-template-columns:1fr auto 1fr;gap:20px}
#home .brand{gap:10px;font-family:var(--sans);letter-spacing:-.06em}#home .studio-logo{height:58px;width:58px;filter:drop-shadow(0 6px 9px #6550dc21)}
#home .studio-wordmark{font:850 36px/.95 var(--sans);letter-spacing:-.075em;text-align:left;color:#252240}#home .studio-tagline{display:block;font:750 8px/1 var(--sans);letter-spacing:.14em;margin-top:8px;color:#7a7e98}
#home .navigation{background:#f0f1f8;padding:5px;border-radius:15px;gap:5px}#home .navigation button{border-radius:11px;font-size:.86rem;color:#666b89;padding:12px 20px;min-height:44px}
#home .navigation button[aria-current="page"]{background:#fff;color:#5e43d3;box-shadow:0 3px 9px #28325a12}
#home .import-button{background:#6550dc;color:white;border:0;border-radius:13px;font-size:.84rem;box-shadow:0 6px 15px #6550dc22;min-height:46px}
#home .catalog{padding-block:30px 60px}#home .resume-latest{background:white;border:1px solid #e8e9f4;box-shadow:0 5px 15px #25375907;border-radius:20px;margin-bottom:24px;padding:13px 18px}
#home .resume-latest strong{font:750 1rem var(--sans);color:#323453}#home .resume-latest span span{color:#7b809b;font-size:.78rem}#home .resume-latest img{height:58px;width:58px;border-radius:13px}
#home .hero{min-height:460px;border-radius:28px;box-shadow:0 20px 50px #24204b18;background:#151c33;align-items:center;overflow:hidden}
#home .hero-image{width:100%;opacity:.48;object-position:center 55%}#home .hero::after{background:linear-gradient(90deg,#181831fa,#161c35e0 35%,#19254663 75%,#16284455)}
#home .hero-content{padding:48px;z-index:2;max-width:62%}#home .hero-category{font-size:.61rem;letter-spacing:.12em;color:#d4cbff;font-weight:750}.live-dot{background:#9e8dff}
#home .hero h1{font:800 clamp(3rem,5.4vw,4.6rem)/1.02 var(--sans);letter-spacing:-.065em;margin:24px 0 18px;text-shadow:none;color:#fff}
#home .hero h1 em{font-style:normal;background:linear-gradient(90deg,#cbb6ff,#9ce0ee);-webkit-background-clip:text;background-clip:text;color:transparent}
#home .hero p{color:#c3c6dc;max-width:340px;font-size:.95rem;line-height:1.6;margin-bottom:28px}
#home .hero-button{background:#8c70ff;color:#fff;border-radius:14px;min-height:52px;padding:15px 20px;font-size:.9rem;box-shadow:0 6px 25px #6245e247}
#home .hero-button:hover{background:#a18aff}#home .hero-caption{color:#c3c9df;font-size:.56rem;bottom:22px;left:48px;right:auto;letter-spacing:.12em}
#home .hero-art{position:absolute;inset:0 0 0 57%;z-index:1;pointer-events:none}.hero-tile{position:absolute;width:56%;height:230px;object-fit:cover;border:5px solid #ffffffdd;border-radius:21px;box-shadow:0 18px 38px #05081866}
.tile-one{top:48px;left:4%;transform:rotate(-12deg)}.tile-two{right:7%;bottom:58px;transform:rotate(11deg)}.hero-art-label{position:absolute;bottom:25px;right:28px;color:#eeeaff;font-size:.75rem;transform:rotate(3deg)}.hero-art-label b{color:#ffe19d;margin-left:12px}
#home .collection-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0;padding:20px 0;font-size:.76rem;color:#8588a0}
#home .collection-notes>span,#home .collection-notes>button{padding:16px 20px;background:#fff;border:1px solid #e9eaf4;border-radius:16px;text-align:left;font:inherit;color:inherit;line-height:1.5}
#home .collection-notes b{display:block;font-size:.86rem;color:#484665;margin-bottom:4px}#home .collection-notes button:hover{border-color:#baaafa;background:#f2efff}
#home .gallery-section{margin-top:24px}#home .section-heading{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;margin-bottom:0}#home .eyebrow{font-size:.61rem;letter-spacing:.13em;color:#7b65ce;font-weight:750}
#home .section-heading h2{font:780 2.1rem/1.1 var(--sans);letter-spacing:-.045em;margin-top:9px}#home .section-description{font-size:.86rem;color:#8588a0;margin:10px 0 0}
#home .gallery-search{display:flex;align-items:center;gap:8px;min-width:250px;max-width:100%;min-height:48px;border:1px solid #e2e4f0;border-radius:13px;background:white;padding:8px 13px;color:#9298b2}
#home .gallery-search>span{font-size:1.5rem}#home .gallery-search input{font:inherit;font-size:.83rem;color:#40445d;background:transparent;border:0;outline:0;min-width:0;width:100%}#home .gallery-search:focus-within{outline:2px solid #9a80ee;outline-offset:2px}
#home .filters{grid-column:1/-1;margin:8px 0 0;max-width:100%;gap:8px;flex-wrap:wrap}#home .filters button{background:#fff;border:1px solid #e5e6f0;border-radius:11px;min-height:42px;font-size:.78rem;padding:10px 15px;color:#7a7d96}
#home .filters button[aria-pressed="true"]{background:#6550dc;color:#fff;border-color:#6550dc;box-shadow:0 4px 10px #6550dc19}
#home .gallery-count{font-size:.72rem;color:#9296aa;margin:17px 0 13px}#home .gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
#home .card{border-radius:20px;overflow:hidden;background:white;border:1px solid #e9eaf3;box-shadow:0 4px 15px #2c346207;position:relative;text-align:left}
#home .card:hover{box-shadow:0 12px 28px #35366416;transform:translateY(-4px);border-color:#cfc4f2}
#home .gallery .card img{border-radius:0;aspect-ratio:1.28;box-shadow:none;width:100%;object-fit:cover}#home .card-body{padding:16px 34px 18px 16px;position:relative;min-height:128px}
#home .category-label{font-size:.59rem;letter-spacing:.08em;color:#8974bb}#home .card-title{font:750 1.05rem/1.25 var(--sans);letter-spacing:-.025em;margin-top:8px;color:#32364d}#home .card-meta{font-size:.65rem;line-height:1.5;color:#9397ad;margin-top:9px}
#home .card-arrow{top:40px;right:13px;color:#947ce5;background:#f3efff;border-radius:50%;height:25px;width:25px;text-align:center;line-height:25px;font-size:.85rem}
#home .saved-view{padding-block:40px 60px}#home .saved-view h1{font:800 3rem/1.1 var(--sans);letter-spacing:-.055em;margin:12px 0}#home .heading-dot{color:#8c70ff}#home .saved-subtitle{color:#8588a0;font-size:.9rem}#home .saved-stats{color:#6e56c0;font-size:.78rem;margin-bottom:24px}
#home .saved-card-status{display:block;font-size:.7rem;font-weight:700;color:#6854bb;margin-top:14px}#home .saved-card-track{display:block;height:5px;border-radius:99px;background:#eeedf6;overflow:hidden;margin-top:9px}#home .saved-card-track>span{display:block;height:100%;background:linear-gradient(90deg,#7155e8,#ad91fa);border-radius:99px}
#home .empty-state{background:#fff;border:1px dashed #d4ccee;color:#646781}#home .empty-state h2{font:750 1.5rem var(--sans);color:#33344e}#home .button-primary{background:#6550dc;color:white;box-shadow:none}
#home .home-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 12px;background:#eef0f8;border-color:#e5e7f1;padding:30px 20px;color:#707590;font:400 .78rem var(--sans)}#home .home-footer strong{font:800 1.15rem var(--sans);letter-spacing:-.06em;color:#3c3b57}#home .home-footer span{font:inherit;margin:0}#home .home-footer small{width:100%;text-align:center;font-size:.67rem;color:#9397ab}
#setup{--ink:#2a2d49;--muted:#82869f;--white:#fff;border-radius:26px;background:#fff;box-shadow:0 25px 100px #1e17385c}#setup::backdrop{background:#18182b99;backdrop-filter:blur(9px)}#setup .dialog-photo{height:220px}#setup .dialog-body{padding:24px}#setup .category-label{color:#8d70c9;font-size:.61rem}#setup h2{font:800 1.8rem/1.1 var(--sans);letter-spacing:-.04em;margin-top:10px}#setup .setup-question{font-weight:700;color:#41455e;font-size:.9rem;margin-top:21px}#setup .difficulty-note{font-size:.76rem;line-height:1.5;color:#8588a0}
#setup .size-button{border:1px solid #e7e6f1;background:#f7f7fc;color:#73768c;border-radius:12px;min-height:52px;font-weight:700}#setup .size-button[aria-pressed="true"]{background:#ede7ff;border-color:#977fe2;box-shadow:0 0 0 1px #977fe2;color:#684aca}#setup .dialog-start{background:#7156e4;color:#fff;border-radius:13px;box-shadow:0 7px 17px #7156e422;min-height:50px}
@media(max-width:1050px){#home .gallery{grid-template-columns:repeat(3,minmax(0,1fr))}#home .header-inner{gap:12px}#home .navigation button{padding-inline:13px}}
@media(max-width:700px){
#home .shell{width:calc(100% - 32px)}#home .header-inner{grid-template-columns:minmax(0,1fr) auto;gap:15px;padding-top:calc(15px + env(safe-area-inset-top))}#home .studio-logo{width:45px;height:45px}#home .studio-wordmark{font-size:30px}#home .studio-tagline{font-size:6px;letter-spacing:.1em;margin-top:6px}#home .brand{gap:8px}
#home .import-button{font-size:.72rem;padding:9px 11px;min-height:43px}#home .navigation{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;width:100%;margin-bottom:13px;border-radius:14px}#home .navigation button{border-radius:10px;font-size:.8rem;min-height:42px}
#home .catalog{padding-block:18px 35px}#home .resume-latest{padding:11px 12px;margin-bottom:18px;border-radius:16px;gap:10px}#home .resume-latest img{height:50px;width:50px}#home .resume-latest strong{font-size:.86rem}#home .resume-latest span span{font-size:.68rem;line-height:1.4}
#home .hero{min-height:480px;border-radius:24px;align-items:start}#home .hero-content{max-width:100%;padding:28px 25px 200px;align-self:start}#home .hero-category{font-size:.5rem;letter-spacing:.08em}#home .hero h1{font-size:clamp(2.4rem,10vw,3.8rem);margin:18px 0 14px;line-height:1.04}#home .hero p{font-size:.8rem;max-width:245px;margin-bottom:20px}#home .hero-button{font-size:.8rem;min-height:46px;padding:11px 15px;gap:15px}#home .hero-image{object-position:center;opacity:.34}#home .hero::after{background:linear-gradient(150deg,#1b193af5,#1d2045b0 60%,#142c3c66)}
#home .hero-art{inset:auto 10px 24px auto;height:165px;width:90%}.hero-tile{height:146px;width:49%;border:3px solid #ffffffdd;border-radius:15px}.tile-one{top:0;left:12%;transform:rotate(-10deg)}.tile-two{bottom:0;right:6%;transform:rotate(12deg)}.hero-art-label{display:none}#home .hero-caption{font-size:.45rem;left:25px;bottom:12px;letter-spacing:.08em}
#home .collection-notes{grid-template-columns:1fr;gap:8px;padding:15px 0}#home .collection-notes>span,#home .collection-notes>button{padding:12px 15px;border-radius:13px;font-size:.7rem}#home .collection-notes b{font-size:.78rem;margin-bottom:2px}#home .collection-notes span:last-child{grid-column:auto}
#home .gallery-section{margin-top:17px}#home .section-heading{grid-template-columns:minmax(0,1fr);gap:15px}#home .eyebrow{font-size:.54rem}#home .section-heading h2{font-size:1.65rem;letter-spacing:-.04em}#home .section-description{font-size:.76rem;line-height:1.5;margin-top:9px}#home .gallery-search{min-width:0;width:100%;min-height:45px}#home .gallery-search input{font-size:.8rem}
#home .filters{grid-column:1;flex-wrap:nowrap;overflow-x:auto;margin-top:0;padding-bottom:5px}#home .filters button{font-size:.7rem;padding:9px 12px;min-height:41px;border-radius:10px}#home .gallery-count{font-size:.65rem;margin:10px 0 12px}#home .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#home .card{border-radius:16px}#home .gallery .card img{aspect-ratio:1.1}#home .card-body{padding:12px 12px 14px;min-height:132px}#home .category-label{font-size:.53rem}#home .card-title{font-size:.88rem;line-height:1.25;margin-top:6px}#home .card-meta{font-size:.58rem;margin-top:8px}#home .card-arrow{display:none}
#home .saved-view{padding-top:27px}#home .saved-view h1{font-size:2.4rem}#home .saved-subtitle{font-size:.78rem;line-height:1.5;margin-bottom:14px}#home .saved-stats{font-size:.7rem}#home .saved-card-status{font-size:.62rem}
#home .home-footer{padding:24px 15px;gap:10px}#home .home-footer span{width:100%;text-align:center;font-size:.7rem}
#setup .dialog-body{padding:20px}#setup .dialog-photo{height:min(22dvh,180px)}#setup h2{font-size:1.55rem}#setup .size-button{min-height:47px}#setup .dialog-start{min-height:48px}
}
@media(prefers-reduced-motion:reduce){#home .card{transition:none}}

#home .studio-tagline{white-space:nowrap}
@media(max-width:700px){#home .collection-notes{grid-template-columns:repeat(2,minmax(0,1fr))}#home .collection-notes>button{grid-column:1/-1}#home .collection-notes>span{font-size:.68rem}#home .collection-notes b{font-size:.75rem}#home .category-label{font-size:.62rem}#home .card-meta{font-size:.66rem}#home .card-title{font-size:.94rem}}

#home .new-puzzle-badge{position:absolute;top:11px;left:11px;border:1px solid #ffffff80;border-radius:8px;padding:5px 9px;background:#ffffffec;color:#6b4ed1;box-shadow:0 2px 8px #30234319;font:750 .64rem var(--sans);letter-spacing:.03em;pointer-events:none}
