/* The Tournaments, One-shots and Decks lists. Uses the site's own tokens from homepage.css. */

.ix-page { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem 4rem; display: flex; flex-direction: column; gap: 1.25rem; color: var(--text-primary, #f8f9fa); }
.ix-page [hidden] { display: none !important; }
.ix-page *, .ix-page *::before, .ix-page *::after { box-sizing: border-box; }

/* header */
.ix-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ix-title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
.ix-sub { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--text-muted, #8c9ab0); max-width: 52ch; }
.ix-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

/* buttons */
.ix-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.1rem; border-radius: 12px; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.14)); background: transparent; color: var(--text-primary, #f8f9fa); font: inherit; font-size: 0.92rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; }
.ix-btn:hover { background: var(--bg-hover, #21182d); color: #fff; }
.ix-btn:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.ix-btn--primary { background: #7a42ee; border-color: #7a42ee; color: #fff; }
.ix-btn--primary:hover { background: #8a58f2; border-color: #8a58f2; }
.ix-btn--sm { padding: 0 0.85rem; font-size: 0.85rem; }
.ix-btn--icon { width: 44px; padding: 0; }
.ix-btn--block { width: 100%; }
.ix-btn.is-active { background: #2a1c52; border-color: var(--accent-primary, #8f5cff); }
.ix-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* surfaces */
.ix-card { background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); border-radius: 16px; }
.ix-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; }
.ix-cap { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.85rem 1.1rem 0; font-size: 0.78rem; font-weight: 600; color: var(--text-muted, #8c9ab0); }
.ix-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; padding: 0.8rem 1rem 1rem; }
.ix-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; min-width: 0; padding: 1rem 0.5rem; text-align: center; border-radius: 12px; background: var(--bg-dark, #110d18); }
.ix-stat b { max-width: 100%; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-stat--text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 1rem; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; letter-spacing: 0; }
.ix-stat span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.ix-stat small { max-width: 100%; font-size: 0.76rem; line-height: 1.2; color: var(--text-secondary, #c4d1e3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-top .ix-card:first-child { display: flex; flex-direction: column; }
.ix-section { display: flex; flex-direction: column; gap: 0.6rem; padding: 0 1rem 1rem; }
.ix-section + .ix-section { padding-top: 0.2rem; }
.ix-section h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.ix-section h3 em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.ix-form { display: flex; gap: 4px; flex-wrap: wrap; }
.ix-form .ix-rd { width: 26px; height: 26px; font-size: 0.7rem; }
.ix-bydeck { display: flex; flex-direction: column; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.ix-bydeck li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 2.6rem; align-items: center; gap: 0.75rem; font-size: 0.82rem; }
.ix-bydeck .ix-bd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ix-bydeck .ix-bd-name small { margin-left: 0.4rem; font-weight: 400; color: var(--text-muted, #8c9ab0); }
.ix-bydeck .ix-bd-pct { text-align: right; font-weight: 700; }

/* next up */
.ix-next { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.1rem; border-color: rgba(143, 92, 255, 0.5); }
.ix-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-secondary, #d998ff); }
.ix-next h2 { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.ix-next p { margin: 0; font-size: 0.85rem; color: var(--text-muted, #8c9ab0); }
.ix-steps { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ix-step { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: rgba(255, 255, 255, 0.06); color: var(--text-muted, #8c9ab0); }
.ix-step.is-done { background: rgba(34, 197, 94, 0.15); color: #6ee7a8; }

/* filter bar */
.ix-bar { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.9rem; }
.ix-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.ix-search { flex: 1 1 240px; display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.9rem; border-radius: 12px; background: var(--bg-dark, #110d18); border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.12)); color: var(--text-muted, #8c9ab0); }
.ix-search:focus-within { border-color: var(--accent-primary, #8f5cff); }
.ix-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text-primary, #f8f9fa); font: inherit; font-size: 0.92rem; }
.ix-field { flex: 0 1 190px; min-width: 150px; }
.ix-bar .pfs__button { background: var(--bg-dark, #110d18); font-size: 0.88rem; font-weight: 500; }
.ix-bar .form-control { min-height: 44px; border-radius: 12px; background: var(--bg-dark, #110d18); border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.12)); color: var(--text-primary, #f8f9fa); }
.ix-more { display: none; flex-direction: column; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.ix-more.is-open { display: flex; }
.ix-more label { display: block; margin: 0 0 0.3rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.ix-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.ix-seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg-dark, #110d18); border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.12)); border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ix-seg a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; padding: 0 0.85rem; border-radius: 9px; color: var(--text-secondary, #c4d1e3); font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ix-seg a i { font-style: normal; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.ix-seg a.is-active { background: #2a2040; color: #fff; }
.ix-seg a:hover { color: #fff; }
.ix-grow { flex: 1; }
.ix-muted { font-size: 0.8rem; color: var(--text-muted, #8c9ab0); }

/* list */
.ix-month { display: flex; flex-direction: column; gap: 0.6rem; }
.ix-month-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0 0.25rem; margin-top: 0.4rem; }
.ix-month-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.ix-month-head span { font-size: 0.8rem; color: var(--text-muted, #8c9ab0); }
.ix-list { display: flex; flex-direction: column; gap: 0.6rem; }
.ix-tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.5rem; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--text-secondary, #c4d1e3); font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.ix-tag--live { background: rgba(143, 92, 255, 0.2); color: #e4d3ff; }
.ix-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: var(--bg-dark, #110d18); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); flex: none; }
.ix-date b { font-size: 1.2rem; line-height: 1; font-weight: 700; }
.ix-date span { margin-top: 3px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted, #8c9ab0); }

.ix-row-card { position: relative; display: grid; align-items: center; gap: 0.75rem 1rem; padding: 0.85rem 1rem; }
.ix-row-card.is-clickable { cursor: pointer; }
.ix-row-card.is-clickable:hover { border-color: rgba(143, 92, 255, 0.4); }

.ix-trow { grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 1.1fr) 170px 96px 120px auto; grid-template-areas: "date main deck res place wr acts"; }
.ix-trow .ix-date { grid-area: date; }
.ix-trow .ix-main { grid-area: main; }
.ix-trow .ix-deck { grid-area: deck; }
.ix-trow .ix-res { grid-area: res; }
.ix-trow .ix-place { grid-area: place; }
.ix-trow .ix-wr { grid-area: wr; }
.ix-trow .ix-acts { grid-area: acts; }

.ix-main { min-width: 0; }
.ix-name { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.95rem; font-weight: 700; color: var(--text-primary, #f8f9fa); }
.ix-name a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.ix-name a:hover { color: var(--accent-secondary, #d998ff); }
.ix-meta { margin-top: 0.2rem; font-size: 0.78rem; color: var(--text-muted, #8c9ab0); overflow-wrap: anywhere; }
.ix-deck { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; font-size: 0.85rem; font-weight: 600; }
.ix-deck-line { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.ix-deck-line span.ix-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-deck small { font-size: 0.74rem; font-weight: 400; color: var(--text-muted, #8c9ab0); padding-left: 0; }
.ix-mana { display: inline-flex; gap: 2px; flex: none; }
.ix-mana .ms { font-size: 0.95rem; }

.ix-res { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.ix-record { font-size: 0.95rem; font-weight: 800; }
.ix-record em { margin-left: 0.4rem; font-style: normal; font-size: 0.68rem; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.ix-rounds { display: flex; gap: 3px; flex-wrap: wrap; }
.ix-rd { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; font: inherit; font-size: 0.66rem; font-weight: 800; cursor: help; }
.ix-rd:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 1px; }
.ix-rd:hover { filter: brightness(1.25); }
.ix-rd.is-win { background: rgba(34, 197, 94, 0.18); color: #6ee7a8; }
.ix-rd.is-loss { background: rgba(251, 113, 133, 0.18); color: #fda4af; }
.ix-rd.is-draw { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.ix-rd.is-bye { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.ix-pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; line-height: 1.2; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 0.75rem; font-weight: 700; color: var(--text-secondary, #c4d1e3); white-space: nowrap; }
.ix-pill i { font-size: 0.8em; line-height: 1; }
.ix-pill--accent { background: rgba(143, 92, 255, 0.2); color: #e4d3ff; }
.ix-pill--ok { background: rgba(34, 197, 94, 0.15); color: #6ee7a8; }
.ix-pill--warn { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.ix-place small { display: block; margin-top: 0.2rem; font-size: 0.7rem; color: var(--text-muted, #8c9ab0); }
.ix-wr { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 700; }
.ix-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ix-track i { display: block; height: 100%; border-radius: 3px; background: var(--accent-primary, #8f5cff); }
.ix-wr > span { min-width: 2.4rem; text-align: right; }
.ix-none { font-size: 0.8rem; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.ix-acts { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; }

/* kebab menu (Bootstrap dropdown, restyled) */
.ix-menu { min-width: 200px; padding: 0.4rem; border-radius: 12px; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.16)); background: #221a36; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); --bs-dropdown-link-hover-bg: var(--bg-hover, #21182d); }
.ix-menu .dropdown-item, .ix-menu button.dropdown-item { display: flex; align-items: center; gap: 0.65rem; min-height: 44px; padding: 0 0.8rem; border-radius: 8px; color: var(--text-primary, #f8f9fa); font-size: 0.88rem; background: transparent; }
.ix-menu .dropdown-item:hover, .ix-menu .dropdown-item:focus { background: var(--bg-hover, #21182d); color: #fff; }
.ix-menu .dropdown-item i { width: 1.1rem; text-align: center; color: var(--text-muted, #8c9ab0); }
.ix-menu .dropdown-item.is-danger, .ix-menu .dropdown-item.is-danger i { color: #fda4af; }
.ix-menu form { margin: 0; }

/* hover card on a round */
.ix-tip { position: fixed; z-index: 2200; max-width: 260px; padding: 0.7rem 0.85rem; border-radius: 12px; border: 1px solid var(--accent-primary, #8f5cff); background: #1f1830; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary, #c4d1e3); pointer-events: none; }
.ix-tip[hidden] { display: none; }
.ix-tip-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; font-weight: 700; color: #fff; }
.ix-tip-head .is-win { color: #6ee7a8; } .ix-tip-head .is-loss { color: #fda4af; } .ix-tip-head .is-draw { color: #fcd34d; } .ix-tip-head .is-bye { color: #7dd3fc; }
.ix-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; margin: 0; }
.ix-tip dt { font-weight: 500; color: var(--text-muted, #8c9ab0); }
.ix-tip dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.ix-tip p { margin: 0.45rem 0 0; font-style: italic; color: var(--text-muted, #8c9ab0); }

/* Premium mark next to a name */
.ix-premium-badge { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; width: 1.35rem; height: 1.35rem; margin-left: 0.3rem; border-radius: 50%; background: rgba(245, 158, 11, 0.18); color: #fcd34d; font-size: 0.68rem; line-height: 1; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.ix-premium-badge i { font-size: 0.68rem; line-height: 1; }
.ix-premium-badge--label { width: auto; height: auto; padding: 0.28rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
h1 .ix-premium-badge--label { margin-left: 0.5rem; }

/* pagination */
.ix-pager { display: flex; justify-content: center; margin-top: 0.5rem; }

/* floating bar (selection) */
.ix-float { position: sticky; bottom: 1rem; align-self: center; z-index: 30; display: none; align-items: center; gap: 0.9rem; flex-wrap: wrap; max-width: 100%; padding: 0.6rem 0.7rem 0.6rem 1.1rem; border-radius: 16px; border: 1px solid rgba(143, 92, 255, 0.6); background: #241b38; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.ix-float.is-visible { display: flex; }
.ix-float b { font-size: 0.9rem; }

/* empty */
.ix-empty { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 2.5rem 1rem; text-align: center; }
.ix-empty h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.ix-empty p { margin: 0 0 0.6rem; max-width: 42ch; color: var(--text-muted, #8c9ab0); }
.ix-empty i { font-size: 2rem; color: var(--accent-secondary, #d998ff); }

/* --------------------------------------------------------- one-shots */
.ix-orow { grid-template-columns: 24px 56px minmax(0, 2fr) 70px 96px 90px auto; grid-template-areas: "ck rc mu score plat start acts"; }
.ix-orow .ix-ck { grid-area: ck; }
.ix-orow .ix-rc { grid-area: rc; }
.ix-orow .ix-mu { grid-area: mu; }
.ix-orow .ix-score { grid-area: score; }
.ix-orow .ix-plat { grid-area: plat; }
.ix-orow .ix-start { grid-area: start; }
.ix-orow .ix-acts { grid-area: acts; }
.ix-orow.is-selected { border-color: var(--accent-primary, #8f5cff); background: #1d1530; }
.ix-ckb { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 2px solid #6b6080; background: transparent; cursor: pointer; position: relative; flex: none; }
.ix-ckb:checked { background: #7a42ee; border-color: #7a42ee; }
.ix-ckb:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ix-ckb:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.ix-rc { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; flex: none; }
.ix-rc b { font-size: 1.25rem; line-height: 1; }
.ix-rc span { margin-top: 3px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ix-rc.is-win { background: rgba(34, 197, 94, 0.15); color: #6ee7a8; }
.ix-rc.is-loss { background: rgba(251, 113, 133, 0.15); color: #fda4af; }
.ix-rc.is-draw { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.ix-rc.is-bye { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.ix-mu { min-width: 0; }
.ix-vs { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.9rem; font-weight: 700; }
.ix-vs em { font-style: normal; font-size: 0.72rem; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.ix-vs .is-opp { color: var(--text-secondary, #c4d1e3); }
.ix-vs a { color: inherit; text-decoration: none; }
.ix-vs a:hover { color: var(--accent-secondary, #d998ff); }
.ix-note { margin-top: 0.25rem; font-size: 0.78rem; color: var(--text-muted, #8c9ab0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-score { font-size: 1rem; font-weight: 800; text-align: center; }
.ix-start { font-size: 0.78rem; color: var(--text-muted, #8c9ab0); }

/* --------------------------------------------------------- decks */
.ix-quota { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.ix-meter { width: 160px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ix-meter i { display: block; height: 100%; border-radius: 3px; background: var(--accent-primary, #8f5cff); }
.ix-meter.is-warn i { background: #f59e0b; }
.ix-alert { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.8rem 1rem; border-color: rgba(245, 158, 11, 0.4); }
.ix-alert p { margin: 0; font-size: 0.88rem; color: #f3e7cc; }
.ix-alert p b { color: #fcd34d; }
.ix-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--surface-border, rgba(255, 255, 255, 0.12)); }
.ix-tab { min-height: 44px; margin-bottom: -1px; padding: 0 1rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted, #8c9ab0); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.ix-tab.active { color: #fff; border-bottom-color: var(--accent-primary, #8f5cff); }
.ix-tab i { font-style: normal; margin-left: 0.4rem; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.ix-segbtn { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; padding: 0 0.85rem; border: 0; border-radius: 9px; background: transparent; color: var(--text-secondary, #c4d1e3); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ix-segbtn.is-active { background: #2a2040; color: #fff; }
.ix-segbtn i { font-style: normal; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.ix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ix-deck-card { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding: 1.1rem; height: 100%; }
.ix-deck-card.is-selected { border-color: var(--accent-primary, #8f5cff); box-shadow: 0 0 0 1px var(--accent-primary, #8f5cff); }
.ix-deck-card.is-banned { opacity: 0.7; }
.ix-deck-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.ix-deck-head h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ix-deck-head h3 a { color: inherit; text-decoration: none; }
.ix-deck-head h3 a:hover { color: var(--accent-secondary, #d998ff); }
.ix-deck-sub { margin-top: 0.2rem; font-size: 0.78rem; color: var(--text-muted, #8c9ab0); }
.ix-deck-mid { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.ix-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.ix-kv div { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.6rem 0.25rem; border-radius: 10px; background: var(--bg-dark, #110d18); text-align: center; }
.ix-kv b { font-size: 1.05rem; font-weight: 800; line-height: 1; }
.ix-kv span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.ix-curve { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.ix-curve i { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: rgba(143, 92, 255, 0.6); }
.ix-curve-lab { display: flex; gap: 4px; margin-top: 4px; font-size: 0.62rem; color: var(--text-muted, #8c9ab0); }
.ix-curve-lab span { flex: 1; text-align: center; }
.ix-pending-note { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.7rem 0.8rem; border-radius: 10px; background: rgba(245, 158, 11, 0.1); color: #f3e7cc; font-size: 0.8rem; line-height: 1.4; }
.ix-deck-foot { display: flex; gap: 0.5rem; margin-top: auto; }
.ix-deck-foot .ix-btn--primary, .ix-deck-foot .ix-btn--main { flex: 1; }
.ix-deck-foot .ix-btn--sheet { flex: 0 0 auto; }
.ix-select-box { display: none; }
.is-compare-mode .ix-select-box { display: block; }
.ix-public-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0.75rem; align-items: end; }
.ix-public-filters label { display: block; margin: 0 0 0.3rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.ix-spinner { display: none; text-align: center; padding: 2rem; color: var(--text-muted, #8c9ab0); }
.ix-spinner.is-visible { display: block; }

/* --------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
    .ix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ix-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ix-public-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ix-trow { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "date main place" "deck deck deck" "res res wr" "acts acts acts"; }
    .ix-trow .ix-acts { justify-content: stretch; }
    .ix-trow .ix-acts .ix-btn--main { flex: 1; }
    .ix-trow .ix-wr { min-width: 130px; }
    .ix-orow { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "rc mu ck" "score plat start" "acts acts acts"; }
    .ix-orow .ix-acts { justify-content: stretch; }
    .ix-orow .ix-acts .ix-btn--main { flex: 1; }
    .ix-orow .ix-score { text-align: left; }
    .ix-orow .ix-start { text-align: right; }
    .ix-orow .ix-note { white-space: normal; }
    .ix-rd { width: 26px; height: 26px; font-size: 0.72rem; }
    .ix-place .ix-none { display: none; }
}

@media (max-width: 767px) {
    .ix-page { padding: 1rem 0.9rem 4rem; gap: 1rem; }
    .ix-top { grid-template-columns: minmax(0, 1fr); }
    .ix-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 0.7rem 0.8rem 0.9rem; }
    .ix-section { padding: 0 0.8rem 0.9rem; }
    .ix-grid { grid-template-columns: minmax(0, 1fr); }
    .ix-more-grid { grid-template-columns: minmax(0, 1fr); }
    .ix-public-filters { grid-template-columns: minmax(0, 1fr); }
    .ix-field { flex: 1 1 calc(50% - 0.3rem); min-width: 0; }
    .ix-actions { width: 100%; }
    .ix-actions .ix-btn { flex: 1; }
    .ix-float { bottom: 0.75rem; width: 100%; justify-content: space-between; }

    /* A tournament on a phone: the date and how it ended on one line, then the name and venue across the whole width, then the deck and the rounds. */
    .ix-trow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date place" "main main" "deck deck" "res wr" "acts acts"; }
    .ix-trow .ix-date { flex-direction: row; align-items: center; justify-content: center; gap: 0.4rem; width: auto; height: 34px; padding: 0 0.7rem; border-radius: 10px; justify-self: start; }
    .ix-trow .ix-date b { font-size: 0.95rem; }
    .ix-trow .ix-date span { margin-top: 0; font-size: 0.68rem; }
    .ix-trow .ix-place { justify-self: end; text-align: right; }
    .ix-trow .ix-place small { margin-top: 0.15rem; }
}

/* tab panes of the decks page */
.ix-page .tab-pane.active { display: flex; flex-direction: column; gap: 1.25rem; }

/* On a phone the site's quick-action bar is fixed to the bottom: keep the selection bar above it. */
@media (max-width: 991px) {
    .ix-float { bottom: calc(var(--mobile-action-bar-clearance, 5rem) + 0.25rem); }
}

/* a tournament in the log of a public profile */
.ix-prow { grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) 90px 120px 120px auto; grid-template-areas: "date main deck res place wr acts"; }
.ix-prow .ix-date { grid-area: date; }
.ix-prow .ix-main { grid-area: main; }
.ix-prow .ix-deck { grid-area: deck; }
.ix-prow .ix-res { grid-area: res; }
.ix-prow .ix-place { grid-area: place; }
.ix-prow .ix-wr { grid-area: wr; }
.ix-prow .ix-acts { grid-area: acts; }
@media (max-width: 1100px) {
    .ix-prow { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "date main place" "deck deck deck" "res wr wr" "acts acts acts"; }
    .ix-prow .ix-acts { justify-content: stretch; }
    .ix-prow .ix-acts .ix-btn { flex: 1; }
}
@media (max-width: 767px) {
    .ix-prow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date place" "main main" "deck deck" "res wr" "acts acts"; }
    .ix-prow .ix-date { flex-direction: row; align-items: center; justify-content: center; gap: 0.4rem; width: auto; height: 34px; padding: 0 0.7rem; border-radius: 10px; justify-self: start; }
    .ix-prow .ix-date b { font-size: 0.95rem; }
    .ix-prow .ix-date span { margin-top: 0; font-size: 0.68rem; }
    .ix-prow .ix-place { justify-self: end; text-align: right; }
}

/* --------------------------------------------------------- tournament and one-shot detail pages */
.dt-t-win { background: rgba(34, 197, 94, 0.15); color: #6ee7a8; }
.dt-t-loss { background: rgba(251, 113, 133, 0.15); color: #fda4af; }
.dt-t-draw { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.dt-t-bye { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.dt-t-none { background: rgba(255, 255, 255, 0.07); color: var(--text-secondary, #c4d1e3); }

.dt-hero { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.3rem; }
.dt-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.dt-hero-top h1 { margin: 0.4rem 0 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.dt-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.dt-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text-secondary, #c4d1e3); font-size: 0.78rem; font-weight: 600; }
.dt-chip--accent { background: rgba(143, 92, 255, 0.2); color: #e4d3ff; }
.dt-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; }
.dt-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; min-width: 0; padding: 1rem 0.5rem; border-radius: 12px; background: var(--bg-dark, #110d18); text-align: center; }
.dt-tile b { max-width: 100%; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; overflow-wrap: anywhere; }
.dt-tile span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.dt-tile small { font-size: 0.76rem; line-height: 1.2; color: var(--text-secondary, #c4d1e3); }
.dt-label { margin: 0 0 0.5rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.dt-strip { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dt-pip { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; padding: 0.5rem 0.4rem; border-radius: 12px; font-size: 0.68rem; font-weight: 700; text-decoration: none; }
.dt-pip i { font-style: normal; font-size: 1rem; font-weight: 800; }
.dt-pip:hover { filter: brightness(1.2); }
.dt-nav { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--surface-border, rgba(255, 255, 255, 0.12)); overflow-x: auto; scrollbar-width: none; }
.dt-nav a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 1rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-muted, #8c9ab0); font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dt-nav a:hover { color: #fff; }
.dt-nav a i { font-style: normal; font-weight: 500; }
.dt-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.dt-stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.dt-aside { position: sticky; top: 1rem; }
.dt-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin: 0; }
.dt-sec-h h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.dt-sec-h span { font-size: 0.78rem; color: var(--text-muted, #8c9ab0); }
.dt-panel { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.1rem; }
.dt-panel h3 { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.dt-panel--next { border-color: rgba(143, 92, 255, 0.5); }
.dt-panel--next h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.dt-panel--next p { margin: 0; font-size: 0.85rem; color: var(--text-muted, #8c9ab0); }
.dt-kv { display: flex; flex-direction: column; gap: 0.8rem; }
.dt-kv > div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.dt-kv span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.dt-kv b { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }
.dt-kv small { font-size: 0.78rem; color: var(--text-secondary, #c4d1e3); font-weight: 400; }
.dt-kv a { color: var(--accent-secondary, #d998ff); text-decoration: none; }
.dt-kv a:hover { text-decoration: underline; }

/* a round */
.dt-round { display: flex; flex-direction: column; }
.dt-round.is-open { border-color: rgba(143, 92, 255, 0.5); }
.dt-rhead { display: grid; grid-template-columns: 62px 54px minmax(0, 1fr) auto auto; gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; }
.dt-rnum { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 54px; border-radius: 12px; background: var(--bg-dark, #110d18); }
.dt-rnum span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted, #8c9ab0); }
.dt-rnum b { font-size: 1.25rem; line-height: 1; }
.dt-rres { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px; }
.dt-rres b { font-size: 1.25rem; line-height: 1; }
.dt-rres span { margin-top: 3px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dt-vs { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.95rem; font-weight: 700; }
.dt-vs small { font-size: 0.78rem; font-weight: 400; color: var(--text-muted, #8c9ab0); }
.dt-facts { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.dt-fact { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text-secondary, #c4d1e3); font-size: 0.72rem; font-weight: 600; }
.dt-fact--accent { background: rgba(143, 92, 255, 0.2); color: #e4d3ff; }
.dt-score { min-width: 56px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.dt-ract { display: flex; gap: 0.5rem; align-items: center; }
.dt-ract form { margin: 0; }
.dt-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding: 0 1rem 1rem; }
.dt-games[hidden] { display: none; }
.dt-game { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; padding: 0.9rem; border-radius: 14px; background: var(--bg-dark, #110d18); }
.dt-ghead { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.dt-ghead b { font-size: 0.9rem; }
.dt-gres { display: inline-flex; justify-content: center; min-width: 56px; padding: 0.2rem 0.6rem; border-radius: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }
.dt-gfacts { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.dt-note { margin: 0; font-size: 0.82rem; line-height: 1.5; color: #e6dff2; overflow-wrap: anywhere; }
.dt-chiplist { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.dt-card-tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: #cfc5df; font-size: 0.75rem; font-weight: 600; }
.dt-card-tag--in { background: rgba(34, 197, 94, 0.15); color: #6ee7a8; }
.dt-card-tag--out { background: rgba(251, 113, 133, 0.15); color: #fda4af; }
.dt-card-tag--win { background: rgba(143, 92, 255, 0.2); color: #e4d3ff; }

/* analytics */
.dt-analytics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dt-bar { display: flex; flex-direction: column; gap: 0.35rem; }
.dt-bar-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; }
.dt-bar-head > span { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.dt-bar-head small { flex: none; font-weight: 400; color: var(--text-muted, #8c9ab0); }
.dt-empty { margin: 0; font-size: 0.85rem; color: var(--text-muted, #8c9ab0); }

/* one-shot result block */
.dt-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; }
.dt-bigres { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 20px; }
.dt-bigres b { font-size: 2.7rem; line-height: 1; font-weight: 800; }
.dt-bigres span { margin-top: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dt-matchup { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.dt-side { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.dt-side b { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.dt-side small { font-size: 0.78rem; color: var(--text-muted, #8c9ab0); }
.dt-vs-b { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted, #8c9ab0); }
.dt-bigscore { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; text-align: center; line-height: 1; }
.dt-bigscore small { display: block; margin-top: 0.4rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.dt-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.dt-timeline .dt-game { background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); padding: 1rem; }
.dt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

@media (max-width: 1100px) {
    .dt-cols { grid-template-columns: minmax(0, 1fr); }
    .dt-aside { position: static; }
    .dt-games, .dt-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .dt-hero { padding: 1.1rem; }
    .dt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .dt-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .dt-rhead { grid-template-columns: 54px 54px minmax(0, 1fr); grid-template-areas: "rnum rres score" "main main main" "act act act"; gap: 0.7rem; }
    .dt-rhead .dt-rnum { grid-area: rnum; width: 54px; height: 48px; }
    .dt-rhead .dt-rres { grid-area: rres; width: 54px; height: 48px; }
    .dt-rhead .dt-rmain { grid-area: main; }
    .dt-rhead .dt-score { grid-area: score; text-align: right; }
    .dt-rhead .dt-ract { grid-area: act; }
    .dt-rhead .dt-ract .ix-btn { flex: 1; }
    .dt-rhead .dt-ract .ix-btn--icon { flex: 0 0 44px; }
    .dt-games, .dt-timeline, .dt-analytics, .dt-two { grid-template-columns: minmax(0, 1fr); }
    .dt-result { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; }
    .dt-result .dt-bigscore { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 0.7rem; text-align: left; }
    .dt-result .dt-bigscore small { margin-top: 0; }
    .dt-bigres { width: 80px; height: 80px; border-radius: 16px; }
    .dt-bigres b { font-size: 2.1rem; }
    .dt-hero .ix-actions .ix-btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------- community hub, players, trending */
.ix-lrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 0.7rem; align-items: center; padding: 0.65rem 0.8rem; border-radius: 12px; background: var(--bg-dark, #110d18); color: inherit; text-decoration: none; }
a.ix-lrow:hover { background: var(--bg-hover, #21182d); color: inherit; }
a.ix-lrow, a.ix-lrow:hover, a.ix-deck-card, a.ix-deck-card:hover { text-decoration: none; }
a.ix-lrow *, a.ix-deck-card * { text-decoration: none; }
.ix-lmain { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ix-lmain b { font-size: 0.9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-lmain small { font-size: 0.75rem; color: var(--text-muted, #8c9ab0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 0.3rem; border-radius: 9px; background: rgba(255, 255, 255, 0.07); font-size: 0.8rem; font-weight: 800; color: var(--text-secondary, #c4d1e3); }
.ix-rank.is-top { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
a.ix-deck-card { color: inherit; }
a.ix-deck-card:hover { border-color: rgba(143, 92, 255, 0.4); color: inherit; }

.ix-mrow { grid-template-columns: 40px minmax(0, 1.5fr) 100px 100px 80px 90px auto; grid-template-areas: "rank main t m d act acts"; }
.ix-mrow .ix-rank { grid-area: rank; }
.ix-mrow .ix-main { grid-area: main; }
.ix-mrow .ix-mstat--t { grid-area: t; }
.ix-mrow .ix-mstat--m { grid-area: m; }
.ix-mrow .ix-mstat--d { grid-area: d; }
.ix-mrow .ix-mact { grid-area: act; }
.ix-mrow .ix-acts { grid-area: acts; }
.ix-mstat { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center; }
.ix-mstat b { font-size: 1.05rem; font-weight: 800; line-height: 1; }
.ix-mstat span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.ix-mact { display: flex; justify-content: center; }

@media (max-width: 767px) {
    .ix-mrow { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "rank main act" "t m d" "acts acts acts"; }
    .ix-mrow .ix-acts { justify-content: stretch; }
    .ix-mrow .ix-acts .ix-btn { flex: 1; }
    .dt-tiles[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .dt-two[style*="repeat(3"] { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 1100px) {
    .dt-two[style*="repeat(3"] { grid-template-columns: minmax(0, 1fr) !important; }
}

/* player profile */
.ix-track i.is-positive { background: #22c55e; }
.ix-track i.is-stable { background: var(--accent-primary, #8f5cff); }
.ix-track i.is-warning { background: #f59e0b; }
.ix-track i.is-danger { background: #fb7185; }
.ix-pill--bad { background: rgba(251, 113, 133, 0.15); color: #fda4af; }
.ix-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ix-tab-panel { display: none; }
.ix-tab-panel.is-active { display: block; }
.dt-nav button { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 1rem; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted, #8c9ab0); font: inherit; font-size: 0.92rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.dt-nav button:hover { color: #fff; }
.dt-nav a.is-active, .dt-nav button.is-active { color: #fff; border-bottom-color: var(--accent-primary, #8f5cff); }
@media (max-width: 1100px) { .ix-grid--2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .ix-grid--2 .ix-kv[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* the deck analysis tabs: bootstrap sets .active on the tab button, and the older analysis panels take the new surfaces */
.dt-nav button.active { color: #fff; border-bottom-color: var(--accent-primary, #8f5cff); }
.dt-nav button i { font-style: normal; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.dt-nav button i.fas { font-weight: 900; }
.dt-notes { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; color: var(--text-secondary, #c4d1e3); }
.ix-legacy .analytics-panel,
.ix-legacy .chart-panel { padding: 1.1rem; border-radius: 16px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); box-shadow: none; }
.ix-legacy .analytics-panel-header { margin-bottom: 0.9rem; }
.ix-legacy .analytics-panel-heading__icon { width: 2.1rem; height: 2.1rem; flex-basis: 2.1rem; border-radius: 10px; background: rgba(143, 92, 255, 0.18); border: 0; box-shadow: none; color: #e4d3ff; font-size: 0.85rem; }
.ix-legacy .analytics-panel-title { font-size: 0.95rem; font-weight: 700; }
.ix-legacy .analytics-panel-subtitle { font-size: 0.8rem; color: var(--text-muted, #8c9ab0); }
.ix-legacy .analytics-metric-card,
.ix-legacy .analytics-depth-card,
.ix-legacy .analytics-duel-card,
.ix-legacy .analytics-reason-card,
.ix-legacy .matchup-summary-card { padding: 0.9rem; border-radius: 12px; background: var(--bg-dark, #110d18); border: 0; }
.ix-legacy .analytics-metric-icon,
.ix-legacy .matchup-summary-icon { width: 2.2rem; height: 2.2rem; flex-basis: 2.2rem; border-radius: 10px; background: rgba(143, 92, 255, 0.18); color: #e4d3ff; }
.ix-legacy .analytics-metric-label,
.ix-legacy .matchup-summary-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; }
.ix-legacy .analytics-metric-value,
.ix-legacy .analytics-duel-value { font-size: 1.3rem; font-weight: 800; }
.ix-legacy .analytics-banner { border-radius: 12px; border: 0; font-size: 0.88rem; }
.ix-legacy .chart-canvas-shell { border-radius: 12px; background: var(--bg-dark, #110d18); border: 0; }
.ix-legacy .card.glass-effect { background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)) !important; border-radius: 16px; box-shadow: none !important; }
.ix-legacy .table-modern { --bs-table-bg: transparent; }
.ix-legacy .table-modern th { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); border-color: var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.ix-legacy .table-modern td { border-color: var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }

/* --------------------------------------------------------- scout */
.ix-srow { grid-template-columns: minmax(0, 1.8fr) 96px 150px 132px auto; grid-template-areas: "main rec wr form acts"; }
.ix-srow .ix-main { grid-area: main; }
.ix-srow .ix-srec { grid-area: rec; }
.ix-srow .ix-swr { grid-area: wr; }
.ix-srow .ix-sform { grid-area: form; }
.ix-srow .ix-acts { grid-area: acts; }
.ix-sform { display: flex; gap: 3px; flex-wrap: nowrap; }
.ix-sform .ix-rd { width: 24px; height: 24px; }
.ix-srec { font-size: 0.95rem; font-weight: 800; }
.ix-srec em { margin-left: 0.4rem; font-style: normal; font-size: 0.68rem; font-weight: 500; color: var(--text-muted, #8c9ab0); }

.ix-kv--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; }
.sc-mpills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sc-field { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.7rem 0.8rem; border-radius: 10px; background: rgba(143, 92, 255, 0.1); color: #e4d3ff; font-size: 0.8rem; line-height: 1.45; }
.sc-field i { margin-top: 0.15rem; }
.sc-field b.is-up { color: #6ee7a8; }
.sc-field b.is-down { color: #fda4af; }
.sc-detail { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.2rem; padding-top: 0.9rem; border-top: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.sc-hlist { display: flex; flex-direction: column; gap: 0.4rem; }
.sc-hrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.5rem 0.65rem; border-radius: 10px; background: var(--bg-dark, #110d18); color: inherit; text-decoration: none; }
a.sc-hrow:hover { background: var(--bg-hover, #21182d); color: inherit; }
.sc-hmain { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sc-hmain b { font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-hmain small { font-size: 0.72rem; color: var(--text-muted, #8c9ab0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-hgo { font-size: 0.78rem; font-weight: 600; color: var(--accent-secondary, #d998ff); white-space: nowrap; }
.sc-phead { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.dt-aside.sc-aside { position: static; }
.sc-note { position: relative; display: flex; gap: 0.7rem; padding: 0.85rem 0.9rem; border-radius: 12px; background: var(--bg-dark, #110d18); border-left: 3px solid #f59e0b; }
.sc-note > i { margin-top: 0.2rem; color: #fcd34d; font-size: 0.8rem; }
.sc-note__body { min-width: 0; font-size: 0.88rem; line-height: 1.55; color: #e6dff2; overflow-wrap: anywhere; }
.sc-note__body > *:last-child { margin-bottom: 0; }
.sc-note__body a { color: var(--accent-secondary, #d998ff); }
.sc-dlcol { min-width: 0; }
.sc-dlhead { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.sc-dlhead h4 { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.sc-dlhead h4 i { margin-right: 0.4rem; }
.sc-comp { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; margin-bottom: 0.8rem; padding: 0.5rem 0.75rem; border-radius: 10px; background: var(--bg-dark, #110d18); font-size: 0.78rem; color: var(--text-secondary, #c4d1e3); }
.sc-comp i { margin-right: 0.35rem; color: var(--text-muted, #8c9ab0); }
.sc-comp__colors { display: inline-flex; align-items: center; gap: 0.15rem; }
.sc-dltype { display: flex; justify-content: space-between; align-items: baseline; margin: 0.6rem 0 0.3rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.sc-dltype em { font-style: normal; }
.sc-dl { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 1.25rem; }
.sc-dl li { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.2rem 0; break-inside: avoid; font-size: 0.82rem; border-bottom: 1px dashed var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.sc-dl__qty { flex: none; min-width: 1.6em; color: var(--text-muted, #8c9ab0); font-variant-numeric: tabular-nums; }
.sc-dl__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-dl__cost { flex: none; font-size: 0.74rem; }

@media (max-width: 1100px) {
    .ix-srow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main acts" "rec wr" "form form"; }
}
@media (max-width: 767px) {
    .ix-srow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "rec wr" "form acts"; }
    .ix-srow .ix-acts { justify-content: flex-end; }
    .ix-kv--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-dl { columns: 1; }
    .sc-hgo { display: none; }
}
.dt-bar .ix-track, .sc-matchup .ix-track { flex: none; width: 100%; }

/* --------------------------------------------------------- premium page */
.pm-plan { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; }
.pm-plan h2 { margin: 0.25rem 0 0; font-size: 1.15rem; font-weight: 800; }
.pm-plan p { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--text-muted, #8c9ab0); }
.ix-alert.pm-ok { border-color: rgba(34, 197, 94, 0.4); }
.ix-alert.pm-ok p { color: #d6f5e3; }
.pm-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.pm-tool { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; border-radius: 14px; background: var(--bg-dark, #110d18); }
.pm-tool__head { display: flex; align-items: center; gap: 0.75rem; }
.pm-tool__head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.pm-tool__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(143, 92, 255, 0.18); color: #e4d3ff; flex: none; }
.pm-tool p { margin: 0; font-size: 0.84rem; color: var(--text-secondary, #c4d1e3); }
.pm-tool ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--text-muted, #8c9ab0); }
.pm-table-wrap { overflow-x: auto; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pm-table th { padding: 0.5rem 0.75rem 0.5rem 0; text-align: left; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); border-bottom: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.pm-table td { padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.pm-table tr:last-child td { border-bottom: 0; }
.pm-table th:not(:first-child), .pm-table td:not(:first-child) { width: 1%; white-space: nowrap; }
.pm-table .is-yes { color: #6ee7a8; font-weight: 600; }
.pm-table .is-no { color: var(--text-muted, #8c9ab0); }
.pm-table td i { margin-right: 0.4rem; }
.pm-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pm-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted, #8c9ab0); }
.pm-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary, #c4d1e3); }
.pm-list li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.pm-list i { margin-top: 0.2rem; color: #6ee7a8; font-size: 0.78rem; }
.pm-note { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.7rem 0.8rem; border-radius: 10px; font-size: 0.85rem; font-weight: 600; }
.pm-note--ok { background: rgba(34, 197, 94, 0.12); color: #6ee7a8; }
.pm-aside { position: sticky; top: 1rem; }
@media (max-width: 1100px) {
    .pm-aside { position: static; order: -1; }
}
@media (max-width: 767px) {
    .pm-tools { grid-template-columns: minmax(0, 1fr); }
    .pm-table th:first-child, .pm-table td:first-child { white-space: normal; }
}

/* the record keeps its label on one line (12-3-2 W-L-D) and every chip with a hover card can be focused */
.ix-record, .ix-srec { white-space: nowrap; }
[data-ix-tip] { cursor: default; }
[data-ix-tip]:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }

/* ---------- public pages (a player, a deck): the numbers beside the name, one row of actions below ---------- */
.pub-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main stats" "actions actions"; gap: 1rem 1.75rem; align-items: center; padding: 1.3rem 1.5rem; }
.pub-hero__main { grid-area: main; min-width: 0; }
.pub-hero__main h1 { margin: 0.4rem 0 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.pub-hero__stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, 7.5rem); gap: 0.55rem; }
.pub-hero__actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pub-stat { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--bg-dark, #110d18); border: 1px solid rgba(255, 255, 255, 0.08); }
.pub-stat span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #8c9ab0); }
.pub-stat b { font-size: 1.35rem; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.pub-stat small { font-size: 0.74rem; line-height: 1.25; color: var(--text-secondary, #c4d1e3); }
.pub-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pub-gate { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1.3rem 1.5rem; }
.pub-gate__copy h2 { margin: 0.3rem 0 0.4rem; font-size: 1.25rem; font-weight: 800; }
.pub-gate__copy p { margin: 0 0 0.9rem; }
.pub-gate__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
@media (max-width: 991.98px) {
    .pub-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "stats" "actions"; }
    .pub-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .pub-highlights { grid-template-columns: minmax(0, 1fr); }
    .pub-gate { grid-template-columns: minmax(0, 1fr); }
    .pub-hero { padding: 1.1rem; }
    .pub-hero__actions .ix-btn { flex: 1 1 auto; }
}

/* a slim notice on a public deck page (instead of a big "start here" block) */
.pub-notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; }
.pub-notice b { display: block; font-size: 0.95rem; }
.pub-notice p { margin: 0.15rem 0 0; font-size: 0.85rem; }
