/* ======== BASIC RESET ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video {
  max-width: 100%;
  height: auto;
}

.nav a {
  display: inline-block;
  padding: 12px 14px;
}

@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .cols { flex-direction: column; }
}

html, body {
  cursor: url('/Shared/images/cursor/wand-32.png') 4 4,
          url('/Shared/images/cursor/wand-48.png') 4 4,
          auto;
}

a, button, [role="button"], input[type="button"], input[type="submit"], label {
  cursor: url('/Shared/images/cursor/wand-link-32.png') 4 4,
          url('/Shared/images/cursor/wand-link-48.png') 4 4,
          pointer !important;
}

/* ======== ROOT VARIABLES ======== */
/* ======================================================
   DragonWings World – main.css
   Design note:
   Glass panels use low opacity (0.25) to preserve
   the starfield as a first-class visual feature.
   Readability is protected via layout, contrast,
   and scoped link colors.
   If this looks "too light", adjust --panel-bg
   in :root ONLY.
   ====================================================== */

:root {
    --bg: #000000;
    --text: #e6e6e6;
    --muted: #bbbbbb;
    --accent: #b38cff;
    --accent-dark: #7f5ac8;
    --panel-bg: rgba(10, 10, 20, 0.25);
    --panel-border: rgba(255, 255, 255, 0.08);
    --max-width: 960px;
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.6);

    --font-body: 'Nunito', sans-serif;
    --font-brand: 'Nunito', sans-serif;
}

/* ======== FONTS ======== */
@font-face {
    font-family: 'ODWWRHeader';
    src: url('../fonts/great-vibes/GreatVibes-Regular.ttf') format('truetype');
}

/* ======== GLOBAL ======== */
body {
    font-family: var(--font-body);
    background: #000000 url('../images/starry-background.jpg') repeat;
    color: var(--text);
    line-height: 1.7;
}

.container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ======== CORE LAYOUT ======== */
.site-main {
    padding: 2rem 0 3rem;
}

.panel {
    background: var(--panel-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--panel-border);
    padding: 1.75rem;
}

/* ======== HEADER (CENTERED) ======== */
.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.30),
        rgba(0, 0, 0, 0.15)
    );
    backdrop-filter: blur(6px);
}

.site-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.header-tagline {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.header-tagline #footer-rotator {
  display: inline-block;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #b38cff; /* adjust to taste */
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

.site-brand {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.site-title {
    font-family: var(--font-brand);
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    color: var(--accent);
    text-decoration: none;
    text-shadow: 0 0 12px rgba(179, 140, 255, 0.7);
    letter-spacing: 0.04em;
}
.cap-boost {
    display: inline-block;
    transform: scaleY(1.2); /* ~20% taller */
}

.site-title:hover {
    color: #e3d5ff;
}

.site-tagline {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ======== NAVIGATION (CENTERED UNDER TITLE) ======== */
.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.site-nav a:hover {
    background-color: rgba(179, 140, 255, 0.15);
    border-color: rgba(179, 140, 255, 0.6);
}

.site-nav a.is-current {
    background-color: rgba(179, 140, 255, 0.25);
    border-color: rgba(179, 140, 255, 0.9);
}

/* ======== HERO ======== */
.hero {
    margin-top: 2.5rem;
    margin-bottom: 3rem;

    /* glass panel look */
    padding: 2.25rem;
    text-align: center;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius, 10px);
    box-shadow: var(--shadow, 0 4px 12px rgba(0, 0, 0, 0.6));
}

.hero h1,
.hero h2,
.hero p {
    margin-bottom: 0.75rem;
}

/* ======== FOOTER ======== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.25);
}

.site-footer-inner{
  display:flex;
  gap:1rem;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.footer-center{
  flex: 1 1 320px;
  text-align:center;
}

.footer-rotator{
  display:inline-block;
  min-height:1.2em;
  opacity:1;
  transition: opacity 400ms ease;
  will-change: opacity;
}

.footer-rotator.is-fading{
  opacity:0;
}

.footer-social ul {
    list-style: none;
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    transition: 0.2s ease;
}

.footer-tagline {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

#footer-rotating-line {
  display: inline-block;
  transition: opacity 0.4s ease;
}

#footer-rotating-line.fade-out {
  opacity: 0;
}

.footer-social a:hover {
    background-color: rgba(179, 140, 255, 0.15);
    border-color: rgba(179, 140, 255, 0.6);
}

/* ======== WANDERING BAND ======== */
#wandering-band {
    position: fixed;
    bottom: 5%;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 9999;
}

.wanderer {
    position: absolute;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    animation:
        band-walk 26s linear forwards,
        band-fade-in 0.75s ease-out forwards;
}

/* Sizes */
.wanderer-phoenix { width: 80px; height: 80px; }
.wanderer-flamelet { width: 48px; height: 48px; }
.wanderer-wb { width: 64px; height: 64px; }
.wanderer-dw { width: 64px; height: 64px; }
.wanderer-cocoa { width: 56px; height: 56px; }
.wanderer-cappuccino { width: 56px; height: 56px; }
.wanderer-grandma { width: 60px; height: 60px; }
.wanderer-chai { width: 52px; height: 52px; }

/* Image paths */
.wanderer-phoenix { background-image: url('/Shared/assets/images/wanderers/phoenix.png'); }
.wanderer-flamelet { background-image: url('/Shared/assets/images/wanderers/flamelet.png'); }
.wanderer-wb { background-image: url('/Shared/assets/images/wanderers/wb.png'); }
.wanderer-dw { background-image: url('/Shared/assets/images/wanderers/dw.png'); }
.wanderer-cocoa { background-image: url('/Shared/assets/images/wanderers/cocoa.png'); }
.wanderer-cappuccino { background-image: url('/Shared/assets/images/wanderers/cappuccino.png'); }
.wanderer-grandma { background-image: url('/Shared/assets/images/wanderers/grandma-feathers.png'); }
.wanderer-chai { background-image: url('/Shared/assets/images/wanderers/chai.png'); }

@keyframes band-walk {
    from { transform: translateX(-10vw); }
    to   { transform: translateX(120vw); }
}

@keyframes band-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 720px) {
    .site-header-centered {
        gap: 0.75rem;
    }
}
/* =======================================================
   DWW HOME: keep starfield visible (no dark panels)
   ======================================================= */

/* ======== HOME: WHERE TO GO NEXT ======== */
.page-body {
    margin-top: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .home-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-card {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;

    background: var(--panel-bg);
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius, 10px);
    box-shadow: var(--shadow, 0 4px 12px rgba(0, 0, 0, 0.6));

    transition: border-color 0.2s ease, transform 0.15s ease;
}

.home-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
/* ======== LINK COLORS ======== */
/* ======== CONTENT LINK COLORS (not navigation) ======== */
.site-main a {
    color: var(--accent);
}

.site-main a:visited {
    color: #7CFF00; /* lime green for readability on starfield */
}

.site-main a:hover {
    color: #C6FF4D;
}
.wand-spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}
.roamer {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 100px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 50;
}

.roamer img {
  width: 100%;
  user-select: none;
}

#fireball-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

.fireball {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd966, #ff6600, #aa0000);
  box-shadow: 0 0 10px rgba(255,120,0,0.9);
  transform: translate(-50%, -50%);
}

/* ========================================================== */
/*    Form readability - high contrast inputs (accessibility) */
/* ========================================================== */

input,
textarea,
select {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #999;
  border-radius: 4px;
}

::placeholder {
  color: #666;
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #b38cff; /* accent */
  box-shadow: 0 0 0 2px rgba(179, 140, 255, 0.25);
}

.roamer img {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.roamer,
.roamer * {
  outline: none !important;
}
/* Roamer: remove the panel/background + border + padding */
.roamer {
  background: transparent !important;
  background-color: transparent !important;

  border: 0 !important;
  border-top: 0 !important;

  padding: 0 !important;
  margin: 0 !important;

  line-height: 0 !important; /* prevents “extra box” vertical space */
}

/* Make the image itself behave cleanly */
.roamer img {
  display: block !important;
  background: transparent !important;
}
.roamer a {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  display: inline-block !important;
}
#fx-layer { pointer-events: none; }
/* Roamer: no backgrounds, no outlines, no shadows, no tap highlight */
.roamer,
.roamer * {
  background: transparent !important;
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Make the image behave like a proper block element */
.roamer img {
  display: block;
  background: transparent !important;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Mobile tap highlight + focus glow removal */
.roamer {
  -webkit-tap-highlight-color: transparent;
}

/* If it can get focus, force no focus ring */
.roamer:focus,
.roamer:focus-visible,
.roamer img:focus,
.roamer img:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
