:root {
  color-scheme: light;
  --navy: #112653;
  --navy-2: #1d3972;
  --navy-3: #081938;
  --yellow: #ffc21a;
  --yellow-2: #ffda63;
  --ink: #12213d;
  --muted: #687289;
  --page: #eef0f4;
  --panel: #ffffff;
  --line: #d8dde7;
  --soft: #f5f6f8;
  --green: #18a56f;
  --red: #e4424f;
  --market-count: 4;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-surface[hidden] { display: none !important; }

/* Home pubblica */
.public-home {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, #ffc21a1f 0 12%, transparent 31%),
    linear-gradient(180deg, #071936 0 640px, #f3f5f8 640px 100%);
  color: #fff;
}
.public-home[hidden] { display: none; }
.landing-nav, .landing-main, .landing-footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; min-height: 86px; border-bottom: 1px solid #ffffff1c; }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.landing-brand img { border-radius: 14px; box-shadow: 0 8px 24px #0005; }
.landing-brand > span { display: grid; gap: 5px; }
.landing-brand strong { font-size: 22px; letter-spacing: -.04em; line-height: 1; }
.landing-brand small { color: var(--yellow); font-size: 7px; font-weight: 900; letter-spacing: .2em; }
.landing-brand.compact strong { font-size: 17px; }
.landing-brand.compact small { font-size: 6px; }
.landing-brand.compact img { border-radius: 10px; }
.landing-nav-actions, .landing-cta-row { display: flex; align-items: center; gap: 10px; }
.landing-link, .landing-text-link, .landing-document-links button { border: 0; background: transparent; color: inherit; font-weight: 800; }
.landing-link { padding: 10px 13px; color: #d9e3f3; font-size: 12px; }
.landing-link:hover { color: var(--yellow); }
.landing-button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 900; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.landing-button:hover { transform: translateY(-2px); }
.landing-button.primary { background: var(--yellow); box-shadow: 0 10px 28px #0003; color: #12213d; }
.landing-button.primary:hover { background: #ffd24d; box-shadow: 0 14px 34px #0004; }
.landing-button.secondary { border-color: #ffffff38; background: #ffffff0f; color: #fff; }
.landing-button.ghost { border-color: #ffffff45; background: transparent; color: #fff; }
.landing-main { padding: 0; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: 70px; min-height: 554px; padding: 58px 0 72px; }
.landing-hero-copy { position: relative; z-index: 2; }
.landing-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #ffffff28; border-radius: 999px; background: #ffffff0b; color: #dce7f8; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.landing-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #27dd95; box-shadow: 0 0 0 5px #27dd951b, 0 0 16px #27dd9599; }
.landing-hero h1 { margin: 22px 0 18px; font-size: clamp(42px, 5.3vw, 70px); letter-spacing: -.055em; line-height: .98; }
.landing-hero h1 em { color: var(--yellow); font-style: normal; }
.landing-hero-copy > p { max-width: 610px; margin: 0; color: #c7d4e8; font-size: 16px; line-height: 1.72; }
.landing-cta-row { margin-top: 28px; }
.landing-cta-row .primary { min-height: 52px; padding-inline: 24px; }
.landing-trust-list { display: flex; flex-wrap: wrap; gap: 17px; margin: 26px 0 0; padding: 0; list-style: none; color: #b9c8de; font-size: 10px; font-weight: 750; }
.landing-trust-list li { display: flex; align-items: center; gap: 6px; }
.landing-trust-list span { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: #27dd9523; color: #41dda4; font-size: 9px; }
.landing-visual { position: relative; min-height: 430px; perspective: 1200px; }
.visual-orbit { position: absolute; border: 1px solid #ffffff16; border-radius: 50%; }
.orbit-one { inset: 18px -35px 4px 30px; }
.orbit-two { inset: 73px 20px 57px -25px; }
.app-preview { position: absolute; z-index: 2; inset: 42px 25px 30px 35px; overflow: hidden; transform: rotateY(-6deg) rotateX(2deg); border: 1px solid #ffffff38; border-radius: 25px; background: #f6f8fb; box-shadow: 0 38px 70px #020a1e8c; color: var(--ink); }
.app-preview header { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; background: var(--navy); color: #fff; }
.app-preview header span { display: flex; align-items: center; gap: 9px; }
.app-preview header img { border-radius: 9px; }
.app-preview header b { font-size: 14px; }
.app-preview header i { padding: 5px 8px; border-radius: 999px; background: #e4424f; color: #fff; font-size: 8px; font-style: normal; font-weight: 950; letter-spacing: .1em; }
.preview-score { display: grid; justify-items: center; gap: 13px; margin: 16px; padding: 25px 18px 20px; border-radius: 15px; background: linear-gradient(145deg, #fff, #e9eef6); box-shadow: inset 0 0 0 1px #dce2eb; }
.preview-score > small { color: #69768c; font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.preview-score > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; text-align: center; }
.preview-score span { font-size: 10px; font-weight: 850; }
.preview-score strong { color: var(--navy); font-size: 28px; font-variant-numeric: tabular-nums; }
.preview-score em { padding: 5px 9px; border-radius: 999px; background: #e9f8f2; color: #087e54; font-size: 8px; font-style: normal; font-weight: 900; }
.preview-markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 16px; }
.preview-markets > span { display: flex; align-items: center; justify-content: space-between; padding: 11px; border: 1px solid #d7dde7; border-radius: 8px; background: #fff; }
.preview-markets > span.active { border-color: #dca800; background: var(--yellow); }
.preview-markets small { color: #6f7a8c; font-size: 9px; }
.preview-markets b { font-size: 12px; }
.preview-ticket { display: flex; align-items: center; justify-content: space-between; margin: 13px 16px 16px; padding: 13px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 10px; }
.preview-ticket strong { color: var(--yellow); font-size: 15px; }
.visual-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid #ffffff47; border-radius: 13px; background: #102858e8; box-shadow: 0 15px 35px #0005; backdrop-filter: blur(10px); }
.visual-card > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--yellow); color: var(--navy); font-size: 18px; font-weight: 950; }
.visual-card > div { display: grid; gap: 3px; }
.visual-card small { color: #9fb2d0; font-size: 7px; font-weight: 900; letter-spacing: .11em; }
.visual-card strong { font-size: 10px; }
.visual-ranking { top: 6px; right: -10px; }
.visual-safe { bottom: 2px; left: -12px; }
.visual-safe > span { background: #ec4956; color: #fff; font-size: 13px; }
.landing-purpose, .landing-how, .landing-safety, .landing-legal-summary, .landing-final-cta { color: var(--ink); }
.landing-purpose { padding: 76px 0 82px; }
.section-kicker { color: #b17d00; font-size: 9px; font-weight: 950; letter-spacing: .16em; }
.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr); align-items: end; gap: 70px; margin: 12px 0 32px; }
.section-heading h2, .landing-how h2, .landing-safety h2, .landing-legal-summary h2, .landing-final-cta h2 { margin: 0; color: var(--navy); font-size: clamp(29px, 4vw, 45px); letter-spacing: -.045em; line-height: 1.06; }
.section-heading p, .how-copy > p, .safety-copy > p, .landing-legal-summary > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature-grid article { position: relative; min-height: 250px; padding: 22px; overflow: hidden; border: 1px solid #dce1e9; border-radius: 17px; background: #fff; box-shadow: 0 8px 25px #1026530d; }
.feature-grid article::after { content: ""; position: absolute; right: -42px; bottom: -48px; width: 130px; height: 130px; border-radius: 50%; background: #ffc21a12; }
.feature-number { position: absolute; top: 17px; right: 18px; color: #c7cdd7; font-size: 10px; font-weight: 900; }
.feature-icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 37px; border-radius: 14px; background: var(--navy); color: var(--yellow); font-size: 18px; font-weight: 950; }
.feature-grid h3 { margin: 0 0 9px; color: var(--navy); font-size: 17px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.landing-how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1fr); gap: 90px; padding: 75px; border-radius: 27px; background: var(--navy); color: #fff; box-shadow: 0 25px 60px #1126532e; }
.landing-how .section-kicker { color: var(--yellow); }
.landing-how h2 { margin: 13px 0 17px; color: #fff; }
.how-copy > p { color: #c1cde0; }
.landing-text-link { margin-top: 21px; padding: 0 0 4px; border-bottom: 1px solid var(--yellow); color: var(--yellow); font-size: 11px; }
.how-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.how-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; min-height: 76px; }
.how-steps li:not(:last-child)::after { content: ""; position: absolute; top: 56px; bottom: -20px; left: 21px; width: 1px; background: #ffffff23; }
.how-steps li > b { display: grid; z-index: 1; width: 44px; height: 44px; place-items: center; border: 1px solid #ffffff31; border-radius: 50%; background: #193469; color: var(--yellow); font-size: 12px; }
.how-steps li > div { display: grid; gap: 5px; }
.how-steps strong { font-size: 14px; }
.how-steps span { color: #aebed6; font-size: 10px; line-height: 1.4; }
.landing-safety { display: grid; grid-template-columns: 250px 1fr; align-items: center; gap: 74px; padding: 92px 55px; }
.safety-badge { display: grid; width: 220px; height: 220px; place-items: center; align-content: center; gap: 5px; border: 15px solid #fff; border-radius: 50%; outline: 3px solid #e4424f; background: #e4424f; box-shadow: 0 20px 45px #e4424f2c, inset 0 0 0 3px #fff; color: #fff; }
.safety-badge strong { font-size: 62px; letter-spacing: -.08em; line-height: 1; }
.safety-badge span { font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.safety-copy h2 { margin: 12px 0 15px; }
.safety-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.safety-points > span { display: grid; gap: 4px; padding-left: 11px; border-left: 3px solid var(--yellow); }
.safety-points b { color: var(--navy); font-size: 10px; }
.safety-points small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.landing-legal-summary { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(320px, 1fr) auto; align-items: center; gap: 45px; padding: 32px 36px; border: 1px solid #dce1e9; border-radius: 18px; background: #fff; }
.landing-legal-summary h2 { margin-top: 7px; font-size: 25px; }
.landing-document-links { display: grid; gap: 7px; justify-items: start; }
.landing-document-links button { padding: 3px 0; border-bottom: 1px solid #9aa7ba; color: var(--navy-2); font-size: 10px; }
.landing-final-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin: 48px 0 74px; padding: 28px 32px; border-radius: 20px; background: linear-gradient(115deg, #ffcb35, #ffe393); box-shadow: 0 18px 40px #8261001e; }
.landing-final-cta img { border-radius: 18px; box-shadow: 0 9px 22px #57410033; }
.landing-final-cta small { color: #705300; font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.landing-final-cta h2 { margin-top: 4px; font-size: 28px; }
.landing-final-cta .primary { background: var(--navy); color: #fff; }
.landing-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; padding: 27px 0 38px; border-top: 1px solid #ced4df; color: var(--muted); }
.landing-footer .landing-brand { color: var(--navy); }
.landing-footer p { margin: 0; font-size: 9px; text-align: center; }
.landing-footer > small { font-size: 8px; text-align: right; }

@media (max-width: 920px) {
  .landing-hero { grid-template-columns: 1fr; gap: 15px; padding-top: 45px; }
  .landing-hero-copy { text-align: center; }
  .landing-hero-copy > p { margin-inline: auto; }
  .landing-eyebrow, .landing-cta-row, .landing-trust-list { justify-content: center; }
  .landing-visual { width: min(570px, 100%); margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-how { grid-template-columns: 1fr; gap: 35px; padding: 50px; }
  .landing-safety { gap: 40px; padding-inline: 25px; }
  .landing-legal-summary { grid-template-columns: 1fr 1.5fr; }
  .landing-document-links { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; }
}

@media (max-width: 640px) {
  .landing-nav, .landing-main, .landing-footer { width: min(100% - 28px, 1180px); }
  .landing-nav { min-height: 72px; }
  .landing-nav .landing-brand small, .landing-nav .landing-link { display: none; }
  .landing-nav .landing-brand img { width: 42px; height: 42px; }
  .landing-nav-actions { gap: 5px; }
  .landing-button { padding-inline: 15px; }
  .landing-hero { min-height: auto; padding: 48px 0 55px; }
  .landing-hero h1 { font-size: clamp(38px, 12vw, 55px); }
  .landing-hero-copy > p { font-size: 14px; }
  .landing-cta-row { display: grid; grid-template-columns: 1fr; }
  .landing-trust-list { display: grid; justify-content: start; width: fit-content; margin-inline: auto; }
  .landing-visual { min-height: 350px; }
  .app-preview { inset: 34px 3px 30px 7px; transform: none; }
  .visual-ranking { right: -7px; }
  .visual-safe { left: -5px; }
  .preview-score { padding-inline: 9px; }
  .preview-score > div { gap: 5px; }
  .landing-purpose { padding: 60px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 215px; }
  .feature-icon { margin-bottom: 24px; }
  .landing-how { margin-inline: -2px; padding: 38px 24px; border-radius: 20px; }
  .landing-safety { grid-template-columns: 1fr; justify-items: center; padding: 70px 0; text-align: center; }
  .safety-badge { width: 180px; height: 180px; }
  .safety-badge strong { font-size: 50px; }
  .safety-points { grid-template-columns: 1fr; text-align: left; }
  .landing-legal-summary { grid-template-columns: 1fr; gap: 18px; padding: 27px 24px; }
  .landing-document-links { grid-column: auto; grid-auto-flow: row; }
  .landing-final-cta { grid-template-columns: 1fr; justify-items: center; padding: 28px 22px; text-align: center; }
  .landing-footer { grid-template-columns: 1fr; justify-items: center; gap: 15px; text-align: center; }
  .landing-footer > small { text-align: center; }
}

.install-banner {
  position: fixed;
  z-index: 40;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr) auto 28px;
  gap: 12px;
  align-items: center;
  width: min(620px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid #ffffff2b;
  border-radius: 14px;
  background: linear-gradient(125deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: 0 14px 40px #07132d66;
}
.install-banner[hidden] { display: none; }
.install-banner img { border-radius: 13px; box-shadow: 0 5px 15px #0005; }
.install-banner > div { display: grid; gap: 4px; }
.install-banner strong { font-size: 14px; }
.install-banner span { color: #d2dced; font-size: 11px; line-height: 1.45; }
.install-banner .primary-button { width: auto; min-width: 112px; margin: 0; white-space: nowrap; }
.install-close { align-self: start; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 23px; line-height: 1; }

.app-header { background: var(--navy); color: white; box-shadow: 0 3px 12px #0916303d; }
.header-row, .main-nav, .sport-tabs, main, footer { width: min(1600px, calc(100% - 28px)); margin-inline: auto; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 17px; background: #fff; box-shadow: 0 7px 18px #07132d80; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: clamp(20px, 2.5vw, 30px); letter-spacing: -.05em; }
.brand-copy small { margin-top: 7px; color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .24em; }
.connection-pill { display: flex; align-items: center; gap: 11px; max-width: 440px; padding: 10px 14px; border: 1px solid #ffffff24; border-radius: 12px; background: #0617357d; }
.connection-pill > span:last-child { display: grid; gap: 3px; }
.connection-pill strong { max-width: 390px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.connection-pill small { color: #b9c7df; font-size: 11px; }
.header-utility { display: flex; min-width: 0; align-items: center; gap: 9px; }
.header-primary-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.header-action { position: relative; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border: 1px solid #ffffff24; border-radius: 11px; background: #ffffff0b; color: #e4ebf6; font-size: 11px; font-weight: 850; white-space: nowrap; }
.header-action:hover { border-color: #ffffff45; background: #ffffff16; }
.header-action:focus-visible { outline: 3px solid #ffc21a55; outline-offset: 2px; }
.header-action .nav-icon { font-size: 19px; }
.header-action b { display: grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 10px; background: #ffffff1c; font-size: 9px; }
.status-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #8793a8; box-shadow: 0 0 0 4px #8793a824; }
.status-dot.live, .status-dot.connected { background: #27dd95; box-shadow: 0 0 0 4px #27dd952b, 0 0 14px #27dd95a8; }
.status-dot.error { background: #ff5965; }
.status-dot.stale { background: var(--yellow); }

.main-nav { display: flex; align-items: stretch; min-height: 66px; }
.nav-item { position: relative; display: inline-flex; flex: 0 0 132px; align-items: center; justify-content: center; gap: 8px; border: 0; border-top: 1px solid #ffffff0f; background: transparent; color: #dae3f3; font-weight: 700; }
.main-nav > a.nav-item { text-decoration: none; }
.external-nav-item { color: var(--yellow); }
.nav-item::after { content: ""; position: absolute; right: 20px; bottom: 0; left: 20px; height: 4px; border-radius: 4px 4px 0 0; background: transparent; }
.nav-item:hover { background: #ffffff0b; }
.nav-item.active { color: var(--yellow); }
.nav-item.active::after { background: var(--yellow); }
.nav-icon { font-size: 21px; line-height: 1; }
.nav-item b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ffffff1c; font-size: 10px; }
.nav-action { margin-left: auto; }
.nav-action.enabled { color: #54e4ad; }
.account-button.signed-in { color: var(--yellow); }
.account-button #balance-badge { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sports-ribbon { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 15px #0e214114; }
.sport-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; }
.sport-tab { position: relative; display: grid; grid-template-columns: 30px auto; grid-template-rows: 22px 20px; align-items: center; min-width: 110px; min-height: 77px; padding: 10px 13px; border: 0; border-right: 1px solid #e6e8ed; background: #fff; color: #2e374b; text-align: left; }
.sport-tab.game-tab { min-width: 132px; text-decoration: none; background: #112653; color: #fff; }
.sport-tab.game-tab:hover { background: #19366f; }
.sport-tab.game-tab::after { background: var(--yellow); }
.sport-tab:hover { background: #f7f8fa; }
.sport-tab.active { background: var(--yellow); color: #10182a; }
.sport-tab::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: transparent; }
.sport-tab.active::after { background: var(--navy); }
.sport-tab .sport-glyph { grid-row: 1 / 3; display: grid; place-items: center; width: 27px; height: 27px; }
.sport-glyph svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sport-glyph.all { font-size: 27px; }
.sport-tab strong { align-self: end; font-size: 13px; }
.sport-tab > span:last-child { align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }

main { padding: 16px 0 30px; }
.community-intro { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); gap: 28px; align-items: center; margin-bottom: 14px; padding: 17px 20px; border-radius: 9px; background: linear-gradient(125deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: 0 7px 22px #11265322; }
.community-intro > div { display: grid; gap: 5px; }
.community-intro small { color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.community-intro strong { font-size: clamp(18px, 2.2vw, 27px); }
.community-intro p { margin: 0; color: #d2dced; font-size: 12px; line-height: 1.6; }
.fanta-leagues-view[hidden], #live-view[hidden], #sports-ribbon[hidden] { display: none; }
.fanta-leagues-view { min-height: 70vh; }
.fanta-leagues-hero { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(320px, 1.15fr); gap: 32px; align-items: center; margin-bottom: 14px; padding: 28px 30px; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 90% 20%, #ffc21a33 0 16%, transparent 17%), linear-gradient(125deg, #081938, #1d3972); box-shadow: 0 12px 34px #1126532b; color: #fff; }
.fanta-leagues-hero > div { display: grid; gap: 7px; }
.fanta-leagues-hero small { color: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.fanta-leagues-hero h1 { margin: 0; font-size: clamp(25px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.04; }
.fanta-leagues-hero p { margin: 0; color: #d5dfef; font-size: 13px; line-height: 1.7; }
.fanta-league-filters { display: flex; gap: 7px; margin: 17px 0; overflow-x: auto; scrollbar-width: thin; }
.fanta-league-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 41px; padding: 8px 14px; border: 1px solid #cbd2de; border-radius: 999px; background: #fff; color: #354158; font-size: 12px; font-weight: 850; white-space: nowrap; }
.fanta-league-filters button:hover { border-color: var(--navy-2); }
.fanta-league-filters button.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.fanta-league-filters b { display: grid; min-width: 22px; height: 22px; padding-inline: 5px; place-items: center; border-radius: 999px; background: #e9edf4; color: var(--navy); font-size: 9px; }
.fanta-league-filters button.active b { background: var(--yellow); }
.fanta-leagues-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fanta-league-card { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) 18px; gap: 12px; align-items: center; min-width: 0; min-height: 116px; padding: 15px; overflow: hidden; border: 1px solid #d8dde7; border-radius: 13px; background: #fff; color: var(--ink); box-shadow: 0 4px 14px #1126530c; text-align: left; transition: translate .16s ease, border-color .16s ease, box-shadow .16s ease; }
.fanta-league-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--fanta-brand); }
.fanta-league-card:hover { translate: 0 -3px; border-color: color-mix(in srgb, var(--fanta-brand), #fff 35%); box-shadow: 0 11px 26px #1126531e; }
.fanta-league-card:focus-visible { outline: 3px solid #1d39723d; outline-offset: 2px; }
.fanta-logo { display: grid; width: 62px; height: 62px; padding: 5px; place-items: center; border-radius: 17px 7px 17px 7px; background: var(--fanta-brand, var(--navy)); box-shadow: inset 0 0 0 1px #ffffff33, 0 5px 13px color-mix(in srgb, var(--fanta-brand, var(--navy)), transparent 70%); color: #fff; font-size: 15px; font-weight: 950; letter-spacing: -.03em; text-align: center; }
.fanta-logo b, .fanta-logo img { grid-area: 1 / 1; }
.fanta-logo b { color: #fff; font-size: inherit; font-weight: 950; }
.fanta-logo img { position: relative; z-index: 1; width: 44px; height: 44px; padding: 5px; border-radius: 11px; background: #fff; object-fit: contain; box-shadow: 0 2px 8px #0002; }
.fanta-league-copy { display: grid; gap: 4px; min-width: 0; }
.fanta-league-copy small { color: var(--fanta-brand); font-size: 8px; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.fanta-league-copy strong { font-size: 14px; line-height: 1.18; }
.fanta-league-copy > span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.fanta-league-arrow { color: #a2aaba; font-size: 26px; font-weight: 300; }
.fanta-league-dialog { width: min(660px, calc(100vw - 24px)); }
.fanta-league-waiting { display: grid; justify-items: center; gap: 13px; padding: 35px 34px 32px; text-align: center; }
.fanta-logo.large { width: 92px; height: 92px; border-radius: 25px 9px 25px 9px; font-size: 21px; }
.fanta-logo.large img { width: 68px; height: 68px; padding: 7px; border-radius: 16px; }
.authorization-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #fff5ce; color: #745500; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.authorization-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px #ffc21a2e; }
.fanta-league-waiting h2 { max-width: 520px; margin: 3px 0 0; color: var(--navy); font-size: clamp(23px, 4vw, 34px); line-height: 1.12; }
.fanta-league-waiting p { margin: 0; color: var(--muted); font-size: 15px; }
.fanta-league-waiting .primary-button { width: min(320px, 100%); margin-top: 10px; }
.fanta-team-request-form { display: grid; width: min(520px, 100%); gap: 11px; margin-top: 8px; padding: 18px; border: 1px solid #d8dde7; border-radius: 12px; background: #f7f9fc; text-align: left; }
.fanta-team-request-form > label:first-child { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 850; }
.fanta-team-request-form input[type="text"] { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #bfc7d4; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.fanta-team-request-form input[type="text"]:focus { outline: 3px solid #1d39721f; border-color: var(--navy-2); }
.fanta-search-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.45; }
.fanta-search-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--navy); }
.fanta-team-request-form .fanta-team-privacy { color: var(--muted); font-size: 10px; line-height: 1.5; }
.fanta-team-request-form .form-message { min-height: 18px; font-size: 11px; text-align: center; }
.fanta-team-request-form .primary-button { justify-self: center; margin-top: 0; }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.search-box { position: relative; display: block; width: min(480px, 100%); }
.search-icon { position: absolute; top: 50%; left: 13px; translate: 0 -52%; color: var(--navy); font-size: 25px; line-height: 1; }
.search-box input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; color: var(--ink); }
.search-box input:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px #1d39721a; }
.tool-actions { display: flex; flex: 1 1 540px; align-items: center; justify-content: flex-end; gap: 18px; }
.display-options { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.display-options[hidden] { display: none; }
.display-toggle { display: grid; grid-template-columns: 36px auto; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.display-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.toggle-track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #aab0bb; box-shadow: inset 0 0 0 1px #737b89; transition: background .18s ease; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0004; transition: translate .18s ease; }
.display-toggle input:checked + .toggle-track { background: var(--navy-2); }
.display-toggle input:checked + .toggle-track::after { translate: 16px 0; }
.display-toggle input:focus-visible + .toggle-track { outline: 3px solid #1d397233; outline-offset: 2px; }
.toggle-copy { display: grid; gap: 1px; }
.toggle-copy strong { color: var(--ink); font-size: 11px; line-height: 1.2; }
.toggle-copy small { color: var(--muted); font-size: 9px; line-height: 1.2; }
.live-summary { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.live-summary i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #e4424f19; }
.live-summary.prematch i { background: var(--navy-2); box-shadow: 0 0 0 4px #1d397224; }
.live-summary strong { color: var(--ink); font-size: 18px; }

.changes { display: grid; gap: 7px; margin: 10px 0; }
.changes:empty { display: none; }
.change { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-left: 4px solid var(--yellow); border-radius: 5px; background: #fff5c9; color: #5a4700; box-shadow: 0 1px 4px #15274b0e; font-size: 12px; }
.change.score { border-color: var(--red); background: #fff0f1; color: #8a2730; }
.change.availability { border-color: #3b72c4; background: #eef5ff; color: #244f8e; }

.market-bar { display: grid; grid-template-columns: minmax(360px, 1.25fr) minmax(0, 4fr); gap: 0; min-width: 0; margin: 0 0 7px; border: 1px solid #d4d7dd; background: #e1e3e7; }
.market-bar-label { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 14px; border-right: 1px solid #cdd1d8; background: var(--yellow); text-align: center; }
.market-bar-label span { font-weight: 900; }
.market-bar-label small { display: none; }
.market-selectors { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 8px; align-items: center; padding: 8px; }
.market-selectors label { display: grid; gap: 3px; min-width: 0; }
.market-selectors label > span { color: #6a7180; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.market-selectors select { width: 100%; height: 34px; min-width: 0; border: 1px solid #afb5c0; border-radius: 2px; background: white; color: #11192c; font-size: 11px; font-weight: 750; }
.no-markets { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-align: center; }

.league-list { display: grid; gap: 8px; }
.league { min-width: 0; background: #fff; box-shadow: 0 2px 7px #11265312; }
.league-head { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 9px; background: var(--navy); color: #fff; }
.league-head > span { display: grid; place-items: center; width: 20px; height: 20px; color: var(--yellow); }
.league-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.league-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.league-head small { margin-left: auto; color: #bfcbe0; font-size: 10px; text-transform: uppercase; }
.league-rows { display: grid; }
.event-row { position: relative; display: grid; grid-template-columns: minmax(360px, 1.25fr) repeat(var(--market-count), minmax(0, 1fr)); min-width: 0; border-bottom: 1px solid var(--line); background: #fff; }
.event-row:last-child { border-bottom: 0; }
.event-row.recent::before { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 4px; background: var(--yellow); animation: recent-pulse .7s ease-out; }
.event-row.prematch .match-time strong { color: var(--navy-2); }
.match-cell { display: grid; grid-template-columns: 28px 96px minmax(0, 1fr) 38px; align-items: center; min-width: 0; min-height: 72px; padding: 7px 8px; border-right: 6px solid var(--page); background: #f8f9fb; }
.favorite { width: 28px; height: 34px; padding: 0; border: 0; background: transparent; color: #9aa2b2; font-size: 21px; }
.favorite.active { color: #e5a900; }
.match-time { display: grid; justify-items: center; gap: 2px; padding-right: 7px; border-right: 1px solid #dfe2e8; }
.match-time strong { color: var(--red); font-size: 12px; }
.match-time span { max-width: 90px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.event-italian-time { color: #4f5968; font-size: 7px; font-style: normal; font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; }
.event-countdown { display: block; margin-top: 2px; color: #a56f00; font-size: 7px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.2; text-align: center; white-space: nowrap; }
.event-countdown[data-countdown-kind="end"] { color: var(--red); }
.bet-countdown { width: fit-content; margin: 3px 0; padding: 4px 7px; border-radius: 9px; background: #fff2c2; font-size: 9px; }
.bet-countdown[data-countdown-kind="end"] { background: #ffe7e9; }
.teams { display: grid; gap: 7px; min-width: 0; padding: 0 11px; }
.teams span { display: flex; justify-content: space-between; gap: 10px; min-width: 0; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.teams b { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.market-total { justify-self: end; color: #53617a; font-size: 10px; font-weight: 800; }
.market-cell { display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 72px; padding: 7px 5px; border-right: 1px solid var(--line); background: #fff; }
.market-cell:last-child { border-right: 0; }
.market-cell > small { display: block; color: #757d8d; font-size: 9px; font-weight: 800; text-align: center; }
.market-cell.unavailable { place-items: center; background: #f5f6f8; color: #a2a8b3; }
.prices { display: flex; align-items: stretch; gap: 3px; min-width: 0; }
.price { display: grid; flex: 1 1 0; place-items: center; min-width: 0; min-height: 42px; padding: 3px 2px; border: 1px solid #e0e3e9; border-radius: 2px; background: #f8f9fb; }
.price:not(:disabled):hover { border-color: var(--navy-2); background: #eef3ff; box-shadow: 0 0 0 2px #1d39721a; }
.price em { max-width: 100%; overflow: hidden; color: #687186; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.price b { color: #111a2e; font-size: 12px; font-variant-numeric: tabular-nums; }
.price.locked { background: #eef0f3; opacity: .62; }
.price.selected { outline: 3px solid #0a8f62; outline-offset: -2px; background: #e6f8f1; }
.price.selected b { background: #0a8f62; color: #fff; }
.price:disabled { cursor: not-allowed; }
.price.locked b { color: #657084; }
.price.value-changed, .teams b.value-changed { color: #101629; background: var(--yellow); animation: value-blink .42s steps(2, end) 8; }
.teams b.value-changed { margin: -3px; padding: 3px; border-radius: 3px; }

.empty { padding: 80px 16px; color: var(--muted); text-align: center; }
footer { padding: 18px 0 38px; color: #70798b; font-size: 11px; line-height: 1.6; text-align: center; }
footer strong { color: var(--navy); }
footer p { margin: 0 auto 10px; }
footer > small { display: block; margin-top: 7px; color: #8b93a2; font-size: 9px; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 15px; }
.legal-links button { padding: 0; border: 0; border-bottom: 1px solid #8793a8; background: transparent; color: var(--navy-2); font-size: 10px; font-weight: 750; }

.bet-slip { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 36px); overflow: auto; border: 1px solid #0b1d43; border-radius: 12px; background: #fff; box-shadow: 0 22px 65px #06142d66; }
.bet-slip-launcher { position: fixed; right: 18px; bottom: 18px; z-index: 29; display: grid; min-width: 150px; gap: 2px; padding: 10px 14px; border: 1px solid #071936; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 12px 32px #06142d55; text-align: left; }
.bet-slip-launcher[hidden] { display: none; }
.bet-slip-launcher span { font-size: 12px; font-weight: 900; }
.bet-slip-launcher b { display: inline-grid; min-width: 22px; height: 22px; margin-left: 4px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); }
.bet-slip-launcher small { color: #dbe5f5; font-size: 8px; font-weight: 750; }
.app-toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; width: max-content; max-width: calc(100vw - 28px); padding: 13px 17px; transform: translateX(-50%); border-radius: 9px; background: var(--navy); box-shadow: 0 14px 38px #06142d66; color: #fff; font-size: 12px; font-weight: 850; text-align: center; }
.app-toast.success { border-left: 5px solid var(--green); }
.app-toast.error { border-left: 5px solid var(--red); }
.app-toast[hidden] { display: none; }
.bet-slip > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; background: var(--navy); color: #fff; }
.bet-slip > header div { display: grid; gap: 3px; }
.bet-slip > header small, .modal-head small { color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.bet-slip > header strong { font-size: 16px; }
.bet-slip > header button, .dialog-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #ffffff18; color: #fff; font-size: 23px; }
.bet-slip-body { display: grid; gap: 10px; padding: 15px; }
.bet-mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: 9px; background: #edf1f6; }
.bet-mode-tabs button { min-height: 49px; padding: 6px 4px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #48536a; font-size: 12px; font-weight: 900; }
.bet-mode-tabs button small { display: block; margin-top: 2px; color: #778197; font-size: 8px; font-weight: 700; }
.bet-mode-tabs button.active { border-color: #d8ad00; background: var(--yellow); color: #16213a; box-shadow: 0 2px 7px #1020401f; }
.bet-mode-tabs button.active small { color: #465065; }
.bet-selections { display: grid; gap: 6px; max-height: 250px; overflow: auto; }
.bet-selection-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 25px; align-items: center; gap: 8px; padding: 9px 8px 9px 10px; border-left: 4px solid #0a8f62; border-radius: 6px; background: #f2f5f8; }
.bet-selection-row > div { display: grid; min-width: 0; gap: 2px; }
.bet-selection-row strong, .bet-selection-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bet-selection-row strong { font-size: 11px; }
.bet-selection-row small { color: var(--muted); font-size: 9px; }
.bet-selection-row > b { padding: 5px 7px; border-radius: 4px; background: var(--yellow); font-size: 11px; }
.bet-selection-row > button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: #dce2e9; color: #526078; font-size: 17px; }
.bet-selection-row.review-changed, .bet-selection-row.review-replacement { border-left-color: #e6a700; background: #fff9e5; }
.bet-selection-row.review-unavailable { border-left-color: #d52f3f; background: #fff0f2; }
.bet-selection-review { grid-column: 1 / -1; display: grid !important; gap: 4px !important; padding: 7px 8px; border-radius: 5px; background: rgba(255,255,255,.78); color: #5d4600; }
.bet-selection-row.review-unavailable .bet-selection-review { color: #8c1522; }
.bet-selection-review > strong { font-size: 10px; }
.bet-selection-review > span { font-size: 9px; line-height: 1.4; }
.bet-review-alternatives { display: flex !important; flex-wrap: wrap; gap: 5px !important; }
.bet-review-alternatives button { min-height: 27px; padding: 4px 8px; border: 1px solid #d7a900; border-radius: 14px; background: #fff; color: #4e4300; font-size: 9px; font-weight: 800; }
.system-football-choices { display: grid; grid-column: 1 / -1; gap: 5px; padding-top: 7px; border-top: 1px solid #dce2e9; }
.system-football-choices > small { color: var(--navy); font-size: 8px; font-weight: 850; }
.system-football-choices > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.system-football-choices button { min-height: 34px; padding: 4px; border: 1px solid #cbd2dd; border-radius: 5px; background: #fff; color: var(--navy); font-size: 10px; font-weight: 900; }
.system-football-choices button b { display: block; margin-top: 1px; font-size: 9px; }
.system-football-choices button.active { border-color: #087e54; background: #dff6ed; box-shadow: inset 0 0 0 1px #087e54; }
.system-football-choices button:disabled { opacity: .45; cursor: not-allowed; }
.system-football-choices.unavailable { color: var(--red); }
.system-selection-role { display: flex !important; grid-column: 1 / -1; grid-template-columns: none !important; align-items: center; justify-content: space-between; gap: 8px; padding-top: 7px; border-top: 1px solid #dce2e9; }
.system-selection-role span { color: var(--muted); font-size: 9px; font-weight: 750; }
.system-selection-role button { min-height: 30px; padding: 4px 10px; border: 1px solid #9ba8ba; border-radius: 999px; background: #fff; color: #526078; font-size: 9px; font-weight: 900; }
.system-selection-role button.fixed { border-color: #087e54; background: #dff6ed; color: #075d40; }
.bet-add-hint { color: #667187; font-size: 9px; text-align: center; }
.bet-single-note { margin: 0; padding: 8px 10px; border-left: 3px solid #0a8f62; border-radius: 5px; background: #edf8f4; color: #315b50; font-size: 9px; line-height: 1.4; }
.bet-add-more { min-height: 39px; border: 1px dashed #8090aa; border-radius: 7px; background: #f7f9fc; color: var(--navy); font-size: 10px; font-weight: 900; }
.event-row.selection-target { outline: 3px solid var(--yellow); outline-offset: 2px; animation: selection-target-pulse 1.1s ease-in-out 2; }
.system-config { display: grid; gap: 6px; padding: 9px; border: 1px solid #d8e2dd; border-radius: 7px; background: #f5fbf8; }
.system-config[hidden] { display: none; }
.system-config > small { color: #526078; font-size: 9px; line-height: 1.35; }
.system-field, .bet-calculation { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.system-field select { min-width: 120px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 800; }
.bet-calculation strong { color: var(--ink); font-size: 12px; }
.bet-odds-breakdown { display: grid; gap: 6px; max-height: 210px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fc; }
.bet-odds-breakdown:empty { display: none; }
.bet-odds-breakdown > strong { color: var(--navy); font-size: 9px; text-transform: uppercase; }
.bet-odds-breakdown ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.bet-odds-breakdown li { display: grid; gap: 2px; padding-bottom: 5px; border-bottom: 1px solid #e2e6ed; }
.bet-odds-breakdown li:last-child { padding-bottom: 0; border-bottom: 0; }
.bet-odds-breakdown li span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.bet-odds-breakdown li b { color: var(--navy); font-size: 9px; font-variant-numeric: tabular-nums; }
.bet-odds-breakdown > small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.bet-event { font-size: 14px; font-weight: 850; }
.bet-market { color: var(--muted); font-size: 10px; line-height: 1.4; }
.bet-pick { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px; border-radius: 7px; background: #f1f4f9; }
.bet-pick b { min-width: 55px; padding: 7px; border-radius: 5px; background: var(--yellow); text-align: center; }
.stake-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.stake-field > span:last-child { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 850; }
.stake-field input { width: 110px; height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; text-align: right; }
.potential { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.potential span { color: var(--muted); font-size: 11px; }
.potential strong { color: var(--green); font-size: 20px; }
.simulation-note { color: var(--muted); font-size: 9px; line-height: 1.4; text-align: center; }
.ticket-legs { display: grid; gap: 5px; margin: 7px 0; padding: 0; list-style: none; }
.ticket-legs li { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 9px; border-radius: 5px; background: #f0f3f7; }
.ticket-legs li span { display: grid; min-width: 0; gap: 2px; }
.ticket-legs li strong, .ticket-legs li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-legs li strong { font-size: 10px; }
.ticket-legs li small { color: var(--muted); font-size: 8px; }
.ticket-legs li.won { border-left: 3px solid var(--green); }
.ticket-legs li.lost { border-left: 3px solid var(--red); }
.ticket-legs li.void { border-left: 3px solid #778197; }
.ticket-legs li.potential-win { border-left: 3px solid var(--green); background: #edf8f3; }
.ticket-legs li.potential-loss { border-left: 3px solid var(--red); background: #fff0f1; }
.ticket-leg-status { margin-top: 2px; font-weight: 900; letter-spacing: .02em; }
.ticket-leg-status.potential-win, .ticket-leg-status.won { color: var(--green); }
.ticket-leg-status.potential-loss, .ticket-leg-status.lost { color: var(--red); }
.ticket-leg-status.waiting { color: #8a6400; }
.ticket-legs li b { flex: none; font-size: 10px; }

.primary-button, .secondary-button { min-height: 43px; padding: 0 15px; border: 0; border-radius: 7px; font-weight: 850; }
.primary-button { background: var(--yellow); color: #18213a; }
.primary-button:hover { background: var(--yellow-2); }
.secondary-button { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .55; }
.form-message { min-height: 0; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.form-message:empty { display: none; }
.form-message.error { color: #b42532; }
.form-message.success { color: #087e54; }

.modal { width: min(520px, calc(100vw - 24px)); max-height: min(780px, calc(100vh - 24px)); padding: 0; overflow: auto; border: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px #020b1d99; }
.modal::backdrop { background: #04102cba; backdrop-filter: blur(3px); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; background: var(--navy); color: #fff; }
.modal-head > div { display: grid; gap: 3px; }
.modal-head strong { font-size: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { min-height: 46px; border: 0; background: #f3f5f8; color: var(--muted); font-weight: 850; }
.auth-tabs button.active { border-bottom: 4px solid var(--yellow); background: #fff; color: var(--navy); }
.auth-modal form { display: grid; gap: 13px; padding: 19px 20px 12px; }
.auth-modal form label { display: grid; gap: 6px; color: #505b70; font-size: 11px; font-weight: 750; }
.auth-modal form input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; }
.auth-modal form input:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px #1d39721a; }
.auth-modal form > p:not(.form-message) { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.birth-date-field { padding: 12px; border: 1px solid #d7ddea; border-radius: 9px; background: #f8f9fc; }
.birth-date-field[hidden] { display: none !important; }
.birth-date-field > span { color: var(--navy); font-size: 11px; }
.birth-date-field > span b { color: #b42532; font-size: 8px; text-transform: uppercase; }
.birth-date-field small { color: var(--muted); font-size: 9px; font-weight: 600; line-height: 1.45; }
.terms-check { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: flex-start; gap: 9px !important; padding: 10px; border-radius: 7px; background: #f3f5f8; color: var(--ink) !important; line-height: 1.5; }
.terms-check[hidden] { display: none !important; }
.terms-check input { flex: 0 0 auto; width: 17px !important; height: 17px !important; margin: 2px 0 0; }
.terms-check button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--navy-2); font-size: inherit; font-weight: 850; }
.modal-note { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.auth-modal form > .activation-intro { padding: 12px; border-radius: 10px; background: #eef3fb; color: #33435f; font-size: 11px; line-height: 1.5; }

.account-modal { width: min(920px, calc(100vw - 24px)); }
.wallet-card { display: grid; gap: 5px; margin: 16px; padding: 16px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.wallet-card[hidden], #player-panel[hidden] { display: none; }
.wallet-card span { color: #c7d3e9; font-size: 11px; }
.wallet-card strong { color: var(--yellow); font-size: 28px; }
.wallet-card small { color: #9fafca; font-size: 9px; }
.player-outcome-panel { display: grid; gap: 10px; margin: 0 16px 16px; }
.player-financial-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.player-financial-summary article { position: relative; display: grid; gap: 5px; min-width: 0; overflow: hidden; padding: 13px; border: 1px solid var(--line); border-left: 5px solid var(--navy-2); border-radius: 9px; background: linear-gradient(145deg, #fff, #f5f7fb); }
.player-financial-summary article.live-net { border-left-color: #8793a8; }
.player-financial-summary article.live-net.positive { border-left-color: var(--green); background: #f0faf6; }
.player-financial-summary article.live-net.negative { border-left-color: var(--red); background: #fff4f5; }
.player-financial-summary article.potential-return { border-left-color: var(--yellow); }
.player-financial-summary span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.player-financial-summary strong { overflow: hidden; color: var(--navy); font-size: clamp(18px, 3vw, 26px); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.player-financial-summary .live-net.positive strong { color: var(--green); }
.player-financial-summary .live-net.negative strong { color: var(--red); }
.player-financial-summary .potential-return strong { color: #a56f00; }
.player-financial-summary small { overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.player-outcome-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.player-outcome-summary article { display: grid; gap: 4px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-top: 4px solid #8793a8; border-radius: 8px; background: #f8f9fb; }
.player-outcome-summary article.won, .player-outcome-summary article.potential-win { border-top-color: var(--green); }
.player-outcome-summary article.lost, .player-outcome-summary article.potential-loss { border-top-color: var(--red); }
.player-outcome-summary article.waiting { border-top-color: var(--yellow); }
.player-outcome-summary article.active-live { animation: live-summary-pulse 1.15s ease-in-out infinite; }
.player-outcome-summary span { overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.player-outcome-summary strong { color: var(--navy); font-size: 22px; }
.player-outcome-summary small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.player-chart-card { background: #fbfcfe; }
.player-outcome-chart { display: grid; gap: 7px; }
.player-chart-row { display: grid; grid-template-columns: 84px minmax(80px, 1fr) 24px 90px; gap: 8px; align-items: center; }
.player-chart-row > span, .player-chart-row > small { color: var(--muted); font-size: 8px; }
.player-chart-row > b { color: var(--navy); font-size: 10px; text-align: right; }
.player-chart-row > small { text-align: right; }
.player-chart-track { height: 10px; overflow: hidden; border-radius: 6px; background: #e9edf3; }
.player-chart-track i { display: block; height: 100%; border-radius: inherit; background: #8793a8; transition: width .25s ease; }
.player-chart-row.won .player-chart-track i, .player-chart-row.potential-win .player-chart-track i { background: var(--green); }
.player-chart-row.lost .player-chart-track i, .player-chart-row.potential-loss .player-chart-track i { background: var(--red); }
.player-chart-row.waiting .player-chart-track i { background: var(--yellow); }
.player-projection-note { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.history-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 9px; }
.history-head button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--navy); font-size: 10px; font-weight: 800; }
.history-date-filter { display: grid; gap: 8px; margin: 0 16px 11px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8fa; }
.history-filter-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.history-filter-modes button { min-height: 34px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); font-size: 9px; font-weight: 850; }
.history-filter-modes button.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.history-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.history-date-fields[hidden], .history-date-fields label[hidden] { display: none; }
.history-date-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 800; }
.history-date-fields input { width: 100%; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); font: inherit; }
.history-filter-summary { margin: 0; color: var(--navy); font-size: 9px; font-weight: 850; }
.bet-history { display: grid; gap: 8px; max-height: 430px; overflow: auto; padding: 0 16px 14px; }
.history-analysis { margin: 4px 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.history-bet { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-left: 4px solid #8793a8; border-radius: 7px; }
.history-bet.won { border-left-color: var(--green); }
.history-bet.lost { border-left-color: var(--red); }
.history-bet.void { border-left-color: #718096; }
.history-bet.potential-win { border-left-color: var(--green); background: #f3fbf7; }
.history-bet.potential-loss { border-left-color: var(--red); background: #fff7f7; }
.history-bet.waiting { border-left-color: var(--yellow); }
.history-bet.in-play { position: relative; animation: live-bet-pulse 1.15s ease-in-out infinite; }
.history-bet.in-play > header b { display: inline-flex; align-items: center; gap: 5px; color: #fff; }
.history-bet.in-play > header b::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 #fff8; content: ""; animation: live-dot 1.15s ease-out infinite; }
.history-bet.potential-win.in-play > header b { background: var(--green); }
.history-bet.potential-loss.in-play > header b { background: var(--red); }
.history-bet > header, .history-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-bet > header span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.history-bet > header b { padding: 3px 6px; border-radius: 10px; background: #eef1f6; font-size: 9px; }
.history-bet > strong { font-size: 12px; }
.history-bet > p, .history-bet > small { margin: 0; color: var(--muted); font-size: 9px; }
.history-bet-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 5px; background: #edf2f8; color: var(--navy); font-size: 9px; }
.history-bet-date span { color: var(--muted); font-weight: 750; }
.history-bet-date strong { text-align: right; }
.history-pick { padding: 7px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; font-size: 11px; }
.settle-actions { display: flex; gap: 6px; padding-top: 5px; }
.settle-actions button { flex: 1; min-height: 31px; border: 1px solid var(--line); border-radius: 5px; background: #f7f8fa; font-size: 10px; font-weight: 800; }
.settle-actions button[data-settle="won"] { color: #087e54; }
.settle-actions button[data-settle="lost"] { color: #b42532; }
.history-empty { margin: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.account-modal > .form-message { margin: 0 16px 12px; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0 16px 16px; }
.account-actions .secondary-button { width: 100%; }
.danger-button { border-color: #e5aeb4; color: #a71928; }

.admin-panel { margin: 0 16px 16px; padding: 13px 0 2px; border-top: 2px solid var(--yellow); }
.admin-panel[hidden] { display: none; }
.admin-panel > p { margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.admin-panel .history-head { padding-inline: 0; }
.admin-users { display: grid; gap: 7px; max-height: 310px; overflow: auto; }
.admin-user { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.2fr); gap: 9px; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 7px; background: #f8f9fb; }
.admin-user > header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.admin-user > header > div { display: grid; gap: 3px; min-width: 0; }
.admin-user > header strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.admin-user small { color: var(--muted); font-size: 8px; }
.admin-user > header > span { color: var(--navy); font-size: 12px; font-weight: 900; }
.admin-budget-transfer, .player-limit-editor { display: grid; gap: 7px; min-width: 0; padding: 9px; border-radius: 6px; background: #fff; }
.admin-budget-transfer { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.player-limit-editor { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.admin-user label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 9px; font-weight: 800; }
.admin-user label span { color: var(--navy); }
.admin-user input { width: 100%; min-width: 0; height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; text-align: right; }
.admin-user button { height: 32px; border: 0; border-radius: 5px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 850; }
.admin-panel > .form-message { margin-top: 10px; }

.role-dashboard { display: grid; gap: 13px; padding: 16px; }
.role-dashboard[hidden] { display: none; }
.dashboard-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-title > div { display: grid; gap: 3px; }
.dashboard-title small { color: #b27e00; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.dashboard-title strong { color: var(--navy); font-size: 18px; }
.dashboard-title button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--navy); font-size: 10px; font-weight: 850; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat-grid article { display: grid; gap: 7px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; }
.stat-grid span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.stat-grid strong { overflow: hidden; color: var(--green); font-size: clamp(15px, 2vw, 21px); text-overflow: ellipsis; white-space: nowrap; }
.stat-grid strong.negative { color: var(--red); }
.commission-dashboard { display: grid; gap: 9px; padding: 12px; border: 1px solid #dbc46f; border-radius: 9px; background: linear-gradient(135deg, #fffdf5, #fff8dc); }
.commission-dashboard .history-head { padding: 0; }
.commission-dashboard .history-head span { color: #7b6208; font-size: 9px; font-weight: 750; text-align: right; }
.commission-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.commission-stat-grid article { display: grid; gap: 5px; min-width: 0; padding: 10px; border: 1px solid #e7dcae; border-radius: 7px; background: #fff; }
.commission-stat-grid span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.commission-stat-grid strong { overflow: hidden; color: var(--green); font-size: clamp(13px, 2vw, 18px); text-overflow: ellipsis; white-space: nowrap; }
.bank-policy-analytics { display: grid; gap: 6px; }
.bank-policy-analytics article { display: grid; grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(90px, auto)); gap: 10px; align-items: center; padding: 9px; border: 1px solid #e7dcae; border-radius: 7px; background: #fff; }
.bank-policy-analytics article > div { display: grid; gap: 3px; min-width: 0; }
.bank-policy-analytics article > div strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.bank-policy-analytics article small { color: var(--muted); font-size: 8px; }
.bank-policy-analytics article > span { display: grid; gap: 2px; justify-items: end; }
.bank-policy-analytics article > span b { color: var(--green); font-size: 10px; }
.bank-policy-analytics article > span b.negative { color: var(--red); }
.chart-card { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.chart-card > div:first-child { display: flex; justify-content: space-between; margin-bottom: 9px; }
.chart-card > div:first-child strong { font-size: 11px; }
.chart-card > div:first-child small { color: var(--muted); font-size: 9px; }
.bank-chart { display: grid; grid-template-columns: repeat(14, minmax(9px, 1fr)); gap: 5px; align-items: end; height: 105px; }
.chart-day { display: grid; grid-template-rows: 80px 14px; gap: 3px; min-width: 0; text-align: center; }
.chart-axis { display: flex; align-items: end; justify-content: center; border-bottom: 1px solid #dfe3ea; }
.chart-axis i { width: min(16px, 70%); min-height: 2px; border-radius: 3px 3px 0 0; background: var(--green); }
.chart-axis i.negative { background: var(--red); }
.chart-day small { color: var(--muted); font-size: 7px; }
.settlement-panel { display: grid; gap: 7px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.settlement-panel .history-head { padding-bottom: 0; }
.sync-status { margin: 0 16px; color: var(--muted); font-size: 9px; }
.sync-status.error { color: var(--red); }
.settlement-report { display: grid; gap: 7px; max-height: 320px; overflow: auto; padding: 0 16px; }
.settlement-summary { display: flex; flex-wrap: wrap; gap: 5px; }
.settlement-summary span { padding: 4px 7px; border-radius: 12px; background: #eef2f7; color: var(--navy); font-size: 9px; font-weight: 800; }
.settlement-row { display: grid; gap: 4px; padding: 9px; border: 1px solid var(--line); border-left: 4px solid #8793a8; border-radius: 7px; }
.settlement-row.won { border-left-color: var(--green); }
.settlement-row.lost { border-left-color: var(--red); }
.settlement-row header { display: flex; justify-content: space-between; gap: 8px; }
.settlement-row header span, .settlement-row p, .settlement-row small { margin: 0; color: var(--muted); font-size: 9px; }
.settlement-row > strong { font-size: 11px; }
.bank-open-bets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 350px; overflow: auto; }
.bank-open-bet { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 7px; }
.bank-open-bet header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bank-open-bet header span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.bank-open-bet header b { color: var(--navy); font-size: 11px; }
.bank-open-bet > strong { font-size: 11px; }
.bank-open-bet p, .bank-open-bet small { margin: 0; color: var(--muted); font-size: 9px; }
.awaiting-settlement { padding-top: 4px; color: #9a7200 !important; font-weight: 750; }
.awaiting-settlement.potential-win { color: var(--green) !important; }
.awaiting-settlement.potential-loss { color: var(--red) !important; }
.current-score { color: var(--navy) !important; font-weight: 850; }

@keyframes live-bet-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #ffc92800; transform: translateZ(0); }
  50% { box-shadow: 0 0 0 4px #ffc92875; }
}
@keyframes selection-target-pulse {
  0%, 100% { outline-color: var(--yellow); background-color: #fff; }
  50% { outline-color: #0a8f62; background-color: #eefaf6; }
}

@keyframes live-summary-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); box-shadow: 0 0 0 3px #ffc92855; }
}

@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 #fff9; opacity: 1; }
  70% { box-shadow: 0 0 0 6px #fff0; opacity: .75; }
  100% { box-shadow: 0 0 0 0 #fff0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .history-bet.in-play, .player-outcome-summary article.active-live, .history-bet.in-play > header b::before { animation: none; }
}
.admin-dashboard .admin-panel { margin: 0; }
.superadmin-note { padding: 11px; border-left: 4px solid var(--yellow); border-radius: 5px; background: #fff7d6; color: #5d4b0b; font-size: 10px; line-height: 1.5; }
.association-panel { display: grid; gap: 9px; padding: 13px; border: 2px solid #e6aa00; border-radius: 9px; background: #fffaf0; }
.association-panel .history-head { padding: 0; }
.association-panel .history-head span { padding: 4px 8px; border-radius: 12px; background: #fff0bd; color: #7d5900; font-size: 9px; font-weight: 900; }
.association-panel .history-head span.complete { background: #e3f5ec; color: var(--green); }
.association-panel > p, .superadmin-management-panel > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.superadmin-assignments { display: grid; gap: 7px; }
.assignment-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 220px) 78px; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 8px; background: #fff; }
.assignment-row.assigned { border-left-color: var(--green); }
.assignment-row > div { display: grid; gap: 3px; min-width: 0; }
.assignment-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.assignment-row small { color: var(--muted); font-size: 8px; }
.assignment-row select { width: 100%; min-width: 0; height: 34px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 9px; }
.assignment-row button { height: 34px; border: 0; border-radius: 5px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 850; }
.fanta-team-admin-panel { display: grid; gap: 9px; padding: 13px; border: 1px solid #b9c9df; border-radius: 9px; background: #f5f8fc; }
.fanta-team-admin-panel .history-head { padding: 0; }
.fanta-team-admin-panel .history-head span { padding: 4px 8px; border-radius: 12px; background: #dfe9f6; color: var(--navy); font-size: 9px; font-weight: 900; }
.fanta-team-admin-panel > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.superadmin-fanta-team-requests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fanta-team-admin-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-left: 5px solid var(--navy-2); border-radius: 8px; background: #fff; }
.fanta-team-admin-row header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.fanta-team-admin-row header strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; }
.fanta-team-admin-row header span { flex: 0 0 auto; padding: 3px 6px; border-radius: 10px; background: #e3f5ec; color: var(--green); font-size: 8px; font-weight: 850; }
.fanta-team-admin-row > div { display: grid; gap: 3px; min-width: 0; }
.fanta-team-admin-row small, .fanta-team-admin-row time { color: var(--muted); font-size: 8px; }
.fanta-team-admin-row b { overflow-wrap: anywhere; font-size: 10px; }
.fanta-team-admin-row time { grid-column: 1 / -1; }
.superadmin-management-panel { display: grid; gap: 8px; padding-top: 4px; }
.superadmin-management-panel .history-head { padding-inline: 0; }
.superadmin-users { display: grid; gap: 8px; }
.super-user { display: grid; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fb; }
.super-user > header { display: grid; grid-template-columns: minmax(145px, 1fr) auto auto; gap: 9px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.super-user > header > div { display: grid; gap: 3px; min-width: 0; }
.super-user > header > span { color: var(--navy); font-size: 11px; font-weight: 900; }
.super-user.admin-policy-card { border-left: 5px solid var(--yellow); }
.super-user.locked { grid-template-columns: 1fr auto; border-color: #d7b13f; background: #fff9e7; }
.super-user > div { display: grid; gap: 3px; min-width: 0; }
.super-user > div strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.super-user small { color: var(--muted); font-size: 8px; }
.super-user > span { color: var(--navy); font-size: 10px; font-weight: 850; }
.super-user .super-user-assignment { grid-column: span 2; color: var(--muted); font-size: 9px; font-weight: 700; }
.super-user button { min-height: 32px; padding: 0 8px; border: 0; border-radius: 5px; background: var(--navy); color: #fff; font-size: 8px; font-weight: 850; }
.super-user label { display: flex; align-items: center; gap: 3px; font-size: 9px; }
.super-user input, .super-user select { width: 100%; min-width: 0; height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 9px; }
.admin-funding { display: grid !important; grid-template-columns: minmax(180px, 260px) auto; justify-content: start; align-items: end; gap: 8px !important; padding: 8px; border-radius: 6px; background: #eef3f9; }
.bank-policy-editor { display: grid !important; grid-template-columns: repeat(5, minmax(105px, 1fr)) auto; align-items: end; gap: 7px !important; padding: 9px; border: 1px solid #e7dcae; border-radius: 7px; background: #fffdf6; }
.bank-policy-editor label, .admin-funding label { display: grid; gap: 4px; min-width: 0; color: var(--muted); }
.bank-policy-editor label span, .admin-funding label span { color: var(--navy); font-weight: 800; }
.superadmin-panel > .form-message { margin: 0; }

.leaderboard-modal { width: min(650px, calc(100vw - 24px)); }
.leaderboard-explainer { margin: 14px 16px 7px; padding: 10px 12px; border-left: 4px solid var(--yellow); background: #fff7d6; color: #5d4b0b; font-size: 10px; line-height: 1.5; }
.leaderboard { display: grid; gap: 7px; margin: 0; padding: 8px 16px 18px; list-style: none; }
.leaderboard li { min-height: 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.leaderboard li.is-me { border-color: #e6aa00; background: #fff9e6; }
.leaderboard-player-button { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 14px; gap: 10px; align-items: center; width: 100%; min-height: 58px; padding: 8px 11px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.leaderboard-player-button:hover, .leaderboard-player-button:focus-visible { background: #f4f7fb; outline: 2px solid var(--yellow); outline-offset: -2px; }
.leaderboard .rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--yellow); }
.leaderboard li:nth-child(1) .rank { background: var(--yellow); color: var(--navy); }
.leaderboard-player-copy { display: grid; gap: 3px; }
.leaderboard-player-copy strong { font-size: 12px; }
.leaderboard-player-copy small { color: var(--muted); font-size: 9px; }
.leaderboard .score { color: var(--green); font-size: 13px; font-weight: 900; }
.leaderboard .score.negative { color: var(--red); }
.leaderboard-chevron { color: var(--muted); font-size: 22px; font-weight: 800; }
.leaderboard-modal > .form-message { margin: 0 16px 16px; }
.leaderboard-player-modal { width: min(940px, calc(100vw - 24px)); }
.leaderboard-player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f7f8fa; }
.leaderboard-player-toolbar button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--navy); font-size: 10px; font-weight: 850; }
.leaderboard-player-toolbar span { color: var(--muted); font-size: 10px; font-weight: 750; text-align: right; }
.player-analytics { display: grid; gap: 10px; padding: 14px 16px; background: #f7f9fc; }
.player-analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.player-analytics-grid article { display: grid; gap: 5px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 7px; background: #fff; }
.player-analytics-grid span { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.player-analytics-grid strong { overflow: hidden; color: var(--green); font-size: clamp(14px, 2vw, 20px); text-overflow: ellipsis; white-space: nowrap; }
.player-analytics-grid strong.negative, .player-formulas b.negative { color: var(--red); }
.player-analytics-grid small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.player-formulas { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; }
.player-formulas article { display: grid; align-content: start; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.player-formulas header, .player-formulas div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-formulas header { margin-bottom: 5px; padding-bottom: 7px; border-bottom: 2px solid var(--yellow); }
.player-formulas header strong { color: var(--navy); font-size: 10px; }
.player-formulas header b { color: var(--green); font-size: 12px; }
.player-formulas div { padding: 4px 0; border-bottom: 1px solid #eef1f5; font-size: 9px; }
.player-formulas div span { color: var(--muted); }
.player-formulas div b { color: var(--green); white-space: nowrap; }
.player-formulas .reconciliation { color: #8a5e00; background: #fff8de; }
.player-formulas > article > small { margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.player-analysis-section { display: grid; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.player-analysis-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.player-analysis-heading > div { display: grid; gap: 2px; }
.player-analysis-heading small { color: #a67500; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.player-analysis-heading strong { color: var(--navy); font-size: 13px; }
.player-analysis-heading > span { color: var(--muted); font-size: 8px; text-align: right; }
.bets-heading { padding: 14px 16px 9px; }
.player-movements { display: grid; gap: 5px; max-height: 260px; overflow: auto; }
.player-movement { display: grid; grid-template-columns: 130px minmax(180px, 1fr) 100px 110px; gap: 9px; align-items: center; padding: 8px 9px; border: 1px solid var(--line); border-left: 4px solid #8793a8; border-radius: 6px; background: #fff; }
.player-movement.grant, .player-movement.weekly-grant, .player-movement.payout { border-left-color: var(--green); }
.player-movement.stake, .player-movement.budget-expiry, .player-movement.commission { border-left-color: var(--red); }
.player-movement.refund { border-left-color: var(--yellow); }
.player-movement.reconciliation { border-left-color: #8b5cf6; background: #faf8ff; }
.player-movement time, .player-movement small { color: var(--muted); font-size: 8px; }
.player-movement > div { display: grid; gap: 2px; min-width: 0; }
.player-movement > div strong, .player-movement > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-movement > div strong { font-size: 10px; }
.player-movement .movement-amount { justify-self: end; font-size: 10px; }
.player-movement .movement-amount.positive { color: var(--green); }
.player-movement .movement-amount.negative { color: var(--red); }
.player-movement > span { justify-self: end; color: var(--navy); font-size: 9px; font-weight: 850; }
.leaderboard-player-bets { max-height: min(52vh, 520px); padding-top: 0; }
.bet-score-calculation { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; padding: 7px 8px; border-radius: 5px; background: #f0f7f4; font-size: 9px; }
.bet-score-calculation.negative { background: #fff1f2; }
.bet-score-calculation.open { background: #fff8df; }
.bet-score-calculation > strong { color: var(--navy); }
.bet-score-calculation > span { justify-self: end; }
.bet-score-calculation > small { grid-column: 1 / -1; color: var(--muted); }
.bet-score-calculation.positive span b { color: var(--green); }
.bet-score-calculation.negative span b { color: var(--red); }
.ticket-odds-formula { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; padding: 6px 8px; border-radius: 5px; background: #eef3fa; font-size: 9px; }
.ticket-odds-formula span { color: var(--muted); font-weight: 750; }
.ticket-odds-formula b { overflow-wrap: anywhere; color: var(--navy); text-align: right; }
.ticket-odds-formula small { grid-column: 1 / -1; color: var(--muted); }
.leaderboard-player-modal > .form-message { margin: 0 16px 16px; }

.legal-modal { width: min(800px, calc(100vw - 24px)); }
.legal-tabs { position: sticky; top: 65px; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: #fff; }
.legal-tabs button { min-height: 43px; border: 0; border-bottom: 3px solid transparent; background: #f5f6f8; color: var(--muted); font-size: 10px; font-weight: 850; }
.legal-tabs button.active { border-bottom-color: var(--yellow); background: #fff; color: var(--navy); }
.legal-copy { padding: 17px 22px 8px; }
.legal-copy h2 { margin: 0 0 13px; color: var(--navy); font-size: 21px; }
.legal-copy h3 { margin: 17px 0 5px; color: var(--navy-2); font-size: 13px; }
.legal-copy p { margin: 0 0 9px; color: #505b70; font-size: 11px; line-height: 1.65; }
.legal-copy a { color: #174f9d; font-weight: 750; }
.legal-warning { margin: 8px 22px 20px; padding: 10px; border-radius: 6px; background: #fff0f1; color: #8a2730; font-size: 9px; line-height: 1.5; text-align: center; }

/* Backoffice Super admin · layout ispirato alla console operativa di riferimento */
.superadmin-backoffice[hidden], .bo-page[hidden], .bo-search-menu[hidden], .bo-account-menu[hidden] { display: none !important; }
.superadmin-backoffice { min-height: 100vh; background: #f3f3f3; color: #141414; }
.bo-topbar { position: sticky; z-index: 80; top: 0; display: grid; grid-template-columns: 250px minmax(520px, 1fr) auto; align-items: center; min-height: 68px; margin: 10px 8px 0; padding: 0 24px 0 46px; background: #243b6a; box-shadow: 0 3px 6px #0004; color: #fff; }
.bo-topbar button { border: 0; background: transparent; color: inherit; }
.bo-logo { display: flex; align-items: center; gap: 9px; width: fit-content; padding: 0; text-align: left; }
.bo-logo img { width: 42px; height: 42px; border-radius: 11px; }
.bo-logo > span { display: grid; gap: 2px; }
.bo-logo strong { font-size: 21px; letter-spacing: -.05em; line-height: 1; }
.bo-logo strong span { color: var(--yellow); }
.bo-logo small { color: #dbe4f3; font-size: 7px; font-weight: 900; letter-spacing: .2em; }
.bo-product-nav { display: flex; height: 68px; align-items: stretch; justify-content: center; gap: clamp(18px, 3.1vw, 54px); }
.bo-product-nav button { position: relative; display: flex; min-width: 80px; align-items: center; justify-content: center; gap: 10px; padding: 0 7px; font-size: 14px; }
.bo-product-nav button::after { position: absolute; right: 8px; bottom: 0; left: 8px; height: 3px; background: var(--yellow); content: ""; opacity: 0; transform: scaleX(.3); transition: .18s ease; }
.bo-product-nav button:hover::after, .bo-product-nav button.active::after { opacity: 1; transform: scaleX(1); }
.bo-product-nav button.active { color: var(--yellow); font-weight: 850; }
.bo-product-nav i { display: grid; width: 23px; height: 23px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-style: normal; font-size: 12px; }
.bo-account-summary { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 15px; white-space: nowrap; }
.bo-account-name { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.bo-account-name i { font-style: normal; font-size: 18px; }
.bo-balance { display: grid; grid-template-columns: auto auto; gap: 1px 5px; font-size: 12px; }
.bo-balance small { color: #d7e1f2; }
.bo-account-menu-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #fff !important; border-radius: 9px; background: #a7a8ad !important; font-size: 27px; line-height: 1; }
.bo-account-menu { position: absolute; z-index: 100; top: 49px; right: 0; display: grid; min-width: 180px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 12px 35px #0004; color: #17233d; }
.bo-account-menu button { padding: 12px 15px; border-bottom: 1px solid #e2e4e8; color: #17233d; text-align: left; }
.bo-account-menu button:hover { background: #f2f4f7; }
.bo-drawer-overlay { position: fixed; z-index: 96; inset: 0; border: 0; background: #0009; }
.bo-account-drawer { position: fixed; z-index: 97; top: 0; right: 0; display: block; width: min(300px, 100vw); height: 100dvh; overflow-y: auto; background: #e7e7e7; box-shadow: -7px 0 24px #0003; color: #151515; }
.bo-account-drawer[hidden], .bo-drawer-overlay[hidden] { display: none !important; }
.bo-drawer-scroll { min-height: 0; }
.bo-drawer-profile { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px auto; grid-template-rows: auto auto; align-items: center; gap: 2px 7px; min-height: 88px; padding: 14px 15px 11px; }
.bo-drawer-avatar { display: grid; width: 31px; height: 31px; grid-column: 1; grid-row: 1 / 3; place-items: center; border-radius: 50%; background: var(--yellow); color: #fff; font-size: 14px; }
.bo-drawer-profile > strong { grid-column: 2; grid-row: 1 / 3; overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; }
.bo-drawer-profile > button { width: 24px; height: 24px; grid-column: 3; grid-row: 1 / 3; padding: 0; border: 0; background: transparent; color: #101010; font-size: 18px; }
.bo-drawer-balances { display: grid; grid-template-columns: auto 1fr; grid-column: 4; grid-row: 1 / 3; gap: 1px 4px; font-size: 12px; white-space: nowrap; }
.bo-drawer-balances b { font-weight: 500; }
.bo-drawer-nav { display: grid; gap: 14px; padding: 0 16px 16px; }
.bo-drawer-nav > button, .bo-drawer-transfer > button, .bo-drawer-footer > button { display: grid; width: 100%; min-height: 45px; grid-template-columns: 32px 1fr; align-items: center; padding: 0 17px; border: 0; background: #fff; color: #151515; font-size: 14px; text-align: left; }
.bo-drawer-nav button:hover, .bo-drawer-footer button:hover, .bo-drawer-nav button.active { background: #f8f3df; }
.bo-drawer-nav i, .bo-drawer-footer i { font-style: normal; font-size: 20px; text-align: center; }
.bo-drawer-transfer { background: #fff; }
.bo-drawer-transfer > button { background: #fff; }
.bo-drawer-transfer form { display: grid; gap: 8px; padding: 4px 10px 10px; }
.bo-drawer-transfer form[hidden] { display: none; }
.bo-drawer-transfer label { display: grid; gap: 4px; color: #969696; font-size: 10px; font-weight: 850; }
.bo-drawer-transfer input, .bo-drawer-transfer select { width: 100%; height: 36px; padding: 0 9px; border: 1px solid #28313d; background: #fff; color: #151515; }
.bo-drawer-transfer form button { min-height: 39px; border: 0; background: #f5f0e5; color: #18202d; font-weight: 850; }
.bo-drawer-footer { display: grid; gap: 14px; padding: 0 16px 18px; background: #e7e7e7; }
.bo-drawer-footer > button:last-child { display: block; min-height: 32px; padding: 0; background: transparent; text-align: center; text-decoration: underline; }
.bo-balance-concealed #bo-drawer-balance, .bo-balance-concealed #bo-drawer-exposure { color: transparent; text-shadow: 0 0 7px #111; user-select: none; }
.bo-shell { display: grid; grid-template-columns: 88px minmax(0, 1fr); min-height: calc(100vh - 78px); }
.bo-sidebar { position: sticky; z-index: 40; top: 78px; align-self: start; display: grid; align-content: start; min-height: calc(100vh - 78px); padding: 44px 9px 20px; background: #f3f3f3; }
.bo-sidebar > button { display: grid; justify-items: center; gap: 4px; min-height: 86px; padding: 0 2px; border: 0; background: transparent; color: #454545; }
.bo-sidebar > button b { font-size: 11px; font-weight: 850; }
.bo-sidebar > button.active b { color: #080808; }
.bo-side-icon { display: grid; width: 49px; height: 49px; place-items: center; border-radius: 12px; box-shadow: inset 0 -7px 12px #0000000c; color: #fff; font-size: 28px; font-weight: 400; }
.bo-side-icon.purple { background: #9a77d1; }
.bo-side-icon.green { background: #58d6ae; }
.bo-side-icon.cyan { background: #52c5cf; }
.bo-search-menu { position: absolute; z-index: 70; top: 217px; left: 88px; display: grid; width: 170px; overflow: hidden; border-radius: 0 11px 11px 11px; background: #ededed; box-shadow: 0 6px 17px #0004; }
.bo-search-menu button { display: flex; min-height: 58px; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-bottom: 1px solid #777; background: transparent; color: #1f1f1f; font-size: 14px; text-align: left; }
.bo-search-menu button:last-child { border: 0; }
.bo-search-menu button:hover { background: #fff; }
.bo-search-menu span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: #12b7c0; color: #fff; }
.bo-main { min-width: 0; padding: 16px 12px 34px 0; }
.bo-page { min-height: 760px; }
.bo-page-heading { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 16px 7px; }
.bo-page-heading > div { display: grid; gap: 2px; }
.bo-page-heading small { color: #7a7a7a; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.bo-page-heading h1 { margin: 0; color: #101010; font-size: 22px; letter-spacing: -.03em; }
.bo-page-heading > button, [data-bo-refresh] { min-height: 32px; padding: 0 12px; border: 1px solid #d1d3d7; border-radius: 6px; background: #fff; color: #243b6a; font-size: 11px; font-weight: 800; }
.bo-dashboard-grid { display: grid; grid-template-columns: minmax(540px, 2fr) minmax(330px, 1fr); gap: 20px; }
.bo-card { background: #fff; }
.bo-trend-card { grid-row: span 2; min-height: 490px; padding: 28px 30px 18px; border-radius: 20px; }
.bo-card-title { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.bo-card-title > div { display: grid; gap: 4px; }
.bo-card-title strong { font-size: 16px; }
.bo-card-title small { color: #838383; font-size: 10px; }
.bo-live-chip { display: flex; align-items: center; gap: 6px; color: #69809e; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.bo-live-chip i { width: 7px; height: 7px; border-radius: 50%; background: #10ee72; box-shadow: 0 0 0 4px #10ee7222; }
.bo-network-chart { height: 350px; margin-top: 18px; }
.bo-network-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bo-grid line { stroke: #9fa3aa; stroke-width: 1; }.bo-grid line.zero { stroke: #65738a; stroke-width: 1.5; }.bo-grid text { fill: #8b8f96; font-size: 10px; }
.bo-profit-line { fill: none; stroke: #ff4034; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }.bo-network-chart circle { fill: #ff4034; }
.bo-chart-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 8px 4px 0; font-size: 10px; }
.bo-chart-legend span { display: flex; align-items: center; gap: 6px; }
.bo-chart-legend span::before { width: 26px; height: 7px; border-radius: 5px; background: currentColor; content: ""; }
.bo-chart-legend .red { color: #ff4034; }.bo-chart-legend .green { color: #77b83a; }.bo-chart-legend .cyan { color: #23b9da; }
.bo-chart-legend b { color: #1b1b1b; }
.bo-users-card { position: relative; display: grid; grid-template-columns: 1fr auto 18px; align-items: center; min-height: 112px; padding: 24px 25px; border-radius: 20px; }
.bo-users-card > span { font-size: 22px; font-weight: 850; }
.bo-users-card > strong { font-size: 31px; font-weight: 450; }
.bo-users-card > i { width: 14px; height: 14px; border-radius: 50%; background: #10ed71; }
.bo-users-card > small { grid-column: 1 / -1; color: #828282; font-size: 10px; }
.bo-ring-card { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(200px, 1.15fr); align-items: center; min-height: 250px; padding: 25px; }
.bo-dashboard-grid > .bo-ring-card:nth-of-type(3), .bo-dashboard-grid > .bo-ring-card:nth-of-type(5) { border-radius: 18px 0 0 18px; }
.bo-dashboard-grid > .bo-ring-card:nth-of-type(4), .bo-dashboard-grid > .bo-ring-card:nth-of-type(6) { border-radius: 0 18px 18px 0; }
.bo-ring-visual { position: relative; width: 152px; height: 152px; margin: auto; border-radius: 50%; background: var(--ring, conic-gradient(#ff4034 0 50%, #77b83a 50% 100%)); }
.bo-ring-visual::after { position: absolute; inset: 35px; border-radius: 50%; background: #fff; content: ""; }
.bo-ring-visual::before { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding-top: 3px; content: attr(data-label); font-size: 13px; font-weight: 900; }
.bo-ring-legend { display: grid; gap: 12px; }
.bo-ring-legend > span { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: center; font-size: 13px; }
.bo-ring-legend b { font-size: 17px; }
.bo-ring-legend i { width: 100%; height: 9px; border-radius: 5px; background: #f1f1f1; }
.bo-ring-legend i::after { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--color); content: ""; }
.bo-network-toolbar { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; }
.bo-network-toolbar label { display: flex; width: min(320px, 100%); height: 38px; align-items: center; border-radius: 10px; background: #e6e6e6; }
.bo-network-toolbar input { min-width: 0; flex: 1; height: 100%; padding: 0 14px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.bo-network-toolbar label span { padding: 0 15px; color: #00abc5; font-size: 23px; }
.bo-network-toolbar > div { display: flex; gap: 10px; }
.bo-network-toolbar > div span { padding: 7px 10px; border-radius: 18px; background: #fff; color: #4f596b; font-size: 10px; }
.bo-network-toolbar > div i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #10ed71; }
.bo-network-table-wrap { min-height: 725px; margin: 0 24px; overflow: auto; background: #e2e2e2; }
.bo-network-table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 11px; }
.bo-network-table th { height: 37px; padding: 0 12px; background: #dcdcdc; color: #101010; text-align: left; white-space: nowrap; }
.bo-network-table td { height: 50px; padding: 7px 12px; border-right: 1px solid #d4d4d4; border-bottom: 1px solid #d1d1d1; background: #f5f5f5; white-space: nowrap; }
.bo-network-table tr.admin-row td:first-child { border-left: 4px solid var(--yellow); }
.bo-network-table tr.player-row td:first-child { border-left: 4px solid #50c8d2; }
.bo-network-table tr.superadmin-row td:first-child { border-left: 4px solid #9a77d1; }
.bo-role-pill, .bo-state-pill { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 10px; font-size: 9px; font-weight: 850; }
.bo-role-pill.admin { background: #fff0b7; color: #735400; }.bo-role-pill.player { background: #d7f2f4; color: #08727b; }.bo-role-pill.superadmin { background: #e5daf7; color: #613a96; }
.bo-state-pill { background: #c9f3df; color: #087345; }.bo-state-pill.inactive { background: #7d0910; color: #fff; }
.bo-network-action { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 7px; background: transparent; font-size: 21px; }
.bo-network-action:hover { background: #ddd; }
.bo-network-detail td { padding: 0 !important; background: #fff !important; }
.bo-user-editor { display: grid; gap: 12px; padding: 16px 18px; white-space: normal; }
.bo-user-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bo-user-editor > header div { display: grid; gap: 3px; }.bo-user-editor > header small { color: #768093; }
.bo-user-editor-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)) auto; gap: 10px; align-items: end; }
.bo-user-editor-grid label { display: grid; gap: 5px; color: #596277; font-size: 9px; font-weight: 800; }
.bo-user-editor-grid input, .bo-user-editor-grid select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #cfd4dc; border-radius: 6px; background: #fff; }
.bo-user-editor button, .bo-wallet-result button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: #243b6a; color: #fff; font-size: 10px; font-weight: 850; }
.bo-user-editor button.danger { background: #7d0910; }
.bo-search-page { padding-inline: 16px; }
.bo-search-card { width: min(760px, 100%); margin: 18px auto 24px; padding: 25px; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px #20305212; }
.bo-search-card label { display: grid; gap: 8px; font-size: 12px; font-weight: 850; }
.bo-search-card label > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.bo-search-card input { height: 46px; padding: 0 15px; border: 1px solid #cdd1d9; border-radius: 9px; outline: 0; }
.bo-search-card input:focus { border-color: #243b6a; box-shadow: 0 0 0 3px #243b6a16; }
.bo-search-card button { padding: 0 24px; border: 0; border-radius: 9px; background: #243b6a; color: #fff; font-weight: 850; }
.bo-search-card p { margin: 11px 0 0; color: #768093; font-size: 10px; }
.bo-wallet-results, .bo-coupon-results { display: grid; width: min(980px, 100%); margin: auto; gap: 10px; }
.bo-wallet-result, .bo-coupon-result { padding: 16px; border-left: 5px solid #50c8d2; border-radius: 10px; background: #fff; box-shadow: 0 4px 15px #1e2c4c0d; }
.bo-wallet-result.admin { border-left-color: var(--yellow); }.bo-wallet-result.superadmin { border-left-color: #9a77d1; }
.bo-wallet-result > header, .bo-coupon-result > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 11px; border-bottom: 1px solid #e1e4e8; }
.bo-wallet-result > header div, .bo-coupon-result > header div { display: grid; gap: 4px; }.bo-wallet-result small, .bo-coupon-result small { color: #778096; }
.bo-wallet-metrics, .bo-coupon-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
.bo-wallet-metrics span, .bo-coupon-metrics span { display: grid; gap: 4px; padding: 9px; border-radius: 7px; background: #f3f4f6; font-size: 9px; }.bo-wallet-metrics b, .bo-coupon-metrics b { color: #16264a; font-size: 12px; overflow-wrap: anywhere; }
.bo-coupon-result { border-left-color: #9a77d1; }
.bo-coupon-status { padding: 5px 9px; border-radius: 12px; background: #e5daf7; color: #613a96; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.bo-coupon-status.won { background: #d4f2e3; color: #087345; }.bo-coupon-status.lost { background: #ffe0e2; color: #9b1720; }.bo-coupon-status.open { background: #fff0b7; color: #735400; }
.bo-filter-panel { display: grid; grid-template-columns: minmax(170px, 1.6fr) repeat(3, minmax(130px, 1fr)) auto auto; gap: 10px; margin: 8px 24px 16px; padding: 14px; background: #e7e7e7; }
.bo-filter-panel label { display: grid; gap: 5px; color: #687184; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.bo-filter-panel input, .bo-filter-panel select { min-width: 0; height: 37px; padding: 0 9px; border: 1px solid #c9ced6; background: #fff; color: #15213a; }
.bo-filter-panel button { align-self: end; height: 37px; padding: 0 15px; border: 0; background: #243b6a; color: #fff; font-weight: 850; }
.bo-filter-panel button[type="reset"] { background: #fff; color: #243b6a; }
.bo-report-table-wrap { min-height: 610px; margin: 0 24px; overflow: auto; background: #e2e2e2; }
.bo-report-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 11px; }
.bo-report-table th { height: 41px; padding: 0 12px; background: #d7d7d7; color: #111; text-align: left; white-space: nowrap; }
.bo-report-table td { height: 49px; padding: 7px 12px; border-right: 1px solid #ddd; border-bottom: 1px solid #d4d4d4; background: #f7f7f7; }
.bo-report-table td:last-child { font-weight: 850; }
.bo-report-table .positive { color: #087345; }.bo-report-table .negative { color: #a2131d; }
.bo-report-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 24px 16px; }
.bo-report-summary article { display: grid; gap: 7px; min-height: 94px; align-content: center; padding: 16px; border-radius: 14px; background: #fff; }
.bo-report-summary span { color: #747d8f; font-size: 9px; font-weight: 850; text-transform: uppercase; }.bo-report-summary strong { font-size: 20px; }
.bo-revenue-title { min-height: 38px; display: grid; place-items: center; }
.bo-revenue-title h1 { margin: 0; color: #111; font-size: 20px; }
.bo-revenue-filter-card { margin: 0 24px 6px; padding: 0 12px 12px; background: #e5e5e5; }
.bo-revenue-filter-toggle { display: flex; width: 100%; height: 42px; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; background: transparent; color: #101010; font-size: 20px; }
.bo-revenue-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px 9px; padding: 5px 12px 12px; background: #fff; }
.bo-revenue-filter-grid[hidden] { display: none !important; }
.bo-revenue-filter-grid label { display: grid; gap: 4px; color: #111; font-size: 11px; font-weight: 850; }
.bo-revenue-filter-grid input, .bo-revenue-filter-grid select { min-width: 0; height: 36px; padding: 0 11px; border: 1px solid #ececec; background: #fff; color: #111; font-size: 12px; }
.bo-revenue-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.bo-revenue-filter-actions button { min-width: 82px; height: 35px; border: 0; background: #243561; color: #fff; font-size: 11px; font-weight: 800; }
.bo-revenue-filter-actions button[type="reset"] { background: #ededed; color: #222; }
.bo-revenue-table-card { min-height: 540px; margin: 0 24px; padding: 20px 12px 14px; overflow: auto; border-radius: 14px; background: #e5e5e5; }
.bo-revenue-table { width: 100%; min-width: 520px; border-collapse: collapse; color: #111; font-size: 12px; }
.bo-revenue-table th { height: 42px; padding: 6px 16px; background: #e5e5e5; font-size: 11px; text-align: left; }
.bo-revenue-table th:first-child { width: 50%; }
.bo-revenue-table th:last-child { display: flex; min-width: 250px; align-items: center; justify-content: space-between; gap: 12px; }
.bo-revenue-table th button { height: 34px; padding: 0 13px; border: 1px solid #d9d9d9; background: #eee; color: #151515; font-weight: 500; }
.bo-revenue-table td { height: 36px; padding: 4px 12px; border-right: 1px solid #d7d7d7; border-bottom: 1px solid #d7d7d7; background: #f8f8f8; }
.bo-revenue-table td:last-child { position: relative; min-width: 250px; }
.bo-revenue-user { display: flex; min-width: 0; align-items: center; gap: 6px; padding-left: calc(var(--report-level) * 24px); }
.bo-revenue-user > button, .bo-revenue-spacer { display: grid; width: 16px; height: 24px; flex: 0 0 16px; place-items: center; padding: 0; border: 0; background: transparent; color: #111; font-size: 22px; line-height: 1; }
.bo-revenue-role-icon { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 2px solid #111; border-radius: 5px; background: #f3f3f3; font-size: 14px; }
.bo-revenue-row.admin .bo-revenue-role-icon { border-color: #18b8b6; }
.bo-revenue-row.player .bo-revenue-role-icon { border-color: #e8aa00; border-radius: 50%; }
.bo-revenue-user b { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.bo-revenue-profit { font-size: 11px; }.bo-revenue-profit.positive { color: #17ba3e; }.bo-revenue-profit.negative { color: #ff2626; }
.bo-revenue-info { position: absolute; top: 50%; right: 14px; display: grid; width: 18px; height: 18px; translate: 0 -50%; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #050505; color: #fff; font: 800 11px/1 Georgia, serif; }
.bo-revenue-compact .bo-revenue-info { display: none; }.bo-revenue-compact .bo-revenue-table td:last-child { min-width: 160px; }
.bo-report-info-dialog { width: min(318px, calc(100vw - 28px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 11px; background: #ededed; box-shadow: 0 15px 45px #0006; }
.bo-report-info-dialog::backdrop { background: #0009; }
.bo-report-info-dialog article { padding: 0 22px 20px; }
.bo-report-info-dialog header { display: flex; min-height: 63px; align-items: center; justify-content: center; border-bottom: 1px solid #fff; }
.bo-report-info-dialog h2 { margin: 0; color: #f2b900; font-size: 20px; overflow-wrap: anywhere; text-align: center; }
.bo-report-info-dialog header button { position: absolute; top: 14px; right: 18px; width: 34px; height: 34px; border: 1px solid #fff; background: transparent; color: #111; font-size: 24px; }
.bo-report-info-dialog dl { margin: 19px 0 0; overflow: hidden; border: 2px solid #fff; border-radius: 13px; }
.bo-report-info-dialog dl > div { display: grid; grid-template-columns: 1.12fr 1.18fr; min-height: 34px; }
.bo-report-info-dialog dt, .bo-report-info-dialog dd { display: flex; align-items: center; margin: 0; padding: 5px 7px; font-size: 11px; }
.bo-report-info-dialog dd { border-bottom: 1px solid #fff; background: #dedede; }.bo-report-info-dialog dl > div:last-child dd { border-bottom: 0; }
.bo-password-dialog { width: min(350px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 12px; background: #ececec; box-shadow: 0 14px 45px #0007; }
.bo-password-dialog::backdrop { background: #0009; }
.bo-password-dialog form { display: grid; gap: 13px; padding: 0 22px 20px; }
.bo-password-dialog header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #fff; }
.bo-password-dialog h2 { color: #f3b900; font-size: 19px; text-transform: uppercase; }.bo-password-dialog header button { width: 35px; height: 35px; border: 1px solid #fff; background: transparent; font-size: 24px; }
.bo-password-dialog label { display: grid; gap: 6px; color: #969696; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.bo-password-dialog input { height: 45px; padding: 0 13px; border: 1px solid #fff; outline: 0; background: #f8f8f8; }
.bo-password-dialog p { margin: 0; color: #777; font-size: 9px; }.bo-password-dialog form > button { min-height: 44px; border: 0; background: #f5f0e5; color: #172033; font-weight: 900; text-transform: uppercase; }
.bo-empty { margin: 26px auto; color: #788196; font-size: 11px; text-align: center; }
.bo-message { position: fixed; z-index: 110; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 30px)); margin: 0; padding: 12px 16px; border-radius: 9px; background: #243b6a; box-shadow: 0 10px 30px #0004; color: #fff; font-size: 11px; }
.bo-message:empty { display: none; }.bo-message.error { background: #8b1921; }.bo-message.success { background: #087345; }
body.superadmin-open { overflow-x: hidden; background: #f3f3f3; }

@media (max-width: 1150px) {
  .bo-topbar { grid-template-columns: 200px minmax(390px, 1fr) auto; padding-left: 22px; }
  .bo-product-nav { gap: 7px; }.bo-product-nav button { min-width: 68px; font-size: 11px; }
  .bo-account-name { display: none; }
  .bo-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .bo-trend-card { grid-column: 1 / -1; grid-row: auto; }
  .bo-users-card { grid-column: 1 / -1; }
  .bo-ring-card { border-radius: 16px !important; }
  .bo-user-editor-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}

@media (max-width: 760px) {
  .bo-topbar { position: static; grid-template-columns: minmax(0, 1fr) auto; min-height: 62px; margin: 0; padding: 0 10px; }
  .bo-logo img { width: 38px; height: 38px; }.bo-logo strong { font-size: 18px; }.bo-product-nav { grid-column: 1 / -1; grid-row: 2; height: 54px; justify-content: start; overflow-x: auto; }
  .bo-product-nav button { flex: 0 0 87px; }.bo-product-nav i { width: 19px; height: 19px; font-size: 10px; }.bo-balance { display: none; }
  .bo-shell { display: block; }.bo-sidebar { position: sticky; top: 0; display: flex; min-height: 68px; padding: 6px 9px; overflow: visible; border-bottom: 1px solid #ddd; }
  .bo-sidebar > button { flex: 1; min-height: 56px; }.bo-side-icon { width: 35px; height: 35px; border-radius: 9px; font-size: 20px; }.bo-sidebar > button b { font-size: 9px; }
  .bo-search-menu { position: fixed; top: 175px; left: auto; right: 8px; }
  .bo-main { padding: 10px 8px 28px; }.bo-page-heading { padding-inline: 5px; }.bo-dashboard-grid { grid-template-columns: 1fr; gap: 10px; }
  .bo-trend-card { min-height: 410px; padding: 18px 12px; }.bo-network-chart { height: 285px; }.bo-users-card { min-height: 95px; }.bo-users-card > span { font-size: 18px; }
  .bo-ring-card { grid-template-columns: 135px minmax(0, 1fr); min-height: 210px; padding: 16px; }.bo-ring-visual { width: 125px; height: 125px; }.bo-ring-visual::after { inset: 29px; }
  .bo-network-toolbar { align-items: stretch; flex-direction: column; padding: 10px 5px; }.bo-network-toolbar label { width: 100%; }.bo-network-toolbar > div { flex-wrap: wrap; }
  .bo-network-table-wrap { margin: 0; }.bo-user-editor-grid { grid-template-columns: 1fr; }.bo-search-page { padding-inline: 4px; }.bo-search-card { margin-top: 8px; padding: 16px; }
  .bo-wallet-metrics, .bo-coupon-metrics { grid-template-columns: 1fr 1fr; }
  .bo-filter-panel { grid-template-columns: 1fr 1fr; margin: 8px 0 12px; }.bo-report-table-wrap { margin: 0; }.bo-report-summary { grid-template-columns: 1fr 1fr; margin: 8px 0 12px; }
  .bo-revenue-filter-card, .bo-revenue-table-card { margin-inline: 4px; }.bo-revenue-table-card { padding-inline: 12px; }.bo-revenue-filter-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .bo-logo small { display: none; }.bo-account-menu-button { width: 36px; height: 36px; }.bo-ring-card { grid-template-columns: 1fr; gap: 14px; }.bo-ring-legend { width: 100%; }.bo-wallet-metrics, .bo-coupon-metrics { grid-template-columns: 1fr; }
  .bo-search-card label > div { grid-template-columns: 1fr; }.bo-search-card button { min-height: 42px; }
  .bo-revenue-filter-grid { grid-template-columns: 1fr; }.bo-revenue-filter-actions { grid-column: 1; }.bo-revenue-table { min-width: 440px; }
}

@keyframes value-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: .22; filter: brightness(1.25); }
}
@keyframes recent-pulse {
  from { box-shadow: inset 16px 0 25px #ffc21a66; }
  to { box-shadow: inset 0 0 0 #ffc21a00; }
}

@media (max-width: 980px) {
  .connection-pill strong { max-width: 250px; }
  .market-bar { grid-template-columns: 270px minmax(0, 1fr); }
  .event-row { grid-template-columns: 270px repeat(var(--market-count), minmax(160px, 1fr)); overflow-x: auto; }
  .league-rows { overflow-x: auto; }
  .event-row { min-width: 910px; }
  .fanta-leagues-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .account-actions { grid-template-columns: 1fr; }
  .header-row, .main-nav, .sport-tabs, main, footer { width: min(100%, calc(100% - 18px)); }
  .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 8px; padding: 12px 0; }
  .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
  .header-utility { display: contents; }
  .header-primary-actions { grid-column: 2; grid-row: 1; }
  .header-action { width: 43px; min-height: 43px; padding: 0; }
  .header-action-label, .header-action b { display: none; }
  .connection-pill { width: 100%; max-width: none; }
  .header-row .connection-pill { grid-column: 1 / -1; grid-row: 2; }
  .connection-pill strong { max-width: calc(100vw - 82px); }
  .main-nav { min-height: 58px; overflow-x: auto; scrollbar-width: thin; }
  .nav-item { flex: 0 0 92px; min-width: 92px; padding: 4px; font-size: 11px; }
  .nav-item > span:last-of-type { overflow: hidden; text-overflow: ellipsis; }
  .nav-item .nav-icon { font-size: 17px; }
  .nav-item b { display: none; }
  .nav-action { margin-left: 0; }
  .account-button #balance-badge { display: none; }
  .sports-ribbon .sport-tabs { width: 100%; }
  .sport-tab { min-width: 96px; min-height: 68px; padding: 7px 10px; }
  main { padding-top: 10px; }
  .community-intro { grid-template-columns: 1fr; gap: 9px; padding: 14px; }
  .fanta-leagues-hero { grid-template-columns: 1fr; gap: 10px; padding: 21px 19px; }
  .fanta-leagues-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fanta-league-card { grid-template-columns: 50px minmax(0, 1fr) 12px; min-height: 99px; padding: 11px; gap: 9px; }
  .fanta-logo { width: 50px; height: 50px; border-radius: 14px 6px 14px 6px; font-size: 13px; }
  .tools { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .tool-actions { display: grid; flex: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-content: stretch; gap: 10px; }
  .display-options { display: grid; justify-content: stretch; gap: 10px; }
  .live-summary { flex: 0 0 auto; justify-content: flex-end; }
  .market-bar { display: block; }
  .market-bar-label { min-height: 36px; }
  .market-bar-label small { display: inline; margin-left: auto; font-size: 9px; }
  .market-selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-row { display: block; min-width: 0; }
  .match-cell { position: sticky; left: 0; grid-template-columns: 26px 82px minmax(0, 1fr) 34px; min-height: 66px; border-right: 0; border-bottom: 1px solid var(--line); }
  .event-row .market-cell { display: inline-grid; width: 50%; min-height: 64px; vertical-align: top; border-bottom: 1px solid var(--line); }
  .league-rows { overflow: visible; }
  .league-head { position: sticky; top: 68px; z-index: 4; }
  .bet-slip { right: 7px; bottom: 7px; width: calc(100vw - 14px); }
  .bet-slip-launcher { right: 9px; bottom: 9px; }
  .app-toast { bottom: 14px; }
  .modal { width: calc(100vw - 14px); max-height: calc(100vh - 14px); }
  .admin-user { grid-template-columns: 1fr; }
  .admin-user > header { grid-column: 1; }
  .admin-budget-transfer { grid-template-columns: minmax(0, 1fr) auto; }
  .player-limit-editor { grid-template-columns: 1fr 1fr; }
  .player-limit-editor button { grid-column: 1 / -1; width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .commission-stat-grid { grid-template-columns: 1fr 1fr; }
  .bank-policy-analytics article { grid-template-columns: 1fr 1fr 1fr; }
  .bank-policy-analytics article > div { grid-column: 1 / -1; }
  .player-financial-summary { grid-template-columns: 1fr; }
  .player-outcome-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bank-open-bets { grid-template-columns: 1fr; }
  .super-user.locked { grid-template-columns: minmax(120px, 1fr) auto; }
  .super-user > header { grid-template-columns: minmax(120px, 1fr) auto; }
  .super-user > header button { grid-column: 1 / -1; width: 100%; }
  .admin-funding { grid-template-columns: minmax(0, 1fr) auto; }
  .bank-policy-editor { grid-template-columns: 1fr 1fr; }
  .bank-policy-editor button { grid-column: 1 / -1; width: 100%; }
  .assignment-row { grid-template-columns: minmax(120px, 1fr) 88px; }
  .assignment-row > div { grid-column: 1 / -1; }
  .assignment-row select { grid-column: 1; }
  .assignment-row button { grid-column: 2; }
  .superadmin-fanta-team-requests { grid-template-columns: 1fr; }
  .bank-chart { gap: 2px; }
  .player-analytics-grid { grid-template-columns: 1fr 1fr; }
  .player-formulas { grid-template-columns: 1fr; }
  .player-movement { grid-template-columns: minmax(0, 1fr) auto; }
  .player-movement time { grid-column: 1 / -1; }
  .player-movement .movement-amount { grid-column: 2; grid-row: 2; }
  .player-movement > span { grid-column: 1 / -1; }
  .legal-copy { padding-inline: 15px; }
  .install-banner { grid-template-columns: 50px minmax(0, 1fr) 28px; gap: 9px; }
  .install-banner img { width: 50px; height: 50px; }
  .install-banner .primary-button { grid-column: 1 / -1; width: 100%; }
  .install-close { grid-column: 3; grid-row: 1; }
}

@media (max-width: 420px) {
  .brand-copy strong { font-size: 20px; }
  .nav-item { gap: 4px; }
  .fanta-leagues-grid { grid-template-columns: 1fr; }
  .fanta-league-card { min-height: 92px; }
  .fanta-league-waiting { padding: 27px 18px 24px; }
  .market-selectors { grid-template-columns: 1fr 1fr; gap: 5px; padding: 6px; }
  .market-selectors select { font-size: 10px; }
  .teams { padding-inline: 7px; }
  .teams span { font-size: 11px; }
  .player-outcome-summary { grid-template-columns: 1fr 1fr; }
  .player-chart-row { grid-template-columns: 68px minmax(60px, 1fr) 20px 74px; gap: 5px; }
  .history-filter-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-date-fields { grid-template-columns: 1fr; }
  .commission-stat-grid, .player-limit-editor, .bank-policy-editor { grid-template-columns: 1fr; }
  .player-limit-editor button, .bank-policy-editor button { grid-column: 1; }
  .bank-policy-analytics article { grid-template-columns: 1fr; }
  .bank-policy-analytics article > div { grid-column: 1; }
  .bank-policy-analytics article > span { grid-template-columns: 1fr auto; justify-items: start; }
  .bank-policy-analytics article > span b { justify-self: end; }
  .player-analytics-grid { grid-template-columns: 1fr; }
  .player-analysis-heading { align-items: start; flex-direction: column; }
  .player-analysis-heading > span { text-align: left; }
}
