* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
a{
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
body {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #c5fffe;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}
header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 900px;
    position: relative;
}
.header-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: rgba(13, 27, 42, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}
h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, #ff9a9e, #a1c4fd);
    border-radius: 2px;
}
.subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.85;
    max-width: 700px;
    margin: 15px auto;
    line-height: 1.6;
}
.stadium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background: url('https://images.unsplash.com/photo-1555861496-0666c8981751?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    border-radius: 16px;
    z-index: 1;
}
.game-info {
    background: rgba(26, 40, 58, 0.8);
    border-radius: 12px;
    padding: 15px 0px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.game-settings {
    display: flex;
    align-items: center;
    gap: 15px;
}
.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 30px;
    border-radius: 10px;
    background: rgba(15, 30, 45, 0.7);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}
.player-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.player-info.active::before {
    transform: scaleX(1);
}
.player-info .active {
    background: rgba(30, 60, 90, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}
.player-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.player-icon {
    font-size: 1.4rem;
}
.player-score {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, #f7971e, #ffd200);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(15, 30, 45, 0.7);
    padding: 12px;
    border-radius: 12px;
    width: auto;
    margin-top: 0px;
}
.timer-display {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.timer-controls {
    display: flex;
    gap: 10px;
}
.timer-controls button{
    padding: 8px 12px;
    font-size: 0.9rem;
}

.ai-level-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ai-level-container label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    color: #c5fffe;
}

#ai-level {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(28, 47, 68, 0.7);
    color: #f39c12;
    padding: 8px 30px 8px 15px;
    border-radius: 8px;
    border: 2px solid #415a77;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f39c12' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    transition: all 0.3s ease;
}

#ai-level:hover {
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

#ai-level:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.5);
}
.game-container {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.game-board {
    display: flex;
    flex-direction: column;
    background: rgba(26, 40, 58, 0.85);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}
.cell, .header-cell, .row-header, .board-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
/* Board layout: equal sizes using grid */
.board-header {
    /* One extra column for the cycle cell */
    display: grid;
    grid-template-columns: 110px repeat(3, 1fr);
    min-height: 80px;
    background: rgba(44, 62, 80, 0.97);
}
.cell {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-top-left-radius: 18px;
    min-width: 110px;
    min-height: 80px;
}
.header-cell {
    font-weight: 700;
    font-size: 1.1rem;
    min-height: 80px;
    background: transparent;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.09);
    padding: 12px 0 0 0;
    text-align: center;
    color: #c5fffe;
    gap: 4px;
}
.header-cell:last-child {
    border-right: none;
}
.row-header {
    background: rgba(52, 73, 94, 0.97);
    min-width: 110px;
    max-width: 110px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,0.11);
    padding: 0 0 0 0;
    color: #c5fffe;
    gap: 2px;
}
.row-header:last-child {
    border-bottom: none;
}
.board-row {
    display: grid;
    grid-template-columns: 110px repeat(3, 1fr);
    min-height: 140px;
}
.board-cell {
    min-height: 140px;
    min-width: 0;
    background: transparent;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.board-cell:last-child {
    border-right: none;
}
.cycle {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 3px solid transparent;
    position: relative;
    transition: 
        background 0.5s cubic-bezier(0.5,1,0.89,1),
        border-color 0.5s,
        box-shadow 0.5s;
}
.cycle:hover {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 0 24px 8px rgba(52, 152, 219, 0.3);
}
.cycle:active {
    transform: scale(0.95) rotate(6deg);
    box-shadow: 0 0 18px 4px rgba(230, 126, 34, 0.4);
}
/* Tooltip style */
.cycle-tooltip {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 1em;
    z-index: 999;
    white-space: nowrap;
    opacity: 0.93;
}
.cycle:hover .cycle-tooltip {
    display: block;
}
/* Player 1: Green with animated pulse */
.cycle.player-1 {
    background: linear-gradient(135deg, #27ae60 65%, #2ecc71 100%);
    border-color: #2ecc71;
    color: #fff;
    animation: cyclePulseGreen 1.2s infinite alternate;
    box-shadow: 0 0 16px 2px rgba(39, 174, 96, 0.5);
}

/* Player 2: Red with animated pulse */
.cycle.player-2 {
    background: linear-gradient(135deg, #e74c3c 65%, #c0392b 100%);
    border-color: #e74c3c;
    color: #fff;
    animation: cyclePulseRed 1.2s infinite alternate;
    box-shadow: 0 0 16px 2px rgba(231, 76, 60, 0.5);
}

/* Neutral: Gray */
.cycle.neutral {
    background: linear-gradient(135deg, #6c757d 65%, #495057 100%);
    color: #fff;
    border-color: #95a5a6;
    animation: none;
}

@keyframes cyclePulseGreen {
    from { box-shadow: 0 0 16px 2px rgba(39, 174, 96, 0.6); transform: scale(1);}
    to   { box-shadow: 0 0 32px 8px rgba(39, 174, 96, 0.2); transform: scale(1.13);}
}
@keyframes cyclePulseRed {
    from { box-shadow: 0 0 16px 2px rgba(231, 76, 60, 0.6); transform: scale(1);}
    to   { box-shadow: 0 0 32px 8px rgba(231, 76, 60, 0.2); transform: scale(1.13);}
}

/* Cycle icon animation */
.cycle .fas {
    animation: cycleIconBounce 0.9s infinite;
}
@keyframes cycleIconBounce {
    0%   { transform: translateY(0);}
    40%  { transform: translateY(-6px);}
    60%  { transform: translateY(0);}
    100% { transform: translateY(0);}
}
.criteria-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #f39c12;
}
.header-cell .criteria-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}
.board-row:last-child {
    border-bottom: none;
}
.row-header .club-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3498db;
}
.board-cell:hover {
    background: rgba(52, 152, 219, 0.15);
}
.board-cell.selected {
    background: rgba(52, 152, 219, 0.25);
    box-shadow: inset 0 0 20px rgba(52, 152, 219, 0.6);
}
@keyframes fadeIn {
    to { opacity: 1; }
}
.player-1 .player-image {
    border-color: #2ecc71;
}
.player-2 .player-image {
    border-color: #e74c3c;
}
.player-1 .player-name {
    background: rgba(46, 204, 113, 0.25);
    color: #2ecc71;
    border: 2px solid #2ecc71;
}
.player-2 .player-name {
    background: rgba(231, 76, 60, 0.25);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}
.player-stats {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.9;
}
.player-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
}
.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(26, 40, 58, 0.8);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}
.input-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    flex: 1;
    min-width: 250px;
}
input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid #415a77;
    background: rgba(28, 47, 68, 0.7);
    color: white;
    font-size: 1.05rem;
    min-width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}
input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(28, 47, 68, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 10;
    margin-top: 8px;
    overflow: hidden;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}
.suggestions {
    display: flex;
    flex-direction: column;
    max-height: 100px;
    overflow-y: auto;
}
.suggestions::-webkit-scrollbar {
    width: 10px; 
}
.suggestions::-webkit-scrollbar-track {
    background: rgba(45, 63, 85, 0.8);
    border-radius: 10px;
}
.suggestions::-webkit-scrollbar-thumb {
    background-color: #a0f0ef;
    border-radius: 10px;
    border: 2px solid rgba(45, 63, 85, 0.8);
}
.suggestions::-webkit-scrollbar-thumb:hover {
    background-color: #c5fffe;
}
.suggestions::-webkit-scrollbar-corner {
    background: transparent;
}
.suggestions::-webkit-scrollbar-button {
    display: none;
}
.suggestions-list {
    max-height: 200px;
    overflow-y: auto;
}
.suggestion-item {
    padding: 8px 10px;
    font-size: 0.9em;
}
.suggestion-img {
    width: 30px;
    height: 30px;
}
.suggestion {
    padding: 12px 20px;
    background: transparent;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}
.suggestion:hover ,.suggestion.active{
    background: rgba(129, 136, 141, 0.3);
}
.suggestion:last-child {
    border-bottom: none;
}
.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 51%;
    object-fit: contain;
    border: 1px solid #c5fffe;
}
.suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.suggestion-name {
    font-weight: 600;
}
.suggestion-details {
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    gap: 10px;
}
.suggestion-detail {
    display: flex;
    align-items: center;
    gap: 3px;
}
.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.action-buttons button {
    padding: 12px 20px;
    font-size: 1em;
    margin: 5px;
}
button {
    padding: 14px 30px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #2c3e50;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}
button:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}
button:active {
    transform: translateY(1px);
}
#new-game-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}
#new-game-btn:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}
.message {
    margin-top: 10px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease forwards;
    transform: translateY(20px);
    opacity: 0;
}
@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.success {
    background: rgba(46, 204, 113, 0.25);
    color: #2ecc71;
    border: 2px solid rgba(46, 204, 113, 0.4);
}
.error {
    background: rgba(231, 76, 60, 0.25);
    color: #e74c3c;
    border: 2px solid rgba(231, 76, 60, 0.4);
}
.winning-cell {
    animation: pulse 1.5s infinite, glow 2s infinite alternate;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}
@keyframes glow {
    from { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
    to { box-shadow: 0 0 20px rgba(52, 152, 219, 0.8); }
}
.instructions {
    background: rgba(26, 40, 58, 0.8);
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.instructions h3 {
    margin-bottom: 15px;
    color: #f39c12;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.instructions ul {
    padding-left: 25px;
    margin-top: 15px;
}
.instructions li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-left: 30px;
}
.instructions li::before {
    content: "⚽";
    position: absolute;
    left: 0;
    top: 2px;
    color: #f39c12;
}
.feature-highlight {
    background: rgba(243, 156, 18, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: bold;
    color: #f39c12;
}
.footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 800px;
}
@media (max-width: 900px) {
    .game-board, .board-header, .board-row {
        min-width: 0;
    }
    .board-header, .board-row {
        grid-template-columns: 88px repeat(3, 1fr);
    }
    .cell, .row-header {
        min-width: 88px;
        max-width: 88px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .game-settings {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .subtitle {
        font-size: 1.1rem;
    }
    
    .player-info {
        padding: 12px 20px;
        width: 100%;
        min-width: unset;
    }
    .header-cell .criteria-desc {
        display: none;
    }
    
    button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .instructions li {
        font-size: 1rem;
    }
    
    .controls-row {
        flex-direction: column;
    }
    
    .input-container {
        width: 100%;
    }

    .suggestions {
        max-height: 150px;
    }
}

@media (max-width: 600px) {
    .game-board {
        border-radius: 12px;
    }
    .board-header, .board-row {
        grid-template-columns: 65px repeat(3, 1fr);
    }
    .cell, .row-header {
        min-width: 65px;
        max-width: 65px;
    }
    .header-cell, .row-header {
        font-size: 0.8rem;
        gap: 2px;
        padding: 5px;
    }
    .header-cell i, .row-header i {
        font-size: 1.4em; 
        margin-bottom: 2px;
    }
    .board-cell {
        min-height: 80px;
    }
    .player-card {
        max-width: 55px;
    }
    .player-image {
        width: 40px;
        height: 40px;
        margin-bottom: 3px;
    }
    .player-name {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .player-info {
        padding: 10px 15px;
        min-width: 120px;
    }
    
    .player-info h3 {
        font-size: 1.1rem;
    }
    
    .player-score {
        font-size: 1.7rem;
    }
    
    .controls {
        padding: 20px;
    }
    
    input {
        padding: 12px 15px;
        min-width: 200px;
    }
    
    .suggestion {
        padding: 10px 15px;
    }
    
    .timer-display {
        font-size: 1.3rem;
    }

    .timer-controls {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 420px) { 
    .board-header, .board-row {
        grid-template-columns: 55px repeat(3, 1fr);
    }
    .cell, .row-header {
        min-width: 55px;
        max-width: 55px;
    }
    .header-cell, .row-header {
        font-size: 0.65rem;
        word-wrap: break-word;
    }
    .header-cell i, .row-header i {
        font-size: 1.3em;
    }
    .board-cell {
        min-height: 70px;
    }
    .player-card {
        max-width: 45px;
    }
    .player-image {
        width: 32px;
        height: 32px;
    }
    .player-name {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}
/* Make sure the board and its cells never overflow and always fit the screen */
.game-board, .board-header, .board-row {
    width: 100%;
}
/* Player card (image and name) always centered and scaled */
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 95px;
}
.player-image {
     width: 70px;
    height: 74px;
    border-radius: 51%;
    object-fit: contain;
    margin-bottom: 6px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: border-color 0.22s, box-shadow 0.22s;
    /* background: #222; */
    display: block;
}
.player-1 .player-image {
        border-color: #2ecc71;
        box-shadow: 0 0 10px 0 #2ecc7155;
}
.player-2 .player-image {
        border-color: #e74c3c;
        box-shadow: 0 0 10px 0 #e74c3c55;
}
.player-name {
        font-weight: bold;
        font-size: 1.05rem;
        border-radius: 24px;
        padding: 5px 16px;
        background: #232f44;
        color: #fff;
}
.player-1 .player-name {
        background: rgba(46, 204, 113, 0.21);
        color: #2ecc71;
        border: 2px solid #2ecc71;
}
.player-2 .player-name {
        background: rgba(231, 76, 60, 0.18);
        color: #e74c3c;
        border: 2px solid #e74c3c;
}
/* Always center the player card in the cell */
.board-cell .player-card {
    margin: auto;
}
/* Make sure images never overflow */
.player-card, .player-image {
    max-width: 100%;
    max-height: 100%;
}

 /* Cycle cell style and animation */
.cycle {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 3px solid transparent;
    position: relative;
    transition: 
        background 0.5s cubic-bezier(0.5,1,0.89,1),
        border-color 0.5s,
        box-shadow 0.5s;
}
.cycle.player-1 {
    background: linear-gradient(135deg, #27ae60 65%, #2ecc71 100%);
    border-color: #2ecc71;
    color: #fff;
    animation: cyclePulseGreen 1.2s infinite alternate;
    box-shadow: 0 0 16px 2px rgba(39, 174, 96, 0.5);
}
.cycle.player-2 {
    background: linear-gradient(135deg, #e74c3c 65%, #c0392b 100%);
    border-color: #e74c3c;
    color: #fff;
    animation: cyclePulseRed 1.2s infinite alternate;
    box-shadow: 0 0 16px 2px rgba(231, 76, 60, 0.5);
}
.cycle.neutral {
    background: linear-gradient(135deg, #6c757d 65%, #495057 100%);
    color: #fff;
    border-color: #95a5a6;
    animation: none;
}
@keyframes cyclePulseGreen {
    from { box-shadow: 0 0 16px 2px rgba(39, 174, 96, 0.6); transform: scale(1);}
    to   { box-shadow: 0 0 32px 8px rgba(39, 174, 96, 0.2); transform: scale(1.13);}
}
@keyframes cyclePulseRed {
    from { box-shadow: 0 0 16px 2px rgba(231, 76, 60, 0.6); transform: scale(1);}
    to   { box-shadow: 0 0 32px 8px rgba(231, 76, 60, 0.2); transform: scale(1.13);}
}
.cycle .fas {
    animation: cycleIconBounce 0.9s infinite;
}
@keyframes cycleIconBounce {
    0%   { transform: translateY(0);}
    40%  { transform: translateY(-6px);}
    60%  { transform: translateY(0);}
    100% { transform: translateY(0);}
}
/* --- Social Icons Styles --- */
.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Reduced gap for better fit */
}

.social-icons .icon-content {
  margin: 0 5px; /* Reduced margin */
  position: relative;
}

.social-icons .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(26, 40, 58, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c5fffe;
  transition: all 0.3s ease-in-out;
}

.social-icons .icon-content a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-icons .icon-content a i {
  position: relative;
  z-index: 1;
  font-size: 24px;
  transition: color 0.3s ease-in-out;
}

.social-icons .icon-content a:hover i {
  color: white; 
}

.social-icons .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  transition: all 0.3s ease-in-out;
}

.social-icons .icon-content a:hover .filled {
  height: 100%;
}

/* App-specific colors */
.social-icons .icon-content a[data-social="github"] .filled {
  background-color: #333;
}

.social-icons .icon-content a[data-social="instagram"] .filled {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icons .icon-content a[data-social="facebook"] .filled{
  background-color: #1877F2;
}

.social-icons .icon-content a[data-social="telegram"] .filled {
  background-color: #26A5E4;
}

.social-icons .icon-content a[data-social="email"] .filled {
    background-color: #c71610; 
}