/* A compact property desk: category, business, earnings and five upgrade stages. */
.owned-hand{padding:10px 12px 4px;bottom:25px;border:1px solid #b9b58c;border-radius:15px;background:linear-gradient(150deg,#fff8e8f5,#f0e9cef5);box-shadow:0 4px 0 #a5ab7a22,0 8px 24px #44563416,inset 0 1px #fffff0;isolation:isolate}
.owned-hand .hand-toolbar{display:flex;align-items:center;gap:10px;min-width:0;height:27px;margin-bottom:7px}
.hand-toolbar h2{display:flex;align-items:center;gap:7px;white-space:nowrap;margin:0;color:#566044;font:600 13px 'Segoe UI',Arial,sans-serif;letter-spacing:0}
.hand-toolbar h2>span{min-width:22px;height:21px;border:1px solid #c9cba9;border-radius:6px;background:#e4e8cd;display:grid;place-items:center;color:#697852;font-size:11px;font-variant-numeric:tabular-nums}
.hand-income{margin-left:auto;color:#64824e;font-size:11px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.hand-navigation{display:flex;align-items:center;gap:4px;flex:none}
#hand-position{margin:0 4px 0 0;color:#8b896b;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.hand-navigation button{width:28px;height:27px;padding:4px;display:grid;place-items:center;border:1px solid #c9bd98;border-radius:7px;background:#fbf5e2;color:#6b7053;box-shadow:0 1px 1px #7b775515}
.hand-navigation button svg{width:18px;height:18px}
.hand-navigation button:hover:not(:disabled){background:#e8e8cd;border-color:#9ca97b}
.hand-navigation button:disabled{opacity:.28}
.hand-filters{display:flex;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:1px 2px 5px;max-width:100%}
.hand-filters::-webkit-scrollbar{display:none}
.hand-filter{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:25px;padding:4px 8px;border:1px solid transparent;border-radius:6px;color:#7a7c62;background:#e5e6d35c;font-size:10px;white-space:nowrap}
.hand-filter>svg{width:12px;height:12px;color:var(--group-color,#71865b)}
.hand-filter>span{font-size:9px;color:#96997c;margin-left:1px;font-variant-numeric:tabular-nums}
.hand-filter:hover{background:#e0e5cb;color:#5a6b47}
.hand-filter[aria-pressed="true"]{background:#e3e9d2;border-color:#a5b48c;color:#4f6742;box-shadow:inset 0 1px #f9ffea;font-weight:650}
.hand-filter[aria-pressed="true"]>span{color:#738759}
.hand-filter.is-syndicate>span{color:#9a7937}
.owned-hand .owned-cards{position:relative;display:flex;align-items:stretch;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:4px;padding:5px 4px 9px;scrollbar-width:thin;scrollbar-color:#bdc3a1 transparent;min-width:0}
.owned-hand .owned-card{position:relative;flex:0 0 228px;min-height:0;height:146px;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:8px 11px 7px;border:1px solid #d0c5a7;border-top:3px solid var(--group-color,#a4b189)!important;border-radius:11px;background:linear-gradient(125deg,#fffbef,#f6efd9);box-shadow:0 2px 4px #68674513;scroll-snap-align:start;color:#4e5944;text-align:left;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}
.owned-hand .owned-card:hover{transform:translateY(-2px);border-color:#aab58d;background:linear-gradient(125deg,#fffff4,#f7f2de);box-shadow:0 5px 11px #66754e24}
.owned-hand .owned-card.active{border:1px solid #9e7d35;background:linear-gradient(125deg,#fff7db,#f8edc8);box-shadow:inset 0 0 0 1px #c7a256,0 3px 8px #8e784327}
.owned-hand .owned-card.syndicate{box-shadow:inset 0 0 0 1px #bca15d55,0 2px 5px #68674516}
.owned-hand .owned-card.syndicate.active{box-shadow:inset 0 0 0 1px #b89444,0 3px 8px #8e784327}
.owned-hand .owned-card.syndicate:after{content:none}
.owned-hand .enterprise-top{display:flex;align-items:center;justify-content:space-between;gap:6px;height:17px;flex:none}
.enterprise-category{display:flex;align-items:center;gap:5px;color:var(--group-color);font-size:9px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.enterprise-category svg{width:12px;height:12px;flex:none}
.enterprise-group{display:flex;align-items:center;gap:2px;flex:none;padding:2px 5px;border:1px solid #c5c8a977;border-radius:5px;background:#eaeed766;color:#7b8762;font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}
.enterprise-group>span{color:#a5ab8b;font-size:8px;font-weight:400}
.enterprise-group.is-complete{border-color:#c5b36d;background:#f6edca;color:#8e7131}
.enterprise-group.is-complete>span{color:#a08a4b}
.enterprise-group svg{width:11px;height:11px}
.owned-hand .enterprise-name{display:block;flex:none;color:#4d5944;font-size:14px;font-weight:700;line-height:20px;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px;letter-spacing:-.1px}
.enterprise-main{display:flex;align-items:center;gap:9px;flex:1;min-height:0}
.enterprise-art{display:flex;align-items:center;justify-content:center;position:relative;width:96px;height:65px;flex:none;border-radius:12px;background:radial-gradient(ellipse at 50% 66%,#d6dfb39c,transparent 70%)}
.owned-hand .owned-card .enterprise-art img{width:100%;height:100%;max-width:none;object-fit:contain;filter:drop-shadow(0 3px 2px #64734b24);pointer-events:none;user-select:none;flex:none}
.enterprise-finances{display:flex;flex-direction:column;justify-content:center;min-width:0;gap:1px}
.enterprise-yield{font-size:18px;line-height:1.2;font-weight:700;letter-spacing:-.5px;color:#5e7e47;font-variant-numeric:tabular-nums;white-space:nowrap}
.enterprise-period{font-size:9px;color:#929278}
.enterprise-rent{display:flex;gap:4px;margin-top:5px;color:#999075;font-size:9px;white-space:nowrap}
.owned-hand .enterprise-rent b{display:inline;font-size:9px;font-weight:600;color:#7c795e;max-width:none;overflow:visible;white-space:nowrap}
.enterprise-bottom{display:flex;align-items:center;gap:6px;border-top:1px solid #ddd5b8a3;padding-top:5px;height:23px;flex:none}
.enterprise-level{color:#9a8b62;font-size:9px;min-width:35px;white-space:nowrap}
.enterprise-steps{display:flex;align-items:center;gap:3px}
.enterprise-steps>i{width:20px;height:15px;display:grid;place-items:center;border:1px solid #d4ccb1;border-radius:3px;background:#efe9d4;color:#b0a686;font:9px Georgia,serif;font-style:normal}
.enterprise-steps>i.is-done{border-color:#9da975;background:#a6b77d;color:#fffdf0;box-shadow:inset 0 1px #cbd4a4}
.enterprise-steps>i:nth-child(4){margin-left:3px;border-color:#c3b780}
.enterprise-steps>i:nth-child(n+4).is-done{border-color:#b19349;background:#c5a14e;box-shadow:inset 0 1px #e3c777}
.enterprise-steps>i.is-locked{color:#b2aa8c;background:#e7e3d2;border-style:dashed}
.enterprise-steps svg{width:7px;height:10px}
.enterprise-open{margin-left:auto;font-size:14px;line-height:1;color:#a7a385;transition:color .18s,transform .18s}
.owned-card:hover .enterprise-open,.owned-card.active .enterprise-open{color:#8b742f;transform:translate(1px,-1px)}
.owned-hand .owned-card:focus-visible,.hand-filter:focus-visible,.hand-navigation button:focus-visible{outline:2px solid #8a763d;outline-offset:2px}
.owned-hand .owned-card.is-new{animation:enterprise-purchase .55s cubic-bezier(.18,.8,.25,1)}
@keyframes enterprise-purchase{from{opacity:0;transform:translateY(22px) scale(.95)}to{opacity:1;transform:none}}
@media(min-width:761px){.has-property-hand .turn-bar{bottom:278px}.has-property-hand #city-stage{bottom:374px}.has-property-hand .camera-controls{bottom:387px}.has-property-hand .camera-hint{bottom:427px}.has-property-hand .notice{bottom:378px}}
@media(min-width:761px) and (max-width:1000px){.hand-income{display:none}.hand-navigation{margin-left:auto}}
@media(max-width:760px){.owned-hand{position:relative;left:auto;right:auto;bottom:auto;margin:16px 15px 0;padding:10px 10px 3px;border-radius:13px}.owned-hand .hand-toolbar{height:28px;gap:6px}.hand-toolbar h2{font-size:12px;gap:5px}.hand-income{font-size:10px}.hand-navigation{gap:3px}#hand-position{font-size:9px}.owned-hand .owned-card{flex-basis:222px}.hand-filters{padding-bottom:5px}.hand-filter{min-height:28px}.hand-navigation button{width:28px;height:28px}}
@media(max-width:440px){.hand-income{display:none}.hand-navigation{margin-left:auto}.owned-hand{margin-left:10px;margin-right:10px}.owned-hand .owned-card{flex-basis:216px}.enterprise-art{width:90px}.enterprise-yield{font-size:17px}}
@media(prefers-reduced-motion:reduce){.owned-hand .owned-card,.enterprise-open{animation:none!important;transition:none!important}.owned-hand .owned-cards{scroll-behavior:auto}}
/* Five properties per row, with the remaining rows scrolling vertically. */
.owned-hand{container-type:inline-size}
.owned-hand .owned-cards{--grid-card-height:146px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:var(--grid-card-height);align-items:start;overflow-x:hidden;overflow-y:auto;max-height:clamp(calc(var(--grid-card-height) + 24px),calc(100dvh - 720px),calc(var(--grid-card-height)*2 + 24px));overscroll-behavior-x:auto;overscroll-behavior-y:contain;scroll-snap-type:y proximity;scroll-padding-block:4px;scroll-padding-inline:0;scrollbar-gutter:stable;padding:5px 4px 9px}
.owned-hand .owned-card{width:100%;min-width:0;flex:none;height:var(--grid-card-height)}
@media(min-width:761px){.has-property-hand .turn-bar{bottom:calc(var(--owned-hand-height,241px) + 37px)}.has-property-hand #city-stage{bottom:calc(var(--owned-hand-height,241px) + 133px)}.has-property-hand .camera-controls{bottom:calc(var(--owned-hand-height,241px) + 146px)}.has-property-hand .camera-hint{bottom:calc(var(--owned-hand-height,241px) + 186px)}.has-property-hand .notice{bottom:calc(var(--owned-hand-height,241px) + 137px)}}
@container(max-width:1100px){.owned-hand .owned-card{padding:8px 8px 7px}.enterprise-art{width:72px;height:62px}.enterprise-main{gap:6px}.enterprise-yield{font-size:16px}.owned-hand .enterprise-name{font-size:13px}.enterprise-steps>i{width:17px}.enterprise-bottom{gap:4px}}
@container(max-width:900px){.enterprise-art{width:59px;height:58px}.enterprise-yield{font-size:15px}.enterprise-period,.enterprise-rent,.owned-hand .enterprise-rent b{font-size:8px}.enterprise-category{font-size:8px;gap:3px}.enterprise-group{font-size:9px;padding:2px 3px}.enterprise-group>span{font-size:7px}.enterprise-steps{gap:2px}.enterprise-steps>i{width:14px;font-size:8px}.enterprise-level{font-size:8px;min-width:28px}.enterprise-open{font-size:12px}.owned-hand .enterprise-name{font-size:12px}}
@container(max-width:760px){.owned-hand .owned-cards{--grid-card-height:184px}.enterprise-main{flex-direction:column;justify-content:center;gap:2px}.enterprise-art{width:74px;height:53px}.enterprise-finances{align-items:center;gap:0}.enterprise-yield{font-size:16px}.enterprise-rent{margin-top:3px}.enterprise-level{display:none}.enterprise-steps{flex:1;justify-content:space-between;gap:2px}.enterprise-steps>i{width:15px}.enterprise-bottom{gap:4px}.enterprise-category svg{width:10px;height:10px}.owned-hand .enterprise-name{font-size:11px;line-height:18px}.enterprise-top{gap:3px}.enterprise-group{font-size:8px}.enterprise-group>span{font-size:7px}}
@container(max-width:600px){.owned-hand .owned-cards{grid-template-columns:repeat(3,minmax(0,1fr));--grid-card-height:172px}.enterprise-art{height:48px}.enterprise-yield{font-size:15px}.owned-hand .enterprise-name{font-size:12px}}
@container(max-width:380px){.owned-hand .owned-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Room for the enlarged income and visit amounts in the five-column grid. */
.owned-hand .enterprise-main{gap:5px}.owned-hand .enterprise-art{flex:0 1 78px;min-width:38px}.owned-hand .enterprise-finances{flex:1}.owned-hand .enterprise-yield{font-size:clamp(11px,1.25cqw,16px)}
@container(max-width:760px){.owned-hand .enterprise-art{flex:none}.owned-hand .enterprise-finances{flex:none}.owned-hand .enterprise-yield{font-size:14px}}
