*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#1a1a1a;color:#fff;min-height:100vh}.layout{display:flex;flex-direction:column;min-height:100vh}.app-header{background:#2a2a2a;padding:1.5rem 2rem;text-align:center;border-bottom:2px solid #3a3a3a}.app-header h1{font-size:2rem;margin-bottom:.5rem;color:#4caf50}.app-subtitle{color:#999;font-size:.9rem}.app-main{flex:1;padding:2rem}.app-container{display:grid;grid-template-columns:1fr 350px;gap:2rem;max-width:1400px;margin:0 auto}.app-footer{background:#2a2a2a;padding:1rem 2rem;border-top:2px solid #3a3a3a}.keyboard-hints{display:flex;justify-content:center;gap:2rem;font-size:.85rem;color:#999}.keyboard-hints span{padding:.25rem .5rem;background:#333;border-radius:4px}.settings-panel{margin-bottom:1.5rem;background:#2a2a2a;border-radius:12px;padding:1rem 1.5rem;border:2px solid #3a3a3a}.settings-toggle{display:flex;align-items:center;gap:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none}.settings-toggle input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:#4caf50}.settings-label{color:#fff;font-size:.95rem}.game-table{background:linear-gradient(135deg,#1b5e20,#2e7d32);border-radius:20px;padding:3rem 2rem;box-shadow:0 10px 40px #00000080;border:3px solid #4caf50}.table-felt{display:flex;flex-direction:column;gap:3rem;align-items:center}.hand{display:flex;flex-direction:column;align-items:center;gap:1rem}.hand-label{font-size:1.2rem;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:1px}.hand-cards{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.hand-value{font-size:1.5rem;font-weight:700;color:#ffeb3b;text-shadow:0 2px 4px rgba(0,0,0,.5)}.card{width:80px;height:112px;background:#fff;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:2rem;font-weight:700;box-shadow:0 4px 8px #0000004d;position:relative;padding:.5rem}.card-back{background:linear-gradient(135deg,#1976d2,#2196f3);color:#fff;font-size:3rem}.card-red{color:#d32f2f}.card-black{color:#000}.card-rank{position:absolute;top:.5rem;left:.5rem;font-size:1.5rem;line-height:1}.card-suit{font-size:3rem;line-height:1}.controls-area{width:100%;max-width:500px}.action-buttons{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.action-button{padding:1rem 2rem;font-size:1.1rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;transition:all .2s;text-transform:uppercase;letter-spacing:1px;box-shadow:0 4px 8px #0000004d}.action-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 12px #0006}.action-button:active:not(:disabled){transform:translateY(0)}.action-button:disabled{opacity:.5;cursor:not-allowed}.action-button-hit{background:#ff9800;color:#fff}.action-button-stand{background:#2196f3;color:#fff}.action-button-double{background:#9c27b0;color:#fff}.action-button-split{background:#f44336;color:#fff}.new-hand-button{width:100%;padding:1.5rem;font-size:1.2rem;font-weight:700;background:#4caf50;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .2s;text-transform:uppercase;letter-spacing:1px;box-shadow:0 4px 8px #0000004d}.new-hand-button:hover{background:#45a049;transform:translateY(-2px);box-shadow:0 6px 12px #0006}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:#2a2a2a;border-radius:12px;max-width:500px;width:100%;box-shadow:0 10px 40px #00000080;border:2px solid #3a3a3a;max-height:90vh;overflow-y:auto}.modal-large{max-width:900px}.modal-header{padding:1.5rem;border-bottom:2px solid #3a3a3a;display:flex;justify-content:space-between;align-items:center}.modal-header h2{font-size:1.5rem;color:#4caf50}.modal-close{background:none;border:none;color:#999;font-size:2rem;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;transition:color .2s}.modal-close:hover{color:#fff}.modal-body{padding:1.5rem}.modal-footer{padding:1.5rem;border-top:2px solid #3a3a3a;display:flex;justify-content:flex-end}.modal-button{padding:.75rem 2rem;font-size:1rem;font-weight:700;background:#4caf50;color:#fff;border:none;border-radius:6px;cursor:pointer;transition:background .2s}.modal-button:hover{background:#45a049}.error-details{display:flex;flex-direction:column;gap:1rem}.error-row{display:flex;justify-content:space-between;padding:.75rem;background:#333;border-radius:6px}.error-row.error-highlight{background:#3a3a3a;border-left:4px solid #f44336}.error-label{font-weight:700;color:#999}.error-value{font-weight:700;color:#fff}.error-incorrect{color:#f44336}.error-correct{color:#4caf50}.statistics{background:#2a2a2a;border-radius:12px;padding:1.5rem;border:2px solid #3a3a3a}.stats-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.statistics h2{font-size:1.5rem;color:#4caf50}.statistics h3{font-size:1.1rem;color:#999;margin-bottom:1rem}.stats-empty{color:#666;text-align:center;padding:2rem 0}.stats-clear-button{padding:.5rem 1rem;font-size:.9rem;background:#f44336;color:#fff;border:none;border-radius:6px;cursor:pointer;transition:background .2s}.stats-clear-button:hover{background:#d32f2f}.stats-section{margin-bottom:2rem}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.stat-item{background:#333;padding:1rem;border-radius:6px;text-align:center}.stat-item.stat-highlight{background:#3a3a3a;border:2px solid #4caf50}.stat-label{font-size:.85rem;color:#999;margin-bottom:.5rem}.stat-value{font-size:1.5rem;font-weight:700;color:#fff}.stat-correct{color:#4caf50}.stat-incorrect{color:#f44336}.stats-table{display:flex;flex-direction:column;gap:.5rem}.stats-row{display:flex;justify-content:space-between;padding:.75rem;background:#333;border-radius:6px}.stats-row-label{font-weight:700;color:#fff}.stats-row-data{display:flex;gap:1rem;color:#999}.stats-row-accuracy{color:#4caf50;font-weight:700}.mistakes-list{display:flex;flex-direction:column;gap:.5rem}.mistake-item{background:#333;padding:.75rem;border-radius:6px;display:flex;justify-content:space-between;align-items:center;gap:1rem}.mistake-situation{font-size:.9rem;color:#999}.mistake-actions{display:flex;align-items:center;gap:.5rem;font-weight:700}.mistake-wrong{color:#f44336}.mistake-arrow{color:#666}.mistake-correct{color:#4caf50}.mistake-count{color:#666;font-size:.9rem}.strategy-charts{display:flex;flex-direction:column;gap:2rem}.strategy-section h3{font-size:1.1rem;color:#999;margin-bottom:1rem}.strategy-table{width:100%;border-collapse:collapse;font-size:.9rem}.strategy-table th,.strategy-table td{padding:.5rem;text-align:center;border:1px solid #3a3a3a}.strategy-table th{background:#333;color:#999;font-weight:700}.strategy-table td{font-weight:700}.action-hit{background:#ff9800;color:#fff}.action-stand{background:#2196f3;color:#fff}.action-double{background:#9c27b0;color:#fff}.action-split{background:#f44336;color:#fff}.strategy-legend{display:flex;gap:1.5rem;justify-content:center;margin-top:1.5rem;padding-top:1.5rem;border-top:2px solid #3a3a3a}.legend-item{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:#999}.legend-color{padding:.25rem .5rem;border-radius:4px;font-weight:700;min-width:24px;text-align:center}@media (max-width: 767px){.app-header{padding:1rem}.app-header h1{font-size:1.5rem}.app-main{padding:1rem}.app-container{grid-template-columns:1fr;gap:1.5rem}.settings-panel{padding:.75rem}.settings-label{font-size:.85rem}.keyboard-hints{flex-wrap:wrap;gap:.5rem;font-size:.75rem}.game-table{padding:2rem 1rem}.table-felt{gap:2rem}.hand-label{font-size:1rem}.hand-value{font-size:1.25rem}.card{width:60px;height:84px;font-size:1.5rem}.card-rank{font-size:1rem}.card-suit{font-size:2rem}.action-buttons{grid-template-columns:1fr;gap:.75rem}.action-button{padding:1rem;font-size:1rem;min-height:48px}.new-hand-button{padding:1rem;font-size:1rem}.modal-content{max-width:100%;margin:.5rem}.modal-header{padding:1rem}.modal-header h2{font-size:1.25rem}.modal-body,.modal-footer{padding:1rem}.stats-grid{grid-template-columns:1fr}.statistics h2{font-size:1.25rem}.statistics h3{font-size:1rem}.strategy-table{font-size:.75rem}.strategy-table th,.strategy-table td{padding:.25rem}.strategy-legend{flex-wrap:wrap;gap:.75rem}.mistake-item{flex-direction:column;align-items:flex-start;gap:.5rem}}@media (min-width: 768px) and (max-width: 1024px){.app-container{grid-template-columns:1fr}.stats-section{max-width:600px;margin:0 auto}}@media (min-width: 1025px){.game-section{min-width:700px}}@media (hover: none) and (pointer: coarse){.action-button,.new-hand-button,.modal-button{min-height:48px;min-width:48px}.stats-clear-button{min-height:36px;min-width:36px}}@media (max-width: 767px) and (orientation: landscape){.table-felt{flex-direction:row;justify-content:space-around;gap:1rem}.controls-area{max-width:300px}.action-buttons{grid-template-columns:repeat(2,1fr)}}@media print{.app-footer,.controls-area,.modal-overlay{display:none}}
