index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no">
  6. <title>Plan Maker 2000</title>
  7. <style>
  8. :root { --bg:#f6f6f6; --card:#fff; --ink:#111; --mute:#777; --line:#e5e5e5; --felt:#0d3b2e; --felt2:#0a2d23; --gold:#f2c14e; --chip:#e63946; --chip2:#ffd166; --jev:#7c5cff; }
  9. * { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
  10. body { margin:0; font-family:-apple-system, system-ui, sans-serif; background:var(--bg); color:var(--ink); transition: background .6s; }
  11. body.felt { background:var(--felt); color:#fff; }
  12. body.hot { background:var(--felt2); }
  13. body.crt { background:#000; }
  14. #app { max-width:480px; margin:0 auto; padding:16px; padding-bottom:120px; }
  15. h1 { font-size:22px; margin:8px 0 4px; }
  16. .card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin:10px 0; color:var(--ink); }
  17. body.felt .card { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); color:#fff; }
  18. .mute { color:var(--mute); font-size:13px; }
  19. body.felt .mute { color:rgba(255,255,255,.6); }
  20. input, button { font:inherit; }
  21. input { width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; margin:6px 0; background:#fff; color:#111; }
  22. button { padding:12px 16px; border:0; border-radius:10px; background:#111; color:#fff; font-weight:600; width:100%; margin:6px 0; }
  23. button.ghost { background:transparent; border:1px solid var(--line); color:inherit; }
  24. button.small { width:auto; padding:8px 12px; margin:0 4px 0 0; font-size:14px; }
  25. button:disabled { opacity:.4; }
  26. .opt { display:flex; align-items:center; gap:10px; padding:12px; border-radius:12px; margin:8px 0; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); position:relative; overflow:hidden; }
  27. .opt .label { flex:1; font-weight:600; }
  28. .opt .odds { font-variant-numeric:tabular-nums; font-size:13px; min-width:44px; text-align:right; }
  29. .opt .bar { position:absolute; left:0; bottom:0; height:3px; background:var(--jev); transition:width .35s ease; }
  30. .opt .bar.wobble { animation:wob 1.2s infinite alternate ease-in-out; }
  31. @keyframes wob { from { opacity:.5; transform:scaleX(.96);} to { opacity:1; transform:scaleX(1.04);} }
  32. .opt.dead { opacity:.35; text-decoration:line-through; }
  33. .opt.more { border-style:dashed; }
  34. .chips { display:flex; gap:4px; flex-wrap:wrap; }
  35. .chip { width:16px; height:16px; border-radius:50%; background:var(--chip); border:2px solid #fff3; }
  36. .chip.other { background:var(--chip2); }
  37. .stack { display:flex; gap:6px; align-items:center; }
  38. .stack button { width:34px; height:34px; padding:0; border-radius:50%; background:#fff2; color:#fff; font-size:18px; margin:0; }
  39. .bank { display:flex; gap:4px; justify-content:center; margin:10px 0; }
  40. .bank .chip { width:22px; height:22px; }
  41. .members { display:flex; gap:6px; flex-wrap:wrap; font-size:12px; }
  42. .member { padding:4px 8px; border-radius:99px; background:rgba(255,255,255,.12); }
  43. .member.locked { background:var(--gold); color:#111; }
  44. .jev { display:flex; align-items:center; gap:8px; font-size:13px; margin-top:8px; }
  45. .jev .face { width:20px; height:20px; background:var(--jev); border-radius:4px; image-rendering:pixelated; }
  46. body.hot .jev .face { width:28px; height:28px; animation:bob .5s infinite alternate; }
  47. @keyframes bob { from { transform:translateY(0);} to { transform:translateY(-3px);} }
  48. .footer { position:fixed; left:0; right:0; bottom:0; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:rgba(0,0,0,.35); backdrop-filter:blur(10px); }
  49. .footer .inner { max-width:480px; margin:0 auto; display:flex; gap:8px; }
  50. .lever { height:64px; font-size:20px; background:var(--gold); color:#111; border-radius:14px; }
  51. #reveal { position:fixed; inset:0; background:#000; color:#fff; display:none; flex-direction:column; align-items:center; justify-content:center; padding:24px; text-align:center; z-index:9; }
  52. #reveal.on { display:flex; }
  53. #reveal .scan { position:absolute; inset:0; background:repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px); pointer-events:none; }
  54. .reel { font-size:34px; font-weight:800; min-height:48px; letter-spacing:.5px; }
  55. .reel.shake { animation:shake .12s 4; }
  56. @keyframes shake { 0%{transform:translate(2px,-1px)} 50%{transform:translate(-2px,1px)} 100%{transform:translate(0)} }
  57. .winner { font-size:40px; font-weight:900; color:var(--gold); margin:10px 0; }
  58. .upset { color:#ff4d6d; font-weight:900; letter-spacing:2px; }
  59. .dealer { font-size:16px; opacity:.9; margin:8px 0 18px; max-width:340px; }
  60. .odds-list { font-size:13px; opacity:.7; }
  61. .reel-frame { border:2px solid var(--gold); border-radius:12px; padding:18px 24px; min-width:260px; }
  62. </style>
  63. </head>
  64. <body>
  65. <main id="app"></main>
  66. <div id="reveal" role="dialog" aria-modal="true" aria-label="The lever result"><div class="scan"></div><div id="reveal-body"></div></div>
  67. <script type="module" src="/app.js"></script>
  68. </body>
  69. </html>