/* «Ruletkani ulash» ekrani — faqat style.css tokenlari (yorug' / qorong'i) */

.ul-lead {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 var(--s4);
}
.ul-steps {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: 0;
  display: grid;
  gap: var(--s3);
}
.ul-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.ul-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--on-navy);
  font-size: var(--fs-lg);
  font-weight: 800;
}
.ul-step.is-done .ul-num {
  background: var(--ok);
  color: var(--on-ok);
}
.ul-step-title {
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  margin: 6px 0 var(--s2);
}
.ul-say {
  font-size: var(--fs-lg);
  line-height: 1.45;
  margin: 0 0 var(--s2);
  overflow-wrap: anywhere;
}
.ul-once {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  margin: var(--s3) 0 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--navy-soft);
  font-weight: 600;
  line-height: 1.4;
}
.ul-once .ico-svg {
  flex: none;
}
.ul-done {
  display: grid;
  justify-items: center;
  gap: var(--s1);
  padding: var(--s4);
  border-radius: var(--r);
  background: var(--ok-soft);
  color: var(--ok);
  text-align: center;
}
.ul-done-title {
  font-size: 30px;
  line-height: 1.2;
}
.ul-done .btn-big {
  background: var(--ok);
  color: var(--on-ok);
  margin-bottom: 0;
}
.ul-help .ul-list {
  margin-top: var(--s3);
}
.ul-help .ul-pic {
  max-width: 280px;
}
.ul-help .hint {
  display: block;
}
.ul-pic {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 4px auto 12px;
  color: var(--ink);
}
.ul-phone,
.ul-tape {
  fill: var(--surface-2);
  stroke: currentColor;
  stroke-width: 2.5;
}
.ul-screen {
  fill: var(--navy-soft);
  stroke: currentColor;
  stroke-width: 1.2;
}
.ul-bt,
.ul-wave,
.ul-hook,
.ul-strip {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ul-wave {
  stroke: var(--navy);
  stroke-dasharray: 4 4;
}
.ul-strip {
  stroke: var(--device);
  stroke-width: 4;
}
.ul-capture {
  fill: var(--device);
  stroke: currentColor;
  stroke-width: 1.5;
}
.ul-book {
  fill: var(--navy-soft);
  stroke: currentColor;
  stroke-width: 2;
}
.ul-paper {
  fill: var(--paper, #fff);
  stroke: currentColor;
  stroke-width: 1.5;
}
.ul-t {
  font: 700 12px var(--sans);
  fill: var(--ink);
}
.ul-list {
  margin: 8px 0 16px;
  padding-left: 1.4em;
  display: grid;
  gap: 10px;
  font-size: 17px;
  line-height: 1.45;
}
.ul-list li {
  min-width: 0;
  overflow-wrap: anywhere;
  padding-inline-start: 4px;
}
.ul-key {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ul-nb {
  white-space: nowrap;
}
.ul-out {
  min-height: 0;
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.ul-out.ok,
.ul-out.warn {
  padding: 10px 12px;
}
.ul-out.ok,
.ul-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.ul-ok {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ul-out.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.ul-out .ico-svg,
.ul-ok .ico-svg {
  vertical-align: -5px;
}
.ul .btn-line {
  display: block;
  text-align: center;
  margin: 10px 0;
}
.ul .btn-big,
.ul .btn-line {
  min-height: var(--tap, 48px);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.ul {
  max-width: 720px;
  padding-top: 20px;
}
/* This heading is translated and needs two lines on a 320 px phone.
   Keep the back action visible instead of truncating the title. */
.top:has(+ .ul) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.top:has(+ .ul) h1 {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 3.6vw, 18px);
  line-height: 1.25;
  padding-block: 6px;
}
.ul input {
  min-width: 0;
  scroll-margin-block: 96px;
}
/* Bosh sahifadagi «Ruletkani ulash» kartasi (app.js) */
.ul-card .btn-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 8px;
}
@media (prefers-reduced-motion: no-preference) {
  .ul-done-ico {
    animation: ul-pop 0.24s ease-out;
  }
  .ul-capture {
    animation: ul-pulse 1.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
}
@keyframes ul-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
@keyframes ul-pulse {
  50% {
    transform: scale(1.18);
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .ul-pic {
    max-height: 150px;
    width: auto;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ul-capture {
    animation: none;
  }
}
