/* Homepage concept v2 — the generated concept translated into real layout.
   This sheet is intentionally home-only: inner pages keep the shared portal
   system without inheriting the more theatrical landing-page composition. */

body {
  background:
    linear-gradient(rgba(34, 49, 27, .025) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(229, 171, 39, .13), transparent 31rem),
    var(--cream-50);
  background-size: 100% 32px, auto, auto;
}

/* The decorative studs on the sticky header intentionally sit half outside
   the viewport. Keep that flourish without turning the page itself into a
   horizontally scrollable canvas. */
html,
body { overflow-x: clip; }

/* Native dialogs live in the browser's top layer and must stay centred on the
   viewport. Ecru Hub normally pushes every direct body child left when its
   panel opens; applying that page-layout margin to a top-layer dialog breaks
   the UA's auto-centering and pins the trailer to an edge. */
html.eh-hub body > .trailerDialog,
.trailerDialog[open] {
  position: fixed;
  inset: 0;
  margin: auto !important;
}

.topbar {
  border-bottom: 0;
  box-shadow: 0 8px 22px rgba(17, 26, 14, .18);
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 5px solid var(--field-900);
  box-shadow: 0 0 0 1px var(--gold-600);
}

.topbar::before { left: -12px; }
.topbar::after { right: -12px; }

.topbar > .stitch { position: absolute; inset: auto 0 -2px; }

.nav { min-height: 86px; }

.brand {
  align-self: stretch;
  padding: 7px 22px 7px 10px;
  margin-block: -9px;
  border-inline: 1px solid rgba(238, 176, 30, .32);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent), var(--field-800);
  box-shadow: 0 9px 0 rgba(8, 14, 7, .2);
}

.brand img { width: 56px; height: 56px; border: 2px solid var(--gold-500); }
.brandWord b { font-family: Georgia, serif; font-size: 24px; letter-spacing: .08em; }
.brandWord small { color: var(--gold-500); letter-spacing: .35em; }
.navPrimary > a { position: relative; }
.navPrimary > a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: -9px;
  height: 2px;
  background: var(--gold-500);
  transition: left .18s, right .18s;
}
.navPrimary > a:hover::after { left: 0; right: 0; }
.navCta { border-radius: 10px; box-shadow: 0 3px 0 var(--gold-600); }
.navAuth { border-radius: 10px; }
.langSwitch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(247,210,113,.42);
  border-radius: 10px;
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.langSwitch:hover { background: rgba(247,210,113,.1); border-color: var(--gold-500); }

/* ---------- split editorial hero ---------- */
.homeHero {
  display: grid;
  grid-template-columns: minmax(390px, .83fr) minmax(0, 1.55fr);
  min-height: 560px;
  margin-top: 28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 24px;
  background: var(--cream-100);
  box-shadow: 0 28px 70px rgba(29, 41, 24, .2);
  position: relative;
}

.homeHero::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 16px;
  pointer-events: none;
  z-index: 5;
}

.heroEditorial {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 34px 48px 58px;
  background:
    radial-gradient(circle at 8% 8%, rgba(238, 176, 30, .12), transparent 14rem),
    var(--cream-50);
}

.heroEditorial::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -2%; right: -31px; bottom: -2%;
  width: 64px;
  background: var(--cream-50);
  clip-path: polygon(0 0, 52% 3%, 20% 9%, 68% 15%, 32% 22%, 60% 31%, 24% 38%, 72% 47%, 28% 55%, 63% 64%, 25% 73%, 70% 81%, 35% 90%, 54% 97%, 0 100%);
}

.heroEyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 17px;
  color: var(--field-600);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.heroEditorial h1 {
  margin: 0;
  color: var(--field-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 4.4vw, 72px);
  line-height: .95;
  letter-spacing: -.055em;
}

.heroEditorial h1 em { color: var(--gold-600); font-style: normal; }

.heroEditorial > p {
  max-width: 37ch;
  margin: 25px 0 27px;
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.55;
}

.heroEditorial .heroActions { flex-wrap: nowrap; }
.heroEditorial .btnPlay,
.heroEditorial .btnGhost { border-radius: 10px; white-space: nowrap; }
.heroEditorial .btnGhost {
  border-color: var(--cream-300);
  background: var(--field-800);
  color: var(--cream-50);
}

.heroModes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 36px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--cream-300);
  list-style: none;
}

.heroModes li { display: flex; align-items: flex-start; gap: 9px; padding-right: 9px; }
.heroModes b { color: var(--gold-600); font: 800 11px/1 var(--body); }
.heroModes span { color: var(--ink-700); font-size: 11px; line-height: 1.25; }

.heroWorld { position: relative; min-width: 0; overflow: hidden; background: var(--field-800); }
.heroWorld::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21,31,18,.18), transparent 25%, transparent 68%, rgba(15,23,13,.32));
  pointer-events: none;
}
.heroWorld > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 58% 50%; transition: transform 1s ease; }
.homeHero:hover .heroWorld > img { transform: scale(1.025); }

.heroGameMark {
  position: absolute;
  z-index: 2;
  left: 54px;
  bottom: 34px;
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 15px 17px;
  border: 1px solid rgba(247,210,113,.45);
  border-radius: 14px;
  background: rgba(21, 31, 18, .84);
  box-shadow: 0 12px 28px rgba(8,14,7,.32);
  backdrop-filter: blur(8px);
}
.heroGameMark > span { color: var(--gold-300); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.heroGameMark img { width: 215px; max-height: 64px; object-fit: contain; object-position: left; filter: drop-shadow(0 5px 5px rgba(0,0,0,.35)); }
.heroGameMark a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--gold-500);
  color: var(--field-900);
  box-shadow: 0 3px 0 var(--gold-600);
  font-size: 13px;
  font-weight: 900;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.heroGameMark a:hover {
  background: var(--gold-300);
  box-shadow: 0 4px 0 var(--gold-600);
  transform: translateY(-1px);
}
.heroGameMark a span { color: var(--field-900); font-size: 17px; line-height: 1; }

.worldChip {
  position: absolute;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(247,210,113,.42);
  border-radius: 999px;
  background: rgba(21,31,18,.8);
  color: var(--cream-100);
  box-shadow: 0 8px 20px rgba(8,14,7,.24);
  backdrop-filter: blur(7px);
  font-size: 11px;
  font-weight: 800;
}
.worldChipOne { top: 30px; left: 70px; }
.worldChipTwo { top: 78px; left: 70px; }
.heroWorld .livePlayers.on { position: absolute; z-index: 2; top: 28px; right: 24px; padding: 8px 11px; border-radius: 999px; background: rgba(21,31,18,.8); }

/* ---------- web + App Store: equal ways into the same worlds ---------- */
.playWays {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) repeat(2, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.playWaysIntro { display: flex; flex-direction: column; justify-content: center; padding: 18px 22px 18px 4px; }
.playWaysIntro > span,
.playWayTag { color: var(--gold-600); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.playWaysIntro h2 { margin: 5px 0 7px; color: var(--field-900); font: 800 clamp(22px, 2.2vw, 31px)/1.02 var(--display); letter-spacing: -.035em; }
.playWaysIntro p { margin: 0; color: var(--ink-500); font-size: 13px; line-height: 1.45; }

.playWay {
  position: relative;
  min-width: 0;
  min-height: 138px;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 17px;
  box-shadow: 0 10px 25px rgba(29,41,24,.09);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.playWay:hover { border-color: var(--gold-500); box-shadow: 0 14px 30px rgba(29,41,24,.15); transform: translateY(-2px); }
.playWay b { display: block; margin-top: 8px; font: 800 18px/1.15 var(--display); }
.playWay small { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; }
.playWay strong { display: flex; justify-content: space-between; margin-top: 13px; font-size: 12px; font-weight: 900; }
.playWay strong span { font-size: 16px; line-height: 1; }

.playWayWeb { background: radial-gradient(circle at 92% 15%, rgba(238,176,30,.18), transparent 8rem), var(--cream-100); color: var(--field-900); }
.playWayWeb small { color: var(--ink-500); }
.playWayWeb strong { color: var(--gold-600); }

.playWayIos {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  border-color: var(--field-700);
  background: linear-gradient(135deg, #050505, #171717);
  color: var(--cream-50);
}
.playWayIos::after { content: ""; position: absolute; right: -38px; bottom: -58px; width: 150px; height: 150px; border: 1px solid rgba(238,176,30,.22); border-radius: 50%; }
.playWayIos .playWayIcon { position: relative; z-index: 1; width: 82px; height: 82px; border-radius: 19px; box-shadow: 0 9px 20px rgba(0,0,0,.5); }
.playWayCopy { position: relative; z-index: 1; min-width: 0; }
.playWayIos .playWayTag { color: var(--gold-300); }
.playWayIos small { color: var(--cream-300); }
.playWayIos .appStoreBadge { display: block; width: 151px; height: 40px; margin-top: 12px; }

/* ---------- game shelf ---------- */
.worlds { padding-top: 42px; }
.worldsHead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; margin-bottom: 20px; }
.worldsHead > span { color: var(--gold-600); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.worldsHead h2 { margin: 0; color: var(--field-900); font: 800 clamp(28px, 3vw, 39px)/1 var(--display); text-align: center; text-transform: uppercase; }
.worldsHead p { justify-self: end; margin: 0; color: var(--ink-500); font-size: 14px; }

.gameShelf { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 14px; }
.shelfCard {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 15px;
  background: var(--cream-100);
  box-shadow: 0 8px 0 rgba(51,69,43,.12), 0 15px 28px rgba(27,38,23,.09);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.shelfCard:hover { transform: translateY(-6px); border-color: var(--gold-500); box-shadow: 0 11px 0 rgba(207,148,16,.2), 0 22px 36px rgba(27,38,23,.15); }
.shelfCard > img { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; }
.shelfInfo { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1px 10px; padding: 13px 14px 14px; }
.shelfInfo b { min-width: 0; overflow: hidden; color: var(--field-900); font-family: var(--display); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.shelfInfo small { grid-row: 2; color: var(--ink-500); font-size: 11px; }
.shelfInfo strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 9px 12px;
  border: 1px solid var(--gold-600);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 4px 0 var(--gold-600), 0 8px 14px rgba(97, 65, 4, .16), inset 0 1px 0 rgba(255,255,255,.58);
  color: var(--field-900);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.shelfCard:hover .shelfInfo strong {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--gold-600), 0 11px 18px rgba(97, 65, 4, .2), inset 0 1px 0 rgba(255,255,255,.64);
  filter: saturate(1.06);
}
.shelfCard:active .shelfInfo strong {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--gold-600), 0 4px 8px rgba(97, 65, 4, .16), inset 0 1px 0 rgba(255,255,255,.45);
}

.worlds .resume.on {
  display: grid;
  grid-template-columns: auto auto minmax(0,1fr) auto;
  margin-top: 25px;
  padding: 12px 14px;
  border: 1px solid var(--cream-300);
  border-left: 8px solid var(--field-700);
  border-radius: 12px;
  background: rgba(243,236,218,.9);
}
.worlds .resumeLabel { grid-column: auto; border: 0; margin: 0; padding: 0 18px 0 4px; white-space: nowrap; }

/* ---------- editorial guide rail ---------- */
.guideRail {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid var(--cream-300);
  border-radius: 16px;
  background: rgba(255,255,255,.32);
  box-shadow: 0 12px 30px rgba(27,38,23,.08);
}
.guideRailLead { padding: 25px 26px; background: var(--field-800); color: var(--cream-50); }
.guideRailLead > span { color: var(--gold-300); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.guideRailLead h2 { margin: 7px 0 15px; font-size: 23px; line-height: 1.05; }
.guideRailLead a { color: var(--gold-300); font-size: 13px; font-weight: 800; }
.guideTeaser { display: grid; align-content: center; gap: 7px; padding: 22px; border-left: 1px solid var(--cream-300); transition: background .16s; }
.guideTeaser:hover { background: var(--cream-100); }
.guideTeaser > span { color: var(--gold-600); font-size: 11px; font-weight: 900; }
.guideTeaser b { color: var(--field-900); font-family: var(--display); font-size: 16px; line-height: 1.25; }
.guideTeaser small { color: var(--ink-500); }

.worlds .studio { margin-top: 44px; box-shadow: 0 18px 42px rgba(27,38,23,.13); }

@media (max-width: 1120px) {
  .homeHero { grid-template-columns: minmax(350px, .9fr) 1.25fr; min-height: 520px; }
  .playWays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playWaysIntro { grid-column: 1 / -1; padding: 18px 4px 4px; }
  .playWaysIntro p { max-width: 56ch; }
  .heroEditorial { padding-left: 38px; }
  .heroEditorial h1 { font-size: 52px; }
  .heroEditorial .heroActions { flex-wrap: wrap; }
  .gameShelf { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shelfCardFeatured { grid-column: auto; }
  .guideRail { grid-template-columns: 1fr 1fr; }
  .guideRailLead { grid-row: span 2; }
}

@media (max-width: 860px) {
  .brand { padding-right: 12px; }
  .brandWord { display: none; }
  .homeHero { display: block; min-height: 0; }
  .playWays { grid-template-columns: 1fr; }
  .playWaysIntro { grid-column: auto; }
  .playWay { min-height: 0; }
  .heroEditorial { padding: 42px 34px; }
  .heroEditorial::after { display: none; }
  .heroEditorial h1 { font-size: clamp(43px, 9vw, 62px); }
  .heroWorld { height: 430px; }
  .worldChipOne { left: 24px; }
  .worldsHead { grid-template-columns: 1fr auto; }
  .worldsHead h2 { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .worldsHead > span { grid-row: 2; }
  .worldsHead p { grid-row: 2; }
}

@media (max-width: 640px) {
  body { background-size: 100% 28px, auto, auto; }
  .topbar::before, .topbar::after { display: none; }
  .nav { min-height: 0; }
  .brand { align-self: auto; margin-block: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  .brand img { width: 42px; height: 42px; }
  .homeHero { width: calc(100% - 20px); margin-top: 12px; border-radius: 17px; }
  .playWays { width: calc(100% - 20px); gap: 9px; margin-top: 12px; }
  .playWaysIntro { padding: 16px 8px 5px; }
  .playWaysIntro h2 { font-size: 25px; }
  .playWay { padding: 16px 17px; border-radius: 15px; }
  .playWayIos { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; }
  .playWayIos .playWayIcon { width: 68px; height: 68px; border-radius: 16px; }
  .homeHero::after { inset: 7px; border-radius: 11px; }
  .heroEditorial { padding: 34px 24px 30px; }
  .heroEyebrow { margin-bottom: 12px; font-size: 9px; }
  .heroEditorial h1 { font-size: clamp(39px, 12vw, 53px); }
  .heroEditorial > p { margin: 18px 0 21px; font-size: 15px; }
  .heroEditorial .heroActions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .heroEditorial .btnPlay, .heroEditorial .btnGhost { justify-content: center; width: 100%; }
  .heroModes { margin-top: 27px; }
  .heroModes li { display: block; }
  .heroModes b { display: block; margin-bottom: 5px; }
  .heroWorld { height: 330px; }
  .heroWorld > img { object-position: 64% 50%; }
  .heroGameMark { left: 18px; right: 18px; bottom: 18px; }
  .heroGameMark img { width: 180px; }
  .worldChip { display: none; }
  /* Sohbet zaten mobil header'da görünür. Sabit dock ilk ekranın Cotton
     Tycoon kartını kapattığı için homepage'de ikinci bir giriş çizilmez. */
  body:has(.homeHero) > .eh-dock { display: none; }
  .worlds { padding-top: 37px; }
  .worldsHead { gap: 8px; margin-bottom: 14px; }
  .worldsHead h2 { font-size: 28px; }
  .worldsHead > span, .worldsHead p { font-size: 10px; }
  .gameShelf { grid-template-columns: 1fr; gap: 13px; }
  .shelfCard { display: grid; grid-template-columns: 43% 57%; }
  .shelfCard > img { height: 100%; aspect-ratio: auto; }
  .shelfInfo { padding: 14px 12px; }
  .shelfInfo b { white-space: normal; font-size: 16px; line-height: 1.1; }
  .shelfInfo strong { grid-column: 1 / -1; grid-row: 3; width: 100%; margin-top: 8px; padding-block: 9px; }
  .worlds .resume.on { grid-template-columns: auto minmax(0,1fr); }
  .worlds .resumeLabel { grid-column: 1 / -1; padding: 0 0 9px; }
  .guideRail { grid-template-columns: 1fr; }
  .guideRailLead { grid-row: auto; }
  .guideTeaser { padding: 18px 20px; border-left: 0; border-top: 1px solid var(--cream-300); }
  .worlds .studio { margin-top: 28px; }
}
