/* Moon Build 38 refinements */
@font-face{font-family:'Valorant Logo';font-style:normal;font-weight:400 900;font-display:swap;src:url('/fonts/valorant-logo.ttf') format('truetype')}
:root{--vf-display:'Oswald','Arial Narrow',Impact,sans-serif;--vf-body:'Barlow','Segoe UI',Arial,sans-serif}
body,button,input,select,textarea{font-family:var(--vf-body);letter-spacing:normal}
p,.muted,.match-stat small,.detail-tile small,.score-profile-link,.score-current-rank{line-height:1.45}
.brand,.brand>span:nth-child(2),.moon-build,.page-intro h2,.mode-heading,.mode-group-heading,.match-title strong,.moon-match-hero h2{font-family:var(--vf-display);font-weight:700;letter-spacing:.065em;text-transform:uppercase}
body,button,input,select,.muted,.match-stat small,.detail-tile small{font-family:var(--vf-body)}
#main-nav a[data-tab="live"]{gap:9px}
#main-nav a[data-tab="live"].is-ended,#main-nav a[data-tab="live"].is-ended.active{color:#ff737f!important;background:#35191d!important;border-bottom:2px solid #ff737f!important}
#live-nav-dot{display:inline-block;flex:none;width:8px;height:8px}
#live-nav-dot.is-ended{background:#ff6574!important;box-shadow:0 0 9px #ff6574!important;animation:none!important}
#live .live-map-hero{position:relative}
#live .live-map-hero .match-status{top:18px;right:18px;left:auto;z-index:2;padding:8px 12px;font-size:12px;letter-spacing:.1em}
#live .live-side.side-defence,#live .team-side.side-defence{color:#a9d4ff!important;background:#123657d9!important;border-color:#76baff!important}
#live .live-side.side-attack,#live .team-side.side-attack{color:#ffbac0!important;background:#552027d9!important;border-color:#ff6574!important}
#live .pregame-actions{display:flex;justify-content:flex-end;width:min(640px,100%);margin:8px auto 14px}
#live .pregame-actions[hidden]{display:none}
#live.is-pregame .moon-dodge{margin:0;padding:12px 20px;min-height:44px;background:#1a1a1a!important;border:1px solid #aaa!important;color:#f5f5f5!important;border-radius:3px;font:700 13px var(--vf-body);letter-spacing:.04em;text-transform:uppercase;transition:background .15s,transform .15s}
#live.is-pregame .moon-dodge::before{content:'↩';margin-right:9px;font-size:17px;vertical-align:-1px}
#live.is-pregame .moon-dodge:hover:not(:disabled){background:#343434!important;border-color:#fff!important;transform:translateY(-1px)}
#live.is-pregame .moon-dodge:focus-visible{outline:2px solid #fff;outline-offset:3px}
#live.is-pregame #live-match-players{grid-template-columns:minmax(0,640px)!important;justify-content:center;gap:0!important}
#live.is-pregame #live-match-players::before{display:none!important}
#live.is-pregame .live-team{--team:#e8e8e8;gap:10px!important;padding:0 10px 12px!important;background:#111!important;border:0!important;border-top:0!important}
#live.is-pregame .live-team h4{margin:0 -10px 4px!important;padding:12px 10px!important;border-bottom:1px solid #444!important;background:transparent!important;color:#f2f2f2!important;font-size:15px!important}
#live.is-pregame #live-match-players .live-player{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:auto auto;align-content:center;column-gap:16px!important;row-gap:2px!important;min-height:112px!important;margin:0!important;padding:14px!important;background:#1b1b1b!important;border:1px solid #505050!important;border-left:5px solid #dcdcdc!important;border-radius:3px;box-shadow:0 10px 24px #0005!important}
#live.is-pregame #live-match-players .live-player.is-own{border-color:#f2f2f2!important;box-shadow:0 0 0 1px #f2f2f2,0 12px 26px #0008!important}
#live.is-pregame #live-match-players .live-player.is-hovering{border-left-color:#fff!important}
#live.is-pregame #live-match-players .live-player.is-hovering .score-agent{border-color:#fff!important}
#live.is-pregame #live-match-players .score-agent{grid-column:1;grid-row:1/3;width:64px!important;height:64px!important;border:1px solid #999!important}
#live.is-pregame #live-match-players .live-player-name{grid-column:2;grid-row:1;position:relative;z-index:1}
#live.is-pregame #live-match-players .live-tier{grid-column:2;grid-row:2;justify-content:flex-start!important;flex-direction:row!important;gap:6px!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important}
#live.is-pregame #live-match-players .live-rank-icon{width:22px!important;height:22px!important}
#live.is-pregame #live-match-players .live-tier small{font-size:11px!important;color:#d4e5e9!important}
#live.is-pregame .live-badge.badge-locked,#live.is-pregame .live-badge.badge-picking{border-color:#bbb;color:#eee;background:#1b1b1bdd}
@media(max-width:700px){#live .pregame-actions{padding:0 4px}#live.is-pregame #live-match-players{grid-template-columns:minmax(0,1fr)!important}}
#career .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#career .current-rank-line{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#career .current-rank-line #rr{font-size:20px;white-space:nowrap;padding-left:14px;border-left:1px solid #575757}
@media(max-width:700px){#career .stat-grid{grid-template-columns:1fr}}
.lobby-stage.is-offline>:not(.offline-banner){opacity:1;filter:none;pointer-events:auto;user-select:auto}
.lobby-stage .lobby-slot,.lobby-stage .lobby-slot-main,.lobby-stage .queue-slot{filter:none!important}
.lobby-stage.is-offline .lobby-card-art,.lobby-stage.is-offline .queue-card-art,.tb-banner{filter:none!important;opacity:1!important}
.lobby-stage.is-offline button:disabled,.lobby-stage.is-offline .mode-dock.is-offline{opacity:.55}
.mode-panel button.mode-row:not(.ghost):not(.moon-drawer-game),.mode-panel button.mode-row.is-limited:not(.ghost):not(.moon-drawer-game){min-height:43px;background:#e6e6e6!important;color:#191919!important;border:1px solid #3b3b3b!important;opacity:1;filter:none;padding:10px 14px}
.mode-panel button.mode-row:not(:disabled):hover:not(.ghost){background:#fff!important;color:#111!important}
.mode-panel button.mode-row.selected:not(.ghost){background:#d4d4d4!important;color:#111!important;box-shadow:inset 4px 0 #fff}
.mode-panel button.mode-row.is-locked:not(.ghost){background:#777!important;color:#dedede!important;cursor:not-allowed;opacity:1}
.mode-panel button.mode-row.is-locked .mode-row-mark{color:#e5b34a}
.match-card .match-summary{cursor:pointer}
.match-card .match-summary:focus-visible{outline:2px solid #fff;outline-offset:2px}
.match-card>.match-details[hidden]{display:none!important}
.score-winning{color:#39df91!important}.score-losing{color:#fa6970!important}.score-neutral{color:#dedede!important}
.match-back{display:inline-block;margin-bottom:18px;padding:10px 16px;border:1px solid #555}
#match .match-details{display:block;min-height:55vh;border:1px solid #444;border-radius:4px;padding:20px}
#match .page-intro h2{font-size:clamp(32px,4vw,58px)}
.saved-profiles{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}
.saved-profiles h3{width:100%;margin:0 0 4px}
.saved-profile{background:#242424;color:#eee;border:1px solid #555;padding:8px 12px;font-size:12px}
.saved-profile:hover{background:#383838}
.lobby-current-match{margin-top:24px}
.lobby-current-match h3{font:700 23px var(--vf-display);letter-spacing:.08em}
.lobby-match-snapshot .live-map-hero{margin-bottom:20px}
.lobby-match-snapshot .live-match-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:800px){.lobby-match-snapshot .live-match-players{grid-template-columns:1fr}}

/* VALORANT-style display typography for match labels and rank summaries. */
#match .page-intro h2,#match .detail-hero-info h3,#match .score-overview,#match .team-label,#match .score-head,#match .score-rank,#match .score-average-rank,.lobby-current-match h3{font-family:var(--vf-display);letter-spacing:.045em}
#match .score-profile-link,#match .score-current-rank,#match .score-row>span:nth-child(n+3){font-family:var(--vf-body);letter-spacing:normal}
#match .score-average-rank{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;min-width:0}
#match .score-average-label{font-size:12px;font-weight:600;color:#d6d6d6}
#match .score-average-rank strong{font-size:14px;font-weight:700;color:#fff}
#match .score-average-icon{width:26px;height:26px;object-fit:contain;flex:none}
#match .team-label .score-average-rank{font-size:12px;text-transform:none;letter-spacing:.02em}
#match .team-label .score-average-rank .score-average-label{color:inherit}
#match .score-current-rank{display:flex;align-items:center;gap:5px;margin-top:3px;color:#aeb8bd;font-size:11px;font-weight:500;line-height:1.2}
#match .score-current-rank span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#match .score-current-icon{width:15px;height:15px;object-fit:contain;flex:none}
#match .score-rank{gap:7px;white-space:nowrap}
#match .score-rank-icon{width:30px;height:30px;flex:none}
.sidebar nav a,.lobby-start,.lobby-ready,.mode-card-name,.gate-title,.match-back,.match-title .result-pill{font-family:var(--vf-display);font-weight:700;letter-spacing:.085em;text-transform:uppercase}
.live-average-rank{display:inline-flex;align-items:center;gap:6px;vertical-align:middle;font-family:var(--vf-display);letter-spacing:.045em}
.live-average-rank strong{font-weight:700;color:#fff}
.live-average-icon{width:24px;height:24px;object-fit:contain;flex:none}
.brand>span:nth-child(2){font-family:'Valorant Logo',var(--vf-display);font-size:23px;letter-spacing:.01em}
.moon-build{font-family:var(--vf-body);font-size:10px;letter-spacing:.06em}
.sidebar nav a{font-size:13px;letter-spacing:.03em}
.mode-card-name{font-size:20px;letter-spacing:.02em}
.mode-panel button.mode-row:not(.ghost):not(.moon-drawer-game){font-family:var(--vf-display);font-size:17px;letter-spacing:.01em}
.lobby-start,.lobby-ready{font-size:20px;letter-spacing:.04em}
.lobby-slot-main .slot-name{font-family:var(--vf-display);font-size:28px;letter-spacing:.02em}
.lobby-slot-main .slot-tag{font-family:var(--vf-body);font-size:12px;letter-spacing:.04em}

/* Keep the mode card at the left edge and the party on the viewport centreline. */
@media(min-width:1100px){
  .authenticated #lobby .lobby-stage{width:100vw;max-width:none;min-height:850px;margin-left:calc(50% - 50vw);margin-right:0;margin-bottom:22px;padding:70px 28px;gap:32px}
  .authenticated #lobby .lobby-slots{gap:clamp(16px,1.8vw,36px);max-width:1700px}
  .authenticated #lobby .lobby-slot{width:clamp(150px,13.2vw,275px);height:clamp(390px,28vw,600px)}
  .authenticated #lobby .lobby-slot:nth-child(2),.authenticated #lobby .lobby-slot:nth-child(4){height:clamp(440px,31vw,650px)}
  .authenticated #lobby .lobby-slot-main{width:clamp(220px,16vw,330px);height:clamp(520px,34vw,700px)}
  .authenticated #lobby .mode-dock{width:230px;top:110px;left:24px;opacity:1}
  .authenticated #lobby .mode-card{height:190px;opacity:1}
}
@media(min-width:1100px) and (max-width:1379px){
  .authenticated #lobby .mode-dock{position:relative;top:auto;left:auto;width:min(350px,100%)}
}
.mode-dock.is-offline{opacity:1}
.mode-dock.is-offline .mode-card{opacity:1!important;filter:none}
.mode-card-name{color:#fff;text-shadow:0 2px 6px #000,0 0 16px #000}
.mode-card::before{background:linear-gradient(180deg,#05050533,#050505dd)!important}
.mode-card:focus-visible{outline:2px solid #fff;outline-offset:3px}
.mode-card-icon{width:26px;height:26px;object-fit:contain;flex:none;filter:brightness(0) invert(1);position:relative;z-index:1}
.mode-row-icon{width:24px;height:24px;object-fit:contain;flex:none;filter:brightness(0)}
.mode-panel button.mode-row.is-locked .mode-row-icon{filter:grayscale(1) brightness(.6)}
#live .live-player.has-card::before{filter:none!important;opacity:.76!important}
#live.is-pregame #live-match-players .live-player.has-card::before{filter:none!important;opacity:.8!important}
.match-status[data-status="dodged"]{color:#ff8790;border-color:#ff6b7866;background:#2c1115e6}
.match-status[data-status="dodged"] .match-status-dot{background:#ff6b78}
.moon-dodge-dialog{width:min(440px,calc(100vw - 32px));max-width:none;padding:26px;background:#171717;color:#f5f5f5;border:1px solid #aaa;border-radius:4px;box-shadow:0 28px 80px #000b}
.moon-dodge-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}
.moon-dodge-dialog h2{margin:8px 0 10px;font-size:30px}
.moon-dodge-dialog p{margin:0 0 24px;color:#c5c5c5;line-height:1.45}
.moon-dodge-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.moon-dodge-dialog-actions button{min-height:44px;padding:10px 16px;border:1px solid #777;border-radius:3px;background:#292929;color:#fff;font-weight:700}
.moon-dodge-dialog-actions button:hover{background:#3a3a3a}
.moon-dodge-dialog-actions .moon-dodge-confirm{border-color:#ff6574;background:#551d27;color:#fff}
.moon-dodge-dialog-actions .moon-dodge-confirm:hover{background:#762633}
.moon-dodge-dialog-actions button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.mode-row-name{flex:1;min-width:0}

/* Career filters: clear labels, larger targets, and visible keyboard focus. */
#career .match-controls{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:16px;padding:18px 20px;border:1px solid #444!important;border-radius:6px;background:#171717!important}
#career .match-controls>div{position:relative;min-width:0}
#career .match-controls label{font:600 12px var(--vf-body);letter-spacing:.12em;color:#c5c5c5;margin:0 0 8px}
#career .match-controls select{appearance:none;width:100%;height:48px;padding:0 42px 0 14px;border:1px solid #626262!important;border-radius:4px;background:#242424!important;color:#fff!important;font:600 14px var(--vf-body);letter-spacing:0;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}
#career .match-controls>div::after{content:'⌄';position:absolute;right:16px;bottom:15px;color:#ddd;font:700 19px var(--vf-body);line-height:1;pointer-events:none}
#career .match-controls select:hover{background:#303030!important;border-color:#aaa!important}
#career .match-controls select:focus-visible{outline:2px solid #fff;outline-offset:2px;border-color:#fff!important;box-shadow:0 0 0 4px #ffffff18}
@media(max-width:720px){#career .match-controls{grid-template-columns:1fr;gap:12px;padding:14px}}

/* User-supplied game typography: DIN for readable UI, Tungsten for large titles. */
@font-face{font-family:'PF DIN Text Pro';src:url('/fonts/pf-dintext-pro-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'PF DIN Text Pro';src:url('/fonts/pf-dintext-pro-bold.ttf') format('truetype');font-style:normal;font-weight:700 900;font-display:swap}
@font-face{font-family:'Tungsten';src:url('/fonts/tungsten-bold.woff2') format('woff2');font-style:normal;font-weight:700 900;font-display:swap}
:root{--vf-body:'PF DIN Text Pro','Barlow','Segoe UI',Arial,sans-serif}
.page-intro h2,.live-map-hero h2,.detail-hero-info h3,.moon-match-hero h2,#match .page-intro h2{font-family:'Tungsten',var(--vf-display);font-size:clamp(38px,4vw,68px);font-weight:700;letter-spacing:.025em;line-height:1}
.brand>span:nth-child(2){font-family:'Valorant Logo',var(--vf-display)}

/* Store deadlines use Riot's remaining-time fields; the browser updates the display locally. */
#store .moon-daily-header{grid-column:1/-1;display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid #5b5b5b;padding:6px 0 12px;margin:12px 0 2px}
#store .moon-daily-header .moon-daily-heading{grid-column:auto;border:0;margin:0;padding:0}
#store .moon-shop-timer{display:inline-flex!important;align-items:center;gap:10px;align-self:flex-start;border:1px solid #777;background:#171717;color:#dedede;padding:8px 11px;font:700 12px var(--vf-body);letter-spacing:.04em}
#store .moon-shop-timer-value{color:#fff;font:700 15px var(--vf-body);font-variant-numeric:tabular-nums;white-space:nowrap}
#store .moon-featured-info .moon-shop-timer{background:#171717;color:#ddd;border:1px solid #aaa;margin-top:8px;padding:8px 11px}
#store .moon-featured-info .moon-shop-timer span{background:none;color:inherit;padding:0;font:inherit}

/* Fixed local artwork rules do not depend on inline styles or a remote image request. */
#lobby button.mode-card[data-art]{background-size:cover!important;background-position:center 55%!important;background-repeat:no-repeat!important}
#lobby button.mode-card[data-art="ascent"]{background-image:url('/maps/ascent.png')!important}
#lobby button.mode-card[data-art="bind"]{background-image:url('/maps/bind.png')!important}
#lobby button.mode-card[data-art="lotus"]{background-image:url('/maps/lotus.png')!important}
#lobby button.mode-card[data-art="fracture"]{background-image:url('/maps/fracture.png')!important}
#lobby button.mode-card[data-art="pearl"]{background-image:url('/maps/pearl.png')!important}
#lobby button.mode-card[data-art="split"]{background-image:url('/maps/split.png')!important}
#lobby button.mode-card[data-art="breeze"]{background-image:url('/maps/breeze.png')!important}
#lobby button.mode-card[data-art="icebox"]{background-image:url('/maps/icebox.png')!important}
#lobby button.mode-card[data-art="sunset"]{background-image:url('/maps/sunset.png')!important}

/* Bundle art fills the banner; only the name, price and deadline sit over it. */
#store .moon-featured{position:relative;display:block;height:clamp(260px,19vw,350px);min-height:0!important;margin-bottom:8px;overflow:hidden;background:#171717}
#store .moon-featured-slide{position:absolute;inset:0;animation:moon-bundle-in .3s ease both}
#store .moon-featured-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;background:none;opacity:1;filter:none}
#store .moon-featured-info{position:absolute;left:28px;bottom:22px;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:min(78%,600px);padding:0;background:none!important;color:#fff;text-shadow:0 2px 6px #000,0 0 18px #000b}
#store .moon-featured-info strong{font-size:clamp(38px,4vw,70px);line-height:.95}
#store .moon-featured-info .moon-bundle-price{display:block;align-self:auto;padding:0!important;background:none!important;color:#fff!important;font-size:18px;font-weight:800}
#store .moon-featured-info .moon-shop-timer{display:flex!important;align-self:auto;gap:8px;margin:0;padding:0!important;border:0!important;background:none!important;color:#fff!important;font-size:13px}
#store .moon-featured-info .moon-shop-timer span{padding:0!important;background:none!important;color:#fff!important}
#store .moon-featured-info .moon-shop-timer-value{color:#fff!important;font-size:14px}
#store .moon-bundle-gallery{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-evenly;gap:10px;padding:20px;background:transparent!important}
#store .moon-bundle-controls{position:absolute;top:15px;right:17px;z-index:3;display:flex;align-items:center;gap:7px}
#store button.moon-bundle-arrow,#store button.moon-bundle-dot{display:grid!important;place-items:center;flex:none;margin:0;padding:0!important;border:1px solid #fff9!important;background:#fff2!important;color:#fff!important;box-shadow:0 2px 8px #0008;cursor:pointer}
#store button.moon-bundle-arrow{width:32px;height:32px;border-radius:2px!important;font:700 26px/1 var(--vf-body)}
#store button.moon-bundle-dot{width:9px;height:9px;border-radius:50%!important}
#store button.moon-bundle-dot.is-active{background:#fff!important}
#store button.moon-bundle-arrow:hover,#store button.moon-bundle-dot:hover{background:#fff6!important}
#store button.moon-bundle-arrow:focus-visible,#store button.moon-bundle-dot:focus-visible{outline:2px solid #fff;outline-offset:3px}
@keyframes moon-bundle-in{from{opacity:.55}to{opacity:1}}
@media(max-width:700px){#store .moon-featured{height:260px}#store .moon-featured-info{left:16px;bottom:16px;width:calc(100% - 32px)}#store .moon-featured-info strong{font-size:clamp(32px,8vw,52px)}#store .moon-bundle-controls{right:12px;top:12px}}
