*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: #fdfaf3; color: #1e1e1e; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
.skip-link { position: absolute; top: -100px; left: 0; background: #1a3a2a; color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { top: 0; }
img, svg { display: block; max-width: 100%; }
a { color: #1a6b3c; text-decoration: underline; }
a:hover { color: #0f4a28; }
.site-header { background: #1a3a2a; color: #fdfaf3; padding: 12px 16px; }
.header-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.site-title { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: #fdfaf3; text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: #d4af37; }
main { flex: 1; max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; width: 100%; }
.hero { text-align: center; margin-bottom: 32px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #1a3a2a; margin-bottom: 8px; }
.hero-sub { font-size: 1.1rem; color: #4a4a4a; max-width: 640px; margin: 0 auto; }
.section-heading { font-size: 1.5rem; color: #1a3a2a; margin-bottom: 16px; border-bottom: 2px solid #d4af37; padding-bottom: 6px; display: inline-block; }
.decoder-panel { background: #fff; border: 1px solid #dcd5c0; border-radius: 12px; padding: 24px; margin-bottom: 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.standings-form { margin-bottom: 20px; }
.table-wrapper { overflow-x: auto; margin-bottom: 16px; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.standings-table th { background: #1a3a2a; color: #fdfaf3; padding: 10px 12px; text-align: left; font-weight: 600; }
.standings-table td { padding: 10px 12px; border-bottom: 1px solid #e8e0cc; }
.standings-table input { width: 70px; padding: 6px 8px; border: 1px solid #c4b998; border-radius: 4px; font-size: 0.95rem; text-align: center; }
.standings-table input:focus { outline: 2px solid #1a6b3c; outline-offset: 1px; }
.games-back-cell { font-weight: 600; color: #1a3a2a; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 10px 20px; border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-primary { background: #1a6b3c; color: #fff; }
.btn-primary:hover { background: #0f4a28; }
.btn-outline { background: transparent; border: 2px solid #1a6b3c; color: #1a6b3c; }
.btn-outline:hover { background: #e8f0e8; }
.btn-small { padding: 6px 14px; font-size: 0.85rem; background: #f0ebe0; border: 1px solid #c4b998; border-radius: 4px; cursor: pointer; }
.btn-small:hover { background: #e0d8c4; }
.results-area { margin-top: 24px; }
.results-area:empty { display: none; }
.odds-bar-group { margin-bottom: 20px; }
.odds-bar-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.odds-bar-track { height: 20px; background: #e8e0cc; border-radius: 10px; overflow: hidden; }
.odds-bar-fill { height: 100%; border-radius: 10px; background: #1a6b3c; transition: width 0.4s ease; }
.player-panel { background: #f9f6ed; border-left: 4px solid #d4af37; padding: 16px; margin: 16px 0; border-radius: 0 8px 8px 0; }
.player-panel h4 { margin-bottom: 8px; color: #1a3a2a; }
.player-panel ul { list-style: none; padding: 0; }
.player-panel li { padding: 4px 0; border-bottom: 1px dotted #dcd5c0; }
.strategy-note { background: #1a3a2a; color: #fdfaf3; padding: 14px 18px; border-radius: 8px; font-weight: 500; }
.share-row { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.copy-confirm { font-size: 0.85rem; color: #1a6b3c; font-weight: 500; }
.walkthrough { margin-bottom: 40px; }
.walkthrough-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.walkthrough-card { background: #fff; border: 1px solid #dcd5c0; border-radius: 8px; padding: 18px; }
.walkthrough-card h3 { font-size: 1.1rem; color: #1a3a2a; margin-bottom: 6px; }
.reference { margin-bottom: 40px; }
.reference-table-wrapper { overflow-x: auto; }
.reference-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.reference-table th { background: #1a3a2a; color: #fdfaf3; padding: 10px 12px; text-align: left; }
.reference-table td { padding: 10px 12px; border-bottom: 1px solid #e8e0cc; background: #fff; }
.tips { margin-bottom: 40px; }
.tips-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tips-list li { background: #fff; border: 1px solid #dcd5c0; border-radius: 8px; padding: 14px 18px; }
.site-footer { background: #1a3a2a; color: #fdfaf3; padding: 24px 16px; margin-top: auto; }
.footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.footer-inner a { color: #d4af37; }
.footer-note { font-size: 0.85rem; margin-top: 8px; color: #c4b998; }
@media (max-width: 600px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .decoder-panel { padding: 16px; }
    .form-actions { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}



/* 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;
}
