@font-face {
    font-family: GILROY;
    src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-300.TTF) format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: GILROY;
    src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-400.TTF) format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: GILROY;
    src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-500.TTF) format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: GILROY;
    src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-600.TTF) format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: GILROY;
    src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-700.TTF) format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: GILROY;
    src: url(https://cdn.fsksoft.com/fonts/gilroy/GILROY-800.TTF) format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --tp-50: #f9fafb;
    --tp-100: #f3f4f6;
    --tp-200: #e5e7eb;
    --tp-300: #d1d5db;
    --tp-400: #9ca3af;
    --tp-500: #3a3a41;
    --tp-600: #2a2a30;
    --tp-700: #202025;
    --tp-800: #16161a;
    --tp-900: #111115;
    --tp-950: #111115;
    
    --tp-orange: #53fc18;
    --tp-red: #ef4444;
    --tp-green: #10b981;
    --tp-blue: #3b82f6;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--tp-600) var(--tp-800);
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: var(--tp-800);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb {
    background: var(--tp-600);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--tp-500);
}

.bg-tp-orange {
    background-color: var(--tp-orange);
}

.bg-tp-orange:hover {
    background-color: #37a310;
}

.border-tp-orange {
    border-color: var(--tp-orange);
}

.text-tp-orange {
    color: var(--tp-orange);
}

.text-tp-red {
    color: var(--tp-red);
}

.text-tp-green {
    color: var(--tp-green);
}

.text-tp-blue {
    color: var(--tp-blue);
}

.bg-tp-green {
    background-color: var(--tp-green);
}

.bg-tp-red {
    background-color: var(--tp-red);
}

.bg-tp-blue {
    background-color: var(--tp-blue);
}

.border-tp-green {
    border-color: var(--tp-green);
}

.border-tp-red {
    border-color: var(--tp-red);
}

.border-tp-600 {
    border-color: var(--tp-600);
}

.border-tp-700 {
    border-color: var(--tp-700);
}

.winner-selector-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tp-800), var(--tp-700));
    border: 2px solid var(--tp-orange);
    box-shadow: 0 8px 32px #174606;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 600;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--tp-700), var(--tp-600));
    border-radius: 12px;
    color: white;
    text-align: center;
    padding: 0 24px;
    transition: all 0.3s ease;
    /* max-width: 500px; */
}

.winner-selector.counting {
    background: linear-gradient(135deg, var(--tp-600), var(--tp-500));
    animation: countingPulse 0.1s infinite alternate;
}

.winner-selector.winner {
    background: linear-gradient(135deg, var(--tp-orange), #3fbd12);
    color: white;
    font-weight: 700;
    font-size: 2rem;
    color: #111115;
    box-shadow: 0 0 40px #3fbd12;
    animation: winnerGlow 1.5s ease-in-out infinite alternate;
}

.winner-selector span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#winnerAnnouncement button{
    color: #111115 !important;
}

@keyframes countingPulse {
    0% {
        box-shadow: 0 0 10px #2d850c;
    }
    100% {
        box-shadow: 0 0 20px #3fbd12;
    }
}

/* Slider stilleri */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: var(--tp-600);
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--tp-blue);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
    background: var(--tp-600);
    height: 8px;
    border-radius: 4px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    background: var(--tp-blue);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

@keyframes winnerGlow {
    0% {
        box-shadow: 0 0 30px #2d850c;
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 50px #3fbd12;
        transform: scale(1.02);
    }
}

.chat-message {
    padding: 4px 6px;
    border-bottom: 1px solid var(--tp-700);
    transition: all 0.2s ease;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    justify-content: center;
    background: var(--tp-700);
    margin-top: 3px;
    border-radius: 5px;
}

.chat-message:last-child {
    /* border-bottom: none; */
}

#startCollectingBtn{
    color: #111115 !important;
}

#subscriberBoostSlider{
    background: var(--tp-500);
}

#subscriberBoostSlider::-webkit-slider-thumb{
    background: var(--tp-orange);
}

#checkAccountBtn, #redrawBtn, #openExternalBtn{
    color: #111115 !important;
}

.chat-message .badges {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
    align-items: center;
}

.chat-message .badges img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.chat-message .username {
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 4px;
}

.chat-message .message-content {
    color: var(--tp-200);
    font-size: 14px;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chat-message .message-content img.emote {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin: 0 2px;
    border-radius: 2px;
}

.participant-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--tp-700);
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: var(--tp-700);
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
    line-height: 1;
    margin-bottom: 2px;
    margin-top: 2px;
}

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

.participant-item:hover {
    background: var(--tp-600);
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.participant-item .badges {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.participant-item .badges img {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.participant-item .username {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    color: white !important;
}

.participant-item.banned {
    opacity: 0.6;
}

.participant-item.banned .username {
    text-decoration: line-through;
    color: var(--tp-400);
}

.participant-item .status {
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: auto;
}

.participant-item .status.eligible {
    color: var(--tp-green);
}

.participant-item .status.banned {
    color: var(--tp-red);
}

@keyframes newMessage {
    0% {
        opacity: 0;
        transform: translateX(-10px);
        background: var(--tp-600);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        background: var(--tp-700);
    }
}

.hover\:bg-opacity-80:hover {
    background-color: #3fbd12;
}

button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

input[type="text"] {
    background: var(--tp-700);
    border: 1px solid var(--tp-600);
    color: white;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--tp-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}

input[type="text"]::placeholder {
    color: var(--tp-400);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

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

.line-through {
    text-decoration-line: line-through;
}

.opacity-60 {
    opacity: 0.6;
}

.leading-relaxed {
    line-height: 1.625;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-x-1 > * + * {
    margin-left: 0.25rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.mt-0.5 {
    margin-top: 0.125rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.w-2 {
    width: 0.5rem;
}

.h-2 {
    height: 0.5rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}

.text-tp-100 {
    color: var(--tp-100);
}

.text-tp-200 {
    color: var(--tp-200);
}

.text-tp-300 {
    color: var(--tp-300);
}

.text-tp-400 {
    color: var(--tp-400);
}

.bg-tp-600 {
    background-color: var(--tp-600);
}

.bg-tp-700 {
    background-color: var(--tp-700);
}

.bg-tp-800 {
    background-color: var(--tp-800);
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.max-h-48 {
    max-height: 12rem;
}

.max-h-80 {
    max-height: 20rem;
}

.max-h-96 {
    max-height: 24rem;
}

.overflow-y-auto {
    overflow-y: auto;
}

.justify-between {
    justify-content: space-between;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-col {
    flex-direction: column;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.h-full {
    height: 100%;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none;
}

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

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.ml-auto {
    margin-left: auto;
}

.align-middle {
    vertical-align: middle;
}

.mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.overflow-hidden {
    overflow: hidden;
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: rgb(255 255 255);
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .winner-selector {
        font-size: 1.2rem;
    }
    
    .winner-selector.winner {
        font-size: 1.5rem;
    }
    
    .chat-message {
        padding: 6px 0;
    }
    
    .chat-message .username,
    .chat-message .message-content {
        font-size: 13px;
    }
    
    .participant-item {
        font-size: 13px;
    }
}

#mainScreen{
    padding: 0px;
    margin-top: 20px;
}