/* === 1win-app.mobi — кастомные стили === */
:root {
  --bg: #141415;
  --panel: #1D1E20;
  --panel-2: #2F3035;
  --btn-primary: #01B24B;
  --btn-primary-hover: #019a40;
  --btn-secondary: #272829;
  --accent: #0175FF;
  --accent-2: #00464B;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* плавные ссылки */
a { transition: color .2s ease, background-color .2s ease, transform .15s ease; }
a:active { transform: scale(.98); }

/* кастомные кнопки sticky-эффект */
header { backdrop-filter: blur(8px); }

/* selection */
::selection { background: rgba(1, 178, 75, 0.35); color: #fff; }

/* details/summary */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { color: #fff; }

/* скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #4a4b4d; }

/* мелкая адаптация для xs (<400px) */
@media (max-width: 399px) {
  .xs\:inline { display: none; }
  h1 { font-size: 1.6rem !important; line-height: 1.2 !important; }
}
@media (min-width: 400px) {
  .xs\:inline { display: inline; }
}

/* hero glow */
#download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 70% 0%, rgba(1, 117, 255, .18), transparent 60%),
              radial-gradient(50% 50% at 0% 100%, rgba(1, 178, 75, .10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
#download > * { position: relative; z-index: 1; }

/* убираем outline для не-keyboard */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* мобильные таблицы */
@media (max-width: 640px) {
  table { font-size: .85rem; }
  table td { padding: 10px 12px !important; }
}

/* плавное появление */
section { animation: fadein .6s ease both; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* картинки скриншотов с лёгкой тенью */
img[loading="lazy"], img[loading="eager"] {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

/* code тег */
code {
  background: #0d0d0e;
  color: #0175FF;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono", "Liberation Mono", monospace;
  font-size: .9em;
}
