/* LiveTennis Grand Slam Predictor — scoped to .lt-gs */
.lt-gs {
    --bg: #f3f6f1;
    --surface: #ffffff;
    --surface-2: #f8faf6;
    --ink: #17211b;
    --muted: #6f7a72;
    --faint: #98a39b;
    --line: #e4e9e1;
    --line-strong: #d2d9cf;
    --primary: #1d6b46;
    --primary-d: #0f4a2e;
    --accent: #5b2d82;
    --win-bg: #eaf4ee;
    --radius: 10px;
    --gap: 28px;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    --font-head: 'Archivo', system-ui, sans-serif;
    --chip-h: 31px;
  }.lt-gs * { box-sizing: border-box; }.lt-gs, .lt-gs { margin: 0; }.lt-gs {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" 1;
  }.lt-gs { width: 100%; }.lt-gs /* ---- widget shell ---- */
  .lt {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 16px 64px;
  }.lt-gs .lt-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
  }.lt-gs .brand { display: flex; align-items: center; gap: 10px; }.lt-gs .brand-mark {
    width: 30px; height: 30px; border-radius: 7px;
    object-fit: cover; display: block; background: #fff;
  }.lt-gs .brand-txt { line-height: 1.05; }.lt-gs .brand-txt .lt-name { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .2px; }.lt-gs .brand-txt .lt-sub { font-size: 11px; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }.lt-gs .head-r { display: flex; align-items: center; gap: 8px; }.lt-gs .badge-mock {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--accent); background: #f1ebf6; border: 1px solid #e3d6ef;
    padding: 4px 9px; border-radius: 999px; font-weight: 600;
  }.lt-gs .title-row { margin-bottom: 16px; }.lt-gs .title-row h1 {
    font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3.4vw, 32px);
    margin: 0 0 4px; letter-spacing: -0.3px;
  }.lt-gs .title-row p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 62ch; }.lt-gs /* ---- champion banner ---- */
  .banner {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
    position: relative; overflow: hidden;
  }.lt-gs .banner::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(29,107,70,.05), transparent 60%);
  }.lt-gs .banner-side { min-width: 0; }.lt-gs .banner-side .lbl {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint);
    margin-bottom: 5px; font-weight: 600;
  }.lt-gs .banner-side.r { text-align: right; }.lt-gs .fin-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; min-width: 0; }.lt-gs .banner-side.r .fin-name { justify-content: flex-end; }.lt-gs .fin-name .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.lt-gs .fin-name.tbd { color: var(--faint); font-weight: 500; }.lt-gs .champ-center { text-align: center; padding: 0 6px; }.lt-gs .champ-center .trophy { font-size: 17px; }.lt-gs .champ-center .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--primary); font-weight: 700; margin: 2px 0 4px; }.lt-gs .champ-center .cn {
    font-family: var(--font-head); font-weight: 800; font-size: clamp(17px, 2.4vw, 23px);
    display: flex; align-items: center; gap: 9px; justify-content: center; letter-spacing: -.2px;
  }.lt-gs .champ-center .cn.tbd { color: var(--line-strong); }.lt-gs /* ---- controls ---- */
  .controls {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 11px 14px; margin-bottom: 14px;
  }.lt-gs .btn {
    font-family: var(--font-body); font-weight: 600; font-size: 13px;
    border-radius: 9px; padding: 9px 14px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink); cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; transition: .14s;
    white-space: nowrap;
  }.lt-gs .btn:hover { border-color: var(--primary); color: var(--primary); }.lt-gs .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }.lt-gs .btn.primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }.lt-gs .btn.ghost { border-color: transparent; background: transparent; color: var(--muted); padding: 9px 8px; }.lt-gs .btn.ghost:hover { color: var(--accent); }.lt-gs .btn svg { width: 15px; height: 15px; }.lt-gs .ctrl-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 2px; }.lt-gs .upset { display: flex; align-items: center; gap: 10px; }.lt-gs .upset .ulbl { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }.lt-gs .upset .uval {
    font-size: 11px; font-weight: 700; color: var(--accent);
    min-width: 64px; text-align: left;
  }.lt-gs input[type=range].slider {
    -webkit-appearance: none; appearance: none; height: 4px; width: 116px;
    border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent));
    outline: none;
  }.lt-gs input[type=range].slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  }.lt-gs input[type=range].slider::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    border: 2px solid var(--accent); cursor: pointer;
  }.lt-gs .progress { margin-left: auto; display: flex; align-items: center; gap: 10px; }.lt-gs .progress .ptxt { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }.lt-gs .progress .ptxt b { color: var(--ink); font-family: var(--font-head); }.lt-gs .pbar { width: 120px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }.lt-gs .pbar > i { display: block; height: 100%; background: var(--primary); transition: width .3s; }.lt-gs /* ---- tabs ---- */
  .tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }.lt-gs .tab {
    flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface);
    border-radius: 10px; padding: 8px 14px; cursor: pointer; text-align: left;
    transition: .14s; min-width: 0;
  }.lt-gs .tab:hover { border-color: var(--line-strong); }.lt-gs .tab.active { border-color: var(--primary); background: var(--win-bg); }.lt-gs .tab .t-top { font-family: var(--font-head); font-weight: 700; font-size: 13px; white-space: nowrap; }.lt-gs .tab .t-sub { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 1px; white-space: nowrap; }.lt-gs .tab.active .t-sub { color: var(--primary-d); }.lt-gs .tab .qf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }.lt-gs .tab .qf-dot.done { background: var(--primary); }.lt-gs /* ---- quarter toolbar ---- */
  .q-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }.lt-gs .q-toolbar .qt-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; }.lt-gs .q-toolbar .qt-title span { color: var(--muted); font-weight: 500; font-size: 13px; }.lt-gs .scroll-btns { display: flex; gap: 6px; }.lt-gs .scroll-btns .btn { padding: 7px 10px; }.lt-gs /* ---- bracket ---- */
  .scroller {
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 18px 22px;
  }.lt-gs .bracket { display: flex; gap: var(--gap); min-width: max-content; }.lt-gs .col { flex: 0 0 168px; display: flex; flex-direction: column; }.lt-gs .col-head {
    font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .8px;
    color: var(--faint); text-transform: uppercase; text-align: center;
    padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
  }.lt-gs .col-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }.lt-gs .pair { flex: 1; display: flex; flex-direction: column; justify-content: space-around; position: relative; }.lt-gs .cell { flex: 0 0 auto; position: relative; padding: 5px 0; }.lt-gs /* connectors */
  .col:not(:last-child) .pair::before {
    content: ""; position: absolute; right: calc(var(--gap) / -2);
    top: 25%; bottom: 25%; width: 2px; background: var(--line-strong);
  }.lt-gs .col:not(:last-child) .pair::after {
    content: ""; position: absolute; right: calc(var(--gap) * -1);
    top: 50%; width: calc(var(--gap) / 2); height: 2px; background: var(--line-strong);
  }.lt-gs .cell.has-in::before {
    content: ""; position: absolute; left: calc(var(--gap) / -2);
    top: 50%; width: calc(var(--gap) / 2); height: 2px; background: var(--line-strong);
  }.lt-gs /* ---- match + chip ---- */
  .match {
    display: flex; flex-direction: column; gap: 3px;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 9px; padding: 3px;
  }.lt-gs .match.decided { background: var(--surface); }.lt-gs .chip {
    display: grid; grid-template-columns: 16px 20px 1fr auto; align-items: center; gap: 7px;
    height: var(--chip-h); padding: 0 8px 0 6px; border-radius: 6px; width: 100%;
    background: transparent; border: 0; cursor: pointer; text-align: left;
    font-family: var(--font-body); color: var(--ink); transition: .12s;
  }.lt-gs .chip:hover { background: #eef2ea; }.lt-gs .chip .seed { font-size: 10px; color: var(--faint); font-weight: 700; text-align: center; }.lt-gs .chip .pname { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }.lt-gs .chip .pname .fn { color: var(--muted); font-weight: 400; }.lt-gs .chip .pname strong { font-weight: 700; }.lt-gs .chip .tick { color: var(--primary); font-weight: 700; font-size: 12px; }.lt-gs .chip.is-win { background: var(--win-bg); }.lt-gs .chip.is-win .pname strong { color: var(--primary-d); }.lt-gs .chip.is-win .seed { color: var(--primary); }.lt-gs .chip.is-out { opacity: .42; }.lt-gs .chip.is-out:hover { opacity: .7; background: transparent; }.lt-gs .chip-empty {
    display: flex; align-items: center; gap: 8px; height: var(--chip-h); padding: 0 10px;
    color: var(--faint); border-radius: 6px;
  }.lt-gs .chip-empty .dash { font-weight: 700; }.lt-gs .chip-empty .await { font-size: 11px; }.lt-gs .flag {
    width: 20px; height: auto; border-radius: 2px; display: inline-block;
    box-shadow: 0 0 0 1px rgba(0,0,0,.06); object-fit: cover; vertical-align: middle;
  }.lt-gs .flag-q {
    width: 20px; height: 14px; background: var(--line); color: var(--faint);
    font-size: 9px; font-weight: 800; display: inline-grid; place-items: center; border-radius: 2px;
  }.lt-gs .flag-code { font-size: 8px; letter-spacing: -.2px; line-height: 14px; }.lt-gs /* ---- finals stage ---- */
  .finals { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; }.lt-gs .finals-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; align-items: center; }.lt-gs .finals-sf { display: flex; flex-direction: column; gap: 22px; }.lt-gs .fstage-node .fstage-label, .lt-gs .finals-champ > .fstage-label {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px;
    color: var(--faint); font-weight: 700; margin-bottom: 7px;
  }.lt-gs .finals-final .match, .lt-gs .finals-sf .match { background: var(--surface-2); }.lt-gs .champ-card-mini {
    display: flex; align-items: center; gap: 12px; padding: 16px;
    border: 2px solid var(--primary); border-radius: 12px; background: var(--win-bg);
  }.lt-gs .champ-card-mini.empty { border: 2px dashed var(--line-strong); background: var(--surface-2); color: var(--faint); }.lt-gs .champ-card-mini .champ-name { font-family: var(--font-head); font-weight: 800; font-size: 17px; }.lt-gs .champ-card-mini .champ-sub { font-size: 12px; color: var(--muted); }.lt-gs /* ---- champion celebration / share ---- */
  .celebrate {
    margin-top: 16px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line); background: var(--surface);
  }.lt-gs .celebrate-hero {
    background:
      radial-gradient(120% 120% at 80% -10%, rgba(91,45,130,.22), transparent 55%),
      linear-gradient(135deg, var(--primary-d), var(--primary));
    color: #fff; padding: 26px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  }.lt-gs .celebrate-hero .ch-flag { width: 56px; height: auto; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }.lt-gs .celebrate-hero .ch-lbl { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .82; font-weight: 700; }.lt-gs .celebrate-hero .ch-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 4vw, 40px); line-height: 1; letter-spacing: -.5px; margin: 4px 0 6px; }.lt-gs .celebrate-hero .ch-path { font-size: 13px; opacity: .9; }.lt-gs .celebrate-actions { padding: 16px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }.lt-gs .celebrate-cta { padding: 14px 20px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); }.lt-gs .cta-card {
    border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; text-decoration: none;
    color: var(--ink); transition: .14s; display: block; background: var(--surface-2);
  }.lt-gs .cta-card:hover { border-color: var(--primary); background: var(--win-bg); transform: translateY(-1px); }.lt-gs .cta-card .cc-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); font-weight: 700; }.lt-gs .cta-card .cc-t { font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-top: 3px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }.lt-gs .cta-card .cc-t .arr { color: var(--faint); transition: .14s; }.lt-gs .cta-card:hover .cc-t .arr { color: var(--primary); transform: translateX(2px); }.lt-gs .toast {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 50;
  }.lt-gs .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }.lt-gs .footnote { margin-top: 18px; font-size: 11.5px; color: var(--faint); text-align: center; }.lt-gs /* tweak-driven */
  .hide-seeds .chip .seed { visibility: hidden; }.lt-gs .no-connectors .pair::before, .lt-gs .no-connectors .pair::after, .lt-gs .no-connectors .cell.has-in::before { display: none; }.lt-gs /* ---- responsive ---- */
  @media (max-width: 720px) {
    .banner { grid-template-columns: 1fr; gap: 12px; text-align: center; }
    .banner-side.r { text-align: center; }
    .banner-side.r .fin-name { justify-content: center; }
    .champ-center .cn { justify-content: center; }
    .progress { margin-left: 0; width: 100%; }
    .controls { gap: 9px; }
    .finals-grid { grid-template-columns: 1fr; gap: 18px; }
    .celebrate-cta { grid-template-columns: 1fr; }
  }
/* ---- locks + staged simulate (lock feature) ---- */
.lt-gs .match { position: relative; }
.lt-gs .match.locked { border-color: var(--primary); box-shadow: 0 0 0 2px var(--win-bg); }
.lt-gs .lock-pip { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--faint); display: grid; place-items: center; cursor: pointer; padding: 0; line-height: 0; z-index: 2; transition: .12s; }
.lt-gs .lock-pip:hover { border-color: var(--primary); color: var(--primary); }
.lt-gs .lock-pip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.lt-gs .stage-sim { display: flex; align-items: center; gap: 5px; }
.lt-gs .stage-sim .ssl { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.lt-gs .btn.mini { padding: 7px 10px; font-size: 12px; }
.lt-gs .ctrl-group { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.lt-gs .col { flex: 0 0 240px; }
