    /* Desktop gate. The app is made for phones and tablets; on a computer
       (a fine pointer and no touch, decided in the head of index.html) the
       app is hidden and this page asks the visitor to open it on their phone. */
    .desktop-gate { display: none; }

    html.is-desktop body > *:not(.desktop-gate) { display: none !important; }

    html.is-desktop .desktop-gate {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 32px;
      background: var(--app-bg);
      color: var(--ink);
      font-family: "Plus Jakarta Sans", sans-serif;
      text-align: center;
    }

    .gate-card {
      max-width: 440px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .gate-medal {
      width: 92px;
      height: 92px;
      box-sizing: border-box;
      border: 5px solid transparent;
      border-radius: 50%;
      background: linear-gradient(var(--surface), var(--surface)) padding-box,
                  conic-gradient(from 30deg, #8A6416, #F6D77A, #B8892A, #FFF1B8, #9C7420, #E9C25A, #8A6416) border-box;
      box-shadow: 0 10px 24px rgba(var(--shade-rgb), 0.22);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .gate-medal img { width: 60px; height: auto; }

    .gate-script { width: 190px; height: auto; margin: 18px 0 26px; }

    .gate-title {
      margin: 0 0 10px;
      font-size: 26px;
      font-weight: 800;
      line-height: 1.2;
    }

    .gate-text {
      margin: 0 0 28px;
      font-size: 16px;
      line-height: 1.5;
      color: var(--ink-2);
    }

    /* Always dark on white, so a phone camera can read it in either theme. */
    .gate-qr {
      width: 168px;
      height: 168px;
      padding: 14px;
      box-sizing: border-box;
      border-radius: 20px;
      background: #FFFFFF;
      box-shadow: 0 10px 24px rgba(var(--shade-rgb), 0.18);
    }
    .gate-qr img { width: 100%; height: 100%; display: block; }

    .gate-url {
      margin-top: 18px;
      font-size: 15px;
      font-weight: 700;
      color: var(--accent);
    }
