/* Bosh sahifa joylashuvi — dizayn (ranglar, shrift, panellar) void.css dan */

/* ---------- Yuqori panel ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background .3s, box-shadow .3s; }
.topbar.solid { background: rgba(10, 5, 24, .9); backdrop-filter: blur(8px); box-shadow: 0 3px 0 #000; }
.announce { background: linear-gradient(90deg, var(--purple), var(--purple-2) 50%, var(--sky-deep)); border-bottom: 2px solid #000; font-size: 13px; font-weight: 600; color: #fff; }
.announce-in { max-width: 1200px; margin: 0 auto; padding: 6px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge-new { font: 400 11px var(--hud); background: #000; color: #ffe066; padding: 2px 6px; margin-right: 6px; }
.announce-link { white-space: nowrap; text-decoration: underline; }
.head { max-width: 1200px; margin: 0 auto; padding: 10px 16px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font: 600 11px var(--body); color: #e6e0f5; text-shadow: none; margin-top: 4px; letter-spacing: 0; }
.tabs { max-width: 1200px; margin: 0 auto; padding: 4px 16px 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.head-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 38px; padding: 0 10px; cursor: pointer;
  background: rgba(22, 11, 43, .85); border: 3px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.menu-btn span { display: block; height: 3px; background: #fff; transition: transform .2s, opacity .2s; }
.topbar.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.topbar.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #e6e0f5;
  background: rgba(22, 11, 43, .75); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .15s, border-color .15s; }
.tabs a img { width: 18px; height: 18px; image-rendering: pixelated; }
.tabs a:hover { border-color: var(--purple-2); }
.tabs a.active { background: linear-gradient(180deg, var(--purple-2), var(--purple)); color: #fff; }

.hud { top: auto; bottom: 14px; left: auto; right: 14px; }
.deep .lava-pool { bottom: 0; width: 34%; height: 96px; }
.deep .lava-pool.r { display: none; }
section[id], #qoidalar { scroll-margin-top: 130px; }

/* ---------- Bosh (hero) ---------- */
/* Hero tepadan boshlanadi (markazlashtirilsa sarlavha ostiga kirib ketadi) */
.layer.sky { place-items: start center; padding-top: calc(var(--topbar-h, 150px) + 48px); padding-bottom: 210px; }
.hero { width: 100%; max-width: 980px; }
.sky .logo-wrap { width: min(170px, 42vw); margin-bottom: 18px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(22, 11, 43, .8); border: 3px solid #000; }
.tag-hot { font: 400 11px var(--hud); padding: 3px 8px; background: var(--sky-deep); color: #fff; }
.hero h1 { font-size: clamp(52px, 12vw, 104px); }
.hero .welcome { max-width: 640px; margin-left: auto; margin-right: auto; }

.ip-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto 22px; text-align: left; }
.ip-card { padding: 16px 18px; }
.ip-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ip-kind { display: inline-flex; align-items: center; gap: 8px; font: 400 11px var(--hud); color: var(--sky-light); letter-spacing: .05em; }
.ip-kind img { width: 18px; height: 18px; image-rendering: pixelated; }
.copy-btn { font: 600 12px var(--body); color: #fff; background: rgba(255, 255, 255, .08); border: 2px solid #000; padding: 4px 10px; cursor: pointer; }
.copy-btn:hover { background: var(--purple); }
.ip-addr { font: 700 30px var(--title); color: #fff; text-shadow: 0 3px 0 #000; letter-spacing: .02em; }
.ip-addr.soon { color: #8f86b3; }
.ip-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: #a59cc6; }
.muted-card { opacity: .88; }

.hero-btns { margin-bottom: 26px; }
.hero-btns .mc-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; padding: 12px 22px; }
.hero-btns img { width: 22px; height: 22px; image-rendering: pixelated; }
.ghost-btn { background: rgba(22, 11, 43, .85); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 860px; margin: 0 auto; }
.hstat { padding: 12px 10px; text-align: center; }
.hstat .label { font: 400 10px var(--hud); letter-spacing: .1em; color: var(--sky-light); margin-bottom: 4px; }
.hstat .value { display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 20px var(--title); color: #fff; }

/* ---------- Bo'lim sarlavhalari ---------- */
.layer { padding-top: 120px; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.kicker-pill { display: inline-block; margin-bottom: 12px; padding: 4px 10px; font: 400 11px var(--hud); letter-spacing: .1em;
  color: var(--accent, var(--lilac)); background: rgba(0, 0, 0, .6); border: 2px solid var(--accent, var(--purple-2)); }
.kicker-pill.red { color: #ff8a8a; border-color: #ff6b6b; }
.sec-title { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0;
  font: 700 clamp(30px, 5.5vw, 52px) var(--title); color: #fff; text-shadow: 0 4px 0 var(--accent-dark, var(--purple)), 0 7px 0 #000; }
.sec-sub { margin: 12px 0 0; font-size: 17px; color: #e6e0f5; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.sub-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 22px;
  font: 700 30px var(--title); color: #fff; text-shadow: 0 3px 0 var(--accent-dark, var(--purple)), 0 5px 0 #000; }
.sub-title img { width: 32px; height: 32px; image-rendering: pixelated; }
.shard.sm { --s: 44px; }

/* ---------- Crate kalitlari ---------- */
.crates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.crate-card { --kc: #b9c0cc; --kd: #5d6470; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 18px 20px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.crate-card::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--kc) 28%, transparent), transparent 60%); }
.crate-card:hover { transform: translateY(-6px); border-color: var(--kc); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .08), 10px 10px 0 rgba(0, 0, 0, .45), 0 0 36px color-mix(in srgb, var(--kc) 45%, transparent); }
.crate-card.key-prime { --kc: #2ec5f7; --kd: #0f6f99; }
.crate-card.key-crimson { --kc: #ff3b52; --kd: #8a1020; }
.crate-card.key-amethyst { --kc: #c06bff; --kd: #5b2596; }
.crate-card.key-gold { --kc: #ffd23f; --kd: #8a6400; }
.key-ico { position: relative; width: 84px; height: 84px; image-rendering: pixelated; margin-bottom: 8px;
  filter: drop-shadow(0 0 14px var(--kc)) drop-shadow(4px 4px 0 rgba(0, 0, 0, .5)); animation: keyFloat 3s ease-in-out infinite; }
.crate-card:hover .key-ico { animation-duration: 1.2s; }
.crate-card h3 { position: relative; margin: 0 0 6px; font: 700 26px var(--title); color: var(--kc); text-shadow: 0 3px 0 var(--kd), 0 5px 0 #000; }
.crate-card p { position: relative; flex: 1; margin: 0 0 12px; font-size: 14px; color: #c9c0e6; }
.crate-card .price { position: relative; }
.crate-card .mc-btn { position: relative; width: 100%; }
.price .per { font-size: 13px; color: #a59cc6; }
@keyframes keyFloat { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-10px) rotate(8deg); } }

/* ---------- Do'kon (yer yuzasi) ---------- */
.surface .shop-section { margin-top: 56px; }
.surface .shop-section:first-of-type { margin-top: 0; }
.contact-box { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: center; margin-top: 60px; }
/* Xarid tartibi — raqam chap tomonda, karta ichida (tepaga chiqib kesilmaydi) */
.contact-box .buy-steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 14px; }
.contact-box .buy-steps .panel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.35; }
.contact-box .buy-steps .num { position: static; flex: none; width: 36px; height: 36px; font-size: 18px; border-width: 3px; }
.contact-right { text-align: center; }
.contact-right .mc-btn { width: 100%; margin-top: 10px; }

/* ---------- Reyting (g'orlar) ---------- */
.crown-ico { width: 48px; height: 36px; image-rendering: pixelated; filter: drop-shadow(0 0 12px rgba(255, 210, 63, .6)); animation: bob 2.4s ease-in-out infinite; }
.lb { max-width: 900px; margin: 0 auto; padding: 18px 18px 14px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lb-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font: 600 14px var(--body); color: #e6e0f5; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.lb-tab img { width: 18px; height: 18px; image-rendering: pixelated; }
.lb-tab:hover { border-color: var(--sky); }
.lb-tab.active { color: #fff; background: linear-gradient(180deg, var(--purple-2), var(--purple)); }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 44px 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px;
  background: rgba(0, 0, 0, .35); border: 2px solid #000; animation: rowIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.lb-row:hover { background: rgba(123, 47, 242, .18); }
.lb-row.top1 { background: linear-gradient(90deg, rgba(255, 210, 63, .18), rgba(0, 0, 0, .35) 60%); border-color: #6b5200; }
.lb-row.top2 { background: linear-gradient(90deg, rgba(227, 232, 240, .14), rgba(0, 0, 0, .35) 60%); }
.lb-row.top3 { background: linear-gradient(90deg, rgba(224, 152, 90, .16), rgba(0, 0, 0, .35) 60%); }
.lb-place { display: grid; place-items: center; font: 700 20px var(--title); color: #a59cc6; }
.lb-place img { width: 36px; height: 27px; image-rendering: pixelated; }
.lb-row.top1 .lb-place img { animation: bob 2s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(255, 210, 63, .7)); }
.lb-head { width: 40px; height: 40px; image-rendering: pixelated; border: 2px solid #000; background: #222; }
.lb-who { min-width: 0; }
.lb-who b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-who small { display: block; font-size: 12px; color: #a59cc6; }
.lb-val { font: 700 18px var(--title); color: var(--sky-light); text-shadow: 0 2px 0 #000; white-space: nowrap; }
.lb-row.top1 .lb-val { color: #ffd23f; }
.lb-empty { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; text-align: center; background: rgba(0, 0, 0, .3); border: 2px dashed #3a2d57; }
.lb-empty img { width: 64px; height: 48px; image-rendering: pixelated; opacity: .8; animation: bob 2.4s ease-in-out infinite; }
.lb-empty b { font: 700 20px var(--title); color: #fff; }
.lb-empty span { font-size: 14px; color: #a59cc6; }
.lb-foot { margin-top: 10px; font: 400 11px var(--hud); color: #8f86b3; text-align: right; }
.about-head { margin-top: 100px; }
#reyting, #haqida { scroll-margin-top: 130px; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-16px); } }

/* ---------- Server haqida (g'orlar) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { text-align: center; padding: 20px 16px 24px; }
.scene.sm { min-height: 150px; }
.scene.sm .cube { --s: 84px; }
.scene.sm .item-spin { width: 96px; height: 96px; }
.scene.sm .cube-wrap::after { bottom: -40px; }
.feature h3 { margin: 6px 0; font: 700 26px var(--title); color: #fff; text-shadow: 0 3px 0 var(--accent-dark), 0 5px 0 #000; }
.feature p { margin: 0; font-size: 15px; color: #d6cfee; }

/* ---------- Ulanish va qoidalar (deepslate) ---------- */
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 100px; }
.guide { display: flex; flex-direction: column; padding: 24px; }
.guide h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font: 700 24px var(--title); color: #fff; }
.guide h3 img { width: 26px; height: 26px; image-rendering: pixelated; }
.guide-sub { margin: 0 0 16px; font-size: 14px; color: #a59cc6; }
.gsteps { list-style: none; counter-reset: g; flex: 1; display: grid; gap: 10px; margin: 0 0 20px; padding: 0; align-content: start; }
.gsteps li { counter-increment: g; position: relative; min-height: 28px; padding: 2px 0 0 42px; color: #e6e0f5; }
.gsteps li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; font: 700 16px var(--title); color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--purple)); border: 2px solid #000; }
.guide code { padding: 1px 6px; background: rgba(0, 0, 0, .5); color: var(--sky-light); font: 13px ui-monospace, Consolas, monospace; }
.mc-btn.wide { width: 100%; }
.mc-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }

.rule-cards { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; gap: 12px; }
.rule { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-left: 5px solid #ff6b6b; }
.rnum { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font: 700 22px var(--title); color: #fff; background: rgba(224, 27, 27, .35); border: 3px solid #000; }
.rule p { margin: 0; font-size: 16px; font-weight: 600; }

/* ---------- Aloqa (Void) ---------- */
.portal.sm { width: min(150px, 40vw); margin-bottom: 26px; }
.void-title { font-size: clamp(30px, 6vw, 56px); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; text-align: left; }
.ccard { display: block; width: 100%; padding: 22px; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s; }
.ccard:hover { transform: translateY(-4px); border-color: var(--sky); }
.ccard.disabled { cursor: default; opacity: .7; }
.ccard.disabled:hover { transform: none; border-color: #000; }
.ccard img { width: 36px; height: 36px; image-rendering: pixelated; }
.ccard h3 { margin: 10px 0 6px; font: 700 22px var(--title); color: #fff; }
.ccard p { margin: 0 0 12px; font-size: 14px; color: #c9c0e6; }
.clink { font-size: 14px; font-weight: 700; color: var(--sky-light); }

.site-foot { padding: 22px 16px; text-align: left; background: #05020f; border-top: 3px solid #1d1240; }
.foot-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-links a { padding: 6px 12px; font-size: 13px; font-weight: 600; color: #e6e0f5; background: rgba(255, 255, 255, .06); border: 2px solid #000; }
.foot-links a:hover { border-color: var(--purple-2); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; padding: 10px 18px; font-weight: 700; pointer-events: none; opacity: 0;
  transform: translate(-50%, 30px); transition: opacity .25s, transform .25s;
  background: #120a26; border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--purple), 6px 6px 0 rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Telefon ---------- */
@media (max-width: 820px) {
  .announce-link { display: none; }
  .announce-in { justify-content: center; text-align: center; font-size: 12px; }
  .head { padding: 8px 12px; }
  /* Telefon menyusi: ☰ bosilganda pastga ochiladi */
  .menu-btn { display: flex; }
  .tabs { display: none; padding: 8px 12px 12px; }
  .topbar.menu-open { background: rgba(10, 5, 24, .97); box-shadow: 0 3px 0 #000; }
  .topbar.menu-open .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; animation: menuIn .2s ease-out; }
  .topbar.menu-open .tabs a { justify-content: flex-start; padding: 10px 12px; font-size: 15px; }
  .layer.sky { padding-top: calc(var(--topbar-h, 110px) + 44px); }
  /* Xarid tartibi telefonda — ixcham ro'yxat */
  .contact-box { padding: 16px; gap: 16px; }
  .contact-box .buy-steps { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .contact-box .buy-steps .panel { display: flex; align-items: center; gap: 12px; padding: 10px 12px; box-shadow: none; }
  .contact-box .buy-steps .num { position: static; flex: none; width: 34px; height: 34px; font-size: 18px; border-width: 3px; }
  .announce-in { font-size: 11px; padding: 5px 10px; }
  .ip-cards, .connect, .contact-box { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .ip-addr { font-size: 26px; }
  .lb-row { grid-template-columns: 34px 34px 1fr auto; gap: 8px; padding: 8px; }
  .lb-head { width: 34px; height: 34px; }
  .lb-val { font-size: 15px; }
  .lb-who small { display: none; }
  .hud { display: none; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
