/* The finish card's Export plate (Gage 12-01: "the export video area needs to be bigger and look more grand"), its Clip Rewards
   strip and the posting tips that open once the video is ready (js/clip-tips.js, js/finish.js exportHTML). Loaded after kit.css
   and desktop.css, so these rules win at the same weight. The look: a gunmetal plate under the dock's red rule, brass corner
   ticks and a double inked ring (css/plates.css, the Build 181 frame); the replay as a taped field photo; the fragment and the
   Ticket are the Clip Rewards promo's own (css/clip-promo.css .cpr-shard). Motion: transforms and opacity only, nothing in calm. */

/* ---- the plate ---- */
.fin-export { position: relative; isolation: isolate; padding: 14px 12px 12px; border: 1px solid #b08a52;
  background:
    linear-gradient(#d9a441, #d9a441) 5px 8px / 10px 2px no-repeat, linear-gradient(#d9a441, #d9a441) 5px 8px / 2px 10px no-repeat,
    linear-gradient(#d9a441, #d9a441) calc(100% - 5px) 8px / 10px 2px no-repeat, linear-gradient(#d9a441, #d9a441) calc(100% - 5px) 8px / 2px 10px no-repeat,
    linear-gradient(#d9a441, #d9a441) 5px calc(100% - 5px) / 10px 2px no-repeat, linear-gradient(#d9a441, #d9a441) 5px calc(100% - 5px) / 2px 10px no-repeat,
    linear-gradient(#d9a441, #d9a441) calc(100% - 5px) calc(100% - 5px) / 10px 2px no-repeat, linear-gradient(#d9a441, #d9a441) calc(100% - 5px) calc(100% - 5px) / 2px 10px no-repeat,
    radial-gradient(ellipse 70% 60% at 22% 30%, #c8202a2e, transparent 70%),
    linear-gradient(115deg, #3a3126 0%, #211d18 38%, #141312 75%);
  box-shadow: 0 0 0 1px #0b0b0b, 0 0 0 3px #2a2219, 0 0 0 4px #5a4d40, 0 5px 0 4px #0009, inset 0 1px 0 #f2d9a91f; }
.fin-export::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: #c8202a; z-index: 1; pointer-events: none; }
.fin-export::after { content: ''; position: absolute; inset: -5px; z-index: 3; pointer-events: none; opacity: 0;
  border: 3px solid #f2c14a; box-shadow: 0 0 24px #f2b70588, inset 0 0 18px #f2b70555; }
.fin-export .fin-replay-feature { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 14px; padding: 0; margin: 0; border: 0; background: none; }

/* the replay: a taped field photo */
.fe-photo { position: relative; margin: 2px 0 4px 2px; padding: 5px 5px 17px; background: linear-gradient(160deg, #f1e8d4, #d9cdb2); transform: rotate(-3deg);
  box-shadow: 0 3px 0 #0009, 0 0 0 1px #5a4d40; }
.fe-photo::before { content: ''; position: absolute; left: 50%; top: -8px; width: 46px; height: 15px; margin-left: -23px; transform: rotate(4deg);
  background: #cdbb8fbb; box-shadow: 0 1px 0 #0003; }
.fin-export .fe-photo canvas { display: block; width: 100%; height: auto; aspect-ratio: 102 / 140; object-fit: cover; object-position: 50% 44%; background: #10150f; }
.fe-photo figcaption { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font: 400 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #5a3f12; }

.fe-side { display: grid; align-content: center; justify-items: start; gap: 5px; min-width: 0; }
.fe-kick { display: inline-block; padding: 3px 7px 1px; font: 400 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #ff6a55;
  border: 2px solid currentColor; outline: 1px solid #ff6a5555; outline-offset: 2px; transform: rotate(-3deg); margin: 2px 0 3px 2px; }
.fin-export .fe-side h3 { margin: 0; font: 400 clamp(30px, 8.6vw, 40px)/.92 var(--display); letter-spacing: .02em; text-transform: uppercase; color: #fff1cf; text-shadow: 2px 2px 0 #000; }
.fin-export .fe-side p { margin: 0 0 4px; font-size: 13px; line-height: 1.3; color: #dccdb2; }
.fin-export .fe-go { width: 100%; min-height: 56px; margin: 0; justify-content: center; font: 400 25px/1 var(--display); letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid #ffb29466; box-shadow: 0 4px 0 #5d0f12, 0 4px 0 1px #000, inset 0 0 0 2px #ff8a7322, inset 0 2px 0 #ffffff33; }
.fin-export .fe-go .glyph { width: 22px; height: 22px; margin-right: 8px; }
.fin-export .fe-go .glyph .f { fill: #fff; }
.fin-export .frf-video { margin-top: 2px; width: 100%; }

/* ---- the attention beat: once, when the card settles (ClipTips.beat); never in calm ---- */
.fin-export.beat::after { animation: fe-ring 1.2s ease-out 1 both; }
.fin-export.beat .fe-go { animation: fe-pulse 1s cubic-bezier(.3, 1.4, .5, 1) 1 both; }
.fin-export .fe-go { position: relative; overflow: hidden; }
.fin-export.beat .fe-go::after { content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 32%, #fff3d977 50%, transparent 68%); animation: fe-shine .8s .2s ease-in-out 1 both; }
@keyframes fe-shine { to { transform: translateX(110%); } }
@keyframes fe-ring { 0% { opacity: 0; transform: scale(1.03); } 25% { opacity: 1; transform: none; } 60% { opacity: .8; } 100% { opacity: 0; } }
@keyframes fe-pulse { 0%, 100% { transform: none; } 22% { transform: scale(1.07); } 44% { transform: scale(.98); } 66% { transform: scale(1.03); } }

/* ---- the Clip Rewards strip: export -> post -> views -> fragments -> Ticket -> any item, a 6 s loop ---- */
.fe-loop { display: block; width: 100%; margin: 12px 0 0; padding: 9px 6px 8px; font: inherit; color: inherit; text-align: center; cursor: pointer;
  border: 1px dashed #7a6644; background:
    repeating-linear-gradient(0deg, #d9bd8b0c 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, #d9bd8b0c 0 1px, transparent 1px 12px), #11100e; }
.fe-loop:focus-visible { outline: 2px solid #f2c14a; outline-offset: 2px; }
.fe-reel { display: grid; grid-template-columns: minmax(0, .95fr) 12px minmax(0, 1.45fr) 12px minmax(0, 1fr) 12px minmax(0, .95fr); align-items: start; }
.fe-st { display: grid; justify-items: center; gap: 5px; min-width: 0; }
.fe-vis { position: relative; display: grid; place-items: center; height: 62px; width: 100%; }
.fe-st > small { font: 400 11px/1.05 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #cdb88f; }
.fe-st4 > small { color: #f2c14a; }
.fe-arr { display: grid; place-items: center; height: 62px; }
.fe-arr i { width: 7px; height: 7px; border-top: 2px solid #e0242d; border-right: 2px solid #e0242d; transform: rotate(45deg); margin-left: -3px; }

/* 1. the phone takes the clip, it is posted, the views roll */
.fe-st1 .fe-vis { align-content: start; gap: 3px; }
.fe-phone { position: relative; width: 30px; height: 44px; padding: 3px; border-radius: 6px; background: linear-gradient(160deg, #3a3631, #141312); box-shadow: 0 0 0 1px #000, 0 2px 0 #000a; }
.fe-scr { position: relative; display: grid; place-items: center; height: 100%; border-radius: 3px; overflow: hidden; background: url('../assets/promos/clip-promo-map.jpg') 34% 46% / 260% auto, #1f2a1c; }
.fe-play { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.fe-film { position: absolute; left: 3px; right: 3px; top: 9px; height: 18px; opacity: 0;
  background: repeating-linear-gradient(90deg, #15120e 0 2px, transparent 2px 4px) 0 1px / 100% 2px no-repeat, repeating-linear-gradient(90deg, #15120e 0 2px, transparent 2px 4px) 0 calc(100% - 1px) / 100% 2px no-repeat, #d9a441; }
.fe-film i { position: absolute; inset: 4px 3px; background: #6a7a4a; }
.fe-posted { position: absolute; left: 50%; bottom: 3px; padding: 1px 2px 0; margin-left: -17px; width: 30px; box-sizing: border-box; font: 400 8px/1 var(--display); font-style: normal; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: #c8202a; border: 1px solid #ffb294; transform: rotate(-8deg); }
.fe-views { display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px 0 3px; border: 1px solid #3a3330; background: #000; font: 400 12px/1 var(--display); color: #fff; }
.fe-eye { width: 11px; height: 11px; }
.fe-roll { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.fe-col { display: block; transform: translateY(calc(-100% * 10 / 11)); }
.fe-col i { display: block; height: 1em; font-style: normal; text-align: right; }
.fe-views .fe-roll { min-width: 3.1ch; }

/* 2. the 10-slot bar fills a fragment a 10,000 */
.fe-st2 .fe-vis { align-content: center; gap: 5px; }
.fe-bar { position: relative; display: block; width: 100%; height: 22px; overflow: hidden; box-shadow: 0 0 0 1px #57472e; background: #0b0b0b; }
.fe-shards { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.fe-shards i { position: relative; }
.fe-shards .cpr-shard { position: absolute; inset: 1px 0; }
.fe-cover { position: absolute; inset: 0; transform: translateX(100%);
  background: repeating-linear-gradient(135deg, #1a1816 0 3px, #24211d 3px 6px); }
.fe-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #3a3330 0 1px, transparent 1px) 0 0 / 10% 100%; }
.fe-flash { position: absolute; inset: 0; border: 2px solid #f2c14a; opacity: 0; box-shadow: inset 0 0 10px #f2b70588; }
.fe-n { display: inline-flex; align-items: baseline; font: 400 15px/1 var(--display); color: #f2c14a; }
.fe-n > span:last-child { color: #8f8a84; font-size: 12px; }
.fe-n .fe-roll .fe-col i { text-align: right; }

/* 3. the Ticket (the promo's, small) */
.fe-tk { position: relative; display: flex; align-items: center; width: 56px; height: 28px; color: #22170a; transform: rotate(-6deg);
  background: linear-gradient(135deg, #f6d88a, #e2ad48 34%, #c48d2e 70%, #9a7024);
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 5px, #000 5.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 5px, #000 5.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 5px, #000 5.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 5px, #000 5.5px) right / 51% 100% no-repeat; }
.fe-tk-stub { width: 10px; align-self: stretch; margin-left: 6px; border-right: 1.5px dashed #6a4a14; }
.fe-tk b { flex: 1; text-align: center; font: 400 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }

/* 4. the shop item: the lock comes off, Free slams down */
.fe-item { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #d9a441; box-shadow: 0 2px 0 #070807, inset 0 1px 0 #f2d9a914;
  background: radial-gradient(closest-side, #f2b70533, transparent), linear-gradient(170deg, #211f1b, #121113 72%); }
.fe-item img { width: 40px; height: 40px; image-rendering: pixelated; }
.fe-lock { position: absolute; left: 50%; top: 50%; width: 16px; height: 13px; margin: -3px 0 0 -8px; opacity: 0; border-radius: 2px; background: #d9a441; box-shadow: 0 0 0 1.5px #15120e; }
.fe-lock::before { content: ''; position: absolute; left: 3px; top: -8px; width: 6px; height: 7px; border: 2px solid #a4a09a; border-bottom: 0; border-radius: 5px 5px 0 0; }
.fe-free { position: absolute; right: -10px; bottom: -6px; padding: 2px 4px 0; font: 400 13px/1 var(--display); font-style: normal; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: #c8202a; border: 1.5px solid #ffb294; outline: 1px solid #c8202a; transform: rotate(-10deg); }

.fe-cap { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.3; color: #e8dcc4; }
.fe-cap u { color: #f2c14a; text-underline-offset: 2px; white-space: nowrap; }

/* the loop (6 s): each piece's resting state is the end of the story (what calm shows); the keyframes take it back to the start */
.fe-loop .fe-vis { animation: fe-fade 6s linear infinite; }
.fe-loop .fe-film { animation: fe-film 6s linear infinite; }
.fe-loop .fe-play { animation: fe-play 6s linear infinite; }
.fe-loop .fe-posted { animation: fe-posted 6s linear infinite; }
.fe-loop .fe-col { animation: fe-roll 6s linear infinite; }
.fe-loop .fe-cover { animation: fe-cover 6s linear infinite; }
.fe-loop .fe-flash { animation: fe-flash 6s linear infinite; }
.fe-loop .fe-tk { animation: fe-tk 6s linear infinite; }
.fe-loop .fe-lock { animation: fe-lock 6s linear infinite; }
.fe-loop .fe-item img { animation: fe-img 6s linear infinite; }
.fe-loop .fe-free { animation: fe-free 6s linear infinite; }
@keyframes fe-fade { 0% { opacity: 0; } 3%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fe-film { 0% { opacity: 0; transform: translateX(-34px) rotate(-12deg); } 4% { opacity: 1; transform: translateX(-34px) rotate(-12deg); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  11% { opacity: 1; transform: none; } 13%, 100% { opacity: 0; transform: none; } }
@keyframes fe-play { 0%, 12% { opacity: 0; transform: scale(.4); } 15% { opacity: 1; transform: scale(1.3); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes fe-posted { 0%, 13% { opacity: 0; transform: rotate(-8deg) scale(2); } 16%, 100% { opacity: 1; transform: rotate(-8deg); } }
@keyframes fe-roll { 0%, 18% { transform: translateY(0); animation-timing-function: steps(10, end); } 52%, 100% { transform: translateY(calc(-100% * 10 / 11)); } }
@keyframes fe-cover { 0%, 18% { transform: translateX(0); animation-timing-function: steps(10, end); } 52%, 100% { transform: translateX(100%); } }
@keyframes fe-flash { 0%, 52% { opacity: 0; } 55% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes fe-tk { 0%, 55% { opacity: 0; transform: rotate(-6deg) scale(.3); } 59% { opacity: 1; transform: rotate(-6deg) scale(1.18); } 62%, 67% { opacity: 1; transform: rotate(-6deg); animation-timing-function: ease-in; }
  73%, 100% { opacity: 0; transform: translateX(46px) rotate(4deg) scale(.6); } }
@keyframes fe-lock { 0%, 72% { opacity: 1; transform: none; } 77%, 100% { opacity: 0; transform: translateY(-12px) rotate(18deg); } }
@keyframes fe-img { 0%, 72% { opacity: .38; } 76%, 100% { opacity: 1; } }
@keyframes fe-free { 0%, 75% { opacity: 0; transform: rotate(-10deg) scale(2.2); } 78%, 100% { opacity: 1; transform: rotate(-10deg); } }

/* paused when it cannot be seen: offscreen (ClipTips.mount), the page hidden, or still under the reward ceremony */
.fe-loop.off *, html.fe-hidden .fe-loop *, .finish.pre .fe-loop * { animation-play-state: paused !important; }
/* calm (the game's setting or reduced motion): the story at rest, the plate stays lit */
.fin-export.still *, .fin-export.still::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .fin-export *, .fin-export::after { animation: none !important; } }

/* ---- the posting tips: open under the plate once the video is ready (ClipTips.ready) ---- */
.fe-tips { margin-top: 12px; padding: 10px 12px 12px; text-align: left; background: linear-gradient(115deg, #322c2345, transparent 45%), #1b1a18;
  border: 1px solid #5a4d40; box-shadow: inset 0 2px 0 #c8202a, 0 2px 0 #070807; }
.fe-tips-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid #f2766155; }
.fe-tips-head b { font: 400 21px/1 var(--display); letter-spacing: .065em; text-transform: uppercase; color: #f27661; }
.fe-tips-head small { padding: 2px 5px 1px; font: 400 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #9bd12e; border: 1.5px solid currentColor; transform: rotate(-3deg); }
.fe-tips-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.fe-tips-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: start; }
.fe-num { display: grid; place-items: center; width: 24px; height: 24px; font: 400 15px/1 var(--display); color: #22170a; padding-top: 2px; box-sizing: border-box;
  background: linear-gradient(135deg, #f6d88a, #d9a441 60%, #9a7024); box-shadow: 0 0 0 1px #15120e, 0 2px 0 #000a; }
.fe-tips-list li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.fe-tips-list b { font-size: 14px; line-height: 1.25; color: #fbf4e4; }
.fe-tips-list small { font-size: 12.5px; line-height: 1.3; color: #cbbda2; }
.fe-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 4px; }
.fe-cap-text { display: block; padding: 7px 9px; font-size: 13px; line-height: 1.35; color: #1b1a18; background: #efe6d2; border: 1px solid #ae9770;
  box-shadow: inset 0 1px 0 #fff8, 0 2px 0 #0008; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; cursor: text; }
.fe-copy { min-height: 44px; min-width: 70px; margin: 0; }
.fe-submit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 11px; padding-top: 9px; border-top: 1px dashed #5a4d40;
  font-size: 13px; line-height: 1.3; color: #e8dcc4; }
.fe-submit .btn { min-height: 44px; margin: 0; white-space: nowrap; }

/* ---- Double coins, right under the plate: a clear second action ---- */
.fin-double.btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin: 0; font: 400 20px/1 var(--display);
  letter-spacing: .05em; text-transform: uppercase; color: #f6dc8c; border: 1px solid #d9a441; background: linear-gradient(170deg, #2e2716, #17140d 72%);
  box-shadow: 0 3px 0 #070807, inset 0 1px 0 #f2d9a922; }
.fin-double .wi { width: 26px; height: 26px; }
.fin-export + .fin-double { margin-top: 2px; }

/* ---- sizes ---- */
@media (max-width: 360px) {
  .fin-export .fin-replay-feature { grid-template-columns: 92px minmax(0, 1fr); gap: 11px; }
  .fin-export .fe-go { font-size: 21px; min-height: 52px; }
  .fe-st > small { font-size: 10px; }
}
/* wide (desktop, a landscape phone): the strip and the tips sit beside the plate's photo and button */
@media (min-width: 720px) {
  .fin-export { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 16px; align-items: stretch; }
  .fin-export .fe-loop { margin: 0; display: grid; align-content: center; }
  .fe-tips { grid-column: 1 / -1; }
  .fin-export .fin-replay-feature { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (max-height: 500px) {
  .fin-export { padding: 10px 10px 9px; }
  .fin-export .fin-replay-feature { grid-template-columns: 76px minmax(0, 1fr); gap: 11px; }
  .fe-photo { padding-bottom: 5px; } .fe-photo figcaption { display: none; }
  .fin-export .fe-side h3 { font-size: 27px; }
  .fin-export .fe-side p { font-size: 12px; }
  .fin-export .fe-go { min-height: 46px; font-size: 21px; }
  .fe-vis, .fe-arr { height: 54px; }
  .fe-phone { width: 24px; height: 34px; padding: 2px; } .fe-st1 .fe-vis { gap: 2px; } .fe-posted { bottom: 1px; } .fe-free { bottom: 0; }
  .fe-cap { margin-top: 5px; font-size: 11.5px; }
  .fin-double.btn { min-height: 44px; font-size: 18px; }
}
body.pc-wide .fin-export .fin-replay-feature { grid-template-columns: 116px minmax(0, 1fr); gap: 18px; }
body.pc-wide .fin-export .fe-side h3 { font-size: 42px; }
