.page-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(196, 181, 253, .18);
  background: rgba(11, 8, 22, .92);
}

.page-header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.page-brand-menu { grid-column: 2; position: relative; display: flex; align-items: center; gap: .7rem; }
.page-brand {
  display: inline-flex; align-items: center; gap: .5rem; border: 0; padding: .35rem .45rem; border-radius: 10px;
  background: transparent; color: #f8f6ff; cursor: pointer; font: inherit; font-weight: 800; font-size: 1rem;
}
.page-brand:hover, .page-brand:focus-visible { background: rgba(124, 58, 237, .14); outline: 1px solid rgba(196,181,253,.42); }
.page-brand img { width: 30px; height: 30px; object-fit: contain; }
.page-brand-hint { color: #a99fc0; font-size: .74rem; white-space: nowrap; }
.page-back { grid-column: 3; justify-self: end; color: #d8ccff; font-weight: 700; font-size: .9rem; }
.page-back:hover { color: #fff; }

.page-menu {
  position: absolute; z-index: 5; top: calc(100% + .7rem); left: 50%; width: min(620px, calc(100vw - 2rem));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; padding: .65rem;
  border: 1px solid rgba(196,181,253,.28); border-radius: 16px; background: rgba(18, 12, 33, .98); box-shadow: 0 20px 45px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity .18s ease, transform .18s ease;
}
.page-brand-menu.is-menu-open .page-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.page-menu a { padding: .7rem .8rem; border-radius: 10px; color: #f5f1ff; font-size: .88rem; font-weight: 700; }
.page-menu a:hover, .page-menu a:focus-visible { background: rgba(124,58,237,.24); outline: none; }
.page-menu small { display: block; margin-top: .12rem; color: #aaa0c1; font-size: .72rem; font-weight: 500; }

.page-footer { border-top: 1px solid rgba(196,181,253,.2); padding: 1.7rem 0; }
.page-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 43px; }
.page-footer-brand { display: inline-flex; align-items: center; gap: .5rem; color: #f7f4ff; font-weight: 800; }
.page-footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.page-footer small { color: #9990af; }

@media (max-width: 720px) {
  .page-header-inner { min-height: 64px; grid-template-columns: 1fr auto 1fr; }
  .page-brand-menu { grid-column: 2; }
  .page-brand span, .page-brand-hint { display: none; }
  .page-brand img { width: 35px; height: 35px; }
  .page-back { font-size: .76rem; white-space: nowrap; }
  .page-menu { grid-template-columns: 1fr; }
  .page-footer { padding: 1.45rem 0; }
  .page-footer .container { flex-direction: column; align-items: flex-start; gap: .45rem; }
}

.adventure-option.is-selected {
  background: linear-gradient(145deg, rgba(124,58,237,.82), rgba(36,21,70,.94));
  border-color: #bfa7ff;
  box-shadow: 0 10px 26px rgba(124,58,237,.22);
}

.adventure-step-actions { display: flex; justify-content: flex-end; gap: .8rem; margin-top: 1.2rem; }

.adventure-progress li.is-current { background: #f4dd88; box-shadow: 0 0 0 3px rgba(244, 221, 136, .18); }
.route-card-dot { display: inline-block; width: .7rem; height: .7rem; margin-right: .55rem; border: 2px solid currentColor; border-radius: 45% 55% 52% 48%; background: #f4dd88; vertical-align: .03em; transform: rotate(-12deg); }
.adventure-option:nth-child(3n + 2) .route-card-dot { background: #84d2c7; border-radius: 57% 43% 45% 55%; transform: rotate(16deg); }
.adventure-option:nth-child(3n) .route-card-dot { background: #e38ca9; border-radius: 51% 49% 58% 42%; transform: rotate(8deg); }
.adventure-card .adventure-options { max-height: 410px; overflow-y: auto; padding-right: .3rem; }
.adventure-optional { margin: 1.25rem 0 0; padding: 1.2rem; border: 1px dashed rgba(244, 221, 136, .45); border-radius: 16px; background: rgba(23, 16, 38, .55); }
.adventure-optional h3 { margin: 0; }
.adventure-optional p { margin: .4rem 0 .85rem; color: #c4bdd4; }
.adventure-optional div { display: flex; flex-wrap: wrap; gap: .55rem; }
.adventure-optional button { border: 1px solid rgba(196,181,253,.35); border-radius: 999px; padding: .45rem .75rem; background: rgba(86, 51, 148, .35); color: #f7f2ff; cursor: pointer; font: inherit; font-size: .88rem; }
.adventure-optional button:hover, .adventure-optional button:focus-visible { border-color: #f4dd88; background: rgba(124,58,237,.58); outline: none; }

@media (max-width: 800px) {
  .adventure-step-actions { justify-content: flex-start; }
  .adventure-card .adventure-options { max-height: none; }
}
