/* Crazy Ball Blast web shop (index.html). Separate file: the host's security policy refuses styles inside the page. */
  :root {
    --bg: #1b1240; --bg2: #2a1a63; --card: #ffffff; --ink: #1f1640; --muted: #6b6390;
    --pink: #ff3d8b; --gold: #ffc531; --gold2: #ff9f1a; --green: #2fbf71; --red: #e5484d;
    --line: #e7e3f5; --radius: 20px;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body {
    font-family: "Baloo Bhaijaan 2", system-ui, sans-serif; color: var(--ink);
    background: radial-gradient(1200px 600px at 50% -200px, #6b3bd6 0%, var(--bg2) 45%, var(--bg) 100%) fixed, var(--bg);
    min-height: 100vh;
  }
  .wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 48px; }
  header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; color: #fff; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: .3px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { color: var(--gold); }
  .lang { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer; }
  .hero { color: #fff; text-align: center; padding: 8px 0 20px; }
  .hero h1 { margin: 0; font-size: clamp(28px, 6vw, 44px); line-height: 1.1; }
  .hero p { margin: 8px auto 0; max-width: 520px; color: #d9d0ff; font-size: 17px; }
  .card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: 0 12px 40px rgba(10,0,40,.35); }
  .step { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; margin: 0 0 12px; }
  .step b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 15px; }
  .row { display: flex; gap: 10px; flex-wrap: wrap; }
  input[type=text] {
    flex: 1 1 220px; min-width: 0; font: inherit; font-size: 24px; font-weight: 700; letter-spacing: 3px; text-align: center;
    padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; outline: none; direction: ltr;
  }
  input[type=text]:focus { border-color: var(--pink); }
  .btn {
    font: inherit; font-weight: 800; font-size: 18px; border: 0; border-radius: 14px; padding: 12px 22px; cursor: pointer;
    background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #4a2a00; box-shadow: 0 4px 0 #c46a00;
  }
  .btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #c46a00; }
  .btn[disabled] { opacity: .5; cursor: default; transform: none; }
  .btn.green { background: linear-gradient(180deg, #4fe08f, var(--green)); color: #053b1e; box-shadow: 0 4px 0 #1d8a50; }
  .btn.ghost { background: #f1eefc; color: var(--ink); box-shadow: none; }
  .hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
  .err { color: var(--red); font-weight: 700; margin: 8px 0 0; min-height: 1.2em; }
  .who { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .chip { display: inline-flex; gap: 8px; align-items: center; background: #f1eefc; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
  .chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
  .tabs { display: flex; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
  .tab { font: inherit; font-weight: 800; font-size: 16px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
  .tab[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .item { border: 2px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; background: #fff; }
  .item img { width: 96px; height: 96px; object-fit: contain; }
  .item.bg img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
  .item .t { font-weight: 800; font-size: 16px; line-height: 1.15; }
  .item .btn { width: 100%; font-size: 17px; padding: 8px 10px; }
  .owned { color: var(--green); font-weight: 800; padding: 8px 0; }
  .section { margin-top: 16px; }
  .notice { background: #fff4d6; color: #7a4b00; border-radius: 14px; padding: 12px 14px; font-weight: 700; margin-bottom: 14px; }
  dialog { border: 0; border-radius: var(--radius); padding: 22px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(10,0,40,.5); }
  dialog::backdrop { background: rgba(15,5,40,.6); }
  dialog h2 { margin: 0 0 8px; font-size: 22px; }
  dialog .sum { display: flex; align-items: center; gap: 12px; background: #f6f4fd; border-radius: 14px; padding: 10px; margin: 10px 0 16px; }
  dialog .sum img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; }
  dialog .sum .p { font-size: 22px; font-weight: 800; color: var(--pink); }
  #payPanel .sum { display: flex; align-items: center; gap: 12px; background: #f6f4fd; border-radius: 14px; padding: 10px; margin-bottom: 14px; }
  #payPanel .sum img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; }
  #payPanel .sum .p { font-size: 22px; font-weight: 800; color: var(--pink); }
  #ucButtons { min-height: 60px; }
  .result { text-align: center; padding: 30px 20px; }
  .result .big { font-size: 56px; line-height: 1; }
  .result h2 { margin: 10px 0 6px; font-size: 26px; }
  .spin { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #eee; border-top-color: var(--pink); margin: 0 auto; animation: s 1s linear infinite; }
  @keyframes s { to { transform: rotate(360deg); } }
  footer { color: #b9aee6; text-align: center; font-size: 14px; margin-top: 26px; }
  footer .lock { color: #fff; font-weight: 700; }
  [hidden] { display: none !important; }
  @media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); } .item.bg img { height: 120px; } }
