/* Miorre Games website (miorregames.com), 2026-11-15. Night theme like the games. */
:root {
  --bg: #0d0828;
  --bg2: #191047;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f1ff;
  --muted: #b9b3e0;
  --gold: #ffc93c;
  --gold2: #ff9f1c;
  --green: #2fbf71;
  --yellow: #f5b82e;
  --gray: #5b5f7a;
  --red: #e53935;
  --violet: #7c5cff;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- top bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(13, 8, 40, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0e00;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(255, 159, 28, 0.35);
}
.brand span b {
  color: var(--gold);
}
.links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.links a:hover {
  color: var(--text);
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang button.on {
  background: var(--gold);
  color: #1a0e00;
}
@media (max-width: 760px) {
  .links a {
    display: none;
  }
}

/* ---- hero */
.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 0 90px;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(800px 500px at 90% 30%, rgba(255, 159, 28, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  overflow: hidden;
}
.floating {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.floating span {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-26px) rotate(calc(var(--r, 0deg) + 8deg));
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.2);
}
.tiles {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 12px);
  margin: 26px 0 14px;
  flex-wrap: nowrap;
}
.tiles span {
  width: clamp(44px, 9vw, 92px);
  height: clamp(44px, 9vw, 92px);
  border-radius: clamp(10px, 1.6vw, 20px);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: clamp(22px, 4.6vw, 48px);
  color: #10122b;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18), 0 14px 30px rgba(0, 0, 0, 0.35);
  animation: flip 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
@keyframes flip {
  from {
    transform: rotateX(90deg) translateY(20px);
    opacity: 0;
  }
}
.tiles .g {
  background: var(--green);
}
.tiles .y {
  background: var(--yellow);
}
.tiles .x {
  background: var(--gray);
  color: #fff;
}
.tiles .v {
  background: var(--violet);
  color: #fff;
}
.tiles .r {
  background: var(--red);
  color: #fff;
}
.tiles .gap {
  background: transparent;
  box-shadow: none;
  width: clamp(10px, 2vw, 24px);
}
h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  margin: 10px 0 14px;
  letter-spacing: -1px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.gold {
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  color: #1a0e00;
  box-shadow: 0 10px 26px rgba(255, 159, 28, 0.35);
}
.btn.ghost {
  border-color: var(--line);
  background: var(--panel);
}
.btn.play {
  background: #000;
  border-color: #3a3a3a;
  color: #fff;
}
.btn.play small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
  line-height: 1;
}
.btn.play b {
  display: block;
  line-height: 1.15;
}
.btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---- sections */
section {
  padding: 90px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 6px 0 10px;
  letter-spacing: -0.5px;
}
.section-head p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}
.kicker {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* games */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.game {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.game:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 201, 60, 0.6);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.game-cover {
  aspect-ratio: 1200 / 630;
  background: #1d1450 center / cover no-repeat;
}
.game-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.game-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-title img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.game h3 {
  margin: 0;
  font-size: 22px;
}
.game p {
  margin: 0;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
.tag.live {
  background: rgba(47, 191, 113, 0.18);
  color: #6ee79a;
}
.tag.soon {
  background: rgba(255, 201, 60, 0.15);
  color: var(--gold);
}
.game.soon .game-cover {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.45), transparent 60%), #1a1248;
}
.soon-mark {
  font-size: 56px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}
.more {
  color: var(--gold);
  font-weight: 800;
  margin-top: 6px;
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.feature .ico {
  font-size: 30px;
}
.feature h4 {
  margin: 10px 0 6px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* about */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.about p {
  color: var(--muted);
  font-size: 17px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fact {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.fact b {
  display: block;
  font-size: 30px;
  color: var(--gold);
}
.fact span {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* contact band */
.band {
  text-align: center;
  padding: 60px 24px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(124, 92, 255, 0.4), transparent 60%),
    radial-gradient(600px 300px at 80% 100%, rgba(255, 159, 28, 0.25), transparent 60%),
    #1a1248;
  border: 1px solid var(--line);
}
.band h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
}
.band p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}

/* ---- the KELİMO page */
.game-hero {
  padding: 70px 0 60px;
  background:
    radial-gradient(800px 420px at 80% 0%, rgba(47, 191, 113, 0.18), transparent 60%),
    radial-gradient(700px 420px at 10% 30%, rgba(124, 92, 255, 0.3), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
.game-hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.game-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}
.game-hero .icon {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.phone {
  justify-self: center;
  width: min(330px, 100%);
  border-radius: 40px;
  padding: 14px;
  background: #07051a;
  border: 1px solid #2a2350;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.screen {
  border-radius: 28px;
  padding: 26px 16px 22px;
  background: linear-gradient(180deg, #2b1a6b, #191047 60%, #0b2f5e);
}
.board {
  display: grid;
  gap: 6px;
  justify-content: center;
}
.row {
  display: grid;
  grid-template-columns: repeat(5, 46px);
  gap: 6px;
}
.cell {
  height: 46px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cell.g {
  background: var(--green);
  border-color: transparent;
  color: #10122b;
}
.cell.y {
  background: var(--yellow);
  border-color: transparent;
  color: #10122b;
}
.cell.x {
  background: var(--gray);
  border-color: transparent;
}
.screen .caption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: s;
}
.step {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: -14px;
  left: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--gold);
  color: #1a0e00;
}
.step h4 {
  margin: 4px 0 6px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 28px;
}
.legend div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.legend .cell {
  width: 40px;
  height: 40px;
  font-size: 18px;
}
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.mode {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.mode img {
  width: 100%;
  aspect-ratio: 561 / 441;
  object-fit: cover;
}
.mode div {
  padding: 16px 18px 20px;
}
.mode h4 {
  margin: 0 0 4px;
}
.mode p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.diff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.diff div {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.diff b {
  display: block;
  font-size: 17px;
}
.diff span {
  color: var(--muted);
  font-size: 14px;
}
.web-soon {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 201, 60, 0.5);
  background: rgba(255, 201, 60, 0.06);
  margin-top: 26px;
}
.web-soon .ico {
  font-size: 34px;
}
.web-soon p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 860px) {
  .game-hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .game-hero .icon {
    margin: 0 auto;
  }
  .game-hero .cta {
    justify-content: center;
  }
}
@media (max-width: 400px) {
  .row {
    grid-template-columns: repeat(5, 40px);
  }
  .cell {
    height: 40px;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.cta.left {
  justify-content: flex-start;
}
@media (max-width: 860px) {
  .game-hero .cta.left {
    justify-content: center;
  }
}

/* ---- phones and tablets (2026-11-15: "make it fully mobile friendly") */
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
body.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  display: none;
}
@media (max-width: 760px) {
  .nav .wrap {
    height: 60px;
  }
  .links {
    gap: 10px;
  }
  .menu-btn {
    display: flex;
  }
  body.menu-open .mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 6px 20px 16px;
    border-top: 1px solid var(--line);
    background: rgba(13, 8, 40, 0.97);
  }
  .mobile-menu a {
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a:last-child {
    border-bottom: 0;
  }
  .brand {
    font-size: 18px;
  }
  /* the first screen: no forced full height, less empty space */
  .hero {
    min-height: auto;
    padding: 48px 0 60px;
  }
  .lead {
    margin-bottom: 24px;
  }
  .cta .btn {
    width: 100%;
    justify-content: center;
  }
  /* the floating letters stay in the corners, small and faint, never over the text */
  .floating span {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.22);
  }
  .floating span:nth-child(n + 3) {
    display: none;
  }
  .floating span:nth-child(1) {
    left: 4% !important;
    top: 4% !important;
  }
  .floating span:nth-child(2) {
    left: auto !important;
    right: 4%;
    top: 3% !important;
  }
  section {
    padding: 56px 0;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .games,
  .features,
  .modes,
  .steps {
    grid-template-columns: 1fr;
  }
  .game-body {
    padding: 16px 18px 20px;
  }
  .feature,
  .step {
    padding: 20px;
  }
  .steps {
    gap: 26px;
  }
  .about p {
    font-size: 16px;
  }
  .fact {
    padding: 16px;
  }
  .fact b {
    font-size: 26px;
  }
  .band {
    padding: 40px 18px;
    border-radius: 22px;
  }
  .band .btn {
    width: 100%;
    justify-content: center;
    word-break: break-all;
  }
  footer .wrap {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  footer nav {
    justify-content: center;
  }
  /* the KELİMO page */
  .game-hero {
    padding: 40px 0 44px;
  }
  .game-hero .tiles {
    justify-content: center !important;
  }
  .game-hero .lead {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .phone {
    width: min(300px, 100%);
    border-radius: 34px;
    padding: 10px;
  }
  .legend {
    flex-direction: column;
    align-items: flex-start;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .web-soon {
    flex-direction: column;
    text-align: center;
  }
  .mode div {
    padding: 14px 16px 18px;
  }
}
@media (max-width: 360px) {
  .row {
    grid-template-columns: repeat(5, 38px);
  }
  .cell {
    height: 38px;
    font-size: 18px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
}

.brand {
  white-space: nowrap;
}
@media (max-width: 380px) {
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .lang button {
    padding: 6px 10px;
  }
}

@media (max-width: 760px) {
  .modes {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mode div {
    padding: 10px 12px 14px;
  }
  .mode h4 {
    font-size: 15px;
  }
  .mode p {
    font-size: 13px;
    line-height: 1.45;
  }
}
