      :root {
        --font-ui: "Segoe UI", "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
        --app-shell-max-width: 860px;
        --app-shell-half-width: calc(var(--app-shell-max-width) / 2);
        --page-bg: rgb(231, 244, 242);
        --panel: #ffffff;
        --border: rgba(26, 53, 74, 0.12);
        --text: #11324d;
        --muted: #5d7388;
        --accent: #0f8f7b;
        --accent-dark: #0c7464;
        --accent-rgb: 15,143,123;
        --shadow: 0 24px 45px rgba(18, 41, 61, 0.14);
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        min-height: 100vh;
        font-family: var(--font-ui);
        color: var(--text);
        background: var(--page-bg);
        display: grid;
        place-items: center;
        padding: 24px 16px;
      }

      input,
      button,
      select,
      textarea,
      pre {
        font-family: inherit;
      }

      .app {
        position: relative;
        --card-fixed-edge-gap: max(16px, calc(50% - var(--app-shell-half-width)));
        --top-nav-button-size: calc(38px + var(--app-font-size-offset, 0px));
        --top-nav-icon-size: calc(20px + var(--app-font-size-offset, 0px));
        --top-nav-radius: calc(12px + (var(--app-font-size-offset, 0px) / 2));
        --top-nav-ticket-font-size: calc(13px + var(--app-font-size-offset, 0px));
        --top-nav-ticket-gap: calc(4px + (var(--app-font-size-offset, 0px) / 2));
        --top-nav-ticket-padding-x: calc(8px + (var(--app-font-size-offset, 0px) / 2));
        --top-nav-top: calc(30px + var(--app-font-size-offset, 0px));
        --top-nav-side-offset: calc(8px + (var(--app-font-size-offset, 0px) / 2));
        --top-search-top: calc(72px + var(--app-font-size-offset, 0px));
        --top-search-width: calc(100px + (var(--app-font-size-offset, 0px) * 3));
        --top-search-height: calc(28px + var(--app-font-size-offset, 0px));
        --top-search-radius: calc(10px + (var(--app-font-size-offset, 0px) / 2));
        --top-search-gap: calc(6px + (var(--app-font-size-offset, 0px) / 2));
        --top-search-font-size: calc(11px + var(--app-font-size-offset, 0px));
        --top-search-padding-x: calc(9px + (var(--app-font-size-offset, 0px) / 2));
        width: min(100%, var(--app-shell-max-width));
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 28px;
        box-shadow: 0 24px 45px rgba(21, 43, 62, 0.14);
        min-width: 0;
      }

      .top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: calc(30px + var(--app-font-size-offset, 0px));
        padding-right: calc(150px + (var(--app-font-size-offset, 0px) * 3));
      }

      .top-row > h1 {
        margin-left: 8px;
      }

      h1 {
        margin: 0;
        font-size: clamp(28px, 6vw, 40px);
        line-height: 1.1;
      }

      .top-nav {
        display: contents;
      }

      .top-nav-link {
        width: var(--top-nav-button-size);
        min-height: var(--top-nav-button-size);
        border: none;
        border-radius: var(--top-nav-radius);
        background: rgba(255, 255, 255, 0.85);
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--accent);
        text-decoration: none;
      }

      .top-nav-link:hover {
        background: rgba(var(--accent-rgb), 0.10);
      }

      .top-nav-link svg {
        width: var(--top-nav-icon-size);
        height: var(--top-nav-icon-size);
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .ticket-nav-link {
        width: auto;
        min-width: 0;
        padding: 0 var(--top-nav-ticket-padding-x);
        gap: var(--top-nav-ticket-gap);
        font-size: var(--top-nav-ticket-font-size);
        font-weight: 700;
        white-space: nowrap;
      }

      .ticket-nav-link svg {
        flex: 0 0 auto;
      }

      .ticket-points {
        line-height: 1;
        font-variant-numeric: tabular-nums;
      }

      .nav-right-1 {
        position: fixed;
        top: var(--top-nav-top);
        right: calc(var(--card-fixed-edge-gap) + 86px + (var(--app-font-size-offset, 0px) * 2));
        z-index: 20;
      }

      .nav-right-2 {
        position: fixed;
        top: var(--top-nav-top);
        right: calc(var(--card-fixed-edge-gap) + 48px + var(--app-font-size-offset, 0px));
        z-index: 20;
      }

      .nav-right-3 {
        position: fixed;
        top: var(--top-nav-top);
        right: calc(var(--card-fixed-edge-gap) + var(--top-nav-side-offset));
        z-index: 20;
      }

      .back-nav-button {
        position: fixed;
        top: var(--top-nav-top);
        left: calc(var(--card-fixed-edge-gap) + var(--top-nav-side-offset));
        z-index: 20;
      }

      .back-search-form {
        position: fixed;
        top: var(--top-search-top);
        right: calc(var(--card-fixed-edge-gap) + calc(10px + (var(--app-font-size-offset, 0px) / 2)));
        z-index: 20;
        width: max-content;
        display: grid;
        grid-template-columns: var(--top-search-width) auto;
        gap: var(--top-search-gap);
        align-items: stretch;
      }

      .back-search-input {
        min-width: 0;
        width: var(--top-search-width);
        height: var(--top-search-height);
        border: 1px solid rgba(var(--accent-rgb), 0.2);
        border-radius: var(--top-search-radius);
        background: rgba(255, 255, 255, 0.96);
        padding: 0 var(--top-search-padding-x);
        font-size: var(--top-search-font-size);
        color: var(--text);
      }

      .back-search-input:focus {
        outline: none;
        border-color: rgba(var(--accent-rgb), 0.6);
        box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
      }

      .back-search-submit {
        height: var(--top-search-height);
        border: none;
        border-radius: var(--top-search-radius);
        background: var(--accent);
        color: #ffffff;
        padding: 0 calc(10px + (var(--app-font-size-offset, 0px) / 2));
        font-size: var(--top-search-font-size);
        font-weight: 700;
        cursor: pointer;
      }

      .back-search-submit:hover {
        background: var(--accent-dark);
      }

      .card {
        border: 1px solid var(--border);
        border-radius: 18px;
        background: #ffffff;
        padding: 16px;
        margin-top: 14px;
        overflow: hidden;
      }

      .card p {
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
      }

      .purchase-notice {
        margin: 10px 8px 0 !important;
        color: var(--muted) !important;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.8;
      }

      .purchase-balance {
        margin: 6px 8px 0 !important;
        color: var(--text) !important;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.5;
      }

      .purchase-balance-label {
        color: var(--muted);
      }

      .purchase-option-card {
        padding: 0;
      }

      .purchase-option-card-highlight {
        border-color: rgba(var(--accent-rgb), 0.28);
        box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.06);
        background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.05), #ffffff 42%);
      }

      .purchase-option-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .purchase-card-body {
        padding: 18px;
      }

      .purchase-option-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
      }

      .purchase-option-copy {
        min-width: 0;
        display: grid;
        gap: 6px;
      }

      .purchase-option-title {
        color: var(--text) !important;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
      }

      .purchase-inline-keep,
      .purchase-option-title-keep {
        white-space: nowrap;
      }

      .purchase-option-remaining {
        color: var(--accent) !important;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        min-width: 3.5em;
        text-align: right;
      }

      .purchase-option-description {
        font-size: 14px;
      }

      .purchase-option-status {
        min-height: 1.7em;
      }

      .purchase-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        inline-size: fit-content;
        max-inline-size: 100%;
        min-height: 42px;
        padding: 0 14px;
        border: 1px solid var(--accent);
        border-radius: 12px;
        background: var(--accent);
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
        flex: 0 0 auto;
        align-self: center;
        margin-left: auto;
        white-space: nowrap;
      }

      .purchase-btn-major {
        font-size: 20px;
        font-weight: 800;
        line-height: 1;
      }

      .purchase-btn-minor {
        position: relative;
        top: 5px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
      }

      .purchase-btn:hover {
        background: var(--accent-dark);
        border-color: var(--accent-dark);
      }

      .purchase-btn:disabled {
        opacity: 0.7;
        cursor: wait;
      }

      @media (max-width: 640px) {
        .app {
          padding: 20px;
        }

        .top-row {
          padding-right: 0;
        }

        .purchase-option-row {
          align-items: center;
          gap: 12px;
        }

        .purchase-option-copy {
          flex: 1 1 auto;
        }

        .purchase-option-title {
          font-size: 16px;
        }

        .purchase-btn {
          width: auto;
          inline-size: fit-content;
          padding: 0 14px;
        }
      }