*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#1a5c2a;background-image:radial-gradient(ellipse at center,#1e6b30,#0f3d1a);min-height:100vh;overflow-x:hidden;user-select:none;-webkit-user-select:none;touch-action:manipulation}.game-container{max-width:820px;margin:0 auto;padding:16px 12px;min-height:100vh;display:flex;flex-direction:column}.top-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;flex-wrap:wrap;gap:12px}.stock-waste{display:flex;gap:12px}.stock-area{position:relative;cursor:pointer;width:72px;height:100px}.stock-empty{width:72px;height:100px;border:2px dashed rgba(255,255,255,.25);border-radius:8px;cursor:pointer}.pile-count{position:absolute;bottom:-18px;left:50%;transform:translate(-50%);color:#fff9;font-size:11px}.waste-area{width:72px;height:100px}.waste-empty{width:72px;height:100px;border:2px dashed rgba(255,255,255,.15);border-radius:8px}.foundation-area{display:flex;gap:8px}.foundation-pile{width:72px;height:100px;border-radius:8px}.foundation-placeholder{width:72px;height:100px;border:2px dashed rgba(255,255,255,.2);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:24px;color:#ffffff26}.card{width:72px;height:100px;border-radius:8px;background:#fff;box-shadow:0 2px 6px #00000040;position:relative;display:flex;align-items:center;justify-content:center;font-size:14px;cursor:default;transition:box-shadow .15s}.card-small{width:56px;height:78px;font-size:12px}.card-back{background:#1a3a6b}.card-back-inner{width:calc(100% - 8px);height:calc(100% - 8px);border-radius:4px;border:2px solid rgba(255,255,255,.3);background:repeating-linear-gradient(45deg,transparent,transparent 3px,rgba(255,255,255,.05) 3px,rgba(255,255,255,.05) 6px)}.card-red{color:#c0392b}.card-black{color:#1a1a2e}.card-corner{position:absolute;display:flex;flex-direction:column;align-items:center;line-height:1.1;font-weight:700}.card-corner-top{top:4px;left:6px}.card-corner-bottom{bottom:4px;right:6px;transform:rotate(180deg)}.card-center{font-size:28px}.card-small .card-center{font-size:22px}.card-small .card-corner{font-size:10px}.card-highlighted{box-shadow:0 0 12px 3px #ffd700b3}.card[draggable=true]:active{cursor:grabbing}.card[draggable=true]{cursor:grab}.tableau-area{display:flex;gap:8px;flex:1;justify-content:center}.tableau-column{width:80px;min-height:120px;border-radius:8px;padding:4px}.tableau-empty{width:72px;height:100px;border:2px dashed rgba(255,255,255,.2);border-radius:8px}.hint-glow{animation:hintPulse .8s ease-in-out infinite alternate}.hint-target{animation:hintTargetPulse .8s ease-in-out infinite alternate}@keyframes hintPulse{0%{box-shadow:0 0 6px 2px #ffd70080}to{box-shadow:0 0 16px 6px #ffd700cc}}@keyframes hintTargetPulse{0%{box-shadow:inset 0 0 10px 3px #ffd7004d}to{box-shadow:inset 0 0 20px 8px #ffd70099}}.controls{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 0 8px;flex-wrap:wrap}.ctrl-btn{width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:#ffffff1a;color:#fff;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.ctrl-btn:hover{background:#fff3}.ctrl-btn:active{background:#ffffff4d}.ctrl-new{width:auto;padding:0 16px;font-size:14px;font-weight:600}.ctrl-info{display:flex;gap:16px;color:#ffffffd9;font-size:14px;font-weight:500;padding:0 8px}.win-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.win-card{background:#fff;border-radius:20px;padding:40px;text-align:center;box-shadow:0 20px 60px #0006;animation:popIn .4s cubic-bezier(.175,.885,.32,1.275)}@keyframes popIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.win-card h2{font-size:28px;margin-bottom:12px}.win-card p{font-size:16px;color:#555;margin-bottom:8px}.best-record{color:#b8860b!important;font-weight:600}.win-card .ctrl-new{margin-top:20px;background:#1a5c2a;color:#fff;border:none;padding:10px 24px;border-radius:10px;font-size:16px}.howto-page{min-height:100vh;padding:40px 20px;display:flex;justify-content:center}.howto-card{background:#fffffff2;border-radius:16px;padding:36px;max-width:600px;width:100%;box-shadow:0 12px 40px #0003;color:#1a1a2e}.howto-card h1{font-size:24px;margin-bottom:24px;color:#1a5c2a}.howto-card h2{font-size:18px;margin:20px 0 8px;color:#2c3e50}.howto-card p,.howto-card li{font-size:14px;line-height:1.7;color:#444}.howto-card ul{padding-left:20px}.howto-card li{margin-bottom:6px}.back-link{display:inline-block;margin-top:24px;color:#1a5c2a;text-decoration:none;font-weight:600;font-size:14px}.back-link:hover{text-decoration:underline}.records-page{min-height:100vh;padding:40px 20px;display:flex;justify-content:center}.records-card{background:#fffffff2;border-radius:16px;padding:36px;max-width:600px;width:100%;box-shadow:0 12px 40px #0003;color:#1a1a2e}.records-card h1{font-size:24px;margin-bottom:24px;color:#1a5c2a}.records-loading,.records-empty,.records-error{font-size:14px;color:#888;text-align:center;padding:20px 0}.records-error{color:#c0392b}.records-table{width:100%;border-collapse:collapse;margin-bottom:16px}.records-table th{text-align:left;font-size:13px;color:#888;padding:8px 6px;border-bottom:2px solid #eee}.records-table td{padding:10px 6px;font-size:14px;border-bottom:1px solid #f0f0f0}.records-num{color:#aaa;font-weight:600}.records-date{color:#888;font-size:13px}@media(max-width:640px){.game-container{padding:8px 4px}.top-row{gap:8px}.card,.stock-area,.stock-empty,.waste-area,.waste-empty,.foundation-pile{width:56px;height:78px}.foundation-placeholder{width:56px;height:78px;font-size:18px}.tableau-area{gap:3px}.tableau-column{width:calc((100vw - 40px) / 7);padding:2px}.tableau-empty{width:100%;height:78px}.card-center{font-size:22px}.card-corner{font-size:10px}.ctrl-btn{width:38px;height:38px;font-size:18px;border-radius:10px}.ctrl-info{font-size:13px;gap:10px}}
