:root {
  --sky: #8fd0ff;
  --sky-deep: #4ea7ee;
  --ink: #0d1c2c;
  --muted: rgba(13, 28, 44, 0.68);
  --line: rgba(13, 28, 44, 0.2);
  --hot: #204b23;
  --panel: rgba(255, 255, 255, 0.68);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 18% 13%, rgba(255, 255, 255, 0.88), transparent 13rem),
    linear-gradient(180deg, var(--sky) 0%, #72bff7 48%, var(--sky-deep) 72%, #71985a 100%);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  overflow-x: hidden;
}

a {
  color: #071827;
  text-decoration: none;
}

a:hover,
button:hover {
  text-decoration: underline;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 1.1rem 1.1rem clamp(15rem, 36vw, 32rem);
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.9rem;
}

.top,
nav,
footer,
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top {
  justify-content: center;
}

nav {
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 0.8rem 2rem rgba(24, 73, 116, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding-top: clamp(0.35rem, 2vw, 1.3rem);
  text-align: center;
}

.title-card {
  max-width: 50rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.1rem;
  background: var(--panel);
  box-shadow: 0 1.5rem 4rem rgba(24, 73, 116, 0.18);
  backdrop-filter: blur(12px);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.one-liner {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
  text-transform: uppercase;
}

.board {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(330px, 1fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: 0.35rem;
}

.tweet {
  width: min(33vw, 430px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(9, 28, 44, 0.22);
}

.tweet-left {
  justify-self: end;
  transform: translateX(-1.5rem) rotate(-9deg);
}

.tweet-right {
  justify-self: start;
  transform: translateX(1.5rem) rotate(8deg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 1rem 3rem rgba(24, 73, 116, 0.16);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

article {
  min-width: 0;
  padding: 0.85rem;
  border-right: 1px solid var(--line);
}

article:last-child {
  border-right: 0;
}

article span,
small,
.status,
footer {
  color: var(--muted);
}

article span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1.3rem, 4vw, 2.3rem);
  font-weight: 700;
}

small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.console {
  display: grid;
  gap: 0.45rem;
  align-self: start;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1rem 2.5rem rgba(24, 73, 116, 0.12);
  backdrop-filter: blur(12px);
}

.status {
  align-self: start;
  border-top: 0;
  padding-top: 0;
  font-size: 0.85rem;
}

.bunker-bg {
  position: fixed;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 -1rem 2.5rem rgba(18, 56, 34, 0.18));
  pointer-events: none;
  user-select: none;
}

.status p {
  margin: 0;
}

button {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

#quote-spent {
  color: var(--hot);
}

#ca-pill-addr {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .top,
  footer,
  .status {
    align-items: flex-start;
    flex-direction: column;
  }

  .board {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tweet {
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
    transform: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell {
    padding-bottom: 16rem;
  }

  article {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  article:nth-child(even) {
    border-right: 0;
  }

  article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
