/* The warm-up sheet on the phone (phone/warmup.js), over the start page, in its colours. */

.p-warm {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 10px; padding: 16px 18px; text-align: start; cursor: pointer;
  border-radius: calc(var(--radius) + 4px); border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--ink);
}
.p-warm-icon { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-size: 24px; }
.p-warm-text { flex: 1; min-width: 0; line-height: 1.35; }
.p-warm-text b { display: block; font-size: 17px; color: var(--hi); }
.p-warm-text small { font-size: 13px; color: var(--dim); }
.p-warm-go { flex: 0 0 auto; font-size: 22px; color: var(--accent); }
html[dir=rtl] .p-warm-go { transform: scaleX(-1); }

body.wu-open { overflow: hidden; }
.wu-sheet {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(5, 9, 12, .72); animation: wu-fade .2s ease-out;
}
.wu-card {
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: var(--bg2, #17222c); border: 1px solid var(--line); border-bottom: 0;
  animation: wu-up .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes wu-fade { from { opacity: 0; } }
@keyframes wu-up { from { transform: translateY(40px); opacity: 0; } }
.wu-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wu-head b { font-size: 17px; color: var(--hi); }
.wu-score { margin-inline-start: auto; font-size: 14px; font-weight: 700; color: var(--accent); }
.wu-close { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; }
.wu-cat { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.wu-pic { display: block; max-width: 100%; max-height: 160px; margin: 12px auto 0; border-radius: 10px; }
.wu-q { margin: 12px 0 14px; font-size: 21px; font-weight: 900; line-height: 1.45; color: var(--hi); }
/* The question's foreign names in English, small under it (kit.js namesLine). */
.wu-qlatin { display: block; margin-top: 2px; font-size: .62em; font-weight: 500; line-height: 1.3; color: var(--dim); text-align: start; unicode-bidi: isolate; }
.wu-opts { display: grid; gap: 10px; }
.wu-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; text-align: start; cursor: pointer;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 17px; font-weight: 700;
  transition: background .25s, border-color .25s, opacity .25s;
}
.wu-opt b { flex: 0 0 auto; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.wu-opt.pic img { height: 54px; width: 80px; object-fit: contain; border-radius: 6px; }
/* A foreign name's English spelling, small under a Persian or Arabic option (kit.js latinLine). */
.wu-latin { display: block; font-size: .7em; font-weight: 500; line-height: 1.2; color: var(--dim); text-align: start; unicode-bidi: isolate; }
.wu-after { opacity: 0; transition: opacity .3s; }
.wu-shown .wu-after { opacity: 1; }
.wu-opt:disabled { cursor: default; }
.wu-opt.right { border-color: var(--right); background: rgba(63, 184, 127, .2); }
.wu-opt.right b { background: var(--right); color: #0b1116; }
.wu-opt.wrong { border-color: var(--wrong); background: rgba(224, 103, 90, .18); }
.wu-shown .wu-opt:not(.right):not(.wrong) { opacity: .45; }
.wu-foot { margin-top: 14px; display: grid; gap: 8px; }
.wu-verdict { font-size: 18px; font-weight: 900; }
.wu-verdict.yes { color: var(--right); }
.wu-verdict.no { color: var(--wrong); }
.wu-share { font-size: 14px; color: var(--dim); }
.wu-next { margin-top: 4px; padding: 14px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-size: 17px; font-weight: 900; cursor: pointer; }
.wu-none, .wu-end { padding: 24px 6px; text-align: center; color: var(--dim); font-size: 16px; }
.wu-end b { font-size: 20px; color: var(--accent); }
.wu-wait { height: 120px; border-radius: 14px; background: var(--card); animation: wu-pulse 1.2s ease-in-out infinite; }
@keyframes wu-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .wu-sheet, .wu-card, .wu-wait { animation: none; } }
