/* Earlier Duemello stylesheets, kept intact for the 110 activities, room and
   birthday screens. They load into the `legacy` cascade layer so the v3 design
   (unlayered app-theme.css, app-shell.css, home.css, season.css) wins cleanly.
   Order matches the original <link> order so their own cascade is unchanged. */
/* Layer order: dm-important (v3 overrides that must beat old !important rules), then legacy. */
@layer dm-important, legacy;
@layer legacy{
:root{--forest:#244b43;--ink:#253f36;--muted:#66786f;--page:#f9faf7;--line:#dfe6de;--rose:#f8dce4;--pink:#f18599;--lilac:#e8e1f6;--mint:#dcebdd;--honey:#f6df9f;--sky:#d9ecf4;--radius:22px;color-scheme:light;font-family:"Trebuchet MS","Avenir Next",Avenir,system-ui,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}input,textarea{color:var(--ink)}button{touch-action:manipulation}button:disabled{cursor:default}button,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a378bf;outline-offset:3px}input,textarea,select{border:1px solid var(--line);background:white;border-radius:12px;padding:12px 14px;min-width:0;max-width:100%}textarea{resize:vertical;line-height:1.65}input::placeholder,textarea::placeholder{color:#77847c}input[type=range]{accent-color:var(--forest);padding:0}input[type=search]::-webkit-search-cancel-button{cursor:pointer}h1,h2,h3,h4,p{margin:0}p{line-height:1.6}h2{font-size:1.5rem;letter-spacing:-.03em}h3{font-size:1.2rem;letter-spacing:-.02em}button .icon{flex-shrink:0}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;flex-shrink:0}.button{border:1px solid var(--line);background:#fff;min-height:44px;border-radius:12px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.9rem;font-weight:600;transition:background .18s,transform .18s;line-height:1.4;max-width:100%}.button:hover:not(:disabled){background:#edf1e9;transform:translateY(-1px)}.button.primary{color:white;background:var(--forest);border-color:var(--forest)}.button.primary:hover{background:#163b31}.button.quiet{border-color:transparent;background:transparent;padding-left:0;padding-right:0;text-decoration:underline;text-underline-offset:5px;text-decoration-color:#a7b8ac}.button:disabled{opacity:.48}.icon-button{min-width:44px;min-height:44px;border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;font-size:1.6rem}.icon-button:hover{background:#edf1e9}.tiny-eyebrow,.small-label{font-size:.75rem;letter-spacing:.13em;font-weight:700;line-height:1.5}.small-label{color:var(--muted)}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;left:20px;top:-80px;background:var(--forest);color:white;z-index:100;padding:15px;border-radius:10px}.skip-link:focus{top:10px}.noscript-note{padding:30px}
.app-header{height:80px;background:var(--forest);color:#fffef5;display:flex;align-items:center;padding:0 max(32px,calc((100vw - 1500px)/2));gap:58px;border-bottom:1px solid #ffffff18}.wordmark{border:0;background:none;color:inherit;display:flex;align-items:center;font-size:2rem;font-weight:700;letter-spacing:-.07em;padding:0}.brand-symbol{font-family:Georgia,serif;font-size:2.4rem;margin-right:9px;line-height:1;color:var(--honey)}.brand-period{color:var(--honey)}.app-header nav{display:flex;gap:28px}.header-nav{border:0;background:none;color:#c9dacf;min-height:44px;font-size:.9rem;font-weight:600;padding:8px 0}.header-nav.selected{color:white}.header-nav.selected:after{content:"";display:block;width:22px;height:3px;margin:9px auto -12px;background:var(--honey);border-radius:3px}.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.header-room{color:var(--forest);background:var(--honey);border-color:var(--honey);border-radius:12px}.header-room:hover{background:#ffeab7!important}.header-settings{color:white}.header-settings:hover{background:#ffffff18}.app-layout{max-width:1500px;display:grid;grid-template-columns:228px minmax(0,1fr);margin:0 auto}.sidebar{padding:34px 24px;min-height:calc(100vh - 80px);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:26px;background:#f1f4ec}.couple-pair{display:flex;align-items:flex-start;justify-content:center;gap:12px}.couple-pair>div{display:flex;align-items:center;flex-direction:column;gap:10px;max-width:65px}.couple-pair strong{font-size:.9rem;overflow-wrap:anywhere;text-align:center}.avatar{width:51px;height:51px;border:2px solid white;display:grid;place-items:center;border-radius:50%;font-family:Georgia,serif;font-size:1.6rem;color:var(--forest)}.avatar-a{background:var(--honey);transform:rotate(-7deg)}.avatar-b{background:#e5d9f4;transform:rotate(7deg)}.between-heart{font-size:1.8rem;color:#b67b8e;padding-top:8px;font-family:Georgia,serif}.side-links{display:grid;gap:6px}.side-link{min-height:48px;text-align:left;border:0;background:none;border-radius:12px;display:flex;align-items:center;gap:10px;font-size:.875rem;padding:10px;color:#52665a}.side-link>span{font-size:1.2rem;width:20px;text-align:center}.side-link b{margin-left:auto;font-size:.75rem;font-weight:500}.side-link.active,.side-link:hover{background:#e1e9d9;color:var(--forest)}.sidebar-invite{padding:22px 16px;background:#e4ead7;border-radius:20px;position:relative;overflow:hidden}.sidebar-invite:after{content:"♡";font-size:4rem;position:absolute;right:6px;top:14px;color:#b2c2a59e;transform:rotate(20deg);pointer-events:none}.sidebar-invite .tiny-eyebrow{font-size:.7rem;letter-spacing:.08em}.sidebar-invite h3{font-family:Georgia,serif;font-size:1.65rem;margin:12px 0}.sidebar-invite p{font-size:.875rem;color:#596b5b;margin:0 0 18px}.sidebar-invite .button{width:100%;font-size:.8rem;padding:10px}.side-note{display:flex;align-items:center;gap:10px;color:#6e806e;margin-top:4px;font-size:.875rem}.side-note>span{color:#a78a4e;font-size:1.5rem}.side-bottom{margin-top:auto;min-height:44px;font-size:.8rem;text-align:left;background:none;border:0;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
main{padding:30px 36px 40px;min-width:0;outline:none}.welcome{min-height:246px;background:#e9e4f2;border:1px solid #dfd5ec;border-radius:var(--radius);padding:24px 30px;position:relative;overflow:hidden;display:flex;align-items:center;background-image:linear-gradient(#8d79a90c 1px,transparent 1px),linear-gradient(90deg,#8d79a90c 1px,transparent 1px);background-size:24px 24px}.welcome-copy{z-index:2;position:relative}.welcome-copy .tiny-eyebrow{color:#6d617d}.welcome h1{font-size:2.75rem;line-height:1.06;letter-spacing:-.055em;margin:9px 0 10px;font-weight:700}.welcome h1 br{display:none}.welcome h1 em{font-family:Georgia,serif;font-weight:400;letter-spacing:-.055em}.welcome p{font-size:.95rem;color:#675f74;margin-bottom:16px}.welcome .button{font-size:.85rem;min-height:42px}.couple-art{position:absolute;right:28px;bottom:-5px;max-width:37%;width:300px;height:auto;filter:drop-shadow(0 5px 0 #4c31491a);pointer-events:none}.welcome-star{position:absolute;color:#9e86af}.welcome-star.s1{right:37%;top:28px;font-size:2rem}.welcome-star.s2{right:17px;bottom:24px;font-size:2.2rem}.welcome-sticker{position:absolute;right:22px;top:20px;transform:rotate(11deg);font-size:.75rem;text-align:center;border-radius:50%;width:66px;height:66px;background:var(--honey);padding:10px 4px;box-shadow:0 2px 0 #c0aa68;line-height:1.2;z-index:1}.welcome-sticker em{font-family:Georgia,serif;font-size:1.65rem}.featured-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.feature{min-width:0;display:flex;align-items:center;gap:16px;text-align:left;padding:20px;border-radius:19px;border:1px solid #dbe4d7;position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s}.feature:hover{transform:translateY(-3px);box-shadow:0 6px 20px #244b4309}.feature-create{background:#e0ead9}.feature-movie{background:#f5e2db;border-color:#eed5ce}.feature .tiny-eyebrow{font-size:.68rem;letter-spacing:.09em;color:#6d7866}.feature h2{font-size:1.2rem;letter-spacing:-.025em;margin:5px 0}.feature p{font-size:.8rem;color:#667463}.feature-art{flex-shrink:0;display:grid;place-items:center;width:54px;height:54px;border:1px solid #bdd1b1;border-radius:16px;transform:rotate(-8deg);font-size:2.4rem;color:#526d4c;background:#eff4e8}.feature-movie .feature-art{border-color:#e0bdb0;background:#ffefe8;font-size:2rem;transform:rotate(7deg)}.feature-end{margin-left:auto;color:#839874;font-size:1.8rem}.feature-movie .feature-end{color:#c28773}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 20px}.library-heading h2{font-size:1.4rem}.library-heading p{font-size:.875rem;color:var(--muted);margin-top:5px}.search-box{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:0 12px;width:260px;color:#6d7e72;min-height:46px}.search-box input{border:none;padding:11px 0;width:100%;border-radius:0;font-size:.875rem;background:transparent}.search-box input:focus-visible{outline:none}.search-box:focus-within{outline:2px solid #a378bf;outline-offset:2px}.category-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:24px}.category-tab{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:11px;padding:9px 12px;min-height:42px;background:white;white-space:nowrap;font-size:.8rem;font-weight:500}.category-tab .icon{width:16px;height:16px}.category-tab.active{background:var(--forest);color:white;border-color:var(--forest)}.category-tab:hover:not(.active){background:#ecf1e7}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.game-card{position:relative;border:1px solid var(--line);border-radius:19px;background:#fff;transition:transform .2s,box-shadow .2s;overflow:hidden}.game-card:hover{transform:translateY(-4px);box-shadow:0 8px 23px #244b430c}.card-main{background:none;border:none;display:block;text-align:left;width:100%;height:100%;padding:20px 20px 18px;min-height:220px}.card-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;margin-bottom:18px;transform:rotate(-5deg)}.card-icon .icon{width:26px;height:26px}.cat-words .card-icon{background:var(--honey);color:#776229}.cat-play .card-icon{background:var(--lilac);color:#7b669c}.cat-create .card-icon{background:var(--mint);color:#51715a}.cat-talk .card-icon{background:var(--rose);color:#ad6479}.cat-trivia .card-icon{background:var(--sky);color:#577d93}.cat-dates .card-icon{background:#f7e7cd;color:#997f4f}.card-main h3{font-size:1.025rem;letter-spacing:-.02em;margin-bottom:7px;max-width:100%;overflow-wrap:break-word}.card-main p{font-size:.82rem;line-height:1.55;color:var(--muted);min-height:41px}.card-meta{display:flex;align-items:center;gap:8px;margin-top:18px;font-size:.7rem;color:#839080}.card-meta .icon{width:14px;height:14px}.card-meta .card-number{margin-left:auto;color:#a0ac9a}.favourite-button{position:absolute;top:12px;right:12px;width:42px;height:42px;border:0;background:transparent;display:grid;place-items:center;border-radius:50%;z-index:1;color:#a7b3a2}.favourite-button .icon{width:19px;height:19px}.favourite-button.saved{color:#b9758a}.favourite-button.saved .icon{fill:#f8dce4}.favourite-button:hover{background:#f1f4ed}.memory-mark{position:absolute;right:20px;bottom:18px;color:#6b8d62;pointer-events:none;font-size:.7rem;background:#e7efdc;border-radius:5px;padding:2px 5px}.game-card.completed .card-number{visibility:hidden}.mobile-filters{display:none}.empty-library{grid-column:1/-1;text-align:center;padding:60px 24px;color:var(--muted);background:white;border:1px dashed var(--line);border-radius:20px}.empty-library h3{color:var(--ink);margin:10px 0}.empty-library .icon{width:36px;height:36px}.library-footer{padding-top:36px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#889682;gap:8px;font-size:.8rem}.library-footer>span:first-child{font-family:Georgia,serif;font-size:1.8rem;color:#b495a6}.library-footer>span:last-child{font-size:.75rem}
.play-heading{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.play-heading>div{flex:1;min-width:160px}.play-heading h1{font-size:2.1rem;letter-spacing:-.045em;margin-top:5px}.play-heading .tiny-eyebrow{color:var(--muted)}.play-heading>.button{padding:10px 14px;background:white;border-color:var(--line);text-decoration:none}.play-favourite{color:#9b7d8c}.activity-shell{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px}.game-content{background:white;border:1px solid var(--line);border-radius:24px;padding:28px;min-height:440px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:20px;position:relative}.game-hint{font-size:.9rem;color:var(--muted);max-width:550px;line-height:1.6}.game-hint:empty{display:none}.game-toolbar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.turn-pill{font-size:.875rem;display:flex;align-items:center;gap:9px;background:#f2f5eb;border-radius:30px;padding:9px 15px}.player-dot{display:inline-block;width:11px;height:11px;border-radius:50%;flex-shrink:0}.player-dot.p0{background:#d09c44}.player-dot.p1{background:#aa8acc}.play-aside{display:flex;flex-direction:column;gap:18px}.play-note{border:1px solid #e1dfd2;background:#f6f1df;border-radius:20px;padding:22px}.play-note>span{font-size:2rem;color:#b69a5b;font-family:Georgia,serif}.play-note h3{font-family:Georgia,serif;font-size:1.35rem;line-height:1.35;margin:6px 0 13px;font-weight:400}.play-note p{font-size:.875rem;color:#797b65}.play-note .game-toolbar{margin-top:18px;gap:8px;justify-content:flex-start}.play-note .button{font-size:.8rem;padding:9px 12px}.play-note.pale{background:#e9eedf;border-color:#dce4d3}.play-note.pale .button{margin-top:16px}.play-couple{width:95%;align-self:center;max-width:220px;margin-top:10px}.play-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;font-size:.8rem;color:var(--muted)}.entry-form{width:100%;max-width:460px;display:flex;gap:10px;align-items:center}.entry-form input,.entry-form textarea{flex:1;min-width:0}.entry-form:has(textarea){flex-direction:column;align-items:stretch}.entry-form:has(textarea) .button{align-self:flex-end}.game-message{font-size:.9rem;padding:12px 16px;background:#f9f1dc;border-radius:12px;width:100%;line-height:1.5}.result-banner{display:flex;gap:14px;align-items:center;padding:18px;background:#e9f1df;border-radius:16px;width:100%;text-align:left}.result-banner .icon{width:30px;height:30px;color:#668653}.result-banner p{font-size:.8rem;margin-top:5px}.result-art{font-size:4rem;line-height:1;color:#bba45e;margin:30px 0 5px}.board{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));width:100%;max-width:400px;gap:7px}.tile{aspect-ratio:1;background:#f2f5ec;border:1px solid var(--line);border-radius:12px;font-size:1.25rem;display:grid;place-items:center;min-width:0;padding:0;transition:background .15s,transform .15s;overflow:hidden}.tile:hover:not(:disabled){background:#e1ead5}.tile:active:not(:disabled){transform:scale(.94)}.tile:disabled{color:inherit}.wordle-grid{display:grid;gap:7px;width:100%;max-width:320px}.wordle-grid>div{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.word-cell{aspect-ratio:1;display:grid;place-items:center;border:1.5px solid #dfe6dc;background:#f8faf5;border-radius:9px;font-size:1.4rem;font-weight:700}.hit{background:#9bc9a2!important;color:#173f37}.near{background:var(--honey)!important;color:#695429}.miss{background:#e3e7df!important;color:#6e7b69}.hearts-remaining{display:flex;gap:10px;color:#da899d}.hearts-remaining .icon{width:25px;height:25px;fill:#f7d1dc}.hearts-remaining .lost{opacity:.25}.word-slots{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}.word-slots>span{width:36px;min-height:46px;display:grid;place-items:center;background:#eef3e9;border-bottom:3px solid #b6c9ad;border-radius:9px 9px 3px 3px;font-size:1.3rem;font-weight:700}.letter-keyboard{width:100%;display:grid;gap:7px}.letter-keyboard>div{display:flex;justify-content:center;gap:5px}.key{padding:7px 0;flex:1;max-width:40px;min-width:0;min-height:43px;font-size:.875rem;border-radius:7px}.scramble-letters{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.scramble-letters span{display:grid;place-items:center;border-radius:10px;background:var(--honey);border:1px solid #ead6a1;width:45px;height:54px;font-size:1.4rem;font-weight:700;transform:rotate(-4deg)}.scramble-letters span:nth-child(2n){transform:rotate(4deg)}.phrase-output,.phrase-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%}.phrase-output{min-height:110px;background:#f7f9f2;border:1px dashed #c5d3bd;border-radius:15px;padding:15px;align-items:center}.word-tag{border-radius:10px;background:#f4edda}.prompt-title{font-family:Georgia,serif;font-size:1.6rem;font-weight:400;line-height:1.4;margin:6px auto;max-width:520px;overflow-wrap:anywhere}.answer-options,.choice-options{display:grid;gap:10px;width:100%;max-width:520px}.option{justify-content:flex-start;text-align:left;font-weight:500;min-height:54px}.option-letter{width:30px;height:30px;background:#eff4e7;display:grid;place-items:center;border-radius:8px;color:#6e8066;flex-shrink:0}.option.correct{background:#e1f1da;border-color:#93bb85;opacity:1}.option.incorrect{background:#fde3e3;border-color:#df9999;opacity:1}.word-chain{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;padding:20px;background:#f2f5ec;border-radius:16px}.word-chain span{background:white;padding:8px 13px;border-radius:9px;font-size:.9rem}.word-chain i{padding:8px 0}.crossword-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.8fr);gap:20px;width:100%;text-align:left}.crossword{gap:1px;max-width:100%;align-content:start}.cross-cell{aspect-ratio:1;position:relative;border:1px solid #b9c9b3;border-radius:2px;background:#fffef7;min-width:0}.cross-cell>span{position:absolute;top:0;left:2px;font-size:.6rem;line-height:1.2;pointer-events:none}.cross-cell input{border:0;padding:0;width:100%;height:100%;border-radius:0;text-align:center;text-transform:uppercase;font-size:clamp(.8rem,1.6vw,1.15rem);padding-top:6px;background:transparent}.cross-block{aspect-ratio:1;background:#eff3e9;border-radius:2px}.cross-cell.error,.sudoku input.error{background:#fae3e3}.clues h4{text-transform:capitalize;font-size:.875rem;margin:0 0 10px}.clues h4:not(:first-child){margin-top:20px}.clues button{display:block;text-align:left;font-size:.8rem;line-height:1.5;background:none;border:0;margin:0 0 7px;padding:5px;border-radius:7px;width:100%}.clues button:hover{background:#eff3e9}.clues span{color:#849179}.cross-cell.highlight{background:#f9edc6}.word-search{max-width:420px;gap:3px}.word-search .tile{border:0;font-size:.875rem;border-radius:5px;font-weight:600}.word-search .tile.found{background:#d8eccc}.word-search .tile.selected{background:#f3d485}.word-tags{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;font-size:.8rem}.word-tags span{padding:6px 10px;border:1px solid var(--line);border-radius:8px}.word-tags span.found{text-decoration:line-through;color:#819575;background:#eff5e5}.sudoku{gap:0;max-width:320px;border:2px solid #799672;border-radius:8px;overflow:hidden}.sudoku input{aspect-ratio:1;border-radius:0;text-align:center;padding:8px;font-size:1.8rem;border:1px solid #c3d2b7}.sudoku input:nth-child(4n+2){border-right:2px solid #799672}.sudoku input:nth-child(n+5):nth-child(-n+8){border-bottom:2px solid #799672}.sudoku .given{background:#edf2e3;font-weight:700}.sliding-board{max-width:330px;gap:10px}.number-tile{font-size:2.1rem;font-family:Georgia,serif;background:#e5e9d2;border-color:#cdd8bb;box-shadow:0 4px 0 #c3d0b5}.empty{border:1px dashed #d5ddca;background:#f8faf4}.tic-board{max-width:330px;gap:12px}.tic-board .tile{font-size:3.5rem;border-radius:18px;font-family:Georgia,serif}.tic-board .p0{color:#b19342;background:#fff3d2}.tic-board .p1{color:#9c83b2;background:#eee5f5}.connect-columns{display:grid;grid-template-columns:repeat(7,1fr);width:100%;max-width:400px;gap:7px}.connect-columns .button{min-width:0;padding:6px;background:transparent;border:0;font-size:1.5rem}.connect-board{background:#dce5d0;border:1px solid #c6d7ba;padding:15px;border-radius:18px;gap:8px}.connect-cell{aspect-ratio:1;background:#f9faf7;border-radius:50%;font-size:1.8rem;display:grid;place-items:center;line-height:1}.connect-cell.p0{background:#f1d17b;color:#a18132}.connect-cell.p1{background:#c8b6e7;color:#8e6bac}.reversi-board{gap:3px;padding:8px;background:#739274;border-radius:13px}.reversi-cell{border:0;border-radius:4px;background:#dce8ca;position:relative}.reversi-cell:disabled{background:#dce8ca}.disc{width:78%;height:78%;border-radius:50%;box-shadow:0 2px 0 #0002}.disc.p0{background:#264b3b;border:1px solid #183c2a}.disc.p1{background:#fff9e1;border:1px solid #dedbc2}.legal-dot{width:16%;height:16%;background:#789370;border-radius:50%}.dots-board{width:100%;max-width:310px;display:grid;grid-template-columns:8px 1fr 8px 1fr 8px 1fr 8px;grid-template-rows:8px 1fr 8px 1fr 8px 1fr 8px;aspect-ratio:1;gap:3px}.dot{background:#6a825d;border-radius:50%;z-index:1}.dot-edge{min-height:0;border:0;background:#e5eddb;padding:0;border-radius:5px;position:relative}.dot-edge.horizontal{height:12px;align-self:center}.dot-edge.vertical{width:12px;justify-self:center;height:100%}.dot-edge.p0{background:#d8b854}.dot-edge.p1{background:#b09ad2}.dot-edge:hover:not(:disabled){background:#b6cfa1}.dot-box{display:grid;place-items:center;font-size:1.6rem;border-radius:10px}.dot-box.p0{background:#fbf0cb;color:#c6a548}.dot-box.p1{background:#efe5f9;color:#ae96ce}.fleet-board .tile{background:#e2f0f4;color:#8aabb3;border-color:#cbdee3;font-size:1.5rem}.fleet-board .water{background:#f3f9fb}.memory-board .tile{font-size:2rem;background:#e7e4f4;color:#a58dc7;border:1px solid #ded3ef;border-radius:15px;box-shadow:0 3px 0 #d2c9e5}.memory-board .faceup{background:#fffdf6}.memory-board .matched{background:#e2edd8;border-color:#d3e0c4;box-shadow:none}.reaction-zone{width:100%;min-height:250px;border-radius:20px;background:#eadff3;border:1px solid #d5c2e4;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px}.reaction-zone strong{font-size:1.3rem}.reaction-symbol .icon{width:50px;height:50px;color:#9b79af}.reaction-zone.waiting{background:#f7e2da;border-color:#ecc9be}.reaction-zone.ready{background:#c4e2ac;border-color:#9abc83}.reaction-zone.ready .icon{color:#55743d}.targets-board{max-width:420px;gap:10px}.targets-board .tile{border-radius:50%;background:#edf3e3;border:1px solid #dce7ce;font-size:1.9rem}.targets-board .target-active{background:#f8dbe4;color:#c1728d}.arcade-score{display:flex;gap:20px;font-weight:700;font-size:.9rem;justify-content:space-between;width:100%;max-width:520px;color:#748365}#arcade-canvas{width:100%;max-width:520px;aspect-ratio:26/17;border-radius:18px;touch-action:none}#drawing-canvas{width:100%;max-width:900px;aspect-ratio:3/2;border:1px solid #e4e7dd;border-radius:14px;touch-action:none;background:#fffefb;cursor:crosshair}.direction-pad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:5px}.direction{padding:0;font-size:1.4rem;min-width:44px}.direction.up{grid-column:2;grid-row:1}.direction.left{grid-column:1;grid-row:2}.direction.down{grid-column:2;grid-row:2}.direction.right{grid-column:3;grid-row:2}.simon-board{display:grid;grid-template-columns:1fr 1fr;gap:13px;max-width:320px;width:100%}.simon-cell{display:flex;flex-direction:column;gap:12px;aspect-ratio:1;align-items:center;justify-content:center;border-radius:24px;border:0;font-size:.85rem;opacity:1!important;min-width:0}.simon-cell .icon{width:36px;height:36px}.colour-0{background:#f7d7e1;color:#ad6980}.colour-1{background:#f6e6b5;color:#a88e45}.colour-2{background:#dcebcf;color:#729452}.colour-3{background:#d8e9f4;color:#6e99b3}.simon-cell.lit{filter:brightness(1.18);box-shadow:0 0 0 5px #b9a864;transform:scale(1.04)}.simon-status{font-size:.9rem;color:var(--muted)}.merge-board{background:#dbe1cf;padding:10px;border-radius:15px;gap:9px;max-width:350px}.merge-tile{aspect-ratio:1;display:grid;place-items:center;border-radius:10px;background:#edf1e8;font-weight:700;font-size:1.75rem}.merge-tile.n2{background:#f7edd1}.merge-tile.n4{background:#f1dbaa}.merge-tile.n8{background:#ecc89d}.merge-tile.n16{background:#dfb190}.merge-tile.n32{background:#e3a496}.merge-tile.n64{background:#d28e93;color:white}.merge-tile.n128,.merge-tile.n256{background:#b6aad3;color:white;font-size:1.4rem}.merge-tile.n512,.merge-tile.n1024,.merge-tile.n2048{background:#8da873;color:white;font-size:1.25rem}.mines-board{gap:4px;max-width:360px}.mines-board .tile{border-radius:5px;font-size:1rem;background:#e1eacf;box-shadow:0 2px 0 #c9d6b6;border:0}.mines-board .revealed{background:#f3f7ec;box-shadow:none}.num1{color:#6693b3}.num2{color:#799b55}.num3{color:#cb8a7c}.num4{color:#967bb3}.thorn{background:#f0c7cf!important}.duo-reveal{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;max-width:500px}.duo-reveal>div{display:flex;flex-direction:column;align-items:center;gap:10px;padding:23px 14px;border-radius:16px;background:#f8f0d9;min-width:0;overflow-wrap:anywhere}.duo-reveal>div:nth-child(2){background:#eee5f6}.duo-reveal>div>span{font-size:3rem}.duo-reveal>div>small{font-size:.875rem}.duo-reveal p{font-size:.95rem}.duo-reveal.answers{max-width:none}.duo-reveal.answers>div{align-items:flex-start;text-align:left}.rps-options{display:flex;gap:12px;width:100%;max-width:430px}.rps-options .button{display:flex;flex-direction:column;flex:1;text-transform:capitalize;background:#f1f3e7;min-width:0;padding:18px 8px}.rps-options span{font-size:2.5rem}.pass-card{background:#f4f0f8;border:1px dashed #cfc3de;border-radius:20px;padding:36px 20px;text-align:center;max-width:500px;width:100%;display:flex;flex-direction:column;align-items:center;gap:16px}.pass-card .icon{width:36px;height:36px;color:#9a84ad}.pass-card p{font-size:.95rem;color:#796587}.dice-face{font-size:7rem;color:#b49961;line-height:1}.roll-total{font-size:2.5rem!important;font-family:Georgia,serif}.playing-card{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;width:170px;height:245px;background:#fffef7;border:1px solid #e8dbc1;border-radius:16px;padding:18px;box-shadow:0 8px 0 #f0e7d9;transform:rotate(-4deg);color:#b7768b;font-family:Georgia,serif}.playing-card strong{font-size:5rem;align-self:center;font-weight:400}.playing-card>span{font-size:1.5rem}.playing-card>span:last-child{align-self:flex-end;transform:rotate(180deg)}.bingo-board .tile{font-size:.75rem;line-height:1.4;padding:9px;aspect-ratio:1.05;position:relative}.bingo-board .tile.checked{background:#e1ecd2}.bingo-board .tile span{position:absolute;right:3px;bottom:1px;color:#b596bf;font-size:1.2rem}.drawing-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;width:100%}.palette{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.swatch{background:var(--swatch);width:32px;height:32px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d4dccf}.swatch.selected{box-shadow:0 0 0 3px #b4beab}.brush-size{font-size:.8rem;color:var(--muted);display:flex;align-items:center;gap:8px}.brush-size input{width:85px}.pixel-board{max-width:480px;gap:0;border:1px solid #dfe6dc;border-radius:6px;overflow:hidden;touch-action:none}.pixel{aspect-ratio:1;border:1px solid #e9ede4;padding:0;min-width:0;background:#fffefb}.story-paper{padding:22px 26px;width:100%;min-height:220px;background:#fdfbf1;border:1px solid #e8e0ce;border-radius:15px;text-align:left;background-image:repeating-linear-gradient(transparent 0px,transparent 31px,#dce3cf 32px);background-position:0 20px}.story-line{display:grid;grid-template-columns:12px 1fr;gap:9px;align-items:baseline;margin-bottom:18px}.story-line p{font-family:Georgia,serif;font-size:1.125rem;line-height:1.85;white-space:normal;overflow-wrap:anywhere}.story-line small{grid-column:2;font-size:.75rem;color:#9a9c84}.paper-empty{font-family:Georgia,serif;font-style:italic;color:#a8a58d;font-size:1.1rem}.prompt-card{width:100%;min-height:260px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:25px;padding:30px;background:#f6ecf3;border:1px solid #e8d9e4;border-radius:24px;transform:rotate(-1deg)}.prompt-card h3{font-family:Georgia,serif;font-weight:400;font-size:1.65rem;line-height:1.4;max-width:460px}.prompt-card-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#eddae7;color:#b489a5}.timer-readout{font-size:.875rem;color:var(--muted)}.file-picker,.photo-picker{position:relative;overflow:hidden;cursor:pointer}.file-picker input,.photo-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.photo-preview{max-width:100%;max-height:300px;border-radius:15px;object-fit:contain}.date-wheel{width:225px;height:225px;border-radius:50%;padding:20px;display:grid;place-items:center;background:conic-gradient(#f1d79a 0 60deg,#e3ceec 60deg 120deg,#bcd7b0 120deg 180deg,#ecbfcf 180deg 240deg,#bddbe3 240deg 300deg,#d9d8a9 300deg 360deg);border:6px solid #faf6e7;box-shadow:0 0 0 1px #e2dbbf;position:relative}.date-wheel:before{content:"";position:absolute;top:-9px;width:20px;height:25px;background:var(--forest);clip-path:polygon(0 0,100% 0,50% 100%)}.date-wheel>div{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fffdf2;width:130px;height:130px;border-radius:50%;gap:12px}.date-wheel .icon{width:35px;height:35px;color:#b88796}.date-wheel span{font-family:Georgia,serif;font-style:italic;font-size:1.25rem}.date-wheel.spun{animation:spin .9s cubic-bezier(.1,.6,.2,1)}@keyframes spin{from{transform:rotate(-360deg)}to{transform:rotate(0)}}.date-result{font-family:Georgia,serif;font-size:1.45rem;line-height:1.4;max-width:450px;min-height:60px}.shared-list{width:100%;display:flex;flex-direction:column;gap:10px;text-align:left}.list-item{display:flex;align-items:center;gap:12px;background:#f5f6ef;border-radius:12px;padding:10px;font-size:.95rem;overflow-wrap:anywhere}.list-item>span{flex:1;min-width:0}.list-item.checked>span{text-decoration:line-through;color:#91a080}.list-check{width:33px;height:33px;min-height:33px;border-radius:50%;padding:0;flex-shrink:0;border:1px solid #cbd7bd}.list-item.checked .list-check{background:#dbe9c8}.list-item .icon-button{min-width:34px;width:34px;min-height:34px;font-size:1rem;color:#95a08c}.list-item .icon-button .icon{width:16px}
.activity-shell.movie-mode{display:block}.movie-mode #play-aside{display:none}.movie-mode .game-content{padding:0;background:none;border:0;min-height:0}.movie-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:20px;width:100%;text-align:left}.cinema{min-width:0}.screen-shell{position:relative;aspect-ratio:16/9;background:#173b32;border:8px solid #244b43;border-radius:20px;overflow:hidden}.screen-shell iframe,.screen-shell video{width:100%;height:100%;border:0;object-fit:contain;background:#173b32}.screen-shell #movie-player{width:100%;height:100%}.screen-shell #remote-stream{position:absolute;inset:0}.screen-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#e2ead8;padding:25px;text-align:center;gap:14px}.screen-empty .icon{width:45px;height:45px;color:#d2b971}.screen-empty h3{font-family:Georgia,serif;font-size:1.5rem;font-weight:400}.screen-empty p{font-size:.85rem;color:#adbfa8;max-width:320px}.movie-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}.movie-controls .button{font-size:.8rem;padding:8px 11px}.movie-controls>span{font-size:.8rem;color:#7b8872;margin-left:auto}.movie-controls label{font-size:.8rem;display:flex;gap:5px;align-items:center;color:#7b8872}.movie-controls select{padding:8px;font-size:.8rem;border-radius:8px}.movie-status{font-size:.8rem;color:#75856c;padding-bottom:18px}.source-options{border:1px solid var(--line);border-radius:19px;background:#fff;padding:22px}.source-options form>label{display:block;font-size:.875rem;margin-bottom:9px;font-weight:600}.inline-input{display:flex;gap:8px}.inline-input input{min-width:0;flex:1}.source-options .game-toolbar{margin-top:14px;justify-content:flex-start}.source-options .button{font-size:.8rem;padding:9px 13px}.source-note{margin-top:15px;color:#8a9583;font-size:.75rem;line-height:1.6}.movie-chat{background:#f2f4e9;border:1px solid #dfe4d4;border-radius:21px;padding:20px;display:flex;flex-direction:column;min-width:0;max-height:650px}.movie-chat h3{font-family:Georgia,serif;font-size:1.3rem;font-weight:400;padding-bottom:16px}.movie-chat-log{display:flex;flex-direction:column;gap:12px;flex:1;overflow:auto;min-height:220px}.chat-empty{font-size:.85rem;color:#8b967e;padding:18px 0}.chat-bubble{padding:12px;border-radius:12px;background:#fff3d1;max-width:95%;overflow-wrap:anywhere}.chat-bubble.p1{background:#e8dff3;align-self:flex-end}.chat-bubble small{font-size:.7rem;color:#9d8e60}.chat-bubble.p1 small{color:#9380b0}.chat-bubble p{font-size:.85rem;margin-top:5px}.chat-form{display:flex;gap:6px;margin-top:18px}.chat-form input{width:100%;min-width:0;font-size:.8rem;padding:10px}.chat-form .button{padding:0;min-width:42px;width:42px;min-height:42px}.movie-mode .game-message{margin-top:15px}
.app-dialog{border:1px solid var(--line);border-radius:24px;padding:26px;max-width:480px;width:calc(100% - 32px);color:var(--ink);background:#fcfdf8;box-shadow:0 25px 100px #18322833;max-height:calc(100dvh - 60px);overflow:auto}.app-dialog::backdrop{background:#18322865;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;color:var(--muted)}.dialog-top .icon-button{min-width:34px;min-height:34px;width:34px;font-size:1.7rem}.app-dialog h2{font-family:Georgia,serif;font-weight:400;font-size:1.85rem;line-height:1.3;margin:10px 0 18px}.app-dialog p{font-size:.9rem;color:var(--muted);margin-bottom:16px}.app-dialog form{display:grid;gap:16px;margin:20px 0}.app-dialog form label{font-size:.9rem;display:grid;gap:8px;font-weight:600}.app-dialog form input{width:100%}.app-dialog .dialog-note{font-size:.75rem;margin:18px 0 0;color:#8b987e}.room-options{display:flex;flex-direction:column;gap:12px;margin-top:20px}.room-options .button{width:100%}.invite-box{background:#edf3e5;border:1px dashed #b9c9a9;border-radius:13px;padding:14px;overflow-wrap:anywhere;font-size:.8rem;margin:18px 0}.room-error{color:var(--theme-text,var(--ink));background:#fae7ec;padding:12px;border-radius:10px}.room-ready{font-size:.875rem;color:#6d8c5c;padding:10px 0}.connection-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#9bb586;margin-right:8px}.toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;background:var(--forest);color:white;border-radius:14px;padding:14px 22px;font-size:.875rem;box-shadow:0 6px 30px #173f3730;z-index:200;text-align:center}.busy{pointer-events:none;opacity:.6}
@media(min-width:1350px){.activity-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.card-main{padding:20px 18px}.app-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:1190px){.app-layout{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:30px 16px}main{padding:26px 24px}.app-header{padding:0 24px;gap:40px}.activity-shell{grid-template-columns:minmax(0,1fr) 195px;gap:16px}.game-content{padding:22px}.play-note{padding:18px}.welcome h1{font-size:2.55rem}.welcome h1 br{display:block}.welcome{min-height:250px}.couple-art{max-width:43%}.feature{gap:12px;padding:16px}.feature-art{width:42px;height:42px;font-size:2rem}.feature h2{font-size:1.05rem}.feature-end{display:none}.category-tab{font-size:.75rem;padding:8px 10px}.card-main{padding:18px 15px}.movie-layout{grid-template-columns:minmax(0,1fr) 230px}.movie-controls>span{margin-left:0}}
@media(max-width:980px){.app-layout{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:26px 14px}.sidebar-invite{padding:18px 14px}.sidebar-invite .button{font-size:.75rem}.side-link{font-size:.8rem;padding:10px 8px;gap:6px}.welcome{padding:22px}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-shell{display:block}.play-aside{flex-direction:row;margin-top:20px}.play-note{flex:1}.play-couple{display:none}.play-heading h1{font-size:1.75rem}.movie-layout{grid-template-columns:minmax(0,1fr) 200px;gap:14px}.movie-chat{padding:16px}.library-heading{align-items:flex-start}.search-box{width:220px}.welcome h1{font-size:2.3rem}.welcome-sticker{right:14px;top:14px;width:57px;height:57px;font-size:.68rem}.welcome-sticker em{font-size:1.4rem}.couple-art{right:3px;max-width:48%;width:245px}.feature .tiny-eyebrow{font-size:.62rem}.feature p{font-size:.75rem}.feature h2{font-size:1rem}.feature-art{display:none}.crossword-wrap{grid-template-columns:minmax(0,1fr) minmax(170px,.8fr)}}
@media(max-width:760px){.app-header{height:66px;padding:0 18px;gap:16px}.wordmark{font-size:1.8rem}.brand-symbol{font-size:2.1rem}.app-header nav{display:none}.header-actions{gap:4px}.header-room{font-size:.75rem;min-height:38px;padding:8px 11px}.header-settings .icon{width:19px;height:19px}.app-layout{display:block}.sidebar{display:none}main{padding:20px 18px 30px}.welcome{min-height:224px;padding:24px;border-radius:22px}.welcome h1{font-size:2.7rem}.welcome h1 br{display:none}.welcome-copy{max-width:66%}.welcome p{font-size:.875rem;max-width:220px}.couple-art{width:250px;max-width:36%;right:17px;bottom:-1px}.welcome-star.s1{right:34%}.welcome-sticker{right:22px;top:19px;width:59px;height:59px}.featured-row{gap:12px;margin-top:14px}.feature{padding:18px;min-height:112px;gap:12px}.feature-art{display:grid}.feature h2{font-size:1.05rem}.feature p{font-size:.75rem}.library-heading{margin:27px 0 18px;align-items:center}.library-heading h2{font-size:1.3rem}.library-heading p{font-size:.8rem}.search-box{width:220px;min-height:44px}.category-tabs{flex-wrap:nowrap;overflow:auto;scrollbar-width:none;margin:0 -18px 14px;padding:0 18px 8px;gap:7px}.category-tabs::-webkit-scrollbar{display:none}.category-tab{font-size:.8rem;padding:9px 12px}.mobile-filters{display:flex;gap:15px;margin-bottom:19px}.mobile-filters button{background:none;border:0;padding:4px 0;font-size:.8rem;color:#809371;min-height:32px}.mobile-filters button.active{color:var(--forest);text-decoration:underline;text-underline-offset:5px}.activity-grid{gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.card-main{min-height:215px;padding:18px 16px}.card-main h3{font-size:1rem}.card-main p{font-size:.8rem}.card-icon{width:48px;height:48px;margin-bottom:15px}.card-meta{margin-top:16px}.play-heading{gap:15px;margin-bottom:20px}.play-heading h1{font-size:1.8rem}.game-content{min-height:430px;padding:24px}.play-aside .play-note{padding:18px}.play-bottom{font-size:.75rem}.movie-layout{grid-template-columns:minmax(0,1fr) 230px}.screen-empty h3{font-size:1.25rem}.screen-empty p{font-size:.8rem}.screen-empty .icon{width:35px;height:35px}.source-options{padding:18px}.crossword-wrap{grid-template-columns:minmax(0,1fr) minmax(180px,.7fr)}}
@media(max-width:580px){main{padding:17px 16px 30px}.welcome{padding:22px;min-height:239px}.welcome h1{font-size:2.8rem}.welcome h1 br{display:block}.welcome-copy{max-width:65%}.welcome-copy .tiny-eyebrow{font-size:.65rem;letter-spacing:.09em}.welcome p{font-size:.83rem;max-width:160px;line-height:1.45}.welcome .button{font-size:.78rem;min-height:39px;padding:9px 13px}.couple-art{width:235px;max-width:48%;right:-5px;bottom:2px}.welcome-sticker{right:23px;top:21px;width:53px;height:53px;font-size:.6rem;padding:9px 4px}.welcome-sticker em{font-size:1.25rem}.welcome-star.s1{right:37%;top:45px;font-size:1.5rem}.welcome-star.s2{font-size:1.7rem;bottom:150px;right:2px}.featured-row{gap:11px}.feature{min-height:124px;padding:14px;align-items:flex-start;gap:8px;flex-direction:column;border-radius:17px}.feature-art{width:32px;height:32px;font-size:1.5rem;border-radius:10px}.feature-movie .feature-art{font-size:1.3rem}.feature .tiny-eyebrow{font-size:.58rem;letter-spacing:.045em}.feature h2{font-size:.95rem;line-height:1.3;margin:5px 0 3px}.feature p{font-size:.7rem;line-height:1.4}.library-heading{align-items:stretch;flex-direction:column;gap:13px;margin:25px 0 16px}.library-heading h2{font-size:1.35rem}.search-box{width:100%;min-height:43px}.search-box input{font-size:.85rem}.category-tabs{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-card{border-radius:17px}.card-main{padding:17px 15px;min-height:222px}.card-main h3{font-size:1.025rem;line-height:1.35}.card-main p{font-size:.8rem;min-height:56px;line-height:1.5}.card-icon{width:47px;height:47px;margin-bottom:15px;border-radius:15px}.card-icon .icon{width:24px;height:24px}.favourite-button{top:10px;right:7px;width:37px;height:37px}.card-meta{font-size:.65rem;margin-top:15px;gap:6px}.memory-mark{font-size:.62rem;right:12px;bottom:16px}.library-footer{font-size:.75rem}.play-heading{position:relative;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}.play-heading>.button{grid-column:1;width:max-content;font-size:.8rem;min-height:39px}.play-heading>div{grid-row:2;grid-column:1;min-width:0}.play-heading h1{font-size:1.85rem;overflow-wrap:anywhere}.play-heading .tiny-eyebrow{font-size:.68rem}.play-favourite{grid-row:2;grid-column:2;align-self:center}.game-content{padding:20px 16px;border-radius:21px;gap:18px;min-height:400px}.game-hint{font-size:.875rem}.prompt-title{font-size:1.45rem}.play-aside{gap:12px;flex-direction:column}.play-aside .play-note{padding:18px}.play-note.pale{display:none}.play-note h3{font-size:1.3rem}.play-note p{font-size:.85rem}.play-bottom{align-items:flex-start;gap:12px;flex-direction:column}.entry-form{gap:8px}.entry-form .button{font-size:.8rem;padding:10px 12px}.entry-form input{font-size:1rem;padding:12px}.crossword-wrap{grid-template-columns:1fr;gap:18px}.crossword{max-width:400px;margin:auto;width:100%}.cross-cell input{font-size:clamp(.8rem,3vw,1.2rem)}.clues{display:grid;grid-template-columns:1fr;gap:0;width:100%}.clues button{font-size:.85rem;padding:7px}.clues h4:not(:first-child){margin-top:10px}.cross-cell>span{font-size:.62rem}.crossword .cross-cell{min-height:0}.word-search .tile{font-size:.8rem;border-radius:4px}.word-search{gap:2px}.sudoku{max-width:290px}.dots-board{max-width:280px}.reversi-board{max-width:350px}.bingo-board{gap:5px}.bingo-board .tile{font-size:.7rem;padding:6px;aspect-ratio:.95;border-radius:8px}.duo-reveal{gap:10px}.duo-reveal>div{padding:18px 11px}.duo-reveal.answers{grid-template-columns:1fr}.hearts-remaining{gap:8px}.hearts-remaining .icon{width:22px;height:22px}.word-slots{gap:5px}.word-slots>span{width:30px;font-size:1.1rem;min-height:41px}.letter-keyboard>div{gap:3px}.key{font-size:.78rem;min-height:41px}.rps-options{gap:7px}.rps-options .button{font-size:.75rem}.rps-options span{font-size:2rem}.prompt-card{min-height:240px;padding:24px 18px}.prompt-card h3{font-size:1.5rem}.story-paper{padding:18px}.story-line p{font-size:1.025rem}.brush-size{font-size:.75rem}.swatch{width:30px;height:30px}.palette{gap:7px}.drawing-tools{gap:12px}.game-toolbar .button{font-size:.8rem;padding:10px 12px}.movie-layout{grid-template-columns:1fr;gap:20px}.movie-chat{max-height:360px}.movie-chat-log{min-height:160px}.screen-shell{border-width:5px;border-radius:15px}.screen-empty{gap:8px;padding:14px}.screen-empty h3{font-size:1.2rem}.screen-empty p{font-size:.75rem;max-width:250px}.screen-empty .icon{width:27px;height:27px}.movie-controls{gap:7px;margin:13px 0}.movie-controls .button{font-size:.8rem;min-height:40px;padding:7px 10px}.source-options{padding:18px 15px}.inline-input{gap:7px}.inline-input input{font-size:1rem;padding:10px}.source-options .game-toolbar{gap:8px}.source-note{font-size:.75rem}.app-dialog{padding:22px}.app-dialog h2{font-size:1.7rem}.app-dialog form{gap:13px}.game-content:has(#drawing-canvas){padding:18px 12px}.game-content:has(.movie-layout){padding:0}.connect-board{gap:5px;padding:10px}.connect-cell{font-size:1.5rem}.connect-columns{gap:5px}.playing-card{width:145px;height:205px;padding:15px}.playing-card strong{font-size:4rem}.tile{min-height:0}.simon-board{max-width:270px;gap:12px}.simon-cell{border-radius:20px}.merge-tile{font-size:1.5rem}.direction-pad{gap:4px}.targets-board{gap:7px}.targets-board .tile{font-size:1.4rem}.pass-card{padding:28px 16px}}
@media(max-width:350px){.app-header{padding:0 12px}.wordmark{font-size:1.6rem}.brand-symbol{margin-right:5px}.header-room{font-size:.7rem;padding:8px}.header-settings{min-width:36px}.welcome{padding:18px}.welcome h1{font-size:2.4rem}.couple-art{max-width:47%;bottom:10px}.welcome .button{font-size:.75rem}.card-main{padding:16px 12px}.card-main h3{font-size:.9rem}.card-main p{font-size:.75rem}.card-meta{font-size:.62rem}.favourite-button{right:3px}.feature h2{font-size:.9rem}.game-content{padding:18px 12px}.connect-cell{font-size:1.2rem}.key{min-height:38px;font-size:.7rem}.hearts-remaining{gap:6px}.word-slots>span{width:27px}.rps-options span{font-size:1.7rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.card-main p{font-size:.875rem}.card-meta{font-size:.75rem}.category-tab{font-size:.875rem}.feature p{font-size:.875rem}.feature .tiny-eyebrow{font-size:.75rem}.card-main h3{font-size:1.0625rem}.card-main{min-height:235px}.card-meta .icon{width:14px;height:14px}.play-favourite.saved .icon{fill:var(--rose);color:#b9758a}.mobile-filters button{min-height:44px;font-size:.875rem}.card-meta .card-number{font-size:.75rem}
.live-play-status{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#f0f3eb;border-radius:12px;padding:12px 16px;margin:-6px 0 20px;font-size:.875rem;font-weight:600;min-height:46px;line-height:1.5}.live-play-status:before{content:"";width:8px;height:8px;border-radius:50%;background:#adb79b;flex-shrink:0}.live-play-status.live{background:#e6f1e5;border-color:#c8dfc6}.live-play-status.live:before{background:#568257}.live-play-status.waiting{background:#fff5db;border-color:#ecdfb8}.live-play-status.waiting:before{background:#b89443}
.signin-dialog{padding:0;border:1px solid #d9d7cc;border-radius:28px;width:720px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:auto;color:var(--ink);background:#fcfdf8;box-shadow:0 25px 100px #18322833}.signin-dialog[open]{display:grid;grid-template-columns:.85fr 1fr}.signin-dialog::backdrop{background:#18322875;backdrop-filter:blur(7px)}.signin-art{background:#e9e4f2;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background-image:linear-gradient(#8d79a90c 1px,transparent 1px),linear-gradient(90deg,#8d79a90c 1px,transparent 1px);background-size:24px 24px;padding:22px 0}.signin-art:before{content:"✦";position:absolute;top:32px;left:24px;color:#a389b4;font-size:2rem}.signin-art img{width:110%;max-width:340px;height:auto}.signin-art>span{font-family:Georgia,serif;font-style:italic;font-size:1.3rem;color:#7b658d;margin-top:12px}.signin-copy{padding:34px 30px}.signin-copy>.tiny-eyebrow{color:#7b8e76}.signin-copy h2{font-family:Georgia,serif;font-weight:400;font-size:2.35rem;margin:12px 0}.signin-copy>p{font-size:.875rem;color:var(--muted)}.signin-copy form{display:grid;gap:16px;margin-top:24px}.signin-copy fieldset{border:0;margin:0;padding:0;min-width:0}.signin-copy legend,.signin-copy form>label{font-size:.875rem;font-weight:600}.signin-copy legend{padding:0 0 9px}.signin-people{display:grid;grid-template-columns:1fr 1fr;gap:10px}.signin-people label{position:relative;cursor:pointer}.signin-people input{position:absolute;opacity:0;width:1px;height:1px}.signin-people span{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 10px;border:1px solid var(--line);border-radius:14px;background:#fff;font-size:1rem;font-weight:600;min-height:64px}.signin-people b{display:grid;place-items:center;width:33px;height:33px;background:var(--honey);border-radius:50%;font-family:Georgia,serif;font-size:1.2rem;font-weight:400}.signin-people label:last-child b{background:#e5d9f4}.signin-people input:checked+span{background:#eaf1e3;border:2px solid var(--forest);padding:11px 9px}.signin-people input:focus-visible+span{outline:3px solid #a378bf;outline-offset:3px}.signin-copy form>label{display:grid;gap:9px}.signin-copy #signin-pin{width:100%;font-size:1.3rem;letter-spacing:.4em;text-align:center;padding:12px;min-height:49px}.signin-copy .button{width:100%;min-height:49px}.signin-copy #signin-error{font-size:.8125rem;margin:0;padding:11px}.signin-copy #signin-error:empty{display:none}.signin-copy .signin-note{font-size:.75rem;margin-top:20px;color:#819078}
@media(max-width:580px){.signin-dialog[open]{grid-template-columns:1fr}.signin-dialog{width:390px;border-radius:24px}.signin-art{height:148px;padding:0}.signin-art img{width:190px;height:177px;object-fit:contain;transform:translateY(12px)}.signin-art>span{position:absolute;right:15px;top:24px;font-size:.875rem;width:60px;text-align:center;line-height:1.4;transform:rotate(9deg)}.signin-art:before{top:27px;left:25px;font-size:1.7rem}.signin-copy{padding:22px 24px}.signin-copy h2{font-size:2rem;margin:8px 0}.signin-copy form{margin-top:18px;gap:13px}.signin-people span{min-height:58px}.signin-copy .signin-note{margin-top:15px}.live-play-status{margin-top:-4px;font-size:.8125rem;padding:11px 13px}}
@media(max-width:580px){.feature{min-height:155px}.feature p{font-size:.8125rem}.feature .tiny-eyebrow{font-size:.625rem}.card-main{min-height:248px}.card-main p{min-height:65px}.card-meta{gap:5px}.card-number{display:none}}

.watch-status{padding:12px 15px;margin-bottom:12px;border-radius:12px;background:#fff5db;border:1px solid #ecdfb8;font-size:.8125rem;line-height:1.5;color:#73623d}.watch-status[data-ready="true"]{background:#e6f1e5;border-color:#c8dfc6;color:#355c3d}

.public-footer{max-width:1480px;margin:4rem auto 0;padding:2.5rem clamp(1.25rem,5vw,4rem);border-top:1px solid #d6e1da;display:flex;flex-wrap:wrap;gap:1.5rem;align-items:center;justify-content:space-between;color:#31534b;background:#f7faf6}
.public-footer strong{font-size:1.35rem}.public-footer p{font-size:.9rem;margin:.35rem 0}.public-footer nav{display:flex;flex-wrap:wrap;gap:1rem}.public-footer a{color:#1c5245;text-underline-offset:3px;font-weight:650}.public-footer small{width:100%;opacity:.8}
.public-room-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.public-room-fields input{width:100%;max-width:100%}
@media(max-width:520px){.public-room-fields{grid-template-columns:1fr}.public-footer{margin-top:2rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* Word Game — coastal letter puzzle */
.zen-game{position:relative;isolation:isolate;overflow:hidden;max-width:760px;margin:0 auto;padding:clamp(14px,3vw,28px);border-radius:24px;border:1px solid #bed2d7;min-height:605px;color:#254957;background:linear-gradient(180deg,#9fbcd7 0%,#b9ccd9 28%,#ddcad1 52%,#bdd0d3 66%,#5a8fa1 83%,#dfd1bd 100%);box-shadow:0 15px 38px #33586d25}
.zen-game::before{content:'';position:absolute;z-index:-1;left:-5%;right:-5%;bottom:10%;height:18%;background:repeating-linear-gradient(177deg,#ffffff60 0 3px,transparent 4px 17px),linear-gradient(180deg,#7eacb3,#2d647c 55%,#629aaa);clip-path:polygon(0 42%,15% 60%,27% 47%,43% 57%,56% 43%,68% 58%,83% 44%,100% 55%,100% 100%,0 100%);opacity:.58}
.zen-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.zen-level span{display:block;font-size:.72rem;letter-spacing:.21em;font-weight:900;color:#476b7a}
.zen-level h3{font-size:clamp(1.65rem,5vw,2.4rem);letter-spacing:-.04em;color:#28465a;margin:2px 0;font-weight:900}
.zen-level p{margin:0;color:#4d6d79;font-weight:700;font-size:.84rem}
.zen-currency{display:flex;align-items:center;gap:8px;background:#fff8ebce;border:1px solid #fff8e1;border-radius:999px;padding:8px 16px;color:#69522a;font-size:1.13rem;font-weight:900;box-shadow:0 3px 10px #42677826}
.zen-currency b{font-size:1.45rem;color:#dbaf52}
.zen-stats{display:flex;justify-content:space-between;gap:12px;margin:20px 0 6px;color:#456b77;font-weight:800;font-size:.76rem}
.zen-progress{height:6px;background:#ffffff91;overflow:hidden;border-radius:999px}
.zen-progress span{display:block;height:100%;background:linear-gradient(90deg,#e3b874,#4b9d87);border-radius:inherit;transition:width .2s ease}
.zen-answer-board{min-height:180px;padding:19px 2px 13px;display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:10px 12px}
.zen-answer{display:inline-flex;gap:3px}
.zen-square{width:clamp(20px,4.7vw,33px);height:clamp(28px,5.7vw,39px);display:grid;place-items:center;background:#fafdffed;border:1px solid #fff;border-radius:7px;box-shadow:0 2px 1px #42607252,0 3px 8px #43647422;color:#254b60;font-size:1rem;font-weight:900}
.zen-answer.solved .zen-square{background:#e3f6ea;border-color:#91cbb0;color:#1e6e54;animation:zen-pop .22s ease}
@keyframes zen-pop{from{transform:scale(.9)}to{transform:scale(1)}}
.zen-horizon{height:8px;width:78%;margin:0 auto 8px;opacity:.53}
.zen-horizon span{display:block;height:4px;border-top:2px solid #fff;border-radius:50%;transform:rotate(-1deg)}
.zen-horizon span+span{border-color:#35667b99;transform:rotate(2deg)}
.zen-wheel{position:relative;isolation:isolate;touch-action:none;width:min(76vw,312px);aspect-ratio:1;margin:10px auto 16px;border-radius:50%;border:1px solid #ffffffef;background:radial-gradient(circle at 45% 35%,#fffdf9f0,#f7fdfdb2 75%,#fffefd9f);box-shadow:0 13px 35px #36697d42,inset 0 1px 25px #ffffffca;user-select:none;-webkit-user-select:none}
.zen-wheel::before{content:'';position:absolute;inset:10%;border:1px dashed #fff9;border-radius:50%;pointer-events:none}
.zen-path{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.zen-path polyline{stroke:#368c83;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;fill:none;opacity:.59}
.zen-letter{position:absolute;z-index:2;transform:translate(-50%,-50%);width:clamp(43px,12vw,62px);height:clamp(43px,12vw,62px);display:grid;place-items:center;border-radius:50%;background:#ffffffee;border:1px solid #fff;color:#263b4a;box-shadow:0 4px 12px #40647530;font-size:clamp(1.45rem,5vw,1.95rem);font-weight:900;cursor:pointer;transition:transform .12s,background .12s,color .12s}
.zen-letter.selected,.zen-letter.tracing{background:#317e76;color:#fff;border-color:#317e76;transform:translate(-50%,-50%) scale(1.08)}
.zen-letter:focus-visible{outline:3px solid #e6bb68;outline-offset:3px}
.zen-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#2b6472;font-size:clamp(1rem,3vw,1.24rem);font-weight:900;letter-spacing:.08em;max-width:45%;overflow-wrap:anywhere;text-align:center;pointer-events:none}
.zen-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.zen-tool,.zen-submit{display:flex;justify-content:center;align-items:center;gap:6px;min-height:40px;border-radius:99px;border:1px solid #fff7;background:#ffffffdf;color:#285064;font-weight:850;padding:8px 14px;font-size:.8rem;cursor:pointer}
.zen-tool span{font-size:1.27rem;line-height:1}
.zen-submit{background:#285f58;color:#fff;border-color:#285f58}
.zen-submit:disabled{opacity:.47;cursor:default}
.zen-tool:active,.zen-submit:not(:disabled):active{transform:scale(.97)}
.zen-instruction{margin:10px 0 0;text-align:center;color:#2e5869;font-size:.74rem;font-weight:700}
.zen-complete{margin:16px auto 0;padding:16px;border-radius:18px;background:#fffaeccf;border:1px solid #fff7d5;text-align:center}
.zen-complete strong{display:block;color:#24654d;font-size:1.1rem}
.zen-complete p{font-size:.85rem;color:#566c65;margin:7px 0 13px}
@media(max-width:480px){.zen-game{border-radius:18px;padding:14px 10px 22px;min-height:635px}.zen-answer-board{gap:9px 9px;min-height:182px;padding:13px 1px 10px}.zen-square{width:clamp(21px,5.9vw,29px);height:clamp(29px,7.3vw,37px)}.zen-wheel{width:min(77vw,294px)}.zen-letter{width:clamp(42px,12.5vw,53px);height:clamp(42px,12.5vw,53px)}.zen-tool,.zen-submit{flex:1 1 calc(50% - 8px);padding:8px}}
@media(prefers-reduced-motion:reduce){.zen-game *{animation:none!important;transition:none!important}}

.zen-discoveries{margin:14px 0;padding:12px 14px;border:1px solid var(--line,#d5e0d9);border-radius:8px;background:var(--theme-paper,#fff);color:var(--theme-text,#244b43);font-size:.8rem}.zen-discoveries summary{cursor:pointer;font-weight:650}.zen-discoveries p{margin:8px 0 0}.zen-bonus-list{display:flex;flex-wrap:wrap;gap:6px;max-height:160px;overflow:auto}.zen-bonus-list span{padding:3px 8px;border:1px solid var(--line,#d5e0d9);border-radius:5px;letter-spacing:.06em}.zen-discoveries [role="status"]{font-size:.73rem}

}

@layer legacy{
/* Seasonal Duomello discovery panel: links to the evergreen Christmas campaign. */
.holiday-promo{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1.25rem;background:linear-gradient(115deg,#234a43,#3d6555);border-radius:22px;color:#fff9ed;padding:1.5rem 1.7rem;margin:0 0 2rem;overflow:hidden}
.holiday-promo:after{content:"✳";position:absolute;right:6rem;top:-4rem;font-size:12rem;line-height:1;color:#ffffff0c;pointer-events:none}
.holiday-promo .season-copy{position:relative;z-index:1;max-width:600px}
.holiday-promo .season-label{font-size:.7rem;letter-spacing:.15em;font-weight:800;color:#e9c98f;text-transform:uppercase}
.holiday-promo h2{font:normal clamp(1.65rem,3vw,2.1rem)/1.17 Georgia,serif;letter-spacing:-.035em;margin:.45rem 0}
.holiday-promo p{color:#ecf0e4;line-height:1.5;font-size:.94rem}
.holiday-promo a{position:relative;z-index:1;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;background:#f2d999;border-radius:999px;color:#27453c;min-height:46px;padding:.75rem 1.2rem;font-size:.85rem;font-weight:800;text-decoration:none}
.holiday-promo a:hover{background:#f9e9bd}.holiday-promo a:focus-visible{outline:3px solid #f2d999;outline-offset:3px}
@media(max-width:700px){.holiday-promo{flex-direction:column;align-items:stretch;padding:1.35rem}.holiday-promo a{width:100%}}

}

@layer legacy{
/* DUEMELLO UNIVERSE · one cosy design system, multiple seasons and celebrations */
:root{
  --theme-main:#294e45;--theme-dark:#173f35;--theme-page:#f7f8f2;--theme-paper:#fffdf9;
  --theme-accent:#e4ba83;--theme-soft:#e6eee5;--theme-text:#243c34;--theme-muted:#677c70;
  --forest:var(--theme-main);--ink:var(--theme-text);--page:var(--theme-page);
  --honey:var(--theme-accent);--muted:var(--theme-muted);--line:#dce5da;
  --experience-serif:Georgia,"Iowan Old Style",Cambria,serif;
}
html[data-theme="spring"]{--theme-main:#457660;--theme-dark:#315846;--theme-page:#f7faef;--theme-paper:#fffef6;--theme-accent:#ecc183;--theme-soft:#e5f0d8;--theme-text:#2c483a;--theme-muted:#607762;--line:#dfebd9}
html[data-theme="summer"]{--theme-main:#316d73;--theme-dark:#1c5056;--theme-page:#fff9ee;--theme-paper:#fffefa;--theme-accent:#f7c56e;--theme-soft:#e0f2f1;--theme-text:#1e464c;--theme-muted:#58747b;--line:#d7e8e7}
html[data-theme="autumn"]{--theme-main:#6e563f;--theme-dark:#4c382c;--theme-page:#fcf7ef;--theme-paper:#fffdf9;--theme-accent:#dfa66e;--theme-soft:#f2e8d9;--theme-text:#49362a;--theme-muted:#7e6d5a;--line:#ebdfd2}
html[data-theme="winter"]{--theme-main:#385e70;--theme-dark:#284454;--theme-page:#f2f8fa;--theme-paper:#fbfeff;--theme-accent:#bfd8e8;--theme-soft:#e5eff5;--theme-text:#284350;--theme-muted:#627988;--line:#d6e5ea}
html[data-theme="halloween"]{--theme-main:#382b49;--theme-dark:#251e33;--theme-page:#fff6ec;--theme-paper:#fffdf8;--theme-accent:#f7a453;--theme-soft:#f8e4d1;--theme-text:#3e3045;--theme-muted:#766778;--line:#eadcda}
html[data-theme="diwali"]{--theme-main:#4b3471;--theme-dark:#332051;--theme-page:#fbf5ff;--theme-paper:#fffaf6;--theme-accent:#f8c86b;--theme-soft:#f1e1f6;--theme-text:#3e305d;--theme-muted:#74617f;--line:#ebdded}
html[data-theme="lunar"]{--theme-main:#a83e43;--theme-dark:#76292f;--theme-page:#fff9f0;--theme-paper:#fffdf7;--theme-accent:#f2cf80;--theme-soft:#f9ebd4;--theme-text:#75332f;--theme-muted:#886b62;--line:#f2dfd9}
html[data-theme="easter"]{--theme-main:#648c68;--theme-dark:#45704e;--theme-page:#fafaf0;--theme-paper:#fffefa;--theme-accent:#f6d9a5;--theme-soft:#f1eaf7;--theme-text:#405747;--theme-muted:#6f8270;--line:#e5eadc}
html[data-theme="christmas"]{--theme-main:#285c49;--theme-dark:#174334;--theme-page:#faf7f0;--theme-paper:#fffdf8;--theme-accent:#f2ca91;--theme-soft:#e9efe6;--theme-text:#254337;--theme-muted:#667a6d;--line:#dee9dc}
html[data-theme="valentine"],html[data-theme="anniversary"]{--theme-main:#925365;--theme-dark:#6b384c;--theme-page:#fff7f7;--theme-paper:#fffdf9;--theme-accent:#f3ccab;--theme-soft:#fde4e9;--theme-text:#633d4a;--theme-muted:#8c6a75;--line:#f1dfe3}
html[data-theme="newyear"],html[data-theme="graduation"]{--theme-main:#39496c;--theme-dark:#273555;--theme-page:#f5f7fc;--theme-paper:#fffefa;--theme-accent:#e0c789;--theme-soft:#e5eaf7;--theme-text:#303c5b;--theme-muted:#66718e;--line:#e0e6f0}
html[data-theme="eid"],html[data-theme="ramadan"]{--theme-main:#24645a;--theme-dark:#174d45;--theme-page:#f4f9f4;--theme-paper:#fffefa;--theme-accent:#e8c781;--theme-soft:#e0f0e9;--theme-text:#21473f;--theme-muted:#5d7972;--line:#dceae1}
html[data-theme="birthday"]{--theme-main:#7563a4;--theme-dark:#57487e;--theme-page:#fff9fa;--theme-paper:#fffcff;--theme-accent:#f5b994;--theme-soft:#f0e8fa;--theme-text:#4e4072;--theme-muted:#7c7192;--line:#ebe2ef}
html[data-theme="justbecause"]{--theme-main:#7a7360;--theme-dark:#554d40;--theme-page:#fbf9f2;--theme-paper:#fffefa;--theme-accent:#ebc779;--theme-soft:#f5efd8;--theme-text:#514836;--theme-muted:#7b7363;--line:#eee6d5}
html{scroll-behavior:smooth}body{background:var(--theme-page);color:var(--theme-text);transition:background-color .25s,color .25s}
a,button,select{outline-offset:3px}
.app-header{height:auto;min-height:80px;padding:12px clamp(18px,4vw,64px);gap:28px;background:var(--theme-dark);border-bottom:1px solid #ffffff28;position:sticky;top:0;z-index:80;box-shadow:0 9px 35px #1729200e}
.app-header .wordmark{font-family:system-ui,sans-serif;font-size:1.85rem;font-weight:850;letter-spacing:-.075em;white-space:nowrap}
.app-header .brand-symbol{color:var(--theme-accent)}.app-header .brand-period{color:var(--theme-accent)}
.app-header nav{display:flex;align-items:center;gap:14px;flex:1;white-space:nowrap}
.app-header .header-nav{color:#f6f5ed;padding:.65rem .75rem;min-height:43px;border-radius:999px;text-decoration:none;font-size:.87rem;font-weight:650;letter-spacing:0}
.app-header .header-nav.selected:after{display:none}.app-header .header-nav:hover,.app-header .header-nav.selected{background:#ffffff1d;color:white}
.header-actions{display:flex;align-items:center;gap:.65rem;margin-left:auto}
.header-actions .header-room{border-radius:999px;background:var(--theme-accent);color:var(--theme-dark);border-color:transparent;white-space:nowrap;font-weight:800}
.header-actions .header-room:hover{background:#ffffff;color:var(--theme-dark)}
.header-actions .header-settings{color:#fff;background:#ffffff15;border-radius:50%}
.theme-control{display:flex;align-items:center;gap:.45rem;padding:0 .4rem;color:#fff}
.theme-control label{font-size:.8rem;font-weight:700;opacity:.82}
.theme-control select{font-size:.82rem;min-height:42px;max-width:194px;color:#fff;border-color:#ffffff40;border-radius:999px;background:var(--theme-main);padding:8px 24px 8px 12px}
.theme-control select option{background:#fff;color:#222}
.theme-pill{display:inline-flex;align-items:center;gap:.4rem;border:1px solid #ffffff38;padding:.4rem .7rem;border-radius:999px;font-size:.74rem;font-weight:700;color:#f7eedf;white-space:nowrap}
.app-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:clamp(16px,2.5vw,38px);max-width:1510px;margin:0 auto;padding:clamp(16px,2vw,30px)}
.app-layout>.sidebar{align-self:start;position:sticky;top:108px;border:1px solid var(--line);border-radius:26px;padding:1.35rem;background:var(--theme-paper);box-shadow:0 14px 34px #1f37230a;max-height:calc(100vh - 122px);overflow-y:auto}
.sidebar .couple-pair{border-radius:20px;background:var(--theme-soft);padding:1rem .55rem;margin:.75rem 0 1rem}
.sidebar .side-link{border-radius:14px;font-size:.86rem}
.sidebar .side-link.active{background:var(--theme-soft);color:var(--theme-main)}
.sidebar .sidebar-invite{background:var(--theme-main);color:white;border-radius:20px;padding:1.25rem}
.sidebar .sidebar-invite p{color:#f8f8f0dd}.sidebar .sidebar-invite .button{background:var(--theme-accent);color:var(--theme-dark);border:0}
.sidebar .sidebar-invite h3{font-family:var(--experience-serif);font-size:1.55rem;font-weight:normal;line-height:1.25}
.app-layout main{min-width:0;width:100%;max-width:none}
.welcome{min-height:410px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr);gap:20px;align-items:center;padding:clamp(28px,4.3vw,64px);position:relative;overflow:hidden;background:linear-gradient(118deg,var(--theme-main) 0,var(--theme-dark) 100%);border:1px solid #ffffff24;border-radius:32px;color:#fffef6;box-shadow:0 24px 45px #1f403620;margin-bottom:1.8rem}
.welcome:before{content:"";position:absolute;width:340px;height:340px;border-radius:50%;background:#ffffff09;top:-200px;right:16%}
.welcome:after{content:"";position:absolute;width:200px;height:200px;border-radius:50%;background:var(--theme-accent);opacity:.08;bottom:-120px;left:-60px}
.welcome-copy{z-index:1;position:relative;max-width:780px}.welcome .tiny-eyebrow{color:var(--theme-accent);font-size:.78rem;letter-spacing:.14em;display:inline-block;margin-bottom:.9rem}
.welcome h1{font-family:var(--experience-serif);font-weight:normal;font-size:clamp(2.6rem,5vw,5rem);letter-spacing:-.055em;line-height:1.08;margin:0 0 1rem;max-width:780px}
.welcome-copy>p{color:#f5f5edde;font-size:1.07rem;max-width:570px;line-height:1.7}
.welcome .hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:1.65rem}
.welcome .hero-actions .button{min-height:48px;padding:11px 19px;border-radius:999px}
.welcome .hero-actions .primary{background:var(--theme-accent);border:0;color:var(--theme-dark);font-weight:800}.welcome .hero-actions .primary:hover{background:#fff1d0;color:var(--theme-dark)}
.welcome .hero-actions .quiet{color:white;text-decoration:none;border:1px solid #ffffff66;background:#ffffff13;padding:10px 17px}
.welcome .hero-actions .quiet:hover{background:#ffffff28}
.hero-celebration{border:1px solid #ffffff47;background:#ffffff12;border-radius:18px;padding:.65rem 1rem;margin-top:1.2rem;display:inline-flex;align-items:center;gap:.5rem;font-size:.86rem;color:#fff5e5;max-width:100%}
.hero-celebration button{color:#fff;border:0;background:none;text-decoration:underline;text-underline-offset:3px;padding:3px;cursor:pointer}
.hero-showcase{align-self:stretch;min-height:280px;position:relative;isolation:isolate;display:grid;place-items:center}
.hero-showcase:before{content:"";position:absolute;width:min(100%,360px);aspect-ratio:1;border:2px dashed #ffffff3a;border-radius:50%;transform:rotate(25deg)}
.hero-showcase:after{content:"";position:absolute;width:min(85%,315px);aspect-ratio:1;background:radial-gradient(circle at 50% 46%,#ffffff20,transparent 65%);border-radius:50%}
.hero-showcase .orbit{position:absolute;border-radius:50%;background:var(--theme-soft);width:82px;height:82px;box-shadow:0 15px 30px #0002;display:grid;place-items:center;z-index:2;font-size:2.2rem}
.hero-showcase .orbit.one{left:8%;top:26%;transform:rotate(-13deg)}.hero-showcase .orbit.two{right:6%;bottom:16%;transform:rotate(15deg)}
.hero-showcase .orbit.one:before{content:"🤍"}.hero-showcase .orbit.two:before{content:"💬"}
.hero-showcase .central-symbol{position:relative;z-index:3;display:grid;place-items:center;background:#ffffff18;border:1px solid #ffffff55;border-radius:42px;aspect-ratio:1;width:clamp(135px,16vw,210px);box-shadow:0 22px 44px #0002}
.hero-showcase #hero-art-emoji{font-size:clamp(4rem,8vw,6.5rem);line-height:1}
.hero-showcase .orbit-caption{position:absolute;z-index:4;bottom:4%;left:12%;right:12%;border-radius:999px;background:var(--theme-paper);color:var(--theme-main);text-align:center;padding:.6rem 1rem;font-size:.8rem;box-shadow:0 8px 20px #0002;font-weight:750}
.hero-showcase .ambient-star{position:absolute;font-size:1.5rem;color:var(--theme-accent)}.hero-showcase .ambient-star.a{left:14%;bottom:22%}.hero-showcase .ambient-star.b{right:7%;top:11%}
.section-kicker{display:block;color:var(--theme-main);font-size:.72rem;letter-spacing:.16em;font-weight:850;text-transform:uppercase;margin-bottom:.4rem}
.social-start{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:end;margin:2rem 0 1.65rem}
.social-start h2,.section-heading h2,.community-copy h2,.celebrate-cta h2,.daily-copy h2{font-family:var(--experience-serif);font-weight:normal;letter-spacing:-.04em;font-size:clamp(1.6rem,3vw,2.4rem);line-height:1.16}
.social-start p,.section-heading p,.community-copy p,.celebrate-cta p{color:var(--theme-muted);max-width:610px;line-height:1.65}
.social-start p{margin-top:.45rem}
.audience-switch{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap}
.audience-choice{display:flex;align-items:center;gap:.42rem;padding:.8rem .95rem;background:var(--theme-paper);color:var(--theme-text);border:1px solid var(--line);border-radius:14px;min-height:49px;font-size:.82rem;white-space:nowrap}
.audience-choice strong{font-weight:740}.audience-choice[aria-pressed=true]{background:var(--theme-main);color:white;border-color:var(--theme-main);box-shadow:0 9px 23px #234a431b}.audience-choice:hover{border-color:var(--theme-main)}
.experience-spotlight{padding:clamp(18px,3vw,30px);border:1px solid var(--line);border-radius:28px;background:var(--theme-paper);margin:0 0 2rem;box-shadow:0 12px 26px #12331907}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.2rem}.section-heading h2{margin:.2rem 0 .3rem}.section-heading p{font-size:.92rem}
.section-heading>a{color:var(--theme-main);font-weight:800;text-decoration:none;padding:.6rem 0;white-space:nowrap;border-bottom:1px solid currentColor}
.discover-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.discover-card{min-width:0;display:flex;text-align:left;flex-direction:column;align-items:flex-start;background:linear-gradient(160deg,var(--theme-soft),var(--theme-paper));border:1px solid var(--line);border-radius:21px;padding:1.2rem;min-height:188px;color:var(--theme-text);transition:transform .2s,box-shadow .2s}
.discover-card:hover{transform:translateY(-3px);box-shadow:0 12px 22px #1d3e3512;border-color:var(--theme-accent)}
.discover-card .discover-count{display:flex;width:100%;justify-content:space-between;align-items:center;font-weight:850;color:var(--theme-main);letter-spacing:.12em;font-size:.76rem}
.discover-card .discover-count span{font-size:1.3rem;color:var(--theme-main);opacity:.55}
.discover-card strong{font-family:var(--experience-serif);font-size:clamp(1.15rem,1.8vw,1.35rem);line-height:1.2;letter-spacing:-.025em;margin:.55rem 0}
.discover-card .discover-desc{font-size:.82rem;color:var(--theme-muted);line-height:1.5;flex:1}
.discover-card small{width:100%;display:flex;justify-content:space-between;gap:.4rem;align-items:center;color:var(--theme-main);font-size:.75rem;margin-top:1.1rem;font-weight:800}
.discover-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.discover-card.compact{min-height:160px}
.community-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,.7fr);gap:1.5rem;margin-bottom:2rem}
.community-panel{border:1px solid var(--line);border-radius:27px;background:var(--theme-paper);padding:clamp(18px,2.5vw,27px)}
.community-copy{margin-bottom:1.2rem}.community-copy h2{margin:.3rem 0}.community-copy p{font-size:.89rem}
.daily-panel{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:1.3rem;padding:clamp(21px,3vw,32px);background:var(--theme-main);border-radius:27px;color:white;isolation:isolate}
.daily-panel:after{content:"✳";font-size:13rem;color:#ffffff14;position:absolute;right:-35px;bottom:-100px;z-index:-1}
.daily-panel .section-kicker{color:var(--theme-accent)}.daily-panel h2{font-size:clamp(1.6rem,3vw,2.2rem);color:white;margin:.5rem 0}
.daily-panel p{color:#f0f3e8da;font-size:.92rem;line-height:1.65}
.daily-panel .button{background:var(--theme-accent);color:var(--theme-dark);border:0;border-radius:999px;font-weight:800;align-self:flex-start}
.celebrate-cta{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;border:1px solid var(--line);background:linear-gradient(105deg,var(--theme-soft),var(--theme-paper));border-radius:25px;padding:1.5rem 1.7rem;margin:0 0 2rem}
.celebrate-cta h2{margin:.35rem 0}.celebrate-cta p{font-size:.9rem}.celebrate-cta .button{white-space:nowrap;border-radius:999px;background:var(--theme-main);color:white;border:0;padding:.8rem 1.2rem;font-weight:800}
.smart-spot{margin-top:1.6rem;border-radius:27px;background:var(--theme-paper);border:1px solid var(--line);box-shadow:none}
.smart-spot .smart-heading h2{font-family:var(--experience-serif);font-size:clamp(1.65rem,3vw,2.3rem);font-weight:normal}
.smart-spot .button.primary,.smart-magic{background:var(--theme-main);color:white;border-color:var(--theme-main)}
.featured-row{margin-top:1.55rem}.featured-row .feature{border-radius:24px}
.featured-row .feature h2{font-family:var(--experience-serif);font-weight:normal}
.library-heading{margin-top:2rem}.library-heading h2{font-family:var(--experience-serif);font-weight:normal;font-size:2rem}
.game-card{background:var(--theme-paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 6px 18px #243e3308}
.game-card:hover{border-color:var(--theme-accent);box-shadow:0 12px 22px #1d40351b}
.game-card .card-icon{background:var(--theme-soft);color:var(--theme-main)}.category-tabs{scrollbar-width:thin}
.category-tab.active{background:var(--theme-main);border-color:var(--theme-main);color:white}
.play-theme-context{margin:.55rem 0 0;padding:.75rem 1rem;border-radius:14px;background:var(--theme-soft);border:1px solid var(--line);color:var(--theme-text);font-size:.9rem;line-height:1.55;max-width:70ch}
.play-theme-context[hidden]{display:none}
.public-footer{background:var(--theme-dark);color:white;padding:2.5rem clamp(18px,4vw,64px);border-radius:0}
.public-footer a{color:#f5f1e7}
.app-dialog{border-radius:25px;background:var(--theme-paper);color:var(--theme-text);border:1px solid var(--line);box-shadow:0 24px 75px #10191055}
.app-dialog::backdrop{background:#142b2788;backdrop-filter:blur(7px)}
#celebrate-dialog{max-width:min(94vw,585px);width:100%;padding:0;max-height:min(90vh,820px);overflow-y:auto}
.celebrate-dialog-inner{padding:clamp(20px,4vw,32px)}#celebrate-dialog .dialog-top{margin-bottom:1rem}
#celebrate-dialog h2{font-family:var(--experience-serif);font-size:2rem;font-weight:normal;margin:.25rem 0 .6rem}
#celebrate-dialog p{color:var(--theme-muted);font-size:.92rem}
#celebrate-form{display:grid;gap:1rem;margin-top:1.5rem}
#celebrate-form label{display:grid;gap:.38rem;font-size:.86rem;font-weight:700}
#celebrate-form input,#celebrate-form select{width:100%;border-radius:13px;background:white;color:var(--theme-text);min-height:49px}
#celebrate-form .button.primary{background:var(--theme-main);color:white;border:0}
.celebrate-link-panel{border-radius:17px;border:1px solid var(--line);padding:1rem;background:var(--theme-soft);margin-top:1rem}
.celebrate-link-panel input{width:100%;border-radius:10px;min-height:45px;background:#fff;color:var(--theme-text)}
.celebrate-link-panel .room-options{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.celebrate-link-panel button{font-size:.8rem}
#celebrate-feedback{margin-top:.7rem;min-height:1.4rem;color:var(--theme-main);font-weight:740}
@media(max-width:1200px){
  .theme-pill{display:none}.app-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}.social-start{grid-template-columns:1fr}.community-row{grid-template-columns:1fr}.discover-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.discover-card.compact{min-height:165px}
}
@media(max-width:980px){
  .app-layout{display:block;padding:16px}.app-layout>.sidebar{display:none}.app-header{gap:10px;min-height:68px;padding:10px 16px}
  .app-header .header-nav{font-size:.8rem;padding:.55rem}.app-header nav{gap:4px}.header-actions{gap:.4rem}.welcome{min-height:350px}
}
@media(max-width:740px){
  .theme-control label{display:none}.theme-control select{max-width:150px;font-size:.78rem}.app-header nav .header-nav:nth-child(3){display:none}.app-header .wordmark{font-size:1.55rem}.app-header nav{flex:0}
  .welcome{grid-template-columns:1fr;padding:27px 23px;border-radius:25px;gap:4px}
  .welcome h1{font-size:clamp(2.4rem,8vw,3.4rem)}.hero-showcase{min-height:170px;margin-top:10px}
  .hero-showcase .central-symbol{width:130px;border-radius:30px}.hero-showcase #hero-art-emoji{font-size:4rem}
  .hero-showcase .orbit{width:58px;height:58px;font-size:1.3rem}.hero-showcase .orbit.one{left:16%;top:20%}.hero-showcase .orbit.two{right:15%;bottom:13%}.hero-showcase .orbit-caption{bottom:0;left:18%;right:18%;padding:.4rem;font-size:.7rem}
  .discover-grid,.discover-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.social-start{gap:1rem}.audience-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.audience-choice{padding:.75rem .2rem;flex-direction:column;min-width:0;gap:.15rem;font-size:.7rem}
  .audience-choice>span{font-size:1.35rem}.celebrate-cta{grid-template-columns:1fr;padding:1.25rem}.celebrate-cta .button{justify-self:start}.section-heading{align-items:flex-start;flex-direction:column}
}
@media(max-width:480px){
  .app-header .wordmark{font-size:1.4rem}.app-header nav{display:none}
  .theme-control select{max-width:138px;min-height:41px}.header-actions .header-room{font-size:.77rem;min-height:41px;padding:8px 9px}
  .header-actions .header-settings{min-height:42px;min-width:42px}.welcome{padding:25px 20px}
  .welcome .hero-actions .button{font-size:.82rem}.discover-grid,.discover-grid.four{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .discover-card,.discover-card.compact{min-height:190px;padding:.85rem}.discover-card strong{font-size:1.09rem}.discover-card .discover-desc{font-size:.75rem}
  .discover-card small{font-size:.68rem;flex-direction:column;align-items:flex-start;gap:.2rem}.experience-spotlight,.community-panel{padding:1rem}.theme-pill{display:none}
}
/* Fit even small 320px phones without hiding the manual season switch. */
@media(max-width:480px){
 .app-header{gap:5px;padding:9px 10px}
 .app-header .wordmark{font-size:1.21rem;letter-spacing:-.07em}
 .app-header .brand-symbol{font-size:1.46rem;margin-right:4px}
 .theme-control{gap:0;padding:0}
 .theme-control select{width:100px;max-width:100px;min-height:40px;font-size:.72rem;padding:7px 12px 7px 8px}
 .header-actions{gap:4px}
 .header-actions .header-room{width:40px;min-width:40px;padding:0;font-size:0;min-height:40px}
 .header-actions .header-room::after{content:"↗";font-size:1.2rem}
 .header-actions .header-settings{min-width:40px;min-height:40px;padding:6px}
}
@media(max-width:355px){
 .app-header .wordmark{font-size:1.05rem}
 .theme-control select{width:88px;max-width:88px}
 .header-actions .header-room,.header-actions .header-settings{min-width:37px;width:37px;min-height:38px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(prefers-reduced-motion:no-preference){.hero-showcase .central-symbol{animation:hero-float 5s ease-in-out infinite}.hero-showcase .ambient-star{animation:hero-blink 3s ease-in-out infinite alternate}@keyframes hero-float{50%{transform:translateY(-8px) rotate(3deg)}}@keyframes hero-blink{50%{opacity:.32;transform:scale(.8)}}}

/* Tablet navigation: avoid horizontal overflow without hiding private-room and theme controls. */
@media (min-width:481px) and (max-width:860px){
  .app-header nav{display:none}
  .app-header .wordmark{flex-shrink:0}
  .app-header .header-actions{min-width:0}
}

/* Intermediate landscape/tablet widths need compact controls across platform fonts. */
@media (min-width:861px) and (max-width:1000px){
  .app-header nav{display:none}
}
@media (min-width:1001px) and (max-width:1160px){
  .app-header{gap:10px;padding:10px 18px}
  .app-header nav{gap:2px}
  .app-header .header-nav{padding:8px 6px}
  .theme-control label{display:none}
  .theme-control select{max-width:150px}
}

}

@layer legacy{

/* CLASSIC & COMPETITIVE GAMES */
.competition-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:19px}.competition-head h3{font-size:clamp(1.55rem,4vw,2.2rem);letter-spacing:-.045em;margin:3px 0 6px;color:#234d43}.competition-head p{margin:0;color:#667f76;font-size:.89rem;max-width:360px;line-height:1.5}.comp-eyebrow{font-size:.7rem;letter-spacing:.14em;color:#789d87;font-weight:900}.comp-turn{display:inline-flex;align-items:center;background:#e4f4e8;border-radius:40px;padding:9px 13px;color:#2b6d53;font-size:.77rem;font-weight:900}
.competition-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:min(100%,490px);aspect-ratio:1;margin:10px auto 12px;border:10px solid #735642;border-radius:14px;overflow:hidden;box-shadow:0 20px 28px #263b332a,0 3px 0 #4c352a;--checker-light:#f6e8cd;--checker-dark:#9e846e}
.competition-square{position:relative;appearance:none;border:0;border-radius:0;padding:0;margin:0;display:grid;place-items:center;min-width:0;min-height:0;cursor:pointer;touch-action:manipulation;aspect-ratio:1;color:#374b3d}
.competition-square.light{background:var(--checker-light)}.competition-square.dark{background:var(--checker-dark)}.competition-square.picked{box-shadow:inset 0 0 0 4px #ead270;z-index:1}.competition-square.permitted:after{content:'';position:absolute;inset:3px;border:3px solid #f0d15caa;border-radius:5px;pointer-events:none}.competition-square:focus-visible{outline:3px solid #ffe55e;outline-offset:-3px;z-index:2}
.chess-piece{font-family:'Segoe UI Symbol','Noto Sans Symbols 2','Arial Unicode MS',serif;font-size:clamp(1.7rem,6vw,2.7rem);line-height:1;z-index:1;transform:translateY(-1px)}.white-piece{color:#fcf2d8;-webkit-text-stroke:1.2px #644d36;text-shadow:0 2px 2px #372f2963}.black-piece{color:#283730;-webkit-text-stroke:.45px #d3c9a3;text-shadow:0 1px 1px #ffffff82}
.chess-rank,.chess-file{position:absolute;color:#254238bc;font-size:.56rem;font-family:system-ui;font-weight:750;line-height:1}.chess-rank{top:3px;left:3px}.chess-file{bottom:3px;right:3px}.legal-dot{width:20%;height:20%;border-radius:50%;background:#f4e2a8c5;box-shadow:0 0 0 2px #a8a56370}
.checker-token{display:grid;place-items:center;width:76%;height:76%;border-radius:50%;border:3px solid #d2ddd4;font-size:clamp(1rem,4vw,1.7rem);box-shadow:0 5px 0 #21352b31,inset 0 3px 2px #ffffff6b;color:#fff9}.checker-token.player-0{background:radial-gradient(circle at 35% 27%,#ff9e8b,#a8394f 74%);border-color:#fbc3b6}.checker-token.player-1{background:radial-gradient(circle at 35% 27%,#4b6666,#253438 74%);border-color:#a7b6a7}.checker-token.king{box-shadow:0 5px 0 #21352b31,inset 0 3px 2px #ffffff6b,0 0 0 3px #f5c76d}
.competition-help{text-align:center;color:#667e73;font-size:.85rem;line-height:1.5;margin:12px auto 7px;max-width:490px}
.bead-world{position:relative;overflow:hidden;background:linear-gradient(160deg,#f8f4eb,#f0e4f1 60%,#e6f6e8);border:1px solid #e0e5d9;border-radius:24px;margin:5px auto 14px;padding:28px 12px 16px;max-width:680px;min-height:250px}.bead-sparkle{position:absolute;top:12px;right:27px;font-size:2.2rem;color:#f0c58a}.bead-tubes{display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:12px}.bead-slot{appearance:none;background:transparent;border:0;display:flex;flex-direction:column;align-items:center;justify-content:end;cursor:pointer;position:relative;padding:0;min-width:54px;transition:transform .18s}.bead-slot.selected{transform:translateY(-15px)}.bead-slot:focus-visible{outline:3px solid #518e74;border-radius:14px}
.bead-rim{width:54px;height:9px;border:3px solid #b6d3d2;background:#fffffff0;border-radius:8px;transform:translateY(6px);z-index:2}.bead-tube{width:49px;height:160px;padding:5px 3px 7px;display:flex;flex-direction:column-reverse;justify-content:flex-start;align-items:center;gap:2px;background:linear-gradient(90deg,#fff9,#d9e6ec88 55%,#fffe);border:3px solid #c5dadd;border-top:0;border-radius:0 0 20px 20px;box-shadow:inset 0 0 10px #6a9c9c20,4px 7px 11px #456d6220}
.bead{display:block;width:36px;height:34px;flex:none;border-radius:50%;background:radial-gradient(circle at 31% 23%,#ffffffdc 0 11%,var(--bead) 39%,#273c4858 140%);box-shadow:inset -4px -4px 6px #28344325,0 2px 2px #29394c24;animation:bead-drop .26s cubic-bezier(.2,1.45,.55,1)}@keyframes bead-drop{from{transform:translateY(-26px) scale(.9);opacity:.65}to{transform:translateY(0) scale(1);opacity:1}}.bead-base{font-size:.72rem;color:#74887b;margin-top:7px;font-weight:900}
.bead-tools{justify-content:center}
.racing-stadium{display:grid;gap:22px;padding:21px 18px;border-radius:22px;background:linear-gradient(145deg,#e8f6ed,#edf0fc);border:1px solid #dbeadf}
.racing-lane{min-width:0}.race-label{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:.91rem;color:#315b53;margin-bottom:7px}.race-label small{font-size:.77rem;color:#628178;font-weight:850}
.race-road{height:78px;border-radius:13px;border:4px solid #7d907d;background:#6c7677;position:relative;overflow:hidden;box-shadow:inset 0 4px 9px #2a333745}.race-markings{position:absolute;left:0;right:0;top:50%;border-top:4px dashed #e7d9ae;transform:translateY(-50%);opacity:.76}.race-car{position:absolute;top:50%;transform:translate(-50%,-50%);font-size:2.4rem;filter:drop-shadow(0 4px 4px #2c343b53);transition:left .22s cubic-bezier(.1,.8,.3,1);z-index:1}.race-car.player-1{transform:translate(-50%,-50%) scaleX(-1)}.race-finish{position:absolute;right:1%;top:0;height:100%;width:12px;background:repeating-conic-gradient(#fff 0 25%,#283c3e 0 50%) 50%/12px 12px}
.racing-heat{height:6px;overflow:hidden;background:#d4e5de;border-radius:6px;margin:9px 0}.racing-heat span{display:block;background:linear-gradient(90deg,#7fbab0,#f0ad64,#da697b);height:100%;transition:width .2s}.race-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.race-actions .button{font-size:.77rem;min-height:37px;padding:8px 12px}
.pool-wrap{border-radius:22px;overflow:hidden;border:8px solid #7e5b3e;box-shadow:0 16px 26px #314c3f37;margin:7px auto 15px;max-width:800px;background:#226248}.pool-wrap canvas{width:100%;height:auto;display:block;touch-action:none;aspect-ratio:640/340;cursor:crosshair}.pool-score{display:flex;justify-content:space-between;align-items:center;gap:7px;margin:8px 0;font-size:.77rem;font-weight:850;color:#376d58}.pool-score span:nth-child(2){display:grid;place-items:center;background:#203336;color:#fff;border-radius:50%;width:27px;height:27px;font-size:1rem}
.pool-aim{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:9px 11px;margin:12px auto;max-width:530px}.pool-aim label{color:#315c4c;font-size:.83rem;font-weight:800}.pool-aim output{font-weight:900}.pool-aim input{width:100%;accent-color:#478c6f}
@media(max-width:560px){.competition-board{border-width:6px}.chess-piece{font-size:clamp(1.25rem,7vw,2.05rem)}.chess-rank,.chess-file{font-size:.48rem}.checker-token{border-width:2px}.racing-stadium{padding:14px 9px}.race-actions{justify-content:center}.race-actions .button{flex:1;min-width:95px}.race-road{height:62px}.race-car{font-size:2rem}.pool-wrap{border-width:5px}.pool-aim{grid-template-columns:98px 1fr}.bead-world{padding:20px 7px 12px}.bead-tubes{gap:8px}.bead-slot{min-width:45px}.bead-rim{width:45px}.bead-tube{width:42px;height:151px}.bead{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.checker-token,.bead,.race-car,.zen-game *{animation:none!important;transition:none!important}}

}

@layer legacy{
/* Duomello · a cosy place to grow closer together */
.smart-spot{margin-top:22px;padding:24px;border:1px solid #e9cbd3;border-radius:22px;background:linear-gradient(125deg,#fff8fa,#fff5ec 62%,#f2efe8);box-shadow:0 7px 24px #6d494708}
.smart-heading{display:flex;align-items:start;justify-content:space-between;gap:18px}
.smart-heading .tiny-eyebrow{color:#ae677b}
.smart-heading h2{font:normal 700 clamp(1.35rem,2.7vw,1.9rem)/1.18 Georgia,serif;letter-spacing:-.025em;margin:6px 0}
.smart-heading h2 em{color:#a96b80;font-weight:400}
.smart-heading p{font-size:.85rem;color:#6b6a62;max-width:570px}
.smart-heart{display:grid;place-items:center;border-radius:50%;background:#fbe3e8;width:56px;height:56px;font:44px Georgia,serif;color:#ac7386;flex:none;transform:rotate(10deg)}
.smart-search{display:flex;gap:10px;margin-top:19px}
.smart-search input{flex:1;min-width:0;border:1px solid #e7cfd1;background:white}
.smart-search .button{background:#a95473;border-color:#a95473;white-space:nowrap}
.smart-search .button:hover{background:#92415d}
.smart-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:12px}
.smart-controls label{font-size:.75rem;font-weight:700;color:#6a655f;display:grid;gap:5px;flex:1;min-width:130px}
.smart-controls select{min-height:44px;width:100%;padding:9px 32px 9px 12px;background:#fffdfb;border-color:#eed7d6;font-size:.85rem}
.smart-magic{background:#f0dce5;color:#71465a;border:1px solid #dfbfce;white-space:nowrap;font-weight:700}
.smart-magic:hover{background:#e9cfdb!important}
.smart-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.smart-chips button{border:1px solid #edd7da;border-radius:999px;background:#fff;min-height:37px;padding:7px 13px;font-size:.78rem;color:#8c5670}
.smart-chips button:hover{background:#f9e4eb}
.smart-results{margin-top:18px;padding-top:15px;border-top:1px solid #eddce0}
.smart-message{font-size:.84rem;color:#795e68;margin-bottom:10px;font-weight:600}
.smart-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.smart-pick{min-height:150px;border:1px solid #eddfe0;background:#fff;border-radius:15px;padding:15px;text-align:left;display:flex;flex-direction:column;align-items:start;gap:7px;transition:transform .15s,border-color .15s}
.smart-pick:hover,.smart-pick:focus-visible{transform:translateY(-2px);border-color:#c18da1}
.smart-pick-number{letter-spacing:.11em;color:#a97889;font-size:.65rem;font-weight:800}
.smart-pick strong{font-size:1rem;color:#423f3c;line-height:1.25}
.smart-pick>span:not(.smart-pick-number){color:#74716a;font-size:.77rem;line-height:1.45;flex:1}
.smart-pick small{display:flex;justify-content:space-between;align-items:center;width:100%;gap:6px;font-size:.68rem;color:#8b827d}
.smart-pick b{color:#a35470;font-size:.72rem}
.bond-wrap{max-width:760px;margin:0 auto}
.bond-journey{margin-bottom:17px}
.bond-progress-top{display:flex;justify-content:space-between;align-items:center;font-size:.68rem;letter-spacing:.13em;color:#9a777d;font-weight:800}
.bond-progress-top strong{font-size:.85rem;letter-spacing:0;color:#83556e}
.bond-track{width:100%;height:7px;background:#f4e4e8;border-radius:999px;margin-top:10px;overflow:hidden}
.bond-track>span{height:100%;display:block;background:linear-gradient(90deg,#df9aaf,#9d647e);border-radius:999px;transition:width .35s}
.bond-main{padding:clamp(20px,4.5vw,40px);border:1px solid #f0dce2;border-radius:25px;background:radial-gradient(ellipse at 100% 0%,#ffedf3 0%,transparent 55%),linear-gradient(150deg,#fffcfb,#fff8f4);box-shadow:0 14px 38px #68454a0a;text-align:center;position:relative;overflow:hidden}
.bond-eyebrow{display:inline-block;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:#ab6e85;font-weight:700}
.bond-main h2{font:600 clamp(1.5rem,4vw,2.15rem)/1.25 Georgia,serif;letter-spacing:-.02em;color:#52454a;margin:14px auto 6px;max-width:600px}
.bond-moment-art{font:50px Georgia,serif;color:#c88ba0;line-height:1;margin:17px 0 18px}
.bond-moment-art span{font:22px Georgia,serif;position:relative;left:-14px;top:-24px;color:#ebc47d}
.bond-speaker{color:#775e66;font-size:.85rem;max-width:570px;margin:12px auto 18px}
.bond-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}
.bond-option{display:flex;align-items:center;gap:12px;text-align:left;min-height:68px;padding:12px 16px;background:white;border:1px solid #eddae0;color:#57454f;justify-content:start;white-space:normal;font-size:.87rem;border-radius:15px}
.bond-option>span{font-size:1.45rem;color:#bc8198;flex:none}
.bond-option:hover{border-color:#c890a2;background:#fff4f7!important}
.bond-form{display:flex;flex-direction:column;gap:10px;text-align:left;max-width:530px;margin:20px auto}
.bond-form label{font-size:.8rem;font-weight:700;color:#7c5969}
.bond-form textarea{background:white;border-color:#efd9df;padding:15px;min-height:110px;line-height:1.65}
.bond-form>.button{align-self:flex-end}
.bond-main .button.primary,.bond-finish .button.primary{background:#9f536e;border-color:#9f536e}
.bond-main .button.primary:hover,.bond-finish .button.primary:hover{background:#884159}
.bond-pass{margin-top:14px;text-align:center}
.bond-pass .button{color:#8d7276}
.bond-wait{border:1px dashed #e4bac7;border-radius:18px;background:#fff7f9;padding:30px;margin:18px auto;max-width:510px}
.bond-wait>span{font:45px Georgia,serif;color:#c2889c;display:block;margin-bottom:6px}
.bond-wait h3{font:600 1.3rem Georgia,serif;margin-bottom:7px}
.bond-wait p{color:#806c71;font-size:.87rem}
.bond-reveal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;text-align:left;margin:24px 0 18px}
.bond-answer{border-radius:17px;padding:18px;background:#fff;border:1px solid #ecdde0;min-height:124px}
.bond-answer:first-child{background:#fff6e6}
.bond-answer:last-child{background:#f7eef8}
.bond-answer small,.bond-summary-pair small{display:block;text-transform:uppercase;font-size:.7rem;letter-spacing:.1em;font-weight:800;color:#a67988;margin-bottom:11px}
.bond-answer p{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.55;color:#544951;font-size:.95rem}
.bond-outcome{font:600 1.15rem Georgia,serif;color:#9b5577;margin:8px 0 15px}
.bond-next-step{background:#f8ecee;border-left:3px solid #d8a4b4;border-radius:8px 14px 14px 8px;padding:13px 16px;text-align:left;margin:16px 0 20px}
.bond-next-step span{font-size:.63rem;letter-spacing:.11em;font-weight:800;color:#a87887}
.bond-next-step p{font-size:.86rem;color:#705f65;margin-top:3px}
.bond-footnote{text-align:center;color:#8e8482;font-size:.74rem;margin-top:17px}
.bond-finish{text-align:center;padding:28px 14px 34px}
.bond-finish-heart{font:90px Georgia,serif;line-height:1;color:#d7a1b4}
.bond-finish h2{font:600 2rem Georgia,serif;color:#654858;margin:10px 0}
.bond-finish>p{color:#73656d;max-width:540px;margin:8px auto 20px}
.bond-summary-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;text-align:left;margin:23px 0}
.bond-summary-pair>div{background:#fff9fa;border:1px solid #f0dfe6;padding:18px;border-radius:14px}
.bond-summary-pair strong{color:#9d5475;display:block;font-family:Georgia,serif;font-size:1.18rem}
.bond-summary-pair p{font-size:.8rem;color:#766d71;margin-top:7px}
.bond-soft-note{font-size:.78rem!important;color:#9b898e!important}
@media(max-width:1050px){.smart-picks{grid-template-columns:repeat(2,minmax(0,1fr))}.smart-pick:last-child{grid-column:1/-1;min-height:auto}}
@media(max-width:700px){.smart-spot{padding:18px;margin-top:16px;border-radius:19px}.smart-heart{display:none}.smart-heading h2{font-size:1.6rem}.smart-search{flex-wrap:wrap}.smart-search input{flex:1 0 100%}.smart-search .button{width:100%}.smart-controls label{min-width:calc(50% - 7px)}.smart-magic{width:100%}.smart-picks{grid-template-columns:1fr}.smart-pick:last-child{grid-column:auto}.smart-pick{min-height:0;gap:5px}.smart-chips button{font-size:.75rem}.bond-main{padding:22px 15px}.bond-options,.bond-reveal,.bond-summary-pair{grid-template-columns:1fr}.bond-option{min-height:58px}.bond-main h2{font-size:1.55rem}.bond-moment-art{font-size:42px;margin:14px 0}.bond-form>.button{align-self:stretch}.bond-answer{min-height:0}.bond-wrap{width:100%}}
@media(prefers-reduced-motion:reduce){.smart-pick,.bond-track>span{transition:none}}
}

@layer legacy{
/* Duemello: a restrained, accessible product interface. */
:root{font-family:Inter,"Segoe UI",Arial,system-ui,sans-serif;--experience-serif:Inter,"Segoe UI",Arial,system-ui,sans-serif;--radius:12px}
body{font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;transition:none}
h1,h2,h3,h4,button,input,select,textarea{font-family:inherit}
h1,h2,h3{font-weight:650;letter-spacing:-.035em}h2{line-height:1.25}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:11px 16px;border-radius:8px;font-size:.82rem;font-weight:600;line-height:1.4;box-shadow:none;letter-spacing:0}
.button .icon{width:17px;height:17px}.button:hover{transform:none}
.icon-button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:8px}
.app-header{height:auto;min-height:76px;gap:36px;padding:14px max(28px,calc((100vw - 1500px)/2));box-shadow:none;border-bottom:1px solid var(--line)}
.app-header .wordmark{display:flex;align-items:center;gap:0;font-size:1.85rem;letter-spacing:-.075em;font-weight:750;background:none;border:0}
.app-header .brand-symbol{margin-right:10px;display:inline-flex}.brand-symbol .icon{width:25px;height:25px;stroke-width:2.2}
.app-header .brand-period{margin-left:1px}.app-header nav{gap:5px}
.app-header .header-nav{border-radius:7px;font-size:.8rem;font-weight:550;padding:10px 12px;min-height:44px;letter-spacing:0}
.app-header .header-nav.selected:after{display:none}.app-header nav .header-nav:nth-child(3){display:block}
.header-actions{gap:10px;align-items:center}.header-actions .header-room{min-width:0;width:auto;padding:11px 15px;border-radius:8px;font-weight:600}
.header-room:after{display:none!important}.header-settings{border:1px solid var(--line)}
.theme-control{display:flex;align-items:center;gap:3px;padding:0;background:transparent}.theme-control .icon{width:17px;height:17px}.theme-control select{max-width:182px;min-height:42px;padding:8px 5px;border:0;border-radius:6px;font-size:.72rem;background:transparent;font-weight:500}
.app-layout{max-width:1500px;padding:34px 28px 40px;grid-template-columns:190px minmax(0,1fr);gap:34px}
.app-layout>.sidebar{padding:3px 22px 16px 0;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;min-height:calc(100vh - 145px);top:106px;gap:22px;max-height:calc(100vh - 126px)}
.small-label,.tiny-eyebrow,.section-kicker{font-size:.65rem;font-weight:650;letter-spacing:.1em;line-height:1.5}.sidebar .small-label{margin:0;color:var(--theme-muted)}
.sidebar .couple-pair{background:transparent;padding:3px 0 20px;border-bottom:1px solid var(--line);border-radius:0;margin:0;gap:12px}.couple-pair>div{gap:8px}.couple-pair strong{font-size:.75rem;font-weight:550}.sidebar .avatar{width:40px;height:40px;font-size:.85rem;font-family:inherit;border:0;transform:none;font-weight:600}.between-heart{padding:0!important}.between-heart .icon{width:16px;height:16px}
.side-links{gap:4px}.sidebar .side-link{min-height:44px;padding:10px 9px;border-radius:7px;font-size:.78rem;font-weight:500;color:var(--theme-muted)}.side-link .icon{width:17px;height:17px}.side-link b{font-size:.69rem}
.sidebar .sidebar-invite{padding:18px 14px;border:1px solid var(--line);border-radius:9px;margin-top:6px;background:transparent;box-shadow:none}.sidebar-invite:after{display:none!important}.sidebar-invite .invite-icon{margin-bottom:5px}.sidebar-invite .invite-icon .icon{width:21px;height:21px}.sidebar-invite h3{font-family:inherit;font-size:1rem;line-height:1.4;margin:10px 0}.sidebar-invite p{font-size:.74rem;line-height:1.7;margin-bottom:18px}.sidebar-invite .button{font-size:.71rem;padding:10px;gap:7px;width:100%}.sidebar-invite .button .icon{width:15px;height:15px}.sidebar .side-bottom{display:flex;align-items:center;gap:9px;font-size:.75rem;text-decoration:none;margin-top:auto;padding:8px 0}.side-bottom .icon{width:17px;height:17px}
.app-layout main{padding:0}
.welcome{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:36px;align-items:center;padding:40px;border:1px solid var(--line);border-radius:12px;min-height:385px;box-shadow:none;background-image:none!important;isolation:isolate;margin:0}
.welcome:before,.welcome:after,.hero-showcase:before,.hero-showcase:after{display:none!important}
.welcome-copy{min-width:0}.welcome .tiny-eyebrow{display:block;margin:0 0 17px}.welcome h1{font-size:clamp(2.4rem,3.8vw,3.8rem);line-height:1.08;letter-spacing:-.055em;font-weight:650;margin:0 0 18px;max-width:660px;text-wrap:balance}.welcome-copy>p{font-size:.91rem;line-height:1.75;max-width:410px;margin:0}
.welcome .hero-actions{display:flex;gap:10px;align-items:stretch;margin-top:26px;flex-wrap:wrap}.welcome .hero-actions .button{font-size:.76rem;min-height:46px;padding:11px 14px;border-radius:8px}
.hero-celebration{display:flex;align-items:center;flex-wrap:wrap;font-size:.65rem;line-height:1.7;gap:7px 10px;padding:0;border:0;background:transparent;margin-top:22px}.hero-celebration .icon{width:14px;height:14px}.hero-celebration button{font-size:inherit;text-decoration:underline;text-underline-offset:3px;background:transparent;border:0;padding:2px}
.hero-showcase{display:block;position:relative;min-height:0;width:100%;height:auto;margin:0;align-self:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff;color:#233b34;text-align:left;padding:0;box-shadow:0 8px 25px #17221c07;transform:none}
.preview-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #e3e7e1;font-size:.59rem;letter-spacing:.1em;font-weight:650;color:#58645d}.preview-heading .icon{width:17px;height:17px}
.hero-illustration{display:block;position:static;width:100%;height:auto;max-height:230px;min-height:0;object-fit:cover;animation:none;filter:none;transform:none}
.preview-caption{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-top:1px solid #e7e9e4;background:#fff}.preview-caption strong{display:block;font-size:.95rem;line-height:1.4}.preview-caption>div>span{display:block;font-size:.69rem;color:#5b685e;margin-top:2px}.preview-play{width:34px;height:34px;border:1px solid #d4dfd6;border-radius:50%;color:#284f42}.preview-play .icon{width:15px;height:15px;margin-left:2px}
.hero-showcase:hover{border-color:var(--theme-main)}
.little-promises{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0;padding:20px 4px 24px;border-bottom:1px solid var(--line);font-size:.69rem;color:var(--theme-muted)}.little-promises>span{display:inline-flex;gap:8px;align-items:center}.little-promises .icon{width:15px;height:15px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:21px}.section-heading h2,.social-start h2,.community-copy h2{font-size:clamp(1.35rem,2vw,1.7rem);font-weight:650;line-height:1.3;letter-spacing:-.04em;margin:0}.section-kicker{display:block;margin-bottom:8px}.section-heading p,.social-start p,.community-copy p{font-size:.8rem;line-height:1.7;color:var(--theme-muted);margin:8px 0 0}
.text-action{display:flex;align-items:center;gap:10px;font-size:.76rem;min-height:44px;padding:8px 0;border:0;background:transparent;font-weight:600;white-space:nowrap}.text-action .icon{width:16px;height:16px}
.instant-play{margin:32px 0 36px}.instant-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.instant-card{display:flex;flex-direction:column;text-align:left;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;box-shadow:none;min-width:0;transition:border-color .15s;background:var(--theme-paper)}.instant-card:hover{border-color:var(--theme-main);transform:none;box-shadow:none}.instant-art{display:block;width:100%;aspect-ratio:1.6;overflow:hidden;background:#eff2ec}.instant-art img{display:block;width:100%;height:100%;object-fit:cover;transform:none;transition:none}.instant-copy{display:flex;flex:1;flex-direction:column;padding:17px 16px}.instant-copy small{font-size:.52rem;font-weight:650;letter-spacing:.085em;color:var(--theme-muted);line-height:1.5;margin-bottom:8px}.instant-copy strong{font-family:inherit;font-size:1rem;font-weight:650;letter-spacing:-.02em;color:var(--theme-text)}.instant-copy>span{font-size:.73rem;color:var(--theme-muted);line-height:1.7;flex:1;margin:8px 0 18px}.instant-copy b{display:flex;justify-content:space-between;align-items:center;gap:7px;font-weight:600;font-size:.72rem;color:var(--theme-main)}.instant-copy b .icon{width:15px;height:15px}
.social-start{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 36px;padding:24px 0;border-block:1px solid var(--line)}.social-start h2{font-size:1.12rem}.social-start p{font-size:.76rem;margin-top:4px}.audience-switch{display:flex;padding:4px;gap:3px;border:1px solid var(--line);border-radius:9px;background:var(--theme-paper)}.audience-choice{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 11px;border:1px solid transparent;border-radius:6px;background:transparent;font-size:.7rem;white-space:nowrap}.audience-choice strong{font-weight:550}.audience-choice .icon{width:16px;height:16px}
.experience-spotlight,.community-panel,.smart-spot{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.experience-spotlight{margin-bottom:36px}.discover-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.discover-card{border:1px solid var(--line);border-radius:9px;box-shadow:none;padding:18px;min-height:195px;background:var(--theme-paper);text-align:left;transition:border-color .15s}.discover-card:hover{border-color:var(--theme-main);transform:none;box-shadow:none}.discover-card .discover-count{display:flex;align-items:center;justify-content:space-between;font-size:.64rem;font-weight:600;letter-spacing:.03em}.discover-count .icon{width:17px;height:17px}.discover-card strong{font-family:inherit;font-size:.95rem;line-height:1.4;font-weight:650;margin:12px 0 8px;letter-spacing:-.025em}.discover-card .discover-desc{font-size:.73rem;line-height:1.65}.discover-card small{display:flex;align-items:center;gap:6px;font-size:.64rem;margin-top:20px}.discover-card small .icon{width:13px;height:13px}.discover-card small>span{margin-left:auto;display:inline-flex;align-items:center;gap:4px}
.community-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:24px;margin-bottom:36px}.community-panel{min-width:0}.community-copy{margin-bottom:20px}.discover-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.discover-card.compact{min-height:185px;padding:17px}.daily-panel{min-height:0;padding:28px;border:0;border-radius:10px;box-shadow:none;display:flex;flex-direction:column;justify-content:space-between;gap:24px}.daily-panel:before,.daily-panel:after{display:none!important}.daily-icon{display:block;margin:24px 0 18px!important}.daily-icon .icon{width:30px;height:30px}.daily-panel h2{font-family:inherit;font-size:1.65rem;font-weight:600;line-height:1.25;margin-bottom:12px;letter-spacing:-.035em}.daily-panel p{font-size:.8rem;line-height:1.75}.daily-panel .button{font-size:.75rem;border-radius:7px}.daily-panel .section-kicker{font-size:.61rem}
.smart-spot{margin:0 0 36px;padding:26px;border:1px solid var(--line);border-radius:10px}.smart-heading{display:flex;justify-content:space-between;gap:24px;align-items:center}.smart-heading h2{font-size:1.6rem;font-family:inherit;font-weight:650;letter-spacing:-.035em;margin:8px 0}.smart-heading h2 em{font-style:normal}.smart-heading p{font-size:.8rem;color:var(--theme-muted)}.smart-heart{transform:none;font-size:inherit}.smart-heart .icon{width:27px;height:27px}.smart-search{display:flex;gap:10px;margin-top:22px;background:transparent;padding:0;border:0;box-shadow:none;border-radius:0}.smart-search input{flex:1;min-width:0;border:1px solid var(--line);border-radius:7px;padding:12px 14px;font-size:.8rem;background:var(--theme-paper)}.smart-search .button{font-size:.76rem}.smart-controls{margin-top:18px;gap:14px;display:flex;flex-wrap:wrap;align-items:end}.smart-controls label{font-size:.71rem;display:grid;gap:5px;font-weight:550}.smart-controls select{min-height:44px;font-size:.76rem;border-radius:7px;padding:10px 12px}.smart-controls .button{margin-left:auto;font-size:.75rem}.smart-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}.smart-chips button{font-size:.69rem;min-height:36px;border-radius:6px;padding:7px 11px;border:1px solid var(--line);background:transparent;color:var(--theme-muted)}.smart-pick{border-radius:8px;box-shadow:none}.smart-pick-number{font-family:inherit;font-size:.8rem}.smart-pick h3{font-family:inherit;font-size:.95rem}
.celebrate-cta{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;margin-bottom:38px;padding:26px;border:1px solid var(--line);border-radius:10px;box-shadow:none;background:var(--theme-soft)}.celebrate-cta:before,.celebrate-cta:after{display:none}.celebrate-cta h2{font-family:inherit;font-size:1.5rem;font-weight:650;line-height:1.3;margin:0 0 10px}.celebrate-cta p{font-size:.78rem;line-height:1.75;max-width:600px;margin:0 0 10px}.celebrate-cta small{font-size:.67rem}.celebrate-cta .button{font-size:.75rem}
.library-heading{margin:0 0 22px;align-items:end}.library-heading h2{font-size:1.7rem;letter-spacing:-.04em}.library-heading p{font-size:.78rem;margin-top:7px}.search-box{width:275px;min-height:44px;border-radius:7px;padding:0 12px}.search-box input{font-size:.78rem}.search-box .icon{width:17px;height:17px}
.category-tabs{gap:7px;margin-bottom:22px}.category-tab{font-size:.73rem;min-height:42px;border-radius:7px;padding:9px 12px;font-weight:500}.category-tab .icon{width:16px;height:16px}.activity-grid{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.game-card{border-radius:9px;box-shadow:none;transition:border-color .15s}.game-card:hover{transform:none;box-shadow:none;border-color:var(--theme-main)}.card-main{min-height:230px;padding:20px}.game-card .card-icon{border-radius:9px;transform:none;width:40px;height:40px;margin-bottom:20px}.game-card .card-icon .icon{width:21px;height:21px}.card-main h3{font-size:.96rem;font-weight:600;letter-spacing:-.025em}.card-main p{font-size:.76rem;line-height:1.7;min-height:43px}.card-meta{font-size:.64rem;margin-top:20px;gap:7px}.card-meta .card-number{font-size:.61rem}.favourite-button{top:10px;right:10px;width:36px;height:36px;border-radius:7px}.favourite-button .icon{width:18px;height:18px}.memory-mark{font-size:.64rem}.library-footer{padding-top:34px;font-size:.8rem;gap:4px}.library-footer p{font-weight:550}.library-footer>span:last-child{font-size:.7rem}.mobile-filters{gap:8px}.mobile-filters button{display:flex;gap:7px;align-items:center;font-size:.74rem;min-height:44px}.mobile-filters .icon{width:16px;height:16px}
.play-heading{align-items:center;margin-bottom:24px}.play-heading h1{font-family:inherit;font-size:2.15rem;font-weight:650;letter-spacing:-.045em}.play-heading>.button{font-size:.75rem}.play-theme-context{font-size:.76rem;line-height:1.6;border-radius:6px}.game-content{border-radius:12px;box-shadow:none}.play-note{padding:22px;border-radius:9px;box-shadow:none}.play-note>span{font-size:inherit}.play-note>span .icon{width:24px;height:24px}.play-note h3{font-family:inherit;font-size:1.1rem;font-weight:600}.play-note p{font-size:.8rem;line-height:1.7}.play-note .button{font-size:.73rem}.play-bottom{font-size:.75rem}.live-play-status{border-radius:7px;box-shadow:none;font-size:.76rem}
.app-dialog{border-radius:12px;box-shadow:0 20px 90px #16251b26}.app-dialog h2{font-family:inherit;font-size:1.9rem;font-weight:600;letter-spacing:-.04em}.app-dialog p{font-size:.87rem}.app-dialog input,.app-dialog select,.app-dialog textarea{border-radius:7px;font-size:.85rem;min-height:44px}.app-dialog label{font-size:.8rem}.dialog-top .icon-button{font-size:1rem}.room-callout{border-radius:8px}.toast{border-radius:8px;font-size:.82rem}
.public-footer{display:grid;grid-template-columns:1fr 1.3fr;gap:26px;align-items:center;max-width:none;margin:32px auto 0;padding:38px max(28px,calc((100vw - 1444px)/2));border-top:1px solid var(--line);box-shadow:none}.public-footer>div strong{font-size:1.8rem;letter-spacing:-.075em;font-weight:700}.public-footer p{font-size:.78rem;line-height:1.7;max-width:300px;margin-top:9px}.public-footer nav{justify-content:flex-end;gap:18px;font-size:.74rem}.public-footer a{font-weight:500}.public-footer>small{grid-column:1/-1;font-size:.65rem;border-top:1px solid var(--line);padding-top:22px;margin-top:0;opacity:1}
/* Calendar themes change colours, never the structure or game controls. */
@media(max-width:1250px){.app-header{gap:20px;padding:14px 24px}.app-header .header-nav{font-size:.75rem;padding:9px}.theme-control select{max-width:150px;font-size:.67rem}.app-layout{padding:28px 24px;grid-template-columns:164px minmax(0,1fr);gap:25px}.app-layout>.sidebar{padding-right:16px}.welcome{gap:24px;padding:30px}.welcome h1{font-size:3rem}.welcome .hero-actions{gap:8px}.welcome .hero-actions .button{font-size:.7rem}.instant-copy{padding:15px 13px}.social-start{align-items:flex-start;flex-direction:column;gap:17px}.audience-choice{font-size:.74rem;padding:9px 15px}.community-row{grid-template-columns:1.5fr 1fr;gap:18px}}
@media(max-width:1000px){.app-layout{grid-template-columns:minmax(0,1fr);gap:0}.app-layout>.sidebar{display:none}.app-header{gap:18px}.app-header .header-nav{padding:9px}.app-header .wordmark{font-size:1.65rem}.header-actions .header-room{font-size:.72rem;padding:11px 12px}.header-settings{display:none}.welcome{padding:34px;gap:30px}.welcome h1{font-size:3.2rem}.social-start{flex-direction:row;align-items:center}.audience-choice{font-size:.7rem;padding:9px 11px}.theme-control select{max-width:147px}}
@media(max-width:760px){.app-header{padding:12px 18px;min-height:72px;gap:12px;flex-wrap:wrap}.app-header nav{order:3;flex-basis:100%;justify-content:flex-start;border-top:1px solid var(--line);padding-top:7px;gap:8px;margin:0}.app-header .header-nav{font-size:.74rem;padding:7px 12px;min-height:38px}.header-actions{margin-left:auto;gap:7px}.theme-control .icon{display:none}.theme-control select{font-size:.66rem;max-width:136px;padding-left:0}.header-actions .header-room{font-size:.69rem;min-height:40px;padding:9px 11px}.header-room .icon{width:16px;height:16px}.app-layout{padding:20px 18px}.welcome{padding:28px;gap:25px;grid-template-columns:1.1fr .9fr;min-height:340px}.welcome h1{font-size:2.7rem}.welcome .tiny-eyebrow{font-size:.57rem}.welcome-copy>p{font-size:.8rem}.welcome .hero-actions{flex-direction:column;align-items:flex-start;margin-top:22px}.welcome .hero-actions .button{min-height:43px;font-size:.69rem;padding:10px 12px}.hero-celebration{font-size:.59rem;margin-top:19px;gap:6px}.preview-heading{font-size:.48rem;padding:12px}.hero-illustration{max-height:200px}.preview-caption{padding:13px}.preview-caption strong{font-size:.82rem}.preview-caption>div>span{font-size:.6rem}.preview-play{width:30px;height:30px}.little-promises{font-size:.6rem;padding:18px 0 22px;gap:10px}.instant-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.instant-copy{padding:18px}.instant-copy strong{font-size:1.1rem}.instant-copy small{font-size:.55rem}.instant-copy>span{font-size:.78rem}.instant-copy b{font-size:.75rem}.instant-art{aspect-ratio:1.9}.section-heading h2,.community-copy h2{font-size:1.5rem}.section-kicker{font-size:.59rem}.text-action{font-size:.7rem}.social-start{flex-direction:column;align-items:stretch;gap:18px;padding:22px 0}.audience-switch{align-self:flex-start}.audience-choice{font-size:.75rem;padding:9px 14px}.discover-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-row{grid-template-columns:1fr;gap:20px}.daily-panel{display:grid;grid-template-columns:1fr auto;align-items:end;padding:24px;gap:30px}.daily-icon{margin:18px 0!important}.daily-panel h2{font-size:1.5rem}.daily-panel .button{font-size:.72rem}.celebrate-cta{grid-template-columns:1fr;padding:24px;gap:20px}.celebrate-cta .button{justify-self:start}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.smart-controls .button{margin-left:0}.public-footer{grid-template-columns:1fr;padding:30px 22px}.public-footer nav{justify-content:flex-start;flex-wrap:wrap}.play-heading h1{font-size:1.9rem}}
@media(max-width:480px){.app-header{padding:11px 15px;gap:7px}.app-header .wordmark{font-size:1.6rem}.app-header .brand-symbol{margin-right:7px}.brand-symbol .icon{width:21px;height:21px}.header-actions{gap:6px}.header-actions .header-room{padding:9px 10px;font-size:.66rem}.header-room>[data-icon]{display:none}.theme-control select{font-size:.61rem;max-width:123px;min-height:40px}.app-header nav{gap:8px;padding-top:6px}.app-header .header-nav{font-size:.71rem;padding:7px 11px}.app-layout{padding:18px 15px}.welcome{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding:27px 22px;gap:26px;border-radius:10px}.welcome h1{font-size:2.9rem;line-height:1.08;max-width:340px;margin-bottom:16px}.welcome .tiny-eyebrow{font-size:.57rem;margin-bottom:16px}.welcome-copy>p{font-size:.83rem;max-width:340px}.welcome .hero-actions{flex-direction:row;align-items:stretch;gap:9px;margin-top:23px}.welcome .hero-actions .button{font-size:.7rem;padding:10px 12px;flex:1;min-height:45px}.welcome .hero-actions .button .icon{width:15px;height:15px}.welcome .hero-actions .primary .icon{display:none}.hero-celebration{font-size:.61rem;line-height:1.8;margin-top:18px}.hero-showcase{width:100%;height:auto;min-height:0;margin:0;align-self:stretch}.hero-illustration{max-height:185px;height:auto;aspect-ratio:1.8;object-fit:cover}.preview-heading{font-size:.53rem;padding:12px 15px}.preview-caption{padding:13px 15px}.preview-caption strong{font-size:.92rem}.preview-caption>div>span{font-size:.67rem}.little-promises{justify-content:flex-start;font-size:.59rem;gap:10px 16px;padding:19px 0 22px}.little-promises .icon{width:14px;height:14px}.little-promises>span{gap:6px}.section-heading{align-items:flex-start;gap:10px}.section-heading h2,.community-copy h2{font-size:1.47rem}.instant-play .section-heading{flex-direction:column;gap:7px}.text-action{font-size:.71rem;min-height:36px}.instant-play{margin:27px 0 29px}.instant-grid{gap:11px}.instant-art{aspect-ratio:1.6}.instant-copy{padding:15px 12px}.instant-copy strong{font-size:.98rem}.instant-copy small{font-size:.48rem;margin-bottom:7px}.instant-copy>span{font-size:.71rem;line-height:1.65;margin:7px 0 16px}.instant-copy b{font-size:.67rem}.instant-copy b .icon{width:14px;height:14px}.social-start{margin-bottom:29px}.social-start h2{font-size:1.17rem}.social-start p{font-size:.75rem}.audience-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-self:stretch;gap:2px;padding:4px}.audience-choice{font-size:.63rem;gap:5px;padding:9px 3px;min-height:44px}.audience-choice .icon{width:15px;height:15px}.experience-spotlight{margin-bottom:30px}.section-heading p{font-size:.75rem}.discover-grid{gap:10px}.discover-card{padding:15px;min-height:210px}.discover-card strong{font-size:.93rem;line-height:1.4;margin:12px 0 8px}.discover-card .discover-desc{font-size:.71rem}.discover-card small{font-size:.56rem;gap:4px;flex-wrap:wrap}.discover-card small>span{white-space:nowrap}.discover-card.compact{padding:15px;min-height:205px}.community-row{margin-bottom:30px}.daily-panel{display:flex;align-items:stretch;padding:23px;gap:20px}.daily-panel .button{align-self:flex-start;font-size:.75rem}.daily-panel h2{font-size:1.6rem}.smart-spot{padding:22px 18px;margin-bottom:30px}.smart-heading{gap:15px}.smart-heading h2{font-size:1.5rem}.smart-heading p{font-size:.77rem}.smart-heart .icon{width:22px;height:22px}.smart-search{flex-direction:column;margin-top:21px;gap:9px}.smart-search .button{align-self:stretch;min-height:44px}.smart-controls{gap:14px 10px}.smart-controls label{flex:1}.smart-controls select{font-size:.72rem;max-width:100%;width:100%}.smart-controls .button{width:100%}.smart-chips{gap:6px}.smart-chips button{font-size:.65rem;min-height:36px}.celebrate-cta{padding:23px 20px;gap:19px;margin-bottom:32px}.celebrate-cta h2{font-size:1.5rem}.celebrate-cta p{font-size:.76rem}.celebrate-cta .button{font-size:.74rem}.library-heading{gap:17px;flex-direction:column;align-items:stretch}.library-heading h2{font-size:1.6rem}.search-box{width:100%}.category-tabs{gap:6px;margin-bottom:18px}.category-tab{font-size:.69rem;padding:9px 10px;min-height:42px}.activity-grid{gap:10px}.card-main{min-height:247px;padding:18px 14px}.game-card .card-icon{width:37px;height:37px;margin-bottom:20px}.card-main h3{font-size:.91rem}.card-main p{font-size:.73rem;min-height:61px}.card-meta{font-size:.61rem;gap:5px;flex-wrap:wrap}.favourite-button{right:5px;top:8px;width:34px;height:34px}.favourite-button .icon{width:17px;height:17px}.play-heading{gap:13px}.play-heading h1{font-size:1.8rem}.game-content{padding:22px 14px}.public-footer{padding:28px 20px}.public-footer nav{gap:15px;font-size:.72rem}}
@media(max-width:360px){.app-header .wordmark{font-size:1.4rem}.brand-symbol .icon{width:18px;height:18px}.theme-control select{max-width:111px;font-size:.58rem}.header-actions .header-room{font-size:.61rem;padding:8px}.welcome{padding:24px 18px}.welcome h1{font-size:2.55rem}.audience-choice{font-size:.59rem;gap:4px}.audience-choice .icon{width:13px;height:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Real SVG game controls replace pictographic glyphs without changing state. */
.tic-board .tile .icon{width:52%;height:52%;stroke-width:2}.connect-cell .icon{width:60%;height:60%;fill:currentColor;stroke-width:0}.dot-box .icon{width:22px;height:22px}.memory-board .tile .icon{width:40%;height:40%;stroke-width:1.8}.fleet-board .tile .icon,.targets-board .tile .icon{width:55%;height:55%}.rps-options span .icon,.duo-reveal>div>span>.icon{width:42px;height:42px}.playing-card>strong .icon{width:70px;height:70px}.playing-card>span .icon{width:16px;height:16px}.bingo-board .tile>span .icon{width:16px;height:16px}.result-art .icon{width:50px;height:50px}.film-clues{display:flex;justify-content:center;gap:22px;flex-wrap:wrap}.film-clues>span{display:flex;align-items:center;flex-direction:column;gap:12px}.film-clues .icon{width:48px;height:48px}.film-clues small{font-size:.75rem;font-weight:500}
/* Keep legacy desktop-only rules from hiding the mobile navigation. */
@media(max-width:760px){.app-header nav{display:flex}.category-tabs{width:100%;max-width:100%;margin-left:0;margin-right:0;padding-left:0;padding-right:0;overflow-x:auto;flex-wrap:nowrap}.category-tab{flex-shrink:0}}
.hero-illustration{max-height:none;aspect-ratio:1.6;object-fit:contain}

/* Review navigation and translated labels may need another line on a phone. */
.app-header nav{min-width:0;flex-wrap:wrap}

}

@layer legacy{
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/InterVariable.woff2") format("woff2")}
/* One calendar palette across the website. Intentionally no patterns, scenes,
   animated props, or layout changes between seasons and celebrations. */
:root,html[data-theme]{--theme-main:#36594b;--theme-dark:#243e34;--theme-page:#f7f8f6;--theme-paper:#fff;--theme-accent:#cda979;--theme-soft:#edf2ec;--theme-text:#24332b;--theme-muted:#5a655e;--hero-surface:var(--theme-soft);--hero-text:var(--theme-text);--hero-secondary:var(--theme-muted);--hero-button:var(--theme-main);--hero-button-text:#fff;--website-radius:10px;--experience-serif:Inter,"Segoe UI",Arial,system-ui,sans-serif;--line:color-mix(in srgb,var(--theme-main) 17%,var(--theme-paper));--forest:var(--theme-main);--ink:var(--theme-text);--page:var(--theme-page);--muted:var(--theme-muted);--honey:var(--theme-accent);color-scheme:light}
html[data-theme="spring"]{--theme-main:#3d6247;--theme-dark:#294533;--theme-page:#f6f8f3;--theme-paper:#fffffc;--theme-accent:#b8cc9a;--theme-soft:#eaf0e4;--theme-text:#26392b;--theme-muted:#566452}
html[data-theme="summer"]{--theme-main:#23636a;--theme-dark:#20484e;--theme-page:#f7f9f7;--theme-paper:#fffffd;--theme-accent:#e8c576;--theme-soft:#e6f0ee;--theme-text:#243d3d;--theme-muted:#536b69}
html[data-theme="autumn"]{--theme-main:#75513a;--theme-dark:#4c382b;--theme-page:#faf8f5;--theme-paper:#fffefd;--theme-accent:#d6b188;--theme-soft:#f0e9df;--theme-text:#3e332d;--theme-muted:#6c6158}
html[data-theme="winter"]{--theme-main:#3b6079;--theme-dark:#2a4357;--theme-page:#f6f8fa;--theme-paper:#fff;--theme-accent:#aec6d9;--theme-soft:#e8eef3;--theme-text:#2c3c4a;--theme-muted:#5e6d79}
html[data-theme="halloween"]{--theme-main:#61466d;--theme-dark:#35283e;--theme-page:#f8f6f9;--theme-paper:#fffefd;--theme-accent:#e5b07f;--theme-soft:#eee7f1;--theme-text:#3c3044;--theme-muted:#6a5b74;--hero-surface:#35283e;--hero-text:#fffaf3;--hero-secondary:#e3d8e8;--hero-button:#e5b07f;--hero-button-text:#35283e}
html[data-theme="diwali"]{--theme-main:#684b77;--theme-dark:#3f2c4e;--theme-page:#faf7f3;--theme-paper:#fffdf9;--theme-accent:#e2bd75;--theme-soft:#f1e8dc;--theme-text:#46344e;--theme-muted:#6f5d73;--hero-surface:#3f2c4e;--hero-text:#fff8e9;--hero-secondary:#eadce5;--hero-button:#e2bd75;--hero-button-text:#3f2c4e}
html[data-theme="lunar"]{--theme-main:#964a45;--theme-dark:#622f32;--theme-page:#fcf8f4;--theme-paper:#fffcf8;--theme-accent:#e4c285;--theme-soft:#f4e8df;--theme-text:#583532;--theme-muted:#7a5d56;--hero-surface:#622f32;--hero-text:#fff7e8;--hero-secondary:#efddd2;--hero-button:#e4c285;--hero-button-text:#622f32}
html[data-theme="easter"]{--theme-main:#51684a;--theme-dark:#374d34;--theme-page:#f8f8f3;--theme-paper:#fffefa;--theme-accent:#c6b4d4;--theme-soft:#ede9f1;--theme-text:#354431;--theme-muted:#616e59}
html[data-theme="christmas"]{--theme-main:#305e4b;--theme-dark:#1f4134;--theme-page:#f6f8f3;--theme-paper:#fffdf8;--theme-accent:#dec08b;--theme-soft:#e7ede3;--theme-text:#2d4235;--theme-muted:#5d6c5f;--hero-surface:#1f4134;--hero-text:#fff8e9;--hero-secondary:#dce8d7;--hero-button:#dec08b;--hero-button-text:#1f4134}
html[data-theme="valentine"]{--theme-main:#8c4b62;--theme-dark:#63394e;--theme-page:#fbf6f7;--theme-paper:#fffafb;--theme-accent:#dfb3bd;--theme-soft:#f2e5e9;--theme-text:#543a46;--theme-muted:#7b626d}
html[data-theme="newyear"]{--theme-main:#465b7e;--theme-dark:#2c3b54;--theme-page:#f6f7fa;--theme-paper:#fffefa;--theme-accent:#d8bd86;--theme-soft:#e9edf5;--theme-text:#344058;--theme-muted:#616c82;--hero-surface:#2c3b54;--hero-text:#fff8e9;--hero-secondary:#dde3ee;--hero-button:#d8bd86;--hero-button-text:#2c3b54}
html[data-theme="eid"]{--theme-main:#286657;--theme-dark:#214b40;--theme-page:#f5f8f5;--theme-paper:#fffdf7;--theme-accent:#d9bb7e;--theme-soft:#e6eee5;--theme-text:#2c463a;--theme-muted:#5a6c5e;--hero-surface:#214b40;--hero-text:#fff9e9;--hero-secondary:#dce9d8;--hero-button:#d9bb7e;--hero-button-text:#214b40}
html[data-theme="ramadan"]{--theme-main:#4a5b79;--theme-dark:#2f3d56;--theme-page:#f6f7fa;--theme-paper:#fffdf8;--theme-accent:#dbc38e;--theme-soft:#e9ecf3;--theme-text:#374259;--theme-muted:#596477;--hero-surface:#2f3d56;--hero-text:#fff9eb;--hero-secondary:#e2e5ef;--hero-button:#dbc38e;--hero-button-text:#2f3d56}
html[data-theme="birthday"]{--theme-main:#715884;--theme-dark:#4e3f60;--theme-page:#faf7fa;--theme-paper:#fffafd;--theme-accent:#d8b4a2;--theme-soft:#eee6f1;--theme-text:#493c55;--theme-muted:#706477}
html[data-theme="anniversary"]{--theme-main:#82566b;--theme-dark:#573e51;--theme-page:#faf6f6;--theme-paper:#fffaf8;--theme-accent:#d4b38a;--theme-soft:#efe4e8;--theme-text:#4e3b48;--theme-muted:#74616c}
html[data-theme="graduation"]{--theme-main:#415e79;--theme-dark:#2f425b;--theme-page:#f5f7f9;--theme-paper:#fffefb;--theme-accent:#dbc08a;--theme-soft:#e6ecf2;--theme-text:#314459;--theme-muted:#556575;--hero-surface:#2f425b;--hero-text:#fff8e8;--hero-secondary:#e2e8f0;--hero-button:#dbc08a;--hero-button-text:#2f425b}
html[data-theme="justbecause"]{--theme-main:#606440;--theme-dark:#454b32;--theme-page:#f8f8f3;--theme-paper:#fffffa;--theme-accent:#cfc198;--theme-soft:#eeeedf;--theme-text:#41452f;--theme-muted:#6a6e56}
body{background:var(--theme-page)!important;background-image:none!important;color:var(--theme-text)!important;transition:none!important}
.app-header,body>header:not(.app-header){background:var(--theme-paper)!important;color:var(--theme-text)!important;border-bottom:1px solid var(--line);box-shadow:none}
.app-header .wordmark{color:var(--theme-text)}.brand-symbol,.brand-period{color:var(--theme-main)!important}.app-header .header-nav{color:var(--theme-muted)}.app-header .header-nav.selected,.app-header .header-nav:hover{background:var(--theme-soft);color:var(--theme-main)}
.theme-control,.theme-control select{color:var(--theme-muted)}.theme-control select option{color:var(--theme-text);background:var(--theme-paper)}
.button,.icon-button{border-color:var(--line);background:var(--theme-paper);color:var(--theme-main)}.button.primary,.header-actions .header-room,.category-tab.active{background:var(--theme-main);color:#fff;border-color:var(--theme-main)}.button.primary:hover,.header-actions .header-room:hover{background:var(--theme-dark)!important;color:#fff}.header-actions .header-settings{color:var(--theme-muted);background:var(--theme-paper)}
.sidebar .avatar-a{background:var(--theme-soft);color:var(--theme-main)}.sidebar .avatar-b{background:var(--theme-paper);border:1px solid var(--line);color:var(--theme-text)}.between-heart,.sidebar-invite .invite-icon{color:var(--theme-main)}.sidebar .side-link.active,.sidebar .side-link:hover{background:var(--theme-soft);color:var(--theme-main)}.sidebar-invite p,.side-bottom{color:var(--theme-muted)}
.welcome{background:var(--hero-surface);color:var(--hero-text);border-color:var(--line)}.welcome .tiny-eyebrow,.welcome h1{color:var(--hero-text)}.welcome-copy>p,.hero-celebration{color:var(--hero-secondary)}.welcome .hero-actions .primary{background:var(--hero-button);color:var(--hero-button-text);border-color:var(--hero-button)}.welcome .hero-actions .primary:hover{background:var(--hero-button)!important;color:var(--hero-button-text)}.welcome .hero-actions .quiet{background:transparent;color:var(--hero-text);border:1px solid color-mix(in srgb,var(--hero-text) 28%,transparent)}.welcome .hero-actions .quiet:hover{background:color-mix(in srgb,var(--hero-text) 7%,transparent);color:var(--hero-text)}.hero-celebration button{color:var(--hero-text)}
.section-kicker,.tiny-eyebrow{color:var(--theme-main)}.text-action,.section-heading a,.smart-heading .smart-heart{color:var(--theme-main)}
.audience-choice{color:var(--theme-muted)}.audience-choice[aria-pressed=true]{background:var(--theme-soft);color:var(--theme-main);border-color:transparent;box-shadow:none}
.discover-card,.game-card,.smart-pick,.game-content,.play-note,.app-dialog{background:var(--theme-paper);color:var(--theme-text);border-color:var(--line)}.discover-count,.discover-card .discover-desc,.discover-card small,.card-main p,.card-meta,.card-meta .card-number,.library-footer,.play-note p,.smart-pick small,.play-bottom{color:var(--theme-muted)}.discover-card strong,.card-main h3,.smart-pick h3{color:var(--theme-text)}.discover-count .icon,.discover-card small>span{color:var(--theme-main)}.game-card .card-icon{background:var(--theme-soft);color:var(--theme-main)}.favourite-button{color:var(--theme-muted)}.favourite-button:hover{background:var(--theme-soft)}.favourite-button.saved{color:var(--theme-main)}.favourite-button.saved .icon{fill:var(--theme-soft)}.play-note.pale,.smart-spot{background:var(--theme-soft)}
.daily-panel{background:var(--theme-dark);color:#fffaf1}.daily-panel h2,.daily-panel .section-kicker{color:#fffaf1}.daily-panel p{color:#f1f4e7}.daily-icon{color:var(--theme-accent)}.daily-panel .button{background:var(--theme-paper);color:var(--theme-main);border-color:var(--theme-paper)}
.celebrate-cta{color:var(--theme-text)}.celebrate-cta p,.celebrate-cta small{color:var(--theme-muted)}.celebrate-cta .button{background:var(--theme-paper);color:var(--theme-main);border:1px solid var(--line)}.smart-search input,.smart-controls select,.app-dialog input,.app-dialog select,.app-dialog textarea{background:var(--theme-paper);color:var(--theme-text);border-color:var(--line)}.smart-chips button:hover{color:var(--theme-main);background:var(--theme-paper)}.smart-pick-number{color:var(--theme-main)}
.search-box,.category-tab{background:var(--theme-paper);color:var(--theme-muted);border-color:var(--line)}.category-tab:hover:not(.active){background:var(--theme-soft)}.category-tab.active{color:#fff}.search-box input{color:var(--theme-text)}.mobile-filters button{color:var(--theme-main)}
.public-footer,body>footer:not(.public-footer){background:var(--theme-paper)!important;color:var(--theme-text)!important;border-color:var(--line)}.public-footer p,.public-footer>small{color:var(--theme-muted)}.public-footer a{color:var(--theme-main)}
/* Shared play surfaces stay calm and retain standard game-state colours. */
.zen-game{background:var(--theme-soft);border-color:var(--line);color:var(--theme-text);box-shadow:none;border-radius:12px}.zen-game:before,.zen-game:after{display:none}.zen-level span,.zen-level h2,.zen-level h3,.zen-level p,.zen-stats,.zen-center,.zen-instruction,.zen-complete strong,.zen-complete p{color:var(--theme-text)}.zen-currency,.zen-square,.zen-wheel,.zen-letter,.zen-tool,.zen-complete{background:var(--theme-paper);color:var(--theme-text);border-color:var(--line);box-shadow:none}.zen-currency b{color:var(--theme-main)}.zen-currency .icon{width:22px;height:22px}.zen-center .icon{width:25px;height:25px}.zen-tool .icon{width:18px;height:18px}.zen-progress{background:var(--theme-paper)}.zen-progress span{background:var(--theme-main)}.zen-square,.zen-answer.solved .zen-square{color:var(--theme-text)}.zen-answer.solved .zen-square{background:var(--theme-soft);border-color:var(--theme-main)}.zen-letter.selected,.zen-letter.tracing,.zen-submit{background:var(--theme-main);border-color:var(--theme-main);color:white}.zen-wheel:before{border-color:var(--line)}.zen-path polyline{stroke:var(--theme-main)}.zen-horizon{display:none}.zen-letter{font-family:inherit}.zen-square{border-radius:5px}.zen-tool,.zen-submit{border-radius:7px;font-weight:600;gap:7px}
.competition-head h2,.comp-eyebrow,.competition-head p,.competition-help,.bead-base,.race-label,.race-label small,.pool-score,.pool-aim label{color:var(--theme-text)}.comp-turn{background:var(--theme-soft);color:var(--theme-text);display:inline-flex;align-items:center;gap:6px}.competition-board{border-color:var(--line);box-shadow:none;--checker-light:var(--theme-paper);--checker-dark:color-mix(in srgb,var(--theme-main) 35%,var(--theme-paper))}.bead-world,.racing-stadium{background:var(--theme-soft);border-color:var(--line)}.bead-sparkle .icon{width:28px;height:28px}.race-car .icon{width:40px;height:32px;background:var(--theme-paper);border:1px solid var(--line);border-radius:7px;color:var(--theme-main);padding:4px}.pool-wrap{border-color:var(--theme-main)}.pool-aim input{accent-color:var(--theme-main)}
.bond-main,.bond-answer,.bond-summary-pair>div,.bond-wait{background:var(--theme-paper);border-color:var(--line);color:var(--theme-text);box-shadow:none;border-radius:10px}.bond-main{background:var(--theme-soft)}.bond-main h2,.bond-eyebrow,.bond-speaker,.bond-progress-top,.bond-progress-top strong,.bond-outcome,.bond-form label,.bond-answer p,.bond-answer small,.bond-summary-pair small,.bond-summary-pair strong,.bond-summary-pair p,.bond-finish h2,.bond-finish>p{font-family:inherit;color:var(--theme-text)}.bond-moment-art,.bond-moment-art span{color:var(--theme-main)}.bond-option,.bond-form textarea{background:var(--theme-paper);border-color:var(--line);color:var(--theme-text)}.bond-option:hover{background:var(--theme-soft)!important;border-color:var(--theme-main)}.bond-option>span{color:var(--theme-main)}.bond-finish-heart .icon{width:56px;height:56px}.bond-moment-art>.icon{width:42px;height:42px}.bond-moment-art span .icon{width:20px;height:20px}.bond-wait>span .icon{width:36px;height:36px}
/* Information, legal and directory pages use exactly the same palette. */
body>header:not(.app-header){padding:20px max(6%,24px);font:14px/1.5 Inter,"Segoe UI",Arial,sans-serif}body>header:not(.app-header) nav{display:flex;align-items:center;gap:24px;flex-wrap:wrap}body>header:not(.app-header) a{color:var(--theme-muted)!important;text-decoration:none;font-weight:500}body>header:not(.app-header) a:is(.logo,[data-brand-ready="true"]){font-size:1.65rem;font-weight:700;letter-spacing:-.07em;color:var(--theme-text)!important;margin-right:auto}
body:has(>.theme-settings)>main,body:has(>.theme-settings) .editorial{max-width:880px;margin:44px auto 80px;padding:0 24px;font:16px/1.8 Inter,"Segoe UI",Arial,sans-serif}body:has(>.theme-settings)>main h1{font:650 clamp(2.1rem,5vw,3rem)/1.15 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.055em}body:has(>.theme-settings)>main h2{font:600 1.35rem/1.3 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.03em;margin-top:38px}body:has(>.theme-settings)>main p{color:var(--theme-muted)}body:has(>.theme-settings)>main a{color:var(--theme-main)!important}body>footer:not(.public-footer){font:14px/1.8 Inter,"Segoe UI",Arial,sans-serif;border-top:1px solid var(--line);padding:28px 6%}body>footer:not(.public-footer) a{color:var(--theme-main)!important}
.theme-settings{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 14px;padding:12px max(6%,24px);background:var(--theme-soft);color:var(--theme-muted);font:12px/1.5 Inter,"Segoe UI",Arial,sans-serif;border-bottom:1px solid var(--line)}.theme-settings label{font-weight:600}.theme-settings select{max-width:195px;padding:8px 10px;background:var(--theme-paper);color:var(--theme-text);border:1px solid var(--line);border-radius:6px;font:inherit;min-height:40px}.theme-settings button{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--theme-paper);color:var(--theme-main);font:inherit;min-height:40px}.theme-settings .icon{width:15px;height:15px}#static-celebration-banner{background:var(--theme-soft);color:var(--theme-main);border-color:var(--line);font:600 14px/1.6 Inter,"Segoe UI",Arial,sans-serif;padding:18px 24px}#static-celebration-banner a{color:var(--theme-main)}
@media(max-width:600px){.theme-settings{justify-content:flex-start;padding:12px 20px}.theme-settings #static-theme-summary{font-size:11px}body>header:not(.app-header){padding:17px 22px}body>header:not(.app-header) nav{gap:13px 18px;font-size:.75rem}body>header:not(.app-header) a:is(.logo,[data-brand-ready="true"]){flex-basis:100%;font-size:1.6rem}.zen-game{border-radius:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-theme] .sidebar .sidebar-invite h3{color:var(--theme-text)}
html[data-theme] .sidebar .sidebar-invite p{color:var(--theme-muted)}
html[data-theme] .sidebar .sidebar-invite .button{background:var(--theme-main);color:#fff;border-color:var(--theme-main)}
html[data-theme] .smart-heading .tiny-eyebrow{color:var(--theme-main)}
body:has(>.theme-settings)>main .hero .btn.gold,body:has(>.theme-settings)>main .lower .btn.gold{color:var(--theme-dark)!important}
body:has(>.theme-settings)>main .hero .btn.outline{color:var(--hero-text)!important}
/* Local events are automatic. Ordinary days use the Duemello brand palette. */
html[data-theme="default"]{--theme-main:#305d4b;--theme-dark:#213e33;--theme-page:#f7f9f6;--theme-paper:#fff;--theme-accent:#d7be8d;--theme-soft:#eaf0e9;--theme-text:#24372d;--theme-muted:#59695e}
html[data-theme="national"]{--theme-main:#375c77;--theme-dark:#243e55;--theme-page:#f6f8fa;--theme-paper:#fff;--theme-accent:#c8b883;--theme-soft:#e7edf3;--theme-text:#2a3e52;--theme-muted:#576c7d}
html[data-mode="light"]{color-scheme:light;--button-text:#fff}
html[data-mode="dark"]{color-scheme:dark;--theme-main:#b7d3c3;--theme-dark:#101c17;--theme-page:#101713;--theme-paper:#19231d;--theme-accent:#d7c18d;--theme-soft:#243329;--theme-text:#eef3ee;--theme-muted:#b5c2b7;--line:#3a4b40;--hero-surface:#243329;--hero-text:#f3f5ee;--hero-secondary:#c2cec1;--hero-button:#c6d8bd;--hero-button-text:#17251b;--button-text:#17251b;--brand-mark-bg:#b7d3c3;--brand-mark-heart:#1d372b}
html[data-mode="dark"][data-theme="halloween"]{--theme-main:#d7bce6;--theme-accent:#e7b58a;--theme-page:#18131d;--theme-paper:#231c29;--theme-soft:#302339;--line:#51415b;--hero-surface:#302339;--hero-button:#e7b58a;--hero-button-text:#2b1835;--button-text:#2b1835}
html[data-mode="dark"][data-theme="diwali"]{--theme-main:#dfc0e9;--theme-accent:#e5c185;--theme-page:#19131d;--theme-paper:#251d2b;--theme-soft:#34283e;--line:#54415e;--hero-surface:#34283e;--hero-button:#e5c185;--hero-button-text:#2c1938;--button-text:#2c1938}
html[data-mode="dark"][data-theme="ramadan"],html[data-mode="dark"][data-theme="newyear"],html[data-mode="dark"][data-theme="national"]{--theme-main:#bccdef;--theme-page:#121823;--theme-paper:#1b2533;--theme-soft:#28344a;--line:#40516a;--hero-surface:#28344a;--hero-secondary:#c8d2e5;--hero-button:#dfc58f;--hero-button-text:#1b2940;--button-text:#1b2940}
html[data-mode="dark"][data-theme="eid"],html[data-mode="dark"][data-theme="christmas"]{--theme-main:#b6d7bd;--theme-page:#101b16;--theme-paper:#1a2921;--theme-soft:#273c2e;--line:#435a4b;--hero-surface:#273c2e;--hero-button:#dfc58f;--hero-button-text:#1b3021;--button-text:#1b3021}
html[data-mode="dark"][data-theme="lunar"],html[data-mode="dark"][data-theme="valentine"]{--theme-main:#edc0c7;--theme-page:#21171a;--theme-paper:#2e2228;--theme-soft:#3e2c35;--line:#664854;--hero-surface:#3e2c35;--hero-button:#e8c18e;--hero-button-text:#351e28;--button-text:#351e28}
html[data-mode="dark"][data-theme="birthday"]{--theme-main:#dcc0ed;--theme-page:#1b1521;--theme-paper:#281e31;--theme-soft:#382b44;--line:#594269;--hero-surface:#382b44;--hero-button:#e5cba9;--hero-button-text:#32223d;--button-text:#32223d}
html[data-mode="dark"] .button.primary,html[data-mode="dark"] .header-actions .header-room,html[data-mode="dark"] .category-tab.active,html[data-mode="dark"] .sidebar .sidebar-invite .button,html[data-mode="dark"] .zen-submit{background:var(--hero-button);color:var(--hero-button-text);border-color:var(--hero-button)}
html[data-mode="dark"] .button.primary:hover,html[data-mode="dark"] .header-actions .header-room:hover,html[data-mode="dark"] .category-tab.active:hover{background:var(--hero-button)!important;color:var(--hero-button-text)!important;filter:brightness(1.08)}
html[data-mode="dark"] .zen-letter.selected,html[data-mode="dark"] .zen-letter.tracing{background:var(--hero-button);border-color:var(--hero-button);color:var(--hero-button-text)}
html[data-mode="dark"] .game-hint,html[data-mode="dark"] .game-status,html[data-mode="dark"] .game-heading p,html[data-mode="dark"] .game-content>p{color:var(--theme-muted)}
html[data-mode="dark"] .tile,html[data-mode="dark"] .entry-form input,html[data-mode="dark"] .entry-form textarea,html[data-mode="dark"] .cross-cell input,html[data-mode="dark"] .sudoku input{background:var(--theme-paper);color:var(--theme-text);border-color:var(--line)}
html[data-mode="dark"] .live-play-status{background:var(--theme-soft);color:var(--theme-text);border-color:var(--line)}
html[data-mode="dark"] .word-cell,html[data-mode="dark"] .word-slots>span{border-color:var(--line);background:var(--theme-paper);color:var(--theme-text)}
html[data-mode="dark"] .word-cell.correct{background:#2c714e;color:#fff}html[data-mode="dark"] .word-cell.present{background:#8b6a25;color:#fff}html[data-mode="dark"] .word-cell.absent{background:#414b46;color:#fff}
html[data-mode="dark"] .memory-board .tile.matched{background:#325d43;color:#fff}html[data-mode="dark"] .memory-board .tile.faceup{background:var(--theme-soft);color:var(--theme-main)}
html[data-mode="dark"] .key{background:var(--theme-soft);color:var(--theme-text);border-color:var(--line)}html[data-mode="dark"] .key.hit{background:#2c714e;color:#fff}html[data-mode="dark"] .key.miss{background:#404c45;color:#fff}
html[data-mode="dark"] .turn-pill,html[data-mode="dark"] .pass-card,html[data-mode="dark"] .prompt-card,html[data-mode="dark"] .duo-reveal>div,html[data-mode="dark"] .story-paper,html[data-mode="dark"] .shared-list .list-item{background:var(--theme-soft);border-color:var(--line);color:var(--theme-text);box-shadow:none}
html[data-mode="dark"] .pass-card p,html[data-mode="dark"] .prompt-title,html[data-mode="dark"] .prompt-card h3,html[data-mode="dark"] .story-line p{color:var(--theme-text)}
html[data-mode="dark"] .answer-options .option,html[data-mode="dark"] .choice-options .option{background:var(--theme-soft);color:var(--theme-text);border-color:var(--line)}
html[data-mode="dark"] .answer-options .option.correct{background:#265b3d;color:#fff}html[data-mode="dark"] .answer-options .option.incorrect{background:#6d333c;color:#fff}
html[data-mode="dark"] .checker-token{box-shadow:inset 0 1px 3px #fff5,0 3px 5px #0004}
html[data-mode="dark"] .competition-board{--checker-dark:#526558;--checker-light:#c7cec1}.connection-avatar{background:var(--hero-button);color:var(--hero-button-text)}
html[data-mode="dark"] .public-footer,html[data-mode="dark"] body>footer{border-color:var(--line)}
html[data-mode="dark"] input::placeholder,html[data-mode="dark"] textarea::placeholder{color:#a4b2a8;opacity:1}
/* Static editorial/campaign pages follow the same automatic time appearance. */
html[data-mode="dark"] body>main>section:not(.hero):not(.lower),html[data-mode="dark"] .challenge,html[data-mode="dark"] .challenge .inner{background:var(--theme-paper);color:var(--theme-text);border-color:var(--line)}
html[data-mode="dark"] .challenge h3,html[data-mode="dark"] .challenge p,html[data-mode="dark"] .section-head h2,html[data-mode="dark"] .section-head p{color:var(--theme-text)}
html[data-mode="dark"] .challenge .complete{background:var(--theme-soft);color:var(--theme-text);border-color:var(--line)}
html[data-mode="dark"] .duemello-brand-logo{--brand-mark-bg:var(--theme-dark);--brand-mark-heart:var(--theme-accent);color:var(--theme-text)}
html[data-mode="dark"] .smart-controls>label,html[data-mode="dark"] .smart-message{color:var(--theme-muted)}
html[data-mode="dark"] .smart-pick>strong{color:var(--theme-text)}
html[data-mode="dark"] .smart-pick>span:not(.smart-pick-number){color:var(--theme-muted)}
html[data-mode="dark"] .smart-pick>small>b{color:var(--theme-main)}
html[data-mode="dark"] .play-heading>.button.quiet{background:var(--theme-paper);color:var(--theme-main)}
html[data-mode="dark"] .game-message{background:var(--theme-soft);color:var(--theme-text)}
html[data-mode="dark"] [data-action="bond-pass"],html[data-mode="dark"] .bond-footnote{color:var(--theme-muted)}

}

@layer legacy{
/* Original physical event objects. Complete still assets remain at
   /art/events/<event>.svg. Base/detail layers share a 360 x 280 canvas.
   Existing markup: <span class="event-decoration event-decoration--hero"
   aria-hidden="true"></span>. Variants: hero, room, card, ribbon.
   Motion settles within 4.2 seconds, never loops and never affects controls.
   Hooks: html[data-event-motion="paused"|"off"]. Seasons/default stay clear. */
:root{--event-prop-image:none;--event-prop-base-image:none;--event-prop-detail-image:none;--event-detail-origin:68% 62%;--event-detail-duration:1.4s;--event-detail-animation:event-paper-arrive}
html[data-event-props="christmas"]{--event-prop-image:url('/art/events/christmas.svg');--event-prop-base-image:url('/art/events/christmas-base.svg');--event-prop-detail-image:url('/art/events/christmas-detail.svg');--event-detail-origin:73.9% 33.2%;--event-detail-animation:event-hanging-settle;--event-detail-duration:4.2s}
html[data-event-props="halloween"]{--event-prop-image:url('/art/events/halloween.svg');--event-prop-base-image:url('/art/events/halloween-base.svg');--event-prop-detail-image:url('/art/events/halloween-detail.svg');--event-detail-origin:66.9% 11.4%;--event-detail-animation:event-hanging-settle;--event-detail-duration:4.2s}
html[data-event-props="eid"]{--event-prop-image:url('/art/events/eid.svg');--event-prop-base-image:url('/art/events/eid-base.svg');--event-prop-detail-image:url('/art/events/eid-detail.svg');--event-detail-origin:70.3% 13.9%;--event-detail-animation:event-hanging-settle;--event-detail-duration:4.2s}
html[data-event-props="ramadan"]{--event-prop-image:url('/art/events/ramadan.svg');--event-prop-base-image:url('/art/events/ramadan-base.svg');--event-prop-detail-image:url('/art/events/ramadan-detail.svg');--event-detail-origin:70.3% 13.9%;--event-detail-animation:event-hanging-settle;--event-detail-duration:4.2s}
html[data-event-props="diwali"]{--event-prop-image:url('/art/events/diwali.svg');--event-prop-base-image:url('/art/events/diwali-base.svg');--event-prop-detail-image:url('/art/events/diwali-detail.svg');--event-detail-origin:68% 70%;--event-detail-animation:event-flame-settle;--event-detail-duration:2.4s}
html[data-event-props="lunar"]{--event-prop-image:url('/art/events/lunar.svg');--event-prop-base-image:url('/art/events/lunar-base.svg');--event-prop-detail-image:url('/art/events/lunar-detail.svg');--event-detail-origin:69.4% 15.4%;--event-detail-animation:event-hanging-settle;--event-detail-duration:4.2s}
html[data-event-props="easter"]{--event-prop-image:url('/art/events/easter.svg');--event-prop-base-image:url('/art/events/easter-base.svg');--event-prop-detail-image:url('/art/events/easter-detail.svg');--event-detail-origin:68% 70%;--event-detail-animation:event-paper-arrive;--event-detail-duration:1.4s}
html[data-event-props="valentine"]{--event-prop-image:url('/art/events/valentine.svg');--event-prop-base-image:url('/art/events/valentine-base.svg');--event-prop-detail-image:url('/art/events/valentine-detail.svg');--event-detail-origin:68.3% 28.9%;--event-detail-animation:event-hanging-settle;--event-detail-duration:4.2s}
html[data-event-props="newyear"]{--event-prop-image:url('/art/events/newyear.svg');--event-prop-base-image:url('/art/events/newyear-base.svg');--event-prop-detail-image:url('/art/events/newyear-detail.svg');--event-detail-origin:69.2% 16.1%;--event-detail-animation:event-hanging-settle;--event-detail-duration:4.2s}
html[data-event-props="birthday"]{--event-prop-image:url('/art/events/birthday.svg');--event-prop-base-image:url('/art/events/birthday-base.svg');--event-prop-detail-image:url('/art/events/birthday-detail.svg');--event-detail-origin:68% 70%;--event-detail-animation:event-fabric-settle;--event-detail-duration:2.2s}
html[data-event-props="national"]{--event-prop-image:url('/art/events/national.svg');--event-prop-base-image:url('/art/events/national-base.svg');--event-prop-detail-image:url('/art/events/national-detail.svg');--event-detail-origin:68% 70%;--event-detail-animation:event-fabric-settle;--event-detail-duration:2.2s}
.event-decorated{position:relative;isolation:isolate}
.event-decoration{position:absolute;display:none;pointer-events:none;user-select:none;background:none;background-size:contain;background-position:right top;background-repeat:no-repeat;z-index:0;opacity:.98;contain:layout paint}
.event-decoration::before,.event-decoration::after{content:"";position:absolute;inset:0;pointer-events:none;background-repeat:no-repeat;background-size:inherit;background-position:inherit;transform-origin:var(--event-detail-origin)}
.event-decoration::before{background-image:var(--event-prop-base-image)}
.event-decoration::after{background-image:var(--event-prop-detail-image)}
html:is([data-event-props="christmas"],[data-event-props="halloween"],[data-event-props="eid"],[data-event-props="ramadan"],[data-event-props="diwali"],[data-event-props="lunar"],[data-event-props="easter"],[data-event-props="valentine"],[data-event-props="newyear"],[data-event-props="birthday"],[data-event-props="national"]) .event-decoration{display:block}
.event-decoration--hero{width:clamp(156px,21vw,254px);height:198px;right:-12px;top:-16px}
.event-decoration--room{width:180px;height:140px;right:2px;top:-12px;opacity:.9}
.event-decoration--card{width:170px;height:134px;right:0;top:-10px}
.event-decoration--ribbon{position:relative;inset:auto;flex:0 0 76px;width:76px;height:58px;margin-inline-start:auto;background-size:90px 70px;background-position:right center}
.event-decoration-content{position:relative;z-index:1}
html[data-mode="dark"] .event-decoration{filter:brightness(1.12) saturate(.92)}
/* A reserved illustration row keeps objects clear of game cards and actions. */
html:is([data-event-props="christmas"],[data-event-props="halloween"],[data-event-props="eid"],[data-event-props="ramadan"],[data-event-props="diwali"],[data-event-props="lunar"],[data-event-props="easter"],[data-event-props="valentine"],[data-event-props="newyear"],[data-event-props="birthday"],[data-event-props="national"]) .welcome{grid-template-areas:"copy ornament" "copy preview";row-gap:4px}
html:is([data-event-props="christmas"],[data-event-props="halloween"],[data-event-props="eid"],[data-event-props="ramadan"],[data-event-props="diwali"],[data-event-props="lunar"],[data-event-props="easter"],[data-event-props="valentine"],[data-event-props="newyear"],[data-event-props="birthday"],[data-event-props="national"]) .welcome>.welcome-copy{grid-area:copy}
html:is([data-event-props="christmas"],[data-event-props="halloween"],[data-event-props="eid"],[data-event-props="ramadan"],[data-event-props="diwali"],[data-event-props="lunar"],[data-event-props="easter"],[data-event-props="valentine"],[data-event-props="newyear"],[data-event-props="birthday"],[data-event-props="national"]) .welcome>.hero-showcase{grid-area:preview}
html:is([data-event-props="christmas"],[data-event-props="halloween"],[data-event-props="eid"],[data-event-props="ramadan"],[data-event-props="diwali"],[data-event-props="lunar"],[data-event-props="easter"],[data-event-props="valentine"],[data-event-props="newyear"],[data-event-props="birthday"],[data-event-props="national"]) .welcome>.event-decoration--hero{grid-area:ornament;position:relative;inset:auto;justify-self:end;align-self:end;width:230px;height:142px;margin-top:-12px;z-index:0}
.duemello-brand-logo{--brand-mark-bg:var(--theme-main,#244b43);--brand-mark-heart:var(--theme-accent,#f4d580);display:inline-block;vertical-align:middle;flex-shrink:0;width:auto;height:34px;max-width:100%;color:var(--theme-text,#244b43)}
.duemello-brand-logo--mark{height:38px;aspect-ratio:1}
.event-ribbon{display:flex;align-items:center;justify-content:center;gap:12px;position:relative;isolation:isolate;overflow:hidden;padding:10px 25px;background:var(--theme-soft);border-bottom:1px solid var(--line);color:var(--theme-main);font:500 .7rem/1.5 Inter,"Segoe UI",Arial,sans-serif}
.event-ribbon strong{font-weight:600}.event-ribbon small{color:var(--theme-muted);font-size:.65rem}.event-ribbon .event-decoration--ribbon{width:95px;right:25px;opacity:.9}
body>header:not(.app-header) a .duemello-brand-logo{width:160px;height:auto;display:block}
@media(max-width:760px){
  .event-ribbon{font-size:.64rem;padding:10px 18px;justify-content:flex-start}.event-ribbon small{font-size:.6rem}.event-ribbon .event-decoration--ribbon{right:5px;width:55px}.event-ribbon>span:not(.event-decoration){position:relative;z-index:1}
  html:is([data-event-props="christmas"],[data-event-props="halloween"],[data-event-props="eid"],[data-event-props="ramadan"],[data-event-props="diwali"],[data-event-props="lunar"],[data-event-props="easter"],[data-event-props="valentine"],[data-event-props="newyear"],[data-event-props="birthday"],[data-event-props="national"]) .welcome{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "ornament" "preview";row-gap:14px}
  html:is([data-event-props="christmas"],[data-event-props="halloween"],[data-event-props="eid"],[data-event-props="ramadan"],[data-event-props="diwali"],[data-event-props="lunar"],[data-event-props="easter"],[data-event-props="valentine"],[data-event-props="newyear"],[data-event-props="birthday"],[data-event-props="national"]) .welcome>.event-decoration--hero{width:220px;height:132px;margin-top:-4px}
}
@media(max-width:700px){.event-decoration--room{width:130px;height:104px;top:-7px;right:-5px}.event-decoration--card{width:128px;height:102px;top:0}.event-decoration--ribbon{flex-basis:60px;width:60px;height:48px;background-size:74px 58px}.duemello-brand-logo{height:30px}.duemello-brand-logo--mark{height:34px}}
@media(max-width:580px){.event-ribbon small{display:none}
  /* The pine bough clears the room heading; only transparent canvas is clipped. */
  html[data-event-props="christmas"] .connection-panel .event-decoration--room{right:-5px}
}
@media(prefers-reduced-motion:no-preference){
  .event-decoration::before{animation:event-base-arrive .7s ease-out both}
  .event-decoration::after{animation:var(--event-detail-animation) var(--event-detail-duration) cubic-bezier(.2,.65,.3,1) both}
  @keyframes event-base-arrive{from{opacity:0}to{opacity:1}}
  @keyframes event-hanging-settle{0%{transform:rotate(-2.4deg);opacity:0}14%{opacity:1}40%{transform:rotate(1.15deg)}64%{transform:rotate(-.55deg)}83%{transform:rotate(.18deg)}100%{transform:rotate(0);opacity:1}}
  @keyframes event-paper-arrive{from{transform:translateY(4px);opacity:0}to{transform:translateY(0);opacity:1}}
  @keyframes event-fabric-settle{0%{transform:translateY(3px) rotate(-.6deg);opacity:0}30%{opacity:1}65%{transform:translateY(0) rotate(.2deg)}100%{transform:translateY(0) rotate(0);opacity:1}}
  @keyframes event-flame-settle{0%{opacity:.4;transform:translateY(1px)}30%{opacity:1;transform:translateY(0)}55%{opacity:.86}100%{opacity:1;transform:translateY(0)}}
}
html[data-event-motion="paused"] .event-decoration::before,html[data-event-motion="paused"] .event-decoration::after{animation-play-state:paused}
html[data-event-motion="off"] .event-decoration::before,html[data-event-motion="off"] .event-decoration::after{animation:none!important;transform:none;opacity:1}
@media(prefers-reduced-motion:reduce){.event-decoration,.event-decoration::before,.event-decoration::after{animation:none!important;transition:none!important;transform:none;opacity:1}}
@media print{.event-decoration{display:none!important}}

}

@layer legacy{
/* Duemello connection: one recognisable brand, local event and time appearance. */
.connection-dialog{width:900px;max-width:calc(100vw - 30px);padding:0;border:1px solid var(--line);border-radius:15px;overflow:auto;max-height:calc(100dvh - 30px);background:var(--theme-paper);color:var(--theme-text)}
.connection-dialog>.dialog-top{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 20px;border-bottom:1px solid var(--line);background:var(--theme-paper);margin:0}.connection-dialog>.dialog-top .tiny-eyebrow{font-size:.59rem;letter-spacing:.12em;color:var(--theme-muted)}.connection-dialog .dialog-top .icon-button{width:34px;height:34px;min-width:34px;min-height:34px;border:0;background:transparent;color:var(--theme-muted)}
.connection-screen{display:grid;grid-template-columns:1fr 1.12fr;min-height:515px}.connection-panel{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;padding:35px 30px 27px;background:var(--theme-soft);border-right:1px solid var(--line)}
.connection-brand{position:relative;z-index:2;color:var(--theme-text);margin:0 0 39px;max-width:185px}.connection-brand svg{display:block;width:100%;height:auto}
.connection-eyebrow{font-size:.58rem;letter-spacing:.12em;font-weight:650;color:var(--theme-main);position:relative;z-index:1;margin-bottom:13px}.connection-panel h2{font-size:2rem;line-height:1.13;letter-spacing:-.05em;font-weight:650;margin:0 0 17px;position:relative;z-index:1;max-width:290px;color:var(--theme-text)}.connection-panel>p{font-size:.8rem;line-height:1.8;color:var(--theme-muted);margin:0;max-width:290px;position:relative;z-index:1}
.connection-people{display:flex;align-items:center;justify-content:center;gap:20px;padding:29px 0;position:relative;z-index:1}.connection-people>div{display:flex;align-items:center;flex-direction:column;gap:7px;min-width:70px;max-width:100px;text-align:center}.connection-people strong{font-size:.76rem;font-weight:600;overflow-wrap:anywhere;line-height:1.4}.connection-people small{font-size:.61rem;color:var(--theme-muted)}.connection-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;font-size:1rem;font-weight:600;background:var(--theme-main);color:var(--button-text,#fff);border:1px solid transparent}.connection-avatar.guest{background:var(--theme-paper);color:var(--theme-main);border-color:var(--line)}.connection-line{display:flex;align-items:center;color:var(--theme-main);opacity:.7}.connection-line:before,.connection-line:after{content:'';width:15px;height:1px;background:var(--theme-main);opacity:.35}.connection-line .icon{width:18px;height:18px;margin:0 6px}
.connection-local{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:auto;color:var(--theme-main);position:relative;z-index:1}.connection-local>.icon{width:19px;height:19px}.connection-local>span{font-size:.68rem;line-height:1.55;overflow-wrap:anywhere}.connection-local small{display:block;color:var(--theme-muted);font-size:.59rem;margin-top:2px}
.connection-controls{padding:30px;min-width:0;display:flex;flex-direction:column;background:var(--theme-paper)}.connection-tabs{display:flex;padding:4px;margin-bottom:27px;gap:5px;background:var(--theme-soft);border:1px solid var(--line);border-radius:9px}.connection-tabs button{flex:1;border:0;min-height:41px;padding:9px;font-size:.75rem;font-weight:600;border-radius:6px;background:transparent;color:var(--theme-muted)}.connection-tabs button[aria-selected=true]{background:var(--theme-paper);color:var(--theme-main);box-shadow:0 1px 4px #00000008}.connection-controls h3{font-size:1.35rem;font-weight:650;line-height:1.3;letter-spacing:-.035em;margin:0 0 12px;color:var(--theme-text)}.connection-controls p{font-size:.78rem;color:var(--theme-muted);line-height:1.75;margin:0 0 20px}.connection-controls label{font-size:.72rem;font-weight:600;color:var(--theme-text)}.connection-controls input{display:block;min-height:46px;padding:11px 12px;background:var(--theme-paper);color:var(--theme-text);border:1px solid var(--line);border-radius:7px;margin-top:7px;width:100%;font-size:.8rem}.connection-controls .public-room-fields{margin:20px 0 22px;gap:12px;grid-template-columns:1fr 1fr}.connection-controls #join-room-form{display:grid;gap:17px;margin-top:21px}.connection-submit{width:100%;justify-content:space-between;margin-top:6px;font-size:.78rem;min-height:46px}.connection-controls #join-room-form .connection-submit{margin-top:4px}.connection-ready-note{display:flex;align-items:flex-start;gap:9px;margin-top:22px;color:var(--theme-main)}.connection-ready-note>.icon{width:16px;height:16px;margin-top:3px}.connection-ready-note p{font-size:.67rem;line-height:1.75;margin:0}.connection-methods{border-top:1px solid var(--line);padding-top:20px;margin-top:auto}.connection-status{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;background:var(--theme-soft);border:1px solid var(--line);padding:7px 11px;margin-bottom:20px;border-radius:6px;font-size:.65rem;font-weight:600;color:var(--theme-main)}.connection-status i{display:block;width:6px;height:6px;background:var(--theme-muted);border-radius:50%}.connection-status.is-connected i{background:#3b9c68}.connection-controls .invite-label{margin-top:1px}.connection-controls .invite-box{margin:0 0 15px;padding:0;border:0;background:transparent}.connection-controls #invite-url{margin-top:7px;font-size:.7rem}.connection-controls .room-options{gap:8px;display:flex;align-items:stretch;flex-wrap:wrap;margin:0}.connection-controls .room-options .button{font-size:.73rem;gap:8px}.connection-birthday{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:20px;background:var(--theme-soft)}.connection-birthday>.icon{width:22px;height:22px;color:var(--theme-main)}.connection-birthday>div{flex:1}.connection-birthday strong{font-size:.7rem;font-weight:600;display:block;line-height:1.5}.connection-birthday p{font-size:.62rem;line-height:1.6;margin:3px 0 0}.connection-birthday .button{font-size:.65rem;padding:8px;min-height:36px}.connection-end-actions{display:flex;align-items:center;gap:14px;margin:18px 0 22px}.connection-end-actions .button{font-size:.66rem;padding:7px 0;background:transparent;border:0;min-height:30px;text-decoration:underline;text-underline-offset:4px}.connection-play{width:100%;justify-content:space-between;font-size:.75rem;margin-top:auto}.connection-controls .room-error{margin:15px 0 0;padding:12px;border-radius:7px;font-size:.75rem;background:var(--theme-soft);color:var(--theme-text);border:1px solid var(--line)}
.connection-panel .event-decoration--room{top:-3px;right:-25px;width:125px;height:125px;opacity:.8}
.local-appearance{display:flex;align-items:center;gap:7px;max-width:180px;color:var(--theme-muted);font-size:.62rem;font-weight:500;line-height:1.5}.local-appearance .icon{width:15px;height:15px}.local-appearance>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.app-header .wordmark [data-brand-logo]{display:block;line-height:0;max-width:185px;width:185px}.app-header .wordmark [data-brand-logo]>svg{display:block;width:100%;height:auto}.brand-logo .brand-wordmark{fill:currentColor}
.event-ribbon{display:flex;align-items:center;justify-content:center;gap:12px;position:relative;isolation:isolate;overflow:hidden;padding:10px 25px;background:var(--theme-soft);border-bottom:1px solid var(--line);color:var(--theme-main);font-size:.7rem;line-height:1.5}.event-ribbon strong{font-weight:600}.event-ribbon small{color:var(--theme-muted);font-size:.65rem}.event-ribbon .event-decoration--ribbon{width:95px;right:25px;opacity:.7}.welcome>.event-decoration--hero{right:12px;top:12px;width:110px;height:105px;z-index:1}.welcome-copy,.hero-showcase{z-index:2}
@media(max-width:1000px){.app-header .wordmark [data-brand-logo]{width:160px;max-width:160px}.local-appearance{max-width:145px;font-size:.59rem}.connection-panel{padding:30px 25px}.connection-controls{padding:28px 25px}.connection-screen{grid-template-columns:1fr 1.12fr}}
@media(max-width:760px){.app-header .wordmark [data-brand-logo]{width:148px;max-width:148px}.local-appearance{display:none}.event-ribbon{font-size:.64rem;padding:10px 18px;justify-content:flex-start}.event-ribbon small{font-size:.6rem}.event-ribbon .event-decoration--ribbon{right:5px;width:55px}.event-ribbon>span:not(.event-decoration){position:relative;z-index:1}.connection-dialog{width:700px}.connection-panel h2{font-size:1.8rem}.connection-brand{max-width:165px;margin-bottom:30px}.connection-controls{padding:27px 23px}.connection-panel{padding:28px 23px}.connection-people{gap:10px}.connection-line:before,.connection-line:after{width:9px}.connection-line .icon{margin:0 4px}.connection-people>div{min-width:60px}.connection-controls .public-room-fields{grid-template-columns:1fr;gap:16px}.connection-controls .room-options .button{font-size:.68rem;padding:10px 12px}.welcome>.event-decoration--hero{right:6px;top:6px;width:85px;height:85px}}
@media(max-width:580px){.connection-dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.connection-dialog>.dialog-top{padding:9px 15px}.connection-screen{grid-template-columns:1fr;min-height:0}.connection-panel{padding:24px 23px 20px;border-right:0;border-bottom:1px solid var(--line)}.connection-brand{width:150px;margin:0 0 22px}.connection-panel h2{font-size:1.85rem;max-width:280px;margin-bottom:12px}.connection-panel>p{font-size:.77rem;max-width:340px}.connection-eyebrow{font-size:.54rem;margin-bottom:10px}.connection-people{position:absolute;right:22px;top:28px;padding:0;gap:7px}.connection-people>div{min-width:0;width:32px}.connection-people strong,.connection-people small,.connection-line{display:none}.connection-avatar{width:31px;height:31px;font-size:.66rem}.connection-local{margin-top:19px;padding-top:14px;gap:8px}.connection-local>span{font-size:.63rem}.connection-local small{font-size:.56rem}.connection-controls{padding:23px}.connection-controls h3{font-size:1.28rem}.connection-controls p{font-size:.76rem}.connection-tabs{margin-bottom:22px}.connection-tabs button{font-size:.72rem;min-height:42px}.connection-controls .public-room-fields{grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.connection-methods{margin-top:21px;padding-top:17px}.connection-ready-note p{font-size:.64rem}.connection-controls .room-options .button{font-size:.72rem;padding:11px 13px}.connection-panel .event-decoration--room{right:3px;top:90px;width:95px;height:95px;opacity:.55}.connection-status{font-size:.65rem;margin-bottom:18px}.connection-end-actions{margin:15px 0}.event-ribbon small{display:none}}
@media(max-width:380px){.connection-panel,.connection-controls{padding-left:18px;padding-right:18px}.connection-brand{width:137px}.connection-panel h2{font-size:1.7rem}.connection-people{right:18px}.connection-controls .public-room-fields{grid-template-columns:1fr}.app-header .wordmark [data-brand-logo]{width:132px;max-width:132px}}
@media(prefers-reduced-motion:reduce){.connection-dialog *{animation:none!important;transition:none!important}}
@media(max-width:760px){.app-header .ambience-toggle>span{display:none}.app-header .ambience-toggle{width:38px;min-width:38px;padding:8px}.app-header .ambience-settings{min-width:32px;padding:7px}.app-header .ambience-controls{gap:3px}.app-header .header-actions{gap:7px}}
@media(max-width:480px){.app-header .wordmark [data-brand-logo]{width:138px;max-width:138px}.app-header .header-room{font-size:.63rem;padding:9px}.app-header .ambience-toggle{width:34px;min-width:34px}.app-header .ambience-settings{min-width:29px}.app-header .header-actions{gap:5px}}
.app-dialog .birthday-card-options input{min-height:16px;height:16px;max-height:16px;width:16px;min-width:16px;margin:0;display:inline-block}
@media(max-width:600px){.connection-controls input,.app-dialog input:not([type=radio]):not([type=range]),.app-dialog textarea{font-size:16px}}
body>header:not(.app-header) a .duemello-brand-logo{width:160px;height:auto;display:block}
/* Recovery and sharing remain visible until the next intentional action. */
.connection-controls .connection-feedback{font-size:.73rem;line-height:1.6;color:var(--theme-main);min-height:1.6em;margin:9px 0 0;overflow-wrap:anywhere}
.connection-controls .connection-small{font-size:.7rem;line-height:1.7;color:var(--theme-muted);margin:6px 0 18px}
.connection-controls .room-error{margin:0 0 18px}
.connection-controls .connection-confirm{border:1px solid var(--line);border-radius:10px;padding:16px;margin:15px 0 20px;background:var(--theme-soft)}
.connection-confirm strong{font-size:.85rem}.connection-confirm p{margin:10px 0 15px}.connection-confirm .room-options{flex-wrap:wrap}.connection-confirm a{white-space:normal}
.connection-controls[aria-busy=true]{cursor:progress}.connection-controls button:disabled{opacity:.65;cursor:progress}
.connection-end-actions .button{min-height:44px}.connection-end-actions{flex-wrap:wrap;margin-bottom:2px}.connection-tabs button{min-height:44px}
.connection-play{white-space:normal;text-align:left;gap:12px}.connection-play .icon{flex-shrink:0}.connection-controls .room-options{flex-wrap:wrap}
.recent-activities{margin:32px 0 38px;padding:26px;border:1px solid var(--line);border-radius:12px;background:var(--theme-paper)}
.recent-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:21px}.recent-heading h2{font-size:1.45rem;letter-spacing:-.035em;margin:7px 0 8px;color:var(--theme-text)}.recent-heading p{font-size:.78rem;margin:0;color:var(--theme-muted)}.recent-heading>.button{flex-shrink:0;font-size:.73rem;min-height:44px}
.recent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recent-card{display:flex;align-items:center;gap:12px;text-align:left;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--theme-soft);color:var(--theme-text);font:inherit;cursor:pointer;min-height:80px}.recent-card:hover{border-color:var(--theme-main)}.recent-card>span:nth-child(2){flex:1;min-width:0}.recent-card strong{display:block;font-size:.84rem;overflow-wrap:anywhere}.recent-card small{display:block;margin-top:5px;color:var(--theme-muted);font-size:.71rem}.recent-card>.icon{width:16px;flex-shrink:0}.recent-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;color:var(--theme-main)}.recent-icon .icon{width:24px;height:24px}
@media(max-width:580px){.recent-activities{padding:20px;margin:26px 0}.recent-heading{align-items:flex-start;flex-direction:column;gap:6px}.recent-heading>.button{padding-left:0}.recent-grid{grid-template-columns:1fr}.recent-heading h2{font-size:1.3rem}}
/* Accent foreground changes with the local day/night palette. */
.toast{background:var(--forest);color:var(--button-text,#fff)}
.connection-controls .connection-storage-note{margin:18px 0 0;padding:13px 15px;border:1px solid var(--line);border-radius:8px;background:var(--theme-soft);color:var(--theme-text);font-size:.74rem;line-height:1.7}
.connection-screen .button:not(.primary):hover:not(:disabled){background:var(--theme-soft);color:var(--theme-text)}

/* The lobby keeps both identities and the evidence for their presence visible. */
.connection-screen{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}
.connection-dialog>.dialog-top{position:sticky;top:0;z-index:5}
.connection-panel,.connection-controls{min-width:0}
.connection-brand{margin-bottom:25px}
.connection-people{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:0;margin:24px 0;position:relative}
.connection-people .connection-person{display:flex;flex-direction:row;align-items:center;gap:12px;min-width:0;max-width:none;width:100%;text-align:left;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--theme-paper)}
.connection-person .connection-avatar{width:39px;height:39px;flex-shrink:0;font-size:.86rem}
.connection-person-copy{min-width:0;flex:1}
.connection-people .connection-person-copy strong{display:block;font-size:.8rem;line-height:1.45;overflow-wrap:anywhere}
.connection-people .connection-person-copy small{display:block;font-size:.64rem;line-height:1.5;margin:2px 0 5px;color:var(--theme-muted)}
.connection-person-status{display:flex;align-items:baseline;gap:6px;font-size:.65rem;line-height:1.5;color:var(--theme-text);overflow-wrap:anywhere}
.connection-person-status i{width:6px;height:6px;flex:0 0 6px;align-self:center;border-radius:50%;background:var(--theme-muted)}
.connection-person[data-presence=here] .connection-person-status i,.connection-person[data-presence=connected] .connection-person-status i{background:var(--theme-main)}
.connection-person[data-presence=recent] .connection-person-status i{background:transparent;border:1px solid var(--theme-main)}
.connection-person[data-presence=reconnecting] .connection-person-status i,.connection-person[data-presence=unconfirmed] .connection-person-status i{border:1px solid var(--theme-muted);background:transparent}
.connection-activity{display:grid;grid-template-columns:94px minmax(0,1fr);gap:13px;align-items:center;margin:0 0 23px;padding-top:20px;border-top:1px solid var(--line);position:relative;z-index:1}
.connection-activity-cover{min-width:0;border-radius:8px;overflow:hidden;align-self:start}
.connection-activity-cover .game-cover{display:block;width:100%;margin:0;border-radius:8px;aspect-ratio:8/5}
.connection-activity-cover img{display:block;width:100%;height:100%;object-fit:cover}
.connection-activity-copy{min-width:0}
.connection-activity .connection-eyebrow{display:block;font-size:.53rem;letter-spacing:.09em;margin:0 0 6px}
.connection-activity h3{font-size:.9rem;line-height:1.4;font-weight:650;letter-spacing:-.02em;margin:0 0 5px;color:var(--theme-text);overflow-wrap:anywhere}
.connection-activity p{font-size:.67rem;line-height:1.6;margin:0;color:var(--theme-muted)}
.connection-activity-time{display:flex;align-items:center;gap:5px;font-size:.62rem;color:var(--theme-muted);margin-top:7px}
.connection-activity-time .icon{width:13px;height:13px}
.connection-local{padding-top:17px}
.connection-controls .connection-status{margin-bottom:17px;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
.connection-status.is-connected i{background:var(--theme-main)}
.connection-status.is-interrupted{color:var(--theme-text);border-color:var(--theme-main)}
.connection-controls .connection-retry{margin:0 0 20px;align-self:flex-start}
.connection-controls .connection-invite-actions{gap:9px}
.connection-invite-actions>.button:first-child{flex:1;justify-content:center;min-height:47px}
.connection-invite-actions>.button:last-child{min-height:47px}
.connection-controls .connection-recovery-actions>.button:first-child{flex:1;justify-content:center;min-height:47px}
.connection-controls .connection-recovery-actions>.button:last-child{width:100%;justify-content:center}
.connection-controls .invite-label{font-size:.7rem}
.connection-controls #invite-url{min-width:0;text-overflow:ellipsis}
.connection-controls .connection-play{margin-top:13px;min-height:47px}
.connection-controls .connection-small{line-height:1.75}
.connection-screen button:focus-visible,.connection-screen input:focus-visible,.connection-screen a:focus-visible{outline:2px solid var(--theme-main);outline-offset:3px}
@media(max-width:1000px){.connection-screen{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}}
@media(max-width:580px){
 .connection-screen{grid-template-columns:minmax(0,1fr)}
 .connection-panel{padding-top:22px;padding-bottom:20px}
 .connection-brand{width:150px;margin:0 0 20px}
 .connection-panel h2{font-size:1.55rem;line-height:1.2;max-width:none;margin-bottom:10px}
 .connection-panel>p{font-size:.73rem;line-height:1.65}
 .connection-eyebrow{font-size:.54rem}
 .connection-people{position:relative;inset:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:19px 0}
 .connection-people .connection-person{flex-direction:column;align-items:flex-start;gap:8px;padding:11px;min-height:132px}
 .connection-person .connection-avatar{width:30px;height:30px;font-size:.73rem}
 .connection-people .connection-person-copy strong{font-size:.75rem}
 .connection-people .connection-person-copy small{font-size:.61rem;margin-bottom:4px}
 .connection-person-status{font-size:.61rem;gap:5px}
 .connection-activity{grid-template-columns:88px minmax(0,1fr);padding-top:16px;margin-bottom:18px}
 .connection-activity p{display:none}
 .connection-activity h3{font-size:.86rem}
 .connection-local{margin-top:0;padding-top:13px}
 .connection-local>span{font-size:.61rem}
 .connection-controls{padding-top:22px}
 .connection-controls .room-options .button{font-size:.72rem}
 .is-room-lobby .connection-brand{width:135px;margin-bottom:15px}
 .is-room-lobby .connection-panel>p{display:none}
 .is-room-lobby .connection-people{margin-top:16px;margin-bottom:16px}
 .is-room-lobby .connection-person{min-height:0}
 .is-room-lobby .connection-local small{display:none}
}
@media(max-width:380px){
 .connection-people .connection-person{padding:9px;min-height:0}
 .connection-person-status{font-size:.6rem}
 .connection-controls .connection-invite-actions>.button{padding-inline:10px}
 .connection-controls .connection-recovery-actions>.button{font-size:.7rem;white-space:normal}
}

}

@layer legacy{
.newspaper-entry{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 24px;color:#292822!important;background:#eee8da!important;border-block:4px double #756d5e;border-inline:1px solid #b2aa98;padding:24px 28px;margin:28px 0;text-decoration:none;box-shadow:0 3px 0 #b2aa9830}.newspaper-entry-label{grid-column:1/-1;font:700 9px/1.5 Inter,Arial,sans-serif;letter-spacing:.15em;color:#913e32}.newspaper-entry-title{font:700 clamp(27px,3.4vw,44px)/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.055em}.newspaper-entry-copy{grid-column:1;grid-row:3;font:14px/1.6 Georgia,'Times New Roman',serif}.newspaper-entry-action{grid-column:2;grid-row:2/4;font:600 12px/1.6 Inter,Arial,sans-serif;text-decoration:underline;text-underline-offset:5px}.newspaper-entry:hover{background:#f5efdf!important;box-shadow:0 4px 0 #b2aa9840}.newspaper-entry:focus-visible{outline:3px solid #245a69;outline-offset:4px}.app-header nav a.header-nav{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}@media(max-width:680px){.newspaper-entry{grid-template-columns:1fr;padding:20px;margin:22px 0;gap:7px}.newspaper-entry-title{font-size:32px}.newspaper-entry-copy{font-size:13px}.newspaper-entry-action{grid-column:1;grid-row:4;margin-top:6px}.newspaper-entry-label{font-size:8px}}
@media(max-width:480px){.app-header nav a.header-nav[href="/newspaper.html"]{display:none}}

}

@layer legacy{
.birthday-intro{--birthday-ink:#282538;--birthday-muted:#666071;--birthday-paper:#fffdf8;--birthday-panel:#f7f1e8;--birthday-accent:#6558c7;--birthday-action:#ffffff;color:var(--birthday-ink);background:var(--birthday-paper);border:1px solid #d9d4e5;padding:0;width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 28px);border-radius:26px;box-shadow:0 28px 100px #15102b45;overflow:auto;overscroll-behavior:contain}
.birthday-intro::backdrop{background:#121323a6;backdrop-filter:blur(9px)}
.birthday-intro[data-mode=dark]{--birthday-ink:#f7f3ff;--birthday-muted:#c9c1db;--birthday-paper:#1e1c2b;--birthday-panel:#292538;--birthday-accent:#bbafff;--birthday-action:#211b3c;border-color:#4b435f}
.birthday-intro-shell{position:relative;min-height:580px;padding:24px clamp(22px,6vw,60px) 48px;isolation:isolate;overflow:hidden}
.birthday-intro-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:2;gap:20px;margin-bottom:48px}
.birthday-brand{font-size:1.05rem;font-weight:750;letter-spacing:-.045em}
.birthday-skip{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:var(--birthday-panel);color:var(--birthday-ink);font:inherit;font-size:.8rem;font-weight:650;padding:10px 13px;border-radius:999px;min-height:44px;cursor:pointer}
.birthday-skip .icon{width:16px;height:16px}
.birthday-name-stage{text-align:center;position:relative;z-index:1;padding:22px 0 20px}
.birthday-kicker{font-size:.66rem;line-height:1.5;text-transform:uppercase;letter-spacing:.18em;font-weight:750;color:var(--birthday-accent);margin:0 0 19px}
.birthday-name-stage h2{margin:0;letter-spacing:-.055em;line-height:1.04;font-weight:650;color:var(--birthday-ink)}
.birthday-salutation{display:block;font-size:clamp(1.9rem,5.8vw,3.3rem);letter-spacing:-.05em}
.birthday-name{display:block;font-size:clamp(3.2rem,11vw,6.4rem);margin:12px 0 22px;overflow-wrap:anywhere;color:var(--birthday-accent);animation:birthday-name-reveal .75s cubic-bezier(.2,.75,.25,1) both}
.birthday-name-stage>p:not(.birthday-kicker){font-size:.96rem;line-height:1.7;max-width:360px;margin:0 auto 30px;color:var(--birthday-muted)}
.birthday-primary{background:var(--birthday-accent)!important;color:var(--birthday-action)!important;border-color:var(--birthday-accent)!important;border-radius:999px;min-height:48px;padding:12px 22px}
.birthday-primary:hover{filter:brightness(.96)}
.birthday-intro .event-decoration--card{position:absolute;inset:auto 18px 18px auto;width:150px;height:118px;z-index:0;pointer-events:none;opacity:.38;background:none}
.birthday-card{position:relative;z-index:1;text-align:center;border:1px solid color-mix(in srgb,var(--birthday-accent) 24%,transparent);background:var(--birthday-panel);border-radius:20px;padding:76px clamp(20px,5vw,50px) 32px;max-width:580px;margin:0 auto;box-shadow:0 14px 35px #211b3c0a;animation:birthday-card-reveal .5s ease both;outline-offset:5px}
.birthday-card h3{font-size:clamp(1.5rem,4.6vw,2.3rem);line-height:1.2;letter-spacing:-.04em;font-weight:600;margin:0 0 24px;color:var(--birthday-ink)}
.birthday-card h3 span{display:block;color:var(--birthday-accent);font-size:1.4em;line-height:1.18;overflow-wrap:anywhere;margin-top:6px}
.birthday-card-message{font-size:clamp(.95rem,2.4vw,1.05rem);color:var(--birthday-ink);line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-width:430px;margin:0 auto 24px}
.birthday-card-from{color:var(--birthday-muted);font-size:.9rem;margin:0 0 30px}
.birthday-card-from span{font-weight:700;overflow-wrap:anywhere}
.birthday-card-art{position:absolute;left:0;right:0;top:0;height:52px;overflow:hidden;border-radius:19px 19px 0 0;pointer-events:none}
.birthday-card-art span{display:block;position:absolute;width:8px;height:17px;left:24%;top:13px;transform:rotate(-25deg);border-radius:2px;background:#b9addf;box-shadow:74px 7px 0 #d8b994,152px -4px 0 #b9addf,238px 8px 0 #d8b994}
.birthday-card-art span:nth-child(2){width:8px;height:8px;left:12%;top:34px;border-radius:50%;background:#d8b994;box-shadow:116px -14px 0 #b9addf,228px 0 0 #d8b994,340px -18px 0 #b9addf}
.birthday-card-art span:nth-child(3){width:6px;height:13px;left:67%;top:27px;transform:rotate(32deg)}
.birthday-intro[data-card=ribbon]{--birthday-accent:#95603d}
.birthday-intro[data-card=ribbon][data-mode=dark]{--birthday-accent:#e4b68d}
.birthday-intro[data-card=ribbon] .birthday-card-art{background:linear-gradient(90deg,transparent calc(50% - 11px),#bb8757 calc(50% - 10px),#bb8757 calc(50% + 10px),transparent calc(50% + 11px))}
.birthday-intro[data-card=ribbon] .birthday-card-art span{width:54px;height:27px;border:5px solid #bb8757;background:transparent;border-radius:50% 50% 5px 50%;left:calc(50% - 51px);top:14px;transform:rotate(18deg);box-shadow:none}
.birthday-intro[data-card=ribbon] .birthday-card-art span:nth-child(2){left:calc(50% - 3px);transform:rotate(-18deg) scaleX(-1)}
.birthday-intro[data-card=ribbon] .birthday-card-art span:nth-child(3){display:none}
.birthday-intro[data-card=midnight]{--birthday-accent:#4b5b9d}
.birthday-intro[data-card=midnight][data-mode=dark]{--birthday-accent:#a7b8fa}
.birthday-intro[data-card=midnight] .birthday-card-art{background:#30365e;background-image:radial-gradient(circle at 15% 35%,#f3ddb0 0 1px,transparent 2px),radial-gradient(circle at 35% 65%,#f3ddb0 0 1px,transparent 2px),radial-gradient(circle at 65% 25%,#f3ddb0 0 1px,transparent 2px),radial-gradient(circle at 88% 70%,#f3ddb0 0 1px,transparent 2px)}
.birthday-intro[data-card=midnight] .birthday-card-art span{width:24px;height:24px;border-radius:50%;left:calc(50% - 12px);top:13px;transform:none;background:#f3ddb0;box-shadow:none}
.birthday-intro[data-card=midnight] .birthday-card-art span:nth-child(n+2){display:none}
.birthday-replay-button{font-size:.8rem;min-height:40px}
.birthday-card-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;border:0;padding:0;margin:0;min-width:0}
.birthday-card-options legend{font-size:.82rem;font-weight:650;margin-bottom:9px;padding:0}
.birthday-card-options label{position:relative;display:flex;align-items:center;gap:7px;padding:12px 10px;border:1px solid var(--line,#d8d5df);border-radius:12px;background:var(--theme-paper,#fffdf8);font-size:.8rem;cursor:pointer;min-height:48px}
.birthday-card-options label:has(input:checked){border-color:var(--theme-main,#6558c7);box-shadow:inset 0 0 0 1px var(--theme-main,#6558c7);background:var(--theme-soft,#f2effb)}
.birthday-card-options input{accent-color:var(--theme-main,#6558c7);padding:0;min-width:16px;width:16px;height:16px;flex-shrink:0}
.birthday-card-options label:has(input:focus-visible){outline:3px solid var(--theme-main,#6558c7);outline-offset:3px}
.automatic-context{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 16px!important;font-size:.76rem!important;max-width:1120px;margin:0 auto!important}
.automatic-context>span{display:inline-flex;align-items:center}.automatic-context .icon{width:18px;height:18px}
.automatic-context>p{margin:0!important;font-size:inherit!important}
.automatic-context-explanation{margin-left:auto;max-width:460px;position:relative}
.automatic-context-explanation summary{cursor:pointer;min-height:32px;display:flex;align-items:center;font-size:.73rem;text-decoration:underline;text-underline-offset:3px}
.automatic-context-explanation p{font-size:.76rem!important;line-height:1.6;position:absolute;right:0;z-index:5;min-width:min(330px,calc(100vw - 48px));padding:14px;border:1px solid var(--line,#d8d5df);border-radius:12px;background:var(--theme-paper,#fffdf8);color:var(--theme-text,inherit);box-shadow:0 8px 20px #1713241a}
@keyframes birthday-name-reveal{from{opacity:0;transform:translateY(20px);filter:blur(6px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes birthday-card-reveal{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:520px){.birthday-intro{border-radius:20px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.birthday-intro-shell{padding:18px 20px 28px;min-height:540px}.birthday-intro-top{margin-bottom:36px}.birthday-name-stage{padding-top:25px}.birthday-name{font-size:clamp(3rem,13vw,4.5rem)}.birthday-card{padding:73px 20px 27px}.birthday-card-message{font-size:.94rem}.birthday-card .birthday-primary{width:100%;font-size:.82rem}.birthday-card-options{gap:6px}.birthday-card-options label{font-size:.72rem;padding:11px 7px;gap:5px}.automatic-context-explanation{margin-left:0}.automatic-context-explanation p{left:0;right:auto}}
@media(prefers-reduced-motion:reduce){.birthday-intro *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.birthday-name{filter:none}}
.birthday-brand{display:inline-flex;align-items:center;width:152px}.birthday-brand .duemello-brand-logo{width:152px;height:auto;display:block}

/* Free physical-paper card designs. Existing card identifiers and treatments stay compatible. */
.birthday-intro[data-card=botanical]{--birthday-ink:#244b43;--birthday-muted:#59675c;--birthday-paper:#fffdf6;--birthday-panel:#f1f3e9;--birthday-accent:#365f4c;--birthday-action:#fff;--event-prop-base-image:url('/art/birthday/botanical.svg');--event-prop-detail-image:none}
.birthday-intro[data-card=botanical][data-mode=dark]{--birthday-ink:#edf5e8;--birthday-muted:#bfcdbd;--birthday-paper:#17261e;--birthday-panel:#203427;--birthday-accent:#c7dbaa;--birthday-action:#183221;border-color:#49604c}
.birthday-intro[data-card=postcard]{--birthday-ink:#294c53;--birthday-muted:#52636c;--birthday-paper:#fffdf6;--birthday-panel:#f5eee4;--birthday-accent:#486b7b;--birthday-action:#fff;--event-prop-base-image:url('/art/birthday/postcard.svg');--event-prop-detail-image:none}
.birthday-intro[data-card=postcard][data-mode=dark]{--birthday-ink:#eef4f7;--birthday-muted:#bdc9cf;--birthday-paper:#1a242b;--birthday-panel:#24343f;--birthday-accent:#b4ceda;--birthday-action:#17303f;border-color:#4c6069}
.birthday-intro:is([data-card=botanical],[data-card=postcard]) .birthday-card{padding-top:clamp(110px,29vw,180px)}
.birthday-intro:is([data-card=botanical],[data-card=postcard]) .birthday-card-art{height:auto;aspect-ratio:10/3;background-position:top center;background-repeat:no-repeat;background-size:contain}
.birthday-intro:is([data-card=botanical],[data-card=postcard]) .birthday-card-art span{display:none}
.birthday-intro[data-card=botanical] .birthday-card-art{background-image:url('/art/birthday/botanical.svg')}
.birthday-intro[data-card=botanical] .birthday-card h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.035em}
.birthday-intro[data-card=postcard] .birthday-card-art{background-image:url('/art/birthday/postcard.svg')}
.birthday-intro[data-card=postcard] .birthday-card{border-style:double;border-width:4px;border-radius:8px}
.birthday-intro:is([data-card=botanical],[data-card=postcard]) .event-decoration--card{width:270px;height:81px;opacity:.3}
@media(max-width:520px){.birthday-card-options{grid-template-columns:repeat(2,minmax(0,1fr))}.birthday-intro:is([data-card=botanical],[data-card=postcard]) .event-decoration--card{width:220px;height:66px}}

}

@layer legacy{
.ambience-controls{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;max-width:100%;font:500 12px/1.4 Inter,"Segoe UI",Arial,sans-serif}
.ambience-toggle,.ambience-settings{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--theme-paper);color:var(--theme-main);font:inherit;white-space:nowrap;cursor:pointer}
.ambience-toggle .icon,.ambience-settings .icon{width:16px;height:16px;flex:0 0 auto}.ambience-settings{padding:8px;min-width:36px}.ambience-toggle:hover,.ambience-settings:hover{background:var(--theme-soft)}.ambience-controls[data-state="playing"] .ambience-toggle{background:var(--theme-soft)}.ambience-toggle:disabled{cursor:default;opacity:.6}
.ambience-controls [hidden],.ambience-dialog [hidden]{display:none!important}.ambience-toggle:focus-visible,.ambience-settings:focus-visible,.ambience-dialog button:focus-visible,.ambience-dialog input:focus-visible{outline:3px solid var(--theme-accent);outline-offset:3px}
.ambience-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:26px;border:1px solid var(--line);border-radius:12px;background:var(--theme-paper);color:var(--theme-text);font:14px/1.7 Inter,"Segoe UI",Arial,sans-serif;box-shadow:0 16px 64px #0002}.ambience-dialog::backdrop{background:#0007}.ambience-dialog-heading{display:flex;align-items:center;gap:10px}.ambience-dialog-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--theme-soft);color:var(--theme-main)}.ambience-dialog-icon .icon{width:20px;height:20px}.ambience-dialog h2{margin:0;font-size:1.35rem;line-height:1.3;letter-spacing:-.025em;font-weight:600}.ambience-dialog p{color:var(--theme-muted);margin:16px 0}.ambience-dialog .ambience-consent-note{font-size:12px;line-height:1.75}.ambience-volume{display:grid;grid-template-columns:1fr auto;gap:10px;margin:22px 0 12px;color:var(--theme-text);font-weight:500}.ambience-volume>span{grid-column:1}.ambience-volume output{grid-column:2;grid-row:1;color:var(--theme-muted);font-size:12px;min-width:34px;text-align:right}.ambience-volume input{grid-row:2;grid-column:1/-1;width:100%;margin:0;min-height:32px;accent-color:var(--theme-main);cursor:pointer}.ambience-dialog .ambience-status{min-height:40px;font-size:12px;color:var(--theme-muted)}.ambience-dialog-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px}.ambience-dialog button{border:1px solid var(--line);border-radius:7px;min-height:42px;padding:9px 13px;background:var(--theme-paper);color:var(--theme-main);font:500 13px/1.4 Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}.ambience-dialog .ambience-primary{background:var(--theme-main);border-color:var(--theme-main);color:var(--theme-paper)}.ambience-dialog .ambience-forget{border:0;padding:8px 0;margin-top:12px;font-size:12px;color:var(--theme-muted);text-decoration:underline}.ambience-dialog button:disabled{opacity:.6;cursor:default}
@media(max-width:600px){.ambience-controls{font-size:11px}.ambience-toggle{padding:7px 9px;min-height:38px;gap:5px}.ambience-settings{min-height:38px;padding:7px}.ambience-dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){.ambience-controls *,.ambience-dialog *{animation:none!important;transition:none!important}}

}

@layer legacy{
/* Original SVG previews stay legible on an intentional paper surface in every theme. */
.game-cover{display:block;position:relative;width:100%;min-width:0;aspect-ratio:8/5;overflow:hidden;isolation:isolate;border-radius:12px;background:#f3f1e9;line-height:0;contain:paint}
.game-cover>img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center;user-select:none;-webkit-user-drag:none}
.game-cover--small{border-radius:9px}
.game-cover--large{border-radius:16px}
.game-cover--room{height:100%;border-radius:inherit}
html[data-mode="dark"] .game-cover{outline:1px solid #ffffff16;outline-offset:-1px}
@media(prefers-reduced-motion:reduce){.game-cover,.game-cover>img{animation:none!important;transition:none!important}}

}

@layer legacy{
/* Discovery uses the same event palette; gameplay and newspaper stay separate. */
.welcome .hero-actions>a{text-decoration:none}.welcome .hero-actions .quiet{border:0;background:transparent;color:var(--hero-text);text-decoration:underline;text-underline-offset:4px}
.recent-activities{margin:0 0 28px}.recent-grid .recent-card{padding:10px;gap:12px;min-width:0}.recent-card>.game-cover{width:82px;flex:0 0 82px;border-radius:5px}.recent-card>span:not(.game-cover){min-width:0}.recent-card strong{overflow-wrap:anywhere}.recent-card>.icon{margin-left:auto}
.discovery-section{scroll-margin-top:140px}.library-heading#discover{margin-bottom:20px;scroll-margin-top:145px}.library-heading p{font-size:.85rem;color:var(--theme-muted)}
.discovery-search .search-box{display:flex;gap:12px;width:100%;min-height:56px;background:var(--theme-paper);border:1px solid var(--line);border-radius:9px;padding:5px 7px 5px 17px;box-sizing:border-box}
.discovery-search .search-box:focus-within{outline:2px solid var(--theme-main);outline-offset:3px}.discovery-search input{flex:1;min-width:0;width:100%;min-height:44px;border:0;background:transparent;font-size:.95rem;padding:8px 0;outline:0}.discovery-search .icon-button{flex:none;border:0;background:transparent}.discovery-search input::-webkit-search-cancel-button{display:none}
.discovery-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:18px 0}.discovery-filters label{display:grid;gap:6px;flex:1;min-width:145px;font-size:.72rem;font-weight:600;color:var(--theme-muted)}.discovery-filters select{min-height:46px;width:100%;min-width:0;padding:10px 30px 10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--theme-paper);color:var(--theme-text);font:inherit;font-size:.8rem}.discovery-filters .button{min-height:46px}
.discovery-result-summary{display:flex;gap:8px 20px;justify-content:space-between;flex-wrap:wrap;padding:15px 0}.discovery-result-summary p{font-size:.78rem;margin:0;color:var(--theme-muted)}.discovery-result-summary #results-count{font-weight:600;color:var(--theme-text)}
.discovery-section .category-tabs{margin:0;gap:7px}.discovery-section .category-tab{min-height:44px}.discovery-section .mobile-filters{margin:14px 0 0}
.activity-grid .game-card{display:flex;flex-direction:column;border-radius:10px;background:var(--theme-paper);overflow:hidden;min-width:0}.activity-grid .card-main{padding:0;min-height:0;display:flex;flex-direction:column;flex:1;text-align:left;width:100%;border:0;background:transparent;color:var(--theme-text)}.activity-grid .card-main>.game-cover{width:100%;border-radius:0;border-bottom:1px solid var(--line)}
.game-card-copy{display:flex;flex-direction:column;flex:1;padding:18px 17px 15px;width:100%;box-sizing:border-box}.game-card-copy .card-category{font-size:.58rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--theme-muted)}.card-main .game-card-copy h3{font-size:1.05rem;font-weight:650;margin:7px 0;line-height:1.35;overflow-wrap:anywhere}.card-main .game-card-copy p{font-size:.76rem;line-height:1.65;margin:0 0 18px;min-height:0;color:var(--theme-muted);flex:1}.card-main .game-card-copy .card-meta{display:flex;flex-wrap:wrap;margin-top:auto;gap:5px;font-size:.68rem;color:var(--theme-muted)}.card-play-label{margin-left:auto;display:inline-flex;gap:5px;align-items:center;color:var(--theme-text);font-weight:600}.card-meta .card-play-label .icon{width:14px;height:14px}
.game-card-actions{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);padding:2px 8px;gap:8px}.game-card-actions .favourite-button,.game-card-actions .plan-button{position:static;display:flex;width:auto;min-height:44px;height:auto;border:0;border-radius:6px;background:transparent;color:var(--theme-muted);align-items:center;justify-content:center;gap:8px;font:inherit;font-size:.7rem}.game-card-actions button[aria-pressed=true]{color:var(--theme-main);background:var(--theme-soft)}.game-card-actions button:hover{background:var(--theme-soft)}.game-card-actions .icon{width:16px;height:16px}.activity-grid .memory-mark{position:static;display:block;background:var(--theme-soft);color:var(--theme-main);text-align:center;padding:5px;font-size:.64rem;border:0}
.empty-library{grid-column:1/-1;padding:40px 22px;border:1px dashed var(--line);border-radius:10px}.empty-library .button{margin-top:15px}
.discover-card:not(.compact){padding:0;overflow:hidden;display:flex;flex-direction:column;position:relative}.discover-card:not(.compact)>.game-cover{width:100%;border-bottom:1px solid var(--line)}.discover-card:not(.compact)>.discover-count{display:none}.discover-card:not(.compact)>strong{margin:16px 17px 8px}.discover-card:not(.compact)>.discover-desc{margin:0 17px 15px;flex:1}.discover-card:not(.compact)>small{margin:0 17px 17px}.discover-card.compact>.game-cover{width:82px;border-radius:5px;margin-bottom:7px}.discover-card.compact>.discover-count{display:none}
.activity-plans{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:0 0 38px;padding:28px 0;border-block:1px solid var(--line)}.activity-plans>div{min-width:0}.activity-plans h2{font-size:1.4rem;margin:0 0 9px}.activity-plans p{font-size:.79rem;color:var(--theme-muted);line-height:1.7;margin:0 0 17px}.activity-plans ul{list-style:none;padding:0;margin:16px 0;display:grid;gap:9px}.activity-plans li{display:flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--theme-paper);padding:6px;min-width:0}.plan-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;background:transparent;border:0;text-align:left;padding:4px;color:var(--theme-text)}.plan-open>.game-cover{width:68px;flex:none;border-radius:5px}.plan-open>span:not(.game-cover){display:grid;gap:4px;min-width:0;flex:1}.plan-open strong{font-size:.78rem;line-height:1.4}.plan-open small{font-size:.64rem;color:var(--theme-muted)}.plan-open>.icon{width:15px;height:15px}.activity-plans li>.icon-button{flex:none;background:transparent;border:0;color:var(--theme-main)}.activity-plans li>.icon-button[aria-pressed=true]{background:var(--theme-soft)}.activity-plans>div>small{display:block;font-size:.68rem;line-height:1.65;color:var(--theme-muted)}.plan-empty{min-height:155px;border:1px dashed var(--line);border-radius:8px;padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;justify-content:center}.plan-empty p{margin:0}.plan-storage{margin-top:12px}.saved-plan form{display:flex;align-items:end;gap:10px;margin:17px 0 10px}.saved-plan label{display:grid;gap:5px;font-size:.7rem;flex:1;min-width:0}.saved-plan input{min-height:44px;min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;padding:8px;color:var(--theme-text);background:var(--theme-paper);font:inherit;font-size:.8rem}
@media(max-width:760px){.activity-plans{grid-template-columns:1fr;gap:26px}.discovery-filters{gap:10px}.discovery-filters label:first-child{flex-basis:100%}.recent-grid .recent-card>.game-cover{width:70px;flex-basis:70px}}
@media(max-width:480px){.game-card-copy{padding:14px 12px}.card-main .game-card-copy h3{font-size:.92rem}.card-main .game-card-copy p{font-size:.71rem;margin-bottom:14px}.card-main .game-card-copy .card-meta{font-size:.61rem}.card-play-label{margin-left:0;width:100%;margin-top:5px}.game-card-actions{padding:2px 4px;gap:2px}.game-card-actions button{gap:5px!important;font-size:.65rem!important}.discovery-filters label{min-width:120px}.discovery-search input{font-size:.85rem}.welcome .hero-actions .quiet{flex-basis:100%;justify-content:flex-start;padding-left:0;min-height:44px}.discover-card:not(.compact)>strong{margin:13px 12px 7px}.discover-card:not(.compact)>.discover-desc{margin:0 12px 13px}.discover-card:not(.compact)>small{margin:0 12px 14px}.saved-plan form{flex-wrap:wrap}.saved-plan form>.button{flex:1}.recent-card>span:not(.game-cover) strong{font-size:.78rem}.recent-card>span:not(.game-cover) small{font-size:.67rem}}

.pack-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 0;margin:0 0 35px;border-block:1px solid var(--line);text-decoration:none;color:var(--theme-text)}.pack-entry>span:first-child{display:grid;gap:4px}.pack-entry .section-kicker{margin:0;font-size:.6rem;color:var(--theme-muted)}.pack-entry strong{font-size:1.2rem;letter-spacing:-.03em}.pack-entry>span:first-child>span:last-child{font-size:.78rem;color:var(--theme-muted)}.pack-entry-action{display:flex;gap:9px;align-items:center;flex:none;font-size:.76rem;font-weight:600;min-height:44px}.pack-entry-action .icon{width:16px;height:16px}@media(max-width:600px){.pack-entry{align-items:flex-start;flex-direction:column;gap:9px}}
@media(max-width:480px){.app-header nav a.header-nav[href="/newspaper.html"]{display:inline-flex}.app-header nav [data-ui="go-spotlight"]{display:none}}

}

