/* Zeus Ride (order/ride.php): the page around the pixel game. The game itself is drawn on the canvas (order/ride.js); this file holds the frame, the bar at the bottom and the voucher panel. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0d0918; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body.rd { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); color: #f4eaff; font: 15px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
#stage { display: grid; place-items: center; min-height: 0; touch-action: none; }
canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: #120d24; touch-action: none; outline: none; }
.rd-bar { display: flex; justify-content: center; gap: 22px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); touch-action: manipulation; }
.rd-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: #b9aadf; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .rd-bar a:hover { color: #f4eaff; } }
/* the voucher the guest already has: always visible under the game, with the code to copy */
.rd-have { margin: 0; padding: 4px 12px 0; text-align: center; font-size: 14px; color: #f4eaff; touch-action: manipulation; user-select: text; -webkit-user-select: text; }
.rd-have[hidden] { display: none; }
.rd-have strong { color: #ffd45a; letter-spacing: 0.08em; font-size: 16px; }
.rd-have small { display: block; color: #b9aadf; font-size: 12px; }
.rd-have .rd-link { min-height: 36px; }
.rd-msg { align-self: center; justify-self: center; padding: 24px; text-align: center; user-select: text; -webkit-user-select: text; }
.rd-msg h1 { margin: 0 0 8px; font-size: 28px; }
.rd-off .rd-bar { align-self: start; }
.rd-mute { min-height: 44px; padding: 0 6px; border: 0; background: none; color: #b9aadf; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; touch-action: manipulation; }
.rd-mute[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .rd-mute:hover { color: #f4eaff; } }
.rd-credit { margin: 0; padding: 0 12px calc(8px + env(safe-area-inset-bottom)); color: #8a7fb0; font-size: 11px; text-align: center; touch-action: manipulation; }
/* the voucher: shown over the lower part of the screen when the run earned one */
.rd-win { position: fixed; left: 50%; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 5; width: min(380px, calc(100% - 20px)); transform: translateX(-50%); padding: 10px 14px 4px; border: 2px solid #ff4fa3; border-radius: 14px; background: rgba(11, 7, 22, 0.97); text-align: center; touch-action: manipulation; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); animation: rd-up 260ms ease-out; user-select: text; -webkit-user-select: text; }
.rd-win[hidden] { display: none; }
@keyframes rd-up { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.rd-lead { margin: 0; font-size: 15px; }
.rd-lead strong { color: #ffd45a; }
.rd-code { margin: 6px 0; padding: 6px 12px; display: inline-block; border: 1px dashed #ffd45a; border-radius: 10px; font-size: 22px; font-weight: 700; letter-spacing: 0.12em; color: #ffd45a; }
.rd-fine { margin: 0 0 4px; font-size: 12px; line-height: 1.35; color: #b9aadf; text-wrap: balance; }
.rd-act { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 0 4px; margin-top: 2px; }
.rd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; white-space: nowrap; border: 1px solid #ffd45a; border-radius: 999px; background: #ffd45a; color: #1a1408; font-size: 14px; font-weight: 700; text-decoration: none; }
.rd-btn:active { transform: scale(0.97); }
.rd-link { min-height: 44px; padding: 0 8px; white-space: nowrap; border: 0; background: none; color: #b9aadf; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; touch-action: manipulation; }
@media (hover: hover) and (pointer: fine) { .rd-btn:hover { background: #ffe18a; } .rd-link:hover { color: #f4eaff; } }
@media (prefers-reduced-motion: reduce) { .rd-win { animation: none; } }
