/* Uses the same 1440 × 810 canvas as the table, including rotated touch screens. */
#runScreen{height:756px;max-width:1280px;margin:0 auto;padding:12px 10px;color:#efdfb2;box-sizing:border-box;display:flex;flex-direction:column;gap:16px}
#runHud{font-size:14px;line-height:1.5;color:#f0d085;margin-left:12px;max-width:235px}

.shop-header{display:flex;align-items:center;gap:30px;min-height:78px}
.shop-header>div:first-child{flex:1}.shop-header small{font-size:16px;color:#bfccb0}.shop-header h1{font-size:40px;margin:0;letter-spacing:5px}
.shop-score{font-family:var(--font-numeric);font-size:46px;text-align:center;min-width:110px}.shop-score span{color:#94ad8b}.shop-score small{display:block;font-family:var(--font-ui);font-size:13px}
.shop-wallet{display:flex;align-items:center;gap:10px;padding:4px 20px;background:#263f30;border:2px solid #b4a66d}.shop-wallet strong{font-family:var(--font-numeric);font-size:46px;color:#f4ce6b}.shop-wallet span{font-size:16px}
.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}.shop-market{min-width:0;display:flex;flex-direction:column}
.shop-section-title{display:flex;align-items:center;gap:12px;margin:0 0 12px}.shop-section-title h2{font-size:22px;margin:0}.shop-section-title h3{font-size:18px;margin:0}.shop-section-title>span,.shop-section-title>small{font-size:13px;color:#c8d0b2;margin-left:auto}.shop-section-title button{font-size:15px;padding:8px 14px}
.shop-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;height:260px}.shop-card{background:#efe9cb;color:#263d31;border:3px solid #bfc8a0;box-shadow:5px 6px #0c2a23;padding:12px;display:flex;flex-direction:column;align-items:center;position:relative}
.shop-card-type{align-self:stretch;font-size:13px;border-bottom:2px solid #899d79;padding-bottom:6px}.shop-card-art{font-size:52px;color:#9d4330;line-height:1;height:72px;display:flex;align-items:center}.shop-card-art .hexagram{width:56px;height:70px;fill:#50613b}.shop-card h3{font-size:23px;letter-spacing:1px;margin:2px 0 8px}.shop-card p{font-size:16px;line-height:1.5;margin:0 0 10px;align-self:stretch}.shop-card button{color:#fff1ce;margin-top:auto;width:100%;font-size:16px;padding:9px}.shop-card.sold{opacity:.55}
.shop-vitality{display:flex;align-items:center;gap:18px;padding:12px 18px;margin-top:18px;background:#274a3b;border:2px solid #829368;min-height:90px}.vitality-icon{font-size:46px;color:#dc9674}.shop-vitality h3{font-size:21px;margin:0}.shop-vitality p{font-size:17px;margin:3px 0}.shop-vitality small{font-size:13px;color:#bfcaaa}.shop-vitality button{margin-left:auto;font-size:16px;padding:12px}
#shopMessage{font-size:14px;color:#ecd495;line-height:1.4;margin:12px 0 0;min-height:22px}
.shop-build{padding:16px;background:#173a30;border:2px solid #778d62;min-height:0;display:flex;flex-direction:column}.shop-talents{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;font-size:14px;line-height:1.8}.shop-talents>b,.shop-talents>span{padding:2px 6px;background:#34533e;color:#f5dda1}.shop-talents>small{color:#bbc7a4}
.shop-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start;flex:1;min-height:0;overflow:auto}.shop-fields button{display:flex;align-items:center;gap:8px;text-align:left;min-height:44px;padding:5px 8px;font-size:14px}.shop-fields .hexagram{width:25px;height:30px;fill:currentColor;flex-shrink:0}.shop-fields small{display:block;font-size:11px}.shop-fields [aria-pressed=true]{background:#d9c480;color:#20392c;border-color:#f3dda3}.shop-pool-note{font-size:12px;line-height:1.6;color:#bdc7a9;margin:12px 0 0}
.shop-footer{display:flex;align-items:center;gap:14px;border-top:2px solid #5c7752;padding-top:15px;min-height:60px}.shop-footer>span{margin-right:auto;font-size:17px}.shop-footer button{font-size:18px;padding:12px 18px}.shop-footer .primary{min-width:210px}
.run-ending{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.ending-seal{font-size:90px;line-height:1.2;border:4px double #bd9b55;color:#edd18a;padding:8px 22px;transform:rotate(-4deg)}.run-ending h2{font-size:30px;margin:0}.run-ending p{font-size:18px}.ending-talents{display:flex;gap:20px;font-size:18px}.run-ending button{font-size:21px;padding:14px 35px}
#abandonRunDialog{max-width:540px}#abandonRunDialog p{font-size:20px;line-height:1.7}.abandon-actions{display:flex;gap:16px;justify-content:flex-end}
