/* Dashboard frame: arena video behind static graphite panels. Desktop fits one screen; only the details pane scrolls. */
.nm-shell {
    --sh-bar: 56px;
    --sh-gap: 12px;
    --sh-gutter: clamp(16px, 4.5vw, 96px); /* breathing room on both sides of the frame */
    --sh-max: 1500px;
    --sh-side: max(var(--sh-gutter), calc((100vw - var(--sh-max)) / 2));
    --sh-glass: #111518;
    --sh-glass-strong: #101417;
    --sh-raised: #202529;
    --sh-raised-2: #30363b;
    --sh-line: #ffffff29;
    --sh-line-2: #ffffff40;
    --sh-text: #f7f6ed;
    --sh-muted: #b3bcbb;
    --sh-dim: #98a3a3;
    --sh-gold: #ffc000;
    --sh-gold-line: #ffc00066;
    --sh-teal: #5cc8c0;
    --sh-cut: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
    --sh-cut-sm: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px);
    --sh-panel-art: url("theme/tactical-panel.webp");
    --sh-card-art: url("theme/tactical-card.webp");
    background: #05090a;
    color: var(--sh-text);
}
.nm-shell .sh a { color: inherit; }

/* Background: poster image, the looping arena video above it, then a dark wash for contrast. */
.sh-stage { position: fixed; inset: 0; z-index: -1; background: #05090a var(--stage-bg) center / cover no-repeat; }
.sh-stage::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, #02050666 0, #02050626 45%, #02050680 100%), radial-gradient(ellipse at 25% 35%, #ffc0000f, transparent 60%);
}
.sh-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.sh-stage__video.is-playing { opacity: 1; }

/* Opaque surfaces keep the video visible only around and between sections. */
.sh-bar, .sh-card, .sh-details, .sh-tabbar {
    background: var(--sh-glass);
    border: 1px solid var(--sh-line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* The approved sparse linework belongs to large panels, not the data cards.
   Anchor the gold contour at the bottom and preserve the pattern angle on resize. */
.sh-card, .sh-details {
    background-image: repeating-linear-gradient(135deg, transparent 0 11px, #ffffff04 11px 12px), var(--sh-panel-art);
    background-position: right bottom;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px #ffffff04;
}

/* Top bar */
.sh-bar {
    position: fixed; inset: 0 0 auto; z-index: 30; height: var(--sh-bar);
    display: flex; align-items: center; gap: 18px; padding: 0 var(--sh-side);
    border-width: 0 0 1px; background: var(--sh-glass-strong);
}
.sh-brand { display: flex; align-items: center; gap: 9px; color: var(--sh-text); font-family: var(--nm-font-display); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.sh-brand:hover { color: var(--sh-gold); }
.sh-tabs { display: flex; gap: 4px; height: 100%; }
.sh-tab {
    position: relative; display: flex; align-items: center; gap: 7px; padding: 0 14px;
    color: var(--sh-muted); font-family: var(--nm-font-display); font-size: 14px; font-weight: 600; text-decoration: none;
}
.sh-tab i { font-size: 14px; }
.sh-tab:hover { color: var(--sh-text); }
.sh-tab.is-active { color: var(--sh-text); }
.sh-tab.is-active::after { content: ""; position: absolute; inset: auto 10px 0; height: 3px; background: var(--sh-gold); }
.sh-tab.is-active i { color: var(--sh-gold); }
.sh-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.sh-icon {
    display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
    border: 1px solid var(--sh-line-2); background: var(--sh-raised); color: var(--sh-text); font-size: 13px; font-weight: 700; text-decoration: none;
}
.sh-icon:hover { border-color: var(--sh-gold-line); color: var(--sh-gold); }
.sh-join {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
    background: var(--sh-gold); color: #000 !important; font-family: var(--nm-font-display); font-size: 13px; font-weight: 700;
    clip-path: var(--sh-cut-sm); text-decoration: none; white-space: nowrap;
}
.sh-join:hover { background: #ffd24d; }
.sh-account { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; background: #fff; color: #000 !important; font-size: 13px; font-weight: 700; clip-path: var(--sh-cut-sm); text-decoration: none; white-space: nowrap; }

/* The frame */
.sh {
    position: fixed; z-index: 1; top: calc(var(--sh-bar) + var(--sh-gap)); bottom: var(--sh-gap);
    left: var(--sh-side); right: var(--sh-side);
    display: grid; gap: var(--sh-gap);
    grid-template-columns: clamp(250px, 21vw, 310px) minmax(0, 1fr) clamp(220px, 17vw, 260px);
    grid-template-areas: "start details end";
}
.sh-rail { min-height: 0; display: flex; flex-direction: column; gap: var(--sh-gap); }
.sh-rail--start { grid-area: start; }
.sh-rail--end { grid-area: end; }
.sh-details { grid-area: details; }
.sh-focus .sh { grid-template-columns: 0 minmax(0, 1fr) 0; column-gap: 0; }
.sh-focus .sh-rail { visibility: hidden; overflow: hidden; }

.sh-card { position: relative; min-height: 0; padding: 10px 12px; clip-path: var(--sh-cut); }
.sh-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 30px; height: 2px; background: var(--sh-gold); }
[dir="rtl"] .sh-card::before { inset: 0 0 auto auto; }
.sh-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sh-card__head h2 { margin: 0; display: flex; align-items: center; gap: 7px; font-family: var(--nm-font-display); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.sh-card__head h2 i { color: var(--sh-gold); font-size: 13px; }
.sh-more { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--sh-gold) !important; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sh-more:hover { color: #fff !important; }
.sh-more--block { margin-top: auto; padding-top: 6px; justify-content: flex-end; }
.sh-sub { margin: 6px 0 5px; color: var(--sh-dim); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sh-none { margin: 0; padding: 7px 9px; color: var(--sh-dim); font-size: 12px; border: 1px dashed var(--sh-line-2); }

/* A slim, fixed footer within the match panel leaves room for the match lists. */
.sh-social { display: flex; flex: none; justify-content: center; gap: 12px; margin-top: 6px; padding-top: 3px; border-top: 1px solid var(--sh-line); }
.sh-social a { display: grid; place-items: center; width: 32px; height: 28px; color: #f7f6ed !important; font-size: 16px; text-decoration: none; }
.sh-social a:hover, .sh-social a:focus-visible { background: var(--sh-raised); filter: brightness(1.2); }
.sh-social .bi-youtube { color: #ff3347; }
.sh-social .bi-facebook { color: #388bff; }
.sh-social .bi-tiktok { color: #fff; text-shadow: -1px -1px 0 #25f4ee, 1px 1px 0 #fe2c55; }
.sh-social .bi-instagram::before { color: #f25b93; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .sh-social .bi-instagram::before { background: linear-gradient(25deg, #ffd76a, #ff7245 32%, #ed3d8d 62%, #b16dff); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
}
.sh-social a:focus-visible { outline: 2px solid var(--sh-gold); outline-offset: -2px; }

/* Announcements: one focused card and two small ones */
.sh-ann { flex: none; }
.sh-ann__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sh-ann__card {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
    height: clamp(50px, 9vh, 80px); border: 1px solid var(--sh-line); clip-path: var(--sh-cut-sm); color: var(--sh-text) !important; text-decoration: none;
}
.sh-ann__card--lead { grid-column: 1 / -1; height: clamp(86px, 17vh, 150px); }
.sh-ann__card:only-child, .sh-ann__card--lead + .sh-ann__card:last-child { grid-column: 1 / -1; }
.sh-ann__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sh-ann__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #000000eb 4%, #00000052 62%, #0000 100%); }
a.sh-ann__card:hover { border-color: var(--sh-gold-line); }
a.sh-ann__card:hover img { transform: scale(1.05); }
.sh-ann__text { display: flex; flex-direction: column; min-width: 0; padding: 6px 9px; }
.sh-ann__text small { color: var(--sh-gold); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sh-ann__text strong { font-size: 12px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sh-ann__card--lead .sh-ann__text { padding: 9px 12px; }
.sh-ann__card--lead .sh-ann__text small { font-size: 11px; }
.sh-ann__card--lead .sh-ann__text strong { font-family: var(--nm-font-display); font-size: clamp(15px, 2.6vh, 21px); }

/* Matches: next three and latest three, one card */
.sh-matches { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.sh-list { display: flex; flex-direction: column; gap: 4px; }
.sh-matches .sh-list { min-height: 0; flex-shrink: 1; overflow-y: auto; scrollbar-width: thin; }
.sh-match {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
    min-height: 42px; padding: 0; background: var(--sh-raised); border: 1px solid var(--sh-line);
    color: var(--sh-text); font-size: 12px; text-decoration: none;
}
a.sh-match:hover { border-color: var(--sh-gold-line); }
.sh-match__team { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--sh-muted); font-weight: 600; }
.sh-match__team bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-match__team.is-winner { color: var(--sh-text); }
.sh-match__team { flex-direction: row; gap: 5px; align-items: center; }
.sh-match__team--b { flex-direction: row-reverse; text-align: end; }
.sh-match .sh-logo { --size: 40px; width: 40px; height: 40px; max-width: 40px; object-fit: contain; }
.sh-match__tag { font: 700 10px/1 var(--nm-font-display); letter-spacing: .06em; }
.sh-match__time { text-align: center; }
.sh-match__score { font-family: var(--nm-font-display); font-size: 16px; font-weight: 700; }
.sh-match__time { color: var(--sh-teal); font-family: var(--nm-font-display); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sh-match__label { grid-column: 1 / -1; color: var(--sh-dim); font-size: 10.5px; text-align: center; margin-top: -2px; }
.sh-logo { flex: none; width: var(--size, 22px); height: var(--size, 22px); object-fit: contain; }
img.sh-logo { width: auto; max-width: none; }
.sh-mono { display: inline-grid; place-items: center; background: var(--sh-raised-2); border: 1px solid var(--sh-line-2); color: var(--sh-gold); font-family: var(--nm-font-display); font-size: calc(var(--size, 22px) * .4); line-height: 1; }

/* Top squad showcase and ladder */
.sh-top { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.sh-top__card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: clamp(8px, 2vh, 18px) 8px clamp(8px, 1.6vh, 14px);
    background: var(--sh-glass) var(--sh-panel-art) right bottom / cover no-repeat;
    border: 1px solid var(--sh-gold-line); clip-path: var(--sh-cut); color: var(--sh-text) !important; text-align: center; text-decoration: none;
}
.sh-top__card .sh-logo { --size: clamp(44px, 10vh, 76px); height: var(--size); filter: drop-shadow(0 8px 16px #000a); }
.sh-top__card strong { font-family: var(--nm-font-display); font-size: 16px; line-height: 1.2; }
.sh-top__rank { position: absolute; top: 6px; inset-inline-start: 10px; color: var(--sh-gold); font-family: var(--nm-font-display); font-size: 18px; font-weight: 700; }
.sh-top__elo { color: var(--sh-gold); font-family: var(--nm-font-display); font-size: 20px; font-weight: 700; }
.sh-top__elo small { color: var(--sh-muted); font-size: 11px; }
.sh-ladder { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow: hidden; }
.sh-ladder a { display: grid; grid-template-columns: 16px auto minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: clamp(26px, 4.4vh, 32px); padding: 2px 8px; background: var(--sh-raised); border: 1px solid var(--sh-line); font-size: 12px; font-weight: 600; text-decoration: none; }
.sh-ladder a:hover { border-color: var(--sh-gold-line); }
.sh-ladder bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-ladder__n { color: var(--sh-gold); font-family: var(--nm-font-display); font-weight: 700; text-align: center; }
.sh-ladder b { font-family: var(--nm-font-display); font-weight: 600; }
.sh-numbers { flex: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sh-numbers div { text-align: center; }
.sh-numbers dt { color: var(--sh-dim); font-size: 10px; font-weight: 600; line-height: 1.2; }
.sh-numbers dd { margin: 0; font-family: var(--nm-font-display); font-size: 20px; font-weight: 700; line-height: 1.1; }
.sh-numbers div:first-child dd { color: var(--sh-gold); }
.sh-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 12px; color: var(--sh-muted); font-size: 13px; text-align: center; border: 1px dashed var(--sh-line-2); }
.sh-empty i { color: var(--sh-gold); font-size: 24px; }
.sh-empty p { margin: 0; }
.sh-empty a { color: var(--sh-gold) !important; font-weight: 700; text-decoration: none; }

/* Details pane: the only part that scrolls */
.sh-details { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px clamp(16px, 2vw, 28px) 28px; clip-path: var(--sh-cut); scrollbar-width: thin; scrollbar-color: #ffffff33 transparent; outline: none; }
.sh-details.is-loading .sh-details__body { opacity: .45; transition: opacity .2s .1s; }
.sh-details::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 44px; height: 2px; background: var(--sh-gold); }
.sh-page-head { margin-bottom: 14px; }
.sh-page-head h1 { margin: 2px 0 0; font-family: var(--nm-font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.15; }
.sh-page-head p { margin: 6px 0 0; color: var(--sh-muted); font-size: 14px; }
.sh-kicker { color: var(--sh-gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sh-back { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--sh-muted) !important; font-size: 13px; text-decoration: none; }
.sh-back:hover { color: var(--sh-gold) !important; }
[dir="rtl"] .sh-back i { transform: scaleX(-1); }
.sh-subtabs { position: sticky; top: -18px; z-index: 2; display: flex; gap: 2px; margin: 0 0 16px; padding: 4px; overflow-x: auto; background: var(--sh-glass-strong); border: 1px solid var(--sh-line); scrollbar-width: none; }
.sh-subtabs a { flex: none; padding: 6px 14px; color: var(--sh-muted) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.sh-subtabs a:hover { color: var(--sh-text) !important; }
.sh-subtabs a.is-active { background: var(--sh-raised-2); color: var(--sh-text) !important; box-shadow: inset 0 -2px 0 var(--sh-gold); }
.sh-section { margin: 0 0 22px; }
.sh-section > h2, .sh-h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--nm-font-display); font-size: 17px; font-weight: 700; }
.sh-section > h2 i { color: var(--sh-gold); }
.sh-section > h2 .sh-more { font-family: var(--nm-font-body); }
.sh-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sh-tile { display: block; padding: 12px 14px; background: var(--sh-raised); border: 1px solid var(--sh-line); clip-path: var(--sh-cut-sm); color: var(--sh-text) !important; text-decoration: none; }
a.sh-tile:hover { border-color: var(--sh-gold-line); }
.sh-tile small { display: block; color: var(--sh-dim); font-size: 11px; }
.sh-tile strong { display: block; font-family: var(--nm-font-display); font-size: 16px; line-height: 1.25; }
.sh-tile p { margin: 4px 0 0; color: var(--sh-muted); font-size: 13px; }
.sh-progress { height: 6px; margin-top: 8px; background: var(--sh-raised-2); }
.sh-progress span { display: block; height: 100%; background: var(--sh-gold); }
.sh-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; background: var(--sh-raised-2); color: var(--sh-muted); font-size: 11px; font-weight: 700; clip-path: var(--sh-cut-sm); }
.sh-badge--live { background: var(--sh-gold); color: #000; }
.sh-badge--done { background: #5cc8c026; color: var(--sh-teal); }
.sh-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; background: var(--sh-gold); color: #000 !important; font-size: 13px; font-weight: 700; clip-path: var(--sh-cut-sm); text-decoration: none; }
.sh-button:hover { background: #ffd24d; }
.sh-button--ghost { background: var(--sh-raised-2); color: var(--sh-text) !important; }
.sh-button--ghost:hover { background: #3a4147; }
.sh-prose { max-width: 70ch; color: #dfe3df; font-size: 15px; line-height: 1.7; }
.sh-prose p { margin: 0 0 1em; white-space: pre-line; }
.sh-hero-img { width: 100%; height: auto; max-height: min(340px, 40vh); object-fit: cover; margin-bottom: 16px; border: 1px solid var(--sh-line); clip-path: var(--sh-cut); }
.sh-feed { display: flex; flex-direction: column; gap: 6px; }
.sh-feed__row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--sh-raised); border: 1px solid var(--sh-line); font-size: 13px; }
.sh-feed__row time { margin-inline-start: auto; color: var(--sh-dim); font-size: 12px; white-space: nowrap; }
.sh-feed__row a { font-weight: 700; text-decoration: none; }
.sh-feed__row a:hover { color: var(--sh-gold) !important; }
.sh-kind { flex: none; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }
.sh-kind--join { background: #5cc8c026; color: var(--sh-teal); }
.sh-kind--leave { background: #ff6b6b1f; color: #ff8a8a; }
.sh-news { display: grid; gap: 10px; }
.sh-news__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 12px 14px; background: var(--sh-raised); border: 1px solid var(--sh-line); color: var(--sh-text) !important; text-decoration: none; }
.sh-news__item:hover { border-color: var(--sh-gold-line); }
.sh-news__item time { grid-row: span 2; color: var(--sh-gold); font-family: var(--nm-font-display); font-size: 13px; font-weight: 700; white-space: nowrap; }
.sh-news__item strong { font-family: var(--nm-font-display); font-size: 16px; }
.sh-news__item p { margin: 0; color: var(--sh-muted); font-size: 13px; }
.sh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.sh-step { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 14px; background: var(--sh-raised); border: 1px solid var(--sh-line); clip-path: var(--sh-cut-sm); counter-increment: step; }
.sh-step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; background: var(--sh-raised-2); color: var(--sh-gold); font-family: var(--nm-font-display); font-size: 20px; font-weight: 700; }
.sh-step.is-done { border-color: #5cc8c066; }
.sh-step.is-done::before { content: "\2713"; background: #5cc8c026; color: var(--sh-teal); }
.sh-step strong { display: block; font-family: var(--nm-font-display); font-size: 16px; }
.sh-step p { margin: 2px 0 0; color: var(--sh-muted); font-size: 13px; }
.sh-step__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sh-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px; background: var(--sh-raised); border: 1px solid var(--sh-line); clip-path: var(--sh-cut); text-align: center; }
.sh-versus__team { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--sh-muted); text-decoration: none; }
.sh-versus__team strong { color: var(--sh-text); font-family: var(--nm-font-display); font-size: 17px; }
.sh-versus__team.is-winner strong { color: var(--sh-gold); }
.sh-versus__team .sh-logo { --size: 64px; height: 64px; }
.sh-versus__score { font-family: var(--nm-font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.sh-versus__score small { display: block; margin-top: 6px; color: var(--sh-muted); font-size: 12px; font-weight: 600; }
.sh-roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sh-roster a { display: block; padding: 6px 10px; background: var(--sh-raised); border: 1px solid var(--sh-line); font-size: 13px; text-decoration: none; }
.sh-roster a:hover { border-color: var(--sh-gold-line); }
.sh-roster a:has(.sh-roster__role) { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh-roster a > bdi { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-roster__role { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--sh-gold); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sh-roster__role i { width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--role-icon) center / contain no-repeat; mask: var(--role-icon) center / contain no-repeat; }
.sh-two { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sh-filter a, .sh-filter select { padding: 4px 12px; background: var(--sh-raised); border: 1px solid var(--sh-line); color: var(--sh-muted) !important; font-size: 12px; font-weight: 600; text-decoration: none; }
.sh-filter a.is-active { border-color: var(--sh-gold-line); color: var(--sh-gold) !important; }
.sh-filter select { color: var(--sh-text) !important; }
.sh-day { margin: 12px 0 6px; color: var(--sh-gold); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sh-focus-btn { margin-inline-start: auto; }
.sh-focus-on, .sh-focus .sh-focus-off { display: none; }
.sh-focus .sh-focus-on { display: inline; }

/* Pages that existed before the frame render inside the pane without their full-width page chrome. */
.sh-details .nm-content { width: auto; max-width: none; margin: 0; padding: 0; }
.sh-details .nm-content-section { padding-block: 0 18px; min-height: 0; }
.sh-details .nm-masthead { min-height: 0; padding: 0 0 14px; background: none; border: 0; }
.sh-details .nm-masthead::before, .sh-details .nm-masthead::after { display: none; }
.sh-details .nm-masthead__art { display: none; }
.sh-details .nm-masthead__copy { width: auto; max-width: none; padding: 0; }
.sh-details .nm-masthead h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.sh-details .nm-masthead p { font-size: 14px; margin-bottom: 8px; }
.sh-details .nm-jump { position: sticky; top: -18px; z-index: 2; background: var(--sh-glass-strong); }
.sh-details .nm-cup-bracket { overflow-x: auto; padding-bottom: 8px; }
.sh-details .table-responsive, .sh-details .nm-cup-table-wrap { overflow-x: auto; }

/* League registration pages (register, player and squad forms, roster, invitation) in the pane. */
.sh-details .league-shell { width: auto; max-width: 860px; margin: 0; padding: 0; display: grid; gap: 12px; }
.sh-details .league-shell--narrow { max-width: 680px; }
.sh-details .league-panel, .sh-details .league-panel--muted { padding: 14px 16px; background: var(--sh-raised) var(--sh-card-art) center / cover no-repeat; border: 1px solid var(--sh-line); border-radius: 0; clip-path: var(--sh-cut-sm); }
.sh-details .league-panel__title { margin: 0 0 10px; font-family: var(--nm-font-display); font-size: 17px; font-weight: 700; }
.sh-details h1.league-panel__title { font-size: clamp(20px, 2.2vw, 26px); }
.sh-details .league-panel .elo-kicker { margin: 0 0 2px; color: var(--sh-gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sh-details .league-panel p, .sh-details .league-facts, .sh-details .form-text { font-size: 13px; }
.sh-details .league-panel .text-muted { color: var(--sh-muted) !important; }
.sh-details .league-step { grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; border-top-color: var(--sh-line); }
.sh-details .league-step:first-child { padding-top: 0; }
.sh-details .league-step__badge { width: 30px; height: 30px; border-radius: 0; font-family: var(--nm-font-display); font-size: 14px; clip-path: var(--sh-cut-sm); }
.sh-details .league-step__title { margin: 4px 0 4px; font-family: var(--nm-font-display); font-size: 15px; }
.sh-details .league-step__body > p:last-child { margin-bottom: 0; }
.sh-details .league-facts { gap: 4px; }
.sh-details .league-legend { margin-bottom: 8px; font-size: 13px; }
.sh-details .league-mini-steps { margin-bottom: 12px; font-size: 12px; }
.sh-details .league-form fieldset { margin-bottom: 16px !important; }
.sh-details .league-form .form-control, .sh-details .league-form .form-select, .sh-details .league-role { min-height: 38px; }
.sh-details .form-control, .sh-details .form-select { background-color: var(--sh-glass-strong); border: 1px solid var(--sh-line-2); border-radius: 0; color: var(--sh-text); font-size: 14px; }
.sh-details .form-control:focus, .sh-details .form-select:focus { border-color: var(--sh-gold); box-shadow: 0 0 0 2px var(--sh-gold-line); }
.sh-details .form-label { margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.sh-details .league-identity { margin-bottom: 14px; padding: 8px 12px; border-color: var(--sh-line); border-radius: 0; }
.sh-details .league-role { border-color: var(--sh-line-2); border-radius: 0; font-size: 13px; }
.sh-details .league-roster li { min-height: 42px; padding: 6px 10px; background: var(--sh-glass-strong); border-color: var(--sh-line); border-radius: 0; font-size: 13px; }
.sh-details .league-logo { border-radius: 0; clip-path: var(--sh-cut-sm); }
.sh-details .league-status { border-radius: 0; font-size: 11px; clip-path: var(--sh-cut-sm); }
.sh-details .league-shell .alert { margin-bottom: 12px; padding: 8px 12px; border-radius: 0; font-size: 13px; }
.sh-details .league-shell .btn { border-radius: 0; font-size: 13px; font-weight: 700; }
.sh-details .league-shell .btn-lg { padding: 9px 18px; font-size: 14px; }
.sh-details .league-shell .btn-cyber-primary { background: var(--sh-gold); border-color: var(--sh-gold); color: #000; clip-path: var(--sh-cut-sm); box-shadow: none; }
.sh-details .league-shell .btn-cyber-primary:hover { background: #ffd24d; }
.sh-details .league-shell .btn-cyber-outline { background: var(--sh-raised-2); border-color: var(--sh-line-2); color: var(--sh-text); clip-path: var(--sh-cut-sm); }
.sh-details .league-pick__row { border-radius: 0; }

/* Player dashboard (members and captains) in the pane, under "My account". Sections are sub-tabs. */
.sh-account.is-active { box-shadow: inset 0 -3px 0 var(--sh-gold); }
.sh-details .player-shell--pane { display: block; color: var(--sh-text); font-size: 13px; }
.sh-details .player-shell--pane .player-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 0 0 12px; }
.sh-details .player-shell--pane .player-header h1 { font-family: var(--nm-font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.15; }
.sh-details .player-shell--pane .player-header p { color: var(--sh-gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sh-details .player-shell--pane .player-avatar { flex: 0 0 40px; height: 40px; background: var(--sh-raised-2); border-color: var(--sh-gold-line); clip-path: var(--sh-cut-sm); color: var(--sh-gold); }
.sh-details .player-shell--pane .player-header__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-inline-start: auto; padding: 0; }
.sh-details .sh-subtabs.player-nav { flex-direction: row; padding: 4px; border: 1px solid var(--sh-line); }
.sh-details .sh-subtabs.player-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 6px 12px; background: none; color: var(--sh-muted) !important; clip-path: none; font-size: 13px; }
.sh-details .sh-subtabs.player-nav a:hover { color: var(--sh-text) !important; }
.sh-details .sh-subtabs.player-nav a[aria-current] { background: var(--sh-raised-2) var(--sh-card-art) center / cover no-repeat; color: var(--sh-text) !important; box-shadow: inset 0 -2px 0 var(--sh-gold); }
.sh-details .sh-subtabs.player-nav i { font-size: 14px; }
.sh-details .player-shell--pane .player-panel, .sh-details .player-shell--pane .player-stat { background: var(--sh-raised) var(--sh-card-art) center / cover no-repeat; border: 1px solid var(--sh-line); clip-path: var(--sh-cut-sm); }
.sh-details .player-shell--pane .player-panel { padding: 14px 16px; margin-bottom: 12px; }
.sh-details .player-shell--pane .player-panel h2 { font-family: var(--nm-font-display); font-size: 17px; }
.sh-details .player-shell--pane .player-next { margin-bottom: 12px; }
.sh-details .player-shell--pane .form-control, .sh-details .player-shell--pane .form-select { background-color: var(--sh-glass-strong); border: 1px solid var(--sh-line-2); border-radius: 0; color: var(--sh-text); }

.sh-tabbar { display: none; }

.sh-ann__card--page { height: 170px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; background: var(--sh-raised); border: 1px solid var(--sh-line); font-size: 13px; font-weight: 600; text-decoration: none; }
.sh-chip:hover { border-color: var(--sh-gold-line); }
.sh-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sh-stages li { display: flex; flex-direction: column; gap: 6px; min-width: 150px; padding: 10px 12px; background: var(--sh-raised); border: 1px solid var(--sh-line); border-top: 2px solid var(--sh-line-2); }
.sh-stages li.is-live { border-top-color: var(--sh-gold); }
.sh-stages li.is-done { border-top-color: var(--sh-teal); }
.sh-stages strong { font-family: var(--nm-font-display); font-size: 15px; }
.sh-stages .sh-badge { align-self: flex-start; }
.sh-partner { display: flex; align-items: center; gap: 8px; color: var(--sh-dim); }
.sh-partner img { width: auto; height: 34px; object-fit: contain; }
.sh-cup-nav { position: sticky; top: -18px; z-index: 2; display: flex; gap: 8px; align-items: stretch; margin-bottom: 16px; }
.sh-cup-nav .sh-subtabs { position: static; flex: 1; margin: 0; }
.sh-picker { margin: 0; }
.sh-picker select { height: 100%; min-width: 160px; background: var(--sh-glass-strong); }
.sh-bracket-bar { display: flex; margin-bottom: 8px; }
.sh-match-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 18px; color: var(--sh-muted); font-size: 13px; }
.sh-join-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.sh-join-foot .sh-more { margin-inline-start: 0; }
a.nm-cup-match { display: block; color: inherit; text-decoration: none; }
a.nm-cup-match:hover { border-color: var(--sh-gold-line); }

/* Smooth opaque interiors, with the existing clipped corners and semantic accents. */
.sh-tile, .sh-match, .sh-ladder a, .sh-stages li, .sh-feed__row,
.sh-news__item, .sh-step, .sh-versus, .sh-roster a, .sh-chip,
.sh-button--ghost, .sh-icon, .sh-filter a, .sh-filter select,
.sh-subtabs a.is-active {
    background-image: var(--sh-card-art);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.sh-tile, .sh-stages li { border-color: var(--sh-line-2); }
.sh-tile.sh-tile--registration { border-color: var(--sh-gold-line); }
.sh-tile:focus-visible, .sh-button:focus-visible, .sh-icon:focus-visible,
.sh-subtabs a:focus-visible { outline: 2px solid var(--sh-gold); outline-offset: -3px; }

/* Legacy tournament cards live inside the same static details surface. */
.sh-details .nm-cup-match {
    background: var(--sh-raised) var(--sh-card-art) center / cover no-repeat;
}

/* Tablet and phone: the page scrolls normally; the rails show on the Home tab. */
@media (max-width: 1099px) {
    .nm-shell { --sh-gutter: clamp(12px, 2.4vw, 24px); }
    .sh-bracket-bar { display: none; }
    .sh-bar { gap: 10px; }
    .sh-brand span { display: none; }
    .sh-tab { padding-inline: 9px; }
    .sh {
        position: static; margin: 0 var(--sh-gutter); padding: calc(var(--sh-bar) + var(--sh-gap)) 0 var(--sh-gap);
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "start end" "details details";
    }
    .sh:not([data-tab="home"]) { grid-template-areas: "details details"; }
    .sh:not([data-tab="home"]) .sh-rail { display: none; }
    .sh-details { overflow: visible; }
    .sh-matches, .sh-top { overflow: visible; }
    .sh-ann__card--lead { height: 180px; }
    .sh-ann__card { height: 80px; }
    .sh-tab { padding: 0 10px; }
}
@media (max-width: 719px) {
    .nm-shell { --sh-bar: 52px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .sh-stage { background-image: var(--stage-bg-mobile); }
    .sh { grid-template-columns: minmax(0, 1fr); grid-template-areas: "details" "start" "end"; }
    .sh:not([data-tab="home"]) { grid-template-areas: "details"; }
    .sh-tabs, .sh-join { display: none; }
    .sh-account { height: 32px; padding: 0 10px; font-size: 12px; }
    .sh-actions { gap: 6px; }
    .sh-brand span { display: inline; font-size: 14px; }
    .sh-tabbar {
        position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr);
        height: 60px; padding-bottom: env(safe-area-inset-bottom); border-width: 1px 0 0; background: var(--sh-glass-strong);
    }
    .sh-tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sh-muted) !important; font-size: 10.5px; font-weight: 600; text-decoration: none; }
    .sh-tabbar__item i { font-size: 18px; }
    .sh-tabbar__item.is-active { color: var(--sh-gold) !important; }
    .sh-two { grid-template-columns: minmax(0, 1fr); }
    .sh-step { grid-template-columns: 34px 1fr; }
    .sh-step::before { width: 34px; height: 34px; }
    .sh-step__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .sh-versus__score { font-size: 30px; }
    .sh-details { padding: 14px 14px 22px; }
}

/* Compact visual identities: approved esports portraits, with a quiet fallback. */
.nm-shell .nm-roster-player { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; padding: 0; min-height: 80px; background: var(--sh-raised) var(--sh-card-art) center / cover; border: 1px solid var(--sh-line); color: var(--sh-text); text-decoration: none; }
.nm-player-portrait { display: grid; place-items: center; width: 64px; height: 80px; overflow: hidden; background: #151b20; color: #69777c; font-size: 36px; }
.nm-player-portrait .bi { color: #69777c; }
.nm-player-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.nm-roster-player__copy { min-width: 0; padding-inline-end: 9px; }
.nm-shell .nm-roster-player h3 { margin: 0; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.nm-shell .nm-roster-player .nm-player-tile__heading { gap: 6px; }
.nm-shell .nm-roster-player .nm-player-tile__tags { margin: 6px 0 0; font-size: 10px; gap: 6px; }
.nm-roster-player:hover, .nm-roster-player:focus-visible { border-color: var(--sh-gold); }
.nm-roster-player:focus-visible { outline: 2px solid var(--sh-gold); outline-offset: -2px; }
.nm-shell .nm-agent__who { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.nm-agent__portrait { grid-column: 1; grid-row: 1 / span 2; }
.nm-agent__portrait .nm-player-portrait { width: 48px; height: 64px; font-size: 30px; }
.nm-agent__who > h3, .nm-agent__who > p { grid-column: 2; }
@media(max-width:719px) {
    .nm-shell .nm-roster-player { grid-template-columns: 48px minmax(0, 1fr); min-height: 68px; gap: 7px; }
    .nm-roster-player .nm-player-portrait { width: 48px; height: 68px; font-size: 30px; }
    .nm-shell .nm-roster-player h3 { font-size: 12px; }
}

/* Homepage video slider: a YouTube thumbnail until someone presses play, then the player in its place. */
.sh-videos { background: var(--sh-raised); border: 1px solid var(--sh-line); clip-path: var(--sh-cut-sm); padding: 10px; }
.sh-video { margin: 0; }
.sh-video__frame { position: relative; aspect-ratio: 16 / 9; max-height: 46vh; margin-inline: auto; background: #000; overflow: hidden; }
.sh-video__frame iframe, .sh-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sh-video__poster { padding: 0; background: #000; cursor: pointer; }
.sh-video__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; }
.sh-video__poster:hover img, .sh-video__poster:focus-visible img { opacity: 1; transform: scale(1.02); }
.sh-video__icon { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 44px; background: var(--sh-gold); color: #111; font-size: 30px; clip-path: var(--sh-cut-sm); box-shadow: 0 6px 20px #0008; }
[dir="rtl"] .sh-video__icon { translate: 50% -50%; }
.sh-video__poster:focus-visible { outline: 2px solid var(--sh-gold); outline-offset: -2px; }
.sh-video__caption { display: flex; align-items: center; gap: 10px; padding: 8px 2px 0; font-size: 13px; }
.sh-video__caption strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-videos__nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; }
.sh-videos__step { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: var(--sh-raised-2); border: 1px solid var(--sh-line); color: var(--sh-text); }
.sh-videos__step:hover { border-color: var(--sh-gold-line); color: var(--sh-gold); }
[dir="rtl"] .sh-videos__step i { display: inline-block; transform: scaleX(-1); }
.sh-videos__dots { display: flex; gap: 6px; }
.sh-videos__dots button { width: 18px; height: 4px; padding: 0; border: 0; background: var(--sh-line-2); }
.sh-videos__dots button[aria-current="true"] { background: var(--sh-gold); }
