/* ==========================================================================
   POKER TOURNAMENT CLOCK - CSS STYLES WITH PRELOADER & EDIT PAGE
   ========================================================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}



/* ==========================================================================
   PRELOADER STYLES - OPTIMIERT OHNE RUCKELN
   ========================================================================== */

.loading-container {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
}

/* Poker Table Atmosphere - Optimiert */
.poker-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

/* Subtle Card Suits floating - Weniger intensive Animation */
.suit-symbol {
    position: absolute;
    font-size: 120px;
    opacity: 0.03;
    color: #4ade80;
    animation: suitFloat 15s ease-in-out infinite;
    font-weight: normal;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.suit-symbol:nth-child(2) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.suit-symbol:nth-child(3) {
    top: 70%;
    right: 10%;
    animation-delay: 5s;
    color: #ef4444;
}

.suit-symbol:nth-child(4) {
    bottom: 20%;
    left: 8%;
    animation-delay: 10s;
}

.suit-symbol:nth-child(5) {
    top: 40%;
    right: 5%;
    animation-delay: 15s;
    color: #ef4444;
}

@keyframes suitFloat {
    0%, 100% {
        transform: translateY(0px) translateZ(0);
        opacity: 0.02;
    }
    50% {
        transform: translateY(-20px) translateZ(0);
        opacity: 0.05;
    }
}

/* Poker Table Lines - Vereinfacht */
.table-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 80%;
    height: 60%;
    border: 2px solid rgba(74, 222, 128, 0.05);
    border-radius: 50%;
    animation: tableGlow 6s ease-in-out infinite;
    will-change: opacity;
}

.table-lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 120%;
    height: 80%;
    border: 1px solid rgba(74, 222, 128, 0.03);
    border-radius: 50%;
    animation: tableGlow 8s ease-in-out infinite reverse;
    will-change: opacity;
}

@keyframes tableGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Main Content */
.loading-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

/* Spinning Poker Chip - Optimiert */
.poker-chip {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    position: relative;
    animation: chipSpin 3s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.chip-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, #4ade80, #22c55e, #16a34a);
    position: relative;
    box-shadow: 
        0 0 20px rgba(74, 222, 128, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.chip-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    overflow: hidden;
    will-change: transform;
}

/* Rotating Card Suits in Chip - Vereinfacht */
.suit-rotator {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
}

.rotating-suit {
    position: absolute;
    font-size: 32px;
    font-weight: bold;
    opacity: 0;
    animation: suitRotation 4s ease-in-out infinite;
    will-change: opacity, transform;
    transform: translateZ(0);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rotating-suit:nth-child(1) {
    color: #000000;
    animation-delay: 0s;
}

.rotating-suit:nth-child(2) {
    color: #ef4444;
    animation-delay: 1s;
}

.rotating-suit:nth-child(3) {
    color: #ef4444;
    animation-delay: 2s;
}

.rotating-suit:nth-child(4) {
    color: #000000;
    animation-delay: 3s;
}

@keyframes suitRotation {
    0% {
        opacity: 0;
        transform: scale(0.8) translateZ(0);
    }
    15% {
        opacity: 1;
        transform: scale(1.1) translateZ(0);
    }
    25% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
    35% {
        opacity: 0;
        transform: scale(0.8) translateZ(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateZ(0);
    }
}

.chip-outer::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    animation: chipRotateReverse 4s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes chipSpin {
    0% { transform: rotate(0deg) translateZ(0); }
    100% { transform: rotate(360deg) translateZ(0); }
}

@keyframes chipRotateReverse {
    0% { transform: rotate(0deg) translateZ(0); }
    100% { transform: rotate(-360deg) translateZ(0); }
}

/* Title Animation - Optimiert */
.loading-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4ade80, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleGradient 4s ease-in-out infinite;
    will-change: background-position;
}

@keyframes titleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtitle - Vereinfacht */
.loading-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    animation: pulse 3s ease-in-out infinite;
    will-change: opacity;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Progress Bar - Optimiert */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(255, 255, 255, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        #4ade80 0%, 
        #22c55e 50%, 
        #16a34a 100%
    );
    border-radius: 20px;
    width: 0%;
    animation: progressFill 5s ease-in-out forwards;
    position: relative;
    box-shadow: 
        0 0 10px rgba(74, 222, 128, 0.4),
        0 0 20px rgba(74, 222, 128, 0.2);
    will-change: width;
    transform: translateZ(0);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%
    );
    border-radius: 20px;
    animation: progressShine 2s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transform: translateZ(0);
}

@keyframes progressFill {
    0% { width: 0%; }
    20% { width: 20%; }
    40% { width: 40%; }
    60% { width: 60%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

@keyframes progressShine {
    0% { 
        transform: translateX(-200%) translateZ(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(200%) translateZ(0);
        opacity: 0;
    }
}

/* Loading Steps - Optimiert */
.loading-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    will-change: transform;
    transform: translateZ(0);
}

.loading-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: all 0.4s ease;
    will-change: opacity, transform;
    transform: translateZ(0);
}

.loading-steps .step.active {
    opacity: 1;
    transform: translateY(-5px) translateZ(0);
}

.loading-steps .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.2);
    border: 2px solid rgba(74, 222, 128, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.4s ease;
    will-change: background, border-color, box-shadow;
    transform: translateZ(0);
}

.loading-steps .step.active .step-icon {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.loading-steps .step-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.4s ease;
    will-change: color;
}

.loading-steps .step.active .step-text {
    color: #4ade80;
    font-weight: 600;
}

/* Particle Effects - Reduziert */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #4ade80;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.particle:nth-child(1) { left: 15%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: 1s; }
.particle:nth-child(3) { left: 35%; animation-delay: 2s; }
.particle:nth-child(4) { left: 45%; animation-delay: 3s; }
.particle:nth-child(5) { left: 55%; animation-delay: 4s; }
.particle:nth-child(6) { left: 65%; animation-delay: 5s; }
.particle:nth-child(7) { left: 75%; animation-delay: 6s; }
.particle:nth-child(8) { left: 85%; animation-delay: 7s; }

@keyframes particleFloat {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) translateZ(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(15px) translateZ(0);
    }
}

/* ==========================================================================
   STEPPER STYLES (Tournament Setup)
   ========================================================================== */

.stepper-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* STEPPER HEADER */
.stepper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step:hover .step-circle {
    transform: scale(1.05);
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

/* Remove ALL automatic content generation */
.step-circle::before,
.step-circle::after {
    display: none !important;
    content: none !important;
}

.step-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.step-icon {
    display: none;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.step-icon.users {
    background-image: url('../bilder/user.png');
}

.step-icon.tournament {
    background-image: url('../bilder/tournament.png');
}

.step-icon.structure {
    background-image: url('../bilder/structure.png');
}

.step-icon.buyin {
    background-image: url('../bilder/buyin.png');
}

.step-icon.payout {
    background-image: url('../bilder/payout.png');
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    transform: scale(1.1);
}

.step.completed .step-circle::before {
    content: '✓';
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: checkmark 0.6s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

.step-label {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: #4ade80;
    font-weight: 600;
}

.step.completed .step-label {
    color: #22c55e;
}

/* PROGRESS LINE */
.stepper-header::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    border-radius: 2px;
}

.progress-line {
    position: absolute;
    top: 25px;
    left: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    z-index: 1;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* CONTENT AREA */
.stepper-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.step-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    flex: 1;
}

.step-content.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.step-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 30px;
}

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

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

/* Custom number input styling */
.form-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    padding-right: 45px;
}

.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-spinner {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spinner-btn {
    width: 28px;
    height: 18px;
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    color: #4ade80;
    font-size: 10px;
    font-weight: bold;
}

.spinner-btn:hover {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    transform: scale(1.05);
}

.spinner-btn:active {
    transform: scale(0.95);
    background: rgba(74, 222, 128, 0.4);
}

.quick-btn {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #4ade80;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
    transform: translateY(-1px);
}

.quick-btn.rebuy {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.quick-btn.rebuy:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.form-input:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input[required] {
    border-color: rgba(239, 68, 68, 0.3);
}

.form-input[required]:valid {
    border-color: rgba(74, 222, 128, 0.3);
}

.form-input[required]:invalid {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* PRESET CARDS */
.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Fix 2 Spalten */
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

/* DREI-SPALTEN LAYOUT FÜR PRESETS */
.preset-grid-three-column {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   margin-top: 5px;
}

.preset-column {
   display: flex;
   flex-direction: column;
   gap: 20px;
}

/* RESPONSIVE FOR PRESET GRID */
@media (max-width: 1200px) {
   .preset-grid-three-column {
       grid-template-columns: repeat(2, 1fr);
       gap: 15px;
   }
   
   .preset-column {
       gap: 15px;
   }
}

@media (max-width: 768px) {
   .preset-grid,
   .preset-grid-three-column {
       grid-template-columns: 1fr;
   }
   
   .preset-column {
       gap: 15px;
   }
}

.preset-card {
	display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preset-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.preset-card.selected {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.preset-card.selected::before {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    background: #4ade80;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.preset-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.preset-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 10px;
}

.preset-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 7px;
}

.details-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.details-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4ade80;
}

.details-toggle.active {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.toggle-arrow {
    transition: transform 0.3s ease;
}

.details-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.structure-details {
    display: none;
    animation: slideDown 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.structure-details.show {
    display: block;
}

.structure-details::-webkit-scrollbar {
    width: 6px; /* Schmale Scrollbar */
}

.structure-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.structure-details::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.4);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.structure-details::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 0.6);
}

.structure-details::-webkit-scrollbar-corner {
    background: transparent;
}

/* AUCH FÜR DIE STRUCTURE LEVELS */
.structure-levels {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px;
}

.structure-levels::-webkit-scrollbar {
    width: 4px;
}

.structure-levels::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.structure-levels::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.3);
    border-radius: 2px;
}

.structure-levels::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 0.5);
}

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

/* RASTER-LAYOUT FÜR STRUCTURE DETAILS */
.structure-levels {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    gap: 8px; /* Abstand zwischen den Elementen */
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 0;
}

.structure-level {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.structure-level.pause {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
    grid-column: 1 / -1; /* Pause nimmt volle Breite */
}

/* Custom Structure Builder */
.custom-structure {
    display: none;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-structure.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.rebuy-end-config {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.config-label {
    font-weight: 600;
    color: #4ade80;
    white-space: nowrap;
	margin-bottom: 5px;
}

.config-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.config-input-wrapper .input-wrapper {
    width: 100px;
    position: relative;
}

.config-input-wrapper .form-input {
    width: 100%;
    padding-right: 45px;
}

.config-input {
    width: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.config-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.structure-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.structure-btn {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    color: #4ade80;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.structure-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    transform: translateY(-1px);
}

.structure-btn.pause {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.structure-btn.pause:hover {
    background: rgba(255, 165, 0, 0.2);
}

.structure-levels-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
	padding-top: 10px;
}

.structure-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: grab;
    user-select: none;
}

.structure-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.structure-item:active {
    cursor: grabbing;
}

.structure-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.structure-item.drag-over {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.structure-item.level {
    border-left: 4px solid #4ade80;
}

.structure-item.pause {
    border-left: 4px solid #ffa500;
    background: rgba(255, 165, 0, 0.05);
}

.level-badge {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 5px;
	width:auto;
	white-space: nowrap;
}

.pause-badge {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    min-width: 70px;
    text-align: center;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    flex: 1;
}

.pause-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
}

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

.input-group .input-wrapper {
    position: relative;
    width: 100%;
}

.input-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.structure-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 35px 8px 10px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.level-inputs .input-spinner,
.pause-inputs .input-spinner {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1px;
    height: calc(100% - 8px);
}

.level-inputs .spinner-btn,
.pause-inputs .spinner-btn {
    width: 24px;
    height: 14px;
    padding: 0;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-inputs .input-wrapper,
.pause-inputs .input-wrapper {
    position: relative;
    width: 100%;
}

.structure-input:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.item-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
}

.drag-handle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: grab;
    padding: 0 8px;
    user-select: none;
}

.structure-item:active {
    cursor: grabbing;
}

.structure-item:hover .drag-handle {
    color: rgba(255, 255, 255, 0.7);
}

/* TOGGLE SWITCHES */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-group:hover {
    background: rgba(255, 255, 255, 0.08);
}

.toggle-info {
    flex: 1;
}

.toggle-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.toggle-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

/* PAYOUT BUILDER */
/* PAYOUT OVERVIEW STYLES */
/* ACTIVE RANGE HIGHLIGHTING */
.payout-item.active-range {
    background: rgba(74, 222, 128, 0.15);
    border: 2px solid rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.payout-item.active-range .payout-header {
    color: #4ade80;
    font-weight: 700;
}

.payout-item.active-range .payout-places {
    color: rgba(74, 222, 128, 0.8);
}

.payout-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.payout-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payout-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-1px);
}

.payout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 6px;
}

.payout-places {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.payout-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 8px;
}

/* PFEIL ANIMATION - das war das fehlende Stück! */
.payout-item.expanded .payout-arrow {
    transform: rotate(90deg);
    color: #4ade80;
}

.payout-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    line-height: 1.4;
}

.payout-details.expanded {
    max-height: 100px;
    opacity: 1;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payout-positions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.payout-position {
    display: grid;
    grid-template-columns: 60px 1fr 30px 40px;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.payout-position .input-wrapper {
    position: relative;
    background: #4a5568; /* Gleiche Farbe wie Input */
    border-radius: 8px;
    border: 2px solid #2d3748;
}

.payout-position .position-input {
    background: transparent; /* Kein eigener Hintergrund */
    border: none; /* Keine eigene Border */
    padding-right: 50px;
    outline: none;
}

.payout-position .input-spinner {
    right: 8px; /* Näher am Rand, aber im Container */
    background: rgba(74, 222, 128, 0.1);
    border-radius: 6px;
    padding: 2px;
}

.payout-position .spinner-btn {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.4);
    width: 26px;
    height: 16px;
}

.position-rank {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.position-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
}

.remove-position {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-position img {
    transition: all 0.3s ease;
}

.remove-position:hover {
    background: rgba(239, 68, 68, 0.3);
}

.remove-position:hover img {
    transform: scale(1.1);
}

.add-position-btn {
    background: rgba(74, 222, 128, 0.1);
    border: 2px dashed rgba(74, 222, 128, 0.4);
    border-radius: 12px;
    padding: 16px;
    color: #4ade80;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.add-position-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
}

.payout-total {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-top: 20px;
}

.payout-total.invalid {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* NAVIGATION */
.stepper-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 28px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
    color: #000000;
}

.nav-btn.primary:hover {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    transform: translateY(-2px);
}

.nav-info {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==========================================================================
   EDIT PAGE STYLES
   ========================================================================== */
/* ==========================================================================
   ENHANCED EDIT PAGE STYLES - ERSETZT DEN URSPRÜNGLICHEN EDIT BEREICH
   ========================================================================== */

/* RASTER-LAYOUT NUR FÜR SETUP-PAGE, NICHT EDIT MODAL */
.stepper-container .structure-levels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 0;
}

.stepper-container .structure-level {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.stepper-container .structure-level.pause {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
    grid-column: 1 / -1;
}

/* SCROLLBAR NUR FÜR SETUP-PAGE */
.stepper-container .structure-details {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.stepper-container .structure-details::-webkit-scrollbar {
    width: 6px;
}

.stepper-container .structure-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.stepper-container .structure-details::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.4);
    border-radius: 3px;
}

/* EDIT MODAL BLEIBT UNVERÄNDERT */
.edit-container .structure-levels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Hier bleibt das ursprüngliche Design */
}

/* EDIT OVERLAY - For when edit opens over clock */
.edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

/* ENHANCED EDIT MODAL OVERLAY */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.edit-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

/* BLUR EFFECT FOR BACKGROUND */
.tournament-container.blurred {
    filter: blur(8px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* ENHANCED EDIT CONTAINER - CLEAN & MINIMAL */
.edit-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 0;
    max-width: 900px;
    width: 100%;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    max-height: 95vh;
    overflow: hidden;
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ENHANCED HEADER */
.edit-header {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.15));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.edit-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.5), transparent);
}

.edit-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* ENHANCED CONTENT AREA */
.edit-content {
    padding: 35px;
    overflow-y: auto;
    max-height: calc(95vh - 200px);
}

.edit-content::-webkit-scrollbar {
    width: 8px;
}

.edit-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.edit-content::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.3);
    border-radius: 4px;
}

/* ENHANCED FORM SECTIONS */
.edit-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.edit-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.2);
}

.edit-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 20px 20px 0 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.section-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 5px;
}

.section-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ENHANCED FORM ELEMENTS */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

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

.edit-container .form-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: block;
}

.edit-container .form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.edit-container .form-input:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.edit-container .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Enhanced Input with Spinner */
.edit-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.edit-container .input-spinner {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edit-container .spinner-btn {
    width: 30px;
    height: 20px;
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    color: #4ade80;
    font-size: 10px;
    font-weight: bold;
}

.edit-container .spinner-btn:hover {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    transform: scale(1.1);
}

/* Enhanced Toggle Switches */
.edit-container .toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-container .toggle-group:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
}

.edit-container .toggle-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.edit-container .toggle-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.edit-container .toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.edit-container .toggle-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.edit-container .toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.edit-container .toggle-switch.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
}

.edit-container .toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edit-container .toggle-switch.active .toggle-slider {
    transform: translateX(28px);
}

/* ENHANCED FORM INPUTS */
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.form-select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 8px;
}

/* ENHANCED STRUCTURE EDITOR */
.structure-editor {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
}

.editor-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.editor-btn {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 10px;
    padding: 10px 16px;
    color: #4ade80;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.editor-btn:hover {
    background: rgba(74, 222, 128, 0.25);
    transform: translateY(-1px);
}

.editor-btn.add-pause {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.editor-btn.add-pause:hover {
    background: rgba(255, 165, 0, 0.25);
}



.structure-level-item {
    display: grid;
    grid-template-columns: 30px auto 1fr 40px;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: move;
}

.structure-level-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.structure-level-item.pause {
    border-left: 4px solid #ffa500;
}

.structure-level-item:not(.pause) {
    border-left: 4px solid #4ade80;
}

.level-handle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: grab;
    user-select: none;
}

.level-handle:active {
    cursor: grabbing;
}

.level-badge {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
    min-width: 70px;
}

.pause-badge {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: #000;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
    min-width: 70px;
}

.level-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.pause-input {
    display: flex;
    justify-content: center;
}

.input-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-mini label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-mini input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    width: 100%;
}

.input-mini input:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.delete-level {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ef4444;
    font-size: 14px;
}

.delete-level:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.1);
}

.rebuy-config {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.rebuy-config label {
    color: #4ade80;
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper-mini {
    position: relative;
    width: 80px;
}

.input-wrapper-mini input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 30px 8px 12px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.input-wrapper-mini .input-spinner {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.input-wrapper-mini .spinner-btn {
    width: 20px;
    height: 12px;
    font-size: 8px;
}

/* ENHANCED PAYOUT SELECTOR */
.payout-selector {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
}

.payout-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.payout-mode-btn {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.payout-mode-btn.active {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.2));
    border-color: rgba(74, 222, 128, 0.5);
    color: #4ade80;
}

/* Enhanced Payout Ranges */
.payout-ranges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.payout-range-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.payout-range-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
}

.payout-range-item.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.6);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.payout-range-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.payout-range-item.expanded {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.6);
}

.payout-range-item.expanded .range-arrow {
    color: #4ade80;
    transform: rotate(90deg);
}

.range-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.range-players {
    color: #4ade80;
    font-weight: 700;
    font-size: 15px;
}

.range-places {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
}

.range-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: all 0.3s ease;
}

.payout-range-item:hover .range-arrow {
    color: #4ade80;
    transform: translateX(3px);
}

.payout-range-item.active .range-arrow {
    color: #4ade80;
}

.range-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.range-details.show {
    opacity: 1;
    max-height: 100px;
}

.payout-percentages {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-family: 'JetBrains Mono', monospace;
}

.position-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.percent-symbol {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.remove-position {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 16px;
}

.remove-position:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.1);
}

.remove-position:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Add Position Area */
.add-position-area {
    margin: 15px 0;
}

.add-position-btn {
    width: 100%;
    background: rgba(74, 222, 128, 0.1);
    border: 2px dashed rgba(74, 222, 128, 0.4);
    border-radius: 12px;
    padding: 16px;
    color: #4ade80;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.add-position-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
}

/* Enhanced Payout Total */
.payout-total {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    margin-top: 15px;
}

.total-text {
    color: #4ade80;
    font-weight: 600;
    font-size: 14px;
}

.payout-total.invalid {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.payout-total.invalid .total-text {
    color: #ef4444;
}

/* ENHANCED ACTION BUTTONS */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.action-btn {
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.action-btn.primary {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
    color: #000000;
}

.action-btn.primary:hover {
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.4);
    transform: translateY(-2px);
}

/* STATUS MESSAGES */
.status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    color: #4ade80;
    font-size: 14px;
    font-weight: 600;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.status-message.show {
    transform: translateX(0);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.status-message.warning {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.status-message.warning::before {
    content: '⚠️ ';
    margin-right: 8px;
}

.character-counter {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    transition: color 0.3s ease;
}

.character-counter span {
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Warning states for character counter */
.character-counter span[style*="color: #ffa500"] {
    color: #ffa500 !important;
    text-shadow: 0 0 4px rgba(255, 165, 0, 0.3);
}

.character-counter span[style*="color: #ef4444"] {
    color: #ef4444 !important;
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
    animation: pulse-warning 1s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* *** 3. NEU HINZUFÜGEN - EURO-INPUT STYLES *** */

/* EURO-INPUT SPEZIELLE STYLING */
.euro-input {
    position: relative;
}

.euro-input:focus {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
}

/* Wenn Euro-Limit erreicht - visuelles Feedback */
.euro-input.at-limit {
    border-color: rgba(255, 165, 0, 0.5);
    background: rgba(255, 165, 0, 0.05);
}

.euro-input.at-limit:focus {
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
    border-color: #ffa500;
}

/* *** 4. NACH DEN FORM STYLES (ca. Zeile 1100) EINFÜGEN *** */

/* ENHANCED FORM LABELS MIT LIMIT-INFO */
.form-label:has(+ .input-row .euro-input)::after,
.form-label:has(+ .input-wrapper .euro-input)::after {
    content: '';
    font-size: 0.8rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.form-label:has(+ .input-row .chips-input)::after,
.form-label:has(+ .input-wrapper .chips-input)::after {
    content: '';
    content: '';
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* *** 5. NEU HINZUFÜGEN - INPUT VALIDATION STATES *** */

/* INPUT VALIDATION STATES */
.form-input.valid {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.03);
}

.form-input.invalid {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.03);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* *** 6. IN DEN RESPONSIVE BEREICH (ca. Zeile 2100) EINFÜGEN *** */

/* RESPONSIVE ANPASSUNGEN FÜR NEUE STYLES */
@media (max-width: 768px) {
    .character-counter {
        font-size: 11px;
        margin-top: 6px;
    }
    
    .form-label::after {
        display: block;
        margin-top: 4px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .character-counter {
        font-size: 10px;
        text-align: center;
    }
    
    .form-label::after {
        font-size: 0.7rem;
    }
}

/* *** 7. AM ENDE DER DATEI HINZUFÜGEN *** */

/* EDIT MODAL SPECIFIC STYLES */
.edit-container .character-counter {
    margin-top: 6px;
    font-size: 11px;
}

.edit-container .form-label::after {
    font-size: 0.75rem;
}

.edit-container .euro-input,
.edit-container .chips-input {
    transition: all 0.3s ease;
}

.edit-container .euro-input:focus,
.edit-container .chips-input:focus {
    transform: translateY(-1px);
}


/* DRAGGING STATES */
.structure-level-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
}

.structure-level-item.drag-over {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* Custom Scrollbars for Structure Levels */
.structure-levels::-webkit-scrollbar {
    width: 6px;
}

.structure-levels::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.structure-levels::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 3px;
}

.structure-levels::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 0.7);
}

/* Animation Classes */
.slide-in {
    animation: slideIn 0.3s ease-out;
}

.fade-in {
    animation: fadeInElement 0.3s ease-out;
}

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

@keyframes fadeInElement {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* RESPONSIVE DESIGN FÜR ENHANCED EDIT */
@media (max-width: 768px) {
    .edit-container {
        max-width: 95%;
        margin: 10px;
        border-radius: 20px;
    }

    .edit-header {
        padding: 20px 25px;
    }

    .edit-title {
        font-size: 1.5rem;
    }

    .edit-content {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .structure-level-item {
        grid-template-columns: 25px auto 1fr 30px;
        gap: 10px;
        padding: 12px;
    }

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

    .payout-ranges {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .payout-position {
        grid-template-columns: 50px 1fr 30px 30px;
        gap: 10px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px;
    }

    .payout-mode-toggle {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .editor-controls {
        flex-direction: column;
        gap: 8px;
    }

    .rebuy-config {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .edit-container {
        margin: 5px;
        max-height: 98vh;
    }

    .edit-header {
        padding: 15px 20px;
    }

    .edit-title {
        font-size: 1.3rem;
    }

    .edit-content {
        padding: 20px;
        max-height: calc(98vh - 180px);
    }

    .edit-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-info h3 {
        font-size: 1.2rem;
    }

    .structure-level-item {
        grid-template-columns: 20px auto 1fr 25px;
        gap: 8px;
        padding: 10px;
    }

    .level-badge,
    .pause-badge {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 60px;
    }

    .level-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .payout-range-item {
        padding: 12px;
    }

    .range-players {
        font-size: 13px;
    }

    .range-places {
        font-size: 11px;
    }

    .action-buttons {
        padding: 20px;
    }

    .status-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
        font-size: 13px;
    }

    .status-message.show {
        transform: translateY(0);
    }
}

/* ==========================================================================
   CLOCK STYLES (Tournament Clock)
   ========================================================================== */

.tournament-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* TOURNAMENT TITLE WITH HOVER CONTROLS */
.tournament-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.title-controls {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tournament-title:hover .title-controls {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.title-control-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.title-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
}

.title-control-btn:active {
    transform: scale(0.95);
}

.settings-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    background-image: url('../bilder/settings.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.end-text {
    font-weight: 500;
    font-size: 0.8rem;
}

/* STATS GRID (TOP CARDS) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.stat-card:not([data-type]):hover {
    transform: translateY(-2px);
}

.stat-card[data-type] {
    cursor: pointer;
}

.stat-content {
    transition: opacity 0.2s ease;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-value.highlight {
    color: #4ade80;
}

/* HOVER CONTROLS FOR STAT-CARDS */
.hover-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.stat-card[data-type]:hover .hover-controls {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.stat-card[data-type]:hover .stat-content {
    opacity: 0;
}

.hover-arrow {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(74, 222, 128, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}

.hover-arrow:hover {
    background: rgba(74, 222, 128, 0.5);
    transform: scale(1.1);
}

.hover-arrow:active {
    transform: scale(0.95);
}

.current-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4ade80;
    text-align: center;
    flex: 1;
}

.current-players {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ef4444;
    text-align: center;
    flex: 1;
}

/* MAIN CLOCK SECTION */
.clock-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clock-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 300px;
}

.blinds-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 300px;
}

.blinds-section .blinds-label {
    margin-bottom: 0;
}

.blinds-section .blinds-value {
    margin-top: auto;
    margin-bottom: 30px;
}

.blinds-label {
    padding-top: 40px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: 500;
}

.blinds-value {
    font-size: 6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* Timer */
.timer-display {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.timer-value {
    font-family: 'Poppins', sans-serif;
    font-size: 10rem;
    font-weight: 700;
    color: #4ade80;
    line-height: 1;
}

/* CONTROL SLIDER & BUTTONS */
.control-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.slider-bar {
    width: 400px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-bar:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-progress {
    height: 100%;
    background: linear-gradient(
        -45deg,
        #4ade80 25%,
        #22c55e 25%,
        #22c55e 50%,
        #4ade80 50%,
        #4ade80 75%,
        #22c55e 75%
    );
    background-size: 20px 20px;
    border-radius: 6px;
    width: 60%;
    animation: progressStripes 1.5s linear infinite, progressGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes progressStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 40px;
}

.control-btn {
    background: none;
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(72%) sepia(89%) saturate(395%) hue-rotate(88deg) brightness(98%) contrast(89%);
    transition: filter 0.3s ease;
}

.control-btn:hover .control-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

/* BOTTOM SECTION */
.bottom-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ==========================================================================
   3-COLUMN PAYOUT LAYOUT - BASIEREND AUF SCREENSHOTS
   ========================================================================== */

/* PRIZE SECTION */
.prize-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 300px;
    overflow: hidden;
}

.prize-section h3 {
    color: #4ade80;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TROPHY LAYOUT (für 1-3 Plätze) */
.trophy-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    align-items: center;
    flex: 1;
    padding: 20px 0;
}

.trophy-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 200px;
    border-radius: 16px;
    padding: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.trophy-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
}

/* TROPHY ICON LINKS */
.trophy-icon {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.trophy-icon:hover {
    transform: scale(1.05);
}

.trophy-icon.first {
    background-image: url('../bilder/place1.png');
}

.trophy-icon.second {
    background-image: url('../bilder/place2.png');
}

.trophy-icon.third {
    background-image: url('../bilder/place3.png');
}

/* TEXT CONTAINER RECHTS VOM ICON */
.trophy-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
}

/* AMOUNT STYLING - OBEN RECHTS */
.trophy-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    margin: 0;
    line-height: 1.1;
}

.trophy-amount.first {
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.trophy-amount.second {
    color: #C0C0C0;
    text-shadow: 0 2px 10px rgba(192, 192, 192, 0.4);
}

.trophy-amount.third {
    color: #CD7F32;
    text-shadow: 0 2px 10px rgba(205, 127, 50, 0.4);
}

/* PLACE LABEL - UNTEN RECHTS */
.trophy-place {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    line-height: 1.2;
    margin: 0;
}

.trophy-place.first {
    color: rgba(255, 215, 0, 0.8);
}

.trophy-place.second {
    color: rgba(192, 192, 192, 0.8);
}

.trophy-place.third {
    color: rgba(205, 127, 50, 0.8);
}

/* ZWEISPALTIGES LAYOUT (für 4-9 Plätze) */
.prize-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 30px;
    width: 100%;
    align-items: start;
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.prize-two-column::-webkit-scrollbar {
    width: 4px;
}

.prize-two-column::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.prize-two-column::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 2px;
}

.prize-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* DREISPALTIGES LAYOUT (für 10+ Plätze) */
.prize-three-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px 20px;
    width: 100%;
    align-items: start;
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.prize-three-column::-webkit-scrollbar {
    width: 4px;
}

.prize-three-column::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.prize-three-column::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 2px;
}

/* PAYOUT ROW STYLING */
.prize-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.prize-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

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

.prize-place-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4ade80;
    min-width: 70px;
    text-align: left;
}

.prize-place-label.first {
    color: #ffd700;
    font-weight: 600;
}

.prize-place-label.second {
    color: #c0c0c0;
    font-weight: 600;
}

.prize-place-label.third {
    color: #cd7f32;
    font-weight: 600;
}

.prize-amount-value {
    font-size: 1.0rem;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
    flex-shrink: 0;
}

/* GRUPPIERTE PLÄTZE (10-11th Place, etc.) */
.prize-group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.prize-group-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

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

.prize-group-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    min-width: 80px;
    text-align: left;
}

.prize-group-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
    flex-shrink: 0;
}

/* STATS SECTION (BOTTOM RIGHT) */
.stats-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    flex: 1;
    min-height: 200px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.stat-group:has(.stat-icon.users) {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stat-group:has(.stat-icon.users) .hover-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.stat-group:has(.stat-icon.users):hover .hover-controls {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.stat-group:has(.stat-icon.users):hover .stat-info {
    opacity: 0;
}

.stat-group:has(.stat-icon.users):hover .stat-icon {
    opacity: 0;
}

.stat-group:has(.stat-icon.users) .stat-info,
.stat-group:has(.stat-icon.users) .stat-icon {
    transition: opacity 0.2s ease;
}

.stat-group .hover-arrow {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}

.stat-group .hover-arrow:hover {
    background: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

.stat-group .current-players {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ef4444;
    text-align: center;
    flex: 1;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.stat-icon.chart {
    background-image: url('../bilder/average.png');
}

.stat-icon.users {
    background-image: url('../bilder/playerleft.png');
}

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

.stat-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* NOTIFICATIONS */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #4ade80;
    font-size: 14px;
    max-width: 300px;
    backdrop-filter: blur(10px);
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* DEMO INFO */
.demo-info {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #4ade80;
    font-size: 14px;
    max-width: 300px;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

/* RESPONSIVE DESIGN */

/* Preloader Responsive Design */

/* Large Screens - 1200px+ */
@media (min-width: 1200px) {
    .loading-container {
        padding: 60px;
        max-width: 800px;
    }
    
    .loading-content {
        padding: 80px 60px;
    }
    
    .loading-title {
        font-size: 3.5rem;
        margin-bottom: 30px;
    }
    
    .loading-subtitle {
        font-size: 1.4rem;
        margin-bottom: 50px;
    }
    
    .poker-chip {
        width: 140px;
        height: 140px;
        margin-bottom: 50px;
    }
    
    .chip-inner {
        width: 100px;
        height: 100px;
    }
    
    .rotating-suit {
        font-size: 32px;
    }
    
    .progress-container {
        height: 10px;
        margin-bottom: 40px;
    }
    
    .loading-steps {
        gap: 40px;
        margin-top: 40px;
    }
    
    .loading-steps .step-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .loading-steps .step-text {
        font-size: 1.1rem;
    }
}

/* Tablet Landscape - 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .loading-container {
        padding: 50px;
        max-width: 700px;
    }
    
    .loading-content {
        padding: 70px 50px;
    }
    
    .loading-title {
        font-size: 2.8rem;
    }
    
    .loading-subtitle {
        font-size: 1.3rem;
    }
    
    .poker-chip {
        width: 130px;
        height: 130px;
    }
    
    .chip-inner {
        width: 90px;
        height: 90px;
    }
    
    .rotating-suit {
        font-size: 30px;
    }
    
    .loading-steps {
        gap: 35px;
    }
    
    .loading-steps .step-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .loading-steps .step-text {
        font-size: 1rem;
    }
}

/* LARGE SCREENS - Better proportions */
@media (min-width: 2100px) {
    .tournament-container {
        padding: 30px;
        max-width: 94vw;
    }
    
    .stats-grid {
        gap: 28px;
        margin-bottom: 30px;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-value {
        font-size: 2.0rem;
    }
    
    .clock-section {
        padding: 60px;
        margin-bottom: 30px;
    }
    
    .clock-display {
        gap: 90px;
        min-height: 420px;
    }
    
    .timer-display {
        height: 420px;
    }
    
    .blinds-section {
        height: 420px;
    }
    
    .timer-value {
        font-size: 15rem;
    }
    
    .blinds-value {
        font-size: 9rem;
    }
    
    .blinds-label {
        font-size: 1.4rem;
        padding-top: 60px;
    }
    
    .control-slider {
        gap: 45px;
    }
    
    .control-btn {
        width: 65px;
        height: 65px;
    }
    
    .control-icon {
        width: 30px;
        height: 30px;
    }
    
    .slider-bar {
        height: 15px;
        max-width: 500px;
    }
    
    .bottom-section {
        gap: 40px;
        grid-template-columns: 2.2fr 1fr;
    }
    
    .stat-main {
        font-size: 2.6rem;
    }
	
	.stat-sub {
		font-size: 1.1rem;
	}
    
    .trophy-amount {
        font-size: 2.4rem;
    }
    
    .trophy-icon {
        width: 75px;
        height: 75px;
    }
    
    .prize-section {
        padding: 28px;
    }
    
    .stats-section .stat-item {
        padding: 28px;
    }
    
    .prize-amount-value {
        font-size: 1.3rem;
    }
	
	.prize-place-label {
		font-size: 1.0rem;	
	}
    
    .prize-group-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .clock-display {
        gap: 10px;
    }
    
    .timer-value {
        font-size: 6rem;
    }
    
    .blinds-value {
        font-size: 2.5rem;
    }
    
    .bottom-section {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
    
    .trophy-section {
        gap: 25px;
    }
    
    .trophy-icon {
        width: 55px;
        height: 55px;
    }
    
    .trophy-amount {
        font-size: 1.3rem;
    }
    
    .stat-row {
        gap: 20px;
    }
    
    .stat-main {
        font-size: 1.4rem;
    }
    
    .prize-three-column {
        grid-template-columns: 1fr 1fr;
        gap: 8px 25px;
    }
}

@media (max-width: 768px) {
    /* Preloader Mobile */
    .loading-container {
        padding: 20px;
    }
    
    .loading-content {
        padding: 40px 30px;
    }
    
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .poker-chip {
        width: 100px;
        height: 100px;
    }
    
    .chip-inner {
        width: 70px;
        height: 70px;
    }
    
    .rotating-suit {
        font-size: 20px;
    }
    
    .loading-steps {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .loading-steps .step-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Tournament Clock Mobile */
    body {
        padding: 0;
    }
    
    .tournament-container {
        margin: 0;
        padding: 0;
    }
    
    .tournament-title {
        font-size: 2rem;
        margin-bottom: 10px;
        padding: 8px 15px;
        padding-right: 60px;
    }
    
    .title-controls {
        right: 10px;
        gap: 8px;
    }
    
    .title-control-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .settings-icon {
        width: 12px;
        height: 12px;
    }
    
    .end-text {
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        margin-bottom: 5px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .clock-section {
        padding: 15px;
        margin-bottom: 5px;
    }
    
    .clock-display {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
        min-height: 250px;
    }
    
    .blinds-section.left,
    .blinds-section.right {
        text-align: center;
    }
    
    .blinds-section {
        height: 200px;
    }
    
    .timer-display {
        height: 150px;
    }
    
    .timer-value {
        font-size: 4rem;
    }
    
    .blinds-value {
        font-size: 2rem;
    }
    
    .bottom-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-row {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .stat-group {
        justify-content: center;
    }
    
    .trophy-section {
        gap: 25px;
    }
    
    .trophy-icon {
        width: 55px;
        height: 55px;
    }
    
    .trophy-amount {
        font-size: 1.3rem;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
    }
    
    .control-icon {
        width: 20px;
        height: 20px;
    }
    
    .slider-bar {
        width: 300px;
        height: 10px;
    }
    
    .control-slider {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .bottom-section {
        gap: 5px;
    }
    
    .prize-section {
        padding: 20px;
        max-height: 250px;
    }
    
    .prize-two-column,
    .prize-three-column {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .prize-row,
    .prize-group-row {
        padding: 8px 0;
    }
    
    .prize-place-label {
        min-width: 60px;
        font-size: 0.85rem;
    }
    
    .prize-amount-value {
        font-size: 1rem;
    }
    
    .prize-group-label {
        min-width: 70px;
        font-size: 0.8rem;
    }
    
    .prize-group-amount {
        font-size: 0.95rem;
    }

    /* Edit Page Mobile */
    .edit-container {
        max-width: 100%;
        padding: 20px;
        border-radius: 20px;
        max-height: 95vh;
    }

    .edit-title {
        font-size: 1.3rem;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .demo-info {
        position: static;
        margin-bottom: 20px;
    }

    /* Stepper Mobile */
    .stepper-container {
        padding: 15px;
    }

    .stepper-header {
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 12px;
    }

    .stepper-content {
        padding: 24px;
        margin-bottom: 20px;
    }

    .step-title {
        font-size: 24px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

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

    .stepper-nav {
        flex-direction: column;
        gap: 12px;
    }

    .nav-btn {
        width: 100%;
    }

    .nav-info {
        order: -1;
    }
}

@media (max-width: 480px) {
    /* Preloader Small Mobile */
    body {
        padding: 10px;
    }
    
    .loading-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .loading-content {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .loading-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .loading-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .poker-chip {
        width: 80px;
        height: 80px;
        margin-bottom: 30px;
    }
    
    .chip-inner {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }
    
    .rotating-suit {
        font-size: 16px;
    }
    
    .chip-outer::before {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-width: 1px;
    }
    
    .progress-container {
        height: 6px;
        margin-bottom: 25px;
    }
    
    .loading-steps {
        gap: 10px;
        margin-top: 25px;
        justify-content: space-between;
    }
    
    .loading-steps .step {
        gap: 8px;
        min-width: 60px;
    }
    
    .loading-steps .step-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        border-width: 1px;
    }
    
    .loading-steps .step-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* Smaller background elements on mobile */
    .suit-symbol {
        font-size: 80px;
        opacity: 0.02;
    }
    
    .table-lines {
        width: 90%;
        height: 70%;
        border-width: 1px;
    }
    
    .table-lines::before {
        border-width: 1px;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }

    /* Tournament Clock Small Mobile */
    .tournament-title {
        font-size: 1.5rem;
        padding: 12px 20px;
        padding-right: 70px;
    }
    
    .title-controls {
        right: 8px;
        gap: 6px;
    }
    
    .title-control-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .settings-icon {
        width: 10px;
        height: 10px;
    }
    
    .end-text {
        font-size: 0.65rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timer-value {
        font-size: 3rem;
    }
    
    .trophy-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .trophy-card {
        flex-direction: row;
        max-width: none;
        width: 100%;
        justify-content: center;
    }
    
    .trophy-icon {
        width: 45px;
        height: 45px;
    }
    
    .trophy-amount {
        font-size: 1.1rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .control-icon {
        width: 18px;
        height: 18px;
    }
    
    .slider-bar {
        width: 250px;
        height: 8px;
    }
    
    .bottom-section {
        gap: 5px;
    }
    
    .prize-section {
        padding: 15px;
        max-height: 220px;
    }
    
    .prize-section h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .prize-place-label {
        min-width: 50px;
        font-size: 0.8rem;
    }
    
    .prize-amount-value {
        font-size: 0.9rem;
    }
    
    .prize-group-label {
        min-width: 60px;
        font-size: 0.75rem;
    }
    
    .prize-group-amount {
        font-size: 0.9rem;
    }

    /* Stepper Small Mobile */
    .stepper-header::before {
        left: 40px;
        right: 40px;
    }

    .progress-line {
        left: 40px;
    }

    .stepper-header {
        padding: 0;
    }
}

/* Extra Small Mobile - 360px */
@media (max-width: 360px) {
    .loading-title {
        font-size: 1.4rem;
    }
    
    .loading-subtitle {
        font-size: 0.8rem;
    }
    
    .poker-chip {
        width: 70px;
        height: 70px;
    }
    
    .chip-inner {
        width: 50px;
        height: 50px;
    }
    
    .rotating-suit {
        font-size: 14px;
    }
    
    .loading-steps {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .loading-steps .step {
        min-width: 50px;
    }
    
    .loading-steps .step-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .loading-steps .step-text {
        font-size: 0.7rem;
    }
    
    .suit-symbol {
        font-size: 60px;
    }
}

/* Touch Optimizations for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .loading-steps .step-icon {
        min-height: 44px;
        min-width: 44px;
    }
    
    .loading-content {
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Prevent zoom on double tap */
    * {
        touch-action: manipulation;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .stepper-container {
        padding: 15px;
    }

    .stepper-header {
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 12px;
    }

    .stepper-content {
        padding: 24px;
        margin-bottom: 20px;
    }

    .step-title {
        font-size: 24px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

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

    .stepper-nav {
        flex-direction: column;
        gap: 12px;
    }

    .nav-btn {
        width: 100%;
    }

    .nav-info {
        order: -1;
    }
}

@media (max-width: 480px) {
    .stepper-header::before {
        left: 40px;
        right: 40px;
    }

    .progress-line {
        left: 40px;
    }

    .stepper-header {
        padding: 0;
    }
}

/* ANIMATIONS */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content.active {
    animation: slideIn 0.4s ease-out;
}

/* CUSTOM SCROLLBARS */
.payout-positions::-webkit-scrollbar {
    width: 6px;
}

.payout-positions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.payout-positions::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 3px;
}

.blinds-structure::-webkit-scrollbar {
    width: 6px;
}

.blinds-structure::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.blinds-structure::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 3px;
}

.edit-container::-webkit-scrollbar {
    width: 8px;
}

.edit-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.edit-container::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 4px;
}

.structure-levels-container::-webkit-scrollbar {
    width: 6px;
}

.structure-levels-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.structure-levels-container::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 3px;
}

/* ENDE DER CSS DATEI */