*,*: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: #4a6fa5;--secondaryColor: #5b7ba3;--accentColor: #3d5a80;--warningColor: #ff6000;--dangerColor: #8f0d10;--backgroundColor: #0a1628;--surfaceColor: #1a2332;--surfaceElevated: #243447;--textColor: #e0e7f0;--textSecondary: #b8c5d6;--borderColor: #2d3f5c;--shadow: 0 4px 6px -1px rgba(0, 0, 0, .3), 0 2px 4px -1px rgba(0, 0, 0, .2);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .4), 0 4px 6px -2px rgba(0, 0, 0, .3)}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;margin:0;padding:0;background:linear-gradient(135deg,var(--backgroundColor) 0%,#0f1b2e 100%);color:var(--textColor);min-height:100vh}.container{max-width:1200px;margin:0 auto;padding:2rem}html{scroll-behavior:smooth}.header{width:100%;display:flex;justify-content:center;align-items:center;margin-bottom:2rem}.logoContainer{width:calc(100% - 2rem);max-width:250px;transition:transform .3s ease}.logoContainer:hover{transform:scale(1.02)}.logoContainer img{filter:drop-shadow(0 4px 8px rgba(0,0,0,.3))}h1{font-size:2rem;font-weight:700;margin-bottom:1.5rem;color:var(--textColor);letter-spacing:-.02em}h2{font-size:1.5rem;font-weight:600;margin-bottom:1rem;color:var(--textColor);letter-spacing:-.01em}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(--textSecondary)}.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:.75rem 1rem;border:1px solid var(--borderColor);border-radius:8px;font-size:1rem;background-color:var(--surfaceColor);color:var(--textColor);transition:all .2s ease}.input:focus{outline:none;border-color:var(--primaryColor);box-shadow:0 0 0 3px #4a6fa533}.input::placeholder{color:var(--textSecondary);opacity:.6}.button{padding:.75rem 1.5rem;border:none;border-radius:8px;height:auto;min-height:44px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s ease;box-shadow:var(--shadow);position:relative;overflow:hidden}.button:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#ffffff1a;transform:translate(-50%,-50%);transition:width .6s,height .6s}.button:hover:before{width:300px;height:300px}.button:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}.button:active{transform:translateY(0)}.button:disabled{opacity:.5;cursor:not-allowed;transform:none}.buttonPrimary,.buttonSuccess{background:linear-gradient(135deg,var(--primaryColor) 0%,#3d5a80 100%);color:#fff}.buttonWarning{background:linear-gradient(135deg,var(--warningColor) 0%,#d97706 100%);color:#fff}.buttonSecondary{background-color:var(--surfaceElevated);color:var(--textColor);border:1px solid var(--borderColor)}.buttonPhase{background:linear-gradient(135deg,var(--accentColor) 0%,#2d3f5c 100%);color:#fff;width:100%}.buttonDanger{background:linear-gradient(135deg,var(--dangerColor) 0%,#b20000 100%);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:linear-gradient(135deg,var(--surfaceColor) 0%,var(--surfaceElevated) 100%);border:1px solid var(--borderColor);border-radius:12px;padding:1.5rem;box-shadow:var(--shadow-lg);transition:all .3s ease}.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 var(--borderColor);border-radius:6px;font-size:.875rem;background-color:var(--surfaceColor);color:var(--textSecondary);transition:all .2s ease}.phaseCell.completed{background:linear-gradient(135deg,var(--primaryColor) 0%,#3d5a80 100%);color:#fff;border-color:var(--primaryColor)}.phaseCell.current{background:linear-gradient(135deg,var(--warningColor) 0%,#d97706 100%);color:#fff;border-color:var(--warningColor);box-shadow:0 0 12px #f59e0b66}.phaseCell.upcoming{background-color:var(--surfaceElevated);color:var(--textSecondary)}.phaseRequirements{font-size:1.1rem;font-weight:500;color:var(--textColor);margin-bottom:1rem;padding:.75rem 1rem;background:linear-gradient(135deg,var(--surfaceElevated) 0%,var(--surfaceColor) 100%);border-radius:8px;border-left:4px solid var(--accentColor);box-shadow:var(--shadow)}.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 var(--borderColor)}.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:700;background:linear-gradient(135deg,var(--accentColor) 0%,#2d3f5c 100%);border-radius:100vw;transition:all .3s ease}.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:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modalContent{background:linear-gradient(135deg,var(--surfaceColor) 0%,var(--surfaceElevated) 100%);padding:2rem;border-radius:16px;box-shadow:var(--shadow-lg);border:1px solid var(--borderColor);max-width:400px;width:90%;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.modalContent h3{margin-top:0;margin-bottom:1rem;color:var(--textColor)}.modalContent p{margin-bottom:1.5rem;color:var(--textSecondary)}.modalActions{display:flex;gap:1rem;justify-content:flex-end}.scoreTable{margin:2rem 0;overflow-x:auto}table{width:100%;border-collapse:collapse;background:linear-gradient(135deg,var(--surfaceColor) 0%,var(--surfaceElevated) 100%);box-shadow:var(--shadow-lg);border-radius:12px;overflow:hidden;border:1px solid var(--borderColor)}th,td{padding:.75rem 1rem;text-align:center;border:1px solid var(--borderColor)}th{background:linear-gradient(135deg,var(--surfaceElevated) 0%,var(--surfaceColor) 100%);font-weight:600;color:var(--textColor);text-transform:uppercase;font-size:.875rem;letter-spacing:.05em}td{color:var(--textSecondary)}tr:nth-child(2n){background-color:#ffffff05}tr:hover{background-color:#4a6fa526}td:first-child,th:first-child{text-align:left;font-weight:500;background:linear-gradient(135deg,var(--surfaceElevated) 0%,var(--surfaceColor) 100%);color:var(--textColor)}.totalRow{background:linear-gradient(135deg,#4a6fa533,#4a6fa51a);font-weight:600;border-top:2px solid var(--accentColor)}.totalRow td{color:var(--textColor)}.totalRow td:first-child{background:linear-gradient(135deg,#4a6fa533,#4a6fa51a)}.savedGames{margin-top:2rem;padding:1.5rem;background:linear-gradient(135deg,var(--surfaceColor) 0%,var(--surfaceElevated) 100%);border-radius:12px;box-shadow:var(--shadow-lg);border:1px solid var(--borderColor)}.savedGames h2{font-size:1.5rem;font-weight:600;margin-bottom:1rem;color:var(--textColor)}.error{color:var(--dangerColor);padding:.75rem 1rem;background:linear-gradient(135deg,#ef444426,#ef44441a);border-radius:8px;border:1px solid rgba(239,68,68,.3)}.gamesList{display:flex;flex-direction:column;gap:1rem}.gameCard{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:linear-gradient(135deg,var(--surfaceElevated) 0%,var(--surfaceColor) 100%);border:1px solid var(--borderColor);border-radius:8px;transition:all .2s ease}.gameCard:hover{transform:translate(4px);border-color:var(--primaryColor);box-shadow:var(--shadow)}.gameInfo{flex:1}.gameDate{font-size:.875rem;color:var(--textSecondary);margin-bottom:.25rem}.gameRound{font-weight:500;margin-bottom:.5rem;color:var(--textColor)}.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:var(--textSecondary)}
