
:root {
  --navy: #071b3f;
  --blue: #144fd8;
  --electric: #2167ef;
  --lime: #c9ff45;
  --orange: #ff6936;
  --cream: #f7f2e7;
  --ink: #10182b;
  --white: #fffdfa;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.initiative-bar { min-height: 38px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; background: #06152f; color: #dbe7ff; font-size: 12px; letter-spacing: .04em; }
.initiative-bar span { display: flex; align-items: center; gap: 9px; }
.initiative-bar i { width: 8px; height: 8px; border-radius: 50%; background: #43e1ad; box-shadow: 0 0 0 5px #43e1ad20; }
.initiative-bar a { font-weight: 800; }

.site-header { height: 84px; padding: 0 4vw; display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: white; border-bottom: 1px solid #ffffff1a; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand strong { display: block; font-size: 11px; letter-spacing: .18em; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, var(--lime), #8bea38); color: var(--navy); font-size: 20px; font-weight: 1000; transform: rotate(-4deg); box-shadow: inset 0 -4px 0 #071b3f20; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 750; }
.nav-create { color: var(--lime); }
.nav-login { padding: 12px 19px; border: 1px solid #ffffff50; border-radius: 13px; }

.hero { min-height: 660px; padding: 68px 4vw 72px; display: flex; align-items: center; overflow: hidden; background: var(--navy) url("../metegol-estadio-plaza-tecnica.png") center/cover no-repeat; color: white; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #041538f7 0%, #071b3fe8 34%, #071b3f73 65%, #071b3f12 100%); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { margin: 0 0 20px; color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .24em; }
.eyebrow.dark { color: #176742; }
h1 { margin: 0; font-size: clamp(66px, 8.2vw, 128px); line-height: .83; letter-spacing: -.07em; font-weight: 950; text-transform: uppercase; }
h1 em, .how h2 em { color: var(--lime); font-style: normal; }
.hero-lead { max-width: 650px; margin: 35px 0 30px; font-size: 18px; line-height: 1.65; color: #d7e0f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border-radius: 14px; font-weight: 900; font-size: 14px; }
.button-primary { background: var(--lime); color: var(--navy); box-shadow: 0 5px 0 #6ca813; }
.button-secondary { border: 1px solid #ffffff45; color: white; }
.button-dark { background: var(--navy); color: white; }
.hero-notes { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 22px; color: #aebbd5; font-size: 12px; }
.hero-notes span::first-letter { color: var(--lime); }

.table-scene { position: relative; z-index: 1; min-height: 510px; display: grid; place-items: center; transform: rotate(2deg); }
.foos-table { width: min(580px, 88%); aspect-ratio: 1.25; border: 22px solid #ebe3d2; border-radius: 34px; background: #257c54; box-shadow: 0 28px 0 #b9ab8f, 0 44px 60px #0008, inset 0 0 0 5px #143d2d; position: relative; overflow: visible; }
.foos-table::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.5%, #ffffff70 49.5% 50.5%, transparent 50.5%); }
.center-circle { position: absolute; left: 50%; top: 50%; width: 105px; height: 105px; border: 4px solid #ffffff70; border-radius: 50%; transform: translate(-50%,-50%); }
.goal { position: absolute; left: 28%; width: 44%; height: 14%; border: 4px solid #ffffff70; }
.goal-left { top: 0; border-top: 0; }
.goal-right { bottom: 0; border-bottom: 0; }
.rod { position: absolute; left: -12%; width: 124%; height: 9px; background: #d6dae2; border-radius: 99px; box-shadow: 0 3px 0 #7d8493; display: flex; justify-content: space-evenly; }
.rod::before, .rod::after { content: ""; position: absolute; top: -5px; width: 38px; height: 18px; background: #131a2b; border-radius: 8px; }
.rod::before { left: -25px; } .rod::after { right: -25px; }
.player { width: 22px; height: 40px; margin-top: -15px; border-radius: 7px 7px 12px 12px; box-shadow: 0 5px 0 #0003; }
.player.blue { background: #175bd8; }.player.orange { background: var(--orange); }
.ball { width: 20px; height: 20px; border-radius: 50%; position: absolute; left: 59%; top: 53%; background: white; box-shadow: inset -5px -5px 0 #b8b8b8, 0 4px 9px #0005; }
.score-badge { position: absolute; top: 20px; right: 4%; display: flex; gap: 10px; background: var(--orange); color: var(--navy); padding: 11px 16px; border-radius: 14px; font: 900 28px/1 monospace; transform: rotate(5deg); box-shadow: 0 5px 0 #a92c08; z-index: 3; }
.score-badge i { font-style: normal; opacity: .5; }
.sticker { position: absolute; left: 1%; bottom: 26px; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--navy); border: 5px solid white; font-weight: 1000; font-size: 23px; transform: rotate(-12deg); box-shadow: 0 7px 0 #65a418; }

.ticker { min-height: 58px; display: flex; gap: 35px; align-items: center; justify-content: center; overflow: hidden; background: var(--orange); color: var(--navy); font-weight: 1000; font-size: 14px; white-space: nowrap; }
.ticker b { font-size: 24px; }
.section { padding: 90px 4vw; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: .95; letter-spacing: -.055em; }
.search-box { width: min(360px, 100%); height: 50px; display: flex; gap: 9px; align-items: center; padding: 0 17px; background: white; border: 1px solid #d8d1c5; border-radius: 14px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.tournament-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tournament-card { min-height: 330px; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; background: white; border: 1px solid #ddd4c4; box-shadow: 0 9px 0 #ded7c9; }
.tournament-card.lime { background: var(--lime); border-color: #9dc929; box-shadow: 0 9px 0 #8cb61e; }
.tournament-card.orange { background: var(--orange); border-color: #db3f0f; box-shadow: 0 9px 0 #b8330d; }
.card-top { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; font-weight: 900; letter-spacing: .08em; }
.card-top b { margin-left: auto; font-size: 28px; opacity: .25; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #138c57; box-shadow: 0 0 0 4px #138c5725; }
.tournament-card h3 { margin: 45px 0 8px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.tournament-card p { margin: 0; font-size: 14px; line-height: 1.5; opacity: .75; }
.progress { height: 6px; margin-top: auto; background: #071b3f22; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--navy); border-radius: inherit; }
.card-stats { margin: 14px 0 22px; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.card-stats strong { display: block; font-size: 13px; }
.tournament-card > a { display: flex; justify-content: space-between; border-top: 1px solid #071b3f33; padding-top: 16px; font-size: 13px; font-weight: 900; }
.create-card { background: var(--navy); color: white; border-color: var(--navy); box-shadow: 0 9px 0 #000; }
.create-card .big-plus { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: var(--electric); font-size: 37px; color: var(--lime); }
.create-card h3 { margin-top: 26px; }
.create-card > a { border-color: #ffffff40; color: var(--lime); }

.how { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6vw; background: var(--blue); color: white; }
.how-intro { position: sticky; top: 30px; align-self: start; }
.how h2 { font-size: clamp(48px, 6vw, 82px); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid #ffffff3a; }
.steps b { font: 900 37px/1 monospace; color: var(--lime); }
.steps h3 { margin: 0 0 8px; font-size: 24px; }
.steps p { margin: 0; max-width: 520px; color: #d5e0ff; line-height: 1.55; }

.support { display: grid; grid-template-columns: 1fr 1.15fr auto; gap: 5vw; align-items: center; background: var(--lime); }
.support h2 { font-size: clamp(40px, 4vw, 62px); }
.support > p { font-size: 16px; line-height: 1.65; }
footer { min-height: 180px; padding: 45px 4vw; display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: center; gap: 30px; background: var(--navy); color: #dbe7ff; }
footer p { max-width: 480px; font-size: 13px; line-height: 1.6; } footer > a { color: var(--lime); font-weight: 900; font-size: 13px; }

@media (max-width: 900px) {
  .site-header { height: 72px; } nav a:not(.nav-login) { display: none; } nav { gap: 8px; }
  .hero { padding-top: 52px; }
  .table-scene { min-height: 420px; }
  .tournament-grid { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; } .how-intro { position: static; }
  .support, footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .initiative-bar { font-size: 9px; padding: 0 16px; } .initiative-bar a { display: none; }
  .site-header { padding: 0 16px; }.brand span:last-child { font-size: 13px; }.brand-mark { width: 38px; height: 38px; }
  .nav-login { padding: 10px 13px; }
  .hero { min-height: 660px; padding: 250px 18px 44px; align-items: end; background-position: 64% center; }
  .hero::before { background: linear-gradient(180deg, #04153825 0%, #071b3f8c 42%, #071b3ff5 70%, #071b3f 100%); }
  h1 { font-size: 59px; }.hero-lead { font-size: 16px; margin: 26px 0; }.hero-actions .button { width: 100%; }
  .hero-notes { gap: 9px 15px; }.table-scene { min-height: 340px; }.foos-table { width: 88%; border-width: 15px; border-radius: 22px; }
  .score-badge { font-size: 21px; }.sticker { width: 66px; height: 66px; font-size: 18px; }
  .ticker { justify-content: flex-start; padding-left: 18px; }
  .section { padding: 65px 18px; }.section-heading { align-items: stretch; flex-direction: column; }.search-box { width: 100%; }
  .tournament-grid { grid-template-columns: 1fr; }.tournament-card { min-height: 305px; }
  .how h2 { font-size: 48px; }.steps li { grid-template-columns: 58px 1fr; }.steps b { font-size: 29px; }.steps h3 { font-size: 21px; }
  .support { gap: 24px; }.support .button { width: 100%; } footer { padding: 42px 18px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* Creation workspace */
.workspace-shell { min-height: 100vh; background: #edf1f6; }
.workspace-header { height: 78px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: white; font-size: 13px; }
.builder-layout { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 280px 1fr; }
.builder-layout > aside { padding: 50px 28px; background: #0b2a61; color: white; }
.builder-layout > aside > p { margin: 0 0 30px; color: #9db7e4; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.builder-layout > aside button { width: 100%; margin: 0 0 10px; padding: 11px; display: flex; align-items: center; gap: 13px; background: transparent; border: 0; color: #9db7e4; text-align: left; font-weight: 800; border-radius: 13px; }
.builder-layout > aside button i { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #ffffff30; border-radius: 10px; font-style: normal; }
.builder-layout > aside button.active { background: #ffffff13; color: white; }.builder-layout > aside button.active i { background: var(--lime); color: var(--navy); border-color: var(--lime); }.builder-layout > aside button.done i { background: #36b987; color: white; }
.builder-card { width: min(820px, calc(100% - 40px)); min-height: 660px; margin: 50px auto; padding: 46px; display: flex; flex-direction: column; background: white; border-radius: 26px; box-shadow: 0 18px 50px #071b3f12; }
.step-label { color: #3064bf; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.builder-card h2 { margin-top: 20px; font-size: clamp(37px, 4.5vw, 58px); }.form-lead { color: #65738d; line-height: 1.55; }
.builder-card label, .signup-card label { margin-top: 22px; display: grid; gap: 8px; font-size: 13px; font-weight: 900; }
.builder-card input, .builder-card textarea, .builder-card select, .signup-card input { width: 100%; padding: 15px 16px; border: 1px solid #cfd7e4; border-radius: 12px; background: #fbfcfe; color: var(--ink); outline: none; font-weight: 500; }
.builder-card textarea { min-height: 105px; resize: vertical; }.builder-card input:focus, .builder-card textarea:focus, .builder-card select:focus, .signup-card input:focus { border-color: var(--electric); box-shadow: 0 0 0 3px #2167ef18; }
.builder-card small { color: #74829a; font-weight: 500; }.choice-label { margin: 26px 0 10px; font-size: 13px; font-weight: 900; }
.option-row { display: flex; flex-wrap: wrap; gap: 10px; }.option-row button { min-width: 80px; padding: 15px; border: 1px solid #cfd7e4; border-radius: 12px; background: white; font-weight: 900; }.option-row button.selected { border-color: var(--blue); background: var(--blue); color: white; }
.format-summary { margin-top: 24px; padding: 20px; display: grid; gap: 5px; border-radius: 16px; background: #e9fbd0; border: 1px solid #badd76; }.format-summary span { color: #507238; font-size: 13px; }
.builder-actions { margin-top: auto; padding-top: 35px; display: flex; justify-content: space-between; align-items: center; }.builder-actions button { border: 0; }.back { color: #61708b; font-weight: 800; font-size: 13px; }.next { min-height: 50px; padding: 0 24px; border: 0; border-radius: 13px; background: var(--blue); color: white; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #0a348f; }.next:disabled { opacity: .65; }
.review-card { margin-top: 25px; padding: 25px; border-radius: 18px; background: var(--navy); color: white; }.review-card > b { display: block; font-size: 26px; }.review-card > span { color: #b4c4e1; }.review-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0 0; }.review-card dl div { padding: 13px; border-radius: 12px; background: #ffffff0d; }.review-card dt { color: #9fb3d6; font-size: 10px; text-transform: uppercase; }.review-card dd { margin: 5px 0 0; font-weight: 900; }
.check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; line-height: 1.45; }.check input { width: 19px !important; height: 19px; margin: 0; }.form-error { padding: 11px; border-radius: 9px; background: #fff0ed; color: #b62d17; font-size: 13px; }
.success-screen { padding: 12vh 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }.success-screen h1 { color: var(--navy); font-size: clamp(52px, 8vw, 100px); }.success-screen > p { max-width: 620px; line-height: 1.6; }.success-icon { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 48px; box-shadow: 0 7px 0 #8eaf25; }.success-actions { margin-top: 25px; display: flex; gap: 12px; }.outline-dark { border: 1px solid var(--navy); color: var(--navy); }

/* Public tournament */
.tournament-hero { min-height: 540px; padding: 75px 6vw; display: grid; grid-template-columns: 1fr auto; gap: 5vw; align-items: center; background: var(--navy); color: white; }.tournament-hero > div:first-child { max-width: 850px; }.tournament-hero h1 { font-size: clamp(64px, 8vw, 118px); }.tournament-hero > div > p:not(.eyebrow) { max-width: 650px; color: #c6d3e9; line-height: 1.6; }.event-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }.event-chips span { padding: 11px 14px; border: 1px solid #ffffff2f; border-radius: 12px; background: #ffffff0d; font-size: 12px; font-weight: 800; }.mini-score { width: 220px; height: 260px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--lime); color: var(--navy); border-radius: 32px; transform: rotate(3deg); box-shadow: 0 11px 0 #79a013; }.mini-score span { font: 1000 96px/.8 monospace; }.mini-score small { margin-top: 14px; font-weight: 900; letter-spacing: .12em; text-align: center; }.mini-score b { margin-top: 18px; padding: 8px 12px; background: var(--orange); border-radius: 99px; }
.signup-section { padding: 90px 6vw; display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; }.signup-copy h2 { font-size: clamp(48px, 6vw, 84px); }.signup-copy > p:not(.eyebrow) { max-width: 490px; color: #606b7d; line-height: 1.65; }.tournament-whatsapp { width: fit-content; margin-top: 30px; padding: 14px 18px; display: inline-flex; border-radius: 12px; background: #dff8ec; color: #08724a; font-size: 13px; font-weight: 900; }
.signup-card { padding: 32px; background: white; border-radius: 24px; box-shadow: 0 12px 0 #ded7c9; border: 1px solid #ded7c9; }.signup-card h3 { margin: 0 0 10px; font-size: 28px; }.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.signup-card .next { width: 100%; margin-top: 25px; }.signup-done { min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.signup-done > span { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 44px; }.signup-done p { max-width: 420px; color: #65738d; line-height: 1.55; }
.registered { background: white; }.count-pill { padding: 12px 18px; border-radius: 99px; background: var(--lime); font-weight: 1000; }.team-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.team-list > div { min-height: 75px; padding: 13px 18px; display: grid; grid-template-columns: 45px 1fr auto; align-items: center; border: 1px solid #dbe0e7; border-radius: 14px; }.team-list > div > b { font: 900 20px monospace; color: #7a8799; }.team-list span { font-weight: 900; }.team-list small { display: block; margin-top: 3px; color: #7a8799; font-weight: 500; }.team-list i { color: #138c57; font-style: normal; }
.empty-teams { min-height: 170px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed #cfd7e4; border-radius: 18px; text-align: center; }.empty-teams span { color: #718099; font-size: 13px; }
.bracket-preview { background: var(--blue); color: white; }.bracket-preview h2 { max-width: 900px; }.bracket-placeholder { margin-top: 45px; display: flex; align-items: center; justify-content: center; gap: 18px; }.bracket-placeholder span, .bracket-placeholder strong { min-width: 150px; padding: 22px; border-radius: 15px; background: #ffffff13; border: 1px solid #ffffff30; text-align: center; }.bracket-placeholder strong { background: var(--lime); color: var(--navy); }

/* Organizer panel */
.panel-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; background: #f1f4f8; }.panel-nav { position: sticky; top: 0; height: 100vh; padding: 24px 18px; display: flex; flex-direction: column; background: var(--navy); color: white; }.panel-nav nav { margin-top: 52px; display: grid; gap: 7px; }.panel-nav nav button { padding: 13px 15px; border: 0; border-radius: 11px; background: transparent; color: #9fb3d6; text-align: left; font-weight: 800; }.panel-nav nav button.active { background: #ffffff13; color: white; }.panel-user { margin-top: auto; padding-top: 20px; border-top: 1px solid #ffffff1f; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; }.panel-user > i { width: 36px; height: 36px; display: grid; place-items: center; background: var(--lime); color: var(--navy); border-radius: 10px; font-style: normal; font-weight: 900; }.panel-user span { min-width: 0; }.panel-user b, .panel-user small { max-width: 110px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.panel-user small { color: #9fb3d6; }.panel-user a { color: var(--lime); font-size: 11px; font-weight: 900; }
.panel-main { padding: 42px 4vw 70px; overflow: hidden; }.panel-main > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }.panel-main > header h2 { font-size: 48px; }.panel-main > header > div:last-child { display: flex; gap: 9px; }.metrics { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.metrics article { min-height: 145px; padding: 22px; display: flex; flex-direction: column; background: white; border: 1px solid #dfe4eb; border-radius: 18px; }.metrics span { color: #718099; font-size: 12px; font-weight: 800; }.metrics b { margin-top: 16px; font-size: 52px; line-height: 1; }.metrics b small { font-size: 20px; color: #7d899d; }.metrics i { margin-top: auto; color: #61708b; font-size: 11px; font-style: normal; }.metrics .small-metric { font-size: 28px; }.metrics .green { color: #128052; }
.panel-section { margin-top: 18px; padding: 26px; background: white; border: 1px solid #dfe4eb; border-radius: 20px; }.panel-section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }.panel-section h3 { margin: 0; font-size: 23px; }.panel-section-head p { margin: 6px 0 0; color: #718099; font-size: 13px; }.admin-table { margin-top: 23px; }.table-row { min-height: 62px; padding: 8px 12px; display: grid; grid-template-columns: 2fr .8fr .8fr 110px; align-items: center; border-top: 1px solid #edf0f4; font-size: 13px; }.table-row.headings { min-height: 38px; border: 0; color: #7c889d; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }.table-row > span:first-child { display: flex; align-items: center; gap: 11px; }.team-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #e8eef9; color: #3064bf; font-style: normal; font-weight: 900; }.table-row mark { padding: 6px 9px; border-radius: 99px; background: #dff8ec; color: #08724a; font-size: 10px; font-weight: 900; }.table-row button { border: 0; background: transparent; font-weight: 900; }.recommendation { padding: 9px 12px; background: #e8f8cf; color: #426b0b; border-radius: 99px; font-size: 11px; font-weight: 900; }.admin-bracket { margin-top: 25px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; align-items: center; }.admin-bracket > div { display: grid; gap: 8px; }.admin-bracket small { color: #728099; font-weight: 900; letter-spacing: .1em; }.admin-bracket span { padding: 11px 13px; display: flex; justify-content: space-between; border: 1px solid #dfe4eb; border-radius: 10px; font-size: 12px; font-weight: 800; }.admin-bracket b { color: #9ca7b8; }

@media (max-width: 850px) {
  .builder-layout { grid-template-columns: 1fr; }.builder-layout > aside { padding: 16px; display: flex; gap: 6px; overflow-x: auto; }.builder-layout > aside > p { display: none; }.builder-layout > aside button { min-width: 125px; margin: 0; padding: 8px; }.builder-card { margin: 20px auto; padding: 28px 22px; min-height: 610px; }.review-card dl { grid-template-columns: 1fr; }
  .tournament-hero { grid-template-columns: 1fr; }.mini-score { display: none; }.signup-section { grid-template-columns: 1fr; }.team-list { grid-template-columns: 1fr; }.bracket-placeholder { align-items: stretch; flex-direction: column; }.bracket-placeholder i { transform: rotate(90deg); text-align: center; }
  .panel-shell { grid-template-columns: 1fr; }.panel-nav { position: static; height: auto; padding: 15px; flex-direction: row; align-items: center; }.panel-nav nav { display: none; }.panel-user { margin: 0 0 0 auto; padding: 0; border: 0; }.panel-user span { display: none; }.panel-main { padding: 28px 16px 55px; }.panel-main > header { align-items: stretch; flex-direction: column; }.panel-main > header h2 { font-size: 38px; }.metrics { grid-template-columns: 1fr; }.panel-section-head { align-items: stretch; flex-direction: column; }.table-row { grid-template-columns: 1.7fr .7fr .7fr 35px; }.admin-bracket { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .two-fields { grid-template-columns: 1fr; }.workspace-header > span { display: none; }.success-actions { width: 100%; flex-direction: column; }.tournament-hero { padding: 55px 18px; }.tournament-hero h1 { font-size: 58px; }.signup-section { padding: 65px 18px; }.signup-card { padding: 23px 18px; }.panel-main > header > div:last-child { flex-direction: column; }.panel-main > header .button { width: 100%; }.table-row { grid-template-columns: 1fr auto; }.table-row > span:nth-child(2), .table-row > span:nth-child(3), .table-row.headings span:nth-child(2), .table-row.headings span:nth-child(3) { display: none; }.metrics article { min-height: 125px; }
}

/* Shared live states */
.loader { width: 40px; height: 40px; display: inline-block; border: 5px solid #d7dce5; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading, .page-error, .panel-empty { min-height: 65vh; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.page-loading h2, .page-error h2, .panel-empty h2 { font-size: clamp(38px, 5vw, 62px); }
.page-loading p, .page-error p, .panel-empty > p:not(.eyebrow) { max-width: 560px; margin: 0; color: #6b7689; line-height: 1.6; }
.page-error > span, .panel-empty > span { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 40px; box-shadow: 0 7px 0 #91b42e; }
.loading-card { align-items: flex-start; justify-content: center; }
.loading-card h3 { margin-top: 26px; }
.empty-card { justify-content: center; }
.share-nav { padding: 10px 14px; border: 1px solid #ffffff42; border-radius: 11px; background: transparent; color: white; font-weight: 900; cursor: pointer; }
.share-field { width: min(680px, 100%); margin-top: 24px; display: grid; gap: 8px; text-align: left; color: #64728a; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.share-field input { width: 100%; padding: 14px 15px; border: 1px solid #cfd7e4; border-radius: 11px; background: white; color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; }
.form-error[data-type="success"] { background: #e2f8ec; color: #08724a; }

/* Organizer access */
.auth-body { min-height: 100vh; background: var(--navy) url("../metegol-estadio-plaza-tecnica.png") center/cover fixed; }
.auth-body::before { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, #061735fa, #061735d9 62%, #06173583); }
.auth-shell { width: min(1180px, calc(100% - 36px)); min-height: 100vh; margin: auto; padding: 38px 0; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(320px, 500px); gap: 8vw; align-items: center; color: white; }
.auth-card { padding: 38px; border-radius: 26px; background: #fffdfa; color: var(--ink); box-shadow: 0 25px 80px #0008; }
.auth-card h1 { margin-top: 13px; color: var(--navy); font-size: clamp(48px, 5.4vw, 76px); }
.auth-lead { margin: 22px 0; color: #64728a; line-height: 1.6; }
.auth-tabs { margin: 25px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 12px; background: #edf1f7; }
.auth-tabs button { padding: 11px; border: 0; border-radius: 9px; background: transparent; color: #64728a; font-weight: 900; cursor: pointer; }
.auth-tabs button.active { background: white; color: var(--navy); box-shadow: 0 2px 8px #071b3f16; }
.auth-form { display: grid; }
.auth-form .next { margin-top: 24px; }
.auth-message { margin-top: 18px; }
.auth-back { margin-top: 24px; display: inline-block; color: #53627a; font-size: 12px; font-weight: 900; }

/* Public tournament extras */
.signup-card textarea { width: 100%; min-height: 86px; padding: 15px 16px; resize: vertical; border: 1px solid #cfd7e4; border-radius: 12px; background: #fbfcfe; color: var(--ink); outline: none; }
.signup-card textarea:focus { border-color: var(--electric); box-shadow: 0 0 0 3px #2167ef18; }
.rules-box { margin-top: 24px; padding: 18px; border-radius: 15px; background: #fff; border: 1px solid #d8dfe8; }
.rules-box b { color: var(--navy); }
.rules-box p { margin: 8px 0 0; white-space: pre-wrap; color: #66738a; font-size: 13px; line-height: 1.55; }
.signup-closed { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.signup-closed > span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 35px; }
.signup-closed p { max-width: 390px; color: #65738d; line-height: 1.55; }

/* Live organizer panel */
.panel-user button { padding: 0; border: 0; background: transparent; color: var(--lime); font-size: 11px; font-weight: 900; cursor: pointer; }
.tournament-selector { width: min(390px, 100%); margin-top: 15px; display: grid; gap: 5px; color: #718099; font-size: 11px; font-weight: 900; }
.tournament-selector select { padding: 10px 12px; border: 1px solid #d6dde7; border-radius: 10px; background: white; color: var(--ink); }
.panel-message { margin: 20px 0 0; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.button.compact { min-height: 42px; padding: 0 15px; }
.admin-empty-row { padding: 35px 12px; border-top: 1px solid #edf0f4; color: #718099; text-align: center; font-size: 13px; }
.table-row > span:first-child > span { min-width: 0; }
.table-row > span:first-child b, .table-row > span:first-child small { display: block; }
.table-row > span:first-child small { margin-top: 3px; color: #718099; font-size: 11px; line-height: 1.35; }
.table-row > span:nth-child(2) a { color: #126b4a; font-weight: 800; }
.table-row mark.status-pending { background: #fff2c8; color: #805a00; }
.table-row mark.status-waitlist { background: #e9e5ff; color: #5543a6; }
.table-row mark.status-rejected, .table-row mark.status-withdrawn { background: #ffe6e1; color: #9c2f1d; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.row-actions button { width: 30px; height: 30px; border-radius: 8px; background: #edf1f7; color: var(--navy); cursor: pointer; }
.row-actions button:hover { background: var(--lime); }

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; align-content: center; }.auth-shell > .brand { justify-self: center; }.auth-card { padding: 28px 21px; }.auth-card h1 { font-size: 48px; }
  .share-nav { display: none; }.panel-tools { flex-direction: column; }.panel-tools .button { width: 100%; }.panel-user button { margin-left: 5px; }
}
