*{box-sizing:border-box}
.game-grid,.grid4{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.grid4{grid-template-columns:repeat(4,1fr)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.game-tile,.paper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;border:0;border-radius:14px;background:#fff3bf;font-size:14px;cursor:pointer}
.paper{font-size:24px}.paper.open{background:#e7f5ff}
.huge{font-size:56px;text-align:center;margin:8px 0}
.react-box{width:100%;min-height:140px;border:0;border-radius:16px;font-size:18px;color:#fff;background:#868e96;cursor:pointer}
.react-box.wait{background:#e03131}.react-box.go{background:#2f9e44}
.ball{display:inline-flex;width:40px;height:40px;border-radius:50%;background:#ffd43b;align-items:center;justify-content:center;font-weight:700}
body{margin:0;font-family:"Pretendard","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;background:linear-gradient(160deg,#fff4e6,#e7f5ff);color:#2b2d42;min-height:100vh}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid #4dabf7;outline-offset:2px}
.lock{max-width:360px;margin:0 auto;padding:48px 20px;text-align:center}
.logo{font-size:64px}
h1{margin:8px 0;font-size:28px}
h2{margin:0 0 12px;font-size:20px}
.muted{color:#868e96}.small{font-size:13px;margin:4px 0 0}
.err{color:#e03131;font-weight:600}
.dots{display:flex;gap:14px;justify-content:center;margin:20px 0}
.dots span{width:16px;height:16px;border-radius:50%;border:2px solid #ff922b}
.dots span.on{background:#ff922b}
.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.key{height:64px;border-radius:50%;border:none;background:#fff;font-size:24px;font-weight:700;box-shadow:0 3px 10px #0001}
.key:active{background:#ffe8cc}
.app{max-width:640px;margin:0 auto;padding:12px}
.top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.top h1{font-size:22px}
.chip{border:none;background:#fff;border-radius:99px;padding:6px 14px;font-weight:600}
.tabs{display:flex;gap:6px;overflow-x:auto;margin:10px 0}
.tabs button{flex:1;white-space:nowrap;border:none;border-radius:12px;padding:10px 8px;background:#ffffffaa;font-weight:600}
.tabs button.on{background:#ff922b;color:#fff}
.card{background:#fff;border-radius:20px;padding:16px;box-shadow:0 6px 24px #0000000d}
.row{display:flex;gap:8px;align-items:center}.wrap{flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:10px}
.input{width:100%;padding:12px;border:2px solid #e9ecef;border-radius:12px;font:inherit;resize:vertical}
.btn{border:none;border-radius:12px;padding:12px 18px;background:#ff922b;color:#fff;font-weight:700;white-space:nowrap}
.btn:disabled{opacity:.5}
.btn.ghost{background:#fff4e6;color:#d9480f}
.chat{height:55vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:8px;background:#f8f9fa;border-radius:12px;margin-bottom:10px}
.bubble{max-width:80%;background:#fff;border-radius:14px;padding:8px 12px;display:flex;flex-direction:column;align-self:flex-start;word-break:break-word}
.bubble.me{align-self:flex-end;background:#ffe8cc}
.bubble b{font-size:12px;color:#d9480f}.bubble small{font-size:11px;color:#adb5bd}
.mood{font-size:24px;border:2px solid transparent;background:#f8f9fa;border-radius:12px;padding:4px 8px}
.mood.on{border-color:#ff922b}
.diary{background:#f8f9fa;border-radius:14px;padding:12px}
.diary p{margin:8px 0 0;white-space:pre-wrap}
.big{font-size:24px}
.wheel-wrap{position:relative;width:260px;height:260px;margin:20px auto}
.pointer{position:absolute;top:-18px;left:50%;transform:translateX(-50%);font-size:26px;color:#e03131;z-index:2}
.wheel{width:100%;height:100%;border-radius:50%;position:relative;transition:transform 3s cubic-bezier(.2,.8,.2,1);border:6px solid #fff;box-shadow:0 4px 18px #0002}
.wheel span{position:absolute;left:50%;top:50%;width:80px;margin:-10px 0 0 -40px;text-align:center;font-size:12px;font-weight:700}
.result{font-size:20px;font-weight:800;text-align:center;color:#d9480f}
.claw-box{position:relative;height:240px;background:linear-gradient(#d0ebff,#a5d8ff);border-radius:16px;overflow:hidden;margin-bottom:12px;border:4px solid #ff922b}
.claw{position:absolute;font-size:32px;transform:translateX(-50%);transition:top 1s,left .2s}
.toy{position:absolute;bottom:10px;font-size:30px;transform:translateX(-50%)}
