.jt-quiz{max-width:760px;margin:2rem auto;padding:clamp(1rem,4vw,2.5rem);border:1px solid #e7d8ff;border-radius:24px;background:#faf6ff;color:#24133a;box-shadow:0 14px 40px #6218bb18;text-align:center}
.jt-quiz h2{font-size:clamp(1.55rem,4vw,2.6rem);line-height:1.2;margin:1rem 0}
.jt-quiz-game button{font:inherit;cursor:pointer;border-radius:12px;padding:.85rem 1.1rem;margin:.4rem auto;border:1px solid #dbc4ff;color:#35155b;background:#fff}
.jt-quiz-game button:hover:not(:disabled){background:#eadcff;border-color:#7614f5}
.jt-quiz-game button:focus-visible{outline:3px solid #7614f5;outline-offset:3px}
.jt-quiz-game button:disabled{cursor:default}
.jt-quiz-game .primary,.jt-quiz-game button:only-child{background:#7614f5;color:#fff;border-color:#7614f5;font-weight:700}
.jt-quiz-game .primary:hover,.jt-quiz-game button:only-child:hover{background:#580bbd;color:#fff}
.jt-quiz-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.jt-quiz-options button{width:100%;min-height:56px;margin:0;text-align:left}
.jt-quiz-options button[data-result=correct]{background:#e4f8eb;border-color:#248351;color:#154b30}
.jt-quiz-options button[data-result=incorrect]{background:#ffe8ef;border-color:#bd395e;color:#811a39}
.jt-quiz-game .meta{display:inline-block;padding:.4rem .85rem;border-radius:99px;background:#eee0ff;color:#4f168f;font-weight:750;font-variant-numeric:tabular-nums}
.jt-quiz-game progress{display:block;width:100%;height:10px;margin:0 auto 1rem;accent-color:#7614f5}
.jt-quiz-game ol{text-align:left}
@media(max-width:540px){.jt-quiz-options{grid-template-columns:1fr}}
.jt-quiz-kicker{margin:0;color:#6b2bd4;font-size:.8rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.jt-quiz-game .meta.is-hurry{background:#ffe1ea;color:#a3123f}
.jt-quiz-game .feedback{font-weight:700;margin:1rem 0 .4rem}
.jt-quiz-game .feedback.is-correct{color:#1d7a47}
.jt-quiz-game .feedback.is-wrong{color:#a3123f}
.jt-quiz-game .streak{display:inline-block;margin:.2rem 0 .6rem;padding:.3rem .8rem;border-radius:99px;background:#fff1d6;color:#8a4b00;font-weight:750}
.jt-quiz-game .badge{display:inline-block;margin:0;padding:.45rem 1rem;border-radius:99px;background:#7614f5;color:#fff;font-weight:800}
.jt-quiz-form{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-end;justify-content:center;margin:1rem 0}
.jt-quiz-form label{display:flex;flex-direction:column;gap:.3rem;text-align:left;font-weight:650;flex:1 1 14rem;max-width:22rem}
.jt-quiz-form input{font:inherit;padding:.75rem;border:1px solid #b99ae8;border-radius:12px;background:#fff}
.jt-quiz-form button{margin:0}
.jt-quiz-tabs{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap}
.jt-quiz-tabs button[aria-pressed=true]{background:#eadcff;border-color:#7614f5;font-weight:750}
.jt-quiz-share{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;align-items:center;margin:1rem auto;padding:1rem;max-width:34rem;border-radius:16px;background:#fff;border:1px solid #e7d8ff}
.jt-quiz-share p{flex-basis:100%;margin:0;font-weight:700}
.jt-quiz-share p[role=status]{font-weight:400;font-size:.9rem;color:#4f168f;word-break:break-word}
.jt-quiz-share a{display:inline-block;padding:.6rem 1rem;border-radius:12px;border:1px solid #dbc4ff;background:#faf6ff;color:#35155b;font-weight:650;text-decoration:none}
.jt-quiz-share a:hover{background:#eadcff;border-color:#7614f5}
.jt-quiz-share button{margin:0}

.jt-quiz-lead{font-weight:600}
.jt-quiz-note{color:#5b4a70;font-size:.95rem}
.jt-quiz-limit{padding:.8rem 1rem;border-radius:12px;background:#fff1d6;color:#7a4300;font-weight:650}
.jt-quiz-game button.big{font-size:1.15rem;padding:1rem 2.2rem}
.jt-quiz-bar{display:flex;align-items:center;justify-content:center;gap:.6rem;position:relative}
.jt-quiz-bar .meta{margin:0}
.jt-quiz-game .jt-quiz-close{position:absolute;right:0;top:50%;transform:translateY(-50%);width:40px;height:40px;padding:0;margin:0;border-radius:50%;font-size:1.1rem;line-height:1;background:#fff;color:#5b4a70}
.jt-quiz-image{display:block;max-width:100%;max-height:220px;margin:0 auto .5rem;border-radius:14px;object-fit:cover}
.jt-quiz-boards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.5rem 0 1rem;text-align:left}
.jt-quiz-boardbox{background:#fff;border:1px solid #e7d8ff;border-radius:16px;padding:1rem}
.jt-quiz-boardbox h3{margin:0 0 .6rem;font-size:1.05rem;color:#4f168f}
.jt-quiz-board{list-style:none;margin:0;padding:0}
.jt-quiz-board li{display:flex;align-items:center;gap:.5rem;padding:.4rem .5rem;border-bottom:1px solid #f0e6ff;font-size:.95rem}
.jt-quiz-board li.is-me{background:#eadcff;border-radius:8px;font-weight:750}
.jt-quiz-board li.is-empty{color:#6b5a80;border:0}
.jt-quiz-board .place{min-width:1.8rem;text-align:right;color:#6b2bd4;font-weight:800}
.jt-quiz-board .icon{min-width:1.9rem;text-align:center;white-space:nowrap}
.jt-quiz-board .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jt-quiz-rankicon{font-size:3.4rem;line-height:1;margin:.2rem 0}
@media(max-width:640px){.jt-quiz-boards{grid-template-columns:1fr}.jt-quiz-ranks ul{grid-template-columns:1fr}}

.jt-quiz-ranks{text-align:left;margin:0 0 1rem;background:#fff;border:1px solid #e7d8ff;border-radius:16px;padding:1rem}
.jt-quiz-ranks summary{cursor:pointer;font-weight:700;color:#4f168f;font-size:1.05rem}
.jt-quiz-ranks ul{list-style:none;padding:0;margin:.8rem 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.6rem}
.jt-quiz-ranks li{display:flex;align-items:center;gap:.75rem;padding:.6rem .8rem;border-radius:12px;background:#faf6ff;border:1px solid #f0e6ff}
.jt-quiz-ranks li:first-child{background:#fff6d8;border-color:#f3dc8a}
.jt-quiz-crown{margin:.8rem 0 0;padding:.6rem .8rem;border-radius:12px;background:#fff6d8;color:#6b4a00;font-size:.92rem}
.jt-quiz-ranks .icon{flex:0 0 2.6rem;text-align:center;font-size:1.7rem;line-height:1;white-space:nowrap}
.jt-quiz-ranks .icon img.emoji{width:1.6rem!important;height:1.6rem!important}
.jt-quiz-ranks .text{display:flex;flex-direction:column;line-height:1.25}
.jt-quiz-ranks .text small{color:#6b5a80;font-size:.85rem}
