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

/* Ensure all sections are visible */
section {
    position: relative;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Ensure proper stacking context for game pages */
.game-interface .container {
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #667eea;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background: white;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Featured Homes */
.featured-homes {
    padding: 60px 0;
    background: #f8fafc;
    margin-bottom: 60px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.featured-homes h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
}

.homes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.home-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.home-image {
    position: relative;
    height: 250px;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-location {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.home-details {
    padding: 1.5rem;
}

.home-details h3 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.home-details p {
    margin-bottom: 0.5rem;
    color: #64748b;
}

/* Recent Games */
.recent-games {
    padding: 60px 0;
    background: white;
    margin-bottom: 60px;
    border-top: 1px solid #e2e8f0;
}

.recent-games h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
}

.games-list {
    margin-top: 3rem;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.game-item:last-child {
    border-bottom: none;
}

.player-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 600;
    color: #1e293b;
}

.game-date {
    font-size: 0.875rem;
    color: #64748b;
}

.game-result {
    text-align: right;
}

.score {
    display: block;
    font-weight: 600;
    color: #667eea;
}

.accuracy {
    font-size: 0.875rem;
    color: #64748b;
}

/* Top Players */
.top-players {
    padding: 60px 0;
    background: #f8fafc;
    margin-bottom: 60px;
    border-top: 1px solid #e2e8f0;
}

.top-players h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.player-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.player-rank {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.player-avatar {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #64748b;
    font-size: 1.5rem;
}

.player-info h3 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.total-score {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.games-played {
    font-size: 0.875rem;
    color: #64748b;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #475569;
    color: #cbd5e1;
}

/* Game Interface Styles */
.game-interface {
    padding: 40px 0;
}

/* Game Layout - Two Panel Design */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.home-panel {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.game-panel {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
    z-index: 10;
}

.game-content h2 {
    color: #1e293b;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.game-question {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Enhanced Price Input Styling */
.price-input-group {
    margin-bottom: 2rem;
}

.price-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.price-input .currency {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 600;
    font-size: 1.125rem;
}

.price-input input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 500;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.price-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.price-suggestions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.suggestion-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Enhanced Submit Button */
.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.user-stats span {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Remove old home-display styles since we're using new layout */

.home-photos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-thumb img:hover {
    opacity: 0.8;
}

.home-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.home-specs h2 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.home-specs p {
    margin-bottom: 0.5rem;
    color: #64748b;
}

.home-location h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.location-map {
    height: 200px;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ensure Leaflet map is properly contained */
.location-map .leaflet-container {
    position: relative !important;
    z-index: 1 !important;
}

.location-map .leaflet-pane {
    z-index: 1 !important;
}

.location-map .leaflet-control-container {
    z-index: 2 !important;
}

.location-map .leaflet-popup-pane {
    z-index: 3 !important;
}

.location-map .leaflet-marker-pane {
    z-index: 4 !important;
}

/* Prevent map from floating over other elements */
.home-location {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Additional Leaflet containment */
.location-map .leaflet-tile-container {
    z-index: 1 !important;
}

.location-map .leaflet-tile {
    z-index: 1 !important;
}

.location-map .leaflet-control-zoom {
    z-index: 2 !important;
}

.location-map .leaflet-control-attribution {
    z-index: 2 !important;
}

/* Ensure map doesn't break out of container */
.location-map .leaflet-map-pane {
    z-index: 1 !important;
}

.location-map .leaflet-shadow-pane {
    z-index: 1 !important;
}

.location-map .leaflet-tooltip-pane {
    z-index: 3 !important;
}

.location-scores {
    display: flex;
    gap: 1rem;
}

.score-item {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 500;
}

.score-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.home-features h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.home-description h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Hints Section */
.hints-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hints-section h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
}

.hints-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hint-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.hint-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hint-header i {
    color: #f59e0b;
}

.hint-type {
    font-weight: 500;
    color: #1e293b;
}

.hint-cost {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
}

.hint-text {
    margin-bottom: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.hint-btn.used {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Guess Form */
.guess-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guess-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.price-input-group {
    margin-bottom: 2rem;
}

.price-input-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #1e293b;
    text-align: center;
}

.price-input {
    position: relative;
    margin-bottom: 1rem;
}

.price-input .currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 600;
    color: #64748b;
}

.price-input input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 500;
    transition: border-color 0.3s ease;
}

.price-input input:focus {
    outline: none;
    border-color: #667eea;
}

.price-suggestions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.suggestion-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

.suggestion-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Game Result Styles */
.game-result {
    padding: 40px 0;
    text-align: center;
}

.game-result h1 {
    margin-bottom: 3rem;
    color: #1e293b;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.price-display.actual {
    color: #059669;
}

.score-display {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.accuracy-display {
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
}

.price-comparison {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bar-label {
    font-weight: 500;
    color: #64748b;
    min-width: 80px;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 1s ease;
}

.difference-text {
    font-size: 1.125rem;
    color: #1e293b;
    font-weight: 500;
}

.achievements-earned {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.achievements-earned h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.achievement i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.achievement strong {
    color: #92400e;
}

.achievement p {
    color: #92400e;
    margin: 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Leaderboard Styles */
.leaderboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.leaderboard-header h1 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.filter-controls {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #1e293b;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.leaderboard-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.leaderboard-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.leaderboard-table tr:hover {
    background: #f8fafc;
}

.leaderboard-table tr.current-user {
    background: #e0e7ff;
}

.rank {
    font-weight: 600;
    color: #1e293b;
}

.medal {
    font-size: 1.5rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    color: #1e293b;
}

.location {
    font-size: 0.875rem;
    color: #64748b;
}

.score-value {
    font-weight: 600;
    color: #667eea;
}

.score-label {
    font-size: 0.875rem;
    color: #64748b;
}

.accuracy-value {
    font-weight: 600;
    color: #f59e0b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

/* Current User Stats */
.current-user-stats {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.current-user-stats h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

/* Quick Actions */
.quick-actions {
    text-align: center;
    margin-bottom: 3rem;
}

.quick-actions .btn {
    margin: 0 0.5rem;
}

/* Authentication Styles */
.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
    font-size: 1.125rem;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.125rem;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #64748b;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-full {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.social-login {
    text-align: center;
}

.social-login p {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-social {
    flex: 1;
    max-width: 150px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.alert i {
    font-size: 1.25rem;
}

.success-actions {
    margin-top: 1rem;
    text-align: center;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.password-strength.very-weak {
    background: #fef2f2;
    color: #dc2626;
}

.password-strength.weak {
    background: #fffbeb;
    color: #d97706;
}

.password-strength.fair {
    background: #fef3c7;
    color: #92400e;
}

.password-strength.good {
    background: #ecfdf5;
    color: #059669;
}

.password-strength.strong {
    background: #f0f9ff;
    color: #0284c7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.close:hover {
    color: #1e293b;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.share-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.reddit {
    background: #ff4500;
    color: white;
}

.share-btn.email {
    background: #ea4335;
    color: white;
}

.share-btn.copy {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .home-display {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-panel {
        position: static;
        order: -1;
    }

    .result-summary {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .leaderboard-table {
        overflow-x: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
}

.hero-subtitle {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-subtitle p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-subtitle .register-link {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: none;
}

.hero-subtitle .register-link:hover {
    text-decoration: underline;
}

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

/* Guest Play Section */
.guest-play {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 4rem 0;
    margin: 2rem 0;
}

.guest-play-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.guest-play-text h2 {
    margin: 0 0 1rem 0;
    color: #0c4a6e;
    font-size: 2rem;
}

.guest-play-text p {
    margin: 0 0 2rem 0;
    color: #0369a1;
    font-size: 1.125rem;
    line-height: 1.6;
}

.guest-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0c4a6e;
}

.benefit i {
    color: #0284c7;
    font-size: 1.25rem;
}

.guest-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.guest-play-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-radius: 50%;
    color: white;
    font-size: 4rem;
    margin: 0 auto;
}

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

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

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

/* Profile Page Styles */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.member-since {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #374151;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.overview-card h3 {
    margin: 0 0 1.5rem 0;
    color: #111827;
    font-size: 1.25rem;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.recent-activity {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    color: #667eea;
    font-size: 1.25rem;
}

.activity-details {
    flex: 1;
}

.activity-text {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.no-activity {
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Statistics Grid */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.stats-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.stats-card h3 {
    margin: 0 0 1.5rem 0;
    color: #111827;
    font-size: 1.25rem;
}

.performance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.breakdown-label {
    font-weight: 500;
    color: #374151;
}

.breakdown-value {
    font-weight: 700;
    color: #667eea;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-2px);
}

.achievement-card.earned {
    border-left: 4px solid #10b981;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.achievement-info h4 {
    margin: 0 0 0.5rem 0;
    color: #111827;
}

.achievement-info p {
    margin: 0 0 0.75rem 0;
    color: #6b7280;
    line-height: 1.5;
}

.achievement-date {
    font-size: 0.875rem;
    color: #9ca3af;
}

.no-achievements {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-achievements i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Game History */
.history-container h3 {
    margin: 0 0 1.5rem 0;
    color: #111827;
    font-size: 1.5rem;
}

.game-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-history-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-location {
    font-weight: 600;
    color: #111827;
}

.game-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.game-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.game-score {
    font-weight: 700;
    color: #667eea;
}

.game-accuracy {
    font-size: 0.875rem;
    color: #6b7280;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
}

.view-all-games {
    text-align: center;
}

.no-games {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-games i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.settings-card h3 {
    margin: 0 0 1.5rem 0;
    color: #111827;
    font-size: 1.25rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.about-hero h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: #111827;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    margin: 0 0 1rem 0;
    color: #111827;
    font-size: 1.25rem;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.how-to-play {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 1rem 0;
    color: #111827;
    font-size: 1.5rem;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.score-tier {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.score-tier.perfect {
    border-left: 4px solid #10b981;
}

.score-tier.excellent {
    border-left: 4px solid #3b82f6;
}

.score-tier.good {
    border-left: 4px solid #8b5cf6;
}

.score-tier.fair {
    border-left: 4px solid #f59e0b;
}

.score-tier.average {
    border-left: 4px solid #ef4444;
}

.score-tier.below {
    border-left: 4px solid #6b7280;
}

.tier-header {
    margin-bottom: 0.75rem;
}

.tier-header h3 {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 1.125rem;
}

.tier-score {
    font-weight: 700;
    color: #667eea;
    font-size: 1.25rem;
}

.score-tier p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.feature-item i {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature-text h3 {
    margin: 0 0 0.75rem 0;
    color: #111827;
    font-size: 1.25rem;
}

.feature-text p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.benefit-card h3 {
    margin: 0 0 1rem 0;
    color: #111827;
    font-size: 1.25rem;
}

.benefit-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.getting-started {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.start-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.start-step h3 {
    margin: 0 0 1rem 0;
    color: #111827;
    font-size: 1.25rem;
}

.start-step p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
    line-height: 1.6;
}

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

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question h3 {
    margin: 0;
    color: #111827;
    font-size: 1.125rem;
}

.faq-question i {
    color: #6b7280;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    border-top: 1px solid #e5e7eb;
}

.faq-answer p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.contact-item i {
    color: #667eea;
    font-size: 2rem;
}

.contact-item h3 {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 1.125rem;
}

.contact-item p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive Design for Profile and About Pages */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-tabs {
        justify-content: flex-start;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .overview-grid,
    .statistics-grid,
    .achievements-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .guest-play-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .guest-play-image {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
}

/* Guest Notice Styles */
.guest-notice {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-content i {
    color: #d97706;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.notice-content h3 {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-size: 1.125rem;
}

.notice-content p {
    margin: 0;
    color: #92400e;
    line-height: 1.5;
}

.register-link {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
}

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

/* Game History Page Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.header-content h1 {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 2rem;
}

.header-content p {
    margin: 0;
    color: #6b7280;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.filters-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
}

.filter-actions {
    display: flex;
    gap: 1rem;
}

.games-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.games-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.5rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #f9fafb;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.games-list {
    margin-bottom: 2rem;
}

.game-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #f9fafb;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.game-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}

.game-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-location h3 {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 1.25rem;
}

.property-type {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.game-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.spec i {
    color: #667eea;
}

.game-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
}

.result-value {
    font-weight: 600;
    color: #111827;
}

.accuracy-perfect {
    color: #059669;
}

.accuracy-excellent {
    color: #10b981;
}

.accuracy-good {
    color: #3b82f6;
}

.accuracy-fair {
    color: #f59e0b;
}

.accuracy-poor {
    color: #ef4444;
}

.game-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #6b7280;
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: start;
}

/* Compact View */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.compact-game-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.compact-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.compact-location {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

.compact-accuracy {
    font-weight: 600;
    font-size: 0.875rem;
}

.compact-body {
    margin-bottom: 0.75rem;
}

.compact-price {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.price-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.price-value {
    font-weight: 600;
    color: #111827;
}

.compact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.compact-score {
    font-weight: 600;
    color: #667eea;
}

.compact-date {
    color: #6b7280;
}

/* Responsive Design for Game History */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .game-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .game-image {
        width: 100%;
        height: 200px;
    }
    
    .game-results {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-meta {
        justify-content: center;
    }
    
    .game-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .compact-grid {
        grid-template-columns: 1fr;
    }
}
