:root {
    --link: #0a66c2;          /* default link */
    --link-visited: #2c1;  /* visited */
    --link-hover: #084e96;    /* hover */
    --link-active: #062e57;   /* active (mousedown) */
    --focus-ring: 2px solid #ffbf47;
  }

/* Base link styles */
a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
  }
  
  /* Visited pages */
  a:visited {
    color: var(--link-visited);
  }
  
  /* Hover and focus */
  a:hover {
    color: var(--link-hover);
    text-decoration-thickness: 2px; /* subtle emphasis */
  }
  
  a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
  }
  
  /* Active (mouse down) */
  a:active {
    color: var(--link-active);
  }
  
  /* Disabled / inert links (e.g., aria-disabled="true") */
  a[aria-disabled="true"] {
    color: gray;
    pointer-events: none;
    text-decoration: none;
  }
  
  /* Optional: class for “muted”/secondary links */
  a.link-muted {
    color: inherit;
    text-decoration-color: currentColor;
    opacity: 0.8;
  }
  a.link-muted:hover { opacity: 1; }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a237e;
    color: white;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #283593;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.players {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.player {
    background-color: #3949ab;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 10px;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.current-player {
    border: 3px solid #ffd600;
    box-shadow: 0 0 15px #ffd600;
}

.player-score {
    font-size: 24px;
    font-weight: bold;
    color: #ffd600;
}

.puzzle {
    background-color: #5c6bc0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.category {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffd600;
}

.phrase {
    font-size: 32px;
    letter-spacing: 5px;
    font-weight: bold;
    margin: 20px 0;
    min-height: 50px;
    word-break: break-all;
}

.used-letters {
    margin-top: 15px;
    font-size: 16px;
}

.controls {
    background-color: #3949ab;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message {
    background-color: #ffd600;
    color: #1a237e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.spin-result {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
    color: #ffd600;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

button {
    background-color: #ffd600;
    color: #1a237e;
    border: none;
    padding: 12px 20px;
    margin-right: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ffec3d;
}

button:disabled {
    background-color: #757575;
    cursor: not-allowed;
}

.guess-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

input[type="text"] {
    padding: 12px;
    border-radius: 5px;
    border: none;
    width: 60px;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
}

.vowel-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.vowel-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wheel styling */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
  }
  
  .wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
      #009688 0deg 30deg, 
      #ff9800 30deg 60deg,
      #ffeb3b 60deg 90deg,
      #4caf50 90deg 120deg,
      #2196f3 120deg 150deg,
      #9c27b0 150deg 180deg,
      #e91e63 180deg 210deg,
      #ff5722 210deg 240deg,
      #795548 240deg 270deg,
      #607d8b 270deg 300deg,
      #f44336 300deg 330deg,
      #3f51b5 330deg 360deg
    );
    position: relative;
    overflow: hidden;
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
  }
  
  .wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center left;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  }
  
  .wheel-pointer {
    position: absolute;
    top: 50%;              /* vertically centered */
    left: 100%;            /* push to right edge */
    transform: translateY(-50%) rotate(90deg);  /* center vertically + rotate to point left */
    width: 40px;
    height: 20px;
    background-color: #ffd600;
    clip-path: polygon(0% 0%, 100% 0%, 50% 96%); /* Arrow pointing right */
    z-index: 10;
}
  
@media (max-width: 600px) {
    .players {
        flex-direction: column;
    }
    
    .player {
        width: 100%;
    }
    
    .phrase {
        font-size: 24px;
        letter-spacing: 3px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        vertical-align: text-top;
    }
    
    .wheel-container {
        width: 250px;
        height: 250px;
    }
}
