:root{
--bg:#0b0f1a;
--card:#12182a;
--accent:#6b7cff;
--accent2:#ff6b6b;
--text:#e6e9f2;
--muted:#9aa3b2;
}

body{
background:linear-gradient(180deg,#0b0f1a,#0e0e0e);
color:var(--text);
font-family:'Segoe UI',sans-serif; 
overflow-x: hidden;

}

section h1,
section h2,
section h3{
text-align:center;
}

.banner{
width:100%;
max-height:160px;
object-fit:cover;
}

header{
position:relative;
}

header::after{
content:"";
position:absolute;
bottom:0;
left:0;
width:100%;
height:80px;
background:linear-gradient(to bottom,transparent,#0b0f1a);
}

/* TABS NAV UPGRADE */
.tabs{
display:flex;
justify-content:center;
gap:10px;
padding:12px;
background:rgba(0,0,0,0.4);
backdrop-filter:blur(10px);
position:sticky;
top:0;
z-index:1000;
}

.tab{
padding:10px 16px;
border-radius:20px;
border:1px solid transparent;
background:transparent;
color:var(--muted);
transition:0.2s;
}

.tab:hover{
color:white;
border-color:var(--accent);
}

.tab.active{
background:var(--accent);
color:white;
box-shadow:0 0 10px rgba(107,124,255,0.5);
}

.tabs::-webkit-scrollbar{
display:none;
}

/* TAB CONTENT */

.tabContent{
display:none;
opacity:0;
transform:translateY(10px);
transition:opacity 0.3s ease, transform 0.3s ease;
}

.tabContent.active{
display:block;
opacity:1;
transform:translateY(0);
}


/* NEW March 19 */
.card{
background:var(--card);
border-radius:14px;
padding:10px;
border:1px solid rgba(255,255,255,0.05);
transition:0.25s;
position:relative;
overflow:hidden;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 10px 25px rgba(0,0,0,0.6);
border-color:var(--accent);
}

/* subtle glow line */
.card::after{
content:"";
position:absolute;
bottom:0;
left:0;
width:100%;
height:2px;
background:linear-gradient(90deg,transparent,var(--accent),transparent);
opacity:0;
transition:0.3s;
}

.card:hover::after{
opacity:1;
}

/* GRID */

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
gap:15px;
padding:15px;
}

section{
margin-top:40px;
}

/* AVATAR / BOSS / TOWER */

.avatar,
.boss,
.tower{
text-align:center;
cursor:pointer;
}

.avatar img,
.boss img,
.tower img{
width:100%;
aspect-ratio:1/1;
object-fit:contain;
border-radius:10px;
border:2px solid #444;
background:#111;
transition:0.2s ease;
}

.avatar img:hover,
.boss img:hover,
.tower img:hover{
transform:scale(1.05);
border-color:#6b7cff;
}

.avatar p,
.boss p,
.tower p{
margin-top:6px;
font-size:13px;
}

/* GUIDE MENU */

#guideMenu{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(80px,1fr));
gap:10px;
padding:15px;
}

.guideIcon img{
width:100%;
aspect-ratio:1/1;
border-radius:8px;
border:2px solid #555;
cursor:pointer;
}

/* GUIDE VIEWER */

#viewer{
padding:15px;
}

#viewer img{
width:100%;
max-width:900px;
display:block;
margin:auto;
border-radius:10px;
border:2px solid #333;
}

/* WEAPONS */

.weaponGroup{
margin:20px;
}

.weaponCombo{
background:#141414;
border:1px solid #333;
border-radius:8px;
padding:10px;
margin-bottom:10px;
}

.weaponItems{
display:flex;
gap:6px;
margin-bottom:6px;
}

.weaponItems img{
width:40px;
height:40px;
border-radius:6px;
}

/* Footer Styling */
.site-footer {
  text-align: center;
  padding: 15px 0;
  background-color: #1a1a1a;
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  position: fixed;
  width: 100%;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  border-top: 1px solid #333;
}

.site-footer span#visitor-count {
  font-weight: bold;
  color: #4cafef;
}

/* TRAINING TOOL */

.training-box{

max-width:400px;

background:#111;
border:1px solid #333;

padding:20px;
border-radius:10px;

margin:20px auto;   /* centers horizontally */

}


.training-box input,
.training-box select{

width:100%;

padding:8px;
margin-bottom:12px;

background:#0e0e0e;
border:1px solid #333;

color:white;

}


.training-box button{

width:100%;

padding:10px;

background:#333;

border:none;

color:white;
cursor:pointer;

}


#trainingResult{

margin-top:15px;

line-height:1.6;
font-size:14px;

}

.mini-footer{
text-align:center;
font-size:11px;
color:#777;
padding:3px 0;
margin-top:20px;
opacity:0.8;
}

/* TIPS SECTION */

.tips-box{
background:#1c1c2e;
border-left:4px solid #5d6bff;
border-radius:10px;
padding:20px;
margin-top:15px;
}

.tips-box ul{

padding-left:18px;

}

.tips-box li{

margin-bottom:8px;

}



/* CODES */

.codes{

margin-top:15px;

display:grid;

grid-template-columns:1fr;

gap:10px;

}

.codeBox{

display:flex;

justify-content:space-between;
align-items:center;

background:#111;

border:1px solid #333;

padding:10px 12px;

border-radius:8px;

}

.codeBox span{

font-weight:bold;

}

.codeBox button{

background:#333;
border:none;

color:white;

padding:6px 10px;

cursor:pointer;

border-radius:6px;

}

.meta{
max-width:1100px;
margin:60px auto;
text-align:center;
}

.meta h2{
margin-bottom:30px;
font-size:30px;
}

.meta-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
}

.meta-card{
background:linear-gradient(145deg,#12182a,#0e1322);
border-radius:16px;
padding:25px;
transition:0.3s;
position:relative;
overflow:hidden;
}

.meta-card:hover{
transform:translateY(-8px);
box-shadow:0 15px 40px rgba(0,0,0,0.6);
}

.meta-card h3{
margin-top:0;
}

.combo{
border-left:5px solid #3a8cff;
}

.skill{
border-left:5px solid #ff6b6b;
}

.counter{
border-left:5px solid #ffd166;
}

.combo{ border-left:4px solid #3a8cff; }
.skill{ border-left:4px solid #ff6b6b; }
.counter{ border-left:4px solid #ffd166; }

/* EVENT POPUP */

.popup{
display:none;
position:fixed;
z-index:9999;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
}

.popup-content{
background:#1a1a2e;
margin:10% auto;
padding:25px;
border-radius:12px;
width:90%;
max-width:500px;
color:white;
text-align:center;
border:2px solid #444;
}

.close-popup{
position:absolute;
right:20px;
top:10px;
font-size:24px;
cursor:pointer;
}

.discord-button-tight {
    display: inline-block;
    background-color: #5865F2;   /* Discord blurple */
    color: white;
    font-weight: 600;
    font-family: "Segoe UI", sans-serif;
    text-decoration: none;
    border-radius: 4px;          /* small rounding */
    padding: 2px 6px;            /* minimal padding around text */
    transition: background 0.3s, transform 0.2s;
}

.discord-button-tight:hover {
    background-color: #4752C4;
    transform: translateY(-1px);
}

.kofi-icon {
    position: fixed;
    bottom: 12px;
    right: 14px;

    font-size: 12px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.5); /* soft subtle */
    text-decoration: none;

    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;

    z-index: 9999;
}

.kofi-icon:hover {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* CONTAINER */
.pet-builder{
max-width:700px;
margin:30px auto;
padding:25px;
background:#111;
border-radius:16px;
box-shadow:0 0 25px rgba(0,0,0,0.6);
}

/* TITLE */
.builder-title{
text-align:center;
margin-bottom:20px;
font-size:22px;
}

/* LAYOUT */
.builder-row{
display:flex;
gap:20px;
flex-wrap:wrap;
}

.builder-group{
flex:1;
min-width:250px;
}

/* LABEL */
.builder-group label{
display:block;
margin-bottom:6px;
font-size:13px;
opacity:0.8;
}

/* SELECT */
select{
width:100%;
padding:8px;
border-radius:8px;
border:none;
background:#222;
color:#fff;
font-size:14px;
}

/* EQUIP GRID */
.equip-grid-select{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
}

/* BUTTONS */
.builder-actions{
margin-top:20px;
display:flex;
justify-content:center;
gap:12px;
flex-wrap:wrap; /* keeps it responsive */
}

.btn{
padding:10px 18px;
border:none;
border-radius:10px;
font-size:14px;
cursor:pointer;
margin:5px;
transition:0.2s;
}

/* PRIMARY */
.btn.primary{
background:linear-gradient(135deg,#ff9800,#ff5722);
color:white;
}

.btn.primary:hover{
transform:scale(1.05);
}

/* SECONDARY */
.btn.secondary{
background:#333;
color:#ddd;
}

.btn.secondary:hover{
background:#444;
}

button{
border-radius:10px;
transition:0.2s;
}

button:hover{
transform:scale(1.05);
}


/* BUILD PREVIEW EQUIPPED PETS */
.equip-grid{
display:flex;
flex-wrap:wrap;        /* allows wrapping on smaller screens */
gap:12px;
justify-content:center;
}

/* PET BOX */
.pet-box{
background:#1a1a1a;
border:1px solid #333;
border-radius:10px;
padding:10px;
text-align:center;
width:100%;
max-width:120px;
flex:1 1 80px;
}

.pet-box img{
width:100%;
aspect-ratio:1/1;
object-fit:contain;
}

/* FULL ROW (Lead + Equipped) */
.full-row{
display:flex;
flex-wrap:wrap;
gap:10px;
justify-content:center;
}

/* PET BOX */
.pet-box{
background:#1a1a1a;
border:1px solid #333;
border-radius:10px;
padding:10px;
text-align:center;
width:120px;
position:relative;
}

/* LEAD HIGHLIGHT */
.pet-box.lead{
border:2px solid #ff9800;
box-shadow:0 0 10px rgba(255,152,0,0.4);
}

/* LEAD TAG */
.tag{
position:absolute;
top:5px;
left:5px;
background:#ff9800;
color:#000;
font-size:10px;
padding:2px 6px;
border-radius:6px;
font-weight:bold;
}

/* IMAGE */
.pet-box img{
width:100%;
aspect-ratio:1/1;
object-fit:contain;
}

/* MOBILE FIX */
@media(max-width:600px){

.builder-row{
flex-direction:column;
}

.equip-grid-select{
grid-template-columns:1fr; /* stack dropdowns */
}

.builder-actions{
flex-direction:column;
}

.btn{
width:100%;
}

.modal-content{
width:95%;
max-height:90vh;
padding:15px;
}

}


/*modal popup*/
.modal{
display:none;
position:fixed;
z-index:9999;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.75);
backdrop-filter:blur(6px);
}

.modal-content{
background:#12182a;
margin:5% auto;
padding:20px;
border-radius:14px;
width:90%;
max-width:800px;
max-height:85vh;
overflow-y:auto;
border:1px solid #333;
position:relative;
}

.close-modal{
position:absolute;
right:15px;
top:10px;
font-size:24px;
cursor:pointer;
color:#aaa;
}

.close-modal:hover{
color:white;
}

/* guide sections */
.guide-section{
margin-bottom:25px;
}

.guide-section h3{
margin-bottom:10px;
border-left:4px solid #6b7cff;
padding-left:10px;
}

.guide-section img{
width:100%;
border-radius:10px;
border:1px solid #333;
}

.weaponCard{
  text-align:center;
}

.weapon-icons{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-bottom:8px;
}

.weapon-icons img{
  width:40px;
  height:40px;
  border-radius:6px;
  background:#111;
  border:1px solid #333;
}


.emblemCard{
text-align:center;
}

.emblemCard img{
width:100%;
aspect-ratio:1/1;
object-fit:contain;
border-radius:10px;
border:2px solid #444;
background:#111;
}

.emblemCard h4{
margin-top:6px;
font-size:13px;
}

.emblemContainer, .inventory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.emblemItem, .inventoryItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px;
  border-radius: 5px;
  background-color: var(--card);  /* dark background */
  color: var(--text);             /* light text */
}

.emblemItem img, .inventoryItem img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 5px;
}

.emblemItem button, .inventoryItem button {
  padding: 2px 5px;
  font-size: 12px;
  cursor: pointer;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  transition: 0.2s;
}

.emblemItem button:hover, .inventoryItem button:hover {
  transform: scale(1.05);
  background-color: var(--accent2);
}

/* EMBLEM SET SUMMARY */
.setSummaryTab{
  margin-top:30px;
  padding:20px;
  background:#111;
  border-radius:16px;
  border:1px solid #2a2a2a;
}

.setSummary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:15px;
  margin-top:15px;
}

.setBox{
  background:linear-gradient(145deg,#151a2d,#10131f);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  padding:16px;
}

.setBox h3{
  margin-top:0;
  margin-bottom:12px;
  color:#fff;
}

.bonusList{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.bonusStep{
  padding:10px;
  border-radius:10px;
  font-size:13px;
}

.bonusStep.active{
  background:rgba(76,175,80,0.15);
  border:1px solid rgba(76,175,80,0.4);
}

.bonusStep.inactive{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  opacity:0.65;
}

.bonusStep ul{
  margin:6px 0 0 18px;
  padding:0;
}

.setEffect{
  margin-top:14px;
  padding:10px;
  background:rgba(107,124,255,0.12);
  border-left:4px solid var(--accent);
  border-radius:10px;
  font-size:13px;
  line-height:1.5;
}

.setTag{
  display:inline-block;
  margin:4px 0 8px;
  padding:2px 8px;
  background:#222;
  border-radius:999px;
  font-size:11px;
  color:#aaa;
}

.shareLink{
  margin-top:20px;
}

.shareLink input{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid #333;
  background:#0e0e0e;
  color:#fff;
}