/*
Theme Name: RummyNuvia
Theme URI: https://example.com/rummynuvia
Author: RummyNuvia Studio
Description: A mobile-first Indian rummy game download hub.
Version: 1.0.0
Text Domain: rummynuvia
*/

:root {
  --ink: #031b26;
  --ink-2: #062832;
  --panel: #073440;
  --panel-2: #0a3e49;
  --green: #00c982;
  --green-2: #0be196;
  --gold: #ffc12c;
  --gold-2: #ffe078;
  --muted: #a6c0c7;
  --line: rgba(172, 232, 222, .12);
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #f7fbfa;
  background: #02141e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell { position: relative; min-height: 100vh; background: radial-gradient(circle at 50% -10%, #0c4c4f 0, #031d29 30%, #02141e 72%); }
.site-main { width: min(100%, 520px); margin: 0 auto; padding-bottom: 94px; overflow: hidden; }
.site-header {
  position: sticky; top: 0; z-index: 20; height: 70px; display: flex; align-items: center; gap: 14px;
  padding: 0 16px; background: rgba(3, 24, 32, .9); border-bottom: 1px solid rgba(193, 255, 238, .08); backdrop-filter: blur(16px);
}
.brand { font-size: 15px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; }
.brand span { color: var(--gold); }
.menu-toggle { border: 0; background: transparent; color: #f4f8f5; padding: 5px; display: grid; gap: 4px; }
.menu-toggle i { width: 17px; height: 2px; display: block; background: currentColor; border-radius: 2px; }
.header-download { margin-left: auto; padding: 10px 15px; border-radius: 999px; background: var(--green); color: #00291d; font-size: 11px; font-weight: 800; }

.eyebrow { color: var(--green-2); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero { position: relative; min-height: 570px; padding: 44px 16px 26px; isolation: isolate; }
.hero:before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(1, 20, 28, .45), #02141e 88%), url('assets/rummy-sprite.png') center top 26px / 730px auto no-repeat; opacity: .85; }
.hero:after { content: ""; position: absolute; left: -16%; right: -16%; bottom: 0; height: 210px; z-index: -1; background: radial-gradient(ellipse at center bottom, rgba(14, 149, 99, .25), transparent 68%); }
.hero-copy { max-width: 350px; margin-top: 215px; }
.hero h1 { margin: 11px 0 10px; color: var(--gold-2); font-size: clamp(33px, 10vw, 48px); line-height: 1.02; letter-spacing: -1.7px; }
.hero h1 em { color: white; font-style: normal; }
.hero p { margin: 0; color: #d1e2df; font-size: 15px; line-height: 1.55; }
.hero .hero-meta { margin-top: 12px; color: #c0d2d0; font-size: 11px; }
.hero-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 800; cursor: pointer; }
.btn-gold { color: #2f2000; background: linear-gradient(180deg, #ffd44e, #f9a900); box-shadow: 0 9px 22px rgba(255, 182, 20, .2); }
.btn-green { color: #001d16; background: linear-gradient(180deg, #18e39a, #00a96d); box-shadow: 0 9px 22px rgba(0, 212, 139, .18); }
.btn-ghost { color: var(--green-2); background: rgba(0, 193, 133, .1); border: 1px solid rgba(0, 209, 146, .27); }

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 16px 27px; padding: 13px 5px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 43, 52, .78); }
.trust-item { display: grid; justify-items: center; gap: 6px; color: #adc7c7; font-size: 9px; text-align: center; }
.trust-icon { display: grid; place-items: center; width: 27px; height: 27px; color: var(--gold); font-size: 20px; }
.trust-item:nth-child(2) .trust-icon { color: #47d98d; }
.trust-item:nth-child(3) .trust-icon { color: #ffd12f; }
.trust-item:nth-child(4) .trust-icon { color: #ffc84c; }

.section { padding: 0 16px; margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.view-all { color: var(--green-2); font-size: 11px; font-weight: 700; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.game-card { min-width: 0; padding: 7px 6px 11px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, rgba(8, 57, 68, .95), rgba(4, 34, 45, .9)); text-align: center; }
.game-art { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; font-size: 32px; background: radial-gradient(circle at 38% 25%, #8a402e, #32171b 65%); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.catalog-empty { grid-column: 1 / -1; margin: 0; padding: 18px; color: var(--muted); border: 1px dashed rgba(172, 232, 222, .2); border-radius: 14px; font-size: 12px; line-height: 1.5; }
.game-card:nth-child(2) .game-art { background: radial-gradient(circle at 38% 25%, #3670a3, #13255e 72%); }
.game-card:nth-child(3) .game-art { background: radial-gradient(circle at 38% 25%, #2b8261, #092e31 72%); }
.game-card:nth-child(4) .game-art { background: radial-gradient(circle at 38% 25%, #7146a4, #261a4c 72%); }
.game-card h3 { margin: 8px 0 4px; font-size: 11px; line-height: 1.15; }
.rating { color: #e4b951; font-size: 9px; white-space: nowrap; }
.rating small { color: #94abae; font-size: 8px; }

.feature-list { display: grid; gap: 10px; }
.feature-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(5, 42, 53, .8); }
.feature-card .game-art { width: 56px; height: 56px; font-size: 32px; }
.feature-card .game-art img { object-fit: cover; }
.feature-card h3 { margin: 0 0 4px; font-size: 13px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-card .btn { min-height: 34px; padding: 0 13px; font-size: 10px; }

.promo { position: relative; overflow: hidden; min-height: 150px; padding: 22px; border: 1px solid rgba(255, 203, 72, .22); border-radius: 17px; background: linear-gradient(112deg, #744316, #3c2b0a 53%, #104b41); }
.promo:after { content: "🎁"; position: absolute; right: 17px; top: 28px; font-size: 76px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .32)); }
.promo h2 { position: relative; z-index: 1; max-width: 220px; margin: 0 0 8px; font-size: 20px; color: #fff0b2; }
.promo p { position: relative; z-index: 1; max-width: 210px; margin: 0 0 15px; color: #ffefc2; font-size: 11px; }
.promo .btn { position: relative; z-index: 2; min-height: 35px; padding: 0 14px; font-size: 10px; }

.offers { display: grid; gap: 8px; }
.offer { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 12px; background: rgba(6, 45, 55, .8); border: 1px solid rgba(136, 229, 207, .08); }
.offer-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #5b2419; font-size: 24px; }
.offer:nth-child(2) .offer-icon { background: #6e301d; }
.offer:nth-child(3) .offer-icon { background: #56371a; }
.offer-copy { flex: 1; }
.offer h3 { margin: 0 0 3px; font-size: 12px; }
.offer p { margin: 0; color: var(--muted); font-size: 10px; }
.offer-arrow { color: #d9eeee; font-size: 18px; }

.gameplay { margin-top: 30px; padding: 24px 16px; background: linear-gradient(180deg, rgba(3, 49, 58, .8), rgba(2, 28, 38, .7)); }
.gameplay h2 { margin: 0 0 5px; font-size: 21px; }
.gameplay p { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.gameplay-image { height: 155px; border-radius: 15px; background: url('assets/rummy-sprite.png') 38% 7% / 610px auto no-repeat, linear-gradient(135deg, #4f3219, #087362); border: 1px solid rgba(255, 194, 45, .2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.stat { padding: 13px 4px; border-radius: 11px; text-align: center; background: rgba(5, 49, 60, .85); }
.stat strong { display: block; color: #f6fcf6; font-size: 17px; }
.stat span { color: #8eabae; font-size: 9px; }

.support { text-align: center; padding: 38px 22px 30px; }
.support-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #073e49; font-size: 29px; }
.support h2 { margin: 0 0 6px; font-size: 20px; }
.support p { margin: 0 auto 17px; color: var(--muted); font-size: 11px; }
.support .btn { min-width: 230px; }

.app-detail { padding-top: 28px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--green-2); font-size: 12px; font-weight: 700; }
.app-detail-head { display: flex; align-items: center; gap: 14px; }
.app-detail-logo { width: 78px; height: 78px; flex: 0 0 78px; }
.app-detail-head h1 { margin: 5px 0 5px; font-size: 25px; line-height: 1.05; }
.app-detail-actions { display: flex; gap: 9px; flex-wrap: wrap; margin: 21px 0 24px; }
.app-detail-actions .btn { min-height: 42px; font-size: 11px; }
.app-detail-content { color: #d3e3e1; font-size: 13px; line-height: 1.7; }
.app-detail-content h2, .app-detail-content h3 { color: #fff; margin-top: 24px; }
.app-detail-content a { color: var(--green-2); }
.app-detail-content table { width: 100%; border-collapse: collapse; }
.app-detail-content td, .app-detail-content th { padding: 9px 7px; border-bottom: 1px solid var(--line); text-align: left; }
.app-disclaimer { margin: 24px 0 0; padding: 13px; border-left: 3px solid var(--gold); color: #b9caca; background: rgba(255, 193, 44, .06); font-size: 11px; line-height: 1.5; }
.page-numbers { display: flex; gap: 7px; margin-top: 19px; padding: 0; list-style: none; }
.page-numbers a, .page-numbers span { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; color: #b6ced0; background: var(--panel); font-size: 11px; }
.page-numbers .current { color: #00271c; background: var(--green); }

.site-footer { padding: 0 16px 25px; color: #8ca9ae; }
.footer-links { display: grid; gap: 0; border-top: 1px solid var(--line); }
.footer-links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(172, 232, 222, .08); font-size: 12px; }
.socials { display: flex; justify-content: center; gap: 13px; padding: 25px 0 18px; }
.socials a { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #073c48; color: #f1faf8; font-size: 14px; font-weight: 800; }
.responsible { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 10px; text-align: left; }
.responsible-badge { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #c5e2dd; border-radius: 50%; color: #e9f7f1; font-size: 13px; font-weight: 800; }

.bottom-nav { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 7px 9px; background: rgba(3, 30, 40, .96); border-top: 1px solid rgba(164, 244, 222, .13); box-shadow: 0 -12px 30px rgba(0, 0, 0, .17); backdrop-filter: blur(16px); }
.bottom-nav a { display: grid; justify-items: center; gap: 4px; color: #879fa6; font-size: 10px; font-weight: 600; }
.bottom-nav a span { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: .8; }
.bottom-nav a.active { color: var(--green-2); }
.bottom-nav a.active span { filter: none; opacity: 1; }

@media (min-width: 760px) {
  body { background: #001018; }
  .site-shell { width: 520px; margin: 20px auto; border: 1px solid rgba(163, 240, 218, .1); border-radius: 24px; box-shadow: 0 22px 80px rgba(0,0,0,.36); overflow: hidden; }
  .site-header { position: relative; }
  .bottom-nav { position: absolute; transform: none; left: auto; width: 520px; }
}
