.pytb-trivia,
.pytb-trivia *{box-sizing:border-box}

.pytb-trivia{
  --pytb-primary:#ef0048;
  --pytb-secondary:#0b1433;
  --pytb-accent:#00b964;
  --pytb-bg:#ef0048;
  --pytb-card:#fff;
  --pytb-progress:0%;
  --pytb-start-title-size:64px;
  --pytb-question-size:58px;
  --pytb-answer-size:32px;
  --pytb-stage-width:1180px;
  --pytb-stage-min-height:var(--pytb-stage-min-height);
  --pytb-question-card-width:900px;
  --pytb-question-card-min-height:0px;
  --pytb-timer-size:76px;
  --pytb-timer-offset-x:28px;
  width:100%;
  max-width:var(--pytb-stage-width);
  margin:24px auto;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--pytb-secondary);
}

.pytb-stage{
  position:relative;
  min-height:650px;
  overflow:hidden;
  border-radius:28px;
  background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.13),transparent 28%),linear-gradient(135deg,var(--pytb-bg),var(--pytb-primary));
  box-shadow:0 24px 70px rgba(0,0,0,.18);
  padding:clamp(22px,4vw,36px) clamp(18px,5vw,50px) 34px;
}

.pytb-bg-pattern{
  position:absolute;
  inset:0;
  background:linear-gradient(60deg,rgba(255,255,255,.08) 0 1px,transparent 1px 64px),radial-gradient(circle at 18% 45%,rgba(255,255,255,.09) 0 2px,transparent 2px 11px);
  opacity:.42;
  pointer-events:none;
}

.pytb-stage:after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  height:8px;
  width:var(--pytb-progress);
  background:#fff;
  opacity:.9;
  transition:width .35s ease;
}

.pytb-header{
  position:relative;
  z-index:2;
  text-align:center;
  margin-bottom:clamp(16px,3vw,25px);
}

.pytb-logo{
  max-width:min(420px,70%);
  height:auto;
  max-height:92px;
  object-fit:contain;
}

.pytb-screen{
  position:relative;
  z-index:2;
  display:none;
  animation:pytbFade .28s ease both;
}

.pytb-screen.is-active{display:block}

@keyframes pytbFade{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}

.pytb-start-card,
.pytb-result-card{
  width:min(820px,100%);
  margin:clamp(26px,5vw,45px) auto 0;
  background:var(--pytb-card);
  border-radius:34px;
  padding:clamp(34px,6vw,58px) clamp(20px,5vw,45px);
  text-align:center;
  box-shadow:0 18px 0 rgba(11,20,51,.12);
}

.pytb-start-title{
  font-weight:900;
  font-size:clamp(30px,7vw,var(--pytb-start-title-size));
  line-height:.98;
  color:var(--pytb-primary);
  letter-spacing:-1.5px;
  text-transform:uppercase;
  margin-bottom:20px;
}

.pytb-start-card p,
.pytb-result-card p{
  font-size:clamp(16px,2.6vw,22px);
  line-height:1.55;
  margin:0 auto 30px;
  max-width:660px;
  color:var(--pytb-secondary);
}

.pytb-btn{
  appearance:none;
  border:none;
  border-radius:999px;
  background:var(--pytb-primary);
  color:#fff;
  font-weight:900;
  font-size:clamp(16px,2.4vw,20px);
  padding:15px 30px;
  cursor:pointer;
  box-shadow:0 10px 0 rgba(11,20,51,.14);
  transition:.18s ease;
}

.pytb-btn:hover{transform:translateY(-2px)}

.pytb-top-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:min(860px,96%);
  margin:0 auto -20px;
  position:relative;
  z-index:3;
  overflow:visible;
}

.pytb-question-badge{
  background:linear-gradient(180deg,#ff2b61,var(--pytb-primary));
  color:#fff;
  border-radius:16px 16px 16px 0;
  padding:clamp(14px,2.4vw,20px) clamp(20px,4vw,38px);
  font-size:clamp(22px,4vw,34px);
  line-height:1;
  font-weight:900;
  font-style:italic;
  box-shadow:0 8px 0 rgba(11,20,51,.12);
  white-space:nowrap;
}

.pytb-timer{
  flex:0 0 auto;
  width:clamp(52px,8vw,var(--pytb-timer-size));
  height:clamp(52px,8vw,var(--pytb-timer-size));
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:var(--pytb-primary);
  font-weight:900;
  font-size:clamp(25px,4vw,34px);
  border:clamp(4px,.8vw,6px) solid var(--pytb-primary);
  box-shadow:0 8px 0 rgba(11,20,51,.1);
  transform:translateX(var(--pytb-timer-offset-x));
}

.pytb-timer span{line-height:1;}

.pytb-trivia.is-time-low .pytb-timer{animation:pytbPulse .55s infinite alternate}
@keyframes pytbPulse{to{transform:translateX(var(--pytb-timer-offset-x)) scale(1.08)}}

.pytb-question-card{
  position:relative;
  width:min(var(--pytb-question-card-width),100%);
  margin:0 auto;
  background:var(--pytb-card);
  border-radius:0 42px 42px 42px;
  padding:clamp(74px,8vw,86px) clamp(18px,6vw,70px) clamp(36px,5vw,52px);
  box-shadow:0 18px 0 rgba(11,20,51,.12);
  overflow:hidden;
  min-height:var(--pytb-question-card-min-height);
}

.pytb-question-card:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:43%;
  height:70px;
  background:linear-gradient(90deg,rgba(239,0,72,.13),transparent);
  transform:skewX(-16deg);
  transform-origin:left top;
}

.pytb-deco-lines{
  position:absolute;
  top:clamp(84px,9vw,98px);
  right:clamp(16px,4vw,34px);
  width:44px;
  height:44px;
  pointer-events:none;
  opacity:.92;
  z-index:1;
}

.pytb-deco-lines span{
  position:absolute;
  background:var(--pytb-primary);
  border-radius:6px;
}

.pytb-deco-lines span:nth-child(1){width:6px;height:24px;left:8px;top:0;transform:rotate(12deg)}
.pytb-deco-lines span:nth-child(2){width:6px;height:18px;left:25px;top:12px;transform:rotate(53deg)}
.pytb-deco-lines span:nth-child(3){width:22px;height:6px;left:18px;top:30px;transform:rotate(12deg)}

.pytb-question-text{
  position:relative;
  z-index:2;
  font-size:clamp(28px,5.4vw,var(--pytb-question-size));
  line-height:1.07;
  text-align:center;
  margin:0 auto 36px;
  color:var(--pytb-secondary);
  font-weight:900;
  font-style:italic;
  letter-spacing:-1px;
  max-width:88%;
  padding-right:44px;
  overflow-wrap:anywhere;
}

.pytb-question-text strong{color:var(--pytb-primary)}

.pytb-answers{
  display:grid;
  gap:14px;
  position:relative;
  z-index:2;
}

.pytb-answer{
  width:100%;
  min-height:70px;
  display:grid;
  grid-template-columns:clamp(54px,8vw,78px) 1fr clamp(38px,6vw,54px);
  align-items:center;
  text-align:left;
  border:3px solid var(--pytb-primary);
  background:#fff;
  border-radius:999px;
  padding:clamp(8px,1.5vw,11px) clamp(10px,2vw,18px) clamp(8px,1.5vw,11px) 12px;
  color:var(--pytb-secondary);
  font-weight:900;
  font-size:clamp(18px,3.2vw,var(--pytb-answer-size));
  line-height:1.15;
  cursor:pointer;
  transition:.18s ease;
}

.pytb-answer:hover{transform:translateX(4px)}
.pytb-answer:disabled{cursor:default}

.pytb-answer-letter{
  width:clamp(42px,6vw,58px);
  height:clamp(42px,6vw,58px);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--pytb-primary);
  color:#fff;
  font-size:clamp(24px,4vw,34px);
  line-height:1;
}

.pytb-answer-mark{
  width:clamp(36px,5vw,46px);
  height:clamp(36px,5vw,46px);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
}

.pytb-answer.is-selected{
  background:var(--pytb-primary);
  color:#fff;
  box-shadow:0 8px 0 rgba(11,20,51,.12);
}

.pytb-answer.is-selected .pytb-answer-letter{
  background:#fff;
  color:var(--pytb-primary);
  outline:4px solid rgba(255,255,255,.5);
}

.pytb-answer.is-correct .pytb-answer-mark:after{
  content:"✓";
  background:#fff;
  color:var(--pytb-accent);
  width:clamp(36px,5vw,46px);
  height:clamp(36px,5vw,46px);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:clamp(28px,4vw,38px);
  font-weight:900;
}

.pytb-answer.is-wrong .pytb-answer-mark:after{
  content:"×";
  background:#fff;
  color:#e1002a;
  width:clamp(36px,5vw,46px);
  height:clamp(36px,5vw,46px);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:clamp(28px,4vw,38px);
  font-weight:900;
}

.pytb-footer{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-top:28px;
  color:#fff;
  font-size:clamp(18px,3vw,28px);
  font-weight:900;
  font-style:italic;
  text-align:center;
  text-shadow:0 2px 0 rgba(0,0,0,.08);
}

.pytb-result-status{
  font-size:clamp(42px,8vw,90px);
  font-weight:900;
  line-height:1;
  color:var(--pytb-primary);
  text-transform:uppercase;
}

.pytb-result-status.is-win{color:var(--pytb-accent)}

.pytb-score-box{
  display:inline-flex;
  margin:5px auto 24px;
  background:var(--pytb-primary);
  color:#fff;
  border-radius:999px;
  padding:13px 25px;
  font-weight:900;
  font-size:clamp(17px,3vw,22px);
}

.pytb-result-detail{
  display:grid;
  gap:10px;
  text-align:left;
  max-height:280px;
  overflow:auto;
  margin:0 auto 28px;
}

.pytb-detail-item{
  border-radius:18px;
  padding:13px 16px;
  background:#f4f5f7;
  border-left:8px solid #999;
}

.pytb-detail-item.is-ok{border-left-color:var(--pytb-accent)}
.pytb-detail-item.is-bad{border-left-color:var(--pytb-primary)}
.pytb-detail-item strong,.pytb-detail-item span{display:block}
.pytb-detail-item span{font-size:14px;margin-top:4px}

.pytb-expired{
  max-width:760px;
  margin:20px auto;
  padding:25px;
  border-radius:18px;
  background:#fff3f3;
  border:1px solid #ffb4b4;
  color:#9b001f;
  font-weight:700;
  text-align:center;
}

/* Tablet */
@media (max-width:900px){
  .pytb-trivia{margin:12px auto}
  .pytb-stage{min-height:620px;border-radius:22px}
  .pytb-logo{max-width:72%;max-height:78px}
  .pytb-question-text{max-width:94%}
}

/* Mobile */
@media (max-width:600px){
  .pytb-stage{
    min-height:auto;
    border-radius:0;
    padding:24px 14px 28px;
  }

  .pytb-header{margin-bottom:20px}
  .pytb-logo{max-width:86%;max-height:64px}

  .pytb-start-card,
  .pytb-result-card{
    margin-top:24px;
    border-radius:24px;
    box-shadow:0 12px 0 rgba(11,20,51,.12);
  }

  .pytb-top-row{
    width:100%;
    margin-bottom:-12px;
    padding-right:8px;
  }

  .pytb-timer{transform:translateX(min(var(--pytb-timer-offset-x), 14px));}

  .pytb-question-badge{
    border-radius:14px 14px 14px 0;
    white-space:normal;
  }

  .pytb-question-card{
    border-radius:0 26px 26px 26px;
    box-shadow:0 12px 0 rgba(11,20,51,.12);
  }

  .pytb-question-card:before{
    height:58px;
    width:52%;
  }

  .pytb-question-text{
    max-width:100%;
    padding-right:30px;
    margin-bottom:26px;
    letter-spacing:-.5px;
  }

  .pytb-deco-lines{
    transform:scale(.76);
    right:10px;
    top:76px;
  }

  .pytb-answers{gap:10px}

  .pytb-answer{
    min-height:58px;
    border-width:2px;
    border-radius:24px;
    grid-template-columns:46px 1fr 34px;
  }

  .pytb-answer-letter{
    width:38px;
    height:38px;
  }

  .pytb-answer-mark,
  .pytb-answer.is-correct .pytb-answer-mark:after,
  .pytb-answer.is-wrong .pytb-answer-mark:after{
    width:32px;
    height:32px;
  }

  .pytb-footer{
    margin-top:22px;
    padding:0 12px;
  }
}

/* Extra small phones */
@media (max-width:380px){
  .pytb-stage{padding-left:10px;padding-right:10px}
  .pytb-question-badge{font-size:19px;padding:12px 14px}
  .pytb-timer{width:52px;height:52px;font-size:22px}
  .pytb-question-text{font-size:26px}
  .pytb-answer{font-size:17px;grid-template-columns:42px 1fr 30px}
  .pytb-answer-letter{width:34px;height:34px;font-size:21px}
}

@media (max-width:600px){@keyframes pytbPulse{to{transform:translateX(min(var(--pytb-timer-offset-x),14px)) scale(1.08)}}}
