/* Footer text styling */
.footer-text {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  padding: 0.5rem 0 0.75rem 0;
  z-index: 30;
  pointer-events: none;
}
/* Overflowing tile background */
.tile-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/assets/images/col25/dushi/tiles.png');
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: scroll-bg 40s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.back-link {
  position: absolute;
  left: 2vw;
  bottom: 2vw;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.25em 1em;
  border-radius: 6px;
  background: none;
  z-index: 20;
  transition: text-shadow 0.3s, color 0.3s;
}
 .back-link:hover {
  color: #fff;
  text-shadow: 0 0 16px #fff, 0 0 32px #f9e4ca;
 }
.title-bg {
  width: 100vw;
  max-width: 100%;
  background: #111;
  margin-bottom: 0;
  padding: 1rem 0 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  position: relative;
}

.glow-link {
  position: absolute;
  right: 2vw;
  bottom: 2vw;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.25em 1em;
  border-radius: 6px;
  background: none;
  z-index: 20;
  transition: text-shadow 0.3s, color 0.3s;
}
.glow-link:hover {
  color: #fff;
  text-shadow: 0 0 16px #fff, 0 0 32px #f9e4ca;
}

.title-image {
  height: 110px;
  object-fit: contain;
  margin: 0 1rem;
}

.magic-8-border {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: repeating-linear-gradient(135deg, #222 0 16px, #f9e4ca 16px 32px);
  box-shadow: 0 0 0 8px #222, 0 0 0 12px #f9e4ca;
  width: 536px;
  height: 536px;
  margin: 0 auto 2rem auto;
}

@media (max-width: 600px) {
  .title-image {
    height: 60px;
  }
  .magic-8-border {
    width: 420px;
    height: 420px;
    padding: 10px;
  }
}
@import url('/css/global.css');

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


body {
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
    overflow-y: hidden;
}

.tile-bg-section {
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  z-index: 2;
}


.hazard-line {
  width: 100vw;
  height: 24px;
  position: relative;
  left: 0;
  background: #2b2b2b;
  background: linear-gradient(104deg, rgba(43, 43, 43, 1) 0%, rgba(43, 43, 43, 1) 30%, rgba(23, 23, 23, 1) 30%, rgba(23, 23, 23, 1) 70%, rgba(43, 43, 43, 1) 70%, rgba(43, 43, 43, 1) 100%);
  background-repeat: repeat-x;
  background-size: 60px 100%;
  background-position: 0 0;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 5;
}
.hazard-top {
  margin-top: 0;
}

p, span, button, a, .footer-text {
    font-family: 'Times New Roman', Times, serif;
}

@keyframes scroll-bg {
  from { background-position: 0 0; }
  to { background-position: 900px 900px; } /* scrolls diagonally */
}

h1 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 0;
    color: var(--color-text);
    align-items: center;
    text-align: center;
    justify-content: center;
}

.title-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}


/* The large 8-ball shell */

.magic-ball {
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background-image: url('/assets/images/col25/dushi/ball.png');
  background-size: 100% 100%;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px; /* thickness of the visible ring */
  transform-origin: 50% 50%;
  margin: 6rem auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), inset 0 -20px 40px rgba(255,255,255,0.02);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.magic-ball:hover {
  cursor: pointer;
  transform: scale(1.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), inset 0 -20px 40px rgba(255,255,255,0.05);
}

/* inner circular window for the message */
.magic-result {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.6rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: opacity 180ms ease, transform 200ms ease;
}

.magic-result.shake {
  transform: translateY(-4px) scale(1.02);
}

/* text inside the white window */
.magic-text {
  display: inline-block;
  transition: opacity 180ms ease;
}
.magic-text.hidden {
  opacity: 0;
}

/* ball shake animation: shrink, small wobble and rotation */
.magic-ball.shake {
  animation: ballShakeLR 700ms cubic-bezier(.2,.8,.2,1);
}

@keyframes ballShakeLR {
  0% { transform: scale(1) translateX(0) rotate(0deg); }
  12% { transform: scale(0.96) translateX(-12px) rotate(-8deg); }
  30% { transform: scale(0.98) translateX(10px) rotate(7deg); }
  55% { transform: scale(0.97) translateX(-6px) rotate(-4deg); }
  80% { transform: scale(0.99) translateX(4px) rotate(2deg); }
  100% { transform: scale(1) translateX(0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .magic-ball.shake { animation: none !important; }
  .magic-text.hidden { transition: none !important; }
}

/* responsive adjustments for small screens */
@media (max-width: 520px) {
  .magic-8-wrapper { width: 100%; }
  .magic-ball { width: 400px; height: 400px; padding: 14px; }
  .magic-result { width: 160px; height: 160px; font-size: 1rem; padding: 0.75rem; }
  .footer-text { font-size: 0.8rem; margin: 2rem 0; }
}

/* small responsive bump (additional adjustments handled above) */
