/* One card standard for upgrades and blessings: original flat frame, clear icon, short benefit, separated numbers. */
#hextech-screen.temple-gamble .hextech-card.blessing-card {
    --blessing-ink:#4e3524;--blessing-muted:#644b37;--blessing-number:#714214;
    width:240px;height:430px;max-width:100%;border-radius:11px;
}
#hextech-screen.temple-gamble .blessing-card.hextech-silver {--blessing-ink:#2f4654;--blessing-muted:#486270;--blessing-number:#224a68}
#hextech-screen.temple-gamble .blessing-card.hextech-gold {--blessing-ink:#54390b;--blessing-muted:#70511f;--blessing-number:#714208}
#hextech-screen.temple-gamble .blessing-card.hextech-prismatic {--blessing-ink:#49305b;--blessing-muted:#654777;--blessing-number:#67388c}
#hextech-screen.temple-gamble .blessing-card .hextech-card-bg {object-fit:fill}
#hextech-screen.temple-gamble .blessing-card .blessing-card-inner {
    box-sizing:border-box;padding:16px 20px 22px;gap:9px;overflow:visible;
    height:100%;min-height:0;align-items:center;color:var(--blessing-ink);
}
#hextech-screen .blessing-card-header {display:flex;flex:none;flex-direction:column;align-items:center;width:100%;min-width:0;gap:5px}
#hextech-screen.temple-gamble .blessing-card .hextech-rune-name {
    width:100%;min-height:28px;margin:0;font:400 22px/1.25 var(--font-ui-title);color:var(--blessing-ink);
    letter-spacing:0;text-align:center;text-wrap:balance;overflow-wrap:anywhere;
}
#hextech-screen .blessing-card-meta {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px 9px;min-height:18px;width:100%}
#hextech-screen.temple-gamble .blessing-card .hextech-rarity-label {
    position:static;inset:auto;transform:none;flex:none;width:auto;margin:0;padding:0;
    color:var(--blessing-muted);font:400 12px/1.4 var(--font-ui-title);letter-spacing:.06em;text-shadow:none;
}
#hextech-screen.temple-gamble .blessing-card .hextech-rune-owner {
    margin:0;font:400 11px/1.4 var(--ui-body);color:var(--blessing-muted);white-space:nowrap;
}
#hextech-screen.temple-gamble .blessing-card .hextech-icon-wrap {
    box-sizing:border-box;width:66px;height:66px;flex:0 0 66px;padding:0;margin:4px 0 2px;
    border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;
}
#hextech-screen.temple-gamble .blessing-card .hextech-icon {display:block;width:100%;height:100%;object-fit:contain}
#hextech-screen.temple-gamble .blessing-card .hextech-rune-desc {
    width:100%;flex:none;min-height:0;margin:0;padding:0;border:0;overflow:visible;
    font:400 14px/1.45 var(--ui-body);color:var(--blessing-ink);text-align:center;overflow-wrap:anywhere;
}
#hextech-screen.temple-gamble .blessing-card .blessing-main-copy {
    box-sizing:border-box;width:100%;font:500 14px/1.45 var(--ui-body);margin:0;text-align:center;text-wrap:pretty;
}
#hextech-screen .blessing-detail {
    box-sizing:border-box;width:100%;display:flex;flex-direction:column;align-items:center;gap:9px;
    padding-top:12px;margin-top:12px;border-top:1px solid color-mix(in srgb,var(--blessing-ink) 24%,transparent);
}
#hextech-screen .blessing-stat {width:100%;display:flex;flex-direction:column;align-items:center;gap:2px}
#hextech-screen .blessing-value {width:100%;font:400 27px/1.2 var(--font-ui-title);color:var(--blessing-number);text-wrap:balance}
#hextech-screen .blessing-number {font:400 1.08em/1 var(--font-game-number);white-space:nowrap;letter-spacing:0}
#hextech-screen .blessing-stat-label {width:100%;font:400 12px/1.4 var(--ui-body);color:var(--blessing-muted)}
#hextech-screen.temple-gamble .blessing-card .blessing-detail-copy {
    width:100%;margin:0;font:400 12px/1.5 var(--ui-body);color:var(--blessing-ink);text-align:center;text-wrap:pretty;
}
#hextech-screen .blessing-card :is(.blessing-main-copy,.blessing-detail-copy) span {overflow-wrap:anywhere}
#hextech-screen .blessing-card :is(.blessing-main-copy,.blessing-detail-copy) .blessing-number {color:var(--blessing-number)}
#hextech-screen.temple-gamble .blessing-card.hextech-gold .hextech-card-bg {filter:drop-shadow(0 0 7px #edc35c90) drop-shadow(0 5px 9px #0005)}
#hextech-screen.temple-gamble .blessing-card.hextech-prismatic .hextech-card-bg {filter:drop-shadow(-3px 0 9px #c1a4f0a0) drop-shadow(3px 0 9px #8bd9e78c)}
#hextech-screen.temple-gamble .blessing-card:is(.hextech-gold,.hextech-prismatic)::before {
    content:"";display:block;position:absolute;inset:4px;z-index:2;border:1px solid #fff0b27a;border-radius:10px;
    pointer-events:none;animation:blessing-edge-glow 2.6s ease-in-out infinite;box-shadow:inset 0 0 8px #ffe6a35a;
}
@keyframes blessing-edge-glow {50%{opacity:.55;box-shadow:inset 0 0 4px #fff1c333}}
.is-mobile-game #hextech-screen.temple-gamble .blessing-card .blessing-main-copy {font-size:var(--mobile-reading,14px)}
.is-mobile-game #hextech-screen.temple-gamble .blessing-card :is(.blessing-detail-copy,.blessing-stat-label) {font-size:var(--mobile-meta,12px)}
#hextech-screen.temple-gamble .qian-empty-card {width:240px;height:430px;background-image:url('../assets/blessing_cards_20260920f/frame-bronze.png');background-size:100% 100%}
#hextech-screen.temple-gamble .qian-empty-name {font:400 22px/1.25 var(--font-ui-title)}
#hextech-screen.temple-gamble .qian-empty-desc {font:400 14px/1.5 var(--ui-body);text-wrap:balance}
@container temple (max-height:760px) {
    #hextech-screen.temple-gamble:not(.temple-legacy) .hextech-card.blessing-card,
    #hextech-screen.temple-gamble .qian-empty-card {width:240px;height:min(430px,calc(100cqh - 246px))}
    #hextech-screen.temple-gamble .blessing-card .blessing-card-inner {padding:14px 20px 20px;gap:7px}
    #hextech-screen.temple-gamble .blessing-card .hextech-icon-wrap {width:60px;height:60px;flex-basis:60px;margin:2px 0}
    #hextech-screen .blessing-detail {padding-top:10px;margin-top:10px;gap:7px}
}
/* A retained three-choice entry uses the same contents and permits the whole row to scroll. */
#hextech-screen.temple-legacy .hextech-cards {align-items:stretch;gap:7px;padding:14px 0;overflow-x:hidden;overflow-y:auto}
#hextech-screen.temple-legacy .hextech-card.blessing-card {width:calc((100% - 14px)/3);min-width:0;height:auto;min-height:370px;flex:none}
#hextech-screen.temple-legacy .blessing-card .blessing-card-inner {min-height:370px;height:100%;padding:12px 11px 20px;gap:7px}
#hextech-screen.temple-legacy .blessing-card .hextech-rune-name {font-size:17px;min-height:42px}
#hextech-screen.temple-legacy .blessing-card .hextech-rarity-label {font-size:11px}
#hextech-screen.temple-legacy .blessing-card .hextech-rune-owner {font-size:10px;white-space:normal}
#hextech-screen.temple-legacy .blessing-card .hextech-icon-wrap {width:48px;height:48px;flex-basis:48px;margin:0}
#hextech-screen.temple-legacy .blessing-card .blessing-main-copy {font-size:13px}
#hextech-screen.temple-legacy .blessing-card :is(.blessing-detail-copy,.blessing-stat-label) {font-size:11px;line-height:1.45}
#hextech-screen.temple-legacy .blessing-card .blessing-value {font-size:22px}
@media (prefers-reduced-motion:reduce) {#hextech-screen.temple-gamble .blessing-card::before {animation:none!important}}
/* v1.29p 金签任务签：英雄小形象探出卡顶（同强化卡），红色“任务”小印，任务一句用标题字，下面一行完成奖励 */
#hextech-screen .blessing-card.blessing-quest {overflow:visible}
#hextech-screen .blessing-card .blessing-quest-hero {
    position:absolute;z-index:4;top:-60px;left:50%;transform:translateX(-50%);width:84px;height:84px;object-fit:contain;
    pointer-events:none;filter:drop-shadow(0 3px 5px #0007);
}
#hextech-screen .blessing-quest .blessing-card-header {padding-top:14px}
#hextech-screen.temple-gamble .blessing-quest .hextech-icon-wrap {width:88px;height:88px;flex-basis:88px;margin:8px 0 6px}
#hextech-screen .blessing-quest-stamp {
    flex:none;padding:1px 7px 0;border:1.5px solid #b8321f;border-radius:4px;background:#c8412b;color:#fff6e0;
    font:400 12px/1.35 var(--font-ui-title);letter-spacing:.12em;box-shadow:0 1px 0 #7d1d10,inset 0 1px 0 #ffffff40;transform:rotate(-4deg);
}
#hextech-screen.temple-gamble .blessing-quest .blessing-quest-task {font:400 17px/1.35 var(--font-ui-title);color:var(--blessing-ink)}
#hextech-screen .blessing-quest .blessing-quest-task .blessing-number {color:#b8321f;font-size:1.12em}
#hextech-screen .blessing-quest-label {font:400 12px/1.2 var(--font-ui-title);color:var(--blessing-muted);letter-spacing:.1em}
#hextech-screen.temple-gamble .blessing-quest .blessing-quest-reward {font:500 13px/1.5 var(--ui-body)}
#hextech-screen.temple-legacy .blessing-quest .blessing-quest-task {font-size:14px}
#hextech-screen.temple-legacy .blessing-card .blessing-quest-hero {width:62px;height:62px;top:-42px}
/* v1.29q：“任务”印在标题右边，不再写“黄金签”；奖励关键词金橙描边，场地名做成场地色小牌 */
#hextech-screen .blessing-quest-title {display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0}
#hextech-screen.temple-gamble .blessing-quest .blessing-quest-title .hextech-rune-name {width:auto;flex:0 1 auto;min-height:0}
#hextech-screen .blessing-quest-title .blessing-quest-stamp {transform:rotate(-6deg) translateY(-2px)}
#hextech-screen .blessing-card .blessing-key {font:400 1.08em/1.3 var(--font-ui-title);color:#c2410c;-webkit-text-stroke:.3px #7a2a06;text-shadow:0 1px 0 #fff5d6}
#hextech-screen .blessing-card .blessing-field {display:inline-block;margin:0 2px;padding:0 6px 1px;border-radius:5px;background:var(--field);color:#fff;font:400 1em/1.45 var(--font-ui-title);letter-spacing:.04em;box-shadow:0 1px 0 #0004,inset 0 1px 0 #ffffff55;text-shadow:0 1px 1px #0006}
#hextech-screen .blessing-quest-title .hextech-rune-name {white-space:nowrap}
#hextech-screen.temple-legacy .blessing-quest .blessing-quest-title {gap:4px}
#hextech-screen.temple-legacy .blessing-quest .blessing-quest-title .hextech-rune-name {font-size:15px}
#hextech-screen.temple-legacy .blessing-quest .blessing-quest-stamp {font-size:10px;padding:0 4px;letter-spacing:.06em}
/* v1.29r 开局土地签改“签”的外形：face-档.png 按 上190/侧40/下280 九宫格拉伸，宽度用卡片的 cqw 换算；签名压在名牌上（名牌 x 24%～76%、中心在 30.9cqw） */
#hextech-screen .hextech-card.blessing-card.blessing-slip {container-type:inline-size;background:none}
#hextech-screen .blessing-card.blessing-slip .blessing-slip-bg {
    position:absolute;inset:0;z-index:0;box-sizing:border-box;width:auto;height:auto;object-fit:initial;
    border-style:solid;border-color:transparent;border-width:43.18cqw 9.09cqw 63.64cqw;border-image-slice:190 40 280 40 fill;border-image-repeat:stretch;
}
#hextech-screen.temple-gamble .blessing-card.blessing-slip .blessing-card-inner {padding:38cqw 11cqw 44cqw;gap:2.4cqw;justify-content:flex-start}
#hextech-screen .blessing-card.blessing-slip .blessing-card-header {position:static;gap:0}
#hextech-screen.temple-gamble .blessing-card.blessing-slip .hextech-rune-name,
#hextech-screen.temple-gamble .blessing-card.blessing-slip .blessing-quest-title .hextech-rune-name {
    position:absolute;z-index:3;left:24%;right:24%;top:25.4cqw;height:11cqw;min-height:0;margin:0;display:flex;align-items:center;justify-content:center;
    font:400 clamp(11px,7.6cqw,20px)/1 var(--font-ui-title);color:#fff8e6;text-shadow:0 1px 1px #0008;white-space:nowrap;letter-spacing:.02em;overflow:visible;
}
#hextech-screen .blessing-card.blessing-slip .blessing-quest-title {position:static;display:block;height:0}
#hextech-screen .blessing-card.blessing-slip .blessing-quest-title .blessing-quest-stamp {position:absolute;z-index:3;right:9cqw;top:38cqw;transform:rotate(-6deg);font-size:clamp(10px,5.4cqw,13px);padding:0 4px}
#hextech-screen .blessing-card.blessing-slip .blessing-card-meta {min-height:0}
#hextech-screen .blessing-card.blessing-slip .blessing-card-meta:empty {display:none}
#hextech-screen.temple-gamble .blessing-card.blessing-slip .hextech-icon-wrap,
#hextech-screen.temple-gamble .blessing-quest.blessing-slip .hextech-icon-wrap {width:clamp(46px,30cqw,76px);height:clamp(46px,30cqw,76px);flex-basis:auto;margin:3cqw 0 1cqw}
#hextech-screen .blessing-card.blessing-slip .blessing-quest-hero {top:-34cqw;width:clamp(56px,34cqw,84px);height:clamp(56px,34cqw,84px)}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-quest-hero {top:-30px;width:56px;height:56px}
#hextech-screen.temple-gamble .blessing-card.blessing-slip.hextech-gold .blessing-slip-bg {filter:drop-shadow(0 0 7px #edc35c90) drop-shadow(0 5px 9px #0005)}
#hextech-screen.temple-gamble .blessing-card.blessing-slip.hextech-prismatic .blessing-slip-bg {filter:drop-shadow(-3px 0 9px #c1a4f0a0) drop-shadow(3px 0 9px #8bd9e78c)}
#hextech-screen.temple-gamble .blessing-card.blessing-slip:is(.hextech-gold,.hextech-prismatic)::before {display:none}
#hextech-screen.temple-gamble .blessing-card.blessing-slip .blessing-card-inner {padding-bottom:52cqw}
#hextech-screen.temple-legacy .hextech-card.blessing-card.blessing-slip {align-self:center;height:auto;min-height:0}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-card-inner {min-height:0;height:auto;padding:50cqw 9cqw 60cqw;gap:5px}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .hextech-rune-name,
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-quest-title .hextech-rune-name {font-size:12px;left:20%;right:20%}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-quest-title .blessing-quest-stamp {top:42cqw;right:5cqw;font-size:10px}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .hextech-icon-wrap {width:56px;height:56px;flex-basis:56px}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-main-copy {font-size:13px;line-height:1.4}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-detail-copy {font-size:12px}
#hextech-screen.temple-gamble .blessing-card.blessing-slip .hextech-rune-name {width:auto!important;text-wrap:nowrap}
#hextech-screen.temple-gamble:not(.temple-legacy) .blessing-card.blessing-slip .blessing-card-inner {padding:38cqw 14cqw 58cqw}
/* v1.29s：任务签“任务”印和签名在名牌上同一行，贴在签名右边 */
#hextech-screen .blessing-card.blessing-slip .blessing-quest-title {
    position:absolute;z-index:3;left:14%;right:14%;top:25.4cqw;height:11cqw;display:flex!important;align-items:center;justify-content:center;gap:1.6cqw;
}
#hextech-screen.temple-gamble .blessing-card.blessing-slip .blessing-quest-title .hextech-rune-name {position:static!important;height:auto;left:auto;right:auto;top:auto}
#hextech-screen .blessing-card.blessing-slip .blessing-quest-title .blessing-quest-stamp {position:static!important;transform:rotate(-5deg)!important;flex:none;font-size:clamp(9px,5cqw,12px)!important;padding:0 3px!important;line-height:1.3;box-shadow:0 1px 0 #7d1d10,0 0 0 1.5px #fff6e0}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-quest-title {left:10%;right:10%;gap:3px}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-quest-title .hextech-rune-name {font-size:11.5px!important}
/* v1.30a（10-26 用户图1：签名偏右、“任务”印压出名牌）：原来 width:100% 顶掉了 right，整行往右偏。
   改成签名行钉在名牌平直段里（左右各 25%）、整行居中；“任务”印改竖排小红印章，窄名牌也放得下。 */
#hextech-screen .blessing-card.blessing-slip .blessing-quest-title {left:25%!important;right:25%!important;width:auto!important;gap:1.4cqw!important}
#hextech-screen .blessing-card.blessing-slip .blessing-quest-title .blessing-quest-stamp {
    writing-mode:vertical-rl;text-orientation:upright;white-space:nowrap;transform:rotate(-4deg)!important;
    font-size:clamp(8px,4.4cqw,11px)!important;line-height:1!important;letter-spacing:.06em!important;padding:2px 1px 1px!important;border-width:1px;border-radius:3px;
    box-shadow:0 1px 0 #7d1d10,0 0 0 1px #fff6e0!important;
}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-quest-title {left:22%!important;right:22%!important;gap:2px!important}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-quest-title .hextech-rune-name {font-size:11px!important}
#hextech-screen.temple-legacy .blessing-card.blessing-slip .blessing-quest-title .blessing-quest-stamp {font-size:8px!important;padding:1px 0 0!important;letter-spacing:0!important}
