/* 미로 팡 화면 — 숲 속 탐험(연두·초록·나무 갈색) */
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #141a33; overflow: hidden; position: fixed;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: #f4ffe8;
}
* { box-sizing: border-box; }
button {
  font-family: inherit; border: 0; cursor: pointer; color: inherit;
  touch-action: manipulation; -webkit-appearance: none; appearance: none;
}
.hidden { display: none !important; }

#app {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: #141a33;
  background: -webkit-linear-gradient(top, #1d3d2c 0%, #172b25 55%, #141a33 100%);
  background: linear-gradient(180deg, #1d3d2c 0%, #172b25 55%, #141a33 100%);
}
.screen {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* ===== 공통 버튼 ===== */
.iconBtn {
  min-width: 56px; height: 56px; border-radius: 18px; font-size: 26px; line-height: 1;
  background: #8b5a2b; color: #fff6e0; font-weight: 900;
  box-shadow: 0 4px 0 #5e3a17, inset 0 2px 0 rgba(255,255,255,0.18);
  -webkit-flex: none; flex: none; padding: 0 10px;
  -webkit-transition: -webkit-transform 0.08s; transition: transform 0.08s;
}
.iconBtn:active, .btn:active, .lvBtn:active, .modeBtn:active, .sideBtn:active, .dBtn:active {
  -webkit-transform: translateY(3px) scale(0.97); transform: translateY(3px) scale(0.97);
}
.btn {
  display: block; width: 100%; min-height: 58px; border-radius: 20px; margin: 10px 0 0;
  font-size: 21px; font-weight: 900; padding: 10px 16px;
  background: #c8915a; color: #3a2410; box-shadow: 0 5px 0 #8b5a2b;
  -webkit-transition: -webkit-transform 0.08s; transition: transform 0.08s;
}
.btn.primary { background: #8be05a; color: #1d3d12; box-shadow: 0 5px 0 #4f9a2c; }
.btn.warn { background: #ffb347; color: #4a2a00; box-shadow: 0 5px 0 #c77c12; }
.btn[disabled] { opacity: 0.45; }
.btnRow { display: -webkit-flex; display: flex; margin: 0 -5px; }
.btnRow .btn { margin-left: 5px; margin-right: 5px; -webkit-flex: 1; flex: 1; }

.coinPill {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  height: 44px; padding: 0 14px 0 8px; border-radius: 22px;
  background: rgba(0,0,0,0.3); font-size: 20px; white-space: nowrap;
}
.coinIco { font-size: 22px; margin-right: 6px; }

/* ===== 지도 ===== */
#mapTop, #gTop {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  padding: 8px 10px; -webkit-flex: none; flex: none;
}
#mapTitle { -webkit-flex: 1; flex: 1; min-width: 0; padding: 0 10px; }
.logo { font-size: 26px; font-weight: 900; color: #c9f59a; letter-spacing: -0.5px; white-space: nowrap; }
.sub { font-size: 13px; color: #a7c79a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topRight { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.topRight > * { margin-left: 8px; }
.shopBtn { background: #6cbf43; box-shadow: 0 4px 0 #3f7f22, inset 0 2px 0 rgba(255,255,255,0.25); }
.notice {
  margin: 0 12px 6px; padding: 10px 14px; border-radius: 14px; font-size: 15px; font-weight: 700;
  background: #fff1c2; color: #5a3b00;
}
#mapScroll {
  position: relative; -webkit-flex: 1; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 12px 40px; touch-action: pan-y;
}
#chapters, #modes { max-width: 860px; margin: 0 auto; }
.chapter {
  margin: 10px 0 16px; border-radius: 26px; padding: 12px 12px 14px;
  background: #2c5a34; border: 4px solid #8b5a2b;
  box-shadow: 0 8px 0 rgba(0,0,0,0.25);
}
.chapter.locked { background: #263d2d; border-color: #5e4a36; }
.chHead { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 0 4px 10px; }
.chIco {
  width: 48px; height: 48px; border-radius: 16px; font-size: 28px; line-height: 48px; text-align: center;
  background: rgba(255,255,255,0.15); margin-right: 10px; -webkit-flex: none; flex: none;
}
.chName { -webkit-flex: 1; flex: 1; font-size: 20px; font-weight: 900; color: #f2ffe0; }
.chName small { display: block; font-size: 13px; font-weight: 700; color: #b9dca2; }
.chProg { font-size: 15px; font-weight: 900; color: #fff3c4; background: rgba(0,0,0,0.25); border-radius: 12px; padding: 5px 10px; }
.lvGrid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -4px; }
.lvBtn {
  width: calc(25% - 8px); margin: 4px; min-height: 66px; border-radius: 18px; padding: 6px 2px;
  background: #d5f5a8; color: #24451a; box-shadow: 0 4px 0 #7fb35a;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  -webkit-transition: -webkit-transform 0.08s; transition: transform 0.08s;
}
.lvBtn .n { font-size: 24px; font-weight: 900; line-height: 1.1; }
.lvBtn .s { font-size: 12px; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.lvBtn.done { background: #7ed957; color: #173a0c; box-shadow: 0 4px 0 #4a9b2b; }
.lvBtn.lock { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); box-shadow: none; }
.lvBtn.next {
  background: #ffe066; color: #4a3500; box-shadow: 0 4px 0 #c99a12;
  -webkit-animation: nextPulse 1.1s ease-in-out infinite alternate; animation: nextPulse 1.1s ease-in-out infinite alternate;
}
@-webkit-keyframes nextPulse { from { -webkit-transform: scale(1); } to { -webkit-transform: scale(1.06); } }
@keyframes nextPulse { from { transform: scale(1); } to { transform: scale(1.06); } }
.lowfx .lvBtn.next { -webkit-animation: none; animation: none; }
@media (min-width: 640px) {
  .lvBtn { width: calc(12.5% - 8px); }
}
.modeBtn {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  width: 100%; min-height: 84px; margin: 0 0 14px; padding: 12px 16px; border-radius: 24px; text-align: left;
  background: #f5d58c; color: #3c2a0a; box-shadow: 0 6px 0 #b48431;
  -webkit-transition: -webkit-transform 0.08s; transition: transform 0.08s;
}
.modeBtn.endless { background: #b6e8ff; color: #0f3346; box-shadow: 0 6px 0 #5aa3c4; }
.modeBtn.locked { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); box-shadow: none; }
.modeBtn .mIco { font-size: 38px; width: 56px; text-align: center; -webkit-flex: none; flex: none; margin-right: 10px; }
.modeBtn .mTxt { -webkit-flex: 1; flex: 1; }
.modeBtn .mName { font-size: 21px; font-weight: 900; }
.modeBtn .mSub { font-size: 14px; font-weight: 700; opacity: 0.85; margin-top: 2px; }
.modeBtn .mTag { font-size: 13px; font-weight: 900; background: rgba(0,0,0,0.12); border-radius: 10px; padding: 4px 8px; white-space: nowrap; }
.mapFoot { text-align: center; color: #a7c79a; font-size: 14px; margin: 10px 0 0; }
.modesTitle { font-size: 18px; font-weight: 900; color: #c9f59a; margin: 18px 6px 10px; }

/* ===== 게임 화면 ===== */
#gTitle { -webkit-flex: 1; flex: 1; min-width: 0; text-align: center; padding: 0 6px; }
#gTitleMain { font-size: 21px; font-weight: 900; color: #e9ffd2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gTitleSub { font-size: 13px; font-weight: 700; color: #a7c79a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gTop .iconBtn + .iconBtn { margin-left: 8px; }
#gStats {
  display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center;
  -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  padding: 0 8px 6px; -webkit-flex: none; flex: none;
}
.stat {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  height: 42px; margin: 2px 4px; padding: 0 12px; border-radius: 21px;
  background: rgba(0,0,0,0.3); font-size: 19px; white-space: nowrap;
}
.stat .sIco { margin-right: 5px; font-size: 20px; }
.stat .sLab { font-size: 13px; font-weight: 800; color: #b9dca2; margin-right: 6px; }
.stat.big { background: #f5e7c4; color: #3a2410; }
.stat.big .sLab { color: #7a5a2a; }
.stat.big b { font-size: 26px; }
.stat.small b { font-size: 17px; }
.stat.warn { background: #ff6b5a; color: #fff; -webkit-animation: warnBlink 0.7s ease-in-out infinite alternate; animation: warnBlink 0.7s ease-in-out infinite alternate; }
.stat.warn .sLab { color: #ffe3dd; }
@-webkit-keyframes warnBlink { from { -webkit-transform: scale(1); } to { -webkit-transform: scale(1.1); } }
@keyframes warnBlink { from { transform: scale(1); } to { transform: scale(1.1); } }
.keyChip { display: inline-block; font-size: 20px; font-weight: 900; margin: 0 2px; text-shadow: 0 1px 0 rgba(0,0,0,0.4); }
.keyChip.no { opacity: 0.25; }

#gPlay {
  -webkit-flex: 1; flex: 1; min-height: 0;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
}
#boardWrap {
  position: relative; -webkit-flex: 1; flex: 1; min-height: 0; min-width: 0;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center; touch-action: none;
}
#boardFrame {
  padding: 6px; border-radius: 16px; background: #8b5a2b;
  box-shadow: 0 6px 0 #5e3a17, 0 10px 24px rgba(0,0,0,0.35);
}
#board { display: block; border-radius: 10px; touch-action: none; }
#toast {
  position: absolute; left: 8px; right: 8px; top: 6px; text-align: center; pointer-events: none;
  -webkit-transition: opacity 0.25s; transition: opacity 0.25s;
}
#toast span {
  display: inline-block; max-width: 100%; padding: 10px 18px; border-radius: 20px; font-size: 19px; font-weight: 900;
  background: #fffbe8; color: #3a2410; box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}
#toast.fade { opacity: 0; }

#controls {
  -webkit-flex: none; flex: none;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  padding: 8px 8px 10px;
}
.sideBtn {
  position: relative; width: 84px; height: 84px; border-radius: 26px; margin: 0 10px;
  background: #f5e7c4; color: #3a2410; box-shadow: 0 5px 0 #b38b55;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  -webkit-transition: -webkit-transform 0.08s; transition: transform 0.08s;
}
.sideBtn .sbIco { font-size: 32px; line-height: 1; }
.sideBtn .sbLab { font-size: 14px; font-weight: 900; margin-top: 4px; }
.sideBtn[disabled] { opacity: 0.35; }
#btnHint { background: #fff3a8; box-shadow: 0 5px 0 #c9a93a; }
#btnHint.busy { opacity: 0.6; }
.badge {
  position: absolute; right: -6px; top: -6px; min-width: 28px; height: 28px; border-radius: 14px; padding: 0 6px;
  background: #4f9a2c; color: #fff; font-size: 15px; font-weight: 900; line-height: 28px; text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.badge.zero { background: #9a8a70; }
#dpad { position: relative; width: 204px; height: 204px; -webkit-flex: none; flex: none; }
.dBtn {
  position: absolute; width: 68px; height: 68px; border-radius: 20px; font-size: 28px; line-height: 1;
  background: #8be05a; color: #1d3d12; box-shadow: 0 5px 0 #4f9a2c, inset 0 2px 0 rgba(255,255,255,0.35);
  -webkit-transition: -webkit-transform 0.06s; transition: transform 0.06s;
}
.dBtn.hit { background: #c9f59a; }
.dBtn[data-dir="up"] { left: 68px; top: 0; }
.dBtn[data-dir="left"] { left: 0; top: 68px; }
.dBtn[data-dir="right"] { left: 136px; top: 68px; }
.dBtn[data-dir="down"] { left: 68px; top: 136px; }
.dCenter { position: absolute; left: 78px; top: 78px; width: 48px; height: 48px; border-radius: 24px; background: rgba(0,0,0,0.22); }

/* 가로 화면: 오른쪽에 조작판 */
@media (min-aspect-ratio: 1/1) {
  #gPlay { -webkit-flex-direction: row; flex-direction: row; }
  #controls {
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: row; flex-direction: row; -webkit-flex-wrap: wrap; flex-wrap: wrap;
    -webkit-align-content: center; align-content: center;
    width: 236px; padding: 6px 12px 10px 4px;
  }
  #controls #dpad { -webkit-order: 1; order: 1; margin: 0 8px; }
  #controls #btnHint { -webkit-order: 2; order: 2; margin: 14px 6px 0; }
  #controls #btnWait { -webkit-order: 3; order: 3; margin: 14px 6px 0; }
}
/* 작은 휴대폰 */
@media (max-height: 640px), (max-width: 370px) {
  #dpad { width: 174px; height: 174px; }
  .dBtn { width: 58px; height: 58px; font-size: 24px; }
  .dBtn[data-dir="up"] { left: 58px; } .dBtn[data-dir="left"] { top: 58px; }
  .dBtn[data-dir="right"] { left: 116px; top: 58px; } .dBtn[data-dir="down"] { left: 58px; top: 116px; }
  .dCenter { left: 65px; top: 65px; width: 44px; height: 44px; }
  .sideBtn { width: 72px; height: 72px; margin: 0 6px; }
  .sideBtn .sbIco { font-size: 26px; }
  .iconBtn { height: 56px; font-size: 24px; }
  #gStats { padding-bottom: 4px; }
  .stat { height: 38px; font-size: 17px; }
  .stat.big b { font-size: 22px; }
}
@media (max-height: 640px) and (min-aspect-ratio: 1/1) {
  #controls { width: 212px; }
  #gTop { padding: 4px 10px; }
}
/* 높이가 아주 낮은 가로 화면(예: 568×320): 조작판을 줄이고 길잡이·기다리기를 오른쪽에 세로로 쌓는다 */
@media (max-height: 420px) and (min-aspect-ratio: 1/1) {
  #controls {
    display: grid; grid-template-columns: 138px 60px; grid-template-rows: 64px 64px;
    -webkit-column-gap: 10px; column-gap: 10px; row-gap: 10px;
    -webkit-align-content: center; align-content: center; -webkit-justify-content: center; justify-content: center;
    width: 228px; padding: 4px 8px;
  }
  #controls #dpad { grid-column: 1; grid-row: 1 / span 2; -webkit-align-self: center; align-self: center; margin: 0; }
  #controls #btnHint { grid-column: 2; grid-row: 1; margin: 0; }
  #controls #btnWait { grid-column: 2; grid-row: 2; margin: 0; }
  #dpad { width: 138px; height: 138px; }
  .dBtn { width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
  .dBtn[data-dir="up"] { left: 46px; top: 0; } .dBtn[data-dir="left"] { left: 0; top: 46px; }
  .dBtn[data-dir="right"] { left: 92px; top: 46px; } .dBtn[data-dir="down"] { left: 46px; top: 92px; }
  .dCenter { left: 51px; top: 51px; width: 36px; height: 36px; border-radius: 18px; }
  .sideBtn { width: 60px; height: 64px; margin: 0; }
  .sideBtn .sbIco { font-size: 22px; }
  .sideBtn .sbLab { font-size: 11px; margin-top: 2px; }
  .iconBtn { height: 46px; font-size: 20px; }
  .stat { height: 32px; font-size: 15px; }
  .stat.big b { font-size: 18px; }
}
/* 좁은 세로 휴대폰: 한 줄에 다 들어가게 */
@media (max-width: 430px) and (max-aspect-ratio: 1/1) {
  .sideBtn { -webkit-flex: none; flex: none; width: 74px; height: 84px; margin: 0 4px; }
  .sideBtn .sbLab { font-size: 13px; }
  #dpad { width: 192px; height: 192px; }
  .dBtn { width: 64px; height: 64px; }
  .dBtn[data-dir="up"] { left: 64px; } .dBtn[data-dir="left"] { top: 64px; }
  .dBtn[data-dir="right"] { left: 128px; top: 64px; } .dBtn[data-dir="down"] { left: 64px; top: 128px; }
  .dCenter { left: 72px; top: 72px; width: 48px; height: 48px; }
  .stat { margin: 2px 2px; padding: 0 9px; }
  .stat .sLab { font-size: 12px; margin-right: 4px; }
  #gStats { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 340px) and (max-aspect-ratio: 1/1) {
  .sideBtn { width: 62px; }
  #dpad { width: 174px; height: 174px; }
  .dBtn { width: 58px; height: 58px; }
  .dBtn[data-dir="up"] { left: 58px; } .dBtn[data-dir="left"] { top: 58px; }
  .dBtn[data-dir="right"] { left: 116px; top: 58px; } .dBtn[data-dir="down"] { left: 58px; top: 116px; }
  .dCenter { left: 65px; top: 65px; width: 44px; height: 44px; }
}
/* 큰 태블릿 */
@media (min-width: 700px) and (min-height: 700px) {
  #dpad { width: 246px; height: 246px; }
  .dBtn { width: 82px; height: 82px; font-size: 34px; }
  .dBtn[data-dir="up"] { left: 82px; } .dBtn[data-dir="left"] { top: 82px; }
  .dBtn[data-dir="right"] { left: 164px; top: 82px; } .dBtn[data-dir="down"] { left: 82px; top: 164px; }
  .dCenter { left: 97px; top: 97px; width: 52px; height: 52px; }
  .sideBtn { width: 96px; height: 96px; }
  #controls { width: auto; }
}
@media (min-width: 700px) and (min-height: 700px) and (min-aspect-ratio: 1/1) {
  #controls { width: 280px; }
}

/* ===== 창(말풍선·결과·상점) ===== */
#modal {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(8,18,12,0.62);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.card {
  position: relative; width: 100%; max-width: 470px; max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fffbe8; color: #3a2410; border-radius: 28px; border: 6px solid #8b5a2b;
  padding: 18px 18px 20px; box-shadow: 0 10px 0 #5e3a17, 0 18px 40px rgba(0,0,0,0.4);
  -webkit-animation: popIn 0.22s ease-out; animation: popIn 0.22s ease-out;
}
.lowfx .card { -webkit-animation: none; animation: none; }
@-webkit-keyframes popIn { from { -webkit-transform: scale(0.85); opacity: 0; } to { -webkit-transform: scale(1); opacity: 1; } }
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.card h2 { margin: 2px 0 10px; font-size: 26px; text-align: center; color: #2f5a1c; }
.card p { margin: 8px 0; font-size: 19px; line-height: 1.45; font-weight: 700; }
.card .center { text-align: center; }
.bubble {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 6px 0 10px;
}
.bubble canvas { -webkit-flex: none; flex: none; margin-right: 12px; }
.bubble .say {
  position: relative; -webkit-flex: 1; flex: 1; background: #e6f8cf; border-radius: 20px; padding: 14px 16px;
  font-size: 21px; font-weight: 900; line-height: 1.4; color: #24451a;
}
.bubble .say:before {
  content: ""; position: absolute; left: -12px; top: 50%; margin-top: -10px;
  border-width: 10px 12px 10px 0; border-style: solid; border-color: transparent #e6f8cf transparent transparent;
}
.devRow {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: #f3ead2; border-radius: 18px; padding: 8px 12px; margin: 8px 0;
}
.devRow canvas { -webkit-flex: none; flex: none; margin-right: 12px; border-radius: 10px; }
.devRow .dTxt { font-size: 17px; font-weight: 800; line-height: 1.4; }
.devRow .newTag { display: inline-block; background: #ff8a3d; color: #fff; border-radius: 8px; font-size: 13px; padding: 2px 7px; margin-right: 6px; vertical-align: 2px; }
.chapTag { text-align: center; font-size: 15px; font-weight: 900; color: #8b5a2b; margin-bottom: 2px; }

.resBig { text-align: center; font-size: 46px; font-weight: 900; color: #2f5a1c; margin: 4px 0; }
.resLine {
  display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between;
  font-size: 19px; font-weight: 800; padding: 8px 6px; border-bottom: 2px dashed #e4d6b0;
}
.resLine b { font-size: 22px; }
.resCoin { text-align: center; font-size: 30px; font-weight: 900; color: #a06a00; margin: 12px 0 2px; }
.resNote { text-align: center; font-size: 16px; font-weight: 800; color: #7a5a2a; }
.errBox { background: #ffe1d9; color: #8a2a10; border-radius: 14px; padding: 10px 12px; font-size: 17px; font-weight: 800; text-align: center; margin-top: 10px; }
.spinner { text-align: center; font-size: 20px; font-weight: 900; color: #4f9a2c; margin: 14px 0; }

/* 상점 */
.card.shop { max-width: 620px; }
.shopHead { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: 8px; }
.shopHead h2 { -webkit-flex: 1; flex: 1; text-align: left; margin: 0; }
.shopHead .coinPill { background: #f3ead2; color: #3a2410; }
.shopMsg { background: #e6f8cf; color: #24451a; border-radius: 14px; padding: 9px 12px; font-size: 16px; font-weight: 800; margin: 6px 0; text-align: center; }
.shopMsg.bad { background: #ffe1d9; color: #8a2a10; }
.items { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -5px; }
.item {
  width: calc(50% - 10px); margin: 5px; background: #f3ead2; border-radius: 20px; padding: 10px 8px 10px;
  text-align: center;
}
.item.wide { width: calc(100% - 10px); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; text-align: left; }
.item.wide .iBody { -webkit-flex: 1; flex: 1; padding-left: 10px; }
.item.on { background: #d5f5a8; }
.item canvas { display: block; margin: 0 auto; }
.item.wide canvas { margin: 0; -webkit-flex: none; flex: none; }
.iName { font-size: 16px; font-weight: 900; margin: 4px 0 2px; }
.iSub { font-size: 13px; font-weight: 700; color: #7a5a2a; }
.item .btn { min-height: 56px; font-size: 18px; margin-top: 8px; border-radius: 16px; }
@media (min-width: 560px) { .item { width: calc(33.33% - 10px); } }
