/* End-of-game actions shared by the Horacio games (Rosco, Millions, Stable Hand).
   Three tiers, each with its own look so it's obvious what each button does:
   1. challenge a mate (the big yellow button from challenge.js, unchanged)
   2. "Share your result": a framed box of three icon tiles (share image / save image / copy text)
   3. smaller outline links with an icon (today's ranking, see answers)
   The icon is drawn with ::before, so scripts can change a button's text without losing it. */
.ek{margin:14px 0 10px;background:#1d1a2b;border:3px solid #000;box-shadow:4px 4px 0 rgba(0,0,0,.45);padding:10px 10px 12px;text-align:left}
.ek-h{margin:0 2px 8px;font:400 15px/1.2 var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase;color:#f2c230}
.ek-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ek-t{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:96px;padding:10px 4px 8px;background:#fbf6e8;color:#1d1a2b;border:3px solid #000;box-shadow:0 4px 0 #000;font:400 19px/1.05 var(--disp);text-align:center;cursor:pointer;transition:transform 120ms cubic-bezier(.23,1,.32,1),box-shadow 120ms cubic-bezier(.23,1,.32,1);-webkit-tap-highlight-color:transparent}
.ek-t:active{transform:translateY(3px);box-shadow:0 1px 0 #000}
.ek-t:disabled{opacity:.6}
.ek-t::before{content:'';width:40px;height:40px;flex:none;border:3px solid #000;background-color:var(--ic);background-repeat:no-repeat;background-position:center;background-size:24px 24px;image-rendering:pixelated}
.ek-img{--ic:#f2c230}
.ek-dl{--ic:#4fd7ff}
.ek-cp{--ic:#5cd28a}
.ek-img::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%231d1a2b' d='M1 2h10v8H1z'/%3E%3Cpath fill='%23fbf6e8' d='M2 3h8v6H2z'/%3E%3Cpath fill='%231d1a2b' d='M3 8l2-3 2 2 1-1 2 2v1H3z'/%3E%3Cpath fill='%23f2c230' d='M7 4h1v1H7z'/%3E%3C/svg%3E")}
.ek-dl::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%231d1a2b' d='M5 1h2v5h2L6 9 3 6h2zM2 9h1v1h6V9h1v2H2z'/%3E%3C/svg%3E")}
.ek-cp::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%231d1a2b' d='M1 1h7v2H3v6H1zM4 4h7v7H4z'/%3E%3Cpath fill='%23fbf6e8' d='M5 5h5v5H5z'/%3E%3Cpath fill='%231d1a2b' d='M6 6h3v1H6zM6 8h3v1H6z'/%3E%3C/svg%3E")}
.ek-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.ek-l{flex:1 1 180px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:8px 12px 6px;background:transparent;color:#fbf6e8;border:3px dashed rgba(251,246,232,.7);font:400 20px/1 var(--disp);text-decoration:none;cursor:pointer;transition:background-color 150ms ease,transform 120ms cubic-bezier(.23,1,.32,1);-webkit-tap-highlight-color:transparent}
.ek-l:hover{background:rgba(251,246,232,.1)}
.ek-l:active{transform:scale(.97)}
.ek-l::before{content:'';width:20px;height:20px;flex:none;background-repeat:no-repeat;background-size:20px 20px;image-rendering:pixelated}
.ek-rk::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%23f2c230' d='M2 1h6v3L7 6H6v2h2v1H2V8h2V6H3L2 4zM0 2h2v2H1zM8 2h2v2H9z'/%3E%3C/svg%3E")}
.ek-ans::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%23fbf6e8' d='M3 2h4v1h2v1h1v2H9v1H7v1H3V7H1V6H0V4h1V3h2z'/%3E%3Cpath fill='%231d1a2b' d='M4 3h2v4H4zM3 4h4v2H3z'/%3E%3C/svg%3E")}
@media (max-width:380px){.ek-t{font-size:17px;min-height:88px}.ek-t::before{width:34px;height:34px}}
@media (prefers-reduced-motion:reduce){.ek-t,.ek-l{transition:none}}
.ek-links[hidden],.ek[hidden]{display:none}
