/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #0077b6 0%, #0056b3 100%);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section .logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    background: white;
    color: #0077b6;
}

.register-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
    padding-bottom: 80px;
}

/* Header Banner */
.header-banner {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 0;
  z-index: 10;
}

.video-marquee-content {
  display: flex;
  animation: videoMarquee 20s linear infinite;
  white-space: nowrap;
}

.video-marquee-text {
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding-right: 50px;
}

@keyframes videoMarquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Carousel Section */
.carousel-section {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 20%;
    height: 100%;
    padding: 0 2px;
    box-sizing: border-box;
}

.carousel-slide:first-child {
    padding-left: 0;
}

.carousel-slide:last-child {
    padding-right: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: transparent;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, #0077b6 0%, #0056b3 100%);
    padding: 12px 16px;
    margin-top: -1px;
}

.announcement-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.announcement-icon {
    position: relative;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.announcement-content {
    flex: 1;
    overflow: hidden;
}

.announcement-title {
    color: white;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.marquee-wrapper {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 8px 0;
}

.marquee-content {
    display: flex;
    animation: marquee 15s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.donor-info {
    color: white;
    font-size: 12px;
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Welfare Section */
.welfare-section {
    padding: 20px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #0077b6;
    font-size: 18px;
    font-weight: 700;
}

.section-header i {
    font-size: 24px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.project-card {
    min-width: auto;
}

.project-card {
    background: linear-gradient(135deg, #0077b6 0%, #0056b3 100%),
                radial-gradient(circle at 15% 25%, rgba(255,255,255,0.5) 0%, transparent 60%),
                radial-gradient(circle at 85% 75%, rgba(255,255,255,0.4) 0%, transparent 50%),
                radial-gradient(circle at 45% 55%, rgba(255,255,255,0.3) 0%, transparent 40%);
    background-blend-mode: normal;
    border-radius: 12px;
    padding: 12px 12px 12px 18px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                0 0 0 3px rgba(135, 206, 250, 0.6),
                0 0 20px rgba(135, 206, 250, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.bottom-image-section {
    margin-top: -10px;
    padding: 0 0 5px 0;
}

.bottom-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bottom-image-text {
    text-align: center;
    color: #0077b6;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
    margin-bottom: 2px;
}

.project-icon img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.project-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Auth Page Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('image/Copilot_20260420_072017.png') center center/cover no-repeat;
    padding: 20px;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
    z-index: 1;
}

.auth-card {
    position: relative;
    z-index: 2;
}

.auth-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 15px;
}

.auth-logo {
    width: 80px;
    height: auto;
    border-radius: 12px;
    margin-top: 0px;
    margin-bottom: 5px;
}

.auth-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 119, 182, 0.6), transparent);
    margin: 5px 0;
    filter: blur(0.5px);
}

.auth-title {
    color: #0077b6;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #0077b6;
    color: white;
    border-color: #0077b6;
}

.auth-tab:hover:not(.active) {
    border-color: #0077b6;
    color: #0077b6;
}

.auth-form {
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 12px;
    height: 12px;
    cursor: pointer;
}

.forgot-password {
    color: #0077b6;
    font-size: 11px;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 12px;
    height: 12px;
    cursor: pointer;
    margin-top: 2px;
}

.terms-checkbox a {
    color: #0077b6;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #0077b6 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.auth-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-home:hover {
    color: #0077b6;
}

/* Register Page Styles */
.register-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0077b6 0%, #0056b3 100%);
    padding: 20px;
}

.register-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-logo {
    width: 80px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

.register-title {
    color: #0077b6;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.register-form {
    margin-bottom: 20px;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form .form-group label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.register-form .form-group input[type="text"],
.register-form .form-group input[type="email"],
.register-form .form-group input[type="tel"],
.register-form .form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.register-form .form-group input:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.register-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0077b6 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.register-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.register-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.login-link {
    color: #0077b6;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #e0e5ec;
  margin: 0;
  padding: 0;
}

.app-container {
  max-width: 420px;
  margin: auto;
  background: linear-gradient(180deg, #1a6fd4 0%, #c8dff7 50%, #dbeafe 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  text-align: center;
  background: linear-gradient(180deg, #0a3d8f 0%, #1a6fd4 60%, #2a7fd4 100%);
  color: #fff;
  padding: 20px 20px 25px;
  position: relative;
}

.timer-wrapper {
  display: block;
  background: url('image/365c541e-564b-42da-aa9f-c293d3133060.png') center center/cover no-repeat;
  margin: 10px -20px -25px;
  padding: 20px;
  position: relative;
  width: calc(100% + 40px);
  box-sizing: border-box;
}

.timer-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 61, 143, 0.2);
}

.app-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.round {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 4px 24px;
  font-weight: 700;
  margin: 6px 0 10px;
  font-size: 18px;
  position: relative;
}

.round::before,
.round::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
}

.round::before {
  right: 100%;
  margin-right: 10px;
  background: linear-gradient(to left, transparent, rgba(255,255,255,0.8));
}

.round::after {
  left: 100%;
  margin-left: 10px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
}

.timer-label {
  margin: 0 0 10px;
  font-size: 13px;
  opacity: 0.9;
}

.timer {
  display: inline-block;
  background: linear-gradient(180deg, #1255b0, #1a6fd4);
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.timer #countdown {
  position: relative;
  z-index: 2;
}

.timer span {
  animation: none;
}

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

/* Fundraising */
.fund-section {
  padding: 10px 10px 5px;
}

.fund-box {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  padding: 15px;
  gap: 15px;
}

.fund-logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.fund-info {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.fund-info h2 {
  color: #000080;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.progress {
  background: #eee;
  border-radius: 10px;
  height: 8px;
  margin: 6px auto;
  width: 85%;
}

.progress-bar {
  height: 10px;
  background: #4CAF50;
  border-radius: 10px;
  width: 0;
  animation: loadBar 2s forwards;
}

@keyframes loadBar {
  from { width: 0; }
  to { width: 20%; }
}

.raised {
  color: #4CAF50;
  font-weight: 700;
}

.needed {
  color: #FF5722;
  font-weight: 700;
}

.fund-info p {
  margin: 0;
  font-size: 13px;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(90deg, #007AFF, #00C6FF);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.8);
}

/* Data Section */
.data-section {
  padding: 10px 10px 75px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.data-row {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  padding: 22px 15px;
  text-align: center;
  flex: 1;
}

.data-row h3 {
  color: #000080;
  font-weight: bold;
  border-bottom: 1px solid rgba(0, 0, 128, 0.3);
  display: block;
  width: 100%;
  margin: 0 auto 15px auto;
  padding-bottom: 2px;
}

.data-title {
  color: #000080;
  font-weight: bold;
  font-size: 16px;
  display: block;
  width: 100%;
  margin: 0 auto 12px auto;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.neo-button {
  flex: 1;
  min-width: 0;
  height: 56px;
  background-color: #f0f7ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid rgba(200,220,255,0.8);
  cursor: pointer;
  transition: transform 0.1s;
  color: #333;
}

.neo-button img {
  width: 20px;
  height: auto;
}

.neo-button span {
  font-size: 16px;
  font-weight: bold;
}

.neo-button .fa-scroll {
  color: #d4a017;
}

.neo-button .fa-swords {
  color: #3498db;
}

.neo-button .fa-sack-dollar {
  color: #2ecc71;
}

.neo-button .fa-bolt {
  color: #e67e22;
}

.icon-t {
  color: #d4a017;
}

.icon-x {
  color: #3498db;
}

.icon-l {
  color: #2ecc71;
}

.icon-c {
  color: #e67e22;
}

.neo-button:active {
  box-shadow: inset 3px 3px 6px #c8d0da,
              inset -3px -3px 6px #ffffff;
  transform: scale(0.95);
}

/* Navigation */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  padding: 8px 0 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.nav-item {
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.nav-item i {
  font-size: 22px;
  display: block;
  transition: all 0.3s ease;
}

.nav-item.active {
  color: #007AFF;
}

.nav-item:hover {
  color: #007AFF;
}

.nav-center {
  position: relative;
  margin-top: -28px;
  color: #007AFF;
}

.nav-center-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1565c0, #1e88e5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.5);
  border: 3px solid #ffffff;
  position: relative;
  overflow: visible;
}

.nav-center-btn i {
  font-size: 24px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

/* Mobile Optimizations */
@media (max-width: 420px) {
  .app-container {
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
  }

  .app-header {
    padding: 15px;
  }

  .app-header h1 {
    font-size: 18px;
  }

  .fund-box {
    padding: 15px;
  }

  .fund-logo img {
    width: 100px;
    height: 100px;
  }

  .fund-info {
    margin-left: 12px;
  }

  .fund-info h2 {
    font-size: 16px;
  }

  .data-section {
    padding: 15px;
    padding-bottom: 80px;
  }

  .data-row {
    padding: 10px;
  }

  .data-row h3 {
    font-size: 14px;
  }

  .btn-data {
    font-size: 14px;
    padding: 8px 0;
  }

  .bottom-nav {
    padding: 8px 0;
  }

  .nav-item i {
    font-size: 18px;
  }

  .nav-item {
    font-size: 11px;
  }
}

/* Game Page Styles */
.game-container {
  max-width: 420px;
  margin: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #007AFF, #00C6FF);
  color: #fff;
  padding: 16px 20px;
  font-weight: 600;
}

.game-round {
  font-size: 18px;
}

.game-timer {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-timer i {
  color: #fff;
}

.fundraising-section {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.fundraising-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fundraising-info {
  margin-left: 15px;
}

.fundraising-title {
  font-size: 18px;
  font-weight: 700;
  color: #007AFF;
  margin-bottom: 8px;
}

.fundraising-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fund-value.raised {
  color: #4CAF50;
  font-weight: 600;
}

.fund-value.needed {
  color: #FF6B6B;
  font-weight: 600;
}

.selection-section {
  padding: 20px;
  flex: 1;
}

.data-row {
  background: #f5faff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.data-label {
  font-weight: 600;
  color: #007AFF;
  margin-bottom: 8px;
}

.data-buttons {
  display: flex;
  gap: 10px;
}

.btn-tx,
.btn-lc {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-tx {
  background: #007AFF;
  color: #fff;
}

.btn-lc {
  background: #00C6FF;
  color: #fff;
}

.btn-tx:hover,
.btn-lc:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.game-nav {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 10px 0;
}

.nav-item {
  text-align: center;
  color: #007AFF;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.nav-item:hover {
  color: #00C6FF;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    box-sizing: border-box;
}

.image-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #FF5722;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    transition: all 0.3s ease;
    min-width: 60px;
}

.footer-item:hover,
.footer-item.active {
    color: #0077b6;
}

.icon-wrapper {
    font-size: 20px;
}

.footer-text {
    font-size: 11px;
    font-weight: 500;
}

.center-item {
    position: relative;
}

.center-button {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0077b6 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-top: -28px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s infinite;
}

.spark-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.spark-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.3s;
}

.spark-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 0.6s;
}

.spark-4 {
    bottom: 10%;
    right: 20%;
    animation-delay: 0.9s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.glow-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.ripple-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .header {
        padding: 16px 24px;
    }

    .logo-img {
        width: 100px;
    }

    .auth-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .carousel-slide {
        min-width: 20%;
    }

    .carousel-container {
        height: 150px;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .carousel-btn-prev {
        left: 20px;
    }

    .carousel-btn-next {
        right: 20px;
    }

    .carousel-dot {
        width: 12px;
        height: 12px;
    }

    .announcement-bar {
        padding: 16px 24px;
    }

    .announcement-title {
        font-size: 15px;
    }

    .donor-info {
        font-size: 13px;
    }

    .welfare-section {
        padding: 30px 24px;
    }

    .section-header {
        font-size: 22px;
    }

    .section-header i {
        font-size: 28px;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        overflow-x: visible;
    }

    .project-card {
        min-width: auto;
    }

    .project-card {
        padding: 24px;
    }

    .project-icon img {
        width: 80px;
        height: 80px;
    }

    .project-title {
        font-size: 15px;
    }

    .footer-container {
        padding: 12px 24px;
    }

    .icon-wrapper {
        font-size: 24px;
    }

    .footer-text {
        font-size: 12px;
    }

    .center-button {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-top: -32px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .header {
        padding: 20px 32px;
    }

    .logo-img {
        width: 120px;
    }

    .auth-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .carousel-container {
        height: 180px;
    }

    .carousel-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .carousel-btn-prev {
        left: 30px;
    }

    .carousel-btn-next {
        right: 30px;
    }

    .carousel-dot {
        width: 14px;
        height: 14px;
    }

    .announcement-bar {
        padding: 20px 32px;
    }

    .announcement-container {
        gap: 16px;
    }

    .announcement-icon {
        font-size: 28px;
    }

    .announcement-title {
        font-size: 16px;
    }

    .donor-info {
        font-size: 14px;
    }

    .welfare-section {
        padding: 40px 32px;
    }

    .section-header {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .section-header i {
        font-size: 32px;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
        overflow-x: visible;
    }

    .project-card {
        min-width: auto;
    }

    .project-card {
        padding: 28px;
    }

    .project-icon img {
        width: 100px;
        height: 100px;
    }

    .project-title {
        font-size: 16px;
    }

    .footer-container {
        padding: 16px 32px;
        max-width: 800px;
    }

    .icon-wrapper {
        font-size: 26px;
    }

    .footer-text {
        font-size: 13px;
    }

    .center-button {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-top: -35px;
    }

    .main-content {
        padding-bottom: 100px;
    }
}
