  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 72px 16px 20px;
    background: #f2ecdd;
    color: #2c2a25;
    font-family: 'Patrick Hand', cursive;
  }

  #view-draw, #view-desenhe {
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  .wordmark {
    position: fixed;
    top: 14px;
    left: 18px;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    color: #2c2a25;
    transform: rotate(-2deg);
    user-select: none;
    z-index: 5;
  }

  .tagline {
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
    color: #2c2a25;
    transform: rotate(-1.2deg);
    user-select: none;
  }

  sketchy-avatar { width: 440px; height: 476px; }

  .draw-layout-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 36px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 16px;
  }

  .draw-avatar-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .draw-controls-pane {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    max-width: 440px;
    width: 100%;
  }

  .draw-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .field { position: relative; width: 380px; max-width: 100%; height: 62px; }

  .field input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    padding: 0 24px;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Patrick Hand', cursive;
    font-size: 24px;
    color: #2c2a25;
  }

  .field input::placeholder { color: #2c2a25; opacity: 0.38; }

  /* ── Wobble RPG Character Sheet ──────────────────────────────── */
  .wobble-sheet {
    width: 100%;
    max-width: 380px;
    background: rgba(246, 241, 227, 0.92);
    border: 2px solid #2c2a25;
    border-radius: 18px 12px 16px 14px / 14px 18px 12px 16px;
    padding: 12px 16px;
    box-shadow: 3px 4px 0 rgba(44, 42, 37, 0.18);
    transform: rotate(-0.6deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
    user-select: none;
  }

  .wobble-sheet:hover {
    transform: rotate(0deg) translateY(-1px);
    box-shadow: 4px 6px 0 rgba(44, 42, 37, 0.22);
  }

  .sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 2px dashed rgba(44, 42, 37, 0.25);
    margin-bottom: 8px;
  }

  .sheet-zodiac {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sheet-zodiac-icon {
    font-size: 26px;
    line-height: 1;
  }

  .sheet-zodiac-text {
    display: flex;
    flex-direction: column;
  }

  .sheet-zodiac-name {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.1;
    color: #2c2a25;
  }

  .sheet-zodiac-period {
    font-size: 13px;
    color: rgba(44, 42, 37, 0.65);
    line-height: 1;
  }

  .sheet-element-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border: 1.5px solid #2c2a25;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(44, 42, 37, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  }

  .sheet-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 14px;
    margin-bottom: 10px;
  }

  .stat-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .stat-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
    color: #2c2a25;
  }

  .stat-label {
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .stat-val {
    font-size: 17px;
    font-weight: 700;
  }

  .stat-bar-track {
    height: 7px;
    background: rgba(44, 42, 37, 0.12);
    border: 1px solid rgba(44, 42, 37, 0.35);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
  }

  .stat-bar-fill {
    height: 100%;
    background: #2c2a25;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
  }

  .sheet-perk-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(44, 42, 37, 0.35);
    border-radius: 10px 14px 12px 10px / 12px 10px 14px 12px;
    padding: 6px 10px;
  }

  .sheet-perk-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
  }

  .perk-title-tag {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.65;
    letter-spacing: 0.5px;
  }

  .perk-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c2a25;
  }

  .perk-bonus-badge {
    margin-left: auto;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid rgba(44, 42, 37, 0.3);
    background: rgba(44, 42, 37, 0.06);
    font-weight: 600;
  }

  .perk-desc {
    font-size: 13px;
    line-height: 1.25;
    color: rgba(44, 42, 37, 0.8);
    margin: 0;
  }

  /* Mystery State */
  .wobble-sheet.mystery .stat-val {
    opacity: 0.4;
  }
  .wobble-sheet.mystery .perk-name {
    opacity: 0.5;
  }
  .wobble-sheet.mystery .perk-desc {
    opacity: 0.65;
    font-style: italic;
  }

  /* Sheet Save Button & Random Wobble Toggle */
  .sheet-save-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 8px 16px;
    font-family: 'Patrick Hand', cursive;
    font-size: 22px;
    font-weight: bold;
    color: #2c2a25;
    background: #fbf6ec;
    border: 2px solid #3c342b;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    cursor: pointer;
    box-shadow: 2px 3px 0 rgba(44, 42, 37, 0.18);
    transform: rotate(-0.5deg);
    transition: all 0.15s ease;
    text-align: center;
    line-height: 1.2;
  }
  .sheet-save-btn:hover {
    background: #f2ecdd;
    transform: rotate(-0.5deg) translateY(-1px);
    box-shadow: 2px 4px 0 rgba(44, 42, 37, 0.28);
  }
  .sheet-save-btn:active {
    transform: rotate(-0.5deg) translateY(1px);
    box-shadow: 1px 1px 0 rgba(44, 42, 37, 0.2);
  }

  .random-wobble-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    color: #524a40;
    cursor: pointer;
    user-select: none;
    align-self: flex-start;
    transition: color 0.15s ease;
  }
  .random-wobble-toggle:hover {
    color: #2c2a25;
  }
  .random-wobble-toggle input[type="checkbox"] {
    cursor: pointer;
    accent-color: #3c342b;
    width: 17px;
    height: 17px;
    margin: 0;
  }

  /* Mobile Responsiveness for Draw screen */
  @media (max-width: 860px) {
    .draw-layout-container {
      flex-direction: column;
      gap: 16px;
    }
    .draw-controls-pane {
      align-items: center;
    }
    .draw-controls-pane .tagline {
      text-align: center;
    }
    .field,
    .wobble-sheet {
      width: 100%;
      max-width: 336px;
    }
    sketchy-avatar {
      width: 340px;
      height: 370px;
    }
  }

  .sketchy-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 24px;
    color: #2c2a25;
    background: transparent;
    border: 2px solid #2c2a25;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 2px 22px;
    cursor: pointer;
    transform: rotate(-1.2deg);
    transition: background .15s ease;
  }
  .sketchy-btn:hover { background: rgba(44, 42, 37, 0.08); }
  .sketchy-btn:active { transform: rotate(-1.2deg) scale(0.96); }
  #walletBtn.connected { background: rgba(44, 42, 37, 0.9); color: #f2ecdd; }

  /* Game HUD Faucet & Feed Fast Faucet */
  .hud-faucet-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
  }
  .hud-faucet-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    font-weight: bold;
    color: #3c342b;
    background: #fbf6ec;
    border: 1.8px solid #3c342b;
    border-radius: 999px;
    padding: 3px 12px;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(44, 42, 37, 0.15);
    white-space: nowrap;
    transition: all 0.15s ease;
  }
  .hud-faucet-btn:hover {
    background: #f2ecdd;
    transform: translateY(-1px);
    box-shadow: 2px 3px 0 rgba(44, 42, 37, 0.25);
  }
  .hud-faucet-btn:active {
    transform: translateY(1px);
  }
  .hud-faucet-btn[hidden] {
    display: none;
  }
  #faucetBalance {
    display: none;
  }

  .feed-faucet-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    margin-bottom: 10px;
    background: rgba(245, 173, 39, 0.12);
    border: 1.5px dashed #d98e3f;
    border-radius: 12px;
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    color: #524a40;
  }
  .feed-faucet-link {
    background: #fbf6ec;
    border: 1.2px solid #3c342b;
    border-radius: 999px;
    font-family: 'Patrick Hand', cursive;
    font-size: 13px;
    font-weight: bold;
    color: #3c342b;
    padding: 2px 10px;
    cursor: pointer;
    transition: all 0.12s ease;
  }
  .feed-faucet-link:hover {
    background: #f5ad27;
    color: #2c2a25;
  }

  #walletMenu {
    position: absolute;
    z-index: 20;
    margin-top: 8px;
    min-width: 200px;
    background: #f6f1e3;
    border: 2px solid #2c2a25;
    border-radius: 12px 18px 10px 16px / 16px 10px 18px 12px;
    padding: 6px;
    box-shadow: 4px 5px 0 rgba(44, 42, 37, 0.25);
  }
  #walletMenu[hidden] { display: none; }
  .wallet-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-family: 'Patrick Hand', cursive;
    font-size: 17px;
    color: #2c2a25;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    text-align: left;
  }
  .wallet-opt:hover { background: rgba(44, 42, 37, 0.08); }
  .wallet-icon { width: 20px; height: 20px; flex: none; border-radius: 4px; }
  .wallet-empty { display: block; padding: 6px 10px; font-size: 15px; opacity: 0.7; }

  .transparent-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
  }
  .transparent-toggle input {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #2c2a25;
    border-radius: 6px 9px 5px 8px / 8px 5px 9px 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
  }
  .transparent-toggle input:hover { background: rgba(44, 42, 37, 0.08); }
  .transparent-toggle input:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: #2c2a25;
  }

  .modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(44, 42, 37, 0.35);
    z-index: 10;
  }
  .modal[hidden] { display: none; }
  .modal-card {
    position: relative;
    width: min(760px, 92vw);
    max-height: 86vh;
    overflow-y: auto;
    background: #f2ecdd;
    border: 2px solid #2c2a25;
    border-radius: 20px 30px 18px 28px / 28px 18px 30px 20px;
    padding: 28px 24px 24px;
    text-align: center;
    transform: rotate(-0.5deg);
  }
  .modal-card h2 {
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 20px;
    transform: rotate(-1deg);
  }
  .modal-card .close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 2px solid #2c2a25;
    border-radius: 50%;
    background: transparent;
    color: #2c2a25;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
  }
  .modal-card .close:hover { background: rgba(44, 42, 37, 0.08); }
  #galleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 22px;
  }
  .card {
    position: relative;
    background: #f6f1e3;
    border: 2px solid #2c2a25;
    border-radius: 16px 26px 14px 24px / 24px 14px 26px 16px;
    padding: 10px 10px 6px;
    cursor: pointer;
    transition: transform .15s ease;
  }
  .card:hover { transform: rotate(-1deg) translateY(-2px); }
  .card img { width: 100%; height: auto; display: block; background: #f2ecdd; }
  .card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
  }
  .card-foot .mini-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    line-height: 1.4;
    color: #2c2a25;
    background: transparent;
    border: 1.5px solid #2c2a25;
    border-radius: 8px 12px 7px 11px / 11px 7px 12px 8px;
    padding: 0 9px;
    cursor: pointer;
  }
  .card-foot .mini-btn:hover { background: rgba(44, 42, 37, 0.08); }
  .card-foot .mini-btn.minted { background: rgba(44, 42, 37, 0.9); color: #f2ecdd; cursor: default; }
  .card-gif {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  .card-gif input {
    appearance: none;
    width: 13px;
    height: 13px;
    border: 1.5px solid #2c2a25;
    border-radius: 4px 6px 3px 5px / 5px 3px 6px 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex: none;
  }
  .card-gif input:hover { background: rgba(44, 42, 37, 0.08); }
  .card-gif input:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1;
    color: #2c2a25;
  }
  .card .name {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card .del {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border: 2px solid #2c2a25;
    border-radius: 50%;
    background: #f2ecdd;
    color: #2c2a25;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    margin-top: 8px;
    min-width: 200px;
    background: #f6f1e3;
    border: 2px solid #2c2a25;
    border-radius: 12px 18px 10px 16px / 16px 10px 18px 12px;
    padding: 6px;
    box-shadow: 4px 5px 0 rgba(44, 42, 37, 0.25);
  }
  #walletMenu[hidden] { display: none; }
  .wallet-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-family: 'Patrick Hand', cursive;
    font-size: 17px;
    color: #2c2a25;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    text-align: left;
  }
  .wallet-opt:hover { background: rgba(44, 42, 37, 0.08); }
  .wallet-empty { display: block; padding: 6px 10px; font-size: 15px; opacity: 0.7; }
  .wallet-section-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    padding: 6px 10px 2px;
  }
  .wallet-badge {
    margin-left: auto;
    font-size: 12px;
    background: rgba(44, 42, 37, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .transparent-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
  }
  .transparent-toggle input {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #2c2a25;
    border-radius: 6px 9px 5px 8px / 8px 5px 9px 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
  }
  .transparent-toggle input:hover { background: rgba(44, 42, 37, 0.08); }
  .transparent-toggle input:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: #2c2a25;
  }

  .modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(44, 42, 37, 0.35);
    z-index: 10;
  }
  .modal[hidden] { display: none; }
  .modal-card {
    position: relative;
    width: min(760px, 92vw);
    max-height: 86vh;
    overflow-y: auto;
    background: #f2ecdd;
    border: 2px solid #2c2a25;
    border-radius: 20px 30px 18px 28px / 28px 18px 30px 20px;
    padding: 28px 24px 24px;
    text-align: center;
    transform: rotate(-0.5deg);
  }
  .modal-card h2 {
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 20px;
    transform: rotate(-1deg);
  }
  .modal-card .close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 2px solid #2c2a25;
    border-radius: 50%;
    background: transparent;
    color: #2c2a25;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
  }
  .modal-card .close:hover { background: rgba(44, 42, 37, 0.08); }
  #galleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 22px;
  }
  .card {
    position: relative;
    background: #f6f1e3;
    border: 2px solid #2c2a25;
    border-radius: 16px 26px 14px 24px / 24px 14px 26px 16px;
    padding: 10px 10px 6px;
    cursor: pointer;
    transition: transform .15s ease;
  }
  .card:hover { transform: rotate(-1deg) translateY(-2px); }
  .card-zodiac-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 1px 6px;
    background: rgba(242, 236, 221, 0.92);
    border: 1.2px solid #2c2a25;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    box-shadow: 1px 1px 0 rgba(44, 42, 37, 0.2);
    pointer-events: none;
    z-index: 2;
  }
  .card img { width: 100%; height: auto; display: block; background: #f2ecdd; }
  .card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
  }
  .card-foot .mini-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    line-height: 1.4;
    color: #2c2a25;
    background: transparent;
    border: 1.5px solid #2c2a25;
    border-radius: 8px 12px 7px 11px / 11px 7px 12px 8px;
    padding: 0 9px;
    cursor: pointer;
  }
  .card-foot .mini-btn:hover { background: rgba(44, 42, 37, 0.08); }
  .card-foot .mini-btn.minted { background: rgba(44, 42, 37, 0.9); color: #f2ecdd; cursor: default; }
  .card-gif {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  .card-gif input {
    appearance: none;
    width: 13px;
    height: 13px;
    border: 1.5px solid #2c2a25;
    border-radius: 4px 6px 3px 5px / 5px 3px 6px 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex: none;
  }
  .card-gif input:hover { background: rgba(44, 42, 37, 0.08); }
  .card-gif input:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1;
    color: #2c2a25;
  }
  .card .name {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card .del {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border: 2px solid #2c2a25;
    border-radius: 50%;
    background: #f2ecdd;
    color: #2c2a25;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease;
  }
  .card:hover .del { opacity: 1; }
  .card .del.del-burn {
    background: #fff4ed;
    border-color: #d94e28;
    color: #d94e28;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    box-shadow: 0 2px 6px rgba(217, 78, 40, 0.25);
    transition: all 0.15s ease;
  }
  .card:hover .del.del-burn {
    opacity: 1;
    transform: scale(1.12);
    background: #ffe5d9;
  }
  .card .del.del-burn:hover {
    background: #d94e28;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(217, 78, 40, 0.45);
  }
  .card .del.del-burn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
  }

  /* game mode dedicated screen */
  .game-screen {
    position: fixed;
    inset: 56px 0 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: #f2ecdd;
    color: #2c2a25;
    overflow: hidden;
    user-select: none;
  }
  :fullscreen .game-screen, .game-screen:fullscreen {
    inset: 0 !important;
  }
  .game-screen[hidden] { display: none; }

  /* ── Top Game HUD (Floating Pill Cards) ───────────────── */
  .game-hud-top {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 75;
    pointer-events: none;
  }
  .hud-pill {
    pointer-events: auto;
    background: #fbf6ec;
    border: 2px solid #3c342b;
    border-radius: 999px;
    box-shadow: 2px 3px 8px rgba(44, 42, 37, 0.12);
    display: flex;
    align-items: center;
    position: relative;
    user-select: none;
  }

  /* Pill 1: Pet Name & Mood Status */
  .hud-pill-pet {
    padding: 4px 14px 4px 6px;
    gap: 8px;
  }
  .hud-leaf-sprout {
    position: absolute;
    top: -10px;
    left: -8px;
    pointer-events: none;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.12));
    z-index: 4;
  }
  .hud-pet-badge {
    background: #fdfbf7;
    border: 1.5px solid #3c342b;
    border-radius: 20px;
    padding: 2px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 1px 1px 0 rgba(44, 42, 37, 0.08);
  }
  .hud-pet-avatar-icon {
    font-size: 16px;
    line-height: 1;
  }
  .hud-pet-name {
    font-family: 'Patrick Hand', cursive;
    font-size: 20px;
    font-weight: bold;
    color: #2c2a25;
    letter-spacing: 0.3px;
  }
  .hud-pet-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 2px;
  }
  .hud-pet-status {
    font-family: 'Patrick Hand', cursive;
    font-size: 17px;
    color: #53483d;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hud-pet-mood {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
  }
  .hud-pet-mood.mood-happy,
  .hud-pet-mood:not(.mood-sad) {
    color: #3b8b54;
  }
  .hud-pet-mood.mood-sad {
    color: #c94b32;
  }

  /* Pill 2: Vitals (Hunger, Happiness, Energy) */
  .hud-pill-vitals {
    padding: 4px 22px;
    gap: 22px;
  }
  .hud-stat {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .hud-stat-icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hud-stat-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .hud-stat-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    line-height: 1;
    color: #4a4037;
    font-weight: 500;
  }
  .hud-stat-bar {
    width: 68px;
    height: 13px;
    border: 1.5px solid #3c342b;
    border-radius: 8px;
    background: #faeed7;
    overflow: hidden;
  }
  .hud-stat-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
  }
  .hunger-fill { background: #f5ad27; }
  .happiness-fill { background: #ee6055; }
  .energy-fill { background: #57b87a; }
  .hud-stat-val {
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    font-weight: bold;
    color: #3c342b;
    min-width: 22px;
  }

  /* Pill 3: Currencies & Action Buttons */
  .hud-actions-group {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .hud-pill-currencies {
    padding: 4px 14px;
    gap: 8px;
  }
  .hud-currency-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Patrick Hand', cursive;
    font-size: 17px;
    color: #3c342b;
    font-weight: bold;
    white-space: nowrap;
  }
  .hud-coin-icon {
    display: block;
    flex-shrink: 0;
  }
  .hud-chicken-icon {
    display: block;
    flex-shrink: 0;
  }
  .hud-crystal-icon {
    display: block;
    flex-shrink: 0;
  }
  #hudTwobBalance {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s ease;
  }
  #hudTwobBalance:hover {
    opacity: 0.85;
  }
  .hud-currency-sep {
    width: 1.5px;
    height: 18px;
    background: rgba(60, 50, 40, 0.2);
  }
  .hud-circle-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    background: #fbf6ec;
    border: 2px solid #3c342b;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(44, 42, 37, 0.14);
    transition: transform 0.1s ease, background 0.15s ease;
    color: #3c342b;
    padding: 0;
  }
  .hud-circle-btn:hover {
    background: #ece3cf;
    transform: scale(1.08);
  }
  .hud-circle-btn:active {
    transform: scale(0.94);
  }
  .hud-circle-btn.close-btn {
    font-size: 16px;
    color: #922b2b;
    border-color: #922b2b;
  }

  /* Audio HUD & Settings Flyout */
  .hud-audio-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .audio-settings-flyout {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 225px;
    background: #fbf8f0;
    border: 2px solid #2c2a25;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 3px 4px 0 #2c2a25, 0 8px 18px rgba(44, 42, 37, 0.12);
    z-index: 120;
    font-family: 'Patrick Hand', cursive, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: audioFlyoutPop 0.15s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }
  .audio-settings-flyout[hidden] {
    display: none !important;
  }
  @keyframes audioFlyoutPop {
    from {
      opacity: 0;
      transform: translateY(-6px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  .audio-flyout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px dashed #d5cbba;
    padding-bottom: 6px;
  }
  .audio-flyout-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c2a25;
    letter-spacing: 0.5px;
  }
  .audio-mute-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    background: #f2ecdd;
    border: 1.5px solid #2c2a25;
    border-radius: 8px;
    padding: 2px 8px;
    cursor: pointer;
    box-shadow: 1px 1px 0 #2c2a25;
    transition: all 0.12s ease;
    color: #2c2a25;
  }
  .audio-mute-btn:hover {
    background: #e5dbc5;
    transform: translateY(-1px);
  }
  .audio-mute-btn.is-muted {
    background: #ffebe8;
    border-color: #922b2b;
    color: #922b2b;
    box-shadow: 1px 1px 0 #922b2b;
  }
  .audio-slider-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .audio-slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4a453e;
  }
  .sketchy-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e8e0cc;
    border: 1.5px solid #2c2a25;
    border-radius: 6px;
    outline: none;
    margin: 4px 0;
    cursor: pointer;
  }
  .sketchy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fbf8f0;
    border: 2px solid #2c2a25;
    border-radius: 50%;
    box-shadow: 1px 1px 0 #2c2a25;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.1s ease;
  }
  .sketchy-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    background: #fff;
  }
  .sketchy-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fbf8f0;
    border: 2px solid #2c2a25;
    border-radius: 50%;
    box-shadow: 1px 1px 0 #2c2a25;
    cursor: pointer;
  }

  /* Main Game Viewport / Stage */
  .game-viewport {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f2ecdd;
  }
  .game-stage-wrap {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .game-stage {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }

  /* ── Air Delivery Airplane & Parachute Drop Overlay ────── */
  .game-air-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 12;
  }
  .air-plane-wrap {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 4px 6px rgba(44, 42, 37, 0.14));
  }
  .air-plane-canvas {
    display: block;
    width: 130px;
    height: 130px;
  }
  .air-smoke-puff {
    position: absolute;
    border-radius: 50%;
    background: rgba(242, 236, 221, 0.9);
    border: 1.5px dashed rgba(44, 42, 37, 0.45);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.6);
    animation: airSmokeDissipate 1.1s cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
  }
  @keyframes airSmokeDissipate {
    0% {
      opacity: 0.85;
      transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
      opacity: 0.6;
      transform: translate(-50%, -50%) scale(1.15) translateY(-6px);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(1.6) translateY(-14px);
    }
  }
  .air-parachute-drop {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 6px 8px rgba(44, 42, 37, 0.16));
  }
  .air-parachute-canvas {
    display: block;
    width: 92px;
    height: 92px;
    transform-origin: top center;
  }
  .air-parachute-gift-canvas {
    display: block;
    width: 46px;
    height: 46px;
    margin-top: -12px;
    transform-origin: center center;
  }
  .air-parachute-gift-canvas.land-bounce {
    animation: giftLandingBounce 0.45s cubic-bezier(0.2, 0.85, 0.3, 1.25) forwards;
  }
  @keyframes giftLandingBounce {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.22, 0.82) translateY(4px); }
    60% { transform: scale(0.92, 1.12) translateY(-6px); }
    100% { transform: scale(1, 1) translateY(0); }
  }
  .air-landing-puff {
    position: absolute;
    border-radius: 50%;
    background: rgba(220, 235, 205, 0.75);
    border: 1.5px dotted rgba(60, 52, 43, 0.4);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.4);
    animation: airLandingPuffAnim 0.65s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
    z-index: 12;
  }
  @keyframes airLandingPuffAnim {
    0% {
      opacity: 0.9;
      transform: translate(-50%, -50%) scale(0.3) translateY(4px);
    }
    40% {
      opacity: 0.7;
      transform: translate(-50%, -50%) scale(1.25) translateY(-4px);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(1.65) translateY(-8px);
    }
  }

  /* Drops Overlay sitting over the field - spans the ground plane without a container */
  .game-drops-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
  }
  #petGround {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .pet-gift {
    position: absolute;
    width: 58px;
    height: 62px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    pointer-events: auto;
    filter: drop-shadow(0 4px 6px rgba(44, 42, 37, 0.22));
    transition: filter 0.18s ease;
  }
  .pet-gift:hover {
    filter: drop-shadow(0 8px 14px rgba(44, 42, 37, 0.32));
  }
  .pet-gift .pet-gift-art {
    display: block;
    transform-origin: bottom center;
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.2s ease;
  }
  .pet-gift:hover .pet-gift-art {
    transform: translateY(-6px) scale(1.14);
  }
  .pet-gift:active .pet-gift-art {
    transform: scale(0.90);
  }
  .pet-gift.collecting {
    pointer-events: none !important;
  }
  .pet-gift.collecting .pet-gift-art {
    pointer-events: none !important;
    transform: translateY(-24px) scale(1.35);
    opacity: 0;
    filter: drop-shadow(0 14px 22px rgba(44, 42, 37, 0.45));
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.20s ease-out;
  }
  .pet-gift-empty {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.50;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
    letter-spacing: 0.02em;
  }

  /* ── Floating Wobble Hover Badge / Tooltip ─────────────── */
  .wobble-hover-badge {
    position: fixed;
    z-index: 88;
    pointer-events: none;
    background: #fdfbf7;
    border: 2px solid #3c342b;
    border-radius: 16px 20px 14px 18px / 18px 14px 20px 16px;
    box-shadow: 3px 6px 18px rgba(44, 42, 37, 0.2);
    padding: 8px 14px;
    min-width: 190px;
    max-width: 250px;
    user-select: none;
    animation: hoverBadgePop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    transition: left 0.08s ease-out, top 0.08s ease-out;
  }
  .wobble-hover-badge[hidden] {
    display: none;
  }
  @keyframes hoverBadgePop {
    from {
      opacity: 0;
      transform: scale(0.88) translateY(6px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  .hover-badge-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
  }
  .hover-badge-identity {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .hover-badge-paw {
    font-size: 15px;
    line-height: 1;
  }
  .hover-badge-name {
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    font-weight: bold;
    color: #2c2a25;
  }
  .hover-badge-tag {
    font-family: 'Patrick Hand', cursive;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 6px;
    border: 1px solid #3c342b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .hover-badge-tag.tag-lead {
    background: #dca33e;
    color: #fff;
  }
  .hover-badge-tag.tag-comp {
    background: #e8ded1;
    color: #4a4037;
  }
  .hover-badge-mood {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
  }
  .hover-badge-mood.mood-happy,
  .hover-badge-mood:not(.mood-sad) {
    color: #3b8b54;
  }
  .hover-badge-mood.mood-sad {
    color: #c94b32;
  }
  .hover-badge-status {
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    color: #5a4f43;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .hover-badge-vitals {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-top: 1px dashed rgba(60, 50, 40, 0.15);
    border-bottom: 1px dashed rgba(60, 50, 40, 0.15);
    margin-bottom: 4px;
  }
  .hover-stat-col {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
  }
  .hover-stat-ico {
    font-size: 12px;
    line-height: 1;
  }
  .hover-stat-bar {
    width: 34px;
    height: 9px;
    border: 1px solid #3c342b;
    border-radius: 6px;
    background: #f7ebd7;
    overflow: hidden;
  }
  .hover-stat-fill {
    height: 100%;
    border-radius: 4px;
  }
  .hover-stat-num {
    font-family: 'Patrick Hand', cursive;
    font-size: 12px;
    font-weight: bold;
    color: #3c342b;
  }
  .hover-badge-hint {
    font-family: 'Patrick Hand', cursive;
    font-size: 11px;
    color: #8a7a6c;
    text-align: center;
    font-style: italic;
  }

  /* Adoption Screen Overlay */
  .game-adopt-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 42, 37, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    padding: 20px;
  }
  .game-adopt-overlay[hidden] { display: none; }
  .adopt-card {
    background: #f6f1e3;
    border: 3px solid #2c2a25;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 26px 30px;
    max-width: 680px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 8px 8px 0 rgba(44, 42, 37, 0.25);
    text-align: center;
  }
  .adopt-card h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
  }
  .pet-adopt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 14px;
  }
  .pet-adopt-grid .card {
    cursor: pointer;
    position: relative;
    background: #fbf8f0;
    border: 2px solid #2c2a25;
    border-radius: 12px;
    padding: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .pet-adopt-grid .card:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 3px 3px 0 rgba(44, 42, 37, 0.15);
  }
  .pet-adopt-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #f6f1e3;
    border: 1.5px solid #2c2a25;
    border-radius: 12px;
    padding: 1px 6px;
    font-size: 13px;
    box-shadow: 1px 1px 0 rgba(44,42,37,.15);
    z-index: 2;
  }

  /* ── Left Retractable Side Dock ────────────────────────── */
  .game-side-dock {
    position: absolute;
    top: 72px;
    left: 0;
    width: 82px;
    background: #fbf6ec;
    border: 2px solid #3c342b;
    border-left: none;
    border-radius: 0 24px 24px 0;
    box-shadow: 3px 4px 12px rgba(44, 42, 37, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px 18px 8px;
    z-index: 80;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .game-side-dock.dock-collapsed {
    transform: translateX(calc(-100% + 20px));
  }
  .dock-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 10px 8px;
    border-bottom: 1.5px dashed rgba(60, 50, 40, 0.2);
    margin-bottom: 12px;
    position: relative;
  }
  .dock-paw-icon {
    width: 20px;
    height: 20px;
    display: block;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.08));
  }
  .dock-collapse-btn {
    position: absolute;
    right: -21px;
    top: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #3c342b;
    background: #fbf5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(44, 42, 37, 0.15);
    font-size: 18px;
    font-weight: bold;
    color: #3c342b;
    line-height: 1;
    padding: 0;
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 2;
  }
  .dock-collapse-btn:hover {
    transform: scale(1.1);
    background: #f3ebd8;
  }
  .dock-collapse-btn:active {
    transform: scale(0.95);
  }
  .dock-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
  }
  .dock-item-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 100%;
    outline: none;
    transition: transform 0.15s ease;
  }
  .dock-item-btn:hover {
    transform: translateY(-2px);
  }
  .dock-item-btn:active {
    transform: scale(0.96);
  }
  .dock-icon-squircle {
    width: 58px;
    height: 58px;
    background: #f5eedf;
    border: 1.5px solid rgba(60, 50, 40, 0.22);
    border-radius: 18px 20px 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 1px 2px 4px rgba(44, 42, 37, 0.06);
    transition: all 0.15s ease;
  }
  .dock-item-btn:hover .dock-icon-squircle {
    background: #fdf6ec;
    border-color: #3c342b;
    box-shadow: 2px 3px 6px rgba(44, 42, 37, 0.12);
  }
  .dock-item-btn.active .dock-icon-squircle {
    background: #faebd7;
    border-color: #3c342b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(220, 163, 62, 0.45);
    transform: scale(1.05);
  }
  .dock-svg-icon {
    display: block;
  }
  .dock-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 14px;
    line-height: 1.15;
    color: #4a4037;
    text-align: center;
    margin-top: 6px;
    user-select: none;
    max-width: 76px;
  }
  .dock-item-btn.active .dock-label {
    color: #1a1815;
    font-weight: bold;
  }
  .dock-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e06c55;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 10px;
    border: 1.5px solid #2c2a25;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
    line-height: 1.2;
  }

  /* ── Floating Flyout Drawer (Beside the dock) ───────────── */
  .game-flyout-backdrop {
    position: absolute;
    inset: 0;
    z-index: 82;
    background: rgba(44, 42, 37, 0.08);
    backdrop-filter: blur(1px);
    cursor: pointer;
  }
  .game-flyout-backdrop[hidden] {
    display: none;
  }
  .game-flyout {
    position: absolute;
    top: 72px;
    left: 96px;
    width: 360px;
    max-width: calc(100vw - 110px);
    height: auto;
    max-height: calc(100% - 88px);
    background: #fcf8ef;
    border: 2px solid #3c342b;
    border-radius: 20px 24px 18px 22px / 22px 18px 24px 20px;
    box-shadow: 4px 8px 24px rgba(44, 42, 37, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 85;
    animation: flyoutSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .game-flyout[hidden] {
    display: none;
  }
  @keyframes flyoutSlideIn {
    from {
      opacity: 0;
      transform: translateX(-16px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(245, 238, 223, 0.9);
    border-bottom: 1.5px solid #3c342b;
  }
  .flyout-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .flyout-title-icon {
    font-size: 20px;
    line-height: 1;
  }
  .flyout-title {
    font-size: 22px;
    font-weight: normal;
    margin: 0;
    color: #2c2a25;
  }
  .flyout-close-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #3c342b;
    background: #fdfbf7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 0 rgba(44, 42, 37, 0.12);
    transition: transform 0.1s ease, background 0.15s ease;
  }
  .flyout-close-btn:hover {
    background: #ece3cf;
    transform: scale(1.08);
  }
  .flyout-close-btn:active {
    transform: scale(0.92);
  }
  .flyout-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .flyout-panel[hidden] {
    display: none;
  }
  .flyout-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(44, 42, 37, 0.18);
  }
  .flyout-subtitle {
    font-size: 16px;
    opacity: 0.82;
    text-transform: capitalize;
  }
  .deck-qty-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
  }
  .deck-qty-picker input {
    width: 54px;
    font-family: 'Patrick Hand', cursive;
    font-size: 16px;
    text-align: center;
    border: 1.5px solid #2c2a25;
    border-radius: 6px;
    background: #fff;
    padding: 1px 4px;
  }

  /* Feed buttons */
  .deck-feed-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
  }
  .pet-feed-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    color: #2c2a25;
    background: #f8f3e5;
    border: 1.5px solid #2c2a25;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 4px 12px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    transition: background 0.12s ease, transform 0.1s ease;
  }
  .pet-feed-btn:hover:not(:disabled) {
    background: #ece3cf;
    transform: translateY(-1px);
  }
  .pet-feed-btn:active:not(:disabled) {
    transform: translateY(1px);
  }
  .pet-feed-btn:disabled {
    opacity: 0.45;
    cursor: default;
  }

  /* Backpack list */
  .deck-bp-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
  }
  .bp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    font-size: 17px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(44, 42, 37, 0.14);
  }
  .bp-row:last-child { border-bottom: none; }
  .bp-label { font-size: 17px; flex: 1; }
  .bp-count { font-size: 16px; opacity: 0.8; min-width: 36px; }
  .bp-qty {
    width: 44px;
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    border: 1.5px solid #2c2a25;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    padding: 1px 2px;
  }
  .bp-row .pet-feed-btn {
    font-size: 15px;
    padding: 2px 10px;
  }

  /* Sanctuary Roster & Companions */
  .deck-roster-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
    overflow-y: auto;
    max-height: 280px;
    padding: 4px 0;
  }
  .roster-card {
    text-align: center;
    background: #f6f1e3;
    border: 1.5px solid #2c2a25;
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.15s ease;
    position: relative;
  }
  .roster-card:hover {
    transform: translateY(-2px);
    background: #ece4d0;
  }
  .roster-card.active-pet {
    border: 2.5px solid #dca33e;
    box-shadow: 0 0 0 2px rgba(220, 163, 62, 0.35);
    background: #fff8e8;
  }
  .roster-card.active-pet::after {
    content: 'lead';
    position: absolute;
    top: -8px;
    right: -4px;
    background: #dca33e;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 6px;
    border: 1px solid #2c2a25;
    text-transform: uppercase;
    font-weight: bold;
  }
  .roster-card img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(44, 42, 37, 0.2);
    margin: 0 auto 2px;
    display: block;
    background: #ebe3cf;
  }
  .roster-card .roster-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .deck-chicken-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-y: auto;
    max-height: 120px;
    padding-top: 6px;
    border-top: 1px dashed rgba(44, 42, 37, 0.15);
    font-size: 13px;
    opacity: 0.8;
  }
  .chicken-chip {
    white-space: nowrap;
    border-bottom: 1.5px dashed rgba(44, 42, 37, 0.3);
    cursor: help;
  }

  /* Reveal popup */
  #petReveal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 95; pointer-events: none; }
  #petReveal .reveal-card { pointer-events: auto; cursor: pointer; background: #f6f1e3; border: 3px solid #2c2a25; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 20px 34px; text-align: center; font-size: 26px; box-shadow: 6px 6px 0 rgba(44,42,37,.18); animation: popIn .22s ease; }
  #petReveal .reveal-chicken canvas { margin: 0 auto 4px; }
  #petReveal .reveal-owner { font-size: 15px; opacity: .65; margin-top: 4px; }
  @keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

  /* Responsive styling */
  @media (max-width: 900px) {
    .game-hud-top {
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }
    .hud-pill-vitals {
      order: 3;
      width: 100%;
      justify-content: space-around;
      gap: 12px;
      padding: 4px 10px;
    }
    .game-side-dock {
      top: 116px;
    }
    .game-flyout {
      top: 116px;
      max-height: calc(100% - 130px);
    }
  }

  @media (max-width: 560px) {
    .hud-pet-status-wrap {
      display: none;
    }
    .hud-stat-bar {
      width: 52px;
    }
    .hud-stat-label {
      font-size: 12px;
    }
    .game-side-dock {
      top: 116px;
      width: 68px;
      padding: 8px 4px 14px 4px;
    }
    .dock-icon-squircle {
      width: 48px;
      height: 48px;
    }
    .dock-label {
      font-size: 12px;
      max-width: 62px;
    }
    .game-flyout {
      top: 116px;
      left: 76px;
      max-height: calc(100% - 130px);
      width: calc(100vw - 84px);
    }
  }

  /* ── Home Page Footer ─────────────────────────────────── */
  .home-footer {
    margin-top: 18px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 5;
    font-family: 'Patrick Hand', cursive;
    color: #2c2a25;
    max-width: 98vw;
    text-align: center;
    user-select: none;
  }

  .footer-launch {
    font-size: 19px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.55);
    border: 1.6px dashed rgba(44, 42, 37, 0.35);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 3px 14px;
    min-height: 38px;
    box-shadow: 1px 2px 0 rgba(44, 42, 37, 0.08);
  }

  .footer-launch .footer-link {
    color: #2c2a25;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.15s ease, transform 0.15s ease;
  }
  .footer-launch .footer-link:hover {
    color: #000;
    transform: scale(1.04);
  }

  .nvidia-tag {
    background: rgba(118, 185, 0, 0.16);
    border: 1.2px solid rgba(118, 185, 0, 0.6);
    color: #2b5000;
    padding: 0 8px;
    border-radius: 6px;
    font-weight: 500;
  }

  .ca-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f3e6;
    border: 1.8px solid #2c2a25;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 3px 12px;
    min-height: 38px;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(44, 42, 37, 0.15);
    transition: transform 0.12s ease, background 0.15s ease;
  }
  .ca-container:hover {
    background: #fcf8ee;
    transform: translateY(-1px);
  }
  .ca-container:active {
    transform: scale(0.98);
  }

  .ca-label {
    font-size: 17px;
    font-weight: bold;
    opacity: 0.85;
  }

  .ca-code {
    font-family: monospace, 'Courier New', Courier;
    font-size: 14px;
    color: #2c2a25;
    letter-spacing: 0.5px;
  }

  .ca-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(44, 42, 37, 0.08);
    border: 1.2px solid #2c2a25;
    border-radius: 6px;
    padding: 2px 7px;
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    color: #2c2a25;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .ca-copy-btn:hover {
    background: rgba(44, 42, 37, 0.18);
  }

  .ca-copied-toast {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c2a25;
    color: #f2ecdd;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    animation: toastPop 0.2s ease-out;
  }
  @keyframes toastPop {
    from { opacity: 0; transform: translate(-50%, 6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }

  .footer-x-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f3e6;
    border: 1.8px solid #2c2a25;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 3px 14px;
    min-height: 38px;
    color: #2c2a25;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 2px 2px 0 rgba(44, 42, 37, 0.15);
    transition: transform 0.12s ease, background 0.15s ease;
  }
  .footer-x-btn:hover {
    background: #fcf8ee;
    transform: translateY(-1px) rotate(-1deg);
  }
  .footer-x-btn:active {
    transform: scale(0.98);
  }
  .footer-x-btn svg {
    flex-shrink: 0;
  }

  @media (max-width: 600px) {
    .home-footer {
      flex-direction: column;
      gap: 8px;
    }
    .ca-code {
      max-width: 170px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .footer-launch {
      font-size: 16px;
      min-height: 34px;
    }
    .ca-container, .footer-x-btn {
      min-height: 34px;
    }
  }

  /* ── Global Top Header ───────────────────────────────────────── */
  .global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(244, 239, 230, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid #3c342b;
    box-shadow: 0 2px 10px rgba(44, 42, 37, 0.08);
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-brand {
    text-decoration: none;
    color: #2c2a25;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: rotate(-1.5deg);
    transition: transform 0.15s ease;
  }
  .header-brand:hover {
    transform: rotate(0deg) scale(1.04);
  }

  .header-brand-name {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.5px;
  }

  /* Navigation Tabs */
  .header-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(44, 42, 37, 0.06);
    padding: 4px 6px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    border: 1.5px solid rgba(60, 52, 43, 0.4);
  }

  .header-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 3px 12px;
    font-family: 'Patrick Hand', cursive;
    font-size: 19px;
    color: #524a40;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    text-decoration: none;
  }
  .header-tab-btn:hover {
    background: rgba(44, 42, 37, 0.08);
    color: #2c2a25;
    transform: translateY(-1px);
  }
  .header-tab-btn.active {
    background: #fbf6ec;
    border-color: #3c342b;
    color: #2c2a25;
    box-shadow: 2px 2px 0 rgba(44, 42, 37, 0.2);
    transform: rotate(-0.8deg);
    font-weight: bold;
  }
  .header-tab-btn .tab-icon {
    font-size: 17px;
  }

  .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: #f5ad27;
    border: 1.2px solid #3c342b;
    border-radius: 999px;
    font-family: 'Patrick Hand', cursive;
    font-size: 13px;
    font-weight: bold;
    color: #2c2a25;
    line-height: 1;
    margin-left: 3px;
  }
  .tab-badge[hidden] {
    display: none;
  }

  /* Header Right Area */
  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
  }

  .header-quick-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f3e6;
    border: 1.8px solid #3c342b;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 15px;
    color: #3c342b;
    box-shadow: 1px 2px 0 rgba(44, 42, 37, 0.12);
  }
  .header-quick-balance[hidden] {
    display: none;
  }
  .balance-item {
    font-weight: bold;
  }
  .balance-sep {
    opacity: 0.4;
  }

  .wallet-nav-btn {
    font-size: 18px !important;
    padding: 2px 12px !important;
  }

  .global-header #walletMenu {
    top: calc(100% + 8px);
    right: 0;
    z-index: 200;
  }

  /* ── View Containers ─────────────────────────────────────────── */
  .view-section {
    width: 100%;
    max-width: 1040px;
  }
  .view-section[hidden] {
    display: none !important;
  }

  .view-content-container {
    padding: 16px 16px 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: viewFadeIn 0.22s ease-out;
  }

  @keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .view-header-title {
    text-align: center;
    margin-bottom: 4px;
  }
  .view-header-title h2 {
    font-size: 38px;
    color: #2c2a25;
    transform: rotate(-0.8deg);
    line-height: 1.1;
  }
  .view-subtitle {
    font-size: 20px;
    color: #6a6256;
    margin-top: 4px;
  }

  /* ── Gallery View ────────────────────────────────────────────── */
  .gallery-view-header {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4px;
  }
  .gallery-count-badge {
    font-family: 'Patrick Hand', cursive;
    font-size: 19px;
    color: #6a6256;
    background: rgba(44, 42, 37, 0.05);
    border-radius: 999px;
    padding: 2px 14px;
    border: 1px dashed rgba(60, 52, 43, 0.25);
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 24px;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
  }
  .gallery-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px dashed rgba(60, 52, 43, 0.18);
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
  .gallery-footer[hidden] {
    display: none;
  }
  .gallery-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Patrick Hand', cursive;
    font-size: 15px;
    color: #8c8275;
    background: transparent;
    border: 1px solid rgba(60, 52, 43, 0.2);
    border-radius: 999px;
    padding: 4px 14px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
  }
  .gallery-clear-btn:hover {
    color: #b33939;
    border-color: rgba(179, 57, 57, 0.4);
    background: rgba(179, 57, 57, 0.06);
    transform: translateY(-1px);
  }
  .gallery-clear-btn.is-confirming {
    color: #ffffff !important;
    background: #b33939 !important;
    border-color: #8b2323 !important;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(179, 57, 57, 0.25);
    animation: pulseWarning 0.9s infinite alternate;
  }
  @keyframes pulseWarning {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
  }
  .gallery-clear-btn .clear-icon {
    font-size: 14px;
    opacity: 0.75;
  }

  /* ── Profile Dashboard ───────────────────────────────────────── */
  .profile-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .profile-card {
    background: #fcf8ee;
    border: 2px solid #3c342b;
    border-radius: 18px 12px 20px 14px / 14px 20px 12px 18px;
    padding: 20px;
    box-shadow: 3px 4px 0 rgba(44, 42, 37, 0.15);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
  }

  .profile-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .profile-card-headline {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .profile-card-headline h3 {
    font-size: 24px;
    color: #2c2a25;
    line-height: 1;
  }
  .profile-card-icon {
    font-size: 22px;
  }

  .profile-status-badge {
    font-size: 15px;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: bold;
  }
  .status-connected {
    background: rgba(56, 142, 60, 0.15);
    color: #2e7d32;
    border: 1.2px solid #2e7d32;
  }
  .status-disconnected {
    background: rgba(211, 47, 47, 0.12);
    color: #c62828;
    border: 1.2px solid #c62828;
  }

  .profile-connect-prompt {
    font-size: 18px;
    color: #6a6256;
    line-height: 1.3;
    padding: 10px 0;
  }

  .profile-wallet-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .profile-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    gap: 8px;
  }
  .profile-field-label {
    color: #726a5d;
    font-size: 17px;
  }
  .profile-addr-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
  }
  .profile-field-value.monospace {
    font-family: monospace;
    font-size: 14px;
    background: rgba(44, 42, 37, 0.07);
    padding: 2px 6px;
    border-radius: 4px;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mini-icon-btn {
    background: transparent;
    border: 1px solid #3c342b;
    border-radius: 4px;
    padding: 2px 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mini-icon-btn:hover {
    background: rgba(44, 42, 37, 0.12);
  }
  .profile-inline-toast {
    position: absolute;
    top: -24px;
    right: 0;
    background: #2c2a25;
    color: #f2ecdd;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
  }
  .profile-network-tag {
    background: rgba(153, 69, 255, 0.12);
    color: #7b2cbf;
    border: 1px solid #7b2cbf;
    font-size: 14px;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: bold;
  }

  .profile-balances-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1.5px dashed rgba(60, 52, 43, 0.25);
  }
  .profile-balance-item {
    background: #f5eedd;
    border: 1.5px solid #3c342b;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
  }
  .bal-label {
    font-size: 14px;
    color: #7a7061;
  }
  .bal-amount {
    font-size: 20px;
    font-weight: bold;
    color: #2c2a25;
  }

  /* Card 2: Faucet */
  .profile-card-desc {
    font-size: 18px;
    color: #5e564a;
    line-height: 1.25;
  }
  .profile-faucet-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f0e1;
    border: 1.5px dashed #3c342b;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
  }
  .faucet-timer-info {
    font-size: 18px;
    font-weight: bold;
  }
  .timer-ready {
    color: #2e7d32;
  }
  .timer-cooldown {
    color: #d97706;
  }
  .profile-claim-btn {
    width: 100%;
    font-size: 20px !important;
    padding: 6px 16px !important;
    background: #e8dbbe;
  }
  .profile-claim-btn:not(:disabled):hover {
    background: #deb887;
  }
  .profile-claim-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: #8c8275;
  }

  /* Card 3: Inventory */
  .profile-inventory-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .inv-item {
    background: #f5eedd;
    border: 1.5px solid #3c342b;
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  .inv-ico {
    font-size: 26px;
  }
  .inv-details {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  .inv-name {
    font-size: 14px;
    color: #6a6256;
  }
  .inv-qty {
    font-size: 24px;
    font-weight: bold;
    color: #2c2a25;
  }

  /* Card 4: Collection Grid */
  .collection-card {
    grid-column: 1 / -1;
  }
  .profile-empty-state {
    text-align: center;
    padding: 32px 16px;
    font-size: 20px;
    color: #6a6256;
  }
  .profile-wobbles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 8px;
  }
  .profile-wobble-card {
    background: #faf5e8;
    border: 2px solid #3c342b;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 2px 3px 0 rgba(44, 42, 37, 0.12);
  }
  .profile-wobble-card:hover {
    transform: translateY(-2px);
    box-shadow: 3px 5px 0 rgba(44, 42, 37, 0.18);
  }
  .profile-wobble-card.is-active-lead {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px #f59e0b, 3px 4px 0 rgba(245, 158, 11, 0.3);
  }

  .profile-card-thumb {
    width: 100%;
    height: 150px;
    background: #f0e8d5;
    border-bottom: 1.5px solid #3c342b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .profile-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .profile-card-placeholder {
    font-size: 48px;
    opacity: 0.5;
  }

  .profile-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .profile-card-name {
    font-size: 22px;
    color: #2c2a25;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .profile-card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .profile-badge {
    font-size: 13px;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.2;
  }
  .badge-lead {
    background: #fef3c7;
    color: #b45309;
    border: 1.2px solid #b45309;
    font-size: 11px;
  }
  .badge-free {
    background: #dcfce7;
    color: #15803d;
    border: 1.2px solid #15803d;
  }
  .badge-count {
    background: #f4ece0;
    color: #554e42;
    border: 1.2px solid #554e42;
  }
  .badge-minted {
    background: #ede9fe;
    color: #6d28d9;
    border: 1.2px solid #6d28d9;
    transition: background 0.15s ease;
  }
  .badge-minted:hover {
    background: #ddd6fe;
    text-decoration: underline;
  }
  .badge-local {
    background: #f3f4f6;
    color: #4b5563;
    border: 1.2px solid #9ca3af;
  }
  .badge-tier {
    border: 1.2px solid currentColor;
  }
  .tier-common { color: #4b5563; background: #f3f4f6; }
  .tier-rare { color: #1d4ed8; background: #dbeafe; }
  .tier-epic { color: #7e22ce; background: #f3e8ff; }
  .tier-legendary { color: #b45309; background: #fef3c7; }

  .profile-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }
  .sketchy-btn-sm {
    flex: 1;
    font-family: 'Patrick Hand', cursive;
    font-size: 17px;
    color: #2c2a25;
    background: #ede3ce;
    border: 1.8px solid #2c2a25;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    padding: 3px 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.12s ease;
  }
  .sketchy-btn-sm:hover:not(:disabled) {
    background: #e0d2b6;
    transform: translateY(-1px);
  }
  .sketchy-btn-sm:disabled {
    opacity: 0.5;
    cursor: default;
  }
  .sketchy-btn-sm.secondary {
    background: transparent;
    flex: 0 0 auto;
  }

  /* ── Como Jogar (Game Guide) ─────────────────────────────────── */
  .guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .guide-card {
    background: #fcf8ee;
    border: 2px solid #3c342b;
    border-radius: 20px 14px 18px 16px / 16px 18px 14px 20px;
    padding: 24px 20px 20px;
    box-shadow: 3px 4px 0 rgba(44, 42, 37, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.15s ease;
  }
  .guide-card:hover {
    transform: translateY(-2px);
  }

  .guide-step-badge {
    position: absolute;
    top: -12px;
    left: 18px;
    background: #3c342b;
    color: #fcf8ee;
    font-size: 15px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 999px;
    box-shadow: 1px 2px 0 rgba(44, 42, 37, 0.2);
    transform: rotate(-1deg);
  }

  .guide-card-icon {
    font-size: 34px;
    margin-top: 4px;
    margin-bottom: 6px;
  }

  .guide-card-title {
    font-size: 26px;
    color: #2c2a25;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .guide-card-text {
    font-size: 19px;
    color: #554e43;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .guide-list {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 18px;
    color: #433e36;
    line-height: 1.3;
  }

  .guide-extension-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .guide-download-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 5px 14px !important;
    font-size: 18px !important;
    background: #eadecd;
  }
  .guide-download-btn:hover {
    background: #deb887;
    transform: translateY(-1px);
  }
  .guide-install-hint {
    margin-top: 10px;
    font-size: 15px;
    color: #5c5448;
    background: rgba(44, 42, 37, 0.05);
    border: 1px dashed rgba(60, 52, 43, 0.4);
    border-radius: 8px;
    padding: 8px 10px;
    line-height: 1.3;
  }
  .guide-install-hint code {
    background: rgba(44, 42, 37, 0.08);
    padding: 1px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
  }

  .guide-cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  /* ── Mobile Responsive Overrides ─────────────────────────────── */
  @media (max-width: 768px) {
    .global-header {
      padding: 0 10px;
      height: 52px;
    }
    .header-tabs {
      gap: 3px;
      padding: 2px 3px;
      overflow-x: auto;
      max-width: calc(100vw - 190px);
    }
    .header-tab-btn {
      padding: 2px 7px;
      font-size: 16px;
      white-space: nowrap;
    }
    .header-tab-btn .tab-icon {
      font-size: 14px;
    }
    .header-brand-name {
      font-size: 24px;
    }
    .header-quick-balance {
      display: none !important;
    }
    .wallet-nav-btn {
      font-size: 15px !important;
      padding: 2px 8px !important;
    }
    body {
      padding-top: 60px;
    }
    .game-screen {
      inset: 52px 0 0 0;
    }
  }

