/* The effort pop (js/effort-pop.js, Gage 11-04): after a counted Campaign war battle, your circle (your rank's progress, this battle's
   effort in gold), the rank line and your side's push ring, in the middle of the screen, then it settles into the battle report.
   Above the results (#modal) and the ceremony (.fin-fx 35), under the tap shield (.fin-shield 36 is made after a tap). Calm: a still. */
.efp { position: fixed; inset: 0; z-index: 34; display: grid; place-items: center; padding: calc(var(--safe-t, 0px) + 12px) 16px calc(var(--safe-b, 0px) + 12px); touch-action: none; -webkit-user-select: none; user-select: none; }
.efp-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, #0b0908cc, #050404f2 70%); opacity: 0; transition: opacity .25s ease-out; }
.efp-card { --side: #4f86de; position: relative; display: grid; justify-items: center; gap: 8px; width: min(340px, 100%); max-height: 100%; box-sizing: border-box; padding: 14px 16px 12px; overflow: hidden;
  background: linear-gradient(#231b15, #15110e); border: 2px solid #0d0b09; box-shadow: inset 0 0 0 1px #6b5233, inset 0 4px 0 var(--side), 4px 4px 0 #0d0b09, 0 18px 40px #000a;
  transform: scale(.82) translateY(14px); opacity: 0; transition: transform .38s cubic-bezier(.3, 1.5, .5, 1), opacity .2s ease-out; }
.efp.ca .efp-card { --side: #d8423a; }
.efp.in .efp-dim, .efp.still .efp-dim { opacity: 1; }
.efp.in .efp-card, .efp.still .efp-card { transform: none; opacity: 1; }
.efp.out { pointer-events: none; }
.efp.out .efp-dim { opacity: 0; transition-duration: .3s; }
.efp.out .efp-card { transform: scale(.9) translateY(-30px); opacity: 0; transition: transform .3s ease-in, opacity .3s ease-in; }
.efp-eye { display: flex; align-items: center; gap: 7px; margin: 0; font: 400 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #e9dcc2; }
.efp-eye .war-flag { width: 24px; height: 16px; flex: none; }
.efp-eye em { font-style: normal; padding: 2px 6px; font-size: 12px; letter-spacing: .1em; color: #0d0b09; background: #d9c7a8; }
.efp-eye em.win { background: #ffd36e; } .efp-eye em.loss { background: #b9aa90; }
/* your circle: the push ring's look, big, with the count in the middle */
.efp-me { position: relative; display: grid; place-items: center; width: 128px; height: 128px; }
.efp-ring { position: absolute; inset: 0; display: grid; place-items: center; }
.efp-me .wrg .wrg-track, .efp-me .wrg .wrg-fill, .efp-me .wrg .wrg-part { stroke-width: 8.5; }
.efp-num { position: relative; z-index: 1; display: grid; justify-items: center; line-height: 1; pointer-events: none; }
.efp-num b { font: 400 36px/1 var(--display); color: #ffd36e; text-shadow: 2px 2px 0 #000; font-variant-numeric: tabular-nums; font-weight: 400; }
.efp-num small { margin-top: 2px; font: 400 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #d9c7a8; }
.efp-rank { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; margin: 0; text-align: center; }
.efp-rank b { font: 400 20px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #f2eee6; font-weight: 400; }
.efp-rank small { flex-basis: 100%; font: 400 13px/1.2 var(--display); letter-spacing: .03em; color: #d9c7a8; }
.efp-up { padding: 1px 6px; font: 400 13px/1.2 var(--display); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #0d0b09; background: #ffd36e; animation: efp-up .5s cubic-bezier(.3, 1.6, .5, 1); }
.efp-why { margin: 0; font: 400 12px/1.3 var(--body); color: #e0a58f; text-align: center; }
.efp-push { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; box-sizing: border-box; background: #120e0bcc; border: 2px solid #0d0b09; box-shadow: inset 0 0 0 1px #5a4630, inset 4px 0 0 var(--side); }
.efp-push > span { display: grid; gap: 2px; min-width: 0; }
.efp-push small { font: 400 11px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #bfae92; }
.efp-push b { font: 400 15px/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f2eee6; font-weight: 400; }
.efp-push b.gold { color: #ffd36e; }
.efp-tap { font: 400 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8f7f66; }
@keyframes efp-up { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-height: 600px) { .efp-card { gap: 5px; padding: 10px 14px 8px; } .efp-me { width: 96px; height: 96px; } .efp-me .wrg { --sz: 96px !important; } .efp-num b { font-size: 28px; } }
@media (max-height: 420px) { .efp-card { grid-template-columns: auto 1fr; justify-items: start; width: min(560px, 100%); } .efp-eye, .efp-push, .efp-tap, .efp-why { grid-column: 1 / -1; } .efp-me { grid-row: span 1; } .efp-rank { justify-content: flex-start; text-align: left; } }
.efp.still *, .calm .efp * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .efp *, .efp-card, .efp-dim { animation: none !important; transition: none !important; } }
