* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: #667eea;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: bold;
}

.tab-content {
    display: none;
}

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

.section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.section h3 {
    color: #667eea;
    margin: 25px 0 15px 0;
    font-size: 1.3em;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
}

input[type="number"], select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.rune-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.rune-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.rune-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.rune-card.rot { 
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); 
    border-color: #ff6b9d; 
}
.rune-card.orange { 
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); 
    border-color: #ff9966; 
}
.rune-card.gelb { 
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%); 
    border-color: #fdcb6e; 
}
.rune-card.gruen { 
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); 
    border-color: #00b894; 
}
.rune-card.blau { 
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); 
    border-color: #74b9ff; 
}

.rune-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rune-name {
    font-weight: bold;
    font-size: 1.1em;
}

.rune-type {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

.rune-type.rot { background: #ff6b9d; color: white; }
.rune-type.orange { background: #ff9966; color: white; }
.rune-type.gelb { background: #fdcb6e; color: white; }
.rune-type.gruen { background: #00b894; color: white; }
.rune-type.blau { background: #74b9ff; color: white; }

.rune-effect-desc {
    margin: 10px 0;
    font-size: 0.9em;
    color: #555;
    min-height: 40px;
}

.rune-bonus-display {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
    color: #667eea;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn {
    padding: 14px 32px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    margin: 10px 5px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.4);
}

.results {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.podium-place {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.podium-place::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.podium-place.first::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.podium-place.second::before {
    background: linear-gradient(90deg, #C0C0C0, #A8A8A8);
}

.podium-place.third::before {
    background: linear-gradient(90deg, #CD7F32, #8B4513);
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.place-medal {
    font-size: 3em;
}

.place-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.place-stats {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-value {
    font-weight: bold;
    color: #667eea;
}

.rune-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.rune-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.game-rules {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.game-rules h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.game-rules ul {
    margin-left: 20px;
    line-height: 1.8;
}

.tournament-progress {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.progress-text {
    font-size: 1.2em;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.tournament-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tournament-table th,
.tournament-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tournament-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.tournament-table tr:hover {
    background: #f8f9fa;
}

.rank-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    color: white;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); }
.rank-other { background: #9e9e9e; }