/* ときめき入稿デイズ ～えみちんを落とせ！～ */
.love { padding: 0; }
.love-head { padding-bottom: 8px; }
.love-head .oshi-lead { max-width: 40em; }
.love-sub { color: var(--muted); font-size: 12.5px; }
.love-stage { padding-top: 24px; padding-bottom: 56px; }
.game {
  position: relative; max-width: 820px; margin: 0 auto; overflow: hidden; min-height: 640px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(250, 245, 255, .92));
  border: 1px solid var(--line); border-radius: 36px; box-shadow: var(--soft-shadow);
}
.game > .deco { z-index: 0; }
.game .deco.g1 { font-size: 40px; color: #f79ac6; left: 5%; top: 11%; }
.game .deco.g2 { font-size: 34px; color: #b9a4ff; right: 6%; top: 30%; animation-delay: .8s; }
.game .deco.g3 { font-size: 30px; color: #9ec8ff; left: 7%; top: 52%; animation-delay: 1.5s; }
.game-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 0; position: relative; z-index: 6; }
.howto { padding-top: 40px; padding-bottom: 56px; }
.howto .note { margin: 28px 0 0; }
.love-contact { padding-top: 24px; padding-bottom: 72px; }
.screen[hidden], .overlay[hidden] { display: none !important; }
.screen { padding: 28px 22px 30px; text-align: center; }

.kicker { margin: 0 0 6px; font-family: var(--label); font-size: 12px; letter-spacing: .24em; color: var(--pink); font-weight: 500; }
.title-screen h1 {
  margin: 0; font-family: var(--jp); font-weight: 700; line-height: 1.25; font-size: clamp(34px, 8vw, 58px);
  color: var(--ink);
}
.title-screen h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-screen h1 small { display: block; margin-top: 6px; font-size: clamp(15px, 3.6vw, 22px); color: var(--pink); letter-spacing: .1em; }
.title-copy { font-size: 14.5px; margin: 6px auto 16px; max-width: 30em; line-height: 1.9; }
.name-input { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 16px; color: var(--ink-soft); }
.name-input input { font: inherit; font-size: 16px; padding: 6px 14px; width: 10em; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-align: center; }
.tiny { font-size: 11px; color: var(--muted); margin: 14px 0 0; }

.btn {
  font: inherit; font-family: var(--jp); font-weight: 700; font-size: 15px; letter-spacing: .08em; cursor: pointer;
  display: inline-block; text-decoration: none; padding: 11px 26px; border: 0; border-radius: 999px; line-height: 1.5;
  color: #fff; background: var(--grad); box-shadow: 0 10px 22px -10px rgba(143, 107, 255, .8);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.big { font-size: 19px; padding: 14px 54px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

/* えみちん */
.title-emi { width: min(300px, 70%); margin: 4px auto 0; }
[data-emi] > .emi { display: block; width: 100%; height: auto; overflow: visible; }
.emi .bob { animation: bob 4.2s ease-in-out infinite; transform-origin: 200px 340px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(.8deg); } }
.emi .blink { animation: blink 5s infinite; transform-origin: 200px 210px; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.emi .ear-l { animation: earl 3.6s ease-in-out infinite; transform-origin: 150px 80px; }
.emi .ear-r { animation: earr 3.6s ease-in-out infinite .6s; transform-origin: 150px 80px; }
@keyframes earl { 0%, 90%, 100% { transform: rotate(0); } 94% { transform: rotate(-7deg); } }
@keyframes earr { 0%, 90%, 100% { transform: rotate(0); } 94% { transform: rotate(-7deg); } }
.emi .sparkles { opacity: .75; animation: twinkle 2.2s ease-in-out infinite; }
.emi .tail { animation: tail 3.4s ease-in-out infinite; transform-origin: 280px 500px; }
@keyframes tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }

/* 表情の切り替え */
.emi .eyes-closed, .emi .eyes-heart, .emi .blush2, .emi .sweat,
.emi .m-smile, .emi .m-happy, .emi .m-o, .emi .m-shy, .emi .m-sad,
.emi .brow-s, .emi .brow-a { display: none; }
[data-emi="smile"] .m-normal, [data-emi="happy"] .m-normal, [data-emi="surprised"] .m-normal,
[data-emi="shy"] .m-normal, [data-emi="sad"] .m-normal, [data-emi="love"] .m-normal { display: none; }
[data-emi="smile"] .m-smile { display: inline; }
[data-emi="happy"] .m-happy, [data-emi="love"] .m-happy { display: inline; }
[data-emi="happy"] .eyes-open, [data-emi="love"] .eyes-open { display: none; }
[data-emi="happy"] .eyes-closed { display: inline; }
[data-emi="happy"] .blush2, [data-emi="shy"] .blush2, [data-emi="love"] .blush2 { display: inline; }
[data-emi="happy"] .sparkles, [data-emi="love"] .sparkles { opacity: 1; animation: twinkle 1.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
[data-emi="love"] .eyes-heart { display: inline; }
[data-emi="surprised"] .m-o, [data-emi="surprised"] .sweat { display: inline; }
[data-emi="surprised"] .iris-l, [data-emi="surprised"] .iris-r { transform: scale(.78); transform-box: fill-box; transform-origin: center; }
[data-emi="shy"] .m-shy { display: inline; }
[data-emi="shy"] .iris-l, [data-emi="shy"] .iris-r { transform: translate(-8px, 6px); }
[data-emi="sad"] .m-sad, [data-emi="sad"] .brow-a { display: inline; }
[data-emi="sad"] .brow-n, [data-emi="shy"] .brow-n { display: none; }
[data-emi="shy"] .brow-s { display: inline; }
[data-emi="sad"] .sweat { display: inline; }
[data-emi="sad"] .brow-n { display: none; }

/* プレイ画面 */
.play-screen { padding: 0; text-align: left; position: relative; }
.hud {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid var(--line); font-family: var(--jp); font-weight: 700;
}
.hud-day b { font-size: 24px; color: var(--pink); font-family: var(--en); }
.hud-day span { font-size: 11px; color: var(--muted); margin-left: 4px; }
.hud-heart { flex: 1; display: flex; align-items: center; gap: 8px; }
.heart-ico { font-size: 20px; animation: beat 1.3s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.gauge { position: relative; flex: 1; height: 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.gauge i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #ff9ad5, #ff4f9a); transition: width .7s cubic-bezier(.2, .8, .2, 1); border-radius: 999px; }
.gauge em { position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px var(--en); font-style: normal; color: var(--ink); mix-blend-mode: multiply; }
.hud-money { font-size: 13px; white-space: nowrap; }
.hud-money b { font-size: 17px; font-family: var(--en); }
.mood { margin: 0; padding: 6px 16px; font-size: 12.5px; background: var(--lav); color: var(--ink); text-align: center; }

.stage { position: relative; height: 330px; overflow: hidden; }
.stage-bg { position: absolute; inset: 0; transition: background .6s; background: linear-gradient(#ffe9f4, #eadfff); }
.stage-bg.office { background:
  radial-gradient(circle at 18% 22%, rgba(255,255,255,.75) 0 7%, transparent 8%),
  radial-gradient(circle at 82% 30%, rgba(255,255,255,.55) 0 5%, transparent 6%),
  radial-gradient(ellipse at 50% 0, #ffffff 0, transparent 62%),
  linear-gradient(#dcebff 0 62%, #cdbbff 62% 100%); }
.stage-bg.cafe { background: radial-gradient(ellipse at 50% 0, #fff8ec, transparent 65%), linear-gradient(#ffeccf 0 60%, #eec9a6 60% 100%); }
.stage-bg.live { background:
  radial-gradient(circle at 50% 36%, rgba(255,214,242,.95) 0, rgba(255,160,225,.6) 28%, transparent 62%),
  radial-gradient(circle at 12% 12%, rgba(255,120,200,.55), transparent 34%),
  radial-gradient(circle at 88% 12%, rgba(110,190,255,.55), transparent 34%),
  linear-gradient(#a58bff, #6a4bd0 60%, #3f2a96); }
.stage-bg.izakaya { background: radial-gradient(circle at 18% 18%, rgba(255,190,110,.55), transparent 22%), radial-gradient(circle at 82% 22%, rgba(255,150,90,.45), transparent 22%), linear-gradient(#6a3322 0 58%, #341a12 58% 100%); }
.stage-bg.shop { background: radial-gradient(ellipse at 50% 0, #fff3fa, transparent 65%), linear-gradient(#ffd9ec 0 60%, #ffbddb 60% 100%); }
.stage-bg.sunset { background: radial-gradient(circle at 50% 78%, rgba(255,245,200,.7), transparent 38%), linear-gradient(#ffa9c1, #ffd3a2 55%, #b39cff); }
.stage-bg.study { background: radial-gradient(ellipse at 50% 0, #ffffff, transparent 65%), linear-gradient(#eefbe0 0 62%, #c3e2b3 62% 100%); }
/* 舞台の下端を、メッセージ枠になじませる */
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(transparent, rgba(60,40,110,.22)); pointer-events: none; }
.emi-wrap { position: absolute; left: 50%; bottom: -40px; width: 262px; transform: translateX(-50%); }
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters span { position: absolute; bottom: 90px; font-size: 26px; font-weight: 700; font-family: var(--en); color: #ff3f8e; text-shadow: 0 2px 0 #fff, 0 0 8px #fff; animation: floatup 1.6s ease-out forwards; }
@keyframes floatup { from { opacity: 1; transform: translateY(0) scale(.7); } to { opacity: 0; transform: translateY(-150px) scale(1.2); } }

.msgbox {
  position: relative; margin: -14px 14px 0; padding: 12px 18px 14px; min-height: 104px; cursor: pointer;
  background: rgba(255, 255, 255, .96); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 rgba(42, 45, 94, .12);
}
.who { margin: 0 0 2px; font-family: var(--jp); font-weight: 700; font-size: 13px; color: var(--pink); }
.msg { margin: 0; font-size: 15.5px; line-height: 1.8; min-height: 3.6em; white-space: pre-wrap; }
.next { position: absolute; right: 14px; bottom: 6px; color: var(--pink); font-size: 12px; animation: blinkn 1s steps(2) infinite; opacity: 0; }
.msgbox.waiting .next { opacity: 1; }
@keyframes blinkn { 50% { opacity: 0; } }

.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
.menu[hidden] { display: grid; visibility: hidden; pointer-events: none; } /* コマンド選択中も高さを保つ(下の内容が上にせり上がって画面が動くのを防ぐ) */
.menu button, .shop-list button, .choices button {
  font: inherit; text-align: left; cursor: pointer; padding: 10px 14px; border-radius: 16px; line-height: 1.4;
  background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: 0 5px 0 var(--line);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.menu button:hover:not(:disabled), .shop-list button:hover:not(:disabled), .choices button:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--line); border-color: var(--pink); }
.menu button b { display: block; font-family: var(--jp); font-size: 15px; }
.menu button small { color: var(--muted); font-size: 11.5px; }
.menu button:disabled { opacity: .45; cursor: not-allowed; }

.choices { display: grid; gap: 8px; padding: 0 14px 14px; }
.choices button { font-family: var(--jp); font-weight: 700; font-size: 15px; }

/* オーバーレイ */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 14px; background: rgba(42, 45, 94, .55); backdrop-filter: blur(3px); }
.panel { width: min(520px, 100%); max-height: 88vh; overflow: auto; padding: 20px 18px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .4); }
.panel h2 { margin: 0 0 4px; font-family: var(--jp); font-size: 20px; }
.panel-note { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }
.shop-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; text-align: left; }
.shop-list button { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.shop-list .nm { font-family: var(--jp); font-weight: 700; font-size: 14.5px; }
.shop-list .ds { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; font-family: var(--body); }
.shop-list .pr { font-family: var(--en); font-weight: 600; white-space: nowrap; color: var(--pink); }
.shop-list button:disabled { opacity: .45; cursor: not-allowed; }
.shop-list .own { font-size: 11px; color: var(--ink-soft); }

.overlay.live { background: rgba(14, 10, 45, .86); }
.overlay.live .panel { background: transparent; color: #fff; box-shadow: none; }
.overlay.live .panel-note { color: #d8ccff; }
.live-stage { position: relative; height: 230px; display: grid; place-items: center; }
.beat { position: absolute; width: 190px; height: 190px; border-radius: 50%; pointer-events: none; border: 6px solid rgba(255, 255, 255, .25); transition: all .12s; }
.beat.on { border-color: #ff5fa2; background: rgba(255, 95, 162, .28); box-shadow: 0 0 40px #ff5fa2, inset 0 0 40px #ff5fa2; transform: scale(1.08); }
.beat.hit { border-color: #fff36b; background: rgba(255, 243, 107, .3); box-shadow: 0 0 50px #fff36b; }
.penlight {
  width: 86px; height: 172px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; z-index: 2;
  transform: rotate(18deg); filter: drop-shadow(0 0 16px #37a8ff) drop-shadow(0 0 30px rgba(143, 227, 255, .7)); animation: plhue 6s linear infinite;
}
.penlight svg { width: 100%; height: 100%; display: block; }
.penlight:active { transform: rotate(-6deg) scale(.96); }
@keyframes plhue { to { filter: hue-rotate(360deg) drop-shadow(0 0 16px #37a8ff) drop-shadow(0 0 30px rgba(143, 227, 255, .7)); } }
.pl-ico { width: .8em; height: 1.6em; vertical-align: -.45em; display: inline-block; transform: rotate(20deg); margin: 0 .1em 0 .05em; filter: drop-shadow(0 0 3px rgba(55, 168, 255, .6)); }
.live-score { margin: 0; font-family: var(--jp); font-size: 16px; }
.live-score b { font-size: 26px; color: #ffd0ea; font-family: var(--en); }

/* エンディング */
.end-screen h2 { margin: 0 0 4px; font-family: var(--jp); font-size: clamp(24px, 6vw, 36px); line-height: 1.3; }
.end-text { font-size: 15px; line-height: 1.95; margin: 6px auto 16px; max-width: 30em; text-align: left; white-space: pre-wrap; }
.reward { margin: 8px 0 22px; padding: 18px 14px; border: 2px dashed var(--pink); border-radius: 22px; background: #fff7fb; }
.reward-head { margin: 0 0 10px; font-family: var(--jp); font-weight: 700; color: var(--pink); font-size: 17px; }
.reward-book img { width: min(200px, 56%); margin: 0 auto 8px; border-radius: 4px; box-shadow: 0 16px 30px -12px rgba(42, 45, 94, .6); }
.reward-book p { margin: 0 0 8px; font-size: 13px; }
.reward-more { display: flex; justify-content: center; gap: 8px; margin: 8px 0 0; }
.reward-more img { width: 18%; border-radius: 3px; box-shadow: 0 6px 14px -6px rgba(42, 45, 94, .5); }
.reward-contact { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.reward-contact img { width: 150px; margin: 8px auto; border-radius: 10px; }
.reward-contact .mailaddr { font-family: var(--en); font-weight: 600; font-size: 18px; letter-spacing: .04em; }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 560px) {
  .screen { padding: 22px 14px 26px; }
  .stage { height: 280px; }
  .emi-wrap { width: 230px; bottom: -34px; }
  .menu { gap: 8px; padding: 12px 10px; }
  .menu button { padding: 9px 10px; }
  .menu button b { font-size: 13.5px; }
  .site-header nav a { padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) { .emi *, .heart-ico, .next, .floaters span { animation: none !important; } }

/* 本屋さん・実物リンク */
.menu button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.shop-list li { display: grid; gap: 2px; }
.real-link { font-size: 12px; color: var(--pink); text-decoration: none; padding: 0 14px 4px; font-weight: 500; }
.real-link:hover { text-decoration: underline; }
.book-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.book-list a { display: grid; gap: 4px; text-decoration: none; text-align: center; color: var(--ink); font-size: 11.5px; line-height: 1.4; }
.book-list img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; box-shadow: 0 8px 16px -8px rgba(42, 45, 94, .6); transition: transform .15s; }
.book-list a:hover img { transform: translateY(-3px); }
.book-list em { font-style: normal; color: var(--pink); font-weight: 700; font-size: 11px; }
.choices a { display: block; text-decoration: none; font: inherit; font-family: var(--jp); font-weight: 700; font-size: 15px; text-align: left; padding: 10px 14px; border-radius: 16px; line-height: 1.4; background: #fff; border: 1px solid var(--pink); color: var(--pink); box-shadow: 0 5px 0 var(--line); }
.choices a:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--line); }
.reward-book small { color: var(--muted); }
.reward-book a { display: block; }
.reward-more a { display: contents; }

/* 見た目の切り替え: idol=ステージ(メガネなし・衣装) / office=普段(メガネ) / casual=親密(メガネなし・普段着) */
[data-look="idol"] .office-only { display: none; }
[data-look="office"] .idol-only, [data-look="casual"] .idol-only { display: none; }
[data-look="casual"] .glasses-only { display: none; }
[data-look="office"] .sparkles, [data-look="casual"] .sparkles { opacity: 0; animation: none; }
[data-look="office"][data-emi="happy"] .sparkles, [data-look="office"][data-emi="love"] .sparkles,
[data-look="casual"][data-emi="happy"] .sparkles, [data-look="casual"][data-emi="love"] .sparkles { opacity: 1; animation: twinkle 1.4s ease-in-out infinite; }
/* 普段は人間の耳(狐耳はアイドルのとき) */

/* ステージ(あすか魔キル)のキーカラーはチェリーレッド。普段は紫 */
[data-look="idol"] .hair-back { fill: url(#gHairBackIdol); }
[data-look="idol"] .hair-side { fill: url(#gHairIdol); }
[data-look="idol"] .iris-fill { fill: url(#gIrisIdol); }
[data-look="idol"] .hl { stroke: #ff8fa8; }

/* 普段は狐耳、ステージは猫耳 */
[data-look="idol"] .fox-only { display: none; }

.live-lyric { min-height: 3em; margin: 4px 0 6px; padding: 0 10px; font-family: var(--jp); font-weight: 700; font-size: 17px; line-height: 1.6; color: #ffd0de; text-shadow: 0 0 12px #ff3f6e; }

.end-song { margin: 0 auto 18px; padding: 14px; max-width: 30em; border-radius: 16px; background: #fff7fb; border: 1px dashed var(--pink); font-size: 14px; line-height: 1.8; }
.end-song a { margin-top: 8px; }
.end-song .lyric { display: block; margin: 8px 0 4px; font-style: normal; color: var(--muted); font-size: 13px; }
.link-note { margin: -6px 0 12px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.sound-toggle { position: relative; z-index: 6; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.sound-toggle:hover { border-color: var(--pink); color: var(--pink); }

/* ---- Canvaの立ち絵(画像) ---- */
.title-emi { position: relative; }
.emi-img { display: none; width: auto; height: 100%; max-width: none; margin: 0 auto; }
.emi-wrap, .title-emi { --emi-h: 372px; }
.emi-fx { display: none; position: absolute; inset: 0; pointer-events: none; }
.use-img > svg.emi { display: none; }
.use-img > .emi-img { display: block; animation: imgbob 4.2s ease-in-out infinite; transform-origin: 50% 90%; }
.use-img > .emi-fx { display: block; }
.emi-wrap.use-img { width: auto; height: var(--emi-h); bottom: -34px; }
.title-emi.use-img { width: fit-content; max-width: 100%; height: var(--emi-h); margin: 4px auto 0; }
.title-emi.use-img > .emi-img { max-width: 100%; }
@keyframes imgbob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(.4deg); } }
/* 表情の演出(顔の位置は絵に合わせた割合) */
.emi-fx > * { position: absolute; opacity: 0; transition: opacity .25s; font-style: normal; line-height: 1; }
.fx-blush { width: 12%; height: 6.5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 105, 150, .8), rgba(255, 105, 150, 0)); top: 43.5%; }
.fx-blush.l { left: 38.5%; } .fx-blush.r { left: 57.5%; top: 42.5%; }
.fx-eye { top: 35.5%; font-size: 4.6vw; color: #ff4f93; text-shadow: 0 0 6px #fff; }
.fx-eye.l { left: 40.5%; top: 34%; } .fx-eye.r { left: 59.5%; top: 33%; }
.fx-h { color: #ff6fa8; font-size: 22px; text-shadow: 0 0 6px #fff; }
.fx-h.h1 { left: 22%; top: 18%; } .fx-h.h2 { left: 76%; top: 14%; font-size: 28px; } .fx-h.h3 { left: 84%; top: 32%; font-size: 18px; }
.fx-s { color: #ffe46b; font-size: 22px; text-shadow: 0 0 6px #fff; }
.fx-s.s1 { left: 14%; top: 30%; } .fx-s.s2 { left: 88%; top: 22%; } .fx-s.s3 { left: 70%; top: 6%; }
.fx-sweat { left: 74%; top: 30%; font-size: 24px; }
.fx-bang { left: 66%; top: 6%; font-size: 36px; font-weight: 700; color: #ff5f7e; text-shadow: 0 0 6px #fff; font-family: var(--jp); }
[data-emi="happy"] .fx-blush, [data-emi="love"] .fx-blush { opacity: 1; }
[data-emi="shy"] .fx-blush { opacity: 1; transform: scale(1.25); }
[data-emi="smile"] .fx-blush { opacity: .5; }
[data-emi="happy"] .fx-s, [data-emi="love"] .fx-s { opacity: 1; animation: twinkle 1.4s ease-in-out infinite; }
[data-emi="love"] .fx-eye, [data-emi="love"] .fx-h { opacity: 1; animation: beat 1.2s ease-in-out infinite; }
[data-emi="shy"] .fx-h.h1 { opacity: .9; animation: beat 1.6s ease-in-out infinite; }
[data-emi="surprised"] .fx-bang, [data-emi="surprised"] .fx-sweat, [data-emi="sad"] .fx-sweat { opacity: 1; }
[data-emi="surprised"] > .emi-img { animation: pop .35s ease-out; }
[data-emi="sad"] > .emi-img { filter: saturate(.8) brightness(.97); transform: rotate(-1deg); animation: none; }
[data-emi="happy"] > .emi-img { animation: hop .7s ease-out 1, imgbob 4.2s ease-in-out .7s infinite; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes hop { 0% { transform: translateY(0); } 30% { transform: translateY(-14px); } 60% { transform: translateY(0); } 80% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
@media (max-width: 560px) { .emi-wrap, .title-emi { --emi-h: 318px; } .emi-wrap.use-img { bottom: -30px; } .fx-h, .fx-s { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .emi-img, .emi-fx > * { animation: none !important; } }

/* 表情ごとの絵ができたので、顔に重ねる演出は、周りの飾りだけにする */
.fx-blush, .fx-eye { display: none !important; }

/* アイドル絵は、画像の左右が切れているので、縁をなじませる */
/* ステージ衣装の絵は背景つき。ゲーム画面では舞台を暗い赤にして、左右をなじませる */
[data-look="idol"] > .emi-img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.stage.idol-stage .stage-bg { background: radial-gradient(circle at 50% 38%, #5a0f26, #240612 75%) !important; }
.emi-wrap[data-look="idol"].use-img { bottom: 0; height: 330px; }
@media (max-width: 560px) { .emi-wrap[data-look="idol"].use-img { height: 280px; } }
.title-emi[data-look="idol"] > .emi-img { -webkit-mask-image: none; mask-image: none; border-radius: 26px; box-shadow: 0 14px 34px rgba(150, 20, 60, .35), 0 0 0 3px rgba(255, 255, 255, .9); }

/* タイトルロゴ(透過) */
.title-logo-wrap { margin: -6px auto 0; line-height: 0; }
.title-logo { display: block; width: min(500px, 92%); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(209, 53, 127, .22)); }
.title-screen .title-emi { margin-top: -18px; }

.live-sound { margin: 0 auto 8px; }

/* あそびかた(タイトル画面) */
.howto-mini { max-width: 31em; margin: 6px auto 16px; padding: 14px 20px 14px; text-align: left; border-radius: 22px; background: linear-gradient(160deg, #ffe6f2, #f3e9ff); }
.howto-mini-title { margin: 0 0 6px; font-size: 13px; letter-spacing: .3em; }
.howto-mini ol { margin: 0; padding-left: 1.5em; font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }
.howto-mini b { color: var(--pink); }
/* スタートボタン(サイトの .button を大きく) */
.start-btn { border: 0; cursor: pointer; font-size: 19px; padding: 16px 64px; letter-spacing: .2em; }
.start-btn span { font-size: 14px; margin-left: 4px; }
@media (max-width: 820px) {
  .love-head .oshi-lead { padding-right: 0; }
  .love-head .pick-illust.head { position: static; display: block; height: 150px; margin: 4px 0 8px auto; }
  .love-stage { padding-left: 10px; padding-right: 10px; padding-top: 8px; }
  .game { border-radius: 28px; }
}

.howto-illust { position: absolute; right: 36px; top: 36px; height: 190px; width: auto; pointer-events: none; }
@media (max-width: 820px) { .howto-illust { position: static; display: block; height: 140px; margin: 0 0 -4px auto; } }

.end-count { margin: 0 0 14px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.stage-bg.snow { background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.8) 0 3%, transparent 4%), radial-gradient(circle at 70% 35%, rgba(255,255,255,.8) 0 2.5%, transparent 3.5%), radial-gradient(circle at 45% 12%, rgba(255,255,255,.7) 0 2%, transparent 3%), linear-gradient(#b3c8e8 0 55%, #e8f0fb 55% 100%); }

/* ミニゲーム一覧へ戻るリンク */
.back-games { margin: 0 0 10px; font-size: 13px; }
.back-games a { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line, #e6dcf6); color: var(--ink, #2d2a4a); text-decoration: none; font-weight: 500; }
.back-games a:hover { background: #fff; }

/* チェリーレッドのテーマ(ゲーム画面のなかだけ) */
.game { --pink: #c2123b; --love-red: #c2123b; }
.howto-mini { background: linear-gradient(160deg, #ffe3e8, #f6e8ff); }
.start-btn { background: linear-gradient(90deg, #c2123b, #e0457a 55%, #8f6bff); }
.reward, .end-song { background: #fff5f6; }
.gauge i { background: linear-gradient(90deg, #c2123b, #ff5a7e) !important; }

.end-rel { margin: 0 0 8px; font-family: var(--jp); font-weight: 700; font-size: 15px; color: var(--pink); letter-spacing: .08em; }

/* クリアの締め */
.end-thanks { margin: 6px auto 22px; padding: 18px 18px 16px; max-width: 30em; border-radius: 22px; text-align: center; background: linear-gradient(160deg, #fff0f3, #f6ecff); border: 2px solid rgba(194, 18, 59, .25); }
.end-thanks[data-win="1"] { background: linear-gradient(160deg, #ffe3ea, #fff3d6 60%, #f1e6ff); border-color: rgba(194, 18, 59, .5); box-shadow: 0 10px 28px rgba(194, 18, 59, .18); }
.end-thanks-title { margin: 0 0 8px; font-family: var(--jp); font-weight: 700; font-size: clamp(17px, 4.6vw, 22px); color: var(--pink); }
.end-thanks-text { margin: 0 0 10px; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.end-thanks-sign { margin: 0; font-size: 12px; letter-spacing: .2em; color: var(--muted); }

/* 小さい画面でも見出しが途中で折れないように */
.overlay.live .panel h2 { font-size: clamp(16px, 5.4vw, 20px); white-space: nowrap; }

/* チェリーレッドで統一(ゲームページの見出し・装飾・ライブ) */
.big-en { background: linear-gradient(100deg, #e0143f, #c2123b 55%, #7a0c2e); -webkit-background-clip: text; background-clip: text; }
h1.page-title .jp::before { background: linear-gradient(90deg, #e0143f, #8a1038); }
.game .deco.g1 { color: #e0486b; }
.gauge i { background: linear-gradient(90deg, #ff7a96, #c2123b); }
.beat.on { border-color: #ff2a5a; background: rgba(255, 42, 90, .28); box-shadow: 0 0 40px #ff2a5a, inset 0 0 40px #ff2a5a; }
.stage-bg.live { background:
  radial-gradient(circle at 50% 36%, rgba(255,90,120,.85) 0, rgba(194,18,59,.55) 28%, transparent 62%),
  radial-gradient(circle at 12% 12%, rgba(255,60,100,.5), transparent 34%),
  radial-gradient(circle at 88% 12%, rgba(255,120,150,.45), transparent 34%),
  linear-gradient(#7a0f2e, #4a0a1f 60%, #240612); }

/* 台詞の行数でメッセージ枠の高さが変わり、画面がずれないよう高さを確保 */
.msgbox { min-height: 150px; }
@media (max-width: 640px) { .msgbox { min-height: 210px; } }
.game { overflow-anchor: none; }

/* スマホではメニュー(上のナビ)を固定せず、ゲームの台詞を隠さない */
@media (max-width: 820px) { .site-header { position: static; } }
