/* The server's home page on top of the website's own css (website/css, untouched): the account side of the header, the
   KASABA HESABI block (shop, ranking, account), the İNDİR block (the game's zip) and the footer's page links. Colors come
   from the website's tokens. */

/* ------------------------------------------------------------------------------------------------ header: sections left, account right */
.primary-nav a { white-space: nowrap; }
.primary-nav .nav-account { color: #ecece7; }
.primary-nav .nav-account:hover, .primary-nav .nav-account:focus-visible { color: #fff; }
.primary-nav .nav-balance { color: #e8b84a; }
.primary-nav .nav-balance:hover, .primary-nav .nav-balance:focus-visible { color: #f5cd6c; }

@media (min-width: 1181px) {
  .home .site-header { gap: clamp(24px, 2.6vw, 44px); }
  .home .primary-nav { flex: 1 1 auto; margin: 0; gap: clamp(18px, 1.9vw, 32px); }
  .primary-nav .nav-account-first { margin-left: auto; }
  .primary-nav .nav-balance { padding: 9px 13px; border: 1px solid rgba(232, 184, 74, .38); background: rgba(232, 184, 74, .06); }
  .primary-nav .nav-account-cta {
    padding: 12px 20px; border: 1px solid rgba(222, 66, 66, .75); background: rgba(124, 18, 21, .22); color: #fff;
    transition: background .2s, border-color .2s;
  }
  .primary-nav .nav-account-cta:hover, .primary-nav .nav-account-cta:focus-visible { background: var(--red); border-color: var(--red); }
}
@media (min-width: 1181px) and (max-width: 1500px) {
  .primary-nav .nav-account-name { display: none; }
}

/* Up to 1180px the menu folds into the website's drop-down (its own rules start at 900px; these carry them up to 1180px). */
@media (max-width: 1180px) {
  .home .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 3; width: 40px; height: 40px;
    margin-left: auto; padding: 8px; border: 0; background: transparent;
  }
  .home .menu-toggle span { display: block; height: 2px; width: 100%; background: #fff; transition: transform .25s, opacity .25s; }
  .home .site-header.menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .home .site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .home .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .home .primary-nav {
    position: absolute; left: 0; right: 0; top: calc(100% - 1px); display: none; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 18px clamp(18px, 4.2vw, 32px) 28px; background: rgba(8, 10, 11, .98); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .home .site-header.menu-open .primary-nav { display: flex; }
  .home .primary-nav a { padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-account-first { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .28); }
  .primary-nav .nav-account-cta {
    margin-top: 16px; padding: 15px 0; border: 0; background: var(--red); color: #fff; text-align: center;
  }
}

/* ------------------------------------------------------------------------------------------------ KASABA HESABI */
.hub { background: linear-gradient(180deg, #080a0b, #0c0f10); }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-height: 420px; padding: 30px 28px 26px;
  overflow: hidden; border: 1px solid var(--line); background: #0b0d0e; transition: border-color .25s, transform .25s;
}
.hub-card img {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62;
  filter: grayscale(.35) contrast(1.05); transition: opacity .35s, transform .6s;
}
.hub-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 11, .35) 0%, rgba(8, 10, 11, .72) 42%, rgba(8, 10, 11, .96) 78%);
}
.hub-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; transition: background .25s; }
.hub-card:hover, .hub-card:focus-visible { border-color: rgba(255, 255, 255, .3); transform: translateY(-3px); }
.hub-card:hover img, .hub-card:focus-visible img { opacity: .8; transform: scale(1.04); }
.hub-card:hover::after, .hub-card:focus-visible::after { background: var(--red-hot); }
.hub-label { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--red-hot); overflow-wrap: anywhere; }
.hub-title { font: 700 clamp(30px, 2.7vw, 42px)/1.04 var(--heading); letter-spacing: .02em; text-transform: uppercase; color: #f3f3ee; }
.hub-card-account .hub-title { color: #e8b84a; }
.hub-figure { font-size: 13px; letter-spacing: .06em; color: #c9cdc9; }
.hub-figure b { color: #e8b84a; font-weight: 700; }
.hub-card p { margin: 0; max-width: 34ch; color: #abb0aa; font-size: 15px; line-height: 1.65; }
.hub-top { display: grid; gap: 0; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hub-top li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hub-top b { font: 700 24px/1 var(--heading); color: #e8b84a; }
.hub-top li:nth-child(2) b { color: #d6d9d5; }
.hub-top li:nth-child(3) b { color: #d0905a; }
.hub-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #f3f3ee; }
.hub-top em { font-style: normal; font-size: 13px; color: #c9cdc9; white-space: nowrap; }
.hub-go {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #fff;
}
.hub-go b { color: var(--red-hot); font-weight: 400; font-size: 18px; transition: transform .25s; }
.hub-card:hover .hub-go b { transform: translate(3px, -3px); }

/* ------------------------------------------------------------------------------------------------ İNDİR: the game's zip */
.download { background: linear-gradient(180deg, #0c0f10, #080a0b); }
.download-panel {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px);
  padding: clamp(30px, 4.4vw, 64px); overflow: hidden; border: 1px solid var(--line); background: #0b0d0e;
}
.download-panel > img {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(.3) contrast(1.05);
}
.download-panel::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 11, .94) 0%, rgba(8, 10, 11, .8) 48%, rgba(8, 10, 11, .9) 100%);
}
.download-panel::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red-hot); }
.download-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.download-copy .display-title { margin: 0; }
.download-copy > p { margin: 0; max-width: 46ch; color: #c3c8c4; font-size: 16px; line-height: 1.7; }
.download-button { min-height: 64px; padding: 0 34px; font-size: 13px; }
.download-button span { font-size: 18px; }
.download-button-off { background: rgba(255, 255, 255, .05); border-color: var(--line); color: var(--dim); cursor: not-allowed; }
.download-button-off:hover { transform: none; }
.download-note { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.download-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; width: 100%; max-width: 520px; margin: 4px 0 0;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.download-facts div { min-width: 0; }
.download-facts dt { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--red-hot); }
.download-facts dd { margin: 6px 0 0; color: #f3f3ee; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.download-steps { display: grid; align-content: center; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.download-steps li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.download-steps b { grid-row: 1 / span 2; font: 700 30px/1 var(--heading); color: var(--red-hot); }
.download-steps strong { font: 700 20px/1.1 var(--heading); letter-spacing: .06em; color: #f3f3ee; }
.download-steps span { color: #abb0aa; font-size: 14px; line-height: 1.6; }

/* ------------------------------------------------------------------------------------------------ footer: the site's own pages */
.footer-site {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-self: flex-end; margin-left: auto; margin-right: 12px; padding: 0 36px 8px 0;
  border-right: 1px solid var(--line);
}
.footer-site a { font-size: 12px; font-weight: 800; letter-spacing: .15em; color: #c3c8c4; transition: color .2s; }
.footer-site a:hover, .footer-site a:focus-visible { color: #fff; }

@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-card-account { grid-column: 1 / -1; min-height: 300px; }
}
@media (max-width: 900px) {
  .download-panel { grid-template-columns: 1fr; }
  .download-panel::before { background: linear-gradient(180deg, rgba(8, 10, 11, .9) 0%, rgba(8, 10, 11, .95) 100%); }
  .footer-top { flex-wrap: wrap; }
  .footer-site { order: 3; width: 100%; margin: 0; padding-right: 0; border-right: 0; }
}
@media (max-width: 680px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card, .hub-card-account { min-height: 0; padding: 24px 20px 22px; }
  .hub-card p { font-size: 14px; }
  .download-panel { padding: 26px 20px; }
  .download-button { width: 100%; }
  .download-facts { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
}
