:root { --site-header-height: 65px; --member-shortcut-height: 124px; }
html { scroll-padding-top: calc(var(--site-header-height) + var(--member-shortcut-height) + 20px); }

/* The service menu belongs to the content column and sticks below the masthead. */
.site-header { border: 0; background: transparent; box-shadow: none; }
.header-primary {
  position: relative;
  z-index: 1;
  border-block-end: 1px solid #78b9ef8a;
  background:
    radial-gradient(ellipse at 50% 0, #215a965f, transparent 70%),
    linear-gradient(106deg, #0a2b55, #071f42 52%, #0b305b);
  box-shadow: 0 3px 12px #03173545;
}
.member-shortcut-dock {
  position: sticky;
  top: calc(var(--site-header-height) - 1px);
  z-index: 4;
  padding-block: 8px 10px;
  background: #f1f7ff;
}
.member-shortcut-bar {
  --shortcut-radius: 28px;
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  border: 1px solid #ffffffe6;
  border-radius: var(--shortcut-radius);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0, #fff 0, #fff0 78%),
    linear-gradient(180deg, #edf7ff, #d4e8fc);
  box-shadow: inset 0 1px #fff, inset 0 -1px #b4d3ef, 0 5px 16px #0b477926;
}
@property --member-edge-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: true;
}
.member-shortcut-edge {
  position: absolute;
  z-index: 1;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  filter: drop-shadow(0 0 3px #28acff99);
}
.member-shortcut-edge::before {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--member-edge-angle),
    #176df000 0deg 200deg,
    #176df00a 220deg,
    #176df06b 250deg,
    #168df2d9 280deg,
    #22c5ff 315deg,
    #96eaff 340deg,
    #efffff 352deg,
    #96eaff00 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  content: "";
}
@keyframes member-edge-run {
  from { --member-edge-angle: 0deg; }
  to { --member-edge-angle: 360deg; }
}
.member-shortcuts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  width: min(640px, calc(100% - 20px));
  margin-inline: auto;
  padding-block: 7px 8px;
}
.member-shortcut {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.member-shortcut img {
  display: block;
  width: min(100%, 88px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px #144b7929);
}
.member-shortcut::after {
  position: absolute;
  inset: auto 28% -3px;
  height: 3px;
  border-radius: 3px;
  background: #1387d8;
  box-shadow: 0 0 8px #65c8ff8c;
  opacity: 0;
  content: "";
  pointer-events: none;
}
.member-shortcut:is(:hover, :focus-visible)::after { opacity: 1; }
.member-shortcut:focus-visible {
  outline: 2px solid #0776c8;
  outline-offset: 2px;
}
.contact-panel { scroll-margin-block-start: calc(var(--site-header-height) + 12px); }
@media (min-width: 941px) {
  .sidebar {
    --sidebar-top: calc(var(--site-header-height) + 12px);
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
@media (min-width: 1280px) {
  .game-shortcuts-rail {
    --rail-top: max(calc(var(--site-header-height) + 12px), clamp(78px, min(calc(77px + 17.7dvh), calc(100dvh - 550px)), 249px));
  }
  .game-shortcuts-rail .quick-categories { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 620px) {
  :root { --site-header-height: 61px; --member-shortcut-height: 99px; }
  .member-shortcut-dock { padding-block: 6px 9px; }
  .member-shortcut-bar { --shortcut-radius: 20px; }
  .member-shortcuts { width: calc(100% - 6px); gap: 3px; padding-block: 5px 7px; }
  .member-shortcut { border-radius: 12px; }
  .member-shortcut img { width: min(100%, 76px); }
}
@media (prefers-reduced-motion: no-preference) {
  .member-shortcut-edge { animation: member-edge-run 4s linear infinite; }
  .member-shortcut img { transition: transform .2s ease, filter .2s ease; }
  .member-shortcut::after { transition: opacity .2s ease; }
  .member-shortcut:is(:hover, :focus-visible) img {
    transform: translateY(-3px);
    filter: drop-shadow(0 5px 5px #0874b94d) brightness(1.04);
  }
  .member-shortcut:active img { transform: scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  .member-shortcut-edge::before { background: #35adf2; }
}
