@font-face { font-family: "Dela"; src: url("../fonts/DelaGothicOne-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --ink: #241a2a; --paper: #f7efdc; --paper2: #efe2c4; --gold: #f6c84a; --gold2: #ffe08a; --shu: #d8342c; --shu2: #ff5d4d;
  --night: #14102a; --night2: #231c46; --line: rgba(255, 230, 170, .28); --sub: #b9b1d6; --good: #7fe0a0;
  --ui: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
  --dela: "Dela", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--night); color: #fff; font-family: var(--ui);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
.off { display: none !important; }

#root { position: fixed; inset: 0; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: #0c0a1c url("../img/bg/wide.jpg") center/cover no-repeat; }
#root::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10, 8, 30, .35), rgba(10, 8, 30, .82)); }
.side { position: absolute; top: 0; bottom: 0; display: none; pointer-events: none; }
#sideL img { position: absolute; bottom: 0; right: 0; height: 88%; filter: drop-shadow(0 0 24px rgba(0, 0, 0, .6)); opacity: .96; }
.ladder { position: absolute; left: 50%; top: 50%; margin: -260px 0 0 -70px; width: 140px; background: rgba(20, 15, 42, .78); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 10px 6px; transform-origin: 50% 50%; }
.ladder b { display: block; text-align: center; font-family: var(--dela); font-weight: 400; color: var(--gold2); margin-bottom: 4px; }
.ladder div { display: flex; align-items: center; gap: 8px; height: 40px; }
.ladder img { width: 38px; height: 38px; }
.ladder span { font-size: 14px; font-weight: 700; flex: 1; }
.ladder em { font-style: normal; font-family: var(--dela); color: var(--gold2); font-size: 15px; }
.ladder p { margin: 6px 0 0; font-size: 12px; color: var(--sub); text-align: center; }
#stage { position: absolute; left: 50%; top: 50%; width: 450px; height: 800px; transform-origin: 0 0; overflow: hidden;
  border-radius: 0; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
#stageBg { position: absolute; inset: 0; background: #1a1438 url("../img/bg/night.jpg") center/cover no-repeat; }
#stageBg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(12, 9, 30, .55), rgba(12, 9, 30, .25) 30%, rgba(12, 9, 30, .55)); }
#cv { position: absolute; left: 0; top: 0; width: 450px; height: 800px; }

/* ---------- 遊んでいる間 ---------- */
#play { position: absolute; inset: 0; pointer-events: none; }
#play > * { pointer-events: auto; }
#hud { position: absolute; left: 8px; right: 8px; top: 8px; height: 58px; display: flex; gap: 8px; align-items: stretch; }
#hud > div { background: rgba(20, 15, 42, .82); border: 1px solid var(--line); border-radius: 12px; }
#hMoon { width: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
#hMoon b { font-family: var(--ui); font-weight: 900; font-size: 18px; color: var(--gold2); letter-spacing: 1px; }
#hMoon span { font-size: 12px; color: var(--sub); margin-top: 1px; }
#hMoon.boss { background: rgba(80, 14, 24, .9); border-color: rgba(255, 90, 80, .6); }
#hMoon.boss span { color: #ffb0a0; font-weight: 700; }
#hScore { flex: 1; padding: 6px 10px 0; }
#scoreRow { display: flex; align-items: baseline; gap: 5px; }
#score { font-family: var(--dela); font-size: 24px; color: #fff; letter-spacing: .5px; transition: transform .12s; display: inline-block; }
#score.bump { transform: scale(1.12); }
#scoreRow span { color: var(--sub); font-size: 14px; }
#target { font-style: normal; font-family: var(--dela); font-size: 15px; color: var(--sub); }
#bar { position: relative; height: 9px; margin-top: 4px; background: rgba(255, 255, 255, .1); border-radius: 6px; overflow: hidden; }
#barFill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #f39a3a, var(--gold)); border-radius: 6px; transition: width .25s; }
#barFill.done { background: linear-gradient(90deg, #4fd28a, #b6f59a); }
#barBig { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(255, 120, 200, .0), rgba(255, 140, 220, .85)); }
#hCoin { width: 74px; display: flex; align-items: center; justify-content: center; gap: 3px; }
#hCoin b { font-family: var(--dela); font-size: 22px; color: var(--gold); }
#hCoin span { font-size: 12px; color: var(--sub); }

#charmBar { position: absolute; left: 8px; right: 8px; top: 72px; height: 52px; display: flex; gap: 6px; justify-content: center; }
.cslot { width: 52px; height: 52px; border-radius: 12px; background: rgba(20, 15, 42, .7); border: 1px dashed rgba(255, 230, 170, .2); position: relative; }
.charm { width: 52px; height: 52px; border-radius: 12px; position: relative; background: radial-gradient(circle at 50% 35%, #3b2f66, #1d1738);
  border: 2px solid #6b5aa8; display: flex; align-items: center; justify-content: center; }
.charm img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); pointer-events: none; }
.charm.r2 { border-color: #5fb0ff; background: radial-gradient(circle at 50% 35%, #2c4f86, #172440); }
.charm.r3 { border-color: var(--gold); background: radial-gradient(circle at 50% 35%, #7a5a1a, #2e1f08); box-shadow: 0 0 10px rgba(246, 200, 74, .5); }
.charm .val { position: absolute; right: -3px; bottom: -4px; font-family: var(--dela); font-size: 11px; color: #fff; background: var(--shu); border-radius: 8px; padding: 1px 5px; }
.charm.sleep { filter: grayscale(1) brightness(.5); }
.charm.sleep::after { content: "Zz"; position: absolute; top: 2px; right: 4px; font-size: 12px; color: #aaf; font-weight: 700; }
.charm.pop { animation: pop .38s ease-out; }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.28) rotate(-6deg); } 100% { transform: scale(1); } }

#dropInfo { position: absolute; left: 12px; top: 130px; width: 64px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(20, 15, 42, .75);
  border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; pointer-events: none !important; }
#dropInfo span { font-size: 11px; color: var(--sub); }
#dropInfo b { font-family: var(--dela); font-size: 22px; line-height: 1.1; }
#dropInfo.low b { color: var(--shu2); animation: tick 1s ease-out infinite; }
#dropInfo.up b { color: var(--sub); }
#timeBar { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--gold2); transform-origin: left; }
#dropInfo.low #timeBar { background: var(--shu2); }
#dropInfo.add { animation: pop .38s ease-out; border-color: var(--good); }
@keyframes tick { 0% { transform: scale(1.25); } 40% { transform: scale(1); } }
#nextBox { position: absolute; right: 12px; top: 130px; width: 64px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(20, 15, 42, .75);
  border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px 6px; pointer-events: none !important; }
#nextBox > span { font-size: 11px; color: var(--sub); }
#nextList { font-family: var(--dela); font-size: 22px; line-height: 1.1; color: var(--gold2); }

/* 囲っている顔ぶれの役と霊力 */
#calc { position: absolute; left: 82px; right: 82px; top: 128px; min-height: 54px; background: rgba(20, 15, 42, .9); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 6px; pointer-events: none !important; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
#calc.result, #calc.done { border-color: var(--gold); box-shadow: 0 0 14px rgba(246, 200, 74, .45); }
#calc.done { animation: pop .38s ease-out; }
#calc .cy { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
#calc .cy span { font-size: 11px; font-weight: 700; background: rgba(255, 230, 170, .14); border-radius: 6px; padding: 1px 5px; white-space: nowrap; }
#calc .cy span small { font-size: 10px; color: var(--sub); margin-left: 2px; }
#calc .cy span em { font-style: normal; color: #ff9ad5; margin-left: 3px; font-family: var(--dela); font-weight: 400; }
#calc .cy .none { background: none; color: var(--sub); }
#calc .ce { display: flex; align-items: baseline; justify-content: center; gap: 3px; white-space: nowrap; }
#calc .ce b { font-family: var(--dela); font-weight: 400; font-size: 17px; }
#calc .ce b.m { color: #ff9ad5; } #calc .ce b.g { color: var(--gold2); } #calc .ce b.ng { color: var(--shu2); font-size: 15px; }
#calc .ce i { font-style: normal; color: var(--sub); font-size: 12px; }
#calc .cw { font-size: 11px; color: var(--sub); margin-right: 6px; } #calc .cw b { font-size: 14px; color: #fff; }
#calc .cw.ng b { color: var(--shu2); } #calc .cw.gyu b { color: var(--good); }

#talk { position: absolute; left: 40px; right: 40px; top: 664px; display: flex; align-items: center; gap: 6px; pointer-events: none !important; animation: talkIn .25s ease-out; }
#talkFace { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #f4e6cc; border: 2px solid var(--gold); flex: none; }
#talk p { margin: 0; background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.4; padding: 6px 10px; border-radius: 12px; font-weight: 700; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
@keyframes talkIn { from { opacity: 0; transform: translateY(-6px); } }

#chainBig { position: absolute; left: 0; right: 0; top: 250px; text-align: center; font-family: var(--dela); font-size: 30px; color: var(--gold2);
  text-shadow: 0 0 10px rgba(255, 150, 60, .9), 0 2px 0 #7a2a10; pointer-events: none !important; }
#chainBig.go { animation: chain .7s ease-out forwards; }
@keyframes chain { 0% { transform: scale(.6); opacity: 0; } 20% { transform: scale(1.15); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

#bottom { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 62px; display: flex; gap: 8px; align-items: stretch; }
#items { display: flex; gap: 6px; }
.item, .islot { width: 52px; border-radius: 12px; position: relative; }
.islot { background: rgba(20, 15, 42, .6); border: 1px dashed rgba(255, 230, 170, .2); }
.item { background: linear-gradient(#fbf3df, #ead9b4); border: 2px solid #b0842e; color: var(--shu); display: flex; align-items: center; justify-content: center;
  font-family: var(--dela); font-size: 24px; box-shadow: 0 3px 0 #7c5a1c; }
.item::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(216, 52, 44, .45); border-radius: 8px; }
.item:active { transform: translateY(2px); box-shadow: 0 1px 0 #7c5a1c; }
/* 連鎖コンボ：数と、つながる残り時間の棒 */
#comboBox { flex: 1; border-radius: 14px; background: rgba(20, 15, 42, .75); border: 1px solid var(--line); position: relative; overflow: hidden; pointer-events: none !important;
  display: flex; align-items: center; justify-content: center; }
#comboIn { display: flex; align-items: baseline; gap: 4px; position: relative; z-index: 1; }
#comboN { font-family: var(--dela); font-weight: 400; font-size: 28px; color: var(--gold2); text-shadow: 0 0 8px rgba(255, 150, 60, .8); }
#comboL { font-size: 12px; font-weight: 700; color: var(--sub); }
#comboBox.on { border-color: var(--gold); background: linear-gradient(rgba(90, 40, 20, .85), rgba(40, 18, 30, .85)); }
#comboBox.on #comboL { color: #ffe3a8; font-size: 15px; }
#comboBox.hot { box-shadow: 0 0 16px rgba(255, 140, 60, .8); }
#comboBox.bump #comboN { animation: pop .3s ease-out; display: inline-block; }
#comboBar { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: linear-gradient(90deg, #ff7a3a, #ffd56a); transform-origin: left; transform: scaleX(0); }
#btnMenu { width: 52px; margin-left: auto; border-radius: 12px; background: rgba(20, 15, 42, .8); border: 1px solid var(--line); position: relative; }
#btnMenu span, #btnMenu span::before, #btnMenu span::after { position: absolute; left: 15px; width: 22px; height: 3px; background: #ddd; border-radius: 2px; }
#btnMenu span { top: 29px; } #btnMenu span::before { content: ""; left: 0; top: -8px; } #btnMenu span::after { content: ""; left: 0; top: 8px; }

#bossBanner { position: absolute; left: 20px; right: 20px; top: 300px; padding: 14px 16px; border-radius: 14px; text-align: center; pointer-events: none !important;
  background: rgba(60, 8, 18, .92); border: 2px solid rgba(255, 100, 80, .7); box-shadow: 0 0 30px rgba(255, 40, 40, .35); animation: banner 3.2s ease forwards; }
#bossBanner b { display: block; font-family: var(--dela); font-size: 24px; color: #ffb0a0; }
#bossBanner span { font-size: 14px; line-height: 1.5; }
@keyframes banner { 0% { opacity: 0; transform: scale(.9); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }

#tip { position: absolute; left: 16px; right: 16px; top: 130px; z-index: 30; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); font-size: 14px; line-height: 1.5; }
#tip b { font-size: 16px; }
#tip .rar { font-size: 11px; padding: 1px 6px; border-radius: 6px; margin-left: 6px; color: #fff; vertical-align: 2px; }
#tip .btns { display: flex; gap: 8px; margin-top: 8px; }

#toast { position: absolute; left: 30px; right: 30px; bottom: 90px; z-index: 40; text-align: center; background: rgba(20, 15, 42, .95); border: 1px solid var(--gold);
  border-radius: 12px; padding: 10px; font-size: 14px; animation: talkIn .2s; pointer-events: none; }
#fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 50; }
#fade.on { opacity: 1; }

/* ---------- 重ねる画面 ---------- */
#screens > .scr { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; animation: scrIn .25s ease-out; }
@keyframes scrIn { from { opacity: 0; } }
.dim { background: rgba(8, 6, 22, .78); }
.panel { margin: auto 16px; background: linear-gradient(var(--paper), var(--paper2)); color: var(--ink); border-radius: 18px; padding: 18px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(176, 132, 46, .5); position: relative; max-height: calc(100% - 40px); overflow-y: auto; }
.panel h2 { margin: 0 0 10px; font-family: var(--dela); font-weight: 400; font-size: 22px; text-align: center; color: var(--shu); }
.panel p { margin: 6px 0; line-height: 1.6; font-size: 14px; }
.btn { display: block; width: 100%; padding: 13px 10px; margin-top: 10px; border-radius: 14px; font-weight: 700; font-size: 17px;
  background: linear-gradient(#e2483c, #b02a22); color: #fff; box-shadow: 0 4px 0 #6e1712; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #6e1712; }
.btn.sub { background: linear-gradient(#4a3f7c, #2f275a); box-shadow: 0 4px 0 #191433; }
.btn.gold { background: linear-gradient(#ffd56a, #f0a23a); color: #3a1c06; box-shadow: 0 4px 0 #a5521a; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid rgba(36, 26, 42, .25); }
.btn:disabled { filter: grayscale(.8) brightness(.8); }
.btn small { display: block; font-size: 11px; font-weight: 400; opacity: .85; margin-top: 2px; }
.row { display: flex; gap: 8px; } .row > .btn { flex: 1; }

/* タイトル */
#sTitle { background: url("../img/bg/title.jpg") center/cover no-repeat; }
#sTitle::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 6, 30, .15), rgba(10, 6, 30, .1) 40%, rgba(10, 6, 30, .85)); }
.logo { position: relative; margin: 70px auto 0; text-align: center; }
.logo .k1 { font-family: var(--dela); font-size: 58px; line-height: 1; color: #fff; letter-spacing: 4px;
  text-shadow: 0 0 18px rgba(255, 120, 60, .8), 0 4px 0 var(--shu), 0 6px 0 #5a0d0a; }
.logo .k2 { font-family: var(--dela); font-size: 44px; line-height: 1.1; color: var(--gold); letter-spacing: 2px; margin-top: 6px;
  text-shadow: 0 0 14px rgba(255, 200, 80, .7), 0 4px 0 #8a4a10; transform: rotate(-3deg); display: inline-block; animation: squish 2.4s ease-in-out infinite; }
@keyframes squish { 0%, 100% { transform: rotate(-3deg) scale(1, 1); } 50% { transform: rotate(-3deg) scale(1.06, .92); } }
.logo .cap { margin-top: 14px; font-size: 14px; color: #fff; text-shadow: 0 2px 4px #000; font-weight: 700; }
.tmenu { position: relative; margin: auto 40px 28px; }
.tmenu .btn { font-size: 18px; }
.tfoot { position: relative; display: flex; justify-content: space-between; margin: 0 16px 10px; font-size: 11px; color: rgba(255, 255, 255, .6); }
.tsmall { display: flex; gap: 8px; } .tsmall .btn { font-size: 14px; padding: 10px 4px; }

/* 壺えらび */
.jars { display: flex; flex-direction: column; gap: 8px; }
.jar { display: flex; gap: 10px; align-items: center; background: #fffaf0; border-radius: 12px; padding: 10px; border: 2px solid transparent; text-align: left; }
.jar.sel { border-color: var(--shu); box-shadow: 0 0 0 3px rgba(216, 52, 44, .2); }
.jar.lock { opacity: .55; }
.jar .ji { width: 46px; height: 46px; flex: none; }
.jar b { font-size: 16px; } .jar div p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; }

/* 晩の入り */
.intro { margin: auto 20px; text-align: center; }
.intro .moon { width: 120px; height: 120px; margin: 0 auto 8px; }
.intro h1 { margin: 0; font-family: var(--dela); font-weight: 400; font-size: 40px; color: var(--gold2); text-shadow: 0 0 18px rgba(255, 200, 80, .6); }
.intro h1 small { font-size: 22px; color: #fff; margin-left: 8px; }
.intro .need { margin-top: 10px; font-size: 16px; } .intro .need b { font-family: var(--dela); font-size: 30px; color: #fff; margin: 0 4px; }
.intro .bossInfo { margin-top: 14px; background: rgba(70, 10, 20, .85); border: 1px solid rgba(255, 110, 90, .6); border-radius: 12px; padding: 10px; font-size: 14px; line-height: 1.5; }
.intro .bossInfo b { color: #ffb0a0; font-size: 16px; }
.intro .ropeInfo { margin-top: 6px; display: flex; gap: 12px; justify-content: center; font-size: 13px; color: #cfc6ef; }
.intro .ropeInfo b { font-family: var(--dela); font-weight: 400; font-size: 18px; color: #fff; margin: 0 2px; }

/* 精算 */
.pay h2 { font-size: 24px; }
.pay .sc { text-align: center; font-size: 14px; margin-bottom: 8px; } .pay .sc b { font-family: var(--dela); font-size: 26px; color: var(--shu); }
.pline { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 1px dashed rgba(36, 26, 42, .2); font-size: 15px; opacity: 0; animation: lineIn .3s forwards; }
.pline b { font-family: var(--dela); color: #8a5a00; }
.psum { display: flex; justify-content: space-between; padding: 10px 4px 2px; font-size: 18px; font-weight: 700; opacity: 0; animation: lineIn .3s forwards; }
.psum b { font-family: var(--dela); font-size: 24px; color: var(--shu); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.stamp { position: absolute; right: 14px; top: 10px; font-family: var(--dela); color: var(--shu); border: 3px solid var(--shu); border-radius: 8px; padding: 2px 8px;
  transform: rotate(12deg); font-size: 18px; opacity: .85; animation: stamp .4s ease-out; }
@keyframes stamp { from { transform: rotate(12deg) scale(2.2); opacity: 0; } }

/* 夜店 */
#sShop { background: url("../img/bg/shop.jpg") center/cover no-repeat; }
#sShop::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 6, 24, .55), rgba(10, 6, 24, .3) 30%, rgba(10, 6, 24, .8)); }
.shopTop { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 0; height: 150px; }
.shopTop img { height: 150px; margin-bottom: -6px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.shopTop .say { flex: 1; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 13px; line-height: 1.5; font-weight: 700; margin-bottom: 16px; position: relative; }
.shopTop .say::before { content: ""; position: absolute; left: -8px; bottom: 14px; border: 8px solid transparent; border-right-color: var(--paper); border-left: 0; }
.shopTop .money { position: absolute; right: 12px; top: 10px; background: rgba(20, 15, 42, .9); border: 1px solid var(--gold); border-radius: 12px; padding: 4px 12px; }
.shopTop .money b { font-family: var(--dela); font-size: 22px; color: var(--gold); }
.shopBody { position: relative; flex: 1; margin: 0 10px; background: linear-gradient(rgba(40, 24, 14, .92), rgba(28, 16, 10, .95)); border: 2px solid #8a5a24; border-radius: 16px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.shopBody h3 { margin: 0; font-size: 13px; color: #f0d49a; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.wares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wares.two { grid-template-columns: repeat(2, 1fr); }
.ware { background: linear-gradient(#fbf3df, #e9d6ad); color: var(--ink); border-radius: 12px; padding: 6px 6px 8px; text-align: center; position: relative; border: 2px solid #b0842e; min-height: 150px;
  display: flex; flex-direction: column; align-items: center; }
.ware.r2 { border-color: #3d8de0; box-shadow: 0 0 0 2px rgba(61, 141, 224, .25); }
.ware.r3 { border-color: #e0a020; box-shadow: 0 0 12px rgba(255, 200, 60, .6); }
.ware img { width: 56px; height: 56px; object-fit: contain; }
.ware .nm { font-weight: 700; font-size: 13px; line-height: 1.2; }
.ware .ds { font-size: 11px; line-height: 1.35; margin-top: 3px; flex: 1; color: #4a3a40; }
.ware .pr { margin-top: 4px; font-family: var(--dela); font-size: 15px; background: var(--shu); color: #fff; border-radius: 10px; padding: 2px 10px; }
.ware .pr.ng { background: #8a7c80; }
.ware.sold { opacity: .35; pointer-events: none; }
.ware.sold::after { content: "売り切れ"; position: absolute; top: 40%; left: 0; right: 0; font-weight: 700; color: var(--shu); font-size: 18px; transform: rotate(-12deg); }
.ware .tag { position: absolute; top: -7px; left: -5px; font-size: 10px; color: #fff; background: #6b5aa8; border-radius: 6px; padding: 1px 6px; }
.ware.r2 .tag { background: #3d8de0; } .ware.r3 .tag { background: #d08a10; }
.ware .fuda { width: 40px; height: 56px; margin: 0 auto; border-radius: 4px; background: linear-gradient(#fffaf0, #f0e2c0); border: 2px solid var(--shu); color: var(--shu);
  font-family: var(--dela); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.ware .scrollIc { position: relative; width: 56px; height: 56px; }
.ware .scrollIc img { position: absolute; inset: 0; }
.ware .scrollIc img + img { width: 34px; height: 34px; left: 11px; top: 8px; }
.mine { display: flex; gap: 6px; justify-content: center; }
.shopFoot { position: relative; display: flex; gap: 8px; margin: 8px 10px 10px; }
.shopFoot .btn { margin: 0; }

/* 結果・終わり */
.result h2 { font-size: 26px; }
.stats { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; margin: 8px 0; }
.stats b { font-family: var(--dela); text-align: right; color: #6a3a10; }
.unlock { background: #fff3c4; border: 2px solid #e0a020; border-radius: 10px; padding: 8px 10px; margin-top: 8px; font-size: 13px; font-weight: 700; }

/* 妖怪帖 */
.book { display: flex; flex-direction: column; gap: 5px; }
.book .bk { background: #fffaf0; border-radius: 10px; padding: 4px 8px; display: flex; gap: 8px; align-items: center; text-align: left; }
.book .bk b { font-size: 14px; margin-right: 6px; } .book .bk span { font-size: 11px; color: #7a6a5a; } .book .bk p { margin: 0; font-size: 12px; line-height: 1.4; }
.book .bk img { width: 46px; height: 46px; flex: none; } .book .bk.no img { filter: brightness(0) opacity(.25); }
.book .bk.no b, .book .bk.no p { color: #aaa; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; } .tabs button { flex: 1; padding: 8px; border-radius: 10px; background: #e8dcc0; font-weight: 700; font-size: 14px; }
.tabs button.on { background: var(--shu); color: #fff; }
.clist { display: flex; flex-direction: column; gap: 6px; }
.citem { display: flex; gap: 8px; align-items: center; background: #fffaf0; border-radius: 10px; padding: 6px; text-align: left; }
.citem img { width: 40px; height: 40px; flex: none; } .citem.no img { filter: brightness(0) opacity(.25); }
.citem b { font-size: 14px; } .citem p { margin: 0; font-size: 12px; line-height: 1.35; }
.citem.no p { color: #999; }

/* 設定 */
.set { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px; border-bottom: 1px dashed rgba(36, 26, 42, .2); font-size: 15px; font-weight: 700; }
.set input[type=range] { width: 150px; accent-color: var(--shu); }
.tgl { width: 56px; height: 30px; border-radius: 15px; background: #b9aea0; position: relative; transition: background .2s; }
.tgl::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.tgl.on { background: var(--shu); } .tgl.on::after { left: 29px; }

/* 遊び方 */
.help h3 { margin: 12px 0 4px; font-size: 15px; color: var(--shu); }
.help ul { margin: 4px 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.help .ex { display: flex; align-items: center; gap: 4px; justify-content: center; margin: 6px 0; font-weight: 700; }
.help .ex img { width: 36px; height: 36px; }
.help img.hi { width: 22px; height: 22px; vertical-align: -6px; }

/* 教え */
#coach { position: absolute; z-index: 25; left: 24px; right: 24px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 10px 12px 10px 64px; font-size: 14px; line-height: 1.5;
  font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); min-height: 64px; }
#coach img { position: absolute; left: 8px; top: 8px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #f4e6cc; border: 2px solid var(--gold); }
#coach .nx { display: block; text-align: right; font-size: 12px; color: var(--shu); margin-top: 2px; }
.hand { position: absolute; z-index: 26; width: 44px; height: 44px; pointer-events: none; font-size: 36px; animation: swipe 1.8s ease-in-out infinite; }
@keyframes swipe { 0% { transform: translateX(-60px); } 50% { transform: translateX(60px); } 100% { transform: translateX(-60px); } }
.winPic { display: block; height: 170px; margin: -6px auto 4px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
