.popaye-header, .popaye-footer {
  box-sizing: border-box;
  font: 400 12px/1.15 Arial, "Microsoft YaHei", sans-serif;
  color: #fff7de;
}
.popaye-header *, .popaye-footer * { box-sizing: border-box; }
.popaye-header a, .popaye-footer a { color: inherit; text-decoration: none; }
.popaye-header a:focus-visible, .popaye-footer a:focus-visible {
  outline: 2px solid #fff1a2;
  outline-offset: -2px;
}
.home { container-type: inline-size; }
.popaye-header {
  display: grid;
  grid-template-columns: clamp(27px,8.5cqw,52px) minmax(0,1fr) minmax(0,1.23fr) repeat(2, clamp(27px,8.5cqw,52px));
  align-items: center;
  gap: 1.35cqw;
  min-height: 12.15cqw;
  padding: 0.65cqw 1.55cqw;
  background: #090b08;
  border-bottom: 1px solid #87602b;
}
.popaye-header a { min-width: 0; }
.popaye-header img { display: block; max-width: 100%; }
.popaye-header-icon img { width: 100%; max-height: 10cqw; object-fit: contain; }
.popaye-header-logo img { width: 100%; max-height: 10.85cqw; object-fit: contain; object-position: left center; }
.popaye-header-wallet {
  display: grid;
  align-content: center;
  gap: 0.55cqw;
  padding: 0.5cqw 2.8cqw;
  border: 1px solid #ba9450;
  border-radius: 2cqw;
  background: linear-gradient(#0b0d07,#101b11);
  box-shadow: inset 0 0 7px #ae74235c;
}
.popaye-header-balance {
  display: grid;
  grid-template-columns: 4cqw minmax(0, 1fr);
  align-items: center;
  gap: 1.25cqw;
}
.popaye-header-balance img { width: 100%; mix-blend-mode: screen; }
.popaye-header-balance span { min-width: 0; }
.popaye-header-balance small, .popaye-header-balance strong { display: block; line-height: 1; white-space: nowrap; }
.popaye-header-balance small { font-size: clamp(8px,2cqw,13px); color: #fff0ca; }
.popaye-header-balance strong { font-size: clamp(10px,2.7cqw,18px); color: #fff6df; overflow: hidden; text-overflow: ellipsis; }
.popaye-header .popaye-header-deposit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqw;
  padding: 0.48cqw 0.25cqw;
  border-radius: 100px;
  border: 1px solid #fbe092;
  background: linear-gradient(#fff49e,#f6bb37 62%,#b67714);
  color: #1b1204;
  text-align: center;
  font-size: clamp(9px,2.75cqw,18px);
  font-weight: 800;
  line-height: 1.03;
}
.popaye-header-deposit img { width: 3.55cqw; height: 3.55cqw; }
.popaye-footer {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 2px 3px max(2px, env(safe-area-inset-bottom));
  border: 1px solid transparent;
  border-radius: 2.6cqw;
  background: linear-gradient(#090a06,#0b180d) padding-box,
    linear-gradient(105deg,#9e6529,#ffe5a1 28%,#9d692b 54%,#ffe2a0 79%,#9d692b) border-box;
  isolation: isolate;
  box-shadow: inset 0 0 8px #e6a54a36, 0 0 4px #f0b65024;
}
.popaye-footer-item {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 1.8cqw;
}
.popaye-footer-item img {
  display: block;
  width: 30px;
  height: 23px;
  object-fit: contain;
}
.popaye-footer-item small { text-align: center; font-size: 9px; line-height: 1.1; white-space: nowrap; }
.popaye-footer-item[aria-current="page"] {
  border-color: #9dbe4e;
  background: linear-gradient(#152310,#0a401b);
  box-shadow: inset 0 0 9px #7cbb5069, 0 0 5px #78d33748;
}
.home .popaye-header, .home .popaye-footer { position: absolute; inset-inline: 0; z-index: 4; }
.home .popaye-header { top: 0; height: 6.875%; min-height: 0; }
.home .popaye-footer { bottom: 0; height: 7.03125%; min-height: 0; padding-block: 1px; }
.home .popaye-footer-item { min-height: 0; }
@media (max-width: 340px) {
  .popaye-header { gap: 4px; }
  .popaye-header-wallet { padding-inline: 5px; }
  .home .popaye-footer-item img { height: 19px; }
  .home .popaye-footer-item small { font-size: 8px; }
}
