@font-face {
    font-family: 'Wolfy';
    src: url('../fonts/NewRocker-Regular.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'SpecialPower';
    src: url('../fonts/Lacquer-Regular.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Typewriter';
    src: url('../fonts/SpecialElite-Regular.ttf') format('truetype');
    font-display: swap;
}

.clear-font {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.wolfy-font {
    font-family: 'Wolfy', serif !important;
}

.specialpower-font {
    font-family: 'SpecialPower', sans-serif !important;
}

.typewriter-font {
    font-family: 'Typewriter', monospace !important;
}

.nav-menu {
    margin-top: 14px;    
    padding:10px;    
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
}

.hamburger-button {    
    border:none; 
    background-color: transparent;
}

.hamburger-button:hover {
    cursor: pointer;
}

.hamburger-button i {
    color: whitesmoke;
}

#hamburger-menu {
    margin-top: 28px;
    position: absolute;
    z-index: 1000;
    text-align: left;
    width: 90%;
    max-width: 90%;
    left: 5%;
}

#hamburger-menu ul {   
    /* border: 1px solid #ccc; */
    border-top: none;    
    border-radius: 6px;
    border-top-left-radius: 0%;
    border-top-right-radius: 0%;
    box-shadow: #333 6px 6px 6px 2px;
    background-color: black;
}

#hamburger-menu li span {
    display: inline-block;
    width: 30px;
    text-align: center;
    margin-right: 8px;
}

#hamburger-menu .pure-menu-link {
    color: whitesmoke;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

#hamburger-menu .pure-menu-link:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}


/* Base styling with background and fonts */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('../images/background.jpg');    
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
    background-color: #1a1a1a;
    font-family: 'Typewriter', 'Courier New', monospace;
    color: #f0f0f0;
    font-size: 18px; /* Increased base font size for mobile */
}

/* Override Pure.css body styling */
body {
    background-color: transparent;
    padding: 1em; /* Reduced for mobile */
}

.wolf-button {
    font-family: 'Typewriter', serif;
    font-size: 1.8em;    
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-decoration: none;    
    height: 130px;
    margin: 100px 0;
    max-width: 100%;  
    background-color: whitesmoke;
    border-radius: 10px;

    display: flex;
    gap: 0.6em;
    justify-content: center;
    margin-bottom: 0;
    align-items: center;

    background: linear-gradient(45deg, #4a0e4e, #81008a);
    border: 2px solid #FFD700;
    color: #FFD700;
   
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    min-width: 140px;
}

.wolf-button:hover {
    background: linear-gradient(45deg, #6a1e6e, #a100aa);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);   
    cursor: pointer;
}

.wolf-button:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: all 0.1s ease;
}



/* Main content containers */
.werewolf-container {
    background: rgba(0, 0, 0, 0.8);    
    border-radius: 10px;    
    padding: 1.5em; /* Reduced for mobile */
    color: #f0f0f0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-family: 'Wolfy', serif;
    color: whitesmoke;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 2.8em; /* Increased for mobile */
    text-align: center;
}

h2 {
    font-family: 'Wolfy', 'Times New Roman', serif;
    color: whitesmoke;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 2.1em; /* Increased for mobile */
}

h3 {
    font-family: 'Wolfy', 'Times New Roman', serif;
    color: whitesmoke;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-size: 1.6em; /* Increased for mobile */
}

/* Override Pure.css form styling */
.pure-form input, .pure-form textarea, .pure-form select {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #8B4513;
    color: whitesmoke;
    font-family: 'Typewriter', 'Courier New', monospace;
    font-size: 1.1em; /* Increased for mobile */
    padding: 12px; /* Increased padding for mobile */
}

.pure-form input:focus, .pure-form textarea:focus, .pure-form select:focus {
    border-color: #D2691E;
    box-shadow: 0 0 10px rgba(210, 105, 30, 0.5);
}

/* Override Pure.css button styling */
.pure-button {
    background: linear-gradient(45deg, #6c6f74, #3a4146);    
    color: whitesmoke;
    font-family: 'Typewriter', 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    font-size: 1.1em; /* Increased for mobile */
    padding: 12px 20px; /* Increased padding for mobile */
    min-height: 48px; /* Minimum touch target size */
}

.pure-button:hover {
    background: linear-gradient(45deg, #565c69, #383f47);
    transform: translateY(-1px);
}

.pure-button-primary {
    background: linear-gradient(45deg, #2059d3, #658adb);
    border-color: #FF4500;
}

/* Game-specific styling */
.player-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(180, 179, 163, 0.2));
    border: 1px solid #444;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.error-box {
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid #DC143C;
    color: #ff6b6b;
}

/* Text color overrides and font consistency */
p, span, div, li, label, small, code {
    color: #f0f0f0;
    font-family: 'Typewriter', 'Courier New', monospace;
    font-size: 1.1em; /* Increased for mobile */
    line-height: 1.5; /* Better readability */
}

/* Link styling */
a {
    color: #22349b;
    text-decoration: none;
    font-family: 'Typewriter', 'Courier New', monospace;
    font-size: 1.1em; /* Increased for mobile */
}

/* Ensure Typewriter font for all text elements */
* {
    font-family: 'Typewriter', 'Courier New', monospace;
}

/* Form labels and helper text */
.pure-form label, .pure-form small {
    font-family: 'Typewriter', 'Courier New', monospace;
    color: #f0f0f0;
    font-size: 1.1em; /* Increased for mobile */
}

/* Table and list styling */
table, th, td, ul, ol {
    font-family: 'Typewriter', 'Courier New', monospace;
    color: #f0f0f0;
    font-size: 1.1em; /* Increased for mobile */
}

/* High contrast voting controls */
.voting-button {
    background: linear-gradient(45deg, #654321, #8B4513);
    border: 3px solid #D2691E;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.voting-button:hover {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.voting-button.selected {
    background: linear-gradient(45deg, #B8860B, #DAA520);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

/* Ringleader voting section */
.ringleader-voting-container {
    margin-bottom: 2em;
    padding: 1.5em;
    border: 3px solid #D2691E;
}

.ringleader-voting-title {
    color: #ffd700;
    margin-bottom: 1em;
    text-align: center;
}

.voting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.ringleader-vote-button {
    padding: 1.2em; /* Increased for mobile */
    font-size: 1.1em; /* Increased for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 70px; /* Increased for mobile touch targets */
    border: 3px solid #8B4513;
    background: linear-gradient(45deg, #654321, #8B4513);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ringleader-vote-button.selected {
    border-color: #FFD700;
    background: linear-gradient(45deg, #B8860B, #DAA520);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.ringleader-vote-button:hover {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    transform: translateY(-1px);
}

.vote-button-text {
    font-family: 'Typewriter', monospace; /* Added Typewriter font */
    color: #fff;
    font-weight: bold;
    font-size: 1.1em; /* Increased for mobile */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.vote-crown-icon {
    color: #FFD700;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.vote-check-icon {
    color: #00FF00;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Proceed to voting button */
.proceed-voting-button {
    padding: 1em 2em;
    font-size: 1.1em;        
    background: linear-gradient(45deg, rgb(17, 17, 16), rgb(109, 108, 108));
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 2em 0;
}

.vote-icon {
    margin-right: 0.5em;
}

/* Sniff Request Modal */
.sniff-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 990;
}

.sniff-modal-container {
    max-width: 90%; /* More mobile-friendly width */
    width: 90%;
    margin: 0 auto;
    padding: 1.5em; /* Slightly reduced for mobile */
    border: 3px solid #8B4513;
    background: linear-gradient(135deg, #2C1810, #3D2317);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.6);
}

.sniff-modal-title {
    font-family: 'Wolfy', serif; /* Use Wolfy for titles */
    font-size: 1.8em; /* Increased for mobile */
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 1em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.sniff-modal-content {
    font-family: 'Typewriter', monospace; /* Use Typewriter for regular text */
    color: #E6D7C3;
    font-size: 1.1em; /* Increased for mobile */
    margin-bottom: 1.5em;
    line-height: 1.5;
}

.sniff-modal-sniffer {
    font-weight: bold;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.sniff-modal-description {
    font-size: 0.9em;
    color: #B8A082;
    margin-top: 0.5em;
}

.sniff-modal-buttons {
    display: flex;
    gap: 1em;
}

.sniff-accept-button {
    flex: 1;
    padding: 1em;
    border: 3px solid #228B22;
    background: linear-gradient(45deg, #006400, #228B22);
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.sniff-accept-button:hover {
    background: linear-gradient(45deg, #228B22, #32CD32);
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.6);
    transform: translateY(-1px);
}

.sniff-deny-button {
    flex: 1;
    padding: 1em;
    border: 3px solid #DC143C;
    background: linear-gradient(45deg, #8B0000, #DC143C);
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.sniff-deny-button:hover {
    background: linear-gradient(45deg, #DC143C, #FF1493);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.6);
    transform: translateY(-1px);
}

/* Results Page Styling */
.results-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(180, 179, 163, 0.2));
    padding: 1em;
    border: 3px solid #615d59;
    margin-bottom: 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);    
}

.results-section h2 {
    color: whitesmoke;
    margin: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.3em;
}

.results-title {
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    margin-bottom: 0.5em;
    font-size: 2.5em;
}

.executed-player-name {
    color: #FF6B6B;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 4px 0;
}

.executed-player-role {
    color: #E6D7C3;
    margin: 4px 0;    
}

.winning-team-name {
    color: #32CD32;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 4px 0;
}

.win-reason {
    color: #E6D7C3;
    font-size: 0.95em;
    margin: 8px 0;
    line-height: 1.4;
}

.vote-tally-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #4A2C2A, #5D3A38);
    padding: 0.8em;
    margin-bottom: 0.5em;
    border: 2px solid #8B4513;
    border-radius: 5px;
}

.vote-tally-name {
    font-weight: bold;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.vote-tally-count {
    color: #FF8C00;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.vote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #4A2C2A, #5D3A38);
    padding: 0.8em;
    margin-bottom: 0.4em;
    border: 2px solid #8B4513;
    border-radius: 5px;
}

.vote-item.no-vote {
    background: linear-gradient(45deg, #3D2317, #2C1810);
    opacity: 0.8;
    border-color: #654321;
}

.voter-name {
    font-weight: bold;
    color: #E6D7C3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ringleader-badge {
    color: #FFD700;
    font-size: 0.8em;
    margin-left: 0.3em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.vote-target {
    color: #FF6B6B;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.no-vote-text {
    color: #B8A082;
    font-style: italic;
}

.player-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8em;
    font-size: 0.9em;
    list-style: none;
    padding: 0;
}

.player-role-item {
    background: linear-gradient(45deg, #4A2C2A, #5D3A38);
    padding: 0.8em;
    border: 2px solid #8B4513;
    border-radius: 5px;
}

.player-name {
    font-weight: bold;
    color: whitesmoke;
    font-size: 1.2em;
    text-shadow:
        1px 1px 20px rgba(0, 0, 0, 1.0);
}.player-role {
    color: whitesmoke;
}

.player-executed {
    color: #FF6B6B;
    font-weight: bold;    
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.no-votes-message {
    color: #B8A082;
    text-align: center;
    padding: 2em;
    font-style: italic;
}

/* Circular Player Layout */
.players-circle {
    top: 50px;
    position: relative;
    width: 600px;
    height: 600px;
    margin: 1em auto;
    border-radius: 50%;
    border: 3px dashed #8B4513;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.3), rgba(61, 35, 23, 0.3));
}

.player-circle-item {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(90deg, #ecf3ff, #6da8eb);
    border: 1px solid whitesmoke;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #E6D7C3;    
    font-size: 1.0em;
    color: #000;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 12px rgba(209, 205, 205, 0.7);
    transform: translate(-50%, -50%);
    word-wrap: break-word;
    padding: 0.5em;
    box-sizing: border-box;
}

.player-circle-item div {    
    color: #222;
    text-align: center;
    font-size: 1.3em;
}

.player-circle-item.current-player {
    border-color: #FFD700;
    background: linear-gradient(45deg, #B8860B, #DAA520);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Interact.js drag and drop styling */
.player-circle-item[draggable="true"] {
    cursor: move;
    transition: all 0.2s ease;
}

.player-circle-item[draggable="true"]:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

/* Dragging states */
.being-dragged {
    opacity: 0.8 !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    z-index: 2000 !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.8) !important;
    border: 2px solid #FFD700 !important;
}

/* Global dragging state */
.is-dragging .player-circle-item:not(.being-dragged) {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.is-dragging .players-circle {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

/* Visual guide during drag */
.is-dragging .players-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Dynamic positioning will be handled by JavaScript - no fixed positions needed */

/* Center text for small circles */
.circle-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:black;
    font-size: 0.9em;
    text-align: center;
    pointer-events: none;
}

/* Test Mode Styles */
.test-mode-container {
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 1em;
    margin-bottom: 2em;
}

.test-mode-label {
    background: #FFD700;
    color: #000;
    padding: 0.3em 0.8em;
    border-radius: 15px;
    font-size: 0.7em;
    font-weight: bold;
}

.test-mode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
    margin-bottom: 1em;
}

.test-mode-button {
    font-size: 0.7em;
    padding: 0.3em 0.6em;
    transition: all 0.3s ease;
}

.test-mode-active {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    border-color: #87CEEB;
}

.test-mode-inactive {
    background: linear-gradient(45deg, #696969, #808080);
    border-color: #A9A9A9;
}

.test-mode-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.test-mode-role {
    font-size: 0.9em;
    opacity: 0.75;
}

/* Timer Section */
.timer-section {        
    margin: 0.8em 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font: bold 1.2em 'Typewriter', monospace;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.timer-controls {
    display: flex;
    align-items: center;
}

/* Ability Container Styles */
.ability-container {
    background-color: black;
    background-image: url('../images/campfire.gif');
    border: 1px solid #f1fa78;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    background-size: 50% auto;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2em;
    border-radius: 15px;
    margin: 1em 0;
    min-height: 700px;
    display: flex;
    align-items: center;   
    position: relative;
    overflow: visible;
}

/* Magic effect overlay for clue-receiving roles */
.fireworks-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/magic_effect.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
    transition: opacity 1s ease-in-out;
}

.vortex-active {
    animation: vortex-pulse 2s ease-in-out;
}

/* Grayscale effect when clue is hidden */
.vortex-grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.vortex-grayscale:hover {
    filter: grayscale(80%);
    opacity: 0.8;
}

/* Spinning Clue Animation */
.clue-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Persistent Clue Display */
.clue-display {
    margin: 2em auto;
    padding: 1.5em;
    max-width: 600px;
    animation: fade-in 0.8s ease-in forwards 2s;
    opacity: 0;
}

@keyframes vortex-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
    100% { transform: scale(1); }
}


@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake {
    animation: shake 0.7s ease forwards;
}

@keyframes shake {
    0% { transform: translate(0, 0);}
    25% { transform: translate(-5px, 5px); }
    50% { transform: translate(5px, -5px);}
    75% { transform: translate(-5px, 5px); }
    100% { transform: translate(0, 0);}
}

/* Ability Instructions in Container */
.ability-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.container-instruction {   
    color: white;
    font-size: 1.5em; /* Increased for mobile */    
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    margin: 0;
    position: absolute;
    top: 45%;  
    padding: 20px;
}

/* Ability Controls Section Styles */
.ability-controls-section {
    margin: 20px auto;
    padding: 1.5em;    
    border-radius: 15px;    
    max-width: 600px;    
}

/* Legacy ability section for compatibility */
.ability-section {
    margin-bottom: 2em;
    padding: 1.5em;
    background: rgba(128, 0, 128, 0.2);
    border: 2px solid #8A2BE2;
    border-radius: 10px;
}

@keyframes slide-up {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.ability-instruction {
    color: #DDA0DD;
    font-size: 0.9em;
    margin-bottom: 1em;
    text-align: center;
}

.ability-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-bottom: 1em;
}

.ability-button {
    background: linear-gradient(45deg, #0050E1, #155fe9);
    border-color: #BA55D3;
    min-width: 120px;
}

.ability-button:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(0, 80, 225, 0.3);
    transition: all 0.1s ease;
}

.ability-button:hover {
    background: linear-gradient(45deg, #839cca, #3273ec);
}

/* Ability controls inside vortex */
.ability-controls-vortex {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 10;
}

.ability-controls-vortex .ability-buttons {
    display: flex;
    /* gap: 1em; */
    justify-content: center;
    margin-bottom: 10px;
    margin-left:30px;
}

.ability-controls-vortex .ability-button {
    background: linear-gradient(45deg, #4a0e4e, #81008a);
    border: 2px solid #FFD700;
    color: #FFD700;
    font-family: 'SpecialPower', cursive;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    min-width: 140px;
}

.ability-controls-vortex .ability-button:hover {
    background: linear-gradient(45deg, #6a1e6e, #a100aa);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);    
}

.ability-controls-vortex .ability-button .clear-font {
    font-family: 'SpecialPower', cursive !important;
    color: #FFD700 !important;
}

/* Lean sliding button near bottom center of ability container */
.lean-slider-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.lean-slider-track {
    width: 300px;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 40px;
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: default;
    transition: all 0.2s ease;
}

.lean-slider-button {
    position: absolute;
    top: -20px;
    width: 110px;
    height: 110px;
    background: linear-gradient(45deg, #4a0e4e, #81008a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lean-slider-button:active {
    transform: scale(0.95);
}

.lean-slider-button.lean-slider-center {
    left: 95px; /* Center position - (300px track - 110px button) / 2 */
    background: linear-gradient(135deg, #2a0a2e, #400040);
    border-color: #666;
    opacity: 0.6;
}

.lean-slider-button.lean-slider-left {
    left: 0; /* Left position */
    animation: lean-slider-glow 2s ease-in-out infinite alternate;
}

.lean-slider-button.lean-slider-right {
    left: 190px; /* Right position - 300px track - 110px button */
    animation: lean-slider-glow 2s ease-in-out infinite alternate;
}

@keyframes lean-slider-glow {
    from {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.5);
    }
}

/* signal icon for lean direction - now inside the button */
.lean-signal-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.lean-signal-inactive {
    color: #666;
    opacity: 0.4;
    filter: none;
}

.lean-signal-active {
    color: #FFD700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

.lean-signal-left {
    color: #FFD700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    transform: translate(-50%, -50%) rotate(300deg); /* Face left toward left player at 30 degree angle */
}

.lean-signal-right {
    color: #FFD700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    transform: translate(-50%, -50%) rotate(60deg); /* Face right toward right player at 30 degree angle */
}

/* signal blinking animation - slow to fast */
@keyframes signal-blink {
    0%, 8% { opacity: 0; }
    9%, 16% { opacity: 1; }
    17%, 24% { opacity: 0; }
    25%, 30% { opacity: 1; }
    31%, 36% { opacity: 0; }
    37%, 40% { opacity: 1; }
    41%, 44% { opacity: 0; }
    45%, 47% { opacity: 1; }
    48%, 50% { opacity: 0; }
    51%, 52% { opacity: 1; }
    53%, 54% { opacity: 0; }
    55%, 56% { opacity: 1; }
    57%, 58% { opacity: 0; }
    59%, 60% { opacity: 1; }
    61%, 62% { opacity: 0; }
    63%, 64% { opacity: 1; }
    65%, 66% { opacity: 0; }
    67%, 68% { opacity: 1; }
    69%, 70% { opacity: 0; }
    71%, 72% { opacity: 1; }
    73%, 74% { opacity: 0; }
    75%, 76% { opacity: 1; }
    77%, 78% { opacity: 0; }
    79%, 80% { opacity: 1; }
    81%, 82% { opacity: 0; }
    83%, 84% { opacity: 1; }
    85%, 86% { opacity: 0; }
    87%, 88% { opacity: 1; }
    89%, 90% { opacity: 0; }
    91%, 92% { opacity: 1; }
    93%, 94% { opacity: 0; }
    95%, 96% { opacity: 1; }
    97%, 98% { opacity: 0; }
    99%, 100% { opacity: 1; }
}

.lean-signal-blinking {
    animation: signal-blink 5s ease-in-out;
}

/* Simple sniff activation indicator */
.sniff-activation-simple {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 8px 12px;
    z-index: 25;
    animation: sniff-pulse 1s ease-in-out infinite;
}

.sniff-icon {
    font-size: 20px;
    color: #FFD700;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
}

.sniff-text {
    font-size: 12px;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: Arial, Helvetica, sans-serif;
}

@keyframes sniff-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.8);
        transform: translateX(-50%) scale(1.05);
    }
}

.watcher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5em;
    margin-bottom: 1em;
}

.watcher-button {
    background: linear-gradient(45deg, #8A2BE2, #9370DB);
    border-color: #BA55D3;
    font-size: 0.7em;
    padding: 0.3em 0.5em;
}

.sniff-results {
    margin-top: 1em;
    padding: 0.8em;
    background: rgba(105, 105, 105, 0.3);
    border-radius: 8px;
}

.sniff-results-title {
    font-size: 0.7em;
    color: #DDA0DD;
    margin-bottom: 0.5em;
}

.sniff-result {
    font-size: 0.7em;
    margin-bottom: 0.3em;
}

.ability-result {
    margin-top: 1em;
    font-size: 0.9em;
    color: #90EE90;
    text-align: center;
}

.ability-once-warning {
    margin-top: 0.5em;
    font-size: 0.7em;
    color: #FFD700;
    text-align: center;
}

/* Debug Info */
.debug-info {
    margin-bottom: 1.5em;
    padding: 0.8em;
    background: rgba(105, 105, 105, 0.3);
    border: 1px solid #696969;
    border-radius: 8px;
    font-size: 0.7em;
}

/* Ringleader Announcement */
.ringleader-announcement {
    margin-bottom: 1.5em;
    padding: 1em;
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid #FFD700;
    border-radius: 10px;
}

.ringleader-text {
    text-align: center;
    color: #FFE4B5;
}

.ringleader-name {
    font-weight: bold;
}

.ringleader-note {
    display: block;
    font-size: 0.7em;
    color: #FFD700;
    margin-top: 0.3em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .players-circle {
        width: 500px;
        height: 500px;
    }
    
    .player-circle-item {
        width: 80px;
        height: 80px;
        font-size: 0.7em;
    }
    
    .ability-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .watcher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Watcher target styling */
.watcher-target {
    background: linear-gradient(135deg, #4a0e4e, #81008a) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
    transition: all 0.3s ease;
}

.watcher-target:hover {
    background: linear-gradient(135deg, #6a1e6e, #a100aa) !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    cursor: pointer;
}

/* Ringleader target styling */
.ringleader-target {
    background: linear-gradient(135deg, #4a0e4e, #81008a) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
    transition: all 0.3s ease;
}

.ringleader-target:hover {
    background: linear-gradient(135deg, #6a1e6e, #a100aa) !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    cursor: pointer;
}

.ringleader-target.selected-ringleader {
    background: linear-gradient(135deg, #6a1e6e, #a100aa) !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 1.0) !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* Clickable vortex area styling */
.clickable-vortex {
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.clickable-vortex:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6) !important;
}

.clue-toggle-area {
    width: 90%;    
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clue-content, .clue-hidden {
    text-align: center;
    width: 100%;
}

.toggle-hint {
    font-size: 0.9em !important;
    color: #bdbaba !important;    
    margin-top: 0.5em;    
}

.clue-hidden .container-instruction {
    color: #888 !important;
    font-style: italic;
}

/* Enhance hover effect for the toggle area */
.clickable-vortex .clue-toggle-area:hover .toggle-hint {
    color: #FFD700 !important;
    opacity: 1;
}

/* Role Layout Container - holds both role info and reference */
/* .role-layout-container {
    display: flex;
    gap: 1em;
    margin: 1em auto;
    align-items: stretch;
    min-height: 220px;
} */

/* Role container styling - similar to ability container */
.role-container {   
    background-color: black;
    border-radius: 15px;
    padding: 4px;
    min-height: 100px;
    position: relative;
    border: 1px solid #f1fa78;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* Role info section takes up 3/4 of the width */
.role-info-section {
    flex: 3;
    margin: 0;
}

.role-info-section h2 {
    margin: 12px 0;
}

/* Role Reference Container */
.role-reference-container {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 1em;
    min-height: 120px;
    position: relative;
    border: 1px solid #f1fa78;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.role-reference-container:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.role-reference-content {
    text-align: center;
    color: #FFD700;
}

.role-reference-icon {
    font-size: 2em;
    margin-bottom: 14px;
    opacity: 0.8;
}

.role-reference-text h3 {
    font-size: 0.9em;
    margin: 0;
    font-weight: bold;
    color: #FFD700;
}

.role-reference-text p { 
    margin: 0.2em 0 0 0;
    color: #ccc;
}

.role-toggle-area {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-content, .role-hidden {
    text-align: center;
    width: 100%;
}

.role-content h2 {
    color: #888 !important;    
    font-family: 'SpecialPower', serif !important;
    margin-bottom: 1em;
}

.role-content p {
    font-family: 'SpecialPower', cursive !important;
    color: #E6D7C3;
    line-height: 1.4;
}

.role-hidden h2 {
    color: #888 !important;    
    font-family: 'Typewriter', serif !important;
}

/* Enhance hover effect for the role toggle area */
.clickable-vortex .role-toggle-area:hover .toggle-hint {
    color: #FFD700 !important;
    opacity: 1;
}

.tracker-player > * {    
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.tracker-result-werewolf {
    background-color: #DC3545 !important;
    border: 3px solid #C82333 !important;
    color: white !important;
    animation: trackerGlowRed 2s infinite;
}

.tracker-result-no-werewolf {
    background-color: #F8F9FA !important;
    border: 3px solid #E9ECEF !important;
    color: #343A40 !important;
    animation: trackerGlowWhite 2s infinite;
}

.tracker-result-untracked {
    background-color: #495057 !important;
    border: 3px solid #6C757D !important;
    color: #ADB5BD !important;
    opacity: 0.6;
}

@keyframes trackerGlowRed {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.7);
    }
    50% { 
        box-shadow: 0 0 25px rgba(220, 53, 69, 1);
    }
}

@keyframes trackerGlowWhite {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(248, 249, 250, 0.7);
    }
    50% { 
        box-shadow: 0 0 25px rgba(248, 249, 250, 1);
    }
}

/* Role Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.role-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid black;
    border-radius: 15px;
    max-width: 95%; /* More mobile-friendly width */
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative; /* Allow absolute positioning of zoomed cards */
}

.role-modal-header {
    background: rgba(255, 215, 0, 0.1);
    padding: 1.2em; /* Increased for mobile */
    border-bottom: 1px solid #FFD700;
    display: flex;
    align-items: center;
    gap: 1em;
}

.role-modal-header h2 {
    color: whitesmoke;
    margin: 0;
    font-family: 'Wolfy', cursive;
    flex: 1;
}

.role-modal-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.role-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    user-select: none;
    font-size: 0.9em;
    color: whitesmoke;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.role-toggle-checkbox {
    display: none;
}

.role-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.role-toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.role-toggle-checkbox:checked + .role-toggle-slider {
    background: #FFD700;
}

.role-toggle-checkbox:checked + .role-toggle-slider:before {
    transform: translateX(20px);
}

.role-toggle-text {
    min-width: 80px;
    text-align: center;
}

.role-modal-header h2 {
    color: whitesmoke;
    margin: 0;
    font-family: 'Wolfy', cursive;
}

.modal-close {
    background: linear-gradient(45deg, #4a0e4e, #81008a);
    border: 2px solid #FFD700;
    color: #FFD700;
    font-size: 2em; /* Increased for mobile */
    cursor: pointer;
    padding: 10px; /* Increased touch area */
    border-radius: 8px;
    min-width: 48px; /* Minimum touch target */
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.modal-close:hover {
    background: linear-gradient(45deg, #6a1e6e, #a100aa);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

.modal-close:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: all 0.1s ease;
}

.role-modal-content {
    padding: 20px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.role-description {
    font-size: x-large;
}

/* Roles Grid with mobile view of 1 item per row */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted for card images */
    gap: 16px; /* Slightly larger gap for better spacing */   
}


.role-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px; /* Reduced padding for card images */
    display: block; /* Changed from flex for single card image */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Ensure card image fits nicely */
}

.role-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.role-card.in-game {
    border: 2px solid #FFD700;
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

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

.role-icon img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0px 0px 4px 4px whitesmoke;  
}

.role-icon img.deviant {   
    box-shadow: 0px 0px 4px 4px purple;
}

.role-icon img.werewolves {
    box-shadow: 0px 0px 4px 4px rgb(128, 0, 0);
}

/* Role card image styling */
.role-card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
}

.role-card:hover .role-card-image {
    transform: scale(1.02);
}

/* Zoomed card styling */
.role-card.zoomed {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1001 !important;
    background: rgba(0, 0, 0, 0.9) !important; /* Red background to test visibility */
    padding: 20px !important;
    border-radius: 15px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100vw !important; /* 80% of viewport width */
    height: 100vh !important; /* 80% of viewport height */
    max-width: 100% !important; /* Reasonable maximum size */
    max-height: 100% !important;        
}

.role-card.zoomed .role-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Maintain aspect ratio while filling available space */
}

/* Overlay for zoomed card - full screen clickable */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    cursor: pointer;
}

/* Player role card styling */
.player-role-card-image {
    max-width: 98%; /* Take up most of the parent container */
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    margin: 0 auto; /* Center the card */
    display: block;
}

.role-info {
    flex: 1;
}

.role-info h3 {
    color: #FFD700;
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.role-info p {
    color: #ccc;
    margin: 0 0 10px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.in-game-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFD700;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8em;
    font-weight: bold;
}

.in-game-indicator i {
    font-size: 1em;
}

/* Role Overlay Effects for Drifter and Astrologer */
.drifter-x-overlay {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    pointer-events: none;
    z-index: 15;
    background: rgba(220, 20, 60, 0.15);
    border-radius: 12px;
    transform: rotate(-1deg);
}

.drifter-x-overlay svg {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.9));
    transform: rotate(2deg);
}

.astrologer-check-overlay {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    pointer-events: none;
    z-index: 15;
    background: rgba(34, 139, 34, 0.15);
    border-radius: 12px;
    transform: rotate(1deg);
}

.astrologer-check-overlay svg {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.9));
    transform: rotate(-1deg);
}

/* Role Selection Specific Styles */
.role-selection-button {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.role-selection-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.role-selection-button.role-selection-complete {
    background: linear-gradient(135deg, #28A745, #20A039);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.role-selection-button.role-selection-complete:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.role-selection-modal {
    max-width: 900px;
    width: 95vw;
}

.role-selection-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.role-selection-info p {
    margin: 5px 0;
    color: #FFD700;
    font-weight: bold;
}

.role-selection-status {
    margin-top: 10px;
    font-weight: bold;
}

.role-selection-card {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.role-selection-card.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.role-selection-card.multi-selected {
    border-color: #28A745;
    background: rgba(40, 167, 69, 0.15);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}

.role-selection-card.max-selected {
    border-color: #e60;
    background: rgba(238, 102, 0, 0.15);
    box-shadow: 0 0 15px rgba(238, 102, 0, 0.3);
}

.role-count-badge {
    position: absolute;
    top: 10px;
    right:10px;
    background: #FFD700;
    color: #000;
    border-radius: 50%;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;    
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.role-selection-controls {
    color: #666;
    font-size: 0.8em;
    margin-top: 5px;
}

.multi-role-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.multi-role-info i {
    color: #4A90E2;
}

.role-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.role-modal-actions button {
    flex: 1;
    max-width: 150px;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.role-modal-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.role-modal-actions button:not(:disabled):hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .role-layout-container {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .role-info-section {
        flex: none;
    }
    
    .role-reference-container {
        flex: none;
        min-height: 60px;
        padding: 0.8em;
    }
    
    .role-reference-icon {
        font-size: 1.5em;
        margin-bottom: 0.3em;
    }
    
    .role-reference-text h3 {
        font-size: 0.8em;
    }
    
    .role-reference-text p {
        font-size: 0.8em; /* Slightly larger for mobile readability */
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile font adjustments */
    body {
        padding: 0.5em;
    }
    
    .werewolf-container {
        padding: 1em;
    }
    
    h1 {
        font-size: 2.4em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    .vote-button-text {
        font-size: 1em;
    }
    
    .role-modal {
        margin: 10px;
        max-height: 95vh;
    }
}

/* Werewolf Pack Clue Styling */
.werewolf-pack-clue {       
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 80px;
    left: 50%;

}

.pack-members {   
    align-items: center;   
    margin-top: 8px;
    display: flex;  
    gap: 36px;
    justify-content: center;
}

.pack-member {    
    display: flex;  
    justify-items: center;      
    align-items: center;
    padding: 3px 6px;
    font-size: 0.8em;
    color: #666;
    font-weight: bold;
}

.pack-member > * {
    color: #666;
}
