:root {
  --bg: #e85d00;
  --text: #fff8ee;
  --text-dim: rgba(255,248,238,0.75);
  --line: rgba(255,255,255,0.22);
}

[data-theme="navy"]   { --bg: #0a1220; }

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
  padding-bottom: 100px;
}

.page {
  width: min(760px, 100% - 28px);
  margin: 22px auto 38px;
}

.hero {
  text-align: center;
  padding: 12px 4px 14px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

h1 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.warn-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(220, 38, 38, 0.4);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.warn-tag {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #dc2626 0%, #330808 100%);
  color: #fff;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.warn-text {
  flex: 1;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
  color: #dc2626;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.4;
  overflow: hidden;
}

#warn-inner {
  transition: opacity 0.4s ease;
}

.panel {
  background: rgba(128,128,128,0.1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.panel + .panel {
  margin-top: 12px;
}

h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.03em;
}

/* ── Social bar ── */
.social-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 14px;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--text-dim);
  background: rgba(128,128,128,0.1);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.social-btn:hover {
  background: rgba(128,128,128,0.22);
  border-color: var(--text);
  color: var(--text);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.count {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Deposit filter bar ── */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 0 10px;
}

.filter-btn {
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}


.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.platform-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border-radius: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(0, 0, 0, 0.25);
  border-bottom: 3px solid color-mix(in srgb, var(--platform-color, #c0392b) 40%, #000 60%);
  background:
    linear-gradient(175deg, rgba(255,255,255,0.22) 0%, transparent 28%),
    linear-gradient(155deg,
      color-mix(in srgb, var(--platform-color, #c0392b) 95%, #fff 5%) 0%,
      color-mix(in srgb, var(--platform-color, #c0392b) 85%, #000 15%) 55%,
      color-mix(in srgb, var(--platform-color, #c0392b) 72%, #000 28%) 100%);
  padding: 12px 13px 10px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.12) inset,
    0 -2px 8px rgba(0,0,0,0.3) inset,
    0 10px 24px color-mix(in srgb, var(--platform-color, #c0392b) 40%, transparent 60%),
    0 2px 4px rgba(0,0,0,0.4);
  transform: perspective(800px) rotateX(1deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.platform-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 45%);
  pointer-events: none;
  border-radius: inherit;
}

.platform-copy {
  display: grid;
  gap: 1px;
  align-self: center;
}

.platform-top {
  display: block;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff8e9;
}

.platform-brand {
  display: block;
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.platform-sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff4dd;
}

.platform-link:hover {
  transform: perspective(800px) rotateX(0deg) translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.15) inset,
    0 -2px 8px rgba(0,0,0,0.3) inset,
    0 18px 36px color-mix(in srgb, var(--platform-color, #c0392b) 50%, transparent 50%),
    0 4px 8px rgba(0,0,0,0.45);
}

@keyframes wiggle {
  0%   { transform: rotate(0deg) scale(1); }
  15%  { transform: rotate(-8deg) scale(1.08); }
  30%  { transform: rotate(7deg) scale(1.06); }
  45%  { transform: rotate(-5deg) scale(1.04); }
  60%  { transform: rotate(4deg) scale(1.02); }
  75%  { transform: rotate(-2deg) scale(1.01); }
  100% { transform: rotate(0deg) scale(1); }
}

.platform-logo-wrap {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.38), rgba(0, 0, 0, 0.16));
  border: 2px solid color-mix(in srgb, var(--platform-color, #ffffff) 72%, #ffffff 28%);
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.22), 0 6px 14px rgba(0, 0, 0, 0.24);
  flex-shrink: 0;
  animation: wiggle 3.5s ease-in-out infinite;
  animation-delay: calc(var(--wi, 0) * 0.18s);
}

.platform-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

.platform-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.platform-go {
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: color-mix(in srgb, var(--platform-color, #ffffff) 72%, #000000 28%);
  flex-shrink: 0;
}

.platform-launch-bar {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e8fff4;
  background: rgba(0, 89, 94, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ── Bottom Nav Bar ── */
.bottom-nav-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 18px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  width: max-content;
  max-width: 95vw;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #555;
  font-size: 0.58rem;
  font-weight: 800;
  transition: all 0.2s ease;
  padding: 5px;
  border-radius: 11px;
  min-width: 54px;
}

.nav-item:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  color: #0a1220;
}

.nav-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  margin-bottom: 3px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.2s ease;
}

.nav-item .main-icon {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 11px;
  margin-bottom: -11px;
  transform: translateY(-9px);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.2s ease;
}

.nav-item:hover img { transform: scale(1.1); }
.nav-item:hover .main-icon { transform: translateY(-9px) scale(1.1); }

@media (max-width: 620px) {
  .bottom-nav-bar {
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 7px 0;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
    gap: 0;
    justify-content: space-evenly;
  }
  .nav-item {
    min-width: auto;
    flex: 1;
    padding: 5px 0;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(760px, 100% - 16px);
    margin: 14px auto 22px;
  }

  .panel {
    padding: 11px;
  }

  .platform-go {
    font-size: 11px;
    padding: 5px 8px;
  }

  .platform-logo-wrap {
    width: 100px;
    height: 100px;
  }

  .platform-logo {
    width: 84px;
    height: 84px;
  }

  .platform-top {
    font-size: 12px;
  }

  .platform-brand {
    font-size: clamp(24px, 9vw, 33px);
  }

  .platform-sub {
    font-size: 12px;
  }
}
