:root {
  --bg: #03080d;
  --panel: rgba(7, 18, 27, .9);
  --panel-2: rgba(12, 29, 41, .92);
  --line: rgba(235, 188, 88, .34);
  --line-strong: rgba(255, 202, 87, .7);
  --text: #f4f1e9;
  --muted: #b8c4cd;
  --accent: #e5b84f;
  --accent-light: #ffd66e;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 72% 10%, rgba(229, 184, 79, .08), transparent 32rem),
    linear-gradient(180deg, rgba(2, 8, 14, .12), rgba(2, 8, 14, .62) 58%, rgba(2, 7, 12, .82)),
    url('/images/backgrounds/fantasy-castle-desktop.webp');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font: 16px/1.55 Arial, Helvetica, sans-serif;
}

img { max-width: 100%; }
a { color: var(--accent-light); text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.ui-icon { display: block; width: 24px; height: 24px; background: url('/images/icon/ui-icons.png') 0 0 / 500% 100% no-repeat; }
.ui-icon-device { background-position: 25% 0; }
.ui-icon-players { background-position: 50% 0; }
.ui-icon-news { background-position: 75% 0; }
.ui-icon-gamepad { background-position: 100% 0; }
h1, h2, h3, h4, h5, p, ul { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }

.main {
  position: relative;
  width: min(1080px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 32px;
  word-wrap: break-word;
}

.titles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  padding: 12px 0 18px;
  border-bottom: 1px solid rgba(235, 188, 88, .3);
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); }
.brand-mark {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--accent-light);
  background: linear-gradient(145deg, #1b2228, #0e1216);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #071019, 0 0 22px rgba(255, 204, 91, .28);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: 1px solid rgba(255, 214, 110, .72);
  border-right-color: rgba(255, 214, 110, .16);
  border-bottom-color: rgba(255, 214, 110, .32);
  border-radius: 50%;
  filter: drop-shadow(-2px -1px 4px rgba(255, 214, 110, .45));
  transform: rotate(-18deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 1px;
  right: -6px;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff6cc, transparent);
  box-shadow: 0 0 7px 2px rgba(255, 214, 110, .65);
  transform: rotate(-18deg);
}
.brand:hover .brand-mark, .footer-brand:hover .brand-mark { box-shadow: inset 0 0 0 4px #071019, 0 0 28px rgba(255, 204, 91, .5); }
.brand strong { display: block; font-size: 1.16rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: #f5f3ec;
  background: rgba(4, 13, 21, .64);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: inset 0 0 16px rgba(255, 210, 101, .05), 0 0 18px rgba(255, 201, 80, .1);
}
.header-link .ui-icon { width: 26px; height: 26px; }
.header-link:hover { color: var(--accent-light); box-shadow: inset 0 0 18px rgba(255, 210, 101, .08), 0 0 22px rgba(255, 201, 80, .2); }

.catalog-intro { max-width: 850px; margin-bottom: 18px; }
.hero-art-copy {
  position: absolute;
  top: 124px;
  right: 18px;
  width: 148px;
  pointer-events: none;
  text-align: right;
}
.hero-art-copy > span {
  display: block;
  color: rgba(205, 216, 223, .72);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .25em;
  line-height: 1.75;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}
.hero-art-copy b { color: rgba(255, 214, 110, .92); font-weight: 700; }
.hero-art-copy > span::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin: 13px 2px 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent-light));
  box-shadow: 0 0 8px rgba(255, 211, 101, .72);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent-light); box-shadow: 0 0 8px rgba(255, 211, 101, .8); }
h1 { margin-bottom: 12px; font: 800 clamp(2.2rem, 6vw, 4rem)/1.02 'Segoe UI', Arial, sans-serif; letter-spacing: -.045em; text-shadow: 0 3px 20px rgba(0, 0, 0, .55); }
.catalog-intro h1 span { color: var(--accent-light); }
.lead { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.04rem; }
.catalog-meta { display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin: 0 0 18px; }
.clrt2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 11px;
  color: #d4d9da;
  background: rgba(3, 13, 21, .66);
  border: 1px solid rgba(229, 184, 79, .48);
  border-radius: 999px;
  font-size: .82rem;
  box-shadow: inset 0 0 14px rgba(255, 209, 97, .04), 0 8px 24px rgba(0, 0, 0, .24);
}
.clrt2::before { content: ""; width: 7px; height: 7px; background: #7acb78; border-radius: 50%; box-shadow: 0 0 9px rgba(122, 203, 120, .75); }
.catalog-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 24px; padding: 2px 0; }
.catalog-feature { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 0 20px; border-left: 1px solid rgba(229, 184, 79, .25); }
.catalog-feature:first-child { padding-left: 0; border-left: 0; }
.feature-icon { position: relative; isolation: isolate; display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: var(--accent-light); background: rgba(4, 14, 23, .68); border: 1px solid rgba(229, 184, 79, .62); border-radius: 50%; box-shadow: inset 0 0 14px rgba(255, 210, 96, .05), 0 0 15px rgba(255, 201, 80, .1); }
.feature-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  padding: 2px;
  background: conic-gradient(from var(--shine-angle), transparent 0 12deg, rgba(255, 214, 110, .48) 28deg, #fff7c9 62deg, var(--accent-light) 96deg, transparent 120deg);
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(255, 215, 101, .68));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.feature-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 8px;
  height: 4px;
  background: radial-gradient(ellipse, #fffbe2, rgba(255, 217, 105, .7) 38%, transparent 72%);
  filter: drop-shadow(0 0 4px rgba(255, 218, 111, .9));
  transform: rotate(-34deg);
}
.catalog-feature:nth-child(1) .feature-icon { --shine-angle: 205deg; }
.catalog-feature:nth-child(2) .feature-icon { --shine-angle: 325deg; }
.catalog-feature:nth-child(3) .feature-icon { --shine-angle: 85deg; }
.catalog-feature:nth-child(2) .feature-icon::after { top: 8px; right: -2px; left: auto; transform: rotate(48deg); }
.catalog-feature:nth-child(3) .feature-icon::after { top: auto; bottom: -1px; left: 19px; transform: rotate(0); }
.feature-icon .ui-icon { width: 34px; height: 34px; }
.catalog-feature strong, .catalog-feature small { display: block; }
.catalog-feature strong { color: #eef1f2; font-size: .88rem; line-height: 1.25; }
.catalog-feature small { margin-top: 3px; color: #8fa1ae; font-size: .75rem; line-height: 1.25; }

.sp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.name { min-width: 0; }
.sp > .name:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
.igra {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  min-height: 168px;
  height: 100%;
  padding: 18px;
  overflow: hidden;
  color: var(--text);
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(229, 184, 79, .52);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 235, 181, .06), 0 16px 40px rgba(0, 0, 0, .36);
  backdrop-filter: blur(9px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.igra::before, .igra::after {
  content: "";
  position: absolute;
  height: 4px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 54% 50%, #fffbe6 0 2px, #ffd66e 3px, transparent 9px),
    linear-gradient(90deg, transparent, rgba(255, 196, 54, .18) 18%, rgba(255, 217, 110, .7) 44%, #fff0af 54%, rgba(255, 190, 45, .38) 72%, transparent);
  filter: drop-shadow(0 0 5px rgba(255, 199, 68, .72));
  transition: width .18s ease, opacity .18s ease;
}
.igra::before { top: -2px; left: 45%; width: 142px; opacity: .94; }
.igra::after { bottom: -2px; left: 57%; width: 66px; opacity: .25; transform: translateX(-50%) scaleX(-1); }
.igra:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(255, 235, 181, .1), 0 20px 46px rgba(0, 0, 0, .46), 0 0 18px rgba(255, 197, 66, .08); }
.igra:hover::before { width: 168px; opacity: 1; }
.igra:hover::after { width: 86px; opacity: .42; }
.igraimg {
  display: block;
  width: 132px;
  height: 132px;
  overflow: hidden;
  background: #0b0f12;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .36), 0 0 14px rgba(255, 201, 80, .08);
}
.igraimg img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.igra-text { display: flex; min-width: 0; height: 100%; flex-direction: column; align-items: flex-start; padding: 1px 0 1px 16px; }
.igra h2 { margin: 0 0 7px; color: var(--text); font: 750 1.24rem/1.2 'Segoe UI', Arial, sans-serif; letter-spacing: -.015em; }
.game-title { color: var(--text); }
.game-title:hover { color: var(--accent-light); }
.clrt1 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px 11px 7px 13px;
  color: #17130a;
  background: linear-gradient(135deg, #ffd86d, #d9a638 72%);
  border: 1px solid #ffe08a;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 13px rgba(229, 184, 79, .2);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.play::after {
  content: "→";
  color: #17130a;
  font-size: 1rem;
  line-height: .8;
  transition: transform .18s ease;
}
.play:hover { color: #0e0c07; background: linear-gradient(135deg, #ffe897, #eabb48 72%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 5px 18px rgba(255, 204, 82, .38); transform: translateY(-1px); }
.play:hover::after { transform: translateX(3px); }
.game-footer { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.game-footer .play { flex: 0 0 auto; margin: 0; }
.game-domain { min-width: 0; overflow: hidden; color: #717c81; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }

.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  margin: 38px 0 30px;
  padding: 22px 26px;
  background: linear-gradient(110deg, rgba(8, 21, 30, .92), rgba(14, 24, 29, .76));
  border: 1px solid rgba(229, 184, 79, .48);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 235, 181, .05), 0 18px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}
.about-title { display: flex; align-items: center; gap: 18px; }
.about-icon { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; background: rgba(3, 12, 19, .72); border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: 0 0 18px rgba(255, 204, 83, .12); }
.about-icon .ui-icon { width: 42px; height: 42px; }
.about h2 { margin: 0; font: 750 clamp(1.35rem, 3vw, 1.75rem)/1.14 'Segoe UI', Arial, sans-serif; letter-spacing: -.025em; }
.about p { margin: 0; color: #c1c7c9; }
.join-games { margin: 26px 0 20px; text-align: center; }
.join-games h3 { display: grid; grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr); align-items: center; gap: 22px; margin: 0 auto 8px; font-size: 1rem; }
.join-games h3::before, .join-games h3::after { content: ""; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-light)); box-shadow: 0 0 8px rgba(255, 211, 101, .42); }
.join-games h3::after { background: linear-gradient(90deg, var(--accent-light), transparent); }
.join-games a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 4px; }
.join-games a span { display: inline-block; margin-left: 7px; font-size: 1.25rem; text-decoration: none; transition: transform .18s ease; }
.join-games a:hover span { transform: translateX(3px); }

.game-page {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 14px 0 48px;
}
.game-cover { width: 100%; max-width: 280px; overflow: hidden; aspect-ratio: 1; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 20px 55px rgba(0, 0, 0, .42), 0 0 18px rgba(255, 201, 80, .08); }
.game-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.game-copy h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.game-copy .lead { margin-bottom: 26px; }
.game-description { max-width: 820px; margin: 0 0 48px; padding: 26px 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(8px); }
.game-description h2 { margin-bottom: 10px; font-size: 1.45rem; }
.game-description p { margin: 0; color: #c8ced0; }
.breadcrumbs { display: flex; gap: 9px; margin: -18px 0 28px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--accent-light); }
.primary-action, .ssilki1, .ssilki2, .ssilki {
  display: inline-flex;
  justify-content: center;
  padding: 12px 18px;
  color: #17130b;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 800;
}
.primary-action:hover, .ssilki1:hover, .ssilki2:hover, .ssilki:hover { background: var(--accent-light); }
.secondary-link { display: inline-block; margin-left: 16px; color: var(--muted); }
.back-link { margin: 24px 0 0; }

.news-article { max-width: 850px; margin: 0 auto 50px; }
.news-article-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: start; }
.news-article-head img { width: 150px; height: 150px; object-fit: cover; border: 1px solid var(--line); border-radius: 16px; }
.news-article-head h1 { font-size: clamp(2rem, 6vw, 4rem); }
.news-body { margin: 34px 0; padding: 30px; color: #d8dddf; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); }
.article-actions { display: flex; align-items: center; }

.title, .text_inf, .block_dop2, .c2 {
  margin-bottom: 14px;
  padding: 22px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid #293238;
  border-radius: 14px;
}
.title { padding: 12px 18px; border-left: 3px solid var(--accent); }
.razriv { height: 12px; }
.navik { text-align: center; }
.navikn, .naviknn { display: inline-block; margin: 10px 3px; padding: 8px 12px; color: var(--text); background: var(--panel); border: 1px solid #303940; border-radius: 8px; }
.naviknn { color: #17130b; background: var(--accent); }

.foot { display: grid; grid-template-columns: 1fr 1.7fr 1fr; align-items: center; gap: 24px; margin: 0; padding: 20px 0 4px; color: #8f989c; border-top: 1px solid rgba(235, 188, 88, .18); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); justify-self: start; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { font-size: 1.05rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand small { margin-top: 5px; color: #8f9ba3; font-size: .75rem; }
.footer-meta { text-align: center; }
.foot .small { display: block; margin-top: 7px; color: #657076; font-size: .75rem; line-height: 1.4; }
.footer-socials { display: flex; justify-content: flex-end; }
.foot2 { margin-top: 16px; color: #828b8f; font-size: .75rem; text-align: center; }
.mini-bl2 { display: inline-grid; width: 38px; height: 38px; margin: 0 3px; place-items: center; background: rgba(5, 15, 23, .82); border: 1px solid var(--line); border-radius: 50%; }
.mini-bl2 img { display: block; max-width: 23px; max-height: 23px; }
.small { font-size: .8rem; }
.medium { font-size: .9rem; }
.center { text-align: center; }
.right, .text-right { text-align: right !important; }
.left { text-align: left; }
.bold { font-weight: 700; }
.float-left { float: left; }
.float-right { float: right; }
.img { vertical-align: middle; border: 0; }

@media (max-width: 980px) {
  .hero-art-copy { display: none; }
}

@media (max-width: 760px) {
  body { background-image: radial-gradient(circle at 75% 8%, rgba(229, 184, 79, .07), transparent 22rem), linear-gradient(180deg, rgba(2, 8, 14, .18), rgba(2, 8, 14, .68) 52%, rgba(2, 7, 12, .84)), url('/images/backgrounds/fantasy-castle-mobile.webp'); background-position: center top, center top, 63% top; background-attachment: scroll; }
  .main { width: min(100% - 20px, 620px); padding-top: 8px; }
  .titles { margin-bottom: 30px; }
  .catalog-intro { margin-bottom: 16px; }
  .catalog-features { margin-bottom: 20px; }
  .catalog-feature { gap: 8px; padding: 0 10px; }
  .feature-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .feature-icon .ui-icon { width: 30px; height: 30px; }
  .catalog-feature strong { font-size: .78rem; }
  .catalog-feature small { font-size: .75rem; }
  .sp { grid-template-columns: 1fr; gap: 12px; }
  .sp > .name:last-child:nth-child(odd):not(:first-child) { grid-column: auto; width: 100%; }
  .igra { grid-template-columns: 112px minmax(0, 1fr); min-height: 140px; padding: 13px; border-radius: 15px; }
  .igraimg { width: 112px; height: 112px; border-radius: 12px; }
  .igra-text { padding-left: 14px; }
  .about { grid-template-columns: 1fr; gap: 12px; margin-top: 38px; padding: 23px; }
  .join-games h3 { display: block; }
  .join-games h3::before, .join-games h3::after { display: none; }
  .foot { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; text-align: center; }
  .footer-brand, .footer-socials { justify-self: center; }
  .footer-socials { justify-content: center; }
  .game-page { grid-template-columns: 1fr; gap: 26px; }
  .game-cover { max-height: 280px; margin: 0 auto; }
  .news-article-head { grid-template-columns: 1fr; }
  .news-article-head img { width: 100%; height: min(300px, 65vw); }
}

@media (max-width: 390px) {
  .brand small { display: none; }
  .catalog-feature { flex-direction: column; align-items: flex-start; padding: 0 8px; }
  .catalog-feature small { display: none; }
  .igra { grid-template-columns: 96px minmax(0, 1fr); padding: 12px; }
  .igraimg { width: 96px; height: 96px; }
  .igra-text { padding-left: 12px; }
  .igra h2 { font-size: 1.05rem; }
  .clrt1 { font-size: .82rem; }
  .play { margin-top: 7px; }
  .secondary-link { display: block; margin: 14px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .igra { transition: none; }
}
