/* ---------------------------------------------------------------
   CLENTONIUM — under construction page
   Palette: black / crimson checkerboard, warm neon-gold type.
   --------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --black:        #050505;
  --red:          #a41414;
  --red-bright:   #c41a1a;
  --gold:         #ffe9a8;
  --gold-deep:    #f5c249;
  --amber:        #ff9e2c;
  --ink:          #f3e6c8;
  --muted:        #b9a780;

  --panel-bg:     rgba(8, 6, 6, 0.82);
  --panel-line:   rgba(245, 194, 73, 0.28);

  --square:       120px;   /* checkerboard tile size */
  --radius:       14px;
  --font:         'Bahnschrift', 'DIN Alternate', 'Oswald', 'Arial Narrow',
                  'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* --- background ------------------------------------------------ */

.checkerboard {
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  background-color: var(--black);
  background-image:
    linear-gradient(45deg,  var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg,  var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-size: calc(var(--square) * 2) calc(var(--square) * 2);
  background-position: 0 0, var(--square) var(--square);
  animation: drift 60s linear infinite;
}

@keyframes drift {
  to { transform: translate3d(calc(var(--square) * -2), calc(var(--square) * -2), 0); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.62) 55%, rgba(0,0,0,0.92) 100%);
}

/* --- layout ---------------------------------------------------- */

.page {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 0 72px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

/* --- hero ------------------------------------------------------ */

.hero {
  position: relative;
  text-align: center;
  padding: clamp(28px, 5vw, 52px) clamp(18px, 4vw, 44px);
  background: rgba(4, 3, 3, 0.74);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 24px 70px rgba(0,0,0,0.75),
    inset 0 0 90px rgba(196, 26, 26, 0.12);
  backdrop-filter: blur(2px);
}

.hazard {
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(
    45deg,
    var(--gold-deep) 0 14px,
    #131313 14px 28px
  );
  opacity: 0.9;
}
.hazard--top    { top: 0;    border-radius: var(--radius) var(--radius) 0 0; }
.hazard--bottom { bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }

.logo {
  font-family:'Dancing Script', cursive;
  margin: 22px 0 6px;
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--gold);
  /* text-transform: uppercase; */
  text-shadow:
    0 0 6px  rgba(255, 233, 168, 0.9),
    0 0 22px rgba(255, 196, 73, 0.75),
    0 0 48px rgba(255, 158, 44, 0.55),
    0 0 96px rgba(255, 120, 20, 0.35);
  animation: flicker 6.5s infinite;
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93%           { opacity: 0.55; }
  94%           { opacity: 1; }
  96%           { opacity: 0.7; }
  97%           { opacity: 1; }
}

.tagline {
  margin: 0 0 4px;
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.cones {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 6px;
  font-size: 1.1rem;
  color: var(--amber);
}
.cone { animation: bob 2.4s ease-in-out infinite; }
.cone:nth-child(2) { animation-delay: 0.3s; }
.cone:nth-child(3) { animation-delay: 0.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0);    opacity: 0.75; }
  50%      { transform: translateY(-6px); opacity: 1; }
}

.blurb {
  max-width: 58ch;
  margin: 12px auto 26px;
  color: var(--muted);
}

/* --- progress bar ---------------------------------------------- */

.progress {
  max-width: 520px;
  margin: 0 auto 8px;
  text-align: left;
}

.progress__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress__pct { color: var(--gold); }

.progress__track {
  height: 16px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: repeating-linear-gradient(
    45deg,
    var(--gold-deep) 0 12px,
    var(--amber)     12px 24px
  );
  background-size: 34px 34px;
  box-shadow: 0 0 18px rgba(255, 175, 60, 0.6);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: crawl 1.1s linear infinite;
}

@keyframes crawl {
  to { background-position: 34px 0; }
}

/* --- panels ---------------------------------------------------- */

.panel {
  padding: clamp(22px, 3.5vw, 34px);
  background: var(--panel-bg);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}

.panel__title {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.panel__sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- fun fact -------------------------------------------------- */

.fact { text-align: center; }

.fact__text {
  margin: 14px auto 22px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 200, 90, 0.28);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fact__text.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

/* --- buttons --------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  margin: 4px 6px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, transform 0.1s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-deep);
  color: #1a1206;
  box-shadow: 0 0 26px rgba(255, 190, 70, 0.55);
}

.btn:active { transform: translateY(1px); }

.btn--discord {
  border-color: #7d8ff5;
  color: #cdd5ff;
}
.btn--discord:hover,
.btn--discord:focus-visible {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.6);
}

/* --- video grid ------------------------------------------------ */

.videos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.video {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(245, 194, 73, 0.18);
  border-radius: 10px;
  background: rgba(0,0,0,0.5);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.video:hover,
.video:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: 0 14px 34px rgba(0,0,0,0.6), 0 0 22px rgba(255, 190, 70, 0.22);
}

.video__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0b0808;
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-size: 48px 48px;
  background-position: 0 0, 24px 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.video:hover .video__play,
.video:focus-visible .video__play { opacity: 1; }

.video__body { padding: 14px 16px 18px; }

.video__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.video__blurb {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --- cta / footer ---------------------------------------------- */

.cta { text-align: center; }

.footer {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(185, 167, 128, 0.6);
}

/* --- data-load notice ------------------------------------------ */

.notice {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #1a1206;
  background: var(--gold-deep);
  border-bottom: 2px solid #1a1206;
}

.notice code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: rgba(0,0,0,0.18);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- motion / small screens ------------------------------------ */

@media (max-width: 480px) {
  :root { --square: 76px; }
  .videos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
