:root {
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color: #f4f4f4;
  --wallet-gold: #e5c643;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  background: #171717;
  font-size: 13px;
}

a,
button {
  font: inherit;
}

.wallet-app {
  display: flex;
  width: min(100%, 430px);
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  flex-direction: column;
  overflow: hidden;
  background: #676767;
  box-shadow: 0 0 34px #080808;
}

.wallet-header {
  position: relative;
  z-index: 1;
  display: flex;
  height: 70px;
  flex: 0 0 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #303030;
}

.wallet-menu {
  display: flex;
  width: 24px;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.wallet-menu span {
  width: 21px;
  height: 3px;
  border-radius: 3px;
  background: #dedede;
}

.wallet-menu span:last-child {
  width: 15px;
}

.wallet-header h1 {
  position: absolute;
  left: 50%;
  margin: 0;
  font-size: 23px;
  font-weight: 500;
  transform: translateX(-50%);
}

.wallet-notification {
  display: grid;
  width: 26px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f4f4;
}

.wallet-notification svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 9px 24px;
  scrollbar-width: none;
}

.wallet-content::-webkit-scrollbar {
  display: none;
}

.wallet-balance-card {
  position: relative;
  height: 205px;
  overflow: hidden;
  border: 1px solid #e8cd5b;
  border-radius: 6px;
  background: #303030;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
  transition: height 220ms ease;
}

.wallet-balance-card.is-expanded {
  height: 290px;
}

.wallet-summary {
  position: relative;
  height: 112px;
  padding: 31px 29px 0;
}

.wallet-amount {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  flex-direction: column;
  gap: 2px;
  color: #c9c9c9;
}

.wallet-amount > span:first-child {
  font-size: 13px;
}

.wallet-amount strong {
  color: #f5f5f5;
  font-size: clamp(30px, 9vw, 37px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.refresh-balance {
  position: absolute;
  top: 24px;
  left: calc(100% + 9px);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #686868;
  color: #eee;
  font-size: 23px;
  line-height: 1;
}

.wallet-art {
  position: absolute;
  top: 9px;
  right: 21px;
  width: 126px;
  height: 91px;
  transform: rotate(-7deg);
}

.wallet-coin {
  position: absolute;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #ffc934;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff07a, #e69b12 55%, #985113);
  box-shadow: 0 2px 4px #090909;
  color: #814300;
  font-size: 15px;
  font-weight: 800;
}

.coin-one {
  top: 11px;
  right: 16px;
}

.coin-two {
  top: 1px;
  right: 48px;
}

.wallet-slot {
  position: absolute;
  right: 11px;
  bottom: 6px;
  display: flex;
  width: 91px;
  height: 57px;
  align-items: center;
  justify-content: space-evenly;
  border: 3px solid #f2ba25;
  border-radius: 12px;
  background: linear-gradient(145deg, #28211b, #090909 62%, #422812);
  box-shadow: 0 4px 0 #98600c, 0 8px 12px #080808;
  color: #ffc52a;
  transform: skewY(5deg);
}

.wallet-slot span {
  display: grid;
  width: 22px;
  height: 27px;
  place-items: center;
  border: 1px solid #8a641c;
  border-radius: 4px;
  background: linear-gradient(#fff2b0, #e5b629);
  color: #3b2305;
  font-size: 17px;
  font-weight: 800;
}

.wallet-deposit {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 1px 23px 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff1a2, #e7c744 62%, #d1a91f);
  color: #202020;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.wallet-deposit svg {
  width: 22px;
  height: 22px;
  fill: #222;
  stroke: #222;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-more {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: #ffdf62;
  color: #222;
  font-size: 12px;
  cursor: pointer;
}

.wallet-more:focus-visible,
.wallet-quick-actions a:focus-visible,
.wallet-quick-actions button:focus-visible {
  outline: 2px solid #fff3a8;
  outline-offset: -3px;
}

.wallet-quick-actions {
  position: absolute;
  top: 166px;
  right: 23px;
  left: 23px;
  display: grid;
  height: 80px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  pointer-events: none;
}

.wallet-balance-card.is-expanded .wallet-quick-actions {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wallet-quick-actions a,
.wallet-quick-actions button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 2px;
  border: 1px solid #eee;
  border-radius: 5px;
  background: #666;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.wallet-quick-actions svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-quick-actions span {
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
}

.wallet-more .chevron {
  transform: translateY(-2px) rotate(45deg);
}

.wallet-balance-card.is-expanded .wallet-more .chevron {
  transform: translateY(2px) rotate(225deg);
}

.chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #222;
  border-bottom: 2px solid #222;
  transform: translateY(-2px) rotate(45deg);
}

.wallet-promotions {
  display: grid;
  gap: 10px;
  padding: 19px 0 12px;
}

.wallet-promotions h2 {
  margin: 0 0 -6px 15px;
  font-size: 13px;
  font-weight: 700;
}

.wallet-promo {
  position: relative;
  display: flex;
  min-height: 136px;
  overflow: hidden;
  align-items: center;
  border: 1px solid #ededed;
  border-radius: 6px;
  background: #230400;
  isolation: isolate;
}

.wallet-promo::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 50%, rgba(255, 175, 0, 0.88), transparent 36%),
    linear-gradient(105deg, #280100 0%, #580600 47%, #d32708 100%);
  content: "";
}

.promo-copy {
  z-index: 1;
  display: flex;
  width: 66%;
  flex-direction: column;
  gap: 3px;
  padding: 9px 0 8px 20px;
  color: #fff;
  font-size: 10px;
  line-height: 1.18;
  text-shadow: 0 1px 2px #210000;
}

.promo-copy > strong {
  margin-bottom: 6px;
  color: #ffdf00;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.02;
}

.promo-copy b {
  font-size: 11px;
}

.promo-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 45%;
  overflow: hidden;
  background:
    linear-gradient(132deg, transparent 0 18%, rgba(255, 228, 101, 0.88) 19% 21%, transparent 22% 35%, rgba(255, 255, 255, 0.65) 36% 37%, transparent 38%),
    radial-gradient(ellipse at 65% 50%, #ffed7c 0 4%, #f47b10 5% 11%, #891201 39%, transparent 72%);
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 18% 50%);
}

.promo-star {
  position: absolute;
  color: #ffe934;
  text-shadow: 0 1px 7px #ff5a00;
}

.star-one {
  top: -12px;
  left: 10px;
  font-size: 51px;
}

.star-two {
  top: 14px;
  right: 12px;
  font-size: 27px;
}

.promo-medallion {
  position: absolute;
  top: 18px;
  right: 24px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 4px double #fff080;
  border-radius: 50%;
  background: radial-gradient(circle, #f6c128, #8d2100 68%);
  box-shadow: 0 0 12px #ffc12e;
  color: #fff2a0;
  font-size: 32px;
  font-weight: 800;
}

.promo-visual > b {
  position: absolute;
  right: 5px;
  bottom: 6px;
  color: #ffdf13;
  font-size: 10px;
  font-style: italic;
  text-shadow: 1px 1px #820700;
}

.promo-evolution::before {
  background:
    radial-gradient(ellipse at 75% 55%, rgba(255, 175, 0, 0.94), transparent 35%),
    linear-gradient(105deg, #210000 0%, #4b0501 52%, #c51b05 100%);
}

.promo-brand {
  margin-bottom: 7px;
  color: #f4f4f4;
  font-size: 12px;
  font-weight: 700;
}

.promo-brand i {
  color: #ffe431;
  font-size: 13px;
  font-style: normal;
}

.promo-evolution .promo-copy > strong {
  font-size: 27px;
}

.promo-cashback {
  position: absolute;
  right: -12px;
  bottom: -11px;
  color: #ffdf2c;
  font-size: 33px;
  font-weight: 800;
  font-style: italic;
  text-shadow: 1px 2px 2px #8d1d00, 0 0 8px #fff0a0;
  transform: rotate(-7deg);
}

.promo-evolution-alt::before {
  background:
    radial-gradient(ellipse at 75% 55%, rgba(246, 162, 0, 0.88), transparent 35%),
    linear-gradient(105deg, #240100 0%, #650801 52%, #ea3710 100%);
}

.promo-evolution-alt .promo-visual {
  filter: hue-rotate(-8deg) brightness(1.08);
}

.wallet-footer {
  z-index: 2;
  display: grid;
  height: 70px;
  flex: 0 0 70px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #353535;
  background: #171717;
}

.wallet-footer a,
.wallet-footer button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.wallet-footer svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-footer .is-active {
  color: #d5b22d;
}

.wallet-footer a span,
.wallet-footer button span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
}

@media (max-width: 360px) {
  .wallet-summary {
    padding-left: 22px;
  }

  .wallet-art {
    right: 10px;
    transform: scale(0.85) rotate(-7deg);
    transform-origin: right top;
  }

  .promo-copy {
    padding-left: 12px;
    font-size: 9px;
  }

  .promo-copy > strong {
    font-size: 17px;
  }

  .promo-evolution .promo-copy > strong {
    font-size: 23px;
  }
}
