/* Yonorummy Online APK — mobile-first */
:root {
  --bg: #eef2fb;
  --bg-elevated: #f7f9ff;
  --panel: #ffffff;
  --text: #1f2a37;
  --muted: #5f6f85;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --accent-dim: #0068cc;
  --gold: #e6a90a;
  --violet: #6b4dff;
  --border: #d7e2ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 62, 118, 0.1);
  --shadow-hover: 0 16px 40px rgba(28, 62, 118, 0.14);
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 130% 90% at 50% -35%, rgba(10, 132, 255, 0.16), transparent 52%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(107, 77, 255, 0.08), transparent 50%),
    radial-gradient(circle at 0% 40%, rgba(10, 132, 255, 0.05), transparent 42%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 38%, #e9eef8 100%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: min(840px, 100% - 2.5rem);
  margin-inline: auto;
}

.main-content {
  flex: 1;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 24px rgba(30, 64, 112, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}
.brand img {
  border-radius: 10px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 420px) {
  .brand-tagline {
    display: none;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f6ff;
  cursor: pointer;
  position: relative;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}
.nav-toggle::before {
  top: 14px;
  box-shadow: 0 7px 0 var(--text);
}
.nav-toggle::after {
  bottom: 14px;
  opacity: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 881px) {
  .site-nav a {
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(240, 246, 255, 0.9);
    border: 1px solid transparent;
    text-decoration: none;
  }
  .site-nav a:hover {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.12);
    text-decoration: none;
    color: var(--accent-dim);
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero (catalog-style band) */
.hero-block {
  position: relative;
  padding: 2.25rem 0 1.5rem;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(circle, rgba(31, 42, 55, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.banner-inner {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f3f7ff 55%, #eef4ff 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  max-width: 100%;
}

.banner-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.35), rgba(107, 77, 255, 0.2), rgba(230, 169, 10, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.banner-inner h1,
.banner h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.banner-lead {
  max-width: 62ch;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.banner-cta {
  margin-top: 1.35rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-stat {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  box-shadow: 0 4px 14px rgba(30, 64, 112, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-dim);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-stat__lab {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Section rhythm (catalog density) */
.section {
  padding: 2.25rem 0;
}

.section--tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(233, 240, 252, 0.9) 100%);
  border-block: 1px solid rgba(215, 226, 239, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.section-head {
  position: relative;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(220px, 100%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--gold));
}

.section-head--compact {
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
}

.section-head--compact::after {
  width: min(160px, 100%);
  height: 2px;
}

.section-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0.75rem 0 0;
  max-width: 68ch;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.surface {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.surface.raised {
  box-shadow: var(--shadow);
}

.prose.surface {
  padding: 1.15rem 1.25rem;
}

section.wrap.section.surface.raised:not(.prose) {
  padding: 1.15rem 1.25rem 1.35rem;
}

ul.surface.raised {
  padding: 1rem 1rem 1rem 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}

/* App grid — narrower cards inside tighter wrap */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.app-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem 1rem 0.65rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--gold));
  opacity: 0.95;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(10, 132, 255, 0.35);
}

.app-card-link {
  text-decoration: none;
  color: inherit;
}
.app-card-link:hover .app-card-title {
  color: var(--accent);
}

.app-card-img {
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.app-card-title {
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}

.app-card-meta {
  margin-top: 0.75rem;
  flex: 1;
}

.app-card-stars {
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.rating-num {
  color: var(--gold);
  font-weight: 700;
}

.mini-stats {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.45rem;
}
.mini-stats li {
  background: rgba(240, 246, 255, 0.95);
  border: 1px solid rgba(215, 226, 239, 0.85);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
}
.mini-stats strong {
  color: var(--text);
}

.app-card-blurb {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.app-card-cta {
  display: block;
  margin-top: auto;
  padding: 0.65rem 0.25rem 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dim);
  text-align: center;
  text-decoration: none;
  border-top: 1px dashed rgba(215, 226, 239, 0.95);
}

.app-card-cta:hover {
  color: var(--accent);
  text-decoration: none;
}

.related-apps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  width: 100%;
}

.related-apps-item {
  margin: 0;
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.related-apps-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.related-apps-link:hover {
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: var(--shadow);
  color: var(--accent);
}

.related-apps-img {
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.related-apps-name {
  line-height: 1.25;
}

.faq-scope {
  margin: -0.35rem 0 1rem;
}

.about-tagline {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
  max-width: 68ch;
  margin: 0 0 0.75rem;
}

.highlight-panel {
  background: linear-gradient(135deg, #eef4ff 0%, #f7f9ff 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 0.75rem 0 1.25rem;
}

.about-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.prose--tight p {
  margin: 0 0 0.75rem;
}

.prose--tight p:last-child {
  margin-bottom: 0;
}

.h3-like {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.highlight-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.highlight-list li {
  margin-bottom: 0.4rem;
}

.two-col {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-weight: 700;
}

/* Stars */
.stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.star-cell {
  position: relative;
  width: 1.1em;
  height: 1.1em;
  line-height: 1.1;
  font-size: 1.1rem;
}

.star-bg,
.star-fg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  line-height: 1.1;
}

.star-bg {
  color: #3a4558;
}

.star-fg {
  color: var(--gold);
  white-space: nowrap;
}

/* App detail */
.app-hero {
  padding: 1.5rem 0 0.5rem;
}

.app-hero-shell {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #ffffff 0%, #f3f7ff 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(10, 132, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.app-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 720px) {
  .app-hero-grid {
    grid-template-columns: 220px 1fr;
  }
}

.app-hero-visual img {
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-inline: auto;
  box-shadow: 0 10px 28px rgba(30, 64, 112, 0.12);
}

.app-hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.app-rating-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stat-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.stat-list li {
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(30, 64, 112, 0.05);
}
.stat-list span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.cta-note {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 1.75rem;
}

/* FAQ */
.faq-list {
  max-width: 72ch;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.65rem;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  padding: 0.25rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item:hover {
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 6px 18px rgba(30, 64, 112, 0.07);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
}

.faq-answer {
  padding: 0 0 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 0.65rem;
}

.contact-channels {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-form .field {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.contact-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #e8f0ff 0%, #dfe8fb 100%);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2.25rem 0 1rem;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.footer-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-notice p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
