/* One rarity palette for campaign and PvP, independent of shop lock state. */
.upgrade-card.rarity-common{border-color:#64b9d5!important;background:linear-gradient(180deg,#205f7d 0 43%,#103e51 43% 100%)}
.upgrade-card.rarity-rare{border-color:#c388ff!important;background:linear-gradient(180deg,#653695 0 43%,#351b55 43% 100%);box-shadow:inset 0 0 28px #d7a1ff21,0 8px 18px #0005}
.upgrade-card.rarity-legendary{border-color:#f2c862!important;background:linear-gradient(180deg,#91641f 0 43%,#50330e 43% 100%);box-shadow:inset 0 0 28px #ffbd431f,0 0 15px #ffbd4314}
.upgrade-card.rarity-common .rarity-badge{color:#b9e9ff}.upgrade-card.rarity-rare .rarity-badge{color:#eccaff}.upgrade-card.rarity-legendary .rarity-badge{color:#ffe8ab}
.hero-card .hero-affinity{display:block;margin:5px 0 8px;font-size:11px;line-height:1.4;color:#a9c2c4}.hero-affinity b{color:#efd394}
.solo-offers .upgrade-card{position:relative;isolation:isolate;display:flex;flex-direction:column;min-width:0;min-height:360px;padding:12px;text-align:center;border-radius:9px}
.solo-offers .shop-card-preview{display:flex;flex-direction:column;align-items:center;flex:1;gap:10px;padding-top:48px;pointer-events:none;min-width:0}
.solo-offers .shop-card-preview *{pointer-events:none}
.solo-offers .rarity-badge{top:9px;right:9px;left:auto;font-size:8px;padding:4px 6px;line-height:1.2;max-width:50%;border-radius:5px}
.solo-offers .card-style-crests{position:absolute;top:8px;left:8px;display:flex;gap:4px;z-index:3;pointer-events:auto}
.solo-offers .card-style.compact{pointer-events:auto;display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:3px;border:1px solid var(--style-color);border-radius:10px;background:#07171be8;cursor:help;box-shadow:0 0 7px color-mix(in srgb,var(--style-color) 30%,transparent)}
.solo-offers .card-style.compact .style-art{width:34px;height:34px}
.solo-offers .card-style.compact:focus-visible{outline:3px solid #ffe4a6;outline-offset:2px}
.solo-offers .card-art-frame{display:grid;place-items:center;width:96px;height:96px;border:1px solid #bea162;border-radius:5px;background:#061b27;flex:none;box-shadow:0 5px 12px #0005}
.solo-offers .card-icon{width:88px;height:88px;max-width:100%}
.solo-offers .card-star-row{display:flex;justify-content:center;gap:3px;font-size:19px;margin:0;background:#061b2744;padding:3px 7px}
.solo-offers .card-name{display:block;font-size:15px;font-weight:800;line-height:1.35;margin:6px 0 0;overflow-wrap:anywhere}
.solo-offers .card-desc{display:block;font-size:13px;line-height:1.45;overflow-wrap:anywhere;margin:0}
.solo-offers .card-style-caption{display:block;color:#c9ece3;font-size:12px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 8px}
.solo-offers .card-current-value{font-size:10px}
.solo-offers .shop-card-buy{position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;transform:none}
.solo-offers .shop-card-buy:disabled{cursor:default;opacity:1}.solo-offers .shop-card-buy:hover:enabled,.solo-offers .shop-card-buy:active:enabled{background:transparent;filter:none;transform:none}
.solo-offers .shop-card-buy:focus-visible{outline:3px solid #ffe4a6;outline-offset:-4px}
.solo-offers .upgrade-card:has(.shop-card-buy:hover:enabled){box-shadow:inset 0 0 0 2px #fff3,0 6px 18px #0006}
.solo-offers .shop-card-actions{display:flex;gap:7px;align-items:stretch;min-height:44px;margin-top:auto;padding-top:8px}
.solo-offers .shop-card-actions .price{pointer-events:none;display:flex;justify-content:center;align-items:center;gap:5px;flex:1;min-width:0;width:auto;height:44px;min-height:44px;margin:0;border:1px solid #ab8c51;border-radius:7px;background:#251f30;color:#ffe39b;font-size:16px;font-weight:800}
.solo-offers .shop-card-info{position:relative;z-index:3;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #ab8c51;border-radius:7px;background:#0d2a34;color:#ffe39b;font-size:22px;font-weight:800;cursor:pointer}
.solo-offers .shop-card-info:focus-visible{outline:3px solid #ffe4a6;outline-offset:-4px}
.solo-screen+.shop-card-modal{z-index:100}.solo-screen+.shop-card-modal .modal-card{max-height:calc(100dvh - 32px);overflow:auto}.solo-screen+.shop-card-modal .atlas-close{width:44px;height:44px;min-height:44px}
@media(max-width:760px){.solo-screen .solo-offers{grid-template-columns:1fr}.solo-offers .upgrade-card{min-height:330px}.solo-offers .card-style-caption{font-size:13px}.solo-offers .card-desc{font-size:14px}.hero-card .hero-affinity{font-size:10px}}
@media(min-width:761px) and (max-width:1100px){.solo-offers .rarity-badge{top:57px;right:8px;max-width:70%;font-size:8px}.solo-offers .shop-card-preview{padding-top:77px}.solo-offers .card-art-frame{width:80px;height:80px}.solo-offers .card-icon{width:72px;height:72px}}
@media(prefers-reduced-motion:reduce){.upgrade-card{transition:none}.upgrade-card::after{animation:none}}

.solo-game .solo-shop{margin-top:12px}
.solo-activity-panel:has(.solo-shop) .solo-activity-goal{display:none}
.shop-card-modal .modal-card{position:relative;padding-top:48px}
.shop-card-modal .atlas-close{position:absolute;top:10px;right:10px;width:44px;height:44px;min-height:44px}
.shop-card-modal .atlas-catalog-art{display:block;width:92px;height:92px;margin:0 auto 12px}
.solo-offers .shop-card-actions .price{position:static}
.solo-offers .shop-card-actions .shop-card-info{order:2}
/* Rarity gets its own row; style crests never compete with a long rarity name. */
.solo-offers .upgrade-card .rarity-badge{top:9px;right:10px;max-width:calc(100% - 20px);font-size:10px;line-height:1.3}
.solo-offers .upgrade-card .card-style-crests{top:34px;left:10px}
.solo-offers .upgrade-card .shop-card-preview{padding-top:76px}
.solo-offers .upgrade-card .card-style-caption{padding:7px 10px;border-radius:6px;background:#061b2755;min-height:32px}
/* Keep rarity and style controls in separate rows above the artwork. */
html .shop-overlay .upgrade-card .shop-card-preview{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:70px;min-height:0}
html .shop-overlay .upgrade-card .rarity-badge{top:2px;right:3px;left:auto;font-size:9px;line-height:1.2;max-width:100%;padding:2px 4px}
html .shop-overlay .upgrade-card .card-style-crests{position:absolute;top:20px;left:3px;display:flex;gap:4px;z-index:3}
html .shop-overlay .upgrade-card .card-style.compact{width:44px;height:44px;min-height:44px}
html .shop-overlay .upgrade-card .card-art-frame{display:grid;place-items:center;flex:none;width:64px;height:64px;min-height:64px;margin:0}
html .shop-overlay .upgrade-card .card-icon{width:60px;height:60px;max-height:60px}
html .shop-overlay .upgrade-card .card-star-row{flex:none;margin:0;line-height:1.1;font-size:14px}
html .shop-overlay .upgrade-card .card-name{flex:none;margin:4px 0 0;line-height:1.2;font-size:13px}
html .shop-overlay .upgrade-card .card-desc{margin:2px 0;line-height:1.25;font-size:12px}
@media(max-width:920px) and (orientation:landscape){html .shop-overlay .upgrade-card .shop-card-preview{padding-top:66px;gap:2px}html .shop-overlay .upgrade-card .card-art-frame{width:42px;height:42px;min-height:42px}html .shop-overlay .upgrade-card .card-icon{width:38px;height:38px;max-height:38px}html .shop-overlay .upgrade-card .card-name{font-size:12px}}

/* Campaign style controls retain a 44px target at laptop zoom. */
.solo-offers .card-style.compact{min-width:44px}

/* Readable choice surfaces: shared materials, complete text, independent scrolling. */
.upgrade-card.rarity-common{background:linear-gradient(145deg,#173d4b,#09232e 75%);box-shadow:inset 0 0 0 1px #64b9d521,0 5px 16px #0004}
.upgrade-card.rarity-rare{background:linear-gradient(145deg,#382b4e,#201c32 75%);box-shadow:inset 0 0 0 1px #c388ff30,0 5px 16px #0004}
.upgrade-card.rarity-legendary{background:linear-gradient(145deg,#4a3920,#28251b 75%);box-shadow:inset 0 0 0 1px #f2c86235,0 5px 16px #0004}
html .shop-overlay .shop-grid{grid-auto-rows:minmax(min-content,1fr);grid-template-rows:none;gap:12px;padding:3px 3px 8px;scrollbar-width:thin;scrollbar-color:#577477 transparent}
html .shop-overlay .shop-card.upgrade-card{display:flex;flex-direction:column;height:auto;min-height:min-content;padding:14px;border-radius:12px}
html .shop-overlay .upgrade-card .shop-card-preview{flex:1;overflow:visible;gap:8px;padding-top:76px}
html .shop-overlay .upgrade-card .card-style-crests{left:0;top:24px}
html .shop-overlay .upgrade-card .card-style.compact{min-width:44px;min-height:44px}
html .shop-overlay .upgrade-card .rarity-badge{font-size:11px;line-height:1.3;top:0;right:0}
html .shop-overlay .upgrade-card .card-art-frame{width:80px;height:80px;min-height:80px;border-color:#b9a37677}
html .shop-overlay .upgrade-card .card-icon{width:74px;height:74px;max-height:74px}
html .shop-overlay .shop-card.upgrade-card .card-name{font-size:16px!important;line-height:1.35!important;margin:4px 0 0}
html .shop-overlay .shop-card.upgrade-card .card-desc{display:block!important;max-height:none!important;height:auto!important;overflow:visible!important;-webkit-line-clamp:unset!important;font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere}
html .shop-overlay .shop-card.upgrade-card .card-style-caption{display:block!important;max-height:none!important;height:auto!important;overflow:visible!important;font-size:13px!important;line-height:1.5!important;margin:0;padding:6px 10px;border-radius:6px;background:#0003;color:#bfe4dc;white-space:normal}
html .shop-overlay .shop-card.upgrade-card .shop-card-actions{margin-top:14px;min-height:46px}
html .shop-overlay .shop-card.upgrade-card .shop-card-info,html .shop-overlay .shop-card.upgrade-card .price{height:46px;min-height:46px}
html .shop-overlay .shop-controls{gap:8px;padding-top:8px;border-top:1px solid #95b9be25}
html .shop-overlay .shop-action{border-radius:8px;background:#12343f;min-height:52px}
html .shop-overlay .shop-action.active{border-color:#e2b45d;background:#244343}
.lobby-screen.is-drafting .hero-pick-heading h2{font-size:clamp(21px,2.4vw,28px);line-height:1.2;margin:8px 0}
.lobby-screen.is-drafting .hero-pick-heading p{color:#aec3c5;font-size:14px;line-height:1.5}
.lobby-screen.is-drafting .hero-offers{gap:12px}
.lobby-screen.is-drafting .hero-card{border-radius:12px;border-color:#9ab6be3d;background:linear-gradient(150deg,color-mix(in srgb,var(--hero-color) 13%,#10272e),#091e24 80%)}
.lobby-screen.is-drafting .hero-card.selected{border-color:#edc76d;box-shadow:inset 3px 0 #edc76d,0 5px 16px #0004}
.lobby-screen.is-drafting .hero-card .hero-name{font-size:19px;line-height:1.3;margin:0}
.lobby-screen.is-drafting .hero-card .hero-title{font-size:13px;line-height:1.4;min-height:0;margin:6px 0 12px}
.lobby-screen.is-drafting .hero-card .hero-affinity{font-size:12px;line-height:1.5}
.lobby-screen.is-drafting .hero-card .trait{font-size:11px;line-height:1.4;padding:4px 7px;border-radius:5px}
.reward-grid .reward-card{border-radius:12px;box-shadow:inset 0 1px #d3bd7c25;background:linear-gradient(145deg,#17343d,#0b2028)}
.reward-grid .reward-card small{font-size:14px;line-height:1.5;overflow:visible;max-height:none}
.reward-grid .reward-card strong{font-size:17px;line-height:1.35}
@media(max-width:920px){
 .lobby-screen.is-drafting .topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .lobby-screen.is-drafting .topbar .eyebrow{font-size:10px;letter-spacing:1px;max-width:240px;line-height:1.5}
 .lobby-screen.is-drafting .topbar-actions{flex:none;margin:0;gap:6px}
 .lobby-screen.is-drafting .topbar-actions .brand-mark{display:none}
 .lobby-screen.is-drafting .hero-pick-timer{min-width:58px;min-height:48px}
 .lobby-screen.is-drafting .hero-pick-timer b{font-size:24px}
 .lobby-screen.is-drafting .hero-pick-timer small{font-size:8px}
 .lobby-screen.is-drafting .lobby-grid{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:14px}
 .lobby-screen.is-drafting .heroes-panel{order:-1;padding:14px;border-radius:14px}
 .lobby-screen.is-drafting .players-panel{padding:14px;border-radius:14px}
 .lobby-screen.is-drafting .draft-actions{gap:8px}
 .lobby-screen.is-drafting .draft-actions .btn{font-size:12px;min-height:46px;padding:9px 7px}
 html .shop-overlay .shop-stage{gap:8px}
 html .shop-overlay .shop-head{gap:8px;padding-bottom:8px}
 html .shop-overlay .shop-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 html .shop-overlay .shop-action{flex-direction:row;gap:7px;min-height:44px}
 html .shop-overlay .shop-card.upgrade-card{min-height:min-content}
 .reward-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .reward-grid .reward-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:6px 12px;text-align:left;padding:14px;min-height:0}
 .reward-grid .reward-kind{grid-column:1/-1}
 .reward-grid .reward-icon{grid-column:1;grid-row:2/4;width:64px;height:64px;margin:0}
 .reward-grid .reward-card strong,.reward-grid .reward-card small{grid-column:2}
}
@media(max-width:600px){
 .lobby-screen.is-drafting .hero-offers{grid-template-columns:minmax(0,1fr);gap:10px;overflow:visible}
 .lobby-screen.is-drafting .hero-offers .hero-card{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:12px;row-gap:3px;align-items:start;min-height:146px;padding:10px}
 .lobby-screen.is-drafting .hero-offers .hero-icon.hero-showcase-frame{grid-column:1;grid-row:1/5;width:104px;height:124px;aspect-ratio:auto;margin:0;border-radius:8px}
 .lobby-screen.is-drafting .hero-showcase-image{object-fit:cover;object-position:50% 30%}
 .lobby-screen.is-drafting .hero-offers .hero-name,.lobby-screen.is-drafting .hero-offers .hero-affinity,.lobby-screen.is-drafting .hero-offers .hero-title,.lobby-screen.is-drafting .hero-offers .traits,.lobby-screen.is-drafting .hero-ban-label{grid-column:2;margin:0}
 .lobby-screen.is-drafting .hero-offers .hero-name{font-size:18px}
 .lobby-screen.is-drafting .hero-offers .hero-title{font-size:12px;margin-bottom:4px}
 .lobby-screen.is-drafting .hero-offers .hero-affinity{font-size:12px}
 .lobby-screen.is-drafting .hero-offers .traits{align-self:end;gap:5px;flex-wrap:wrap}
 .lobby-screen.is-drafting .draft-actions{display:grid;grid-template-columns:1fr 1fr}
 .lobby-screen.is-drafting .draft-actions #open-hero-shop{grid-column:1/-1;background:#17343d;color:#ead49f}
 html .shop-overlay .shop-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:min-content;align-content:start;gap:10px}
 html .shop-overlay .shop-card.upgrade-card{padding:12px}
 html .shop-overlay .upgrade-card .shop-card-preview{display:grid;grid-template-columns:68px minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:8px 12px;padding-top:58px;align-items:center;text-align:left}
 html .shop-overlay .upgrade-card .card-style-crests{top:0;left:0}
 html .shop-overlay .upgrade-card .rarity-badge{top:8px;right:0;font-size:10px;max-width:calc(100% - 100px)}
 html .shop-overlay .upgrade-card .card-art-frame{grid-column:1;grid-row:1/3;width:64px;height:64px;min-height:64px}
 html .shop-overlay .upgrade-card .card-icon{width:60px;height:60px;max-height:60px}
 html .shop-overlay .upgrade-card .card-name{grid-column:2;grid-row:1;margin:0}
 html .shop-overlay .upgrade-card .card-star-row{grid-column:2;grid-row:2;justify-content:start;width:max-content;font-size:17px}
 html .shop-overlay .upgrade-card .card-desc{grid-column:1/-1;grid-row:3}
 html .shop-overlay .upgrade-card .card-style-caption{grid-column:1/-1;grid-row:4}
}
@media(max-width:920px) and (orientation:landscape){
 html .shop-overlay .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:min-content}
 html .shop-overlay .upgrade-card .shop-card-preview{padding-top:72px}
 html .shop-overlay .shop-controls{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:4px}
 html .shop-overlay .shop-card.upgrade-card{min-height:min-content;padding:10px}
 .lobby-screen.is-drafting .hero-offers .hero-card{min-height:0;padding:10px}
}

@media(min-width:921px){
 html .shop-overlay{position:fixed;top:calc(var(--round-header-height,76px) + 16px);bottom:16px;left:16px;right:16px;width:auto;height:auto;max-width:none;max-height:none}
 html .shop-overlay .shop-head{flex-wrap:wrap;align-items:center}
 html .shop-overlay .shop-card.upgrade-card{padding:20px}
 html .shop-overlay .upgrade-card .card-art-frame{width:96px;height:96px;min-height:96px}
 html .shop-overlay .upgrade-card .card-icon{width:88px;height:88px;max-height:88px}
}
html .shop-overlay .shop-controls .shop-action b{position:static;font-variant-numeric:tabular-nums}
@media(max-width:920px){
 html .shop-overlay .shop-controls .shop-action{display:flex;flex-direction:row!important;gap:7px}
 html .shop-overlay .shop-controls .shop-action b{order:2}
 .lobby-screen.is-drafting .draft-actions .btn{min-width:0;white-space:normal}
}
@media(max-width:920px) and (orientation:landscape){
 html .shop-overlay .upgrade-card .shop-card-preview{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:6px 8px;padding-top:52px;text-align:left;align-items:center}
 html .shop-overlay .upgrade-card .card-style-crests{top:0}
 html .shop-overlay .upgrade-card .rarity-badge{top:8px;max-width:calc(100% - 96px);font-size:9px}
 html .shop-overlay .upgrade-card .card-art-frame{grid-column:1;grid-row:1/3;width:48px;height:48px;min-height:48px}
 html .shop-overlay .upgrade-card .card-icon{width:44px;height:44px;max-height:44px}
 html .shop-overlay .upgrade-card .card-name{grid-column:2;grid-row:1}
 html .shop-overlay .upgrade-card .card-star-row{grid-column:2;grid-row:2;justify-content:start;width:max-content}
 html .shop-overlay .upgrade-card .card-desc{grid-column:1/-1;grid-row:3}
 html .shop-overlay .upgrade-card .card-style-caption{grid-column:1/-1;grid-row:4}
}

/* One aligned label/price group, rather than inherited absolute-positioned tiles. */
html .shop-overlay .shop-lock-state:empty{display:none}
html .shop-overlay .shop-controls .shop-action{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center;justify-content:stretch;gap:10px;min-height:52px;height:auto;padding:10px 14px;text-align:left}
html .shop-overlay .shop-controls .shop-action .action-icon{position:static!important;display:block;width:24px;height:24px;margin:0;transform:none;justify-self:center}
html .shop-overlay .shop-controls .shop-action span{grid-column:2;grid-row:1;position:static!important;justify-self:start;width:auto!important;margin:0;font-size:13px!important;line-height:1.3;text-align:left}
html .shop-overlay .shop-controls .shop-action b{grid-column:3;grid-row:1;position:static!important;justify-self:end;width:auto!important;margin:0;font-size:14px!important;line-height:1.3;text-align:right}
@media(max-width:920px){
 .lobby-screen.is-drafting .topbar{flex-direction:row;flex-wrap:nowrap}
 .lobby-screen.is-drafting .topbar>div:first-child{min-width:0;flex:1}
 html .shop-overlay .shop-controls .shop-action{grid-template-columns:minmax(0,1fr) auto!important;gap:5px;padding:8px;min-height:44px}
 html .shop-overlay .shop-controls .shop-action .action-icon{display:none}
 html .shop-overlay .shop-controls .shop-action span{grid-column:1;font-size:11px!important}
 html .shop-overlay .shop-controls .shop-action b{grid-column:2;font-size:12px!important}
}

html .shop-overlay .shop-controls .shop-action .action-icon{position:relative!important}

/* Desktop shop is a bounded tray; touch layouts keep their full-screen surface. */
@media(hover:hover) and (pointer:fine){
 html .game-screen .shop-overlay{position:fixed;top:auto;right:auto;bottom:24px;left:50%;transform:translateX(-50%);box-sizing:border-box;width:min(1120px,calc(100vw - 48px));height:min(620px,calc(100dvh - var(--round-header-height,76px) - 96px));max-width:1120px;max-height:620px;padding:14px;grid-template-rows:auto auto minmax(0,1fr)}
 html .game-screen .shop-overlay .shop-stage{grid-row:3;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 html .game-screen .shop-overlay .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:min-content;align-content:start;align-items:stretch}
 html .game-screen .shop-overlay .shop-card.upgrade-card{min-height:0;height:auto;padding:12px}
 html .game-screen .shop-overlay .upgrade-card .card-art-frame{width:64px;height:64px;min-height:64px}
 html .game-screen .shop-overlay .upgrade-card .card-icon{width:60px;height:60px;max-height:60px}
 html .game-screen .shop-overlay .shop-controls{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
}
@media(max-width:920px) and (hover:hover) and (pointer:fine){
 html .game-screen .shop-overlay{bottom:calc(72px + var(--safe-bottom));width:calc(100vw - 24px);height:min(620px,calc(100dvh - var(--round-header-height,80px) - 144px - var(--safe-bottom)))}
}
/* Event gifts reuse full cards while keeping a deliberate, free claim action. */
.solo-screen .solo-event.solo-gift-event{padding:18px 0;text-align:left}
.solo-gift-heading{max-width:720px;margin:0 auto 18px;text-align:center}
.solo-gift-heading h2{margin:7px 0;font-size:24px}
.solo-gift-heading p{margin:8px 0;color:#b5cbcc;font-size:14px;line-height:1.5}
.solo-screen .solo-event-offers{display:grid;grid-template-columns:repeat(var(--gift-columns,2),minmax(0,1fr));width:100%;max-width:1040px;gap:14px;margin:0 auto;align-items:stretch}
.solo-event-offers .upgrade-card{min-height:350px}
.solo-event-offers .upgrade-card .card-desc{font-size:14px;line-height:1.5;max-height:none;height:auto;overflow:visible;-webkit-line-clamp:unset}
.solo-event-offers .upgrade-card .rarity-badge{font-size:11px}
.solo-event-offers .upgrade-card .card-style-caption{font-size:14px;line-height:1.4}
.solo-event-offers .shop-card-actions .gift-claim{pointer-events:auto;position:relative;z-index:3;cursor:pointer;font-size:14px;height:auto;min-height:46px;padding:10px}
.solo-event-offers .gift-claim:focus-visible{outline:3px solid #ffe4a6;outline-offset:2px}
.solo-event-offers .shop-card-info{inset:auto;margin:0;height:46px;min-height:46px;min-width:44px;align-self:stretch;line-height:1}
.solo-resource-gift{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 18px;border:1px solid #80734d;border-radius:12px;background:linear-gradient(145deg,#19373c,#0c252c);text-align:center;min-width:0}
.solo-resource-gift .solo-gift-resource-art{display:grid;place-items:center;width:88px;height:88px}
.solo-resource-gift .game-icon{width:80px;height:80px}
.solo-resource-gift h3,.solo-resource-gift p{margin:0;overflow-wrap:anywhere}
.solo-resource-gift p{font-size:18px;color:#ffe19a}
.solo-resource-gift small{font-size:14px;color:#abc2c5}
.solo-resource-gift .solo-button{margin-top:auto;width:100%;min-height:46px}
.solo-gift-note{text-align:center;margin:18px 0 0}
.solo-activity-panel:has(.solo-gift-event) .solo-activity-goal{display:none}
@media(max-width:760px){.solo-screen .solo-event-offers{grid-template-columns:minmax(0,1fr)}.solo-event-offers .upgrade-card{min-height:0}.solo-gift-heading{text-align:left}.solo-gift-heading h2{font-size:22px}}

/* Legible, authored symbols replace tiny CSS pseudo-element placeholders. */
html .shop-overlay .shop-controls .shop-action{grid-template-columns:34px minmax(0,1fr) auto!important}
html .shop-overlay .shop-controls .shop-action span,html .shop-overlay .shop-controls .shop-action b{align-self:center}
html .shop-overlay .shop-controls .shop-control-symbol{display:block;width:34px;height:34px;min-width:34px;grid-column:1;grid-row:1;overflow:visible;filter:drop-shadow(0 2px 2px #0009);pointer-events:none}
html .shop-overlay .shop-action:hover .shop-control-symbol,html .shop-overlay .shop-action:focus-visible .shop-control-symbol{filter:drop-shadow(0 0 4px #73d8de70) drop-shadow(0 2px 2px #0009)}
html .shop-overlay #lock-shop.active .shop-control-symbol{filter:drop-shadow(0 0 5px #b4ebd880) drop-shadow(0 2px 2px #0009)}
@media(max-width:920px){html .shop-overlay .shop-controls .shop-action{gap:6px;padding:7px;grid-template-columns:28px minmax(0,1fr) auto!important}html .shop-overlay .shop-controls .shop-control-symbol{width:28px;height:28px;min-width:28px}html .shop-overlay .shop-controls .shop-action span{grid-column:2}html .shop-overlay .shop-controls .shop-action b{grid-column:3}}
@media(max-width:600px){html .shop-overlay .shop-controls .shop-action{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-items:center;gap:2px 7px;min-height:56px;padding:7px;text-align:left}html .shop-overlay .shop-controls .shop-control-symbol{width:28px;height:28px;min-width:28px;grid-column:1;grid-row:1/3}html .shop-overlay .shop-controls .shop-action span{grid-column:2;grid-row:1;align-self:end;text-align:left;font-size:11px!important;line-height:1.2;overflow-wrap:anywhere}html .shop-overlay .shop-controls .shop-action b{grid-column:2;grid-row:2;align-self:start;font-size:12px!important}html .shop-overlay .shop-controls #lock-shop span,html .shop-overlay .shop-controls #prep-ready span{grid-row:1/3;align-self:center}}

/* Browser zoom on a laptop must not turn timed rewards into a phone list. */
@media (min-width:761px) and (hover:hover) and (pointer:fine){
 .reward-modal .reward-panel .reward-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Desktop card actions remain reachable while a long row scrolls. */
@media(hover:hover) and (pointer:fine){
 html .game-screen .shop-overlay{height:min(620px,calc(100dvh - var(--round-header-height,76px) - 48px))}
 html .game-screen .shop-overlay .upgrade-card{--shop-action-surface:#102e39;overflow:visible}
 html .game-screen .shop-overlay .rarity-rare{--shop-action-surface:#292139}
 html .game-screen .shop-overlay .rarity-legendary{--shop-action-surface:#352b1b}
 html .game-screen .shop-overlay .shop-card-actions{position:sticky;bottom:0;z-index:4;pointer-events:none;background:var(--shop-action-surface);margin:14px -12px -12px;padding:8px 12px;box-shadow:0 -6px 8px var(--shop-action-surface)}
 html .game-screen .shop-overlay .shop-card-info{pointer-events:auto}
 html .game-screen .shop-overlay .shop-card-actions::after{content:"";position:absolute;top:100%;left:0;right:0;height:16px;background:inherit;pointer-events:none}
}
@media(max-width:920px) and (hover:hover) and (pointer:fine){
 html .game-screen .shop-overlay{height:min(620px,calc(100dvh - var(--round-header-height,80px) - 96px - var(--safe-bottom)))}
}

/* Desktop offers share a fixed row; only their effect text can scroll. */
@media(hover:hover) and (pointer:fine){
 html .game-screen .shop-overlay .shop-grid{height:100%;min-height:0;grid-template-rows:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);align-content:stretch;overflow:hidden;padding-bottom:3px}
 html .game-screen .shop-overlay .shop-card.upgrade-card{height:100%;min-height:0;overflow:hidden}
 html .game-screen .shop-overlay .upgrade-card .shop-card-preview{display:grid;flex:1;min-height:0;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:6px 10px;align-items:stretch;align-content:stretch;padding-top:54px;overflow:hidden;text-align:left}
 html .game-screen .shop-overlay .upgrade-card .card-style-crests{top:0;left:0}
 html .game-screen .shop-overlay .upgrade-card .rarity-badge{top:4px;right:0;max-width:calc(100% - 100px);font-size:10px}
 html .game-screen .shop-overlay .upgrade-card .card-art-frame{grid-column:1;grid-row:1/3;width:64px;height:64px;min-height:64px}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-name{grid-column:2;grid-row:1;align-self:end;margin:0;font-size:14px!important;line-height:1.3!important}
 html .game-screen .shop-overlay .upgrade-card .card-star-row{grid-column:2;grid-row:2;align-self:start;justify-content:start;margin:0;width:max-content}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-desc{grid-column:1/-1;grid-row:3;display:block!important;min-height:0;height:auto!important;max-height:none!important;margin:0;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#71969f #061b2740;pointer-events:auto;position:relative;z-index:3;cursor:text;line-height:1.4!important;padding-right:3px;align-self:stretch}
 html .game-screen .shop-overlay .upgrade-card .card-desc:focus-visible{outline:2px solid #ffe2a1;outline-offset:-2px;border-radius:3px}
 html .game-screen .shop-overlay .upgrade-card .card-current-value{grid-column:1/-1;grid-row:4;margin:0;line-height:1.2;font-size:11px;overflow-wrap:anywhere}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-style-caption{grid-column:1/-1;grid-row:5;margin:0;padding:4px 6px;line-height:1.35!important;font-size:13px!important;align-self:end}
 html .game-screen .shop-overlay .shop-card-actions{position:relative;bottom:auto;flex:none;min-height:46px;margin:8px 0 0;padding:0;box-shadow:none;background:transparent}
 html .game-screen .shop-overlay .shop-card-actions::after{display:none}
}

/* At laptop zoom, the art, style crests, stars and rarity share one header. */
@media(hover:hover) and (pointer:fine) and (max-height:650px){
 html .game-screen .shop-overlay .upgrade-card .shop-card-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:4px;padding-top:48px}
 html .game-screen .shop-overlay .upgrade-card .card-art-frame{position:absolute;grid-area:auto;top:0;left:auto;right:66px;width:44px;height:44px;min-height:44px}
 html .game-screen .shop-overlay .upgrade-card .card-icon{width:40px;height:40px;max-height:40px}
 html .game-screen .shop-overlay .upgrade-card .rarity-badge{top:1px;right:0;max-width:64px;font-size:9px}
 html .game-screen .shop-overlay .upgrade-card .card-star-row{position:absolute;grid-area:auto;top:23px;right:0;font-size:13px;line-height:1.2}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-name{grid-column:1;grid-row:1;align-self:start;font-size:13px!important;line-height:1.2!important}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-desc{grid-column:1;grid-row:2}
 html .game-screen .shop-overlay .upgrade-card .card-current-value{grid-column:1;grid-row:3}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-style-caption{grid-column:1;grid-row:4;padding:3px 6px}
 html .game-screen .shop-overlay .card-style-caption>b{display:none}
}

/* Vertical desktop offers: complete effects without nested scrolling. */
@media(hover:hover) and (pointer:fine){
 html .game-screen .shop-overlay .upgrade-card .shop-card-preview{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:4px;padding-top:32px;overflow:visible}
 html .game-screen .shop-overlay .upgrade-card .card-style-crests{top:0;left:0}
 html .game-screen .shop-overlay .upgrade-card .card-art-frame{position:static;inset:auto;grid-area:auto;flex:none;width:64px;height:64px;min-height:64px}
 html .game-screen .shop-overlay .upgrade-card .card-icon{width:60px;height:60px;max-height:60px}
 html .game-screen .shop-overlay .upgrade-card .card-star-row{position:static;inset:auto;grid-area:auto;flex:none;align-self:center;justify-content:center;margin:0;width:max-content;height:18px;min-height:18px;font-size:14px;line-height:18px}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-name{grid-area:auto;align-self:stretch;flex:none;margin:2px 0 0;font-size:15px!important;line-height:1.25!important;text-align:center}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-desc{grid-area:auto;align-self:stretch;flex:none;min-height:0;display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important;line-height:1.4!important;font-size:14px!important;padding:0;pointer-events:auto;cursor:text;text-align:center}
 html .game-screen .shop-overlay .upgrade-card .card-current-value{grid-area:auto;flex:none;align-self:stretch;line-height:1.25;font-size:11px;margin:0;text-align:center}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-style-caption{grid-area:auto;flex:none;align-self:center;margin:0;padding:4px 6px;font-size:13px!important;line-height:1.3!important;text-align:center}
 html .game-screen .shop-overlay .card-style-caption>b{display:inline}
 html .game-screen .shop-overlay .shop-card-actions{margin-top:6px}
}
@media(hover:hover) and (pointer:fine) and (max-height:720px){
 html .game-screen .shop-overlay{width:min(1220px,calc(100vw - 24px));max-width:1220px;height:min(620px,calc(100dvh - var(--round-header-height,76px) - 24px));padding:8px;gap:6px;bottom:12px}
 html .game-screen .shop-overlay .shop-head{min-height:36px;gap:6px}
 html .game-screen .shop-overlay .shop-head h3{font-size:12px}
 html .game-screen .shop-overlay .income-breakdown{gap:4px}
 html .game-screen .shop-overlay .income-breakdown>span{padding:2px 3px;min-height:26px;height:26px}
 html .game-screen .shop-overlay .income-breakdown small{font-size:9px;line-height:1.1}
 html .game-screen .shop-overlay .income-breakdown b{font-size:11px;line-height:1.1}
 html .game-screen .shop-overlay .shop-grid{gap:8px;padding:2px}
 html .game-screen .shop-overlay .shop-card.upgrade-card{padding:8px}
 html .game-screen .shop-overlay .upgrade-card .shop-card-preview{padding-top:52px;gap:3px}
 html .game-screen .shop-overlay .upgrade-card .card-art-frame{position:absolute;left:50%;right:auto;top:0;transform:translateX(-50%);width:36px;height:36px;min-height:36px}
 html .game-screen .shop-overlay .upgrade-card .card-icon{width:34px;height:34px;max-height:34px}
 html .game-screen .shop-overlay .upgrade-card .card-star-row{position:absolute;left:50%;right:auto;top:36px;transform:translateX(-50%);height:14px;min-height:14px;font-size:12px;line-height:14px}
 html .game-screen .shop-overlay .upgrade-card .card-style.compact{width:32px;height:32px;min-width:32px;min-height:32px}
 html .game-screen .shop-overlay .upgrade-card .rarity-badge{top:0;right:0;max-width:70px;font-size:8px}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-name{font-size:13px!important;line-height:1.2!important;margin:0}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-desc{font-size:12px!important;line-height:1.3!important}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-style-caption{font-size:11px!important;line-height:1.2!important;padding:3px 4px}
 html .game-screen .shop-overlay .upgrade-card .card-current-value{font-size:10px;line-height:1.2}
 html .game-screen .shop-overlay .shop-controls{padding-top:5px;gap:6px}
 html .game-screen .shop-overlay .shop-action{min-height:44px}
}
@media(hover:hover) and (pointer:fine) and (max-height:720px) and (max-width:920px){
 html .game-screen .shop-overlay{bottom:calc(64px + var(--safe-bottom));height:calc(100dvh - var(--round-header-height,80px) - 74px - var(--safe-bottom))}
}
@media(hover:hover) and (pointer:fine) and (max-height:590px){
 html .game-screen .shop-overlay .shop-card.upgrade-card{padding:6px}
 html .game-screen .shop-overlay .upgrade-card .shop-card-preview{padding-top:40px;gap:2px}
 html .game-screen .shop-overlay .upgrade-card .card-art-frame{width:28px;height:28px;min-height:28px}
 html .game-screen .shop-overlay .upgrade-card .card-icon{width:26px;height:26px;max-height:26px}
 html .game-screen .shop-overlay .upgrade-card .card-star-row{top:28px;height:12px;min-height:12px;font-size:11px;line-height:12px}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-desc{font-size:11.5px!important;line-height:1.2!important}
 html .game-screen .shop-overlay .shop-card.upgrade-card .card-style-caption{padding:2px 4px}
 html .game-screen .shop-overlay .shop-card-actions{margin-top:4px}
}
