:root {
  --ink: #0a0b11;
  --panel: #101219;
  --line: #272a36;
  --orange: #f57400;
  --gold: #ffd600;
  --blue: #087cff;
  --text: #f6f7fb;
  --muted: #8990a5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #c26112;
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  /* Fondo limpio con la franja azul ancha sin puntos */
  background-image: linear-gradient(90deg, #c26112 0 20%, #087cff 20% 80%, #c26112 80%);
  background-size: 100% 100%;
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  position: relative;
}

/* BALONES MÁS GRANDES Y MÁS ESPACIADOS */
.app-shell:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Ctext x='20' y='80' font-size='65'%3E⚽%3C/text%3E%3Ctext x='130' y='190' font-size='65'%3E⚽%3C/text%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-repeat: repeat;
}
/* Desplaza las filas pares hacia la derecha para intercalar los balones */
.app-shell:before {
  /* Alternativa limpia usando fondo repetido por CSS */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ctext x='10' y='35' font-size='30'%3E⚽%3C/text%3E%3Ctext x='60' y='85' font-size='30'%3E⚽%3C/text%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
  content: '';
}

/* RAYO EN EL CENTRO AL FONDO */
.app-shell:after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  background: var(--gold);
  clip-path: polygon(55% 0%, 100% 0%, 40% 45%, 85% 45%, 0% 100%, 25% 52%, 0% 52%);
  transform: translate(-50%, -50%) rotate(-8deg);
  filter: drop-shadow(0 0 25px rgba(255, 214, 0, 0.8));
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

.brand {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: 1px;
  font-size: 40px;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  z-index: 2;
  text-align: center;
}
.brand span { color: var(--gold); }
.brand small {
  display: block;
  font-size: 11px;
  text-align: center;
  color: #0b0c12; /* Cambiado a un tono oscuro/negro para máximo contraste sobre el amarillo */
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: none; /* Elimina sombras que borroneen el texto pequeño */
}

/* CUADRO CENTRAL RESTAURADO */
.setup-card, .game {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  background: #0b0c12ef;
  border: 1px solid #252936;
  border-radius: 15px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.8);
}

.setup-card {
  width: min(440px, 100%);
  padding: 31px;
  margin-top: 40px;
  border-top: 4px solid var(--gold);
}

h1, h2, h3, p { margin-top: 0; }
.eyebrow { font-size: 11px; font-weight: 900; letter-spacing: 1.4px; color: var(--gold); margin-bottom: 6px; }
.intro, .action-area>p { color: var(--muted); font-size: 14px; line-height: 1.25; }

.mode-switch { display: flex; background: #181b25; padding: 4px; border-radius: 99px; margin: 24px 0; }
.mode-button { border: 0; background: transparent; color: var(--muted); padding: 10px; border-radius: 99px; font-weight: 800; cursor: pointer; flex: 1; }
.mode-button.active { color: #111; background: var(--gold); }

.field { margin: 17px 0; }
.field label { display: block; color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; margin-bottom: 7px; }

input, select {
  background: #171a23;
  border: 1px solid #2b3040;
  color: #fff;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font: inherit;
}

.position-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.position-grid button, .secondary, .danger { background: #181b25; color: #b9bdcb; border: 1px solid #303545; border-radius: 8px; padding: 11px; font-weight: 900; cursor: pointer; }
.position-grid .selected { background: var(--orange); color: #fff; border-color: #ff9a3d; }

.primary { border: 0; background: var(--gold); border-radius: 8px; color: #080a0e; font-weight: 950; padding: 14px; width: 100%; cursor: pointer; font-size: 15px; margin-top: 15px; }
.primary span { float: right; font-size: 20px; line-height: 12px; }

.hidden { display: none !important; }

/* PANEL DE JUEGO Y CARRERA */
.game { display: grid; grid-template-columns: 43% 57%; overflow: hidden; margin-top: 45px; }
.player-panel { padding: 27px; border-right: 1px solid var(--line); min-height: 630px; }
.profile-top { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: start; }
.rating { height: 78px; border-radius: 15px; background: linear-gradient(135deg,#ff8e00,#a94300); display: grid; place-content: center; text-align: center; box-shadow: inset 0 1px #ffc06e; }
.rating span, .age span, .stats small { font-size: 10px; font-weight: 900; color: #e7eaf3; }
.rating strong { font-size: 37px; line-height: .9; color: white; }

.identity { min-width: 0; }
.identity div { font-size: 11px; }
.identity b { background: #ca1144; padding: 4px 7px; border-radius: 999px; }
.identity h2 { margin: 6px 0 3px; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity p { font-size: 12px; color: var(--muted); }
.identity p strong { display: block; color: #e9ecf5; font-size: 16px; }

.age { text-align: right; }
.age strong { font-size: 29px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 21px; text-align: center; }
.stats>div { border-right: 1px solid #222633; }
.stats>div:last-child { border: 0; }
.stats small { display: block; color: #777e92; }
.stats b { font-size: 17px; margin-top: 6px; display: block; }

.trophy-case { text-align: center; border-bottom: 1px solid #20232d; padding: 20px 0 15px; }
.trophy-case span { font-size: 30px; filter: grayscale(.3); }
.trophy-case p { text-transform: uppercase; color: #777e92; font-size: 10px; font-weight: 900; letter-spacing: 1px; margin: 5px; }

.action-area { padding-top: 22px; min-height: 248px; }
.action-area h3 { font-size: 19px; margin-bottom: 3px; }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.offer { background: #0d0f15; border: 1px solid #252a37; color: #f1f3f8; border-radius: 13px; min-height: 133px; cursor: pointer; padding: 12px 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: .15s; }
.offer:hover { border-color: #fba22c; transform: translateY(-2px); }
.offer small { font-size: 9px; }
.offer b { text-align: center; font-size: 13px; }
.offer strong { color: var(--gold); background: #3d2a04; border-radius: 5px; padding: 3px 6px; font-size: 12px; }
.offer span { font-size: 25px; }

.notice, .ending { background: #101d18; border: 1px solid #1d5d3b; border-radius: 10px; padding: 16px; color: #b4d8c0; font-size: 13px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice { background: #12151e; color: white; border: 1px solid #2b3040; padding: 13px; border-radius: 99px; cursor: pointer; text-align: left; }
.choice:hover { border-color: var(--gold); }
.choice b, .choice small { display: block; }
.choice small { margin-top: 6px; }

.career-actions { display: flex; gap: 8px; }
.secondary { flex: 1; border-color: #3a6ca9; color: #bcd9ff; }
.danger { width: auto; color: #ff8b96; border-color: #68313a; }

.timeline-panel { padding: 20px 18px; }
.timeline-head, .timeline-row { display: grid; grid-template-columns: 46px 1fr 44px 34px 34px 34px; gap: 5px; align-items: center; }
.timeline-head { font-size: 9px; color: #697187; font-weight: 900; margin: 0 5px 6px; }
.timeline-row { min-height: 47px; background: #12141b; border-radius: 8px; margin: 5px 0; padding: 7px; color: #ced2de; font-size: 13px; }
.timeline-row>b { background: #2a3348; border-radius: 7px; padding: 8px; text-align: center; color: #fff; }
.timeline-row span { font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-row em { font-style: normal; background: #bd6300; color: #fff; border-radius: 6px; text-align: center; padding: 5px; font-weight: 900; }
.timeline-row i { font-style: normal; color: #b6bac6; text-align: center; }
.timeline-row.current { border: 1px solid #3d4354; background: #1b1d26; }

.selection-line { position: relative; margin-top: 22px; border-top: 1px solid #252936; padding: 14px 2px; color: #9aa1b2; font-size: 13px; }

dialog { border: 1px solid #3b4357; border-radius: 13px; background: #12151f; color: #f5f6fb; max-width: 370px; padding: 23px; box-shadow: 0 20px 80px #000; }
dialog::backdrop { background: #000a; }
dialog h2 { color: var(--gold); font-size: 20px; }
dialog p { line-height: 1.5; color: #c3c7d3; }
.event { border-left: 3px solid var(--gold); padding-left: 13px; }

@media(max-width:760px) {
  body { background: #0b0c12; }
  .app-shell { padding: 14px; }
  .app-shell:before, .app-shell:after { display: none; }
  .brand { position: static; transform: none; margin-bottom: 16px; }
  .game { grid-template-columns: 1fr; margin-top: 0; }
  .player-panel { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .timeline-panel { min-height: 270px; }
  .profile-top { grid-template-columns: 70px 1fr auto; }
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline-head, .timeline-row { grid-template-columns: 41px 1fr 40px 28px 28px 28px; }
  .timeline-row { font-size: 11px; }
  .timeline-row>b { padding: 7px 3px; }
  .setup-card { margin-top: 0; }
}
/* En tu styles.css */
.site-footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffea00;
}

.copyright {
  color: #64748b;
  font-size: 11px;
}
/* Modales de Información */
.info-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.info-modal.hidden {
  display: none !important;
}

.modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 234, 0, 0.3);
  border-radius: 16px;
  padding: 28px;
  max-width: 500px;
  width: 100%;
  color: #ffffff;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-content h2 {
  color: #ffea00;
  margin-bottom: 14px;
  font-size: 20px;
}

.modal-content p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffea00;
}