/**
 * PlayFully Intro Tutorial Styles
 * Small screens (≤914px)
 */

@import "core/global_S.css";
@import "core/global_prelog_S.css";
@import "core/fonts.css";

/* ================================ */
/* Global Contrast Shield           */
/* ================================ */

.divContrastShield {
    background: radial-gradient(
        ellipse 90% 85% at 50% 50%,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.45) 40%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

/* ================================ */
/* Content Panel                    */
/* ================================ */

.divTutIntroContentPanel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 28px 15px 36px 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 
        0 0 60px 30px rgba(255, 131, 0, 0.1);
}

/* ================================ */
/* Top Bar                          */
/* ================================ */

.spnTutIntroSlideIndicator {
    color: var(--c9);
}

.aTutIntroTopLink {
    border: none;
    background: transparent;
}

/* ================================ */
/* Main Content                     */
/* ================================ */

.mainHeroContent {
    padding: 65px 20px 24px 20px;
}

.divHeroContentInner {
    max-width: 100%;
    width: 100%;
}

/* Predefined margin utility classes */

p.marginBottom05,
span.marginBottom05 {
    margin-bottom: 0.4em;
}
p.marginBottom1, 
span.marginBottom1 {
    margin-bottom: 0.8em;
}
p.marginBottom2,
span.marginBottom2 {
    margin-bottom: 1.6em;
}

.spnForceBreak {
    display: inline-block;
    width: 100%;
}

/* ================================ */
/* Brand Block (Slide 1)            */
/* ================================ */

.divTutIntroBrandBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.divHeroBrand {
    flex-direction: row;
    margin-bottom: 16px;
}

.imgHeroPlayFullyLogoIcon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 15px rgba(255, 131, 0, 0.5));
}

.spnHeroLogoText {
    font-size: 36px;
    letter-spacing: -1px;
    -webkit-text-stroke-width: 1px;
    text-shadow: 
        0 0 8px rgba(255, 131, 0, 0.4),
        0 0 16px rgba(255, 131, 0, 0.2);
    padding-bottom: 2px;
}

.spnHeroLogoText .spnLogoF {
    font-size: 1.2em;
}

.h1HeroHeadline {
    margin: 0;
}

.h1TutIntroHeadline {
    font-family: Rubik_SemiBold, sans-serif;
    font-size: 26px;
    line-height: 1.5;
    color: var(--c7);
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 0 6px;
}

/* Different font sizes for emphasis */
.spnHeadWordMedium {
    font-size: 16px;
    line-height: 1.3;
}
.spnHeadWordLight {
    font-size: 14px;
    line-height: 1.3;
}

/* ================================ */
/* Slide Title (Slides 2-7)         */
/* ================================ */

.h2TutIntroTitle {
    font-family: Rubik_SemiBold, sans-serif;
    font-size: 24px;
    line-height: 1.3;
    color: var(--c7);
    margin: 0 0 20px 0;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Slide 3 - reduced title margin */
.h2TutIntroTitleSlide3 {
    margin-bottom: 16px;
}

.h2TutIntroSectionHeader {
    font-size: 26px;
    margin-bottom: 24px;
}

/* ================================ */
/* Body Content                     */
/* ================================ */

.divTutIntroBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}

/* Slide 1 body - fade in after headline completes */
.divTutIntroBodySlide1 {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

/* Staggered fade-in animations for slides 2+ */
.divTutIntroFadeIn1 {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.divTutIntroFadeIn2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.divTutIntroFadeIn3 {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

/* CTA button inside content panel */
.divTutIntroCTAInPanel {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* Early access note styling */
.pTutIntroEarlyAccessNote {
    color: var(--c9);
}

.pTutIntroText {
    font-family: Rubik_Regular, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--c8);
    margin: 0;
    max-width: 100%;
    text-align: center;
}

.pTutIntroEmphasis {
    font-family: Rubik_Medium, sans-serif;
    color: var(--c7);
}

.spnTutIntroHighlight {
    color: var(--pf_orange);
    font-family: Rubik_SemiBold, sans-serif;
}

.spnTutIntroHighlightNoOrange {
    font-family: Rubik_SemiBold, sans-serif;
}

/* MXP label - same size as paragraph text */
.spnTutIntroMXPLabel {
    font-size: 16px;
}

/* ================================ */
/* Icon Containers                  */
/* ================================ */

.divTutIntroIconContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 0 22px 0;
}

.imgTutIntroMXPIcon {
    width: 44px;
    margin-bottom: 10px;
}

.imgTutIntroPlayedFullyStampIcon {
    width: 56px;
    height: auto;
}

.imgTutIntroCplMedal {
    width: 36px;
    height: auto;
}

.imgTutIntroCoinIcon {
    width: 28px;
    height: 28px;
}

/* ================================ */
/* Treasure Cycle Animation         */
/* ================================ */

.divTutIntroTreasureCycle {
    position: relative;
    width: 160px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.divTutIntroIconStack {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
}

/* Medal stack - fades in first */
.divTutIntroMedalStack {
    animation: cycleFadeInOut 9s ease-in-out infinite;
    animation-delay: 0s;
}

/* Coin stack - fades in after medals */
.divTutIntroCoinStack {
    animation: cycleFadeInOut 9s ease-in-out infinite;
    animation-delay: 3s;
}

/* Ring - fades in after coins */
.divTutIntroRingStack {
    animation: cycleFadeInOut 9s ease-in-out infinite;
    animation-delay: 6s;
}

/* Overlapping stack positions for medals */
.divTutIntroMedalStack .TutIntroStackPos1 { z-index: 1; margin-right: -14px; }
.divTutIntroMedalStack .TutIntroStackPos2 { z-index: 2; margin-right: -14px; }
.divTutIntroMedalStack .TutIntroStackPos3 { z-index: 3; margin-right: -14px; }
.divTutIntroMedalStack .TutIntroStackPos4 { z-index: 4; margin-right: -14px; }
.divTutIntroMedalStack .TutIntroStackPos5 { z-index: 5; }

/* Overlapping stack positions for coins */
.divTutIntroCoinStack .TutIntroStackPos1 { z-index: 1; margin-right: -12px; }
.divTutIntroCoinStack .TutIntroStackPos2 { z-index: 2; margin-right: -12px; }
.divTutIntroCoinStack .TutIntroStackPos3 { z-index: 3; margin-right: -12px; }
.divTutIntroCoinStack .TutIntroStackPos4 { z-index: 4; }

/* Glowing Ring */
.divTutIntroRingStack .imgTutIntroGRingIcon {
    width: 28px;
    height: auto;
}

@keyframes cycleFadeInOut {
    0% { opacity: 0; }
    4% { opacity: 0; }
    10% { opacity: 1; }
    24% { opacity: 1; }
    34% { opacity: 0; }
    100% { opacity: 0; }
}

/* ================================ */
/* Navigation Container             */
/* ================================ */

.divTutIntroNavigationContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 16px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.divTutIntroNavButtonsRow {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.divTutIntroCTARow {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.divTutIntroCTARowPrimary {
    margin-bottom: 4px;
}

.divTutIntroCTARowSecondary {
    margin-top: 4px;
}

.divTutIntroCTAIntro {
    display: flex;
    align-items: center;
}

.spnTutIntroCTAIntro {
    font-family: Rubik_Regular, sans-serif;
    font-size: 13px;
    color: var(--c6);
    margin-bottom: 4px;
}

.divTutIntroFinalCTA {
    gap: 12px;
}

/* ================================ */
/* Navigation Buttons               */
/* ================================ */

.divTutIntroNavBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 36px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.divTutIntroNavBtn.btnTutIntroActive {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--button_glassmorphic_brd);
    color: var(--c9);
}

.divTutIntroNavBtn.btnTutIntroActive:focus-within {
    background: rgba(0, 0, 0, 0.9);
    color: var(--c7);
    outline: 1px solid var(--pf_orange);
}

.divTutIntroNavBtn.btnTutIntroInactive {
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid transparent;
    cursor: default;
    opacity: 0.5;
}

.divTutIntroNavBtn.btnTutIntroSecondary {
    background: transparent;
    border: 1px solid var(--c5);
}

.divTutIntroNavBtn.btnTutIntroSecondary:active {
    border-color: var(--c7);
    background: rgba(255, 255, 255, 0.1);
}

.aTutIntroNavBtn,
.spnTutIntroNavBtn {
    font-family: Rubik_Medium, sans-serif;
    font-size: 12px;
    color: var(--c9);
    text-decoration: none;
    line-height: 36px;
    padding: 0 16px;
    text-align: center;
}

.btnTutIntroInactive .spnTutIntroNavBtn {
    color: var(--c9);
}

/* ================================ */
/* CTA Buttons                      */
/* ================================ */

.divTutIntroCTABtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 21px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 280px;
}

.divTutIntroCTABtn.btnTutIntroPrimary {
    background: var(--pf_orange);
    border: 2px solid var(--pf_orange);
}

.divTutIntroCTABtn.btnTutIntroPrimary:active {
    background: rgba(255, 131, 0, 0.8);
}

.divTutIntroCTABtn.btnTutIntroSecondary {
    background: transparent;
    border: 2px solid var(--c4);
}

.divTutIntroCTABtn.btnTutIntroSecondary:active {
    border-color: var(--pf_orange);
    background: rgba(255, 131, 0, 0.1);
}

.aTutIntroCTABtn {
    font-family: Rubik_Medium, sans-serif;
    font-size: 13px;
    text-decoration: none;
    padding: 0 20px;
    line-height: 40px;
    width: 100%;
    text-align: center;
}

.btnTutIntroPrimary .aTutIntroCTABtn {
    color: var(--c0);
}

.btnTutIntroSecondary .aTutIntroCTABtn {
    color: var(--c7);
}

/* ================================ */
/* Footer                           */
/* ================================ */

.footerHero {
    position: relative;
    bottom: auto;
    left: auto;
}

.divTutIntroContactContainer {
    text-align: center;
    margin-bottom: 1.1em;
}

.aTutIntroContact {
    line-height: 1.5em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aTutIntroContact:active {
    color: var(--pf_orange);
    text-decoration: underline;
}

/* ================================ */
/* Very Small Screens (<400px)      */
/* ================================ */

@media screen and (max-width: 399px) {
    .spnHeroLogoText {
        font-size: 28px;
    }
    
    .spnHeroTagline {
        font-size: 18px;
    }
    
    .h2TutIntroTitle {
        font-size: 20px;
    }
    
    .pTutIntroText {
        font-size: 13px;
    }
    
    .divTutIntroCTABtn {
        max-width: 240px;
    }
}

/* ================================ */
/* Reduced Motion Support           */
/* ================================ */

@media (prefers-reduced-motion: reduce) {
    .divHeroBrand,
    .h1HeroHeadline,
    .h2TutIntroTitle,
    .divTutIntroBody,
    .divTutIntroNavigationContainer,
    .divTutIntroCTAInPanel {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* Disable button transitions */
    .divTutIntroNavBtn,
    .divTutIntroCTABtn,
    .aTutIntroTopLink,
    .imgHeroPlayFullyLogoIcon,
    .spnHeroLogoText {
        transition: none;
    }

    /* Treasure cycle - show medals only when reduced motion */
    .divTutIntroMedalStack,
    .divTutIntroCoinStack,
    .divTutIntroRingStack {
        animation: none;
    }
    .divTutIntroMedalStack {
        opacity: 1;
    }
}

body.reduced-motion .divHeroBrand,
body.reduced-motion .h1HeroHeadline,
body.reduced-motion .h2TutIntroTitle,
body.reduced-motion .divTutIntroBody,
body.reduced-motion .divTutIntroNavigationContainer {
    animation: none;
    opacity: 1;
    transform: none;
}

body.reduced-motion .divTutIntroMedalStack,
body.reduced-motion .divTutIntroCoinStack,
body.reduced-motion .divTutIntroRingStack {
    animation: none;
}

body.reduced-motion .divTutIntroMedalStack {
    opacity: 1;
}
