:root {
  --ink: #3b2a35; --ink2: #6d5560; --pink: #ff7aa8; --pink2: #ffd3e3; --gold: #d9a441; --gold2: #f6e2a8;
  --panel: rgba(255, 250, 252, 0.93); --panel2: #fff5f9; --line: #e7b9c9; --shadow: 0 6px 24px rgba(80, 20, 50, 0.25);
  --font: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #1c1220; overflow: hidden; font-family: var(--font); color: var(--ink); user-select: none; }
#wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; overflow: hidden; transform-origin: center; background: #2a1d2e; }
.hidden { display: none !important; }

/* 背景 */
#bg { position: absolute; inset: 0; background: linear-gradient(160deg, #ffd9e6, #c9b8ff); }
#bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
#bg .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; color: rgba(255,255,255,.6); font-size: 14px; }
#bg.dim::after { content: ""; position: absolute; inset: 0; background: rgba(30, 10, 30, .35); }

/* 立ち絵 */
#chars { position: absolute; inset: 0; pointer-events: none; }
.chr { position: absolute; bottom: 0; height: 690px; width: 460px; transform: translateX(-50%); transition: left .35s, opacity .35s, filter .3s; display: flex; align-items: flex-end; justify-content: center; }
.chr img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.chr.dimc { filter: brightness(.6); }
.chr.pop { animation: pop .35s; }
@keyframes pop { 0% { transform: translateX(-50%) translateY(14px); opacity: 0; } 100% { transform: translateX(-50%); opacity: 1; } }
.chr.hop { animation: hop .4s; }
.emo { position: absolute; top: 20px; left: 60%; width: 100px; height: 100px; z-index: 2; animation: emoPop 1.7s forwards; }
.emo svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.emo-sweat { top: 80px; left: 62%; width: 60px; height: 60px; animation-name: emoDrip; }
.emo-gloom { left: 40%; top: 0; animation-name: emoFade; }
.emo-note { animation-name: emoFloat; }
@keyframes emoPop { 0% { transform: scale(0); opacity: 0; } 15% { transform: scale(1.25); opacity: 1; } 25%, 80% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
@keyframes emoDrip { 0% { transform: translateY(-10px); opacity: 0; } 15%, 75% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
@keyframes emoFade { 0% { opacity: 0; transform: translateY(-8px); } 20%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes emoFloat { 0% { transform: scale(0); opacity: 0; } 15% { transform: scale(1.2) rotate(-10deg); opacity: 1; } 50% { transform: translateY(-10px) rotate(8deg); } 80% { opacity: 1; } 100% { transform: translateY(-24px); opacity: 0; } }
@keyframes hop { 0%,100% { transform: translateX(-50%); } 40% { transform: translateX(-50%) translateY(-18px); } }
.ph-chr { width: 360px; height: 600px; border-radius: 180px 180px 24px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: bold; text-shadow: 0 2px 6px rgba(0,0,0,.4); border: 4px solid rgba(255,255,255,.7); }
.ph-chr small { font-size: 18px; margin-top: 8px; }

/* メッセージ窓 */
#msg { position: absolute; left: 70px; right: 70px; bottom: 18px; height: 168px; background: var(--panel); border: 3px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 34px 40px 18px; font-size: 25px; line-height: 1.6; cursor: pointer; z-index: 20; }
#msg::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(231,185,201,.7); border-radius: 16px; pointer-events: none; }
#msgName { position: absolute; top: -22px; left: 30px; background: linear-gradient(90deg, var(--pink), #ff9fc0); color: #fff; padding: 4px 26px; border-radius: 20px; font-size: 22px; font-weight: bold; box-shadow: 0 3px 8px rgba(200,60,110,.3); min-width: 120px; text-align: center; }
#msgName:empty { display: none; }
#msgNext { position: absolute; right: 26px; bottom: 10px; color: var(--pink); animation: blink 1s infinite; font-size: 20px; }
@keyframes blink { 50% { opacity: .2; } }

/* 選択肢 */
#choice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 25; background: rgba(40,10,30,.25); padding-bottom: 150px; }
#choice.side { align-items: flex-end; padding: 240px 70px 150px 0; } /* 右上の通知(最大 3 段)の下から */
#choice.side.many { padding: 200px 70px 130px 0; }
#stage:has(#choice.side:not(.hidden)) #chars .chr[data-pos="c"] { left: 30% !important; }
#stage:has(.hubMenu) #toast { right: auto; left: 50%; transform: translateX(-50%); align-items: center; }
#choice.many { gap: 7px; padding: 64px 0 150px; }
#choice.many .btn { padding: 6px 32px; font-size: 20px; }
#choice.many .btn .note { font-size: 15px; margin-top: 0; }
#choice .ctitle { background: var(--panel2); padding: 8px 26px; border-radius: 14px; font-size: 22px; margin-bottom: 4px; border: 2px solid var(--line); }
.btn { font-family: var(--font); font-size: 22px; color: var(--ink); background: linear-gradient(#fff, #ffeef5); border: 2.5px solid var(--line); border-radius: 16px; padding: 12px 32px; min-width: 420px; cursor: pointer; box-shadow: 0 3px 0 #e0a6bb, var(--shadow); transition: transform .08s, background .15s; text-align: center; position: relative; }
.btn:hover, .btn.focus { background: linear-gradient(#fff3f8, #ffd6e6); transform: translateY(-2px); border-color: var(--pink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #e0a6bb; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn .note { display: block; font-size: 17px; color: #5a3d4a; margin-top: 2px; }
.btn.sm { min-width: 0; font-size: 18px; padding: 8px 18px; }
.btn.gold { border-color: var(--gold); box-shadow: 0 3px 0 #c08a2c, var(--shadow); background: linear-gradient(#fffdf2, #fbefc8); }
.btn.special { border-color: #b98cff; background: linear-gradient(#fbf7ff, #eadcff); }

/* HUD */
#hud { position: absolute; top: 10px; left: 10px; right: 120px; height: 50px; display: flex; gap: 10px; align-items: center; z-index: 15; pointer-events: none; }
.chip { background: var(--panel); border: 2px solid var(--line); border-radius: 26px; padding: 6px 18px; font-size: 19px; box-shadow: 0 2px 8px rgba(0,0,0,.15); white-space: nowrap; }
.chip b { color: var(--pink); }
.chip.season { background: linear-gradient(90deg, #ff8fb5, #ffb37a); color: #fff; border-color: #fff; font-weight: bold; }
#gear { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); font-size: 24px; cursor: pointer; z-index: 40; color: var(--ink); }
#mute { position: absolute; top: 10px; right: 66px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); font-size: 22px; cursor: pointer; z-index: 40; } /* 消音ボタン(メニューのわき) */

/* 汎用パネル */
#view { position: absolute; inset: 0; z-index: 10; }
#overlay { position: absolute; inset: 0; z-index: 30; background: rgba(40, 10, 30, .45); display: flex; align-items: center; justify-content: center; }
.panel { background: var(--panel2); border: 3px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px 28px; position: relative; }
.panel h2 { margin: 0 0 12px; font-size: 26px; color: #c2457a; display: flex; align-items: center; gap: 10px; }
.panel h2::before { content: "♥"; color: var(--pink); }
.close { position: absolute; top: 12px; right: 14px; }
.row { display: flex; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grid { display: grid; gap: 10px; }

/* 能力ゲージ */
.stat { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 8px; font-size: 18px; }
.bar { height: 14px; background: #f1e3ea; border-radius: 8px; overflow: hidden; position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; transition: width .4s; }
.stat .v { text-align: right; font-weight: bold; font-variant-numeric: tabular-nums; }
.up { color: #e2457a; font-weight: bold; animation: rise .9s forwards; position: absolute; right: 100%; margin-right: 6px; top: -4px; font-size: 18px; white-space: nowrap; }
@keyframes rise { 0% { transform: translateY(6px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }

/* 部屋(拠点) */
.hub { position: absolute; left: 24px; top: 72px; bottom: 24px; width: 380px; }
.hubMenu { position: absolute; right: 24px; top: 72px; width: 380px; display: flex; flex-direction: column; gap: 12px; }
.hubMenu .btn { min-width: 0; width: 100%; text-align: left; padding-left: 64px; }
.hubMenu .btn img, .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; object-fit: contain; }
.heartRow { display: flex; gap: 8px; margin-top: 10px; }
.hcard { flex: 1; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px; text-align: center; font-size: 16px; position: relative; overflow: hidden; }
.hcard .face { width: 100%; height: 72px; object-fit: cover; object-position: top; border-radius: 8px; background: #f6e8ef; }
.hcard .nm { font-weight: bold; font-size: 17px; }
.hcard .lonely { position: absolute; top: 4px; right: 4px; background: #6a87d8; color: #fff; border-radius: 8px; font-size: 11px; padding: 0 5px; }
.hearts { color: var(--pink); letter-spacing: -1px; font-size: 16px; }
.hearts .off { color: #e9d3dc; }

/* 予定カード */
.cmdGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 900px; }
.cmd { background: #fff; border: 2.5px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 70px; cursor: pointer; position: relative; min-height: 92px; transition: transform .1s; }
.cmd:hover, .cmd.focus { transform: translateY(-3px); border-color: var(--pink); background: #fff5f9; }
.cmd .nm { font-size: 21px; font-weight: bold; }
.cmd .ds { font-size: 16px; color: var(--ink2); margin-top: 2px; }
.cmd .mini { position: absolute; right: 8px; top: 8px; font-size: 13px; background: #ffe0ec; color: #c2457a; border-radius: 8px; padding: 1px 7px; }
.cmd img { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; object-fit: contain; }

/* 一週間の演出 */
.week { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); width: 760px; }
.days { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.day { width: 120px; height: 120px; border-radius: 18px; background: #fff; border: 3px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; opacity: .35; transition: all .25s; position: relative; }
.day.on { opacity: 1; transform: scale(1.06); border-color: var(--pink); }
.day.great { background: linear-gradient(#fff6c9, #ffd86b); border-color: var(--gold); }
.day .dn { font-weight: bold; font-size: 24px; }
.day .gn { font-size: 15px; color: #c2457a; text-align: center; line-height: 1.2; }
.greatTag { position: absolute; top: -12px; background: var(--gold); color: #fff; border-radius: 10px; padding: 0 8px; font-size: 14px; font-weight: bold; }

/* 窓口 */
.board { position: absolute; right: 30px; top: 76px; width: 560px; }
.quest { background: #fffaf0; border: 2px solid #e6cf9b; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; cursor: pointer; position: relative; box-shadow: 0 2px 0 #e2c68a; }
.quest:hover, .quest.focus { background: #fff2cf; border-color: var(--gold); }
.quest .qt { font-size: 15px; color: #fff; background: #b8853a; border-radius: 6px; padding: 1px 8px; margin-right: 8px; }
.quest .qn { font-size: 20px; font-weight: bold; }
.quest .qi { font-size: 18px; color: var(--ink2); margin-top: 3px; }
.board .qnote { margin: 2px 0 16px; line-height: 1.4; }
.board .qnote small, .nameLoading small { font-size: 16px; }
.quest .best { position: absolute; right: 10px; top: 8px; color: var(--gold); font-size: 22px; }
.odds { font-weight: bold; color: #c2457a; }

/* 店・持ち物 */
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 470px; overflow-y: auto; padding-right: 6px; }
.it { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; cursor: pointer; }
.it:hover { border-color: var(--pink); background: #fff5f9; }
.it img { width: 48px; height: 48px; object-fit: contain; }
.it .nm { font-weight: bold; font-size: 17px; }
.it .ds { font-size: 15px; color: var(--ink2); }
.it .pr { font-weight: bold; color: #b8853a; font-size: 17px; white-space: nowrap; }
.it.no { opacity: .7; }
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab { padding: 6px 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; }
.tab.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.ph-ic { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #ffe8f0; }

/* 戦闘 */
.battle { position: absolute; inset: 0; }
.foes { position: absolute; left: 0; right: 0; top: 70px; height: 360px; display: flex; justify-content: center; align-items: flex-end; gap: 30px; }
.foe { position: relative; display: flex; flex-direction: column; align-items: center; transition: opacity .4s, filter .2s; }
.foe img { max-height: 270px; max-width: 300px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
.foe.boss img { max-height: 360px; max-width: 520px; }
.foe .fn { background: rgba(0,0,0,.6); color: #fff; padding: 2px 12px; border-radius: 10px; font-size: 19px; margin-top: 4px; }
.foe .fhp { width: 160px; height: 8px; background: rgba(0,0,0,.5); border-radius: 4px; overflow: hidden; margin-top: 3px; }
.foe .fhp i { display: block; height: 100%; background: linear-gradient(90deg, #ff5f6d, #ffc371); transition: width .3s; }
.foe.dead { opacity: 0; transform: scale(.8); transition: all .5s; }
.foe.hit { animation: shake .3s, hitFlash .3s; }
@keyframes hitFlash { 0%, 50% { filter: brightness(2.5); } }
.foe.sel::after { content: "▼"; position: absolute; top: -28px; color: #fff; font-size: 26px; animation: blink .6s infinite; text-shadow: 0 0 6px var(--pink); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.dmg { position: absolute; font-size: 40px; font-weight: 900; color: #fff; -webkit-text-stroke: 2px #c2185b; text-shadow: 0 2px 6px rgba(0,0,0,.6); animation: dmg 1.15s forwards; pointer-events: none; z-index: 60; }
.dmg.heal { -webkit-text-stroke: 2px #1e9e6a; }
.dmg.crit { font-size: 48px; color: #ffe066; }
@keyframes dmg { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { transform: translateY(-20px) scale(1.2); opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }
.allies { position: absolute; left: 20px; right: 20px; top: 446px; display: flex; gap: 10px; justify-content: center; }
.ally { width: 230px; background: rgba(20, 10, 30, .8); color: #fff; border: 2.5px solid #fff; border-radius: 14px; padding: 6px 10px 8px 72px; position: relative; min-height: 84px; transition: transform .2s; }
.ally.act { border-color: #ffd86b; transform: translateY(-6px); box-shadow: 0 0 14px #ffd86b; }
.ally.down { opacity: .5; border-color: #888; }
.ally.hurt { animation: shake .3s, hurtFlash .5s; }
@keyframes hurtFlash { 0%, 60% { background: rgba(160, 20, 40, .85); } } /* 赤は一瞬だけ(残らない) */
.ally img, .ally .ph-ic { position: absolute; left: 6px; top: 6px; width: 60px; height: 72px; object-fit: cover; object-position: top; border-radius: 10px; background: #fff3; }
.ally .an { font-weight: bold; font-size: 20px; }
.ally .hp { font-size: 17px; display: grid; grid-template-columns: 34px 1fr 66px; align-items: center; gap: 4px; }
.ally .bar { height: 8px; background: #fff3; }
.blog { position: absolute; left: 70px; right: 70px; bottom: 16px; height: 118px; background: rgba(20, 10, 30, .85); color: #fff; border: 3px solid #fff; border-radius: 16px; padding: 12px 22px; font-size: 21px; line-height: 1.45; overflow: hidden; }
.bcmd { position: absolute; right: 80px; bottom: 150px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: rgba(20,10,30,.88); border: 3px solid #fff; border-radius: 16px; padding: 12px; z-index: 6; }
.bcmd .t { grid-column: 1 / -1; color: #ffd86b; font-weight: bold; font-size: 18px; }
.bbtn { font-family: var(--font); background: transparent; color: #fff; border: 2px solid transparent; border-radius: 10px; font-size: 20px; padding: 6px 14px; text-align: left; cursor: pointer; min-width: 150px; }
.bbtn:hover, .bbtn.focus { border-color: #fff; background: #ffffff22; }
.bbtn::before { content: "▶ "; opacity: 0; }
.bbtn:hover::before, .bbtn.focus::before { opacity: 1; }
.bbtn[disabled] { opacity: .4; }
.bbtn.bond { color: #ffb3d1; }
.flash { position: absolute; inset: 0; pointer-events: none; z-index: 8; animation: flash .5s forwards; }
@keyframes flash { 0% { opacity: .8; } 100% { opacity: 0; } }

/* ダンジョン */
.dun { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 760px; }
.dunInfo { display: flex; justify-content: space-between; align-items: center; background: rgba(20,10,30,.8); color: #fff; border: 3px solid #fff; border-radius: 16px; padding: 10px 20px; font-size: 20px; margin-bottom: 10px; }
.steps { display: flex; gap: 6px; }
.steps i { width: 22px; height: 22px; border-radius: 50%; background: #fff3; border: 2px solid #fff8; }
.steps i.on { background: #ffd86b; }
.steps i.boss { background: #d43d5d; }

/* トースト・フェード */
#toast { position: absolute; top: 76px; right: 20px; width: 340px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--panel2); border: 2.5px solid var(--pink); color: #c2457a; padding: 6px 22px; border-radius: 20px; font-size: 19px; font-weight: bold; box-shadow: var(--shadow); animation: toast 2.4s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-10px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 70; transition: opacity .45s; }
#fade.on { opacity: 1; }
.banner { position: absolute; left: 0; right: 0; top: 240px; height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(90deg, transparent, rgba(255,122,168,.9) 20%, rgba(255,160,120,.9) 80%, transparent); color: #fff; z-index: 50; animation: banner 2s forwards; text-shadow: 0 2px 8px rgba(120,0,50,.5); }
.banner .b1 { font-size: 56px; font-weight: bold; letter-spacing: 6px; }
.banner .b2 { font-size: 22px; }
@keyframes banner { 0% { opacity: 0; transform: scaleY(0); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.heartFx { position: absolute; color: var(--pink); font-size: 30px; pointer-events: none; animation: heartUp 1.4s forwards; z-index: 22; }
@keyframes heartUp { 0% { opacity: 0; transform: translateY(0) scale(.5); } 20% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: translateY(-120px); } }

/* タイトル */
.title { position: absolute; inset: 0; }
.logo { position: absolute; left: 0; right: 0; top: 10px; display: flex; flex-direction: column-reverse; align-items: center; } /* 副題を上(空)に置き、キャラの顔にかけない */
/* ロゴ: 後ろの層(::before)で太い縁と影、前の層で金のグラデーション。光が横に流れる */
.logo .l1 { position: relative; display: inline-block; font-family: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 104px; font-weight: 800; letter-spacing: 10px; line-height: 1.15;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%) 0 0 / 300% 100% no-repeat, linear-gradient(#fffbe6 0%, #ffe07a 38%, #d99a2b 52%, #fff0b8 70%, #e0a640 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: logoShine 4.5s ease-in-out infinite; }
.logo .l1::before { content: attr(data-t); position: absolute; inset: 0; z-index: -1; color: #5a0f2c; -webkit-text-stroke: 14px #5a0f2c; text-shadow: 0 0 2px #ffd36b, 0 8px 0 #3a0718, 0 14px 30px rgba(40,0,20,.6); }
.logo .l1::after { content: "♥"; position: absolute; right: -34px; top: 6px; font-size: 40px; color: #ff6b9a; -webkit-text-fill-color: #ff6b9a; text-shadow: 0 0 10px #fff, 0 0 18px #ff6b9a; animation: logoHeart 1.6s ease-in-out infinite; }
@keyframes logoShine { 0%, 55% { background-position: 150% 0, 0 0; } 100% { background-position: -50% 0, 0 0; } }
@keyframes logoHeart { 50% { transform: scale(1.18); } }
.logo .l2 { margin-bottom: -6px; }
.logo .l2 span { display: inline-block; position: relative; font-family: "Shippori Mincho B1", "Yu Mincho", serif; font-weight: 800; font-size: 24px; letter-spacing: 7px; color: #b0154f; padding: 4px 110px; background: linear-gradient(90deg, transparent, rgba(255,246,250,.92) 22% 78%, transparent); text-shadow: 0 0 2px #fff, 0 0 8px #fff, 0 2px 0 rgba(255,255,255,.9); }
.logo .l2 span::before, .logo .l2 span::after { content: "♥"; position: absolute; top: 50%; width: 96px; transform: translateY(-50%); font-size: 16px; line-height: 2px; color: #ff6b9a; text-shadow: 0 0 6px #fff; background: linear-gradient(90deg, transparent, #ffd36b 40%, #fff3c4) center / 100% 2px no-repeat; }
.logo .l2 span::before { left: 10px; text-align: right; } .logo .l2 span::after { right: 10px; text-align: left; background-image: linear-gradient(270deg, transparent, #ffd36b 40%, #fff3c4); }
.titleMenu { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 12px; }
.titleMenu .btn { min-width: 340px; }
.titleMenu .tapStart { animation: tapBlink 1.6s ease-in-out infinite; }
@keyframes tapBlink { 50% { opacity: .55; } }
.ver { position: absolute; right: 12px; bottom: 8px; color: #fff; font-size: 14px; text-shadow: 0 1px 3px #000; }

/* ミニゲーム */
.mg { width: 900px; min-height: 520px; text-align: center; }
.mg .mgTitle { font-size: 30px; font-weight: bold; color: #c2457a; }
.mg .mgHelp { font-size: 20px; color: var(--ink2); margin: 6px 0 12px; }
.mg .mgTime { font-size: 22px; font-weight: bold; }
.mgArea { position: relative; margin: 0 auto; background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.arrowSeq { font-size: 60px; letter-spacing: 12px; min-height: 90px; color: #c2457a; }
.pad { display: grid; grid-template-columns: repeat(3, 90px); gap: 8px; justify-content: center; }
.pad button { height: 80px; font-size: 40px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.pad button:active { background: var(--pink2); }
.card2 { width: 110px; height: 110px; border-radius: 14px; background: linear-gradient(135deg, #ff9fc0, #c79bff); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s; font-size: 50px; }
.card2.open { background: #fff; border: 2px solid var(--line); }
.card2.done { opacity: .35; }
.card2 img { width: 84px; height: 84px; object-fit: contain; }
.gauge { position: relative; height: 46px; width: 700px; margin: 20px auto; background: linear-gradient(90deg, #eee, #ffe0ea); border-radius: 23px; border: 2px solid var(--line); overflow: hidden; }
.gauge .zone { position: absolute; top: 0; bottom: 0; background: rgba(255, 122, 168, .55); }
.gauge .zone2 { position: absolute; top: 0; bottom: 0; background: rgba(255, 196, 0, .8); }
.gauge .needle { position: absolute; top: -4px; bottom: -4px; width: 8px; background: #3b2a35; border-radius: 4px; }
.tray { width: 170px; height: 110px; border-radius: 14px; border: 3px solid; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; cursor: pointer; background: #fff; }
.paper { width: 200px; height: 140px; margin: 10px auto; border-radius: 6px; background: #fffaf0; border: 2px solid #e6cf9b; display: flex; align-items: center; justify-content: center; font-size: 60px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.target { position: absolute; width: 90px; height: 90px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 44px; transition: transform .1s; }
.target:active { transform: scale(.9); }
.star { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(#fff, #ffe066 50%, transparent 70%); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: bold; color: #403; }
.star.done { background: radial-gradient(#fff, #ff7aa8 50%, transparent 70%); }
.result { font-size: 44px; font-weight: bold; color: #e2457a; margin: 16px 0; }

/* スクロール可能なリスト */
.scroll { max-height: 480px; overflow-y: auto; }
.status { width: 1100px; }
.hstat { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px; display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 15px; }
.hstat img { width: 110px; height: 130px; object-fit: cover; object-position: top; border-radius: 10px; background: #f6e8ef; }
.kv { display: grid; grid-template-columns: repeat(3, auto); gap: 2px 14px; }
input.name { font-family: var(--font); font-size: 30px; padding: 8px 16px; border-radius: 12px; border: 2px solid var(--line); width: 320px; text-align: center; }
.cg { width: 1280px; height: 720px; position: absolute; inset: 0; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(6, 150px); gap: 10px; }
.gallery .g { height: 84px; border-radius: 12px; background: #f1e3ea; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; border: 2px solid var(--line); font-size: 15px; color: var(--ink2); }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; }

/* 絆の技のカットイン */
.cutin { position: absolute; inset: 0; z-index: 45; pointer-events: none; display: flex; align-items: center; justify-content: center; background: linear-gradient(100deg, transparent 15%, color-mix(in srgb, var(--c) 70%, transparent) 35% 65%, transparent 85%); animation: cutBg 1.5s forwards; overflow: hidden; }
.cutin img { height: 560px; margin: 0 -60px; animation: cutSlide 1.5s both; filter: drop-shadow(0 0 18px #fff); }
.cutin img.cutinBg { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; filter: none; opacity: .85; animation: cutBg 1.5s forwards; mask-image: linear-gradient(100deg, transparent 10%, #000 30% 70%, transparent 90%); }
.cutinName { position: absolute; bottom: 28px; font-size: 64px; font-weight: 900; color: #fff; -webkit-text-stroke: 2px var(--c); text-shadow: 0 0 20px #fff, 0 4px 0 rgba(0,0,0,.3); letter-spacing: 6px; animation: cutName 1.5s both; }
@keyframes cutBg { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cutSlide { 0% { transform: translateX(500px); opacity: 0; } 20%, 75% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-500px); opacity: 0; } }
@keyframes cutName { 0% { transform: scale(2); opacity: 0; } 25%, 80% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }

/* 戦闘エフェクト(黒背景の絵を明るさで重ねる) */
.fx { position: absolute; pointer-events: none; mix-blend-mode: screen; z-index: 30; animation: fxPop .7s ease-out forwards; }
@keyframes fxPop { 0% { opacity: 0; transform: scale(.5) rotate(-8deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25) rotate(4deg); } }
.padFocus { outline: 4px solid #ff7fae !important; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(255,255,255,.75), 0 0 22px 6px rgba(255,127,174,.8) !important; }
.steps { gap: 8px; }
.steps i { width: 64px; height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-style: normal; line-height: 1.1; }
.steps i b { font-size: 20px; font-weight: normal; }
.steps i b img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 1px 2px #0008); }
.ally img.heroIc { object-fit: contain; padding: 8px; box-sizing: border-box; }
.steps i small { font-size: 13px; }
.steps i.now { border-color: #ffd86b; box-shadow: 0 0 0 3px #ffd86b, 0 0 14px #ffd86b; background: #fff3; }
.steps i.on { background: #ffd86b55; opacity: .55; }
.steps i.s-boss { background: #d43d5d; }
.steps i.s-camp { background: #e58a3a99; }
.dunInfo small { font-size: 17px; opacity: .9; }
#bg.night img { filter: brightness(.45) saturate(.8) hue-rotate(-12deg); transition: filter .8s; }
#bg.night::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 92%, rgba(255,150,60,.45), transparent 60%); pointer-events: none; }
.nameLoading { align-items: center; gap: 10px; min-width: 520px; text-align: center; }
.nameLoading .spin { width: 56px; height: 56px; border-radius: 50%; border: 6px solid #ffd6e6; border-top-color: var(--pink); animation: spin 1s linear infinite; }
.nameLoading .prog { font-size: 20px; font-weight: bold; color: #c2457a; }
@keyframes spin { to { transform: rotate(360deg); } }
.miniRow .btn { min-width: 150px; font-size: 19px; }
.shopNote { margin: -4px 0 8px; padding: 4px 12px; border-radius: 10px; background: #fff3cf; color: #8a5a10; font-size: 17px; font-weight: bold; }

/* オープニング映像(opening.js) */
#op { position: absolute; inset: 0; z-index: 95; background: #000; overflow: hidden; cursor: pointer; }
#op .opImgs, #op .opImgs img { position: absolute; inset: 0; width: 100%; height: 100%; }
#op .opImgs img { object-fit: cover; opacity: 0; }
#op .opFlash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#op .opName { position: absolute; left: 60px; top: 70px; font-family: "Shippori Mincho B1", serif; font-size: 52px; font-weight: 800; color: #fff; letter-spacing: 4px; text-shadow: 0 0 2px var(--c, #ff6b9a), 0 0 14px var(--c, #ff6b9a), 0 3px 0 rgba(0,0,0,.4); opacity: 0; }
#op .opName small { display: block; font-size: 22px; letter-spacing: 6px; }
#op .opName.on { animation: opName 3.5s ease-out forwards; }
@keyframes opName { 0% { opacity: 0; transform: translateX(-40px); } 15% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
#op .opLyric { position: absolute; left: 0; right: 0; bottom: 46px; text-align: center; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: 2px; text-shadow: 0 0 3px #b0154f, 0 0 3px #b0154f, 0 2px 8px rgba(0,0,0,.8); opacity: 0; }
#op .opLyric.on { animation: opLyric .5s ease-out forwards; }
@keyframes opLyric { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#op .opLogo { isolation: isolate; position: absolute; left: 0; right: 0; top: 10px; display: flex; flex-direction: column-reverse; align-items: center; opacity: 0; transform: scale(1.4); transition: opacity .6s, transform .6s cubic-bezier(.2,1.6,.4,1); }
#op .opLogo.on { opacity: 1; transform: none; }
#op .opSkip { position: absolute; right: 18px; bottom: 12px; color: rgba(255,255,255,.6); font-size: 15px; }

/* ミニゲームのレビューシート(?review=mini) */
.panel.miniReview { width: 1180px; max-height: 690px; display: flex; flex-direction: column; }
.miniReview .mrNote { font-size: 16px; color: var(--ink2); margin-bottom: 8px; }
.miniReview .mrList { overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-right: 6px; }
.miniReview .mrRow { background: #fff8fb; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.miniReview .mrHead { display: flex; align-items: baseline; gap: 10px; font-size: 20px; }
.miniReview .mrWhere { font-size: 14px; color: var(--ink2); }
.miniReview .mrHelp, .miniReview .mrScore { font-size: 15px; }
.miniReview .mrCtl { display: flex; align-items: center; gap: 12px; }
.miniReview .mrStar { background: none; border: none; font-size: 26px; color: #ddc8d2; cursor: pointer; padding: 0 1px; }
.miniReview .mrStar.on { color: #f2b230; }
.miniReview .mrText { width: 100%; height: 54px; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; resize: vertical; font-family: inherit; }

/* ミニゲームの作り直し(2026-11-08) */
.pad button.hit { animation: padHit .25s; } /* 剣の型: 押した矢印だけ光る */
@keyframes padHit { from { background: var(--pink); color: #fff; transform: scale(1.08); } to { background: #fff; } }
.rune { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(190,170,255,.5); background: radial-gradient(rgba(150,130,255,.35), transparent 70%); }
.rune.on { border-color: #ffd36b; background: radial-gradient(#fff6c8, #ffc23a 55%, transparent 72%); box-shadow: 0 0 18px #ffc23a; }
.rune.got { background: radial-gradient(#fff, #9fd8ff 55%, transparent 72%); box-shadow: 0 0 26px #9fd8ff; }
.spark { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(#fff, #b78cff 50%, transparent 70%); box-shadow: 0 0 22px #d0b5ff; pointer-events: none; }
.papDesk { position: relative; width: 520px; height: 190px; margin: 6px auto; background: linear-gradient(#c79a6a, #a87a4a); border-radius: 12px; }
.papPile { position: absolute; left: 30px; bottom: 26px; width: 120px; height: 90px; }
.papSheet { position: absolute; left: 0; bottom: 0; width: 120px; height: 84px; background: #fffaf0; border: 1px solid #d9c49a; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.paper.papTop { position: absolute; left: 190px; top: 22px; margin: 0; width: 170px; height: 120px; }
.papStamp { position: absolute; right: 8px; bottom: 6px; width: 46px; height: 46px; border: 3px solid #d0303a; border-radius: 50%; color: #d0303a; font-size: 26px; font-weight: 900; display: flex; align-items: center; justify-content: center; transform: rotate(-14deg); }
.papCombo { position: absolute; right: 18px; top: 14px; font-size: 30px; font-weight: 900; color: #fff3a8; -webkit-text-stroke: 1px #a0502a; }
.tray { flex-direction: column; gap: 2px; position: relative; } .tray small { font-size: 14px; } .trayN { position: absolute; right: 8px; top: 4px; font-size: 18px; }
.target .aim, .aim { position: absolute; width: 110px; height: 110px; border: 4px solid #ff4f7a; border-radius: 50%; pointer-events: none; display: none; box-shadow: 0 0 0 3px #fff, 0 0 18px #ff4f7a; transition: left .08s, top .08s; z-index: 2; }
.cookStove { position: relative; width: 420px; height: 230px; margin: 8px auto; background: linear-gradient(#5a3a2a, #2a1a12); border-radius: 14px; cursor: pointer; user-select: none; }
.cookFood { position: absolute; left: 70px; top: 50px; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(#555 55%, #222 60%, #444 64%, transparent 66%); }
.cookGauge { position: absolute; right: 60px; top: 20px; width: 46px; height: 190px; border-radius: 10px; background: linear-gradient(#ff5a3a, #ffd36b 50%, #6ac8ff); overflow: hidden; }
.cookZone { position: absolute; left: 0; right: 0; background: rgba(80, 220, 120, .75); border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
.cookNeedle { position: absolute; left: 0; right: 0; height: 10px; margin-bottom: -5px; background: #222; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 4px #000; }
.cookNeedle.ok { background: #fff; box-shadow: 0 0 8px #fff; }
.cookBar { width: 420px; height: 10px; margin: 0 auto; background: #eee; border-radius: 5px; overflow: hidden; } .cookFill { height: 100%; width: 0; background: var(--pink); }
.tray .trayArrow { font-size: 58px; line-height: 1; font-weight: 900; } /* 書類さばき: 箱は矢印を大きく */
.tray .trayKey { position: absolute; left: 8px; top: 4px; font-size: 14px; opacity: .7; }
.gallery2 { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); } /* 射的: 2 段 4 穴 */
.hole { position: relative; margin: 14px; border-radius: 14px; background: linear-gradient(#3a1e3e, #1e0e22); box-shadow: inset 0 -12px 0 #6a3a2a, inset 0 0 0 3px #8a5a3a; overflow: hidden; }
.hole .pop { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); animation: popUp .15s ease-out; }
@keyframes popUp { from { transform: translate(-50%, 70%); } to { transform: translate(-50%, 0); } }
.hole.aimed { box-shadow: inset 0 -12px 0 #6a3a2a, inset 0 0 0 3px #8a5a3a, 0 0 0 5px #ff4f7a, 0 0 20px #ff4f7a; }
.hole.aimed::after { content: ""; position: absolute; inset: 18%; border: 4px solid #ff4f7a; border-radius: 50%; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
#op .opVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; } /* 完成したオープニング映像 */
/* ちびキャラ(部屋の床・走って横切る・パネルからのぞく) */
.chibis { position: absolute; left: 410px; right: 410px; bottom: 0; height: 300px; pointer-events: none; z-index: 3; } /* 吹き出しを左右のパネルより手前に */
.chibi { position: absolute; bottom: 8px; height: 260px; transform: translateX(-50%); pointer-events: auto; cursor: pointer; animation: chibiBob 1.6s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(60, 30, 40, .35)); }
.chibi.jump { animation: chibiJump .5s ease-out; }
.chibiHeart { position: absolute; bottom: 270px; color: #ff5c9a; font-size: 34px; transform: translateX(-50%); animation: chibiHeart .9s ease-out forwards; }
.chibiRun { position: absolute; bottom: 2px; height: 150px; left: -260px; pointer-events: none; animation: chibiRun 12s linear 2s infinite; }
.chibiPeek { position: absolute; right: -30px; bottom: -24px; height: 190px; pointer-events: none; animation: chibiBob 1.6s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(60, 30, 40, .35)); }
@keyframes chibiBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes chibiJump { 0%, 100% { translate: 0 0; } 40% { translate: 0 -60px; } }
@keyframes chibiHeart { to { translate: 0 -60px; opacity: 0; } }
@keyframes chibiRun { 0% { left: -260px; } 30% { left: 1300px; } 100% { left: 1300px; } }
/* スマホを縦に持ったら横向きを案内する(画面は 1280x720 の横長固定) */
@media (orientation: portrait) and (pointer: coarse) { body::after { content: "📱 スマホを横にしてください"; position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: #1c1220; color: #fff; font-size: 22px; } }
/* オープニングのスキップ確認(動画を止めて聞く) */
#op .opAsk { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); cursor: default; }
#op .opAsk .panel { align-items: center; }
#op .opAsk .row { gap: 16px; }
/* ちびキャラのひとこと(部屋でタップ / 週の結果で上がった能力が好きな子) */
.chibiSay { position: absolute; bottom: 280px; transform: translateX(-50%); background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 8px 16px; font-size: 19px; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow); animation: chibiSay .3s ease-out; pointer-events: none; }
.chibiSay::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -9px; border: 9px solid transparent; border-top-color: var(--line); border-bottom: 0; }
@keyframes chibiSay { from { opacity: 0; transform: translate(-50%, 10px); } }
.weekChibi { position: absolute; right: -230px; width: 220px; height: 230px; pointer-events: none; }
.weekChibi img { position: absolute; left: 50%; bottom: 0; height: 190px; transform: translateX(-50%); animation: chibiJump .6s ease-out 2, chibiBob 1.6s ease-in-out 1.2s infinite; filter: drop-shadow(0 4px 4px rgba(60, 30, 40, .35)); }
.weekChibi .chibiSay { left: 50%; bottom: 196px; white-space: normal; width: 210px; font-size: 17px; text-align: center; }
.chibiSay.peekSay { left: auto; right: 150px; bottom: 40px; transform: none; animation: none; font-size: 17px; }
.chibiSay.peekSay::after { display: none; }
.chibiPeek.talk { pointer-events: auto; cursor: pointer; }
.chibiPeek.jump { animation: chibiJump .5s ease-out; }
.chibiSay.peekSay.pop { animation: chibiSay .3s ease-out; }
.hstat img.eqIc { width: 52px; height: 52px; object-fit: contain; background: none; border-radius: 0; margin: 0 2px 0 0; vertical-align: middle; float: none; }
/* 固有装備の強化後の姿 */
.heirUp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 460px; align-items: center; text-align: center; }
.heirUp img { width: 220px; height: 220px; object-fit: contain; animation: heirGlow 1.2s ease-out; filter: drop-shadow(0 0 18px #ffe08a); }
.heirUp div { font-size: 22px; color: #c0305a; font-weight: 800; }
@keyframes heirGlow { from { transform: scale(.4) rotate(-20deg); opacity: 0; filter: drop-shadow(0 0 60px #fff); } }
#stage:has(.heirUp) #toast { visibility: hidden; } /* 強化後の姿の上に通知を重ねない */
.cmd .eff { font-size: 17px; color: #8a5a6e; margin-top: 2px; line-height: 1.3; } .cmd .eff b { color: var(--pink); font-weight: 700; } .cmd .eff .fan { color: #e0507a; font-weight: 700; white-space: nowrap; }
.cmd .ds { font-size: 18px; }
.cmd .ds .gold { white-space: nowrap; color: #b07a10; font-weight: 700; margin-left: 4px; }
/* 週の結果の左に立つ人物(受付 = ギルドマスター など) */
.weekNpc { position: absolute; left: -255px; bottom: -90px; width: 250px; height: 420px; pointer-events: none; }
.weekNpc img { position: absolute; left: 50%; bottom: 0; height: 360px; transform: translateX(-50%); animation: chibiSay .4s ease-out; filter: drop-shadow(0 4px 6px rgba(60, 30, 40, .35)); }
.weekNpc .chibiSay { left: 50%; bottom: 366px; white-space: normal; width: 230px; font-size: 17px; text-align: center; }
/* ダンジョンの地図(doc/13) */
.mapPanel { width: 940px; padding: 16px 24px; }
.mapPanel h2 small { font-size: 18px; color: #6d5560; margin-left: 10px; }
.worldMap { position: relative; width: 880px; height: 495px; margin: 0 auto; border-radius: 16px; border: 3px solid #b89a68; background: #e9d6a8 url(../img/map_world.jpg) center / 100% 100% no-repeat; overflow: hidden; }
.mapPin { position: absolute; transform: translate(-50%, -50%); border: 2px solid #8a6a3a; border-radius: 14px; background: rgba(255, 250, 238, .92); padding: 3px 10px; font: inherit; font-size: 16px; color: #4a3020; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; box-shadow: 0 2px 6px rgba(60, 30, 10, .35); }
.mapPin b { font-size: 20px; }
.mapPin i { font-style: normal; font-size: 14px; color: #8a5a20; font-weight: 700; }
.mapPin.main { border-color: #c0305a; }
.mapPin.near i { color: #e01040; }
.mapPin.done { background: rgba(255, 236, 160, .95); }
.mapPin.lock { opacity: .6; }
.mapInfo { margin: 10px 0; font-size: 18px; min-height: 52px; }
/* 上位依頼・G 級クエスト(doc/14) */
.quest.grade-high { border-color: #d9a520; background: linear-gradient(90deg, #fff8e0, #fff); }
.quest.grade-high .qn { color: #9a6a00; }
.quest.grade-g { border-color: #8a4ad8; background: linear-gradient(90deg, #f3e8ff, #fff4fb); box-shadow: 0 0 0 2px rgba(138, 74, 216, .25), 0 0 14px rgba(138, 74, 216, .35); }
.quest.grade-g .qn { color: #6a2ab8; font-weight: 800; }
/* 依頼の札: レベル順の案内と「必ず成功」 */
.qorder { font-size: 15px; color: #8a6a3a; margin: -4px 0 6px; }
.quest .qsure { font-size: 14px; color: #fff; background: #3cb88a; border-radius: 6px; padding: 1px 7px; margin-right: 8px; }
