/* Stage 178 — Hall of Faith fixed-stage layout.
   The whole screen is authored at 1672x941 and scaled to the window with --hofx-s (set in js/hall-of-faith.js).
   Everything below is positioned in stage pixels, so nothing reflows or scrolls. */
#modalRoot .hof-page{--hofx-gold:#ffe9a8;--hofx-ink:#4a2c12;--hofx-red:#8a1d12;font-family:"Cinzel","Trajan Pro",Georgia,"Times New Roman",serif}
#modalRoot .hofx-stage{position:absolute;left:50%;top:50%;width:1672px;height:941px;transform:translate(-50%,-50%) scale(var(--hofx-s,1));transform-origin:center center;container-type:inline-size;user-select:none}
#modalRoot .hofx-stage img{display:block;-webkit-user-drag:none;pointer-events:none}
#modalRoot .hofx-abs{position:absolute}
#modalRoot .hofx-scene{position:absolute;inset:0;width:100%;height:100%}
#modalRoot .hofx-bigpanel{position:absolute;left:374px;top:342px;width:1108px;height:560px;filter:drop-shadow(0 6px 10px #2a140855)}
#modalRoot .hofx-crest{position:absolute;left:352px;top:8px;width:224px;filter:drop-shadow(0 4px 5px #2a140877)}
#modalRoot .hofx-title{position:absolute;left:598px;top:22px;width:706px;filter:drop-shadow(0 4px 5px #2a140866)}
#modalRoot .hofx-subtitle{position:absolute;left:590px;top:126px;width:712px;height:80px;box-sizing:border-box;border-style:solid;border-width:0 64px;border-image:url("../assets/hall_of_faith/v2/scroll.webp") 0 95 fill/0 64px stretch;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 6px 4px;font:700 21px/1.2 Georgia,"Times New Roman",serif;color:#3b2410}
#modalRoot .hofx-close{position:absolute;left:1358px;top:50px;width:72px;height:72px;padding:0;border:0;background:none;cursor:pointer;transition:transform .12s,filter .12s}
#modalRoot .hofx-close img{width:100%;height:100%;object-fit:contain}
#modalRoot .hofx-close:hover{transform:scale(1.06);filter:brightness(1.12) drop-shadow(0 0 8px #ffe08a)}
#modalRoot .hofx-close:focus-visible,#modalRoot .hofx-tab:focus-visible,#modalRoot .hofx-avatar-btn:focus-visible{outline:3px solid #fff1b1;outline-offset:3px;border-radius:10px}
/* Tabs: the plate art has the label baked in; the active state is a gold glow + lift. */
#modalRoot .hofx-tab{position:absolute;top:220px;width:204px;height:127px;padding:0;border:0;background:none;cursor:pointer;transition:transform .12s,filter .12s;filter:drop-shadow(0 3px 3px #2a140877)}
#modalRoot .hofx-tab img{width:100%;height:100%;object-fit:fill}
#modalRoot .hofx-tab:hover{transform:translateY(-3px);filter:brightness(1.1) drop-shadow(0 3px 3px #2a140877)}
#modalRoot .hofx-tab.is-active{transform:translateY(-4px);filter:brightness(1.22) saturate(1.2) drop-shadow(0 0 3px #fff2a8) drop-shadow(0 0 12px #ffc933)}
#modalRoot .hofx-body-host{position:absolute;inset:0;pointer-events:none}
#modalRoot .hofx-body-host>*{pointer-events:auto}
/* Panels */
#modalRoot .hofx-panel{position:absolute;color:var(--hofx-ink)}
#modalRoot .hofx-frame{position:absolute;inset:0;box-sizing:border-box;border:40px solid transparent;border-image:url("../assets/hall_of_faith/v2/frame.webp") 90 fill/40px stretch;filter:drop-shadow(0 3px 4px #4a2c1244)}
#modalRoot .hofx-ribbon{position:absolute;left:50%;top:-12px;transform:translateX(-50%);height:46px;box-sizing:border-box;border-style:solid;border-width:0 42px;border-image:url("../assets/hall_of_faith/v2/ribbon_red.webp") 0 64 fill/0 42px stretch;display:flex;align-items:center;justify-content:center;white-space:nowrap;font:800 22px/1 "Cinzel",Georgia,serif;color:var(--hofx-gold);text-shadow:0 2px 2px #3a0c06,0 0 6px #3a0c06;letter-spacing:.02em}
/* My Record */
#modalRoot .hofx-avatar-btn{position:absolute;left:20px;top:46px;width:176px;height:196px;padding:0;border:0;background:none;cursor:pointer;transition:filter .12s,transform .12s}
#modalRoot .hofx-avatar-btn:hover{filter:brightness(1.08) drop-shadow(0 0 8px #ffe08a)}
#modalRoot .hofx-avatar-btn .hofx-av{position:absolute;left:16px;top:0;width:144px;height:136px;object-fit:contain}
#modalRoot .hofx-avatar-btn .hofx-plate{position:absolute;left:0;top:132px;width:176px;height:50px;object-fit:fill}
#modalRoot .hofx-avatar-btn b{position:absolute;left:12px;right:12px;top:132px;height:46px;display:flex;align-items:center;justify-content:center;font:800 19px/1 Georgia,serif;color:var(--hofx-ink);overflow:hidden;white-space:nowrap}
#modalRoot .hofx-avatar-link{position:absolute;left:20px;top:244px;width:176px;text-align:center;font:700 12px/1 Georgia,serif;color:#7a4a1a;text-decoration:underline;pointer-events:none}
#modalRoot .hofx-stats{position:absolute;left:214px;top:48px;width:340px;display:grid;gap:3px}
#modalRoot .hofx-stat{position:relative;height:34px;display:flex;align-items:center;gap:8px;padding:0 14px 0 8px;box-sizing:border-box;background:url("../assets/hall_of_faith/v2/strip.webp") center/100% 100% no-repeat}
#modalRoot .hofx-stat img{width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 1px 1px #4a2c1255)}
#modalRoot .hofx-stat span{flex:1;font:700 17px/1 Georgia,serif;color:var(--hofx-ink)}
#modalRoot .hofx-stat b{font:800 20px/1 Georgia,serif;color:#3a2008}
/* My Ranking */
#modalRoot .hofx-rank{position:absolute;left:13px;width:456px;height:88px;box-sizing:border-box;border-style:solid;border-width:0 70px;border-image:url("../assets/hall_of_faith/v2/laurel_plate.webp") 0 86 fill/0 70px stretch;display:flex;align-items:center;gap:10px}
#modalRoot .hofx-rank img{width:54px;height:54px;object-fit:contain;flex:none;margin-left:-6px}
#modalRoot .hofx-rank div{flex:1;min-width:0}
#modalRoot .hofx-rank strong{display:block;font:800 19px/1.1 Georgia,serif;color:var(--hofx-ink)}
#modalRoot .hofx-rank small{display:block;font:600 12px/1.2 Georgia,serif;color:#7a5a36;margin-top:2px}
#modalRoot .hofx-rank b{font:900 24px/1 Georgia,serif;color:var(--hofx-red);text-shadow:0 1px 0 #fff3cf}
#modalRoot .hofx-note{position:absolute;left:30px;right:30px;top:242px;font:600 12px/1.25 Georgia,serif;color:#6e4f2a;text-align:center}
/* Progress by Difficulty */
#modalRoot .hofx-levels{position:absolute;left:24px;right:24px;top:50px;height:168px;display:grid;grid-template-columns:repeat(4,1fr);gap:11px}
#modalRoot .hofx-level{position:relative;border:3px solid #b27a22;border-radius:11px;overflow:hidden;background:linear-gradient(#fff3cf,#f1d79a);box-shadow:inset 0 0 0 1px #fff0b8,0 2px 3px #4a2c1255;display:flex;flex-direction:column;align-items:center}
#modalRoot .hofx-level header{position:relative;width:100%;height:78px;display:flex;align-items:flex-start;justify-content:center}
#modalRoot .hofx-level header img{height:58px;max-width:104px;object-fit:contain;margin-top:6px;filter:drop-shadow(0 2px 2px #0006)}
#modalRoot .hofx-level header em{position:absolute;left:0;right:0;bottom:0;height:24px;display:flex;align-items:center;justify-content:center;font:800 17px/1 Georgia,serif;color:#fff;font-style:normal;text-shadow:0 1px 2px #000b;background:#0003}
#modalRoot .hofx-level.is-easy header{background:linear-gradient(#77b9ff,#2e6fcb)}
#modalRoot .hofx-level.is-medium header{background:linear-gradient(#8fd37a,#2f8a3b)}
#modalRoot .hofx-level.is-hard header{background:linear-gradient(#ff9a7a,#b52a1a)}
#modalRoot .hofx-level.is-expert header{background:linear-gradient(#c79bff,#6a2bb0)}
#modalRoot .hofx-level strong{margin-top:6px;font:800 21px/1 Georgia,serif;color:#3a2008}
#modalRoot .hofx-level small{font:700 14px/1.2 Georgia,serif;color:#6e4f2a}
#modalRoot .hofx-bar{display:block;width:calc(100% - 22px);height:10px;margin:5px 0 0;border:2px solid #7a5028;border-radius:99px;background:linear-gradient(#9a754c,#68431f);overflow:hidden;box-sizing:border-box}
#modalRoot .hofx-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#39a925,#a5ec61 55%,#48aa22);box-shadow:inset 0 1px #eaffb7}
/* Milestones */
#modalRoot .hofx-track{position:absolute;left:14px;top:104px;width:454px;height:30px;box-sizing:border-box;border:3px solid #c68a1f;border-radius:99px;background:linear-gradient(#7a5028,#4b2d12);box-shadow:inset 0 2px 3px #2a140899}
#modalRoot .hofx-track i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:linear-gradient(#ffe27a,#d99a1a);box-shadow:inset 0 2px #fff4b8}
#modalRoot .hofx-node{position:absolute;top:92px;width:54px;height:54px;transform:translateX(-50%)}
#modalRoot .hofx-node img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px #2a1408aa)}
#modalRoot .hofx-node.is-reached img{filter:drop-shadow(0 0 6px #ffe27a) drop-shadow(0 2px 2px #2a1408aa)}
#modalRoot .hofx-mlabel{position:absolute;top:50px;width:58px;height:30px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;border:2px solid #c68a1f;border-radius:9px;background:linear-gradient(#fff3cf,#eccf8c);font:800 19px/1 Georgia,serif;color:#3a2008}
#modalRoot .hofx-mlabel.is-reached{background:linear-gradient(#ffe27a,#f2b933)}
#modalRoot .hofx-summary{position:absolute;left:30px;top:158px;width:422px;height:62px;box-sizing:border-box;border-style:solid;border-width:0 70px;border-image:url("../assets/hall_of_faith/v2/laurel_plate.webp") 0 86 fill/0 70px stretch;display:flex;align-items:center;justify-content:center;text-align:center;font:800 19px/1.1 Georgia,serif;color:var(--hofx-ink);white-space:nowrap}
/* Other tabs still use the previous layout until their redesign lands. */
#modalRoot .hofx-legacy{position:absolute;left:404px;top:352px;width:1048px;height:520px;overflow:hidden;color:#3d2b19}
@media (prefers-reduced-motion:reduce){#modalRoot .hofx-tab,#modalRoot .hofx-close,#modalRoot .hofx-avatar-btn{transition:none}}

/* Stage 178 fixes: neutralise global button chrome, keep ranking labels on one line, lift subtitle text. */
#modalRoot .hof-page .hofx-tab,#modalRoot .hof-page .hofx-close,#modalRoot .hof-page .hofx-avatar-btn{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;min-width:0;min-height:0;font:inherit}
#modalRoot .hof-page .hofx-tab img,#modalRoot .hof-page .hofx-close img{background:transparent}
#modalRoot .hofx-subtitle{top:124px;height:84px;padding:0 4px 14px;font-size:19px}
#modalRoot .hofx-rank{border-width:0 62px;border-image-width:0 62px;gap:8px}
#modalRoot .hofx-rank strong{font-size:17px;white-space:nowrap}
#modalRoot .hofx-rank small{white-space:nowrap}
#modalRoot .hofx-rank b{font-size:22px}
#modalRoot .hofx-close{left:1340px;top:32px;width:108px;height:108px}
#modalRoot .hofx-tab.is-active{filter:brightness(1.28) saturate(1.3) drop-shadow(0 0 2px #fff6b0) drop-shadow(0 0 8px #ffd23a) drop-shadow(0 0 18px #ff9f1a)}

/* ===== Stage 178: shared pieces for Leaderboards / Hall of Fame / Achievements / Collections ===== */
#modalRoot .hofx-frame.is-thin{border-width:24px;border-image-width:24px}
#modalRoot .hofx-cats{position:absolute;left:15px;right:15px;top:54px;display:grid;gap:5px}
#modalRoot .hofx-cat{position:relative;height:41px;display:flex;align-items:center;gap:9px;padding:0 14px 0 12px;border:0;background:none;cursor:pointer;text-align:left;color:var(--hofx-ink);transition:filter .12s,transform .12s}
#modalRoot .hofx-cat::before{content:"";position:absolute;inset:0;border:14px solid transparent;border-image:url("../assets/hall_of_faith/v2/plate_cream.webp") 40 fill/14px stretch;pointer-events:none}
#modalRoot .hofx-cat.is-active::before{border-image-source:url("../assets/hall_of_faith/v2/plate_blue.webp")}
#modalRoot .hofx-cat:hover{filter:brightness(1.07)}
#modalRoot .hofx-cat>*{position:relative}
#modalRoot .hofx-cat img{width:32px;height:30px;object-fit:contain;flex:none}
#modalRoot .hofx-cat span{flex:1;min-width:0}
#modalRoot .hofx-cat strong{display:block;font:800 15px/1.1 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modalRoot .hofx-cat small{display:block;font:600 11px/1.1 Georgia,serif;color:#7a5a36;margin-top:2px}
#modalRoot .hofx-cat em{font:800 13px/1 Georgia,serif;font-style:normal;color:#7a5a36}
#modalRoot .hofx-cat.is-active strong,#modalRoot .hofx-cat.is-active em{color:#fff;text-shadow:0 1px 2px #06204f}
#modalRoot .hofx-cat.is-active small{color:#cfe3ff}
#modalRoot .hofx-banner{position:absolute;box-sizing:border-box;border-style:solid;border-width:0 56px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;font:800 25px/1 "Cinzel",Georgia,serif;color:var(--hofx-gold);text-shadow:0 2px 2px #3a0c06,0 0 6px #3a0c06}
#modalRoot .hofx-banner.is-red{border-image:url("../assets/hall_of_faith/v2/ban_red.webp") 0 120 fill/0 56px stretch}
#modalRoot .hofx-banner.is-blue{border-image:url("../assets/hall_of_faith/v2/ban_blue.webp") 0 86 fill/0 52px stretch;border-width:0 52px;color:#fff;text-shadow:0 2px 2px #06204f,0 0 6px #06204f;font-size:28px}
#modalRoot .hofx-banner.is-purple{border-image:url("../assets/hall_of_faith/v2/ban_purple.webp") 0 100 fill/0 60px stretch;border-width:0 60px;text-shadow:0 2px 2px #2a0a4a,0 0 6px #2a0a4a}
#modalRoot .hofx-banner.slim{border-image:url("../assets/hall_of_faith/v2/ribbon_red.webp") 0 64 fill/0 38px stretch;border-width:0 38px;font-size:20px}
#modalRoot .hofx-subline{position:absolute;font:italic 600 13px/1.2 Georgia,serif;color:#6b4a26}
#modalRoot .hofx-periods{position:absolute;right:20px;top:22px;display:flex;gap:3px}
#modalRoot .hofx-period{position:relative;width:80px;height:36px;border:0;background:none;cursor:pointer;font:800 14px/1 Georgia,serif;color:var(--hofx-ink)}
#modalRoot .hofx-period::before{content:"";position:absolute;inset:0;border:12px solid transparent;border-image:url("../assets/hall_of_faith/v2/plate_cream.webp") 40 fill/12px stretch}
#modalRoot .hofx-period.is-active::before{border-image-source:url("../assets/hall_of_faith/v2/plate_gold.webp")}
#modalRoot .hofx-period{z-index:0}
#modalRoot .hofx-period.is-active{color:#3a2008}
#modalRoot .hofx-thead{position:absolute;left:18px;right:18px;height:32px;box-sizing:border-box;border-style:solid;border-width:0 16px;border-image:url("../assets/hall_of_faith/v2/hdr_brown.webp") 0 22 fill/0 16px stretch;display:grid;align-items:center;padding:0 6px;font:800 14px/1 Georgia,serif;color:#ffe9b8}
#modalRoot .hofx-thead span{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modalRoot .hofx-thead span:nth-child(2){text-align:left;padding-left:8px}
#modalRoot .hofx-rows{position:absolute;left:18px;right:18px;display:grid;gap:4px;--cols:84px 1fr 170px 110px}
#modalRoot .hofx-rows.tight{--cols:50px 1fr 150px 190px}
#modalRoot .hofx-row{height:38px;display:grid;grid-template-columns:var(--cols);align-items:center;padding:0 22px 0 14px;box-sizing:border-box;background:no-repeat center/100% 100%;font:700 15px/1 Georgia,serif;color:var(--hofx-ink)}
#modalRoot .hofx-row.is-gold{background-image:url("../assets/hall_of_faith/v2/row_gold.webp")}
#modalRoot .hofx-row.is-silver{background-image:url("../assets/hall_of_faith/v2/row_silver.webp")}
#modalRoot .hofx-row.is-bronze{background-image:url("../assets/hall_of_faith/v2/row_bronze.webp")}
#modalRoot .hofx-row.is-cream{background-image:url("../assets/hall_of_faith/v2/row_cream.webp")}
#modalRoot .hofx-row>span{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}
#modalRoot .hofx-row .hofx-pl{text-align:left;display:flex;align-items:center;gap:8px;padding-left:6px}
#modalRoot .hofx-row .hofx-pl img{width:28px;height:28px;object-fit:contain}
#modalRoot .hofx-rk img{width:36px;height:30px;object-fit:contain;display:inline-block;vertical-align:middle}
#modalRoot .hofx-msg{position:absolute;left:24px;right:24px;text-align:center;font:600 12px/1.25 Georgia,serif;color:#6e4f2a}
#modalRoot .hofx-msg strong{font-weight:800;color:#5a3a16}
#modalRoot .hofx-empty{grid-column:1/-1;text-align:center;font:600 14px Georgia,serif;color:#6e4f2a}
/* Footer: Your Ranking / Achievement Progress */
#modalRoot .hofx-yr-plate{position:absolute;left:22px;top:9px;width:196px;height:48px;box-sizing:border-box;border-style:solid;border-width:0 34px;border-image:url("../assets/hall_of_faith/v2/plate_purple.webp") 0 44 fill/0 34px stretch;display:flex;align-items:center;justify-content:center;white-space:nowrap;font:800 19px/1 Georgia,serif;color:#ffe27a;text-shadow:0 2px 2px #260a45}
#modalRoot .hofx-yr-pos{position:absolute;left:238px;top:13px;width:130px;text-align:center}
#modalRoot .hofx-yr-pos strong,#modalRoot .hofx-yr-player strong{display:block;font:800 19px/1.1 Georgia,serif;color:var(--hofx-ink)}
#modalRoot .hofx-yr-pos small,#modalRoot .hofx-yr-player small{display:block;font:600 12px/1.2 Georgia,serif;color:#7a5a36}
#modalRoot .hofx-yr-player{position:absolute;left:386px;top:10px;width:200px;display:flex;align-items:center;gap:8px}
#modalRoot .hofx-yr-player img{width:46px;height:44px;object-fit:contain}
#modalRoot .hofx-yr-player strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}
#modalRoot .hofx-yr-chips{position:absolute;right:26px;top:8px;display:flex;gap:10px}
#modalRoot .hofx-chip{height:50px;min-width:124px;box-sizing:border-box;padding:0 12px 0 8px;display:grid;grid-template-columns:32px auto;column-gap:7px;align-content:center;align-items:center;border:3px solid #e1a534;border-radius:10px;background:linear-gradient(#c3281d,#7c0f0a);box-shadow:inset 0 1px #ff9a8a,0 2px 3px #4a2c1288}
#modalRoot .hofx-chip img{grid-row:1/3;width:32px;height:32px;object-fit:contain}
#modalRoot .hofx-chip b{font:800 19px/1 Georgia,serif;color:#fff;text-shadow:0 1px 2px #000a}
#modalRoot .hofx-chip small{font:700 12px/1 Georgia,serif;color:#ffe3a0}
#modalRoot .hofx-yr-pct{position:absolute;left:560px;top:10px;width:190px}
#modalRoot .hofx-yr-pct strong{display:block;font:800 19px/1 Georgia,serif;color:var(--hofx-ink);text-align:center;margin-bottom:5px}
#modalRoot .hofx-foot-bar{position:absolute;left:276px;top:22px;width:560px;height:24px;box-sizing:border-box;border:3px solid #7a5028;border-radius:99px;background:linear-gradient(#9a754c,#68431f);overflow:hidden}
#modalRoot .hofx-foot-bar.sm{position:static;width:100%;height:16px}
#modalRoot .hofx-foot-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#39a925,#a5ec61 55%,#48aa22);box-shadow:inset 0 1px #eaffb7}
#modalRoot .hofx-foot-count{position:absolute;left:860px;top:24px;font:600 18px/1 Georgia,serif;color:var(--hofx-ink)}
#modalRoot .hofx-foot-count strong{font-weight:800;font-size:22px}
#modalRoot .hofx-foot-pct{position:absolute;right:26px;top:22px;font:800 24px/1 Georgia,serif;color:var(--hofx-ink)}
/* Hall of Fame */
#modalRoot .hofx-milebadge{position:absolute;left:512px;top:4px;width:254px;height:76px;box-sizing:border-box;border-style:solid;border-width:0 60px;border-image:url("../assets/hall_of_faith/v2/laurel_plate.webp") 0 86 fill/0 60px stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--hofx-ink)}
#modalRoot .hofx-milebadge strong{font:900 30px/1 Georgia,serif}
#modalRoot .hofx-milebadge small{font:800 13px/1.1 Georgia,serif}
#modalRoot .hofx-flag{position:absolute;width:62px;filter:drop-shadow(0 3px 3px #2a140866)}
#modalRoot .hofx-ring{position:absolute;filter:drop-shadow(0 4px 5px #2a140877)}
#modalRoot .hofx-ring>img{width:100%}
#modalRoot .hofx-ring b{position:absolute;left:16%;right:16%;bottom:5%;height:17%;display:flex;align-items:center;justify-content:center;font:800 15px/1 Georgia,serif;color:#ffe9a8;text-shadow:0 1px 2px #3a0c06}
#modalRoot .hofx-ring.is-vacant>img{filter:grayscale(.6) saturate(.7) brightness(.93);opacity:.9}
#modalRoot .hofx-rplate{position:absolute;left:8%;right:8%;top:100%;margin-top:6px;height:30px;box-sizing:border-box;border:solid transparent;border-width:0 12px;border-image:url("../assets/hall_of_faith/v2/plate_cream.webp") 40 fill/12px stretch;display:flex;align-items:center;justify-content:center;font:700 12px/1 Georgia,serif;color:#6e4f2a;white-space:nowrap}
/* Achievements */
#modalRoot .hofx-achgrid{position:absolute;left:16px;top:102px;width:754px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px 12px}
#modalRoot .hofx-ach{position:relative;height:146px;box-sizing:border-box;padding:6px 12px 0;text-align:center;color:#f7e2b4}
#modalRoot .hofx-ach::before{content:"";position:absolute;inset:0;border:16px solid transparent;border-image:url("../assets/hall_of_faith/v2/plate_brown.webp") 40 fill/16px stretch;pointer-events:none}
#modalRoot .hofx-ach>*{position:relative}
#modalRoot .hofx-ach-medal{height:58px}
#modalRoot .hofx-ach-medal .m{position:absolute;left:50%;top:0;width:78px;transform:translateX(-50%);filter:drop-shadow(0 2px 2px #0008)}
#modalRoot .hofx-ach-medal .i{position:absolute;left:50%;top:13px;width:34px;height:34px;object-fit:contain;transform:translateX(-50%)}
#modalRoot .hofx-ach:not(.is-done) .hofx-ach-medal{filter:grayscale(.55) brightness(.85)}
#modalRoot .hofx-ach-name{height:26px;margin:0 -8px;display:flex;align-items:center;justify-content:center;background:url("../assets/hall_of_faith/v2/ribbon_curl.webp") center/100% 100% no-repeat;font:800 12.5px/1 Georgia,serif;color:#ffe9a8;text-shadow:0 1px 2px #3a0c06;white-space:nowrap;padding:0 14px}
#modalRoot .hofx-ach p{margin:5px 0 0;font:600 10.5px/1.2 Georgia,serif;color:#ecd3a0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:25px}
#modalRoot .hofx-ach-bar{position:relative;margin:7px 2px 0;height:17px;box-sizing:border-box;border:2px solid #d9a441;border-radius:99px;background:#3d230e;overflow:hidden}
#modalRoot .hofx-ach-bar i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(#7fe05a,#2d9a1f);border-radius:99px}
#modalRoot .hofx-ach-bar span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:800 10.5px/1 Georgia,serif;color:#fff;text-shadow:0 1px 1px #000}
#modalRoot .hofx-pill{margin:7px auto 0;width:112px;height:19px;border:2px solid #b8f08a;border-radius:99px;background:linear-gradient(#4fc83a,#1f8a1a);font:800 11px/15px Georgia,serif;color:#fff;text-shadow:0 1px 1px #0a3a08}
/* Collections */
#modalRoot .hofx-ccat{position:relative;height:49px;box-sizing:border-box;padding:0 10px 0 64px;border:0;background:no-repeat center/100% 100%;text-align:left;cursor:pointer;font:800 14px/1.1 Georgia,serif;color:var(--hofx-ink);transition:filter .12s}
#modalRoot .hofx-ccat span{display:block;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modalRoot .hofx-ccat:hover{filter:brightness(1.07)}
#modalRoot .hofx-ccat.is-active{color:#fff;text-shadow:0 1px 2px #06204f;filter:drop-shadow(0 0 5px #4aa8ff)}
#modalRoot .hofx-ccat.is-active:not([style*="cat_blue"])::after{content:"";position:absolute;inset:0;border-radius:12px;background:linear-gradient(rgba(25,85,200,.6),rgba(15,55,150,.75));mix-blend-mode:multiply;pointer-events:none}
#modalRoot .hofx-ccat.is-inactive-blue{filter:hue-rotate(185deg) saturate(.45) brightness(1.55)}
#modalRoot .hofx-cdetail{position:absolute;left:18px;right:18px;top:112px;bottom:12px}
#modalRoot .hofx-cgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#modalRoot .hofx-ccard{position:relative;height:118px;box-sizing:border-box;display:flex;align-items:center;gap:14px;padding:0 16px;border:3px solid #c68a1f;border-radius:12px;background:linear-gradient(#fff3cf,#f1d79a);box-shadow:inset 0 0 0 1px #fff0b8,0 2px 3px #4a2c1255}
#modalRoot .hofx-ccard>img{width:66px;height:66px;object-fit:contain;flex:none}
#modalRoot .hofx-ccard>div{flex:1;min-width:0}
#modalRoot .hofx-ccard strong{display:block;font:800 25px/1.05 Georgia,serif;color:#3a2008}
#modalRoot .hofx-ccard span{display:block;font:800 14px/1.2 Georgia,serif;color:var(--hofx-ink)}
#modalRoot .hofx-ccard small{display:block;font:600 12px/1.2 Georgia,serif;color:#7a5a36;margin-top:2px}
#modalRoot .hofx-mini{position:relative;flex:none;height:34px;padding:0 18px;border:0;background:none;cursor:pointer;font:800 13px/1 Georgia,serif;color:#3a2008}
#modalRoot .hofx-mini::before{content:"";position:absolute;inset:0;border:12px solid transparent;border-image:url("../assets/hall_of_faith/v2/plate_gold.webp") 40 fill/12px stretch;z-index:-1}
#modalRoot .hofx-mini:hover{filter:brightness(1.1)}
#modalRoot .hofx-relics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
#modalRoot .hofx-relic{height:190px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:3px solid #c68a1f;border-radius:12px;background:linear-gradient(#fff3cf,#f1d79a);box-shadow:inset 0 0 0 1px #fff0b8,0 2px 3px #4a2c1255}
#modalRoot .hofx-relic img{width:84px;height:84px;object-fit:contain}
#modalRoot .hofx-relic strong{font:900 30px/1 Georgia,serif;color:#3a2008}
#modalRoot .hofx-relic span{font:800 15px/1 Georgia,serif;color:var(--hofx-ink)}
#modalRoot .hofx-untracked{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:0 60px}
#modalRoot .hofx-untracked img{width:88px;height:88px;object-fit:contain}
#modalRoot .hofx-untracked strong{font:800 22px/1.2 Georgia,serif;color:#3a2008}
#modalRoot .hofx-untracked p{margin:0;font:600 14px/1.3 Georgia,serif;color:#6e4f2a}
#modalRoot .hofx-untracked span{font:700 12px/1.2 Georgia,serif;color:#8a6a3a;font-style:italic}
#modalRoot .hofx-period,#modalRoot .hofx-mini{isolation:isolate}
#modalRoot .hofx-period::before{z-index:-1}
/* Stage 178 round-2 fixes */
#modalRoot .hofx-rows.tight .hofx-row{height:32px}
#modalRoot .hofx-row>span.hofx-rk{opacity:1}
#modalRoot .hofx-rk img{width:40px;height:34px;filter:drop-shadow(0 1px 1px #4a2c1288)}
#modalRoot .hofx-ach{height:140px}
#modalRoot .hofx-achgrid{gap:8px 12px}
#modalRoot .hof-page .hofx-ccat{padding:0 10px 0 66px!important;display:flex!important;align-items:center;height:50px}
#modalRoot .hofx-ccat span{font-size:14.5px}
#modalRoot .hofx-mini{font-size:14px}
#modalRoot .hof-page .hofx-ccat{padding:0 8px 0 98px!important}
#modalRoot .hofx-ccat span{white-space:normal;font-size:13.5px;line-height:1.1}
#modalRoot .hof-page .hofx-ccat{padding:0 8px 0 108px!important}
#modalRoot .hof-page .hofx-ccat.is-active span{color:#fff!important;text-shadow:0 1px 2px #06204f}
