:root{
  color-scheme: light;
  --bg:#f4efeb;
  --ink:#101014;
  --muted:#69625f;
  --line:rgba(16,16,20,.12);
  --line-strong:rgba(181,15,40,.26);
  --red:#bf2638;
  --red-dark:#84121f;
  --white:#fff;
  --good:#176b3a;
  --bad:#9f1d2c;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.5;
}
a{ color:inherit; }
button,
input{
  font:inherit;
}
button:focus-visible,
input:focus-visible,
a:focus-visible{
  outline:3px solid rgba(191,38,56,.34);
  outline-offset:3px;
}
.is-embedded body{
  min-height:0;
}
.game-header{
  min-height:62px;
  padding:12px clamp(16px,4vw,28px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:#101012;
  color:var(--white);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.back{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  text-decoration:none;
}
.game-header p{
  margin:0 0 2px;
  color:#ff6a78;
  font-size:11px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.game-header h1{
  margin:0;
  font-size:19px;
  line-height:1.1;
  letter-spacing:0;
}
.game-header button,
.answer-row button,
.finale button{
  min-height:42px;
  border:0;
  border-radius:999px;
  background:var(--red);
  color:var(--white);
  padding:0 16px;
  font-weight:850;
  cursor:pointer;
}
.game-header button{
  background:transparent;
  border:1px solid rgba(255,255,255,.24);
  font-size:13px;
}
.game-main{
  width:min(100%,1080px);
  margin:0 auto;
  padding:22px clamp(16px,4vw,28px) 30px;
}
.game-intro{
  max-width:780px;
  margin:0 0 14px;
}
.eyebrow{
  margin:0 0 6px;
  color:var(--red);
  font-size:12px;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.game-intro p:last-child{
  margin:0;
  color:var(--muted);
  font-size:15px;
}
.game-status{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.game-status span{
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  color:var(--muted);
  font-size:13px;
}
.game-status strong{
  color:var(--ink);
}
.deadline-card,
.feedback,
.finale{
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.86);
  box-shadow:0 18px 44px rgba(35,16,16,.07);
}
.deadline-card{
  padding:22px;
}
.deadline-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.case-source{
  margin:0;
  color:var(--red-dark);
  font-size:12px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.case-difficulty{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#f8e7e9;
  color:var(--red-dark);
  font-size:12px;
  font-weight:850;
}
.deadline-card h2{
  margin:0 0 10px;
  font-size:clamp(22px,2.7vw,32px);
  line-height:1.1;
  letter-spacing:-.01em;
}
.case-scenario{
  max-width:850px;
  margin:0 0 18px;
  color:#343034;
  font-size:16px;
  text-align:justify;
  text-wrap:pretty;
}
.case-facts{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 18px;
}
.case-facts div{
  min-height:82px;
  padding:12px;
  border:1px solid rgba(16,16,20,.10);
  border-radius:14px;
  background:#fbf9f7;
}
.case-facts dt{
  margin:0 0 6px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.case-facts dd{
  margin:0;
  color:var(--ink);
  font-size:14px;
  font-weight:700;
}
.answer-form label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:850;
}
.answer-row{
  display:grid;
  grid-template-columns:minmax(220px,320px) auto;
  gap:10px;
  align-items:center;
}
.answer-row input{
  width:100%;
  height:46px;
  min-width:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
  color:var(--ink);
  padding:0 12px;
}
.answer-row button{
  border-radius:12px;
  padding:0 20px;
}
.feedback,
.finale{
  margin-top:14px;
  padding:18px;
}
.feedback h3,
.finale h3{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.15;
}
.feedback.correct{
  border-color:rgba(23,107,58,.30);
}
.feedback.wrong{
  border-color:rgba(159,29,44,.30);
}
.result-line{
  margin:0 0 12px;
  color:var(--muted);
}
.result-line strong{
  color:var(--ink);
}
.count-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.count-list li{
  padding:10px 12px;
  border-radius:12px;
  background:#fbf9f7;
  border:1px solid rgba(16,16,20,.08);
  color:#2a2528;
  text-align:justify;
  text-wrap:pretty;
}
.feedback-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.feedback-actions button{
  min-height:40px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:transparent;
  color:var(--red-dark);
  padding:0 14px;
  font-weight:850;
  cursor:pointer;
}
.feedback-actions button.primary{
  border-color:var(--red);
  background:var(--red);
  color:var(--white);
}
.finale ul{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.finale li{
  padding:10px 12px;
  border-radius:12px;
  background:#fbf9f7;
  border:1px solid rgba(16,16,20,.08);
}
.finale small{
  display:block;
  margin-top:4px;
  color:var(--muted);
}
@media (max-width:820px){
  .game-status,
  .case-facts{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:560px){
  .game-header{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .game-header > div{
    flex:1 1 calc(100% - 52px);
  }
  .game-header button{
    width:100%;
  }
  .game-main{
    padding-top:18px;
  }
  .game-status,
  .case-facts,
  .answer-row{
    grid-template-columns:1fr;
  }
  .deadline-card{
    padding:18px;
  }
  .deadline-card__head{
    align-items:flex-start;
    flex-direction:column;
  }
  .answer-row button{
    width:100%;
  }
}
