:root{--cg-ink:#272722;--cg-paper:#fff9ee;--cg-pink:#f2b7c7;--cg-yellow:#f1cb74;--cg-mint:#a6cdaf;--cg-lilac:#cfc1df}
body.cg-game{background:#eee9df;color:var(--cg-ink)}
body.cg-game .brandbar,body.cg-game .bottom-nav,body.cg-game .desktop-sidebar{display:none!important}
body.cg-game .site{padding:0!important;max-width:440px!important;width:100%;margin:auto;background:var(--cg-paper);min-height:100dvh}
body.cg-game #app{padding:0!important;width:100%;max-width:440px;margin:auto;min-height:100dvh;background:var(--cg-paper)}
body.cg-game *, .cg-overlay *{box-sizing:border-box}
.cg-page{width:100%;min-height:100dvh;position:relative;padding:26px 20px 76px;font-family:inherit;color:var(--cg-ink);background:var(--cg-paper)}
.cg-page h1,.cg-page h2,.cg-overlay h2{font-weight:850;line-height:1.45}.cg-page h1{font-size:25px;margin:0}.cg-page p{line-height:1.7;margin:0}.cg-page button,.cg-overlay button,.cg-page select{font-family:inherit;color:var(--cg-ink);-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.cg-button{border:3px solid var(--cg-ink);border-radius:18px;background:var(--cg-paper);padding:12px 18px;font-size:15px;font-weight:800;min-height:48px;cursor:pointer;transition:transform .12s,background .12s}.cg-primary{background:var(--cg-yellow)}.cg-button:active{transform:scale(.96)}.cg-button:disabled{opacity:.45;cursor:default}.cg-page button:focus-visible,.cg-overlay button:focus-visible{outline:3px solid #ba647d;outline-offset:4px}
.cg-back{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:max(14px,calc((100vw - 440px)/2 + 14px));width:44px;height:44px;display:grid;place-items:center;border:2.5px solid var(--cg-ink);border-radius:50%;background:var(--cg-paper);color:var(--cg-ink);z-index:60;font-size:25px;cursor:pointer}.cg-back:active{transform:translateX(-3px)}
.cg-overline{font-size:12px;font-weight:700;letter-spacing:1px;color:#706b61}.cg-fine{font-size:11px!important;color:#777063;line-height:1.6}.cg-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cg-world-art{display:block;width:100%;object-fit:contain}.cg-toast{position:fixed;z-index:300;left:50%;bottom:80px;transform:translateX(-50%);width:max-content;max-width:min(90vw,365px);border:2.5px solid var(--cg-ink);border-radius:15px;padding:10px 16px;background:#f6e5aa;color:var(--cg-ink);font-size:13px;font-weight:650;text-align:center;line-height:1.65;margin:0}
/* One invitation to play: only the pack is actionable before the first journey. */
.cg-home{height:100dvh;min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 20px 110px;overflow:hidden}.cg-home h1{font-size:27px;letter-spacing:1px}.cg-home-intro{font-size:13px;color:#7e7467;margin-top:9px!important}.cg-home-stars{position:absolute;top:14%;left:0;width:100%;display:flex;justify-content:space-evenly;pointer-events:none;font-size:25px;color:#b98f43}.cg-home-stars span:nth-child(2){transform:translateY(-24px);color:#ac7e8d}.cg-home-stars span:nth-child(3){transform:translateY(15px)}
.cg-pack{position:relative;width:222px;height:300px;margin:36px 0 24px;padding:0;border:none;background:none;cursor:pointer;flex-shrink:0}.cg-pack:active .cg-pack-inner{transform:scale(.97)}.cg-pack-inner{position:absolute;inset:0;background:var(--cg-pink);border:3.5px solid var(--cg-ink);border-radius:24px;display:flex;align-items:center;justify-content:center;transition:transform .12s;overflow:visible}.cg-pack-inner:before{content:'';position:absolute;inset:12px;border:2px solid var(--cg-ink);border-radius:15px}.cg-pack-bunny{width:180px;height:215px;display:block;position:relative;margin-top:-12px;animation:cgBunnyBob 3s ease-in-out infinite}.cg-pack-bunny svg{width:100%;height:100%;display:block}.cg-pack-tear{position:absolute;top:17px;left:16px;right:16px;height:13px;border-top:2px dashed var(--cg-ink);border-bottom:2px solid var(--cg-ink)}.cg-pack-bottom{position:absolute;bottom:18px;left:20px;right:20px;border-top:2px solid var(--cg-ink);height:8px;border-bottom:2px solid var(--cg-ink)}.cg-pack-seal{position:absolute;bottom:34px;border:3px solid var(--cg-ink);background:var(--cg-yellow);border-radius:50%;width:54px;height:54px;display:grid;place-items:center;font-size:33px}.cg-pack-spark{position:absolute;top:30px;right:-23px;font-size:33px;background:var(--cg-paper);padding:4px;color:var(--cg-ink);animation:cgTwinkle 2s ease-in-out infinite}.cg-tap-hint{font-size:13px;color:#777063}.cg-home-bottom{position:absolute;bottom:max(30px,env(safe-area-inset-bottom));left:30px;right:30px;display:flex;justify-content:center;min-height:47px}.cg-library-entry{display:flex;align-items:center;gap:10px;padding:12px 20px;border:2.5px solid var(--cg-ink);border-radius:19px;font-size:15px;font-weight:750;background:#e2ebdc;cursor:pointer}.cg-library-entry svg{width:23px;height:23px}.cg-library-count{border:1.5px solid var(--cg-ink);min-width:23px;height:23px;border-radius:50%;font-size:11px;background:var(--cg-paper);display:grid;place-items:center}.cg-unpacking .cg-pack-tear{animation:cgTear .35s both}.cg-unpacking .cg-pack-inner{animation:cgOpenPack .65s both}.cg-unpacking .cg-pack-seal{animation:cgSeal .5s both}.cg-unpacking .cg-pack-spark{animation:cgSpark .5s both}
/* Five flat stacks. Back and front squash along X, without perspective or 3D lighting. */
.cg-selection{height:100dvh;min-height:460px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;overflow:hidden;padding:24px 20px 68px}.cg-selection-header{text-align:center}.cg-selection-header h1{margin-top:6px;font-size:23px}.cg-world-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 12px;width:100%;max-width:360px;padding:6px 0}.cg-world-deck{grid-column:span 2;position:relative;aspect-ratio:3/4.15;width:100%;border:0;background:none;padding:0;cursor:pointer;color:var(--cg-ink);transition:transform .18s}.cg-world-deck:nth-child(4){grid-column:2/span 2}.cg-world-deck:nth-child(5){grid-column:4/span 2}.cg-world-deck:disabled{cursor:default}.cg-deck-top,.cg-deck-under{position:absolute;inset:0;border:2.5px solid var(--cg-ink);border-radius:14px;display:block;background:var(--cg-paper)}.cg-deck-under-one{transform:translate(4px,5px);background:var(--card-color)}.cg-deck-under-two{transform:translate(2px,2px)}.cg-deck-top{overflow:hidden;background:var(--card-color);transform-origin:center}.cg-card-back,.cg-card-front{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px}.cg-card-back svg{width:100%;height:100%;display:block}.cg-card-front{display:none;background:var(--card-color)}.cg-card-front .cg-world-art{height:72%;border-radius:8px}.cg-card-front b{font-size:12px;line-height:1.4;text-align:center;display:block;width:100%;padding:2px 0}.cg-revealed .cg-card-back{display:none}.cg-revealed .cg-card-front{display:flex}.cg-flipping .cg-deck-top{transform:scaleX(0);transition:transform .14s ease-in}.cg-flipping.cg-revealed .cg-deck-top{transform:scaleX(1);transition:transform .15s ease-out}.cg-selection-check{position:absolute;right:5px;top:5px;width:23px;height:23px;border:2px solid var(--cg-ink);border-radius:50%;background:var(--cg-yellow);font-size:14px;line-height:19px;display:none}.cg-world-deck[aria-pressed=true]{transform:translateY(-7px)}.cg-world-deck[aria-pressed=true] .cg-deck-top{border:3px solid var(--cg-ink)}.cg-world-deck[aria-pressed=true] .cg-selection-check{display:block}.cg-selection-intro{font-size:13px;min-height:24px;text-align:center;color:#6f675a}.cg-selection-footer{display:grid;gap:12px;width:100%;max-width:350px;text-align:center}.cg-selection-footer .cg-button{width:100%}.cg-refresh{background:none;border:0;padding:5px 10px;font-size:14px;font-weight:700;cursor:pointer}.cg-refresh span{font-size:10px;font-weight:400;display:block;margin-top:4px;color:#80786d}.cg-refresh:active{transform:rotate(-3deg)}.cg-refresh:disabled{opacity:.5}.cg-destroy{animation:cgDiscard .6s both!important;pointer-events:none}.cg-chosen{animation:cgChoose .55s both!important;z-index:10}.cg-fade{opacity:0;transition:opacity .25s}
/* The selected cover occupies approximately half the viewport. */
.cg-play{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;overflow:hidden;padding:30px 22px 74px}.cg-large-stack{position:relative;width:min(78vw,310px);height:46dvh;min-height:260px;max-height:440px}.cg-large-under{position:absolute;inset:0;border:3px solid var(--cg-ink);border-radius:24px;background:#e4e9df}.cg-large-under-one{transform:translate(9px,10px);background:var(--cg-lilac)}.cg-large-under-two{transform:translate(5px,5px);background:var(--cg-yellow)}.cg-cover-card{position:absolute;inset:0;width:100%;padding:18px 16px;border:3px solid var(--cg-ink);border-radius:24px;background:var(--card-color);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;cursor:pointer;animation:cgCoverGrow .45s ease-out both}.cg-cover-card .cg-world-art{height:68%;min-height:0;border-radius:16px}.cg-cover-card h1{font-size:23px;text-align:center}.cg-cover-card p{font-size:12px;text-align:center}.cg-cover-hint{font-size:13px;color:#7a7163}.cg-cover-hint span{display:inline-block;margin-left:6px;animation:cgPointLeft 1.8s infinite}
.cg-scene-progress{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:350px;font-size:12px;color:#776b5d;gap:12px}.cg-progress-dots{display:flex;gap:6px}.cg-progress-dots i{width:8px;height:8px;display:block;border:1.5px solid var(--cg-ink);border-radius:50%;background:var(--cg-paper)}.cg-progress-dots i.cg-done{background:var(--cg-mint)}.cg-progress-dots i.cg-current{background:var(--cg-yellow);transform:scale(1.3)}
.cg-question-stack{position:relative;width:100%;max-width:350px}.cg-question-card{position:relative;padding:20px 17px 12px;border:3px solid var(--cg-ink);border-radius:24px;background:var(--cg-paper);animation:cgNextCard .28s both}.cg-scene-label{display:inline-block;border:2px solid var(--cg-ink);border-radius:20px;padding:4px 10px;background:var(--card-color);font-size:11px;font-weight:700}.cg-question-card h2{font-size:20px;line-height:1.4;margin:12px 0 8px}.cg-scene-setup{font-size:13px;line-height:1.65!important;color:#756d5f}.cg-question-text{font-size:17px;line-height:1.5;margin:15px 0 12px}.cg-options{display:grid;gap:9px}.cg-options button{border:2px solid var(--cg-ink);border-radius:14px;background:#fffdf9;padding:10px;display:flex;align-items:center;gap:10px;text-align:left;font-size:13px;line-height:1.5;min-height:46px;cursor:pointer;color:var(--cg-ink);transition:background .16s,transform .12s}.cg-options button:active{transform:scale(.98)}.cg-options button[aria-pressed=true]{background:var(--card-color)}.cg-options button:disabled{opacity:1}.cg-option-mark{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px;border:1.8px solid var(--cg-ink);border-radius:50%;font-size:11px;background:var(--cg-paper)}.cg-options button[aria-pressed=true] .cg-option-mark{background:var(--cg-yellow);animation:cgTick .25s both}.cg-reaction{font-size:12px;color:#547760;min-height:37px;padding-top:11px;line-height:1.6!important}.cg-question-bottom{display:flex;justify-content:space-between;width:100%;max-width:350px;min-height:36px;align-items:center}.cg-text-button{border:0;background:none;font-size:12px;font-weight:650;padding:10px 6px;cursor:pointer}.cg-text-button:disabled{opacity:.5}.cg-card-exit{animation:cgExitLeft .35s ease-in both!important;pointer-events:none}
/* Five cards converge, with a real pending state until the existing backend has a report. */
.cg-ritual{display:flex;min-height:100dvh;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:20px;overflow:hidden}.cg-ritual h2{font-size:19px;margin:0}.cg-ritual p{font-size:13px;color:#817361}.cg-converging{position:relative;width:270px;height:260px}.cg-ritual-card{position:absolute;left:90px;top:65px;width:90px;height:130px;animation:cgMerge 1.65s calc(var(--i)*.07s) both;--dx:calc((var(--i) - 2)*40px);--angle:calc((var(--i) - 2)*12deg)}.cg-ritual-card svg{width:100%;height:100%;display:block}.cg-ritual-star{position:absolute;left:113px;top:100px;font-size:48px;color:#b8862e;animation:cgMergeStar 1.6s both}
.cg-result-page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:26px 22px 80px}.cg-result-header{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:350px;font-size:11px;color:#7c7262;gap:10px}.cg-result-header span:last-child{display:flex;align-items:center;gap:5px}.cg-result-header svg{width:17px;height:17px}.cg-fortune-card{position:relative;width:100%;max-width:350px;border:3px solid var(--cg-ink);border-radius:25px;background:#f8ebc9;padding:24px 25px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;animation:cgFortuneIn .5s ease-out both}.cg-fortune-card:before{content:'';position:absolute;inset:9px;border:1.6px solid var(--cg-ink);border-radius:17px;pointer-events:none}.cg-fortune-emblem{height:118px;width:145px;position:relative;margin:0 auto 14px}.cg-fortune-emblem img,.cg-fortune-emblem svg{width:100%;height:100%;object-fit:contain;display:block;border-radius:20px}.cg-fortune-card h1{font-size:26px;line-height:1.4;margin:12px 0 14px;letter-spacing:1px;position:relative}.cg-fortune-copy{font-size:14px;line-height:1.95!important;letter-spacing:.25px;text-align:left;width:100%;position:relative;overflow-wrap:anywhere}.cg-fortune-corner{position:absolute;top:24px;font-size:22px;background:#f8ebc9;line-height:1}.cg-corner-one{left:22px}.cg-corner-two{right:22px}.cg-fortune-rule{font-size:13px;margin:18px 0 8px}.cg-fortune-footnote{font-size:11px;color:#74664d}.cg-report-tools{display:flex;justify-content:center;gap:24px;width:100%;max-width:350px}.cg-report-tools button{display:flex;align-items:center;gap:6px;background:none;border:0;padding:10px 0;font-size:12px;cursor:pointer}.cg-report-tools button[hidden]{display:none}.cg-report-tools svg{width:20px;height:20px}.cg-report-tools button:active{transform:scale(.93)}.cg-result-footer{width:100%;max-width:350px;text-align:center}.cg-result-footer>.cg-button{width:100%}.cg-invite-note{font-size:11px;color:#82735e;margin-top:11px!important;line-height:1.7!important}.cg-result-links{display:flex;justify-content:center;gap:30px;margin-top:18px}.cg-result-links button{background:none;border:0;font-size:12px;padding:10px 0;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.cg-consent{display:flex;gap:7px;align-items:flex-start;justify-content:center;font-size:11px;line-height:1.7;text-align:left;margin:14px 0 4px}.cg-consent input{margin:3px 0 0;accent-color:#83ad8d;flex-shrink:0}.cg-pair-status{font-size:11px;color:#6c7664}.cg-report-tabs{display:flex;border:2px solid var(--cg-ink);border-radius:15px;padding:3px;gap:4px;background:var(--cg-paper);max-width:350px;width:100%}.cg-report-tabs button{border:0;border-radius:10px;padding:9px 12px;flex:1;background:none;font-size:13px;font-weight:700;cursor:pointer}.cg-report-tabs button[aria-pressed=true]{background:var(--cg-mint)}.cg-pair-picker{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:350px;font-size:12px}.cg-pair-picker select{border:2px solid var(--cg-ink);border-radius:10px;padding:6px;background:var(--cg-paper);max-width:180px}.cg-waiting-pattern{display:flex;align-items:center;justify-content:center;gap:16px;height:60px;margin-top:10px}.cg-waiting-pattern i{font-style:normal;font-size:27px;animation:cgWait 1.2s infinite}.cg-waiting-pattern i:nth-child(2){animation-delay:.16s}.cg-waiting-pattern i:nth-child(3){animation-delay:.32s}.cg-fortune-pending .cg-fortune-copy{text-align:center;min-height:75px}
.cg-collection{padding:30px 22px 90px}.cg-collection header{margin-bottom:26px}.cg-collection header h1{margin-top:8px}.cg-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 15px}.cg-collected-world{border:2.5px solid var(--cg-ink);border-radius:20px;background:var(--card-color);padding:10px 9px 12px;cursor:pointer;text-align:center;transition:transform .14s}.cg-collected-world:active{transform:scale(.96)}.cg-collected-world .cg-world-art{height:140px;border-radius:12px}.cg-collected-world h2{font-size:16px;margin:10px 0 5px}.cg-collected-world p{font-size:11px;line-height:1.6}.cg-together-badge{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:11px;border:1.5px solid var(--cg-ink);border-radius:14px;background:#fff9ee;padding:5px 4px;font-size:10px;font-weight:700}.cg-together-badge svg{width:13px;height:13px;fill:var(--cg-pink)}.cg-collected-label{display:block;font-size:10px;color:#6a6459;margin-top:12px}.cg-collection>p{font-size:12px;text-align:center;color:#7e7262;margin-top:28px}.cg-collection>.cg-button{display:block;margin:18px auto}.cg-collection>.cg-button[hidden]{display:none}
.cg-overlay{border:3px solid var(--cg-ink);border-radius:24px;background:var(--cg-paper);color:var(--cg-ink);width:min(90vw,380px);max-height:85dvh;padding:28px 22px;overflow:auto;font-family:inherit}.cg-overlay::backdrop{background:#27272255}.cg-overlay h2{margin:4px 22px 18px 0;font-size:21px}.cg-overlay p{font-size:13px;line-height:1.8}.cg-modal-close{position:absolute;top:10px;right:12px;border:0;background:none;width:34px;height:34px;font-size:26px;cursor:pointer}.cg-modal-actions{display:grid;gap:10px;margin-top:20px}.cg-modal-bunny{height:105px;text-align:center}.cg-modal-bunny svg{height:100%;width:110px}.cg-insight{padding:10px 0;border-bottom:1px solid #d9cbb6}.cg-insight h3{font-size:14px;line-height:1.7;margin:0}.cg-insight p{font-size:12px}.cg-insight-choice{color:#4c7657}.cg-error{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;text-align:center}.cg-error>svg{height:160px;width:150px}.cg-error>p{font-size:13px}.cg-invitation{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center}.cg-invitation-cover{border:3px solid var(--cg-ink);border-radius:24px;padding:16px;background:var(--cg-mint);width:min(80vw,310px)}.cg-invitation-cover>.cg-world-art,.cg-invitation-cover>svg{height:230px;width:100%;object-fit:contain}.cg-invitation-cover h1{font-size:23px;margin-top:10px}.cg-invitation>.cg-button{width:100%}.cg-invitation>p{font-size:13px}
@keyframes cgBunnyBob{50%{transform:translateY(-5px)}}@keyframes cgTwinkle{50%{transform:scale(.8)}}@keyframes cgTear{to{transform:translate(90px,-55px) rotate(25deg);opacity:0}}@keyframes cgOpenPack{30%{transform:scale(1.04)}70%{transform:translateY(10px)}100%{transform:translateY(50px) scale(.75);opacity:0}}@keyframes cgSeal{to{transform:translateY(70px) rotate(20deg);opacity:0}}@keyframes cgSpark{to{transform:scale(2);opacity:0}}@keyframes cgDiscard{to{transform:translateY(50px) scale(.1) rotate(-12deg);opacity:0}}@keyframes cgChoose{from{transform:translateY(-7px)}to{transform:translate(var(--cg-select-x),var(--cg-select-y)) scale(var(--cg-scale-x),var(--cg-scale-y))}}@keyframes cgCoverGrow{from{transform:scale(.65);opacity:.2}to{transform:scale(1);opacity:1}}@keyframes cgPointLeft{50%{transform:translateX(-6px)}}@keyframes cgNextCard{from{transform:translateX(8px) scale(.97);opacity:.5}to{transform:none;opacity:1}}@keyframes cgExitLeft{to{transform:translateX(-130%) rotate(-5deg);opacity:0}}@keyframes cgTick{from{transform:scale(.4) rotate(-25deg)}to{transform:scale(1)}}@keyframes cgMerge{0%{transform:translate(var(--dx),30px) rotate(var(--angle))}65%{transform:translate(0,0) rotate(0)}100%{transform:translate(0,0) rotate(0) scale(.2);opacity:0}}@keyframes cgMergeStar{0%,70%{transform:scale(0);opacity:0}100%{transform:scale(1.3);opacity:1}}@keyframes cgFortuneIn{from{transform:translateY(20px) scale(.94);opacity:0}to{transform:none;opacity:1}}@keyframes cgWait{50%{transform:translateY(-8px)}}
@media(max-height:740px){.cg-home{padding-top:25px}.cg-home h1{font-size:24px}.cg-pack{width:195px;height:265px;margin:28px 0 18px}.cg-pack-bunny{width:160px;height:190px}.cg-selection{padding-top:18px;gap:12px}.cg-world-grid{max-width:300px;gap:13px 11px}.cg-selection-header h1{font-size:21px}.cg-selection-footer{gap:7px}.cg-selection-intro{font-size:12px}.cg-play{padding-top:20px;gap:16px}.cg-question-card{padding:15px 14px 10px}.cg-question-card h2{font-size:19px;margin:9px 0 7px}.cg-question-text{margin:11px 0 9px;font-size:16px}.cg-options{gap:7px}.cg-options button{min-height:42px;padding:8px}.cg-reaction{min-height:34px;padding-top:8px}.cg-fortune-emblem{height:95px;width:125px;margin-bottom:10px}.cg-fortune-card{padding:22px 23px 18px}.cg-fortune-card h1{font-size:24px}.cg-result-page{gap:11px}.cg-result-links{margin-top:10px}.cg-report-tools{gap:25px}}
@media(max-height:580px){.cg-home{min-height:400px;padding:24px 20px 82px}.cg-home-stars{top:8%}.cg-home h1{font-size:22px}.cg-home-intro{margin-top:4px!important;font-size:12px}.cg-pack{width:148px;height:202px;margin:18px 0 12px}.cg-pack-bunny{width:125px;height:150px}.cg-pack-seal{width:38px;height:38px;bottom:25px;font-size:25px}.cg-pack-tear{top:14px;height:9px;left:13px;right:13px}.cg-pack-bottom{bottom:13px;left:16px;right:16px;height:6px}.cg-pack-spark{font-size:25px;right:-17px}.cg-home-bottom{bottom:20px}.cg-library-entry{padding:9px 15px;font-size:13px;min-height:42px}.cg-selection{min-height:440px;gap:8px;padding:13px 19px 58px}.cg-selection-header .cg-overline{font-size:10px}.cg-selection-header h1{font-size:19px;margin-top:2px}.cg-world-grid{max-width:265px;gap:12px 10px;padding:4px 0}.cg-world-deck{aspect-ratio:3/3.8}.cg-card-front b{font-size:10px}.cg-selection-intro{font-size:11px;min-height:18px}.cg-selection-footer{gap:4px;max-width:290px}.cg-selection-footer .cg-button{padding:9px 10px;min-height:42px;font-size:13px}.cg-refresh{font-size:12px;padding:4px}.cg-refresh span{font-size:9px;margin-top:2px}.cg-large-stack{min-height:220px;height:47dvh;max-width:250px}.cg-cover-card{padding:12px;gap:4px}.cg-cover-card h1{font-size:20px}.cg-cover-card p{font-size:11px}.cg-play{gap:12px;padding:15px 21px 68px}.cg-question-page{overflow:visible;justify-content:safe center}.cg-scene-progress{font-size:11px}.cg-question-card{padding:12px 12px 6px}.cg-question-card h2{font-size:18px;margin:7px 0 5px}.cg-scene-label{font-size:10px;padding:2px 8px}.cg-scene-setup{font-size:12px;line-height:1.5!important}.cg-question-text{font-size:16px;margin:8px 0}.cg-options{gap:6px}.cg-options button{min-height:36px;padding:6px 7px;font-size:12px;gap:8px}.cg-option-mark{width:21px;height:21px;font-size:10px}.cg-reaction{font-size:11px;min-height:29px;padding-top:7px}.cg-question-bottom{min-height:28px}.cg-text-button{padding:6px;font-size:11px}.cg-result-page{padding:20px 21px 72px}.cg-fortune-emblem{height:85px;width:105px}.cg-fortune-copy{font-size:13px;line-height:1.85!important}.cg-fortune-card h1{font-size:23px}.cg-collected-world .cg-world-art{height:110px}.cg-collected-world h2{font-size:14px}.cg-collection-grid{gap:18px 12px}.cg-together-badge{font-size:9px}}
@media(min-width:600px){body.cg-game .site{border-left:1px solid #d9d0c3;border-right:1px solid #d9d0c3}}
@media(prefers-reduced-motion:reduce){.cg-game *, .cg-overlay *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Public and historical v2 reports keep their original renderer outside the game. */
.core-report-lines.core-report-details p{white-space:normal;font-size:15px;font-weight:500;line-height:1.95;text-align:left;margin:16px 0;overflow-wrap:anywhere}

.cg-report-tools button{flex-direction:column;gap:4px;min-width:42px}.cg-report-tools{gap:20px}

html.cg-boot .brandbar,html.cg-boot .bottom-nav,html.cg-boot .desktop-sidebar{display:none!important}html.cg-boot .site{padding:0!important}html.cg-boot #app{min-height:100dvh}

/* Persistent local test items replace the old daily entitlement labels. */
.cg-inventory{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-size:10px;font-weight:650;line-height:1.4}
.cg-item{display:flex;align-items:center;justify-content:center;gap:5px;border:2px solid var(--cg-ink);border-radius:16px;padding:6px 8px;background:#fffdf9;white-space:nowrap}
.cg-item svg{width:21px;height:21px;flex-shrink:0}.cg-item b{font-size:12px;min-width:18px;text-align:center}.cg-dice{background:#faedc6}.cg-stone{background:#e3eee2}
.cg-home>.cg-inventory{position:absolute;top:max(20px,env(safe-area-inset-top));left:0;padding:0 12px}.cg-cost-note{display:block;font-size:10px;color:#786c5c;line-height:1.4;margin-top:-5px}
.cg-selection-header{width:100%}.cg-selection-header h1{margin-top:11px}
@media(max-height:580px){.cg-selection{gap:6px}.cg-world-grid{max-width:250px}.cg-item{font-size:9px;padding:4px 6px;gap:4px}.cg-item svg{width:18px;height:18px}.cg-selection-header h1{margin-top:7px}.cg-cost-note{font-size:9px;margin-top:-1px}.cg-selection-footer{gap:4px}.cg-home>.cg-inventory{top:12px}}
/* The tiny shelf grows out of the left edge; it is flat, with no texture or shadow. */
.cg-notice-dot{position:absolute;width:10px;height:10px;border:1.5px solid var(--cg-ink);border-radius:50%;background:#e57b89;right:7px;top:7px}
.cg-home{padding-bottom:130px}
.cg-profile{padding:25px 18px 90px}.cg-profile-header{display:flex;align-items:center;gap:15px;margin:0 0 22px}.cg-profile-header>div{width:80px;height:88px;flex-shrink:0;border:2.5px solid var(--cg-ink);border-radius:24px;background:#e2ecd8;overflow:hidden}.cg-profile-header svg{width:100%;height:100%}.cg-profile-header h1{font-size:21px;margin:4px 0}.cg-profile-header p{font-size:11px;color:#786f5e}.cg-profile-items{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:20px}.cg-profile-items article{border:2.5px solid var(--cg-ink);border-radius:22px;background:#f8eac0;padding:17px 10px;display:flex;flex-direction:column;align-items:center;gap:6px}.cg-profile-items article:nth-child(2){background:#e2eddf}.cg-profile-items svg{width:42px;height:42px}.cg-profile-items span{font-size:13px;font-weight:700}.cg-profile-items strong{font-size:30px;line-height:1.2}.cg-profile-items small{font-size:10px;color:#81725e}
.cg-center-panel{border:2.5px solid var(--cg-ink);border-radius:23px;padding:18px 14px;background:#fffdf9;margin:16px 0}.cg-center-panel h2{font-size:18px;margin:0 0 13px}.cg-center-panel>p{font-size:12px;color:#736a5b;margin-bottom:15px}.cg-center-panel>small{font-size:10px;color:#82735e;display:block;margin-top:11px}.cg-reward-row{display:flex;gap:10px;align-items:center;justify-content:space-between;border-top:1.5px solid #e8ddcc;padding:15px 0}.cg-reward-row:last-child{padding-bottom:0}.cg-reward-row>div{display:grid;grid-template-columns:24px 1fr;gap:3px 7px;flex:1;min-width:0}.cg-reward-row svg{width:23px;height:23px;grid-row:span 2}.cg-reward-row b{font-size:13px}.cg-reward-row small{font-size:10px;color:#817360;line-height:1.5}.cg-reward-row .cg-button{font-size:11px;padding:9px 10px;min-height:40px;border-width:2px;white-space:nowrap}.cg-membership{background:#f7e7ec}.cg-center-two{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cg-center-two .cg-button{font-size:12px;padding:10px 8px;border-width:2px}.cg-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.cg-section-title>span{font-size:11px;border:1.5px solid var(--cg-ink);border-radius:15px;padding:2px 8px;background:#f1e6cc}.cg-section-title h2{margin-bottom:0}.cg-center-notice{display:flex;gap:10px;padding:16px 0;border-bottom:1px solid #e5dccd}.cg-center-notice:last-child{border-bottom:0;padding-bottom:0}.cg-center-notice>span svg{width:25px;height:25px}.cg-center-notice p{font-size:12px}.cg-center-notice small{display:block;font-size:10px;color:#938371;margin-top:5px}.cg-center-notice .cg-button{font-size:12px;margin-top:10px;padding:8px 12px}.cg-empty-notice{font-size:12px;color:#897b69;padding-top:18px}.cg-preview-tools{font-size:11px;color:#8d7c66;padding:13px 3px}.cg-preview-tools summary{cursor:pointer}.cg-preview-tools p{font-size:11px;margin:12px 0}.cg-preview-tools .cg-button{font-size:11px;padding:8px 12px;min-height:39px}.cg-shop-label{display:grid;gap:7px;font-size:12px;font-weight:700;margin:15px 0}.cg-shop-label select{border:2px solid var(--cg-ink);border-radius:13px;padding:10px;background:#fffdf9;color:var(--cg-ink);font-family:inherit;font-size:13px;width:100%}.cg-shop-icons{display:flex;justify-content:center;gap:30px;padding:12px}.cg-shop-icons svg{height:52px;width:52px}.cg-purchase-demo{font-size:11px!important;color:#916d5e;background:#f4e5dc;padding:10px;border-radius:12px}.cg-ad-demo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;min-height:170px;border:2px solid var(--cg-ink);border-radius:18px;background:#f7ebc6;margin-bottom:15px}.cg-ad-demo svg{width:55px;height:55px;animation:cgBunnyBob 1s infinite}.cg-ad-demo b{font-size:17px}.cg-ad-demo span{font-size:13px}
@media(max-height:580px){.cg-home{padding-bottom:116px}}
@media(max-width:340px){.cg-profile{padding-left:13px;padding-right:13px}.cg-center-panel{padding:15px 11px}.cg-reward-row .cg-button{font-size:10px;padding:8px}.cg-center-two .cg-button{font-size:11px}.cg-profile-header h1{font-size:19px}}

/* Selection controls pair each action with its own item cost and balance. */
.cg-selection-footer{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.cg-selection-footer .cg-selection-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:12px 7px;min-width:0;min-height:91px;border-radius:18px}
.cg-action-title{display:flex;align-items:center;justify-content:center;gap:7px;font-size:16px;font-weight:800}.cg-action-title svg{width:23px;height:23px;flex-shrink:0}
.cg-selection-action small{font-size:10px;font-weight:500;line-height:1.4;white-space:nowrap}.cg-selection-action .cg-action-balance{font-weight:700;color:#65573f}
@media(max-height:580px){.cg-selection-footer .cg-selection-action{padding:8px 5px;min-height:78px;gap:3px}.cg-action-title{font-size:14px}.cg-action-title svg{width:20px;height:20px}.cg-selection-action small{font-size:9px}}

/* Compact gacha actions: label, item icon, owned / required. */
.cg-selection-footer .cg-selection-action{padding:8px 10px;min-height:66px;gap:5px}
.cg-action-title{font-size:16px;line-height:1.3}.cg-action-cost{display:flex;align-items:center;justify-content:center;gap:5px;font-size:13px;font-weight:800;line-height:1.2}.cg-action-cost svg{width:21px;height:21px;flex-shrink:0}.cg-action-ratio{font-variant-numeric:tabular-nums;letter-spacing:.5px}.cg-cost-insufficient{color:#b44652}
@media(max-height:580px){.cg-selection-footer .cg-selection-action{min-height:60px;padding:7px 8px;gap:4px}.cg-action-title{font-size:14px}.cg-action-cost{font-size:12px}.cg-action-cost svg{width:19px;height:19px}}
.cg-not-together{background:#f8f3e8;color:#766b5b;font-weight:500}.cg-not-together svg{fill:none;opacity:.65}.cg-world-entered{display:block;margin-top:9px;font-size:10px;color:#766b5b;line-height:1.5}.cg-user-signature{overflow-wrap:anywhere}.cg-edit-profile{border:1.5px solid var(--cg-ink);border-radius:12px;padding:5px 10px;font-size:11px;background:var(--cg-paper);cursor:pointer;margin-top:8px}.cg-avatar-field{padding:0;border:0;margin:0 0 18px}.cg-avatar-field legend{font-size:13px;font-weight:700;margin-bottom:10px}.cg-avatar-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.cg-avatar-choices button{height:77px;min-width:0;border:2px solid var(--cg-ink);border-radius:18px;background:#fffdf9;cursor:pointer;padding:5px}.cg-avatar-choices svg{width:100%;height:100%}.cg-avatar-choices button[aria-pressed=true]{background:var(--cg-mint);outline:2px solid var(--cg-ink);outline-offset:2px}.cg-shop-label input,.cg-shop-label textarea{border:2px solid var(--cg-ink);border-radius:12px;padding:10px;background:#fffdf9;font-family:inherit;font-size:14px;color:var(--cg-ink);width:100%;resize:vertical}.cg-save-profile{width:100%;margin-top:10px}#cgProfileSaveStatus{color:#a33f4b;font-size:12px}

/* Two inset avatar seats replace written completion badges and dates. */
.cg-collected-world{display:flex;flex-direction:column;align-items:center;overflow:hidden;padding-bottom:0}.cg-collected-world h2{margin-bottom:13px}
.cg-duo-dock{align-self:stretch;display:flex;align-items:center;justify-content:center;gap:5px;border-top:2px solid var(--cg-ink);background:#fff7e8;margin:0 -9px;padding:10px 6px 11px;border-radius:0 0 16px 16px;min-height:66px}
.cg-avatar-seat{display:grid;place-items:center;border:2px solid var(--cg-ink);border-radius:50%;width:43px;height:43px;flex-shrink:0;overflow:hidden;background:#e4eddc}.cg-avatar-seat svg{width:100%;height:100%;display:block}.cg-avatar-partner{background:#f2c4cf}.cg-avatar-seat-empty{background:#f0ebe1;border-style:dashed;border-color:#b4aa99;color:#b4aa99}.cg-avatar-seat-empty svg{width:25px;height:25px;opacity:.6}.cg-avatar-seat-empty svg *{fill:none}
.cg-duo-link{display:grid;place-items:center;width:15px;color:#b4aa99}.cg-duo-link svg{width:13px;height:13px}.cg-duo-complete .cg-duo-link{color:var(--cg-ink)}.cg-duo-complete .cg-duo-link svg{fill:var(--cg-pink)}
@media(max-width:340px){.cg-duo-dock{gap:4px;padding:9px 4px}.cg-avatar-seat{width:37px;height:37px}.cg-duo-link{width:12px}.cg-duo-link svg{width:11px;height:11px}}

.cg-upload-row{display:flex;align-items:center;gap:15px;margin:4px 0 9px}.cg-upload-preview{display:grid;place-items:center;width:75px;height:75px;border:2.5px solid var(--cg-ink);border-radius:50%;overflow:hidden;background:var(--cg-mint);flex-shrink:0}.cg-upload-preview svg,.cg-upload-preview img{width:100%;height:100%;object-fit:cover;display:block}.cg-upload-picker{display:inline-flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border:2px solid var(--cg-ink);border-radius:14px;padding:10px 12px;background:var(--cg-yellow);font-size:12px;font-weight:700;cursor:pointer}.cg-upload-picker input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.cg-avatar-tip{display:block;font-size:10px;color:#80715e;line-height:1.6;margin-bottom:15px}.cg-uploaded-avatar{width:100%;height:100%;object-fit:cover;display:block}.cg-avatar-seat img{border-radius:50%}

/* Six familiar store packs: three dice offers above three magic-stone offers. */
.cg-goods-dialog{width:min(94vw,410px);padding:22px 16px;max-height:91dvh}.cg-goods-dialog h2{margin-bottom:14px}.cg-shop-target{display:flex;align-items:center;gap:10px;margin:0 0 13px;font-weight:500;white-space:nowrap}.cg-shop-target select{padding:7px 10px}.cg-goods-row{margin:10px 0 14px}.cg-goods-row h3{margin:0 0 7px;font-size:12px;font-weight:750}.cg-goods-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cg-goods-card{display:flex;flex-direction:column;align-items:center;gap:5px;border:2px solid var(--cg-ink);border-radius:13px;background:#fffaf0;padding:9px 5px 6px;min-width:0}.cg-goods-card[data-item-type=stones]{background:#eef4e8}.cg-goods-card strong{font-size:20px;line-height:1.1}.cg-goods-art{position:relative;width:100%;height:65px;max-width:110px;margin:auto}.cg-goods-art span{display:block;position:absolute;width:42px;height:42px;left:50%;top:50%;transform:translate(-50%,-50%)}.cg-goods-art svg{display:block;width:100%;height:100%}.cg-goods-pile-3 span{width:35px;height:35px;transform:translate(calc(-50% + (var(--pile-i) - 1)*18px),calc(-50% + (var(--pile-i) - 1)*4px)) rotate(calc((var(--pile-i) - 1)*9deg))}.cg-goods-pile-3 span:nth-child(2){top:32%;z-index:2}.cg-goods-pile-5 span{width:33px;height:33px;transform:translate(calc(-50% + (var(--pile-i) - 2)*13px),calc(-50% + (var(--pile-i) - 2)*3px)) rotate(calc((var(--pile-i) - 2)*7deg))}.cg-goods-pile-5 span:nth-child(2),.cg-goods-pile-5 span:nth-child(4){top:30%;z-index:1}.cg-goods-pile-5 span:nth-child(3){top:64%;z-index:2}.cg-goods-buy{width:100%;min-height:30px;border:2px solid var(--cg-ink);border-radius:9px;background:#a6cd84;color:var(--cg-ink);font-size:12px;font-weight:800;padding:5px 3px;cursor:pointer;transition:transform .12s}.cg-goods-buy:active{transform:scale(.94)}.cg-goods-dialog .cg-purchase-demo{font-size:10px!important;padding:8px;text-align:center;margin:10px 0 0}.cg-goods-dialog .cg-modal-actions:empty{display:none}.cg-goods-confirm{text-align:center;font-size:14px!important;margin:14px 0}.cg-goods-confirm b{font-size:19px}
@media(max-height:580px){.cg-goods-dialog{padding:16px 12px}.cg-goods-dialog h2{font-size:19px;margin-bottom:10px}.cg-goods-row{margin:8px 0 10px}.cg-goods-row h3{font-size:11px;margin-bottom:5px}.cg-goods-card{padding:5px 4px;gap:3px}.cg-goods-art{height:43px}.cg-goods-art span{width:33px;height:33px}.cg-goods-pile-3 span,.cg-goods-pile-5 span{width:27px;height:27px}.cg-goods-card strong{font-size:17px}.cg-goods-buy{font-size:11px;padding:3px;min-height:26px}.cg-shop-target{font-size:11px;margin-bottom:8px}.cg-shop-target select{font-size:12px;padding:5px 8px}.cg-goods-dialog .cg-purchase-demo{padding:6px;margin-top:7px}}
.cg-goods-pile-3 span{width:36%;height:auto;aspect-ratio:1;left:calc(50% + (var(--pile-i) - 1)*22%);transform:translate(-50%,-50%) rotate(calc((var(--pile-i) - 1)*9deg))}.cg-goods-pile-5 span{width:32%;height:auto;aspect-ratio:1;left:calc(50% + (var(--pile-i) - 2)*15%);transform:translate(-50%,-50%) rotate(calc((var(--pile-i) - 2)*7deg))}
