/* ---------- background motion (used inside the SVG art) ---------- */
.sway { animation: sway 5s ease-in-out infinite alternate; }
.sway.slow { animation-duration: 8s; }
.sway.storm { animation: swayStorm 1.1s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2.5deg); } }
@keyframes swayStorm { from { transform: rotate(4deg); } to { transform: rotate(13deg); } }
.drift { animation: drift 40s ease-in-out infinite alternate; }
.drift.fast { animation-duration: 7s; }
@keyframes drift { from { transform: translateX(-70px); } to { transform: translateX(70px); } }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }
.float { animation: floaty 5s ease-in-out infinite alternate; }
@keyframes floaty { to { transform: translateY(-22px); } }
.shimmer { animation: shimmer 3s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .55; } }
.wave { animation: wave 5s linear infinite; }
@keyframes wave { from { transform: translateX(-120px); } to { transform: translateX(0); } }
.foam { animation: shimmer 2.4s ease-in-out infinite; }
.bus { animation: bus 11s linear infinite; }
@keyframes bus { from { transform: translate(-420px, 470px); } to { transform: translate(1500px, 470px); } }
.shooting { opacity: 0; animation: shoot 7s 2s ease-out infinite; }
@keyframes shoot { 0% { opacity: 0; transform: translate(0, 0); } 3% { opacity: 1; } 10% { opacity: 0; transform: translate(-300px, 110px); } 100% { opacity: 0; } }
.flame { animation: flame .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flame { to { transform: scale(.85, 1.15); } }
.scroller { position: absolute; inset: 0; width: 200%; display: flex; animation: scroller 3.5s linear infinite; }
.bg-holder .scroller svg { width: 50% !important; height: 100%; }
@keyframes scroller { to { transform: translateX(-50%); } }

/* ---------- title extras ---------- */
#title-screen #title-fx { position: absolute; inset: 0; pointer-events: none; }
#title-screen .credit-line { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: 4px; opacity: .6; }
#title-screen .sound-note { position: absolute; top: 14px; right: 18px; font-size: 12px; opacity: .55; }

/* ---------- map extras ---------- */
#map-screen .map-path { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.map-form { background: rgba(42, 24, 80, .9); color: #fff; border-radius: 16px; padding: 8px 16px; font-size: 14px; font-weight: 800; display: flex; gap: 12px; align-items: center; }
.map-form b { color: var(--gold); }
.map-form .bar { width: 120px; height: 9px; border-radius: 6px; background: #4a3a7a; overflow: hidden; }
.map-form .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--v), var(--s), var(--gold)); }
.map-hint { position: absolute; bottom: 22px; left: 24px; z-index: 3; color: #2a1850; font-weight: 800; font-size: 15px; background: rgba(255,255,255,.8); padding: 8px 14px; border-radius: 14px; }

/* hermes name tag */
.dialogue .name.h { background: linear-gradient(#ffe39a, #e5a93b); color: #2a1850; }
.dialogue .text.side::before { content: "📱 "; }

/* ---------- incoming call ---------- */
.call { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 90px 0 60px; background: linear-gradient(#26364a, #0b141a); border-radius: 32px; }
.call .who { text-align: center; font-size: 26px; font-weight: 800; }
.call .who small { display: block; font-size: 14px; opacity: .65; font-weight: 500; margin-top: 6px; }
.call .ava { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; background: #fff; margin: 20px auto; animation: ring 1s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,143,163,.6); } 50% { box-shadow: 0 0 0 26px rgba(255,143,163,0); } }
.call .btns { display: flex; gap: 70px; }
.call .btns button { width: 66px; height: 66px; border-radius: 50%; font-size: 28px; color: #fff; }
.call .accept { background: #25d366; animation: nodeBounce2 .8s ease-in-out infinite; }
.call .decline { background: #e5484d; opacity: .5; cursor: not-allowed; }
@keyframes nodeBounce2 { 50% { transform: translateY(-8px); } }
.call .timer { font-size: 18px; opacity: .8; }

/* ---------- list card (9 steps) ---------- */
.list-card { position: absolute; z-index: 46; left: 50%; top: 45%; width: 560px; transform: translate(-50%, -50%) rotate(1.5deg); display: none;
  background: #fffaf0; color: #2a1850; padding: 26px 34px; border-radius: 10px; box-shadow: 10px 10px 0 #2a1850; border: 4px solid #2a1850;
  background-image: repeating-linear-gradient(transparent 0 31px, #e8dcc8 31px 32px); animation: roastIn .5s cubic-bezier(.3,1.6,.5,1); }
.list-card.on { display: block; }
.list-card h4 { font-family: var(--display); font-size: 22px; color: #e2607e; margin-bottom: 8px; }
.list-card ol { padding-left: 26px; font-family: var(--hand); font-size: 25px; line-height: 32px; }
.list-card li { opacity: 0; animation: tcIn .4s forwards; }
.list-card li:first-child { color: #c0182f; font-weight: 700; }
.list-card .note { font-size: 13px; font-weight: 800; opacity: .6; margin-top: 8px; text-align: right; }

/* ---------- evolution (after memory card) ---------- */
.evolve { position: absolute; inset: 0; z-index: 56; display: none; place-items: center; background: radial-gradient(circle, #3b2370, #05030f 70%); text-align: center; }
.evolve.on { display: grid; }
.evolve .ev-top { font-size: 16px; letter-spacing: 8px; color: var(--gold); font-weight: 900; }
.evolve .ev-old { font-family: var(--display); font-size: 34px; opacity: .5; text-decoration: line-through; margin-top: 20px; }
.evolve .ev-arrow { font-size: 40px; margin: 6px 0; animation: nextBob .8s infinite; }
.evolve .ev-new { font-family: var(--display); font-size: 60px; background: linear-gradient(#fff, #ffd36e, #ff8fa3); -webkit-background-clip: text; background-clip: text; color: transparent; animation: tcSlash 1s; }
.evolve .ev-lv { font-size: 20px; font-weight: 900; color: var(--v); margin-top: 4px; }
.evolve .ev-desc { font-family: var(--hand); font-size: 30px; margin-top: 10px; color: #ffe4ef; }
.evolve .ev-duo { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.evolve .ev-duo .token { width: 90px; height: 90px; }
.evolve.glitch .ev-new { animation: glitch .3s 4, tcSlash 1s; }
@keyframes glitch { 25% { transform: translate(-4px, 2px); text-shadow: 3px 0 #5aa9ff, -3px 0 #ff8fa3; } 75% { transform: translate(4px, -2px); } }

/* ---------- report ---------- */
.report { position: absolute; inset: 0; z-index: 47; display: none; background: linear-gradient(160deg, #120d2c, #2a1850 60%, #4a2050); padding: 22px 56px; overflow: auto; }
.report.on { display: block; }
.report h2 { font-family: var(--display); font-size: 38px; text-align: center; }
.report h2 small { display: block; font-family: var(--font); font-size: 16px; font-weight: 700; opacity: .7; letter-spacing: 3px; margin-top: 4px; }
.report .phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.report .ph { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 14px; animation: tcIn .6s backwards; }
.report .ph h5 { font-size: 16px; color: var(--gold); }
.report .ph em { display: block; font-size: 13px; opacity: .7; margin-bottom: 8px; }
.report .metric { font-size: 12px; font-weight: 700; margin-top: 8px; opacity: .9; }
.report .duo-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin-top: 3px; font-size: 10px; font-weight: 900; }
.report .duo-bar .bv { background: var(--v); display: grid; place-items: center; transition: width 1s; }
.report .duo-bar .bs { background: var(--s); display: grid; place-items: center; transition: width 1s; }
.report .one-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 3px; }
.report .one-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6b5bff, #ffd36e); transition: width 1.2s; }
.report .then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 16px; }
.report .tn { border-radius: 16px; padding: 14px 18px; background: rgba(0,0,0,.25); }
.report .tn h4 { font-size: 18px; margin-bottom: 6px; }
.report .tn.v h4 { color: var(--v); } .report .tn.s h4 { color: var(--s); }
.report .tn div { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 6px; font-size: 14px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.report .tn div span:first-child { opacity: .6; text-decoration: line-through; }
.report .tn div span:last-child { font-weight: 800; }
.report .verdict { margin-top: 12px; text-align: center; font-family: var(--hand); font-size: 25px; color: #ffe4ef; }
.report .row { text-align: center; margin-top: 8px; }

/* ---------- game bits ---------- */
.game .g-result { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; background: rgba(8,6,20,.72); }
.game .g-result .box { text-align: center; max-width: 640px; background: #fff; color: #2a1850; border-radius: 20px; padding: 28px 34px; box-shadow: 0 8px 0 #a06cd5; animation: roastIn .5s cubic-bezier(.3,1.6,.5,1); }
.game .g-result h3 { font-family: var(--display); font-size: 34px; color: #e2607e; }
.game .g-result p { font-size: 18px; font-weight: 600; margin: 10px 0 18px; line-height: 1.45; }
.game .doll { position: absolute; right: 70px; bottom: -30px; width: 380px; height: 500px; z-index: 2; transition: transform .25s, filter .25s; }
.game .doll.away { transform: scaleX(-1); filter: brightness(.25) saturate(0); }
.game .doll-tag { position: absolute; right: 120px; top: 150px; z-index: 3; font-family: var(--display); font-size: 30px; padding: 6px 18px; border-radius: 14px; transform: rotate(4deg); }
.game .doll-tag.green { background: #25d366; color: #fff; }
.game .doll-tag.warn { background: #ffd36e; color: #2a1850; }
.game .doll-tag.red { background: #e5484d; color: #fff; animation: tinyShake .25s 2; }
.game .tv { position: absolute; left: 90px; top: 170px; width: 600px; height: 360px; z-index: 2; background: #111; border-radius: 18px; border: 10px solid #2b2b38; box-shadow: 0 20px 40px rgba(0,0,0,.6); overflow: hidden; }
.game .tv .ep { position: absolute; left: 18px; top: 14px; font-weight: 900; font-size: 18px; color: #ff5fa2; letter-spacing: 1px; }
.game .tv .shapes { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 40px; font-size: 90px; color: #ff5fa2; font-weight: 900; }
.game .tv .prog { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 12px; background: #333; border-radius: 6px; overflow: hidden; }
.game .tv .prog i { display: block; height: 100%; width: 0; background: #e50914; }
.game .tv.playing .shapes { animation: tinyShake .5s infinite; }
.game .tv.paused::after { content: "❚❚"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 80px; background: rgba(0,0,0,.4); }
.game .caught { position: absolute; left: 90px; top: 110px; z-index: 3; font-weight: 900; font-size: 18px; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 10px; }
.game .wish-phone { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 420px; z-index: 2; background: #0b141a; border-radius: 28px; padding: 18px; border: 8px solid #222; }
.game .wish-phone .wp-head { font-weight: 800; padding: 6px 4px 12px; border-bottom: 1px solid #222; display: flex; gap: 10px; align-items: center; }
.game .wish-phone .wp-head .avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #fff; }
.game .wish-phone .wp-log { height: 160px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 0; }
.game .wish-phone .wp-input { background: #202c33; border-radius: 22px; padding: 12px 16px; font-size: 18px; min-height: 48px; }
.game .wish-phone .wp-input .caret { display: inline-block; width: 2px; height: 20px; background: #25d366; vertical-align: middle; animation: twinkle .8s steps(1) infinite; }
.game .wish-stats { position: absolute; left: 0; right: 0; top: 178px; text-align: center; z-index: 2; font-weight: 800; font-size: 16px; opacity: .9; }
.game .addr-phone { position: absolute; inset: 0; background: linear-gradient(160deg, #2a1850cc, #0b141acc); }

/* credits teaser */
.credits .teaser { margin-top: 80px; padding: 30px; }
.credits .teaser .big { color: var(--gold); }
.credits .end-btns { position: absolute; bottom: 20px; left: 20px; z-index: 2; display: flex; gap: 10px; }

/* mobile tap zone feedback */
.dialogue:active { transform: scale(.995); }
