/* 닷콩 광산 전용 CSS: 다른 그누보드 페이지에 영향 없도록 모두 .dotkong 하위로 제한 */
.dotkong{--dk-char-width:340px;--dk-char-bottom:26px;--dk-green:#70e8ab;--dk-text:#edf9f3;font-family:system-ui,-apple-system,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:var(--dk-text)}
.dotkong *{box-sizing:border-box}
.dotkong .dk-container{margin:0 auto;padding:0}
.dotkong .dk-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:17px}
.dotkong .dk-kicker{margin:0 0 5px;font-size:12px;font-weight:750;color:#278b55;letter-spacing:.05em}
.dotkong .dk-heading h1{margin:0;font-size:clamp(25px,4vw,39px);line-height:1.2;font-weight:750;color:#1b4935;letter-spacing:-.04em}
.dotkong .dk-heading h1 em{font-style:normal;color:#20a562}
.dotkong .dk-subtitle{margin:8px 0 0;font-size:13px;color:#728778;line-height:1.55}
.dotkong .dk-cap{
  width: 215px;
  flex: 0 0 215px;
  border: 1px solid #c9e0d0;
  border-radius: 13px;
  background: #f2faf4;
  padding: 10px;
  color: #37674b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.dotkong .dk-cap>span{font-size:12px;font-weight:700}
.dotkong .dk-cap strong{display:block;color:#239457;font-size:28px;line-height:1.4;font-weight:800;font-variant-numeric:tabular-nums}
.dotkong .dk-cap small{font-size:13px;color:#41654f}
.dotkong .dk-cap-track{flex: 0 0 100%;height:7px;background:#d7e9dc;border-radius:12px;overflow:hidden}
.dotkong .dk-cap-track i{display:block;height:100%;background:#40c988;width:0;transition:width .3s}
.dotkong .dk-stage{position:relative;isolation:isolate;height:555px;overflow:hidden;border-radius:18px;background:#083d4e;border:1px solid #28677a;box-shadow:0 14px 34px #062c2733}
.dotkong .dk-background,.dotkong .dk-shade{position:absolute;inset:0;pointer-events:none}
.dotkong .dk-background{background:url('../img/cave.svg') center center/cover no-repeat}
.dotkong .dk-shade{background:linear-gradient(180deg,#001d2c30 0%,transparent 45%,#061b2340 100%)}
.dotkong .dk-online{position:absolute;top:18px;left:18px;z-index:12;display:flex;align-items:center;gap:8px;background:#061f2bd9;border:1px solid #7dccb64d;padding:10px 13px;border-radius:10px;font-size:12px;font-weight:750;color:#dcffe6}
.dotkong .dk-online i{width:9px;height:9px;border-radius:50%;background:#6ff9a8;box-shadow:0 0 10px #53f4a1;animation:dk-live 1.5s alternate infinite}
.dotkong .dk-online.is-hungry i{background:#ffb46a;box-shadow:0 0 8px #ffb46a;animation:none}
.dotkong .dk-online.is-daily-cap i{background:#b2c8ff;box-shadow:0 0 8px #b2c8ff;animation:none}
.dotkong .dk-hunger{position:absolute;top:18px;right:18px;z-index:12;width:208px;border:1px solid #e4fbdc49;border-radius:12px;background:#071e2bdd;padding:12px 13px;color:#fcfbe5}
.dotkong .dk-hunger-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:750}
.dotkong .dk-hunger-title strong{color:#fff2a2;font-size:15px;font-variant-numeric:tabular-nums}
.dotkong .dk-hunger-track{margin-top:10px;width:100%;height:10px;background:#132a32;border:1px solid #5b866a;border-radius:20px;overflow:hidden}
.dotkong .dk-hunger-track i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#55e992,#d3f15e);transition:width 1s linear}
.dotkong .dk-is-resting .dk-hunger-track i{background:#cf6952}
.dotkong .dk-bubble{position:absolute;left:11%;top:24%;z-index:10;max-width:245px;min-width:150px;padding:13px 17px;background:#fff9e4;color:#493e2b;border-radius:16px 16px 16px 5px;border:3px solid #4d392c;box-shadow:0 5px 0 #241b2066;font-size:14px;font-weight:750;word-break:keep-all;line-height:1.5}
.dotkong .dk-bubble:after{content:'';position:absolute;bottom:-17px;left:23px;border-top:17px solid #fff9e4;border-right:16px solid transparent}
.dotkong .dk-bubble.dk-pop{animation:dk-bubble-pop .3s ease}
.dotkong .dk-ground{position:absolute;left:0;right:0;bottom:0;height:18%;background:linear-gradient(180deg,transparent,#381e1430);pointer-events:none}
/* 조립 좌표: 모든 파츠가 원본과 동일한 1122×1402 PNG 캔버스입니다. */
.dotkong .dk-miner-wrap{position:absolute;bottom:var(--dk-char-bottom);left:50%;width:min(var(--dk-char-width),72%);aspect-ratio:1122/1402;z-index:6;transform:translateX(-50%);pointer-events:none}
.dotkong .dk-miner{position:absolute;inset:0;transform-origin:50% 94%;filter:drop-shadow(0 9px 8px #09252180)}
.dotkong .dk-layer{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none}
.dotkong .dk-body{z-index:1}
.dotkong .dk-helmet{z-index:2}
.dotkong .dk-drill{z-index:3}
.dotkong .dk-working .dk-miner{animation:dk-drill-body .16s ease-in-out alternate infinite}
.dotkong .dk-working .dk-drill{animation:dk-drill-tool .12s ease-in-out alternate infinite}
/* 배고픔/하루 종료: 원본 2D PNG를 별도 포즈로 전환 (채굴 코스튬은 계속 보관) */
.dotkong .dk-rest-pose{display:none;position:absolute;left:50%;bottom:0;width:min(310px,80vw);height:auto;max-width:none;transform:translateX(-50%);transform-origin:50% 100%;will-change:transform;user-select:none;pointer-events:none;filter:drop-shadow(0 9px 8px #09252180)}
.dotkong .dk-hungry .dk-miner,.dotkong .dk-daily-cap .dk-miner{display:none}
.dotkong .dk-hungry .dk-rest-pose-hungry{display:block;animation:dk-hungry-shiver 2.4s ease-in-out infinite}
.dotkong .dk-daily-cap .dk-rest-pose-cap{display:block;animation:dk-sleep-breathe 2.8s ease-in-out infinite}
.dotkong .dk-celebrating .dk-miner{display:block}
.dotkong .dk-celebrating .dk-rest-pose{display:none}
.dotkong .dk-celebrating .dk-miner{animation:dk-cheer .55s ease-in-out 3}
.dotkong .dk-miner-loading{position:absolute;left:50%;bottom:35%;z-index:7;transform:translateX(-50%);border-radius:10px;padding:8px 13px;background:#0b3142d9;color:#defcea;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:none}
.dotkong .dk-miner-shadow{position:absolute;left:50%;bottom:0;width:68%;height:17px;background:#01171b70;filter:blur(11px);border-radius:50%;transform:translateX(-50%)}
.dotkong .dk-ground-hole{position:absolute;bottom:14px;left:50%;z-index:5;width:95px;height:17px;border-radius:50%;background:#40211d;box-shadow:0 0 0 7px #ab5d4266;transform:translateX(-50%)}
.dotkong .dk-sparks{position:absolute;bottom:34px;left:50%;z-index:8;transform:translateX(-50%);color:#ffe76d;font-size:28px;font-weight:800;letter-spacing:7px;animation:dk-spark .32s ease-in-out infinite alternate}
.dotkong .dk-sparks span{font-size:18px}
.dotkong .dk-is-resting .dk-sparks,.dotkong .dk-is-resting .dk-ground-hole{display:none}
.dotkong .dk-sleep,.dotkong .dk-cheer{display:none;position:absolute;z-index:11;font-weight:800;white-space:nowrap}
.dotkong .dk-sleep{top:26%;right:0;color:#f1f3ff;font-size:35px;text-shadow:0 3px 2px #293054;animation:dk-float 1.4s ease-in-out infinite alternate}

.dotkong .dk-cheer{top:0;left:50%;transform:translateX(-50%);background:#fff7dc;color:#9c4a1e;border:2px solid #e2ac50;border-radius:11px;padding:8px 12px;font-size:15px;box-shadow:0 6px 12px #140d0745}
.dotkong .dk-celebrating .dk-cheer{display:block}
.dotkong .dk-notice{margin:12px 2px 0;font-size:12px;color:#789286;line-height:1.6}
@keyframes dk-live{from{opacity:.45}to{opacity:1}}
@keyframes dk-bubble-pop{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes dk-drill-body{from{transform:translateY(1px)}to{transform:translateY(4px)}}
@keyframes dk-drill-tool{from{transform:translateY(1px)}to{transform:translateY(5px)}}
@keyframes dk-hungry-shiver{0%,100%{transform:translateX(-50%) translateY(0) rotate(0) scaleY(1)}15%{transform:translateX(calc(-50% - 2px)) translateY(2px) rotate(-.8deg) scaleY(.99)}32%{transform:translateX(calc(-50% + 2px)) translateY(0) rotate(.8deg) scaleY(1.01)}48%{transform:translateX(calc(-50% - 1px)) translateY(2px) rotate(-.5deg) scaleY(.985)}65%{transform:translateX(calc(-50% + 2px)) translateY(0) rotate(.5deg) scaleY(1.005)}80%{transform:translateX(-50%) translateY(2px) rotate(0) scaleY(.995)}}
@keyframes dk-sleep-breathe{0%,100%{transform:translateX(-50%) scaleY(.975)}50%{transform:translateX(-50%) scaleY(1.055)}}
@keyframes dk-cheer{0%,100%{transform:translateY(0)}40%{transform:translateY(-22px) rotate(-3deg)}75%{transform:translateY(1px) rotate(3deg)}}
@keyframes dk-spark{from{opacity:.4;transform:translateX(-50%) scale(.8)}to{opacity:1;transform:translateX(-50%) scale(1.05)}}
@keyframes dk-float{from{transform:translateY(4px)}to{transform:translateY(-8px)}}
@media(max-width:760px){.dotkong .dk-heading{flex-direction:column;align-items:stretch;gap:12px}.dotkong .dk-heading h1{font-size:27px}
.dotkong .dk-cap{width:100%;flex:auto}
.dotkong .dk-cap strong{font-size:23px}
.dotkong .dk-stage{height:510px;border-radius:13px}.dotkong .dk-online{top:11px;left:10px;padding:9px;font-size:11px}.dotkong .dk-hunger{top:11px;right:10px;width:155px;padding:9px}.dotkong .dk-bubble{top:23%;left:4%;max-width:170px;font-size:12px;padding:10px 11px}.dotkong{--dk-char-width:330px;--dk-char-bottom:25px}}
@media(max-width:440px){.dotkong .dk-stage{height:440px}.dotkong{--dk-char-width:276px;--dk-char-bottom:24px}.dotkong .dk-bubble{top:24%;max-width:141px;font-size:11px;min-width:0}.dotkong .dk-hunger{width:138px}.dotkong .dk-sparks{bottom:27px}}
@media(prefers-reduced-motion:reduce){.dotkong .dk-miner,.dotkong .dk-drill,.dotkong .dk-sparks,.dotkong .dk-rest-pose{animation:none!important}}
/* 실제 채굴/가방/고기 UI */
.dotkong .dk-bag-button{position:absolute;z-index:15;right:19px;bottom:18px;background:#f9e4a1;border:2px solid #684625;border-radius:12px;color:#47321b;padding:12px 15px;box-shadow:0 4px 0 #462c20;font-size:15px;font-weight:750;cursor:pointer}
.dotkong .dk-bag-button b{display:inline-block;margin-left:4px;border-radius:6px;padding:4px 5px;background:#fff8e4;color:#6e491c;font-size:12px}
.dotkong .dk-controls{
  padding: 13px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.dotkong .dk-info{font-size:12px;display:flex;flex-direction:column;gap:6px;font-weight:650}
.dotkong .dk-feed-button{border:0;border-radius:10px;background:#2dbb72;color:white;padding:13px 20px;white-space:nowrap;font-weight:750;cursor:pointer}
.dotkong button:disabled{cursor:not-allowed;opacity:.6}
.dotkong .dk-access{margin-top:12px;padding:15px;border-radius:10px;background:#e7f5ea;color:#325a42;font-size:13px}
.dotkong .dk-access a{color:#228f4a;text-decoration:underline}
.dotkong .dk-modal-cover:not([hidden]){display:flex}
.dotkong .dk-modal-cover[hidden]{display:none!important}
.dotkong .dk-modal-cover{position:fixed;inset:0;z-index:100000;align-items:center;justify-content:center;background:#071e24aa;padding:15px}
.dotkong .dk-modal{background:#fffef8;color:#274e3b;border-radius:17px;border:2px solid #84bba0;width:min(410px,100%);padding:20px 23px;box-shadow:0 12px 50px #061a20a6}
.dotkong .dk-modal-head{display:flex;align-items:center;justify-content:space-between}
.dotkong .dk-modal-head h2{font-size:21px;margin:0}
.dotkong .dk-modal-head button{border:0;background:transparent;font-size:28px;cursor:pointer}
.dotkong .dk-modal-count{text-align:center;margin:19px auto 13px;background:#e9f7ea;border-radius:12px;padding:19px 0}
.dotkong .dk-modal-count strong{font-size:42px;color:#1c9c59}
.dotkong .dk-modal-count span{font-size:14px;margin-left:8px}
.dotkong .dk-modal p{font-size:13px;margin:10px 0;line-height:1.6}
.dotkong .dk-modal-help{color:#6c8475}
.dotkong .dk-claim-button{display:block;width:100%;padding:13px;background:#27ae68;border:none;color:white;font-size:15px;font-weight:800;border-radius:10px;cursor:pointer;margin:16px 0}
.dotkong .dk-modal-msg{font-size:12px;color:#227e55;min-height:16px;text-align:center}
@media(max-width:600px){.dotkong .dk-controls{align-items:stretch;flex-direction:column}.dotkong .dk-feed-button{width:100%}.dotkong .dk-bag-button{right:9px;bottom:13px;padding:9px 10px;font-size:12px}}

/* 상점/장비 교체 */
.dotkong .dk-action-buttons{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.dotkong .dk-shop-button{border:0;border-radius:10px;background:#f8d883;color:#654416;padding:13px 20px;white-space:nowrap;font-weight:750;cursor:pointer}
.dotkong .dk-shop-modal{width:min(660px,100%);max-height:calc(100vh - 44px);overflow-y:auto}
.dotkong .dk-shop-wallet{background:#f3f9ed;border-radius:10px;padding:11px 12px;text-align:center}
.dotkong .dk-shop-wallet strong{font-size:20px;color:#238451}
.dotkong .dk-shop-hint{color:#6c8574}
.dotkong .dk-shop-tabs{display:flex;gap:6px;margin:12px 0}
.dotkong .dk-shop-tab{flex:1;padding:11px;border:1px solid #cee4d3;background:#edf6ee;border-radius:9px;color:#35694e;font-weight:750;cursor:pointer}
.dotkong .dk-shop-tab.active{background:#2a915b;color:white}
.dotkong .dk-shop-items{display:grid;gap:8px}
.dotkong .dk-shop-item{display:flex;gap:11px;align-items:center;padding:12px;border:1px solid #d9e8dc;border-radius:12px;background:#fff}
.dotkong .dk-shop-item img{width:69px;height:77px;object-fit:contain;background:#e7f2e6;border-radius:9px;flex-shrink:0}
.dotkong .dk-shop-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.dotkong .dk-shop-info strong{font-size:14px;color:#235a3c}
.dotkong .dk-shop-info small{color:#72877a;font-size:12px}
.dotkong .dk-shop-item button{border:none;background:#268b56;color:white;padding:10px 12px;border-radius:8px;cursor:pointer;white-space:nowrap;font-weight:700}
.dotkong .dk-shop-item button:disabled{background:#dbe9df;color:#6b947a}
.dotkong .dk-shop-feedback{min-height:20px;color:#3b8056;font-weight:700;text-align:center}
@media(max-width:600px){.dotkong .dk-action-buttons{width:100%}.dotkong .dk-action-buttons>*{flex:1}.dotkong .dk-shop-item{gap:7px;padding:9px}.dotkong .dk-shop-item img{width:54px;height:65px}.dotkong .dk-shop-item button{padding:9px 7px;font-size:12px}}
