*,/* still in index.css */
* {
    cursor: url(assets/cursor.cur) 16 16,url(assets/cursor.png) 16 16,auto!important
}

::before,::after {
    box-sizing: border-box
}

:root {
    --bg: #050505;
    --fg: #e0e0e0;
    --primary: #6a0000;
    --accent: #1a1a1a;
    --button-dark: #121212;
    --hover-glow: #6a0000cc
}

html,body,button,a,.btn {
    cursor: url(assets/cursor.cur) 16 16,url(assets/cursor.png) 16 16,auto!important
}

html,body {
    cursor: url(assets/cursor.cur) 16 16,url(assets/cursor.png) 16 16,auto!important

}
html, body {
  height: 100%;
  margin: 0;
}
body {
    margin: 0;
    font-family: 'IM Fell English SC',serif;
    background: var(--bg);
    color: var(--fg);
     overflow-x: hidden; 
    overflow-y: auto; 
    border: 1px solid #000;
    -webkit-user-select: none;
    -moz-user-select: none;
      display: flex;
  flex-direction: column;
  min-height: 100vh;
    -ms-user-select: none;
    user-select: none;
    scrollbar-color: #555 #111;
    scrollbar-width: thin
}
main {
  flex: 1;
}

a {
    text-decoration: none
}

canvas#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none
}

#loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid var(--fg);
    border-top: 5px solid var(--primary);
    border-right: 5px solid #333;
    border-radius: 50%;
    animation: spin .5s linear infinite
}

@keyframes spin {
    100% {
        transform: rotate(360deg)
    }
}
@media (max-width: 600px) {
  .title-header h1 {
    font-size: 3rem;  
  }
  .tagline {
    font-size: 1rem;  
    padding: 0 1rem;
  }
  .main-container {
    padding: 2rem 1rem;
  }
  .button-panel {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.main-container {
    padding: 4rem 2rem;
    position: relative;
    z-index: 5;
    max-width: 1000px;
    margin: auto;
    text-align: center
}

.ambient-overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center,rgba(50,0,0,0.15),transparent 70%);
    z-index: 1
}

.title-header h1 {
    font-family: 'Cinzel',serif;
    font-size: 5rem;
    color: var(--primary);
    text-shadow: 0 0 3px #2a0000,0 0 7px var(--primary);
    animation: spinIn 0.3x½s ease-out forwards
}

@keyframes spinIn {
    from {
        transform: rotate(-360deg);
        opacity: 0
    }

    to {
        transform: rotate(0deg);
        opacity: 1
    }
}

.tagline {
    font-size: 1.3rem;
    margin-top: .5rem;
    color: #ccc
}

.team-list,.tag-directory {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem
}

.team-list li,.tag-directory li {
    margin-bottom: .5rem
}

.tag {
    display: inline-block;
    background: var(--primary);
    color: var(--fg);
    padding: .1rem .4rem;
    margin-left: .5rem;
    border-radius: 3px;
    font-size: .85rem
}

.note {
    font-style: italic;
    color: #888;
    margin-left: .5rem
}

.last-updated {
    font-size: .8rem;
    color: #666;
    text-align: right;
    margin-top: 2rem
}

.button-panel {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem
}

.btn.dark {
    background: var(--button-dark);
    border: 1px solid #333;
    color: var(--fg);
    font-family: 'Roboto',sans-serif;
    padding: .75rem 1.5rem;
    font-size: 1rem;
    transition: all .3s ease;
    border-radius: 5px
}

.btn.dark:hover {
    background: var(--primary);
    border-color: var(--hover-glow);
    box-shadow: 0 0 10px var(--hover-glow)
}

.popup {
    background: var(--accent);
    color: var(--fg);
    border: 1px solid #333;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 10px;
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    position: relative
}

.popup table {
    width: 100%;
    border-collapse: collapse
}

.popup th,.popup td {
    border: 1px solid #444;
    padding: .5rem;
    text-align: left
}

.popup th {
    background: #222
}

.popup .close-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: transparent;
    border: none;
    color: var(--fg);
    font-size: 1.2rem
}

.hidden {
    display: none
}

.decorative-frame.top::before,.decorative-frame.bottom::before {
    content: "";
    display: block;
    width: 100%;
    height: 30px;
    opacity: .3
}

.decorative-frame.bottom::before {
    transform: rotate(180deg)
}

a {
    color: var(--primary);
    text-decoration: none
}

a:hover {
    text-decoration: none
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: #111
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px
}

footer {
  width: 100%;
  background: var(--accent);
  color: #aaa;
  font-size: 0.85rem;
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid #333;
  position: static;
}


html,body,button,a,.btn,* {
    cursor: url(assets/cursor.cur) 16 16,url(assets/cursor.png) 16 16,auto!important
}
#audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

#music-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 16px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid #6a0000;
    border-radius: 6px;
    cursor: pointer;
    transition: background .3s ease
}

#music-toggle:hover {
    background-color: rgba(255,0,0,0.4)
}

#volume-slider {
    appearance: none;
    width: 150px;
    height: 6px;
    background: #6a0000;
    border-radius: 5px;
    outline: none;
    transition: background .2s ease
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6a0000;
    cursor: pointer
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6a0000;
    cursor: pointer
}

.tooltip-container {
    position: relative;
    cursor: help;
    display: inline-block;
    color: inherit
}

.tooltip-question {
    background: #292727;
    color: #fff;
    border-radius: 50%;
    padding: 0 6px;
    font-weight: 700;
    font-size: .8em;
    margin-left: 4px;
    user-select: none;
    vertical-align: middle
}

.tooltip-text {
    visibility: hidden;
    width: 240px;
    background-color: #0c0c0c;
    color: #eee;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity .3s;
    font-size: .9em;
    line-height: 1.3em
}

.tooltip-container:hover .tooltip-text,.tooltip-container:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #222 transparent transparent
}
