:root {
  --black: #080604;
  --black-2: #100b06;
  --gold-deep: #87500e;
  --gold: #d69a2e;
  --gold-bright: #f5c85f;
  --gold-pale: #fff0b6;
  --gold-ink: #241604;
  --line: rgba(238, 190, 91, .7);
  --glow: rgba(242, 177, 54, .48);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: #fff4d8;
  background:
    radial-gradient(ellipse at 50% 5%, rgba(146, 85, 15, .23), transparent 38rem),
    linear-gradient(180deg, #160d05 0%, #080604 48%, #030302 100%);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.page {
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 94px;
  background: linear-gradient(180deg, rgba(25, 14, 5, .42), rgba(0,0,0,.18));
}
.topbar {
  min-height: 76px;
  margin: 12px clamp(10px, 3.8vw, 34px) 10px;
  padding: 12px clamp(12px, 3vw, 26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(110deg, rgba(47, 25, 7, .98), rgba(12, 8, 4, .98) 62%, rgba(48, 28, 8, .96));
  box-shadow: 0 0 16px rgba(208, 139, 31, .16), inset 0 1px 0 rgba(255, 232, 174, .13);
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  display: block;
  width: clamp(36px, 6vw, 50px);
  height: clamp(36px, 6vw, 50px);
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 192, 64, .38));
}
.brand-name {
  color: #ffdf91;
  font-size: clamp(17px, 3.4vw, 27px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.8px;
  text-shadow: 0 2px 10px rgba(255, 185, 54, .28);
}
.brand-name span { color: #fff1bf; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.gold-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-ink);
  font-weight: 900;
  letter-spacing: 1.1px;
  text-align: center;
  background: linear-gradient(115deg, #8c530d 0%, #d99a29 22%, #fff0b2 43%, #c98217 65%, #ffe08a 82%, #9b5b0d 100%);
  background-size: 240% 100%;
  border: 1px solid #ffe8a2;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.88),
    inset 0 -3px 7px rgba(91,48,0,.3),
    0 0 9px rgba(238,174,57,.64),
    0 0 22px rgba(238,174,57,.25),
    0 5px 13px rgba(0,0,0,.48);
  animation: gold-breathe 2.6s ease-in-out infinite, gold-gradient 7s linear infinite;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.gold-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  left: -48%;
  width: 29%;
  height: 220%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13) 25%, rgba(255,255,235,.92) 50%, rgba(255,225,151,.28) 75%, transparent);
  filter: blur(1px);
  animation: gold-sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
.gold-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.13) saturate(1.08);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.95),
    0 0 13px rgba(255,231,164,.92),
    0 0 30px rgba(242,177,54,.62),
    0 7px 17px rgba(0,0,0,.55);
}
.gold-button:active { transform: translateY(0) scale(.985); }
.gold-button:focus-visible, .nav-item:focus-visible { outline: 2px solid #fff0b6; outline-offset: 4px; }
.top-actions .gold-button {
  min-width: clamp(78px, 17vw, 116px);
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 13px;
  font-size: clamp(11px, 2vw, 14px);
}
.top-login { animation-delay: .45s, .45s; }
.top-login::before { animation-delay: .8s; }

.banner-wrap {
  margin: 0 clamp(10px, 3.8vw, 34px);
  overflow: hidden;
  border: 2px solid rgba(255, 220, 143, .82);
  border-radius: 13px;
  line-height: 0;
  background: #080503;
  box-shadow: 0 0 13px rgba(230, 159, 44, .24), 0 10px 25px rgba(0,0,0,.42);
}
.banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.main-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  margin: 17px clamp(10px, 3.8vw, 34px) 0;
}
.wide-button {
  width: 100%;
  min-height: 51px;
  padding: 10px 16px;
  border-radius: 13px;
  font-size: clamp(14px, 2.5vw, 18px);
  letter-spacing: 1.7px;
}
.wide-button:nth-child(2) { animation-delay: .35s, .35s; }
.wide-button:nth-child(3) { animation-delay: .7s, .7s; }
.wide-button:nth-child(4) { animation-delay: 1.05s, 1.05s; }
.wide-button:nth-child(2)::before { animation-delay: .5s; }
.wide-button:nth-child(3)::before { animation-delay: 1s; }
.wide-button:nth-child(4)::before { animation-delay: 1.5s; }

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 28px 12px 18px;
  color: #bda477;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-align: center;
}
.footer-separator { color: var(--gold-bright); }

.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 980px);
  min-height: 76px;
  padding: 8px 6px max(8px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, rgba(19, 12, 5, .97), #050403);
  border-top: 1px solid rgba(225, 168, 66, .6);
  box-shadow: 0 -5px 22px rgba(0,0,0,.5), 0 -2px 12px rgba(226,157,43,.10);
  backdrop-filter: blur(12px);
}
.nav-item {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #e8c779;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  border-right: 1px solid rgba(208, 158, 70, .18);
  transition: color .2s ease, text-shadow .2s ease;
}
.nav-item:last-child { border-right: 0; }
.nav-item:hover {
  color: #fff1bd;
  text-shadow: 0 0 10px rgba(255, 204, 89, .8), 0 0 20px rgba(230, 158, 42, .45);
}
.nav-icon-img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 189, 57, .38));
}

@keyframes gold-sweep {
  0% { left: -48%; opacity: 0; }
  12% { opacity: .9; }
  62% { opacity: .85; }
  100% { left: 130%; opacity: 0; }
}
@keyframes gold-breathe {
  0%, 100% { box-shadow: inset 0 1px 1px rgba(255,255,255,.75), inset 0 -3px 7px rgba(91,48,0,.3), 0 0 8px rgba(238,174,57,.48), 0 0 16px rgba(238,174,57,.18), 0 5px 13px rgba(0,0,0,.48); }
  50% { box-shadow: inset 0 1px 2px rgba(255,255,255,.95), inset 0 -3px 7px rgba(91,48,0,.25), 0 0 13px rgba(255,225,143,.9), 0 0 27px rgba(238,174,57,.42), 0 5px 15px rgba(0,0,0,.5); }
}
@keyframes gold-gradient {
  from { background-position: 0% 50%; }
  to { background-position: 240% 50%; }
}

@media (min-width: 700px) {
  .topbar { min-height: 86px; }
  .main-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .wide-button { min-height: 56px; }
  .bottom-nav { min-height: 82px; }
}
@media (max-width: 420px) {
  .topbar { min-height: 66px; border-radius: 15px; }
  .brand { gap: 5px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
  .top-actions { gap: 6px; }
  .top-actions .gold-button { min-width: 68px; min-height: 33px; padding: 6px 9px; font-size: 10px; border-radius: 11px; }
  .banner-wrap { border-radius: 13px; }
  .wide-button { min-height: 49px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
