:root {
  --bg: #0e0e10;
  --accent: #b8b3fd;
  --box-color: rgba(255, 255, 255, 0.18);
  --box-w: 300px;
  --box-h: 90px;
  --button-color: #ffcf53;
  --button-text-color: #181717;
  /* --box-color: rgb(255 218 123 / 43%); */
  --box-color: rgb(175 148 78 / 60%);
  --box-blur: 16px;
  font-family: "Inter", system-ui, sans-serif;
  color: #fff;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
}

.wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 1em;
    margin-top: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.307; /*  By eye, but seems a better fit */ 
  max-height: 50vh;
  max-width: calc(1.307 * 50vh);
}


.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  overflow: visible;
  pointer-events: none;
}

.floating {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: var(--box-w);
    min-height: var(--box-h);
    padding: 0.5em 1em 0;
    border-radius: 0.8em;
    background: var(--box-color);
    color: #fff;
    font-size: 14px;
    z-index: 1;
    pointer-events: auto;
    backdrop-filter: blur(var(--box-blur));
    box-shadow: 0px 0px 30px #0004;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    border-right-color: rgba(0, 0, 0, 0.03);
    border-left-color: rgba(255, 255, 255, 0.05);
    contain: layout paint style;
    will-change: transform; 
}

.floating .h {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.floating a {
  color: white;
}

body .button {
    padding: 0.4em 1em;
    display: inline-block;
    background: var(--button-color);
    border:none;
    border-radius: 20px;
    color: var(--button-text-color);
    text-decoration: none;
    line-height: 1;
    margin: 1em 0;
    cursor: pointer;
}

.button svg {
  fill:var(--button-text-color);
}

#playVideo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    padding-left:20px;
    font-weight: 700;
    margin: auto;
}

.noscript-content {
    padding: 0 20px;
}

.noscript-content a {
  color: var(--accent);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 10px;
    right: 10px;
    font-size: 12px;
}

.site-footer a {
    color: #ff6400;
    text-decoration: none;
}

.video-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}

.about {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.2;
    max-width: 680px;
    padding: 20px;
    background: var(--box-color);
    backdrop-filter: blur(var(--box-blur));
    box-shadow: 0px 0px 30px #0004;
    border-radius: 1em;
    transform: translate(0px, -50px);
    transition: transform 0.6s ease;
    z-index: 3;
    position: relative;
    margin: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-width: min(680px, calc(100vw - 80px));
}


.about.hidden {
    transform: translate(0px, 0px) scale(0);
}

.about h2 {
    margin-top: 0;
}


@keyframes floatUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-120vh); } /* ensure it fully leaves viewport */
}

.floating.animate {
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@media screen AND (max-width:768px) {
  :root {
    --box-w: 200px;
  }
  .title {
      font-size: 1.3em;
      color:grey;
  }

  .video-wrap {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2;
      border-radius: 0px;
  }
  .video-frame {
    height: auto;
  }

  .overlay {
    top: 50vh;
  }

  .floating {
    font-size: 11px;
    box-shadow: none;
  }

  .right .h,
  .right .t {
    text-align: right;
  }
  .right .button {
      float: right;
  }
}


/* ---- Historical reference list styling ---- */
.noscript-list {
  max-width: 600px;
  padding: 2rem;
  line-height: 1.6;
  color: #ccc;
}

.noscript-list h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #eee;
  letter-spacing: -0.5px;
}

.noscript-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: fire-list;
}

.noscript-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 0.75rem;
  background: #fff;
  color: #333;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.noscript-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.noscript-list li::before {
  counter-increment: fire-list;
  content: counter(fire-list) ".";
  position: absolute;
  top: 1em;
  font-weight: 700;
  color: #ff5a1f;
  transform: translate(calc(-0.5em - 100%));
}

.noscript-list strong {
  color: #111;
  font-weight: 600;
}

.noscript-list a {
  color: #ff5a1f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.noscript-list a:hover {
  text-decoration: underline;
  color: #e14e0b;
}
