/*
-> Данный дизайн разработан дизайнером ANGRY.
-> Для связи используйте Telegram: @angrystyle.
*/
@import  "https://fonts.googleapis.com/css?family=Open+Sans:400";

body {
  background: #42281f;
  -webkit-font-smoothing: antialiased;
  font-family: 'Open Sans',sans-serif;
  font-size: 14px;
  margin: 0 auto;
  max-width: 400px;
  line-height: 21px;
}

a.ah{
	font-weight: bold; 
	color: #dca692;
	text-decoration: none;
    text-shadow: 0 1px 0 #4a2f25;
}

a.ah:hover{
	font-weight: bold; 
	color: #f0dbd2;
	text-decoration: none;
    text-shadow: 0 1px 0 #4a2f25;
}

a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 0 #4a2f25;
}

a:hover {
  color: #e8d363;
  text-shadow: 0 1px 0 #4a2f25;
  transition: .5s;
}

img {
  vertical-align: middle;
  max-width: 100%;
}

p {
  padding: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-size: 29px;
  font-weight: 300;
  text-shadow: 0 1px 2px #67982f;
}

hr {
  border: none;
  margin: 24px 0 0;
  border-bottom: 1px solid #634034;
  border-top: 1px solid #3e271f;
}

snrong {
  font-weight: 700;
}

::selection {
  color: #fff;
  background: #fff;
}

.shadow {
  box-shadow: 0 0 7px 4px #3e251d;
}

.logo {
  background: url(img/fortress.jpeg) center no-repeat;
  height: 200px;
  opacity: .6;
}

.starter-1 {
  background: url(img/starter-1.jpg) center no-repeat;
  height: 150px;
  opacity: .6;
}

.starter-2 {
  background: url(img/starter-2.jpeg) center no-repeat;
  height: 150px;
  
  position: relative;
}



.starter-2 span.lvl{
	position: absolute;
	left: 20px;
	color: #ffffff;
}

.starter-2 span.hp{
	height: 20px;
	width: 100%;
	background-color: rgba(92, 88, 88, 0.5);
	position: absolute;
	bottom: 5px;
}

.starter-2 span.hp .hpbar{
	height: 20px;
	background: #31ce58;
}



.logo:hover, .starter-1:hover, .starter-2:hover {
  opacity: 1;
  transition: .8s;
}

.foot-logo {
  background: url(img/foot-logo.png) center no-repeat;
  height: 95px;
}

.line {
  background: url(img/line.png) left bottom repeat-x #a16b40;
  height: 3px;
}

.content {
  background: #5e3d31;
  text-align: center;
  padding: 20px 10px 20px 0;
}

.block {
  background: #4f3127;
  padding: 0 0 20px;
}

@import url(https://fonts.googleapis.com/css?family=Kelly+Slab);

.gli   {
  display: block;
  position: relative;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  background: #795244;
  text-align: center;
  color: #482d24;
  font-size: 18px;
  border-radius: 20px;
  padding: 7px 10px;
  text-shadow: 0 2px 0 #462d24;
  font-family: 'Kelly Slab', cursive;
  color: #fff;
}

.gl-obv{
  padding: 10px 5px;
  background: #56362c;
  text-align: center;
  margin: -8px 10px 10px 20px;
  color: #dca692;
  border-top: 1px solid #56362c;
  
  font-size: 12px;
}

.block-top {
  background: #4f3127;
  padding: 10px;
}

.icon-gl {
  right: 87px;
  top: 23px;
  position: relative;
  bottom: 1px;
  color: #ead564;
}

.razmet {
  width: 240px;
  margin-left: auto;
  margin-right: auto;
}

.foot-gl-ic {
  background: #e8d363;
  color: #4f3127;
  text-shadow: none;
  padding: 10px 9px 13px 10px;
  border-radius: 50%;
  margin-right: 9px;
}

a.link {
  display: block;
  border-bottom: 1px solid #462b22;
  padding: 10px 10px 10px 18px;
}

a.link:hover {
  background: #5e3d31;
  transition: .8s;
}

a.link p {
  padding: 0;
  display: inline-block;
  margin: 0;
  color: #d69985;
}

a.superlink {
  background: url(img/superlink.png) left center no-repeat,url(img/super-l.png) bottom left repeat-x,url(img/super-l.png) top left repeat-x #62453c;
  padding: 7px;
  display: block;
  text-align: center;
  margin-top: 15px;
  opacity: .7;
}

a.superlink:hover {
  opacity: 1;
  transition: .8s;
}

.foot-l {
  padding: 20px 1px 10px 10px;
  color: #fff;
  text-shadow: 0 1px 0 #4a2f25;
}

.foot-l span {
  color: #e8d363;
}

.count {
  float: right;
  padding: 3px;
  width: 44px;
  text-align: center;
  border-top: 1px solid #231511;
  border-bottom: 1px solid #614035;
  background: #35211a;
  border-radius: 3px;
  margin: 0 17px 0 0;
}

.onli {
  padding: 10px;
}

.top-head {
  background: #5e3d31;
  color: #fff;
  padding: 10px;
  box-shadow: 0 3px 4px #462d24;
  position: relative;
  text-align: center;
}

.icon {
  color: #e8d363;
  font-size: 18px;
}

a.link-top {
  display: block;
  padding: 10px;
  background: #e8d363;
  border-radius: 4px;
  color: #4f3127;
  text-shadow: none;
  margin-bottom: 10px;
}

a.link-top:hover {
  background: #795548;
  transition: .5s;
  color: #fff;
  text-shadow: 0 1px 0 #543b31;
}

a.lik {
  display: inline-table;
  margin: 0;
}


.time {
  display: block;
  position: relative;
  min-width: 57px;
  margin-left: auto;
  margin-right: auto;
  background: #F44336;
  text-align: center;
  color: #fff;
  border-radius: 20px;
  padding: 3px 10px;
  text-shadow: 0 1px 0 #801f18;
}

.obvodka {
  padding: 20px 10px;
  background: #482d24;
  border-radius: 4px;
  text-align: center;
  margin-top: -13px;
  border: 1px solid rgba(244,67,54,0.33);
}

a.title {
  display: block;
  position: relative;
  width: 171px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  background: #8BC34A;
  text-align: center;
  color: #33481a;
  border-radius: 20px;
  padding: 3px 10px;
  text-shadow: none;
}

a.title:hover {
  color: #446124;
  background: #b1ef6a;
  transition: .5s;
  text-shadow: none;
}

.to {
  border: 1px solid rgba(139,195,74,0.39);
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  color: #d1f1ad;
}

.ti {
  float: left;
  color: #3c261d;
  position: absolute;
  display: inline-block;
  left: 0;
  top: 0;
  padding: 10px 10px 7px;
  background: #e8d363;
  box-shadow: 2px 0 1px #482d24;
}

.tii {
  float: right;
  color: #3c261d;
  position: absolute;
  display: inline-block;
  right: 0;
  top: 0;
  padding: 10px 10px 7px;
  background: #e8d363;
  box-shadow: -2px 0 1px #482d24;
}

.f-i {
  padding: 5px 5px 8px;
  background: none;
  color: #e8d363;
}

a.li-li {
  padding: 11px 10px 11px 18px;
}

.chet {
  padding: 10px;
  text-align: center;
  background: #3c241c;
  box-shadow: 0 2px 2px #331f18 inset;
}

.chet a img {
  opacity: .5;
}

.chet a img:hover {
  opacity: 1;
  transition: .8s;
}

a.head-li {
  display: inline-table;
  padding: 10px;
}

a.head-li:hover {
  background: #754e40;
  transition: .8s;
}

.n-p {
  padding: 0;
}

input.gl {
  background: #442b22;
  border: none;
  padding: 10px 10px 10px 10px;
  border-radius: 4px;
  margin: 5px;
  border-top: 1px solid #351c14;
  border-bottom: 1px solid #674537;
  color: #fff;
  width: 70%
}

input.gl:hover {
  background-color: #4a3027;
  transition: .8s;
}

input.sub-gl {
  background: #e8d363;
  border: none;
  border-radius: 4px;
  width: 100%;
  padding: 10px;
  margin: 10px 10px 10px 2px;
  display: block;
  color: #4f3127;
  font-weight: bold;
}

button.sub-gl {
  background: #e8d363;
  border: none;
  border-radius: 4px;
  max-width: 80px;
  width: 100%;
  padding: 10px;
  margin: 10px 10px 10px 2px;
  display: inline-block;
  color: #4f3127;
  font-weight: bold;
}

button.sub-gl:hover {
  background: #ecdc80;
  cursor: pointer;
  transition: .5s;
  color: #5a5224;
  text-shadow: 0px 2px 0px #ecdd87;
}

input.sub-gl:hover {
  background: #ecdc80;
  cursor: pointer;
  transition: .5s;
  color: #5a5224;
  text-shadow: 0px 2px 0px #ecdd87;
}


/* --- Hero avatars & class frames --- */
.hero-frame{
  width: 220px;
  height: 308px;
  border-radius: 16px;
  padding: 6px;
  position: relative;
  flex: 0 0 auto;
  margin-right: 14px;
}
.hero-frame:before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 22px;
  filter: blur(14px);
  opacity: .55;
  z-index: 0;
  animation: auraPulse 3.2s ease-in-out infinite;
}
.hero-frame:after{
  content:"";
  position:absolute;
  inset: 4px 4px 28px 4px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 45%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%) rotate(8deg);
  opacity: .0;
  z-index: 2;
  pointer-events:none;
  animation: frameShine 4.2s ease-in-out infinite;
}

.hero-frame .hero-avatar{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display:block;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 22px rgba(0,0,0,.55);
}

/* Knight: steel + gold */
.frame-knight{
  background: linear-gradient(135deg, rgba(255,215,120,.95), rgba(90,98,115,.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.frame-knight:before{
  background: radial-gradient(circle at 30% 25%, rgba(255,215,120,.9), rgba(90,98,115,0) 60%),
              radial-gradient(circle at 70% 75%, rgba(200,160,70,.55), rgba(0,0,0,0) 55%);
}

/* Archer: emerald + wind */
.frame-archer{
  background: linear-gradient(135deg, rgba(120,255,190,.95), rgba(20,75,55,.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.frame-archer:before{
  background: radial-gradient(circle at 25% 30%, rgba(120,255,190,.85), rgba(0,0,0,0) 60%),
              radial-gradient(circle at 80% 70%, rgba(60,180,140,.55), rgba(0,0,0,0) 55%);
}

/* Mage: arcane violet */
.frame-mage{
  background: linear-gradient(135deg, rgba(255,140,255,.95), rgba(60,25,90,.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.frame-mage:before{
  background: radial-gradient(circle at 30% 25%, rgba(255,140,255,.85), rgba(0,0,0,0) 60%),
              radial-gradient(circle at 80% 70%, rgba(160,90,255,.55), rgba(0,0,0,0) 55%);
}

/* Registration class picker (compact) */
.class-pick{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;                 /* было 12px */
  margin: 10px 0 16px;
  justify-content: center;
}

.class-pick-title{
  width: 100%;
  text-align:center;
  color:#e7d7c6;
  margin-bottom: 6px;
  font-weight: 700;
}

/* Карточка стала меньше */
.class-card{
  width: 86px;               /* было 104px */
  border-radius: 14px;
  padding: 4px;              /* было 5px */
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: transform .12s ease, filter .12s ease;
  display: block;
  flex: 0 0 auto;
}

/* Свечение чуть компактнее */
.class-card:before{
  content:"";
  position:absolute;
  inset:-8px;                /* было -10px */
  border-radius: 18px;       /* было 22px */
  filter: blur(12px);        /* было 14px */
  opacity: .50;
  z-index: 0;
  animation: auraPulse 2.8s ease-in-out infinite;
}

.class-card:after{
  content:"";
  position:absolute;
  inset: 4px 4px 22px 4px;   /* было 28px снизу */
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 45%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%) rotate(8deg);
  opacity: .0;
  z-index: 2;
  pointer-events:none;
  animation: frameShine 4.6s ease-in-out infinite;
}

.class-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* САМОЕ ВАЖНОЕ — уменьшили высоту картинки */
.class-card img{
  width: 100%;
  height: 98px;              /* было 132px */
  object-fit: cover;
  border-radius: 10px;       /* было 12px */
  display:block;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 12px rgba(0,0,0,.45); /* было 0 8px 16px */
}

/* Подпись компактнее */
.class-card .class-name{
  text-align:center;
  color:#fff;
  margin-top: 4px;           /* было 6px */
  font-weight: 600;          /* было 700 */
  position: relative;
  z-index: 1;
  font-size: 12px;           /* было 14px */
  letter-spacing: .2px;
}

.class-card:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.class-card input:checked ~ img{
  box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 10px 18px rgba(0,0,0,.35);
}

.class-card input:checked ~ .class-name{
  text-shadow: 0 0 10px rgba(255,255,255,.35);
}

/* Мобилка: ещё чуть меньше, чтобы влезали красиво */
@media (max-width: 420px){
  .class-card{ width: 80px; }
  .class-card img{ height: 92px; }
}
/* ===============================
   REGISTRATION — компактные герои
   =============================== */

/* Контейнер выбора классов */
.class-pick{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 16px;
}

/* Карточка класса — уменьшаем */
.class-card{
  width: 84px;              /* было слишком широко */
  padding: 4px;
  border-radius: 12px;
  transition: transform .15s ease, filter .15s ease;
}

/* Свечение компактнее */
.class-card:before{
  inset: -6px;
  border-radius: 16px;
  filter: blur(10px);
  opacity: .45;
}

/* Блик меньше */
.class-card:after{
  inset: 4px 4px 18px 4px;
  border-radius: 10px;
}

/* САМОЕ ГЛАВНОЕ — размер персонажа */
.class-card img{
  width: 100%;
  height: 90px;             /* ↓ ключевой момент */
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 5px 10px rgba(0,0,0,.45);
}

/* Название класса */
.class-card .class-name{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Hover аккуратный */
.class-card:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Выбранный класс */
.class-card input:checked ~ img{
  box-shadow:
    0 0 0 2px rgba(255,255,255,.35),
    0 8px 14px rgba(0,0,0,.45);
}

/* 📱 Мобилки — ещё компактнее */
@media (max-width: 420px){
  .class-card{
    width: 76px;
  }
  .class-card img{
    height: 82px;
  }
}
/* ===== FIX: регистрация, уменьшить персонажей (жёстко) ===== */
.class-pick{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:10px !important;
  margin:12px 0 16px !important;
}

/* прячем стандартную радиокнопку */
.class-pick .class-card input[type="radio"]{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* сама карточка */
.class-pick .class-card{
  width: 86px !important;
  padding: 4px !important;
  border-radius: 12px !important;
  display:block !important;
  position:relative !important;
  overflow:hidden !important;   /* важно: режем лишнее */
}

/* САМОЕ ВАЖНОЕ — зажимаем картинку по высоте */
.class-pick .class-card img{
  width:100% !important;
  height:92px !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:10px !important;
}

/* подпись */
.class-pick .class-card .class-name{
  font-size:12px !important;
  margin-top:4px !important;
  text-align:center !important;
  font-weight:600 !important;
}

/* мобилка ещё компактнее */
@media (max-width: 420px){
  .class-pick .class-card{ width: 78px !important; }
  .class-pick .class-card img{ height: 84px !important; }
}
