* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0d0b14; color: #f3ecdf; overscroll-behavior: none;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
#app { position: relative; margin: 0 auto; width: 100%; max-width: 540px; height: 100vh; height: 100dvh; background: #1b1626; overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.scr[hidden] { display: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }

/* タイトル */
#title { background: radial-gradient(circle at 50% 30%, #4a3466, #1b1626 70%); align-items: center; justify-content: center; }
.tbox { width: 82%; max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.tlogo { font-weight: 900; line-height: 1.05; text-shadow: 0 3px 0 #000; }
.tlogo span { display: block; font-size: 34px; color: #ffd98a; letter-spacing: .1em; }
.tlogo b { display: block; font-size: 62px; color: #fff; letter-spacing: .2em; margin-left: .2em; }
.tsub { margin: 0; color: #cdbfe0; font-size: 14px; }
.tpic { font-size: 96px; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.tpic img { width: 100%; max-height: 44vh; object-fit: cover; border-radius: 16px; box-shadow: 0 6px 18px #0008; }
.scene { display: block; width: 100%; max-height: 30vh; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.big { padding: 15px; border-radius: 14px; font-size: 19px; font-weight: 800; background: linear-gradient(#ffcf5c, #f09b2b); color: #3a2204; box-shadow: 0 4px 0 #9a5a10; }
.big.sub { background: linear-gradient(#6f5a93, #4c3b6c); color: #fff; box-shadow: 0 4px 0 #2c2142; }
.big:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.ver { font-size: 11px; color: #8d80a3; margin: 4px 0 0; }

/* 町 */
#town { background: linear-gradient(#2a2140, #1b1626); }
.thead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; }
.sname { font-size: 20px; font-weight: 800; color: #ffd98a; }
.ssub { font-size: 12px; color: #bfb2d4; margin-top: 2px; }
.gold { font-size: 17px; background: #0006; padding: 7px 12px; border-radius: 20px; white-space: nowrap; }
.gold b { color: #ffe27a; }
.shoppic { flex: 1 1 0; min-height: 110px; margin: 0 14px; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#7fb7e6 0 55%, #7fae62 55% 100%); font-size: 110px; box-shadow: inset 0 0 0 3px #0003; }
.shoppic img { width: 100%; height: 100%; object-fit: cover; }
.repbar { display: flex; align-items: center; gap: 8px; margin: 8px 16px 4px; font-size: 12px; color: #cdbfe0; }
.repbar i { flex: 1; height: 8px; background: #0007; border-radius: 5px; overflow: hidden; }
.repbar u { display: block; height: 100%; background: linear-gradient(90deg, #ff9d5c, #ffe27a); }
.tmenu { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 8px 14px 16px; }
.tmenu button { padding: 13px 8px; border-radius: 13px; background: #3b2f57; font-size: 16px; font-weight: 700; box-shadow: 0 3px 0 #1d1630; text-align: center; }
.tmenu button small { display: block; font-size: 11px; font-weight: 400; color: #c5b8dc; margin-top: 3px; }
.tmenu button.main { grid-column: 1 / 3; background: linear-gradient(#ffcf5c, #f09b2b); color: #3a2204; font-size: 20px; box-shadow: 0 4px 0 #9a5a10; }
.tmenu button.main small { color: #6b4410; }
.tmenu button:disabled { opacity: .45; }
.tmenu button:active { transform: translateY(2px); }

/* 迷宮 */
#dun { background: #0b0a12; }
#hud { display: flex; align-items: center; gap: 9px; padding: 6px 10px; font-size: 13px; background: #1b1626; white-space: nowrap; }
#hud .hp { flex: 1; display: flex; align-items: center; gap: 5px; min-width: 0; }
#hud .hp i { flex: 1; height: 9px; background: #000a; border-radius: 5px; overflow: hidden; min-width: 30px; }
#hud .hp u { display: block; height: 100%; background: #5fd26a; }
#hud .hp u.low { background: #ff5d5d; }
#hFloor { font-weight: 800; color: #ffd98a; }
#hFloor.ret { color: #ffe36b; background: #5a3d0a; padding: 1px 6px; border-radius: 6px; }
#cvwrap { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#log { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 9px; font-size: 13px; line-height: 1.45; pointer-events: none;
  background: linear-gradient(transparent, #000b 35%); text-shadow: 0 1px 2px #000; }
#log div:not(:last-child) { opacity: .65; }
#pad { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px 12px; background: #1b1626; }
.dpad { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 54px); gap: 5px; }
.dpad button { border-radius: 11px; background: #3b2f57; font-size: 21px; box-shadow: 0 3px 0 #1d1630; }
.dpad button.diag { background: #2f2547; font-size: 17px; }
.dpad button.mid { background: #55456f; font-size: 11px; }
.dpad button:active, .acts button:active { transform: translateY(2px); filter: brightness(1.3); }
.acts { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 205px; }
.acts button { height: 52px; border-radius: 11px; background: #3b2f57; font-size: 19px; box-shadow: 0 3px 0 #1d1630; line-height: 1.05; padding: 0 2px; }
.acts button small { display: block; font-size: 10px; margin-top: 2px; white-space: nowrap; }
.acts .dash { height: 58px; }
.acts .dash.on { background: #2f8a5a; box-shadow: 0 3px 0 #14502f; }
.acts .atk { grid-column: 1 / 3; height: 58px; background: linear-gradient(#ff8a66, #d94a3a); font-size: 23px; box-shadow: 0 3px 0 #7a1d14; }
.acts button.on { background: #f0a92b; color: #2b1a02; }
.acts button.dim { opacity: .55; }
/* 称号 */
.ach { padding: 5px 2px; border-bottom: 1px solid #ffffff14; }
.ach small { display: block; color: #b8a9d6; margin-left: 1.6em; }
.ach.lock { opacity: .55; }
/* 強さの窓 */
.stt table { width: 100%; border-collapse: collapse; }
.stt td { padding: 4px 2px; border-bottom: 1px solid #ffffff14; vertical-align: top; }
.stt td:first-child { color: #c9b8e8; width: 4.5em; white-space: nowrap; }
.stt small { color: #b8a9d6; margin-left: 4px; }

/* 窓 */
#modal { position: absolute; inset: 0; background: #000a; display: flex; align-items: center; justify-content: center; z-index: 500; /* 家の家具（z-index は置き場所で最大100ほど）より手前に */ padding: 14px; }
#modal[hidden] { display: none; }
#mbox { width: 100%; max-width: 440px; max-height: 88%; display: flex; flex-direction: column; background: #2a2140; border: 2px solid #6f5a93; border-radius: 16px; overflow: hidden; }
.mh { padding: 12px 14px 8px; font-size: 17px; font-weight: 800; color: #ffd98a; }
.mb { padding: 0 14px 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; font-size: 14px; line-height: 1.6; }
.mf { display: flex; gap: 8px; padding: 10px 14px 12px; flex-wrap: wrap; }
.mf button { flex: 1 1 40%; padding: 12px 6px; border-radius: 11px; background: #55456f; font-weight: 700; font-size: 15px; }
.mf button.ok { background: linear-gradient(#ffcf5c, #f09b2b); color: #3a2204; }
.mf button.ng { background: #7a2d3a; }
.mf button:disabled { opacity: .4; }
.row { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid #ffffff14; }
.row .ic { width: 26px; text-align: center; font-size: 19px; flex: none; }
.row .nm { flex: 1; min-width: 0; }
.row .nm small { display: block; color: #b8abd0; font-size: 11.5px; line-height: 1.35; }
.row .eq { color: #7dffb0; font-size: 11px; font-weight: 800; margin-right: 3px; }
.row button { flex: none; padding: 8px 11px; border-radius: 9px; background: #55456f; font-size: 13px; font-weight: 700; }
.row button.ok { background: #f0a92b; color: #2b1a02; }
.row button:disabled { opacity: .4; }
.row.tap:active { background: #ffffff14; }
.sec { margin: 10px 0 2px; font-size: 12.5px; color: #ffd98a; font-weight: 800; border-left: 3px solid #f0a92b; padding-left: 7px; }
.note { color: #b8abd0; font-size: 12.5px; }
.sum { font-size: 16px; font-weight: 800; color: #ffe27a; margin: 8px 0 2px; }
.lock { opacity: .5; }

@media (min-height: 760px) { .dpad { grid-template-columns: repeat(3, 62px); grid-template-rows: repeat(3, 58px); } }

/* ── 0.2: 絵の行アイコン・注文帳・ガマ吉・図鑑・動き ── */
.row .ic.pic { width: 34px; height: 34px; }
.row .ic.pic img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 2px #0006); }
.tmenu button.wide { grid-column: 1 / 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; text-align: left; background: #33284d; }
.tmenu button.wide small { margin: 0; flex: 1; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmenu button.wide.ready { background: linear-gradient(#4f8f5f, #2f6b45); box-shadow: 0 3px 0 #17402a; animation: pulse 1.4s infinite; }
.tmenu button.wide.ready small { color: #eaffea; font-weight: 700; }
@keyframes pulse { 50% { filter: brightness(1.25); } }
.shoppic { position: relative; }
.gama { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; font-size: 13px; }
.gama img { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 3px #000a); animation: bob 2.2s ease-in-out infinite; }
.gama span { font-size: 34px; }
.gama p { margin: 0 0 6px; padding: 7px 11px; background: #fffaf0f2; color: #3a2a14; border-radius: 12px 12px 12px 3px; line-height: 1.35; box-shadow: 0 2px 6px #0007; font-weight: 700; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.dex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 6px; }
.dex .card { background: #1f1830; border-radius: 10px; padding: 7px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dex .card img { width: 62px; height: 62px; object-fit: contain; }
.dex .card .em { font-size: 40px; line-height: 62px; }
.dex .card b { font-size: 11.5px; line-height: 1.2; }
.dex .card small { font-size: 10px; color: #b8abd0; }
.dex .card.unk img, .dex .card.unk .em { filter: brightness(0) opacity(.55); }
.scene.op { max-height: 34vh; object-fit: contain; background: #1f1830; }
#log .lb { color: #ff9d8a; } #log .lgd { color: #ffe27a; } #log .lg { color: #a8f0c0; }
#hFood.low { color: #ff7d6b; font-weight: 800; animation: pulse 1s infinite; }
#modal:not([hidden]) #mbox { animation: pop .16s ease-out; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.tpic img { animation: bob 4s ease-in-out infinite; }
.tlogo b { background: linear-gradient(#fff, #ffe9b8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #000); text-shadow: none; }
.tmenu button, .mf button, .row button, .big { transition: transform .06s, filter .06s; }
.mf button:active, .row button:active { transform: translateY(2px); filter: brightness(1.2); }

/* ── 0.3: コハクの家 ── */
.hright { display: flex; align-items: center; gap: 7px; }
.gear { width: 38px; height: 38px; border-radius: 50%; background: #3b2f57; font-size: 19px; box-shadow: 0 2px 0 #1d1630; }
#home { background: linear-gradient(#2a2140, #1b1626); }
#room { position: relative; flex: none; align-self: center; width: min(calc(100% - 28px), 46vh); aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 3px #0004, 0 6px 16px #0006;
  background:
    linear-gradient(#0000 46%, #4a2f1c 46% 48.5%, #0000 48.5%),
    repeating-linear-gradient(90deg, #0000 0 15.5%, #0002 15.5% 16%) 0 100% / 100% 52% no-repeat,
    linear-gradient(#f3dfb8 0 34%, #e2c592 34% 46%, #b9824d 48.5%, #8f5d34 100%); }
#room.art { background-size: cover; background-position: center; }
#room .win { position: absolute; left: 41%; top: 4%; width: 19%; height: 13%; border: 4px solid #6b4526; border-radius: 6px; background: linear-gradient(#9fd4ff, #e8f6ff); box-shadow: inset 0 0 0 1px #fff8; }
#room .win::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #6b4526; }
.fur { position: absolute; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; }
.fur img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px #0007); }
.fur .em { font-size: min(13vw, 62px); line-height: 1; filter: drop-shadow(0 3px 3px #0007); }
.fur.own i { position: absolute; right: 2px; top: 0; font-style: normal; font-size: 11px; color: #ffe27a; text-shadow: 0 1px 2px #000; }
.fur.empty { border: 2px dashed #5a3a1fa8; border-radius: 12px; background: #fff3; color: #5a3a1f; aspect-ratio: auto; padding: 6px 2px; min-height: 13%; }
.fur.empty b { font-size: 18px; line-height: 1; } .fur.empty small { font-size: 9.5px; font-weight: 700; text-align: center; line-height: 1.15; }
.fur.shelf { aspect-ratio: auto; height: 9%; border-bottom: 5px solid #6b4526; justify-content: flex-end; }
.fur.shelf .tro { display: flex; justify-content: center; align-items: flex-end; height: 100%; gap: 2px; }
.fur.shelf .tro img, .fur.shelf .tro .em { width: auto; height: 100%; font-size: 20px; }
.fur.shelf small { font-size: 9.5px; color: #5a3a1f; font-weight: 700; }
.fur.who { pointer-events: auto; z-index: 2; } .fur.who.g { animation: bob 2.2s ease-in-out infinite; }
.fur:active { filter: brightness(1.2); }
#homeSay { margin: 8px 16px 2px; padding: 7px 12px; background: #fffaf0f2; color: #3a2a14; border-radius: 12px; font-size: 13px; font-weight: 700; line-height: 1.35; min-height: 2.1em; }
#homeList { flex: 1 1 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px; font-size: 14px; }
.hfoot { padding: 8px 14px 14px; display: flex; } .hfoot .big { flex: 1; padding: 12px; font-size: 16px; }

#room.art .fur.empty { background: #fffaf0c9; border-color: #5a3a1f; }
.fur.shelf.pic { height: auto; aspect-ratio: 2.2 / 1; border-bottom: 0; }
.fur.shelf.pic > img { position: absolute; inset: 0; }
.fur.shelf.pic .tro { position: absolute; left: 12%; right: 12%; bottom: 76%; height: 62%; }
.fur.deco { pointer-events: none; }

/* 0.4: 家の中を歩く */
.fur.who { transition: none; will-change: left, top; }
.fur.who img { transform-origin: 50% 50%; }
.hfoot { align-items: center; gap: 10px; }
.hcol { flex: 1; display: flex; flex-direction: column; gap: 6px; } .hcol .big { padding: 14px 9px; font-size: 16px; }
#hpad { display: grid; grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 34px); gap: 3px; flex: none; }
#hpad button { border-radius: 9px; background: #4c3b6c; color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 3px 0 #2c2142; touch-action: none; user-select: none; -webkit-user-select: none; }
#hpad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #2c2142; }

/* 歩ける町（2026-11-29） */
#walk { background: linear-gradient(#2a2140, #1b1626); }
#twrap { position: relative; flex: 1 1 0; min-height: 0; margin: 0 10px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px #0006; background: #5e9a45; }
#tcv { display: block; touch-action: none; }
#walkSay { margin: 8px 16px 2px; padding: 7px 12px; background: #fffaf0f2; color: #3a2a14; border-radius: 12px; font-size: 13px; font-weight: 700; line-height: 1.35; min-height: 2.1em; }
#wpad { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 52px); gap: 4px; flex: none; } /* 2026-12-03 町の移動キーを大きく（38×34→58×52） */
#wpad button { border-radius: 9px; background: #4c3b6c; color: #fff; font-weight: 800; font-size: 24px; box-shadow: 0 3px 0 #2c2142; touch-action: none; user-select: none; -webkit-user-select: none; }
#wpad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #2c2142; }
.tmenu button.walkbtn { background: linear-gradient(#7bc46a, #4f9a45); color: #10300a; box-shadow: 0 4px 0 #2f6a28; }
.npcface { display: flex; align-items: center; gap: 12px; }
.npcface img { width: 84px; height: 96px; object-fit: contain; flex: none; }
.npcface span { font-size: 56px; flex: none; width: 72px; text-align: center; }
.npcface p { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 700; }
.gift { background: #fff3c4; color: #5a3a04; border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.mcards { display: flex; gap: 10px; }
.mcard { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: #3a2f52; box-shadow: 0 3px 0 #1f1830; }
.mcard img { width: 64px; height: 64px; object-fit: contain; } .mcard span { font-size: 44px; }
.mcard b { font-size: 14px; } .mcard small { color: #b8abd0; font-size: 11.5px; }
.mcard:active { transform: translateY(2px); filter: brightness(1.2); }
.calcopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .calcopts .big { padding: 12px 6px; font-size: 16px; }
.tbar { height: 8px; border-radius: 4px; background: #ffffff22; overflow: hidden; } .tbar u { display: block; height: 100%; background: linear-gradient(90deg, #ffcf5c, #f05b2b); }
.tgt { position: relative; height: 54px; margin: 14px 4px; border-radius: 27px; background: linear-gradient(90deg, #3a2f52 0 25%, #5a4a7a 25% 38%, #c9a24a 38% 46%, #e04a3a 46% 54%, #c9a24a 54% 62%, #5a4a7a 62% 75%, #3a2f52 75%); box-shadow: inset 0 0 0 3px #0006; }
.tgt i { position: absolute; top: -8px; bottom: -8px; width: 6px; margin-left: -3px; background: #fff; border-radius: 3px; box-shadow: 0 0 8px #fff; }
.tgt i.stop { background: #ffe14d; box-shadow: 0 0 14px #ffe14d; }
.shotmsg { text-align: center; font-weight: 800; font-size: 17px; color: #ffe27a; }
.big.slots { padding: 10px; font-size: 15px; background: #3a2f52; box-shadow: 0 3px 0 #1f1830; }
.row.slot .nm small { line-height: 1.45; }

/* 装備中の表示と装備のまとめ（2026-11-29） */
.eqb { display: inline-block; background: #f0a92b; color: #2b1a02; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-right: 5px; vertical-align: 1px; }
.row.equipped { background: rgba(240,169,43,.14); box-shadow: inset 4px 0 0 #f0a92b; }
.eqsum { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 8px; }
.eqs { background: #3b2f57; border: 1px solid #f0a92b88; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; color: #ffe3a8; }
.eqs.none { border-color: #ffffff22; color: #9d93b8; font-weight: 400; }

/* 町のダッシュ切りかえと、タイトルの「町へ行く」（2026-11-30） */
#wpad .wdash { background: #3a6b4f; font-size: 21px; }
#wpad .wdash.on { background: #2f9a5f; box-shadow: 0 3px 0 #14502f, 0 0 0 2px #8fffc0 inset; }
.big.sub.town { background: #3a6b4f; }

/* タイトル: ボタンが4つになっても、ロゴから最後のボタンまで1画面に収める（2026-11-30） */
#title { overflow-y: auto; }
#title .tbox { gap: 9px; padding: 10px 0; }
#title .tpic img { max-height: min(36vh, 330px); }
#title .big.sub { padding-top: 11px; padding-bottom: 11px; font-size: 16px; }
@media (max-height: 760px) { .tlogo span { font-size: 28px; } .tlogo b { font-size: 50px; } #title .tpic img { max-height: 30vh; } }

/* 開店のようす（2026-11-30）: お客が右から入ってきて、買って、左へ出ていく */
.salecust { position: absolute; bottom: 8%; right: -30%; width: 26%; text-align: center; transition: right .6s ease-out, opacity .5s; z-index: 3; pointer-events: none; }
.salecust img { width: 100%; filter: drop-shadow(0 3px 4px #0008); }
.salecust span { font-size: 54px; }
.salecust b { position: absolute; left: 50%; top: -14%; transform: translateX(-50%); background: #fff8e6; color: #3a2204; font-size: 11px; padding: 2px 7px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.salecust i { position: absolute; left: 50%; top: -34%; transform: translateX(-50%); color: #ffd24d; font-style: normal; font-weight: 900; font-size: 18px; text-shadow: 0 2px 0 #000; opacity: 0; transition: top .7s, opacity .3s; white-space: nowrap; }
.salecust.in { right: 38%; }
.salecust.buy b { opacity: 1; }
.salecust.buy i { opacity: 1; top: -58%; }
.salecust.out { right: 110%; opacity: 0; transition: right .7s ease-in, opacity .7s; }

/* 整理整頓（2026-11-30） */
.itabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.itabs button { padding: 3px 8px; border-radius: 12px; background: #3b3055; color: #d9cff0; font-size: 11.5px; font-weight: 700; }
.itabs button.on { background: #f0a92b; color: #2b1a02; }
.itool { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.itool button { padding: 4px 9px; border-radius: 8px; background: #55456f; font-size: 11.5px; font-weight: 700; }
.itool button.ok, .itool button.on { background: #f0a92b; color: #2b1a02; }
.itool button:disabled { opacity: .4; }
.igh { margin: 8px 0 0; font-size: 12px; font-weight: 800; color: #c9b6ff; border-bottom: 1px solid #4a3d66; padding-bottom: 2px; }
.row button.star { background: transparent; color: #8f82aa; font-size: 18px; padding: 4px 6px; }
.row button.star.on { color: #ffd24d; }
.lockb { color: #ffd24d; margin-right: 3px; }
/* 目玉の台（2026-12-01） */
.topb { display: inline-block; background: #e2486a; color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-right: 5px; vertical-align: 1px; }
.row button.topon { background: #e2486a; color: #fff; border-color: #e2486a; }
.row.tight button { padding-left: 9px; padding-right: 9px; font-size: 14px; }
.nw { white-space: nowrap; }
.bad { color: #ff8f8f; }
/* ───────── 夜店のミニゲーム（2026-12-01） ───────── */
#mg { --ac: #ff5a6e; position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; overflow: hidden; color: #fff4dc;
  background: radial-gradient(120% 70% at 50% 0%, #3a1838 0%, #120a22 55%, #07040f 100%);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
#mg[data-g="g_calc"] { background: radial-gradient(120% 70% at 50% 0%, #182c52 0%, #0d0f26 55%, #05050f 100%); }
#mg[data-g="g_shoot"] { background: radial-gradient(120% 70% at 50% 0%, #163a2c 0%, #0c1418 55%, #04070a 100%); }
#mg[hidden] { display: none; }
#mg.shake { animation: mgShake .32s; }
@keyframes mgShake { 20% { transform: translate(-7px, 2px); } 40% { transform: translate(6px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }
.mg-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at 50% 100%, #ffffff10, transparent); }
.mg-glow.flash::after { content: ""; position: absolute; inset: 0; background: var(--flash); animation: mgFlash .35s ease-out forwards; }
@keyframes mgFlash { from { opacity: .35; } to { opacity: 0; } }
.mg-lan { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 56px); height: 30px; display: flex; justify-content: space-around; pointer-events: none; opacity: .9; }
.mg-lan::before { content: ""; position: absolute; left: -5%; right: -5%; top: 2px; height: 14px; border-bottom: 1.5px solid #ffffff30; border-radius: 0 0 50% 50%; }
.mg-lan i { position: relative; top: 8px; width: 14px; height: 19px; border-radius: 7px; background: radial-gradient(circle at 50% 40%, #fff3c4, var(--ac) 70%); box-shadow: 0 0 14px var(--ac), 0 0 4px #fff8; animation: mgLan 2.4s ease-in-out infinite; }
.mg-lan i:nth-child(2n) { animation-delay: -1.2s; background: radial-gradient(circle at 50% 40%, #fff3c4, #ffb040 70%); box-shadow: 0 0 14px #ffb040; }
@keyframes mgLan { 50% { transform: rotate(6deg) translateY(1px); filter: brightness(1.25); } }
.mg-top { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px 6px; z-index: 2; }
.mg-x { width: 38px; height: 38px; border-radius: 50%; background: #ffffff14; color: #fff; font-size: 17px; border: 1px solid #ffffff26; flex: none; padding: 0; }
.mg-ttl { flex: 1; min-width: 0; line-height: 1.15; }
.mg-ttl small { display: block; font-size: 11px; letter-spacing: .2em; color: var(--ac); }
.mg-ttl b { font-size: 19px; font-weight: 900; letter-spacing: .04em; text-shadow: 0 0 12px var(--ac); }
.mg-sc { text-align: right; line-height: 1; }
.mg-sc small { display: block; font-size: 10px; letter-spacing: .25em; color: #ffd98acc; }
.mg-sc b { font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; background: linear-gradient(#fff6c8, #ffc63d 55%, #ff8a1e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #0008); display: inline-block; }
.mg-sc.bump b { animation: mgBump .22s ease-out; }
@keyframes mgBump { 40% { transform: scale(1.22); } }
.mg-hud { position: relative; z-index: 2; padding: 30px 14px 4px; display: none; }
#mg.playing .mg-hud { display: block; }
.mg-time { position: relative; height: 14px; border-radius: 7px; background: #ffffff14; border: 1px solid #ffffff22; overflow: hidden; }
.mg-time u { display: block; height: 100%; background: linear-gradient(90deg, var(--ac), #ffd24d); box-shadow: 0 0 12px var(--ac); }
.mg-time span { position: absolute; right: 8px; top: -1px; font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
.mg-time.low u { background: linear-gradient(90deg, #ff3b3b, #ff9c3d); animation: mgLow .5s ease-in-out infinite; }
@keyframes mgLow { 50% { filter: brightness(1.6); } }
.mg-combo { height: 30px; margin-top: 6px; text-align: center; font-weight: 900; font-size: 14px; letter-spacing: .12em; opacity: 0; }
.mg-combo.on { opacity: 1; animation: mgCombo .25s ease-out; }
.mg-combo b { font-size: 24px; color: #fff; text-shadow: 0 0 10px var(--ac); }
.mg-combo em { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--ac); color: #1a0f2e; }
.mg-combo.hot b { color: #ffcf3a; text-shadow: 0 0 12px #ff7a1a; } .mg-combo.hot em { background: #ff7a1a; color: #fff; }
.mg-combo.max { animation: mgCombo .25s ease-out, mgFire .6s ease-in-out infinite alternate; }
@keyframes mgCombo { from { transform: scale(1.4); } }
@keyframes mgFire { to { filter: drop-shadow(0 0 8px #ff5a1a) brightness(1.2); } }
.mg-stage { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 14px 14px; }
.mg-fx { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.mg-pop { position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: 18px; white-space: nowrap; text-shadow: 0 2px 0 #000a, 0 0 10px currentColor; animation: mgPop .9s ease-out forwards; }
.mg-pop.big { font-size: 24px; }
@keyframes mgPop { 0% { transform: translate(-50%, -30%) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -60%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -160%) scale(1); opacity: 0; } }
.mg-spark { position: absolute; width: 7px; height: 7px; margin: -3px; border-radius: 50%; animation: mgSpark .65s ease-out forwards; }
@keyframes mgSpark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
/* 入口・結果のカード */
.mg-card { width: 100%; max-width: 400px; text-align: center; padding: 18px 16px; border-radius: 22px; background: linear-gradient(#2a1a44ee, #170e2bee); border: 1.5px solid var(--ac); box-shadow: 0 0 40px #0008, 0 0 24px var(--ac), inset 0 1px 0 #ffffff22; animation: pop .25s ease-out; max-height: 100%; overflow-y: auto; }
.mg-icon { font-size: 50px; line-height: 1; filter: drop-shadow(0 0 16px var(--ac)); animation: bob 3s ease-in-out infinite; }
.mg-card h2 { margin: 6px 0 8px; font-size: 26px; font-weight: 900; letter-spacing: .08em; color: #fff; text-shadow: 0 0 18px var(--ac), 0 3px 0 #0008; }
.mg-rule { font-size: 13.5px; line-height: 1.7; color: #e8dcf5; margin: 0 0 12px; } .mg-rule b { color: #ffd98a; }
.mg-mds { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.mg-md { flex: 1; max-width: 104px; padding: 7px 4px 6px; border-radius: 12px; background: #ffffff0d; border: 1.5px dashed #ffffff30; line-height: 1.25; opacity: .75; }
.mg-md b { display: block; font-size: 13px; color: var(--mc); } .mg-md small { font-size: 12px; font-variant-numeric: tabular-nums; color: #cfc3e3; } .mg-md em { display: block; font-style: normal; font-size: 10.5px; color: #bfb2d6; }
.mg-md.got { opacity: 1; border: 1.5px solid var(--mc); background: #ffffff14; box-shadow: 0 0 12px var(--mc); }
.mg-md.got em { color: var(--mc); }
.mg-md.newg { animation: mgNewMedal .7s ease-out .9s both; }
@keyframes mgNewMedal { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.18) rotate(4deg); opacity: 1; } }
.mg-prize { font-size: 13px; color: #ffe7a8; margin: 8px 0; } .mg-prize.dim { color: #a99bc2; font-size: 12px; }
.mg-stat { font-size: 13px; color: #cfc3e3; margin-bottom: 14px; }
.mg-rk, .mg-stamp { display: inline-block; font-weight: 900; font-style: italic; }
.mg-rk { padding: 0 7px; border-radius: 6px; background: #ffffff1a; }
.r-SS { color: #ff7ae0; } .r-S { color: #ffd24d; } .r-A { color: #ff9c3d; } .r-B { color: #7cc8ff; } .r-C { color: #9fe3a0; } .r-D { color: #b0a3c6; }
.mg-go { width: 100%; padding: 15px; border-radius: 16px; font-size: 19px; font-weight: 900; letter-spacing: .15em; color: #2a1200; background: linear-gradient(#ffe98a, #ffb52e 60%, #ff8a1e); box-shadow: 0 4px 0 #a2500e, 0 0 24px #ffb02e66; animation: mgGo 1.6s ease-in-out infinite; }
.mg-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #a2500e; }
@keyframes mgGo { 50% { filter: brightness(1.12); } }
.mg-btns { display: flex; gap: 8px; margin-top: 12px; } .mg-btns .mg-go { flex: 2; width: auto; } .mg-quit { flex: 1; border-radius: 16px; background: #ffffff14; color: #e8dcf5; font-weight: 800; border: 1px solid #ffffff26; }
.mg-count { font-size: 92px; font-weight: 900; color: #fff; text-shadow: 0 0 30px var(--ac), 0 6px 0 #0008; white-space: nowrap; }
.mg-count.on { animation: mgCount .5s ease-out; }
@keyframes mgCount { from { transform: scale(2.2); opacity: 0; } 40% { transform: scale(.9); opacity: 1; } }
.mg-end { font-size: 15px; font-weight: 900; letter-spacing: .3em; color: var(--ac); }
.mg-big { font-size: 56px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; background: linear-gradient(#fff6c8, #ffc63d 55%, #ff8a1e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #0009); }
.mg-card.res { position: relative; }
.mg-stamp { position: absolute; right: 16px; top: 34px; width: 66px; height: 66px; line-height: 58px; border-radius: 50%; border: 4px solid currentColor; font-size: 30px; transform: rotate(-14deg) scale(0); opacity: 0; text-shadow: 0 0 10px currentColor; box-shadow: 0 0 16px currentColor inset; }
.mg-card.res.done .mg-stamp { animation: mgStamp .35s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes mgStamp { to { transform: rotate(-14deg) scale(1); opacity: 1; } }
.mg-new { display: inline-block; margin: 2px 0 6px; padding: 3px 14px; border-radius: 14px; font-weight: 900; color: #2a1200; background: linear-gradient(90deg, #ffe98a, #ff9c3d, #ffe98a); background-size: 200%; animation: mgShine 1.2s linear infinite; }
@keyframes mgShine { to { background-position: -200% 0; } }
.mg-sub { font-size: 13px; color: #cfc3e3; margin: 2px 0 6px; }
.mg-line { font-size: 12.5px; color: #cfc3e3; } .mg-line b { color: #fff; }
.mg-next { font-size: 13px; color: #e8dcf5; margin: 4px 0; } .mg-next b { color: #ffd24d; font-size: 15px; }
.mg-gift { margin: 6px 0; padding: 8px; border-radius: 12px; font-size: 13px; background: #ffd24d22; border: 1px solid #ffd24d66; color: #fff1c2; animation: pop .3s ease-out; }
/* 目利き */
.mg-ask { font-size: 18px; font-weight: 800; margin-bottom: 14px; } .mg-ask b { color: var(--ac); font-size: 24px; text-shadow: 0 0 12px var(--ac); }
.eye-grid { width: 100%; max-width: 420px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.eye-grid.n3 { grid-template-columns: 1fr 1fr 1fr; }
.eye-c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px 10px; border-radius: 18px; color: #fff4dc; background: linear-gradient(#3b2760, #24173f); border: 1.5px solid #ffffff2a; box-shadow: 0 4px 0 #120a22; animation: eyeIn .22s ease-out both; min-height: 190px; justify-content: center; }
@keyframes eyeIn { from { transform: translateY(14px) scale(.9); opacity: 0; } }
.eye-c:active { transform: translateY(2px); }
.eye-pic { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, #ffffff22, transparent 70%); }
.eye-grid.n3 .eye-pic { width: 74px; height: 74px; } .eye-grid.n4 .eye-pic { width: 84px; height: 84px; } .eye-pic img { width: 100%; height: 100%; object-fit: contain; } .eye-pic span { font-size: 46px; }
.eye-c b { font-size: 15.5px; line-height: 1.3; } .eye-grid.n3 .eye-c b { font-size: 12.5px; } .eye-c small { font-size: 11px; color: #b8abd0; }
.eye-p { font-style: normal; font-weight: 900; font-size: 15px; color: #ffd24d; visibility: hidden; }
.eye-grid.reveal .eye-p { visibility: visible; animation: pop .2s ease-out; }
.eye-c.ok { border-color: #ffd24d; box-shadow: 0 4px 0 #120a22, 0 0 24px #ffd24d99; background: linear-gradient(#5a4214, #2e2108); }
.eye-c.ng { border-color: #ff4b4b; background: linear-gradient(#5a1c24, #2e0b10); animation: mgShake .3s; }
/* そろばん */
.calc-q { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; width: 100%; max-width: 420px; }
.calc-q.in .calc-it { animation: eyeIn .2s ease-out both; }
.calc-it { width: 98px; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: linear-gradient(#22345a, #142039); border: 1.5px solid #4fa8ff55; }
.calc-it img { width: 58px; height: 58px; object-fit: contain; } .calc-it span { font-size: 32px; line-height: 44px; }
.calc-it b { font-size: 20px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; } .calc-it b::after { content: "G"; font-size: 11px; margin-left: 2px; color: #9fd0ff; }
.calc-it small { font-size: 10px; color: #9fb6d6; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-plus { font-style: normal; font-size: 24px; font-weight: 900; color: #7cc8ff; }
.calc-a { margin: 14px 0 12px; font-size: 16px; } .calc-a b { color: #ffd24d; } .calc-a em { font-style: normal; font-weight: 900; font-size: 20px; color: #7cc8ff; text-shadow: 0 0 10px #4fa8ff; margin-left: 6px; }
.calc-o { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-b { padding: 16px 6px; border-radius: 16px; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; background: linear-gradient(#2c4878, #182a4c); border: 1.5px solid #4fa8ff66; box-shadow: 0 4px 0 #0b1426; }
.calc-b::after { content: " G"; font-size: 13px; color: #9fd0ff; }
.calc-b:active { transform: translateY(2px); box-shadow: 0 2px 0 #0b1426; }
.calc-b.ok { background: linear-gradient(#2f8a55, #165a33); border-color: #7dffb0; box-shadow: 0 4px 0 #0b2616, 0 0 22px #46d48399; }
.calc-b.ng { background: linear-gradient(#8a2f3a, #5a1620); border-color: #ff6b6b; animation: mgShake .3s; }
/* 射的 */
.shoot-cv { width: 100%; flex: 1; min-height: 0; border-radius: 18px; background: radial-gradient(90% 60% at 50% 0%, #5a2f1c, #24120b); box-shadow: inset 0 0 0 3px #00000066, inset 0 0 40px #000a, 0 0 30px #46d48333; cursor: crosshair; touch-action: none; }
.shoot-ammo { display: flex; align-items: center; gap: 3px; margin-top: 8px; font-size: 12px; color: #d8f5e3; flex-wrap: wrap; justify-content: center; }
.shoot-ammo span { margin-right: 4px; } .shoot-ammo i { width: 6px; height: 12px; border-radius: 3px 3px 2px 2px; background: linear-gradient(#f5d6a0, #b98a4e); }
.shoot-ammo b { margin-left: 6px; font-size: 16px; color: #fff; }
/* 夜店の絵（2026-12-01）: 背景・店主・メダル */
.mg-bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .5; pointer-events: none; transition: opacity .4s; }
.mg-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#07040fcc, #07040f55 30%, #07040f99 70%, #07040fee); }
#mg.playing .mg-bg { opacity: .22; filter: blur(2px); }
.mg-kp { display: flex; align-items: flex-end; gap: 8px; margin: -6px 0 4px; text-align: left; }
.mg-kp img { width: 118px; height: 118px; object-fit: contain; object-position: bottom; flex: none; filter: drop-shadow(0 4px 10px #000a); animation: bob 3.2s ease-in-out infinite; }
.mg-say { position: relative; flex: 1; margin: 0 0 16px; padding: 9px 12px; border-radius: 14px; background: #fff6e2; color: #3a2414; font-size: 13px; font-weight: 700; line-height: 1.5; box-shadow: 0 3px 0 #0006; }
.mg-say::before { content: ""; position: absolute; left: -8px; bottom: 12px; border: 8px solid transparent; border-right-color: #fff6e2; border-left: 0; }
.mg-say small { display: block; font-size: 10.5px; color: #a0602a; letter-spacing: .08em; }
.mg-kp.res { margin: 6px 0 2px; } .mg-kp.res img { width: 96px; height: 96px; animation: pop .3s ease-out; }
.mg-card.res .mg-stamp { top: 26px; }
.mg-tro { width: 34px; height: 34px; vertical-align: -6px; margin-right: 6px; filter: drop-shadow(0 0 8px #ffd24d); }
.mg-md img { width: 34px; height: 34px; object-fit: contain; display: block; margin: 0 auto 2px; filter: grayscale(1) brightness(.6); opacity: .6; }
.mg-md.got img { filter: drop-shadow(0 0 6px var(--mc)); opacity: 1; }
.mg-kpm { position: absolute; right: 8px; top: 52px; width: 78px; height: 78px; pointer-events: none; z-index: 3; }
.mg-kpm img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 3px 6px #000a); }
.mg-kpm img[src=""] { display: none; }
.mg-kpm.react img { animation: mgReact .35s ease-out; }
@keyframes mgReact { 40% { transform: scale(1.15) translateY(-4px); } }
.mg-kpm span { position: absolute; right: 84px; top: 22px; white-space: nowrap; padding: 4px 10px; border-radius: 12px; background: #fff6e2; color: #3a2414; font-size: 13px; font-weight: 800; opacity: 0; box-shadow: 0 2px 0 #0006; }
.mg-kpm span:empty { display: none; }
.mg-kpm span.on { animation: mgSay 1.1s ease-out forwards; }
@keyframes mgSay { 0% { opacity: 0; transform: translateX(8px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#mg[data-g="g_shoot"] .mg-kpm { top: 46px; width: 66px; height: 66px; }
.mg-kpm span { top: 74px; right: 10px; }
.mg-card.res .mg-stamp { top: 10px; right: 10px; width: 56px; height: 56px; line-height: 48px; font-size: 26px; }
/* 仲間の説明（2026-12-01） */
.petb { display: inline-block; width: 18px; height: 18px; line-height: 17px; margin-right: 5px; border-radius: 50%; background: #ff4fbf; color: #fff; font-size: 11px; text-align: center; border: 1.5px solid #fff; vertical-align: 1px; }
.petrole { margin: 4px 0 6px; padding: 8px 10px; border-radius: 12px; background: #ff4fbf14; border: 1px solid #ff4fbf55; font-size: 12.5px; line-height: 1.6; }
.petrole p { margin: 0 0 4px; } .petrole p:last-child { margin: 0; }
.petrole p > b:first-child { display: inline-block; min-width: 4.5em; margin-right: 4px; color: #ff9fe0; }
/* 仲間の進化・大もうけ・売上の新記録（2026-12-01） */
.evo1 { color: #9fe8ff; } .evo2 { color: #ffd84d; text-shadow: 0 0 6px #ffb30088; }
.salecust.big i { display: none; } /* 金額は大もうけの帯に出す */
.coinfly { position: absolute; left: 50%; top: 30%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6b0, #ffc928 55%, #b07a00); animation: coinfly .9s ease-out both; pointer-events: none; }
@keyframes coinfly { from { transform: translate(0, 0) scale(.5); opacity: 1; } 70% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
.recday { animation: recpop .6s cubic-bezier(.3,1.6,.5,1) both; border-color: #ffd24d !important; }
@keyframes recpop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* 売れたようす: お客は枠の高さに合わせる（PC幅で枠からはみ出さない）、大もうけの帯 */
.shoppic .salecust { width: auto; height: 74%; bottom: 3%; }
.shoppic .salecust img { width: auto; height: 100%; object-fit: contain; }
.shoppic .salecust i { top: -6%; }
.shoppic .salecust.buy i { top: -24%; }
.bigsale { position: absolute; left: 50%; top: 10%; z-index: 5; transform: translateX(-50%) scale(.3); opacity: 0; transition: transform .35s cubic-bezier(.3,1.8,.5,1), opacity .25s; text-align: center; pointer-events: none; white-space: nowrap; }
.bigsale.on { transform: translateX(-50%) scale(1); opacity: 1; }
.bigsale.off { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(1); }
.bigsale b { display: block; font-size: 26px; font-weight: 900; color: #ff4fa0; text-shadow: 0 2px 0 #fff, 0 0 12px #ffd24d, 0 3px 6px #000a; letter-spacing: 2px; }
.bigsale i { display: block; font-style: normal; font-weight: 900; font-size: 18px; color: #ffe14d; text-shadow: 0 2px 0 #000; }
.bigsale { top: 6%; padding: 4px 16px 6px; border-radius: 14px; background: radial-gradient(ellipse at center, #2a1236e6, #2a123699); border: 2px solid #ffd24d; box-shadow: 0 0 18px #ffd24d88; }
.bigsale b, .bigsale i { position: relative; z-index: 1; }
.bigsale .coinfly { z-index: 0; }
.bigsale { background: #2a1236f2; }
.bigsale .coinfly { z-index: -1; }
.bigsale { isolation: isolate; }

/* 2026-12-01 持ち物6個の警告 */
.carrywarn { background: #3a1d1d; border: 2px solid #ff7a6b; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.carrywarn p { margin: 0 0 8px; color: #ffe2dc; }
.carrywarn .itool { display: flex; gap: 8px; flex-wrap: wrap; }

/* 2026-12-01 セーブの名前 */
.nameinp { width: 100%; box-sizing: border-box; font-size: 18px; padding: 10px 12px; border-radius: 8px; border: 2px solid #c9a86a; background: #fffaf0; color: #2a1d10; margin: 6px 0 4px; }
.slotno { font-weight: normal; opacity: .65; font-size: .78em; margin-left: 4px; }

/* 2026-12-01 装備の強さ */
.gstat { color: #ffd98a; }
.gup { color: #7dffb0; font-weight: bold; }
.gdown { color: #ff8f8f; font-weight: bold; }

/* 2026-12-01 腹ぺこはダッシュできない */
#bDash.hungry { opacity: .42; filter: grayscale(.7); }

/* 限定品（2026-12-01） */
.rare { color: #ff9ef5; font-weight: bold; }

/* 物語の見せ方（2026-12-02）: 金のふち・絵がゆっくり寄る・文がふわっと出る・章の札・記録の巻物 */
#mbox.story { background: radial-gradient(ellipse at 50% 0%, #4a3468 0%, #241a38 55%, #150f22 100%); border-color: #d9b25a; box-shadow: 0 0 0 1px #6b5222, 0 0 34px rgba(255,200,110,.35); }
#mbox.story .mh { color: #ffe08a; text-align: center; letter-spacing: .12em; text-shadow: 0 0 12px rgba(255,190,80,.6); animation: stIn .7s ease both; }
#mbox.story .scwrap { overflow: hidden; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 0 0 2px #8a6a2e, 0 6px 18px rgba(0,0,0,.5); }
#mbox.story .scwrap .scene { margin: 0; border-radius: 0; animation: kb 9s ease-out both; }
#mbox.story .stx { animation: stIn 1s ease both .35s; line-height: 1.85; }
#mbox.story .mf button.ok { background: linear-gradient(#ffd77a, #e0a83a); color: #3a2400; }
@keyframes kb { from { transform: scale(1.12) translateY(2%); filter: brightness(.6); } 25% { filter: brightness(1); } to { transform: scale(1) translateY(0); } }
@keyframes stIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stcard { text-align: center; padding: 44px 0 36px; }
.stcard small { display: block; color: #e8cf8f; letter-spacing: .5em; font-size: 15px; animation: stIn 1s ease both; }
.stcard b { display: block; margin-top: 10px; font-size: 34px; letter-spacing: .08em; font-family: serif; background: linear-gradient(90deg, #b8862d, #fff2b8, #e0a83a, #fff2b8, #b8862d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: stIn 1.2s ease both .3s, shine 3.5s linear infinite; filter: drop-shadow(0 0 10px rgba(255,200,90,.45)); }
@keyframes shine { to { background-position: 300% 0; } }
.roll { height: 46vh; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.roll > div { position: absolute; left: 0; right: 0; text-align: center; animation: roll 26s linear forwards; }
.roll p { margin: 4px 0; } .roll b { color: #ffe08a; font-size: 17px; }
@keyframes roll { from { transform: translateY(46vh); } to { transform: translateY(-100%); } }

/* 最初の目標・初売上（2026-12-02） */
.tut { margin: 6px 14px 0; background: rgba(20,14,34,.85); border: 1px solid #d9b25a; border-radius: 10px; padding: 5px 10px; font-size: 13px; color: #fff; }
.tut b { color: #ffe08a; margin-right: 4px; }
.gift.firstsale { background: linear-gradient(#fff6cf, #ffe39a); border: 2px solid #e0a83a; font-size: 14px; line-height: 1.7; animation: stIn .6s ease both; }

/* 図書館（2026-12-02） */
.libtabs button { flex: 1; }
.libsum { margin: 6px 0 2px; color: #e9dff7; font-size: 13px; } .libsum b { color: #ffe08a; }
.row.unk .ic { filter: brightness(0) opacity(.5); } .row.unk .nm { color: #8d82a6; }
.row.tap { cursor: pointer; } .row.tap:active { background: rgba(255,255,255,.06); }
.libpage { text-align: left; } .libpage ul { margin: 2px 0 8px 1.2em; padding: 0; } .libpage li { margin: 2px 0; }
.libpic { display: block; width: 150px; height: 150px; object-fit: contain; margin: 4px auto 6px; background: radial-gradient(circle, #3a2c58, #1f1830 70%); border-radius: 16px; }
.libpic.em { font-size: 90px; line-height: 150px; text-align: center; }
.libname { text-align: center; font-size: 20px; font-weight: 800; color: #ffe08a; } .libname small { font-size: 12px; background: #a0143c; color: #fff; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.libkill { text-align: center; margin: 2px 0 8px; } .libkill b { font-size: 20px; color: #fff; }
.libst { margin: 4px auto 6px; border-collapse: collapse; min-width: 70%; } .libst td { padding: 3px 10px; border-bottom: 1px solid #3a2f52; } .libst td:first-child { color: #b8abd0; } .libst td:nth-child(3) { color: #ffcf5a; letter-spacing: 1px; }

/* 福引き・釣り（2026-12-03） */
.fuku { font-size: 34px; text-align: center; letter-spacing: 6px; animation: fukuSpin .25s linear infinite; }
@keyframes fukuSpin { 50% { transform: rotate(8deg) scale(1.05); } }
.fuku-ball { font-size: 56px; text-align: center; margin: 4px 0; animation: stIn .5s ease both; }
.fish-water { position: relative; height: 120px; border-radius: 14px; background: linear-gradient(#5aa8c8, #2f6f8f); overflow: hidden; }
.fish-water::before { content: ''; position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: rgba(255,255,255,.4); }
.fish-bob { position: absolute; left: 50%; top: 40px; font-size: 26px; transform: translateX(-50%); animation: bob 1.6s ease-in-out infinite; }
.fish-bob.bite { animation: bite .18s ease-in-out infinite; top: 52px; }
@keyframes bob { 50% { transform: translate(-50%, 4px); } }
@keyframes bite { 50% { transform: translate(-50%, 12px); } }
.fish-msg { text-align: center; font-weight: 700; margin-top: 8px; }

/* 次の目標（2026-12-03） */
.tut.goals { cursor: pointer; } .tut.goals b { display: block; margin-bottom: 2px; } .tut.goals span { display: block; font-size: 12.5px; } .tut.goals small { color: #ffe08a; margin-left: 4px; }

/* お宝の印（2026-12-03） */
.trb { display: inline-block; font-size: 10.5px; font-weight: 800; color: #3a2400; background: linear-gradient(#ffe9a0, #f2c04a); border-radius: 6px; padding: 0 5px; margin-right: 4px; vertical-align: 1px; }

/* タイトルの絵（2026-12-03）: 背景は画面いっぱい。縦長はロゴを上・ボタンを下に、横長は中央の空いた帯にまとめる */
#title.hasbg { background: #15102a var(--tbgp) center 30% / cover no-repeat; justify-content: stretch; }
#title.hasbg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,6,24,.0) 0%, rgba(10,6,24,0) 55%, rgba(10,6,24,.72) 82%, rgba(10,6,24,.85) 100%); pointer-events: none; }
#title.hasbg .tbox { position: relative; z-index: 1; flex: 1; min-height: 100%; justify-content: flex-start; padding: max(10px, 2vh) 0 14px; }
#title.hasbg .tpic { display: none; }
#title.hasbg .tlogo img { width: min(92%, 400px); height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); animation: logoIn .9s cubic-bezier(.2,1.4,.4,1) both; }
#title.hasbg .tsub { color: #f3e7ff; text-shadow: 0 2px 4px #000, 0 0 10px #000; font-weight: 700; }
#title.hasbg .tsub { margin-bottom: auto; }
#title.hasbg .ver { color: #c9bde0; text-shadow: 0 1px 2px #000; }
@keyframes logoIn { from { transform: scale(.6) translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
/* パソコンなど横に広い画面: 中央の枠の外側に横長の背景を敷く（タイトルのときだけ） */
body.ontitle { background: #0d0b14 var(--tbgl) center / cover no-repeat; }
body.ontitle::before { content: ''; position: fixed; inset: 0; background: rgba(8,5,20,.35); pointer-events: none; }
body.ontitle #app { box-shadow: 0 0 40px rgba(0,0,0,.7); }

/* やりこみ（2026-12-03）: 勲章・討伐の星・博物館 */
.medals i { font-style: normal; filter: grayscale(1); opacity: .28; margin-right: 1px; } .medals i.on { filter: none; opacity: 1; }
.mstar { color: #ffd24d; letter-spacing: -1px; text-shadow: 0 1px 0 #6a4a00; }
.gift.medalget { border-color: #ffd24d; }
#mbox .row.done { background: rgba(120, 220, 160, .08); }

/* ミニゲームの底上げ（2026-12-03）: れんしゅう・フィーバー・残り5秒・安い品・釣りのやりとり */
.mg-prac { margin-top: 8px; width: 100%; padding: 10px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-weight: 800; font-size: 14px; }
.mg-prac.big { padding: 14px; font-size: 16px; background: linear-gradient(#5a6f9c, #3b4c74); border-color: #9fb6e6; }
#mg.fever .mg-glow { box-shadow: inset 0 0 60px 18px rgba(255, 210, 77, .55); animation: feverGlow .5s linear infinite alternate; opacity: 1; }
#mg.fever .mg-time u { background: linear-gradient(90deg, #ff5a6e, #ffd24d, #46d483, #4fa8ff) !important; }
#mg.fever .mg-sc b { color: #ffe14d; text-shadow: 0 0 10px #ff9c3d; }
#mg.fever .mg-combo::after { content: ' 🔥FEVER ×2'; color: #ffe14d; font-weight: 900; }
@keyframes feverGlow { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(40deg); } }
.mg-time.beat { animation: timeBeat .35s ease-out; }
@keyframes timeBeat { 0% { transform: scale(1.06); filter: brightness(1.8); } 100% { transform: none; filter: none; } }
.mg-ask.cheap b.cheap { color: #6fd0ff; text-shadow: 0 0 12px #2a8fd0; }
.mg-ask.swap { animation: askSwap .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes askSwap { 0% { transform: scale(1.5) rotate(-4deg); } 100% { transform: none; } }
.calc-it.qty { min-width: 64px; } .calc-it.qty b { font-size: 34px; color: #ffe08a; }
.f2 .fish-water { height: 150px; }
.f2 .f2-sh { position: absolute; top: 68%; left: 70%; width: 54px; height: 20px; border-radius: 50%; background: rgba(10, 30, 50, .45); transform: translate(-50%, -50%); transition: left .12s linear; opacity: 0; }
.f2 .f2-g:not([hidden]) ~ * { } .f2 .fish-water.burst { animation: f2shake .12s linear infinite; } .f2 .fish-water.burst .f2-sh { background: rgba(120, 20, 20, .6); }
.f2:has(.f2-g:not([hidden])) .f2-sh { opacity: 1; }
@keyframes f2shake { 0% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 100% { transform: translateX(-3px); } }
.fish-bob.nib { animation: f2nib .2s ease-in-out 2; }
@keyframes f2nib { 50% { transform: translate(-50%, 7px); } }
.f2-lab { display: flex; justify-content: space-between; font-size: 12px; color: #cdbfe0; margin: 8px 2px 3px; } .f2-tip { font-style: normal; font-weight: 800; color: #ffe08a; }
.f2-ten { position: relative; height: 22px; border-radius: 11px; background: linear-gradient(90deg, #39507a 0%, #39507a 30%, #6a3340 86%, #c0303a 100%); overflow: hidden; border: 2px solid #1a1428; }
.f2-ten i { position: absolute; top: 0; bottom: 0; background: rgba(90, 220, 130, .75); }
.f2-ten u { position: absolute; top: -2px; bottom: -2px; width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 6px #000; }
.f2-ten.good { border-color: #6fe39a; } .f2-ten.danger { border-color: #ff5a4a; animation: f2shake .1s linear infinite; }
.f2-dist { height: 12px; border-radius: 6px; background: #1f1830; overflow: hidden; border: 2px solid #1a1428; } .f2-dist u { display: block; height: 100%; background: linear-gradient(90deg, #7dffb0, #ffd24d, #ff7a5c); }
#mbox button.f2-reel { touch-action: none; user-select: none; -webkit-user-select: none; } #mbox button.f2-reel:active { filter: brightness(1.25); transform: translateY(2px); }
.f2-res { text-align: center; margin: 6px 0; } .f2-res .f2-big { font-size: 72px; line-height: 1.1; animation: bob 2s ease-in-out infinite; } .f2-res b { display: block; font-size: 22px; color: #ffe08a; } .f2-res span { font-size: 18px; font-weight: 800; }

/* 釣り堀: 水の中を横から見る（2026-12-03） */
.f2 .fish-water.f3 { height: 200px; background: linear-gradient(#d3eef6 0, #a9dcec 33px, #5aaccb 34px, #2f7699 55%, #173f5c 100%); }
.f2 .fish-water.f3::before { top: 33px; height: 3px; background: rgba(255, 255, 255, .75); z-index: 2; }
.f3 .fish-bob { top: 12px; z-index: 4; } .f3 .fish-bob.bite { top: 26px; } .f3 .fish-bob[hidden], .f3 .f3-hook[hidden] { display: none; }
.f3-bed { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: radial-gradient(ellipse 30px 12px at 18% 100%, #7a7352 0 99%, transparent 100%), radial-gradient(ellipse 44px 14px at 72% 100%, #6a6446 0 99%, transparent 100%), linear-gradient(#5c5638, #3b3824); }
.f3-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; } .f3-line path { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.4; }
.f3-hook { position: absolute; left: 50%; top: 104px; width: 5px; height: 7px; margin-left: -1px; border: 2px solid #f0f0f4; border-top-color: transparent; border-left-color: transparent; border-radius: 0 0 8px 8px; z-index: 3; }
.f3-fish { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform; pointer-events: none; } .f3-fish.bg { opacity: .62; } .f3-fish.tg { z-index: 2; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.f3-w { animation: f3swim .8s ease-in-out infinite; transform-origin: 30% 50%; } .f3-fish.burst .f3-w { animation: f3thrash .14s linear infinite; }
@keyframes f3swim { 0%, 100% { transform: skewY(-5deg); } 50% { transform: skewY(5deg); } }
@keyframes f3thrash { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
.f3-svg { display: inline-block; vertical-align: middle; } .f3-svg svg, .f3-img { display: block; width: 100%; height: auto; } .f3-svg.glow svg { filter: drop-shadow(0 0 6px #ffd84a); }
.f3-thing { font-size: 30px; line-height: 1; display: block; } .f3-fish.tg:not(.on) .f3-thing { filter: brightness(.25); }
.f2-res .f2-big .f3-thing { font-size: 72px; } .f2-res .f2-big { min-height: 76px; display: flex; align-items: center; justify-content: center; } .f2-res .f2-big .f3-svg { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.f2-res .f2-big .f3-svg, .f2-res .f2-big .f3-img { display: block; margin: 0 auto; flex: none; }
.row.fishrow .ic.pic { width: 58px; height: 34px; } .row.fishrow .ic { min-width: 58px; text-align: center; }
.f2-res .f2-big { animation: f3float 2s ease-in-out infinite; } @keyframes f3float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 釣り場 本格版（2026-12-03）: 岸から沖へ深くなる池・時間帯・エサ */
.f4 .fish-water.f4w { height: 230px; }
.f4w.tm0 { background: linear-gradient(#ffd3a8 0, #ffe6c4 33px, #74bccb 34px, #3a8199 55%, #1b4a63 100%) !important; }
.f4w.tm2 { background: linear-gradient(#ff9566 0, #ffbf8a 33px, #7c93b4 34px, #41618a 55%, #1c3050 100%) !important; }
.f4w.tm3 { background: linear-gradient(#10152f 0, #232c55 33px, #20496a 34px, #143350 55%, #0a1a30 100%) !important; }
.f4w.tm3 .f3-fish.pond:not(.on) { filter: brightness(.62); } .f4w.tm3 .f4-rays { display: none; }
.f4-rays { position: absolute; left: 0; right: 0; top: 35px; bottom: 0; background: repeating-linear-gradient(105deg, rgba(255, 255, 255, .08) 0 14px, transparent 14px 64px); pointer-events: none; }
.f4-bed { position: absolute; left: 0; top: 0; right: 0; bottom: 0; clip-path: polygon(0 118px, 100% 214px, 100% 100%, 0 100%); background: linear-gradient(172deg, #857c58, #4a4630 45%, #2c2a1c); }
.f4-weed { position: absolute; width: 6px; height: 34px; margin-left: -3px; background: linear-gradient(#58a85e, #2a5e36); border-radius: 70% 70% 0 0; transform-origin: 50% 100%; animation: f4sway 3.2s ease-in-out infinite; box-shadow: 8px 8px 0 -1px #3b7d45, -7px 12px 0 -1px #2f6a3a; opacity: .9; }
.f4-weed.w2 { height: 46px; animation-duration: 4.1s; }
@keyframes f4sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.f4-aim { position: absolute; top: 12px; font-style: normal; font-size: 18px; line-height: 1; color: #ff4a3a; transform: translateX(-50%); z-index: 4; text-shadow: 0 1px 2px #000a; pointer-events: none; } .f4-aim[hidden] { display: none; }
.f4-aim::after { content: ''; position: absolute; left: 50%; top: 22px; height: 190px; border-left: 2px dashed rgba(255, 255, 255, .38); }
.f4-rip { position: absolute; top: 31px; width: 12px; height: 5px; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; opacity: 0; pointer-events: none; z-index: 3; } .f4-rip.go { animation: f4rip .8s ease-out; }
@keyframes f4rip { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(6, 3); } }
.f3-fish.pond { opacity: .93; } .f3-fish.sil:not(.on) .f3-w { filter: brightness(.3) saturate(.5); } .f3-fish.sil .f3-w { animation: none; } .f3-fish.sil.burst .f3-w { animation: f3thrash .14s linear infinite; }
.f4 .f3-hook, .f4 .fish-bob { left: 0; }
.f4-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 800; color: #ffe08a; } .f4-top small { color: #cdbfe0; font-weight: 400; margin-left: 8px; }
.f4-baits { display: flex; gap: 6px; margin: 6px 0 8px; }
#mbox .f4-b { flex: 1; min-width: 0; margin: 0; padding: 6px 2px; border-radius: 10px; border: 2px solid #4a3f66; background: #221a36; color: #e8dff5; font-size: 13px; font-weight: 700; line-height: 1.3; box-shadow: none; }
#mbox .f4-b.on { border-color: #ffd24d; background: #3d2f5c; } #mbox .f4-b.zero { opacity: .8; } .f4-b b { color: #ffe08a; } .f4-b small { display: block; font-size: 10px; font-weight: 400; color: #b9a9d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 夜店のやりこみ（2026-12-03） */
.mg-dan { font-size: 12px; margin: 6px 0 2px; opacity: .92; } .mg-dan b { color: #ffd24d; font-size: 14px; }
.mg-mis { font-size: 13px; margin: 6px 0; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 226, 122, .55); } .mg-mis b { color: #ffe27a; } .mg-mis small { display: block; font-size: 11px; opacity: .8; } .mg-mis.done { opacity: .7; border-style: solid; }
.mg-charms { display: flex; gap: 6px; margin: 6px 0; }
.mg-ch { flex: 1; min-width: 0; padding: 6px 2px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .35); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; } .mg-ch small { display: block; font-size: 10px; font-weight: 400; opacity: .8; } .mg-ch.on { border-color: var(--ac, #ffd24d); background: rgba(255, 255, 255, .16); } .mg-ch.lock { opacity: .5; }
.mg-hard { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 8px; padding: 6px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .35); color: #e6dcf5; font-size: 13px; font-weight: 700; text-align: center; } .mg-hard small { display: block; font-size: 10px; font-weight: 400; opacity: .8; } button.mg-hard.on { border-color: #ff7a3d; color: #ffd9a0; background: rgba(255, 90, 30, .2); } p.mg-hard.lock { border-style: dashed; opacity: .6; font-weight: 400; font-size: 12px; }
/* 背の低い画面では入口カードを詰める（スタートボタンを1画面に収める） */
@media (max-height: 720px) {
  .mg-card { padding: 10px 14px; } .mg-card .mg-kp img { width: 76px; height: 76px; } .mg-card h2 { font-size: 21px; margin: 2px 0 4px; } .mg-card .mg-rule { font-size: 12px; line-height: 1.45; margin: 0 0 6px; }
  .mg-card .mg-mds { margin: 6px 0; } .mg-card .mg-md { padding: 4px 4px 3px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 4px; text-align: left; } .mg-card .mg-md img { width: 26px; height: 26px; grid-row: 1 / span 3; margin: 0; }
  .mg-dan { margin: 3px 0 1px; } .mg-mis { margin: 4px 0; padding: 4px 8px; } .mg-charms { margin: 4px 0; } .mg-ch { padding: 4px 2px; } .mg-hard { margin: 3px 0 5px; padding: 4px; }
}

/* 週替わりの釣り大会 */
.cup { margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: linear-gradient(#3a2a18, #24190e); border: 1.5px solid #c9973a; font-size: 13px; }
.cup-h { font-weight: 800; color: #ffe08a; } .cup-h small { display: block; font-weight: 400; font-size: 11px; color: #d8c49a; }
.cup ol { margin: 6px 0 0; padding-left: 22px; } .cup li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; } .cup li span { flex: 1; } .cup li b { color: #ffe08a; min-width: 48px; text-align: right; } .cup li small { font-size: 11px; color: #d8c49a; min-width: 78px; text-align: right; }
.cup li.me { color: #9fffc2; font-weight: 800; } .cup-w { margin-top: 4px; font-size: 12px; color: #ffd24d; }
.f4-cup { font-size: 12px; color: #ffd98a; margin-top: 3px; }

/* こはく屋の名物 */
.meib-row { margin: 4px 0 8px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(#4a2418, #2c160f); border: 1.5px solid #d0703a; font-size: 13px; cursor: pointer; } .meib-row b { color: #ffd98a; } .meib-row small { display: block; font-size: 11px; color: #e6c2a6; }
.meib-st { color: #ffcf3a; letter-spacing: 1px; }

/* 季節の行事: 店の絵の上に舞うもの */
#shopPic { position: relative; } .season { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; z-index: 1; }
.season i { position: absolute; top: -8%; width: 9px; height: 9px; opacity: .85; animation: seaFall 9s linear infinite; }
.season i:nth-child(1) { left: 4%; animation-delay: 0s; } .season i:nth-child(2) { left: 11%; animation-delay: -4.5s; animation-duration: 11s; } .season i:nth-child(3) { left: 19%; animation-delay: -2s; } .season i:nth-child(4) { left: 26%; animation-delay: -7s; animation-duration: 12s; } .season i:nth-child(5) { left: 34%; animation-delay: -1s; } .season i:nth-child(6) { left: 41%; animation-delay: -5.5s; animation-duration: 10s; } .season i:nth-child(7) { left: 49%; animation-delay: -3s; } .season i:nth-child(8) { left: 57%; animation-delay: -8s; animation-duration: 13s; } .season i:nth-child(9) { left: 64%; animation-delay: -0.5s; } .season i:nth-child(10) { left: 71%; animation-delay: -6s; animation-duration: 11s; } .season i:nth-child(11) { left: 78%; animation-delay: -2.5s; } .season i:nth-child(12) { left: 85%; animation-delay: -7.5s; animation-duration: 10s; } .season i:nth-child(13) { left: 91%; animation-delay: -4s; } .season i:nth-child(14) { left: 97%; animation-delay: -1.5s; animation-duration: 12s; }
@keyframes seaFall { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(18px, 60vh) rotate(180deg); } 100% { transform: translate(-6px, 120vh) rotate(360deg); } }
.fx-spring i { background: #ffc4d8; border-radius: 80% 0 80% 0; } .fx-autumn i { background: #e8823a; border-radius: 0 70% 0 70%; width: 10px; height: 10px; }
.fx-winter i { background: #fff; border-radius: 50%; width: 6px; height: 6px; box-shadow: 0 0 4px #fff; } .fx-winter i:nth-child(odd) { width: 4px; height: 4px; }
.fx-summer i { top: auto; bottom: -6%; width: 5px; height: 5px; border-radius: 50%; background: #fff27a; box-shadow: 0 0 8px 2px #ffe14d; animation-name: seaFly; } @keyframes seaFly { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(24px, -110vh); opacity: 0; } }
.ngb { display: inline-block; padding: 0 6px; border-radius: 6px; background: #4a2a5c; color: #ffd98a; font-size: 11px; font-weight: 800; }
/* 舞うものは店の絵の高さで落とす（画面の高さ基準だと、ほとんど絵の外にいた） */
@keyframes seaFall { 0% { top: -8%; transform: translateX(0) rotate(0); } 50% { transform: translateX(16px) rotate(180deg); } 100% { top: 106%; transform: translateX(-6px) rotate(360deg); } }
@keyframes seaFly { 0% { bottom: -6%; opacity: 0; transform: translateX(0); } 20% { opacity: .95; } 100% { bottom: 104%; opacity: 0; transform: translateX(24px); } }
.fx-winter i { width: 8px; height: 8px; background: #fff; box-shadow: 0 0 3px 1px rgba(150, 190, 255, .9), 0 0 0 1px rgba(90, 120, 170, .35); } .fx-winter i:nth-child(odd) { width: 6px; height: 6px; }
.fx-spring i { width: 11px; height: 11px; box-shadow: 0 0 0 1px rgba(200, 90, 130, .35); } .fx-autumn i { width: 12px; height: 12px; box-shadow: 0 0 0 1px rgba(120, 50, 10, .35); }
.shoppic .gama { z-index: 2; }

/* 快適な片づけ */
.pickbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0; padding: 6px; border-radius: 10px; background: #3d2f5c; border: 1.5px solid #f0a92b; box-shadow: 0 4px 10px #0007; }
.pickbar b { font-size: 12px; color: #ffe08a; margin-right: 4px; } .pickbar button { padding: 5px 10px; border-radius: 8px; background: #55456f; font-size: 12px; font-weight: 700; } .pickbar button.ok { background: #f0a92b; color: #2b1a02; } .pickbar button:disabled { opacity: .45; }
.row button.pick { min-width: 44px; font-size: 18px; background: #2a2140; border: 2px solid #6f5a93; } .row button.pick.on { background: #f0a92b; color: #2b1a02; border-color: #ffd24d; }
.tidy-l { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; } .tidy-l span { padding: 3px 8px; border-radius: 8px; background: #3a2f52; font-size: 12px; } .tidy-l small { color: #ffe08a; }

/* 敵の長押し・きょうのやること */
#cvwrap { position: relative; } #cv { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.minfo { display: flex; gap: 10px; align-items: center; } .minfo img { width: 84px; height: 84px; object-fit: contain; flex: none; } .minfo .em { font-size: 54px; } .minfo b { font-size: 17px; color: #ffe08a; } .minfo small { display: block; font-size: 11.5px; color: #cdbfe0; }
.hpbar { display: block; height: 8px; border-radius: 4px; background: #1f1830; margin: 4px 0 2px; overflow: hidden; } .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6a5a, #ffb04a); }
.todo { margin: 6px 14px 0; padding: 6px 8px; border-radius: 12px; background: #1d1630; border: 1.5px solid #5b4a86; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; } .todo b { font-size: 11.5px; color: #ffd98a; margin-right: 2px; }
.todo button { padding: 4px 9px; border-radius: 999px; background: #3b2f57; font-size: 12px; font-weight: 700; color: #f0e8ff; }

/* 画面の切りかえ・紙吹雪・建て増し・町の時間・ガマ吉の顔 */
#fade { position: fixed; inset: 0; background: #07050c; pointer-events: none; opacity: 0; z-index: 60; } #fade.go { animation: fadeOpen .5s ease-out; }
@keyframes fadeOpen { 0% { opacity: 1; } 35% { opacity: .85; } 100% { opacity: 0; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; } #confetti i { position: absolute; top: -4%; width: 9px; height: 14px; border-radius: 2px; animation: confFall 2.4s cubic-bezier(.25, .6, .5, 1) forwards; }
@keyframes confFall { 0% { top: -4%; opacity: 1; } 100% { top: 104%; opacity: .9; margin-left: 40px; transform: rotate(540deg); } }
.bscene { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(60, 44, 30, .55); border-radius: inherit; animation: bsIn .2s ease-out; } .bscene.done { animation: bsOut .6s ease-in forwards; }
.bscene i { position: absolute; bottom: 10%; width: 34%; height: 46%; border-radius: 50%; background: radial-gradient(circle, rgba(235, 225, 210, .95), rgba(200, 190, 175, 0)); animation: puff 1.2s ease-out infinite; }
.bscene i:nth-child(1) { left: 2%; } .bscene i:nth-child(2) { left: 22%; animation-delay: .2s; } .bscene i:nth-child(3) { left: 44%; animation-delay: .4s; } .bscene i:nth-child(4) { left: 64%; animation-delay: .1s; } .bscene i:nth-child(5) { left: 30%; bottom: 35%; animation-delay: .5s; }
.bscene b { position: relative; z-index: 2; font-size: 22px; color: #fff3d6; text-shadow: 0 2px 4px #000; animation: bob .5s ease-in-out infinite; }
@keyframes puff { 0% { transform: scale(.5); opacity: .2; } 50% { opacity: 1; } 100% { transform: scale(1.4) translateY(-20%); opacity: 0; } }
@keyframes bsIn { from { opacity: 0; } } @keyframes bsOut { to { opacity: 0; transform: scale(1.05); } }
.shoppic::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 1; } .shoppic.tp0::after { background: rgba(255, 200, 140, .12); } .shoppic.tp2::after { background: linear-gradient(rgba(255, 110, 50, .25), rgba(120, 40, 60, .2)); } .shoppic.tp3::after { background: radial-gradient(ellipse at 50% 70%, rgba(20, 24, 70, .2), rgba(10, 14, 50, .55)); }
#gamapop { position: absolute; left: 8px; top: 34%; z-index: 6; display: flex; align-items: flex-end; gap: 6px; max-width: 72%; pointer-events: none; animation: gpIn .3s cubic-bezier(.2, 1.4, .4, 1); } #gamapop.out { animation: gpOut .4s ease-in forwards; }
#gamapop img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 3px 4px #000a); flex: none; } #gamapop .gp-e { font-size: 40px; }
#gamapop p { margin: 0; padding: 7px 10px; border-radius: 12px 12px 12px 2px; background: rgba(255, 248, 230, .96); color: #3a2a14; font-size: 13px; font-weight: 700; line-height: 1.4; box-shadow: 0 3px 8px #0008; }
@keyframes gpIn { from { transform: translateX(-120%); opacity: 0; } } @keyframes gpOut { to { transform: translateX(-120%); opacity: 0; } }
/* 2026-12-03 一覧の行: ボタンが多いと説明が細く縦長に折り返していた。説明に最低限の幅を取り、入りきらないボタンは次の段へ（右寄せ） */
.row { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.row .nm { flex: 1 1 170px; }
.row .rbtns { display: flex; gap: 8px; align-items: center; flex: none; margin-left: auto; }

/* 釣り上げる場面（2026-12-03） */
.f3-fish.f5-up { z-index: 5; transition: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); } .f3-fish.f5-up .f3-w { animation: none; }
.f5-drop { position: absolute; z-index: 6; margin: -4px 0 0 -4px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 35%, #ffffff, rgba(180, 230, 255, .9)); box-shadow: 0 0 4px rgba(255, 255, 255, .8); pointer-events: none; animation: f5drop .9s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes f5drop { 0% { transform: translate(0, 0) scale(.6); opacity: 1; } 55% { transform: translate(calc(var(--dx) * .8), var(--dy)) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) * .2 + 70px)) scale(.7); opacity: 0; } }
.fish-water.f5-open { overflow: visible; } .fish-water.f5-open .f3-fish:not(.f5-up), .fish-water.f5-open .f4-weed { visibility: visible; }
.f5-ring { position: absolute; z-index: 4; width: 16px; height: 6px; border: 2px solid rgba(255, 255, 255, .95); border-radius: 50%; box-shadow: 0 0 6px rgba(200, 240, 255, .9); transform: translate(-50%, -50%); pointer-events: none; opacity: 0; animation: f5ring .9s ease-out forwards; } .f5-ring.f5-rbig { animation-duration: 1.3s; border-width: 3px; }
@keyframes f5ring { 0% { width: 16px; height: 6px; opacity: 1; } 100% { width: 190px; height: 42px; opacity: 0; } }
.fish-water.f5-flash::after { content: ''; position: absolute; inset: 0; z-index: 7; background: #fff; pointer-events: none; animation: f5flash .5s ease-out forwards; }
@keyframes f5flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.f5-text { position: absolute; z-index: 8; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: 30px; font-weight: 900; color: #fff3b0; letter-spacing: .06em; white-space: nowrap; text-shadow: 0 0 10px #ff9c3d, 0 3px 0 #7a3a00, 0 0 2px #000; pointer-events: none; animation: f5text .5s cubic-bezier(.2, 1.6, .4, 1); } .f5-text.f5-tbig { font-size: 38px; color: #ffe14d; }
@keyframes f5text { 0% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.f5-shine { position: absolute; z-index: 4; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; pointer-events: none; background: repeating-conic-gradient(rgba(255, 240, 170, .55) 0 10deg, transparent 10deg 30deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); animation: f5spin 3s linear infinite, f5in .4s ease-out; }
@keyframes f5spin { to { transform: rotate(360deg); } } @keyframes f5in { from { opacity: 0; transform: scale(.3); } }
#mbox.f5-shake { animation: f2shake .1s linear 8; }

/* 2026-12-05 印の一覧（別の小窓） */
.fxbtn { display: inline-block; margin: 2px 0; padding: 1px 8px; border-radius: 10px; background: #4a3a6e; color: #ffe08a; font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }
.fxpop { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 6, 20, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fxpop .fxin { width: 100%; max-width: 400px; max-height: 80vh; overflow-y: auto; background: #2a2140; border: 2px solid #d9b25a; border-radius: 14px; padding: 14px 16px; color: #e8dff5; }
.fxpop .fxh { font-weight: 800; font-size: 16px; color: #ffe08a; margin-bottom: 6px; }
.fxpop .fxs { margin: 10px 0 4px; font-size: 12px; color: #b9a8d8; border-bottom: 1px solid #4a3f66; }
.fxpop ul { margin: 0; padding-left: 18px; line-height: 1.7; font-size: 14px; }
.fxpop .fxclose { width: 100%; margin-top: 12px; padding: 11px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 800; background: linear-gradient(#ffcf5c, #f09b2b); color: #3a2204; cursor: pointer; }

/* 2026-12-05 ゲーム説明を項目ごとに（押すと開く） */
details.hsec { margin: 6px 0; border: 1px solid #4a3f66; border-radius: 10px; background: #231b36; }
details.hsec > summary { padding: 9px 12px; font-weight: 800; color: #ffe08a; cursor: pointer; list-style: none; }
details.hsec > summary::-webkit-details-marker { display: none; }
details.hsec > summary::after { content: '＋'; float: right; color: #b9a8d8; }
details.hsec[open] > summary::after { content: '－'; }
details.hsec ul { margin: 0; padding: 0 12px 10px 28px; line-height: 1.7; font-size: 14px; }
details.hsec li { margin: 3px 0; }

/* 2026-12-05 祭壇は賭け: 赤い注意書き */
.alwarn { margin: 8px 0; padding: 9px 12px; border: 2px solid #ff4d4d; border-radius: 10px; background: rgba(120, 10, 20, .45); color: #ff8080; font-size: 13.5px; line-height: 1.6; }
.alwarn b { color: #ffb0b0; }
.alred { color: #ff6b6b; font-weight: 800; white-space: nowrap; }

/* 2026-12-05 番付所 */
.rktabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rktab { padding: 5px 10px; border-radius: 14px; border: 1px solid #5a4a7a; background: #2a2140; color: #d8cfe8; font-size: 12.5px; }
.rktab.on { background: #d9b25a; color: #2a1a08; border-color: #d9b25a; font-weight: 800; }
.rkwrap { overflow-x: auto; }
.rktable { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.rktable th { color: #b9a8d8; font-weight: 600; border-bottom: 1px solid #4a3f66; padding: 4px 6px; text-align: left; }
.rktable td { border-bottom: 1px solid #3a3050; padding: 5px 6px; }
.rktable tr.top td { color: #ffe08a; }

/* 2026-12-05 題名画面から攻略書へ */
#title .tguide { color: #f3d58a; font-size: 13.5px; font-weight: 700; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(243, 213, 138, .45); border-radius: 999px; background: rgba(0, 0, 0, .2); }
