dialog.home-methods {
  position: fixed;
  inset: 0;
  width: min(720px, calc(100vw - 48px));
  max-width: 100vw;
  max-height: 92dvh;
  margin: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #171732;
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / .95);
  font: 400 16px/1.5 'Match Proxima', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  font-feature-settings: 'salt';
  outline: none;
}
.home-methods[open] { display: flex; flex-direction: column; animation: hm-panel-in .24s cubic-bezier(.22,.61,.36,1); }
.home-methods::backdrop { background: rgb(8 8 20 / .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html:has(.home-methods[open]) { overflow: hidden; }
.home-methods .hm-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.hm-panel { position: relative; padding: 24px; }
.home-methods .hm-heading, .home-methods .hm-empty-title { margin: 0; font: 800 28px/1.12 'Match Proxima', system-ui, sans-serif; letter-spacing: -.015em; font-feature-settings: 'salt'; font-kerning: normal; }
.home-methods .hm-heading { padding-right: 48px; color: #fff; text-transform: none; }
.hm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.home-methods button, .home-methods input { font-family: inherit; font-kerning: normal; font-feature-settings: 'salt'; }
.home-methods button { border: 0; margin: 0; cursor: pointer; }
.home-methods button:focus-visible { outline: 2px solid #aa91ff; outline-offset: 2px; }
.home-methods .hm-chip {
  height: 36px; padding: 0 16px; border-radius: 10px; background: #27284d; color: #abadcc;
  font-size: 14px; line-height: 21px; font-weight: 700;
}
.home-methods .hm-chip:hover, .hm-tile:hover { background: #37336b; color: #fff; }
.home-methods .hm-chip[aria-pressed=true] { color: #fff; background: #6443f5; }
.hm-search { display: flex; position: relative; align-items: center; height: 40px; margin-top: 12px; }
.home-methods input {
  box-sizing: border-box; width: 100%; height: 100%; appearance: none; border: 1px solid #2f2f59; border-radius: 10px;
  padding: 0 36px; background: #0d0d21; color: white; outline: none; font-size: 14px; line-height: 21px; font-weight: 600;
}
.home-methods input::-webkit-search-cancel-button { display: none; }
.home-methods input::placeholder { color: #abadcc; opacity: 1; }
.home-methods input:focus { border-color: #6443f5; }
.hm-search::before {
  content: ''; pointer-events: none; position: absolute; left: 12px; width: 15px; height: 15px; background-color: #abadcc;
  mask: url('/art/guest-home/methods/search.svg') center/contain no-repeat;
}
.home-methods .hm-close, .home-methods .hm-clear { position: absolute; display: grid; place-items: center; padding: 0; color: #abadcc; }
.home-methods .hm-close { top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgb(6 6 18 / .3); }
.home-methods .hm-clear { right: 6px; width: 28px; height: 28px; border-radius: 8px; background: transparent; }
.hm-close::before, .hm-clear::before { content: ''; width: 16px; height: 16px; background: currentColor; mask: url('/art/guest-home/methods/close.svg') center/contain no-repeat; }
.hm-clear::before { width: 14px; height: 14px; mask-image: url('/art/guest-home/methods/clear.svg'); }
.home-methods .hm-close:hover, .home-methods .hm-clear:hover { color: #fff; }
.home-methods [hidden] { display: none; }
.hm-results {
  margin-top: 16px; height: min(392px,48dvh); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: #45466c transparent;
}
.home-methods .hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px,1fr)); grid-auto-rows: 68px; gap: 8px; padding: 0; margin: 0; list-style: none; }
.hm-tile { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 12px; background: #27284d; transition: background-color .15s; }
.home-methods .hm-logo { width: 32px; height: 32px; object-fit: contain; }
.home-methods .hm-logo.wide { width: 48px; height: 28px; }
.home-methods .hm-logo.large { width: 44px; height: 44px; }
.home-methods .hm-logo.disc { border-radius: 50%; }
.home-methods .hm-logo.glyph { filter: brightness(0) invert(1); }
.hm-empty { display: grid; height: 100%; place-content: center; justify-items: center; gap: 12px; text-align: center; color: #abadcc; font-size: 14px; font-weight: 500; }
.home-methods .hm-empty-title { font-size: 20px; color: #fff; }
.hm-tip {
  pointer-events: none; position: absolute; z-index: 1; transform: translate(-50%,-100%); border-radius: 8px; padding: 4px 10px;
  background: #37336b; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; box-shadow: 0 6px 16px rgb(0 0 0 / .45);
}
@keyframes hm-panel-in { from { transform: translateY(8px) scale(.98); opacity: 0; } }
@keyframes hm-sheet-in { from { transform: translateY(28px); opacity: 0; } }
@media (max-width: 639.98px) {
  dialog.home-methods { width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .home-methods[open] { animation-name: hm-sheet-in; }
  .hm-panel { padding: 20px; }
  .home-methods .hm-heading { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-methods[open], .hm-tile { animation: none; transition: none; }
}

@media (pointer: coarse) {
  .home-methods input[type=search] { font-size: 16px; line-height: 24px; }
}
