/* Victory / defeat screen: trophy, ribbon, stats, reward tiles, chunky glossy button. */
.rs-back { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 35%, rgba(60,40,30,.82), rgba(14,10,12,.96)); animation: rise .3s both; overflow: auto; }
.rs-back.win::before { content: ""; position: absolute; left: 50%; top: 26%; width: 140vmax; height: 140vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255,214,120,.16) 0 7deg, transparent 7deg 18deg); animation: ray 40s linear infinite; mask-image: radial-gradient(circle, #000 0, transparent 55%); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 55%); pointer-events: none; }
.rs-card { position: relative; width: min(420px, 100%); text-align: center; color: #fff; padding-top: 4px; }
.rs-trophy { width: 150px; margin: 0 auto -34px; position: relative; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)); animation: trophyIn .8s cubic-bezier(.2,1.5,.4,1) both; }
.rs-back.loss .rs-trophy { animation: trophyIn .6s ease both; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)) grayscale(.3); }
@keyframes trophyIn { from { transform: translateY(-90px) scale(.3) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rs-ribbon { position: relative; z-index: 3; margin: 0 -10px; padding: .5rem 2.8rem .6rem; font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 11vw, 3rem); letter-spacing: .02em; line-height: 1.05; color: #fff6e2;
  background: linear-gradient(#d65a50, #a93329 60%, #8b261d); text-shadow: 0 3px 0 #5c150f, 0 0 12px rgba(0,0,0,.35); box-shadow: 0 6px 0 rgba(0,0,0,.4), inset 0 3px 0 rgba(255,255,255,.28); clip-path: polygon(0 12%, 7% 12%, 7% 0, 93% 0, 93% 12%, 100% 12%, 94% 56%, 100% 100%, 90% 100%, 90% 88%, 10% 88%, 10% 100%, 0 100%, 6% 56%); animation: ribbonIn .55s .2s cubic-bezier(.2,1.2,.4,1) both; }
.rs-ribbon span { display: block; transform: translateY(-2px); }
.rs-back.loss .rs-ribbon { background: linear-gradient(#6f84b0, #4c5f8b 60%, #38486e); text-shadow: 0 3px 0 #1e2845; }
@keyframes ribbonIn { from { transform: scaleX(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.rs-sub { margin-top: .6rem; color: #f0e2cc; font-weight: 700; }
.rs-div { height: 0; margin: 1.1rem 6% .9rem; border-top: 2px dashed rgba(255,255,255,.28); }
.rs-stats { display: flex; flex-direction: column; gap: .35rem; align-items: center; margin-bottom: 1.1rem; }
.rs-stat { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 800; animation: rise .4s both; text-shadow: 0 2px 0 rgba(0,0,0,.5); min-height: 30px; }
.rs-stat .ico { font-style: normal; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: linear-gradient(#ffd45a, #e09a1a); color: #5c3a05; font-size: 1rem; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.rs-stat .arr { color: #b8f23c; font-size: 1rem; } .rs-stat .arr.down { color: #ff8e76; transform: scaleX(1); }
.rs-stat b.up { color: #fff; } .rs-stat b.dn { color: #ffb0a0; }
.rs-tiles { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.4rem; min-height: 70px; }
.rs-tile { position: relative; width: 74px; height: 74px; border-radius: 12px; display: grid; place-items: center; border: 4px solid; animation: tilePop .5s cubic-bezier(.2,1.6,.4,1) both; box-shadow: 0 4px 0 rgba(0,0,0,.45), inset 0 3px 0 rgba(255,255,255,.35); }
.rs-tile.green { background: linear-gradient(#7ad04a, #3f8f2a); border-color: #2c6b1b; }
.rs-tile.purple { background: linear-gradient(#a06bdc, #6a3aa6); border-color: #4a2379; }
.rs-tile.gold { background: linear-gradient(#ffe27a, #e0a21f); border-color: #9a6a0c; }
.rs-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.rs-tile .g { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.rs-tile em { position: absolute; right: -4px; bottom: -6px; min-width: 24px; padding: 0 .35rem; font-style: normal; font-weight: 800; font-size: .8rem; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; -webkit-text-stroke: .6px #000; }
@keyframes tilePop { from { transform: scale(0) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rs-btn { display: block; margin: 0 auto; min-width: 190px; padding: .7rem 2.4rem .85rem; font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); cursor: pointer; border: 3px solid #1f5f60; border-radius: 14px; background: linear-gradient(#6fd6c8, #35a89c 55%, #2a8c85); box-shadow: 0 6px 0 #1f5f60, 0 10px 14px rgba(0,0,0,.4), inset 0 3px 0 rgba(255,255,255,.45); transition: transform .1s, box-shadow .1s; animation: rise .4s 1.2s both; }
.rs-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #1f5f60, inset 0 3px 0 rgba(255,255,255,.45); }
.rs-back.loss .rs-btn { background: linear-gradient(#8aa0c8, #5d77a8 55%, #4a6290); border-color: #2c3b5e; box-shadow: 0 6px 0 #2c3b5e, 0 10px 14px rgba(0,0,0,.4), inset 0 3px 0 rgba(255,255,255,.35); }
/* recruit reveal cards share the glossy tile look */
.rcard { border-radius: 14px; border-width: 4px; background: linear-gradient(#7ad04a, #3f8f2a); border-color: #2c6b1b; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.45), inset 0 3px 0 rgba(255,255,255,.35); }
.rcard b { text-shadow: 0 1px 0 #000; }
.rcard.epic { background: linear-gradient(#a06bdc, #6a3aa6); border-color: #4a2379; box-shadow: 0 0 22px #a06bdc, 0 4px 0 rgba(0,0,0,.45), inset 0 3px 0 rgba(255,255,255,.35); }
.rcard.legendary { background: linear-gradient(#ffe27a, #e0a21f); border-color: #9a6a0c; color: #4a2f00; box-shadow: 0 0 30px #ffcf4a, 0 4px 0 rgba(0,0,0,.45), inset 0 3px 0 rgba(255,255,255,.5); }
.rcard.legendary b { text-shadow: none; }
