:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c2733;
  background: #eef1f4;
  font-synthesis: none;
  --green: #1d9d5f;
  --muted: #6b7a89;
  --border: #e3e9ee;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; justify-content: center; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #2277c8; outline-offset: 4px; }
[hidden] { display: none !important; }
.app { width: 100%; max-width: 430px; min-height: 100vh; min-height: 100dvh; background: #f7f9fb; box-shadow: 0 0 24px #14283c1f; }
.header { padding: 10px 16px 8px; display: flex; align-items: center; gap: 10px; background: white; border-bottom: 1px solid var(--border); }
.mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: #e8f4ec; }
h1, h2, h3, p { margin: 0; }
.header h1 { font-size: 17px; font-weight: 650; letter-spacing: .1px; }
.header p { margin-top: 2px; color: var(--muted); font-size: 12px; }
.device { margin: 10px 12px 0; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: white; border: 1px solid var(--border); border-radius: 12px; }
.device h2 { font-size: 14px; font-weight: 650; }
.device p { margin-top: 2px; font-size: 12px; color: var(--muted); }
.score-wrap { padding: 12px 14px 2px; display: flex; align-items: center; flex-direction: column; }
.ring { width: 104px; height: 104px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.track { stroke: #e6ecf1; }
#arc { stroke: #e8a13a; stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: round; }
.score-number { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-number b { font-size: 31px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-number span { color: var(--muted); font-size: 10px; letter-spacing: .4px; margin-top: 3px; }
.score-message { color: #41505e; font-size: 14px; text-align: center; line-height: 1.4; min-height: 20px; margin-top: 6px; }
.list { margin: 10px 12px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: white; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eef2f5; }
.row:last-child { border-bottom: 0; }
.icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #eef3f7; font-size: 13px; }
.description { flex: 1; min-width: 0; }
.description h3 { font-size: 14px; font-weight: 650; }
.description p { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.status { text-align: right; font-size: 11px; font-weight: 650; color: #74828f; white-space: nowrap; }
.row.bad { background: #fff8f6; }
.row.bad .status { color: #be3929; }
.row.ok .status { color: #16824c; }
.row.running .status { color: #2277c8; }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid #cfe2f2; border-top-color: #2277c8; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.results { margin: 14px 12px 0; animation: appear .3s ease-out; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.issue { background: white; border: 1px solid #f0d9d4; border-left: 4px solid #d33f2e; border-radius: 9px; padding: 8px 11px; margin-bottom: 6px; line-height: 1.4; }
.issue b { font-size: 14px; font-weight: 600; }
.issue p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.promo-strip { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; margin-bottom: 11px; padding: 10px 13px; background: linear-gradient(110deg, #fff8e5, #ffebac); border: 1px dashed #dcae4d; border-radius: 9px; }
.promo-title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.offer-badge { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .5px; color: #785218; }
.discount { display: flex; flex-direction: column; align-items: center; color: #a83a20; }
.discount strong { font-size: 40px; line-height: .94; font-weight: 850; letter-spacing: -2px; }
.discount strong span { font-size: 23px; letter-spacing: -1px; }
.discount-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; margin-top: 4px; }
.cta { position: relative; overflow: hidden; display: block; text-align: center; text-decoration: none; width: 100%; border: 0; border-radius: 10px; background: #dcf783; color: #173521; font-size: 17px; font-weight: 750; padding: 16px 10px; margin-top: 17px; box-shadow: 0 5px 18px #052b3526; transition: background .2s, transform .2s; }
.action-dock { position: fixed; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 430px); padding: 12px 12px max(8px, env(safe-area-inset-bottom)); background: #fffffff5; border-top: 1px solid #dce5e1; box-shadow: 0 -8px 24px #152d2510; }
.app:has(#results:not([hidden])) { padding-bottom: 220px; }
.action-dock .cta { margin-top: 0; background: linear-gradient(180deg, #219e61, #16804b); color: white; box-shadow: 0 5px 16px #1d9d5f33; animation: invite .65s .15s ease-out backwards; }
.action-dock .cta:hover { background: #137846; }
.action-dock .cta::after { content: ''; pointer-events: none; position: absolute; inset: -60% auto -60% -50%; width: 35%; background: linear-gradient(90deg, transparent, #ffffff8c, transparent); transform: skewX(-20deg); animation: shine 1.15s .65s ease-in-out both; }
@keyframes invite { 0% { transform: scale(.98); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes shine { from { left: -50%; } to { left: 145%; } }
.cta:hover { background: #e9ffa8; transform: translateY(-2px); }
.cta:active { transform: translateY(0); }
.auto-continue { padding: 7px 5px 0; display: flex; flex-direction: column; align-items: center; gap: 1px; color: #5e707d; font-size: 13px; }
.auto-continue b { font-variant-numeric: tabular-nums; }
.noscript { font-size: 14px; padding: 14px; }
.fallback { width: auto; margin: 12px; }
@media (max-width: 370px) {
  .header { padding-inline: 12px; gap: 8px; }
  .header p { font-size: 11px; }
  .device { padding-inline: 10px; }
  .device h2 { font-size: 13px; }
  .device p { font-size: 11px; }
  .row { gap: 8px; padding-inline: 10px; }
  .description h3 { font-size: 13px; }
  .description p { font-size: 11px; }
  .status { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
