.brand-wall {
  --ink: #252330;
  --lime: #ccff00;
  --violet: #9333ff;
  --lilac: #bd8aff;
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background: #282331 url('/assets/backgrounds/concrete-wall.webp') center top / 100% auto repeat-y;
}

.welcome-redesign {
  display: flex;
  min-height: max(100svh, 34rem);
  flex-direction: column;
  overflow: hidden;
  background-size: cover;
}

.welcome-heading {
  z-index: 1;
  padding: max(clamp(3rem, 8.5svh, 6.5rem), env(safe-area-inset-top)) 5% 0;
  text-align: center;
}

.welcome-wordmark {
  display: block;
  width: 79%;
  height: auto;
  margin: 0 auto 1.4cqw;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 2px #140d18c7);
}

.welcome-motivation {
  display: grid;
  place-items: center;
  min-height: 33cqw;
  margin: 0 -2%;
  padding: 0 3% 5cqw;
  color: #211a2b;
  background: url('/assets/graffiti/lime-swipe.webp') center / 100% auto no-repeat;
  font: italic 1000 clamp(2rem, 12.2cqw, 3.65rem)/1 Arial, sans-serif;
  letter-spacing: -.075em;
  text-indent: -.06em;
  text-shadow: 1px 0 currentColor;
  transform: rotate(-10deg);
}

.welcome-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.welcome-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 29%;
  background: linear-gradient(transparent, #211727c2);
}

.welcome-character {
  position: absolute;
  top: max(62cqw, 33%);
  width: min(109%, 72svh);
  max-width: none;
  height: auto;
  right: -6%;
  transform: scaleX(-1);
  filter: drop-shadow(0 0 14px #120916cf);
}

.welcome-crown {
  position: absolute;
  top: 43%;
  left: 8%;
  transform: rotate(-10deg);
}

.welcome-crown .crown,
.dash-crown .crown {
  position: static;
  display: block;
  transform: none;
}

.welcome-crown svg { width: 18cqw; height: auto; }

.welcome-footer {
  position: relative;
  margin-top: auto;
  padding: 1rem 8% calc(1.5rem + env(safe-area-inset-bottom));
}

.welcome-start {
  width: 100%;
  min-height: clamp(3.4rem, 14cqw, 4rem);
  border: 1px solid #e0bcff;
  border-radius: 99px;
  background: linear-gradient(100deg, #9d39ff, #7424d5 82%);
  box-shadow: 0 4px 15px #160c28a6, inset 0 1px 8px #c887ff80;
  color: white;
  font-size: 1.275rem;
  font-weight: 800;
}

.dash {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: max(12px, env(safe-area-inset-top)) 13px calc(95px + env(safe-area-inset-bottom));
  background-size: 100% max(100%, 100svh);
  background-repeat: no-repeat;
}

.dash-header {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 7px;
  min-height: 66px;
  padding: 2px 0 7px;
}

.dash-header h1 {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  text-align: center;
}

.dash-header h1 img {
  display: block;
  width: min(100%, 285px);
  height: auto;
  filter: drop-shadow(0 3px 3px #150f22);
}

.dash-header h1 span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: clamp(.78rem, 3.65cqw, 1rem);
  font-weight: 900;
  letter-spacing: .13em;
}

.dash-header h1 span::before,
.dash-header h1 span::after {
  content: "";
  width: 1.2em;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.dash-demo {
  justify-self: start;
  padding: 4px 5px;
  border: 1px solid #c3a2e27a;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-size: .625rem;
  font-weight: 900;
  letter-spacing: .015em;
}

.dash-bell, .dash-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid #bd8aff6b;
  border-radius: 12px;
  background: #252330e8;
}

.dash-bell svg, .dash-stat svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-wall #feedback:empty { display: none; }

.dash-balance {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 17px 15px 14px;
  border: 1px solid #ecff85;
  border-radius: 21px;
  background: #d9ff26 url('/assets/textures/lime.webp') center / auto 60% repeat;
  box-shadow: 0 5px 0 #752ed080, 0 11px 17px #110e19a6;
  color: #211b2b;
}

.dash-balance::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(105deg, #ddff38cc 10%, #dbff22a0 55%, #a5d12c33);
}

.dash-character {
  position: absolute;
  z-index: -1;
  top: -1%;
  right: -6%;
  width: auto;
  height: 138%;
  transform: scaleX(-1);
  filter: drop-shadow(0 3px 4px #2712397d);
}

.dash-crown {
  position: absolute;
  top: 5%;
  right: 4%;
  transform: rotate(11deg);
}

.dash-crown svg {
  width: 11cqw;
  height: auto;
  color: var(--lime);
  filter: drop-shadow(1px 2px 1px #35203fd1);
}

.dash-balance-body { width: 61%; }

.dash-balance h2 {
  margin: 0;
  font-size: clamp(1.12rem, 5.35cqw, 1.55rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.08;
}

.dash-amount {
  margin: 4px 0 10px;
  font-size: clamp(2.65rem, 14.8cqw, 4.3rem);
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  font-style: italic;
  letter-spacing: -.072em;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.dash-progress-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 7px;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 900;
}

.dash-progress-label span + span {
  padding: 1px 5px;
  background: #252330;
  color: #fff;
  transform: skewX(-6deg);
}

.dash .bar {
  height: 13px;
  border: 2px solid #252330;
  background: #514360;
}

.dash .bar span { background: linear-gradient(90deg, #d8ff23, #aeef00); }

.dash-withdraw {
  min-height: 44px;
  margin-top: 9px;
  padding: 5px 10px;
  border: 1px solid #252330;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
}

.dash-withdraw:disabled {
  opacity: 1;
  border-color: #504660;
  background: #49414e;
  color: #ece6ef;
}

.dash-upload {
  display: grid;
  grid-template-columns: clamp(52px, 16cqw, 76px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 8px 12px;
  border: 2px solid #eaa5ff;
  border-radius: 17px;
  background: #8234ed url('/assets/textures/violet.webp') center / auto 100% repeat;
  box-shadow: inset 0 0 19px #e26dffbf, 0 3px 13px #a137f396;
  text-align: left;
}

.dash-upload img { display: block; width: 100%; height: auto; }

.dash-upload strong {
  display: block;
  font-size: clamp(1.25rem, 6.05cqw, 1.8rem);
  font-weight: 950;
  line-height: 1.08;
  text-shadow: 0 2px 5px #42146e;
}

.dash-upload small {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 5px;
  background: var(--lime);
  color: var(--ink);
  font-size: clamp(.72rem, 3.3cqw, .88rem);
  font-weight: 850;
  line-height: 1.1;
  transform: rotate(-2deg);
}

.dash-stats, .dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dash-stat, .dash-shortcut, .dash-tip {
  --accent: var(--lilac);
  border: 1px solid var(--accent);
  border-radius: 13px;
  background: linear-gradient(143deg, #493459, #252330 76%);
  box-shadow: 0 3px 10px #170d225e, inset 0 0 12px #7529be18;
  text-align: left;
}

.dash-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 62px;
  padding: 7px 5px;
  font-size: clamp(.62rem, 2.8cqw, .82rem);
  font-weight: 800;
  line-height: 1.14;
}

.dash-stat strong { display: block; margin-top: 2px; font-size: 1.44rem; line-height: 1; }

.dash-stat svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: #241b32;
  box-shadow: 0 0 7px color-mix(in srgb, var(--accent), transparent 32%);
  color: var(--accent);
}

.dash-stat--approved, .dash-shortcut--bonuses { --accent: var(--lime); }
.dash-stat--rejected { --accent: #ff8ab9; }
.dash-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dash-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px 11px;
  font-size: clamp(.9rem, 4.03cqw, 1.22rem);
  font-weight: 850;
  line-height: 1.12;
}

.dash-shortcut--bonuses, .dash-stat--approved {
  background: linear-gradient(145deg, #41472c, #252330 75%);
}

.dash-shortcut .icon { width: 27px; height: 27px; color: var(--accent); }

.dash-shop.card.menu {
  justify-content: flex-start;
  gap: 10px;
  border-color: var(--lime);
  background: linear-gradient(145deg, #41472c, #252330 75%);
  font-size: clamp(1.05rem, 4.5cqw, 1.35rem);
  line-height: 1.12;
}

.dash-shop strong { font-weight: 850; }
.dash-shop .icon {
  width: 1.3em;
  height: 1.3em;
  flex: none;
  color: var(--lime);
  filter: drop-shadow(0 0 5px #ccff0055);
}

.dash-tip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  background: #39294adb;
  color: #f4e4ff;
  font-size: .79rem;
}

.dash-tip .icon { flex: none; color: #e4b9ff; }
.dash-details h2 { margin: 12px 0 8px; font-size: 1rem; }

.dash + .nav {
  bottom: max(8px, env(safe-area-inset-bottom));
  width: min(calc(100% - 22px), 458px);
  padding: 5px 4px;
  border-color: #a28ea8;
  border-radius: 17px;
  background: #252330f5;
  box-shadow: 0 4px 15px #140d22c4;
}

.dash + .nav .active {
  border: 1px solid #b6df374d;
  border-radius: 11px;
  background: #c5ef171c;
}

.dash-notifications {
  width: min(90%, 415px);
  max-height: min(75svh, 30rem);
  padding: 15px;
  border: 1px solid var(--lilac);
  border-radius: 17px;
  background: #252330;
  color: #fff;
}

.dash-notifications::backdrop { background: #110b1aba; }
.dash-notifications h2 { margin: 0; }
.dash-notifications > .row { margin-bottom: 12px; }
.dash-notifications > p:last-child { margin-bottom: 0; }
.dash-close { font-size: 1.3rem; }
.welcome-start:active, .dash button:not(:disabled):active { transform: scale(.98); }

@media (prefers-reduced-motion: no-preference) {
  :is(.welcome-heading, .welcome-art, .dash-header, .dash-amount) { animation: brand-appear .32s ease-out both; }
  :is(.dash button, .welcome-start) { transition: transform .13s ease, filter .13s ease; }
  :is(.dash button:not(:disabled), .welcome-start):hover { filter: brightness(1.12); }
  .dash .bar span { animation: brand-progress .53s ease-out both; transform-origin: left; }
  @keyframes brand-appear { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0; } }
  @keyframes brand-progress { from { scale: 0 1; } to { scale: 1 1; } }
}

@media (max-width: 350px) {
  .dash { gap: 10px; padding-inline: 10px; }
  .dash-stats, .dash-shortcuts { gap: 6px; }
  .dash-stat svg { flex-basis: 18px; width: 18px; height: 18px; padding: 2px; }
  .dash-balance-body { width: 65%; }
}

@media (max-height: 600px) {
  .welcome-heading { padding-top: max(1.8rem, env(safe-area-inset-top)); }
  .welcome-crown { display: none; }
}
