input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.league-hero { position: relative; min-height: 20rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; overflow: hidden; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 1.35rem; background: radial-gradient(circle at 82% 30%, rgba(230, 185, 87, .23), transparent 17rem), linear-gradient(135deg, #0d3027, #173f35); color: white; box-shadow: 0 22px 60px rgba(8, 31, 25, .22); }
.league-hero::after { content: "Ⅰ"; position: absolute; top: -4.5rem; right: 7%; color: rgba(255, 255, 255, .035); font-family: Georgia, serif; font-size: 24rem; line-height: 1; pointer-events: none; }
.league-hero > div:first-child { position: relative; z-index: 1; max-width: 45rem; }
.league-hero .eyebrow { color: var(--gold); }
.league-hero h1 { color: white; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.league-hero p:last-child { max-width: 42rem; margin-bottom: 0; color: #ccddd7; line-height: 1.65; }
.season-orbit { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto; gap: .12rem 1rem; min-width: 11rem; padding: 1.15rem 1.35rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 1rem; background: rgba(7, 30, 24, .52); backdrop-filter: blur(12px); }
.season-orbit span { color: white; font-size: 1.5rem; font-weight: 850; }
.season-orbit small { align-self: center; color: #a9beb7; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.season-orbit i { grid-column: 1 / -1; height: 1px; margin: .45rem 0; background: rgba(255, 255, 255, .13); }
.rating-spotlight { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; width: min(58rem, calc(100% - 2rem)); margin: -1.4rem auto 2.75rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 253, 248, .94); box-shadow: 0 16px 42px rgba(9, 34, 28, .14); }
.rating-position { display: grid; place-items: center; min-width: 5rem; min-height: 5rem; border-radius: .8rem; background: var(--fir); color: white; }
.rating-position small, .rating-score small { color: var(--ink-soft); font-size: .58rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.rating-position small { color: #b9cec7; }
.rating-position strong { color: var(--gold); font-size: 1.8rem; }
.rating-spotlight h2 { margin-bottom: .2rem; }
.rating-spotlight h2 a { text-decoration: none; }
.rating-spotlight h2 a:hover { color: var(--copper); }
.rating-spotlight p { margin: 0; color: var(--ink-soft); font-size: .72rem; }
.rating-score { min-width: 7rem; text-align: right; }
.rating-score strong, .rating-score small { display: block; }
.rating-score strong { color: var(--copper); font-size: 2rem; }
.standings-section { max-width: 68rem; margin: 0 auto; }
.standings-list { display: grid; gap: .55rem; padding: 0; list-style: none; }
.standings-list li { display: grid; grid-template-columns: 2.5rem 3rem minmax(10rem, 1fr) minmax(14rem, .65fr) 5rem; align-items: center; gap: .8rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255, 253, 248, .76); transition: transform .16s ease, border-color .16s ease; }
.standings-list li:hover { transform: translateX(3px); border-color: rgba(201, 104, 53, .45); }
.standings-list li.is-you { border-color: rgba(201, 104, 53, .5); background: linear-gradient(90deg, rgba(201, 104, 53, .11), rgba(255, 253, 248, .76) 42%); }
.standing-rank { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .65rem; color: var(--ink-soft); font-size: .78rem; font-weight: 850; }
.standing-rank.rank-top { background: var(--fir); color: var(--gold); }
.standing-avatar { width: 2.65rem; height: 2.65rem; }
.standing-player, .standing-elo, .standing-record span { display: flex; flex-direction: column; }
.standing-player small, .standing-elo small, .standing-record small { color: var(--ink-soft); font-size: .6rem; }
.standing-record { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.standing-record b { font-size: .78rem; }
.standing-elo { align-items: end; }
.standing-elo strong { font-size: 1.3rem; }
.league-empty { min-height: 32rem; }
.match-entry-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.match-entry-hero > div { max-width: 48rem; }
.match-entry-hero h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
.match-entry-hero > div > p:last-child { color: var(--ink-soft); line-height: 1.65; }
.match-season-chip { padding: .5rem .8rem; border: 1px solid rgba(58, 147, 110, .32); border-radius: 99px; background: rgba(58, 147, 110, .1); color: #287257; font-size: .7rem; font-weight: 800; }
.match-entry-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(19rem, .65fr); gap: 1.25rem; align-items: start; }
.match-form { display: grid; gap: 1.35rem; }
.match-form-section { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.match-form-step { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.match-form-step > span { display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--fir); color: var(--gold); font-weight: 850; }
.match-form-step > div { display: flex; flex-direction: column; gap: .12rem; }
.match-form-step small { color: var(--ink-soft); font-size: .68rem; }
.match-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.match-field-grid .field-wide { grid-column: 1 / -1; }
.match-score-grid { display: grid; grid-template-columns: minmax(10rem, 1fr) 7rem auto 7rem; align-items: end; gap: .7rem; }
.score-field input { min-height: 3.2rem; text-align: center; font-size: 1.25rem; font-weight: 850; }
.score-divider { align-self: center; padding-top: 1rem; color: var(--ink-soft); font-size: 1.5rem; font-weight: 850; }
.check-row { display: flex; align-items: flex-start; gap: .65rem; margin-top: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; cursor: pointer; }
.check-row input { flex: 0 0 auto; margin-top: .2rem; }
.check-row span { display: flex; flex-direction: column; gap: .15rem; }
.check-row small { color: var(--ink-soft); font-size: .65rem; line-height: 1.45; }
.elo-preview { position: sticky; top: 6.5rem; padding: 1.25rem; border: 1px solid rgba(230, 185, 87, .18); border-radius: 1rem; background: radial-gradient(circle at 80% 10%, rgba(230, 185, 87, .13), transparent 12rem), var(--fir); color: white; box-shadow: 0 20px 50px rgba(10, 34, 28, .2); }
.elo-preview .eyebrow { color: var(--gold); }
.elo-preview-empty { min-height: 16rem; display: grid; place-items: center; align-content: center; text-align: center; }
.elo-preview-empty span { color: var(--gold); font-size: 2.2rem; }
.elo-preview-empty p { max-width: 18rem; color: #bed2cb; font-size: .75rem; line-height: 1.55; }
.elo-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; margin: 1.25rem 0; }
.elo-versus > div { display: flex; flex-direction: column; }
.elo-versus > div:last-child { align-items: end; text-align: right; }
.elo-versus small { color: #b7ccc4; font-size: .62rem; }
.elo-versus strong { font-size: 1.8rem; }
.elo-versus span { color: #86d1b2; font-size: .75rem; font-weight: 800; }
.elo-versus span.is-gain, .elo-gain { color: #86d1b2; }
.elo-versus span.is-loss, .elo-loss { color: #ff9f8b; }
.elo-versus b { color: var(--gold); font-size: .7rem; text-transform: uppercase; }
.elo-factors { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.elo-factors span { padding: .65rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: .65rem; background: rgba(255, 255, 255, .05); }
.elo-factors small, .elo-factors strong { display: block; }
.elo-factors small { color: #a9bfb7; font-size: .56rem; }
.elo-factors strong { margin-top: .2rem; font-size: .76rem; }
.elo-preview-note { margin: .8rem 0 0; color: #a9bfb7; font-size: .62rem; line-height: 1.5; }
.elo-preview-error { margin: .75rem 0 0; color: #ffad98; font-size: .68rem; }
.match-detail-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.match-detail-hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.match-detail-hero h1 a { text-decoration: none; }
.match-detail-hero h1 a:hover { color: var(--copper); }
.match-detail-hero h1 span { color: var(--copper); font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.match-detail-hero p:last-child { color: var(--ink-soft); }
.match-status { display: inline-flex; padding: .35rem .6rem; border-radius: 99px; background: #e7e5df; color: var(--ink-soft); font-size: .63rem; font-weight: 800; }
.match-status-pending { background: #f3e5c4; color: #825f13; }
.match-status-confirmed { background: #ddecdf; color: #1d674c; }
.match-status-rejected, .match-status-cancelled { background: #f2dfda; color: #914632; }
.match-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1rem; margin-bottom: 1.25rem; }
.match-scoreboard article { padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 253, 248, .76); }
.match-scoreboard article.is-winner { border-color: rgba(201, 104, 53, .55); box-shadow: inset 0 .2rem 0 var(--copper); }
.match-scoreboard article:nth-of-type(2) { text-align: right; }
.match-scoreboard article > p:not(.eyebrow) { color: var(--ink-soft); }
.match-scoreboard article > div { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.match-scoreboard article > div strong { color: var(--copper); font-size: 3rem; }
.match-scoreboard article > div span { color: var(--ink-soft); font-size: .68rem; }
.match-score-separator { align-self: center; color: var(--ink-soft); font-size: 2rem; font-weight: 850; }
.match-resolution-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr); gap: 1rem; }
.calculation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1rem; }
.calculation-grid span { padding: .75rem; border: 1px solid var(--line); border-radius: .7rem; }
.calculation-grid small, .calculation-grid strong { display: block; }
.calculation-grid small { color: var(--ink-soft); font-size: .58rem; }
.calculation-grid strong { margin-top: .2rem; }
.match-action-card > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.55; }
.match-action-card details { margin-top: .75rem; }
.match-action-card summary { color: var(--danger); font-size: .72rem; font-weight: 750; cursor: pointer; }
.match-action-card details form { display: grid; gap: .55rem; margin-top: .7rem; }
.match-action-card textarea { min-height: 5rem; resize: vertical; }
.match-history-list { display: grid; gap: .6rem; }
.match-history-list > article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: rgba(255, 253, 248, .76); color: var(--ink); }
.match-history-list > article:hover { border-color: rgba(201, 104, 53, .45); }
.match-history-copy { display: flex; min-width: 0; flex-direction: column; gap: .18rem; }
.match-history-copy strong a, .match-history-decks a { text-decoration: none; }
.match-history-copy strong a:hover, .match-history-decks a:hover { color: var(--copper); }
.match-history-copy strong b { color: var(--copper); }
.match-history-decks { display: flex; gap: .35rem; min-width: 0; }
.match-history-copy time, .match-history-decks { color: var(--ink-soft); font-size: .66rem; }
.match-history-open { padding: .48rem .65rem; border: 1px solid var(--line); border-radius: .58rem; color: var(--ink-soft); font-size: .66rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.match-history-open:hover { border-color: var(--copper); color: var(--copper); }
.dashboard-match-list { display: grid; gap: .45rem; }
.dashboard-match-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dashboard-match-list a:last-child { border-bottom: 0; }
.dashboard-match-list small { color: var(--ink-soft); font-size: .62rem; }
.hub-hero { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 2rem; overflow: hidden; min-height: 19rem; padding: clamp(1.5rem, 4.5vw, 3rem); border-radius: 1.4rem; background: radial-gradient(circle at 77% 12%, rgba(230, 185, 87, .2), transparent 18rem), linear-gradient(135deg, #0b2922, #19473b); color: white; box-shadow: 0 22px 58px rgba(8, 31, 25, .2); }
.hub-hero::after { content: ""; position: absolute; width: 23rem; height: 23rem; right: -9rem; bottom: -13rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, .018), 0 0 0 7rem rgba(255, 255, 255, .012); }
.hub-hero > div, .hub-season { position: relative; z-index: 1; }
.hub-hero > div { max-width: 49rem; }
.hub-hero .eyebrow { color: var(--gold); }
.hub-hero h1 { color: white; font-size: clamp(2.8rem, 5.5vw, 5rem); }
.hub-hero > div > p:not(.eyebrow) { max-width: 41rem; color: #c2d6cf; font-size: 1rem; line-height: 1.65; }
.hub-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hub-button-ghost { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: white; }
.hub-button-ghost:hover { background: rgba(255, 255, 255, .12); }
.hub-season { display: flex; align-items: flex-start; gap: .7rem; min-width: 15rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, .13); border-radius: .9rem; background: rgba(6, 27, 22, .5); backdrop-filter: blur(12px); }
.hub-season div { display: flex; flex-direction: column; gap: .15rem; }
.hub-season small, .hub-season span:last-child { color: #a9c0b8; font-size: .62rem; }
.hub-season strong { color: white; }
.hub-live-dot { flex: 0 0 .55rem; width: .55rem; height: .55rem; margin-top: .25rem; border-radius: 50%; background: #72d0a6; box-shadow: 0 0 0 5px rgba(114, 208, 166, .12); }
.hub-stats { position: relative; z-index: 2; width: min(72rem, calc(100% - 2rem)); margin: -1.2rem auto 2.5rem; }
.social-hub-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(20rem, .7fr); gap: 1rem; align-items: start; }
.activity-panel { grid-row: span 2; padding: 1.4rem; }
.feed-live-label { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-soft); font-size: .62rem; }
.feed-live-label i { width: .42rem; height: .42rem; border-radius: 50%; background: #3a936e; box-shadow: 0 0 0 4px rgba(58, 147, 110, .11); }
.activity-stream { display: grid; margin-top: .8rem; }
.activity-item { position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: .85rem; min-height: 5.3rem; padding: .75rem .25rem; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-visual { position: relative; width: 3.2rem; height: 3.2rem; }
.activity-visual > img, .activity-visual > .avatar { width: 3.2rem; height: 3.2rem; border-radius: .72rem; object-fit: cover; }
.activity-member .activity-visual > .avatar, .activity-match .activity-visual > .avatar { border-radius: 50%; }
.activity-visual > b { position: absolute; right: -.3rem; bottom: -.25rem; display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .22rem; border: 2px solid var(--paper); border-radius: 99px; background: var(--fir); color: var(--gold); font-size: .52rem; text-transform: uppercase; }
.activity-deck .activity-visual > b { background: var(--copper); color: white; }
.activity-copy { min-width: 0; }
.activity-copy strong, .activity-copy p, .activity-copy time { display: block; }
.activity-copy strong { font-size: .82rem; }
.activity-copy strong a { text-decoration: none; }
.activity-copy strong a:hover { color: var(--copper); }
.activity-copy p { overflow: hidden; margin: .16rem 0; color: var(--ink-soft); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy p a { color: inherit; font-weight: 700; text-decoration: none; }
.activity-copy p a:hover { color: var(--copper); }
.activity-copy time { color: var(--ink-soft); font-size: .58rem; }
.activity-open { padding: .4rem .55rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--ink-soft); font-size: .62rem; font-weight: 750; text-decoration: none; }
.activity-open:hover { border-color: var(--copper); color: var(--copper); }
.hub-empty { display: grid; place-items: center; min-height: 22rem; align-content: center; text-align: center; }
.hub-empty > span { color: var(--copper); font-size: 2.4rem; }
.hub-empty p { color: var(--ink-soft); }
.league-chat { overflow: hidden; padding: 0; }
.league-chat > .panel-heading { padding: 1.25rem 1.25rem .8rem; }
.chat-count { display: grid; place-items: center; min-width: 1.8rem; height: 1.8rem; border-radius: 99px; background: rgba(201, 104, 53, .1); color: var(--copper); font-size: .65rem; font-weight: 800; }
.chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; padding: 0 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.chat-compose textarea { width: 100%; min-height: 3.25rem; max-height: 8rem; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: .7rem; background: rgba(255, 255, 255, .7); color: var(--ink); resize: vertical; }
.chat-compose .button { align-self: stretch; min-height: 3.25rem; }
.chat-compose .field-errors { grid-column: 1 / -1; }
.chat-stream { display: grid; max-height: 27rem; overflow-y: auto; padding: .45rem 1.25rem 1rem; }
.chat-message { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .65rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.chat-message:last-child { border-bottom: 0; }
.chat-message > div { min-width: 0; }
.chat-message header { display: flex; justify-content: space-between; gap: .5rem; }
.chat-message header a { font-size: .7rem; font-weight: 800; text-decoration: none; }
.chat-message header time { color: var(--ink-soft); font-size: .56rem; white-space: nowrap; }
.chat-message p { margin: .25rem 0 0; font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-message.is-you p { color: var(--moss); }
.chat-empty { display: grid; place-items: center; min-height: 12rem; align-content: center; padding: 1.5rem; text-align: center; }
.chat-empty span { color: var(--copper); font-family: Georgia, serif; font-size: 2.8rem; line-height: .7; }
.chat-empty p { max-width: 14rem; color: var(--ink-soft); font-size: .75rem; }
.hub-ranking { align-self: start; }
.match-player-head { display: flex; align-items: center !important; justify-content: flex-start !important; gap: 1rem !important; }
.match-player-head-reverse { justify-content: flex-end !important; }
.match-player-head > div { min-width: 0; }
.match-player-head p { margin-bottom: .2rem; }
.match-player-head h2 { margin-bottom: .25rem; }
.match-player-head h2 a { text-decoration: none; }
.match-player-head h2 a:hover { color: var(--copper); }
.match-deck-visual { display: block; flex: 0 0 4.3rem; border-radius: .32rem; transition: transform .16s ease; }
.match-deck-visual:hover { transform: translateY(-3px); }
.match-deck-link { color: inherit; font-weight: 750; text-decoration: none; }
.match-deck-link:hover, .match-action-card > p a:hover { color: var(--copper); }
.match-action-card > p a { color: var(--ink); font-weight: 750; }
.match-commander-card { flex: 0 0 4.3rem; width: 4.3rem; aspect-ratio: 488 / 680; object-fit: cover; border-radius: .32rem; box-shadow: 0 9px 22px rgba(8, 31, 25, .2); transform: rotate(-3deg); }
.match-player-head-reverse .match-commander-card { transform: rotate(3deg); }
.match-commander-fallback { display: grid; place-items: center; flex: 0 0 4.3rem; width: 4.3rem; aspect-ratio: 488 / 680; border-radius: .32rem; background: var(--fir); color: var(--gold); font-weight: 850; }
.match-scoreboard article > .match-result-line { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.match-scoreboard article > .match-result-line strong { color: var(--copper); font-size: 3rem; line-height: .85; }
.match-scoreboard article > .match-result-line span { color: var(--ink-soft); font-size: .68rem; }
.match-story { display: grid; grid-template-columns: minmax(12rem, .7fr) minmax(0, 1.3fr); gap: 1rem 2rem; margin-bottom: 1rem; }
.match-story-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.match-story-stats span { padding: .7rem; border: 1px solid var(--line); border-radius: .7rem; }
.match-story-stats small, .match-story-stats strong { display: block; }
.match-story-stats small { color: var(--ink-soft); font-size: .58rem; }
.match-story-stats strong { margin-top: .2rem; font-size: 1.25rem; }
.match-notes { grid-column: 1 / -1; margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--ink-soft); line-height: 1.65; }
.member-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.3rem, 4vw, 2.5rem); border-radius: 1.35rem; background: radial-gradient(circle at 80% 10%, rgba(230, 185, 87, .18), transparent 18rem), var(--fir); color: white; box-shadow: 0 20px 55px rgba(8, 31, 25, .2); }
.member-identity { display: flex; align-items: center; gap: 1.5rem; }
.member-identity h1 { margin-bottom: .45rem; color: white; }
.member-identity p:last-child { max-width: 38rem; margin: 0; color: #bdd0c9; line-height: 1.55; }
.member-avatar { width: 7.5rem; height: 7.5rem; flex: 0 0 7.5rem; }
.member-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; width: min(64rem, calc(100% - 2rem)); margin: -1rem auto 2.6rem; position: relative; }
.member-stat-grid article { padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: rgba(255, 253, 248, .95); box-shadow: 0 12px 30px rgba(8, 31, 25, .09); }
.member-stat-grid small, .member-stat-grid strong { display: block; }
.member-stat-grid small { color: var(--ink-soft); font-size: .6rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.member-stat-grid strong { margin-top: .25rem; font-size: 1.65rem; }
.member-section { margin-top: 2.5rem; }
.member-deck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.member-deck-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 253, 248, .82); text-decoration: none; }
.member-deck-art { position: relative; height: 10rem; overflow: hidden; background: var(--fir-2); }
.member-deck-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.member-deck-card:hover .member-deck-art img { transform: scale(1.035); }
.member-deck-art span { position: absolute; top: .7rem; right: .7rem; padding: .3rem .55rem; border-radius: 99px; background: rgba(14, 46, 40, .88); color: white; font-size: .62rem; font-weight: 800; }
.member-deck-card > div:last-child { padding: 1rem; }
.member-deck-card h3 { font-size: 1.2rem; }
.member-deck-card small { color: var(--ink-soft); }
.profile-match-list { display: grid; gap: .55rem; }
.profile-match-list > article { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255, 253, 248, .78); }
.profile-match-list > article:hover { border-color: rgba(201, 104, 53, .45); }
.profile-match-list > article > div { display: flex; min-width: 0; flex-direction: column; gap: .16rem; }
.profile-match-list strong a, .profile-match-list small a { color: inherit; text-decoration: none; }
.profile-match-list strong a:hover, .profile-match-list small a:hover { color: var(--copper); }
.profile-match-list small, .profile-match-list time { color: var(--ink-soft); font-size: .65rem; }
.profile-match-open { padding: .42rem .55rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--ink-soft); font-size: .62rem; font-weight: 750; text-decoration: none; }
.profile-match-open:hover { border-color: var(--copper); color: var(--copper); }
.profile-match-result { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .65rem; font-weight: 850; }
.profile-match-result.is-win { background: #ddecdf; color: #1d674c; }
.profile-match-result.is-loss { background: #f2dfda; color: #914632; }
@media (max-width: 1100px) {
  .social-hub-grid { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); }
}
@media (max-width: 760px) {
  .league-hero { min-height: 25rem; align-items: stretch; flex-direction: column; }
  .season-orbit { align-self: stretch; }
  .rating-spotlight { grid-template-columns: auto 1fr; }
  .rating-score { grid-column: 2; text-align: left; }
  .standings-list li { grid-template-columns: 2.4rem 2.8rem minmax(0, 1fr) auto; }
  .standing-record { grid-column: 3 / -1; }
  .match-entry-hero, .match-detail-hero { align-items: flex-start; flex-direction: column; }
  .match-entry-layout, .match-resolution-grid { grid-template-columns: 1fr; }
  .elo-preview { position: static; }
  .match-score-grid { grid-template-columns: 1fr 1fr; }
  .match-score-grid > .field:first-child { grid-column: 1 / -1; }
  .score-divider { display: none; }
  .match-scoreboard { grid-template-columns: 1fr; }
  .match-score-separator { display: none; }
  .match-scoreboard article:nth-of-type(2) { text-align: left; }
  .calculation-grid { grid-template-columns: 1fr 1fr; }
  .hub-hero { align-items: flex-start; flex-direction: column; }
  .hub-season { width: 100%; }
  .hub-stats { width: 100%; margin: 1rem 0 1.5rem; }
  .social-hub-grid { grid-template-columns: 1fr; }
  .activity-panel { grid-row: auto; }
  .hub-actions { width: 100%; }
  .hub-actions .button { flex: 1; }
  .match-player-head-reverse { flex-direction: row-reverse; justify-content: flex-end !important; text-align: left; }
  .match-story { grid-template-columns: 1fr; }
  .match-notes { grid-column: auto; }
  .member-hero, .member-identity { align-items: flex-start; flex-direction: column; }
  .member-stat-grid { grid-template-columns: 1fr 1fr; }
  .member-deck-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rating-spotlight { width: calc(100% - 1rem); padding: .8rem; }
  .rating-position { min-width: 4.2rem; min-height: 4.2rem; }
  .standings-list li { grid-template-columns: 2.2rem minmax(0, 1fr) auto; padding: .7rem; }
  .standing-avatar { display: none; }
  .standing-record { grid-column: 2 / -1; }
  .match-field-grid, .match-score-grid { grid-template-columns: 1fr; }
  .match-field-grid .field-wide, .match-score-grid > .field:first-child { grid-column: auto; }
  .calculation-grid { grid-template-columns: 1fr; }
  .match-history-list > article { grid-template-columns: 1fr auto; }
  .match-history-list .match-status { grid-column: 1 / -1; justify-self: start; }
  .match-story-stats { grid-template-columns: 1fr; }
  .member-stat-grid { width: 100%; margin-top: 1rem; }
  .profile-match-list > article { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .profile-match-open { grid-column: 2; justify-self: start; }
  .activity-item { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .activity-open { grid-column: 2; justify-self: start; }
  .chat-compose { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  .rating-spotlight, .standings-list li { background: rgba(18, 42, 36, .94); }
  .standings-list li.is-you { background: linear-gradient(90deg, rgba(201, 104, 53, .17), rgba(18, 42, 36, .94) 45%); }
  .match-season-chip { color: #82c9ac; }
  .match-scoreboard article, .match-history-list > article { background: rgba(18, 42, 36, .94); }
  .match-status-pending { background: #594719; color: #f0cf7c; }
  .match-status-confirmed { background: #24473e; color: #baddd0; }
  .match-status-rejected, .match-status-cancelled { background: #533227; color: #f0b6a7; }
  .member-stat-grid article, .member-deck-card, .profile-match-list > article { background: rgba(18, 42, 36, .94); }
  .activity-visual > b { border-color: #122a24; }
  .chat-compose textarea { background: #0d231e; color: var(--ink); }
}

/* Phase 5: season analytics and league control */
.season-switcher { display: flex; align-items: center; gap: .65rem; width: fit-content; margin: -1rem 0 2rem auto; padding: .45rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255, 253, 248, .82); }
.season-switcher label { padding-left: .45rem; color: var(--ink-soft); font-size: .68rem; font-weight: 750; }
.season-switcher select { min-height: 2.3rem; border: 0; background: transparent; color: var(--ink); font-weight: 750; }
.member-season-switcher { margin: 1rem 0 -1.2rem auto; }
.member-stat-grid-wide { grid-template-columns: repeat(5, 1fr); max-width: 76rem; }
.member-stat-grid article { position: relative; }
.member-stat-grid article > em { display: block; margin-top: .2rem; font-size: .63rem; font-style: normal; font-weight: 800; }
.member-rival { overflow: hidden; font-size: 1.05rem !important; text-overflow: ellipsis; white-space: nowrap; }
.member-rival a { text-decoration: none; }
.member-rival a:hover { color: var(--copper); }
.elo-chart-panel { overflow: hidden; padding: clamp(1rem, 3vw, 1.5rem); }
.elo-chart-wrap { width: 100%; min-height: 230px; }
.elo-chart-wrap canvas { display: block; }
.chart-note { margin: .4rem 0 0; color: var(--ink-soft); font-size: .68rem; }
.member-deck-record { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.member-deck-record span { display: flex; flex-direction: column; }
.member-deck-record b { font-size: .78rem; }
.member-deck-record small { font-size: .56rem; }
.control-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; min-height: 17rem; padding: clamp(1.5rem, 4vw, 2.7rem); border-radius: 1.35rem; background: radial-gradient(circle at 78% 18%, rgba(230, 185, 87, .2), transparent 18rem), var(--fir); color: white; box-shadow: 0 20px 55px rgba(8, 31, 25, .2); }
.control-hero > div:first-child { max-width: 48rem; }
.control-hero h1 { color: white; }
.control-hero > div:first-child > p:last-child { max-width: 42rem; margin: 0; color: #bdd0c9; line-height: 1.6; }
.control-live { display: flex; min-width: 16rem; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: .85rem; background: rgba(7, 31, 25, .52); }
.control-live small, .control-live span { color: #a9c0b8; font-size: .62rem; }
.control-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(19rem, .55fr); gap: 1.25rem; align-items: start; margin-top: 2.5rem; }
.season-control-list { display: grid; gap: .75rem; }
.season-control-card { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 253, 248, .8); }
.season-control-card.is-active { border-color: rgba(201, 104, 53, .5); box-shadow: inset .22rem 0 0 var(--copper); }
.season-control-index { align-self: stretch; display: flex; align-items: center; flex-direction: column; gap: .4rem; color: var(--copper); font-size: .7rem; font-weight: 850; }
.season-control-index i { width: 1px; height: 100%; background: var(--line); }
.season-control-copy > div:first-child { display: flex; align-items: center; gap: .6rem; }
.season-control-copy > div:first-child > small { color: var(--ink-soft); font-size: .62rem; }
.season-control-copy h3 { margin: .65rem 0 .25rem; font-size: 1.35rem; }
.season-control-copy > p { margin-bottom: .8rem; color: var(--ink-soft); font-size: .72rem; }
.season-control-facts { display: flex; gap: .45rem; flex-wrap: wrap; }
.season-control-facts span { min-width: 5.5rem; padding-right: .8rem; border-right: 1px solid var(--line); }
.season-control-facts span:last-child { border-right: 0; }
.season-control-facts b, .season-control-facts small { display: block; }
.season-control-facts b { font-size: .75rem; }
.season-control-facts small { color: var(--ink-soft); font-size: .55rem; }
.season-control-action { min-width: 10rem; text-align: right; }
.season-create-card { position: sticky; top: 6.5rem; }
.season-create-card > p:not(.eyebrow) { color: var(--ink-soft); font-size: .72rem; line-height: 1.55; }
.button-danger { border-color: var(--danger); background: var(--danger); color: white; }
.cancelled-calculation-note { margin: .8rem 0 0; color: var(--danger); font-size: .68rem; }

@media (max-width: 1050px) {
  .member-stat-grid-wide { grid-template-columns: repeat(3, 1fr); }
  .control-layout { grid-template-columns: 1fr; }
  .season-create-card { position: static; }
}
@media (max-width: 760px) {
  .season-switcher { width: 100%; margin: 1rem 0; flex-wrap: wrap; }
  .season-switcher select { flex: 1; }
  .member-stat-grid-wide { grid-template-columns: 1fr 1fr; }
  .control-hero { align-items: flex-start; flex-direction: column; }
  .control-live { width: 100%; }
  .season-control-card { grid-template-columns: 2rem minmax(0, 1fr); }
  .season-control-action { grid-column: 2; text-align: left; }
  .season-control-action .button { width: 100%; }
}
@media (max-width: 420px) {
  .member-stat-grid-wide { grid-template-columns: 1fr 1fr; }
  .member-stat-grid-wide article:last-child { grid-column: 1 / -1; }
  .season-switcher label, .season-switcher select, .season-switcher .button { width: 100%; }
}
@media (prefers-color-scheme: dark) {
  .season-switcher, .season-control-card { background: rgba(18, 42, 36, .92); }
}
