*,*:before,*:after{box-sizing:border-box}html{line-height:1.15;-webkit-text-size-adjust:100%}p{line-height:1.4}body{margin:0}main{display:block}h1{font-size:2em;margin:0 0 .67em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;text-decoration:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--primaryColor: #2a7770;--secondaryColor: #465b51;--accentColor: #185f78;--warningColor: #eab308;--dangerColor: #de0000;--backgroundColor: #f5f5f5;--textColor: #131616}body{font-family:system-ui,-apple-system,sans-serif;margin:0;padding:0;background-color:var(--backgroundColor)}.container{max-width:1200px;margin:0 auto;padding:2rem}.header{width:100%;display:flex;justify-content:center;align-items:center}.logoContainer{width:calc(100% - 2rem);max-width:250px}h1{font-size:2rem;font-weight:700;margin-bottom:1.5rem;color:var(--textColor)}h2{font-size:1.5rem;font-weight:600;margin-bottom:1rem;color:var(--textColor)}h3{font-size:1.25rem;font-weight:600;margin-bottom:.75rem;color:var(--textColor)}h4{font-size:1rem;font-weight:500;margin-bottom:.5rem;color:var(--textColor)}.section{margin-bottom:1.5rem}@media (max-width: 500px){.scoresSection{margin-bottom:0;display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-items:center}.scoresSection h4{font-size:1.5rem;margin:0}}.formGroup{display:flex;gap:.5rem;margin-bottom:1rem}.input{flex:1;padding:.5rem;border:1px solid #ddd;border-radius:4px;font-size:1rem}.button{padding:.5rem 1rem;border:none;border-radius:4px;height:60px;font-size:1rem;cursor:pointer;transition:opacity .2s ease-in-out}.button:hover{opacity:.85}.button:disabled{opacity:.5;cursor:not-allowed}.buttonPrimary,.buttonSuccess{background-color:var(--primaryColor);color:#fff}.buttonWarning{background-color:var(--accentColor);color:#fff}.buttonSecondary{background-color:var(--secondaryColor);color:#fff}.buttonPhase{background-color:var(--accentColor);color:#fff;width:100%}.buttonDanger{background-color:var(--dangerColor);color:#fff}@media (max-width: 500px){.buttonDanger{height:auto}}.gameBoard{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem}.playerCard{background-color:#fff;border:1px solid #ddd;border-radius:8px;padding:1.5rem;box-shadow:0 2px 4px #0000001a}.phaseGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:.25rem}@media (max-width: 500px){.phaseGrid{display:none}}.phaseCell{padding:.5rem;text-align:center;border:1px solid #ddd;border-radius:4px;font-size:.875rem}.phaseCell.completed{background-color:#dcfce7}.phaseCell.current{background-color:#fef9c3}.phaseCell.upcoming{background-color:#f3f4f6}.phaseRequirements{font-size:1.1rem;font-weight:500;color:#1f2937;margin-bottom:1rem;padding:.75rem;background-color:#f3f4f6;border-radius:4px;border-left:4px solid #8b5cf6}.phaseControls{display:flex;gap:.5rem;margin-top:1rem}.phaseControls .button{flex:1}.scoresList{display:flex;flex-direction:column;gap:.25rem}.scoreItem{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #eee}.scoreDisplay,.editScore{display:flex;align-items:center;gap:.5rem}.scoreInput{width:80px}.editButton{padding:.25rem .5rem;font-size:.875rem}.totalScore{width:80px;aspect-ratio:1/1;display:flex;justify-content:center;align-items:center;padding:.75rem 0;margin:.5rem auto;color:#fff;font-size:1.85rem;font-weight:600;background-color:var(--accentColor);box-shadow:3px 6px 8px #0006;border-radius:100vw}.gameControls{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;margin-top:2rem;justify-content:center}.playerControls{margin-bottom:1rem}.playerHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.modal{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modalContent{background-color:#fff;padding:2rem;border-radius:8px;box-shadow:0 2px 4px #0000001a;max-width:400px;width:90%}.modalContent h3{margin-top:0;margin-bottom:1rem}.modalContent p{margin-bottom:1.5rem;color:#4b5563}.modalActions{display:flex;gap:1rem;justify-content:flex-end}.scoreTable{margin:2rem 0;overflow-x:auto}table{width:100%;border-collapse:collapse;background-color:#fff;box-shadow:0 1px 3px #0000001a}th,td{padding:.75rem;text-align:center;border:1px solid #e5e7eb}th{background-color:#f9fafb;font-weight:600;color:#374151}td{color:#4b5563}tr:nth-child(2n){background-color:#f9fafb}tr:hover{background-color:#f3f4f6}td:first-child,th:first-child{text-align:left;font-weight:500;background-color:#f9fafb}.totalRow{background-color:#f3f4f6;font-weight:600}.totalRow td{color:#1f2937}.totalRow td:first-child{background-color:#f3f4f6}.savedGames{margin-top:2rem;padding:1rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.savedGames h2{font-size:1.5rem;font-weight:600;margin-bottom:1rem;color:#444}.error{color:#dc2626;padding:.5rem;background-color:#fee2e2;border-radius:4px}.gamesList{display:flex;flex-direction:column;gap:1rem}.gameCard{display:flex;justify-content:space-between;align-items:center;padding:1rem;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:6px}.gameInfo{flex:1}.gameDate{font-size:.875rem;color:#6b7280;margin-bottom:.25rem}.gameRound{font-weight:500;margin-bottom:.5rem}.gamePlayers{display:flex;flex-wrap:wrap;gap:.5rem}.playerInfo{display:flex;align-items:center;gap:.5rem;font-size:.875rem}.playerName{font-weight:500}.playerPhase{color:#6b7280}
