/* Rama777 public website: landing page and charts. Light by default, dark via
   <html data-theme="dark"> (site.js toggles it, the head script restores it). */

:root {
  --bg: #f7f4f0;
  --bg-2: #fffaf5;
  --card: #ffffff;
  --text: #1c1917;
  --muted: #6b625b;
  --line: #ece4da;
  --brand: #f26a1b;
  --brand-2: #ff9a3c;
  --brand-ink: #c2500f;
  --brand-soft: #fff1e6;
  --green: #15803d;
  --red: #dc2626;
  --amber: #b45309;
  --shadow: 0 6px 20px rgba(80, 40, 10, 0.07);
  --radius: 16px;
  --display: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0e131b;
  --bg-2: #121925;
  --card: #161e2b;
  --text: #eef1f6;
  --muted: #9aa5b5;
  --line: #253044;
  --brand: #f47a2d;
  --brand-2: #ffa451;
  --brand-ink: #ffa451;
  --brand-soft: #2a1d12;
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------------ brand */
.brand { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); }
.brand-box {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2em;
  padding: 5px 6px 5px 10px;
  border-radius: 5px;
  line-height: 1;
}
.brand-777 {
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.06em;
  padding-bottom: 2px;
  border-bottom: 3px solid var(--brand);
}
.brand-sm .brand-box { font-size: 10px; padding: 3px 4px 3px 6px; border-radius: 3px; }
.brand-sm .brand-777 { font-size: 13px; border-bottom-width: 2px; }

/* ----------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.nav a:hover { color: var(--text); background: var(--brand-soft); }
.nav .nav-download { display: none; }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.i-sun { display: none; }
[data-theme='dark'] .i-sun { display: block; }
[data-theme='dark'] .i-moon { display: none; }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font: 700 15px/1 var(--display);
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 35%, transparent);
}
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-lg { padding: 16px 28px; font-size: 17px; text-transform: uppercase; }

/* ------------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(800px 380px at 85% 30%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 32px; padding-top: 40px; }
.hero-text { padding-bottom: 48px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font: 700 14px/1 var(--display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { width: 36px; height: 1px; background: var(--muted); }
.hero-title {
  font-weight: 900;
  font-style: italic;
  font-size: clamp(60px, 10vw, 118px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, var(--brand-2) 10%, var(--brand) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 10px;
}
.hero-tag { margin: 6px 0 0; font: 800 italic clamp(28px, 4vw, 40px)/1.15 var(--display); }
.hero-tag em { color: var(--brand); }
.hero-hi { margin: 8px 0 26px; font-size: 18px; font-weight: 600; color: var(--brand-ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }

/* the hero photo stands on the hero's bottom edge */
.hero-art { align-self: end; }
.hero-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 36px rgba(80, 40, 10, 0.16));
}

/* --------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 24px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature b { font: 700 17px/1.3 var(--display); margin-top: 10px; }
.feature span:last-child { color: var(--muted); font-size: 13.5px; }
.f-icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 12px; font: 800 16px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-btn.call { background: color-mix(in srgb, var(--red) 12%, var(--card)); color: var(--red); }
.contact-btn.wa { background: color-mix(in srgb, #25d366 16%, var(--card)); color: #16a34a; }
[data-theme='dark'] .contact-btn.wa { color: #4ade80; }
.contact-btn:hover { filter: brightness(0.97); }

/* -------------------------------------------------------- section headers */
.section { margin-top: 56px; }
.pill-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font: 800 19px/1 var(--display);
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent);
}
.section-title { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: clamp(26px, 4vw, 40px); font-weight: 800; text-align: center; margin-bottom: 22px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 25%, transparent); flex: none; }
.sub-title { text-align: center; font-size: 20px; margin: 30px 0 14px; }

/* ---------------------------------------------------------------- winners */
.winners { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.winners-track { display: flex; gap: 16px; width: max-content; padding: 4px 0 8px; animation: run 45s linear infinite; }
.winners:hover .winners-track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
.winner { min-width: 160px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.w-rank { display: flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; font-size: 13px; }
.w-name { display: block; font-weight: 600; margin: 4px 0 0; }
.w-game { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; white-space: nowrap; }
.w-amt { color: var(--brand); font: 800 18px/1.1 var(--display); }

/* ------------------------------------------------------------------ rates */
.rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.rate b { font: 800 16px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.r-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 22px; font-weight: 700; }
.r-val { padding: 6px 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.rates-sm .rate { padding: 16px 10px; }

/* ------------------------------------------------------------- time table */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.timetable { max-width: 880px; margin: 0 auto; padding: 22px 22px 12px; }
.tt-title { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--brand); font: 900 italic 26px/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.tt-title span { color: var(--text); }
.timetable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.timetable th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.timetable td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
.timetable tr:last-child td { border-bottom: 0; }
.timetable .c-open, .timetable .c-close { text-align: center; border-left: 1px solid var(--line); }
td.c-open, th.c-open { color: var(--green); }
td.c-close, th.c-close { color: var(--red); }

/* ---------------------------------------------------------- market cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 14px; display: flex; flex-direction: column; }
.mcard-top { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); flex: 1; }
.mcard h3 { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.mresult { margin: 4px 0 6px; font: 800 22px/1.1 var(--display); letter-spacing: 0.08em; }
.mtime { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12.5px; }
.mtime svg { width: 14px; height: 14px; }
.mcard-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.mstatus { font-size: 12.5px; font-weight: 700; }
.tone-open { color: var(--green); }
.tone-closed { color: var(--red); }
.tone-soon { color: var(--amber); }
.play { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font: 700 14px/1 var(--display); box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.play-off { background: #9ca3af; box-shadow: none; }
[data-theme='dark'] .play-off { background: #4b5563; }
.mcard-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; }
.chip-btn { padding: 8px 16px; border-radius: 999px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font: 700 13px/1 var(--display); }
.chip-btn:hover, .play:hover { filter: brightness(1.05); }
.empty { color: var(--muted); text-align: center; }

/* -------------------------------------------------------------- seo + faq */
.seo { padding: 22px 24px; }
.seo h2 { color: var(--brand); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin-bottom: 8px; }
.seo p { margin: 0; color: var(--muted); }
.faq-title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; margin: 36px 0 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 900px; }

/* ---------------------------------------------------------------- records */
.records-title { text-align: center; font-size: 26px; margin-bottom: 20px; }
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.rec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rec h3 { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; text-align: center; padding: 13px; font-size: 16px; }
.rec a { display: block; text-align: center; padding: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; text-transform: uppercase; }
.rec a:hover { background: var(--brand-soft); color: var(--brand-ink); }

/* ----------------------------------------------------------------- charts */
.chart-page { padding-top: 26px; padding-bottom: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.crumbs a { color: var(--brand-ink); font-weight: 600; }
.chart-title { font: 900 italic clamp(28px, 5vw, 44px)/1.1 var(--display); color: var(--brand); }
.chart-sub { color: var(--muted); margin: 8px 0 16px; }
.chart-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chart-bottom { margin-top: 18px; }
.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chart { width: 100%; border-collapse: collapse; text-align: center; font-weight: 700; }
.chart th { position: sticky; top: 0; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; padding: 10px 6px; font: 800 14px/1 var(--display); letter-spacing: 0.04em; }
.chart td { border: 1px solid var(--line); padding: 8px 6px; }
.chart .wk { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.3; white-space: nowrap; }
.chart .j { font: 800 22px/1 var(--display); letter-spacing: 0.06em; }
.chart .red, .chart .pj.red { color: var(--red); }
.pc { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pp { font-size: 12.5px; line-height: 1.15; color: var(--muted); font-weight: 700; }
.pj { font: 800 22px/1 var(--display); letter-spacing: 0.04em; }
.chart-star td { white-space: nowrap; }
.sp { display: block; font-size: 13px; color: var(--muted); }
.sd { font: 800 20px/1.1 var(--display); }
.notfound { min-height: 40vh; }

/* ----------------------------------------------------------------- footer */
.foot { margin-top: 64px; background: var(--card); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.foot-brand p { color: var(--muted); margin: 14px 0 16px; max-width: 320px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 { font-size: 16px; margin-bottom: 4px; }
.foot-col a { color: var(--muted); font-size: 14px; }
.foot-col a:hover { color: var(--brand-ink); }
.foot-age { display: flex; gap: 12px; align-items: flex-start; }
.foot-age p { margin: 0; color: var(--muted); font-size: 14px; }
.age { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; font-weight: 800; }
.foot-bottom { border-top: 1px solid var(--line); padding: 16px 0 22px; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .nav .nav-download { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 12px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
  .top-actions { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: 36px; gap: 8px; }
  .hero-text { padding-bottom: 8px; }
  .hero-img { max-width: 290px; }
  .eyebrow, .hero-cta { justify-content: center; }
  .features, .rates { grid-template-columns: repeat(2, 1fr); }
  .records { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .cards { grid-template-columns: 1fr; }
  .features, .rates { gap: 12px; }
  .feature { padding: 18px 10px; }
  .feature b { font-size: 15px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
  .contact-btn { font-size: 14px; padding: 13px 8px; }
  .rate b { font-size: 14px; }
  .r-val { font-size: 12.5px; padding: 6px 10px; }
  .records { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .btn-lg { padding: 15px 22px; font-size: 16px; width: 100%; }
  .section { margin-top: 44px; }
  .pill { font-size: 17px; padding: 11px 20px; }
  .timetable { padding: 16px 10px 6px; }
  .timetable td, .timetable th { padding: 9px 5px; font-size: 13px; }
  .chart .j, .pj { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .winners { overflow-x: auto; mask-image: none; }
  .winners-track { animation: none; }
  .winner[aria-hidden='true'] { display: none; }
  .btn:hover { transform: none; }
}
