:root{color-scheme:light;--ink:#67472f;--green:#777e55;--paper:#fffaf0;--edge:#decdb5;--base:#f3e8d7}*{box-sizing:border-box}body{margin:0;background:var(--base);color:var(--ink);font:16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}header{max-width:1450px;margin:auto;padding:20px 24px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}h1{font-size:26px;margin:0}h1 span{display:block;font-size:14px;font-weight:400;color:#8d785f}header p{font-size:14px;margin:6px 0 0}.wallet{white-space:nowrap;background:var(--paper);padding:10px 17px;border-radius:22px}.tabs{display:flex;gap:8px;max-width:1400px;margin:auto;padding:4px 0 10px}.tabs button{background:transparent;color:var(--ink)}.tabs button[aria-selected=true]{background:var(--green);color:white}button,.file{font:inherit;border:0;border-radius:12px;background:var(--green);color:white;padding:10px 14px;cursor:pointer;min-height:44px}button:hover{filter:brightness(.95)}button:disabled{opacity:.42;cursor:default}button.quiet{background:#e8dcc5;color:var(--ink);font-size:14px}#notice{max-width:1400px;margin:0 auto 15px;min-height:44px;background:#e6e9d8;border-radius:12px;padding:10px 15px;font-size:14px}main{max-width:1400px;margin:auto;padding-bottom:35px}.tab[hidden]{display:none}.workshop{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);gap:22px;align-items:start}.board-card,.card{border:1px solid var(--edge);background:var(--paper);padding:20px;border-radius:20px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px}h2{font-size:19px;margin:0 0 10px}p{margin:8px 0 14px}.sectionhead span,small,.muted{font-size:14px;color:#87755e}.generators{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 17px}.generators button{background:#eddec7;color:var(--ink);padding:10px 4px;font-size:14px}.generators b{display:block;font-size:27px}.board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;background:#deceb5;padding:9px;border-radius:17px}.cell{aspect-ratio:1;min-width:0;min-height:0;padding:2px;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f8eedc;color:var(--ink);border:2px solid transparent;line-height:1.15}.cell .icon{font-size:clamp(22px,3vw,39px);line-height:1.1}.cell .level{font-size:12px;margin-top:3px}.cell.selected{border-color:#795332;box-shadow:0 0 0 2px #b58b55}.cell.match{border-color:#7c9761}.boardtools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:15px 0 8px}.boardtools span{font-size:14px;flex:1;min-width:160px}aside{display:grid;gap:15px}.order{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px dashed var(--edge)}.order .icon{font-size:32px}.order .label{flex:1}.order small{display:block}.order button{font-size:14px;padding:8px 12px}.mini-scene{position:relative;aspect-ratio:1448/1086;overflow:hidden;border-radius:12px}.mini-scene img,.shop-scene img{position:absolute;object-fit:fill;pointer-events:none}.mini-scene .room-art,.shop-scene .room-art{inset:0;width:100%;height:100%}.roomtabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.roomtabs button{background:#e6d9c2;color:var(--ink)}.roomtabs button.active{background:var(--green);color:white}.home-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px;align-items:start}.shop-scene{position:relative;width:100%;aspect-ratio:1448/1086;overflow:hidden;border-radius:20px;background:#fde8cf}.caption{font-size:14px;display:flex;gap:10px;justify-content:space-between;padding:10px 4px}.caption span:last-child{max-width:65%}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.shop-item{display:flex;gap:10px;align-items:center;border-bottom:1px dashed var(--edge);padding:12px 0}.shop-item img{width:75px;height:80px;object-fit:contain}.shop-item .label{flex:1}.shop-item small{display:block}.shop-item button{padding:9px 11px;font-size:14px}.collection{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.collection button{background:#e8dcc5;color:var(--ink);font-size:14px}.collection button.placed{background:var(--green);color:white}.life-layout{display:grid;grid-template-columns:1fr 1.5fr;gap:20px;align-items:start}.journal-entry{border-bottom:1px dashed var(--edge);padding:10px 0}.journal-entry p{margin:5px 0}.journal-entry small{font-size:13px}.settings{max-width:800px;margin:auto}.settings h2:not(:first-child){margin-top:24px}input[type=file]{display:block;max-width:100%;font-size:14px}.file{background:#e8dcc5;color:var(--ink)}select{font:inherit;padding:8px;border:1px solid var(--edge);border-radius:8px;background:var(--paper);color:var(--ink)}summary{cursor:pointer}.badge{display:inline-block;margin:4px;padding:5px 10px;border-radius:10px;background:#eee3cb;font-size:14px}@media(min-width:1000px){.board-card{position:sticky;top:15px}}@media(max-width:1450px){main,.tabs,#notice{margin-left:24px;margin-right:24px}}@media(max-width:780px){header{padding:15px 12px 8px}h1{font-size:22px}h1 span{font-size:13px}.wallet{font-size:14px;padding:8px 12px}.tabs,#notice,main{margin-left:12px;margin-right:12px}.tabs{gap:4px;justify-content:space-between}.tabs button{font-size:14px;padding:8px 10px}.workshop,.home-layout,.life-layout{grid-template-columns:1fr;gap:14px}.board-card,.card{padding:14px}.board{gap:5px;padding:6px}.cell .icon{font-size:clamp(22px,6.6vw,36px)}.cell .level{font-size:11px}.workshop aside{display:flex;flex-direction:column}.workshop aside .card{width:100%}#miniHome{max-width:400px}.generators{gap:6px}.generators button{font-size:13px}#notice{font-size:14px;margin-bottom:12px}.caption{flex-direction:column}.caption span:last-child{max-width:100%}}@media(display-mode:standalone){body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}}

#notice:empty{display:none}.generator-card{min-width:0}.generator-card>button:first-child{width:100%;display:flex;flex-direction:column;align-items:center;gap:3px}.generator-card small{display:block;color:#73664e;font-size:14px;font-variant-numeric:tabular-nums}.generators .generator-refill{background:#778058;color:white;width:100%;margin-top:5px;padding:7px 2px;font-size:13px}.generators button[hidden]{display:none}.generators button.cooling{opacity:.7}.boardtools #selection:empty{display:none}header h1{line-height:1.4}

/* Resource choices and compact orders stay in view above the merge board. */
.resources{display:grid;grid-template-columns:auto auto;align-items:center;gap:0 10px}.energybox{background:#e2e8cc;color:#53643a;padding:7px 10px;display:flex;align-items:center;gap:6px;min-height:38px;white-space:nowrap;font-size:14px}.energy-plus{font-weight:700;font-size:18px}.energy-timer{grid-column:1;grid-row:2;text-align:center;font-size:12px;color:#7a7d61;font-variant-numeric:tabular-nums}.resources .wallet{grid-column:2;grid-row:1 / 3;padding:9px 13px}.orders-panel{margin-bottom:14px}.orders-panel>.sectionhead{margin-bottom:8px}.orders-panel h2{margin:0}.orders-panel #orders{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:1px 1px 5px}.order-card{background:var(--paper);border:1px solid var(--edge);border-radius:16px;padding:12px;flex:1;min-width:220px;scroll-snap-align:start}.order-card.ready{border-color:#839b61;background:#f4f6e8}.order-heading{display:flex;justify-content:space-between;gap:8px;font-size:14px}.order-heading>span{white-space:nowrap;color:#8b6a36}.order-items{display:flex;gap:7px;margin:9px 0;min-height:72px;justify-content:space-around}.order-need{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-width:0;background:#f2e7d5;border-radius:10px;padding:5px 3px}.order-need.done{background:#dce7c8}.need-icon{font-size:29px;line-height:1.15}.need-name{font-size:12px;white-space:nowrap}.need-count{position:absolute;right:3px;top:1px;font-size:12px;line-height:1.4;color:#536c38;font-weight:650}.order-card>button{width:100%;padding:5px 8px;min-height:34px;font-size:14px}.cell{position:relative}.cell.order-needed{background-image:linear-gradient(#bad59333,#bad59333)}.order-check{position:absolute;right:2px;bottom:1px;font-size:15px;line-height:1;color:#4f7338;font-weight:800;text-shadow:0 1px #fff}dialog{border:1px solid var(--edge);border-radius:20px;padding:22px;background:var(--paper);color:var(--ink);width:min(360px,calc(100% - 32px))}dialog::backdrop{background:#352a2055}dialog h2{margin:0}dialog>button{width:100%}
@media(max-width:780px){header{gap:6px;align-items:start}header h1{font-size:21px}header p{font-size:12px;white-space:nowrap}.resources{gap:0 5px}.resources .wallet{font-size:13px;padding:8px 9px}.energybox{font-size:13px;padding:6px 8px}.energy-timer{font-size:11px}.order-card{min-width:190px;flex:0 0 64%;padding:10px}.order-items{min-height:62px;margin:7px 0}.order-card>button{min-height:32px}.orders-panel{margin-bottom:10px}.generators{margin:9px 0 10px}.generators b{font-size:23px}.generator-card>button:first-child{padding:7px 3px;gap:0}.board-card> .sectionhead h2{font-size:17px}.board-card{padding:11px}.boardtools{margin:10px 0 0}.boardtools button{padding:7px 10px;font-size:13px}.orders-panel h2{font-size:17px}}
@media(max-width:370px){header{flex-wrap:wrap}.resources{margin-left:auto}.order-card{flex-basis:72%}}

.workshop-cell{border-color:#a08353;box-shadow:inset 0 0 0 1px #fff8df}.workshop-part{border-style:dashed;border-color:#c3a77c}.workshop-badge{position:absolute;left:2px;top:2px;font-size:12px;line-height:1}.cell-charge{position:absolute;right:2px;bottom:2px;font-size:10px;font-weight:650;line-height:1.15;background:#fff8e6e8;border-radius:4px;padding:1px 2px;color:#664b2e;font-variant-numeric:tabular-nums}.workshop-cell.cooling{filter:saturate(.6);opacity:.85}.workshop-cell.cooling .cell-charge{font-size:9px;color:#925f41}.item-panel{display:flex;flex-direction:column;justify-content:center;min-height:50px;margin-top:8px;padding:8px 10px;background:#eee3ce;border-radius:12px}.item-panel:has(#selection:empty){display:none}.item-panel strong{font-size:14px}.item-panel>span{font-size:13px;color:#887252}.item-panel>span:empty{display:none}.board-card>.sectionhead{margin-bottom:10px}.boardtools{gap:7px}.cell.selected{z-index:1}.cell.new-drop{box-shadow:inset 0 0 0 2px #c79759}.workshop-cell .icon{font-size:clamp(22px,3vw,34px)}
@media(max-width:780px){.workshop-cell .icon{font-size:25px}.workshop-part .icon{font-size:24px}.workshop-cell .level{font-size:10px;align-self:flex-start;margin-left:2px}.cell-charge{font-size:10px}.board-card>.sectionhead{margin-bottom:8px}}

.workshop-bolt{position:absolute;right:2px;top:2px;font-size:12px;line-height:1}

.workshop-cell .level,.workshop-part .level{position:absolute;left:2px;bottom:2px;margin:0;font-size:10px;line-height:1.15}.workshop-cell .icon,.workshop-part .icon{margin-bottom:5px}.workshop-cell .cell-charge{max-width:29px;font-size:9px}

#board .cell{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.drag-ghost{position:fixed;left:0;top:0;z-index:10000;pointer-events:none;opacity:.95;box-shadow:0 6px 16px #67472f55;transform-origin:center;border:2px solid #ae8754!important}.drag-source{opacity:.3}.cell.drop-valid{outline:3px solid #6f9152;outline-offset:-3px}.cell.drop-invalid{outline:3px solid #bd897b;outline-offset:-3px}.wish-target{display:flex;align-items:center;gap:12px}.wish-target>img{width:90px;height:95px;object-fit:contain}.wish-target strong{font-size:17px}.wish-target p{font-size:14px;color:#87755e;margin:5px 0}.wish-track{height:7px;background:#e8ddc8;border-radius:8px;overflow:hidden;margin-bottom:12px}.wish-track>div{height:100%;background:#86965f}.wish-card>button{width:100%}.wish-card #wishGap{margin-top:12px;font-weight:600}.wish-card #wishMemory{font-size:14px}.wish-card #wishMemory:empty{display:none}.orders-panel{scroll-margin-top:12px}

#notice{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);margin:0;width:max-content;max-width:calc(100vw - 24px);z-index:200;pointer-events:none;box-shadow:0 4px 18px #67472f22;text-align:center}

.special-order{border-color:#bca16b;background:#fff7e2}.order-promise{font-size:12px;line-height:1.35;min-height:33px;margin:6px 0;color:#8b6a45}.reward-badge{position:absolute;right:2px;bottom:2px;border-radius:4px;padding:1px 3px;font-size:10px;font-weight:650;line-height:1.15;background:#fff8e8ed;color:#6b713e}.reward-cell .level{align-self:flex-start;margin-left:2px;font-size:10px}.reward-cell .icon{margin-bottom:3px}.energy-timer{white-space:nowrap}#consumeReward{background:#7d8d51}

/* Persistent phone preview, independent of the desktop browser width. */
html:has(body.phone-preview){background:#ded8cd}body.phone-preview{width:min(100%,390px);max-width:390px;margin:0 auto;min-height:100vh;box-shadow:0 0 0 1px #d4c8b7,0 12px 50px #5e4d3520}
body.phone-preview header{padding:15px 12px 8px}
body.phone-preview h1{font-size:22px}
body.phone-preview h1 span{font-size:13px}
body.phone-preview .wallet{font-size:14px;padding:8px 12px}
body.phone-preview .tabs,body.phone-preview #notice,body.phone-preview main{margin-left:12px;margin-right:12px}
body.phone-preview .tabs{gap:4px;justify-content:space-between}
body.phone-preview .tabs button{font-size:14px;padding:8px 10px}
body.phone-preview .workshop,body.phone-preview .home-layout,body.phone-preview .life-layout{grid-template-columns:1fr;gap:14px}
body.phone-preview .board-card,body.phone-preview .card{padding:14px}
body.phone-preview .board{gap:5px;padding:6px}
body.phone-preview .cell .icon{font-size:clamp(22px,6.6vw,36px)}
body.phone-preview .cell .level{font-size:11px}
body.phone-preview .workshop aside{display:flex;flex-direction:column}
body.phone-preview .workshop aside .card{width:100%}
body.phone-preview #miniHome{max-width:400px}
body.phone-preview .generators{gap:6px}
body.phone-preview .generators button{font-size:13px}
body.phone-preview #notice{font-size:14px;margin-bottom:12px}
body.phone-preview .caption{flex-direction:column}
body.phone-preview .caption span:last-child{max-width:100%}
body.phone-preview header{gap:6px;align-items:start}
body.phone-preview header h1{font-size:21px}
body.phone-preview header p{font-size:12px;white-space:nowrap}
body.phone-preview .resources{gap:0 5px}
body.phone-preview .resources .wallet{font-size:13px;padding:8px 9px}
body.phone-preview .energybox{font-size:13px;padding:6px 8px}
body.phone-preview .energy-timer{font-size:11px}
body.phone-preview .order-card{min-width:190px;flex:0 0 64%;padding:10px}
body.phone-preview .order-items{min-height:62px;margin:7px 0}
body.phone-preview .order-card>button{min-height:32px}
body.phone-preview .orders-panel{margin-bottom:10px}
body.phone-preview .generators{margin:9px 0 10px}
body.phone-preview .generators b{font-size:23px}
body.phone-preview .generator-card>button:first-child{padding:7px 3px;gap:0}
body.phone-preview .board-card> .sectionhead h2{font-size:17px}
body.phone-preview .board-card{padding:11px}
body.phone-preview .boardtools{margin:10px 0 0}
body.phone-preview .boardtools button{padding:7px 10px;font-size:13px}
body.phone-preview .orders-panel h2{font-size:17px}
body.phone-preview .workshop-cell .icon{font-size:25px}
body.phone-preview .workshop-part .icon{font-size:24px}
body.phone-preview .workshop-cell .level{font-size:10px;align-self:flex-start;margin-left:2px}
body.phone-preview .cell-charge{font-size:10px}
body.phone-preview .board-card>.sectionhead{margin-bottom:8px}
body.phone-preview .board-card{position:static}body.phone-preview .cell .icon{font-size:26px}body.phone-preview .workshop-cell .icon{font-size:25px}body.phone-preview .workshop-part .icon{font-size:24px}body.phone-preview #notice{max-width:min(366px,calc(100vw - 24px))}body.phone-preview dialog{max-width:358px}

.energy-timer:empty{display:none}

/* A small, quiet furniture wish card. */
.wish-card{padding:16px!important}.wish-card h2{font-size:17px;margin:0 0 13px}.wish-card .wish-target{gap:12px;align-items:center}.wish-art{width:68px;height:68px;flex:0 0 68px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:#f3eadb}.wish-art[hidden]{display:none}.wish-art>img{width:50px;height:54px;object-fit:contain;display:block}.wish-copy{min-width:0;flex:1}.wish-card .wish-target strong{display:block;font-size:16px;font-weight:600;line-height:1.45}.wish-card .wish-target p{font-size:14px;line-height:1.5;margin:4px 0 0;color:#91816a}.wish-budget{margin-top:13px}.wish-card #wishGap{font-size:14px;line-height:1.5;font-weight:500;margin:0 0 8px}.wish-card .wish-track{height:4px;margin:0 0 14px;border-radius:4px;background:#e8dfce}.wish-card .wish-track>div{border-radius:4px;background:#929e72}.wish-card #wishMemory{font-size:14px;margin:0 0 11px;line-height:1.5}.wish-card>button{min-height:40px;padding:8px 12px;font-size:14px;border-radius:11px}

/* Shared phone typography and card actions. */
body.phone-preview{--section-size:17px;--body-size:14px;--action-size:14px}
body.phone-preview h2,body.phone-preview .orders-panel h2,body.phone-preview .board-card>.sectionhead h2,body.phone-preview .wish-card h2{font-size:var(--section-size);font-weight:650;line-height:1.5}
body.phone-preview .card{padding:16px}
body.phone-preview .card h2{margin-bottom:13px}
body.phone-preview .card p,body.phone-preview .caption{font-size:var(--body-size);line-height:1.6}
body.phone-preview .card>button{width:100%;min-height:40px;padding:8px 12px;border-radius:11px;font-size:var(--action-size);font-weight:500;line-height:1.6}
body.phone-preview .order-card>button,body.phone-preview .shop-item button{font-size:var(--action-size);font-weight:500}

body.phone-preview .cell .icon:has(img){width:32px;height:32px;display:flex;align-items:center;justify-content:center}
.cell .icon img{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.need-icon:has(img){width:38px;height:38px;display:flex;align-items:center;justify-content:center}
.need-icon img{width:100%;height:100%;object-fit:contain;pointer-events:none}

/* Keep board artwork centered; corner status badges do not affect its position. */
#board .cell{display:flex;align-items:center;justify-content:center}
#board .cell .icon{margin:0;flex-shrink:0}
#board .cell .level{display:none}

#board .workshop-cell .cell-charge{left:50%;right:auto;bottom:2px;transform:translateX(-50%);max-width:none;white-space:nowrap;min-width:30px;text-align:center;padding:1px 3px;font-size:9px;line-height:1.2;font-weight:500;background:#fff8eee8;color:var(--ink)}
#board .cell-charge[hidden]{display:none}

.paw-icon{width:14px;height:14px;object-fit:contain;vertical-align:-2px}
.order-heading>span{display:inline-flex;align-items:center;gap:3px}
body.phone-preview .order-promise{min-height:0;height:17px;line-height:17px;margin:4px 0 6px;white-space:nowrap;font-size:12px;letter-spacing:0}
body.phone-preview .order-card{display:flex;flex-direction:column}
body.phone-preview .order-card>button{margin-top:auto}
body.phone-preview .order-items{margin:6px 0 0}

.board-actions{display:flex;gap:6px}.board-actions .icon-button{width:32px;min-height:32px;padding:6px;border-radius:10px;background:#eee3ce}.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}#bagItems{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.bag-slot{aspect-ratio:1;padding:8px;min-width:0;background:#f0e5d2;color:var(--ink)}.bag-slot img{width:100%;height:100%;object-fit:contain}.bag-slot:disabled{opacity:1;background:#f4ecdf}#bagStore{width:100%}.boardtools:has(>button:not([hidden])){margin-top:10px}.boardtools:has(>button):not(:has(>button:not([hidden]))){display:none}

/* Keep both resource pills on the same row; the timer occupies its own row. */
body.phone-preview .resources{grid-template-rows:38px auto;align-items:start;row-gap:2px}
body.phone-preview .resources .energybox{grid-column:1;grid-row:1;height:38px;min-height:38px;padding:6px 8px;align-items:center;justify-content:center}
body.phone-preview .resources .wallet{grid-column:2;grid-row:1;height:38px;padding:6px 9px;display:flex;align-items:center;justify-content:center;gap:4px;line-height:1}
body.phone-preview .resources .energy-timer{grid-column:1;grid-row:2;line-height:1.4}

.orders-panel #orders{scrollbar-width:none;-ms-overflow-style:none}
.orders-panel #orders::-webkit-scrollbar{display:none;width:0;height:0}

.board-actions #bagOpen{padding:1px;background:transparent;width:36px;height:36px;overflow:visible}
#bagOpen img{width:34px;height:34px;display:block;pointer-events:none}
#bagOpen.bag-drop-ready{background:#dce7c8;box-shadow:0 0 0 2px #839b61}
#bagOpen.bag-drop-full{background:#f1d7cf;box-shadow:0 0 0 2px #b58b78}
.need-count:empty{display:none}.need-count{right:4px;top:3px;font-size:14px}

.board-actions #bagOpen,.board-actions #trashOpen{width:36px;height:36px;min-height:36px;padding:7px;border-radius:10px;background:#eee3ce;color:#70553c;display:flex;align-items:center;justify-content:center}
.board-actions .icon-button svg{width:22px;height:22px;stroke-width:1.8}
.board-actions #bagOpen.bag-drop-ready{background:#dce7c8;box-shadow:0 0 0 2px #839b61}
.board-actions #trashOpen.trash-drop-ready{background:#edd9ca;box-shadow:0 0 0 2px #aa7960}
.board-actions #trashOpen.trash-drop-invalid{opacity:.5}

.order-need{color:var(--ink);font-weight:400;border:0;cursor:pointer;line-height:1.6}
.order-need:focus-visible{outline:2px solid #839b61;outline-offset:2px}
#sourceArt{display:flex;align-items:center;justify-content:center;gap:28px;margin:18px 0 12px}
#sourceArt img{width:64px;height:64px;object-fit:contain}
#sourceText{font-size:14px;margin-bottom:6px}#sourceRecipe{font-size:14px;line-height:1.6}
#board .source-highlight{outline:3px solid #839b61;outline-offset:1px;box-shadow:0 0 0 5px #baca9e66}

.dialog-close{width:32px;min-height:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;font-size:23px;line-height:1;border-radius:10px;background:transparent!important;color:var(--ink)}

button.quiet.dialog-close{font-size:23px}

.order-need{cursor:default}
.order-need .item-info{position:absolute;right:2px;top:2px;width:22px;height:22px;min-height:22px;padding:0;border-radius:50%;background:transparent;color:#88765d;font:italic 600 12px Georgia,serif;display:flex;align-items:center;justify-content:center}
.item-info::before{content:'';position:absolute;width:12px;height:12px;border:1px solid currentColor;border-radius:50%}
.order-need .need-count{right:25px;top:3px}
#sourceArt{gap:15px;margin:18px 0}
.source-tile{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:115px;text-align:center}
.source-tile span{font-size:12px;line-height:1.4}
.source-arrow{font-size:25px;color:#a38b6e;align-self:center;margin-bottom:22px}
#sourceText{text-align:center;margin:0;font-size:14px}

#sourceText{border-top:1px solid #e8ddcb;padding-top:12px;color:#87755e;font-size:12px}.source-factory{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:6px;color:var(--ink);font-size:14px}.source-factory img{width:48px;height:48px;object-fit:contain}

.source-factory{flex-direction:column;gap:4px;text-align:center;font-size:12px;line-height:1.4;margin-top:8px}

.order-need .item-info{width:22px;height:22px;right:1px;top:1px;color:#9b927e;font:500 9px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0}
.order-need .item-info::before{width:10px;height:10px;border-width:.8px;opacity:.8}
.order-need .item-info:hover{color:#705e43;filter:none;background:transparent}
.order-need .item-info:focus-visible{outline:1px solid #a7987f;outline-offset:-3px}

.order-need .item-info{width:24px;height:24px;min-height:24px;right:0;top:0;padding:5px;color:#a39680;display:flex;align-items:center;justify-content:center;background:transparent;border-radius:8px}
.order-need .item-info::before{content:none}
.item-info svg{width:13px;height:13px;display:block;flex:none;pointer-events:none}
.order-need .item-info:hover{background:#e5dbc34d;color:#796b55}

body.phone-preview .order-promise:empty{height:0;min-height:0;margin:3px 0}
body.phone-preview .order-card>button{margin-top:4px}
.orders-panel #orders{align-items:flex-start}

.orders-panel #orders{align-items:stretch;padding-bottom:0}
body.phone-preview .order-card>button{margin-top:9px}
.order-whisper{font-size:12px;line-height:1.5;color:#947b59;margin:7px 3px 0;padding:0}
.order-whisper[hidden]{display:none}

.order-heading>b{display:flex;align-items:center;gap:3px}
.reward-chat-open{padding:0;width:24px;min-height:24px;height:24px;background:transparent;font-size:15px;line-height:1;border-radius:6px;display:inline-flex;align-items:center;justify-content:center}
#rewardChat{padding:30px 22px 24px}#rewardChatClose{position:absolute;right:9px;top:8px}
.reward-chat-body{display:flex;gap:14px;align-items:center;margin-top:12px}
.guiyuan-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:50%;background:#efe4cd;overflow:hidden;position:relative}
.guiyuan-avatar img{position:absolute;width:120px;height:120px;max-width:none;left:-28px;top:-3px}
.reward-chat-copy{min-width:0}.reward-chat-copy strong{font-size:13px;color:#8f795c;font-weight:500}.reward-chat-copy p{font-size:15px;line-height:1.6;margin:4px 0 0}

.guiyuan-avatar img{left:-10px}

.order-card{position:relative}
#rewardChat{position:absolute;inset:auto 7px 7px;margin:0;width:calc(100% - 14px);max-width:none;padding:12px 10px;border-radius:13px;border:1px solid #d9c8ac;box-shadow:0 3px 12px #67472f20;background:#fffaf0;z-index:5}
#rewardChatClose{right:1px;top:0;width:22px;height:22px;min-height:22px;font-size:17px}
#rewardChat .reward-chat-body{gap:8px;margin:0;align-items:center;padding-right:6px}
#rewardChat .guiyuan-avatar{width:36px;height:36px;flex-basis:36px}
#rewardChat .guiyuan-avatar img{width:80px;height:80px;left:-9px;top:-3px}
#rewardChat .reward-chat-copy strong{display:none}
#rewardChat .reward-chat-copy p{font-size:12px;line-height:1.5;margin:0}

#rewardShade{position:fixed;inset:0;z-index:90;background:#352b2259}
#rewardShade[hidden]{display:none}
#rewardChat{position:fixed;inset:auto;width:216px;max-width:calc(100vw - 32px);transform:translate(-50%,-50%);z-index:91;padding:15px 12px;border-radius:14px;box-shadow:0 6px 24px #3c2c2526}

#rewardChat[open]{display:flex;align-items:center}#rewardChat .reward-chat-body{width:100%}

body.phone-preview .board-card>.sectionhead{align-items:center;margin-bottom:8px;min-height:26px}
body.phone-preview .board-card>.sectionhead h2{margin:0;line-height:26px}
.board-actions{gap:5px;align-items:center}
.board-actions #bagOpen,.board-actions #trashOpen{width:26px;height:26px;min-height:26px;padding:3px;border-radius:7px}
.board-actions .icon-button svg{width:20px;height:20px}

#trashDialog .actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 0}#trashDialog .actions button{width:100%;font-size:14px;font-weight:500;line-height:1.5;min-height:40px;padding:9px 12px;border-radius:11px}

#trashDialog #trashActions[hidden]{display:none}#trashDialog>.sectionhead{margin-bottom:10px}#trashDialog>.sectionhead h2{margin:0}#trashDialog>p{font-size:14px;line-height:1.6;margin:0 0 2px}

.order-card{min-width:0;box-sizing:border-box;overflow:hidden}
body.phone-preview .order-card{min-width:190px}
.order-items{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;gap:6px;min-width:0}
.order-items>.order-need{width:100%;min-width:0;padding:5px 2px;box-sizing:border-box;overflow:hidden}
.order-items .need-name{max-width:100%;font-size:11px;line-height:1.5;white-space:normal;text-align:center}
.order-items:has(>.order-need:nth-child(3)) .need-icon{width:32px;height:32px}
.order-items:has(>.order-need:nth-child(3)) .need-count{right:auto;left:4px;top:3px;font-size:12px}
.order-items:has(>.order-need:nth-child(3)) .item-info{right:0;top:0;width:20px;height:20px;min-height:20px;padding:4px}

.order-items>.order-need{cursor:pointer;color:var(--ink);font-weight:400;border:0;border-radius:10px}
.order-items .need-count,.order-items:has(>.order-need:nth-child(3)) .need-count{left:auto;right:4px;top:3px;font-size:13px}
.order-items .item-info{display:none}
.order-items .order-need:focus-visible{outline:2px solid #839b61;outline-offset:-2px}

.item-panel{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:42px}.item-panel strong{flex:0 1 auto;min-width:0}.item-panel>span{margin-left:auto;text-align:right;font-size:12px;line-height:1.5;flex:0 1 auto}

.board-actions #bagOpen{background:transparent;padding:0;width:28px;height:28px;min-height:28px}
.board-actions #bagOpen img{width:28px;height:28px;display:block}
.item-panel #trashOpen{flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:4px;background:#e2d4bb;color:#78573b;border-radius:8px;display:flex;align-items:center;justify-content:center}
.item-panel #trashOpen svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.item-panel #trashOpen.trash-drop-ready{background:#edd9ca;box-shadow:0 0 0 2px #aa7960}
.item-panel #trashOpen.trash-drop-invalid{opacity:.5}
.item-panel{gap:8px;padding:7px 9px}

.item-panel #trashOpen[hidden]{display:none}

#sourceDialog{padding:18px 16px;max-height:calc(100dvh - 32px);overflow-y:auto}
#sourceDialog>.sectionhead{align-items:center}#sourceDialog h2{font-size:17px;line-height:1.5}
#sourceLevel{font-size:12px;color:#95816a;line-height:1.5;margin:2px 0 0}
#sourceArt{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px;margin:17px 0 18px;align-items:stretch}
.chain-tile{position:relative;min-width:0;padding:12px 3px 7px;background:#f2e8d7;border:1.5px solid transparent;border-radius:12px;color:var(--ink);display:flex;flex-direction:column;align-items:center;gap:6px;min-height:88px}
.chain-tile img{width:44px!important;height:44px!important;object-fit:contain;pointer-events:none}
.chain-tile>span{font-size:10px;line-height:1.4;text-align:center;min-height:28px;display:flex;align-items:center;justify-content:center}
.chain-tile.current{border-color:#879764;background:#e2e9ce;box-shadow:0 0 0 1px #87976422}
.chain-rank{position:absolute;left:5px;top:3px;font-size:9px;color:#a28b6e;line-height:1}
.chain-count{position:absolute;right:-3px;top:-5px;min-width:18px;height:18px;line-height:18px;padding:0 4px;font-size:10px;background:#839365;color:#fffaf0;border-radius:9px;font-weight:600;box-shadow:0 0 0 2px var(--paper)}
#sourceText{padding-top:12px;text-align:center}#sourceText .source-factory{margin-top:7px;gap:4px}#sourceText .source-factory img{width:48px;height:48px}#sourceText .source-factory span{font-size:12px}

.chain-tile{cursor:default}.chain-tile:hover{filter:none}

.chain-count{width:18px;height:18px;min-width:18px;padding:0;display:flex;align-items:center;justify-content:center;line-height:1;border-radius:50%;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-variant-numeric:tabular-nums;font-size:10px;font-weight:600;letter-spacing:0}

#sourceArt{margin-top:20px;gap:12px 8px}
.chain-tile{min-height:94px;padding:20px 3px 12px;justify-content:center;gap:2px}
.chain-tile>span{min-height:0;display:block;font-size:10px;line-height:1.4;margin:0}
.chain-tile img{display:block;flex-shrink:0;margin:0}
#sourceText{border-top:0;padding-top:0;margin-top:3px}
#sourceText>span{display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px;line-height:1.5;color:#95816a}
#sourceText>span::before,#sourceText>span::after{content:'';height:1px;background:#e4d7c3;flex:1}
#sourceText .source-factory{margin-top:10px;gap:3px}

.source-heading{display:flex;align-items:baseline;gap:8px;min-width:0}#sourceDialog .source-heading h2{margin:0}#sourceDialog #sourceLevel{margin:0;font-size:12px;line-height:1.5;color:#95816a}.chain-tile{border-radius:8px}

.roomtabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:12px}
.roomtabs button{min-width:0;padding:8px 2px;min-height:53px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:13px;line-height:1.4;white-space:nowrap}
.roomtabs button small{font-size:9px;line-height:1.3;color:inherit;white-space:nowrap}
.roomtabs button:disabled{opacity:.65}

.roomtabs button{min-height:40px;padding:8px 2px}.roomtabs button.locked{color:#a9957d;background:#ece1cf}#roomUnlockDialog h2{margin:0;font-size:17px}#roomUnlockText{font-size:14px;line-height:1.6;margin:12px 0 0}

dialog.context-dialog{position:fixed;inset:auto;margin:0;transform:none;max-height:calc(100dvh - 24px);overflow-y:auto}

.room-info{padding:12px 2px 0}
.room-info-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;line-height:1.5}
.room-info-head strong{font-weight:600}.room-info-head>span{font-size:12px;color:#95816a;font-variant-numeric:tabular-nums}
.room-info #dogStatus{font-size:12px;line-height:1.5;color:#95816a;margin:5px 0 12px}
.room-collection{border-top:1px solid #dfd1bd;border-bottom:1px solid #dfd1bd}
.room-collection summary{display:flex;align-items:center;justify-content:space-between;padding:11px 0;font-size:13px;line-height:1.5;list-style:none}
.room-collection summary::-webkit-details-marker{display:none}
.collection-toggle{font-size:11px;color:#95816a;display:flex;align-items:center;gap:7px}.collection-toggle::after{content:'⌄';font-size:14px}
.room-collection[open] .collection-toggle{font-size:0}.room-collection[open] .collection-toggle::after{content:'⌃';font-size:14px}
.room-collection .collection{margin:0;padding:0 0 12px;gap:6px;font-size:12px;color:#95816a}
.room-collection .collection button{font-size:12px;padding:6px 9px;min-height:32px;border-radius:8px}
.room-rewards{margin:10px 0 0;gap:8px}.room-rewards[hidden],.room-rewards button[hidden]{display:none}
.room-rewards button{font-size:12px;min-height:34px;padding:7px 11px;background:#e4dbc6;color:#74583b;border-radius:9px}

.collection-tools{display:flex;align-items:center;justify-content:space-between;margin:0 0 5px;padding-top:1px;color:#95816a;font-size:11px}
.collection-tools #refresh{font-size:11px;padding:4px 8px;min-height:28px;border-radius:7px}
.room-collection #collection{display:block;max-height:350px;overflow-y:auto;overscroll-behavior:contain;padding:0 3px 0 0;scrollbar-width:thin;scrollbar-color:#d4c6ae transparent}
.furniture-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #e6dac8;min-height:77px}
.furniture-row>img{width:53px;height:53px;object-fit:contain;flex:0 0 53px}
.furniture-row.unowned>img{filter:grayscale(1);opacity:.45}
.furniture-copy{flex:1;min-width:0}.furniture-copy strong{display:block;font-size:13px;font-weight:500;line-height:1.5}.furniture-copy small{display:block;font-size:11px;line-height:1.5;margin-top:3px;color:#95816a}
.room-collection .furniture-row>button{flex:0 0 auto;min-width:50px;padding:6px 9px;font-size:12px;min-height:32px;border-radius:8px}

.mini-shop{margin-top:14px}.mini-shop .collection-tools{padding:0;margin:0 0 8px}.mini-shop .collection-tools strong{font-size:13px;font-weight:500;color:var(--ink)}
#miniShop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mini-shop-item{padding:8px 6px;background:#fff8eb;border:1px solid #e3d5bf;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.mini-shop-item img{width:48px;height:48px;object-fit:contain}.mini-shop-item>span{font-size:10px;text-align:center;line-height:1.4;min-height:28px;display:flex;align-items:center;justify-content:center}
.mini-shop-item button{width:100%;padding:4px 3px;min-height:27px;font-size:11px;border-radius:7px;line-height:1.5}.shop-empty{grid-column:1/-1;font-size:12px;color:#95816a;margin:5px 0}

.room-collection{padding-top:12px}
body.phone-preview .room-collection>h2,body.phone-preview .mini-shop .collection-tools>strong{font-size:17px;font-weight:650;line-height:1.5;margin:0}
.room-collection>h2{padding-bottom:8px}
.room-collection #collection{max-height:300px}
.mini-shop .collection-tools{margin-bottom:8px}

.roomtabs button{min-height:44px;gap:2px}.roomtabs button #roomProgress{font-size:10px;opacity:.8}
.room-dog-message{display:flex;align-items:center;gap:9px;margin:0 0 12px}
.room-dog-message .guiyuan-avatar{width:34px;height:34px;flex-basis:34px;background:#eee3cf}
.guiyuan-avatar img,#rewardChat .guiyuan-avatar img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;display:block}
.room-info .room-dog-message #dogStatus{margin:0;font-size:12px;line-height:1.5;color:#88745a}

.furniture-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:8px}.furniture-section-head h2{font-size:17px;font-weight:650;line-height:1.5;margin:0}.furniture-section-head #roomProgress{font-size:12px;line-height:1.5;color:#95816a;white-space:nowrap}.roomtabs button{min-height:40px}

body.phone-preview{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
body.phone-preview .tabs.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,390px);max-width:390px;margin:0;padding:7px 12px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#fffaf0f7;border-top:1px solid #dfd1bd;z-index:40;box-shadow:0 -3px 14px #67472f06}
body.phone-preview .bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;color:#a18d73;border-radius:10px;padding:4px;min-height:48px;font-size:11px;line-height:1.3}
body.phone-preview .bottom-nav button[aria-selected=true]{background:transparent;color:#6b774b;font-weight:600}
.bottom-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav svg circle{fill:var(--paper)}
body.phone-preview .roomtabs{gap:0;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid #dfd1bd;margin:5px 0 12px}
body.phone-preview .roomtabs button{position:relative;background:transparent;border-radius:0;color:#8f795f;min-height:40px;padding:8px 2px;font-size:13px;font-weight:400}
body.phone-preview .roomtabs button.active{background:transparent;color:#667349;font-weight:600}
body.phone-preview .roomtabs button.active::after{content:'';position:absolute;bottom:-1px;left:27%;right:27%;height:2px;border-radius:2px;background:#7e8d5d}
body.phone-preview .roomtabs button.locked{background:transparent;color:#baaa95}
body.phone-preview main{padding-bottom:20px}

.room-collection #collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:328px;overflow-y:auto;padding:2px 3px 8px 0;align-items:stretch}
.furniture-row{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 6px 7px;min-height:148px;min-width:0;border:1px solid #e3d6c1;border-radius:10px;background:#fff9ed}
.furniture-row.owned{background:#f8f3e5}
.furniture-row>img{width:53px;height:53px;flex:0 0 53px;margin:0}
.furniture-copy{width:100%;flex:1;min-width:0;text-align:center}
.furniture-copy strong{font-size:11px;line-height:1.4;min-height:30px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere;font-weight:500}
.furniture-copy small{font-size:10px;line-height:1.4;min-height:14px;margin-top:2px}
.room-collection .furniture-row>button{width:100%;min-width:0;min-height:28px;padding:5px 3px;font-size:11px;line-height:1.5;border-radius:7px;flex:0 0 auto;margin:0}
.furniture-row.unowned>img{filter:grayscale(1);opacity:.5}

.furniture-copy strong{font-size:10px;line-height:1.35;min-height:0;display:block}.furniture-copy small{font-size:9px;line-height:1.35;min-height:0;margin-top:1px}.furniture-copy{display:flex;flex-direction:column;justify-content:center;gap:0}

.furniture-row{gap:6px;min-height:0}.furniture-copy{display:contents}.furniture-copy strong{width:100%;margin:0;line-height:14px;min-height:14px;text-align:center}.furniture-copy small{width:100%;margin:0;line-height:12px;min-height:12px;text-align:center}.room-collection .furniture-row>button{margin:0}

.life-current-row{display:flex;align-items:center;gap:10px}
.life-current-row .guiyuan-avatar{width:44px;height:44px;flex-basis:44px}
.life-current-copy{flex:1;min-width:0}.life-current-copy small{font-size:11px;color:#95816a;line-height:1.4}
body.phone-preview .life-current-copy p{font-size:13px;line-height:1.5;margin:3px 0 0}
.life-current-row>button{flex:0 0 auto;min-height:34px;padding:7px 10px;font-size:12px;line-height:1.5;border-radius:9px}

.journal-month-head{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.journal-month-head strong{font-size:13px;font-weight:500}.journal-month-head button{width:28px;height:28px;min-height:28px;padding:0;font-size:20px;background:transparent}
.journal-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:14px}.calendar-weekday{text-align:center;font-size:10px;color:#a18b71;padding:3px 0}
.journal-calendar .calendar-day{position:relative;min-height:29px;height:29px;padding:0;border-radius:8px;background:transparent;color:var(--ink);font-size:11px;line-height:1}.calendar-day.has-entry::after{content:'';position:absolute;bottom:2px;left:calc(50% - 1.5px);width:3px;height:3px;border-radius:50%;background:#a28b64}.journal-calendar .calendar-day.selected{background:#7d8b5e;color:#fffaf0}.calendar-day.selected::after{background:#fffaf0}.calendar-day.today{font-weight:700}
.journal-day-head,.journal-entry-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.journal-day-head{border-top:1px solid #e6dac8;padding-top:12px;font-size:13px}.journal-day-head>span,.journal-coins{font-size:11px;color:#7a8a54;white-space:nowrap}
.journal-card #journal{max-height:230px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin-top:3px}.journal-card .journal-entry{padding:9px 0;border-bottom:1px solid #e8ddcb}.journal-entry-head small{font-size:10px;color:#a08b72}.journal-card .journal-entry p{font-size:12px;line-height:1.6;margin:4px 0 0}.journal-empty{font-size:12px;color:#95816a}.journal-card #journalMore{font-size:11px;min-height:28px;padding:5px 8px;margin-top:9px;background:transparent;color:#887256}.journal-card #journalMore[hidden]{display:none}

.journal-card #journal{height:350px;max-height:350px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;margin-top:8px;scrollbar-width:thin;scrollbar-color:#d4c6ae transparent}
.journal-date{font-size:12px;line-height:1.5;font-weight:600;color:#887256;margin:16px 0 2px;padding:0}
.journal-date:first-child{margin-top:0}
.journal-card .journal-entry{padding:10px 0;border-bottom:1px solid #e8ddcb}

.life-current-row{align-items:center;min-height:48px}
.life-current-row .guiyuan-avatar{width:48px;height:48px;flex-basis:48px}
.life-current-copy{min-height:48px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.life-current-copy small{display:block;line-height:14px}
body.phone-preview .life-current-copy p{margin:0;line-height:18px}
.life-current-row>button{height:48px;min-height:48px;display:flex;align-items:center;justify-content:center;padding:0 12px}

.room-info{padding-top:12px}.room-collection{border-top:0;padding-top:0}

body.phone-preview:has(#life:not([hidden])){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
body.phone-preview:has(#life:not([hidden])) header{flex:0 0 auto;width:100%;margin:0}
body.phone-preview:has(#life:not([hidden])) #notice{flex:0 0 auto}
body.phone-preview:has(#life:not([hidden])) main{flex:1;min-height:0;max-height:none;align-self:stretch;width:auto;margin-top:0;margin-bottom:0;padding:0 0 calc(70px + env(safe-area-inset-bottom))}
#life:not([hidden]){height:100%;min-height:0}
body.phone-preview #life .life-layout{display:flex;flex-direction:column;height:100%;min-height:0;gap:12px}
#life .life-current{flex:0 0 auto}
#life .journal-card{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#life .journal-card h2{flex:0 0 auto}
#life .journal-card #journal{height:auto;max-height:none;flex:1;min-height:0;overflow-y:auto;margin-bottom:0}

body.phone-preview #life .life-layout{align-items:stretch}

body.phone-preview .tabs.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.header-tools{display:flex;align-items:flex-start;gap:6px}.settings-open{width:24px;min-height:38px;height:38px;padding:3px;background:transparent;color:#9b8468}.settings-open svg{width:18px;height:18px;fill:var(--base);stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
body.phone-preview header{gap:4px}body.phone-preview header h1{font-size:20px}body.phone-preview header p{font-size:11px}
.new-page-head{display:flex;align-items:center;justify-content:space-between;margin:3px 0 11px}.new-page-head h2{margin:0}.preview-chip{font-size:10px;color:#a18b6e;background:#eadeca;padding:3px 7px;border-radius:6px}
.wish-resources{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}.wish-resources>span{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#95816a;background:#ede2ce;border-radius:9px;padding:8px 10px}.wish-resources b{font-size:14px;color:#74583b;font-weight:500}
.wish-subnav{display:flex;gap:19px;border-bottom:1px solid #dfd1bd;margin-bottom:13px}.wish-subnav button{font-size:12px;padding:5px 0 9px;min-height:32px;background:transparent;border-radius:0;color:#9a866d;position:relative}.wish-subnav button[aria-selected=true]{color:#6b774b;font-weight:600}.wish-subnav button[aria-selected=true]::after{content:'';position:absolute;bottom:-1px;left:15%;right:15%;height:2px;background:#839365;border-radius:2px}.wish-view[hidden]{display:none}
.draw-pool-heading,.album-head,.pet-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.draw-pool-heading small{font-size:10px;color:#a18b6e}.draw-pool-heading h2{font-size:16px;margin:2px 0 0}.compact-link{font-size:11px!important;min-height:27px;padding:4px 8px!important}.draw-pool{overflow:hidden;background:linear-gradient(155deg,#fffaf0,#f4e8d0)}
.card-fan{height:209px;position:relative;margin:6px auto 8px;max-width:290px}.placeholder-card{border:1px solid #d5c3a6;background:repeating-linear-gradient(45deg,#f3e7d2,#f3e7d2 8px,#eee0c8 8px,#eee0c8 9px);border-radius:11px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:10px;box-shadow:0 3px 6px #67472f0b}.placeholder-card>span{align-self:flex-start;font-size:11px;color:#9a805e;letter-spacing:1px}.placeholder-card>img{width:30px;height:30px;opacity:.22}.placeholder-card>small{font-size:9px;color:#ab967a}.card-fan .placeholder-card{position:absolute;width:110px;height:158px;top:24px;left:calc(50% - 55px)}.card-fan .fan-left{transform:translateX(-73px) rotate(-13deg);background-color:#e4e6d2;top:38px}.card-fan .fan-right{transform:translateX(73px) rotate(13deg);top:38px}.card-fan .fan-center{height:176px;width:122px;left:calc(50% - 61px);border-color:#ad9b73;box-shadow:0 5px 16px #67472f15}
body.phone-preview .draw-guarantee{font-size:11px;text-align:center;color:#8a7658;margin:0 0 12px}.draw-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.draw-actions button{font-size:14px;min-height:53px;padding:8px;border-radius:11px}.draw-actions button:first-child{background:#e5dcc7;color:#70583b}.draw-actions small{display:block;font-size:10px;opacity:.75;margin-top:3px}.draw-pending{font-size:10px!important;color:#a08b70;text-align:center;margin:10px 0 0}
.wish-quicklinks{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}.wish-quicklinks button,.pet-memory-entry{display:flex;align-items:center;justify-content:space-between;background:#ede2ce;color:#806a50;padding:10px 12px;font-size:12px;min-height:37px;border-radius:10px}.wish-quicklinks span,.pet-memory-entry span{color:#aa9679}.wish-gift-preview{display:flex;align-items:center;gap:10px;padding:12px!important}.wish-gift-preview img{width:39px;height:43px;object-fit:contain}.wish-gift-preview>div{flex:1}.wish-gift-preview strong{font-size:12px;font-weight:500}.wish-gift-preview small{display:block;font-size:10px;color:#9c876b;margin-top:3px}.pending-label{font-size:10px;color:#9d896b}
.album-head h2,.pet-section-head h2{margin:0}.album-head small,.pet-section-head small{font-size:10px;color:#a18b6e}.theme-placeholder{display:flex;align-items:center;gap:14px;padding:20px 0}.mini-placeholder{width:65px;height:86px;flex-shrink:0;justify-content:center}.theme-placeholder strong{font-size:13px;font-weight:500}.theme-placeholder p,.exchange-intro{font-size:12px!important;color:#9b866a;margin:5px 0}.rarity-row{display:flex;justify-content:space-around;font-size:11px;color:#9c8668;padding:10px;background:#f1e7d5;border-radius:9px}.exchange-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 10px;margin-top:16px}.exchange-item .placeholder-card{height:115px;padding:8px}.exchange-item>small{display:block;text-align:center;font-size:10px;color:#9b866a;margin-top:5px}
#pet>.card{margin-bottom:12px}.pet-profile{text-align:center;background:linear-gradient(160deg,#fffaf0,#eee8d7)}.pet-profile-art{width:94px;height:94px;margin:0 auto 5px;border-radius:50%;background:#e6e9d8;padding:8px}.pet-profile-art img{width:100%;height:100%;object-fit:contain}.pet-profile h2{margin:0;font-size:19px}.pet-profile>p{font-size:11px!important;color:#9d876b;margin:5px 0 10px}.pet-live-status{border-top:1px solid #e6dac7;padding-top:9px;display:flex;justify-content:center;align-items:center;gap:8px;font-size:11px;color:#877153}.pet-live-status span:first-child{font-size:10px;padding:2px 6px;background:#e4e5cf;border-radius:5px;color:#7a845d}
.pet-stats{display:grid;gap:12px;margin-top:15px}.pet-stat{display:flex;align-items:center;gap:12px;font-size:12px}.pet-stat>span{width:27px;white-space:nowrap}.pet-stat-track{height:5px;flex:1;background:#e9dfce;border-radius:5px;overflow:hidden}.pet-stat b{font-size:12px;color:#a99478;font-weight:400}.pet-stat-track i{display:block;width:0;height:100%}.pet-care h2{margin-bottom:12px}.care-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.care-grid button{background:#eee3cf;color:#7b654a;border-radius:9px;min-height:38px;padding:8px 4px;font-size:12px}.care-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e7dcc9;margin-top:12px;padding-top:8px}.care-footer button{font-size:11px;background:transparent;color:#958066;padding:4px 0;min-height:26px}.pet-request p{font-size:12px!important;color:#a08b6e;margin:10px 0 0}.pet-memory-entry{width:100%;margin-bottom:8px}
#newFeatureInfo h2{font-size:17px;margin:0}#newFeatureText{font-size:13px;line-height:1.7;margin:12px 0 0}
@media(max-width:370px){.header-tools{gap:2px}body.phone-preview header h1{font-size:18px}body.phone-preview header p{font-size:10px}.settings-open{width:20px}.card-fan .fan-left{transform:translateX(-64px) rotate(-12deg)}.card-fan .fan-right{transform:translateX(64px) rotate(12deg)}}

.draw-actions button small{color:inherit;opacity:.8}body.phone-preview .pet-section-head h2,body.phone-preview .album-head h2,body.phone-preview .draw-pool-heading h2{margin-bottom:0}

body.phone-preview header.game-header{padding:13px 12px 4px;display:flex;align-items:flex-start;justify-content:space-between;gap:6px;min-height:54px}
.player-profile{display:flex;align-items:center;gap:6px;background:transparent;color:var(--ink);padding:0;min-height:38px;max-width:133px;border-radius:0;text-align:left}
.player-avatar{width:35px;height:35px;flex:0 0 35px;background:#e6e8d4;border:1px solid #d5d9bb;border-radius:50%;padding:2px}.player-avatar img{width:100%;height:100%;object-fit:contain;display:block}.player-name{font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:88px}
.resource-cluster{display:flex;gap:5px;align-items:flex-start}.resource-cluster .resources{gap:0 4px}
body.phone-preview .resource-cluster .resources{grid-template-rows:29px auto}
body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet{height:29px;min-height:29px;font-size:11px;padding:4px 7px;border-radius:12px;gap:3px}.resource-cluster .energy-plus{font-size:14px}.resource-cluster .paw-icon{width:11px;height:11px}.resource-cluster .energy-timer{font-size:9px!important;line-height:1.2!important}
.diamond-wallet{display:flex;align-items:center;justify-content:center;gap:4px;min-width:37px;height:29px;border-radius:12px;background:#fffaf0;color:#8e9c9b;padding:4px 7px;font-size:12px}.diamond-wallet b{font-size:11px;font-weight:600}.diamond-wallet>span{font-size:17px;line-height:1}
.world-date{font-size:10px;line-height:1.5;color:#a38b70;margin:0 12px 9px}
body.phone-preview:has(#life:not([hidden])) .world-date{flex:0 0 auto}
.draw-pool-heading h2{font-size:15px}.pet-interactive-scene{position:relative;min-height:440px;height:calc(100dvh - 190px);max-height:680px;border-radius:20px;overflow:hidden;background:linear-gradient(#f6e5d3 0%,#f6e5d3 67%,#eac6a9 67%,#edccb2 100%);border:1px solid #e0cbb2;display:flex;align-items:center;justify-content:center}
.pet-scene-avatar{width:112px;height:112px;object-fit:contain;z-index:1;opacity:.8;margin-top:100px}.pet-scene-thought{position:absolute;top:24px;left:25px;right:25px;padding:12px 14px;background:#fffaf0cf;border-radius:13px;font-size:13px;line-height:1.6;text-align:center;color:#8a7154}
.pet-scene-note{position:absolute;left:0;right:0;bottom:35px;text-align:center;font-size:11px;color:#aa8c70;z-index:2}.pet-scene-status{display:flex;align-items:center;justify-content:space-between;padding:10px 3px;color:#947c61;font-size:12px}.pet-scene-status small{font-size:10px;color:#b29c81}
.nickname-field{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:12px 0 20px}.nickname-field input,.redeem-preview input{font:inherit;min-width:0;background:#f4ead8;border:1px solid #dfcfb7;border-radius:9px;padding:8px 10px;color:var(--ink)}.nickname-field input{width:65%;font-size:13px}.redeem-preview{margin:20px 0}.redeem-preview>div{display:flex;gap:8px}.redeem-preview input{flex:1;font-size:13px}.redeem-preview button{font-size:13px;min-height:38px;padding:7px 12px}.redeem-preview>small{font-size:10px;color:#aa967c}
@media(max-width:370px){.player-name{font-size:11px;max-width:62px}.player-avatar{width:30px;height:30px;flex-basis:30px}.player-profile{max-width:99px;gap:4px}.resource-cluster{gap:3px}body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet{padding:4px 5px;font-size:10px}.diamond-wallet{min-width:30px;padding:4px 5px}}

.wish-resources{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:4px}
.pool-carousel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.pool-carousel::-webkit-scrollbar{display:none}
.pool-carousel>.card{flex:0 0 100%;min-width:0;scroll-snap-align:start;box-sizing:border-box}
.pool-carousel .draw-pool-heading h2{font-size:15px;margin:0}
.limited-pool{display:flex;flex-direction:column;background:#f5eddf}.limited-pool h2{font-size:15px}.limited-center{flex:1;min-height:290px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;color:#b29c7b}.limited-star{font-size:45px;color:#c3b28e}.limited-center strong{font-size:15px;font-weight:400;letter-spacing:2px}
.pool-indicators{display:flex;gap:5px;align-items:center;justify-content:center;margin:10px 0}.pool-indicators span{width:4px;height:4px;border-radius:4px;background:#d7c9b0}.pool-indicators span.active{width:13px;background:#8b9970}
.exchange-grid .exchange-item{background:transparent;padding:0;min-height:0;border-radius:11px;text-align:left;color:inherit;width:100%;display:block}.exchange-item .placeholder-card{width:100%}

.header-energy-icon{width:15px;height:17px;object-fit:contain;display:block}.resource-cluster .paw-icon{width:16px;height:16px}.diamond-wallet>img{width:18px;height:18px;object-fit:contain;display:block}.order-heading .paw-icon{width:14px;height:14px}

body.phone-preview header.game-header{padding:12px 12px 10px;align-items:center;min-height:60px}
.player-profile{max-width:118px;flex:0 1 118px;min-width:0}.player-name{max-width:74px;font-size:11px}
.resource-cluster{flex:1;min-width:0;max-width:228px}
body.phone-preview .resource-cluster .resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:30px;gap:4px;width:100%;position:relative}
body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet,body.phone-preview .resource-cluster .diamond-wallet{grid-row:1;grid-column:auto;width:100%;height:30px;min-height:30px;min-width:0;padding:4px 5px;border-radius:12px;background:#fffaf0;display:flex;align-items:center;justify-content:center;gap:4px;font-size:10px;line-height:1;white-space:nowrap;box-sizing:border-box}
body.phone-preview .resource-cluster b{font-size:10px;font-weight:600;line-height:1;color:#705238}
body.phone-preview .resource-cluster img{width:15px;height:17px;object-fit:contain;flex:0 0 15px}
body.phone-preview .resource-cluster .energy-timer{position:absolute;top:33px;left:0;width:calc((100% - 8px)/3);font-size:8px!important;white-space:nowrap;text-align:center;line-height:1!important;grid-area:auto}
body.phone-preview .resource-cluster .energy-timer:empty{display:none}
body.phone-preview header.game-header:has(.energy-timer:not(:empty)){padding-bottom:18px}
.avatar-settings{margin:10px 0 15px}.avatar-settings h2{font-size:14px!important;margin:0 0 10px!important}.avatar-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.avatar-choice{aspect-ratio:1;width:100%;min-height:0;padding:7px;background:#f0e5d0;border:1.5px solid transparent;border-radius:50%;display:flex;align-items:center;justify-content:center}
.avatar-choice img{width:100%;height:100%;object-fit:contain;pointer-events:none}.avatar-choice[aria-pressed=true]{border-color:#879764;background:#e2e8ce;box-shadow:0 0 0 2px #87976422}
@media(max-width:350px){.player-profile{max-width:99px;flex-basis:99px}.player-name{max-width:60px;font-size:10px}.player-avatar{width:29px;height:29px;flex-basis:29px}.resource-cluster{max-width:204px}body.phone-preview .resource-cluster .resources{gap:3px}body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet,body.phone-preview .resource-cluster .diamond-wallet{padding:4px 2px;gap:2px}body.phone-preview .resource-cluster img{width:13px;flex-basis:13px}}

/* Personal photo and unified card collection */
.avatar-upload-row{display:flex;align-items:center;gap:16px;margin:16px 0}.avatar-upload-row>img{width:72px;height:72px;border-radius:50%;object-fit:cover}.avatar-upload-row>div{display:flex;align-items:flex-start;flex-direction:column;gap:8px}.avatar-upload-row small{font-size:11px;color:#99846b}.avatar-upload{font-size:13px;padding:9px 16px}.avatar-upload-row .compact-link{font-size:11px;padding:0;background:none}#avatarUploadStatus{font-size:12px;min-height:0;margin:0}.theme-collection{margin-top:14px}.theme-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border-bottom:1px solid #e8dcc8;border-radius:0;background:none;padding:17px 0;font-size:14px}.theme-row small{margin-left:auto;font-size:11px;color:#a38b70}.theme-row:last-child{border:0}#themeCards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-height:55vh;overflow-y:auto;margin-top:18px}.theme-card{display:flex;flex-direction:column;gap:9px;padding:10px 6px;border-radius:10px;background:#efe5d2}.theme-card small{font-size:10px;align-self:flex-start}.theme-card img{height:42px;width:42px;opacity:.25;align-self:center}.theme-card span{font-size:10px}.detail-card-placeholder{margin:18px auto;width:90px;height:120px;background:#efe5d2;border-radius:10px;display:grid;place-items:center}.detail-card-placeholder img{width:40px;opacity:.25}#cardDetailNote{text-align:center;font-size:12px;color:#99846b}#cardDetailDialog .actions{display:grid;grid-template-columns:1fr 1fr}#cardDetailDialog .actions button{font-size:12px;padding:12px 8px}

#avatarUpload{display:none}.avatar-upload{display:inline-flex!important;cursor:pointer;width:auto!important;margin:0!important}#cardThemes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin-top:16px}.theme-row{display:block;width:100%;padding:0!important;border:1px solid #e4d7bf!important;border-radius:13px!important;overflow:hidden;background:#fff9ed!important;text-align:left}.theme-cover{height:142px;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#e4e0ee}.cover-1{background:#e8d8c6}.cover-2{background:#d7e3dd}.cover-3{background:#efdcc5}.theme-cover-fan{height:94px;display:flex;align-items:center;justify-content:center;width:100%;position:relative}.theme-cover-fan span{width:53px;height:74px;border:1px solid #c7b89e;border-radius:7px;background:#fff8e9;position:absolute;box-shadow:0 3px 4px #69573d12}.theme-cover-fan span:first-child{transform:translateX(-27px) rotate(-13deg);background:#f5e9d2}.theme-cover-fan span:last-child{transform:translateX(27px) rotate(13deg);background:#f5e9d2}.theme-cover-fan span:nth-child(2){z-index:1;display:grid;place-items:center}.theme-cover-fan img{width:40px;height:40px;object-fit:contain;opacity:.65}.theme-cover>small{font-size:9px!important;color:#9e8a70;margin:0!important}.theme-caption{padding:12px 10px;display:flex;align-items:center;gap:4px}.theme-caption strong{font-size:12px;font-weight:600}.theme-caption small{font-size:10px!important;white-space:nowrap;margin-left:auto!important}

/* Compact profile: identity, redemption, then backups. */
#save .settings{padding:18px 16px}.profile-page-head{margin-bottom:4px!important}.profile-page-head h2{margin:0!important;font-size:17px!important}.profile-page-head .dialog-close{width:28px;height:28px;min-height:28px;padding:0;background:none;font-size:23px}.profile-section{padding:20px 0;border-bottom:1px solid #e8dcc8;margin:0!important}.profile-section:last-child{border:0;padding-bottom:2px}.profile-section h2{font-size:14px!important;margin:0 0 12px!important}.profile-section .avatar-upload-row{margin:0;gap:16px;align-items:center}.avatar-photo{position:relative;display:block;width:68px;height:68px;flex-shrink:0;margin:0!important;cursor:pointer;border-radius:50%;overflow:hidden;background:#eee3cd}.avatar-photo img{width:100%;height:100%;object-fit:cover}.avatar-photo span{position:absolute;bottom:0;left:0;right:0;font-size:9px;text-align:center;padding:4px 0;background:#6c543bd9;color:#fff8ed}.profile-identity{flex:1;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:7px}.profile-identity label{font-size:11px;color:#99846b;margin:0}.profile-identity input{font:inherit;font-size:13px;border:1px solid #dfcfb7;border-radius:8px;background:#f4ead8;padding:9px 10px;width:100%;min-width:0;color:var(--ink)}.profile-identity .compact-link{font-size:10px;padding:0;background:none;color:#99846b;text-align:left;align-self:flex-start}#avatarUploadStatus:empty{display:none}#avatarUploadStatus{font-size:11px;margin:10px 0 0}.redeem-preview form{display:flex;gap:8px}.redeem-preview input{width:0;flex:1}.redeem-preview button{height:36px;min-height:36px;padding:7px 14px}.redeem-preview input{padding:8px 10px}#redeemStatus{font-size:11px;line-height:1.6;margin:8px 0 0;color:#7a8055}#redeemStatus:empty{display:none}#saveStatus{font-size:11px!important;line-height:1.7;color:#9b876e;margin:0 0 12px!important}.backup-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}.backup-actions button,.backup-actions .file{font:inherit;font-size:12px!important;padding:10px!important;min-height:36px;line-height:16px;text-align:center;border-radius:8px;margin:0!important;background:#ece1cb;color:var(--ink);cursor:pointer}#import{display:none}

/* One play area: orders, bag, and board. */
body.phone-preview #merge .merge-play-card{border:1px solid var(--edge);background:var(--paper);border-radius:18px;padding:12px 10px 10px;overflow:hidden}body.phone-preview #merge .orders-panel{margin:0}body.phone-preview #merge .board-card{padding:0;border:0;border-radius:0;background:transparent;position:static}.board-toolbar{display:flex;justify-content:flex-end;align-items:center;height:30px;margin:3px 1px 5px}.board-toolbar #bagOpen{width:26px;height:26px;min-height:26px;padding:0;background:transparent}.board-toolbar #bagOpen img{width:26px;height:26px;display:block}#merge .boardtools:has(>button:not([hidden])){margin:8px 0 0}#merge .boardtools:not(:has(>button:not([hidden]))){display:none}#board .order-check{top:2px;right:2px;bottom:auto;font-size:13px;line-height:1}.order-heading>span{display:flex;align-items:center;gap:3px;font-family:inherit;font-size:10px;font-weight:600;line-height:1;color:#705238}.order-heading .paw-icon{width:17px;height:17px;object-fit:contain;flex:0 0 17px}body.phone-preview .resource-cluster .wallet .paw-icon{width:18px;height:18px;flex-basis:18px}.order-heading{align-items:center;font-size:12px;min-height:22px}.order-heading>b{font-size:12px}.orders-panel #orders{gap:8px}body.phone-preview #merge .order-card{border-radius:12px;padding:9px;min-width:190px;background:#f7efdf}.order-card.special-order{background:#fff7e2!important}.order-items{margin:7px 0!important}body.phone-preview #merge .order-card>button{margin-top:0;min-height:29px;font-size:12px}body.phone-preview #merge>.wish-card{margin-top:12px;padding:12px!important}body.phone-preview #merge .wish-card h2{font-size:14px;margin:0 0 9px}.compact-wish-row{display:flex;align-items:center;gap:10px}.compact-wish-row .wish-art{width:46px;height:46px;flex-basis:46px;border-radius:9px}.compact-wish-row .wish-art img{width:36px;height:38px}.compact-wish-row .wish-copy{flex:1;min-width:0}.compact-wish-row .wish-copy strong{font-size:12px;line-height:1.5}.compact-wish-row .wish-copy p{font-size:10px;line-height:1.5;margin:2px 0;color:#91816a}#merge .wish-card #wishGap{font-size:10px;line-height:1.5;margin:2px 0 0;font-weight:400}.compact-wish-row #wishBuy{flex:0 0 auto;width:auto;font-size:11px;min-height:30px;border-radius:8px;padding:7px 10px}#merge .wish-card .wish-track{height:3px;margin:10px 0 0}

#board .cell .order-check{display:block;position:absolute;top:3px;right:3px;bottom:auto;left:auto;width:9px;height:9px;min-width:0;min-height:0;padding:0;line-height:0;font-size:0;background:none;text-shadow:none;pointer-events:none}#board .cell .order-check svg{display:block;width:9px;height:9px;fill:none;stroke:#58783c;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}body.phone-preview .resource-cluster .diamond-wallet>img{width:18px;height:18px;flex-basis:18px}#merge .orders-panel{padding-bottom:10px}.legacy-storage[hidden]{display:none}

#board .cell{background:#f8eedc!important;background-image:none!important}#board .cell.order-needed{background:#dce7c8!important}#board .order-check{display:none!important}.item-panel:has(#selection:empty){display:flex}#merge .item-panel{gap:7px;min-height:36px;padding:6px 9px}#merge .item-panel #selection{font-size:11px;font-weight:500;line-height:1.5}#merge .item-panel #itemStatus{font-size:10px;line-height:1.4;margin-left:auto}#merge .item-panel #bagOpen,#merge .item-panel #trashOpen{flex:0 0 26px;width:26px;height:26px;min-height:26px;padding:0;background:none;margin:0}#merge .item-panel #bagOpen img,#merge .item-panel #trashOpen img{width:26px;height:26px;object-fit:contain;display:block}#merge .item-panel #trashOpen[hidden]{display:none}#merge .compact-wish-row{gap:10px;min-height:48px}#merge .compact-wish-row .wish-art{width:48px;height:48px;flex-basis:48px}#merge .compact-wish-row .wish-copy strong{display:block;font-size:12px;line-height:1.5}#merge .compact-wish-row .wish-copy p{font-size:10px;line-height:1.5;margin:3px 0 0}#merge .compact-wish-row #wishBuy{white-space:nowrap;min-height:30px;font-size:11px}body.phone-preview #merge .wish-card h2{margin-bottom:8px}

#merge .item-panel #bagOpen{margin-left:auto!important}#merge .item-panel #trashOpen{margin-left:0!important}#merge .item-panel{justify-content:flex-start;column-gap:5px}#merge .item-panel #itemStatus:not(:empty){margin-left:auto;margin-right:3px}#merge .item-panel:has(#itemStatus:not(:empty)) #bagOpen{margin-left:0!important}

#merge .item-panel #bagOpen[hidden],#merge .item-panel #consumeReward[hidden],#merge .item-panel #supplyMergeHint[hidden]{display:none}#merge .item-panel #consumeReward{margin-left:auto;background:#818d55;font-size:10px;padding:6px 8px;min-height:27px;border-radius:7px;white-space:nowrap}#merge .item-panel #supplyMergeHint{font-size:9px;padding:6px 7px;min-height:27px;border-radius:7px;white-space:nowrap;opacity:1;color:#9a8b72;background:transparent}#merge .item-panel:has(#consumeReward:not([hidden])) #selection{max-width:37%;font-size:10px}body.phone-preview #merge .merge-play-card{padding:9px 9px 8px}body.phone-preview #merge .orders-panel{padding-bottom:8px}body.phone-preview #merge .order-card{padding:8px}#merge .order-items{min-height:54px;margin:5px 0!important}#merge .order-need{min-height:54px;padding:4px 2px}#merge .order-heading{min-height:20px}#merge .order-heading>b{font-size:11px}body.phone-preview #merge .order-card>button{min-height:27px;padding:3px 8px}#merge .board{width:min(100%,max(238px,calc(100dvh - 415px)));margin:0 auto;gap:4px;padding:5px;border-radius:14px}#merge .board .cell{border-radius:8px}#merge .board .icon{width:76%;height:76%;display:flex;align-items:center;justify-content:center}#merge .board .icon img{width:100%;height:100%;object-fit:contain}#merge .item-panel{min-height:33px;margin-top:6px;padding:4px 8px}body.phone-preview #merge>.wish-card{margin-top:8px;padding:10px 12px!important}body.phone-preview #merge .wish-card h2{font-size:13px;margin:0 0 6px}#merge .compact-wish-row{min-height:44px}#merge .compact-wish-row .wish-art{width:44px;height:44px;flex-basis:44px}

body.phone-preview .resource-cluster .resources{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:5px}body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet,body.phone-preview .resource-cluster .diamond-wallet{background:transparent;border-radius:0;padding:4px 0;justify-content:flex-start;gap:5px}body.phone-preview .resource-cluster b{display:block;min-width:0;font-variant-numeric:tabular-nums;letter-spacing:0;font-size:10px}body.phone-preview .resource-cluster img{width:18px;height:18px;flex:0 0 18px}body.phone-preview .resource-cluster .energy-timer{text-align:left;padding-left:23px}

#merge .item-panel:has(#selection:empty){display:none!important}body.phone-preview .resource-cluster{width:228px;flex:0 0 228px}body.phone-preview .resource-cluster .resources{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}body.phone-preview .resource-cluster b{font-size:10px;font-weight:600;white-space:nowrap}body.phone-preview .resource-cluster .wallet b{width:4ch}body.phone-preview .resource-cluster .diamond-wallet b{width:3ch}body.phone-preview .resource-cluster .energybox b{min-width:6.5ch}body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet,body.phone-preview .resource-cluster .diamond-wallet{gap:4px;padding:0;justify-content:flex-start;background:none}

#merge .board{width:min(100%,max(220px,calc(100dvh - 450px)))}
/* Guiyuan is the scene; care stays beside her. */
body.phone-preview #pet .guiyuan-stage{height:calc(100dvh - 136px);min-height:450px;max-height:820px;position:relative;overflow:hidden;border:1px solid #dfcfb7;border-radius:20px;background:#f8ecd9}.pet-nameplate{position:absolute;top:21px;left:22px;z-index:3;display:flex;flex-direction:column;gap:3px}.pet-nameplate strong{font-size:20px}.pet-nameplate span{font-size:10px;color:#a38b70}.pet-window{position:absolute;left:32px;top:96px;width:116px;height:165px;border:5px solid #cba77e;border-radius:65px 65px 8px 8px;background:#dce7dc;overflow:hidden;opacity:.65}.pet-window:before{content:'';position:absolute;left:50%;height:100%;border-left:4px solid #cba77e}.pet-window:after{content:'';position:absolute;top:55%;width:100%;border-top:4px solid #cba77e}.pet-window i{position:absolute;border-radius:50%;background:#f9eed1;width:47px;height:47px;top:29px;left:20px}.pet-floor{position:absolute;bottom:0;left:0;right:0;height:35%;background:repeating-linear-gradient(0deg,transparent 0 51px,#d8bb9628 52px 53px),#eddbc2;border-top:2px solid #d5bc9b}.pet-stage-rug{position:absolute;bottom:10%;left:5%;width:66%;height:17%;object-fit:contain;opacity:.75}.pet-character{position:absolute;left:7%;bottom:16%;width:58%;height:48%;max-height:325px;background:none!important;border:0;padding:0;z-index:2;min-height:0;display:flex;align-items:flex-end;justify-content:center}.pet-character img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 0 #b9a17c15)}.pet-speech{position:absolute;left:20px;right:104px;top:35%;z-index:3;border-radius:13px 13px 13px 2px;padding:11px 12px;font-size:12px;line-height:1.6;background:#fffaf0f0;box-shadow:0 2px 6px #75573a08;color:#846a4d}.pet-care-rail{position:absolute;right:12px;top:90px;bottom:80px;z-index:4;display:flex;flex-direction:column;justify-content:space-evenly;gap:8px}.pet-care-action{display:flex;align-items:center;gap:5px;background:transparent!important;color:var(--ink);padding:0;min-height:44px}.care-ring{width:43px;height:43px;position:relative;display:grid;place-items:center;flex:0 0 43px}.care-ring svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.care-ring circle{fill:none;stroke-width:4;stroke-linecap:round}.ring-track{stroke:#e0d4c0}.ring-fill{stroke:var(--care-color);transform:rotate(-90deg);transform-origin:center}.care-ring>span{font:22px/1 Georgia,serif;color:#998061;background:#fff9edc9;width:31px;height:31px;display:grid;place-items:center;border-radius:50%}.care-action-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.care-action-copy small{font-size:9px;color:#9e8a70}.care-action-copy strong{font-size:11px;font-weight:500;white-space:nowrap}.pet-companion-line{position:absolute;left:18px;right:18px;bottom:23px;margin:0;text-align:center;font-size:10px;color:#a28b70;z-index:3}.pet-care-dialog{margin:auto;padding:17px;width:min(350px,calc(100vw - 32px));max-height:85dvh;overflow-y:auto;border-radius:18px}.pet-care-dialog h2{font-size:16px}.pet-care-dialog .dialog-close{width:27px;height:27px;min-height:27px;padding:0;background:transparent;font-size:23px}.care-change{display:flex;justify-content:center;align-items:center;gap:35px;background:#f2e7d5;border-radius:12px;padding:15px;margin-top:16px}.care-change>div{display:flex;flex-direction:column;align-items:center;gap:5px}.care-change .care-ring{width:58px;height:58px;flex-basis:58px}.care-change .care-ring>span{width:42px;height:42px;font-size:27px}.care-change small{font-size:10px;color:#94795c}.care-arrow{font-size:23px;color:#b29c7b}#careChoiceLabel{font-size:12px;line-height:1.6;margin:16px 0 11px}.care-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.care-choices:has(>button:only-child){grid-template-columns:1fr;max-width:130px;margin:auto}.care-choice{display:flex;flex-direction:column;align-items:center;gap:10px;padding:11px 5px;border:1px solid #e3d6c1;border-radius:10px;background:#f4ecde;color:var(--ink);min-width:0}.care-choice[aria-pressed=true]{border-color:#879964;background:#edf0df;box-shadow:inset 0 0 0 1px #879964}.care-choice>strong{font-size:10px;font-weight:500;white-space:nowrap}.care-choice>img{width:54px;height:59px;object-fit:contain}.care-choice-effect{font-size:10px;color:#82915e}.care-choice small{font-size:10px;display:flex;align-items:center;gap:2px;line-height:1;height:14px}.care-choice small img{width:14px;height:14px;object-fit:contain}.care-cost{font-size:11px;text-align:right;color:#9b8467;margin:12px 0 0}#careError{font-size:11px;color:#ac7453;margin:8px 0 0}#careError:empty{display:none}.care-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.care-dialog-actions button{font-size:12px;min-height:36px;padding:8px}
@media(max-height:700px){body.phone-preview #pet .guiyuan-stage{min-height:405px}.pet-care-rail{top:80px;bottom:55px}.pet-speech{top:30%}.pet-window{top:85px;height:140px}.pet-character{bottom:15%;height:46%}}

/* Keep the board aligned with the order strip, without narrowing its columns. */
body.phone-preview #merge .board{width:100%;margin-inline:0}body.phone-preview:has(#merge:not([hidden])) header.game-header{min-height:54px;padding-top:9px;padding-bottom:7px}body.phone-preview:has(#merge:not([hidden])) header.game-header:has(.energy-timer:not(:empty)){padding-bottom:14px}#merge .order-items,#merge .order-need{min-height:48px}#merge .order-heading{min-height:18px}body.phone-preview #merge .order-card>button{min-height:25px;padding-top:2px;padding-bottom:2px}body.phone-preview #merge>.wish-card{padding:9px 12px!important}body.phone-preview #merge .wish-card h2{margin-bottom:4px}body.phone-preview .resource-cluster .diamond-wallet b{width:4ch}#furnitureReviewBanner{display:flex;align-items:center;justify-content:space-between;font-size:10px;line-height:1.6;color:#9b8467;padding:0 2px 6px}#furnitureReviewBanner[hidden]{display:none}#furnitureReviewBanner a{color:#7d895b;text-decoration:none}

#merge .order-need .need-icon{width:30px;height:30px}#merge .order-need .need-name{font-size:10px;line-height:1.4}#merge .order-need{padding-top:3px;padding-bottom:3px}#merge .item-panel{min-height:32px}body.phone-preview #merge>.wish-card{margin-top:6px;padding:8px 12px!important}body.phone-preview #merge .wish-card h2{font-size:12px}

/* Let the furniture list hand scrolling back to the page at its boundaries. */
.room-collection #collection{overscroll-behavior-y:auto;overscroll-behavior-x:auto;touch-action:pan-y;padding-bottom:18px;scroll-padding-bottom:18px;-webkit-overflow-scrolling:touch}body.phone-preview:has(#home:not([hidden])) main{padding-bottom:30px}
/* Each resource reserves four digits; values align to the right of their slot. */
body.phone-preview .resource-cluster{width:210px;max-width:210px;flex:0 0 210px}body.phone-preview .resource-cluster .resources{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:6px}body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet,body.phone-preview .resource-cluster .diamond-wallet{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:4px;justify-content:normal;align-items:center;padding:0;width:100%}body.phone-preview .resource-cluster b,body.phone-preview .resource-cluster .wallet b,body.phone-preview .resource-cluster .diamond-wallet b,body.phone-preview .resource-cluster .energybox b{width:auto;min-width:0;text-align:right;justify-self:end;font-variant-numeric:tabular-nums}body.phone-preview .resource-cluster .energy-timer{padding-left:0;text-align:right}
/* A quiet, slightly rounded interface. Keep avatars and status rings circular. */
body.phone-preview .card,body.phone-preview #merge .merge-play-card,body.phone-preview .board-card,body.phone-preview .shop-scene,body.phone-preview .mini-scene,body.phone-preview #pet .guiyuan-stage{border-radius:8px!important}body.phone-preview .order-card,body.phone-preview .order-need,body.phone-preview .furniture-row,body.phone-preview .mini-shop-item,body.phone-preview .theme-row,body.phone-preview .theme-cover,body.phone-preview .theme-card,body.phone-preview .placeholder-card,body.phone-preview .care-choice,body.phone-preview .care-change,body.phone-preview .wish-art,body.phone-preview .item-panel{border-radius:6px!important}body.phone-preview .board{border-radius:8px!important}body.phone-preview .cell{border-radius:6px!important}body.phone-preview button,body.phone-preview .file,body.phone-preview input,body.phone-preview select{border-radius:6px!important}body.phone-preview dialog{border-radius:10px!important}body.phone-preview .pet-speech,body.phone-preview .wish-resources>span{border-radius:6px!important}

/* Keep icon and value together; reserve digits inside each compact group. */
body.phone-preview .resource-cluster{width:218px;max-width:218px;flex:0 0 218px}body.phone-preview .resource-cluster .resources{grid-template-columns:74px 56px 56px;column-gap:12px;justify-content:start}body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet,body.phone-preview .resource-cluster .diamond-wallet{display:flex;justify-content:flex-start;align-items:center;gap:4px;width:auto;padding:0}body.phone-preview .resource-cluster b,body.phone-preview .resource-cluster .wallet b,body.phone-preview .resource-cluster .diamond-wallet b,body.phone-preview .resource-cluster .energybox b{text-align:left;justify-self:start;flex:0 0 auto;width:4ch;min-width:0}body.phone-preview .resource-cluster .energybox b{width:7ch}body.phone-preview .resource-cluster .energy-timer{left:0;width:74px;text-align:left;padding-left:22px}
@media(max-width:350px){body.phone-preview .resource-cluster{width:204px;max-width:204px;flex-basis:204px}body.phone-preview .resource-cluster .resources{grid-template-columns:72px 54px 54px;column-gap:8px}}

body.phone-preview .resource-cluster{width:210px;max-width:210px;flex-basis:210px}body.phone-preview .resource-cluster .resources{column-gap:8px}@media(max-width:350px){body.phone-preview .resource-cluster{width:200px;max-width:200px;flex-basis:200px}body.phone-preview .resource-cluster .resources{column-gap:6px}}

body.phone-preview .resource-cluster .energy-timer{top:26px;line-height:1!important}body.phone-preview header.game-header:has(.energy-timer:not(:empty)){padding-bottom:12px}body.phone-preview:has(#merge:not([hidden])) header.game-header:has(.energy-timer:not(:empty)){padding-bottom:9px}

body.phone-preview .resource-cluster{width:210px;max-width:210px;flex-basis:210px}body.phone-preview .resource-cluster .resources{display:flex;justify-content:flex-end;align-items:center;gap:12px;width:100%;height:30px}body.phone-preview .resource-cluster .energybox,body.phone-preview .resource-cluster .wallet,body.phone-preview .resource-cluster .diamond-wallet{flex:0 0 auto;width:auto}body.phone-preview .resource-cluster .energybox b{width:auto}body.phone-preview .resource-cluster .wallet b,body.phone-preview .resource-cluster .diamond-wallet b{width:4ch}body.phone-preview .resource-cluster .energybox{position:relative}body.phone-preview .resource-cluster .energy-timer{left:auto;right:calc(88px + 24px);width:74px;padding-left:0;text-align:right}@media(max-width:350px){body.phone-preview .resource-cluster{width:200px;max-width:200px;flex-basis:200px}body.phone-preview .resource-cluster .resources{gap:10px}}

body.phone-preview .resource-cluster .energy-amount{display:block;position:relative;width:max-content;line-height:1}body.phone-preview .resource-cluster .energy-amount #energyTimer{position:absolute;top:calc(100% + 3px);left:0;right:auto;bottom:auto;width:100%;padding:0;text-align:center;white-space:nowrap;font-size:7px!important;line-height:1!important;letter-spacing:0;font-variant-numeric:tabular-nums}body.phone-preview header.game-header:has(.energy-timer:not(:empty)){padding-bottom:10px}body.phone-preview:has(#merge:not([hidden])) header.game-header:has(.energy-timer:not(:empty)){padding-bottom:8px}

body.phone-preview .resource-cluster .energy-amount #energyTimer{width:max-content;min-width:100%;left:50%;right:auto;transform:translateX(-50%);font-size:7px!important;white-space:nowrap}

body.phone-preview .resource-cluster .energy-amount #energyTimer{width:100%;min-width:0;left:0;right:auto;transform:none;font-size:7px!important;text-align:justify;text-align-last:justify;white-space:nowrap;letter-spacing:0;font-variant-numeric:tabular-nums;line-height:1!important}

body.phone-preview .resource-cluster .energy-amount #energyTimer{display:flex;justify-content:space-between;align-items:center;text-align:center;text-align-last:auto}body.phone-preview .resource-cluster .energy-amount #energyTimer>span{display:block;font:inherit;line-height:1}body.phone-preview .resource-cluster .energy-amount #energyTimer:empty{display:none!important}

/* Card reveal preview: isolated from currencies, collections and saves. */
body.phone-preview dialog#drawPreview{width:min(390px,100vw);max-width:390px!important;height:100dvh;max-height:100dvh;border:0;border-radius:0!important;margin:0 auto;padding:20px 20px max(24px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 40%,#5f6350 0%,#353e36 57%,#28352f 100%);color:#fff3d8;overflow-y:auto;overflow-x:hidden}#drawPreview::backdrop{background:#1e2929d9}#drawPreview button{color:inherit}#drawPreview [hidden]{display:none!important}.draw-preview-header,.draw-preview-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.draw-preview-header>span{font-size:10px;color:#c5c6aa}.draw-preview-header #drawClose{height:30px;width:30px;min-height:30px;background:transparent;padding:0;font-size:25px;font-weight:300}.draw-preview-meta{margin-top:20px;font-size:11px;color:#d3d0b4}#drawSkip{padding:5px 0;min-height:28px;background:transparent;font-size:11px;color:#d3d0b4}.draw-stage{height:min(58dvh,470px);min-height:295px;position:relative;display:grid;place-items:center;perspective:1200px;--card-glow:#c9d1b3}.draw-stage.rarity-SR{--card-glow:#e3c9f2}.draw-stage.rarity-SSR{--card-glow:#ffd67c}.draw-stage.rarity-UR{--card-glow:#fff0aa}.draw-aura{position:absolute;width:270px;height:340px;max-width:90%;background:radial-gradient(ellipse,var(--card-glow),transparent 65%);filter:blur(19px);opacity:.16;transform:scale(.7);transition:opacity .7s,transform .7s}.is-revealed .draw-aura{opacity:.55;transform:scale(1.15)}.draw-spark{position:absolute;font-size:25px;color:#e8dca9;opacity:0;pointer-events:none}.spark-one{top:17%;left:10%}.spark-two{bottom:22%;right:8%;font-size:37px}.spark-three{top:31%;right:9%;font-size:15px}.is-revealed .draw-spark{animation:drawSpark .9s ease-out both}.is-revealed .spark-two{animation-delay:.15s}.is-revealed .spark-three{animation-delay:.3s}#drawHero{position:relative;width:202px;height:294px;padding:0;border:0;min-height:0;background:transparent;perspective:1200px;box-shadow:none}#drawHero:disabled{opacity:1;cursor:default}#drawHero:hover{filter:none}.draw-card-inner{display:block;width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform .65s cubic-bezier(.2,.65,.25,1)}.is-gathering .draw-hero{animation:drawGather .8s cubic-bezier(.2,.6,.25,1) both}.is-revealed .draw-card-inner{transform:rotateY(180deg)}.draw-card-back,.draw-card-face{position:absolute;inset:0;border-radius:8px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;border:1px solid #d6bd83;box-shadow:0 12px 30px #17201d4d}.draw-card-back{background:repeating-linear-gradient(45deg,#aeb38b0a 0 7px,transparent 7px 14px),#767f5e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;outline:1px solid #d1bd8c;outline-offset:-10px}.draw-card-back>img{width:63px;height:63px;filter:brightness(0) invert(.9);opacity:.75}.draw-back-stars{font-size:28px;color:#dfc995}.draw-back-name{font-size:11px;letter-spacing:4px;color:#dfd3b3}.draw-card-face{display:flex;flex-direction:column;align-items:center;background:linear-gradient(145deg,#fff8e6,#dddac1);color:#65543e;border-color:#a5ae8a;transform:rotateY(180deg);padding:17px 13px}.draw-card-face.rarity-R{background:linear-gradient(145deg,#f6fcf5,#c6d9cd);border-color:#96b9ac}.draw-card-face.rarity-SR{background:linear-gradient(145deg,#fff8ff,#d9cae6);border-color:#bca1cb}.draw-card-face.rarity-SSR{background:linear-gradient(145deg,#fff5d5,#e4c78c);border-color:#f0d496}.draw-card-face.rarity-UR{background:linear-gradient(145deg,#fff9df,#dfc0d0 55%,#c9d9c2);border-color:#fff0b5}.draw-rarity{align-self:flex-start;font-size:15px;letter-spacing:1px;font-weight:700;color:#7f755a}.draw-face-art{flex:1;min-height:0;width:100%;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px}.draw-face-art>img.placeholder-paw{height:53px;width:53px;opacity:.19}.draw-placeholder-title{font-size:24px;letter-spacing:1px;font-weight:600}.draw-face-art>img.real-card-art{width:100%;height:100%;object-fit:contain}.draw-card-theme{font-size:10px;color:#8f7c67;text-align:center;margin-bottom:7px}.draw-card-title{font-size:13px;font-weight:600}#drawCaption{text-align:center;font-size:13px;line-height:1.6;margin:0 0 22px;min-height:21px;color:#e5ddc1}#drawNext,#drawDone{display:block;width:100%;min-height:40px;padding:9px 16px;font-size:13px;background:#d6c598;color:#514e39!important}#drawResults h2{font-size:19px;text-align:center;color:#fff3d8;margin:25px 0 5px}#drawResultLine{text-align:center;font-size:11px;color:#ccc9ab;margin:0 0 23px}#drawResultGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 9px;margin-bottom:25px}.draw-result-card{aspect-ratio:202/294;position:relative;min-width:0}.draw-result-card .draw-card-face{transform:none;padding:9px 5px;box-shadow:0 3px 8px #17201d33}.draw-result-card .draw-rarity{font-size:10px}.draw-result-card .draw-placeholder-title{font-size:12px;letter-spacing:0}.draw-result-card .draw-face-art{gap:5px}.draw-result-card .placeholder-paw{width:26px!important;height:26px!important}.draw-result-card .draw-card-theme{font-size:7px;margin-bottom:4px}.draw-result-card .draw-card-title{font-size:9px}.draw-repeat{position:absolute;right:4px;top:7px;background:#f7eddbd9;border-radius:3px;padding:1px 3px;font-size:8px;color:#9c8060}.draw-result-note{display:block;font-size:9px;text-align:center;color:#afbaa4;margin-top:12px}#drawResultGrid.single-result{grid-template-columns:minmax(0,202px);justify-content:center}.single-result .draw-result-card .draw-rarity{font-size:15px}.single-result .draw-result-card .draw-placeholder-title{font-size:24px}.single-result .draw-result-card .draw-card-theme{font-size:10px}.single-result .draw-result-card .draw-card-title{font-size:13px}.single-result .draw-result-card .placeholder-paw{width:53px!important;height:53px!important}.draw-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@keyframes drawGather{from{transform:translateY(45px) scale(.8) rotate(-8deg);opacity:0}to{transform:none;opacity:1}}@keyframes drawSpark{0%{opacity:0;transform:scale(.5) translateY(10px)}40%{opacity:.8}100%{opacity:0;transform:scale(1.15) translateY(-18px)}}@media(prefers-reduced-motion:reduce){#drawPreview *,#drawPreview *:before,#drawPreview *:after{animation:none!important;transition:none!important}}@media(max-height:680px){.draw-preview-meta{margin-top:7px}.draw-stage{min-height:265px;height:54dvh}#drawHero{width:178px;height:260px}#drawResults h2{margin-top:12px}#drawResultGrid{gap:9px 7px}}

#drawResultGrid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 7px;margin:32px 0}.draw-result-card .draw-rarity{font-size:9px}.draw-result-card .draw-placeholder-title{font-size:10px}.draw-result-card .draw-card-theme{font-size:6px;line-height:1.4;margin-bottom:2px}.draw-result-card .draw-face-art{gap:4px}.draw-result-card .placeholder-paw{height:20px!important;width:20px!important}#drawResults h2{margin-top:42px}#drawResults:focus{outline:none}.single-result .draw-result-card .draw-face-art{gap:15px}.single-result .draw-result-card .draw-card-theme{font-size:10px}#drawPreview .draw-card-back{transform:translateZ(1px)}

.theme-card.collected{background:#e2e8cc;border:1px solid #a4b181}.theme-card:not(.collected)>img{opacity:.22}.theme-card.collected>img{opacity:.8}.theme-reward-ready .theme-caption:after{content:'· 礼物';font-size:9px;color:#97733e}#themeProgressText{font-size:11px;color:#95816a;margin:12px 0 0}#themeReward{width:100%;margin-top:14px;font-size:12px;min-height:34px;padding:7px}.draw-new{position:absolute;right:4px;top:7px;font-size:8px;color:#7a704f;background:#fff2c9;padding:1px 3px;border-radius:3px}.draw-repeat{font-size:7px}#drawPurchaseText{font-size:13px;line-height:1.7;margin:15px 0 8px}#drawPurchaseBalance{font-size:11px}#drawPurchaseDialog .actions{display:grid;grid-template-columns:1fr 1fr}#drawPurchaseDialog .actions button{font-size:12px;min-height:35px;padding:8px}#cardDetailArt img{object-fit:contain;max-height:100%;max-width:100%}.resource-records{font-size:12px;padding:16px 0;border-bottom:1px solid #e8dcc8}.resource-records #resourceLedger{max-height:180px;overflow:auto;margin-top:8px}.resource-records p{font-size:10px;line-height:1.7;margin:7px 0;color:#9b8467}
.pet-situation{position:absolute;left:15px;right:15px;bottom:15px;z-index:5;padding:10px;background:#fff9ece8;border-radius:6px}#petNeed{font-size:11px;line-height:1.6;margin:0 0 3px;color:#816d50}.pet-situation #petCompanionLine{position:static;display:block;margin:0;font-size:9px;text-align:left;color:#aa8f6e}.pet-extra-actions{display:flex;gap:7px;margin-top:7px}.pet-extra-actions button{flex:1;min-height:25px;padding:4px 5px!important;font-size:9px!important;background:#eee3ce}.pet-care-rail{bottom:134px}.pet-character{bottom:24%}.pet-stage-rug{bottom:18%}.pet-speech{top:29%}.guiyuan-stage[data-condition=away] .pet-character{display:none}.guiyuan-stage[data-condition=unhappy] .pet-character{filter:saturate(.6);transform:rotate(-3deg)}.guiyuan-stage[data-condition=hungry] .pet-character,.guiyuan-stage[data-condition=fainted] .pet-character{filter:saturate(.45);opacity:.85}.guiyuan-stage[data-condition=dirty] .pet-character:after{content:'';position:absolute;left:30%;top:50%;width:13px;height:10px;border-radius:40%;background:#a27e5666;box-shadow:23px 15px #a27e5655,-11px 33px #a27e5655}.guiyuan-stage[data-condition=sleeping] .pet-character:after{content:'Z z';position:absolute;right:15%;top:20%;font-size:23px;color:#8a9073}.pet-messy-room:after,.guiyuan-stage.has-mess:after{content:'◡  ▱   ◡';position:absolute;bottom:7%;left:10%;color:#b89a70;letter-spacing:16px;font-size:16px;pointer-events:none;z-index:10}#petRecoveryPanel{position:absolute;left:20px;right:105px;top:42%;padding:12px;background:#fff9edee;border-radius:6px;z-index:6}#petRecoveryPanel[hidden]{display:none}#petRecoveryText{font-size:11px;line-height:1.7;margin:0 0 10px}#petRecoveryPanel>div{display:flex;gap:6px;flex-wrap:wrap}#petRecoveryPanel button{font-size:10px;padding:6px 8px;min-height:28px}#petHistoryList{max-height:330px;overflow-y:auto;margin-top:15px}#petHistoryList p{font-size:11px;line-height:1.7;border-bottom:1px solid #eadfcc;padding:8px 0;margin:0}.care-choices{max-height:38dvh;overflow-y:auto}.care-choice-effect{font-size:9px;white-space:normal;text-align:center}.pet-care-action:disabled{opacity:.45}

.guiyuan-stage[data-condition=weak] .pet-character{filter:saturate(.5);opacity:.85}#petRecoveryPanel button[hidden]{display:none}#cardExchange[hidden],#goDrawCards[hidden]{display:none}.theme-card img{object-fit:contain}

/* Countdown stays centered below the energy amount only. */
body.phone-preview .resource-cluster .energy-amount #energyTimer{display:block;width:100%;left:0;right:auto;transform:none;text-align:center;text-align-last:auto;font-size:8px!important;letter-spacing:0;font-variant-numeric:tabular-nums}

/* Shared page frame: content ends 8px above the bottom navigation. */
body.phone-preview,body.phone-preview:has(#life:not([hidden])){--nav-height:calc(63px + env(safe-area-inset-bottom));--page-bottom-gap:8px;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
body.phone-preview header.game-header{flex:0 0 auto;width:100%;margin:0}
body.phone-preview main,body.phone-preview:has(#home:not([hidden])) main,body.phone-preview:has(#life:not([hidden])) main{flex:1;min-height:0;width:auto;align-self:stretch;margin:0 12px var(--nav-height);padding:0 0 var(--page-bottom-gap);overflow-y:auto;overflow-x:hidden;scroll-padding-bottom:var(--page-bottom-gap);scrollbar-width:none;-webkit-overflow-scrolling:touch}
body.phone-preview main::-webkit-scrollbar{display:none}
body.phone-preview .tabs.bottom-nav{height:var(--nav-height)}
body.phone-preview main>.tab:not([hidden]){min-height:100%}
body.phone-preview #merge:not([hidden]){display:flex;flex-direction:column;justify-content:space-between;gap:8px}
body.phone-preview #merge>.merge-play-card,body.phone-preview #merge>.wish-card{flex:0 0 auto}
body.phone-preview #merge>.wish-card{margin-top:0}
body.phone-preview #life:not([hidden]){height:100%;min-height:360px}
body.phone-preview #pet:not([hidden]){display:flex;height:100%;min-height:450px}
body.phone-preview #pet .guiyuan-stage{flex:1;height:auto;min-height:0;max-height:none}
body.phone-preview #merge>.merge-play-card{flex:1;display:flex;flex-direction:column}
body.phone-preview #merge .orders-panel{flex:1;display:flex;min-height:120px}
body.phone-preview #merge #orders{flex:1;align-items:stretch}
body.phone-preview #merge .order-card{display:flex;flex-direction:column}
body.phone-preview #merge .order-items{flex:1}
body.phone-preview #merge .order-card>button{flex:0 0 auto}
body.phone-preview #merge .board-card{flex:0 0 auto}

#careCost:empty{display:none}
/* Finished card illustrations retain their full 3:4 composition. */
.card-fan .placeholder-card.illustrated{padding:0;border:0;background:transparent;overflow:hidden;aspect-ratio:3/4;height:auto}.card-fan .placeholder-card.illustrated>img{display:block;width:100%;height:auto;opacity:1}.theme-art-fan{height:100%;width:100%;display:flex;align-items:center;justify-content:center;position:relative}.theme-art-fan img{position:absolute;width:76px;aspect-ratio:3/4;object-fit:contain;box-shadow:0 3px 7px #67472f20}.theme-art-fan img:first-child{transform:translateX(-34px) rotate(-13deg)}.theme-art-fan img:nth-child(2){transform:translateX(34px) rotate(13deg)}.theme-art-fan img:last-child{z-index:1}.theme-card.illustrated>img{width:100%;height:auto;aspect-ratio:3/4;opacity:1;object-fit:contain}.theme-card.illustrated:not(.collected)>img{opacity:.55;filter:saturate(.55)}#cardDetailArt.illustrated{width:min(230px,70vw);height:auto;aspect-ratio:3/4;background:transparent}#cardDetailArt.illustrated img{width:100%;height:100%;opacity:1}.draw-card-face.illustrated{padding:0!important;border:0;overflow:hidden;background:transparent;box-shadow:none}.draw-card-face.illustrated>img{width:100%;height:100%;object-fit:contain}#drawHero{width:216px;height:288px}.draw-result-card{aspect-ratio:3/4}

/* Ten results: one featured card, then three rows of three. */
#drawResultGrid:not(.single-result){grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px;margin:18px 0 22px}
#drawResultGrid:not(.single-result)>.draw-result-card:first-child{grid-column:1/-1;width:144px;justify-self:center;margin-bottom:4px}
#drawResults h2{margin-top:16px}#drawResultLine{margin-bottom:14px}
.draw-result-card .draw-rarity{font-size:11px}.draw-result-card .draw-placeholder-title{font-size:13px}.draw-result-card .draw-card-theme{font-size:8px;line-height:1.5}.draw-result-card .placeholder-paw{height:28px!important;width:28px!important}.draw-result-card .draw-face-art{gap:8px}.draw-result-card .draw-new,.draw-result-card .draw-repeat{font-size:9px;padding:2px 4px;right:4px;top:5px}
/* Fit the ten-card reveal to the available screen, without vertical scrolling. */
#drawPreview:has(#drawResults:not([hidden])){display:flex;flex-direction:column;overflow:hidden;padding:12px 16px max(12px,env(safe-area-inset-bottom))}
#drawPreview:has(#drawResults:not([hidden])) .draw-preview-header{flex:0 0 28px}
#drawPreview:has(#drawResults:not([hidden])) .draw-preview-meta{flex:0 0 16px;margin-top:0;font-size:10px}
#drawResults:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch}
#drawResults h2{flex:0 0 auto;font-size:15px;line-height:20px;margin:6px 0 2px}
#drawResultLine{flex:0 0 auto;font-size:9px;line-height:14px;margin:0 0 7px}
#drawResultGrid:not(.single-result){flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1.18fr repeat(3,minmax(0,1fr));gap:7px 9px;margin:0 0 9px;align-items:center;justify-items:center}
#drawResultGrid:not(.single-result)>.draw-result-card{height:100%;width:auto;max-width:100%;aspect-ratio:3/4;min-height:0}
#drawResultGrid:not(.single-result)>.draw-result-card:first-child{grid-column:1/-1;width:auto;height:100%;margin:0}
#drawResultGrid:not(.single-result) .draw-card-face{position:absolute;width:100%;height:100%;inset:0}
#drawResultGrid:not(.single-result) .draw-rarity{font-size:10px}
#drawResultGrid:not(.single-result) .draw-card-theme{font-size:7px}
#drawResultGrid:not(.single-result) .draw-placeholder-title{font-size:12px}
#drawResultGrid:not(.single-result) .placeholder-paw{height:22px!important;width:22px!important}
#drawResultGrid:not(.single-result) .draw-face-art{gap:4px}
#drawResultGrid:not(.single-result) .draw-new,#drawResultGrid:not(.single-result) .draw-repeat{font-size:8px;line-height:1.3;padding:1px 3px;top:3px;right:3px}
#drawResults #drawDone{flex:0 0 34px;min-height:34px;padding:5px 12px;font-size:12px}
#drawResults .draw-result-note{flex:0 0 auto;font-size:8px;line-height:12px;margin-top:5px}
#drawResultGrid.single-result{flex:1;min-height:0;margin:12px 0;align-content:center}
/* The result itself is the focus: two generous, centered rows. */
#drawPreview:has(#drawResults:not([hidden])) .draw-preview-header{height:30px;flex-basis:30px;justify-content:flex-end}
#drawPreview:has(#drawResults:not([hidden])) .draw-preview-header>span,
#drawPreview:has(#drawResults:not([hidden])) .draw-preview-meta,
#drawResults h2,#drawResultLine,#drawResults .draw-result-note{display:none}
#drawResultGrid:not(.single-result){flex:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));align-content:center;align-items:end;justify-items:stretch;gap:22px 6px;margin:0 0 24px;padding-top:0}
#drawResultGrid:not(.single-result)>.draw-result-card,
#drawResultGrid:not(.single-result)>.draw-result-card:first-child{grid-column:auto;width:100%;height:auto;max-width:none;aspect-ratio:3/4;justify-self:stretch;margin:0}
#drawResultGrid:not(.single-result)>.draw-result-card:nth-child(n+6){align-self:start}
#drawResultGrid:not(.single-result) .draw-card-face:not(.illustrated){padding:6px 3px}
#drawResultGrid:not(.single-result) .draw-placeholder-title{font-size:10px}
#drawResultGrid:not(.single-result) .draw-card-theme{font-size:6px;line-height:1.35}
#drawResultGrid:not(.single-result) .draw-face-art{gap:3px}
#drawResultGrid:not(.single-result) .draw-rarity{font-size:9px}
#drawResultGrid:not(.single-result) .placeholder-paw{height:20px!important;width:20px!important}
#drawResultGrid:not(.single-result) .draw-new,#drawResultGrid:not(.single-result) .draw-repeat{font-size:7px;top:3px;right:2px;padding:1px 2px}
#drawResults #drawDone{flex-basis:38px;min-height:38px}
body.phone-preview dialog#drawPreview:has(#drawResults:not([hidden])){height:auto;max-height:calc(100dvh - 32px);width:min(390px,calc(100vw - 16px));margin:auto;padding:10px 8px 14px;border:1px solid #93957b55;border-radius:8px!important}
#drawResults:not([hidden]){flex:0 0 auto}
#drawResultGrid:not(.single-result){flex:0 0 auto;grid-template-rows:repeat(2,auto);gap:14px 4px;align-items:center;margin:10px 0 18px}
#drawResultGrid:not(.single-result)>.draw-result-card:nth-child(n+6){align-self:center}
#drawResults #drawDone{margin:0 7px;width:calc(100% - 14px)}
.draw-result-card[role=button]{cursor:pointer}.draw-result-card[role=button]:focus-visible{outline:2px solid #fff0bd;outline-offset:3px}
body.phone-preview dialog#drawInspect{width:min(310px,calc(100vw - 40px));max-height:90dvh;padding:12px;background:#fff8e9;border-radius:8px!important;overflow:hidden}#drawInspect::backdrop{background:#17201dd9}#drawInspect .inspect-header{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:10px;color:#70583b}#drawInspect .inspect-header button{background:transparent;color:inherit;font-size:24px;padding:0;width:28px;min-height:28px}#drawInspect .inspect-art{position:relative;aspect-ratio:3/4;max-height:70dvh;margin:auto;width:100%}#drawInspect .draw-card-face{transform:none}#drawInspect .draw-placeholder-title{font-size:25px}#drawInspect .draw-rarity{font-size:16px}#drawInspect .draw-card-theme{font-size:11px}
body.phone-preview dialog#drawPreview:has(#drawResults:not([hidden])){inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;height:auto}
#drawPreview .draw-preview-header #drawClose{font-size:18px;font-weight:400}
#drawInspect .inspect-header button{font-size:18px;font-weight:400}
/* Card currencies use the same compact icon-and-balance rhythm as the header. */
body.phone-preview #wish .wish-resources{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0 0 10px;padding:0 0 0 0;min-height:28px}
body.phone-preview #wish .wish-resources>span{display:flex;justify-content:flex-start;align-items:center;gap:4px;padding:0;background:transparent;border-radius:0;color:var(--ink)}
body.phone-preview #wish .wish-resources img{display:block;width:24px;height:24px;object-fit:contain;flex:0 0 24px}
body.phone-preview #wish .wish-resources b{display:block;width:4ch;min-width:4ch;font:600 10px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:0;font-variant-numeric:tabular-nums;color:#705238;text-align:left}
.draw-pool-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.draw-pool-heading h2{flex:0 0 auto;margin:0}
body.phone-preview #wish .draw-pool-heading .wish-resources{margin:0;min-height:24px;gap:10px;flex:0 0 auto}
.card-currency-inline{display:inline-flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;vertical-align:middle}.card-currency-inline img,.card-currency-icon{display:inline-block;width:19px;height:19px;object-fit:contain;vertical-align:middle;flex:0 0 19px}
.draw-actions button small.card-currency-inline{display:flex;gap:2px;margin-top:3px}.draw-actions button small.card-currency-inline img{width:20px;height:20px}
#cardExchange{display:flex;align-items:center;justify-content:center;gap:4px}#cardDetailNote .card-currency-inline{font-size:inherit}
#drawResultGrid .draw-repeat .card-currency-inline{gap:1px}#drawResultGrid .draw-repeat img{width:11px;height:11px;flex-basis:11px}#drawEarnTickets{display:flex;align-items:center;justify-content:center;gap:3px}
/* Ownership is expressed visually, rather than repeated text labels. */
.theme-card:not(.collected){background:#e8e4dc!important;border-color:#ddd7cb;color:#a49b8b}.theme-card.illustrated:not(.collected)>img{filter:grayscale(1);opacity:.4}.theme-card:not(.illustrated):not(.collected)>img{filter:grayscale(1);opacity:.25}
#cardDetailDialog .sectionhead{justify-content:flex-end;min-height:24px}#cardDetailTitle{display:none}#cardDetailDialog .dialog-close{font-size:18px;width:28px;min-height:28px;height:28px;padding:0;background:transparent}
#cardDetailArt.illustrated{width:min(270px,calc(100vw - 80px));max-height:calc(100dvh - 220px);margin:7px auto 10px;display:flex;align-items:center;justify-content:center}#cardDetailArt.illustrated img{object-fit:contain;max-height:calc(100dvh - 220px)}#cardDetailArt.uncollected img{filter:grayscale(1);opacity:.42}#cardDetailNote{font-size:11px;line-height:1.5;margin:8px 0 15px;color:#95816a}
.card-currency-inline{font-size:inherit;line-height:inherit}.card-currency-inline img{width:16px;height:16px;flex-basis:16px}button .card-currency-inline img{width:18px;height:18px;flex-basis:18px}#resourceLedger .card-currency-inline img,.journal-meta .card-currency-inline img{width:13px;height:13px;flex-basis:13px}#themeProgressText .card-currency-inline{gap:3px}#themeReward{display:flex;align-items:center;justify-content:center;gap:4px}

#themeReward[hidden]{display:none!important}.journal-coins .card-currency-inline img{width:13px;height:13px;flex-basis:13px}
/* Rare pulls announce themselves before the face is visible. */
#drawPreview:has(#drawReveal:not([hidden])){transition:background .8s ease}
#drawPreview[data-reveal-tier=SSR]:has(#drawReveal:not([hidden])){background:radial-gradient(ellipse at 50% 43%,#8d7036 0%,#393c2b 43%,#172b27 80%)}
#drawPreview[data-reveal-tier=UR]:has(#drawReveal:not([hidden])){background:radial-gradient(ellipse at 48% 43%,#8f714b 0%,#584459 34%,#20362f 75%)}
.draw-stage.rarity-SSR{--card-glow:#ffd66e;--rare-edge:#ffe7a0}.draw-stage.rarity-UR{--card-glow:#f4c8ee;--rare-edge:#fff0ac}
.draw-stage.rarity-SSR::before,.draw-stage.rarity-UR::before{content:'';position:absolute;inset:-10% -30%;pointer-events:none;background:repeating-conic-gradient(from 0deg,transparent 0deg 17deg,#ffdf841a 18deg 21deg,transparent 22deg 39deg);mask-image:radial-gradient(ellipse,#000 0%,transparent 68%);opacity:0;transform:scale(.6);transition:opacity 1s,transform 1.8s}
.draw-stage.is-charged::before{opacity:1;transform:scale(1.3);animation:rareRayTurn 18s linear infinite}
.draw-stage.rarity-UR::before{background:repeating-conic-gradient(from 12deg,transparent 0deg 15deg,#ffe4a32b 16deg 18deg,transparent 20deg 35deg,#eac4f222 36deg 38deg,transparent 40deg 52deg)}
.draw-stage.is-charging .draw-aura{opacity:.55;transform:scale(.95);transition:opacity .6s,transform 2.2s}
.draw-stage.is-charged .draw-aura{opacity:.9;transform:scale(1.28)}
.draw-stage:is(.rarity-SSR,.rarity-UR) .draw-card-back{border-color:var(--rare-edge);box-shadow:0 0 15px #f4cb7055,0 0 42px #f4cb702b;transition:box-shadow .8s,border-color .8s;background:repeating-linear-gradient(45deg,#d9ba4b08 0 7px,transparent 7px 14px),#515d48}
.draw-stage:is(.rarity-SSR,.rarity-UR) .draw-card-back::before{content:'';position:absolute;inset:-60%;background:linear-gradient(110deg,transparent 41%,#ffe8a336 48%,#fff5b478 50%,transparent 57%);transform:translateX(-70%);animation:rareCardSweep 2s .35s ease-in-out both;pointer-events:none}
.draw-stage.is-pressure #drawHero{animation:rareAnticipation 1s ease-in-out both}
.draw-stage.is-charged .draw-spark{opacity:.7;animation:rareSparkFloat 2.2s ease-in-out infinite;color:#ffdd85;font-size:26px}
.draw-stage.rarity-UR.is-charged .spark-two{color:#f7d3ff;animation-delay:.3s}
.draw-stage.is-opening::after{content:'';position:absolute;inset:-5%;background:radial-gradient(ellipse,#fff5cabb 0%,#ffe28e55 23%,transparent 63%);z-index:5;pointer-events:none;animation:rareOpeningGlow .8s ease-out both}
.draw-stage:is(.rarity-SSR,.rarity-UR).is-revealed #drawHero{filter:drop-shadow(0 0 22px #ffd66d55)}
.draw-stage.rarity-UR .draw-card-inner{transition-duration:.95s}
@keyframes rareRayTurn{to{transform:scale(1.3) rotate(360deg)}}
@keyframes rareCardSweep{0%{transform:translateX(-70%)}100%{transform:translateX(70%)}}
@keyframes rareAnticipation{0%,100%{transform:translateY(0) scale(1)}45%{transform:translateY(-6px) scale(1.025)}72%{transform:translateY(-3px) scale(1.015)}}
@keyframes rareSparkFloat{0%,100%{opacity:.25;transform:translateY(6px) scale(.8)}50%{opacity:.85;transform:translateY(-7px) scale(1.1)}}
@keyframes rareOpeningGlow{0%{opacity:0;transform:scale(.5)}38%{opacity:1;transform:scale(1.03)}100%{opacity:0;transform:scale(1.5)}}
@media(prefers-reduced-motion:reduce){.draw-stage::before,.draw-stage::after,.draw-card-back::before,.draw-card-back::after{animation:none!important;transition:none!important}}
/* Closed dialogs must stay hidden even when their content has custom flex layouts. */
body.phone-preview dialog:not([open]){display:none!important}
#wishDraw{position:relative}#wishDraw .pool-carousel>.card{padding-bottom:32px}#wishDraw .pool-indicators{position:absolute;left:0;right:0;bottom:12px;margin:0;pointer-events:none}
#wish .draw-actions button{height:44px;min-height:44px;padding:4px 8px;font-size:13px;line-height:17px}
#wish .draw-actions button small.card-currency-inline{height:15px;line-height:15px;margin-top:1px;font-size:9px;gap:2px}
#wish .draw-actions button small.card-currency-inline img{width:17px;height:17px;flex-basis:17px}
#wish .limited-pool{display:flex;flex-direction:column}#wish .limited-center{min-height:0;flex:1}
.theme-cover.has-scene-cover{overflow:hidden;padding:0;isolation:isolate}.theme-cover>img.theme-cover-image{display:block;width:100%;height:100%;object-fit:cover;opacity:1}
/* Keep collection captions inside the scene, over a soft bottom scrim. */
#cardThemes .theme-row{position:relative}
#cardThemes .theme-caption{position:absolute;left:0;right:0;bottom:0;z-index:2;min-height:44px;padding:20px 8px 8px;display:flex;align-items:flex-end;justify-content:space-between;gap:4px;background:linear-gradient(transparent,rgba(35,29,25,.66));color:#fff8e9;pointer-events:none}
#cardThemes .theme-caption strong{font-size:10px;font-weight:600;line-height:1.45;min-width:0;text-shadow:0 1px 3px #0005}
#cardThemes .theme-caption small{font-size:9px!important;line-height:1.45;color:#fff4df;margin-left:auto!important;text-shadow:0 1px 3px #0005}
#cardThemes .theme-reward-ready .theme-caption:after{color:#ffe6a5;font-size:8px}
#drawResultGrid>.draw-result-card,#drawResultGrid:not(.single-result)>.draw-result-card,#drawResultGrid:not(.single-result)>.draw-result-card:first-child{aspect-ratio:auto;display:flex;flex-direction:column;gap:5px;height:auto}
.draw-result-art{position:relative;width:100%;aspect-ratio:3/4;flex:0 0 auto;min-height:0}
.draw-result-caption{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;text-align:center}
.draw-result-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:9px;line-height:12px;height:24px;color:#fff3d8;word-break:break-word}
.draw-result-series{display:block;width:100%;font-size:7px;line-height:10px;height:10px;color:#b9baa5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#drawResultGrid .draw-card-face:not(.illustrated) .draw-placeholder-title,#drawResultGrid .draw-card-face:not(.illustrated) .draw-card-theme{display:none}
#drawResultGrid.single-result .draw-result-name{font-size:13px;height:auto;line-height:18px}#drawResultGrid.single-result .draw-result-series{font-size:10px;height:14px;line-height:14px}
.draw-result-caption{gap:2px}.draw-result-name{height:auto;min-height:0}.draw-result-series{height:auto;min-height:0}
.draw-result-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset;max-width:100%;width:100%;word-break:normal}
.theme-cover.cover-4{background:#e5e8d8}

/* Keep the revealed identity directly beneath the card. */
#drawPreview .draw-stage{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}
#drawPreview #drawHero{flex-shrink:0}
#drawPreview #drawCaption{margin:0;min-height:36px;line-height:1.4;position:relative;z-index:2;text-align:center}
#drawPreview .draw-reveal-name{display:block;font-size:14px;font-weight:600;white-space:nowrap}
#drawPreview .draw-reveal-theme{display:block;font-size:10px;font-weight:400;color:#c5c6aa;margin-top:3px}

/* Seven-character names stay complete even in the five-column result grid. */
.draw-result-caption{container-type:inline-size}
.draw-result-name{font-size:min(9px,calc(100cqw / 7));overflow:visible;text-overflow:clip}
#drawResultGrid.single-result .draw-result-name{font-size:13px}

.card-fan.pool-scene-cover{width:100%;max-width:none;height:auto;aspect-ratio:4/3;margin:10px 0 14px;overflow:hidden;border-radius:6px}
.pool-scene-cover>img{display:block;width:100%;height:100%;object-fit:cover}

/* New care scene artwork, keeping the existing care-choice illustrations. */
body.phone-preview #pet .guiyuan-stage{background:#fff5e3 url('assets/care-v2/pet_room_background.webp') center bottom/cover no-repeat}
.guiyuan-stage .pet-window,.guiyuan-stage .pet-floor,.guiyuan-stage .pet-stage-rug{display:none}
.care-ring>span>img{width:25px;height:25px;object-fit:contain}
.care-change .care-ring>span>img{width:34px;height:34px}
.guiyuan-stage[data-condition=dirty] .pet-character:after,.guiyuan-stage[data-condition=sleeping] .pet-character:after{display:none}
.guiyuan-stage[data-condition=hungry] .pet-character{filter:none;opacity:1}

#cardThemes{gap:8px;margin-top:8px}

/* Draw actions below the scene. */
#wish .card-fan.pool-scene-cover{margin-bottom:14px}
#wish .draw-actions{position:static;margin:0;gap:9px}

/* A quiet action area blended into the lower edge of the pool illustration. */
#wish .card-fan.pool-scene-cover{position:relative;aspect-ratio:auto;padding-bottom:58px;background:#615541;margin-bottom:0}
#wish .pool-scene-cover>img{height:auto;aspect-ratio:4/3;object-fit:cover}
#wish .pool-scene-cover:after{content:'';position:absolute;inset:auto 0 0;height:100px;background:linear-gradient(transparent,#615541b3 48%,#615541);pointer-events:none}
#wish .draw-actions{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;width:80%;margin:-64px auto 8px;gap:18px;padding-bottom:24px}
#wish .draw-actions button{position:relative;height:34px;min-height:34px;padding:5px 8px;font-size:13px;line-height:22px;border-radius:6px;border:1px solid #fff4d8a6;background:#f8efdce8;color:#654f34;box-shadow:0 2px 6px #352a2426;backdrop-filter:none}
#wish .draw-actions button:last-child{background:#e8c98eed;color:#67461f;border-color:#fff0c7b3}
#wish .draw-actions button small.card-currency-inline{position:absolute;top:39px;left:0;right:0;margin:0;height:15px;justify-content:center;color:#fff4db;font-size:10px;opacity:1;pointer-events:none}
#wish .draw-actions button small.card-currency-inline img{width:17px;height:17px}

#wish .card-fan.pool-scene-cover{aspect-ratio:4/3;padding-bottom:0;background:transparent}
#wish .pool-scene-cover>img{height:100%;aspect-ratio:auto}
#wish .pool-scene-cover:after{height:92px;background:linear-gradient(transparent,rgba(49,44,28,.58))}

/* Guiyuan leads the composition; compact status controls stay together. */
.guiyuan-stage .pet-nameplate{display:none}
body.phone-preview #pet .guiyuan-stage{background-position:center bottom;background-size:100% 100%}
.guiyuan-stage .pet-character{left:10%;width:65%;height:49%;bottom:22%;max-height:none}
.guiyuan-stage .pet-care-rail{top:17%;bottom:auto;right:10px;gap:12px;justify-content:flex-start}
.guiyuan-stage .pet-care-action{gap:4px;min-height:44px}
.guiyuan-stage .care-ring{width:37px;height:37px;flex-basis:37px}
.guiyuan-stage .care-ring>span{width:27px;height:27px;background:#fff9edba}
.guiyuan-stage .care-ring>span>img{width:22px;height:22px}
.guiyuan-stage .care-action-copy small{font-size:9px}
.guiyuan-stage .care-action-copy strong{font-size:11px}
.guiyuan-stage .pet-speech{top:auto;bottom:73%;left:7%;right:27%;padding:8px 10px;font-size:11px;line-height:1.55;border-radius:8px!important;box-shadow:none;background:#fffaf0e8}
.guiyuan-stage .pet-speech:after{content:'';position:absolute;bottom:-6px;left:45%;border:6px solid transparent;border-top-color:#fffaf0e8;border-bottom:0}
.guiyuan-stage .pet-situation{left:10px;right:10px;bottom:10px;padding:8px;background:#fff9ece8}
.guiyuan-stage #petNeed:empty,.guiyuan-stage #petCompanionLine:empty{display:none}
.guiyuan-stage .pet-extra-actions{margin-top:0;gap:6px}
.guiyuan-stage #petNeed:not(:empty){margin-bottom:6px;font-size:10px}
.guiyuan-stage .pet-extra-actions button{min-height:30px;font-size:10px!important}
@media(max-height:650px){.guiyuan-stage .pet-care-rail{top:12%;gap:6px}.guiyuan-stage .pet-speech{bottom:76%}.guiyuan-stage .pet-character{bottom:20%}}

body.phone-preview #pet .guiyuan-stage{background-size:100% 125%}
.guiyuan-stage .pet-care-rail{top:10%}
.guiyuan-stage .pet-speech{bottom:79%}
.guiyuan-stage .pet-character{left:10%;width:67%;height:53%;bottom:23%}

/* Five status meters above the room, with names only. */
.guiyuan-stage .pet-care-rail{left:10px;right:10px;top:12px;bottom:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px 4px;background:#fff9ece8;border-radius:6px}
.guiyuan-stage .pet-care-action{flex-direction:column;gap:4px;justify-content:center;min-height:0}
.guiyuan-stage .care-action-copy small{font-size:10px;color:#806a50}
.guiyuan-stage .care-action-copy strong{display:none}
.guiyuan-stage .pet-speech{bottom:auto;top:110px;left:12%;right:12%}
.guiyuan-stage .pet-character{left:15%;width:70%;bottom:23%}

/* Status panel floats over the room; the illustration remains continuous. */
body.phone-preview #pet .guiyuan-stage{background-image:url('assets/care-v2/room-background-v3.webp');background-size:cover;background-position:center bottom}
.guiyuan-stage .pet-care-rail{position:absolute;top:12px;left:12px;right:12px;padding:10px 6px;background:rgba(255,249,235,.93);border:1px solid rgba(218,200,165,.65);border-radius:7px;box-shadow:0 3px 10px #79552d0d;z-index:5}
.guiyuan-stage .pet-character{left:15%;bottom:22%;width:70%;height:48%}
.guiyuan-stage .pet-speech{top:112px;left:14%;right:14%}

.guiyuan-stage .pet-speech{top:auto;bottom:63%;left:17%;right:17%;padding:7px 10px}
.guiyuan-stage .pet-speech:after{left:48%}

/* Leave the chair and bone cushion visible behind Guiyuan. */
.guiyuan-stage .pet-character{bottom:11%;height:43%;left:10%;width:67%}
.guiyuan-stage .pet-speech{bottom:49%;left:14%;right:20%}

.guiyuan-stage .pet-speech{left:8%;right:46%;bottom:49%}

/* Stable floor positions change only when entering the Guiyuan tab. */
.guiyuan-stage .pet-character{left:var(--pet-floor-x,10%);bottom:var(--pet-floor-y,11%);width:64%;height:43%}
.guiyuan-stage .pet-speech{left:calc(var(--pet-floor-x,10%) + 2%);right:auto;width:44%;box-sizing:border-box;bottom:calc(var(--pet-floor-y,11%) + 38%)}

.pet-floor-mess{display:none;position:absolute;inset:0;pointer-events:none;z-index:1}
.has-mess .pet-floor-mess{display:block}
.guiyuan-stage.has-mess:after{display:none}
.pet-floor-mess img{position:absolute;width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 2px 2px #79552d18)}
.pet-floor-mess img:nth-child(1){left:10%;bottom:16%;transform:rotate(-18deg)}
.pet-floor-mess img:nth-child(2){right:8%;bottom:19%;width:30px;height:30px}
.pet-floor-mess img:nth-child(3){left:51%;bottom:9%;width:34px;height:34px;transform:rotate(22deg)}

/* Dirty and clean room art share the same composition and crossfade. */
.guiyuan-stage:before{content:'';position:absolute;inset:0;background:url('assets/care-v2/room-messy-day.webp') center bottom/cover no-repeat;opacity:0;transition:opacity .35s ease;pointer-events:none;z-index:0}
.guiyuan-stage.has-mess:before{opacity:1}
.guiyuan-stage .pet-floor-mess{display:none!important}
.guiyuan-stage .pet-situation{display:flex;align-items:center;gap:12px;padding:10px}
.guiyuan-stage #petNeed:not(:empty){flex:1;margin:0;font-size:11px;line-height:1.55}
.guiyuan-stage .pet-extra-actions{flex:0 0 auto;margin:0}
.guiyuan-stage .pet-extra-actions button{flex:none;padding:7px 12px!important;font-size:11px!important;min-height:32px;background:#777e55;color:#fff9ed}
.guiyuan-stage .pet-extra-actions:has(button:not([hidden])){display:flex}
.guiyuan-stage .pet-extra-actions:not(:has(button:not([hidden]))){display:none}

#petCompanionLine[hidden]{display:none!important}
.pet-extra-actions button[hidden]{display:none!important}
.production-flight{display:grid;place-items:center;filter:drop-shadow(0 3px 4px #6b4a2d24)}
.production-flight img{width:100%;height:100%;object-fit:contain}
.cell.production-blocked{animation:productionNoRoom .4s ease;border-color:#c28268!important;box-shadow:inset 0 0 0 2px #c2826866!important}
#board.board-blocked{outline:2px solid #c282683d;outline-offset:2px}
@keyframes productionNoRoom{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}65%{transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){.cell.production-blocked{animation:none}}

#wish .pool-scene-cover:after{background:linear-gradient(transparent,rgba(49,44,28,.72))}

#wishDraw .pool-carousel>.card{padding-bottom:20px}
#wishDraw .pool-indicators{bottom:8px}

#wish .theme-collection{margin-top:8px}

/* A ground-contact ellipse, never a silhouette drop shadow. */
.guiyuan-stage .pet-character{isolation:isolate}
.guiyuan-stage .pet-character img{position:relative;z-index:1;filter:none!important}
.pet-ground-shadow{position:absolute;display:block;background:rgba(116,76,44,.18);border-radius:50%;filter:blur(3px);transform:translate(-50%,-50%);z-index:0;pointer-events:none}

/* Broad diffuse floor shadow plus a smaller contact shadow under the paws. */
.pet-ground-shadow{background:none;filter:none;border-radius:0}
.pet-ground-shadow:before,.pet-ground-shadow:after{content:'';position:absolute;pointer-events:none}
.pet-ground-shadow:before{inset:-12% -3%;background:radial-gradient(ellipse at 50% 48%,rgba(142,85,39,.2) 0%,rgba(142,85,39,.15) 36%,rgba(142,85,39,.06) 65%,transparent 80%);border-radius:49% 55% 46% 52%;filter:blur(2.5px);transform:rotate(-2deg)}
.pet-ground-shadow:after{left:19%;right:17%;top:29%;bottom:23%;background:radial-gradient(ellipse,rgba(117,66,28,.32) 0%,rgba(117,66,28,.22) 37%,rgba(117,66,28,.08) 65%,transparent 83%);border-radius:48% 53% 46% 51%;filter:blur(1px)}
.pet-character.is-sleeping .pet-ground-shadow:after{left:10%;right:10%;top:30%;bottom:18%}

/* Contact shadow overlaps the paw bases instead of sitting below them. */
.pet-ground-shadow:before{inset:-10% -4%;background:radial-gradient(ellipse,rgba(145,84,37,.23) 0%,rgba(145,84,37,.13) 45%,transparent 77%);filter:blur(2px)}
.pet-ground-shadow:after{left:16%;right:15%;top:33%;bottom:18%;background:radial-gradient(ellipse at 38% 50%,rgba(112,60,24,.44),rgba(112,60,24,.18) 48%,transparent 75%),radial-gradient(ellipse at 65% 50%,rgba(112,60,24,.3),transparent 72%);filter:blur(.6px)}

.pet-ground-shadow{display:none!important}

.guiyuan-stage[data-condition=away] .pet-speech{display:none!important}

.pet-event-alert-title{display:block;font-size:14px;line-height:1.5;color:#a45c3c;margin-bottom:3px;font-weight:650}
.guiyuan-stage .pet-situation.is-away-event{border:1px solid #c9936f;background:#fff2df;align-items:center}
.guiyuan-stage .is-away-event #petNeed{font-size:10px;line-height:1.5}
.guiyuan-stage .is-away-event .pet-extra-actions button{background:#a56847;white-space:nowrap}

.care-change[hidden]{display:none!important}
.order-card.timed-double{border-color:#b89555;background:#fff5da}
.timed-double .order-title{color:#99702d;font-weight:650;font-variant-numeric:tabular-nums}
.timed-double .order-reward-amount{color:#99702d}
[data-away-clock]{font-variant-numeric:tabular-nums;font-size:12px;color:#977653}

.care-choice-effect [data-away-clock]{font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}

.order-multiplier{font-size:10px;font-weight:650;color:#99702d;margin-right:3px;white-space:nowrap}
.order-multiplier[hidden]{display:none!important}
.order-title .double-order-clock{font-size:9px;font-weight:400;color:#9c8058;white-space:nowrap}

/* Timed doubles have a restrained gold treatment, with the same item layout. */
.order-card.timed-double{position:relative;background:linear-gradient(145deg,#fff1ce,#fff9e9 74%);border:1px solid #cba157;box-shadow:inset 0 3px 0 #c39a4e}
.order-card.timed-double .order-heading{color:#805a25}
.timed-double .order-title{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:12px;line-height:1.45}
.timed-double .double-order-clock{background:#e8c87966;border:1px solid #d5b16a70;padding:1px 4px;border-radius:3px;color:#86632f;font-size:9px;font-weight:500;line-height:1.35}
.timed-double .order-multiplier{display:inline-block;background:#a67834;color:#fff9e9;border-radius:3px;padding:1px 4px;font-size:9px;line-height:1.4;margin-right:3px}
.timed-double .order-need:not(.done){background:#f1e4c9}
.timed-double>button:not(:disabled){background:#9b783e}

#merge .item-panel #supplyMergeHint{padding:0;margin-left:4px;min-height:0;font-size:9px;font-weight:400;line-height:1.4;white-space:nowrap;color:#948166}
#merge .item-panel #consumeReward{display:inline-flex;align-items:center;justify-content:center;gap:3px;line-height:1;font-size:10px}
#consumeReward .card-currency-inline{display:inline-flex;align-items:center;gap:3px;font:inherit;line-height:1;vertical-align:middle}
#consumeReward .card-currency-inline img{width:15px;height:15px;object-fit:contain;display:block;flex:0 0 15px}
.timed-double .order-reward-bundle{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;background:#f0d48e;border:1px solid #d5ad53;border-radius:4px;padding:3px 5px;color:#684416}
.timed-double .order-reward-amount{font-size:16px;font-weight:700;line-height:1;color:#684416}
.timed-double .order-multiplier{font-size:11px;line-height:1.2;padding:2px 3px;margin:0;background:#9c6a24;color:#fff9e8}
.timed-double .order-reward-bundle .paw-icon{width:17px;height:17px;object-fit:contain}

/* Keep the currency and amount identical to normal orders; append only a multiplier. */
.timed-double .order-reward-bundle{background:transparent;border:0;border-radius:0;padding:0;color:inherit;gap:3px;box-shadow:none}
.timed-double .order-reward-amount{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}
.timed-double .order-multiplier{background:transparent;color:inherit;border:0;border-radius:0;padding:0;margin:0;font-size:inherit;font-weight:inherit;line-height:inherit}
.timed-double .order-reward-bundle .paw-icon{width:17px;height:17px;flex:0 0 17px}

.timed-double .order-multiplier{color:#bc6b29;font-weight:700}

/* A constant-height strip prevents selection from resizing the orders and board. */
#merge .item-panel,#merge .item-panel:has(#selection:empty){display:flex!important;flex-direction:row;align-items:center;min-height:38px;height:38px;max-height:38px;padding:4px 8px;flex:0 0 38px;box-sizing:border-box}
#merge .item-panel #selection:empty{display:none}
.merge-tip{display:flex;align-items:center;gap:7px;min-width:0;width:100%;height:100%}
.merge-tip[hidden]{display:none!important}
#mergeTipNext{flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:2px;background:#fff8e9;border-radius:50%!important}
#mergeTipNext img{display:block;width:24px;height:24px;object-fit:contain}
#mergeTipText{font-size:10px;line-height:1.45;color:#886c4e;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.phone-preview #merge>.merge-play-card{flex:0 0 auto}
body.phone-preview #merge .orders-panel{flex:0 0 auto;min-height:0}
body.phone-preview #merge .order-items{flex:0 0 64px;height:64px;min-height:64px}
body.phone-preview #merge .order-need{height:64px;min-height:64px;justify-content:center;gap:3px}
body.phone-preview #merge:not([hidden]){justify-content:flex-start}

#mergeTipText{display:block;white-space:nowrap;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;font-size:clamp(9px,2.4vw,10px);line-height:1.4}

body.phone-preview #poolCarousel .draw-pool-heading h2,body.phone-preview #poolCarousel .limited-pool>h2{font-size:15px;font-weight:650;line-height:1.5;margin:0}

.theme-row.coming-soon:disabled{opacity:1;cursor:default}
.coming-soon .theme-cover-image{filter:saturate(.25)}
.theme-coming-mask{position:absolute;inset:0;display:grid;place-items:center;background:rgba(38,43,37,.5);color:#fff7e6;font-size:13px;font-weight:600;letter-spacing:1px;z-index:2}
.coming-soon .theme-caption small{display:none}

.coming-soon .theme-cover-image{filter:saturate(.6)}
.theme-coming-mask{background:rgba(255,246,226,.48);color:#745c40;text-shadow:0 1px 3px #fff8eacc}

.theme-coming-mask{background:rgba(48,52,48,.30);color:#fffaf0;text-shadow:0 1px 3px #343a3566}

/* Unreleased cover: washed-out grayscale, like an unavailable item. */
.coming-soon .theme-cover-image{filter:grayscale(1) contrast(.58);opacity:.66}
.theme-row.coming-soon .theme-cover{background:#e5e2dc}
.theme-coming-mask{background:rgba(224,222,215,.24);color:#fffdf7;text-shadow:0 1px 3px #736e6480}
.coming-soon .theme-caption strong{color:#aaa497}

.theme-coming-mask{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;letter-spacing:0}
.theme-coming-mask strong{font-size:13px;font-weight:600;line-height:1.5;color:#fffdf7}
.theme-coming-mask small{font-size:10px;font-weight:400;line-height:1.4;color:#fffdf7}
.theme-row.coming-soon .theme-caption{display:none}

#cardThemes .theme-row.coming-soon .theme-caption{display:none!important}
#cardThemes .coming-soon .theme-coming-mask{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;padding:0;transform:none}
#cardThemes .theme-coming-mask>strong,#cardThemes .theme-coming-mask>small{display:block;width:100%;margin:0!important;padding:0;text-align:center;align-self:center;transform:none;white-space:nowrap}

#cardThemes .coming-soon .theme-coming-mask{background:none;z-index:3;isolation:isolate;text-shadow:none}
#cardThemes .coming-soon .theme-coming-mask:before{content:'';position:absolute;inset:0;background:rgba(224,222,215,.24);z-index:0}
#cardThemes .coming-soon .theme-coming-mask>strong,#cardThemes .coming-soon .theme-coming-mask>small{position:relative;z-index:1;opacity:1;color:#fff!important;filter:none;text-shadow:0 1px 3px rgba(62,59,53,.65)}

.care-choice>img{width:54px;height:54px;aspect-ratio:1;object-fit:contain;flex:0 0 54px}
.pet-away-subtitle{display:block;white-space:nowrap;font-size:clamp(9px,2.4vw,10px);line-height:1.5}
.guiyuan-stage .is-away-event #petNeed{min-width:0}

.guiyuan-stage .is-away-event .pet-event-alert-title{font-size:11px;line-height:1.5;margin:0;font-weight:600;white-space:nowrap}

.care-preview-switch{position:absolute;left:10px;right:10px;bottom:80px;z-index:8;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:5px;background:#fff9edeb;border:1px dashed #b9aa8a;border-radius:6px}
.care-preview-switch button{min-height:28px;padding:3px 1px;font-size:9px;white-space:nowrap;background:#e8dfcb;color:#806a50}
.care-preview-switch button[aria-pressed=true]{background:#777e55;color:#fff9ed}

.guiyuan-stage .pet-situation{background:#fff7e8}

.guiyuan-stage .pet-speech{left:7%;right:7%;width:auto;white-space:nowrap;font-size:clamp(9px,2.4vw,11px);text-align:center;overflow:visible}
.guiyuan-stage .pet-speech:after{left:clamp(12%,calc(var(--pet-floor-x,10%) + 27%),85%)}

.guiyuan-stage .pet-character{filter:none!important;transform:none!important;opacity:1!important}

/* Fit the bubble to its sentence, anchored above Guiyuan. */
.guiyuan-stage .pet-speech{left:clamp(38%,calc(var(--pet-floor-x,10%) + 32%),62%);right:auto;width:max-content;max-width:92%;transform:translateX(-50%);white-space:nowrap;padding:7px 11px;text-align:center;box-sizing:border-box}
.guiyuan-stage .pet-speech:after{left:calc(50% - 6px)}

.furniture-row.damaged .furniture-copy small{color:#ae704c;font-weight:600}
.furniture-row.damaged>img{filter:grayscale(1);opacity:.5}
.damage-preview-trigger{position:absolute;left:15%;right:15%;bottom:88px;z-index:8;padding:7px;min-height:30px;font-size:10px;background:#a7754a}
.damage-preview-trigger[hidden]{display:none}
#damagedFurnitureText{font-size:12px;line-height:1.6}
#damagedFurnitureDialog .actions{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
#damagedFurnitureBuy{font-size:12px;min-height:34px}

body.phone-preview #damagedFurnitureDialog{width:min(350px,calc(100vw - 32px));padding:22px 14px 14px;min-height:0}
#damagedFurnitureTitle{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#damagedFurnitureClose{position:absolute;right:5px;top:3px;width:22px;height:22px;min-height:22px;padding:0;background:transparent;font-size:18px;line-height:1}
.damaged-purchase-row{display:flex;align-items:center;gap:8px;white-space:nowrap}
#damagedFurnitureImage{width:42px;height:42px;object-fit:contain;flex:0 0 42px}
#damagedFurnitureText{font-size:12px;line-height:1.4;margin:0;color:#9e7756}
#damagedFurnitureBuy{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-left:auto;min-height:32px;padding:7px 9px;font-size:11px;line-height:1;white-space:nowrap}
#damagedFurnitureBuy .card-currency-inline{font:inherit;line-height:1;gap:3px}
#damagedFurnitureBuy .card-currency-inline img{width:15px;height:15px;object-fit:contain}

body.phone-preview #damagedFurnitureDialog{padding-top:29px}
#damagedFurnitureClose{top:3px;right:4px;width:20px;height:20px;min-height:20px;font-size:14px}

/* One compact toast style across all game pages. */
body.phone-preview #notice{position:fixed;left:50%;top:calc(68px + env(safe-area-inset-top));bottom:auto;transform:translateX(-50%);margin:0;min-height:0;width:max-content;max-width:min(330px,calc(100vw - 40px));padding:7px 12px;border:1px solid #d6c6aa;border-radius:6px;background:#fff8e9;color:#735b40;font-size:11px;font-weight:400;line-height:1.45;box-shadow:0 3px 12px #67472f18;text-align:center;z-index:10000;pointer-events:none}
body.phone-preview #notice .card-currency-inline{font-size:inherit;line-height:inherit;vertical-align:middle}
body.phone-preview #notice .card-currency-inline img{width:14px;height:14px;object-fit:contain}

/* Shared tracks keep owned/status and price cards aligned. */
.room-collection .furniture-row{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:53px minmax(14px,auto) 16px 28px;align-items:center;justify-items:center;gap:6px}
.room-collection .furniture-copy{display:contents}
.room-collection .furniture-copy strong{display:flex;align-items:center;justify-content:center;min-height:14px;line-height:14px;margin:0;width:100%}
.room-collection .furniture-copy small{display:flex;align-items:center;justify-content:center;height:16px;min-height:16px;margin:0;line-height:1;width:100%}
.room-collection .furniture-copy small .card-currency-inline{display:inline-flex;align-items:center;line-height:1;font-size:inherit;gap:3px}
.room-collection .furniture-copy small .card-currency-inline img{display:block;width:13px;height:13px;flex:0 0 13px;object-fit:contain}
.room-collection .furniture-row>button{height:28px;min-height:28px;align-self:end;margin:0;line-height:1;padding:5px 3px}

body.phone-preview #furnitureArrivalDialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(280px,calc(100vw - 48px));padding:24px 18px 19px;background:#fff9ed;border:1px solid #d9c8ac;box-shadow:0 6px 24px #67472f20}
#furnitureArrivalDialog::backdrop{background:rgba(48,40,31,.32)}
#furnitureArrivalClose{position:absolute;top:3px;right:4px;width:22px;height:22px;min-height:22px;padding:0;background:transparent;font-size:14px;line-height:1}
.furniture-arrival-content{display:flex;align-items:center;justify-content:center;gap:14px}
#furnitureArrivalImage{display:block;width:52px;height:52px;flex:0 0 52px;object-fit:contain}
#furnitureArrivalName{display:block;font-size:12px;font-weight:600;line-height:1.5}
.furniture-arrival-content p{font-size:11px;line-height:1.5;color:#8f795c;margin:4px 0 0}

body.phone-preview #furnitureArrivalDialog{width:min(230px,calc(100vw - 48px));padding:25px 20px 21px}
.furniture-arrival-content{flex-direction:column;gap:10px;text-align:center}
#furnitureArrivalImage{width:64px;height:64px;flex:0 0 64px}
#furnitureArrivalName{text-align:center}
.furniture-arrival-content p{margin:6px 0 0;text-align:center}

#refresh:disabled{opacity:1;font-size:10px;color:#a38b6c;background:transparent;padding:0;min-height:20px;cursor:default}
.daily-discount-item{position:relative;padding:23px 6px 7px;gap:4px;display:grid;grid-template-rows:48px 28px 28px;justify-items:center;align-items:center}
.daily-discount-item>span.discount-badge{position:absolute;right:5px;top:5px;display:block;min-height:0;padding:1px 4px;border-radius:3px;background:#e6c18a;color:#7a4c26;font-size:8px;font-weight:650;line-height:1.4}
.daily-discount-item>span.discount-item-name{font-size:10px;line-height:1.4;min-height:28px;display:flex;align-items:center;justify-content:center;text-align:center}
.discount-original{font-size:9px;line-height:1;color:#ab9a80;text-decoration:line-through}
.discount-original .card-currency-inline{font-size:inherit;line-height:1;gap:2px}
.discount-original img{width:11px!important;height:11px!important;object-fit:contain;opacity:.65}
.daily-discount-item .discount-buy{display:flex;align-items:center;justify-content:center;width:100%;height:28px;min-height:28px;line-height:1;font-size:11px;padding:4px}
.discount-buy .card-currency-inline{font:inherit;line-height:1;gap:3px}
.discount-buy .card-currency-inline img{width:15px;height:15px;object-fit:contain}
.daily-discount-item.sold>img{opacity:.55}

.mini-shop .collection-tools .discount-refresh-clock{font-size:10px;font-weight:400;color:#9b8467;background:none;padding:0;white-space:nowrap;font-variant-numeric:tabular-nums}

.discount-buy{gap:5px}.discount-buy .discount-original{color:rgba(255,255,255,.62);font-size:9px}

.guiyuan-stage:before{background-image:var(--care-mess-background)}
.discount-buy .discount-original{font-size:inherit}

.pet-state-preview-button{position:absolute;z-index:8;right:12px;top:104px;min-height:27px;padding:5px 9px;font-size:10px;background:#fff7e8;color:#786344;border:1px solid #d5c4a4;border-radius:5px;line-height:1.3}

.toast-preview-launcher{position:fixed;right:16px;bottom:76px;z-index:9000;font-size:10px;padding:7px 10px;min-height:28px;background:#796747;color:#fff8e9}.toast-preview-dialog{width:310px;padding:20px}.toast-preview-dialog h2{font-size:15px}.toast-preview-dialog p{font-size:11px;line-height:1.6}.toast-preview-dialog select{width:100%;margin:12px 0;font-size:12px;padding:8px}.toast-preview-dialog>button{margin-top:8px;width:100%;min-height:32px;font-size:12px}

.order-delivery-ghost{overflow:hidden}.order-animation-preview{position:fixed;right:16px;bottom:76px;z-index:9000;font-size:10px;padding:7px 10px;min-height:28px;background:#796747;color:#fff8e9}

#merge .item-panel{flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}#merge .item-panel::-webkit-scrollbar{display:none}
#merge .item-panel #selection{flex:0 0 auto;white-space:nowrap;font-size:10px}
#merge .item-panel #itemStatus{flex:1 0 auto;min-width:0;white-space:nowrap;font-size:9px;margin:0;text-align:right}
#merge .item-panel #workshopRefill{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;min-height:27px;height:27px;padding:4px 7px;font-size:10px;line-height:1;white-space:nowrap}
#merge .item-panel #workshopRefill[hidden]{display:none!important}
#merge .item-panel #workshopRefill .card-currency-inline{font-size:inherit;line-height:1;gap:2px}
#merge .item-panel #workshopRefill img{width:13px;height:13px;object-fit:contain}

#merge .boardtools{display:none!important}#merge .item-panel :is(#claimRewards,#claimParts){flex:0 0 auto;white-space:nowrap;min-height:27px;height:27px;padding:4px 7px;font-size:10px}#merge .item-panel :is(#claimRewards,#claimParts)[hidden]{display:none!important}

/* Central, consistent feedback for actions requiring an explanation. */
body.phone-preview #notice{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:260px;max-width:calc(100vw - 48px);min-height:42px;padding:12px 16px;box-sizing:border-box;border:0;border-radius:6px;background:rgba(20,20,20,.58);color:#fff;font-size:12px;font-weight:400;line-height:1.5;box-shadow:none;text-align:center;z-index:10000;pointer-events:none}
body.phone-preview #notice:empty{display:none!important}

body.phone-preview #notice{width:max-content;max-width:min(300px,calc(100vw - 48px));min-height:0;padding:9px 14px;background:rgba(20,20,20,.46)}

#energyRefill:disabled,#workshopRefill:disabled,.furniture-row button:disabled,.discount-buy:disabled,#cardExchange:disabled,#careConfirm:disabled,.care-choice:disabled{background:#e5dfd3!important;color:#aaa397!important;filter:grayscale(1);opacity:.7}

#saveStatusNotice{background:#eee3cf;border:1px solid #d5c3a9;padding:10px;font-size:11px;line-height:1.6;border-radius:6px}.player-profile.has-save-warning:after{content:'';width:6px;height:6px;border-radius:50%;background:#b77850}

#dailyActivityPanel{position:absolute;z-index:9;right:12px;top:104px;width:136px;color:#74583b;font-size:11px}
#dailyActivityPanel>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:7px;min-height:30px;padding:6px 9px;border:1px solid #d5c3a5;border-radius:6px;background:#fff8e9;cursor:pointer;white-space:nowrap}
#dailyActivityPanel>summary::-webkit-details-marker{display:none}#dailyActivityPanel>summary small{font-size:10px;color:#8b7b62}#dailyActivityPanel>summary i{font-style:normal;color:#a38b67}#dailyActivityPanel.has-claim>summary:after{content:'';position:absolute;right:5px;top:4px;width:5px;height:5px;border-radius:50%;background:#c87655}
#dailyActivityPanel[open]{width:min(310px,calc(100% - 24px));border:1px solid #d5c3a5;border-radius:6px;background:#fff8e9;box-shadow:0 4px 14px #65492f18}#dailyActivityPanel[open]>summary{justify-content:flex-end;border:0;border-bottom:1px solid #e8dcc5;border-radius:6px 6px 0 0;background:none}#dailyActivityPanel[open]>summary i{transform:rotate(180deg)}
.daily-activity-body{padding:10px 12px;max-height:min(440px,calc(100dvh - 270px));overflow:auto}.daily-activity-heading{display:flex;justify-content:space-between;align-items:center}.daily-activity-heading strong{font-size:11px;font-weight:500}.daily-activity-heading b{font-size:15px;color:#778453;margin-left:4px}.daily-activity-heading small{font-size:9px;color:#aa967a}
.daily-activity-track{height:4px;background:#e6ddc9;border-radius:3px;margin:10px 0 8px;overflow:hidden}.daily-activity-track>span{display:block;height:100%;background:#95a46c;transition:width .3s}
.daily-activity-rewards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.daily-activity-reward{display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px 2px;min-height:79px;background:#eee7d7;color:#9e927c;font-size:10px;border:1px solid transparent}.daily-activity-reward:disabled{opacity:1}.daily-activity-reward>strong{font-size:11px;font-weight:600}.daily-activity-reward>small{font-size:9px;color:inherit}.daily-activity-reward.is-ready{background:#e8edd9;border-color:#95a46c;color:#6b7946}.daily-reward-icons{display:flex;flex-direction:column;gap:3px;min-height:28px;justify-content:center}.daily-reward-icons .card-currency-inline{font-size:10px;gap:2px}.daily-reward-icons img{width:14px!important;height:14px!important;object-fit:contain}
.daily-activity-tasks{margin-top:9px}.daily-task-row{display:flex;align-items:center;gap:7px;min-height:30px;border-bottom:1px solid #eee4d3;font-size:10px}.daily-task-row>span{flex:1}.daily-task-row>small{font-size:9px;min-width:28px;text-align:right;color:#9c8b72}.daily-task-row>b{font-size:10px;min-width:23px;text-align:right;font-weight:500;color:#83905e}.daily-task-row.is-done{color:#919979}.daily-task-row.is-done>small{color:#83905e}.daily-activity-foot{margin:8px 0 0;text-align:center;font-size:9px;color:#a79578}

.guiyuan-stage:has(#dailyActivityPanel[open]) .pet-state-preview-button{display:none}

/* Three compact aligned rows: milestones, rewards, claim states. */
.daily-activity-track{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:29px;overflow:visible;background:none;margin:7px 0 6px;border-radius:0}
.daily-activity-track:before{content:'';position:absolute;left:12.5%;right:12.5%;bottom:3px;height:3px;background:#ded8c4;border-radius:2px}
.daily-activity-track>.daily-track-fill{position:absolute;left:12.5%;bottom:3px;height:3px;background:#95a46c;border-radius:2px;transition:width .3s}
.daily-activity-track>.daily-track-node{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;height:29px;width:auto;background:none;color:#a49a85;font-size:10px}
.daily-track-node b{font-weight:500;line-height:14px}.daily-track-node i{display:block;width:8px;height:8px;border-radius:50%;background:#dfd7c3;border:2px solid #fff8e9;box-sizing:content-box;margin-bottom:-1px}.daily-track-node.is-reached{color:#7b8b57}.daily-track-node.is-reached i{background:#95a46c}
.daily-activity-rewards,.daily-activity-claims{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.daily-activity-rewards>.daily-reward-icons{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;min-height:20px;white-space:nowrap;opacity:.65}.daily-activity-rewards>.daily-reward-icons.is-reached{opacity:1}.daily-reward-icons .card-currency-inline{font-size:10px;gap:2px}
.daily-activity-claims{margin-top:4px}.daily-activity-claim{padding:3px 1px;min-height:23px;height:23px;background:none;color:#a49a85;font-size:9px;line-height:1.3}.daily-activity-claim:disabled{opacity:1}.daily-activity-claim.is-ready{background:#e8edd9;color:#72814e}
.daily-task-row{min-height:27px}.daily-activity-body{padding-top:8px;padding-bottom:8px}

#dailyActivityPanel[open] #dailyActiveNumber{display:none}

#dailyActivityPanel #dailyActiveNumber{display:none}
#dailyActivityPanel.has-claim>summary:after{display:none}
#dailyActivityPanel{width:112px}
#dailyActivityPanel[open]>summary{position:absolute;right:5px;top:5px;width:22px;height:22px;min-height:22px;padding:2px;justify-content:center;border:0;border-bottom:0;background:none;z-index:2}
#dailyActivityPanel[open]>summary>span{display:none}
#dailyActivityPanel[open] .daily-activity-body{padding-top:10px}
.daily-activity-heading{padding-right:22px;min-height:20px}

#dailyActivityPanel:not([open]){width:102px}
#dailyActivityPanel>summary{gap:5px;padding:5px 7px;min-height:29px;align-items:center}
.daily-task-entry-icon{display:block;width:13px;height:15px;flex:0 0 13px;fill:none;stroke:#9b8059;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
#dailyActivityPanel>summary>span{line-height:16px}
#dailyActivityPanel>summary i{display:flex;width:13px;height:16px;flex:0 0 13px;align-items:center;justify-content:center}
#dailyActivityPanel>summary i svg{display:block;width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#dailyActivityPanel[open]>summary>.daily-task-entry-icon{display:none}

/* A small wall-calendar entry fits into the room decor. */
#dailyActivityPanel:not([open]){width:80px}
#dailyActivityPanel:not([open])>summary{flex-direction:column;gap:3px;padding:7px 5px 6px;min-height:77px;background:rgba(255,249,233,.92);border:1px solid #dfcfb3;border-radius:6px;box-shadow:0 2px 3px #8e6d3f0b}
#dailyActivityPanel:not([open]) .daily-task-entry-icon{width:39px;height:39px;flex:0 0 39px;stroke:none}
#dailyActivityPanel .daily-task-entry-label{display:flex;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:400;line-height:16px;white-space:nowrap}
#dailyActivityPanel:not([open])>summary i{width:11px;height:14px;flex:0 0 11px}
#dailyActivityPanel:not([open])>summary i svg{width:11px;height:11px}
#dailyActivityPanel[open]>summary>.daily-task-entry-label{display:flex;font-size:0;gap:0;line-height:0}
#dailyActivityPanel[open]>summary>.daily-task-entry-label i{font-size:10px;display:flex}
.guiyuan-stage .pet-state-preview-button{top:192px!important}

#dailyActivityPanel:not([open]) .daily-task-entry-label{position:relative;display:block;width:100%;text-align:center;padding:0;gap:0}
#dailyActivityPanel:not([open]) .daily-task-entry-label i{position:absolute;right:0;top:50%;transform:translateY(-50%);margin:0}
#dailyActivityPanel:not([open]) .daily-task-entry-icon{align-self:center}

#dailyActivityPanel:not([open]) .daily-task-entry-label i{display:none}

#wish .draw-actions{padding-bottom:39px;margin-top:-79px}
.free-draw-countdown{position:absolute;top:56px;left:-9px;right:-9px;font-size:9px;line-height:13px;font-weight:400;color:#fff4db;white-space:nowrap;pointer-events:none;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #30201380}
#wish .draw-actions .is-free{color:#fff3ca;font-size:10px;font-weight:500}

#wish .draw-actions{padding-bottom:24px;margin-top:-64px}
.draw-single-meta{position:absolute;top:39px;left:-13px;right:-13px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:15px;white-space:nowrap;pointer-events:none}
#wish .draw-actions button .draw-single-meta small.card-currency-inline{position:static;left:auto;right:auto;top:auto;margin:0;height:15px;line-height:15px;flex:0 0 auto;font-size:9px}
.draw-single-meta .free-draw-countdown{position:static;inset:auto;display:inline;font-size:9px;line-height:15px;white-space:nowrap}
.draw-single-meta .free-draw-countdown:empty{display:none}
/* Daily postcards have one story and one reward row. */
.journal-card #journal{max-height:none;overflow:visible}
.journal-card .journal-postcard{padding:12px;margin:9px 0;border:1px solid #e1d3bb;border-radius:6px;background:#fff9ed}
.postcard-title{font-size:10px;color:#a38b67;letter-spacing:.04em}
.postcard-reward-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;min-height:25px}
.postcard-rewards{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#8b7b55}
.postcard-rewards .card-currency-inline{font-size:11px;gap:3px}.postcard-rewards img{width:16px;height:16px;object-fit:contain}.postcard-rewards img.postcard-furniture{width:35px;height:35px}
.postcard-reward-row>button{position:relative;font-size:10px;min-height:26px;padding:4px 12px}.postcard-reward-row>small{font-size:9px;color:#a89c87}
.bottom-nav button.has-unclaimed{position:relative}.bottom-nav button.has-unclaimed:after{content:'';position:absolute;top:7px;left:calc(50% + 10px);width:5px;height:5px;border-radius:50%;background:#c66f51}
#wish .draw-actions button.has-unclaimed:after{content:'';position:absolute;right:5px;top:5px;width:5px;height:5px;background:#c66f51;border-radius:50%}
#dailyActivityPanel.has-claim>summary:after{display:block;position:absolute;right:6px;top:5px;width:5px;height:5px;background:#c66f51;border-radius:50%;content:''}
body.phone-preview #merge>.wish-card{margin-top:auto!important}
body.phone-preview .life-current-copy{min-width:0;flex:1}.life-current-copy #lifeStatus{white-space:nowrap;line-height:18px;font-size:clamp(9px,2.7vw,12px);margin:0}
.life-current-row{gap:9px}.life-current-row>button{flex:0 0 auto;font-size:11px;min-height:34px;height:34px;padding:0 9px}

#dailyActivityPanel[open].has-claim>summary:after{display:none!important}
#rewardReviewTools{position:fixed;right:max(16px,calc((100vw - 366px)/2));bottom:75px;z-index:9100;font-size:10px;background:#fff8e9;border:1px solid #d5c3a5;border-radius:6px;max-width:170px;padding:4px 8px;box-shadow:0 2px 6px #67472f18}#rewardReviewTools summary{list-style:none;padding:3px;cursor:pointer}#rewardReviewTools>button{display:block;width:100%;margin:4px 0;padding:5px 8px;min-height:27px;font-size:10px}

#drawHero .draw-reveal-badge{position:absolute;right:5px;top:6px;z-index:5;display:inline-flex;align-items:center;gap:2px;max-width:90px;padding:2px 5px;background:#fff2d6e8;color:#8e7654;border-radius:4px;font-size:10px;font-weight:400;line-height:16px;pointer-events:none}
#drawHero .draw-reveal-badge .card-currency-inline{font-size:10px;gap:2px}#drawHero .draw-reveal-badge img{width:13px;height:13px;object-fit:contain}

#drawPurchaseText{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:3px;font-size:13px;font-weight:400;line-height:21px}
#drawPurchaseText>span{display:inline-flex;align-items:center;line-height:21px;white-space:nowrap;vertical-align:middle}
#drawPurchaseText .card-currency-inline{font-size:inherit;font-weight:inherit;line-height:21px;gap:3px;align-items:center;vertical-align:middle}
#drawPurchaseText .card-currency-inline img{display:block;width:17px;height:17px;object-fit:contain;vertical-align:middle}
#drawPurchaseBalance{display:none!important}
#drawPurchaseConfirm{display:flex;align-items:center;justify-content:center;gap:3px;line-height:20px}
#drawPurchaseConfirm .card-currency-inline{font:inherit;line-height:20px;align-items:center;gap:3px}
#drawPurchaseConfirm .card-currency-inline img{display:block;width:17px;height:17px;object-fit:contain}

#drawResultGrid.grouped-results:not(.single-result){display:flex;flex-direction:column;align-items:stretch;gap:15px;margin:6px 0 16px;padding:0;grid-template:none}
.draw-result-group-title{margin:0 0 10px 2px;color:#e5ddbe;font-size:10px;font-weight:500;line-height:14px}
.draw-result-group-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px 5px}
#drawResultGrid .draw-result-group .draw-result-card{aspect-ratio:auto;display:flex;flex-direction:column;gap:5px;width:100%;height:auto;max-width:none;min-width:0;margin:0;overflow:visible}
#drawResultGrid .draw-result-group .draw-result-art{overflow:visible}
#drawResultGrid:not(.single-result) .draw-result-group .draw-new,#drawResultGrid:not(.single-result) .draw-result-group .draw-repeat{position:absolute;right:-2px;top:-5px;padding:2px 4px;min-height:17px;border-radius:4px;font-size:9px;font-weight:600;line-height:13px;z-index:4;box-shadow:0 1px 3px #201d1833}
#drawResultGrid .draw-result-group .draw-new{background:#f2d394;color:#62441e;border:1px solid #fff0c4}
#drawResultGrid .draw-result-group .draw-repeat{background:#e8d9f0;color:#614374;border:1px solid #f6eafa}
#drawResultGrid .draw-result-group .draw-repeat .card-currency-inline{display:inline-flex;align-items:center;font-size:9px;line-height:13px;gap:2px}
#drawResultGrid .draw-result-group .draw-repeat img{width:13px;height:13px;flex-basis:13px;object-fit:contain}
@media(max-height:650px){#drawResultGrid.grouped-results:not(.single-result){gap:10px;margin-bottom:12px}.draw-result-group-grid{gap:9px 5px}.draw-result-group-title{margin-bottom:7px}}

#drawResultGrid:not(.single-result) .draw-result-group .draw-new,#drawResultGrid:not(.single-result) .draw-result-group .draw-repeat{position:static;align-self:center;right:auto;top:auto;margin:0;min-height:17px;padding:1px 5px;line-height:14px;font-size:9px;box-shadow:none}
#drawResultGrid .draw-result-group .draw-result-card{gap:4px}
#drawResultGrid .draw-result-group .draw-result-card:is(.rarity-SSR,.rarity-UR) .draw-result-art{border-radius:6px;box-shadow:0 0 0 1px #e9c777,0 0 9px #f4cb70a6,0 0 20px #f3c45d47;animation:drawGoldGlow 2.4s ease-in-out infinite}
@keyframes drawGoldGlow{0%,100%{box-shadow:0 0 0 1px #e9c777,0 0 8px #f4cb7080,0 0 17px #f3c45d33}50%{box-shadow:0 0 0 1px #ffe4a0,0 0 12px #f4cb70b3,0 0 23px #f3c45d59}}
@media(prefers-reduced-motion:reduce){#drawResultGrid .draw-result-group .draw-result-card:is(.rarity-SSR,.rarity-UR) .draw-result-art{animation:none}}

#drawResultGrid .draw-result-group .draw-result-card.is-duplicate .draw-result-art:after{content:'';position:absolute;inset:0;border-radius:6px;background:rgba(22,27,24,.58);z-index:2;pointer-events:none}
#drawResultGrid:not(.single-result) .draw-result-group .is-duplicate .draw-repeat{position:absolute;left:50%;top:50%;right:auto;transform:translate(-50%,-50%);z-index:3;display:flex;align-items:center;justify-content:center;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;color:#fff4e5;box-shadow:none;font-size:13px;font-weight:600;line-height:20px;white-space:nowrap}
#drawResultGrid .draw-result-group .is-duplicate .draw-repeat .card-currency-inline{font-size:13px;font-weight:600;line-height:20px;gap:3px;color:#fff4e5;text-shadow:0 1px 3px #15191480}
#drawResultGrid .draw-result-group .is-duplicate .draw-repeat img{width:20px;height:20px;flex-basis:20px;object-fit:contain;filter:drop-shadow(0 1px 2px #15191466)}
#drawResultGrid .draw-result-group .is-duplicate .draw-result-caption{opacity:.7}

/* Large centered card inspection, with compact captions. */
body.phone-preview dialog#cardDetailDialog,body.phone-preview dialog#drawInspect{position:fixed;inset:0;margin:auto!important;transform:none;width:min(350px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:24px 12px 12px;overflow:auto;box-sizing:border-box}
#cardDetailDialog .sectionhead,#drawInspect .inspect-header{position:absolute;top:3px;right:4px;margin:0;min-height:20px;z-index:2}
#cardDetailDialog .dialog-close,#drawInspect .inspect-header button{width:24px;height:24px;min-height:24px;font-size:16px;padding:0;background:transparent}
#cardDetailArt.illustrated,#drawInspect .inspect-art{width:min(100%,calc((100dvh - 138px)*.75));height:auto;max-height:none;aspect-ratio:3/4;margin:0 auto}
#cardDetailArt.illustrated img{width:100%;height:100%;max-height:none;object-fit:contain}
#cardDetailNote,#drawInspect .inspect-caption{display:flex;flex-direction:column;align-items:center;gap:3px;margin:9px 0 2px;text-align:center;line-height:1.4;color:#70583b}
#cardDetailNote strong,#drawInspect .inspect-caption strong{font-size:13px;font-weight:600}
#cardDetailNote small,#drawInspect .inspect-caption small{font-size:10px;color:#99846b}
#cardDetailDialog:has(#cardExchange:not([hidden])) #cardDetailArt.illustrated{width:min(100%,calc((100dvh - 190px)*.75))}
#cardDetailDialog .actions:has(>button:not([hidden])){margin-top:12px}
#cardDetailDialog .actions:not(:has(>button:not([hidden]))){display:none}

/* Edge-to-edge card viewer with captions over the artwork. */
body.phone-preview dialog#cardDetailDialog,body.phone-preview dialog#drawInspect{width:min(360px,calc(100vw - 28px),calc((100dvh - 40px)*.75));padding:0;border:0;border-radius:8px!important;overflow:hidden;background:#272c26;box-shadow:0 12px 45px #0005}
#cardDetailArt.illustrated,#drawInspect .inspect-art,#cardDetailDialog:has(#cardExchange:not([hidden])) #cardDetailArt.illustrated{width:100%;margin:0;max-height:none;aspect-ratio:3/4;border-radius:8px;overflow:hidden}
#cardDetailArt.illustrated img,#drawInspect .draw-card-face.illustrated>img{display:block;width:100%;height:100%;object-fit:contain}
#cardDetailDialog .sectionhead,#drawInspect .inspect-header{top:8px;right:8px;z-index:5}
#cardDetailDialog .dialog-close,#drawInspect .inspect-header button{display:grid;place-items:center;width:26px;height:26px;min-height:26px;font-size:19px;line-height:1;color:#fff;background:#151b224d!important;text-shadow:0 1px 3px #0008;border-radius:5px!important}
#cardDetailNote,#drawInspect .inspect-caption{position:absolute;inset:auto 0 0;z-index:3;box-sizing:border-box;margin:0;padding:40px 12px 16px;gap:3px;color:#fff;background:linear-gradient(transparent,rgba(17,22,20,.62));pointer-events:none}
#cardDetailNote strong,#drawInspect .inspect-caption strong{font-size:14px;color:#fff;text-shadow:0 1px 3px #0008}
#cardDetailNote small,#drawInspect .inspect-caption small{font-size:11px;color:#ffffffe0;text-shadow:0 1px 3px #0008}
#cardDetailDialog:has(#cardExchange:not([hidden])) #cardDetailNote{padding-bottom:65px}
#cardDetailDialog .actions:has(>button:not([hidden])){position:absolute;left:12px;right:12px;bottom:12px;z-index:4;margin:0;gap:8px}
#cardDetailDialog .actions button{min-height:32px;padding:7px 8px;font-size:11px}

.journal-entry>p{margin:8px 0;line-height:1.6;overflow-wrap:anywhere}

#saveStatusNotice{display:flex;align-items:center;justify-content:space-between;gap:12px}#saveStatusNotice button{flex-shrink:0;font-size:11px;min-height:30px;padding:6px 10px}

.care-preview-switch{flex-wrap:wrap}.care-preview-switch button{flex:1 0 20%}

/* Care urgency is visible before a player opens an action. */
.pet-care-action.is-low .care-ring{--care-color:#c09355}
.pet-care-action.is-critical .care-ring{--care-color:#b86f4a}
.pet-care-action.is-critical .care-action-copy small{color:#a95939;font-weight:600}
.pet-situation.is-critical-event{background:#fff1dc!important;border:1px solid #c68e5e}
.pet-situation.is-critical-event #petNeed{color:#9e5939;font-weight:600}
.pet-situation.is-critical-event button{background:#a86946}
.care-choice-blocked{font-size:9px;line-height:1.45;color:#9e694c;white-space:normal;max-width:100%;text-align:center}
.care-choice:disabled{opacity:.65}.care-choice:disabled .care-choice-blocked{opacity:1}
.care-preview-switch{grid-template-columns:repeat(4,minmax(0,1fr));bottom:91px}
.journal-entry>p{font-size:12px;line-height:1.6}

.newcomer-entry{position:absolute;right:12px;top:194px;z-index:5;width:80px;padding:7px 5px;background:#fff8e9;border:1px solid #dbc9aa;color:#805e3b;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:3px;box-shadow:0 2px 6px #79552c0c}
.newcomer-entry img{width:34px;height:34px;object-fit:contain}.newcomer-entry[hidden]{display:none}
.newcomer-entry.has-unclaimed:after{content:'';position:absolute;right:5px;top:5px;width:6px;height:6px;border-radius:50%;background:#c57553}
body.phone-preview #newcomerDialog{width:min(340px,calc(100vw - 28px));padding:18px;max-height:85dvh;overflow:auto}#newcomerDialog h2{font-size:16px}#newcomerDialog .dialog-close{width:24px;min-height:24px;padding:0;background:transparent;font-size:18px}
.newcomer-progress{font-size:11px;color:#a18b6e;margin:7px 0 12px}.newcomer-reward{display:grid;grid-template-columns:37px minmax(0,1fr) 57px;align-items:center;gap:9px;padding:12px 0;border-top:1px solid #e8dcc8}.newcomer-reward>strong{font-size:11px}.newcomer-reward-copy{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:11px}.newcomer-reward-copy>img{width:53px;height:53px;object-fit:contain}.newcomer-reward-copy>span:not(.card-currency-inline){flex:1;min-width:60px}.newcomer-reward-copy>small{font-size:9px;color:#9d896b;width:100%}.newcomer-reward-copy .card-currency-inline{font-size:14px}.newcomer-reward-copy .card-currency-inline img{width:23px;height:23px}.newcomer-reward>button{padding:7px 4px;min-height:31px;font-size:11px}.newcomer-note{font-size:10px;color:#a18b6e;margin:12px 0 0;text-align:center}

.guiyuan-stage.is-low-lying .pet-speech{bottom:calc(var(--pet-floor-y,11%) + 22%)}
.care-preview-switch{position:absolute;left:10px;right:auto;top:104px;bottom:auto;z-index:10;width:76px;display:block;padding:5px;background:#fff9ed;border:1px dashed #b9aa8a}
.care-preview-switch>summary{list-style:none;font-size:10px;text-align:center;padding:4px;cursor:pointer}.care-preview-switch>summary::-webkit-details-marker{display:none}
.care-preview-switch:not([open])>button{display:none}.care-preview-switch[open]{width:min(310px,calc(100% - 20px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.care-preview-switch[open]>summary{grid-column:1/-1}

.newcomer-reward{height:58px;min-height:58px;box-sizing:border-box;padding:8px 0;grid-template-columns:37px minmax(0,1fr) 57px}
.newcomer-reward-copy{min-height:40px;flex-wrap:nowrap;gap:8px}.newcomer-reward-copy>img{width:38px;height:38px;flex:0 0 38px}.newcomer-reward-copy>span:not(.card-currency-inline){min-width:0;font-size:10px;line-height:1.4}.newcomer-reward-copy .card-currency-inline{font-size:13px;gap:6px}.newcomer-reward-copy .card-currency-inline img{width:20px;height:20px;flex-basis:20px}

/* Floating wall entries keep the room visible underneath. */
#dailyActivityPanel:not([open])>summary{min-height:65px;padding:3px 5px;background:transparent;border:0;box-shadow:none}
.newcomer-entry{top:171px;min-height:62px;padding:3px 5px;background:transparent!important;border:0;box-shadow:none;gap:3px}
.newcomer-entry img{width:34px;height:34px}
.newcomer-entry.has-unclaimed:after{top:2px;right:9px}

.newcomer-reward-copy:has(>img){flex-direction:column;justify-content:center;align-items:flex-start;gap:2px}
.newcomer-reward-copy:has(>img)>img{width:30px;height:30px;flex:0 0 30px;align-self:center}
.newcomer-reward-copy:has(>img)>span{flex:0 0 auto;width:100%;text-align:center;font-size:10px;line-height:13px;white-space:nowrap}

.newcomer-reward-copy:has(>img)>img{align-self:flex-start}
.newcomer-reward-copy:has(>img)>span{text-align:left}

#dailyActivityPanel:not([open]){top:92px;right:4px;width:72px}
#dailyActivityPanel:not([open])>summary,.newcomer-entry{box-sizing:border-box;width:72px;height:60px;min-height:60px;padding:4px;gap:2px;justify-content:center;align-items:center;color:#805e3b}
#dailyActivityPanel:not([open]) .daily-task-entry-icon,.newcomer-entry img{width:34px;height:34px;flex:0 0 34px}
#dailyActivityPanel:not([open]) .daily-task-entry-label,.newcomer-entry .wall-entry-label{font-size:11px;font-weight:400;line-height:16px;text-align:center;white-space:nowrap;letter-spacing:0}
.newcomer-entry{right:4px;top:154px;font-size:11px;line-height:16px}

#dailyActivityPanel:not([open]){top:88px}
#dailyActivityPanel:not([open])>summary,.newcomer-entry{height:50px;min-height:50px;padding:0;gap:2px}
#dailyActivityPanel:not([open]) .daily-task-entry-icon,.newcomer-entry img{width:30px;height:30px;flex-basis:30px}
.newcomer-entry{top:140px}



.pet-situation[hidden]{display:none!important}

#dailyActivityPanel:not([open]){top:103px}
.newcomer-entry{top:155px}

#dailyActivityPanel:not([open]) .daily-task-entry-label,.newcomer-entry .wall-entry-label{font-size:10px;font-weight:400;line-height:16px}

#dailyActivityPanel:not([open])>summary,.newcomer-entry{gap:1px}

.journal-card .journal-entry,.journal-card .journal-postcard{padding:12px 0;margin:0;border:0;border-bottom:1px solid #e1d3bb;border-radius:0;background:transparent}
.journal-card .journal-entry:last-child{border-bottom:0}


.newcomer-entry img{transform:translateX(1px)}

/* One structure for every daily story; read and reward states are independent. */
.journal-card .journal-entry,.journal-card .journal-postcard{display:grid;grid-template-rows:16px 40px 28px;row-gap:6px;min-height:122px;box-sizing:border-box;padding:12px 0;margin:0;border:0;border-bottom:1px solid #e1d3bb;background:transparent;border-radius:0}
.journal-card .journal-entry-head{height:16px;min-width:0}.journal-card .journal-entry>p{margin:0;font-size:12px;line-height:20px;min-height:40px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#735035}
.journal-card .journal-entry.is-read>p{color:#9b8872}.journal-entry-head .journal-read-state{font-size:9px;color:#b1a28e;display:flex;align-items:center;gap:4px}
.journal-entry.is-unread .journal-read-state{color:#9d754a}.journal-entry.is-unread .journal-read-state:before{content:'';width:4px;height:4px;border-radius:50%;background:#c57753}
.journal-entry .postcard-reward-row{margin:0;min-height:28px;height:28px;align-items:center}.journal-entry .postcard-reward-row>button{height:26px;min-height:26px;padding:4px 12px}.journal-entry .postcard-reward-row>small{font-size:9px}
.journal-entry .postcard-rewards img.postcard-furniture{width:26px;height:26px}
#life .journal-card{position:relative}.journal-reward-guide{flex:0 0 auto;align-self:stretch;margin-top:8px;min-height:30px;padding:6px 10px;background:#eee6d4;color:#7a8058;font-size:11px;line-height:18px;border:1px solid #e0d5bf;box-shadow:none}.journal-reward-guide[hidden]{display:none!important}
.journal-card .journal-entry.reward-target{background:#e8eddc;transition:background .25s}

/* Consistent spacing without forcing empty reward rows. */
.journal-card .journal-entry,.journal-card .journal-postcard{display:block;min-height:0;padding:12px 0}
.journal-card .journal-entry-head{height:14px;margin:0 0 6px}
.journal-card .journal-entry>p{min-height:0;margin:0;font-size:12px;line-height:20px}
.journal-card .journal-entry.is-read>p{color:#8b735e}
.journal-entry .postcard-reward-row{margin-top:7px;min-height:25px;height:25px}
.journal-reward-guide{margin-top:6px;min-height:28px;padding:5px 8px;font-size:10px;line-height:17px;background:#f0eadc;border:0;color:#7a8058}

/* Gold accent grows above the card, without moving its contents. */
body.phone-preview #merge #orders{padding-top:3px;box-sizing:border-box}
body.phone-preview #merge .order-card.timed-double{box-shadow:0 -3px 0 #c39a4e}
body.phone-preview #merge .order-heading{height:22px;min-height:22px;flex:0 0 22px;align-items:center}
#merge .order-heading>b{display:flex;align-items:center;gap:4px;min-width:0;height:22px}
#merge .order-title,#merge .timed-double .order-title{display:inline-flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;line-height:18px}
#merge .reward-chat-open{height:18px;min-height:18px;line-height:18px;padding:0;flex:0 0 auto}
#merge .double-order-clock{box-sizing:border-box;height:16px;line-height:14px;padding:0 3px}

body.phone-preview #merge .order-card.special-order:not(.timed-double){border-color:#c49c83;box-shadow:0 -3px 0 #c9977f}

body.phone-preview #energyDialog{width:min(340px,calc(100vw - 28px));padding:18px;box-sizing:border-box}
#energyDialog h2{font-size:15px;line-height:21px;margin:0}#energyDialog .dialog-close{width:24px;height:24px;min-height:24px;padding:0;background:transparent;font-size:18px}
#energyDetail{font-size:12px;line-height:20px;margin:12px 0 16px}
#energyRefill{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;width:100%;padding:8px 12px;font-size:12px;line-height:18px}
#energyRefill>span,#energyRefill .card-currency-inline{display:inline-flex;align-items:center;justify-content:center;gap:3px;font:inherit;line-height:18px}
#energyRefill .card-currency-inline img{display:block;width:16px;height:16px;flex:0 0 16px;object-fit:contain;vertical-align:middle}

/* Shared reward receipt, dismissed by tapping surrounding blank space. */
body.phone-preview #rewardReceiptDialog,#rewardReceiptDialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(344px,calc(100vw - 32px));max-height:80dvh;overflow:auto;box-sizing:border-box;padding:25px 20px 16px;border:1px solid #dfcfad;border-radius:18px;background:#fff9ed;color:#6b482d;box-shadow:0 12px 50px #34291d26;text-align:center}
#rewardReceiptDialog::backdrop{background:rgba(35,31,25,.42);backdrop-filter:blur(2px)}
#rewardReceiptDialog h2{margin:0 0 23px;font-size:20px;line-height:1.4;font-weight:650;letter-spacing:2px;color:#8a6135}
.reward-receipt-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px 12px}.reward-receipt-item{flex:0 0 calc((100% - 24px)/3);min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px}.reward-receipt-art{width:72px;height:72px;display:grid;place-items:center;border-radius:14px;background:#f1e7d2;border:1px solid #e8d8ba}.reward-receipt-art img{width:54px;height:54px;object-fit:contain}.reward-receipt-item strong{font-size:12px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.reward-receipt-item>span{font-size:16px;font-weight:650;line-height:1.3;color:#8a6135}.reward-receipt-grid.is-single .reward-receipt-art{width:94px;height:94px}.reward-receipt-grid.is-single img{width:74px;height:74px}.reward-receipt-grid.is-single .reward-receipt-item{flex-basis:120px}.reward-receipt-hint{margin:23px 0 0;font-size:11px;line-height:1.5;color:#aa9679}
@media(prefers-reduced-motion:no-preference){#rewardReceiptDialog[open] .reward-receipt-art{animation:receipt-appear .2s ease-out both}@keyframes receipt-appear{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}}

.reward-receipt-grid{display:flex;flex-wrap:nowrap;gap:8px;align-items:flex-start}.reward-receipt-item{flex:1 1 0;min-width:0}.reward-receipt-art{width:min(72px,100%);height:auto;aspect-ratio:1}.reward-receipt-art img{width:76%;height:76%;object-fit:contain}.reward-receipt-item strong{font-size:11px;white-space:nowrap;overflow-wrap:normal}.reward-receipt-grid.is-single .reward-receipt-item{flex:0 0 120px}.reward-receipt-grid.is-single .reward-receipt-art{width:94px}
