
   /* { box-sizing: border-box; margin: 0; padding: 0; }*/

    body {
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      background: #0f172a;
      color: #f1f5f9;
      min-height: 100vh;
      line-height: 1.5;
    }

.site-footer {
  text-align: center;
  margin-top: 40px;
  padding: 24px 12px;
  color: #94a3b8;
  font-size: 0.85rem;
  border-top: 1px solid #334155;
}
.site-footer a {
  color: #22c55e;
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { text-decoration: underline; }



    .container {
      max-width: 950px;
      margin: 0 auto;
      padding: 20px 16px 60px;
    }

    header {
      text-align: center;
      margin-bottom: 20px;
      padding-top: 12px;
    }

    header h1 {
      font-size: 2rem;
      font-weight: 800;
      margin-bottom: 6px;
    }

    header p { color: #94a3b8; font-size: 0.95rem; }

    .rivalry-banner {
      text-align: center;
      margin-bottom: 24px;
      display: none;
    }
    .rivalry-banner.show { display: block; }
    .rivalry-banner img {
      max-width: 100%;
      height: auto;
      max-height: 180px;
      border-radius: 12px;
    }

    .user-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #1e293b;
      border: 1px solid #334155;
      border-radius: 10px;
      padding: 12px 18px;
      margin-bottom: 20px;
      font-size: 0.95rem;
      flex-wrap: wrap;
      gap: 10px;
    }

    .user-bar strong { color: #22c55e; }
    
    .flexx-bar {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .admin-btn {
        background: #f59e0b;
        color: #000000;
        text-decoration: none;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.85rem;
    }
    
    .tips-btn {
        background: #22c55e;
        border-color: #22c55e;
        color: #052e16;
        font-weight: 600;
        padding: 6px 14px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.85rem;
    }
    
    .logout-btn {
        background: transparent;
        border: 1px solid #ef4444;
        color: #f87171;
        padding: 6px 14px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.85rem;
    }
    
    .chat-btn {
        background: #E027F5;
        border-color: #9716A6;
        color: #000000;
        font-weight: 600;
        padding: 6px 14px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.85rem;
    }
    
    .main-btns {

        color: #22c55e;

        text-decoration: none;
        font-weight: 600;

        font-size: 0.85rem;
    }
    
    .hidden {
        display: none;
    }
    
    .labelX {
    	margin-left:6px;
    	background: #1e293b;
    	color: #f1f5f9;
        border:1px solid #334155;
    	padding:8px 12px;
    	border-radius:8px;	
	}
	
	.league-select {
    	margin-left:6px;
    	background: #0f172a;
    	color: #f1f5f9;
        border:1px solid #334155;
    	padding:8px 12px;
    	border-radius:8px;
	}

    .points-summary {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
      margin-bottom: 24px;
    }

    .point-card {
      background: #1e293b;
      border: 1px solid #334155;
      border-radius: 12px;
      padding: 16px;
      text-align: center;
    }

    .point-card .label {
      font-size: 0.8rem;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }

    .point-card .value {
      font-size: 1.8rem;
      font-weight: 800;
      color: #22c55e;
    }

    .point-card.season .value { color: #38bdf8; }
    .point-card.bonus .value { color: #f59e0b; }

    .controls {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px;
    }

    select, button {
      background: #1e293b;
      color: #f1f5f9;
      border: 1px solid #334155;
      padding: 10px 16px;
      border-radius: 8px;
      font-size: 0.95rem;
      cursor: pointer;
    }

    button.primary {
      background: #22c55e;
      border-color: #22c55e;
      color: #052e16;
      font-weight: 600;
    }
    button.primary:hover { background: #16a34a; }

    .danger {
      background: transparent;
      border-color: #ef4444;
      color: #f87171;
    }

    button:disabled { opacity: 0.5; cursor: not-allowed; }

    .stats {
      text-align: center;
      margin-bottom: 16px;
      font-size: 0.95rem;
      color: #94a3b8;
    }
    .stats strong { color: #22c55e; }

    .lock-banner {
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid #ef4444;
      color: #fca5a5;
      text-align: center;
      padding: 12px 16px;
      border-radius: 10px;
      margin-bottom: 20px;
      font-weight: 600;
      display: none;
    }
    .lock-banner.show { display: block; }

    .gotw-section {
      background: linear-gradient(135deg, #1e293b, #0f172a);
      border: 2px solid #f59e0b;
      border-radius: 14px;
      padding: 20px;
      margin-bottom: 28px;
    }

    .gotw-section.rivalry { border-color: #ef4444; }
    .gotw-section.rivalry .gotw-title { color: #ef4444; }
    .gotw-section.rivalry .gotw-spread { background: #ef4444; color: white; }

    .gotw-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
      flex-wrap: wrap;
      gap: 10px;
    }

    .gotw-title {
      font-size: 1.25rem;
      font-weight: 800;
      color: #f59e0b;
    }

    .gotw-spread {
      background: #f59e0b;
      color: #000;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 0.9rem;
    }

    .gotw-rules {
      background: rgba(245, 158, 11, 0.1);
      border: 1px solid rgba(245, 158, 11, 0.3);
      border-radius: 8px;
      padding: 12px 16px;
      margin: 14px 0;
      font-size: 0.85rem;
      color: #fcd34d;
    }
    .gotw-rules ul { margin: 8px 0 0 18px; }

    .total-input {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .total-input label { font-size: 0.9rem; color: #94a3b8; }

    .total-input input {
      width: 100px;
      padding: 10px;
      background: #0f172a;
      border: 1px solid #334155;
      border-radius: 8px;
      color: #f1f5f9;
      font-size: 1.1rem;
      text-align: center;
      font-weight: 700;
    }

    .ou-section {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid #334155;
    }

    .ou-label {
      font-size: 0.9rem;
      color: #94a3b8;
      margin-bottom: 10px;
    }

    .ou-buttons {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .ou-btn {
      padding: 10px 22px;
      border-radius: 8px;
      font-weight: 700;
      cursor: pointer;
      border: 2px solid transparent;
    }

    .ou-btn.over {
      background: rgba(59, 130, 246, 0.15);
      color: #93c5fd;
      border-color: #3b82f6;
    }
    .ou-btn.over.selected { background: #3b82f6; color: white; }

    .ou-btn.under {
      background: rgba(168, 85, 247, 0.15);
      color: #d8b4fe;
      border-color: #a855f7;
    }
    .ou-btn.under.selected { background: #a855f7; color: white; }

    .bonus-result {
      margin-top: 14px;
      padding: 12px;
      border-radius: 8px;
      font-weight: 600;
      text-align: center;
      display: none;
    }
    .bonus-result.show { display: block; }
    .bonus-result.good { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid #22c55e; }
    .bonus-result.ok { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid #f59e0b; }
    .bonus-result.bad { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid #ef4444; }

    .games {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .game {
      background: #1e293b;
      border: 1px solid #334155;
      border-radius: 12px;
      overflow: hidden;
    }
    .game.complete { border-color: #22c55e; }
    .game.correct { border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e; }
    .game.wrong { border-color: #ef4444; }

    .game-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 16px;
      background: rgba(0,0,0,0.25);
      font-size: 0.8rem;
      color: #94a3b8;
    }

    .matchup {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 8px;
      padding: 16px;
      align-items: center;
    }

    .team {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding: 14px 10px;
      border-radius: 10px;
      cursor: pointer;
      border: 2px solid transparent;
      text-align: center;
      user-select: none;
    }
    .team:hover:not(.disabled) {
      background: rgba(34, 197, 94, 0.08);
      border-color: rgba(34, 197, 94, 0.3);
    }
    .team.selected {
      background: #166534;
      border-color: #22c55e;
    }
    .team.disabled {
      cursor: not-allowed;
      opacity: 0.75;
    }

    .team-logo {
      width: 48px;
      height: 48px;
      object-fit: contain;
      border-radius: 6px;
      background: #0f172a;
    }

    .team-name { font-weight: 700; font-size: 1.05rem; }
    .team-side {
      font-size: 0.75rem;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .vs {
      font-weight: 800;
      color: #94a3b8;
      font-size: 0.9rem;
    }

    .result-tag {
      font-size: 0.75rem;
      padding: 2px 8px;
      border-radius: 10px;
      font-weight: 600;
    }
    .result-tag.win { background: #166534; color: #4ade80; }
    .result-tag.loss { background: #7f1d1d; color: #f87171; }

    footer {
      text-align: center;
      margin-top: 40px;
      font-size: 0.8rem;
      color: #94a3b8;
    }

    @media (max-width: 600px) {
      header h1 { font-size: 1.6rem; }
      .points-summary { grid-template-columns: 1fr; }
      .matchup { grid-template-columns: 1fr; gap: 12px; }
      .vs { order: -1; }
      .team { flex-direction: row; justify-content: center; gap: 10px; }
      .team-logo { width: 40px; height: 40px; }
    }
    
    .potw-popup {
      position: fixed;
      z-index: 9999;
      background: #1e293b;
      border: 1px solid #334155;
      border-radius: 16px;
      padding: 18px 18px 16px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.45);
      max-width: 340px;
      width: calc(100% - 32px);
    }
    /* Desktop: lower right */
    @media (min-width: 701px) {
      .potw-popup {
        right: 20px;
        bottom: 20px;
      }
    }
    /* Mobile: centered */
    @media (max-width: 700px) {
      .potw-popup {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        max-width: 360px;
      }
      .potw-popup::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: -1;
        border-radius: 0;
      }
    }
    .potw-close {
      position: absolute;
      top: 8px;
      right: 10px;
      background: transparent;
      border: none;
      color: #94a3b8;
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
      padding: 4px 8px;
    }
    .potw-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 2px; }
    .potw-sub { color: #94a3b8; font-size: 0.85rem; margin-bottom: 12px; }
    .potw-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
    .potw-mini {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid #334155;
      text-decoration: none;
      color: #f1f5f9;
      background: #0f172a;
    }
    .potw-mini:hover { border-color: #22c55e; }
    .potw-mascot { font-size: 1.5rem; }
    .potw-mini-name { font-weight: 700; font-size: 0.95rem; }
    .potw-mini-tag { font-size: 0.75rem; color: #94a3b8; }
    .potw-link {
      display: block;
      text-align: center;
      color: #22c55e;
      font-weight: 700;
      text-decoration: none;
      font-size: 0.9rem;
    }
    
    .lock-banner {
  display: none;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}
.lock-banner.show { display: block; }
.lock-banner.open {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid #22c55e;
  color: #86efac;
}
.lock-banner.locked {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}
.lock-banner.future {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
}

/*Admin Styles */
  .controls-ad {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    select, buttons {
      background: #1e293b;
      color: #f1f5f9;
      border: 1px solid #334155;
      padding: 10px 16px;
      border-radius: 8px;
      font-size: 0.95rem;
      cursor: pointer;
    }

    button.primary-ad {
      background: #22c55e;
      border-color: #22c55e;
      color: #052e16;
      font-weight: 700;
    }
    button.primary:hover { background: #16a34a; }

    button.primary-ad2 {
      font-weight: 700;
	  background:#f59e0b;
	  border-color:#f59e0b;
	  color:#000;
    }
	
	.reCalc {
		color: #22c55e;
	}
	
	.whatter {
		color:#94a3b8;
		font-size:0.9rem;
		margin-top:8px;
	}
	
	.whatter2 {
    	background:#1e293b;
    	border:1px solid #334155;
    	color:#f1f5f9;
        padding:10px 16px;
    	border-radius:8px;
    	text-decoration:none;
    	font-size:0.95rem;	
	}
	
	.whatter3 {
		background:#1e293b;
		border:1px solid #334155;
		color:#94a3b8;
        padding:10px 16px;
		border-radius:8px;
		text-decoration:none;
		font-size:0.95rem;
	}
	
	.whatter4 {
		text-align:center;
		color:#94a3b8;
		font-size:0.85rem;
		margin-bottom:16px;
	}
	
	.whatter5 {
		color:#94a3b8;
		font-size:0.9rem;
		margin-bottom:14px;
	}
	
	.whatter6 {
		width:auto;
		padding:8px 12px;
		background:#0f172a;
		border:1px solid #334155;
		color:#f1f5f9;
		border-radius:8px;
	}
	
	.whatter7 {
		width:100%;
        max-width:360px;
        padding:10px 12px;
        background:#0f172a;
        border:1px solid #334155;
        color:#f1f5f9;
        -radius:8px;	
	}
	
	.whatter8 {
		width:100%;
        max-width:360px;
        padding:10px 12px;
        background:#0f172a;
        border:1px solid #334155;
        color:#f1f5f9;
        -radius:8px;
	}
	
	.whatter9 {
		width:auto;
		max-width:360px;
        padding:10px 12px;
		margin-top:12px;
		background:#334155;
		color:#f1f5f9;
		-radius: 8px;
	}
	
    .status {
      text-align: center;
      margin-bottom: 20px;
      font-size: 0.9rem;
      color: #94a3b8;
    }
    .status.success { color: #4ade80; }
    .status.error { color: #f87171; }

    .game-card {
      background: #1e293b;
      border: 1px solid #334155;
      border-radius: 12px;
      padding: 18px;
      margin-bottom: 16px;
    }

    .game-card.gotw {
      border-color: #f59e0b;
    }

    .game-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .matchup-title {
      font-weight: 700;
      font-size: 1.1rem;
    }

    .gotw-badge {
      background: #f59e0b;
      color: #000;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
    }

    .form-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 12px;
      align-items: center;
    }

    .form-row label {
      font-size: 0.85rem;
      color: #94a3b8;
      min-width: 90px;
    }

    input.ad3, select.small {
      background: #0f172a;
      border: 1px solid #334155;
      color: #f1f5f9;
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 0.95rem;
    }

    input[type="number"] {
      width: 80px;
    }

    .winner-btns {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .winner-btn {
      padding: 8px 14px;
      border-radius: 6px;
      border: 1px solid #334155;
      background: #0f172a;
      color: #f1f5f9;
      cursor: pointer;
      font-size: 0.9rem;
    }

    .winner-btn.selected {
      background: #22c55e;
      color: #052e16;
      border-color: #22c55e;
      font-weight: 700;
    }

    .lines-section {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #334155;
    }
    
        .public-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    
    .public-league-card {
      background: #1e293b;
      border: 1px solid #334155;
      border-radius: 14px;
      padding: 18px 18px 16px;
      transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    }
    
    .public-league-card:hover {
      border-color: rgba(34, 197, 94, 0.45);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
      transform: translateY(-1px);
    }
    
    .public-league-card h2 {
      font-size: 1.15rem;
      font-weight: 800;
      margin-bottom: 6px;
      text-align: left;
      letter-spacing: -0.02em;
    }