/* One header across the product journey, independent of page composition. */
.boredai-header.masthead {
  box-sizing: border-box;
  position: relative;
  z-index: 100;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: max(clamp(28px, 3vw, 72px), env(safe-area-inset-top)) max(clamp(28px, 3vw, 72px), env(safe-area-inset-right)) 0 max(clamp(28px, 3vw, 72px), env(safe-area-inset-left));
  border: 0;
}
.boredai-header .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: #f2e8d5;
  font: 400 clamp(56px, 4.1vw, 68px)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.048em;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 2px 14px #0007;
}
.boredai-header .wordmark span { color: #d3b47b; letter-spacing: -.055em; margin-left: .035em; }
.boredai-header .wallet-row { position: relative; margin: 0; }
.boredai-header .connect-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #d3b47b7a;
  border-radius: 3px;
  background: #030a16a3;
  color: #f2e8d5;
  font: 500 13px/1.4 'Trebuchet MS', sans-serif;
  letter-spacing: .025em;
  white-space: nowrap;
  cursor: pointer;
}
.boredai-header .connect-wallet:hover { color: #f7dfb5; border-color: #d3b47b; background: #211c18e0; }
.boredai-header .connect-wallet:active { transform: translateY(1px); }
.boredai-header .connect-wallet[aria-disabled="true"] { cursor: wait; opacity: .65; }
.boredai-header .wallet-status {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(340px, calc(100vw - 40px));
  max-width: none;
  margin: 0;
  color: #f2e8d5;
  font: 14px/1.5 'Trebuchet MS', sans-serif;
  text-align: right;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px #000;
}
.boredai-header .wallet-status:empty { display: none; }
.boredai-header a:focus-visible, .boredai-header button:focus-visible { outline: 2px solid #f2e8d5; outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px), (max-height: 600px) {
  .boredai-header.masthead { padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); gap: 16px; }
  .boredai-header .wordmark { font-size: clamp(36px, 9.5vw, 42px); }
  .boredai-header .connect-wallet { padding-inline: 15px; font-size: 12px; }
}
@media (max-width: 360px) {
  .boredai-header.masthead { gap: 10px; padding-inline: 18px; }
  .boredai-header .wordmark { font-size: 32px; }
  .boredai-header .connect-wallet { padding-inline: 10px; }
}

.wallet-picker {
  width: min(360px, calc(100vw - 40px));
  max-height: calc(100svh - 40px);
  padding: 24px;
  overflow: auto;
  border: 1px solid rgb(211 180 123 / 48%);
  border-radius: 3px;
  background: #030a16;
  color: #f2e8d5;
}
.wallet-picker::backdrop { background: rgb(3 10 22 / 75%); }
.wallet-picker h2 { margin: 0 0 20px; font-size: 24px; font-weight: 400; }
.wallet-picker button {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgb(211 180 123 / 48%);
  border-radius: 3px;
  background: transparent;
  color: #f2e8d5;
  font: 14px/1.5 'Trebuchet MS', sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.wallet-picker button + button { margin-top: 12px; }
.wallet-picker button:hover { border-color: #d3b47b; background: rgb(33 28 24 / 88%); }
.wallet-picker small { display: block; color: #d3b47b; font-size: 12px; }
.wallet-picker .wallet-picker-cancel { border-color: transparent; text-align: center; }

.wallet-picker button:focus-visible { outline: 2px solid #f2e8d5; outline-offset: 5px; }

.wallet-picker .wallet-option {display:grid;grid-template-columns:36px 1fr;column-gap:12px;align-items:center;}
.wallet-option-icon {grid-column:1;grid-row:1 / span 2;width:32px;height:32px;object-fit:contain;}
.wallet-option > span,.wallet-option > small {grid-column:2;}
