
.ctf-page{
  background:
    linear-gradient(rgba(2,3,5,.68),rgba(2,3,5,.88)),
    url("assets/cyber-background.jpg") center center/cover fixed no-repeat;
}
.ctf-hero{
  min-height:560px;
  display:flex;
  align-items:flex-end;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 75% 38%,rgba(150,0,0,.16),transparent 28%),
    linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.88));
}
.ctf-hero-inner{
  width:min(var(--max),calc(100% - 40px));
  margin:0 auto;
  padding:0 0 62px;
}
.ctf-hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(4rem,8vw,7rem);
  line-height:.92;
  margin:12px 0 18px;
}
.ctf-hero p:not(.eyebrow){
  max-width:850px;
  color:#c0c1c6;
  font-size:1.08rem;
  line-height:1.7;
}
.ctf-profile-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:18px;
}
.ctf-stats-card,
.path-card,
.writeup-card,
.format-card{
  border:1px solid #292a2f;
  border-top-color:rgba(227,27,35,.46);
  border-radius:17px;
  background:linear-gradient(180deg,rgba(12,12,15,.92),rgba(6,6,8,.97));
  backdrop-filter:blur(8px);
}
.ctf-stats-card{padding:28px}
.ctf-name>span,
.platform-chip{
  color:#d64b50;
  font-size:.66rem;
  font-weight:850;
  letter-spacing:.1em;
}
.ctf-name h3{
  font-family:Georgia,"Times New Roman",serif;
  font-size:2rem;
  margin:8px 0 3px;
}
.ctf-name p{color:#85868d;margin:0}
.ctf-stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:22px;
}
.ctf-stats>div,
.path-stats>div{
  border:1px solid #292a2f;
  border-radius:12px;
  padding:15px;
  background:#09090b;
}
.ctf-stats span,
.path-stats span{
  display:block;
  color:#7d7f86;
  font-size:.62rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:5px;
}
.ctf-stats strong,
.path-stats strong{
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.35rem;
}
.ctf-skill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.ctf-skill-row span{
  border:1px solid #303138;
  border-radius:999px;
  padding:8px 10px;
  color:#aaaab0;
  font-size:.72rem;
}
.ctf-skill-row b{color:#fff}
.ctf-shot{
  display:block;
  width:100%;
  padding:0;
  border:1px solid #292a2f;
  border-radius:17px;
  overflow:hidden;
  background:#050506;
  cursor:pointer;
}
.ctf-shot img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.path-card{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  overflow:hidden;
}
.path-copy{padding:30px}
.path-progress-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
}
.path-progress-head h3{
  font-family:Georgia,"Times New Roman",serif;
  font-size:2rem;
  margin:10px 0 0;
}
.path-progress-head>strong{
  font-family:Georgia,"Times New Roman",serif;
  font-size:2.2rem;
}
.path-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:22px 0;
}
.progress-track{
  height:8px;
  background:#121318;
  border:1px solid #2a2b30;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:22px;
}
.progress-track span{
  display:block;
  height:100%;
  background:#d91d24;
}
.path-shot{
  border:0;
  border-left:1px solid #292a2f;
  border-radius:0;
}
.writeup-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.writeup-card{
  padding:26px;
  min-height:310px;
}
.writeup-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.writeup-card h3{
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.8rem;
  margin:16px 0 10px;
}
.writeup-card p{
  color:#96979d;
  line-height:1.65;
}
.writeup-stats,
.writeup-sections{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.writeup-stats span,
.writeup-sections span{
  border:1px solid #313239;
  border-radius:999px;
  padding:7px 9px;
  color:#b6b7bc;
  font-size:.67rem;
  font-weight:800;
}
.writeup-stats span{color:#70d986;border-color:#2b4a33}
.writeup-note{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #25262b;
  font-size:.82rem;
}
.writeup-placeholder{opacity:.82}
.status.completed{color:#70d986;border-color:#2b4a33;background:#08110b}
.status.active{color:#ffbd69;border-color:#5b4122;background:#161006}
.format-card{
  padding:30px;
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:center;
}
.format-card h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:2rem;
  margin:8px 0 9px;
}
.format-card p{color:#96979d;line-height:1.6}
.format-steps{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.format-steps span{
  border:1px solid #32333a;
  border-radius:12px;
  padding:13px 15px;
  color:#d5d5d8;
  background:#09090b;
}
.format-steps b{
  color:#d64b50;
  margin-right:7px;
}
@media(max-width:900px){
  .ctf-profile-grid,.path-card{grid-template-columns:1fr}
  .path-shot{border-left:0;border-top:1px solid #292a2f}
  .path-stats{grid-template-columns:repeat(2,1fr)}
  .writeup-grid{grid-template-columns:1fr}
  .format-card{align-items:flex-start;flex-direction:column}
  .format-steps{justify-content:flex-start}
  .ctf-page{background-attachment:scroll}
}
@media(max-width:560px){
  .ctf-stats,.path-stats{grid-template-columns:1fr 1fr}
}

.writeup-actions{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #25262b;
}
