.tips-page-wrap {
  padding: 1.25rem 1rem 2rem;
}

.container--tips {
      max-width: 1100px;
    }

    .tips-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
      gap: 1.25rem;
      align-items: start;
    }

    @media (max-width: 860px) {
      .tips-layout {
        grid-template-columns: 1fr;
      }
      .tips-aside {
        position: static !important;
        order: -1;
      }
    }

    .tips-main {
      display: grid;
      gap: 1.75rem;
      min-width: 0;
    }

    .tips-share-note {
      margin: 0.35rem 0 0;
      font-size: 0.88rem;
      color: var(--muted);
      max-width: 42rem;
    }

    .tips-section__title {
      margin: 0 0 0.5rem;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .tips-section[hidden] {
      display: none !important;
    }

    .tips-player-group {
      display: grid;
      gap: 0.65rem;
      padding: 0.9rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: rgba(18, 24, 33, 0.55);
    }

    .tips-player-group[hidden] {
      display: none !important;
    }

    .tips-player-group .tips-section__title {
      margin-bottom: 0;
    }

    .tips-target-panel {
      margin: 0;
      padding: 0.75rem 0.85rem;
    }

    .tips-target-panel__row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .tips-target-panel__row h2 {
      margin: 0;
      font-size: 0.95rem;
      flex-shrink: 0;
    }

    .tips-target-panel__row select {
      flex: 1 1 12rem;
      min-width: 0;
      margin: 0;
    }

    .tips-target-panel .stats-note {
      margin: 0.5rem 0 0;
    }

    .tips-stack {
      display: grid;
      gap: 0.5rem;
    }

    .tips-stack--player.is-locked .tips-event {
      opacity: 0.72;
    }

    .tips-share {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 500;
      color: var(--muted);
      opacity: 0.9;
    }

    .tips-share[hidden] {
      display: none !important;
    }

    .tips-event {
      margin: 0;
      padding: 0;
      overflow: hidden;
    }

    .tips-event[hidden] {
      display: none !important;
    }

    .tips-event > summary {
      list-style: none;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.4rem 0.5rem;
      margin: 0;
      padding: 0.85rem 1rem;
      cursor: pointer;
      user-select: none;
      font-size: 1.05rem;
      font-weight: 600;
    }

    .tips-event > summary::-webkit-details-marker {
      display: none;
    }

    .tips-event > summary::after {
      content: '';
      width: 0.45rem;
      height: 0.45rem;
      margin-left: auto;
      border-right: 2px solid var(--muted);
      border-bottom: 2px solid var(--muted);
      transform: rotate(45deg);
      transition: transform 0.15s ease;
      flex-shrink: 0;
    }

    .tips-event[open] > summary {
      border-bottom: 1px solid var(--border);
    }

    .tips-event[open] > summary::after {
      transform: rotate(-135deg);
      margin-top: 0.2rem;
    }

    .tips-event__title {
      min-width: 0;
    }

    .tips-event__body {
      padding: 0.85rem 1rem 1rem;
    }

    .tips-event__body > :first-child {
      margin-top: 0;
    }

    .tips-kind {
      display: inline-block;
      padding: 0.12rem 0.45rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .tips-kind[hidden] {
      display: none !important;
    }

    .tips-kind--world {
      color: #9ec5ff;
      background: #1a2740;
      border-color: #2f4a73;
    }

    .tips-kind--gift {
      color: #f0c674;
      background: #2a2418;
      border-color: #5a4a28;
    }

    .tips-kind--buff {
      color: #b8f5d4;
      background: #15281f;
      border-color: #2f5a45;
    }

    .tips-kind--handicap {
      color: #ffb4a8;
      background: #2a1816;
      border-color: #6a3530;
    }

    .tips-aside {
      position: sticky;
      top: 1rem;
      display: grid;
      gap: 0.85rem;
    }

    .tips-aside .wallet-panel {
      margin: 0;
    }

    .tips-price {
      display: inline-block;
      padding: 0.15rem 0.5rem;
      border-radius: 999px;
      background: #243044;
      border: 1px solid var(--border);
      color: var(--warn);
      font-size: 0.85rem;
      font-weight: 600;
    }

    .tips-presets {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin: 0.5rem 0 0.75rem;
    }

    .tips-presets button { font-size: 0.8rem; }

    .tips-feedback {
      margin: 0.5rem 0 0;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .tips-paid {
      border-color: var(--ok) !important;
      color: #b8f5d4;
    }

    .tips-qr-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 236px;
      margin: 0.75rem 0;
      background: #121821;
      border: 1px dashed var(--border);
      border-radius: 10px;
    }

    .tips-qr-wrap.is-empty::before {
      content: 'Lightning invoice will be displayed here';
      color: var(--muted);
      font-size: 0.9rem;
      text-align: center;
      padding: 1rem;
    }

    .tips-qr {
      display: block;
      width: 220px;
      height: 220px;
      background: #fff;
      border-radius: 8px;
      padding: 0.5rem;
      cursor: pointer;
    }

    .tips-qr[hidden] {
      display: none !important;
    }

    .tips-invoice code {
      display: block;
      margin: 0.5rem 0;
      padding: 0.75rem;
      background: #121821;
      border-radius: 8px;
      border: 1px solid var(--border);
      font-size: 0.7rem;
      max-height: 5.5rem;
      overflow: auto;
      word-break: break-all;
    }

    .tips-invoice code[hidden],
    .tips-invoice button[hidden] {
      display: none !important;
    }

    .page__nav a {
      color: var(--accent);
    }

    .tips-invoice-meta {
      margin: 0.75rem 0;
      padding: 0.65rem 0.75rem;
      background: #121821;
      border: 1px solid var(--border);
      border-radius: 8px;
    }

    .tips-invoice-meta__row {
      display: grid;
      grid-template-columns: 4.5rem 1fr;
      gap: 0.5rem;
      align-items: baseline;
    }

    .tips-invoice-meta__row + .tips-invoice-meta__row {
      margin-top: 0.35rem;
    }

    .tips-invoice-meta dt {
      margin: 0;
      color: var(--muted);
      font-size: 0.8rem;
    }

    .tips-invoice-meta dd {
      margin: 0;
      font-weight: 600;
      word-break: break-word;
    }

    .tips-invoice-meta[hidden] {
      display: none !important;
    }

    /* Label left, control right for tip forms. */
    .tips-form-row {
      display: grid;
      grid-template-columns: minmax(7.5rem, 42%) minmax(0, 1fr);
      gap: 0.4rem 0.75rem;
      align-items: center;
      margin-top: 0.45rem;
    }

    .tips-form-row label {
      margin: 0;
    }

    .tips-form-row input,
    .tips-form-row select {
      width: 100%;
      margin: 0;
    }

    .tips-form-row--presets {
      grid-template-columns: 1fr;
    }

    .tips-form-row--presets .tips-presets {
      margin: 0;
    }

    .tips-signed-in-name {
      margin: 0.15rem 0 0;
      font-size: 1.2rem;
      font-weight: 600;
      line-height: 1.3;
      word-break: break-word;
    }

    .tips-name-mode[hidden] {
      display: none !important;
    }

    .tips-aside h2 {
      margin-top: 0;
    }

    .tips-target-hint[hidden] {
      display: none !important;
    }

    .tips-pay-hint {
      margin: 0.5rem 0 0;
      color: var(--warn);
      font-size: 0.85rem;
    }

    .tips-pay-hint[hidden] {
      display: none !important;
    }