:root { --felt: #1a4d2e; --felt-dark: #0f3320; --felt-light: #2d6a4f; --gold: #d4a853; --gold-light: #f0d78c; --cream: #f5f0e6; --cream-muted: #c9c0b0; --card-bg: #faf7f0; --team-us: #2e7d5a; --team-them: #8b3a3a; --shadow: 0 8px 32px rgba(0, 0, 0, 0.35); --radius: 16px; --radius-sm: 10px; } *, *::before, *::after { box-sizing: border-box; } body { margin: 0; min-height: 100vh; font-family: "Inter", system-ui, sans-serif; color: var(--cream); background: radial-gradient(ellipse at 50% 0%, rgba(45, 106, 79, 0.4) 0%, transparent 60%), linear-gradient(160deg, var(--felt-dark) 0%, var(--felt) 40%, var(--felt-dark) 100%); background-attachment: fixed; } .app { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; } .header { text-align: center; margin-bottom: 1.75rem; } .header-top { display: flex; align-items: center; justify-content: center; gap: 0.75rem; } .header h1 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.75rem, 5vw, 2.25rem); font-weight: 400; letter-spacing: 0.02em; color: var(--gold-light); } .subtitle { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--cream-muted); } .settings-panel { background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(212, 168, 83, 0.25); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; } .settings-panel h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; color: var(--gold); } .field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; font-size: 0.875rem; } .field select { padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(0, 0, 0, 0.3); color: var(--cream); font: inherit; } .field.checkbox { flex-direction: row; align-items: center; gap: 0.5rem; } .scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: stretch; margin-bottom: 1.5rem; } @media (max-width: 540px) { .scoreboard { grid-template-columns: 1fr; gap: 1rem; } .vs-divider { display: none; } } .team-card { background: var(--card-bg); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); color: #1a1a1a; border-top: 4px solid transparent; transition: transform 0.15s ease; } .team-card.winner { animation: pulse 0.6s ease; } .team-us { border-top-color: var(--team-us); } .team-them { border-top-color: var(--team-them); } .team-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; } .team-name { flex: 1; border: none; background: transparent; font-family: "DM Serif Display", Georgia, serif; font-size: 1.35rem; color: #1a1a1a; padding: 0; min-width: 0; } .team-name:focus { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; } .team-badge { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #888; white-space: nowrap; } .score-display { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(3rem, 12vw, 4.5rem); line-height: 1; text-align: center; margin: 0.5rem 0 1rem; color: #111; } .team-us .score-display { color: var(--team-us); } .team-them .score-display { color: var(--team-them); } .score-actions { display: flex; flex-direction: column; gap: 0.5rem; } .vs-divider { display: flex; align-items: center; justify-content: center; } .vs-divider span { font-family: "DM Serif Display", Georgia, serif; font-size: 1.1rem; color: var(--gold); opacity: 0.7; } .euchre-panel { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; } .euchre-panel h2 { margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 600; color: var(--gold-light); } .hint { margin: 0 0 1rem; font-size: 0.8rem; color: var(--cream-muted); line-height: 1.4; } .euchre-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; } @media (max-width: 420px) { .euchre-actions { grid-template-columns: 1fr; } } .controls { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; } .controls .btn { flex: 1; } .history { background: rgba(0, 0, 0, 0.2); border-radius: var(--radius); padding: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.06); } .history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; } .history-header h2 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--gold-light); } .hand-count { font-size: 0.75rem; color: var(--cream-muted); } .history-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; } .history-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 0.35rem; background: rgba(255, 255, 255, 0.05); } .history-list li:last-child { margin-bottom: 0; } .history-empty { justify-content: center !important; color: var(--cream-muted); font-style: italic; } .history-points { font-weight: 700; color: var(--gold); } .btn { font: inherit; cursor: pointer; border: none; border-radius: var(--radius-sm); padding: 0.65rem 1rem; font-weight: 600; font-size: 0.85rem; transition: background 0.15s, transform 0.1s, opacity 0.15s; } .btn:active:not(:disabled) { transform: scale(0.97); } .btn:disabled { opacity: 0.4; cursor: not-allowed; } .btn-primary { background: var(--gold); color: var(--felt-dark); } .btn-primary:hover:not(:disabled) { background: var(--gold-light); } .btn-secondary { background: rgba(255, 255, 255, 0.12); color: var(--cream); border: 1px solid rgba(255, 255, 255, 0.15); } .btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); } .btn-danger { background: rgba(139, 58, 58, 0.6); color: var(--cream); border: 1px solid rgba(255, 255, 255, 0.1); } .btn-danger:hover:not(:disabled) { background: rgba(139, 58, 58, 0.85); } .btn-ghost { background: transparent; color: var(--cream-muted); padding: 0.4rem 0.6rem; font-size: 1.1rem; } .btn-ghost:hover { color: var(--gold); } .btn-score { background: rgba(26, 77, 46, 0.12); color: var(--team-us); border: 1px solid rgba(46, 125, 90, 0.3); } .team-them .btn-score { color: var(--team-them); background: rgba(139, 58, 58, 0.1); border-color: rgba(139, 58, 58, 0.3); } .btn-score:hover:not(:disabled) { filter: brightness(1.05); } .btn-euchre { background: rgba(212, 168, 83, 0.15); color: var(--gold-light); border: 1px solid rgba(212, 168, 83, 0.3); font-size: 0.8rem; padding: 0.55rem 0.75rem; } .btn-euchre:hover:not(:disabled) { background: rgba(212, 168, 83, 0.25); } .lone-btn.hidden { display: none; } .winner-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 100; backdrop-filter: blur(4px); } .winner-overlay[hidden] { display: none !important; } .winner-modal { background: var(--card-bg); color: #1a1a1a; border-radius: var(--radius); padding: 2rem; text-align: center; max-width: 360px; width: 100%; box-shadow: var(--shadow); border-top: 4px solid var(--gold); } .winner-label { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; } .winner-modal h2 { margin: 0.5rem 0; font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; color: var(--team-us); } .winner-score { margin: 0 0 1.5rem; color: #666; font-size: 0.95rem; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }