:root{color:#111;background:#e5e5e5;font-family:ui-serif,Georgia,Times New Roman,serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:0;min-height:100vh;overflow-x:hidden}button,select{font:inherit}.app{width:min(900px,100%);margin:0 auto;padding:16px}.hero{display:grid;gap:6px;margin-bottom:12px;text-align:center}.hero h1{margin:0;font-size:clamp(1.8rem,7vw,3.6rem);letter-spacing:-.05em}.hero p{min-height:1.5em;margin:0;font-size:clamp(.95rem,3vw,1.3rem);font-weight:700}.toolbar,.settings{display:grid;gap:8px;margin-bottom:10px}.toolbar{grid-template-columns:repeat(auto-fit,minmax(86px,1fr))}.settings{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.toolbar button,.settings select{width:100%;min-width:0;min-height:46px;border:2px solid #111;background:#f7f7f7;color:#111;border-radius:10px;font-weight:800}.toolbar button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px;font-size:clamp(.72rem,2.4vw,1rem)}.toolbar button:active,.toolbar button:focus-visible{outline:4px solid #555}.toolbar button:disabled{opacity:.45}.settings label{display:grid;gap:4px;min-width:0;font-size:.82rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.play-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,200px);gap:14px;align-items:start}.play-area.history-hidden{grid-template-columns:minmax(0,1fr)}.board-wrap{display:flex;flex-direction:column;align-items:center;gap:6px}.col-buttons{display:grid;grid-template-columns:repeat(7,1fr);width:min(100%,calc(100vh - 280px));min-width:0;gap:2px}.play-area.history-hidden .col-buttons{width:100%}.col-btn{min-height:36px;border:2px solid #111;background:#f7f7f7;border-radius:8px 8px 0 0;font-size:1.2rem;cursor:pointer;font-weight:900;color:#111}.col-btn:disabled{opacity:.4;cursor:default}.col-btn:not(:disabled):hover{background:#ddd}.board{display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,1fr);width:min(100%,calc(100vh - 280px));min-width:0;aspect-ratio:7 / 6;background:#444;border:5px solid #111;border-radius:12px;overflow:hidden;box-shadow:0 14px 32px #0003;gap:3px;padding:3px}.play-area.history-hidden .board{width:100%}.cell{position:relative;display:grid;place-items:center;background:#444;border-radius:4px}.hole{width:82%;height:82%;border-radius:50%;border:2px solid #333}.hole.empty{background:#777}.hole.p1{background:#1a1a1a;border-color:#000;box-shadow:inset 0 2px 6px #ffffff1a}.hole.p2{background:#f0f0f0;border-color:#ccc;box-shadow:inset 0 2px 6px #0000001a}.hole.last{box-shadow:0 0 0 3px #fff,inset 0 2px 4px #0003}.hole.win{animation:pulse .7s infinite alternate}@keyframes pulse{0%{opacity:1}to{opacity:.5}}.history{max-height:min(76vh,600px);overflow:auto;border:3px solid #111;border-radius:14px;background:#f7f7f7;padding:10px 12px}.history h2{margin:0 0 8px;font-size:1rem;font-weight:900}.history ol{columns:1;margin:0;padding-left:1.4em;font-family:ui-monospace,Consolas,monospace;font-weight:800;font-size:.9rem}.history li{display:list-item;padding-bottom:3px}.notes{margin-top:14px;color:#333;font-size:.9rem}.about-page{border:3px solid #111;border-radius:14px;background:#f7f7f7;padding:16px;font-size:1.05rem;line-height:1.5}.about-page h2{margin-top:0}.about-page button{min-height:46px;border:2px solid #111;border-radius:10px;background:#111;color:#fff;font-weight:900;padding:0 16px}.review-nav{display:grid;grid-template-columns:1fr 1fr minmax(0,2fr) 1fr 1fr;gap:3px;margin-bottom:8px}.review-nav button{min-height:30px;border:2px solid #111;border-radius:6px;background:#f7f7f7;font-weight:900;cursor:pointer;font-size:.85rem;padding:0}.review-nav button:disabled{opacity:.4;cursor:default}.review-label{display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:700}.history li{cursor:pointer;border-radius:3px;padding-left:2px}.history li:hover{background:#e8e8e8}.history li.active{background:#ddd;font-weight:900}@media(max-width:680px){.app{padding:10px}.play-area{grid-template-columns:1fr}.history{max-height:130px}.col-buttons,.board{width:min(100%,calc(100vw - 20px))}}
