/* === Layout === */
.mystery-filters {
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.filter-buttons {
    margin-bottom: 10px;
}

.filter-button {
    padding: 8px 16px;
    margin: 0 5px 10px;
    border: 2px solid #0ff;
    background-color: #111;
    color: #0ff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-button:hover,
.filter-button.active {
    background-color: #0ff;
    color: #111;
    text-shadow: 0 0 3px #111;
}

.filter-dropdowns {
    margin-bottom: 20px;
}

.filter-dropdowns label {
    margin: 0 10px 0 20px;
    color: #0ff;
}

#gender-filter,
#age-filter {
    padding: 6px 12px;
    border: 2px solid #0ff;
    background: #111;
    color: #0ff;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* === Character Block === */
.mystery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.character-block {
    background: #222;
    border: 2px solid #0ff;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    color: #fff;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.character-block:hover {
    transform: scale(1.02);
}

.character-image img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.character-name {
    font-size: 20px;
    margin: 0 0 10px;
    color: #0ff;
    text-align: center;
}

.character-description {
    font-size: 14px;
    margin-bottom: 12px;
    color: #eee;
    text-align: center;
}

.character-assigned {
    color: #ffc107;
    font-style: italic;
    margin-bottom: 10px;
    text-align: center;
}

/* === Forms === */
.name-input,
.verify-name-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: none;
    background: #333;
    color: #0ff;
    font-family: 'Courier New', monospace;
}

.assign-button,
.unassign-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #0ff;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: background 0.3s ease;
}

.unassign-button {
    background: #f44336;
    color: #fff;
}

.assign-button:hover {
    background: #1fffd2;
}

.unassign-button:hover {
    background: #d32f2f;
}

/* === Toast Notification === */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
}

.toast {
    background: #111;
    color: #0ff;
    border: 2px solid #0ff;
    padding: 12px 18px;
    margin-top: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 6px #0ff;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.toast.success {
    border-color: #4caf50;
    color: #4caf50;
}

.toast.error {
    border-color: #f44336;
    color: #f44336;
}

.toast.warning {
    border-color: #ffc107;
    color: #ffc107;
}

.toast.info {
    border-color: #03a9f4;
    color: #03a9f4;
}

/* === Modal Popup === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #111;
    border: 3px solid #0ff;
    color: #0ff;
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 20px #0ff;
    font-family: 'Courier New', monospace;
}

.modal-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #0ff;
}

.modal-text em {
    color: #ffc107;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-actions button {
    padding: 10px 16px;
    background: #0ff;
    color: #111;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: background 0.2s ease;
}

.modal-actions button:hover {
    background: #ffc107;
    color: #111;
}

/* === Mouse Spotlight === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(0, 255, 255, 0.12),
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    transition: background-position 0.1s ease;
}

/* === Share Title Button === */
.share-title {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 15px 0 10px;
    padding: 10px 12px;
    background: #111;
    color: #0ff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 2px solid #0ff;
    border-radius: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: center;
    cursor: pointer;
}

/* === Hidden Mingling Paragraphs === */
.character-description .mingling-info {
    display: none;
    margin-top: 10px;
}

.mystery-filters {
  font-family: 'Courier New', monospace;
  margin-bottom: 20px;
  text-align: center;
}
.filter-buttons{margin-bottom:10px;}
.filter-button{padding:8px 16px;margin:0 5px;cursor:pointer;border:2px solid #0ff;background:#111;color:#0ff;border-radius:5px;transition:0.2s;}
.filter-button.active,
.filter-button:hover{background:#0ff;color:#111;text-shadow:0 0 3px #111;}

.filter-dropdowns{display:flex;justify-content:center;gap:15px;margin-bottom:20px;}
.filter-dropdowns label{color:#0ff;}
#gender-filter,#age-filter{background:#111;color:#0ff;border:2px solid #0ff;border-radius:4px;padding:6px 12px;font-family:'Courier New',monospace;}

/* Character Blocks */
.mystery-list{display:flex;flex-wrap:wrap;justify-center: center;gap:20px;}
.character-block{width:300px;background:#222;color:#fff;font-family:'Courier New', monospace;border:2px solid #0ff;border-radius:10px;padding:20px;box-shadow:0 0 10px rgba(0,255,255,0.3);transition:transform .2s;}
.character-block:hover{transform:scale(1.02);}
.character-name{text-align:center;color:#0ff;margin-bottom:10px;}
.character-description{text-align:center;color:#eee;margin-bottom:12px;}

/* mingling toggle */
.share-title{display:block;width:100%;margin:15px 0 10px;padding:10px;border:2px solid #0ff;border-radius:6px;background:#111;color:#0ff;text-transform:uppercase;font-family:'Courier New',monospace;text-align:center;cursor:pointer;word-break:break-word;}
.mingling-info{display:none;margin-top:10px;}

/* Mouse Spotlight */
body::before{
  content:'';
  position:fixed;
  inset:0;
  background:radial-gradient(circle at var(--x,50%) var(--y,50%),rgba(0,255,255,0.12),transparent 70%);
  pointer-events:none;
  z-index:0;
  transition:background-position .1s ease;
}