@font-face {
  font-family: 'Yellowtail';
  src: url('../fonts/Yellowtail-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff;
  overflow: hidden;
  cursor: url('../images/rocks/rock_4-cursor.png'), auto;
}

.page {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* LEFT: wordmark */
.left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-width: 0;
}

.wordmark-wrap {
  position: relative;
  width: 98%;
  max-height: 96vh;
  line-height: 0;
}

.wordmark {
  width: 100%;
  height: auto;
  max-height: 96vh;
  object-fit: contain;
  display: block;
}

.wordmark-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.left-bottom {
  display: none;
}

/* RIGHT: thin column, separated by 5px black rule */
.right {
  width: 260px;
  flex-shrink: 0;
  height: 100vh;
  border-left: 5px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  text-align: center;
  background-color: #000;
  color: #fff;
}

/* Top: name + address */
.right-top {
  width: 100%;
}

.bar-lounge {
  font-family: 'Yellowtail', cursive;
  font-size: 44px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.address {
  font-family: 'Aref Ruqaa', serif;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  margin: 8px 0 0;
  line-height: 1.2;
}

/* Middle: gif + link pairs */
.right-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.link-block img {
  height: auto;
  display: block;
  margin: 0 auto;
}

.kokopelli-gif {
  width: 130px;
}

.camel-gif {
  width: 72px;
}

.link-block a {
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  font-style: italic;
  color: #fff;
  text-decoration: underline;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
  font-size: 16px;
  transition: color 0.2s ease;
}

.link-block a:hover {
  color: #0000ff;
}

/* Bottom: coming soon + ticker */
.right-bottom {
  width: 100%;
}

.coming-soon {
  font-family: 'Yellowtail', cursive;
  font-size: 48px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker-move 6s linear infinite;
}

.ticker span {
  font-family: 'Arial Rounded MT Bold', 'Arial Rounded MT', 'Helvetica Rounded', Arial, sans-serif;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 24px;
}

/* moves right -> right, looping seamlessly since content is duplicated */
@keyframes ticker-move {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* ============================================
   MOBILE LAYOUT — single-screen poster, no scroll
   ============================================ */
@media (max-width: 768px) {
  html, body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .page {
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
  }

  /* Wordmark gets a fixed share of the screen and shrinks to fit within it */
  .left {
    flex: 0 0 42%;
    min-height: 0;
    width: 100%;
    padding: 10px 16px;
  }

  .wordmark-wrap {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }

  .wordmark {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* Right column becomes three stacked bands sharing the remaining screen space evenly */
  .right {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    border-left: none;
    padding: 0;
    background-color: transparent;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .right-top,
  .right-middle,
  .right-bottom {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4px 16px;
  }

  .right-top {
    background-color: #000;
    color: #fff;
  }

  .right-middle {
    background-color: #fff;
    color: inherit;
    flex-direction: row;
    gap: 8vw;
  }

  .right-bottom {
    background-color: #000;
    color: #fff;
  }

  /* Fluid, viewport-height-based sizing so everything shrinks to fit without scrolling */
  .bar-lounge {
    font-size: clamp(20px, 5.2vh, 40px);
  }

  .address {
    font-size: clamp(13px, 2.4vh, 20px);
    white-space: nowrap;
    margin-top: 1vh;
  }

  .coming-soon {
    font-size: clamp(22px, 5.6vh, 42px);
  }

  .ticker-wrap {
    margin-top: 0.8vh;
  }

  .ticker span {
    font-size: clamp(11px, 1.9vh, 17px);
    padding-right: 18px;
  }

  .kokopelli-gif {
    width: clamp(48px, 11vh, 90px);
  }

  .camel-gif {
    width: clamp(38px, 8vh, 65px);
  }

  .link-block a {
    font-size: clamp(11px, 1.9vh, 15px);
    margin-top: 4px;
    /* No hover state exists on touch, so keep links solidly blue rather than
       white — matches desktop's hover color as the resting mobile color. */
    color: #0000ff;
  }

  /* No cursor on touch devices, so hide the grain canvas outright as a
     backstop — the JS itself also skips all setup on non-hover devices. */
  .wordmark-canvas {
    display: none;
  }

  /* Bottom wordmark repeat is unused now that mobile is a single, non-scrolling screen */
  .left-bottom {
    display: none;
  }
}

/* Belt-and-suspenders: hide the grain canvas on any touch-only device
   regardless of viewport width (e.g. a phone in landscape past 768px). */
@media (hover: none), (pointer: coarse) {
  .wordmark-canvas {
    display: none;
  }
}
