@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap");

:root {
  --flag-red: #e31c3d;
  --flag-white: #f4f6fb;
  --flag-blue: #3d7bff;
  --flag-red-dim: #9a1830;
  --flag-blue-dim: #2a56b8;
  --cz-bg: #000000;
  --cz-line: color-mix(in oklab, var(--flag-white) 16%, transparent);
  --cz-glow-red: 0 0 10px color-mix(in oklab, var(--flag-red) 45%, transparent);
  --cz-glow-blue: 0 0 10px color-mix(in oklab, var(--flag-blue) 40%, transparent);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--cz-bg);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.cz-app {
  position: relative;
  min-height: 100dvh;
  overflow: visible;
  color: var(--flag-white);
  font-family: "Caveat", cursive;
  background: var(--cz-bg);
}

.cz-app,
.cz-app * {
  font-family: "Caveat", cursive;
}

.cz-stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.cz-star {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: cz-twinkle var(--t, 4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  left: var(--x, 10%);
  top: var(--y, 10%);
  width: var(--s, 2px);
  height: var(--s, 2px);
}

.cz-star.is-red {
  background: var(--flag-red);
}
.cz-star.is-white {
  background: var(--flag-white);
}
.cz-star.is-blue {
  background: var(--flag-blue);
}

@keyframes cz-twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: scale(1);
  }
}

.cz-nav,
.cz-page,
.cz-foot {
  position: relative;
  z-index: 2;
}

.cz-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.45));
  border-bottom: 1px solid var(--cz-line);
}

.cz-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--flag-white);
  font-family: "Caveat", cursive;
  font-size: 22px;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.cz-nav button:hover .fw .w {
  filter: brightness(1.12);
}

.cz-nav button.is-on {
  background: #000;
  border-color: var(--flag-red);
  box-shadow: var(--cz-glow-red);
}

.cz-page {
  display: none !important;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 0;
  min-height: 160vh;
}

.cz-page.is-on {
  display: block !important;
}

.cz-hero {
  text-align: center;
  padding-top: 24px;
}

.cz-mascot-wrap {
  position: relative;
  display: inline-block;
  margin: 8px auto 0;
}

.cz-mascot {
  position: relative;
  z-index: 1;
  width: 240px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px color-mix(in oklab, var(--flag-red) 35%, transparent))
    drop-shadow(0 0 28px color-mix(in oklab, var(--flag-blue) 28%, transparent));
}

.cz-name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  margin: 28px auto 0;
  padding: 0 8px 8px;
  gap: 16px;
}

.cz-names {
  text-align: center;
}

.cz-names h1 {
  font-family: "Caveat", cursive;
  font-size: 72px;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.02em;
}

.cz-aka {
  margin: 10px 0 0;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.cz-x-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cz-body {
  font-size: 18px;
  line-height: 1.85;
  max-width: 620px;
  margin: 56px auto 0;
  text-align: left;
  position: relative;
  z-index: 2;
}

.cz-x-btn {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #000;
  border: 1px solid var(--flag-white);
  text-decoration: none;
  color: var(--flag-white);
}

.cz-x-btn svg {
  width: 34px;
  height: 34px;
  display: block;
}

.cz-x-btn:hover {
  transform: translateY(-1px);
  border-color: var(--flag-red);
}

.cz-x-caption {
  margin: 0;
  max-width: 130px;
  text-align: center;
  font-family: "Caveat", cursive;
  font-size: 18px;
  line-height: 1.15;
}

.cz-body p {
  margin: 0 0 22px;
}

.cz-wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 999px;
  background: #000;
  border: 1px solid var(--flag-blue);
  font-family: "Caveat", cursive;
  font-size: 20px;
  cursor: pointer;
  color: var(--flag-white);
  box-shadow: var(--cz-glow-blue);
}

.cz-wallet span {
  color: var(--flag-red);
  font-family: "Caveat", cursive;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.cz-glass {
  background: #050505;
  border: 1px solid var(--cz-line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
}

.cz-glass h2 {
  font-family: "Caveat", cursive;
  font-size: 34px;
  margin: 0 0 8px;
}

.cz-note {
  position: relative;
  border-radius: 22px;
  padding: 28px 24px;
  margin-bottom: 22px;
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--cz-line);
}

.cz-note h2 {
  font-family: "Caveat", cursive;
  font-size: 40px;
  margin: 0 0 6px;
}

.cz-carve {
  font-family: "Caveat", cursive;
  font-size: 28px;
  line-height: 1.4;
  margin: 0;
}

.cz-note .when {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--flag-blue);
  margin-bottom: 6px;
}

.cz-empty {
  text-align: center;
  padding: 22px 10px;
  font-family: "Caveat", cursive;
  font-size: 22px;
}

.cz-trade {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cz-line);
  text-decoration: none;
  color: inherit;
}

.cz-trade:last-child {
  border-bottom: 0;
}

.cz-trade img,
.cz-trade .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--flag-blue) 18%, transparent);
  object-fit: cover;
  flex-shrink: 0;
}

.cz-trade .sym {
  font-weight: 600;
  font-size: 20px;
}

.cz-trade .sym em {
  font-style: normal;
  font-weight: 400;
  margin-left: 6px;
  font-size: 13px;
  color: var(--flag-blue);
}

.cz-trade .sub {
  font-size: 16px;
  color: var(--flag-blue);
  text-transform: lowercase;
}

.cz-trade .usd {
  margin-left: auto;
  text-align: right;
  font-family: "Caveat", cursive;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cz-trade .usd b {
  font-weight: 600;
  color: var(--flag-white);
}

.cz-trade .usd .up {
  color: var(--flag-blue);
}

.cz-trade .usd .dn {
  color: var(--flag-red);
}

.cz-sol {
  text-align: center;
  padding: 28px 12px 18px;
}

.cz-sol span {
  display: block;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--flag-blue);
}

.cz-sol b {
  display: block;
  font-size: 42px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--flag-white);
}

.cz-sol i {
  display: block;
  font-style: italic;
  margin-top: 4px;
  color: var(--flag-red);
  font-family: "Caveat", cursive;
  font-size: 22px;
}

.cz-trench {
  margin-top: 80px;
  min-height: 28vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  font-family: "Caveat", cursive;
  font-size: 22px;
}

.cz-foot {
  text-align: center;
  font-size: 12px;
  padding: 0 20px 40px;
}

/* flag word cycle — red / white / blue */
.fw .w:nth-of-type(3n + 1) {
  color: var(--flag-red);
}
.fw .w:nth-of-type(3n + 2) {
  color: var(--flag-white);
}
.fw .w:nth-of-type(3n + 3) {
  color: var(--flag-blue);
}

.fw-lg .w {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .cz-star {
    animation: none;
    opacity: 0.45;
  }
}

@media (max-width: 640px) {
  .cz-names h1 {
    font-size: 58px;
  }
  .cz-mascot {
    width: 196px;
  }
  .cz-x-btn {
    width: 64px;
    height: 64px;
  }
  .cz-page {
    padding: 28px 16px 0;
  }
}
