/* millipiyangobileti.com — tasarım sistemi logodan türetildi:
   marka mavisi #006FBC, kalın yuvarlak harfler, beyaz dolgu + mavi dış çizgi ("sticker") */

:root {
  --brand: #006fbc;
  --brand-600: #005a99;
  --brand-800: #003d6b;
  --brand-50: #eaf3fb;
  --brand-100: #d3e6f6;
  --sun: #ffc83d;
  --ink: #0f2540;
  --text: #1b2b40;
  --muted: #5d6c80;
  --line: #d9e4f0;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --ok: #1f9d55;
  --ok-bg: #e6f6ec;
  --no-bg: #fff1f0;
  --no: #c92a2a;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 61, 107, .35);
  --sticker: 0 4px 0 var(--brand-800);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --game: var(--brand);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

/* ---- Üst alan --------------------------------------------------------------- */
.site-header { background: var(--brand); position: sticky; top: 0; z-index: 5; box-shadow: 0 4px 0 var(--brand-800); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 8px; }
.brand img { width: 200px; height: auto; }
.site-header__tag { margin: 0; color: rgba(255,255,255,.9); font-weight: 700; font-size: .95rem; text-align: right; }

.game-nav ul {
  display: flex; gap: 8px; list-style: none; margin: 0 auto; padding-top: 6px; padding-bottom: 10px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.game-nav ul::-webkit-scrollbar { display: none; }
.game-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; border: 2px solid rgba(255,255,255,.28);
  color: #fff; text-decoration: none; font-weight: 800; font-size: .92rem; background: rgba(255,255,255,.08);
  transition: border-color .15s, background .15s;
}
.game-nav a i { width: 10px; height: 10px; border-radius: 50%; background: var(--game); box-shadow: 0 0 0 2px #fff; }
.game-nav a:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.16); }
.game-nav a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--brand-800); }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  margin: 20px 0; padding: 28px 24px;
  background: var(--brand);
  background-image:
    radial-gradient(circle at 92% 20%, rgba(255,255,255,.16) 0 46px, transparent 47px),
    radial-gradient(circle at 82% 85%, rgba(255,255,255,.10) 0 70px, transparent 71px),
    radial-gradient(circle at 99% 70%, rgba(255,200,61,.55) 0 22px, transparent 23px),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff; border-radius: var(--radius); box-shadow: var(--sticker);
}
.hero h1 {
  color: #fff; font-style: italic; font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: .35em;
  text-shadow: 0 3px 0 rgba(0, 40, 80, .35);
}
.hero p { margin: 0; max-width: 62ch; color: rgba(255,255,255,.92); font-weight: 600; }
.hero strong { color: #fff; }
.hero:not(.hero--game) {
  background: var(--surface); color: var(--text); border: 2px solid var(--brand-100); box-shadow: 0 4px 0 var(--brand-100);
  background-image:
    radial-gradient(circle at 94% 24%, var(--brand-50) 0 46px, transparent 47px),
    radial-gradient(circle at 86% 90%, var(--brand-50) 0 70px, transparent 71px),
    radial-gradient(circle at 99% 66%, rgba(255,200,61,.6) 0 20px, transparent 21px);
}
.hero:not(.hero--game) h1 { color: var(--brand); text-shadow: 0 3px 0 var(--brand-100); }
.hero:not(.hero--game) p { color: var(--muted); }
.hero--game {
  background-image:
    radial-gradient(circle at 92% 20%, rgba(255,255,255,.18) 0 46px, transparent 47px),
    radial-gradient(circle at 84% 88%, rgba(255,255,255,.12) 0 70px, transparent 71px),
    linear-gradient(135deg, var(--game) 0%, color-mix(in srgb, var(--game) 70%, #000) 100%);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--game) 55%, #000);
}

.notice {
  background: #fff8e1; border: 2px solid #ffe08a; color: #6b4e00;
  padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 20px; font-weight: 600;
}

/* ---- Kartlar ---------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 0 0 20px; box-shadow: var(--shadow);
}
.card__title { font-size: 1.25rem; }
.layout-2 { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 0; }
.layout-2 > .card { margin: 0; min-width: 0; }
.layout-2 + * { margin-top: 20px; }
@media (min-width: 880px) { .layout-2 { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.game-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
.game-grid > * { min-width: 0; }
@media (min-width: 720px) { .game-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .game-grid { grid-template-columns: repeat(6, 1fr); }
  .game-grid > :nth-child(-n+2) { grid-column: span 3; }
  .game-grid > :nth-child(n+3) { grid-column: span 2; } }

.game-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border-radius: var(--radius); padding: 18px 18px 16px;
  border: 2px solid color-mix(in srgb, var(--game) 30%, var(--line));
  box-shadow: 0 4px 0 color-mix(in srgb, var(--game) 35%, var(--line));
  position: relative; overflow: hidden;
}
.game-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--game); }
.game-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.game-card__head h2 { font-size: 1.2rem; margin: 0; font-style: italic; }
.game-card__head h2 a { color: var(--ink); text-decoration: none; }
.game-card__head time { font-size: .8rem; font-weight: 800; color: var(--game); background: color-mix(in srgb, var(--game) 10%, #fff); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.game-card__date { margin: 10px 0 0; color: var(--muted); font-weight: 700; font-size: .9rem; }
.game-card__body { flex: 1; }
.game-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---- Loto topları ---------------------------------------------------------- */
.balls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ball {
  --size: 46px;
  width: var(--size); height: var(--size); flex: 0 0 var(--size);
  display: inline-grid; place-items: center; border-radius: 50%;
  font-weight: 900; font-size: calc(var(--size) * .4); color: #fff; font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0 12%, rgba(255,255,255,0) 38%),
    var(--game);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 2px 0 rgba(0,0,0,.08);
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.ball--lg { --size: 54px; }
.ball--sm { --size: 34px; }
.ball--xs { --size: 28px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.ball--joker { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7) 0 12%, rgba(255,255,255,0) 38%), var(--sun); color: #4a3300; text-shadow: none; }
.ball--superstar { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.35) 0 12%, rgba(255,255,255,0) 38%), #1d1f4b; color: var(--sun); }
.ball--plus { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7) 0 12%, rgba(255,255,255,0) 38%), var(--sun); color: #4a3300; text-shadow: none; }
.balls__sep { font-weight: 900; color: var(--muted); font-size: 1.2rem; }
.extra { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.extra__label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); line-height: 1; }
.balls--many { gap: 6px; }
.balls--many .ball:not(.ball--sm):not(.ball--xs) { --size: 40px; }
@media (max-width: 400px) {
  .ball { --size: 40px; }
  .ball--lg { --size: 44px; }
  .ball--sm { --size: 32px; }
  .balls--many .ball:not(.ball--sm):not(.ball--xs) { --size: 36px; }
}

/* Milli Piyango bilet numarası */
.ticket-number { display: flex; gap: 6px; flex-wrap: wrap; }
.ticket-number span {
  width: 44px; height: 56px; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--brand); border-radius: 10px;
  font-size: 1.8rem; font-weight: 900; color: var(--brand-800); box-shadow: 0 3px 0 var(--brand-800);
  font-variant-numeric: tabular-nums;
}
.ticket-number--lg span { width: 52px; height: 66px; font-size: 2.2rem; }
@media (max-width: 400px) { .ticket-number--lg span { width: 42px; height: 56px; font-size: 1.8rem; } }

/* ---- Butonlar ve etiketler -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 900; font-size: 1rem; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 2px solid var(--brand-800);
  background: var(--brand); color: #fff; text-decoration: none; box-shadow: 0 3px 0 var(--brand-800);
  transition: transform .06s, box-shadow .06s, background .15s;
}
.btn:hover { background: var(--brand-600); color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--brand-800); }
.btn--small { padding: 7px 14px; font-size: .9rem; }
.btn--ghost { background: #fff; color: var(--brand-800); border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-800); }
.link { font-weight: 800; text-decoration: none; }
.link:hover { text-decoration: underline; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-weight: 800; font-size: .85rem; }
.pill--link { text-decoration: none; border: 2px solid transparent; }
.pill--link:hover, .pill--link[aria-current="page"] { border-color: var(--brand); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: .8rem; font-weight: 900; }
.badge--devir { background: var(--sun); color: #4a3300; }
.devir-amount { display: block; font-size: .82rem; color: var(--muted); font-weight: 700; margin-top: 2px; }

/* ---- Son çekiliş kartı ------------------------------------------------------- */
.latest { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.latest__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.latest__head .card__title { margin: 0; }
.latest .muted { margin: 0; }

/* ---- Bilet kontrol ----------------------------------------------------------- */
.checker { border: 2px solid color-mix(in srgb, var(--game) 35%, var(--line)); }
.checker > .muted { font-size: .9rem; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, 48px); gap: 8px; margin-bottom: 12px; width: 100%; max-width: 420px; }
.pick {
  width: 48px; height: 48px; text-align: center; font: inherit; font-size: 1.2rem; font-weight: 900; color: var(--ink);
  border: 2px solid var(--line); border-radius: 50%; background: #fff; padding: 0;
}
.pick:focus { border-color: var(--game); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--game) 25%, transparent); }
.pick.is-hit { background: var(--game); border-color: var(--game); color: #fff; }
.pick.is-invalid { border-color: var(--no); background: var(--no-bg); }
.pick--extra { width: 48px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 800; }
.field--inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; max-width: 420px; }
.field em { font-style: normal; font-weight: 600; }
.field input[name="ticket"] {
  font: inherit; font-size: 1.6rem; font-weight: 900; letter-spacing: .3em; text-align: center;
  padding: 10px 12px; border: 3px solid var(--brand); border-radius: 12px; max-width: 280px; color: var(--brand-800);
}
.checker__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.checker__result:not(:empty) { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.checker__result.is-win { background: var(--ok-bg); color: #145c33; border: 2px solid #a7e0bd; }
.checker__result.is-lose { background: var(--brand-50); color: var(--brand-800); border: 2px solid var(--brand-100); }
.checker__result.is-error { background: var(--no-bg); color: var(--no); border: 2px solid #ffc9c9; }
.checker__result strong { font-size: 1.15rem; display: block; }

/* ---- İkramiye tablosu -------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.prizes { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prizes caption { text-align: left; font-weight: 800; color: var(--muted); padding-bottom: 8px; font-size: .9rem; }
.prizes th, .prizes td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prizes th:first-child { text-align: left; white-space: normal; }
.prizes thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom-width: 2px; }
.prizes tbody th { color: var(--ink); font-weight: 900; }
.prizes tbody tr:hover { background: var(--brand-50); }
.prizes td:nth-child(2) { font-weight: 800; color: var(--ink); }

/* Milli Piyango ikramiye grupları */
.mp-groups { display: grid; gap: 14px; }
.mp-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.mp-group header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mp-group h3 { margin: 0; font-size: 1.15rem; }
.mp-group header .muted { font-size: .85rem; font-weight: 700; }
.mp-group--top { background: linear-gradient(135deg, #fff9e3, #fff); border: 2px solid var(--sun); }
.mp-numbers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.mp-numbers li {
  font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .08em; text-align: center;
  background: var(--brand-50); color: var(--brand-800); border-radius: 8px; padding: 6px 4px;
}
.mp-numbers--short { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
.mp-group--top .mp-numbers li { background: #fff; border: 2px solid var(--brand); font-size: 1.3rem; }
.mp-numbers li.is-hit { background: var(--ok); color: #fff; }

/* ---- Listeler ----------------------------------------------------------------- */
.draw-list { list-style: none; margin: 0 0 12px; padding: 0; }
.draw-row a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 8px;
}
.draw-row a:hover { background: var(--brand-50); }
.draw-row__date { display: flex; flex-direction: column; line-height: 1.25; min-width: 120px; }
.draw-row__date strong { color: var(--ink); }
.draw-row__date .muted { font-size: .85rem; }
.draw-row .balls { gap: 4px; }
.draw-row .balls--many { max-width: 560px; }
.draw-row__ticket { font-weight: 900; letter-spacing: .1em; color: var(--brand-800); font-size: 1.15rem; }
.draw-row__ticket .muted { letter-spacing: 0; font-size: .85rem; font-weight: 700; }
.draw-row .extra__label { display: none; }
.years { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.schedule { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.schedule li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.schedule i { width: 12px; height: 12px; border-radius: 50%; background: var(--game); }
.schedule a { font-weight: 900; color: var(--ink); text-decoration: none; min-width: 170px; }
.schedule span { color: var(--muted); font-weight: 600; }

.freq-cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .freq-cols { grid-template-columns: 1fr 1fr; } }
.freq-cols h3 { font-size: 1rem; }
.freq { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.freq li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .78rem; font-weight: 700; color: var(--muted); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 0; font-size: .88rem; font-weight: 700; }
.crumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.prose { max-width: 820px; }
.prose h1 { font-style: italic; }
.prose h2 { font-size: 1.2rem; margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.notfound { margin-top: 24px; }

.ad:empty { display: none; }

/* ---- Alt alan --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c5d3e3; margin-top: 40px; padding: 32px 0 20px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .muted { color: #93a7bd; }
.site-footer__inner { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__logo { width: 180px; margin-bottom: 12px; }
.site-footer__copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header__tag { display: none; }
  .brand img { width: 170px; }
  .hero { padding: 22px 18px; margin: 14px 0; }
  .card { padding: 18px 16px; }
  .prizes th, .prizes td { padding: 9px 6px; font-size: .88rem; }
  .prizes thead th { font-size: .7rem; letter-spacing: 0; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
