/*
Theme Name: Win Money Rummy
Theme URI: https://winmoneyrummy.com/
Author: Win Money Rummy
Description: A compact, mobile-first directory theme for rummy app and game information.
Version: 1.3.7
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: win-money-rummy
*/

:root {
  --wmm-bg: #090607;
  --wmm-header: #11080b;
  --wmm-panel: #14090c;
  --wmm-card: #1a0f12;
  --wmm-card-2: #221318;
  --wmm-line: #3a2429;
  --wmm-gold: #d4a017;
  --wmm-gold-2: #efc24a;
  --wmm-get: #128a3e;
  --wmm-get-2: #16a34a;
  --wmm-text: #f3ece8;
  --wmm-muted: #b9a8ad;
  --wmm-red: #b31234;
  --wmm-live: #e11d48;
  --wmm-radius: 4px;
  --wmm-wrap: 1100px;
  --wmm-header-bar: 48px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--wmm-text);
  background:
    radial-gradient(900px 280px at 50% -120px, rgba(179, 18, 52, .28), transparent 70%),
    var(--wmm-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wmm-gold); text-decoration: none; }
a:hover { color: var(--wmm-gold-2); }
button, input { font: inherit; }

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

.screen-reader-text:focus {
  position: fixed !important;
  inset: 12px auto auto 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #111;
  background: var(--wmm-gold);
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.wrap,
.narrow {
  width: min(calc(100% - 20px), var(--wmm-wrap));
  margin-inline: auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.narrow { width: min(calc(100% - 20px), 820px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: var(--wmm-header);
  border-top: 3px solid var(--wmm-gold);
  border-bottom: 1px solid var(--wmm-line);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  min-height: var(--wmm-header-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand:hover { color: #fff; }
.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.menu-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 36px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  color: #fff;
  background: var(--wmm-card);
  border: 1px solid var(--wmm-line);
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span { display: block; width: 16px; height: 2px; background: currentColor; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: none;
  position: absolute;
  top: calc(var(--wmm-header-bar) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 20;
  padding: 6px 12px 10px;
  background: var(--wmm-header);
  border-bottom: 1px solid var(--wmm-line);
}

.primary-nav.is-open { display: block; }
.primary-nav ul { display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: block; padding: 11px 12px; color: #fff; border-radius: 4px; font-weight: 700; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--wmm-gold); background: var(--wmm-card); }

.hot-bar {
  background: #1c0a10;
  border-top: 1px solid #4a1b24;
}

.hot-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  overflow: hidden;
  color: var(--wmm-gold);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.hot-ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 16px), transparent);
}

.hot-track {
  display: flex;
  width: max-content;
  animation: wmm-hot-scroll 36s linear infinite;
  -webkit-animation: wmm-hot-scroll 36s linear infinite;
}

.hot-bar:hover .hot-track,
.hot-bar:focus-within .hot-track { animation-play-state: paused; }

.hot-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--wmm-gold);
  white-space: nowrap;
}

.hot-item strong { color: #fff; font-weight: 800; }
.hot-item span:last-child { color: #f0d78c; }

.hot-item:hover { color: #fff; }

@keyframes wmm-hot-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@-webkit-keyframes wmm-hot-scroll {
  from { -webkit-transform: translateX(0); }
  to { -webkit-transform: translateX(-50%); }
}

.hot-live {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #fff;
  background: var(--wmm-live);
  border-radius: 2px;
  font-size: .75rem;
  letter-spacing: .08em;
}

.board {
  background: var(--wmm-panel);
  border-bottom: 1px solid var(--wmm-line);
  padding: 10px 0 12px;
}

.board-head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.board-more {
  margin: 9px 0 0;
  text-align: right;
  font-size: .76rem;
  font-weight: 800;
}

.board-more a { color: var(--wmm-gold); }
.board-more a:hover { color: #fff; }

.eyebrow {
  display: inline-block;
  margin: 0 0 4px;
  color: var(--wmm-gold);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.board-head h1,
.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.4rem, 6vw, 1.85rem);
  line-height: 1.15;
  color: #fff;
}

.app-search {
  display: flex;
  max-width: 100%;
  background: #070405;
  border: 1px solid var(--wmm-line);
  border-radius: 4px;
  overflow: hidden;
}

.app-search input[type="search"] {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

.app-search input[type="search"]::placeholder { color: #8a757a; }

.app-search button {
  flex: 0 0 auto;
  min-width: 62px;
  padding: 9px 12px;
  color: #06210f;
  background: var(--wmm-get);
  border: 0;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.app-search button:hover { background: var(--wmm-get-2); }

.section { padding-block: 18px; }
.section-split,
.section-tint { background: var(--wmm-panel); border-block: 1px solid var(--wmm-line); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-head h2 { margin: 0; font-size: 1.2rem; color: #fff; }
.section-head p { display: none; margin: 4px 0 0; color: var(--wmm-muted); font-size: .82rem; }
.section-link { flex: 0 0 auto; color: var(--wmm-gold); font-size: .78rem; font-weight: 800; }

.app-grid { display: grid; gap: 8px; }
.app-grid-list { grid-template-columns: 1fr; }

.app-board {
  overflow: hidden;
  background: var(--wmm-card);
  border: 1px solid var(--wmm-line);
  border-radius: var(--wmm-radius);
}

.app-board .app-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--wmm-line);
  border-radius: 0;
}

.app-board .app-card:last-child { border-bottom: 0; }
.app-board .app-card:nth-child(n+4) {
  content-visibility: auto;
  contain-intrinsic-size: auto 108px;
}
.app-board .app-card.is-featured { background: transparent; border-color: var(--wmm-line); }
.app-board .app-card.is-hot { background: #21140c; }
.app-board .empty-state { border: 0; border-radius: 0; }

.app-card {
  min-width: 0;
  background: var(--wmm-card);
  border: 1px solid var(--wmm-line);
  border-radius: var(--wmm-radius);
}

.app-card.is-featured { border-color: #5c4318; background: #21140c; }

.app-card-hit {
  display: grid;
  grid-template-columns: 30px 84px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 100px;
  padding: 8px 8px 8px 4px;
  color: inherit;
  -webkit-tap-highlight-color: rgba(212, 160, 23, .18);
}

.app-card-hit:hover { color: inherit; background: rgba(255, 255, 255, .03); }

.rank-badge {
  width: 28px;
  color: var(--wmm-gold);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.is-hot .rank-badge { color: var(--wmm-gold-2); }
.rank-badge-empty { visibility: hidden; }

.app-logo {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #3a151d;
  border: 1px solid #4a222c;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 900;
}

.app-logo img { width: 100%; height: 100%; object-fit: cover; }
.app-card-copy { min-width: 0; }
.app-card h3 {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-money {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 4px 0 0;
  color: var(--wmm-gold);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.money-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.money-pair div {
  padding: 8px;
  background: #1c120a;
  border: 1px solid #5c4318;
}

.money-pair small {
  color: var(--wmm-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.money-pair strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 1.35rem;
}

.money-checked,
.money-note {
  margin: 6px 0 0;
  color: var(--wmm-muted);
  font-size: .75rem;
}

.app-directory {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--wmm-card);
  border: 1px solid var(--wmm-line);
  border-radius: var(--wmm-radius);
}

.app-directory a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  color: #fff;
  border-bottom: 1px solid var(--wmm-line);
  font-size: 1rem;
  font-weight: 700;
}

.app-directory li:last-child a { border-bottom: 0; }
.app-directory li:nth-child(n+15) {
  content-visibility: auto;
  contain-intrinsic-size: auto 48px;
}
.app-directory a:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.app-directory a > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-directory small {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--wmm-gold);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.card-get {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 36px;
  padding: 6px 10px;
  color: #d7c6b8;
  background: #3a282d;
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.card-get.is-live {
  color: #06210f;
  background: var(--wmm-get);
  box-shadow: 0 0 0 1px rgba(18, 138, 62, .35);
}

.app-card:hover .card-get.is-live { background: var(--wmm-get-2); }

.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game-card {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  color: #fff;
  background: var(--wmm-card);
  border: 1px solid var(--wmm-line);
  border-radius: var(--wmm-radius);
}

.game-card:hover { color: #fff; border-color: var(--wmm-gold); }
.game-card small { color: var(--wmm-gold); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.game-card strong { margin-top: 3px; font-size: .88rem; }
.game-card span { margin-top: 2px; color: var(--wmm-muted); font-size: .72rem; }

.money-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #fff;
  background: #1c120a;
  border: 1px solid #5c4318;
  border-radius: var(--wmm-radius);
}

.money-panel h2 { margin: 0 0 4px; font-size: 1.08rem; }
.money-panel p { margin: 0; color: var(--wmm-muted); font-size: .86rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: var(--wmm-red);
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.button:hover { color: #fff; background: #c41a40; }
.button-gold { color: #1a0a0d; background: var(--wmm-gold); }
.button-gold:hover { color: #1a0a0d; background: var(--wmm-gold-2); }
.button-get { color: #06210f; background: var(--wmm-get); }
.button-get:hover { color: #06210f; background: var(--wmm-get-2); }
.button-outline { color: #fff; background: transparent; border-color: var(--wmm-line); }
.button-outline:hover { color: var(--wmm-gold); border-color: var(--wmm-gold); }
.button-on-dark { color: #fff; background: transparent; border-color: var(--wmm-line); }

.page-hero {
  color: #fff;
  background: var(--wmm-panel);
  border-bottom: 1px solid var(--wmm-line);
}

.page-hero-inner { padding-block: 10px 12px; }
.page-hero p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--wmm-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #8f7b80;
  font-size: .7rem;
}

.breadcrumbs a { color: #d7c6b8; }

.content-card {
  padding: 12px;
  background: var(--wmm-card);
  border: 1px solid var(--wmm-line);
  border-radius: var(--wmm-radius);
}

.content-card h2:first-child,
.content-card h3:first-child { margin-top: 0; color: #fff; font-size: 1.15rem; }
.content-card p:last-child { margin-bottom: 0; }
.editorial-copy { color: var(--wmm-muted); }
.editorial-copy h2, .editorial-copy h3 { color: #fff; }
.editorial-copy p { margin: 0 0 .8em; }

.feature-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.feature-list li {
  position: relative;
  padding: 8px 10px 8px 28px;
  background: var(--wmm-card-2);
  border-radius: 4px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 7px;
  color: var(--wmm-get);
  font-weight: 900;
}

.app-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.app-hero .app-logo { width: 108px; height: 108px; border-radius: 18px; font-size: 1.5rem; }
.app-hero-copy h1 { margin: 0; font-size: clamp(1.45rem, 6.4vw, 2rem); line-height: 1.1; }
.app-hero-copy .eyebrow { margin-bottom: 3px; }
.app-hero-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--wmm-muted);
  font-size: .95rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.offer-note,
.verified-rating {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  color: var(--wmm-gold);
  background: #2a1a0c;
  border: 1px solid #5c4318;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 700;
}

.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.app-hero-actions .button { min-height: 44px; flex: 1 1 140px; }

.why-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.why-list li {
  padding: 8px 10px;
  background: var(--wmm-card-2);
  border-left: 3px solid var(--wmm-gold);
}

.app-faq details { border-bottom: 1px solid var(--wmm-line); padding: 10px 0; }
.app-faq details:last-child { border-bottom: 0; }
.app-faq summary { cursor: pointer; font-weight: 800; color: #fff; font-size: 1.05rem; line-height: 1.35; }
.app-faq summary::-webkit-details-marker { color: var(--wmm-gold); }
.app-faq p { margin: 8px 0 0; color: var(--wmm-muted); }
.install-steps { margin: 0; padding-left: 18px; color: var(--wmm-muted); }
.install-steps li + li { margin-top: 6px; }
.cta-card p { margin: 0 0 10px; color: var(--wmm-muted); }
.cta-card .app-hero-actions .button { flex: 1 1 100%; }
.app-sticky-cta { display: none; }

.single-layout { display: grid; gap: 12px; align-items: start; }
.main-stack, .side-stack { display: grid; gap: 10px; }
.info-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.info-table th, .info-table td { padding: 8px 4px; border-bottom: 1px solid var(--wmm-line); text-align: left; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 42%; color: var(--wmm-muted); font-weight: 700; }
.info-table td { color: #fff; font-weight: 700; }

.player-notes { margin: 0; padding-left: 18px; color: var(--wmm-muted); }
.player-notes li + li { margin-top: 8px; }

.pro-con-grid { display: grid; gap: 8px; }
.pro-con { padding: 12px; border-radius: var(--wmm-radius); }
.pro-con h2, .pro-con h3 { margin: 0 0 8px; font-size: 1.05rem; color: #fff; }
.pro-con ul { padding-left: 18px; margin: 0; color: var(--wmm-muted); }
.pro-con li + li { margin-top: 5px; }
.pros { background: #0e1c14; border: 1px solid #1d5c38; }
.cons { background: #241014; border: 1px solid #6b2432; }

.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.screenshot-grid img { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #070405; border-radius: 6px; }

.related-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.related-links a {
  display: inline-flex;
  padding: 6px 9px;
  color: #fff;
  background: var(--wmm-card-2);
  border: 1px solid var(--wmm-line);
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 800;
}

.notice,
.empty-state {
  padding: 14px;
  color: var(--wmm-muted);
  background: var(--wmm-card);
  border: 1px dashed var(--wmm-line);
  border-radius: var(--wmm-radius);
  text-align: center;
}

.compact-links { display: grid; gap: 8px; }
.compact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  color: #fff;
  background: var(--wmm-card);
  border: 1px solid var(--wmm-line);
  border-radius: var(--wmm-radius);
  font-weight: 800;
}

.compact-link::after { content: "→"; color: var(--wmm-gold); }

.site-footer { margin-top: 4px; color: var(--wmm-muted); background: #070405; border-top: 1px solid var(--wmm-line); }
.footer-inner { display: grid; gap: 12px; padding-block: 16px; }
.footer-brand { color: #fff; font-weight: 800; }
.footer-note { max-width: 620px; margin: 6px 0 0; font-size: .76rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 0; list-style: none; }
.footer-nav a { color: #d7c6b8; font-size: .8rem; font-weight: 700; }
.footer-nav a:hover { color: var(--wmm-gold); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 3px 7px; margin: 8px 0 0; color: #d7c6b8; font-size: .76rem; line-height: 1.55; }
.footer-contact a { color: var(--wmm-gold); overflow-wrap: anywhere; }
.footer-contact a:hover { color: #fff; }
.footer-age-notice {
  display: grid;
  gap: 6px;
  padding-block: 12px;
  border-top: 1px solid var(--wmm-line);
}
.footer-age-notice p { margin: 0; font-size: .7rem; line-height: 1.55; }
.footer-age-notice strong { color: var(--wmm-gold); }
.footer-bottom { padding-block: 10px; border-top: 1px solid var(--wmm-line); font-size: .7rem; }

@media (max-width: 359px) {
  .wrap, .narrow { width: min(calc(100% - 12px), var(--wmm-wrap)); }
  .app-card-hit { grid-template-columns: 26px 76px minmax(0, 1fr) auto; gap: 8px; min-height: 92px; }
  .app-logo { width: 76px; height: 76px; }
  .card-money { font-size: .92rem; }
  .app-hero { grid-template-columns: 92px minmax(0, 1fr); }
  .app-hero .app-logo { width: 92px; height: 92px; }
  .brand { font-size: .95rem; }
  .hot-bar-inner { font-size: .88rem; }
}

@media (min-width: 560px) {
  .wrap, .narrow { width: min(calc(100% - 32px), var(--wmm-wrap)); }
  :root { --wmm-header-bar: 52px; }
  .board { padding: 14px 0 16px; }
  .board-head {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: center;
    gap: 12px;
  }
  .app-search { max-width: none; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pro-con-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-hero-actions .button { flex: 0 0 auto; min-width: 160px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-age-notice { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 820px) {
  .menu-toggle { display: none; }
  .primary-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
  }
  .primary-nav ul { display: flex; align-items: center; gap: 2px; }
  .primary-nav a { padding: 8px 10px; font-size: .84rem; }
  .section { padding-block: 24px; }
  .section-head p { display: block; }
  .app-grid-list { grid-template-columns: 1fr 1fr; }
  .app-board { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .game-card { min-height: 88px; }
  .money-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 16px 18px; }
  .page-hero p { -webkit-line-clamp: 4; }
  .single-layout { grid-template-columns: minmax(0, 1.7fr) minmax(240px, .72fr); gap: 16px; }
  .side-stack { position: sticky; top: 92px; }
  .screenshot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-hero { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; }
  .app-hero .app-logo { width: 128px; height: 128px; }
  .app-hero-desc { -webkit-line-clamp: 3; font-size: 1rem; }
  .card-money { flex-direction: row; flex-wrap: wrap; gap: 2px 12px; font-size: .95rem; }
  .app-directory small { flex-direction: row; align-items: center; gap: 10px; }
  .app-card-hit { min-height: 108px; grid-template-columns: 34px 92px minmax(0, 1fr) auto; }
  .app-logo { width: 92px; height: 92px; }
}

@media (max-width: 819px) {
  .page-hero p { -webkit-line-clamp: 1; }
  .single-rummy_apps .site-footer { padding-bottom: 78px; }
  .app-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    color: #fff;
    background: #10080b;
    border-top: 1px solid var(--wmm-line);
  }
  .app-sticky-cta.is-visible { display: flex; }
  .app-sticky-cta .app-logo { width: 56px; height: 56px; border-radius: 12px; flex: 0 0 auto; }
  .app-sticky-cta-copy { min-width: 0; display: grid; }
  .app-sticky-cta-copy strong { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
  .app-sticky-cta-copy span { color: var(--wmm-muted); font-size: .82rem; }
  .button-sticky { flex: 0 0 auto; min-width: 92px; min-height: 40px; padding: 8px 12px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
