:root {
  --ink: #050505;
  --ink-soft: #0d0d0d;
  --panel: #111111;
  --panel-2: #071523;
  --red: #087cff;
  --red-dark: #003f8f;
  --gold: #00d7ff;
  --gold-2: #006da6;
  --cream: #e9fcff;
  --muted: #9db8c9;
  --line: rgba(0, 215, 255, .28);
  --green: #31e66f;
  --shadow: 0 22px 55px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  padding-bottom: 72px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(8, 124, 255, .16), transparent 32%),
    radial-gradient(circle at 90% 30%, rgba(0, 215, 255, .07), transparent 26%),
    var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.container {
  width: min(1180px, calc(100% - 30px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #00101c;
  font-weight: 900;
}

.skip-link:focus { top: 14px; }

.top-line {
  border-top: 4px solid var(--red);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: #090909;
}

.top-line-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.top-line strong { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, .94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-logo {
  width: 230px;
  height: 68px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #e6f8ff;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(0, 215, 255, .12), rgba(8, 124, 255, .08));
  color: var(--gold);
}

.site-nav .nav-cta {
  border-color: rgba(8, 124, 255, .7);
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff;
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .48), rgba(0, 0, 0, .92)),
    url("pattern-mekanik4d.png") center / cover;
  opacity: .82;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 50%, rgba(8, 124, 255, .23), transparent 24%),
    linear-gradient(180deg, transparent 65%, var(--ink));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: 45px;
  padding: 62px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, .58);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.hero h1,
.market-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.hero h1 span,
.market-hero h1 span {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(0, 215, 255, .18);
}

.hero-copy > p,
.market-hero p {
  max-width: 720px;
  margin: 0;
  color: #c2dbe8;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .03em;
}

.btn-primary {
  border-color: #20dfff;
  background: linear-gradient(135deg, #00438f, #087cff);
  box-shadow: 0 12px 25px rgba(8, 124, 255, .24);
  color: #fff;
}

.btn-gold {
  border-color: var(--gold);
  background: linear-gradient(135deg, #007fbd, #00d7ff);
  color: #00101c;
}

.hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(0, 215, 255, .35);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 124, 255, .18), rgba(0, 0, 0, .3) 64%, transparent 65%);
  box-shadow: inset 0 0 45px rgba(0, 215, 255, .08), 0 0 80px rgba(8, 124, 255, .13);
}

.hero-mark {
  position: relative;
  z-index: 2;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 24px 35px rgba(0, 0, 0, .7));
}

.live-clock {
  position: absolute;
  right: 0;
  bottom: 14px;
  z-index: 3;
  min-width: 205px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 7, 7, .9);
  box-shadow: var(--shadow);
  text-align: center;
}

.live-clock small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.live-clock strong {
  display: block;
  color: var(--gold);
  font-size: 22px;
  letter-spacing: .05em;
}

.stat-strip {
  position: relative;
  z-index: 4;
  margin-top: -37px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(10, 10, 10, .96);
  box-shadow: var(--shadow);
}

.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, .07);
  text-align: center;
}

.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; color: var(--gold); font-size: 24px; }
.stat-item span { color: var(--muted); font-size: 12px; font-weight: 800; }

.section {
  padding: 74px 0;
}

.section-alt {
  border-block: 1px solid rgba(255, 255, 255, .05);
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(0, 215, 255, .025));
}

.section-head {
  max-width: 790px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head .kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 7px 0 10px;
  font-size: clamp(28px, 4.8vw, 46px);
  line-height: 1.1;
}

.section-head p { margin: 0; color: var(--muted); }

.ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0b;
}

.ticker-label {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.ticker-window { flex: 1; overflow: hidden; }
.ticker-track { width: max-content; padding: 10px 18px; color: var(--gold); font-size: 12px; font-weight: 850; }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.schedule-item {
  position: relative;
  min-height: 76px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: linear-gradient(145deg, #101010, #071523);
}

.schedule-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-2);
}

.schedule-time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.schedule-name {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-live {
  display: none;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
}

.schedule-item.is-live {
  border-color: rgba(49, 230, 111, .55);
  box-shadow: 0 0 24px rgba(49, 230, 111, .09);
}

.schedule-item.is-live .schedule-live { display: inline-flex; }
.schedule-item.is-live .schedule-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
  animation: livePulse .8s infinite alternate;
}

@keyframes livePulse { to { opacity: .4; transform: scale(.75); } }

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: #111;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--gold);
  background: #06233b;
  color: var(--gold);
}

.market-search {
  width: min(280px, 100%);
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  outline: none;
  background: #0c0c0c;
  color: #fff;
}

.market-search:focus { border-color: var(--gold); }

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 215, 255, .24);
  border-radius: 17px;
  background: linear-gradient(145deg, #0c0c0c, #071523);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .23);
}

.result-card::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -45px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(8, 124, 255, .1);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.card-head h3 { margin: 0; color: var(--gold); font-size: 14px; }
.card-head time { color: var(--muted); font-size: 11px; font-weight: 850; }

.card-result {
  padding: 22px 16px 18px;
  text-align: center;
}

.card-date { color: var(--muted); font-size: 11px; font-weight: 800; }
.card-number {
  display: block;
  margin: 3px 0 5px;
  color: #fff;
  font-size: clamp(31px, 4vw, 43px);
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: .14em;
  text-shadow: 0 0 22px rgba(0, 215, 255, .25);
}

.history-list { border-top: 1px solid rgba(255, 255, 255, .07); }
.history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.history-row:last-child { border-bottom: 0; }
.history-row strong { color: var(--gold); letter-spacing: .12em; }

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0c0c;
  box-shadow: var(--shadow);
}

.table-scroll { overflow-x: auto; }
.result-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.result-table th,
.result-table td {
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  text-align: center;
  font-size: 12px;
}

.result-table th {
  background: linear-gradient(180deg, #0051ad, #002b63);
  color: var(--gold);
  font-weight: 950;
}

.result-table tbody tr:nth-child(even) { background: rgba(0, 215, 255, .025); }
.result-table td:last-child { color: var(--gold); font-weight: 950; letter-spacing: .1em; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card,
.content-copy,
.legal-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: linear-gradient(145deg, #0d0d0d, #071521);
}

.content-card { padding: 22px; }
.content-card strong { display: block; margin-bottom: 7px; color: var(--gold); font-size: 16px; }
.content-card p,
.content-copy p,
.legal-card p,
.legal-card li { color: var(--muted); }

.content-copy,
.legal-card { padding: clamp(22px, 4vw, 42px); }
.content-copy h2,
.content-copy h3,
.legal-card h2,
.legal-card h3 { color: var(--gold); }

.faq-list { max-width: 900px; margin: 0 auto; }
.faq-list details {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: #0d0d0d;
}

.faq-list summary {
  padding: 16px 18px;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
}

.faq-answer { padding: 0 18px 18px; color: var(--muted); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 22px;
  border: 1px solid rgba(0, 215, 255, .2);
  border-radius: 16px;
  background: linear-gradient(145deg, #0d0d0d, #071523);
}

.review-stars {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 17px;
  letter-spacing: .12em;
}

.review-card h3 { margin: 0 0 8px; color: #fff; font-size: 16px; }
.review-card p { margin: 0; color: var(--muted); font-size: 13px; }
.review-card small { display: block; margin-top: 14px; color: var(--gold); font-weight: 850; }

.market-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .58)),
    url("pattern-mekanik4d.png") center / cover;
  opacity: .9;
}

.market-hero-inner {
  position: relative;
  min-height: 330px;
  display: grid;
  align-content: center;
  padding: 55px 0;
}

.market-hero h1 { max-width: 920px; font-size: clamp(34px, 5.5vw, 64px); }
.breadcrumb { margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 850; }
.breadcrumb a { color: var(--gold); }

.market-view { min-height: 220px; }
.loading-panel {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.draw-panel {
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, #080808, #071523);
  box-shadow: var(--shadow);
}

.draw-banner {
  padding: 20px;
  border-bottom: 2px solid var(--gold);
  background: linear-gradient(95deg, #00265c, #087cff 45%, #008bdc 100%);
  text-align: center;
}

.draw-banner strong { display: block; font-size: clamp(27px, 5vw, 42px); line-height: 1; }
.draw-banner span { color: #d8fbff; font-size: 12px; font-weight: 950; letter-spacing: .16em; }
.draw-date { padding: 13px; color: var(--gold); font-size: 13px; font-weight: 950; text-align: center; }

.prize-stage {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(#fff, #e8e8e8);
  color: #00101c;
}

.main-prize { padding: 18px 12px 8px; text-align: center; }
.main-prize small { display: block; color: #0051ad; font-weight: 950; }
.main-prize strong { display: block; font-size: clamp(42px, 7vw, 62px); line-height: 1.08; letter-spacing: .12em; }
.prize-row { display: grid; grid-template-columns: .8fr 1.2fr; border-top: 1px solid #5a7e98; }
.prize-row span { padding: 12px; font-weight: 950; text-align: center; }
.prize-row span:first-child { background: #003f8f; color: #fff; }
.prize-row span:last-child { font-size: 20px; letter-spacing: .12em; }

.hk-draw-panel {
  width: min(820px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.hk-draw-panel .draw-banner { padding: 15px; }
.hk-draw-panel .draw-banner strong { font-size: clamp(25px, 4vw, 34px); }
.hk-draw-panel .prize-stage { width: min(650px, calc(100% - 24px)); margin-bottom: 16px; }
.hk-draw-panel .main-prize { padding: 12px 10px 6px; }
.hk-draw-panel .main-prize strong { font-size: clamp(36px, 6vw, 50px); }
.hk-draw-panel .prize-row span { padding: 9px; }
.hk-draw-panel .prize-row span:last-child { font-size: 17px; }

.market-two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.section-headline {
  margin: 38px 0 16px;
  color: var(--gold);
  font-size: clamp(25px, 4vw, 36px);
  text-align: center;
}

.draw-panel > .table-shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mini-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0d0d0d;
}

.mini-title {
  padding: 12px;
  background: linear-gradient(90deg, #650407, #b50a11, #650407);
  color: var(--gold);
  font-weight: 950;
  text-align: center;
}

.compact-result-grid {
  margin: 18px auto 0;
}

.compact-result-grid .result-card {
  border-radius: 13px;
}

.compact-result-grid .card-head {
  padding: 11px 13px;
}

.compact-result-grid .card-result {
  padding: 13px 12px 14px;
}

.compact-result-grid .card-number {
  font-size: clamp(27px, 3.2vw, 36px);
}

.compact-history {
  width: min(920px, 100%);
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d0d0d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
}

.history-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 5px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #080808;
}

.history-tab {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  background: #181818;
  color: #d8cfbf;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
}

.history-tab:hover {
  border-color: rgba(0, 215, 255, .5);
  color: var(--gold);
}

.history-tab.is-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, #7b050a, var(--red));
  color: #fff;
  box-shadow: 0 7px 18px rgba(8, 124, 255, .2);
}

.history-tab-panel[hidden] { display: none; }
.compact-history .table-shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.compact-history .result-table {
  min-width: 0;
}

.compact-history .result-table th,
.compact-history .result-table td {
  padding: 10px 12px;
  font-size: 12px;
}

.compact-history .result-table th:first-child,
.compact-history .result-table td:first-child {
  width: 68%;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #f0f0f0;
  color: #00101c;
}

.number-grid span {
  padding: 12px 8px;
  border: 1px solid #4a6d87;
  font-weight: 950;
  text-align: center;
}

.sub-prize-title { padding: 11px; background: #003f8f; color: var(--gold); font-weight: 950; text-align: center; }
.balls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 25px; }
.ball {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9fbff, var(--gold));
  color: #00101c;
  font-size: 18px;
  font-weight: 1000;
  box-shadow: 0 0 16px rgba(0, 215, 255, .3);
}

.ball-plus { background: linear-gradient(145deg, #53e8ff, var(--red)); color: #fff; }
.result-note { padding: 0 20px 22px; color: var(--gold); font-size: 19px; font-weight: 950; text-align: center; }

.site-footer {
  padding: 32px 0 78px;
  border-top: 1px solid var(--line);
  background: #080808;
  text-align: center;
}

.footer-logo { width: 155px; height: 58px; margin: 0 auto 8px; object-fit: contain; }
.site-footer p { max-width: 700px; margin: 8px auto; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0; }
.footer-links a { padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 999px; color: #d5effa; font-size: 11px; font-weight: 850; }
.footer-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-credit strong { color: var(--gold); }

.fixed-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 9px max(12px, calc((100% - 780px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 5, .96);
  backdrop-filter: blur(12px);
}

.fixed-actions a {
  min-height: 45px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 1000;
}

.action-promo { border: 1px solid var(--gold); color: var(--gold); }
.action-login { background: linear-gradient(135deg, #00438f, #087cff); color: #fff; }
.action-register { background: linear-gradient(135deg, #007fbd, #00d7ff); color: #00101c; }

.status-message { margin-top: 16px; color: var(--muted); font-size: 12px; text-align: center; }
.status-message.is-error { color: #73ecff; }

@media (max-width: 980px) {
  .site-nav { max-width: 65%; overflow-x: auto; padding-bottom: 4px; }
  .hero-grid { grid-template-columns: 1fr .65fr; }
  .schedule-grid { grid-template-columns: repeat(3, 1fr); }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: 66px; }
  .top-line-inner { font-size: 10px; }
  .header-inner { min-height: auto; display: block; padding: 10px 0; }
  .brand-logo { width: 190px; height: 54px; margin: 0 auto 8px; }
  .site-nav { max-width: 100%; justify-content: flex-start; }
  .site-nav a { padding: 8px 10px; font-size: 11px; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 70px; text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .eyebrow, .hero-actions { justify-content: center; }
  .hero-visual { min-height: 290px; }
  .hero-visual::before { width: 280px; height: 280px; }
  .hero-mark { max-height: 270px; }
  .live-clock { right: 50%; transform: translateX(50%); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .market-toolbar { display: block; }
  .market-search { width: 100%; margin-top: 12px; }
  .market-two-column, .content-grid, .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .container { width: min(100% - 20px, 1180px); }
  .top-line-inner span:last-child { display: none; }
  .hero h1, .market-hero h1 { font-size: 36px; }
  .hero-actions .btn { flex: 1; }
  .schedule-grid, .market-grid { grid-template-columns: 1fr; }
  .schedule-item { min-height: 67px; }
  .section { padding: 56px 0; }
  .filter-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .filter-button { white-space: nowrap; }
  .draw-panel { border-radius: 13px; }
  .draw-banner strong { font-size: 28px; }
  .number-grid { grid-template-columns: repeat(2, 1fr); }
  .prize-row { grid-template-columns: 120px 1fr; }
  .fixed-actions { gap: 5px; padding: 7px; }
  .fixed-actions a { min-height: 43px; }
}

/* MEKANIK4D MACHINE INTERFACE */
:root {
  --ink: #02070d;
  --ink-soft: #06111d;
  --panel: #071522;
  --panel-2: #0a2033;
  --cream: #ecfbff;
  --muted: #91afc2;
  --line: rgba(0, 215, 255, .3);
  --shadow: 0 22px 55px rgba(0, 12, 26, .66);
}

body {
  position: relative;
  background:
    radial-gradient(circle at 78% 8%, rgba(0, 130, 255, .2), transparent 25%),
    radial-gradient(circle at 12% 38%, rgba(0, 215, 255, .08), transparent 25%),
    linear-gradient(180deg, #02070d, #030b13 55%, #02070d);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 215, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 215, 255, .028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.top-line {
  border-top: 3px solid #00d7ff;
  background: #020910;
  box-shadow: inset 0 -1px rgba(0, 215, 255, .13);
}

.top-line-inner { letter-spacing: .08em; text-transform: uppercase; }
.site-header { background: rgba(2, 9, 16, .95); }
.header-inner { min-height: 74px; }
.brand-logo { width: 250px; height: 60px; }

.site-nav a {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: linear-gradient(180deg, rgba(0, 215, 255, .14), rgba(0, 87, 163, .12));
  box-shadow: inset 0 -2px #00d7ff;
}

.site-nav .nav-cta,
.btn,
.fixed-actions a {
  border-radius: 2px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero { min-height: 620px; }
.hero::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 13, .97) 0%, rgba(2, 10, 18, .76) 48%, rgba(2, 7, 13, .88) 100%),
    url("pattern-mekanik4d.png") center / cover no-repeat;
  opacity: 1;
}

.hero::after {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(0, 215, 255, .12) 50%, transparent 50.2%),
    radial-gradient(circle at 76% 50%, rgba(0, 215, 255, .17), transparent 28%),
    linear-gradient(180deg, transparent 72%, #02070d);
}

.hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); }
.hero-copy {
  position: relative;
  padding: 32px 36px;
  border-left: 4px solid #00d7ff;
  background: linear-gradient(90deg, rgba(3, 17, 29, .9), rgba(3, 17, 29, .18));
}

.hero-copy::before,
.market-hero-inner::before {
  content: "SYS // LIVE OUTPUT";
  position: absolute;
  top: 8px;
  right: 16px;
  color: rgba(124, 248, 255, .46);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.eyebrow {
  border-radius: 2px;
  background: rgba(2, 18, 31, .86);
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.hero h1,
.market-hero h1 {
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -.045em;
}

.hero h1 span,
.market-hero h1 span {
  background: linear-gradient(90deg, #7cf8ff, #00d7ff 52%, #087cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-visual::before {
  border: 2px dashed rgba(0, 215, 255, .45);
  background:
    repeating-radial-gradient(circle, rgba(0, 215, 255, .09) 0 2px, transparent 3px 28px),
    radial-gradient(circle, rgba(0, 123, 255, .22), rgba(0, 8, 18, .55) 64%, transparent 65%);
}

.hero-mark { animation: machineSpin 26s linear infinite; }
@keyframes machineSpin { to { transform: rotate(360deg); } }

.live-clock,
.stat-grid,
.ticker,
.table-shell,
.draw-panel,
.compact-history,
.content-card,
.content-copy,
.legal-card,
.review-card,
.faq-list details {
  border-radius: 3px;
}

.live-clock {
  border-left: 4px solid #00d7ff;
  background: rgba(2, 15, 27, .95);
}

.stat-strip { margin-top: -30px; }
.stat-grid {
  background: linear-gradient(90deg, rgba(4, 22, 37, .98), rgba(6, 34, 57, .98), rgba(4, 22, 37, .98));
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
}

.stat-item strong { font-family: "Arial Black", Arial, sans-serif; }
.section-head { max-width: 920px; }
.section-head .kicker { color: #00d7ff; }

.ticker { background: #04111d; }
.ticker-label {
  background: linear-gradient(135deg, #003f8f, #087cff);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.schedule-item,
.result-card {
  border-radius: 2px;
  background: linear-gradient(145deg, #06131f, #092239);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.schedule-item::before { width: 4px; background: linear-gradient(#00d7ff, #087cff); }
.card-head { background: linear-gradient(90deg, #06233a, rgba(8, 124, 255, .16)); }
.card-number { font-family: "Arial Black", Arial, sans-serif; color: #dffcff; }
.history-row { background: rgba(1, 11, 19, .5); }

.result-table th { background: linear-gradient(180deg, #0051ad, #002b63); color: #dffcff; }
.result-table tbody tr:nth-child(even) { background: rgba(0, 215, 255, .035); }

.market-hero::before {
  background:
    linear-gradient(90deg, rgba(1, 8, 15, .97), rgba(1, 20, 35, .62), rgba(1, 8, 15, .93)),
    url("pattern-mekanik4d.png") center / cover no-repeat;
}

.market-hero-inner {
  min-height: 315px;
  padding-left: 30px;
  border-left: 4px solid #00d7ff;
}

.draw-banner { background: linear-gradient(95deg, #00265c, #087cff 48%, #008bdc); }
.prize-row span:first-child,
.sub-prize-title,
.mini-title { background: linear-gradient(90deg, #003f8f, #087cff); }

.history-tab { border-radius: 2px; background: #071827; }
.history-tab.is-active { background: linear-gradient(135deg, #00438f, #087cff); }

.faq-list summary { color: #dffcff; }
.faq-list details[open] { border-color: rgba(0, 215, 255, .5); box-shadow: inset 3px 0 #00d7ff; }
.review-card { border-top: 3px solid #00d7ff; }
.review-stars { color: #00d7ff; }

.site-footer {
  background:
    linear-gradient(rgba(2, 7, 13, .92), rgba(2, 7, 13, .98)),
    url("pattern-mekanik4d.png") center / cover no-repeat;
}

.footer-logo { width: 185px; height: 54px; }
.fixed-actions { background: rgba(2, 9, 16, .97); }
.action-promo { background: #061827; }
.action-login { background: linear-gradient(135deg, #003f8f, #087cff); }
.action-register { background: linear-gradient(135deg, #00a9d1, #7cf8ff); }

@media (max-width: 760px) {
  .brand-logo { width: 205px; height: 52px; }
  .hero-copy { padding: 26px 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .market-hero-inner { padding-left: 18px; }
  .hero-mark { animation-duration: 34s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
}


/* MEKANIK4D final branding and hero fixes */
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.15vw, 64px); max-width: 100%; overflow-wrap: normal; word-break: normal; }
.hero h1 span { display: block; }
.brand-logo, .footer-logo { object-fit: contain; }
.mekanik-livechat {
  position: fixed; right: 18px; bottom: 82px; z-index: 9998;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 122px; height: 46px; padding: 0 18px; border: 1px solid #00d7ff;
  border-radius: 4px; background: #03192a; color: #7cf8ff; font-weight: 800;
  letter-spacing: .06em; text-decoration: none; box-shadow: 0 0 24px rgba(0,215,255,.28);
}
.mekanik-livechat:hover { background: #00d7ff; color: #00101c; }
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(34px, 10.2vw, 48px); }
  .mekanik-livechat { right: 10px; bottom: 76px; min-width: 106px; height: 42px; padding: 0 13px; font-size: 12px; }
}

/* MEKANIK4D official icon in hero */
.hero-mark { width: 300px; height: 300px; max-height: 300px; border-radius: 50%; animation: none !important; }
@media (max-width: 700px) { .hero-mark { width: 235px; height: 235px; } }

/* Footer visibility fix */
.site-footer{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:5!important;}
.footer-credit{display:block!important;visibility:visible!important;opacity:1!important;}
