/* Greatest Dungeons — home page: cinematic hero, interactive sections, collab + contact.
   Loaded only on index.php, on top of style.css. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.02rem; border-radius: 12px; }
.btn-glow { box-shadow: 0 0 0 1px rgba(255, 90, 90, .35) inset, 0 8px 30px rgba(200, 25, 27, .45); }
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(255, 120, 120, .5) inset, 0 10px 40px rgba(200, 25, 27, .65); }
.home .footer { margin-top: 0; }
.home .topbar { background: rgba(7, 7, 8, .72); border-bottom-color: rgba(255, 255, 255, .06); }

/* Hero */
.hero2 { position: relative; min-height: min(100vh, 920px); display: flex; align-items: center; overflow: hidden; text-align: center; padding: 56px 0 96px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(155, 0, 0, .42), transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 120%, rgba(224, 120, 40, .16), transparent 60%),
    linear-gradient(180deg, #070708 0%, #0d0b0c 60%, var(--bg) 100%); }
.hero2::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px); pointer-events: none; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-fog { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 220px; background: radial-gradient(ellipse at center, rgba(120, 120, 130, .12), transparent 70%); filter: blur(10px); animation: fog 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes fog { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.hero-inner { position: relative; z-index: 2; }
.kicker { font: 700 .78rem var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; opacity: .9; }
.hero2 .hero-logo { width: min(760px, 100%); display: block; margin: 0 auto; filter: drop-shadow(0 10px 40px rgba(200, 25, 27, .55)); animation: logoIn 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.hero2 .tagline { font-family: var(--brand); font-size: clamp(1.25rem, 4.4vw, 1.9rem); color: var(--gold); margin: 14px 0 4px; text-shadow: 0 2px 20px rgba(224, 185, 91, .25); }
.hero2 .lede { max-width: 640px; margin: 10px auto 24px; font-size: clamp(1rem, 2.4vw, 1.12rem); color: #ddd6cb; }
.session-card { margin: 34px auto 0; max-width: 680px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; text-align: left;
  padding: 20px 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(30, 28, 32, .85), rgba(18, 17, 20, .85)); border: 1px solid rgba(224, 185, 91, .28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset; backdrop-filter: blur(6px); }
.session-date { font: 700 1.5rem var(--display); margin: 2px 0 6px; }
.session-meta { display: flex; align-items: center; gap: 8px; color: #d9d2c6; margin: 3px 0; font-size: .95rem; }
.session-meta .ico { color: var(--gold); }
.session-meta.price { color: var(--gold); font-weight: 700; }
.countdown { display: flex; gap: 8px; }
.countdown div { display: grid; place-items: center; min-width: 64px; padding: 10px 6px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.countdown span { font: 800 1.7rem/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.live-now { color: var(--gold); font-weight: 700; margin: 0; }
@media (max-width: 560px) { .session-card { justify-content: center; text-align: center; } .session-meta { justify-content: center; } .countdown div { min-width: 58px; } }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid rgba(224, 185, 91, .22); background: linear-gradient(90deg, #120709, #1a0b0d, #120709); }
.marquee-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; animation: marquee 36s linear infinite; font: 700 .9rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #e9dcc4; }
.marquee-track span:nth-child(even) { color: var(--red2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section2 { padding: clamp(64px, 10vw, 110px) 0; position: relative; }
.section2.alt { background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .03)); border-block: 1px solid #1d1d22; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head h2, .roll-sec h2, .contact-grid h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin: .2em 0 .3em; }
.sec-head h2::after { content: ''; display: block; width: 90px; height: 10px; margin: 16px auto 0;
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 4px) center / 10px 10px no-repeat, linear-gradient(90deg, transparent, rgba(224, 185, 91, .7), transparent) center / 100% 1px no-repeat; }
.sec-sub { color: #c9c2b6; font-size: 1.05rem; }
.home .eyebrow { color: var(--gold); }
.narrow2 { max-width: 820px; }
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Feature + partner cards */
.feature-grid, .partner-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feature-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } .partner-grid { grid-template-columns: repeat(3, 1fr); } }
.fcard, .pcard { position: relative; padding: 26px 22px; border-radius: 16px; background: linear-gradient(180deg, #19181c, #131216); border: 1px solid #2a2930; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.fcard::before, .pcard::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--red2), transparent); opacity: .7; }
.fcard:hover, .pcard:hover { transform: translateY(-4px); border-color: rgba(200, 25, 27, .55); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(200, 25, 27, .12); }
.fcard h3, .pcard h3 { font: 700 1.15rem var(--display); margin: 14px 0 6px; }
.fcard p, .pcard p { color: #c4bdb1; margin: 0; }
.fcard-ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle at 30% 30%, rgba(224, 185, 91, .25), rgba(200, 25, 27, .15)); border: 1px solid rgba(224, 185, 91, .3); color: var(--gold); }
.fcard-ico .ico { width: 26px; height: 26px; }

/* Roll */
.roll-sec { background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(155, 0, 0, .22), transparent 70%); }
.roll-grid { display: grid; gap: 30px; align-items: center; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 760px) { .roll-grid { grid-template-columns: 1fr; text-align: center; } }
.roll-result { font: 600 1.15rem/1.5 var(--body); color: #efe6d6; min-height: 3.2em; margin: 18px 0 10px; }
.d20 { justify-self: center; background: none; border: 0; cursor: pointer; padding: 0; display: grid; justify-items: center; gap: 10px; color: var(--muted); font: 600 .85rem var(--body); }
.d20 svg { width: min(260px, 70vw); height: auto; filter: drop-shadow(0 16px 40px rgba(200, 25, 27, .45)); transition: transform .3s; animation: bob 4s ease-in-out infinite; }
.d20:hover svg { transform: scale(1.04) rotate(-4deg); }
.d20.rolling svg { animation: spinDie .5s linear infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes spinDie { to { transform: rotate(360deg); } }
.d20-body { fill: url(#dg); stroke: #ffb4a8; stroke-width: 3; stroke-linejoin: round; }
.d20-face { fill: rgba(255, 255, 255, .08); stroke: #ffd2c9; stroke-width: 2.5; stroke-linejoin: round; }
.d20-edge { stroke: rgba(255, 210, 200, .55); stroke-width: 2; fill: none; }
.d20-num { font: 800 40px var(--display); fill: #fff; }
.d20.nat20 svg { filter: drop-shadow(0 0 30px rgba(224, 185, 91, .9)); }
.d20.nat20 .d20-num { fill: var(--gold); }
.d20.nat1 .d20-body { fill: #3a0a0a; }
.d20-hint { letter-spacing: .12em; text-transform: uppercase; }

/* Island map */
.isle-map { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(224, 185, 91, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: #0b1216; }
.isle-map svg { display: block; width: 100%; height: auto; }
.sea { fill: #0c171d; }
.sea-waves { opacity: .5; }
.wave { fill: none; stroke: #1f3a44; stroke-width: 1.5; }
.route { fill: none; stroke: rgba(224, 185, 91, .45); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; animation: sail 30s linear infinite; }
@keyframes sail { to { stroke-dashoffset: -240; } }
.isle { cursor: pointer; outline: none; }
.isle-glow { opacity: 0; transition: opacity .3s; }
.isle-land { fill: #2c2a22; transition: fill .3s; }
.isle-shore { fill: none; stroke: #c9a45a; stroke-width: 3; stroke-dasharray: 1 7; stroke-linecap: round; }
.isle-label { font: 700 20px var(--display); fill: #f1e7d2; paint-order: stroke; stroke: #0b1216; stroke-width: 5px; letter-spacing: .04em; pointer-events: none; }
.isle:hover .isle-glow, .isle:focus-visible .isle-glow, .isle.on .isle-glow { opacity: 1; }
.isle:hover .isle-land, .isle:focus-visible .isle-land { fill: #3b3528; }
.isle.on .isle-land { fill: #5a1414; }
.compass circle { fill: none; stroke: rgba(224, 185, 91, .4); }
.compass path { fill: var(--gold); opacity: .8; }
.compass text { fill: var(--gold); font: 700 14px var(--display); }
.isle-panel { padding: 18px 22px; border-top: 1px solid rgba(224, 185, 91, .3); background: linear-gradient(180deg, #121417, #0e0f11); transition: background .3s; }
.isle-panel h3 { font: 700 1.25rem var(--display); margin: 2px 0 4px; }
.isle-panel p:last-child { margin: 0; color: #cfc8bc; }
.isle-panel.on { background: linear-gradient(180deg, #1c0f10, #0e0f11); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { position: relative; padding: 26px 20px 20px; border-radius: 16px; background: #141317; border: 1px solid #28272d; }
.timeline h3 { font: 700 1.1rem var(--display); margin: 12px 0 4px; }
.timeline p { color: #c4bdb1; margin: 0; }
.t-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 800 1.2rem var(--display); color: #fff; background: linear-gradient(180deg, var(--red2), var(--red)); box-shadow: 0 0 0 5px rgba(200, 25, 27, .18); }

/* Quiz */
.card2 { background: linear-gradient(180deg, #1a191d, #121115); border: 1px solid #2b2a31; border-radius: 18px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.quiz { max-width: 720px; margin: 0 auto; text-align: center; min-height: 260px; }
.quiz-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.quiz-progress span { width: 40px; height: 5px; border-radius: 4px; background: #2e2d33; }
.quiz-progress span.on { background: var(--red2); }
.quiz-q { font: 700 clamp(1.2rem, 3.6vw, 1.5rem) var(--display); margin: 0 0 18px; }
.quiz-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.quiz-opt { padding: 16px; border-radius: 12px; border: 1px solid #34333a; background: #1b1a1f; color: var(--text); font: 600 1rem var(--body); cursor: pointer; transition: border-color .2s, background .2s, transform .1s; min-height: 56px; }
.quiz-opt:hover { border-color: var(--red2); background: rgba(200, 25, 27, .12); }
.quiz-opt:active { transform: scale(.98); }
.quiz-class { font: 800 clamp(2rem, 7vw, 3rem) var(--display); color: var(--gold); margin: 4px 0; animation: logoIn .7s both; }

/* Legend wall */
.legend-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.legend { padding: 20px; border-radius: 14px; background: linear-gradient(160deg, rgba(224, 185, 91, .08), rgba(20, 19, 23, .9)); border: 1px solid rgba(224, 185, 91, .25); }
.legend-name { font: 700 1.25rem var(--display); margin: 0 0 8px; }
.legend-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.legend-tags span { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #ffd9a8; background: rgba(200, 25, 27, .18); border: 1px solid rgba(200, 25, 27, .45); }
.legend-meta { color: var(--muted); font-size: .85rem; margin: 0; }

/* Ticket band */
.ticket-band { padding: 56px 0; background: linear-gradient(100deg, #4a0707, #8f0d10 50%, #4a0707); position: relative; overflow: hidden; }
.ticket-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(224, 185, 91, .25), transparent 50%); pointer-events: none; }
.ticket-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.ticket-band h2 { margin: .1em 0; font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.ticket-band p { margin: 0; color: #ffe4dc; }
.ticket-band .eyebrow { color: #ffd9a8; }
.ticket-band .btn-glow { background: linear-gradient(180deg, #f0cf7a, #c99a3b); border-color: #f3d68c; color: #1a0b00; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ticket-band .btn-glow:hover { color: #1a0b00; }

/* Collab */
.collab-cta { text-align: center; margin-top: 34px; }
.collab-cta p { color: #c9c2b6; }

/* FAQ */
.faq2 details { border: 1px solid #2a2930; border-radius: 14px; background: #141317; margin: 10px 0; padding: 0 20px; transition: border-color .2s; }
.faq2 details[open] { border-color: rgba(200, 25, 27, .5); }
.faq2 summary { cursor: pointer; padding: 18px 0; font: 600 1.05rem var(--body); display: flex; justify-content: space-between; gap: 12px; }
.faq2 summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq2 details[open] summary::after { transform: rotate(45deg); }
.faq2 p { margin: 0 0 18px; color: #cfc8bc; }

/* Contact */
.contact-grid { display: grid; gap: 34px; grid-template-columns: .9fr 1.1fr; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-list .ico { color: var(--gold); }
.hp { position: absolute !important; left: -9999px; }
.sent { text-align: center; border-color: rgba(79, 191, 122, .5); }
.sent h3 { font: 700 1.5rem var(--display); color: #9fe6b9; }

/* Sticky ticket button */
.sticky-cta { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 999px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, var(--red2), var(--red)); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(200, 25, 27, .5); transform: translateY(160%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.sticky-cta.show { transform: none; }
.sticky-cta:hover { color: #fff; }
@media (max-width: 560px) { .sticky-cta { left: 16px; right: 16px; justify-content: center; } }

@media (prefers-reduced-motion: reduce) { .marquee-track, .route, .d20 svg, .hero-fog, .scroll-cue span, .hero2 .hero-logo { animation: none !important; } }
