:root {
  --bg: #0e1424; --panel: #18213a; --panel2: #202b4a; --line: #2e3b60;
  --text: #eef2ff; --muted: #9aa6c8; --gold: #f5c542; --gold2: #ffdf7a;
  --green: #3ddc97; --red: #ff6b6b; --blue: #5aa9ff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif; }
body { word-break: auto-phrase; line-break: strict; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 12px 14px 40px; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; border: none; cursor: pointer; }
.nb { display: inline-block; }

.btn { border-radius: 12px; padding: 13px 16px; font-weight: 700; background: var(--panel2); font-size: 16px; }
.btn.big { font-size: 20px; padding: 16px 40px; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2a00; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.line { background: #06c755; color: #fff; }
.btn.wide { display: block; width: 100%; margin-top: 12px; }
.notice { color: var(--muted); font-size: 11px; text-align: center; margin: 16px 0 0; }
.center { text-align: center; }

/* タイトル */
.title-box { min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.title-art { width: 100%; border-radius: 16px; aspect-ratio: 3 / 2; object-fit: cover; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-logo { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: .42em; padding-left: .42em; color: #eef2ff; display: flex; gap: .9em; }
.brand-logo span:first-child { color: var(--gold); }
.brand-copy { margin: 0; font-size: 12px; color: #9aa6c8; letter-spacing: .08em; }
.title-main { width: 100%; font-size: min(54px, calc((100vw - 28px) / 9.4)); line-height: 1.05; margin: 4px 0 0; font-weight: 900; letter-spacing: .01em; white-space: nowrap; }
.title-main span { color: var(--gold); }
.title-sub { font-size: 20px; font-weight: 800; margin: 0; color: #eef2ff; line-height: 1.5; }
.mission { width: 88%; margin: 4px 0 10px; padding: 14px 14px 12px; border: 1px solid rgba(245, 197, 66, .55); border-radius: 12px; background: rgba(245, 197, 66, .08); position: relative; }
.mission-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 10px; background: var(--bg); color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.mission p { margin: 0; font-size: 15px; line-height: 1.6; color: #dfe6ff; }
.title-box .btn { width: 80%; }

/* 絵 */
.pic { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #000; }
.pic.tall { aspect-ratio: 4 / 5; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 会話（ノベル） */
.vn { min-height: calc(100vh - 52px); display: flex; flex-direction: column; gap: 12px; cursor: pointer; user-select: none; }
.say { background: rgba(24,33,58,.96); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; min-height: 120px; }
.say.narr { background: transparent; border-color: transparent; text-align: center; }
.say.narr p { color: #dfe6ff; font-size: 18px; }
.say p { margin: 0; font-size: 18px; line-height: 1.75; }
.who { display: inline-block; font-weight: 800; font-size: 14px; color: var(--gold2); margin-bottom: 6px; }
.who.ai { color: #7fe3ff; }
.tap { margin-top: auto; text-align: center; color: var(--muted); font-size: 13px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.card-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5,8,18,.55); padding: 12px; }
.slip { width: 88%; background: #fbfaf5; color: #222; border-radius: 6px; padding: 12px 14px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.slip b { display: block; text-align: center; margin-bottom: 6px; font-size: 14px; }
.slip .row { display: flex; justify-content: space-between; padding: 2px 0; font-variant-numeric: tabular-nums; }
.slip .row.minus span:last-child { color: #c0392b; }
.slip-sep { border-top: 1px dashed #aaa; margin: 6px 0; }
.slip-left { text-align: right; font-weight: 800; font-size: 18px; margin-top: 4px; }
/* SNS に流れてくる広告（スマホの画面の中の1件） */
.ad { width: 74%; max-width: 300px; background: #fff; color: #222; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.ad-top { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 11px; }
.ad-top i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #ff3d9a, #ffb347); }
.ad-top em { font-style: normal; color: #888; }
.ad-img { position: relative; aspect-ratio: 1 / 1; }
.ad-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-img > b { position: absolute; left: 6%; right: 6%; top: 7%; color: #fff; font-size: 22px; line-height: 1.35; font-weight: 900; text-align: center;
  text-shadow: 0 2px 0 #b0004f, 0 0 2px #b0004f, 0 0 12px rgba(120,0,60,.7); }
.ad-img > b .ad-l { display: block; font-style: normal; white-space: nowrap; }
.ad-img > b .ad-l + .ad-l { font-size: 30px; color: #ffe600; }
.ad-img > b small { display: block; font-size: 15px; margin-top: 6px; }
.ad-img > span { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); white-space: nowrap; background: #ffe600; color: #d1004f;
  border-radius: 99px; padding: 6px 16px; font-size: 14px; font-weight: 900; box-shadow: 0 3px 0 #b88a00; }

/* 質問と選択肢 */
.q { margin: 14px 0 10px; }
.step { display: inline-block; font-size: 12px; color: var(--gold); border: 1px solid var(--gold); border-radius: 99px; padding: 1px 10px; margin-bottom: 6px; }
.q h2 { font-size: 22px; margin: 0 0 6px; line-height: 1.4; }
.lead { color: #cdd6f6; font-size: 15px; margin: 0 0 6px; line-height: 1.7; white-space: pre-line; }
.opts { display: grid; gap: 10px; }
.opts.grid { grid-template-columns: 1fr 1fr; }
.opts.grid .opt { text-align: center; }
.opts.grid .opt .face { display: block; margin: 0 auto 8px; }
.qf { display: flex; gap: 12px; align-items: center; }
.opt { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px; line-height: 1.55; }
.opt:active { background: var(--panel2); transform: scale(.99); }
.opt b { display: block; font-size: 16px; }
.opt small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.opt small.exp { color: #7fe3ff; }
.meter { display: block; color: var(--gold2); font-size: 13px; margin-top: 6px; letter-spacing: .02em; }

.script { background: #fbfaf5; color: #222; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }

/* ===== v3 で足したもの ===== */
.notice + .notice { margin-top: 4px; }
.pic { aspect-ratio: 16 / 10; }
.pic img { animation: fadeIn .4s ease-out; }
@keyframes fadeIn { from { opacity: .3; } }

/* 上の帯：日付と体力 */
.hd { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; background: rgba(14,20,36,.94); padding: 8px 2px; margin: -12px 0 8px; backdrop-filter: blur(6px); }
.hd-day { font-size: 13px; color: var(--muted); white-space: nowrap; }
.hd-day b { font-size: 24px; color: var(--gold2); margin-right: 2px; }
.hd-day small { margin-left: 4px; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.hd-st { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hd-st i { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.hd-st em { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #8ef0c3); transition: width .5s; }
.hd-st em.low { background: var(--red); animation: blink 1s infinite; }
.hd-st b { color: var(--text); font-size: 14px; min-width: 18px; }
.hd-snd { background: none; font-size: 18px; padding: 2px 4px; }
#scr { position: relative; }
.title-snd { position: absolute; top: 0; right: 0; z-index: 5; font-size: 22px; }

/* 会話の顔の窓 */
.say { display: flex; gap: 12px; align-items: flex-start; animation: slideUp .25s ease-out; }
.say.narr { display: block; }
.say-body { flex: 1; min-width: 0; }
.face { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; border: 2px solid var(--line); background: #f6ead8; flex: none; animation: facePop .25s ease-out; }
.face.big { width: 120px; height: 120px; }
@keyframes facePop { from { transform: scale(.85); opacity: .4; } }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } }
.namebox { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 18px 0; }
.namebox input { font: inherit; font-size: 22px; text-align: center; width: 70%; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }

/* 給料の明細が1行ずつ出る */
.slip .row, .slip-left { animation: rowIn .35s ease-out both; }
@keyframes rowIn { from { transform: translateX(-12px); opacity: 0; } }
.pop { animation: adPop .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes adPop { from { transform: translateY(-40px) scale(.9); opacity: 0; } }

/* ルートの一覧 */
.opt.rec { border-color: var(--gold); background: #2a2410; }
.opt.off { opacity: .45; cursor: default; }
.tag { font-style: normal; font-size: 11px; font-weight: 700; background: var(--gold); color: #3a2a00; border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.cost { float: right; font-style: normal; font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }

/* 朝の画面 */
.morning { padding-top: 6px; }
.cal { width: 120px; margin: 4px auto 12px; background: #fbfaf5; color: #222; border-radius: 12px; text-align: center; padding: 6px 0 10px; box-shadow: 0 6px 18px rgba(0,0,0,.4); border-top: 18px solid #e04848; }
.cal small { display: block; font-size: 11px; color: #888; }
.cal b { display: block; font-size: 46px; line-height: 1.05; }
.cal em { font-style: normal; font-size: 13px; }
.flip { animation: flip .6s ease-out; transform-origin: top; }
@keyframes flip { from { transform: perspective(400px) rotateX(-80deg); opacity: 0; } }
.sh-h { font-size: 15px; color: var(--gold2); margin: 12px 0 6px; }
.rows { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.rows .row:last-child { border-bottom: none; }
.rows .row span { color: #cdd6f6; }
.rows .row b { text-align: right; font-variant-numeric: tabular-nums; }
.rows .row b.up { color: var(--green); }
.rows .row b.down, .rows .row b.minus { color: var(--red); }
.mini { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 6px 0 0; }
.ntfs { display: grid; gap: 8px; margin: 12px 0 4px; }
.ntf { background: #fbfaf5; color: #222; border-radius: 12px; padding: 9px 12px; font-size: 14px; line-height: 1.55; box-shadow: 0 4px 12px rgba(0,0,0,.35); animation: ntfIn .45s ease-out both; }
.ntf:nth-child(2) { animation-delay: .25s; } .ntf:nth-child(3) { animation-delay: .5s; } .ntf:nth-child(4) { animation-delay: .75s; }
.ntf-from { font-size: 11px; font-weight: 700; color: #666; margin-bottom: 2px; }
.ntf.cm { border-left: 4px solid #5aa9ff; }
.ntf.good { border-left: 4px solid var(--green); }
.ntf.bad { border-left: 4px solid var(--red); }
.ntf.future { border-left: 4px solid var(--gold); white-space: pre-line; }
@keyframes ntfIn { from { transform: translateY(-24px); opacity: 0; } }
.card-over .ntf, .card-over .ntfs { width: 88%; }

/* 行動の画面 */
.panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 0 0 8px; }
.pn { background: var(--panel2); border-radius: 10px; padding: 6px 8px; }
.pn span { display: block; font-size: 10px; color: var(--muted); }
.pn b { font-size: 15px; font-variant-numeric: tabular-nums; }
.pbar, .gauge, .stages { grid-column: 1 / -1; font-size: 12px; color: #cdd6f6; }
.pbar i, .gauge i, .gl i { display: block; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 3px 0; }
.pbar em, .gauge em, .gl em { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
/* 能力レベル */
.lvrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; margin: 0 0 8px; }
.lv span { display: block; font-size: 10px; color: var(--muted); }
.lv b { font-size: 14px; color: var(--gold); }
.lv i { display: block; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 3px; }
.lv em { display: block; height: 100%; background: linear-gradient(90deg, #3ddc97, #7ef0c0); }
.lvrank { grid-column: 1 / -1; font-size: 12px; color: #cdd6f6; }
.opt small.grow { color: #3ddc97; }
.lvup { text-align: center; padding: 8px 0; }
.lvup small { display: block; font-size: 14px; color: var(--gold); font-weight: 900; letter-spacing: .1em; }
.lvup b { display: block; font-size: 30px; margin: 6px 0 10px; animation: lvpop .5s ease-out; }
@keyframes lvpop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pbar.big i { height: 14px; }
.gauge small { display: block; text-align: right; font-size: 10px; color: var(--muted); }
.stages { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.stages span { flex: 1; text-align: center; background: var(--panel2); border-radius: 8px; padding: 4px 2px; font-size: 11px; }
.stages b { display: block; font-size: 16px; color: var(--gold2); }
.stages em { color: var(--muted); font-style: normal; }
.slots { text-align: right; color: var(--gold2); font-size: 13px; margin: 0 0 8px; letter-spacing: .1em; }

/* 結果の画面 */
.res-h { font-weight: 800; font-size: 17px; line-height: 1.6; margin-bottom: 6px; }
.gain { color: var(--green); font-weight: 700; margin: 6px 0; }
.why { color: #cdd6f6; font-size: 14px; border-left: 3px solid var(--gold); padding-left: 10px; }
.big-gain { text-align: center; font-size: 28px; font-weight: 900; color: var(--green); padding: 16px 0; animation: adPop .5s both; }
.flash { text-align: center; font-size: 26px; font-weight: 900; color: var(--gold); padding: 18px 0; animation: flash 1s ease-out; }
@keyframes flash { 0% { transform: scale(.6); opacity: 0; text-shadow: 0 0 40px #fff; } 60% { transform: scale(1.1); } }
.gcard { width: 86%; background: rgba(24,33,58,.96); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.gcard h4 { margin: 0 0 8px; font-size: 14px; color: var(--gold2); }
.gl { display: grid; grid-template-columns: 5.5em 1fr auto; align-items: center; gap: 8px; font-size: 12px; margin: 4px 0; }
.gl em.grow { width: var(--w); animation: grow 1.2s ease-out; }
@keyframes grow { from { width: 0; } }
.gauge-left { text-align: center; color: var(--gold2); font-weight: 700; line-height: 1.7; margin: 12px 0 0; }

/* 架空の動画サイト（一覧の1件） */
.feed { display: grid; gap: 10px; background: #0f0f0f; border-radius: 12px; padding: 8px; width: 100%; }
.feed-h { color: #aaa; font-size: 12px; }
.card-over .feed { width: 92%; max-height: 100%; overflow: hidden; }
.vcard { display: grid; grid-template-columns: 44% 1fr; gap: 8px; text-align: left; align-items: start; }
.vcard.mine .th { outline: 2px solid var(--gold); }
.th { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #222; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .lbl { position: absolute; font-weight: 900; font-size: 15px; line-height: 1.15; paint-order: stroke fill; word-break: keep-all; }
.th .lbl.top { left: 4px; right: 4px; top: 4px; text-align: center; }
.th .lbl.right { right: 4px; top: 50%; transform: translateY(-50%); width: 50%; text-align: center; }
.th em { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); color: #fff; font-style: normal; font-size: 10px; padding: 0 4px; border-radius: 3px; }
.vt b { display: block; font-size: 13px; line-height: 1.4; color: #f1f1f1; }
.vt small { display: block; font-size: 11px; color: #aaa; margin-top: 2px; }
.opt .vcard { grid-template-columns: 50% 1fr; }
.publish .vcard { animation: suck .6s ease-in both; }
@keyframes suck { from { transform: scale(1.2) translateY(-20px); opacity: 0; } }

/* 15日目：3本の線 */
.line { margin: 10px 0; }
.line-h { font-size: 13px; font-weight: 700; }
.line-bar { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 4px 0; }
.line-bar i { display: block; height: 100%; width: var(--w); animation: grow 1.4s ease-out; }
.line.l1 i { background: #7c86a8; } .line.l2 i { background: var(--gold); } .line.l3 i { background: var(--green); }
.line-v { font-size: 14px; font-variant-numeric: tabular-nums; }

/* 転職：求人・書類・比べる */
.jobad { background: var(--panel2); border-radius: 12px; padding: 10px; margin: 8px 0; }
.jobad > b { font-size: 15px; } .jobad > small { color: var(--muted); margin-left: 8px; font-size: 12px; }
.jobad .rows { background: transparent; border: none; padding: 0; margin-top: 4px; }
.doc { background: #fbfaf5; color: #222; border-radius: 10px; padding: 10px 14px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
.doc p { margin: 6px 0; line-height: 1.6; }
.cmps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmp { background: var(--panel2); border-radius: 12px; padding: 10px; font-size: 13px; animation: slideUp .4s both; }
.cmp:nth-child(2) { animation-delay: .2s; }
.cmp h4 { margin: 0 0 6px; color: var(--gold2); font-size: 14px; }
.cmp p { margin: 3px 0; line-height: 1.5; }
.cmp dl { margin: 6px 0 0; } .cmp dt { color: var(--muted); font-size: 11px; } .cmp dd { margin: 0 0 4px; font-weight: 700; }

/* 30日目 */
.result { padding-top: 10px; }
.rcard { background: radial-gradient(120% 80% at 50% 0%, #2a3a70 0%, var(--panel) 70%); border: 1px solid var(--gold); border-radius: 18px; padding: 18px 16px; text-align: center; animation: adPop .6s both; }
.rcard small { color: var(--muted); }
.rcard h2 { color: var(--gold); font-size: 30px; margin: 8px 0 4px; }
.rcard p { margin: 0 0 10px; }
.rcard dl { text-align: left; margin: 0; }
.rcard dt { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.rcard dd { margin: 2px 0 0; font-weight: 700; line-height: 1.5; }
.result > p { line-height: 1.75; font-size: 15px; }
.notyet { color: var(--muted); font-size: 14px; padding-left: 18px; line-height: 1.8; }
.sheet { animation: slideUp .25s ease-out; }

.rows .row .was { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* 重ねて出す画面（結果・通知） */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(5,8,18,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; background: var(--panel); border-radius: 18px; padding: 18px 16px; }
.sheet p { line-height: 1.7; }

.next { margin: 0 0 12px; padding-left: 20px; line-height: 1.8; font-size: 15px; }

/* タイトル画面の歌詞と MV（絵の上に重ねる） */
.title-artw { position: relative; width: 100%; border-radius: 16px; overflow: hidden; }
.title-artw .title-art { display: block; }
.mv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform-origin: 50% 45%;
  animation: mvin 1.4s ease-in-out forwards, kb0 16s linear forwards; }
.mv.kb1 { animation-name: mvin, kb1; }
/* 切り替え：次の絵が、前の絵の上に重なる。前の絵は、重なり終わるまで、動きを止めずにそのまま残す */
.mv.gone { opacity: 0 !important; transition: opacity 1.2s ease-in-out; }
@keyframes mvin { to { opacity: 1; } }
/* 感情の起伏は、色合いだけで出す（沈む場面は少し暗く、明るい場面は少し鮮やかに）。動きと速さは、すべての絵で同じ */
.mv.low { filter: saturate(.72) brightness(.86); }
.mv.high { filter: saturate(1.08) brightness(1.03); }
/* ゆっくり寄っていく動き。kb0 と kb1 は、寄る大きさは同じで、流れる向きだけ変える */
@keyframes kb0 { from { transform: scale(1.03) translate(-1%, 0); } to { transform: scale(1.12) translate(1%, -1%); } }
@keyframes kb1 { from { transform: scale(1.03) translate(1%, 0); } to { transform: scale(1.12) translate(-1%, -1%); } }
.lyric { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; overflow: hidden; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 12, 30, .85), rgba(8, 12, 30, .55) 55%, rgba(8, 12, 30, 0)); opacity: 0; transition: opacity .6s; }
.lyric.on { opacity: 1; }
.ly { position: absolute; left: 0; right: 0; bottom: 8px; padding: 0 12px; text-align: center; animation: lyin .6s ease-out both; }
.ly.out { animation: lyout .5s ease-in both; }
.ly p { margin: 0; line-height: 1.3; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.ly-en { font-size: 16px; font-weight: 700; font-style: italic; letter-spacing: .01em; }
.ly-en span { --p: 0%; text-shadow: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
  background: linear-gradient(90deg, var(--gold) var(--p), #fff var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ly-ja { font-size: 14px; font-weight: 700; color: #eef2ff; margin-top: 2px !important; animation: lyin .6s .25s ease-out both; }
.ly.hi .ly-en { font-size: 17px; }
.ly.hi .ly-en span { filter: drop-shadow(0 0 5px rgba(255, 210, 90, .7)) drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
@keyframes lyin { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lyout { to { opacity: 0; transform: translateY(-10px); filter: blur(3px); } }

/* タイトル画面：最初に出す「この先、音楽が流れます」の案内 */
.snd-pop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 9, 20, 0.82); backdrop-filter: blur(3px); }
.snd-box { width: 100%; max-width: 340px; padding: 26px 20px 18px; border-radius: 18px; background: #141a2e; border: 1px solid rgba(255, 214, 102, 0.45); text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.snd-t { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #fff; }
.snd-t::before { content: "♪ "; color: #ffd666; }
.snd-s { margin: 0 0 18px; font-size: 14px; color: #b8c0d8; }
.snd-box .btn { width: 100%; margin: 0 0 10px; font-size: 16px; white-space: nowrap; padding-left: 8px; padding-right: 8px; }

/* v4：自分の数字の入力・ジャンルの星 */
.mybox { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0 12px; }
.myrow { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 15px; }
.myrow span { flex: 1; }
.myrow input { width: 96px; font-size: 18px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: #0b0f1e; color: #fff; text-align: right; }
.myrow em { font-style: normal; color: var(--muted); }
.mini.err { color: #ff8a8a; min-height: 1em; }
.meter i.off { font-style: normal; color: #4a5068; }
.th img.mir { transform: scaleX(-1); }
.dpics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dpic { margin: 8px 0; }
.dpic figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 4px; }
.btn.cta { display: block; text-align: center; text-decoration: none; margin: 12px 0; }
.btn.cta small { display: block; font-size: 12px; font-weight: 400; opacity: .8; }
.btn.cta:disabled { opacity: .75; }
.gnm { white-space: nowrap; }
.opts.grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.opts.grid .opt small { font-size: 12px; }
.opts.grid .opt { padding: 14px 8px; }
.meter .mi { display: inline-block; white-space: nowrap; margin-right: 12px; }
.meter .mi > span { color: var(--muted); margin-right: 4px; }
.dbig { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.dbig > div { background: #0f1530; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; }
.dbig small { display: block; color: var(--muted); font-size: 12px; }
.dbig b { display: block; font-size: 24px; font-weight: 900; margin-top: 2px; color: #cdd6f6; }
.dbig .go { border-color: var(--gold); background: #2a2410; }
.dbig .go b { color: var(--gold2); font-size: 28px; }
.dcap { text-align: center; margin: 0 0 6px; }
.dbig b i.gone { font-style: normal; font-size: 14px; }
/* v6：3段ゴール・寝ている間に・称号の説明・試算の計算式 */
.gl2 { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 4px 0 2px; }
.gl2 span { font-size: 11px; color: #cdd6f6; }
.gl2.g1 { grid-template-columns: 1fr auto; align-items: center; }
.gl2.g1 b { font-size: 12px; color: var(--muted); }
.gl2.g1.ok b { color: var(--green); }
.goals3 .g3 { padding: 6px 0; border-bottom: 1px solid var(--line); }
.goals3 .g3:last-child { border-bottom: none; }
.goals3 .g3 b { display: block; font-size: 13px; }
.goals3 .g3 small { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; }
.sleep { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
.sleep .sh-h { margin: 0 0 4px; font-size: 14px; }
.sleep p { margin: 0; font-size: 14px; }
.rnote { display: block; font-size: 11px; color: var(--muted); font-weight: 400; line-height: 1.5; margin-top: 2px; }
.calc { border-top: 1px dashed var(--line); padding-top: 6px; }

/* タイトル画面の「開発者について」 */
.about-link { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--muted); font-size: 11px; text-decoration: underline; cursor: pointer; padding: 6px 10px; }
/* 最初の小窓のキャッチとゲームの説明・開発者の実績 */
.pop-catch { margin: 0 0 10px; font-size: 17px; font-weight: 800; line-height: 1.5; color: #ffd666; }
.pop-desc { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; line-height: 1.7; color: #dfe4f2; text-align: left; }
.pop-note { margin: 4px 0 0; font-size: 10px; color: #8a93ad; }
.sheet p.bio { margin: 0 0 8px; font-size: 13px; }
/* タイトル画面のボタンを大きく・開発者からの手紙 */
.about-link { font-size: 15px; font-weight: 800; color: #ffd666; text-decoration: underline; margin-top: 12px; }
.sheet p.letter { margin: 0 0 10px; font-size: 15px; line-height: 1.8; color: #fff; }
.prof { margin: 14px 0; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.prof-h { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #ffd666; }
.sheet p.sign { margin: 10px 0 0; text-align: right; font-weight: 800; }
.sheet a.btn.wide { display: block; text-align: center; text-decoration: none; margin: 12px 0 0; }
/* タイトル画面のプレゼントの入口 */
.gift-btn { display: block; width: 100%; margin: 12px 0 0; background: transparent; border: 1.5px solid #ffd666; color: #ffd666; font-size: 15px; font-weight: 800; }

/* 🎁のボタン：2行（プレゼント＋月収70万円を達成した秘密）と、タップする指の絵 */
.gift-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; text-align: left; }
.gift-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; white-space: nowrap; }
.gift-txt b { font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; }
.gift-txt small { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.tap-ic { flex: none; width: 30px; height: 30px; }
.tap-hand { fill: #fff; stroke: #1a1f33; stroke-width: 2; stroke-linejoin: round; transform-origin: 24px 40px; animation: tapPress 1.6s ease-in-out infinite; }
.tap-ring { fill: none; stroke: #ffd666; stroke-width: 2.5; transform-origin: 19px 14px; animation: tapRing 1.6s ease-out infinite; }
@keyframes tapPress { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px) scale(.95); } }
@keyframes tapRing { 0%, 25% { transform: scale(.3); opacity: 0; } 35% { opacity: 1; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap-hand, .tap-ring { animation: none; } .tap-ring { opacity: .8; } }
@media (max-width: 370px) { .gift-txt { white-space: normal; } }

/* 右上の音のボタン（音 ON｜OFF） */
.snd-sw { display: inline-flex; align-items: center; gap: 0; padding: 0; border: 1px solid rgba(245,197,66,.6); border-radius: 999px; background: rgba(10,14,28,.7); font-size: 12px; font-weight: 800; line-height: 1; overflow: hidden; color: #cfd6ea; cursor: pointer; }
.snd-sw span { padding: 6px 8px; }
.snd-sw .snd-l { padding-right: 4px; color: #fff; }
.snd-sw .snd-on { background: var(--gold); color: #1a1a1a; }
.snd-sw .snd-off { color: #8b93ab; }
.snd-sw.is-off .snd-on { background: none; color: #8b93ab; }
.snd-sw.is-off .snd-off { background: #6b7286; color: #fff; }
.title-box { padding-top: 34px; }
