/* Hero: Azula's main menu, shown as a window you can click through. Colours follow style.css (--accent, the glass cards). */
.hero:before { background: linear-gradient(90deg, #03171dd9, #03171d4d); }
.hero-backdrop { position: absolute; z-index: -3; inset: -108px calc((100vw - 100%) / -2) 0; overflow: hidden; background: #071b21; }
.hero-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero-backdrop img.is-on { opacity: 1; }

html { overflow-x: hidden; } @supports (overflow: clip) { html { overflow-x: clip; } } /* the full-bleed backdrop is 100vw wide, scrollbar included */
.menu-showcase { margin: 0 -8px 0 22px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.menu-window { border: 1px solid #d9f6ed33; border-radius: 22px; overflow: hidden; background: #071d25cc; backdrop-filter: blur(12px); box-shadow: 0 30px 80px #00080b8c; }
.menu-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 12px 0 16px; border-bottom: 1px solid #d9f6ed1f; font: 700 10px/1 'Segoe UI', Arial, sans-serif; letter-spacing: .16em; color: #cee1dc; }
.menu-dots { display: flex; gap: 6px; }
.menu-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d9f6ed33; }
.menu-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-change { font: 700 11px/1 'Segoe UI', Arial, sans-serif; letter-spacing: .02em; color: #071b21; background: var(--accent); border: 0; border-radius: 999px; padding: 8px 13px; cursor: pointer; white-space: nowrap; }
.menu-change:hover { background: var(--ice); }
.menu-screen { position: relative; aspect-ratio: 16 / 9; background: #04141a; touch-action: pan-y; cursor: grab; }
.menu-screen:active { cursor: grabbing; }
.menu-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; user-select: none; -webkit-user-drag: none; }
.menu-shot.is-on { opacity: 1; }
.menu-arrow { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 1px solid #d9f6ed55; background: #04141acc; backdrop-filter: blur(6px); color: #f5faf7; font-size: 22px; line-height: 1; cursor: pointer; opacity: .85; }
.menu-arrow:hover { opacity: 1; border-color: var(--accent); }
.menu-arrow.prev { left: 12px; } .menu-arrow.next { right: 12px; }

.menu-caption { display: flex; align-items: baseline; gap: 14px; padding: 0 6px; font-size: 13px; color: #deebe8; }
.menu-count { font: 10px/1.4 monospace; letter-spacing: .08em; color: var(--accent); flex: none; font-variant-numeric: tabular-nums; }
.menu-name { flex: 1; min-width: 0; }
.menu-name b { color: #f5faf7; font-weight: 600; }
.menu-note { font: 9px/1.4 monospace; letter-spacing: .06em; color: #c7dcd7; flex: none; }

.menu-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 6px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.menu-thumb { flex: none; width: 64px; height: 36px; border-radius: 7px; border: 2px solid #d9f6ed26; background: #082129 center / cover no-repeat; cursor: pointer; scroll-snap-align: start; opacity: .78; padding: 0; }
.menu-thumb:hover { opacity: 1; }
.menu-thumb[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }

.menu-change:focus-visible, .menu-arrow:focus-visible, .menu-thumb:focus-visible, .menu-screen:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1000px) { .menu-showcase { margin: 28px 0 0; } }
@media (max-width: 700px) {
  .hero-backdrop { inset: -82px -18px 0; }
  .menu-bar { height: 38px; } .menu-dots { display: none; }
  .menu-caption { flex-wrap: wrap; gap: 4px 12px; font-size: 12px; } .menu-note { width: 100%; }
  .menu-arrow { width: 34px; height: 34px; margin-top: -17px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .menu-shot, .hero-backdrop img { transition: none; } }
