/* Depth + texture — stronger visible layers (still neutral) */

.hl-body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #060607;
}

/* Visible warmth + depth (stronger than before) */
.hl-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130% 70% at 50% -25%, rgba(72, 62, 54, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 85% 55% at 100% 8%, rgba(32, 38, 52, 0.45) 0%, transparent 52%),
    radial-gradient(ellipse 65% 50% at 0% 95%, rgba(38, 34, 30, 0.5) 0%, transparent 55%),
    linear-gradient(165deg, #121215 0%, #080809 42%, #050506 100%);
}

/* Dot grid — readable at a glance */
.hl-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 72%);
}

/* Film grain — visibly breaks flat black */
.hl-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

.hl-card-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 50px -28px rgba(0, 0, 0, 0.85);
}

.hl-icon-link img {
  display: block;
}

/* Last line of justified roast stays natural; avoids stretched short final line */
#roast-text {
  text-align-last: left;
}

.hl-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.hl-ghost {
  border: 1px solid rgba(82, 82, 82, 0.95);
  background: transparent;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.hl-ghost:hover {
  border-color: rgba(140, 140, 140, 0.95);
  color: #fafafa;
}

#status {
  transition: opacity 0.2s ease;
}

/* Caps vertical growth so the Hodleague CTA stays on-screen; text uses wider column on lg */
.roast-scroll-region {
  max-height: min(38vh, 300px);
}

@media (min-width: 640px) {
  .roast-scroll-region {
    max-height: min(40vh, 340px);
  }
}

#roast-scroll,
.roast-scroll-region {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 100, 100, 0.55) transparent;
}

#roast-scroll::-webkit-scrollbar,
.roast-scroll-region::-webkit-scrollbar {
  width: 5px;
}

#roast-scroll::-webkit-scrollbar-thumb,
.roast-scroll-region::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.45);
  border-radius: 999px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 1px solid #737373;
  outline-offset: 3px;
}
