@font-face {
  font-family: "CaseSans";
  font-style: normal;
  font-weight: 700;
  src: local(""), url("./fonts/TBCContracticaCAPS-Bold.ttf");
}
@font-face {
  font-family: "CaseSans";
  font-style: normal;
  font-weight: 600;
  src: local(""), url("./fonts/TBCContracticaCAPS-Black.ttf");
}
@font-face {
  font-family: "CaseSans";
  font-style: normal;
  font-weight: 500;
  src: local(""), url("./fonts/TBCContracticaCAPS-Medium.ttf");
}
@font-face {
  font-family: "CaseSans";
  font-style: normal;
  font-weight: 400;
  src: local(""), url("./fonts/TBCContracticaCAPS-Regular.ttf");
}
@font-face {
  font-family: "CaseSans";
  font-style: normal;
  font-weight: 300;
  src: local(""), url("./fonts/TBCContracticaCAPS-Light.ttf");
}

@font-face {
  font-family: "CaseSansRegular";
  font-style: normal;
  font-weight: 700;
  src: local(""), url("./fonts/TBCContractica-Bold.ttf");
}
@font-face {
  font-family: "CaseSansRegular";
  font-style: normal;
  font-weight: 600;
  src: local(""), url("./fonts/TBCContractica-Black.ttf");
}
@font-face {
  font-family: "CaseSansRegular";
  font-style: normal;
  font-weight: 500;
  src: local(""), url("./fonts/TBCContractica-Medium.ttf");
}
@font-face {
  font-family: "CaseSansRegular";
  font-style: normal;
  font-weight: 400;
  src: local(""), url("./fonts/TBCContractica-Regular.ttf");
}
@font-face {
  font-family: "CaseSansRegular";
  font-style: normal;
  font-weight: 300;
  src: local(""), url("./fonts/TBCContractica-Light.ttf");
}

:root {
  --bg: #071422;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #c8a24a;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "CaseSansRegular";
  /* background: radial-gradient(
      1200px 600px at 40% 0%,
      rgba(246, 191, 54, 1),
      transparent 60%
    ),
    linear-gradient(180deg, #06101d, #071422); */
  background: url("/uploads/home-bg-2.png");
  backdrop-filter: brightness(0.5);
  color: var(--text);
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
}

h1,
h2,
h3,
h4,
h5,
h6,
a {
  font-family: "CaseSans";
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.h1 {
  font-size: 40px;
  margin: 0 0 10px;
  letter-spacing: 0.4px;
}
.p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(200, 162, 74, 0.95),
    rgba(254, 192, 54, 54)
  );
  color: #08121f;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:active {
  transform: translateY(1px);
}
.small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.qwrap {
  margin-top: 18px;
}
.q {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
  margin-bottom: 12px;
}
.q h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.opt {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 8px 0;
  cursor: pointer;
}
.opt input {
  margin-right: 10px;
}
.progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 0;
  margin-bottom: 10px;
}
.badge {
  width: min(900px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.namebox {
  width: 100%;
  max-width: 300px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.btn2 {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
  font-weight: 800;
  cursor: pointer;
}

/* Name input wrapper */
.namewrap{
  position: relative;
  width: 100%;
}

/* Counter inside input (top-right) */
.name-counter{
  position:absolute;
  top:10px;
  right:12px;
  font-size:12px;
  line-height:1;
  padding:6px 8px;
  border-radius:999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  pointer-events:none;  /* allow clicking input */
  user-select:none;
  backdrop-filter: blur(6px);
}

/* Give the input space so text won't go under the counter */
.namewrap .namebox{
  width:100%;
  padding-right:90px; /* adjust if you want more/less */
}

/* Optional: when near limit, highlight */
.name-counter.is-warn{
  border-color: rgba(250,194,55,.45);
  color:#fac237;
}

  .yt-overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,.78);
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    z-index:9999;
  }
  .yt-overlay.active{ display:flex; }

  .yt-modal{
    width:min(920px, 96vw);
    background:rgba(10,14,18,.92);
    border:1px solid rgba(255,255,255,.12);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 30px 90px rgba(0,0,0,.45);
    position:relative;
  }

  .yt-skip{
    position:absolute;
    top:12px; right:12px;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(0,0,0,.35);
    color:#fff;
    cursor:pointer;
    font-weight:700;
    z-index:2;
  }
  .yt-skip:disabled{
    opacity:.55;
    cursor:not-allowed;
  }

  .yt-frame-wrap{
    width:100%;
    aspect-ratio: 16 / 9;
    background:#000;
  }

  .yt-note{
    padding:12px 14px;
    font-size:13px;
    color:rgba(255,255,255,.75);
    border-top:1px solid rgba(255,255,255,.10);
  }

/* Make nav always stable: buttons stay aligned */
.navrow{
  display:grid;
  grid-template-columns: auto 1fr auto; /* back | hint | next */
  align-items:center;
  gap:10px;
  margin-top:14px;
}

/* Let hint shrink properly instead of pushing buttons */
#hint{
  min-width: 0;
  text-align:center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: move hint UNDER buttons, keep buttons side-by-side */
@media (max-width: 520px){
  .navrow{
    grid-template-columns: 1fr 1fr;     /* back | next */
    grid-template-areas:
      "back next"
      "hint hint";
    row-gap:10px;
  }

  #backBtn{ grid-area: back; width:100%; }
  #nextBtn{ grid-area: next; width:100%; }

  #hint{
    grid-area: hint;
    white-space: normal;    /* allow wrapping now that it's full width */
    text-align: center;
    margin-top: 2px;
  }
}

/* Default (desktop / tablet stays as-is) */
.header-round-logo{
  width: 7rem;
  margin-bottom: 3rem;
}

/* Mobile optimization */
@media (max-width: 260px){
  .header-round-logo{
    width: 2.5rem;        /* smaller logo */
    margin-bottom: 1.2rem; /* tighter spacing */
  }
}

