* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a0000 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-container {
    padding-top: 80px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid #ff4757;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: #888;
    font-size: 14px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
}

/* Intro Section */
.intro {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.intro h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro p {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 30px;
}

.start-demo {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.start-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

/* Demo Sections */
.demo-section {
    display: none;
    animation: fadeIn 0.5s;
}

.demo-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Phase Cards */
.phase-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.phase-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.phase-icon {
    font-size: 40px;
    margin-right: 20px;
}

.phase-title {
    font-size: 32px;
    color: #ff4757;
}

.phase-subtitle {
    color: #888;
    font-size: 16px;
    margin-top: 5px;
}

/* Stream Preview */
.stream-preview {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stream-preview-reduced {
    max-width: 600px;
    margin: 20px auto;
}

.obs-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 71, 87, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 300px;
}

.viewer-count {
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.obs-title {
    font-size: 12px;
    color: #fff;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Live Voting Display */
.voting-display {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.vote-option {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.player-name {
    width: 150px;
    font-weight: bold;
}

.vote-bar {
    flex: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.vote-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b7a);
    border-radius: 20px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.vote-percentage {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.vote-count {
    margin-left: 15px;
    color: #888;
    font-size: 14px;
}

/* Chat Simulation */
.chat-simulator {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.chat-user {
    color: #ff4757;
    font-weight: bold;
    margin-right: 10px;
}

/* Rating Stars */
.rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.player-rating {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.player-rating:hover {
    transform: translateY(-5px);
    background: rgba(255, 71, 87, 0.1);
}

.rating-stars {
    font-size: 24px;
    margin: 10px 0;
}

.star {
    color: #444;
    transition: color 0.3s;
}

.star.filled {
    color: #ffd700;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    color: #ff4757;
    margin-bottom: 10px;
}

.feature-description {
    color: #aaa;
    line-height: 1.6;
}

/* Navigation */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-btn {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid #ff4757;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.nav-btn:hover {
    background: #ff4757;
    color: white;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.05));
    border-radius: 20px;
    margin-top: 40px;
}

.final-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff4757;
}

.cta-button {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.5);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: #ff4757;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Code Block */
.code-block {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    color: #4fc3f7;
}

.copy-btn {
    float: right;
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

/* Blazor specific styles */
#blazor-error-ui {
    display: none;
}

.blazor-error-boundary {
    background: #ff4757;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #ff4757;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #ff6b7a;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: #ff4757;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}