:root {
  --nretc-navy: #004a99;
  --nretc-navy-dark: #00356e;
  --nretc-grey: #f5f5f5;
  --nretc-white: #ffffff;
  --nretc-border: #d6e1ec;
  --nretc-text: #153150;
  --nretc-fun: #ffb547;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  font-family: 'Inter', Roboto, Arial, sans-serif;
  color: var(--nretc-text);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 181, 71, 0.22), transparent 24%),
    radial-gradient(circle at top left, rgba(0, 74, 153, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #eef4fa 100%);
}

.nretc-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--nretc-border);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(15, 35, 63, 0.08);
}

.admin-bar .nretc-site-header {
  top: 32px;
}

.nretc-site-topbar {
  background: var(--nretc-navy-dark);
  color: #fff;
  font-size: 0.86rem;
}

.nretc-site-topbar__inner,
.nretc-site-header__inner,
.nretc-hero,
.nretc-stats,
.nretc-games-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nretc-site-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nretc-site-topbar__agency {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.nretc-site-topbar__agency span + span {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.nretc-site-topbar__clock {
  white-space: nowrap;
  opacity: 0.92;
}

.nretc-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 0;
}

.nretc-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.nretc-site-brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 30%, var(--nretc-fun), transparent 16%),
    linear-gradient(135deg, var(--nretc-navy), #0a6ac7);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(0, 74, 153, 0.2);
}

.nretc-site-brand__mark img {
  width: 34px;
  height: 34px;
  display: block;
}

.nretc-site-brand strong,
.nretc-site-brand small {
  display: block;
}

.nretc-site-brand small {
  max-width: 420px;
  color: #607189;
  line-height: 1.35;
}

.nretc-site-brand:hover strong,
.nretc-site-footer a:hover {
  color: var(--nretc-navy);
}

.nretc-site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nretc-site-nav a {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  background: #f1f6fc;
  color: var(--nretc-navy);
  border: 1px solid #dce8f5;
}

.nretc-site-nav__cta {
  background: var(--nretc-navy) !important;
  color: #fff !important;
  border-color: var(--nretc-navy) !important;
}

.nretc-portal-shell {
  min-height: calc(100dvh - 132px);
}

.nretc-hero {
  padding: 34px 0 26px;
}

.nretc-hero__panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 181, 71, 0.34), transparent 22%),
    linear-gradient(135deg, rgba(0, 74, 153, 0.98), rgba(0, 53, 109, 0.95));
  color: #fff;
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 24px 50px rgba(0, 74, 153, 0.18);
}

.nretc-hero__panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.08);
}

.nretc-hero__eyebrow {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nretc-hero h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.nretc-hero__lead {
  margin: 0;
  max-width: 760px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.nretc-stats {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--nretc-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.07);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nretc-stats__item {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  background: #f6f9fd;
  color: #526983;
  font-weight: 700;
}

.nretc-stats__item strong {
  color: var(--nretc-navy);
  font-size: 1.05rem;
}

.nretc-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}

.nretc-game-card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--nretc-border);
  box-shadow: 0 18px 40px rgba(15, 35, 63, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 290px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nretc-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 35, 63, 0.12);
}

.nretc-game-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 72% 30%, var(--nretc-fun), transparent 18%),
    linear-gradient(135deg, var(--nretc-navy), #2d6ab1);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  position: relative;
}

.nretc-game-card__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nretc-game-card__icon img + span {
  display: none;
}

.nretc-game-card__icon img.is-broken {
  display: none;
}

.nretc-game-card__icon img.is-broken + span {
  display: block;
}

.nretc-game-card__icon span {
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.nretc-game-card h2 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.nretc-game-card p {
  margin: 0 0 18px;
  flex: 1;
  color: #50627b;
  line-height: 1.6;
}

.nretc-game-card__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nretc-navy), #0a6ac7);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.nretc-site-footer {
  padding: 22px 20px 30px;
  color: #607189;
  background: #fff;
  border-top: 1px solid var(--nretc-border);
}

.nretc-site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.nretc-site-footer strong,
.nretc-site-footer__brand {
  color: var(--nretc-text);
  font-weight: 800;
}

.nretc-site-footer a {
  color: var(--nretc-navy);
  font-weight: 700;
  text-decoration: none;
}

.nretc-portal-empty {
  width: min(800px, calc(100% - 32px));
  margin: 48px auto;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--nretc-border);
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 190px;
  }

  .admin-bar .nretc-site-header {
    top: 46px;
  }

  .nretc-site-topbar__inner {
    min-height: auto;
    padding: 8px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.78rem;
  }

  .nretc-site-topbar__agency {
    gap: 10px;
    flex-wrap: wrap;
  }

  .nretc-site-topbar__agency span + span {
    padding-left: 10px;
  }

  .nretc-site-topbar__clock {
    white-space: normal;
  }

  .nretc-site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nretc-site-nav {
    width: 100%;
  }

  .nretc-site-nav a {
    flex: 1 1 0;
    justify-content: center;
  }

  .nretc-hero__panel {
    padding: 22px;
    border-radius: 24px;
  }

  .nretc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
