/* Game Page Specific Styles */

/* Hero Banner */
.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

/* Hero Background Image with Zoom Animation */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: hero-zoom 0s linear infinite;
}

@keyframes hero-zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* TV Static Canvas */
.tv-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.45;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Ghost Image Effect */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero2.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: ghost-flicker 1s infinite;
}

@keyframes ghost-flicker {
    0% { 
        opacity: 0;
        transform: translate(0, 0);
    }
    2% { 
        opacity: 0.35;
        transform: translate(4px, 3px);
    }
    4% { 
        opacity: 0.25;
        transform: translate(-3px, -2px);
    }
    6% { 
        opacity: 0.4;
        transform: translate(3px, -3px);
    }
    8% { 
        opacity: 0.2;
        transform: translate(-2px, 2px);
    }
    10% { 
        opacity: 0;
        transform: translate(0, 0);
    }
    25% {
        opacity: 0;
        transform: translate(0, 0);
    }
    27% {
        opacity: 0.45;
        transform: translate(-5px, 2px);
    }
    29% {
        opacity: 0.3;
        transform: translate(2px, -3px);
    }
    31% {
        opacity: 0.38;
        transform: translate(-2px, 4px);
    }
    33% {
        opacity: 0.22;
        transform: translate(3px, -2px);
    }
    35% {
        opacity: 0;
        transform: translate(0, 0);
    }
    50% {
        opacity: 0;
        transform: translate(0, 0);
    }
    52% {
        opacity: 0.42;
        transform: translate(3px, -2px);
    }
    54% {
        opacity: 0.28;
        transform: translate(-4px, 3px);
    }
    56% {
        opacity: 0.36;
        transform: translate(2px, 2px);
    }
    58% {
        opacity: 0.24;
        transform: translate(-3px, -2px);
    }
    60% {
        opacity: 0;
        transform: translate(0, 0);
    }
    80% {
        opacity: 0;
        transform: translate(0, 0);
    }
    82% {
        opacity: 0.5;
        transform: translate(4px, -3px);
    }
    84% {
        opacity: 0.32;
        transform: translate(-3px, 2px);
    }
    86% {
        opacity: 0.44;
        transform: translate(2px, 3px);
    }
    88% {
        opacity: 0.26;
        transform: translate(-2px, -3px);
    }
    90% {
        opacity: 0;
        transform: translate(0, 0);
    }
    100% { 
        opacity: 0;
        transform: translate(0, 0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 4;
}

/* Smoke Animation */
.smoke-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.smoke {
    position: absolute;
    bottom: -250px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: smoke-rise 15s infinite ease-in-out;
    opacity: 0;
}

.smoke-1 {
    left: 0%;
    animation-delay: 0s;
    animation-duration: 16s;
}

.smoke-2 {
    left: 25%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.smoke-3 {
    left: 50%;
    animation-delay: 6s;
    animation-duration: 15s;
}

.smoke-4 {
    left: 70%;
    animation-delay: 10s;
    animation-duration: 17s;
}

.smoke-5 {
    left: 85%;
    animation-delay: 2s;
    animation-duration: 19s;
}

.smoke-6 {
    left: 10%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.smoke-7 {
    left: 35%;
    animation-delay: 10s;
    animation-duration: 16s;
}

.smoke-8 {
    left: 60%;
    animation-delay: 14s;
    animation-duration: 18s;
}

.smoke-9 {
    left: 80%;
    animation-delay: 3s;
    animation-duration: 17s;
}

.smoke-10 {
    left: 45%;
    animation-delay: 7s;
    animation-duration: 19s;
}

@keyframes smoke-rise {
    0% {
        bottom: -250px;
        opacity: 0;
        transform: translateX(0px) translateY(0) scale(0.4);
    }
    10% {
        opacity: 0.9;
        transform: translateX(-40px) translateY(-100px) scale(0.6);
    }
    25% {
        opacity: 0.8;
        transform: translateX(50px) translateY(-250px) scale(0.9);
    }
    40% {
        opacity: 0.7;
        transform: translateX(-30px) translateY(-400px) scale(1.1);
    }
    55% {
        opacity: 0.6;
        transform: translateX(40px) translateY(-550px) scale(1.3);
    }
    70% {
        opacity: 0.4;
        transform: translateX(-20px) translateY(-700px) scale(1.5);
    }
    85% {
        opacity: 0.2;
        transform: translateX(20px) translateY(-850px) scale(1.7);
    }
    100% {
        bottom: 120vh;
        opacity: 0;
        transform: translateX(0) translateY(-1000px) scale(2);
    }
}

.hero-content {
    position: relative;
    z-index: 6;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 0;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0);
    opacity: 0.95;
}

/* Hero Buttons Section */
.hero-buttons-section {
    background: white;
    padding: 3rem 2rem;
    position: relative;
    z-index: 3;
}

.hero-buttons-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
	text-align: center;
    border-radius: 0px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: "Noto Sans HK", sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #8c897e 0%, #706d61 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 102, 102, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
	box-shadow: 0 4px 15px rgba(102, 102, 102, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #8c897e 0%, #706d61 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 102, 102, 0.2);
}

.btn-game {
    background: linear-gradient(135deg, #8893a5 0%, #8893a5 100%);
    color: white;
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.1);
	width: 100%;
}

.btn-game:hover {
    transform: translateY(0px) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 102, 102, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 35px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* Main Content */
.main-content {
    background: white;
    position: relative;
    z-index: 3;
}

/* Content Section */
.content-section {
    padding: 6rem 2rem;
    background: white;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Random Blink Effect for Characters */
.blink-char {
    display: inline-block;
    animation: random-blink 1s infinite;
}

/* Hero Title: 遊戲開發日誌 (6 characters) */
.hero-title .blink-char:nth-child(1) {
    animation-delay: 0.3s;
    animation-duration: 3.8s;
}

.hero-title .blink-char:nth-child(2) {
    animation-delay: 1.6s;
    animation-duration: 4.3s;
}

.hero-title .blink-char:nth-child(3) {
    animation-delay: 0.7s;
    animation-duration: 3.5s;
}

.hero-title .blink-char:nth-child(4) {
    animation-delay: 2.1s;
    animation-duration: 4.8s;
}

.hero-title .blink-char:nth-child(5) {
    animation-delay: 0.9s;
    animation-duration: 4.1s;
}

.hero-title .blink-char:nth-child(6) {
    animation-delay: 1.3s;
    animation-duration: 3.9s;
}

/* Section Title: 從玩家到開發者 (7 characters) */
.section-title .blink-char:nth-child(1) {
    animation-delay: 0.2s;
    animation-duration: 4s;
}

.section-title .blink-char:nth-child(2) {
    animation-delay: 1.5s;
    animation-duration: 3.5s;
}

.section-title .blink-char:nth-child(3) {
    animation-delay: 0.8s;
    animation-duration: 5s;
}

.section-title .blink-char:nth-child(4) {
    animation-delay: 2.3s;
    animation-duration: 3.2s;
}

.section-title .blink-char:nth-child(5) {
    animation-delay: 0.5s;
    animation-duration: 4.5s;
}

.section-title .blink-char:nth-child(6) {
    animation-delay: 1.8s;
    animation-duration: 3.8s;
}

.section-title .blink-char:nth-child(7) {
    animation-delay: 1.1s;
    animation-duration: 4.2s;
}

/* Subsection Title: 電子遊戲設計的四大挑戰（魔王）(15 characters) */
.subsection-title .blink-char:nth-child(1) {
    animation-delay: 0.4s;
    animation-duration: 4.2s;
}

.subsection-title .blink-char:nth-child(2) {
    animation-delay: 1.9s;
    animation-duration: 3.7s;
}

.subsection-title .blink-char:nth-child(3) {
    animation-delay: 0.6s;
    animation-duration: 4.6s;
}

.subsection-title .blink-char:nth-child(4) {
    animation-delay: 2.4s;
    animation-duration: 3.3s;
}

.subsection-title .blink-char:nth-child(5) {
    animation-delay: 1.2s;
    animation-duration: 4.9s;
}

.subsection-title .blink-char:nth-child(6) {
    animation-delay: 0.3s;
    animation-duration: 3.9s;
}

.subsection-title .blink-char:nth-child(7) {
    animation-delay: 1.7s;
    animation-duration: 4.4s;
}

.subsection-title .blink-char:nth-child(8) {
    animation-delay: 0.9s;
    animation-duration: 3.6s;
}

.subsection-title .blink-char:nth-child(9) {
    animation-delay: 2.2s;
    animation-duration: 4.1s;
}

.subsection-title .blink-char:nth-child(10) {
    animation-delay: 0.7s;
    animation-duration: 4.7s;
}

.subsection-title .blink-char:nth-child(11) {
    animation-delay: 1.4s;
    animation-duration: 3.4s;
}

.subsection-title .blink-char:nth-child(12) {
    animation-delay: 2.0s;
    animation-duration: 4.3s;
}

.subsection-title .blink-char:nth-child(13) {
    animation-delay: 0.5s;
    animation-duration: 3.8s;
}

.subsection-title .blink-char:nth-child(14) {
    animation-delay: 1.6s;
    animation-duration: 4.5s;
}

.subsection-title .blink-char:nth-child(15) {
    animation-delay: 1.0s;
    animation-duration: 4.0s;
}

/* Board Game Title: 桌遊是理想的新手村 (9 characters) */
.boardgame-title .blink-char:nth-child(1) {
    animation-delay: 0.6s;
    animation-duration: 4.4s;
}

.boardgame-title .blink-char:nth-child(2) {
    animation-delay: 1.8s;
    animation-duration: 3.6s;
}

.boardgame-title .blink-char:nth-child(3) {
    animation-delay: 0.4s;
    animation-duration: 4.8s;
}

.boardgame-title .blink-char:nth-child(4) {
    animation-delay: 2.1s;
    animation-duration: 3.3s;
}

.boardgame-title .blink-char:nth-child(5) {
    animation-delay: 0.8s;
    animation-duration: 4.6s;
}

.boardgame-title .blink-char:nth-child(6) {
    animation-delay: 1.5s;
    animation-duration: 3.9s;
}

.boardgame-title .blink-char:nth-child(7) {
    animation-delay: 0.3s;
    animation-duration: 4.2s;
}

.boardgame-title .blink-char:nth-child(8) {
    animation-delay: 1.9s;
    animation-duration: 3.7s;
}

.boardgame-title .blink-char:nth-child(9) {
    animation-delay: 1.1s;
    animation-duration: 4.5s;
}

@keyframes random-blink {
    0%, 49%, 51%, 85%, 89%, 90%, 93%, 100% {
        opacity: 1;
		font-weight: 600;
    }
	86%, 88%, 90%, 92% {
        opacity: 1;
		font-weight: 200;
    }
    50% {
        opacity: .5;
		font-weight: 600;
		font-family: "Noto Serif HK", serif;		
    }
}

.subsection-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--primary);
    margin: 4rem 0 2rem;
    text-align: center;
}

.content-text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2;
    color: var(--dark);
    margin-bottom: 2rem;
	text-align: justify;
}

.content-text p {
    margin-bottom: 1.5rem;
}

/* Challenge Grid */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.challenge-card {
    background: #fafafa;
    border-radius: 0px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
	border-top: 1px solid var(--primary);
}



.challenge-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.challenge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.challenge-content {
    text-align: center;
}

.challenge-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

.challenge-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2;
    color: var(--dark);
    text-align: justify;
}

/* Board Game Section (Dark Background) */
.boardgame-section {
    position: relative;
    padding: 8rem 2rem;
    background: #503e36;
    overflow: hidden;
}

.boardgame-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/boardgame.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
	background-attachment: fixed;
    opacity: 0.2;
    z-index: 0;
}

.boardgame-section .container {
    position: relative;
    z-index: 1;
}

.boardgame-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    color: white;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0);
}

.boardgame-text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2;
    color: rgba(255, 255, 255, 1);
    max-width: 900px;
    margin: 0 auto;
}

.boardgame-text p {
	text-align: justify;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* My Game Section */
.mygame-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, white 0%, #fff 100%);
}

.game-showcase {
    /* display: grid;
    grid-template-columns: 1fr 1.2fr; */
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid var(--primary);
    border-radius: 0px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0);
}

.game-image {
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease;
}

.game-image:hover {
    transform: scale(1.03);
}

.game-image img {
    width: 100%;
    height: auto;
    display: block;
}

.game-info {
    padding: 1rem;
}

.game-title {
	font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
	margin-top: 1rem;

}

.game-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2;
    color: var(--dark);
	text-align: justify;
    margin-bottom: 2rem;
}

.game-description p {
    margin-bottom: 1.5rem;
}

.game-cta-text {
    font-weight: 600;
    color: var(--secondary);
}

/* Footer */
.footer {
    background: #706d61;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-break {
	display: none;
}

.remark{
	font-size: clamp(0.9rem, 1.8vw, 0.9rem);
	line-height: 2;
    color: var(--dark);
    margin-top: 2rem;
	text-align: justify;	
}



/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .game-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .challenge-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
	.mobile-break {
		display: block; /* or display: inline; */
	}
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons-section {
        padding: 2rem 1.5rem;
    }

    .hero-buttons-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1.2rem;
        width: 100%;
    }




    .content-text {
        font-size: 1rem;
    }

    .content-section,
    .mygame-section,
    .boardgame-section {
        padding: 4rem 1.5rem;
    }
    

    
    .boardgame-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .game-showcase {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .game-info {
        padding: 0;
    }
	
	.challenge-card {
    padding: 1.5rem 1rem;
}
}
@supports (-webkit-touch-callout: none) {
  .boardgame-background {
    background-attachment: scroll;
  }
}