/* MIRROR — layered on games/monster/style.css (the engine's look). Only Mirror's own parts. */
[hidden] { display: none !important; }
.mirror .feed { overflow: hidden; }
.mirror .intro h1 { max-width: 10em; font-size: clamp(38px, 11.5vw, 74px); }
:lang(ja) .mirror .intro h1 { font-size: clamp(32px, 9.5vw, 60px); letter-spacing: -.01em; }
.mirror .kicker { color: var(--signal); }

/* 🔍 guess: three monsters, one is your friend */
.guessBox { display: grid; gap: 10px; }
.guessQ { margin: 0; font: 800 19px/1.3 system-ui, "Hiragino Sans", sans-serif; }
.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick { position: relative; padding: 6px; border: 3px solid var(--ink); border-radius: 18px; background: #fff; cursor: pointer; box-shadow: 0 6px 0 #4a4152; transition: transform .18s ease; }
.pick:active { transform: translateY(4px); box-shadow: 0 2px 0 #4a4152; }
.pick canvas { display: block; width: 100%; aspect-ratio: 1; }
.pick.real { border-color: #1fae5b; box-shadow: 0 0 0 4px rgba(31,174,91,.25), 0 6px 0 #1b7f45; }
.pick.fake { opacity: .45; filter: grayscale(.6); }
.pick.picked.fake { opacity: .8; border-color: var(--signal); box-shadow: 0 6px 0 #9b0f22; }
.pick.real::after { content: '✓'; position: absolute; top: -12px; right: -8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1fae5b; color: #fff; font: 900 18px/1 system-ui; }
.guessResult { margin: 0; font: 900 20px/1.25 system-ui, "Hiragino Sans", sans-serif; }

/* 💞 compatibility */
.compat { margin: 22px 0 6px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.08); text-align: center; }
.compat .label { margin: 0 0 8px; font: 800 12px ui-monospace, Menlo, monospace; letter-spacing: .16em; color: var(--signal); }
.pair3 { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 6px; }
.pair3 figure { margin: 0; }
.pair3 canvas { display: block; width: 100%; aspect-ratio: 1; }
.pair3 figcaption { font: 800 11px ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--dim); }
.babyFig figcaption { color: #d6337a; }
.compatPct { margin: 8px 0 0; font: 900 clamp(54px, 18vw, 88px)/.95 system-ui; letter-spacing: -.04em; color: #d6337a; }
.compatLine { margin: 4px 0 0; font: 800 17px/1.3 system-ui, "Hiragino Sans", sans-serif; }
.compatDef { margin: 6px 0 0; font: 500 12.5px/1.4 system-ui, "Hiragino Sans", sans-serif; color: var(--dim); }

/* the three friend games: the main actions */
.friendGames { display: grid; gap: 10px; margin: 18px 0 8px; }
.fg { display: block; width: 100%; padding: 18px 20px; border: 3px solid var(--ink); border-radius: 20px; text-align: left; font: 900 19px/1.15 system-ui, "Hiragino Sans", sans-serif; cursor: pointer; color: var(--ink); box-shadow: 0 6px 0 var(--ink); transition: transform .18s ease; }
.fg:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.fg.guess { background: #ffe066; }
.fg.compatB { background: linear-gradient(135deg, #ff99cc, #ffc2dd); }
.fg.compatB.hot { box-shadow: 0 0 0 4px rgba(255,92,168,.38), 0 6px 0 var(--ink); }
.fg.partyB { background: linear-gradient(135deg, #c9b6ff, #e2d6ff); text-align: left; justify-items: start; }
.fg.roastB { background: #ff8a5c; }

/* Intro viral quick-pick funnel: Feed-Baby + Mirror Party + Real IG Split Portrait */
.viralModes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0 2px; width: 100%; }
.vmPill { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; border-radius: 14px;
  border: 2px solid var(--ink); font: 800 12px/1.15 system-ui, "Hiragino Sans", sans-serif; color: var(--ink); text-decoration: none;
  cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .12s; }
.vmPill:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.vmBaby { background: #ffc2dd; }
.vmParty { background: #d6c7ff; }
.vmSplit { background: #fff0b8; }
@media (max-width: 340px) { .vmPill { font-size: 11px; padding: 9px 4px; } }

/* Live Mutation feedback during 30s swipe */
.mutToast { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); white-space: nowrap;
  padding: 4px 8px; border-radius: 999px; background: #e5132b; color: #fff; font: 900 10.5px/1.1 ui-monospace, Menlo, monospace;
  letter-spacing: .04em; font-style: normal; box-shadow: 0 4px 12px rgba(229,19,43,.55); animation: mutPop .85s ease-out both; pointer-events: none; }
@keyframes mutPop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.06); } 100% { opacity: 0; transform: translate(-50%, -14px) scale(.96); } }

/* 🪞 the real-algorithm upgrade */
.realBox { margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; border: 2px dashed rgba(28,20,36,.3); }
.realBtn { font: 800 16px system-ui, "Hiragino Sans", sans-serif; color: var(--ink); }
.realNote { margin: 6px 0 0; font: 500 13px/1.4 system-ui, "Hiragino Sans", sans-serif; color: var(--dim); }
.doorBody { font: 500 15px/1.5 system-ui, "Hiragino Sans", sans-serif; color: rgba(244,239,230,.82); margin: 0 auto 14px; }

/* 🔥 the roast */
.roast { z-index: 20; background: #1c1424; color: #fff4ea; display: grid; align-content: center; gap: 12px; padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom)); }
.roast h2 { margin: 0; font: 900 clamp(34px, 10vw, 52px)/1 system-ui, "Hiragino Sans", sans-serif; letter-spacing: -.03em; color: #ff8a5c; }
.roastMon { width: min(62vw, 260px); aspect-ratio: 1; justify-self: center; filter: drop-shadow(0 0 30px rgba(255,138,92,.45)); }
.roastLines { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.roastLines li { padding: 14px 16px; border-radius: 16px; background: rgba(255,244,234,.08); font: 800 19px/1.35 system-ui, "Hiragino Sans", sans-serif; }
.roastNote { margin: 0; font: 600 13px system-ui, "Hiragino Sans", sans-serif; color: rgba(255,244,234,.55); }
.roast .ghostBtn { color: #fff4ea; border-color: #fff4ea; }
.roast .primary { background: #ff8a5c; color: #1c1424; box-shadow: 0 6px 0 #a4502f; }
.reveal > .lab > *, .reveal > .lab { flex-shrink: 0; }

/* painted posts (AAA layer) */
.post .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 0; }
.post.has-photo .scene { visibility: hidden; }
.post.has-photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(transparent 55%, rgba(0,0,0,.7)); z-index: 0; pointer-events: none; }
.post.has-photo .meta, .post.has-photo .rail, .post.has-photo .prog, .post.has-photo .hk, .post.has-photo .mark { z-index: 1; }
.heroImg { width: 100%; max-width: 520px; display: block; margin: 0 auto; animation: fadein .6s ease both; }
/* v4 fixes: the shading layer covers the whole card (monster's ::after has height:52%) */
.post.has-photo::after { height: auto; top: 0; bottom: 0; }
/* the swipe hint reads as a blank disc over photos: make it a finger */
.mirror .hand { background: none !important; box-shadow: none !important; border: 0 !important; display: grid; place-items: center; font-size: 52px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.mirror .hand::before { content: '👆'; }
.mirror .hand > * { display: none; }

/* 2026-11-13: one look with the Mirror's front door (night teal, gold, a serif question) on the two screens that were cream. */
.mirror .intro, .mirror .reveal { background: radial-gradient(120% 70% at 50% 0%, #0d2226 0%, #071015 55%, #04080b 100%); color: #f3ead9; }
.mirror .intro .kicker, .mirror .reveal .kicker { color: #5fe0d4; }
.mirror .intro h1 { font: 400 clamp(34px, 9.6vw, 60px)/1.08 "Iowan Old Style", "Palatino Linotype", Georgia, "Hiragino Mincho ProN", "Noto Serif JP", serif; letter-spacing: -.01em; max-width: 12em; color: #f6ecd8; text-transform: none; }
:lang(ja) .mirror .intro h1 { font-size: clamp(28px, 8.2vw, 50px); }
.mirror .intro .startBtn { background: linear-gradient(100deg, #f0c27a, #ffe2b0); color: #1c1424; box-shadow: 0 0 0 1px rgba(255,226,176,.4), 0 10px 34px -8px rgba(240,194,122,.7); }
.mirror .intro .privacy { opacity: .55; }
.mirror .intro .heroImg { filter: drop-shadow(0 18px 40px rgba(95,224,212,.22)); }
.mirror .reveal { --line: rgba(243,234,217,.28); }
.mirror .reveal .parts li, .mirror .reveal .pair figure, .mirror .reveal .compat, .mirror .reveal .pick, .mirror .reveal .fg { color: #1c1424; }
.mirror .reveal .ghostBtn { color: #f3ead9; border-color: var(--line); }
.mirror .reveal .primary { background: linear-gradient(100deg, #f0c27a, #ffe2b0); color: #1c1424; box-shadow: 0 10px 34px -8px rgba(240,194,122,.7); }
.mirror .reveal .findings li, .mirror .reveal .friendFig { color: #1c1424; }

/* 2026-11-24 print-craft pass ------------------------------------------------------------------------------ */
/* Screen-1 funnel: dark editorial glass chips with an accent hairline and a slow sheen (transform only) */
.viralModes { gap: 8px; margin: 14px 0 4px; }
.vmPill { position: relative; overflow: hidden; min-height: 54px; padding: 9px 8px; border: 1px solid transparent; border-radius: 14px;
  background: linear-gradient(rgba(16,26,28,.96), rgba(10,16,18,.96)) padding-box, linear-gradient(135deg, var(--vm), rgba(255,255,255,.1) 55%, var(--vm)) border-box;
  color: #f4efe6; font: 800 12px/1.25 system-ui, "Hiragino Sans", "Noto Sans Thai", sans-serif; text-wrap: balance;
  box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); transition: transform .14s cubic-bezier(.2,1.4,.4,1); }
.vmPill::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.13) 50%, transparent 62%); transform: translateX(-130%); animation: vmSheen 6s ease-in-out infinite; }
.vmParty::after { animation-delay: .6s; } .vmSplit::after { animation-delay: 1.2s; }
@keyframes vmSheen { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.vmPill:active { transform: scale(.96); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.vmBaby { --vm: #ff8fc3; background-color: transparent; } .vmParty { --vm: #b8a2ff; } .vmSplit { --vm: #ffd27a; }
:lang(ja) .vmPill { word-break: auto-phrase; }
:lang(th) .vmPill { line-height: 1.4; }
:lang(th) .mirror .kicker, :lang(ja) .mirror .kicker, :lang(ko) .mirror .kicker { letter-spacing: .02em; }
/* Live mutation toast: a tilted purikura sticker — thick white rim, ink keyline, neon fill */
.mutToast { top: -34px; padding: 5px 11px; border-radius: 999px; background: linear-gradient(135deg, #ff3d8b, #ff9a3d); color: #fff;
  font: 900 11.5px/1.15 system-ui, "Hiragino Sans", "Noto Sans Thai", sans-serif; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(0,0,0,.25);
  border: 2.5px solid #fff; box-shadow: 0 0 0 2px #1c1424, 0 6px 14px rgba(255,61,139,.45); animation: mutSticker .9s cubic-bezier(.2,1.5,.4,1) both; z-index: 3; }
@keyframes mutSticker { 0% { opacity: 0; transform: translate(-50%, 8px) rotate(-14deg) scale(.6); } 18% { opacity: 1; transform: translate(-50%, 0) rotate(-5deg) scale(1.08); } 30% { transform: translate(-50%, 0) rotate(-5deg) scale(1); } 80% { opacity: 1; transform: translate(-50%, -4px) rotate(-5deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -12px) rotate(-5deg) scale(.94); } }
@media (prefers-reduced-motion: reduce) { .vmPill::after { animation: none; display: none; } .mutToast { animation: none; transform: translateX(-50%) rotate(-5deg); } .vmPill { transition: none; } }
