/* Old Lucknow Ride - what this game adds to the shared paper HUD (style.css, mobile.css) */
html, body { background: #ecd9b8; }
.sheet h1 { color: #b5533c; font-size: 50px; }
.sheet .credit { margin: 0 0 6px; font: bold 17px Georgia, serif; color: #2f6b4f; letter-spacing: .03em; }
.sheet .route { margin: 0 0 12px; font-size: 13px; color: #7a5a38; letter-spacing: .02em; }
.sheet { animation: drop .7s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes drop { from { transform: translate(-50%, -150%) rotate(-8deg); } to { transform: translate(-50%, -50%) rotate(-.6deg); } }

/* Drive or Ride */
#pick { display: flex; gap: 14px; justify-content: center; margin: 0 0 14px; }
#pick button { flex: 1; max-width: 230px; padding: 8px 10px 10px; background: #fff7e4; color: #2b2416; font-size: 20px; border-width: 3px; }
#pick button small { display: block; font: italic 12px Georgia, serif; color: #7a5a38; margin-top: 2px; }
#pick button svg { display: block; width: 104px; height: 52px; margin: 0 auto 2px; animation: bobble 1.6s ease-in-out infinite; }
#pick button.sel { background: #f2b33d; transform: translateY(-3px) rotate(-1deg); box-shadow: 4px 7px 0 #4a3220; }
#pick button:not(.sel) svg { animation-play-state: paused; opacity: .75; }
@keyframes bobble { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }

/* speech bubbles, pinned to people by fx.js */
.bubble { position: absolute; transform: translate(-50%, -100%) rotate(-2deg); background: #fff7e4; border: 2px solid #4a3220; border-radius: 12px;
          padding: 5px 12px; font: bold 17px Georgia, serif; color: #b5533c; white-space: nowrap; box-shadow: 2px 3px 0 rgba(58, 40, 14, .35);
          animation: pop .22s cubic-bezier(.3, 1.6, .5, 1) both; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid #4a3220; border-bottom: 0; }
@keyframes pop { from { transform: translate(-50%, -60%) scale(.3); } to { transform: translate(-50%, -100%) rotate(-2deg) scale(1); } }

/* Nitros speed lines */
#lines { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; transition: opacity .2s; }
#lines.on { opacity: 1; }
#lines i { position: absolute; left: 0; top: 0; width: 16vmax; height: 3px; margin-top: -1px; background: linear-gradient(90deg, rgba(255, 247, 228, 0), rgba(255, 247, 228, .85));
           transform-origin: 0 50%; animation: streak .45s linear infinite; }
@keyframes streak { from { opacity: 0; width: 4vmax; } 40% { opacity: 1; } to { opacity: 0; width: 22vmax; } }

/* finish confetti */
.confetti { position: fixed; top: -14px; width: 9px; height: 15px; z-index: 5; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { top: 105vh; transform: rotate(720deg) translateX(40px); } }

/* the start sheet always fits the window: it scrolls if it must, and tightens on a short one */
.sheet { max-height: 96vh; overflow-y: auto; box-sizing: border-box; }
@media (max-height: 640px) {
  .sheet { padding: 12px 26px 14px; }
  .sheet h1 { font-size: 34px; }
  .sheet .credit { font-size: 14px; margin-bottom: 3px; }
  .sheet .sub { margin-bottom: 6px; font-size: 14px; }
  .sheet .route { display: none; }
  .sheet table { margin-bottom: 10px; border-spacing: 8px 2px; font-size: 13px; }
  #pick { margin-bottom: 8px; }
  #pick button { font-size: 16px; padding: 4px 8px 6px; }
  #pick button svg { width: 72px; height: 36px; }
  .sheet > button { font-size: 19px; padding: 7px 32px; }
}
#msg { background: #f2b33d; }
html.touch .sheet h1 { font-size: 30px; }
html.touch .sheet .credit { font-size: 14px; margin-bottom: 3px; }
html.touch .sheet .route, html.touch .touchhelp { display: none; }
html.touch #pick { margin-bottom: 8px; }
html.touch #pick button { font-size: 16px; padding: 4px 8px 6px; }
html.touch #pick button svg { width: 76px; height: 38px; }
html.touch .bubble { font-size: 13px; padding: 3px 9px; }
html.touch #tbtns { grid-template-columns: repeat(3, var(--b)); }
html.touch { --b: min(68px, 19vh); }
