/* Header and footer for the pages next to the store (vote, rules, support, legal, 404).
   Same look as the store's own top bar and footer. Loaded after styles.css; every class here starts with "r" so nothing in the page content changes. */
.rtop, .rfoot { --r-line: #43307f; --r-deep: #0a0518; --r-mute: #c6bbe8; --r-dim: #9d90c7; --r-gold: #ffd23f;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
.rtop { position: sticky; top: 0; z-index: 40; background: #160c30; box-shadow: 0 2px 0 #2a1b57, 0 8px 20px rgba(5, 2, 14, .5); }
.rtop__in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; max-width: 1240px; margin: 0 auto; padding: 7px 12px; }
.rtop__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; color: #fff; }
.rtop__brand img { display: block; width: 42px; height: 42px; }
.rtop__name { display: none; font-weight: 900; font-size: 17px; letter-spacing: .04em; line-height: 1; }
.rtop__name b { color: var(--r-gold); font-weight: 900; }
.rtop__links { display: flex; gap: 2px; margin-left: auto; }
.rtop__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 12px; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: var(--r-dim); }
.rtop__links a:hover { color: #fff; }
.rtop__links a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, #3a2477, #2a1957); box-shadow: inset 0 0 0 2px #5a41a8; }
.rtop__store { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 12px; background: linear-gradient(180deg, #ffe675, #f7b90f); color: #2a1500; font-weight: 900; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 #a86f00; }
.rtop__store:hover { filter: brightness(1.07); }
.rip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 2px solid var(--r-line); background: var(--r-deep); border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 12px; line-height: 1; color: var(--r-mute); cursor: pointer; min-width: 0; }
.rip svg { color: var(--r-gold); flex: none; }
.rip__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rtop__ip { display: none; }
.rtop a:focus-visible, .rtop button:focus-visible, .rfoot a:focus-visible, .rfoot button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.rfoot { margin-top: 48px; border-top: 2px solid #2a1b57; background: #110a24; color: #fff; }
.rfoot__in { max-width: 1240px; margin: 0 auto; padding: 20px 16px 26px; display: grid; justify-items: center; gap: 14px; }
.rfoot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.rfoot__links a { padding: 10px 12px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--r-mute); border-radius: 10px; }
.rfoot__links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.rfoot__fine { margin: 0; font-size: 12px; color: var(--r-dim); text-align: center; }
.rfoot__fine--legal { font-size: 10.5px; letter-spacing: .03em; max-width: 60ch; }

@media (min-width: 480px) { .rtop__name { display: block; } }
@media (min-width: 760px) {
  .rtop__in { padding: 10px 32px; gap: 14px; flex-wrap: nowrap; }
  .rtop__brand img { width: 50px; height: 50px; }
  .rtop__name { font-size: 20px; }
  .rtop__links { margin: 0 auto; }
  .rtop__links a { font-size: 13.5px; padding: 0 14px; min-height: 44px; }
  .rtop__ip { display: inline-flex; min-height: 40px; }
  .rtop__store { min-height: 44px; }
}
