/* Reset + viewport lock */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body {
  margin: 0;
  background: #000;
  color: #EFE9DC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

:root {
  --oxmal-green-base: #69230c;
  --oxmal-green-light: #792204;
  --oxmal-green-dark: #B2593A;
}

/* Full-screen mobile card */
.viewport {
  position: relative;
  inline-size: 100vw;
  block-size: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.card {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  /* Minimalist gradient derived from the wall color */
  background: radial-gradient(120% 120% at 50% 35%, var(--oxmal-green-light) 0%, var(--oxmal-green-base) 45%, var(--oxmal-green-dark) 100%);
  overflow: hidden;
  touch-action: none;
  contain: strict;
}

/* Transparent canvas overlays the gradient */
#gridCanvas {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  display: block;
}

/* Logo above brand — visibility controlled by JS */
#logo {
  position: absolute;
  left: 50%;
  top: calc(50% - clamp(64px, 12.5vw, 108px));
  transform: translate(-50%, -50%);
  inline-size: clamp(36px, 14vw, 72px);
  block-size: auto;
  filter: brightness(1);
  opacity: 0; /* hidden by default */
  pointer-events: none;
  z-index: 2;
  will-change: opacity, filter;
}

/* OXMAL title */
#brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: 'The Seasons', ui-serif, Georgia, serif;
  font-weight: 50;
  font-style: normal;
  font-size: clamp(30px, 9.2vw, 68px);
  letter-spacing: 1em;
  text-transform: uppercase;
  color: #EFE9DC;
  opacity: 0;
  will-change: opacity, transform, letter-spacing;
  pointer-events: none;
  z-index: 2;
}

/* CTA */
#enterBtn {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(46px, 9.5vw, 96px));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-width: 150px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255, 85, 0, 0.18);
  color: #EFE9DC;
  text-decoration: none;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  font-size: clamp(12px, 3.4vw, 14px);
  letter-spacing: 0.18em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 120ms ease;
  z-index: 3;
}
#enterBtn:focus { outline: none; }
#enterBtn:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,0.35); }
#enterBtn:active { transform: translateX(-50%) scale(0.985); }
#enterBtn:hover { border-color: rgba(255,255,255,0.34); background: rgba(0,0,0,0.28); }
html.js #enterBtn {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 16px, 0) scale(0.94);
  filter: blur(0.4px);
  will-change: opacity, transform, filter;
}
