/* Sridevi Games landing, design 1 "tablerail": arched gold-rail cards (the login design 03 look). */
:root {
  --ink: #2A1A12; --muted: #6E5A44; --line: #EADBB5; --soft: #FBF6EA; --head: #FFF6DC; --accent: #7A1F1F;
  --accent-ink: #fff; --red: #C62828; --today: #F5E6C0;
  --amber: #EBC046; --amber-dk: #C98F12; --amber-lt: #F8D86E; --on-amber: #3A0D0D; --gold: #C98F12; --page: #FBF6EA;
  --fb: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; --fm: "Poppins", system-ui, sans-serif; --fw: "Poppins", system-ui, sans-serif;
  --mar: #7A1F1F; --mar-lt: #A33434; --mar-dk: #5C1616; --rail: #D9A32B; --dash: #D9B66A; --chip: #F5E6C0;
  --sh: 0 1px 3px rgba(42,26,18,.08), 0 6px 18px rgba(122,31,31,.10);
}
body { background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--fb); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--mar); }
h1, h2, h3 { font-family: var(--fb); }

/* header band */
.tr-top { background: linear-gradient(90deg, #F8D86E, #EBC046 55%, #D4A22A); color: #3A0D0D; border-bottom: 3px solid var(--rail); }
.tr-top-in { width: min(1140px, 100% - 32px); margin-inline: auto; padding: 14px 0; display: flex; align-items: center; gap: 14px; }
.tr-top img { width: 72px; height: 72px; flex: none; }
.tr-name { font-size: 1.5rem; line-height: 1.15; font-weight: 700; color: #3A0D0D; }
.tr-slogan { font-size: .86rem; font-weight: 500; line-height: 1.35; margin-top: 2px; color: #3A0D0D; }
.tr-upd { font-size: .78rem; font-weight: 600; margin-top: 3px; color: #3A0D0D; opacity: .9; }
.tr-top-sm .tr-top-in { padding: 8px 0; justify-content: space-between; }
.tr-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #3A0D0D; font-weight: 700; font-size: 1.1rem; }
.tr-top-sm img { width: 48px; height: 48px; }

.tr-main { width: min(1140px, 100% - 32px); margin: 22px auto 0; display: grid; gap: 22px; }

/* the rail: gold band + dashed line 10px inside */
.tr-hero, .tr-card { position: relative; background: #FBF6EA; border: 8px solid var(--rail); border-radius: 18px; box-shadow: var(--sh); }
.tr-hero::before, .tr-card::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--dash); border-radius: 8px; pointer-events: none; }
.tr-card-in { position: relative; padding: 28px 22px 24px; }
.tr-card h2, .tr-hero h2 { color: var(--mar); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.tr-sub { color: var(--muted); font-size: .88rem; margin: 2px 0 14px; }

/* hero arch */
.tr-hero { --ar: min(calc((100vw - 32px) / 2), 180px); border-radius: var(--ar) var(--ar) 18px 18px; text-align: center; }
.tr-hero::before { border-radius: calc(var(--ar) - 14px) calc(var(--ar) - 14px) 8px 8px; }
.tr-hero-in { position: relative; padding: 46px 26px 28px; }
.tr-kick { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tr-hero h2 { font-size: 1.6rem; margin-bottom: 14px; }
.tr-latest { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px 12px; box-shadow: 0 1px 3px rgba(42,26,18,.08); }
.tr-latest-n { font-size: .85rem; font-weight: 600; color: var(--muted); }
.tr-big { font-size: clamp(1.7rem, 9vw, 2.6rem); font-weight: 700; color: var(--mar); line-height: 1.2; letter-spacing: .02em; margin: 2px 0; white-space: nowrap; }
/* Empty state (before the first result of the day): words, not a number - let it wrap so phones never get pushed wider (21 Nov). */
.tr-big-w { white-space: normal; font-size: clamp(1.5rem, 7.5vw, 2.3rem); }
.tr-latest-t { font-size: .85rem; color: var(--muted); }
.tr-latest-l, .tr-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; }
.tr-latest-l a, .tr-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: .86rem; font-weight: 600; color: var(--mar); text-decoration: none; background: #FFF6DC; border: 1px solid #E6C77A; border-radius: 12px; }
.tr-latest-l a:hover, .tr-links a:hover { background: var(--chip); }
.tr-next { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.tr-dlrow { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.tr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; background: linear-gradient(90deg, #A33434, #7A1F1F); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; box-shadow: 0 6px 18px rgba(122,31,31,.10); }
.tr-btn:hover { background: var(--mar-lt); }
.tr-btn:active { background: var(--mar-dk); }
.tr-btn-sm { min-height: 44px; padding: 0 16px; font-size: .9rem; }
.tr-btn .ic { width: 1.2em; height: 1.2em; }
.tr-qrbox { display: none; text-align: center; font-size: .75rem; color: var(--muted); }
.tr-qrbox #qr { width: 104px; height: 104px; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: 12px; margin: 0 auto 4px; }
.tr-qrbox #qr svg { width: 100%; height: 100%; display: block; }
.tr-trust { margin-top: 14px; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* result rows */
.tr-rows { display: grid; gap: 10px; }
.tr-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 8px; box-shadow: 0 1px 3px rgba(42,26,18,.08); display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
.tr-row-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tr-row h3 { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.tr-chip { flex: none; font-size: .72rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--mar); }
[data-state="open"] .tr-chip, [data-state="closed"] .tr-chip { background: #E2F1E8; color: #1E6B42; }
[data-state="holiday"] .tr-chip { background: #F1EBDD; color: var(--muted); }
.tr-time { font-size: .8rem; color: var(--muted); grid-column: 1; }
.tr-res { grid-column: 2; grid-row: 2; font-size: 1.3rem; font-weight: 700; color: var(--mar); white-space: nowrap; text-align: right; }
[data-state="waiting"] .tr-res, [data-state="holiday"] .tr-res { color: #6E5A44; }
.tr-links { grid-column: 1 / -1; justify-content: flex-start; margin-top: 2px; }
.tr-links a { background: transparent; border: 0; padding: 0 12px 0 0; min-height: 44px; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }

/* starline / jackpot slots */
.tr-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.tr-slot { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px; text-align: center; }
.tr-slot-t { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }
.tr-slot b { display: block; font-size: 1.05rem; font-weight: 700; color: #6E5A44; white-space: nowrap; }
.tr-slot.has b { color: var(--mar); }
.tr-more { margin-top: 12px; }
.tr-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* chart link list */
.tr-chartlist { display: grid; gap: 4px 28px; }
.tr-chartlist p { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.tr-chartlist span { flex: 1; font-size: .92rem; font-weight: 500; padding: 4px 0; }
.tr-chartlist a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 56px; font-weight: 600; font-size: .86rem; }

/* app card */
.tr-steps { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.tr-steps li { display: flex; gap: 12px; align-items: flex-start; }
.tr-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mar); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.tr-steps strong { display: block; font-size: .95rem; }
.tr-steps span { font-size: .88rem; color: var(--muted); }

/* faq */
.tr-q { border-bottom: 1px solid var(--line); }
.tr-q summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; font-size: .95rem; color: var(--ink); list-style: none; padding: 6px 28px 6px 0; position: relative; }
.tr-q summary::-webkit-details-marker { display: none; }
.tr-q summary::after { content: "+"; position: absolute; right: 4px; font-size: 1.3rem; color: var(--mar); }
.tr-q[open] summary::after { content: "–"; }
.tr-q p { padding: 0 0 14px; font-size: .9rem; color: var(--muted); }

.tr-foot { width: min(1140px, 100% - 32px); margin: 26px auto 0; padding: 18px 0 30px; text-align: center; font-size: .86rem; color: var(--muted); }
.tr-foot a { color: var(--mar); font-weight: 600; display: inline-block; padding: 8px 2px; }
.tr-fine { margin-top: 4px; font-size: .8rem; }

/* shared chart pages */
.tr-chartwrap { width: min(1140px, 100% - 32px); margin: 18px auto 0; }
.tr-chartwrap .wrap { width: 100%; }
.chart-page .page { padding: 0; }
.page h1 { font-weight: 700; color: var(--mar); font-size: clamp(1.5rem, 6vw, 2.2rem); }
.page .lead { color: var(--muted); }
.page .crumbs a { color: var(--mar); }
.today-strip { background: #FBF6EA; border: 6px solid var(--rail); border-radius: 16px; padding: 10px 14px; }
.today-strip b { color: var(--mar); font-family: var(--fb); }
.btn, .btn-sm { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 14px; background: linear-gradient(90deg, #A33434, #7A1F1F); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; }
.tabs a[aria-selected="true"] { color: var(--mar); border-bottom-color: var(--rail); }
.jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mar); }
.tbl-wrap { border: 6px solid var(--rail); border-radius: 16px; background: #fff; max-height: 70vh; }
table.chart tbody th { background: #FBF6EA; }
table.chart thead th { background: #FFF6DC; color: var(--mar); font-family: var(--fb); }
table.chart td.today { box-shadow: inset 0 0 0 2px var(--rail); }
.chip { border-color: #E6C77A; color: var(--mar); min-height: 44px; display: inline-flex; align-items: center; font-family: var(--fb); }
.chip:hover { background: var(--chip); border-color: var(--rail); }
.page .sec h2 { font-family: var(--fb); font-weight: 700; color: var(--mar); font-size: 1.25rem; }
@media (max-width: 640px) {
  .tbl-wrap, .tbl-wrap.fit { border-width: 5px; margin-inline: 0; border-radius: 14px; }
  .tr-chartwrap .tbl-wrap.fit { margin-inline: 0; }
}

@media (min-width: 700px) {
  .tr-rows { grid-template-columns: 1fr 1fr; }
  .tr-chartlist { grid-template-columns: 1fr 1fr; }
  .tr-qrbox { display: block; }
}
@media (min-width: 1000px) {
  .tr-name { font-size: 1.9rem; }
  .tr-slogan { font-size: 1rem; }
  .tr-hero { --ar: 180px; max-width: 720px; width: 100%; margin-inline: auto; }
  .tr-card-in { padding: 34px 34px 30px; }
  .tr-chartlist { grid-template-columns: 1fr 1fr 1fr; }
  .tr-slots { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
}
@media (max-width: 380px) {
  .tr-top img { width: 60px; height: 60px; }
  .tr-name { font-size: 1.3rem; }
  .tr-card-in { padding: 24px 14px 20px; }
  .tr-hero-in { padding: 40px 14px 24px; }
  .tr-res { font-size: 1.15rem; }
}
