/* Tournament Disciplinary Suspension Simulator Styles */
* {box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;line-height:1.6;color:#1a1a1a;background:#fcfcfc}
.container{max-width:1200px;margin:0 auto;padding:1rem}
header{background:#1e3a8a;color:white;padding:1rem 0;border-bottom:2px solid #334155}
header h1{font-size:1.5rem;font-weight:600}
nav{display:flex;gap:1rem;flex-wrap:wrap;margin-top:0.5rem}a{color:#e0e7ff;text-decoration:none;font-weight:500}a:hover{text-decoration:underline}
main{padding:1.5rem}
section{margin-bottom:2rem}
section h2{font-size:1.25rem;font-weight:600;margin-bottom:1rem;color:#0f172a;border-bottom:1px solid #e2e8f0;padding-bottom:0.5rem}
section h3{font-size:1rem;font-weight:500;margin-bottom:0.75rem;color:#334155}
.controls,.results,.analysis{padding:1.25rem;background:white;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,0.08)}
form{display:flex;flex-direction:column;gap:1rem}
.players-grid{display:grid;gap:0.75rem;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.player-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:0.75rem;display:flex;gap:0.75rem;align-items:center}
.player-name{font-weight:500;flex-shrink:0}
.player-position{width:70px;font-size:0.85rem;color:#64748b}
.player-cards{display:flex;gap:0.5rem;align-items:center}
.input-group{flex:1;min-width:100px}
input[type=number]{width:100%;padding:0.375rem;border:1px solid #cbd5e1;border-radius:4px;font-size:0.875rem}
button{cursor:pointer}
.btn-primary{background:#1e40af;color:white;border:none;padding:0.5rem 1rem;border-radius:6px;font-weight:500} .btn-primary:hover{background:#1d4287}
.btn-secondary{background:#f1f5f9;color:#0f172a;border:1px solid #cbd5e1;padding:0.5rem 1rem;border-radius:6px} .btn-secondary:hover{background:#e2e8f0}
.btn-add{background:#dcfce7;color:#166534;border:none;padding:0.25rem;border-radius:4px;font-size:0.75rem}
#simulation-results{padding:1rem;background:#f8fafc;border-radius:6px}
.match-grid{display:grid;gap:0.5rem;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.match-card{background:white;border:1px solid #e2e8f0;border-radius:6px;padding:0.75rem;text-align:center}
.match-number{font-weight:600;color:#1e3a8a;margin-bottom:0.25rem}
.available-count{font-size:1.25rem;font-weight:600;color:#166534}
.suspended-count{color:#dc2626;font-size:1.25rem;font-weight:600}
.implications{background:#eff6ff;padding:1rem;border-radius:6px;border-left:4px solid #3b82f6}
.empty-insight{color:#64748b;font-style:italic}
.rule-card{background:#f8fafc;padding:1rem;border-radius:6px;margin-bottom:0.75rem}
.rule-card h4{font-size:0.9rem;font-weight:600;margin-bottom:0.25rem;color:#0f172a}
.scenario-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.scenario-card{background:#f8fafc;padding:1rem;border-radius:6px;border-top:3px solid #3b82f6}
.scenario-card h4{font-size:0.9rem;font-weight:600;margin-bottom:0.25rem;color:#1e3a8a}
.preset-selector{display:flex;gap:0.5rem;align-items:center}
.preset-hint{font-size:0.85rem;color:#64748b}
.form-header{display:flex;justify-content:space-between;align-items:center}
.empty-state{color:#64748b;font-style:italic;padding:1rem;text-align:center}
@media (max-width:768px){header h1{font-size:1.25rem}nav{gap:0.75rem}a{font-size:0.9rem}}
@media (max-width:480px){.players-grid{grid-template-columns:1fr}}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
