/* A2K 2026 palette, taken from the website tailwind.config.ts. */
:root {
  --navy: #0a1628;
  --navy-light: #132240;
  --outline: #24345c;
  --lime: #d4ff00;
  --light: #f1f5f9;
  --muted: #94a3b8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--navy);
  color: var(--light);
  font-family: Poppins, system-ui, sans-serif;
  overflow: hidden;
}

/* The wall, and nothing else: the whole viewport. The library measures this
   element and fills it with its canvas; the type scale set here sizes the
   provenance badge. */
.wall {
  position: relative;
  width: 100%;
  height: 100svh;
  font-size: clamp(12px, 1.4vw, 20px);
  user-select: none;
  -webkit-user-select: none;
}

.wall-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.5em;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.wall-status[hidden] { display: none; }

/* Title on the left, the style switch on the right; stacked and centred on a
   narrow screen. Over the wall, on a gradient that keeps the text readable
   whatever passes beneath. */
.wall-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 28px;
  background: linear-gradient(rgba(10, 22, 40, .88), rgba(10, 22, 40, 0));
  pointer-events: none;
}

.wall-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(10, 22, 40, .8);
}

.style-switch {
  pointer-events: auto;
  display: flex;
  padding: 4px;
  gap: 4px;
  background: rgba(10, 22, 40, .82);
  border: 1px solid var(--outline);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.style-switch[hidden] { display: none; }

.style-switch button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--light);
  font: 600 .9rem Poppins, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.style-switch button[aria-checked="true"] {
  background: var(--lime);
  color: var(--navy);
}

.screen-hint {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  background: rgba(10, 22, 40, .92);
  border: 1px solid var(--outline);
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.4;
}

.screen-hint[hidden] { display: none; }

.screen-hint button {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--navy-light);
  color: var(--light);
  font-size: 1rem;
}

/* Narrow screens, last so they win over the rules above. */
@media (max-width: 640px) {
  .wall-bar { justify-content: center; text-align: center; }
  .style-switch button { padding: 0 12px; font-size: .8rem; }
}

/* A small phone: the switch takes the whole width, two equal halves, and a
   label may break onto a second line rather than run off the screen. */
@media (max-width: 400px) {
  .style-switch { width: 100%; border-radius: 22px; }
  .style-switch button {
    flex: 1 1 0;
    padding: 6px 10px;
    border-radius: 18px;
    white-space: normal;
    text-wrap: balance;
    line-height: 1.2;
  }
}

/* The A2K logo before the title, and the corner link to the site. */
.wall-title { display: flex; align-items: center; gap: 14px; }
.title-logo { pointer-events: auto; display: inline-flex; flex: none; }
.title-logo img { height: 1.5em; width: auto; }
.site-corner {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 22, 40, .78);
  border: 1px solid var(--outline);
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.site-corner img { height: 18px; width: auto; }
.site-corner:hover { border-color: #d4ff0088; }
@media (max-width: 640px) {
  .wall-title { justify-content: center; }
  .site-corner span { display: none; }
}
