:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}.card{padding:2em}#app{max-width:1280px;margin:0 auto;text-align:center}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}html{background-color:#166534;overflow-x:hidden}body{background-color:#166534;min-height:100vh;width:100%;display:flex;flex-direction:column;font-family:sans-serif;-webkit-user-select:none;user-select:none;color:#f0fdf4;transition:background-color .15s;margin:0;box-sizing:border-box;overflow-x:hidden}body::-webkit-scrollbar{display:none}header{display:flex;justify-content:space-between;align-items:center;padding:1rem;background-color:#12371f80;color:#fff;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}header h1{font-size:1.5rem;font-weight:700;letter-spacing:.05em;margin:0}header .subheading{font-size:.75rem;color:#bbf7d0}.controls{display:flex;gap:1rem;align-items:center}.theme-selector{display:flex;align-items:center;gap:.5rem}.controls label{font-size:.875rem;font-weight:700}.controls select{background-color:transparent;color:#fff;border:1px solid #ffffff;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;font-weight:400;cursor:pointer;transition:background-color .15s,color .15s}.controls select:hover{background-color:#fff;color:#14532d}.controls select option{background-color:#1a1a1a;color:#fff}#score-display{font-family:monospace;font-size:1.25rem;margin-right:1rem}.button{border:1px solid #ffffff;background-color:transparent;color:#fff;font-size:.875rem;font-weight:700;padding:.25rem .75rem;border-radius:.25rem;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;transition:background-color .15s,color .15s;cursor:pointer;white-space:nowrap}.button:hover{background-color:#fff;color:#14532d}.button-primary{background-color:#f59e0b;color:#000;border-color:#f59e0b;padding-left:1rem;padding-right:1rem}.button-primary:hover{background-color:#d97706;border-color:#d97706;color:#000}.game-wrapper{flex-grow:1;display:flex;align-items:center;justify-content:center;padding:1rem;width:100%;box-sizing:border-box}:root{--card-width: 5rem;--card-height: 7rem}#game-board{background-color:#15803d;padding:1rem;border-radius:.5rem;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;gap:1rem;width:100%;max-width:680px;aspect-ratio:9 / 16;max-height:90vh}.top-row,#foundations,#tableau{display:flex;gap:1rem}#foundations-wrapper{display:flex;justify-content:flex-end}.card-pile,.card-pile-placeholder,.tableau-col,.foundation-placeholder,.foundation-info{width:var(--card-width)}.card-pile,.card-pile-placeholder,.foundation-placeholder{height:var(--card-height)}.card-pile{position:relative}.card-pile-placeholder{border:2px solid #16a34a;border-radius:.5rem;background-color:#14532d1a}#stock{border:2px solid #16a34a;border-radius:.5rem;cursor:pointer;transition:border-color .15s}#stock:hover{border-color:#4ade80}#stock .card-back{position:absolute;top:0;left:0}#stock-empty{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#4ade80;font-weight:700;opacity:.5;border:2px solid #15803d;border-radius:.5rem}.foundation-pile{display:flex;flex-direction:column;gap:.25rem;align-items:center}.foundation-info{height:4rem;color:#fff;font-size:.75rem;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center}.foundation-info-inner{display:flex;flex-direction:column;align-items:center;width:100%;overflow-wrap:break-word}.foundation-placeholder{position:relative;border:2px solid #16a34a;border-radius:.5rem;background-color:#14532d33;display:flex;align-items:center;justify-content:center;font-size:1.875rem;color:#15803d;opacity:.5}.foundation-placeholder .card{position:absolute;inset:0}#tableau{justify-content:space-between;flex-grow:1;position:relative}.tableau-col{height:100%;display:flex;flex-direction:column;align-items:center}.card{width:var(--card-width);height:var(--card-height);border:1px solid #d1d5db;border-radius:.5rem;box-shadow:2px 2px 5px #0000004d;display:flex;flex-direction:column;position:relative;padding:.25rem;cursor:grab;transition:filter .15s;box-sizing:border-box}.card:active{cursor:grabbing}.card:hover{filter:brightness(1.05)}.card.face-down{border-color:#fff;background-image:repeating-linear-gradient(45deg,#1e40af 0 10px,#1d4ed8 10px 20px)}.card-foundation{background-color:#fecaca;font-weight:700}.card-normal{background-color:#fff}.card .listen-button{position:absolute;top:.25rem;right:.25rem;z-index:10;background-color:#e5e7eb;border:none;border-radius:9999px;width:1.25rem;height:1.25rem;display:flex;align-items:center;justify-content:center;font-size:10px;box-shadow:0 1px 2px #0000001a;cursor:pointer}.card .listen-button:hover{background-color:#d1d5db}.card-content{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:.5rem;color:#1a202c;overflow:hidden}.card-text-thai{text-align:center;font-weight:700;font-size:.875rem;line-height:1.25;margin-bottom:.25rem;overflow-wrap:break-word;width:100%;padding:0 .25rem;box-sizing:border-box}.card-text-eng{text-align:center;font-size:10px;color:#6b7280;line-height:1}#win-modal{position:fixed;inset:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:50}.win-modal-content{background-color:#fff;padding:2rem;border-radius:.75rem;text-align:center;box-shadow:0 25px 50px -12px #00000040;transform:scale(1);transition:transform .2s;color:#4b5563}.win-modal-content h2{font-size:2.25rem;font-weight:700;color:#16a34a;margin:0 0 1rem}.win-modal-content p{margin:0 0 1.5rem}.win-modal-content .button{background-color:#16a34a;color:#fff;font-weight:700;padding:.75rem 2rem;border-radius:.5rem;font-size:1.25rem;border:none}.win-modal-content .button:hover{background-color:#15803d;color:#fff}[x-cloak]{display:none!important}@media(max-width:680px){body{height:auto}header{flex-direction:column;align-items:flex-start;gap:.75rem;padding:.75rem}header h1{font-size:1.25rem}.controls{width:100%;justify-content:space-between;gap:.5rem}#score-display{font-size:1rem;margin-right:0}.button{font-size:.7rem;padding:.2rem .5rem}.game-wrapper{padding:.5rem 0;align-items:flex-start}:root{--card-width: calc((100vw - 6 * .5rem) / 7);--card-height: calc(var(--card-width) * 1.4)}#game-board{padding:0;gap:.5rem;aspect-ratio:unset;max-height:none;max-width:none}.top-row,#foundations,#tableau{gap:.5rem}.foundation-info{height:2rem;font-size:.6rem}.card .listen-button{width:1rem;height:1rem;top:.15rem;right:.15rem;font-size:8px}.card-text-thai{font-size:.65rem;line-height:1.1}.card-text-eng{font-size:8px}.foundation-placeholder{font-size:1.5rem}}
