/* Miniq Games ana sayfası. Renkler uygulama kabuğunun paletinden (app/lib/core/shell_theme.dart);
   hukuk sayfaları legal.css kullanır. */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f5f5fa;
  --surface: #ffffff;
  --soft: #f0edfa;
  --ink: #16112b;
  --muted: #645e7b;
  --border: #e6e3f2;
  --accent: #6c3bff;
  --shadow: 0 8px 22px rgba(22, 17, 41, .08);
  --tint-violet: #e9e5fb;
  --tint-pink: #fbe7ee;
  --tint-amber: #fcefd9;
  --tint-mint: #dff4ed;
  --on-violet: #4a1fcb;
  --on-pink: #c93838;
  --on-amber: #9a6400;
  --on-mint: #0e7f68;

  /* marka renkleri: iki temada da aynı */
  --violet: #6c3bff;
  --coral: #ff5b5b;
  --sun: #ffc231;
  --mint: #17c8a3;
  --night: #130e33;

  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0c18;
    --surface: #191426;
    --soft: #231c35;
    --ink: #f3f0fa;
    --muted: #a69ebf;
    --border: #2b2440;
    --accent: #a48bff;
    --shadow: 0 8px 18px rgba(0, 0, 0, .4);
    --tint-violet: #262041;
    --tint-pink: #33202c;
    --tint-amber: #2f2616;
    --tint-mint: #16302a;
    --on-violet: #b9a6ff;
    --on-pink: #ff9a9a;
    --on-amber: #ffc94d;
    --on-mint: #4fe0c0;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- üst bant ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 70% at 88% 12%, rgba(255, 91, 91, .34), transparent 70%),
    radial-gradient(50% 60% at 6% 96%, rgba(23, 200, 163, .26), transparent 70%),
    linear-gradient(135deg, var(--night) 0%, #2a1680 58%, #5a2fe6 100%);
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
  font: 700 21px/1 var(--display);
  white-space: nowrap;
}

.brand img { width: 40px; height: 40px; }

.menu { display: flex; gap: 4px; }

.menu a {
  padding: 8px 12px;
  border-radius: 99px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.menu a:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
}

.lang button {
  font: 700 13px/1 system-ui, sans-serif;
  padding: 7px 10px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
}

.lang button[aria-pressed="true"] { background: #fff; color: var(--night); }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 84px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .13);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255, 255, 255, .86);
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  padding: 10px 22px 11px;
  border-radius: 16px;
  background: #fff;
  color: var(--night);
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.store small { font-size: 12px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; }
.store b { font: 700 21px/1.2 var(--display); }
a.store:hover { transform: translateY(-2px); }

.store.soon {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}

.store.soon small { color: var(--sun); }

.hero-note { margin-top: 18px; font-size: 14.5px; color: rgba(255, 255, 255, .7); }

/* yelpaze: üç oyun kartı + oda kodu */
.fan {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.fan-card {
  position: absolute;
  width: 50%;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  color: var(--night);
  box-shadow: 0 22px 44px rgba(8, 4, 30, .5);
}

.fan-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.fan-card figcaption { display: flex; flex-direction: column; padding: 10px 14px 13px; line-height: 1.25; }
.fan-card b { font: 700 clamp(15px, 1.7vw, 19px)/1.2 var(--display); }
.fan-card span { font-size: clamp(11px, 1.2vw, 13px); color: #645e7b; font-weight: 600; }

.fan-a { left: 0; top: 33%; transform: rotate(-9deg); }
.fan-b { left: 25%; top: 2%; transform: rotate(2deg); z-index: 1; }
.fan-c { right: 0; top: 49%; transform: rotate(8deg); z-index: 2; }

.code-chip {
  position: absolute;
  left: 8%;
  bottom: 2%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  background: var(--night);
  box-shadow: 0 14px 30px rgba(8, 4, 30, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .16);
  transform: rotate(-3deg);
}

.code-chip span { margin-right: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }

.code-chip i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 36px;
  border-radius: 8px;
  background: var(--sun);
  color: var(--night);
  font: 700 19px/1 var(--display);
  font-style: normal;
}

@media (prefers-reduced-motion: no-preference) {
  .fan-card, .code-chip { animation: float 7s ease-in-out infinite; }
  .fan-b { animation-delay: -2.3s; }
  .fan-c { animation-delay: -4.6s; }
  .code-chip { animation-delay: -1.2s; }
  a.store, .game { transition: transform .18s ease, box-shadow .18s ease; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* ---------- bölümler ---------- */

section { padding-top: 72px; padding-bottom: 8px; scroll-margin-top: 8px; }

h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; }

.sub { max-width: 40em; margin-top: 10px; color: var(--muted); font-size: 18px; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* geniş ekranda on oyun 5 × 2 dizilir, yetim satır kalmaz */
@media (min-width: 1060px) {
  .games { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .game-body { padding: 14px 15px 18px; }
  .game h3 { font-size: 20px; }
  .game p { font-size: 14.5px; }
}

.game {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game:hover { transform: translateY(-4px); }
.game img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); }
.game-body { padding: 16px 18px 20px; }
.game h3 { margin: 10px 0 6px; font-size: 22px; }
.game p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--tint-violet);
  color: var(--on-violet);
  font-size: 12.5px;
  font-weight: 700;
}

.band {
  margin-top: 72px;
  padding-top: 64px;
  padding-bottom: 72px;
  background: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.steps h3 { margin: 16px 0 6px; font-size: 22px; }
.steps p, .feature p { color: var(--muted); font-size: 16px; }

.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--violet);
  color: #fff;
  font: 700 22px/1 var(--display);
}

.steps li:nth-child(2) .num { background: var(--coral); }
.steps li:nth-child(3) .num { background: var(--mint); color: var(--night); }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature { padding: 24px; border-radius: 20px; }
.feature h3 { margin: 14px 0 6px; }
.feature p { color: var(--ink); opacity: .78; }

.feature svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tint-violet { background: var(--tint-violet); }
.tint-pink { background: var(--tint-pink); }
.tint-amber { background: var(--tint-amber); }
.tint-mint { background: var(--tint-mint); }
.tint-violet svg { color: var(--on-violet); }
.tint-pink svg { color: var(--on-pink); }
.tint-amber svg { color: var(--on-amber); }
.tint-mint svg { color: var(--on-mint); }

.plus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.plus-free, .plus-paid { padding: 36px; }

.plus-paid {
  color: #fff;
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(255, 194, 49, .3), transparent 70%),
    linear-gradient(135deg, #2a1680, #6c3bff);
}

.plus-paid h3 { font-size: 28px; font-weight: 700; }

.plus ul { margin: 20px 0 0; padding: 0; list-style: none; }

.plus li {
  position: relative;
  margin-top: 12px;
  padding-left: 32px;
}

.plus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23130e33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.plus-paid li::before { background-color: var(--sun); }

.fine { margin-top: 22px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); }

.support {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.support p { margin-top: 12px; color: var(--muted); }

.legal-links {
  margin: 0;
  padding: 8px 24px;
  list-style: none;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.legal-links li + li { border-top: 1px solid var(--border); }
.legal-links a { display: block; padding: 14px 0; font-weight: 600; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 72px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer span { margin-right: auto; }
footer a { color: var(--muted); }

/* ---------- dar ekran ---------- */

@media (max-width: 900px) {
  .menu { display: none; }
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 28px; padding-bottom: 56px; }
  .fan { max-width: 440px; }
  .steps, .features, .plus, .support { grid-template-columns: minmax(0, 1fr); }
  section { padding-top: 56px; }
  .band { margin-top: 56px; padding-top: 48px; padding-bottom: 56px; }
}

/* telefonda oyun kartı yatay satır olur: on büyük kapak sayfayı uzatmasın */
@media (max-width: 560px) {
  .games { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .game { flex-direction: row; align-items: stretch; border-radius: 18px; }
  .game img { width: 34%; flex: none; aspect-ratio: auto; min-height: 112px; }
  .game-body { padding: 12px 14px 14px; }
  .game h3 { margin: 6px 0 4px; font-size: 19px; }
  .game p { font-size: 14.5px; }
  .game:hover { transform: none; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .store { flex: 1 1 0; min-width: 0; padding-left: 16px; padding-right: 16px; }
  .plus-free, .plus-paid { padding: 26px 22px; }
  .code-chip i { width: 26px; height: 32px; font-size: 17px; }
  .code-chip span { display: none; }
  .code-chip { left: 0; bottom: 0; }
}
