/* =============== GLOBAL =============== */
body{
  margin: 0;
  padding: 0;
  background: black;
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden;
}

h1, h2{
  text-align: center;
  margin-top: 40px;
}

/* Sections */
.section{
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  padding: 30px;
  text-align: center;

  position: relative;
  z-index: 10;
}

/* Menu */
#menu{
  display: block;
  opacity: 1;
  position: relative;
  z-index: 10;
}

/* =============== DECORATIONS =============== */
.center-watermark{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.20;
  width: 60vw;
  max-width: 800px;
  z-index: 1000;
  pointer-events: none;
  user-select: none;
}

.Wolf-decoration{
  position: fixed;
  top: -5px;
  right: 30px;
  width: 300px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 600px){
  .Wolf-decoration{
    top: -15px;
    right: 10px;
    width: 300px;
  }
}

/* =============== BUTTONS =============== */
.button{
  display: inline-block;
  background: white;
  color: royalblue;
  padding: 15px 25px;
  margin: 15px;
  border-radius: 10px;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 10px royalblue;
  transition: 0.3s;
  z-index: 11;
  position: relative;
}

.button:hover{
  box-shadow: 0 0 20px royalblue;
  transform: scale(1.05);
}

@media (max-width: 600px){
  .button{
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* =============== MENU GRID (CENTERED) =============== */
.menu-buttons{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(720px, 92%);
  margin: 40px auto 0 auto;
  justify-items: center;
  align-items: center;
}

@media (max-width: 650px){
  .menu-buttons{
    grid-template-columns: repeat(2, 1fr);
    width: min(520px, 92%);
  }
}

@media (max-width: 420px){
  .menu-buttons{
    grid-template-columns: 1fr;
    width: 92%;
  }

  .menu-buttons .button{
    width: 100%;
    max-width: 320px;
  }
}

/* =============== KNOWN ISSUES (BUTTON + POPDOWN) =============== */
#menu{ position: relative; }

.issues-btn{
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: gold;
  border: 1px solid rgba(255,215,0,0.35);
  cursor: pointer;
  user-select: none;
  z-index: 12;
}

.issues-btn:hover{
  background: rgba(255,255,255,0.22);
}

/* Pop-down container */
#issues-panel{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;

  transform: translateY(-120%);
  opacity: 0;

  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 4000;
  pointer-events: none;
}

#issues-panel.open{
  transform: translateY(0);
  opacity: 1;
}

#issues-panel .issues-inner{
  pointer-events: auto;
  margin-top: 14px;
  width: min(720px, 92vw);
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  border: 1px solid rgba(0,0,0,0.10);
}

.issues-list{
  margin: 0;
  padding-left: 18px;
}

.issues-list li{
  margin: 6px 0;
  line-height: 1.35;
}

/* =============== FIREFLIES (OVERLAY) =============== */
#firefly-layer{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.firefly{
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, gold 0%, rgba(255,215,0,0) 70%);
  border-radius: 50%;
  opacity: 0.8;
  animation: float 12s linear infinite;
  z-index: 1;
}

@keyframes float{
  from { transform: translate(0,0); }
  to   { transform: translate(80px, -120px); }
}

/* =============== ABOUT LINKS =============== */
#about a{
  color: gold;
  font-weight: bold;
  text-decoration: none;
}

#about a:hover{
  color: #ffd700;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

#about a:visited{
  color: gold;
}

/* =============== PROJECTS =============== */
#projects ul{
  list-style: none;
  padding: 0;
  margin: 18px auto 0 auto;
  max-width: 720px;
}

#projects li{
  text-align: left;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);

  box-shadow:
    0 0 10px rgba(255, 215, 0, 0.15),
    0 0 18px rgba(65, 105, 225, 0.12);

  border-left: 5px solid rgba(255, 215, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#projects li::before{
  content: "✦";
  color: white;
  margin-right: 10px;
}

#projects li:hover{
  transform: translateY(-2px);
}

/* statuses */
#projects li.not-started{
  border-left-color: rgba(255, 60, 60, 0.85);
  box-shadow: 0 0 10px rgba(255,60,60,0.18), 0 0 18px rgba(65,105,225,0.10);
}

#projects li.started{
  border-left-color: rgba(255, 215, 0, 0.85);
  box-shadow: 0 0 10px rgba(255,215,0,0.18), 0 0 18px rgba(65,105,225,0.10);
}

#projects li.complete{
  border-left-color: rgba(60, 255, 140, 0.80);
  box-shadow: 0 0 10px rgba(60,255,140,0.18), 0 0 18px rgba(65,105,225,0.10);
}

/* hover glows */
#projects li.not-started:hover{
  border-color: rgba(255,60,60,0.55);
  box-shadow: 0 0 16px rgba(255,60,60,0.30), 0 0 26px rgba(65,105,225,0.22);
}

#projects li.started:hover{
  border-color: rgba(255,215,0,0.55);
  box-shadow: 0 0 16px rgba(255,215,0,0.30), 0 0 26px rgba(65,105,225,0.22);
}

#projects li.complete:hover{
  border-color: rgba(60,255,140,0.55);
  box-shadow: 0 0 16px rgba(60,255,140,0.28), 0 0 26px rgba(65,105,225,0.22);
}

@media (max-width: 600px){
  #projects ul{ max-width: 92%; }
  #projects li{ font-size: 15px; padding: 12px 14px; }
}

/* =============== BLOG / UPDATES (KEEP ONLY ONE SYSTEM) =============== */
.blog-subtitle{
  margin: 26px auto 10px auto;
  max-width: 760px;
  text-align: left;
  letter-spacing: 1px;
  font-size: 20px;
  padding-left: 10px;
  border-left: 4px solid rgba(255,255,255,0.18);
}

.blog-subtitle.updates-title{
  color: gold;
  border-left-color: rgba(255,215,0,0.65);
  text-shadow: 0 0 8px rgba(255,215,0,0.25);
}

.blog-subtitle.blogs-title{
  color: royalblue;
  border-left-color: rgba(65,105,225,0.85);
  text-shadow: 0 0 8px rgba(65,105,225,0.35);
}

#blog ul{
  list-style: none;
  padding: 0;
  margin: 12px auto;
  max-width: 760px;
}

#blog li{
  text-align: left;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  line-height: 1.55;
  word-wrap: break-word;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#blog li:hover{ transform: translateY(-2px); }

/* pills + icons */
.post-date{
  display: inline-block;
  margin-right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

.updates-list .post-version{
  display: inline-block;
  margin-right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.4px;
  font-weight: bold;
  color: rgba(255,255,255,0.92);
  background: rgba(255,215,0,0.14);
  border: 1px solid rgba(255,215,0,0.28);
  box-shadow: 0 0 10px rgba(255,215,0,0.10);
}

.post-icon{
  display: inline-block;
  margin-right: 10px;
  opacity: 0.95;
  transform: translateY(1px);
}

/* update vs blog cards */
.updates-list li{
  border-left: 5px solid rgba(255,215,0,0.85);
  box-shadow: 0 0 10px rgba(255,215,0,0.18), 0 0 18px rgba(65,105,225,0.10);
}

.updates-list li:hover{
  border-color: rgba(255,215,0,0.75);
  box-shadow:
    0 0 22px rgba(255,215,0,0.45),
    0 0 40px rgba(65,105,225,0.18);
}

.blogs-list li{
  border-left: 5px solid rgba(65,105,225,0.85);
  box-shadow: 0 0 10px rgba(65,105,225,0.22), 0 0 18px rgba(255,215,0,0.08);
}

.blogs-list li:hover{
  border-color: rgba(65,105,225,0.75);
  box-shadow:
    0 0 22px rgba(65,105,225,0.50),
    0 0 40px rgba(255,215,0,0.12);
}

.update-icon{
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.35));
}

.blog-icon{
  filter: drop-shadow(0 0 6px rgba(65,105,225,0.35));
}

@media (max-width: 600px){
  #blog ul{ max-width: 92%; }
  #blog li{ padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .blog-subtitle{ max-width: 92%; font-size: 18px; }
  .post-date{ font-size: 12px; padding: 3px 9px; }
}

/* =============== GALLERY =============== */
.gallery{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.row-break{
  flex-basis: 100%;
  height: 0;
}

.art-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.gallery-img{
  width: 220px;
  max-width: 90%;
  margin: 12px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 12px rgba(65,105,225,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.gallery-img:hover{
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(65,105,225,0.75);
}

.art-card img{ filter: contrast(1.03); }
.art-card:hover img{ filter: contrast(1.08); }

.art-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  color: rgba(255,255,255,0.88);
  font-weight: bold;
  letter-spacing: 1px;

  background: rgba(0,0,0,0.14);
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.art-card:hover .art-overlay{ opacity: 0; }

/* =============== VERSION BADGE =============== */
.version-badge{
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.85;
  color: #9bb8ff;
}

/* =============== MUSIC GRID (RESPONSIVE) =============== */
.music-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 18px auto 0 auto;
  width: min(980px, 92%);
}

.song-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 0 12px rgba(65,105,225,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.song-title{
  margin: 0 0 10px 0;
  font-weight: bold;
  color: gold;
  text-align: left;
}

.song-card audio{ width: 100%; }

.song-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(65,105,225,0.35);
}

/* Center music footer text + Back button */
#music h4{
  text-align: center;
  margin-top: 18px;
}

#music .button{
  display: block;
  width: fit-content;
  margin: 16px auto 0;
}

/* =============== CHAT BOX =============== */
.chat-box{
  margin: 20px auto;
  max-width: 720px;
  width: 92%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 0 14px rgba(65,105,225,0.22);
}

.chat-box iframe{
  border-radius: 10px;
}
/* =================================================
   Chat Rules Link (under chat iframe)
   ================================================= */

.chat-rules-link {
  width: min(720px, 92%);
  margin: 12px auto 0 auto;
  text-align: left;
}

.chat-rules-link a {
  color: gold;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.chat-rules-link a:hover {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* =================================================
   Full-Screen Modal Overlay
   ================================================= */

.rules-modal {
  position: fixed;
  inset: 0;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.9);
  z-index: 6000;
}

/* Modal active */
.rules-modal.open {
  display: flex;
}

/* =================================================
   Modal Box
   ================================================= */

.rules-modal-box {
  width: min(900px, 92%);
  height: min(85vh, 760px);

  background: #ffffff;
  color: #111;

  border-radius: 18px;
  padding: 24px;

  display: flex;
  flex-direction: column;

  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.15);

  animation: rulesPop 0.25s ease-out;
}

/* =================================================
   Modal Entrance Animation
   ================================================= */

@keyframes rulesPop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =================================================
   Title
   ================================================= */

.rules-modal-box h2 {
  margin: 0 0 16px 0;
  text-align: center;
  color: #111;
}

/* =================================================
   Scrollable Rules Area
   ================================================= */

.rules-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.rules-scroll ul {
  padding-left: 20px;
}

.rules-scroll li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* =================================================
   Custom Scrollbar (WebKit)
   ================================================= */

.rules-scroll::-webkit-scrollbar {
  width: 8px;
}

.rules-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.rules-scroll::-webkit-scrollbar-thumb {
  background: rgba(65, 105, 225, 0.55);
  border-radius: 8px;
}

/* =================================================
   Action Area (Bottom Section)
   ================================================= */

.rules-actions {
  margin-top: 16px;
  padding-top: 16px;

  border-top: 1px solid rgba(0, 0, 0, 0.14);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =================================================
   Agree Checkbox
   ================================================= */

.rules-agree {
  font-weight: bold;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.rules-agree input {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/* =================================================
   Agree Button
   ================================================= */

#rulesAgreeBtn {
  align-self: center;

  padding: 12px 32px;
  font-size: 16px;

  border-radius: 12px;
  border: none;

  background: royalblue;
  color: white;

  cursor: not-allowed;
  opacity: 0.6;

  transition: opacity 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

/* Enabled state */
#rulesAgreeBtn.enabled {
  cursor: pointer;
  opacity: 1;
}

#rulesAgreeBtn.enabled:hover {
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(65, 105, 225, 0.6);
}

/* =================================================
   Lock Page Scroll While Modal Is Open
   ================================================= */

body.modal-open {
  overflow: hidden;
}

/* =================================================
   Mobile Adjustments
   ================================================= */

@media (max-width: 600px) {

  .rules-modal-box {
    padding: 18px;
  }

  .rules-modal-box h2 {
    font-size: 20px;
  }

}