* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 0;
}

/* CONTAINER */
.container {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
    min-height: 100vh;
}

/* HEADER WITH LOGO */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 20px 20px 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.header-link:hover {
    opacity: 0.85;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
    margin: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    mix-blend-mode: multiply;
    background: transparent;
}

h1 {
    color: white;
    font-size: 18px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* CTA BUTTON */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #45a049, #4CAF50);
    border-color: rgba(255, 255, 255, 0.4);
}

/* NAVIGATION MENU */
.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10;
    margin-left: auto;
    margin-right: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

h2 {
    color: #333;
}

/* TOP BAR */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    padding-top: 10px;
}

.session-mini {
    background: rgba(255,255,255,0.15);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.copy-btn {
    background: rgba(255,255,255,0.25);
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* QR CODE MODAL */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.qr-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.qr-modal-content h2 {
    margin-top: 0;
    color: #667eea;
    font-size: 28px;
}

.qr-modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.qr-code-image {
    width: 250px;
    height: 250px;
    margin: 20px auto;
    border: 3px solid #667eea;
    border-radius: 12px;
    padding: 10px;
    background: white;
}

.qr-session-info {
    background: #f4f6f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

.qr-session-info code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #667eea;
    margin-top: 5px;
    word-break: break-all;
}

/* LANDING GRID */
.landing {
    margin-top: 40px;
}

.landing-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

/* LANDING CARD */
.landing-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.landing-card h2 {
    margin-bottom: 20px;
}

.landing-card .session-info {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #1976D2;
    word-break: break-all;
}

/* BIG INPUTS */
.landing-card input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

/* VOTING SYSTEM SELECT */
.voting-system-select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.voting-system-select:focus {
    outline: none;
    border-color: #667eea;
}

.landing-card .form-group {
    text-align: left;
    margin: 10px 0;
}

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

/* BIG BUTTON */
.big-btn {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    font-size: 16px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* ONE-PAGE SECTIONS */
section {
    padding: 80px 0;
    min-height: auto;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-card h3 {
    margin-top: 0;
    color: #667eea;
    font-size: 24px;
}

/* FEATURES SECTION */
.features-section {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* PROCESS DIAGRAM */
.process-diagram {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.process-title {
    text-align: center;
    color: #667eea;
    font-size: 32px;
    margin-bottom: 40px;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.step-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.process-step h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.process-step p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.process-arrow {
    font-size: 32px;
    color: #667eea;
    font-weight: 700;
    flex-shrink: 0;
}

/* CONTACT SECTION */
.contact-section {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-item {
    background: white;
    padding: 35px 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 20px;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #667eea;
}

.contact-btn {
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

/* ABOUT SECTION */
.about-section {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
}

.about-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.about-card h3 {
    color: #667eea;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.about-card p strong {
    color: #667eea;
    font-weight: 700;
}

/* Trusted By Section */
.trusted-section {
    background: linear-gradient(135deg, #f8f9fe 0%, #e8eaff 50%, #f5f6ff 100%);
    padding: 50px;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.trusted-title {
    color: #667eea;
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.trusted-subtitle {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
}

.trusted-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.trusted-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.company-badge {
    background: white;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.company-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Compliance Section */
.compliance-section {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.compliance-title {
    color: #667eea;
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.compliance-subtitle {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.compliance-card {
    background: linear-gradient(135deg, #f8f9fe 0%, #e8eaff 50%, #f5f6ff 100%);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.compliance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.compliance-icon {
    font-size: 32px;
}

.compliance-badge strong {
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
}

.compliance-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* CONTACT MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* GUIDE MODAL */
.guide-modal-content {
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.guide-modal-body {
    padding: 30px;
}

.guide-modal .guide-subtitle {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

.guide-modal .guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.guide-modal .guide-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.guide-modal .guide-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.guide-modal .guide-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 18px;
}

.guide-modal .guide-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.guide-modal .guide-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.guide-modal .pro-tips {
    background: #f0f4ff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.guide-modal .pro-tips-title {
    color: #667eea;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.guide-modal .pro-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.guide-modal .pro-tip {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 14px;
    line-height: 1.5;
}

.guide-modal .pro-tip strong {
    color: #667eea;
}

#contactForm {
    padding: 30px;
}

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

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

.required {
    color: #f44336;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions button {
    padding: 12px 30px;
    min-width: 120px;
}

/* INVITE PLAYERS MODAL */
.invite-modal-content {
    max-width: 600px;
}

.invite-modal-body {
    padding: 30px;
}

.invite-section {
    margin-bottom: 25px;
}

.invite-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.invite-icon {
    font-size: 32px;
}

.invite-section h3 {
    color: #667eea;
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

.invite-description {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.session-id-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

.session-id-box {
    flex: 1;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.session-id-box label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.session-id-box code {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.copy-link-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    white-space: nowrap;
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.5);
}

.invite-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.invite-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.invite-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.qr-code-display {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.invite-qr-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

/* BUTTONS */
button {
    border: none;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.primary:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.secondary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.secondary:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

.danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.danger:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
}

/* MAIN */
#app {
    margin-top: 30px;
}

.story-container {
    background: rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: center;
    margin-bottom: 25px;
}

.story-label {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

#story {
    color: white;
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

/* GAME LAYOUT: TWO COLUMNS */
.game-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* LEFT COLUMN */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow: hidden;
    min-width: 0;
}

/* RIGHT COLUMN */
.right-column {
    align-self: start;
    min-height: 0;
}

/* RESULT SECTION */
.results-analytics-section {
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
}

.results-analytics-section.compact {
    /* Compact mode when results not revealed */
}

.results-analytics-section.compact .results-container {
    padding: 12px 20px;
}

.results-analytics-section.compact .results-header {
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.results-analytics-section.compact .results-header h3 {
    font-size: 16px;
}

.results-analytics-section.compact .results-placeholder {
    min-height: 60px;
    padding: 10px;
}

.results-analytics-section.compact .results-placeholder .placeholder-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.results-analytics-section.compact .results-placeholder p {
    font-size: 12px;
}

.results-container {
    background: linear-gradient(135deg, #e8eaff 0%, #f5f6ff 50%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.12);
    max-width: 100%;
    transition: all 0.3s ease;
}

.results-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

/* PARTICIPANTS SECTION */
.participants-section {
    width: 100%;
    height: 100%;
}

.participants-container {
    background: linear-gradient(135deg, #ede8ff 0%, #f8f5ff 50%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(118, 75, 162, 0.15);
    border: 1px solid rgba(118, 75, 162, 0.12);
    display: flex;
    flex-direction: column;
    max-height: 650px;
}

.participants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.participants-container h3 {
    margin: 0;
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
}

.refresh-btn {
    background: linear-gradient(135deg, #ffffff, #f8f8ff);
    border: 2px solid rgba(102, 126, 234, 0.25);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.08);
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #f0f0ff, #e8e8ff);
    border-color: #667eea;
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.refresh-btn:active {
    transform: rotate(360deg);
}

.refresh-icon {
    font-size: 16px;
    display: block;
}

.participants-container ul {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.participants-container ul::-webkit-scrollbar {
    width: 6px;
}

.participants-container ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.participants-container ul::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.participants-container ul::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.summary-box {
    background: linear-gradient(135deg, #f8f9fe 0%, #e8eaff 50%, #f5f6ff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.25);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.12), 0 2px 6px rgba(118, 75, 162, 0.08);
    position: relative;
    overflow: hidden;
}

.summary-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.summary-box #summary {
    width: 100%;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 246, 255, 0.9) 100%);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.stat-card-wide {
    grid-column: span 2;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-box {
    background: linear-gradient(135deg, #f8f9fe 0%, #e8eaff 50%, #f5f6ff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.25);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.12), 0 2px 6px rgba(118, 75, 162, 0.08);
    position: relative;
    overflow: hidden;
}

.chart-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.chart-box canvas {
    max-height: 180px;
    position: relative;
    z-index: 1;
}

.results-placeholder {
    text-align: center;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: linear-gradient(135deg, rgba(232, 234, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 10px;
    border: 2px dashed rgba(102, 126, 234, 0.25);
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.results-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.results-placeholder p {
    font-size: 15px;
    margin: 0;
    color: #667eea;
    font-weight: 500;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #e8f0ff 0%, #f3f6ff 50%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.12);
    justify-items: center;
    max-width: 100%;
    box-sizing: border-box;
}

.poker-card {
    width: 95px;
    height: 135px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 12px;
    border: 3px solid rgba(102, 126, 234, 0.15);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    font-weight: 600;
}

.poker-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.poker-card.selected {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #45a049;
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 12px 24px rgba(76,175,80,0.4);
}

.poker-card.selected:hover {
    transform: translateY(-10px) scale(1.1);
}

/* TEXT */
.corner {
    position: absolute;
    font-size: 14px;
    font-weight: 700;
}
.top { top: 8px; left: 10px; }
.bottom { bottom: 8px; right: 10px; transform: rotate(180deg); }

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
}

/* ACTIONS */
/* ACTION BUTTONS BAR */
.action-buttons-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0e8ff 0%, #f8f3ff 50%, #ffffff 100%);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.12);
    max-width: 100%;
    box-sizing: border-box;
}

.primary-actions {
    display: flex;
    gap: 12px;
}

.clear-btn-new {
    background: linear-gradient(135deg, #ffffff, #f8f8ff);
    color: #495057;
    border: 2px solid rgba(102, 126, 234, 0.25);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.08);
}

.clear-btn-new:hover {
    background: linear-gradient(135deg, #f8f8ff, #ededff);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.action-buttons-bar .primary,
.action-buttons-bar .secondary {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

/* CARDS SECTION */
.cards-section {
    width: 100%;
    max-width: 100%;
}

/* PARTICIPANTS LIST */

#participants {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

#participants li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.voted {
    background: linear-gradient(135deg, #e8f5e9, #d4f1d7);
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
}

.not-voted {
    background: linear-gradient(135deg, #f8f8ff, #ffffff);
    border-left: 4px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.disconnected {
    background: linear-gradient(135deg, #ffe8e8, #fff0f0);
    border-left: 4px solid #f44336;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.1);
    opacity: 0.7;
}

#participants li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.participant-name {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.participant-name:hover::after {
    content: "✏️";
    position: absolute;
    right: -20px;
    font-size: 12px;
    opacity: 0.6;
}

.participant-name[contenteditable="true"] {
    background: white;
    border: 2px solid #667eea;
    border-radius: 4px;
    padding: 2px 6px;
    outline: none;
}

.badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.voted .badge {
    background: #4CAF50;
    color: white;
}

.not-voted .badge {
    background: #999;
    color: white;
}

.disconnected .badge,
.badge-disconnected {
    background: #f44336;
    color: white;
}

.vote {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-left: 10px;
}

/* RESULT */
.result-box {
    background: linear-gradient(135deg, #f4f6f9, #e8eaf6);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 20px;
}

.result-box b {
    color: #667eea;
}

/* EXPORT BUTTON */
.export-btn {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.4);
}

/* TOP ACTIONS BAR */
.top-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.action-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* USER INFO */
.user-info {
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-icon {
    font-size: 18px;
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* SMALLER CHART */
.chart-container {
    height: 200px;
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

/* SCROLLBAR STYLING */

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 60px 0 0 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin: 0 0 20px 0;
}

/* Footer Logo Section */
.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.footer-logo-section h3 {
    color: white;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    margin-bottom: 15px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Footer Titles */
.footer-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-icon {
    font-size: 18px;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

/* Footer CTA Button */
.footer-cta-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.5);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-bottom-links {
    margin-top: 12px !important;
    font-size: 13px !important;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 8px;
}

.footer-bottom-links a:hover {
    color: white;
    text-decoration: underline;
}

/* APP FOOTER (Game Screen) */
.app-footer {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding: 40px 0 0 0;
}

.app-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.app-footer-column h5 {
    margin: 0 0 15px 0;
}

/* App Footer Brand */
.app-footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-footer-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.app-footer-brand h4 {
    color: white;
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.app-footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0;
}

/* App Footer Titles */
.app-footer-title {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* App Footer Links */
.app-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-footer-links li {
    margin-bottom: 10px;
}

.footer-action-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    text-align: left;
    box-shadow: none;
    font-family: inherit;
}

.footer-action-link:hover {
    color: white;
    transform: translateX(5px);
    box-shadow: none;
}

.contact-support-link {
    margin-top: 8px;
    padding: 8px 0;
    width: 100%;
    text-align: left;
}

.contact-support-link:hover {
    transform: translateX(0);
    color: #667eea;
}

/* App Footer Contact */
.app-footer-contact {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.app-footer-contact p {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-footer-contact a:hover {
    color: white;
}

/* App Footer Bottom */
.app-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.app-footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.app-footer-bottom-links {
    margin-top: 10px !important;
    font-size: 12px !important;
}

.app-footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-footer-bottom-links a:hover {
    color: white;
    text-decoration: underline;
}

/* HOW TO USE GUIDE SECTION */
.guide-section {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 35px 0;
    margin-top: 35px;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.guide-title {
    text-align: center;
    color: white;
    font-size: 24px;
    margin-bottom: 6px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.guide-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-bottom: 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* Guide Cards */
.guide-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.guide-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.guide-card h3 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.guide-card p {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.guide-card strong {
    color: #333;
    font-weight: 700;
}

.guide-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pro Tips Section */
.pro-tips {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.pro-tips-title {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.pro-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pro-tip {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-left: 3px solid #667eea;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}

.pro-tip strong {
    display: block;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 12px;
}

/* RESPONSIVE IMPROVEMENTS */
@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 1fr 360px;
        gap: 25px;
    }

    .left-column {
        gap: 20px;
    }

    .action-buttons-bar {
        padding: 12px 18px;
    }

    .action-buttons-bar .primary,
    .action-buttons-bar .secondary,
    .clear-btn-new {
        padding: 8px 14px;
        font-size: 12px;
    }

    .primary-actions {
        gap: 10px;
    }

    .story-container {
        padding: 12px 22px;
        margin-bottom: 22px;
    }

    .story-label {
        font-size: 10px;
    }

    #story {
        font-size: 22px;
    }

    .cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 25px 18px;
    }

    .participants-container {
        max-height: 600px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .about-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .trusted-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .compliance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .process-flow {
        flex-wrap: wrap;
    }

    .process-arrow {
        display: none;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 15px;
    }

    h1 {
        font-size: 18px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .app-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .guide-modal .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .guide-modal .pro-tips-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guide-title {
        font-size: 22px;
    }

    .pro-tips-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .game-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right-column {
        position: static;
        order: -1;
    }

    .left-column {
        gap: 20px;
        min-height: auto;
    }

    .participants-container {
        max-height: 400px;
    }

    .action-buttons-bar {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .primary-actions {
        width: 100%;
        justify-content: center;
    }

    .clear-btn-new {
        width: 100%;
    }

    .story-container {
        padding: 10px 20px;
        margin-bottom: 20px;
    }

    .story-label {
        font-size: 10px;
    }

    #story {
        font-size: 20px;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px 18px;
    }

    .poker-card {
        width: 85px;
        height: 120px;
    }

    .results-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .results-container {
        padding: 15px;
    }

    .results-analytics-section.compact .results-container {
        padding: 10px 18px;
    }

    .results-analytics-section.compact .results-placeholder {
        min-height: 50px;
    }

    .results-analytics-section.compact .results-placeholder .placeholder-icon {
        font-size: 20px;
    }

    .results-analytics-section.compact .results-placeholder p {
        font-size: 11px;
    }

    .results-header h3 {
        font-size: 18px;
    }

    .results-analytics-section.compact .results-header h3 {
        font-size: 15px;
    }

    .summary-box {
        height: 160px;
        padding: 18px;
    }

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

    .stat-card {
        padding: 10px 12px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 16px;
    }

    .chart-box {
        height: 160px;
        padding: 18px;
    }

    .chart-box canvas {
        max-height: 160px;
    }

    .results-placeholder {
        min-height: 160px;
    }

    .landing-grid {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trusted-section {
        padding: 35px 25px;
    }

    .trusted-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .company-badge {
        padding: 15px 25px;
        font-size: 16px;
    }

    .compliance-section {
        padding: 35px 25px;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .compliance-title,
    .trusted-title {
        font-size: 28px;
    }

    .process-flow {
        flex-direction: column;
        gap: 30px;
    }

    .process-diagram {
        padding: 30px 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        display: none;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .header-left,
    .header-link {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .top-actions {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }

    .user-info {
        margin-left: 0;
        padding-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .user-badge {
        font-size: 13px;
    }

    .cta-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .logo {
        height: 50px;
    }

    h1 {
        font-size: 15px;
    }

    .footer {
        padding: 40px 0 0 0;
        margin-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-logo-section {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .app-footer {
        padding: 30px 0 0 0;
        margin-top: 40px;
    }

    .app-footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .app-footer-brand {
        justify-content: center;
    }

    .app-footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-action-link {
        text-align: center;
    }

    .app-footer-contact p {
        justify-content: center;
    }

    .guide-section {
        padding: 25px 0;
        margin-top: 25px;
    }

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

    .guide-modal .guide-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .guide-modal-body {
        padding: 20px;
    }

    .guide-modal .guide-card {
        padding: 18px;
    }

    .guide-modal .pro-tips {
        padding: 20px;
    }

    .guide-title {
        font-size: 20px;
    }

    .guide-card {
        padding: 15px;
    }

    .pro-tips {
        padding: 18px 15px;
    }

    .pro-tips-title {
        font-size: 16px;
    }
}

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

    .left-column {
        gap: 15px;
    }

    .participant-name:hover::after {
        display: none; /* Hide edit icon on mobile */
    }

    .user-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .user-icon {
        font-size: 16px;
    }

    .user-name {
        font-size: 13px;
    }

    .results-container {
        padding: 15px;
    }

    .results-analytics-section.compact .results-container {
        padding: 8px 15px;
    }

    .results-analytics-section.compact .results-placeholder {
        min-height: 45px;
        padding: 8px;
    }

    .results-analytics-section.compact .results-placeholder .placeholder-icon {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .results-analytics-section.compact .results-placeholder p {
        font-size: 10px;
    }

    .results-analytics-section.compact .results-header h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .participants-container {
        padding: 15px;
        max-height: 350px;
    }

    .participants-header h3 {
        font-size: 16px;
    }

    .refresh-btn {
        padding: 4px 7px;
    }

    .refresh-icon {
        font-size: 13px;
    }

    .results-header h3 {
        font-size: 18px;
    }

    .action-buttons-bar {
        padding: 12px;
        gap: 10px;
    }

    .action-buttons-bar .primary,
    .action-buttons-bar .secondary,
    .clear-btn-new {
        padding: 8px 14px;
        font-size: 12px;
    }

    .story-container {
        padding: 10px 20px;
    }

    .story-label {
        font-size: 10px;
    }

    #story {
        font-size: 20px;
    }

    .cards {
        padding: 22px 15px;
    }

    .poker-card {
        width: 75px;
        height: 105px;
    }

    .summary-box {
        height: 150px;
        padding: 15px;
    }

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

    .stat-card {
        padding: 8px 10px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 15px;
    }

    .chart-box {
        height: 150px;
        padding: 15px;
    }

    .chart-box canvas {
        max-height: 150px;
    }

    .results-placeholder {
        min-height: 150px;
    }

    .results-placeholder .placeholder-icon {
        font-size: 40px;
    }

    .results-placeholder p {
        font-size: 14px;
    }

    .center {
        font-size: 28px;
    }

    .corner {
        font-size: 12px;
    }

    .footer {
        padding: 30px 0 0 0;
        margin-top: 40px;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-logo-section h3 {
        font-size: 16px;
    }

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

    .footer-bottom p {
        font-size: 12px;
        padding: 0 10px;
    }

    .footer-bottom-links {
        font-size: 11px !important;
    }

    .footer-bottom-links a {
        padding: 0 4px;
        display: inline-block;
        margin: 2px 0;
    }

    .trusted-logos {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trusted-section,
    .compliance-section {
        padding: 25px 20px;
    }

    .about-card {
        padding: 25px 20px;
    }

    .about-icon {
        font-size: 48px;
    }

    .about-card h3 {
        font-size: 20px;
    }

    .company-badge {
        padding: 12px 20px;
        font-size: 15px;
    }

    .footer-badges {
        gap: 6px;
    }

    .footer-badge {
        padding: 5px 10px;
        font-size: 11px;
    }

    .app-footer {
        padding: 25px 0 0 0;
        margin-top: 30px;
    }

    .app-footer-logo {
        height: 35px;
    }

    .app-footer-brand h4 {
        font-size: 16px;
    }

    .app-footer-tagline {
        font-size: 12px;
    }

    .app-footer-title {
        font-size: 13px;
    }

    .footer-action-link {
        font-size: 13px;
    }

    .app-footer-contact {
        font-size: 13px;
    }

    .app-footer-bottom p {
        font-size: 11px;
        padding: 0 10px;
    }

    .app-footer-bottom-links {
        font-size: 11px !important;
    }

    .guide-section {
        padding: 20px 0;
        margin-top: 20px;
    }

    .guide-modal-content {
        width: 98%;
        max-height: 95vh;
    }

    .guide-modal-body {
        padding: 15px;
    }

    .guide-modal .guide-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .guide-modal .guide-card {
        padding: 15px;
    }

    .guide-modal .guide-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .guide-modal .guide-card h3 {
        font-size: 16px;
    }

    .guide-modal .guide-card p {
        font-size: 13px;
    }

    .guide-modal .pro-tips {
        padding: 15px;
    }

    .guide-modal .pro-tips-title {
        font-size: 18px;
    }

    .guide-modal .pro-tip {
        padding: 12px;
        font-size: 13px;
    }

    .guide-title {
        font-size: 18px;
    }

    .guide-subtitle {
        font-size: 11px;
    }

    .guide-card {
        padding: 14px;
    }

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

    .guide-card h3 {
        font-size: 14px;
    }

    .guide-card p {
        font-size: 11px;
    }

    .pro-tips {
        padding: 18px 12px;
    }

    .pro-tips-title {
        font-size: 15px;
    }

    .pro-tip {
        padding: 10px;
        font-size: 11px;
    }

    /* Invite Modal Responsive */
    .invite-modal-content {
        width: 95%;
        max-width: 100%;
    }

    .invite-modal-body {
        padding: 20px;
    }

    .session-id-display {
        flex-direction: column;
    }

    .copy-link-btn {
        width: 100%;
    }

    .invite-qr-image {
        width: 180px;
        height: 180px;
    }

    .invite-section h3 {
        font-size: 18px;
    }

    .invite-description {
        font-size: 13px;
    }
}