:root{--paper:#f2f5f3;--ink:#16382c;--green:#125c43;--lime:#d9fa70;--white:#fff;--muted:#5b7066;--line:#d6e1da}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-size:15px;line-height:1.6}button,input,select{font:inherit}button{cursor:pointer;min-height:46px;border:0;border-radius:12px;padding:10px 16px;font-weight:700;color:var(--ink)}button:hover{filter:brightness(.95)}button:disabled{opacity:.55;cursor:wait}input,select{width:100%;min-height:48px;border:1px solid #a9beb1;border-radius:10px;padding:10px 12px;background:white;color:var(--ink)}:focus-visible{outline:3px solid #4979d4;outline-offset:3px}header{max-width:1200px;margin:auto;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:25px;font-weight:900;text-decoration:none;color:var(--ink);letter-spacing:-1.5px}.brand span{color:var(--green)}.tag,.eyebrow{font-weight:700;color:var(--muted)}main{max-width:1200px;margin:48px auto;display:grid;grid-template-columns:350px minmax(0,1fr);gap:64px;padding:0 32px}.intro{position:sticky;top:44px;align-self:start}.eyebrow{font-size:15px;margin:0 0 18px}h1{font-size:49px;line-height:1.3;letter-spacing:-3px;margin:0 0 24px;font-weight:900}.intro>p:not(.eyebrow){color:var(--muted);font-size:17px}.intro-note{margin-top:32px;display:inline-block;background:var(--lime);padding:9px 15px;border-radius:30px;font-size:13px;font-weight:700}.workspace{min-width:0}.panel,.round{background:white;border:1px solid var(--line);border-radius:20px;padding:26px;margin-bottom:22px}.section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}h2{font-size:20px;letter-spacing:-.7px;margin:0}h3{font-size:17px;margin:26px 0 12px}.badge{white-space:nowrap;font-size:12px;border-radius:20px;background:#edf3ed;padding:4px 10px}.hint{font-size:12px;color:var(--muted);margin:14px 0 0}label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.input-row{display:flex;gap:8px}.input-row input{min-width:0}.input-row button{white-space:nowrap}.primary{background:var(--green);color:white}.outline{background:white;border:1px solid var(--line);font-size:13px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.chip{background:#edf3ed;min-height:40px;font-size:14px;padding:7px 12px}.chip.active{background:var(--green);color:white}.chip.off{background:white;border:1px dashed #a9beb1;color:var(--muted)}.round-section{margin:32px 0}.round{padding:22px;margin-bottom:14px}.round-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}.round-title{font-weight:800;font-size:17px;border:0;background:#f3f6f3}.round-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.round .hint{margin-top:10px}.round-rule{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.text-button{padding:4px 7px;background:none;min-height:40px;font-size:12px;color:var(--muted)}.game{background:var(--green);color:white;border:0}.game .badge{background:#ffffff20;color:white}.game>p{font-size:14px;color:#d1e6d7}.game select,.game input{margin-bottom:18px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.mode{border:2px solid #ffffff45;color:white;background:#ffffff08;text-align:left;padding:15px 12px}.mode strong{display:block;font-size:18px}.mode span{display:block;font-size:11px;margin-top:5px;font-weight:400}.mode.selected{background:var(--lime);color:var(--ink);border-color:var(--lime)}.game-display{font-size:29px;line-height:1.5;font-weight:900;text-align:center;padding:30px 8px;word-break:break-word}.draw{width:100%;font-size:18px;background:var(--lime)}.game .hint{color:#d1e6d7}.game #pending{text-align:center;margin-top:16px}.game #pending .primary{background:white;color:var(--green)}.receipt{border-top:6px solid var(--ink)}.total{display:flex;justify-content:space-between;align-items:center;padding:5px 0 22px;border-bottom:2px dashed var(--line)}.total strong{font-size:32px;letter-spacing:-1px}.result-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.result-row small{display:block;color:var(--muted);font-size:12px}.transfer{background:#eff5eb;border-radius:10px;padding:13px;margin-bottom:8px}.error{color:#a23c25;background:#fff0e9;padding:12px;border-radius:10px;font-size:13px}footer{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:11px;color:var(--muted);padding-bottom:30px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;max-width:90vw;padding:12px 22px;border-radius:12px;box-shadow:0 5px 30px #0002;display:none;z-index:5}@media(max-width:950px){main{grid-template-columns:270px 1fr;gap:30px}h1{font-size:40px}}@media(max-width:720px){header{padding:20px}main{display:block;margin:28px auto;padding:0 16px}.intro{position:static;margin:0 4px 28px}h1{font-size:36px;letter-spacing:-2px}.intro h1 br{display:none}.intro>p:not(.eyebrow){font-size:15px}.intro>p br{display:none}.intro-note{margin-top:8px}.eyebrow{margin-bottom:10px}.panel{padding:20px}.round{padding:16px}.section-title h2{font-size:18px}.total strong{font-size:28px}.mode strong{font-size:17px}footer{align-items:flex-start}.round-fields{gap:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.game .decision-buttons{display:grid;grid-template-columns:1fr;gap:16px;margin-top:20px}.game .decision-buttons button{min-height:60px;width:100%;font-size:18px;border-radius:14px}.game .decision-buttons .primary{background:var(--lime)!important;color:var(--ink)!important}.game .decision-buttons .outline{background:transparent;color:white;border:2px solid #a2c6b6}.game input,.game select{min-height:56px;font-size:20px}.game .amount-note{font-size:12px;color:#d1e6d7;margin:-12px 0 22px}.stepper-control{display:grid;grid-template-columns:64px 1fr 64px;gap:12px;align-items:center;margin-bottom:18px}.stepper-control button{min-height:60px;font-size:28px;background:white}.game .stepper-control input{margin:0;text-align:center;font-weight:800;font-size:26px;appearance:textfield}.stepper-control input::-webkit-inner-spin-button{appearance:none}.game-summary{background:#ffffff13;border-radius:12px;padding:16px;text-align:center;font-size:18px;font-weight:800;line-height:1.8}.game-summary:empty{display:none}.game .draw{min-height:60px}.game .mode{min-height:96px}.game #pendingDescription{font-size:18px;line-height:1.8}.game label{font-size:15px}.game-display{padding:24px 8px}

.guide p,.guide li{color:var(--muted);line-height:1.9}.guide details{padding:14px 0;border-bottom:1px solid var(--line)}.guide summary{cursor:pointer;font-weight:700;min-height:44px}.guide a{color:var(--green);text-underline-offset:4px}.guide nav{margin-top:24px;line-height:2.2}.tag{font-size:13px}

.round-head .round-title{min-width:0;flex:1}.round-head .text-button{flex-shrink:0;white-space:nowrap}
