@font-face {font-family: 'dkAwaken'; src: url('darkeden_exile.ttf');}
@import url('https://fonts.googleapis.com/css2?family=Faculty+Glyphic&display=swap');

* { box-sizing: border-box; }

:root {
  --rail-w: 197px;
  --gold: #cba25a;
  --gold-bright: #f0d38a;
  --blood: #7a1620;
  --blood-bright: #d76c50;
  --ink: #0a0808;
  --panel: #16100f;
}


html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(to bottom, #0a0808, #140e0c);
  overflow-x: hidden;
}

body {
  font-family: "Faculty Glyphic", Georgia, 'Times New Roman', serif;
  color: #cfc4b4;
  font-size: 16px;
  line-height: 1.3;
}

.logo{
    font-family:"Faculty Glyphic";
    font-weight:bold;
    color:#dc5a3f;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 1px 4px 4px #5f0b0b;    
    
}

.frame-container {
  position: relative;
  width: 1024px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.frame-top {
  width: 100%;
  background: 
        url('top2.png') no-repeat center/100% 100%,
        url('middle.png') repeat-y center/100% 100%;
  flex-shrink: 0;
}

.a_icon{font-family:dkAwaken;margin-left:20px;font-size:2.3em;text-transform:none;}
.a_icon_red{font-family:dkAwaken;padding:10px;font-size:130%;color:#de2121;text-transform:none;}
.a_icon_small{font-family:dkAwaken;margin-right:3px;font-size:65%;text-transform:none;}
.a_icon_title{font-family:dkAwaken;margin-bottom:20px;font-size:130%;display:block;text-transform:none;}


.frame-middle {
  position: relative;
  flex: 1;
  background: url('middle.png') repeat-y center/100% 100%;
  min-height: 175px;
}

.frame-content {
  padding-left:85px;
  padding-right:85px;
  position: relative;
  z-index: 1;
}

.frame-bottom {
  width: 100%;
  height: 278px;
  background: url('bottom.png') no-repeat center/100% 100%;
  flex-shrink: 0;
}



.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase; 
}

.top-nav a,
.footer-nav a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  font-size:1.1em;
  line-height:0.85em;
}

.top-nav a:hover,
.footer-nav a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(240, 211, 138, 0.6);
}

.sep {
  color: var(--blood-bright);
  font-size: 0.7em;
}

.divider {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 1rem auto;
  opacity: 0.9;
}


.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 1rem auto 3rem;
}

.btn-big {
  position: relative;
  width: 320px;
  max-width: 92vw;
  aspect-ratio: 481 / 138;
  background-image: url('big_button_normal.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gold);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 3px #000;
  transition: background-image 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.btn-big:hover,
.btn-big:focus-visible {
  background-image: url('big_button_hover.png');
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.content {
  background: linear-gradient(180deg, #1c1412 0%, #120c0b 100%);
  border: 1px solid rgba(203, 162, 90, 0.25);
  border-radius: 3px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.65), 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-bottom:30px;
}

.content h2 {
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin-top: 0;
  border-bottom: 1px solid rgba(203, 162, 90, 0.25);
  padding-bottom: 0.6rem;
}

.content p {
  margin: 1.1em 0;
  color: #c9bdaf;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  font-size:1.1em;
  line-height:0.85em;
}

a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(240, 211, 138, 0.6);
} 

.btn-small {
  padding: 0.55em 1.6em;
  background: linear-gradient(180deg, #3a1418 0%, #200a0c 100%);
  border: 1px solid var(--gold);
  border-radius: 2px;
  margin-top: 20px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
  transition: color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-small:hover,
.btn-small:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6), 0 0 10px rgba(179, 34, 47, 0.5);
}



 .dialog-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.8);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }
    
    .dialog-overlay.active {
      display: flex;
    }
    
    .dialog-box {
      background: #1c1412;
      border: 2px solid var(--gold);
      border-radius: 8px;
      padding: 40px;
      max-width: 420px;
      width: 90%;
      position: relative;
      box-shadow: 0 0 60px rgba(0,0,0,0.9);
    }
    
    .dialog-box h2 {
      color: var(--gold-bright);
      font-family: "Cormorant Upright", Georgia, serif;
      text-align: center;
      margin-top: 0;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-size: 1.4rem;
      border-bottom: 1px solid rgba(203, 162, 90, 0.3);
      padding-bottom: 15px;
    }
    
    .dialog-close {
      position: absolute;
      top: 12px;
      right: 18px;
      color: var(--gold);
      font-size: 28px;
      cursor: pointer;
      background: none;
      border: none;
      transition: color 0.2s;
    }
    
    .dialog-close:hover {
      color: var(--gold-bright);
    }
    
    .dialog-box label {
      display: block;
      color: #cfc4b4;
      margin-top: 15px;
      margin-bottom: 5px;
      font-size: 0.9rem;
      letter-spacing: 0.05em;
    }
    
    .dialog-box input {
      width: 100%;
      padding: 10px 14px;
      background: #0a0808;
      border: 1px solid rgba(203, 162, 90, 0.3);
      border-radius: 4px;
      color: #cfc4b4;
      font-size: 1rem;
      font-family: "Faculty Glyphic", Georgia, serif;
      transition: border-color 0.2s;
    }
    
    .dialog-box input:focus {
      outline: none;
      border-color: var(--gold);
    }
    
    .dialog-box .btn-submit {
      width: 100%;
      padding: 12px;
      margin-top: 20px;
      background: linear-gradient(180deg, #3a1418 0%, #200a0c 100%);
      border: 1px solid var(--gold);
      border-radius: 4px;
      color: var(--gold);
      font-family: 'Faculty Glyphic', Georgia, serif;
      font-size: 1rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .dialog-box .btn-submit:hover {
      color: var(--gold-bright);
      border-color: var(--gold-bright);
      box-shadow: 0 0 20px rgba(179, 34, 47, 0.3);
    }
    
    .dialog-box .error-msg {
      color: #dc5a3f;
      font-size: 0.9rem;
      margin-top: 10px;
      text-align: center;
    }
    
    .dialog-box .success-msg {
      color: #6bc46b;
      font-size: 0.9rem;
      margin-top: 10px;
      text-align: center;
    }
    
    .dialog-box .hint {
      color: #6b5f52;
      font-size: 0.75rem;
      margin-top: 4px;
    }
    
    .dialog-box .switch-link {
      text-align: center;
      margin-top: 15px;
      color: #6b5f52;
      font-size: 0.85rem;
    }
    
    .dialog-box .switch-link a {
      color: var(--gold);
      text-decoration: none;
      cursor: pointer;
    }
    
    .dialog-box .switch-link a:hover {
      color: var(--gold-bright);
    }











                .race-cols{
                  width:100%;
                  overflow:hidden; 
                }
                
                .race-col{
                  float:left;
                  width:31.33%;
                  margin-right:3%;
                }
                
                .race-col:last-child{
                  margin-right:0;
                }
                
                @media (max-width:600px){
                  .race-col{
                    float:none;
                    width:100%;
                    margin-right:0;
                    margin-bottom:20px;
                  }
                
                  .race-col:last-child{
                    margin-bottom:0;
                  }
                }         
                
        .page-title {
          text-align: center;
          padding: 12px 20px 10px;
          margin-bottom: 14px;  
        }
        
        .page-title h1 {
          color: #d4a017;
          font-size: 20px;
          letter-spacing: 8px;
          text-transform: uppercase;
          text-shadow: 0 0 8px #a07010, 0 0 18px #4a2800;
        }
        
        .title-sub {
          color: #6b3a10;
          font-size: 10px;
          letter-spacing: 5px;
          text-transform: uppercase;
          margin-top: 5px;
        }
        
        /* ===== TAB NAV ===== */
        
        .tab-nav {
          margin-bottom: 0;
          font-size: 0;
          border-bottom: 1px solid #6b2a00;
        }
        
        button.tab-item {
          -webkit-appearance: none;
          appearance: none;
          outline: none;
          border-radius: 0;
          box-shadow: none;
        }        
        
        .tab-item {
          display: inline-block;
          font-size: 11px;
          font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
          padding: 8px 20px;
          cursor: pointer;
          color: #7a4020;
          letter-spacing: 2px;
          text-transform: uppercase;
          border-top: 1px solid #4a1e00;
          border-left: 1px solid #4a1e00;
          border-right: 1px solid #4a1e00;
          border-bottom: 1px solid #6b2a00;
          background-color: #0c0502;
          margin-right: 3px;
          position: relative;
          bottom: -1px;
        }
        
        .tab-item:hover {
          color: #d4a017;
          background-color: #140800;
          border-top-color: #7a3010;
          border-left-color: #7a3010;
          border-right-color: #7a3010;
        }
        
        .tab-item.active {
          color: #d4a017;
          background-color: #100602;
          border-top-color: #8b3a10;
          border-left-color: #6b2a00;
          border-right-color: #6b2a00;
          border-bottom-color: #100602;
        }
        
        /* ===== TAB PANELS ===== */
        
        .tab-panel {
          display: none;
          background-color: #0c0502;
          border-left: 1px solid #6b2a00;
          border-right: 1px solid #6b2a00;
          border-bottom: double 3px #6b2a00;
          padding: 14px;
        }
        
        .tab-panel.active {
          display: block;
        }
        
        .panel-label {
          color: #8b4820;
          font-size: 10px;
          letter-spacing: 4px;
          text-transform: uppercase;
          margin-bottom: 12px;
          padding-bottom: 6px;
          border-bottom: 1px solid #2e1200;
        }
        
        /* ===== TABLE ===== */
        
        table {
          width: 100%;
          border-collapse: collapse;
        }
        
        thead tr {
          background-color: #130800;
        }
        
        thead tr td,
        thead tr th {
          border-bottom: double 3px #6b2a00;
        }
        
        th {
          padding: 8px 11px;
          text-align: left;
          color: #d4a017;
          font-size: 10px;
          letter-spacing: 3px;
          text-transform: uppercase;
          font-weight: normal;
          border-right: 1px solid #2a1200;
        }
        
        th:last-child {
          border-right: none;
        }
        
        td {
          padding: 7px 11px;
          color: #e0e0e0;
          font-size: 13px;
          border-bottom: 1px solid #1e0e04;
          border-right: 1px solid #1e0e04;
        }
        
        td:last-child {
          border-right: none;
        }
        
        tbody tr:hover td {
          background-color: #180c04;
          color: #ffffff;
        }
        
        /* ===== RANK COLUMN ===== */
        
        .col-rank {
          text-align: center;
          width: 36px;
          font-weight: bold;
          font-size: 13px;
          color: #7a4020;
        }
        
        .rank-1 { color: #d4a017; }
        .rank-2 { color: #b0b0b0; }
        .rank-3 { color: #a06030; }
        
        /* ===== RACE COLORS ===== */
        
        .race-slayer  { color: #6aa0dd; }
        .race-vampire { color: #992c22; }
        .race-ousters { color: #50bb80; }
        
        /* ===== KD RATIO ===== */
        
        .kd-good { color: #55bb66; }
        .kd-bad  { color: #cc5533; }
        .kd-mid  { color: #c09030; }
        
        /* ===== STATUS ===== */
        
        .alive { color: #55bb55; }
        .dead  { color: #6b2a00; }
        
        /* ===== HP BAR ===== */
        
        .hp-wrap {
          display: inline-block;
          width: 60px;
          height: 8px;
          background-color: #1e0e04;
          border: 1px solid #4a2000;
          vertical-align: middle;
        }
        
        .hp-bar {
          height: 100%;
          background-color: #882200;
        }
        
        .hp-bar.hp-high  { background-color: #337733; }
        .hp-bar.hp-mid   { background-color: #996600; }
        .hp-bar.hp-low   { background-color: #aa2200; }
        
        .hp-text {
          display: inline-block;
          width: 30px;
          font-size: 11px;
          color: #999999;
          vertical-align: middle;
          padding-left: 4px;
        }












/* Responsive */
@media (max-width: 1024px) {
  .frame-container {
    width: 100%;
  }
  
  .frame-top {
    height: 330px;
  }
  
  .frame-middle {
    min-height: clamp(60px, 17.1vw, 175px);
  }
  
  .frame-bottom {
    height: clamp(80px, 27.1vw, 278px);
  }
  
  .frame-content {
    padding: clamp(20px, 4vw, 40px) clamp(20px, 6vw, 60px);
  }
}