@charset "UTF-8";

html,html.dark {
    --tp-red: #ef4444;
    --tp-orange: #f97316;
    --tp-amber: #f59e0b;
    --tp-lime: #84cc16;
    --tp-green: #22c55e;
    --tp-emerald: #10b981;
    --tp-teal: #14b8a6;
    --tp-cyan: #06b6d4;
    --tp-sky: #0ea5e9;
    --tp-blue: #3b82f6;
    --tp-indigo: #6366f1;
    --tp-violet: #8b5cf6;
    --tp-purple: #a855f7;
    --tp-fuchsia: #d946ef;
    --tp-pink: #ec4899;
    --tp-rose: #f43f5e;
    --tp-red-100: #fee2e2;
    --tp-orange-100: #fef3c7;
    --tp-amber-100: #fefce8;
    --tp-lime-100: #ecfccb;
    --tp-green-100: #dcfce7;
    --tp-emerald-100: #d1fae5;
    --tp-teal-100: #ccfbf1;
    --tp-cyan-100: #cffafe;
    --tp-sky-100: #e0f2fe;
    --tp-indigo-100: #e0e7ff;
    --tp-violet-100: #ede9fe;
    --tp-purple-100: #f3e8ff;
    --tp-fuchsia-100: #fae8ff;
    --tp-pink-100: #fce7f3;
    --tp-rose-100: #ffe4e6
}

body,p {
    margin: 0
}

a,body {
    color: var(--tp-500);
    text-decoration: none
}

@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
}

html {
    --tp-50: #18181b;
    --tp-100: #1d1d20;
    --tp-200: #27272b;
    --tp-300: #303036;
    --tp-400: #3a3a41;
    --tp-500: #9ca3af;
    --tp-600: #d1d5db;
    --tp-700: #e5e7eb;
    --tp-800: #f3f4f6;
    --tp-900: #f9fafb;
    --tp-blue-100: #d7e8ff
}

body {
    font-family: GILROY,sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    FONT-WEIGHT: 500;
    background-color: var(--tp-50);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none
}

* {
    --tp-site-color: #A12A40;
    --plyr-color-main: #A12A40;
    --tp-site-border: 5px;
    --tp-blue-gradient: linear-gradient(90deg, var(--tp-900) 0, var(--tp-300) 200%);
    font-family: GILROY
}

a {
    text-decoration: none
}

.justify-content-center {
    justify-content: center!important
}

.text-center {
    display: flex;
    justify-content: center
}

h2 {
    margin: 0
}

.hidden {
    display: none!important
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto
}

@media(min-width: 640px) {
    .container {
        max-width:620px
    }
}

@media(min-width: 768px) {
    .container {
        max-width:720px
    }
}

@media(min-width: 1024px) {
    .container {
        max-width:968px
    }
}

@media(min-width: 1280px) {
    .container {
        max-width:1140px
    }
}

@media(min-width: 1536px) {
    .container {
        max-width:1480px
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 20px;
    padding-right: calc(1.5rem * .5);
    padding-left: calc(1.5rem * .5)
}

.grid-item {
    background-color: #ccc;
    padding: 10px;
    text-align: center
}

.col-span-1 {
    grid-column: span 1/span 1
}

.col-span-2 {
    grid-column: span 2/span 2
}

.col-span-3 {
    grid-column: span 3/span 3
}

.col-span-4 {
    grid-column: span 4/span 4
}

.col-span-5 {
    grid-column: span 5/span 5
}

.col-span-6 {
    grid-column: span 6/span 6
}

.col-span-7 {
    grid-column: span 7/span 7
}

.col-span-8 {
    grid-column: span 8/span 8
}

.col-span-9 {
    grid-column: span 9/span 9
}

.col-span-10 {
    grid-column: span 10/span 10
}

.col-span-11 {
    grid-column: span 11/span 11
}

.col-span-12 {
    grid-column: span 12/span 12
}

@media only screen and (max-width: 640px) {
    .grid-container {
        grid-template-columns:repeat(6,1fr)
    }

    .col-span-1,.col-span-10,.col-span-11,.col-span-12,.col-span-2,.col-span-3,.col-span-4,.col-span-5,.col-span-6,.col-span-7,.col-span-8,.col-span-9 {
        grid-column: span 6/span 6
    }
}

@media only screen and (min-width: 641px) and (max-width:768px) {
    .grid-container {
        grid-template-columns:repeat(8,1fr)
    }

    .col-span-1,.col-span-10,.col-span-11,.col-span-12,.col-span-2,.col-span-3,.col-span-4,.col-span-5,.col-span-6,.col-span-7,.col-span-8,.col-span-9 {
        grid-column: span 8/span 8
    }
}

@media only screen and (min-width: 769px) and (max-width:1024px) {
    .grid-container {
        grid-template-columns:repeat(12,1fr)
    }

    .col-span-1,.col-span-10,.col-span-11,.col-span-12,.col-span-2,.col-span-3,.col-span-4,.col-span-5,.col-span-6,.col-span-7,.col-span-8,.col-span-9 {
        grid-column: span 12/span 12
    }
}

@media only screen and (min-width: 1025px) and (max-width:1280px) {
    .grid-container {
        grid-template-columns:repeat(12,1fr)
    }
}

@media only screen and (min-width: 1281px) and (max-width:1536px) {
    .grid-container {
        grid-template-columns:repeat(12,1fr)
    }
}

.container-fluid {
    padding-right: var(--bs-gutter-x,.65rem);
    padding-left: var(--bs-gutter-x,.65rem);
    padding-bottom: 60px
}

.main-content .row {
    gap: 100px;
    display: flex;
    flex-direction: column-reverse
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap
}

.row>* {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y)
}

.col {
    flex: 1 0 0
}

.col-auto {
    flex: 0 0 auto;
    width: auto
}

.col-1 {
    flex: 0 0 auto;
    width: 8.33333333%
}

.col-2,.col-3 {
    flex: 0 0 auto
}

.col-2 {
    width: 16.66666667%
}

.col-3 {
    width: 25%
}

.col-4,.col-5 {
    flex: 0 0 auto
}

.col-4 {
    width: 33.33333333%
}

.col-5 {
    width: 41.66666667%
}

.col-6,.col-7 {
    flex: 0 0 auto
}

.col-6 {
    width: 50%
}

.col-7 {
    width: 58.33333333%
}

.col-8,.col-9 {
    flex: 0 0 auto
}

.col-8 {
    width: 66.66666667%
}

.col-9 {
    width: 75%
}

.col-10 {
    flex: 0 0 auto;
    width: 83.33333333%
}

.col-11 {
    flex: 0 0 auto;
    width: 91.66666667%
}

.col-12 {
    flex: 0 0 auto;
    width: 100%
}

.taboo-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tp-site-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    z-index: 1000;
    display: none;
    animation: fadeInOut 2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

.game-container {
    display: flex;
    gap: 20px;
    height: 90vh;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 30%;
}

.tabu-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 70%;
}

.leaderboard-container, .chat-container {
    background: var(--tp-200);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    height: 75%;
    display: flex;
    flex-direction: column;
}

.leaderboard-container h2, .chat-container h2 {
    color: var(--tp-600);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.leaderboard-container h2:before, .chat-container h2:before {
    content: "\f091";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--tp-amber);
}

.chat-container h2:before {
    content: "\f4ad";
    color: var(--tp-blue);
}

.leaderboard, .chat-messages {
    overflow-y: auto;
    padding: 10px;
    background: var(--tp-100);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 5px;
}

.chat-message {
    padding: 8px 10px;
    word-break: break-word;
    color: var(--tp-600);
    background: var(--tp-200);
    border-radius: 6px;
    margin-bottom: 6px;
    animation: fadeIn 0.3s ease-in-out;
}

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

.chat-message img {
    height: 20px;
    vertical-align: middle;
    margin: 0 2px;
}

.username {
    font-weight: bold;
    margin-right: 5px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--tp-200);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

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

.leaderboard-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.leaderboard-item.gold {
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: var(--tp-50);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.leaderboard-item.silver {
    background: linear-gradient(135deg, #c0c0c0, #a6a6a6);
    color: var(--tp-50);
    box-shadow: 0 3px 10px rgba(192, 192, 192, 0.3);
}

.leaderboard-item.bronze {
    background: linear-gradient(135deg, #cd7f32, #b36a2c);
    color: var(--tp-50);
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.3);
}

.leaderboard-item.gold::before,
.leaderboard-item.silver::before,
.leaderboard-item.bronze::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    font-size: 28px;
    opacity: 0.2;
}

.leaderboard-item.gold::before {
    content: "\f521";
}

.leaderboard-item.silver::before {
    content: "\f559";
}

.leaderboard-item.bronze::before {
    content: "\f559";
}

.leaderboard-item.gold .username, 
.leaderboard-item.silver .username, 
.leaderboard-item.bronze .username,
.leaderboard-item.gold .score-info, 
.leaderboard-item.silver .score-info, 
.leaderboard-item.bronze .score-info {
    color: var(--tp-50) !important;
    z-index: 1;
}

.score-info {
    display: flex;
    gap: 10px;
    color: var(--tp-500);
    font-weight: 500;
}

.word-count, .score {
    display: flex;
    align-items: center;
}

.word-count:before {
    content: "\f075";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
    font-size: 12px;
}

.score:before {
    content: "\f3ff";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
    font-size: 12px;
}

.streamer-panel{
    background: var(--tp-200);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    height: 30%;
    display: flex;
    flex-direction: column;
    position: relative;
    align-content: space-between;
}

.streamer-panel h2 {
    color: var(--tp-600);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.streamer-panel h2:before {
    content: "\f05e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--tp-red);
}

#usedTabooWords{
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

#usedTabooWords .used-taboo-word{
    background: var(--tp-300);
    color: var(--tp-600);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.streamer-container {
    background: var(--tp-200);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 30%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.game-start{
    gap: 15px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.game-start h2 {
    color: var(--tp-600);
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.word-selection{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.word-selection h2 {
    color: var(--tp-600);
    font-weight: 600;
    margin-bottom: 20px;
}

.game-area{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.camera-box {
    flex: 1;
    background: var(--tp-100);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.camera-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.current-word {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-align: center;
    border-radius: 8px;
    letter-spacing: 1px;
}

@keyframes pulseWord {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.taboo-words-list {
    color: var(--tp-rose);
    font-size: 1.5em;
    text-align: center;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.taboo-word{
    padding: 8px 18px;
    background: var(--tp-100);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.taboo-word:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.game-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.word-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.word-button {
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: var(--tp-300);
    color: var(--tp-600);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.word-button:hover {
    background: var(--tp-400);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.word-button.active {
    background: var(--tp-site-color);
    color: white;
}

.pass-button {
    background: var(--tp-400);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: center;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.pass-button:hover {
    background: var(--tp-300);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
}

#roundDisplay, #timeDisplay {
    background: var(--tp-300);
    color: var(--tp-600);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#roundDisplay:before {
    content: "\f1da";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--tp-blue);
}

#timeDisplay {
    background: linear-gradient(135deg, var(--tp-300), var(--tp-200));
}

#timeDisplay:before {
    content: "\f2f2";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--tp-amber);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: modalFadeIn 0.25s ease-out;
}

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

.modal-content {
    background: var(--tp-200);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    color: var(--tp-600);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transform: scale(0.95);
    animation: modalContentIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalContentIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.progress-container {
    width: 100%;
    height: 6px;
    background: var(--tp-50);
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--tp-site-color);
    transition: width 0.05s linear;
    border-radius: 6px;
}

.word-options {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.word-option {
    border-radius: 10px;
    display: flex;
    transition: all 0.3s;
    flex-direction: column;
    gap: 10px;
    width: 150px;
    overflow: hidden;
}

.word-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.word-select-btn {
    width: 100%;
    padding: 15px 10px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, var(--tp-400), var(--tp-300));
    color: var(--tp-600);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.word-option .taboo-words {
    display: none !important;
}

.taboo-words {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: var(--tp-100);
    border-radius: 8px;
    margin-top: 5px;
}

.word-select-btn:hover {
    background: linear-gradient(135deg, var(--tp-site-color), #d62a56);
    color: white;
    box-shadow: 0 4px 12px rgba(209, 42, 86, 0.5);
}

.primary-button {
    background: linear-gradient(135deg, var(--tp-site-color), #d62a56);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(209, 42, 86, 0.3);
}

.primary-button:hover {
    background: linear-gradient(135deg, #d62a56, var(--tp-site-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(209, 42, 86, 0.4);
}

.lottie-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tp-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--tp-300);
    border-radius: 4px;
}

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

/* Modal Styling Improvements */
#winnerModal .modal-content, 
#timeUpModal .modal-content, 
#gameEndModal .modal-content,
#tabooSpokenModal .modal-content {
    padding: 30px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--tp-200), var(--tp-100));
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--tp-300);
}

#winnerModal h2, 
#timeUpModal h2, 
#gameEndModal h2,
#tabooSpokenModal h2 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

#winnerModal .modal-content {
    background: linear-gradient(135deg, var(--tp-200), var(--tp-100));
}

#winnerModal h2 {
    color: white;
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 700;
}

.warning-title {
    color: var(--tp-red) !important;
    font-size: 2em !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 1s infinite alternate;
    text-shadow: 0 2px 5px rgba(239, 68, 68, 0.5) !important;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.taboo-spoken-word {
    font-size: 2em;
    color: white;
    background: var(--tp-red);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 15px 0;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    text-transform: uppercase;
}

.time-up-text {
    font-size: 1.8em;
    color: var(--tp-red);
    font-weight: bold;
    margin-bottom: 10px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.time-up-subtext {
    font-size: 1.1em;
    color: var(--tp-600);
    margin-bottom: 15px;
}

.word-reveal {
    background: linear-gradient(135deg, var(--tp-50), var(--tp-100));
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--tp-300);
}

.winner-info {
    margin: 15px 0;
    font-size: 1.4em;
    padding: 12px;
    border-radius: 8px;
    animation: fadeIn 0.4s ease-in;
}

.winner-info .points {
    font-size: 0.8em;
    color: var(--tp-amber);
    margin-top: 5px;
    display: block;
}

.word-reveal > div:first-child {
    font-size: 1.4em;
    color: var(--tp-cyan);
    margin-bottom: 15px;
    font-weight: 600;
}

.taboo-words-list h3 {
    color: var(--tp-red);
    font-size: 1.2em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

#revealedWord {
    font-weight: 700;
    color: white;
    background: var(--tp-site-color);
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-left: 5px;
}

#revealedTabooWords {
    display: flex;
    color: var(--tp-600);
    gap: 8px;
    line-height: 1.5;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

#revealedTabooWords .word-item {
    padding: 6px 12px;
    background: var(--tp-300);
    border-radius: 6px;
    animation: fadeIn 0.4s ease-in;
    animation-fill-mode: both;
}

#revealedTabooWords .word-item:nth-child(1) { animation-delay: 0.1s; }
#revealedTabooWords .word-item:nth-child(2) { animation-delay: 0.2s; }
#revealedTabooWords .word-item:nth-child(3) { animation-delay: 0.3s; }
#revealedTabooWords .word-item:nth-child(4) { animation-delay: 0.4s; }
#revealedTabooWords .word-item:nth-child(5) { animation-delay: 0.5s; }

.taboo-title {
    color: white;
    font-size: 1.6em;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.word-reveal .taboo-words-list {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.taboo-word {
    background: var(--tp-300);
    color: var(--tp-600);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.taboo-word.revealed {
    background: var(--tp-green);
    color: white;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
    animation: reveal 0.5s ease-out;
}

@keyframes reveal {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.pass-button {
    background: linear-gradient(135deg, var(--tp-site-color), #b83450);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    transition: all 0.3s;
    font-size: 1.1em;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
    font-weight: 500;
    align-items: center;
    box-shadow: 0 4px 10px rgba(184, 52, 80, 0.3);
}

.pass-button:hover {
    background: linear-gradient(135deg, #b83450, var(--tp-site-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 52, 80, 0.4);
}

#gameEndModal .winner-announcement {
    font-size: 1.8em;
    margin: 20px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.winner-name {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.winner-stats {
    font-size: 0.9em;
    color: var(--tp-amber);
}

#finalLeaderboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.microphone-notice {
    display: none;
    align-items: center;
    background: var(--tp-100);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-in;
}

.microphone-icon {
    font-size: 1.2em;
    margin-right: 10px;
    color: var(--tp-red);
}

.microphone-icon.active {
    color: var(--tp-green);
    animation: pulseMic 1.5s infinite alternate;
}

@keyframes pulseMic {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.microphone-text {
    font-size: 0.9em;
    color: var(--tp-600);
}

.taboo-spoken-modal {
    z-index: 1100; /* Higher than other modals */
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }

    .left-panel, .tabu-container {
        width: 100%;
    }

    .left-panel {
        height: auto;
    }

    .leaderboard-container, .chat-container, .streamer-panel {
        height: 300px;
    }
    
    .word-options {
        flex-direction: column;
    }
    
    .word-option {
        width: 100%;
    }
    
    .taboo-words-list {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .current-word {
        font-size: 2em;
    }
}

#timeUpWord {
    font-weight: 700;
    color: white;
    background: var(--tp-site-color);
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 5px;
}

#gameEndModal h2 {
    color: white;
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 700;
}

.winner-name {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.winner-stats {
    font-size: 0.9em;
    color: var(--tp-amber);
}

#finalLeaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    max-height: 280px;
    overflow-y: auto;
}

.warning-title {
    color: var(--tp-red) !important;
    font-size: 1.8em !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.taboo-spoken-word {
    font-size: 1.8em;
    color: white;
    background: var(--tp-red);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin: 12px 0;
    font-weight: 700;
    text-transform: uppercase;
}

.lottie-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--tp-50);
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .lottie-container {
        width: 120px;
        height: 120px;
    }
    
    #revealedTabooWords {
        gap: 6px;
    }
    
    #revealedTabooWords .word-item {
        font-size: 0.9em;
    }
}