/* 国ローグライト — 「重厚な執務室」（2026-11-24 依頼者の決定。共通の6色パレットの例外。フォントは共通の Mochiy Pop One）
   紙＝公文書のクリーム／文字＝こい墨／表示の板＝紺に金のふち／押すボタン・ハンコ・危ない物＝朱（えんじ寄りの赤） */
:root {
  --pg-bg: #F6F0E1;
  --pg-panel: #FBF7EC;
  --pg-ink: #2A2730;
  --pg-shu: #B8453A;
  --pg-line: #E2D7BF;
  --pg-sub: #6B6253;
  --ivory: #F6F0E1;      /* 紙 */
  --paper: #FBF7EC;
  --navy: #26314F;
  --navyL: #3A4870;
  --gold: #C9A24A;
  --goldL: #E0C27A;
  --butter: #E0C27A;
  --lav: #6E83B0;
  --sage: #6F9A5E;
  --pink: #B8453A;       /* 危ない物・不満 */
  --ink: #2A2730;
  --good: #4E7D46;
  --bad: #B2463C;
  --pg-font: 'Mochiy Pop One', 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
  --sb: max(env(safe-area-inset-bottom), var(--vb, 0px));
  --under: max(100px, calc(var(--sb) + 40px)); /* Android の X で下約64pxが見えない。最下部にボタンを置かない */
  --colw: min(100%, 520px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-synthesis: none; }
html, body { margin: 0; height: 100%; height: 100dvh; background: var(--pg-bg); color: var(--ink); overflow: hidden; overscroll-behavior: none;
  font-family: var(--pg-font); font-weight: 400; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#app { position: relative; height: 100%; overflow: hidden; touch-action: none; }
[hidden] { display: none !important; }
.pg-btn, .pg-title, .pg-sign, .pg-goal-text, .pg-goal-label, .pg-goal-sub, .pg-count, .pg-intro-card { font-weight: 400; }
.pg-btn { border: 0; box-shadow: 0 4px 0 rgba(71,64,74,.35); }
.pg-btn:active { box-shadow: 0 0 0 rgba(71,64,74,.35); }
.pg-btn.shu { color: #FBF7EC; }
.pg-goal-label { color: var(--ink) !important; }
.pg-goal, .pg-intro-card { border: 0 !important; box-shadow: 0 5px 0 rgba(71,64,74,.25) !important; }
.pg-count { color: var(--ink); text-shadow: 0 4px 0 var(--ivory), 0 -4px 0 var(--ivory), 4px 0 0 var(--ivory), -4px 0 0 var(--ivory), 0 9px 0 rgba(71,64,74,.2); }
.pg-goal-word { white-space: nowrap; }
.fx-c, .fx-j { display: inline-block; }
.fx-c { transform-origin: 50% 80%; }

#stage { position: absolute; inset: 0; }

/* 絵記号（main.js が SVG を入れる） */
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }

/* ---------- 上の表示 ---------- */
#hud { position: absolute; left: 50%; transform: translateX(-50%); width: var(--colw); top: calc(8px + env(safe-area-inset-top)); padding: 0 10px;
  pointer-events: none; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.popRow { display: flex; align-items: baseline; gap: 4px; background: var(--navy); color: var(--paper); border-radius: 12px; padding: 3px 16px 5px;
  box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4px var(--gold), 0 4px 0 rgba(20,24,40,.35); }
.popRow small { color: var(--goldL); }
.popRow .ic { width: 24px; height: 24px; align-self: center; }
.popRow b { font-size: 34px; font-weight: 400; line-height: 1.05; font-variant-numeric: tabular-nums; }
.popRow small { font-size: 16px; }
.popRow.bump b { animation: bump .35s ease-out; }
@keyframes bump { 0% { transform: scale(1.35); } 100% { transform: none; } }
/* ニュース帯（v0.12：国の傾向が右から左へ流れる。項目は「分野｜内容」、あいだは◆） */
#news { position: relative; width: 100%; height: 26px; overflow: hidden; border-radius: 8px; background: var(--navy); color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--gold), 0 3px 0 rgba(20,24,40,.3); }
#newsTrack { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
#news .nItem { font-size: 14px; line-height: 1; display: inline-block; }
#news .cat { color: var(--goldL); font-weight: 400; }
#news .bar { color: var(--gold); margin: 0 3px; }
#news .nItem.gold .tx, #news .nItem.gold .cat { color: #F2D98F; }
#news .nItem.gold { font-size: 15px; }
#news.drop { animation: trendDrop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes trendDrop { 0% { transform: translateY(-14px) scale(1.06); } 100% { transform: none; } }
.popRow .lbl { font-size: 14px; color: var(--goldL); margin-right: 2px; align-self: center; }
.nextBar { position: relative; width: min(220px, 70%); height: 16px; border-radius: 8px; background: var(--navyL); overflow: hidden; box-shadow: 0 2px 0 rgba(20,24,40,.3); }
.nextBar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); border-radius: 8px; }
.nextBar span { position: absolute; inset: 0; font-size: 11px; line-height: 16px; text-align: center; color: var(--paper); text-shadow: 0 1px 0 rgba(20,24,40,.6); }
.disRow { display: flex; align-items: center; gap: 6px; width: min(300px, 92%); background: var(--paper); border-radius: 10px; padding: 4px 8px; box-shadow: inset 0 0 0 1.5px var(--gold), 0 3px 0 rgba(20,24,40,.25); }
.disRow .ic { width: 22px; height: 22px; }
.meter { flex: 1; height: 14px; border-radius: 7px; background: rgba(42,39,48,.12); overflow: hidden; position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; background: var(--pink); border-radius: 7px; transition: width .2s linear; }
.disRow.hot { animation: hot .5s ease-in-out infinite alternate; }
@keyframes hot { to { box-shadow: inset 0 0 0 1.5px var(--gold), 0 3px 0 rgba(20,24,40,.25), 0 0 0 4px var(--pink); } }
.stats { display: flex; gap: 6px; width: min(300px, 92%); }
.st { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; background: var(--paper); border-radius: 8px; padding: 3px 5px; box-shadow: inset 0 0 0 1.5px var(--gold), 0 3px 0 rgba(20,24,40,.25); }
.st .ic { width: 16px; height: 16px; }
.st .bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(42,39,48,.12); position: relative; overflow: hidden; }
.st .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--sage); }
.st .bar::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(42,39,48,.45); } /* 50 の線（下回ると不満） */
.st.low .bar i { background: var(--pink); }
.st.low { animation: lowPulse .8s ease-in-out infinite alternate; }
@keyframes lowPulse { to { transform: translateY(-2px); } }
.st.flash { animation: stFlash .5s ease-out; }
@keyframes stFlash { 0% { transform: scale(1.15); } 100% { transform: none; } }

/* 革命が近いときの、画面のふち */
#alarm { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 0 var(--pink); transition: opacity .3s; }
#alarm.on { opacity: 1; animation: alarm .45s ease-in-out infinite alternate; }
@keyframes alarm { from { box-shadow: inset 0 0 0 6px var(--pink); } to { box-shadow: inset 0 0 0 18px var(--pink); } }

/* ---------- 国民の吹き出し ---------- */
#bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bub { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); max-width: 46vw; width: max-content; background: #FFFFFF; color: var(--ink);
  border-radius: 14px; padding: 4px 10px 6px; font-size: 13px; line-height: 1.3; text-align: center; box-shadow: 0 3px 0 rgba(20,24,40,.3);
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.bub::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-top-color: #FFFFFF; border-bottom: 0; }
.bub.angry { background: var(--pink); color: #FFF6EE; }
.bub.angry::after { border-top-color: var(--pink); }
.bub.praise { background: #FFF6DA; }
.bub.praise::after { border-top-color: #FFF6DA; }
.bub.in { animation: bubIn .2s ease-out both; }
@keyframes bubIn { from { transform: translate(-50%, -80%) scale(.6); opacity: 0; } to { transform: translate(-50%, -100%); opacity: 1; } }

/* ---------- 3択 ---------- */
/* 下寄せ（窓ぎわの国民の声が見えるように）。最下部の見えない所（--under）には掛けない */
#choice { position: absolute; left: 50%; bottom: var(--under); transform: translateX(-50%); width: min(100% - 20px, 420px); z-index: 6; }
#app.choosing #bubbles { z-index: 7; }
#choice::before { content: ''; position: fixed; inset: -100vh -100vw; background: rgba(20,24,40,.35); z-index: -1; }
.cHead { margin: 0 0 6px; text-align: center; font-size: 18px; color: var(--ivory); text-shadow: 0 2px 0 rgba(71,64,74,.5); }
.cards { display: flex; flex-direction: column; gap: 10px; }
.pc { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  font-family: var(--pg-font); color: var(--ink); background: var(--paper); border: 0; border-radius: 6px; padding: 10px 12px 10px 0; cursor: pointer;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--gold), inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--gold), 0 5px 0 rgba(20,24,40,.4);
  margin-bottom: 5px; overflow: hidden; }
.pc:active { transform: translateY(4px); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--gold), inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--gold), 0 1px 0 rgba(20,24,40,.4); }
.pc .fld { grid-row: 1 / 4; align-self: stretch; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; font-size: 12px; width: 26px; color: var(--paper); position: relative; z-index: 1;
  margin: -10px 0; padding: 6px 0; letter-spacing: .1em; }
.pc b { font-size: 19px; font-weight: 400; line-height: 1.25; }
.pc .ds { grid-column: 2; word-break: keep-all; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; color: var(--pg-sub); margin-top: 5px; padding-top: 5px; border-top: 1px dashed #D8C9A6; }
.pc .mk { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; }
.mkI { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; line-height: 1; padding: 3px 6px 3px 4px; border-radius: 8px; }
.mkI .ic { width: 16px; height: 16px; }
.mkI.good { background: #E4ECD9; color: var(--good); }
.mkI.bad { background: #F4DED8; color: var(--bad); }
.mkI .slow { font-size: 10px; margin-left: 2px; padding: 1px 3px; border-radius: 4px; background: rgba(42,39,48,.1); color: var(--ink); }
.f-eco .fld { background: #B08A35; }
.f-soc .fld { background: #9A5A4E; }
.f-edu .fld { background: #4A6390; }
.f-env .fld { background: #4E7D46; }
.f-safe .fld { background: #4C5263; }
/* 3枚は画面の下からせり上がる（依頼者の決定 2026-11-24） */
#choice.in .pc { animation: cardUp .42s cubic-bezier(.2,1.25,.4,1) both; }
#choice.in .pc:nth-child(2) { animation-delay: .07s; }
#choice.in .pc:nth-child(3) { animation-delay: .14s; }
@keyframes cardUp { from { transform: translateY(100vh); } to { transform: none; } }
#choice.in::before { animation: dimIn .25s ease-out both; }
@keyframes dimIn { from { opacity: 0; } to { opacity: 1; } }
/* レベルアップ！：紺の板に金のふち。まん中にドスン */
#lvl { position: absolute; left: 50%; top: 46%; z-index: 8; pointer-events: none; transform: translate(-50%, -50%); white-space: nowrap;
  background: var(--navy); color: var(--goldL); border-radius: 14px; padding: 12px 26px 15px; font-size: 34px;
  box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 6px var(--gold), 0 7px 0 rgba(20,24,40,.4); }
#lvl b { font-weight: 400; display: inline-block; }
#lvl.in { animation: lvlIn .34s cubic-bezier(.2,1.6,.4,1) both; }
#lvl.out { animation: lvlOut .18s ease-in both; }
@keyframes lvlIn { 0% { transform: translate(-50%, -160%) scale(.7); opacity: 0; } 55% { transform: translate(-50%, -46%) scaleY(.86) scaleX(1.08); opacity: 1; } 100% { transform: translate(-50%, -50%); } }
@keyframes lvlOut { to { transform: translate(-50%, -50%) scale(.85); opacity: 0; } }
@media (max-width: 340px) { #lvl { font-size: 28px; padding: 10px 20px 12px; } }
.pc.pick { z-index: 2; }
.pc.gone { animation: cardGone .22s ease-in both !important; }
@keyframes cardGone { to { transform: scale(.85); opacity: 0; } }
.pc .hanko { position: absolute; right: 14px; top: 50%; width: 64px; height: 64px; margin-top: -32px; border-radius: 50%; border: 4px solid var(--pg-shu); color: var(--pg-shu);
  display: flex; align-items: center; justify-content: center; font-size: 17px; transform: rotate(-14deg); animation: hanko .3s cubic-bezier(.2,1.6,.4,1) both; background: rgba(251,247,236,.6);
  box-shadow: inset 0 0 0 3px rgba(251,247,236,.6), inset 0 0 0 5px var(--pg-shu); }
@keyframes hanko { 0% { transform: rotate(-14deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-14deg) scale(.92); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); } }

/* ---------- 帯・ポップ文字 ---------- */
#band { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 7; pointer-events: none; white-space: nowrap;
  background: var(--navy); color: var(--paper); border-radius: 10px; padding: 8px 18px 10px; font-size: 22px; box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4px var(--gold); }
#band.danger { background: var(--pink); color: #FFF6EE; box-shadow: inset 0 0 0 2px var(--pink), inset 0 0 0 4px #FFF6EE; }
#pops { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.pop { position: absolute; transform: translate(-50%, -50%); font-size: 22px; white-space: nowrap; color: var(--ink);
  text-shadow: 0 3px 0 var(--ivory), 0 -3px 0 var(--ivory), 3px 0 0 var(--ivory), -3px 0 0 var(--ivory); }

/* ---------- タイトル・結果 ---------- */
.ov { position: absolute; inset: 0; z-index: 10; display: none; }
.ov.show { display: block; }
#ovTitle { background: linear-gradient(to bottom, rgba(246,240,225,.92) 0%, rgba(246,240,225,.7) 30%, rgba(246,240,225,0) 52%); }
.tHead .pg-title { color: var(--navy); }
.tHead { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 7vh); transform: translateX(-50%); width: min(100% - 24px, 420px); text-align: center; }
.tHead .pg-title { font-size: clamp(40px, 13vw, 60px); line-height: 1.05; }
.tLead { margin: 12px 0 18px; font-size: 14px; }
.tHead .pg-btn.big { font-size: 26px; padding: 14px 46px; border-radius: 18px; }
.tBest { margin: 12px 0 0; font-size: 14px; min-height: 1em; }
/* 中断セーブ（v1.8）：あそぶ＝つづきから。下に小さく「最初から」（1回目で「今の国を消して 最初から」に変わり、2回目で始まる） */
#bPlaySub { display: block; font-size: 12px; margin-top: 2px; opacity: .9; }
.tNew { display: block; margin: 12px auto 0; padding: 6px 16px; border: 0; border-radius: 10px; background: rgba(38,49,79,.1); color: var(--navy); font: inherit; font-size: 13px; }
.tNew.warn { background: var(--pink); color: #FBF7EC; }
.tSign { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sb) + 12px); opacity: .9; }
.pg-sign::after { background: var(--gold); }

#ovResult { background: rgba(20,24,40,.4); }
#ovResult .card { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 16px); transform: translateX(-50%); width: min(100% - 20px, 420px);
  max-height: calc(100% - var(--under) - env(safe-area-inset-top) - 10px); overflow: auto; background: var(--paper); border-radius: 8px; padding: 16px 16px 14px; text-align: center;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 7px var(--gold), inset 0 0 0 9px var(--paper), inset 0 0 0 10px var(--gold), 0 6px 0 rgba(20,24,40,.4); }
#ovResult.show .card { animation: resIn .35s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes resIn { from { transform: translate(-50%, 30px) scale(.9); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.rHead { margin: 0; font-size: 30px; color: var(--bad); }
.rPop { margin: 2px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.rPop b { font-size: 52px; font-weight: 400; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rPop small { font-size: 20px; }
.rBest { margin: 2px 0 8px; font-size: 14px; min-height: 1em; }
.rBest .new { background: var(--goldL); border-radius: 8px; padding: 1px 8px; }
.rHist { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0 0 12px; max-height: 32vh; overflow: auto; }
.rHist span { font-size: 12px; line-height: 1.2; border-radius: 4px; padding: 4px 7px 4px 9px; background: #F1E9D6; box-shadow: inset 4px 0 0 var(--c, var(--lav)); }
.rHist span small { margin-right: 4px; color: var(--pg-sub); }
.rBtns { display: flex; gap: 8px; justify-content: center; }
.rBtns .pg-btn { font-size: 20px; padding: 12px 18px; }
.rBtns .pg-btn.small { font-size: 15px; background: #F1E9D6; }

@media (max-width: 340px) {
  .pc b { font-size: 17px; }
  .pc .ds { font-size: 11px; }
  .mkI { font-size: 12px; padding: 2px 5px 2px 3px; }
  .popRow b { font-size: 30px; }
  #news .nItem { font-size: 13px; }
}

/* 国のかたちが変わる瞬間の、空のピカッ */
#flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: #FFFBEA; opacity: 0; }
#flash.on { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: .85; } 100% { opacity: 0; } }
.rNation { margin: 4px 0 0; font-size: 15px; color: var(--navy); }
.rNation:empty { display: none; }

/* 音のオン／オフ（右上。最下部には置かない） */
#bMute { position: absolute; right: calc(8px + env(safe-area-inset-right)); top: calc(10px + env(safe-area-inset-top)); z-index: 12; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: var(--navy); color: var(--goldL); padding: 7px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3.5px var(--gold), 0 3px 0 rgba(20,24,40,.35); }
#bMute svg { width: 100%; height: 100%; display: block; }
#bMute .x { display: none; }
#bMute.off .x { display: inline; }
#bMute.off .w { display: none; }
@media (max-width: 400px) { #bMute { width: 32px; height: 32px; padding: 6px; } }
#app:has(#ovResult.show) #bMute { display: none; } /* 結果のカードと重ならないように */

/* ---------- v0.3 国の指標（2026-11-24 依頼者「国の状況を数字に・強み弱みをわかりやすく」） ---------- */
.supRow { display: flex; align-items: center; gap: 6px; width: min(300px, 92%); background: var(--paper); border-radius: 10px; padding: 4px 8px; box-shadow: inset 0 0 0 1.5px var(--gold), 0 3px 0 rgba(20,24,40,.25); }
.supRow .lbl { font-size: 11px; white-space: nowrap; }
.supRow b { font-weight: 400; font-size: 15px; min-width: 2.6em; text-align: right; font-variant-numeric: tabular-nums; }
.supRow .meter i { background: var(--sage); transition: width .2s linear, background .3s; }
.supRow.mid .meter i { background: var(--gold); }
.supRow.low .meter i { background: var(--pink); }
.supRow.low { animation: hot .5s ease-in-out infinite alternate; }
.supRow.low b { color: var(--bad); }
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: min(320px, 96%); }
.ind { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 3px; align-items: center;
  background: var(--paper); border-radius: 8px; padding: 3px 5px 3px 4px; box-shadow: inset 0 0 0 1.5px var(--gold), 0 3px 0 rgba(20,24,40,.25); }
.ind .ic { grid-row: 1 / 3; width: 16px; height: 16px; }
.ind b { font-weight: 400; font-size: 13px; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: clip; }
.ind small { font-size: 9.5px; line-height: 1.1; white-space: nowrap; color: var(--pg-sub); }
.ind.debt b { color: var(--bad); }
.ind small.top { color: #8A6A1E; } .ind small.top::before { content: '★'; }
.ind small.bad { color: var(--bad); }
.ind.flash { animation: stFlash .5s ease-out; }
@media (max-width: 340px) { .ind b { font-size: 12px; } .ind { padding: 3px 3px 3px 3px; } .ind .ic { width: 13px; height: 13px; } }
/* 国力レーダー（左上の小さいの・結果の大きいの） */
.radar .ring { fill: none; stroke: rgba(38,49,79,.25); stroke-width: 1; }
.radar .ax { stroke: rgba(38,49,79,.2); stroke-width: 1; }
.radar .shape { fill: rgba(201,162,74,.55); stroke: #9C7A2E; stroke-width: 2; stroke-linejoin: round; }
.radar .bg { fill: var(--paper); stroke: var(--gold); stroke-width: 2; }
.radar text { font-family: var(--pg-font); font-size: 11px; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
#radarMini { position: absolute; left: calc(6px + env(safe-area-inset-left)); top: 0; width: 64px; height: 64px; filter: drop-shadow(0 3px 0 rgba(20,24,40,.25)); }
#radarMini.bump { animation: bump .4s ease-out; }
@media (max-width: 360px) { #radarMini { width: 54px; height: 54px; left: 4px; } }
/* 1年ごとの収支（国庫の札から浮かぶ） */
#flows { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.flow { position: absolute; transform: translate(-50%, 0); font-size: 12px; white-space: nowrap; color: var(--good); background: var(--paper); border-radius: 6px; padding: 1px 5px;
  box-shadow: 0 2px 0 rgba(20,24,40,.25); animation: flowUp 1.4s ease-out both; }
.flow.neg { color: var(--bad); }
@keyframes flowUp { 0% { opacity: 0; transform: translate(-50%, 6px); } 15% { opacity: 1; transform: translate(-50%, 0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 18px); } }
/* カードのお金 */
.pc .money { grid-column: 2; display: flex; flex-wrap: wrap; gap: 3px 6px; margin-top: 5px; font-size: 12px; }
.pc .money span { background: #EFE6CF; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.pc .money .in { color: var(--good); background: #E4ECD9; }
.pc .money .out { color: var(--bad); background: #F4DED8; }
.pc .money .debt { color: #FBF7EC; background: var(--bad); }
/* 見送る（カードの上の右。最下部には置かない） */
.cTop { display: flex; justify-content: flex-end; margin-bottom: 6px; }
#bSkip { font-family: var(--pg-font); font-size: 14px; color: var(--paper); background: var(--navy); border: 0; border-radius: 10px; padding: 6px 12px 7px; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--navy), inset 0 0 0 3px var(--gold), 0 3px 0 rgba(20,24,40,.4); display: flex; align-items: baseline; gap: 6px; }
#bSkip small { font-size: 10px; color: var(--goldL); }
#bSkip:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--navy), inset 0 0 0 3px var(--gold), 0 0 0 rgba(20,24,40,.4); }
#choice.in .cTop { animation: cardUp .42s cubic-bezier(.2,1.25,.4,1) .2s both; }
/* レベルアップの国力 */
#lvl { text-align: center; }
#lvl small { display: block; font-size: 15px; color: var(--paper); margin-top: 2px; }
#lvl small:empty { display: none; }
/* 結果：大きなレーダーと指標の順位 */
.rNation2 { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
#radarBig { width: 140px; height: 132px; flex: none; }
.rInds { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; font-size: 12px; }
.rInds div { display: flex; justify-content: space-between; gap: 4px; background: #F1E9D6; border-radius: 5px; padding: 3px 6px; }
.rInds div span:last-child { white-space: nowrap; }
.rInds .top { color: #8A6A1E; } .rInds .bad { color: var(--bad); }
.rInds .pow { background: var(--navy); color: var(--goldL); }
@media (max-width: 340px) { #radarBig { width: 118px; height: 112px; } .rInds { font-size: 11px; } }

/* v0.4 レベルアップの札と、公共投資のボタン */
.pc .lv { font-style: normal; font-size: 12px; margin-left: 6px; padding: 1px 6px 2px; border-radius: 6px; background: var(--navy); color: var(--goldL); vertical-align: 3px; }
.pc.up { box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--gold), inset 0 0 0 7px var(--paper), inset 0 0 0 9px var(--gold), 0 5px 0 rgba(20,24,40,.4); }
.cTop { gap: 6px; }
#bInvest { font-family: var(--pg-font); font-size: 14px; color: var(--ink); background: var(--goldL); border: 0; border-radius: 10px; padding: 6px 10px 7px; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--goldL), inset 0 0 0 3px #9C7A2E, 0 3px 0 rgba(20,24,40,.4); display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
#bInvest small { font-size: 10px; }
#bInvest.debt small { color: var(--bad); }
#bInvest:active { transform: translateY(3px); }
@media (max-width: 340px) { #bInvest, #bSkip { font-size: 13px; padding: 5px 8px 6px; gap: 4px; } #bInvest small, #bSkip small { font-size: 9px; } }
/* 背の低い画面：3択を小さめに（ボタンが上の表示に重ならないように） */
@media (max-height: 720px) {
  .cards { gap: 6px; }
  .pc { padding: 7px 10px 7px 0; margin-bottom: 3px; }
  .pc b { font-size: 16px; }
  .pc .mk { margin-top: 3px; }
  .mkI { font-size: 11px; padding: 2px 4px 2px 3px; } .mkI .ic { width: 13px; height: 13px; }
  .pc .money { margin-top: 3px; font-size: 11px; }
  .pc .ds { font-size: 10.5px; line-height: 1.3; margin-top: 3px; padding-top: 3px; }
  .cTop { margin-bottom: 4px; }
}

/* ---------- v0.5 節目と国家方針 ---------- */
#mile { position: absolute; left: 50%; top: 42%; z-index: 9; pointer-events: none; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; width: max-content;
  background: var(--gold); color: var(--navy); border-radius: 16px; padding: 12px 26px 16px;
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px var(--navy), 0 8px 0 rgba(20,24,40,.45); }
#mile > small, #mile > span { display: block; font-size: 16px; }
#mile b { display: block; font-weight: 400; font-size: 46px; line-height: 1.1; }
#mile.in { animation: lvlIn .42s cubic-bezier(.2,1.6,.4,1) both; }
#mile.out { animation: lvlOut .2s ease-in both; }
#doc { position: absolute; left: 50%; bottom: var(--under); transform: translateX(-50%); width: min(100% - 16px, 440px); z-index: 9; }
#doc::before { content: ''; position: fixed; inset: -100vh -100vw; background: rgba(20,24,40,.5); z-index: -1; }
.docPaper { background: var(--paper); border-radius: 8px; padding: 14px 12px 12px; text-align: center;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 7px var(--gold), inset 0 0 0 9px var(--paper), inset 0 0 0 10px var(--gold), 0 8px 0 rgba(20,24,40,.45); }
.docHead { margin: 0; display: inline-block; font-size: 13px; color: var(--paper); background: var(--pg-shu); border-radius: 999px; padding: 2px 14px; }
#docQ { margin: 6px 0 10px; font-weight: 400; font-size: 26px; color: var(--navy); }
#docOpts { display: flex; flex-direction: column; gap: 8px; }
.dop { position: relative; display: grid; gap: 4px; text-align: left; font-family: var(--pg-font); color: var(--ink); background: #F1E9D6; border: 0; border-radius: 10px;
  padding: 9px 12px 10px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--gold), 0 4px 0 rgba(20,24,40,.3); overflow: hidden; }
.dop:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--gold), 0 1px 0 rgba(20,24,40,.3); }
.dop b { font-weight: 400; font-size: 20px; color: var(--navy); }
.dop .mk { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.dop .money { display: flex; flex-wrap: wrap; gap: 3px 6px; font-size: 12px; }
.dop .money span { background: #EFE6CF; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.dop .money .in { color: var(--good); background: #E4ECD9; } .dop .money .out { color: var(--bad); background: #F4DED8; }
.dop .ds { font-size: 12px; line-height: 1.4; color: var(--pg-sub); word-break: keep-all; overflow-wrap: anywhere; }
.dop.gone { animation: cardGone .22s ease-in both; }
.dop .hanko { position: absolute; right: 10px; top: 50%; width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; border: 4px solid var(--pg-shu); color: var(--pg-shu);
  display: flex; align-items: center; justify-content: center; font-size: 22px; transform: rotate(-14deg); animation: hanko .3s cubic-bezier(.2,1.6,.4,1) both; background: rgba(251,247,236,.7);
  box-shadow: inset 0 0 0 3px rgba(251,247,236,.6), inset 0 0 0 5px var(--pg-shu); }
#doc.in .docPaper { animation: cardUp .45s cubic-bezier(.2,1.25,.4,1) both; }
#doc.out { animation: cardGone .25s ease-in both; }
.rHist .docH { background: var(--navy); color: var(--goldL); box-shadow: none; }
.rHist .docH small { color: var(--paper); }
@media (max-height: 720px) { #docQ { font-size: 22px; margin: 4px 0 8px; } .dop { padding: 7px 10px 8px; } .dop b { font-size: 17px; } .dop .ds { font-size: 11px; } }

/* ---------- v0.7 予算と事件 ---------- */
.ind[data-k], #inds .ind:first-child { pointer-events: auto; cursor: pointer; }
#inds .ind:first-child { box-shadow: inset 0 0 0 2px var(--pg-shu), 0 3px 0 rgba(20,24,40,.25); }
#inds .ind:first-child small.top0 { color: var(--good); }
#budget, #evCard { position: absolute; left: 50%; bottom: var(--under); transform: translateX(-50%); width: min(100% - 16px, 440px); z-index: 9; }
#budget::before, #evCard::before { content: ''; position: fixed; inset: -100vh -100vw; background: rgba(20,24,40,.45); z-index: -1; }
#budget.in .docPaper, #evCard.in .docPaper { animation: cardUp .4s cubic-bezier(.2,1.25,.4,1) both; }
#budRows { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 6px; }
.bRow { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 6px; background: #F1E9D6; border-radius: 8px; padding: 5px 6px; text-align: left; }
.bRow .ic { width: 20px; height: 20px; }
.bName { display: flex; flex-direction: column; min-width: 0; }
.bName b { font-weight: 400; font-size: 15px; color: var(--navy); }
.bName small { font-size: 10px; color: var(--pg-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bRow button { font-family: var(--pg-font); width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--navy); color: var(--goldL); font-size: 18px; cursor: pointer; box-shadow: 0 3px 0 rgba(20,24,40,.35); }
.bRow button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(20,24,40,.35); }
.bRow button:disabled { opacity: .3; cursor: default; }
.bDots { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; }
.bDots i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: rgba(42,39,48,.15); margin: 0 1px; }
.bDots i.on { background: var(--gold); }
.bDots small { font-size: 10px; color: var(--pg-sub); white-space: nowrap; }
.bDots { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; }
.bDots small { grid-column: 1 / 6; text-align: center; }
.budTotal { margin: 4px 0 8px; font-size: 14px; }
.budTotal b { font-weight: 400; font-size: 20px; color: var(--good); }
.budTotal b.neg { color: var(--bad); }
#budOk { font-size: 18px; padding: 8px 30px; }
#evMark { position: absolute; left: 0; top: 0; z-index: 6; transform: translate(-50%, -100%); border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--pg-font); }
#evMark b { font-weight: 400; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #FFF6EE; font-size: 26px;
  background: radial-gradient(circle, var(--pg-shu) 58%, transparent 60%), conic-gradient(#FFF6EE calc(var(--k, 1) * 360deg), rgba(255,246,238,.25) 0); box-shadow: 0 4px 0 rgba(20,24,40,.4); animation: evPulse .7s ease-in-out infinite alternate; }
#evMark small { font-size: 11px; color: #FFF6EE; background: var(--pg-shu); border-radius: 6px; padding: 1px 6px 2px; white-space: nowrap; box-shadow: 0 2px 0 rgba(20,24,40,.3); }
#evMark.in { animation: lvlIn .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes evPulse { to { transform: scale(1.12); } }
#evQ { margin: 6px 0 10px; font-weight: 400; font-size: 22px; color: var(--navy); }
#evOpts { display: flex; flex-direction: column; gap: 8px; }
#evOpts .dop { padding: 8px 12px 9px; }
#evOpts .dop b { font-size: 18px; }
@media (max-height: 720px) { .bRow { padding: 3px 5px; } .bRow button { width: 28px; height: 28px; } .bName small { display: none; } }

/* v0.8 決断の絵記号（その場所から上の表示へ飛ぶ） */
.flyIc { position: absolute; z-index: 8; display: flex; align-items: center; gap: 1px; background: var(--paper); border-radius: 10px; padding: 3px 6px; box-shadow: 0 3px 0 rgba(20,24,40,.35), inset 0 0 0 2px var(--gold); pointer-events: none; }
.flyIc svg { width: 22px; height: 22px; display: block; }
.flyIc b { font-weight: 400; font-size: 16px; }
.flyIc.up b { color: var(--good); } .flyIc.down b { color: var(--bad); }

/* v0.8 札の絵と大きな効果の印 */
.pc .thumb { position: absolute; right: 10px; top: 6px; width: 64px; height: 64px; pointer-events: none; filter: drop-shadow(0 3px 0 rgba(20,24,40,.2)); }
.pc > b, .pc .mk { padding-right: 66px; }
.mkI { font-size: 14px; padding: 3px 7px 3px 4px; gap: 2px; }
.mkI .ic { width: 18px; height: 18px; }
.mkI .mkN { font-size: 11px; margin-right: 1px; }
.mkI b { font-weight: 400; font-size: 15px; }
@media (max-width: 340px) { .pc .thumb { width: 54px; height: 54px; } .pc > b, .pc .mk { padding-right: 56px; } .mkI .mkN { display: none; } }
@media (max-height: 720px) { .pc .thumb { width: 52px; height: 52px; top: 4px; } .pc > b, .pc .mk { padding-right: 56px; } .mkI { font-size: 12px; } .mkI b { font-size: 13px; } }

/* 札の右の絵：「選ぶと町がこうなる」（v0.8）。少し大きく */
.pc .thumb { width: 84px; height: 84px; top: 2px; right: 6px; }
.pc > b, .pc .mk { padding-right: 84px; }
@media (max-width: 340px) { .pc .thumb { width: 70px; height: 70px; } .pc > b, .pc .mk { padding-right: 70px; } }
@media (max-height: 720px) { .pc .thumb { width: 66px; height: 66px; } .pc > b, .pc .mk { padding-right: 66px; } }

/* ---------- 国タイプ（v0.13：左上の国旗・タップで開くカード・保存して投稿・結果） ---------- */
#flagBtn { position: absolute; left: calc(6px + env(safe-area-inset-left)); top: 2px; width: 66px; height: 46px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer;
  filter: drop-shadow(0 3px 0 rgba(20,24,40,.3)); }
#flagBtn canvas { width: 100%; height: 100%; display: block; }
#flagBtn.bump { animation: bump .45s ease-out; }
#flagBtn.ready::after { content: ''; position: absolute; inset: -4px; border-radius: 6px; box-shadow: 0 0 0 3px var(--goldL); animation: flagPing 1.6s ease-out 3; pointer-events: none; }
@keyframes flagPing { 0% { opacity: 1; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.25); } }
@media (max-width: 360px) { #flagBtn { width: 56px; height: 40px; left: 4px; } }

#nation, #saveBox { position: absolute; inset: 0; z-index: 8; background: rgba(20,24,40,.45); display: flex; justify-content: center; align-items: flex-start; }
#nation[hidden], #saveBox[hidden] { display: none; }
.nCard, .sCard { margin-top: calc(env(safe-area-inset-top) + 14px); width: min(100% - 20px, 400px); max-height: calc(100% - var(--under, 64px) - 30px); overflow: auto;
  background: var(--paper); border-radius: 8px; padding: 16px 14px 14px; text-align: center;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 7px var(--gold), 0 6px 0 rgba(20,24,40,.4); animation: resIn .3s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes resInC { from { transform: translateY(20px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.nCard, .sCard { animation-name: resInC; }
#nFlag { width: 180px; height: 100px; display: block; margin: 4px auto 6px; }
.nLead { margin: 0; font-size: 15px; color: var(--pg-sub, #6A6070); }
.nStory { margin: 4px 0 0; font-size: 17px; line-height: 1.4; }
.nName { margin: 2px 0 10px; font-size: 18px; }
.nName b { font-size: 36px; font-weight: 400; color: #A8343A; margin-right: 4px; }
.nName.pending { font-size: 14px; line-height: 1.5; }
.nBtns, .sBtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 10px; }
.nBtns .pg-btn, .sBtns .pg-btn { font-size: 17px; padding: 10px 16px; }
.nWhy { list-style: none; padding: 0; margin: 0 0 6px; text-align: left; }
.nWhy li { font-size: 13px; line-height: 1.45; padding: 6px 8px 6px 24px; margin-bottom: 5px; background: #F1E9D6; border-radius: 6px; position: relative; }
.nWhy li::before { content: ''; position: absolute; left: 9px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.nWhy li .bar { color: var(--gold); margin: 0 2px; }
#nRadar { width: 160px; height: 150px; display: block; margin: 0 auto; }
#nAd { margin: 14px auto 2px; }
.sWhy { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
#sImg { width: 100%; max-width: 300px; border-radius: 6px; display: block; margin: 0 auto; }

.rNat { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 10px; padding: 8px; background: #F1E9D6; border-radius: 8px; }
.rNat[hidden] { display: none; }
#rFlag { width: 60px; height: 40px; }
.rNat p { margin: 0; font-size: 14px; text-align: left; }
.rNat p b { font-size: 20px; font-weight: 400; color: #A8343A; }
.rNat .pg-btn { font-size: 15px; padding: 8px 12px; }
.rAd { margin: 4px auto 12px; }

/* 時代が変わる札（v1.3） */
#eraBan { position: absolute; left: 50%; top: 36%; z-index: 9; pointer-events: none; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; width: max-content;
  background: var(--navy); color: var(--paper); border-radius: 12px; padding: 10px 22px 12px; box-shadow: inset 0 0 0 3px var(--gold), 0 6px 0 rgba(20,24,40,.35); }
#eraBan > small, #eraBan > span { display: block; font-size: 14px; color: var(--goldL); }
#eraBan b { display: block; font-weight: 400; font-size: 40px; line-height: 1.15; }
#eraBan.in { animation: lvlIn .42s cubic-bezier(.2,1.6,.4,1) both; }
#eraBan.out { animation: lvlOut .2s ease-in both; }
@media (max-width: 340px) { #eraBan b { font-size: 34px; } }
.pc .lv.era { background: var(--goldL); color: var(--navy); }   /* v1.3 時代の制度の印（都市・宇宙など） */

/* 地区づくり（v1.4）：国家方針の書類と同じ形 */
#zone { position: absolute; left: 50%; bottom: var(--under); transform: translateX(-50%); width: min(100% - 16px, 440px); z-index: 9; }
#zone::before { content: ''; position: fixed; inset: -100vh -100vw; background: rgba(20,24,40,.35); z-index: -1; }
#zone .docHead { background: #6F9A5E; }
#zoneQ { margin: 6px 0 10px; font-weight: 400; font-size: 26px; color: var(--navy); }
#zoneOpts { display: flex; flex-direction: column; gap: 8px; }
#zone.in .docPaper { animation: cardUp .45s cubic-bezier(.2,1.25,.4,1) both; }
#zone.out { animation: cardGone .25s ease-in both; }
@media (max-height: 720px) { #zoneQ { font-size: 22px; margin: 4px 0 8px; } }

/* 大臣（v1.5）：内閣をつくる（方針の書類と同じ形）・事件の大臣の一言 */
#cab { position: absolute; left: 50%; bottom: var(--under); transform: translateX(-50%); width: min(100% - 16px, 440px); z-index: 9; }
#cab::before { content: ''; position: fixed; inset: -100vh -100vw; background: rgba(20,24,40,.45); z-index: -1; }
#cab .docPaper { position: relative; }
#cabHead { background: var(--navy); }
#cabN { position: absolute; right: 12px; top: 12px; font-size: 14px; color: var(--navy); }
#cabQ { margin: 6px 0 10px; font-weight: 400; font-size: 24px; color: var(--navy); }
#cabOpts { display: flex; flex-direction: column; gap: 8px; transition: opacity .2s; }
#cabOpts.swapOut { opacity: 0; }
.cop { grid-template-columns: 52px 1fr; column-gap: 10px; align-items: center; }
.cop .face { grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; background: #EFE6CF; }
.cop .who { display: grid; gap: 2px; }
.cop .who b { font-size: 18px; }
#cab.in .docPaper { animation: cardUp .45s cubic-bezier(.2,1.25,.4,1) both; }
#cab.out { animation: cardGone .25s ease-in both; }
#evWho { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 8px; font-size: 14px; color: var(--ink); }
#evWho .face { width: 40px; height: 40px; border-radius: 50%; background: #EFE6CF; flex: none; }
#evWho b { font-weight: 400; color: var(--navy); margin-right: 4px; }
.dop.swapB { background: #E8DCEF; }
@media (max-height: 720px) { #cabQ { font-size: 20px; margin: 4px 0 6px; } .cop .face { width: 42px; height: 42px; } .cop { grid-template-columns: 42px 1fr; } }

/* 外交（v1.6）：書類と右上の「外交」の札 */
#dip { position: absolute; left: 50%; bottom: var(--under); transform: translateX(-50%); width: min(100% - 16px, 440px); z-index: 9; }
#dip::before { content: ''; position: fixed; inset: -100vh -100vw; background: rgba(20,24,40,.45); z-index: -1; }
#dip.in .docPaper { animation: cardUp .45s cubic-bezier(.2,1.25,.4,1) both; }
#dip.out { animation: cardGone .25s ease-in both; }
#dip .docHead { background: #4A6A8A; }
#dipQ { margin: 6px 0 8px; font-weight: 400; font-size: 22px; color: var(--navy); }
#dipRows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; text-align: left; }
.dipRow { background: #F1E9D6; border-radius: 10px; padding: 8px 10px; }
.dipWho { display: flex; align-items: center; gap: 8px; }
.dipWho canvas { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20,24,40,.25); flex: none; }
.dipWho b { font-weight: 400; font-size: 17px; color: var(--navy); }
.dipWho .wait { margin-left: auto; font-size: 12px; color: var(--pg-sub); background: #E6DCC4; border-radius: 6px; padding: 1px 6px; }
.dipRow .ds { margin: 3px 0 6px; font-size: 11px; line-height: 1.4; color: var(--pg-sub); }
.dipSeg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.dipSeg button { font-family: var(--pg-font); font-size: 14px; padding: 6px 0; border: 0; border-radius: 8px; background: #E6DCC4; color: var(--ink); cursor: pointer; }
.dipSeg button.on { background: var(--navy); color: var(--goldL); }
.dipRow.lock .dipSeg button { opacity: 1; color: #8C8577; }
.dipRow.lock .dipSeg button.on { background: #8C8577; color: var(--paper); }
#dipOk { width: 100%; }
#bDip { position: absolute; right: 10px; z-index: 3; height: 24px; padding: 0 10px; border: 0; border-radius: 12px; font-family: var(--pg-font); font-size: 12px;
  background: #4A6A8A; color: var(--paper); pointer-events: auto; cursor: pointer; box-shadow: 0 2px 0 rgba(20,24,40,.35); }
@media (max-height: 720px) { #dipQ { font-size: 18px; margin: 4px 0 6px; } .dipRow { padding: 6px 8px; } .dipRow .ds { display: none; } }

/* v1.7 今の国での効き目（数値が低いほど上げる札がよく効く） */
.mkI .eff { font-size: 10px; border-radius: 5px; padding: 1px 4px; margin-left: 3px; white-space: nowrap; }
.mkI .eff.hi { background: #F2D98F; color: #47404A; }
.mkI .eff.lo { background: #E6DCC4; color: #8C8577; }
