:root {
  --ink: #eef3ef;
  --muted: #98a59f;
  --paper: #0b100e;
  --card: #151c19;
  --line: #2a3731;
  --forest: #081b15;
  --forest-2: #176548;
  --lime: #b9e769;
  --orange: #ed7448;
  --orange-dark: #ff8a5d;
  --gold: #ddb85a;
  --winner-blue: #3b8fe8;
  --winner-blue-dark: #7dbbff;
  --loser-orange: #ed7548;
  --final-gold: #dfb64a;
  --danger: #e15b52;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  --radius: 18px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(242, 118, 73, .28); outline-offset: 2px;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 238px; z-index: 20; padding: 30px 20px 22px;
  display: flex; flex-direction: column; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 20% 90%, rgba(185, 231, 105, .12), transparent 34%), var(--forest);
}
.sidebar::after {
  content: ""; position: absolute; width: 270px; height: 270px; right: -98px; bottom: 45px;
  background: url('/assets/logo-mark.png') center/contain no-repeat; filter: invert(1); opacity: .035; pointer-events: none;
}
.brand { position: relative; z-index: 1; display: flex; gap: 11px; align-items: center; text-decoration: none; color: #fff; margin: 0 8px 46px; }
.brand img { width: 43px; height: 43px; object-fit: contain; border-radius: 10px; background: #fff; }
.brand span { display: grid; line-height: 1; }
.brand strong { font: 600 20px/1 "Oswald", sans-serif; letter-spacing: .07em; }
.brand small { margin-top: 6px; color: var(--lime); font: 600 9px/1 "DM Sans", sans-serif; letter-spacing: .34em; }
.main-nav { position: relative; z-index: 1; display: grid; gap: 8px; }
.nav-item { width: 100%; min-height: 50px; border: 0; border-radius: 12px; padding: 0 13px; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; background: transparent; color: #aebdb7; cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 var(--orange); }
.nav-item b { font-size: 14px; font-weight: 600; }
.nav-item em { min-width: 23px; height: 23px; padding: 0 6px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 11px; font-style: normal; border-radius: 50px; }
.icon { width: 20px; height: 20px; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-bottom { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 15px; }
.sync-status { display: flex; gap: 9px; align-items: center; padding: 0 8px; color: #96aaa2; font-size: 11px; }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(185,231,105,.1); }
.sync-status.offline i { background: var(--gold); }
.admin-chip { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(0,0,0,.12); color: #fff; cursor: pointer; text-align: left; }
.admin-chip > .icon { padding: 8px; width: 34px; height: 34px; border-radius: 9px; background: var(--orange); }
.admin-chip span:last-child { display: grid; }
.admin-chip small { color: #9eb0a9; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.admin-chip b { margin-top: 2px; font-size: 12px; }

.main-content { grid-column: 2; min-width: 0; padding: 0 43px 50px; }
.topbar { height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.topbar p { margin: 0 0 5px; color: var(--orange-dark); font: 700 9px/1 "DM Sans", sans-serif; letter-spacing: .2em; }
.topbar h1 { margin: 0; font: 600 30px/1.15 "Oswald", sans-serif; letter-spacing: -.01em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.primary-button, .ghost-button, .danger-button, .soft-button {
  min-height: 43px; border-radius: 11px; padding: 0 15px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 0; cursor: pointer; font-weight: 700; font-size: 12px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.primary-button { color: #fff; background: var(--orange); box-shadow: 0 8px 18px rgba(242,118,73,.22); }
.primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.ghost-button { border: 1px solid var(--line); background: rgba(255,255,255,.65); color: #53605b; }
.ghost-button:hover { background: #fff; }
.soft-button { background: #eef2ed; color: #35423d; }
.danger-button { background: #fff0ed; color: var(--danger); }
.primary-button .icon, .ghost-button .icon, .soft-button .icon, .danger-button .icon { width: 16px; height: 16px; }
.icon-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-button:hover { color: var(--ink); border-color: #bcc5bf; }
.icon-button .icon { width: 16px; height: 16px; }
.view { animation: enter .25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }

.hero {
  min-height: 252px; border-radius: 24px; padding: 32px 35px; position: relative; overflow: hidden; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: center; box-shadow: var(--shadow);
  background: linear-gradient(90deg, rgba(7,28,23,.93) 0%, rgba(9,37,29,.78) 52%, rgba(8,31,25,.18) 100%), url('/assets/deobriga-association-bg-v2.jpg') center/cover;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, transparent 60%, rgba(185,231,105,.08)); }
.hero-copy, .hero-side { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.hero-kicker::before { content: ""; width: 27px; height: 2px; background: var(--orange); }
.hero h2 { max-width: 620px; margin: 0; font: 600 clamp(32px, 4vw, 50px)/1.03 "Oswald", sans-serif; letter-spacing: -.02em; }
.hero h2 span { color: var(--lime); }
.hero p { max-width: 520px; margin: 14px 0 23px; color: #b8c8c1; font-size: 13px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .ghost-button { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; }
.hero-side { display: grid; justify-items: center; }
.target-orbit { width: 210px; height: 210px; border-radius: 50%; position: relative; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); }
.target-orbit::before, .target-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.target-orbit::before { inset: 28px; }.target-orbit::after { inset: 60px; }
.target-orbit img { width: 112px; height: 112px; padding: 9px; object-fit: contain; background: rgba(255,255,255,.9); border-radius: 50%; filter: contrast(1.4); }
.target-dot { position: absolute; width: 13px; height: 13px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 6px rgba(242,118,73,.12); top: 12px; right: 48px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin: 18px 0 25px; }
.stat-card { min-height: 95px; border: 1px solid rgba(219,225,218,.85); border-radius: 16px; padding: 17px 18px; display: flex; gap: 13px; align-items: center; background: rgba(255,255,255,.78); }
.stat-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--forest-2); background: #e8f2ea; }
.stat-card:nth-child(2) .stat-icon { color: #b14929; background: #fff0e9; }.stat-card:nth-child(3) .stat-icon { color: #8a6c18; background: #fff8df; }.stat-card:nth-child(4) .stat-icon { color: #5c526f; background: #f1edf6; }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-copy { display: grid; }
.stat-copy strong { font: 600 25px/1 "Oswald", sans-serif; }.stat-copy span { margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 600; }

.section-heading { margin: 0 0 14px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font: 600 20px/1.2 "Oswald", sans-serif; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.text-button { border: 0; padding: 5px 0; background: none; color: var(--orange-dark); font-size: 11px; font-weight: 700; cursor: pointer; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .7fr); gap: 18px; align-items: start; }
.panel { border: 1px solid rgba(219,225,218,.9); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(24,44,37,.035); overflow: hidden; }
.panel-header { min-height: 62px; padding: 0 19px; border-bottom: 1px solid #edf0ec; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-header h3 { margin: 0; font-size: 12px; }.panel-header small { color: var(--muted); }

.tournament-list { display: grid; }
.tournament-row { width: 100%; padding: 15px 19px; border: 0; border-bottom: 1px solid #edf0ec; display: grid; grid-template-columns: 45px minmax(0,1fr) auto auto; gap: 13px; align-items: center; background: transparent; text-align: left; cursor: pointer; }
.tournament-row:last-child { border-bottom: 0; }.tournament-row:hover { background: #fafbf8; }
.date-block { width: 43px; height: 47px; border-radius: 10px; display: grid; place-items: center; align-content: center; background: var(--forest); color: #fff; }
.date-block b { font: 600 18px/1 "Oswald", sans-serif; }.date-block small { color: var(--lime); font-size: 8px; font-weight: 700; margin-top: 3px; }
.tournament-row h4 { margin: 0; font-size: 12px; }.tournament-row p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.status-pill, .tag { width: max-content; border-radius: 100px; padding: 5px 9px; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-pill.live { color: #157249; background: #e5f5eb; }.status-pill.live::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #26a268; }
.status-pill.draft { color: #8a6c18; background: #fff6d9; }.status-pill.completed { color: #5f6b66; background: #edf0ee; }
.format-label { color: var(--muted); font-size: 9px; white-space: nowrap; }

.favorite-list { padding: 8px 17px 13px; }
.favorite-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--forest-2); font-size: 10px; font-weight: 700; }
.favorite-row:nth-child(2n) .avatar { background: var(--orange); }.favorite-row:nth-child(3n) .avatar { background: #8b7a46; }
.favorite-row b { display: block; font-size: 10px; }.favorite-row small { color: var(--muted); font-size: 8px; }
.average-badge { min-width: 40px; padding: 6px; border-radius: 8px; text-align: center; background: #f0f3ef; font: 600 12px/1 "Oswald", sans-serif; }
.average-badge small { display: block; margin-top: 3px; font: 700 6px/1 "DM Sans"; letter-spacing: .1em; }
.average-badge.cricket { color: #a94725; background: #fff0e9; }
.dual-average { display: flex; gap: 5px; align-items: center; }
.dual-average > span { min-width: 42px; padding: 6px 7px; border-radius: 8px; color: var(--winner-blue-dark); background: #edf5ff; text-align: center; font: 600 12px/1 "Oswald", sans-serif; }
.dual-average > span:last-child { color: #a94725; background: #fff0e9; }
.dual-average small { display: block; margin-top: 3px; color: inherit; font: 700 6px/1 "DM Sans", sans-serif; letter-spacing: .1em; }

.page-tools { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.segmented { padding: 4px; display: flex; gap: 2px; border-radius: 11px; background: #e7ebe6; overflow-x: auto; }
.segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(31,49,43,.08); }
.search-box { min-width: 230px; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 8px; background: #fff; }
.search-box .icon { width: 16px; color: var(--muted); }.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; color: var(--ink); }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.tournament-card { min-height: 221px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; position: relative; overflow: hidden; display: flex; flex-direction: column; background: #fff; cursor: pointer; transition: .18s ease; }
.tournament-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c8d0ca; }
.tournament-card::after { content: ""; position: absolute; width: 115px; height: 115px; right: -25px; top: -19px; background: url('/assets/logo-mark.png') center/contain no-repeat; opacity: .035; }
.card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.card-top .date-block { width: 48px; height: 51px; }
.card-menu { position: relative; z-index: 2; }
.card-status-actions { position: relative; z-index: 3; display: flex; align-items: center; gap: 7px; }
.card-copy { width: 31px; height: 31px; background: #f7f9f6; }
.card-copy:hover { color: var(--orange-dark); border-color: rgba(242,118,73,.42); background: #fff7f2; }
.tournament-card h3 { margin: 19px 0 6px; font: 600 18px/1.15 "Oswald", sans-serif; }.tournament-card p { margin: 0; color: var(--muted); font-size: 10px; }
.card-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid #edf0ec; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }
.card-meta span { display: flex; align-items: center; gap: 5px; }.card-meta .icon { width: 13px; height: 13px; }
.empty-card { min-height: 220px; border: 1px dashed #c9d0cb; border-radius: 17px; display: grid; place-items: center; padding: 25px; text-align: center; color: var(--muted); background: rgba(255,255,255,.35); }
.empty-card .icon { width: 28px; height: 28px; color: var(--orange); }.empty-card b { display: block; margin-top: 10px; color: var(--ink); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.data-table th { height: 42px; padding: 0 16px; color: #84908b; background: #f8f9f6; text-align: left; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.data-table td { height: 58px; padding: 0 16px; border-top: 1px solid #edf0ec; font-size: 11px; }
.player-cell { display: flex; align-items: center; gap: 10px; }.player-cell b { font-size: 11px; }.player-cell small { display: block; color: var(--muted); margin-top: 2px; }
.star-button { border: 0; background: transparent; color: #aeb6b1; cursor: pointer; padding: 5px; }.star-button.active { color: var(--gold); }.star-button .icon { fill: currentColor; }

.tournament-banner { min-height: 170px; padding: 27px 30px; border-radius: 21px; position: relative; overflow: hidden; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 20px; background: linear-gradient(90deg, rgba(8,34,27,.93), rgba(8,34,27,.55)), url('/assets/deobriga-association-bg-v2.jpg') center/cover; }
.tournament-banner::after { content: ""; position: absolute; inset: auto -40px -70px auto; width: 240px; height: 240px; background: url('/assets/logo-mark.png') center/contain no-repeat; filter: invert(1); opacity: .06; }
.tournament-banner > * { position: relative; z-index: 1; }.tournament-banner h2 { margin: 9px 0 7px; font: 600 29px/1.1 "Oswald"; }.tournament-banner p { margin: 0; color: #c0d0ca; font-size: 11px; }
.banner-actions { display: flex; gap: 8px; }.banner-actions .ghost-button { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.tabs { margin: 17px 0; padding: 0 4px; display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { min-height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tabs button.active { color: var(--ink); border-color: var(--orange); }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.7fr); gap: 17px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.info-item { min-height: 85px; padding: 18px; border-right: 1px solid #edf0ec; border-bottom: 1px solid #edf0ec; }
.info-item:nth-child(2n) { border-right: 0; }.info-item:nth-last-child(-n+2) { border-bottom: 0; }
.info-item small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }.info-item b { display: block; margin-top: 8px; font-size: 12px; }
.progress-block { padding: 20px; }.progress-head { display: flex; justify-content: space-between; font-size: 10px; }.progress-bar { height: 7px; margin-top: 10px; border-radius: 20px; overflow: hidden; background: #e8ece8; }.progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--forest-2),var(--lime)); }
.next-match { padding: 15px 19px; border-top: 1px solid #edf0ec; }.next-match:first-of-type { border-top: 0; }.next-match small { color: var(--orange-dark); font-size: 8px; font-weight: 700; }.next-match-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 8px; }.next-match-row b:last-child { text-align: right; }.versus { color: var(--muted); font-size: 8px; }
.match-queue { display: grid; }
.queue-row { width: 100%; min-height: 70px; padding: 11px 15px; border: 0; border-top: 1px solid #edf0ec; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; align-items: center; background: rgba(255,255,255,.82); text-align: left; transition: background .16s ease, transform .16s ease; }
.queue-row:first-child { border-top: 0; }
.queue-row[data-action] { cursor: pointer; }
.queue-row[data-action]:hover { position: relative; z-index: 1; background: #f8fbf8; transform: translateX(2px); }
.queue-row.playing { background: linear-gradient(90deg,#edf8f1 0%,#fff 72%); box-shadow: inset 4px 0 #21a568; }
.queue-position { min-width: 49px; padding: 7px 6px; border-radius: 8px; color: #63706b; background: #edf0ed; text-align: center; font-size: 7px; font-weight: 800; letter-spacing: .09em; }
.queue-row.playing .queue-position { color: #fff; background: #19895a; box-shadow: 0 5px 12px rgba(25,137,90,.2); }
.queue-copy { min-width: 0; display: grid; gap: 5px; }
.queue-copy small { color: var(--orange-dark); font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.queue-copy b { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: 10px; white-space: nowrap; }
.queue-copy i { padding: 0 4px; color: #9aa49f; font-size: 7px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.board-badge { min-width: 68px; padding: 7px 8px; border: 1px solid #dce1dd; border-radius: 8px; color: #8b9691; background: #f6f8f6; text-align: center; font-size: 7px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.board-badge.assigned { color: #fff; border-color: var(--winner-blue); background: var(--winner-blue); box-shadow: 0 5px 12px rgba(50,120,200,.18); }

.participant-picker { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: 17px; }
.player-pool { max-height: 510px; overflow: auto; }.pick-row { width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #edf0ec; background: #fff; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; text-align: left; cursor: pointer; }.pick-row:hover { background: #fafbf8; }.pick-row.selected { background: #edf6ef; }.check-circle { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #ccd3ce; border-radius: 50%; color: transparent; }.selected .check-circle { color: #fff; background: var(--forest-2); border-color: var(--forest-2); }.check-circle .icon { width: 12px; height: 12px; }
.selected-list { min-height: 340px; padding: 17px; }.selected-chip { margin: 0 7px 7px 0; padding: 8px 10px; display: inline-flex; gap: 7px; align-items: center; border-radius: 9px; background: #eef2ed; font-size: 10px; }.selected-chip button { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; }
.attendance-panel .panel-header > div { min-width: 0; }
.attendance-panel .panel-header small { display: block; margin-top: 5px; font-size: 8px; }
.attendance-list { min-height: 340px; padding: 8px 14px 14px; }
.attendance-row { min-height: 62px; padding: 9px 8px 9px 11px; border-bottom: 1px solid #edf0ec; display: grid; grid-template-columns: 34px minmax(120px,1fr) minmax(122px,auto) 35px; gap: 10px; align-items: center; position: relative; }
.attendance-row::before { content: ""; position: absolute; inset: 13px auto 13px 0; width: 3px; border-radius: 5px; background: #aeb8b3; }
.attendance-row:last-child { border-bottom: 0; }
.attendance-row.status-present::before { background: #27a66a; }
.attendance-row.status-absent::before { background: var(--danger); }
.attendance-row.status-withdrawn::before { background: #7d6e91; }
.attendance-row.status-absent, .attendance-row.status-withdrawn { background: linear-gradient(90deg,rgba(199,70,60,.04),transparent 42%); }
.attendance-player { min-width: 0; }
.attendance-player b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.attendance-player small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.attendance-row label { display: grid; gap: 4px; }
.attendance-row label > small { color: #84908b; font-size: 7px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.attendance-select { min-height: 35px; border: 1px solid #d9dfda; border-radius: 8px; padding: 0 28px 0 9px; color: #45524d; background: #fff; font-size: 9px; font-weight: 700; }
.attendance-select:disabled { opacity: .65; cursor: not-allowed; }
.draw-footer { padding: 15px 17px; border-top: 1px solid #edf0ec; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.draw-footer p { margin: 0; color: var(--muted); font-size: 9px; }

.bracket-toolbar { margin-bottom: 13px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.bracket-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 9px; font-weight: 700; }
.bracket-legend span { display: flex; align-items: center; gap: 6px; }
.bracket-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--winner-blue); box-shadow: 0 0 0 3px rgba(50,120,200,.1); }
.bracket-legend span:nth-child(2) i { background: var(--loser-orange); box-shadow: 0 0 0 3px rgba(237,112,69,.1); }
.bracket-legend span:nth-child(3) i { background: var(--final-gold); box-shadow: 0 0 0 3px rgba(217,170,52,.13); }
.toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.toolbar-actions .ghost-button { min-height: 38px; padding-inline: 12px; background: #fff; }

.bracket-shell { padding: 0; overflow: auto; border: 1px solid #c8d2cc; border-radius: 22px; background: #e8ede9; box-shadow: inset 0 1px rgba(255,255,255,.9),0 16px 38px rgba(24,44,37,.09); overscroll-behavior: contain; }
.bracket-sheet { min-width: max-content; min-height: 100%; display: grid; align-items: stretch; overflow: hidden; position: relative; isolation: isolate; background: #f8faf8; }
.bracket-sheet.double { grid-template-columns: max-content 330px max-content; grid-template-areas: "losers final winners"; }
.bracket-sheet.single { grid-template-columns: max-content max-content; grid-template-areas: "winners outcome"; }
.bracket-section { min-width: max-content; margin: 0; padding: 27px 29px 34px; border: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.bracket-w { grid-area: winners; color: var(--winner-blue-dark); background: radial-gradient(circle at 91% 8%,rgba(55,132,222,.17),transparent 24%),linear-gradient(90deg,#f4f9ff 0%,#dbeaff 100%); box-shadow: inset 1px 0 rgba(50,120,200,.18); }
.bracket-l { grid-area: losers; color: #a94725; background: radial-gradient(circle at 8% 9%,rgba(237,112,69,.18),transparent 24%),linear-gradient(90deg,#ffe4d8 0%,#fff9f5 100%); box-shadow: inset -1px 0 rgba(237,112,69,.2); }
.bracket-sheet.single .bracket-w { min-width: 100%; background: radial-gradient(circle at 94% 7%,rgba(55,132,222,.17),transparent 25%),linear-gradient(100deg,#f5faff,#deecff); }
.bracket-title { min-height: 34px; margin: 0 0 14px; display: flex; gap: 9px; align-items: center; color: var(--winner-blue-dark); font: 600 17px/1 "Oswald", sans-serif; letter-spacing: .01em; }
.bracket-title::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--winner-blue); box-shadow: 0 0 0 4px rgba(50,120,200,.09); }
.bracket-title span { padding: 6px 9px; border-radius: 20px; color: #fff; background: var(--winner-blue); font: 800 8px/1 "DM Sans", sans-serif; letter-spacing: .12em; box-shadow: 0 5px 12px rgba(35,91,156,.18); }
.bracket-l .bracket-title { color: #a94725; }
.bracket-l .bracket-title::before { background: var(--loser-orange); box-shadow: 0 0 0 4px rgba(237,112,69,.1); }
.bracket-l .bracket-title span { background: var(--loser-orange); box-shadow: 0 5px 12px rgba(169,71,37,.18); }
.bracket-rounds { min-width: max-content; flex: 1; display: flex; gap: 32px; align-items: stretch; }
.bracket-round { width: 232px; display: flex; flex-direction: column; gap: 10px; }
.round-title { height: 24px; padding-left: 3px; color: #66736e; font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.bracket-w .round-title { color: var(--winner-blue-dark); }
.bracket-l .round-title { color: #ad4e2c; }
.round-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 18px; }

.bracket-final-center { grid-area: final; width: 330px; min-height: 100%; padding: 28px 24px 31px; border-inline: 3px solid rgba(255,255,255,.94); display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; overflow: hidden; color: #654b0e; background: radial-gradient(circle at 50% 34%,rgba(255,255,255,.92),transparent 31%),linear-gradient(180deg,#fff8d9 0%,#f3db85 49%,#e9c85e 100%); box-shadow: 0 0 34px rgba(140,106,19,.16); }
.bracket-final-center::before { content: ""; width: 280px; height: 280px; position: absolute; left: 50%; top: 50%; z-index: -1; transform: translate(-50%,-43%); opacity: .075; background: url('/assets/logo-mark.png') center/contain no-repeat; filter: sepia(1) saturate(1.6); pointer-events: none; }
.bracket-final-center::after { content: ""; width: 88px; height: 5px; position: absolute; top: 0; left: calc(50% - 44px); border-radius: 0 0 8px 8px; background: linear-gradient(90deg,var(--loser-orange),var(--final-gold) 48%,var(--winner-blue)); }
.grand-final-heading { width: 100%; position: relative; z-index: 1; text-align: center; }
.grand-final-heading > span { display: inline-flex; padding: 6px 12px; border-radius: 20px; color: #fff; background: #9b7317; box-shadow: 0 6px 14px rgba(117,84,11,.2); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.grand-final-heading h3 { margin: 10px 0 7px; color: #6f510d; font: 600 27px/1 "Oswald",sans-serif; text-transform: uppercase; }
.grand-final-heading b { display: block; color: #4d401f; font-size: 8px; line-height: 1.35; }
.grand-final-heading small { display: block; max-width: 250px; margin: 7px auto 0; padding: 6px 8px; border: 1px solid rgba(146,105,17,.18); border-radius: 8px; color: #765817; background: rgba(255,255,255,.52); font-size: 7px; font-weight: 700; line-height: 1.35; }
.grand-final-matches { width: 100%; flex: 1; padding: 24px 0 10px; display: flex; flex-direction: column; justify-content: center; gap: 23px; position: relative; z-index: 1; }
.grand-final-stage { width: 100%; display: grid; justify-items: center; }
.grand-final-stage .round-title { width: 244px; height: auto; margin-bottom: 7px; padding: 0; color: #745713; text-align: center; }
.grand-final-stage .match-card { width: 244px; }
.bracket-sheet.double .bracket-l .bracket-round:last-child .match-card, .bracket-sheet.double .bracket-w .bracket-round:first-child .match-card { border-color: rgba(190,146,39,.68); box-shadow: 0 0 0 2px rgba(228,190,77,.15),0 9px 22px rgba(77,55,8,.12); }
.bracket-single-outcome { grid-area: outcome; min-width: 318px; padding: 30px; display: grid; place-items: center; position: relative; z-index: 1; background: radial-gradient(circle at 50% 42%,rgba(255,255,255,.88),transparent 30%),linear-gradient(145deg,#fff8dc,#ecd274); }

.match-card { width: 232px; border: 1px solid #abc5e2; border-radius: 12px; overflow: hidden; position: relative; z-index: 2; color: var(--ink); background: #fff; box-shadow: 0 8px 20px rgba(35,91,156,.13); transition: opacity .18s ease,filter .18s ease,transform .18s ease,box-shadow .18s ease; }
.match-card::before { content: ""; position: absolute; z-index: 3; inset: 0 auto 0 0; width: 5px; background: var(--winner-blue); pointer-events: none; }
.match-card.l { border-color: #e9ad93; box-shadow: 0 8px 20px rgba(169,71,37,.13); }
.match-card.l::before { background: var(--loser-orange); }
.match-card.gf { border-color: #cda433; box-shadow: 0 10px 24px rgba(115,81,9,.2); }
.match-card.gf::before { width: 5px; background: var(--final-gold); }
.match-card.playable { cursor: pointer; }
.match-card.playable:hover { z-index: 4; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(35,91,156,.17); }
.match-card.l.playable:hover { box-shadow: 0 10px 24px rgba(169,71,37,.17); }
.match-card.gf.playable:hover { box-shadow: 0 10px 25px rgba(140,106,19,.2); }
.match-card.completed { border-color: #a9cfba; }
.match-card.completed::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(32,143,88,.16); border-radius: inherit; pointer-events: none; }
.match-card.bye, .match-card.void { opacity: .64; }
.match-card.walkover { border-style: dashed; }
.match-number { min-height: 31px; padding: 0 9px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #1f578f; background: linear-gradient(90deg,#d8eaff,#eaf4ff); font-size: 7px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.match-card.l .match-number { color: #9e3f1e; background: linear-gradient(90deg,#ffe5da,#fff3ed); }
.match-card.gf .match-number { color: #725308; background: linear-gradient(90deg,#ffefae,#fff9dd); }
.match-number span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-number span:last-child { flex: 0 0 auto; }
.match-player { min-height: 53px; padding: 8px 10px 8px 13px; border-top: 1px solid #e5ebe7; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; color: #27332f; font-size: 9px; }
.match-player > span { min-width: 0; }
.match-player b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 9px; line-height: 1.25; white-space: nowrap; }
.match-player small { display: block; overflow: hidden; margin-top: 3px; color: #84908b; font-size: 7px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.match-player .entrant-members { color: #66736e; }
.match-player .slot-origin { color: #3f78ad; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.match-card.l .slot-origin { color: #bd5b35; }
.match-card.gf .slot-origin { color: #907017; }
.match-player.winner { color: #0d6d44; font-weight: 700; background: linear-gradient(90deg,#f0faf4,#f8fcf9); }
.match-player.winner b::after { content: "✓"; margin-left: 5px; color: #20a366; }
.match-player.empty { color: #a4ada9; font-style: italic; background: rgba(247,249,247,.72); }
.match-player strong { min-width: 21px; color: inherit; text-align: right; font: 600 14px/1 "Oswald", sans-serif; }
.match-player .seed { margin-right: 6px; color: #9ba59f; font-size: 7px; }
.match-card.path-dim { opacity: .24; filter: grayscale(.55) saturate(.45); }
.match-card.player-path { z-index: 5; opacity: 1; filter: none; transform: translateY(-1px); box-shadow: 0 0 0 3px rgba(185,231,105,.38),0 11px 25px rgba(6,29,22,.2); }
.match-player.player-hit { color: #163a2e; background: linear-gradient(90deg,rgba(185,231,105,.46),rgba(185,231,105,.13)); }
.match-player.player-hit b::before { content: "●"; margin-right: 6px; color: #78a72d; font-size: 7px; }

.champion-card { min-width: 230px; padding: 22px; border-radius: 15px; color: #fff; background: linear-gradient(135deg,var(--forest),#1c5746); text-align: center; }
.champion-card .icon { width: 28px; height: 28px; color: var(--gold); }
.champion-card small { display: block; margin: 8px 0; color: var(--lime); font-size: 8px; letter-spacing: .15em; }
.champion-card b { display: block; font: 600 20px/1.1 "Oswald", sans-serif; }
.bracket-champion { width: 244px; min-width: 244px; margin: 17px 0 0; padding: 18px; align-self: center; position: relative; z-index: 2; border: 1px solid rgba(255,245,194,.54); background: radial-gradient(circle at 50% -30%,rgba(255,255,255,.24),transparent 45%),linear-gradient(135deg,#5f4509,#b8881c); box-shadow: 0 14px 30px rgba(88,62,7,.25); }
.bracket-single-outcome .bracket-champion { width: 260px; min-width: 260px; margin: 0; }
.bracket-champion > span:last-child { display: block; margin-top: 7px; color: #fff3bf; font-size: 8px; }

body.public-view { padding-bottom: 0; color: #fff; background: #0b241d; }
.public-view .app-shell { display: block; }
.public-view .sidebar, .public-view .topbar, .public-view .mobile-nav { display: none; }
.public-view .main-content { padding: 0; }
.public-shell { min-height: 100vh; margin: 0; color: #fff; background: linear-gradient(rgba(7,28,23,.93),rgba(7,28,23,.985)),url('/assets/deobriga-association-bg-v2.jpg') center top/cover fixed; }
.public-header { min-height: 86px; padding: 17px clamp(20px,4vw,55px); display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(5,23,18,.9); backdrop-filter: blur(12px); }
.public-brand { display: flex; gap: 12px; align-items: center; }
.public-brand img { width: 49px; height: 49px; padding: 4px; border-radius: 50%; object-fit: contain; background: #fff; }
.public-brand b { display: block; font: 600 18px/1 "Oswald", sans-serif; letter-spacing: .06em; }
.public-brand small { display: block; margin-top: 5px; color: var(--lime); font-size: 8px; letter-spacing: .18em; }
.public-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.public-header .ghost-button { min-height: 39px; color: #fff; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.public-header .ghost-button:hover { border-color: rgba(185,231,105,.34); background: rgba(255,255,255,.11); }
.public-hero { padding: 34px clamp(20px,4vw,55px) 25px; position: relative; overflow: hidden; background: linear-gradient(90deg,rgba(8,31,25,.94),rgba(8,31,25,.48)),url('/assets/deobriga-association-bg-v2.jpg') center/cover; }
.public-hero::after { content:"";position:absolute;width:300px;height:300px;right:4%;top:-90px;background:url('/assets/logo-mark.png') center/contain no-repeat;filter:invert(1);opacity:.06; }
.public-hero > * { position:relative;z-index:1; }
.public-hero h1 { margin: 9px 0 8px; font: 600 clamp(28px,5vw,46px)/1 "Oswald", sans-serif; }
.public-hero p { margin: 0; color: #b3c7bf; font-size: 11px; }
.public-body { padding: 22px clamp(20px,4vw,55px) 45px; }
.public-control-grid { margin-bottom: 20px; display: grid; grid-template-columns: minmax(260px,.72fr) minmax(450px,1.55fr); gap: 15px; align-items: stretch; }
.public-finder, .public-queue { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(255,255,255,.065); box-shadow: 0 12px 28px rgba(0,0,0,.13); }
.public-finder { padding: 17px; }
.public-finder > label { display: flex; gap: 7px; align-items: center; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.public-finder > label .icon { width: 15px; height: 15px; }
.public-finder > input { width: 100%; min-height: 43px; margin-top: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 0 12px; outline: 0; color: #fff; background: rgba(2,16,12,.34); font-size: 11px; }
.public-finder > input::placeholder { color: #82958d; }
.public-finder > input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(185,231,105,.1); }
.finder-hint { margin: 12px 1px 0; color: #93a79f; font-size: 9px; line-height: 1.5; }
.finder-hint.finder-error { color: #ffb59d; }
.journey-card { margin-top: 12px; padding: 11px; border: 1px solid rgba(185,231,105,.18); border-radius: 11px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; background: rgba(185,231,105,.08); }
.journey-card .avatar { width: 38px; height: 38px; color: var(--forest); background: var(--lime); }
.journey-card > span:last-child { min-width: 0; }
.journey-card small { display: block; color: var(--lime); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.journey-card b { display: block; overflow: hidden; margin-top: 3px; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.journey-card em { display: block; margin-top: 5px; color: #b7c8c1; font-size: 8px; font-style: normal; line-height: 1.4; }
.public-section-title { min-height: 55px; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.public-section-title b, .public-section-title small { display: block; }
.public-section-title b { font-size: 11px; }
.public-section-title small { margin-top: 4px; color: #8fa49b; font-size: 8px; }
.public-section-title em { color: var(--lime); font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.public-queue .queue-row { border-color: rgba(255,255,255,.08); color: #fff; background: rgba(255,255,255,.025); }
.public-queue .queue-row.playing { background: linear-gradient(90deg,rgba(35,155,99,.25),rgba(255,255,255,.03)); }
.public-queue .queue-copy b { color: #fff; }
.public-queue .queue-copy small { color: #ff9b73; }
.public-queue .queue-copy i { color: #83988f; }
.public-queue .queue-position { color: #a4b5ae; background: rgba(255,255,255,.08); }
.public-queue .queue-row.playing .queue-position { color: #fff; background: #1b9b63; }
.public-queue .board-badge { color: #93a69e; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.public-queue .board-badge.assigned { color: #fff; border-color: var(--winner-blue); background: var(--winner-blue); }
.public-body .bracket-shell { border-color: rgba(255,255,255,.14); background: radial-gradient(circle at 80% 4%,rgba(50,120,200,.13),transparent 29%),radial-gradient(circle at 13% 78%,rgba(237,112,69,.12),transparent 27%),#102f27; box-shadow: inset 0 1px rgba(255,255,255,.05),0 18px 40px rgba(0,0,0,.16); }
.public-body .bracket-title { color: #30453e; }
.public-body .bracket-w .bracket-title, .public-body .bracket-w .round-title { color: var(--winner-blue-dark); }
.public-body .bracket-l .bracket-title, .public-body .bracket-l .round-title { color: #a94725; }
.public-body .grand-final-stage .round-title { color: #745713; }
.public-empty { color: #aebfb8; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.public-empty b { color: #fff; }

body.screen-mode { overflow-x: hidden; }
.screen-mode .public-header { min-height: 72px; position: sticky; z-index: 40; top: 0; padding-block: 11px; }
.screen-mode .public-brand img { width: 44px; height: 44px; }
.screen-mode .public-actions [data-action="show-qr"], .screen-mode .public-actions .public-ranking-button, .screen-mode .public-actions .admin-return { display: none; }
.screen-mode .public-hero { padding-block: 23px 18px; }
.screen-mode .public-hero h1 { font-size: clamp(35px,4.2vw,58px); }
.screen-mode .public-body { padding-top: 16px; }
.screen-mode .public-control-grid { grid-template-columns: 1fr; margin-bottom: 16px; }
.screen-mode .public-finder { display: none; }
.screen-mode .public-queue .match-queue { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.screen-mode .public-queue .queue-row:nth-child(2) { border-top: 0; }
.screen-mode .queue-row { min-height: 78px; }
.screen-mode .queue-copy b { font-size: 12px; }
.screen-mode .board-badge { font-size: 8px; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(7,21,17,.58); backdrop-filter: blur(7px); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 19px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: modalIn .22s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal.wide { width: min(720px,100%); }.modal-header { min-height: 73px; padding: 18px 21px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #edf0ec; }.modal-header p { margin: 0 0 4px; color: var(--orange-dark); font-size: 8px; font-weight: 700; letter-spacing: .12em; }.modal-header h2 { margin: 0; font: 600 20px/1.15 "Oswald"; }.modal-body { padding: 21px; }.modal-footer { padding: 15px 21px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid #edf0ec; background: #fafbf9; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.field { display: grid; gap: 6px; }.field.full { grid-column: 1/-1; }.field label { color: #56635e; font-size: 9px; font-weight: 700; }.field input, .field select, .field textarea { width: 100%; min-height: 43px; border: 1px solid #d9dfda; border-radius: 10px; padding: 0 11px; outline: 0; background: #fff; color: var(--ink); font-size: 11px; }.field textarea { min-height: 78px; padding-top: 10px; resize: vertical; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,118,73,.1); }.field-hint { color: var(--muted); font-size: 8px; line-height: 1.45; }
.option-cards { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.option-card { min-height: 72px; padding: 13px; border: 1px solid #dce1dd; border-radius: 11px; display: grid; grid-template-columns: 23px 1fr; gap: 9px; align-items: start; cursor: pointer; }.option-card input { margin: 3px 0 0; accent-color: var(--orange); }.option-card b { font-size: 10px; }.option-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.35; }.option-card.selected { border-color: var(--orange); background: #fff8f4; }
.score-matchup { margin-bottom: 18px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }.score-player { min-height: 88px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; text-align: center; cursor: pointer; }.score-player.selected { color: #fff; border-color: var(--forest); background: var(--forest); }.score-player b { font-size: 11px; }.score-player small { color: var(--muted); margin-top: 4px; }.score-player.selected small { color: #b5c8c0; }.score-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 11px; align-items: center; }.score-inputs input { width: 100%; min-height: 51px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font: 600 22px/1 "Oswald"; }.score-inputs span { color: var(--muted); }
.match-setup-grid { margin: 4px 0 18px; padding: 14px; border: 1px solid #e0e5e1; border-radius: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; background: #f6f8f5; }
.score-field { padding-top: 17px; border-top: 1px solid #edf0ec; }
.score-field > label { color: var(--ink); font-size: 10px; }
.score-field .score-inputs { margin: 3px 0 2px; }
.score-field .score-inputs input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,118,73,.1); outline: 0; }

.activity-panel { overflow: hidden; }
.activity-panel .tag { color: #fff; background: var(--forest-2); }
.activity-list { padding: 4px 20px 18px; }
.activity-row { min-height: 67px; padding: 15px 4px 15px 28px; border-bottom: 1px solid #edf0ec; display: grid; grid-template-columns: 1fr; position: relative; }
.activity-row:last-child { border-bottom: 0; }
.activity-row::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: #dfe5e0; }
.activity-row:first-child::before { top: 50%; }
.activity-row:last-child::before { bottom: 50%; }
.activity-dot { width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; position: absolute; z-index: 1; left: 3px; top: calc(50% - 5px); background: var(--winner-blue); box-shadow: 0 0 0 1px rgba(50,120,200,.28); }
.activity-row.type-result .activity-dot { background: #23945e; box-shadow: 0 0 0 1px rgba(35,148,94,.28); }
.activity-row.type-result-corrected .activity-dot, .activity-row.type-result-undone .activity-dot { background: var(--final-gold); box-shadow: 0 0 0 1px rgba(217,170,52,.3); }
.activity-row.type-withdrawal .activity-dot, .activity-row.type-attendance .activity-dot { background: var(--loser-orange); box-shadow: 0 0 0 1px rgba(237,112,69,.3); }
.activity-row b { display: block; color: #303c38; font-size: 10px; line-height: 1.45; }
.activity-row small { display: block; margin-top: 5px; color: #8a9590; font-size: 8px; }

.qr-modal { text-align: center; }
.qr-frame { width: 284px; max-width: 100%; margin: 0 auto 17px; padding: 12px; border: 1px solid #dce2dd; border-radius: 18px; position: relative; background: #fff; box-shadow: 0 12px 30px rgba(16,45,37,.11); }
.qr-frame::before, .qr-frame::after { content: ""; width: 28px; height: 28px; position: absolute; border-color: var(--orange); border-style: solid; pointer-events: none; }
.qr-frame::before { inset: 8px auto auto 8px; border-width: 3px 0 0 3px; border-radius: 8px 0 0; }
.qr-frame::after { inset: auto 8px 8px auto; border-width: 0 3px 3px 0; border-radius: 0 0 8px; }
.qr-frame img { width: 100%; display: block; border-radius: 9px; }
.qr-modal > b { display: block; font: 600 18px/1.2 "Oswald", sans-serif; }
.qr-modal > p { max-width: 390px; margin: 9px auto 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.qr-modal > input { width: 100%; min-height: 41px; border: 1px solid #dce2dd; border-radius: 9px; padding: 0 11px; color: #5f6b66; background: #f6f8f5; font-size: 9px; text-align: center; }

.pair-name-list { display: grid; gap: 9px; }
.pair-name-row { min-height: 66px; padding: 11px 12px; border: 1px solid #e0e4e1; border-radius: 11px; display: grid; grid-template-columns: minmax(160px,.9fr) minmax(190px,1.1fr); gap: 14px; align-items: center; background: #fbfcfa; }
.pair-name-row > span { min-width: 0; }
.pair-name-row b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.pair-name-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.pair-name-row input { width: 100%; min-height: 40px; border: 1px solid #d8dfd9; border-radius: 9px; padding: 0 11px; outline: 0; color: var(--ink); background: #fff; font-size: 10px; }
.pair-name-row input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,118,73,.1); }
.event-ribbons { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.event-ribbon { width: max-content; padding: 5px 8px; border-radius: 999px; color: #315f94; background: #e7f2ff; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.event-ribbon.weekly { color: #a94725; background: #fff0e9; }
.event-ribbon.ranking { color: #725610; background: #fff3c4; }
.banner-event-label { margin-left: 7px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--lime); background: rgba(255,255,255,.07); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.share-qr-button, .public-qr-button, .public-ranking-button { min-height: 43px; border: 0; border-radius: 11px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #102d25; background: linear-gradient(135deg,#d8f49d,var(--lime)); box-shadow: 0 9px 20px rgba(185,231,105,.2); font-size: 11px; font-weight: 800; cursor: pointer; }
.share-qr-button .icon, .public-qr-button .icon, .public-ranking-button .icon { width: 17px; height: 17px; }
.public-ranking-button { color: #fff; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); box-shadow: none; }
.share-panel { margin-top: 17px; padding: 20px 23px; border: 1px solid #d6ded8; border-radius: 18px; display: grid; grid-template-columns: minmax(0,1fr) 176px; gap: 25px; align-items: center; overflow: hidden; position: relative; background: radial-gradient(circle at 90% 50%,rgba(185,231,105,.18),transparent 30%),linear-gradient(115deg,#0f3027,#174f3f); box-shadow: 0 12px 30px rgba(16,45,37,.1); }
.share-panel::after { content:""; position:absolute; width:230px; height:230px; right:22%; top:-90px; background:url('/assets/logo-mark.png') center/contain no-repeat; filter:invert(1); opacity:.035; pointer-events:none; }
.share-panel-copy { min-width:0; display:grid; grid-template-columns:52px minmax(0,1fr); gap:17px; align-items:start; position:relative; z-index:1; color:#fff; }
.share-panel-copy > .icon { width:52px; height:52px; padding:13px; border-radius:14px; color:var(--forest); background:var(--lime); }
.share-panel-copy small { color:var(--lime); font-size:8px; font-weight:800; letter-spacing:.14em; }
.share-panel-copy h3 { margin:6px 0 7px; font:600 20px/1.15 "Oswald",sans-serif; }
.share-panel-copy p { max-width:630px; margin:0 0 14px; color:#b8ccc4; font-size:9px; line-height:1.55; }
.share-panel-copy > div > div { display:flex; flex-wrap:wrap; gap:8px; }
.share-panel .ghost-button { color:#fff; border-color:rgba(255,255,255,.16); background:rgba(255,255,255,.07); }
.share-qr-preview { width:176px; padding:9px 9px 10px; border:0; border-radius:15px; position:relative; z-index:1; color:var(--forest); background:#fff; box-shadow:0 13px 28px rgba(0,0,0,.18); cursor:pointer; }
.share-qr-preview img { width:100%; display:block; border-radius:8px; }
.share-qr-preview span { display:block; margin-top:7px; font-size:7px; font-weight:900; letter-spacing:.13em; }

.ranking-hero { min-height:235px; padding:31px 34px; border-radius:23px; display:grid; grid-template-columns:minmax(0,1fr) 190px; align-items:center; gap:25px; overflow:hidden; position:relative; color:#fff; background:linear-gradient(100deg,rgba(8,34,27,.94),rgba(13,55,43,.58)),url('/assets/deobriga-association-bg-v2.jpg') center/cover; box-shadow:var(--shadow); }
.ranking-hero::after { content:""; position:absolute; width:310px; height:310px; right:-65px; top:-80px; background:url('/assets/logo-mark.png') center/contain no-repeat; filter:invert(1); opacity:.055; }
.ranking-hero > * { position:relative; z-index:1; }
.ranking-hero p { margin:0 0 12px; color:var(--lime); font-size:8px; font-weight:800; letter-spacing:.16em; }
.ranking-hero h2 { margin:0; font:600 clamp(32px,4vw,47px)/1.04 "Oswald",sans-serif; }
.ranking-hero h2 span { color:#ff966d; }
.ranking-hero > div > small { display:block; max-width:590px; margin-top:13px; color:#b7cbc3; font-size:10px; line-height:1.5; }
.ranking-target { width:150px; height:150px; justify-self:center; border:1px solid rgba(255,255,255,.15); border-radius:50%; display:grid; place-items:center; align-content:center; background:rgba(255,255,255,.06); box-shadow:inset 0 0 0 20px rgba(255,255,255,.025); }
.ranking-target .icon { width:27px; height:27px; color:var(--gold); }
.ranking-target b { margin-top:7px; font:600 35px/1 "Oswald",sans-serif; }
.ranking-target small { margin-top:6px; color:var(--lime); font-size:6px; font-weight:800; letter-spacing:.11em; }
.ranking-tools { margin:17px 0; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.ranking-tools > span { color:var(--muted); font-size:9px; }
.ranking-podium { margin-bottom:17px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; align-items:end; }
.podium-place { min-height:190px; padding:21px 15px 18px; border:1px solid #dfe4df; border-radius:17px; display:grid; justify-items:center; position:relative; overflow:hidden; background:#fff; box-shadow:0 9px 25px rgba(24,44,37,.05); }
.podium-place.place-1 { min-height:215px; border-color:#e2c66b; background:linear-gradient(180deg,#fff9df,#fff 67%); }
.podium-place.place-2 { background:linear-gradient(180deg,#eef4f7,#fff 67%); }
.podium-place.place-3 { background:linear-gradient(180deg,#fff0e9,#fff 67%); }
.podium-medal { position:absolute; top:12px; right:13px; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; color:#fff; background:#7f8e88; font:600 14px/1 "Oswald",sans-serif; }
.place-1 .podium-medal { color:#5d4507; background:#f1cc55; }.place-2 .podium-medal { background:#8da2ac; }.place-3 .podium-medal { background:#c97955; }
.podium-place .avatar { width:51px; height:51px; font-size:13px; background:var(--forest-2); }
.podium-place > b { margin-top:10px; font-size:11px; text-align:center; }
.podium-place > strong { margin-top:11px; color:var(--orange-dark); font:600 27px/1 "Oswald",sans-serif; }
.podium-place > strong small { margin-left:4px; font:800 7px/1 "DM Sans",sans-serif; }
.podium-place > em { margin-top:7px; color:var(--muted); font-size:8px; font-style:normal; }
.ranking-table-panel { margin-bottom:24px; }
.ranking-table-panel .tag { color:#fff; background:var(--forest-2); }
.ranking-table td { height:64px; }
.ranking-table tr.top-1 { background:#fffbee; }.ranking-table tr.top-2 { background:#f7fafb; }.ranking-table tr.top-3 { background:#fff9f5; }
.rank-number { width:29px; height:29px; border-radius:9px; display:grid; place-items:center; color:#fff; background:#798781; font:600 14px/1 "Oswald",sans-serif; }
.top-1 .rank-number { color:#5d4507; background:#f1cc55; }.top-2 .rank-number { background:#8da2ac; }.top-3 .rank-number { background:#c97955; }
.points-cell { color:var(--orange-dark); font:600 20px/1 "Oswald",sans-serif; }
.ranking-weeks { margin-top:26px; }
.ranking-empty { min-height:300px; }

.classification-block { grid-column:1/-1; display:grid; gap:10px; }
.classification-switch { min-height:78px; padding:15px; border:1px solid #d9dfda; border-radius:13px; display:grid; grid-template-columns:23px minmax(0,1fr) 40px; gap:11px; align-items:center; cursor:pointer; background:#f8faf7; }
.classification-switch input { width:18px; height:18px; margin:0; accent-color:var(--forest-2); }
.classification-switch b { display:block; color:var(--ink); font-size:10px; }
.classification-switch small { display:block; margin-top:4px; color:var(--muted); font-size:8px; line-height:1.4; }
.classification-switch i { width:38px; height:21px; border-radius:99px; position:relative; background:#ccd4cf; transition:.16s ease; }
.classification-switch i::after { content:""; width:15px; height:15px; border-radius:50%; position:absolute; left:3px; top:3px; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.16); transition:.16s ease; }
.classification-switch.selected { border-color:#8cbd50; background:#f4faeb; }
.classification-switch.selected i { background:#82b745; }.classification-switch.selected i::after { transform:translateX(17px); }
.classification-settings { padding:15px; border:1px solid #e5d18c; border-radius:13px; background:linear-gradient(135deg,#fffbee,#fff7d5); }
.classification-heading { margin-bottom:12px; display:flex; align-items:center; gap:9px; }
.classification-heading > .icon { width:34px; height:34px; padding:8px; border-radius:9px; color:#775a0e; background:#f2d66f; }
.classification-heading b { display:block; font-size:10px; }.classification-heading small { display:block; margin-top:3px; color:#776d4d; font-size:8px; }
.points-input-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.points-input-grid label { padding:8px; border:1px solid rgba(154,124,38,.16); border-radius:9px; display:grid; gap:5px; position:relative; background:rgba(255,255,255,.72); }
.points-input-grid span { color:#5e573d; font-size:7px; font-weight:800; text-transform:uppercase; }.points-input-grid input { width:100%; min-height:37px; border:1px solid #ded4af; border-radius:7px; padding:0 7px; font:600 16px/1 "Oswald",sans-serif; }.points-input-grid small { color:#8d825e; font-size:7px; }
.weekly-option.selected { border-color:#d46b42; background:#fff4ee; }

.points-rules { margin-bottom:17px; padding:24px; border-radius:18px; display:grid; grid-template-columns:minmax(230px,.65fr) minmax(500px,1.35fr); gap:24px; align-items:center; color:#fff; background:linear-gradient(125deg,#112f27,#1e5b49); box-shadow:var(--shadow); }
.points-rules p { margin:0 0 6px; color:var(--lime); font-size:8px; font-weight:800; letter-spacing:.13em; }.points-rules h2 { margin:0; font:600 25px/1.15 "Oswald",sans-serif; }.points-rules > div > small { display:block; margin-top:8px; color:#afc4bc; font-size:8px; }
.points-rule-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.points-rule-grid > span { min-height:82px; padding:10px; border:1px solid rgba(255,255,255,.1); border-radius:10px; display:grid; align-content:center; text-align:center; background:rgba(255,255,255,.06); }.points-rule-grid small { color:#b9cbc4; font-size:7px; }.points-rule-grid b { margin:5px 0; color:#fff; font:600 16px/1 "Oswald",sans-serif; }.points-rule-grid strong { color:var(--lime); font-size:9px; }

.public-standings { margin-top:20px; border:1px solid rgba(255,255,255,.12); border-radius:17px; overflow:hidden; background:rgba(255,255,255,.055); }
.public-standings .public-section-title button { border:0; color:var(--lime); background:none; font-size:8px; font-weight:800; cursor:pointer; }
.public-standing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.public-standing-grid article { min-height:62px; padding:10px 14px; border-top:1px solid rgba(255,255,255,.08); display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:10px; align-items:center; }
.public-standing-grid article:nth-child(2n) { border-left:1px solid rgba(255,255,255,.08); }
.public-standing-grid article > span:nth-child(2) { min-width:0; }.public-standing-grid article b { display:block; overflow:hidden; text-overflow:ellipsis; font-size:10px; white-space:nowrap; }.public-standing-grid article small { display:block; margin-top:3px; color:#90a59c; font-size:7px; }.public-standing-grid article > strong { color:#ffb391; font:600 18px/1 "Oswald",sans-serif; }.public-standing-grid article > strong small { color:inherit; font:700 6px/1 "DM Sans",sans-serif; }
.login-mark { width: 80px; height: 80px; margin: 0 auto 15px; display: block; object-fit: contain; }.login-copy { text-align: center; margin-bottom: 20px; }.login-copy p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.toast-root { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: grid; gap: 8px; }.toast { max-width: 340px; padding: 13px 15px; border-radius: 11px; color: #fff; background: var(--forest); box-shadow: 0 14px 35px rgba(0,0,0,.18); font-size: 10px; animation: toastIn .22s ease; }.toast.error { background: var(--danger); }.toast.success { background: #176844; } @keyframes toastIn { from { opacity:0;transform:translateY(8px); } }
.notice { padding: 12px 14px; border-radius: 10px; color: #765815; background: #fff7db; font-size: 9px; line-height: 1.45; }.notice.error { color:#8d2f29;background:#fff0ed; }.notice.success { color:#14613f;background:#eaf7ef; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 205px 1fr; }
  .sidebar { width:205px;padding-inline:14px; }
  .main-content { padding-inline:28px; }
  .hero { grid-template-columns:1fr 230px; }
  .target-orbit { transform:scale(.8); }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .cards-grid { grid-template-columns:repeat(2,1fr); }
  .public-control-grid { grid-template-columns:1fr; }
  .points-rules { grid-template-columns:1fr; }
}
@media (max-width: 780px) {
  body { padding-bottom:72px; }
  .app-shell { display:block; }
  .sidebar { display:none; }
  .main-content { padding:0 15px 30px; }
  .topbar { height:88px; }
  .topbar h1 { font-size:25px; }
  .top-actions .ghost-button { display:none; }
  .top-actions .primary-button span:last-child { display:none; }
  .top-actions .primary-button { width:43px;padding:0; }
  .hero { min-height:235px;padding:26px 22px;display:block; }
  .hero h2 { font-size:34px; }
  .hero-side { display:none; }
  .stats-grid { grid-template-columns:repeat(2,1fr);gap:9px;margin-top:12px; }
  .stat-card { min-height:78px;padding:12px;gap:9px; }
  .stat-icon { width:36px;height:36px; }
  .content-grid,.overview-grid,.participant-picker { grid-template-columns:1fr; }
  .cards-grid { grid-template-columns:1fr; }
  .page-tools { align-items:stretch;flex-direction:column; }
  .search-box { min-width:0;width:100%; }
  .tournament-row { grid-template-columns:42px 1fr auto; }
  .tournament-row .format-label { display:none; }
  .tournament-banner { min-height:180px;padding:22px;align-items:start;flex-direction:column; }
  .banner-actions { width:100%; flex-wrap:wrap; }
  .banner-actions button { flex:1 1 42%; min-width:0; padding-inline:9px; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .option-cards { grid-column:auto;grid-template-columns:1fr; }
  .mobile-nav { position:fixed;z-index:50;inset:auto 0 0;height:68px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(6,1fr);align-items:end;border-top:1px solid #dbe0dc;background:rgba(255,255,255,.96);backdrop-filter:blur(12px); }
  .mobile-nav button { border:0;background:transparent;color:#7e8984;display:grid;gap:3px;justify-items:center;align-content:center;cursor:pointer; }
  .mobile-nav button.active { color:var(--forest); }
  .mobile-nav .icon { width:19px;height:19px; }
  .mobile-nav small { font-size:8px;font-weight:700; }
  .mobile-nav .mobile-create { width:46px;height:46px;margin:0 auto 8px;border-radius:50%;color:#fff;background:var(--orange);box-shadow:0 8px 18px rgba(242,118,73,.3); }
  .bracket-toolbar { align-items:stretch; flex-direction:column; }
  .toolbar-actions { justify-content:flex-start; overflow-x:auto; padding-bottom:2px; }
  .toolbar-actions .ghost-button { flex:0 0 auto; }
  .bracket-sheet.double { grid-template-columns:max-content 292px max-content; }
  .bracket-section { padding:20px 17px 25px; }
  .bracket-final-center { width:292px; padding:22px 17px 25px; }
  .grand-final-heading h3 { font-size:24px; }
  .grand-final-stage .round-title,.grand-final-stage .match-card { width:224px; }
  .bracket-rounds { gap:28px; }
  .bracket-round,.match-card { width:218px; }
  .attendance-row { grid-template-columns:34px minmax(0,1fr) 35px; padding-block:10px; }
  .attendance-row > .avatar { grid-column:1; grid-row:1; }
  .attendance-player { grid-column:2; grid-row:1; }
  .attendance-row > label { grid-column:2/4; grid-row:2; }
  .attendance-row > .icon-button { grid-column:3; grid-row:1; }
  .attendance-select { width:100%; }
  .match-setup-grid { grid-template-columns:1fr; }
  .score-matchup { grid-template-columns:1fr; }
  .score-matchup > span { display:none; }
  .pair-name-row { grid-template-columns:1fr; gap:9px; }
  .modal-footer { flex-wrap:wrap; }
  .modal-backdrop { padding:10px;align-items:end; }
  .modal { width:100%;max-height:90vh;border-radius:19px 19px 8px 8px; }
  .public-header { min-height:76px; padding-inline:15px; }
  .public-header .ghost-button, .public-header .public-qr-button, .public-header .public-ranking-button { width:39px; padding:0; }
  .public-header .ghost-button span:last-child, .public-header .public-qr-button span:last-child, .public-header .public-ranking-button span:last-child { display:none; }
  .public-hero { padding:25px 18px 20px; }
  .public-body { padding:16px 15px 38px; }
  .public-control-grid { grid-template-columns:1fr; }
  .public-section-title em { display:none; }
  .screen-mode .public-queue .match-queue { grid-template-columns:1fr; }
  .screen-mode .public-queue .queue-row:nth-child(2) { border-top:1px solid rgba(255,255,255,.08); }
  .tabs { gap:17px; }
  .share-panel { grid-template-columns:1fr; padding:19px; }
  .share-qr-preview { width:155px; justify-self:center; }
  .ranking-hero { min-height:220px; grid-template-columns:1fr; padding:27px 23px; }
  .ranking-target { display:none; }
  .ranking-tools { align-items:stretch; flex-direction:column; }
  .ranking-podium { gap:7px; }
  .podium-place { min-height:172px; padding-inline:8px; }.podium-place.place-1 { min-height:192px; }
  .points-input-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .points-rule-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .public-standing-grid { grid-template-columns:1fr; }
  .public-standing-grid article:nth-child(2n) { border-left:0; }
  .toast-root { left:15px;right:15px;bottom:85px; }
  .public-view .toast-root { bottom:18px; }
  .toast { max-width:none; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns:1fr 1fr; }
  .stat-copy strong { font-size:21px; }
  .stat-copy span { font-size:8px; }
  .hero h2 { font-size:31px; }
  .hero p { font-size:11px; }
  .topbar p { font-size:8px; }
  .topbar h1 { font-size:23px; }
  .info-grid { grid-template-columns:1fr; }
  .info-item,.info-item:nth-child(2n),.info-item:nth-last-child(-n+2) { border-right:0;border-bottom:1px solid #edf0ec; }
  .info-item:last-child { border-bottom:0; }
  .dual-average > span { min-width:38px; padding-inline:5px; }
  .queue-row { grid-template-columns:45px minmax(0,1fr); gap:9px; }
  .queue-position { min-width:43px; }
  .board-badge { grid-column:2; justify-self:start; }
  .queue-copy b { white-space:normal; line-height:1.35; }
  .toolbar-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .toolbar-actions .ghost-button { min-width:0; padding-inline:8px; }
  .public-brand img { width:42px;height:42px; }
  .public-brand b { font-size:15px; }
  .public-brand small { display:none; }
  .public-actions { gap:5px; }
  .public-finder { padding:14px; }
  .public-section-title { padding-inline:13px; }
  .activity-list { padding-inline:14px; }
  .share-panel-copy { grid-template-columns:1fr; }
  .share-panel-copy > .icon { width:44px; height:44px; }
  .ranking-podium { grid-template-columns:1fr; align-items:stretch; }
  .podium-place, .podium-place.place-1 { min-height:150px; }
  .points-rules { padding:19px; }
  .modal-footer > button { flex:1 1 auto; }
}

/* Navegación real del cuadro en escritorio y en la vista QR móvil. */
.bracket-viewer { width: 100%; max-width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
.bracket-zone-buttons,
.bracket-zoom-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.bracket-zone-buttons button { color: #dfe9e3; background: #17251e; }
.bracket-zone-buttons button[data-zone="L"] { border-color: rgba(237,117,72,.45); }
.bracket-zone-buttons button[data-zone="GF"] { border-color: rgba(223,182,74,.55); color: #f2d98c; }
.bracket-zone-buttons button[data-zone="W"] { border-color: rgba(82,169,255,.48); }
.bracket-shell { -webkit-overflow-scrolling: touch; scroll-snap-type: none; }
.bracket-sheet { min-width: max-content; }

@media (max-width: 780px) {
  .bracket-nav-controls {
    position: sticky;
    left: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
    border: 1px solid rgba(185,231,105,.14);
    border-radius: 13px;
    background: rgba(8,14,11,.96);
    box-shadow: 0 10px 25px rgba(0,0,0,.24);
  }
  .bracket-nav-hint { font-size: 11px; }
  .bracket-zone-buttons,
  .bracket-zoom-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
  .bracket-zoom-buttons { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .bracket-zone-buttons button,
  .bracket-zoom-buttons button { min-width: 0; min-height: 44px; padding: 0 6px; font-size: 11px; }
  .public-view .bracket-shell { min-height: 56vh; max-height: 70vh; }
}

@media (max-width: 420px) {
  .bracket-nav-controls { display: grid; grid-template-columns: 1fr; }
  .bracket-zone-buttons,
  .bracket-zoom-buttons { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important; } }

/* ========================================================================== */
/* Deobriga Darts · club edition                                              */
/* Tema oscuro compatible con Chromium 108 / Electron 22 (Windows 7).        */
/* ========================================================================== */

:root {
  color-scheme: dark;
  --surface-0: #080d0b;
  --surface-1: #0e1512;
  --surface-2: #151e1a;
  --surface-3: #1b2722;
  --surface-4: #22312a;
  --line-soft: rgba(211, 229, 219, .09);
  --line-strong: rgba(211, 229, 219, .18);
  --text-soft: #c4cec8;
  --gold-soft: #f1d27b;
}

html,
body {
  color: var(--ink);
  background: var(--surface-0);
}

body {
  background-image:
    linear-gradient(118deg, rgba(8, 13, 11, .98), rgba(8, 13, 11, .91)),
    url('/assets/darts-bg.jpg');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline-color: rgba(185, 231, 105, .64);
}

* {
  scrollbar-color: #3a5146 #0d1511;
  scrollbar-width: thin;
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #0d1511; }
*::-webkit-scrollbar-thumb { border: 2px solid #0d1511; border-radius: 10px; background: #3a5146; }
*::-webkit-scrollbar-thumb:hover { background: #4d6d5d; }

.app-shell {
  background:
    radial-gradient(circle at 83% 4%, rgba(185, 231, 105, .06), transparent 25%),
    linear-gradient(130deg, rgba(9, 15, 12, .96), rgba(12, 20, 16, .9));
}

.sidebar {
  border-right: 1px solid rgba(221, 184, 90, .17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 22%),
    radial-gradient(circle at 13% 82%, rgba(185, 231, 105, .11), transparent 31%),
    #080f0c;
  box-shadow: 18px 0 45px rgba(0, 0, 0, .2);
}

.sidebar::before {
  content: "";
  height: 2px;
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}

.sidebar::after {
  width: 225px;
  height: 178px;
  right: -68px;
  bottom: 76px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1) sepia(.25) contrast(1.25);
  opacity: .045;
}

.brand {
  gap: 13px;
  margin: 0 6px 43px;
}

.brand img,
.public-brand img,
.target-orbit img,
.login-mark {
  display: block;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.28);
}

.brand img {
  width: 52px;
  height: 52px;
  padding: 8px;
  border: 1px solid rgba(221, 184, 90, .54);
  border-radius: 14px;
  background: linear-gradient(145deg, #fffef7, #e7e2d1);
  box-shadow: 0 9px 22px rgba(0, 0, 0, .26), inset 0 0 0 3px rgba(8, 27, 21, .08);
}

.brand strong { color: #f5f7f3; letter-spacing: .08em; }
.brand small { color: var(--gold-soft); }

.main-nav { gap: 7px; }

.nav-item {
  min-height: 53px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #899a92;
}

.nav-item:hover {
  border-color: rgba(255, 255, 255, .07);
  color: #eef4ef;
  background: rgba(255, 255, 255, .045);
}

.nav-item.active {
  border-color: rgba(185, 231, 105, .16);
  color: #fff;
  background: linear-gradient(90deg, rgba(185, 231, 105, .14), rgba(185, 231, 105, .035));
  box-shadow: inset 3px 0 var(--lime), 0 8px 20px rgba(0, 0, 0, .13);
}

.nav-item.active .icon { color: var(--lime); }

.nav-item em {
  color: #17170c;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(221, 184, 90, .12);
}

.sync-status { color: #84968d; }

.admin-chip {
  border-color: rgba(255, 255, 255, .11);
  background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.admin-chip:hover { border-color: rgba(185, 231, 105, .28); background: rgba(255, 255, 255, .07); }
.admin-chip > .icon { color: #152015; background: var(--gold); }

.main-content {
  min-height: 100vh;
  background: linear-gradient(105deg, rgba(8, 13, 11, .7), rgba(12, 20, 16, .5));
}

.topbar {
  position: relative;
  z-index: 12;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.topbar::after {
  content: "";
  width: 56px;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: -1px;
  background: linear-gradient(90deg, var(--lime), transparent);
}

.topbar p { color: var(--gold-soft); }
.topbar h1 { color: #f3f6f3; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }

.primary-button,
.ghost-button,
.danger-button,
.soft-button,
.share-qr-button,
.public-qr-button,
.public-ranking-button {
  border-radius: 10px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.primary-button {
  border: 1px solid #c9ed7f;
  color: #15210f;
  background: linear-gradient(135deg, #caf285, #9ecf48);
  box-shadow: 0 9px 22px rgba(136, 184, 66, .2), inset 0 1px rgba(255, 255, 255, .5);
}

.primary-button:hover {
  color: #0a1108;
  background: linear-gradient(135deg, #dafaa2, #aedb59);
  box-shadow: 0 12px 28px rgba(136, 184, 66, .28);
}

.ghost-button,
.soft-button {
  border: 1px solid var(--line-strong);
  color: #d3ddd7;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.ghost-button:hover,
.soft-button:hover {
  border-color: rgba(185, 231, 105, .32);
  color: #fff;
  background: rgba(185, 231, 105, .08);
}

.danger-button {
  border: 1px solid rgba(225, 91, 82, .3);
  color: #ffaaa4;
  background: rgba(225, 91, 82, .1);
}

.icon-button {
  border-color: var(--line-strong);
  color: #9daca4;
  background: #17211d;
}

.icon-button:hover {
  border-color: rgba(185, 231, 105, .32);
  color: var(--lime);
  background: #1c2923;
}

.hero {
  min-height: 330px;
  border: 1px solid rgba(221, 184, 90, .2);
  border-radius: 22px;
  background-image:
    linear-gradient(90deg, rgba(4, 12, 9, .97) 0%, rgba(6, 18, 13, .88) 45%, rgba(7, 18, 14, .25) 100%),
    url('/assets/darts-bg.jpg');
  background-position: center, center right;
  background-size: cover;
  box-shadow: 0 26px 64px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .06);
}

.hero::before {
  background:
    linear-gradient(90deg, var(--gold), transparent 28%) left top / 100% 2px no-repeat,
    radial-gradient(circle at 79% 18%, rgba(185, 231, 105, .1), transparent 29%);
}

.hero-kicker { color: var(--gold-soft); }
.hero-kicker::before { background: var(--lime); box-shadow: 0 0 12px rgba(185, 231, 105, .35); }
.hero h2 { color: #f4f7f4; text-shadow: 0 3px 22px rgba(0, 0, 0, .55); }
.hero h2 span { color: var(--lime); }
.hero p { color: #b4c2bb; }
.hero .ghost-button { border-color: rgba(255, 255, 255, .2); background: rgba(5, 12, 9, .56); }

.target-orbit {
  width: 222px;
  height: 222px;
  border-color: rgba(221, 184, 90, .26);
  background: radial-gradient(circle, rgba(185, 231, 105, .08), rgba(4, 12, 9, .5) 62%, transparent 63%);
  box-shadow: inset 0 0 45px rgba(0, 0, 0, .48), 0 22px 50px rgba(0, 0, 0, .25);
}

.target-orbit::before,
.target-orbit::after { border-color: rgba(221, 184, 90, .2); }

.target-orbit img {
  width: 126px;
  height: 108px;
  padding: 15px;
  border: 1px solid rgba(221, 184, 90, .52);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffef8, #e8e2cf);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34), inset 0 0 0 4px rgba(16, 45, 37, .07);
}

.target-dot { background: var(--lime); box-shadow: 0 0 0 6px rgba(185, 231, 105, .13), 0 0 18px rgba(185, 231, 105, .36); }

.stats-grid { gap: 14px; }

.stat-card {
  border-color: var(--line-strong);
  color: #edf3ef;
  background: linear-gradient(145deg, rgba(29, 42, 36, .96), rgba(17, 25, 21, .96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .035);
}

.stat-card:nth-child(1) { border-top-color: rgba(185, 231, 105, .6); }
.stat-card:nth-child(2) { border-top-color: rgba(237, 116, 72, .65); }
.stat-card:nth-child(3) { border-top-color: rgba(221, 184, 90, .7); }
.stat-card:nth-child(4) { border-top-color: rgba(91, 150, 230, .68); }
.stat-icon { color: var(--lime); background: rgba(185, 231, 105, .1); }
.stat-card:nth-child(2) .stat-icon { color: #ff9a72; background: rgba(237, 116, 72, .11); }
.stat-card:nth-child(3) .stat-icon { color: var(--gold-soft); background: rgba(221, 184, 90, .11); }
.stat-card:nth-child(4) .stat-icon { color: #8cc1ff; background: rgba(59, 143, 232, .11); }
.stat-copy span { color: var(--muted); }

.section-heading h2 { color: #edf2ee; }
.section-heading p { color: var(--muted); }
.text-button { color: var(--lime); }
.text-button:hover { color: #d6f5a0; }

.panel {
  border-color: var(--line-strong);
  color: var(--ink);
  background: linear-gradient(150deg, rgba(24, 34, 29, .98), rgba(15, 23, 19, .98));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .035);
}

.panel-header {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, .018);
}

.panel-header h3 { color: #edf2ee; }
.panel-header small { color: var(--muted); }

.tournament-row {
  border-color: var(--line-soft);
  color: var(--ink);
  background: transparent;
}

.tournament-row:hover { background: rgba(185, 231, 105, .05); }
.tournament-row h4 { color: #ecf1ed; }
.tournament-row p, .format-label { color: var(--muted); }

.date-block {
  border: 1px solid rgba(221, 184, 90, .35);
  color: #fff;
  background: linear-gradient(145deg, #173d30, #0b2119);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.date-block small { color: var(--gold-soft); }

.status-pill.live { color: #adf0c9; background: rgba(35, 160, 99, .16); }
.status-pill.draft { color: #f2d58b; background: rgba(221, 184, 90, .13); }
.status-pill.completed { color: #b5c1ba; background: rgba(255, 255, 255, .065); }

.favorite-row { border-bottom: 1px solid var(--line-soft); }
.favorite-row:last-child { border-bottom: 0; }
.favorite-row b { color: #edf2ee; }
.favorite-row small { color: var(--muted); }

.avatar {
  border: 1px solid rgba(255, 255, 255, .1);
  color: #f5fff8;
  background: linear-gradient(145deg, #21855e, #104631);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.average-badge,
.dual-average > span {
  border: 1px solid rgba(59, 143, 232, .18);
  color: #9cccff;
  background: rgba(59, 143, 232, .1);
}

.average-badge.cricket,
.dual-average > span:last-child {
  border-color: rgba(237, 116, 72, .2);
  color: #ff9d76;
  background: rgba(237, 116, 72, .1);
}

.segmented {
  border: 1px solid var(--line-soft);
  background: #101713;
}

.segmented button { color: #87978f; }
.segmented button:hover { color: #dce5df; }
.segmented button.active {
  color: #eff5f1;
  background: #26372f;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .24), inset 0 -2px var(--lime);
}

.search-box {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #111a16;
}

.search-box:focus-within { border-color: rgba(185, 231, 105, .48); box-shadow: 0 0 0 3px rgba(185, 231, 105, .08); }
.search-box input { color: var(--ink); }
.search-box input::placeholder { color: #718078; }

.tournament-card {
  border-color: var(--line-strong);
  color: var(--ink);
  background:
    radial-gradient(circle at 96% -4%, rgba(185, 231, 105, .07), transparent 30%),
    linear-gradient(150deg, #19231e, #101713);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .035);
}

.tournament-card:hover {
  border-color: rgba(185, 231, 105, .34);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34), 0 0 0 1px rgba(185, 231, 105, .06);
}

.tournament-card::after {
  width: 160px;
  height: 126px;
  right: -42px;
  top: -24px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1) sepia(.18) contrast(1.2);
  opacity: .045;
}

.tournament-card h3 { color: #f0f4f1; }
.tournament-card p, .card-meta { color: var(--muted); }
.card-meta { border-color: var(--line-soft); }
.card-copy { background: #141e19; }
.card-copy:hover { border-color: rgba(237, 116, 72, .4); color: #ff9d77; background: rgba(237, 116, 72, .08); }

.empty-card {
  border-color: rgba(185, 231, 105, .25);
  color: var(--muted);
  background: rgba(15, 24, 20, .72);
}

.empty-card:hover { border-color: rgba(185, 231, 105, .48); background: rgba(185, 231, 105, .045); }
.empty-card b { color: #edf3ef; }
.empty-card .icon { color: var(--lime); }

.data-table th {
  color: #9eaaa4;
  background: #111914;
}

.data-table td {
  border-color: var(--line-soft);
  color: #dce4df;
}

.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: rgba(185, 231, 105, .035); }
.player-cell b { color: #edf2ee; }
.player-cell small { color: var(--muted); }
.star-button { color: #67746d; }
.star-button.active { color: var(--gold); }

.tournament-banner {
  min-height: 205px;
  border: 1px solid rgba(221, 184, 90, .25);
  background-image:
    linear-gradient(90deg, rgba(5, 14, 10, .96), rgba(6, 20, 14, .81) 52%, rgba(6, 16, 12, .38)),
    url('/assets/deobriga-association-bg-v2.jpg');
  background-position: center, center 52%;
  background-size: cover;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .055);
}

.tournament-banner::before {
  content: "";
  height: 2px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, var(--gold), var(--lime) 42%, transparent 78%);
  opacity: .75;
}

.tournament-banner::after {
  width: 265px;
  height: 210px;
  right: -50px;
  bottom: -70px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1) sepia(.2) contrast(1.2);
  opacity: .055;
}

.tournament-banner h2 { color: #fff; text-shadow: 0 3px 22px rgba(0, 0, 0, .5); }
.tournament-banner p { color: #c1cec7; }
.banner-event-label { color: var(--gold-soft); border-color: rgba(221, 184, 90, .24); background: rgba(8, 13, 11, .52); }
.banner-actions .ghost-button { border-color: rgba(255, 255, 255, .2); background: rgba(5, 12, 9, .6); }

.tabs { border-color: var(--line-strong); }
.tabs button { color: #89978f; }
.tabs button:hover { color: #dce5df; }
.tabs button.active { color: #fff; border-color: var(--lime); }

.info-item { border-color: var(--line-soft); background: rgba(255, 255, 255, .012); }
.info-item small { color: #8f9d95; }
.info-item b { color: #edf2ef; }
.progress-block { border-top: 1px solid var(--line-soft); }
.progress-head { color: #dce5df; }
.progress-bar { background: #0b120f; }
.progress-bar i { background: linear-gradient(90deg, #1b865d, var(--lime)); box-shadow: 0 0 12px rgba(185, 231, 105, .18); }
.next-match, .draw-footer { border-color: var(--line-soft); }
.draw-footer { background: rgba(255, 255, 255, .012); }
.draw-footer p { color: var(--muted); }

.queue-row {
  border-color: var(--line-soft);
  color: var(--ink);
  background: rgba(255, 255, 255, .012);
}

.queue-row[data-action]:hover { background: rgba(185, 231, 105, .04); }
.queue-row.playing {
  background: linear-gradient(90deg, rgba(31, 151, 99, .2), rgba(31, 151, 99, .035) 72%);
  box-shadow: inset 4px 0 #32bc80;
}

.queue-position { color: #a5b1aa; background: #26332d; }
.queue-row.playing .queue-position { background: #20845c; }
.queue-copy b { color: #edf2ef; }
.queue-copy small { color: #ff9a72; }
.queue-copy i { color: #7d8b84; }

.board-badge {
  border-color: rgba(255, 255, 255, .12);
  color: #a4b0aa;
  background: rgba(255, 255, 255, .045);
}

.board-badge.assigned {
  border-color: #45a5ff;
  color: #fff;
  background: linear-gradient(135deg, #337fca, #255e9b);
  box-shadow: 0 7px 16px rgba(43, 115, 190, .25);
}

.pick-row {
  border-color: var(--line-soft);
  color: var(--ink);
  background: transparent;
}

.pick-row:hover { background: rgba(185, 231, 105, .035); }
.pick-row.selected { background: rgba(36, 151, 99, .1); }
.check-circle { border-color: #4a5a52; }
.selected .check-circle { color: #0a170f; border-color: var(--lime); background: var(--lime); }
.selected-chip { color: #dfe7e2; background: #26342d; }

.attendance-list { background: rgba(255, 255, 255, .008); }
.attendance-row { border-color: var(--line-soft); }
.attendance-row.status-absent,
.attendance-row.status-withdrawn { background: linear-gradient(90deg, rgba(225, 91, 82, .075), transparent 48%); }
.attendance-player b { color: #edf2ef; }
.attendance-player small { color: var(--muted); }
.attendance-select {
  border-color: var(--line-strong);
  color: #dfe7e2;
  background: #111a16;
}

.event-ribbon { color: #9bcaff; background: rgba(59, 143, 232, .12); }
.event-ribbon.weekly { color: #ffa37e; background: rgba(237, 116, 72, .12); }
.event-ribbon.ranking { color: #f1d27b; background: rgba(221, 184, 90, .13); }

.share-panel {
  border-color: rgba(185, 231, 105, .2);
  background:
    radial-gradient(circle at 88% 42%, rgba(185, 231, 105, .13), transparent 29%),
    linear-gradient(120deg, #0b2119, #123d2f);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .045);
}

.share-panel::after {
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1) sepia(.22) contrast(1.2);
  opacity: .04;
}

.share-panel-copy > .icon { color: #12200f; background: var(--lime); }
.share-panel-copy small { color: var(--gold-soft); }
.share-panel-copy p { color: #b7c6be; }
.share-qr-preview { color: #102d25; background: #f5f3e9; }
.share-qr-preview img { object-fit: contain; object-position: center; }

/* Cuadro: tres zonas oscuras y cromáticas, sin volver al fondo blanco. */
.bracket-toolbar {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(17, 26, 22, .82);
}

.bracket-legend { color: #aab6b0; }
.bracket-shell {
  border-color: #31423a;
  background: #080e0b;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 20px 52px rgba(0, 0, 0, .38);
}

.bracket-sheet { background: #0a100d; }
.bracket-section { border-color: rgba(255, 255, 255, .05); }

.bracket-w {
  color: #9dccff;
  background:
    radial-gradient(circle at 92% 7%, rgba(59, 143, 232, .16), transparent 25%),
    linear-gradient(90deg, #0c1820, #10283a);
  box-shadow: inset 1px 0 rgba(87, 164, 242, .16);
}

.bracket-l {
  color: #ffad8c;
  background:
    radial-gradient(circle at 8% 8%, rgba(237, 117, 72, .16), transparent 25%),
    linear-gradient(90deg, #321910, #1b120e);
  box-shadow: inset -1px 0 rgba(237, 117, 72, .17);
}

.bracket-sheet.single .bracket-w {
  background:
    radial-gradient(circle at 92% 7%, rgba(59, 143, 232, .16), transparent 25%),
    linear-gradient(100deg, #0b171f, #102b3f);
}

.bracket-title,
.bracket-w .bracket-title,
.bracket-w .round-title { color: #a9d3ff; }
.bracket-l .bracket-title,
.bracket-l .round-title { color: #ffb294; }
.round-title { color: #9aa9a1; }

.bracket-final-center {
  border-color: rgba(255, 255, 255, .06);
  color: #f5df9d;
  background:
    radial-gradient(circle at 50% 34%, rgba(221, 182, 74, .18), transparent 29%),
    linear-gradient(180deg, #2b2412, #19150c 52%, #241c0c);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 0 38px rgba(0, 0, 0, .28);
}

.bracket-final-center::before {
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1) sepia(.8) saturate(.7) contrast(1.2);
  opacity: .075;
}

.grand-final-heading > span { color: #211a09; background: linear-gradient(135deg, #f2d174, #c79b2e); }
.grand-final-heading h3 { color: #ffe6a0; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.grand-final-heading b { color: #d9c995; }
.grand-final-heading small { border-color: rgba(221, 182, 74, .2); color: #f0d78f; background: rgba(221, 182, 74, .08); }
.grand-final-stage .round-title { color: #ecd384; }

.match-card {
  border-color: #315a7d;
  color: #e9f0ec;
  background: #121b18;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

.match-card.l { border-color: #80452f; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.match-card.gf { border-color: #8d7130; box-shadow: 0 12px 27px rgba(0, 0, 0, .34); }
.match-card.playable:hover { box-shadow: 0 13px 30px rgba(0, 0, 0, .42), 0 0 0 1px rgba(59, 143, 232, .22); }
.match-card.l.playable:hover { box-shadow: 0 13px 30px rgba(0, 0, 0, .42), 0 0 0 1px rgba(237, 117, 72, .22); }
.match-card.gf.playable:hover { box-shadow: 0 13px 30px rgba(0, 0, 0, .42), 0 0 0 1px rgba(223, 182, 74, .25); }
.match-card.completed { border-color: #2c825c; }

.match-number { color: #a8d3ff; background: linear-gradient(90deg, rgba(59, 143, 232, .21), rgba(59, 143, 232, .08)); }
.match-card.l .match-number { color: #ffb08f; background: linear-gradient(90deg, rgba(237, 117, 72, .21), rgba(237, 117, 72, .07)); }
.match-card.gf .match-number { color: #f3d885; background: linear-gradient(90deg, rgba(223, 182, 74, .22), rgba(223, 182, 74, .07)); }
.match-player { border-color: rgba(255, 255, 255, .07); color: #e1e9e4; }
.match-player small { color: #82928a; }
.match-player .entrant-members { color: #a4b2aa; }
.match-player .slot-origin { color: #76b8f8; }
.match-card.l .slot-origin { color: #ff9168; }
.match-card.gf .slot-origin { color: #e8c865; }
.match-player.winner { color: #bdf2d4; background: linear-gradient(90deg, rgba(39, 159, 101, .17), rgba(39, 159, 101, .035)); }
.match-player.empty { color: #718078; background: rgba(255, 255, 255, .015); }
.match-card.player-path { box-shadow: 0 0 0 3px rgba(185, 231, 105, .4), 0 14px 30px rgba(0, 0, 0, .38); }
.match-player.player-hit { color: #efffe7; background: linear-gradient(90deg, rgba(185, 231, 105, .28), rgba(185, 231, 105, .06)); }

.bracket-single-outcome {
  background:
    radial-gradient(circle at 50% 42%, rgba(221, 182, 74, .16), transparent 30%),
    linear-gradient(145deg, #251f10, #141109);
}

.champion-card {
  border: 1px solid rgba(221, 184, 90, .4);
  background: linear-gradient(135deg, #123e2e, #0a2018);
  box-shadow: 0 15px 34px rgba(0, 0, 0, .34);
}

.bracket-champion {
  border-color: rgba(245, 218, 136, .42);
  background: radial-gradient(circle at 50% -30%, rgba(255, 255, 255, .17), transparent 44%), linear-gradient(135deg, #5f4509, #9d741b);
}

/* Clasificaciones. */
.ranking-hero {
  border: 1px solid rgba(221, 184, 90, .23);
  background-image:
    linear-gradient(100deg, rgba(5, 14, 10, .97), rgba(7, 26, 18, .79), rgba(7, 17, 13, .4)),
    url('/assets/deobriga-association-bg-v2.jpg');
  background-position: center, center 48%;
  background-size: cover;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .35);
}

.ranking-hero::before {
  content: "";
  height: 2px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, var(--gold), var(--lime), transparent 78%);
}

.ranking-hero::after {
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1) sepia(.2) contrast(1.2);
}

.ranking-hero p { color: var(--gold-soft); }
.ranking-hero h2 { color: #fff; }
.ranking-hero h2 span { color: var(--lime); }
.ranking-hero > div > small { color: #bdcbc4; }
.ranking-target { border-color: rgba(221, 184, 90, .26); background: rgba(5, 14, 10, .58); }
.ranking-target .icon { color: var(--gold); }
.ranking-target small { color: var(--lime); }
.ranking-tools > span { color: var(--muted); }

.podium-place {
  border-color: var(--line-strong);
  color: var(--ink);
  background: linear-gradient(180deg, #1b2721, #111814 70%);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .24);
}

.podium-place.place-1 { border-color: rgba(226, 198, 107, .48); background: linear-gradient(180deg, rgba(221, 184, 90, .14), #151a14 68%); }
.podium-place.place-2 { background: linear-gradient(180deg, rgba(141, 162, 172, .13), #121916 68%); }
.podium-place.place-3 { background: linear-gradient(180deg, rgba(201, 121, 85, .13), #171713 68%); }
.podium-place > b { color: #eef3ef; }
.podium-place > strong, .points-cell { color: var(--gold-soft); }
.podium-place > em { color: var(--muted); }
.ranking-table tr.top-1 { background: rgba(241, 204, 85, .07); }
.ranking-table tr.top-2 { background: rgba(141, 162, 172, .055); }
.ranking-table tr.top-3 { background: rgba(201, 121, 85, .055); }

.points-rules {
  border: 1px solid rgba(185, 231, 105, .18);
  background: linear-gradient(125deg, #0a2119, #174635);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
}

.points-rule-grid > span { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .045); }
.classification-switch { border-color: var(--line-strong); background: #131d18; }
.classification-switch b { color: #edf2ef; }
.classification-switch.selected { border-color: rgba(185, 231, 105, .42); background: rgba(185, 231, 105, .075); }
.classification-settings { border-color: rgba(221, 184, 90, .28); background: linear-gradient(135deg, #28230f, #1c180c); }
.classification-heading > .icon { color: #221b08; background: var(--gold); }
.classification-heading small { color: #b9aa76; }
.points-input-grid label { border-color: rgba(221, 184, 90, .15); background: rgba(255, 255, 255, .035); }
.points-input-grid span, .points-input-grid small { color: #c7b982; }
.points-input-grid input { border-color: rgba(221, 184, 90, .25); color: #fff3c5; background: #17140a; }
.weekly-option.selected { border-color: rgba(237, 116, 72, .45); background: rgba(237, 116, 72, .09); }

/* Formularios, modales, actividad y QR. */
.modal-backdrop {
  background: rgba(2, 7, 5, .82);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.modal {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #121a16;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .04);
}

.modal-header { border-color: var(--line-soft); background: #151f1a; }
.modal-header p { color: var(--gold-soft); }
.modal-header h2 { color: #f0f4f1; }
.modal-body { background: #111915; }
.modal-footer { border-color: var(--line-soft); background: #0e1512; }

.field label { color: #bec8c2; }
.field input,
.field select,
.field textarea,
.pair-name-row input,
.score-inputs input {
  border-color: var(--line-strong);
  color: #edf3ef;
  background: #0b120f;
}

.field input::placeholder,
.field textarea::placeholder,
.pair-name-row input::placeholder { color: #69776f; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.pair-name-row input:focus,
.score-inputs input:focus,
.score-field .score-inputs input:focus {
  border-color: rgba(185, 231, 105, .58);
  box-shadow: 0 0 0 3px rgba(185, 231, 105, .09);
}

.field-hint { color: var(--muted); }
.option-card { border-color: var(--line-strong); background: #151e1a; }
.option-card b { color: #e9efeb; }
.option-card small { color: var(--muted); }
.option-card.selected { border-color: rgba(185, 231, 105, .5); background: rgba(185, 231, 105, .075); }
.option-card input { accent-color: var(--lime); }

.score-player { border-color: var(--line-strong); color: #edf2ef; background: #151e1a; }
.score-player.selected { border-color: #56b883; background: #185b40; }
.score-player small, .score-inputs span { color: var(--muted); }
.match-setup-grid { border-color: var(--line-soft); background: #0d1511; }
.score-field { border-color: var(--line-soft); }
.score-field > label { color: #dbe4de; }

.activity-list { background: rgba(255, 255, 255, .006); }
.activity-row { border-color: var(--line-soft); }
.activity-row::before { background: #34443c; }
.activity-dot { border-color: #151e1a; }
.activity-row b { color: #e4ebe7; }
.activity-row small { color: var(--muted); }

.qr-frame {
  border-color: rgba(221, 184, 90, .38);
  background: #f5f2e8;
  box-shadow: 0 17px 38px rgba(0, 0, 0, .34);
}

.qr-modal > b { color: #edf2ef; }
.qr-modal > p { color: var(--muted); }
.qr-modal > input { border-color: var(--line-strong); color: #bdc8c2; background: #0b120f; }
.pair-name-row { border-color: var(--line-soft); background: #151e1a; }
.pair-name-row b { color: #edf2ef; }
.pair-name-row small { color: var(--muted); }

.login-mark {
  width: 112px;
  height: 90px;
  padding: 15px;
  border: 1px solid rgba(221, 184, 90, .42);
  border-radius: 17px;
  background: linear-gradient(145deg, #fffef8, #e8e2d0);
  box-shadow: 0 13px 30px rgba(0, 0, 0, .26);
}

.login-copy b { color: #edf2ef; }
.login-copy p { color: var(--muted); }
.notice { color: #f1d88e; background: rgba(221, 184, 90, .11); }
.notice.error { color: #ffaba5; background: rgba(225, 91, 82, .11); }
.notice.success { color: #a9e7c4; background: rgba(35, 148, 94, .11); }
.toast { border: 1px solid rgba(255, 255, 255, .12); background: #173f31; box-shadow: 0 17px 40px rgba(0, 0, 0, .38); }

/* Vista pública y pantalla del local. */
body.public-view { color: #fff; background: #060b09; }

.public-shell {
  background-image:
    linear-gradient(rgba(5, 12, 9, .95), rgba(5, 12, 9, .985)),
    url('/assets/deobriga-association-bg-v2.jpg');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.public-header {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(5, 12, 9, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.public-brand img {
  width: 58px;
  height: 58px;
  padding: 9px;
  border: 1px solid rgba(221, 184, 90, .48);
  border-radius: 15px;
  background: linear-gradient(145deg, #fffef8, #e8e2cf);
  box-shadow: inset 0 0 0 3px rgba(16, 45, 37, .08), 0 8px 22px rgba(0, 0, 0, .24);
}

.public-brand b { color: #f4f7f4; }
.public-brand small { color: var(--gold-soft); }

.public-header .ghost-button,
.public-ranking-button {
  border-color: rgba(255, 255, 255, .14);
  color: #e4ebe7;
  background: rgba(255, 255, 255, .045);
}

.public-qr-button {
  border: 1px solid #c9ed7f;
  color: #13200e;
  background: linear-gradient(135deg, #caf285, #9ecf48);
}

.public-hero {
  min-height: 190px;
  border-bottom: 1px solid rgba(221, 184, 90, .16);
  background-image:
    linear-gradient(90deg, rgba(5, 14, 10, .97), rgba(6, 20, 14, .77) 58%, rgba(6, 17, 12, .37)),
    url('/assets/deobriga-association-bg-v2.jpg');
  background-position: center, center 48%;
  background-size: cover;
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, .15);
}

.public-hero::before {
  content: "";
  width: 36%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: -1px;
  background: linear-gradient(90deg, var(--gold), var(--lime), transparent);
}

.public-hero::after {
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1) sepia(.22) contrast(1.2);
  opacity: .045;
}

.public-hero h1 { color: #fff; text-shadow: 0 3px 24px rgba(0, 0, 0, .48); }
.public-hero p { color: #becbc4; }

.public-finder,
.public-queue,
.public-standings {
  border-color: rgba(255, 255, 255, .105);
  background: linear-gradient(145deg, rgba(25, 36, 30, .92), rgba(13, 21, 17, .92));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .03);
}

.public-finder > label { color: var(--gold-soft); }
.public-finder > input { border-color: rgba(255, 255, 255, .14); background: #09110d; }
.public-finder > input:focus { border-color: var(--lime); }
.finder-hint { color: #93a49b; }
.journey-card { border-color: rgba(185, 231, 105, .22); background: rgba(185, 231, 105, .085); }
.public-section-title { border-color: rgba(255, 255, 255, .085); }
.public-section-title b { color: #edf3ef; }
.public-section-title small { color: #8e9f96; }
.public-section-title em, .public-standing-grid article > strong { color: var(--gold-soft); }
.public-queue .queue-row { border-color: rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .012); }
.public-queue .queue-copy small { color: #ffa07a; }
.public-body .bracket-shell { border-color: rgba(255, 255, 255, .14); background: #070d0a; }
.public-body .bracket-title { color: #dbe5df; }
.public-empty { border-color: rgba(185, 231, 105, .2); color: #a9b7af; background: rgba(255, 255, 255, .035); }
.public-standing-grid article { border-color: rgba(255, 255, 255, .07); }

.screen-mode .public-header { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.screen-mode .queue-row { background: rgba(255, 255, 255, .018); }
.screen-mode .queue-row.playing { background: linear-gradient(90deg, rgba(35, 155, 99, .27), rgba(255, 255, 255, .015)); }

/* Panel operativo para la asignación automática de dianas. */
.board-control {
  margin-bottom: 17px;
}

.board-control-header {
  min-height: 86px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.board-control-header > div:first-child {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--gold-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .16em;
}

.board-control-header h3 {
  font: 600 18px/1.15 "Oswald", sans-serif;
}

.board-control-header small {
  display: block;
  margin-top: 5px;
  line-height: 1.45;
}

.board-control-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.board-control-actions button {
  min-height: 38px;
  padding-right: 12px;
  padding-left: 12px;
  font-size: 10px;
}

.board-control-grid {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 12px;
}

.board-control-card {
  min-height: 198px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  color: var(--text-soft);
  background: linear-gradient(145deg, #19231e, #111814);
  box-shadow: 0 11px 26px rgba(0, 0, 0, .2);
}

.board-control-card::before {
  content: "";
  height: 3px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: #53625a;
}

.board-control-card.status-free,
.board-control-card.is-active { border-color: rgba(185, 231, 105, .28); }
.board-control-card.status-free::before,
.board-control-card.is-active::before { background: var(--lime); }

.board-control-card.status-busy,
.board-control-card.is-busy {
  border-color: rgba(59, 143, 232, .45);
  background: linear-gradient(145deg, rgba(59, 143, 232, .13), #121a17);
}
.board-control-card.status-busy::before,
.board-control-card.is-busy::before { background: #52a9ff; }

.board-control-card.status-disabled,
.board-control-card.is-disabled {
  border-style: dashed;
  filter: saturate(.42);
  opacity: .68;
}

.board-control-top {
  min-height: 32px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-number {
  overflow: hidden;
  color: #eef3ef;
  font: 600 18px/1 "Oswald", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 99px;
  color: #aebbb4;
  background: rgba(255, 255, 255, .045);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .09em;
}

.status-free .board-state { border-color: rgba(185, 231, 105, .22); color: #d1f59a; background: rgba(185, 231, 105, .085); }
.status-busy .board-state { border-color: rgba(82, 169, 255, .25); color: #acd6ff; background: rgba(59, 143, 232, .11); }

.board-match {
  width: 100%;
  min-height: 104px;
  padding: 11px 12px;
  border: 1px solid rgba(59, 143, 232, .2);
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  color: #eaf2ed;
  background: rgba(7, 16, 12, .46);
  text-align: left;
  cursor: pointer;
}

.board-match:hover {
  border-color: rgba(82, 169, 255, .45);
  background: rgba(59, 143, 232, .09);
}

.board-match small,
.board-match > span {
  grid-column: 1 / -1;
}

.board-match small {
  color: #84bfff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.board-match b {
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-match b:nth-of-type(2) { text-align: right; }
.board-match i { color: #78877f; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.board-match > span { color: var(--lime); font-size: 7px; font-weight: 800; }

.board-empty {
  min-height: 104px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, .11);
  border-radius: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #7f8f86;
  text-align: center;
  background: rgba(255, 255, 255, .015);
}

.board-empty .icon { width: 20px; height: 20px; color: #718078; }
.status-free .board-empty .icon { color: var(--lime); }
.board-empty b { margin-top: 6px; color: #c9d3cd; font-size: 9px; }
.board-empty small { max-width: 200px; margin-top: 4px; color: #7e8c85; font-size: 7px; line-height: 1.4; }

.board-toggle {
  min-height: 31px;
  margin-top: 9px;
  border: 0;
  border-radius: 8px;
  color: #91a097;
  background: rgba(255, 255, 255, .045);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.board-toggle:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.status-disabled .board-toggle { color: #d5edb2; background: rgba(185, 231, 105, .08); }
.board-queue { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: #111914; }

/* Responsive: mismo carácter visual, con controles táctiles y logo íntegro. */
@media (max-width: 1080px) {
  .brand img { width: 48px; height: 48px; padding: 7px; }
  .hero { min-height: 300px; }
}

@media (max-width: 780px) {
  body { background-attachment: scroll; }
  .main-content { background: rgba(8, 13, 11, .8); }
  .topbar { border-color: var(--line-soft); }
  .hero {
    min-height: 270px;
    background-image:
      linear-gradient(90deg, rgba(4, 12, 9, .97), rgba(5, 15, 11, .86)),
      url('/assets/darts-bg.jpg');
    background-position: center, 68% center;
  }
  .mobile-nav {
    border-color: var(--line-strong);
    background: rgba(8, 14, 11, .97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, .27);
  }
  .mobile-nav button { color: #7f9087; }
  .mobile-nav button.active { color: var(--lime); }
  .mobile-nav .mobile-create {
    border: 1px solid #d2ef98;
    color: #12200e;
    background: linear-gradient(135deg, #caf285, #9ecf48);
    box-shadow: 0 9px 22px rgba(129, 177, 61, .27);
  }
  .tournament-banner {
    min-height: 205px;
    background-position: center, 67% center;
  }
  .modal { border-color: rgba(185, 231, 105, .18); }
  .public-shell { background-attachment: scroll; }
  .public-header { background: rgba(5, 12, 9, .98); }
  .public-brand img { width: 50px; height: 50px; padding: 8px; }
  .public-hero { min-height: 165px; background-position: center, 66% center; }
  .ranking-hero { background-position: center, 67% center; }
  .bracket-toolbar { background: #111a16; }
  .board-control-header { align-items: flex-start; flex-direction: column; }
  .board-control-actions { width: 100%; justify-content: flex-start; }
  .board-control-actions button { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .stat-card { padding: 12px 10px; }
  .hero { background-position: center, 73% center; }
  .public-brand img { width: 46px; height: 46px; padding: 7px; border-radius: 12px; }
  .public-brand b { letter-spacing: .035em; }
  .tournament-banner,
  .ranking-hero,
  .public-hero { background-position: center, 72% center; }
  .board-control-grid { grid-template-columns: 1fr; }
}

/* ========================================================================== */
/* Legibilidad y control del cuadro · Deobriga Darts                          */
/* Compatible con Chromium 108 / Electron 22 (Windows 7).                    */
/* ========================================================================== */

/* El emblema original es apaisado y oscuro: se muestra íntegro, sin recorte
   ni placa blanca, y se tiñe en dorado para mantener el contraste. */
.brand {
  min-height: 54px;
  gap: 11px;
  margin-right: 2px;
  margin-left: 2px;
}

.brand img,
.public-brand img {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
  filter: invert(89%) sepia(32%) saturate(1047%) hue-rotate(354deg) brightness(100%) contrast(92%);
}

.brand img {
  width: 65px;
  height: 52px;
}

.public-brand img {
  width: 70px;
  height: 55px;
}

/* La regla antigua de .toolbar-actions tenía mayor especificidad y dejaba
   botones blancos con texto claro. Estos estados quedan explícitos. */
.bracket-toolbar {
  min-height: 64px;
  padding: 13px 15px;
  border-color: rgba(185, 231, 105, .16);
  background: linear-gradient(135deg, rgba(23, 35, 29, .96), rgba(12, 20, 16, .96));
  box-shadow: 0 11px 28px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035);
}

.bracket-legend {
  gap: 18px;
  color: #d6e0da;
  font-size: 12px;
  line-height: 1.35;
}

.bracket-legend span { gap: 8px; }

.bracket-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.bracket-toolbar .toolbar-actions .ghost-button,
.bracket-nav-controls button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(211, 229, 219, .2);
  border-radius: 10px;
  color: #eef5f1;
  background: #1a2821;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.bracket-toolbar .toolbar-actions .ghost-button:hover,
.bracket-nav-controls button:hover {
  border-color: rgba(185, 231, 105, .48);
  color: #fff;
  background: #25372e;
}

.bracket-toolbar .toolbar-actions [data-action="show-qr"] {
  border-color: #c9ed7f;
  color: #14200f;
  background: linear-gradient(135deg, #caf285, #9ecf48);
  box-shadow: 0 7px 18px rgba(136, 184, 66, .18), inset 0 1px rgba(255, 255, 255, .5);
}

.bracket-toolbar .toolbar-actions [data-action="show-qr"]:hover {
  color: #091007;
  background: linear-gradient(135deg, #ddfaa7, #b1dc5d);
}

.bracket-toolbar .toolbar-actions [data-action="copy-public-link"] .icon,
.bracket-toolbar .toolbar-actions [data-action="name-pairs"] .icon {
  color: var(--gold-soft);
}

/* Controles que usa la navegación por zoom, arrastre y ajuste del cuadro. */
.bracket-nav-controls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.bracket-nav-controls button {
  min-width: 42px;
  padding-right: 10px;
  padding-left: 10px;
  cursor: pointer;
}

.bracket-nav-controls button .icon {
  width: 17px;
  height: 17px;
}

.bracket-zoom-value {
  min-width: 50px;
  color: var(--gold-soft);
  text-align: center;
  font: 600 13px/1 "Oswald", sans-serif;
}

.bracket-nav-hint,
.bracket-scroll-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aab9b1;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.bracket-nav-hint .icon,
.bracket-scroll-hint .icon {
  width: 15px;
  height: 15px;
  color: var(--lime);
}

/* El cuadro dispone de una ventana de trabajo real: scroll visible, foco de
   teclado y cursor de arrastre. La clase is-dragging la activa la lógica JS. */
.bracket-shell {
  position: relative;
  min-height: 430px;
  max-height: 76vh;
  overflow: auto;
  cursor: grab;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.bracket-viewport {
  width: 100%;
  min-height: inherit;
  max-height: inherit;
  overflow: auto;
  cursor: grab;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.bracket-shell:focus-visible,
.bracket-viewport:focus-visible {
  outline: 3px solid rgba(185, 231, 105, .55);
  outline-offset: 3px;
}

.bracket-shell.is-dragging,
.bracket-shell.is-dragging *,
.bracket-viewport.is-dragging,
.bracket-viewport.is-dragging * {
  cursor: grabbing;
  user-select: none;
}

.bracket-shell::-webkit-scrollbar,
.bracket-viewport::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

.bracket-shell::-webkit-scrollbar-track,
.bracket-viewport::-webkit-scrollbar-track {
  border: 1px solid rgba(255, 255, 255, .04);
  background: #070c09;
}

.bracket-shell::-webkit-scrollbar-thumb,
.bracket-viewport::-webkit-scrollbar-thumb {
  min-width: 50px;
  min-height: 50px;
  border: 3px solid #070c09;
  border-radius: 12px;
  background: #557365;
}

.bracket-shell::-webkit-scrollbar-thumb:hover,
.bracket-viewport::-webkit-scrollbar-thumb:hover {
  background: #709a86;
}

.bracket-sheet {
  transform-origin: left top;
}

/* Tipografía del cuadro. El tamaño mínimo anterior era de 7–9 px; aquí las
   referencias y nombres pasan a tamaños legibles sin perder jerarquía. */
.bracket-sheet.double {
  grid-template-columns: max-content 380px max-content;
}

.bracket-sheet.single {
  grid-template-columns: max-content 355px;
}

.bracket-section {
  padding: 31px 34px 40px;
}

.bracket-title {
  min-height: 40px;
  margin-bottom: 18px;
  font-size: 22px;
}

.bracket-title::before {
  width: 34px;
  height: 5px;
}

.bracket-title span {
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: .1em;
}

.bracket-rounds { gap: 38px; }

.bracket-round,
.match-card {
  width: 264px;
}

.round-title {
  height: 31px;
  padding-left: 4px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .095em;
}

.round-matches { gap: 22px; }

.match-number {
  min-height: 38px;
  padding-right: 12px;
  padding-left: 16px;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .065em;
}

.match-player {
  min-height: 64px;
  padding: 10px 12px 10px 16px;
  gap: 10px;
  font-size: 12px;
}

.match-player b {
  font-size: 12px;
  line-height: 1.35;
}

.match-player small {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
}

.match-player .slot-origin {
  letter-spacing: .025em;
}

.match-player strong {
  min-width: 25px;
  font-size: 18px;
}

.match-player .seed {
  margin-right: 7px;
  font-size: 9px;
}

.match-player.player-hit b::before { font-size: 9px; }

.bracket-final-center {
  width: 380px;
  padding: 31px 27px 36px;
}

.grand-final-heading > span { font-size: 9px; }
.grand-final-heading h3 { font-size: 31px; }
.grand-final-heading b { font-size: 11px; line-height: 1.45; }
.grand-final-heading small { max-width: 292px; font-size: 10px; line-height: 1.45; }

.grand-final-stage .round-title,
.grand-final-stage .match-card {
  width: 278px;
}

.grand-final-stage .round-title {
  margin-bottom: 10px;
  font-size: 11px;
}

.bracket-single-outcome { min-width: 355px; }
.bracket-champion { width: 278px; min-width: 278px; }
.champion-card small, .bracket-champion > span:last-child { font-size: 10px; }
.champion-card b { font-size: 23px; }

/* Dianas: estados, jugadores y cola deben poder leerse a distancia. */
.section-kicker {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .14em;
}

.board-control-header h3 { font-size: 23px; }

.board-control-header small {
  color: #aab8b0;
  font-size: 11px;
  line-height: 1.5;
}

.board-control-actions button {
  min-height: 42px;
  font-size: 12px;
}

.board-control-grid {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
}

.board-control-card {
  min-height: 226px;
  padding: 17px;
}

.board-number { font-size: 23px; }

.board-state {
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: .07em;
}

.board-match {
  min-height: 121px;
  padding: 13px 14px;
  gap: 6px 9px;
}

.board-match small { font-size: 10px; }
.board-match b { font-size: 12px; line-height: 1.35; }
.board-match i { font-size: 9px; }
.board-match > span { font-size: 10px; }

.board-empty { min-height: 121px; }
.board-empty .icon { width: 25px; height: 25px; }
.board-empty b { margin-top: 8px; font-size: 12px; }
.board-empty small { max-width: 230px; font-size: 10px; }

.board-toggle {
  min-height: 38px;
  margin-top: 11px;
  font-size: 11px;
}

.board-queue .queue-position,
.board-queue .board-badge { font-size: 10px; }
.board-queue .queue-copy small { font-size: 9px; }
.board-queue .queue-copy b { font-size: 12px; }
.board-queue .queue-copy i { font-size: 9px; }

/* Circuitos: identidad de temporada, calendario público y reglas comunes. */
.circuit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 17px;
}

.circuit-card {
  min-width: 0;
  min-height: 236px;
  padding: 21px;
  border: 1px solid rgba(221, 184, 90, .22);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  color: #edf3ef;
  background:
    radial-gradient(circle at 96% 4%, rgba(221, 184, 90, .13), transparent 31%),
    radial-gradient(circle at 6% 100%, rgba(185, 231, 105, .08), transparent 33%),
    linear-gradient(145deg, #1a2721, #0f1713);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .035);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.circuit-card::before {
  content: "";
  width: 110px;
  height: 88px;
  position: absolute;
  top: -17px;
  right: -25px;
  background: url('/assets/logo-mark.png') center / contain no-repeat;
  filter: invert(89%) sepia(32%) saturate(1047%) hue-rotate(354deg) brightness(100%) contrast(92%);
  opacity: .085;
  pointer-events: none;
}

button.circuit-card,
.circuit-card[data-action] { width: 100%; cursor: pointer; }

button.circuit-card:hover,
.circuit-card[data-action]:hover {
  border-color: rgba(185, 231, 105, .45);
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .34), 0 0 0 1px rgba(185, 231, 105, .06);
}

.circuit-card h2,
.circuit-card h3 {
  max-width: calc(100% - 50px);
  margin: 12px 0 8px;
  color: #f5f7f3;
  font: 600 24px/1.12 "Oswald", sans-serif;
}

.circuit-card p {
  margin: 0;
  color: #aab8b0;
  font-size: 11px;
  line-height: 1.55;
}

.circuit-card > small,
.circuit-card .circuit-kicker {
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.circuit-card footer,
.circuit-card .circuit-card-footer {
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: #b7c4bd;
  font-size: 10px;
}

.circuit-hero {
  min-height: 245px;
  margin-bottom: 19px;
  padding: 31px clamp(22px, 4vw, 42px);
  border: 1px solid rgba(221, 184, 90, .25);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  color: #fff;
  background-image:
    linear-gradient(95deg, rgba(5, 14, 10, .98), rgba(7, 25, 18, .84) 57%, rgba(7, 17, 13, .34)),
    url('/assets/deobriga-association-bg-v2.jpg');
  background-position: center, center 48%;
  background-size: cover;
  box-shadow: 0 23px 55px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .05);
}

.circuit-hero::before {
  content: "";
  width: 42%;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--gold), var(--lime), transparent);
}

.circuit-hero::after {
  content: "";
  width: 280px;
  height: 220px;
  position: absolute;
  top: 6px;
  right: 4%;
  background: url('/assets/logo-mark.png') center / contain no-repeat;
  filter: invert(1) sepia(.35) saturate(.8) contrast(1.2);
  opacity: .045;
  pointer-events: none;
}

.circuit-hero > * { position: relative; z-index: 1; }

.circuit-hero h1,
.circuit-hero h2 {
  margin: 9px 0 8px;
  color: #fff;
  font: 600 clamp(31px, 5vw, 48px)/1.05 "Oswald", sans-serif;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .5);
}

.circuit-hero p {
  max-width: 690px;
  margin: 0;
  color: #bdc9c2;
  font-size: 12px;
  line-height: 1.6;
}

.circuit-hero .circuit-kicker {
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.circuit-game-list {
  margin: 13px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.circuit-game-list > * {
  min-height: 31px;
  padding: 7px 11px;
  border: 1px solid rgba(185, 231, 105, .2);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d8edb6;
  background: rgba(185, 231, 105, .075);
  font-size: 10px;
  font-weight: 750;
}

.circuit-game-list > *::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(185, 231, 105, .09);
}

.circuit-schedule {
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  overflow: hidden;
  color: #e8efea;
  background: linear-gradient(150deg, rgba(24, 35, 29, .98), rgba(14, 22, 18, .98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .025);
}

.circuit-event {
  min-height: 82px;
  padding: 14px 17px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: minmax(105px, .36fr) minmax(170px, 1fr) auto;
  gap: 15px;
  align-items: center;
  color: inherit;
  background: transparent;
  text-align: left;
}

.circuit-event:last-child { border-bottom: 0; }
button.circuit-event { width: 100%; cursor: pointer; }
button.circuit-event:hover { background: rgba(185, 231, 105, .045); }
.circuit-event.is-next { background: linear-gradient(90deg, rgba(185, 231, 105, .1), transparent 70%); box-shadow: inset 4px 0 var(--lime); }
.circuit-event.is-completed { color: #a6b2ab; }

.circuit-event time,
.circuit-event .circuit-event-date {
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.circuit-event b { display: block; color: #edf3ef; font-size: 12px; line-height: 1.35; }
.circuit-event small { display: block; margin-top: 5px; color: #899b91; font-size: 9px; line-height: 1.4; }
.circuit-event > span:last-child { justify-self: end; }

.circuit-points {
  padding: 19px;
  border: 1px solid rgba(221, 184, 90, .23);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 9px;
  color: #edf3ef;
  background: linear-gradient(135deg, #29230f, #15130b);
  box-shadow: 0 14px 31px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .035);
}

.circuit-points > * {
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(221, 184, 90, .14);
  border-radius: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #aeb9b2;
  background: rgba(255, 255, 255, .028);
  text-align: center;
  font-size: 9px;
}

.circuit-points b,
.circuit-points strong {
  display: block;
  margin-top: 5px;
  color: #f5d77d;
  font: 600 20px/1 "Oswald", sans-serif;
}

.points-override-switch {
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  color: #e9efeb;
  background: #151f1a;
  cursor: pointer;
}

.points-override-switch:hover { border-color: rgba(185, 231, 105, .32); }
.points-override-switch.selected,
.points-override-switch.is-active { border-color: rgba(221, 184, 90, .44); background: rgba(221, 184, 90, .075); }
.points-override-switch input { width: 19px; height: 19px; margin: 0; accent-color: var(--gold); }
.points-override-switch b { display: block; font-size: 11px; }
.points-override-switch small { display: block; margin-top: 4px; color: #98a79f; font-size: 9px; line-height: 1.4; }

.circuit-public-shell {
  min-height: 100vh;
  color: #edf3ef;
  background-image:
    linear-gradient(rgba(5, 12, 9, .94), rgba(5, 12, 9, .985)),
    url('/assets/deobriga-association-bg-v2.jpg');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.circuit-public-shell .circuit-schedule,
.circuit-public-shell .circuit-points {
  box-shadow: 0 19px 44px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .035);
}

@media (max-width: 1080px) {
  .brand img {
    width: 59px;
    height: 47px;
    padding: 0;
  }

  .brand { gap: 9px; }
  .brand strong { font-size: 18px; }
}

@media (max-width: 780px) {
  .mobile-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .mobile-nav button { min-width: 0; }
  .mobile-nav small { font-size: 7px; }
  .mobile-nav .icon { width: 18px; height: 18px; }
  .mobile-nav .mobile-create { width: 42px; height: 42px; }

  .public-brand img {
    width: 60px;
    height: 47px;
    padding: 0;
  }

  .bracket-toolbar { gap: 12px; }
  .bracket-legend { font-size: 11px; }
  .toolbar-actions { width: 100%; }
  .bracket-nav-controls { width: 100%; justify-content: flex-start; }
  .bracket-nav-hint, .bracket-scroll-hint { width: 100%; }

  .bracket-shell,
  .bracket-viewport {
    min-height: 380px;
    max-height: 70vh;
  }

  .bracket-sheet.double { grid-template-columns: max-content 326px max-content; }
  .bracket-sheet.single { grid-template-columns: max-content 310px; }
  .bracket-section { padding: 24px 21px 31px; }
  .bracket-final-center { width: 326px; padding: 25px 20px 30px; }
  .bracket-rounds { gap: 30px; }
  .bracket-round, .match-card { width: 252px; }
  .grand-final-stage .round-title, .grand-final-stage .match-card { width: 260px; }
  .bracket-single-outcome { min-width: 310px; }

  .board-control-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

  .circuit-grid { grid-template-columns: 1fr; }
  .circuit-hero { min-height: 220px; padding: 25px 22px; align-items: flex-start; flex-direction: column; }
  .circuit-event { grid-template-columns: 92px minmax(0, 1fr); gap: 10px 12px; }
  .circuit-event > span:last-child { grid-column: 2; justify-self: start; }
  .circuit-public-shell { background-attachment: scroll; }
}

@media (max-width: 420px) {
  .public-brand img {
    width: 54px;
    height: 43px;
    padding: 0;
    border-radius: 0;
  }

  .mobile-nav small { font-size: 6.5px; }
  .mobile-nav .mobile-create { width: 40px; height: 40px; }

  .bracket-toolbar .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bracket-toolbar .toolbar-actions .ghost-button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .bracket-nav-controls { display: grid; grid-template-columns: repeat(4, minmax(42px, 1fr)); }
  .bracket-nav-controls button { min-width: 0; }
  .board-control-grid { grid-template-columns: 1fr; }
  .circuit-card { min-height: 215px; padding: 18px; }
  .circuit-hero h1, .circuit-hero h2 { font-size: 30px; }
  .circuit-event { grid-template-columns: 1fr; }
  .circuit-event > span:last-child { grid-column: 1; }
  .circuit-points { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
}

/* Debe quedar al final: prevalece sobre los ajustes responsive históricos. */
.bracket-viewer { width: 100%; max-width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
.bracket-zone-buttons,
.bracket-zoom-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.bracket-shell { width: 100%; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; overscroll-behavior-y: auto; }
.bracket-sheet { min-width: max-content; }

@media (max-width: 780px) {
  .bracket-nav-controls {
    position: sticky;
    left: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
    border: 1px solid rgba(185,231,105,.14);
    border-radius: 13px;
    background: rgba(8,14,11,.96);
    box-shadow: 0 10px 25px rgba(0,0,0,.24);
  }
  .bracket-nav-hint { width: 100%; font-size: 11px; }
  .bracket-zone-buttons,
  .bracket-zoom-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
  .bracket-zoom-buttons { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .bracket-zone-buttons button,
  .bracket-zoom-buttons button { min-width: 0; min-height: 44px; padding: 0 6px; font-size: 11px; }
  .public-view .bracket-shell { min-height: 56vh; max-height: 70vh; }
}

@media (max-width: 420px) {
  .bracket-nav-controls { display: grid; grid-template-columns: 1fr; }
}

/* Legibilidad final: incluso con el zoom móvil mínimo, los nombres y orígenes
   conservan un tamaño útil y los nombres largos pueden ocupar dos líneas. */
.match-number { font-size: 11px; }
.match-player,
.match-player b { font-size: 14px; }
.match-player small,
.match-player .slot-origin { font-size: 11px; }

@media (max-width: 780px) {
  .public-view .match-player { min-height: 74px; }
  .public-view .match-player span { min-width: 0; }
  .public-view .match-player b {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .public-header { flex-wrap: wrap; gap: 10px; }
  .public-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-actions button { min-height: 44px; min-width: 0; }
}

/* ========================================================================== */
/* Identidad visual viva · acabado de club de dardos                          */
/* ========================================================================== */

:root {
  --ink: #f4faf6;
  --muted: #adbbb3;
  --paper: #06100b;
  --card: #14251c;
  --line: #345144;
  --forest: #061b12;
  --forest-2: #16845a;
  --lime: #c2f769;
  --orange: #ff7849;
  --orange-dark: #ff9a73;
  --gold: #efc65c;
  --gold-soft: #ffe09a;
  --danger: #f0645b;
  --surface-0: #06100b;
  --surface-1: #0b1912;
  --surface-2: #12251b;
  --surface-3: #193329;
  --surface-4: #214438;
  --line-soft: rgba(216, 241, 226, .11);
  --line-strong: rgba(216, 241, 226, .22);
  --text-soft: #d7e3dc;
  --shadow: 0 20px 50px rgba(0, 0, 0, .38);
}

body {
  background-image:
    linear-gradient(118deg, rgba(4, 13, 8, .9), rgba(5, 18, 11, .77)),
    url('/assets/darts-bg.jpg');
  background-position: center, center right;
}

.app-shell {
  background:
    radial-gradient(circle at 83% 4%, rgba(194, 247, 105, .12), transparent 27%),
    radial-gradient(circle at 25% 92%, rgba(255, 120, 73, .09), transparent 31%),
    linear-gradient(130deg, rgba(6, 16, 11, .91), rgba(10, 25, 17, .83));
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(239, 198, 92, .045), transparent 20%),
    radial-gradient(circle at 8% 74%, rgba(194, 247, 105, .17), transparent 34%),
    linear-gradient(180deg, #07140d, #06100b 66%, #0a1d13);
  box-shadow: 20px 0 54px rgba(0, 0, 0, .32);
}

/* El propio PNG ya tiene transparencia real. La placa blanca venía del CSS. */
.brand {
  width: 100%;
  min-height: 112px;
  margin: 0 0 28px;
  padding: 4px 2px 11px;
  justify-content: center;
  border-bottom: 1px solid rgba(239, 198, 92, .16);
}

.brand img {
  width: 178px;
  height: 108px;
  max-width: 100%;
  filter: invert(91%) sepia(48%) saturate(1020%) hue-rotate(342deg) brightness(104%) contrast(95%) drop-shadow(0 8px 18px rgba(0,0,0,.32));
  transition: transform .2s ease, filter .2s ease;
}

.brand:hover img {
  transform: translateY(-2px) scale(1.025);
  filter: invert(94%) sepia(61%) saturate(1110%) hue-rotate(338deg) brightness(110%) contrast(98%) drop-shadow(0 11px 24px rgba(239,198,92,.18));
}

.main-content {
  background:
    linear-gradient(105deg, rgba(5, 14, 9, .62), rgba(9, 25, 16, .34)),
    radial-gradient(circle at 72% 34%, rgba(28, 134, 89, .07), transparent 34%);
}

.topbar {
  border-bottom-color: rgba(239, 198, 92, .12);
  background: linear-gradient(90deg, rgba(6, 16, 11, .18), rgba(20, 47, 33, .12));
}

.topbar::after {
  width: 92px;
  background: linear-gradient(90deg, var(--lime), var(--gold), transparent);
  box-shadow: 0 0 18px rgba(194, 247, 105, .28);
}

.nav-item { color: #a7b8ae; }
.nav-item:hover {
  border-color: rgba(194, 247, 105, .16);
  background: linear-gradient(90deg, rgba(194, 247, 105, .1), rgba(255, 120, 73, .035));
}
.nav-item.active {
  border-color: rgba(194, 247, 105, .28);
  background: linear-gradient(90deg, rgba(194, 247, 105, .2), rgba(17, 70, 45, .12));
  box-shadow: inset 4px 0 var(--lime), 0 10px 24px rgba(0, 0, 0, .19), 0 0 22px rgba(194,247,105,.035);
}

.primary-button {
  border-color: #dcff9b;
  background: linear-gradient(135deg, #d7ff8d, #99d743);
  box-shadow: 0 10px 25px rgba(144, 207, 65, .29), inset 0 1px rgba(255,255,255,.66);
}
.primary-button:hover {
  background: linear-gradient(135deg, #e7ffb0, #afe951);
  box-shadow: 0 14px 33px rgba(144, 207, 65, .38), 0 0 0 2px rgba(194,247,105,.08);
}

.hero {
  border-color: rgba(239, 198, 92, .38);
  background-image:
    linear-gradient(90deg, rgba(3, 12, 7, .96) 0%, rgba(5, 24, 14, .79) 47%, rgba(5, 20, 12, .12) 100%),
    url('/assets/darts-bg.jpg');
  box-shadow: 0 28px 70px rgba(0, 0, 0, .44), inset 0 1px rgba(255,255,255,.09), 0 0 0 1px rgba(194,247,105,.035);
}
.hero::before {
  background:
    linear-gradient(90deg, var(--gold), var(--lime) 32%, transparent 61%) left top / 100% 3px no-repeat,
    radial-gradient(circle at 81% 21%, rgba(194, 247, 105, .19), transparent 30%),
    linear-gradient(120deg, transparent 48%, rgba(255,120,73,.055));
}
.hero-kicker { color: #ffe49d; }
.hero h2 span { color: #caff72; text-shadow: 0 0 22px rgba(194,247,105,.2); }
.hero p { color: #cfdbd4; }

.target-orbit {
  width: 234px;
  height: 234px;
  border-color: rgba(239, 198, 92, .48);
  background:
    radial-gradient(circle, rgba(194, 247, 105, .16), rgba(10, 35, 21, .62) 42%, rgba(3, 12, 7, .34) 63%, transparent 64%),
    repeating-radial-gradient(circle, transparent 0 25px, rgba(239,198,92,.09) 26px 27px);
  box-shadow: inset 0 0 52px rgba(0,0,0,.55), 0 22px 55px rgba(0,0,0,.3), 0 0 32px rgba(194,247,105,.08);
}
.target-orbit::before,
.target-orbit::after { border-color: rgba(239, 198, 92, .3); }
.target-orbit img {
  width: 184px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
  object-position: center top;
  filter: invert(91%) sepia(48%) saturate(1020%) hue-rotate(342deg) brightness(105%) contrast(96%) drop-shadow(0 8px 15px rgba(0,0,0,.5));
}
.target-dot {
  width: 15px;
  height: 15px;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255,120,73,.15), 0 0 24px rgba(255,120,73,.6);
}

.stats-grid { gap: 16px; }
.stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(216, 241, 226, .22);
  background:
    radial-gradient(circle at 100% 0, rgba(194,247,105,.1), transparent 34%),
    linear-gradient(145deg, rgba(29, 52, 39, .98), rgba(12, 27, 18, .98));
  box-shadow: 0 15px 34px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.055);
}
.stat-card::after {
  content: "";
  width: 74px;
  height: 3px;
  position: absolute;
  right: 16px;
  bottom: 0;
  border-radius: 4px 4px 0 0;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(194,247,105,.34);
}
.stat-card:nth-child(2)::after { background: var(--orange); box-shadow: 0 0 14px rgba(255,120,73,.34); }
.stat-card:nth-child(3)::after { background: var(--gold); box-shadow: 0 0 14px rgba(239,198,92,.34); }
.stat-card:nth-child(4)::after { background: #65b5ff; box-shadow: 0 0 14px rgba(101,181,255,.34); }
.stat-icon { border: 1px solid rgba(194,247,105,.22); }

.panel,
.tournament-card,
.board-control-card,
.circuit-card {
  border-color: rgba(216, 241, 226, .2);
  box-shadow: 0 17px 40px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.045);
}
.panel {
  background:
    radial-gradient(circle at 98% -20%, rgba(239,198,92,.065), transparent 34%),
    linear-gradient(150deg, rgba(26, 47, 36, .99), rgba(11, 25, 17, .99));
}
.panel-header {
  position: relative;
  background: linear-gradient(90deg, rgba(194,247,105,.045), rgba(239,198,92,.025));
}
.panel-header::before {
  content: "";
  width: 4px;
  height: 22px;
  margin-right: 10px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--lime), var(--gold));
  box-shadow: 0 0 13px rgba(194,247,105,.24);
}
.panel-header h3 { margin-right: auto; }

.tournament-row:hover,
.data-table tbody tr:hover { background: rgba(194,247,105,.075); }
.tournament-card:hover,
.circuit-card:hover {
  border-color: rgba(194,247,105,.48);
  box-shadow: 0 22px 52px rgba(0,0,0,.38), 0 0 0 1px rgba(194,247,105,.09), 0 0 30px rgba(194,247,105,.045);
}

.status-pill.live {
  color: #c8ffdf;
  border: 1px solid rgba(51, 213, 135, .22);
  background: rgba(35, 160, 99, .24);
  box-shadow: 0 0 16px rgba(35,160,99,.09);
}
.status-pill.draft { color: #ffe29a; border: 1px solid rgba(239,198,92,.18); background: rgba(239,198,92,.16); }
.status-pill.completed { color: #d1dcd5; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.08); }

.segmented button.active {
  color: #fff;
  background: linear-gradient(145deg, #31533f, #203c2e);
  box-shadow: 0 6px 18px rgba(0,0,0,.3), inset 0 -3px var(--lime), 0 0 18px rgba(194,247,105,.05);
}

.search-box:focus-within {
  border-color: rgba(194,247,105,.64);
  box-shadow: 0 0 0 3px rgba(194,247,105,.1), 0 0 24px rgba(194,247,105,.05);
}

@media (max-width: 1080px) {
  .brand { min-height: 100px; }
  .brand img { width: 156px; height: 96px; }
}

/* Resultado de cada partido: el color solo se aplica a cruces realmente
   resueltos. El icono mantiene la lectura inequívoca además del rojo/verde. */
.match-card.completed .match-player.winner {
  color: #eafff2;
  background: linear-gradient(90deg, rgba(24, 151, 82, .52), rgba(18, 91, 56, .28));
  box-shadow: inset 5px 0 #38da83;
}

.match-card.completed .match-player.loser {
  color: #ffe7e5;
  background: linear-gradient(90deg, rgba(194, 48, 49, .5), rgba(103, 27, 31, .3));
  box-shadow: inset 5px 0 #f05c57;
}

.match-card.completed .match-player.winner b::after,
.match-card.completed .match-player.loser b::after {
  margin-left: 7px;
  font-weight: 900;
}

.match-card.completed .match-player.winner b::after {
  content: "\2713";
  color: #75f3ac;
}

.match-card.completed .match-player.loser b::after {
  content: "\2715";
  color: #ff9b96;
}

.match-card.completed .match-player.winner small { color: #c4f0d7; }
.match-card.completed .match-player.loser small { color: #f6bbb7; }
.match-card.completed .match-player.winner strong { color: #8dffc0; }
.match-card.completed .match-player.loser strong { color: #ffaaa5; }
.match-card.completed .match-player.winner.player-hit b::before,
.match-card.completed .match-player.loser.player-hit b::before { color: #fff; }

/* Centro de exportación: una sola salida para impresión, archivo y redes. */
.page-tool-actions,
.ranking-export-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ranking-export-tools > span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.export-trigger {
  border-color: rgba(185, 231, 105, .35) !important;
  color: #eaffca !important;
  background: linear-gradient(145deg, rgba(51, 96, 63, .72), rgba(24, 50, 35, .9)) !important;
  box-shadow: inset 0 0 0 1px rgba(185, 231, 105, .05), 0 8px 24px rgba(0, 0, 0, .2);
}

.export-trigger:hover:not(:disabled) {
  border-color: rgba(202, 246, 119, .72) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(185, 231, 105, .12), 0 10px 30px rgba(25, 111, 65, .22);
}

.export-modal-header {
  background:
    radial-gradient(circle at 82% -30%, rgba(185, 231, 105, .16), transparent 44%),
    linear-gradient(135deg, #17251d, #0d1511);
}

.export-modal-header h2 { max-width: 570px; }

.export-modal-body {
  display: grid;
  gap: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at 8% 16%, rgba(220, 179, 70, .07), transparent 30%),
    #0d1511;
}

.export-social-feature {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid rgba(202, 246, 119, .3);
  border-radius: 20px;
  background-image:
    linear-gradient(90deg, rgba(4, 12, 8, .97) 0%, rgba(7, 20, 13, .9) 55%, rgba(7, 19, 13, .36) 100%),
    url('/assets/instagram-darts-template-v1.png');
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 0 42px rgba(185, 231, 105, .035);
}

.export-social-feature::after {
  content: "";
  position: absolute;
  width: 185px;
  height: 185px;
  right: -73px;
  top: -74px;
  border: 20px solid rgba(185, 231, 105, .12);
  border-radius: 50%;
  pointer-events: none;
}

.export-social-feature > div:first-child { position: relative; z-index: 1; }
.export-social-feature > div:first-child > span {
  color: #c8f37d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}
.export-social-feature h3 {
  max-width: 430px;
  margin: 9px 0 8px;
  color: #f4f8f5;
  font: 600 24px/1.12 "Oswald", sans-serif;
  letter-spacing: .015em;
}
.export-social-feature p {
  max-width: 420px;
  margin: 0;
  color: #aebcb4;
  font-size: 11px;
  line-height: 1.55;
}

.export-social-preview {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(3,11,7,.72)),
    url('/assets/instagram-darts-template-v1.png') center/cover;
  box-shadow: 0 13px 28px rgba(0,0,0,.38);
  transform: rotate(2.5deg);
}
.export-social-preview span,
.export-social-preview b { color: #fff; font-family: "Oswald", sans-serif; line-height: .95; }
.export-social-preview span { font-size: 14px; letter-spacing: .08em; }
.export-social-preview b { color: #c8f37d; font-size: 24px; }
.export-social-preview i { margin-top: 7px; color: rgba(255,255,255,.7); font-size: 7px; font-style: normal; letter-spacing: .12em; }

.export-section { display: grid; gap: 12px; }
.export-section.standalone { padding-block: 2px 4px; }
.export-section-title { display: flex; align-items: center; gap: 10px; }
.export-section-title > .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  color: #d2fa88;
  background: rgba(185, 231, 105, .1);
}
.export-section-title > div { display: grid; gap: 2px; }
.export-section-title b { color: #edf5ef; font-size: 13px; }
.export-section-title small { color: var(--muted); font-size: 9px; }

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#modal-root .export-choice {
  position: relative;
  min-width: 0;
  min-height: 91px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #eaf1ec;
  background: linear-gradient(145deg, rgba(31, 45, 37, .92), rgba(17, 27, 22, .96));
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

#modal-root .export-choice:hover:not(:disabled) {
  z-index: 1;
  border-color: rgba(185, 231, 105, .55);
  background: linear-gradient(145deg, rgba(42, 64, 49, .96), rgba(20, 34, 27, .98));
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 0 22px rgba(185,231,105,.04);
  transform: translateY(-2px);
}

#modal-root .export-choice:focus-visible {
  outline: 3px solid rgba(185, 231, 105, .34);
  outline-offset: 2px;
}

#modal-root .export-choice.social {
  border-color: rgba(185, 231, 105, .2);
  background:
    radial-gradient(circle at 105% -20%, rgba(221, 184, 90, .17), transparent 44%),
    linear-gradient(145deg, rgba(37, 63, 46, .96), rgba(16, 29, 22, .98));
}

.export-choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #c9f478;
  background: rgba(185, 231, 105, .1);
}
.export-choice-icon .icon { width: 21px; height: 21px; }
.export-choice-copy { min-width: 0; display: grid; gap: 4px; }
.export-choice-copy b { color: #f2f7f3; font-size: 12px; }
.export-choice-copy small { color: #97a79f; font-size: 9px; line-height: 1.35; }
#modal-root .export-choice > em {
  align-self: start;
  padding: 4px 7px;
  border-radius: 20px;
  color: #d8f5a4;
  background: rgba(185, 231, 105, .08);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}

#modal-root .export-choice:disabled {
  border-color: rgba(255,255,255,.055);
  color: #68756e;
  background: rgba(14, 22, 18, .68);
  cursor: not-allowed;
  opacity: .62;
}
#modal-root .export-choice:disabled .export-choice-icon { color: #6e7d74; background: rgba(255,255,255,.045); }
#modal-root .export-choice:disabled .export-choice-copy b { color: #87948d; }
#modal-root .export-choice:disabled > em { color: #77847d; background: rgba(255,255,255,.04); }

#modal-root .export-choice.is-exporting { pointer-events: none; }
#modal-root .export-choice.is-exporting::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #c9f478;
  border-radius: 50%;
  animation: exportSpin .7s linear infinite;
}
#modal-root .export-choice.is-exporting > * { opacity: .28; }
@keyframes exportSpin { to { transform: rotate(360deg); } }

.export-modal-footer { align-items: center; justify-content: space-between; }
.export-modal-footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #84948c;
  font-size: 9px;
}
.export-modal-footer > span .icon { width: 15px; height: 15px; color: #a9d663; }

@media (max-width: 720px) {
  .ranking-export-tools { width: 100%; justify-content: space-between; }
  .ranking-export-tools > span { white-space: normal; }
  .page-tool-actions { width: 100%; }
  .page-tool-actions > button { flex: 1 1 0; }
  .export-social-feature { grid-template-columns: 1fr 112px; min-height: 166px; padding: 20px; }
  .export-social-feature h3 { font-size: 20px; }
  .export-social-feature p { font-size: 10px; }
  .export-grid { grid-template-columns: 1fr; }
  #modal-root .export-choice { min-height: 82px; }
  .export-modal-footer > span { flex: 1 1 100%; }
}

@media (max-width: 430px) {
  .export-modal-body { padding: 15px; gap: 19px; }
  .export-social-feature { grid-template-columns: 1fr; min-height: 155px; }
  .export-social-preview { display: none; }
  #modal-root .export-choice { grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
  #modal-root .export-choice > em { grid-column: 2; justify-self: start; margin-top: -2px; }
  .export-choice-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .export-trigger,
  #modal-root .export-choice { transition: none; }
}

/* Emblema v2: sin placa blanca ni amarillos, y marca inferior centrada. */
.sidebar::after {
  width: 184px;
  height: 146px;
  right: auto;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  background-position: center;
  filter: invert(88%) sepia(24%) saturate(620%) hue-rotate(84deg) brightness(103%) contrast(92%);
  opacity: .075;
}

.hero {
  border-color: rgba(194, 247, 105, .42);
}

.hero::before {
  background:
    linear-gradient(90deg, var(--lime), var(--orange) 44%, transparent 72%) left top / 100% 3px no-repeat,
    radial-gradient(circle at 81% 21%, rgba(194, 247, 105, .22), transparent 31%),
    linear-gradient(120deg, transparent 47%, rgba(255, 120, 73, .075));
}

.hero-kicker { color: #ff9a6f; }

.target-orbit {
  width: 242px;
  height: 242px;
  border: 1px solid rgba(194, 247, 105, .52);
  background:
    radial-gradient(circle, rgba(194, 247, 105, .12), rgba(7, 30, 19, .78) 45%, rgba(3, 12, 7, .42) 66%, transparent 67%),
    repeating-radial-gradient(circle, transparent 0 26px, rgba(194, 247, 105, .11) 27px 28px);
  box-shadow: inset 0 0 58px rgba(0,0,0,.62), 0 24px 58px rgba(0,0,0,.36), 0 0 38px rgba(194,247,105,.11);
}

.target-orbit::before { border-color: rgba(255, 120, 73, .38); }
.target-orbit::after { border-color: rgba(235, 247, 239, .2); }

.target-orbit img {
  width: 210px;
  height: 210px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .58));
}

.target-dot { display: none; }

/* El centro de exportación se lee con comodidad también en móvil. */
.export-social-feature > div:first-child > span { font-size: 11px; }
.export-social-feature p { font-size: 12px; }
.export-section-title small { font-size: 11px; }
.export-choice-copy b { font-size: 13px; }
.export-choice-copy small { font-size: 11px; }
#modal-root .export-choice > em { font-size: 9px; }
.export-modal-footer > span { font-size: 11px; }

@media (max-width: 1080px) {
  .sidebar::after { width: 158px; height: 126px; }
}

@media (max-width: 720px) {
  .export-social-feature p { font-size: 11px; }
}

/* ========================================================================== */
/* Deobriga v7 · portada pública, categorías, inscripciones y operación clara */
/* ========================================================================== */

/* Siempre se conserva el dibujo oficial. Solo se invierte su tinta negra para
   que pueda leerse sobre fondos oscuros, sin placas blancas ni reinterpretar. */
.brand img,
.public-brand img,
.registration-hero img,
.target-orbit img {
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: invert(1) brightness(1.08) drop-shadow(0 10px 22px rgba(0,0,0,.35));
}

.brand { min-height: 132px; padding-inline: 0; }
.brand img { width: 190px; height: 122px; }
.sidebar::after { background-image: url('/assets/logo-mark.png'); filter: invert(1); opacity: .045; }
.target-orbit { border-color: rgba(255,255,255,.13); background: radial-gradient(circle, rgba(194,247,105,.09), rgba(6,24,15,.72) 52%, transparent 70%); }
.target-orbit img { width: 214px; height: 170px; }

.tournament-card::after,
.public-event-card::after {
  background-image: url('/assets/logo-mark.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: invert(1);
}

.tournament-card.event-timba { border-top: 4px solid #ff7849; background: radial-gradient(circle at 95% 6%,rgba(255,120,73,.18),transparent 33%),linear-gradient(145deg,#2d1d17,#131a15 62%); }
.tournament-card.event-official { border-top: 4px solid #65b5ff; background: radial-gradient(circle at 95% 6%,rgba(101,181,255,.18),transparent 33%),linear-gradient(145deg,#102838,#121d18 62%); }
.tournament-card.event-championship { border-top: 4px solid #d3a8ff; background: radial-gradient(circle at 95% 6%,rgba(211,168,255,.17),transparent 33%),linear-gradient(145deg,#261b32,#151a17 62%); }
.event-ribbon.timba { color:#ffd1bf; border-color:rgba(255,120,73,.35); background:rgba(255,120,73,.16); }
.event-ribbon.official { color:#cbe7ff; border-color:rgba(101,181,255,.38); background:rgba(101,181,255,.16); }
.event-ribbon.championship { color:#ecd9ff; border-color:rgba(211,168,255,.38); background:rgba(171,103,238,.16); }
.event-ribbon.ranking { color:#e9ffbd; border-color:rgba(194,247,105,.38); background:rgba(194,247,105,.12); }

/* El visitante entra en una web pública propia, no en el panel oculto. */
.public-portal .app-shell { display:block; }
.public-portal .main-content { width:100%; min-height:100vh; padding:0; }
.public-portal-shell { background:linear-gradient(135deg,rgba(4,13,8,.96),rgba(8,27,17,.93)),url('/assets/darts-bg.jpg') center/cover fixed; }
.public-portal-header { min-height:100px; position:sticky; top:0; z-index:50; }
.public-portal-header .public-brand { width:168px; height:68px; border:0; padding:0; background:transparent; cursor:pointer; }
.public-portal-header .public-brand img { width:160px; height:66px; }
.public-portal-nav { display:flex; align-items:center; gap:7px; padding:6px; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:rgba(255,255,255,.035); }
.public-portal-nav button { min-height:40px; padding:0 18px; border:0; border-radius:10px; color:#aebeb5; background:transparent; font-weight:800; cursor:pointer; }
.public-portal-nav button:hover,.public-portal-nav button.active { color:#0e1c12; background:linear-gradient(135deg,#d8ff94,#a8df55); }
.public-login-button { min-width:126px; }
.public-portal-body { max-width:1500px; margin:0 auto; padding-top:36px; }
.public-home-hero { min-height:360px; display:grid; grid-template-columns:minmax(0,1fr) 230px; align-items:center; gap:35px; padding:52px clamp(28px,6vw,88px); overflow:hidden; position:relative; border:1px solid rgba(194,247,105,.22); border-radius:26px; background:linear-gradient(90deg,rgba(3,12,7,.97),rgba(6,25,14,.69) 58%,rgba(6,20,12,.24)),url('/assets/darts-bg.jpg') 78% center/cover; box-shadow:0 30px 70px rgba(0,0,0,.38); }
.public-home-hero::after { content:""; width:470px; height:350px; position:absolute; right:4%; top:0; background:url('/assets/logo-mark.png') center/contain no-repeat; filter:invert(1); opacity:.045; }
.public-home-hero > * { position:relative; z-index:1; }
.public-home-hero small,.public-portal-intro > small { color:#ff9c77; font-weight:900; letter-spacing:.18em; }
.public-home-hero h1 { margin:14px 0 16px; font:600 clamp(42px,6vw,76px)/.98 "Oswald",sans-serif; }
.public-home-hero h1 span { color:var(--lime); }
.public-home-hero p { max-width:680px; color:#c1d0c7; font-size:15px; line-height:1.65; }
.public-home-target { width:190px; height:190px; display:grid; place-items:center; align-content:center; justify-self:end; border:2px solid rgba(194,247,105,.38); border-radius:50%; background:radial-gradient(circle,rgba(194,247,105,.18),rgba(7,27,17,.78)); box-shadow:inset 0 0 45px rgba(0,0,0,.42),0 0 50px rgba(194,247,105,.08); }
.public-home-target .icon { width:42px; height:42px; color:var(--orange); }
.public-home-target b { margin-top:8px; font:600 46px/1 "Oswald",sans-serif; }
.public-home-target small { margin-top:7px; color:var(--lime); font-size:10px; letter-spacing:.18em; }
.public-portal-section { margin-top:42px; }
.public-portal-intro { max-width:900px; margin:18px 0 35px; }
.public-portal-intro h1 { margin:8px 0; font:600 clamp(42px,6vw,68px)/1 "Oswald",sans-serif; }
.public-portal-intro p { color:#aebfb5; font-size:14px; }
.public-event-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; }
.public-event-card { min-height:270px; padding:22px; overflow:hidden; position:relative; display:grid; grid-template-columns:72px minmax(0,1fr); grid-template-rows:auto 1fr auto; gap:15px 18px; border:1px solid rgba(255,255,255,.14); border-radius:20px; color:#f2f8f4; text-align:left; cursor:pointer; box-shadow:0 18px 42px rgba(0,0,0,.28); transition:transform .18s ease,border-color .18s ease; }
.public-event-card:hover { transform:translateY(-4px); border-color:rgba(194,247,105,.5); }
.public-event-card::after { content:""; width:145px; height:110px; position:absolute; right:-25px; bottom:-13px; opacity:.055; pointer-events:none; }
.public-event-card.event-timba { background:radial-gradient(circle at 100% 0,rgba(255,120,73,.23),transparent 35%),linear-gradient(145deg,#2c1a14,#111a15 68%); }
.public-event-card.event-official { background:radial-gradient(circle at 100% 0,rgba(82,169,255,.24),transparent 35%),linear-gradient(145deg,#112b3b,#101b16 68%); }
.public-event-card.event-championship { background:radial-gradient(circle at 100% 0,rgba(185,126,240,.23),transparent 35%),linear-gradient(145deg,#291a35,#121a15 68%); }
.public-event-card-top { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.public-event-date .date-block { width:68px; height:74px; }
.public-event-copy { min-width:0; }
.public-event-copy > small { color:#a7b8ae; font-weight:800; }
.public-event-copy h3 { margin:7px 0; font:600 24px/1.08 "Oswald",sans-serif; }
.public-event-copy p { margin:0; color:#bdcbc3; font-size:12px; }
.public-event-open { grid-column:1/-1; color:var(--lime); font-size:11px; font-weight:900; letter-spacing:.06em; }

/* Registro público y gestión de divisiones. */
.registration-shell .public-body { max-width:1040px; margin:0 auto; padding-top:42px; }
.registration-hero { min-height:230px; display:grid; grid-template-columns:190px minmax(0,1fr); gap:30px; align-items:center; padding:34px 40px; border:1px solid rgba(255,255,255,.13); border-radius:24px 24px 0 0; background:linear-gradient(135deg,rgba(21,55,38,.96),rgba(8,20,14,.97)); }
.registration-hero.event-timba { border-top:4px solid var(--orange); }
.registration-hero.event-official { border-top:4px solid #65b5ff; }
.registration-hero.event-championship { border-top:4px solid #d3a8ff; }
.registration-hero img { width:180px; height:140px; }
.registration-hero small { color:var(--lime); font-weight:900; letter-spacing:.15em; }
.registration-hero h1 { margin:8px 0; font:600 clamp(32px,5vw,54px)/1 "Oswald",sans-serif; }
.registration-hero p { color:#b4c5bb; line-height:1.55; }
.public-registration-form { padding:34px 40px; border:1px solid rgba(255,255,255,.13); border-top:0; border-radius:0 0 24px 24px; background:linear-gradient(145deg,rgba(24,43,32,.98),rgba(10,22,15,.98)); box-shadow:0 25px 65px rgba(0,0,0,.3); }
.registration-current { margin-bottom:24px; padding:17px; display:flex; gap:15px; align-items:center; border:1px solid rgba(194,247,105,.2); border-radius:14px; background:rgba(194,247,105,.075); }
.registration-current > .icon { width:34px; height:34px; color:var(--lime); }
.registration-current b,.registration-current small { display:block; }
.registration-current small { margin-top:5px; color:#a5b6ac; line-height:1.5; }
.registration-submit { width:100%; min-height:54px; margin-top:22px; font-size:14px; }
.registration-privacy { color:#93a49a; font-size:11px; line-height:1.5; text-align:center; }
.registration-honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; }
.registration-success { padding:40px; text-align:center; }
.registration-success > .icon { width:58px; height:58px; padding:14px; border-radius:50%; color:#10200f; background:var(--lime); }
.registration-success h2 { font:600 34px/1 "Oswald",sans-serif; }
.registration-admin-list { padding:14px; display:grid; gap:9px; }
.registration-admin-row { min-height:76px; padding:12px 14px; display:grid; grid-template-columns:44px minmax(180px,1fr) minmax(150px,220px) auto 38px; gap:13px; align-items:center; border:1px solid rgba(255,255,255,.1); border-radius:13px; background:rgba(255,255,255,.025); }
.registration-admin-row > span:nth-child(2) small { display:block; margin-top:4px; color:#9daf9f; }
.registration-admin-row label { display:grid; gap:4px; }
.registration-admin-row label small { color:#8fa096; }
.registration-status { padding:7px 9px; border-radius:20px; font-size:9px; font-weight:900; }
.registration-status.pending { color:#ffdba4; background:rgba(255,177,75,.12); }
.registration-status.accepted { color:#d9ffad; background:rgba(194,247,105,.12); }

/* Puntuación exacta por puesto, ajustable a cada número de inscritos. */
.placement-points-editor { display:grid; gap:15px; }
.placement-limit { max-width:360px; }
.placement-points-grid,.circuit-placement-points { display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); gap:9px; }
.placement-points-grid > label { min-height:82px; padding:11px; display:grid; gap:5px; border:1px solid rgba(255,255,255,.1); border-radius:11px; background:rgba(255,255,255,.025); }
.placement-points-grid > label span { color:#d9e4dd; font-size:10px; font-weight:800; }
.placement-points-grid > label small { color:#82938a; font-size:8px; }
.placement-points-grid input { min-height:36px; font-size:14px; }
.circuit-points { margin:18px 0; padding:18px; display:grid; gap:14px; border:1px solid rgba(239,198,92,.24); border-radius:17px; background:linear-gradient(145deg,rgba(50,39,15,.52),rgba(15,24,17,.94)); }
.circuit-points > div:first-child small,.circuit-points > div:first-child b { display:block; }
.circuit-points > div:first-child small { color:var(--gold-soft); font-size:9px; font-weight:900; letter-spacing:.13em; }
.circuit-points > div:first-child b { margin-top:5px; font-size:16px; }
.circuit-placement-points > span { padding:10px; border:1px solid rgba(239,198,92,.18); border-radius:10px; display:flex; justify-content:space-between; gap:7px; background:rgba(239,198,92,.055); }
.circuit-placement-points small { color:#bcae83; }.circuit-placement-points strong { color:#fff0bd; }
.circuit-division-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.circuit-division-tabs button { min-height:42px; padding:0 20px; border:1px solid rgba(255,255,255,.12); border-radius:22px; color:#a6b6ad; background:rgba(255,255,255,.035); cursor:pointer; }
.circuit-division-tabs button.active { color:#10200f; border-color:var(--lime); background:var(--lime); font-weight:900; }
.division-input-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.division-input-grid label { display:grid; gap:7px; }

/* Operación en el local: la cola y las dianas se leen a distancia. */
.match-queue .queue-row { min-height:88px; grid-template-columns:66px minmax(0,1fr) auto; padding:15px 18px; }
.match-queue .queue-position { min-width:58px; padding:10px 8px; font-size:10px; }
.match-queue .queue-copy small { font-size:10px; }
.match-queue .queue-copy b { margin-top:2px; font-size:14px; line-height:1.35; }
.match-queue .queue-copy i { font-size:10px; }
.match-queue .board-badge { padding:8px 10px; font-size:10px; }
.board-auto-badge { min-height:42px; padding:0 14px; display:flex; align-items:center; gap:8px; border:1px solid rgba(194,247,105,.3); border-radius:22px; color:#dfffaa; background:rgba(194,247,105,.1); font-size:10px; font-weight:900; }
.board-control-header h3 { font-size:26px; }
.board-control-header small { max-width:800px; font-size:13px; }
.board-number { font-size:25px; }.board-state { font-size:11px; }
.board-match b { font-size:14px; }.board-match small,.board-match > span { font-size:11px; }.board-match i { font-size:10px; }
.board-empty b { font-size:14px; }.board-empty small { font-size:11px; }
.board-toggle { min-height:42px; font-size:12px; }
.score-matchup.simple .score-player { min-height:92px; cursor:default; }
.score-matchup.simple .score-player b { font-size:15px; }
.score-field .score-inputs span { display:block; margin-bottom:7px; color:#d8e3dc; font-size:12px; font-weight:800; }
.score-field .score-inputs input { min-height:70px; font-size:34px; }
.bracket-shell,.bracket-viewport { overscroll-behavior-x:contain; overscroll-behavior-y:auto; touch-action:pan-x pan-y pinch-zoom; }

@media (max-width:780px) {
  .public-portal-header { min-height:auto; padding:12px 14px; flex-wrap:wrap; }
  .public-portal-header .public-brand { width:126px; height:50px; }
  .public-portal-header .public-brand img { width:124px; height:50px; }
  .public-portal-nav { order:3; width:100%; display:grid; grid-template-columns:repeat(3,1fr); }
  .public-portal-nav button { min-width:0; padding:0 7px; }
  .public-login-button { min-width:0; min-height:42px; padding-inline:11px; }
  .public-login-button .icon { display:none; }
  .public-portal-body { padding:20px 14px 38px; }
  .public-home-hero { min-height:310px; grid-template-columns:1fr; padding:34px 24px; }
  .public-home-hero p { font-size:13px; }
  .public-home-target { display:none; }
  .public-event-grid { grid-template-columns:1fr; }
  .public-event-card { min-height:246px; padding:18px; }
  .registration-shell .public-body { padding-inline:14px; }
  .registration-hero { grid-template-columns:1fr; padding:25px; border-radius:18px 18px 0 0; text-align:center; }
  .registration-hero img { width:180px; height:110px; margin:auto; }
  .public-registration-form { padding:25px 20px; }
  .registration-admin-row { grid-template-columns:42px minmax(0,1fr) 38px; }
  .registration-admin-row label,.registration-admin-row .registration-status { grid-column:2; }
  .registration-admin-row > .icon-button { grid-column:3; grid-row:1; }
  .division-input-grid { grid-template-columns:1fr; }
  .placement-points-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .match-queue .queue-row { grid-template-columns:55px minmax(0,1fr); min-height:94px; }
  .match-queue .board-badge { grid-column:2; justify-self:start; }
  .board-control-header { gap:12px; }
  .board-control-header h3 { font-size:23px; }
  .score-matchup.simple { grid-template-columns:1fr; }
  .score-matchup.simple .versus { display:none; }
  .score-field .score-inputs { gap:8px; }
}

@media (max-width:1080px) {
  .brand img { width:165px; height:106px; }
}

/* ========================================================================== */
/* Deobriga v8 · móvil legible, marca limpia y cuadro navegable                */
/* ========================================================================== */

/* Una sola presencia del logo oficial por pantalla. */
.sidebar::after,
.tournament-card::after,
.public-event-card::after,
.public-hero::after,
.public-home-hero::after,
.ranking-hero::after { content: none !important; display: none !important; }

.brand {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 8px 0 0;
}
.brand img {
  width: 202px !important;
  height: 136px !important;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  filter: invert(1) brightness(1.12) drop-shadow(0 12px 22px rgba(0,0,0,.45));
}
.public-brand {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.public-brand img {
  display: block;
  width: 168px !important;
  height: 72px !important;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
}

.public-hero,
.tournament-banner,
.ranking-hero {
  background-image:
    linear-gradient(90deg,rgba(2,12,7,.97),rgba(4,18,11,.75) 60%,rgba(3,13,8,.38)),
    url('/assets/darts-bg.jpg') !important;
  background-position: center !important;
  background-size: cover !important;
}

/* Las competiciones de liga tienen identidad propia. */
.tournament-card.event-league,
.public-event-card.event-league {
  border-top: 4px solid #e1bc58;
  background: radial-gradient(circle at 96% 5%,rgba(225,188,88,.22),transparent 34%),linear-gradient(145deg,#302713,#151b16 66%);
}
.event-ribbon.league { color:#fff0b6; border-color:rgba(225,188,88,.4); background:rgba(225,188,88,.14); }

/* Grupos y liguillas: lectura clara antes de entrar en el cuadro final. */
.league-groups-view { display:grid; gap:20px; }
.league-progress { padding:18px 20px; border:1px solid rgba(225,188,88,.22); border-radius:16px; background:linear-gradient(135deg,rgba(48,39,19,.66),rgba(13,25,17,.95)); }
.league-progress b { display:block; color:#fff0b6; font-size:17px; }
.league-progress small { display:block; margin-top:6px; color:#aebdb4; font-size:12px; }
.league-group-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px; }
.league-group-card { overflow:hidden; border:1px solid rgba(255,255,255,.12); border-radius:17px; background:linear-gradient(145deg,#17251d,#0c1510); box-shadow:0 14px 34px rgba(0,0,0,.25); }
.league-group-card > header { padding:16px 18px; border-bottom:1px solid rgba(255,255,255,.09); background:rgba(225,188,88,.07); }
.league-group-card > header h3 { margin:0; color:#fff0bd; font:600 22px/1 "Oswald",sans-serif; }
.league-group-card table { width:100%; border-collapse:collapse; font-size:12px; }
.league-group-card th,.league-group-card td { padding:10px 9px; border-bottom:1px solid rgba(255,255,255,.065); text-align:center; }
.league-group-card th:nth-child(2),.league-group-card td:nth-child(2) { text-align:left; }
.league-group-card tr.qualified { background:rgba(194,247,105,.075); }
.league-match-list { display:grid; gap:8px; padding:13px; }
.league-match-row { min-height:60px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:11px 13px; border:1px solid rgba(255,255,255,.08); border-radius:11px; background:rgba(255,255,255,.025); }
.league-match-row b { font-size:13px; }.league-match-row small { display:block; margin-top:4px; color:#9bada2; font-size:11px; }

/* El zoom pertenece al cuadro, no a la página. */
.bracket-viewer { width:100%; max-width:100%; min-width:0; grid-template-columns:minmax(0,1fr); }
.bracket-shell,
.bracket-viewport {
  width:100%;
  min-width:0;
  max-width:100%;
  height:min(72vh,760px);
  min-height:480px;
  overflow:auto;
  overscroll-behavior-x:contain;
  overscroll-behavior-y:contain;
  touch-action:none !important;
  cursor:grab;
  scrollbar-color:#74a786 #09110d;
  scrollbar-width:auto;
}
.bracket-shell.is-dragging { cursor:grabbing; user-select:none; }
.bracket-nav-controls { position:sticky; left:0; z-index:8; }
.bracket-nav-hint { color:#d7e4dc; font-size:12px !important; line-height:1.35; }
.bracket-zone-buttons button,
.bracket-zoom-buttons button { min-height:42px; color:#eaf4ed; border-color:rgba(255,255,255,.16); background:#17231d; font-size:11px; font-weight:800; }
.bracket-zoom-buttons [data-zoom="fit"] { color:#10200f; background:var(--lime); }

@media (max-width: 780px) {
  html,body { max-width:100%; overflow-x:hidden; }

  .public-header,
  .public-portal-header {
    min-height:0 !important;
    display:grid !important;
    grid-template-columns:138px minmax(0,1fr);
    align-items:center;
    gap:10px 12px;
    padding:10px 12px !important;
  }
  .public-header .public-brand,
  .public-portal-header .public-brand {
    width:138px !important;
    height:72px !important;
    min-width:0;
    padding:0 !important;
    justify-self:start;
  }
  .public-header .public-brand img,
  .public-portal-header .public-brand img {
    width:136px !important;
    height:70px !important;
  }
  .public-actions {
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px !important;
  }
  .public-header .ghost-button,
  .public-header .public-qr-button,
  .public-header .public-ranking-button,
  .public-header .primary-button {
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
    padding:7px 9px !important;
    display:flex;
    justify-content:center;
    gap:6px;
    color:#eef6f0 !important;
    border:1px solid rgba(255,255,255,.14) !important;
    background:#17231d !important;
    font-size:10px !important;
    line-height:1.15;
  }
  .public-header .public-qr-button { color:#14220f !important; border-color:#c2f769 !important; background:#c2f769 !important; }
  .public-header .primary-button { color:#fff !important; border-color:#e86f44 !important; background:#d95f37 !important; }
  .public-header .ghost-button span:last-child,
  .public-header .public-qr-button span:last-child,
  .public-header .public-ranking-button span:last-child,
  .public-header .primary-button span:last-child { display:inline !important; }
  .public-header button .icon { width:16px; height:16px; flex:0 0 auto; }

  .public-portal-header .public-portal-nav {
    grid-column:1/-1;
    order:initial;
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:5px;
    padding:5px;
  }
  .public-portal-nav button { min-height:42px; padding:4px !important; font-size:10px; }
  .public-login-button { width:100%; min-width:0 !important; min-height:42px; font-size:10px; }

  .public-body { padding:13px 12px 40px !important; }
  .public-hero { min-height:160px; padding:22px 18px !important; }
  .public-hero h1 { margin:10px 0; font-size:clamp(34px,10vw,46px) !important; line-height:1.02; }
  .public-hero p { font-size:13px !important; line-height:1.48; }
  .public-control-grid { gap:13px; }
  .public-finder,.public-queue { border-radius:17px; }
  .public-finder { padding:18px !important; }
  .public-finder label { font-size:12px !important; }
  .public-finder input { min-height:54px; font-size:16px !important; }
  .finder-hint { font-size:12px !important; line-height:1.45; }
  .public-section-title b { font-size:18px !important; }
  .public-section-title small { font-size:12px !important; }
  .match-queue .queue-row { min-height:112px; padding:16px 14px; }
  .match-queue .queue-position { min-width:58px; font-size:11px; }
  .match-queue .queue-copy small { font-size:12px; }
  .match-queue .queue-copy b { font-size:16px; }
  .match-queue .queue-copy i { font-size:11px; }
  .match-queue .board-badge { font-size:11px; }

  .bracket-toolbar { gap:12px; }
  .bracket-legend { width:100%; font-size:11px; }
  .bracket-toolbar .toolbar-actions { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .bracket-toolbar .toolbar-actions button { min-width:0; min-height:42px; padding:7px; font-size:10px; }
  .bracket-nav-controls { padding:10px; gap:8px; background:#0b1510; }
  .bracket-nav-hint { width:100%; font-size:12px !important; text-align:center; }
  .bracket-zone-buttons,.bracket-zoom-buttons { width:100%; display:flex; justify-content:center; flex-wrap:wrap; gap:5px; }
  .bracket-zone-buttons button,.bracket-zoom-buttons button { min-height:40px; padding:6px 10px; font-size:10px; }
  .bracket-shell,.bracket-viewport { height:66vh; min-height:430px; border-radius:14px; }

  .league-group-grid { grid-template-columns:1fr; }
  .league-group-card { overflow-x:auto; }
  .league-group-card table { min-width:520px; font-size:11px; }
  .league-match-row { grid-template-columns:1fr; }

  .mobile-nav {
    grid-template-columns:repeat(7,minmax(48px,1fr)) !important;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .mobile-nav::-webkit-scrollbar { display:none; }
  .mobile-nav button { min-width:48px; }
  .mobile-nav small { font-size:8px; }
}

@media (max-width: 430px) {
  .public-header,.public-portal-header { grid-template-columns:118px minmax(0,1fr); }
  .public-header .public-brand,.public-portal-header .public-brand { width:118px !important; height:64px !important; }
  .public-header .public-brand img,.public-portal-header .public-brand img { width:116px !important; height:62px !important; }
  .public-header .ghost-button,.public-header .public-qr-button,.public-header .public-ranking-button,.public-header .primary-button { font-size:9px !important; }
  .bracket-toolbar .toolbar-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ========================================================================== */
/* Deobriga v9 · interacción precisa del cuadro y cabecera móvil compacta      */
/* ========================================================================== */

.bracket-shell,
.bracket-viewport {
  cursor: zoom-in !important;
  touch-action: none !important;
}
.bracket-shell.is-dragging,
.bracket-shell.is-dragging *,
.bracket-viewport.is-dragging,
.bracket-viewport.is-dragging * {
  cursor: move !important;
  scroll-behavior: auto !important;
}
.bracket-shell .match-card[data-action] { cursor: pointer !important; }
.touch-bracket-hint { display: none; }

.finder-suggestions {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 7px;
  border: 1px solid rgba(194,247,105,.19);
  border-radius: 12px;
  background: rgba(194,247,105,.055);
}
.finder-suggestions p {
  grid-column: 1/-1;
  margin: 0 0 3px;
  color: #d9e7de;
  font-size: 11px;
}
.finder-suggestions button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  color: #f4faf6;
  background: #14251c;
  text-align: left;
  cursor: pointer;
}
.finder-suggestions button:hover { border-color: var(--lime); background: #20372a; }
.finder-suggestions small { display: block; margin-top: 3px; color: #9eb0a5; }

.match-card.player-focus-pulse,
.league-match-row.player-focus-pulse {
  position: relative;
  z-index: 12;
  animation: player-focus-pulse 1.05s ease-in-out 2;
}
@keyframes player-focus-pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(194,247,105,.45),0 10px 26px rgba(0,0,0,.3); }
  50% { box-shadow: 0 0 0 8px rgba(194,247,105,.2),0 0 32px rgba(194,247,105,.5); }
}

.league-final-total {
  min-height: 74px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(225,188,88,.24);
  border-radius: 12px;
  background: rgba(225,188,88,.08);
}
.league-final-total strong { color: #fff0b6; font: 600 29px/1 "Oswald",sans-serif; }
.league-final-total small { margin-top: 4px; color: #aebdb4; }

.registration-warning {
  max-width: 620px;
  margin: 10px auto 18px;
  padding: 10px 12px;
  display: block;
  border: 1px solid rgba(239,198,92,.26);
  border-radius: 10px;
  color: #ffe09a;
  background: rgba(239,198,92,.08);
  line-height: 1.45;
}

@media (max-width: 780px) {
  .desktop-bracket-hint { display: none; }
  .touch-bracket-hint { display: inline; }
  .bracket-scroll-button { display: none !important; }
  .bracket-zoom-buttons { display: grid !important; grid-template-columns: 48px minmax(112px,1fr) 48px !important; }
  .bracket-zoom-buttons button { width: 100%; }

  .public-portal-header {
    grid-template-columns: minmax(112px,138px) minmax(72px,1fr) !important;
    gap: 7px 10px !important;
  }
  .public-portal-header .public-login-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 5px 9px !important;
    justify-self: end;
    border-radius: 9px;
    font-size: 9px !important;
  }
  .public-portal-header .public-portal-nav {
    grid-column: 1/-1;
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    gap: 3px;
    padding: 4px;
  }
  .public-portal-header .public-portal-nav button {
    min-height: 38px;
    padding: 3px 1px !important;
    font-size: 9px;
  }
  .mobile-nav { grid-template-columns: repeat(8,minmax(46px,1fr)) !important; }
  .public-registration-form input[inputmode="decimal"],
  #player-form input[inputmode="decimal"] { font-size: 16px; }
}

@media (max-width: 430px) {
  .public-portal-header { grid-template-columns: 112px minmax(68px,1fr) !important; }
  .public-portal-header .public-portal-nav button { font-size: 8px; letter-spacing: -.02em; }
  .finder-suggestions { grid-template-columns: 1fr; }
}
