/* 마피아 게임 — 화면과 움직임.
   낮/밤이 바뀔 때 배경이 통째로 바뀌고, 역할 카드는 뒤집히며 나타납니다. */

.mf-wrap { position: absolute; inset: 0; display: flex; flex-direction: column;
           overflow: hidden; touch-action: manipulation; color: var(--mf-fg, #fff);
           background: var(--mf-bg, linear-gradient(180deg, #14182B, #0A0C18));
           transition: background 900ms ease, color 600ms ease; }
/* 낮은 햇빛이 쏟아지는 파란 하늘, 밤은 깜깜한 밤하늘. 글자색과 패널색도 같이 바뀝니다. */
.mf-wrap.day   { --mf-bg: radial-gradient(circle at 78% 10%, #FFF3C4 0%, rgba(255,243,196,0) 26%),
                          linear-gradient(180deg, #58B8EF 0%, #8FD4F5 46%, #CFEBFA 78%, #EAF6E0 100%);
                 --mf-fg: #15223E; --mf-panel: rgba(255,255,255,.66); --mf-panel2: rgba(255,255,255,.86);
                 --mf-edge: rgba(20,40,80,.18); --mf-dim: rgba(21,34,62,.62); }
.mf-wrap.night { --mf-bg: radial-gradient(circle at 78% 12%, rgba(176,196,255,.30) 0%, rgba(176,196,255,0) 34%),
                          linear-gradient(180deg, #0B0E22 0%, #080A18 60%, #05060F 100%);
                 --mf-fg: #fff; --mf-panel: rgba(255,255,255,.07); --mf-panel2: rgba(4,6,18,.55);
                 --mf-edge: rgba(255,255,255,.14); --mf-dim: rgba(255,255,255,.66); }
.mf-wrap.over  { --mf-bg: radial-gradient(circle at 50% 18%, rgba(255,160,120,.28) 0%, rgba(255,160,120,0) 50%),
                          linear-gradient(180deg, #221A33, #0D0A16);
                 --mf-fg: #fff; --mf-panel: rgba(255,255,255,.07); --mf-panel2: rgba(4,6,18,.55);
                 --mf-edge: rgba(255,255,255,.14); --mf-dim: rgba(255,255,255,.66); }

/* 하늘의 해·달·별·구름 */
.mf-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mf-orb { position: absolute; right: 16%; top: 7%; width: 54px; height: 54px; border-radius: 50%;
          transition: transform 1s ease, opacity 1s ease, background 1s ease, box-shadow 1s ease; }
.day .mf-orb   { width: 72px; height: 72px; right: 13%; top: 5%;
                 background: radial-gradient(circle at 36% 32%, #FFFDF0 0 32%, #FFE27A 58%, #FFB83F 100%);
                 box-shadow: 0 0 46px 18px rgba(255,208,96,.55); animation: mfSun 6s ease-in-out infinite; }
@keyframes mfSun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.night .mf-orb { background: radial-gradient(circle at 64% 36%, #F3F6FF, #C3CCEA);
                 box-shadow: 0 0 26px 8px rgba(190,205,255,.28); transform: translateY(0) scale(.86); }
.night .mf-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
                        background: #080A18; transform: translate(-26%, -16%); }
.mf-star { position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%; background: #fff;
           opacity: 0; transition: opacity .9s ease; animation: mfTwinkle 3.4s ease-in-out infinite; }
.night .mf-star { opacity: .8; }
@keyframes mfTwinkle { 0%, 100% { opacity: .22; } 50% { opacity: .9; } }
/* 낮에만 흘러가는 구름 */
.mf-cloud { position: absolute; opacity: 0; transition: opacity .9s ease; filter: blur(.4px);
            background: #fff; border-radius: 50%; box-shadow: 34px 8px 0 -4px #fff, 68px 2px 0 -8px #fff, -30px 8px 0 -6px #fff; }
.mf-cloud.c1 { width: 56px; height: 26px; left: -20%; top: 13%; animation: mfDrift 44s linear infinite; }
.mf-cloud.c2 { width: 40px; height: 19px; left: -30%; top: 25%; animation: mfDrift 66s linear infinite 8s; }
.day .mf-cloud { opacity: .85; }
@keyframes mfDrift { to { transform: translateX(170vw); } }

/* 머리말: 몇째 날인지 · 남은 시간 · 오른쪽 위 버튼 */
.mf-top { position: relative; z-index: 3; padding: calc(env(safe-area-inset-top) + 46px) 12px 4px;
          display: flex; align-items: flex-start; gap: 8px; }
.mf-phase { flex: 1; min-width: 0; padding-top: 2px; }
.mf-phase b { display: block; font-size: 19px; font-weight: 1000; letter-spacing: -.02em; }
.mf-phase small { display: block; font-size: 11.5px; font-weight: 800; color: var(--mf-dim); margin-top: 1px; }
.mf-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mf-timer { min-width: 62px; text-align: center; padding: 5px 10px; border-radius: 14px;
            background: var(--mf-panel2); border: 1px solid var(--mf-edge);
            font-size: 20px; font-weight: 1000; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.mf-timer.urgent { color: #FF4E6A; animation: mfPulse .6s ease-in-out infinite; }
@keyframes mfPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.mf-actrow { display: flex; gap: 5px; }
.mf-act { padding: 7px 11px; border-radius: 12px; font-size: 12px; font-weight: 1000; white-space: nowrap;
          border: 1.5px solid var(--mf-edge); background: var(--mf-panel2); color: inherit;
          backdrop-filter: blur(6px); transition: transform .14s ease, background .2s ease, border-color .2s ease; }
.mf-act:active:not(:disabled) { transform: scale(.94); }
.mf-act.on { background: #3FD0A8; border-color: #3FD0A8; color: #06251C; }
.mf-act.alt.on { background: #FFC24B; border-color: #FFC24B; color: #2E1F00; }
.mf-act:disabled { opacity: .5; }
.mf-act.hide { display: none; }

/* 가운데 알림 띠 */
.mf-banner { position: relative; z-index: 2; margin: 2px 14px 0; padding: 9px 12px; border-radius: 14px;
             text-align: center; font-size: 13.5px; font-weight: 900; line-height: 1.4;
             background: var(--mf-panel); border: 1px solid var(--mf-edge); }
.mf-banner.in { animation: mfBannerIn .45s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes mfBannerIn { from { opacity: 0; transform: translateY(-10px) scale(.95); } to { opacity: 1; transform: none; } }
.mf-banner.bad  { background: rgba(232,86,107,.2); border-color: rgba(232,86,107,.55); color: #B3122E; }
.mf-banner.good { background: rgba(31,170,130,.18); border-color: rgba(31,170,130,.5); color: #0C6B52; }
.night .mf-banner.bad, .over .mf-banner.bad   { color: #FFC3CC; }
.night .mf-banner.good, .over .mf-banner.good { color: #BFF4E5; }
/* 작은 안내 쪽지 (경찰 수첩, 밤 행동 안내) */
.mf-note { padding: 8px 11px; border-radius: 13px; font-size: 12.5px; font-weight: 900; line-height: 1.45;
           background: var(--mf-panel); border: 1px solid var(--mf-edge);
           animation: mfBannerIn .35s ease-out both; }
.mf-note.bad  { background: rgba(232,86,107,.2); border-color: rgba(232,86,107,.55); }
.mf-note.good { background: rgba(31,170,130,.18); border-color: rgba(31,170,130,.5); }

/* 본문 */
.mf-body { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; flex-direction: column;
           padding: 10px 14px calc(env(safe-area-inset-bottom) + 10px); gap: 10px; }

/* ===== 역할 카드 ===== */
.mf-reveal { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.mf-card { width: min(232px, 62vw); aspect-ratio: 3 / 4.1; perspective: 1000px; }
.mf-card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
              transform: rotateY(180deg); transition: transform .85s cubic-bezier(.3,.9,.3,1.1); }
.mf-card.flip .mf-card-in { transform: rotateY(0deg); }
.mf-face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden;
           -webkit-backface-visibility: hidden; overflow: hidden;
           display: flex; flex-direction: column; align-items: center; justify-content: center;
           border: 2px solid rgba(255,255,255,.22); box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.mf-face.back { transform: rotateY(180deg);
                background: repeating-linear-gradient(45deg, #2A2545 0 10px, #241F3C 10px 20px); }
.mf-face.back span { font-size: 46px; opacity: .5; }
.mf-face.front { background: linear-gradient(170deg, rgba(255,255,255,.14), rgba(0,0,0,.34)),
                             var(--role, #3A3550); }
.mf-art { width: 74%; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.mf-face.front b { font-size: 25px; font-weight: 1000; letter-spacing: -.02em; margin-top: 2px;
                   text-shadow: 0 3px 12px rgba(0,0,0,.5); }
.mf-face.front small { font-size: 11.5px; font-weight: 800; opacity: .86; padding: 0 14px 10px;
                       text-align: center; line-height: 1.4; }
.mf-card.flip .mf-face.front { animation: mfCardPop .5s .55s ease-out both; }
@keyframes mfCardPop { 0% { box-shadow: 0 18px 44px rgba(0,0,0,.5); }
                       40% { box-shadow: 0 18px 54px rgba(0,0,0,.5), 0 0 0 10px rgba(255,255,255,.14); }
                       100% { box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 0 0 rgba(255,255,255,0); } }
.mf-mates { font-size: 12.5px; font-weight: 900; opacity: .9; text-align: center; line-height: 1.5;
            animation: mfBannerIn .4s 1s both; }

/* ===== 사람 목록 ===== */
.mf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px;
           overflow-y: auto; align-content: start; padding-bottom: 4px; }
.mf-p { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: 8px 4px 7px; border-radius: 15px; border: 1.5px solid var(--mf-edge);
        background: var(--mf-panel); transition: transform .16s ease, background .2s ease, border-color .2s ease; }
.mf-p svg { width: 42px; height: 46px; display: block; }
.mf-p b { font-size: 11.5px; font-weight: 900; max-width: 100%; overflow: hidden;
          text-overflow: ellipsis; white-space: nowrap; }
.mf-p i { font-style: normal; font-size: 10px; font-weight: 900; opacity: .72; }
.mf-p.me { border-color: var(--mf-dim); background: var(--mf-panel2); }
.mf-p.pick { border-color: #F0A400; background: rgba(255,195,40,.3); transform: translateY(-2px) scale(1.03); }
.mf-p.maf  { border-color: rgba(232,86,107,.7); background: rgba(232,86,107,.2); }
.mf-p.accused { border-color: #E8566B; background: rgba(232,86,107,.26); animation: mfPulse 1s ease-in-out infinite; }
.mf-p:active:not(:disabled) { transform: scale(.95); }
.mf-p:disabled { opacity: .45; }
.mf-p.dead { opacity: .4; }
.mf-p.dead svg { filter: grayscale(1); }
.mf-p.dead::after { content: "✕"; position: absolute; inset: 0; display: flex; align-items: center;
                    justify-content: center; font-size: 34px; font-weight: 1000; color: #FF6B7F; opacity: .8; }
.mf-p.out { animation: mfOut .7s ease-out both; }
@keyframes mfOut { 0% { transform: none; } 18% { transform: translateX(-5px) rotate(-3deg); }
                   36% { transform: translateX(5px) rotate(3deg); } 54% { transform: translateX(-3px); }
                   100% { transform: scale(.9); opacity: .4; } }
.mf-p .mf-votes { position: absolute; right: 4px; top: 4px; min-width: 19px; height: 19px; border-radius: 10px;
                  background: #FFD75E; color: #2A2110; font-size: 11px; font-weight: 1000;
                  display: flex; align-items: center; justify-content: center;
                  animation: mfBannerIn .25s ease-out both; }
.mf-p .mf-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0 0 14px 14px;
                background: #FFD75E; transform-origin: left; transform: scaleX(var(--v, 0));
                transition: transform .3s ease; }

/* ===== 채팅 ===== */
.mf-chat { display: flex; flex-direction: column; min-height: 0; flex: 1;
           border-radius: 16px; border: 1px solid var(--mf-edge); background: var(--mf-panel2); overflow: hidden; }
.mf-chat-head { padding: 6px 10px; font-size: 11px; font-weight: 900; color: var(--mf-dim);
                border-bottom: 1px solid var(--mf-edge); display: flex; justify-content: space-between; gap: 6px; }
.mf-chat-head .mf-ch { color: #C98A00; }
.night .mf-chat-head .mf-ch, .over .mf-chat-head .mf-ch { color: #FFD75E; }
.mf-chat-head .mf-ch.maf { color: #D13A52; }
.night .mf-chat-head .mf-ch.maf { color: #FF8D9C; }
.mf-chat-head .mf-ch.ghost { color: #7D6CC4; }
.night .mf-chat-head .mf-ch.ghost { color: #BFB2FF; }
.mf-log { flex: 1; min-height: 60px; overflow-y: auto; padding: 8px 10px;
          display: flex; flex-direction: column; gap: 5px; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.mf-msg { font-size: 12.5px; line-height: 1.45; word-break: break-word;
          animation: mfMsgIn .25s ease-out both; }
@keyframes mfMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mf-msg b { font-weight: 1000; margin-right: 5px; }
.mf-msg.mine b { color: #0F6FA8; }
.night .mf-msg.mine b, .over .mf-msg.mine b { color: #8FE9FF; }
.mf-msg.maf b { color: #D13A52; }
.night .mf-msg.maf b { color: #FF8D9C; }
.mf-msg.ghost { opacity: .85; }
.mf-msg.ghost b { color: #7D6CC4; }
.night .mf-msg.ghost b, .over .mf-msg.ghost b { color: #BFB2FF; }
.mf-msg.sys { font-size: 11.5px; font-weight: 900; color: var(--mf-dim); text-align: center; }
.mf-send { display: flex; gap: 6px; padding: 7px; border-top: 1px solid var(--mf-edge); }
.mf-send input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 11px; font-size: 14px;
                 border: 1px solid var(--mf-edge); background: var(--mf-panel); color: inherit; }
.mf-send input::placeholder { color: var(--mf-dim); opacity: .7; }
.mf-send button { padding: 9px 14px; border-radius: 11px; border: 0; font-size: 13px; font-weight: 900;
                  background: #4F7BE8; color: #fff; }
.mf-send button:disabled, .mf-send input:disabled { opacity: .4; }

/* ===== 밤에 눈 감기 ===== */
.mf-sleep { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: 10px; text-align: center; }
.mf-sleep .zz { font-size: 50px; animation: mfFloat 2.6s ease-in-out infinite; }
@keyframes mfFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.mf-sleep b { font-size: 18px; font-weight: 1000; }
.mf-sleep small { font-size: 12.5px; font-weight: 800; opacity: .68; }

/* ===== 끝판 ===== */
.mf-over { flex: 1; overflow-y: auto; text-align: center; }
.mf-win { font-size: 30px; font-weight: 1000; letter-spacing: -.02em; margin: 6px 0 2px;
          animation: mfWinIn .7s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes mfWinIn { 0% { opacity: 0; transform: scale(.5) rotate(-6deg); }
                     60% { opacity: 1; transform: scale(1.12) rotate(2deg); } 100% { transform: none; } }
.mf-win.mafia { color: #FF8D9C; text-shadow: 0 0 26px rgba(255,90,120,.6); }
.mf-win.town  { color: #7CF0C8; text-shadow: 0 0 26px rgba(80,230,180,.5); }
.mf-sub { font-size: 13px; font-weight: 900; opacity: .76; margin-bottom: 12px; }
.mf-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mf-r { padding: 8px 4px; border-radius: 15px; border: 1.5px solid var(--mf-edge);
        background: rgba(255,255,255,.07); animation: mfBannerIn .4s both; }
.mf-r svg { width: 46px; height: 52px; }
.mf-r b { display: block; font-size: 11.5px; font-weight: 1000; margin-top: 2px;
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-r i { font-style: normal; display: block; font-size: 10.5px; font-weight: 900; color: var(--role, #fff); }
.mf-r.dead { opacity: .55; }

/* ===== 업/다운 투표 · 최후의 변론 ===== */
.mf-ask { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
          padding: 14px 10px; border-radius: 18px; background: var(--mf-panel); border: 1px solid var(--mf-edge);
          animation: mfBannerIn .4s ease-out both; }
.mf-ask p { font-size: 15px; font-weight: 1000; text-align: center; line-height: 1.4; }
.mf-ask small { font-size: 11px; font-weight: 800; color: var(--mf-dim); text-align: center; }
.mf-ud { display: flex; gap: 10px; width: 100%; max-width: 330px; }
.mf-ud button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
                padding: 13px 6px; border-radius: 16px; font-size: 27px; line-height: 1;
                border: 2px solid var(--mf-edge); background: var(--mf-panel2); color: inherit;
                transition: transform .14s ease, background .2s ease, border-color .2s ease; }
.mf-ud button b { font-size: 13px; font-weight: 1000; }
.mf-ud button:active { transform: scale(.95); }
.mf-up.on { border-color: #1FAA59; background: rgba(31,170,89,.26); }
.mf-up.kill.on, .mf-down.on + .mf-up.kill.on { border-color: #E8566B; background: rgba(232,86,107,.26); }
.mf-down.on { border-color: #4F7BE8; background: rgba(79,123,232,.26); }
.mf-acc { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mf-acc svg { width: 62px; height: 70px; }
.mf-acc b { font-size: 15px; font-weight: 1000; }
.mf-defense { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px;
              border-radius: 18px; background: rgba(232,86,107,.14); border: 1.5px solid rgba(232,86,107,.45); }
.mf-defense p { font-size: 13px; font-weight: 900; text-align: center; line-height: 1.45; }
.mf-sleep.ghost .zz { animation: mfGhost 3s ease-in-out infinite; }
@keyframes mfGhost { 0%, 100% { transform: translateY(0) scale(1); opacity: .9; }
                     50% { transform: translateY(-14px) scale(1.05); opacity: .6; } }

/* ===== 아침 알림 팝업 ===== */
.mf-pop { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center;
          padding: 24px; background: rgba(6,10,24,.55); backdrop-filter: blur(5px); }
.mf-pop.hide { display: none !important; }
.mf-pop.on .mf-pop-card { animation: mfPopIn .55s cubic-bezier(.2,.9,.3,1.3) both; }
.mf-pop-card { max-width: 340px; width: 100%; padding: 22px 20px; border-radius: 22px; text-align: center;
               background: linear-gradient(180deg, #FFFCF2, #FFEFCB); color: #22303F;
               border: 2px solid rgba(255,255,255,.7); box-shadow: 0 22px 60px rgba(0,0,0,.45); }
@keyframes mfPopIn { 0% { opacity: 0; transform: scale(.7) translateY(18px); }
                     60% { opacity: 1; transform: scale(1.04); } 100% { transform: none; } }
.mf-pop-sun { font-size: 42px; animation: mfSun 3s ease-in-out infinite; }
.mf-pop-card h3 { font-size: 21px; font-weight: 1000; margin: 4px 0 8px; }
.mf-pop-card b { display: block; font-size: 15px; font-weight: 1000; line-height: 1.45; }
.mf-pop-card b.bad { color: #C01B36; }
.mf-pop-card b.good { color: #11795C; }
.mf-pop-card p { margin-top: 10px; font-size: 12.5px; font-weight: 800; opacity: .72; line-height: 1.5; }

/* ===== 끝판 연출 ===== */
.mf-finale { position: absolute; inset: 0; z-index: 11; pointer-events: none; overflow: hidden; }
.mf-finale.hide { display: none !important; }
/* 마피아 승: 피 묻은 테두리 + 액정이 깨지는 연출 */
.mf-vignette { position: absolute; inset: 0; animation: mfBleed 1.4s ease-out both;
               box-shadow: inset 0 0 90px 30px rgba(120,0,16,.85), inset 0 0 180px 60px rgba(60,0,8,.55);
               background: radial-gradient(circle at 50% 50%, transparent 46%, rgba(90,0,12,.42) 100%); }
@keyframes mfBleed { from { opacity: 0; } to { opacity: 1; } }
.mf-crack { position: absolute; left: 50%; top: 46%; width: min(86vw, 420px); height: min(86vw, 420px);
            transform: translate(-50%, -50%); }
.mf-crack path, .mf-crack circle { stroke-dasharray: 260; stroke-dashoffset: 260;
                                   animation: mfCrack .5s ease-out var(--d, 0s) forwards; }
@keyframes mfCrack { to { stroke-dashoffset: 0; } }
.mf-flash { position: absolute; inset: 0; background: #fff; animation: mfFlash .45s ease-out both; }
@keyframes mfFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
/* 시민 승: 12지신이 동그랗게 모여 뛰어놉니다 */
/* 4초쯤 신나게 뛰어논 뒤 서서히 걷혀서, 밑에 있는 모두의 역할이 보입니다. */
.mf-finale.party { background: radial-gradient(circle at 50% 38%, #FFF6D0 0%, #FFE9A8 24%, #BFE9FF 62%, #9BD7F5 100%);
                   animation: mfPartyOut 1.1s ease 4.2s both; }
@keyframes mfPartyOut { to { opacity: 0; } }
.mf-ring { position: absolute; left: 50%; top: 46%; width: min(70vw, 300px); height: min(70vw, 300px);
           transform: translate(-50%, -50%); animation: mfSpin 14s linear infinite; }
@keyframes mfSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.mf-dancer { position: absolute; left: 50%; top: 50%; width: 62px; margin: -31px 0 0 -31px; text-align: center;
             transform: rotate(var(--a)) translateY(calc(min(35vw, 150px) * -1)) rotate(calc(var(--a) * -1));
             animation: mfHop 1s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
.mf-dancer svg { width: 52px; height: 58px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.mf-dancer i { display: block; font-style: normal; font-size: 10.5px; font-weight: 1000; color: #15223E;
               text-shadow: 0 1px 0 rgba(255,255,255,.8); }
@keyframes mfHop { 0%, 100% { margin-top: -31px; } 50% { margin-top: -47px; } }
.mf-conf { position: absolute; top: -20px; width: 8px; height: 13px; border-radius: 2px;
           background: hsl(var(--h, 20) 90% 62%); animation: mfFall 2.6s linear var(--d, 0s) infinite; }
@keyframes mfFall { to { transform: translateY(110vh) rotate(540deg); } }

/* 낮↔밤이 바뀔 때 화면을 한 번 쓸고 지나가는 막 */
.mf-sweep { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0;
            background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.18), rgba(0,0,0,.92) 62%); }
.mf-sweep.on { animation: mfSweep 1s ease-in-out both; }
@keyframes mfSweep { 0% { opacity: 0; } 32% { opacity: 1; } 100% { opacity: 0; } }
.mf-sweep b { position: absolute; left: 0; right: 0; top: 46%; text-align: center;
              font-size: 27px; font-weight: 1000; letter-spacing: .02em; }

@media (max-height: 680px) {
  .mf-card { width: min(190px, 52vw); }
  .mf-top { padding-top: calc(env(safe-area-inset-top) + 42px); }
  .mf-p svg { width: 36px; height: 40px; }
}
